@bharanidev/bhgraph-darwin-x64 1.0.0
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/bhgraph +19 -0
- package/lib/dist/bin/bhgraph.d.ts +26 -0
- package/lib/dist/bin/bhgraph.d.ts.map +1 -0
- package/lib/dist/bin/bhgraph.js +2207 -0
- package/lib/dist/bin/bhgraph.js.map +1 -0
- package/lib/dist/bin/command-supervision.d.ts +12 -0
- package/lib/dist/bin/command-supervision.d.ts.map +1 -0
- package/lib/dist/bin/command-supervision.js +89 -0
- package/lib/dist/bin/command-supervision.js.map +1 -0
- package/lib/dist/bin/fatal-handler.d.ts +20 -0
- package/lib/dist/bin/fatal-handler.d.ts.map +1 -0
- package/lib/dist/bin/fatal-handler.js +118 -0
- package/lib/dist/bin/fatal-handler.js.map +1 -0
- package/lib/dist/bin/node-version-check.d.ts +37 -0
- package/lib/dist/bin/node-version-check.d.ts.map +1 -0
- package/lib/dist/bin/node-version-check.js +79 -0
- package/lib/dist/bin/node-version-check.js.map +1 -0
- package/lib/dist/bin/uninstall.d.ts +14 -0
- package/lib/dist/bin/uninstall.d.ts.map +1 -0
- package/lib/dist/bin/uninstall.js +36 -0
- package/lib/dist/bin/uninstall.js.map +1 -0
- package/lib/dist/context/formatter.d.ts +30 -0
- package/lib/dist/context/formatter.d.ts.map +1 -0
- package/lib/dist/context/formatter.js +263 -0
- package/lib/dist/context/formatter.js.map +1 -0
- package/lib/dist/context/index.d.ts +119 -0
- package/lib/dist/context/index.d.ts.map +1 -0
- package/lib/dist/context/index.js +1296 -0
- package/lib/dist/context/index.js.map +1 -0
- package/lib/dist/context/markers.d.ts +19 -0
- package/lib/dist/context/markers.d.ts.map +1 -0
- package/lib/dist/context/markers.js +22 -0
- package/lib/dist/context/markers.js.map +1 -0
- package/lib/dist/db/index.d.ts +142 -0
- package/lib/dist/db/index.d.ts.map +1 -0
- package/lib/dist/db/index.js +335 -0
- package/lib/dist/db/index.js.map +1 -0
- package/lib/dist/db/migrations.d.ts +44 -0
- package/lib/dist/db/migrations.d.ts.map +1 -0
- package/lib/dist/db/migrations.js +182 -0
- package/lib/dist/db/migrations.js.map +1 -0
- package/lib/dist/db/queries.d.ts +452 -0
- package/lib/dist/db/queries.d.ts.map +1 -0
- package/lib/dist/db/queries.js +1740 -0
- package/lib/dist/db/queries.js.map +1 -0
- package/lib/dist/db/schema.sql +182 -0
- package/lib/dist/db/sqlite-adapter.d.ts +53 -0
- package/lib/dist/db/sqlite-adapter.d.ts.map +1 -0
- package/lib/dist/db/sqlite-adapter.js +117 -0
- package/lib/dist/db/sqlite-adapter.js.map +1 -0
- package/lib/dist/directory.d.ts +183 -0
- package/lib/dist/directory.d.ts.map +1 -0
- package/lib/dist/directory.js +797 -0
- package/lib/dist/directory.js.map +1 -0
- package/lib/dist/errors.d.ts +136 -0
- package/lib/dist/errors.d.ts.map +1 -0
- package/lib/dist/errors.js +219 -0
- package/lib/dist/errors.js.map +1 -0
- package/lib/dist/extraction/astro-extractor.d.ts +79 -0
- package/lib/dist/extraction/astro-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/astro-extractor.js +320 -0
- package/lib/dist/extraction/astro-extractor.js.map +1 -0
- package/lib/dist/extraction/cfml-extractor.d.ts +107 -0
- package/lib/dist/extraction/cfml-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/cfml-extractor.js +494 -0
- package/lib/dist/extraction/cfml-extractor.js.map +1 -0
- package/lib/dist/extraction/dfm-extractor.d.ts +31 -0
- package/lib/dist/extraction/dfm-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/dfm-extractor.js +151 -0
- package/lib/dist/extraction/dfm-extractor.js.map +1 -0
- package/lib/dist/extraction/extraction-version.d.ts +25 -0
- package/lib/dist/extraction/extraction-version.d.ts.map +1 -0
- package/lib/dist/extraction/extraction-version.js +28 -0
- package/lib/dist/extraction/extraction-version.js.map +1 -0
- package/lib/dist/extraction/function-ref.d.ts +118 -0
- package/lib/dist/extraction/function-ref.d.ts.map +1 -0
- package/lib/dist/extraction/function-ref.js +727 -0
- package/lib/dist/extraction/function-ref.js.map +1 -0
- package/lib/dist/extraction/generated-detection.d.ts +30 -0
- package/lib/dist/extraction/generated-detection.d.ts.map +1 -0
- package/lib/dist/extraction/generated-detection.js +83 -0
- package/lib/dist/extraction/generated-detection.js.map +1 -0
- package/lib/dist/extraction/grammars.d.ts +123 -0
- package/lib/dist/extraction/grammars.d.ts.map +1 -0
- package/lib/dist/extraction/grammars.js +589 -0
- package/lib/dist/extraction/grammars.js.map +1 -0
- package/lib/dist/extraction/index.d.ts +232 -0
- package/lib/dist/extraction/index.d.ts.map +1 -0
- package/lib/dist/extraction/index.js +2269 -0
- package/lib/dist/extraction/index.js.map +1 -0
- package/lib/dist/extraction/languages/arkts.d.ts +3 -0
- package/lib/dist/extraction/languages/arkts.d.ts.map +1 -0
- package/lib/dist/extraction/languages/arkts.js +127 -0
- package/lib/dist/extraction/languages/arkts.js.map +1 -0
- package/lib/dist/extraction/languages/c-cpp.d.ts +110 -0
- package/lib/dist/extraction/languages/c-cpp.d.ts.map +1 -0
- package/lib/dist/extraction/languages/c-cpp.js +837 -0
- package/lib/dist/extraction/languages/c-cpp.js.map +1 -0
- package/lib/dist/extraction/languages/cfquery.d.ts +12 -0
- package/lib/dist/extraction/languages/cfquery.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cfquery.js +28 -0
- package/lib/dist/extraction/languages/cfquery.js.map +1 -0
- package/lib/dist/extraction/languages/cfscript.d.ts +3 -0
- package/lib/dist/extraction/languages/cfscript.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cfscript.js +73 -0
- package/lib/dist/extraction/languages/cfscript.js.map +1 -0
- package/lib/dist/extraction/languages/cobol.d.ts +33 -0
- package/lib/dist/extraction/languages/cobol.d.ts.map +1 -0
- package/lib/dist/extraction/languages/cobol.js +499 -0
- package/lib/dist/extraction/languages/cobol.js.map +1 -0
- package/lib/dist/extraction/languages/csharp.d.ts +25 -0
- package/lib/dist/extraction/languages/csharp.d.ts.map +1 -0
- package/lib/dist/extraction/languages/csharp.js +175 -0
- package/lib/dist/extraction/languages/csharp.js.map +1 -0
- package/lib/dist/extraction/languages/dart.d.ts +3 -0
- package/lib/dist/extraction/languages/dart.d.ts.map +1 -0
- package/lib/dist/extraction/languages/dart.js +374 -0
- package/lib/dist/extraction/languages/dart.js.map +1 -0
- package/lib/dist/extraction/languages/erlang.d.ts +3 -0
- package/lib/dist/extraction/languages/erlang.d.ts.map +1 -0
- package/lib/dist/extraction/languages/erlang.js +350 -0
- package/lib/dist/extraction/languages/erlang.js.map +1 -0
- package/lib/dist/extraction/languages/go.d.ts +3 -0
- package/lib/dist/extraction/languages/go.d.ts.map +1 -0
- package/lib/dist/extraction/languages/go.js +111 -0
- package/lib/dist/extraction/languages/go.js.map +1 -0
- package/lib/dist/extraction/languages/index.d.ts +10 -0
- package/lib/dist/extraction/languages/index.d.ts.map +1 -0
- package/lib/dist/extraction/languages/index.js +71 -0
- package/lib/dist/extraction/languages/index.js.map +1 -0
- package/lib/dist/extraction/languages/java.d.ts +3 -0
- package/lib/dist/extraction/languages/java.d.ts.map +1 -0
- package/lib/dist/extraction/languages/java.js +315 -0
- package/lib/dist/extraction/languages/java.js.map +1 -0
- package/lib/dist/extraction/languages/javascript.d.ts +3 -0
- package/lib/dist/extraction/languages/javascript.d.ts.map +1 -0
- package/lib/dist/extraction/languages/javascript.js +106 -0
- package/lib/dist/extraction/languages/javascript.js.map +1 -0
- package/lib/dist/extraction/languages/kotlin.d.ts +3 -0
- package/lib/dist/extraction/languages/kotlin.d.ts.map +1 -0
- package/lib/dist/extraction/languages/kotlin.js +379 -0
- package/lib/dist/extraction/languages/kotlin.js.map +1 -0
- package/lib/dist/extraction/languages/lua.d.ts +3 -0
- package/lib/dist/extraction/languages/lua.d.ts.map +1 -0
- package/lib/dist/extraction/languages/lua.js +150 -0
- package/lib/dist/extraction/languages/lua.js.map +1 -0
- package/lib/dist/extraction/languages/luau.d.ts +3 -0
- package/lib/dist/extraction/languages/luau.d.ts.map +1 -0
- package/lib/dist/extraction/languages/luau.js +37 -0
- package/lib/dist/extraction/languages/luau.js.map +1 -0
- package/lib/dist/extraction/languages/nix.d.ts +3 -0
- package/lib/dist/extraction/languages/nix.d.ts.map +1 -0
- package/lib/dist/extraction/languages/nix.js +294 -0
- package/lib/dist/extraction/languages/nix.js.map +1 -0
- package/lib/dist/extraction/languages/objc.d.ts +3 -0
- package/lib/dist/extraction/languages/objc.d.ts.map +1 -0
- package/lib/dist/extraction/languages/objc.js +175 -0
- package/lib/dist/extraction/languages/objc.js.map +1 -0
- package/lib/dist/extraction/languages/pascal.d.ts +3 -0
- package/lib/dist/extraction/languages/pascal.d.ts.map +1 -0
- package/lib/dist/extraction/languages/pascal.js +77 -0
- package/lib/dist/extraction/languages/pascal.js.map +1 -0
- package/lib/dist/extraction/languages/php.d.ts +3 -0
- package/lib/dist/extraction/languages/php.d.ts.map +1 -0
- package/lib/dist/extraction/languages/php.js +196 -0
- package/lib/dist/extraction/languages/php.js.map +1 -0
- package/lib/dist/extraction/languages/python.d.ts +3 -0
- package/lib/dist/extraction/languages/python.d.ts.map +1 -0
- package/lib/dist/extraction/languages/python.js +56 -0
- package/lib/dist/extraction/languages/python.js.map +1 -0
- package/lib/dist/extraction/languages/r.d.ts +3 -0
- package/lib/dist/extraction/languages/r.d.ts.map +1 -0
- package/lib/dist/extraction/languages/r.js +314 -0
- package/lib/dist/extraction/languages/r.js.map +1 -0
- package/lib/dist/extraction/languages/ruby.d.ts +3 -0
- package/lib/dist/extraction/languages/ruby.d.ts.map +1 -0
- package/lib/dist/extraction/languages/ruby.js +149 -0
- package/lib/dist/extraction/languages/ruby.js.map +1 -0
- package/lib/dist/extraction/languages/rust.d.ts +3 -0
- package/lib/dist/extraction/languages/rust.d.ts.map +1 -0
- package/lib/dist/extraction/languages/rust.js +142 -0
- package/lib/dist/extraction/languages/rust.js.map +1 -0
- package/lib/dist/extraction/languages/scala.d.ts +3 -0
- package/lib/dist/extraction/languages/scala.d.ts.map +1 -0
- package/lib/dist/extraction/languages/scala.js +209 -0
- package/lib/dist/extraction/languages/scala.js.map +1 -0
- package/lib/dist/extraction/languages/solidity.d.ts +3 -0
- package/lib/dist/extraction/languages/solidity.d.ts.map +1 -0
- package/lib/dist/extraction/languages/solidity.js +293 -0
- package/lib/dist/extraction/languages/solidity.js.map +1 -0
- package/lib/dist/extraction/languages/swift.d.ts +3 -0
- package/lib/dist/extraction/languages/swift.d.ts.map +1 -0
- package/lib/dist/extraction/languages/swift.js +152 -0
- package/lib/dist/extraction/languages/swift.js.map +1 -0
- package/lib/dist/extraction/languages/terraform.d.ts +3 -0
- package/lib/dist/extraction/languages/terraform.d.ts.map +1 -0
- package/lib/dist/extraction/languages/terraform.js +641 -0
- package/lib/dist/extraction/languages/terraform.js.map +1 -0
- package/lib/dist/extraction/languages/typescript.d.ts +16 -0
- package/lib/dist/extraction/languages/typescript.d.ts.map +1 -0
- package/lib/dist/extraction/languages/typescript.js +167 -0
- package/lib/dist/extraction/languages/typescript.js.map +1 -0
- package/lib/dist/extraction/languages/vbnet.d.ts +11 -0
- package/lib/dist/extraction/languages/vbnet.d.ts.map +1 -0
- package/lib/dist/extraction/languages/vbnet.js +141 -0
- package/lib/dist/extraction/languages/vbnet.js.map +1 -0
- package/lib/dist/extraction/liquid-extractor.d.ts +59 -0
- package/lib/dist/extraction/liquid-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/liquid-extractor.js +357 -0
- package/lib/dist/extraction/liquid-extractor.js.map +1 -0
- package/lib/dist/extraction/mybatis-extractor.d.ts +68 -0
- package/lib/dist/extraction/mybatis-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/mybatis-extractor.js +300 -0
- package/lib/dist/extraction/mybatis-extractor.js.map +1 -0
- package/lib/dist/extraction/parse-pool.d.ts +126 -0
- package/lib/dist/extraction/parse-pool.d.ts.map +1 -0
- package/lib/dist/extraction/parse-pool.js +319 -0
- package/lib/dist/extraction/parse-pool.js.map +1 -0
- package/lib/dist/extraction/parse-worker.d.ts +8 -0
- package/lib/dist/extraction/parse-worker.d.ts.map +1 -0
- package/lib/dist/extraction/parse-worker.js +97 -0
- package/lib/dist/extraction/parse-worker.js.map +1 -0
- package/lib/dist/extraction/razor-extractor.d.ts +42 -0
- package/lib/dist/extraction/razor-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/razor-extractor.js +285 -0
- package/lib/dist/extraction/razor-extractor.js.map +1 -0
- package/lib/dist/extraction/svelte-extractor.d.ts +56 -0
- package/lib/dist/extraction/svelte-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/svelte-extractor.js +275 -0
- package/lib/dist/extraction/svelte-extractor.js.map +1 -0
- package/lib/dist/extraction/tree-sitter-helpers.d.ts +28 -0
- package/lib/dist/extraction/tree-sitter-helpers.d.ts.map +1 -0
- package/lib/dist/extraction/tree-sitter-helpers.js +153 -0
- package/lib/dist/extraction/tree-sitter-helpers.js.map +1 -0
- package/lib/dist/extraction/tree-sitter-types.d.ts +258 -0
- package/lib/dist/extraction/tree-sitter-types.d.ts.map +1 -0
- package/lib/dist/extraction/tree-sitter-types.js +10 -0
- package/lib/dist/extraction/tree-sitter-types.js.map +1 -0
- package/lib/dist/extraction/tree-sitter.d.ts +706 -0
- package/lib/dist/extraction/tree-sitter.d.ts.map +1 -0
- package/lib/dist/extraction/tree-sitter.js +6506 -0
- package/lib/dist/extraction/tree-sitter.js.map +1 -0
- package/lib/dist/extraction/vue-extractor.d.ts +51 -0
- package/lib/dist/extraction/vue-extractor.d.ts.map +1 -0
- package/lib/dist/extraction/vue-extractor.js +254 -0
- package/lib/dist/extraction/vue-extractor.js.map +1 -0
- package/lib/dist/extraction/wasm/tree-sitter-arkts.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-c_sharp.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-cfml.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-cfquery.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-cfscript.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-erlang.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-lua.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-luau.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-nix.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-r.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-terraform.wasm +0 -0
- package/lib/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts +38 -0
- package/lib/dist/extraction/wasm-runtime-flags.d.ts.map +1 -0
- package/lib/dist/extraction/wasm-runtime-flags.js +106 -0
- package/lib/dist/extraction/wasm-runtime-flags.js.map +1 -0
- package/lib/dist/graph/index.d.ts +8 -0
- package/lib/dist/graph/index.d.ts.map +1 -0
- package/lib/dist/graph/index.js +13 -0
- package/lib/dist/graph/index.js.map +1 -0
- package/lib/dist/graph/queries.d.ts +106 -0
- package/lib/dist/graph/queries.d.ts.map +1 -0
- package/lib/dist/graph/queries.js +339 -0
- package/lib/dist/graph/queries.js.map +1 -0
- package/lib/dist/graph/traversal.d.ts +127 -0
- package/lib/dist/graph/traversal.d.ts.map +1 -0
- package/lib/dist/graph/traversal.js +599 -0
- package/lib/dist/graph/traversal.js.map +1 -0
- package/lib/dist/index.d.ts +642 -0
- package/lib/dist/index.d.ts.map +1 -0
- package/lib/dist/index.js +1387 -0
- package/lib/dist/index.js.map +1 -0
- package/lib/dist/installer/config-writer.d.ts +28 -0
- package/lib/dist/installer/config-writer.d.ts.map +1 -0
- package/lib/dist/installer/config-writer.js +91 -0
- package/lib/dist/installer/config-writer.js.map +1 -0
- package/lib/dist/installer/index.d.ts +100 -0
- package/lib/dist/installer/index.d.ts.map +1 -0
- package/lib/dist/installer/index.js +526 -0
- package/lib/dist/installer/index.js.map +1 -0
- package/lib/dist/installer/instructions-template.d.ts +41 -0
- package/lib/dist/installer/instructions-template.d.ts.map +1 -0
- package/lib/dist/installer/instructions-template.js +53 -0
- package/lib/dist/installer/instructions-template.js.map +1 -0
- package/lib/dist/installer/targets/antigravity.d.ts +57 -0
- package/lib/dist/installer/targets/antigravity.d.ts.map +1 -0
- package/lib/dist/installer/targets/antigravity.js +308 -0
- package/lib/dist/installer/targets/antigravity.js.map +1 -0
- package/lib/dist/installer/targets/claude.d.ts +62 -0
- package/lib/dist/installer/targets/claude.d.ts.map +1 -0
- package/lib/dist/installer/targets/claude.js +454 -0
- package/lib/dist/installer/targets/claude.js.map +1 -0
- package/lib/dist/installer/targets/codex.d.ts +18 -0
- package/lib/dist/installer/targets/codex.d.ts.map +1 -0
- package/lib/dist/installer/targets/codex.js +185 -0
- package/lib/dist/installer/targets/codex.js.map +1 -0
- package/lib/dist/installer/targets/cursor.d.ts +35 -0
- package/lib/dist/installer/targets/cursor.d.ts.map +1 -0
- package/lib/dist/installer/targets/cursor.js +254 -0
- package/lib/dist/installer/targets/cursor.js.map +1 -0
- package/lib/dist/installer/targets/gemini.d.ts +26 -0
- package/lib/dist/installer/targets/gemini.d.ts.map +1 -0
- package/lib/dist/installer/targets/gemini.js +165 -0
- package/lib/dist/installer/targets/gemini.js.map +1 -0
- package/lib/dist/installer/targets/hermes.d.ts +18 -0
- package/lib/dist/installer/targets/hermes.d.ts.map +1 -0
- package/lib/dist/installer/targets/hermes.js +359 -0
- package/lib/dist/installer/targets/hermes.js.map +1 -0
- package/lib/dist/installer/targets/kiro.d.ts +27 -0
- package/lib/dist/installer/targets/kiro.d.ts.map +1 -0
- package/lib/dist/installer/targets/kiro.js +178 -0
- package/lib/dist/installer/targets/kiro.js.map +1 -0
- package/lib/dist/installer/targets/opencode.d.ts +38 -0
- package/lib/dist/installer/targets/opencode.d.ts.map +1 -0
- package/lib/dist/installer/targets/opencode.js +288 -0
- package/lib/dist/installer/targets/opencode.js.map +1 -0
- package/lib/dist/installer/targets/registry.d.ts +35 -0
- package/lib/dist/installer/targets/registry.d.ts.map +1 -0
- package/lib/dist/installer/targets/registry.js +91 -0
- package/lib/dist/installer/targets/registry.js.map +1 -0
- package/lib/dist/installer/targets/shared.d.ts +101 -0
- package/lib/dist/installer/targets/shared.d.ts.map +1 -0
- package/lib/dist/installer/targets/shared.js +264 -0
- package/lib/dist/installer/targets/shared.js.map +1 -0
- package/lib/dist/installer/targets/toml.d.ts +52 -0
- package/lib/dist/installer/targets/toml.d.ts.map +1 -0
- package/lib/dist/installer/targets/toml.js +147 -0
- package/lib/dist/installer/targets/toml.js.map +1 -0
- package/lib/dist/installer/targets/types.d.ts +108 -0
- package/lib/dist/installer/targets/types.d.ts.map +1 -0
- package/lib/dist/installer/targets/types.js +16 -0
- package/lib/dist/installer/targets/types.js.map +1 -0
- package/lib/dist/mcp/daemon-manager.d.ts +42 -0
- package/lib/dist/mcp/daemon-manager.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-manager.js +129 -0
- package/lib/dist/mcp/daemon-manager.js.map +1 -0
- package/lib/dist/mcp/daemon-paths.d.ts +73 -0
- package/lib/dist/mcp/daemon-paths.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-paths.js +165 -0
- package/lib/dist/mcp/daemon-paths.js.map +1 -0
- package/lib/dist/mcp/daemon-registry.d.ts +47 -0
- package/lib/dist/mcp/daemon-registry.d.ts.map +1 -0
- package/lib/dist/mcp/daemon-registry.js +233 -0
- package/lib/dist/mcp/daemon-registry.js.map +1 -0
- package/lib/dist/mcp/daemon.d.ts +290 -0
- package/lib/dist/mcp/daemon.d.ts.map +1 -0
- package/lib/dist/mcp/daemon.js +840 -0
- package/lib/dist/mcp/daemon.js.map +1 -0
- package/lib/dist/mcp/dynamic-boundaries.d.ts +41 -0
- package/lib/dist/mcp/dynamic-boundaries.d.ts.map +1 -0
- package/lib/dist/mcp/dynamic-boundaries.js +360 -0
- package/lib/dist/mcp/dynamic-boundaries.js.map +1 -0
- package/lib/dist/mcp/early-ppid.d.ts +26 -0
- package/lib/dist/mcp/early-ppid.d.ts.map +1 -0
- package/lib/dist/mcp/early-ppid.js +29 -0
- package/lib/dist/mcp/early-ppid.js.map +1 -0
- package/lib/dist/mcp/engine.d.ts +122 -0
- package/lib/dist/mcp/engine.d.ts.map +1 -0
- package/lib/dist/mcp/engine.js +350 -0
- package/lib/dist/mcp/engine.js.map +1 -0
- package/lib/dist/mcp/index.d.ts +113 -0
- package/lib/dist/mcp/index.d.ts.map +1 -0
- package/lib/dist/mcp/index.js +498 -0
- package/lib/dist/mcp/index.js.map +1 -0
- package/lib/dist/mcp/liveness-watchdog.d.ts +18 -0
- package/lib/dist/mcp/liveness-watchdog.d.ts.map +1 -0
- package/lib/dist/mcp/liveness-watchdog.js +207 -0
- package/lib/dist/mcp/liveness-watchdog.js.map +1 -0
- package/lib/dist/mcp/ppid-watchdog.d.ts +62 -0
- package/lib/dist/mcp/ppid-watchdog.d.ts.map +1 -0
- package/lib/dist/mcp/ppid-watchdog.js +64 -0
- package/lib/dist/mcp/ppid-watchdog.js.map +1 -0
- package/lib/dist/mcp/proxy.d.ts +87 -0
- package/lib/dist/mcp/proxy.d.ts.map +1 -0
- package/lib/dist/mcp/proxy.js +659 -0
- package/lib/dist/mcp/proxy.js.map +1 -0
- package/lib/dist/mcp/query-pool.d.ts +94 -0
- package/lib/dist/mcp/query-pool.d.ts.map +1 -0
- package/lib/dist/mcp/query-pool.js +297 -0
- package/lib/dist/mcp/query-pool.js.map +1 -0
- package/lib/dist/mcp/query-worker.d.ts +24 -0
- package/lib/dist/mcp/query-worker.d.ts.map +1 -0
- package/lib/dist/mcp/query-worker.js +87 -0
- package/lib/dist/mcp/query-worker.js.map +1 -0
- package/lib/dist/mcp/server-instructions.d.ts +34 -0
- package/lib/dist/mcp/server-instructions.d.ts.map +1 -0
- package/lib/dist/mcp/server-instructions.js +106 -0
- package/lib/dist/mcp/server-instructions.js.map +1 -0
- package/lib/dist/mcp/session.d.ts +79 -0
- package/lib/dist/mcp/session.d.ts.map +1 -0
- package/lib/dist/mcp/session.js +330 -0
- package/lib/dist/mcp/session.js.map +1 -0
- package/lib/dist/mcp/startup-handshake.d.ts +44 -0
- package/lib/dist/mcp/startup-handshake.d.ts.map +1 -0
- package/lib/dist/mcp/startup-handshake.js +73 -0
- package/lib/dist/mcp/startup-handshake.js.map +1 -0
- package/lib/dist/mcp/stdin-teardown.d.ts +27 -0
- package/lib/dist/mcp/stdin-teardown.d.ts.map +1 -0
- package/lib/dist/mcp/stdin-teardown.js +49 -0
- package/lib/dist/mcp/stdin-teardown.js.map +1 -0
- package/lib/dist/mcp/tools.d.ts +613 -0
- package/lib/dist/mcp/tools.d.ts.map +1 -0
- package/lib/dist/mcp/tools.js +4424 -0
- package/lib/dist/mcp/tools.js.map +1 -0
- package/lib/dist/mcp/transport.d.ts +188 -0
- package/lib/dist/mcp/transport.d.ts.map +1 -0
- package/lib/dist/mcp/transport.js +359 -0
- package/lib/dist/mcp/transport.js.map +1 -0
- package/lib/dist/mcp/version.d.ts +19 -0
- package/lib/dist/mcp/version.d.ts.map +1 -0
- package/lib/dist/mcp/version.js +71 -0
- package/lib/dist/mcp/version.js.map +1 -0
- package/lib/dist/project-config.d.ts +94 -0
- package/lib/dist/project-config.d.ts.map +1 -0
- package/lib/dist/project-config.js +374 -0
- package/lib/dist/project-config.js.map +1 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts +5 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.js +1038 -0
- package/lib/dist/resolution/c-fnptr-synthesizer.js.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts +15 -0
- package/lib/dist/resolution/callback-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/callback-synthesizer.js +3658 -0
- package/lib/dist/resolution/callback-synthesizer.js.map +1 -0
- package/lib/dist/resolution/cooperative-yield.d.ts +32 -0
- package/lib/dist/resolution/cooperative-yield.d.ts.map +1 -0
- package/lib/dist/resolution/cooperative-yield.js +42 -0
- package/lib/dist/resolution/cooperative-yield.js.map +1 -0
- package/lib/dist/resolution/frameworks/astro.d.ts +9 -0
- package/lib/dist/resolution/frameworks/astro.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/astro.js +169 -0
- package/lib/dist/resolution/frameworks/astro.js.map +1 -0
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts +18 -0
- package/lib/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/cargo-workspace.js +225 -0
- package/lib/dist/resolution/frameworks/cargo-workspace.js.map +1 -0
- package/lib/dist/resolution/frameworks/cics.d.ts +20 -0
- package/lib/dist/resolution/frameworks/cics.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/cics.js +90 -0
- package/lib/dist/resolution/frameworks/cics.js.map +1 -0
- package/lib/dist/resolution/frameworks/csharp.d.ts +8 -0
- package/lib/dist/resolution/frameworks/csharp.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/csharp.js +241 -0
- package/lib/dist/resolution/frameworks/csharp.js.map +1 -0
- package/lib/dist/resolution/frameworks/drupal.d.ts +51 -0
- package/lib/dist/resolution/frameworks/drupal.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/drupal.js +367 -0
- package/lib/dist/resolution/frameworks/drupal.js.map +1 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts +3 -0
- package/lib/dist/resolution/frameworks/expo-modules.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/expo-modules.js +148 -0
- package/lib/dist/resolution/frameworks/expo-modules.js.map +1 -0
- package/lib/dist/resolution/frameworks/express.d.ts +8 -0
- package/lib/dist/resolution/frameworks/express.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/express.js +308 -0
- package/lib/dist/resolution/frameworks/express.js.map +1 -0
- package/lib/dist/resolution/frameworks/fabric.d.ts +3 -0
- package/lib/dist/resolution/frameworks/fabric.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/fabric.js +354 -0
- package/lib/dist/resolution/frameworks/fabric.js.map +1 -0
- package/lib/dist/resolution/frameworks/go.d.ts +8 -0
- package/lib/dist/resolution/frameworks/go.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/go.js +161 -0
- package/lib/dist/resolution/frameworks/go.js.map +1 -0
- package/lib/dist/resolution/frameworks/goframe.d.ts +41 -0
- package/lib/dist/resolution/frameworks/goframe.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/goframe.js +112 -0
- package/lib/dist/resolution/frameworks/goframe.js.map +1 -0
- package/lib/dist/resolution/frameworks/index.d.ts +50 -0
- package/lib/dist/resolution/frameworks/index.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/index.js +175 -0
- package/lib/dist/resolution/frameworks/index.js.map +1 -0
- package/lib/dist/resolution/frameworks/java.d.ts +8 -0
- package/lib/dist/resolution/frameworks/java.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/java.js +517 -0
- package/lib/dist/resolution/frameworks/java.js.map +1 -0
- package/lib/dist/resolution/frameworks/laravel.d.ts +13 -0
- package/lib/dist/resolution/frameworks/laravel.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/laravel.js +257 -0
- package/lib/dist/resolution/frameworks/laravel.js.map +1 -0
- package/lib/dist/resolution/frameworks/nestjs.d.ts +26 -0
- package/lib/dist/resolution/frameworks/nestjs.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/nestjs.js +698 -0
- package/lib/dist/resolution/frameworks/nestjs.js.map +1 -0
- package/lib/dist/resolution/frameworks/play.d.ts +19 -0
- package/lib/dist/resolution/frameworks/play.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/play.js +111 -0
- package/lib/dist/resolution/frameworks/play.js.map +1 -0
- package/lib/dist/resolution/frameworks/python.d.ts +10 -0
- package/lib/dist/resolution/frameworks/python.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/python.js +400 -0
- package/lib/dist/resolution/frameworks/python.js.map +1 -0
- package/lib/dist/resolution/frameworks/react-native.d.ts +3 -0
- package/lib/dist/resolution/frameworks/react-native.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/react-native.js +410 -0
- package/lib/dist/resolution/frameworks/react-native.js.map +1 -0
- package/lib/dist/resolution/frameworks/react.d.ts +8 -0
- package/lib/dist/resolution/frameworks/react.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/react.js +334 -0
- package/lib/dist/resolution/frameworks/react.js.map +1 -0
- package/lib/dist/resolution/frameworks/ruby.d.ts +8 -0
- package/lib/dist/resolution/frameworks/ruby.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/ruby.js +302 -0
- package/lib/dist/resolution/frameworks/ruby.js.map +1 -0
- package/lib/dist/resolution/frameworks/rust.d.ts +8 -0
- package/lib/dist/resolution/frameworks/rust.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/rust.js +304 -0
- package/lib/dist/resolution/frameworks/rust.js.map +1 -0
- package/lib/dist/resolution/frameworks/svelte.d.ts +9 -0
- package/lib/dist/resolution/frameworks/svelte.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/svelte.js +253 -0
- package/lib/dist/resolution/frameworks/svelte.js.map +1 -0
- package/lib/dist/resolution/frameworks/swift-objc.d.ts +37 -0
- package/lib/dist/resolution/frameworks/swift-objc.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/swift-objc.js +252 -0
- package/lib/dist/resolution/frameworks/swift-objc.js.map +1 -0
- package/lib/dist/resolution/frameworks/swift.d.ts +10 -0
- package/lib/dist/resolution/frameworks/swift.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/swift.js +400 -0
- package/lib/dist/resolution/frameworks/swift.js.map +1 -0
- package/lib/dist/resolution/frameworks/terraform.d.ts +38 -0
- package/lib/dist/resolution/frameworks/terraform.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/terraform.js +277 -0
- package/lib/dist/resolution/frameworks/terraform.js.map +1 -0
- package/lib/dist/resolution/frameworks/vue.d.ts +9 -0
- package/lib/dist/resolution/frameworks/vue.d.ts.map +1 -0
- package/lib/dist/resolution/frameworks/vue.js +303 -0
- package/lib/dist/resolution/frameworks/vue.js.map +1 -0
- package/lib/dist/resolution/go-module.d.ts +26 -0
- package/lib/dist/resolution/go-module.d.ts.map +1 -0
- package/lib/dist/resolution/go-module.js +78 -0
- package/lib/dist/resolution/go-module.js.map +1 -0
- package/lib/dist/resolution/goframe-synthesizer.d.ts +28 -0
- package/lib/dist/resolution/goframe-synthesizer.d.ts.map +1 -0
- package/lib/dist/resolution/goframe-synthesizer.js +158 -0
- package/lib/dist/resolution/goframe-synthesizer.js.map +1 -0
- package/lib/dist/resolution/import-resolver.d.ts +85 -0
- package/lib/dist/resolution/import-resolver.d.ts.map +1 -0
- package/lib/dist/resolution/import-resolver.js +1974 -0
- package/lib/dist/resolution/import-resolver.js.map +1 -0
- package/lib/dist/resolution/index.d.ts +238 -0
- package/lib/dist/resolution/index.d.ts.map +1 -0
- package/lib/dist/resolution/index.js +1633 -0
- package/lib/dist/resolution/index.js.map +1 -0
- package/lib/dist/resolution/lru-cache.d.ts +24 -0
- package/lib/dist/resolution/lru-cache.d.ts.map +1 -0
- package/lib/dist/resolution/lru-cache.js +62 -0
- package/lib/dist/resolution/lru-cache.js.map +1 -0
- package/lib/dist/resolution/name-matcher.d.ts +112 -0
- package/lib/dist/resolution/name-matcher.d.ts.map +1 -0
- package/lib/dist/resolution/name-matcher.js +1701 -0
- package/lib/dist/resolution/name-matcher.js.map +1 -0
- package/lib/dist/resolution/path-aliases.d.ts +68 -0
- package/lib/dist/resolution/path-aliases.d.ts.map +1 -0
- package/lib/dist/resolution/path-aliases.js +238 -0
- package/lib/dist/resolution/path-aliases.js.map +1 -0
- package/lib/dist/resolution/strip-comments.d.ts +27 -0
- package/lib/dist/resolution/strip-comments.d.ts.map +1 -0
- package/lib/dist/resolution/strip-comments.js +492 -0
- package/lib/dist/resolution/strip-comments.js.map +1 -0
- package/lib/dist/resolution/swift-objc-bridge.d.ts +134 -0
- package/lib/dist/resolution/swift-objc-bridge.d.ts.map +1 -0
- package/lib/dist/resolution/swift-objc-bridge.js +256 -0
- package/lib/dist/resolution/swift-objc-bridge.js.map +1 -0
- package/lib/dist/resolution/types.d.ts +253 -0
- package/lib/dist/resolution/types.d.ts.map +1 -0
- package/lib/dist/resolution/types.js +8 -0
- package/lib/dist/resolution/types.js.map +1 -0
- package/lib/dist/resolution/workspace-packages.d.ts +58 -0
- package/lib/dist/resolution/workspace-packages.d.ts.map +1 -0
- package/lib/dist/resolution/workspace-packages.js +346 -0
- package/lib/dist/resolution/workspace-packages.js.map +1 -0
- package/lib/dist/search/identifier-segments.d.ts +60 -0
- package/lib/dist/search/identifier-segments.d.ts.map +1 -0
- package/lib/dist/search/identifier-segments.js +176 -0
- package/lib/dist/search/identifier-segments.js.map +1 -0
- package/lib/dist/search/query-parser.d.ts +57 -0
- package/lib/dist/search/query-parser.d.ts.map +1 -0
- package/lib/dist/search/query-parser.js +177 -0
- package/lib/dist/search/query-parser.js.map +1 -0
- package/lib/dist/search/query-utils.d.ts +87 -0
- package/lib/dist/search/query-utils.d.ts.map +1 -0
- package/lib/dist/search/query-utils.js +449 -0
- package/lib/dist/search/query-utils.js.map +1 -0
- package/lib/dist/sync/git-hooks.d.ts +45 -0
- package/lib/dist/sync/git-hooks.d.ts.map +1 -0
- package/lib/dist/sync/git-hooks.js +227 -0
- package/lib/dist/sync/git-hooks.js.map +1 -0
- package/lib/dist/sync/index.d.ts +19 -0
- package/lib/dist/sync/index.d.ts.map +1 -0
- package/lib/dist/sync/index.js +35 -0
- package/lib/dist/sync/index.js.map +1 -0
- package/lib/dist/sync/watch-policy.d.ts +48 -0
- package/lib/dist/sync/watch-policy.d.ts.map +1 -0
- package/lib/dist/sync/watch-policy.js +124 -0
- package/lib/dist/sync/watch-policy.js.map +1 -0
- package/lib/dist/sync/watcher.d.ts +355 -0
- package/lib/dist/sync/watcher.d.ts.map +1 -0
- package/lib/dist/sync/watcher.js +848 -0
- package/lib/dist/sync/watcher.js.map +1 -0
- package/lib/dist/sync/worktree.d.ts +63 -0
- package/lib/dist/sync/worktree.d.ts.map +1 -0
- package/lib/dist/sync/worktree.js +182 -0
- package/lib/dist/sync/worktree.js.map +1 -0
- package/lib/dist/telemetry/index.d.ts +143 -0
- package/lib/dist/telemetry/index.d.ts.map +1 -0
- package/lib/dist/telemetry/index.js +541 -0
- package/lib/dist/telemetry/index.js.map +1 -0
- package/lib/dist/types.d.ts +415 -0
- package/lib/dist/types.d.ts.map +1 -0
- package/lib/dist/types.js +91 -0
- package/lib/dist/types.js.map +1 -0
- package/lib/dist/ui/glyphs.d.ts +42 -0
- package/lib/dist/ui/glyphs.d.ts.map +1 -0
- package/lib/dist/ui/glyphs.js +78 -0
- package/lib/dist/ui/glyphs.js.map +1 -0
- package/lib/dist/ui/shimmer-progress.d.ts +11 -0
- package/lib/dist/ui/shimmer-progress.d.ts.map +1 -0
- package/lib/dist/ui/shimmer-progress.js +90 -0
- package/lib/dist/ui/shimmer-progress.js.map +1 -0
- package/lib/dist/ui/shimmer-worker.d.ts +2 -0
- package/lib/dist/ui/shimmer-worker.d.ts.map +1 -0
- package/lib/dist/ui/shimmer-worker.js +118 -0
- package/lib/dist/ui/shimmer-worker.js.map +1 -0
- package/lib/dist/ui/types.d.ts +17 -0
- package/lib/dist/ui/types.d.ts.map +1 -0
- package/lib/dist/ui/types.js +3 -0
- package/lib/dist/ui/types.js.map +1 -0
- package/lib/dist/upgrade/index.d.ts +132 -0
- package/lib/dist/upgrade/index.d.ts.map +1 -0
- package/lib/dist/upgrade/index.js +498 -0
- package/lib/dist/upgrade/index.js.map +1 -0
- package/lib/dist/utils.d.ts +224 -0
- package/lib/dist/utils.d.ts.map +1 -0
- package/lib/dist/utils.js +583 -0
- package/lib/dist/utils.js.map +1 -0
- package/lib/node_modules/.package-lock.json +125 -0
- package/lib/node_modules/@clack/core/CHANGELOG.md +348 -0
- package/lib/node_modules/@clack/core/LICENSE +9 -0
- package/lib/node_modules/@clack/core/README.md +22 -0
- package/lib/node_modules/@clack/core/dist/index.d.mts +363 -0
- package/lib/node_modules/@clack/core/dist/index.mjs +17 -0
- package/lib/node_modules/@clack/core/dist/index.mjs.map +1 -0
- package/lib/node_modules/@clack/core/package.json +63 -0
- package/lib/node_modules/@clack/prompts/CHANGELOG.md +591 -0
- package/lib/node_modules/@clack/prompts/LICENSE +9 -0
- package/lib/node_modules/@clack/prompts/README.md +375 -0
- package/lib/node_modules/@clack/prompts/dist/index.d.mts +396 -0
- package/lib/node_modules/@clack/prompts/dist/index.mjs +144 -0
- package/lib/node_modules/@clack/prompts/dist/index.mjs.map +1 -0
- package/lib/node_modules/@clack/prompts/package.json +68 -0
- package/lib/node_modules/commander/LICENSE +22 -0
- package/lib/node_modules/commander/Readme.md +1176 -0
- package/lib/node_modules/commander/esm.mjs +16 -0
- package/lib/node_modules/commander/index.js +24 -0
- package/lib/node_modules/commander/lib/argument.js +150 -0
- package/lib/node_modules/commander/lib/command.js +2777 -0
- package/lib/node_modules/commander/lib/error.js +39 -0
- package/lib/node_modules/commander/lib/help.js +747 -0
- package/lib/node_modules/commander/lib/option.js +380 -0
- package/lib/node_modules/commander/lib/suggestSimilar.js +101 -0
- package/lib/node_modules/commander/package-support.json +19 -0
- package/lib/node_modules/commander/package.json +82 -0
- package/lib/node_modules/commander/typings/esm.d.mts +3 -0
- package/lib/node_modules/commander/typings/index.d.ts +1113 -0
- package/lib/node_modules/fast-string-truncated-width/dist/index.d.ts +4 -0
- package/lib/node_modules/fast-string-truncated-width/dist/index.js +111 -0
- package/lib/node_modules/fast-string-truncated-width/dist/types.d.ts +19 -0
- package/lib/node_modules/fast-string-truncated-width/dist/types.js +2 -0
- package/lib/node_modules/fast-string-truncated-width/dist/utils.d.ts +4 -0
- package/lib/node_modules/fast-string-truncated-width/dist/utils.js +20 -0
- package/lib/node_modules/fast-string-truncated-width/license +21 -0
- package/lib/node_modules/fast-string-truncated-width/package.json +35 -0
- package/lib/node_modules/fast-string-truncated-width/readme.md +59 -0
- package/lib/node_modules/fast-string-width/dist/index.d.ts +4 -0
- package/lib/node_modules/fast-string-width/dist/index.js +14 -0
- package/lib/node_modules/fast-string-width/license +21 -0
- package/lib/node_modules/fast-string-width/package.json +34 -0
- package/lib/node_modules/fast-string-width/readme.md +42 -0
- package/lib/node_modules/fast-wrap-ansi/LICENSE +23 -0
- package/lib/node_modules/fast-wrap-ansi/README.md +26 -0
- package/lib/node_modules/fast-wrap-ansi/lib/main.d.ts +6 -0
- package/lib/node_modules/fast-wrap-ansi/lib/main.js +219 -0
- package/lib/node_modules/fast-wrap-ansi/lib/main.js.map +1 -0
- package/lib/node_modules/fast-wrap-ansi/package.json +51 -0
- package/lib/node_modules/ignore/LICENSE-MIT +21 -0
- package/lib/node_modules/ignore/README.md +452 -0
- package/lib/node_modules/ignore/index.d.ts +81 -0
- package/lib/node_modules/ignore/index.js +784 -0
- package/lib/node_modules/ignore/legacy.js +681 -0
- package/lib/node_modules/ignore/package.json +87 -0
- package/lib/node_modules/jsonc-parser/CHANGELOG.md +76 -0
- package/lib/node_modules/jsonc-parser/LICENSE.md +21 -0
- package/lib/node_modules/jsonc-parser/README.md +364 -0
- package/lib/node_modules/jsonc-parser/SECURITY.md +41 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/edit.js +185 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/format.js +261 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/parser.js +659 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/scanner.js +443 -0
- package/lib/node_modules/jsonc-parser/lib/esm/impl/string-intern.js +29 -0
- package/lib/node_modules/jsonc-parser/lib/esm/main.d.ts +351 -0
- package/lib/node_modules/jsonc-parser/lib/esm/main.js +178 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/edit.js +201 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/format.js +275 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/parser.js +682 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/scanner.js +456 -0
- package/lib/node_modules/jsonc-parser/lib/umd/impl/string-intern.js +42 -0
- package/lib/node_modules/jsonc-parser/lib/umd/main.d.ts +351 -0
- package/lib/node_modules/jsonc-parser/lib/umd/main.js +194 -0
- package/lib/node_modules/jsonc-parser/package.json +37 -0
- package/lib/node_modules/picomatch/LICENSE +21 -0
- package/lib/node_modules/picomatch/README.md +738 -0
- package/lib/node_modules/picomatch/index.js +17 -0
- package/lib/node_modules/picomatch/lib/constants.js +180 -0
- package/lib/node_modules/picomatch/lib/parse.js +1085 -0
- package/lib/node_modules/picomatch/lib/picomatch.js +341 -0
- package/lib/node_modules/picomatch/lib/scan.js +391 -0
- package/lib/node_modules/picomatch/lib/utils.js +72 -0
- package/lib/node_modules/picomatch/package.json +83 -0
- package/lib/node_modules/picomatch/posix.js +3 -0
- package/lib/node_modules/sisteransi/license +21 -0
- package/lib/node_modules/sisteransi/package.json +34 -0
- package/lib/node_modules/sisteransi/readme.md +113 -0
- package/lib/node_modules/sisteransi/src/index.js +58 -0
- package/lib/node_modules/sisteransi/src/sisteransi.d.ts +35 -0
- package/lib/node_modules/tree-sitter-wasms/LICENSE +24 -0
- package/lib/node_modules/tree-sitter-wasms/README.md +23 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-bash.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-c.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-c_sharp.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-cpp.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-css.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-dart.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-elisp.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-elixir.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-elm.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-embedded_template.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-go.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-html.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-java.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-javascript.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-json.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-kotlin.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-lua.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-objc.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-ocaml.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-php.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-python.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-ql.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-rescript.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-ruby.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-rust.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-scala.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-solidity.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-swift.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-systemrdl.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-tlaplus.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-toml.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-tsx.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-typescript.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-vue.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-yaml.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/out/tree-sitter-zig.wasm +0 -0
- package/lib/node_modules/tree-sitter-wasms/package.json +64 -0
- package/lib/node_modules/web-tree-sitter/LICENSE +21 -0
- package/lib/node_modules/web-tree-sitter/README.md +269 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.cjs +4558 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.cjs.map +7 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.js +4516 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.js.map +7 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.wasm +0 -0
- package/lib/node_modules/web-tree-sitter/debug/tree-sitter.wasm.map +31 -0
- package/lib/node_modules/web-tree-sitter/lib/alloc.c +48 -0
- package/lib/node_modules/web-tree-sitter/lib/alloc.h +41 -0
- package/lib/node_modules/web-tree-sitter/lib/array.h +291 -0
- package/lib/node_modules/web-tree-sitter/lib/atomic.h +68 -0
- package/lib/node_modules/web-tree-sitter/lib/clock.h +146 -0
- package/lib/node_modules/web-tree-sitter/lib/error_costs.h +11 -0
- package/lib/node_modules/web-tree-sitter/lib/get_changed_ranges.c +523 -0
- package/lib/node_modules/web-tree-sitter/lib/get_changed_ranges.h +36 -0
- package/lib/node_modules/web-tree-sitter/lib/host.h +21 -0
- package/lib/node_modules/web-tree-sitter/lib/language.c +293 -0
- package/lib/node_modules/web-tree-sitter/lib/language.h +293 -0
- package/lib/node_modules/web-tree-sitter/lib/length.h +52 -0
- package/lib/node_modules/web-tree-sitter/lib/lexer.c +483 -0
- package/lib/node_modules/web-tree-sitter/lib/lexer.h +54 -0
- package/lib/node_modules/web-tree-sitter/lib/lib.c +12 -0
- package/lib/node_modules/web-tree-sitter/lib/node.c +875 -0
- package/lib/node_modules/web-tree-sitter/lib/parser.c +2297 -0
- package/lib/node_modules/web-tree-sitter/lib/parser.h +286 -0
- package/lib/node_modules/web-tree-sitter/lib/point.h +48 -0
- package/lib/node_modules/web-tree-sitter/lib/query.c +4347 -0
- package/lib/node_modules/web-tree-sitter/lib/reduce_action.h +34 -0
- package/lib/node_modules/web-tree-sitter/lib/reusable_node.h +95 -0
- package/lib/node_modules/web-tree-sitter/lib/stack.c +912 -0
- package/lib/node_modules/web-tree-sitter/lib/stack.h +133 -0
- package/lib/node_modules/web-tree-sitter/lib/subtree.c +1034 -0
- package/lib/node_modules/web-tree-sitter/lib/subtree.h +399 -0
- package/lib/node_modules/web-tree-sitter/lib/tree-sitter.c +987 -0
- package/lib/node_modules/web-tree-sitter/lib/tree-sitter.cjs +2988 -0
- package/lib/node_modules/web-tree-sitter/lib/tree-sitter.wasm +0 -0
- package/lib/node_modules/web-tree-sitter/lib/tree-sitter.wasm.map +1 -0
- package/lib/node_modules/web-tree-sitter/lib/tree.c +170 -0
- package/lib/node_modules/web-tree-sitter/lib/tree.h +31 -0
- package/lib/node_modules/web-tree-sitter/lib/tree_cursor.c +716 -0
- package/lib/node_modules/web-tree-sitter/lib/tree_cursor.h +48 -0
- package/lib/node_modules/web-tree-sitter/lib/ts_assert.h +11 -0
- package/lib/node_modules/web-tree-sitter/lib/unicode.h +75 -0
- package/lib/node_modules/web-tree-sitter/lib/wasm_store.c +1937 -0
- package/lib/node_modules/web-tree-sitter/lib/wasm_store.h +31 -0
- package/lib/node_modules/web-tree-sitter/package.json +98 -0
- package/lib/node_modules/web-tree-sitter/src/bindings.ts +26 -0
- package/lib/node_modules/web-tree-sitter/src/constants.ts +133 -0
- package/lib/node_modules/web-tree-sitter/src/index.ts +31 -0
- package/lib/node_modules/web-tree-sitter/src/language.ts +291 -0
- package/lib/node_modules/web-tree-sitter/src/lookahead_iterator.ts +75 -0
- package/lib/node_modules/web-tree-sitter/src/marshal.ts +176 -0
- package/lib/node_modules/web-tree-sitter/src/node.ts +646 -0
- package/lib/node_modules/web-tree-sitter/src/parser.ts +325 -0
- package/lib/node_modules/web-tree-sitter/src/query.ts +973 -0
- package/lib/node_modules/web-tree-sitter/src/tree.ts +145 -0
- package/lib/node_modules/web-tree-sitter/src/tree_cursor.ts +318 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.cjs +4031 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.cjs.map +7 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.js +3980 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.js.map +7 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.wasm +0 -0
- package/lib/node_modules/web-tree-sitter/tree-sitter.wasm.map +30 -0
- package/lib/node_modules/web-tree-sitter/web-tree-sitter.d.ts +1030 -0
- package/lib/node_modules/web-tree-sitter/web-tree-sitter.d.ts.map +56 -0
- package/lib/package.json +64 -0
- package/node +0 -0
- package/package.json +17 -0
|
@@ -0,0 +1,784 @@
|
|
|
1
|
+
// A simple implementation of make-array
|
|
2
|
+
function makeArray (subject) {
|
|
3
|
+
return Array.isArray(subject)
|
|
4
|
+
? subject
|
|
5
|
+
: [subject]
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const UNDEFINED = undefined
|
|
9
|
+
const EMPTY = ''
|
|
10
|
+
const SPACE = ' '
|
|
11
|
+
const ESCAPE = '\\'
|
|
12
|
+
const REGEX_TEST_BLANK_LINE = /^\s+$/
|
|
13
|
+
const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/
|
|
14
|
+
const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/
|
|
15
|
+
const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/
|
|
16
|
+
const REGEX_SPLITALL_CRLF = /\r?\n/g
|
|
17
|
+
|
|
18
|
+
// Invalid:
|
|
19
|
+
// - /foo,
|
|
20
|
+
// - ./foo,
|
|
21
|
+
// - ../foo,
|
|
22
|
+
// - .
|
|
23
|
+
// - ..
|
|
24
|
+
// Valid:
|
|
25
|
+
// - .foo
|
|
26
|
+
const REGEX_TEST_INVALID_PATH = /^\.{0,2}\/|^\.{1,2}$/
|
|
27
|
+
|
|
28
|
+
const REGEX_TEST_TRAILING_SLASH = /\/$/
|
|
29
|
+
|
|
30
|
+
const SLASH = '/'
|
|
31
|
+
|
|
32
|
+
// Do not use ternary expression here, since "istanbul ignore next" is buggy
|
|
33
|
+
let TMP_KEY_IGNORE = 'node-ignore'
|
|
34
|
+
/* istanbul ignore else */
|
|
35
|
+
if (typeof Symbol !== 'undefined') {
|
|
36
|
+
TMP_KEY_IGNORE = Symbol.for('node-ignore')
|
|
37
|
+
}
|
|
38
|
+
const KEY_IGNORE = TMP_KEY_IGNORE
|
|
39
|
+
|
|
40
|
+
const define = (object, key, value) => {
|
|
41
|
+
Object.defineProperty(object, key, {value})
|
|
42
|
+
return value
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g
|
|
46
|
+
|
|
47
|
+
const RETURN_FALSE = () => false
|
|
48
|
+
|
|
49
|
+
// Sanitize the range of a regular expression
|
|
50
|
+
// The cases are complicated, see test cases for details
|
|
51
|
+
const sanitizeRange = range => range.replace(
|
|
52
|
+
REGEX_REGEXP_RANGE,
|
|
53
|
+
(match, from, to) => from.charCodeAt(0) <= to.charCodeAt(0)
|
|
54
|
+
? match
|
|
55
|
+
// Invalid range (out of order) which is ok for gitignore rules but
|
|
56
|
+
// fatal for JavaScript regular expression, so eliminate it.
|
|
57
|
+
: EMPTY
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
// See fixtures #59
|
|
61
|
+
const cleanRangeBackSlash = slashes => {
|
|
62
|
+
const {length} = slashes
|
|
63
|
+
return slashes.slice(0, length - length % 2)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// > If the pattern ends with a slash,
|
|
67
|
+
// > it is removed for the purpose of the following description,
|
|
68
|
+
// > but it would only find a match with a directory.
|
|
69
|
+
// > In other words, foo/ will match a directory foo and paths underneath it,
|
|
70
|
+
// > but will not match a regular file or a symbolic link foo
|
|
71
|
+
// > (this is consistent with the way how pathspec works in general in Git).
|
|
72
|
+
// '`foo/`' will not match regular file '`foo`' or symbolic link '`foo`'
|
|
73
|
+
// -> ignore-rules will not deal with it, because it costs extra `fs.stat` call
|
|
74
|
+
// you could use option `mark: true` with `glob`
|
|
75
|
+
|
|
76
|
+
// '`foo/`' should not continue with the '`..`'
|
|
77
|
+
const REPLACERS = [
|
|
78
|
+
|
|
79
|
+
[
|
|
80
|
+
// Remove BOM
|
|
81
|
+
// TODO:
|
|
82
|
+
// Other similar zero-width characters?
|
|
83
|
+
/^\uFEFF/,
|
|
84
|
+
() => EMPTY
|
|
85
|
+
],
|
|
86
|
+
|
|
87
|
+
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
88
|
+
[
|
|
89
|
+
// (a\ ) -> (a )
|
|
90
|
+
// (a ) -> (a)
|
|
91
|
+
// (a ) -> (a)
|
|
92
|
+
// (a \ ) -> (a )
|
|
93
|
+
/((?:\\\\)*?)(\\?\s+)$/,
|
|
94
|
+
(_, m1, m2) => m1 + (
|
|
95
|
+
m2.indexOf('\\') === 0
|
|
96
|
+
? SPACE
|
|
97
|
+
: EMPTY
|
|
98
|
+
)
|
|
99
|
+
],
|
|
100
|
+
|
|
101
|
+
// Replace (\ ) with ' '
|
|
102
|
+
// (\ ) -> ' '
|
|
103
|
+
// (\\ ) -> '\\ '
|
|
104
|
+
// (\\\ ) -> '\\ '
|
|
105
|
+
[
|
|
106
|
+
/(\\+?)\s/g,
|
|
107
|
+
(_, m1) => {
|
|
108
|
+
const {length} = m1
|
|
109
|
+
return m1.slice(0, length - length % 2) + SPACE
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
|
|
113
|
+
// Escape metacharacters
|
|
114
|
+
// which is written down by users but means special for regular expressions.
|
|
115
|
+
|
|
116
|
+
// > There are 12 characters with special meanings:
|
|
117
|
+
// > - the backslash \,
|
|
118
|
+
// > - the caret ^,
|
|
119
|
+
// > - the dollar sign $,
|
|
120
|
+
// > - the period or dot .,
|
|
121
|
+
// > - the vertical bar or pipe symbol |,
|
|
122
|
+
// > - the question mark ?,
|
|
123
|
+
// > - the asterisk or star *,
|
|
124
|
+
// > - the plus sign +,
|
|
125
|
+
// > - the opening parenthesis (,
|
|
126
|
+
// > - the closing parenthesis ),
|
|
127
|
+
// > - and the opening square bracket [,
|
|
128
|
+
// > - the opening curly brace {,
|
|
129
|
+
// > These special characters are often called "metacharacters".
|
|
130
|
+
[
|
|
131
|
+
/[\\$.|*+(){^]/g,
|
|
132
|
+
match => `\\${match}`
|
|
133
|
+
],
|
|
134
|
+
|
|
135
|
+
[
|
|
136
|
+
// > a question mark (?) matches a single character
|
|
137
|
+
/(?!\\)\?/g,
|
|
138
|
+
() => '[^/]'
|
|
139
|
+
],
|
|
140
|
+
|
|
141
|
+
// leading slash
|
|
142
|
+
[
|
|
143
|
+
|
|
144
|
+
// > A leading slash matches the beginning of the pathname.
|
|
145
|
+
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
|
146
|
+
// A leading slash matches the beginning of the pathname
|
|
147
|
+
/^\//,
|
|
148
|
+
() => '^'
|
|
149
|
+
],
|
|
150
|
+
|
|
151
|
+
// replace special metacharacter slash after the leading slash
|
|
152
|
+
[
|
|
153
|
+
/\//g,
|
|
154
|
+
() => '\\/'
|
|
155
|
+
],
|
|
156
|
+
|
|
157
|
+
[
|
|
158
|
+
// > A leading "**" followed by a slash means match in all directories.
|
|
159
|
+
// > For example, "**/foo" matches file or directory "foo" anywhere,
|
|
160
|
+
// > the same as pattern "foo".
|
|
161
|
+
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
|
|
162
|
+
// > under directory "foo".
|
|
163
|
+
// Notice that the '*'s have been replaced as '\\*'
|
|
164
|
+
/^\^*\\\*\\\*\\\//,
|
|
165
|
+
|
|
166
|
+
// '**/foo' <-> 'foo'
|
|
167
|
+
() => '^(?:.*\\/)?'
|
|
168
|
+
],
|
|
169
|
+
|
|
170
|
+
// starting
|
|
171
|
+
[
|
|
172
|
+
// there will be no leading '/'
|
|
173
|
+
// (which has been replaced by section "leading slash")
|
|
174
|
+
// If starts with '**', adding a '^' to the regular expression also works
|
|
175
|
+
/^(?=[^^])/,
|
|
176
|
+
function startingReplacer () {
|
|
177
|
+
// If has a slash `/` at the beginning or middle
|
|
178
|
+
return !/\/(?!$)/.test(this)
|
|
179
|
+
// > Prior to 2.22.1
|
|
180
|
+
// > If the pattern does not contain a slash /,
|
|
181
|
+
// > Git treats it as a shell glob pattern
|
|
182
|
+
// Actually, if there is only a trailing slash,
|
|
183
|
+
// git also treats it as a shell glob pattern
|
|
184
|
+
|
|
185
|
+
// After 2.22.1 (compatible but clearer)
|
|
186
|
+
// > If there is a separator at the beginning or middle (or both)
|
|
187
|
+
// > of the pattern, then the pattern is relative to the directory
|
|
188
|
+
// > level of the particular .gitignore file itself.
|
|
189
|
+
// > Otherwise the pattern may also match at any level below
|
|
190
|
+
// > the .gitignore level.
|
|
191
|
+
? '(?:^|\\/)'
|
|
192
|
+
|
|
193
|
+
// > Otherwise, Git treats the pattern as a shell glob suitable for
|
|
194
|
+
// > consumption by fnmatch(3)
|
|
195
|
+
: '^'
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
|
|
199
|
+
// two globstars
|
|
200
|
+
[
|
|
201
|
+
// Use lookahead assertions so that we could match more than one `'/**'`
|
|
202
|
+
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
203
|
+
|
|
204
|
+
// Zero, one or several directories
|
|
205
|
+
// should not use '*', or it will be replaced by the next replacer
|
|
206
|
+
|
|
207
|
+
// Check if it is not the last `'/**'`
|
|
208
|
+
(_, index, str) => index + 6 < str.length
|
|
209
|
+
|
|
210
|
+
// case: /**/
|
|
211
|
+
// > A slash followed by two consecutive asterisks then a slash matches
|
|
212
|
+
// > zero or more directories.
|
|
213
|
+
// > For example, "a/**/b" matches "a/b", "a/x/b", "a/x/y/b" and so on.
|
|
214
|
+
// '/**/'
|
|
215
|
+
? '(?:\\/[^\\/]+)*'
|
|
216
|
+
|
|
217
|
+
// case: /**
|
|
218
|
+
// > A trailing `"/**"` matches everything inside.
|
|
219
|
+
|
|
220
|
+
// #21: everything inside but it should not include the current folder
|
|
221
|
+
: '\\/.+'
|
|
222
|
+
],
|
|
223
|
+
|
|
224
|
+
// normal intermediate wildcards
|
|
225
|
+
[
|
|
226
|
+
// Never replace escaped '*'
|
|
227
|
+
// ignore rule '\*' will match the path '*'
|
|
228
|
+
|
|
229
|
+
// 'abc.*/' -> go
|
|
230
|
+
// 'abc.*' -> skip this rule,
|
|
231
|
+
// coz trailing single wildcard will be handed by [trailing wildcard]
|
|
232
|
+
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
233
|
+
|
|
234
|
+
// '*.js' matches '.js'
|
|
235
|
+
// '*.js' doesn't match 'abc'
|
|
236
|
+
(_, p1, p2) => {
|
|
237
|
+
// 1.
|
|
238
|
+
// > An asterisk "*" matches anything except a slash.
|
|
239
|
+
// 2.
|
|
240
|
+
// > Other consecutive asterisks are considered regular asterisks
|
|
241
|
+
// > and will match according to the previous rules.
|
|
242
|
+
const unescaped = p2.replace(/\\\*/g, '[^\\/]*')
|
|
243
|
+
return p1 + unescaped
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
|
|
247
|
+
[
|
|
248
|
+
// unescape, revert step 3 except for back slash
|
|
249
|
+
// For example, if a user escape a '\\*',
|
|
250
|
+
// after step 3, the result will be '\\\\\\*'
|
|
251
|
+
/\\\\\\(?=[$.|*+(){^])/g,
|
|
252
|
+
() => ESCAPE
|
|
253
|
+
],
|
|
254
|
+
|
|
255
|
+
[
|
|
256
|
+
// '\\\\' -> '\\'
|
|
257
|
+
/\\\\/g,
|
|
258
|
+
() => ESCAPE
|
|
259
|
+
],
|
|
260
|
+
|
|
261
|
+
[
|
|
262
|
+
// > The range notation, e.g. [a-zA-Z],
|
|
263
|
+
// > can be used to match one of the characters in a range.
|
|
264
|
+
|
|
265
|
+
// `\` is escaped by step 3
|
|
266
|
+
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
267
|
+
(match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE
|
|
268
|
+
// '\\[bar]' -> '\\\\[bar\\]'
|
|
269
|
+
? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}`
|
|
270
|
+
: close === ']'
|
|
271
|
+
? endEscape.length % 2 === 0
|
|
272
|
+
// A normal case, and it is a range notation
|
|
273
|
+
// '[bar]'
|
|
274
|
+
// '[bar\\\\]'
|
|
275
|
+
? `[${sanitizeRange(range)}${endEscape}]`
|
|
276
|
+
// Invalid range notaton
|
|
277
|
+
// '[bar\\]' -> '[bar\\\\]'
|
|
278
|
+
: '[]'
|
|
279
|
+
: '[]'
|
|
280
|
+
],
|
|
281
|
+
|
|
282
|
+
// ending
|
|
283
|
+
[
|
|
284
|
+
// 'js' will not match 'js.'
|
|
285
|
+
// 'ab' will not match 'abc'
|
|
286
|
+
/(?:[^*])$/,
|
|
287
|
+
|
|
288
|
+
// WTF!
|
|
289
|
+
// https://git-scm.com/docs/gitignore
|
|
290
|
+
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
|
|
291
|
+
// which re-fixes #24, #38
|
|
292
|
+
|
|
293
|
+
// > If there is a separator at the end of the pattern then the pattern
|
|
294
|
+
// > will only match directories, otherwise the pattern can match both
|
|
295
|
+
// > files and directories.
|
|
296
|
+
|
|
297
|
+
// 'js*' will not match 'a.js'
|
|
298
|
+
// 'js/' will not match 'a.js'
|
|
299
|
+
// 'js' will match 'a.js' and 'a.js/'
|
|
300
|
+
match => /\/$/.test(match)
|
|
301
|
+
// foo/ will not match 'foo'
|
|
302
|
+
? `${match}$`
|
|
303
|
+
// foo matches 'foo' and 'foo/'
|
|
304
|
+
: `${match}(?=$|\\/$)`
|
|
305
|
+
]
|
|
306
|
+
]
|
|
307
|
+
|
|
308
|
+
const REGEX_REPLACE_TRAILING_WILDCARD = /(^|\\\/)?\\\*$/
|
|
309
|
+
const MODE_IGNORE = 'regex'
|
|
310
|
+
const MODE_CHECK_IGNORE = 'checkRegex'
|
|
311
|
+
const UNDERSCORE = '_'
|
|
312
|
+
|
|
313
|
+
const TRAILING_WILD_CARD_REPLACERS = {
|
|
314
|
+
[MODE_IGNORE] (_, p1) {
|
|
315
|
+
const prefix = p1
|
|
316
|
+
// '\^':
|
|
317
|
+
// '/*' does not match EMPTY
|
|
318
|
+
// '/*' does not match everything
|
|
319
|
+
|
|
320
|
+
// '\\\/':
|
|
321
|
+
// 'abc/*' does not match 'abc/'
|
|
322
|
+
? `${p1}[^/]+`
|
|
323
|
+
|
|
324
|
+
// 'a*' matches 'a'
|
|
325
|
+
// 'a*' matches 'aa'
|
|
326
|
+
: '[^/]*'
|
|
327
|
+
|
|
328
|
+
return `${prefix}(?=$|\\/$)`
|
|
329
|
+
},
|
|
330
|
+
|
|
331
|
+
[MODE_CHECK_IGNORE] (_, p1) {
|
|
332
|
+
// When doing `git check-ignore`
|
|
333
|
+
const prefix = p1
|
|
334
|
+
// '\\\/':
|
|
335
|
+
// 'abc/*' DOES match 'abc/' !
|
|
336
|
+
? `${p1}[^/]*`
|
|
337
|
+
|
|
338
|
+
// 'a*' matches 'a'
|
|
339
|
+
// 'a*' matches 'aa'
|
|
340
|
+
: '[^/]*'
|
|
341
|
+
|
|
342
|
+
return `${prefix}(?=$|\\/$)`
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// @param {pattern}
|
|
347
|
+
const makeRegexPrefix = pattern => REPLACERS.reduce(
|
|
348
|
+
(prev, [matcher, replacer]) =>
|
|
349
|
+
prev.replace(matcher, replacer.bind(pattern)),
|
|
350
|
+
pattern
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
const isString = subject => typeof subject === 'string'
|
|
354
|
+
|
|
355
|
+
// > A blank line matches no files, so it can serve as a separator for readability.
|
|
356
|
+
const checkPattern = pattern => pattern
|
|
357
|
+
&& isString(pattern)
|
|
358
|
+
&& !REGEX_TEST_BLANK_LINE.test(pattern)
|
|
359
|
+
&& !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern)
|
|
360
|
+
|
|
361
|
+
// > A line starting with # serves as a comment.
|
|
362
|
+
&& pattern.indexOf('#') !== 0
|
|
363
|
+
|
|
364
|
+
const splitPattern = pattern => pattern
|
|
365
|
+
.split(REGEX_SPLITALL_CRLF)
|
|
366
|
+
.filter(Boolean)
|
|
367
|
+
|
|
368
|
+
class IgnoreRule {
|
|
369
|
+
constructor (
|
|
370
|
+
pattern,
|
|
371
|
+
mark,
|
|
372
|
+
body,
|
|
373
|
+
ignoreCase,
|
|
374
|
+
negative,
|
|
375
|
+
prefix
|
|
376
|
+
) {
|
|
377
|
+
this.pattern = pattern
|
|
378
|
+
this.mark = mark
|
|
379
|
+
this.negative = negative
|
|
380
|
+
|
|
381
|
+
define(this, 'body', body)
|
|
382
|
+
define(this, 'ignoreCase', ignoreCase)
|
|
383
|
+
define(this, 'regexPrefix', prefix)
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
get regex () {
|
|
387
|
+
const key = UNDERSCORE + MODE_IGNORE
|
|
388
|
+
|
|
389
|
+
if (this[key]) {
|
|
390
|
+
return this[key]
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
return this._make(MODE_IGNORE, key)
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
get checkRegex () {
|
|
397
|
+
const key = UNDERSCORE + MODE_CHECK_IGNORE
|
|
398
|
+
|
|
399
|
+
if (this[key]) {
|
|
400
|
+
return this[key]
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
return this._make(MODE_CHECK_IGNORE, key)
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
_make (mode, key) {
|
|
407
|
+
const str = this.regexPrefix.replace(
|
|
408
|
+
REGEX_REPLACE_TRAILING_WILDCARD,
|
|
409
|
+
|
|
410
|
+
// It does not need to bind pattern
|
|
411
|
+
TRAILING_WILD_CARD_REPLACERS[mode]
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
const regex = this.ignoreCase
|
|
415
|
+
? new RegExp(str, 'i')
|
|
416
|
+
: new RegExp(str)
|
|
417
|
+
|
|
418
|
+
return define(this, key, regex)
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
const createRule = ({
|
|
423
|
+
pattern,
|
|
424
|
+
mark
|
|
425
|
+
}, ignoreCase) => {
|
|
426
|
+
let negative = false
|
|
427
|
+
let body = pattern
|
|
428
|
+
|
|
429
|
+
// > An optional prefix "!" which negates the pattern;
|
|
430
|
+
if (body.indexOf('!') === 0) {
|
|
431
|
+
negative = true
|
|
432
|
+
body = body.substr(1)
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
body = body
|
|
436
|
+
// > Put a backslash ("\") in front of the first "!" for patterns that
|
|
437
|
+
// > begin with a literal "!", for example, `"\!important!.txt"`.
|
|
438
|
+
.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, '!')
|
|
439
|
+
// > Put a backslash ("\") in front of the first hash for patterns that
|
|
440
|
+
// > begin with a hash.
|
|
441
|
+
.replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, '#')
|
|
442
|
+
|
|
443
|
+
const regexPrefix = makeRegexPrefix(body)
|
|
444
|
+
|
|
445
|
+
return new IgnoreRule(
|
|
446
|
+
pattern,
|
|
447
|
+
mark,
|
|
448
|
+
body,
|
|
449
|
+
ignoreCase,
|
|
450
|
+
negative,
|
|
451
|
+
regexPrefix
|
|
452
|
+
)
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
class RuleManager {
|
|
456
|
+
constructor (ignoreCase) {
|
|
457
|
+
this._ignoreCase = ignoreCase
|
|
458
|
+
this._rules = []
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
_add (pattern) {
|
|
462
|
+
// #32
|
|
463
|
+
if (pattern && pattern[KEY_IGNORE]) {
|
|
464
|
+
this._rules = this._rules.concat(pattern._rules._rules)
|
|
465
|
+
this._added = true
|
|
466
|
+
return
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if (isString(pattern)) {
|
|
470
|
+
pattern = {
|
|
471
|
+
pattern
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
if (checkPattern(pattern.pattern)) {
|
|
476
|
+
const rule = createRule(pattern, this._ignoreCase)
|
|
477
|
+
this._added = true
|
|
478
|
+
this._rules.push(rule)
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
// @param {Array<string> | string | Ignore} pattern
|
|
483
|
+
add (pattern) {
|
|
484
|
+
this._added = false
|
|
485
|
+
|
|
486
|
+
makeArray(
|
|
487
|
+
isString(pattern)
|
|
488
|
+
? splitPattern(pattern)
|
|
489
|
+
: pattern
|
|
490
|
+
).forEach(this._add, this)
|
|
491
|
+
|
|
492
|
+
return this._added
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
// Test one single path without recursively checking parent directories
|
|
496
|
+
//
|
|
497
|
+
// - checkUnignored `boolean` whether should check if the path is unignored,
|
|
498
|
+
// setting `checkUnignored` to `false` could reduce additional
|
|
499
|
+
// path matching.
|
|
500
|
+
// - check `string` either `MODE_IGNORE` or `MODE_CHECK_IGNORE`
|
|
501
|
+
|
|
502
|
+
// @returns {TestResult} true if a file is ignored
|
|
503
|
+
test (path, checkUnignored, mode) {
|
|
504
|
+
let ignored = false
|
|
505
|
+
let unignored = false
|
|
506
|
+
let matchedRule
|
|
507
|
+
|
|
508
|
+
this._rules.forEach(rule => {
|
|
509
|
+
const {negative} = rule
|
|
510
|
+
|
|
511
|
+
// | ignored : unignored
|
|
512
|
+
// -------- | ---------------------------------------
|
|
513
|
+
// negative | 0:0 | 0:1 | 1:0 | 1:1
|
|
514
|
+
// -------- | ------- | ------- | ------- | --------
|
|
515
|
+
// 0 | TEST | TEST | SKIP | X
|
|
516
|
+
// 1 | TESTIF | SKIP | TEST | X
|
|
517
|
+
|
|
518
|
+
// - SKIP: always skip
|
|
519
|
+
// - TEST: always test
|
|
520
|
+
// - TESTIF: only test if checkUnignored
|
|
521
|
+
// - X: that never happen
|
|
522
|
+
if (
|
|
523
|
+
unignored === negative && ignored !== unignored
|
|
524
|
+
|| negative && !ignored && !unignored && !checkUnignored
|
|
525
|
+
) {
|
|
526
|
+
return
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
const matched = rule[mode].test(path)
|
|
530
|
+
|
|
531
|
+
if (!matched) {
|
|
532
|
+
return
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
ignored = !negative
|
|
536
|
+
unignored = negative
|
|
537
|
+
|
|
538
|
+
matchedRule = negative
|
|
539
|
+
? UNDEFINED
|
|
540
|
+
: rule
|
|
541
|
+
})
|
|
542
|
+
|
|
543
|
+
const ret = {
|
|
544
|
+
ignored,
|
|
545
|
+
unignored
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
if (matchedRule) {
|
|
549
|
+
ret.rule = matchedRule
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
return ret
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
const throwError = (message, Ctor) => {
|
|
557
|
+
throw new Ctor(message)
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
const checkPath = (path, originalPath, doThrow) => {
|
|
561
|
+
if (!isString(path)) {
|
|
562
|
+
return doThrow(
|
|
563
|
+
`path must be a string, but got \`${originalPath}\``,
|
|
564
|
+
TypeError
|
|
565
|
+
)
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// We don't know if we should ignore EMPTY, so throw
|
|
569
|
+
if (!path) {
|
|
570
|
+
return doThrow(`path must not be empty`, TypeError)
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
// Check if it is a relative path
|
|
574
|
+
if (checkPath.isNotRelative(path)) {
|
|
575
|
+
const r = '`path.relative()`d'
|
|
576
|
+
return doThrow(
|
|
577
|
+
`path should be a ${r} string, but got "${originalPath}"`,
|
|
578
|
+
RangeError
|
|
579
|
+
)
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
return true
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
const isNotRelative = path => REGEX_TEST_INVALID_PATH.test(path)
|
|
586
|
+
|
|
587
|
+
checkPath.isNotRelative = isNotRelative
|
|
588
|
+
|
|
589
|
+
// On windows, the following function will be replaced
|
|
590
|
+
/* istanbul ignore next */
|
|
591
|
+
checkPath.convert = p => p
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
class Ignore {
|
|
595
|
+
constructor ({
|
|
596
|
+
ignorecase = true,
|
|
597
|
+
ignoreCase = ignorecase,
|
|
598
|
+
allowRelativePaths = false
|
|
599
|
+
} = {}) {
|
|
600
|
+
define(this, KEY_IGNORE, true)
|
|
601
|
+
|
|
602
|
+
this._rules = new RuleManager(ignoreCase)
|
|
603
|
+
this._strictPathCheck = !allowRelativePaths
|
|
604
|
+
this._initCache()
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
_initCache () {
|
|
608
|
+
// A cache for the result of `.ignores()`
|
|
609
|
+
this._ignoreCache = Object.create(null)
|
|
610
|
+
|
|
611
|
+
// A cache for the result of `.test()`
|
|
612
|
+
this._testCache = Object.create(null)
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
add (pattern) {
|
|
616
|
+
if (this._rules.add(pattern)) {
|
|
617
|
+
// Some rules have just added to the ignore,
|
|
618
|
+
// making the behavior changed,
|
|
619
|
+
// so we need to re-initialize the result cache
|
|
620
|
+
this._initCache()
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
return this
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
// legacy
|
|
627
|
+
addPattern (pattern) {
|
|
628
|
+
return this.add(pattern)
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
// @returns {TestResult}
|
|
632
|
+
_test (originalPath, cache, checkUnignored, slices) {
|
|
633
|
+
const path = originalPath
|
|
634
|
+
// Supports nullable path
|
|
635
|
+
&& checkPath.convert(originalPath)
|
|
636
|
+
|
|
637
|
+
checkPath(
|
|
638
|
+
path,
|
|
639
|
+
originalPath,
|
|
640
|
+
this._strictPathCheck
|
|
641
|
+
? throwError
|
|
642
|
+
: RETURN_FALSE
|
|
643
|
+
)
|
|
644
|
+
|
|
645
|
+
return this._t(path, cache, checkUnignored, slices)
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
checkIgnore (path) {
|
|
649
|
+
// If the path doest not end with a slash, `.ignores()` is much equivalent
|
|
650
|
+
// to `git check-ignore`
|
|
651
|
+
if (!REGEX_TEST_TRAILING_SLASH.test(path)) {
|
|
652
|
+
return this.test(path)
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
const slices = path.split(SLASH).filter(Boolean)
|
|
656
|
+
slices.pop()
|
|
657
|
+
|
|
658
|
+
if (slices.length) {
|
|
659
|
+
const parent = this._t(
|
|
660
|
+
slices.join(SLASH) + SLASH,
|
|
661
|
+
this._testCache,
|
|
662
|
+
true,
|
|
663
|
+
slices
|
|
664
|
+
)
|
|
665
|
+
|
|
666
|
+
if (parent.ignored) {
|
|
667
|
+
return parent
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
return this._rules.test(path, false, MODE_CHECK_IGNORE)
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
_t (
|
|
675
|
+
// The path to be tested
|
|
676
|
+
path,
|
|
677
|
+
|
|
678
|
+
// The cache for the result of a certain checking
|
|
679
|
+
cache,
|
|
680
|
+
|
|
681
|
+
// Whether should check if the path is unignored
|
|
682
|
+
checkUnignored,
|
|
683
|
+
|
|
684
|
+
// The path slices
|
|
685
|
+
slices
|
|
686
|
+
) {
|
|
687
|
+
if (path in cache) {
|
|
688
|
+
return cache[path]
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
if (!slices) {
|
|
692
|
+
// path/to/a.js
|
|
693
|
+
// ['path', 'to', 'a.js']
|
|
694
|
+
slices = path.split(SLASH).filter(Boolean)
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
slices.pop()
|
|
698
|
+
|
|
699
|
+
// If the path has no parent directory, just test it
|
|
700
|
+
if (!slices.length) {
|
|
701
|
+
return cache[path] = this._rules.test(path, checkUnignored, MODE_IGNORE)
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
const parent = this._t(
|
|
705
|
+
slices.join(SLASH) + SLASH,
|
|
706
|
+
cache,
|
|
707
|
+
checkUnignored,
|
|
708
|
+
slices
|
|
709
|
+
)
|
|
710
|
+
|
|
711
|
+
// If the path contains a parent directory, check the parent first
|
|
712
|
+
return cache[path] = parent.ignored
|
|
713
|
+
// > It is not possible to re-include a file if a parent directory of
|
|
714
|
+
// > that file is excluded.
|
|
715
|
+
? parent
|
|
716
|
+
: this._rules.test(path, checkUnignored, MODE_IGNORE)
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
ignores (path) {
|
|
720
|
+
return this._test(path, this._ignoreCache, false).ignored
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
createFilter () {
|
|
724
|
+
return path => !this.ignores(path)
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
filter (paths) {
|
|
728
|
+
return makeArray(paths).filter(this.createFilter())
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
// @returns {TestResult}
|
|
732
|
+
test (path) {
|
|
733
|
+
return this._test(path, this._testCache, true)
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
const factory = options => new Ignore(options)
|
|
738
|
+
|
|
739
|
+
const isPathValid = path =>
|
|
740
|
+
checkPath(path && checkPath.convert(path), path, RETURN_FALSE)
|
|
741
|
+
|
|
742
|
+
/* istanbul ignore next */
|
|
743
|
+
const setupWindows = () => {
|
|
744
|
+
/* eslint no-control-regex: "off" */
|
|
745
|
+
const makePosix = str => /^\\\\\?\\/.test(str)
|
|
746
|
+
|| /["<>|\u0000-\u001F]+/u.test(str)
|
|
747
|
+
? str
|
|
748
|
+
: str.replace(/\\/g, '/')
|
|
749
|
+
|
|
750
|
+
checkPath.convert = makePosix
|
|
751
|
+
|
|
752
|
+
// 'C:\\foo' <- 'C:\\foo' has been converted to 'C:/'
|
|
753
|
+
// 'd:\\foo'
|
|
754
|
+
const REGEX_TEST_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i
|
|
755
|
+
checkPath.isNotRelative = path =>
|
|
756
|
+
REGEX_TEST_WINDOWS_PATH_ABSOLUTE.test(path)
|
|
757
|
+
|| isNotRelative(path)
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
// Windows
|
|
762
|
+
// --------------------------------------------------------------
|
|
763
|
+
/* istanbul ignore next */
|
|
764
|
+
if (
|
|
765
|
+
// Detect `process` so that it can run in browsers.
|
|
766
|
+
typeof process !== 'undefined'
|
|
767
|
+
&& process.platform === 'win32'
|
|
768
|
+
) {
|
|
769
|
+
setupWindows()
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
// COMMONJS_EXPORTS ////////////////////////////////////////////////////////////
|
|
773
|
+
|
|
774
|
+
module.exports = factory
|
|
775
|
+
|
|
776
|
+
// Although it is an anti-pattern,
|
|
777
|
+
// it is still widely misused by a lot of libraries in github
|
|
778
|
+
// Ref: https://github.com/search?q=ignore.default%28%29&type=code
|
|
779
|
+
factory.default = factory
|
|
780
|
+
|
|
781
|
+
module.exports.isPathValid = isPathValid
|
|
782
|
+
|
|
783
|
+
// For testing purposes
|
|
784
|
+
define(module.exports, Symbol.for('setupWindows'), setupWindows)
|