@colbymchenry/codegraph-win32-arm64 1.6.2 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/codegraph +1 -1
- package/bin/codegraph.cmd +1 -1
- package/lib/dist/.test-build-engine.json +1 -1
- package/lib/dist/.test-build-viewer.json +1 -1
- package/lib/dist/bin/codegraph.d.ts +3 -0
- package/lib/dist/bin/codegraph.d.ts.map +1 -1
- package/lib/dist/bin/codegraph.js +507 -702
- package/lib/dist/bin/codegraph.js.map +1 -1
- package/lib/dist/bin/command-supervision.js +1 -57
- package/lib/dist/bin/command-supervision.js.map +1 -1
- package/lib/dist/bin/fatal-handler.js +0 -46
- package/lib/dist/bin/fatal-handler.js.map +1 -1
- package/lib/dist/bin/node-version-check.js +0 -33
- package/lib/dist/bin/node-version-check.js.map +1 -1
- package/lib/dist/bin/uninstall.js +0 -19
- package/lib/dist/bin/uninstall.js.map +1 -1
- package/lib/dist/bin/viewer-gate.js +0 -14
- package/lib/dist/bin/viewer-gate.js.map +1 -1
- package/lib/dist/compile-cache.d.ts +2 -0
- package/lib/dist/compile-cache.d.ts.map +1 -0
- package/lib/dist/compile-cache.js +45 -0
- package/lib/dist/compile-cache.js.map +1 -0
- package/lib/dist/context/formatter.js +3 -66
- package/lib/dist/context/formatter.js.map +1 -1
- package/lib/dist/context/index.d.ts +44 -1
- package/lib/dist/context/index.d.ts.map +1 -1
- package/lib/dist/context/index.js +123 -430
- package/lib/dist/context/index.js.map +1 -1
- package/lib/dist/context/markers.js +0 -17
- package/lib/dist/context/markers.js.map +1 -1
- package/lib/dist/db/index.d.ts +44 -1
- package/lib/dist/db/index.d.ts.map +1 -1
- package/lib/dist/db/index.js +123 -395
- package/lib/dist/db/index.js.map +1 -1
- package/lib/dist/db/migrations.d.ts +11 -1
- package/lib/dist/db/migrations.d.ts.map +1 -1
- package/lib/dist/db/migrations.js +71 -79
- package/lib/dist/db/migrations.js.map +1 -1
- package/lib/dist/db/name-substring-index.d.ts +63 -0
- package/lib/dist/db/name-substring-index.d.ts.map +1 -0
- package/lib/dist/db/name-substring-index.js +151 -0
- package/lib/dist/db/name-substring-index.js.map +1 -0
- package/lib/dist/db/node-sqlite.d.ts +19 -0
- package/lib/dist/db/node-sqlite.d.ts.map +1 -0
- package/lib/dist/db/node-sqlite.js +23 -0
- package/lib/dist/db/node-sqlite.js.map +1 -0
- package/lib/dist/db/open-error.d.ts +36 -0
- package/lib/dist/db/open-error.d.ts.map +1 -0
- package/lib/dist/db/open-error.js +63 -0
- package/lib/dist/db/open-error.js.map +1 -0
- package/lib/dist/db/parameter-flow-queries.d.ts +120 -0
- package/lib/dist/db/parameter-flow-queries.d.ts.map +1 -0
- package/lib/dist/db/parameter-flow-queries.js +168 -0
- package/lib/dist/db/parameter-flow-queries.js.map +1 -0
- package/lib/dist/db/queries.d.ts +654 -34
- package/lib/dist/db/queries.d.ts.map +1 -1
- package/lib/dist/db/queries.js +1466 -1470
- package/lib/dist/db/queries.js.map +1 -1
- package/lib/dist/db/reference-tail.d.ts +83 -0
- package/lib/dist/db/reference-tail.d.ts.map +1 -0
- package/lib/dist/db/reference-tail.js +68 -0
- package/lib/dist/db/reference-tail.js.map +1 -0
- package/lib/dist/db/schema.sql +18 -2
- package/lib/dist/db/sqlite-adapter.d.ts +18 -1
- package/lib/dist/db/sqlite-adapter.d.ts.map +1 -1
- package/lib/dist/db/sqlite-adapter.js +12 -62
- package/lib/dist/db/sqlite-adapter.js.map +1 -1
- package/lib/dist/db/synthesis-stage.d.ts.map +1 -1
- package/lib/dist/db/synthesis-stage.js +2 -6
- package/lib/dist/db/synthesis-stage.js.map +1 -1
- package/lib/dist/db/wal-valve.js +1 -153
- package/lib/dist/db/wal-valve.js.map +1 -1
- package/lib/dist/db/wsl-shared-index.js +0 -37
- package/lib/dist/db/wsl-shared-index.js.map +1 -1
- package/lib/dist/directory.d.ts +51 -0
- package/lib/dist/directory.d.ts.map +1 -1
- package/lib/dist/directory.js +76 -530
- package/lib/dist/directory.js.map +1 -1
- package/lib/dist/engine.d.ts +15 -0
- package/lib/dist/engine.d.ts.map +1 -0
- package/lib/dist/engine.js +35 -0
- package/lib/dist/engine.js.map +1 -0
- package/lib/dist/errors.d.ts +10 -0
- package/lib/dist/errors.d.ts.map +1 -1
- package/lib/dist/errors.js +8 -101
- package/lib/dist/errors.js.map +1 -1
- package/lib/dist/extraction/astro-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/astro-extractor.js +11 -101
- package/lib/dist/extraction/astro-extractor.js.map +1 -1
- package/lib/dist/extraction/cfml-extractor.d.ts +27 -1
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/cfml-extractor.js +70 -206
- package/lib/dist/extraction/cfml-extractor.js.map +1 -1
- package/lib/dist/extraction/commonjs-requires.js +0 -31
- package/lib/dist/extraction/commonjs-requires.js.map +1 -1
- package/lib/dist/extraction/dfm-extractor.js +0 -21
- package/lib/dist/extraction/dfm-extractor.js.map +1 -1
- package/lib/dist/extraction/extraction-version.d.ts +1 -1
- package/lib/dist/extraction/extraction-version.js +1 -24
- package/lib/dist/extraction/extraction-version.js.map +1 -1
- package/lib/dist/extraction/function-ref.d.ts +40 -0
- package/lib/dist/extraction/function-ref.d.ts.map +1 -1
- package/lib/dist/extraction/function-ref.js +157 -207
- package/lib/dist/extraction/function-ref.js.map +1 -1
- package/lib/dist/extraction/generated-detection.js +0 -165
- package/lib/dist/extraction/generated-detection.js.map +1 -1
- package/lib/dist/extraction/grammars.d.ts +73 -4
- package/lib/dist/extraction/grammars.d.ts.map +1 -1
- package/lib/dist/extraction/grammars.js +160 -431
- package/lib/dist/extraction/grammars.js.map +1 -1
- package/lib/dist/extraction/index.d.ts +208 -7
- package/lib/dist/extraction/index.d.ts.map +1 -1
- package/lib/dist/extraction/index.js +594 -1383
- package/lib/dist/extraction/index.js.map +1 -1
- package/lib/dist/extraction/kernel/decode.js +0 -16
- package/lib/dist/extraction/kernel/decode.js.map +1 -1
- package/lib/dist/extraction/kernel/index.d.ts +3 -1
- package/lib/dist/extraction/kernel/index.d.ts.map +1 -1
- package/lib/dist/extraction/kernel/index.js +48 -135
- package/lib/dist/extraction/kernel/index.js.map +1 -1
- package/lib/dist/extraction/kernel/layout.js +42 -76
- package/lib/dist/extraction/kernel/layout.js.map +1 -1
- package/lib/dist/extraction/kernel/loader.d.ts +5 -1
- package/lib/dist/extraction/kernel/loader.d.ts.map +1 -1
- package/lib/dist/extraction/kernel/loader.js +0 -37
- package/lib/dist/extraction/kernel/loader.js.map +1 -1
- package/lib/dist/extraction/languages/arkts.js +0 -59
- package/lib/dist/extraction/languages/arkts.js.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.d.ts +125 -28
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -1
- package/lib/dist/extraction/languages/c-cpp.js +789 -856
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -1
- package/lib/dist/extraction/languages/cfquery.js +0 -9
- package/lib/dist/extraction/languages/cfquery.js.map +1 -1
- package/lib/dist/extraction/languages/cfscript.d.ts +20 -0
- package/lib/dist/extraction/languages/cfscript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/cfscript.js +80 -9
- package/lib/dist/extraction/languages/cfscript.js.map +1 -1
- package/lib/dist/extraction/languages/cobol.js +0 -114
- package/lib/dist/extraction/languages/cobol.js.map +1 -1
- package/lib/dist/extraction/languages/cpp-brace-scopes.d.ts +66 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.js +343 -0
- package/lib/dist/extraction/languages/cpp-brace-scopes.js.map +1 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.d.ts +41 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.js +487 -0
- package/lib/dist/extraction/languages/cpp-macro-methods.js.map +1 -0
- package/lib/dist/extraction/languages/csharp.js +3 -55
- package/lib/dist/extraction/languages/csharp.js.map +1 -1
- package/lib/dist/extraction/languages/dart.d.ts +129 -0
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -1
- package/lib/dist/extraction/languages/dart.js +517 -162
- package/lib/dist/extraction/languages/dart.js.map +1 -1
- package/lib/dist/extraction/languages/erlang.d.ts.map +1 -1
- package/lib/dist/extraction/languages/erlang.js +15 -102
- package/lib/dist/extraction/languages/erlang.js.map +1 -1
- package/lib/dist/extraction/languages/go.d.ts +48 -0
- package/lib/dist/extraction/languages/go.d.ts.map +1 -1
- package/lib/dist/extraction/languages/go.js +102 -31
- package/lib/dist/extraction/languages/go.js.map +1 -1
- package/lib/dist/extraction/languages/index.js +0 -6
- package/lib/dist/extraction/languages/index.js.map +1 -1
- package/lib/dist/extraction/languages/java.d.ts.map +1 -1
- package/lib/dist/extraction/languages/java.js +67 -78
- package/lib/dist/extraction/languages/java.js.map +1 -1
- package/lib/dist/extraction/languages/javascript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/javascript.js +2 -12
- package/lib/dist/extraction/languages/javascript.js.map +1 -1
- package/lib/dist/extraction/languages/kotlin.d.ts +11 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -1
- package/lib/dist/extraction/languages/kotlin.js +43 -197
- package/lib/dist/extraction/languages/kotlin.js.map +1 -1
- package/lib/dist/extraction/languages/lua.js +2 -39
- package/lib/dist/extraction/languages/lua.js.map +1 -1
- package/lib/dist/extraction/languages/luau.js +0 -14
- package/lib/dist/extraction/languages/luau.js.map +1 -1
- package/lib/dist/extraction/languages/nix.js +0 -16
- package/lib/dist/extraction/languages/nix.js.map +1 -1
- package/lib/dist/extraction/languages/objc.d.ts.map +1 -1
- package/lib/dist/extraction/languages/objc.js +5 -16
- package/lib/dist/extraction/languages/objc.js.map +1 -1
- package/lib/dist/extraction/languages/pascal-preparse.d.ts +66 -0
- package/lib/dist/extraction/languages/pascal-preparse.d.ts.map +1 -0
- package/lib/dist/extraction/languages/pascal-preparse.js +958 -0
- package/lib/dist/extraction/languages/pascal-preparse.js.map +1 -0
- package/lib/dist/extraction/languages/pascal-system.d.ts +11 -0
- package/lib/dist/extraction/languages/pascal-system.d.ts.map +1 -0
- package/lib/dist/extraction/languages/pascal-system.js +23 -0
- package/lib/dist/extraction/languages/pascal-system.js.map +1 -0
- package/lib/dist/extraction/languages/pascal.d.ts.map +1 -1
- package/lib/dist/extraction/languages/pascal.js +3 -4
- package/lib/dist/extraction/languages/pascal.js.map +1 -1
- package/lib/dist/extraction/languages/php.d.ts +9 -0
- package/lib/dist/extraction/languages/php.d.ts.map +1 -1
- package/lib/dist/extraction/languages/php.js +207 -44
- package/lib/dist/extraction/languages/php.js.map +1 -1
- package/lib/dist/extraction/languages/python.js +2 -20
- package/lib/dist/extraction/languages/python.js.map +1 -1
- package/lib/dist/extraction/languages/r.js +8 -78
- package/lib/dist/extraction/languages/r.js.map +1 -1
- package/lib/dist/extraction/languages/ruby.d.ts.map +1 -1
- package/lib/dist/extraction/languages/ruby.js +17 -25
- package/lib/dist/extraction/languages/ruby.js.map +1 -1
- package/lib/dist/extraction/languages/rust-macro-calls.d.ts +32 -0
- package/lib/dist/extraction/languages/rust-macro-calls.d.ts.map +1 -0
- package/lib/dist/extraction/languages/rust-macro-calls.js +306 -0
- package/lib/dist/extraction/languages/rust-macro-calls.js.map +1 -0
- package/lib/dist/extraction/languages/rust.d.ts +10 -0
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -1
- package/lib/dist/extraction/languages/rust.js +15 -47
- package/lib/dist/extraction/languages/rust.js.map +1 -1
- package/lib/dist/extraction/languages/scala.js +5 -41
- package/lib/dist/extraction/languages/scala.js.map +1 -1
- package/lib/dist/extraction/languages/solidity.js +1 -82
- package/lib/dist/extraction/languages/solidity.js.map +1 -1
- package/lib/dist/extraction/languages/swift.js +3 -47
- package/lib/dist/extraction/languages/swift.js.map +1 -1
- package/lib/dist/extraction/languages/terraform.js +6 -152
- package/lib/dist/extraction/languages/terraform.js.map +1 -1
- package/lib/dist/extraction/languages/typescript.d.ts +64 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -1
- package/lib/dist/extraction/languages/typescript.js +73 -49
- package/lib/dist/extraction/languages/typescript.js.map +1 -1
- package/lib/dist/extraction/languages/vbnet.d.ts.map +1 -1
- package/lib/dist/extraction/languages/vbnet.js +9 -42
- package/lib/dist/extraction/languages/vbnet.js.map +1 -1
- package/lib/dist/extraction/lazy-frameworks.d.ts +15 -0
- package/lib/dist/extraction/lazy-frameworks.d.ts.map +1 -0
- package/lib/dist/extraction/lazy-frameworks.js +8 -0
- package/lib/dist/extraction/lazy-frameworks.js.map +1 -0
- package/lib/dist/extraction/liquid-extractor.d.ts +29 -3
- package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/liquid-extractor.js +89 -148
- package/lib/dist/extraction/liquid-extractor.js.map +1 -1
- package/lib/dist/extraction/mybatis-extractor.js +0 -78
- package/lib/dist/extraction/mybatis-extractor.js.map +1 -1
- package/lib/dist/extraction/parse-budget.d.ts +42 -7
- package/lib/dist/extraction/parse-budget.d.ts.map +1 -1
- package/lib/dist/extraction/parse-budget.js +39 -15
- package/lib/dist/extraction/parse-budget.js.map +1 -1
- package/lib/dist/extraction/parse-pool.d.ts +29 -17
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -1
- package/lib/dist/extraction/parse-pool.js +49 -193
- package/lib/dist/extraction/parse-pool.js.map +1 -1
- package/lib/dist/extraction/parse-worker.d.ts +1 -1
- package/lib/dist/extraction/parse-worker.d.ts.map +1 -1
- package/lib/dist/extraction/parse-worker.js +5 -58
- package/lib/dist/extraction/parse-worker.js.map +1 -1
- package/lib/dist/extraction/razor-extractor.d.ts +9 -0
- package/lib/dist/extraction/razor-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/razor-extractor.js +45 -69
- package/lib/dist/extraction/razor-extractor.js.map +1 -1
- package/lib/dist/extraction/razor-script.d.ts +23 -0
- package/lib/dist/extraction/razor-script.d.ts.map +1 -0
- package/lib/dist/extraction/razor-script.js +244 -0
- package/lib/dist/extraction/razor-script.js.map +1 -0
- package/lib/dist/extraction/sfc-script.d.ts +42 -0
- package/lib/dist/extraction/sfc-script.d.ts.map +1 -1
- package/lib/dist/extraction/sfc-script.js +32 -31
- package/lib/dist/extraction/sfc-script.js.map +1 -1
- package/lib/dist/extraction/store-worker.d.ts +1 -1
- package/lib/dist/extraction/store-worker.d.ts.map +1 -1
- package/lib/dist/extraction/store-worker.js +1 -38
- package/lib/dist/extraction/store-worker.js.map +1 -1
- package/lib/dist/extraction/store-writer.js +2 -34
- package/lib/dist/extraction/store-writer.js.map +1 -1
- package/lib/dist/extraction/svelte-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/svelte-extractor.js +11 -87
- package/lib/dist/extraction/svelte-extractor.js.map +1 -1
- package/lib/dist/extraction/syntax-tokens.d.ts +6 -5
- package/lib/dist/extraction/syntax-tokens.d.ts.map +1 -1
- package/lib/dist/extraction/syntax-tokens.js +4 -152
- package/lib/dist/extraction/syntax-tokens.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-helpers.d.ts +37 -1
- package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter-helpers.js +76 -68
- package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.d.ts +102 -22
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter-types.js +0 -7
- package/lib/dist/extraction/tree-sitter-types.js.map +1 -1
- package/lib/dist/extraction/tree-sitter.d.ts +518 -10
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -1
- package/lib/dist/extraction/tree-sitter.js +2118 -2554
- package/lib/dist/extraction/tree-sitter.js.map +1 -1
- package/lib/dist/extraction/vue-extractor.d.ts +13 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -1
- package/lib/dist/extraction/vue-extractor.js +52 -92
- package/lib/dist/extraction/vue-extractor.js.map +1 -1
- package/lib/dist/extraction/vue-options-api.js +0 -32
- package/lib/dist/extraction/vue-options-api.js.map +1 -1
- package/lib/dist/extraction/vue-template-calls.d.ts +37 -0
- package/lib/dist/extraction/vue-template-calls.d.ts.map +1 -0
- package/lib/dist/extraction/vue-template-calls.js +497 -0
- package/lib/dist/extraction/vue-template-calls.js.map +1 -0
- package/lib/dist/extraction/wasm/tree-sitter-dart.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-swift.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts +15 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -1
- package/lib/dist/extraction/wasm-runtime-flags.js +18 -89
- package/lib/dist/extraction/wasm-runtime-flags.js.map +1 -1
- package/lib/dist/file-limits.d.ts +8 -0
- package/lib/dist/file-limits.d.ts.map +1 -1
- package/lib/dist/file-limits.js +13 -28
- package/lib/dist/file-limits.js.map +1 -1
- package/lib/dist/graph/branch-guards.d.ts.map +1 -1
- package/lib/dist/graph/branch-guards.js +4 -251
- package/lib/dist/graph/branch-guards.js.map +1 -1
- package/lib/dist/graph/call-sites.d.ts +12 -0
- package/lib/dist/graph/call-sites.d.ts.map +1 -0
- package/lib/dist/graph/call-sites.js +17 -0
- package/lib/dist/graph/call-sites.js.map +1 -0
- package/lib/dist/graph/cobol-copybooks.d.ts +75 -0
- package/lib/dist/graph/cobol-copybooks.d.ts.map +1 -0
- package/lib/dist/graph/cobol-copybooks.js +45 -0
- package/lib/dist/graph/cobol-copybooks.js.map +1 -0
- package/lib/dist/graph/dead-code.d.ts +26 -4
- package/lib/dist/graph/dead-code.d.ts.map +1 -1
- package/lib/dist/graph/dead-code.js +157 -311
- package/lib/dist/graph/dead-code.js.map +1 -1
- package/lib/dist/graph/dynamic-boundary-report.js +1 -88
- package/lib/dist/graph/dynamic-boundary-report.js.map +1 -1
- package/lib/dist/graph/file-cycles.d.ts +20 -0
- package/lib/dist/graph/file-cycles.d.ts.map +1 -0
- package/lib/dist/graph/file-cycles.js +79 -0
- package/lib/dist/graph/file-cycles.js.map +1 -0
- package/lib/dist/graph/file-drift.d.ts +35 -0
- package/lib/dist/graph/file-drift.d.ts.map +1 -0
- package/lib/dist/graph/file-drift.js +46 -0
- package/lib/dist/graph/file-drift.js.map +1 -0
- package/lib/dist/graph/go-package.d.ts +27 -0
- package/lib/dist/graph/go-package.d.ts.map +1 -0
- package/lib/dist/graph/go-package.js +49 -0
- package/lib/dist/graph/go-package.js.map +1 -0
- package/lib/dist/graph/index.d.ts +2 -0
- package/lib/dist/graph/index.d.ts.map +1 -1
- package/lib/dist/graph/index.js +4 -6
- package/lib/dist/graph/index.js.map +1 -1
- package/lib/dist/graph/named-symbol-flow.d.ts +5 -1
- package/lib/dist/graph/named-symbol-flow.d.ts.map +1 -1
- package/lib/dist/graph/named-symbol-flow.js +82 -223
- package/lib/dist/graph/named-symbol-flow.js.map +1 -1
- package/lib/dist/graph/owning-package.d.ts +59 -0
- package/lib/dist/graph/owning-package.d.ts.map +1 -0
- package/lib/dist/graph/owning-package.js +120 -0
- package/lib/dist/graph/owning-package.js.map +1 -0
- package/lib/dist/graph/queries.d.ts +6 -3
- package/lib/dist/graph/queries.d.ts.map +1 -1
- package/lib/dist/graph/queries.js +4 -137
- package/lib/dist/graph/queries.js.map +1 -1
- package/lib/dist/graph/symbol-lookup.d.ts +15 -3
- package/lib/dist/graph/symbol-lookup.d.ts.map +1 -1
- package/lib/dist/graph/symbol-lookup.js +47 -89
- package/lib/dist/graph/symbol-lookup.js.map +1 -1
- package/lib/dist/graph/symbol-references.d.ts +86 -0
- package/lib/dist/graph/symbol-references.d.ts.map +1 -0
- package/lib/dist/graph/symbol-references.js +304 -0
- package/lib/dist/graph/symbol-references.js.map +1 -0
- package/lib/dist/graph/synthesized-hop.d.ts +37 -0
- package/lib/dist/graph/synthesized-hop.d.ts.map +1 -0
- package/lib/dist/graph/synthesized-hop.js +62 -0
- package/lib/dist/graph/synthesized-hop.js.map +1 -0
- package/lib/dist/graph/test-code.d.ts +33 -0
- package/lib/dist/graph/test-code.d.ts.map +1 -0
- package/lib/dist/graph/test-code.js +104 -0
- package/lib/dist/graph/test-code.js.map +1 -0
- package/lib/dist/graph/traversal.d.ts +31 -2
- package/lib/dist/graph/traversal.d.ts.map +1 -1
- package/lib/dist/graph/traversal.js +96 -226
- package/lib/dist/graph/traversal.js.map +1 -1
- package/lib/dist/graph/type-hierarchy.js +0 -138
- package/lib/dist/graph/type-hierarchy.js.map +1 -1
- package/lib/dist/index.d.ts +214 -26
- package/lib/dist/index.d.ts.map +1 -1
- package/lib/dist/index.js +736 -1112
- package/lib/dist/index.js.map +1 -1
- package/lib/dist/installer/beta-signup.js +0 -39
- package/lib/dist/installer/beta-signup.js.map +1 -1
- package/lib/dist/installer/config-writer.js +0 -24
- package/lib/dist/installer/config-writer.js.map +1 -1
- package/lib/dist/installer/index.d.ts +13 -6
- package/lib/dist/installer/index.d.ts.map +1 -1
- package/lib/dist/installer/index.js +27 -160
- package/lib/dist/installer/index.js.map +1 -1
- package/lib/dist/installer/instructions-template.d.ts +16 -1
- package/lib/dist/installer/instructions-template.d.ts.map +1 -1
- package/lib/dist/installer/instructions-template.js +10 -38
- package/lib/dist/installer/instructions-template.js.map +1 -1
- package/lib/dist/installer/targets/antigravity.js +0 -113
- package/lib/dist/installer/targets/antigravity.js.map +1 -1
- package/lib/dist/installer/targets/bob.d.ts +20 -0
- package/lib/dist/installer/targets/bob.d.ts.map +1 -0
- package/lib/dist/installer/targets/bob.js +83 -0
- package/lib/dist/installer/targets/bob.js.map +1 -0
- package/lib/dist/installer/targets/claude.d.ts.map +1 -1
- package/lib/dist/installer/targets/claude.js +1 -185
- package/lib/dist/installer/targets/claude.js.map +1 -1
- package/lib/dist/installer/targets/codex.d.ts.map +1 -1
- package/lib/dist/installer/targets/codex.js +17 -109
- package/lib/dist/installer/targets/codex.js.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.d.ts.map +1 -1
- package/lib/dist/installer/targets/copilot-cli.js +2 -54
- package/lib/dist/installer/targets/copilot-cli.js.map +1 -1
- package/lib/dist/installer/targets/copilot-jetbrains.js +0 -57
- package/lib/dist/installer/targets/copilot-jetbrains.js.map +1 -1
- package/lib/dist/installer/targets/copilot-vscode.js +0 -58
- package/lib/dist/installer/targets/copilot-vscode.js.map +1 -1
- package/lib/dist/installer/targets/cursor.js +7 -88
- package/lib/dist/installer/targets/cursor.js.map +1 -1
- package/lib/dist/installer/targets/droid.d.ts +18 -0
- package/lib/dist/installer/targets/droid.d.ts.map +1 -0
- package/lib/dist/installer/targets/droid.js +92 -0
- package/lib/dist/installer/targets/droid.js.map +1 -0
- package/lib/dist/installer/targets/dsh.d.ts +35 -0
- package/lib/dist/installer/targets/dsh.d.ts.map +1 -0
- package/lib/dist/installer/targets/dsh.js +267 -0
- package/lib/dist/installer/targets/dsh.js.map +1 -0
- package/lib/dist/installer/targets/gemini.js +0 -37
- package/lib/dist/installer/targets/gemini.js.map +1 -1
- package/lib/dist/installer/targets/grok.d.ts +25 -0
- package/lib/dist/installer/targets/grok.d.ts.map +1 -0
- package/lib/dist/installer/targets/grok.js +96 -0
- package/lib/dist/installer/targets/grok.js.map +1 -0
- package/lib/dist/installer/targets/hermes.d.ts +19 -7
- package/lib/dist/installer/targets/hermes.d.ts.map +1 -1
- package/lib/dist/installer/targets/hermes.js +218 -214
- package/lib/dist/installer/targets/hermes.js.map +1 -1
- package/lib/dist/installer/targets/json-config.d.ts +45 -0
- package/lib/dist/installer/targets/json-config.d.ts.map +1 -0
- package/lib/dist/installer/targets/json-config.js +128 -0
- package/lib/dist/installer/targets/json-config.js.map +1 -0
- package/lib/dist/installer/targets/kimi.d.ts +21 -0
- package/lib/dist/installer/targets/kimi.d.ts.map +1 -0
- package/lib/dist/installer/targets/kimi.js +97 -0
- package/lib/dist/installer/targets/kimi.js.map +1 -0
- package/lib/dist/installer/targets/kiro.js +1 -41
- package/lib/dist/installer/targets/kiro.js.map +1 -1
- package/lib/dist/installer/targets/opencode.d.ts.map +1 -1
- package/lib/dist/installer/targets/opencode.js +1 -103
- package/lib/dist/installer/targets/opencode.js.map +1 -1
- package/lib/dist/installer/targets/pi.d.ts +24 -0
- package/lib/dist/installer/targets/pi.d.ts.map +1 -0
- package/lib/dist/installer/targets/pi.js +100 -0
- package/lib/dist/installer/targets/pi.js.map +1 -0
- package/lib/dist/installer/targets/qoder.d.ts +23 -0
- package/lib/dist/installer/targets/qoder.d.ts.map +1 -0
- package/lib/dist/installer/targets/qoder.js +83 -0
- package/lib/dist/installer/targets/qoder.js.map +1 -0
- package/lib/dist/installer/targets/qwen.d.ts +21 -0
- package/lib/dist/installer/targets/qwen.d.ts.map +1 -0
- package/lib/dist/installer/targets/qwen.js +115 -0
- package/lib/dist/installer/targets/qwen.js.map +1 -0
- package/lib/dist/installer/targets/registry.d.ts.map +1 -1
- package/lib/dist/installer/targets/registry.js +18 -25
- package/lib/dist/installer/targets/registry.js.map +1 -1
- package/lib/dist/installer/targets/shared.d.ts +83 -13
- package/lib/dist/installer/targets/shared.d.ts.map +1 -1
- package/lib/dist/installer/targets/shared.js +201 -131
- package/lib/dist/installer/targets/shared.js.map +1 -1
- package/lib/dist/installer/targets/toml.d.ts +82 -6
- package/lib/dist/installer/targets/toml.d.ts.map +1 -1
- package/lib/dist/installer/targets/toml.js +318 -112
- package/lib/dist/installer/targets/toml.js.map +1 -1
- package/lib/dist/installer/targets/types.d.ts +1 -1
- package/lib/dist/installer/targets/types.d.ts.map +1 -1
- package/lib/dist/installer/targets/types.js +0 -13
- package/lib/dist/installer/targets/types.js.map +1 -1
- package/lib/dist/installer/targets/windsurf.d.ts +22 -0
- package/lib/dist/installer/targets/windsurf.d.ts.map +1 -0
- package/lib/dist/installer/targets/windsurf.js +90 -0
- package/lib/dist/installer/targets/windsurf.js.map +1 -0
- package/lib/dist/lazy-engine.d.ts +22 -0
- package/lib/dist/lazy-engine.d.ts.map +1 -0
- package/lib/dist/lazy-engine.js +16 -0
- package/lib/dist/lazy-engine.js.map +1 -0
- package/lib/dist/mcp/answer-freshness.js +0 -6
- package/lib/dist/mcp/answer-freshness.js.map +1 -1
- package/lib/dist/mcp/daemon-manager.js +2 -23
- package/lib/dist/mcp/daemon-manager.js.map +1 -1
- package/lib/dist/mcp/daemon-paths.d.ts +2 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-paths.js +9 -85
- package/lib/dist/mcp/daemon-paths.js.map +1 -1
- package/lib/dist/mcp/daemon-proof.d.ts +19 -0
- package/lib/dist/mcp/daemon-proof.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-proof.js +126 -0
- package/lib/dist/mcp/daemon-proof.js.map +1 -0
- package/lib/dist/mcp/daemon-registry.d.ts +47 -2
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -1
- package/lib/dist/mcp/daemon-registry.js +188 -139
- package/lib/dist/mcp/daemon-registry.js.map +1 -1
- package/lib/dist/mcp/daemon.d.ts +69 -0
- package/lib/dist/mcp/daemon.d.ts.map +1 -1
- package/lib/dist/mcp/daemon.js +186 -376
- package/lib/dist/mcp/daemon.js.map +1 -1
- package/lib/dist/mcp/dynamic-boundaries.js +4 -78
- package/lib/dist/mcp/dynamic-boundaries.js.map +1 -1
- package/lib/dist/mcp/early-ppid.js +0 -24
- package/lib/dist/mcp/early-ppid.js.map +1 -1
- package/lib/dist/mcp/engine.d.ts +24 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -1
- package/lib/dist/mcp/engine.js +47 -152
- package/lib/dist/mcp/engine.js.map +1 -1
- package/lib/dist/mcp/explore-dedup.js +0 -108
- package/lib/dist/mcp/explore-dedup.js.map +1 -1
- package/lib/dist/mcp/explore-diagnostics.d.ts +6 -0
- package/lib/dist/mcp/explore-diagnostics.d.ts.map +1 -1
- package/lib/dist/mcp/explore-diagnostics.js +8 -116
- package/lib/dist/mcp/explore-diagnostics.js.map +1 -1
- package/lib/dist/mcp/explore-one-symbol.d.ts +77 -0
- package/lib/dist/mcp/explore-one-symbol.d.ts.map +1 -0
- package/lib/dist/mcp/explore-one-symbol.js +431 -0
- package/lib/dist/mcp/explore-one-symbol.js.map +1 -0
- package/lib/dist/mcp/explore-session-state.js +0 -129
- package/lib/dist/mcp/explore-session-state.js.map +1 -1
- package/lib/dist/mcp/hook-client.d.ts +44 -0
- package/lib/dist/mcp/hook-client.d.ts.map +1 -0
- package/lib/dist/mcp/hook-client.js +202 -0
- package/lib/dist/mcp/hook-client.js.map +1 -0
- package/lib/dist/mcp/index-freshness-worker.js +1 -6
- package/lib/dist/mcp/index-freshness-worker.js.map +1 -1
- package/lib/dist/mcp/index-freshness.js +0 -15
- package/lib/dist/mcp/index-freshness.js.map +1 -1
- package/lib/dist/mcp/index-version-warning.d.ts +21 -0
- package/lib/dist/mcp/index-version-warning.d.ts.map +1 -0
- package/lib/dist/mcp/index-version-warning.js +38 -0
- package/lib/dist/mcp/index-version-warning.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +29 -1
- package/lib/dist/mcp/index.d.ts.map +1 -1
- package/lib/dist/mcp/index.js +131 -300
- package/lib/dist/mcp/index.js.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.d.ts +13 -3
- package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -1
- package/lib/dist/mcp/liveness-watchdog.js +106 -121
- package/lib/dist/mcp/liveness-watchdog.js.map +1 -1
- package/lib/dist/mcp/opencode-tool-names.d.ts +32 -0
- package/lib/dist/mcp/opencode-tool-names.d.ts.map +1 -0
- package/lib/dist/mcp/opencode-tool-names.js +24 -0
- package/lib/dist/mcp/opencode-tool-names.js.map +1 -0
- package/lib/dist/mcp/ppid-watchdog.js +0 -24
- package/lib/dist/mcp/ppid-watchdog.js.map +1 -1
- package/lib/dist/mcp/process-identity.d.ts +42 -0
- package/lib/dist/mcp/process-identity.d.ts.map +1 -0
- package/lib/dist/mcp/process-identity.js +130 -0
- package/lib/dist/mcp/process-identity.js.map +1 -0
- package/lib/dist/mcp/project-lifecycle.d.ts +6 -0
- package/lib/dist/mcp/project-lifecycle.d.ts.map +1 -1
- package/lib/dist/mcp/project-lifecycle.js +70 -19
- package/lib/dist/mcp/project-lifecycle.js.map +1 -1
- package/lib/dist/mcp/prompt-explore.d.ts +19 -0
- package/lib/dist/mcp/prompt-explore.d.ts.map +1 -0
- package/lib/dist/mcp/prompt-explore.js +6 -0
- package/lib/dist/mcp/prompt-explore.js.map +1 -0
- package/lib/dist/mcp/proxy.d.ts +25 -7
- package/lib/dist/mcp/proxy.d.ts.map +1 -1
- package/lib/dist/mcp/proxy.js +145 -274
- package/lib/dist/mcp/proxy.js.map +1 -1
- package/lib/dist/mcp/query-pool.d.ts +52 -3
- package/lib/dist/mcp/query-pool.d.ts.map +1 -1
- package/lib/dist/mcp/query-pool.js +114 -123
- package/lib/dist/mcp/query-pool.js.map +1 -1
- package/lib/dist/mcp/query-worker.js +24 -36
- package/lib/dist/mcp/query-worker.js.map +1 -1
- package/lib/dist/mcp/server-instructions.d.ts +18 -0
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -1
- package/lib/dist/mcp/server-instructions.js +12 -32
- package/lib/dist/mcp/server-instructions.js.map +1 -1
- package/lib/dist/mcp/session.d.ts +46 -0
- package/lib/dist/mcp/session.d.ts.map +1 -1
- package/lib/dist/mcp/session.js +70 -132
- package/lib/dist/mcp/session.js.map +1 -1
- package/lib/dist/mcp/startup-handshake.js +1 -48
- package/lib/dist/mcp/startup-handshake.js.map +1 -1
- package/lib/dist/mcp/stdin-teardown.js +0 -28
- package/lib/dist/mcp/stdin-teardown.js.map +1 -1
- package/lib/dist/mcp/stdout-teardown.d.ts +26 -0
- package/lib/dist/mcp/stdout-teardown.d.ts.map +1 -0
- package/lib/dist/mcp/stdout-teardown.js +20 -0
- package/lib/dist/mcp/stdout-teardown.js.map +1 -0
- package/lib/dist/mcp/tools.d.ts +157 -18
- package/lib/dist/mcp/tools.d.ts.map +1 -1
- package/lib/dist/mcp/tools.js +797 -3621
- package/lib/dist/mcp/tools.js.map +1 -1
- package/lib/dist/mcp/transport.d.ts.map +1 -1
- package/lib/dist/mcp/transport.js +4 -96
- package/lib/dist/mcp/transport.js.map +1 -1
- package/lib/dist/mcp/version.d.ts +13 -1
- package/lib/dist/mcp/version.d.ts.map +1 -1
- package/lib/dist/mcp/version.js +19 -21
- package/lib/dist/mcp/version.js.map +1 -1
- package/lib/dist/mcp/writer-lock.d.ts +11 -0
- package/lib/dist/mcp/writer-lock.d.ts.map +1 -1
- package/lib/dist/mcp/writer-lock.js +49 -46
- package/lib/dist/mcp/writer-lock.js.map +1 -1
- package/lib/dist/project-config.d.ts +20 -0
- package/lib/dist/project-config.d.ts.map +1 -1
- package/lib/dist/project-config.js +31 -140
- package/lib/dist/project-config.js.map +1 -1
- package/lib/dist/resolution/alias-binding.d.ts +7 -0
- package/lib/dist/resolution/alias-binding.d.ts.map +1 -1
- package/lib/dist/resolution/alias-binding.js +7 -56
- package/lib/dist/resolution/alias-binding.js.map +1 -1
- package/lib/dist/resolution/ambient-modules.d.ts +185 -0
- package/lib/dist/resolution/ambient-modules.d.ts.map +1 -0
- package/lib/dist/resolution/ambient-modules.js +732 -0
- package/lib/dist/resolution/ambient-modules.js.map +1 -0
- package/lib/dist/resolution/angular-template-synthesizer.d.ts +48 -1
- package/lib/dist/resolution/angular-template-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/angular-template-synthesizer.js +401 -65
- package/lib/dist/resolution/angular-template-synthesizer.js.map +1 -1
- package/lib/dist/resolution/c-feature-variants.d.ts +40 -0
- package/lib/dist/resolution/c-feature-variants.d.ts.map +1 -0
- package/lib/dist/resolution/c-feature-variants.js +249 -0
- package/lib/dist/resolution/c-feature-variants.js.map +1 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/c-fnptr-synthesizer.js +23 -391
- package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -1
- package/lib/dist/resolution/c-macro-renames.d.ts +25 -0
- package/lib/dist/resolution/c-macro-renames.d.ts.map +1 -0
- package/lib/dist/resolution/c-macro-renames.js +95 -0
- package/lib/dist/resolution/c-macro-renames.js.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts +19 -5
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/callback-synthesizer.js +1395 -1343
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -1
- package/lib/dist/resolution/const-alias-synthesizer.d.ts +48 -0
- package/lib/dist/resolution/const-alias-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/const-alias-synthesizer.js +234 -0
- package/lib/dist/resolution/const-alias-synthesizer.js.map +1 -0
- package/lib/dist/resolution/cooperative-yield.js +0 -27
- package/lib/dist/resolution/cooperative-yield.js.map +1 -1
- package/lib/dist/resolution/cpp-constructor.d.ts.map +1 -1
- package/lib/dist/resolution/cpp-constructor.js +15 -17
- package/lib/dist/resolution/cpp-constructor.js.map +1 -1
- package/lib/dist/resolution/cpp-includers.d.ts +46 -0
- package/lib/dist/resolution/cpp-includers.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-includers.js +153 -0
- package/lib/dist/resolution/cpp-includers.js.map +1 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts +16 -0
- package/lib/dist/resolution/cpp-macro-visibility.d.ts.map +1 -1
- package/lib/dist/resolution/cpp-macro-visibility.js +17 -68
- package/lib/dist/resolution/cpp-macro-visibility.js.map +1 -1
- package/lib/dist/resolution/cpp-namespaces.d.ts +54 -0
- package/lib/dist/resolution/cpp-namespaces.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-namespaces.js +151 -0
- package/lib/dist/resolution/cpp-namespaces.js.map +1 -0
- package/lib/dist/resolution/cpp-raw-strings.d.ts +33 -0
- package/lib/dist/resolution/cpp-raw-strings.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-raw-strings.js +167 -0
- package/lib/dist/resolution/cpp-raw-strings.js.map +1 -0
- package/lib/dist/resolution/cpp-supertypes.d.ts +118 -0
- package/lib/dist/resolution/cpp-supertypes.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-supertypes.js +322 -0
- package/lib/dist/resolution/cpp-supertypes.js.map +1 -0
- package/lib/dist/resolution/cpp-template-instantiations.d.ts +83 -0
- package/lib/dist/resolution/cpp-template-instantiations.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-template-instantiations.js +983 -0
- package/lib/dist/resolution/cpp-template-instantiations.js.map +1 -0
- package/lib/dist/resolution/cpp-type-aliases.d.ts +194 -0
- package/lib/dist/resolution/cpp-type-aliases.d.ts.map +1 -0
- package/lib/dist/resolution/cpp-type-aliases.js +648 -0
- package/lib/dist/resolution/cpp-type-aliases.js.map +1 -0
- package/lib/dist/resolution/dart-libraries.d.ts +75 -0
- package/lib/dist/resolution/dart-libraries.d.ts.map +1 -0
- package/lib/dist/resolution/dart-libraries.js +721 -0
- package/lib/dist/resolution/dart-libraries.js.map +1 -0
- package/lib/dist/resolution/dart-local-scope.d.ts +41 -0
- package/lib/dist/resolution/dart-local-scope.d.ts.map +1 -0
- package/lib/dist/resolution/dart-local-scope.js +565 -0
- package/lib/dist/resolution/dart-local-scope.js.map +1 -0
- package/lib/dist/resolution/event-emitter-synthesizer.d.ts +39 -0
- package/lib/dist/resolution/event-emitter-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/event-emitter-synthesizer.js +656 -0
- package/lib/dist/resolution/event-emitter-synthesizer.js.map +1 -0
- package/lib/dist/resolution/expo-router-synthesizer.js +0 -52
- package/lib/dist/resolution/expo-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/frameworks/angular-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/angular-router.js +41 -208
- package/lib/dist/resolution/frameworks/angular-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/aspnet-routes.d.ts +62 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.js +382 -0
- package/lib/dist/resolution/frameworks/aspnet-routes.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/astro.js +4 -60
- package/lib/dist/resolution/frameworks/astro.js.map +1 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts +18 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/cargo-workspace.js +65 -15
- package/lib/dist/resolution/frameworks/cargo-workspace.js.map +1 -1
- package/lib/dist/resolution/frameworks/cics.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/cics.js +7 -33
- package/lib/dist/resolution/frameworks/cics.js.map +1 -1
- package/lib/dist/resolution/frameworks/codeigniter.d.ts +23 -0
- package/lib/dist/resolution/frameworks/codeigniter.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/codeigniter.js +271 -0
- package/lib/dist/resolution/frameworks/codeigniter.js.map +1 -0
- package/lib/dist/resolution/frameworks/component-folder.d.ts +17 -0
- package/lib/dist/resolution/frameworks/component-folder.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/component-folder.js +11 -0
- package/lib/dist/resolution/frameworks/component-folder.js.map +1 -0
- package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/csharp.js +85 -102
- package/lib/dist/resolution/frameworks/csharp.js.map +1 -1
- package/lib/dist/resolution/frameworks/drupal.d.ts +17 -8
- package/lib/dist/resolution/frameworks/drupal.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/drupal.js +377 -142
- package/lib/dist/resolution/frameworks/drupal.js.map +1 -1
- package/lib/dist/resolution/frameworks/elysia.d.ts +38 -0
- package/lib/dist/resolution/frameworks/elysia.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/elysia.js +683 -0
- package/lib/dist/resolution/frameworks/elysia.js.map +1 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-modules.js +8 -88
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/expo-router.js +9 -190
- package/lib/dist/resolution/frameworks/expo-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/express.d.ts +48 -1
- package/lib/dist/resolution/frameworks/express.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/express.js +193 -199
- package/lib/dist/resolution/frameworks/express.js.map +1 -1
- package/lib/dist/resolution/frameworks/fabric.js +1 -104
- package/lib/dist/resolution/frameworks/fabric.js.map +1 -1
- package/lib/dist/resolution/frameworks/go.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/go.js +14 -43
- package/lib/dist/resolution/frameworks/go.js.map +1 -1
- package/lib/dist/resolution/frameworks/goframe.js +1 -55
- package/lib/dist/resolution/frameworks/goframe.js.map +1 -1
- package/lib/dist/resolution/frameworks/index.d.ts +14 -0
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/index.js +16 -50
- package/lib/dist/resolution/frameworks/index.js.map +1 -1
- package/lib/dist/resolution/frameworks/java.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/java.js +203 -129
- package/lib/dist/resolution/frameworks/java.js.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/laravel.js +71 -136
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -1
- package/lib/dist/resolution/frameworks/name-heuristic.js +0 -12
- package/lib/dist/resolution/frameworks/name-heuristic.js.map +1 -1
- package/lib/dist/resolution/frameworks/nestjs.js +2 -199
- package/lib/dist/resolution/frameworks/nestjs.js.map +1 -1
- package/lib/dist/resolution/frameworks/next-proxy.d.ts +67 -0
- package/lib/dist/resolution/frameworks/next-proxy.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/next-proxy.js +239 -0
- package/lib/dist/resolution/frameworks/next-proxy.js.map +1 -0
- package/lib/dist/resolution/frameworks/nextjs.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/nextjs.js +10 -66
- package/lib/dist/resolution/frameworks/nextjs.js.map +1 -1
- package/lib/dist/resolution/frameworks/object-literal.js +0 -21
- package/lib/dist/resolution/frameworks/object-literal.js.map +1 -1
- package/lib/dist/resolution/frameworks/package-deps.d.ts +11 -7
- package/lib/dist/resolution/frameworks/package-deps.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/package-deps.js +35 -26
- package/lib/dist/resolution/frameworks/package-deps.js.map +1 -1
- package/lib/dist/resolution/frameworks/page-component.js +0 -14
- package/lib/dist/resolution/frameworks/page-component.js.map +1 -1
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/play.js +26 -34
- package/lib/dist/resolution/frameworks/play.js.map +1 -1
- package/lib/dist/resolution/frameworks/python.js +5 -102
- package/lib/dist/resolution/frameworks/python.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-native.js +1 -166
- package/lib/dist/resolution/frameworks/react-native.js.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.d.ts +13 -4
- package/lib/dist/resolution/frameworks/react-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react-router.js +10 -82
- package/lib/dist/resolution/frameworks/react-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/react.d.ts +57 -0
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/react.js +1449 -191
- package/lib/dist/resolution/frameworks/react.js.map +1 -1
- package/lib/dist/resolution/frameworks/ruby.js +1 -61
- package/lib/dist/resolution/frameworks/ruby.js.map +1 -1
- package/lib/dist/resolution/frameworks/rust.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/rust.js +35 -56
- package/lib/dist/resolution/frameworks/rust.js.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/svelte.js +7 -75
- package/lib/dist/resolution/frameworks/svelte.js.map +1 -1
- package/lib/dist/resolution/frameworks/sveltekit-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/sveltekit-router.js +8 -46
- package/lib/dist/resolution/frameworks/sveltekit-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/swift-objc.js +0 -97
- package/lib/dist/resolution/frameworks/swift-objc.js.map +1 -1
- package/lib/dist/resolution/frameworks/swift.js +0 -97
- package/lib/dist/resolution/frameworks/swift.js.map +1 -1
- package/lib/dist/resolution/frameworks/tanstack-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/tanstack-router.js +9 -130
- package/lib/dist/resolution/frameworks/tanstack-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/terraform.js +1 -85
- package/lib/dist/resolution/frameworks/terraform.js.map +1 -1
- package/lib/dist/resolution/frameworks/vue-router.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue-router.js +11 -134
- package/lib/dist/resolution/frameworks/vue-router.js.map +1 -1
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -1
- package/lib/dist/resolution/frameworks/vue.js +42 -114
- package/lib/dist/resolution/frameworks/vue.js.map +1 -1
- package/lib/dist/resolution/go-func-field-synthesizer.d.ts +58 -0
- package/lib/dist/resolution/go-func-field-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/go-func-field-synthesizer.js +696 -0
- package/lib/dist/resolution/go-func-field-synthesizer.js.map +1 -0
- package/lib/dist/resolution/go-module.d.ts +23 -7
- package/lib/dist/resolution/go-module.d.ts.map +1 -1
- package/lib/dist/resolution/go-module.js +21 -24
- package/lib/dist/resolution/go-module.js.map +1 -1
- package/lib/dist/resolution/go-stdlib-methods.d.ts +9 -0
- package/lib/dist/resolution/go-stdlib-methods.d.ts.map +1 -0
- package/lib/dist/resolution/go-stdlib-methods.js +224 -0
- package/lib/dist/resolution/go-stdlib-methods.js.map +1 -0
- package/lib/dist/resolution/goframe-synthesizer.js +2 -53
- package/lib/dist/resolution/goframe-synthesizer.js.map +1 -1
- package/lib/dist/resolution/import-resolver.d.ts +278 -29
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -1
- package/lib/dist/resolution/import-resolver.js +1825 -1396
- package/lib/dist/resolution/import-resolver.js.map +1 -1
- package/lib/dist/resolution/index.d.ts +517 -6
- package/lib/dist/resolution/index.d.ts.map +1 -1
- package/lib/dist/resolution/index.js +1604 -1042
- package/lib/dist/resolution/index.js.map +1 -1
- package/lib/dist/resolution/js-builtins.d.ts +23 -0
- package/lib/dist/resolution/js-builtins.d.ts.map +1 -1
- package/lib/dist/resolution/js-builtins.js +34 -14
- package/lib/dist/resolution/js-builtins.js.map +1 -1
- package/lib/dist/resolution/js-class-expressions.d.ts +48 -0
- package/lib/dist/resolution/js-class-expressions.d.ts.map +1 -0
- package/lib/dist/resolution/js-class-expressions.js +25 -0
- package/lib/dist/resolution/js-class-expressions.js.map +1 -0
- package/lib/dist/resolution/js-super-calls.d.ts +18 -0
- package/lib/dist/resolution/js-super-calls.d.ts.map +1 -0
- package/lib/dist/resolution/js-super-calls.js +94 -0
- package/lib/dist/resolution/js-super-calls.js.map +1 -0
- package/lib/dist/resolution/jsx-code.d.ts +28 -0
- package/lib/dist/resolution/jsx-code.d.ts.map +1 -0
- package/lib/dist/resolution/jsx-code.js +459 -0
- package/lib/dist/resolution/jsx-code.js.map +1 -0
- package/lib/dist/resolution/lru-cache.d.ts +5 -13
- package/lib/dist/resolution/lru-cache.d.ts.map +1 -1
- package/lib/dist/resolution/lru-cache.js +43 -32
- package/lib/dist/resolution/lru-cache.js.map +1 -1
- package/lib/dist/resolution/memory-budget.js +0 -52
- package/lib/dist/resolution/memory-budget.js.map +1 -1
- package/lib/dist/resolution/module-importers.d.ts +210 -0
- package/lib/dist/resolution/module-importers.d.ts.map +1 -0
- package/lib/dist/resolution/module-importers.js +673 -0
- package/lib/dist/resolution/module-importers.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +986 -7
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -1
- package/lib/dist/resolution/name-matcher.js +24176 -6745
- package/lib/dist/resolution/name-matcher.js.map +1 -1
- package/lib/dist/resolution/next-router-synthesizer.d.ts +19 -0
- package/lib/dist/resolution/next-router-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/next-router-synthesizer.js +46 -28
- package/lib/dist/resolution/next-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/override-parameters.d.ts +40 -0
- package/lib/dist/resolution/override-parameters.d.ts.map +1 -0
- package/lib/dist/resolution/override-parameters.js +339 -0
- package/lib/dist/resolution/override-parameters.js.map +1 -0
- package/lib/dist/resolution/parameter-flow.d.ts +218 -0
- package/lib/dist/resolution/parameter-flow.d.ts.map +1 -0
- package/lib/dist/resolution/parameter-flow.js +474 -0
- package/lib/dist/resolution/parameter-flow.js.map +1 -0
- package/lib/dist/resolution/pascal-scope.d.ts +91 -0
- package/lib/dist/resolution/pascal-scope.d.ts.map +1 -0
- package/lib/dist/resolution/pascal-scope.js +961 -0
- package/lib/dist/resolution/pascal-scope.js.map +1 -0
- package/lib/dist/resolution/path-aliases.d.ts +32 -4
- package/lib/dist/resolution/path-aliases.d.ts.map +1 -1
- package/lib/dist/resolution/path-aliases.js +43 -110
- package/lib/dist/resolution/path-aliases.js.map +1 -1
- package/lib/dist/resolution/php-web-root.d.ts +39 -0
- package/lib/dist/resolution/php-web-root.d.ts.map +1 -0
- package/lib/dist/resolution/php-web-root.js +141 -0
- package/lib/dist/resolution/php-web-root.js.map +1 -0
- package/lib/dist/resolution/project-scans.d.ts +38 -0
- package/lib/dist/resolution/project-scans.d.ts.map +1 -0
- package/lib/dist/resolution/project-scans.js +30 -0
- package/lib/dist/resolution/project-scans.js.map +1 -0
- package/lib/dist/resolution/python-overloads.d.ts +10 -0
- package/lib/dist/resolution/python-overloads.d.ts.map +1 -0
- package/lib/dist/resolution/python-overloads.js +75 -0
- package/lib/dist/resolution/python-overloads.js.map +1 -0
- package/lib/dist/resolution/react-router-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/react-router-synthesizer.js +3 -55
- package/lib/dist/resolution/react-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/resolver-pool.d.ts +23 -2
- package/lib/dist/resolution/resolver-pool.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-pool.js +43 -111
- package/lib/dist/resolution/resolver-pool.js.map +1 -1
- package/lib/dist/resolution/resolver-worker.d.ts +1 -1
- package/lib/dist/resolution/resolver-worker.d.ts.map +1 -1
- package/lib/dist/resolution/resolver-worker.js +8 -37
- package/lib/dist/resolution/resolver-worker.js.map +1 -1
- package/lib/dist/resolution/resurrect-ref.d.ts +25 -0
- package/lib/dist/resolution/resurrect-ref.d.ts.map +1 -0
- package/lib/dist/resolution/resurrect-ref.js +19 -0
- package/lib/dist/resolution/resurrect-ref.js.map +1 -0
- package/lib/dist/resolution/ruby-constant-paths.d.ts +56 -0
- package/lib/dist/resolution/ruby-constant-paths.d.ts.map +1 -0
- package/lib/dist/resolution/ruby-constant-paths.js +255 -0
- package/lib/dist/resolution/ruby-constant-paths.js.map +1 -0
- package/lib/dist/resolution/ruby-parameter-flow.d.ts +10 -0
- package/lib/dist/resolution/ruby-parameter-flow.d.ts.map +1 -0
- package/lib/dist/resolution/ruby-parameter-flow.js +801 -0
- package/lib/dist/resolution/ruby-parameter-flow.js.map +1 -0
- package/lib/dist/resolution/rust-scopes.d.ts +120 -0
- package/lib/dist/resolution/rust-scopes.d.ts.map +1 -0
- package/lib/dist/resolution/rust-scopes.js +730 -0
- package/lib/dist/resolution/rust-scopes.js.map +1 -0
- package/lib/dist/resolution/shopify-themes.d.ts +10 -0
- package/lib/dist/resolution/shopify-themes.d.ts.map +1 -0
- package/lib/dist/resolution/shopify-themes.js +19 -0
- package/lib/dist/resolution/shopify-themes.js.map +1 -0
- package/lib/dist/resolution/strip-comments.d.ts +20 -1
- package/lib/dist/resolution/strip-comments.d.ts.map +1 -1
- package/lib/dist/resolution/strip-comments.js +164 -119
- package/lib/dist/resolution/strip-comments.js.map +1 -1
- package/lib/dist/resolution/sveltekit-synthesizer.js +0 -64
- package/lib/dist/resolution/sveltekit-synthesizer.js.map +1 -1
- package/lib/dist/resolution/swift-objc-bridge.js +0 -160
- package/lib/dist/resolution/swift-objc-bridge.js.map +1 -1
- package/lib/dist/resolution/swift-type-visibility.d.ts.map +1 -1
- package/lib/dist/resolution/swift-type-visibility.js +62 -104
- package/lib/dist/resolution/swift-type-visibility.js.map +1 -1
- package/lib/dist/resolution/synth-utils.js +1 -22
- package/lib/dist/resolution/synth-utils.js.map +1 -1
- package/lib/dist/resolution/tanstack-router-synthesizer.js +0 -32
- package/lib/dist/resolution/tanstack-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/tauri-synthesizer.d.ts +37 -0
- package/lib/dist/resolution/tauri-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/tauri-synthesizer.js +1038 -0
- package/lib/dist/resolution/tauri-synthesizer.js.map +1 -0
- package/lib/dist/resolution/tier-synthesizer.d.ts.map +1 -1
- package/lib/dist/resolution/tier-synthesizer.js +35 -177
- package/lib/dist/resolution/tier-synthesizer.js.map +1 -1
- package/lib/dist/resolution/type-parameters.d.ts +23 -0
- package/lib/dist/resolution/type-parameters.d.ts.map +1 -1
- package/lib/dist/resolution/type-parameters.js +52 -54
- package/lib/dist/resolution/type-parameters.js.map +1 -1
- package/lib/dist/resolution/types.d.ts +192 -11
- package/lib/dist/resolution/types.d.ts.map +1 -1
- package/lib/dist/resolution/types.js +0 -47
- package/lib/dist/resolution/types.js.map +1 -1
- package/lib/dist/resolution/vbnet-receivers.d.ts +92 -0
- package/lib/dist/resolution/vbnet-receivers.d.ts.map +1 -0
- package/lib/dist/resolution/vbnet-receivers.js +1482 -0
- package/lib/dist/resolution/vbnet-receivers.js.map +1 -0
- package/lib/dist/resolution/vue-router-synthesizer.js +0 -31
- package/lib/dist/resolution/vue-router-synthesizer.js.map +1 -1
- package/lib/dist/resolution/workspace-packages.d.ts +206 -15
- package/lib/dist/resolution/workspace-packages.d.ts.map +1 -1
- package/lib/dist/resolution/workspace-packages.js +573 -152
- package/lib/dist/resolution/workspace-packages.js.map +1 -1
- package/lib/dist/search/identifier-segments.js +2 -93
- package/lib/dist/search/identifier-segments.js.map +1 -1
- package/lib/dist/search/query-parser.js +0 -54
- package/lib/dist/search/query-parser.js.map +1 -1
- package/lib/dist/search/query-paths.js +0 -167
- package/lib/dist/search/query-paths.js.map +1 -1
- package/lib/dist/search/query-utils.d.ts +44 -0
- package/lib/dist/search/query-utils.d.ts.map +1 -1
- package/lib/dist/search/query-utils.js +120 -198
- package/lib/dist/search/query-utils.js.map +1 -1
- package/lib/dist/sync/git-hooks.d.ts +14 -5
- package/lib/dist/sync/git-hooks.d.ts.map +1 -1
- package/lib/dist/sync/git-hooks.js +118 -65
- package/lib/dist/sync/git-hooks.js.map +1 -1
- package/lib/dist/sync/index.js +0 -14
- package/lib/dist/sync/index.js.map +1 -1
- package/lib/dist/sync/watch-policy.js +0 -45
- package/lib/dist/sync/watch-policy.js.map +1 -1
- package/lib/dist/sync/watcher.d.ts +29 -11
- package/lib/dist/sync/watcher.d.ts.map +1 -1
- package/lib/dist/sync/watcher.js +83 -487
- package/lib/dist/sync/watcher.js.map +1 -1
- package/lib/dist/sync/worktree.d.ts +7 -2
- package/lib/dist/sync/worktree.d.ts.map +1 -1
- package/lib/dist/sync/worktree.js +24 -97
- package/lib/dist/sync/worktree.js.map +1 -1
- package/lib/dist/telemetry/index.d.ts.map +1 -1
- package/lib/dist/telemetry/index.js +15 -135
- package/lib/dist/telemetry/index.js.map +1 -1
- package/lib/dist/types.d.ts +46 -0
- package/lib/dist/types.d.ts.map +1 -1
- package/lib/dist/types.js +15 -44
- package/lib/dist/types.js.map +1 -1
- package/lib/dist/ui/color.js +0 -19
- package/lib/dist/ui/color.js.map +1 -1
- package/lib/dist/ui/glyphs.js +2 -45
- package/lib/dist/ui/glyphs.js.map +1 -1
- package/lib/dist/ui/shimmer-progress.js +0 -21
- package/lib/dist/ui/shimmer-progress.js.map +1 -1
- package/lib/dist/ui/shimmer-worker.js +0 -22
- package/lib/dist/ui/shimmer-worker.js.map +1 -1
- package/lib/dist/ui-server/api/deadcode.d.ts.map +1 -1
- package/lib/dist/ui-server/api/deadcode.js +2 -31
- package/lib/dist/ui-server/api/deadcode.js.map +1 -1
- package/lib/dist/ui-server/api/effects.js +0 -111
- package/lib/dist/ui-server/api/effects.js.map +1 -1
- package/lib/dist/ui-server/api/entrypoints.js +0 -142
- package/lib/dist/ui-server/api/entrypoints.js.map +1 -1
- package/lib/dist/ui-server/api/events.js +0 -145
- package/lib/dist/ui-server/api/events.js.map +1 -1
- package/lib/dist/ui-server/api/file.js +0 -80
- package/lib/dist/ui-server/api/file.js.map +1 -1
- package/lib/dist/ui-server/api/filecode.js +0 -95
- package/lib/dist/ui-server/api/filecode.js.map +1 -1
- package/lib/dist/ui-server/api/flow.js +0 -149
- package/lib/dist/ui-server/api/flow.js.map +1 -1
- package/lib/dist/ui-server/api/hierarchy.js +0 -28
- package/lib/dist/ui-server/api/hierarchy.js.map +1 -1
- package/lib/dist/ui-server/api/index.js +0 -88
- package/lib/dist/ui-server/api/index.js.map +1 -1
- package/lib/dist/ui-server/api/map.d.ts.map +1 -1
- package/lib/dist/ui-server/api/map.js +4 -317
- package/lib/dist/ui-server/api/map.js.map +1 -1
- package/lib/dist/ui-server/api/node.js +0 -111
- package/lib/dist/ui-server/api/node.js.map +1 -1
- package/lib/dist/ui-server/api/nodes.js +0 -16
- package/lib/dist/ui-server/api/nodes.js.map +1 -1
- package/lib/dist/ui-server/api/program.js +0 -90
- package/lib/dist/ui-server/api/program.js.map +1 -1
- package/lib/dist/ui-server/api/respond.js +0 -60
- package/lib/dist/ui-server/api/respond.js.map +1 -1
- package/lib/dist/ui-server/api/route-roots.d.ts.map +1 -1
- package/lib/dist/ui-server/api/route-roots.js +2 -44
- package/lib/dist/ui-server/api/route-roots.js.map +1 -1
- package/lib/dist/ui-server/api/routes.d.ts.map +1 -1
- package/lib/dist/ui-server/api/routes.js +4 -60
- package/lib/dist/ui-server/api/routes.js.map +1 -1
- package/lib/dist/ui-server/api/screens.d.ts.map +1 -1
- package/lib/dist/ui-server/api/screens.js +4 -174
- package/lib/dist/ui-server/api/screens.js.map +1 -1
- package/lib/dist/ui-server/api/search.js +0 -62
- package/lib/dist/ui-server/api/search.js.map +1 -1
- package/lib/dist/ui-server/api/session.js +0 -58
- package/lib/dist/ui-server/api/session.js.map +1 -1
- package/lib/dist/ui-server/api/source.d.ts.map +1 -1
- package/lib/dist/ui-server/api/source.js +0 -161
- package/lib/dist/ui-server/api/source.js.map +1 -1
- package/lib/dist/ui-server/api/stats.js +0 -58
- package/lib/dist/ui-server/api/stats.js.map +1 -1
- package/lib/dist/ui-server/api/steps.d.ts.map +1 -1
- package/lib/dist/ui-server/api/steps.js +5 -381
- package/lib/dist/ui-server/api/steps.js.map +1 -1
- package/lib/dist/ui-server/api/trail-store.d.ts +3 -3
- package/lib/dist/ui-server/api/trail-store.d.ts.map +1 -1
- package/lib/dist/ui-server/api/trail-store.js +24 -106
- package/lib/dist/ui-server/api/trail-store.js.map +1 -1
- package/lib/dist/ui-server/api/trails.d.ts.map +1 -1
- package/lib/dist/ui-server/api/trails.js +19 -94
- package/lib/dist/ui-server/api/trails.js.map +1 -1
- package/lib/dist/ui-server/api/when.js +0 -36
- package/lib/dist/ui-server/api/when.js.map +1 -1
- package/lib/dist/ui-server/api/wire.js +0 -58
- package/lib/dist/ui-server/api/wire.js.map +1 -1
- package/lib/dist/ui-server/assets.js +0 -35
- package/lib/dist/ui-server/assets.js.map +1 -1
- package/lib/dist/ui-server/constants.js +0 -26
- package/lib/dist/ui-server/constants.js.map +1 -1
- package/lib/dist/ui-server/highlight/bounded-tokenize.js +0 -25
- package/lib/dist/ui-server/highlight/bounded-tokenize.js.map +1 -1
- package/lib/dist/ui-server/highlight/index.js +1 -132
- package/lib/dist/ui-server/highlight/index.js.map +1 -1
- package/lib/dist/ui-server/highlight/languages.d.ts +3 -3
- package/lib/dist/ui-server/highlight/languages.js +0 -31
- package/lib/dist/ui-server/highlight/languages.js.map +1 -1
- package/lib/dist/ui-server/highlight/tokenize-worker.js +0 -5
- package/lib/dist/ui-server/highlight/tokenize-worker.js.map +1 -1
- package/lib/dist/ui-server/index.d.ts +25 -0
- package/lib/dist/ui-server/index.d.ts.map +1 -1
- package/lib/dist/ui-server/index.js +35 -103
- package/lib/dist/ui-server/index.js.map +1 -1
- package/lib/dist/ui-server/open-browser.js +0 -34
- package/lib/dist/ui-server/open-browser.js.map +1 -1
- package/lib/dist/ui-server/security.d.ts +5 -0
- package/lib/dist/ui-server/security.d.ts.map +1 -1
- package/lib/dist/ui-server/security.js +11 -147
- package/lib/dist/ui-server/security.js.map +1 -1
- package/lib/dist/ui-server/static.js +0 -41
- package/lib/dist/ui-server/static.js.map +1 -1
- package/lib/dist/upgrade/index.d.ts +18 -5
- package/lib/dist/upgrade/index.d.ts.map +1 -1
- package/lib/dist/upgrade/index.js +73 -229
- package/lib/dist/upgrade/index.js.map +1 -1
- package/lib/dist/upgrade/remove-binary.js +2 -67
- package/lib/dist/upgrade/remove-binary.js.map +1 -1
- package/lib/dist/upgrade/update-check.js +1 -81
- package/lib/dist/upgrade/update-check.js.map +1 -1
- package/lib/dist/utils.d.ts +69 -1
- package/lib/dist/utils.d.ts.map +1 -1
- package/lib/dist/utils.js +224 -266
- package/lib/dist/utils.js.map +1 -1
- package/lib/dist/worker-teardown.js +0 -47
- package/lib/dist/worker-teardown.js.map +1 -1
- package/lib/kernel/codegraph-kernel.node +2 -2
- package/lib/node_modules/.package-lock.json +4 -4
- package/lib/node_modules/ignore/README.md +138 -8
- package/lib/node_modules/ignore/index.d.ts +56 -20
- package/lib/node_modules/ignore/index.js +1033 -221
- package/lib/node_modules/ignore/legacy.js +871 -178
- package/lib/node_modules/ignore/package.json +10 -4
- package/lib/package.json +14 -8
- package/node.exe +2 -2
- package/package.json +1 -1
|
@@ -1,29 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* JS/TS workspace (monorepo) package resolution.
|
|
4
|
-
*
|
|
5
|
-
* npm / yarn / bun read member packages from the root `package.json`
|
|
6
|
-
* `workspaces` field; pnpm from `pnpm-workspace.yaml`. A cross-package
|
|
7
|
-
* import like `@scope/ui/widgets` is LOCAL to the monorepo, but to a
|
|
8
|
-
* single-package resolver it looks exactly like a third-party npm
|
|
9
|
-
* specifier — so `isExternalImport` flags it external and the
|
|
10
|
-
* consumer↔definition edge is never created. For component barrels
|
|
11
|
-
* (`export { default as X } from './x.svelte'`) that surfaces as a false
|
|
12
|
-
* `0 callers` on a live component (issue #629).
|
|
13
|
-
*
|
|
14
|
-
* This module maps each member package's declared `name` to its
|
|
15
|
-
* directory so the resolver can rewrite `@scope/ui/widgets` →
|
|
16
|
-
* `packages/ui/widgets` and then run normal extension/index resolution.
|
|
17
|
-
*
|
|
18
|
-
* Scope deliberately small for v1 (mirrors path-aliases.ts):
|
|
19
|
-
* - reads `workspaces` (array OR `{ packages: [...] }`) from package.json,
|
|
20
|
-
* plus a minimal `pnpm-workspace.yaml` `packages:` list
|
|
21
|
-
* - expands one level of `*` / `**` globs (`packages/*`, `apps/*`)
|
|
22
|
-
* - subpath resolution is directory-based (`@scope/ui/sub` → `<ui>/sub`);
|
|
23
|
-
* it does NOT yet honour a member's `exports` map or `main` field
|
|
24
|
-
* - returns null when the project declares no workspaces, so single-
|
|
25
|
-
* package repos pay nothing and see no behaviour change.
|
|
26
|
-
*/
|
|
27
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28
3
|
if (k2 === undefined) k2 = k;
|
|
29
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -59,37 +34,49 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
59
34
|
})();
|
|
60
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61
36
|
exports.loadWorkspacePackages = loadWorkspacePackages;
|
|
37
|
+
exports.loadWorkspacePackagesAndManifests = loadWorkspacePackagesAndManifests;
|
|
38
|
+
exports.discoverManifests = discoverManifests;
|
|
39
|
+
exports.manifestWalkReaches = manifestWalkReaches;
|
|
40
|
+
exports.manifestEvidence = manifestEvidence;
|
|
41
|
+
exports.countWalkedFolders = countWalkedFolders;
|
|
42
|
+
exports.manifestStamp = manifestStamp;
|
|
43
|
+
exports.parseManifestStamp = parseManifestStamp;
|
|
44
|
+
exports.trustedManifestList = trustedManifestList;
|
|
62
45
|
exports.resolveWorkspaceImport = resolveWorkspaceImport;
|
|
46
|
+
exports.workspaceImportTargets = workspaceImportTargets;
|
|
47
|
+
exports.leavesWorkspaceRoot = leavesWorkspaceRoot;
|
|
48
|
+
exports.workspaceFingerprint = workspaceFingerprint;
|
|
49
|
+
exports.workspacePackageDirOf = workspacePackageDirOf;
|
|
50
|
+
const crypto_1 = require("crypto");
|
|
63
51
|
const fs = __importStar(require("fs"));
|
|
64
52
|
const path = __importStar(require("path"));
|
|
65
53
|
const errors_1 = require("../errors");
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
function loadWorkspacePackages(projectRoot) {
|
|
54
|
+
const utils_1 = require("../utils");
|
|
55
|
+
function loadWorkspacePackages(projectRoot, knownManifests) {
|
|
56
|
+
return loadWorkspacePackagesAndManifests(projectRoot, knownManifests).packages;
|
|
57
|
+
}
|
|
58
|
+
function loadWorkspacePackagesAndManifests(projectRoot, knownManifests) {
|
|
59
|
+
const discovery = knownManifests ? null : discoverManifests(projectRoot);
|
|
60
|
+
return { packages: loadWithManifests(projectRoot, knownManifests ?? discovery.manifests), discovery };
|
|
61
|
+
}
|
|
62
|
+
function loadWithManifests(projectRoot, manifests) {
|
|
76
63
|
const byName = new Map();
|
|
77
64
|
const patterns = readWorkspaceGlobs(projectRoot);
|
|
65
|
+
const excluded = patterns.filter((p) => p.startsWith('!')).map((p) => p.slice(1));
|
|
78
66
|
for (const pattern of patterns) {
|
|
67
|
+
if (pattern.startsWith('!'))
|
|
68
|
+
continue;
|
|
79
69
|
for (const dir of expandWorkspaceGlob(projectRoot, pattern)) {
|
|
70
|
+
if (excluded.some((x) => workspaceGlobMatches(x, dir)))
|
|
71
|
+
continue;
|
|
80
72
|
const pkgName = readPackageName(path.join(projectRoot, dir));
|
|
81
|
-
// First declaration wins — workspace patterns are tried in order.
|
|
82
73
|
if (pkgName && !byName.has(pkgName))
|
|
83
74
|
byName.set(pkgName, dir);
|
|
84
75
|
}
|
|
85
76
|
}
|
|
86
|
-
|
|
87
|
-
// oh-package.json5 declares its local siblings as `"data": "file:../../
|
|
88
|
-
// core/data"` dependencies, and code then imports the bare name
|
|
89
|
-
// (`import { CartRepository } from "data"`). Same monorepo problem as npm
|
|
90
|
-
// workspaces, different manifest.
|
|
77
|
+
const { ohpm, npm, workspaceRoots } = collectPathDeps(projectRoot, manifests);
|
|
91
78
|
const entryByName = new Map();
|
|
92
|
-
for (const [name, dir] of
|
|
79
|
+
for (const [name, dir] of ohpm) {
|
|
93
80
|
if (byName.has(name))
|
|
94
81
|
continue;
|
|
95
82
|
byName.set(name, dir);
|
|
@@ -97,20 +84,107 @@ function loadWorkspacePackages(projectRoot) {
|
|
|
97
84
|
if (entry)
|
|
98
85
|
entryByName.set(name, entry);
|
|
99
86
|
}
|
|
100
|
-
|
|
87
|
+
for (const [name, dir] of npm.get('') ?? []) {
|
|
88
|
+
if (!byName.has(name))
|
|
89
|
+
byName.set(name, dir);
|
|
90
|
+
}
|
|
91
|
+
npm.delete('');
|
|
92
|
+
const members = new Set(byName.values());
|
|
93
|
+
const nestedRoots = workspaceRoots.filter((dir) => !members.has(dir));
|
|
94
|
+
if (byName.size === 0 && npm.size === 0 && nestedRoots.length === 0)
|
|
95
|
+
return null;
|
|
96
|
+
const entriesByDir = new Map();
|
|
97
|
+
const packageDirs = new Set(byName.values());
|
|
98
|
+
for (const names of npm.values())
|
|
99
|
+
for (const dir of names.values())
|
|
100
|
+
packageDirs.add(dir);
|
|
101
|
+
for (const dir of packageDirs) {
|
|
102
|
+
const entries = readPackageEntries(projectRoot, dir);
|
|
103
|
+
if (entries)
|
|
104
|
+
entriesByDir.set(dir, entries);
|
|
105
|
+
}
|
|
106
|
+
(0, errors_1.logDebug)('workspace packages loaded', { count: byName.size, scoped: npm.size, entries: entriesByDir.size });
|
|
107
|
+
return {
|
|
108
|
+
byName,
|
|
109
|
+
entryByName: entryByName.size > 0 ? entryByName : undefined,
|
|
110
|
+
entriesByDir: entriesByDir.size > 0 ? entriesByDir : undefined,
|
|
111
|
+
scopedByName: npm.size > 0 ? npm : undefined,
|
|
112
|
+
nestedRoots: nestedRoots.length > 0 ? nestedRoots : undefined,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
const RESOLVING_CONDITIONS = new Set(['import', 'require', 'node', 'module', 'module-sync', 'default']);
|
|
116
|
+
const TYPE_CONDITIONS = new Set(['types', 'typings']);
|
|
117
|
+
function exportTargets(value) {
|
|
118
|
+
if (typeof value === 'string')
|
|
119
|
+
return [value];
|
|
120
|
+
if (Array.isArray(value))
|
|
121
|
+
return value.flatMap(exportTargets);
|
|
122
|
+
if (!value || typeof value !== 'object')
|
|
123
|
+
return [];
|
|
124
|
+
const conditions = Object.entries(value);
|
|
125
|
+
const tier = (key) => (RESOLVING_CONDITIONS.has(key) ? 0 : TYPE_CONDITIONS.has(key) ? 2 : 1);
|
|
126
|
+
return [0, 1, 2].flatMap((t) => conditions.filter(([key]) => tier(key) === t).flatMap(([, v]) => exportTargets(v)));
|
|
127
|
+
}
|
|
128
|
+
function browserTargets(value) {
|
|
129
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
130
|
+
return [];
|
|
131
|
+
const conditions = value;
|
|
132
|
+
return 'browser' in conditions ? exportTargets(conditions.browser) : Object.values(conditions).flatMap(browserTargets);
|
|
133
|
+
}
|
|
134
|
+
const MAIN_FIELDS = ['source', 'module', 'main', 'types', 'typings'];
|
|
135
|
+
function readPackageEntries(projectRoot, dirRel) {
|
|
136
|
+
let pkg;
|
|
137
|
+
try {
|
|
138
|
+
pkg = JSON.parse(fs.readFileSync(path.join(projectRoot, dirRel, 'package.json'), 'utf-8'));
|
|
139
|
+
}
|
|
140
|
+
catch {
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
143
|
+
if (!pkg || typeof pkg !== 'object')
|
|
101
144
|
return null;
|
|
102
|
-
(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
145
|
+
const inPackage = (target) => packageTarget(projectRoot, dirRel, target);
|
|
146
|
+
const out = {};
|
|
147
|
+
const exp = pkg.exports;
|
|
148
|
+
if (exp !== undefined && exp !== null) {
|
|
149
|
+
const exports = new Map();
|
|
150
|
+
const browser = new Map();
|
|
151
|
+
const subpaths = typeof exp === 'object' && !Array.isArray(exp) && Object.keys(exp).some((key) => key.startsWith('.'));
|
|
152
|
+
const entries = subpaths
|
|
153
|
+
? Object.entries(exp).filter(([key]) => key.startsWith('.'))
|
|
154
|
+
: [['.', exp]];
|
|
155
|
+
for (const [key, value] of entries) {
|
|
156
|
+
exports.set(key, [...new Set(exportTargets(value).map(inPackage).filter((t) => t !== null))]);
|
|
157
|
+
const forBrowser = browserTargets(value).map(inPackage).filter((t) => t !== null);
|
|
158
|
+
if (forBrowser.length > 0)
|
|
159
|
+
browser.set(key, forBrowser);
|
|
160
|
+
}
|
|
161
|
+
out.exports = exports;
|
|
162
|
+
if (browser.size > 0)
|
|
163
|
+
out.browser = browser;
|
|
164
|
+
}
|
|
165
|
+
const main = MAIN_FIELDS
|
|
166
|
+
.map((field) => pkg[field])
|
|
167
|
+
.filter((value) => typeof value === 'string')
|
|
168
|
+
.map(inPackage)
|
|
169
|
+
.filter((t) => t !== null);
|
|
170
|
+
if (main.length > 0)
|
|
171
|
+
out.main = [...new Set(main)];
|
|
172
|
+
return out.exports || out.main ? out : null;
|
|
173
|
+
}
|
|
174
|
+
function packageTarget(projectRoot, dirRel, target) {
|
|
175
|
+
const trimmed = target.trim();
|
|
176
|
+
if (!trimmed)
|
|
177
|
+
return null;
|
|
178
|
+
const packageDir = path.resolve(projectRoot, dirRel);
|
|
179
|
+
const abs = path.resolve(packageDir, trimmed);
|
|
180
|
+
const inside = path.relative(packageDir, abs);
|
|
181
|
+
if (inside.startsWith('..') || path.isAbsolute(inside))
|
|
182
|
+
return null;
|
|
183
|
+
return path.relative(projectRoot, abs).replace(/\\/g, '/');
|
|
184
|
+
}
|
|
110
185
|
function readOhpmMain(projectRoot, dirRel) {
|
|
111
186
|
let parsed;
|
|
112
187
|
try {
|
|
113
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
114
188
|
parsed = require('jsonc-parser').parse(fs.readFileSync(path.join(projectRoot, dirRel, OHPM_MANIFEST), 'utf-8'));
|
|
115
189
|
}
|
|
116
190
|
catch {
|
|
@@ -125,41 +199,29 @@ function readOhpmMain(projectRoot, dirRel) {
|
|
|
125
199
|
return null;
|
|
126
200
|
return entryRel;
|
|
127
201
|
}
|
|
128
|
-
/**
|
|
129
|
-
* Scan the project for `oh-package.json5` manifests and collect their
|
|
130
|
-
* `file:`-protocol dependencies as workspace members: dep name (what the
|
|
131
|
-
* source imports) → target directory (projectRoot-relative posix).
|
|
132
|
-
*
|
|
133
|
-
* Precision rule: a name declared with DIFFERENT target directories in
|
|
134
|
-
* different manifests (e.g. every sample in a samples monorepo has its own
|
|
135
|
-
* "common") is AMBIGUOUS and dropped entirely — a missing edge beats a wrong
|
|
136
|
-
* cross-module link. Registry dependencies (`@ohos/axios: "^2.0.0"`) don't
|
|
137
|
-
* use `file:` and are ignored, staying external.
|
|
138
|
-
*
|
|
139
|
-
* The walk is bounded (depth + directory budget) and prunes build/dependency
|
|
140
|
-
* dirs, so non-ArkTS projects pay one readdir at the root and nothing else
|
|
141
|
-
* (they have no oh-package.json5 anywhere shallow).
|
|
142
|
-
*/
|
|
143
202
|
const OHPM_MANIFEST = 'oh-package.json5';
|
|
203
|
+
const NPM_MANIFEST = 'package.json';
|
|
144
204
|
const OHPM_WALK_MAX_DEPTH = 6;
|
|
145
205
|
const OHPM_WALK_DIR_BUDGET = 8000;
|
|
146
206
|
const OHPM_SKIP_DIRS = new Set([
|
|
147
207
|
'node_modules', 'oh_modules', '.git', '.codegraph', '.hvigor', '.preview',
|
|
148
208
|
'build', 'dist', 'out', 'oh-package-lock.json5',
|
|
149
209
|
]);
|
|
150
|
-
function
|
|
151
|
-
const
|
|
152
|
-
const ambiguous = new Set();
|
|
210
|
+
function discoverManifests(projectRoot) {
|
|
211
|
+
const manifests = [];
|
|
153
212
|
const queue = [{ rel: '', depth: 0 }];
|
|
154
213
|
let visited = 0;
|
|
214
|
+
let truncated = false;
|
|
155
215
|
while (queue.length > 0) {
|
|
156
216
|
const { rel, depth } = queue.shift();
|
|
157
|
-
if (++visited > OHPM_WALK_DIR_BUDGET)
|
|
217
|
+
if (++visited > OHPM_WALK_DIR_BUDGET) {
|
|
218
|
+
truncated = true;
|
|
219
|
+
visited = OHPM_WALK_DIR_BUDGET;
|
|
158
220
|
break;
|
|
159
|
-
|
|
221
|
+
}
|
|
160
222
|
let entries;
|
|
161
223
|
try {
|
|
162
|
-
entries = fs.readdirSync(
|
|
224
|
+
entries = fs.readdirSync(path.join(projectRoot, rel), { withFileTypes: true });
|
|
163
225
|
}
|
|
164
226
|
catch {
|
|
165
227
|
continue;
|
|
@@ -173,36 +235,250 @@ function collectOhpmFileDeps(projectRoot) {
|
|
|
173
235
|
queue.push({ rel: rel ? `${rel}/${e.name}` : e.name, depth: depth + 1 });
|
|
174
236
|
continue;
|
|
175
237
|
}
|
|
176
|
-
if (e.name
|
|
238
|
+
if (e.name === NPM_MANIFEST || e.name === OHPM_MANIFEST)
|
|
239
|
+
manifests.push(rel ? `${rel}/${e.name}` : e.name);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
return { manifests, visited, truncated };
|
|
243
|
+
}
|
|
244
|
+
function manifestWalkReaches(rel) {
|
|
245
|
+
if (!rel.endsWith(NPM_MANIFEST) && !rel.endsWith(OHPM_MANIFEST))
|
|
246
|
+
return false;
|
|
247
|
+
const parts = rel.split('/');
|
|
248
|
+
const name = parts.pop();
|
|
249
|
+
if (name !== NPM_MANIFEST && name !== OHPM_MANIFEST)
|
|
250
|
+
return false;
|
|
251
|
+
return walkEnters(parts);
|
|
252
|
+
}
|
|
253
|
+
function walkEnters(dirs) {
|
|
254
|
+
if (dirs.length > OHPM_WALK_MAX_DEPTH)
|
|
255
|
+
return false;
|
|
256
|
+
for (const dir of dirs) {
|
|
257
|
+
if (dir === '' || dir.startsWith('.') || OHPM_SKIP_DIRS.has(dir))
|
|
258
|
+
return false;
|
|
259
|
+
}
|
|
260
|
+
return true;
|
|
261
|
+
}
|
|
262
|
+
function manifestEvidence(projectRoot, files, ignoredEntries, complete) {
|
|
263
|
+
const listed = [];
|
|
264
|
+
for (const file of files) {
|
|
265
|
+
if (manifestWalkReaches(file) && fs.existsSync(path.join(projectRoot, file)))
|
|
266
|
+
listed.push(file);
|
|
267
|
+
}
|
|
268
|
+
const ignored = ignoredEntries.filter((entry) => entry.endsWith('/') ? walkEnters(entry.slice(0, -1).split('/')) : manifestWalkReaches(entry));
|
|
269
|
+
return { listed, ignored, listedFolders: countWalkedFolders(files), complete };
|
|
270
|
+
}
|
|
271
|
+
function countWalkedFolders(files) {
|
|
272
|
+
let count = 1;
|
|
273
|
+
let prev = '';
|
|
274
|
+
for (const file of files) {
|
|
275
|
+
let shared = true;
|
|
276
|
+
let start = 0;
|
|
277
|
+
for (let depth = 1; depth <= OHPM_WALK_MAX_DEPTH; depth++) {
|
|
278
|
+
const slash = file.indexOf('/', start);
|
|
279
|
+
if (slash < 0)
|
|
280
|
+
break;
|
|
281
|
+
const length = slash - start;
|
|
282
|
+
if (length === 0 || file.charCodeAt(start) === 46 ||
|
|
283
|
+
(SKIP_DIR_LENGTHS.has(length) && OHPM_SKIP_DIRS.has(file.slice(start, slash))))
|
|
284
|
+
break;
|
|
285
|
+
if (shared) {
|
|
286
|
+
if (prev.length <= slash || prev.charCodeAt(slash) !== 47)
|
|
287
|
+
shared = false;
|
|
288
|
+
else
|
|
289
|
+
for (let i = start; i < slash; i++)
|
|
290
|
+
if (prev.charCodeAt(i) !== file.charCodeAt(i)) {
|
|
291
|
+
shared = false;
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
if (!shared)
|
|
296
|
+
count++;
|
|
297
|
+
start = slash + 1;
|
|
298
|
+
}
|
|
299
|
+
prev = file;
|
|
300
|
+
}
|
|
301
|
+
return count;
|
|
302
|
+
}
|
|
303
|
+
const SKIP_DIR_LENGTHS = new Set([...OHPM_SKIP_DIRS].map((dir) => dir.length));
|
|
304
|
+
const MANIFEST_STAMP_MIN_FOLDERS = 64;
|
|
305
|
+
const MANIFEST_STAMP_MAX_FOLDERS = OHPM_WALK_DIR_BUDGET / 2;
|
|
306
|
+
function ignoredParts(evidence) {
|
|
307
|
+
const dirs = [];
|
|
308
|
+
const files = new Set();
|
|
309
|
+
for (const entry of evidence.ignored) {
|
|
310
|
+
if (entry.endsWith('/'))
|
|
311
|
+
dirs.push(entry.slice(0, -1));
|
|
312
|
+
else
|
|
313
|
+
files.add(entry);
|
|
314
|
+
}
|
|
315
|
+
return { dirs, files };
|
|
316
|
+
}
|
|
317
|
+
function manifestStamp(evidence, discovery) {
|
|
318
|
+
if (!evidence || !evidence.complete || discovery.truncated)
|
|
319
|
+
return null;
|
|
320
|
+
if (discovery.visited < MANIFEST_STAMP_MIN_FOLDERS || discovery.visited > MANIFEST_STAMP_MAX_FOLDERS)
|
|
321
|
+
return null;
|
|
322
|
+
const { dirs, files } = ignoredParts(evidence);
|
|
323
|
+
const isIgnored = (manifest) => files.has(manifest) || dirs.some((dir) => manifest.startsWith(dir + '/'));
|
|
324
|
+
const listed = new Set(evidence.listed);
|
|
325
|
+
const found = new Set(discovery.manifests);
|
|
326
|
+
for (const manifest of discovery.manifests)
|
|
327
|
+
if (!isIgnored(manifest) && !listed.has(manifest))
|
|
328
|
+
return null;
|
|
329
|
+
for (const manifest of listed)
|
|
330
|
+
if (!found.has(manifest))
|
|
331
|
+
return null;
|
|
332
|
+
return {
|
|
333
|
+
v: 1,
|
|
334
|
+
manifests: [...found].sort(),
|
|
335
|
+
walk: discovery.manifests.slice(),
|
|
336
|
+
visited: discovery.visited,
|
|
337
|
+
listedFolders: evidence.listedFolders,
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
function parseManifestStamp(raw) {
|
|
341
|
+
if (!raw)
|
|
342
|
+
return null;
|
|
343
|
+
try {
|
|
344
|
+
const stamp = JSON.parse(raw);
|
|
345
|
+
if (stamp?.v !== 1 || !Array.isArray(stamp.manifests) || !Array.isArray(stamp.walk) ||
|
|
346
|
+
typeof stamp.visited !== 'number' || typeof stamp.listedFolders !== 'number')
|
|
347
|
+
return null;
|
|
348
|
+
return stamp;
|
|
349
|
+
}
|
|
350
|
+
catch {
|
|
351
|
+
return null;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
function trustedManifestList(projectRoot, stamp, evidence) {
|
|
355
|
+
if (!stamp || !evidence || !evidence.complete)
|
|
356
|
+
return null;
|
|
357
|
+
const { dirs, files } = ignoredParts(evidence);
|
|
358
|
+
const room = MANIFEST_STAMP_MAX_FOLDERS - stamp.visited - Math.max(0, evidence.listedFolders - stamp.listedFolders);
|
|
359
|
+
if (room < 0)
|
|
360
|
+
return null;
|
|
361
|
+
const now = new Set(evidence.listed);
|
|
362
|
+
for (const file of files)
|
|
363
|
+
now.add(file);
|
|
364
|
+
let read = 0;
|
|
365
|
+
for (const dir of dirs) {
|
|
366
|
+
const queue = [{ rel: dir, depth: dir.split('/').length }];
|
|
367
|
+
while (queue.length > 0) {
|
|
368
|
+
const { rel, depth } = queue.shift();
|
|
369
|
+
if (++read > room)
|
|
370
|
+
return null;
|
|
371
|
+
let entries;
|
|
372
|
+
try {
|
|
373
|
+
entries = fs.readdirSync(path.join(projectRoot, rel), { withFileTypes: true });
|
|
374
|
+
}
|
|
375
|
+
catch {
|
|
177
376
|
continue;
|
|
178
|
-
|
|
179
|
-
for (const
|
|
377
|
+
}
|
|
378
|
+
for (const e of entries) {
|
|
379
|
+
if (e.isDirectory()) {
|
|
380
|
+
if (depth >= OHPM_WALK_MAX_DEPTH)
|
|
381
|
+
continue;
|
|
382
|
+
if (e.name.startsWith('.') || OHPM_SKIP_DIRS.has(e.name))
|
|
383
|
+
continue;
|
|
384
|
+
queue.push({ rel: `${rel}/${e.name}`, depth: depth + 1 });
|
|
385
|
+
continue;
|
|
386
|
+
}
|
|
387
|
+
if (e.name === NPM_MANIFEST || e.name === OHPM_MANIFEST)
|
|
388
|
+
now.add(`${rel}/${e.name}`);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
if (now.size !== stamp.manifests.length)
|
|
393
|
+
return null;
|
|
394
|
+
for (const manifest of stamp.manifests)
|
|
395
|
+
if (!now.has(manifest))
|
|
396
|
+
return null;
|
|
397
|
+
return stamp.walk;
|
|
398
|
+
}
|
|
399
|
+
function collectPathDeps(projectRoot, manifests) {
|
|
400
|
+
const ohpm = new Map();
|
|
401
|
+
const ambiguous = new Set();
|
|
402
|
+
const npm = new Map();
|
|
403
|
+
const workspaceRoots = [];
|
|
404
|
+
for (const manifest of manifests) {
|
|
405
|
+
const slash = manifest.lastIndexOf('/');
|
|
406
|
+
const rel = slash < 0 ? '' : manifest.slice(0, slash);
|
|
407
|
+
const file = manifest.slice(slash + 1);
|
|
408
|
+
const abs = path.join(projectRoot, rel);
|
|
409
|
+
if (file === NPM_MANIFEST) {
|
|
410
|
+
if (rel !== '' && readWorkspaceGlobs(abs).length > 0)
|
|
411
|
+
workspaceRoots.push(rel);
|
|
412
|
+
const deps = new Map();
|
|
413
|
+
for (const [name, target] of readNpmPathDeps(path.join(abs, NPM_MANIFEST))) {
|
|
180
414
|
const targetAbs = path.resolve(abs, target);
|
|
181
415
|
const targetRel = path.relative(projectRoot, targetAbs).replace(/\\/g, '/');
|
|
182
|
-
if (targetRel.startsWith('..'))
|
|
183
|
-
continue;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
byName.set(name, targetRel);
|
|
188
|
-
}
|
|
189
|
-
else if (existing !== targetRel) {
|
|
190
|
-
byName.delete(name);
|
|
191
|
-
ambiguous.add(name);
|
|
192
|
-
}
|
|
416
|
+
if (targetRel === '' || targetRel.startsWith('..') || path.isAbsolute(targetRel))
|
|
417
|
+
continue;
|
|
418
|
+
if (/(?:^|\/)node_modules(?:\/|$)/.test(targetRel) || !isDirectory(targetAbs))
|
|
419
|
+
continue;
|
|
420
|
+
deps.set(name, targetRel);
|
|
193
421
|
}
|
|
422
|
+
if (deps.size > 0)
|
|
423
|
+
npm.set(rel, deps);
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
if (file !== OHPM_MANIFEST)
|
|
427
|
+
continue;
|
|
428
|
+
const deps = readOhpmFileDeps(path.join(abs, OHPM_MANIFEST));
|
|
429
|
+
for (const [name, target] of deps) {
|
|
430
|
+
const targetAbs = path.resolve(abs, target);
|
|
431
|
+
const targetRel = path.relative(projectRoot, targetAbs).replace(/\\/g, '/');
|
|
432
|
+
if (targetRel.startsWith('..'))
|
|
433
|
+
continue;
|
|
434
|
+
const existing = ohpm.get(name);
|
|
435
|
+
if (existing === undefined) {
|
|
436
|
+
if (!ambiguous.has(name))
|
|
437
|
+
ohpm.set(name, targetRel);
|
|
438
|
+
}
|
|
439
|
+
else if (existing !== targetRel) {
|
|
440
|
+
ohpm.delete(name);
|
|
441
|
+
ambiguous.add(name);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
return { ohpm, npm, workspaceRoots };
|
|
446
|
+
}
|
|
447
|
+
function isDirectory(abs) {
|
|
448
|
+
try {
|
|
449
|
+
return fs.statSync(abs).isDirectory();
|
|
450
|
+
}
|
|
451
|
+
catch {
|
|
452
|
+
return false;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
function readNpmPathDeps(manifestAbs) {
|
|
456
|
+
let pkg;
|
|
457
|
+
try {
|
|
458
|
+
pkg = JSON.parse(fs.readFileSync(manifestAbs, 'utf-8'));
|
|
459
|
+
}
|
|
460
|
+
catch {
|
|
461
|
+
return [];
|
|
462
|
+
}
|
|
463
|
+
if (!pkg || typeof pkg !== 'object')
|
|
464
|
+
return [];
|
|
465
|
+
const out = [];
|
|
466
|
+
for (const field of ['dependencies', 'devDependencies', 'optionalDependencies', 'peerDependencies']) {
|
|
467
|
+
const deps = pkg[field];
|
|
468
|
+
if (!deps || typeof deps !== 'object')
|
|
469
|
+
continue;
|
|
470
|
+
for (const [name, value] of Object.entries(deps)) {
|
|
471
|
+
const m = typeof value === 'string' ? /^(?:file|link|portal):(.+)$/.exec(value.trim()) : null;
|
|
472
|
+
if (m && m[1].trim())
|
|
473
|
+
out.push([name, m[1].trim()]);
|
|
194
474
|
}
|
|
195
475
|
}
|
|
196
|
-
return
|
|
476
|
+
return out;
|
|
197
477
|
}
|
|
198
|
-
/** Parse one oh-package.json5's dependencies → [name, file-target] pairs. */
|
|
199
478
|
function readOhpmFileDeps(manifestAbs) {
|
|
200
479
|
const out = [];
|
|
201
480
|
let parsed;
|
|
202
481
|
try {
|
|
203
|
-
// JSON5 tolerates comments and trailing commas; jsonc-parser (already a
|
|
204
|
-
// dependency, used by the opencode installer target) handles both.
|
|
205
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
206
482
|
parsed = require('jsonc-parser').parse(fs.readFileSync(manifestAbs, 'utf-8'));
|
|
207
483
|
}
|
|
208
484
|
catch {
|
|
@@ -220,42 +496,127 @@ function readOhpmFileDeps(manifestAbs) {
|
|
|
220
496
|
}
|
|
221
497
|
return out;
|
|
222
498
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
499
|
+
function resolveWorkspaceImport(importPath, ws, fromFile) {
|
|
500
|
+
const hit = matchPackage(importPath, ws, fromFile);
|
|
501
|
+
if (!hit)
|
|
502
|
+
return null;
|
|
503
|
+
const subpath = importPath.slice(hit.name.length);
|
|
504
|
+
const ohpm = subpath ? undefined : ws.entryByName?.get(hit.name);
|
|
505
|
+
return ohpm ?? (hit.dir + subpath).replace(/\/{2,}/g, '/');
|
|
506
|
+
}
|
|
507
|
+
function workspaceImportTargets(importPath, ws, fromFile) {
|
|
508
|
+
const hit = matchPackage(importPath, ws, fromFile);
|
|
509
|
+
if (!hit)
|
|
510
|
+
return null;
|
|
511
|
+
const subpath = importPath.slice(hit.name.length);
|
|
512
|
+
const directory = (hit.dir + subpath).replace(/\/{2,}/g, '/');
|
|
513
|
+
const ohpm = subpath ? undefined : ws.entryByName?.get(hit.name);
|
|
514
|
+
const entries = ws.entriesByDir?.get(hit.dir);
|
|
515
|
+
const declared = ohpm ? [ohpm] : declaredEntries(entries, subpath);
|
|
516
|
+
return { declared, browser: entries?.browser ? exportedTargets(entries.browser, '.' + subpath) : [], directory, packageDir: hit.dir };
|
|
517
|
+
}
|
|
518
|
+
function matchPackage(importPath, ws, fromFile) {
|
|
519
|
+
const scoped = scopedPackage(importPath, ws, fromFile);
|
|
520
|
+
if (scoped)
|
|
521
|
+
return scoped;
|
|
522
|
+
const name = longestName(importPath, ws.byName.keys());
|
|
523
|
+
if (name === null)
|
|
524
|
+
return null;
|
|
525
|
+
const dir = ws.byName.get(name);
|
|
526
|
+
return fromFile !== undefined && leavesWorkspaceRoot(fromFile, dir, ws) ? null : { name, dir };
|
|
527
|
+
}
|
|
528
|
+
function workspaceRootOf(file, roots) {
|
|
529
|
+
let root = '';
|
|
530
|
+
for (const dir of roots) {
|
|
531
|
+
if (dir.length > root.length && file.startsWith(dir + '/'))
|
|
532
|
+
root = dir;
|
|
239
533
|
}
|
|
240
|
-
|
|
534
|
+
return root;
|
|
535
|
+
}
|
|
536
|
+
function leavesWorkspaceRoot(file, target, ws) {
|
|
537
|
+
const roots = ws?.nestedRoots;
|
|
538
|
+
if (!roots)
|
|
539
|
+
return false;
|
|
540
|
+
const root = workspaceRootOf(file.replace(/\\/g, '/'), roots);
|
|
541
|
+
return root !== '' && !target.replace(/\\/g, '/').startsWith(root + '/');
|
|
542
|
+
}
|
|
543
|
+
function scopedPackage(importPath, ws, fromFile) {
|
|
544
|
+
if (!fromFile || !ws.scopedByName)
|
|
241
545
|
return null;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
546
|
+
let dir = fromFile.replace(/\\/g, '/');
|
|
547
|
+
while (dir !== '') {
|
|
548
|
+
const slash = dir.lastIndexOf('/');
|
|
549
|
+
dir = slash < 0 ? '' : dir.slice(0, slash);
|
|
550
|
+
const names = ws.scopedByName.get(dir);
|
|
551
|
+
if (!names)
|
|
552
|
+
continue;
|
|
553
|
+
const name = longestName(importPath, names.keys());
|
|
554
|
+
if (name !== null)
|
|
555
|
+
return { name, dir: names.get(name) };
|
|
556
|
+
}
|
|
557
|
+
return null;
|
|
558
|
+
}
|
|
559
|
+
function longestName(importPath, names) {
|
|
560
|
+
let best = null;
|
|
561
|
+
for (const name of names) {
|
|
562
|
+
if ((importPath === name || importPath.startsWith(name + '/')) && (best === null || name.length > best.length))
|
|
563
|
+
best = name;
|
|
251
564
|
}
|
|
252
|
-
return
|
|
565
|
+
return best;
|
|
566
|
+
}
|
|
567
|
+
function declaredEntries(entries, subpath) {
|
|
568
|
+
if (!entries)
|
|
569
|
+
return [];
|
|
570
|
+
const exported = entries.exports ? exportedTargets(entries.exports, '.' + subpath) : [];
|
|
571
|
+
return subpath ? exported : [...new Set([...exported, ...(entries.main ?? [])])];
|
|
572
|
+
}
|
|
573
|
+
function exportedTargets(exports, key) {
|
|
574
|
+
const exact = exports.get(key);
|
|
575
|
+
if (exact)
|
|
576
|
+
return exact;
|
|
577
|
+
let best = null;
|
|
578
|
+
for (const [pattern, targets] of exports) {
|
|
579
|
+
const star = pattern.indexOf('*');
|
|
580
|
+
if (star < 0 || pattern.indexOf('*', star + 1) >= 0)
|
|
581
|
+
continue;
|
|
582
|
+
const prefix = pattern.slice(0, star);
|
|
583
|
+
const suffix = pattern.slice(star + 1);
|
|
584
|
+
if (key.length < prefix.length + suffix.length || !key.startsWith(prefix) || !key.endsWith(suffix))
|
|
585
|
+
continue;
|
|
586
|
+
if (best && prefix.length <= best.prefix.length)
|
|
587
|
+
continue;
|
|
588
|
+
best = { prefix, match: key.slice(prefix.length, key.length - suffix.length), targets };
|
|
589
|
+
}
|
|
590
|
+
return best ? best.targets.map((t) => t.split('*').join(best.match)) : [];
|
|
591
|
+
}
|
|
592
|
+
function workspaceFingerprint(ws) {
|
|
593
|
+
if (!ws)
|
|
594
|
+
return 'none';
|
|
595
|
+
const sorted = (map) => map ? [...map.entries()].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)) : [];
|
|
596
|
+
const canonical = JSON.stringify({
|
|
597
|
+
byName: sorted(ws.byName),
|
|
598
|
+
entryByName: sorted(ws.entryByName),
|
|
599
|
+
scoped: sorted(ws.scopedByName).map(([dir, names]) => [dir, sorted(names)]),
|
|
600
|
+
entries: sorted(ws.entriesByDir).map(([dir, e]) => [dir, sorted(e.exports), sorted(e.browser), e.main ?? []]),
|
|
601
|
+
nested: ws.nestedRoots ?? [],
|
|
602
|
+
});
|
|
603
|
+
return (0, crypto_1.createHash)('sha256').update(canonical).digest('hex');
|
|
604
|
+
}
|
|
605
|
+
const PACKAGE_DIRS = new WeakMap();
|
|
606
|
+
function workspacePackageDirOf(ws, file) {
|
|
607
|
+
let dirs = PACKAGE_DIRS.get(ws);
|
|
608
|
+
if (!dirs) {
|
|
609
|
+
const all = new Set(ws.byName.values());
|
|
610
|
+
for (const names of ws.scopedByName?.values() ?? [])
|
|
611
|
+
for (const dir of names.values())
|
|
612
|
+
all.add(dir);
|
|
613
|
+
dirs = [...all].filter((dir) => dir !== '').sort((a, b) => a.length - b.length);
|
|
614
|
+
PACKAGE_DIRS.set(ws, dirs);
|
|
615
|
+
}
|
|
616
|
+
return dirs.find((dir) => file.startsWith(dir + '/')) ?? null;
|
|
253
617
|
}
|
|
254
|
-
/** Read workspace glob patterns from package.json + pnpm-workspace.yaml. */
|
|
255
618
|
function readWorkspaceGlobs(projectRoot) {
|
|
256
619
|
const out = [];
|
|
257
|
-
// package.json `workspaces` (npm / yarn / bun): array, or Yarn's
|
|
258
|
-
// `{ packages: [...], nohoist: [...] }` object form.
|
|
259
620
|
try {
|
|
260
621
|
const pkg = JSON.parse(fs.readFileSync(path.join(projectRoot, 'package.json'), 'utf-8'));
|
|
261
622
|
const ws = pkg?.workspaces;
|
|
@@ -267,27 +628,15 @@ function readWorkspaceGlobs(projectRoot) {
|
|
|
267
628
|
}
|
|
268
629
|
}
|
|
269
630
|
catch {
|
|
270
|
-
/* no / invalid package.json — not a workspace root */
|
|
271
631
|
}
|
|
272
|
-
// pnpm-workspace.yaml `packages:` list. Parsed with a minimal line
|
|
273
|
-
// scanner so we don't pull in a YAML dependency.
|
|
274
632
|
try {
|
|
275
633
|
const yaml = fs.readFileSync(path.join(projectRoot, 'pnpm-workspace.yaml'), 'utf-8');
|
|
276
634
|
out.push(...parsePnpmPackages(yaml));
|
|
277
635
|
}
|
|
278
636
|
catch {
|
|
279
|
-
/* no pnpm-workspace.yaml */
|
|
280
637
|
}
|
|
281
638
|
return out;
|
|
282
639
|
}
|
|
283
|
-
/**
|
|
284
|
-
* Minimal pnpm-workspace.yaml `packages:` extractor. Handles the only shape
|
|
285
|
-
* pnpm actually uses:
|
|
286
|
-
* packages:
|
|
287
|
-
* - 'packages/*'
|
|
288
|
-
* - "apps/*"
|
|
289
|
-
* - tools/build
|
|
290
|
-
*/
|
|
291
640
|
function parsePnpmPackages(yaml) {
|
|
292
641
|
const out = [];
|
|
293
642
|
const lines = yaml.split(/\r?\n/);
|
|
@@ -303,37 +652,109 @@ function parsePnpmPackages(yaml) {
|
|
|
303
652
|
out.push(item[1].replace(/^['"]|['"]$/g, ''));
|
|
304
653
|
continue;
|
|
305
654
|
}
|
|
306
|
-
// A non-list, non-blank line ends the `packages:` block.
|
|
307
655
|
if (line.trim() !== '' && !/^\s/.test(line))
|
|
308
656
|
inPackages = false;
|
|
309
657
|
}
|
|
310
658
|
}
|
|
311
659
|
return out;
|
|
312
660
|
}
|
|
313
|
-
|
|
661
|
+
const GLOB_SKIP_DIRS = new Set(['node_modules', 'bower_components']);
|
|
662
|
+
const GLOBSTAR_SKIP_DIRS = new Set(['test', 'tests']);
|
|
663
|
+
const GLOBSTAR_MAX_DEPTH = 8;
|
|
664
|
+
const GLOB_DIR_BUDGET = 10_000;
|
|
314
665
|
function expandWorkspaceGlob(projectRoot, pattern) {
|
|
315
666
|
const norm = pattern.replace(/\\/g, '/').replace(/\/+$/, '');
|
|
316
|
-
|
|
317
|
-
if (star === -1)
|
|
318
|
-
return [norm]; // exact directory
|
|
319
|
-
// Everything before the wildcard segment is the base to enumerate.
|
|
320
|
-
const base = norm.slice(0, star).replace(/\/+$/, '');
|
|
321
|
-
let entries;
|
|
322
|
-
try {
|
|
323
|
-
entries = fs.readdirSync(path.join(projectRoot, base), { withFileTypes: true });
|
|
324
|
-
}
|
|
325
|
-
catch {
|
|
667
|
+
if (path.isAbsolute(norm) || (0, utils_1.escapesRoot)(path.posix.normalize(norm)))
|
|
326
668
|
return [];
|
|
669
|
+
const glob = compileGlob(norm);
|
|
670
|
+
const first = glob.findIndex((seg) => seg.wildcard);
|
|
671
|
+
if (first === -1)
|
|
672
|
+
return [norm];
|
|
673
|
+
const base = glob.slice(0, first).map((seg) => seg.text).join('/');
|
|
674
|
+
const start = globClosure(glob, new Set([first]));
|
|
675
|
+
const out = start.has(glob.length) ? [base || '.'] : [];
|
|
676
|
+
let level = [{ rel: base, states: start }];
|
|
677
|
+
let read = 0;
|
|
678
|
+
for (let depth = 0; level.length > 0 && depth <= GLOBSTAR_MAX_DEPTH; depth++) {
|
|
679
|
+
const next = [];
|
|
680
|
+
for (const { rel, states } of level) {
|
|
681
|
+
if (++read > GLOB_DIR_BUDGET) {
|
|
682
|
+
(0, errors_1.logDebug)('workspace glob stopped at its folder budget', { pattern, read });
|
|
683
|
+
return out;
|
|
684
|
+
}
|
|
685
|
+
let names;
|
|
686
|
+
try {
|
|
687
|
+
names = fs.readdirSync(path.join(projectRoot, rel), { withFileTypes: true })
|
|
688
|
+
.filter((e) => e.isDirectory())
|
|
689
|
+
.map((e) => e.name)
|
|
690
|
+
.sort();
|
|
691
|
+
}
|
|
692
|
+
catch {
|
|
693
|
+
continue;
|
|
694
|
+
}
|
|
695
|
+
for (const name of names) {
|
|
696
|
+
const advanced = globStep(glob, states, name, true);
|
|
697
|
+
if (advanced.size === 0)
|
|
698
|
+
continue;
|
|
699
|
+
const child = rel ? `${rel}/${name}` : name;
|
|
700
|
+
if (advanced.has(glob.length))
|
|
701
|
+
out.push(child);
|
|
702
|
+
if ([...advanced].some((state) => state < glob.length))
|
|
703
|
+
next.push({ rel: child, states: advanced });
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
level = next;
|
|
327
707
|
}
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
708
|
+
return out;
|
|
709
|
+
}
|
|
710
|
+
function workspaceGlobMatches(pattern, dir) {
|
|
711
|
+
const glob = compileGlob(pattern.replace(/\\/g, '/').replace(/\/+$/, ''));
|
|
712
|
+
let states = globClosure(glob, new Set([0]));
|
|
713
|
+
for (const name of dir.split('/').filter((s) => s !== '' && s !== '.')) {
|
|
714
|
+
states = globStep(glob, states, name, false);
|
|
715
|
+
if (states.size === 0)
|
|
716
|
+
return false;
|
|
717
|
+
}
|
|
718
|
+
return states.has(glob.length);
|
|
719
|
+
}
|
|
720
|
+
function compileGlob(pattern) {
|
|
721
|
+
return pattern.split('/').filter((s) => s !== '' && s !== '.').map((text) => {
|
|
722
|
+
if (text === '**')
|
|
723
|
+
return { text, globstar: true, wildcard: true, re: null };
|
|
724
|
+
if (!/[*?{]/.test(text))
|
|
725
|
+
return { text, globstar: false, wildcard: false, re: null };
|
|
726
|
+
const source = text
|
|
727
|
+
.replace(/[.+^$()|[\]\\]/g, '\\$&')
|
|
728
|
+
.replace(/\*+/g, '[^/]*')
|
|
729
|
+
.replace(/\?/g, '[^/]')
|
|
730
|
+
.replace(/\{([^{}]*)\}/g, (_, alts) => `(?:${alts.split(',').join('|')})`);
|
|
731
|
+
return { text, globstar: false, wildcard: true, re: new RegExp(`^${source}$`) };
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
function globStep(glob, states, name, walking) {
|
|
735
|
+
const next = new Set();
|
|
736
|
+
const hidden = walking && (name.startsWith('.') || GLOB_SKIP_DIRS.has(name));
|
|
737
|
+
for (const i of states) {
|
|
738
|
+
const seg = glob[i];
|
|
739
|
+
if (!seg)
|
|
331
740
|
continue;
|
|
332
|
-
|
|
741
|
+
if (seg.globstar) {
|
|
742
|
+
if (!hidden && !(walking && GLOBSTAR_SKIP_DIRS.has(name)))
|
|
743
|
+
next.add(i);
|
|
744
|
+
}
|
|
745
|
+
else if (seg.re ? !hidden && seg.re.test(name) : seg.text === name) {
|
|
746
|
+
next.add(i + 1);
|
|
747
|
+
}
|
|
333
748
|
}
|
|
334
|
-
return
|
|
749
|
+
return globClosure(glob, next);
|
|
750
|
+
}
|
|
751
|
+
function globClosure(glob, states) {
|
|
752
|
+
for (const i of [...states]) {
|
|
753
|
+
for (let j = i; glob[j]?.globstar; j++)
|
|
754
|
+
states.add(j + 1);
|
|
755
|
+
}
|
|
756
|
+
return states;
|
|
335
757
|
}
|
|
336
|
-
/** Read the `name` field from a member directory's package.json. */
|
|
337
758
|
function readPackageName(dirAbs) {
|
|
338
759
|
try {
|
|
339
760
|
const pkg = JSON.parse(fs.readFileSync(path.join(dirAbs, 'package.json'), 'utf-8'));
|