@colbymchenry/codegraph-win32-arm64 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/codegraph +5 -0
- package/lib/dist/.test-build-engine.json +1 -0
- package/lib/dist/.test-build-viewer.json +1 -0
- package/lib/dist/bin/codegraph.d.ts +1 -0
- package/lib/dist/bin/codegraph.d.ts.map +1 -1
- package/lib/dist/bin/codegraph.js +605 -291
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/bin/command-supervision.d.ts +7 -0
- package/lib/dist/bin/command-supervision.d.ts.map +1 -1
- package/lib/dist/bin/command-supervision.js +39 -27
- package/lib/dist/bin/command-supervision.js.map +1 -1
- package/lib/dist/bin/viewer-gate.d.ts +17 -0
- package/lib/dist/bin/viewer-gate.d.ts.map +1 -0
- package/lib/dist/bin/viewer-gate.js +31 -0
- package/lib/dist/bin/viewer-gate.js.map +1 -0
- package/lib/dist/context/index.d.ts.map +1 -1
- package/lib/dist/context/index.js +43 -2
- package/lib/dist/context/index.js.map +1 -1
- package/lib/dist/db/index.d.ts +21 -2
- package/lib/dist/db/index.d.ts.map +1 -1
- package/lib/dist/db/index.js +86 -31
- package/lib/dist/db/index.js.map +1 -1
- package/lib/dist/db/migrations.d.ts +1 -1
- package/lib/dist/db/migrations.d.ts.map +1 -1
- package/lib/dist/db/migrations.js +40 -1
- package/lib/dist/db/migrations.js.map +1 -1
- package/lib/dist/db/queries.d.ts +454 -10
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1080 -41
- package/lib/dist/db/queries.js.map +1 -1
- package/lib/dist/db/schema.sql +11 -1
- package/lib/dist/db/sqlite-adapter.d.ts +2 -0
- package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
- package/lib/dist/db/sqlite-adapter.js +56 -7
- package/lib/dist/db/sqlite-adapter.js.map +1 -1
- package/lib/dist/db/synthesis-stage.d.ts +12 -0
- package/lib/dist/db/synthesis-stage.d.ts.map +1 -0
- package/lib/dist/db/synthesis-stage.js +89 -0
- package/lib/dist/db/synthesis-stage.js.map +1 -0
- package/lib/dist/db/wal-valve.d.ts +32 -12
- package/lib/dist/db/wal-valve.d.ts.map +1 -1
- package/lib/dist/db/wal-valve.js +65 -22
- package/lib/dist/db/wal-valve.js.map +1 -1
- package/lib/dist/db/wsl-shared-index.d.ts +53 -0
- package/lib/dist/db/wsl-shared-index.d.ts.map +1 -0
- package/lib/dist/db/wsl-shared-index.js +121 -0
- package/lib/dist/db/wsl-shared-index.js.map +1 -0
- package/lib/dist/directory.d.ts +131 -2
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +299 -23
- package/lib/dist/directory.js.map +1 -1
- package/lib/dist/errors.d.ts +14 -0
- package/lib/dist/errors.d.ts.map +1 -1
- package/lib/dist/errors.js +16 -1
- package/lib/dist/errors.js.map +1 -1
- package/lib/dist/extraction/astro-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/astro-extractor.js +7 -35
- package/lib/dist/extraction/astro-extractor.js.map +1 -1
- package/lib/dist/extraction/cfml-extractor.d.ts +77 -10
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/cfml-extractor.js +302 -71
- package/lib/dist/extraction/cfml-extractor.js.map +1 -1
- package/lib/dist/extraction/commonjs-requires.d.ts +23 -0
- package/lib/dist/extraction/commonjs-requires.d.ts.map +1 -0
- package/lib/dist/extraction/commonjs-requires.js +68 -0
- package/lib/dist/extraction/commonjs-requires.js.map +1 -0
- package/lib/dist/extraction/dfm-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/dfm-extractor.js +14 -10
- package/lib/dist/extraction/dfm-extractor.js.map +1 -1
- package/lib/dist/extraction/extraction-version.d.ts +1 -1
- package/lib/dist/extraction/extraction-version.js +1 -1
- package/lib/dist/extraction/function-ref.d.ts +6 -4
- package/lib/dist/extraction/function-ref.d.ts.map +1 -1
- package/lib/dist/extraction/function-ref.js +35 -14
- package/lib/dist/extraction/function-ref.js.map +1 -1
- package/lib/dist/extraction/generated-detection.d.ts +9 -0
- package/lib/dist/extraction/generated-detection.d.ts.map +1 -1
- package/lib/dist/extraction/generated-detection.js +42 -2
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +40 -0
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +171 -1
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +132 -19
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +825 -195
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/kernel/index.d.ts.map +1 -1
- package/lib/dist/extraction/kernel/index.js +6 -0
- package/lib/dist/extraction/kernel/index.js.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.d.ts +73 -0
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +412 -16
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
- package/lib/dist/extraction/languages/csharp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/csharp.js +14 -5
- package/lib/dist/extraction/languages/csharp.js.map +1 -1
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
- package/lib/dist/extraction/languages/dart.js +16 -3
- package/lib/dist/extraction/languages/dart.js.map +1 -1
- package/lib/dist/extraction/languages/javascript.js +1 -1
- package/lib/dist/extraction/languages/javascript.js.map +1 -1
- package/lib/dist/extraction/languages/kotlin.d.ts +4 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
- package/lib/dist/extraction/languages/kotlin.js +237 -36
- package/lib/dist/extraction/languages/kotlin.js.map +1 -1
- package/lib/dist/extraction/languages/lua.d.ts.map +1 -1
- package/lib/dist/extraction/languages/lua.js +4 -1
- package/lib/dist/extraction/languages/lua.js.map +1 -1
- package/lib/dist/extraction/languages/python.d.ts.map +1 -1
- package/lib/dist/extraction/languages/python.js +71 -0
- package/lib/dist/extraction/languages/python.js.map +1 -1
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
- package/lib/dist/extraction/languages/rust.js +3 -0
- package/lib/dist/extraction/languages/rust.js.map +1 -1
- package/lib/dist/extraction/languages/scala.d.ts.map +1 -1
- package/lib/dist/extraction/languages/scala.js +18 -3
- package/lib/dist/extraction/languages/scala.js.map +1 -1
- package/lib/dist/extraction/languages/swift.d.ts +15 -0
- package/lib/dist/extraction/languages/swift.d.ts.map +1 -1
- package/lib/dist/extraction/languages/swift.js +50 -0
- package/lib/dist/extraction/languages/swift.js.map +1 -1
- package/lib/dist/extraction/languages/typescript.d.ts +7 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/typescript.js +30 -2
- package/lib/dist/extraction/languages/typescript.js.map +1 -1
- package/lib/dist/extraction/liquid-extractor.d.ts +18 -0
- package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/liquid-extractor.js +98 -22
- package/lib/dist/extraction/liquid-extractor.js.map +1 -1
- package/lib/dist/extraction/mybatis-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/mybatis-extractor.js +6 -4
- package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
- package/lib/dist/extraction/parse-budget.d.ts +16 -0
- package/lib/dist/extraction/parse-budget.d.ts.map +1 -0
- package/lib/dist/extraction/parse-budget.js +24 -0
- package/lib/dist/extraction/parse-budget.js.map +1 -0
- package/lib/dist/extraction/parse-pool.d.ts +12 -0
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +51 -3
- package/lib/dist/extraction/parse-pool.js.map +1 -1
- package/lib/dist/extraction/parse-worker.js +3 -1
- package/lib/dist/extraction/parse-worker.js.map +1 -1
- package/lib/dist/extraction/sfc-script.d.ts +43 -0
- package/lib/dist/extraction/sfc-script.d.ts.map +1 -0
- package/lib/dist/extraction/sfc-script.js +135 -0
- package/lib/dist/extraction/sfc-script.js.map +1 -0
- package/lib/dist/extraction/store-worker.js +5 -0
- package/lib/dist/extraction/store-worker.js.map +1 -1
- package/lib/dist/extraction/store-writer.d.ts +10 -2
- package/lib/dist/extraction/store-writer.d.ts.map +1 -1
- package/lib/dist/extraction/store-writer.js +12 -4
- package/lib/dist/extraction/store-writer.js.map +1 -1
- package/lib/dist/extraction/svelte-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/svelte-extractor.js +7 -37
- package/lib/dist/extraction/svelte-extractor.js.map +1 -1
- package/lib/dist/extraction/syntax-tokens.d.ts +103 -0
- package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -0
- package/lib/dist/extraction/syntax-tokens.js +382 -0
- package/lib/dist/extraction/syntax-tokens.js.map +1 -0
- package/lib/dist/extraction/tree-sitter-helpers.d.ts +5 -0
- package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter-helpers.js +17 -0
- package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.d.ts +29 -3
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.d.ts +104 -17
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +943 -88
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/extraction/vue-extractor.d.ts +7 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/vue-extractor.js +73 -35
- package/lib/dist/extraction/vue-extractor.js.map +1 -1
- package/lib/dist/extraction/vue-options-api.d.ts +28 -0
- package/lib/dist/extraction/vue-options-api.d.ts.map +1 -0
- package/lib/dist/extraction/vue-options-api.js +196 -0
- package/lib/dist/extraction/vue-options-api.js.map +1 -0
- package/lib/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
- package/lib/dist/file-limits.d.ts +40 -0
- package/lib/dist/file-limits.d.ts.map +1 -0
- package/lib/dist/file-limits.js +147 -0
- package/lib/dist/file-limits.js.map +1 -0
- package/lib/dist/graph/branch-guards.d.ts +265 -0
- package/lib/dist/graph/branch-guards.d.ts.map +1 -0
- package/lib/dist/graph/branch-guards.js +2326 -0
- package/lib/dist/graph/branch-guards.js.map +1 -0
- package/lib/dist/graph/dead-code.d.ts +251 -0
- package/lib/dist/graph/dead-code.d.ts.map +1 -0
- package/lib/dist/graph/dead-code.js +776 -0
- package/lib/dist/graph/dead-code.js.map +1 -0
- package/lib/dist/graph/dynamic-boundary-report.d.ts +121 -0
- package/lib/dist/graph/dynamic-boundary-report.d.ts.map +1 -0
- package/lib/dist/graph/dynamic-boundary-report.js +283 -0
- package/lib/dist/graph/dynamic-boundary-report.js.map +1 -0
- package/lib/dist/graph/index.d.ts +4 -0
- package/lib/dist/graph/index.d.ts.map +1 -1
- package/lib/dist/graph/index.js +16 -1
- package/lib/dist/graph/index.js.map +1 -1
- package/lib/dist/graph/named-symbol-flow.d.ts +125 -0
- package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -0
- package/lib/dist/graph/named-symbol-flow.js +559 -0
- package/lib/dist/graph/named-symbol-flow.js.map +1 -0
- package/lib/dist/graph/symbol-lookup.d.ts +83 -0
- package/lib/dist/graph/symbol-lookup.d.ts.map +1 -0
- package/lib/dist/graph/symbol-lookup.js +181 -0
- package/lib/dist/graph/symbol-lookup.js.map +1 -0
- package/lib/dist/graph/traversal.d.ts +9 -0
- package/lib/dist/graph/traversal.d.ts.map +1 -1
- package/lib/dist/graph/traversal.js +61 -35
- package/lib/dist/graph/traversal.js.map +1 -1
- package/lib/dist/graph/type-hierarchy.d.ts +155 -0
- package/lib/dist/graph/type-hierarchy.d.ts.map +1 -0
- package/lib/dist/graph/type-hierarchy.js +382 -0
- package/lib/dist/graph/type-hierarchy.js.map +1 -0
- package/lib/dist/index.d.ts +256 -11
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +402 -34
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +3 -2
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/targets/antigravity.d.ts.map +1 -1
- package/lib/dist/installer/targets/antigravity.js +14 -2
- package/lib/dist/installer/targets/antigravity.js.map +1 -1
- package/lib/dist/installer/targets/claude.d.ts +3 -0
- package/lib/dist/installer/targets/claude.d.ts.map +1 -1
- package/lib/dist/installer/targets/claude.js +35 -7
- package/lib/dist/installer/targets/claude.js.map +1 -1
- package/lib/dist/installer/targets/codex.d.ts +2 -1
- package/lib/dist/installer/targets/codex.d.ts.map +1 -1
- package/lib/dist/installer/targets/codex.js +14 -4
- package/lib/dist/installer/targets/codex.js.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.js +7 -1
- package/lib/dist/installer/targets/copilot-cli.js.map +1 -1
- package/lib/dist/installer/targets/opencode.d.ts +16 -5
- package/lib/dist/installer/targets/opencode.d.ts.map +1 -1
- package/lib/dist/installer/targets/opencode.js +73 -22
- package/lib/dist/installer/targets/opencode.js.map +1 -1
- package/lib/dist/installer/targets/shared.d.ts +14 -3
- package/lib/dist/installer/targets/shared.d.ts.map +1 -1
- package/lib/dist/installer/targets/shared.js +39 -11
- package/lib/dist/installer/targets/shared.js.map +1 -1
- package/lib/dist/installer/targets/types.d.ts +7 -0
- package/lib/dist/installer/targets/types.d.ts.map +1 -1
- package/lib/dist/mcp/answer-freshness.d.ts +10 -0
- package/lib/dist/mcp/answer-freshness.d.ts.map +1 -0
- package/lib/dist/mcp/answer-freshness.js +68 -0
- package/lib/dist/mcp/answer-freshness.js.map +1 -0
- package/lib/dist/mcp/daemon-manager.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-manager.js +16 -0
- package/lib/dist/mcp/daemon-manager.js.map +1 -1
- package/lib/dist/mcp/daemon-paths.d.ts +2 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-paths.js +20 -5
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-registry.d.ts +11 -4
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +132 -36
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +17 -7
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +116 -24
- package/lib/dist/mcp/daemon.js.map +1 -1
- package/lib/dist/mcp/dynamic-boundaries.d.ts +1 -10
- package/lib/dist/mcp/dynamic-boundaries.d.ts.map +1 -1
- package/lib/dist/mcp/dynamic-boundaries.js +46 -42
- package/lib/dist/mcp/dynamic-boundaries.js.map +1 -1
- package/lib/dist/mcp/engine.d.ts +30 -9
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +158 -66
- package/lib/dist/mcp/engine.js.map +1 -1
- package/lib/dist/mcp/explore-dedup.d.ts +5 -2
- package/lib/dist/mcp/explore-dedup.d.ts.map +1 -1
- package/lib/dist/mcp/explore-dedup.js +8 -5
- package/lib/dist/mcp/explore-dedup.js.map +1 -1
- package/lib/dist/mcp/index-freshness-worker.d.ts +2 -0
- package/lib/dist/mcp/index-freshness-worker.d.ts.map +1 -0
- package/lib/dist/mcp/index-freshness-worker.js +36 -0
- package/lib/dist/mcp/index-freshness-worker.js.map +1 -0
- package/lib/dist/mcp/index-freshness.d.ts +13 -0
- package/lib/dist/mcp/index-freshness.d.ts.map +1 -0
- package/lib/dist/mcp/index-freshness.js +117 -0
- package/lib/dist/mcp/index-freshness.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +3 -1
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +95 -11
- package/lib/dist/mcp/index.js.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.d.ts +4 -1
- package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.js +11 -2
- package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
- package/lib/dist/mcp/project-lifecycle.d.ts +9 -0
- package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -0
- package/lib/dist/mcp/project-lifecycle.js +182 -0
- package/lib/dist/mcp/project-lifecycle.js.map +1 -0
- package/lib/dist/mcp/proxy.d.ts +9 -2
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +201 -32
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +18 -3
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +67 -11
- package/lib/dist/mcp/query-pool.js.map +1 -1
- package/lib/dist/mcp/query-worker.js +2 -2
- package/lib/dist/mcp/query-worker.js.map +1 -1
- package/lib/dist/mcp/server-instructions.d.ts +1 -1
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +6 -3
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/startup-handshake.d.ts +3 -1
- package/lib/dist/mcp/startup-handshake.d.ts.map +1 -1
- package/lib/dist/mcp/startup-handshake.js +10 -2
- package/lib/dist/mcp/startup-handshake.js.map +1 -1
- package/lib/dist/mcp/tools.d.ts +306 -36
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +2395 -966
- package/lib/dist/mcp/tools.js.map +1 -1
- package/lib/dist/mcp/writer-lock.d.ts +61 -0
- package/lib/dist/mcp/writer-lock.d.ts.map +1 -0
- package/lib/dist/mcp/writer-lock.js +260 -0
- package/lib/dist/mcp/writer-lock.js.map +1 -0
- package/lib/dist/resolution/alias-binding.d.ts +56 -0
- package/lib/dist/resolution/alias-binding.d.ts.map +1 -0
- package/lib/dist/resolution/alias-binding.js +143 -0
- package/lib/dist/resolution/alias-binding.js.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts +49 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.js +359 -0
- package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts +23 -1
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +460 -144
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
- package/lib/dist/resolution/cpp-constructor.d.ts +4 -0
- package/lib/dist/resolution/cpp-constructor.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-constructor.js +123 -0
- package/lib/dist/resolution/cpp-constructor.js.map +1 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts +12 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-macro-visibility.js +392 -0
- package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -0
- package/lib/dist/resolution/expo-router-synthesizer.d.ts +32 -0
- package/lib/dist/resolution/expo-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/expo-router-synthesizer.js +189 -0
- package/lib/dist/resolution/expo-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/frameworks/angular-router.d.ts +142 -0
- package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/angular-router.js +1126 -0
- package/lib/dist/resolution/frameworks/angular-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/astro.js +32 -6
- package/lib/dist/resolution/frameworks/astro.js.map +1 -1
- package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/csharp.js +186 -24
- package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.d.ts +10 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.js +95 -1
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.d.ts +195 -0
- package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/expo-router.js +847 -0
- package/lib/dist/resolution/frameworks/expo-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/express.js +339 -45
- package/lib/dist/resolution/frameworks/express.js.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.js +13 -11
- package/lib/dist/resolution/frameworks/fabric.js.map +1 -1
- package/lib/dist/resolution/frameworks/go.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/go.js +11 -28
- package/lib/dist/resolution/frameworks/go.js.map +1 -1
- package/lib/dist/resolution/frameworks/index.d.ts +8 -2
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +39 -1
- package/lib/dist/resolution/frameworks/index.js.map +1 -1
- package/lib/dist/resolution/frameworks/java.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/java.js +88 -68
- package/lib/dist/resolution/frameworks/java.js.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.js +369 -26
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
- package/lib/dist/resolution/frameworks/name-heuristic.d.ts +35 -0
- package/lib/dist/resolution/frameworks/name-heuristic.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/name-heuristic.js +45 -0
- package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -0
- package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.js +288 -55
- package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
- package/lib/dist/resolution/frameworks/nextjs.d.ts +76 -0
- package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/nextjs.js +329 -0
- package/lib/dist/resolution/frameworks/nextjs.js.map +1 -0
- package/lib/dist/resolution/frameworks/object-literal.d.ts +32 -0
- package/lib/dist/resolution/frameworks/object-literal.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/object-literal.js +139 -0
- package/lib/dist/resolution/frameworks/object-literal.js.map +1 -0
- package/lib/dist/resolution/frameworks/package-deps.d.ts +14 -0
- package/lib/dist/resolution/frameworks/package-deps.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/package-deps.js +78 -0
- package/lib/dist/resolution/frameworks/package-deps.js.map +1 -0
- package/lib/dist/resolution/frameworks/page-component.d.ts +20 -0
- package/lib/dist/resolution/frameworks/page-component.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/page-component.js +45 -0
- package/lib/dist/resolution/frameworks/page-component.js.map +1 -0
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/play.js +3 -1
- package/lib/dist/resolution/frameworks/play.js.map +1 -1
- package/lib/dist/resolution/frameworks/python.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/python.js +279 -26
- package/lib/dist/resolution/frameworks/python.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.d.ts +26 -0
- package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.js +153 -14
- package/lib/dist/resolution/frameworks/react-native.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.d.ts +47 -0
- package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/react-router.js +201 -0
- package/lib/dist/resolution/frameworks/react-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/react.d.ts +13 -2
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react.js +542 -144
- package/lib/dist/resolution/frameworks/react.js.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.js +177 -17
- package/lib/dist/resolution/frameworks/ruby.js.map +1 -1
- package/lib/dist/resolution/frameworks/rust.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/rust.js +24 -22
- package/lib/dist/resolution/frameworks/rust.js.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.js +14 -6
- package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
- package/lib/dist/resolution/frameworks/sveltekit-router.d.ts +36 -0
- package/lib/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/sveltekit-router.js +156 -0
- package/lib/dist/resolution/frameworks/sveltekit-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/swift.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/swift.js +253 -124
- package/lib/dist/resolution/frameworks/swift.js.map +1 -1
- package/lib/dist/resolution/frameworks/tanstack-router.d.ts +84 -0
- package/lib/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/tanstack-router.js +437 -0
- package/lib/dist/resolution/frameworks/tanstack-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/vue-router.d.ts +98 -0
- package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/vue-router.js +500 -0
- package/lib/dist/resolution/frameworks/vue-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/vue.d.ts +9 -2
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue.js +45 -11
- package/lib/dist/resolution/frameworks/vue.js.map +1 -1
- package/lib/dist/resolution/import-resolver.d.ts +66 -0
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +643 -61
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +124 -25
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +769 -152
- package/lib/dist/resolution/index.js.map +1 -1
- package/lib/dist/resolution/js-builtins.d.ts +13 -0
- package/lib/dist/resolution/js-builtins.d.ts.map +1 -0
- package/lib/dist/resolution/js-builtins.js +48 -0
- package/lib/dist/resolution/js-builtins.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +101 -22
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +8267 -287
- package/lib/dist/resolution/name-matcher.js.map +1 -1
- package/lib/dist/resolution/next-router-synthesizer.d.ts +27 -0
- package/lib/dist/resolution/next-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/next-router-synthesizer.js +113 -0
- package/lib/dist/resolution/next-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts +35 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/react-router-synthesizer.js +197 -0
- package/lib/dist/resolution/react-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/resolver-pool.d.ts +22 -1
- package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-pool.js +35 -5
- package/lib/dist/resolution/resolver-pool.js.map +1 -1
- package/lib/dist/resolution/resolver-worker.js +3 -0
- package/lib/dist/resolution/resolver-worker.js.map +1 -1
- package/lib/dist/resolution/strip-comments.d.ts +6 -0
- package/lib/dist/resolution/strip-comments.d.ts.map +1 -1
- package/lib/dist/resolution/strip-comments.js +58 -0
- package/lib/dist/resolution/strip-comments.js.map +1 -1
- package/lib/dist/resolution/sveltekit-synthesizer.d.ts +58 -0
- package/lib/dist/resolution/sveltekit-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/sveltekit-synthesizer.js +173 -0
- package/lib/dist/resolution/sveltekit-synthesizer.js.map +1 -0
- package/lib/dist/resolution/swift-type-visibility.d.ts +68 -0
- package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -0
- package/lib/dist/resolution/swift-type-visibility.js +454 -0
- package/lib/dist/resolution/swift-type-visibility.js.map +1 -0
- package/lib/dist/resolution/synth-utils.d.ts +26 -0
- package/lib/dist/resolution/synth-utils.d.ts.map +1 -0
- package/lib/dist/resolution/synth-utils.js +75 -0
- package/lib/dist/resolution/synth-utils.js.map +1 -0
- package/lib/dist/resolution/tanstack-router-synthesizer.d.ts +31 -0
- package/lib/dist/resolution/tanstack-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tanstack-router-synthesizer.js +114 -0
- package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts +54 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.js +1294 -0
- package/lib/dist/resolution/tier-synthesizer.js.map +1 -0
- package/lib/dist/resolution/type-parameters.d.ts +11 -0
- package/lib/dist/resolution/type-parameters.d.ts.map +1 -0
- package/lib/dist/resolution/type-parameters.js +287 -0
- package/lib/dist/resolution/type-parameters.js.map +1 -0
- package/lib/dist/resolution/types.d.ts +105 -2
- package/lib/dist/resolution/types.d.ts.map +1 -1
- package/lib/dist/resolution/types.js +64 -0
- package/lib/dist/resolution/types.js.map +1 -1
- package/lib/dist/resolution/vue-router-synthesizer.d.ts +30 -0
- package/lib/dist/resolution/vue-router-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/vue-router-synthesizer.js +115 -0
- package/lib/dist/resolution/vue-router-synthesizer.js.map +1 -0
- package/lib/dist/search/query-paths.d.ts +50 -1
- package/lib/dist/search/query-paths.d.ts.map +1 -1
- package/lib/dist/search/query-paths.js +227 -12
- package/lib/dist/search/query-paths.js.map +1 -1
- package/lib/dist/search/query-utils.d.ts +15 -0
- package/lib/dist/search/query-utils.d.ts.map +1 -1
- package/lib/dist/search/query-utils.js +35 -7
- package/lib/dist/search/query-utils.js.map +1 -1
- package/lib/dist/sync/watch-policy.d.ts +14 -0
- package/lib/dist/sync/watch-policy.d.ts.map +1 -1
- package/lib/dist/sync/watch-policy.js +19 -0
- package/lib/dist/sync/watch-policy.js.map +1 -1
- package/lib/dist/sync/watcher.d.ts +52 -35
- package/lib/dist/sync/watcher.d.ts.map +1 -1
- package/lib/dist/sync/watcher.js +236 -100
- package/lib/dist/sync/watcher.js.map +1 -1
- package/lib/dist/sync/worktree.d.ts +22 -0
- package/lib/dist/sync/worktree.d.ts.map +1 -1
- package/lib/dist/sync/worktree.js +54 -0
- package/lib/dist/sync/worktree.js.map +1 -1
- package/lib/dist/telemetry/index.d.ts +4 -2
- package/lib/dist/telemetry/index.d.ts.map +1 -1
- package/lib/dist/telemetry/index.js +159 -66
- package/lib/dist/telemetry/index.js.map +1 -1
- package/lib/dist/types.d.ts +1 -1
- package/lib/dist/types.d.ts.map +1 -1
- package/lib/dist/types.js +1 -0
- package/lib/dist/types.js.map +1 -1
- package/lib/dist/ui-server/api/deadcode.d.ts +84 -0
- package/lib/dist/ui-server/api/deadcode.d.ts.map +1 -0
- package/lib/dist/ui-server/api/deadcode.js +136 -0
- package/lib/dist/ui-server/api/deadcode.js.map +1 -0
- package/lib/dist/ui-server/api/effects.d.ts +94 -0
- package/lib/dist/ui-server/api/effects.d.ts.map +1 -0
- package/lib/dist/ui-server/api/effects.js +527 -0
- package/lib/dist/ui-server/api/effects.js.map +1 -0
- package/lib/dist/ui-server/api/entrypoints.d.ts +92 -0
- package/lib/dist/ui-server/api/entrypoints.d.ts.map +1 -0
- package/lib/dist/ui-server/api/entrypoints.js +364 -0
- package/lib/dist/ui-server/api/entrypoints.js.map +1 -0
- package/lib/dist/ui-server/api/events.d.ts +183 -0
- package/lib/dist/ui-server/api/events.d.ts.map +1 -0
- package/lib/dist/ui-server/api/events.js +430 -0
- package/lib/dist/ui-server/api/events.js.map +1 -0
- package/lib/dist/ui-server/api/file.d.ts +66 -0
- package/lib/dist/ui-server/api/file.d.ts.map +1 -0
- package/lib/dist/ui-server/api/file.js +235 -0
- package/lib/dist/ui-server/api/file.js.map +1 -0
- package/lib/dist/ui-server/api/filecode.d.ts +126 -0
- package/lib/dist/ui-server/api/filecode.d.ts.map +1 -0
- package/lib/dist/ui-server/api/filecode.js +205 -0
- package/lib/dist/ui-server/api/filecode.js.map +1 -0
- package/lib/dist/ui-server/api/flow.d.ts +226 -0
- package/lib/dist/ui-server/api/flow.d.ts.map +1 -0
- package/lib/dist/ui-server/api/flow.js +612 -0
- package/lib/dist/ui-server/api/flow.js.map +1 -0
- package/lib/dist/ui-server/api/hierarchy.d.ts +81 -0
- package/lib/dist/ui-server/api/hierarchy.d.ts.map +1 -0
- package/lib/dist/ui-server/api/hierarchy.js +92 -0
- package/lib/dist/ui-server/api/hierarchy.js.map +1 -0
- package/lib/dist/ui-server/api/index.d.ts +90 -0
- package/lib/dist/ui-server/api/index.d.ts.map +1 -0
- package/lib/dist/ui-server/api/index.js +332 -0
- package/lib/dist/ui-server/api/index.js.map +1 -0
- package/lib/dist/ui-server/api/map.d.ts +273 -0
- package/lib/dist/ui-server/api/map.d.ts.map +1 -0
- package/lib/dist/ui-server/api/map.js +781 -0
- package/lib/dist/ui-server/api/map.js.map +1 -0
- package/lib/dist/ui-server/api/node.d.ts +81 -0
- package/lib/dist/ui-server/api/node.d.ts.map +1 -0
- package/lib/dist/ui-server/api/node.js +394 -0
- package/lib/dist/ui-server/api/node.js.map +1 -0
- package/lib/dist/ui-server/api/nodes.d.ts +25 -0
- package/lib/dist/ui-server/api/nodes.d.ts.map +1 -0
- package/lib/dist/ui-server/api/nodes.js +45 -0
- package/lib/dist/ui-server/api/nodes.js.map +1 -0
- package/lib/dist/ui-server/api/program.d.ts +139 -0
- package/lib/dist/ui-server/api/program.d.ts.map +1 -0
- package/lib/dist/ui-server/api/program.js +315 -0
- package/lib/dist/ui-server/api/program.js.map +1 -0
- package/lib/dist/ui-server/api/respond.d.ts +76 -0
- package/lib/dist/ui-server/api/respond.d.ts.map +1 -0
- package/lib/dist/ui-server/api/respond.js +186 -0
- package/lib/dist/ui-server/api/respond.js.map +1 -0
- package/lib/dist/ui-server/api/route-roots.d.ts +45 -0
- package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -0
- package/lib/dist/ui-server/api/route-roots.js +117 -0
- package/lib/dist/ui-server/api/route-roots.js.map +1 -0
- package/lib/dist/ui-server/api/routes.d.ts +61 -0
- package/lib/dist/ui-server/api/routes.d.ts.map +1 -0
- package/lib/dist/ui-server/api/routes.js +164 -0
- package/lib/dist/ui-server/api/routes.js.map +1 -0
- package/lib/dist/ui-server/api/screens.d.ts +117 -0
- package/lib/dist/ui-server/api/screens.d.ts.map +1 -0
- package/lib/dist/ui-server/api/screens.js +626 -0
- package/lib/dist/ui-server/api/screens.js.map +1 -0
- package/lib/dist/ui-server/api/search.d.ts +29 -0
- package/lib/dist/ui-server/api/search.d.ts.map +1 -0
- package/lib/dist/ui-server/api/search.js +232 -0
- package/lib/dist/ui-server/api/search.js.map +1 -0
- package/lib/dist/ui-server/api/session.d.ts +52 -0
- package/lib/dist/ui-server/api/session.d.ts.map +1 -0
- package/lib/dist/ui-server/api/session.js +196 -0
- package/lib/dist/ui-server/api/session.js.map +1 -0
- package/lib/dist/ui-server/api/source.d.ts +200 -0
- package/lib/dist/ui-server/api/source.d.ts.map +1 -0
- package/lib/dist/ui-server/api/source.js +422 -0
- package/lib/dist/ui-server/api/source.js.map +1 -0
- package/lib/dist/ui-server/api/stats.d.ts +27 -0
- package/lib/dist/ui-server/api/stats.d.ts.map +1 -0
- package/lib/dist/ui-server/api/stats.js +164 -0
- package/lib/dist/ui-server/api/stats.js.map +1 -0
- package/lib/dist/ui-server/api/steps.d.ts +274 -0
- package/lib/dist/ui-server/api/steps.d.ts.map +1 -0
- package/lib/dist/ui-server/api/steps.js +1554 -0
- package/lib/dist/ui-server/api/steps.js.map +1 -0
- package/lib/dist/ui-server/api/trail-store.d.ts +142 -0
- package/lib/dist/ui-server/api/trail-store.d.ts.map +1 -0
- package/lib/dist/ui-server/api/trail-store.js +323 -0
- package/lib/dist/ui-server/api/trail-store.js.map +1 -0
- package/lib/dist/ui-server/api/trails.d.ts +163 -0
- package/lib/dist/ui-server/api/trails.d.ts.map +1 -0
- package/lib/dist/ui-server/api/trails.js +370 -0
- package/lib/dist/ui-server/api/trails.js.map +1 -0
- package/lib/dist/ui-server/api/when.d.ts +133 -0
- package/lib/dist/ui-server/api/when.d.ts.map +1 -0
- package/lib/dist/ui-server/api/when.js +275 -0
- package/lib/dist/ui-server/api/when.js.map +1 -0
- package/lib/dist/ui-server/api/wire.d.ts +179 -0
- package/lib/dist/ui-server/api/wire.d.ts.map +1 -0
- package/lib/dist/ui-server/api/wire.js +231 -0
- package/lib/dist/ui-server/api/wire.js.map +1 -0
- package/lib/dist/ui-server/assets.d.ts +40 -0
- package/lib/dist/ui-server/assets.d.ts.map +1 -0
- package/lib/dist/ui-server/assets.js +110 -0
- package/lib/dist/ui-server/assets.js.map +1 -0
- package/lib/dist/ui-server/constants.d.ts +32 -0
- package/lib/dist/ui-server/constants.d.ts.map +1 -0
- package/lib/dist/ui-server/constants.js +35 -0
- package/lib/dist/ui-server/constants.js.map +1 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.d.ts +28 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.js +139 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -0
- package/lib/dist/ui-server/highlight/index.d.ts +113 -0
- package/lib/dist/ui-server/highlight/index.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/index.js +312 -0
- package/lib/dist/ui-server/highlight/index.js.map +1 -0
- package/lib/dist/ui-server/highlight/languages.d.ts +36 -0
- package/lib/dist/ui-server/highlight/languages.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/languages.js +50 -0
- package/lib/dist/ui-server/highlight/languages.js.map +1 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.d.ts +7 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.js +20 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -0
- package/lib/dist/ui-server/index.d.ts +92 -0
- package/lib/dist/ui-server/index.d.ts.map +1 -0
- package/lib/dist/ui-server/index.js +399 -0
- package/lib/dist/ui-server/index.js.map +1 -0
- package/lib/dist/ui-server/open-browser.d.ts +31 -0
- package/lib/dist/ui-server/open-browser.d.ts.map +1 -0
- package/lib/dist/ui-server/open-browser.js +79 -0
- package/lib/dist/ui-server/open-browser.js.map +1 -0
- package/lib/dist/ui-server/security.d.ts +127 -0
- package/lib/dist/ui-server/security.d.ts.map +1 -0
- package/lib/dist/ui-server/security.js +332 -0
- package/lib/dist/ui-server/security.js.map +1 -0
- package/lib/dist/ui-server/static.d.ts +45 -0
- package/lib/dist/ui-server/static.d.ts.map +1 -0
- package/lib/dist/ui-server/static.js +165 -0
- package/lib/dist/ui-server/static.js.map +1 -0
- package/lib/dist/upgrade/index.d.ts +43 -5
- package/lib/dist/upgrade/index.d.ts.map +1 -1
- package/lib/dist/upgrade/index.js +157 -35
- package/lib/dist/upgrade/index.js.map +1 -1
- package/lib/dist/utils.d.ts +14 -2
- package/lib/dist/utils.d.ts.map +1 -1
- package/lib/dist/utils.js +25 -10
- package/lib/dist/utils.js.map +1 -1
- package/lib/dist/viewer/assets/archivo-latin-ext-wght-normal-C4zznr8T.woff2 +0 -0
- package/lib/dist/viewer/assets/archivo-latin-wght-normal-E0tuGl4L.woff2 +0 -0
- package/lib/dist/viewer/assets/archivo-vietnamese-wght-normal-XAtsl5Q_.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-2syK4fUT.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-italic-CBJ8pzag.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Ael50iVv.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-500-normal-Bq9vWWag.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-B4oTjJdl.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-italic-CBjNughH.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BIfNGwUT.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-500-normal-BqneJy0T.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-italic-66oory27.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-italic-BqAiT5Ww.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-B7_fu1kp.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-italic-Bg0ZHwF4.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CAhNIIs5.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-500-normal-CZ70TYgx.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-D6eaYXMU.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-italic-DRuN92E5.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-C8zxqsMH.woff +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-500-normal-DZ4AoWbu.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
- package/lib/dist/viewer/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
- package/lib/dist/viewer/assets/index-BSGpxBr9.js +99 -0
- package/lib/dist/viewer/assets/index-CF9yvio6.css +1 -0
- package/lib/dist/viewer/index.html +16 -0
- package/lib/dist/worker-teardown.d.ts +48 -0
- package/lib/dist/worker-teardown.d.ts.map +1 -0
- package/lib/dist/worker-teardown.js +100 -0
- package/lib/dist/worker-teardown.js.map +1 -0
- package/lib/kernel/codegraph-kernel.node +2 -2
- package/lib/node_modules/.package-lock.json +4 -4
- package/lib/node_modules/picomatch/README.md +56 -51
- package/lib/node_modules/picomatch/lib/constants.js +4 -0
- package/lib/node_modules/picomatch/lib/parse.js +341 -1
- package/lib/node_modules/picomatch/lib/picomatch.js +25 -5
- package/lib/node_modules/picomatch/lib/scan.js +30 -18
- package/lib/node_modules/picomatch/package.json +4 -4
- package/lib/package.json +9 -2
- package/package.json +1 -1
package/lib/dist/sync/watcher.js
CHANGED
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* addon) with a per-platform strategy chosen to keep the open-descriptor /
|
|
10
10
|
* kernel-watch cost BOUNDED rather than growing with the number of files:
|
|
11
11
|
*
|
|
12
|
-
* - macOS / Windows: a
|
|
12
|
+
* - macOS / Windows: a recursive `fs.watch(root, {recursive:true})`, plus
|
|
13
|
+
* bounded supplemental streams for directory symlinks (#770).
|
|
13
14
|
* libuv maps this to one FSEvents stream (macOS) / one
|
|
14
15
|
* ReadDirectoryChangesW handle (Windows), so it costs O(1) descriptors no
|
|
15
16
|
* matter how large the tree. This is the fix for the macOS file-table
|
|
@@ -25,11 +26,12 @@
|
|
|
25
26
|
* per-file watches are never needed.
|
|
26
27
|
*
|
|
27
28
|
* Excluded trees (node_modules/, dist/, .git/, …) are filtered via the
|
|
28
|
-
* indexer's `buildScopeIgnore` (built-in
|
|
29
|
-
*
|
|
30
|
-
*
|
|
29
|
+
* indexer's `buildScopeIgnore` (built-in defaults + root `.gitignore` +
|
|
30
|
+
* `.git/info/exclude` + `core.excludesFile` + git ignored-untracked dirs) —
|
|
31
|
+
* on Linux they're never descended into (so they cost no watch), and on
|
|
32
|
+
* macOS/Windows the single recursive stream still covers them but their
|
|
31
33
|
* events are dropped before any sync is scheduled. Either way the watcher's
|
|
32
|
-
* scope matches
|
|
34
|
+
* scope matches `git ls-files --exclude-standard` (#276 / #407 / #1728).
|
|
33
35
|
*/
|
|
34
36
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
35
37
|
if (k2 === undefined) k2 = k;
|
|
@@ -82,6 +84,8 @@ const watch_policy_1 = require("./watch-policy");
|
|
|
82
84
|
* few cycles) stays under this; a long-lived external writer crosses it.
|
|
83
85
|
*/
|
|
84
86
|
const MAX_LOCK_RETRIES = 5;
|
|
87
|
+
/** A failed re-arm must not turn frequent MCP calls into a lock-polling loop. */
|
|
88
|
+
const LOCK_REARM_COOLDOWN_MS = 30_000;
|
|
85
89
|
/**
|
|
86
90
|
* Number of consecutive GENERIC (non-lock) sync failures the watcher tolerates
|
|
87
91
|
* before it degrades auto-sync. A deterministic failure — a tree-sitter
|
|
@@ -205,8 +209,8 @@ exports.LockUnavailableError = LockUnavailableError;
|
|
|
205
209
|
* debounced sync operations via a provided callback.
|
|
206
210
|
*
|
|
207
211
|
* Design goals:
|
|
208
|
-
* - Bounded resource usage:
|
|
209
|
-
*
|
|
212
|
+
* - Bounded resource usage: one recursive stream plus capped symlink streams
|
|
213
|
+
* on macOS/Windows, O(directories) inotify watches on Linux — never O(files), which
|
|
210
214
|
* was the system-crashing fd leak on macOS (#644/#496/#555/#628).
|
|
211
215
|
* - Debounced to avoid thrashing on rapid saves
|
|
212
216
|
* - Filters to supported source files by extension
|
|
@@ -217,7 +221,7 @@ exports.LockUnavailableError = LockUnavailableError;
|
|
|
217
221
|
class FileWatcher {
|
|
218
222
|
/** macOS/Windows: the single recursive watcher. Null on Linux. */
|
|
219
223
|
recursiveWatcher = null;
|
|
220
|
-
/** Linux
|
|
224
|
+
/** Linux directory watches / macOS and Windows supplemental symlink streams. */
|
|
221
225
|
dirWatchers = new Map();
|
|
222
226
|
/** Set once the per-directory watch cap is hit, so we log only once. */
|
|
223
227
|
dirCapWarned = false;
|
|
@@ -230,18 +234,31 @@ class FileWatcher {
|
|
|
230
234
|
*/
|
|
231
235
|
inotifyLimitWarned = false;
|
|
232
236
|
/**
|
|
233
|
-
*
|
|
237
|
+
* The reason live watching was disabled at runtime
|
|
234
238
|
* (watch-resource exhaustion, lock contention past the retry budget, or a
|
|
235
239
|
* persistent generic sync failure past the retry budget), or null while
|
|
236
|
-
* healthy. Set by {@link degrade};
|
|
240
|
+
* healthy. Set by {@link degrade}; a lock-contention recovery keeps it until
|
|
241
|
+
* a full reconciliation succeeds.
|
|
237
242
|
*/
|
|
238
243
|
degradedReason = null;
|
|
244
|
+
degradedByLock = false;
|
|
245
|
+
recoveringFromLock = false;
|
|
246
|
+
lastLockRearmMs = 0;
|
|
239
247
|
/** Consecutive lock-contention retries for watcher-triggered syncs. */
|
|
240
248
|
lockRetryCount = 0;
|
|
241
249
|
/** Consecutive generic (non-lock) sync failures; reset only by a clean sync. */
|
|
242
250
|
syncFailureRetryCount = 0;
|
|
243
251
|
/** Test-only inert mode: started, but with no OS watcher installed. */
|
|
244
252
|
inert = false;
|
|
253
|
+
/**
|
|
254
|
+
* Resolved realpath of directories already watched (or skipped). Prevents
|
|
255
|
+
* infinite recursion via symlink cycles — mirrors the same guard used in
|
|
256
|
+
* the indexer's `walk()` (extraction/index.ts).
|
|
257
|
+
*/
|
|
258
|
+
visitedRealDirs = new Set();
|
|
259
|
+
knownDirs = new Map();
|
|
260
|
+
watchedRealDirs = new Map();
|
|
261
|
+
treeRefreshTimer = null;
|
|
245
262
|
debounceTimer = null;
|
|
246
263
|
/**
|
|
247
264
|
* True when the pending set does NOT exactly describe the change (a
|
|
@@ -282,12 +299,14 @@ class FileWatcher {
|
|
|
282
299
|
* deterministically gate on watcher readiness.
|
|
283
300
|
*/
|
|
284
301
|
readyWaiters = [];
|
|
285
|
-
// The shared scope matcher (built-in defaults +
|
|
286
|
-
// `
|
|
287
|
-
//
|
|
288
|
-
//
|
|
289
|
-
//
|
|
290
|
-
//
|
|
302
|
+
// The shared scope matcher from `buildScopeIgnore` (built-in defaults +
|
|
303
|
+
// root `.gitignore` + `.git/info/exclude` + `core.excludesFile` + dirs
|
|
304
|
+
// `git ls-files --exclude-standard` reports ignored + `codegraph.json`
|
|
305
|
+
// exclude/include, with embedded child repos matched by their OWN rules —
|
|
306
|
+
// #514), built at start() and REBUILT whenever one of the files it is
|
|
307
|
+
// derived from changes (see `refreshScope`, #1590). Same construction the
|
|
308
|
+
// indexer uses for scoped sync, so watcher scope cannot diverge from index
|
|
309
|
+
// scope (#1728). An embedded repo created after start() joins the scope on
|
|
291
310
|
// the next scope refresh / watcher restart / re-index.
|
|
292
311
|
ignoreMatcher = null;
|
|
293
312
|
projectRoot;
|
|
@@ -297,7 +316,14 @@ class FileWatcher {
|
|
|
297
316
|
onSyncError;
|
|
298
317
|
onDegraded;
|
|
299
318
|
inertForTests;
|
|
300
|
-
|
|
319
|
+
/**
|
|
320
|
+
* Optional metadata guard supplied by the CodeGraph facade. Windows'
|
|
321
|
+
* ReadDirectoryChangesW stream includes last-access updates, so a read can
|
|
322
|
+
* otherwise look exactly like an edit. Returning true means the file's
|
|
323
|
+
* current size/mtime still match the indexed record and the event is noise.
|
|
324
|
+
*/
|
|
325
|
+
isFileStateCurrent;
|
|
326
|
+
constructor(projectRoot, syncFn, options = {}, isFileStateCurrent) {
|
|
301
327
|
this.projectRoot = projectRoot;
|
|
302
328
|
this.syncFn = syncFn;
|
|
303
329
|
this.debounceMs = options.debounceMs ?? 2000;
|
|
@@ -305,6 +331,7 @@ class FileWatcher {
|
|
|
305
331
|
this.onSyncError = options.onSyncError;
|
|
306
332
|
this.onDegraded = options.onDegraded;
|
|
307
333
|
this.inertForTests = options.inertForTests ?? false;
|
|
334
|
+
this.isFileStateCurrent = isFileStateCurrent;
|
|
308
335
|
}
|
|
309
336
|
/**
|
|
310
337
|
* Start watching for file changes.
|
|
@@ -315,8 +342,11 @@ class FileWatcher {
|
|
|
315
342
|
return true; // Already watching
|
|
316
343
|
this.stopped = false;
|
|
317
344
|
this.degradedReason = null;
|
|
345
|
+
this.degradedByLock = false;
|
|
346
|
+
this.recoveringFromLock = false;
|
|
318
347
|
this.lockRetryCount = 0;
|
|
319
348
|
this.syncFailureRetryCount = 0;
|
|
349
|
+
this.needsFullScan = false;
|
|
320
350
|
// Some environments make filesystem watching unusable — most notably
|
|
321
351
|
// WSL2 /mnt/ drives, where the underlying fs.watch calls block long
|
|
322
352
|
// enough to break MCP startup handshakes (issue #199). Skip watching
|
|
@@ -337,10 +367,10 @@ class FileWatcher {
|
|
|
337
367
|
this.startRecursive();
|
|
338
368
|
}
|
|
339
369
|
else {
|
|
340
|
-
this.
|
|
370
|
+
this.refreshWatchTree();
|
|
341
371
|
}
|
|
342
372
|
// The per-directory (Linux) path catches watch-resource exhaustion inside
|
|
343
|
-
//
|
|
373
|
+
// watchDirectory and degrades synchronously rather than throwing, so it never
|
|
344
374
|
// reaches the catch below. Surface that as a failed start here so both
|
|
345
375
|
// strategies report exhaustion identically (start() === false).
|
|
346
376
|
if (this.degradedReason)
|
|
@@ -379,16 +409,12 @@ class FileWatcher {
|
|
|
379
409
|
}
|
|
380
410
|
}
|
|
381
411
|
/**
|
|
382
|
-
* macOS/Windows: one
|
|
412
|
+
* macOS/Windows: one root stream, supplemented for directory symlinks.
|
|
383
413
|
* `filename` arrives relative to the project root (with subdirectories), so
|
|
384
414
|
* it maps straight to a project-relative path.
|
|
385
415
|
*/
|
|
386
416
|
startRecursive() {
|
|
387
|
-
this.recursiveWatcher = watchImpl(this.projectRoot, { recursive: true, persistent: true }, (_event, filename) =>
|
|
388
|
-
if (this.stopped || filename == null)
|
|
389
|
-
return;
|
|
390
|
-
this.handleChange((0, utils_1.normalizePath)(String(filename)));
|
|
391
|
-
});
|
|
417
|
+
this.recursiveWatcher = watchImpl(this.projectRoot, { recursive: true, persistent: true }, (_event, filename) => this.handleDirEvent(this.projectRoot, filename));
|
|
392
418
|
this.recursiveWatcher.on('error', (err) => {
|
|
393
419
|
if (isWatchResourceExhaustion(err)) {
|
|
394
420
|
this.degrade(EXHAUSTION_REASON, { error: String(err) });
|
|
@@ -396,46 +422,88 @@ class FileWatcher {
|
|
|
396
422
|
}
|
|
397
423
|
(0, errors_1.logWarn)('File watcher error', { error: String(err) });
|
|
398
424
|
});
|
|
425
|
+
this.refreshWatchTree();
|
|
399
426
|
}
|
|
400
|
-
/**
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
427
|
+
/** Reconcile logical directory paths with real targets, including retargeted links. */
|
|
428
|
+
refreshWatchTree() {
|
|
429
|
+
if (this.stopped || this.inert)
|
|
430
|
+
return;
|
|
431
|
+
this.visitedRealDirs.clear();
|
|
432
|
+
const directories = new Map();
|
|
433
|
+
const desired = new Map();
|
|
434
|
+
const recursive = supportsRecursiveWatch();
|
|
435
|
+
const walk = (dir, linked) => {
|
|
436
|
+
if (this.shouldIgnoreDir(dir))
|
|
437
|
+
return;
|
|
438
|
+
let real;
|
|
439
|
+
try {
|
|
440
|
+
real = fs.realpathSync(dir);
|
|
441
|
+
if (this.visitedRealDirs.has(real))
|
|
442
|
+
return;
|
|
443
|
+
this.visitedRealDirs.add(real);
|
|
444
|
+
directories.set(dir, real);
|
|
445
|
+
if (!recursive || linked)
|
|
446
|
+
desired.set(dir, real);
|
|
447
|
+
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
448
|
+
const child = path.join(dir, entry.name);
|
|
449
|
+
if (entry.isDirectory()) {
|
|
450
|
+
walk(child, false);
|
|
451
|
+
}
|
|
452
|
+
else if (entry.isSymbolicLink()) {
|
|
453
|
+
// Follow directory symlinks just like the indexer's walk. Realpath
|
|
454
|
+
// deduplication includes ordinary directories and the root itself.
|
|
455
|
+
try {
|
|
456
|
+
if (fs.statSync(child).isDirectory())
|
|
457
|
+
walk(child, true);
|
|
458
|
+
}
|
|
459
|
+
catch { /* broken link */ }
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
catch { /* removed or unreadable directory */ }
|
|
464
|
+
};
|
|
465
|
+
walk(this.projectRoot, false);
|
|
466
|
+
this.knownDirs = directories;
|
|
467
|
+
for (const dir of this.dirWatchers.keys()) {
|
|
468
|
+
if (desired.get(dir) !== this.watchedRealDirs.get(dir))
|
|
469
|
+
this.unwatchDir(dir);
|
|
470
|
+
}
|
|
471
|
+
for (const [dir, real] of desired)
|
|
472
|
+
this.watchDirectory(dir, real, recursive);
|
|
407
473
|
}
|
|
408
|
-
/**
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
474
|
+
/** Coalesce directory topology events before walking; file edits never walk the tree. */
|
|
475
|
+
scheduleTreeRefresh() {
|
|
476
|
+
if (this.treeRefreshTimer || this.inert || this.stopped)
|
|
477
|
+
return;
|
|
478
|
+
this.treeRefreshTimer = setTimeout(() => {
|
|
479
|
+
this.treeRefreshTimer = null;
|
|
480
|
+
this.refreshWatchTree();
|
|
481
|
+
if (this.stopped)
|
|
482
|
+
return;
|
|
483
|
+
// A new/retargeted directory can already contain files before its watch
|
|
484
|
+
// is installed; a full reconcile closes that race and removes old paths.
|
|
485
|
+
this.needsFullScan = true;
|
|
486
|
+
this.scheduleSync();
|
|
487
|
+
}, 50);
|
|
488
|
+
}
|
|
489
|
+
watchDirectory(dir, real, recursive) {
|
|
490
|
+
if (this.stopped || (this.degradedReason && !this.recoveringFromLock) || this.inotifyLimitWarned)
|
|
424
491
|
return;
|
|
425
492
|
if (this.dirWatchers.has(dir))
|
|
426
493
|
return;
|
|
427
|
-
|
|
494
|
+
// Recursive streams cost more than inotify entries. Keep a separate hard
|
|
495
|
+
// ceiling while honouring a lower user-configured directory watch budget.
|
|
496
|
+
const cap = recursive ? Math.min(256, maxDirWatches()) : maxDirWatches();
|
|
497
|
+
if (this.dirWatchers.size >= cap) {
|
|
428
498
|
if (!this.dirCapWarned) {
|
|
429
499
|
this.dirCapWarned = true;
|
|
430
|
-
(0, errors_1.logWarn)('File watcher hit directory-watch cap; remaining subtrees rely on manual/periodic sync', {
|
|
431
|
-
cap: maxDirWatches(),
|
|
432
|
-
});
|
|
500
|
+
(0, errors_1.logWarn)('File watcher hit directory-watch cap; remaining subtrees rely on manual/periodic sync', { cap });
|
|
433
501
|
}
|
|
434
502
|
return;
|
|
435
503
|
}
|
|
436
504
|
let w;
|
|
437
505
|
try {
|
|
438
|
-
w = watchImpl(dir, { persistent: true }, (_event, filename) => this.handleDirEvent(dir, filename));
|
|
506
|
+
w = watchImpl(dir, { persistent: true, recursive }, (_event, filename) => this.handleDirEvent(dir, filename));
|
|
439
507
|
}
|
|
440
508
|
catch (err) {
|
|
441
509
|
// EMFILE/ENFILE means the PROCESS is out of descriptors — every further
|
|
@@ -463,49 +531,41 @@ class FileWatcher {
|
|
|
463
531
|
this.unwatchDir(dir);
|
|
464
532
|
});
|
|
465
533
|
this.dirWatchers.set(dir, w);
|
|
466
|
-
|
|
467
|
-
try {
|
|
468
|
-
entries = fs.readdirSync(dir, { withFileTypes: true });
|
|
469
|
-
}
|
|
470
|
-
catch {
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
|
-
for (const entry of entries) {
|
|
474
|
-
const child = path.join(dir, entry.name);
|
|
475
|
-
if (entry.isDirectory()) {
|
|
476
|
-
if (this.shouldIgnoreDir(child))
|
|
477
|
-
continue;
|
|
478
|
-
this.watchTree(child, markExisting);
|
|
479
|
-
}
|
|
480
|
-
else if (markExisting && entry.isFile()) {
|
|
481
|
-
this.handleChange((0, utils_1.normalizePath)(path.relative(this.projectRoot, child)));
|
|
482
|
-
}
|
|
483
|
-
}
|
|
534
|
+
this.watchedRealDirs.set(dir, real);
|
|
484
535
|
}
|
|
485
|
-
/**
|
|
486
|
-
* Linux per-directory event handler. `filename` is relative to `dir`. A new
|
|
487
|
-
* sub-directory is picked up by extending the watch tree; everything else is
|
|
488
|
-
* routed through the shared change handler.
|
|
489
|
-
*/
|
|
536
|
+
/** Events are relative to a watch's logical path, even for an external target. */
|
|
490
537
|
handleDirEvent(dir, filename) {
|
|
491
|
-
if (this.stopped
|
|
538
|
+
if (this.stopped)
|
|
539
|
+
return;
|
|
540
|
+
if (filename == null) {
|
|
541
|
+
this.scheduleTreeRefresh();
|
|
492
542
|
return;
|
|
543
|
+
}
|
|
493
544
|
const full = path.join(dir, String(filename));
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
545
|
+
const rel = (0, utils_1.normalizePath)(path.relative(this.projectRoot, full));
|
|
546
|
+
if (!rel || rel === '.') {
|
|
547
|
+
this.scheduleTreeRefresh();
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
// Churn under an ignored directory (node_modules, dist, .git) is dropped
|
|
551
|
+
// before any per-event fs call; `.git/info/exclude` still reaches the scope
|
|
552
|
+
// refresh in handleChange (#1728).
|
|
553
|
+
if (rel !== '.git/info/exclude' && this.shouldIgnoreDir(path.dirname(full)))
|
|
554
|
+
return;
|
|
498
555
|
try {
|
|
499
556
|
if (fs.statSync(full).isDirectory()) {
|
|
500
|
-
if (
|
|
501
|
-
|
|
557
|
+
if (this.shouldIgnoreDir(full))
|
|
558
|
+
return;
|
|
559
|
+
// Existing directory notifications can represent a retargeted link.
|
|
560
|
+
if (this.knownDirs.get(full) !== fs.realpathSync(full))
|
|
561
|
+
this.scheduleTreeRefresh();
|
|
502
562
|
return;
|
|
503
563
|
}
|
|
504
564
|
}
|
|
505
|
-
catch {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
this.handleChange(
|
|
565
|
+
catch { /* deleted/inaccessible */ }
|
|
566
|
+
if (this.knownDirs.has(full) && !this.shouldIgnoreDir(full))
|
|
567
|
+
this.scheduleTreeRefresh();
|
|
568
|
+
this.handleChange(rel);
|
|
509
569
|
}
|
|
510
570
|
/**
|
|
511
571
|
* Shared change handler for both watch strategies. `rel` is a
|
|
@@ -520,6 +580,14 @@ class FileWatcher {
|
|
|
520
580
|
handleChange(rel) {
|
|
521
581
|
if (!rel || rel === '.' || rel.startsWith('..'))
|
|
522
582
|
return;
|
|
583
|
+
// `.git/info/exclude` is otherwise always-ignored with the rest of `.git/`,
|
|
584
|
+
// but it feeds `buildScopeIgnore` — allow it through as a scope refresh
|
|
585
|
+
// when the platform delivers the event (recursive watchers may; Linux
|
|
586
|
+
// per-directory watching does not descend into `.git/`) (#1728).
|
|
587
|
+
if (rel === '.git/info/exclude') {
|
|
588
|
+
this.refreshScope(rel);
|
|
589
|
+
return;
|
|
590
|
+
}
|
|
523
591
|
if (this.isAlwaysIgnored(rel))
|
|
524
592
|
return;
|
|
525
593
|
// The two root files the scope matcher is derived from are handled BEFORE
|
|
@@ -545,6 +613,20 @@ class FileWatcher {
|
|
|
545
613
|
this.maybeScheduleForRemovedDir(rel);
|
|
546
614
|
return;
|
|
547
615
|
}
|
|
616
|
+
try {
|
|
617
|
+
if (this.isFileStateCurrent?.(rel)) {
|
|
618
|
+
(0, errors_1.logDebug)('Ignoring file event with unchanged indexed metadata', { file: rel });
|
|
619
|
+
return;
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
catch (error) {
|
|
623
|
+
// The guard is an optimization, never a correctness boundary. If the
|
|
624
|
+
// stat/DB lookup fails, keep the event so a sync can reconcile it.
|
|
625
|
+
(0, errors_1.logDebug)('Could not verify file event metadata; treating it as a change', {
|
|
626
|
+
file: rel,
|
|
627
|
+
error: String(error),
|
|
628
|
+
});
|
|
629
|
+
}
|
|
548
630
|
(0, errors_1.logDebug)('File change detected', { file: rel });
|
|
549
631
|
if (this.ready) {
|
|
550
632
|
const now = Date.now();
|
|
@@ -580,6 +662,7 @@ class FileWatcher {
|
|
|
580
662
|
refreshScope(rel) {
|
|
581
663
|
(0, errors_1.logDebug)('Scope config changed; rebuilding watcher scope', { file: rel });
|
|
582
664
|
this.ignoreMatcher = (0, extraction_1.buildScopeIgnore)(this.projectRoot);
|
|
665
|
+
this.scheduleTreeRefresh();
|
|
583
666
|
this.needsFullScan = true;
|
|
584
667
|
this.scheduleSync();
|
|
585
668
|
}
|
|
@@ -624,16 +707,15 @@ class FileWatcher {
|
|
|
624
707
|
/* already closed */
|
|
625
708
|
}
|
|
626
709
|
this.dirWatchers.delete(dir);
|
|
710
|
+
this.watchedRealDirs.delete(dir);
|
|
627
711
|
}
|
|
628
712
|
}
|
|
629
713
|
/** Our own dirs are always ignored, regardless of .gitignore. */
|
|
630
714
|
isAlwaysIgnored(rel) {
|
|
631
|
-
//
|
|
715
|
+
// Ignore any CodeGraph data dir — the active one AND a
|
|
632
716
|
// sibling like `.codegraph-win` a second environment (Windows/WSL) created
|
|
633
717
|
// in the same tree, so neither side watches the other's index (#636).
|
|
634
|
-
|
|
635
|
-
return ((0, directory_1.isCodeGraphDataDir)(top) ||
|
|
636
|
-
rel === '.git' || rel.startsWith('.git/'));
|
|
718
|
+
return rel.split('/').some(part => (0, directory_1.isCodeGraphDataDir)(part) || part === '.git');
|
|
637
719
|
}
|
|
638
720
|
/**
|
|
639
721
|
* True for any directory that should NOT be watched (used while building the
|
|
@@ -651,16 +733,18 @@ class FileWatcher {
|
|
|
651
733
|
return this.ignoreMatcher.ignores(rel + '/');
|
|
652
734
|
}
|
|
653
735
|
/**
|
|
654
|
-
*
|
|
736
|
+
* Disable live watching after a terminal runtime failure
|
|
655
737
|
* (watch-resource exhaustion, lock contention past the retry budget, or a
|
|
656
738
|
* persistent generic sync failure past the retry budget).
|
|
657
739
|
* Idempotent: logs one actionable warning, fires {@link WatchOptions.onDegraded}
|
|
658
740
|
* once, and stops the watcher. A subsequent start() clears the latch.
|
|
659
741
|
*/
|
|
660
|
-
degrade(reason, context = {}) {
|
|
661
|
-
if (this.degradedReason)
|
|
742
|
+
degrade(reason, context = {}, byLock = false) {
|
|
743
|
+
if (this.degradedReason && !this.recoveringFromLock)
|
|
662
744
|
return;
|
|
663
745
|
this.degradedReason = reason;
|
|
746
|
+
this.degradedByLock = byLock;
|
|
747
|
+
this.recoveringFromLock = false;
|
|
664
748
|
(0, errors_1.logWarn)('File watcher disabled', { projectRoot: this.projectRoot, reason, ...context });
|
|
665
749
|
this.onDegraded?.(reason);
|
|
666
750
|
this.stop();
|
|
@@ -680,7 +764,7 @@ class FileWatcher {
|
|
|
680
764
|
(0, errors_1.logWarn)(INOTIFY_LIMIT_REASON, { watchedDirs: this.dirWatchers.size, ...context });
|
|
681
765
|
}
|
|
682
766
|
/**
|
|
683
|
-
* Whether live watching has degraded
|
|
767
|
+
* Whether live watching has degraded or is still catching up after re-arm.
|
|
684
768
|
* Distinct from {@link isActive}: a degraded watcher is inactive, but an
|
|
685
769
|
* inactive watcher is not necessarily degraded (it may simply be stopped or
|
|
686
770
|
* never started). Hosts use this to tell the user auto-sync is off.
|
|
@@ -692,11 +776,52 @@ class FileWatcher {
|
|
|
692
776
|
getDegradedReason() {
|
|
693
777
|
return this.degradedReason;
|
|
694
778
|
}
|
|
779
|
+
/** Watches are live again, but the full catch-up has not committed yet. */
|
|
780
|
+
isRecoveringFromLock() {
|
|
781
|
+
return this.recoveringFromLock;
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* Re-arm a watcher disabled by lock contention when a caller next uses the
|
|
785
|
+
* graph. Keep the whole-index stale banner until a FULL scan reconciles edits
|
|
786
|
+
* missed while watches were off. Resource exhaustion and deterministic sync
|
|
787
|
+
* failures are not automatically retried. Repeated unsuccessful re-arms are
|
|
788
|
+
* throttled so many MCP sessions cannot hammer a long-lived writer.
|
|
789
|
+
*/
|
|
790
|
+
rearmAfterLockContention() {
|
|
791
|
+
if (!this.degradedByLock || this.isActive())
|
|
792
|
+
return false;
|
|
793
|
+
const now = Date.now();
|
|
794
|
+
if (this.lastLockRearmMs && now - this.lastLockRearmMs < LOCK_REARM_COOLDOWN_MS)
|
|
795
|
+
return false;
|
|
796
|
+
const reason = this.degradedReason;
|
|
797
|
+
this.lastLockRearmMs = now;
|
|
798
|
+
if (!this.start()) {
|
|
799
|
+
// A disabled platform can reject start() without calling degrade().
|
|
800
|
+
// Preserve the old stale-index signal in that case; a new resource
|
|
801
|
+
// failure has its own more precise degraded reason.
|
|
802
|
+
if (!this.degradedReason) {
|
|
803
|
+
this.degradedReason = reason;
|
|
804
|
+
this.degradedByLock = true;
|
|
805
|
+
}
|
|
806
|
+
return false;
|
|
807
|
+
}
|
|
808
|
+
this.degradedReason = reason;
|
|
809
|
+
this.recoveringFromLock = true;
|
|
810
|
+
this.needsFullScan = true;
|
|
811
|
+
this.scheduleSync();
|
|
812
|
+
return true;
|
|
813
|
+
}
|
|
695
814
|
/**
|
|
696
815
|
* Stop watching for file changes.
|
|
697
816
|
*/
|
|
698
817
|
stop() {
|
|
699
818
|
this.stopped = true;
|
|
819
|
+
if (this.treeRefreshTimer)
|
|
820
|
+
clearTimeout(this.treeRefreshTimer);
|
|
821
|
+
this.treeRefreshTimer = null;
|
|
822
|
+
this.knownDirs.clear();
|
|
823
|
+
this.watchedRealDirs.clear();
|
|
824
|
+
this.recoveringFromLock = false;
|
|
700
825
|
if (this.debounceTimer) {
|
|
701
826
|
clearTimeout(this.debounceTimer);
|
|
702
827
|
this.debounceTimer = null;
|
|
@@ -725,6 +850,7 @@ class FileWatcher {
|
|
|
725
850
|
this.syncFailureRetryCount = 0;
|
|
726
851
|
// NB: degradedReason is intentionally NOT reset here — it must survive the
|
|
727
852
|
// stop() that degrade() triggers so isDegraded() stays true. start() clears it.
|
|
853
|
+
this.visitedRealDirs.clear();
|
|
728
854
|
this.inert = false;
|
|
729
855
|
this.pendingFiles.clear();
|
|
730
856
|
this.ready = false;
|
|
@@ -834,10 +960,16 @@ class FileWatcher {
|
|
|
834
960
|
const scoped = !this.needsFullScan && this.pendingFiles.size > 0 && this.pendingFiles.size <= SCOPED_SYNC_MAX_PENDING
|
|
835
961
|
? [...this.pendingFiles.keys()]
|
|
836
962
|
: undefined;
|
|
963
|
+
// Consume this request before yielding so a topology/scope change during
|
|
964
|
+
// the full sync remains pending for the next reconcile.
|
|
965
|
+
if (!scoped)
|
|
966
|
+
this.needsFullScan = false;
|
|
837
967
|
try {
|
|
838
968
|
const result = await this.syncFn(scoped);
|
|
839
|
-
if (!scoped)
|
|
840
|
-
this.
|
|
969
|
+
if (this.recoveringFromLock && !scoped && !this.needsFullScan) {
|
|
970
|
+
this.degradedReason = null;
|
|
971
|
+
this.recoveringFromLock = false;
|
|
972
|
+
}
|
|
841
973
|
this.lockRetryCount = 0; // a clean sync clears any contention backoff
|
|
842
974
|
this.syncFailureRetryCount = 0; // ...and any generic-failure backoff
|
|
843
975
|
// Remove entries whose most recent event predates this sync — those
|
|
@@ -855,6 +987,8 @@ class FileWatcher {
|
|
|
855
987
|
this.onSyncComplete?.(result);
|
|
856
988
|
}
|
|
857
989
|
catch (err) {
|
|
990
|
+
if (!scoped)
|
|
991
|
+
this.needsFullScan = true;
|
|
858
992
|
if (err instanceof LockUnavailableError) {
|
|
859
993
|
this.lockRetryCount += 1;
|
|
860
994
|
// Lock-failure no-op (another writer holds the lock). pendingFiles
|
|
@@ -869,7 +1003,7 @@ class FileWatcher {
|
|
|
869
1003
|
if (this.lockRetryCount > MAX_LOCK_RETRIES) {
|
|
870
1004
|
this.degrade('CodeGraph file lock held by another process past the retry budget; ' +
|
|
871
1005
|
'auto-sync disabled. Run `codegraph sync` once the other writer finishes ' +
|
|
872
|
-
'(or install git sync hooks) to refresh the graph.', { pendingFiles: this.pendingFiles.size, retryCount: this.lockRetryCount });
|
|
1006
|
+
'(or install git sync hooks) to refresh the graph.', { pendingFiles: this.pendingFiles.size, retryCount: this.lockRetryCount }, true);
|
|
873
1007
|
}
|
|
874
1008
|
}
|
|
875
1009
|
else {
|
|
@@ -907,8 +1041,10 @@ class FileWatcher {
|
|
|
907
1041
|
// sync resets both counters so normal edits keep the fast debounce. Use
|
|
908
1042
|
// the larger streak so interleaved failures still back off. A degrade()
|
|
909
1043
|
// above already set `stopped`, so this won't reschedule a watcher that
|
|
910
|
-
// has given up.
|
|
911
|
-
|
|
1044
|
+
// has given up. A directory removal whose full sync failed adds no
|
|
1045
|
+
// pending file, only `needsFullScan` — it still owes the full reconcile
|
|
1046
|
+
// it asked for (#1964).
|
|
1047
|
+
if ((this.pendingFiles.size > 0 || this.needsFullScan) && !this.stopped) {
|
|
912
1048
|
const retryCount = Math.max(this.lockRetryCount, this.syncFailureRetryCount);
|
|
913
1049
|
if (retryCount > 0) {
|
|
914
1050
|
const retryDelayMs = Math.min(this.debounceMs * 2 ** Math.max(0, retryCount - 1), MAX_RETRY_BACKOFF_MS);
|