@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
|
@@ -17,7 +17,7 @@ export type Location = 'global' | 'local';
|
|
|
17
17
|
* lookup. New targets add a value here when they're added to the
|
|
18
18
|
* registry. Keep these short and lowercase.
|
|
19
19
|
*/
|
|
20
|
-
export type TargetId = 'claude' | 'cursor' | 'codex' | 'opencode' | 'hermes' | 'gemini' | 'antigravity' | 'kiro';
|
|
20
|
+
export type TargetId = 'claude' | 'cursor' | 'codex' | 'opencode' | 'hermes' | 'gemini' | 'antigravity' | 'kiro' | 'copilot-vscode' | 'copilot-cli' | 'copilot-jetbrains';
|
|
21
21
|
/**
|
|
22
22
|
* Result of `target.detect(location)`.
|
|
23
23
|
*
|
|
@@ -81,12 +81,19 @@ export interface AgentTarget {
|
|
|
81
81
|
/**
|
|
82
82
|
* Whether this target supports the given install location.
|
|
83
83
|
*
|
|
84
|
-
* Some agents (
|
|
85
|
-
* config concept — only a single
|
|
86
|
-
* for an unsupported (target, location)
|
|
87
|
-
* skip cleanly with a clear message.
|
|
84
|
+
* Some agents (GitHub Copilot CLI, the Copilot JetBrains plugin)
|
|
85
|
+
* have no project-local config concept — only a single per-user
|
|
86
|
+
* config dir. Returning false for an unsupported (target, location)
|
|
87
|
+
* pair lets the orchestrator skip cleanly with a clear message.
|
|
88
88
|
*/
|
|
89
89
|
supportsLocation(loc: Location): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Read-only, and quiet. Every target is detected on every run —
|
|
92
|
+
* including agents codegraph was never installed into — and
|
|
93
|
+
* `install --refresh` skips the unconfigured ones on the strength of
|
|
94
|
+
* this answer, so a target that writes or warns here touches a config
|
|
95
|
+
* it has no business touching (issue #1870).
|
|
96
|
+
*/
|
|
90
97
|
detect(loc: Location): DetectionResult;
|
|
91
98
|
install(loc: Location, opts: InstallOptions): WriteResult;
|
|
92
99
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/installer/targets/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1C;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/installer/targets/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1C;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,MAAM,GAAG,gBAAgB,GAAG,aAAa,GAAG,mBAAmB,CAAC;AAE1K;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,EAAE,OAAO,CAAC;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The indexed version used to build the answer, even across a worker hop. */
|
|
4
|
+
contentHash: string | null;
|
|
5
|
+
}
|
|
6
|
+
export declare function validateAnswerFiles(root: string, files: AnswerFile[]): Promise<{
|
|
7
|
+
stale: string[];
|
|
8
|
+
unchecked: string[];
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=answer-freshness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"answer-freshness.d.ts","sourceRoot":"","sources":["../../src/mcp/answer-freshness.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAOD,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IACpF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC,CA6CD"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.validateAnswerFiles = validateAnswerFiles;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
5
|
+
const fs_1 = require("fs");
|
|
6
|
+
const promises_1 = require("fs/promises");
|
|
7
|
+
const file_limits_1 = require("../file-limits");
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
/** Limits apply to the entire answer; exceeding any of them refuses it. */
|
|
10
|
+
const MAX_FILES = 200;
|
|
11
|
+
const MAX_BYTES = 8 * 1024 * 1024;
|
|
12
|
+
const MAX_MS = 250;
|
|
13
|
+
async function validateAnswerFiles(root, files) {
|
|
14
|
+
const stale = [];
|
|
15
|
+
const unchecked = [];
|
|
16
|
+
const signal = AbortSignal.timeout(MAX_MS);
|
|
17
|
+
let bytes = 0;
|
|
18
|
+
for (let i = 0; i < files.length; i++) {
|
|
19
|
+
const file = files[i];
|
|
20
|
+
if (i >= MAX_FILES || bytes >= MAX_BYTES || signal.aborted) {
|
|
21
|
+
unchecked.push(...files.slice(i).map(f => f.path));
|
|
22
|
+
break;
|
|
23
|
+
}
|
|
24
|
+
if (!file.contentHash) {
|
|
25
|
+
unchecked.push(file.path);
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
try {
|
|
29
|
+
const hash = (0, crypto_1.createHash)('sha256');
|
|
30
|
+
const absolute = (0, utils_1.validatePathWithinRoot)(root, file.path);
|
|
31
|
+
if (!absolute) {
|
|
32
|
+
stale.push(file.path);
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
// A file over the index's size limit is stored as its size stamp
|
|
36
|
+
// (#1910): when the stamp still matches, the file is current without
|
|
37
|
+
// being read. Anything else falls through to the bounded read below.
|
|
38
|
+
const { size } = await (0, promises_1.stat)(absolute);
|
|
39
|
+
if (size > file_limits_1.MAX_SOURCE_FILE_SIZE_BYTES &&
|
|
40
|
+
(0, crypto_1.createHash)('sha256').update((0, file_limits_1.oversizeStamp)(size)).digest('hex') === file.contentHash) {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
const stream = (0, fs_1.createReadStream)(absolute, {
|
|
44
|
+
encoding: 'utf8', highWaterMark: 64 * 1024, signal,
|
|
45
|
+
});
|
|
46
|
+
let complete = true;
|
|
47
|
+
for await (const chunk of stream) {
|
|
48
|
+
bytes += Buffer.byteLength(chunk);
|
|
49
|
+
if (bytes > MAX_BYTES) {
|
|
50
|
+
complete = false;
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
hash.update(chunk);
|
|
54
|
+
}
|
|
55
|
+
if (!complete)
|
|
56
|
+
unchecked.push(file.path);
|
|
57
|
+
else if (hash.digest('hex') !== file.contentHash)
|
|
58
|
+
stale.push(file.path);
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
// Timeout is unknown, never a clean bill of health. A missing or
|
|
62
|
+
// unreadable contributing file cannot support the indexed answer.
|
|
63
|
+
(signal.aborted ? unchecked : stale).push(file.path);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return { stale, unchecked };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=answer-freshness.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"answer-freshness.js","sourceRoot":"","sources":["../../src/mcp/answer-freshness.ts"],"names":[],"mappings":";;AAiBA,kDAgDC;AAjED,mCAAoC;AACpC,2BAAsC;AACtC,0CAAmC;AACnC,gDAA2E;AAC3E,oCAAkD;AAQlD,2EAA2E;AAC3E,MAAM,SAAS,GAAG,GAAG,CAAC;AACtB,MAAM,SAAS,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;AAClC,MAAM,MAAM,GAAG,GAAG,CAAC;AAEZ,KAAK,UAAU,mBAAmB,CAAC,IAAY,EAAE,KAAmB;IAIzE,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,MAAM,SAAS,GAAa,EAAE,CAAC;IAC/B,MAAM,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3C,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACtC,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAE,CAAC;QACvB,IAAI,CAAC,IAAI,SAAS,IAAI,KAAK,IAAI,SAAS,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YAC3D,SAAS,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACnD,MAAM;QACR,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YAC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CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACpC,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,WAAW;gBAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1E,CAAC;QAAC,MAAM,CAAC;YACP,iEAAiE;YACjE,kEAAkE;YAClE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvD,CAAC;IACH,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;AAC9B,CAAC"}
|
|
@@ -16,7 +16,7 @@ export declare function formatUptime(ms: number): string;
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function buildPickItems(daemons: DaemonRecord[], cwdRoot: string | null, now: number): PickItem[];
|
|
18
18
|
export interface PickerDeps {
|
|
19
|
-
list: () => DaemonRecord[]
|
|
19
|
+
list: () => DaemonRecord[] | Promise<DaemonRecord[]>;
|
|
20
20
|
stop: (root: string) => Promise<StopResult>;
|
|
21
21
|
stopAll: () => Promise<StopResult[]>;
|
|
22
22
|
/** Realpath'd root of the current project's daemon, or null. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-manager.d.ts","sourceRoot":"","sources":["../../src/mcp/daemon-manager.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAElE,0FAA0F;AAC1F,eAAO,MAAM,QAAQ,iBAAiB,CAAC;AACvC,eAAO,MAAM,MAAM,eAAe,CAAC;AAEnC,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,6CAA6C;AAC7C,wBAAgB,YAAY,CAAC,EA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I,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,QAAQ,EAAE,CAAC;QAAC,YAAY,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACnG,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IAClC,iDAAiD;IACjD,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5B,2CAA2C;IAC3C,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7B;AAED;;;GAGG;AACH,wBAAsB,eAAe,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAoDrE"}
|
|
@@ -97,7 +97,7 @@ function buildPickItems(daemons, cwdRoot, now) {
|
|
|
97
97
|
*/
|
|
98
98
|
async function runDaemonPicker(deps) {
|
|
99
99
|
for (;;) {
|
|
100
|
-
const daemons = deps.list();
|
|
100
|
+
const daemons = await deps.list();
|
|
101
101
|
if (daemons.length === 0) {
|
|
102
102
|
deps.done('All daemons stopped.');
|
|
103
103
|
return;
|
|
@@ -120,6 +120,22 @@ async function runDaemonPicker(deps) {
|
|
|
120
120
|
return;
|
|
121
121
|
}
|
|
122
122
|
const result = await deps.stop(String(choice));
|
|
123
|
+
if (result.outcome === 'still-running') {
|
|
124
|
+
deps.note(`Could not stop daemon (pid ${result.pid}); left its artifacts intact — ${choice}`);
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
if (result.outcome === 'unverified') {
|
|
128
|
+
deps.note(`Could not verify daemon (pid ${result.pid}); left it running with its artifacts intact — ${choice}`);
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
if (result.outcome === 'not-running') {
|
|
132
|
+
deps.note(`Daemon was no longer running; removed stale artifacts — ${choice}`);
|
|
133
|
+
continue;
|
|
134
|
+
}
|
|
135
|
+
if (result.outcome === 'no-daemon') {
|
|
136
|
+
deps.note(`No daemon was found — ${choice}`);
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
123
139
|
const forced = result.outcome === 'kill' ? ', forced' : '';
|
|
124
140
|
deps.note(`Stopped daemon (pid ${result.pid}${forced}) — ${choice}`);
|
|
125
141
|
// Loop: the next iteration re-lists; if more remain it re-prompts, otherwise
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-manager.js","sourceRoot":"","sources":["../../src/mcp/daemon-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,oCAOC;AAOD,wCAwBC;AAsBD,
|
|
1
|
+
{"version":3,"file":"daemon-manager.js","sourceRoot":"","sources":["../../src/mcp/daemon-manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBA,oCAOC;AAOD,wCAwBC;AAsBD,0CAoDC;AAtID;;;;;;;GAOG;AACH,2CAA6B;AAG7B,0FAA0F;AAC7E,QAAA,QAAQ,GAAG,cAAc,CAAC;AAC1B,QAAA,MAAM,GAAG,YAAY,CAAC;AAQnC,6CAA6C;AAC7C,SAAgB,YAAY,CAAC,EAAU;IACrC,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;IAC7C,IAAI,CAAC,GAAG,EAAE;QAAE,OAAO,GAAG,CAAC,GAAG,CAAC;IAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7B,IAAI,CAAC,GAAG,EAAE;QAAE,OAAO,GAAG,CAAC,GAAG,CAAC;IAC3B,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IAC7B,OAAO,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC;AAC5B,CAAC;AAED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CAAC;AACH,CAAC"}
|
|
@@ -59,6 +59,14 @@ export interface DaemonLockInfo {
|
|
|
59
59
|
socketPath: string;
|
|
60
60
|
startedAt: number;
|
|
61
61
|
}
|
|
62
|
+
/** Whether a lock record contains enough identity data for a socket hello. */
|
|
63
|
+
export declare function canProbeDaemonIdentity(info: DaemonLockInfo): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Verify that the process named by a lockfile is the CodeGraph daemon serving
|
|
66
|
+
* its socket. A bare PID liveness probe is insufficient because OSes reuse PIDs
|
|
67
|
+
* after an OOM/SIGKILL (#1553).
|
|
68
|
+
*/
|
|
69
|
+
export declare function probeDaemonIdentity(info: DaemonLockInfo, timeoutMs?: number): Promise<boolean>;
|
|
62
70
|
/**
|
|
63
71
|
* Serialize a {@link DaemonLockInfo} for writing to the pidfile. JSON for
|
|
64
72
|
* human readability — operators occasionally `cat` this when debugging.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-paths.d.ts","sourceRoot":"","sources":["../../src/mcp/daemon-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;
|
|
1
|
+
{"version":3,"file":"daemon-paths.d.ts","sourceRoot":"","sources":["../../src/mcp/daemon-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AA2BH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAQvE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED,kEAAkE;AAClE,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,+CAA+C;AAC/C,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,8EAA8E;AAC9E,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAOpE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,cAAc,EAAE,SAAS,SAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CA0C7F;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,cAAc,GAAG,MAAM,CAE3D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAuBjE"}
|
|
@@ -65,9 +65,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
65
65
|
exports.getDaemonSocketCandidates = getDaemonSocketCandidates;
|
|
66
66
|
exports.getDaemonSocketPath = getDaemonSocketPath;
|
|
67
67
|
exports.getDaemonPidPath = getDaemonPidPath;
|
|
68
|
+
exports.canProbeDaemonIdentity = canProbeDaemonIdentity;
|
|
69
|
+
exports.probeDaemonIdentity = probeDaemonIdentity;
|
|
68
70
|
exports.encodeLockInfo = encodeLockInfo;
|
|
69
71
|
exports.decodeLockInfo = decodeLockInfo;
|
|
70
72
|
const crypto = __importStar(require("crypto"));
|
|
73
|
+
const net = __importStar(require("net"));
|
|
71
74
|
const os = __importStar(require("os"));
|
|
72
75
|
const path = __importStar(require("path"));
|
|
73
76
|
const directory_1 = require("../directory");
|
|
@@ -126,6 +129,65 @@ function getDaemonSocketPath(projectRoot) {
|
|
|
126
129
|
function getDaemonPidPath(projectRoot) {
|
|
127
130
|
return path.join((0, directory_1.getCodeGraphDir)(projectRoot), 'daemon.pid');
|
|
128
131
|
}
|
|
132
|
+
/** Whether a lock record contains enough identity data for a socket hello. */
|
|
133
|
+
function canProbeDaemonIdentity(info) {
|
|
134
|
+
return (Number.isInteger(info.pid) &&
|
|
135
|
+
info.pid > 0 &&
|
|
136
|
+
typeof info.socketPath === 'string' &&
|
|
137
|
+
info.socketPath.length > 0);
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Verify that the process named by a lockfile is the CodeGraph daemon serving
|
|
141
|
+
* its socket. A bare PID liveness probe is insufficient because OSes reuse PIDs
|
|
142
|
+
* after an OOM/SIGKILL (#1553).
|
|
143
|
+
*/
|
|
144
|
+
function probeDaemonIdentity(info, timeoutMs = 1_000) {
|
|
145
|
+
if (!canProbeDaemonIdentity(info))
|
|
146
|
+
return Promise.resolve(false);
|
|
147
|
+
return new Promise((resolve) => {
|
|
148
|
+
let socket;
|
|
149
|
+
let buffer = '';
|
|
150
|
+
let done = false;
|
|
151
|
+
const finish = (ok) => {
|
|
152
|
+
if (done)
|
|
153
|
+
return;
|
|
154
|
+
done = true;
|
|
155
|
+
clearTimeout(timer);
|
|
156
|
+
socket.destroy();
|
|
157
|
+
resolve(ok);
|
|
158
|
+
};
|
|
159
|
+
const timer = setTimeout(() => finish(false), timeoutMs);
|
|
160
|
+
timer.unref?.();
|
|
161
|
+
try {
|
|
162
|
+
socket = net.createConnection(info.socketPath);
|
|
163
|
+
}
|
|
164
|
+
catch {
|
|
165
|
+
clearTimeout(timer);
|
|
166
|
+
resolve(false);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
socket.setEncoding('utf8');
|
|
170
|
+
socket.on('data', (chunk) => {
|
|
171
|
+
buffer += String(chunk);
|
|
172
|
+
if (buffer.length > 4096)
|
|
173
|
+
return finish(false);
|
|
174
|
+
const newline = buffer.indexOf('\n');
|
|
175
|
+
if (newline < 0)
|
|
176
|
+
return;
|
|
177
|
+
try {
|
|
178
|
+
const hello = JSON.parse(buffer.slice(0, newline));
|
|
179
|
+
finish(hello.protocol === 1 &&
|
|
180
|
+
hello.pid === info.pid &&
|
|
181
|
+
(info.version === 'unknown' || hello.codegraph === info.version));
|
|
182
|
+
}
|
|
183
|
+
catch {
|
|
184
|
+
finish(false);
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
socket.on('error', () => finish(false));
|
|
188
|
+
socket.on('close', () => finish(false));
|
|
189
|
+
});
|
|
190
|
+
}
|
|
129
191
|
/**
|
|
130
192
|
* Serialize a {@link DaemonLockInfo} for writing to the pidfile. JSON for
|
|
131
193
|
* human readability — operators occasionally `cat` this when debugging.
|
|
@@ -151,13 +213,14 @@ function decodeLockInfo(raw) {
|
|
|
151
213
|
typeof parsed.startedAt === 'number') {
|
|
152
214
|
return parsed;
|
|
153
215
|
}
|
|
154
|
-
return null;
|
|
155
216
|
}
|
|
156
217
|
catch {
|
|
157
218
|
// Fall through to legacy plain-pid handling.
|
|
158
219
|
}
|
|
220
|
+
if (!/^[1-9]\d*$/.test(trimmed))
|
|
221
|
+
return null;
|
|
159
222
|
const pid = Number(trimmed);
|
|
160
|
-
if (Number.
|
|
223
|
+
if (Number.isSafeInteger(pid)) {
|
|
161
224
|
return { pid, version: 'unknown', socketPath: '', startedAt: 0 };
|
|
162
225
|
}
|
|
163
226
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-paths.js","sourceRoot":"","sources":["../../src/mcp/daemon-paths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"daemon-paths.js","sourceRoot":"","sources":["../../src/mcp/daemon-paths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCH,8DAQC;AASD,kDAGC;AAGD,4CAEC;AAWD,wDAOC;AAOD,kDA0CC;AAMD,wCAEC;AAOD,wCAuBC;AAzKD,+CAAiC;AACjC,yCAA2B;AAC3B,uCAAyB;AACzB,2CAA6B;AAC7B,4CAA+C;AAE/C,oDAAoD;AACpD,MAAM,uBAAuB,GAAG,GAAG,CAAC;AAEpC,8EAA8E;AA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IAAI,CAAC;IAC1B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,IACE,MAAM;YACN,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ;YAC9B,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ;YAClC,OAAO,MAAM,CAAC,UAAU,KAAK,QAAQ;YACrC,OAAO,MAAM,CAAC,SAAS,KAAK,QAAQ,EACpC,CAAC;YACD,OAAO,MAAwB,CAAC;QAClC,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,6CAA6C;IAC/C,CAAC;IACD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC;QAAE,OAAO,IAAI,CAAC;IAC7C,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;IAC5B,IAAI,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;QAC9B,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IACnE,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -29,19 +29,32 @@ export declare function deregisterDaemon(root: string): void;
|
|
|
29
29
|
export declare function listDaemons(opts?: {
|
|
30
30
|
prune?: boolean;
|
|
31
31
|
}): DaemonRecord[];
|
|
32
|
+
/**
|
|
33
|
+
* Registry entries whose socket hello proves the recorded process is the
|
|
34
|
+
* daemon. Used by every user-facing list/stop-all path so a reused PID cannot
|
|
35
|
+
* appear as a phantom running daemon (#1553).
|
|
36
|
+
*/
|
|
37
|
+
export declare function listVerifiedDaemons(opts?: {
|
|
38
|
+
prune?: boolean;
|
|
39
|
+
}): Promise<DaemonRecord[]>;
|
|
40
|
+
/** Remove daemon artifacts only when no matching daemon answers the socket hello. */
|
|
41
|
+
export declare function clearStaleDaemonArtifacts(root: string): Promise<boolean>;
|
|
32
42
|
export interface StopResult {
|
|
33
43
|
root: string;
|
|
34
44
|
pid: number | null;
|
|
35
|
-
/** 'term' graceful, 'kill' force, 'not-running' stale
|
|
36
|
-
outcome: 'term' | 'kill' | 'not-running' | 'no-daemon';
|
|
45
|
+
/** 'term' graceful, 'kill' force, 'still-running' refused, 'not-running' stale, 'no-daemon' absent, 'unverified' preserved. */
|
|
46
|
+
outcome: 'term' | 'kill' | 'still-running' | 'not-running' | 'no-daemon' | 'unverified';
|
|
37
47
|
}
|
|
38
48
|
/**
|
|
39
49
|
* Stop the daemon serving `root`: SIGTERM, wait, then SIGKILL if it won't go,
|
|
40
50
|
* then sweep its artifacts. `root` must be realpath'd (match how the daemon
|
|
41
51
|
* keys its socket/lockfile). Resolves the pid from the authoritative lockfile,
|
|
42
|
-
* falling back to the registry.
|
|
52
|
+
* falling back to the registry. Rebuild callers preserve unverified live locks
|
|
53
|
+
* instead of interpreting a failed probe as permission to discard the database.
|
|
43
54
|
*/
|
|
44
|
-
export declare function stopDaemonAt(root: string
|
|
55
|
+
export declare function stopDaemonAt(root: string, options?: {
|
|
56
|
+
preserveUnverified?: boolean;
|
|
57
|
+
}): Promise<StopResult>;
|
|
45
58
|
/** Stop every registered, live daemon. */
|
|
46
59
|
export declare function stopAllDaemons(): Promise<StopResult[]>;
|
|
47
60
|
//# sourceMappingURL=daemon-registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-registry.d.ts","sourceRoot":"","sources":["../../src/mcp/daemon-registry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"daemon-registry.d.ts","sourceRoot":"","sources":["../../src/mcp/daemon-registry.ts"],"names":[],"mappings":"AAkCA,MAAM,WAAW,YAAY;IAC3B,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,SAAS,E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terDaemon;
|
|
40
40
|
exports.listDaemons = listDaemons;
|
|
41
|
+
exports.listVerifiedDaemons = listVerifiedDaemons;
|
|
42
|
+
exports.clearStaleDaemonArtifacts = clearStaleDaemonArtifacts;
|
|
41
43
|
exports.stopDaemonAt = stopDaemonAt;
|
|
42
44
|
exports.stopAllDaemons = stopAllDaemons;
|
|
43
45
|
/**
|
|
@@ -65,6 +67,7 @@ const os = __importStar(require("os"));
|
|
|
65
67
|
const path = __importStar(require("path"));
|
|
66
68
|
const crypto = __importStar(require("crypto"));
|
|
67
69
|
const daemon_paths_1 = require("./daemon-paths");
|
|
70
|
+
const writer_lock_1 = require("./writer-lock");
|
|
68
71
|
/**
|
|
69
72
|
* `~/.codegraph/daemons` — GLOBAL, keyed off the home install dir. (The
|
|
70
73
|
* `CODEGRAPH_DIR` env var only renames the per-project index dir, not this.)
|
|
@@ -148,24 +151,97 @@ function listDaemons(opts = {}) {
|
|
|
148
151
|
}
|
|
149
152
|
return live.sort((a, b) => b.startedAt - a.startedAt);
|
|
150
153
|
}
|
|
151
|
-
/**
|
|
152
|
-
|
|
154
|
+
/**
|
|
155
|
+
* Registry entries whose socket hello proves the recorded process is the
|
|
156
|
+
* daemon. Used by every user-facing list/stop-all path so a reused PID cannot
|
|
157
|
+
* appear as a phantom running daemon (#1553).
|
|
158
|
+
*/
|
|
159
|
+
async function listVerifiedDaemons(opts = {}) {
|
|
160
|
+
const prune = opts.prune ?? true;
|
|
161
|
+
const candidates = listDaemons({ prune });
|
|
162
|
+
const checks = await Promise.all(candidates.map(async (rec) => ({
|
|
163
|
+
rec,
|
|
164
|
+
verified: await (0, daemon_paths_1.probeDaemonIdentity)(rec),
|
|
165
|
+
})));
|
|
166
|
+
const verified = [];
|
|
167
|
+
for (const check of checks) {
|
|
168
|
+
if (check.verified)
|
|
169
|
+
verified.push(check.rec);
|
|
170
|
+
else if (prune)
|
|
171
|
+
deregisterDaemon(check.rec.root);
|
|
172
|
+
}
|
|
173
|
+
return verified;
|
|
174
|
+
}
|
|
175
|
+
/** Remove stale artifacts while holding the project writer slot exclusively. */
|
|
176
|
+
function cleanupDaemonArtifacts(root, expectedLockContents) {
|
|
177
|
+
const pidPath = (0, daemon_paths_1.getDaemonPidPath)(root);
|
|
178
|
+
// A daemon owns writer.pid before binding or relocating its socket. Claiming
|
|
179
|
+
// the writer slot therefore freezes every legitimate daemon artifact writer
|
|
180
|
+
// while we compare the inspected lock snapshot and clean it up.
|
|
181
|
+
if ((0, writer_lock_1.readWriterLock)(root)?.pid === process.pid)
|
|
182
|
+
return false;
|
|
183
|
+
const claim = (0, writer_lock_1.tryAcquireWriterLock)(root, 'cleanup');
|
|
184
|
+
if (claim.kind === 'taken')
|
|
185
|
+
return false;
|
|
153
186
|
try {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
// FS (ExFAT/FAT; #997) left its socket at the tmpdir fallback, not candidate 0.
|
|
160
|
-
if (process.platform !== 'win32') {
|
|
161
|
-
for (const candidate of (0, daemon_paths_1.getDaemonSocketCandidates)(root)) {
|
|
187
|
+
if (expectedLockContents === null) {
|
|
188
|
+
if (fs.existsSync(pidPath))
|
|
189
|
+
return false;
|
|
190
|
+
}
|
|
191
|
+
else {
|
|
162
192
|
try {
|
|
163
|
-
fs.
|
|
193
|
+
if (fs.readFileSync(pidPath, 'utf8') !== expectedLockContents)
|
|
194
|
+
return false;
|
|
195
|
+
}
|
|
196
|
+
catch {
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
// POSIX sockets are real files; Windows named pipes vanish with the process.
|
|
201
|
+
// Sweep every candidate before releasing daemon.pid, so no successor can
|
|
202
|
+
// acquire the lock and bind a socket that this cleanup then removes.
|
|
203
|
+
if (process.platform !== 'win32') {
|
|
204
|
+
for (const candidate of (0, daemon_paths_1.getDaemonSocketCandidates)(root)) {
|
|
205
|
+
try {
|
|
206
|
+
fs.unlinkSync(candidate);
|
|
207
|
+
}
|
|
208
|
+
catch { /* gone */ }
|
|
164
209
|
}
|
|
165
|
-
catch { /* gone */ }
|
|
166
210
|
}
|
|
211
|
+
deregisterDaemon(root);
|
|
212
|
+
try {
|
|
213
|
+
fs.unlinkSync(pidPath);
|
|
214
|
+
}
|
|
215
|
+
catch (err) {
|
|
216
|
+
if (err.code !== 'ENOENT')
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
return true;
|
|
167
220
|
}
|
|
168
|
-
|
|
221
|
+
finally {
|
|
222
|
+
(0, writer_lock_1.releaseWriterLock)(root);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
/** Remove daemon artifacts only when no matching daemon answers the socket hello. */
|
|
226
|
+
async function clearStaleDaemonArtifacts(root) {
|
|
227
|
+
const pidPath = (0, daemon_paths_1.getDaemonPidPath)(root);
|
|
228
|
+
const hadArtifacts = fs.existsSync(pidPath) || (process.platform !== 'win32' && (0, daemon_paths_1.getDaemonSocketCandidates)(root).some((p) => fs.existsSync(p)));
|
|
229
|
+
if (!hadArtifacts)
|
|
230
|
+
return false;
|
|
231
|
+
let info = null;
|
|
232
|
+
let lockContents = null;
|
|
233
|
+
try {
|
|
234
|
+
lockContents = fs.readFileSync(pidPath, 'utf8');
|
|
235
|
+
info = (0, daemon_paths_1.decodeLockInfo)(lockContents);
|
|
236
|
+
}
|
|
237
|
+
catch { /* missing/corrupt */ }
|
|
238
|
+
if (info && isProcessAlive(info.pid)) {
|
|
239
|
+
// A live legacy holder has no socket path to probe. That is inconclusive,
|
|
240
|
+
// not proof of PID reuse, so preserve its lock rather than risk two writers.
|
|
241
|
+
if (!(0, daemon_paths_1.canProbeDaemonIdentity)(info) || await (0, daemon_paths_1.probeDaemonIdentity)(info))
|
|
242
|
+
return false;
|
|
243
|
+
}
|
|
244
|
+
return cleanupDaemonArtifacts(root, lockContents);
|
|
169
245
|
}
|
|
170
246
|
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
171
247
|
async function waitForDeath(pid, timeoutMs) {
|
|
@@ -181,13 +257,17 @@ async function waitForDeath(pid, timeoutMs) {
|
|
|
181
257
|
* Stop the daemon serving `root`: SIGTERM, wait, then SIGKILL if it won't go,
|
|
182
258
|
* then sweep its artifacts. `root` must be realpath'd (match how the daemon
|
|
183
259
|
* keys its socket/lockfile). Resolves the pid from the authoritative lockfile,
|
|
184
|
-
* falling back to the registry.
|
|
260
|
+
* falling back to the registry. Rebuild callers preserve unverified live locks
|
|
261
|
+
* instead of interpreting a failed probe as permission to discard the database.
|
|
185
262
|
*/
|
|
186
|
-
async function stopDaemonAt(root) {
|
|
263
|
+
async function stopDaemonAt(root, options = {}) {
|
|
187
264
|
let pid = null;
|
|
265
|
+
let identity = null;
|
|
266
|
+
let lockContents = null;
|
|
188
267
|
try {
|
|
189
|
-
|
|
190
|
-
|
|
268
|
+
lockContents = fs.readFileSync((0, daemon_paths_1.getDaemonPidPath)(root), 'utf8');
|
|
269
|
+
identity = (0, daemon_paths_1.decodeLockInfo)(lockContents);
|
|
270
|
+
pid = identity?.pid ?? null;
|
|
191
271
|
}
|
|
192
272
|
catch {
|
|
193
273
|
/* no lockfile */
|
|
@@ -195,15 +275,39 @@ async function stopDaemonAt(root) {
|
|
|
195
275
|
if (pid == null) {
|
|
196
276
|
const rec = listDaemons({ prune: false }).find((r) => path.resolve(r.root) === path.resolve(root));
|
|
197
277
|
pid = rec?.pid ?? null;
|
|
278
|
+
if (rec)
|
|
279
|
+
identity = rec;
|
|
198
280
|
}
|
|
199
281
|
if (pid == null) {
|
|
200
|
-
cleanupDaemonArtifacts(root);
|
|
282
|
+
cleanupDaemonArtifacts(root, lockContents);
|
|
201
283
|
return { root, pid: null, outcome: 'no-daemon' };
|
|
202
284
|
}
|
|
203
285
|
if (!isProcessAlive(pid)) {
|
|
204
|
-
cleanupDaemonArtifacts(root);
|
|
205
|
-
return { root, pid, outcome: 'not-running' };
|
|
286
|
+
const removed = cleanupDaemonArtifacts(root, lockContents);
|
|
287
|
+
return { root, pid, outcome: removed ? 'not-running' : 'unverified' };
|
|
288
|
+
}
|
|
289
|
+
// Never signal a process merely because it reused a stale daemon PID. The
|
|
290
|
+
// daemon's immediate hello is the process-identity proof (#1553).
|
|
291
|
+
if (!identity || !(0, daemon_paths_1.canProbeDaemonIdentity)(identity)) {
|
|
292
|
+
return { root, pid, outcome: 'unverified' };
|
|
293
|
+
}
|
|
294
|
+
if (!await (0, daemon_paths_1.probeDaemonIdentity)(identity)) {
|
|
295
|
+
if (options.preserveUnverified)
|
|
296
|
+
return { root, pid, outcome: 'unverified' };
|
|
297
|
+
const removed = cleanupDaemonArtifacts(root, lockContents);
|
|
298
|
+
return { root, pid, outcome: removed ? 'not-running' : 'unverified' };
|
|
206
299
|
}
|
|
300
|
+
// Identity probing awaits I/O: never act on a superseded ownership record.
|
|
301
|
+
const sameLock = () => {
|
|
302
|
+
try {
|
|
303
|
+
return fs.readFileSync((0, daemon_paths_1.getDaemonPidPath)(root), 'utf8') === lockContents;
|
|
304
|
+
}
|
|
305
|
+
catch {
|
|
306
|
+
return lockContents === null;
|
|
307
|
+
}
|
|
308
|
+
};
|
|
309
|
+
if (!sameLock())
|
|
310
|
+
return { root, pid, outcome: 'unverified' };
|
|
207
311
|
// POSIX: SIGTERM runs the daemon's graceful shutdown. Windows: TerminateProcess
|
|
208
312
|
// (no graceful path), so we always sweep artifacts ourselves below.
|
|
209
313
|
try {
|
|
@@ -212,20 +316,26 @@ async function stopDaemonAt(root) {
|
|
|
212
316
|
catch { /* raced to exit */ }
|
|
213
317
|
let outcome = 'term';
|
|
214
318
|
if (!(await waitForDeath(pid, 3000))) {
|
|
319
|
+
// Re-prove identity before escalating; the old PID may have been reused.
|
|
320
|
+
if (!sameLock() || !await (0, daemon_paths_1.probeDaemonIdentity)(identity) || !sameLock()) {
|
|
321
|
+
return { root, pid, outcome: 'still-running' };
|
|
322
|
+
}
|
|
215
323
|
try {
|
|
216
324
|
process.kill(pid, 'SIGKILL');
|
|
217
325
|
}
|
|
218
326
|
catch { /* raced to exit */ }
|
|
219
|
-
await waitForDeath(pid, 2000)
|
|
327
|
+
if (!(await waitForDeath(pid, 2000))) {
|
|
328
|
+
return { root, pid, outcome: 'still-running' };
|
|
329
|
+
}
|
|
220
330
|
outcome = 'kill';
|
|
221
331
|
}
|
|
222
|
-
cleanupDaemonArtifacts(root);
|
|
332
|
+
cleanupDaemonArtifacts(root, lockContents);
|
|
223
333
|
return { root, pid, outcome };
|
|
224
334
|
}
|
|
225
335
|
/** Stop every registered, live daemon. */
|
|
226
336
|
async function stopAllDaemons() {
|
|
227
337
|
const results = [];
|
|
228
|
-
for (const rec of
|
|
338
|
+
for (const rec of await listVerifiedDaemons()) {
|
|
229
339
|
results.push(await stopDaemonAt(rec.root));
|
|
230
340
|
}
|
|
231
341
|
return results;
|