|
1 | 1 | # @lytics/dev-agent-cli |
2 | 2 |
|
| 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 | + |
3 | 93 | ## 0.6.0 |
4 | 94 |
|
5 | 95 | ### Minor Changes |
|
0 commit comments