@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,92 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Dead code and islands — one derivation of "nothing in this repository
|
|
4
|
-
* reaches here".
|
|
5
|
-
*
|
|
6
|
-
* The graph can answer that question exactly, and that is the problem: the
|
|
7
|
-
* exact answer is *no incoming edge*, and a symbol with no incoming edge is not
|
|
8
|
-
* the same thing as a symbol nobody uses. Reflection calls it. A framework
|
|
9
|
-
* registers it by name. A test file that was never indexed imports it. The
|
|
10
|
-
* resolver saw the name and could not follow it. So the honest product of this
|
|
11
|
-
* module is two things at once — a list, and everything the list could not see.
|
|
12
|
-
*
|
|
13
|
-
* ## The shape of the claim
|
|
14
|
-
*
|
|
15
|
-
* `unreferenced` is a fact: no edge in the index, other than the `contains`
|
|
16
|
-
* edge from whatever holds it, points at this symbol. `dead` is an inference on
|
|
17
|
-
* top of that fact, and every step of the inference is subtractive — a
|
|
18
|
-
* candidate is dropped from the list the moment there is any reason to believe
|
|
19
|
-
* something outside the graph reaches it:
|
|
20
|
-
*
|
|
21
|
-
* - it is **exported** (something outside this repository may import it);
|
|
22
|
-
* - it lives in a **test** or a **generated** file (not code anyone deletes by
|
|
23
|
-
* hand);
|
|
24
|
-
* - it is **abstract** or declared on an interface (a declaration is dispatched
|
|
25
|
-
* to, never called);
|
|
26
|
-
* - it is **decorated** (`@app.route`, `@Component`, `@EventHandler`) — a
|
|
27
|
-
* decorator is a registration, and the framework that reads it is not in the
|
|
28
|
-
* graph. Seen as the symbol's own outgoing `decorates` edge, which is where
|
|
29
|
-
* the engine records it; `node.decorators` is only populated by a couple of
|
|
30
|
-
* languages and is checked as well rather than instead;
|
|
31
|
-
* - it **overrides** a member an ancestor declares (calls land on the ancestor;
|
|
32
|
-
* see {@link overrideCandidates} for why an ancestor we cannot read counts
|
|
33
|
-
* the same way);
|
|
34
|
-
* - it has a name the language calls by itself (`constructor`, `__enter__`,
|
|
35
|
-
* `main`);
|
|
36
|
-
* - it sits in a **vendored** directory (`vendor/`, `third_party/`,
|
|
37
|
-
* `node_modules/` — code the repository carries but does not own);
|
|
38
|
-
* - it is in a **test scope** the path does not reveal — a Rust
|
|
39
|
-
* `#[cfg(test)] mod tests`, a nested `Tests` namespace;
|
|
40
|
-
* - it is in a **component file** whose markup the index reads for calls but
|
|
41
|
-
* not for references, so a handler passed as `{onkeydown}` is invisible;
|
|
42
|
-
* - it is in a file **nothing in the index reaches**. Then "nothing references
|
|
43
|
-
* this symbol" is a restatement of "we cannot see how this file is wired",
|
|
44
|
-
* not a finding about the symbol — and it is the map, not this list, that
|
|
45
|
-
* says so: a file no one reaches is an island, and islands are drawn there;
|
|
46
|
-
* - the index holds an **unresolved reference** to its name. A `failed` row in
|
|
47
|
-
* `unresolved_refs` is the resolver's own record of a reference it could not
|
|
48
|
-
* follow, and a symbol whose name we failed to follow cannot be called
|
|
49
|
-
* unreferenced.
|
|
50
|
-
* - **another symbol of the same name IS referenced.** This is the one that
|
|
51
|
-
* matters most and the one nothing else would catch. `CodeGraph.getTopRouteFile`
|
|
52
|
-
* calls `this.queries.getTopRouteFile()`; the resolver prefers a same-name
|
|
53
|
-
* definition in the call site's own file, so the edge lands on the caller
|
|
54
|
-
* itself and the real target is left with nothing. From the edge table,
|
|
55
|
-
* "nobody calls this" and "the resolver picked the twin" are the same
|
|
56
|
-
* picture — so the claim is not made about either;
|
|
57
|
-
* - it is declared in a **header** (`.h`, `.hpp`, `.d.ts`, `.pyi`): a header IS
|
|
58
|
-
* the export surface, and the reference to it is an `#include` the resolver
|
|
59
|
-
* does not follow to the declaration;
|
|
60
|
-
* - it is in a language this index records **no export marker** for. The
|
|
61
|
-
* exported filter is the strongest one here, and for Rust (`pub` is not
|
|
62
|
-
* recorded) or Python and C (no such concept at all) it silently does
|
|
63
|
-
* nothing — so the index is asked, per language, whether it ran;
|
|
64
|
-
* - **its own file writes the name more than once.** The last rule, and the
|
|
65
|
-
* only one that is not a graph query. Everything above assumes the edge
|
|
66
|
-
* table is complete; it is not, and the gaps do not announce themselves —
|
|
67
|
-
* `this.handleMessage.bind(this)` is a value reference the extractor does not
|
|
68
|
-
* record, and a call inside an object-literal initialiser is another. Both
|
|
69
|
-
* leave the name written twice in one file and no edge at all. So before the
|
|
70
|
-
* claim is made, the identifier is counted in the file itself AND in every
|
|
71
|
-
* file the index says depends on it — written once, in its own declaration,
|
|
72
|
-
* nothing that can reach it writes it down; written twice, we simply did not
|
|
73
|
-
* see the second one.
|
|
74
|
-
*
|
|
75
|
-
* Every subtraction is counted. {@link DeadCodeReport.excluded} is not
|
|
76
|
-
* diagnostics — it is the sentence under the list ("47 exported, 12 overriding
|
|
77
|
-
* an ancestor…"), because a list of eight rows drawn from four thousand
|
|
78
|
-
* candidates means something different from a list of eight drawn from nine.
|
|
79
|
-
*
|
|
80
|
-
* ## Islands
|
|
81
|
-
*
|
|
82
|
-
* The other half of the task, a *module* nothing depends on, is not computed
|
|
83
|
-
* here: it falls straight out of the map's own link set (a module with no
|
|
84
|
-
* incoming link), and the map's layout is already a pure function in the
|
|
85
|
-
* viewer. Computing it a second time on this side would be a second answer to
|
|
86
|
-
* a question the map has already answered. See `ui/src/lib/map-model.ts`.
|
|
87
|
-
*
|
|
88
|
-
* Everything here is query-time and read-only.
|
|
89
|
-
*/
|
|
90
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
91
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
92
4
|
};
|
|
@@ -99,20 +11,8 @@ exports.isTestScope = isTestScope;
|
|
|
99
11
|
exports.isVendoredPath = isVendoredPath;
|
|
100
12
|
exports.isImplicitEntryName = isImplicitEntryName;
|
|
101
13
|
const fs_1 = __importDefault(require("fs"));
|
|
102
|
-
const path_1 = __importDefault(require("path"));
|
|
103
14
|
const query_utils_1 = require("../search/query-utils");
|
|
104
|
-
|
|
105
|
-
// Caps and defaults
|
|
106
|
-
// =============================================================================
|
|
107
|
-
/**
|
|
108
|
-
* Kinds asked about by default.
|
|
109
|
-
*
|
|
110
|
-
* Callables and types, and nothing else. `variable`/`constant`/`field` are out
|
|
111
|
-
* deliberately: a value's uses are recorded as `references` edges, and that
|
|
112
|
-
* coverage is the most language-dependent thing in the resolver — a default
|
|
113
|
-
* that included them would produce a list whose truthfulness varied by which
|
|
114
|
-
* language the reader happened to be looking at.
|
|
115
|
-
*/
|
|
15
|
+
const utils_1 = require("../utils");
|
|
116
16
|
exports.DEAD_CODE_KINDS = [
|
|
117
17
|
'function',
|
|
118
18
|
'method',
|
|
@@ -126,7 +26,6 @@ exports.DEAD_CODE_KINDS = [
|
|
|
126
26
|
'union',
|
|
127
27
|
'type_alias',
|
|
128
28
|
];
|
|
129
|
-
/** Kinds a `kinds=` request may ask for. Anything else is a caller bug. */
|
|
130
29
|
exports.DEAD_CODE_ALLOWED_KINDS = new Set([
|
|
131
30
|
...exports.DEAD_CODE_KINDS,
|
|
132
31
|
'variable',
|
|
@@ -137,29 +36,10 @@ exports.DEAD_CODE_ALLOWED_KINDS = new Set([
|
|
|
137
36
|
'namespace',
|
|
138
37
|
'module',
|
|
139
38
|
]);
|
|
140
|
-
/**
|
|
141
|
-
* Candidates pulled out of SQL before any exclusion runs.
|
|
142
|
-
*
|
|
143
|
-
* High enough that no real repository reaches it with the default kinds (this
|
|
144
|
-
* index produces ~1 400), and bounded so that a half-indexed monorepo cannot
|
|
145
|
-
* turn one screen into a scan of a million rows. When it bites,
|
|
146
|
-
* {@link DeadCodeReport.bounded} says so.
|
|
147
|
-
*/
|
|
148
39
|
exports.MAX_DEAD_CODE_CANDIDATES = 20000;
|
|
149
|
-
/** Levels walked up looking for an ancestor that declares the same member. */
|
|
150
40
|
exports.MAX_OVERRIDE_ANCESTOR_DEPTH = 8;
|
|
151
|
-
/**
|
|
152
|
-
* Files read for the corroboration pass, and the biggest one read.
|
|
153
|
-
*
|
|
154
|
-
* The pass runs over the survivors only — everything cheap has already fired —
|
|
155
|
-
* so on this index it reads a few dozen files. The caps are a backstop against
|
|
156
|
-
* a repository whose survivors span a thousand files or include a generated
|
|
157
|
-
* megabyte. A file skipped for either reason counts as NOT corroborated, which
|
|
158
|
-
* drops the row: the safe direction is always the one that says less.
|
|
159
|
-
*/
|
|
160
41
|
exports.MAX_CORROBORATION_FILES = 600;
|
|
161
42
|
exports.MAX_CORROBORATION_BYTES = 2_000_000;
|
|
162
|
-
/** Kinds that can carry members, i.e. whose ancestors are worth walking. */
|
|
163
43
|
const CONTAINER_KINDS = new Set([
|
|
164
44
|
'class',
|
|
165
45
|
'interface',
|
|
@@ -170,30 +50,19 @@ const CONTAINER_KINDS = new Set([
|
|
|
170
50
|
'union',
|
|
171
51
|
'type_alias',
|
|
172
52
|
]);
|
|
173
|
-
/** Container kinds whose members are declarations, never call targets. */
|
|
174
53
|
const DECLARATION_CONTAINER_KINDS = new Set([
|
|
175
54
|
'interface',
|
|
176
55
|
'trait',
|
|
177
56
|
'protocol',
|
|
178
57
|
]);
|
|
179
|
-
/** Member kinds an override can be declared on. */
|
|
180
58
|
const OVERRIDABLE_KINDS = new Set([
|
|
181
59
|
'method',
|
|
182
60
|
'function',
|
|
183
61
|
'property',
|
|
184
62
|
'field',
|
|
185
63
|
]);
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
* them.
|
|
189
|
-
*
|
|
190
|
-
* Kept short on purpose. The temptation is a per-language table of every
|
|
191
|
-
* lifecycle hook ever written, which would be wrong twice over — it would go
|
|
192
|
-
* stale, and it would hide real dead code behind a name coincidence. The
|
|
193
|
-
* entries below are the ones where the *language itself* does the calling, so
|
|
194
|
-
* no source file could name them even in principle. Framework hooks are caught
|
|
195
|
-
* by the decorator and override rules instead, which are structural.
|
|
196
|
-
*/
|
|
64
|
+
const BY_NAME_DISPATCH_LANGUAGES = new Set(['typescript', 'tsx']);
|
|
65
|
+
const HOOK_KINDS = ['method', 'function'];
|
|
197
66
|
const IMPLICIT_ENTRY_NAMES = new Set([
|
|
198
67
|
'constructor',
|
|
199
68
|
'main',
|
|
@@ -209,12 +78,6 @@ const IMPLICIT_ENTRY_NAMES = new Set([
|
|
|
209
78
|
'gethashcode',
|
|
210
79
|
'hashcode',
|
|
211
80
|
]);
|
|
212
|
-
/**
|
|
213
|
-
* Qualified-name segments that mean "inside a test scope the file path does not
|
|
214
|
-
* reveal" — a Rust `#[cfg(test)] mod tests`, a nested `Tests` class in C#, a
|
|
215
|
-
* Go `TestMain` helper block. `isTestFile` only reads paths, and an in-file test
|
|
216
|
-
* module is invisible to it.
|
|
217
|
-
*/
|
|
218
81
|
const TEST_SCOPE_SEGMENTS = new Set([
|
|
219
82
|
'test',
|
|
220
83
|
'tests',
|
|
@@ -223,16 +86,6 @@ const TEST_SCOPE_SEGMENTS = new Set([
|
|
|
223
86
|
'specs',
|
|
224
87
|
'testing',
|
|
225
88
|
]);
|
|
226
|
-
/**
|
|
227
|
-
* Languages whose files are markup with a script block inside them.
|
|
228
|
-
*
|
|
229
|
-
* The extractors for these read the `<script>` region properly and scan the
|
|
230
|
-
* template for CALLS — but a handler passed by reference (`{onkeydown}`,
|
|
231
|
-
* `@click="submit"`) is a reference, not a call, and it is not extracted. Every
|
|
232
|
-
* event handler in every component would therefore head this list. The index
|
|
233
|
-
* cannot tell a handler wired in markup from one nobody uses, so it does not
|
|
234
|
-
* guess.
|
|
235
|
-
*/
|
|
236
89
|
const MARKUP_HOST_LANGUAGES = new Set([
|
|
237
90
|
'svelte',
|
|
238
91
|
'vue',
|
|
@@ -245,15 +98,6 @@ const MARKUP_HOST_LANGUAGES = new Set([
|
|
|
245
98
|
'erb',
|
|
246
99
|
'handlebars',
|
|
247
100
|
]);
|
|
248
|
-
/**
|
|
249
|
-
* Extensions whose contents are declarations for somebody else.
|
|
250
|
-
*
|
|
251
|
-
* A C header is the translation unit's export surface: everything in it exists
|
|
252
|
-
* to be `#include`d, and the resolver does not follow an include to the
|
|
253
|
-
* declaration it lands on. `.d.ts` and `.pyi` are the same idea in TypeScript
|
|
254
|
-
* and Python. Treating these as exported is not a heuristic — it is what the
|
|
255
|
-
* file is for.
|
|
256
|
-
*/
|
|
257
101
|
const HEADER_EXTENSIONS = [
|
|
258
102
|
'.h',
|
|
259
103
|
'.hh',
|
|
@@ -267,18 +111,7 @@ const HEADER_EXTENSIONS = [
|
|
|
267
111
|
'.pyi',
|
|
268
112
|
'.pxd',
|
|
269
113
|
];
|
|
270
|
-
/** Python and Ruby call these by protocol: `__enter__`, `__iter__`, `__init__`. */
|
|
271
114
|
const DUNDER = /^__[a-z0-9_]+__$/i;
|
|
272
|
-
/**
|
|
273
|
-
* Directory names that mean "this code is carried, not written here".
|
|
274
|
-
*
|
|
275
|
-
* Vendored third-party source is the second-largest source of noise after name
|
|
276
|
-
* ambiguity, and it is noise of a particular kind: the code IS reached, by a
|
|
277
|
-
* build system or a runtime that is not in the index at all (a tree-sitter
|
|
278
|
-
* scanner is called through a generated symbol table; a vendored library is
|
|
279
|
-
* called by whatever links it). Matched as a whole path segment, so
|
|
280
|
-
* `src/vendored-parser.ts` is not caught by `vendor`.
|
|
281
|
-
*/
|
|
282
115
|
const VENDOR_SEGMENTS = new Set([
|
|
283
116
|
'vendor',
|
|
284
117
|
'vendored',
|
|
@@ -295,13 +128,6 @@ const VENDOR_SEGMENTS = new Set([
|
|
|
295
128
|
'.venv',
|
|
296
129
|
'venv',
|
|
297
130
|
]);
|
|
298
|
-
// =============================================================================
|
|
299
|
-
// The report
|
|
300
|
-
// =============================================================================
|
|
301
|
-
/**
|
|
302
|
-
* The dead code report: unreferenced symbols, minus every reason to doubt it,
|
|
303
|
-
* plus a count of every doubt.
|
|
304
|
-
*/
|
|
305
131
|
function buildDeadCodeReport(cg, query = {}) {
|
|
306
132
|
const kinds = normalizeKinds(query.kinds);
|
|
307
133
|
const includeExported = query.includeExported === true;
|
|
@@ -317,6 +143,7 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
317
143
|
declarations: 0,
|
|
318
144
|
decorated: 0,
|
|
319
145
|
overriding: 0,
|
|
146
|
+
hooks: 0,
|
|
320
147
|
implicit: 0,
|
|
321
148
|
vendored: 0,
|
|
322
149
|
testScope: 0,
|
|
@@ -331,14 +158,9 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
331
158
|
const raw = cg.getUnreferencedNodes(kinds, exports.MAX_DEAD_CODE_CANDIDATES + 1);
|
|
332
159
|
const bounded = raw.length > exports.MAX_DEAD_CODE_CANDIDATES;
|
|
333
160
|
const candidates = bounded ? raw.slice(0, exports.MAX_DEAD_CODE_CANDIDATES) : raw;
|
|
334
|
-
// Asking the index whether the exported filter can run at all, per language,
|
|
335
|
-
// over the handful of languages the candidates are actually in. Skipped when
|
|
336
|
-
// the caller has already accepted outside-reachability by asking for exported
|
|
337
|
-
// symbols.
|
|
338
161
|
const languagesWithExports = includeExported
|
|
339
162
|
? new Set()
|
|
340
163
|
: cg.getLanguagesWithExports(candidates.map((row) => row.node.language));
|
|
341
|
-
// ---- the cheap, per-row rules -------------------------------------------
|
|
342
164
|
const surviving = [];
|
|
343
165
|
for (const row of candidates) {
|
|
344
166
|
const { node } = row;
|
|
@@ -380,17 +202,9 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
380
202
|
}
|
|
381
203
|
surviving.push(row);
|
|
382
204
|
}
|
|
383
|
-
|
|
384
|
-
// A `decorates` edge runs FROM the decorated symbol to the decorator, so
|
|
385
|
-
// this is an outgoing-edge question, not something the candidate query could
|
|
386
|
-
// have answered.
|
|
387
|
-
const decorated = new Set(cg
|
|
388
|
-
.getOutgoingEdgesFrom(surviving.map((row) => row.node.id), ['decorates'])
|
|
389
|
-
.map((edge) => edge.source));
|
|
205
|
+
const decorated = carriesDecorator(cg, surviving.map((row) => row.node));
|
|
390
206
|
const containers = containersOf(cg, surviving.map((row) => row.node));
|
|
391
207
|
const overriding = overrideCandidates(cg, surviving.map((row) => row.node), containers);
|
|
392
|
-
// One batched count for every file still in play. A file nothing reaches is
|
|
393
|
-
// an island: its symbols' zero fan-in describes the file, not the symbol.
|
|
394
208
|
const unreachableFiles = filesNothingReaches(cg, surviving.map((row) => row.node.filePath));
|
|
395
209
|
const reachable = surviving.filter((row) => {
|
|
396
210
|
if (!unreachableFiles.has(row.node.filePath))
|
|
@@ -403,9 +217,12 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
403
217
|
const names = surviving.map((row) => row.node.name);
|
|
404
218
|
const unresolved = cg.getUnresolvedNamesAmong(names);
|
|
405
219
|
const ambiguousNames = cg.getAmbiguousReferencedNames(names);
|
|
220
|
+
const hooks = byNameHookCandidates(cg, surviving
|
|
221
|
+
.map((row) => row.node)
|
|
222
|
+
.filter((node) => !decorated.has(node.id) && !overriding.has(node.id)), containers, candidates.map((row) => row.node));
|
|
406
223
|
const kept = [];
|
|
407
224
|
for (const row of surviving) {
|
|
408
|
-
if (decorated.has(row.node.id)
|
|
225
|
+
if (decorated.has(row.node.id)) {
|
|
409
226
|
excluded.decorated += 1;
|
|
410
227
|
continue;
|
|
411
228
|
}
|
|
@@ -418,6 +235,10 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
418
235
|
excluded.overriding += 1;
|
|
419
236
|
continue;
|
|
420
237
|
}
|
|
238
|
+
if (hooks.has(row.node.id)) {
|
|
239
|
+
excluded.hooks += 1;
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
421
242
|
if (unresolved.has(row.node.name)) {
|
|
422
243
|
excluded.unresolvedName += 1;
|
|
423
244
|
continue;
|
|
@@ -428,9 +249,6 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
428
249
|
}
|
|
429
250
|
kept.push(row);
|
|
430
251
|
}
|
|
431
|
-
// ---- the file's own text has the last word -------------------------------
|
|
432
|
-
// Everything above is a graph query, and the graph is what has the gaps. This
|
|
433
|
-
// is the only rule that can see a reference the extractor never recorded.
|
|
434
252
|
const confirmed = [];
|
|
435
253
|
if (readSource) {
|
|
436
254
|
const sources = new Map();
|
|
@@ -440,9 +258,6 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
440
258
|
}
|
|
441
259
|
return sources.get(file) ?? null;
|
|
442
260
|
};
|
|
443
|
-
// The set to search is the declaring file plus everything the index says
|
|
444
|
-
// reaches into it — the same set a call could have come from. Computed once
|
|
445
|
-
// per file, not once per candidate.
|
|
446
261
|
const scopes = new Map();
|
|
447
262
|
for (const row of kept) {
|
|
448
263
|
const file = row.node.filePath;
|
|
@@ -463,8 +278,6 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
463
278
|
if (mentions >= 2)
|
|
464
279
|
break;
|
|
465
280
|
}
|
|
466
|
-
// Its OWN file has to be readable: the declaration itself is one of the
|
|
467
|
-
// two mentions, so an unreadable declaring file makes the count meaningless.
|
|
468
281
|
if (own === null) {
|
|
469
282
|
excluded.unreadable += 1;
|
|
470
283
|
continue;
|
|
@@ -479,7 +292,6 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
479
292
|
else {
|
|
480
293
|
confirmed.push(...kept);
|
|
481
294
|
}
|
|
482
|
-
// ---- fold members into a container that is itself dead -------------------
|
|
483
295
|
const keptIds = new Set(confirmed.map((row) => row.node.id));
|
|
484
296
|
const entries = new Map();
|
|
485
297
|
const pending = [];
|
|
@@ -498,17 +310,11 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
498
310
|
});
|
|
499
311
|
}
|
|
500
312
|
for (const member of pending) {
|
|
501
|
-
// A member whose container was itself folded away (a dead class inside a
|
|
502
|
-
// dead class) has no entry to hang off; it was still counted as nested, so
|
|
503
|
-
// it is not silently missing from the totals.
|
|
504
313
|
entries.get(member.containerId)?.members.push(member.node);
|
|
505
314
|
}
|
|
506
315
|
for (const entry of entries.values()) {
|
|
507
316
|
entry.members.sort((a, b) => a.startLine - b.startLine || a.name.localeCompare(b.name));
|
|
508
317
|
}
|
|
509
|
-
// Biggest first: the list is read to decide what to delete, and a 200-line
|
|
510
|
-
// unreachable class is a different finding from a three-line helper. File and
|
|
511
|
-
// line break the tie so the order is stable across runs.
|
|
512
318
|
const ranked = [...entries.values()].sort((a, b) => b.lines - a.lines ||
|
|
513
319
|
a.node.filePath.localeCompare(b.node.filePath) ||
|
|
514
320
|
a.node.startLine - b.node.startLine);
|
|
@@ -523,18 +329,12 @@ function buildDeadCodeReport(cg, query = {}) {
|
|
|
523
329
|
corroborated: readSource !== null,
|
|
524
330
|
};
|
|
525
331
|
}
|
|
526
|
-
/**
|
|
527
|
-
* Reads a project-relative file off disk, for callers with no chokepoint of
|
|
528
|
-
* their own (the CLI, a library user). Refuses anything that escapes the
|
|
529
|
-
* project root — a `filePath` comes out of the index, but the index is a file
|
|
530
|
-
* on disk and this module should not be the thing that trusts it.
|
|
531
|
-
*/
|
|
532
332
|
function defaultSourceReader(cg) {
|
|
533
|
-
const root =
|
|
333
|
+
const root = cg.getProjectRoot();
|
|
534
334
|
return (filePath) => {
|
|
535
335
|
try {
|
|
536
|
-
const absolute =
|
|
537
|
-
if (absolute
|
|
336
|
+
const absolute = (0, utils_1.lexicalPathWithinRoot)(root, filePath);
|
|
337
|
+
if (absolute === null)
|
|
538
338
|
return null;
|
|
539
339
|
const stat = fs_1.default.statSync(absolute);
|
|
540
340
|
if (!stat.isFile() || stat.size > exports.MAX_CORROBORATION_BYTES)
|
|
@@ -546,16 +346,6 @@ function defaultSourceReader(cg) {
|
|
|
546
346
|
}
|
|
547
347
|
};
|
|
548
348
|
}
|
|
549
|
-
/**
|
|
550
|
-
* How many times `name` is written in `source` as a whole identifier, counting
|
|
551
|
-
* no further than `stopAt`.
|
|
552
|
-
*
|
|
553
|
-
* Deliberately dumb: no parsing, no comment or string stripping. A mention in a
|
|
554
|
-
* comment or in a string is exactly the kind of thing that turns out to be a
|
|
555
|
-
* reflective call or a registration key, and the rule this serves only ever
|
|
556
|
-
* uses the count to say LESS. `\b` is not used because it is ASCII-only in
|
|
557
|
-
* JavaScript and an identifier may not be.
|
|
558
|
-
*/
|
|
559
349
|
function mentionCount(source, name, stopAt = Number.MAX_SAFE_INTEGER) {
|
|
560
350
|
if (name.length === 0)
|
|
561
351
|
return 0;
|
|
@@ -578,14 +368,6 @@ function isIdentifierChar(char) {
|
|
|
578
368
|
return false;
|
|
579
369
|
return char === '_' || char === '$' || /[\p{L}\p{N}]/u.test(char);
|
|
580
370
|
}
|
|
581
|
-
/**
|
|
582
|
-
* Files in the candidate set that nothing else in the index reaches.
|
|
583
|
-
*
|
|
584
|
-
* One batched query for the whole set (`getFileDependentCounts` counts through
|
|
585
|
-
* the symbols, because an `imports` edge points at the imported symbol and a
|
|
586
|
-
* file node almost never receives one). Zero means nothing else in the index
|
|
587
|
-
* reaches into this file at all.
|
|
588
|
-
*/
|
|
589
371
|
function filesNothingReaches(cg, filePaths) {
|
|
590
372
|
const unique = [...new Set(filePaths)];
|
|
591
373
|
if (unique.length === 0)
|
|
@@ -593,12 +375,10 @@ function filesNothingReaches(cg, filePaths) {
|
|
|
593
375
|
const dependents = cg.getFileDependentCounts(unique);
|
|
594
376
|
return new Set(unique.filter((path) => (dependents.get(path) ?? 0) === 0));
|
|
595
377
|
}
|
|
596
|
-
/** A file whose contents are declarations for somebody else — see {@link HEADER_EXTENSIONS}. */
|
|
597
378
|
function isHeaderFile(filePath) {
|
|
598
379
|
const lower = filePath.toLowerCase();
|
|
599
380
|
return HEADER_EXTENSIONS.some((ext) => lower.endsWith(ext));
|
|
600
381
|
}
|
|
601
|
-
/** A qualified name that runs through a test scope — see {@link TEST_SCOPE_SEGMENTS}. */
|
|
602
382
|
function isTestScope(qualifiedName) {
|
|
603
383
|
for (const segment of qualifiedName.split(/[.:/\\#>]+/)) {
|
|
604
384
|
if (TEST_SCOPE_SEGMENTS.has(segment.toLowerCase()))
|
|
@@ -606,7 +386,6 @@ function isTestScope(qualifiedName) {
|
|
|
606
386
|
}
|
|
607
387
|
return false;
|
|
608
388
|
}
|
|
609
|
-
/** Code the repository carries rather than owns — see {@link VENDOR_SEGMENTS}. */
|
|
610
389
|
function isVendoredPath(filePath) {
|
|
611
390
|
for (const segment of filePath.replace(/\\/g, '/').split('/')) {
|
|
612
391
|
if (VENDOR_SEGMENTS.has(segment.toLowerCase()))
|
|
@@ -614,7 +393,6 @@ function isVendoredPath(filePath) {
|
|
|
614
393
|
}
|
|
615
394
|
return false;
|
|
616
395
|
}
|
|
617
|
-
/** A name the language calls by itself, so no source file could name it. */
|
|
618
396
|
function isImplicitEntryName(name) {
|
|
619
397
|
return DUNDER.test(name) || IMPLICIT_ENTRY_NAMES.has(name.toLowerCase());
|
|
620
398
|
}
|
|
@@ -624,13 +402,6 @@ function normalizeKinds(requested) {
|
|
|
624
402
|
const kinds = requested.filter((kind) => exports.DEAD_CODE_ALLOWED_KINDS.has(kind));
|
|
625
403
|
return kinds.length > 0 ? [...new Set(kinds)] : [...exports.DEAD_CODE_KINDS];
|
|
626
404
|
}
|
|
627
|
-
/**
|
|
628
|
-
* The type each candidate is declared in, for the candidates that are members.
|
|
629
|
-
*
|
|
630
|
-
* One batched query for the whole candidate set, then one for the containers
|
|
631
|
-
* themselves — never a lookup per row. Only type-ish containers are returned: a
|
|
632
|
-
* function's container is the file, which tells us nothing.
|
|
633
|
-
*/
|
|
634
405
|
function containersOf(cg, nodes) {
|
|
635
406
|
const memberIds = nodes.filter((node) => OVERRIDABLE_KINDS.has(node.kind)).map((n) => n.id);
|
|
636
407
|
const out = new Map();
|
|
@@ -649,75 +420,12 @@ function containersOf(cg, nodes) {
|
|
|
649
420
|
}
|
|
650
421
|
return out;
|
|
651
422
|
}
|
|
652
|
-
/**
|
|
653
|
-
* Which candidates override something — the ids to drop.
|
|
654
|
-
*
|
|
655
|
-
* A method that overrides `Base.run` is reached through `Base.run`; the call
|
|
656
|
-
* site names the base, so the override carries no incoming edge of its own and
|
|
657
|
-
* would otherwise head the list. It is matched by NAME within a chain the graph
|
|
658
|
-
* already links (nothing in the engine emits an `overrides` edge), exactly as
|
|
659
|
-
* the type-hierarchy block does.
|
|
660
|
-
*
|
|
661
|
-
* The second rule is the one that looks wrong and is not: **an ancestor with no
|
|
662
|
-
* extracted members counts as a match.** A TypeScript interface of pure method
|
|
663
|
-
* signatures produces no `contains` edges at all, so `class X implements Y`
|
|
664
|
-
* with every member of `Y` implemented reads, structurally, as a class whose
|
|
665
|
-
* members override nothing. Answering "cannot tell" with an exclusion is the
|
|
666
|
-
* only choice that keeps the list's promise; the alternative puts every
|
|
667
|
-
* implementation of every signature-only interface at the top of a screen that
|
|
668
|
-
* says "nothing reaches this".
|
|
669
|
-
*
|
|
670
|
-
* An ancestor **outside the index** is opaque in the same way, and more so: a
|
|
671
|
-
* class that extends `React.Component` or `stream.Transform`, or implements a
|
|
672
|
-
* framework interface, has lifecycle methods the framework calls, and the
|
|
673
|
-
* ancestor leaves no edge to walk at all — only the resolver's failed
|
|
674
|
-
* `extends` / `implements` row. A container with such a row, or a project
|
|
675
|
-
* ancestor of one that has it, counts as having an opaque ancestor (#1973).
|
|
676
|
-
*/
|
|
677
423
|
function overrideCandidates(cg, nodes, containers) {
|
|
678
424
|
const dropped = new Set();
|
|
679
425
|
const containerIds = [...new Set([...containers.values()].map((node) => node.id))];
|
|
680
426
|
if (containerIds.length === 0)
|
|
681
427
|
return dropped;
|
|
682
|
-
|
|
683
|
-
// level rather than one per container. `reach` maps an ancestor back to the
|
|
684
|
-
// containers it is an ancestor of.
|
|
685
|
-
const reach = new Map();
|
|
686
|
-
const seen = new Map(containerIds.map((id) => [id, new Set([id])]));
|
|
687
|
-
let frontier = containerIds.map((id) => ({ id, roots: new Set([id]) }));
|
|
688
|
-
for (let depth = 0; depth < exports.MAX_OVERRIDE_ANCESTOR_DEPTH && frontier.length > 0; depth++) {
|
|
689
|
-
const rootsOf = new Map(frontier.map((item) => [item.id, item.roots]));
|
|
690
|
-
const edges = cg.getOutgoingEdgesFrom(frontier.map((item) => item.id), ['extends', 'implements']);
|
|
691
|
-
const next = new Map();
|
|
692
|
-
for (const edge of edges) {
|
|
693
|
-
if (edge.target === edge.source)
|
|
694
|
-
continue;
|
|
695
|
-
const roots = rootsOf.get(edge.source);
|
|
696
|
-
if (!roots)
|
|
697
|
-
continue;
|
|
698
|
-
const merged = next.get(edge.target) ?? new Set();
|
|
699
|
-
const visited = seen.get(edge.target) ?? new Set();
|
|
700
|
-
const known = reach.get(edge.target) ?? new Set();
|
|
701
|
-
// An ancestor may already be a candidate root. Only skip pairs we have
|
|
702
|
-
// propagated, so later descendants still reach all of its ancestors.
|
|
703
|
-
for (const root of roots) {
|
|
704
|
-
if (visited.has(root))
|
|
705
|
-
continue;
|
|
706
|
-
visited.add(root);
|
|
707
|
-
merged.add(root);
|
|
708
|
-
known.add(root);
|
|
709
|
-
}
|
|
710
|
-
seen.set(edge.target, visited);
|
|
711
|
-
if (merged.size > 0)
|
|
712
|
-
next.set(edge.target, merged);
|
|
713
|
-
if (known.size > 0)
|
|
714
|
-
reach.set(edge.target, known);
|
|
715
|
-
}
|
|
716
|
-
frontier = [];
|
|
717
|
-
for (const [id, roots] of next) {
|
|
718
|
-
frontier.push({ id, roots });
|
|
719
|
-
}
|
|
720
|
-
}
|
|
428
|
+
const reach = ancestorsOf(cg, containerIds, ['extends', 'implements']);
|
|
721
429
|
const opaqueContainers = new Set();
|
|
722
430
|
const externalBased = cg.getUnresolvedSupertypeSourcesAmong([...containerIds, ...reach.keys()]);
|
|
723
431
|
for (const id of containerIds)
|
|
@@ -728,7 +436,6 @@ function overrideCandidates(cg, nodes, containers) {
|
|
|
728
436
|
for (const root of roots)
|
|
729
437
|
opaqueContainers.add(root);
|
|
730
438
|
}
|
|
731
|
-
// What each ancestor declares, and whether it declares anything at all.
|
|
732
439
|
const ancestorIds = [...reach.keys()];
|
|
733
440
|
const memberEdges = cg.getOutgoingEdgesFrom(ancestorIds, ['contains']);
|
|
734
441
|
const memberIdsByAncestor = new Map();
|
|
@@ -740,7 +447,6 @@ function overrideCandidates(cg, nodes, containers) {
|
|
|
740
447
|
memberIdsByAncestor.set(edge.source, [edge.target]);
|
|
741
448
|
}
|
|
742
449
|
const memberNodes = cg.getNodesByIds(memberEdges.map((edge) => edge.target));
|
|
743
|
-
/** Member names an ancestor declares, and whether it declares none we can read. */
|
|
744
450
|
const namesByContainer = new Map();
|
|
745
451
|
for (const [ancestorId, roots] of reach) {
|
|
746
452
|
const names = [];
|
|
@@ -773,4 +479,144 @@ function overrideCandidates(cg, nodes, containers) {
|
|
|
773
479
|
}
|
|
774
480
|
return dropped;
|
|
775
481
|
}
|
|
482
|
+
function ancestorsOf(cg, ids, kinds) {
|
|
483
|
+
const reach = new Map();
|
|
484
|
+
const seen = new Map(ids.map((id) => [id, new Set([id])]));
|
|
485
|
+
let frontier = ids.map((id) => ({ id, roots: new Set([id]) }));
|
|
486
|
+
for (let depth = 0; depth < exports.MAX_OVERRIDE_ANCESTOR_DEPTH && frontier.length > 0; depth++) {
|
|
487
|
+
const rootsOf = new Map(frontier.map((item) => [item.id, item.roots]));
|
|
488
|
+
const edges = cg.getOutgoingEdgesFrom(frontier.map((item) => item.id), kinds);
|
|
489
|
+
const next = new Map();
|
|
490
|
+
for (const edge of edges) {
|
|
491
|
+
if (edge.target === edge.source)
|
|
492
|
+
continue;
|
|
493
|
+
const roots = rootsOf.get(edge.source);
|
|
494
|
+
if (!roots)
|
|
495
|
+
continue;
|
|
496
|
+
const merged = next.get(edge.target) ?? new Set();
|
|
497
|
+
const visited = seen.get(edge.target) ?? new Set();
|
|
498
|
+
const known = reach.get(edge.target) ?? new Set();
|
|
499
|
+
for (const root of roots) {
|
|
500
|
+
if (visited.has(root))
|
|
501
|
+
continue;
|
|
502
|
+
visited.add(root);
|
|
503
|
+
merged.add(root);
|
|
504
|
+
known.add(root);
|
|
505
|
+
}
|
|
506
|
+
seen.set(edge.target, visited);
|
|
507
|
+
if (merged.size > 0)
|
|
508
|
+
next.set(edge.target, merged);
|
|
509
|
+
if (known.size > 0)
|
|
510
|
+
reach.set(edge.target, known);
|
|
511
|
+
}
|
|
512
|
+
frontier = [];
|
|
513
|
+
for (const [id, roots] of next) {
|
|
514
|
+
frontier.push({ id, roots });
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
return reach;
|
|
518
|
+
}
|
|
519
|
+
function carriesDecorator(cg, nodes) {
|
|
520
|
+
const ids = nodes.map((node) => node.id);
|
|
521
|
+
const found = new Set(cg.getOutgoingEdgesFrom(ids, ['decorates']).map((edge) => edge.source));
|
|
522
|
+
for (const id of cg.getUnresolvedReferenceNamesFrom(ids, ['decorates']).keys())
|
|
523
|
+
found.add(id);
|
|
524
|
+
for (const node of nodes)
|
|
525
|
+
if ((node.decorators?.length ?? 0) > 0)
|
|
526
|
+
found.add(node.id);
|
|
527
|
+
return found;
|
|
528
|
+
}
|
|
529
|
+
function byNameHookCandidates(cg, nodes, containers, unreferenced) {
|
|
530
|
+
const dropped = new Set();
|
|
531
|
+
const isHookShaped = (node) => HOOK_KINDS.includes(node.kind) && BY_NAME_DISPATCH_LANGUAGES.has(node.language);
|
|
532
|
+
const methods = nodes.filter((node) => isHookShaped(node) && containers.get(node.id)?.kind === 'class');
|
|
533
|
+
if (methods.length === 0)
|
|
534
|
+
return dropped;
|
|
535
|
+
const classes = new Map();
|
|
536
|
+
for (const node of methods) {
|
|
537
|
+
const container = containers.get(node.id);
|
|
538
|
+
if (container)
|
|
539
|
+
classes.set(container.id, container);
|
|
540
|
+
}
|
|
541
|
+
const registered = carriesDecorator(cg, [...classes.values()]);
|
|
542
|
+
const eligible = methods.filter((node) => registered.has(containers.get(node.id)?.id ?? ''));
|
|
543
|
+
if (eligible.length === 0)
|
|
544
|
+
return dropped;
|
|
545
|
+
const names = new Set(eligible.map((node) => node.name));
|
|
546
|
+
const declarations = unreferenced.filter((node) => names.has(node.name) && isHookShaped(node));
|
|
547
|
+
const declaredIn = containersOf(cg, declarations.filter((node) => !containers.has(node.id)));
|
|
548
|
+
const declaring = new Map();
|
|
549
|
+
for (const node of declarations) {
|
|
550
|
+
const container = containers.get(node.id) ?? declaredIn.get(node.id);
|
|
551
|
+
if (container?.kind !== 'class')
|
|
552
|
+
continue;
|
|
553
|
+
const ids = declaring.get(node.name);
|
|
554
|
+
if (ids)
|
|
555
|
+
ids.add(container.id);
|
|
556
|
+
else
|
|
557
|
+
declaring.set(node.name, new Set([container.id]));
|
|
558
|
+
}
|
|
559
|
+
const declarers = new Set([...declaring.values()].flatMap((ids) => [...ids]));
|
|
560
|
+
const interfacesOf = cg.getUnresolvedReferenceNamesFrom(declarers, ['implements']);
|
|
561
|
+
const interfaces = new Set([...interfacesOf.values()].flat());
|
|
562
|
+
if (interfaces.size === 0)
|
|
563
|
+
return dropped;
|
|
564
|
+
const writers = cg.getUnresolvedReferenceSourcesNamed(interfaces, ['implements']);
|
|
565
|
+
const writerIds = [...new Set([...writers.values()].flatMap((ids) => [...ids]))];
|
|
566
|
+
const typescript = [...cg.getNodesByIds(writerIds).values()].filter((node) => BY_NAME_DISPATCH_LANGUAGES.has(node.language));
|
|
567
|
+
const typescriptIds = new Set(typescript.map((node) => node.id));
|
|
568
|
+
const registeredWriters = carriesDecorator(cg, typescript);
|
|
569
|
+
const implementers = new Map();
|
|
570
|
+
for (const [name, ids] of writers) {
|
|
571
|
+
const own = [...ids].filter((id) => typescriptIds.has(id));
|
|
572
|
+
const registeredCount = own.filter((id) => registeredWriters.has(id)).length;
|
|
573
|
+
if (registeredCount > own.length / 2)
|
|
574
|
+
implementers.set(name, own);
|
|
575
|
+
}
|
|
576
|
+
if (implementers.size === 0)
|
|
577
|
+
return dropped;
|
|
578
|
+
const implementerIds = [...new Set([...implementers.values()].flat())];
|
|
579
|
+
const ancestors = ancestorsOf(cg, implementerIds, ['extends']);
|
|
580
|
+
const inherits = new Map();
|
|
581
|
+
for (const [ancestor, roots] of ancestors) {
|
|
582
|
+
for (const root of roots) {
|
|
583
|
+
const bucket = inherits.get(root);
|
|
584
|
+
if (bucket)
|
|
585
|
+
bucket.push(ancestor);
|
|
586
|
+
else
|
|
587
|
+
inherits.set(root, [ancestor]);
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
const outside = cg.getUnresolvedReferenceNamesFrom([...implementerIds, ...ancestors.keys()], ['extends']);
|
|
591
|
+
const opaque = new Set(implementerIds.filter((id) => outside.has(id)));
|
|
592
|
+
for (const [ancestor, roots] of ancestors) {
|
|
593
|
+
if (outside.has(ancestor))
|
|
594
|
+
for (const root of roots)
|
|
595
|
+
opaque.add(root);
|
|
596
|
+
}
|
|
597
|
+
const hookNames = new Set();
|
|
598
|
+
for (const name of names) {
|
|
599
|
+
const declared = declaring.get(name);
|
|
600
|
+
if (!declared)
|
|
601
|
+
continue;
|
|
602
|
+
const has = (id) => declared.has(id) ||
|
|
603
|
+
opaque.has(id) ||
|
|
604
|
+
(inherits.get(id) ?? []).some((ancestor) => declared.has(ancestor));
|
|
605
|
+
const contracts = new Set([...declared].flatMap((id) => interfacesOf.get(id) ?? []));
|
|
606
|
+
for (const contract of contracts) {
|
|
607
|
+
const own = implementers.get(contract);
|
|
608
|
+
if (!own)
|
|
609
|
+
continue;
|
|
610
|
+
const declaredCount = own.filter((id) => declared.has(id)).length;
|
|
611
|
+
if (declaredCount >= 2 && declaredCount > own.length / 2 && own.every(has)) {
|
|
612
|
+
hookNames.add(name);
|
|
613
|
+
break;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
for (const node of eligible)
|
|
618
|
+
if (hookNames.has(node.name))
|
|
619
|
+
dropped.add(node.id);
|
|
620
|
+
return dropped;
|
|
621
|
+
}
|
|
776
622
|
//# sourceMappingURL=dead-code.js.map
|