@colbymchenry/codegraph-win32-arm64 1.6.1 → 1.6.3
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 +427 -684
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/bin/command-supervision.d.ts +7 -0
- package/lib/dist/bin/command-supervision.d.ts.map +1 -1
- package/lib/dist/bin/command-supervision.js +30 -74
- 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 +641 -40
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1370 -1398
- 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 +81 -0
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +91 -500
- 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 +34 -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 +15 -133
- package/lib/dist/extraction/astro-extractor.js.map +1 -1
- package/lib/dist/extraction/cfml-extractor.d.ts +102 -10
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/cfml-extractor.js +260 -179
- package/lib/dist/extraction/cfml-extractor.js.map +1 -1
- package/lib/dist/extraction/commonjs-requires.d.ts +23 -0
- package/lib/dist/extraction/commonjs-requires.d.ts.map +1 -0
- package/lib/dist/extraction/commonjs-requires.js +37 -0
- package/lib/dist/extraction/commonjs-requires.js.map +1 -0
- 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 +145 -206
- package/lib/dist/extraction/function-ref.js.map +1 -1
- package/lib/dist/extraction/generated-detection.d.ts +9 -0
- package/lib/dist/extraction/generated-detection.d.ts.map +1 -1
- package/lib/dist/extraction/generated-detection.js +29 -154
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +47 -4
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +91 -374
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +216 -11
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +703 -1368
- 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 +29 -131
- 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.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 +140 -28
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +876 -823
- 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.d.ts.map +1 -1
- package/lib/dist/extraction/languages/csharp.js +11 -54
- package/lib/dist/extraction/languages/csharp.js.map +1 -1
- package/lib/dist/extraction/languages/dart.d.ts +84 -0
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
- package/lib/dist/extraction/languages/dart.js +335 -159
- 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 +15 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
- package/lib/dist/extraction/languages/kotlin.js +69 -150
- 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.js +5 -42
- 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.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.d.ts +15 -0
- package/lib/dist/extraction/languages/swift.d.ts.map +1 -1
- package/lib/dist/extraction/languages/swift.js +33 -27
- 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 +71 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/typescript.js +86 -41
- 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 +16 -0
- package/lib/dist/extraction/parse-budget.d.ts.map +1 -0
- package/lib/dist/extraction/parse-budget.js +11 -0
- package/lib/dist/extraction/parse-budget.js.map +1 -0
- package/lib/dist/extraction/parse-pool.d.ts +41 -5
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +74 -158
- 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 +7 -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 +85 -0
- package/lib/dist/extraction/sfc-script.d.ts.map +1 -0
- package/lib/dist/extraction/sfc-script.js +136 -0
- package/lib/dist/extraction/sfc-script.js.map +1 -0
- 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 +5 -37
- package/lib/dist/extraction/store-worker.js.map +1 -1
- package/lib/dist/extraction/store-writer.d.ts +10 -2
- package/lib/dist/extraction/store-writer.d.ts.map +1 -1
- package/lib/dist/extraction/store-writer.js +8 -32
- 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 +16 -122
- 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 +6 -153
- 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 +455 -9
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +1998 -2517
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/extraction/vue-extractor.d.ts +20 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/vue-extractor.js +113 -115
- package/lib/dist/extraction/vue-extractor.js.map +1 -1
- package/lib/dist/extraction/vue-options-api.d.ts +28 -0
- package/lib/dist/extraction/vue-options-api.d.ts.map +1 -0
- package/lib/dist/extraction/vue-options-api.js +164 -0
- package/lib/dist/extraction/vue-options-api.js.map +1 -0
- 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-cobol.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts +6 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -1
- package/lib/dist/extraction/wasm-runtime-flags.js +1 -88
- 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 +17 -0
- package/lib/dist/graph/branch-guards.d.ts.map +1 -1
- package/lib/dist/graph/branch-guards.js +98 -250
- 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/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 +85 -219
- 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 +2 -2
- package/lib/dist/graph/queries.d.ts.map +1 -1
- package/lib/dist/graph/queries.js +2 -135
- 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/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 +21 -0
- package/lib/dist/graph/test-code.d.ts.map +1 -0
- package/lib/dist/graph/test-code.js +50 -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 +98 -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 +195 -25
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +697 -1105
- 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 +9 -5
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +25 -159
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/instructions-template.d.ts +1 -1
- package/lib/dist/installer/instructions-template.js +0 -37
- 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.js +0 -102
- 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 +81 -11
- package/lib/dist/installer/targets/shared.d.ts.map +1 -1
- package/lib/dist/installer/targets/shared.js +183 -129
- 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.map +1 -1
- package/lib/dist/mcp/daemon-paths.js +2 -79
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-registry.d.ts +44 -0
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +189 -118
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +23 -0
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +89 -373
- 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 +10 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +41 -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.js +0 -116
- package/lib/dist/mcp/explore-diagnostics.js.map +1 -1
- 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/index-freshness-worker.js +5 -4
- package/lib/dist/mcp/index-freshness-worker.js.map +1 -1
- package/lib/dist/mcp/index-freshness.d.ts +7 -1
- package/lib/dist/mcp/index-freshness.d.ts.map +1 -1
- package/lib/dist/mcp/index-freshness.js +20 -12
- 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 +19 -1
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +118 -293
- 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/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.map +1 -1
- package/lib/dist/mcp/project-lifecycle.js +55 -21
- package/lib/dist/mcp/project-lifecycle.js.map +1 -1
- package/lib/dist/mcp/proxy.d.ts +26 -8
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +209 -223
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +58 -3
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +140 -100
- 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.js +0 -31
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/session.d.ts +27 -0
- package/lib/dist/mcp/session.d.ts.map +1 -1
- package/lib/dist/mcp/session.js +29 -130
- 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 +159 -20
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +730 -3545
- 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.js +1 -138
- 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 +19 -52
- 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 +96 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.js +695 -0
- package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -0
- 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 +15 -1
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +1487 -1234
- 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 +60 -61
- 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/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 +142 -0
- package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/angular-router.js +959 -0
- package/lib/dist/resolution/frameworks/angular-router.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/astro.js +30 -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 +106 -101
- 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/expo-modules.d.ts +10 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.js +79 -65
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.d.ts +6 -0
- package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.js +64 -183
- package/lib/dist/resolution/frameworks/expo-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/express.js +215 -173
- package/lib/dist/resolution/frameworks/express.js.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.js +11 -112
- 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 +15 -61
- 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 +16 -2
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +20 -48
- 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 +209 -147
- 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 +291 -71
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
- package/lib/dist/resolution/frameworks/name-heuristic.d.ts +35 -0
- package/lib/dist/resolution/frameworks/name-heuristic.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/name-heuristic.js +33 -0
- package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -0
- package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.js +236 -192
- 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 +11 -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.d.ts +20 -0
- package/lib/dist/resolution/frameworks/page-component.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/page-component.js +31 -0
- package/lib/dist/resolution/frameworks/page-component.js.map +1 -0
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/play.js +27 -33
- package/lib/dist/resolution/frameworks/play.js.map +1 -1
- package/lib/dist/resolution/frameworks/python.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/python.js +106 -116
- 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 +17 -7
- package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.js +21 -79
- package/lib/dist/resolution/frameworks/react-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/react.d.ts +68 -1
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react.js +1721 -114
- package/lib/dist/resolution/frameworks/react.js.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.js +152 -52
- 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 +51 -70
- 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 +9 -74
- 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.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/swift.js +199 -167
- 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 +26 -10
- package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue-router.js +147 -147
- package/lib/dist/resolution/frameworks/vue-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/vue.d.ts +9 -2
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue.js +69 -107
- 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 +298 -23
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +1802 -1280
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +449 -5
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +1477 -981
- package/lib/dist/resolution/index.js.map +1 -1
- package/lib/dist/resolution/js-builtins.d.ts +14 -0
- package/lib/dist/resolution/js-builtins.d.ts.map +1 -1
- package/lib/dist/resolution/js-builtins.js +15 -13
- 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 +185 -0
- package/lib/dist/resolution/module-importers.d.ts.map +1 -0
- package/lib/dist/resolution/module-importers.js +588 -0
- package/lib/dist/resolution/module-importers.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +891 -8
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +25013 -2928
- 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/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/react-router-synthesizer.d.ts +2 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/react-router-synthesizer.js +67 -48
- package/lib/dist/resolution/react-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/resolver-pool.d.ts +43 -3
- package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-pool.js +55 -97
- 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 +10 -36
- 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 +68 -0
- package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -0
- package/lib/dist/resolution/swift-type-visibility.js +355 -0
- package/lib/dist/resolution/swift-type-visibility.js.map +1 -0
- 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 +7 -2
- package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/tier-synthesizer.js +318 -121
- package/lib/dist/resolution/tier-synthesizer.js.map +1 -1
- package/lib/dist/resolution/type-parameters.d.ts +34 -0
- package/lib/dist/resolution/type-parameters.d.ts.map +1 -0
- package/lib/dist/resolution/type-parameters.js +285 -0
- package/lib/dist/resolution/type-parameters.js.map +1 -0
- package/lib/dist/resolution/types.d.ts +209 -10
- 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 +570 -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 +29 -2
- package/lib/dist/sync/worktree.d.ts.map +1 -1
- package/lib/dist/sync/worktree.js +59 -78
- 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 +68 -146
- 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.d.ts +7 -0
- package/lib/dist/ui-server/api/effects.d.ts.map +1 -1
- package/lib/dist/ui-server/api/effects.js +20 -103
- package/lib/dist/ui-server/api/effects.js.map +1 -1
- package/lib/dist/ui-server/api/entrypoints.d.ts +6 -0
- package/lib/dist/ui-server/api/entrypoints.d.ts.map +1 -1
- package/lib/dist/ui-server/api/entrypoints.js +73 -130
- 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 +41 -6
- package/lib/dist/ui-server/api/map.d.ts.map +1 -1
- package/lib/dist/ui-server/api/map.js +95 -308
- package/lib/dist/ui-server/api/map.js.map +1 -1
- package/lib/dist/ui-server/api/node.d.ts.map +1 -1
- package/lib/dist/ui-server/api/node.js +4 -109
- 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 +6 -0
- package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -1
- package/lib/dist/ui-server/api/route-roots.js +18 -39
- package/lib/dist/ui-server/api/route-roots.js.map +1 -1
- package/lib/dist/ui-server/api/routes.d.ts +2 -0
- package/lib/dist/ui-server/api/routes.d.ts.map +1 -1
- package/lib/dist/ui-server/api/routes.js +47 -47
- 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 +16 -171
- 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 +105 -373
- 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 +20 -94
- package/lib/dist/ui-server/api/trails.js.map +1 -1
- package/lib/dist/ui-server/api/when.d.ts +10 -2
- package/lib/dist/ui-server/api/when.d.ts.map +1 -1
- package/lib/dist/ui-server/api/when.js +32 -44
- 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.d.ts +28 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.js +114 -0
- package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -0
- package/lib/dist/ui-server/highlight/index.d.ts.map +1 -1
- package/lib/dist/ui-server/highlight/index.js +7 -133
- 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.d.ts +7 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.d.ts.map +1 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.js +15 -0
- package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -0
- 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 +61 -10
- package/lib/dist/upgrade/index.d.ts.map +1 -1
- package/lib/dist/upgrade/index.js +191 -225
- 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/viewer/assets/{index-D4S7YUPf.js → index-BSGpxBr9.js} +60 -58
- package/lib/dist/viewer/index.html +1 -1
- package/lib/dist/worker-teardown.d.ts +48 -0
- package/lib/dist/worker-teardown.d.ts.map +1 -0
- package/lib/dist/worker-teardown.js +53 -0
- package/lib/dist/worker-teardown.js.map +1 -0
- package/lib/kernel/codegraph-kernel.node +2 -2
- package/lib/node_modules/.package-lock.json +4 -4
- package/lib/node_modules/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,42 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* `GET /api/steps` — what happens from here: a screen, a handler or any
|
|
4
|
-
* symbol as the ANCHOR, and everything it sets in motion drawn as typed steps.
|
|
5
|
-
*
|
|
6
|
-
* The Screens view (`screens.ts`) is already a picture of steps with one step
|
|
7
|
-
* type: it folds `HomeScreen → ItemsGrid → ItemCard → openObjectDetail` into
|
|
8
|
-
* one arrow labelled with its condition, because the reader wants the
|
|
9
|
-
* transition, not the plumbing. This endpoint keeps that fold and widens the
|
|
10
|
-
* set of things worth a box. Walking FORWARD from the anchor over calls,
|
|
11
|
-
* renders, handler bindings and navigations, a node is a step when it is:
|
|
12
|
-
*
|
|
13
|
-
* - a **screen** (a route reached over a `navigates` edge),
|
|
14
|
-
* - a **trigger** — a function wired as a value (`onPress={handleX}`,
|
|
15
|
-
* `addListener('x', handleX)`), the user's or the platform's way in,
|
|
16
|
-
* - a **bridge** call — the language changes under the call, JS → native
|
|
17
|
-
* (the React Native bridge resolver's edges, or any family crossing),
|
|
18
|
-
* - a native **event** landing back in JS (`sendEvent(withName:)` → the
|
|
19
|
-
* listener, via the RN event channel),
|
|
20
|
-
* - a **store** action — a function in a store file, the state it writes,
|
|
21
|
-
* - an **effect** — a call that leaves the index into the network, storage,
|
|
22
|
-
* the device or telemetry, drawn as its own box beside the function that
|
|
23
|
-
* makes it.
|
|
24
|
-
*
|
|
25
|
-
* Everything else — hooks, helpers, services, the components between a
|
|
26
|
-
* screen and its handlers — is `via`: listed on the link, never a box. The
|
|
27
|
-
* branch conditions along the folded chain join into the link's `when`, read
|
|
28
|
-
* from the source at request time exactly as the Screens view reads them.
|
|
29
|
-
*
|
|
30
|
-
* The picture is finite because it is ANCHORED and CAPPED, not because the
|
|
31
|
-
* graph is small: a bounded depth in steps, a bounded fan-out per node, a
|
|
32
|
-
* bounded number of nodes folded per step, and hubs and shared chrome (a top
|
|
33
|
-
* bar rendered on ten screens) are dead ends rather than paths. Every cap
|
|
34
|
-
* that fired is reported on the step it fired at, so a short picture never
|
|
35
|
-
* reads as "nothing else happens here".
|
|
36
|
-
*
|
|
37
|
-
* Read from the graph at request time, never cached: the `when` labels and
|
|
38
|
-
* the effect sites are read from the source as it stands.
|
|
39
|
-
*/
|
|
40
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
3
|
exports.STORE_FILE = exports.MAX_LIMIT = exports.DEFAULT_LIMIT = exports.MAX_DEPTH = exports.DEFAULT_DEPTH = void 0;
|
|
42
4
|
exports.crossing = crossing;
|
|
@@ -54,51 +16,22 @@ const nextjs_1 = require("../../resolution/frameworks/nextjs");
|
|
|
54
16
|
const routes_1 = require("./routes");
|
|
55
17
|
const wire_1 = require("./wire");
|
|
56
18
|
const query_utils_1 = require("../../search/query-utils");
|
|
57
|
-
|
|
58
|
-
// Caps
|
|
59
|
-
// =============================================================================
|
|
19
|
+
const utils_1 = require("../../utils");
|
|
60
20
|
exports.DEFAULT_DEPTH = 8;
|
|
61
21
|
exports.MAX_DEPTH = 14;
|
|
62
22
|
exports.DEFAULT_LIMIT = 120;
|
|
63
23
|
exports.MAX_LIMIT = 400;
|
|
64
|
-
/** Nodes folded while exploring from ONE step before the walk stops. */
|
|
65
24
|
const MAX_FOLDED_PER_STEP = 300;
|
|
66
|
-
/** Hops of folded plumbing between two steps. */
|
|
67
25
|
const MAX_FOLD_DEPTH = 7;
|
|
68
|
-
/** Outgoing edges followed from one node; past this the node is a god function and the rest is announced. */
|
|
69
26
|
const MAX_FANOUT = 80;
|
|
70
|
-
/** Unresolved-reference scans (for effects) per request. */
|
|
71
27
|
const MAX_EFFECT_SCANS = 800;
|
|
72
|
-
/** Call sites read for conditions and arguments per request. */
|
|
73
28
|
const MAX_WHEN_SITES = 1600;
|
|
74
|
-
/** Call sites read for the callee as written (effect classification) per request — lookups on trees the guards parsed anyway. */
|
|
75
29
|
const MAX_CALL_SITES = 4000;
|
|
76
|
-
/** Longest effect-box label before its argument list is cut. */
|
|
77
30
|
const MAX_EFFECT_LABEL = 56;
|
|
78
|
-
/**
|
|
79
|
-
* A component rendered by this many distinct parents is chrome (a top bar, a
|
|
80
|
-
* button), not a screen's own behaviour. Higher than the Screens view's 3: that
|
|
81
|
-
* one attributes navigations, where three screens sharing a link is already
|
|
82
|
-
* chrome; this one decides what to WALK INTO, and a capture component shared
|
|
83
|
-
* by three capture flows is the screen's whole body.
|
|
84
|
-
*/
|
|
85
31
|
const SHARED_CHROME_MIN = 5;
|
|
86
|
-
/** Edges walked forward. `contains` only function → function (a hook's handlers); `references` only function-as-value. */
|
|
87
32
|
const WALK_KINDS = ['calls', 'instantiates', 'navigates', 'references', 'contains'];
|
|
88
|
-
// =============================================================================
|
|
89
|
-
// Classification
|
|
90
|
-
// =============================================================================
|
|
91
33
|
const JS_FAMILY = new Set(['javascript', 'typescript', 'tsx', 'jsx']);
|
|
92
34
|
const NATIVE_FAMILY = new Set(['swift', 'objc', 'java', 'kotlin']);
|
|
93
|
-
/**
|
|
94
|
-
* JS → native is a bridge call; native → JS is an event. Anything else is one
|
|
95
|
-
* family — unless the edge itself says which way it crosses: a synthesized
|
|
96
|
-
* channel (`resolution/tier-synthesizer.ts`) marks a client's request onto its
|
|
97
|
-
* own route `client→server`, a socket message back `server→client`, and a
|
|
98
|
-
* queue job or a bus event as a `channel` whose landing is an arrival; a
|
|
99
|
-
* server action called from a client file is marked `client→server` at
|
|
100
|
-
* request time, by its directive.
|
|
101
|
-
*/
|
|
102
35
|
function crossing(from, to, meta = {}) {
|
|
103
36
|
if (meta.tier === 'client→server')
|
|
104
37
|
return 'bridge';
|
|
@@ -112,37 +45,20 @@ function crossing(from, to, meta = {}) {
|
|
|
112
45
|
return 'event';
|
|
113
46
|
return null;
|
|
114
47
|
}
|
|
115
|
-
/**
|
|
116
|
-
* A file that holds state: a store, a slice, a reducer. The graph has no
|
|
117
|
-
* "store" kind — a Zustand action is an ordinary function node — so the file
|
|
118
|
-
* is the evidence, and the legend says so.
|
|
119
|
-
*/
|
|
120
48
|
exports.STORE_FILE = /(?:^|\/)(?:stores?|storage|state|slices?|reducers?)\/|\.(?:store|storage|slice|reducer)\.[cm]?[jt]sx?$/i;
|
|
121
49
|
function isStoreFile(file) {
|
|
122
50
|
return exports.STORE_FILE.test(file.replace(/\\/g, '/'));
|
|
123
51
|
}
|
|
124
|
-
/**
|
|
125
|
-
* What a call is when it leaves the index, by the reference text alone — the
|
|
126
|
-
* mobile app's table, kept for callers that have no language in hand. The
|
|
127
|
-
* Steps walk itself classifies on the call AS WRITTEN with the language and
|
|
128
|
-
* the project kind (`effects.ts`).
|
|
129
|
-
*/
|
|
130
52
|
function effectCategory(referenceName) {
|
|
131
53
|
return (0, effects_1.classifyEffect)({ text: referenceName, kind: 'calls' })?.category ?? null;
|
|
132
54
|
}
|
|
133
|
-
/** A method of a repository / DAO / mapper, by the container's name — the ORM boundary in a project that types it. */
|
|
134
55
|
const REPOSITORY_CONTAINER = /(?:Repository|Repositories|Repo|Dao|DAO|Mapper|Store|Datastore)$/;
|
|
135
|
-
/** Decorators that gate a handler: guards, interceptors, pipes, roles, auth, validation, transactions, throttles. */
|
|
136
56
|
const GUARD_DECORATOR = /^(?:UseGuards|UseInterceptors|UsePipes|UseFilters|Roles|Auth|Public|Permissions|Throttle|SkipThrottle|Authorize|AllowAnonymous|PreAuthorize|PostAuthorize|Secured|RolesAllowed|PermitAll|DenyAll|Transactional|Validated|login_required|permission_required|user_passes_test|staff_member_required|require_http_methods|require_POST|require_GET|csrf_exempt|csrf_protect|ratelimit|throttle_classes|permission_classes|authentication_classes|cache_page|ValidateAntiForgeryToken|RequireAuthorization|RequireRole|RequireHttps|EnableCors|CrossOrigin|Cacheable|CacheEvict|CachePut|RateLimiter|CircuitBreaker|Retry|Timeout|Bulkhead|jwt_required|Security|ApiBearerAuth|ApiKeyAuth|BearerAuth|OAuth|Scopes|Roles|HasRole|HasPermission|Idempotent|Lock|Locked|Retryable|Recover)$|Guard|Interceptor|Pipe$|Filter$|Auth|Role|Permission|Throttle|Valid|Transaction|Csrf|Limit/i;
|
|
137
|
-
/** Decorators that ARE the route, the DI wiring, or documentation — never a guard. */
|
|
138
57
|
const NOT_A_GUARD = /^(?:Get|Post|Put|Patch|Delete|Head|Options|All|Controller|RestController|Resolver|Query|Mutation|Subscription|Injectable|Module|Api\w*|Http(?:Get|Post|Put|Patch|Delete|Head|Options)|Route|RequestMapping|\w+Mapping|Component|Service|Repository|Bean|Autowired|Override|Inject|Param|Body|Res|Req|Headers|Ip|HostParam|Session|UploadedFiles?|HttpCode|Header|Redirect|Render|Version|SerializeOptions|ResponseBody|ResponseStatus|Produces|Consumes|FromBody|FromRoute|FromQuery|FromForm|FromHeader|FromServices|Path|PathVariable|RequestParam|RequestBody|RequestHeader|ModelAttribute|Valid|Args|Context|Parent|Info|Field|ObjectType|InputType|ArgsType|Entity|Column|PrimaryGeneratedColumn|OneToMany|ManyToOne|Prop|Schema|Type|Expose|Exclude|Transform|IsString|IsNumber|IsOptional|Length|Min|Max|Deprecated|SuppressWarnings|FunctionalInterface|Slf4j|Data|Builder|Getter|Setter|NoArgsConstructor|AllArgsConstructor|RequiredArgsConstructor|Value|ConfigurationProperties|Configuration|EnableScheduling|SpringBootApplication|Profile|Order|Primary|Qualifier|Lazy|Scope|JsonProperty|JsonIgnore|Nullable|NonNull|NotNull|Size|Pattern|Email|Positive|router\.\w+|app\.\w+|api\.\w+|bp\.\w+|blueprint\.\w+|\w+\.(?:route|get|post|put|patch|delete))$/;
|
|
139
|
-
/** Decorators that fire a function from outside a request: a job, an event, a message, a schedule. */
|
|
140
58
|
const CONSUMER_DECORATOR = /^(?:Process|Processor|OnEvent|OnQueueEvent|OnWorkerEvent|OnGlobalQueueEvent|Cron|Interval|Timeout|MessagePattern|EventPattern|SubscribeMessage|Scheduled|Schedules?|KafkaListener|RabbitListener|RabbitSubscribe|RabbitRPC|JmsListener|SqsListener|SqsMessageHandler|EventListener|TransactionalEventListener|StreamListener|ServiceActivator|receiver|shared_task|task|periodic_task|app\.task|celery\.task|on|hears|command|event|listen|listener|Consume|Consumer|Subscribe|Subscriber|CapSubscribe|Function|FunctionName|TimerTrigger|QueueTrigger|ServiceBusTrigger|EventGridTrigger|BlobTrigger|CosmosDBTrigger|Job|job|Worker|worker|EventHandler|CommandHandler|QueryHandler|OnMessage|MessageHandler|GrpcMethod|GrpcStreamMethod|WebSocketGateway|dramatiq\.actor|actor|huey\.task|db_task|Signal|signal|hook|Hook|OnModuleInit|OnApplicationBootstrap|PostConstruct|PreDestroy|Bean|Startup|Shutdown)$/;
|
|
141
|
-
/** The name of a decorator, before its arguments. */
|
|
142
59
|
function decoratorName(text) {
|
|
143
60
|
return text.replace(/\(.*$/s, '').trim();
|
|
144
61
|
}
|
|
145
|
-
/** The first string literal in a decorator's arguments — `'email'` of `@Process('email')`. */
|
|
146
62
|
function decoratorLiteral(text) {
|
|
147
63
|
const m = /\(\s*(['"`])((?:(?!\1).)*)\1/.exec(text);
|
|
148
64
|
return m ? `'${m[2]}'` : null;
|
|
@@ -153,13 +69,43 @@ function isGuardDecorator(text) {
|
|
|
153
69
|
return false;
|
|
154
70
|
return GUARD_DECORATOR.test(name);
|
|
155
71
|
}
|
|
156
|
-
/** FastAPI: `dependencies=[Depends(auth), Depends(rate_limit)]` inside the route decorator. */
|
|
157
72
|
function dependenciesIn(text) {
|
|
158
73
|
const m = /dependencies\s*=\s*\[([^\]]*)\]/.exec(text);
|
|
159
74
|
if (!m)
|
|
160
75
|
return [];
|
|
161
76
|
return m[1].split(/,(?![^()]*\))/).map((x) => x.trim()).filter(Boolean);
|
|
162
77
|
}
|
|
78
|
+
function siteTriggerOf(meta) {
|
|
79
|
+
const t = meta.trigger;
|
|
80
|
+
if (!t || typeof t !== 'object' || t.kind !== 'prop' || typeof t.name !== 'string')
|
|
81
|
+
return null;
|
|
82
|
+
return { kind: 'prop', name: t.name, of: typeof t.of === 'string' ? t.of : null };
|
|
83
|
+
}
|
|
84
|
+
function springViewString(expression) {
|
|
85
|
+
let out = '';
|
|
86
|
+
let rest = expression.trim();
|
|
87
|
+
let first = true;
|
|
88
|
+
while (rest.length > 0) {
|
|
89
|
+
const lit = /^"((?:[^"\\]|\\.)*)"/.exec(rest);
|
|
90
|
+
if (lit) {
|
|
91
|
+
out += lit[1].replace(/\$\{[^}]*\}|\$\w+/g, '${…}');
|
|
92
|
+
rest = rest.slice(lit[0].length).trim();
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
if (first)
|
|
96
|
+
return null;
|
|
97
|
+
const operand = /^[^+]+/.exec(rest);
|
|
98
|
+
out += '${…}';
|
|
99
|
+
rest = rest.slice(operand ? operand[0].length : rest.length).trim();
|
|
100
|
+
}
|
|
101
|
+
first = false;
|
|
102
|
+
if (rest.startsWith('+'))
|
|
103
|
+
rest = rest.slice(1).trim();
|
|
104
|
+
else
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
return first ? null : out;
|
|
108
|
+
}
|
|
163
109
|
async function buildSteps(cg, projectRoot, query) {
|
|
164
110
|
const started = Date.now();
|
|
165
111
|
const depthCap = (0, respond_1.intParam)(query, 'depth', { min: 1, max: exports.MAX_DEPTH, default: exports.DEFAULT_DEPTH });
|
|
@@ -168,36 +114,23 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
168
114
|
const stats = cg.getStats();
|
|
169
115
|
const index = { lastIndexedAt: cg.getLastIndexedAt() ?? null, edges: stats.edgeCount, files: stats.fileCount };
|
|
170
116
|
const { anchor, ambiguous } = resolveAnchor(cg, query);
|
|
171
|
-
// Route → where its code starts: the handler a resolver named, the page a
|
|
172
|
-
// screen file exports, or the route itself standing in for an inline
|
|
173
|
-
// handler (`route-roots.ts`) — and what kind of project this is, for the
|
|
174
|
-
// words the viewer uses.
|
|
175
117
|
const routes = cg.getNodesByKind('route');
|
|
176
118
|
const roots = (0, route_roots_1.routeRoots)(cg, routes);
|
|
177
119
|
const project = projectKind(routes, stats.edgesByKind?.navigates ?? 0);
|
|
178
120
|
const reader = (0, when_1.createSiteReader)(cg, projectRoot, MAX_WHEN_SITES);
|
|
179
121
|
const calls = (0, when_1.createSiteReader)(cg, projectRoot, MAX_CALL_SITES);
|
|
180
|
-
/** The conditions a site runs under, structured — one read, joined where a string is wanted. */
|
|
181
122
|
const guardsAt = (caller, site) => reader.guards(caller, site);
|
|
182
|
-
/** The loops a site is written inside — a run of calls that happens once per item. */
|
|
183
123
|
const loopsAt = (caller, site) => reader.loops(caller, site);
|
|
184
124
|
const argsAt = (caller, site) => reader.args(caller, site);
|
|
185
125
|
const withArgs = async (site, caller, at) => {
|
|
186
126
|
const args = await argsAt(caller, at);
|
|
187
127
|
return args === null ? site : { ...site, args };
|
|
188
128
|
};
|
|
189
|
-
/** The call as written at a site, and what it passes — one read for both. */
|
|
190
129
|
const callAt = (caller, site) => calls.callSite(caller, site);
|
|
191
|
-
/** A hop's position with its call's span and enclosing call, read from the tree; the bare position when unreadable. */
|
|
192
130
|
const hopAt = async (caller, at, callee) => {
|
|
193
131
|
const line = at.line ?? caller.startLine;
|
|
194
132
|
const column = at.column ?? 0;
|
|
195
133
|
const read = at.line ? await callAt(caller, { ...at, ...(callee ? { callee } : {}) }) : null;
|
|
196
|
-
// The read must be THIS call. An inline handler's edges carry the ROUTE's
|
|
197
|
-
// line (`router.post('/users/login', async (req, res) => {`), where the
|
|
198
|
-
// only call is the registration itself — and taking its span would make
|
|
199
|
-
// every call in the handler read as written inside it, and so as running
|
|
200
|
-
// first. A miss is a bare position: no span to nest by, no `within`.
|
|
201
134
|
const last = (n) => n.replace(/\([^()]*\)/g, '').split(/[.:]/).pop() ?? n;
|
|
202
135
|
const usable = read !== null && (!callee || last(read.callee) === last(callee));
|
|
203
136
|
if (!usable)
|
|
@@ -215,12 +148,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
215
148
|
const column = at.column ?? 0;
|
|
216
149
|
return { file: caller.filePath, line, column, end: { line, column }, within: null };
|
|
217
150
|
};
|
|
218
|
-
// The declared type of a receiver: `OwnerRepository owners` in a Spring
|
|
219
|
-
// controller makes `owners.save` the database; `private readonly
|
|
220
|
-
// usersService: UsersService` in a Nest controller says where
|
|
221
|
-
// `this.usersService.findByEmail` goes. The index keeps the first in a
|
|
222
|
-
// field's signature and nothing of the second, so the class body is read
|
|
223
|
-
// from the tree at request time, once per class.
|
|
224
151
|
const fileTypes = new Map();
|
|
225
152
|
const classTypes = new Map();
|
|
226
153
|
const receiverTypeFor = async (caller, callee) => {
|
|
@@ -238,8 +165,7 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
238
165
|
if ((n.kind !== 'field' && n.kind !== 'property' && n.kind !== 'variable' && n.kind !== 'parameter') || !n.signature)
|
|
239
166
|
continue;
|
|
240
167
|
const sig = n.signature.replace(/\s+/g, ' ').trim();
|
|
241
|
-
|
|
242
|
-
const typed = new RegExp(`(?:^|\\s)([A-Z][\\w<>,?. ]*?)\\s+${n.name}\\b`).exec(sig) ?? new RegExp(`\\b${n.name}\\s*:\\s*([A-Z][\\w<>,?. ]*)`).exec(sig);
|
|
168
|
+
const typed = new RegExp(`(?:^|\\s)([A-Z][\\w<>,?. ]*?)\\s+${(0, utils_1.escapeRegExp)(n.name)}\\b`).exec(sig) ?? new RegExp(`\\b${(0, utils_1.escapeRegExp)(n.name)}\\s*:\\s*([A-Z][\\w<>,?. ]*)`).exec(sig);
|
|
243
169
|
if (typed && !types.has(n.name))
|
|
244
170
|
types.set(n.name, typed[1].trim());
|
|
245
171
|
}
|
|
@@ -256,12 +182,7 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
256
182
|
}
|
|
257
183
|
return types;
|
|
258
184
|
};
|
|
259
|
-
// Where a member call really goes, by the receiver's declared type: the
|
|
260
|
-
// class named by the type, and its method of the call's name. Null when the
|
|
261
|
-
// type names nothing in the index (an ORM's `Repository<Cat>`) — then the
|
|
262
|
-
// call leaves the index, and the effect table says as what.
|
|
263
185
|
const classByName = new Map();
|
|
264
|
-
/** The class / interface / struct a declared type names in the index, or null for a library's. */
|
|
265
186
|
const classOfType = async (type) => {
|
|
266
187
|
const typeName = type.replace(/<.*$/, '').replace(/^[*&]+/, '').replace(/[?!]$/, '').split(/[.:]/).pop()?.trim() ?? '';
|
|
267
188
|
if (!typeName || /^(?:string|number|boolean|any|unknown|object|void|String|Integer|Long|Boolean|int|long|bool|var|dynamic|Object|List|Map|Set|Array|Promise|Optional|Task|IEnumerable|Iterable)$/.test(typeName))
|
|
@@ -274,6 +195,26 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
274
195
|
}
|
|
275
196
|
return cls;
|
|
276
197
|
};
|
|
198
|
+
const projectTypes = new Map();
|
|
199
|
+
const declaresSwiftType = async (callee) => {
|
|
200
|
+
const root = callee.replace(/^(?:self|Self)\./, '').split(/[.(:<]/)[0] ?? '';
|
|
201
|
+
if (!/^[A-Z]\w*$/.test(root))
|
|
202
|
+
return false;
|
|
203
|
+
let known = projectTypes.get(root);
|
|
204
|
+
if (known === undefined) {
|
|
205
|
+
known = false;
|
|
206
|
+
for (const n of cg.getNodesByName(root)) {
|
|
207
|
+
if (n.language !== 'swift' || !['class', 'struct', 'enum', 'interface', 'protocol'].includes(n.kind))
|
|
208
|
+
continue;
|
|
209
|
+
if (!(await reader.swiftExtension(n))) {
|
|
210
|
+
known = true;
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
projectTypes.set(root, known);
|
|
215
|
+
}
|
|
216
|
+
return known;
|
|
217
|
+
};
|
|
277
218
|
const resolveByReceiver = async (caller, callee) => {
|
|
278
219
|
const segments = callee.replace(/\([^()]*\)/g, '').split(/[.:]+/).filter(Boolean);
|
|
279
220
|
if (segments.length < 2)
|
|
@@ -288,12 +229,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
288
229
|
const members = cg.getNodesInFile(cls.filePath).filter((n) => (n.kind === 'method' || n.kind === 'function') && n.name === method && n.startLine >= cls.startLine && n.endLine <= cls.endLine);
|
|
289
230
|
return members[0] ?? null;
|
|
290
231
|
};
|
|
291
|
-
/**
|
|
292
|
-
* A name-match that the call as written disproves: the target is a method of
|
|
293
|
-
* the CALLER's own class, but the call names a receiver that is not `this` —
|
|
294
|
-
* and in the JS family a method of your own class cannot be called any other
|
|
295
|
-
* way. Only there: `self.` is a convention elsewhere, not a rule.
|
|
296
|
-
*/
|
|
297
232
|
const ownMethodWithoutReceiver = (caller, target, written) => {
|
|
298
233
|
if (!JS_FAMILY.has(caller.language) || target.kind !== 'method')
|
|
299
234
|
return false;
|
|
@@ -302,7 +237,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
302
237
|
const container = (q) => q.replace(/[.:]+[^.:]*$/, '');
|
|
303
238
|
return caller.filePath === target.filePath && container(caller.qualifiedName) === container(target.qualifiedName);
|
|
304
239
|
};
|
|
305
|
-
/** A method the walk cannot enter (an interface's, an ORM's) on a repository-shaped container. */
|
|
306
240
|
const repositoryMethod = (target) => {
|
|
307
241
|
if (target.kind !== 'method' && target.kind !== 'function')
|
|
308
242
|
return false;
|
|
@@ -313,7 +247,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
313
247
|
return false;
|
|
314
248
|
return cg.getOutgoingEdgesFrom([target.id], WALK_KINDS).length === 0;
|
|
315
249
|
};
|
|
316
|
-
/** What runs before a route's handler: the middleware arguments at the registration, or the guard decorators on it. */
|
|
317
250
|
const chainFor = async (route, root) => {
|
|
318
251
|
const after = [];
|
|
319
252
|
if (JS_FAMILY.has(route.language)) {
|
|
@@ -345,7 +278,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
345
278
|
}
|
|
346
279
|
return [...new Set(after)];
|
|
347
280
|
};
|
|
348
|
-
/** The request a route's handler serves, as its trigger; a Next page's own work fires from its load. */
|
|
349
281
|
const requestTrigger = async (route, root) => {
|
|
350
282
|
const { method, path } = (0, routes_1.splitRouteName)(route.name);
|
|
351
283
|
if (method === null) {
|
|
@@ -356,7 +288,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
356
288
|
const after = await chainFor(route, root);
|
|
357
289
|
return { kind: 'request', name: method, of: path, in: basename(route.filePath), ...(after.length > 0 ? { after } : {}) };
|
|
358
290
|
};
|
|
359
|
-
/** A job, an event, a message or a schedule that fires a function, from its decorators. */
|
|
360
291
|
const consumerTrigger = async (node) => {
|
|
361
292
|
if (node.kind !== 'function' && node.kind !== 'method')
|
|
362
293
|
return null;
|
|
@@ -373,18 +304,10 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
373
304
|
}
|
|
374
305
|
return null;
|
|
375
306
|
};
|
|
376
|
-
/**
|
|
377
|
-
* The decision a site's innermost condition belongs to. The innermost guard
|
|
378
|
-
* is the one decided AT the call — the ternary whose two arms return two
|
|
379
|
-
* different routes — while the ones outside it are the context both arms
|
|
380
|
-
* share, so it is the innermost that says which way this site went.
|
|
381
|
-
*/
|
|
382
307
|
const decisionOf = (guards) => {
|
|
383
308
|
const g = guards[guards.length - 1];
|
|
384
309
|
if (!g || !g.branch)
|
|
385
310
|
return null;
|
|
386
|
-
// A one-sided guard (`if (!product) throw`) is a guard clause, not a
|
|
387
|
-
// choice with two drawn ways; it keeps its condition on the line.
|
|
388
311
|
if (g.form === 'guard')
|
|
389
312
|
return null;
|
|
390
313
|
return {
|
|
@@ -397,13 +320,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
397
320
|
};
|
|
398
321
|
const steps = new Map();
|
|
399
322
|
const links = new Map();
|
|
400
|
-
/**
|
|
401
|
-
* What happens in each function, in the code's own order — the rail's
|
|
402
|
-
* material, recorded by the SAME pass that makes the links so the two
|
|
403
|
-
* readings can never hold different steps. Keyed by the function's node id,
|
|
404
|
-
* then by the site's position and what it reaches: a helper folded from two
|
|
405
|
-
* different steps is walked twice and must not be written twice.
|
|
406
|
-
*/
|
|
407
323
|
const programs = new Map();
|
|
408
324
|
const record = (fn, hop, guards, what, trigger = null, loops = []) => {
|
|
409
325
|
let sites = programs.get(fn.id);
|
|
@@ -429,18 +345,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
429
345
|
const chromeParents = new Map();
|
|
430
346
|
const fileScopeRefs = new Map();
|
|
431
347
|
const fileScopeUnresolved = new Map();
|
|
432
|
-
/**
|
|
433
|
-
* The spans of the calls that became effect steps, per function — and the
|
|
434
|
-
* step a binding written inside one arrives from. `Alert.prompt('Add
|
|
435
|
-
* Folder', …, [{ onPress: (name) => createBackgroundFolder(name) }])` is
|
|
436
|
-
* two facts: the prompt is a device box, and the prompt's button FIRES the
|
|
437
|
-
* handler — so the handler's line belongs to the prompt, not to the screen
|
|
438
|
-
* the prompt is written on, which fires everything and says nothing. A site
|
|
439
|
-
* is rewired only when its own trigger names the call (`onPress ·
|
|
440
|
-
* Alert.prompt(…)`) and its position falls inside that call's span in the
|
|
441
|
-
* same function; the innermost such span wins. An `onSubmit · useFormik(…)`
|
|
442
|
-
* names no effect and stays where it was.
|
|
443
|
-
*/
|
|
444
348
|
const firedSpans = new Map();
|
|
445
349
|
const firedByEffect = (fnId, at, of) => {
|
|
446
350
|
if (at.line === undefined)
|
|
@@ -471,9 +375,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
471
375
|
const stepFor = (node, kind, depth, extra = {}) => {
|
|
472
376
|
const existing = steps.get(node.id);
|
|
473
377
|
if (existing) {
|
|
474
|
-
// A listener the screen registers is a handler when first met, and the
|
|
475
|
-
// native event's landing when the walk arrives from the other side —
|
|
476
|
-
// the second is the fuller fact, and it names the event.
|
|
477
378
|
if (existing.kind === 'trigger' && kind === 'event') {
|
|
478
379
|
existing.kind = 'event';
|
|
479
380
|
if (extra.event)
|
|
@@ -494,14 +395,10 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
494
395
|
const routeRoot = isRoute ? (roots.get(node.id) ?? null) : null;
|
|
495
396
|
const record = {
|
|
496
397
|
id: node.id,
|
|
497
|
-
// A route is a screen or an endpoint — except one reached across a
|
|
498
|
-
// tier (`fetch('/api/users')` onto its own route), which is the crossing.
|
|
499
398
|
kind: isRoute && kind !== 'bridge' ? 'screen' : kind,
|
|
500
399
|
anchor: false,
|
|
501
400
|
node: (0, wire_1.toNodeRef)(node),
|
|
502
401
|
label: node.name,
|
|
503
|
-
// A screen says its component, an endpoint its handler; a route the
|
|
504
|
-
// graph bound to nothing says only where it is registered.
|
|
505
402
|
sub: isRoute
|
|
506
403
|
? routeRoot === null
|
|
507
404
|
? basename(node.filePath)
|
|
@@ -527,13 +424,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
527
424
|
steps.set(node.id, record);
|
|
528
425
|
return record;
|
|
529
426
|
};
|
|
530
|
-
// One box per (function, category): `uploadARCapture` makes one network
|
|
531
|
-
// call, three storage calls and three telemetry calls — three boxes, each
|
|
532
|
-
// listing its calls, not seven. A reply is the exception: its identity is
|
|
533
|
-
// the outcome, so `authUser` answering 200 or 401 is two boxes — each
|
|
534
|
-
// line into them then carries its own condition on the picture, the
|
|
535
|
-
// Screens view's idiom — and the sites whose status cannot be read share
|
|
536
|
-
// one `response` box labelled by the call.
|
|
537
427
|
const effectSub = (e, by) => [e.category, e.model, e.access, by.name].filter((x) => !!x).join(' · ');
|
|
538
428
|
const effectStep = (by, ref, effect, depth, status = null) => {
|
|
539
429
|
const category = effect.category;
|
|
@@ -545,7 +435,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
545
435
|
e.apis.push(ref.referenceName);
|
|
546
436
|
existing.label = `${e.apis[0]} +${e.apis.length - 1}`;
|
|
547
437
|
}
|
|
548
|
-
// Several models behind one box: list them; several accesses: say both.
|
|
549
438
|
if (effect.model && e.model !== effect.model) {
|
|
550
439
|
const models = new Set((e.model ?? '').split(', ').filter(Boolean));
|
|
551
440
|
models.add(effect.model);
|
|
@@ -584,44 +473,60 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
584
473
|
steps.set(id, record);
|
|
585
474
|
return record;
|
|
586
475
|
};
|
|
587
|
-
|
|
588
|
-
|
|
476
|
+
const springMvcReplies = async (node) => {
|
|
477
|
+
if ((node.language !== 'java' && node.language !== 'kotlin') || node.kind !== 'method')
|
|
478
|
+
return [];
|
|
479
|
+
const decs = await calls.decorators(node);
|
|
480
|
+
if (!decs || !decs.own.some((d) => /^(?:Get|Post|Put|Patch|Delete|Request)Mapping\b/.test(d)))
|
|
481
|
+
return [];
|
|
482
|
+
if (decs.class.some((d) => /^RestController\b/.test(d)) || decs.own.some((d) => /^ResponseBody\b/.test(d)))
|
|
483
|
+
return [];
|
|
484
|
+
const out = [];
|
|
485
|
+
for (const r of await calls.returns(node)) {
|
|
486
|
+
const view = r.value ?? springViewString(r.expression);
|
|
487
|
+
if (view === null)
|
|
488
|
+
continue;
|
|
489
|
+
const redirect = /^redirect:(.*)$/.exec(view);
|
|
490
|
+
const forward = /^forward:(.*)$/.exec(view);
|
|
491
|
+
out.push({
|
|
492
|
+
text: redirect ? `redirect:${redirect[1]}` : forward ? `forward:${forward[1]}` : `view ${view}`,
|
|
493
|
+
status: redirect ? 302 : forward ? null : 200,
|
|
494
|
+
line: r.line,
|
|
495
|
+
column: r.column,
|
|
496
|
+
});
|
|
497
|
+
}
|
|
498
|
+
return out;
|
|
499
|
+
};
|
|
500
|
+
const effectLink = async (step, fold, ref, trigger, fallbackArgs = null, requireReceiver = false, preset = null) => {
|
|
589
501
|
const at = { line: ref.line, column: ref.column };
|
|
590
|
-
const site = await callAt(fold.node, { ...at, callee: ref.referenceName });
|
|
591
|
-
// The site read must be THIS call: its last segment is the reference's.
|
|
502
|
+
const site = preset ? null : await callAt(fold.node, { ...at, callee: ref.referenceName });
|
|
592
503
|
const last = (n) => n.replace(/\([^()]*\)/g, '').split(/[.:]/).pop() ?? n;
|
|
593
504
|
const usable = !!site && site.callee !== '' && last(site.callee) === last(ref.referenceName);
|
|
594
505
|
const text = usable ? site.callee : ref.referenceName;
|
|
595
506
|
if (requireReceiver && !/[.:>]/.test(text))
|
|
596
507
|
return false;
|
|
597
508
|
const args = usable ? site.args : fallbackArgs;
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}
|
|
509
|
+
let effect = preset?.effect ?? null;
|
|
510
|
+
if (!preset) {
|
|
511
|
+
const declared = await receiverTypeFor(fold.node, text);
|
|
512
|
+
const receiverType = declared && (await resolveByReceiver(fold.node, text)) === null ? declared : null;
|
|
513
|
+
effect = (0, effects_1.classifyEffect)({
|
|
514
|
+
text,
|
|
515
|
+
kind: ref.referenceKind,
|
|
516
|
+
language: fold.node.language,
|
|
517
|
+
project,
|
|
518
|
+
receiverType,
|
|
519
|
+
args,
|
|
520
|
+
projectType: fold.node.language === 'swift' && (await declaresSwiftType(text)),
|
|
521
|
+
});
|
|
522
|
+
}
|
|
612
523
|
if (effect === null)
|
|
613
524
|
return false;
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
const status = effect.category === 'response'
|
|
620
|
-
? ((0, effects_1.responseStatus)(text, args, ref.referenceKind) ?? (usable && typeof site.status === 'number' ? site.status : null) ?? (0, effects_1.implicitResponseStatus)(text))
|
|
621
|
-
: null;
|
|
622
|
-
// What fires this call, read before its box is made: a call bound inside
|
|
623
|
-
// ANOTHER effect's arguments — the axios.delete in a confirm dialog's
|
|
624
|
-
// button — hangs off that box, one step deeper, not off the screen.
|
|
525
|
+
const status = preset
|
|
526
|
+
? preset.status
|
|
527
|
+
: effect.category === 'response'
|
|
528
|
+
? ((0, effects_1.responseStatus)(text, args, ref.referenceKind) ?? (usable && typeof site.status === 'number' ? site.status : null) ?? (0, effects_1.implicitResponseStatus)(text))
|
|
529
|
+
: null;
|
|
625
530
|
const fired = trigger ?? (await triggerAt(fold.node, at));
|
|
626
531
|
const from = fired?.of ? (firedByEffect(fold.node.id, at, fired.of) ?? step) : step;
|
|
627
532
|
const target = effectStep(fold.node, { referenceName: text, line: ref.line }, effect, from.depth + 1, status);
|
|
@@ -637,9 +542,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
637
542
|
const effectDecision = decisionOf(guards);
|
|
638
543
|
if (effectDecision)
|
|
639
544
|
wireSite.decision = effectDecision;
|
|
640
|
-
// Where the call is written HERE — in this function, at this line. The
|
|
641
|
-
// rail places the step by it; the tree's row order uses the hop out of the
|
|
642
|
-
// step's root, which is the same position when nothing was folded.
|
|
643
545
|
const local = {
|
|
644
546
|
file: fold.node.filePath,
|
|
645
547
|
line: site?.span?.start.line ?? ref.line,
|
|
@@ -647,7 +549,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
647
549
|
end: site?.span?.end ?? { line: ref.line, column: ref.column ?? 0 },
|
|
648
550
|
within: site?.within ?? null,
|
|
649
551
|
};
|
|
650
|
-
// This call's own span, for the bindings written inside its arguments.
|
|
651
552
|
if (usable && site?.span) {
|
|
652
553
|
const list = firedSpans.get(fold.node.id) ?? [];
|
|
653
554
|
list.push({ start: { line: local.line, column: local.column }, end: local.end, step: target });
|
|
@@ -671,8 +572,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
671
572
|
const id = `${from.id} ${to.id} ${viaKey}`;
|
|
672
573
|
const when = whens.filter((w, i) => w && whens.indexOf(w) === i).join(' && ');
|
|
673
574
|
const stamped = { ...site, when, ...(trigger ? { trigger } : {}) };
|
|
674
|
-
// A `contains` edge is how a nested handler is FOUND, not a place it is
|
|
675
|
-
// called from: its row stays only while no call site has been seen.
|
|
676
575
|
const structural = (s) => s.text.startsWith('defines ');
|
|
677
576
|
const existing = links.get(id);
|
|
678
577
|
if (existing) {
|
|
@@ -680,8 +579,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
680
579
|
return id;
|
|
681
580
|
if (!structural(stamped) && existing.sites.every(structural))
|
|
682
581
|
existing.sites.length = 0;
|
|
683
|
-
// One statement, two references (`res.status(201)` and its `.json(…)`):
|
|
684
|
-
// the outer call is the site, the inner one folds into it.
|
|
685
582
|
const sameLine = existing.sites.findIndex((s) => s.file === site.file && s.line === site.line);
|
|
686
583
|
if (sameLine < 0)
|
|
687
584
|
existing.sites.push(stamped);
|
|
@@ -718,14 +615,10 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
718
615
|
to.trigger = trigger;
|
|
719
616
|
return id;
|
|
720
617
|
};
|
|
721
|
-
/** What fires a site, with the function it is written in. */
|
|
722
618
|
const triggerAt = async (caller, at) => {
|
|
723
619
|
const t = await reader.trigger(caller, at);
|
|
724
620
|
return t ? { ...t, in: caller.name } : null;
|
|
725
621
|
};
|
|
726
|
-
// The anchor: a screen keeps its kind and explores from its component; an
|
|
727
|
-
// endpoint says the request that fires it and what runs before its handler;
|
|
728
|
-
// a function says the job, event or schedule written on it.
|
|
729
622
|
const first = stepFor(anchor, 'anchor', 0);
|
|
730
623
|
first.anchor = true;
|
|
731
624
|
if (anchor.kind === 'route') {
|
|
@@ -738,15 +631,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
738
631
|
if (t)
|
|
739
632
|
first.trigger = t;
|
|
740
633
|
}
|
|
741
|
-
// A screen's picture is laid out by REGION — the part of the screen each
|
|
742
|
-
// step belongs to. The evidence is the walk's own: a step reached out of the
|
|
743
|
-
// anchor descends through the fold's chain, whose FIRST node is the
|
|
744
|
-
// top-level component (or hook) of the screen's tree; a chain of nothing is
|
|
745
|
-
// a call written in the screen body itself; and a step reached from any
|
|
746
|
-
// other step belongs where its first-reaching parent does. First reach wins,
|
|
747
|
-
// as `first` does — a shared store is one box, in the region that got there
|
|
748
|
-
// first, and every other region's way in is a link. An endpoint or a
|
|
749
|
-
// function reads in the code's order and carries none of this.
|
|
750
634
|
const regions = first.kind === 'screen' && !first.screen?.endpoint;
|
|
751
635
|
const regionOf = (from, chain) => {
|
|
752
636
|
if (!regions)
|
|
@@ -759,35 +643,24 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
759
643
|
return { id: from.root?.id ?? from.id, label: from.root?.name ?? from.label };
|
|
760
644
|
};
|
|
761
645
|
const queue = [first];
|
|
762
|
-
/** Steps whose exploration has been queued — each is explored once, from the first row it appears on. */
|
|
763
646
|
const explored = new Set([first.id]);
|
|
764
647
|
while (queue.length > 0) {
|
|
765
648
|
const step = queue.shift();
|
|
766
649
|
if (step.root === null)
|
|
767
650
|
continue;
|
|
768
|
-
// Another screen is a chapter of its own: the Screens view draws the way
|
|
769
|
-
// between screens, and a picture that walked on through Home would be the
|
|
770
|
-
// whole app. Drawn as a boundary, entered on request.
|
|
771
|
-
// An endpoint reached across a tier is the same kind of boundary: the
|
|
772
|
-
// request's own picture starts at its handler, entered on request.
|
|
773
651
|
if ((step.kind === 'screen' || (step.kind === 'bridge' && step.node?.kind === 'route')) && !step.anchor && !through) {
|
|
774
652
|
step.cut = 'screen';
|
|
775
653
|
continue;
|
|
776
654
|
}
|
|
777
|
-
// A native event that lands in a COMPONENT — the capture overlay taking
|
|
778
|
-
// `onCaptureProgress` — lands on another screen's body: its picture is
|
|
779
|
-
// that screen's, not this one's. A boundary too, entered on request.
|
|
780
655
|
if (step.kind === 'event' && !step.anchor && !through && (0, route_roots_1.looksLikeComponent)(step.root)) {
|
|
781
656
|
step.cut = 'component';
|
|
782
657
|
continue;
|
|
783
658
|
}
|
|
784
659
|
if (step.depth >= depthCap) {
|
|
785
|
-
// Something to explore, and no room in the picture for it.
|
|
786
660
|
if (cg.getOutgoingEdgesFrom([step.root.id], WALK_KINDS).length > 0)
|
|
787
661
|
step.cut = 'depth';
|
|
788
662
|
continue;
|
|
789
663
|
}
|
|
790
|
-
// Breadth-first through the plumbing until the next steps.
|
|
791
664
|
const visited = new Set([step.root.id]);
|
|
792
665
|
let frontier = [{ node: step.root, chain: [], whens: [], first: null }];
|
|
793
666
|
for (let hop = 0; hop <= MAX_FOLD_DEPTH && frontier.length > 0; hop++) {
|
|
@@ -800,22 +673,8 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
800
673
|
list.push(e);
|
|
801
674
|
bySource.set(e.source, list);
|
|
802
675
|
}
|
|
803
|
-
// `const Memoized = memo(CaptureComponent)`: the wrapper is a component
|
|
804
|
-
// node with no edges of its own — the inner component is referenced
|
|
805
|
-
// from the FILE scope, at the wrapper's line. Lend the wrapper those
|
|
806
|
-
// references, so the screen that renders `<Memoized/>` walks on into
|
|
807
|
-
// what the component does.
|
|
808
|
-
// The same for a value a registration is written inside — `const
|
|
809
|
-
// worker = new Worker('q', async (job) => { … })`: the arrow's calls
|
|
810
|
-
// belong to the file scope and the constant spans them; a queue job
|
|
811
|
-
// lands on the constant, and the walk goes on into what the handler does.
|
|
812
676
|
for (const fold of frontier) {
|
|
813
677
|
const value = fold.node.kind === 'constant' || fold.node.kind === 'variable';
|
|
814
|
-
// Edges the walk would follow as BEHAVIOUR. `const signIn =
|
|
815
|
-
// validatedAction(schema, async (data) => { … })` holds a plain
|
|
816
|
-
// `references` edge to its schema and nothing else: counting that as
|
|
817
|
-
// "it has edges of its own" left the whole handler body unlent, and the
|
|
818
|
-
// picture showed one call out of nine.
|
|
819
678
|
const behaviour = (bySource.get(fold.node.id) ?? []).filter((e) => e.kind !== 'references' || e.metadata?.fnRef === true).length;
|
|
820
679
|
if ((fold.node.kind !== 'component' && !value) || behaviour > 0)
|
|
821
680
|
continue;
|
|
@@ -830,17 +689,12 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
830
689
|
for (const e of list)
|
|
831
690
|
targetIds.add(e.target);
|
|
832
691
|
const targets = targetIds.size === 0 ? new Map() : cg.getNodesByIds([...targetIds]);
|
|
833
|
-
// Hubs and chrome are judged on the nodes about to be entered.
|
|
834
692
|
const unknownFanIn = [...targetIds].filter((id) => !fanIn.has(id));
|
|
835
693
|
if (unknownFanIn.length > 0)
|
|
836
694
|
for (const [id, n] of cg.getFanIn(unknownFanIn))
|
|
837
695
|
fanIn.set(id, n);
|
|
838
696
|
for (const fold of frontier) {
|
|
839
|
-
// A call a synthesized channel already follows — the `fetch` that
|
|
840
|
-
// reaches its own route, the `queue.add` its consumer picks up — is
|
|
841
|
-
// the crossing, not also a call outside the index.
|
|
842
697
|
const channelLines = new Set();
|
|
843
|
-
/** Per line, the last segment of each call a channel follows there (`add` of `emailQueue.add`). */
|
|
844
698
|
const channelCalls = new Map();
|
|
845
699
|
for (const e of bySource.get(fold.node.id) ?? []) {
|
|
846
700
|
const m = e.metadata;
|
|
@@ -853,10 +707,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
853
707
|
channelCalls.set(e.line, set);
|
|
854
708
|
}
|
|
855
709
|
}
|
|
856
|
-
// Effects made by this node, folded or not. A value a handler is
|
|
857
|
-
// written inside (`const authUser = asyncHandler(async (req, res) =>
|
|
858
|
-
// …)`) made none itself — the arrow's calls belong to the file scope —
|
|
859
|
-
// so it is lent the file's, within its lines, as its call edges are.
|
|
860
710
|
if (effectScans < MAX_EFFECT_SCANS) {
|
|
861
711
|
effectScans++;
|
|
862
712
|
let refs = [];
|
|
@@ -875,6 +725,9 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
875
725
|
continue;
|
|
876
726
|
await effectLink(step, fold, { referenceName: ref.referenceName, referenceKind: ref.referenceKind, line: ref.line, column: ref.column }, null);
|
|
877
727
|
}
|
|
728
|
+
for (const reply of await springMvcReplies(fold.node)) {
|
|
729
|
+
await effectLink(step, fold, { referenceName: reply.text, referenceKind: 'calls', line: reply.line, column: reply.column }, null, null, false, { effect: { category: 'response' }, status: reply.status });
|
|
730
|
+
}
|
|
878
731
|
}
|
|
879
732
|
let edges = (bySource.get(fold.node.id) ?? []).slice();
|
|
880
733
|
edges = edges.filter((e) => {
|
|
@@ -882,10 +735,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
882
735
|
if (e.kind === 'references')
|
|
883
736
|
return meta.fnRef === true;
|
|
884
737
|
if (e.kind === 'contains') {
|
|
885
|
-
// A function's nested handlers; and, when the walk STARTS at a
|
|
886
|
-
// class (a ViewSet, a class-based view bound to a route), its
|
|
887
|
-
// methods — never a class met on the way, whose methods are not
|
|
888
|
-
// what the caller reached.
|
|
889
738
|
const t = targets.get(e.target);
|
|
890
739
|
const fromFunction = fold.node.kind === 'function' || fold.node.kind === 'method';
|
|
891
740
|
const fromRootClass = fold.node.kind === 'class' && fold.chain.length === 0 && fold.node.id === step.root?.id;
|
|
@@ -905,17 +754,8 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
905
754
|
if (!found || found.kind === 'file')
|
|
906
755
|
continue;
|
|
907
756
|
const meta = (e.metadata ?? {});
|
|
908
|
-
// A member call the index kept only the last segment of (`create`
|
|
909
|
-
// for `prisma.user.create`) resolves by name alone — a guess, and
|
|
910
|
-
// often the wrong one. The call AS WRITTEN decides first: an effect
|
|
911
|
-
// is drawn as one and the guessed edge is not walked. A call through
|
|
912
|
-
// a project-made value (`client.post` on the axios instance) is the
|
|
913
|
-
// same case with the constant as the target.
|
|
914
757
|
let target = targets.get(e.target);
|
|
915
758
|
let retargeted = false;
|
|
916
|
-
// `api.get('/users')` resolves to the `api` constant — and
|
|
917
|
-
// `this.audioQueue.add('transcode')` to some `add` by name — AND,
|
|
918
|
-
// on the same line, a channel follows the call: the channel is the story.
|
|
919
759
|
if (typeof meta.channel !== 'string' && e.kind === 'calls' && channelLines.has(e.line ?? -1)) {
|
|
920
760
|
const written = typeof meta.refName === 'string' ? meta.refName : target.name;
|
|
921
761
|
const last = written.split(/[.:]/).pop() ?? written;
|
|
@@ -925,10 +765,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
925
765
|
if (e.kind === 'calls' && typeof meta.synthesizedBy !== 'string' && e.provenance !== 'heuristic') {
|
|
926
766
|
const refName = typeof meta.refName === 'string' ? meta.refName : target.name;
|
|
927
767
|
const bare = !refName.includes('.');
|
|
928
|
-
// A member call whose receiver is declared as a type the index
|
|
929
|
-
// holds no class for (`DataStore<UserPreferences>`) leaves the
|
|
930
|
-
// index too, whatever name-matched — an `updateData` on a test
|
|
931
|
-
// double, say.
|
|
932
768
|
let external = false;
|
|
933
769
|
if (!bare && target.kind !== 'constant' && target.kind !== 'variable') {
|
|
934
770
|
const declared = await receiverTypeFor(fold.node, refName);
|
|
@@ -938,8 +774,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
938
774
|
const drawn = await effectLink(step, fold, { referenceName: refName, referenceKind: 'calls', line: e.line ?? fold.node.startLine, column: e.column }, null, null, true);
|
|
939
775
|
if (drawn)
|
|
940
776
|
continue;
|
|
941
|
-
// Not an effect: does the receiver's declared type say where the
|
|
942
|
-
// call goes? A class in the index wins over the name-only guess.
|
|
943
777
|
if (bare) {
|
|
944
778
|
const written = await callAt(fold.node, { line: e.line, column: e.column, callee: refName });
|
|
945
779
|
if (written && /[.:]/.test(written.callee) && (written.callee.split(/[.:]/).pop() ?? '') === refName) {
|
|
@@ -949,12 +783,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
949
783
|
retargeted = true;
|
|
950
784
|
}
|
|
951
785
|
else if (real === null && ownMethodWithoutReceiver(fold.node, target, written.callee)) {
|
|
952
|
-
// `crypto.createHash('sha256').update(…)` in a method of a
|
|
953
|
-
// class that happens to have an `update`: the index kept
|
|
954
|
-
// only `update` and matched it by name. In this family a
|
|
955
|
-
// method of your own class is written `this.update(…)`, so
|
|
956
|
-
// a receiver that is not `this` proves the guess wrong. The
|
|
957
|
-
// call leaves the index — say nothing rather than the wrong thing.
|
|
958
786
|
continue;
|
|
959
787
|
}
|
|
960
788
|
}
|
|
@@ -963,10 +791,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
963
791
|
}
|
|
964
792
|
if (target.id === fold.node.id)
|
|
965
793
|
continue;
|
|
966
|
-
// A production walk never enters a test double: an interface's
|
|
967
|
-
// dispatch into `TestUserDataRepository`, or a `DataStore` name-matched
|
|
968
|
-
// to the in-memory one, is the test suite's story. Judged after the
|
|
969
|
-
// call as written had its chance to be an effect.
|
|
970
794
|
if (!fromTest && (0, query_utils_1.isTestPath)(target.filePath))
|
|
971
795
|
continue;
|
|
972
796
|
const site = {
|
|
@@ -975,15 +799,9 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
975
799
|
text: siteText(e, meta, target),
|
|
976
800
|
when: '',
|
|
977
801
|
};
|
|
978
|
-
// What fires this hop, when the site is written under an event:
|
|
979
|
-
// the JSX prop, the `on*` option, the runs-later call. Read for
|
|
980
|
-
// every call-shaped hop, so a store action or an effect fired by
|
|
981
|
-
// a tap says so on its link too.
|
|
982
802
|
const isCall = e.kind === 'calls' || e.kind === 'instantiates' || (e.kind === 'references' && meta.fnRef === true);
|
|
983
|
-
const
|
|
984
|
-
|
|
985
|
-
// file (or opening with the directive) called from a file that is
|
|
986
|
-
// not — the call crosses to the server, whatever the import says.
|
|
803
|
+
const carried = siteTriggerOf(meta);
|
|
804
|
+
const trigger = carried ? { ...carried, in: fold.node.name } : isCall ? await triggerAt(fold.node, { line: e.line, column: e.column }) : null;
|
|
987
805
|
if (e.provenance !== 'heuristic' &&
|
|
988
806
|
(e.kind === 'calls' || (e.kind === 'references' && meta.fnRef === true)) &&
|
|
989
807
|
(target.kind === 'function' || target.kind === 'method') &&
|
|
@@ -995,7 +813,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
995
813
|
meta.channel = 'server-action';
|
|
996
814
|
}
|
|
997
815
|
}
|
|
998
|
-
// What kind of step, if any, this edge arrives at.
|
|
999
816
|
let kind = null;
|
|
1000
817
|
let linkKind = 'calls';
|
|
1001
818
|
const extra = {};
|
|
@@ -1004,11 +821,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1004
821
|
linkKind = 'navigates';
|
|
1005
822
|
}
|
|
1006
823
|
else {
|
|
1007
|
-
// A language change under the code is a step only on evidence: a
|
|
1008
|
-
// bridge resolver's edge (`bridge`, or a framework resolution), or
|
|
1009
|
-
// a synthesized channel's. A plain name-matched call across the
|
|
1010
|
-
// families (`arr.flat()` landing on a Swift `flat`) is noise, and
|
|
1011
|
-
// is neither drawn nor walked.
|
|
1012
824
|
const cross = crossing(fold.node.language, target.language, meta);
|
|
1013
825
|
const evidenced = e.provenance === 'heuristic' || meta.bridge === 'react-native' || meta.resolvedBy === 'framework' || meta.channel === 'server-action';
|
|
1014
826
|
if (cross !== null && !evidenced)
|
|
@@ -1026,20 +838,12 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1026
838
|
else if ((target.kind === 'function' || target.kind === 'method') &&
|
|
1027
839
|
isStoreFile(target.filePath) &&
|
|
1028
840
|
!isStoreFile(fold.node.filePath)) {
|
|
1029
|
-
// A store action fired straight from a tap stays a store
|
|
1030
|
-
// action; the tap is on its link.
|
|
1031
841
|
kind = 'store';
|
|
1032
842
|
linkKind = 'store';
|
|
1033
843
|
}
|
|
1034
844
|
else if ((target.kind === 'function' || target.kind === 'method') &&
|
|
1035
845
|
!(0, route_roots_1.looksLikeComponent)(target) &&
|
|
1036
846
|
((e.kind === 'references' && meta.fnRef === true) || trigger !== null)) {
|
|
1037
|
-
// A handler: a function passed as a value (`onPress={handleX}`,
|
|
1038
|
-
// `addListener('x', handleX)`), or one called from under an
|
|
1039
|
-
// event binding (`onPress={() => handleLogin(values)}`,
|
|
1040
|
-
// `useFormik({ onSubmit: (v) => handleLogin(v) })`). A
|
|
1041
|
-
// component passed as a value (`memo(CaptureComponent)`) is a
|
|
1042
|
-
// render hop and folds like one.
|
|
1043
847
|
kind = 'trigger';
|
|
1044
848
|
linkKind = 'handler';
|
|
1045
849
|
if (trigger)
|
|
@@ -1054,9 +858,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1054
858
|
if (a.kind === null)
|
|
1055
859
|
continue;
|
|
1056
860
|
const at = { line: a.e.line, column: a.e.column };
|
|
1057
|
-
// A binding written inside an effect call's arguments — the dialog's
|
|
1058
|
-
// `onPress` — arrives from that box, not from the step that owns
|
|
1059
|
-
// the fold: the prompt fires it.
|
|
1060
861
|
const firedBy = a.trigger?.of ? firedByEffect(fold.node.id, at, a.trigger.of) : null;
|
|
1061
862
|
const from = firedBy ?? step;
|
|
1062
863
|
const fresh = !steps.has(a.target.id);
|
|
@@ -1070,11 +871,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1070
871
|
}
|
|
1071
872
|
const guards = await guardsAt(fold.node, at);
|
|
1072
873
|
const when = (0, branch_guards_1.guardLabel)(guards);
|
|
1073
|
-
// A call-shaped hop says what it passes; a navigation already says
|
|
1074
|
-
// its href, a handler binding and a native event channel pass
|
|
1075
|
-
// nothing. A hop over a synthesized channel is a call in the source
|
|
1076
|
-
// — `fetch('/api/users', {…})`, `emailQueue.add('welcome', {…})` —
|
|
1077
|
-
// and its site reads as written.
|
|
1078
874
|
let site = a.site;
|
|
1079
875
|
if (typeof a.meta.channel === 'string' && a.meta.channel !== 'server-action') {
|
|
1080
876
|
const written = await callAt(fold.node, at);
|
|
@@ -1083,15 +879,9 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1083
879
|
else if (a.linkKind === 'bridge' ||
|
|
1084
880
|
a.linkKind === 'store' ||
|
|
1085
881
|
a.linkKind === 'calls' ||
|
|
1086
|
-
// A handler BOUND passes nothing (`onPress={handleX}`), but a
|
|
1087
|
-
// handler CALLED from under a binding is a call like any other —
|
|
1088
|
-
// and `tryCatchSync(onClosePress)`'s argument is the whole answer
|
|
1089
|
-
// to what a wrapper wraps.
|
|
1090
882
|
(a.linkKind === 'handler' && (a.e.kind === 'calls' || a.e.kind === 'instantiates'))) {
|
|
1091
883
|
site = await withArgs(a.site, fold.node, at);
|
|
1092
884
|
}
|
|
1093
|
-
// Where this step is first reached from: the hop out of the root
|
|
1094
|
-
// this fold descends from, else this site — its position orders the row.
|
|
1095
885
|
const isCallHop = a.e.kind === 'calls' || a.e.kind === 'instantiates' || a.e.kind === 'navigates';
|
|
1096
886
|
const local = isCallHop ? await hopAt(fold.node, at, a.target.name) : pointHop(fold.node, at);
|
|
1097
887
|
const hop = fold.first ?? local;
|
|
@@ -1113,15 +903,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1113
903
|
if (a.kind !== null)
|
|
1114
904
|
continue;
|
|
1115
905
|
const { e, target, meta } = a;
|
|
1116
|
-
// A call through a VALUE the effect table knows — `client.post` on
|
|
1117
|
-
// the axios instance the project made itself resolves to the
|
|
1118
|
-
// `client` constant, not to anything outside the index. The call
|
|
1119
|
-
// text is the evidence: the call is the effect, the constant is not
|
|
1120
|
-
// a place to walk into.
|
|
1121
|
-
// A thrown exception the framework answers with (`throw new
|
|
1122
|
-
// NotFoundException(…)` on a class the project defines) is a
|
|
1123
|
-
// response, not a place to walk into; a repository's method the
|
|
1124
|
-
// walk cannot enter (an interface's, the ORM's) is the database.
|
|
1125
906
|
if (e.kind === 'instantiates' && target.kind === 'class') {
|
|
1126
907
|
if (await effectLink(step, fold, { referenceName: target.name, referenceKind: 'instantiates', line: e.line ?? fold.node.startLine, column: e.column }, a.trigger))
|
|
1127
908
|
continue;
|
|
@@ -1132,7 +913,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1132
913
|
if (await effectLink(step, fold, { referenceName: api, referenceKind: 'calls', line: e.line ?? fold.node.startLine, column: e.column }, a.trigger))
|
|
1133
914
|
continue;
|
|
1134
915
|
}
|
|
1135
|
-
// Already a step, reached here by a plain call: a link, not a fold.
|
|
1136
916
|
const known = steps.get(target.id);
|
|
1137
917
|
if (known) {
|
|
1138
918
|
if (known.id !== step.id) {
|
|
@@ -1148,7 +928,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1148
928
|
}
|
|
1149
929
|
continue;
|
|
1150
930
|
}
|
|
1151
|
-
// Plumbing: fold it and keep walking, unless it is a dead end.
|
|
1152
931
|
if (visited.has(target.id))
|
|
1153
932
|
continue;
|
|
1154
933
|
if ((fanIn.get(target.id) ?? 0) >= wire_1.HUB_THRESHOLD) {
|
|
@@ -1168,8 +947,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1168
947
|
const guards = await guardsAt(fold.node, at);
|
|
1169
948
|
const local = e.kind === 'calls' || e.kind === 'instantiates' ? await hopAt(fold.node, at, target.name) : pointHop(fold.node, at);
|
|
1170
949
|
const first = fold.first ?? local;
|
|
1171
|
-
// The helper is drawn where it is CALLED: its own records are its
|
|
1172
|
-
// body, and this is the site the rail nests them under.
|
|
1173
950
|
record(fold.node, local, guards, { into: target.id }, a.trigger, await loopsAt(fold.node, at));
|
|
1174
951
|
next.push({ node: target, chain: [...fold.chain, target], whens: [...fold.whens, (0, branch_guards_1.guardLabel)(guards)], first });
|
|
1175
952
|
}
|
|
@@ -1177,9 +954,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1177
954
|
frontier = next;
|
|
1178
955
|
}
|
|
1179
956
|
}
|
|
1180
|
-
// An effect box with ONE call behind it says what that call passes —
|
|
1181
|
-
// `axios.post('/auth/login', { email, password })` is the fact a reader
|
|
1182
|
-
// scans for; several calls list themselves in the panel instead.
|
|
1183
957
|
const sitesByStep = new Map();
|
|
1184
958
|
for (const l of links.values()) {
|
|
1185
959
|
const list = sitesByStep.get(l.to) ?? [];
|
|
@@ -1190,10 +964,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1190
964
|
if (step.kind !== 'effect' || !step.effect)
|
|
1191
965
|
continue;
|
|
1192
966
|
const sites = sitesByStep.get(step.id) ?? [];
|
|
1193
|
-
// A response box is one outcome of the endpoint's contract: its status,
|
|
1194
|
-
// when literal, is its label (one per box by construction); the rows say
|
|
1195
|
-
// when. The box of unreadable statuses holds none and is labelled by its
|
|
1196
|
-
// call below.
|
|
1197
967
|
if (step.effect.category === 'response') {
|
|
1198
968
|
const statuses = [...new Set(sites.map((s) => s.status).filter((x) => typeof x === 'number'))].sort((a, b) => a - b);
|
|
1199
969
|
if (statuses.length > 0) {
|
|
@@ -1209,10 +979,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1209
979
|
const label = `${step.effect.api}(${sites[0].args})`;
|
|
1210
980
|
step.label = label.length > MAX_EFFECT_LABEL ? `${label.slice(0, MAX_EFFECT_LABEL - 2)}…)` : label;
|
|
1211
981
|
}
|
|
1212
|
-
// A row reads in the code's order: by the position of the hop that first
|
|
1213
|
-
// reached each step, a hop written inside another site's arguments before
|
|
1214
|
-
// that site — `generateToken(…)` in `res.json({ token: generateToken(…) })`
|
|
1215
|
-
// signs the token before the 200 is sent, so it comes first.
|
|
1216
982
|
const byDepth = new Map();
|
|
1217
983
|
for (const s of steps.values())
|
|
1218
984
|
byDepth.set(s.depth, [...(byDepth.get(s.depth) ?? []), s]);
|
|
@@ -1223,10 +989,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1223
989
|
});
|
|
1224
990
|
}
|
|
1225
991
|
const ordered = [...steps.values()].sort((a, b) => a.depth - b.depth || (a.order ?? 0) - (b.order ?? 0) || a.id.localeCompare(b.id));
|
|
1226
|
-
// The second reading: the same steps in the code's order. A step the walk
|
|
1227
|
-
// ENTERED reads on into its own body; a boundary (another screen, an
|
|
1228
|
-
// endpoint across a tier) does not — it is a chapter of its own, exactly as
|
|
1229
|
-
// on the picture.
|
|
1230
992
|
const nodesById = new Map();
|
|
1231
993
|
for (const s of steps.values())
|
|
1232
994
|
if (s.root)
|
|
@@ -1252,8 +1014,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1252
1014
|
steps: ordered.map(({ root: _root, first: _first, ...step }) => step),
|
|
1253
1015
|
links: [...links.values()].sort((a, b) => a.id.localeCompare(b.id)),
|
|
1254
1016
|
program,
|
|
1255
|
-
// A screen is a set of handlers with no order between them; anything with a
|
|
1256
|
-
// body — a handler, an endpoint, any function — reads in the code's order.
|
|
1257
1017
|
defaultView: program !== null && !(first.kind === 'screen' && !first.screen?.endpoint) ? 'order' : 'tree',
|
|
1258
1018
|
depth: depthCap,
|
|
1259
1019
|
limit,
|
|
@@ -1263,14 +1023,6 @@ async function buildSteps(cg, projectRoot, query) {
|
|
|
1263
1023
|
timing: { elapsedMs: Date.now() - started },
|
|
1264
1024
|
};
|
|
1265
1025
|
}
|
|
1266
|
-
// =============================================================================
|
|
1267
|
-
// Helpers
|
|
1268
|
-
// =============================================================================
|
|
1269
|
-
/**
|
|
1270
|
-
* The anchor: `anchor=<id>`, or `symbol=<name>` resolved to the most
|
|
1271
|
-
* screen-like symbol of that name — a route first, then a component or
|
|
1272
|
-
* function, then a method — with the rest reported as `ambiguous`.
|
|
1273
|
-
*/
|
|
1274
1026
|
function resolveAnchor(cg, query) {
|
|
1275
1027
|
const id = query.get('anchor');
|
|
1276
1028
|
if (id !== null && id.trim() !== '') {
|
|
@@ -1292,14 +1044,14 @@ function resolveAnchor(cg, query) {
|
|
|
1292
1044
|
throw (0, respond_1.notFound)(`Nothing in this index is named "${name}".`, 'Try the search box; names are matched exactly.');
|
|
1293
1045
|
return { anchor, ambiguous: matches.slice(1, 9).map(wire_1.toNodeRef) };
|
|
1294
1046
|
}
|
|
1295
|
-
/** How many distinct parents render this node as a JSX child. Memoised per request. */
|
|
1296
1047
|
function renderParents(cg, node, memo) {
|
|
1297
1048
|
let parents = memo.get(node.id);
|
|
1298
1049
|
if (parents === undefined) {
|
|
1299
1050
|
const incoming = cg.getIncomingEdgesTo([node.id], ['calls']);
|
|
1300
1051
|
const sources = new Set();
|
|
1301
1052
|
for (const e of incoming) {
|
|
1302
|
-
if (e.metadata?.synthesizedBy === 'jsx-render'
|
|
1053
|
+
if (e.metadata?.synthesizedBy === 'jsx-render' &&
|
|
1054
|
+
cg.getNode(e.source)?.kind !== 'file')
|
|
1303
1055
|
sources.add(e.source);
|
|
1304
1056
|
}
|
|
1305
1057
|
parents = sources.size;
|
|
@@ -1307,15 +1059,9 @@ function renderParents(cg, node, memo) {
|
|
|
1307
1059
|
}
|
|
1308
1060
|
return parents;
|
|
1309
1061
|
}
|
|
1310
|
-
/** A component rendered by several distinct parents is chrome. */
|
|
1311
1062
|
function isSharedChrome(cg, component, memo) {
|
|
1312
1063
|
return renderParents(cg, component, memo) >= SHARED_CHROME_MIN;
|
|
1313
1064
|
}
|
|
1314
|
-
/**
|
|
1315
|
-
* What kind of project the picture is of, by what its routes are: endpoints
|
|
1316
|
-
* (`POST /users`) make an API; screens with navigation between them make an
|
|
1317
|
-
* app; both — pages and the endpoints behind them — make a web app.
|
|
1318
|
-
*/
|
|
1319
1065
|
function projectKind(routes, navigates) {
|
|
1320
1066
|
let endpoints = 0;
|
|
1321
1067
|
let pages = 0;
|
|
@@ -1324,7 +1070,6 @@ function projectKind(routes, navigates) {
|
|
|
1324
1070
|
endpoints++;
|
|
1325
1071
|
else if (r.name.startsWith('/')) {
|
|
1326
1072
|
pages++;
|
|
1327
|
-
// A Next page is a web page whatever else the index holds.
|
|
1328
1073
|
if ((0, nextjs_1.nextRouteForFile)(r.filePath)?.kind === 'page')
|
|
1329
1074
|
return 'web';
|
|
1330
1075
|
}
|
|
@@ -1337,14 +1082,6 @@ function basename(p) {
|
|
|
1337
1082
|
const s = posix(p);
|
|
1338
1083
|
return s.slice(s.lastIndexOf('/') + 1);
|
|
1339
1084
|
}
|
|
1340
|
-
/**
|
|
1341
|
-
* Function-as-value references — and, for a value, calls — made at a file's
|
|
1342
|
-
* top level within a node's lines: what `const Memoized = memo(CaptureComponent)`
|
|
1343
|
-
* leaves behind (the reference belongs to the file scope, the wrapper node
|
|
1344
|
-
* spans the line), and what `const worker = new Worker('q', async (job) =>
|
|
1345
|
-
* { … })` leaves behind (the handler's calls belong to the file scope, the
|
|
1346
|
-
* constant spans them).
|
|
1347
|
-
*/
|
|
1348
1085
|
function fileScopeEdgesWithin(cg, node, memo, calls) {
|
|
1349
1086
|
let refs = memo.get(node.filePath);
|
|
1350
1087
|
if (refs === undefined) {
|
|
@@ -1358,7 +1095,6 @@ function fileScopeEdgesWithin(cg, node, memo, calls) {
|
|
|
1358
1095
|
}
|
|
1359
1096
|
return refs.filter((e) => (calls || e.kind === 'references') && typeof e.line === 'number' && e.line >= node.startLine && e.line <= node.endLine);
|
|
1360
1097
|
}
|
|
1361
|
-
/** The file scope's unresolved calls within a value's lines — what a wrapped handler's arrow body leaves on the file node. */
|
|
1362
1098
|
function fileScopeRefsWithin(cg, node, memo) {
|
|
1363
1099
|
let refs = memo.get(node.filePath);
|
|
1364
1100
|
if (refs === undefined) {
|
|
@@ -1373,7 +1109,6 @@ function fileScopeRefsWithin(cg, node, memo) {
|
|
|
1373
1109
|
}
|
|
1374
1110
|
return refs.filter((r) => r.line >= node.startLine && r.line <= node.endLine);
|
|
1375
1111
|
}
|
|
1376
|
-
/** `push /capture`, `renders <Button>`, `via rn-event-channel`, `calls`. */
|
|
1377
1112
|
function siteText(edge, meta, target) {
|
|
1378
1113
|
if (edge.kind === 'navigates') {
|
|
1379
1114
|
const method = edge.provenance === 'heuristic' ? 'returns' : typeof meta.navMethod === 'string' ? meta.navMethod : 'push';
|
|
@@ -1395,7 +1130,6 @@ function siteText(edge, meta, target) {
|
|
|
1395
1130
|
return `via ${meta.synthesizedBy}`;
|
|
1396
1131
|
return `calls ${target.name}`;
|
|
1397
1132
|
}
|
|
1398
|
-
/** The words on a hop that was not a plain call — the Flow strip's connector label, in short. */
|
|
1399
1133
|
function hopLabel(meta, synthesized) {
|
|
1400
1134
|
const parts = [];
|
|
1401
1135
|
if (typeof meta.synthesizedBy === 'string')
|
|
@@ -1422,7 +1156,6 @@ function hopLabel(meta, synthesized) {
|
|
|
1422
1156
|
parts.push(`registered at ${meta.registeredAt}`);
|
|
1423
1157
|
return parts.join(' · ');
|
|
1424
1158
|
}
|
|
1425
|
-
/** Source order of two hops: a hop written inside the other's call runs first; else by position; another file sorts after. */
|
|
1426
1159
|
function hopCompare(a, b) {
|
|
1427
1160
|
if (!a || !b)
|
|
1428
1161
|
return a ? -1 : b ? 1 : 0;
|
|
@@ -1434,7 +1167,6 @@ function hopCompare(a, b) {
|
|
|
1434
1167
|
return 1;
|
|
1435
1168
|
return a.line - b.line || a.column - b.column;
|
|
1436
1169
|
}
|
|
1437
|
-
/** `x` starts strictly after `y` starts and before `y` ends. */
|
|
1438
1170
|
function hopInside(x, y) {
|
|
1439
1171
|
const afterStart = x.line > y.line || (x.line === y.line && x.column > y.column);
|
|
1440
1172
|
const beforeEnd = x.line < y.end.line || (x.line === y.end.line && x.column < y.end.column);
|