Skip to content

v2.2.0 - Parallel Parsing & TypeAlias Support

Choose a tag to compare

@andrew-hernandez-paragon andrew-hernandez-paragon released this 01 Jan 23:17
· 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
  • SerializedSharedContext enables cross-worker state for edge resolution
  • Graceful shutdown with proper worker cleanup

TypeAlias Parsing

  • New TYPE_ALIAS core node type with labels ['TypeAlias', 'TypeScript']
  • Captures name and isExported properties
  • Embeddings skipped by default

Nx Workspace Support

  • Auto-detects Nx monorepos via nx.json and project.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