@lannguyensi/harness 0.64.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/README.md +46 -42
- package/dist/cli/add/index.js +17 -21
- package/dist/cli/add/index.js.map +1 -1
- package/dist/cli/adopt/derive.d.ts +2 -2
- package/dist/cli/adopt/derive.js +2 -19
- package/dist/cli/adopt/derive.js.map +1 -1
- package/dist/cli/adopt/index.d.ts +1 -1
- package/dist/cli/adopt/index.js +1 -12
- package/dist/cli/adopt/index.js.map +1 -1
- package/dist/cli/apply/apply.d.ts +20 -35
- package/dist/cli/apply/apply.js +61 -136
- package/dist/cli/apply/apply.js.map +1 -1
- package/dist/cli/apply/generate-codex-config.js +10 -58
- package/dist/cli/apply/generate-codex-config.js.map +1 -1
- package/dist/cli/apply/generate-memory-index.js +1 -2
- package/dist/cli/apply/generate-memory-index.js.map +1 -1
- package/dist/cli/apply/generate-opencode-config.d.ts +2 -10
- package/dist/cli/apply/generate-opencode-config.js +74 -113
- package/dist/cli/apply/generate-opencode-config.js.map +1 -1
- package/dist/cli/apply/generate-settings.d.ts +11 -64
- package/dist/cli/apply/generate-settings.js +27 -132
- package/dist/cli/apply/generate-settings.js.map +1 -1
- package/dist/cli/apply/index.d.ts +1 -1
- package/dist/cli/apply/index.js +1 -1
- package/dist/cli/apply/index.js.map +1 -1
- package/dist/cli/apply/install-codex-config.d.ts +153 -1
- package/dist/cli/apply/install-codex-config.js +445 -70
- package/dist/cli/apply/install-codex-config.js.map +1 -1
- package/dist/cli/apply/next-steps.d.ts +7 -0
- package/dist/cli/apply/next-steps.js +13 -1
- package/dist/cli/apply/next-steps.js.map +1 -1
- package/dist/cli/bounded-stdin.d.ts +0 -23
- package/dist/cli/bounded-stdin.js +2 -49
- package/dist/cli/bounded-stdin.js.map +1 -1
- package/dist/cli/describe.d.ts +1 -1
- package/dist/cli/describe.js +0 -3
- package/dist/cli/describe.js.map +1 -1
- package/dist/cli/diff/engine.d.ts +0 -11
- package/dist/cli/diff/engine.js +1 -17
- package/dist/cli/diff/engine.js.map +1 -1
- package/dist/cli/diff/index.js +14 -25
- package/dist/cli/diff/index.js.map +1 -1
- package/dist/cli/doctor/claude-mcp.d.ts +4 -19
- package/dist/cli/doctor/claude-mcp.js +11 -22
- package/dist/cli/doctor/claude-mcp.js.map +1 -1
- package/dist/cli/doctor/codex.d.ts +12 -14
- package/dist/cli/doctor/codex.js +31 -144
- package/dist/cli/doctor/codex.js.map +1 -1
- package/dist/cli/doctor/format.js +23 -345
- package/dist/cli/doctor/format.js.map +1 -1
- package/dist/cli/doctor/hook-liveness.d.ts +56 -0
- package/dist/cli/doctor/hook-liveness.js +455 -0
- package/dist/cli/doctor/hook-liveness.js.map +1 -0
- package/dist/cli/doctor/index.d.ts +13 -87
- package/dist/cli/doctor/index.js +57 -713
- package/dist/cli/doctor/index.js.map +1 -1
- package/dist/cli/doctor/opencode.d.ts +2 -1
- package/dist/cli/doctor/opencode.js.map +1 -1
- package/dist/cli/doctor/types.d.ts +21 -387
- package/dist/cli/doctor/types.js.map +1 -1
- package/dist/cli/drain-stdio.d.ts +31 -0
- package/dist/cli/drain-stdio.js +76 -0
- package/dist/cli/drain-stdio.js.map +1 -0
- package/dist/cli/export.d.ts +3 -1
- package/dist/cli/export.js +7 -16
- package/dist/cli/export.js.map +1 -1
- package/dist/cli/gate/codex-disable.d.ts +29 -0
- package/dist/cli/gate/codex-disable.js +195 -0
- package/dist/cli/gate/codex-disable.js.map +1 -0
- package/dist/cli/gate/codex-enable.d.ts +41 -0
- package/dist/cli/gate/codex-enable.js +127 -0
- package/dist/cli/gate/codex-enable.js.map +1 -0
- package/dist/cli/gate/codex-snapshot.d.ts +208 -0
- package/dist/cli/gate/codex-snapshot.js +402 -0
- package/dist/cli/gate/codex-snapshot.js.map +1 -0
- package/dist/cli/gate/disable.d.ts +9 -0
- package/dist/cli/gate/disable.js +263 -28
- package/dist/cli/gate/disable.js.map +1 -1
- package/dist/cli/gate/enable.d.ts +26 -6
- package/dist/cli/gate/enable.js +152 -80
- package/dist/cli/gate/enable.js.map +1 -1
- package/dist/cli/gate/link-chain.d.ts +53 -0
- package/dist/cli/gate/link-chain.js +122 -0
- package/dist/cli/gate/link-chain.js.map +1 -0
- package/dist/cli/gate/snapshot.d.ts +289 -12
- package/dist/cli/gate/snapshot.js +481 -22
- package/dist/cli/gate/snapshot.js.map +1 -1
- package/dist/cli/index.d.ts +0 -9
- package/dist/cli/index.js +9 -2131
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init/composer.d.ts +3 -6
- package/dist/cli/init/composer.js +6 -370
- package/dist/cli/init/composer.js.map +1 -1
- package/dist/cli/init/dependencies.d.ts +1 -2
- package/dist/cli/init/dependencies.js +4 -80
- package/dist/cli/init/dependencies.js.map +1 -1
- package/dist/cli/init/detect.js +5 -4
- package/dist/cli/init/detect.js.map +1 -1
- package/dist/cli/init/interactive.d.ts +1 -23
- package/dist/cli/init/interactive.js +33 -247
- package/dist/cli/init/interactive.js.map +1 -1
- package/dist/cli/init/profiles.d.ts +2 -2
- package/dist/cli/init/profiles.js +51 -245
- package/dist/cli/init/profiles.js.map +1 -1
- package/dist/cli/init/templates.d.ts +2 -37
- package/dist/cli/init/templates.js +25 -1237
- package/dist/cli/init/templates.js.map +1 -1
- package/dist/cli/list.d.ts +1 -1
- package/dist/cli/list.js +1 -38
- package/dist/cli/list.js.map +1 -1
- package/dist/cli/loader.d.ts +15 -1
- package/dist/cli/loader.js +56 -39
- package/dist/cli/loader.js.map +1 -1
- package/dist/cli/main.js +7 -2
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/migrate-home/index.js +2 -2
- package/dist/cli/migrate-home/index.js.map +1 -1
- package/dist/cli/pack/add.js +1 -1
- package/dist/cli/pack/add.js.map +1 -1
- package/dist/cli/pack/hook-bootstrap.d.ts +5 -164
- package/dist/cli/pack/hook-bootstrap.js +15 -291
- package/dist/cli/pack/hook-bootstrap.js.map +1 -1
- package/dist/cli/pack/hook-branch-protection.d.ts +28 -21
- package/dist/cli/pack/hook-branch-protection.js +365 -340
- package/dist/cli/pack/hook-branch-protection.js.map +1 -1
- package/dist/cli/pack/index.d.ts +0 -1
- package/dist/cli/pack/index.js +0 -1
- package/dist/cli/pack/index.js.map +1 -1
- package/dist/cli/pack/list.js +1 -6
- package/dist/cli/pack/list.js.map +1 -1
- package/dist/cli/pack/mutate.d.ts +7 -9
- package/dist/cli/pack/mutate.js +6 -9
- package/dist/cli/pack/mutate.js.map +1 -1
- package/dist/cli/pack/reseed.d.ts +2 -2
- package/dist/cli/pack/reseed.js +16 -22
- package/dist/cli/pack/reseed.js.map +1 -1
- package/dist/cli/{delegate/register.d.ts → register-gate-group.d.ts} +1 -1
- package/dist/cli/register-gate-group.js +348 -0
- package/dist/cli/register-gate-group.js.map +1 -0
- package/dist/cli/register-inspect-group.d.ts +6 -0
- package/dist/cli/register-inspect-group.js +189 -0
- package/dist/cli/register-inspect-group.js.map +1 -0
- package/dist/cli/register-operator-lifecycle.d.ts +1 -1
- package/dist/cli/register-operator-lifecycle.js +3 -100
- package/dist/cli/register-operator-lifecycle.js.map +1 -1
- package/dist/cli/register-pack-group.d.ts +5 -0
- package/dist/cli/register-pack-group.js +134 -0
- package/dist/cli/register-pack-group.js.map +1 -0
- package/dist/cli/{register-audit-group.d.ts → register-setup-group.d.ts} +1 -1
- package/dist/cli/register-setup-group.js +495 -0
- package/dist/cli/register-setup-group.js.map +1 -0
- package/dist/cli/remove/index.d.ts +0 -14
- package/dist/cli/remove/index.js +2 -115
- package/dist/cli/remove/index.js.map +1 -1
- package/dist/cli/remove/mutate.d.ts +0 -2
- package/dist/cli/remove/mutate.js +1 -19
- package/dist/cli/remove/mutate.js.map +1 -1
- package/dist/cli/remove/register.js +2 -19
- package/dist/cli/remove/register.js.map +1 -1
- package/dist/cli/shell-quote.d.ts +7 -0
- package/dist/cli/shell-quote.js +17 -0
- package/dist/cli/shell-quote.js.map +1 -0
- package/dist/cli/uninstall/index.d.ts +4 -2
- package/dist/cli/uninstall/index.js +15 -7
- package/dist/cli/uninstall/index.js.map +1 -1
- package/dist/cli/uninstall/register.js +6 -4
- package/dist/cli/uninstall/register.js.map +1 -1
- package/dist/cli/uninstall/snapshot.d.ts +15 -0
- package/dist/cli/uninstall/snapshot.js +38 -0
- package/dist/cli/uninstall/snapshot.js.map +1 -1
- package/dist/cli/validate/checks.d.ts +0 -77
- package/dist/cli/validate/checks.js +3 -1049
- package/dist/cli/validate/checks.js.map +1 -1
- package/dist/cli/validate/index.js +19 -15
- package/dist/cli/validate/index.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/io/claude-mcp.d.ts +1 -1
- package/dist/io/claude-mcp.js +27 -14
- package/dist/io/claude-mcp.js.map +1 -1
- package/dist/io/harness-lock.js +2 -2
- package/dist/io/harness-lock.js.map +1 -1
- package/dist/io/lock.d.ts +0 -26
- package/dist/io/lock.js +10 -27
- package/dist/io/lock.js.map +1 -1
- package/dist/io/merge-settings.js +6 -4
- package/dist/io/merge-settings.js.map +1 -1
- package/dist/io/project-name.d.ts +22 -39
- package/dist/io/project-name.js +25 -42
- package/dist/io/project-name.js.map +1 -1
- package/dist/io/read-regular-file.d.ts +103 -40
- package/dist/io/read-regular-file.js +196 -35
- package/dist/io/read-regular-file.js.map +1 -1
- package/dist/io/restart-hints.js +3 -6
- package/dist/io/restart-hints.js.map +1 -1
- package/dist/io/version-compare.d.ts +1 -3
- package/dist/io/version-compare.js +1 -3
- package/dist/io/version-compare.js.map +1 -1
- package/dist/io/write-regular-file.d.ts +30 -0
- package/dist/io/write-regular-file.js +85 -0
- package/dist/io/write-regular-file.js.map +1 -0
- package/dist/overrides/index.d.ts +1 -0
- package/dist/overrides/index.js +1 -0
- package/dist/overrides/index.js.map +1 -1
- package/dist/overrides/merge-layers.d.ts +43 -0
- package/dist/overrides/merge-layers.js +76 -0
- package/dist/overrides/merge-layers.js.map +1 -0
- package/dist/overrides/merge.d.ts +16 -0
- package/dist/overrides/merge.js +21 -8
- package/dist/overrides/merge.js.map +1 -1
- package/dist/policy-packs/builtin/branch-protection-runtime.d.ts +4 -69
- package/dist/policy-packs/builtin/branch-protection-runtime.js +12 -84
- package/dist/policy-packs/builtin/branch-protection-runtime.js.map +1 -1
- package/dist/policy-packs/builtin/branch-protection.d.ts +7 -30
- package/dist/policy-packs/builtin/branch-protection.js +56 -89
- package/dist/policy-packs/builtin/branch-protection.js.map +1 -1
- package/dist/policy-packs/config-check.d.ts +7 -5
- package/dist/policy-packs/config-check.js +2 -2
- package/dist/policy-packs/config-check.js.map +1 -1
- package/dist/policy-packs/expand.d.ts +1 -3
- package/dist/policy-packs/expand.js +5 -42
- package/dist/policy-packs/expand.js.map +1 -1
- package/dist/policy-packs/index.d.ts +3 -3
- package/dist/policy-packs/index.js +2 -2
- package/dist/policy-packs/index.js.map +1 -1
- package/dist/policy-packs/registry.d.ts +9 -38
- package/dist/policy-packs/registry.js +5 -65
- package/dist/policy-packs/registry.js.map +1 -1
- package/dist/policy-packs/runtime.d.ts +0 -4
- package/dist/policy-packs/runtime.js +9 -22
- package/dist/policy-packs/runtime.js.map +1 -1
- package/dist/policy-packs/types.d.ts +0 -19
- package/dist/policy-packs/ux-compare.d.ts +1 -11
- package/dist/policy-packs/ux-compare.js +6 -42
- package/dist/policy-packs/ux-compare.js.map +1 -1
- package/dist/policy-packs/ux-drift-check.d.ts +5 -5
- package/dist/policy-packs/ux-drift-check.js +17 -22
- package/dist/policy-packs/ux-drift-check.js.map +1 -1
- package/dist/policy-packs/version-check.d.ts +5 -26
- package/dist/policy-packs/version-check.js +19 -74
- package/dist/policy-packs/version-check.js.map +1 -1
- package/dist/probes/memory.d.ts +1 -1
- package/dist/probes/memory.js +1 -1
- package/dist/probes/memory.js.map +1 -1
- package/dist/runtime/agent-facing.d.ts +9 -0
- package/dist/runtime/agent-facing.js +28 -14
- package/dist/runtime/agent-facing.js.map +1 -1
- package/dist/runtime/bounded-text.d.ts +15 -0
- package/dist/runtime/bounded-text.js +27 -0
- package/dist/runtime/bounded-text.js.map +1 -0
- package/dist/runtime/git-branch.d.ts +125 -0
- package/dist/runtime/git-branch.js +381 -0
- package/dist/runtime/git-branch.js.map +1 -0
- package/dist/runtime/hermetic-spawn-guard.d.ts +2 -2
- package/dist/runtime/hermetic-spawn-guard.js +24 -34
- package/dist/runtime/hermetic-spawn-guard.js.map +1 -1
- package/dist/runtime/home-dir.js +3 -2
- package/dist/runtime/home-dir.js.map +1 -1
- package/dist/runtime/tool-name-aliases.d.ts +0 -6
- package/dist/runtime/tool-name-aliases.js +5 -18
- package/dist/runtime/tool-name-aliases.js.map +1 -1
- package/dist/schema/grounding.d.ts +7 -54
- package/dist/schema/grounding.js +10 -12
- package/dist/schema/grounding.js.map +1 -1
- package/dist/schema/hooks.d.ts +39 -136
- package/dist/schema/hooks.js +3 -6
- package/dist/schema/hooks.js.map +1 -1
- package/dist/schema/index.d.ts +114 -3828
- package/dist/schema/index.js +41 -80
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/memory.d.ts +54 -131
- package/dist/schema/memory.js +2 -2
- package/dist/schema/memory.js.map +1 -1
- package/dist/schema/policy-packs.d.ts +3 -45
- package/dist/schema/policy-packs.js +7 -13
- package/dist/schema/policy-packs.js.map +1 -1
- package/dist/schema/policy-ux.d.ts +7 -0
- package/dist/schema/policy-ux.js +18 -0
- package/dist/schema/policy-ux.js.map +1 -0
- package/dist/schema/removed-keys.d.ts +185 -0
- package/dist/schema/removed-keys.js +531 -0
- package/dist/schema/removed-keys.js.map +1 -0
- package/dist/schema/tools.d.ts +30 -268
- package/dist/schema/tools.js +4 -4
- package/dist/schema/tools.js.map +1 -1
- package/package.json +5 -16
- package/dist/cli/approve/branch-protection.d.ts +0 -69
- package/dist/cli/approve/branch-protection.js +0 -144
- package/dist/cli/approve/branch-protection.js.map +0 -1
- package/dist/cli/approve/risk.d.ts +0 -112
- package/dist/cli/approve/risk.js +0 -197
- package/dist/cli/approve/risk.js.map +0 -1
- package/dist/cli/approve/stdin-report.d.ts +0 -57
- package/dist/cli/approve/stdin-report.js +0 -145
- package/dist/cli/approve/stdin-report.js.map +0 -1
- package/dist/cli/approve/understanding.d.ts +0 -410
- package/dist/cli/approve/understanding.js +0 -996
- package/dist/cli/approve/understanding.js.map +0 -1
- package/dist/cli/audit.d.ts +0 -80
- package/dist/cli/audit.js +0 -252
- package/dist/cli/audit.js.map +0 -1
- package/dist/cli/delegate/index.d.ts +0 -76
- package/dist/cli/delegate/index.js +0 -444
- package/dist/cli/delegate/index.js.map +0 -1
- package/dist/cli/delegate/register.js +0 -90
- package/dist/cli/delegate/register.js.map +0 -1
- package/dist/cli/doctor/auto-approve-mode.d.ts +0 -37
- package/dist/cli/doctor/auto-approve-mode.js +0 -80
- package/dist/cli/doctor/auto-approve-mode.js.map +0 -1
- package/dist/cli/doctor/bypass-without-auto-approve.d.ts +0 -38
- package/dist/cli/doctor/bypass-without-auto-approve.js +0 -95
- package/dist/cli/doctor/bypass-without-auto-approve.js.map +0 -1
- package/dist/cli/doctor/codex-config-drift.d.ts +0 -28
- package/dist/cli/doctor/codex-config-drift.js +0 -240
- package/dist/cli/doctor/codex-config-drift.js.map +0 -1
- package/dist/cli/doctor/expire-on-tool-match.d.ts +0 -15
- package/dist/cli/doctor/expire-on-tool-match.js +0 -58
- package/dist/cli/doctor/expire-on-tool-match.js.map +0 -1
- package/dist/cli/doctor/rogue-ledger.d.ts +0 -53
- package/dist/cli/doctor/rogue-ledger.js +0 -153
- package/dist/cli/doctor/rogue-ledger.js.map +0 -1
- package/dist/cli/doctor/session-start-preflight-setup-version.d.ts +0 -83
- package/dist/cli/doctor/session-start-preflight-setup-version.js +0 -114
- package/dist/cli/doctor/session-start-preflight-setup-version.js.map +0 -1
- package/dist/cli/doctor/settings-drift.d.ts +0 -25
- package/dist/cli/doctor/settings-drift.js +0 -213
- package/dist/cli/doctor/settings-drift.js.map +0 -1
- package/dist/cli/doctor/toolchain-parity.d.ts +0 -63
- package/dist/cli/doctor/toolchain-parity.js +0 -154
- package/dist/cli/doctor/toolchain-parity.js.map +0 -1
- package/dist/cli/doctor/ug-auto-approvals.d.ts +0 -40
- package/dist/cli/doctor/ug-auto-approvals.js +0 -91
- package/dist/cli/doctor/ug-auto-approvals.js.map +0 -1
- package/dist/cli/doctor/ug-delegations.d.ts +0 -26
- package/dist/cli/doctor/ug-delegations.js +0 -121
- package/dist/cli/doctor/ug-delegations.js.map +0 -1
- package/dist/cli/doctor/ug-inflight.d.ts +0 -35
- package/dist/cli/doctor/ug-inflight.js +0 -57
- package/dist/cli/doctor/ug-inflight.js.map +0 -1
- package/dist/cli/doctor/understanding-mode-env.d.ts +0 -51
- package/dist/cli/doctor/understanding-mode-env.js +0 -98
- package/dist/cli/doctor/understanding-mode-env.js.map +0 -1
- package/dist/cli/dry-run.d.ts +0 -58
- package/dist/cli/dry-run.js +0 -283
- package/dist/cli/dry-run.js.map +0 -1
- package/dist/cli/enriched-event.d.ts +0 -35
- package/dist/cli/enriched-event.js +0 -60
- package/dist/cli/enriched-event.js.map +0 -1
- package/dist/cli/event-input.d.ts +0 -28
- package/dist/cli/event-input.js +0 -73
- package/dist/cli/event-input.js.map +0 -1
- package/dist/cli/explain-action.d.ts +0 -25
- package/dist/cli/explain-action.js +0 -57
- package/dist/cli/explain-action.js.map +0 -1
- package/dist/cli/explain-policy.d.ts +0 -147
- package/dist/cli/explain-policy.js +0 -248
- package/dist/cli/explain-policy.js.map +0 -1
- package/dist/cli/explain.d.ts +0 -31
- package/dist/cli/explain.js +0 -159
- package/dist/cli/explain.js.map +0 -1
- package/dist/cli/gc/index.d.ts +0 -63
- package/dist/cli/gc/index.js +0 -566
- package/dist/cli/gc/index.js.map +0 -1
- package/dist/cli/pack/approve-escape.d.ts +0 -19
- package/dist/cli/pack/approve-escape.js +0 -190
- package/dist/cli/pack/approve-escape.js.map +0 -1
- package/dist/cli/pack/auto-approve-path.d.ts +0 -146
- package/dist/cli/pack/auto-approve-path.js +0 -462
- package/dist/cli/pack/auto-approve-path.js.map +0 -1
- package/dist/cli/pack/hook-codex-post-tool-use.d.ts +0 -25
- package/dist/cli/pack/hook-codex-post-tool-use.js +0 -160
- package/dist/cli/pack/hook-codex-post-tool-use.js.map +0 -1
- package/dist/cli/pack/hook-codex-pre-tool-use.d.ts +0 -48
- package/dist/cli/pack/hook-codex-pre-tool-use.js +0 -474
- package/dist/cli/pack/hook-codex-pre-tool-use.js.map +0 -1
- package/dist/cli/pack/hook-codex-stop.d.ts +0 -35
- package/dist/cli/pack/hook-codex-stop.js +0 -329
- package/dist/cli/pack/hook-codex-stop.js.map +0 -1
- package/dist/cli/pack/hook-codex-user-prompt-submit.d.ts +0 -24
- package/dist/cli/pack/hook-codex-user-prompt-submit.js +0 -93
- package/dist/cli/pack/hook-codex-user-prompt-submit.js.map +0 -1
- package/dist/cli/pack/hook-post-merge-gate-record.d.ts +0 -37
- package/dist/cli/pack/hook-post-merge-gate-record.js +0 -190
- package/dist/cli/pack/hook-post-merge-gate-record.js.map +0 -1
- package/dist/cli/pack/hook-post-merge-gate.d.ts +0 -34
- package/dist/cli/pack/hook-post-merge-gate.js +0 -277
- package/dist/cli/pack/hook-post-merge-gate.js.map +0 -1
- package/dist/cli/pack/hook-post-tool-use.d.ts +0 -45
- package/dist/cli/pack/hook-post-tool-use.js +0 -137
- package/dist/cli/pack/hook-post-tool-use.js.map +0 -1
- package/dist/cli/pack/hook-pre-tool-use.d.ts +0 -92
- package/dist/cli/pack/hook-pre-tool-use.js +0 -1328
- package/dist/cli/pack/hook-pre-tool-use.js.map +0 -1
- package/dist/cli/pack/hook-runtime-reality.d.ts +0 -63
- package/dist/cli/pack/hook-runtime-reality.js +0 -210
- package/dist/cli/pack/hook-runtime-reality.js.map +0 -1
- package/dist/cli/pack/hook-solution-acceptance-writeguard.d.ts +0 -32
- package/dist/cli/pack/hook-solution-acceptance-writeguard.js +0 -438
- package/dist/cli/pack/hook-solution-acceptance-writeguard.js.map +0 -1
- package/dist/cli/pack/hook-solution-acceptance.d.ts +0 -157
- package/dist/cli/pack/hook-solution-acceptance.js +0 -530
- package/dist/cli/pack/hook-solution-acceptance.js.map +0 -1
- package/dist/cli/pack/hook-stay-in-scope.d.ts +0 -37
- package/dist/cli/pack/hook-stay-in-scope.js +0 -128
- package/dist/cli/pack/hook-stay-in-scope.js.map +0 -1
- package/dist/cli/pack/hook-subagent-start.d.ts +0 -23
- package/dist/cli/pack/hook-subagent-start.js +0 -88
- package/dist/cli/pack/hook-subagent-start.js.map +0 -1
- package/dist/cli/pack/hook-subagent-stop.d.ts +0 -19
- package/dist/cli/pack/hook-subagent-stop.js +0 -41
- package/dist/cli/pack/hook-subagent-stop.js.map +0 -1
- package/dist/cli/pack/hook-track-active-claim.d.ts +0 -27
- package/dist/cli/pack/hook-track-active-claim.js +0 -275
- package/dist/cli/pack/hook-track-active-claim.js.map +0 -1
- package/dist/cli/pack/transcript-report-scan.d.ts +0 -71
- package/dist/cli/pack/transcript-report-scan.js +0 -359
- package/dist/cli/pack/transcript-report-scan.js.map +0 -1
- package/dist/cli/pack/understanding-report-schema-hint.d.ts +0 -26
- package/dist/cli/pack/understanding-report-schema-hint.js +0 -120
- package/dist/cli/pack/understanding-report-schema-hint.js.map +0 -1
- package/dist/cli/pack/upgrade.d.ts +0 -32
- package/dist/cli/pack/upgrade.js +0 -273
- package/dist/cli/pack/upgrade.js.map +0 -1
- package/dist/cli/pause/index.d.ts +0 -113
- package/dist/cli/pause/index.js +0 -251
- package/dist/cli/pause/index.js.map +0 -1
- package/dist/cli/pause-check.d.ts +0 -22
- package/dist/cli/pause-check.js +0 -54
- package/dist/cli/pause-check.js.map +0 -1
- package/dist/cli/policy/intercept.d.ts +0 -233
- package/dist/cli/policy/intercept.js +0 -1022
- package/dist/cli/policy/intercept.js.map +0 -1
- package/dist/cli/policy/risk-envelope-enrichment.d.ts +0 -40
- package/dist/cli/policy/risk-envelope-enrichment.js +0 -110
- package/dist/cli/policy/risk-envelope-enrichment.js.map +0 -1
- package/dist/cli/record/index.d.ts +0 -81
- package/dist/cli/record/index.js +0 -348
- package/dist/cli/record/index.js.map +0 -1
- package/dist/cli/register-audit-group.js +0 -91
- package/dist/cli/register-audit-group.js.map +0 -1
- package/dist/cli/resolve-env.d.ts +0 -32
- package/dist/cli/resolve-env.js +0 -46
- package/dist/cli/resolve-env.js.map +0 -1
- package/dist/cli/session-export/index.d.ts +0 -46
- package/dist/cli/session-export/index.js +0 -169
- package/dist/cli/session-export/index.js.map +0 -1
- package/dist/cli/session-export/redact.d.ts +0 -22
- package/dist/cli/session-export/redact.js +0 -47
- package/dist/cli/session-export/redact.js.map +0 -1
- package/dist/cli/session-export/transcript.d.ts +0 -24
- package/dist/cli/session-export/transcript.js +0 -164
- package/dist/cli/session-export/transcript.js.map +0 -1
- package/dist/cli/session-start/branch-check.d.ts +0 -18
- package/dist/cli/session-start/branch-check.js +0 -140
- package/dist/cli/session-start/branch-check.js.map +0 -1
- package/dist/cli/session-start/index.d.ts +0 -121
- package/dist/cli/session-start/index.js +0 -591
- package/dist/cli/session-start/index.js.map +0 -1
- package/dist/cli/session-start/shared-options.d.ts +0 -103
- package/dist/cli/session-start/shared-options.js +0 -107
- package/dist/cli/session-start/shared-options.js.map +0 -1
- package/dist/cli/session-start/stale-base-check.d.ts +0 -46
- package/dist/cli/session-start/stale-base-check.js +0 -352
- package/dist/cli/session-start/stale-base-check.js.map +0 -1
- package/dist/cli/session-start/toolchain-parity.d.ts +0 -267
- package/dist/cli/session-start/toolchain-parity.js +0 -797
- package/dist/cli/session-start/toolchain-parity.js.map +0 -1
- package/dist/cli/smoke/assertions.d.ts +0 -46
- package/dist/cli/smoke/assertions.js +0 -170
- package/dist/cli/smoke/assertions.js.map +0 -1
- package/dist/cli/smoke/index.d.ts +0 -76
- package/dist/cli/smoke/index.js +0 -245
- package/dist/cli/smoke/index.js.map +0 -1
- package/dist/cli/smoke/runner.d.ts +0 -55
- package/dist/cli/smoke/runner.js +0 -134
- package/dist/cli/smoke/runner.js.map +0 -1
- package/dist/cli/smoke/stream-parser.d.ts +0 -65
- package/dist/cli/smoke/stream-parser.js +0 -115
- package/dist/cli/smoke/stream-parser.js.map +0 -1
- package/dist/cli/test-risk.d.ts +0 -27
- package/dist/cli/test-risk.js +0 -38
- package/dist/cli/test-risk.js.map +0 -1
- package/dist/io/display-path.d.ts +0 -11
- package/dist/io/display-path.js +0 -29
- package/dist/io/display-path.js.map +0 -1
- package/dist/io/duration.d.ts +0 -5
- package/dist/io/duration.js +0 -50
- package/dist/io/duration.js.map +0 -1
- package/dist/io/extract.d.ts +0 -79
- package/dist/io/extract.js +0 -226
- package/dist/io/extract.js.map +0 -1
- package/dist/io/ledger-record.d.ts +0 -83
- package/dist/io/ledger-record.js +0 -301
- package/dist/io/ledger-record.js.map +0 -1
- package/dist/io/read-json-dir-entries.d.ts +0 -36
- package/dist/io/read-json-dir-entries.js +0 -48
- package/dist/io/read-json-dir-entries.js.map +0 -1
- package/dist/io/safe-json-parse.d.ts +0 -5
- package/dist/io/safe-json-parse.js +0 -21
- package/dist/io/safe-json-parse.js.map +0 -1
- package/dist/policies/index.d.ts +0 -5
- package/dist/policies/index.js +0 -6
- package/dist/policies/index.js.map +0 -1
- package/dist/policies/ledger-client.d.ts +0 -113
- package/dist/policies/ledger-client.js +0 -500
- package/dist/policies/ledger-client.js.map +0 -1
- package/dist/policies/producers.d.ts +0 -12
- package/dist/policies/producers.js +0 -61
- package/dist/policies/producers.js.map +0 -1
- package/dist/policies/requires.d.ts +0 -75
- package/dist/policies/requires.js +0 -240
- package/dist/policies/requires.js.map +0 -1
- package/dist/policies/timestamp.d.ts +0 -14
- package/dist/policies/timestamp.js +0 -36
- package/dist/policies/timestamp.js.map +0 -1
- package/dist/policy-packs/builtin/permission-profiles.d.ts +0 -11
- package/dist/policy-packs/builtin/permission-profiles.js +0 -74
- package/dist/policy-packs/builtin/permission-profiles.js.map +0 -1
- package/dist/policy-packs/builtin/post-merge-gate-runtime.d.ts +0 -286
- package/dist/policy-packs/builtin/post-merge-gate-runtime.js +0 -397
- package/dist/policy-packs/builtin/post-merge-gate-runtime.js.map +0 -1
- package/dist/policy-packs/builtin/post-merge-gate.d.ts +0 -56
- package/dist/policy-packs/builtin/post-merge-gate.js +0 -347
- package/dist/policy-packs/builtin/post-merge-gate.js.map +0 -1
- package/dist/policy-packs/builtin/solution-acceptance-reconnect.d.ts +0 -50
- package/dist/policy-packs/builtin/solution-acceptance-reconnect.js +0 -151
- package/dist/policy-packs/builtin/solution-acceptance-reconnect.js.map +0 -1
- package/dist/policy-packs/builtin/solution-acceptance-runtime.d.ts +0 -323
- package/dist/policy-packs/builtin/solution-acceptance-runtime.js +0 -672
- package/dist/policy-packs/builtin/solution-acceptance-runtime.js.map +0 -1
- package/dist/policy-packs/builtin/solution-acceptance.d.ts +0 -45
- package/dist/policy-packs/builtin/solution-acceptance.js +0 -226
- package/dist/policy-packs/builtin/solution-acceptance.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/active-claim.d.ts +0 -25
- package/dist/policy-packs/builtin/understanding-before-execution/active-claim.js +0 -94
- package/dist/policy-packs/builtin/understanding-before-execution/active-claim.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.d.ts +0 -35
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.js +0 -86
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve-default.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.d.ts +0 -210
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.js +0 -361
- package/dist/policy-packs/builtin/understanding-before-execution/auto-approve.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.d.ts +0 -304
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.js +0 -734
- package/dist/policy-packs/builtin/understanding-before-execution/delegation-markers.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.d.ts +0 -36
- package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.js +0 -73
- package/dist/policy-packs/builtin/understanding-before-execution/expiry-reason.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/index.d.ts +0 -19
- package/dist/policy-packs/builtin/understanding-before-execution/index.js +0 -83
- package/dist/policy-packs/builtin/understanding-before-execution/index.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.d.ts +0 -135
- package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.js +0 -643
- package/dist/policy-packs/builtin/understanding-before-execution/inflight-records.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/ledger.d.ts +0 -25
- package/dist/policy-packs/builtin/understanding-before-execution/ledger.js +0 -56
- package/dist/policy-packs/builtin/understanding-before-execution/ledger.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.d.ts +0 -20
- package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.js +0 -106
- package/dist/policy-packs/builtin/understanding-before-execution/lifecycle.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/markers.d.ts +0 -126
- package/dist/policy-packs/builtin/understanding-before-execution/markers.js +0 -245
- package/dist/policy-packs/builtin/understanding-before-execution/markers.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.d.ts +0 -29
- package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.js +0 -82
- package/dist/policy-packs/builtin/understanding-before-execution/measured-permission-modes.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.d.ts +0 -71
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.js +0 -175
- package/dist/policy-packs/builtin/understanding-before-execution/permission-mode-observations.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.d.ts +0 -625
- package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.js +0 -1076
- package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.d.ts +0 -128
- package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.js +0 -213
- package/dist/policy-packs/builtin/understanding-before-execution/post-tool-use-boundary.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.d.ts +0 -129
- package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.js +0 -166
- package/dist/policy-packs/builtin/understanding-before-execution/stay-in-scope-config.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution/task-markers.d.ts +0 -164
- package/dist/policy-packs/builtin/understanding-before-execution/task-markers.js +0 -275
- package/dist/policy-packs/builtin/understanding-before-execution/task-markers.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution-runtime.d.ts +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution-runtime.js +0 -10
- package/dist/policy-packs/builtin/understanding-before-execution-runtime.js.map +0 -1
- package/dist/policy-packs/builtin/understanding-before-execution.d.ts +0 -526
- package/dist/policy-packs/builtin/understanding-before-execution.js +0 -1078
- package/dist/policy-packs/builtin/understanding-before-execution.js.map +0 -1
- package/dist/policy-packs/permission-translator.d.ts +0 -9
- package/dist/policy-packs/permission-translator.js +0 -76
- package/dist/policy-packs/permission-translator.js.map +0 -1
- package/dist/runtime/action-envelope.d.ts +0 -64
- package/dist/runtime/action-envelope.js +0 -46
- package/dist/runtime/action-envelope.js.map +0 -1
- package/dist/runtime/approval-signing.d.ts +0 -111
- package/dist/runtime/approval-signing.js +0 -384
- package/dist/runtime/approval-signing.js.map +0 -1
- package/dist/runtime/bash-match-facts.d.ts +0 -60
- package/dist/runtime/bash-match-facts.js +0 -196
- package/dist/runtime/bash-match-facts.js.map +0 -1
- package/dist/runtime/bash-match-registry.d.ts +0 -112
- package/dist/runtime/bash-match-registry.js +0 -406
- package/dist/runtime/bash-match-registry.js.map +0 -1
- package/dist/runtime/bash-prefix-parse.d.ts +0 -31
- package/dist/runtime/bash-prefix-parse.js +0 -576
- package/dist/runtime/bash-prefix-parse.js.map +0 -1
- package/dist/runtime/command-normalize.d.ts +0 -658
- package/dist/runtime/command-normalize.js +0 -2410
- package/dist/runtime/command-normalize.js.map +0 -1
- package/dist/runtime/deletion-target-resolve.d.ts +0 -28
- package/dist/runtime/deletion-target-resolve.js +0 -1078
- package/dist/runtime/deletion-target-resolve.js.map +0 -1
- package/dist/runtime/destructive-shell-floor.d.ts +0 -19
- package/dist/runtime/destructive-shell-floor.js +0 -611
- package/dist/runtime/destructive-shell-floor.js.map +0 -1
- package/dist/runtime/environment-resolver.d.ts +0 -36
- package/dist/runtime/environment-resolver.js +0 -138
- package/dist/runtime/environment-resolver.js.map +0 -1
- package/dist/runtime/git-context.d.ts +0 -201
- package/dist/runtime/git-context.js +0 -422
- package/dist/runtime/git-context.js.map +0 -1
- package/dist/runtime/index.d.ts +0 -12
- package/dist/runtime/index.js +0 -13
- package/dist/runtime/index.js.map +0 -1
- package/dist/runtime/intercept.d.ts +0 -623
- package/dist/runtime/intercept.js +0 -1384
- package/dist/runtime/intercept.js.map +0 -1
- package/dist/runtime/kube-context.d.ts +0 -16
- package/dist/runtime/kube-context.js +0 -63
- package/dist/runtime/kube-context.js.map +0 -1
- package/dist/runtime/kubectl-target-parse.d.ts +0 -31
- package/dist/runtime/kubectl-target-parse.js +0 -249
- package/dist/runtime/kubectl-target-parse.js.map +0 -1
- package/dist/runtime/ledger-add.d.ts +0 -16
- package/dist/runtime/ledger-add.js +0 -150
- package/dist/runtime/ledger-add.js.map +0 -1
- package/dist/runtime/ledger-writer.d.ts +0 -27
- package/dist/runtime/ledger-writer.js +0 -46
- package/dist/runtime/ledger-writer.js.map +0 -1
- package/dist/runtime/pause-sentinel.d.ts +0 -60
- package/dist/runtime/pause-sentinel.js +0 -156
- package/dist/runtime/pause-sentinel.js.map +0 -1
- package/dist/runtime/pending-approval.d.ts +0 -23
- package/dist/runtime/pending-approval.js +0 -67
- package/dist/runtime/pending-approval.js.map +0 -1
- package/dist/runtime/read-only-bash.d.ts +0 -141
- package/dist/runtime/read-only-bash.js +0 -2204
- package/dist/runtime/read-only-bash.js.map +0 -1
- package/dist/runtime/recovery-git-commit.d.ts +0 -22
- package/dist/runtime/recovery-git-commit.js +0 -284
- package/dist/runtime/recovery-git-commit.js.map +0 -1
- package/dist/runtime/reject-malformed-session-id.d.ts +0 -8
- package/dist/runtime/reject-malformed-session-id.js +0 -16
- package/dist/runtime/reject-malformed-session-id.js.map +0 -1
- package/dist/runtime/risk-classifier.d.ts +0 -38
- package/dist/runtime/risk-classifier.js +0 -311
- package/dist/runtime/risk-classifier.js.map +0 -1
- package/dist/runtime/session-id.d.ts +0 -113
- package/dist/runtime/session-id.js +0 -193
- package/dist/runtime/session-id.js.map +0 -1
- package/dist/runtime/shell-word.d.ts +0 -62
- package/dist/runtime/shell-word.js +0 -410
- package/dist/runtime/shell-word.js.map +0 -1
- package/dist/runtime/task-providers/agent-tasks.d.ts +0 -105
- package/dist/runtime/task-providers/agent-tasks.js +0 -247
- package/dist/runtime/task-providers/agent-tasks.js.map +0 -1
- package/dist/runtime/when-eval.d.ts +0 -62
- package/dist/runtime/when-eval.js +0 -212
- package/dist/runtime/when-eval.js.map +0 -1
- package/dist/runtime/workflow-policies.d.ts +0 -207
- package/dist/runtime/workflow-policies.js +0 -596
- package/dist/runtime/workflow-policies.js.map +0 -1
- package/dist/schema/audit.d.ts +0 -71
- package/dist/schema/audit.js +0 -32
- package/dist/schema/audit.js.map +0 -1
- package/dist/schema/doctor.d.ts +0 -25
- package/dist/schema/doctor.js +0 -23
- package/dist/schema/doctor.js.map +0 -1
- package/dist/schema/environments.d.ts +0 -215
- package/dist/schema/environments.js +0 -101
- package/dist/schema/environments.js.map +0 -1
- package/dist/schema/extract.d.ts +0 -9
- package/dist/schema/extract.js +0 -86
- package/dist/schema/extract.js.map +0 -1
- package/dist/schema/permission-profiles.d.ts +0 -2292
- package/dist/schema/permission-profiles.js +0 -60
- package/dist/schema/permission-profiles.js.map +0 -1
- package/dist/schema/policies.d.ts +0 -974
- package/dist/schema/policies.js +0 -298
- package/dist/schema/policies.js.map +0 -1
- package/dist/schema/requires.d.ts +0 -131
- package/dist/schema/requires.js +0 -88
- package/dist/schema/requires.js.map +0 -1
- package/dist/schema/risk.d.ts +0 -144
- package/dist/schema/risk.js +0 -194
- package/dist/schema/risk.js.map +0 -1
- package/dist/schema/session-start-preflight.d.ts +0 -10
- package/dist/schema/session-start-preflight.js +0 -106
- package/dist/schema/session-start-preflight.js.map +0 -1
- package/dist/schema/stale-base-check.d.ts +0 -18
- package/dist/schema/stale-base-check.js +0 -37
- package/dist/schema/stale-base-check.js.map +0 -1
- package/dist/schema/toolchain-parity.d.ts +0 -21
- package/dist/schema/toolchain-parity.js +0 -48
- package/dist/schema/toolchain-parity.js.map +0 -1
- package/dist/schema/workflows.d.ts +0 -519
- package/dist/schema/workflows.js +0 -81
- package/dist/schema/workflows.js.map +0 -1
- package/scripts/runtime-reality-docker-probe.mjs +0 -71
|
@@ -1,974 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const PolicyTriggerSchema: z.ZodObject<{
|
|
3
|
-
event: z.ZodEnum<["SessionStart", "UserPromptSubmit", "PreToolUse", "PostToolUse", "Stop", "SubagentStart", "SubagentStop", "PreCompact"]>;
|
|
4
|
-
match: z.ZodOptional<z.ZodString>;
|
|
5
|
-
path_match: z.ZodOptional<z.ZodString>;
|
|
6
|
-
bash_match: z.ZodOptional<z.ZodString>;
|
|
7
|
-
input_match: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, Record<string, string | number | boolean>, Record<string, string | number | boolean>>>;
|
|
8
|
-
extract: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, Record<string, string>, Record<string, string>>>;
|
|
9
|
-
}, "strict", z.ZodTypeAny, {
|
|
10
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
11
|
-
match?: string | undefined;
|
|
12
|
-
path_match?: string | undefined;
|
|
13
|
-
bash_match?: string | undefined;
|
|
14
|
-
extract?: Record<string, string> | undefined;
|
|
15
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
18
|
-
match?: string | undefined;
|
|
19
|
-
path_match?: string | undefined;
|
|
20
|
-
bash_match?: string | undefined;
|
|
21
|
-
extract?: Record<string, string> | undefined;
|
|
22
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export declare const PolicyEnforcementSchema: z.ZodEnum<["block", "warn", "require_approval"]>;
|
|
25
|
-
export declare const ProducerSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
26
|
-
kind: z.ZodLiteral<"bash">;
|
|
27
|
-
command: z.ZodString;
|
|
28
|
-
description: z.ZodString;
|
|
29
|
-
}, "strict", z.ZodTypeAny, {
|
|
30
|
-
command: string;
|
|
31
|
-
description: string;
|
|
32
|
-
kind: "bash";
|
|
33
|
-
}, {
|
|
34
|
-
command: string;
|
|
35
|
-
description: string;
|
|
36
|
-
kind: "bash";
|
|
37
|
-
}>, z.ZodObject<{
|
|
38
|
-
kind: z.ZodLiteral<"mcp">;
|
|
39
|
-
verb: z.ZodString;
|
|
40
|
-
example: z.ZodString;
|
|
41
|
-
description: z.ZodString;
|
|
42
|
-
}, "strict", z.ZodTypeAny, {
|
|
43
|
-
description: string;
|
|
44
|
-
kind: "mcp";
|
|
45
|
-
verb: string;
|
|
46
|
-
example: string;
|
|
47
|
-
}, {
|
|
48
|
-
description: string;
|
|
49
|
-
kind: "mcp";
|
|
50
|
-
verb: string;
|
|
51
|
-
example: string;
|
|
52
|
-
}>, z.ZodObject<{
|
|
53
|
-
kind: z.ZodLiteral<"ask">;
|
|
54
|
-
command: z.ZodString;
|
|
55
|
-
description: z.ZodString;
|
|
56
|
-
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
command: string;
|
|
58
|
-
description: string;
|
|
59
|
-
kind: "ask";
|
|
60
|
-
}, {
|
|
61
|
-
command: string;
|
|
62
|
-
description: string;
|
|
63
|
-
kind: "ask";
|
|
64
|
-
}>]>;
|
|
65
|
-
export declare const PolicyUxSchema: z.ZodObject<{
|
|
66
|
-
cannot: z.ZodString;
|
|
67
|
-
required: z.ZodArray<z.ZodString, "many">;
|
|
68
|
-
run: z.ZodArray<z.ZodString, "many">;
|
|
69
|
-
}, "strict", z.ZodTypeAny, {
|
|
70
|
-
cannot: string;
|
|
71
|
-
required: string[];
|
|
72
|
-
run: string[];
|
|
73
|
-
}, {
|
|
74
|
-
cannot: string;
|
|
75
|
-
required: string[];
|
|
76
|
-
run: string[];
|
|
77
|
-
}>;
|
|
78
|
-
export declare const PolicyWhenSchema: z.ZodEffects<z.ZodObject<{
|
|
79
|
-
"risk.severity_at_least": z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
80
|
-
"risk.category_in": z.ZodOptional<z.ZodArray<z.ZodEnum<["destructive", "data_loss", "production_mutation", "credential_access", "secret_exfiltration", "network_exfiltration", "deployment_change", "infrastructure_change", "privilege_escalation", "irreversible_action", "mass_update"]>, "many">>;
|
|
81
|
-
"environment.name": z.ZodOptional<z.ZodEnum<["production", "staging", "dev", "local", "unknown"]>>;
|
|
82
|
-
"action.reversible": z.ZodOptional<z.ZodBoolean>;
|
|
83
|
-
"action.deletion_target_unresolvable": z.ZodOptional<z.ZodLiteral<true>>;
|
|
84
|
-
}, "strict", z.ZodTypeAny, {
|
|
85
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
86
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
87
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
88
|
-
"action.reversible"?: boolean | undefined;
|
|
89
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
90
|
-
}, {
|
|
91
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
92
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
93
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
94
|
-
"action.reversible"?: boolean | undefined;
|
|
95
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
96
|
-
}>, {
|
|
97
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
98
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
99
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
100
|
-
"action.reversible"?: boolean | undefined;
|
|
101
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
104
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
105
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
106
|
-
"action.reversible"?: boolean | undefined;
|
|
107
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
108
|
-
}>;
|
|
109
|
-
export declare const PolicySchema: z.ZodEffects<z.ZodObject<{
|
|
110
|
-
name: z.ZodString;
|
|
111
|
-
description: z.ZodString;
|
|
112
|
-
trigger: z.ZodObject<{
|
|
113
|
-
event: z.ZodEnum<["SessionStart", "UserPromptSubmit", "PreToolUse", "PostToolUse", "Stop", "SubagentStart", "SubagentStop", "PreCompact"]>;
|
|
114
|
-
match: z.ZodOptional<z.ZodString>;
|
|
115
|
-
path_match: z.ZodOptional<z.ZodString>;
|
|
116
|
-
bash_match: z.ZodOptional<z.ZodString>;
|
|
117
|
-
input_match: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, Record<string, string | number | boolean>, Record<string, string | number | boolean>>>;
|
|
118
|
-
extract: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, Record<string, string>, Record<string, string>>>;
|
|
119
|
-
}, "strict", z.ZodTypeAny, {
|
|
120
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
121
|
-
match?: string | undefined;
|
|
122
|
-
path_match?: string | undefined;
|
|
123
|
-
bash_match?: string | undefined;
|
|
124
|
-
extract?: Record<string, string> | undefined;
|
|
125
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
126
|
-
}, {
|
|
127
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
128
|
-
match?: string | undefined;
|
|
129
|
-
path_match?: string | undefined;
|
|
130
|
-
bash_match?: string | undefined;
|
|
131
|
-
extract?: Record<string, string> | undefined;
|
|
132
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
133
|
-
}>;
|
|
134
|
-
requires: z.ZodOptional<z.ZodObject<{
|
|
135
|
-
ledger_tag: z.ZodString;
|
|
136
|
-
within: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
137
|
-
count: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
138
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
140
|
-
exact: z.ZodOptional<z.ZodNumber>;
|
|
141
|
-
}, "strict", z.ZodTypeAny, {
|
|
142
|
-
exact?: number | undefined;
|
|
143
|
-
min?: number | undefined;
|
|
144
|
-
max?: number | undefined;
|
|
145
|
-
}, {
|
|
146
|
-
exact?: number | undefined;
|
|
147
|
-
min?: number | undefined;
|
|
148
|
-
max?: number | undefined;
|
|
149
|
-
}>, {
|
|
150
|
-
exact?: number | undefined;
|
|
151
|
-
min?: number | undefined;
|
|
152
|
-
max?: number | undefined;
|
|
153
|
-
}, {
|
|
154
|
-
exact?: number | undefined;
|
|
155
|
-
min?: number | undefined;
|
|
156
|
-
max?: number | undefined;
|
|
157
|
-
}>, {
|
|
158
|
-
exact?: number | undefined;
|
|
159
|
-
min?: number | undefined;
|
|
160
|
-
max?: number | undefined;
|
|
161
|
-
}, {
|
|
162
|
-
exact?: number | undefined;
|
|
163
|
-
min?: number | undefined;
|
|
164
|
-
max?: number | undefined;
|
|
165
|
-
}>, {
|
|
166
|
-
exact?: number | undefined;
|
|
167
|
-
min?: number | undefined;
|
|
168
|
-
max?: number | undefined;
|
|
169
|
-
}, {
|
|
170
|
-
exact?: number | undefined;
|
|
171
|
-
min?: number | undefined;
|
|
172
|
-
max?: number | undefined;
|
|
173
|
-
}>, {
|
|
174
|
-
exact?: number | undefined;
|
|
175
|
-
min?: number | undefined;
|
|
176
|
-
max?: number | undefined;
|
|
177
|
-
}, {
|
|
178
|
-
exact?: number | undefined;
|
|
179
|
-
min?: number | undefined;
|
|
180
|
-
max?: number | undefined;
|
|
181
|
-
}>>;
|
|
182
|
-
at_head: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
-
}, "strict", z.ZodTypeAny, {
|
|
184
|
-
ledger_tag: string;
|
|
185
|
-
within?: string | undefined;
|
|
186
|
-
count?: {
|
|
187
|
-
exact?: number | undefined;
|
|
188
|
-
min?: number | undefined;
|
|
189
|
-
max?: number | undefined;
|
|
190
|
-
} | undefined;
|
|
191
|
-
at_head?: boolean | undefined;
|
|
192
|
-
}, {
|
|
193
|
-
ledger_tag: string;
|
|
194
|
-
within?: string | undefined;
|
|
195
|
-
count?: {
|
|
196
|
-
exact?: number | undefined;
|
|
197
|
-
min?: number | undefined;
|
|
198
|
-
max?: number | undefined;
|
|
199
|
-
} | undefined;
|
|
200
|
-
at_head?: boolean | undefined;
|
|
201
|
-
}>>;
|
|
202
|
-
hook: z.ZodString;
|
|
203
|
-
enforcement: z.ZodEnum<["block", "warn", "require_approval"]>;
|
|
204
|
-
operator_only: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
-
producers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
206
|
-
kind: z.ZodLiteral<"bash">;
|
|
207
|
-
command: z.ZodString;
|
|
208
|
-
description: z.ZodString;
|
|
209
|
-
}, "strict", z.ZodTypeAny, {
|
|
210
|
-
command: string;
|
|
211
|
-
description: string;
|
|
212
|
-
kind: "bash";
|
|
213
|
-
}, {
|
|
214
|
-
command: string;
|
|
215
|
-
description: string;
|
|
216
|
-
kind: "bash";
|
|
217
|
-
}>, z.ZodObject<{
|
|
218
|
-
kind: z.ZodLiteral<"mcp">;
|
|
219
|
-
verb: z.ZodString;
|
|
220
|
-
example: z.ZodString;
|
|
221
|
-
description: z.ZodString;
|
|
222
|
-
}, "strict", z.ZodTypeAny, {
|
|
223
|
-
description: string;
|
|
224
|
-
kind: "mcp";
|
|
225
|
-
verb: string;
|
|
226
|
-
example: string;
|
|
227
|
-
}, {
|
|
228
|
-
description: string;
|
|
229
|
-
kind: "mcp";
|
|
230
|
-
verb: string;
|
|
231
|
-
example: string;
|
|
232
|
-
}>, z.ZodObject<{
|
|
233
|
-
kind: z.ZodLiteral<"ask">;
|
|
234
|
-
command: z.ZodString;
|
|
235
|
-
description: z.ZodString;
|
|
236
|
-
}, "strict", z.ZodTypeAny, {
|
|
237
|
-
command: string;
|
|
238
|
-
description: string;
|
|
239
|
-
kind: "ask";
|
|
240
|
-
}, {
|
|
241
|
-
command: string;
|
|
242
|
-
description: string;
|
|
243
|
-
kind: "ask";
|
|
244
|
-
}>]>, "many">>;
|
|
245
|
-
ux: z.ZodOptional<z.ZodObject<{
|
|
246
|
-
cannot: z.ZodString;
|
|
247
|
-
required: z.ZodArray<z.ZodString, "many">;
|
|
248
|
-
run: z.ZodArray<z.ZodString, "many">;
|
|
249
|
-
}, "strict", z.ZodTypeAny, {
|
|
250
|
-
cannot: string;
|
|
251
|
-
required: string[];
|
|
252
|
-
run: string[];
|
|
253
|
-
}, {
|
|
254
|
-
cannot: string;
|
|
255
|
-
required: string[];
|
|
256
|
-
run: string[];
|
|
257
|
-
}>>;
|
|
258
|
-
when: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
259
|
-
"risk.severity_at_least": z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
260
|
-
"risk.category_in": z.ZodOptional<z.ZodArray<z.ZodEnum<["destructive", "data_loss", "production_mutation", "credential_access", "secret_exfiltration", "network_exfiltration", "deployment_change", "infrastructure_change", "privilege_escalation", "irreversible_action", "mass_update"]>, "many">>;
|
|
261
|
-
"environment.name": z.ZodOptional<z.ZodEnum<["production", "staging", "dev", "local", "unknown"]>>;
|
|
262
|
-
"action.reversible": z.ZodOptional<z.ZodBoolean>;
|
|
263
|
-
"action.deletion_target_unresolvable": z.ZodOptional<z.ZodLiteral<true>>;
|
|
264
|
-
}, "strict", z.ZodTypeAny, {
|
|
265
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
266
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
267
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
268
|
-
"action.reversible"?: boolean | undefined;
|
|
269
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
270
|
-
}, {
|
|
271
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
272
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
273
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
274
|
-
"action.reversible"?: boolean | undefined;
|
|
275
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
276
|
-
}>, {
|
|
277
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
278
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
279
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
280
|
-
"action.reversible"?: boolean | undefined;
|
|
281
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
282
|
-
}, {
|
|
283
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
284
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
285
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
286
|
-
"action.reversible"?: boolean | undefined;
|
|
287
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
288
|
-
}>>;
|
|
289
|
-
}, "strict", z.ZodTypeAny, {
|
|
290
|
-
name: string;
|
|
291
|
-
description: string;
|
|
292
|
-
trigger: {
|
|
293
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
294
|
-
match?: string | undefined;
|
|
295
|
-
path_match?: string | undefined;
|
|
296
|
-
bash_match?: string | undefined;
|
|
297
|
-
extract?: Record<string, string> | undefined;
|
|
298
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
299
|
-
};
|
|
300
|
-
hook: string;
|
|
301
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
302
|
-
requires?: {
|
|
303
|
-
ledger_tag: string;
|
|
304
|
-
within?: string | undefined;
|
|
305
|
-
count?: {
|
|
306
|
-
exact?: number | undefined;
|
|
307
|
-
min?: number | undefined;
|
|
308
|
-
max?: number | undefined;
|
|
309
|
-
} | undefined;
|
|
310
|
-
at_head?: boolean | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
operator_only?: boolean | undefined;
|
|
313
|
-
producers?: ({
|
|
314
|
-
command: string;
|
|
315
|
-
description: string;
|
|
316
|
-
kind: "bash";
|
|
317
|
-
} | {
|
|
318
|
-
description: string;
|
|
319
|
-
kind: "mcp";
|
|
320
|
-
verb: string;
|
|
321
|
-
example: string;
|
|
322
|
-
} | {
|
|
323
|
-
command: string;
|
|
324
|
-
description: string;
|
|
325
|
-
kind: "ask";
|
|
326
|
-
})[] | undefined;
|
|
327
|
-
ux?: {
|
|
328
|
-
cannot: string;
|
|
329
|
-
required: string[];
|
|
330
|
-
run: string[];
|
|
331
|
-
} | undefined;
|
|
332
|
-
when?: {
|
|
333
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
334
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
335
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
336
|
-
"action.reversible"?: boolean | undefined;
|
|
337
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
338
|
-
} | undefined;
|
|
339
|
-
}, {
|
|
340
|
-
name: string;
|
|
341
|
-
description: string;
|
|
342
|
-
trigger: {
|
|
343
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
344
|
-
match?: string | undefined;
|
|
345
|
-
path_match?: string | undefined;
|
|
346
|
-
bash_match?: string | undefined;
|
|
347
|
-
extract?: Record<string, string> | undefined;
|
|
348
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
349
|
-
};
|
|
350
|
-
hook: string;
|
|
351
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
352
|
-
requires?: {
|
|
353
|
-
ledger_tag: string;
|
|
354
|
-
within?: string | undefined;
|
|
355
|
-
count?: {
|
|
356
|
-
exact?: number | undefined;
|
|
357
|
-
min?: number | undefined;
|
|
358
|
-
max?: number | undefined;
|
|
359
|
-
} | undefined;
|
|
360
|
-
at_head?: boolean | undefined;
|
|
361
|
-
} | undefined;
|
|
362
|
-
operator_only?: boolean | undefined;
|
|
363
|
-
producers?: ({
|
|
364
|
-
command: string;
|
|
365
|
-
description: string;
|
|
366
|
-
kind: "bash";
|
|
367
|
-
} | {
|
|
368
|
-
description: string;
|
|
369
|
-
kind: "mcp";
|
|
370
|
-
verb: string;
|
|
371
|
-
example: string;
|
|
372
|
-
} | {
|
|
373
|
-
command: string;
|
|
374
|
-
description: string;
|
|
375
|
-
kind: "ask";
|
|
376
|
-
})[] | undefined;
|
|
377
|
-
ux?: {
|
|
378
|
-
cannot: string;
|
|
379
|
-
required: string[];
|
|
380
|
-
run: string[];
|
|
381
|
-
} | undefined;
|
|
382
|
-
when?: {
|
|
383
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
384
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
385
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
386
|
-
"action.reversible"?: boolean | undefined;
|
|
387
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
388
|
-
} | undefined;
|
|
389
|
-
}>, {
|
|
390
|
-
name: string;
|
|
391
|
-
description: string;
|
|
392
|
-
trigger: {
|
|
393
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
394
|
-
match?: string | undefined;
|
|
395
|
-
path_match?: string | undefined;
|
|
396
|
-
bash_match?: string | undefined;
|
|
397
|
-
extract?: Record<string, string> | undefined;
|
|
398
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
399
|
-
};
|
|
400
|
-
hook: string;
|
|
401
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
402
|
-
requires?: {
|
|
403
|
-
ledger_tag: string;
|
|
404
|
-
within?: string | undefined;
|
|
405
|
-
count?: {
|
|
406
|
-
exact?: number | undefined;
|
|
407
|
-
min?: number | undefined;
|
|
408
|
-
max?: number | undefined;
|
|
409
|
-
} | undefined;
|
|
410
|
-
at_head?: boolean | undefined;
|
|
411
|
-
} | undefined;
|
|
412
|
-
operator_only?: boolean | undefined;
|
|
413
|
-
producers?: ({
|
|
414
|
-
command: string;
|
|
415
|
-
description: string;
|
|
416
|
-
kind: "bash";
|
|
417
|
-
} | {
|
|
418
|
-
description: string;
|
|
419
|
-
kind: "mcp";
|
|
420
|
-
verb: string;
|
|
421
|
-
example: string;
|
|
422
|
-
} | {
|
|
423
|
-
command: string;
|
|
424
|
-
description: string;
|
|
425
|
-
kind: "ask";
|
|
426
|
-
})[] | undefined;
|
|
427
|
-
ux?: {
|
|
428
|
-
cannot: string;
|
|
429
|
-
required: string[];
|
|
430
|
-
run: string[];
|
|
431
|
-
} | undefined;
|
|
432
|
-
when?: {
|
|
433
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
434
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
435
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
436
|
-
"action.reversible"?: boolean | undefined;
|
|
437
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
438
|
-
} | undefined;
|
|
439
|
-
}, {
|
|
440
|
-
name: string;
|
|
441
|
-
description: string;
|
|
442
|
-
trigger: {
|
|
443
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
444
|
-
match?: string | undefined;
|
|
445
|
-
path_match?: string | undefined;
|
|
446
|
-
bash_match?: string | undefined;
|
|
447
|
-
extract?: Record<string, string> | undefined;
|
|
448
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
449
|
-
};
|
|
450
|
-
hook: string;
|
|
451
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
452
|
-
requires?: {
|
|
453
|
-
ledger_tag: string;
|
|
454
|
-
within?: string | undefined;
|
|
455
|
-
count?: {
|
|
456
|
-
exact?: number | undefined;
|
|
457
|
-
min?: number | undefined;
|
|
458
|
-
max?: number | undefined;
|
|
459
|
-
} | undefined;
|
|
460
|
-
at_head?: boolean | undefined;
|
|
461
|
-
} | undefined;
|
|
462
|
-
operator_only?: boolean | undefined;
|
|
463
|
-
producers?: ({
|
|
464
|
-
command: string;
|
|
465
|
-
description: string;
|
|
466
|
-
kind: "bash";
|
|
467
|
-
} | {
|
|
468
|
-
description: string;
|
|
469
|
-
kind: "mcp";
|
|
470
|
-
verb: string;
|
|
471
|
-
example: string;
|
|
472
|
-
} | {
|
|
473
|
-
command: string;
|
|
474
|
-
description: string;
|
|
475
|
-
kind: "ask";
|
|
476
|
-
})[] | undefined;
|
|
477
|
-
ux?: {
|
|
478
|
-
cannot: string;
|
|
479
|
-
required: string[];
|
|
480
|
-
run: string[];
|
|
481
|
-
} | undefined;
|
|
482
|
-
when?: {
|
|
483
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
484
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
485
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
486
|
-
"action.reversible"?: boolean | undefined;
|
|
487
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
488
|
-
} | undefined;
|
|
489
|
-
}>;
|
|
490
|
-
export declare const PoliciesSchema: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
491
|
-
name: z.ZodString;
|
|
492
|
-
description: z.ZodString;
|
|
493
|
-
trigger: z.ZodObject<{
|
|
494
|
-
event: z.ZodEnum<["SessionStart", "UserPromptSubmit", "PreToolUse", "PostToolUse", "Stop", "SubagentStart", "SubagentStop", "PreCompact"]>;
|
|
495
|
-
match: z.ZodOptional<z.ZodString>;
|
|
496
|
-
path_match: z.ZodOptional<z.ZodString>;
|
|
497
|
-
bash_match: z.ZodOptional<z.ZodString>;
|
|
498
|
-
input_match: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>, Record<string, string | number | boolean>, Record<string, string | number | boolean>>>;
|
|
499
|
-
extract: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, Record<string, string>, Record<string, string>>>;
|
|
500
|
-
}, "strict", z.ZodTypeAny, {
|
|
501
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
502
|
-
match?: string | undefined;
|
|
503
|
-
path_match?: string | undefined;
|
|
504
|
-
bash_match?: string | undefined;
|
|
505
|
-
extract?: Record<string, string> | undefined;
|
|
506
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
507
|
-
}, {
|
|
508
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
509
|
-
match?: string | undefined;
|
|
510
|
-
path_match?: string | undefined;
|
|
511
|
-
bash_match?: string | undefined;
|
|
512
|
-
extract?: Record<string, string> | undefined;
|
|
513
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
514
|
-
}>;
|
|
515
|
-
requires: z.ZodOptional<z.ZodObject<{
|
|
516
|
-
ledger_tag: z.ZodString;
|
|
517
|
-
within: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
518
|
-
count: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
519
|
-
min: z.ZodOptional<z.ZodNumber>;
|
|
520
|
-
max: z.ZodOptional<z.ZodNumber>;
|
|
521
|
-
exact: z.ZodOptional<z.ZodNumber>;
|
|
522
|
-
}, "strict", z.ZodTypeAny, {
|
|
523
|
-
exact?: number | undefined;
|
|
524
|
-
min?: number | undefined;
|
|
525
|
-
max?: number | undefined;
|
|
526
|
-
}, {
|
|
527
|
-
exact?: number | undefined;
|
|
528
|
-
min?: number | undefined;
|
|
529
|
-
max?: number | undefined;
|
|
530
|
-
}>, {
|
|
531
|
-
exact?: number | undefined;
|
|
532
|
-
min?: number | undefined;
|
|
533
|
-
max?: number | undefined;
|
|
534
|
-
}, {
|
|
535
|
-
exact?: number | undefined;
|
|
536
|
-
min?: number | undefined;
|
|
537
|
-
max?: number | undefined;
|
|
538
|
-
}>, {
|
|
539
|
-
exact?: number | undefined;
|
|
540
|
-
min?: number | undefined;
|
|
541
|
-
max?: number | undefined;
|
|
542
|
-
}, {
|
|
543
|
-
exact?: number | undefined;
|
|
544
|
-
min?: number | undefined;
|
|
545
|
-
max?: number | undefined;
|
|
546
|
-
}>, {
|
|
547
|
-
exact?: number | undefined;
|
|
548
|
-
min?: number | undefined;
|
|
549
|
-
max?: number | undefined;
|
|
550
|
-
}, {
|
|
551
|
-
exact?: number | undefined;
|
|
552
|
-
min?: number | undefined;
|
|
553
|
-
max?: number | undefined;
|
|
554
|
-
}>, {
|
|
555
|
-
exact?: number | undefined;
|
|
556
|
-
min?: number | undefined;
|
|
557
|
-
max?: number | undefined;
|
|
558
|
-
}, {
|
|
559
|
-
exact?: number | undefined;
|
|
560
|
-
min?: number | undefined;
|
|
561
|
-
max?: number | undefined;
|
|
562
|
-
}>>;
|
|
563
|
-
at_head: z.ZodOptional<z.ZodBoolean>;
|
|
564
|
-
}, "strict", z.ZodTypeAny, {
|
|
565
|
-
ledger_tag: string;
|
|
566
|
-
within?: string | undefined;
|
|
567
|
-
count?: {
|
|
568
|
-
exact?: number | undefined;
|
|
569
|
-
min?: number | undefined;
|
|
570
|
-
max?: number | undefined;
|
|
571
|
-
} | undefined;
|
|
572
|
-
at_head?: boolean | undefined;
|
|
573
|
-
}, {
|
|
574
|
-
ledger_tag: string;
|
|
575
|
-
within?: string | undefined;
|
|
576
|
-
count?: {
|
|
577
|
-
exact?: number | undefined;
|
|
578
|
-
min?: number | undefined;
|
|
579
|
-
max?: number | undefined;
|
|
580
|
-
} | undefined;
|
|
581
|
-
at_head?: boolean | undefined;
|
|
582
|
-
}>>;
|
|
583
|
-
hook: z.ZodString;
|
|
584
|
-
enforcement: z.ZodEnum<["block", "warn", "require_approval"]>;
|
|
585
|
-
operator_only: z.ZodOptional<z.ZodBoolean>;
|
|
586
|
-
producers: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
587
|
-
kind: z.ZodLiteral<"bash">;
|
|
588
|
-
command: z.ZodString;
|
|
589
|
-
description: z.ZodString;
|
|
590
|
-
}, "strict", z.ZodTypeAny, {
|
|
591
|
-
command: string;
|
|
592
|
-
description: string;
|
|
593
|
-
kind: "bash";
|
|
594
|
-
}, {
|
|
595
|
-
command: string;
|
|
596
|
-
description: string;
|
|
597
|
-
kind: "bash";
|
|
598
|
-
}>, z.ZodObject<{
|
|
599
|
-
kind: z.ZodLiteral<"mcp">;
|
|
600
|
-
verb: z.ZodString;
|
|
601
|
-
example: z.ZodString;
|
|
602
|
-
description: z.ZodString;
|
|
603
|
-
}, "strict", z.ZodTypeAny, {
|
|
604
|
-
description: string;
|
|
605
|
-
kind: "mcp";
|
|
606
|
-
verb: string;
|
|
607
|
-
example: string;
|
|
608
|
-
}, {
|
|
609
|
-
description: string;
|
|
610
|
-
kind: "mcp";
|
|
611
|
-
verb: string;
|
|
612
|
-
example: string;
|
|
613
|
-
}>, z.ZodObject<{
|
|
614
|
-
kind: z.ZodLiteral<"ask">;
|
|
615
|
-
command: z.ZodString;
|
|
616
|
-
description: z.ZodString;
|
|
617
|
-
}, "strict", z.ZodTypeAny, {
|
|
618
|
-
command: string;
|
|
619
|
-
description: string;
|
|
620
|
-
kind: "ask";
|
|
621
|
-
}, {
|
|
622
|
-
command: string;
|
|
623
|
-
description: string;
|
|
624
|
-
kind: "ask";
|
|
625
|
-
}>]>, "many">>;
|
|
626
|
-
ux: z.ZodOptional<z.ZodObject<{
|
|
627
|
-
cannot: z.ZodString;
|
|
628
|
-
required: z.ZodArray<z.ZodString, "many">;
|
|
629
|
-
run: z.ZodArray<z.ZodString, "many">;
|
|
630
|
-
}, "strict", z.ZodTypeAny, {
|
|
631
|
-
cannot: string;
|
|
632
|
-
required: string[];
|
|
633
|
-
run: string[];
|
|
634
|
-
}, {
|
|
635
|
-
cannot: string;
|
|
636
|
-
required: string[];
|
|
637
|
-
run: string[];
|
|
638
|
-
}>>;
|
|
639
|
-
when: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
640
|
-
"risk.severity_at_least": z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
641
|
-
"risk.category_in": z.ZodOptional<z.ZodArray<z.ZodEnum<["destructive", "data_loss", "production_mutation", "credential_access", "secret_exfiltration", "network_exfiltration", "deployment_change", "infrastructure_change", "privilege_escalation", "irreversible_action", "mass_update"]>, "many">>;
|
|
642
|
-
"environment.name": z.ZodOptional<z.ZodEnum<["production", "staging", "dev", "local", "unknown"]>>;
|
|
643
|
-
"action.reversible": z.ZodOptional<z.ZodBoolean>;
|
|
644
|
-
"action.deletion_target_unresolvable": z.ZodOptional<z.ZodLiteral<true>>;
|
|
645
|
-
}, "strict", z.ZodTypeAny, {
|
|
646
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
647
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
648
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
649
|
-
"action.reversible"?: boolean | undefined;
|
|
650
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
651
|
-
}, {
|
|
652
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
653
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
654
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
655
|
-
"action.reversible"?: boolean | undefined;
|
|
656
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
657
|
-
}>, {
|
|
658
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
659
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
660
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
661
|
-
"action.reversible"?: boolean | undefined;
|
|
662
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
663
|
-
}, {
|
|
664
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
665
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
666
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
667
|
-
"action.reversible"?: boolean | undefined;
|
|
668
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
669
|
-
}>>;
|
|
670
|
-
}, "strict", z.ZodTypeAny, {
|
|
671
|
-
name: string;
|
|
672
|
-
description: string;
|
|
673
|
-
trigger: {
|
|
674
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
675
|
-
match?: string | undefined;
|
|
676
|
-
path_match?: string | undefined;
|
|
677
|
-
bash_match?: string | undefined;
|
|
678
|
-
extract?: Record<string, string> | undefined;
|
|
679
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
680
|
-
};
|
|
681
|
-
hook: string;
|
|
682
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
683
|
-
requires?: {
|
|
684
|
-
ledger_tag: string;
|
|
685
|
-
within?: string | undefined;
|
|
686
|
-
count?: {
|
|
687
|
-
exact?: number | undefined;
|
|
688
|
-
min?: number | undefined;
|
|
689
|
-
max?: number | undefined;
|
|
690
|
-
} | undefined;
|
|
691
|
-
at_head?: boolean | undefined;
|
|
692
|
-
} | undefined;
|
|
693
|
-
operator_only?: boolean | undefined;
|
|
694
|
-
producers?: ({
|
|
695
|
-
command: string;
|
|
696
|
-
description: string;
|
|
697
|
-
kind: "bash";
|
|
698
|
-
} | {
|
|
699
|
-
description: string;
|
|
700
|
-
kind: "mcp";
|
|
701
|
-
verb: string;
|
|
702
|
-
example: string;
|
|
703
|
-
} | {
|
|
704
|
-
command: string;
|
|
705
|
-
description: string;
|
|
706
|
-
kind: "ask";
|
|
707
|
-
})[] | undefined;
|
|
708
|
-
ux?: {
|
|
709
|
-
cannot: string;
|
|
710
|
-
required: string[];
|
|
711
|
-
run: string[];
|
|
712
|
-
} | undefined;
|
|
713
|
-
when?: {
|
|
714
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
715
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
716
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
717
|
-
"action.reversible"?: boolean | undefined;
|
|
718
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
719
|
-
} | undefined;
|
|
720
|
-
}, {
|
|
721
|
-
name: string;
|
|
722
|
-
description: string;
|
|
723
|
-
trigger: {
|
|
724
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
725
|
-
match?: string | undefined;
|
|
726
|
-
path_match?: string | undefined;
|
|
727
|
-
bash_match?: string | undefined;
|
|
728
|
-
extract?: Record<string, string> | undefined;
|
|
729
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
730
|
-
};
|
|
731
|
-
hook: string;
|
|
732
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
733
|
-
requires?: {
|
|
734
|
-
ledger_tag: string;
|
|
735
|
-
within?: string | undefined;
|
|
736
|
-
count?: {
|
|
737
|
-
exact?: number | undefined;
|
|
738
|
-
min?: number | undefined;
|
|
739
|
-
max?: number | undefined;
|
|
740
|
-
} | undefined;
|
|
741
|
-
at_head?: boolean | undefined;
|
|
742
|
-
} | undefined;
|
|
743
|
-
operator_only?: boolean | undefined;
|
|
744
|
-
producers?: ({
|
|
745
|
-
command: string;
|
|
746
|
-
description: string;
|
|
747
|
-
kind: "bash";
|
|
748
|
-
} | {
|
|
749
|
-
description: string;
|
|
750
|
-
kind: "mcp";
|
|
751
|
-
verb: string;
|
|
752
|
-
example: string;
|
|
753
|
-
} | {
|
|
754
|
-
command: string;
|
|
755
|
-
description: string;
|
|
756
|
-
kind: "ask";
|
|
757
|
-
})[] | undefined;
|
|
758
|
-
ux?: {
|
|
759
|
-
cannot: string;
|
|
760
|
-
required: string[];
|
|
761
|
-
run: string[];
|
|
762
|
-
} | undefined;
|
|
763
|
-
when?: {
|
|
764
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
765
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
766
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
767
|
-
"action.reversible"?: boolean | undefined;
|
|
768
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
769
|
-
} | undefined;
|
|
770
|
-
}>, {
|
|
771
|
-
name: string;
|
|
772
|
-
description: string;
|
|
773
|
-
trigger: {
|
|
774
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
775
|
-
match?: string | undefined;
|
|
776
|
-
path_match?: string | undefined;
|
|
777
|
-
bash_match?: string | undefined;
|
|
778
|
-
extract?: Record<string, string> | undefined;
|
|
779
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
780
|
-
};
|
|
781
|
-
hook: string;
|
|
782
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
783
|
-
requires?: {
|
|
784
|
-
ledger_tag: string;
|
|
785
|
-
within?: string | undefined;
|
|
786
|
-
count?: {
|
|
787
|
-
exact?: number | undefined;
|
|
788
|
-
min?: number | undefined;
|
|
789
|
-
max?: number | undefined;
|
|
790
|
-
} | undefined;
|
|
791
|
-
at_head?: boolean | undefined;
|
|
792
|
-
} | undefined;
|
|
793
|
-
operator_only?: boolean | undefined;
|
|
794
|
-
producers?: ({
|
|
795
|
-
command: string;
|
|
796
|
-
description: string;
|
|
797
|
-
kind: "bash";
|
|
798
|
-
} | {
|
|
799
|
-
description: string;
|
|
800
|
-
kind: "mcp";
|
|
801
|
-
verb: string;
|
|
802
|
-
example: string;
|
|
803
|
-
} | {
|
|
804
|
-
command: string;
|
|
805
|
-
description: string;
|
|
806
|
-
kind: "ask";
|
|
807
|
-
})[] | undefined;
|
|
808
|
-
ux?: {
|
|
809
|
-
cannot: string;
|
|
810
|
-
required: string[];
|
|
811
|
-
run: string[];
|
|
812
|
-
} | undefined;
|
|
813
|
-
when?: {
|
|
814
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
815
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
816
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
817
|
-
"action.reversible"?: boolean | undefined;
|
|
818
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
819
|
-
} | undefined;
|
|
820
|
-
}, {
|
|
821
|
-
name: string;
|
|
822
|
-
description: string;
|
|
823
|
-
trigger: {
|
|
824
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
825
|
-
match?: string | undefined;
|
|
826
|
-
path_match?: string | undefined;
|
|
827
|
-
bash_match?: string | undefined;
|
|
828
|
-
extract?: Record<string, string> | undefined;
|
|
829
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
830
|
-
};
|
|
831
|
-
hook: string;
|
|
832
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
833
|
-
requires?: {
|
|
834
|
-
ledger_tag: string;
|
|
835
|
-
within?: string | undefined;
|
|
836
|
-
count?: {
|
|
837
|
-
exact?: number | undefined;
|
|
838
|
-
min?: number | undefined;
|
|
839
|
-
max?: number | undefined;
|
|
840
|
-
} | undefined;
|
|
841
|
-
at_head?: boolean | undefined;
|
|
842
|
-
} | undefined;
|
|
843
|
-
operator_only?: boolean | undefined;
|
|
844
|
-
producers?: ({
|
|
845
|
-
command: string;
|
|
846
|
-
description: string;
|
|
847
|
-
kind: "bash";
|
|
848
|
-
} | {
|
|
849
|
-
description: string;
|
|
850
|
-
kind: "mcp";
|
|
851
|
-
verb: string;
|
|
852
|
-
example: string;
|
|
853
|
-
} | {
|
|
854
|
-
command: string;
|
|
855
|
-
description: string;
|
|
856
|
-
kind: "ask";
|
|
857
|
-
})[] | undefined;
|
|
858
|
-
ux?: {
|
|
859
|
-
cannot: string;
|
|
860
|
-
required: string[];
|
|
861
|
-
run: string[];
|
|
862
|
-
} | undefined;
|
|
863
|
-
when?: {
|
|
864
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
865
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
866
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
867
|
-
"action.reversible"?: boolean | undefined;
|
|
868
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
869
|
-
} | undefined;
|
|
870
|
-
}>, "many">, {
|
|
871
|
-
name: string;
|
|
872
|
-
description: string;
|
|
873
|
-
trigger: {
|
|
874
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
875
|
-
match?: string | undefined;
|
|
876
|
-
path_match?: string | undefined;
|
|
877
|
-
bash_match?: string | undefined;
|
|
878
|
-
extract?: Record<string, string> | undefined;
|
|
879
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
880
|
-
};
|
|
881
|
-
hook: string;
|
|
882
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
883
|
-
requires?: {
|
|
884
|
-
ledger_tag: string;
|
|
885
|
-
within?: string | undefined;
|
|
886
|
-
count?: {
|
|
887
|
-
exact?: number | undefined;
|
|
888
|
-
min?: number | undefined;
|
|
889
|
-
max?: number | undefined;
|
|
890
|
-
} | undefined;
|
|
891
|
-
at_head?: boolean | undefined;
|
|
892
|
-
} | undefined;
|
|
893
|
-
operator_only?: boolean | undefined;
|
|
894
|
-
producers?: ({
|
|
895
|
-
command: string;
|
|
896
|
-
description: string;
|
|
897
|
-
kind: "bash";
|
|
898
|
-
} | {
|
|
899
|
-
description: string;
|
|
900
|
-
kind: "mcp";
|
|
901
|
-
verb: string;
|
|
902
|
-
example: string;
|
|
903
|
-
} | {
|
|
904
|
-
command: string;
|
|
905
|
-
description: string;
|
|
906
|
-
kind: "ask";
|
|
907
|
-
})[] | undefined;
|
|
908
|
-
ux?: {
|
|
909
|
-
cannot: string;
|
|
910
|
-
required: string[];
|
|
911
|
-
run: string[];
|
|
912
|
-
} | undefined;
|
|
913
|
-
when?: {
|
|
914
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
915
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
916
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
917
|
-
"action.reversible"?: boolean | undefined;
|
|
918
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
919
|
-
} | undefined;
|
|
920
|
-
}[], {
|
|
921
|
-
name: string;
|
|
922
|
-
description: string;
|
|
923
|
-
trigger: {
|
|
924
|
-
event: "SessionStart" | "UserPromptSubmit" | "PreToolUse" | "PostToolUse" | "Stop" | "SubagentStart" | "SubagentStop" | "PreCompact";
|
|
925
|
-
match?: string | undefined;
|
|
926
|
-
path_match?: string | undefined;
|
|
927
|
-
bash_match?: string | undefined;
|
|
928
|
-
extract?: Record<string, string> | undefined;
|
|
929
|
-
input_match?: Record<string, string | number | boolean> | undefined;
|
|
930
|
-
};
|
|
931
|
-
hook: string;
|
|
932
|
-
enforcement: "warn" | "block" | "require_approval";
|
|
933
|
-
requires?: {
|
|
934
|
-
ledger_tag: string;
|
|
935
|
-
within?: string | undefined;
|
|
936
|
-
count?: {
|
|
937
|
-
exact?: number | undefined;
|
|
938
|
-
min?: number | undefined;
|
|
939
|
-
max?: number | undefined;
|
|
940
|
-
} | undefined;
|
|
941
|
-
at_head?: boolean | undefined;
|
|
942
|
-
} | undefined;
|
|
943
|
-
operator_only?: boolean | undefined;
|
|
944
|
-
producers?: ({
|
|
945
|
-
command: string;
|
|
946
|
-
description: string;
|
|
947
|
-
kind: "bash";
|
|
948
|
-
} | {
|
|
949
|
-
description: string;
|
|
950
|
-
kind: "mcp";
|
|
951
|
-
verb: string;
|
|
952
|
-
example: string;
|
|
953
|
-
} | {
|
|
954
|
-
command: string;
|
|
955
|
-
description: string;
|
|
956
|
-
kind: "ask";
|
|
957
|
-
})[] | undefined;
|
|
958
|
-
ux?: {
|
|
959
|
-
cannot: string;
|
|
960
|
-
required: string[];
|
|
961
|
-
run: string[];
|
|
962
|
-
} | undefined;
|
|
963
|
-
when?: {
|
|
964
|
-
"risk.severity_at_least"?: "low" | "medium" | "high" | "critical" | undefined;
|
|
965
|
-
"risk.category_in"?: ("destructive" | "data_loss" | "production_mutation" | "credential_access" | "secret_exfiltration" | "network_exfiltration" | "deployment_change" | "infrastructure_change" | "privilege_escalation" | "irreversible_action" | "mass_update")[] | undefined;
|
|
966
|
-
"environment.name"?: "production" | "staging" | "dev" | "local" | "unknown" | undefined;
|
|
967
|
-
"action.reversible"?: boolean | undefined;
|
|
968
|
-
"action.deletion_target_unresolvable"?: true | undefined;
|
|
969
|
-
} | undefined;
|
|
970
|
-
}[]>;
|
|
971
|
-
export type Policy = z.infer<typeof PolicySchema>;
|
|
972
|
-
export type Producer = z.infer<typeof ProducerSchema>;
|
|
973
|
-
export type PolicyUx = z.infer<typeof PolicyUxSchema>;
|
|
974
|
-
export type PolicyWhen = z.infer<typeof PolicyWhenSchema>;
|