@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
|
@@ -0,0 +1,959 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.angularRouterResolver = void 0;
|
|
37
|
+
exports.localizeDefault = localizeDefault;
|
|
38
|
+
exports.staticString = staticString;
|
|
39
|
+
exports.parseAngularRoutes = parseAngularRoutes;
|
|
40
|
+
exports.isAngularRoute = isAngularRoute;
|
|
41
|
+
exports.componentClassesIn = componentClassesIn;
|
|
42
|
+
exports.constantText = constantText;
|
|
43
|
+
exports.angularRouteTable = angularRouteTable;
|
|
44
|
+
exports.angularRoutesFor = angularRoutesFor;
|
|
45
|
+
exports.commandsHref = commandsHref;
|
|
46
|
+
exports.namesSomewhere = namesSomewhere;
|
|
47
|
+
exports.propertyInitializer = propertyInitializer;
|
|
48
|
+
exports.angularDestination = angularDestination;
|
|
49
|
+
exports.templatePathFor = templatePathFor;
|
|
50
|
+
const path = __importStar(require("path"));
|
|
51
|
+
const import_resolver_1 = require("../import-resolver");
|
|
52
|
+
const strip_comments_1 = require("../strip-comments");
|
|
53
|
+
const utils_1 = require("../../utils");
|
|
54
|
+
const object_literal_1 = require("./object-literal");
|
|
55
|
+
const package_deps_1 = require("./package-deps");
|
|
56
|
+
const expo_router_1 = require("./expo-router");
|
|
57
|
+
const nextjs_1 = require("./nextjs");
|
|
58
|
+
const ROUTER_IMPORT = /['"]@angular\/router['"]/;
|
|
59
|
+
const ARRAY_OPENERS = /(?::\s*(?:Routes|Route\s*\[\s*\])\s*=\s*|\bRouterModule\s*\.\s*for(?:Root|Child)\s*\(\s*|\bprovideRouter\s*\(\s*|\bexport\s+default\s+(?:<\s*Routes\s*>\s*)?|\b(?:const|let)\s+[A-Za-z_$][\w$]*\s*=\s*)\[/g;
|
|
60
|
+
const ROUTE_KEYS = ['component', 'loadComponent', 'children', 'loadChildren', 'redirectTo'];
|
|
61
|
+
const CONSTANT_PATH = /^[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*)+$/;
|
|
62
|
+
function localizeDefault(text) {
|
|
63
|
+
const m = /^\$localize\s*`((?:[^`\\$]|\\.)*)`$/.exec(text.trim());
|
|
64
|
+
if (!m)
|
|
65
|
+
return null;
|
|
66
|
+
const body = m[1];
|
|
67
|
+
const meta = /^:[^:]*:/.exec(body);
|
|
68
|
+
return meta ? body.slice(meta[0].length) : body;
|
|
69
|
+
}
|
|
70
|
+
function staticString(text) {
|
|
71
|
+
const parts = [];
|
|
72
|
+
let rest = text.trim();
|
|
73
|
+
while (rest.length > 0) {
|
|
74
|
+
let part = null;
|
|
75
|
+
let used = 0;
|
|
76
|
+
const q = rest[0];
|
|
77
|
+
if (q === '"' || q === "'") {
|
|
78
|
+
part = (0, expo_router_1.readStringAt)(rest, 0);
|
|
79
|
+
used = part === null ? 0 : (0, object_literal_1.skipString)(rest, 0) + 1;
|
|
80
|
+
}
|
|
81
|
+
else if (rest.startsWith('$localize')) {
|
|
82
|
+
const tick = rest.indexOf('`');
|
|
83
|
+
const end = tick < 0 ? -1 : (0, object_literal_1.skipString)(rest, tick);
|
|
84
|
+
if (end > 0) {
|
|
85
|
+
part = localizeDefault(rest.slice(0, end + 1));
|
|
86
|
+
used = end + 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
else if (q === '`') {
|
|
90
|
+
const end = (0, object_literal_1.skipString)(rest, 0);
|
|
91
|
+
const body = end > 0 ? rest.slice(1, end) : '';
|
|
92
|
+
if (end > 0 && !body.includes('${')) {
|
|
93
|
+
part = body;
|
|
94
|
+
used = end + 1;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
if (part === null || used === 0)
|
|
98
|
+
return null;
|
|
99
|
+
parts.push(part);
|
|
100
|
+
rest = rest.slice(used).trim();
|
|
101
|
+
if (rest.length === 0)
|
|
102
|
+
break;
|
|
103
|
+
if (rest[0] !== '+')
|
|
104
|
+
return null;
|
|
105
|
+
rest = rest.slice(1).trim();
|
|
106
|
+
}
|
|
107
|
+
return parts.length > 0 ? parts.join('') : null;
|
|
108
|
+
}
|
|
109
|
+
function pathSegments(text) {
|
|
110
|
+
const trimmed = text.trim();
|
|
111
|
+
const value = staticString(trimmed);
|
|
112
|
+
if (value !== null) {
|
|
113
|
+
if (value.includes('**'))
|
|
114
|
+
return null;
|
|
115
|
+
return value.split('/').filter((s) => s.length > 0);
|
|
116
|
+
}
|
|
117
|
+
if (CONSTANT_PATH.test(trimmed))
|
|
118
|
+
return [`{${trimmed.replace(/\s+/g, '')}}`];
|
|
119
|
+
if (trimmed.startsWith('`') && (0, object_literal_1.skipString)(trimmed, 0) === trimmed.length - 1) {
|
|
120
|
+
let ok = true;
|
|
121
|
+
const body = trimmed.slice(1, -1).replace(/\$\{([^}]*)\}/g, (_all, hole) => {
|
|
122
|
+
if (!CONSTANT_PATH.test(hole.trim()))
|
|
123
|
+
ok = false;
|
|
124
|
+
return `{${hole.replace(/\s+/g, '')}}`;
|
|
125
|
+
});
|
|
126
|
+
if (ok && !body.includes('**'))
|
|
127
|
+
return body.split('/').filter((seg) => seg.length > 0);
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
if (trimmed.includes('+')) {
|
|
131
|
+
const joined = [];
|
|
132
|
+
for (const part of splitPlus(trimmed)) {
|
|
133
|
+
const literal = staticString(part);
|
|
134
|
+
if (literal !== null)
|
|
135
|
+
joined.push(literal);
|
|
136
|
+
else if (CONSTANT_PATH.test(part.trim()))
|
|
137
|
+
joined.push(`{${part.trim().replace(/\s+/g, '')}}`);
|
|
138
|
+
else
|
|
139
|
+
return null;
|
|
140
|
+
}
|
|
141
|
+
const value = joined.join('');
|
|
142
|
+
return value.includes('**') ? null : value.split('/').filter((seg) => seg.length > 0);
|
|
143
|
+
}
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
function splitPlus(text) {
|
|
147
|
+
const parts = [];
|
|
148
|
+
let start = 0;
|
|
149
|
+
for (let i = 0; i < text.length; i++) {
|
|
150
|
+
const ch = text[i];
|
|
151
|
+
if (ch === '"' || ch === "'" || ch === '`') {
|
|
152
|
+
const end = (0, object_literal_1.skipString)(text, i);
|
|
153
|
+
if (end < 0)
|
|
154
|
+
return [text];
|
|
155
|
+
i = end;
|
|
156
|
+
}
|
|
157
|
+
else if (ch === '(' || ch === '[' || ch === '{') {
|
|
158
|
+
const end = (0, object_literal_1.matchBracket)(text, i);
|
|
159
|
+
if (end < 0)
|
|
160
|
+
return [text];
|
|
161
|
+
i = end;
|
|
162
|
+
}
|
|
163
|
+
else if (ch === '+') {
|
|
164
|
+
parts.push(text.slice(start, i));
|
|
165
|
+
start = i + 1;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
parts.push(text.slice(start));
|
|
169
|
+
return parts;
|
|
170
|
+
}
|
|
171
|
+
function componentRef(field, text) {
|
|
172
|
+
if (field === 'component') {
|
|
173
|
+
const ident = /^\s*([A-Z][\w$]*)\s*$/.exec(text);
|
|
174
|
+
return ident ? { name: ident[1], spec: null } : null;
|
|
175
|
+
}
|
|
176
|
+
const lazy = lazyImport(text);
|
|
177
|
+
return lazy ? { name: lazy.member, spec: lazy.spec } : null;
|
|
178
|
+
}
|
|
179
|
+
function lazyImport(text) {
|
|
180
|
+
const imp = /\bimport\s*\(\s*(['"`])([^'"`]+)\1\s*\)/.exec(text);
|
|
181
|
+
if (!imp)
|
|
182
|
+
return null;
|
|
183
|
+
const after = text.slice(imp.index + imp[0].length);
|
|
184
|
+
const then = /^\s*\.then\s*\(\s*\(?\s*([A-Za-z_$][\w$]*)\s*\)?\s*=>\s*\(?\s*\1\s*\.\s*([A-Za-z_$][\w$]*)/.exec(after);
|
|
185
|
+
const awaited = /^\s*\)\s*\.\s*([A-Za-z_$][\w$]*)/.exec(after);
|
|
186
|
+
return { spec: imp[2], member: then ? then[2] : awaited ? awaited[1] : null };
|
|
187
|
+
}
|
|
188
|
+
function joinPath(segs) {
|
|
189
|
+
return '/' + segs.join('/');
|
|
190
|
+
}
|
|
191
|
+
function parseAngularRoutes(content) {
|
|
192
|
+
const routes = [];
|
|
193
|
+
const mounts = [];
|
|
194
|
+
const redirects = [];
|
|
195
|
+
if (!ROUTER_IMPORT.test(content))
|
|
196
|
+
return { routes, mounts, redirects };
|
|
197
|
+
const safe = (0, strip_comments_1.stripCommentsForRegex)(content, 'typescript');
|
|
198
|
+
const lineOf = (at) => safe.slice(0, at).split('\n').length;
|
|
199
|
+
const seenPaths = new Set();
|
|
200
|
+
const walked = new Set();
|
|
201
|
+
const walk = (open, close, prefix, depth, layouts) => {
|
|
202
|
+
if (walked.has(open) || depth > 12)
|
|
203
|
+
return;
|
|
204
|
+
walked.add(open);
|
|
205
|
+
for (const obj of (0, object_literal_1.topLevelObjects)(safe, open + 1, close)) {
|
|
206
|
+
const fields = (0, object_literal_1.readFields)(safe, obj.start, obj.end);
|
|
207
|
+
if (!ROUTE_KEYS.some((k) => fields.has(k)))
|
|
208
|
+
continue;
|
|
209
|
+
if (fields.has('matcher'))
|
|
210
|
+
continue;
|
|
211
|
+
const pathField = fields.get('path');
|
|
212
|
+
if (pathField && fields.has('redirectTo') && staticString(pathField.text) === '**') {
|
|
213
|
+
const target = staticString(fields.get('redirectTo').text);
|
|
214
|
+
if (target !== null && !target.includes('**')) {
|
|
215
|
+
const absolute = target.startsWith('/');
|
|
216
|
+
redirects.push({ from: joinPath([...prefix, '**']), to: joinPath([...(absolute ? [] : prefix), ...target.split('/').filter((t) => t.length > 0)]), absolute });
|
|
217
|
+
}
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
const own = pathField ? pathSegments(pathField.text) : [];
|
|
221
|
+
if (own === null)
|
|
222
|
+
continue;
|
|
223
|
+
const segs = [...prefix, ...own];
|
|
224
|
+
const line = lineOf(pathField ? pathField.at : obj.start);
|
|
225
|
+
const redirectTo = fields.get('redirectTo');
|
|
226
|
+
if (redirectTo) {
|
|
227
|
+
const target = staticString(redirectTo.text);
|
|
228
|
+
if (target !== null && !target.includes('**')) {
|
|
229
|
+
const absolute = target.startsWith('/');
|
|
230
|
+
const to = joinPath([...(absolute ? [] : prefix), ...target.split('/').filter((t) => t.length > 0)]);
|
|
231
|
+
redirects.push({ from: joinPath(segs), to, absolute });
|
|
232
|
+
}
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
const loadChildren = fields.get('loadChildren');
|
|
236
|
+
if (loadChildren) {
|
|
237
|
+
const lazy = lazyImport(loadChildren.text);
|
|
238
|
+
if (lazy)
|
|
239
|
+
mounts.push({ prefix: joinPath(segs), spec: lazy.spec, line });
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
const componentField = fields.get('component') ? 'component' : fields.get('loadComponent') ? 'loadComponent' : null;
|
|
243
|
+
const component = componentField ? componentRef(componentField, fields.get(componentField).text) : null;
|
|
244
|
+
const children = fields.get('children');
|
|
245
|
+
let childClaimsAddress = false;
|
|
246
|
+
if (children) {
|
|
247
|
+
const childOpen = safe.indexOf('[', children.at);
|
|
248
|
+
const childClose = childOpen < 0 ? -1 : (0, object_literal_1.matchBracket)(safe, childOpen);
|
|
249
|
+
if (childOpen >= 0 && childClose > childOpen) {
|
|
250
|
+
for (const child of (0, object_literal_1.topLevelObjects)(safe, childOpen + 1, childClose)) {
|
|
251
|
+
const childPath = (0, object_literal_1.readFields)(safe, child.start, child.end).get('path');
|
|
252
|
+
if (!childPath || pathSegments(childPath.text)?.length === 0)
|
|
253
|
+
childClaimsAddress = true;
|
|
254
|
+
}
|
|
255
|
+
walk(childOpen, childClose, segs, depth + 1, component ? [...layouts, component] : layouts);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
if (!componentField || (children && childClaimsAddress))
|
|
259
|
+
continue;
|
|
260
|
+
const route = joinPath(segs);
|
|
261
|
+
if (seenPaths.has(route))
|
|
262
|
+
continue;
|
|
263
|
+
seenPaths.add(route);
|
|
264
|
+
routes.push({ path: route, line, component, layouts: [...layouts] });
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
ARRAY_OPENERS.lastIndex = 0;
|
|
268
|
+
let m;
|
|
269
|
+
while ((m = ARRAY_OPENERS.exec(safe)) !== null) {
|
|
270
|
+
const open = m.index + m[0].length - 1;
|
|
271
|
+
const close = (0, object_literal_1.matchBracket)(safe, open);
|
|
272
|
+
if (close < 0)
|
|
273
|
+
continue;
|
|
274
|
+
if (/^\b(?:const|let)\b/.test(m[0]) && !/^\]\s*(?:as|satisfies)\s+Routes\b/.test(safe.slice(close, close + 32)))
|
|
275
|
+
continue;
|
|
276
|
+
walk(open, close, [], 0, []);
|
|
277
|
+
}
|
|
278
|
+
return { routes, mounts, redirects };
|
|
279
|
+
}
|
|
280
|
+
function routeId(filePath, line, inFilePath) {
|
|
281
|
+
return `route:${filePath}:${line}:${inFilePath}:angular`;
|
|
282
|
+
}
|
|
283
|
+
function isAngularRoute(node) {
|
|
284
|
+
return node.kind === 'route' && node.id.endsWith(':angular') && node.id === routeId(node.filePath, node.startLine, inFilePath(node));
|
|
285
|
+
}
|
|
286
|
+
function inFilePath(node) {
|
|
287
|
+
const marker = '::route:';
|
|
288
|
+
const at = node.qualifiedName.indexOf(marker);
|
|
289
|
+
return at < 0 ? node.name : node.qualifiedName.slice(at + marker.length);
|
|
290
|
+
}
|
|
291
|
+
const COMPONENT_CLASS = /@Component\s*\(/g;
|
|
292
|
+
function componentClassesIn(content) {
|
|
293
|
+
const out = [];
|
|
294
|
+
const safe = (0, strip_comments_1.stripCommentsForRegex)(content, 'typescript');
|
|
295
|
+
COMPONENT_CLASS.lastIndex = 0;
|
|
296
|
+
let m;
|
|
297
|
+
while ((m = COMPONENT_CLASS.exec(safe)) !== null) {
|
|
298
|
+
const open = m.index + m[0].length - 1;
|
|
299
|
+
const close = (0, object_literal_1.matchBracket)(safe, open);
|
|
300
|
+
if (close < 0)
|
|
301
|
+
continue;
|
|
302
|
+
const after = /^\s*(export\s+)?(default\s+)?(?:abstract\s+)?class\s+([A-Za-z_$][\w$]*)/.exec(safe.slice(close + 1, close + 400));
|
|
303
|
+
if (after)
|
|
304
|
+
out.push({ name: after[3], isDefault: !!after[2], decoratorAt: m.index });
|
|
305
|
+
COMPONENT_CLASS.lastIndex = close;
|
|
306
|
+
}
|
|
307
|
+
return out;
|
|
308
|
+
}
|
|
309
|
+
function lazyComponent(spec, member, fromFile, context) {
|
|
310
|
+
const file = (0, import_resolver_1.resolveImportPath)(spec, fromFile, 'typescript', context);
|
|
311
|
+
if (!file)
|
|
312
|
+
return null;
|
|
313
|
+
let name = member;
|
|
314
|
+
if (!name) {
|
|
315
|
+
const content = context.readFile(file);
|
|
316
|
+
if (!content)
|
|
317
|
+
return null;
|
|
318
|
+
const classes = componentClassesIn(content);
|
|
319
|
+
name = (classes.find((c) => c.isDefault) ?? (classes.length === 1 ? classes[0] : undefined))?.name ?? null;
|
|
320
|
+
if (!name) {
|
|
321
|
+
const plain = /\bexport\s+default\s+class\s+([A-Za-z_$][\w$]*)/.exec(content);
|
|
322
|
+
name = plain ? plain[1] : null;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
if (!name)
|
|
326
|
+
return null;
|
|
327
|
+
return context.getNodesInFile(file).find((n) => n.kind === 'class' && n.name === name) ?? null;
|
|
328
|
+
}
|
|
329
|
+
function resolvedSegments(pathText, file, context) {
|
|
330
|
+
return pathText
|
|
331
|
+
.split('/')
|
|
332
|
+
.filter((seg) => seg.length > 0)
|
|
333
|
+
.flatMap((seg) => {
|
|
334
|
+
if (seg.startsWith('{') && seg.endsWith('}') && seg.indexOf('{', 1) < 0) {
|
|
335
|
+
const value = constantValue(seg.slice(1, -1), file, context);
|
|
336
|
+
return value === null ? [seg] : value.split('/').filter((v) => v.length > 0);
|
|
337
|
+
}
|
|
338
|
+
return [seg.replace(/\{([^{}]+)\}/g, (all, expr) => constantValue(expr, file, context) ?? all)];
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
function routeComponent(encoded, fromFile, context) {
|
|
342
|
+
const lazy = LAZY_COMPONENT_REF.exec(encoded);
|
|
343
|
+
if (lazy)
|
|
344
|
+
return lazyComponent(lazy[1], lazy[2] === 'default' ? null : lazy[2], fromFile, context);
|
|
345
|
+
const file = declaringFile(encoded, fromFile, context);
|
|
346
|
+
return file ? (context.getNodesInFile(file).find((n) => n.kind === 'class' && n.name === encoded) ?? null) : null;
|
|
347
|
+
}
|
|
348
|
+
function routeFilesLoadedBy(spec, fromFile, context, routeFiles, mountFiles) {
|
|
349
|
+
const target = (0, import_resolver_1.resolveImportPath)(spec, fromFile, 'typescript', context);
|
|
350
|
+
const seen = new Set();
|
|
351
|
+
const out = [];
|
|
352
|
+
let barrels = target ? [target] : [];
|
|
353
|
+
for (let hop = 0; hop < 4 && barrels.length > 0; hop++) {
|
|
354
|
+
const next = [];
|
|
355
|
+
for (const file of barrels) {
|
|
356
|
+
if (seen.has(file))
|
|
357
|
+
continue;
|
|
358
|
+
seen.add(file);
|
|
359
|
+
if (routeFiles.has(file) || mountFiles.has(file)) {
|
|
360
|
+
out.push(file);
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
const content = context.readFile(file);
|
|
364
|
+
if (!content)
|
|
365
|
+
continue;
|
|
366
|
+
if (/@NgModule\s*\(/.test(content)) {
|
|
367
|
+
const imports = /\bimport\s+[^'"]*?from\s+(['"])([^'"]+)\1/g;
|
|
368
|
+
let m;
|
|
369
|
+
while ((m = imports.exec(content)) !== null) {
|
|
370
|
+
const imported = (0, import_resolver_1.resolveImportPath)(m[2], file, 'typescript', context);
|
|
371
|
+
if (imported && (routeFiles.has(imported) || mountFiles.has(imported)) && !out.includes(imported))
|
|
372
|
+
out.push(imported);
|
|
373
|
+
}
|
|
374
|
+
continue;
|
|
375
|
+
}
|
|
376
|
+
const reexports = /\bexport\s+(?:\*|\{[^}]*\})\s*(?:as\s+[\w$]+\s*)?from\s+(['"])([^'"]+)\1/g;
|
|
377
|
+
let m;
|
|
378
|
+
while ((m = reexports.exec(content)) !== null) {
|
|
379
|
+
const reexported = (0, import_resolver_1.resolveImportPath)(m[2], file, 'typescript', context);
|
|
380
|
+
if (reexported && !seen.has(reexported))
|
|
381
|
+
next.push(reexported);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
barrels = next;
|
|
385
|
+
}
|
|
386
|
+
return out;
|
|
387
|
+
}
|
|
388
|
+
const constantTexts = new WeakMap();
|
|
389
|
+
function constantText(expr, fromFile, context) {
|
|
390
|
+
const source = context.getNodesByKind('route');
|
|
391
|
+
let entry = constantTexts.get(context);
|
|
392
|
+
if (!entry || entry.source !== source)
|
|
393
|
+
constantTexts.set(context, (entry = { source, memo: new Map() }));
|
|
394
|
+
const memo = entry.memo;
|
|
395
|
+
const key = `${fromFile}\0${expr}`;
|
|
396
|
+
if (memo.has(key))
|
|
397
|
+
return memo.get(key);
|
|
398
|
+
const aliased = localAlias(expr, fromFile, context);
|
|
399
|
+
if (aliased !== null && aliased !== expr) {
|
|
400
|
+
const value = constantText(aliased, fromFile, context);
|
|
401
|
+
memo.set(key, value);
|
|
402
|
+
return value;
|
|
403
|
+
}
|
|
404
|
+
const [root, ...chain] = expr.split('.').map((part) => part.trim());
|
|
405
|
+
let value = null;
|
|
406
|
+
const file = root ? declaringFile(root, fromFile, context) : null;
|
|
407
|
+
const content = file && root ? declarationSource(root, file, context, 0) : null;
|
|
408
|
+
if (content && root && chain.length > 0) {
|
|
409
|
+
const safe = (0, strip_comments_1.stripCommentsForRegex)(content, 'typescript');
|
|
410
|
+
const readChain = (open, links) => {
|
|
411
|
+
let start = open;
|
|
412
|
+
let end = (0, object_literal_1.matchBracket)(safe, start);
|
|
413
|
+
for (let i = 0; i < links.length && end > start; i++) {
|
|
414
|
+
const field = (0, object_literal_1.readFields)(safe, start, end).get(links[i]);
|
|
415
|
+
if (!field)
|
|
416
|
+
return null;
|
|
417
|
+
if (i === links.length - 1)
|
|
418
|
+
return field.text.trim();
|
|
419
|
+
start = safe.indexOf('{', field.at);
|
|
420
|
+
end = start < 0 ? -1 : (0, object_literal_1.matchBracket)(safe, start);
|
|
421
|
+
}
|
|
422
|
+
return null;
|
|
423
|
+
};
|
|
424
|
+
const decl = new RegExp(String.raw `\b(?:const|let)\s+${(0, utils_1.escapeRegExp)(root)}\s*(?::[^=]+)?=\s*\{`).exec(safe);
|
|
425
|
+
const enumDecl = decl ? null : new RegExp(String.raw `\benum\s+${(0, utils_1.escapeRegExp)(root)}\s*\{`).exec(safe);
|
|
426
|
+
const classDecl = decl || enumDecl ? null : new RegExp(String.raw `\bclass\s+${(0, utils_1.escapeRegExp)(root)}\b[^{]*\{`).exec(safe);
|
|
427
|
+
if (decl)
|
|
428
|
+
value = readChain(decl.index + decl[0].length - 1, chain);
|
|
429
|
+
else if (enumDecl && chain.length === 1) {
|
|
430
|
+
const open = enumDecl.index + enumDecl[0].length - 1;
|
|
431
|
+
const body = safe.slice(open, Math.max(open, (0, object_literal_1.matchBracket)(safe, open)));
|
|
432
|
+
value = new RegExp(String.raw `\b${(0, utils_1.escapeRegExp)(chain[0])}\s*=\s*(['"\`][^'"\`]*['"\`])`).exec(body)?.[1] ?? null;
|
|
433
|
+
}
|
|
434
|
+
else if (classDecl) {
|
|
435
|
+
const open = classDecl.index + classDecl[0].length - 1;
|
|
436
|
+
const close = (0, object_literal_1.matchBracket)(safe, open);
|
|
437
|
+
const body = close > open ? safe.slice(open, close) : '';
|
|
438
|
+
const field = new RegExp(String.raw `\bstatic\s+(?:readonly\s+)?${(0, utils_1.escapeRegExp)(chain[0])}\s*(?::[^=;]+)?=\s*`).exec(body);
|
|
439
|
+
if (field) {
|
|
440
|
+
const at = open + field.index + field[0].length;
|
|
441
|
+
if (safe[at] === '{')
|
|
442
|
+
value = chain.length > 1 ? readChain(at, chain.slice(1)) : null;
|
|
443
|
+
else if (chain.length === 1)
|
|
444
|
+
value = /^(['"\`])[^'"\`]*\1/.exec(safe.slice(at))?.[0] ?? null;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
memo.set(key, value);
|
|
449
|
+
return value;
|
|
450
|
+
}
|
|
451
|
+
function declarationSource(root, file, context, hops) {
|
|
452
|
+
const content = context.readFile(file);
|
|
453
|
+
if (!content)
|
|
454
|
+
return null;
|
|
455
|
+
if (new RegExp(String.raw `\b(?:const|let|class|enum)\s+${(0, utils_1.escapeRegExp)(root)}\b`).test(content))
|
|
456
|
+
return content;
|
|
457
|
+
if (hops >= 3)
|
|
458
|
+
return null;
|
|
459
|
+
const reexports = /\bexport\s+(\*|\{[^}]*\})\s*from\s+(['"])([^'"]+)\2/g;
|
|
460
|
+
let m;
|
|
461
|
+
while ((m = reexports.exec(content)) !== null) {
|
|
462
|
+
if (m[1] !== '*' && !new RegExp(String.raw `\b${(0, utils_1.escapeRegExp)(root)}\b`).test(m[1]))
|
|
463
|
+
continue;
|
|
464
|
+
const target = (0, import_resolver_1.resolveImportPath)(m[3], file, 'typescript', context);
|
|
465
|
+
const found = target ? declarationSource(root, target, context, hops + 1) : null;
|
|
466
|
+
if (found)
|
|
467
|
+
return found;
|
|
468
|
+
}
|
|
469
|
+
return null;
|
|
470
|
+
}
|
|
471
|
+
function localAlias(expr, fromFile, context) {
|
|
472
|
+
const content = context.readFile(fromFile);
|
|
473
|
+
if (!content)
|
|
474
|
+
return null;
|
|
475
|
+
const [root, ...rest] = expr.split('.');
|
|
476
|
+
if (!root)
|
|
477
|
+
return null;
|
|
478
|
+
const destructure = /\b(?:const|let)\s*\{([^}]*)\}\s*=\s*([A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*)*)\s*;?/g;
|
|
479
|
+
let m;
|
|
480
|
+
while ((m = destructure.exec(content)) !== null) {
|
|
481
|
+
for (const binding of m[1].split(',')) {
|
|
482
|
+
const [prop, local] = binding.split(':').map((part) => part.trim());
|
|
483
|
+
if ((local ?? prop) === root && prop)
|
|
484
|
+
return [`${m[2].replace(/\s+/g, '')}.${prop}`, ...rest].join('.');
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
const simple = new RegExp(String.raw `\b(?:const|let)\s+${(0, utils_1.escapeRegExp)(root)}\s*=\s*([A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*)+)\s*;`).exec(content);
|
|
488
|
+
return simple ? [simple[1].replace(/\s+/g, ''), ...rest].join('.') : null;
|
|
489
|
+
}
|
|
490
|
+
function constantValue(expr, fromFile, context) {
|
|
491
|
+
const text = constantText(expr, fromFile, context);
|
|
492
|
+
return text === null ? null : staticString(text);
|
|
493
|
+
}
|
|
494
|
+
function declaringFile(name, fromFile, context) {
|
|
495
|
+
const content = context.readFile(fromFile);
|
|
496
|
+
if (!content)
|
|
497
|
+
return null;
|
|
498
|
+
const imports = /\bimport\s*\{([^}]*)\}\s*from\s*(['"])([^'"]+)\2/g;
|
|
499
|
+
let m;
|
|
500
|
+
while ((m = imports.exec(content)) !== null) {
|
|
501
|
+
const names = m[1].split(',').map((s) => s.trim().split(/\s+as\s+/).pop().trim());
|
|
502
|
+
if (names.includes(name))
|
|
503
|
+
return (0, import_resolver_1.resolveImportPath)(m[3], fromFile, 'typescript', context);
|
|
504
|
+
}
|
|
505
|
+
return fromFile;
|
|
506
|
+
}
|
|
507
|
+
const mountMemo = new WeakMap();
|
|
508
|
+
function angularMounts(context, routes) {
|
|
509
|
+
const source = context.getNodesByKind('route');
|
|
510
|
+
const cached = mountMemo.get(context);
|
|
511
|
+
if (cached && cached.source === source)
|
|
512
|
+
return cached.mounts;
|
|
513
|
+
const routeFiles = new Set(routes.map((r) => r.filePath));
|
|
514
|
+
const mountsByFile = new Map();
|
|
515
|
+
for (const file of context.getAllFiles()) {
|
|
516
|
+
if (!/\.[cm]?ts$/.test(file) || !(context.fileContains?.(file, 'loadChildren') ?? context.readFile(file)?.includes('loadChildren')))
|
|
517
|
+
continue;
|
|
518
|
+
const content = context.readFile(file);
|
|
519
|
+
if (!content)
|
|
520
|
+
continue;
|
|
521
|
+
const { mounts } = parseAngularRoutes(content);
|
|
522
|
+
if (mounts.length > 0)
|
|
523
|
+
mountsByFile.set(file, mounts);
|
|
524
|
+
}
|
|
525
|
+
const mountFiles = new Set(mountsByFile.keys());
|
|
526
|
+
const loadedBy = new Map();
|
|
527
|
+
for (const [file, mounts] of mountsByFile) {
|
|
528
|
+
for (const mount of mounts) {
|
|
529
|
+
for (const target of routeFilesLoadedBy(mount.spec, file, context, routeFiles, mountFiles)) {
|
|
530
|
+
if (target !== file && !loadedBy.has(target))
|
|
531
|
+
loadedBy.set(target, { parent: file, prefix: mount.prefix });
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
const memo = new Map();
|
|
536
|
+
const prefixOf = (file, seen = new Set()) => {
|
|
537
|
+
const hit = memo.get(file);
|
|
538
|
+
if (hit !== undefined)
|
|
539
|
+
return hit;
|
|
540
|
+
const mount = loadedBy.get(file);
|
|
541
|
+
let prefix = [];
|
|
542
|
+
if (mount && !seen.has(file)) {
|
|
543
|
+
seen.add(file);
|
|
544
|
+
prefix = [...prefixOf(mount.parent, seen), ...resolvedSegments(mount.prefix, mount.parent, context)];
|
|
545
|
+
}
|
|
546
|
+
memo.set(file, prefix);
|
|
547
|
+
return prefix;
|
|
548
|
+
};
|
|
549
|
+
const mounts = { mountFiles, prefixOf: (file) => prefixOf(file) };
|
|
550
|
+
mountMemo.set(context, { source, mounts });
|
|
551
|
+
return mounts;
|
|
552
|
+
}
|
|
553
|
+
const workspaceRoots = new WeakMap();
|
|
554
|
+
function angularAppRoot(filePath, context) {
|
|
555
|
+
const source = context.getNodesByKind('route');
|
|
556
|
+
let entry = workspaceRoots.get(context);
|
|
557
|
+
if (!entry || entry.source !== source)
|
|
558
|
+
workspaceRoots.set(context, (entry = { source, memo: new Map() }));
|
|
559
|
+
const memo = entry.memo;
|
|
560
|
+
const slash = filePath.lastIndexOf('/');
|
|
561
|
+
const dir = slash < 0 ? '' : filePath.slice(0, slash);
|
|
562
|
+
let found = memo.get(dir);
|
|
563
|
+
if (found === undefined) {
|
|
564
|
+
found = null;
|
|
565
|
+
for (let d = dir; d !== null; d = d === '' ? null : d.includes('/') ? d.slice(0, d.lastIndexOf('/')) : '') {
|
|
566
|
+
const at = d === '' ? '' : `${d}/`;
|
|
567
|
+
if (context.fileExists(`${at}angular.json`) || context.fileExists(`${at}nx.json`)) {
|
|
568
|
+
found = at;
|
|
569
|
+
break;
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
memo.set(dir, found);
|
|
573
|
+
}
|
|
574
|
+
return found ?? (0, expo_router_1.appRootFor)(filePath);
|
|
575
|
+
}
|
|
576
|
+
function inAngularTable(node) {
|
|
577
|
+
return isAngularRoute(node) && node.name.startsWith('/');
|
|
578
|
+
}
|
|
579
|
+
const tables = new WeakMap();
|
|
580
|
+
function angularRouteTable(context) {
|
|
581
|
+
const all = context.getNodesByKind('route');
|
|
582
|
+
const cached = tables.get(context);
|
|
583
|
+
if (cached && cached.source === all)
|
|
584
|
+
return cached;
|
|
585
|
+
const byRoot = new Map();
|
|
586
|
+
const byFile = new Map();
|
|
587
|
+
for (const node of all) {
|
|
588
|
+
if (!inAngularTable(node))
|
|
589
|
+
continue;
|
|
590
|
+
const root = angularAppRoot(node.filePath, context);
|
|
591
|
+
let t = byRoot.get(root);
|
|
592
|
+
if (!t)
|
|
593
|
+
byRoot.set(root, (t = { source: all, exact: new Map(), dynamic: [] }));
|
|
594
|
+
(0, expo_router_1.addRouteTo)(t, node.name, node);
|
|
595
|
+
if (!byFile.has(node.filePath))
|
|
596
|
+
byFile.set(node.filePath, node);
|
|
597
|
+
}
|
|
598
|
+
const aliases = [];
|
|
599
|
+
const mounts = byFile.size > 0 ? angularMounts(context, all.filter(isAngularRoute)) : null;
|
|
600
|
+
const redirectFiles = new Map();
|
|
601
|
+
for (const [file, sample] of byFile) {
|
|
602
|
+
const own = resolvedSegments(inFilePath(sample), file, context);
|
|
603
|
+
const full = sample.name.split('/').filter((seg) => seg.length > 0);
|
|
604
|
+
redirectFiles.set(file, full.slice(0, Math.max(0, full.length - own.length)));
|
|
605
|
+
}
|
|
606
|
+
for (const file of mounts?.mountFiles ?? []) {
|
|
607
|
+
if (!redirectFiles.has(file))
|
|
608
|
+
redirectFiles.set(file, mounts.prefixOf(file));
|
|
609
|
+
}
|
|
610
|
+
for (const [file, prefix] of redirectFiles) {
|
|
611
|
+
const content = context.readFile(file);
|
|
612
|
+
if (!content || !content.includes('redirectTo'))
|
|
613
|
+
continue;
|
|
614
|
+
const table = byRoot.get(angularAppRoot(file, context)) ?? (byRoot.size === 1 ? [...byRoot.values()][0] : undefined);
|
|
615
|
+
if (!table)
|
|
616
|
+
continue;
|
|
617
|
+
for (const r of parseAngularRoutes(content).redirects) {
|
|
618
|
+
const from = joinPath([...prefix, ...resolvedSegments(r.from, file, context)]);
|
|
619
|
+
const to = joinPath([...(r.absolute ? [] : prefix), ...resolvedSegments(r.to, file, context)]);
|
|
620
|
+
aliases.push({ table, from, to });
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
for (let pass = 0; pass < 4; pass++) {
|
|
624
|
+
let added = false;
|
|
625
|
+
for (const a of aliases) {
|
|
626
|
+
const target = a.table.exact.get(a.to);
|
|
627
|
+
if (target && !a.table.exact.has(a.from)) {
|
|
628
|
+
a.table.exact.set(a.from, target);
|
|
629
|
+
added = true;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
if (!added)
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
for (const a of aliases) {
|
|
636
|
+
if (a.from !== '/**')
|
|
637
|
+
continue;
|
|
638
|
+
const target = a.table.exact.get(a.to);
|
|
639
|
+
if (target && !a.table.exact.has('/'))
|
|
640
|
+
a.table.exact.set('/', target);
|
|
641
|
+
}
|
|
642
|
+
const table = { source: all, byRoot };
|
|
643
|
+
tables.set(context, table);
|
|
644
|
+
return table;
|
|
645
|
+
}
|
|
646
|
+
const appCounts = new WeakMap();
|
|
647
|
+
function angularAppCount(context) {
|
|
648
|
+
const all = context.getNodesByKind('route');
|
|
649
|
+
const cached = appCounts.get(context);
|
|
650
|
+
if (cached && cached.source === all)
|
|
651
|
+
return cached.count;
|
|
652
|
+
const roots = new Set();
|
|
653
|
+
for (const node of all)
|
|
654
|
+
if (inAngularTable(node))
|
|
655
|
+
roots.add(angularAppRoot(node.filePath, context));
|
|
656
|
+
appCounts.set(context, { source: all, count: roots.size });
|
|
657
|
+
return roots.size;
|
|
658
|
+
}
|
|
659
|
+
function angularRoutesFor(table, filePath) {
|
|
660
|
+
const own = (0, expo_router_1.routesForFile)(table, filePath);
|
|
661
|
+
if (own && own.exact.size > 0)
|
|
662
|
+
return own;
|
|
663
|
+
return table.byRoot.size === 1 ? [...table.byRoot.values()][0] : null;
|
|
664
|
+
}
|
|
665
|
+
const NAV_CALL = /^(?:this\.)?_?[rR]outer\.(navigate|navigateByUrl|createUrlTree|parseUrl)$/;
|
|
666
|
+
function commandsHref(text, fromRoot = false) {
|
|
667
|
+
const arr = text.trim();
|
|
668
|
+
if (arr[0] !== '[')
|
|
669
|
+
return null;
|
|
670
|
+
const close = (0, object_literal_1.matchBracket)(arr, 0);
|
|
671
|
+
if (close < 0)
|
|
672
|
+
return null;
|
|
673
|
+
const parts = [];
|
|
674
|
+
let i = 1;
|
|
675
|
+
let element = '';
|
|
676
|
+
const flush = () => {
|
|
677
|
+
const e = element.trim();
|
|
678
|
+
element = '';
|
|
679
|
+
if (e.length === 0)
|
|
680
|
+
return true;
|
|
681
|
+
const literal = staticString(e);
|
|
682
|
+
if (literal !== null) {
|
|
683
|
+
parts.push(...literal.split('/').filter((seg) => seg.length > 0));
|
|
684
|
+
return true;
|
|
685
|
+
}
|
|
686
|
+
if (e.startsWith('{'))
|
|
687
|
+
return true;
|
|
688
|
+
parts.push(expo_router_1.HOLE);
|
|
689
|
+
return true;
|
|
690
|
+
};
|
|
691
|
+
while (i < close) {
|
|
692
|
+
const ch = arr[i];
|
|
693
|
+
if (ch === '"' || ch === "'" || ch === '`') {
|
|
694
|
+
const end = (0, object_literal_1.skipString)(arr, i);
|
|
695
|
+
if (end < 0)
|
|
696
|
+
return null;
|
|
697
|
+
element += arr.slice(i, end + 1);
|
|
698
|
+
i = end + 1;
|
|
699
|
+
continue;
|
|
700
|
+
}
|
|
701
|
+
if (ch === '[' || ch === '{' || ch === '(') {
|
|
702
|
+
const end = (0, object_literal_1.matchBracket)(arr, i);
|
|
703
|
+
if (end < 0)
|
|
704
|
+
return null;
|
|
705
|
+
element += arr.slice(i, end + 1);
|
|
706
|
+
i = end + 1;
|
|
707
|
+
continue;
|
|
708
|
+
}
|
|
709
|
+
if (ch === ',')
|
|
710
|
+
flush();
|
|
711
|
+
else
|
|
712
|
+
element += ch;
|
|
713
|
+
i++;
|
|
714
|
+
}
|
|
715
|
+
flush();
|
|
716
|
+
const firstElement = arr.slice(1, close).split(',')[0] ?? '';
|
|
717
|
+
const first = staticString(firstElement);
|
|
718
|
+
if (first === null || (!first.startsWith('/') && !(fromRoot && !first.startsWith('.'))))
|
|
719
|
+
return null;
|
|
720
|
+
const pathText = '/' + parts.filter((p) => p.length > 0).join('/');
|
|
721
|
+
return namesSomewhere({ path: pathText, display: pathText.split(expo_router_1.HOLE).join('${…}') });
|
|
722
|
+
}
|
|
723
|
+
function namesSomewhere(href) {
|
|
724
|
+
if (!href)
|
|
725
|
+
return null;
|
|
726
|
+
const segs = href.path.split('/').filter((seg) => seg.length > 0);
|
|
727
|
+
return segs.length === 0 || segs.some((seg) => !seg.includes(expo_router_1.HOLE)) ? href : null;
|
|
728
|
+
}
|
|
729
|
+
function propertyInitializer(owner, name, content) {
|
|
730
|
+
const body = content.split('\n').slice(owner.startLine - 1, owner.endLine).join('\n');
|
|
731
|
+
const decl = new RegExp(String.raw `(?:^|[\s;{])(?:(?:public|private|protected|readonly|static|override)\s+)*${(0, utils_1.escapeRegExp)(name)}\s*(?::[^=;\n]+)?=\s*`).exec(body);
|
|
732
|
+
if (!decl)
|
|
733
|
+
return null;
|
|
734
|
+
let i = decl.index + decl[0].length;
|
|
735
|
+
const start = i;
|
|
736
|
+
while (i < body.length) {
|
|
737
|
+
const ch = body[i];
|
|
738
|
+
if (ch === '"' || ch === "'" || ch === '`') {
|
|
739
|
+
const end = (0, object_literal_1.skipString)(body, i);
|
|
740
|
+
if (end < 0)
|
|
741
|
+
return null;
|
|
742
|
+
i = end + 1;
|
|
743
|
+
continue;
|
|
744
|
+
}
|
|
745
|
+
if (ch === '[' || ch === '{' || ch === '(') {
|
|
746
|
+
const end = (0, object_literal_1.matchBracket)(body, i);
|
|
747
|
+
if (end < 0)
|
|
748
|
+
return null;
|
|
749
|
+
i = end + 1;
|
|
750
|
+
continue;
|
|
751
|
+
}
|
|
752
|
+
if (ch === ';' || ch === '\n')
|
|
753
|
+
break;
|
|
754
|
+
i++;
|
|
755
|
+
}
|
|
756
|
+
return body.slice(start, i).trim() || null;
|
|
757
|
+
}
|
|
758
|
+
function arrowReturn(fn) {
|
|
759
|
+
const arrow = fn.indexOf('=>');
|
|
760
|
+
if (arrow < 0)
|
|
761
|
+
return null;
|
|
762
|
+
let i = arrow + 2;
|
|
763
|
+
while (i < fn.length && /\s/.test(fn[i]))
|
|
764
|
+
i++;
|
|
765
|
+
if (fn[i] === '(')
|
|
766
|
+
i++;
|
|
767
|
+
if (fn[i] === '[') {
|
|
768
|
+
const end = (0, object_literal_1.matchBracket)(fn, i);
|
|
769
|
+
return end > i ? fn.slice(i, end + 1) : null;
|
|
770
|
+
}
|
|
771
|
+
if (fn[i] === '{') {
|
|
772
|
+
const ret = /\breturn\s*\[/.exec(fn.slice(i));
|
|
773
|
+
if (!ret)
|
|
774
|
+
return null;
|
|
775
|
+
const open = i + ret.index + ret[0].length - 1;
|
|
776
|
+
const end = (0, object_literal_1.matchBracket)(fn, open);
|
|
777
|
+
return end > open ? fn.slice(open, end + 1) : null;
|
|
778
|
+
}
|
|
779
|
+
return null;
|
|
780
|
+
}
|
|
781
|
+
function angularDestination(expr, file, owner, context, depth = 0, fromRoot = false) {
|
|
782
|
+
return namesSomewhere(destinationOf(expr, file, owner, context, depth, fromRoot));
|
|
783
|
+
}
|
|
784
|
+
function destinationOf(expr, file, owner, context, depth, fromRoot) {
|
|
785
|
+
const text = expr.trim();
|
|
786
|
+
if (text.length === 0 || depth > 4)
|
|
787
|
+
return null;
|
|
788
|
+
if (text[0] === '[')
|
|
789
|
+
return commandsHref(text, fromRoot);
|
|
790
|
+
const literal = staticString(text);
|
|
791
|
+
if (literal !== null)
|
|
792
|
+
return (0, expo_router_1.toHref)(literal);
|
|
793
|
+
if (/^['"]/.test(text) && text.includes('+')) {
|
|
794
|
+
const head = staticString(text.slice(0, text.indexOf('+')));
|
|
795
|
+
if (head !== null && head.startsWith('/'))
|
|
796
|
+
return (0, expo_router_1.toHref)(head.replace(/\/?$/, '/') + expo_router_1.HOLE);
|
|
797
|
+
}
|
|
798
|
+
const concat = /^(.*?)\.concat\s*\((.*)\)$/s.exec(text);
|
|
799
|
+
if (concat) {
|
|
800
|
+
const base = angularDestination(concat[1], file, owner, context, depth + 1, fromRoot);
|
|
801
|
+
const added = concat[2].split(',').filter((a) => a.trim().length > 0).length;
|
|
802
|
+
return base && added > 0 ? (0, expo_router_1.toHref)(base.path.replace(/\/$/, '') + ('/' + expo_router_1.HOLE).repeat(added)) : base;
|
|
803
|
+
}
|
|
804
|
+
const call = /^((?:this\s*\.\s*)?[A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*)+)\s*\((.*)\)$/s.exec(text);
|
|
805
|
+
if (call) {
|
|
806
|
+
const fn = constantText(call[1].replace(/\s+/g, '').replace(/^this\./, ''), file, context);
|
|
807
|
+
const returned = fn ? arrowReturn(fn) : null;
|
|
808
|
+
return returned ? commandsHref(returned, fromRoot) : null;
|
|
809
|
+
}
|
|
810
|
+
const chain = /^(?:this\s*\.\s*)?([A-Za-z_$][\w$]*(?:\s*\.\s*[A-Za-z_$][\w$]*)*)$/.exec(text);
|
|
811
|
+
if (!chain)
|
|
812
|
+
return (0, expo_router_1.parseHrefExpression)(text);
|
|
813
|
+
const parts = chain[1].replace(/\s+/g, '').split('.');
|
|
814
|
+
const content = context.readFile(file);
|
|
815
|
+
if (content && owner && (text.startsWith('this') || parts.length === 1)) {
|
|
816
|
+
const init = propertyInitializer(owner, parts[0], content);
|
|
817
|
+
if (init !== null) {
|
|
818
|
+
if (parts.length === 1)
|
|
819
|
+
return angularDestination(init, file, owner, context, depth + 1, fromRoot);
|
|
820
|
+
return angularDestination(`${init}.${parts.slice(1).join('.')}`, file, owner, context, depth + 1, fromRoot);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
const constant = constantText(parts.join('.'), file, context);
|
|
824
|
+
return constant ? angularDestination(constant, file, owner, context, depth + 1, fromRoot) : null;
|
|
825
|
+
}
|
|
826
|
+
const LAZY_COMPONENT_REF = /^import:([^#]+)#([\w$]+)$/;
|
|
827
|
+
const LAYOUT_REF = /^layout:(.+)$/;
|
|
828
|
+
exports.angularRouterResolver = {
|
|
829
|
+
name: 'angular-router',
|
|
830
|
+
languages: ['typescript', 'javascript'],
|
|
831
|
+
detect(context) {
|
|
832
|
+
return (0, package_deps_1.dependsOn)(context, '@angular/router', '@angular/core');
|
|
833
|
+
},
|
|
834
|
+
claimsReference(name) {
|
|
835
|
+
return NAV_CALL.test(name) || LAZY_COMPONENT_REF.test(name) || LAYOUT_REF.test(name);
|
|
836
|
+
},
|
|
837
|
+
navigation: {
|
|
838
|
+
tails: ['navigate', 'navigateByUrl', 'createUrlTree', 'parseUrl'],
|
|
839
|
+
scope: (route, context) => {
|
|
840
|
+
if (!inAngularTable(route))
|
|
841
|
+
return null;
|
|
842
|
+
return angularAppCount(context) === 1 ? [''] : [angularAppRoot(route.filePath, context)];
|
|
843
|
+
},
|
|
844
|
+
},
|
|
845
|
+
extract(filePath, content) {
|
|
846
|
+
if (!/\.[cm]?ts$/.test(filePath) || filePath.endsWith('.d.ts'))
|
|
847
|
+
return { nodes: [], references: [] };
|
|
848
|
+
const { routes } = parseAngularRoutes(content);
|
|
849
|
+
if (routes.length === 0)
|
|
850
|
+
return { nodes: [], references: [] };
|
|
851
|
+
const now = Date.now();
|
|
852
|
+
const nodes = [];
|
|
853
|
+
const references = [];
|
|
854
|
+
for (const route of routes) {
|
|
855
|
+
const node = {
|
|
856
|
+
id: routeId(filePath, route.line, route.path),
|
|
857
|
+
kind: 'route',
|
|
858
|
+
name: route.path,
|
|
859
|
+
qualifiedName: `${filePath}::route:${route.path}`,
|
|
860
|
+
filePath,
|
|
861
|
+
startLine: route.line,
|
|
862
|
+
endLine: route.line,
|
|
863
|
+
startColumn: 0,
|
|
864
|
+
endColumn: 0,
|
|
865
|
+
language: 'typescript',
|
|
866
|
+
updatedAt: now,
|
|
867
|
+
};
|
|
868
|
+
nodes.push(node);
|
|
869
|
+
const ref = (component, layout) => ({
|
|
870
|
+
fromNodeId: node.id,
|
|
871
|
+
referenceName: `${layout ? 'layout:' : ''}${component.spec === null ? component.name : `import:${component.spec}#${component.name ?? 'default'}`}`,
|
|
872
|
+
referenceKind: 'references',
|
|
873
|
+
line: route.line,
|
|
874
|
+
column: 0,
|
|
875
|
+
filePath,
|
|
876
|
+
language: 'typescript',
|
|
877
|
+
});
|
|
878
|
+
if (route.component)
|
|
879
|
+
references.push(ref(route.component, false));
|
|
880
|
+
for (const layout of route.layouts)
|
|
881
|
+
references.push(ref(layout, true));
|
|
882
|
+
}
|
|
883
|
+
return { nodes, references };
|
|
884
|
+
},
|
|
885
|
+
postExtract(context) {
|
|
886
|
+
const routes = context.getNodesByKind('route').filter(isAngularRoute);
|
|
887
|
+
if (routes.length === 0)
|
|
888
|
+
return [];
|
|
889
|
+
const { prefixOf } = angularMounts(context, routes);
|
|
890
|
+
const resolved = (pathText, file) => resolvedSegments(pathText, file, context);
|
|
891
|
+
const changed = [];
|
|
892
|
+
for (const route of routes) {
|
|
893
|
+
const name = joinPath([...prefixOf(route.filePath), ...resolved(inFilePath(route), route.filePath)]);
|
|
894
|
+
if (name !== route.name)
|
|
895
|
+
changed.push({ ...route, name });
|
|
896
|
+
}
|
|
897
|
+
return changed;
|
|
898
|
+
},
|
|
899
|
+
resolve(ref, context) {
|
|
900
|
+
const layout = LAYOUT_REF.exec(ref.referenceName);
|
|
901
|
+
if (layout) {
|
|
902
|
+
if (!ref.fromNodeId.endsWith(':angular'))
|
|
903
|
+
return null;
|
|
904
|
+
const component = routeComponent(layout[1], ref.filePath, context);
|
|
905
|
+
return component
|
|
906
|
+
? { original: ref, targetNodeId: component.id, confidence: 0.95, resolvedBy: 'framework', metadata: { layout: true } }
|
|
907
|
+
: null;
|
|
908
|
+
}
|
|
909
|
+
const lazy = LAZY_COMPONENT_REF.exec(ref.referenceName);
|
|
910
|
+
if (lazy) {
|
|
911
|
+
if (!ref.fromNodeId.endsWith(':angular'))
|
|
912
|
+
return null;
|
|
913
|
+
const component = lazyComponent(lazy[1], lazy[2] === 'default' ? null : lazy[2], ref.filePath, context);
|
|
914
|
+
return component ? { original: ref, targetNodeId: component.id, confidence: 0.95, resolvedBy: 'framework' } : null;
|
|
915
|
+
}
|
|
916
|
+
const nav = NAV_CALL.exec(ref.referenceName);
|
|
917
|
+
if (!nav || ref.referenceKind !== 'calls')
|
|
918
|
+
return null;
|
|
919
|
+
const verb = nav[1];
|
|
920
|
+
const routes = angularRoutesFor(angularRouteTable(context), ref.filePath);
|
|
921
|
+
if (!routes || routes.exact.size === 0)
|
|
922
|
+
return null;
|
|
923
|
+
const lines = context.getFileLines?.(ref.filePath) ?? context.readFile(ref.filePath)?.split(/\r?\n/) ?? null;
|
|
924
|
+
if (!lines)
|
|
925
|
+
return null;
|
|
926
|
+
const arg = (0, expo_router_1.firstArgumentText)(lines, ref.line, ref.column, verb);
|
|
927
|
+
if (arg === null)
|
|
928
|
+
return null;
|
|
929
|
+
const extras = (0, expo_router_1.nthArgumentText)(lines, ref.line, ref.column, verb, 1);
|
|
930
|
+
if (extras && /\brelativeTo\b/.test(extras))
|
|
931
|
+
return null;
|
|
932
|
+
const owner = context
|
|
933
|
+
.getNodesInFile(ref.filePath)
|
|
934
|
+
.filter((n) => n.kind === 'class' && n.startLine <= ref.line && n.endLine >= ref.line)
|
|
935
|
+
.reduce((inner, n) => (!inner || n.startLine >= inner.startLine ? n : inner), null);
|
|
936
|
+
const href = angularDestination(arg, ref.filePath, owner, context, 0, true);
|
|
937
|
+
if (!href || !href.path.startsWith('/'))
|
|
938
|
+
return null;
|
|
939
|
+
const targets = (0, nextjs_1.destinationsForHref)(href, routes);
|
|
940
|
+
const target = targets[0];
|
|
941
|
+
if (!target)
|
|
942
|
+
return null;
|
|
943
|
+
return {
|
|
944
|
+
original: ref,
|
|
945
|
+
targetNodeId: target.node.id,
|
|
946
|
+
...(targets.length > 1
|
|
947
|
+
? { alsoTargets: targets.slice(1).map((t) => ({ targetNodeId: t.node.id, metadata: { href: t.href.display, navMethod: verb } })) }
|
|
948
|
+
: {}),
|
|
949
|
+
confidence: 0.95,
|
|
950
|
+
resolvedBy: 'framework',
|
|
951
|
+
edgeKind: 'navigates',
|
|
952
|
+
metadata: { href: target.href.display, navMethod: verb },
|
|
953
|
+
};
|
|
954
|
+
},
|
|
955
|
+
};
|
|
956
|
+
function templatePathFor(componentFile, templateUrl) {
|
|
957
|
+
return path.posix.normalize(path.posix.join(path.posix.dirname(componentFile), templateUrl));
|
|
958
|
+
}
|
|
959
|
+
//# sourceMappingURL=angular-router.js.map
|