Skip to content

Infrawise v1.0.1

Latest

Choose a tag to compare

@Sidd27 Sidd27 released this 02 Nov 10:42
· 10 commits to main since this release

Fix large-project JavaScript heap exhaustion

  • Scan TypeScript/JavaScript through lazy async batches, releasing ASTs as files are processed instead of retaining a whole-project compiler AST.
  • Avoid loading dependency types and standard libraries; exclude declarations and common generated output before parsing.
  • Keep operation results and lightweight dependency paths for incremental updates.
  • Isolate script-local constants so unrelated files cannot share SQL variable symbols.
  • Report files above 2 MiB as incomplete code coverage while retaining readable results. CI check fails on incomplete analysis by default.

Validation

All 529 tests passed. The previous scanner exhausted a 256 MiB heap on the synthetic large-project fixture; the updated scanner passed full scans, incremental edits, shared-import updates, and the actual analyze CLI on 1,501 files (about 20 MiB source) under the same heap cap. This regression now runs in CI.

Fresh Floci extraction with no cache or heap override returned the expected 56 findings, 47 nodes, and 15 edges with all enabled sources successful.

Memory still scales with extracted operations and the infrastructure graph. This patch bounds scanner AST retention; it does not introduce demand-driven MCP extraction.