@colbymchenry/codegraph-win32-arm64 1.6.2 → 1.6.4
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 +1 -1
- package/bin/codegraph.cmd +1 -1
- package/lib/dist/.test-build-engine.json +1 -1
- package/lib/dist/.test-build-viewer.json +1 -1
- package/lib/dist/bin/codegraph.d.ts +3 -0
- package/lib/dist/bin/codegraph.d.ts.map +1 -1
- package/lib/dist/bin/codegraph.js +507 -702
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/bin/command-supervision.js +1 -57
- package/lib/dist/bin/command-supervision.js.map +1 -1
- package/lib/dist/bin/fatal-handler.js +0 -46
- package/lib/dist/bin/fatal-handler.js.map +1 -1
- package/lib/dist/bin/node-version-check.js +0 -33
- package/lib/dist/bin/node-version-check.js.map +1 -1
- package/lib/dist/bin/uninstall.js +0 -19
- package/lib/dist/bin/uninstall.js.map +1 -1
- package/lib/dist/bin/viewer-gate.js +0 -14
- package/lib/dist/bin/viewer-gate.js.map +1 -1
- package/lib/dist/compile-cache.d.ts +2 -0
- package/lib/dist/compile-cache.d.ts.map +1 -0
- package/lib/dist/compile-cache.js +45 -0
- package/lib/dist/compile-cache.js.map +1 -0
- package/lib/dist/context/formatter.js +3 -66
- package/lib/dist/context/formatter.js.map +1 -1
- package/lib/dist/context/index.d.ts +44 -1
- package/lib/dist/context/index.d.ts.map +1 -1
- package/lib/dist/context/index.js +123 -430
- package/lib/dist/context/index.js.map +1 -1
- package/lib/dist/context/markers.js +0 -17
- package/lib/dist/context/markers.js.map +1 -1
- package/lib/dist/db/index.d.ts +44 -1
- package/lib/dist/db/index.d.ts.map +1 -1
- package/lib/dist/db/index.js +123 -395
- package/lib/dist/db/index.js.map +1 -1
- package/lib/dist/db/migrations.d.ts +11 -1
- package/lib/dist/db/migrations.d.ts.map +1 -1
- package/lib/dist/db/migrations.js +71 -79
- package/lib/dist/db/migrations.js.map +1 -1
- package/lib/dist/db/name-substring-index.d.ts +63 -0
- package/lib/dist/db/name-substring-index.d.ts.map +1 -0
- package/lib/dist/db/name-substring-index.js +151 -0
- package/lib/dist/db/name-substring-index.js.map +1 -0
- package/lib/dist/db/node-sqlite.d.ts +19 -0
- package/lib/dist/db/node-sqlite.d.ts.map +1 -0
- package/lib/dist/db/node-sqlite.js +23 -0
- package/lib/dist/db/node-sqlite.js.map +1 -0
- package/lib/dist/db/open-error.d.ts +36 -0
- package/lib/dist/db/open-error.d.ts.map +1 -0
- package/lib/dist/db/open-error.js +63 -0
- package/lib/dist/db/open-error.js.map +1 -0
- package/lib/dist/db/parameter-flow-queries.d.ts +120 -0
- package/lib/dist/db/parameter-flow-queries.d.ts.map +1 -0
- package/lib/dist/db/parameter-flow-queries.js +168 -0
- package/lib/dist/db/parameter-flow-queries.js.map +1 -0
- package/lib/dist/db/queries.d.ts +654 -34
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1466 -1470
- package/lib/dist/db/queries.js.map +1 -1
- package/lib/dist/db/reference-tail.d.ts +83 -0
- package/lib/dist/db/reference-tail.d.ts.map +1 -0
- package/lib/dist/db/reference-tail.js +68 -0
- package/lib/dist/db/reference-tail.js.map +1 -0
- package/lib/dist/db/schema.sql +18 -2
- package/lib/dist/db/sqlite-adapter.d.ts +18 -1
- package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
- package/lib/dist/db/sqlite-adapter.js +12 -62
- package/lib/dist/db/sqlite-adapter.js.map +1 -1
- package/lib/dist/db/synthesis-stage.d.ts.map +1 -1
- package/lib/dist/db/synthesis-stage.js +2 -6
- package/lib/dist/db/synthesis-stage.js.map +1 -1
- package/lib/dist/db/wal-valve.js +1 -153
- package/lib/dist/db/wal-valve.js.map +1 -1
- package/lib/dist/db/wsl-shared-index.js +0 -37
- package/lib/dist/db/wsl-shared-index.js.map +1 -1
- package/lib/dist/directory.d.ts +51 -0
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +76 -530
- package/lib/dist/directory.js.map +1 -1
- package/lib/dist/engine.d.ts +15 -0
- package/lib/dist/engine.d.ts.map +1 -0
- package/lib/dist/engine.js +35 -0
- package/lib/dist/engine.js.map +1 -0
- package/lib/dist/errors.d.ts +10 -0
- package/lib/dist/errors.d.ts.map +1 -1
- package/lib/dist/errors.js +8 -101
- 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 +11 -101
- package/lib/dist/extraction/astro-extractor.js.map +1 -1
- package/lib/dist/extraction/cfml-extractor.d.ts +27 -1
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/cfml-extractor.js +70 -206
- package/lib/dist/extraction/cfml-extractor.js.map +1 -1
- package/lib/dist/extraction/commonjs-requires.js +0 -31
- package/lib/dist/extraction/commonjs-requires.js.map +1 -1
- package/lib/dist/extraction/dfm-extractor.js +0 -21
- 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 -24
- package/lib/dist/extraction/extraction-version.js.map +1 -1
- package/lib/dist/extraction/function-ref.d.ts +40 -0
- package/lib/dist/extraction/function-ref.d.ts.map +1 -1
- package/lib/dist/extraction/function-ref.js +157 -207
- package/lib/dist/extraction/function-ref.js.map +1 -1
- package/lib/dist/extraction/generated-detection.js +0 -165
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +73 -4
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +160 -431
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +208 -7
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +594 -1383
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/kernel/decode.js +0 -16
- package/lib/dist/extraction/kernel/decode.js.map +1 -1
- package/lib/dist/extraction/kernel/index.d.ts +3 -1
- package/lib/dist/extraction/kernel/index.d.ts.map +1 -1
- package/lib/dist/extraction/kernel/index.js +48 -135
- package/lib/dist/extraction/kernel/index.js.map +1 -1
- package/lib/dist/extraction/kernel/layout.js +42 -76
- package/lib/dist/extraction/kernel/layout.js.map +1 -1
- package/lib/dist/extraction/kernel/loader.d.ts +5 -1
- package/lib/dist/extraction/kernel/loader.d.ts.map +1 -1
- package/lib/dist/extraction/kernel/loader.js +0 -37
- package/lib/dist/extraction/kernel/loader.js.map +1 -1
- package/lib/dist/extraction/languages/arkts.js +0 -59
- package/lib/dist/extraction/languages/arkts.js.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.d.ts +125 -28
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +789 -856
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
- package/lib/dist/extraction/languages/cfquery.js +0 -9
- package/lib/dist/extraction/languages/cfquery.js.map +1 -1
- package/lib/dist/extraction/languages/cfscript.d.ts +20 -0
- package/lib/dist/extraction/languages/cfscript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/cfscript.js +80 -9
- package/lib/dist/extraction/languages/cfscript.js.map +1 -1
- package/lib/dist/extraction/languages/cobol.js +0 -114
- package/lib/dist/extraction/languages/cobol.js.map +1 -1
- package/lib/dist/extraction/languages/cpp-brace-scopes.d.ts +66 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.js +343 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.js.map +1 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.d.ts +41 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.js +487 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.js.map +1 -0
- package/lib/dist/extraction/languages/csharp.js +3 -55
- package/lib/dist/extraction/languages/csharp.js.map +1 -1
- package/lib/dist/extraction/languages/dart.d.ts +129 -0
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
- package/lib/dist/extraction/languages/dart.js +517 -162
- 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 +15 -102
- package/lib/dist/extraction/languages/erlang.js.map +1 -1
- package/lib/dist/extraction/languages/go.d.ts +48 -0
- package/lib/dist/extraction/languages/go.d.ts.map +1 -1
- package/lib/dist/extraction/languages/go.js +102 -31
- package/lib/dist/extraction/languages/go.js.map +1 -1
- package/lib/dist/extraction/languages/index.js +0 -6
- package/lib/dist/extraction/languages/index.js.map +1 -1
- package/lib/dist/extraction/languages/java.d.ts.map +1 -1
- package/lib/dist/extraction/languages/java.js +67 -78
- package/lib/dist/extraction/languages/java.js.map +1 -1
- package/lib/dist/extraction/languages/javascript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/javascript.js +2 -12
- package/lib/dist/extraction/languages/javascript.js.map +1 -1
- package/lib/dist/extraction/languages/kotlin.d.ts +11 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
- package/lib/dist/extraction/languages/kotlin.js +43 -197
- package/lib/dist/extraction/languages/kotlin.js.map +1 -1
- package/lib/dist/extraction/languages/lua.js +2 -39
- package/lib/dist/extraction/languages/lua.js.map +1 -1
- package/lib/dist/extraction/languages/luau.js +0 -14
- package/lib/dist/extraction/languages/luau.js.map +1 -1
- package/lib/dist/extraction/languages/nix.js +0 -16
- package/lib/dist/extraction/languages/nix.js.map +1 -1
- package/lib/dist/extraction/languages/objc.d.ts.map +1 -1
- package/lib/dist/extraction/languages/objc.js +5 -16
- package/lib/dist/extraction/languages/objc.js.map +1 -1
- package/lib/dist/extraction/languages/pascal-preparse.d.ts +66 -0
- package/lib/dist/extraction/languages/pascal-preparse.d.ts.map +1 -0
- package/lib/dist/extraction/languages/pascal-preparse.js +958 -0
- package/lib/dist/extraction/languages/pascal-preparse.js.map +1 -0
- package/lib/dist/extraction/languages/pascal-system.d.ts +11 -0
- package/lib/dist/extraction/languages/pascal-system.d.ts.map +1 -0
- package/lib/dist/extraction/languages/pascal-system.js +23 -0
- package/lib/dist/extraction/languages/pascal-system.js.map +1 -0
- package/lib/dist/extraction/languages/pascal.d.ts.map +1 -1
- package/lib/dist/extraction/languages/pascal.js +3 -4
- package/lib/dist/extraction/languages/pascal.js.map +1 -1
- package/lib/dist/extraction/languages/php.d.ts +9 -0
- package/lib/dist/extraction/languages/php.d.ts.map +1 -1
- package/lib/dist/extraction/languages/php.js +207 -44
- package/lib/dist/extraction/languages/php.js.map +1 -1
- package/lib/dist/extraction/languages/python.js +2 -20
- package/lib/dist/extraction/languages/python.js.map +1 -1
- package/lib/dist/extraction/languages/r.js +8 -78
- package/lib/dist/extraction/languages/r.js.map +1 -1
- package/lib/dist/extraction/languages/ruby.d.ts.map +1 -1
- package/lib/dist/extraction/languages/ruby.js +17 -25
- package/lib/dist/extraction/languages/ruby.js.map +1 -1
- package/lib/dist/extraction/languages/rust-macro-calls.d.ts +32 -0
- package/lib/dist/extraction/languages/rust-macro-calls.d.ts.map +1 -0
- package/lib/dist/extraction/languages/rust-macro-calls.js +306 -0
- package/lib/dist/extraction/languages/rust-macro-calls.js.map +1 -0
- package/lib/dist/extraction/languages/rust.d.ts +10 -0
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
- package/lib/dist/extraction/languages/rust.js +15 -47
- package/lib/dist/extraction/languages/rust.js.map +1 -1
- package/lib/dist/extraction/languages/scala.js +5 -41
- package/lib/dist/extraction/languages/scala.js.map +1 -1
- package/lib/dist/extraction/languages/solidity.js +1 -82
- package/lib/dist/extraction/languages/solidity.js.map +1 -1
- package/lib/dist/extraction/languages/swift.js +3 -47
- package/lib/dist/extraction/languages/swift.js.map +1 -1
- package/lib/dist/extraction/languages/terraform.js +6 -152
- package/lib/dist/extraction/languages/terraform.js.map +1 -1
- package/lib/dist/extraction/languages/typescript.d.ts +64 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/typescript.js +73 -49
- package/lib/dist/extraction/languages/typescript.js.map +1 -1
- package/lib/dist/extraction/languages/vbnet.d.ts.map +1 -1
- package/lib/dist/extraction/languages/vbnet.js +9 -42
- package/lib/dist/extraction/languages/vbnet.js.map +1 -1
- package/lib/dist/extraction/lazy-frameworks.d.ts +15 -0
- package/lib/dist/extraction/lazy-frameworks.d.ts.map +1 -0
- package/lib/dist/extraction/lazy-frameworks.js +8 -0
- package/lib/dist/extraction/lazy-frameworks.js.map +1 -0
- package/lib/dist/extraction/liquid-extractor.d.ts +29 -3
- package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/liquid-extractor.js +89 -148
- package/lib/dist/extraction/liquid-extractor.js.map +1 -1
- package/lib/dist/extraction/mybatis-extractor.js +0 -78
- package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
- package/lib/dist/extraction/parse-budget.d.ts +42 -7
- package/lib/dist/extraction/parse-budget.d.ts.map +1 -1
- package/lib/dist/extraction/parse-budget.js +39 -15
- package/lib/dist/extraction/parse-budget.js.map +1 -1
- package/lib/dist/extraction/parse-pool.d.ts +29 -17
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +49 -193
- package/lib/dist/extraction/parse-pool.js.map +1 -1
- package/lib/dist/extraction/parse-worker.d.ts +1 -1
- package/lib/dist/extraction/parse-worker.d.ts.map +1 -1
- package/lib/dist/extraction/parse-worker.js +5 -58
- package/lib/dist/extraction/parse-worker.js.map +1 -1
- package/lib/dist/extraction/razor-extractor.d.ts +9 -0
- package/lib/dist/extraction/razor-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/razor-extractor.js +45 -69
- package/lib/dist/extraction/razor-extractor.js.map +1 -1
- package/lib/dist/extraction/razor-script.d.ts +23 -0
- package/lib/dist/extraction/razor-script.d.ts.map +1 -0
- package/lib/dist/extraction/razor-script.js +244 -0
- package/lib/dist/extraction/razor-script.js.map +1 -0
- package/lib/dist/extraction/sfc-script.d.ts +42 -0
- package/lib/dist/extraction/sfc-script.d.ts.map +1 -1
- package/lib/dist/extraction/sfc-script.js +32 -31
- package/lib/dist/extraction/sfc-script.js.map +1 -1
- package/lib/dist/extraction/store-worker.d.ts +1 -1
- package/lib/dist/extraction/store-worker.d.ts.map +1 -1
- package/lib/dist/extraction/store-worker.js +1 -38
- package/lib/dist/extraction/store-worker.js.map +1 -1
- package/lib/dist/extraction/store-writer.js +2 -34
- 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 +11 -87
- package/lib/dist/extraction/svelte-extractor.js.map +1 -1
- package/lib/dist/extraction/syntax-tokens.d.ts +6 -5
- package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -1
- package/lib/dist/extraction/syntax-tokens.js +4 -152
- package/lib/dist/extraction/syntax-tokens.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-helpers.d.ts +37 -1
- package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter-helpers.js +76 -68
- package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.d.ts +102 -22
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.js +0 -7
- package/lib/dist/extraction/tree-sitter-types.js.map +1 -1
- package/lib/dist/extraction/tree-sitter.d.ts +518 -10
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +2118 -2554
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/extraction/vue-extractor.d.ts +13 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/vue-extractor.js +52 -92
- package/lib/dist/extraction/vue-extractor.js.map +1 -1
- package/lib/dist/extraction/vue-options-api.js +0 -32
- package/lib/dist/extraction/vue-options-api.js.map +1 -1
- package/lib/dist/extraction/vue-template-calls.d.ts +37 -0
- package/lib/dist/extraction/vue-template-calls.d.ts.map +1 -0
- package/lib/dist/extraction/vue-template-calls.js +497 -0
- package/lib/dist/extraction/vue-template-calls.js.map +1 -0
- package/lib/dist/extraction/wasm/tree-sitter-dart.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-swift.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts +15 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -1
- package/lib/dist/extraction/wasm-runtime-flags.js +18 -89
- package/lib/dist/extraction/wasm-runtime-flags.js.map +1 -1
- package/lib/dist/file-limits.d.ts +8 -0
- package/lib/dist/file-limits.d.ts.map +1 -1
- package/lib/dist/file-limits.js +13 -28
- package/lib/dist/file-limits.js.map +1 -1
- package/lib/dist/graph/branch-guards.d.ts.map +1 -1
- package/lib/dist/graph/branch-guards.js +4 -251
- package/lib/dist/graph/branch-guards.js.map +1 -1
- package/lib/dist/graph/call-sites.d.ts +12 -0
- package/lib/dist/graph/call-sites.d.ts.map +1 -0
- package/lib/dist/graph/call-sites.js +17 -0
- package/lib/dist/graph/call-sites.js.map +1 -0
- package/lib/dist/graph/cobol-copybooks.d.ts +75 -0
- package/lib/dist/graph/cobol-copybooks.d.ts.map +1 -0
- package/lib/dist/graph/cobol-copybooks.js +45 -0
- package/lib/dist/graph/cobol-copybooks.js.map +1 -0
- package/lib/dist/graph/dead-code.d.ts +26 -4
- package/lib/dist/graph/dead-code.d.ts.map +1 -1
- package/lib/dist/graph/dead-code.js +157 -311
- package/lib/dist/graph/dead-code.js.map +1 -1
- package/lib/dist/graph/dynamic-boundary-report.js +1 -88
- package/lib/dist/graph/dynamic-boundary-report.js.map +1 -1
- package/lib/dist/graph/file-cycles.d.ts +20 -0
- package/lib/dist/graph/file-cycles.d.ts.map +1 -0
- package/lib/dist/graph/file-cycles.js +79 -0
- package/lib/dist/graph/file-cycles.js.map +1 -0
- package/lib/dist/graph/file-drift.d.ts +35 -0
- package/lib/dist/graph/file-drift.d.ts.map +1 -0
- package/lib/dist/graph/file-drift.js +46 -0
- package/lib/dist/graph/file-drift.js.map +1 -0
- package/lib/dist/graph/go-package.d.ts +27 -0
- package/lib/dist/graph/go-package.d.ts.map +1 -0
- package/lib/dist/graph/go-package.js +49 -0
- package/lib/dist/graph/go-package.js.map +1 -0
- package/lib/dist/graph/index.d.ts +2 -0
- package/lib/dist/graph/index.d.ts.map +1 -1
- package/lib/dist/graph/index.js +4 -6
- package/lib/dist/graph/index.js.map +1 -1
- package/lib/dist/graph/named-symbol-flow.d.ts +5 -1
- package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -1
- package/lib/dist/graph/named-symbol-flow.js +82 -223
- package/lib/dist/graph/named-symbol-flow.js.map +1 -1
- package/lib/dist/graph/owning-package.d.ts +59 -0
- package/lib/dist/graph/owning-package.d.ts.map +1 -0
- package/lib/dist/graph/owning-package.js +120 -0
- package/lib/dist/graph/owning-package.js.map +1 -0
- package/lib/dist/graph/queries.d.ts +6 -3
- package/lib/dist/graph/queries.d.ts.map +1 -1
- package/lib/dist/graph/queries.js +4 -137
- package/lib/dist/graph/queries.js.map +1 -1
- package/lib/dist/graph/symbol-lookup.d.ts +15 -3
- package/lib/dist/graph/symbol-lookup.d.ts.map +1 -1
- package/lib/dist/graph/symbol-lookup.js +47 -89
- package/lib/dist/graph/symbol-lookup.js.map +1 -1
- package/lib/dist/graph/symbol-references.d.ts +86 -0
- package/lib/dist/graph/symbol-references.d.ts.map +1 -0
- package/lib/dist/graph/symbol-references.js +304 -0
- package/lib/dist/graph/symbol-references.js.map +1 -0
- package/lib/dist/graph/synthesized-hop.d.ts +37 -0
- package/lib/dist/graph/synthesized-hop.d.ts.map +1 -0
- package/lib/dist/graph/synthesized-hop.js +62 -0
- package/lib/dist/graph/synthesized-hop.js.map +1 -0
- package/lib/dist/graph/test-code.d.ts +33 -0
- package/lib/dist/graph/test-code.d.ts.map +1 -0
- package/lib/dist/graph/test-code.js +104 -0
- package/lib/dist/graph/test-code.js.map +1 -0
- package/lib/dist/graph/traversal.d.ts +31 -2
- package/lib/dist/graph/traversal.d.ts.map +1 -1
- package/lib/dist/graph/traversal.js +96 -226
- package/lib/dist/graph/traversal.js.map +1 -1
- package/lib/dist/graph/type-hierarchy.js +0 -138
- package/lib/dist/graph/type-hierarchy.js.map +1 -1
- package/lib/dist/index.d.ts +214 -26
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +736 -1112
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/beta-signup.js +0 -39
- package/lib/dist/installer/beta-signup.js.map +1 -1
- package/lib/dist/installer/config-writer.js +0 -24
- package/lib/dist/installer/config-writer.js.map +1 -1
- package/lib/dist/installer/index.d.ts +13 -6
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +27 -160
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/instructions-template.d.ts +16 -1
- package/lib/dist/installer/instructions-template.d.ts.map +1 -1
- package/lib/dist/installer/instructions-template.js +10 -38
- package/lib/dist/installer/instructions-template.js.map +1 -1
- package/lib/dist/installer/targets/antigravity.js +0 -113
- package/lib/dist/installer/targets/antigravity.js.map +1 -1
- package/lib/dist/installer/targets/bob.d.ts +20 -0
- package/lib/dist/installer/targets/bob.d.ts.map +1 -0
- package/lib/dist/installer/targets/bob.js +83 -0
- package/lib/dist/installer/targets/bob.js.map +1 -0
- package/lib/dist/installer/targets/claude.d.ts.map +1 -1
- package/lib/dist/installer/targets/claude.js +1 -185
- package/lib/dist/installer/targets/claude.js.map +1 -1
- package/lib/dist/installer/targets/codex.d.ts.map +1 -1
- package/lib/dist/installer/targets/codex.js +17 -109
- 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 +2 -54
- package/lib/dist/installer/targets/copilot-cli.js.map +1 -1
- package/lib/dist/installer/targets/copilot-jetbrains.js +0 -57
- package/lib/dist/installer/targets/copilot-jetbrains.js.map +1 -1
- package/lib/dist/installer/targets/copilot-vscode.js +0 -58
- package/lib/dist/installer/targets/copilot-vscode.js.map +1 -1
- package/lib/dist/installer/targets/cursor.js +7 -88
- package/lib/dist/installer/targets/cursor.js.map +1 -1
- package/lib/dist/installer/targets/droid.d.ts +18 -0
- package/lib/dist/installer/targets/droid.d.ts.map +1 -0
- package/lib/dist/installer/targets/droid.js +92 -0
- package/lib/dist/installer/targets/droid.js.map +1 -0
- package/lib/dist/installer/targets/dsh.d.ts +35 -0
- package/lib/dist/installer/targets/dsh.d.ts.map +1 -0
- package/lib/dist/installer/targets/dsh.js +267 -0
- package/lib/dist/installer/targets/dsh.js.map +1 -0
- package/lib/dist/installer/targets/gemini.js +0 -37
- package/lib/dist/installer/targets/gemini.js.map +1 -1
- package/lib/dist/installer/targets/grok.d.ts +25 -0
- package/lib/dist/installer/targets/grok.d.ts.map +1 -0
- package/lib/dist/installer/targets/grok.js +96 -0
- package/lib/dist/installer/targets/grok.js.map +1 -0
- package/lib/dist/installer/targets/hermes.d.ts +19 -7
- package/lib/dist/installer/targets/hermes.d.ts.map +1 -1
- package/lib/dist/installer/targets/hermes.js +218 -214
- package/lib/dist/installer/targets/hermes.js.map +1 -1
- package/lib/dist/installer/targets/json-config.d.ts +45 -0
- package/lib/dist/installer/targets/json-config.d.ts.map +1 -0
- package/lib/dist/installer/targets/json-config.js +128 -0
- package/lib/dist/installer/targets/json-config.js.map +1 -0
- package/lib/dist/installer/targets/kimi.d.ts +21 -0
- package/lib/dist/installer/targets/kimi.d.ts.map +1 -0
- package/lib/dist/installer/targets/kimi.js +97 -0
- package/lib/dist/installer/targets/kimi.js.map +1 -0
- package/lib/dist/installer/targets/kiro.js +1 -41
- package/lib/dist/installer/targets/kiro.js.map +1 -1
- package/lib/dist/installer/targets/opencode.d.ts.map +1 -1
- package/lib/dist/installer/targets/opencode.js +1 -103
- package/lib/dist/installer/targets/opencode.js.map +1 -1
- package/lib/dist/installer/targets/pi.d.ts +24 -0
- package/lib/dist/installer/targets/pi.d.ts.map +1 -0
- package/lib/dist/installer/targets/pi.js +100 -0
- package/lib/dist/installer/targets/pi.js.map +1 -0
- package/lib/dist/installer/targets/qoder.d.ts +23 -0
- package/lib/dist/installer/targets/qoder.d.ts.map +1 -0
- package/lib/dist/installer/targets/qoder.js +83 -0
- package/lib/dist/installer/targets/qoder.js.map +1 -0
- package/lib/dist/installer/targets/qwen.d.ts +21 -0
- package/lib/dist/installer/targets/qwen.d.ts.map +1 -0
- package/lib/dist/installer/targets/qwen.js +115 -0
- package/lib/dist/installer/targets/qwen.js.map +1 -0
- package/lib/dist/installer/targets/registry.d.ts.map +1 -1
- package/lib/dist/installer/targets/registry.js +18 -25
- package/lib/dist/installer/targets/registry.js.map +1 -1
- package/lib/dist/installer/targets/shared.d.ts +83 -13
- package/lib/dist/installer/targets/shared.d.ts.map +1 -1
- package/lib/dist/installer/targets/shared.js +201 -131
- package/lib/dist/installer/targets/shared.js.map +1 -1
- package/lib/dist/installer/targets/toml.d.ts +82 -6
- package/lib/dist/installer/targets/toml.d.ts.map +1 -1
- package/lib/dist/installer/targets/toml.js +318 -112
- package/lib/dist/installer/targets/toml.js.map +1 -1
- package/lib/dist/installer/targets/types.d.ts +1 -1
- package/lib/dist/installer/targets/types.d.ts.map +1 -1
- package/lib/dist/installer/targets/types.js +0 -13
- package/lib/dist/installer/targets/types.js.map +1 -1
- package/lib/dist/installer/targets/windsurf.d.ts +22 -0
- package/lib/dist/installer/targets/windsurf.d.ts.map +1 -0
- package/lib/dist/installer/targets/windsurf.js +90 -0
- package/lib/dist/installer/targets/windsurf.js.map +1 -0
- package/lib/dist/lazy-engine.d.ts +22 -0
- package/lib/dist/lazy-engine.d.ts.map +1 -0
- package/lib/dist/lazy-engine.js +16 -0
- package/lib/dist/lazy-engine.js.map +1 -0
- package/lib/dist/mcp/answer-freshness.js +0 -6
- package/lib/dist/mcp/answer-freshness.js.map +1 -1
- package/lib/dist/mcp/daemon-manager.js +2 -23
- 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 +9 -85
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-proof.d.ts +19 -0
- package/lib/dist/mcp/daemon-proof.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-proof.js +126 -0
- package/lib/dist/mcp/daemon-proof.js.map +1 -0
- package/lib/dist/mcp/daemon-registry.d.ts +47 -2
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +188 -139
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +69 -0
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +186 -376
- package/lib/dist/mcp/daemon.js.map +1 -1
- package/lib/dist/mcp/dynamic-boundaries.js +4 -78
- package/lib/dist/mcp/dynamic-boundaries.js.map +1 -1
- package/lib/dist/mcp/early-ppid.js +0 -24
- package/lib/dist/mcp/early-ppid.js.map +1 -1
- package/lib/dist/mcp/engine.d.ts +24 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +47 -152
- package/lib/dist/mcp/engine.js.map +1 -1
- package/lib/dist/mcp/explore-dedup.js +0 -108
- package/lib/dist/mcp/explore-dedup.js.map +1 -1
- package/lib/dist/mcp/explore-diagnostics.d.ts +6 -0
- package/lib/dist/mcp/explore-diagnostics.d.ts.map +1 -1
- package/lib/dist/mcp/explore-diagnostics.js +8 -116
- package/lib/dist/mcp/explore-diagnostics.js.map +1 -1
- package/lib/dist/mcp/explore-one-symbol.d.ts +77 -0
- package/lib/dist/mcp/explore-one-symbol.d.ts.map +1 -0
- package/lib/dist/mcp/explore-one-symbol.js +431 -0
- package/lib/dist/mcp/explore-one-symbol.js.map +1 -0
- package/lib/dist/mcp/explore-session-state.js +0 -129
- package/lib/dist/mcp/explore-session-state.js.map +1 -1
- package/lib/dist/mcp/hook-client.d.ts +44 -0
- package/lib/dist/mcp/hook-client.d.ts.map +1 -0
- package/lib/dist/mcp/hook-client.js +202 -0
- package/lib/dist/mcp/hook-client.js.map +1 -0
- package/lib/dist/mcp/index-freshness-worker.js +1 -6
- package/lib/dist/mcp/index-freshness-worker.js.map +1 -1
- package/lib/dist/mcp/index-freshness.js +0 -15
- package/lib/dist/mcp/index-freshness.js.map +1 -1
- package/lib/dist/mcp/index-version-warning.d.ts +21 -0
- package/lib/dist/mcp/index-version-warning.d.ts.map +1 -0
- package/lib/dist/mcp/index-version-warning.js +38 -0
- package/lib/dist/mcp/index-version-warning.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +29 -1
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +131 -300
- package/lib/dist/mcp/index.js.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.d.ts +13 -3
- package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.js +106 -121
- package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
- package/lib/dist/mcp/opencode-tool-names.d.ts +32 -0
- package/lib/dist/mcp/opencode-tool-names.d.ts.map +1 -0
- package/lib/dist/mcp/opencode-tool-names.js +24 -0
- package/lib/dist/mcp/opencode-tool-names.js.map +1 -0
- package/lib/dist/mcp/ppid-watchdog.js +0 -24
- package/lib/dist/mcp/ppid-watchdog.js.map +1 -1
- package/lib/dist/mcp/process-identity.d.ts +42 -0
- package/lib/dist/mcp/process-identity.d.ts.map +1 -0
- package/lib/dist/mcp/process-identity.js +130 -0
- package/lib/dist/mcp/process-identity.js.map +1 -0
- package/lib/dist/mcp/project-lifecycle.d.ts +6 -0
- package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -1
- package/lib/dist/mcp/project-lifecycle.js +70 -19
- package/lib/dist/mcp/project-lifecycle.js.map +1 -1
- package/lib/dist/mcp/prompt-explore.d.ts +19 -0
- package/lib/dist/mcp/prompt-explore.d.ts.map +1 -0
- package/lib/dist/mcp/prompt-explore.js +6 -0
- package/lib/dist/mcp/prompt-explore.js.map +1 -0
- package/lib/dist/mcp/proxy.d.ts +25 -7
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +145 -274
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +52 -3
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +114 -123
- package/lib/dist/mcp/query-pool.js.map +1 -1
- package/lib/dist/mcp/query-worker.js +24 -36
- package/lib/dist/mcp/query-worker.js.map +1 -1
- package/lib/dist/mcp/server-instructions.d.ts +18 -0
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +12 -32
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/session.d.ts +46 -0
- package/lib/dist/mcp/session.d.ts.map +1 -1
- package/lib/dist/mcp/session.js +70 -132
- package/lib/dist/mcp/session.js.map +1 -1
- package/lib/dist/mcp/startup-handshake.js +1 -48
- package/lib/dist/mcp/startup-handshake.js.map +1 -1
- package/lib/dist/mcp/stdin-teardown.js +0 -28
- package/lib/dist/mcp/stdin-teardown.js.map +1 -1
- package/lib/dist/mcp/stdout-teardown.d.ts +26 -0
- package/lib/dist/mcp/stdout-teardown.d.ts.map +1 -0
- package/lib/dist/mcp/stdout-teardown.js +20 -0
- package/lib/dist/mcp/stdout-teardown.js.map +1 -0
- package/lib/dist/mcp/tools.d.ts +157 -18
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +797 -3621
- package/lib/dist/mcp/tools.js.map +1 -1
- package/lib/dist/mcp/transport.d.ts.map +1 -1
- package/lib/dist/mcp/transport.js +4 -96
- package/lib/dist/mcp/transport.js.map +1 -1
- package/lib/dist/mcp/version.d.ts +13 -1
- package/lib/dist/mcp/version.d.ts.map +1 -1
- package/lib/dist/mcp/version.js +19 -21
- package/lib/dist/mcp/version.js.map +1 -1
- package/lib/dist/mcp/writer-lock.d.ts +11 -0
- package/lib/dist/mcp/writer-lock.d.ts.map +1 -1
- package/lib/dist/mcp/writer-lock.js +49 -46
- package/lib/dist/mcp/writer-lock.js.map +1 -1
- package/lib/dist/project-config.d.ts +20 -0
- package/lib/dist/project-config.d.ts.map +1 -1
- package/lib/dist/project-config.js +31 -140
- package/lib/dist/project-config.js.map +1 -1
- package/lib/dist/resolution/alias-binding.d.ts +7 -0
- package/lib/dist/resolution/alias-binding.d.ts.map +1 -1
- package/lib/dist/resolution/alias-binding.js +7 -56
- package/lib/dist/resolution/alias-binding.js.map +1 -1
- package/lib/dist/resolution/ambient-modules.d.ts +185 -0
- package/lib/dist/resolution/ambient-modules.d.ts.map +1 -0
- package/lib/dist/resolution/ambient-modules.js +732 -0
- package/lib/dist/resolution/ambient-modules.js.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts +48 -1
- package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/angular-template-synthesizer.js +401 -65
- package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -1
- package/lib/dist/resolution/c-feature-variants.d.ts +40 -0
- package/lib/dist/resolution/c-feature-variants.d.ts.map +1 -0
- package/lib/dist/resolution/c-feature-variants.js +249 -0
- package/lib/dist/resolution/c-feature-variants.js.map +1 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/c-fnptr-synthesizer.js +23 -391
- package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -1
- package/lib/dist/resolution/c-macro-renames.d.ts +25 -0
- package/lib/dist/resolution/c-macro-renames.d.ts.map +1 -0
- package/lib/dist/resolution/c-macro-renames.js +95 -0
- package/lib/dist/resolution/c-macro-renames.js.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts +19 -5
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +1395 -1343
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
- package/lib/dist/resolution/const-alias-synthesizer.d.ts +48 -0
- package/lib/dist/resolution/const-alias-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/const-alias-synthesizer.js +234 -0
- package/lib/dist/resolution/const-alias-synthesizer.js.map +1 -0
- package/lib/dist/resolution/cooperative-yield.js +0 -27
- package/lib/dist/resolution/cooperative-yield.js.map +1 -1
- package/lib/dist/resolution/cpp-constructor.d.ts.map +1 -1
- package/lib/dist/resolution/cpp-constructor.js +15 -17
- package/lib/dist/resolution/cpp-constructor.js.map +1 -1
- package/lib/dist/resolution/cpp-includers.d.ts +46 -0
- package/lib/dist/resolution/cpp-includers.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-includers.js +153 -0
- package/lib/dist/resolution/cpp-includers.js.map +1 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts +16 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -1
- package/lib/dist/resolution/cpp-macro-visibility.js +17 -68
- package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -1
- package/lib/dist/resolution/cpp-namespaces.d.ts +54 -0
- package/lib/dist/resolution/cpp-namespaces.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-namespaces.js +151 -0
- package/lib/dist/resolution/cpp-namespaces.js.map +1 -0
- package/lib/dist/resolution/cpp-raw-strings.d.ts +33 -0
- package/lib/dist/resolution/cpp-raw-strings.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-raw-strings.js +167 -0
- package/lib/dist/resolution/cpp-raw-strings.js.map +1 -0
- package/lib/dist/resolution/cpp-supertypes.d.ts +118 -0
- package/lib/dist/resolution/cpp-supertypes.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-supertypes.js +322 -0
- package/lib/dist/resolution/cpp-supertypes.js.map +1 -0
- package/lib/dist/resolution/cpp-template-instantiations.d.ts +83 -0
- package/lib/dist/resolution/cpp-template-instantiations.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-template-instantiations.js +983 -0
- package/lib/dist/resolution/cpp-template-instantiations.js.map +1 -0
- package/lib/dist/resolution/cpp-type-aliases.d.ts +194 -0
- package/lib/dist/resolution/cpp-type-aliases.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-type-aliases.js +648 -0
- package/lib/dist/resolution/cpp-type-aliases.js.map +1 -0
- package/lib/dist/resolution/dart-libraries.d.ts +75 -0
- package/lib/dist/resolution/dart-libraries.d.ts.map +1 -0
- package/lib/dist/resolution/dart-libraries.js +721 -0
- package/lib/dist/resolution/dart-libraries.js.map +1 -0
- package/lib/dist/resolution/dart-local-scope.d.ts +41 -0
- package/lib/dist/resolution/dart-local-scope.d.ts.map +1 -0
- package/lib/dist/resolution/dart-local-scope.js +565 -0
- package/lib/dist/resolution/dart-local-scope.js.map +1 -0
- package/lib/dist/resolution/event-emitter-synthesizer.d.ts +39 -0
- package/lib/dist/resolution/event-emitter-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/event-emitter-synthesizer.js +656 -0
- package/lib/dist/resolution/event-emitter-synthesizer.js.map +1 -0
- package/lib/dist/resolution/expo-router-synthesizer.js +0 -52
- package/lib/dist/resolution/expo-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/angular-router.js +41 -208
- package/lib/dist/resolution/frameworks/angular-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/aspnet-routes.d.ts +62 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.js +382 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/astro.js +4 -60
- package/lib/dist/resolution/frameworks/astro.js.map +1 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts +18 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.js +65 -15
- package/lib/dist/resolution/frameworks/cargo-workspace.js.map +1 -1
- package/lib/dist/resolution/frameworks/cics.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/cics.js +7 -33
- package/lib/dist/resolution/frameworks/cics.js.map +1 -1
- package/lib/dist/resolution/frameworks/codeigniter.d.ts +23 -0
- package/lib/dist/resolution/frameworks/codeigniter.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/codeigniter.js +271 -0
- package/lib/dist/resolution/frameworks/codeigniter.js.map +1 -0
- package/lib/dist/resolution/frameworks/component-folder.d.ts +17 -0
- package/lib/dist/resolution/frameworks/component-folder.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/component-folder.js +11 -0
- package/lib/dist/resolution/frameworks/component-folder.js.map +1 -0
- package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/csharp.js +85 -102
- package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
- package/lib/dist/resolution/frameworks/drupal.d.ts +17 -8
- package/lib/dist/resolution/frameworks/drupal.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/drupal.js +377 -142
- package/lib/dist/resolution/frameworks/drupal.js.map +1 -1
- package/lib/dist/resolution/frameworks/elysia.d.ts +38 -0
- package/lib/dist/resolution/frameworks/elysia.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/elysia.js +683 -0
- package/lib/dist/resolution/frameworks/elysia.js.map +1 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.js +8 -88
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.js +9 -190
- package/lib/dist/resolution/frameworks/expo-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/express.d.ts +48 -1
- package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/express.js +193 -199
- package/lib/dist/resolution/frameworks/express.js.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.js +1 -104
- 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 +14 -43
- package/lib/dist/resolution/frameworks/go.js.map +1 -1
- package/lib/dist/resolution/frameworks/goframe.js +1 -55
- package/lib/dist/resolution/frameworks/goframe.js.map +1 -1
- package/lib/dist/resolution/frameworks/index.d.ts +14 -0
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +16 -50
- 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 +203 -129
- 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 +71 -136
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
- package/lib/dist/resolution/frameworks/name-heuristic.js +0 -12
- package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.js +2 -199
- package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
- package/lib/dist/resolution/frameworks/next-proxy.d.ts +67 -0
- package/lib/dist/resolution/frameworks/next-proxy.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/next-proxy.js +239 -0
- package/lib/dist/resolution/frameworks/next-proxy.js.map +1 -0
- package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/nextjs.js +10 -66
- package/lib/dist/resolution/frameworks/nextjs.js.map +1 -1
- package/lib/dist/resolution/frameworks/object-literal.js +0 -21
- package/lib/dist/resolution/frameworks/object-literal.js.map +1 -1
- package/lib/dist/resolution/frameworks/package-deps.d.ts +11 -7
- package/lib/dist/resolution/frameworks/package-deps.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/package-deps.js +35 -26
- package/lib/dist/resolution/frameworks/package-deps.js.map +1 -1
- package/lib/dist/resolution/frameworks/page-component.js +0 -14
- package/lib/dist/resolution/frameworks/page-component.js.map +1 -1
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/play.js +26 -34
- package/lib/dist/resolution/frameworks/play.js.map +1 -1
- package/lib/dist/resolution/frameworks/python.js +5 -102
- package/lib/dist/resolution/frameworks/python.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.js +1 -166
- package/lib/dist/resolution/frameworks/react-native.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.d.ts +13 -4
- package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.js +10 -82
- package/lib/dist/resolution/frameworks/react-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/react.d.ts +57 -0
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react.js +1449 -191
- package/lib/dist/resolution/frameworks/react.js.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.js +1 -61
- 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 +35 -56
- 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 +7 -75
- package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
- package/lib/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/sveltekit-router.js +8 -46
- package/lib/dist/resolution/frameworks/sveltekit-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/swift-objc.js +0 -97
- package/lib/dist/resolution/frameworks/swift-objc.js.map +1 -1
- package/lib/dist/resolution/frameworks/swift.js +0 -97
- package/lib/dist/resolution/frameworks/swift.js.map +1 -1
- package/lib/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/tanstack-router.js +9 -130
- package/lib/dist/resolution/frameworks/tanstack-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/terraform.js +1 -85
- package/lib/dist/resolution/frameworks/terraform.js.map +1 -1
- package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue-router.js +11 -134
- package/lib/dist/resolution/frameworks/vue-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue.js +42 -114
- package/lib/dist/resolution/frameworks/vue.js.map +1 -1
- package/lib/dist/resolution/go-func-field-synthesizer.d.ts +58 -0
- package/lib/dist/resolution/go-func-field-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/go-func-field-synthesizer.js +696 -0
- package/lib/dist/resolution/go-func-field-synthesizer.js.map +1 -0
- package/lib/dist/resolution/go-module.d.ts +23 -7
- package/lib/dist/resolution/go-module.d.ts.map +1 -1
- package/lib/dist/resolution/go-module.js +21 -24
- package/lib/dist/resolution/go-module.js.map +1 -1
- package/lib/dist/resolution/go-stdlib-methods.d.ts +9 -0
- package/lib/dist/resolution/go-stdlib-methods.d.ts.map +1 -0
- package/lib/dist/resolution/go-stdlib-methods.js +224 -0
- package/lib/dist/resolution/go-stdlib-methods.js.map +1 -0
- package/lib/dist/resolution/goframe-synthesizer.js +2 -53
- package/lib/dist/resolution/goframe-synthesizer.js.map +1 -1
- package/lib/dist/resolution/import-resolver.d.ts +278 -29
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +1825 -1396
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +517 -6
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +1604 -1042
- package/lib/dist/resolution/index.js.map +1 -1
- package/lib/dist/resolution/js-builtins.d.ts +23 -0
- package/lib/dist/resolution/js-builtins.d.ts.map +1 -1
- package/lib/dist/resolution/js-builtins.js +34 -14
- package/lib/dist/resolution/js-builtins.js.map +1 -1
- package/lib/dist/resolution/js-class-expressions.d.ts +48 -0
- package/lib/dist/resolution/js-class-expressions.d.ts.map +1 -0
- package/lib/dist/resolution/js-class-expressions.js +25 -0
- package/lib/dist/resolution/js-class-expressions.js.map +1 -0
- package/lib/dist/resolution/js-super-calls.d.ts +18 -0
- package/lib/dist/resolution/js-super-calls.d.ts.map +1 -0
- package/lib/dist/resolution/js-super-calls.js +94 -0
- package/lib/dist/resolution/js-super-calls.js.map +1 -0
- package/lib/dist/resolution/jsx-code.d.ts +28 -0
- package/lib/dist/resolution/jsx-code.d.ts.map +1 -0
- package/lib/dist/resolution/jsx-code.js +459 -0
- package/lib/dist/resolution/jsx-code.js.map +1 -0
- package/lib/dist/resolution/lru-cache.d.ts +5 -13
- package/lib/dist/resolution/lru-cache.d.ts.map +1 -1
- package/lib/dist/resolution/lru-cache.js +43 -32
- package/lib/dist/resolution/lru-cache.js.map +1 -1
- package/lib/dist/resolution/memory-budget.js +0 -52
- package/lib/dist/resolution/memory-budget.js.map +1 -1
- package/lib/dist/resolution/module-importers.d.ts +210 -0
- package/lib/dist/resolution/module-importers.d.ts.map +1 -0
- package/lib/dist/resolution/module-importers.js +673 -0
- package/lib/dist/resolution/module-importers.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +986 -7
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +24176 -6745
- package/lib/dist/resolution/name-matcher.js.map +1 -1
- package/lib/dist/resolution/next-router-synthesizer.d.ts +19 -0
- package/lib/dist/resolution/next-router-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/next-router-synthesizer.js +46 -28
- package/lib/dist/resolution/next-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/override-parameters.d.ts +40 -0
- package/lib/dist/resolution/override-parameters.d.ts.map +1 -0
- package/lib/dist/resolution/override-parameters.js +339 -0
- package/lib/dist/resolution/override-parameters.js.map +1 -0
- package/lib/dist/resolution/parameter-flow.d.ts +218 -0
- package/lib/dist/resolution/parameter-flow.d.ts.map +1 -0
- package/lib/dist/resolution/parameter-flow.js +474 -0
- package/lib/dist/resolution/parameter-flow.js.map +1 -0
- package/lib/dist/resolution/pascal-scope.d.ts +91 -0
- package/lib/dist/resolution/pascal-scope.d.ts.map +1 -0
- package/lib/dist/resolution/pascal-scope.js +961 -0
- package/lib/dist/resolution/pascal-scope.js.map +1 -0
- package/lib/dist/resolution/path-aliases.d.ts +32 -4
- package/lib/dist/resolution/path-aliases.d.ts.map +1 -1
- package/lib/dist/resolution/path-aliases.js +43 -110
- package/lib/dist/resolution/path-aliases.js.map +1 -1
- package/lib/dist/resolution/php-web-root.d.ts +39 -0
- package/lib/dist/resolution/php-web-root.d.ts.map +1 -0
- package/lib/dist/resolution/php-web-root.js +141 -0
- package/lib/dist/resolution/php-web-root.js.map +1 -0
- package/lib/dist/resolution/project-scans.d.ts +38 -0
- package/lib/dist/resolution/project-scans.d.ts.map +1 -0
- package/lib/dist/resolution/project-scans.js +30 -0
- package/lib/dist/resolution/project-scans.js.map +1 -0
- package/lib/dist/resolution/python-overloads.d.ts +10 -0
- package/lib/dist/resolution/python-overloads.d.ts.map +1 -0
- package/lib/dist/resolution/python-overloads.js +75 -0
- package/lib/dist/resolution/python-overloads.js.map +1 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/react-router-synthesizer.js +3 -55
- package/lib/dist/resolution/react-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/resolver-pool.d.ts +23 -2
- package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-pool.js +43 -111
- package/lib/dist/resolution/resolver-pool.js.map +1 -1
- package/lib/dist/resolution/resolver-worker.d.ts +1 -1
- package/lib/dist/resolution/resolver-worker.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-worker.js +8 -37
- package/lib/dist/resolution/resolver-worker.js.map +1 -1
- package/lib/dist/resolution/resurrect-ref.d.ts +25 -0
- package/lib/dist/resolution/resurrect-ref.d.ts.map +1 -0
- package/lib/dist/resolution/resurrect-ref.js +19 -0
- package/lib/dist/resolution/resurrect-ref.js.map +1 -0
- package/lib/dist/resolution/ruby-constant-paths.d.ts +56 -0
- package/lib/dist/resolution/ruby-constant-paths.d.ts.map +1 -0
- package/lib/dist/resolution/ruby-constant-paths.js +255 -0
- package/lib/dist/resolution/ruby-constant-paths.js.map +1 -0
- package/lib/dist/resolution/ruby-parameter-flow.d.ts +10 -0
- package/lib/dist/resolution/ruby-parameter-flow.d.ts.map +1 -0
- package/lib/dist/resolution/ruby-parameter-flow.js +801 -0
- package/lib/dist/resolution/ruby-parameter-flow.js.map +1 -0
- package/lib/dist/resolution/rust-scopes.d.ts +120 -0
- package/lib/dist/resolution/rust-scopes.d.ts.map +1 -0
- package/lib/dist/resolution/rust-scopes.js +730 -0
- package/lib/dist/resolution/rust-scopes.js.map +1 -0
- package/lib/dist/resolution/shopify-themes.d.ts +10 -0
- package/lib/dist/resolution/shopify-themes.d.ts.map +1 -0
- package/lib/dist/resolution/shopify-themes.js +19 -0
- package/lib/dist/resolution/shopify-themes.js.map +1 -0
- package/lib/dist/resolution/strip-comments.d.ts +20 -1
- package/lib/dist/resolution/strip-comments.d.ts.map +1 -1
- package/lib/dist/resolution/strip-comments.js +164 -119
- package/lib/dist/resolution/strip-comments.js.map +1 -1
- package/lib/dist/resolution/sveltekit-synthesizer.js +0 -64
- package/lib/dist/resolution/sveltekit-synthesizer.js.map +1 -1
- package/lib/dist/resolution/swift-objc-bridge.js +0 -160
- package/lib/dist/resolution/swift-objc-bridge.js.map +1 -1
- package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -1
- package/lib/dist/resolution/swift-type-visibility.js +62 -104
- package/lib/dist/resolution/swift-type-visibility.js.map +1 -1
- package/lib/dist/resolution/synth-utils.js +1 -22
- package/lib/dist/resolution/synth-utils.js.map +1 -1
- package/lib/dist/resolution/tanstack-router-synthesizer.js +0 -32
- package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/tauri-synthesizer.d.ts +37 -0
- package/lib/dist/resolution/tauri-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tauri-synthesizer.js +1038 -0
- package/lib/dist/resolution/tauri-synthesizer.js.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/tier-synthesizer.js +35 -177
- package/lib/dist/resolution/tier-synthesizer.js.map +1 -1
- package/lib/dist/resolution/type-parameters.d.ts +23 -0
- package/lib/dist/resolution/type-parameters.d.ts.map +1 -1
- package/lib/dist/resolution/type-parameters.js +52 -54
- package/lib/dist/resolution/type-parameters.js.map +1 -1
- package/lib/dist/resolution/types.d.ts +192 -11
- package/lib/dist/resolution/types.d.ts.map +1 -1
- package/lib/dist/resolution/types.js +0 -47
- package/lib/dist/resolution/types.js.map +1 -1
- package/lib/dist/resolution/vbnet-receivers.d.ts +92 -0
- package/lib/dist/resolution/vbnet-receivers.d.ts.map +1 -0
- package/lib/dist/resolution/vbnet-receivers.js +1482 -0
- package/lib/dist/resolution/vbnet-receivers.js.map +1 -0
- package/lib/dist/resolution/vue-router-synthesizer.js +0 -31
- package/lib/dist/resolution/vue-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/workspace-packages.d.ts +206 -15
- package/lib/dist/resolution/workspace-packages.d.ts.map +1 -1
- package/lib/dist/resolution/workspace-packages.js +573 -152
- package/lib/dist/resolution/workspace-packages.js.map +1 -1
- package/lib/dist/search/identifier-segments.js +2 -93
- package/lib/dist/search/identifier-segments.js.map +1 -1
- package/lib/dist/search/query-parser.js +0 -54
- package/lib/dist/search/query-parser.js.map +1 -1
- package/lib/dist/search/query-paths.js +0 -167
- package/lib/dist/search/query-paths.js.map +1 -1
- package/lib/dist/search/query-utils.d.ts +44 -0
- package/lib/dist/search/query-utils.d.ts.map +1 -1
- package/lib/dist/search/query-utils.js +120 -198
- package/lib/dist/search/query-utils.js.map +1 -1
- package/lib/dist/sync/git-hooks.d.ts +14 -5
- package/lib/dist/sync/git-hooks.d.ts.map +1 -1
- package/lib/dist/sync/git-hooks.js +118 -65
- package/lib/dist/sync/git-hooks.js.map +1 -1
- package/lib/dist/sync/index.js +0 -14
- package/lib/dist/sync/index.js.map +1 -1
- package/lib/dist/sync/watch-policy.js +0 -45
- package/lib/dist/sync/watch-policy.js.map +1 -1
- package/lib/dist/sync/watcher.d.ts +29 -11
- package/lib/dist/sync/watcher.d.ts.map +1 -1
- package/lib/dist/sync/watcher.js +83 -487
- package/lib/dist/sync/watcher.js.map +1 -1
- package/lib/dist/sync/worktree.d.ts +7 -2
- package/lib/dist/sync/worktree.d.ts.map +1 -1
- package/lib/dist/sync/worktree.js +24 -97
- package/lib/dist/sync/worktree.js.map +1 -1
- package/lib/dist/telemetry/index.d.ts.map +1 -1
- package/lib/dist/telemetry/index.js +15 -135
- package/lib/dist/telemetry/index.js.map +1 -1
- package/lib/dist/types.d.ts +46 -0
- package/lib/dist/types.d.ts.map +1 -1
- package/lib/dist/types.js +15 -44
- package/lib/dist/types.js.map +1 -1
- package/lib/dist/ui/color.js +0 -19
- package/lib/dist/ui/color.js.map +1 -1
- package/lib/dist/ui/glyphs.js +2 -45
- package/lib/dist/ui/glyphs.js.map +1 -1
- package/lib/dist/ui/shimmer-progress.js +0 -21
- package/lib/dist/ui/shimmer-progress.js.map +1 -1
- package/lib/dist/ui/shimmer-worker.js +0 -22
- package/lib/dist/ui/shimmer-worker.js.map +1 -1
- package/lib/dist/ui-server/api/deadcode.d.ts.map +1 -1
- package/lib/dist/ui-server/api/deadcode.js +2 -31
- package/lib/dist/ui-server/api/deadcode.js.map +1 -1
- package/lib/dist/ui-server/api/effects.js +0 -111
- package/lib/dist/ui-server/api/effects.js.map +1 -1
- package/lib/dist/ui-server/api/entrypoints.js +0 -142
- package/lib/dist/ui-server/api/entrypoints.js.map +1 -1
- package/lib/dist/ui-server/api/events.js +0 -145
- package/lib/dist/ui-server/api/events.js.map +1 -1
- package/lib/dist/ui-server/api/file.js +0 -80
- package/lib/dist/ui-server/api/file.js.map +1 -1
- package/lib/dist/ui-server/api/filecode.js +0 -95
- package/lib/dist/ui-server/api/filecode.js.map +1 -1
- package/lib/dist/ui-server/api/flow.js +0 -149
- package/lib/dist/ui-server/api/flow.js.map +1 -1
- package/lib/dist/ui-server/api/hierarchy.js +0 -28
- package/lib/dist/ui-server/api/hierarchy.js.map +1 -1
- package/lib/dist/ui-server/api/index.js +0 -88
- package/lib/dist/ui-server/api/index.js.map +1 -1
- package/lib/dist/ui-server/api/map.d.ts.map +1 -1
- package/lib/dist/ui-server/api/map.js +4 -317
- package/lib/dist/ui-server/api/map.js.map +1 -1
- package/lib/dist/ui-server/api/node.js +0 -111
- package/lib/dist/ui-server/api/node.js.map +1 -1
- package/lib/dist/ui-server/api/nodes.js +0 -16
- package/lib/dist/ui-server/api/nodes.js.map +1 -1
- package/lib/dist/ui-server/api/program.js +0 -90
- package/lib/dist/ui-server/api/program.js.map +1 -1
- package/lib/dist/ui-server/api/respond.js +0 -60
- package/lib/dist/ui-server/api/respond.js.map +1 -1
- package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -1
- package/lib/dist/ui-server/api/route-roots.js +2 -44
- package/lib/dist/ui-server/api/route-roots.js.map +1 -1
- package/lib/dist/ui-server/api/routes.d.ts.map +1 -1
- package/lib/dist/ui-server/api/routes.js +4 -60
- package/lib/dist/ui-server/api/routes.js.map +1 -1
- package/lib/dist/ui-server/api/screens.d.ts.map +1 -1
- package/lib/dist/ui-server/api/screens.js +4 -174
- package/lib/dist/ui-server/api/screens.js.map +1 -1
- package/lib/dist/ui-server/api/search.js +0 -62
- package/lib/dist/ui-server/api/search.js.map +1 -1
- package/lib/dist/ui-server/api/session.js +0 -58
- package/lib/dist/ui-server/api/session.js.map +1 -1
- package/lib/dist/ui-server/api/source.d.ts.map +1 -1
- package/lib/dist/ui-server/api/source.js +0 -161
- package/lib/dist/ui-server/api/source.js.map +1 -1
- package/lib/dist/ui-server/api/stats.js +0 -58
- package/lib/dist/ui-server/api/stats.js.map +1 -1
- package/lib/dist/ui-server/api/steps.d.ts.map +1 -1
- package/lib/dist/ui-server/api/steps.js +5 -381
- package/lib/dist/ui-server/api/steps.js.map +1 -1
- package/lib/dist/ui-server/api/trail-store.d.ts +3 -3
- package/lib/dist/ui-server/api/trail-store.d.ts.map +1 -1
- package/lib/dist/ui-server/api/trail-store.js +24 -106
- package/lib/dist/ui-server/api/trail-store.js.map +1 -1
- package/lib/dist/ui-server/api/trails.d.ts.map +1 -1
- package/lib/dist/ui-server/api/trails.js +19 -94
- package/lib/dist/ui-server/api/trails.js.map +1 -1
- package/lib/dist/ui-server/api/when.js +0 -36
- package/lib/dist/ui-server/api/when.js.map +1 -1
- package/lib/dist/ui-server/api/wire.js +0 -58
- package/lib/dist/ui-server/api/wire.js.map +1 -1
- package/lib/dist/ui-server/assets.js +0 -35
- package/lib/dist/ui-server/assets.js.map +1 -1
- package/lib/dist/ui-server/constants.js +0 -26
- package/lib/dist/ui-server/constants.js.map +1 -1
- package/lib/dist/ui-server/highlight/bounded-tokenize.js +0 -25
- package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -1
- package/lib/dist/ui-server/highlight/index.js +1 -132
- package/lib/dist/ui-server/highlight/index.js.map +1 -1
- package/lib/dist/ui-server/highlight/languages.d.ts +3 -3
- package/lib/dist/ui-server/highlight/languages.js +0 -31
- package/lib/dist/ui-server/highlight/languages.js.map +1 -1
- package/lib/dist/ui-server/highlight/tokenize-worker.js +0 -5
- package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -1
- package/lib/dist/ui-server/index.d.ts +25 -0
- package/lib/dist/ui-server/index.d.ts.map +1 -1
- package/lib/dist/ui-server/index.js +35 -103
- package/lib/dist/ui-server/index.js.map +1 -1
- package/lib/dist/ui-server/open-browser.js +0 -34
- package/lib/dist/ui-server/open-browser.js.map +1 -1
- package/lib/dist/ui-server/security.d.ts +5 -0
- package/lib/dist/ui-server/security.d.ts.map +1 -1
- package/lib/dist/ui-server/security.js +11 -147
- package/lib/dist/ui-server/security.js.map +1 -1
- package/lib/dist/ui-server/static.js +0 -41
- package/lib/dist/ui-server/static.js.map +1 -1
- package/lib/dist/upgrade/index.d.ts +18 -5
- package/lib/dist/upgrade/index.d.ts.map +1 -1
- package/lib/dist/upgrade/index.js +73 -229
- package/lib/dist/upgrade/index.js.map +1 -1
- package/lib/dist/upgrade/remove-binary.js +2 -67
- package/lib/dist/upgrade/remove-binary.js.map +1 -1
- package/lib/dist/upgrade/update-check.js +1 -81
- package/lib/dist/upgrade/update-check.js.map +1 -1
- package/lib/dist/utils.d.ts +69 -1
- package/lib/dist/utils.d.ts.map +1 -1
- package/lib/dist/utils.js +224 -266
- package/lib/dist/utils.js.map +1 -1
- package/lib/dist/worker-teardown.js +0 -47
- package/lib/dist/worker-teardown.js.map +1 -1
- package/lib/kernel/codegraph-kernel.node +2 -2
- package/lib/node_modules/.package-lock.json +4 -4
- package/lib/node_modules/ignore/README.md +138 -8
- package/lib/node_modules/ignore/index.d.ts +56 -20
- package/lib/node_modules/ignore/index.js +1033 -221
- package/lib/node_modules/ignore/legacy.js +871 -178
- package/lib/node_modules/ignore/package.json +10 -4
- package/lib/package.json +14 -8
- package/node.exe +2 -2
- package/package.json +1 -1
|
@@ -1,71 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Symbol Lookup — the single "what did the user mean by this name?" path.
|
|
4
|
-
*
|
|
5
|
-
* Every verb that takes a symbol NAME from a human (or an agent) has to turn
|
|
6
|
-
* that string into node(s). `codegraph_node` and `codegraph_explore` went
|
|
7
|
-
* through the matcher below; the `callers` / `callees` / `impact` CLI verbs
|
|
8
|
-
* carried their own ad-hoc filter instead:
|
|
9
|
-
*
|
|
10
|
-
* node.name === symbol || node.name.endsWith('.' + symbol)
|
|
11
|
-
*
|
|
12
|
-
* which compares the query against the BARE name only. That produced two
|
|
13
|
-
* opposite failures in the same repository:
|
|
14
|
-
*
|
|
15
|
-
* - a bare name over-reported: `callers group` silently merged the callers of
|
|
16
|
-
* every distinct symbol named `group` — in any language — into one list
|
|
17
|
-
* headed "Callers of group", with nothing saying they were different
|
|
18
|
-
* symbols;
|
|
19
|
-
* - a qualified name under-reported: `Foo.Bar.baz` can never equal a bare
|
|
20
|
-
* `baz`, so every candidate failed the filter and the code fell through to
|
|
21
|
-
* an arbitrary top-of-FTS hit — or reported "not found" for a symbol that
|
|
22
|
-
* plainly exists.
|
|
23
|
-
*
|
|
24
|
-
* Both are fixed by routing all of them through one resolver, which this module
|
|
25
|
-
* owns so the CLI and the MCP tools cannot drift apart again.
|
|
26
|
-
*/
|
|
27
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
3
|
exports.RUST_PATH_PREFIXES = void 0;
|
|
29
4
|
exports.isQualifiedSymbol = isQualifiedSymbol;
|
|
30
5
|
exports.lastQualifierPart = lastQualifierPart;
|
|
31
6
|
exports.matchesSymbol = matchesSymbol;
|
|
7
|
+
exports.qualifiedSymbolMatches = qualifiedSymbolMatches;
|
|
32
8
|
exports.groupDefinitions = groupDefinitions;
|
|
33
9
|
exports.lookupSymbolNodes = lookupSymbolNodes;
|
|
34
10
|
exports.describeSymbolNode = describeSymbolNode;
|
|
35
|
-
/** Rust path prefixes that name no directory (`crate::x`, `super::y`). */
|
|
36
11
|
exports.RUST_PATH_PREFIXES = new Set(['crate', 'super', 'self']);
|
|
37
|
-
/** Does this query carry any scope qualifier at all? */
|
|
38
12
|
function isQualifiedSymbol(symbol) {
|
|
39
13
|
return /[.\/]|::/.test(symbol);
|
|
40
14
|
}
|
|
41
|
-
/** The bare identifier at the end of a qualified query (arity spelling stripped). */
|
|
42
15
|
function lastQualifierPart(symbol) {
|
|
43
16
|
const noArity = symbol.replace(/\/\d{1,3}$/, '') || symbol;
|
|
44
17
|
const parts = noArity.split(/::|[./]/).filter((p) => p.length > 0);
|
|
45
18
|
return parts[parts.length - 1] ?? symbol;
|
|
46
19
|
}
|
|
47
|
-
/**
|
|
48
|
-
* Rewrite every scope separator to `.` so a query and a stored qualifiedName
|
|
49
|
-
* written in different conventions can be compared directly. The extractors
|
|
50
|
-
* join hierarchy with `::` while users type the language's own spelling
|
|
51
|
-
* (`Session.request`, `stage_apply::run`, `pkg/mod.Fn`).
|
|
52
|
-
*/
|
|
53
20
|
function canonicalScope(text) {
|
|
54
|
-
return text.replace(/::/g, '.').replace(
|
|
21
|
+
return text.replace(/::/g, '.').replace(/[/\\]/g, '.');
|
|
55
22
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
* qualifiedName under both separator conventions, then — for languages whose
|
|
61
|
-
* hierarchy lives in the file path rather than the name (Rust modules, Python
|
|
62
|
-
* packages) — against the path.
|
|
63
|
-
*/
|
|
64
|
-
function matchesSymbol(node, symbol) {
|
|
65
|
-
// Erlang arity spelling (`fn/3`, `mod:fn/3`): when the node's qualifiedName
|
|
66
|
-
// carries an arity (#1610) the written arity must match exactly, and the rest
|
|
67
|
-
// of the comparison runs on the arity-less spelling. A node with no arity
|
|
68
|
-
// keeps the original symbol (a `/` there means a path-ish name instead).
|
|
23
|
+
const ARITY_SUFFIX = /\/\d{1,3}$/;
|
|
24
|
+
const PATH_MODULE_LANGUAGES = new Set(['rust', 'python', 'go']);
|
|
25
|
+
const TYPE_MEMBER_KINDS = new Set(['method', 'property', 'field', 'enum_member']);
|
|
26
|
+
function matchesSymbol(node, symbol, goPackageOf) {
|
|
69
27
|
const aritySpelling = /^(.+)\/(\d{1,3})$/.exec(symbol);
|
|
70
28
|
if (aritySpelling) {
|
|
71
29
|
const nodeArity = /\/(\d{1,3})$/.exec(node.qualifiedName ?? '')?.[1];
|
|
@@ -77,7 +35,6 @@ function matchesSymbol(node, symbol) {
|
|
|
77
35
|
}
|
|
78
36
|
if (node.name === symbol)
|
|
79
37
|
return true;
|
|
80
|
-
// File basename match ("product-card" matches "product-card.liquid").
|
|
81
38
|
if (node.kind === 'file' && node.name.replace(/\.[^.]+$/, '') === symbol)
|
|
82
39
|
return true;
|
|
83
40
|
if (!isQualifiedSymbol(symbol))
|
|
@@ -88,38 +45,53 @@ function matchesSymbol(node, symbol) {
|
|
|
88
45
|
const lastPart = parts[parts.length - 1];
|
|
89
46
|
if (node.name !== lastPart)
|
|
90
47
|
return false;
|
|
91
|
-
// Stage 1: qualified-name containment under the extractor's `::` convention.
|
|
92
|
-
if (node.qualifiedName.includes(parts.join('::')))
|
|
93
|
-
return true;
|
|
94
|
-
// Stage 1b: boundary-aligned suffix under a canonical separator.
|
|
95
|
-
//
|
|
96
|
-
// Splitting on EVERY separator assumes no scope component contains one —
|
|
97
|
-
// false for any language whose module names are themselves dotted (Elixir
|
|
98
|
-
// `AppWeb.Format`, a Java/C# package, a Python dotted module). There the
|
|
99
|
-
// stored qualifiedName is `AppWeb.Format::group`, so the stage-1 spelling
|
|
100
|
-
// `AppWeb::Format::group` cannot match and a perfectly precise query
|
|
101
|
-
// resolved to nothing. Canonicalising both sides and requiring the match to
|
|
102
|
-
// land on a separator boundary handles both conventions with one rule, and
|
|
103
|
-
// is strictly tighter than the `includes` above.
|
|
104
48
|
const canonicalQuery = canonicalScope(symbol);
|
|
105
|
-
const canonicalNode = canonicalScope(node.qualifiedName);
|
|
49
|
+
const canonicalNode = canonicalScope(node.qualifiedName.replace(ARITY_SUFFIX, ''));
|
|
106
50
|
if (canonicalNode === canonicalQuery || canonicalNode.endsWith(`.${canonicalQuery}`)) {
|
|
107
51
|
return true;
|
|
108
52
|
}
|
|
109
|
-
// Stage 2: file-path containment. Rust modules and Python packages are not in
|
|
110
|
-
// qualifiedName — they are encoded in the path — so `stage_apply::run`
|
|
111
|
-
// matches a `run` in any file with a `stage_apply` path segment.
|
|
112
53
|
const containerHints = parts.slice(0, -1).filter((p) => !exports.RUST_PATH_PREFIXES.has(p));
|
|
113
54
|
if (containerHints.length === 0)
|
|
114
55
|
return false;
|
|
115
56
|
const segments = node.filePath.split('/').filter((s) => s.length > 0);
|
|
116
|
-
|
|
57
|
+
const inPath = (hint) => segments.some((seg) => seg === hint || seg.replace(/\.[^.]+$/, '') === hint);
|
|
58
|
+
const scope = canonicalNode.split('.').slice(0, -1);
|
|
59
|
+
const pathCanName = !TYPE_MEMBER_KINDS.has(node.kind) ||
|
|
60
|
+
PATH_MODULE_LANGUAGES.has(node.language) ||
|
|
61
|
+
scope.length === 0 ||
|
|
62
|
+
scope[scope.length - 1] === containerHints[containerHints.length - 1];
|
|
63
|
+
if (pathCanName && containerHints.every(inPath))
|
|
64
|
+
return true;
|
|
65
|
+
const splits = [];
|
|
66
|
+
for (let k = 1; k < containerHints.length; k++) {
|
|
67
|
+
const inner = containerHints.slice(k);
|
|
68
|
+
const offset = scope.length - inner.length;
|
|
69
|
+
if (offset < 0 || !inner.every((hint, i) => scope[offset + i] === hint))
|
|
70
|
+
continue;
|
|
71
|
+
if (containerHints.slice(0, k).every(inPath))
|
|
72
|
+
return true;
|
|
73
|
+
splits.push(k);
|
|
74
|
+
}
|
|
75
|
+
if (node.language !== 'go' || !goPackageOf || (scope.length > 0 && splits.length === 0))
|
|
76
|
+
return false;
|
|
77
|
+
const declared = goPackageOf(node.filePath);
|
|
78
|
+
if (!declared)
|
|
79
|
+
return false;
|
|
80
|
+
const namesPackage = (hint) => hint === declared || inPath(hint);
|
|
81
|
+
if (scope.length === 0 && containerHints.every(namesPackage))
|
|
82
|
+
return true;
|
|
83
|
+
return splits.some((k) => containerHints.slice(0, k).every(namesPackage));
|
|
84
|
+
}
|
|
85
|
+
function qualifiedSymbolMatches(cg, symbol, goPackageOf) {
|
|
86
|
+
const tail = lastQualifierPart(symbol);
|
|
87
|
+
let hits = cg.searchNodes(symbol, { limit: 50 });
|
|
88
|
+
if (hits.length === 0 && tail && tail !== symbol)
|
|
89
|
+
hits = cg.searchNodes(tail, { limit: 50 });
|
|
90
|
+
const ranked = hits.map((h) => h.node).filter((n) => matchesSymbol(n, symbol, goPackageOf));
|
|
91
|
+
if (ranked.length > 0 || !tail)
|
|
92
|
+
return ranked;
|
|
93
|
+
return cg.getNodesByName(tail).filter((n) => matchesSymbol(n, symbol, goPackageOf));
|
|
117
94
|
}
|
|
118
|
-
/**
|
|
119
|
-
* One group per (filePath, qualifiedName): same-file overloads stay together,
|
|
120
|
-
* while unrelated definitions keep their own edges. Shared by CLI and MCP.
|
|
121
|
-
* A non-matching file hint keeps all definitions and must be disclosed.
|
|
122
|
-
*/
|
|
123
95
|
function groupDefinitions(nodes, fileFilter) {
|
|
124
96
|
let pool = nodes;
|
|
125
97
|
let filteredOut = false;
|
|
@@ -142,39 +114,25 @@ function groupDefinitions(nodes, fileFilter) {
|
|
|
142
114
|
}
|
|
143
115
|
return { groups: [...byDef.values()], filteredOut };
|
|
144
116
|
}
|
|
145
|
-
|
|
146
|
-
* Resolve a user-supplied symbol name to the definitions it names.
|
|
147
|
-
*
|
|
148
|
-
* The exact-name index is consulted FIRST and is authoritative: it is complete
|
|
149
|
-
* and uncapped, whereas FTS ranks and truncates, and tokenises away `::` — so
|
|
150
|
-
* a qualified query could miss a symbol that exists, or land on whatever
|
|
151
|
-
* happened to rank first. FTS candidates still have to satisfy the matcher;
|
|
152
|
-
* partial or mistyped names must never select the top fuzzy hit (#1473).
|
|
153
|
-
*/
|
|
154
|
-
function lookupSymbolNodes(cg, symbol) {
|
|
117
|
+
function lookupSymbolNodes(cg, symbol, goPackageOf) {
|
|
155
118
|
const qualified = isQualifiedSymbol(symbol);
|
|
156
|
-
// Exact-name index, then filter by the qualifier the user actually wrote.
|
|
157
119
|
const tail = qualified ? lastQualifierPart(symbol) : symbol;
|
|
158
120
|
let nodes = tail ? cg.getNodesByName(tail) : [];
|
|
159
121
|
if (qualified)
|
|
160
|
-
nodes = nodes.filter((n) => matchesSymbol(n, symbol));
|
|
122
|
+
nodes = nodes.filter((n) => matchesSymbol(n, symbol, goPackageOf));
|
|
161
123
|
if (nodes.length === 0) {
|
|
162
124
|
const hits = cg.searchNodes(symbol, { limit: 50 }).map((h) => h.node);
|
|
163
|
-
const exact = hits.filter((n) => matchesSymbol(n, symbol));
|
|
125
|
+
const exact = hits.filter((n) => matchesSymbol(n, symbol, goPackageOf));
|
|
164
126
|
if (exact.length > 0) {
|
|
165
127
|
nodes = exact;
|
|
166
128
|
}
|
|
167
|
-
// Any query with no exact match resolves to NOTHING rather than a
|
|
168
|
-
// misleading fuzzy hit (#1473; qualified lookups already did this in #173).
|
|
169
129
|
}
|
|
170
130
|
if (nodes.length === 0)
|
|
171
131
|
return { nodes: [], ambiguous: false };
|
|
172
|
-
// Keepers before generated stubs (.pb.go and friends), stable otherwise.
|
|
173
132
|
const isGenerated = cg.generatedFilePredicate(nodes.map((n) => n.filePath));
|
|
174
133
|
const ranked = [...nodes].sort((a, b) => (isGenerated(a.filePath) ? 1 : 0) - (isGenerated(b.filePath) ? 1 : 0));
|
|
175
134
|
return { nodes: ranked, ambiguous: groupDefinitions(ranked).groups.length > 1 };
|
|
176
135
|
}
|
|
177
|
-
/** One-line "kind at path:line" label used when disclosing an ambiguous query. */
|
|
178
136
|
function describeSymbolNode(node) {
|
|
179
137
|
return `${node.kind} ${node.qualifiedName || node.name} (${node.language}) — ${node.filePath}:${node.startLine}`;
|
|
180
138
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"symbol-lookup.js","sourceRoot":"","sources":["../../src/graph/symbol-lookup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"symbol-lookup.js","sourceRoot":"","sources":["../../src/graph/symbol-lookup.ts"],"names":[],"mappings":";;;AAiCA,8CAEC;AAGD,8CAIC;AAoCD,sCA0FC;AAUD,wDAaC;AAyBD,4CAsBC;AAWD,8CA8BC;AAGD,gDAEC;AA9PY,QAAA,kBAAkB,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AAGtE,SAAgB,iBAAiB,CAAC,MAAc;IAC9C,OAAO,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC;AAGD,SAAgB,iBAAiB,CAAC,MAAc;IAC9C,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC;IAC3D,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACnE,OAAO,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM,CAAC;AAC3C,CAAC;AASD,SAAS,cAAc,CAAC,IAAY;IAClC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;AACzD,CAAC;AAGD,MAAM,YAAY,GAAG,YAAY,CAAC;AAOlC,MAAM,qBAAqB,GAAG,IAAI,GAAG,C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C,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAChF,CAAC;IACF,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;AAClF,CAAC;AAGD,SAAgB,kBAAkB,CAAC,IAAU;IAC3C,OAAO,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,QAAQ,OAAO,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;AACnH,CAAC"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every place the code refers to one definition, line by line: what an agent
|
|
3
|
+
* asking "who calls X", "what uses X" or "what breaks if X changes" would
|
|
4
|
+
* otherwise grep for and then open each hit to name its function (#3407).
|
|
5
|
+
*
|
|
6
|
+
* Built from the index's edges. Some lines come from elsewhere:
|
|
7
|
+
* - an edge that carries no line (a `references` edge names its symbol, not
|
|
8
|
+
* the spot) is placed by finding the name inside the referring symbol;
|
|
9
|
+
* - a file that imports the name is read for the uses no edge records (a
|
|
10
|
+
* constant used inside a function the extractor linked only by the import);
|
|
11
|
+
* - a reference the resolver gave up on but that is written with the
|
|
12
|
+
* definition's own package, module or class in front (`binding.Query` for
|
|
13
|
+
* gin's `Query` in package `binding`) is this definition too.
|
|
14
|
+
* Each site is credited to the innermost symbol around it. References with the
|
|
15
|
+
* name that can't be pinned to this definition are returned apart.
|
|
16
|
+
*
|
|
17
|
+
* Read-only and query-time: nothing here writes the index.
|
|
18
|
+
*/
|
|
19
|
+
import type CodeGraph from '../index';
|
|
20
|
+
import type { Edge, Node, NodeKind, UnresolvedReference } from '../types';
|
|
21
|
+
/** How a site depends on the definition, in the order an answer lists them. */
|
|
22
|
+
export type ReferenceRelation = 'extends' | 'implements' | 'overrides' | 'instantiates' | 'calls' | 'uses' | 'exports' | 'imports';
|
|
23
|
+
export declare const REFERENCE_RELATION_ORDER: readonly ReferenceRelation[];
|
|
24
|
+
/** One line of code that depends on the definition. */
|
|
25
|
+
export interface ReferenceSite {
|
|
26
|
+
relation: ReferenceRelation;
|
|
27
|
+
filePath: string;
|
|
28
|
+
/** 1-based line of the site; 0 when neither the edge nor the source places it. */
|
|
29
|
+
line: number;
|
|
30
|
+
/** The innermost symbol holding the site; null at file level. */
|
|
31
|
+
owner: Node | null;
|
|
32
|
+
/** The edge that links the site; absent for a use found in the source or by its written name. */
|
|
33
|
+
edge?: Edge;
|
|
34
|
+
}
|
|
35
|
+
export interface SymbolReferences {
|
|
36
|
+
/** One site per line, in relation order, then by file and line. */
|
|
37
|
+
sites: ReferenceSite[];
|
|
38
|
+
/**
|
|
39
|
+
* References with the definition's name that the resolver could not tie to
|
|
40
|
+
* any definition (`h.ServeHTTP()` on an interface value) and that aren't
|
|
41
|
+
* written as this one's, at most `unlinkedLimit` of them.
|
|
42
|
+
*/
|
|
43
|
+
unlinked: UnresolvedReference[];
|
|
44
|
+
/** How many such references the index holds in all. */
|
|
45
|
+
unlinkedTotal: number;
|
|
46
|
+
}
|
|
47
|
+
export interface ReferenceReadOptions {
|
|
48
|
+
/**
|
|
49
|
+
* A file's lines, or null when it can't be read or its indexed line numbers
|
|
50
|
+
* can't be trusted (changed on disk since indexing). The caller caches.
|
|
51
|
+
*/
|
|
52
|
+
readLines: (filePath: string) => readonly string[] | null;
|
|
53
|
+
/** Most unlinked same-name references to return; 0 skips that list. */
|
|
54
|
+
unlinkedLimit: number;
|
|
55
|
+
/**
|
|
56
|
+
* Most importing files read for uses no edge records. Past it, an importing
|
|
57
|
+
* file contributes its import line and its linked sites only.
|
|
58
|
+
*/
|
|
59
|
+
maxScannedFiles: number;
|
|
60
|
+
}
|
|
61
|
+
/** Containers whose children are members: a member's name is not unique to it. */
|
|
62
|
+
export declare const MEMBER_CONTAINER_KINDS: ReadonlySet<NodeKind>;
|
|
63
|
+
/** `name` as a whole word: not inside a longer identifier, in any script. */
|
|
64
|
+
export declare function wholeNamePattern(name: string): RegExp;
|
|
65
|
+
/**
|
|
66
|
+
* The innermost symbol of `nodes` (one file's) whose span holds `line`, or
|
|
67
|
+
* null at file level. The narrowest span wins; on a tie, the later start (the
|
|
68
|
+
* nested one).
|
|
69
|
+
*/
|
|
70
|
+
export declare function innermostOwner(nodes: readonly Node[], line: number): Node | null;
|
|
71
|
+
/** The class-like symbol `def` is a member of, or null for a top-level definition. */
|
|
72
|
+
export declare function memberContainer(cg: CodeGraph, def: Node, incoming?: readonly Edge[]): Node | null;
|
|
73
|
+
/**
|
|
74
|
+
* What code writes in front of `def`'s name to mean it, and nothing else, from
|
|
75
|
+
* elsewhere: a member's class (`BaseModelAdmin.to_field_allowed`), or a Go
|
|
76
|
+
* top-level name's package (`binding.Query`, by the file's `package` clause).
|
|
77
|
+
* A module name is left out: `config.get(…)` is as often a dict that happens to
|
|
78
|
+
* be called `config`, and an import-qualified use of a module resolves anyway.
|
|
79
|
+
*/
|
|
80
|
+
export declare function homeQualifiers(cg: CodeGraph, def: Node, container: Node | null): string[];
|
|
81
|
+
/**
|
|
82
|
+
* Every site that refers to `def`. See the module comment for where the lines
|
|
83
|
+
* come from.
|
|
84
|
+
*/
|
|
85
|
+
export declare function collectReferenceSites(cg: CodeGraph, def: Node, opts: ReferenceReadOptions): SymbolReferences;
|
|
86
|
+
//# sourceMappingURL=symbol-references.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol-references.d.ts","sourceRoot":"","sources":["../../src/graph/symbol-references.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,SAAS,MAAM,UAAU,CAAC;AACtC,OAAO,KAAK,EAAE,IAAI,EAAY,IAAI,EAAE,QAAQ,EAAE,mBAAmB,EAA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GAAG,EAAE,IAAI,EAAE,QAAQ,CAAC,EAAE,SAAS,IAAI,EAAE,GAAG,IAAI,GAAG,IAAI,CAQjG;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,EAAE,CAKzF;AAOD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,oBAAoB,GAAG,gBAAgB,CA+I5G"}
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MEMBER_CONTAINER_KINDS = exports.REFERENCE_RELATION_ORDER = void 0;
|
|
4
|
+
exports.wholeNamePattern = wholeNamePattern;
|
|
5
|
+
exports.innermostOwner = innermostOwner;
|
|
6
|
+
exports.memberContainer = memberContainer;
|
|
7
|
+
exports.homeQualifiers = homeQualifiers;
|
|
8
|
+
exports.collectReferenceSites = collectReferenceSites;
|
|
9
|
+
const go_package_1 = require("./go-package");
|
|
10
|
+
exports.REFERENCE_RELATION_ORDER = [
|
|
11
|
+
'extends', 'implements', 'overrides', 'instantiates', 'calls', 'uses', 'exports', 'imports',
|
|
12
|
+
];
|
|
13
|
+
const RELATION_OF = {
|
|
14
|
+
extends: 'extends',
|
|
15
|
+
implements: 'implements',
|
|
16
|
+
overrides: 'overrides',
|
|
17
|
+
instantiates: 'instantiates',
|
|
18
|
+
calls: 'calls',
|
|
19
|
+
references: 'uses',
|
|
20
|
+
type_of: 'uses',
|
|
21
|
+
returns: 'uses',
|
|
22
|
+
decorates: 'uses',
|
|
23
|
+
navigates: 'uses',
|
|
24
|
+
exports: 'exports',
|
|
25
|
+
imports: 'imports',
|
|
26
|
+
};
|
|
27
|
+
const OWNER_KINDS = new Set([
|
|
28
|
+
'function', 'method', 'component', 'class', 'struct', 'interface', 'trait', 'protocol',
|
|
29
|
+
'enum', 'union', 'module', 'namespace', 'variable', 'constant', 'property', 'field',
|
|
30
|
+
'type_alias', 'route',
|
|
31
|
+
]);
|
|
32
|
+
exports.MEMBER_CONTAINER_KINDS = new Set([
|
|
33
|
+
'class', 'struct', 'interface', 'trait', 'protocol', 'enum', 'union',
|
|
34
|
+
]);
|
|
35
|
+
const MAX_UNLINKED_READ = 400;
|
|
36
|
+
const BODY_SCANNED_KINDS = new Set([
|
|
37
|
+
'function', 'method', 'component', 'variable', 'constant', 'property', 'field',
|
|
38
|
+
]);
|
|
39
|
+
const BODY_SCANNED_RELATIONS = new Set(['calls', 'uses', 'instantiates']);
|
|
40
|
+
const MAX_BODIES_SCANNED = 100;
|
|
41
|
+
const C_STYLE = { line: ['//'], block: [['/*', '*/']], quotes: ['"', "'"] };
|
|
42
|
+
const C_STYLE_TRIPLE = { ...C_STYLE, block: [['/*', '*/'], ['"""', '"""']] };
|
|
43
|
+
const SYNTAX = {
|
|
44
|
+
typescript: C_STYLE, javascript: C_STYLE, tsx: C_STYLE, jsx: C_STYLE, arkts: C_STYLE,
|
|
45
|
+
java: C_STYLE_TRIPLE, kotlin: C_STYLE_TRIPLE, scala: C_STYLE_TRIPLE, swift: C_STYLE_TRIPLE, dart: C_STYLE_TRIPLE,
|
|
46
|
+
c: C_STYLE, cpp: C_STYLE, objc: C_STYLE, csharp: C_STYLE, solidity: C_STYLE, cfscript: C_STYLE,
|
|
47
|
+
go: { line: ['//'], block: [['/*', '*/']], quotes: ['"', "'", '`'] },
|
|
48
|
+
rust: { line: ['//'], block: [['/*', '*/']], quotes: ['"'] },
|
|
49
|
+
php: { line: ['//', '#'], block: [['/*', '*/']], quotes: ['"', "'"] },
|
|
50
|
+
python: { line: ['#'], block: [['"""', '"""'], ["'''", "'''"]], quotes: ['"', "'"] },
|
|
51
|
+
ruby: { line: ['#'], block: [['=begin', '=end']], quotes: ['"', "'"] },
|
|
52
|
+
r: { line: ['#'], block: [], quotes: ['"', "'"] },
|
|
53
|
+
nix: { line: ['#'], block: [['/*', '*/']], quotes: ['"'] },
|
|
54
|
+
terraform: { line: ['#', '//'], block: [['/*', '*/']], quotes: ['"'] },
|
|
55
|
+
lua: { line: ['--'], block: [['--[[', ']]']], quotes: ['"', "'"] },
|
|
56
|
+
luau: { line: ['--'], block: [['--[[', ']]']], quotes: ['"', "'"] },
|
|
57
|
+
erlang: { line: ['%'], block: [], quotes: ['"'] },
|
|
58
|
+
vbnet: { line: ["'"], block: [], quotes: ['"'] },
|
|
59
|
+
vue: { line: ['//'], block: [['/*', '*/'], ['<!--', '-->']], quotes: [] },
|
|
60
|
+
svelte: { line: ['//'], block: [['/*', '*/'], ['<!--', '-->']], quotes: [] },
|
|
61
|
+
astro: { line: ['//'], block: [['/*', '*/'], ['<!--', '-->']], quotes: [] },
|
|
62
|
+
};
|
|
63
|
+
function codeMentionLines(lines, from, to, pattern, language) {
|
|
64
|
+
const syntax = language ? SYNTAX[language] : undefined;
|
|
65
|
+
const found = [];
|
|
66
|
+
const state = { close: null };
|
|
67
|
+
for (let ln = Math.max(1, from); ln <= Math.min(to, lines.length); ln++) {
|
|
68
|
+
const text = lines[ln - 1];
|
|
69
|
+
if (!syntax) {
|
|
70
|
+
if (pattern.test(text))
|
|
71
|
+
found.push(ln);
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
if (!pattern.test(text) && state.close === null && !syntax.block.some(([open]) => text.includes(open)))
|
|
75
|
+
continue;
|
|
76
|
+
if (pattern.test(codeOf(text, syntax, state)))
|
|
77
|
+
found.push(ln);
|
|
78
|
+
}
|
|
79
|
+
return found;
|
|
80
|
+
}
|
|
81
|
+
function codeOf(line, syntax, state) {
|
|
82
|
+
let out = '';
|
|
83
|
+
let i = 0;
|
|
84
|
+
scan: while (i < line.length) {
|
|
85
|
+
if (state.close !== null) {
|
|
86
|
+
const end = line.indexOf(state.close, i);
|
|
87
|
+
if (end < 0)
|
|
88
|
+
return out;
|
|
89
|
+
i = end + state.close.length;
|
|
90
|
+
state.close = null;
|
|
91
|
+
out += ' ';
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
for (const [open, close] of syntax.block) {
|
|
95
|
+
if (line.startsWith(open, i)) {
|
|
96
|
+
state.close = close;
|
|
97
|
+
i += open.length;
|
|
98
|
+
continue scan;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
for (const opener of syntax.line)
|
|
102
|
+
if (line.startsWith(opener, i))
|
|
103
|
+
return out;
|
|
104
|
+
const ch = line[i];
|
|
105
|
+
if (syntax.quotes.includes(ch)) {
|
|
106
|
+
let j = i + 1;
|
|
107
|
+
while (j < line.length && line[j] !== ch)
|
|
108
|
+
j += line[j] === '\\' ? 2 : 1;
|
|
109
|
+
if (j >= line.length)
|
|
110
|
+
return out;
|
|
111
|
+
i = j + 1;
|
|
112
|
+
out += ' ';
|
|
113
|
+
continue;
|
|
114
|
+
}
|
|
115
|
+
out += ch;
|
|
116
|
+
i++;
|
|
117
|
+
}
|
|
118
|
+
return out;
|
|
119
|
+
}
|
|
120
|
+
function wholeNamePattern(name) {
|
|
121
|
+
const escaped = name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
122
|
+
return new RegExp(`(?<![\\p{L}\\p{N}_$])${escaped}(?![\\p{L}\\p{N}_$])`, 'u');
|
|
123
|
+
}
|
|
124
|
+
function innermostOwner(nodes, line) {
|
|
125
|
+
let best = null;
|
|
126
|
+
for (const n of nodes) {
|
|
127
|
+
if (!OWNER_KINDS.has(n.kind))
|
|
128
|
+
continue;
|
|
129
|
+
const end = n.endLine ?? n.startLine;
|
|
130
|
+
if (n.startLine > line || end < line)
|
|
131
|
+
continue;
|
|
132
|
+
if (!best) {
|
|
133
|
+
best = n;
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
const span = end - n.startLine;
|
|
137
|
+
const bestSpan = (best.endLine ?? best.startLine) - best.startLine;
|
|
138
|
+
if (span < bestSpan || (span === bestSpan && n.startLine > best.startLine))
|
|
139
|
+
best = n;
|
|
140
|
+
}
|
|
141
|
+
return best;
|
|
142
|
+
}
|
|
143
|
+
function memberContainer(cg, def, incoming) {
|
|
144
|
+
const edges = incoming ?? cg.getIncomingEdges(def.id);
|
|
145
|
+
for (const e of edges) {
|
|
146
|
+
if (e.kind !== 'contains')
|
|
147
|
+
continue;
|
|
148
|
+
const parent = cg.getNode(e.source);
|
|
149
|
+
if (parent && exports.MEMBER_CONTAINER_KINDS.has(parent.kind))
|
|
150
|
+
return parent;
|
|
151
|
+
}
|
|
152
|
+
return null;
|
|
153
|
+
}
|
|
154
|
+
function homeQualifiers(cg, def, container) {
|
|
155
|
+
if (container)
|
|
156
|
+
return [container.name];
|
|
157
|
+
if (def.language !== 'go')
|
|
158
|
+
return [];
|
|
159
|
+
const pkg = (0, go_package_1.goPackageReaderFor)(cg)?.(def.filePath);
|
|
160
|
+
return pkg ? [pkg] : [];
|
|
161
|
+
}
|
|
162
|
+
function relationOfKind(kind) {
|
|
163
|
+
return RELATION_OF[kind] ?? 'uses';
|
|
164
|
+
}
|
|
165
|
+
function collectReferenceSites(cg, def, opts) {
|
|
166
|
+
const incoming = cg.getIncomingEdges(def.id);
|
|
167
|
+
const container = memberContainer(cg, def, incoming);
|
|
168
|
+
const pattern = wholeNamePattern(def.name);
|
|
169
|
+
const linked = incoming.filter((e) => e.kind !== 'contains' && RELATION_OF[e.kind] !== undefined);
|
|
170
|
+
const sources = cg.getNodesByIds([...new Set(linked.map((e) => e.source))]);
|
|
171
|
+
let ownMembers = new Set();
|
|
172
|
+
try {
|
|
173
|
+
ownMembers = new Set(cg.getChildren(def.id).map((c) => c.id));
|
|
174
|
+
}
|
|
175
|
+
catch { }
|
|
176
|
+
const fileNodes = new Map();
|
|
177
|
+
const nodesIn = (filePath) => {
|
|
178
|
+
let nodes = fileNodes.get(filePath);
|
|
179
|
+
if (!nodes) {
|
|
180
|
+
try {
|
|
181
|
+
nodes = cg.getNodesInFile(filePath);
|
|
182
|
+
}
|
|
183
|
+
catch {
|
|
184
|
+
nodes = [];
|
|
185
|
+
}
|
|
186
|
+
fileNodes.set(filePath, nodes);
|
|
187
|
+
}
|
|
188
|
+
return nodes;
|
|
189
|
+
};
|
|
190
|
+
const ownerAt = (source, line) => {
|
|
191
|
+
if (source.kind === 'function' || source.kind === 'method' || source.kind === 'component')
|
|
192
|
+
return source;
|
|
193
|
+
return innermostOwner(nodesIn(source.filePath), line) ?? source;
|
|
194
|
+
};
|
|
195
|
+
const byLine = new Map();
|
|
196
|
+
const rank = (r) => exports.REFERENCE_RELATION_ORDER.indexOf(r);
|
|
197
|
+
const keyOf = (filePath, line) => `${filePath}\0${line}`;
|
|
198
|
+
const add = (site) => {
|
|
199
|
+
if (site.relation === 'uses' && site.owner && ownMembers.has(site.owner.id))
|
|
200
|
+
return;
|
|
201
|
+
const key = keyOf(site.filePath, site.line);
|
|
202
|
+
const held = byLine.get(key);
|
|
203
|
+
if (!held || rank(site.relation) < rank(held.relation))
|
|
204
|
+
byLine.set(key, site);
|
|
205
|
+
};
|
|
206
|
+
const importingFiles = [];
|
|
207
|
+
const filesWithSymbolSites = new Set();
|
|
208
|
+
const bodiesToScan = new Map();
|
|
209
|
+
for (const edge of linked) {
|
|
210
|
+
const source = sources.get(edge.source);
|
|
211
|
+
if (!source)
|
|
212
|
+
continue;
|
|
213
|
+
const relation = RELATION_OF[edge.kind];
|
|
214
|
+
const filePath = source.filePath;
|
|
215
|
+
const atFileLevel = source.kind === 'file';
|
|
216
|
+
if (relation === 'imports' && !importingFiles.includes(filePath))
|
|
217
|
+
importingFiles.push(filePath);
|
|
218
|
+
if (!atFileLevel)
|
|
219
|
+
filesWithSymbolSites.add(filePath);
|
|
220
|
+
if (typeof edge.line === 'number' && edge.line > 0) {
|
|
221
|
+
add({ relation, filePath, line: edge.line, owner: atFileLevel ? null : ownerAt(source, edge.line), edge });
|
|
222
|
+
if (BODY_SCANNED_KINDS.has(source.kind) && BODY_SCANNED_RELATIONS.has(relation)
|
|
223
|
+
&& bodiesToScan.size < MAX_BODIES_SCANNED)
|
|
224
|
+
bodiesToScan.set(source.id, source);
|
|
225
|
+
continue;
|
|
226
|
+
}
|
|
227
|
+
if (atFileLevel) {
|
|
228
|
+
add({ relation, filePath, line: 0, owner: null, edge });
|
|
229
|
+
continue;
|
|
230
|
+
}
|
|
231
|
+
const lines = opts.readLines(filePath);
|
|
232
|
+
const hits = lines
|
|
233
|
+
? codeMentionLines(lines, source.startLine, source.endLine ?? source.startLine, pattern, source.language)
|
|
234
|
+
: [];
|
|
235
|
+
for (const ln of hits)
|
|
236
|
+
add({ relation, filePath, line: ln, owner: ownerAt(source, ln), edge });
|
|
237
|
+
if (hits.length === 0)
|
|
238
|
+
add({ relation, filePath, line: 0, owner: source, edge });
|
|
239
|
+
}
|
|
240
|
+
if (!container) {
|
|
241
|
+
for (const source of bodiesToScan.values()) {
|
|
242
|
+
const lines = opts.readLines(source.filePath);
|
|
243
|
+
if (!lines)
|
|
244
|
+
continue;
|
|
245
|
+
for (const ln of codeMentionLines(lines, source.startLine, source.endLine ?? source.startLine, pattern, source.language)) {
|
|
246
|
+
if (byLine.has(keyOf(source.filePath, ln)))
|
|
247
|
+
continue;
|
|
248
|
+
add({ relation: 'uses', filePath: source.filePath, line: ln, owner: ownerAt(source, ln) });
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
if (!container) {
|
|
253
|
+
const scanned = importingFiles
|
|
254
|
+
.filter((f) => f !== def.filePath && !filesWithSymbolSites.has(f))
|
|
255
|
+
.slice(0, Math.max(0, opts.maxScannedFiles));
|
|
256
|
+
for (const filePath of scanned) {
|
|
257
|
+
const lines = opts.readLines(filePath);
|
|
258
|
+
if (!lines)
|
|
259
|
+
continue;
|
|
260
|
+
const nodes = nodesIn(filePath);
|
|
261
|
+
for (const ln of codeMentionLines(lines, 1, lines.length, pattern, nodes[0]?.language)) {
|
|
262
|
+
if (byLine.has(keyOf(filePath, ln)))
|
|
263
|
+
continue;
|
|
264
|
+
add({ relation: 'uses', filePath, line: ln, owner: innermostOwner(nodes, ln) });
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
const homes = homeQualifiers(cg, def, container);
|
|
269
|
+
const written = homes.flatMap((h) => [`${h}.${def.name}`, `${h}::${def.name}`]);
|
|
270
|
+
let writtenAsThis = [];
|
|
271
|
+
try {
|
|
272
|
+
writtenAsThis = cg.getUnlinkedReferencesWritten(written, MAX_UNLINKED_READ);
|
|
273
|
+
}
|
|
274
|
+
catch { }
|
|
275
|
+
if (writtenAsThis.length > 0) {
|
|
276
|
+
const owners = cg.getNodesByIds([...new Set(writtenAsThis.map((r) => r.fromNodeId))]);
|
|
277
|
+
for (const r of writtenAsThis) {
|
|
278
|
+
if (r.referenceKind === 'imports')
|
|
279
|
+
continue;
|
|
280
|
+
const from = owners.get(r.fromNodeId);
|
|
281
|
+
const filePath = r.filePath ?? from?.filePath;
|
|
282
|
+
if (!filePath)
|
|
283
|
+
continue;
|
|
284
|
+
const owner = from && from.kind !== 'file' ? ownerAt(from, r.line) : innermostOwner(nodesIn(filePath), r.line);
|
|
285
|
+
add({ relation: relationOfKind(r.referenceKind), filePath, line: r.line, owner });
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
const sites = [...byLine.values()].sort((a, b) => rank(a.relation) - rank(b.relation)
|
|
289
|
+
|| a.filePath.localeCompare(b.filePath)
|
|
290
|
+
|| a.line - b.line);
|
|
291
|
+
let unlinked = [];
|
|
292
|
+
let unlinkedTotal = 0;
|
|
293
|
+
if (opts.unlinkedLimit > 0) {
|
|
294
|
+
try {
|
|
295
|
+
const found = cg.getUnlinkedReferencesNamed(def.name, Math.min(MAX_UNLINKED_READ, opts.unlinkedLimit + sites.length));
|
|
296
|
+
const isSite = (r) => byLine.has(keyOf(r.filePath ?? '', r.line));
|
|
297
|
+
unlinked = found.refs.filter((r) => !isSite(r)).slice(0, opts.unlinkedLimit);
|
|
298
|
+
unlinkedTotal = Math.max(unlinked.length, found.total - found.refs.filter(isSite).length);
|
|
299
|
+
}
|
|
300
|
+
catch { }
|
|
301
|
+
}
|
|
302
|
+
return { sites, unlinked, unlinkedTotal };
|
|
303
|
+
}
|
|
304
|
+
//# sourceMappingURL=symbol-references.js.map
|