@colbymchenry/codegraph-win32-arm64 1.5.0 → 1.6.1
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 +744 -320
- package/lib/dist/bin/codegraph.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/formatter.d.ts +7 -1
- package/lib/dist/context/formatter.d.ts.map +1 -1
- package/lib/dist/context/formatter.js +12 -6
- package/lib/dist/context/formatter.js.map +1 -1
- package/lib/dist/context/index.d.ts +12 -0
- package/lib/dist/context/index.d.ts.map +1 -1
- package/lib/dist/context/index.js +103 -16
- package/lib/dist/context/index.js.map +1 -1
- package/lib/dist/db/index.d.ts +58 -2
- package/lib/dist/db/index.d.ts.map +1 -1
- package/lib/dist/db/index.js +187 -32
- 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 +64 -1
- package/lib/dist/db/migrations.js.map +1 -1
- package/lib/dist/db/queries.d.ts +583 -6
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1417 -57
- package/lib/dist/db/queries.js.map +1 -1
- package/lib/dist/db/schema.sql +27 -4
- 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 +130 -2
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +306 -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/cfml-extractor.d.ts +1 -0
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/cfml-extractor.js +15 -3
- package/lib/dist/extraction/cfml-extractor.js.map +1 -1
- 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 +41 -14
- package/lib/dist/extraction/function-ref.js.map +1 -1
- package/lib/dist/extraction/generated-detection.d.ts +48 -12
- package/lib/dist/extraction/generated-detection.d.ts.map +1 -1
- package/lib/dist/extraction/generated-detection.js +176 -11
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +38 -0
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +115 -3
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +218 -14
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +874 -176
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.d.ts +58 -0
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +310 -19
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
- package/lib/dist/extraction/languages/dart.js +8 -3
- package/lib/dist/extraction/languages/dart.js.map +1 -1
- package/lib/dist/extraction/languages/erlang.d.ts.map +1 -1
- package/lib/dist/extraction/languages/erlang.js +58 -22
- package/lib/dist/extraction/languages/erlang.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.map +1 -1
- package/lib/dist/extraction/languages/kotlin.js +169 -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/objc.d.ts.map +1 -1
- package/lib/dist/extraction/languages/objc.js +4 -0
- package/lib/dist/extraction/languages/objc.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 +20 -0
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
- package/lib/dist/extraction/languages/rust.js +50 -20
- 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/typescript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/typescript.js +9 -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-pool.d.ts +7 -0
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +20 -1
- package/lib/dist/extraction/parse-pool.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 +381 -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 +31 -3
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.d.ts +101 -18
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +926 -132
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- 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 +248 -0
- package/lib/dist/graph/branch-guards.d.ts.map +1 -0
- package/lib/dist/graph/branch-guards.js +2231 -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 +552 -0
- package/lib/dist/graph/named-symbol-flow.js.map +1 -0
- package/lib/dist/graph/queries.d.ts.map +1 -1
- package/lib/dist/graph/queries.js +2 -0
- package/lib/dist/graph/queries.js.map +1 -1
- 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 +62 -36
- 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 +273 -11
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +511 -34
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/index.d.ts +4 -3
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +11 -8
- 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 +72 -12
- package/lib/dist/installer/targets/claude.js.map +1 -1
- package/lib/dist/installer/targets/codex.d.ts +23 -8
- package/lib/dist/installer/targets/codex.d.ts.map +1 -1
- package/lib/dist/installer/targets/codex.js +74 -47
- package/lib/dist/installer/targets/codex.js.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.d.ts +32 -0
- package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -0
- package/lib/dist/installer/targets/copilot-cli.js +215 -0
- package/lib/dist/installer/targets/copilot-cli.js.map +1 -0
- package/lib/dist/installer/targets/copilot-jetbrains.d.ts +42 -0
- package/lib/dist/installer/targets/copilot-jetbrains.d.ts.map +1 -0
- package/lib/dist/installer/targets/copilot-jetbrains.js +238 -0
- package/lib/dist/installer/targets/copilot-jetbrains.js.map +1 -0
- package/lib/dist/installer/targets/copilot-vscode.d.ts +47 -0
- package/lib/dist/installer/targets/copilot-vscode.d.ts.map +1 -0
- package/lib/dist/installer/targets/copilot-vscode.js +219 -0
- package/lib/dist/installer/targets/copilot-vscode.js.map +1 -0
- 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/registry.d.ts.map +1 -1
- package/lib/dist/installer/targets/registry.js +6 -0
- package/lib/dist/installer/targets/registry.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/toml.d.ts +6 -5
- package/lib/dist/installer/targets/toml.d.ts.map +1 -1
- package/lib/dist/installer/targets/toml.js +99 -20
- package/lib/dist/installer/targets/toml.js.map +1 -1
- package/lib/dist/installer/targets/types.d.ts +12 -5
- 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 +1 -1
- package/lib/dist/mcp/daemon-manager.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-manager.js +17 -1
- package/lib/dist/mcp/daemon-manager.js.map +1 -1
- package/lib/dist/mcp/daemon-paths.d.ts +8 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-paths.js +65 -2
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-registry.d.ts +17 -4
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +133 -23
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +26 -13
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +126 -32
- 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 +31 -9
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +190 -64
- package/lib/dist/mcp/engine.js.map +1 -1
- package/lib/dist/mcp/explore-dedup.d.ts +140 -0
- package/lib/dist/mcp/explore-dedup.d.ts.map +1 -0
- package/lib/dist/mcp/explore-dedup.js +239 -0
- package/lib/dist/mcp/explore-dedup.js.map +1 -0
- package/lib/dist/mcp/explore-diagnostics.d.ts +289 -0
- package/lib/dist/mcp/explore-diagnostics.d.ts.map +1 -0
- package/lib/dist/mcp/explore-diagnostics.js +558 -0
- package/lib/dist/mcp/explore-diagnostics.js.map +1 -0
- package/lib/dist/mcp/explore-session-state.d.ts +217 -0
- package/lib/dist/mcp/explore-session-state.d.ts.map +1 -0
- package/lib/dist/mcp/explore-session-state.js +322 -0
- package/lib/dist/mcp/explore-session-state.js.map +1 -0
- 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 +30 -0
- package/lib/dist/mcp/index-freshness-worker.js.map +1 -0
- package/lib/dist/mcp/index-freshness.d.ts +7 -0
- package/lib/dist/mcp/index-freshness.d.ts.map +1 -0
- package/lib/dist/mcp/index-freshness.js +94 -0
- package/lib/dist/mcp/index-freshness.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +27 -1
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +159 -14
- 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 +14 -3
- 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 +181 -0
- package/lib/dist/mcp/project-lifecycle.js.map +1 -0
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +15 -1
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +2 -2
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +9 -7
- 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 +2 -2
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +13 -5
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/session.d.ts +16 -0
- package/lib/dist/mcp/session.d.ts.map +1 -1
- package/lib/dist/mcp/session.js +36 -13
- package/lib/dist/mcp/session.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 +544 -38
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +4246 -770
- 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/project-config.d.ts +23 -0
- package/lib/dist/project-config.d.ts.map +1 -1
- package/lib/dist/project-config.js +39 -2
- package/lib/dist/project-config.js.map +1 -1
- 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 +127 -0
- package/lib/dist/resolution/alias-binding.js.map +1 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/c-fnptr-synthesizer.js +21 -19
- package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -1
- 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 +330 -154
- 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 +342 -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/csharp.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/csharp.js +96 -2
- package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.d.ts +189 -0
- package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/expo-router.js +785 -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 +251 -16
- package/lib/dist/resolution/frameworks/express.js.map +1 -1
- package/lib/dist/resolution/frameworks/index.d.ts +5 -0
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +29 -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 +79 -47
- package/lib/dist/resolution/frameworks/java.js.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.js +6 -14
- 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 +328 -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/python.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/python.js +166 -0
- 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 +46 -0
- package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/react-router.js +187 -0
- package/lib/dist/resolution/frameworks/react-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/react.d.ts +2 -1
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react.js +188 -139
- package/lib/dist/resolution/frameworks/react.js.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.js +6 -1
- 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 +11 -1
- 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 +82 -0
- package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/vue-router.js +377 -0
- package/lib/dist/resolution/frameworks/vue-router.js.map +1 -0
- package/lib/dist/resolution/import-resolver.d.ts +38 -0
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +394 -28
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +89 -25
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +567 -149
- 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 +46 -0
- package/lib/dist/resolution/js-builtins.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +99 -22
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +2192 -87
- 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/path-aliases.d.ts +6 -4
- package/lib/dist/resolution/path-aliases.d.ts.map +1 -1
- package/lib/dist/resolution/path-aliases.js +125 -17
- package/lib/dist/resolution/path-aliases.js.map +1 -1
- package/lib/dist/resolution/react-router-synthesizer.d.ts +33 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/react-router-synthesizer.js +126 -0
- package/lib/dist/resolution/react-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/resolver-pool.d.ts +2 -0
- package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-pool.js +4 -0
- package/lib/dist/resolution/resolver-pool.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/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 +49 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.js +931 -0
- package/lib/dist/resolution/tier-synthesizer.js.map +1 -0
- package/lib/dist/resolution/types.d.ts +78 -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/identifier-segments.d.ts +10 -0
- package/lib/dist/search/identifier-segments.d.ts.map +1 -1
- package/lib/dist/search/identifier-segments.js +29 -0
- package/lib/dist/search/identifier-segments.js.map +1 -1
- package/lib/dist/search/query-paths.d.ts +106 -0
- package/lib/dist/search/query-paths.d.ts.map +1 -0
- package/lib/dist/search/query-paths.js +513 -0
- package/lib/dist/search/query-paths.js.map +1 -0
- package/lib/dist/search/query-utils.d.ts +16 -1
- package/lib/dist/search/query-utils.d.ts.map +1 -1
- package/lib/dist/search/query-utils.js +48 -10
- 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 +74 -35
- package/lib/dist/sync/watcher.d.ts.map +1 -1
- package/lib/dist/sync/watcher.js +281 -99
- package/lib/dist/sync/watcher.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 +92 -41
- package/lib/dist/telemetry/index.js.map +1 -1
- package/lib/dist/types.d.ts +21 -2
- package/lib/dist/types.d.ts.map +1 -1
- package/lib/dist/types.js +2 -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 +87 -0
- package/lib/dist/ui-server/api/effects.d.ts.map +1 -0
- package/lib/dist/ui-server/api/effects.js +499 -0
- package/lib/dist/ui-server/api/effects.js.map +1 -0
- package/lib/dist/ui-server/api/entrypoints.d.ts +86 -0
- package/lib/dist/ui-server/api/entrypoints.d.ts.map +1 -0
- package/lib/dist/ui-server/api/entrypoints.js +279 -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 +238 -0
- package/lib/dist/ui-server/api/map.d.ts.map +1 -0
- package/lib/dist/ui-server/api/map.js +681 -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 +388 -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 +39 -0
- package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -0
- package/lib/dist/ui-server/api/route-roots.js +96 -0
- package/lib/dist/ui-server/api/route-roots.js.map +1 -0
- package/lib/dist/ui-server/api/routes.d.ts +59 -0
- package/lib/dist/ui-server/api/routes.d.ts.map +1 -0
- package/lib/dist/ui-server/api/routes.js +108 -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 +611 -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 +1446 -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 +369 -0
- package/lib/dist/ui-server/api/trails.js.map +1 -0
- package/lib/dist/ui-server/api/when.d.ts +125 -0
- package/lib/dist/ui-server/api/when.d.ts.map +1 -0
- package/lib/dist/ui-server/api/when.js +251 -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/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 +307 -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/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/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-CF9yvio6.css +1 -0
- package/lib/dist/viewer/assets/index-D4S7YUPf.js +97 -0
- package/lib/dist/viewer/index.html +16 -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/mcp/tools.d.ts
CHANGED
|
@@ -5,7 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type CodeGraph from '../index';
|
|
7
7
|
import type { QueryPool } from './query-pool';
|
|
8
|
+
import { WslSharedIndexError } from '../db/wsl-shared-index';
|
|
9
|
+
export declare function __setLoadCodeGraphForTests(cls: typeof import('../index').default | null): void;
|
|
8
10
|
import type { PendingFile } from '../sync';
|
|
11
|
+
import { type AnswerFile } from './answer-freshness';
|
|
12
|
+
import { ExploreSessionState, type ExploreEmission, type ExploreLineRange } from './explore-session-state';
|
|
9
13
|
/**
|
|
10
14
|
* An expected, recoverable "codegraph can't serve this" condition — most
|
|
11
15
|
* importantly a project with no index. The dispatch catch converts these to
|
|
@@ -22,9 +26,12 @@ export declare class NotIndexedError extends Error {
|
|
|
22
26
|
/**
|
|
23
27
|
* A security refusal (sensitive system path). Stays `isError: true` WITHOUT
|
|
24
28
|
* retry guidance — abandoning this path is the desired agent reaction.
|
|
29
|
+
*
|
|
30
|
+
* Defined in `../errors` so non-MCP read sinks (the `codegraph ui` server) can
|
|
31
|
+
* enforce the same refusal without importing this module; re-exported here
|
|
32
|
+
* because this is where every existing caller imports it from.
|
|
25
33
|
*/
|
|
26
|
-
export
|
|
27
|
-
}
|
|
34
|
+
export { PathRefusalError } from '../errors';
|
|
28
35
|
/**
|
|
29
36
|
* Normalize Erlang-native symbol spellings in an explore query into the shapes
|
|
30
37
|
* the rest of the pipeline already understands. Agents working Erlang code
|
|
@@ -90,19 +97,368 @@ export interface ExploreOutputBudget {
|
|
|
90
97
|
includeAdditionalFiles: boolean;
|
|
91
98
|
/** Include the "Complete source code is included above…" reminder. */
|
|
92
99
|
includeCompletenessSignal: boolean;
|
|
93
|
-
/** Include the explore-budget reminder at the end. */
|
|
94
|
-
includeBudgetNote: boolean;
|
|
95
100
|
/**
|
|
96
|
-
*
|
|
97
|
-
* the
|
|
98
|
-
* the sort, which on tiny repos still lets one slip into the top N (e.g.
|
|
99
|
-
* cobra's `command_test.go` displaced `args.go` and contributed ~10KB of
|
|
100
|
-
* pure noise to "How does cobra parse commands?"). Off by default; on
|
|
101
|
-
* for the very-tiny tier where one slip dominates the budget.
|
|
101
|
+
* Include the advisory exploration-guidance note at the end. Purely
|
|
102
|
+
* advisory — the server NEVER rejects or rate-limits extra explore calls.
|
|
102
103
|
*/
|
|
103
|
-
|
|
104
|
+
includeBudgetNote: boolean;
|
|
104
105
|
}
|
|
105
106
|
export declare function getExploreOutputBudget(fileCount: number): ExploreOutputBudget;
|
|
107
|
+
/**
|
|
108
|
+
* How strongly a match on a symbol of this kind corroborates that its FILE is
|
|
109
|
+
* what the query is about.
|
|
110
|
+
*
|
|
111
|
+
* 1.0 a callable or a type — the unit an architecture question is about
|
|
112
|
+
* ~0.5 a member of a type, or the file node itself (a path match, not a
|
|
113
|
+
* symbol match)
|
|
114
|
+
* ~0.3 a variable / constant — as often a name collision as a definition
|
|
115
|
+
* 0.15 a parameter — essentially never the subject of a question
|
|
116
|
+
*
|
|
117
|
+
* Unlisted kinds fall back to `DEFAULT_RELEVANCE_KIND_WEIGHT`, so a NodeKind
|
|
118
|
+
* added later is neither free nor fatal.
|
|
119
|
+
*/
|
|
120
|
+
export declare const RELEVANCE_KIND_WEIGHT: Readonly<Record<string, number>>;
|
|
121
|
+
export declare const EXPLORE_ALLOCATION: {
|
|
122
|
+
/**
|
|
123
|
+
* A file whose weight is under this fraction of the top file's gets no source.
|
|
124
|
+
*
|
|
125
|
+
* Calibrated between the two shapes the fixtures pin: the #1500 generated CRUD
|
|
126
|
+
* lands at 10–11% of the top weight (penalised twice — once into the score by
|
|
127
|
+
* `rankPenalty`, once again here) and must cliff; a genuinely peripheral but
|
|
128
|
+
* hand-written flow file — `payslip_builder.go`, the direct callee of the
|
|
129
|
+
* workflow entry — lands at 25% and must NOT. Everything in between is a
|
|
130
|
+
* judgement call the agent can undo for ~0 cost, because a cliffed file is
|
|
131
|
+
* still NAMED in the response and one follow-up explore fetches it.
|
|
132
|
+
*/
|
|
133
|
+
readonly CLIFF_FRACTION: 0.15;
|
|
134
|
+
/**
|
|
135
|
+
* Ceiling on the cliff, in the same units as `SCORE_FLOOR_MAX` — and for the
|
|
136
|
+
* same reason. A file whose weight clears a full-strength direct match is never
|
|
137
|
+
* incidental, so no amount of concentration elsewhere may zero it: one
|
|
138
|
+
* overwhelming top file (a 99-scoring god-file among score-10 peers) otherwise
|
|
139
|
+
* puts the cliff at 14.9 and silences every peer the score floor had just
|
|
140
|
+
* deliberately admitted. The cliff is a RELATIVE prune of weak evidence, not a
|
|
141
|
+
* second admission gate — the score floor already owns admission.
|
|
142
|
+
*/
|
|
143
|
+
readonly CLIFF_MAX: 10;
|
|
144
|
+
/**
|
|
145
|
+
* Floor on a useful reservation — every admitted file gets this much before
|
|
146
|
+
* the proportional split divides the rest. Under it a slice can't hold one
|
|
147
|
+
* complete method, and a fragment is strictly worse than a pointer: it forces
|
|
148
|
+
* the Read this tool exists to prevent.
|
|
149
|
+
*
|
|
150
|
+
* It is a FLOOR, not a second cliff. Cliffing the starved file instead
|
|
151
|
+
* cascades: removing the smallest raises everyone else's share by so little
|
|
152
|
+
* that the next-smallest starves too, and a query with two dominant files ate
|
|
153
|
+
* six legitimately-ranked peers one at a time. Concentration is the relative
|
|
154
|
+
* cliff's job; this only keeps a served file's slice usable.
|
|
155
|
+
*/
|
|
156
|
+
readonly MIN_CHARS: 700;
|
|
157
|
+
/**
|
|
158
|
+
* Safety valve, as a fraction of the envelope. Not the primary guard any more —
|
|
159
|
+
* the proportional split is — so this only has to stop a pathological
|
|
160
|
+
* single-file response.
|
|
161
|
+
*
|
|
162
|
+
* It does not apply to a file the query NAMED — one that defines a symbol the
|
|
163
|
+
* query spelled, or that the query named by path. The valve hedges against a
|
|
164
|
+
* mis-ranked dominant file, and a file the agent asked for by name is not
|
|
165
|
+
* one. It also never redistributed: a clamped file's excess was simply left
|
|
166
|
+
* unreserved, and the carry-forward only moves reservations, so nobody could
|
|
167
|
+
* spend it. On express, "response.js res.send res.json res.render …" admits
|
|
168
|
+
* one file, clamps it at 9,100 with 3,700 of the pool unreserved, and cuts
|
|
169
|
+
* the named `send` body at 55 of 97 lines in a 10.9K response to a 13K budget.
|
|
170
|
+
*/
|
|
171
|
+
readonly MAX_SHARE: 0.7;
|
|
172
|
+
/**
|
|
173
|
+
* Markdown overhead charged per rendered file (header + fences + blank lines),
|
|
174
|
+
* matching the render loop's own `+ 200` accounting. Held out of the pool
|
|
175
|
+
* before the split so the reservations plus their overhead fit the envelope —
|
|
176
|
+
* without this the last file's reservation is always the one that doesn't fit.
|
|
177
|
+
*/
|
|
178
|
+
readonly FILE_OVERHEAD: 200;
|
|
179
|
+
/**
|
|
180
|
+
* Flow-spine files are weighted up and are exempt from the cliff. Clipping the
|
|
181
|
+
* spine causes the Read fallback (it IS the answer to a flow question);
|
|
182
|
+
* clipping a peripheral file does not. This makes the existing advisory spine
|
|
183
|
+
* handling — `hasSpine`, `SPINE_CEILING` — strict at the allocation layer.
|
|
184
|
+
*/
|
|
185
|
+
readonly SPINE_WEIGHT_BOOST: 2;
|
|
186
|
+
/**
|
|
187
|
+
* Slack allowed on the whole-file rule: a file a little over its reservation
|
|
188
|
+
* still ships WHOLE rather than as clusters, because slicing off that last
|
|
189
|
+
* sliver saves ~1% of the envelope and costs a Read — the trade the whole-file
|
|
190
|
+
* rule exists to refuse. Proportional (with an absolute ceiling) because a
|
|
191
|
+
* "sliver" is relative: a flat 800 is 15% of a 5K reservation but 31% of a 2.5K
|
|
192
|
+
* one, and at the small end that overshoot is exactly what the file below then
|
|
193
|
+
* loses.
|
|
194
|
+
*/
|
|
195
|
+
readonly WHOLE_FILE_GRACE_FRACTION: 0.15;
|
|
196
|
+
readonly WHOLE_FILE_GRACE_MAX: 800;
|
|
197
|
+
/**
|
|
198
|
+
* A reservation that already covers this fraction of a file BUYS THE WHOLE
|
|
199
|
+
* FILE (CG-21), even though the file is bigger than the reservation.
|
|
200
|
+
*
|
|
201
|
+
* The grace above is calibrated as a *sliver* — it only rescues a file that
|
|
202
|
+
* essentially fits. Below it there is a hole the render loop cannot fill:
|
|
203
|
+
* express's `lib/utils.js` (5,293 B) was the TOP-ranked file, reserved 3,870,
|
|
204
|
+
* declined the whole-file render at a 4,450 grace bound, and then spent 583 on
|
|
205
|
+
* a three-symbol cluster render. The other 3,287 chars of its reservation were
|
|
206
|
+
* neither redistributed nor delivered — the envelope shrank by a third against
|
|
207
|
+
* an unchanged budget and the agent Read the file back four times.
|
|
208
|
+
*
|
|
209
|
+
* So the rule is not "does the file fit the reservation" but "has the
|
|
210
|
+
* reservation already bought most of the file": at 0.6 the loop pays at most
|
|
211
|
+
* two-thirds of a reservation extra to avoid losing the whole thing, and it
|
|
212
|
+
* spends bytes it was going to spend anyway on a file that already earned
|
|
213
|
+
* them. Below the fraction the shortfall is real — the file is several times
|
|
214
|
+
* its reservation, clustering is the right answer, and the carry-forward
|
|
215
|
+
* (`reservedSoFar`/`sourceSpent` in the render loop) hands whatever it cannot
|
|
216
|
+
* spend to the next file down.
|
|
217
|
+
*/
|
|
218
|
+
readonly WHOLE_FILE_BUY_FRACTION: 0.6;
|
|
219
|
+
/**
|
|
220
|
+
* The buy rule's overshoot is funded from ONE pool for the whole response,
|
|
221
|
+
* sized as this fraction of the envelope — deliberately the same 15% as
|
|
222
|
+
* `WHOLE_FILE_GRACE_FRACTION`, one level up: the grace is a sliver of a
|
|
223
|
+
* FILE's reservation, this is a sliver of the RESPONSE's envelope.
|
|
224
|
+
*
|
|
225
|
+
* Per-file funding is the version that fails, and it fails the same way the
|
|
226
|
+
* bug being fixed does. The merit test is a RATIO, so wherever several files
|
|
227
|
+
* sit near it they all qualify, and N independent overshoots inflate the
|
|
228
|
+
* response until the render ceiling drops whatever is last. Measured on the
|
|
229
|
+
* #1500 payroll fixture: three files bought whole and `payslip_builder.go` —
|
|
230
|
+
* the file that computes the payslip the question asks about, rank #6 — was
|
|
231
|
+
* dropped entirely so three higher-ranked files could each ship their final
|
|
232
|
+
* sliver. A dropped section is strictly worse than a clustered one, so one
|
|
233
|
+
* shared pool, spent in rank order, is the bound that matters.
|
|
234
|
+
*/
|
|
235
|
+
readonly WHOLE_FILE_BUY_OVERSHOOT_FRACTION: 0.15;
|
|
236
|
+
};
|
|
237
|
+
/** One candidate file's allocation inputs, in final rank order. */
|
|
238
|
+
export interface ExploreAllocationCandidate {
|
|
239
|
+
path: string;
|
|
240
|
+
/** Post-`rankPenalty` relevance score from the ranking pass. */
|
|
241
|
+
score: number;
|
|
242
|
+
/**
|
|
243
|
+
* How much this file's BYTES are worth, independent of how well it matched.
|
|
244
|
+
* Ranking answers "is this file about the query"; allocation answers "will
|
|
245
|
+
* these bytes teach the agent anything". Generated CRUD can legitimately rank
|
|
246
|
+
* (it name-collides on every domain word) while its bytes stay mechanical
|
|
247
|
+
* boilerplate the agent gains nothing from reading — so `rankPenalty` is
|
|
248
|
+
* applied a SECOND time here. That is what finally sinks the #1500 generated
|
|
249
|
+
* layer below the cliff: it survived CG-10's single penalty because the sort's
|
|
250
|
+
* leading keys (entry-point, graph mass) are structural, and a big densely
|
|
251
|
+
* self-referential generated file scores well on both.
|
|
252
|
+
*/
|
|
253
|
+
worth: number;
|
|
254
|
+
/**
|
|
255
|
+
* Carries a symbol on the rendered flow spine — or an exact target (a
|
|
256
|
+
* qualified name, a line anchor), which is the answer by the same argument.
|
|
257
|
+
*/
|
|
258
|
+
spine: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* The query named this file by PATH (see query-paths.ts). Pinned files are
|
|
261
|
+
* never cliffed or trimmed, and weigh at least as much as the strongest
|
|
262
|
+
* candidate — the agent asked for the file itself, so starving it on text/
|
|
263
|
+
* graph scores (which a pure-path query doesn't produce) defeats the ask.
|
|
264
|
+
*/
|
|
265
|
+
pinned?: boolean;
|
|
266
|
+
/**
|
|
267
|
+
* The query named a symbol this file defines (the named-first sort tier). Like
|
|
268
|
+
* a pinned file, it is exempt from the `MAX_SHARE` valve: its proportional
|
|
269
|
+
* share stands, bounded only by the pool.
|
|
270
|
+
*/
|
|
271
|
+
named?: boolean;
|
|
272
|
+
}
|
|
273
|
+
export interface ExploreAllocation {
|
|
274
|
+
/** path → chars of source it may render. Only holds admitted files. */
|
|
275
|
+
allowances: Map<string, number>;
|
|
276
|
+
/** Files the cliff zeroed, in rank order — pointers, not bytes. */
|
|
277
|
+
cliffed: string[];
|
|
278
|
+
/** The weight threshold the cliff fired at (0 when nothing was cliffed). */
|
|
279
|
+
cliffAt: number;
|
|
280
|
+
/** Chars actually split among the admitted files. */
|
|
281
|
+
pool: number;
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Split `budget.maxOutputChars` across ranked candidates in proportion to
|
|
285
|
+
* relevance, with a hard relative cliff.
|
|
286
|
+
*
|
|
287
|
+
* `candidates` must arrive in FINAL RANK ORDER — `maxFiles` is applied to the
|
|
288
|
+
* survivors of the cliff, in that order, so cliffing genuinely hands a slot to
|
|
289
|
+
* the next file down rather than leaving it unused.
|
|
290
|
+
*
|
|
291
|
+
* Tier invariant (`getExploreOutputBudget`): a larger tier must never allow less
|
|
292
|
+
* per file than a smaller one. It holds here by construction — every bound is a
|
|
293
|
+
* fraction of `maxOutputChars` or of `maxCharsPerFile`, both monotonic across
|
|
294
|
+
* tiers — except `MIN_CHARS`, which is an absolute floor and so identical at
|
|
295
|
+
* every tier.
|
|
296
|
+
*/
|
|
297
|
+
export declare function allocateExploreBudget(candidates: readonly ExploreAllocationCandidate[], budget: ExploreOutputBudget, maxFiles: number): ExploreAllocation;
|
|
298
|
+
type ElidedSymbolRef = {
|
|
299
|
+
name: string;
|
|
300
|
+
kind: string;
|
|
301
|
+
startLine: number;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Indexed symbols whose definition starts strictly between two rendered
|
|
305
|
+
* spans. The hole is what a trim dropped; naming them is what lets the agent
|
|
306
|
+
* follow up by name instead of guessing (#1711).
|
|
307
|
+
*/
|
|
308
|
+
export declare function symbolsBetweenRanges(nodes: ReadonlyArray<{
|
|
309
|
+
name: string;
|
|
310
|
+
kind: string;
|
|
311
|
+
startLine: number;
|
|
312
|
+
endLine: number;
|
|
313
|
+
}>, fromEnd: number, toStart: number): ElidedSymbolRef[];
|
|
314
|
+
/**
|
|
315
|
+
* Symbols in `candidates` whose start line is not covered by any emitted range.
|
|
316
|
+
* Used to bias the per-file header toward what the trim dropped (#1711).
|
|
317
|
+
*/
|
|
318
|
+
export declare function symbolsNotInRanges(candidates: ReadonlyArray<ElidedSymbolRef>, ranges: ReadonlyArray<ExploreLineRange>): ElidedSymbolRef[];
|
|
319
|
+
/**
|
|
320
|
+
* Gap marker between two non-contiguous slices of one file.
|
|
321
|
+
*
|
|
322
|
+
* Bare `... (gap) ...` told the agent something was missing but not WHAT —
|
|
323
|
+
* and the footer then asked it to re-explore "with its exact name", which is
|
|
324
|
+
* circular when the missing names *are* the question (#1711). When the hole
|
|
325
|
+
* holds indexed symbols, list them as `name (file:line)` (same shape the
|
|
326
|
+
* flow / blast-radius lines already use).
|
|
327
|
+
*/
|
|
328
|
+
export declare function formatGapMarker(filePath: string, elided: ReadonlyArray<ElidedSymbolRef>): string;
|
|
329
|
+
/**
|
|
330
|
+
* Join rendered parts with gap markers that name whatever the trim skipped.
|
|
331
|
+
*
|
|
332
|
+
* `spareChars` is what naming may cost beyond bare markers. Cluster selection
|
|
333
|
+
* prices every join between clusters as a bare marker, and on a long path each
|
|
334
|
+
* named gap runs to several hundred chars, so unbounded naming overran the
|
|
335
|
+
* file's reservation and the ceiling trim then dropped SOURCE to pay for the
|
|
336
|
+
* names: vscode's `rpcProtocol.ts` went from ~5,200 chars of the RPCProtocol
|
|
337
|
+
* body to a 222-char stub. A gap the spare can't cover stays bare; the file
|
|
338
|
+
* header still lists the symbols the trim dropped.
|
|
339
|
+
*/
|
|
340
|
+
export declare function joinPartsWithNamedGaps(filePath: string, parts: ReadonlyArray<{
|
|
341
|
+
range: ExploreLineRange;
|
|
342
|
+
text: string;
|
|
343
|
+
}>, nodes: ReadonlyArray<{
|
|
344
|
+
name: string;
|
|
345
|
+
kind: string;
|
|
346
|
+
startLine: number;
|
|
347
|
+
endLine: number;
|
|
348
|
+
}>, spareChars?: number): string;
|
|
349
|
+
/**
|
|
350
|
+
* Prefer symbols the trim dropped when filling the per-file header's named
|
|
351
|
+
* slots, so `+N more` is less likely to hide the answer (#1711). Frequency
|
|
352
|
+
* still breaks ties among the preferred / remaining groups.
|
|
353
|
+
*/
|
|
354
|
+
export declare function biasHeaderSymbols(symbols: readonly string[], elided: ReadonlyArray<ElidedSymbolRef>, cap: number): {
|
|
355
|
+
shown: string[];
|
|
356
|
+
omitted: number;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* The notes that stand in for the epilogue, or close a truncated response, in
|
|
360
|
+
* two wordings each. `complete` says the source above is complete; `trimmed` is
|
|
361
|
+
* used when a section it vouches for was trimmed (see `elidedWantedSpans`) and
|
|
362
|
+
* drops that claim, keeping the guarantee that is still true. Each trimmed
|
|
363
|
+
* wording is no longer than its complete one: the epilogue floor (`lost`) and
|
|
364
|
+
* the cut note's fit test (`cut`) are sized before the render knows which of the
|
|
365
|
+
* two it will need.
|
|
366
|
+
*/
|
|
367
|
+
export declare const EXPLORE_FALLBACK_NOTES: {
|
|
368
|
+
readonly lost: {
|
|
369
|
+
readonly complete: "> (Trailing pointer list omitted for size. The source above is complete and verbatim — treat it as already Read. For anything this call did not cover, run another codegraph_explore with the specific names rather than reading those files.)";
|
|
370
|
+
readonly trimmed: "> (Trailing pointer list omitted for size. The source above is verbatim — treat it as already Read. For symbols its gap markers name, and anything else not covered, run another codegraph_explore with those names rather than reading.)";
|
|
371
|
+
};
|
|
372
|
+
readonly cut: {
|
|
373
|
+
readonly complete: "\n\n> (Trailing notes omitted for size. The source above is complete and verbatim — treat it as already Read. For anything this call did not cover, run another codegraph_explore with the specific names rather than reading those files.)";
|
|
374
|
+
readonly trimmed: "\n\n> (Trailing notes omitted for size. The source above is verbatim — treat it as already Read. For symbols its gap markers name, and anything else not covered, run another codegraph_explore with those names rather than reading.)";
|
|
375
|
+
};
|
|
376
|
+
readonly truncated: {
|
|
377
|
+
readonly complete: "\n\n... (output truncated to budget; the source above is complete and verbatim — treat it as already Read. For any area not covered, run another codegraph_explore with the specific names — do NOT Read these files.)";
|
|
378
|
+
readonly trimmed: "\n\n... (output truncated to budget; the source above is verbatim — treat it as already Read. For names its gap markers list, or any area not covered, run another codegraph_explore — do NOT Read these files.)";
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* One symbol a file section set out to deliver: a cluster member, or a symbol
|
|
383
|
+
* of the per-symbol (focused/skeleton) view. Completeness is judged against
|
|
384
|
+
* these, not against the file — explore never promises whole files, only the
|
|
385
|
+
* symbols it selected for each one.
|
|
386
|
+
*/
|
|
387
|
+
export type ExploreWantedSpan = {
|
|
388
|
+
name: string;
|
|
389
|
+
kind: string;
|
|
390
|
+
start: number;
|
|
391
|
+
end: number;
|
|
392
|
+
importance: number;
|
|
393
|
+
spine: boolean;
|
|
394
|
+
/** The indexed qualified name (`SQLCompiler::as_sql`), when the span is a node. */
|
|
395
|
+
qualifiedName?: string;
|
|
396
|
+
};
|
|
397
|
+
/**
|
|
398
|
+
* The wanted spans a section did NOT deliver in full: some line of the span is
|
|
399
|
+
* in neither what this call sent nor what an earlier call already sent (a
|
|
400
|
+
* back-referenced span counts — the agent holds that copy).
|
|
401
|
+
*
|
|
402
|
+
* Derived from the emitted ranges rather than from a flag each trim site has to
|
|
403
|
+
* remember to set. The oversize-spine window set none until #2068, which is how
|
|
404
|
+
* a 62-line slice of vscode's 968-line `rpcProtocol.ts` went out under "Complete
|
|
405
|
+
* source … do NOT re-read them". Whatever elides source — a member shrink, a
|
|
406
|
+
* ceiling window, a dropped cluster, the per-symbol view, a path added later —
|
|
407
|
+
* shows up here.
|
|
408
|
+
*
|
|
409
|
+
* Most relevant first (spine, then importance), then source order.
|
|
410
|
+
*/
|
|
411
|
+
export declare function elidedWantedSpans(wanted: ReadonlyArray<ExploreWantedSpan>, delivered: ReadonlyArray<ExploreLineRange>): ExploreWantedSpan[];
|
|
412
|
+
/** A rendered file whose section is missing some of what it set out to deliver. */
|
|
413
|
+
export type ExplorePartialFile = {
|
|
414
|
+
filePath: string;
|
|
415
|
+
elided: ReadonlyArray<ExploreWantedSpan>;
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* The shortest trailing slice of each path that no other path in `paths`
|
|
419
|
+
* ends with: `extHostExtensionService.ts` alone when it is the only one,
|
|
420
|
+
* `node/extHostExtensionService.ts` beside `common/extHostExtensionService.ts`.
|
|
421
|
+
*/
|
|
422
|
+
export declare function shortestUniqueSuffixes(paths: ReadonlyArray<string>): Map<string, string>;
|
|
423
|
+
/**
|
|
424
|
+
* The large tiers' completeness note (`includeCompletenessSignal`), as
|
|
425
|
+
* candidates from most to least specific. The epilogue fit keeps the first
|
|
426
|
+
* one that fits the room left (CG-26).
|
|
427
|
+
*
|
|
428
|
+
* "Complete" is claimed only when no section elided anything it set out to
|
|
429
|
+
* deliver. Otherwise the note keeps the guarantee that is still true (every
|
|
430
|
+
* block shown is verbatim; treat it as already Read), names the trimmed files
|
|
431
|
+
* and the most relevant elided symbols as room allows, and sends the agent to
|
|
432
|
+
* another codegraph_explore for them. It never offers Read: explore output must
|
|
433
|
+
* not tell the agent to Read (AGENTS.md).
|
|
434
|
+
*/
|
|
435
|
+
export declare function exploreCompletenessNotes(filesIncluded: number, trimmed: ReadonlyArray<ExplorePartialFile>,
|
|
436
|
+
/** Every path the response can name (sections and pointer list); labels are unique among them. */
|
|
437
|
+
knownPaths: ReadonlyArray<string>): string[];
|
|
438
|
+
/**
|
|
439
|
+
* Fit the completeness note and the pointer list into the room the response has
|
|
440
|
+
* left (CG-26). Returns the note (a candidate block, or none), the pointer
|
|
441
|
+
* block, and the room that remains.
|
|
442
|
+
*
|
|
443
|
+
* The note is one of `noteCandidates`, most specific first. A complete-source
|
|
444
|
+
* note keeps the precedence it always had and goes first. A note that YIELDS (a
|
|
445
|
+
* trimmed one) gives way to the pointer list, which names files the response
|
|
446
|
+
* does not show at all, while what a trimmed section elided is already named in
|
|
447
|
+
* its own gap markers and header. It leaves the list's header and first entry
|
|
448
|
+
* when that much could fit, and its optional detail never costs an entry the
|
|
449
|
+
* least specific candidate would have left.
|
|
450
|
+
*/
|
|
451
|
+
export declare function fitExploreEpilogue(opts: {
|
|
452
|
+
room: number;
|
|
453
|
+
noteCandidates: ReadonlyArray<readonly string[]>;
|
|
454
|
+
noteYields: boolean;
|
|
455
|
+
pointerEntries: readonly string[];
|
|
456
|
+
pointerOmitted: number;
|
|
457
|
+
}): {
|
|
458
|
+
note: string[];
|
|
459
|
+
pointers: string[];
|
|
460
|
+
room: number;
|
|
461
|
+
};
|
|
106
462
|
/**
|
|
107
463
|
* Per-file staleness banner emitted at the top of a tool response when the
|
|
108
464
|
* file watcher has pending events for files referenced by the response.
|
|
@@ -125,6 +481,8 @@ export declare function formatStaleFooter(stale: PendingFile[]): string;
|
|
|
125
481
|
* already names the operator remedy (`codegraph sync` / git hooks).
|
|
126
482
|
*/
|
|
127
483
|
export declare function formatDegradedBanner(reason: string | null): string;
|
|
484
|
+
/** Re-armed watches are not proof of freshness until their full scan commits. */
|
|
485
|
+
export declare function formatRecoveringBanner(): string;
|
|
128
486
|
/**
|
|
129
487
|
* MCP Tool definition
|
|
130
488
|
*/
|
|
@@ -138,6 +496,12 @@ export interface ToolDefinition {
|
|
|
138
496
|
};
|
|
139
497
|
/** Behavioral hints for clients (see {@link ToolAnnotations}). */
|
|
140
498
|
annotations?: ToolAnnotations;
|
|
499
|
+
/**
|
|
500
|
+
* MCP `_meta` on the tool definition. `anthropic/alwaysLoad: true` makes
|
|
501
|
+
* Claude Code load the tool at session start instead of deferring it behind
|
|
502
|
+
* its tool search (https://code.claude.com/docs/en/mcp#exempt-a-server-from-deferral).
|
|
503
|
+
*/
|
|
504
|
+
_meta?: Record<string, unknown>;
|
|
141
505
|
}
|
|
142
506
|
/**
|
|
143
507
|
* MCP ToolAnnotations — behavioral hints a client MAY use to decide how, or
|
|
@@ -179,6 +543,18 @@ export interface ToolResult {
|
|
|
179
543
|
text: string;
|
|
180
544
|
}>;
|
|
181
545
|
isError?: boolean;
|
|
546
|
+
/**
|
|
547
|
+
* INTERNAL side-channel (CG-17): what a `codegraph_explore` call actually put
|
|
548
|
+
* on the wire — files, line ranges, bytes. It rides the result because the
|
|
549
|
+
* call may have run on a query-pool worker, while the session state it feeds
|
|
550
|
+
* lives on the main thread. {@link ToolHandler.execute} records it and DELETES
|
|
551
|
+
* it, so nothing here ever reaches the client. Keyed by
|
|
552
|
+
* {@link EXPLORE_EMISSION_KEY}; the two must stay in sync.
|
|
553
|
+
*/
|
|
554
|
+
_cgExploreEmission?: ExploreEmission;
|
|
555
|
+
/** Internal structured provenance, preserved by query workers and stripped by execute. */
|
|
556
|
+
_cgAnswerFiles?: AnswerFile[];
|
|
557
|
+
structuredContent?: Record<string, unknown>;
|
|
182
558
|
}
|
|
183
559
|
/**
|
|
184
560
|
* All CodeGraph MCP tools
|
|
@@ -197,6 +573,27 @@ export declare const tools: ToolDefinition[];
|
|
|
197
573
|
* note in a description only adds once `cg` is loaded; the schemas are static).
|
|
198
574
|
*/
|
|
199
575
|
export declare function getStaticTools(): ToolDefinition[];
|
|
576
|
+
/**
|
|
577
|
+
* How many explicit-`projectPath` projects a handler keeps open at once
|
|
578
|
+
* (#1835). Each cached project may hold a file watcher, a writer lock and a
|
|
579
|
+
* SQLite connection, so the cache is bounded LRU: opening one more than this
|
|
580
|
+
* closes the least recently used. Small on purpose — a session that queries
|
|
581
|
+
* many repositories still leaks nothing; it only pays a reopen + catch-up.
|
|
582
|
+
*/
|
|
583
|
+
export declare const MAX_CACHED_PROJECTS = 8;
|
|
584
|
+
/**
|
|
585
|
+
* Engine-side lifecycle for a project the ToolHandler opened for an explicit
|
|
586
|
+
* `projectPath` (#1835). `activate` gives it the same treatment the default
|
|
587
|
+
* project gets — a file watcher while it stays open and a catch-up sync — and
|
|
588
|
+
* returns the catch-up promise, which the handler awaits (time-boxed) before
|
|
589
|
+
* calls against that project. `release` runs after active calls drain, so the
|
|
590
|
+
* engine can release shared ownership safely on LRU eviction or shutdown.
|
|
591
|
+
*/
|
|
592
|
+
export interface ProjectLifecycle {
|
|
593
|
+
open(root: string, open: () => CodeGraph): CodeGraph;
|
|
594
|
+
activate(cg: CodeGraph): Promise<void>;
|
|
595
|
+
release(cg: CodeGraph): void | Promise<void>;
|
|
596
|
+
}
|
|
200
597
|
/**
|
|
201
598
|
* Tool handler that executes tools against a CodeGraph instance
|
|
202
599
|
*
|
|
@@ -206,22 +603,43 @@ export declare function getStaticTools(): ToolDefinition[];
|
|
|
206
603
|
export declare class ToolHandler {
|
|
207
604
|
private cg;
|
|
208
605
|
private projectCache;
|
|
606
|
+
private projectLifecycle;
|
|
607
|
+
private projectGates;
|
|
608
|
+
private activeCalls;
|
|
609
|
+
private closing;
|
|
610
|
+
private pendingCloses;
|
|
611
|
+
private closeWaiters;
|
|
209
612
|
private defaultProjectHint;
|
|
613
|
+
private knownSubprojects;
|
|
614
|
+
private knownSubprojectsBase;
|
|
615
|
+
private defaultOpenFailure;
|
|
210
616
|
private worktreeMismatchCache;
|
|
211
617
|
private catchUpGate;
|
|
618
|
+
private onDatabaseReopened;
|
|
212
619
|
private queryPool;
|
|
213
620
|
constructor(cg: CodeGraph | null);
|
|
214
621
|
/**
|
|
215
622
|
* Engine-only: attach (or detach with null) the worker-thread query pool. The
|
|
216
|
-
*
|
|
623
|
+
* engine sets this after resolving its default project; the workers each
|
|
217
624
|
* hold their own WAL read connection and run {@link executeReadTool}. A
|
|
218
625
|
* worker's own ToolHandler never has a pool, so there is no nested off-loading.
|
|
219
626
|
*/
|
|
220
627
|
setQueryPool(pool: QueryPool | null): void;
|
|
628
|
+
/**
|
|
629
|
+
* Engine-only: own the lifecycle (watcher, catch-up, writer lock) of every
|
|
630
|
+
* project this handler opens for an explicit `projectPath` (#1835).
|
|
631
|
+
*/
|
|
632
|
+
setProjectLifecycle(lifecycle: ProjectLifecycle | null): void;
|
|
221
633
|
/**
|
|
222
634
|
* Update the default CodeGraph instance (e.g. after lazy initialization)
|
|
223
635
|
*/
|
|
224
636
|
setDefaultCodeGraph(cg: CodeGraph): void;
|
|
637
|
+
/**
|
|
638
|
+
* Engine-only: record why the default project failed to open (#995), so a
|
|
639
|
+
* call that needs it answers with that fix rather than "no project loaded".
|
|
640
|
+
* `null` clears it.
|
|
641
|
+
*/
|
|
642
|
+
setDefaultOpenFailure(err: WslSharedIndexError | null): void;
|
|
225
643
|
/**
|
|
226
644
|
* Engine-only: register the catch-up sync promise so the next `execute()`
|
|
227
645
|
* call awaits it before serving. The handler swallows rejections (the
|
|
@@ -230,6 +648,12 @@ export declare class ToolHandler {
|
|
|
230
648
|
* stale data, which is what would have happened without the gate.
|
|
231
649
|
*/
|
|
232
650
|
setCatchUpGate(p: Promise<void> | null): void;
|
|
651
|
+
/**
|
|
652
|
+
* Engine-only: called after a tool call's {@link freshen} reopened a database
|
|
653
|
+
* that was replaced on disk (#1902). The engine decides whether a catch-up
|
|
654
|
+
* sync is its to run (only for the instance it watches and writes).
|
|
655
|
+
*/
|
|
656
|
+
setOnDatabaseReopened(fn: ((cg: CodeGraph) => void) | null): void;
|
|
233
657
|
/**
|
|
234
658
|
* Await the catch-up gate, but no longer than the configured timeout (#905).
|
|
235
659
|
* If the reconcile settles first, we got the fully-reconciled answer. If the
|
|
@@ -245,6 +669,14 @@ export declare class ToolHandler {
|
|
|
245
669
|
* Used only to make the "no default project" error actionable.
|
|
246
670
|
*/
|
|
247
671
|
setDefaultProjectHint(searchedPath: string): void;
|
|
672
|
+
/**
|
|
673
|
+
* Engine-only: record the indexed sub-projects the workspace down-scan saw
|
|
674
|
+
* when it could not adopt a default project (#1606/#1607). An empty list
|
|
675
|
+
* clears any previous note.
|
|
676
|
+
*/
|
|
677
|
+
setKnownSubprojects(roots: string[], base: string): void;
|
|
678
|
+
/** One message line naming the indexed sub-projects, or '' when none known. */
|
|
679
|
+
private formatKnownSubprojects;
|
|
248
680
|
/**
|
|
249
681
|
* Whether a default CodeGraph instance is available
|
|
250
682
|
*/
|
|
@@ -277,6 +709,9 @@ export declare class ToolHandler {
|
|
|
277
709
|
* similar to how git finds .git/ directories.
|
|
278
710
|
*/
|
|
279
711
|
private getCodeGraph;
|
|
712
|
+
private awaitProjectGate;
|
|
713
|
+
/** Never evict a graph while a tool call or its timed-out reconcile uses it. */
|
|
714
|
+
private trimProjects;
|
|
280
715
|
/**
|
|
281
716
|
* Heal a long-lived connection whose `.codegraph/` was removed and recreated
|
|
282
717
|
* at the same path (a worktree recreated, or `rm -rf .codegraph` + re-init)
|
|
@@ -291,7 +726,7 @@ export declare class ToolHandler {
|
|
|
291
726
|
/**
|
|
292
727
|
* Close all cached project connections
|
|
293
728
|
*/
|
|
294
|
-
closeAll(): void
|
|
729
|
+
closeAll(): Promise<void>;
|
|
295
730
|
/**
|
|
296
731
|
* Validate that a value is a non-empty string within length bounds.
|
|
297
732
|
*
|
|
@@ -339,11 +774,66 @@ export declare class ToolHandler {
|
|
|
339
774
|
* Cost when nothing is pending — the common case — is one boolean check.
|
|
340
775
|
* No I/O, no parsing of markdown beyond a per-pending-file substring scan.
|
|
341
776
|
*/
|
|
777
|
+
private driftCache;
|
|
778
|
+
private static readonly DRIFT_TTL_MS;
|
|
779
|
+
/**
|
|
780
|
+
* On-disk drift check for a single indexed file (issue #1474). The code
|
|
781
|
+
* renderers slice CURRENT bytes at INDEXED line ranges; when the file
|
|
782
|
+
* changed after its last index sync those ranges can point at a DIFFERENT
|
|
783
|
+
* symbol's code — served under the requested name with `isError: false`.
|
|
784
|
+
* The watcher-based pending/degraded banners can't cover this for a
|
|
785
|
+
* project reached via `projectPath` (cross-project instances have no
|
|
786
|
+
* watcher, by construction), so freshness is verified here, at the point
|
|
787
|
+
* of emission, from data the index already stores.
|
|
788
|
+
*
|
|
789
|
+
* Cheap and precise: one stat() per file (size + mtime, the same
|
|
790
|
+
* comparison the sync fast path uses); only on a stat mismatch is the
|
|
791
|
+
* content hashed (sha256, matching extraction's `hashContent`) so a
|
|
792
|
+
* touch/checkout that rewrote identical bytes never false-positives.
|
|
793
|
+
* Results are memoized briefly so one response rendering the same file in
|
|
794
|
+
* several sections pays for the check once.
|
|
795
|
+
*
|
|
796
|
+
* Returns true when the on-disk file differs from what was indexed —
|
|
797
|
+
* i.e. indexed line ranges for it are NOT trustworthy. Any failure
|
|
798
|
+
* (missing files-table row, stat/read error) reports false: those cases
|
|
799
|
+
* are handled by the existing not-found paths, and a wrong "stale" flag
|
|
800
|
+
* would needlessly push the agent back to Read.
|
|
801
|
+
*/
|
|
802
|
+
private isFileStaleOnDisk;
|
|
803
|
+
private answerResult;
|
|
342
804
|
private withStalenessNotice;
|
|
343
805
|
/**
|
|
344
|
-
* Execute a tool by name
|
|
806
|
+
* Execute a tool by name.
|
|
807
|
+
*
|
|
808
|
+
* `sessionState` is the CALLER's per-session explore history (CG-17). The
|
|
809
|
+
* daemon shares one ToolHandler across every connected session, so this state
|
|
810
|
+
* cannot live on the handler — each session owns one and hands it in, which is
|
|
811
|
+
* what keeps two sessions on one daemon from ever seeing each other's calls.
|
|
812
|
+
* Omit it (the CLI does) and explore behaves exactly as before, untracked.
|
|
813
|
+
*/
|
|
814
|
+
execute(toolName: string, args: Record<string, unknown>, sessionState?: ExploreSessionState): Promise<ToolResult>;
|
|
815
|
+
/**
|
|
816
|
+
* Attach the caller's session view to an explore call's args (CG-17), on a
|
|
817
|
+
* COPY so the caller's object is never mutated. Nothing else sees it: a
|
|
818
|
+
* non-explore tool, or a caller with no session state, gets the args
|
|
819
|
+
* unchanged and pays nothing.
|
|
820
|
+
*
|
|
821
|
+
* A client that spells the internal key itself is stripped rather than
|
|
822
|
+
* trusted — the view decides what source a later call may withhold, so it has
|
|
823
|
+
* to come from the server's own record, never from the wire.
|
|
824
|
+
*/
|
|
825
|
+
private withSessionView;
|
|
826
|
+
/**
|
|
827
|
+
* Record an explore call's emission into the caller's session state and strip
|
|
828
|
+
* it from the result (CG-17).
|
|
829
|
+
*
|
|
830
|
+
* Unconditional strip: the property is internal, so it comes off even when
|
|
831
|
+
* there is no session state to record it into (the CLI path) — that is what
|
|
832
|
+
* keeps the agent-facing response byte-identical. Recording is wrapped
|
|
833
|
+
* because a bookkeeping bug must never fail a tool call that already
|
|
834
|
+
* succeeded.
|
|
345
835
|
*/
|
|
346
|
-
|
|
836
|
+
private takeExploreEmission;
|
|
347
837
|
/**
|
|
348
838
|
* Run a single read tool to completion and return its raw {@link ToolResult},
|
|
349
839
|
* classifying expected failures the same way {@link execute}'s catch does so
|
|
@@ -397,6 +887,12 @@ export declare class ToolHandler {
|
|
|
397
887
|
* for ordinary static edges. Used by trace + the node trail so a synthesized
|
|
398
888
|
* hop reads as "registered via onUpdate at App.tsx:3148", not a bare arrow.
|
|
399
889
|
*/
|
|
890
|
+
/**
|
|
891
|
+
* The branch conditions a flow hop's call site runs under, read from the
|
|
892
|
+
* caller's source now (`graph/branch-guards.ts`); '' when unconditional,
|
|
893
|
+
* unreadable, or the grammar for that language is not loaded.
|
|
894
|
+
*/
|
|
895
|
+
private whenLabel;
|
|
400
896
|
private synthEdgeNote;
|
|
401
897
|
/**
|
|
402
898
|
* Flow-from-named-symbols: an agent's codegraph_explore query is a bag of
|
|
@@ -446,12 +942,13 @@ export declare class ToolHandler {
|
|
|
446
942
|
*/
|
|
447
943
|
private buildPolymorphicBoundaries;
|
|
448
944
|
/**
|
|
449
|
-
*
|
|
450
|
-
*
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
*
|
|
454
|
-
* are marked
|
|
945
|
+
* Render the candidate shortlist for a dispatch site as one line.
|
|
946
|
+
*
|
|
947
|
+
* The shortlist itself is `shortlistBoundaryCandidates` in
|
|
948
|
+
* `../graph/dynamic-boundary-report` — shared with the viewer's end cap, so
|
|
949
|
+
* "candidates for key `save`" names the same symbols in both places. Symbols
|
|
950
|
+
* the agent already named are marked: that is the "you were right, here's the
|
|
951
|
+
* wiring" case.
|
|
455
952
|
*/
|
|
456
953
|
private boundaryCandidates;
|
|
457
954
|
/**
|
|
@@ -463,6 +960,14 @@ export declare class ToolHandler {
|
|
|
463
960
|
* qualify so a leaf-only exploration stays clean.
|
|
464
961
|
*/
|
|
465
962
|
private buildBlastRadiusSection;
|
|
963
|
+
/**
|
|
964
|
+
* Test-coverage note for a blast-radius entry whose DIRECT callers include no
|
|
965
|
+
* test file. A helper called only by production code can still be exercised
|
|
966
|
+
* by tests further up the caller chain (#1475: 40% of directly-unflagged
|
|
967
|
+
* symbols had a test within 2-3 hops), so walk up to 2 more hops before
|
|
968
|
+
* claiming anything — and even then claim only what was measured.
|
|
969
|
+
*/
|
|
970
|
+
private indirectTestNote;
|
|
466
971
|
/**
|
|
467
972
|
* Graph-connectivity relevance via Random-Walk-with-Restart (personalized
|
|
468
973
|
* PageRank) from the query's matched SEED nodes over the call/reference graph.
|
|
@@ -512,6 +1017,19 @@ export declare class ToolHandler {
|
|
|
512
1017
|
private handleFileView;
|
|
513
1018
|
/** Render one symbol: details + (optional) body/outline + its caller/callee trail. */
|
|
514
1019
|
private renderNodeSection;
|
|
1020
|
+
private static readonly STALE_WHOLE_FILE_MAX_LINES;
|
|
1021
|
+
private static readonly STALE_WHOLE_FILE_MAX_CHARS;
|
|
1022
|
+
/**
|
|
1023
|
+
* codegraph_node render for a symbol whose file changed on disk after the
|
|
1024
|
+
* last index sync (issue #1474). The indexed line range is no longer
|
|
1025
|
+
* trustworthy, so no slice is emitted: a small file gets its full CURRENT
|
|
1026
|
+
* source (Read-parity — sufficiency preserved, the agent still doesn't need
|
|
1027
|
+
* Read); a large one gets an explicit notice steering to the tool's own
|
|
1028
|
+
* file-read mode (or Read) — honest absence instead of confident wrongness.
|
|
1029
|
+
* Location/signature stay (they're the index's answer) but are flagged as
|
|
1030
|
+
* possibly shifted.
|
|
1031
|
+
*/
|
|
1032
|
+
private renderStaleNodeSection;
|
|
515
1033
|
/**
|
|
516
1034
|
* Build the "trail" for a symbol: its direct callees (what it calls) and
|
|
517
1035
|
* callers (what calls it), each with file:line — so codegraph_node doubles as
|
|
@@ -551,22 +1069,8 @@ export declare class ToolHandler {
|
|
|
551
1069
|
* Returns the best match and a note about alternatives if any.
|
|
552
1070
|
*/
|
|
553
1071
|
/**
|
|
554
|
-
* Check if a node matches a symbol query
|
|
555
|
-
*
|
|
556
|
-
* Accepts simple names (`run`) and three flavors of qualifier:
|
|
557
|
-
* - dotted `Session.request` (TS/JS/Python)
|
|
558
|
-
* - colon-pair `stage_apply::run` (Rust, C++, Ruby)
|
|
559
|
-
* - slash `configurator/stage_apply` (path-ish)
|
|
560
|
-
*
|
|
561
|
-
* Multi-level qualifiers compose: `crate::configurator::stage_apply::run`
|
|
562
|
-
* works. Rust path prefixes (`crate`, `super`, `self`) are stripped so
|
|
563
|
-
* the canonical `crate::module::symbol` form resolves.
|
|
564
|
-
*
|
|
565
|
-
* Resolution order, last part must always equal `node.name`:
|
|
566
|
-
* 1. Suffix-match against `qualifiedName` (handles class-scoped methods
|
|
567
|
-
* where the extractor builds the qualified name from the AST stack)
|
|
568
|
-
* 2. File-path containment (handles file-derived modules in Rust/
|
|
569
|
-
* Python — `stage_apply::run` matches a `run` in `stage_apply.rs`)
|
|
1072
|
+
* Check if a node matches a symbol query — see `matchesSymbol` in
|
|
1073
|
+
* `../graph/symbol-lookup`, which owns the rules.
|
|
570
1074
|
*/
|
|
571
1075
|
private matchesSymbol;
|
|
572
1076
|
/**
|
|
@@ -581,6 +1085,9 @@ export declare class ToolHandler {
|
|
|
581
1085
|
/**
|
|
582
1086
|
* Find ALL symbols matching a name. Used by callers/callees/impact to aggregate
|
|
583
1087
|
* results across all matching symbols (e.g., multiple classes with an `execute` method).
|
|
1088
|
+
*
|
|
1089
|
+
* The resolution itself lives in `../graph/named-symbol-flow`, so the Flow
|
|
1090
|
+
* strip and `codegraph_explore` resolve a written name to the same nodes.
|
|
584
1091
|
*/
|
|
585
1092
|
private findAllSymbols;
|
|
586
1093
|
/**
|
|
@@ -609,5 +1116,4 @@ export declare class ToolHandler {
|
|
|
609
1116
|
private textResult;
|
|
610
1117
|
private errorResult;
|
|
611
1118
|
}
|
|
612
|
-
export {};
|
|
613
1119
|
//# sourceMappingURL=tools.d.ts.map
|