@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
|
@@ -49,10 +49,13 @@ exports.extractImportMappings = extractImportMappings;
|
|
|
49
49
|
exports.clearImportMappingCache = clearImportMappingCache;
|
|
50
50
|
exports.extractReExports = extractReExports;
|
|
51
51
|
exports.resolveJvmImport = resolveJvmImport;
|
|
52
|
+
exports.resolvePhpImportedStaticCall = resolvePhpImportedStaticCall;
|
|
52
53
|
exports.resolveViaImport = resolveViaImport;
|
|
54
|
+
exports.isBoundToOutOfRepoImport = isBoundToOutOfRepoImport;
|
|
53
55
|
const fs = __importStar(require("fs"));
|
|
54
56
|
const path = __importStar(require("path"));
|
|
55
57
|
const path_aliases_1 = require("./path-aliases");
|
|
58
|
+
const alias_binding_1 = require("./alias-binding");
|
|
56
59
|
const workspace_packages_1 = require("./workspace-packages");
|
|
57
60
|
const name_matcher_1 = require("./name-matcher");
|
|
58
61
|
/**
|
|
@@ -65,7 +68,7 @@ const EXTENSION_RESOLUTION = {
|
|
|
65
68
|
// module-entry convention, hit when a bare workspace import ("data") is
|
|
66
69
|
// rewritten to the member's directory; lowercase variants for safety.
|
|
67
70
|
arkts: ['.ets', '.ts', '.d.ts', '.js', '/Index.ets', '/index.ets', '/index.ts', '/index.js'],
|
|
68
|
-
javascript: ['.js', '.jsx', '.mjs', '.cjs', '/index.js', '/index.jsx'],
|
|
71
|
+
javascript: ['.js', '.jsx', '.mjs', '.cjs', '.xsjs', '.xsjslib', '/index.js', '/index.jsx'],
|
|
69
72
|
tsx: ['.tsx', '.ts', '.d.ts', '.js', '.jsx', '/index.tsx', '/index.ts', '/index.js'],
|
|
70
73
|
jsx: ['.jsx', '.js', '/index.jsx', '/index.js'],
|
|
71
74
|
// SFC consumers import plain TS/JS, sibling components, and barrels
|
|
@@ -102,6 +105,18 @@ function isNixPathImportRef(ref) {
|
|
|
102
105
|
// there, so the staleness discipline matches the resolver's own caches.
|
|
103
106
|
const importPathMemos = new WeakMap();
|
|
104
107
|
const exportedSymbolMemos = new WeakMap();
|
|
108
|
+
const DEFAULT_BINDING_KINDS = new Set(['function', 'class', 'component', 'constant', 'variable']);
|
|
109
|
+
const DEFAULT_EXPORT_BINDING_RE = /^[ \t]*export\s+default\s+([A-Za-z_$][\w$]*)\s*;?[ \t]*$/m;
|
|
110
|
+
const JS_FAMILY_FILE = /\.(?:[cm]?[jt]sx?)$/;
|
|
111
|
+
/** The identifier `export default NAME` names in a JS-family file, or null. */
|
|
112
|
+
function defaultExportBinding(filePath, context) {
|
|
113
|
+
if (!JS_FAMILY_FILE.test(filePath))
|
|
114
|
+
return null;
|
|
115
|
+
const source = context.readFile(filePath);
|
|
116
|
+
if (!source || !source.includes('export default'))
|
|
117
|
+
return null;
|
|
118
|
+
return source.match(DEFAULT_EXPORT_BINDING_RE)?.[1] ?? null;
|
|
119
|
+
}
|
|
105
120
|
const fileExportIndexes = new WeakMap();
|
|
106
121
|
function getFileExportIndex(filePath, context) {
|
|
107
122
|
let perFile = fileExportIndexes.get(context);
|
|
@@ -112,9 +127,8 @@ function getFileExportIndex(filePath, context) {
|
|
|
112
127
|
let idx = perFile.get(filePath);
|
|
113
128
|
if (!idx) {
|
|
114
129
|
idx = { byName: new Map(), defaultComponent: undefined, defaultFnClass: undefined };
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
continue;
|
|
130
|
+
const exported = context.getExportedNodesInFile?.(filePath) ?? context.getNodesInFile(filePath).filter((n) => n.isExported);
|
|
131
|
+
for (const n of exported) {
|
|
118
132
|
if (!idx.byName.has(n.name))
|
|
119
133
|
idx.byName.set(n.name, n);
|
|
120
134
|
if (idx.defaultComponent === undefined && n.kind === 'component')
|
|
@@ -126,6 +140,47 @@ function getFileExportIndex(filePath, context) {
|
|
|
126
140
|
}
|
|
127
141
|
return idx;
|
|
128
142
|
}
|
|
143
|
+
/** The file's nodes named `name`, in `getNodesInFile` order. */
|
|
144
|
+
function nodesInFileNamed(filePath, name, context) {
|
|
145
|
+
return context.getNodesInFileNamed?.(filePath, name) ?? context.getNodesInFile(filePath).filter((n) => n.name === name);
|
|
146
|
+
}
|
|
147
|
+
/** The declaration `export default NAME` names in this file (see FileExportIndex.defaultBinding). */
|
|
148
|
+
function defaultExportBindingNode(filePath, idx, context) {
|
|
149
|
+
if (idx.defaultBinding === undefined) {
|
|
150
|
+
const bound = defaultExportBinding(filePath, context);
|
|
151
|
+
idx.defaultBinding =
|
|
152
|
+
bound === null
|
|
153
|
+
? null
|
|
154
|
+
: (nodesInFileNamed(filePath, bound, context)
|
|
155
|
+
.filter((n) => DEFAULT_BINDING_KINDS.has(n.kind))
|
|
156
|
+
.sort((a, b) => a.startLine - b.startLine || a.startColumn - b.startColumn)[0] ?? null);
|
|
157
|
+
}
|
|
158
|
+
return idx.defaultBinding ?? undefined;
|
|
159
|
+
}
|
|
160
|
+
/** What this file exports as `name`: an exported declaration, else a local export clause's binding. */
|
|
161
|
+
function exportedByName(filePath, idx, name, context) {
|
|
162
|
+
const direct = idx.byName.get(name);
|
|
163
|
+
if (direct)
|
|
164
|
+
return direct;
|
|
165
|
+
if (idx.clauseAliases === undefined) {
|
|
166
|
+
// Bind names introduced by a local export clause to their declarations, so
|
|
167
|
+
// an importer asking for the renamed name gets the real symbol instead of
|
|
168
|
+
// falling through to the name-matcher (which cannot cross the rename).
|
|
169
|
+
// The declaration is the file's first node of that name, exported or not.
|
|
170
|
+
idx.clauseAliases = new Map();
|
|
171
|
+
const content = context.readFile(filePath);
|
|
172
|
+
if (content && content.includes('export')) {
|
|
173
|
+
for (const { exportedName, localName } of (0, alias_binding_1.extractLocalExportAliases)(content)) {
|
|
174
|
+
if (idx.byName.has(exportedName) || idx.clauseAliases.has(exportedName))
|
|
175
|
+
continue;
|
|
176
|
+
const decl = nodesInFileNamed(filePath, localName, context)[0];
|
|
177
|
+
if (decl)
|
|
178
|
+
idx.clauseAliases.set(exportedName, decl);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
return idx.clauseAliases.get(name);
|
|
183
|
+
}
|
|
129
184
|
/** Drop the per-context memo tables (see ReferenceResolver.clearCaches). */
|
|
130
185
|
function clearImportResolverMemos(context) {
|
|
131
186
|
importPathMemos.delete(context);
|
|
@@ -133,6 +188,7 @@ function clearImportResolverMemos(context) {
|
|
|
133
188
|
fileExportIndexes.delete(context);
|
|
134
189
|
luaFileBasenameIndexes.delete(context);
|
|
135
190
|
cobolCopybookIndexes.delete(context);
|
|
191
|
+
pythonModuleFileMemos.delete(context);
|
|
136
192
|
}
|
|
137
193
|
function resolveImportPath(importPath, fromFile, language, context) {
|
|
138
194
|
let memo = importPathMemos.get(context);
|
|
@@ -292,6 +348,19 @@ const C_CPP_STDLIB_HEADERS = new Set([
|
|
|
292
348
|
'unordered_set', 'utility', 'valarray', 'variant', 'vector',
|
|
293
349
|
'version',
|
|
294
350
|
]);
|
|
351
|
+
/**
|
|
352
|
+
* Languages whose imports are ES-module specifiers, extracted by
|
|
353
|
+
* `extractJSImports` and therefore classified by the same bare-specifier /
|
|
354
|
+
* alias / workspace rules. Svelte, Vue and Astro belong here: an SFC imports
|
|
355
|
+
* inside its `<script>` block (Astro: the `---` frontmatter) with exactly the
|
|
356
|
+
* same syntax, and leaving them out made `isExternalImport` answer "not
|
|
357
|
+
* external" for every npm specifier in an SFC.
|
|
358
|
+
*/
|
|
359
|
+
const ESM_IMPORT_LANGUAGES = new Set([
|
|
360
|
+
'typescript', 'tsx', 'javascript', 'jsx', 'arkts', 'svelte', 'vue', 'astro',
|
|
361
|
+
]);
|
|
362
|
+
/** Rust path roots that always name a standard-library crate. */
|
|
363
|
+
const RUST_STDLIB_ROOTS = new Set(['std', 'core', 'alloc', 'proc_macro']);
|
|
295
364
|
/**
|
|
296
365
|
* Check if an import is external (npm package, etc.)
|
|
297
366
|
*
|
|
@@ -314,7 +383,7 @@ function isExternalImport(importPath, language, context) {
|
|
|
314
383
|
return false;
|
|
315
384
|
}
|
|
316
385
|
// Common external patterns
|
|
317
|
-
if (language
|
|
386
|
+
if (ESM_IMPORT_LANGUAGES.has(language)) {
|
|
318
387
|
// Node built-ins
|
|
319
388
|
if (['fs', 'path', 'os', 'crypto', 'http', 'https', 'url', 'util', 'events', 'stream', 'child_process', 'buffer'].includes(importPath)) {
|
|
320
389
|
return true;
|
|
@@ -412,8 +481,44 @@ function resolveRelativeImport(importPath, fromDir, language, context) {
|
|
|
412
481
|
if (context.fileExists(relativePath)) {
|
|
413
482
|
return relativePath;
|
|
414
483
|
}
|
|
484
|
+
return findSourceForEmittedSpecifier(relativePath, language, context);
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* TypeScript under `moduleResolution: node16 | nodenext | bundler` writes the
|
|
488
|
+
* EMITTED extension in the specifier (`import x from './util.js'` for
|
|
489
|
+
* `util.ts`, `.mjs` for `.mts`, `.cjs` for `.cts`), and the source file with that
|
|
490
|
+
* exact name never exists in the repo. Without this remap the import resolver
|
|
491
|
+
* returned null for every such import, so each imported name fell through to
|
|
492
|
+
* bare-name matching: a method wrapping the same-named helper it imports
|
|
493
|
+
* (`renderDockStyles() { return renderDockStyles() }`) resolved to ITSELF, and
|
|
494
|
+
* any repo-wide same-named symbol could win the cross-module edge.
|
|
495
|
+
*/
|
|
496
|
+
const EMITTED_TO_SOURCE_EXTENSIONS = [
|
|
497
|
+
[/\.js$/, ['.ts', '.tsx', '.d.ts']],
|
|
498
|
+
[/\.jsx$/, ['.tsx']],
|
|
499
|
+
[/\.mjs$/, ['.mts', '.d.mts']],
|
|
500
|
+
[/\.cjs$/, ['.cts', '.d.cts']],
|
|
501
|
+
];
|
|
502
|
+
function findSourceForEmittedSpecifier(relativePath, language, context) {
|
|
503
|
+
if (!EMITTED_SPECIFIER_LANGUAGES.has(language))
|
|
504
|
+
return null;
|
|
505
|
+
for (const [emitted, sources] of EMITTED_TO_SOURCE_EXTENSIONS) {
|
|
506
|
+
if (!emitted.test(relativePath))
|
|
507
|
+
continue;
|
|
508
|
+
const stem = relativePath.replace(emitted, '');
|
|
509
|
+
for (const ext of sources) {
|
|
510
|
+
const candidate = stem + ext;
|
|
511
|
+
if (context.fileExists(candidate))
|
|
512
|
+
return candidate;
|
|
513
|
+
}
|
|
514
|
+
return null;
|
|
515
|
+
}
|
|
415
516
|
return null;
|
|
416
517
|
}
|
|
518
|
+
/** Languages whose import specifiers can name the emitted `.js` of a `.ts` source. */
|
|
519
|
+
const EMITTED_SPECIFIER_LANGUAGES = new Set([
|
|
520
|
+
'typescript', 'tsx', 'javascript', 'jsx', 'vue', 'svelte', 'astro', 'arkts',
|
|
521
|
+
]);
|
|
417
522
|
/**
|
|
418
523
|
* Resolve an aliased/absolute import.
|
|
419
524
|
*
|
|
@@ -435,7 +540,7 @@ function resolveAliasedImport(importPath, projectRoot, language, context) {
|
|
|
435
540
|
}
|
|
436
541
|
if (context.fileExists(basePath))
|
|
437
542
|
return basePath;
|
|
438
|
-
return
|
|
543
|
+
return findSourceForEmittedSpecifier(basePath, language, context);
|
|
439
544
|
};
|
|
440
545
|
// 1. Project tsconfig/jsconfig paths.
|
|
441
546
|
const aliasMap = context.getProjectAliases?.();
|
|
@@ -1248,6 +1353,47 @@ function pickClosestJvmCandidate(candidates, fromPath) {
|
|
|
1248
1353
|
}
|
|
1249
1354
|
return best;
|
|
1250
1355
|
}
|
|
1356
|
+
/**
|
|
1357
|
+
* PHP scoped calls are encoded as "Alias.method" by both extractors. A use
|
|
1358
|
+
* mapping names a namespace, not a filesystem path, so resolve the receiver
|
|
1359
|
+
* through its localName and look up the method on that exact imported type.
|
|
1360
|
+
* undefined means this is not an imported static call; null means the import
|
|
1361
|
+
* owns the call but its method is unavailable, so name fallbacks must not guess.
|
|
1362
|
+
*/
|
|
1363
|
+
function resolvePhpImportedStaticCall(ref, context) {
|
|
1364
|
+
if (ref.language !== 'php' || ref.referenceKind !== 'calls')
|
|
1365
|
+
return undefined;
|
|
1366
|
+
const call = /^(\w+)\.(\w+)$/.exec(ref.referenceName);
|
|
1367
|
+
if (!call)
|
|
1368
|
+
return undefined;
|
|
1369
|
+
const [, receiver, member] = call;
|
|
1370
|
+
const imp = context.getImportMappings(ref.filePath, ref.language)
|
|
1371
|
+
.find((i) => i.localName === receiver);
|
|
1372
|
+
if (!imp)
|
|
1373
|
+
return undefined;
|
|
1374
|
+
// PHP variables occupy a different namespace from class imports. Extraction
|
|
1375
|
+
// strips the leading "$" from "$Alias->method()" too; leave that receiver to
|
|
1376
|
+
// local type inference even when a class import has the same local name.
|
|
1377
|
+
const lines = context.getFileLines?.(ref.filePath) ?? context.readFile(ref.filePath)?.split('\n');
|
|
1378
|
+
const line = lines?.[ref.line - 1];
|
|
1379
|
+
if (line?.slice(ref.column).startsWith('$'))
|
|
1380
|
+
return undefined;
|
|
1381
|
+
const fqn = imp.source.replace(/^\\/, '');
|
|
1382
|
+
const separator = fqn.lastIndexOf('\\');
|
|
1383
|
+
const typeName = separator < 0
|
|
1384
|
+
? fqn
|
|
1385
|
+
: `${fqn.slice(0, separator)}::${fqn.slice(separator + 1)}`;
|
|
1386
|
+
const owners = context.getNodesByQualifiedName(typeName)
|
|
1387
|
+
.filter((n) => n.language === 'php' && STATIC_MEMBER_CONTAINERS.has(n.kind));
|
|
1388
|
+
if (owners.length !== 1)
|
|
1389
|
+
return null;
|
|
1390
|
+
const owner = owners[0];
|
|
1391
|
+
const methods = context.getNodesByQualifiedName(`${owner.qualifiedName}::${member}`)
|
|
1392
|
+
.filter((n) => n.language === 'php' && n.kind === 'method' && n.filePath === owner.filePath);
|
|
1393
|
+
if (methods.length !== 1)
|
|
1394
|
+
return null;
|
|
1395
|
+
return { original: ref, targetNodeId: methods[0].id, confidence: 0.95, resolvedBy: 'import' };
|
|
1396
|
+
}
|
|
1251
1397
|
function resolveViaImport(ref, context) {
|
|
1252
1398
|
// C/C++ #include references — resolve directly to the included file
|
|
1253
1399
|
// (file→file edge), bypassing symbol lookup. The extractor emits these
|
|
@@ -1442,13 +1588,21 @@ function resolveViaImport(ref, context) {
|
|
|
1442
1588
|
for (const imp of imports) {
|
|
1443
1589
|
if (imp.localName === ref.referenceName || ref.referenceName.startsWith(imp.localName + '.')) {
|
|
1444
1590
|
// Resolve the import path
|
|
1445
|
-
|
|
1591
|
+
let resolvedPath = resolveImportPath(imp.source, ref.filePath, ref.language, context);
|
|
1592
|
+
// Named Python imports need the same absolute-module lookup as namespace
|
|
1593
|
+
// imports, including aliases used as receiver types (#1820).
|
|
1594
|
+
if (!resolvedPath && ref.language === 'python') {
|
|
1595
|
+
resolvedPath = findPythonModuleFile(imp.source, context, ref.filePath)?.filePath ?? null;
|
|
1596
|
+
}
|
|
1446
1597
|
if (resolvedPath) {
|
|
1447
1598
|
const exportedName = imp.isDefault ? 'default' : imp.exportedName;
|
|
1448
1599
|
const memberName = imp.isNamespace
|
|
1449
1600
|
? ref.referenceName.replace(imp.localName + '.', '')
|
|
1450
1601
|
: null;
|
|
1451
|
-
const targetNode = findExportedSymbol(resolvedPath, { isDefault: imp.isDefault, isNamespace: imp.isNamespace, exportedName, memberName }, ref.language, context, new Set())
|
|
1602
|
+
const targetNode = findExportedSymbol(resolvedPath, { isDefault: imp.isDefault, isNamespace: imp.isNamespace, exportedName, memberName }, ref.language, context, new Set()) ?? (ref.language === 'python'
|
|
1603
|
+
? context.getNodesInFile(resolvedPath).find(n => n.name === (memberName ?? exportedName) && !n.qualifiedName.includes('::') &&
|
|
1604
|
+
(n.kind === 'class' || n.kind === 'function' || n.kind === 'variable' || n.kind === 'constant'))
|
|
1605
|
+
: undefined);
|
|
1452
1606
|
if (targetNode) {
|
|
1453
1607
|
// `Foo.bar()` / `Foo.CONST` — a NAMED (non-namespace) class import
|
|
1454
1608
|
// accessed through a member. `findExportedSymbol` resolved `Foo` to
|
|
@@ -1467,6 +1621,24 @@ function resolveViaImport(ref, context) {
|
|
|
1467
1621
|
resolvedBy: 'import',
|
|
1468
1622
|
};
|
|
1469
1623
|
}
|
|
1624
|
+
// An imported object literal used as a namespace (#1573):
|
|
1625
|
+
// `api.call()` after `import { api } from './api'` where `api` is
|
|
1626
|
+
// `export const api = { call() {…} }`. Its members have bare
|
|
1627
|
+
// qualified names inside the constant's extent, so the
|
|
1628
|
+
// `Container::member` lookup above can't see them and the edge
|
|
1629
|
+
// landed on the constant — every cross-file caller of the method
|
|
1630
|
+
// went missing. Resolve the member by containment instead.
|
|
1631
|
+
if (targetNode.kind === 'constant' || targetNode.kind === 'variable') {
|
|
1632
|
+
const member = ref.referenceName.slice(imp.localName.length + 1).split('.')[0];
|
|
1633
|
+
if (member) {
|
|
1634
|
+
const literalMember = (0, name_matcher_1.resolveObjectLiteralMember)(targetNode, member, ref, context, 0.9, 'import');
|
|
1635
|
+
if (literalMember)
|
|
1636
|
+
return literalMember;
|
|
1637
|
+
const aliasMember = resolveObjectLiteralAlias(targetNode, member, ref, context);
|
|
1638
|
+
if (aliasMember)
|
|
1639
|
+
return aliasMember;
|
|
1640
|
+
}
|
|
1641
|
+
}
|
|
1470
1642
|
// An imported VALUE (singleton constant / shared instance) called
|
|
1471
1643
|
// through a member: `reproStore.notifyJoinGuildStatus()` after
|
|
1472
1644
|
// `import { reproStore } from './store'`. findExportedSymbol
|
|
@@ -1480,6 +1652,13 @@ function resolveViaImport(ref, context) {
|
|
|
1480
1652
|
const instanceMember = resolveImportedInstanceMember(targetNode, ref, imp.localName, context);
|
|
1481
1653
|
if (instanceMember)
|
|
1482
1654
|
return instanceMember;
|
|
1655
|
+
// Finding a named Python import proves the receiver exists, not
|
|
1656
|
+
// its requested attribute. In particular, task.delay() enqueues
|
|
1657
|
+
// work; it does not call the imported task function directly.
|
|
1658
|
+
// Keep unknown members unresolved (including callback values)
|
|
1659
|
+
// instead of falling back to the receiver as their target.
|
|
1660
|
+
if (ref.language === 'python')
|
|
1661
|
+
return null;
|
|
1483
1662
|
}
|
|
1484
1663
|
return {
|
|
1485
1664
|
original: ref,
|
|
@@ -1524,11 +1703,19 @@ function resolvePythonModuleMember(ref, imports, context) {
|
|
|
1524
1703
|
// `import mod` / `import numpy as np` bind the module at `source` itself;
|
|
1525
1704
|
// `from . import certs` / `from pkg import mod` bind a SUBMODULE whose
|
|
1526
1705
|
// dotted path is the source joined with the imported name.
|
|
1706
|
+
//
|
|
1707
|
+
// Join with the EXPORTED name, not the local one: under
|
|
1708
|
+
// `from pkg import mod as alias` the receiver is `alias` but the module on
|
|
1709
|
+
// disk is `pkg.mod`, and building `pkg.alias` looked for a file that does
|
|
1710
|
+
// not exist — so the aliased form dropped its `calls` edge while the plain
|
|
1711
|
+
// form (where the two names coincide) worked (#1626). For an unaliased
|
|
1712
|
+
// import the two are identical, so this changes nothing there.
|
|
1713
|
+
const moduleName = imp.exportedName === '*' ? imp.localName : imp.exportedName;
|
|
1527
1714
|
const modulePath = imp.isNamespace
|
|
1528
1715
|
? imp.source
|
|
1529
1716
|
: imp.source.endsWith('.')
|
|
1530
|
-
? imp.source +
|
|
1531
|
-
: imp.source + '.' +
|
|
1717
|
+
? imp.source + moduleName
|
|
1718
|
+
: imp.source + '.' + moduleName;
|
|
1532
1719
|
// resolveImportPath only maps RELATIVE dotted paths (`.mod`, `..pkg.mod`); an
|
|
1533
1720
|
// ABSOLUTE package path (`pkg.module` from `from pkg import module`, or a bare
|
|
1534
1721
|
// `import pkg.mod`) resolves to null there, so fall back to the dotted-module
|
|
@@ -1617,6 +1804,30 @@ function resolveLuaRequire(ref, context) {
|
|
|
1617
1804
|
}
|
|
1618
1805
|
return null;
|
|
1619
1806
|
}
|
|
1807
|
+
/**
|
|
1808
|
+
* `UploadApi.uploadARCapture()` where `UploadApi` is a NAMESPACE OBJECT — the
|
|
1809
|
+
* default-export façade most React Native API layers are written as:
|
|
1810
|
+
*
|
|
1811
|
+
* import { uploadARCapture } from './frames'
|
|
1812
|
+
* const UploadApi = { uploadARCapture, createFolder }
|
|
1813
|
+
* export default UploadApi
|
|
1814
|
+
*
|
|
1815
|
+
* The member is a shorthand (or `key: ident`) property whose value is a
|
|
1816
|
+
* binding of the object's file, not a function defined inside the literal,
|
|
1817
|
+
* so containment (`resolveObjectLiteralMember`) finds nothing and the call
|
|
1818
|
+
* landed on the constant — every cross-file caller of the API function went
|
|
1819
|
+
* missing. Read the literal's source, take the binding the member names, and
|
|
1820
|
+
* resolve it where the object's file would: a symbol declared there, else
|
|
1821
|
+
* through its own imports. Calls accept callable targets only.
|
|
1822
|
+
*/
|
|
1823
|
+
function resolveObjectLiteralAlias(container, member, ref, context) {
|
|
1824
|
+
if (container.kind !== 'constant' && container.kind !== 'variable')
|
|
1825
|
+
return null;
|
|
1826
|
+
if (!JS_FAMILY_FILE.test(container.filePath))
|
|
1827
|
+
return null;
|
|
1828
|
+
const resolved = (0, name_matcher_1.resolveObjectLiteralBinding)(container, member, ref, context);
|
|
1829
|
+
return resolved ? { ...resolved, confidence: 0.9, resolvedBy: 'import' } : null;
|
|
1830
|
+
}
|
|
1620
1831
|
function resolveModuleImportToFile(ref, imports, context) {
|
|
1621
1832
|
if (ref.referenceKind !== 'imports')
|
|
1622
1833
|
return null;
|
|
@@ -1638,9 +1849,12 @@ function resolveModuleImportToFile(ref, imports, context) {
|
|
|
1638
1849
|
}
|
|
1639
1850
|
else if (ref.language === 'python') {
|
|
1640
1851
|
// `from . import certs` — the imported NAME is a submodule of the source.
|
|
1852
|
+
// As in resolvePythonModuleMember, use the exported name so an alias
|
|
1853
|
+
// still links to the real module file (#1626).
|
|
1854
|
+
const moduleName = imp.exportedName === '*' ? imp.localName : imp.exportedName;
|
|
1641
1855
|
modulePath = imp.source.endsWith('.')
|
|
1642
|
-
? imp.source +
|
|
1643
|
-
: imp.source + '.' +
|
|
1856
|
+
? imp.source + moduleName
|
|
1857
|
+
: imp.source + '.' + moduleName;
|
|
1644
1858
|
}
|
|
1645
1859
|
else {
|
|
1646
1860
|
// A named TS/JS import binds a symbol, not a module — leave it alone.
|
|
@@ -1674,21 +1888,42 @@ function resolveModuleImportToFile(ref, imports, context) {
|
|
|
1674
1888
|
* no edge. Shared by absolute `import a.b.c` and absolute `from a.b import c`
|
|
1675
1889
|
* (where `c` is a submodule) resolution.
|
|
1676
1890
|
*/
|
|
1891
|
+
/**
|
|
1892
|
+
* Per-context memo for findPythonModuleFile: module path → the `<mod>.py` and
|
|
1893
|
+
* `<mod>/__init__.py` file nodes whose path ends with it, in name-lookup
|
|
1894
|
+
* order. Only the importing file's own path is excluded per call, so taking
|
|
1895
|
+
* the first survivor returns the node the unmemoized scan found. Without it,
|
|
1896
|
+
* every ref naming a module outside the project (`from unittest import mock`)
|
|
1897
|
+
* rescanned every `__init__.py` in the tree. Same stable window as the name
|
|
1898
|
+
* caches; dropped by clearImportResolverMemos.
|
|
1899
|
+
*/
|
|
1900
|
+
const pythonModuleFileMemos = new WeakMap();
|
|
1677
1901
|
function findPythonModuleFile(mod, context, excludeFilePath) {
|
|
1678
1902
|
if (!mod || mod.startsWith('.'))
|
|
1679
1903
|
return null; // relative imports handled elsewhere
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
if (
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
.
|
|
1690
|
-
|
|
1691
|
-
|
|
1904
|
+
let memo = pythonModuleFileMemos.get(context);
|
|
1905
|
+
if (!memo) {
|
|
1906
|
+
memo = new Map();
|
|
1907
|
+
pythonModuleFileMemos.set(context, memo);
|
|
1908
|
+
}
|
|
1909
|
+
let files = memo.get(mod);
|
|
1910
|
+
if (!files) {
|
|
1911
|
+
const rel = mod.replace(/\./g, '/');
|
|
1912
|
+
const lastSeg = mod.split('.').pop();
|
|
1913
|
+
const endsWith = (p, want) => p === want || p.endsWith('/' + want);
|
|
1914
|
+
files = {
|
|
1915
|
+
module: context
|
|
1916
|
+
.getNodesByName(`${lastSeg}.py`)
|
|
1917
|
+
.filter((n) => n.kind === 'file' && endsWith(n.filePath, `${rel}.py`)),
|
|
1918
|
+
pkg: context
|
|
1919
|
+
.getNodesByName('__init__.py')
|
|
1920
|
+
.filter((n) => n.kind === 'file' && endsWith(n.filePath, `${rel}/__init__.py`)),
|
|
1921
|
+
};
|
|
1922
|
+
memo.set(mod, files);
|
|
1923
|
+
}
|
|
1924
|
+
return (files.module.find((n) => n.filePath !== excludeFilePath) ??
|
|
1925
|
+
files.pkg.find((n) => n.filePath !== excludeFilePath) ??
|
|
1926
|
+
null);
|
|
1692
1927
|
}
|
|
1693
1928
|
/**
|
|
1694
1929
|
* Resolve a Python ABSOLUTE dotted module import (`import a.b.c`) to its file —
|
|
@@ -1728,6 +1963,7 @@ function resolveRustPathReference(ref, context) {
|
|
|
1728
1963
|
const target = context.getNodesInFile(file).find((n) => n.name === leaf &&
|
|
1729
1964
|
(n.kind === 'function' ||
|
|
1730
1965
|
n.kind === 'struct' ||
|
|
1966
|
+
n.kind === 'union' ||
|
|
1731
1967
|
n.kind === 'enum' ||
|
|
1732
1968
|
n.kind === 'trait' ||
|
|
1733
1969
|
n.kind === 'type_alias' ||
|
|
@@ -2000,17 +2236,19 @@ function findExportedSymbolWalk(filePath, want, language, context, visited, dept
|
|
|
2000
2236
|
// `.ts`/`.tsx` `export default fn`/`class` case. Without the component
|
|
2001
2237
|
// branch, an `export { default as X } from './X.svelte'` barrel never
|
|
2002
2238
|
// resolves and the component shows a false 0 callers (#629).
|
|
2003
|
-
|
|
2239
|
+
// A component file IS its default export; otherwise the statement that
|
|
2240
|
+
// names the binding beats the first-exported-function guess.
|
|
2241
|
+
const direct = exportIndex.defaultComponent ?? defaultExportBindingNode(filePath, exportIndex, context) ?? exportIndex.defaultFnClass;
|
|
2004
2242
|
if (direct)
|
|
2005
2243
|
return direct;
|
|
2006
2244
|
}
|
|
2007
2245
|
else if (want.isNamespace && want.memberName) {
|
|
2008
|
-
const direct = exportIndex
|
|
2246
|
+
const direct = exportedByName(filePath, exportIndex, want.memberName, context);
|
|
2009
2247
|
if (direct)
|
|
2010
2248
|
return direct;
|
|
2011
2249
|
}
|
|
2012
2250
|
else {
|
|
2013
|
-
const direct = exportIndex
|
|
2251
|
+
const direct = exportedByName(filePath, exportIndex, want.exportedName, context);
|
|
2014
2252
|
if (direct)
|
|
2015
2253
|
return direct;
|
|
2016
2254
|
}
|
|
@@ -2053,7 +2291,7 @@ function findExportedSymbolWalk(filePath, want, language, context, visited, dept
|
|
|
2053
2291
|
}
|
|
2054
2292
|
/** Node kinds that own static members reachable as `Container.member`. */
|
|
2055
2293
|
const STATIC_MEMBER_CONTAINERS = new Set([
|
|
2056
|
-
'class', 'struct', 'interface', 'enum', 'trait', 'protocol',
|
|
2294
|
+
'class', 'struct', 'union', 'interface', 'enum', 'trait', 'protocol',
|
|
2057
2295
|
]);
|
|
2058
2296
|
/**
|
|
2059
2297
|
* Resolve `Container.member` — a static method/property access on a NAMED class
|
|
@@ -2130,4 +2368,132 @@ function resolveStaticMember(container, ref, localName, context) {
|
|
|
2130
2368
|
}
|
|
2131
2369
|
return candidates[0];
|
|
2132
2370
|
}
|
|
2371
|
+
/**
|
|
2372
|
+
* Rust `use` declarations, flattened to `localName → full path`.
|
|
2373
|
+
*
|
|
2374
|
+
* Rust is the one supported language with NO `ImportMapping` extraction (see
|
|
2375
|
+
* `extractImportMappings`), so this is the only channel that can tell whether
|
|
2376
|
+
* a bare type name in a Rust file was brought in by a `use`. Handles nested
|
|
2377
|
+
* groups (`use a::{b::C, d as E}`), globs (skipped — they bind no single
|
|
2378
|
+
* name), and `as` aliases.
|
|
2379
|
+
*/
|
|
2380
|
+
function collectRustUseBindings(content) {
|
|
2381
|
+
const out = new Map();
|
|
2382
|
+
// Expand one level of `{...}` at a time so `a::{b::{C, D}, E}` flattens.
|
|
2383
|
+
const expand = (spec) => {
|
|
2384
|
+
const open = spec.indexOf('{');
|
|
2385
|
+
if (open === -1)
|
|
2386
|
+
return [spec.trim()];
|
|
2387
|
+
const prefix = spec.slice(0, open);
|
|
2388
|
+
let depth = 0;
|
|
2389
|
+
let close = -1;
|
|
2390
|
+
for (let i = open; i < spec.length; i++) {
|
|
2391
|
+
if (spec[i] === '{')
|
|
2392
|
+
depth++;
|
|
2393
|
+
else if (spec[i] === '}') {
|
|
2394
|
+
depth--;
|
|
2395
|
+
if (depth === 0) {
|
|
2396
|
+
close = i;
|
|
2397
|
+
break;
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
}
|
|
2401
|
+
if (close === -1)
|
|
2402
|
+
return [];
|
|
2403
|
+
const suffix = spec.slice(close + 1);
|
|
2404
|
+
const inner = spec.slice(open + 1, close);
|
|
2405
|
+
const parts = [];
|
|
2406
|
+
let depth2 = 0;
|
|
2407
|
+
let start = 0;
|
|
2408
|
+
for (let i = 0; i <= inner.length; i++) {
|
|
2409
|
+
const ch = inner[i];
|
|
2410
|
+
if (ch === '{')
|
|
2411
|
+
depth2++;
|
|
2412
|
+
else if (ch === '}')
|
|
2413
|
+
depth2--;
|
|
2414
|
+
if (i === inner.length || (ch === ',' && depth2 === 0)) {
|
|
2415
|
+
const seg = inner.slice(start, i).trim();
|
|
2416
|
+
if (seg)
|
|
2417
|
+
parts.push(seg);
|
|
2418
|
+
start = i + 1;
|
|
2419
|
+
}
|
|
2420
|
+
}
|
|
2421
|
+
return parts.flatMap((p) => expand(prefix + p + suffix));
|
|
2422
|
+
};
|
|
2423
|
+
// `use` items end at the first `;`. Attributes/visibility (`pub use`) are
|
|
2424
|
+
// irrelevant to the binding itself.
|
|
2425
|
+
const useRe = /(^|\n)\s*(?:pub(?:\([^)]*\))?\s+)?use\s+([^;]+);/g;
|
|
2426
|
+
let m;
|
|
2427
|
+
while ((m = useRe.exec(content)) !== null) {
|
|
2428
|
+
for (const spec of expand(m[2].replace(/\s+/g, ' '))) {
|
|
2429
|
+
const aliasMatch = /^(.*?)\s+as\s+([A-Za-z_]\w*)$/.exec(spec);
|
|
2430
|
+
const rawPath = (aliasMatch ? aliasMatch[1] : spec).trim();
|
|
2431
|
+
if (!rawPath || rawPath.endsWith('*'))
|
|
2432
|
+
continue;
|
|
2433
|
+
const segments = rawPath.split('::').map((s) => s.trim()).filter(Boolean);
|
|
2434
|
+
const leaf = segments[segments.length - 1];
|
|
2435
|
+
if (!leaf)
|
|
2436
|
+
continue;
|
|
2437
|
+
const local = aliasMatch ? aliasMatch[2] : leaf;
|
|
2438
|
+
out.set(local, segments.join('::'));
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
return out;
|
|
2442
|
+
}
|
|
2443
|
+
/**
|
|
2444
|
+
* Is `name`, as used in `ref`'s file, bound by an import whose module lives
|
|
2445
|
+
* OUTSIDE the repository?
|
|
2446
|
+
*
|
|
2447
|
+
* When it is, no in-repo node can be the referent: the symbol is defined in a
|
|
2448
|
+
* third-party crate/package, and any same-named local symbol the name-matcher
|
|
2449
|
+
* finds is a coincidence. Rust `use std::error::Error;` + `impl Error for
|
|
2450
|
+
* MapperError {}` bound to a local `MapperError::Error` variant, and once
|
|
2451
|
+
* non-type kinds were filtered out it simply moved to an unrelated local
|
|
2452
|
+
* `type Error` alias — restricting kinds alone RELOCATES the false edge
|
|
2453
|
+
* instead of removing it, so locality has to be checked too.
|
|
2454
|
+
*
|
|
2455
|
+
* Answers only when it can be CERTAIN, because a false "yes" deletes a real
|
|
2456
|
+
* edge. Two languages qualify, each with an oracle that cannot be wrong:
|
|
2457
|
+
*
|
|
2458
|
+
* - **Rust** — the `use` path is rooted at a standard-library crate
|
|
2459
|
+
* (`std`/`core`/`alloc`/`proc_macro`), which by definition ships outside
|
|
2460
|
+
* any repository. Deliberately NOT generalized to "the module path doesn't
|
|
2461
|
+
* resolve to a file": a crate can re-export another workspace crate's
|
|
2462
|
+
* modules (`pub use pupil_core::{ports, domain};`), so `crate::ports::X`
|
|
2463
|
+
* has no `src/ports/` directory to walk yet is entirely in-repo — that
|
|
2464
|
+
* generalization measured 13 real trait implementations deleted.
|
|
2465
|
+
* - **ES modules** — `isExternalImport`, which already accounts for tsconfig
|
|
2466
|
+
* path aliases and monorepo workspace packages.
|
|
2467
|
+
*
|
|
2468
|
+
* Everything else returns false and resolves exactly as before. JVM and Python
|
|
2469
|
+
* imports notably do NOT go through `resolveImportPath` (they have dedicated
|
|
2470
|
+
* FQN/module matchers), so there is no trustworthy oracle to consult here.
|
|
2471
|
+
*/
|
|
2472
|
+
function isBoundToOutOfRepoImport(ref, context) {
|
|
2473
|
+
const name = ref.referenceName;
|
|
2474
|
+
if (name.includes('::') || name.includes('.'))
|
|
2475
|
+
return false; // qualified refs resolve by path
|
|
2476
|
+
if (ref.language === 'rust') {
|
|
2477
|
+
const content = context.readFile(ref.filePath);
|
|
2478
|
+
if (!content)
|
|
2479
|
+
return false;
|
|
2480
|
+
const usePath = collectRustUseBindings(content).get(name);
|
|
2481
|
+
if (!usePath)
|
|
2482
|
+
return false;
|
|
2483
|
+
const segments = usePath.split('::');
|
|
2484
|
+
if (segments.length < 2 || !RUST_STDLIB_ROOTS.has(segments[0]))
|
|
2485
|
+
return false;
|
|
2486
|
+
// 2015-edition crate-relative paths can shadow a stdlib root with a local
|
|
2487
|
+
// module of the same name — if the path walks to a real file, it's local.
|
|
2488
|
+
return resolveRustModuleFile(segments.slice(0, -1), ref.filePath, context) === null;
|
|
2489
|
+
}
|
|
2490
|
+
if (!ESM_IMPORT_LANGUAGES.has(ref.language))
|
|
2491
|
+
return false;
|
|
2492
|
+
for (const imp of context.getImportMappings(ref.filePath, ref.language)) {
|
|
2493
|
+
if (imp.localName !== name)
|
|
2494
|
+
continue;
|
|
2495
|
+
return isExternalImport(imp.source, ref.language, context);
|
|
2496
|
+
}
|
|
2497
|
+
return false;
|
|
2498
|
+
}
|
|
2133
2499
|
//# sourceMappingURL=import-resolver.js.map
|