Skip to content

Commit 1985406

Browse files
github-actions[bot]prosdev
authored andcommitted
chore: release packages
1 parent 033eca2 commit 1985406

File tree

13 files changed

+371
-93
lines changed

13 files changed

+371
-93
lines changed

.changeset/dev-explore-to-dev-inspect.md

Lines changed: 0 additions & 87 deletions
This file was deleted.

packages/cli/CHANGELOG.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,95 @@
11
# @lytics/dev-agent-cli
22

3+
## 0.6.1
4+
5+
### Patch Changes
6+
7+
- d3d2126: feat(mcp): refactor dev_inspect and optimize pattern analysis
8+
9+
**API Simplification:**
10+
11+
- `dev_inspect` simplified to single-purpose tool (action parameter streamlined)
12+
- Previously: `dev_inspect({ action: "compare", query: "file.ts" })`
13+
- Now: `dev_inspect({ query: "file.ts" })`
14+
- Existing usage continues to work with dynamic MCP schema discovery
15+
16+
**Major Features:**
17+
18+
- Created `PatternAnalysisService` with 5 pattern extractors:
19+
- Import style (ESM, CJS, mixed, unknown)
20+
- Error handling (throw, result, callback, unknown)
21+
- Type coverage (full, partial, none)
22+
- Testing (co-located test files)
23+
- File size (lines vs similar files)
24+
- Batch scanning optimization (5-10x faster: 500-1000ms vs 2-3 seconds)
25+
- Embedding-based similarity search (no more false matches)
26+
- Extension filtering (`.ts` only compares with `.ts`)
27+
- Comprehensive pattern analysis (finds similar files + analyzes patterns)
28+
29+
**Performance:**
30+
31+
- One ts-morph initialization vs 6 separate scans
32+
- Batch scan all files in one pass
33+
- `searchByDocumentId()` for embedding-based similarity
34+
- Pattern analysis: 500-1000ms (down from 2-3 seconds)
35+
36+
**Bug Fixes:**
37+
38+
- Fixed `findSimilar` to use document embeddings instead of file paths
39+
- Fixed `--force` flag to properly clear old vector data
40+
- Fixed race condition in LanceDB table creation
41+
- Removed `outputSchema` from all 9 MCP adapters (Cursor/Claude compatibility)
42+
43+
**New Features:**
44+
45+
- Test utilities in `@lytics/dev-agent-core/utils`:
46+
- `isTestFile()` — Check if file is a test file
47+
- `findTestFile()` — Find co-located test files
48+
- Vector store `clear()` method
49+
- Vector store `searchByDocumentId()` method
50+
- Comprehensive pattern comparison with statistical analysis
51+
52+
**Migration Guide:**
53+
54+
```typescript
55+
// Before (v0.8.4)
56+
dev_inspect({ action: "compare", query: "src/auth.ts" });
57+
dev_inspect({ action: "validate", query: "src/auth.ts" });
58+
59+
// After (v0.8.5) - Streamlined!
60+
dev_inspect({ query: "src/auth.ts" });
61+
```
62+
63+
The tool now automatically finds similar files AND performs pattern analysis. No migration needed - MCP tools discover the new schema dynamically.
64+
65+
**Re-index Recommended:**
66+
67+
```bash
68+
dev index . --force
69+
```
70+
71+
This clears old data and rebuilds with improved embedding-based search.
72+
73+
**Documentation:**
74+
75+
- Complete rewrite of dev-inspect.mdx
76+
- Updated README.md with pattern categories
77+
- Updated CLAUDE.md with new descriptions
78+
- Added v0.8.5 changelog entry to website
79+
- Migration guide from dev_explore
80+
81+
**Tests:**
82+
83+
- All 1100+ tests passing
84+
- Added 10 new test-utils tests
85+
- Pattern analysis service fully tested
86+
- Integration tests for InspectAdapter
87+
88+
- Updated dependencies [d3d2126]
89+
- @lytics/dev-agent-core@0.9.3
90+
- @lytics/dev-agent-mcp@0.5.4
91+
- @lytics/dev-agent-subagents@0.5.4
92+
393
## 0.6.0
494

595
### Minor Changes

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lytics/dev-agent-cli",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"private": true,
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/core/CHANGELOG.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,90 @@
11
# @lytics/dev-agent-core
22

3+
## 0.9.3
4+
5+
### Patch Changes
6+
7+
- d3d2126: feat(mcp): refactor dev_inspect and optimize pattern analysis
8+
9+
**API Simplification:**
10+
11+
- `dev_inspect` simplified to single-purpose tool (action parameter streamlined)
12+
- Previously: `dev_inspect({ action: "compare", query: "file.ts" })`
13+
- Now: `dev_inspect({ query: "file.ts" })`
14+
- Existing usage continues to work with dynamic MCP schema discovery
15+
16+
**Major Features:**
17+
18+
- Created `PatternAnalysisService` with 5 pattern extractors:
19+
- Import style (ESM, CJS, mixed, unknown)
20+
- Error handling (throw, result, callback, unknown)
21+
- Type coverage (full, partial, none)
22+
- Testing (co-located test files)
23+
- File size (lines vs similar files)
24+
- Batch scanning optimization (5-10x faster: 500-1000ms vs 2-3 seconds)
25+
- Embedding-based similarity search (no more false matches)
26+
- Extension filtering (`.ts` only compares with `.ts`)
27+
- Comprehensive pattern analysis (finds similar files + analyzes patterns)
28+
29+
**Performance:**
30+
31+
- One ts-morph initialization vs 6 separate scans
32+
- Batch scan all files in one pass
33+
- `searchByDocumentId()` for embedding-based similarity
34+
- Pattern analysis: 500-1000ms (down from 2-3 seconds)
35+
36+
**Bug Fixes:**
37+
38+
- Fixed `findSimilar` to use document embeddings instead of file paths
39+
- Fixed `--force` flag to properly clear old vector data
40+
- Fixed race condition in LanceDB table creation
41+
- Removed `outputSchema` from all 9 MCP adapters (Cursor/Claude compatibility)
42+
43+
**New Features:**
44+
45+
- Test utilities in `@lytics/dev-agent-core/utils`:
46+
- `isTestFile()` — Check if file is a test file
47+
- `findTestFile()` — Find co-located test files
48+
- Vector store `clear()` method
49+
- Vector store `searchByDocumentId()` method
50+
- Comprehensive pattern comparison with statistical analysis
51+
52+
**Migration Guide:**
53+
54+
```typescript
55+
// Before (v0.8.4)
56+
dev_inspect({ action: "compare", query: "src/auth.ts" });
57+
dev_inspect({ action: "validate", query: "src/auth.ts" });
58+
59+
// After (v0.8.5) - Streamlined!
60+
dev_inspect({ query: "src/auth.ts" });
61+
```
62+
63+
The tool now automatically finds similar files AND performs pattern analysis. No migration needed - MCP tools discover the new schema dynamically.
64+
65+
**Re-index Recommended:**
66+
67+
```bash
68+
dev index . --force
69+
```
70+
71+
This clears old data and rebuilds with improved embedding-based search.
72+
73+
**Documentation:**
74+
75+
- Complete rewrite of dev-inspect.mdx
76+
- Updated README.md with pattern categories
77+
- Updated CLAUDE.md with new descriptions
78+
- Added v0.8.5 changelog entry to website
79+
- Migration guide from dev_explore
80+
81+
**Tests:**
82+
83+
- All 1100+ tests passing
84+
- Added 10 new test-utils tests
85+
- Pattern analysis service fully tested
86+
- Integration tests for InspectAdapter
87+
388
## 0.9.2
489

590
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lytics/dev-agent-core",
3-
"version": "0.9.2",
3+
"version": "0.9.3",
44
"private": true,
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/dev-agent/CHANGELOG.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,90 @@
11
# @lytics/dev-agent
22

3+
## 0.8.5
4+
5+
### Patch Changes
6+
7+
- d3d2126: feat(mcp): refactor dev_inspect and optimize pattern analysis
8+
9+
**API Simplification:**
10+
11+
- `dev_inspect` simplified to single-purpose tool (action parameter streamlined)
12+
- Previously: `dev_inspect({ action: "compare", query: "file.ts" })`
13+
- Now: `dev_inspect({ query: "file.ts" })`
14+
- Existing usage continues to work with dynamic MCP schema discovery
15+
16+
**Major Features:**
17+
18+
- Created `PatternAnalysisService` with 5 pattern extractors:
19+
- Import style (ESM, CJS, mixed, unknown)
20+
- Error handling (throw, result, callback, unknown)
21+
- Type coverage (full, partial, none)
22+
- Testing (co-located test files)
23+
- File size (lines vs similar files)
24+
- Batch scanning optimization (5-10x faster: 500-1000ms vs 2-3 seconds)
25+
- Embedding-based similarity search (no more false matches)
26+
- Extension filtering (`.ts` only compares with `.ts`)
27+
- Comprehensive pattern analysis (finds similar files + analyzes patterns)
28+
29+
**Performance:**
30+
31+
- One ts-morph initialization vs 6 separate scans
32+
- Batch scan all files in one pass
33+
- `searchByDocumentId()` for embedding-based similarity
34+
- Pattern analysis: 500-1000ms (down from 2-3 seconds)
35+
36+
**Bug Fixes:**
37+
38+
- Fixed `findSimilar` to use document embeddings instead of file paths
39+
- Fixed `--force` flag to properly clear old vector data
40+
- Fixed race condition in LanceDB table creation
41+
- Removed `outputSchema` from all 9 MCP adapters (Cursor/Claude compatibility)
42+
43+
**New Features:**
44+
45+
- Test utilities in `@lytics/dev-agent-core/utils`:
46+
- `isTestFile()` — Check if file is a test file
47+
- `findTestFile()` — Find co-located test files
48+
- Vector store `clear()` method
49+
- Vector store `searchByDocumentId()` method
50+
- Comprehensive pattern comparison with statistical analysis
51+
52+
**Migration Guide:**
53+
54+
```typescript
55+
// Before (v0.8.4)
56+
dev_inspect({ action: "compare", query: "src/auth.ts" });
57+
dev_inspect({ action: "validate", query: "src/auth.ts" });
58+
59+
// After (v0.8.5) - Streamlined!
60+
dev_inspect({ query: "src/auth.ts" });
61+
```
62+
63+
The tool now automatically finds similar files AND performs pattern analysis. No migration needed - MCP tools discover the new schema dynamically.
64+
65+
**Re-index Recommended:**
66+
67+
```bash
68+
dev index . --force
69+
```
70+
71+
This clears old data and rebuilds with improved embedding-based search.
72+
73+
**Documentation:**
74+
75+
- Complete rewrite of dev-inspect.mdx
76+
- Updated README.md with pattern categories
77+
- Updated CLAUDE.md with new descriptions
78+
- Added v0.8.5 changelog entry to website
79+
- Migration guide from dev_explore
80+
81+
**Tests:**
82+
83+
- All 1100+ tests passing
84+
- Added 10 new test-utils tests
85+
- Pattern analysis service fully tested
86+
- Integration tests for InspectAdapter
87+
388
## 0.8.4
489

590
### Patch Changes

packages/dev-agent/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lytics/dev-agent",
3-
"version": "0.8.4",
3+
"version": "0.8.5",
44
"private": false,
55
"description": "Deep code intelligence + AI subagents via MCP. Local-first semantic code search, GitHub integration, and development planning for AI tools like Cursor and Claude Code.",
66
"keywords": [

0 commit comments

Comments
 (0)