@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,163 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* "Did the symbol the agent NAMED actually render?" (CG-38).
|
|
4
|
+
*
|
|
5
|
+
* This is the measurement the whole CG-24 epic was missing. Every other probe
|
|
6
|
+
* here scores the response in AGGREGATE — `probe-suite-envelope.mjs` measures how
|
|
7
|
+
* much source came back, `probe-file-spend.mjs` measures whether the bytes went
|
|
8
|
+
* to the files that earned them, `probe-allocation.mjs` measures group shares.
|
|
9
|
+
* All three are green on a response that returns 25K of source from the right
|
|
10
|
+
* file and still omits the one function the agent asked for by name. That is
|
|
11
|
+
* exactly what CG-38 was: `queueMessage` at L1087 of a 1,414-line file, whose
|
|
12
|
+
* file won rank #1 with 67% of the envelope, never rendered — the agent got a
|
|
13
|
+
* same-stem `QueuedMessage` INTERFACE at L70 instead and had to Read the file.
|
|
14
|
+
*
|
|
15
|
+
* So the assertion here is per-SYMBOL and binary: for each named symbol, does its
|
|
16
|
+
* definition line appear in the rendered source? Nothing else can substitute —
|
|
17
|
+
* not the file being present, not its share, not its byte count.
|
|
18
|
+
*
|
|
19
|
+
* Usage (needs a current `npm run build`):
|
|
20
|
+
* node scripts/agent-eval/probe-named-symbol.mjs
|
|
21
|
+
* node scripts/agent-eval/probe-named-symbol.mjs --verbose
|
|
22
|
+
* # any indexed repo, ad hoc:
|
|
23
|
+
* node scripts/agent-eval/probe-named-symbol.mjs <repo> "<query>" sym1 sym2
|
|
24
|
+
*
|
|
25
|
+
* Exit code is 1 when any expected symbol is missing, so this can gate.
|
|
26
|
+
*/
|
|
27
|
+
import { cpSync, mkdtempSync, rmSync, readFileSync, existsSync } from 'node:fs';
|
|
28
|
+
import { tmpdir } from 'node:os';
|
|
29
|
+
import { join, resolve, dirname } from 'node:path';
|
|
30
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
31
|
+
|
|
32
|
+
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
33
|
+
const REPO = resolve(HERE, '..', '..');
|
|
34
|
+
|
|
35
|
+
const load = async (rel) => import(pathToFileURL(resolve(REPO, rel)).href);
|
|
36
|
+
const idxMod = await load('dist/index.js');
|
|
37
|
+
const toolsMod = await load('dist/mcp/tools.js');
|
|
38
|
+
const CodeGraph = idxMod.default?.default ?? idxMod.default ?? idxMod.CodeGraph;
|
|
39
|
+
const { ToolHandler } = toolsMod;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The fixture cases. `symbols` are what the agent names; each must come back with
|
|
43
|
+
* its DEFINITION rendered. The queries deliberately cover both shapes the bug was
|
|
44
|
+
* reported on — a bare symbol bag and a prose question — because the failure had
|
|
45
|
+
* a different cause on each and a fix for one does not imply the other.
|
|
46
|
+
*/
|
|
47
|
+
const FIXTURE = '__tests__/fixtures/tail-render-ts';
|
|
48
|
+
const CASES = [
|
|
49
|
+
{
|
|
50
|
+
id: 'tail-symbol-bag',
|
|
51
|
+
why: 'two sibling closures past L1000, named directly; neither calls the other',
|
|
52
|
+
query: 'queueMessage flushQueuedMessages',
|
|
53
|
+
symbols: ['queueMessage', 'flushQueuedMessages'],
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 'tail-prose',
|
|
57
|
+
why: 'same two symbols named inside a prose question',
|
|
58
|
+
query: 'how does queueMessage hand its entries to flushQueuedMessages',
|
|
59
|
+
symbols: ['queueMessage', 'flushQueuedMessages'],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'tail-with-decoy',
|
|
63
|
+
why: 'the same-stem QueuedMessage interface at L70 must not stand in for the functions',
|
|
64
|
+
query: 'explain queueMessage, removeQueuedMessage and flushQueuedMessages',
|
|
65
|
+
symbols: ['queueMessage', 'removeQueuedMessage', 'flushQueuedMessages'],
|
|
66
|
+
},
|
|
67
|
+
];
|
|
68
|
+
|
|
69
|
+
/** Every `<n>\t<text>` line number present in the response's source blocks. */
|
|
70
|
+
function renderedLines(response) {
|
|
71
|
+
const out = new Set();
|
|
72
|
+
for (const m of response.matchAll(/^(\d+)\t/gm)) out.add(Number(m[1]));
|
|
73
|
+
return out;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* A symbol counts as rendered only when its DECLARATION line is among the lines
|
|
78
|
+
* the response actually sent — not when its name merely appears somewhere (it
|
|
79
|
+
* shows up in the section header symbol list and in call sites regardless, which
|
|
80
|
+
* is precisely how this defect hid for a whole epic).
|
|
81
|
+
*/
|
|
82
|
+
function check(cg, response, names) {
|
|
83
|
+
const lines = renderedLines(response);
|
|
84
|
+
return names.map((name) => {
|
|
85
|
+
const node = (cg.getNodesByName?.(name) ?? []).find((n) => n.startLine > 0);
|
|
86
|
+
return {
|
|
87
|
+
name,
|
|
88
|
+
file: node?.filePath ?? '(not indexed)',
|
|
89
|
+
line: node?.startLine ?? 0,
|
|
90
|
+
rendered: !!node && lines.has(node.startLine),
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
async function runCase(root, { query, symbols }) {
|
|
96
|
+
const cg = CodeGraph.openSync(root);
|
|
97
|
+
try {
|
|
98
|
+
const res = await new ToolHandler(cg).execute('codegraph_explore', { query });
|
|
99
|
+
const response = res.content?.[0]?.text ?? '';
|
|
100
|
+
return { response, results: check(cg, response, symbols) };
|
|
101
|
+
} finally {
|
|
102
|
+
try { cg.close?.(); } catch { /* already closed */ }
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const argv = process.argv.slice(2);
|
|
107
|
+
const verbose = argv.includes('--verbose');
|
|
108
|
+
const positional = argv.filter((a) => !a.startsWith('--'));
|
|
109
|
+
|
|
110
|
+
let failures = 0;
|
|
111
|
+
let checked = 0;
|
|
112
|
+
|
|
113
|
+
if (positional.length >= 3) {
|
|
114
|
+
// Ad-hoc mode: <repo> "<query>" sym...
|
|
115
|
+
const [repo, query, ...symbols] = positional;
|
|
116
|
+
const { response, results } = await runCase(resolve(repo), { query, symbols });
|
|
117
|
+
console.log(`\n${repo}\n query "${query}" · ${response.length} chars\n`);
|
|
118
|
+
for (const r of results) {
|
|
119
|
+
checked += 1;
|
|
120
|
+
if (!r.rendered) failures += 1;
|
|
121
|
+
console.log(` ${r.rendered ? 'PASS' : 'FAIL'} ${r.name} ${r.file}:${r.line}`);
|
|
122
|
+
}
|
|
123
|
+
} else {
|
|
124
|
+
const src = join(REPO, FIXTURE);
|
|
125
|
+
if (!existsSync(src)) {
|
|
126
|
+
console.error(`fixture missing: ${src}`);
|
|
127
|
+
process.exit(2);
|
|
128
|
+
}
|
|
129
|
+
const dir = mkdtempSync(join(tmpdir(), 'cg-named-'));
|
|
130
|
+
try {
|
|
131
|
+
cpSync(src, dir, { recursive: true });
|
|
132
|
+
rmSync(join(dir, '.codegraph'), { recursive: true, force: true });
|
|
133
|
+
const cg = CodeGraph.initSync(dir);
|
|
134
|
+
await cg.indexAll();
|
|
135
|
+
cg.close?.();
|
|
136
|
+
|
|
137
|
+
console.log(`\ntail-render-ts · agent-named symbols must render\n`);
|
|
138
|
+
for (const c of CASES) {
|
|
139
|
+
const { response, results } = await runCase(dir, c);
|
|
140
|
+
console.log(`── ${c.id} — ${c.why}`);
|
|
141
|
+
console.log(` query "${c.query}"`);
|
|
142
|
+
console.log(` response ${response.length.toLocaleString()} chars`);
|
|
143
|
+
for (const r of results) {
|
|
144
|
+
checked += 1;
|
|
145
|
+
if (!r.rendered) failures += 1;
|
|
146
|
+
console.log(` ${r.rendered ? 'PASS' : 'FAIL'} ${r.name} defined at ${r.file}:${r.line}`
|
|
147
|
+
+ (r.rendered ? '' : ' — DEFINITION NOT IN RESPONSE'));
|
|
148
|
+
}
|
|
149
|
+
if (verbose && failures) {
|
|
150
|
+
const spans = [...renderedLines(response)].sort((a, b) => a - b);
|
|
151
|
+
console.log(` rendered lines: ${spans[0]}..${spans[spans.length - 1]} (${spans.length} lines)`);
|
|
152
|
+
}
|
|
153
|
+
console.log();
|
|
154
|
+
}
|
|
155
|
+
} finally {
|
|
156
|
+
rmSync(dir, { recursive: true, force: true });
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
console.log(failures === 0
|
|
161
|
+
? `Every agent-named symbol rendered (${checked} checked).`
|
|
162
|
+
: `${failures} of ${checked} agent-named symbols did NOT render.`);
|
|
163
|
+
process.exit(failures === 0 ? 0 : 1);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Probe codegraph_node (with trail) against an index using the built dist.
|
|
3
|
+
// Usage: node probe-node.mjs <repo-with-.codegraph> <symbol> [code]
|
|
4
|
+
import { pathToFileURL } from 'node:url';
|
|
5
|
+
import { resolve } from 'node:path';
|
|
6
|
+
|
|
7
|
+
const [, , repo, symbol, code] = process.argv;
|
|
8
|
+
if (!repo || !symbol) { console.error('usage: probe-node.mjs <repo> <symbol> [code]'); process.exit(1); }
|
|
9
|
+
|
|
10
|
+
const load = async (rel) => import(pathToFileURL(resolve(rel)).href);
|
|
11
|
+
const idx = await load('dist/index.js');
|
|
12
|
+
const tools = await load('dist/mcp/tools.js');
|
|
13
|
+
const CodeGraph = idx.default?.default ?? idx.default ?? idx.CodeGraph;
|
|
14
|
+
const ToolHandler = tools.ToolHandler ?? tools.default?.ToolHandler;
|
|
15
|
+
|
|
16
|
+
const cg = CodeGraph.openSync(repo);
|
|
17
|
+
const h = new ToolHandler(cg);
|
|
18
|
+
const res = await h.execute('codegraph_node', { symbol, includeCode: code === 'code' });
|
|
19
|
+
console.log(res.content?.[0]?.text ?? '(no text)');
|
|
20
|
+
try { cg.close?.(); } catch {}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Deterministic 6-repo envelope sweep for `codegraph_explore` (CG-26).
|
|
4
|
+
*
|
|
5
|
+
* The allocation issues (CG-30 / CG-31 / CG-26) are all decided by how the
|
|
6
|
+
* render loop divides a fixed byte ceiling, and the agent A/B is far too noisy
|
|
7
|
+
* to see a 2K byte shift. This runs the SAME six queries the CG-30 and CG-31
|
|
8
|
+
* benchmark tables use, against the same clean-rebuilt corpus indexes, and
|
|
9
|
+
* prints the numbers those tables are made of: source chars delivered, files in
|
|
10
|
+
* the final output, whether the hard ceiling cut anything, and whether the
|
|
11
|
+
* epilogue survived.
|
|
12
|
+
*
|
|
13
|
+
* Numbers come from the CG-4 diagnostic (`CODEGRAPH_EXPLORE_DEBUG`), so this
|
|
14
|
+
* measures the shipping allocator rather than re-deriving shares from markdown.
|
|
15
|
+
*
|
|
16
|
+
* Usage (needs a current `npm run build`, and full-REBUILT indexes — CG-33):
|
|
17
|
+
* node scripts/agent-eval/probe-suite-envelope.mjs
|
|
18
|
+
* node scripts/agent-eval/probe-suite-envelope.mjs --json > /tmp/new.json
|
|
19
|
+
* node scripts/agent-eval/probe-suite-envelope.mjs --baseline /tmp/base.json
|
|
20
|
+
* CORPUS=/tmp/codegraph-corpus node scripts/agent-eval/probe-suite-envelope.mjs
|
|
21
|
+
*/
|
|
22
|
+
import { mkdtempSync, readFileSync, rmSync, existsSync } from 'node:fs';
|
|
23
|
+
import { tmpdir } from 'node:os';
|
|
24
|
+
import { join, resolve } from 'node:path';
|
|
25
|
+
import { pathToFileURL } from 'node:url';
|
|
26
|
+
|
|
27
|
+
const CORPUS = process.env.CORPUS ?? '/tmp/codegraph-corpus';
|
|
28
|
+
|
|
29
|
+
/** The six suite repos + the exact queries the CG-30/CG-31 tables were measured on. */
|
|
30
|
+
const SUITE = [
|
|
31
|
+
{ id: 'django', q: 'How does a QuerySet turn into SQL and fetch rows from the database?' },
|
|
32
|
+
{ id: 'excalidraw', q: 'How does updating an element re-render the canvas on screen?' },
|
|
33
|
+
{ id: 'okhttp', q: 'How does a call go through the interceptor chain to the network?' },
|
|
34
|
+
{ id: 'tokio', q: 'How does a spawned task get scheduled and run by a worker?' },
|
|
35
|
+
{ id: 'gin', q: 'How does a registered route handler get invoked for an incoming HTTP request?' },
|
|
36
|
+
{ id: 'alamofire', q: 'How does a request get built and sent through the session?' },
|
|
37
|
+
];
|
|
38
|
+
|
|
39
|
+
const argv = process.argv.slice(2);
|
|
40
|
+
const asJson = argv.includes('--json');
|
|
41
|
+
const baselineAt = argv.includes('--baseline') ? argv[argv.indexOf('--baseline') + 1] : null;
|
|
42
|
+
const only = argv.filter((a) => !a.startsWith('--') && a !== baselineAt);
|
|
43
|
+
|
|
44
|
+
const say = (s = '') => { if (!asJson) console.log(s); };
|
|
45
|
+
const num = (n) => Math.round(n).toLocaleString('en-US');
|
|
46
|
+
|
|
47
|
+
const load = (rel) => import(pathToFileURL(resolve(rel)).href);
|
|
48
|
+
const idx = await load('dist/index.js');
|
|
49
|
+
const toolsMod = await load('dist/mcp/tools.js');
|
|
50
|
+
const CodeGraph = idx.default?.default ?? idx.default ?? idx.CodeGraph;
|
|
51
|
+
const ToolHandler = toolsMod.ToolHandler ?? toolsMod.default?.ToolHandler;
|
|
52
|
+
if (typeof CodeGraph?.openSync !== 'function' || typeof ToolHandler !== 'function') {
|
|
53
|
+
console.error('could not resolve CodeGraph/ToolHandler from dist/ — run `npm run build`');
|
|
54
|
+
process.exit(2);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
const tmp = mkdtempSync(join(tmpdir(), 'cg-suite-'));
|
|
58
|
+
const results = [];
|
|
59
|
+
try {
|
|
60
|
+
for (const { id, q } of SUITE) {
|
|
61
|
+
if (only.length > 0 && !only.includes(id)) continue;
|
|
62
|
+
const repo = join(CORPUS, id);
|
|
63
|
+
if (!existsSync(join(repo, '.codegraph', 'codegraph.db'))) {
|
|
64
|
+
say(`${id}: no index at ${repo} — skipped`);
|
|
65
|
+
continue;
|
|
66
|
+
}
|
|
67
|
+
const sidecar = join(tmp, `${id}.jsonl`);
|
|
68
|
+
process.env.CODEGRAPH_EXPLORE_DEBUG = sidecar;
|
|
69
|
+
const cg = CodeGraph.openSync(repo);
|
|
70
|
+
const h = new ToolHandler(cg);
|
|
71
|
+
const res = await h.execute('codegraph_explore', { query: q });
|
|
72
|
+
const text = res.content?.[0]?.text ?? '';
|
|
73
|
+
try { cg.close?.(); } catch { /* best effort */ }
|
|
74
|
+
const report = JSON.parse(readFileSync(sidecar, 'utf8').trim().split('\n').pop());
|
|
75
|
+
results.push({
|
|
76
|
+
repo: id,
|
|
77
|
+
sourceChars: report.envelope.sourceChars,
|
|
78
|
+
envelopeChars: report.envelope.chars,
|
|
79
|
+
allocatedChars: report.envelope.allocatedChars,
|
|
80
|
+
hardCeiling: report.budget.hardCeiling,
|
|
81
|
+
truncated: report.envelope.truncated,
|
|
82
|
+
files: report.selection.filesInFinalOutput,
|
|
83
|
+
// Did the response keep its trailing pointer list / notes, or did the
|
|
84
|
+
// hard ceiling spend them? This is CG-26's residual 1.
|
|
85
|
+
epilogueCut: text.includes('omitted for size'),
|
|
86
|
+
sectionCut: text.includes('output truncated to budget'),
|
|
87
|
+
notShown: text.includes('Not shown above'),
|
|
88
|
+
budgetNote: text.includes('**Explore budget:'),
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
} finally {
|
|
92
|
+
rmSync(tmp, { recursive: true, force: true });
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if (asJson) {
|
|
96
|
+
console.log(JSON.stringify(results, null, 2));
|
|
97
|
+
} else {
|
|
98
|
+
const base = baselineAt ? JSON.parse(readFileSync(baselineAt, 'utf8')) : null;
|
|
99
|
+
const byRepo = new Map((base ?? []).map((r) => [r.repo, r]));
|
|
100
|
+
say('repo source Δ env files cut epilogue');
|
|
101
|
+
say('-'.repeat(74));
|
|
102
|
+
for (const r of results) {
|
|
103
|
+
const b = byRepo.get(r.repo);
|
|
104
|
+
const delta = b ? (r.sourceChars - b.sourceChars) : null;
|
|
105
|
+
const dStr = delta === null ? '' : (delta > 0 ? `+${num(delta)}` : num(delta));
|
|
106
|
+
const cut = r.sectionCut ? 'section' : r.epilogueCut ? 'epilogue' : '—';
|
|
107
|
+
const epi = [r.notShown ? 'not-shown' : null, r.budgetNote ? 'budget-note' : null]
|
|
108
|
+
.filter(Boolean).join('+') || 'none';
|
|
109
|
+
say(
|
|
110
|
+
`${r.repo.padEnd(12)} ${num(r.sourceChars).padStart(7)} ${dStr.padStart(8)} `
|
|
111
|
+
+ `${num(r.envelopeChars).padStart(7)} ${String(r.files).padStart(5)} ${cut.padEnd(12)} ${epi}`,
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
if (base) {
|
|
115
|
+
const lost = results.filter((r) => {
|
|
116
|
+
const b = byRepo.get(r.repo);
|
|
117
|
+
return b && (r.sourceChars < b.sourceChars || r.files < b.files);
|
|
118
|
+
});
|
|
119
|
+
say('');
|
|
120
|
+
say(lost.length === 0
|
|
121
|
+
? 'No repo delivers less source or fewer files than the baseline.'
|
|
122
|
+
: `REGRESSION: ${lost.map((r) => r.repo).join(', ')} deliver less than baseline.`);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// probe-sweep — direct MCP test across N repos × N tools, no claude needed.
|
|
3
|
+
//
|
|
4
|
+
// Measures response characteristics (size, sections present, signals fired)
|
|
5
|
+
// for each (repo, query) pair against the built dist/. Sub-second per probe;
|
|
6
|
+
// the full sweep below runs in ~10-30s vs hours for a real claude audit.
|
|
7
|
+
//
|
|
8
|
+
// Use this to iterate on backend changes rapidly: change tools.ts /
|
|
9
|
+
// context-builder, npm run build, re-run probe-sweep, compare. Once a
|
|
10
|
+
// change looks good on probe metrics, run a focused claude audit for the
|
|
11
|
+
// few repos that matter to confirm end-to-end cost behavior.
|
|
12
|
+
//
|
|
13
|
+
// Usage: node scripts/agent-eval/probe-sweep.mjs [--tool=context|explore|trace] [--repos=a,b,c]
|
|
14
|
+
import { pathToFileURL } from 'node:url';
|
|
15
|
+
import { resolve } from 'node:path';
|
|
16
|
+
|
|
17
|
+
const args = Object.fromEntries(
|
|
18
|
+
process.argv.slice(2).map(a => a.startsWith('--') ? a.slice(2).split('=') : [a, true])
|
|
19
|
+
);
|
|
20
|
+
const TOOL = args.tool ?? 'context';
|
|
21
|
+
|
|
22
|
+
const load = (rel) => import(pathToFileURL(resolve(rel)).href);
|
|
23
|
+
const idx = await load('dist/index.js');
|
|
24
|
+
const tools = await load('dist/mcp/tools.js');
|
|
25
|
+
const CodeGraph = idx.default?.default ?? idx.default ?? idx.CodeGraph;
|
|
26
|
+
const ToolHandler = tools.ToolHandler ?? tools.default?.ToolHandler;
|
|
27
|
+
|
|
28
|
+
// Each entry: repo, query, optional 2nd arg for trace (from, to).
|
|
29
|
+
// The query is the same prompt used in the real claude audits, so probe
|
|
30
|
+
// output is directly comparable to the agent's would-be input.
|
|
31
|
+
const SWEEP = [
|
|
32
|
+
// Small realworld template repos (the loss cases from the cross-language sweep)
|
|
33
|
+
{ id: 'gin-rw', repo: '/tmp/codegraph-corpus/gin-realworld', q: 'How does this Gin app route a request through its middleware chain to a handler?' },
|
|
34
|
+
{ id: 'go-mux', repo: '/tmp/codegraph-corpus/go-mux', q: 'How does this gorilla/mux app route a request to its handler?' },
|
|
35
|
+
{ id: 'fastapi-rw', repo: '/tmp/codegraph-corpus/fastapi-realworld', q: 'How does FastAPI route a request through its dependencies to a handler?' },
|
|
36
|
+
{ id: 'spring-pc', repo: '/tmp/codegraph-corpus/spring-petclinic', q: 'How does Spring route an HTTP request to a controller method?' },
|
|
37
|
+
{ id: 'axum-rw', repo: '/tmp/codegraph-corpus/rust-axum-realworld', q: 'How does Axum route a request to its handler in this app?' },
|
|
38
|
+
{ id: 'express-rw', repo: '/tmp/codegraph-corpus/express-realworld', q: 'How does this Express app route a request through middleware to a handler?' },
|
|
39
|
+
{ id: 'kotlin-pc', repo: '/tmp/codegraph-corpus/kotlin-petclinic', q: 'How does the Kotlin Spring app route an HTTP request to its handler?' },
|
|
40
|
+
{ id: 'flask-mb', repo: '/tmp/codegraph-corpus/flask-microblog', q: 'How does this Flask app route a request to a view function?' },
|
|
41
|
+
{ id: 'vapor-tpl', repo: '/tmp/codegraph-corpus/vapor-template', q: 'How does Vapor route an HTTP request to its handler?' },
|
|
42
|
+
{ id: 'cpp-leveldb', repo: '/tmp/codegraph-corpus/cpp-leveldb', q: 'How does LevelDB handle a Put operation through to disk?' },
|
|
43
|
+
{ id: 'lualine', repo: '/tmp/codegraph-corpus/lualine.nvim', q: 'How does lualine assemble and render the statusline?' },
|
|
44
|
+
{ id: 'drupal-admin', repo: '/tmp/codegraph-corpus/drupal-admintoolbar', q: 'How does the Drupal admin toolbar module render its toolbar?' },
|
|
45
|
+
{ id: 'svelte-rw', repo: '/tmp/codegraph-corpus/svelte-realworld', q: 'How does this SvelteKit app route a request to a handler?' },
|
|
46
|
+
{ id: 'react-rw', repo: '/tmp/codegraph-corpus/react-realworld', q: 'How does this React app fetch and display articles?' },
|
|
47
|
+
{ id: 'rails-rw', repo: '/tmp/codegraph-corpus/rails-realworld', q: 'How does Rails route a request to a controller action?' },
|
|
48
|
+
{ id: 'flask-rest', repo: '/tmp/codegraph-corpus/flask-restful-realworld', q: 'How does Flask-RESTful route a request to a resource method?' },
|
|
49
|
+
{ id: 'laravel-rw', repo: '/tmp/codegraph-corpus/laravel-realworld', q: 'How does Laravel route a request to the controller method?' },
|
|
50
|
+
{ id: 'aspnet-rw', repo: '/tmp/codegraph-corpus/aspnet-realworld', q: 'How does ASP.NET route a request to the controller action?' },
|
|
51
|
+
// The iter7 wins/ties (to make sure we don't regress)
|
|
52
|
+
{ id: 'cobra', repo: '/tmp/codegraph-corpus/cobra', q: 'How does cobra parse commands and flags?' },
|
|
53
|
+
{ id: 'sinatra', repo: '/tmp/codegraph-corpus/sinatra', q: 'How does sinatra route a request to its handler?' },
|
|
54
|
+
{ id: 'slim', repo: '/tmp/codegraph-corpus/slim', q: 'How does slim route a request and apply middleware?' },
|
|
55
|
+
];
|
|
56
|
+
|
|
57
|
+
// Detect signals in response text — these are the levers we've added that
|
|
58
|
+
// otherwise only show up via "agent ran X more tool calls" downstream.
|
|
59
|
+
const detect = (text) => ({
|
|
60
|
+
hasEntryPoints: /^### Entry Points/m.test(text),
|
|
61
|
+
hasRelatedSymbols: /^### Related Symbols/m.test(text),
|
|
62
|
+
hasFlowTrace: /^## Inline flow trace/m.test(text),
|
|
63
|
+
hasRouteManifest: /^## Routing manifest/m.test(text),
|
|
64
|
+
hasTopHandler: /^### Top handler file/m.test(text),
|
|
65
|
+
hasSmallRepoTail: /This project is small/.test(text),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const filterRepos = args.repos ? new Set(String(args.repos).split(',')) : null;
|
|
69
|
+
const subjects = SWEEP.filter(s => !filterRepos || filterRepos.has(s.id));
|
|
70
|
+
|
|
71
|
+
const t0 = Date.now();
|
|
72
|
+
const rows = [];
|
|
73
|
+
for (const s of subjects) {
|
|
74
|
+
try {
|
|
75
|
+
const cg = CodeGraph.openSync(s.repo);
|
|
76
|
+
const handler = new ToolHandler(cg);
|
|
77
|
+
const t1 = Date.now();
|
|
78
|
+
const res = await handler.execute('codegraph_' + TOOL,
|
|
79
|
+
TOOL === 'context' ? { task: s.q } :
|
|
80
|
+
TOOL === 'explore' ? { query: s.q } : { from: 'main', to: 'main' });
|
|
81
|
+
const text = res.content?.[0]?.text ?? '';
|
|
82
|
+
const signals = detect(text);
|
|
83
|
+
rows.push({
|
|
84
|
+
id: s.id,
|
|
85
|
+
ms: Date.now() - t1,
|
|
86
|
+
chars: text.length,
|
|
87
|
+
lines: text.split('\n').length,
|
|
88
|
+
...signals,
|
|
89
|
+
});
|
|
90
|
+
try { cg.close?.(); } catch {}
|
|
91
|
+
} catch (e) {
|
|
92
|
+
rows.push({ id: s.id, error: String(e).slice(0, 80) });
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// Pretty-print as a compact table.
|
|
97
|
+
const fmt = (r) =>
|
|
98
|
+
r.error
|
|
99
|
+
? ` ${r.id.padEnd(13)} ERROR: ${r.error}`
|
|
100
|
+
: ` ${r.id.padEnd(13)} ${String(r.chars).padStart(6)}c ${String(r.lines).padStart(4)}L ${String(r.ms).padStart(4)}ms` +
|
|
101
|
+
` ${r.hasEntryPoints ? 'EP ' : ' '}` +
|
|
102
|
+
`${r.hasFlowTrace ? 'TRC ' : ' '}` +
|
|
103
|
+
`${r.hasRouteManifest ? 'MAN ' : ' '}` +
|
|
104
|
+
`${r.hasTopHandler ? 'HND ' : ' '}` +
|
|
105
|
+
`${r.hasSmallRepoTail ? 'TAIL' : ' '}`;
|
|
106
|
+
console.log(`=== probe-sweep tool=${TOOL} n=${subjects.length} (${Date.now() - t0}ms total) ===`);
|
|
107
|
+
console.log(' id chars lines ms signals');
|
|
108
|
+
console.log(' ' + '-'.repeat(56));
|
|
109
|
+
for (const r of rows) console.log(fmt(r));
|
|
110
|
+
|
|
111
|
+
// Sum + medians for the size pillar
|
|
112
|
+
const sizes = rows.filter(r => !r.error).map(r => r.chars);
|
|
113
|
+
sizes.sort((a, b) => a - b);
|
|
114
|
+
const median = sizes[Math.floor(sizes.length / 2)];
|
|
115
|
+
const sum = sizes.reduce((a, b) => a + b, 0);
|
|
116
|
+
console.log(` ${'-'.repeat(64)}`);
|
|
117
|
+
console.log(` median=${median}c total=${sum}c ` +
|
|
118
|
+
`manifest=${rows.filter(r => r.hasRouteManifest).length}/${rows.filter(r => !r.error).length} ` +
|
|
119
|
+
`top-handler=${rows.filter(r => r.hasTopHandler).length}/${rows.filter(r => !r.error).length}`);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Probe codegraph_trace against an index using the built dist.
|
|
3
|
+
// Usage: node probe-trace.mjs <repo-with-.codegraph> <from> <to>
|
|
4
|
+
import { pathToFileURL } from 'node:url';
|
|
5
|
+
import { resolve } from 'node:path';
|
|
6
|
+
|
|
7
|
+
const [, , repo, from, to] = process.argv;
|
|
8
|
+
if (!repo || !from || !to) { console.error('usage: probe-trace.mjs <repo> <from> <to>'); process.exit(1); }
|
|
9
|
+
|
|
10
|
+
const load = async (rel) => import(pathToFileURL(resolve(rel)).href);
|
|
11
|
+
const idx = await load('dist/index.js');
|
|
12
|
+
const tools = await load('dist/mcp/tools.js');
|
|
13
|
+
const CodeGraph = idx.default?.default ?? idx.default ?? idx.CodeGraph;
|
|
14
|
+
const ToolHandler = tools.ToolHandler ?? tools.default?.ToolHandler;
|
|
15
|
+
|
|
16
|
+
const cg = CodeGraph.openSync(repo);
|
|
17
|
+
const h = new ToolHandler(cg);
|
|
18
|
+
const res = await h.execute('codegraph_trace', { from, to });
|
|
19
|
+
console.log(res.content?.[0]?.text ?? '(no text)');
|
|
20
|
+
try { cg.close?.(); } catch {}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# PreToolUse(Read) REDIRECT hook — prototype for A/B (P1: get agents off Read and
|
|
3
|
+
# onto codegraph_node during implementation, not just for Q&A).
|
|
4
|
+
#
|
|
5
|
+
# When the agent Reads a SOURCE file, deny it and steer to codegraph_node's
|
|
6
|
+
# file-view, which (as of the Lever-1 change) returns the WHOLE file verbatim
|
|
7
|
+
# WITH line numbers — imports, top-level code, comments and all — PLUS the file's
|
|
8
|
+
# blast radius, in one call. That output is a strict superset of Read, so the
|
|
9
|
+
# redirect is lossless: the agent loses nothing by taking it, and gains who-
|
|
10
|
+
# depends-on-this for the edit it's about to make.
|
|
11
|
+
#
|
|
12
|
+
# Differs from block-read-hook.sh (which steers to explore/node-by-symbol): this
|
|
13
|
+
# names the FILE-VIEW path explicitly (file:"<base>" + includeCode:true), the
|
|
14
|
+
# 1:1 Read replacement we're trying to get picked during implementation.
|
|
15
|
+
#
|
|
16
|
+
# Non-source files (configs, docs, lockfiles, .env) pass through to a real Read.
|
|
17
|
+
# A redirect to a file codegraph hasn't indexed SELF-CORRECTS: the file-view
|
|
18
|
+
# replies "No indexed file matches … Read it directly", so a just-created file
|
|
19
|
+
# never dead-ends — the agent Reads it on the next turn.
|
|
20
|
+
#
|
|
21
|
+
# Wire via: claude ... --settings <settings-with-this-as-PreToolUse(Read)>
|
|
22
|
+
# Eval artifact only. The production version is an indexed-aware `codegraph`
|
|
23
|
+
# subcommand (cross-platform — no bash/jq — and queries the index so it never
|
|
24
|
+
# bounces a new/un-indexed file), wired opt-in by the installer.
|
|
25
|
+
set -uo pipefail
|
|
26
|
+
input="$(cat)"
|
|
27
|
+
fp="$(printf '%s' "$input" | jq -r '.tool_input.file_path // empty' 2>/dev/null)"
|
|
28
|
+
[ -n "$fp" ] || exit 0
|
|
29
|
+
base="$(basename "$fp")"
|
|
30
|
+
|
|
31
|
+
case "$fp" in
|
|
32
|
+
*.ts|*.tsx|*.js|*.jsx|*.mjs|*.cjs|*.py|*.go|*.rs|*.java|*.rb|*.php|*.swift|*.kt|*.kts|*.scala|*.c|*.cc|*.cpp|*.h|*.hpp|*.cs|*.lua|*.vue|*.svelte|*.m|*.mm)
|
|
33
|
+
msg="codegraph has this file indexed (kept in sync on every edit). Call codegraph_node with file:\"$base\" and includeCode:true instead of Read — it returns the WHOLE file verbatim WITH line numbers (imports, top-level code and all — safe to base an Edit on) PLUS which files depend on it, in one call. Treat its output as already-Read; do not Read this file. (If it answers that the file isn't indexed — e.g. you just created it — then Read it directly.)"
|
|
34
|
+
jq -n --arg m "$msg" '{hookSpecificOutput:{hookEventName:"PreToolUse",permissionDecision:"deny",permissionDecisionReason:$m}}'
|
|
35
|
+
exit 0
|
|
36
|
+
;;
|
|
37
|
+
esac
|
|
38
|
+
exit 0
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Reproduction harness A — does the shared daemon serialize concurrent explore?
|
|
3
|
+
//
|
|
4
|
+
// Mirrors the daemon's reality: ONE CodeGraph + ONE ToolHandler (as MCPEngine
|
|
5
|
+
// shares across all sessions), then fires N concurrent codegraph_explore calls
|
|
6
|
+
// and measures:
|
|
7
|
+
// - each call's wall-clock latency + completion order
|
|
8
|
+
// - an event-loop HEARTBEAT (setInterval 50ms): the max gap between ticks is a
|
|
9
|
+
// direct measure of how long synchronous compute blocked the loop. In the
|
|
10
|
+
// real daemon a blocked loop can't flush a finished response or read the
|
|
11
|
+
// next request, so this gap is what starves the MCP transport.
|
|
12
|
+
//
|
|
13
|
+
// Usage: node repro-concurrent-explore.mjs <repo-with-.codegraph> <N> [timeoutMs]
|
|
14
|
+
import { pathToFileURL } from 'node:url';
|
|
15
|
+
import { resolve } from 'node:path';
|
|
16
|
+
import { performance } from 'node:perf_hooks';
|
|
17
|
+
|
|
18
|
+
const [, , repo, nRaw, timeoutRaw] = process.argv;
|
|
19
|
+
if (!repo) {
|
|
20
|
+
console.error('usage: repro-concurrent-explore.mjs <repo> <N=10> [timeoutMs=60000]');
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
const N = Number(nRaw) || 10;
|
|
24
|
+
const TIMEOUT_MS = Number(timeoutRaw) || 60000; // ~ MCP SDK default request timeout
|
|
25
|
+
|
|
26
|
+
const load = async (rel) => import(pathToFileURL(resolve(rel)).href);
|
|
27
|
+
const idx = await load('dist/index.js');
|
|
28
|
+
const tools = await load('dist/mcp/tools.js');
|
|
29
|
+
const CodeGraph = idx.default?.default ?? idx.default ?? idx.CodeGraph;
|
|
30
|
+
const ToolHandler = tools.ToolHandler ?? tools.default?.ToolHandler;
|
|
31
|
+
|
|
32
|
+
// Distinct queries so no two calls are trivially identical. Mix of NL questions
|
|
33
|
+
// (exercise FTS + RWR over the whole graph) — the expensive explore path.
|
|
34
|
+
const QUERIES = [
|
|
35
|
+
'how does the text model handle edits and undo',
|
|
36
|
+
'how does the file service watch for changes on disk',
|
|
37
|
+
'how does the keybinding service resolve a chord to a command',
|
|
38
|
+
'how does the extension host activate an extension',
|
|
39
|
+
'how does the editor render decorations in the viewport',
|
|
40
|
+
'how does the search service stream results to the UI',
|
|
41
|
+
'how does the terminal process manager spawn a shell',
|
|
42
|
+
'how does the configuration service merge user and workspace settings',
|
|
43
|
+
'how does the debug adapter forward breakpoints to the runtime',
|
|
44
|
+
'how does the quick input widget filter its items',
|
|
45
|
+
'how does the notification service queue and show toasts',
|
|
46
|
+
'how does the git extension compute the diff for a file',
|
|
47
|
+
'how does the language features registry dispatch a hover request',
|
|
48
|
+
'how does the workbench layout restore editor groups on reload',
|
|
49
|
+
'how does the storage service persist state between sessions',
|
|
50
|
+
'how does the menu service build a context menu from contributions',
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
const cg = CodeGraph.openSync(repo);
|
|
54
|
+
let fileCount = 0;
|
|
55
|
+
try { fileCount = cg.getStats().fileCount; } catch {}
|
|
56
|
+
const handler = new ToolHandler(cg);
|
|
57
|
+
|
|
58
|
+
// --- event-loop heartbeat ---
|
|
59
|
+
let lastTick = performance.now();
|
|
60
|
+
let maxGap = 0;
|
|
61
|
+
const gaps = [];
|
|
62
|
+
const hb = setInterval(() => {
|
|
63
|
+
const now = performance.now();
|
|
64
|
+
const gap = now - lastTick;
|
|
65
|
+
lastTick = now;
|
|
66
|
+
if (gap > 60) gaps.push(Math.round(gap)); // expected ~50ms; record stalls
|
|
67
|
+
if (gap > maxGap) maxGap = gap;
|
|
68
|
+
}, 50);
|
|
69
|
+
|
|
70
|
+
function runOne(i) {
|
|
71
|
+
const q = QUERIES[i % QUERIES.length];
|
|
72
|
+
const startedAt = performance.now();
|
|
73
|
+
let timer;
|
|
74
|
+
const timeout = new Promise((res) => {
|
|
75
|
+
timer = setTimeout(() => res({ timedOut: true }), TIMEOUT_MS);
|
|
76
|
+
});
|
|
77
|
+
const work = handler
|
|
78
|
+
.execute('codegraph_explore', { query: q })
|
|
79
|
+
.then((r) => ({ ok: !r.isError, chars: r.content?.[0]?.text?.length ?? 0 }))
|
|
80
|
+
.catch((e) => ({ ok: false, err: String(e?.message ?? e) }));
|
|
81
|
+
return Promise.race([work, timeout]).then((r) => {
|
|
82
|
+
clearTimeout(timer);
|
|
83
|
+
return { i, q, ms: Math.round(performance.now() - startedAt), ...r };
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Baseline: one warm single call (so the first-call cold paths don't skew N).
|
|
88
|
+
const warmStart = performance.now();
|
|
89
|
+
await runOne(0);
|
|
90
|
+
const warmMs = Math.round(performance.now() - warmStart);
|
|
91
|
+
|
|
92
|
+
// Reset heartbeat stats for the concurrent run.
|
|
93
|
+
gaps.length = 0; maxGap = 0; lastTick = performance.now();
|
|
94
|
+
|
|
95
|
+
const batchStart = performance.now();
|
|
96
|
+
const results = await Promise.all(Array.from({ length: N }, (_, i) => runOne(i)));
|
|
97
|
+
const batchMs = Math.round(performance.now() - batchStart);
|
|
98
|
+
clearInterval(hb);
|
|
99
|
+
|
|
100
|
+
const lat = results.map((r) => r.ms).sort((a, b) => a - b);
|
|
101
|
+
const timeouts = results.filter((r) => r.timedOut).length;
|
|
102
|
+
const p = (q) => lat[Math.min(lat.length - 1, Math.floor(q * lat.length))];
|
|
103
|
+
|
|
104
|
+
console.log('='.repeat(64));
|
|
105
|
+
console.log(`repo=${repo}`);
|
|
106
|
+
console.log(`fileCount=${fileCount} N=${N} perCallTimeout=${TIMEOUT_MS}ms`);
|
|
107
|
+
console.log(`single warm explore: ${warmMs}ms`);
|
|
108
|
+
console.log('-'.repeat(64));
|
|
109
|
+
console.log(`concurrent batch wall-clock: ${batchMs}ms`);
|
|
110
|
+
console.log(`per-call latency min=${lat[0]} p50=${p(0.5)} p90=${p(0.9)} max=${lat[lat.length - 1]} (ms)`);
|
|
111
|
+
console.log(`TIMEOUTS (>${TIMEOUT_MS}ms): ${timeouts} / ${N}`);
|
|
112
|
+
console.log(`event-loop max stall: ${Math.round(maxGap)}ms stalls>60ms: ${gaps.length}`);
|
|
113
|
+
console.log(` sum of stalls: ${gaps.reduce((a, b) => a + b, 0)}ms biggest 5: ${gaps.sort((a,b)=>b-a).slice(0,5).join(', ')}`);
|
|
114
|
+
console.log('-'.repeat(64));
|
|
115
|
+
console.log('SERIALIZATION CHECK:');
|
|
116
|
+
console.log(` if serialized, batch ≈ N×single = ~${N * warmMs}ms; actual=${batchMs}ms (ratio ${(batchMs / (N * warmMs)).toFixed(2)})`);
|
|
117
|
+
console.log(` max latency / single = ${(lat[lat.length - 1] / warmMs).toFixed(1)}× (≈N means last call waited for all others)`);
|
|
118
|
+
console.log('='.repeat(64));
|
|
119
|
+
try { cg.close?.(); } catch {}
|