@colbymchenry/codegraph-win32-arm64 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/codegraph +5 -0
- package/lib/dist/.test-build-engine.json +1 -0
- package/lib/dist/.test-build-viewer.json +1 -0
- package/lib/dist/bin/codegraph.d.ts +1 -0
- package/lib/dist/bin/codegraph.d.ts.map +1 -1
- package/lib/dist/bin/codegraph.js +605 -291
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/bin/command-supervision.d.ts +7 -0
- package/lib/dist/bin/command-supervision.d.ts.map +1 -1
- package/lib/dist/bin/command-supervision.js +39 -27
- package/lib/dist/bin/command-supervision.js.map +1 -1
- package/lib/dist/bin/viewer-gate.d.ts +17 -0
- package/lib/dist/bin/viewer-gate.d.ts.map +1 -0
- package/lib/dist/bin/viewer-gate.js +31 -0
- package/lib/dist/bin/viewer-gate.js.map +1 -0
- package/lib/dist/context/index.d.ts.map +1 -1
- package/lib/dist/context/index.js +43 -2
- package/lib/dist/context/index.js.map +1 -1
- package/lib/dist/db/index.d.ts +21 -2
- package/lib/dist/db/index.d.ts.map +1 -1
- package/lib/dist/db/index.js +86 -31
- package/lib/dist/db/index.js.map +1 -1
- package/lib/dist/db/migrations.d.ts +1 -1
- package/lib/dist/db/migrations.d.ts.map +1 -1
- package/lib/dist/db/migrations.js +40 -1
- package/lib/dist/db/migrations.js.map +1 -1
- package/lib/dist/db/queries.d.ts +454 -10
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1080 -41
- package/lib/dist/db/queries.js.map +1 -1
- package/lib/dist/db/schema.sql +11 -1
- package/lib/dist/db/sqlite-adapter.d.ts +2 -0
- package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
- package/lib/dist/db/sqlite-adapter.js +56 -7
- package/lib/dist/db/sqlite-adapter.js.map +1 -1
- package/lib/dist/db/synthesis-stage.d.ts +12 -0
- package/lib/dist/db/synthesis-stage.d.ts.map +1 -0
- package/lib/dist/db/synthesis-stage.js +89 -0
- package/lib/dist/db/synthesis-stage.js.map +1 -0
- package/lib/dist/db/wal-valve.d.ts +32 -12
- package/lib/dist/db/wal-valve.d.ts.map +1 -1
- package/lib/dist/db/wal-valve.js +65 -22
- package/lib/dist/db/wal-valve.js.map +1 -1
- package/lib/dist/db/wsl-shared-index.d.ts +53 -0
- package/lib/dist/db/wsl-shared-index.d.ts.map +1 -0
- package/lib/dist/db/wsl-shared-index.js +121 -0
- package/lib/dist/db/wsl-shared-index.js.map +1 -0
- package/lib/dist/directory.d.ts +131 -2
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +299 -23
- package/lib/dist/directory.js.map +1 -1
- package/lib/dist/errors.d.ts +14 -0
- package/lib/dist/errors.d.ts.map +1 -1
- package/lib/dist/errors.js +16 -1
- package/lib/dist/errors.js.map +1 -1
- package/lib/dist/extraction/astro-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/astro-extractor.js +7 -35
- package/lib/dist/extraction/astro-extractor.js.map +1 -1
- package/lib/dist/extraction/cfml-extractor.d.ts +77 -10
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/cfml-extractor.js +302 -71
- package/lib/dist/extraction/cfml-extractor.js.map +1 -1
- package/lib/dist/extraction/commonjs-requires.d.ts +23 -0
- package/lib/dist/extraction/commonjs-requires.d.ts.map +1 -0
- package/lib/dist/extraction/commonjs-requires.js +68 -0
- package/lib/dist/extraction/commonjs-requires.js.map +1 -0
- package/lib/dist/extraction/dfm-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/dfm-extractor.js +14 -10
- package/lib/dist/extraction/dfm-extractor.js.map +1 -1
- package/lib/dist/extraction/extraction-version.d.ts +1 -1
- package/lib/dist/extraction/extraction-version.js +1 -1
- package/lib/dist/extraction/function-ref.d.ts +6 -4
- package/lib/dist/extraction/function-ref.d.ts.map +1 -1
- package/lib/dist/extraction/function-ref.js +35 -14
- package/lib/dist/extraction/function-ref.js.map +1 -1
- package/lib/dist/extraction/generated-detection.d.ts +9 -0
- package/lib/dist/extraction/generated-detection.d.ts.map +1 -1
- package/lib/dist/extraction/generated-detection.js +42 -2
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +40 -0
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +171 -1
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +132 -19
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +825 -195
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/kernel/index.d.ts.map +1 -1
- package/lib/dist/extraction/kernel/index.js +6 -0
- package/lib/dist/extraction/kernel/index.js.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.d.ts +73 -0
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +412 -16
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
- package/lib/dist/extraction/languages/csharp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/csharp.js +14 -5
- package/lib/dist/extraction/languages/csharp.js.map +1 -1
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
- package/lib/dist/extraction/languages/dart.js +16 -3
- package/lib/dist/extraction/languages/dart.js.map +1 -1
- package/lib/dist/extraction/languages/javascript.js +1 -1
- package/lib/dist/extraction/languages/javascript.js.map +1 -1
- package/lib/dist/extraction/languages/kotlin.d.ts +4 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
- package/lib/dist/extraction/languages/kotlin.js +237 -36
- package/lib/dist/extraction/languages/kotlin.js.map +1 -1
- package/lib/dist/extraction/languages/lua.d.ts.map +1 -1
- package/lib/dist/extraction/languages/lua.js +4 -1
- package/lib/dist/extraction/languages/lua.js.map +1 -1
- package/lib/dist/extraction/languages/python.d.ts.map +1 -1
- package/lib/dist/extraction/languages/python.js +71 -0
- package/lib/dist/extraction/languages/python.js.map +1 -1
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
- package/lib/dist/extraction/languages/rust.js +3 -0
- package/lib/dist/extraction/languages/rust.js.map +1 -1
- package/lib/dist/extraction/languages/scala.d.ts.map +1 -1
- package/lib/dist/extraction/languages/scala.js +18 -3
- package/lib/dist/extraction/languages/scala.js.map +1 -1
- package/lib/dist/extraction/languages/swift.d.ts +15 -0
- package/lib/dist/extraction/languages/swift.d.ts.map +1 -1
- package/lib/dist/extraction/languages/swift.js +50 -0
- package/lib/dist/extraction/languages/swift.js.map +1 -1
- package/lib/dist/extraction/languages/typescript.d.ts +7 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/typescript.js +30 -2
- package/lib/dist/extraction/languages/typescript.js.map +1 -1
- package/lib/dist/extraction/liquid-extractor.d.ts +18 -0
- package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/liquid-extractor.js +98 -22
- package/lib/dist/extraction/liquid-extractor.js.map +1 -1
- package/lib/dist/extraction/mybatis-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/mybatis-extractor.js +6 -4
- package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
- package/lib/dist/extraction/parse-budget.d.ts +16 -0
- package/lib/dist/extraction/parse-budget.d.ts.map +1 -0
- package/lib/dist/extraction/parse-budget.js +24 -0
- package/lib/dist/extraction/parse-budget.js.map +1 -0
- package/lib/dist/extraction/parse-pool.d.ts +12 -0
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +51 -3
- package/lib/dist/extraction/parse-pool.js.map +1 -1
- package/lib/dist/extraction/parse-worker.js +3 -1
- package/lib/dist/extraction/parse-worker.js.map +1 -1
- package/lib/dist/extraction/sfc-script.d.ts +43 -0
- package/lib/dist/extraction/sfc-script.d.ts.map +1 -0
- package/lib/dist/extraction/sfc-script.js +135 -0
- package/lib/dist/extraction/sfc-script.js.map +1 -0
- package/lib/dist/extraction/store-worker.js +5 -0
- package/lib/dist/extraction/store-worker.js.map +1 -1
- package/lib/dist/extraction/store-writer.d.ts +10 -2
- package/lib/dist/extraction/store-writer.d.ts.map +1 -1
- package/lib/dist/extraction/store-writer.js +12 -4
- package/lib/dist/extraction/store-writer.js.map +1 -1
- package/lib/dist/extraction/svelte-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/svelte-extractor.js +7 -37
- package/lib/dist/extraction/svelte-extractor.js.map +1 -1
- package/lib/dist/extraction/syntax-tokens.d.ts +103 -0
- package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -0
- package/lib/dist/extraction/syntax-tokens.js +382 -0
- package/lib/dist/extraction/syntax-tokens.js.map +1 -0
- package/lib/dist/extraction/tree-sitter-helpers.d.ts +5 -0
- package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter-helpers.js +17 -0
- package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.d.ts +29 -3
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.d.ts +104 -17
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +943 -88
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/extraction/vue-extractor.d.ts +7 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/vue-extractor.js +73 -35
- package/lib/dist/extraction/vue-extractor.js.map +1 -1
- package/lib/dist/extraction/vue-options-api.d.ts +28 -0
- package/lib/dist/extraction/vue-options-api.d.ts.map +1 -0
- package/lib/dist/extraction/vue-options-api.js +196 -0
- package/lib/dist/extraction/vue-options-api.js.map +1 -0
- package/lib/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
- package/lib/dist/file-limits.d.ts +40 -0
- package/lib/dist/file-limits.d.ts.map +1 -0
- package/lib/dist/file-limits.js +147 -0
- package/lib/dist/file-limits.js.map +1 -0
- package/lib/dist/graph/branch-guards.d.ts +265 -0
- package/lib/dist/graph/branch-guards.d.ts.map +1 -0
- package/lib/dist/graph/branch-guards.js +2326 -0
- package/lib/dist/graph/branch-guards.js.map +1 -0
- package/lib/dist/graph/dead-code.d.ts +251 -0
- package/lib/dist/graph/dead-code.d.ts.map +1 -0
- package/lib/dist/graph/dead-code.js +776 -0
- package/lib/dist/graph/dead-code.js.map +1 -0
- package/lib/dist/graph/dynamic-boundary-report.d.ts +121 -0
- package/lib/dist/graph/dynamic-boundary-report.d.ts.map +1 -0
- package/lib/dist/graph/dynamic-boundary-report.js +283 -0
- package/lib/dist/graph/dynamic-boundary-report.js.map +1 -0
- package/lib/dist/graph/index.d.ts +4 -0
- package/lib/dist/graph/index.d.ts.map +1 -1
- package/lib/dist/graph/index.js +16 -1
- package/lib/dist/graph/index.js.map +1 -1
- package/lib/dist/graph/named-symbol-flow.d.ts +125 -0
- package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -0
- package/lib/dist/graph/named-symbol-flow.js +559 -0
- package/lib/dist/graph/named-symbol-flow.js.map +1 -0
- package/lib/dist/graph/symbol-lookup.d.ts +83 -0
- package/lib/dist/graph/symbol-lookup.d.ts.map +1 -0
- package/lib/dist/graph/symbol-lookup.js +181 -0
- package/lib/dist/graph/symbol-lookup.js.map +1 -0
- package/lib/dist/graph/traversal.d.ts +9 -0
- package/lib/dist/graph/traversal.d.ts.map +1 -1
- package/lib/dist/graph/traversal.js +61 -35
- package/lib/dist/graph/traversal.js.map +1 -1
- package/lib/dist/graph/type-hierarchy.d.ts +155 -0
- package/lib/dist/graph/type-hierarchy.d.ts.map +1 -0
- package/lib/dist/graph/type-hierarchy.js +382 -0
- package/lib/dist/graph/type-hierarchy.js.map +1 -0
- package/lib/dist/index.d.ts +256 -11
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +402 -34
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +3 -2
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/targets/antigravity.d.ts.map +1 -1
- package/lib/dist/installer/targets/antigravity.js +14 -2
- package/lib/dist/installer/targets/antigravity.js.map +1 -1
- package/lib/dist/installer/targets/claude.d.ts +3 -0
- package/lib/dist/installer/targets/claude.d.ts.map +1 -1
- package/lib/dist/installer/targets/claude.js +35 -7
- package/lib/dist/installer/targets/claude.js.map +1 -1
- package/lib/dist/installer/targets/codex.d.ts +2 -1
- package/lib/dist/installer/targets/codex.d.ts.map +1 -1
- package/lib/dist/installer/targets/codex.js +14 -4
- package/lib/dist/installer/targets/codex.js.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.js +7 -1
- package/lib/dist/installer/targets/copilot-cli.js.map +1 -1
- package/lib/dist/installer/targets/opencode.d.ts +16 -5
- package/lib/dist/installer/targets/opencode.d.ts.map +1 -1
- package/lib/dist/installer/targets/opencode.js +73 -22
- package/lib/dist/installer/targets/opencode.js.map +1 -1
- package/lib/dist/installer/targets/shared.d.ts +14 -3
- package/lib/dist/installer/targets/shared.d.ts.map +1 -1
- package/lib/dist/installer/targets/shared.js +39 -11
- package/lib/dist/installer/targets/shared.js.map +1 -1
- package/lib/dist/installer/targets/types.d.ts +7 -0
- package/lib/dist/installer/targets/types.d.ts.map +1 -1
- package/lib/dist/mcp/answer-freshness.d.ts +10 -0
- package/lib/dist/mcp/answer-freshness.d.ts.map +1 -0
- package/lib/dist/mcp/answer-freshness.js +68 -0
- package/lib/dist/mcp/answer-freshness.js.map +1 -0
- package/lib/dist/mcp/daemon-manager.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-manager.js +16 -0
- package/lib/dist/mcp/daemon-manager.js.map +1 -1
- package/lib/dist/mcp/daemon-paths.d.ts +2 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-paths.js +20 -5
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-registry.d.ts +11 -4
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +132 -36
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +17 -7
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +116 -24
- package/lib/dist/mcp/daemon.js.map +1 -1
- package/lib/dist/mcp/dynamic-boundaries.d.ts +1 -10
- package/lib/dist/mcp/dynamic-boundaries.d.ts.map +1 -1
- package/lib/dist/mcp/dynamic-boundaries.js +46 -42
- package/lib/dist/mcp/dynamic-boundaries.js.map +1 -1
- package/lib/dist/mcp/engine.d.ts +30 -9
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +158 -66
- package/lib/dist/mcp/engine.js.map +1 -1
- package/lib/dist/mcp/explore-dedup.d.ts +5 -2
- package/lib/dist/mcp/explore-dedup.d.ts.map +1 -1
- package/lib/dist/mcp/explore-dedup.js +8 -5
- package/lib/dist/mcp/explore-dedup.js.map +1 -1
- package/lib/dist/mcp/index-freshness-worker.d.ts +2 -0
- package/lib/dist/mcp/index-freshness-worker.d.ts.map +1 -0
- package/lib/dist/mcp/index-freshness-worker.js +36 -0
- package/lib/dist/mcp/index-freshness-worker.js.map +1 -0
- package/lib/dist/mcp/index-freshness.d.ts +13 -0
- package/lib/dist/mcp/index-freshness.d.ts.map +1 -0
- package/lib/dist/mcp/index-freshness.js +117 -0
- package/lib/dist/mcp/index-freshness.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +3 -1
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +95 -11
- package/lib/dist/mcp/index.js.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.d.ts +4 -1
- package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.js +11 -2
- package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
- package/lib/dist/mcp/project-lifecycle.d.ts +9 -0
- package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -0
- package/lib/dist/mcp/project-lifecycle.js +182 -0
- package/lib/dist/mcp/project-lifecycle.js.map +1 -0
- package/lib/dist/mcp/proxy.d.ts +9 -2
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +201 -32
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +18 -3
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +67 -11
- package/lib/dist/mcp/query-pool.js.map +1 -1
- package/lib/dist/mcp/query-worker.js +2 -2
- package/lib/dist/mcp/query-worker.js.map +1 -1
- package/lib/dist/mcp/server-instructions.d.ts +1 -1
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +6 -3
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/startup-handshake.d.ts +3 -1
- package/lib/dist/mcp/startup-handshake.d.ts.map +1 -1
- package/lib/dist/mcp/startup-handshake.js +10 -2
- package/lib/dist/mcp/startup-handshake.js.map +1 -1
- package/lib/dist/mcp/tools.d.ts +306 -36
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +2395 -966
- package/lib/dist/mcp/tools.js.map +1 -1
- package/lib/dist/mcp/writer-lock.d.ts +61 -0
- package/lib/dist/mcp/writer-lock.d.ts.map +1 -0
- package/lib/dist/mcp/writer-lock.js +260 -0
- package/lib/dist/mcp/writer-lock.js.map +1 -0
- package/lib/dist/resolution/alias-binding.d.ts +56 -0
- package/lib/dist/resolution/alias-binding.d.ts.map +1 -0
- package/lib/dist/resolution/alias-binding.js +143 -0
- package/lib/dist/resolution/alias-binding.js.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts +49 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.js +359 -0
- package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts +23 -1
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +460 -144
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
- package/lib/dist/resolution/cpp-constructor.d.ts +4 -0
- package/lib/dist/resolution/cpp-constructor.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-constructor.js +123 -0
- package/lib/dist/resolution/cpp-constructor.js.map +1 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts +12 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-macro-visibility.js +392 -0
- package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -0
- package/lib/dist/resolution/expo-router-synthesizer.d.ts +32 -0
- package/lib/dist/resolution/expo-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/expo-router-synthesizer.js +189 -0
- package/lib/dist/resolution/expo-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/frameworks/angular-router.d.ts +142 -0
- package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/angular-router.js +1126 -0
- package/lib/dist/resolution/frameworks/angular-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/astro.js +32 -6
- package/lib/dist/resolution/frameworks/astro.js.map +1 -1
- package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/csharp.js +186 -24
- package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.d.ts +10 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.js +95 -1
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.d.ts +195 -0
- package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/expo-router.js +847 -0
- package/lib/dist/resolution/frameworks/expo-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/express.js +339 -45
- package/lib/dist/resolution/frameworks/express.js.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.js +13 -11
- package/lib/dist/resolution/frameworks/fabric.js.map +1 -1
- package/lib/dist/resolution/frameworks/go.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/go.js +11 -28
- package/lib/dist/resolution/frameworks/go.js.map +1 -1
- package/lib/dist/resolution/frameworks/index.d.ts +8 -2
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +39 -1
- package/lib/dist/resolution/frameworks/index.js.map +1 -1
- package/lib/dist/resolution/frameworks/java.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/java.js +88 -68
- package/lib/dist/resolution/frameworks/java.js.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.js +369 -26
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
- package/lib/dist/resolution/frameworks/name-heuristic.d.ts +35 -0
- package/lib/dist/resolution/frameworks/name-heuristic.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/name-heuristic.js +45 -0
- package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -0
- package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.js +288 -55
- package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
- package/lib/dist/resolution/frameworks/nextjs.d.ts +76 -0
- package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/nextjs.js +329 -0
- package/lib/dist/resolution/frameworks/nextjs.js.map +1 -0
- package/lib/dist/resolution/frameworks/object-literal.d.ts +32 -0
- package/lib/dist/resolution/frameworks/object-literal.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/object-literal.js +139 -0
- package/lib/dist/resolution/frameworks/object-literal.js.map +1 -0
- package/lib/dist/resolution/frameworks/package-deps.d.ts +14 -0
- package/lib/dist/resolution/frameworks/package-deps.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/package-deps.js +78 -0
- package/lib/dist/resolution/frameworks/package-deps.js.map +1 -0
- package/lib/dist/resolution/frameworks/page-component.d.ts +20 -0
- package/lib/dist/resolution/frameworks/page-component.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/page-component.js +45 -0
- package/lib/dist/resolution/frameworks/page-component.js.map +1 -0
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/play.js +3 -1
- package/lib/dist/resolution/frameworks/play.js.map +1 -1
- package/lib/dist/resolution/frameworks/python.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/python.js +279 -26
- package/lib/dist/resolution/frameworks/python.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.d.ts +26 -0
- package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.js +153 -14
- package/lib/dist/resolution/frameworks/react-native.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.d.ts +47 -0
- package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/react-router.js +201 -0
- package/lib/dist/resolution/frameworks/react-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/react.d.ts +13 -2
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react.js +542 -144
- package/lib/dist/resolution/frameworks/react.js.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.js +177 -17
- package/lib/dist/resolution/frameworks/ruby.js.map +1 -1
- package/lib/dist/resolution/frameworks/rust.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/rust.js +24 -22
- package/lib/dist/resolution/frameworks/rust.js.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.js +14 -6
- package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
- package/lib/dist/resolution/frameworks/sveltekit-router.d.ts +36 -0
- package/lib/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/sveltekit-router.js +156 -0
- package/lib/dist/resolution/frameworks/sveltekit-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/swift.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/swift.js +253 -124
- package/lib/dist/resolution/frameworks/swift.js.map +1 -1
- package/lib/dist/resolution/frameworks/tanstack-router.d.ts +84 -0
- package/lib/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/tanstack-router.js +437 -0
- package/lib/dist/resolution/frameworks/tanstack-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/vue-router.d.ts +98 -0
- package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/vue-router.js +500 -0
- package/lib/dist/resolution/frameworks/vue-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/vue.d.ts +9 -2
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue.js +45 -11
- package/lib/dist/resolution/frameworks/vue.js.map +1 -1
- package/lib/dist/resolution/import-resolver.d.ts +66 -0
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +643 -61
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +124 -25
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +769 -152
- package/lib/dist/resolution/index.js.map +1 -1
- package/lib/dist/resolution/js-builtins.d.ts +13 -0
- package/lib/dist/resolution/js-builtins.d.ts.map +1 -0
- package/lib/dist/resolution/js-builtins.js +48 -0
- package/lib/dist/resolution/js-builtins.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +101 -22
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +8267 -287
- package/lib/dist/resolution/name-matcher.js.map +1 -1
- package/lib/dist/resolution/next-router-synthesizer.d.ts +27 -0
- package/lib/dist/resolution/next-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/next-router-synthesizer.js +113 -0
- package/lib/dist/resolution/next-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts +35 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/react-router-synthesizer.js +197 -0
- package/lib/dist/resolution/react-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/resolver-pool.d.ts +22 -1
- package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-pool.js +35 -5
- package/lib/dist/resolution/resolver-pool.js.map +1 -1
- package/lib/dist/resolution/resolver-worker.js +3 -0
- package/lib/dist/resolution/resolver-worker.js.map +1 -1
- package/lib/dist/resolution/strip-comments.d.ts +6 -0
- package/lib/dist/resolution/strip-comments.d.ts.map +1 -1
- package/lib/dist/resolution/strip-comments.js +58 -0
- package/lib/dist/resolution/strip-comments.js.map +1 -1
- package/lib/dist/resolution/sveltekit-synthesizer.d.ts +58 -0
- package/lib/dist/resolution/sveltekit-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/sveltekit-synthesizer.js +173 -0
- package/lib/dist/resolution/sveltekit-synthesizer.js.map +1 -0
- package/lib/dist/resolution/swift-type-visibility.d.ts +68 -0
- package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -0
- package/lib/dist/resolution/swift-type-visibility.js +454 -0
- package/lib/dist/resolution/swift-type-visibility.js.map +1 -0
- package/lib/dist/resolution/synth-utils.d.ts +26 -0
- package/lib/dist/resolution/synth-utils.d.ts.map +1 -0
- package/lib/dist/resolution/synth-utils.js +75 -0
- package/lib/dist/resolution/synth-utils.js.map +1 -0
- package/lib/dist/resolution/tanstack-router-synthesizer.d.ts +31 -0
- package/lib/dist/resolution/tanstack-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tanstack-router-synthesizer.js +114 -0
- package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts +54 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.js +1294 -0
- package/lib/dist/resolution/tier-synthesizer.js.map +1 -0
- package/lib/dist/resolution/type-parameters.d.ts +11 -0
- package/lib/dist/resolution/type-parameters.d.ts.map +1 -0
- package/lib/dist/resolution/type-parameters.js +287 -0
- package/lib/dist/resolution/type-parameters.js.map +1 -0
- package/lib/dist/resolution/types.d.ts +105 -2
- package/lib/dist/resolution/types.d.ts.map +1 -1
- package/lib/dist/resolution/types.js +64 -0
- package/lib/dist/resolution/types.js.map +1 -1
- package/lib/dist/resolution/vue-router-synthesizer.d.ts +30 -0
- package/lib/dist/resolution/vue-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/vue-router-synthesizer.js +115 -0
- package/lib/dist/resolution/vue-router-synthesizer.js.map +1 -0
- package/lib/dist/search/query-paths.d.ts +50 -1
- package/lib/dist/search/query-paths.d.ts.map +1 -1
- package/lib/dist/search/query-paths.js +227 -12
- package/lib/dist/search/query-paths.js.map +1 -1
- package/lib/dist/search/query-utils.d.ts +15 -0
- package/lib/dist/search/query-utils.d.ts.map +1 -1
- package/lib/dist/search/query-utils.js +35 -7
- package/lib/dist/search/query-utils.js.map +1 -1
- package/lib/dist/sync/watch-policy.d.ts +14 -0
- package/lib/dist/sync/watch-policy.d.ts.map +1 -1
- package/lib/dist/sync/watch-policy.js +19 -0
- package/lib/dist/sync/watch-policy.js.map +1 -1
- package/lib/dist/sync/watcher.d.ts +52 -35
- package/lib/dist/sync/watcher.d.ts.map +1 -1
- package/lib/dist/sync/watcher.js +236 -100
- package/lib/dist/sync/watcher.js.map +1 -1
- package/lib/dist/sync/worktree.d.ts +22 -0
- package/lib/dist/sync/worktree.d.ts.map +1 -1
- package/lib/dist/sync/worktree.js +54 -0
- package/lib/dist/sync/worktree.js.map +1 -1
- package/lib/dist/telemetry/index.d.ts +4 -2
- package/lib/dist/telemetry/index.d.ts.map +1 -1
- package/lib/dist/telemetry/index.js +159 -66
- package/lib/dist/telemetry/index.js.map +1 -1
- package/lib/dist/types.d.ts +1 -1
- package/lib/dist/types.d.ts.map +1 -1
- package/lib/dist/types.js +1 -0
- package/lib/dist/types.js.map +1 -1
- package/lib/dist/ui-server/api/deadcode.d.ts +84 -0
- package/lib/dist/ui-server/api/deadcode.d.ts.map +1 -0
- package/lib/dist/ui-server/api/deadcode.js +136 -0
- package/lib/dist/ui-server/api/deadcode.js.map +1 -0
- package/lib/dist/ui-server/api/effects.d.ts +94 -0
- package/lib/dist/ui-server/api/effects.d.ts.map +1 -0
- package/lib/dist/ui-server/api/effects.js +527 -0
- package/lib/dist/ui-server/api/effects.js.map +1 -0
- package/lib/dist/ui-server/api/entrypoints.d.ts +92 -0
- package/lib/dist/ui-server/api/entrypoints.d.ts.map +1 -0
- package/lib/dist/ui-server/api/entrypoints.js +364 -0
- package/lib/dist/ui-server/api/entrypoints.js.map +1 -0
- package/lib/dist/ui-server/api/events.d.ts +183 -0
- package/lib/dist/ui-server/api/events.d.ts.map +1 -0
- package/lib/dist/ui-server/api/events.js +430 -0
- package/lib/dist/ui-server/api/events.js.map +1 -0
- package/lib/dist/ui-server/api/file.d.ts +66 -0
- package/lib/dist/ui-server/api/file.d.ts.map +1 -0
- package/lib/dist/ui-server/api/file.js +235 -0
- package/lib/dist/ui-server/api/file.js.map +1 -0
- package/lib/dist/ui-server/api/filecode.d.ts +126 -0
- package/lib/dist/ui-server/api/filecode.d.ts.map +1 -0
- package/lib/dist/ui-server/api/filecode.js +205 -0
- package/lib/dist/ui-server/api/filecode.js.map +1 -0
- package/lib/dist/ui-server/api/flow.d.ts +226 -0
- package/lib/dist/ui-server/api/flow.d.ts.map +1 -0
- package/lib/dist/ui-server/api/flow.js +612 -0
- package/lib/dist/ui-server/api/flow.js.map +1 -0
- package/lib/dist/ui-server/api/hierarchy.d.ts +81 -0
- package/lib/dist/ui-server/api/hierarchy.d.ts.map +1 -0
- package/lib/dist/ui-server/api/hierarchy.js +92 -0
- package/lib/dist/ui-server/api/hierarchy.js.map +1 -0
- package/lib/dist/ui-server/api/index.d.ts +90 -0
- package/lib/dist/ui-server/api/index.d.ts.map +1 -0
- package/lib/dist/ui-server/api/index.js +332 -0
- package/lib/dist/ui-server/api/index.js.map +1 -0
- package/lib/dist/ui-server/api/map.d.ts +273 -0
- package/lib/dist/ui-server/api/map.d.ts.map +1 -0
- package/lib/dist/ui-server/api/map.js +781 -0
- package/lib/dist/ui-server/api/map.js.map +1 -0
- package/lib/dist/ui-server/api/node.d.ts +81 -0
- package/lib/dist/ui-server/api/node.d.ts.map +1 -0
- package/lib/dist/ui-server/api/node.js +394 -0
- package/lib/dist/ui-server/api/node.js.map +1 -0
- package/lib/dist/ui-server/api/nodes.d.ts +25 -0
- package/lib/dist/ui-server/api/nodes.d.ts.map +1 -0
- package/lib/dist/ui-server/api/nodes.js +45 -0
- package/lib/dist/ui-server/api/nodes.js.map +1 -0
- package/lib/dist/ui-server/api/program.d.ts +139 -0
- package/lib/dist/ui-server/api/program.d.ts.map +1 -0
- package/lib/dist/ui-server/api/program.js +315 -0
- package/lib/dist/ui-server/api/program.js.map +1 -0
- package/lib/dist/ui-server/api/respond.d.ts +76 -0
- package/lib/dist/ui-server/api/respond.d.ts.map +1 -0
- package/lib/dist/ui-server/api/respond.js +186 -0
- package/lib/dist/ui-server/api/respond.js.map +1 -0
- package/lib/dist/ui-server/api/route-roots.d.ts +45 -0
- package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -0
- package/lib/dist/ui-server/api/route-roots.js +117 -0
- package/lib/dist/ui-server/api/route-roots.js.map +1 -0
- package/lib/dist/ui-server/api/routes.d.ts +61 -0
- package/lib/dist/ui-server/api/routes.d.ts.map +1 -0
- package/lib/dist/ui-server/api/routes.js +164 -0
- package/lib/dist/ui-server/api/routes.js.map +1 -0
- package/lib/dist/ui-server/api/screens.d.ts +117 -0
- package/lib/dist/ui-server/api/screens.d.ts.map +1 -0
- package/lib/dist/ui-server/api/screens.js +626 -0
- package/lib/dist/ui-server/api/screens.js.map +1 -0
- package/lib/dist/ui-server/api/search.d.ts +29 -0
- package/lib/dist/ui-server/api/search.d.ts.map +1 -0
- package/lib/dist/ui-server/api/search.js +232 -0
- package/lib/dist/ui-server/api/search.js.map +1 -0
- package/lib/dist/ui-server/api/session.d.ts +52 -0
- package/lib/dist/ui-server/api/session.d.ts.map +1 -0
- package/lib/dist/ui-server/api/session.js +196 -0
- package/lib/dist/ui-server/api/session.js.map +1 -0
- package/lib/dist/ui-server/api/source.d.ts +200 -0
- package/lib/dist/ui-server/api/source.d.ts.map +1 -0
- package/lib/dist/ui-server/api/source.js +422 -0
- package/lib/dist/ui-server/api/source.js.map +1 -0
- package/lib/dist/ui-server/api/stats.d.ts +27 -0
- package/lib/dist/ui-server/api/stats.d.ts.map +1 -0
- package/lib/dist/ui-server/api/stats.js +164 -0
- package/lib/dist/ui-server/api/stats.js.map +1 -0
- package/lib/dist/ui-server/api/steps.d.ts +274 -0
- package/lib/dist/ui-server/api/steps.d.ts.map +1 -0
- package/lib/dist/ui-server/api/steps.js +1554 -0
- package/lib/dist/ui-server/api/steps.js.map +1 -0
- package/lib/dist/ui-server/api/trail-store.d.ts +142 -0
- package/lib/dist/ui-server/api/trail-store.d.ts.map +1 -0
- package/lib/dist/ui-server/api/trail-store.js +323 -0
- package/lib/dist/ui-server/api/trail-store.js.map +1 -0
- package/lib/dist/ui-server/api/trails.d.ts +163 -0
- package/lib/dist/ui-server/api/trails.d.ts.map +1 -0
- package/lib/dist/ui-server/api/trails.js +370 -0
- package/lib/dist/ui-server/api/trails.js.map +1 -0
- package/lib/dist/ui-server/api/when.d.ts +133 -0
- package/lib/dist/ui-server/api/when.d.ts.map +1 -0
- package/lib/dist/ui-server/api/when.js +275 -0
- package/lib/dist/ui-server/api/when.js.map +1 -0
- package/lib/dist/ui-server/api/wire.d.ts +179 -0
- package/lib/dist/ui-server/api/wire.d.ts.map +1 -0
- package/lib/dist/ui-server/api/wire.js +231 -0
- package/lib/dist/ui-server/api/wire.js.map +1 -0
- package/lib/dist/ui-server/assets.d.ts +40 -0
- package/lib/dist/ui-server/assets.d.ts.map +1 -0
- package/lib/dist/ui-server/assets.js +110 -0
- package/lib/dist/ui-server/assets.js.map +1 -0
- package/lib/dist/ui-server/constants.d.ts +32 -0
- package/lib/dist/ui-server/constants.d.ts.map +1 -0
- package/lib/dist/ui-server/constants.js +35 -0
- package/lib/dist/ui-server/constants.js.map +1 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.d.ts +28 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.js +139 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -0
- package/lib/dist/ui-server/highlight/index.d.ts +113 -0
- package/lib/dist/ui-server/highlight/index.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/index.js +312 -0
- package/lib/dist/ui-server/highlight/index.js.map +1 -0
- package/lib/dist/ui-server/highlight/languages.d.ts +36 -0
- package/lib/dist/ui-server/highlight/languages.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/languages.js +50 -0
- package/lib/dist/ui-server/highlight/languages.js.map +1 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.d.ts +7 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.js +20 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -0
- package/lib/dist/ui-server/index.d.ts +92 -0
- package/lib/dist/ui-server/index.d.ts.map +1 -0
- package/lib/dist/ui-server/index.js +399 -0
- package/lib/dist/ui-server/index.js.map +1 -0
- package/lib/dist/ui-server/open-browser.d.ts +31 -0
- package/lib/dist/ui-server/open-browser.d.ts.map +1 -0
- package/lib/dist/ui-server/open-browser.js +79 -0
- package/lib/dist/ui-server/open-browser.js.map +1 -0
- package/lib/dist/ui-server/security.d.ts +127 -0
- package/lib/dist/ui-server/security.d.ts.map +1 -0
- package/lib/dist/ui-server/security.js +332 -0
- package/lib/dist/ui-server/security.js.map +1 -0
- package/lib/dist/ui-server/static.d.ts +45 -0
- package/lib/dist/ui-server/static.d.ts.map +1 -0
- package/lib/dist/ui-server/static.js +165 -0
- package/lib/dist/ui-server/static.js.map +1 -0
- package/lib/dist/upgrade/index.d.ts +43 -5
- package/lib/dist/upgrade/index.d.ts.map +1 -1
- package/lib/dist/upgrade/index.js +157 -35
- package/lib/dist/upgrade/index.js.map +1 -1
- package/lib/dist/utils.d.ts +14 -2
- package/lib/dist/utils.d.ts.map +1 -1
- package/lib/dist/utils.js +25 -10
- package/lib/dist/utils.js.map +1 -1
- package/lib/dist/viewer/assets/archivo-latin-ext-wght-normal-C4zznr8T.woff2 +0 -0
- package/lib/dist/viewer/assets/archivo-latin-wght-normal-E0tuGl4L.woff2 +0 -0
- package/lib/dist/viewer/assets/archivo-vietnamese-wght-normal-XAtsl5Q_.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-2syK4fUT.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-CBJ8pzag.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-B4oTjJdl.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-CBjNughH.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-italic-66oory27.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-B7_fu1kp.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-Bg0ZHwF4.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-D6eaYXMU.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-DRuN92E5.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
- package/lib/dist/viewer/assets/index-BSGpxBr9.js +99 -0
- package/lib/dist/viewer/assets/index-CF9yvio6.css +1 -0
- package/lib/dist/viewer/index.html +16 -0
- package/lib/dist/worker-teardown.d.ts +48 -0
- package/lib/dist/worker-teardown.d.ts.map +1 -0
- package/lib/dist/worker-teardown.js +100 -0
- package/lib/dist/worker-teardown.js.map +1 -0
- package/lib/kernel/codegraph-kernel.node +2 -2
- package/lib/node_modules/.package-lock.json +4 -4
- package/lib/node_modules/picomatch/README.md +56 -51
- package/lib/node_modules/picomatch/lib/constants.js +4 -0
- package/lib/node_modules/picomatch/lib/parse.js +341 -1
- package/lib/node_modules/picomatch/lib/picomatch.js +25 -5
- package/lib/node_modules/picomatch/lib/scan.js +30 -18
- package/lib/node_modules/picomatch/package.json +4 -4
- package/lib/package.json +9 -2
- package/package.json +1 -1
package/lib/dist/index.js
CHANGED
|
@@ -46,6 +46,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.CodeGraph = exports.MCPServer = exports.LockUnavailableError = exports.FileWatcher = exports.MemoryMonitor = exports.throttle = exports.debounce = exports.processInBatches = exports.FileLock = exports.Mutex = exports.defaultLogger = exports.silentLogger = exports.getLogger = exports.setLogger = exports.ConfigError = exports.VectorError = exports.SearchError = exports.DatabaseError = exports.ParseError = exports.FileError = exports.CodeGraphError = exports.loadAllGrammars = exports.loadGrammarsForLanguages = exports.initGrammars = exports.getSupportedLanguages = exports.isGrammarLoaded = exports.isLanguageSupported = exports.detectLanguage = exports.CODEGRAPH_DIR = exports.findNearestCodeGraphRoot = exports.isInitialized = exports.getCodeGraphDir = exports.QueryBuilder = exports.DatabaseConnection = exports.getDatabasePath = void 0;
|
|
49
|
+
const fs = __importStar(require("fs"));
|
|
49
50
|
const path = __importStar(require("path"));
|
|
50
51
|
const db_1 = require("./db");
|
|
51
52
|
const wal_valve_1 = require("./db/wal-valve");
|
|
@@ -53,6 +54,7 @@ const queries_1 = require("./db/queries");
|
|
|
53
54
|
const directory_1 = require("./directory");
|
|
54
55
|
const extraction_1 = require("./extraction");
|
|
55
56
|
const resolution_1 = require("./resolution");
|
|
57
|
+
const callback_synthesizer_1 = require("./resolution/callback-synthesizer");
|
|
56
58
|
const graph_1 = require("./graph");
|
|
57
59
|
const context_1 = require("./context");
|
|
58
60
|
const utils_1 = require("./utils");
|
|
@@ -200,6 +202,23 @@ class CodeGraph {
|
|
|
200
202
|
this.traverser = new graph_1.GraphTraverser(this.queries);
|
|
201
203
|
this.contextBuilder = (0, context_1.createContextBuilder)(this.projectRoot, this.queries, this.traverser);
|
|
202
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Set when this instance followed a database replaced on disk (#1902): the
|
|
207
|
+
* next sync that can run reconciles the whole tree, because whatever the old
|
|
208
|
+
* handle absorbed since the rebuild never reached the new file.
|
|
209
|
+
*/
|
|
210
|
+
pendingFullReconcile = false;
|
|
211
|
+
/** How long a recreated, not-yet-indexed database is treated as a rebuild in progress. */
|
|
212
|
+
static RECREATE_GRACE_MS = 120_000;
|
|
213
|
+
/** The database file at the path was written within the recreate grace window. */
|
|
214
|
+
isFreshlyRecreated() {
|
|
215
|
+
try {
|
|
216
|
+
return Date.now() - fs.statSync((0, db_1.getDatabasePath)(this.projectRoot)).mtimeMs < CodeGraph.RECREATE_GRACE_MS;
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
203
222
|
/**
|
|
204
223
|
* Heal a stale database handle in place. If `.codegraph/` was removed and
|
|
205
224
|
* recreated at the SAME path while this instance held the DB open — a git
|
|
@@ -213,19 +232,33 @@ class CodeGraph {
|
|
|
213
232
|
*
|
|
214
233
|
* POSIX-only in practice: `isReplacedOnDisk` never fires on Windows (an open
|
|
215
234
|
* file can't be unlinked there, and st_ino is unreliable).
|
|
235
|
+
*
|
|
236
|
+
* Refuses (returns false) while an index/sync holds the index mutex: closing
|
|
237
|
+
* the handle that run is writing through would break it mid-flight. `sync()`
|
|
238
|
+
* performs the same check itself once it holds the mutex (#1902), so the
|
|
239
|
+
* replaced file is still picked up — by that sync, or by the caller's retry.
|
|
216
240
|
*/
|
|
217
241
|
reopenIfReplaced() {
|
|
242
|
+
if (this.indexMutex.isLocked())
|
|
243
|
+
return false;
|
|
244
|
+
return this.reopenReplacedDatabase();
|
|
245
|
+
}
|
|
246
|
+
/** The body of {@link reopenIfReplaced}, without the in-flight-sync guard. */
|
|
247
|
+
reopenReplacedDatabase() {
|
|
218
248
|
if (!this.db.isReplacedOnDisk())
|
|
219
249
|
return false;
|
|
220
250
|
const dbPath = this.db.getPath();
|
|
221
251
|
// Open the live file FIRST — if that throws (e.g. mid-recreate), the old
|
|
222
252
|
// handle stays in place and the caller retries on the next query, rather
|
|
223
253
|
// than leaving this instance with no connection at all.
|
|
224
|
-
const fresh = db_1.DatabaseConnection.open(dbPath);
|
|
254
|
+
const fresh = db_1.DatabaseConnection.open(dbPath, { readOnly: this.db.readOnly });
|
|
225
255
|
const stale = this.db;
|
|
226
256
|
this.db = fresh;
|
|
227
257
|
this.queries = new queries_1.QueryBuilder(fresh.getDb());
|
|
228
258
|
this.wireLayers();
|
|
259
|
+
// Whoever reopened — a sync, or a tool call's self-heal — the next sync
|
|
260
|
+
// must reconcile the whole tree (#1902).
|
|
261
|
+
this.pendingFullReconcile = true;
|
|
229
262
|
// Releasing the dead handle also frees the leaked db/-wal/-shm fds that were
|
|
230
263
|
// pinning the unlinked inode (#925).
|
|
231
264
|
try {
|
|
@@ -304,12 +337,18 @@ class CodeGraph {
|
|
|
304
337
|
}
|
|
305
338
|
// Open database
|
|
306
339
|
const dbPath = (0, db_1.getDatabasePath)(resolvedRoot);
|
|
307
|
-
const db = db_1.DatabaseConnection.open(dbPath);
|
|
340
|
+
const db = db_1.DatabaseConnection.open(dbPath, { readOnly: options.readOnly });
|
|
308
341
|
const queries = new queries_1.QueryBuilder(db.getDb());
|
|
309
342
|
const instance = new CodeGraph(db, queries, resolvedRoot);
|
|
310
343
|
// Sync if requested
|
|
311
|
-
if (options.sync) {
|
|
312
|
-
|
|
344
|
+
if (options.sync && !options.readOnly) {
|
|
345
|
+
try {
|
|
346
|
+
await instance.sync();
|
|
347
|
+
}
|
|
348
|
+
catch (err) {
|
|
349
|
+
instance.destroy();
|
|
350
|
+
throw err;
|
|
351
|
+
}
|
|
313
352
|
}
|
|
314
353
|
return instance;
|
|
315
354
|
}
|
|
@@ -358,7 +397,7 @@ class CodeGraph {
|
|
|
358
397
|
/**
|
|
359
398
|
* Open synchronously (without sync)
|
|
360
399
|
*/
|
|
361
|
-
static openSync(projectRoot) {
|
|
400
|
+
static openSync(projectRoot, options = {}) {
|
|
362
401
|
const resolvedRoot = path.resolve(projectRoot);
|
|
363
402
|
// Check if initialized
|
|
364
403
|
if (!(0, directory_1.isInitialized)(resolvedRoot)) {
|
|
@@ -371,7 +410,7 @@ class CodeGraph {
|
|
|
371
410
|
}
|
|
372
411
|
// Open database
|
|
373
412
|
const dbPath = (0, db_1.getDatabasePath)(resolvedRoot);
|
|
374
|
-
const db = db_1.DatabaseConnection.open(dbPath);
|
|
413
|
+
const db = db_1.DatabaseConnection.open(dbPath, { readOnly: options.readOnly });
|
|
375
414
|
const queries = new queries_1.QueryBuilder(db.getDb());
|
|
376
415
|
return new CodeGraph(db, queries, resolvedRoot);
|
|
377
416
|
}
|
|
@@ -449,6 +488,7 @@ class CodeGraph {
|
|
|
449
488
|
walValve.start();
|
|
450
489
|
}
|
|
451
490
|
try {
|
|
491
|
+
const gitState = this.orchestrator.beginGitIndexState(true);
|
|
452
492
|
const before = this.queries.getNodeAndEdgeCount();
|
|
453
493
|
// Mark the index as in-flight BEFORE any writes: a run killed
|
|
454
494
|
// mid-index (OOM, SIGKILL, the #850 liveness watchdog) leaves this
|
|
@@ -624,6 +664,10 @@ class CodeGraph {
|
|
|
624
664
|
}
|
|
625
665
|
catch { /* metadata is advisory — never fail an index over it */ }
|
|
626
666
|
}
|
|
667
|
+
if (result.success && result.filesErrored === 0 &&
|
|
668
|
+
(result.filesDiscovered === undefined || result.filesIndexed + result.filesSkipped >= result.filesDiscovered)) {
|
|
669
|
+
this.orchestrator.finishGitIndexState(gitState, true);
|
|
670
|
+
}
|
|
627
671
|
// Reconcile the scan's ground truth against what the pipeline
|
|
628
672
|
// accounted for. A shortfall means files were silently dropped
|
|
629
673
|
// (observed in the wild: a run under heavy load came up 37 files
|
|
@@ -710,7 +754,8 @@ class CodeGraph {
|
|
|
710
754
|
});
|
|
711
755
|
}
|
|
712
756
|
/**
|
|
713
|
-
* Sync with current file state (incremental update)
|
|
757
|
+
* Sync with current file state (incremental update).
|
|
758
|
+
* Throws LockUnavailableError if the cross-process write lock is unavailable.
|
|
714
759
|
*
|
|
715
760
|
* Uses a mutex to prevent concurrent indexing operations.
|
|
716
761
|
*/
|
|
@@ -719,8 +764,40 @@ class CodeGraph {
|
|
|
719
764
|
try {
|
|
720
765
|
this.fileLock.acquire();
|
|
721
766
|
}
|
|
722
|
-
catch {
|
|
723
|
-
|
|
767
|
+
catch (err) {
|
|
768
|
+
throw new sync_1.LockUnavailableError(`Sync could not acquire the file lock; retry when the index is available. ${err instanceof Error ? err.message : String(err)}`);
|
|
769
|
+
}
|
|
770
|
+
// A full rebuild in another process (`codegraph index` → recreate)
|
|
771
|
+
// unlinks the database and creates a new file at the same path. A
|
|
772
|
+
// long-lived instance — the MCP daemon's watcher — would otherwise keep
|
|
773
|
+
// "syncing" into the dead inode, and nothing it wrote there is visible
|
|
774
|
+
// to anyone (#1902). Follow the path before writing (one stat), and
|
|
775
|
+
// widen a scoped sync to a full one: whatever the old handle absorbed
|
|
776
|
+
// since the rebuild is gone, so the new file has to be reconciled whole.
|
|
777
|
+
// If the reopen fails (the rebuild is mid-way), report lock contention
|
|
778
|
+
// so the watcher keeps its pending files and retries.
|
|
779
|
+
try {
|
|
780
|
+
this.reopenReplacedDatabase();
|
|
781
|
+
}
|
|
782
|
+
catch (err) {
|
|
783
|
+
this.fileLock.release();
|
|
784
|
+
throw new sync_1.LockUnavailableError(`Sync could not open the rebuilt index yet; retry when the rebuild finishes. ${err instanceof Error ? err.message : String(err)}`);
|
|
785
|
+
}
|
|
786
|
+
if (this.pendingFullReconcile) {
|
|
787
|
+
// `codegraph index` recreates the file, THEN takes the write lock in
|
|
788
|
+
// indexAll. A sync landing in that gap would otherwise run a full
|
|
789
|
+
// reconcile of the empty file and hold the lock the rebuild is about
|
|
790
|
+
// to ask for. A fresh file with no index_state yet is that rebuild:
|
|
791
|
+
// step aside (lock contention, the watcher retries) and reconcile in
|
|
792
|
+
// full once it is done. Bounded, so a rebuild that died before
|
|
793
|
+
// indexing does not park the watcher forever.
|
|
794
|
+
if (this.getIndexState() === null && this.isFreshlyRecreated()) {
|
|
795
|
+
this.fileLock.release();
|
|
796
|
+
throw new sync_1.LockUnavailableError('A rebuild of this index is in progress; retry when it finishes.');
|
|
797
|
+
}
|
|
798
|
+
// Cleared only once this run completes (below): a sync that throws
|
|
799
|
+
// must leave the full catch-up for the next one.
|
|
800
|
+
options = { ...options, paths: undefined };
|
|
724
801
|
}
|
|
725
802
|
// Defer WAL auto-checkpointing for the whole incremental run, exactly
|
|
726
803
|
// as indexAll does for the bulk path (#1231): sync's store loop and its
|
|
@@ -755,7 +832,28 @@ class CodeGraph {
|
|
|
755
832
|
return false;
|
|
756
833
|
}
|
|
757
834
|
})();
|
|
758
|
-
|
|
835
|
+
// Writer-side backstop for deferred WAL checkpointing (#1539): sync
|
|
836
|
+
// previously armed the valve but never called backpressure(), so the
|
|
837
|
+
// hard/file caps were never enforced during daemon catch-up — only
|
|
838
|
+
// timer-driven PASSIVE checkpoints ran, and a query-pool reader could
|
|
839
|
+
// pin frames while the WAL grew without a bound.
|
|
840
|
+
const backpressure = walValve ? () => walValve.backpressure() : undefined;
|
|
841
|
+
const fullReconcile = !options.paths || options.paths.length === 0;
|
|
842
|
+
const gitState = this.orchestrator.beginGitIndexState(fullReconcile);
|
|
843
|
+
// An interrupted index may have absorbed its changed files before
|
|
844
|
+
// resolution/synthesis. Detect those orphans BEFORE this sync adds refs.
|
|
845
|
+
let refreshSynthesis = this.queries.getMetadata('synthesis_pending') === '1' ||
|
|
846
|
+
this.queries.getUnresolvedReferencesCount() > 0;
|
|
847
|
+
if (refreshSynthesis)
|
|
848
|
+
this.queries.setMetadata('synthesis_pending', '1');
|
|
849
|
+
const result = await this.orchestrator.sync(options.onProgress, options.paths, backpressure, (filePath, content) => {
|
|
850
|
+
if (!refreshSynthesis && (this.queries.hasSynthesizedEdgesTouchingFile(filePath) ||
|
|
851
|
+
this.queries.wasSynthesisInput(filePath) ||
|
|
852
|
+
(content !== undefined && (0, callback_synthesizer_1.hasSynthesisPattern)(filePath, content)))) {
|
|
853
|
+
refreshSynthesis = true;
|
|
854
|
+
this.queries.setMetadata('synthesis_pending', '1');
|
|
855
|
+
}
|
|
856
|
+
});
|
|
759
857
|
// Fold the store phase's WAL BEFORE the post-store reads below
|
|
760
858
|
// (resolution reads on the main thread) — same rationale as
|
|
761
859
|
// indexAll's fold between store and resolution.
|
|
@@ -846,7 +944,7 @@ class CodeGraph {
|
|
|
846
944
|
current: done,
|
|
847
945
|
total: totalPasses,
|
|
848
946
|
});
|
|
849
|
-
});
|
|
947
|
+
}, backpressure, false);
|
|
850
948
|
}
|
|
851
949
|
}
|
|
852
950
|
// Re-open resolution edges this sync may have invalidated ELSEWHERE in
|
|
@@ -882,6 +980,9 @@ class CodeGraph {
|
|
|
882
980
|
// Grind them down with the batched resolver; this also makes a bare
|
|
883
981
|
// `codegraph sync` the recovery command for a wedged index. On a
|
|
884
982
|
// healthy index this is one COUNT query.
|
|
983
|
+
result.pendingRefsProcessed = 0;
|
|
984
|
+
result.pendingRefsResolved = 0;
|
|
985
|
+
result.pendingRefsUnresolved = 0;
|
|
885
986
|
const orphanCount = this.queries.getUnresolvedReferencesCount();
|
|
886
987
|
if (orphanCount > 0) {
|
|
887
988
|
options.onProgress?.({
|
|
@@ -889,7 +990,7 @@ class CodeGraph {
|
|
|
889
990
|
current: 0,
|
|
890
991
|
total: orphanCount,
|
|
891
992
|
});
|
|
892
|
-
await this.resolveReferencesBatched((current, total) => {
|
|
993
|
+
const recovery = await this.resolveReferencesBatched((current, total) => {
|
|
893
994
|
options.onProgress?.({
|
|
894
995
|
phase: 'resolving',
|
|
895
996
|
current,
|
|
@@ -901,7 +1002,10 @@ class CodeGraph {
|
|
|
901
1002
|
current: done,
|
|
902
1003
|
total: totalPasses,
|
|
903
1004
|
});
|
|
904
|
-
});
|
|
1005
|
+
}, backpressure, false);
|
|
1006
|
+
result.pendingRefsProcessed = recovery.stats.total;
|
|
1007
|
+
result.pendingRefsResolved = recovery.stats.resolved;
|
|
1008
|
+
result.pendingRefsUnresolved = recovery.stats.unresolved;
|
|
905
1009
|
}
|
|
906
1010
|
if (filesChanged || orphanCount > 0) {
|
|
907
1011
|
// Second pass: chained calls whose method lives on a supertype the
|
|
@@ -912,9 +1016,15 @@ class CodeGraph {
|
|
|
912
1016
|
// member is inherited from a supertype (#808).
|
|
913
1017
|
await this.resolver.resolveDeferredThisMemberRefs();
|
|
914
1018
|
}
|
|
1019
|
+
if (refreshSynthesis) {
|
|
1020
|
+
await this.resolver.refreshSynthesis(this.db.getPath(), (done, total) => {
|
|
1021
|
+
options.onProgress?.({ phase: 'linking', current: done, total });
|
|
1022
|
+
}, backpressure);
|
|
1023
|
+
this.queries.setMetadata('synthesis_pending', '0');
|
|
1024
|
+
}
|
|
915
1025
|
// Refresh planner stats + checkpoint the WAL after bulk writes.
|
|
916
1026
|
// Off-thread — see indexAll's call site.
|
|
917
|
-
if (filesChanged || result.filesRemoved > 0 || orphanCount > 0) {
|
|
1027
|
+
if (filesChanged || result.filesRemoved > 0 || orphanCount > 0 || refreshSynthesis) {
|
|
918
1028
|
await this.db.runMaintenance();
|
|
919
1029
|
}
|
|
920
1030
|
// Heal the segment vocabulary on indexes built before the table
|
|
@@ -932,13 +1042,15 @@ class CodeGraph {
|
|
|
932
1042
|
// A killed full index leaves this marker at `indexing`. Sync repairs
|
|
933
1043
|
// missing files, pending refs, and (on open) dropped indexes, so a
|
|
934
1044
|
// successful recovery must also close the metadata state (#1556).
|
|
935
|
-
const fullReconcile = !options.paths || options.paths.length === 0;
|
|
936
1045
|
if (fullReconcile && this.getIndexState() === 'indexing') {
|
|
937
1046
|
try {
|
|
938
1047
|
this.queries.setMetadata('index_state', 'complete');
|
|
939
1048
|
}
|
|
940
1049
|
catch { /* advisory */ }
|
|
941
1050
|
}
|
|
1051
|
+
this.orchestrator.finishGitIndexState(gitState, fullReconcile, result.failedFilePaths);
|
|
1052
|
+
if (fullReconcile && result.filesChecked > 0)
|
|
1053
|
+
this.pendingFullReconcile = false;
|
|
942
1054
|
return result;
|
|
943
1055
|
}
|
|
944
1056
|
finally {
|
|
@@ -969,6 +1081,29 @@ class CodeGraph {
|
|
|
969
1081
|
// ===========================================================================
|
|
970
1082
|
// File Watching
|
|
971
1083
|
// ===========================================================================
|
|
1084
|
+
/**
|
|
1085
|
+
* Whether an OS watcher event points at a file whose index metadata is still
|
|
1086
|
+
* current. Used on Windows to discard NTFS last-access notifications, which
|
|
1087
|
+
* libuv reports through fs.watch as ordinary change events (#1451).
|
|
1088
|
+
*/
|
|
1089
|
+
isIndexedFileStateCurrent(filePath) {
|
|
1090
|
+
const tracked = this.queries.getFileByPath(filePath);
|
|
1091
|
+
if (!tracked)
|
|
1092
|
+
return false;
|
|
1093
|
+
try {
|
|
1094
|
+
const stat = fs.statSync(path.join(this.projectRoot, filePath));
|
|
1095
|
+
return (stat.isFile() &&
|
|
1096
|
+
Number.isFinite(stat.mtimeMs) &&
|
|
1097
|
+
Number.isFinite(tracked.modifiedAt) &&
|
|
1098
|
+
stat.size === tracked.size &&
|
|
1099
|
+
Math.floor(stat.mtimeMs) === Math.floor(tracked.modifiedAt));
|
|
1100
|
+
}
|
|
1101
|
+
catch {
|
|
1102
|
+
// Missing/inaccessible files must still reach sync so removals and
|
|
1103
|
+
// transient filesystem failures are reconciled rather than hidden.
|
|
1104
|
+
return false;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
972
1107
|
/**
|
|
973
1108
|
* Start watching for file changes and auto-syncing.
|
|
974
1109
|
*
|
|
@@ -983,17 +1118,11 @@ class CodeGraph {
|
|
|
983
1118
|
return true;
|
|
984
1119
|
this.watcher = new sync_1.FileWatcher(this.projectRoot, async (paths) => {
|
|
985
1120
|
const result = await this.sync({ paths });
|
|
986
|
-
// sync() returns this exact zero-shape iff it failed to acquire the
|
|
987
|
-
// file lock (a real empty sync always has filesChecked > 0 because
|
|
988
|
-
// scanDirectory ran). Surface that to the watcher as a typed error
|
|
989
|
-
// so it keeps pendingFiles + reschedules instead of clearing them
|
|
990
|
-
// (#449).
|
|
991
|
-
if (result.filesChecked === 0 && result.durationMs === 0) {
|
|
992
|
-
throw new sync_1.LockUnavailableError();
|
|
993
|
-
}
|
|
994
1121
|
const filesChanged = result.filesAdded + result.filesModified + result.filesRemoved;
|
|
995
1122
|
return { filesChanged, durationMs: result.durationMs };
|
|
996
|
-
}, options
|
|
1123
|
+
}, options, process.platform === 'win32'
|
|
1124
|
+
? (filePath) => this.isIndexedFileStateCurrent(filePath)
|
|
1125
|
+
: undefined);
|
|
997
1126
|
return this.watcher.start();
|
|
998
1127
|
}
|
|
999
1128
|
/**
|
|
@@ -1012,12 +1141,11 @@ class CodeGraph {
|
|
|
1012
1141
|
return this.watcher?.isActive() ?? false;
|
|
1013
1142
|
}
|
|
1014
1143
|
/**
|
|
1015
|
-
* True once live watching has
|
|
1016
|
-
*
|
|
1017
|
-
*
|
|
1018
|
-
* a
|
|
1019
|
-
*
|
|
1020
|
-
* `getPendingFiles()` goes empty once watching stops (#876).
|
|
1144
|
+
* True once live watching has degraded, or while a re-armed watcher has not
|
|
1145
|
+
* completed its full catch-up. Distinct from `!isWatching()`: a stopped or
|
|
1146
|
+
* never-started watcher is inactive but NOT degraded. MCP tools use this for
|
|
1147
|
+
* a whole-index stale notice, since pending files are lost when watching
|
|
1148
|
+
* stops (#876, #1959).
|
|
1021
1149
|
*/
|
|
1022
1150
|
isWatcherDegraded() {
|
|
1023
1151
|
return this.watcher?.isDegraded() ?? false;
|
|
@@ -1026,6 +1154,14 @@ class CodeGraph {
|
|
|
1026
1154
|
getWatcherDegradedReason() {
|
|
1027
1155
|
return this.watcher?.getDegradedReason() ?? null;
|
|
1028
1156
|
}
|
|
1157
|
+
/** Re-arm a lock-degraded watcher; its stale state persists until a full sync. */
|
|
1158
|
+
rearmWatcherAfterLockContention() {
|
|
1159
|
+
return this.watcher?.rearmAfterLockContention() ?? false;
|
|
1160
|
+
}
|
|
1161
|
+
/** True while a re-armed watcher owes a full reconcile of missed changes. */
|
|
1162
|
+
isWatcherRecovering() {
|
|
1163
|
+
return this.watcher?.isRecoveringFromLock() ?? false;
|
|
1164
|
+
}
|
|
1029
1165
|
/**
|
|
1030
1166
|
* Files seen by the file watcher since the last successful sync —
|
|
1031
1167
|
* the per-file "stale" signal MCP tools attach to responses so an agent
|
|
@@ -1063,6 +1199,40 @@ class CodeGraph {
|
|
|
1063
1199
|
getLastIndexedAt() {
|
|
1064
1200
|
return this.queries.getLastIndexedAt();
|
|
1065
1201
|
}
|
|
1202
|
+
/**
|
|
1203
|
+
* How far the last sync got and how many files it left behind — the cheapest
|
|
1204
|
+
* marker of "has this index moved". One query; safe to call on every
|
|
1205
|
+
* filesystem event a live viewer sees.
|
|
1206
|
+
*/
|
|
1207
|
+
getIndexRevision() {
|
|
1208
|
+
return this.queries.getIndexRevision();
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* Files re-indexed strictly after `since`, newest first — what a sync just
|
|
1212
|
+
* picked up. `total` is the real count, `paths` is capped at `limit`.
|
|
1213
|
+
*/
|
|
1214
|
+
getFilesIndexedSince(since, limit) {
|
|
1215
|
+
return this.queries.getFilesIndexedSince(since, limit);
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Forget everything held in memory about rows another process may have
|
|
1219
|
+
* changed.
|
|
1220
|
+
*
|
|
1221
|
+
* The query layer keeps an LRU of nodes by id, invalidated by writes made
|
|
1222
|
+
* through THIS instance — which is exactly right for a process that owns the
|
|
1223
|
+
* index, and wrong for one that is only reading a database somebody else is
|
|
1224
|
+
* writing. A long-lived reader (the `codegraph ui` server, a daemon holding a
|
|
1225
|
+
* graph open across an agent's edits) will otherwise answer `getNode(id)`
|
|
1226
|
+
* with a row a sync deleted minutes ago, while every SQL-backed query beside
|
|
1227
|
+
* it reports the truth — a disagreement that reads as a bug in whichever
|
|
1228
|
+
* screen shows both.
|
|
1229
|
+
*
|
|
1230
|
+
* Cheap (clearing a bounded Map) and safe to call whenever the database file
|
|
1231
|
+
* looks like it moved.
|
|
1232
|
+
*/
|
|
1233
|
+
dropReadCaches() {
|
|
1234
|
+
this.queries.clearCache();
|
|
1235
|
+
}
|
|
1066
1236
|
/**
|
|
1067
1237
|
* Completeness of the last full index run. `'complete'` is the only good
|
|
1068
1238
|
* state. `'indexing'` after the fact means a run was killed mid-index (OOM,
|
|
@@ -1136,7 +1306,7 @@ class CodeGraph {
|
|
|
1136
1306
|
// resolution is timer-driven passive checkpoints, which the pool's
|
|
1137
1307
|
// continuous reads keep perpetually partial — the WAL then accretes the
|
|
1138
1308
|
// whole phase's write volume (22GB on a 4.6GB DB at kernel scale).
|
|
1139
|
-
backpressure) {
|
|
1309
|
+
backpressure, synthesize = true) {
|
|
1140
1310
|
return this.resolver.resolveAndPersistBatched(onProgress, undefined, onSynthesisProgress, {
|
|
1141
1311
|
dbPath: this.db.getPath(),
|
|
1142
1312
|
// Bulk-edge-load hooks: on big runs the resolver drops the non-unique
|
|
@@ -1146,14 +1316,15 @@ class CodeGraph {
|
|
|
1146
1316
|
// just degrade to scans until the recreate.
|
|
1147
1317
|
bulkEdgeLoad: {
|
|
1148
1318
|
begin: () => this.db.beginBulkEdgeLoad(),
|
|
1149
|
-
end: () => this.db.endBulkEdgeLoad(),
|
|
1319
|
+
end: () => this.db.endBulkEdgeLoad({ deferSynthesisSite: true }),
|
|
1320
|
+
deferred: () => this.db.createSynthesisSiteIndex(),
|
|
1150
1321
|
},
|
|
1151
1322
|
refIndexLoad: {
|
|
1152
1323
|
begin: () => this.db.beginBulkRefLoad(),
|
|
1153
1324
|
end: () => this.db.endBulkRefLoad(),
|
|
1154
1325
|
},
|
|
1155
1326
|
backpressure,
|
|
1156
|
-
});
|
|
1327
|
+
}, synthesize);
|
|
1157
1328
|
}
|
|
1158
1329
|
/**
|
|
1159
1330
|
* References extracted but never attempted by a resolution pass. Zero on a
|
|
@@ -1215,12 +1386,188 @@ class CodeGraph {
|
|
|
1215
1386
|
getNode(id) {
|
|
1216
1387
|
return this.queries.getNodeById(id);
|
|
1217
1388
|
}
|
|
1389
|
+
/**
|
|
1390
|
+
* Get many nodes by id in ONE round-trip (LRU-cache aware).
|
|
1391
|
+
*
|
|
1392
|
+
* The batch form of {@link getNode}. Anything resolving a list of edges to
|
|
1393
|
+
* their endpoints — a caller list, a callee rail, an impact set — must use
|
|
1394
|
+
* this rather than a `getNode` per edge: a symbol with 500 callers is 500
|
|
1395
|
+
* queries otherwise. Ids that name nothing are simply absent from the map.
|
|
1396
|
+
*/
|
|
1397
|
+
getNodesByIds(ids) {
|
|
1398
|
+
return this.queries.getNodesByIds(ids);
|
|
1399
|
+
}
|
|
1400
|
+
/**
|
|
1401
|
+
* Every symbol carrying an exact qualified name.
|
|
1402
|
+
*
|
|
1403
|
+
* The identity that survives a re-index. A node's id contains its start line,
|
|
1404
|
+
* so any edit ABOVE a symbol gives it a different id — anything that has to
|
|
1405
|
+
* name the same symbol across two indexes (a saved trail, a bookmark, a
|
|
1406
|
+
* review comment) has to key on this instead, and then disambiguate the
|
|
1407
|
+
* result by kind and file. Index-backed; unlike
|
|
1408
|
+
* {@link GraphQueryManager.findByQualifiedName} it takes no pattern and scans
|
|
1409
|
+
* nothing.
|
|
1410
|
+
*/
|
|
1411
|
+
getNodesByQualifiedName(qualifiedName) {
|
|
1412
|
+
return this.queries.getNodesByQualifiedNameExact(qualifiedName);
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* Outgoing edges for many source nodes at once — the batch form of
|
|
1416
|
+
* {@link getOutgoingEdges}. See {@link QueryBuilder.getOutgoingEdgesFrom}.
|
|
1417
|
+
*/
|
|
1418
|
+
getOutgoingEdgesFrom(nodeIds, kinds) {
|
|
1419
|
+
return this.queries.getOutgoingEdgesFrom(nodeIds, kinds);
|
|
1420
|
+
}
|
|
1421
|
+
/**
|
|
1422
|
+
* Fan-in (incoming edge count) for many nodes at once — the "hub" signal,
|
|
1423
|
+
* without a query per node. See {@link QueryBuilder.countIncomingEdges}.
|
|
1424
|
+
*/
|
|
1425
|
+
getFanIn(ids) {
|
|
1426
|
+
return this.queries.countIncomingEdges(ids);
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Incoming edges for many target nodes at once — the mirror of
|
|
1430
|
+
* {@link getOutgoingEdgesFrom}. See {@link QueryBuilder.getIncomingEdgesTo}.
|
|
1431
|
+
*/
|
|
1432
|
+
getIncomingEdgesTo(nodeIds, kinds) {
|
|
1433
|
+
return this.queries.getIncomingEdgesTo(nodeIds, kinds);
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* Fan-out (outgoing edge count) for many nodes at once — the mirror of
|
|
1437
|
+
* {@link getFanIn}. See {@link QueryBuilder.countOutgoingEdges}.
|
|
1438
|
+
*/
|
|
1439
|
+
getFanOut(ids) {
|
|
1440
|
+
return this.queries.countOutgoingEdges(ids);
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* Symbols nothing in the index points at, by kind — the candidate set the
|
|
1444
|
+
* dead code report (`src/graph/dead-code.ts`) applies its exclusions to.
|
|
1445
|
+
*
|
|
1446
|
+
* Every edge kind except `contains` counts as a reference, so a method is
|
|
1447
|
+
* not "reached" by the class that holds it. An unreferenced symbol is not
|
|
1448
|
+
* yet a dead one: see {@link buildDeadCodeReport}.
|
|
1449
|
+
*/
|
|
1450
|
+
getUnreferencedNodes(kinds, limit) {
|
|
1451
|
+
return this.queries.getUnreferencedNodes(kinds, limit);
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* Which of the given names are carried by more than one symbol, at least one
|
|
1455
|
+
* of which something references — the names a "nothing reaches this" claim
|
|
1456
|
+
* must not be made about, because the resolver may have picked the twin.
|
|
1457
|
+
*/
|
|
1458
|
+
getAmbiguousReferencedNames(names) {
|
|
1459
|
+
return this.queries.getAmbiguousReferencedNames(names);
|
|
1460
|
+
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Which of the given languages this index records an export marker for. A
|
|
1463
|
+
* language with none has no "reachable from outside" signal at all.
|
|
1464
|
+
*/
|
|
1465
|
+
getLanguagesWithExports(languages) {
|
|
1466
|
+
return this.queries.getLanguagesWithExports(languages);
|
|
1467
|
+
}
|
|
1468
|
+
/**
|
|
1469
|
+
* Which of the given names the index holds an unresolved reference to — the
|
|
1470
|
+
* resolver saw the name and could not decide what it meant. A symbol with
|
|
1471
|
+
* such a name can never be called unreferenced.
|
|
1472
|
+
*/
|
|
1473
|
+
getUnresolvedNamesAmong(names) {
|
|
1474
|
+
return this.queries.getUnresolvedNamesAmong(names);
|
|
1475
|
+
}
|
|
1476
|
+
/**
|
|
1477
|
+
* Which of the given symbols extend or implement a type outside the index —
|
|
1478
|
+
* an ancestor the resolver could not follow, so it has no edge (#1973).
|
|
1479
|
+
*/
|
|
1480
|
+
getUnresolvedSupertypeSourcesAmong(nodeIds) {
|
|
1481
|
+
return this.queries.getUnresolvedSupertypeSourcesAmong(nodeIds);
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
* The symbols with the most distinct dependents, most first — the index's
|
|
1485
|
+
* hubs. Distinct dependents, not edges: a helper called forty times from one
|
|
1486
|
+
* function has one dependent, and it is dependents a blast radius grows from.
|
|
1487
|
+
*/
|
|
1488
|
+
getTopDependedOn(limit) {
|
|
1489
|
+
return this.queries.getTopDependedOn(limit);
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* The graph's executable roots — files that run something at module level (a
|
|
1493
|
+
* CLI, a worker entry, a script), ranked by calls x the number of other files
|
|
1494
|
+
* they reach. A statement at the top level of a file is recorded as an edge
|
|
1495
|
+
* out of the *file* node, which is what makes these visible at all.
|
|
1496
|
+
*/
|
|
1497
|
+
getTopCallingFiles(limit) {
|
|
1498
|
+
return this.queries.getTopCallingFiles(limit);
|
|
1499
|
+
}
|
|
1500
|
+
/**
|
|
1501
|
+
* How many other files depend on each of the given files, counted through
|
|
1502
|
+
* their symbols (an `imports` edge points at the symbol, not the file).
|
|
1503
|
+
* A zero means nothing else in the index reaches into that file.
|
|
1504
|
+
*/
|
|
1505
|
+
getFileDependentCounts(filePaths) {
|
|
1506
|
+
return new Map(this.queries.getFileDependentCounts(filePaths).map((row) => [row.filePath, row.dependents]));
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* How far each of the given files reaches out: distinct other files their
|
|
1510
|
+
* symbols touch, and how many references that is. The mirror of
|
|
1511
|
+
* {@link getFileDependentCounts}; a test file's reach is what it exercises.
|
|
1512
|
+
*/
|
|
1513
|
+
getFileReachCounts(filePaths) {
|
|
1514
|
+
return new Map(this.queries
|
|
1515
|
+
.getFileReachCounts(filePaths)
|
|
1516
|
+
.map((row) => [row.filePath, { reaches: row.reaches, refs: row.refs }]));
|
|
1517
|
+
}
|
|
1518
|
+
/** The `file` nodes for the given paths, in one query. */
|
|
1519
|
+
getFileNodes(filePaths) {
|
|
1520
|
+
return this.queries.getFileNodes(filePaths);
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Roll the edge table up to module granularity, for a file → module
|
|
1524
|
+
* assignment the caller decides.
|
|
1525
|
+
*
|
|
1526
|
+
* The architecture map's single query: cross-module edge counts by kind,
|
|
1527
|
+
* the `declared` subset of each (see {@link QueryBuilder.aggregateModuleGraph}),
|
|
1528
|
+
* and the busiest symbol pairs behind each link. Read-only, and bounded by
|
|
1529
|
+
* the number of modules rather than the number of edges.
|
|
1530
|
+
*/
|
|
1531
|
+
getModuleAggregation(assignments, options) {
|
|
1532
|
+
return this.queries.aggregateModuleGraph(assignments, options);
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Every ordered pair of files where one reaches into the other — the edge
|
|
1536
|
+
* list a cycle finder runs on. See {@link QueryBuilder.getCrossFileDependencyPairs}.
|
|
1537
|
+
*/
|
|
1538
|
+
getFileDependencyPairs(minConfidence = 0) {
|
|
1539
|
+
return this.queries.getCrossFileDependencyPairs(minConfidence);
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* References from a symbol that never resolved to an indexed node — the
|
|
1543
|
+
* calls and type mentions that leave the index. Lets a reader account for
|
|
1544
|
+
* the call sites that have no callee row instead of implying there are none.
|
|
1545
|
+
*/
|
|
1546
|
+
getUnresolvedReferencesFrom(nodeId) {
|
|
1547
|
+
return this.queries.getUnresolvedReferencesFrom(nodeId);
|
|
1548
|
+
}
|
|
1549
|
+
/**
|
|
1550
|
+
* The same, for every symbol in a FILE at once, in line order.
|
|
1551
|
+
*
|
|
1552
|
+
* One indexed lookup instead of one per symbol — the whole-file reader needs
|
|
1553
|
+
* it for every line it draws. See
|
|
1554
|
+
* {@link QueryBuilder.getUnresolvedReferencesInFile}.
|
|
1555
|
+
*/
|
|
1556
|
+
getUnresolvedReferencesInFile(filePath, limit) {
|
|
1557
|
+
return this.queries.getUnresolvedReferencesInFile(filePath, limit);
|
|
1558
|
+
}
|
|
1218
1559
|
/**
|
|
1219
1560
|
* Get all nodes in a file
|
|
1220
1561
|
*/
|
|
1221
1562
|
getNodesInFile(filePath) {
|
|
1222
1563
|
return this.queries.getNodesByFile(filePath);
|
|
1223
1564
|
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Get all nodes in several files, in one batched query.
|
|
1567
|
+
*/
|
|
1568
|
+
getNodesInFiles(filePaths) {
|
|
1569
|
+
return this.queries.getNodesByFiles(filePaths);
|
|
1570
|
+
}
|
|
1224
1571
|
/**
|
|
1225
1572
|
* Get all nodes of a specific kind
|
|
1226
1573
|
*/
|
|
@@ -1255,6 +1602,10 @@ class CodeGraph {
|
|
|
1255
1602
|
searchNodes(query, options) {
|
|
1256
1603
|
return this.queries.searchNodes(query, options);
|
|
1257
1604
|
}
|
|
1605
|
+
/** Lexical evidence for an empty explore result; does not alter retrieval. */
|
|
1606
|
+
getExploreMissDiagnostics(query) {
|
|
1607
|
+
return this.queries.getExploreMissDiagnostics(query);
|
|
1608
|
+
}
|
|
1258
1609
|
/**
|
|
1259
1610
|
* Graph-derived prompt matching for the front-load hook's MEDIUM tier:
|
|
1260
1611
|
* which indexed symbols do these prose words name? "state machine des
|
|
@@ -1481,6 +1832,13 @@ class CodeGraph {
|
|
|
1481
1832
|
getFile(filePath) {
|
|
1482
1833
|
return this.queries.getFileByPath(filePath);
|
|
1483
1834
|
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Whether the index holds any file under `dir`, a project-relative POSIX
|
|
1837
|
+
* directory (e.g. `packages/api`).
|
|
1838
|
+
*/
|
|
1839
|
+
hasFilesUnder(dir) {
|
|
1840
|
+
return this.queries.hasFilesUnder(dir);
|
|
1841
|
+
}
|
|
1484
1842
|
/**
|
|
1485
1843
|
* Get all tracked files
|
|
1486
1844
|
*/
|
|
@@ -1669,7 +2027,17 @@ class CodeGraph {
|
|
|
1669
2027
|
return this.graphManager.findCircularDependencies();
|
|
1670
2028
|
}
|
|
1671
2029
|
/**
|
|
1672
|
-
* Find
|
|
2030
|
+
* Find unreferenced symbols — the RAW candidate set.
|
|
2031
|
+
*
|
|
2032
|
+
* Non-exported symbols of the given kinds with no incoming edge but
|
|
2033
|
+
* `contains`. That is a fact, not a claim: on this engine's own index it
|
|
2034
|
+
* returns ~2 500 symbols, of which about 20 are actually unreachable. The
|
|
2035
|
+
* rest are overrides, framework registrations, mis-resolved twins and
|
|
2036
|
+
* references the extractor never recorded.
|
|
2037
|
+
*
|
|
2038
|
+
* For a list anybody should act on, use `buildDeadCodeReport` from
|
|
2039
|
+
* `src/graph/dead-code.ts`, which applies the exclusions and counts every one
|
|
2040
|
+
* of them. This method is kept as-is because it is a published API.
|
|
1673
2041
|
*
|
|
1674
2042
|
* @param kinds - Node kinds to check (default: functions, methods, classes)
|
|
1675
2043
|
* @returns Array of unreferenced nodes
|