v2.2.0 - Parallel Parsing & TypeAlias Support
·
185 commits
to main
since this release
Highlights
- Parallel Parsing: Multi-worker architecture for faster processing of large codebases
- TypeAlias Support: Full parsing of TypeScript type aliases into graph nodes
- Nx Workspace Support: Auto-detects Nx monorepos alongside Turborepo, pnpm, Yarn, npm
Added
Parallel Parsing with Worker Pool
- Multi-worker architecture using configurable worker pool (default:
cpus - 1, max 8) - Pull-based work distribution: workers signal ready, coordinator dispatches chunks
- Streaming results: chunks imported as they complete for pipelined processing
SerializedSharedContextenables cross-worker state for edge resolution- Graceful shutdown with proper worker cleanup
TypeAlias Parsing
- New
TYPE_ALIAScore node type with labels['TypeAlias', 'TypeScript'] - Captures
nameandisExportedproperties - Embeddings skipped by default
Nx Workspace Support
- Auto-detects Nx monorepos via
nx.jsonandproject.json - Integrates with existing workspace detection
Infrastructure
- Consolidated graph utilities in
graph-factory.ts - Centralized constants for file patterns and logging
- Consistent debug logging via
debugLog()
Changed
- NL-to-Cypher prompts now schema-driven with dynamic label validation
- Edge resolution delegated from WorkspaceParser to TypeScriptParser
- Improved streaming import duplicate detection
Fixed
- Worker thread graceful shutdown preventing orphaned processes
- Cross-chunk INTERNAL_API_CALL edge detection
- Streaming duplicates from chunk boundary handling
Install
npm install -g code-graph-context@2.2.0