@vizalice/codegraph 1.5.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/LICENSE +21 -0
- package/README.md +872 -0
- package/dist/bin/codegraph.d.ts +26 -0
- package/dist/bin/codegraph.d.ts.map +1 -0
- package/dist/bin/codegraph.js +2324 -0
- package/dist/bin/codegraph.js.map +1 -0
- package/dist/bin/command-supervision.d.ts +49 -0
- package/dist/bin/command-supervision.d.ts.map +1 -0
- package/dist/bin/command-supervision.js +95 -0
- package/dist/bin/command-supervision.js.map +1 -0
- package/dist/bin/fatal-handler.d.ts +20 -0
- package/dist/bin/fatal-handler.d.ts.map +1 -0
- package/dist/bin/fatal-handler.js +118 -0
- package/dist/bin/fatal-handler.js.map +1 -0
- package/dist/bin/node-version-check.d.ts +37 -0
- package/dist/bin/node-version-check.d.ts.map +1 -0
- package/dist/bin/node-version-check.js +79 -0
- package/dist/bin/node-version-check.js.map +1 -0
- package/dist/bin/uninstall.d.ts +14 -0
- package/dist/bin/uninstall.d.ts.map +1 -0
- package/dist/bin/uninstall.js +36 -0
- package/dist/bin/uninstall.js.map +1 -0
- package/dist/context/formatter.d.ts +36 -0
- package/dist/context/formatter.d.ts.map +1 -0
- package/dist/context/formatter.js +269 -0
- package/dist/context/formatter.js.map +1 -0
- package/dist/context/index.d.ts +119 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +1333 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/markers.d.ts +19 -0
- package/dist/context/markers.d.ts.map +1 -0
- package/dist/context/markers.js +22 -0
- package/dist/context/markers.js.map +1 -0
- package/dist/db/index.d.ts +378 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +831 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrations.d.ts +44 -0
- package/dist/db/migrations.d.ts.map +1 -0
- package/dist/db/migrations.js +236 -0
- package/dist/db/migrations.js.map +1 -0
- package/dist/db/queries.d.ts +705 -0
- package/dist/db/queries.d.ts.map +1 -0
- package/dist/db/queries.js +2435 -0
- package/dist/db/queries.js.map +1 -0
- package/dist/db/schema.sql +207 -0
- package/dist/db/sqlite-adapter.d.ts +55 -0
- package/dist/db/sqlite-adapter.d.ts.map +1 -0
- package/dist/db/sqlite-adapter.js +135 -0
- package/dist/db/sqlite-adapter.js.map +1 -0
- package/dist/db/wal-valve.d.ts +119 -0
- package/dist/db/wal-valve.d.ts.map +1 -0
- package/dist/db/wal-valve.js +290 -0
- package/dist/db/wal-valve.js.map +1 -0
- package/dist/directory.d.ts +183 -0
- package/dist/directory.d.ts.map +1 -0
- package/dist/directory.js +797 -0
- package/dist/directory.js.map +1 -0
- package/dist/errors.d.ts +136 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +219 -0
- package/dist/errors.js.map +1 -0
- package/dist/extraction/astro-extractor.d.ts +79 -0
- package/dist/extraction/astro-extractor.d.ts.map +1 -0
- package/dist/extraction/astro-extractor.js +320 -0
- package/dist/extraction/astro-extractor.js.map +1 -0
- package/dist/extraction/cfml-extractor.d.ts +107 -0
- package/dist/extraction/cfml-extractor.d.ts.map +1 -0
- package/dist/extraction/cfml-extractor.js +494 -0
- package/dist/extraction/cfml-extractor.js.map +1 -0
- package/dist/extraction/dfm-extractor.d.ts +31 -0
- package/dist/extraction/dfm-extractor.d.ts.map +1 -0
- package/dist/extraction/dfm-extractor.js +151 -0
- package/dist/extraction/dfm-extractor.js.map +1 -0
- package/dist/extraction/extraction-version.d.ts +25 -0
- package/dist/extraction/extraction-version.d.ts.map +1 -0
- package/dist/extraction/extraction-version.js +28 -0
- package/dist/extraction/extraction-version.js.map +1 -0
- package/dist/extraction/function-ref.d.ts +118 -0
- package/dist/extraction/function-ref.d.ts.map +1 -0
- package/dist/extraction/function-ref.js +733 -0
- package/dist/extraction/function-ref.js.map +1 -0
- package/dist/extraction/generated-detection.d.ts +66 -0
- package/dist/extraction/generated-detection.d.ts.map +1 -0
- package/dist/extraction/generated-detection.js +248 -0
- package/dist/extraction/generated-detection.js.map +1 -0
- package/dist/extraction/grammars.d.ts +138 -0
- package/dist/extraction/grammars.d.ts.map +1 -0
- package/dist/extraction/grammars.js +694 -0
- package/dist/extraction/grammars.js.map +1 -0
- package/dist/extraction/index.d.ts +308 -0
- package/dist/extraction/index.d.ts.map +1 -0
- package/dist/extraction/index.js +2711 -0
- package/dist/extraction/index.js.map +1 -0
- package/dist/extraction/kernel/decode.d.ts +9 -0
- package/dist/extraction/kernel/decode.d.ts.map +1 -0
- package/dist/extraction/kernel/decode.js +162 -0
- package/dist/extraction/kernel/decode.js.map +1 -0
- package/dist/extraction/kernel/index.d.ts +64 -0
- package/dist/extraction/kernel/index.d.ts.map +1 -0
- package/dist/extraction/kernel/index.js +279 -0
- package/dist/extraction/kernel/index.js.map +1 -0
- package/dist/extraction/kernel/layout.d.ts +101 -0
- package/dist/extraction/kernel/layout.d.ts.map +1 -0
- package/dist/extraction/kernel/layout.js +104 -0
- package/dist/extraction/kernel/layout.js.map +1 -0
- package/dist/extraction/kernel/loader.d.ts +103 -0
- package/dist/extraction/kernel/loader.d.ts.map +1 -0
- package/dist/extraction/kernel/loader.js +146 -0
- package/dist/extraction/kernel/loader.js.map +1 -0
- package/dist/extraction/languages/arkts.d.ts +3 -0
- package/dist/extraction/languages/arkts.d.ts.map +1 -0
- package/dist/extraction/languages/arkts.js +127 -0
- package/dist/extraction/languages/arkts.js.map +1 -0
- package/dist/extraction/languages/c-cpp.d.ts +124 -0
- package/dist/extraction/languages/c-cpp.d.ts.map +1 -0
- package/dist/extraction/languages/c-cpp.js +1689 -0
- package/dist/extraction/languages/c-cpp.js.map +1 -0
- package/dist/extraction/languages/cfquery.d.ts +12 -0
- package/dist/extraction/languages/cfquery.d.ts.map +1 -0
- package/dist/extraction/languages/cfquery.js +28 -0
- package/dist/extraction/languages/cfquery.js.map +1 -0
- package/dist/extraction/languages/cfscript.d.ts +3 -0
- package/dist/extraction/languages/cfscript.d.ts.map +1 -0
- package/dist/extraction/languages/cfscript.js +73 -0
- package/dist/extraction/languages/cfscript.js.map +1 -0
- package/dist/extraction/languages/cobol.d.ts +33 -0
- package/dist/extraction/languages/cobol.d.ts.map +1 -0
- package/dist/extraction/languages/cobol.js +499 -0
- package/dist/extraction/languages/cobol.js.map +1 -0
- package/dist/extraction/languages/csharp.d.ts +25 -0
- package/dist/extraction/languages/csharp.d.ts.map +1 -0
- package/dist/extraction/languages/csharp.js +175 -0
- package/dist/extraction/languages/csharp.js.map +1 -0
- package/dist/extraction/languages/dart.d.ts +3 -0
- package/dist/extraction/languages/dart.d.ts.map +1 -0
- package/dist/extraction/languages/dart.js +374 -0
- package/dist/extraction/languages/dart.js.map +1 -0
- package/dist/extraction/languages/erlang.d.ts +3 -0
- package/dist/extraction/languages/erlang.d.ts.map +1 -0
- package/dist/extraction/languages/erlang.js +350 -0
- package/dist/extraction/languages/erlang.js.map +1 -0
- package/dist/extraction/languages/go.d.ts +3 -0
- package/dist/extraction/languages/go.d.ts.map +1 -0
- package/dist/extraction/languages/go.js +111 -0
- package/dist/extraction/languages/go.js.map +1 -0
- package/dist/extraction/languages/index.d.ts +10 -0
- package/dist/extraction/languages/index.d.ts.map +1 -0
- package/dist/extraction/languages/index.js +71 -0
- package/dist/extraction/languages/index.js.map +1 -0
- package/dist/extraction/languages/java.d.ts +3 -0
- package/dist/extraction/languages/java.d.ts.map +1 -0
- package/dist/extraction/languages/java.js +315 -0
- package/dist/extraction/languages/java.js.map +1 -0
- package/dist/extraction/languages/javascript.d.ts +3 -0
- package/dist/extraction/languages/javascript.d.ts.map +1 -0
- package/dist/extraction/languages/javascript.js +106 -0
- package/dist/extraction/languages/javascript.js.map +1 -0
- package/dist/extraction/languages/kotlin.d.ts +3 -0
- package/dist/extraction/languages/kotlin.d.ts.map +1 -0
- package/dist/extraction/languages/kotlin.js +379 -0
- package/dist/extraction/languages/kotlin.js.map +1 -0
- package/dist/extraction/languages/lua.d.ts +3 -0
- package/dist/extraction/languages/lua.d.ts.map +1 -0
- package/dist/extraction/languages/lua.js +150 -0
- package/dist/extraction/languages/lua.js.map +1 -0
- package/dist/extraction/languages/luau.d.ts +3 -0
- package/dist/extraction/languages/luau.d.ts.map +1 -0
- package/dist/extraction/languages/luau.js +37 -0
- package/dist/extraction/languages/luau.js.map +1 -0
- package/dist/extraction/languages/nix.d.ts +3 -0
- package/dist/extraction/languages/nix.d.ts.map +1 -0
- package/dist/extraction/languages/nix.js +294 -0
- package/dist/extraction/languages/nix.js.map +1 -0
- package/dist/extraction/languages/objc.d.ts +3 -0
- package/dist/extraction/languages/objc.d.ts.map +1 -0
- package/dist/extraction/languages/objc.js +179 -0
- package/dist/extraction/languages/objc.js.map +1 -0
- package/dist/extraction/languages/pascal.d.ts +3 -0
- package/dist/extraction/languages/pascal.d.ts.map +1 -0
- package/dist/extraction/languages/pascal.js +77 -0
- package/dist/extraction/languages/pascal.js.map +1 -0
- package/dist/extraction/languages/php.d.ts +3 -0
- package/dist/extraction/languages/php.d.ts.map +1 -0
- package/dist/extraction/languages/php.js +196 -0
- package/dist/extraction/languages/php.js.map +1 -0
- package/dist/extraction/languages/python.d.ts +3 -0
- package/dist/extraction/languages/python.d.ts.map +1 -0
- package/dist/extraction/languages/python.js +56 -0
- package/dist/extraction/languages/python.js.map +1 -0
- package/dist/extraction/languages/r.d.ts +3 -0
- package/dist/extraction/languages/r.d.ts.map +1 -0
- package/dist/extraction/languages/r.js +314 -0
- package/dist/extraction/languages/r.js.map +1 -0
- package/dist/extraction/languages/ruby.d.ts +3 -0
- package/dist/extraction/languages/ruby.d.ts.map +1 -0
- package/dist/extraction/languages/ruby.js +149 -0
- package/dist/extraction/languages/ruby.js.map +1 -0
- package/dist/extraction/languages/rust.d.ts +3 -0
- package/dist/extraction/languages/rust.d.ts.map +1 -0
- package/dist/extraction/languages/rust.js +145 -0
- package/dist/extraction/languages/rust.js.map +1 -0
- package/dist/extraction/languages/scala.d.ts +3 -0
- package/dist/extraction/languages/scala.d.ts.map +1 -0
- package/dist/extraction/languages/scala.js +209 -0
- package/dist/extraction/languages/scala.js.map +1 -0
- package/dist/extraction/languages/solidity.d.ts +3 -0
- package/dist/extraction/languages/solidity.d.ts.map +1 -0
- package/dist/extraction/languages/solidity.js +293 -0
- package/dist/extraction/languages/solidity.js.map +1 -0
- package/dist/extraction/languages/swift.d.ts +3 -0
- package/dist/extraction/languages/swift.d.ts.map +1 -0
- package/dist/extraction/languages/swift.js +152 -0
- package/dist/extraction/languages/swift.js.map +1 -0
- package/dist/extraction/languages/terraform.d.ts +3 -0
- package/dist/extraction/languages/terraform.d.ts.map +1 -0
- package/dist/extraction/languages/terraform.js +641 -0
- package/dist/extraction/languages/terraform.js.map +1 -0
- package/dist/extraction/languages/typescript.d.ts +16 -0
- package/dist/extraction/languages/typescript.d.ts.map +1 -0
- package/dist/extraction/languages/typescript.js +167 -0
- package/dist/extraction/languages/typescript.js.map +1 -0
- package/dist/extraction/languages/vbnet.d.ts +11 -0
- package/dist/extraction/languages/vbnet.d.ts.map +1 -0
- package/dist/extraction/languages/vbnet.js +141 -0
- package/dist/extraction/languages/vbnet.js.map +1 -0
- package/dist/extraction/liquid-extractor.d.ts +59 -0
- package/dist/extraction/liquid-extractor.d.ts.map +1 -0
- package/dist/extraction/liquid-extractor.js +357 -0
- package/dist/extraction/liquid-extractor.js.map +1 -0
- package/dist/extraction/mybatis-extractor.d.ts +68 -0
- package/dist/extraction/mybatis-extractor.d.ts.map +1 -0
- package/dist/extraction/mybatis-extractor.js +300 -0
- package/dist/extraction/mybatis-extractor.js.map +1 -0
- package/dist/extraction/parse-pool.d.ts +160 -0
- package/dist/extraction/parse-pool.d.ts.map +1 -0
- package/dist/extraction/parse-pool.js +402 -0
- package/dist/extraction/parse-pool.js.map +1 -0
- package/dist/extraction/parse-worker.d.ts +8 -0
- package/dist/extraction/parse-worker.d.ts.map +1 -0
- package/dist/extraction/parse-worker.js +138 -0
- package/dist/extraction/parse-worker.js.map +1 -0
- package/dist/extraction/razor-extractor.d.ts +42 -0
- package/dist/extraction/razor-extractor.d.ts.map +1 -0
- package/dist/extraction/razor-extractor.js +285 -0
- package/dist/extraction/razor-extractor.js.map +1 -0
- package/dist/extraction/store-worker.d.ts +24 -0
- package/dist/extraction/store-worker.d.ts.map +1 -0
- package/dist/extraction/store-worker.js +139 -0
- package/dist/extraction/store-worker.js.map +1 -0
- package/dist/extraction/store-writer.d.ts +63 -0
- package/dist/extraction/store-writer.d.ts.map +1 -0
- package/dist/extraction/store-writer.js +174 -0
- package/dist/extraction/store-writer.js.map +1 -0
- package/dist/extraction/svelte-extractor.d.ts +56 -0
- package/dist/extraction/svelte-extractor.d.ts.map +1 -0
- package/dist/extraction/svelte-extractor.js +275 -0
- package/dist/extraction/svelte-extractor.js.map +1 -0
- package/dist/extraction/tree-sitter-helpers.d.ts +28 -0
- package/dist/extraction/tree-sitter-helpers.d.ts.map +1 -0
- package/dist/extraction/tree-sitter-helpers.js +153 -0
- package/dist/extraction/tree-sitter-helpers.js.map +1 -0
- package/dist/extraction/tree-sitter-types.d.ts +260 -0
- package/dist/extraction/tree-sitter-types.d.ts.map +1 -0
- package/dist/extraction/tree-sitter-types.js +10 -0
- package/dist/extraction/tree-sitter-types.js.map +1 -0
- package/dist/extraction/tree-sitter.d.ts +728 -0
- package/dist/extraction/tree-sitter.d.ts.map +1 -0
- package/dist/extraction/tree-sitter.js +6676 -0
- package/dist/extraction/tree-sitter.js.map +1 -0
- package/dist/extraction/vue-extractor.d.ts +51 -0
- package/dist/extraction/vue-extractor.d.ts.map +1 -0
- package/dist/extraction/vue-extractor.js +254 -0
- package/dist/extraction/vue-extractor.js.map +1 -0
- package/dist/extraction/wasm/tree-sitter-arkts.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-c.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-c_sharp.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-cfml.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-cfquery.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-cfscript.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-cobol.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-cpp.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-dart.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-erlang.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-go.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-java.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-javascript.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-kotlin.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-lua.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-luau.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-nix.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-pascal.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-php.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-python.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-r.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-ruby.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-rust.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-scala.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-swift.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-terraform.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-tsx.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-typescript.wasm +0 -0
- package/dist/extraction/wasm/tree-sitter-vbnet.wasm +0 -0
- package/dist/extraction/wasm-runtime-flags.d.ts +53 -0
- package/dist/extraction/wasm-runtime-flags.d.ts.map +1 -0
- package/dist/extraction/wasm-runtime-flags.js +130 -0
- package/dist/extraction/wasm-runtime-flags.js.map +1 -0
- package/dist/graph/index.d.ts +8 -0
- package/dist/graph/index.d.ts.map +1 -0
- package/dist/graph/index.js +13 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/queries.d.ts +106 -0
- package/dist/graph/queries.d.ts.map +1 -0
- package/dist/graph/queries.js +341 -0
- package/dist/graph/queries.js.map +1 -0
- package/dist/graph/traversal.d.ts +127 -0
- package/dist/graph/traversal.d.ts.map +1 -0
- package/dist/graph/traversal.js +599 -0
- package/dist/graph/traversal.js.map +1 -0
- package/dist/index.d.ts +677 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1718 -0
- package/dist/index.js.map +1 -0
- package/dist/installer/beta-signup.d.ts +54 -0
- package/dist/installer/beta-signup.d.ts.map +1 -0
- package/dist/installer/beta-signup.js +178 -0
- package/dist/installer/beta-signup.js.map +1 -0
- package/dist/installer/config-writer.d.ts +28 -0
- package/dist/installer/config-writer.d.ts.map +1 -0
- package/dist/installer/config-writer.js +91 -0
- package/dist/installer/config-writer.js.map +1 -0
- package/dist/installer/index.d.ts +144 -0
- package/dist/installer/index.d.ts.map +1 -0
- package/dist/installer/index.js +634 -0
- package/dist/installer/index.js.map +1 -0
- package/dist/installer/instructions-template.d.ts +41 -0
- package/dist/installer/instructions-template.d.ts.map +1 -0
- package/dist/installer/instructions-template.js +53 -0
- package/dist/installer/instructions-template.js.map +1 -0
- package/dist/installer/targets/antigravity.d.ts +57 -0
- package/dist/installer/targets/antigravity.d.ts.map +1 -0
- package/dist/installer/targets/antigravity.js +308 -0
- package/dist/installer/targets/antigravity.js.map +1 -0
- package/dist/installer/targets/claude.d.ts +62 -0
- package/dist/installer/targets/claude.d.ts.map +1 -0
- package/dist/installer/targets/claude.js +486 -0
- package/dist/installer/targets/claude.js.map +1 -0
- package/dist/installer/targets/codex.d.ts +18 -0
- package/dist/installer/targets/codex.d.ts.map +1 -0
- package/dist/installer/targets/codex.js +185 -0
- package/dist/installer/targets/codex.js.map +1 -0
- package/dist/installer/targets/copilot-cli.d.ts +32 -0
- package/dist/installer/targets/copilot-cli.d.ts.map +1 -0
- package/dist/installer/targets/copilot-cli.js +209 -0
- package/dist/installer/targets/copilot-cli.js.map +1 -0
- package/dist/installer/targets/copilot-jetbrains.d.ts +42 -0
- package/dist/installer/targets/copilot-jetbrains.d.ts.map +1 -0
- package/dist/installer/targets/copilot-jetbrains.js +238 -0
- package/dist/installer/targets/copilot-jetbrains.js.map +1 -0
- package/dist/installer/targets/copilot-vscode.d.ts +47 -0
- package/dist/installer/targets/copilot-vscode.d.ts.map +1 -0
- package/dist/installer/targets/copilot-vscode.js +219 -0
- package/dist/installer/targets/copilot-vscode.js.map +1 -0
- package/dist/installer/targets/cursor.d.ts +35 -0
- package/dist/installer/targets/cursor.d.ts.map +1 -0
- package/dist/installer/targets/cursor.js +254 -0
- package/dist/installer/targets/cursor.js.map +1 -0
- package/dist/installer/targets/dsh.d.ts +97 -0
- package/dist/installer/targets/dsh.d.ts.map +1 -0
- package/dist/installer/targets/dsh.js +358 -0
- package/dist/installer/targets/dsh.js.map +1 -0
- package/dist/installer/targets/gemini.d.ts +26 -0
- package/dist/installer/targets/gemini.d.ts.map +1 -0
- package/dist/installer/targets/gemini.js +165 -0
- package/dist/installer/targets/gemini.js.map +1 -0
- package/dist/installer/targets/hermes.d.ts +18 -0
- package/dist/installer/targets/hermes.d.ts.map +1 -0
- package/dist/installer/targets/hermes.js +359 -0
- package/dist/installer/targets/hermes.js.map +1 -0
- package/dist/installer/targets/kiro.d.ts +27 -0
- package/dist/installer/targets/kiro.d.ts.map +1 -0
- package/dist/installer/targets/kiro.js +178 -0
- package/dist/installer/targets/kiro.js.map +1 -0
- package/dist/installer/targets/opencode.d.ts +38 -0
- package/dist/installer/targets/opencode.d.ts.map +1 -0
- package/dist/installer/targets/opencode.js +288 -0
- package/dist/installer/targets/opencode.js.map +1 -0
- package/dist/installer/targets/registry.d.ts +35 -0
- package/dist/installer/targets/registry.d.ts.map +1 -0
- package/dist/installer/targets/registry.js +101 -0
- package/dist/installer/targets/registry.js.map +1 -0
- package/dist/installer/targets/shared.d.ts +132 -0
- package/dist/installer/targets/shared.d.ts.map +1 -0
- package/dist/installer/targets/shared.js +314 -0
- package/dist/installer/targets/shared.js.map +1 -0
- package/dist/installer/targets/toml.d.ts +53 -0
- package/dist/installer/targets/toml.d.ts.map +1 -0
- package/dist/installer/targets/toml.js +226 -0
- package/dist/installer/targets/toml.js.map +1 -0
- package/dist/installer/targets/types.d.ts +109 -0
- package/dist/installer/targets/types.d.ts.map +1 -0
- package/dist/installer/targets/types.js +16 -0
- package/dist/installer/targets/types.js.map +1 -0
- package/dist/installer/targets/zcode.d.ts +106 -0
- package/dist/installer/targets/zcode.d.ts.map +1 -0
- package/dist/installer/targets/zcode.js +451 -0
- package/dist/installer/targets/zcode.js.map +1 -0
- package/dist/mcp/daemon-manager.d.ts +42 -0
- package/dist/mcp/daemon-manager.d.ts.map +1 -0
- package/dist/mcp/daemon-manager.js +129 -0
- package/dist/mcp/daemon-manager.js.map +1 -0
- package/dist/mcp/daemon-paths.d.ts +73 -0
- package/dist/mcp/daemon-paths.d.ts.map +1 -0
- package/dist/mcp/daemon-paths.js +165 -0
- package/dist/mcp/daemon-paths.js.map +1 -0
- package/dist/mcp/daemon-registry.d.ts +47 -0
- package/dist/mcp/daemon-registry.d.ts.map +1 -0
- package/dist/mcp/daemon-registry.js +233 -0
- package/dist/mcp/daemon-registry.js.map +1 -0
- package/dist/mcp/daemon.d.ts +290 -0
- package/dist/mcp/daemon.d.ts.map +1 -0
- package/dist/mcp/daemon.js +862 -0
- package/dist/mcp/daemon.js.map +1 -0
- package/dist/mcp/dynamic-boundaries.d.ts +41 -0
- package/dist/mcp/dynamic-boundaries.d.ts.map +1 -0
- package/dist/mcp/dynamic-boundaries.js +360 -0
- package/dist/mcp/dynamic-boundaries.js.map +1 -0
- package/dist/mcp/early-ppid.d.ts +26 -0
- package/dist/mcp/early-ppid.d.ts.map +1 -0
- package/dist/mcp/early-ppid.js +29 -0
- package/dist/mcp/early-ppid.js.map +1 -0
- package/dist/mcp/engine.d.ts +122 -0
- package/dist/mcp/engine.d.ts.map +1 -0
- package/dist/mcp/engine.js +350 -0
- package/dist/mcp/engine.js.map +1 -0
- package/dist/mcp/explore-dedup.d.ts +137 -0
- package/dist/mcp/explore-dedup.d.ts.map +1 -0
- package/dist/mcp/explore-dedup.js +236 -0
- package/dist/mcp/explore-dedup.js.map +1 -0
- package/dist/mcp/explore-diagnostics.d.ts +287 -0
- package/dist/mcp/explore-diagnostics.d.ts.map +1 -0
- package/dist/mcp/explore-diagnostics.js +555 -0
- package/dist/mcp/explore-diagnostics.js.map +1 -0
- package/dist/mcp/explore-session-state.d.ts +217 -0
- package/dist/mcp/explore-session-state.d.ts.map +1 -0
- package/dist/mcp/explore-session-state.js +322 -0
- package/dist/mcp/explore-session-state.js.map +1 -0
- package/dist/mcp/index.d.ts +137 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +554 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/liveness-watchdog.d.ts +35 -0
- package/dist/mcp/liveness-watchdog.d.ts.map +1 -0
- package/dist/mcp/liveness-watchdog.js +269 -0
- package/dist/mcp/liveness-watchdog.js.map +1 -0
- package/dist/mcp/ppid-watchdog.d.ts +62 -0
- package/dist/mcp/ppid-watchdog.d.ts.map +1 -0
- package/dist/mcp/ppid-watchdog.js +64 -0
- package/dist/mcp/ppid-watchdog.js.map +1 -0
- package/dist/mcp/proxy.d.ts +87 -0
- package/dist/mcp/proxy.d.ts.map +1 -0
- package/dist/mcp/proxy.js +672 -0
- package/dist/mcp/proxy.js.map +1 -0
- package/dist/mcp/query-pool.d.ts +108 -0
- package/dist/mcp/query-pool.d.ts.map +1 -0
- package/dist/mcp/query-pool.js +315 -0
- package/dist/mcp/query-pool.js.map +1 -0
- package/dist/mcp/query-worker.d.ts +24 -0
- package/dist/mcp/query-worker.d.ts.map +1 -0
- package/dist/mcp/query-worker.js +87 -0
- package/dist/mcp/query-worker.js.map +1 -0
- package/dist/mcp/server-instructions.d.ts +34 -0
- package/dist/mcp/server-instructions.d.ts.map +1 -0
- package/dist/mcp/server-instructions.js +111 -0
- package/dist/mcp/server-instructions.js.map +1 -0
- package/dist/mcp/session.d.ts +109 -0
- package/dist/mcp/session.d.ts.map +1 -0
- package/dist/mcp/session.js +375 -0
- package/dist/mcp/session.js.map +1 -0
- package/dist/mcp/startup-handshake.d.ts +44 -0
- package/dist/mcp/startup-handshake.d.ts.map +1 -0
- package/dist/mcp/startup-handshake.js +73 -0
- package/dist/mcp/startup-handshake.js.map +1 -0
- package/dist/mcp/stdin-teardown.d.ts +27 -0
- package/dist/mcp/stdin-teardown.d.ts.map +1 -0
- package/dist/mcp/stdin-teardown.js +49 -0
- package/dist/mcp/stdin-teardown.js.map +1 -0
- package/dist/mcp/tools.d.ts +862 -0
- package/dist/mcp/tools.d.ts.map +1 -0
- package/dist/mcp/tools.js +6526 -0
- package/dist/mcp/tools.js.map +1 -0
- package/dist/mcp/transport.d.ts +188 -0
- package/dist/mcp/transport.d.ts.map +1 -0
- package/dist/mcp/transport.js +377 -0
- package/dist/mcp/transport.js.map +1 -0
- package/dist/mcp/version.d.ts +19 -0
- package/dist/mcp/version.d.ts.map +1 -0
- package/dist/mcp/version.js +71 -0
- package/dist/mcp/version.js.map +1 -0
- package/dist/project-config.d.ts +94 -0
- package/dist/project-config.d.ts.map +1 -0
- package/dist/project-config.js +374 -0
- package/dist/project-config.js.map +1 -0
- package/dist/prompt-hook-output.d.ts +23 -0
- package/dist/prompt-hook-output.d.ts.map +1 -0
- package/dist/prompt-hook-output.js +35 -0
- package/dist/prompt-hook-output.js.map +1 -0
- package/dist/resolution/c-fnptr-synthesizer.d.ts +6 -0
- package/dist/resolution/c-fnptr-synthesizer.d.ts.map +1 -0
- package/dist/resolution/c-fnptr-synthesizer.js +1506 -0
- package/dist/resolution/c-fnptr-synthesizer.js.map +1 -0
- package/dist/resolution/callback-synthesizer.d.ts +59 -0
- package/dist/resolution/callback-synthesizer.d.ts.map +1 -0
- package/dist/resolution/callback-synthesizer.js +4030 -0
- package/dist/resolution/callback-synthesizer.js.map +1 -0
- package/dist/resolution/cooperative-yield.d.ts +40 -0
- package/dist/resolution/cooperative-yield.d.ts.map +1 -0
- package/dist/resolution/cooperative-yield.js +44 -0
- package/dist/resolution/cooperative-yield.js.map +1 -0
- package/dist/resolution/frameworks/astro.d.ts +9 -0
- package/dist/resolution/frameworks/astro.d.ts.map +1 -0
- package/dist/resolution/frameworks/astro.js +169 -0
- package/dist/resolution/frameworks/astro.js.map +1 -0
- package/dist/resolution/frameworks/cargo-workspace.d.ts +18 -0
- package/dist/resolution/frameworks/cargo-workspace.d.ts.map +1 -0
- package/dist/resolution/frameworks/cargo-workspace.js +225 -0
- package/dist/resolution/frameworks/cargo-workspace.js.map +1 -0
- package/dist/resolution/frameworks/cics.d.ts +20 -0
- package/dist/resolution/frameworks/cics.d.ts.map +1 -0
- package/dist/resolution/frameworks/cics.js +90 -0
- package/dist/resolution/frameworks/cics.js.map +1 -0
- package/dist/resolution/frameworks/csharp.d.ts +8 -0
- package/dist/resolution/frameworks/csharp.d.ts.map +1 -0
- package/dist/resolution/frameworks/csharp.js +241 -0
- package/dist/resolution/frameworks/csharp.js.map +1 -0
- package/dist/resolution/frameworks/drupal.d.ts +51 -0
- package/dist/resolution/frameworks/drupal.d.ts.map +1 -0
- package/dist/resolution/frameworks/drupal.js +367 -0
- package/dist/resolution/frameworks/drupal.js.map +1 -0
- package/dist/resolution/frameworks/expo-modules.d.ts +3 -0
- package/dist/resolution/frameworks/expo-modules.d.ts.map +1 -0
- package/dist/resolution/frameworks/expo-modules.js +148 -0
- package/dist/resolution/frameworks/expo-modules.js.map +1 -0
- package/dist/resolution/frameworks/express.d.ts +8 -0
- package/dist/resolution/frameworks/express.d.ts.map +1 -0
- package/dist/resolution/frameworks/express.js +308 -0
- package/dist/resolution/frameworks/express.js.map +1 -0
- package/dist/resolution/frameworks/fabric.d.ts +3 -0
- package/dist/resolution/frameworks/fabric.d.ts.map +1 -0
- package/dist/resolution/frameworks/fabric.js +354 -0
- package/dist/resolution/frameworks/fabric.js.map +1 -0
- package/dist/resolution/frameworks/go.d.ts +8 -0
- package/dist/resolution/frameworks/go.d.ts.map +1 -0
- package/dist/resolution/frameworks/go.js +184 -0
- package/dist/resolution/frameworks/go.js.map +1 -0
- package/dist/resolution/frameworks/goframe.d.ts +41 -0
- package/dist/resolution/frameworks/goframe.d.ts.map +1 -0
- package/dist/resolution/frameworks/goframe.js +112 -0
- package/dist/resolution/frameworks/goframe.js.map +1 -0
- package/dist/resolution/frameworks/index.d.ts +50 -0
- package/dist/resolution/frameworks/index.d.ts.map +1 -0
- package/dist/resolution/frameworks/index.js +175 -0
- package/dist/resolution/frameworks/index.js.map +1 -0
- package/dist/resolution/frameworks/java.d.ts +8 -0
- package/dist/resolution/frameworks/java.d.ts.map +1 -0
- package/dist/resolution/frameworks/java.js +517 -0
- package/dist/resolution/frameworks/java.js.map +1 -0
- package/dist/resolution/frameworks/laravel.d.ts +13 -0
- package/dist/resolution/frameworks/laravel.d.ts.map +1 -0
- package/dist/resolution/frameworks/laravel.js +257 -0
- package/dist/resolution/frameworks/laravel.js.map +1 -0
- package/dist/resolution/frameworks/nestjs.d.ts +26 -0
- package/dist/resolution/frameworks/nestjs.d.ts.map +1 -0
- package/dist/resolution/frameworks/nestjs.js +698 -0
- package/dist/resolution/frameworks/nestjs.js.map +1 -0
- package/dist/resolution/frameworks/play.d.ts +19 -0
- package/dist/resolution/frameworks/play.d.ts.map +1 -0
- package/dist/resolution/frameworks/play.js +111 -0
- package/dist/resolution/frameworks/play.js.map +1 -0
- package/dist/resolution/frameworks/python.d.ts +10 -0
- package/dist/resolution/frameworks/python.d.ts.map +1 -0
- package/dist/resolution/frameworks/python.js +400 -0
- package/dist/resolution/frameworks/python.js.map +1 -0
- package/dist/resolution/frameworks/react-native.d.ts +3 -0
- package/dist/resolution/frameworks/react-native.d.ts.map +1 -0
- package/dist/resolution/frameworks/react-native.js +410 -0
- package/dist/resolution/frameworks/react-native.js.map +1 -0
- package/dist/resolution/frameworks/react.d.ts +8 -0
- package/dist/resolution/frameworks/react.d.ts.map +1 -0
- package/dist/resolution/frameworks/react.js +334 -0
- package/dist/resolution/frameworks/react.js.map +1 -0
- package/dist/resolution/frameworks/ruby.d.ts +8 -0
- package/dist/resolution/frameworks/ruby.d.ts.map +1 -0
- package/dist/resolution/frameworks/ruby.js +302 -0
- package/dist/resolution/frameworks/ruby.js.map +1 -0
- package/dist/resolution/frameworks/rust.d.ts +8 -0
- package/dist/resolution/frameworks/rust.d.ts.map +1 -0
- package/dist/resolution/frameworks/rust.js +304 -0
- package/dist/resolution/frameworks/rust.js.map +1 -0
- package/dist/resolution/frameworks/svelte.d.ts +9 -0
- package/dist/resolution/frameworks/svelte.d.ts.map +1 -0
- package/dist/resolution/frameworks/svelte.js +253 -0
- package/dist/resolution/frameworks/svelte.js.map +1 -0
- package/dist/resolution/frameworks/swift-objc.d.ts +37 -0
- package/dist/resolution/frameworks/swift-objc.d.ts.map +1 -0
- package/dist/resolution/frameworks/swift-objc.js +252 -0
- package/dist/resolution/frameworks/swift-objc.js.map +1 -0
- package/dist/resolution/frameworks/swift.d.ts +10 -0
- package/dist/resolution/frameworks/swift.d.ts.map +1 -0
- package/dist/resolution/frameworks/swift.js +400 -0
- package/dist/resolution/frameworks/swift.js.map +1 -0
- package/dist/resolution/frameworks/terraform.d.ts +38 -0
- package/dist/resolution/frameworks/terraform.d.ts.map +1 -0
- package/dist/resolution/frameworks/terraform.js +277 -0
- package/dist/resolution/frameworks/terraform.js.map +1 -0
- package/dist/resolution/frameworks/vue.d.ts +9 -0
- package/dist/resolution/frameworks/vue.d.ts.map +1 -0
- package/dist/resolution/frameworks/vue.js +303 -0
- package/dist/resolution/frameworks/vue.js.map +1 -0
- package/dist/resolution/go-module.d.ts +26 -0
- package/dist/resolution/go-module.d.ts.map +1 -0
- package/dist/resolution/go-module.js +78 -0
- package/dist/resolution/go-module.js.map +1 -0
- package/dist/resolution/goframe-synthesizer.d.ts +29 -0
- package/dist/resolution/goframe-synthesizer.d.ts.map +1 -0
- package/dist/resolution/goframe-synthesizer.js +163 -0
- package/dist/resolution/goframe-synthesizer.js.map +1 -0
- package/dist/resolution/import-resolver.d.ts +84 -0
- package/dist/resolution/import-resolver.d.ts.map +1 -0
- package/dist/resolution/import-resolver.js +2134 -0
- package/dist/resolution/import-resolver.js.map +1 -0
- package/dist/resolution/index.d.ts +343 -0
- package/dist/resolution/index.d.ts.map +1 -0
- package/dist/resolution/index.js +2339 -0
- package/dist/resolution/index.js.map +1 -0
- package/dist/resolution/lru-cache.d.ts +24 -0
- package/dist/resolution/lru-cache.d.ts.map +1 -0
- package/dist/resolution/lru-cache.js +62 -0
- package/dist/resolution/lru-cache.js.map +1 -0
- package/dist/resolution/memory-budget.d.ts +48 -0
- package/dist/resolution/memory-budget.d.ts.map +1 -0
- package/dist/resolution/memory-budget.js +162 -0
- package/dist/resolution/memory-budget.js.map +1 -0
- package/dist/resolution/name-matcher.d.ts +123 -0
- package/dist/resolution/name-matcher.d.ts.map +1 -0
- package/dist/resolution/name-matcher.js +2134 -0
- package/dist/resolution/name-matcher.js.map +1 -0
- package/dist/resolution/path-aliases.d.ts +68 -0
- package/dist/resolution/path-aliases.d.ts.map +1 -0
- package/dist/resolution/path-aliases.js +238 -0
- package/dist/resolution/path-aliases.js.map +1 -0
- package/dist/resolution/resolver-pool.d.ts +106 -0
- package/dist/resolution/resolver-pool.d.ts.map +1 -0
- package/dist/resolution/resolver-pool.js +344 -0
- package/dist/resolution/resolver-pool.js.map +1 -0
- package/dist/resolution/resolver-worker.d.ts +17 -0
- package/dist/resolution/resolver-worker.d.ts.map +1 -0
- package/dist/resolution/resolver-worker.js +141 -0
- package/dist/resolution/resolver-worker.js.map +1 -0
- package/dist/resolution/strip-comments.d.ts +27 -0
- package/dist/resolution/strip-comments.d.ts.map +1 -0
- package/dist/resolution/strip-comments.js +492 -0
- package/dist/resolution/strip-comments.js.map +1 -0
- package/dist/resolution/swift-objc-bridge.d.ts +134 -0
- package/dist/resolution/swift-objc-bridge.d.ts.map +1 -0
- package/dist/resolution/swift-objc-bridge.js +256 -0
- package/dist/resolution/swift-objc-bridge.js.map +1 -0
- package/dist/resolution/types.d.ts +265 -0
- package/dist/resolution/types.d.ts.map +1 -0
- package/dist/resolution/types.js +8 -0
- package/dist/resolution/types.js.map +1 -0
- package/dist/resolution/workspace-packages.d.ts +58 -0
- package/dist/resolution/workspace-packages.d.ts.map +1 -0
- package/dist/resolution/workspace-packages.js +346 -0
- package/dist/resolution/workspace-packages.js.map +1 -0
- package/dist/search/identifier-segments.d.ts +60 -0
- package/dist/search/identifier-segments.d.ts.map +1 -0
- package/dist/search/identifier-segments.js +176 -0
- package/dist/search/identifier-segments.js.map +1 -0
- package/dist/search/query-parser.d.ts +57 -0
- package/dist/search/query-parser.d.ts.map +1 -0
- package/dist/search/query-parser.js +177 -0
- package/dist/search/query-parser.js.map +1 -0
- package/dist/search/query-utils.d.ts +87 -0
- package/dist/search/query-utils.d.ts.map +1 -0
- package/dist/search/query-utils.js +450 -0
- package/dist/search/query-utils.js.map +1 -0
- package/dist/sync/git-hooks.d.ts +45 -0
- package/dist/sync/git-hooks.d.ts.map +1 -0
- package/dist/sync/git-hooks.js +227 -0
- package/dist/sync/git-hooks.js.map +1 -0
- package/dist/sync/index.d.ts +19 -0
- package/dist/sync/index.d.ts.map +1 -0
- package/dist/sync/index.js +35 -0
- package/dist/sync/index.js.map +1 -0
- package/dist/sync/watch-policy.d.ts +48 -0
- package/dist/sync/watch-policy.d.ts.map +1 -0
- package/dist/sync/watch-policy.js +124 -0
- package/dist/sync/watch-policy.js.map +1 -0
- package/dist/sync/watcher.d.ts +379 -0
- package/dist/sync/watcher.d.ts.map +1 -0
- package/dist/sync/watcher.js +921 -0
- package/dist/sync/watcher.js.map +1 -0
- package/dist/sync/worktree.d.ts +63 -0
- package/dist/sync/worktree.d.ts.map +1 -0
- package/dist/sync/worktree.js +182 -0
- package/dist/sync/worktree.js.map +1 -0
- package/dist/telemetry/index.d.ts +143 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +541 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/types.d.ts +465 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +117 -0
- package/dist/types.js.map +1 -0
- package/dist/ui/color.d.ts +21 -0
- package/dist/ui/color.d.ts.map +1 -0
- package/dist/ui/color.js +42 -0
- package/dist/ui/color.js.map +1 -0
- package/dist/ui/glyphs.d.ts +67 -0
- package/dist/ui/glyphs.d.ts.map +1 -0
- package/dist/ui/glyphs.js +125 -0
- package/dist/ui/glyphs.js.map +1 -0
- package/dist/ui/shimmer-progress.d.ts +11 -0
- package/dist/ui/shimmer-progress.d.ts.map +1 -0
- package/dist/ui/shimmer-progress.js +164 -0
- package/dist/ui/shimmer-progress.js.map +1 -0
- package/dist/ui/shimmer-worker.d.ts +2 -0
- package/dist/ui/shimmer-worker.d.ts.map +1 -0
- package/dist/ui/shimmer-worker.js +126 -0
- package/dist/ui/shimmer-worker.js.map +1 -0
- package/dist/ui/types.d.ts +15 -0
- package/dist/ui/types.d.ts.map +1 -0
- package/dist/ui/types.js +3 -0
- package/dist/ui/types.js.map +1 -0
- package/dist/upgrade/index.d.ts +171 -0
- package/dist/upgrade/index.d.ts.map +1 -0
- package/dist/upgrade/index.js +659 -0
- package/dist/upgrade/index.js.map +1 -0
- package/dist/upgrade/remove-binary.d.ts +87 -0
- package/dist/upgrade/remove-binary.d.ts.map +1 -0
- package/dist/upgrade/remove-binary.js +289 -0
- package/dist/upgrade/remove-binary.js.map +1 -0
- package/dist/upgrade/update-check.d.ts +92 -0
- package/dist/upgrade/update-check.d.ts.map +1 -0
- package/dist/upgrade/update-check.js +258 -0
- package/dist/upgrade/update-check.js.map +1 -0
- package/dist/utils.d.ts +224 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +583 -0
- package/dist/utils.js.map +1 -0
- package/package.json +61 -0
- package/scripts/add-lang/bench.sh +60 -0
- package/scripts/add-lang/check-grammar.mjs +75 -0
- package/scripts/add-lang/dump-ast.mjs +103 -0
- package/scripts/add-lang/verify-extraction.mjs +70 -0
- package/scripts/agent-eval/ab-adoption.sh +91 -0
- package/scripts/agent-eval/ab-hook.sh +86 -0
- package/scripts/agent-eval/ab-impl.sh +78 -0
- package/scripts/agent-eval/ab-new-vs-baseline.sh +161 -0
- package/scripts/agent-eval/ab-sufficiency.sh +78 -0
- package/scripts/agent-eval/allocation-fixtures.json +344 -0
- package/scripts/agent-eval/arms-F.sh +21 -0
- package/scripts/agent-eval/arms-matrix.sh +37 -0
- package/scripts/agent-eval/audit.sh +68 -0
- package/scripts/agent-eval/bench-readme.sh +48 -0
- package/scripts/agent-eval/bench-why-repo.sh +22 -0
- package/scripts/agent-eval/block-read-hook.sh +19 -0
- package/scripts/agent-eval/compare-arms.mjs +209 -0
- package/scripts/agent-eval/diff-index-drift.mjs +102 -0
- package/scripts/agent-eval/hook-settings.json +15 -0
- package/scripts/agent-eval/itrun.sh +120 -0
- package/scripts/agent-eval/no-cli-shim.sh +96 -0
- package/scripts/agent-eval/offload-eval-3arm.sh +72 -0
- package/scripts/agent-eval/offload-eval-cost.mjs +133 -0
- package/scripts/agent-eval/offload-eval-effort.mjs +108 -0
- package/scripts/agent-eval/offload-eval-frontload-matrix.sh +25 -0
- package/scripts/agent-eval/offload-eval-frontload.sh +47 -0
- package/scripts/agent-eval/offload-eval-ground-truth.json +18 -0
- package/scripts/agent-eval/offload-eval-hook.mjs +84 -0
- package/scripts/agent-eval/offload-eval-judge.mjs +103 -0
- package/scripts/agent-eval/offload-eval-matrix.sh +20 -0
- package/scripts/agent-eval/offload-eval-metrics.mjs +94 -0
- package/scripts/agent-eval/offload-eval-refs1.sh +50 -0
- package/scripts/agent-eval/offload-eval-setup.sh +24 -0
- package/scripts/agent-eval/offload-eval-styles.sh +72 -0
- package/scripts/agent-eval/offload-eval-summarize.mjs +68 -0
- package/scripts/agent-eval/offload-eval.md +76 -0
- package/scripts/agent-eval/parse-arms.mjs +116 -0
- package/scripts/agent-eval/parse-bench-readme.mjs +238 -0
- package/scripts/agent-eval/parse-run.mjs +1401 -0
- package/scripts/agent-eval/parse-session.mjs +130 -0
- package/scripts/agent-eval/probe-allocation.mjs +335 -0
- package/scripts/agent-eval/probe-context.mjs +21 -0
- package/scripts/agent-eval/probe-decl-only.mjs +198 -0
- package/scripts/agent-eval/probe-explore.mjs +40 -0
- package/scripts/agent-eval/probe-factory-closure.mjs +147 -0
- package/scripts/agent-eval/probe-file-spend.mjs +195 -0
- package/scripts/agent-eval/probe-named-symbol.mjs +163 -0
- package/scripts/agent-eval/probe-node.mjs +20 -0
- package/scripts/agent-eval/probe-suite-envelope.mjs +124 -0
- package/scripts/agent-eval/probe-sweep.mjs +119 -0
- package/scripts/agent-eval/probe-trace.mjs +20 -0
- package/scripts/agent-eval/redirect-read-hook.sh +38 -0
- package/scripts/agent-eval/repro-concurrent-explore.mjs +119 -0
- package/scripts/agent-eval/repro-daemon-clients.mjs +125 -0
- package/scripts/agent-eval/run-agent.sh +34 -0
- package/scripts/agent-eval/run-all.sh +149 -0
- package/scripts/agent-eval/run-arms.sh +56 -0
- package/scripts/agent-eval/seq-matrix.mjs +137 -0
- package/scripts/build-bundle.sh +145 -0
- package/scripts/build-kernel.sh +87 -0
- package/scripts/dump-graph.mjs +57 -0
- package/scripts/extract-release-notes.mjs +130 -0
- package/scripts/kernel-parity.mjs +283 -0
- package/scripts/local-install.sh +41 -0
- package/scripts/npm-sdk.js +75 -0
- package/scripts/npm-shim.js +279 -0
- package/scripts/pack-npm.sh +123 -0
- package/scripts/prepare-release.mjs +270 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-ref.js","sourceRoot":"","sources":["../../src/extraction/function-ref.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;;;AA+XH,wDAuGC;AAneD,+DAAqE;AAsFrE,yFAAyF;AACzF,MAAM,aAAa,GAAG,IAAI,GAAG,CAAC;IAC5B,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C,IAAI,CAAC;QAC7B,CAAC;QACD,IAAI,GAAG,CAAC,IAAI,KAAK,wBAAwB,IAAI,GAAG,CAAC,IAAI,KAAK,wBAAwB,EAAE,CAAC;YACnF,OAAO,IAAI,CAAC,CAAC,gCAAgC;QAC/C,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,kFAAkF;AAClF,SAAS,iBAAiB,CAAC,IAAgB;IACzC,IAAI,GAAG,GAAsB,IAAI,CAAC,MAAM,CAAC;IACzC,KAAK,IAAI,IAAI,GAAG,CAAC,EAAE,GAAG,IAAI,IAAI,GAAG,CAAC,EAAE,IAAI,EAAE,EAAE,GAAG,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC;QAC7D,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM;YAAE,OAAO,GAAG,CAAC;IACtC,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated-file detection for symbol-disambiguation down-ranking.
|
|
3
|
+
*
|
|
4
|
+
* When a query like "Send" matches 17 symbols across protobuf scaffolding,
|
|
5
|
+
* test mocks, and the hand-written implementation, the FTS ranker often
|
|
6
|
+
* surfaces the generated stubs first because their names are identical
|
|
7
|
+
* to the implementation's name (validated empirically on cosmos-sdk —
|
|
8
|
+
* see project_go_multi_module_audit memory). Generated stubs frequently
|
|
9
|
+
* have no body to trace from, so the agent ends up reading source anyway.
|
|
10
|
+
*
|
|
11
|
+
* This is a relevance hint consulted at disambiguation time (findSymbol /
|
|
12
|
+
* findAllSymbols / explore ranking / codegraph_search formatting), NOT a
|
|
13
|
+
* hard filter — generated nodes are still in the graph and remain
|
|
14
|
+
* reachable; they just rank LAST when there's a real implementation with
|
|
15
|
+
* the same name.
|
|
16
|
+
*
|
|
17
|
+
* Two signals, deliberately separate:
|
|
18
|
+
*
|
|
19
|
+
* 1. {@link isGeneratedFile} — PATH only, pure and synchronous. Most
|
|
20
|
+
* generated files follow the `<basename>.<tool>.<ext>` convention
|
|
21
|
+
* (`.pb.go`, `_grpc.pb.go`, `.g.dart`, `_pb2.py`). Free to call
|
|
22
|
+
* anywhere, including in a sort comparator.
|
|
23
|
+
*
|
|
24
|
+
* 2. {@link hasGeneratedHeader} — CONTENT banner in the file's head. Go's
|
|
25
|
+
* own convention is a content marker, not a filename one, so a
|
|
26
|
+
* generated `payroll.go` sitting beside hand-written use-cases is
|
|
27
|
+
* invisible to (1) — that is issue #1500. Evaluated ONCE at index time
|
|
28
|
+
* (the file's content is already in memory for parsing) and persisted
|
|
29
|
+
* on the file record as `files.generated`; readers get it from the DB
|
|
30
|
+
* rather than re-reading headers per request. See
|
|
31
|
+
* GENERATED_CONTENT_PATTERNS below for the banners recognized.
|
|
32
|
+
*
|
|
33
|
+
* Consumers that have a bounded candidate list should use the DB-backed
|
|
34
|
+
* union (`QueryBuilder.getGeneratedPathsAmong` /
|
|
35
|
+
* `CodeGraph.getGeneratedFilePaths`) so both signals apply; the path-only
|
|
36
|
+
* check remains the fallback for callers with no database in hand and for
|
|
37
|
+
* indexes built before the flag existed.
|
|
38
|
+
*
|
|
39
|
+
* NOTE for future editors: the banner literals quoted in this file sit
|
|
40
|
+
* BELOW the header window this detector scans, so the module does not
|
|
41
|
+
* classify itself. `generated-detection.test.ts` pins that — if you move
|
|
42
|
+
* the pattern table upward, the test fails rather than the repo silently
|
|
43
|
+
* demoting its own file.
|
|
44
|
+
*/
|
|
45
|
+
/**
|
|
46
|
+
* Whether `filePath` looks like a tool-generated source file based on
|
|
47
|
+
* its filename. Path-only — does not read content. The result is a
|
|
48
|
+
* relevance hint for disambiguation, not a hard claim.
|
|
49
|
+
*/
|
|
50
|
+
export declare function isGeneratedFile(filePath: string): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the head of `content` carries a recognized machine-generation
|
|
53
|
+
* banner. Bounded to {@link HEADER_SCAN_CHARS} / {@link HEADER_SCAN_LINES},
|
|
54
|
+
* and the marker must sit on a comment line — a generator's own source, which
|
|
55
|
+
* holds the banner as a string constant in its body, is not flagged.
|
|
56
|
+
*
|
|
57
|
+
* Called once per file during extraction (content is already in memory), NOT
|
|
58
|
+
* per query: the verdict is persisted on the file record.
|
|
59
|
+
*/
|
|
60
|
+
export declare function hasGeneratedHeader(content: string): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The union signal: path convention OR content banner. This is what the
|
|
63
|
+
* indexer persists to `files.generated`.
|
|
64
|
+
*/
|
|
65
|
+
export declare function detectGeneratedFile(filePath: string, content: string): boolean;
|
|
66
|
+
//# sourceMappingURL=generated-detection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-detection.d.ts","sourceRoot":"","sources":["../../src/extraction/generated-detection.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAmDH;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzD;AAgGD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAsC3D;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE9E"}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Generated-file detection for symbol-disambiguation down-ranking.
|
|
4
|
+
*
|
|
5
|
+
* When a query like "Send" matches 17 symbols across protobuf scaffolding,
|
|
6
|
+
* test mocks, and the hand-written implementation, the FTS ranker often
|
|
7
|
+
* surfaces the generated stubs first because their names are identical
|
|
8
|
+
* to the implementation's name (validated empirically on cosmos-sdk —
|
|
9
|
+
* see project_go_multi_module_audit memory). Generated stubs frequently
|
|
10
|
+
* have no body to trace from, so the agent ends up reading source anyway.
|
|
11
|
+
*
|
|
12
|
+
* This is a relevance hint consulted at disambiguation time (findSymbol /
|
|
13
|
+
* findAllSymbols / explore ranking / codegraph_search formatting), NOT a
|
|
14
|
+
* hard filter — generated nodes are still in the graph and remain
|
|
15
|
+
* reachable; they just rank LAST when there's a real implementation with
|
|
16
|
+
* the same name.
|
|
17
|
+
*
|
|
18
|
+
* Two signals, deliberately separate:
|
|
19
|
+
*
|
|
20
|
+
* 1. {@link isGeneratedFile} — PATH only, pure and synchronous. Most
|
|
21
|
+
* generated files follow the `<basename>.<tool>.<ext>` convention
|
|
22
|
+
* (`.pb.go`, `_grpc.pb.go`, `.g.dart`, `_pb2.py`). Free to call
|
|
23
|
+
* anywhere, including in a sort comparator.
|
|
24
|
+
*
|
|
25
|
+
* 2. {@link hasGeneratedHeader} — CONTENT banner in the file's head. Go's
|
|
26
|
+
* own convention is a content marker, not a filename one, so a
|
|
27
|
+
* generated `payroll.go` sitting beside hand-written use-cases is
|
|
28
|
+
* invisible to (1) — that is issue #1500. Evaluated ONCE at index time
|
|
29
|
+
* (the file's content is already in memory for parsing) and persisted
|
|
30
|
+
* on the file record as `files.generated`; readers get it from the DB
|
|
31
|
+
* rather than re-reading headers per request. See
|
|
32
|
+
* GENERATED_CONTENT_PATTERNS below for the banners recognized.
|
|
33
|
+
*
|
|
34
|
+
* Consumers that have a bounded candidate list should use the DB-backed
|
|
35
|
+
* union (`QueryBuilder.getGeneratedPathsAmong` /
|
|
36
|
+
* `CodeGraph.getGeneratedFilePaths`) so both signals apply; the path-only
|
|
37
|
+
* check remains the fallback for callers with no database in hand and for
|
|
38
|
+
* indexes built before the flag existed.
|
|
39
|
+
*
|
|
40
|
+
* NOTE for future editors: the banner literals quoted in this file sit
|
|
41
|
+
* BELOW the header window this detector scans, so the module does not
|
|
42
|
+
* classify itself. `generated-detection.test.ts` pins that — if you move
|
|
43
|
+
* the pattern table upward, the test fails rather than the repo silently
|
|
44
|
+
* demoting its own file.
|
|
45
|
+
*/
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.isGeneratedFile = isGeneratedFile;
|
|
48
|
+
exports.hasGeneratedHeader = hasGeneratedHeader;
|
|
49
|
+
exports.detectGeneratedFile = detectGeneratedFile;
|
|
50
|
+
const GENERATED_PATTERNS = [
|
|
51
|
+
// Go — protobuf / gRPC / pulsar
|
|
52
|
+
/\.pb\.go$/,
|
|
53
|
+
/\.pulsar\.go$/,
|
|
54
|
+
/_grpc\.pb\.go$/,
|
|
55
|
+
// Go — mockgen output. Default emits `mock_<src>.go`; many projects
|
|
56
|
+
// (cosmos-sdk uses `expected_*_mocks.go`) rename to `*_mock.go` /
|
|
57
|
+
// `*_mocks.go`. Matching either suffix catches both conventions
|
|
58
|
+
// without false-positive risk on hand-written sources.
|
|
59
|
+
/_mock\.go$/,
|
|
60
|
+
/_mocks\.go$/,
|
|
61
|
+
/^mock_[^/]+\.go$/,
|
|
62
|
+
// TypeScript / JavaScript — common codegen suffixes (Apollo / GraphQL
|
|
63
|
+
// codegen, Prisma, Hasura, ts-proto, gRPC-web, swagger-codegen).
|
|
64
|
+
/\.generated\.[jt]sx?$/,
|
|
65
|
+
/\.gen\.[jt]sx?$/,
|
|
66
|
+
/\.pb\.[jt]s$/,
|
|
67
|
+
/_pb\.[jt]s$/,
|
|
68
|
+
/_grpc_pb\.[jt]s$/,
|
|
69
|
+
// Minified bundles vendored into a repo (docs sites, examples). Their
|
|
70
|
+
// single-letter symbols make name-based edges pure noise.
|
|
71
|
+
/\.min\.m?js$/,
|
|
72
|
+
// Python — protobuf / gRPC / openapi-codegen
|
|
73
|
+
/_pb2(_grpc)?\.py$/,
|
|
74
|
+
/_pb2\.pyi$/,
|
|
75
|
+
// C++ — protobuf
|
|
76
|
+
/\.pb\.(cc|h)$/,
|
|
77
|
+
// C# — protobuf / gRPC (protoc-gen-csharp puts output under obj/ but
|
|
78
|
+
// many projects also commit *.g.cs and *Grpc.cs siblings)
|
|
79
|
+
/\.g\.cs$/,
|
|
80
|
+
/Grpc\.cs$/,
|
|
81
|
+
// Java — protobuf / gRPC: protoc-gen-java emits `*OuterClass.java`,
|
|
82
|
+
// protoc-gen-grpc-java emits `*Grpc.java`. The XxxImplBase abstract
|
|
83
|
+
// class lives inside Xxx*Grpc.java.
|
|
84
|
+
/OuterClass\.java$/,
|
|
85
|
+
/Grpc\.java$/,
|
|
86
|
+
// Swift — protobuf
|
|
87
|
+
/\.pb\.swift$/,
|
|
88
|
+
// Dart — build_runner / freezed / json_serializable / chopper
|
|
89
|
+
/\.g\.dart$/,
|
|
90
|
+
/\.freezed\.dart$/,
|
|
91
|
+
/\.pb\.dart$/,
|
|
92
|
+
/\.pbgrpc\.dart$/,
|
|
93
|
+
/\.chopper\.dart$/,
|
|
94
|
+
// Rust — common build.rs OUT_DIR outputs are usually outside the source
|
|
95
|
+
// tree, but in-tree generated files often use `*.generated.rs`.
|
|
96
|
+
/\.generated\.rs$/,
|
|
97
|
+
];
|
|
98
|
+
/**
|
|
99
|
+
* Whether `filePath` looks like a tool-generated source file based on
|
|
100
|
+
* its filename. Path-only — does not read content. The result is a
|
|
101
|
+
* relevance hint for disambiguation, not a hard claim.
|
|
102
|
+
*/
|
|
103
|
+
function isGeneratedFile(filePath) {
|
|
104
|
+
return GENERATED_PATTERNS.some((p) => p.test(filePath));
|
|
105
|
+
}
|
|
106
|
+
// =============================================================================
|
|
107
|
+
// Content-header detection (#1500)
|
|
108
|
+
// =============================================================================
|
|
109
|
+
/**
|
|
110
|
+
* How much of a file's head to consider "the header". Generous enough for a
|
|
111
|
+
* build-tag block + an Apache-2.0 license preamble (~15 lines) sitting above
|
|
112
|
+
* the banner, tight enough that a `"// Code generated ... DO NOT EDIT."`
|
|
113
|
+
* string constant in the *body* of a code generator's own source can't
|
|
114
|
+
* masquerade as a banner.
|
|
115
|
+
*/
|
|
116
|
+
const HEADER_SCAN_CHARS = 8192;
|
|
117
|
+
const HEADER_SCAN_LINES = 60;
|
|
118
|
+
/**
|
|
119
|
+
* Cheap pre-filter run on the header of EVERY indexed file. Every marker
|
|
120
|
+
* below contains the stem "generat", so one unanchored scan rejects ~all
|
|
121
|
+
* hand-written source before any line splitting happens — this is what keeps
|
|
122
|
+
* content detection off the index-time cost budget.
|
|
123
|
+
*/
|
|
124
|
+
const GENERATED_STEM = /generat/i;
|
|
125
|
+
/**
|
|
126
|
+
* Line-comment leaders across the languages we index. A banner must sit on a
|
|
127
|
+
* comment line (or inside an open block comment, tracked below): generators
|
|
128
|
+
* always emit theirs as a comment, and requiring it rules out string literals
|
|
129
|
+
* and identifiers that merely contain the words.
|
|
130
|
+
*
|
|
131
|
+
* `--` covers SQL/Haskell/Lua, `%` LaTeX/Erlang/Prolog, `;` Lisp/asm/ini,
|
|
132
|
+
* `'` VB, `!` Fortran, `*` a continuation line inside a `/* … *\/` block.
|
|
133
|
+
*/
|
|
134
|
+
const COMMENT_LEADER = /^\s*(?:\/\/|\/\*+|\*+\/?|#+|--+|<!--|%+|;+|'|!|\(\*|\{-|"""|'''|=begin|<#|@rem\b|rem\b)/i;
|
|
135
|
+
/**
|
|
136
|
+
* Openers/closers for block comments, so a banner on an unprefixed line
|
|
137
|
+
* inside `/* … *\/` (or `<!-- … -->`, or a Python module docstring) still
|
|
138
|
+
* counts. Deliberately naive — it only runs over a file's first few dozen
|
|
139
|
+
* lines, where a `/*` inside a string literal is vanishingly rare, and the
|
|
140
|
+
* worst case of a mis-tracked state is a ranking hint, not a wrong answer.
|
|
141
|
+
*/
|
|
142
|
+
const BLOCK_DELIMS = [
|
|
143
|
+
{ open: '/*', close: '*/' },
|
|
144
|
+
{ open: '<!--', close: '-->' },
|
|
145
|
+
{ open: '"""', close: '"""' },
|
|
146
|
+
{ open: "'''", close: "'''" },
|
|
147
|
+
{ open: '=begin', close: '=end' },
|
|
148
|
+
{ open: '<#', close: '#>' },
|
|
149
|
+
];
|
|
150
|
+
/**
|
|
151
|
+
* The banners themselves. Each is a real convention emitted by a widely-used
|
|
152
|
+
* generator; the list is precision-first, because a false positive silently
|
|
153
|
+
* demotes hand-written code in every ranking path.
|
|
154
|
+
*/
|
|
155
|
+
const GENERATED_CONTENT_PATTERNS = [
|
|
156
|
+
// Go's codified convention — `^// Code generated .* DO NOT EDIT\.$`, defined
|
|
157
|
+
// by `go generate` and honored by gofmt, golangci-lint and GitHub linguist.
|
|
158
|
+
// Emitted verbatim by protoc-gen-go, mockgen, sqlc, ent, wire, stringer, and
|
|
159
|
+
// by in-house generators like the FKIT CRUD in #1500 — where the file is
|
|
160
|
+
// named `payroll.go` and nothing in the PATH gives it away.
|
|
161
|
+
/\bcode generated\b.{0,200}?\bdo not edit\b/i,
|
|
162
|
+
// protoc's Java/C#/Python banner ("Generated by the protocol buffer
|
|
163
|
+
// compiler. DO NOT EDIT!"), ANTLR, Dagger, FlatBuffers, rust-bindgen,
|
|
164
|
+
// Xcode asset catalogs, Bazel rules.
|
|
165
|
+
/\b(?:automatically |auto[- ]?)?generated (?:by|from|with)\b.{0,200}?\bdo not (?:edit|modify|change)\b/i,
|
|
166
|
+
// The `@generated` marker: the JS/TS ecosystem's convention (Relay, GraphQL
|
|
167
|
+
// codegen, protobuf-es/Buf, Meta's `@generated SignedSource<<…>>`), also
|
|
168
|
+
// what linguist and `git diff` collapse on. Guarded against `foo@generated`
|
|
169
|
+
// and `@@generated` so only a standalone tag matches.
|
|
170
|
+
/(?:^|[^\p{L}\p{N}_@])@generated\b/u,
|
|
171
|
+
// .NET's `<auto-generated>` / `<auto-generated />` doc tag: Roslyn, the
|
|
172
|
+
// WinForms designer, T4 templates, protoc-gen-csharp, EF scaffolding.
|
|
173
|
+
/<auto-?generated\s*\/?>/i,
|
|
174
|
+
// swagger-codegen / OpenAPI Generator ("NOTE: This class is auto generated
|
|
175
|
+
// by OpenAPI Generator"), Thrift ("Autogenerated by Thrift Compiler"),
|
|
176
|
+
// FlatBuffers ("automatically generated by the FlatBuffers compiler").
|
|
177
|
+
// "by" is required — bare "automatically generated" appears in hand-written
|
|
178
|
+
// prose ("the table below is automatically generated at runtime").
|
|
179
|
+
/\b(?:automatically generated|auto[- ]?generated|autogenerated) by\b/i,
|
|
180
|
+
// The "run this command to regenerate" shape: Cloudflare Wrangler
|
|
181
|
+
// ("Generated by Wrangler by running `wrangler types` (hash: …)"), and the
|
|
182
|
+
// same phrasing used by other CLI-driven emitters. Bare "generated by" is
|
|
183
|
+
// deliberately NOT enough — it is ordinary prose — so the reproduction
|
|
184
|
+
// instruction is the discriminator: the banner must name a tool AND then
|
|
185
|
+
// say `by running`, i.e. TWO separate "by" clauses. That rules out
|
|
186
|
+
// "the report is generated by running the nightly job", which has only one.
|
|
187
|
+
/\bgenerated by\s+\S.{0,80}?\bby running\b/i,
|
|
188
|
+
// Self-declaring in-house banners that name no tool.
|
|
189
|
+
/\bthis (?:file|class|code|module) (?:is|was) (?:auto[- ]?)?generated\b/i,
|
|
190
|
+
// The reverse ordering: "DO NOT EDIT — this is a generated file".
|
|
191
|
+
/\bdo not (?:edit|modify)\b.{0,120}?\b(?:auto[- ]?generated|generated file|generated code)\b/i,
|
|
192
|
+
];
|
|
193
|
+
/**
|
|
194
|
+
* Whether the head of `content` carries a recognized machine-generation
|
|
195
|
+
* banner. Bounded to {@link HEADER_SCAN_CHARS} / {@link HEADER_SCAN_LINES},
|
|
196
|
+
* and the marker must sit on a comment line — a generator's own source, which
|
|
197
|
+
* holds the banner as a string constant in its body, is not flagged.
|
|
198
|
+
*
|
|
199
|
+
* Called once per file during extraction (content is already in memory), NOT
|
|
200
|
+
* per query: the verdict is persisted on the file record.
|
|
201
|
+
*/
|
|
202
|
+
function hasGeneratedHeader(content) {
|
|
203
|
+
if (!content)
|
|
204
|
+
return false;
|
|
205
|
+
const head = content.length > HEADER_SCAN_CHARS ? content.slice(0, HEADER_SCAN_CHARS) : content;
|
|
206
|
+
// Fast reject for ~every hand-written file: no line splitting, no allocation
|
|
207
|
+
// (V8 keeps `head` as a sliced view of `content`).
|
|
208
|
+
if (!GENERATED_STEM.test(head))
|
|
209
|
+
return false;
|
|
210
|
+
const lines = head.split('\n');
|
|
211
|
+
const limit = Math.min(lines.length, HEADER_SCAN_LINES);
|
|
212
|
+
let openBlock = null;
|
|
213
|
+
for (let i = 0; i < limit; i++) {
|
|
214
|
+
const line = lines[i];
|
|
215
|
+
const inBlock = openBlock !== null;
|
|
216
|
+
if (inBlock || COMMENT_LEADER.test(line)) {
|
|
217
|
+
for (const pattern of GENERATED_CONTENT_PATTERNS) {
|
|
218
|
+
if (pattern.test(line))
|
|
219
|
+
return true;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
// Advance the block-comment state AFTER testing, so the opening line of a
|
|
223
|
+
// `/* Code generated … */` block is itself matched by the leader rule.
|
|
224
|
+
if (openBlock) {
|
|
225
|
+
if (line.includes(openBlock.close))
|
|
226
|
+
openBlock = null;
|
|
227
|
+
continue;
|
|
228
|
+
}
|
|
229
|
+
for (const delim of BLOCK_DELIMS) {
|
|
230
|
+
const at = line.indexOf(delim.open);
|
|
231
|
+
if (at < 0)
|
|
232
|
+
continue;
|
|
233
|
+
// Same-line close (`/* … */`, a one-line docstring) leaves no open block.
|
|
234
|
+
if (line.indexOf(delim.close, at + delim.open.length) < 0)
|
|
235
|
+
openBlock = delim;
|
|
236
|
+
break;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return false;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* The union signal: path convention OR content banner. This is what the
|
|
243
|
+
* indexer persists to `files.generated`.
|
|
244
|
+
*/
|
|
245
|
+
function detectGeneratedFile(filePath, content) {
|
|
246
|
+
return isGeneratedFile(filePath) || hasGeneratedHeader(content);
|
|
247
|
+
}
|
|
248
|
+
//# sourceMappingURL=generated-detection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-detection.js","sourceRoot":"","sources":["../../src/extraction/generated-detection.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;;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f,CAAC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,QAAgB,EAAE,OAAe;IACnE,OAAO,eAAe,CAAC,QAAQ,CAAC,IAAI,kBAAkB,CAAC,OAAO,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Grammar Loading and Caching
|
|
3
|
+
*
|
|
4
|
+
* Uses web-tree-sitter (WASM) for universal cross-platform support.
|
|
5
|
+
* Grammars are loaded lazily — only languages actually present in the project
|
|
6
|
+
* are compiled, keeping V8 WASM memory pressure low on large codebases.
|
|
7
|
+
*/
|
|
8
|
+
import { Parser } from 'web-tree-sitter';
|
|
9
|
+
import { Language } from '../types';
|
|
10
|
+
export type GrammarLanguage = Exclude<Language, 'svelte' | 'vue' | 'astro' | 'liquid' | 'razor' | 'yaml' | 'twig' | 'xml' | 'properties' | 'unknown'>;
|
|
11
|
+
/**
|
|
12
|
+
* File extension to Language mapping
|
|
13
|
+
*/
|
|
14
|
+
export declare const EXTENSION_MAP: Record<string, Language>;
|
|
15
|
+
/**
|
|
16
|
+
* Whether a file is one CodeGraph can parse, based purely on its extension.
|
|
17
|
+
* This is the single source of truth for "should we index this file" — derived
|
|
18
|
+
* from EXTENSION_MAP so parser support and indexing selection never drift.
|
|
19
|
+
*
|
|
20
|
+
* `overrides` is the project's validated custom extension → language map (from
|
|
21
|
+
* `codegraph.json`); when present its extensions count as indexable in addition
|
|
22
|
+
* to the built-ins. Omitting it is byte-identical to the zero-config behavior.
|
|
23
|
+
*/
|
|
24
|
+
export declare function isSourceFile(filePath: string, overrides?: Record<string, Language>): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Shopify OS 2.0 JSON template (`templates/*.json`) or section group
|
|
27
|
+
* (`sections/*.json`) — these reference sections by `"type"`, so the Liquid
|
|
28
|
+
* extractor links them. (config/ + locales/ JSON have no section refs.)
|
|
29
|
+
*/
|
|
30
|
+
export declare function isShopifyLiquidJson(filePath: string): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* OTP application resource file: `<app>.app.src` (checked into every rebar3/
|
|
33
|
+
* erlang.mk app) or its compiled `<app>.app`. Erlang TERMS, not forms — the
|
|
34
|
+
* grammar parses them as top-level expressions, and the Erlang extractor's
|
|
35
|
+
* application-tuple handler turns `{mod, {Mod, _}}` and `{applications, […]}`
|
|
36
|
+
* into entry-module and dependency edges. Routed by full suffix because the
|
|
37
|
+
* last-dot extension (`.src`) is far too generic for EXTENSION_MAP.
|
|
38
|
+
*/
|
|
39
|
+
export declare function isErlangAppFile(filePath: string): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Play Framework routes file: the extensionless `conf/routes` (and included
|
|
42
|
+
* `conf/*.routes`). No grammar — route extraction is done by the Play framework
|
|
43
|
+
* resolver, so it's processed through the no-grammar (`yaml`-style) path.
|
|
44
|
+
*/
|
|
45
|
+
export declare function isPlayRoutesFile(filePath: string): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Initialize the tree-sitter WASM runtime. Must be called before loading grammars.
|
|
48
|
+
* Does NOT load any grammar WASM files — use loadGrammarsForLanguages() for that.
|
|
49
|
+
* Idempotent — safe to call multiple times.
|
|
50
|
+
*/
|
|
51
|
+
export declare function initGrammars(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Pre-read the grammar WASM bytes for an index set, keyed by language. The
|
|
54
|
+
* orchestrator reads each grammar ONCE and hands the bytes to every parse
|
|
55
|
+
* worker via its `load-grammars` message, so worker spawns/respawns load
|
|
56
|
+
* grammars from memory instead of re-reading them from disk — on slow storage
|
|
57
|
+
* (HDD, issue #1231) each respawn's grammar re-read otherwise amplifies the
|
|
58
|
+
* I/O contention that caused the respawn. Best-effort: a language whose WASM
|
|
59
|
+
* can't be read here is simply omitted, and the worker falls back to its own
|
|
60
|
+
* disk load (which surfaces the real error/warning path).
|
|
61
|
+
*/
|
|
62
|
+
export declare function readGrammarWasmBytes(languages: Language[]): Promise<Record<string, Uint8Array>>;
|
|
63
|
+
/**
|
|
64
|
+
* Load grammar WASM files for specific languages only.
|
|
65
|
+
* Skips languages that are already loaded or have no WASM grammar.
|
|
66
|
+
* Must be called after initGrammars().
|
|
67
|
+
*
|
|
68
|
+
* `wasmBytes` (optional) holds pre-read grammar bytes keyed by language (from
|
|
69
|
+
* {@link readGrammarWasmBytes}, forwarded through the parse pool); when a
|
|
70
|
+
* language's bytes are present they're loaded from memory instead of disk.
|
|
71
|
+
*/
|
|
72
|
+
export declare function loadGrammarsForLanguages(languages: Language[], wasmBytes?: Record<string, Uint8Array>): Promise<void>;
|
|
73
|
+
/**
|
|
74
|
+
* Load ALL grammar WASM files. Convenience function for tests and
|
|
75
|
+
* backward compatibility. Prefer loadGrammarsForLanguages() in production.
|
|
76
|
+
*/
|
|
77
|
+
export declare function loadAllGrammars(): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Check if grammars have been initialized
|
|
80
|
+
*/
|
|
81
|
+
export declare function isGrammarsInitialized(): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Get a parser for the specified language.
|
|
84
|
+
* Returns synchronously from pre-loaded cache.
|
|
85
|
+
*/
|
|
86
|
+
export declare function getParser(language: Language): Parser | null;
|
|
87
|
+
/**
|
|
88
|
+
* Detect language from file extension.
|
|
89
|
+
*
|
|
90
|
+
* `overrides` is the project's validated custom extension → language map (from
|
|
91
|
+
* `codegraph.json`); when present its mappings take precedence over the built-in
|
|
92
|
+
* `EXTENSION_MAP`. Omitting it is byte-identical to the zero-config behavior.
|
|
93
|
+
*/
|
|
94
|
+
export declare function detectLanguage(filePath: string, source?: string, overrides?: Record<string, Language>): Language;
|
|
95
|
+
/**
|
|
96
|
+
* Check if a language is supported (has a grammar defined).
|
|
97
|
+
* Returns true if the grammar exists, even if not yet loaded.
|
|
98
|
+
*/
|
|
99
|
+
export declare function isLanguageSupported(language: Language): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Check if a grammar has been loaded and is ready for parsing.
|
|
102
|
+
*/
|
|
103
|
+
export declare function isGrammarLoaded(language: Language): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Languages tracked at the file-record level only: parsing emits zero symbol
|
|
106
|
+
* nodes, but the file is still stored (and framework resolvers may add per-file
|
|
107
|
+
* references later, e.g. Drupal routing yml, Spring `@Value` against
|
|
108
|
+
* application.properties). This is the canonical set behind the no-symbol
|
|
109
|
+
* branch in `tree-sitter.ts`; `xml` is intentionally excluded because its
|
|
110
|
+
* MyBatis extractor emits a file node. Callers use this to count such files as
|
|
111
|
+
* indexed rather than skipped, so it must stay in sync with that branch.
|
|
112
|
+
*/
|
|
113
|
+
export declare function isFileLevelOnlyLanguage(language: Language): boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Get all supported languages (those with grammar definitions).
|
|
116
|
+
*/
|
|
117
|
+
export declare function getSupportedLanguages(): Language[];
|
|
118
|
+
/**
|
|
119
|
+
* Reset the cached parser for a language to reclaim WASM heap memory.
|
|
120
|
+
* The tree-sitter WASM runtime accumulates fragmented memory over thousands
|
|
121
|
+
* of parses. Deleting and recreating the Parser instance forces the WASM
|
|
122
|
+
* heap to reset, preventing "memory access out of bounds" crashes in
|
|
123
|
+
* large repos.
|
|
124
|
+
*/
|
|
125
|
+
export declare function resetParser(language: Language): void;
|
|
126
|
+
/**
|
|
127
|
+
* Clear parser/grammar caches (useful for testing)
|
|
128
|
+
*/
|
|
129
|
+
export declare function clearParserCache(): void;
|
|
130
|
+
/**
|
|
131
|
+
* Report grammars that failed to load.
|
|
132
|
+
*/
|
|
133
|
+
export declare function getUnavailableGrammarErrors(): Partial<Record<Language, string>>;
|
|
134
|
+
/**
|
|
135
|
+
* Get language display name
|
|
136
|
+
*/
|
|
137
|
+
export declare function getLanguageDisplayName(language: Language): string;
|
|
138
|
+
//# sourceMappingURL=grammars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grammars.d.ts","sourceRoot":"","sources":["../../src/extraction/grammars.ts"],"names":[],"mappings":"AAAA;;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