alex
|
ab45859d65
|
Add AST extraction tests, broader ignore patterns, build dist
- ast-extract.ts: Support tree-sitter-python and tree-sitter-go grammar
loading (pkg.language fallback)
- discover.ts: Add cache directories to default ignore (.cache, tmp,
temp, .turbo, .parcel-cache, .eslintcache, .prettiercache)
- tests: Add TypeScript AST extraction tests (exports + imports)
- Verified on real project: media_library_viewer (196 .pi-map.md files)
with accurate React component extraction
- Build: npm run build produces clean dist/ output
All 16 tests pass.
|
2026-06-09 19:25:56 +02:00 |
|
alex
|
3dbb3cb7b2
|
Fix discover, improve LLM heuristics, add integration tests
- discover.ts: Fix ignore package path handling for root '.' directories,
add .pi-map.md to default ignore list
- llm-extract.ts: Fix export regex to only match line-start exports and
handle 'export async function', fix root package role to 'Project root'
- init.ts: Minor cleanup
- .gitignore: Add .pi-map.md
- tests: 6 integration tests covering init, patch (small/large packages),
validate (missing, orphaned, stale-signature detection)
All 14 tests pass. TypeScript compiles clean.
|
2026-06-09 19:14:41 +02:00 |
|