@cybedefend/vibedefend 1.8.3 → 1.9.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/README.md +135 -16
- package/dist/clients/antigravity.js +30 -6
- package/dist/clients/antigravity.js.map +1 -1
- package/dist/clients/claude-code.js +209 -17
- package/dist/clients/claude-code.js.map +1 -1
- package/dist/clients/codex.js +171 -11
- package/dist/clients/codex.js.map +1 -1
- package/dist/clients/cursor.js +149 -9
- package/dist/clients/cursor.js.map +1 -1
- package/dist/clients/dependency-check-wiring.js +24 -0
- package/dist/clients/dependency-check-wiring.js.map +1 -0
- package/dist/clients/opencode-plugin.js +905 -0
- package/dist/clients/opencode-plugin.js.map +1 -0
- package/dist/clients/opencode.js +653 -0
- package/dist/clients/opencode.js.map +1 -0
- package/dist/clients/registry.js +2 -0
- package/dist/clients/registry.js.map +1 -1
- package/dist/clients/vscode.js +106 -12
- package/dist/clients/vscode.js.map +1 -1
- package/dist/clients/windsurf.js +9 -1
- package/dist/clients/windsurf.js.map +1 -1
- package/dist/commands/mcp/index.js +11 -0
- package/dist/commands/mcp/index.js.map +1 -1
- package/dist/config.js +3 -0
- package/dist/config.js.map +1 -1
- package/dist/diagnostics.js +22 -3
- package/dist/diagnostics.js.map +1 -1
- package/dist/doctor.js +26 -1
- package/dist/doctor.js.map +1 -1
- package/dist/guards-evaluator/command-analysis.js +347 -86
- package/dist/guards-evaluator/command-analysis.js.map +1 -1
- package/dist/guards-evaluator/command-view.js +116 -16
- package/dist/guards-evaluator/command-view.js.map +1 -1
- package/dist/guards-evaluator/evaluate.js +185 -41
- package/dist/guards-evaluator/evaluate.js.map +1 -1
- package/dist/guards-evaluator/file-reads.js +202 -0
- package/dist/guards-evaluator/file-reads.js.map +1 -0
- package/dist/guards-evaluator/index.js +1 -1
- package/dist/guards-evaluator/index.js.map +1 -1
- package/dist/guards-evaluator/inline-danger.js +299 -0
- package/dist/guards-evaluator/inline-danger.js.map +1 -0
- package/dist/guards-evaluator/normalize.js +1186 -55
- package/dist/guards-evaluator/normalize.js.map +1 -1
- package/dist/guards-evaluator/regex.js +91 -4
- package/dist/guards-evaluator/regex.js.map +1 -1
- package/dist/guards-evaluator/shell-files.js +587 -0
- package/dist/guards-evaluator/shell-files.js.map +1 -0
- package/dist/guards-evaluator/triage.js +32 -2
- package/dist/guards-evaluator/triage.js.map +1 -1
- package/dist/hook-runner.js +25598 -5432
- package/dist/hooks/install.js +8 -3
- package/dist/hooks/install.js.map +1 -1
- package/dist/hooks/runtime/antigravity-session.js +109 -50
- package/dist/hooks/runtime/antigravity-session.js.map +1 -1
- package/dist/hooks/runtime/apply-patch.js +92 -0
- package/dist/hooks/runtime/apply-patch.js.map +1 -0
- package/dist/hooks/runtime/caller-gate.js +27 -0
- package/dist/hooks/runtime/caller-gate.js.map +1 -0
- package/dist/hooks/runtime/code-mode.js +259 -0
- package/dist/hooks/runtime/code-mode.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/api.js +179 -0
- package/dist/hooks/runtime/dependency-check/api.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/capabilities.js +99 -0
- package/dist/hooks/runtime/dependency-check/capabilities.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/checked-packages.js +48 -0
- package/dist/hooks/runtime/dependency-check/checked-packages.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/commands/cwd.js +154 -0
- package/dist/hooks/runtime/dependency-check/commands/cwd.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/commands/env.js +99 -0
- package/dist/hooks/runtime/dependency-check/commands/env.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/commands/flags.js +164 -0
- package/dist/hooks/runtime/dependency-check/commands/flags.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/commands/managers.js +418 -0
- package/dist/hooks/runtime/dependency-check/commands/managers.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/commands/peel.js +111 -0
- package/dist/hooks/runtime/dependency-check/commands/peel.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/commands/shell.js +217 -0
- package/dist/hooks/runtime/dependency-check/commands/shell.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/commands/types.js +4 -0
- package/dist/hooks/runtime/dependency-check/commands/types.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/commands.js +34 -0
- package/dist/hooks/runtime/dependency-check/commands.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/deadlines.js +69 -0
- package/dist/hooks/runtime/dependency-check/deadlines.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/dispatch.js +344 -0
- package/dist/hooks/runtime/dependency-check/dispatch.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/entering.js +63 -0
- package/dist/hooks/runtime/dependency-check/entering.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/exec-cache.js +36 -0
- package/dist/hooks/runtime/dependency-check/exec-cache.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/git-blob.js +116 -0
- package/dist/hooks/runtime/dependency-check/git-blob.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/hook.js +418 -0
- package/dist/hooks/runtime/dependency-check/hook.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/local-store.js +74 -0
- package/dist/hooks/runtime/dependency-check/local-store.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfile-walk.js +89 -0
- package/dist/hooks/runtime/dependency-check/lockfile-walk.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/bun.js +153 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/bun.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/by-name.js +46 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/by-name.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/cargo.js +91 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/cargo.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/composer.js +98 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/composer.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/gemfile.js +88 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/gemfile.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/go-mod.js +154 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/go-mod.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/gradle-lockfile.js +27 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/gradle-lockfile.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/graph.js +131 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/graph.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/npm.js +107 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/npm.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/nuget-packages-lock.js +60 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/nuget-packages-lock.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/pins.js +105 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/pins.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/pip-report.js +34 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/pip-report.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/pnpm.js +109 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/pnpm.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/poetry.js +105 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/poetry.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/uv.js +181 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/uv.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/yaml.js +319 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/yaml.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/yarn-berry.js +71 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/yarn-berry.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/yarn1.js +144 -0
- package/dist/hooks/runtime/dependency-check/lockfiles/yarn1.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests/apply.js +110 -0
- package/dist/hooks/runtime/dependency-check/manifests/apply.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests/diff.js +127 -0
- package/dist/hooks/runtime/dependency-check/manifests/diff.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests/edit.js +259 -0
- package/dist/hooks/runtime/dependency-check/manifests/edit.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests/json.js +109 -0
- package/dist/hooks/runtime/dependency-check/manifests/json.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests/kind.js +40 -0
- package/dist/hooks/runtime/dependency-check/manifests/kind.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests/patch.js +179 -0
- package/dist/hooks/runtime/dependency-check/manifests/patch.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests/text.js +665 -0
- package/dist/hooks/runtime/dependency-check/manifests/text.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests/toml.js +350 -0
- package/dist/hooks/runtime/dependency-check/manifests/toml.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/manifests.js +14 -0
- package/dist/hooks/runtime/dependency-check/manifests.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/messages.js +270 -0
- package/dist/hooks/runtime/dependency-check/messages.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/net-baseline.js +157 -0
- package/dist/hooks/runtime/dependency-check/net-baseline.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/net-state.js +70 -0
- package/dist/hooks/runtime/dependency-check/net-state.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/pending-forces.js +54 -0
- package/dist/hooks/runtime/dependency-check/pending-forces.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/post-tool-use.js +108 -0
- package/dist/hooks/runtime/dependency-check/post-tool-use.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/ranges.js +369 -0
- package/dist/hooks/runtime/dependency-check/ranges.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/requirement-files.js +144 -0
- package/dist/hooks/runtime/dependency-check/requirement-files.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/bun.js +38 -0
- package/dist/hooks/runtime/dependency-check/resolvers/bun.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/bundler.js +218 -0
- package/dist/hooks/runtime/dependency-check/resolvers/bundler.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/cargo.js +303 -0
- package/dist/hooks/runtime/dependency-check/resolvers/cargo.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/composer.js +250 -0
- package/dist/hooks/runtime/dependency-check/resolvers/composer.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/config-files.js +27 -0
- package/dist/hooks/runtime/dependency-check/resolvers/config-files.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/direct-only-registry.js +409 -0
- package/dist/hooks/runtime/dependency-check/resolvers/direct-only-registry.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/direct-only.js +290 -0
- package/dist/hooks/runtime/dependency-check/resolvers/direct-only.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/gem.js +89 -0
- package/dist/hooks/runtime/dependency-check/resolvers/gem.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/go.js +313 -0
- package/dist/hooks/runtime/dependency-check/resolvers/go.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/npm.js +81 -0
- package/dist/hooks/runtime/dependency-check/resolvers/npm.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/pip.js +229 -0
- package/dist/hooks/runtime/dependency-check/resolvers/pip.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/pipx.js +8 -0
- package/dist/hooks/runtime/dependency-check/resolvers/pipx.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/pnpm.js +68 -0
- package/dist/hooks/runtime/dependency-check/resolvers/pnpm.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/poetry.js +70 -0
- package/dist/hooks/runtime/dependency-check/resolvers/poetry.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/project.js +208 -0
- package/dist/hooks/runtime/dependency-check/resolvers/project.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/python-index.js +270 -0
- package/dist/hooks/runtime/dependency-check/resolvers/python-index.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/python.js +229 -0
- package/dist/hooks/runtime/dependency-check/resolvers/python.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/registry.js +221 -0
- package/dist/hooks/runtime/dependency-check/resolvers/registry.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/shared.js +440 -0
- package/dist/hooks/runtime/dependency-check/resolvers/shared.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/tree.js +131 -0
- package/dist/hooks/runtime/dependency-check/resolvers/tree.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/uv.js +433 -0
- package/dist/hooks/runtime/dependency-check/resolvers/uv.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/xml-lite.js +132 -0
- package/dist/hooks/runtime/dependency-check/resolvers/xml-lite.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/resolvers/yarn-berry.js +106 -0
- package/dist/hooks/runtime/dependency-check/resolvers/yarn-berry.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/sandbox.js +328 -0
- package/dist/hooks/runtime/dependency-check/sandbox.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/specs.js +171 -0
- package/dist/hooks/runtime/dependency-check/specs.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/static-view.js +90 -0
- package/dist/hooks/runtime/dependency-check/static-view.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/stop-net.js +278 -0
- package/dist/hooks/runtime/dependency-check/stop-net.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/stop-wiring.js +94 -0
- package/dist/hooks/runtime/dependency-check/stop-wiring.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/tool-call.js +130 -0
- package/dist/hooks/runtime/dependency-check/tool-call.js.map +1 -0
- package/dist/hooks/runtime/dependency-check/types.js +96 -0
- package/dist/hooks/runtime/dependency-check/types.js.map +1 -0
- package/dist/hooks/runtime/emit.js +240 -52
- package/dist/hooks/runtime/emit.js.map +1 -1
- package/dist/hooks/runtime/exit-deadlock-guard.js +24 -8
- package/dist/hooks/runtime/exit-deadlock-guard.js.map +1 -1
- package/dist/hooks/runtime/fetch-rules.js +78 -29
- package/dist/hooks/runtime/fetch-rules.js.map +1 -1
- package/dist/hooks/runtime/grep-include.js +228 -0
- package/dist/hooks/runtime/grep-include.js.map +1 -0
- package/dist/hooks/runtime/pre-compact.js +1 -1
- package/dist/hooks/runtime/pre-compact.js.map +1 -1
- package/dist/hooks/runtime/pre-invocation.js +3 -3
- package/dist/hooks/runtime/pre-invocation.js.map +1 -1
- package/dist/hooks/runtime/repo-registry.js +72 -0
- package/dist/hooks/runtime/repo-registry.js.map +1 -0
- package/dist/hooks/runtime/repo-scope.js +75 -0
- package/dist/hooks/runtime/repo-scope.js.map +1 -0
- package/dist/hooks/runtime/resolve.js +11 -2
- package/dist/hooks/runtime/resolve.js.map +1 -1
- package/dist/hooks/runtime/runner-args.js +17 -2
- package/dist/hooks/runtime/runner-args.js.map +1 -1
- package/dist/hooks/runtime/script-resolve.js +21 -5
- package/dist/hooks/runtime/script-resolve.js.map +1 -1
- package/dist/hooks/runtime/session-activation.js +71 -18
- package/dist/hooks/runtime/session-activation.js.map +1 -1
- package/dist/hooks/runtime/session-review.js +136 -66
- package/dist/hooks/runtime/session-review.js.map +1 -1
- package/dist/hooks/runtime/session-start.js +68 -13
- package/dist/hooks/runtime/session-start.js.map +1 -1
- package/dist/hooks/runtime/session-writes.js +11 -5
- package/dist/hooks/runtime/session-writes.js.map +1 -1
- package/dist/hooks/runtime/shell-writes.js +7 -88
- package/dist/hooks/runtime/shell-writes.js.map +1 -1
- package/dist/hooks/runtime/sniff.js +227 -2
- package/dist/hooks/runtime/sniff.js.map +1 -1
- package/dist/hooks/runtime/target-resolve.js +32 -17
- package/dist/hooks/runtime/target-resolve.js.map +1 -1
- package/dist/hooks/runtime/unmapped-tools.js +77 -1
- package/dist/hooks/runtime/unmapped-tools.js.map +1 -1
- package/dist/hooks/runtime/user-prompt-submit.js +1 -1
- package/dist/hooks/runtime/user-prompt-submit.js.map +1 -1
- package/dist/hooks/runtime/work-dir.js +3 -0
- package/dist/hooks/runtime/work-dir.js.map +1 -1
- package/dist/hooks/shim.js +27 -20
- package/dist/hooks/shim.js.map +1 -1
- package/dist/index.js +40 -3
- package/dist/index.js.map +1 -1
- package/dist/install-scope.js +12 -0
- package/dist/install-scope.js.map +1 -0
- package/dist/install.js +188 -78
- package/dist/install.js.map +1 -1
- package/dist/link.js +55 -5
- package/dist/link.js.map +1 -1
- package/dist/mcp/config/hook.js +25 -0
- package/dist/mcp/config/hook.js.map +1 -1
- package/dist/org.js +3 -1
- package/dist/org.js.map +1 -1
- package/dist/prompts.js +96 -12
- package/dist/prompts.js.map +1 -1
- package/dist/refresh-hooks.js +67 -15
- package/dist/refresh-hooks.js.map +1 -1
- package/dist/repo/exclude-block.js +112 -0
- package/dist/repo/exclude-block.js.map +1 -0
- package/dist/repo/footer.js +93 -0
- package/dist/repo/footer.js.map +1 -0
- package/dist/repo/git-repo.js +77 -0
- package/dist/repo/git-repo.js.map +1 -0
- package/dist/repo/guarded-write.js +45 -0
- package/dist/repo/guarded-write.js.map +1 -0
- package/dist/repo/install-repo.js +508 -0
- package/dist/repo/install-repo.js.map +1 -0
- package/dist/repo/machine-wiring.js +122 -0
- package/dist/repo/machine-wiring.js.map +1 -0
- package/dist/repo/mcp-json.js +57 -0
- package/dist/repo/mcp-json.js.map +1 -0
- package/dist/repo/registry.js +53 -0
- package/dist/repo/registry.js.map +1 -0
- package/dist/repo/repo-mode-guard.js +83 -0
- package/dist/repo/repo-mode-guard.js.map +1 -0
- package/dist/repo/repo-setups.js +123 -0
- package/dist/repo/repo-setups.js.map +1 -0
- package/dist/repo/repo-status.js +283 -0
- package/dist/repo/repo-status.js.map +1 -0
- package/dist/repo/uninstall-repo.js +56 -0
- package/dist/repo/uninstall-repo.js.map +1 -0
- package/dist/repo/unsupported.js +14 -0
- package/dist/repo/unsupported.js.map +1 -0
- package/dist/shim.js +9 -7
- package/dist/status.js +53 -11
- package/dist/status.js.map +1 -1
- package/dist/uninstall.js +51 -3
- package/dist/uninstall.js.map +1 -1
- package/dist/update.js +6 -1
- package/dist/update.js.map +1 -1
- package/package.json +5 -2
|
@@ -34,13 +34,17 @@
|
|
|
34
34
|
* `decision` shapes (see the Antigravity branches below), and NEVER
|
|
35
35
|
* with more than one JSON object: Antigravity BLOCKS the tool call
|
|
36
36
|
* when a PreToolUse hook crashes, times out, exits non-zero, or prints
|
|
37
|
-
* anything that is not exactly one JSON object on stdout.
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
37
|
+
* anything that is not exactly one JSON object on stdout.
|
|
38
|
+
* - OpenCode (BACK-255): the plugin reads one object too, `{ decision?,
|
|
39
|
+
* reason?, context? }` (`emitOpenCodeAnswer`), and falls back to its own
|
|
40
|
+
* answer when it finds none.
|
|
41
|
+
* Every write for either client (the "JSON-contract" clients,
|
|
42
|
+
* `isJsonContractClient`) goes through `writeJsonContractPayload`, which
|
|
43
|
+
* tracks, in module state, whether this run already wrote one, and
|
|
44
|
+
* `finishJsonContractRun` is the safety net the hook runner calls on every
|
|
45
|
+
* exit path so a crashed or silent run still answers `allow` (or `{}`).
|
|
46
|
+
* That one write goes synchronously to fd 1 (`writeStdoutSync`), never
|
|
47
|
+
* through `process.stdout`, so the runner can exit right after it.
|
|
44
48
|
*
|
|
45
49
|
* `emitContext` is the context-injection path for hooks whose body must
|
|
46
50
|
* reach the MODEL (session-start, fetch-rules). It takes the emitting hook's
|
|
@@ -87,26 +91,40 @@ const NO_MODEL_CHANNEL = {
|
|
|
87
91
|
export function hasModelChannel(client, event) {
|
|
88
92
|
return !NO_MODEL_CHANNEL[event]?.has(client);
|
|
89
93
|
}
|
|
90
|
-
// ─── Antigravity (BACK-241)
|
|
94
|
+
// ─── The JSON-contract clients: Antigravity (BACK-241), OpenCode (BACK-255) ──
|
|
91
95
|
//
|
|
92
96
|
// Antigravity's contract is stricter than every other client's: exactly ONE
|
|
93
97
|
// JSON object on stdout per hook run, exit code 0, always — a crash, a
|
|
94
|
-
// timeout, a non-zero exit or a second object are all read as "block".
|
|
95
|
-
// is
|
|
96
|
-
//
|
|
98
|
+
// timeout, a non-zero exit or a second object are all read as "block".
|
|
99
|
+
// OpenCode's is the same in practice: its plugin (BACK-255) spawns the runner
|
|
100
|
+
// for each call, parses the first stdout line that is a JSON object, and
|
|
101
|
+
// answers `allow` itself when it finds none, but a runner that always prints
|
|
102
|
+
// one clean object is what keeps that fallback for real failures. Both
|
|
103
|
+
// clients go through the same machinery, which enforces the contract in two
|
|
104
|
+
// places:
|
|
105
|
+
// - here, with a per-run ledger (`jsonContractWritten`) so a SECOND write
|
|
97
106
|
// in the same process (e.g. a hook that both emits context and later
|
|
98
107
|
// emits a Stop decision) is silently dropped instead of producing two
|
|
99
108
|
// objects;
|
|
100
109
|
// - in the hook runner's entry point (index.ts), which calls
|
|
101
|
-
// `
|
|
102
|
-
//
|
|
103
|
-
//
|
|
110
|
+
// `finishJsonContractRun` on every exit path so a run that wrote nothing
|
|
111
|
+
// (because it crashed, or because the event has no channel for this
|
|
112
|
+
// client) still answers with a safe default.
|
|
104
113
|
//
|
|
105
|
-
//
|
|
114
|
+
// Only the SHAPES differ per client: Antigravity's `injectSteps` / `decision`
|
|
115
|
+
// objects (the Antigravity branches below) and OpenCode's `{ decision?,
|
|
116
|
+
// reason?, context? }` (`emitOpenCodeAnswer`).
|
|
117
|
+
//
|
|
118
|
+
// `resetJsonContractRunState` exists for tests only: production always starts
|
|
106
119
|
// a fresh process per hook run, so the ledger is naturally unset.
|
|
107
|
-
let
|
|
108
|
-
export function
|
|
109
|
-
|
|
120
|
+
let jsonContractWritten = false;
|
|
121
|
+
export function resetJsonContractRunState() {
|
|
122
|
+
jsonContractWritten = false;
|
|
123
|
+
}
|
|
124
|
+
/** The name the Antigravity suites have always used for the same reset. */
|
|
125
|
+
export const resetAntigravityRunState = resetJsonContractRunState;
|
|
126
|
+
export function isJsonContractClient(client) {
|
|
127
|
+
return client === 'antigravity' || client === 'opencode';
|
|
110
128
|
}
|
|
111
129
|
/**
|
|
112
130
|
* Writes `text` whole to fd 1, synchronously, and returns once every byte is
|
|
@@ -122,8 +140,9 @@ export function resetAntigravityRunState() {
|
|
|
122
140
|
* anything reads `process.stdout` (kleur does, at import), and the agent may
|
|
123
141
|
* hand one over that way. A full pipe then answers `EAGAIN`: the write is
|
|
124
142
|
* retried every 5 ms, for 2 s at most in total, then dropped. Any other
|
|
125
|
-
* error drops it too. Never throws: an answer that cannot be written is
|
|
126
|
-
*
|
|
143
|
+
* error drops it too. Never throws: an answer that cannot be written is the
|
|
144
|
+
* agent's to read as a block (Antigravity) or as no answer (OpenCode's
|
|
145
|
+
* plugin falls back), not a crash of ours.
|
|
127
146
|
*
|
|
128
147
|
* shim.ts carries a copy (it imports nothing of the runtime), pinned to
|
|
129
148
|
* behave the same by tests/e2e/stdout-sync.e2e.test.ts.
|
|
@@ -152,30 +171,33 @@ export function writeStdoutSync(text) {
|
|
|
152
171
|
}
|
|
153
172
|
}
|
|
154
173
|
/**
|
|
155
|
-
* Where
|
|
156
|
-
* only, `
|
|
157
|
-
* fd 1 bypasses a spy on `process.stdout.write` — and `null`
|
|
174
|
+
* Where a JSON-contract client's answer goes: `writeStdoutSync` (fd 1). For
|
|
175
|
+
* tests only, `setJsonContractWriter` sends it elsewhere — a synchronous
|
|
176
|
+
* write to fd 1 bypasses a spy on `process.stdout.write` — and `null`
|
|
177
|
+
* restores fd 1.
|
|
158
178
|
*/
|
|
159
|
-
let
|
|
160
|
-
export function
|
|
161
|
-
|
|
179
|
+
let jsonContractWriter = writeStdoutSync;
|
|
180
|
+
export function setJsonContractWriter(writer) {
|
|
181
|
+
jsonContractWriter = writer ?? writeStdoutSync;
|
|
162
182
|
}
|
|
163
|
-
/** The
|
|
164
|
-
|
|
165
|
-
|
|
183
|
+
/** The name the Antigravity suites have always used for the same redirect. */
|
|
184
|
+
export const setAntigravityWriter = setJsonContractWriter;
|
|
185
|
+
/** The only function that writes to stdout for a JSON-contract client. */
|
|
186
|
+
function writeJsonContractPayload(payload) {
|
|
187
|
+
if (jsonContractWritten)
|
|
166
188
|
return;
|
|
167
|
-
|
|
168
|
-
|
|
189
|
+
jsonContractWritten = true;
|
|
190
|
+
jsonContractWriter(JSON.stringify(payload) + '\n');
|
|
169
191
|
}
|
|
170
192
|
/**
|
|
171
193
|
* Writes Antigravity's guard-check decision. Used by guard-check (Task 12)
|
|
172
194
|
* in place of the regex/judge verdict's generic `emitAgentMessage` path.
|
|
173
195
|
*/
|
|
174
196
|
export function emitAntigravityDecision(decision, reason) {
|
|
175
|
-
|
|
197
|
+
writeJsonContractPayload({ decision, ...(reason ? { reason } : {}) });
|
|
176
198
|
}
|
|
177
199
|
/**
|
|
178
|
-
* The subcommands that gate a tool call (see `
|
|
200
|
+
* The subcommands that gate a tool call (see `finishJsonContractRun`).
|
|
179
201
|
* Exported so the adapter's own command-builder (`antigravityHookCommand`)
|
|
180
202
|
* reads the SAME set when it decides which PreToolUse subcommands need the
|
|
181
203
|
* `{"decision":"allow"}` shell fallback instead of `{}` — one place names
|
|
@@ -186,47 +208,88 @@ export const PRE_TOOL_USE_SUBCOMMANDS = new Set([
|
|
|
186
208
|
'guard-check',
|
|
187
209
|
'pre-tool-use',
|
|
188
210
|
'PreToolUse',
|
|
211
|
+
// The dependency check decides whether a command or a manifest edit runs.
|
|
212
|
+
'dependency-check',
|
|
189
213
|
]);
|
|
190
214
|
/**
|
|
191
|
-
* The safety net: called by the hook runner on EVERY exit path of
|
|
192
|
-
*
|
|
193
|
-
* path that would otherwise `process.exit(2)`). When nothing was
|
|
194
|
-
* this run it writes a default answer — `{"decision":"allow"}` for
|
|
195
|
-
* hooks that gate a tool call (`fetch-rules` injects context before
|
|
196
|
-
* `guard-check` decides whether it proceeds — and its aliases
|
|
197
|
-
* / `PreToolUse`, which index.ts routes to the same guard),
|
|
198
|
-
* other subcommand, which Antigravity
|
|
199
|
-
* hooks. A run that already wrote
|
|
200
|
-
* left alone — this is a
|
|
215
|
+
* The safety net: called by the hook runner on EVERY exit path of a run of a
|
|
216
|
+
* JSON-contract client (the normal path, a caught exception, and the
|
|
217
|
+
* guard-check path that would otherwise `process.exit(2)`). When nothing was
|
|
218
|
+
* written this run it writes a default answer — `{"decision":"allow"}` for
|
|
219
|
+
* the two hooks that gate a tool call (`fetch-rules` injects context before
|
|
220
|
+
* a write, `guard-check` decides whether it proceeds — and its aliases
|
|
221
|
+
* `pre-tool-use` / `PreToolUse`, which index.ts routes to the same guard),
|
|
222
|
+
* `{}` for every other subcommand, which both Antigravity and OpenCode's
|
|
223
|
+
* plugin read as "no action" for non-gating hooks. A run that already wrote
|
|
224
|
+
* (a decision, or a context shape below) is left alone — this is a
|
|
225
|
+
* fallback, never a second object.
|
|
201
226
|
*/
|
|
202
|
-
export function
|
|
227
|
+
export function finishJsonContractRun(subcommand) {
|
|
203
228
|
const payload = PRE_TOOL_USE_SUBCOMMANDS.has(subcommand)
|
|
204
229
|
? { decision: 'allow' }
|
|
205
230
|
: {};
|
|
206
|
-
|
|
231
|
+
writeJsonContractPayload(payload);
|
|
232
|
+
}
|
|
233
|
+
/** The name Antigravity's runner (and its suites) have always called it by. */
|
|
234
|
+
export const finishAntigravityRun = finishJsonContractRun;
|
|
235
|
+
// ─── OpenCode's answer (BACK-255) ───────────────────────────────────────────
|
|
236
|
+
/**
|
|
237
|
+
* What the OpenCode plugin reads from a runner run: the first stdout line
|
|
238
|
+
* that parses as a JSON object, with these three optional fields.
|
|
239
|
+
* - `decision`: `deny` makes the plugin throw `reason` out of
|
|
240
|
+
* `tool.execute.before` (the tool call does not run); `allow`, or no
|
|
241
|
+
* decision, lets it through.
|
|
242
|
+
* - `reason`: the sentence the agent reads when a call is denied.
|
|
243
|
+
* - `context`: text the plugin adds to what the model reads next (the rules
|
|
244
|
+
* after an edit and a warn's message, after the tool's result on V1 and in
|
|
245
|
+
* front of it on V2; the session bootstrap; the session review).
|
|
246
|
+
*/
|
|
247
|
+
/**
|
|
248
|
+
* What an OpenCode deny's reason starts with (BACK-255). The plugin throws
|
|
249
|
+
* the reason out of `tool.execute.before`, and the model reads it verbatim
|
|
250
|
+
* as the tool's error; the live probe (Q4) saw a model take a bare message
|
|
251
|
+
* for the command's own output and claim the command ran. So the reason
|
|
252
|
+
* first says who stopped the call and that it did not run. guard-check
|
|
253
|
+
* writes it; the session bootstrap tells the model what it looks like.
|
|
254
|
+
*/
|
|
255
|
+
export const OPENCODE_DENY_PREFIX = 'Blocked by CybeDefend: this tool call was NOT run. ';
|
|
256
|
+
/**
|
|
257
|
+
* Writes OpenCode's answer, dropping the empty fields (an empty `reason` or
|
|
258
|
+
* `context` says nothing; the plugin reads only what is there). An answer
|
|
259
|
+
* with nothing at all is `{}`, which still ends the run's one write: a later
|
|
260
|
+
* `emit` in the same run is dropped, as for Antigravity.
|
|
261
|
+
*/
|
|
262
|
+
export function emitOpenCodeAnswer(answer) {
|
|
263
|
+
writeJsonContractPayload({
|
|
264
|
+
...(answer.decision ? { decision: answer.decision } : {}),
|
|
265
|
+
...(answer.reason ? { reason: answer.reason } : {}),
|
|
266
|
+
...(answer.context ? { context: answer.context } : {}),
|
|
267
|
+
});
|
|
207
268
|
}
|
|
208
269
|
/**
|
|
209
270
|
* Antigravity's context-injection shapes, one per event. SessionStart and
|
|
210
271
|
* PreInvocation both reach the model, but through different `injectSteps`
|
|
211
272
|
* entries (Antigravity's own vocabulary). PreToolUse has no documented
|
|
212
273
|
* context channel at all: this writes NOTHING and does not mark the run as
|
|
213
|
-
* written, so `
|
|
274
|
+
* written, so `finishJsonContractRun` still gets to answer `allow` for it.
|
|
214
275
|
*/
|
|
215
276
|
function emitAntigravityContext(body, hookEventName) {
|
|
216
277
|
if (hookEventName === 'PreToolUse')
|
|
217
278
|
return;
|
|
218
279
|
if (hookEventName === 'SessionStart') {
|
|
219
|
-
|
|
280
|
+
writeJsonContractPayload({
|
|
220
281
|
injectSteps: [{ systemMessage: { systemMessage: body } }],
|
|
221
282
|
});
|
|
222
283
|
return;
|
|
223
284
|
}
|
|
224
285
|
// PreInvocation
|
|
225
|
-
|
|
286
|
+
writeJsonContractPayload({ injectSteps: [{ ephemeralMessage: body }] });
|
|
226
287
|
}
|
|
227
288
|
/**
|
|
228
289
|
* Plain-markdown context for the clients whose contract is plain stdout
|
|
229
|
-
* (Claude Code SessionStart / UserPromptSubmit, Windsurf).
|
|
290
|
+
* (Claude Code SessionStart / UserPromptSubmit, Windsurf). Antigravity and
|
|
291
|
+
* OpenCode get their one JSON object (an `ephemeralMessage` step, a
|
|
292
|
+
* `context`).
|
|
230
293
|
*
|
|
231
294
|
* Cursor gets nothing: no Cursor event reads plain stdout, and on a
|
|
232
295
|
* permission hook (preToolUse) invalid JSON blocks the user's action.
|
|
@@ -235,7 +298,11 @@ export function emit(body, client) {
|
|
|
235
298
|
if (!body)
|
|
236
299
|
return;
|
|
237
300
|
if (client === 'antigravity') {
|
|
238
|
-
|
|
301
|
+
writeJsonContractPayload({ injectSteps: [{ ephemeralMessage: body }] });
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (client === 'opencode') {
|
|
305
|
+
emitOpenCodeAnswer({ context: body });
|
|
239
306
|
return;
|
|
240
307
|
}
|
|
241
308
|
if (client === 'cursor')
|
|
@@ -257,6 +324,18 @@ export function emitContext(body, client, hookEventName) {
|
|
|
257
324
|
emitAntigravityContext(body, hookEventName);
|
|
258
325
|
return;
|
|
259
326
|
}
|
|
327
|
+
if (client === 'opencode') {
|
|
328
|
+
// Before a tool call the answer is also a verdict, `allow`: the rules
|
|
329
|
+
// body travels in the same object (fetch-rules). Every other event is a
|
|
330
|
+
// context and nothing else (OpenCode has no PreInvocation).
|
|
331
|
+
if (hookEventName === 'PreToolUse') {
|
|
332
|
+
emitOpenCodeAnswer({ decision: 'allow', context: body });
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
emitOpenCodeAnswer({ context: body });
|
|
336
|
+
}
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
260
339
|
if (!hasModelChannel(client, hookEventName))
|
|
261
340
|
return;
|
|
262
341
|
// Cursor's sessionStart reads only `additional_context` ("added to the
|
|
@@ -327,7 +406,10 @@ export function emitSessionNotice(notice, client) {
|
|
|
327
406
|
* inside `hookSpecificOutput` (Local harness).
|
|
328
407
|
* - Cursor: `followup_message`, submitted as the next user message.
|
|
329
408
|
* - Antigravity (BACK-241): `{ decision: "continue", reason }`, written
|
|
330
|
-
* once (`
|
|
409
|
+
* once (`writeJsonContractPayload`).
|
|
410
|
+
* - OpenCode (BACK-255): `{ context: body }`, written once
|
|
411
|
+
* (`emitOpenCodeAnswer`); the plugin sends it to the session as the
|
|
412
|
+
* review message.
|
|
331
413
|
*
|
|
332
414
|
* The non-Claude clients get the full `body` as the next prompt: they have
|
|
333
415
|
* no per-prompt doctrine hook, so the concise reason would name tools
|
|
@@ -359,7 +441,13 @@ export function emitStop(body, client, reason) {
|
|
|
359
441
|
writeJson({ followup_message: body });
|
|
360
442
|
return;
|
|
361
443
|
case 'antigravity':
|
|
362
|
-
|
|
444
|
+
writeJsonContractPayload({ decision: 'continue', reason: body });
|
|
445
|
+
return;
|
|
446
|
+
case 'opencode':
|
|
447
|
+
// The whole body, as Antigravity's (Ruling R12): the plugin sends it to
|
|
448
|
+
// the session as the review message, and there is no per-prompt
|
|
449
|
+
// doctrine hook to carry the workflow if only a concise trigger arrived.
|
|
450
|
+
emitOpenCodeAnswer({ context: body });
|
|
363
451
|
return;
|
|
364
452
|
default:
|
|
365
453
|
emit(body, client);
|
|
@@ -369,4 +457,104 @@ export function emitStop(body, client, reason) {
|
|
|
369
457
|
function writeJson(payload) {
|
|
370
458
|
process.stdout.write(JSON.stringify(payload) + '\n');
|
|
371
459
|
}
|
|
460
|
+
/**
|
|
461
|
+
* The dependency check's decision on a tool call, in each client's own
|
|
462
|
+
* fields, as ONE JSON object on stdout at most (a deny also writes the
|
|
463
|
+
* agent's text on stderr, which is not stdout).
|
|
464
|
+
* `forUser` is what the developer reads (the permission prompt, a system
|
|
465
|
+
* message), `forAgent` what the model reads (the deny reason, the context of
|
|
466
|
+
* an allowed call).
|
|
467
|
+
*
|
|
468
|
+
* An allow NEVER carries a permission decision: `permissionDecision: "allow"`
|
|
469
|
+
* (Claude Code, Codex, VS Code) and `permission: "allow"` (Cursor) approve
|
|
470
|
+
* the call past the developer's own permission settings, and the check has
|
|
471
|
+
* no business approving a command the developer would have been asked about.
|
|
472
|
+
* An allow therefore only adds context, where a client reads context on a
|
|
473
|
+
* pre-call hook; Cursor and Windsurf read none, and get nothing.
|
|
474
|
+
*
|
|
475
|
+
* - Claude Code, Codex: `hookSpecificOutput.permissionDecision` with
|
|
476
|
+
* `permissionDecisionReason` (the developer's text on ask, the agent's on
|
|
477
|
+
* deny), `additionalContext` on allow, `systemMessage` for the developer.
|
|
478
|
+
* - VS Code: the same, with the decision also at the top level, where its
|
|
479
|
+
* Copilot harness reads it.
|
|
480
|
+
* - Cursor: `permission`, `user_message`, `agent_message`.
|
|
481
|
+
* - Antigravity: its `decision`, `force_ask` for ask (`emitAntigravityDecision`).
|
|
482
|
+
* - Windsurf (and an unknown client): nothing on allow.
|
|
483
|
+
*
|
|
484
|
+
* A deny is written the way the Action Guards' is (`emitAgentMessage` in
|
|
485
|
+
* guard-check.ts): the agent's text on stderr for every client, the JSON
|
|
486
|
+
* above where the client reads one, and exit 2 (`dependencyDecisionExitCode`)
|
|
487
|
+
* everywhere but Antigravity, which reads a non-zero exit as a crashed hook.
|
|
488
|
+
* Exit 2 is the hard block each client documents (Claude Code feeds stderr to
|
|
489
|
+
* the model; `cursor.ts` records it as Cursor's verified block).
|
|
490
|
+
*/
|
|
491
|
+
export function emitDependencyDecision(client, decision, text) {
|
|
492
|
+
const { forUser, forAgent } = text;
|
|
493
|
+
if (decision === 'allow' && forUser === '' && forAgent === '')
|
|
494
|
+
return;
|
|
495
|
+
if (decision === 'deny') {
|
|
496
|
+
try {
|
|
497
|
+
process.stderr.write(`${forAgent}\n`);
|
|
498
|
+
}
|
|
499
|
+
catch {
|
|
500
|
+
// stderr is gone: the JSON and the exit code still refuse the call.
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
switch (client) {
|
|
504
|
+
case 'claude-code':
|
|
505
|
+
case 'codex':
|
|
506
|
+
case 'vscode': {
|
|
507
|
+
const payload = {};
|
|
508
|
+
if (forUser !== '' && decision !== 'ask')
|
|
509
|
+
payload.systemMessage = forUser;
|
|
510
|
+
if (decision === 'allow') {
|
|
511
|
+
if (forAgent !== '')
|
|
512
|
+
payload.hookSpecificOutput = { hookEventName: 'PreToolUse', additionalContext: forAgent };
|
|
513
|
+
}
|
|
514
|
+
else {
|
|
515
|
+
const reason = decision === 'ask' ? forUser : forAgent;
|
|
516
|
+
payload.hookSpecificOutput = {
|
|
517
|
+
hookEventName: 'PreToolUse',
|
|
518
|
+
permissionDecision: decision,
|
|
519
|
+
permissionDecisionReason: reason,
|
|
520
|
+
};
|
|
521
|
+
if (client === 'vscode') {
|
|
522
|
+
payload.permissionDecision = decision;
|
|
523
|
+
payload.permissionDecisionReason = reason;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
if (Object.keys(payload).length > 0)
|
|
527
|
+
writeJson(payload);
|
|
528
|
+
return;
|
|
529
|
+
}
|
|
530
|
+
case 'cursor':
|
|
531
|
+
if (decision === 'allow')
|
|
532
|
+
return;
|
|
533
|
+
writeJson({ permission: decision, user_message: forUser, agent_message: forAgent });
|
|
534
|
+
return;
|
|
535
|
+
case 'antigravity':
|
|
536
|
+
if (decision === 'allow')
|
|
537
|
+
emitAntigravityDecision('allow', forAgent || undefined);
|
|
538
|
+
else if (decision === 'ask')
|
|
539
|
+
emitAntigravityDecision('force_ask', forUser);
|
|
540
|
+
else
|
|
541
|
+
emitAntigravityDecision('deny', forAgent);
|
|
542
|
+
return;
|
|
543
|
+
default:
|
|
544
|
+
// Windsurf and an unknown client read no JSON here: a refusal is the
|
|
545
|
+
// stderr above and exit 2.
|
|
546
|
+
return;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* The exit code that goes with a dependency decision: a deny exits 2, as the
|
|
551
|
+
* Action Guards' does (`denyExitCode` in guard-check.ts), except on
|
|
552
|
+
* Antigravity, which blocks on its JSON and reads a non-zero exit as a
|
|
553
|
+
* crashed hook. Allow and ask exit 0: only their JSON carries them.
|
|
554
|
+
*/
|
|
555
|
+
export function dependencyDecisionExitCode(client, decision) {
|
|
556
|
+
if (decision !== 'deny')
|
|
557
|
+
return 0;
|
|
558
|
+
return client === 'antigravity' ? 0 : 2;
|
|
559
|
+
}
|
|
372
560
|
//# sourceMappingURL=emit.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit.js","sourceRoot":"","sources":["../../../src/hooks/runtime/emit.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"emit.js","sourceRoot":"","sources":["../../../src/hooks/runtime/emit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAUpC;;;;;;;;;GASG;AACH,MAAM,gBAAgB,GAAoD;IACxE,YAAY,EAAE,IAAI,GAAG,CAAW,C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E,QAAQ,IAAI,SAAS,CAAC,CAAC;iBAC7E,IAAI,QAAQ,KAAK,KAAK;gBAAE,uBAAuB,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;;gBACtE,uBAAuB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;YAC/C,OAAO;QACT;YACE,qEAAqE;YACrE,2BAA2B;YAC3B,OAAO;IACX,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CAAC,MAAgB,EAAE,QAA4B;IACvF,IAAI,QAAQ,KAAK,MAAM;QAAE,OAAO,CAAC,CAAC;IAClC,OAAO,MAAM,KAAK,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Keeps an Antigravity run from hanging inside its own
|
|
3
|
-
* (BACK-241, R4). Imported FIRST by index.ts, so
|
|
4
|
-
* of the runner loads.
|
|
2
|
+
* Keeps an Antigravity or OpenCode run from hanging inside its own
|
|
3
|
+
* `process.exit` (BACK-241, R4; BACK-255). Imported FIRST by index.ts, so
|
|
4
|
+
* this runs before the rest of the runner loads.
|
|
5
5
|
*
|
|
6
6
|
* From Node 24 on, V8 compiles warm functions in the background (concurrent
|
|
7
7
|
* Sparkplug, Maglev). Such a job that runs out of heap parks and waits for
|
|
@@ -23,15 +23,31 @@
|
|
|
23
23
|
*
|
|
24
24
|
* With both compilers off, 0 hangs in 125 runs from `dist/`, and runs were
|
|
25
25
|
* no slower (a hook run is about 80 ms; there is nothing for those
|
|
26
|
-
* compilers to win there). Only an Antigravity run
|
|
27
|
-
* has the same hang on every other client's exit, but
|
|
28
|
-
* is outside BACK-241.
|
|
26
|
+
* compilers to win there). Only an Antigravity run and an OpenCode run turn
|
|
27
|
+
* them off: Node has the same hang on every other client's exit, but
|
|
28
|
+
* changing their runs is outside BACK-241 and BACK-255. OpenCode's plugin
|
|
29
|
+
* spawns the runner for every tool call and kills it at its timeout, so a
|
|
30
|
+
* run hung inside `process.exit` would be a stray process per call and a
|
|
31
|
+
* call that waits out the whole timeout.
|
|
32
|
+
*
|
|
33
|
+
* A `flush-violations` run turns them off too, whichever client started it.
|
|
34
|
+
* It is detached: nobody waits for it and nobody kills it, so one that hangs
|
|
35
|
+
* stays until the machine restarts (the final review of BACK-255 sampled two).
|
|
36
|
+
* Its flags are set here and not on the command line that starts it, as for the
|
|
37
|
+
* other runs: Node 18.17 refuses both on a command line (`bad option`, exit 9), so
|
|
38
|
+
* the flush would never start and the guard triggers would never be posted.
|
|
29
39
|
*/
|
|
30
40
|
import { setFlagsFromString } from 'node:v8';
|
|
41
|
+
import { isJsonContractClient } from './emit.js';
|
|
31
42
|
import { parseRunnerArgs } from './runner-args.js';
|
|
32
|
-
/**
|
|
43
|
+
/**
|
|
44
|
+
* The V8 flags a run with this argv sets before anything else loads: for the
|
|
45
|
+
* clients whose runs follow the one-JSON-object contract
|
|
46
|
+
* (`isJsonContractClient`) and for a violations flush, none for any other run.
|
|
47
|
+
*/
|
|
33
48
|
export function exitDeadlockFlags(argv) {
|
|
34
|
-
|
|
49
|
+
const { subcommand, client } = parseRunnerArgs(argv);
|
|
50
|
+
if (subcommand !== 'flush-violations' && !isJsonContractClient(client))
|
|
35
51
|
return [];
|
|
36
52
|
return ['--no-concurrent-sparkplug', '--no-maglev'];
|
|
37
53
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exit-deadlock-guard.js","sourceRoot":"","sources":["../../../src/hooks/runtime/exit-deadlock-guard.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"exit-deadlock-guard.js","sourceRoot":"","sources":["../../../src/hooks/runtime/exit-deadlock-guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAuB;IACvD,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,eAAe,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,UAAU,KAAK,kBAAkB,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC;QAAE,OAAO,EAAE,CAAC;IAClF,OAAO,CAAC,2BAA2B,EAAE,aAAa,CAAC,CAAC;AACtD,CAAC;AAED,KAAK,MAAM,IAAI,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAC5D,IAAI,CAAC;QACH,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,+CAA+C;IACjD,CAAC;AACH,CAAC"}
|