@bharanidev/bhgraph-darwin-arm64 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,499 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* COBOL Language Extractor
|
|
4
|
+
*
|
|
5
|
+
* COBOL's AST (vendored, patched build of yutaro-sakamoto/tree-sitter-cobol)
|
|
6
|
+
* is fundamentally different from block-structured languages, so extraction
|
|
7
|
+
* runs almost entirely through the custom visitNode hook (the Pascal pattern):
|
|
8
|
+
*
|
|
9
|
+
* - A program (PROGRAM-ID) becomes a `module` node.
|
|
10
|
+
* - PROCEDURE DIVISION sections and paragraphs become `function` nodes. The
|
|
11
|
+
* grammar emits them FLAT — a section_header/paragraph_header followed by
|
|
12
|
+
* sibling statements — so extents are reconstructed here: a paragraph runs
|
|
13
|
+
* from its header to the next header, a section to the next section header.
|
|
14
|
+
* - PERFORM (including THRU ranges), GO TO, and CALL 'literal' become `calls`
|
|
15
|
+
* references. A dynamic CALL through a data name is skipped — announce,
|
|
16
|
+
* don't guess. EXEC CICS LINK/XCTL PROGRAM('X') with a literal target also
|
|
17
|
+
* becomes a `calls` reference; EXEC SQL INCLUDE X becomes an `imports`
|
|
18
|
+
* reference (DB2's COPY).
|
|
19
|
+
* - COPY statements become `import` nodes + `imports` references.
|
|
20
|
+
* - DATA DIVISION entries become `variable` (01/77 levels), `field` (nested
|
|
21
|
+
* levels, contained in their group item), or `constant` (88-level condition
|
|
22
|
+
* names) nodes, so impact queries on working-storage names work.
|
|
23
|
+
* - Standalone copybooks (.cpy) parse via the grammar's copybook_fragment
|
|
24
|
+
* entry point: data copybooks yield their record structure, procedure
|
|
25
|
+
* copybooks yield paragraphs.
|
|
26
|
+
*
|
|
27
|
+
* The grammar is fixed-format (code area columns 8-72). preParse detects a
|
|
28
|
+
* free-format file (division header or level number starting before column 8)
|
|
29
|
+
* and indents every line by 7 spaces: line numbers are preserved, columns
|
|
30
|
+
* drift by 7 — acceptable for line-oriented consumers.
|
|
31
|
+
*/
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
exports.cobolExtractor = void 0;
|
|
34
|
+
const tree_sitter_helpers_1 = require("../tree-sitter-helpers");
|
|
35
|
+
/** EXEC CICS LINK/XCTL — program target, quoted literal or data name. */
|
|
36
|
+
const EXEC_CICS_PROGRAM_RE = /\b(?:LINK|XCTL)\b[\s\S]*?\bPROGRAM\s*\(\s*(?:['"]([A-Za-z0-9$#@-]+)['"]|([A-Za-z0-9-]+))\s*\)/i;
|
|
37
|
+
/** EXEC CICS RETURN/START — next transaction, quoted literal or data name. */
|
|
38
|
+
const EXEC_CICS_TRANSID_RE = /\b(?:RETURN|START)\b[\s\S]*?\bTRANSID\s*\(\s*(?:['"]([A-Za-z0-9$#@]{1,4})['"]|([A-Za-z0-9-]+))\s*\)/i;
|
|
39
|
+
/** EXEC SQL INCLUDE <member> — the SQL flavor of COPY. */
|
|
40
|
+
const EXEC_SQL_INCLUDE_RE = /\bSQL\b[\s\S]*?\bINCLUDE\s+([A-Za-z0-9$#@-]+)/i;
|
|
41
|
+
/** The VALUE literal in a data item's signature ("PIC X(04) VALUE 'CB00'"). */
|
|
42
|
+
const VALUE_LITERAL_RE = /\bVALUE\s+['"]([A-Za-z0-9$#@-]+)['"]/i;
|
|
43
|
+
function line(node) {
|
|
44
|
+
return node.startPosition.row + 1;
|
|
45
|
+
}
|
|
46
|
+
function endLineOf(node) {
|
|
47
|
+
return node.endPosition.row + 1;
|
|
48
|
+
}
|
|
49
|
+
/** Collapse whitespace runs so multi-line clauses read as one signature. */
|
|
50
|
+
function collapse(text, cap = 120) {
|
|
51
|
+
const flat = text.replace(/\s+/g, ' ').trim();
|
|
52
|
+
return flat.length > cap ? flat.slice(0, cap - 1) + '…' : flat;
|
|
53
|
+
}
|
|
54
|
+
function currentScope(ctx) {
|
|
55
|
+
return ctx.nodeStack[ctx.nodeStack.length - 1];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* DB2 convention writes `EXEC SQL INCLUDE member END-EXEC` with no sentence
|
|
59
|
+
* period, sitting between paragraphs like a COPY — which derails the
|
|
60
|
+
* grammar's sentence machinery. Terminate the single-line form by writing a
|
|
61
|
+
* period into the character right after END-EXEC (a space), or appending one
|
|
62
|
+
* at end of line. Both are offset-preserving for every other character.
|
|
63
|
+
*/
|
|
64
|
+
function terminateSqlIncludes(source) {
|
|
65
|
+
const lineRe = /^([ \t]*(?:[0-9]{6})?[ \t]+EXEC\s+SQL\s+INCLUDE\s+[A-Za-z0-9$#@-]+\s+END-EXEC)([ \t]|$)/i;
|
|
66
|
+
return source
|
|
67
|
+
.split('\n')
|
|
68
|
+
.map((l) => {
|
|
69
|
+
if (!/END-EXEC/i.test(l) || /END-EXEC\s*\./i.test(l))
|
|
70
|
+
return l;
|
|
71
|
+
const m = lineRe.exec(l);
|
|
72
|
+
if (!m)
|
|
73
|
+
return l;
|
|
74
|
+
const head = m[1];
|
|
75
|
+
return m[2] === '' ? head + '.' : head + '.' + l.slice(head.length + 1);
|
|
76
|
+
})
|
|
77
|
+
.join('\n');
|
|
78
|
+
}
|
|
79
|
+
function addRef(ctx, fromNodeId, referenceName, referenceKind, at) {
|
|
80
|
+
if (!fromNodeId || !referenceName)
|
|
81
|
+
return;
|
|
82
|
+
ctx.addUnresolvedReference({
|
|
83
|
+
fromNodeId,
|
|
84
|
+
referenceName,
|
|
85
|
+
referenceKind,
|
|
86
|
+
line: line(at),
|
|
87
|
+
column: at.startPosition.column,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/** COPY <book> [IN/OF lib] — import node + imports reference. */
|
|
91
|
+
function handleCopy(node, ctx) {
|
|
92
|
+
const book = (0, tree_sitter_helpers_1.getChildByField)(node, 'book');
|
|
93
|
+
if (!book)
|
|
94
|
+
return;
|
|
95
|
+
const name = (0, tree_sitter_helpers_1.getNodeText)(book, ctx.source)
|
|
96
|
+
.trim()
|
|
97
|
+
.replace(/^['"]|['"]$/g, '');
|
|
98
|
+
if (!name)
|
|
99
|
+
return;
|
|
100
|
+
ctx.createNode('import', name, node, {
|
|
101
|
+
signature: collapse((0, tree_sitter_helpers_1.getNodeText)(node, ctx.source)),
|
|
102
|
+
});
|
|
103
|
+
addRef(ctx, currentScope(ctx), name, 'imports', node);
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* A CICS option can name its target through a data item instead of a
|
|
107
|
+
* literal (`TRANSID(WS-TRANID)` with `05 WS-TRANID ... VALUE 'CB00'`).
|
|
108
|
+
* Dereference it against the SAME FILE's already-extracted data items —
|
|
109
|
+
* the DATA DIVISION precedes the PROCEDURE DIVISION, so they are in
|
|
110
|
+
* ctx.nodes by the time EXEC blocks are mined. Anything else (copybook
|
|
111
|
+
* arrays, computed names) is dynamic dispatch: skipped, not guessed.
|
|
112
|
+
*/
|
|
113
|
+
function derefSameFileValue(name, ctx) {
|
|
114
|
+
const upper = name.toUpperCase();
|
|
115
|
+
for (const node of ctx.nodes) {
|
|
116
|
+
if (node.filePath !== ctx.filePath)
|
|
117
|
+
continue;
|
|
118
|
+
if (node.kind !== 'variable' && node.kind !== 'field' && node.kind !== 'constant')
|
|
119
|
+
continue;
|
|
120
|
+
if (node.name.toUpperCase() !== upper)
|
|
121
|
+
continue;
|
|
122
|
+
const value = node.signature ? VALUE_LITERAL_RE.exec(node.signature) : null;
|
|
123
|
+
return value?.[1];
|
|
124
|
+
}
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* EXEC ... END-EXEC blocks are opaque single nodes. Mine the text for the
|
|
129
|
+
* statically-resolvable shapes: CICS LINK/XCTL to a program (cross-program
|
|
130
|
+
* call), CICS RETURN/START TRANSID (the pseudo-conversational hop — emitted
|
|
131
|
+
* as a `cics-transid:XXXX` reference the CICS framework resolver maps to
|
|
132
|
+
* the owning program), and SQL INCLUDE (a copybook import).
|
|
133
|
+
*/
|
|
134
|
+
function handleExec(node, ctx, fromNodeId) {
|
|
135
|
+
const text = (0, tree_sitter_helpers_1.getNodeText)(node, ctx.source);
|
|
136
|
+
const cics = EXEC_CICS_PROGRAM_RE.exec(text);
|
|
137
|
+
if (cics) {
|
|
138
|
+
const program = cics[1] ?? (cics[2] ? derefSameFileValue(cics[2], ctx) : undefined);
|
|
139
|
+
if (program)
|
|
140
|
+
addRef(ctx, fromNodeId, program, 'calls', node);
|
|
141
|
+
}
|
|
142
|
+
const transid = EXEC_CICS_TRANSID_RE.exec(text);
|
|
143
|
+
if (transid) {
|
|
144
|
+
const tx = transid[1] ?? (transid[2] ? derefSameFileValue(transid[2], ctx) : undefined);
|
|
145
|
+
if (tx && /^[A-Za-z0-9$#@]{1,4}$/.test(tx)) {
|
|
146
|
+
addRef(ctx, fromNodeId, `cics-transid:${tx.toUpperCase()}`, 'calls', node);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const include = EXEC_SQL_INCLUDE_RE.exec(text);
|
|
150
|
+
if (include?.[1]) {
|
|
151
|
+
ctx.createNode('import', include[1], node, {
|
|
152
|
+
signature: collapse(text),
|
|
153
|
+
});
|
|
154
|
+
addRef(ctx, fromNodeId ?? currentScope(ctx), include[1], 'imports', node);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Walk a run of DATA DIVISION entries (working-storage section children or a
|
|
159
|
+
* record_description_list). Level numbers drive nesting: an entry closes all
|
|
160
|
+
* open entries with level >= its own. 88-level condition names attach to the
|
|
161
|
+
* open item as constants and never open a scope.
|
|
162
|
+
*/
|
|
163
|
+
function walkDataEntries(entries, ctx) {
|
|
164
|
+
const items = entries.map((e) => {
|
|
165
|
+
if (e.type !== 'data_description')
|
|
166
|
+
return null;
|
|
167
|
+
const levelNode = e.namedChildren.find((c) => c?.type === 'level_number');
|
|
168
|
+
const nameNode = e.namedChildren.find((c) => c?.type === 'entry_name');
|
|
169
|
+
const level = levelNode ? parseInt((0, tree_sitter_helpers_1.getNodeText)(levelNode, ctx.source), 10) : NaN;
|
|
170
|
+
const name = nameNode ? (0, tree_sitter_helpers_1.getNodeText)(nameNode, ctx.source).trim() : null;
|
|
171
|
+
return { node: e, level: Number.isFinite(level) ? level : 1, name };
|
|
172
|
+
});
|
|
173
|
+
/** Levels 01, 66, and 77 always open at top level, whatever came before. */
|
|
174
|
+
const isTopLevel = (level) => level === 1 || level === 66 || level === 77;
|
|
175
|
+
/** A group item extends to the last entry before the next level <= its own. */
|
|
176
|
+
const groupEnd = (i) => {
|
|
177
|
+
const self = items[i];
|
|
178
|
+
let end = endLineOf(self.node);
|
|
179
|
+
for (let j = i + 1; j < entries.length; j++) {
|
|
180
|
+
const it = items[j];
|
|
181
|
+
if (!it)
|
|
182
|
+
continue;
|
|
183
|
+
if (it.level !== 88 && (it.level <= self.level || isTopLevel(it.level)))
|
|
184
|
+
break;
|
|
185
|
+
end = Math.max(end, endLineOf(it.node));
|
|
186
|
+
}
|
|
187
|
+
return end;
|
|
188
|
+
};
|
|
189
|
+
const open = [];
|
|
190
|
+
let pushed = 0;
|
|
191
|
+
const closeTo = (level) => {
|
|
192
|
+
while (open.length > 0 && open[open.length - 1].level >= level) {
|
|
193
|
+
open.pop();
|
|
194
|
+
ctx.popScope();
|
|
195
|
+
pushed--;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
for (let i = 0; i < entries.length; i++) {
|
|
199
|
+
const entry = entries[i];
|
|
200
|
+
if (entry.type === 'copy_statement') {
|
|
201
|
+
handleCopy(entry, ctx);
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
204
|
+
if (entry.type === 'exec_statement') {
|
|
205
|
+
handleExec(entry, ctx, currentScope(ctx));
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
const item = items[i];
|
|
209
|
+
if (!item)
|
|
210
|
+
continue;
|
|
211
|
+
const isCondition = item.level === 88;
|
|
212
|
+
if (!isCondition)
|
|
213
|
+
closeTo(isTopLevel(item.level) ? 0 : item.level);
|
|
214
|
+
// FILLER / unnamed entries carry no symbol; they only occupy layout space.
|
|
215
|
+
if (!item.name || /^FILLER$/i.test(item.name))
|
|
216
|
+
continue;
|
|
217
|
+
const kind = isCondition ? 'constant' : open.length === 0 ? 'variable' : 'field';
|
|
218
|
+
const created = ctx.createNode(kind, item.name, item.node, {
|
|
219
|
+
endLine: isCondition ? endLineOf(item.node) : groupEnd(i),
|
|
220
|
+
signature: collapse((0, tree_sitter_helpers_1.getNodeText)(item.node, ctx.source)),
|
|
221
|
+
});
|
|
222
|
+
if (created && !isCondition) {
|
|
223
|
+
ctx.pushScope(created.id);
|
|
224
|
+
open.push({ level: item.level });
|
|
225
|
+
pushed++;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
while (pushed > 0) {
|
|
229
|
+
ctx.popScope();
|
|
230
|
+
pushed--;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* Special registers and CICS/SQL communication areas — writes to these are
|
|
235
|
+
* runtime plumbing, not project data flow; referencing them would only mint
|
|
236
|
+
* dangling refs (they have no declaration node).
|
|
237
|
+
*/
|
|
238
|
+
const SPECIAL_REGISTER_RE = /^(RETURN-CODE|SQLCODE|SQLSTATE|TALLY|EIB[A-Z-]+|DFH[A-Z-]+|WHEN-COMPILED|LENGTH|ADDRESS)$/i;
|
|
239
|
+
/** The base data name of an assignment target (first WORD, ignoring subscripts/OF-qualifiers). */
|
|
240
|
+
function targetBaseName(target, source) {
|
|
241
|
+
if (target.type === 'WORD')
|
|
242
|
+
return target;
|
|
243
|
+
for (const child of target.namedChildren) {
|
|
244
|
+
if (!child)
|
|
245
|
+
continue;
|
|
246
|
+
const found = targetBaseName(child, source);
|
|
247
|
+
if (found)
|
|
248
|
+
return found;
|
|
249
|
+
}
|
|
250
|
+
return null;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Emit a `references` ref for every data item a statement WRITES (MOVE TO,
|
|
254
|
+
* ADD TO/GIVING, SUBTRACT FROM/GIVING, COMPUTE =). Write-sites are what an
|
|
255
|
+
* impact query on a working-storage or copybook field needs: "what changes
|
|
256
|
+
* WS-TOTAL" is the COBOL analogue of value-reference edges. Read operands
|
|
257
|
+
* are deliberately not tracked — they would multiply edge volume for little
|
|
258
|
+
* impact value.
|
|
259
|
+
*/
|
|
260
|
+
function emitWriteRefs(statement, fields, fromNodeId, ctx) {
|
|
261
|
+
for (const field of fields) {
|
|
262
|
+
for (const target of statement.childrenForFieldName(field)) {
|
|
263
|
+
if (!target)
|
|
264
|
+
continue;
|
|
265
|
+
const word = targetBaseName(target, ctx.source);
|
|
266
|
+
if (!word)
|
|
267
|
+
continue;
|
|
268
|
+
const name = (0, tree_sitter_helpers_1.getNodeText)(word, ctx.source).trim();
|
|
269
|
+
if (!name || SPECIAL_REGISTER_RE.test(name))
|
|
270
|
+
continue;
|
|
271
|
+
addRef(ctx, fromNodeId, name, 'references', word);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Collect call/import references from a statement subtree, attributed to the
|
|
277
|
+
* enclosing paragraph/section (or the program when no paragraph is open).
|
|
278
|
+
*/
|
|
279
|
+
function collectRefs(node, fromNodeId, ctx) {
|
|
280
|
+
switch (node.type) {
|
|
281
|
+
case 'move_statement':
|
|
282
|
+
emitWriteRefs(node, ['dst'], fromNodeId, ctx);
|
|
283
|
+
return;
|
|
284
|
+
case 'add_statement':
|
|
285
|
+
emitWriteRefs(node, ['to', 'giving'], fromNodeId, ctx);
|
|
286
|
+
return;
|
|
287
|
+
case 'compute_statement':
|
|
288
|
+
emitWriteRefs(node, ['left'], fromNodeId, ctx);
|
|
289
|
+
return;
|
|
290
|
+
case 'subtract_statement': {
|
|
291
|
+
// SUBTRACT x FROM t — `from` is the target; with GIVING, `giving` is.
|
|
292
|
+
const hasGiving = node.childrenForFieldName('giving').length > 0;
|
|
293
|
+
emitWriteRefs(node, [hasGiving ? 'giving' : 'from'], fromNodeId, ctx);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
case 'perform_statement_call_proc': {
|
|
297
|
+
// PERFORM A [THRU B] — every label is a paragraph/section call target.
|
|
298
|
+
const proc = (0, tree_sitter_helpers_1.getChildByField)(node, 'procedure');
|
|
299
|
+
if (proc) {
|
|
300
|
+
for (const label of proc.namedChildren) {
|
|
301
|
+
if (label?.type !== 'label')
|
|
302
|
+
continue;
|
|
303
|
+
const name = (0, tree_sitter_helpers_1.getNodeText)(label, ctx.source).trim();
|
|
304
|
+
addRef(ctx, fromNodeId, name, 'calls', label);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return;
|
|
308
|
+
}
|
|
309
|
+
case 'call_statement': {
|
|
310
|
+
// CALL 'PROG' — static cross-program call. CALL data-name is dynamic
|
|
311
|
+
// dispatch through a variable: skipped (announce, don't guess).
|
|
312
|
+
const x = (0, tree_sitter_helpers_1.getChildByField)(node, 'x');
|
|
313
|
+
if (x?.type === 'string') {
|
|
314
|
+
const name = (0, tree_sitter_helpers_1.getNodeText)(x, ctx.source).replace(/^['"]|['"]$/g, '').trim();
|
|
315
|
+
addRef(ctx, fromNodeId, name, 'calls', x);
|
|
316
|
+
}
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
case 'goto_statement': {
|
|
320
|
+
const to = (0, tree_sitter_helpers_1.getChildByField)(node, 'to');
|
|
321
|
+
if (to) {
|
|
322
|
+
addRef(ctx, fromNodeId, (0, tree_sitter_helpers_1.getNodeText)(to, ctx.source).trim(), 'calls', to);
|
|
323
|
+
}
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
case 'exec_statement':
|
|
327
|
+
handleExec(node, ctx, fromNodeId);
|
|
328
|
+
return;
|
|
329
|
+
case 'copy_statement':
|
|
330
|
+
handleCopy(node, ctx);
|
|
331
|
+
return;
|
|
332
|
+
default:
|
|
333
|
+
for (const child of node.namedChildren) {
|
|
334
|
+
if (child)
|
|
335
|
+
collectRefs(child, fromNodeId, ctx);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
/** "PARA-NAME." → "PARA-NAME"; "SEC-NAME SECTION." → "SEC-NAME". */
|
|
340
|
+
function headerName(header, source) {
|
|
341
|
+
const text = (0, tree_sitter_helpers_1.getNodeText)(header, source).trim().replace(/\.$/, '').trim();
|
|
342
|
+
return text.split(/\s+/)[0] ?? text;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Walk the flat PROCEDURE DIVISION (or a procedure copybook fragment):
|
|
346
|
+
* reconstruct section/paragraph extents from header positions and attribute
|
|
347
|
+
* the sibling statements between headers to the open paragraph.
|
|
348
|
+
*/
|
|
349
|
+
function walkProcedureChildren(children, divisionEndLine, ctx) {
|
|
350
|
+
/** 1-based last line of the region started at children[i]. */
|
|
351
|
+
const regionEnd = (i, sectionsOnly) => {
|
|
352
|
+
for (let j = i + 1; j < children.length; j++) {
|
|
353
|
+
const c = children[j];
|
|
354
|
+
if (c.type === 'section_header' || (!sectionsOnly && c.type === 'paragraph_header')) {
|
|
355
|
+
// Header starts at 0-based row R → the region ends on 1-based line R.
|
|
356
|
+
return Math.max(c.startPosition.row, line(children[i]));
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return divisionEndLine;
|
|
360
|
+
};
|
|
361
|
+
let currentFnId = currentScope(ctx);
|
|
362
|
+
let sectionPushed = false;
|
|
363
|
+
for (let i = 0; i < children.length; i++) {
|
|
364
|
+
const child = children[i];
|
|
365
|
+
if (child.type === 'section_header') {
|
|
366
|
+
if (sectionPushed) {
|
|
367
|
+
ctx.popScope();
|
|
368
|
+
sectionPushed = false;
|
|
369
|
+
}
|
|
370
|
+
const created = ctx.createNode('function', headerName(child, ctx.source), child, {
|
|
371
|
+
endLine: regionEnd(i, true),
|
|
372
|
+
signature: 'SECTION',
|
|
373
|
+
});
|
|
374
|
+
if (created) {
|
|
375
|
+
ctx.pushScope(created.id);
|
|
376
|
+
sectionPushed = true;
|
|
377
|
+
currentFnId = created.id;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
else if (child.type === 'paragraph_header') {
|
|
381
|
+
const created = ctx.createNode('function', headerName(child, ctx.source), child, {
|
|
382
|
+
endLine: regionEnd(i, false),
|
|
383
|
+
});
|
|
384
|
+
if (created)
|
|
385
|
+
currentFnId = created.id;
|
|
386
|
+
}
|
|
387
|
+
else {
|
|
388
|
+
collectRefs(child, currentFnId, ctx);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
if (sectionPushed)
|
|
392
|
+
ctx.popScope();
|
|
393
|
+
}
|
|
394
|
+
/** Program name from identification_division > program_name. */
|
|
395
|
+
function programName(programNode, source) {
|
|
396
|
+
const idDiv = programNode.namedChildren.find((c) => c?.type === 'identification_division');
|
|
397
|
+
const nameNode = idDiv?.namedChildren.find((c) => c?.type === 'program_name');
|
|
398
|
+
if (!nameNode)
|
|
399
|
+
return null;
|
|
400
|
+
return (0, tree_sitter_helpers_1.getNodeText)(nameNode, source).trim().replace(/^['"]|['"]$/g, '').replace(/\.$/, '');
|
|
401
|
+
}
|
|
402
|
+
exports.cobolExtractor = {
|
|
403
|
+
// All extraction flows through the visitNode hook — COBOL's flat,
|
|
404
|
+
// column-oriented AST doesn't fit the generic type-list dispatch.
|
|
405
|
+
functionTypes: [],
|
|
406
|
+
classTypes: [],
|
|
407
|
+
methodTypes: [],
|
|
408
|
+
interfaceTypes: [],
|
|
409
|
+
structTypes: [],
|
|
410
|
+
enumTypes: [],
|
|
411
|
+
typeAliasTypes: [],
|
|
412
|
+
importTypes: [],
|
|
413
|
+
callTypes: [],
|
|
414
|
+
variableTypes: [],
|
|
415
|
+
nameField: 'name',
|
|
416
|
+
bodyField: 'body',
|
|
417
|
+
paramsField: 'parameters',
|
|
418
|
+
preParse: (source) => {
|
|
419
|
+
// The grammar implements fixed-format column rules (sequence area 1-6,
|
|
420
|
+
// indicator 7, code 8-72). A free-format file — where real code starts
|
|
421
|
+
// before column 8 — would have its first characters eaten as sequence
|
|
422
|
+
// area, corrupting the whole parse. Scan for a decisive marker line
|
|
423
|
+
// (division header, PROGRAM-ID, or a level-number entry) preceded only
|
|
424
|
+
// by whitespace: if it opens before column 8 the file is free-format,
|
|
425
|
+
// and every line is shifted right by 7 spaces. Line numbers are
|
|
426
|
+
// preserved; columns drift by 7 (consumers are line-oriented). A
|
|
427
|
+
// sequence-numbered fixed file never matches — its columns 1-6 hold
|
|
428
|
+
// digits, not whitespace.
|
|
429
|
+
const marker = /^([ \t]*)(IDENTIFICATION\s+DIVISION|ID\s+DIVISION|PROGRAM-ID\b|\d{2}[ \t]+[A-Za-z])/i;
|
|
430
|
+
let freeFormat = false;
|
|
431
|
+
for (const l of source.split(/\r?\n/)) {
|
|
432
|
+
const m = marker.exec(l);
|
|
433
|
+
if (!m)
|
|
434
|
+
continue;
|
|
435
|
+
freeFormat = m[1].length < 7;
|
|
436
|
+
break;
|
|
437
|
+
}
|
|
438
|
+
if (!freeFormat)
|
|
439
|
+
return terminateSqlIncludes(source);
|
|
440
|
+
// "CGWIDE" in the first line's sequence area tells the scanner to relax
|
|
441
|
+
// the column-72 right margin — free-format lines routinely exceed it,
|
|
442
|
+
// and truncating them there would corrupt strings and statements.
|
|
443
|
+
return terminateSqlIncludes(source
|
|
444
|
+
.split('\n')
|
|
445
|
+
.map((l, i) => {
|
|
446
|
+
if (i === 0)
|
|
447
|
+
return 'CGWIDE ' + l;
|
|
448
|
+
return l.length > 0 ? ' ' + l : l;
|
|
449
|
+
})
|
|
450
|
+
.join('\n'));
|
|
451
|
+
},
|
|
452
|
+
visitNode: (node, ctx) => {
|
|
453
|
+
switch (node.type) {
|
|
454
|
+
case 'program_definition': {
|
|
455
|
+
const name = programName(node, ctx.source);
|
|
456
|
+
const moduleNode = name ? ctx.createNode('module', name, node) : null;
|
|
457
|
+
if (moduleNode)
|
|
458
|
+
ctx.pushScope(moduleNode.id);
|
|
459
|
+
for (const child of node.namedChildren) {
|
|
460
|
+
if (child)
|
|
461
|
+
ctx.visitNode(child);
|
|
462
|
+
}
|
|
463
|
+
if (moduleNode)
|
|
464
|
+
ctx.popScope();
|
|
465
|
+
return true;
|
|
466
|
+
}
|
|
467
|
+
case 'procedure_division': {
|
|
468
|
+
walkProcedureChildren(node.namedChildren.filter(Boolean), endLineOf(node), ctx);
|
|
469
|
+
return true;
|
|
470
|
+
}
|
|
471
|
+
case 'working_storage_section':
|
|
472
|
+
case 'record_description_list': {
|
|
473
|
+
walkDataEntries(node.namedChildren.filter(Boolean), ctx);
|
|
474
|
+
return true;
|
|
475
|
+
}
|
|
476
|
+
case 'copybook_fragment': {
|
|
477
|
+
const children = node.namedChildren.filter(Boolean);
|
|
478
|
+
if (children.some((c) => c.type === 'record_description_list')) {
|
|
479
|
+
for (const child of children)
|
|
480
|
+
ctx.visitNode(child);
|
|
481
|
+
}
|
|
482
|
+
else {
|
|
483
|
+
// Procedure copybook: paragraphs + statements, flat under the fragment.
|
|
484
|
+
walkProcedureChildren(children, endLineOf(node), ctx);
|
|
485
|
+
}
|
|
486
|
+
return true;
|
|
487
|
+
}
|
|
488
|
+
case 'copy_statement':
|
|
489
|
+
handleCopy(node, ctx);
|
|
490
|
+
return true;
|
|
491
|
+
case 'exec_statement':
|
|
492
|
+
handleExec(node, ctx, currentScope(ctx));
|
|
493
|
+
return true;
|
|
494
|
+
default:
|
|
495
|
+
return false;
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
};
|
|
499
|
+
//# sourceMappingURL=cobol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cobol.js","sourceRoot":"","sources":["../../../src/extraction/languages/cobol.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;;;AAGH,gEAAsE;AAGtE,yEAAyE;AACzE,MAAM,oBAAoB,GACxB,gGAAgG,CAAC;AACnG,8EAA8E;AAC9E,MAAM,oBAAoB,GACxB,sGAAsG,CAAC;AACzG,0DAA0D;AAC1D,MAAM,mBAAmB,GAAG,gDAAgD,CAAC;AAC7E,+EAA+E;AAC/E,MAAM,gBAAgB,GAAG,uCAAuC,CAAC;AAEjE,SAAS,IAAI,CAAC,IAAgB;IAC5B,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,GAAG,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,IAAgB;IACjC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,GAAG,CAAC,CAAC;AAClC,CAAC;AAED,4EAA4E;AAC5E,SAAS,QAAQ,CAAC,IAAY,EAAE,GAAG,GAAG,GAAG;IACvC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAC9C,OAAO,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAA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AwE;oBACxE,qBAAqB,CAAC,QAAQ,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;gBACxD,CAAC;gBACD,OAAO,IAAI,CAAC;YACd,CAAC;YACD,KAAK,gBAAgB;gBACnB,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;gBACtB,OAAO,IAAI,CAAC;YACd,KAAK,gBAAgB;gBACnB,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;gBACzC,OAAO,IAAI,CAAC;YACd;gBACE,OAAO,KAAK,CAAC;QACjB,CAAC;IACH,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { LanguageExtractor } from '../tree-sitter-types';
|
|
2
|
+
/**
|
|
3
|
+
* Blank C# conditional-compilation directive lines (`#if` / `#elif` / `#else` /
|
|
4
|
+
* `#endif`) before parsing. The vendored tree-sitter-c-sharp grammar mis-parses
|
|
5
|
+
* a `#if` that appears *inside an enum member list* — the canonical
|
|
6
|
+
* multi-targeting shape:
|
|
7
|
+
*
|
|
8
|
+
* enum ReadType {
|
|
9
|
+
* #if HAVE_DATE_TIME_OFFSET
|
|
10
|
+
* ReadAsDateTimeOffset,
|
|
11
|
+
* #endif
|
|
12
|
+
* ReadAsDouble,
|
|
13
|
+
* }
|
|
14
|
+
*
|
|
15
|
+
* It emits an ERROR that, for a nested enum, detaches the *enclosing class's*
|
|
16
|
+
* member list, so most of the class's methods drop out of the index. Removing
|
|
17
|
+
* the directive lines (keeping the guarded code) sidesteps it. Both branches of
|
|
18
|
+
* an `#if/#else` are kept — the same behaviour the previous grammar produced,
|
|
19
|
+
* and the right default for a code graph (index every symbol regardless of
|
|
20
|
+
* build flags). Replacement preserves byte offsets (directive text → spaces,
|
|
21
|
+
* newlines kept) so every symbol's line/column stays exact. (#237)
|
|
22
|
+
*/
|
|
23
|
+
export declare function blankCsharpPreprocessorDirectives(source: string): string;
|
|
24
|
+
export declare const csharpExtractor: LanguageExtractor;
|
|
25
|
+
//# sourceMappingURL=csharp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"csharp.d.ts","sourceRoot":"","sources":["../../../src/extraction/languages/csharp.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAOxE;AAsBD,eAAO,MAAM,eAAe,EAAE,iBA4G7B,CAAC"}
|