@lannguyensi/harness 0.63.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 +90 -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 -338
- 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 -705
- 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 -378
- 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 +15 -2607
- 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 -243
- 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/register-gate-group.d.ts +5 -0
- 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 +5 -0
- package/dist/cli/register-operator-lifecycle.js +20 -0
- package/dist/cli/register-operator-lifecycle.js.map +1 -0
- 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-setup-group.d.ts +5 -0
- 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.d.ts +5 -0
- package/dist/cli/remove/register.js +25 -0
- package/dist/cli/remove/register.js.map +1 -0
- 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.d.ts +5 -0
- package/dist/cli/uninstall/register.js +171 -0
- package/dist/cli/uninstall/register.js.map +1 -0
- 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 -443
- package/dist/cli/delegate/index.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/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 -46
- package/dist/cli/dry-run.js +0 -250
- package/dist/cli/dry-run.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 -20
- package/dist/cli/explain-action.js +0 -27
- package/dist/cli/explain-action.js.map +0 -1
- package/dist/cli/explain-policy.d.ts +0 -135
- package/dist/cli/explain-policy.js +0 -266
- 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 -337
- 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 -1020
- 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 -108
- 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/resolve-env.d.ts +0 -32
- package/dist/cli/resolve-env.js +0 -47
- 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 -26
- package/dist/cli/test-risk.js +0 -34
- 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 -618
- 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 -93
- 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 -620
- package/dist/policy-packs/builtin/understanding-before-execution/persisted-reports.js +0 -1047
- 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 -1074
- 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 -494
- package/dist/runtime/intercept.js +0 -1313
- 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 -103
- package/dist/runtime/task-providers/agent-tasks.js +0 -245
- 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,519 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ReviewSpawnSchema: z.ZodEnum<["required", "optional", "skip"]>;
|
|
3
|
-
export declare const ReviewRigorSchema: z.ZodEnum<["rigorous", "quick", "docs-only"]>;
|
|
4
|
-
export declare const ReviewOnFindingsSchema: z.ZodEnum<["fix_then_remerge", "comment_only"]>;
|
|
5
|
-
export declare const MergeMethodSchema: z.ZodEnum<["merge", "squash", "rebase"]>;
|
|
6
|
-
export declare const MergeGateSchema: z.ZodEnum<["solo", "agent_tasks_label", "none"]>;
|
|
7
|
-
export declare const WorkflowWhenSchema: z.ZodObject<{
|
|
8
|
-
task_label: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9
|
-
project: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, "strict", z.ZodTypeAny, {
|
|
11
|
-
project?: string | undefined;
|
|
12
|
-
task_label?: string[] | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
project?: string | undefined;
|
|
15
|
-
task_label?: string[] | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
export declare const BranchStepSchema: z.ZodObject<{
|
|
18
|
-
kind: z.ZodLiteral<"branch">;
|
|
19
|
-
from: z.ZodDefault<z.ZodString>;
|
|
20
|
-
per_task: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
-
}, "strict", z.ZodTypeAny, {
|
|
22
|
-
kind: "branch";
|
|
23
|
-
from: string;
|
|
24
|
-
per_task: boolean;
|
|
25
|
-
}, {
|
|
26
|
-
kind: "branch";
|
|
27
|
-
from?: string | undefined;
|
|
28
|
-
per_task?: boolean | undefined;
|
|
29
|
-
}>;
|
|
30
|
-
export declare const ReviewSubagentStepSchema: z.ZodObject<{
|
|
31
|
-
kind: z.ZodLiteral<"review_subagent">;
|
|
32
|
-
spawn: z.ZodDefault<z.ZodEnum<["required", "optional", "skip"]>>;
|
|
33
|
-
agent_type: z.ZodDefault<z.ZodString>;
|
|
34
|
-
rigor: z.ZodDefault<z.ZodEnum<["rigorous", "quick", "docs-only"]>>;
|
|
35
|
-
template: z.ZodOptional<z.ZodString>;
|
|
36
|
-
on_findings: z.ZodDefault<z.ZodEnum<["fix_then_remerge", "comment_only"]>>;
|
|
37
|
-
}, "strict", z.ZodTypeAny, {
|
|
38
|
-
kind: "review_subagent";
|
|
39
|
-
spawn: "required" | "optional" | "skip";
|
|
40
|
-
agent_type: string;
|
|
41
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
42
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
43
|
-
template?: string | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
kind: "review_subagent";
|
|
46
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
47
|
-
agent_type?: string | undefined;
|
|
48
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
49
|
-
template?: string | undefined;
|
|
50
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
51
|
-
}>;
|
|
52
|
-
export declare const CiGateStepSchema: z.ZodObject<{
|
|
53
|
-
kind: z.ZodLiteral<"ci_gate">;
|
|
54
|
-
wait_for: z.ZodDefault<z.ZodString>;
|
|
55
|
-
}, "strict", z.ZodTypeAny, {
|
|
56
|
-
kind: "ci_gate";
|
|
57
|
-
wait_for: string;
|
|
58
|
-
}, {
|
|
59
|
-
kind: "ci_gate";
|
|
60
|
-
wait_for?: string | undefined;
|
|
61
|
-
}>;
|
|
62
|
-
export declare const MergeStepSchema: z.ZodObject<{
|
|
63
|
-
kind: z.ZodLiteral<"merge">;
|
|
64
|
-
method: z.ZodDefault<z.ZodEnum<["merge", "squash", "rebase"]>>;
|
|
65
|
-
gate: z.ZodDefault<z.ZodEnum<["solo", "agent_tasks_label", "none"]>>;
|
|
66
|
-
}, "strict", z.ZodTypeAny, {
|
|
67
|
-
kind: "merge";
|
|
68
|
-
method: "merge" | "squash" | "rebase";
|
|
69
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
70
|
-
}, {
|
|
71
|
-
kind: "merge";
|
|
72
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
73
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
74
|
-
}>;
|
|
75
|
-
export declare const WorkflowStepSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
76
|
-
kind: z.ZodLiteral<"branch">;
|
|
77
|
-
from: z.ZodDefault<z.ZodString>;
|
|
78
|
-
per_task: z.ZodDefault<z.ZodBoolean>;
|
|
79
|
-
}, "strict", z.ZodTypeAny, {
|
|
80
|
-
kind: "branch";
|
|
81
|
-
from: string;
|
|
82
|
-
per_task: boolean;
|
|
83
|
-
}, {
|
|
84
|
-
kind: "branch";
|
|
85
|
-
from?: string | undefined;
|
|
86
|
-
per_task?: boolean | undefined;
|
|
87
|
-
}>, z.ZodObject<{
|
|
88
|
-
kind: z.ZodLiteral<"review_subagent">;
|
|
89
|
-
spawn: z.ZodDefault<z.ZodEnum<["required", "optional", "skip"]>>;
|
|
90
|
-
agent_type: z.ZodDefault<z.ZodString>;
|
|
91
|
-
rigor: z.ZodDefault<z.ZodEnum<["rigorous", "quick", "docs-only"]>>;
|
|
92
|
-
template: z.ZodOptional<z.ZodString>;
|
|
93
|
-
on_findings: z.ZodDefault<z.ZodEnum<["fix_then_remerge", "comment_only"]>>;
|
|
94
|
-
}, "strict", z.ZodTypeAny, {
|
|
95
|
-
kind: "review_subagent";
|
|
96
|
-
spawn: "required" | "optional" | "skip";
|
|
97
|
-
agent_type: string;
|
|
98
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
99
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
100
|
-
template?: string | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
kind: "review_subagent";
|
|
103
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
104
|
-
agent_type?: string | undefined;
|
|
105
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
106
|
-
template?: string | undefined;
|
|
107
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
108
|
-
}>, z.ZodObject<{
|
|
109
|
-
kind: z.ZodLiteral<"ci_gate">;
|
|
110
|
-
wait_for: z.ZodDefault<z.ZodString>;
|
|
111
|
-
}, "strict", z.ZodTypeAny, {
|
|
112
|
-
kind: "ci_gate";
|
|
113
|
-
wait_for: string;
|
|
114
|
-
}, {
|
|
115
|
-
kind: "ci_gate";
|
|
116
|
-
wait_for?: string | undefined;
|
|
117
|
-
}>, z.ZodObject<{
|
|
118
|
-
kind: z.ZodLiteral<"merge">;
|
|
119
|
-
method: z.ZodDefault<z.ZodEnum<["merge", "squash", "rebase"]>>;
|
|
120
|
-
gate: z.ZodDefault<z.ZodEnum<["solo", "agent_tasks_label", "none"]>>;
|
|
121
|
-
}, "strict", z.ZodTypeAny, {
|
|
122
|
-
kind: "merge";
|
|
123
|
-
method: "merge" | "squash" | "rebase";
|
|
124
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
125
|
-
}, {
|
|
126
|
-
kind: "merge";
|
|
127
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
128
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
129
|
-
}>]>;
|
|
130
|
-
export declare const WorkflowSchema: z.ZodEffects<z.ZodObject<{
|
|
131
|
-
name: z.ZodString;
|
|
132
|
-
when: z.ZodDefault<z.ZodObject<{
|
|
133
|
-
task_label: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
134
|
-
project: z.ZodOptional<z.ZodString>;
|
|
135
|
-
}, "strict", z.ZodTypeAny, {
|
|
136
|
-
project?: string | undefined;
|
|
137
|
-
task_label?: string[] | undefined;
|
|
138
|
-
}, {
|
|
139
|
-
project?: string | undefined;
|
|
140
|
-
task_label?: string[] | undefined;
|
|
141
|
-
}>>;
|
|
142
|
-
steps: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
143
|
-
kind: z.ZodLiteral<"branch">;
|
|
144
|
-
from: z.ZodDefault<z.ZodString>;
|
|
145
|
-
per_task: z.ZodDefault<z.ZodBoolean>;
|
|
146
|
-
}, "strict", z.ZodTypeAny, {
|
|
147
|
-
kind: "branch";
|
|
148
|
-
from: string;
|
|
149
|
-
per_task: boolean;
|
|
150
|
-
}, {
|
|
151
|
-
kind: "branch";
|
|
152
|
-
from?: string | undefined;
|
|
153
|
-
per_task?: boolean | undefined;
|
|
154
|
-
}>, z.ZodObject<{
|
|
155
|
-
kind: z.ZodLiteral<"review_subagent">;
|
|
156
|
-
spawn: z.ZodDefault<z.ZodEnum<["required", "optional", "skip"]>>;
|
|
157
|
-
agent_type: z.ZodDefault<z.ZodString>;
|
|
158
|
-
rigor: z.ZodDefault<z.ZodEnum<["rigorous", "quick", "docs-only"]>>;
|
|
159
|
-
template: z.ZodOptional<z.ZodString>;
|
|
160
|
-
on_findings: z.ZodDefault<z.ZodEnum<["fix_then_remerge", "comment_only"]>>;
|
|
161
|
-
}, "strict", z.ZodTypeAny, {
|
|
162
|
-
kind: "review_subagent";
|
|
163
|
-
spawn: "required" | "optional" | "skip";
|
|
164
|
-
agent_type: string;
|
|
165
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
166
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
167
|
-
template?: string | undefined;
|
|
168
|
-
}, {
|
|
169
|
-
kind: "review_subagent";
|
|
170
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
171
|
-
agent_type?: string | undefined;
|
|
172
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
173
|
-
template?: string | undefined;
|
|
174
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
175
|
-
}>, z.ZodObject<{
|
|
176
|
-
kind: z.ZodLiteral<"ci_gate">;
|
|
177
|
-
wait_for: z.ZodDefault<z.ZodString>;
|
|
178
|
-
}, "strict", z.ZodTypeAny, {
|
|
179
|
-
kind: "ci_gate";
|
|
180
|
-
wait_for: string;
|
|
181
|
-
}, {
|
|
182
|
-
kind: "ci_gate";
|
|
183
|
-
wait_for?: string | undefined;
|
|
184
|
-
}>, z.ZodObject<{
|
|
185
|
-
kind: z.ZodLiteral<"merge">;
|
|
186
|
-
method: z.ZodDefault<z.ZodEnum<["merge", "squash", "rebase"]>>;
|
|
187
|
-
gate: z.ZodDefault<z.ZodEnum<["solo", "agent_tasks_label", "none"]>>;
|
|
188
|
-
}, "strict", z.ZodTypeAny, {
|
|
189
|
-
kind: "merge";
|
|
190
|
-
method: "merge" | "squash" | "rebase";
|
|
191
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
192
|
-
}, {
|
|
193
|
-
kind: "merge";
|
|
194
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
195
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
196
|
-
}>]>, "many">;
|
|
197
|
-
}, "strict", z.ZodTypeAny, {
|
|
198
|
-
name: string;
|
|
199
|
-
when: {
|
|
200
|
-
project?: string | undefined;
|
|
201
|
-
task_label?: string[] | undefined;
|
|
202
|
-
};
|
|
203
|
-
steps: ({
|
|
204
|
-
kind: "branch";
|
|
205
|
-
from: string;
|
|
206
|
-
per_task: boolean;
|
|
207
|
-
} | {
|
|
208
|
-
kind: "review_subagent";
|
|
209
|
-
spawn: "required" | "optional" | "skip";
|
|
210
|
-
agent_type: string;
|
|
211
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
212
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
213
|
-
template?: string | undefined;
|
|
214
|
-
} | {
|
|
215
|
-
kind: "ci_gate";
|
|
216
|
-
wait_for: string;
|
|
217
|
-
} | {
|
|
218
|
-
kind: "merge";
|
|
219
|
-
method: "merge" | "squash" | "rebase";
|
|
220
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
221
|
-
})[];
|
|
222
|
-
}, {
|
|
223
|
-
name: string;
|
|
224
|
-
steps: ({
|
|
225
|
-
kind: "branch";
|
|
226
|
-
from?: string | undefined;
|
|
227
|
-
per_task?: boolean | undefined;
|
|
228
|
-
} | {
|
|
229
|
-
kind: "review_subagent";
|
|
230
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
231
|
-
agent_type?: string | undefined;
|
|
232
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
233
|
-
template?: string | undefined;
|
|
234
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
235
|
-
} | {
|
|
236
|
-
kind: "ci_gate";
|
|
237
|
-
wait_for?: string | undefined;
|
|
238
|
-
} | {
|
|
239
|
-
kind: "merge";
|
|
240
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
241
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
242
|
-
})[];
|
|
243
|
-
when?: {
|
|
244
|
-
project?: string | undefined;
|
|
245
|
-
task_label?: string[] | undefined;
|
|
246
|
-
} | undefined;
|
|
247
|
-
}>, {
|
|
248
|
-
name: string;
|
|
249
|
-
when: {
|
|
250
|
-
project?: string | undefined;
|
|
251
|
-
task_label?: string[] | undefined;
|
|
252
|
-
};
|
|
253
|
-
steps: ({
|
|
254
|
-
kind: "branch";
|
|
255
|
-
from: string;
|
|
256
|
-
per_task: boolean;
|
|
257
|
-
} | {
|
|
258
|
-
kind: "review_subagent";
|
|
259
|
-
spawn: "required" | "optional" | "skip";
|
|
260
|
-
agent_type: string;
|
|
261
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
262
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
263
|
-
template?: string | undefined;
|
|
264
|
-
} | {
|
|
265
|
-
kind: "ci_gate";
|
|
266
|
-
wait_for: string;
|
|
267
|
-
} | {
|
|
268
|
-
kind: "merge";
|
|
269
|
-
method: "merge" | "squash" | "rebase";
|
|
270
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
271
|
-
})[];
|
|
272
|
-
}, {
|
|
273
|
-
name: string;
|
|
274
|
-
steps: ({
|
|
275
|
-
kind: "branch";
|
|
276
|
-
from?: string | undefined;
|
|
277
|
-
per_task?: boolean | undefined;
|
|
278
|
-
} | {
|
|
279
|
-
kind: "review_subagent";
|
|
280
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
281
|
-
agent_type?: string | undefined;
|
|
282
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
283
|
-
template?: string | undefined;
|
|
284
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
285
|
-
} | {
|
|
286
|
-
kind: "ci_gate";
|
|
287
|
-
wait_for?: string | undefined;
|
|
288
|
-
} | {
|
|
289
|
-
kind: "merge";
|
|
290
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
291
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
292
|
-
})[];
|
|
293
|
-
when?: {
|
|
294
|
-
project?: string | undefined;
|
|
295
|
-
task_label?: string[] | undefined;
|
|
296
|
-
} | undefined;
|
|
297
|
-
}>;
|
|
298
|
-
export declare const WorkflowsSchema: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
299
|
-
name: z.ZodString;
|
|
300
|
-
when: z.ZodDefault<z.ZodObject<{
|
|
301
|
-
task_label: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
302
|
-
project: z.ZodOptional<z.ZodString>;
|
|
303
|
-
}, "strict", z.ZodTypeAny, {
|
|
304
|
-
project?: string | undefined;
|
|
305
|
-
task_label?: string[] | undefined;
|
|
306
|
-
}, {
|
|
307
|
-
project?: string | undefined;
|
|
308
|
-
task_label?: string[] | undefined;
|
|
309
|
-
}>>;
|
|
310
|
-
steps: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
311
|
-
kind: z.ZodLiteral<"branch">;
|
|
312
|
-
from: z.ZodDefault<z.ZodString>;
|
|
313
|
-
per_task: z.ZodDefault<z.ZodBoolean>;
|
|
314
|
-
}, "strict", z.ZodTypeAny, {
|
|
315
|
-
kind: "branch";
|
|
316
|
-
from: string;
|
|
317
|
-
per_task: boolean;
|
|
318
|
-
}, {
|
|
319
|
-
kind: "branch";
|
|
320
|
-
from?: string | undefined;
|
|
321
|
-
per_task?: boolean | undefined;
|
|
322
|
-
}>, z.ZodObject<{
|
|
323
|
-
kind: z.ZodLiteral<"review_subagent">;
|
|
324
|
-
spawn: z.ZodDefault<z.ZodEnum<["required", "optional", "skip"]>>;
|
|
325
|
-
agent_type: z.ZodDefault<z.ZodString>;
|
|
326
|
-
rigor: z.ZodDefault<z.ZodEnum<["rigorous", "quick", "docs-only"]>>;
|
|
327
|
-
template: z.ZodOptional<z.ZodString>;
|
|
328
|
-
on_findings: z.ZodDefault<z.ZodEnum<["fix_then_remerge", "comment_only"]>>;
|
|
329
|
-
}, "strict", z.ZodTypeAny, {
|
|
330
|
-
kind: "review_subagent";
|
|
331
|
-
spawn: "required" | "optional" | "skip";
|
|
332
|
-
agent_type: string;
|
|
333
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
334
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
335
|
-
template?: string | undefined;
|
|
336
|
-
}, {
|
|
337
|
-
kind: "review_subagent";
|
|
338
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
339
|
-
agent_type?: string | undefined;
|
|
340
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
341
|
-
template?: string | undefined;
|
|
342
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
343
|
-
}>, z.ZodObject<{
|
|
344
|
-
kind: z.ZodLiteral<"ci_gate">;
|
|
345
|
-
wait_for: z.ZodDefault<z.ZodString>;
|
|
346
|
-
}, "strict", z.ZodTypeAny, {
|
|
347
|
-
kind: "ci_gate";
|
|
348
|
-
wait_for: string;
|
|
349
|
-
}, {
|
|
350
|
-
kind: "ci_gate";
|
|
351
|
-
wait_for?: string | undefined;
|
|
352
|
-
}>, z.ZodObject<{
|
|
353
|
-
kind: z.ZodLiteral<"merge">;
|
|
354
|
-
method: z.ZodDefault<z.ZodEnum<["merge", "squash", "rebase"]>>;
|
|
355
|
-
gate: z.ZodDefault<z.ZodEnum<["solo", "agent_tasks_label", "none"]>>;
|
|
356
|
-
}, "strict", z.ZodTypeAny, {
|
|
357
|
-
kind: "merge";
|
|
358
|
-
method: "merge" | "squash" | "rebase";
|
|
359
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
360
|
-
}, {
|
|
361
|
-
kind: "merge";
|
|
362
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
363
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
364
|
-
}>]>, "many">;
|
|
365
|
-
}, "strict", z.ZodTypeAny, {
|
|
366
|
-
name: string;
|
|
367
|
-
when: {
|
|
368
|
-
project?: string | undefined;
|
|
369
|
-
task_label?: string[] | undefined;
|
|
370
|
-
};
|
|
371
|
-
steps: ({
|
|
372
|
-
kind: "branch";
|
|
373
|
-
from: string;
|
|
374
|
-
per_task: boolean;
|
|
375
|
-
} | {
|
|
376
|
-
kind: "review_subagent";
|
|
377
|
-
spawn: "required" | "optional" | "skip";
|
|
378
|
-
agent_type: string;
|
|
379
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
380
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
381
|
-
template?: string | undefined;
|
|
382
|
-
} | {
|
|
383
|
-
kind: "ci_gate";
|
|
384
|
-
wait_for: string;
|
|
385
|
-
} | {
|
|
386
|
-
kind: "merge";
|
|
387
|
-
method: "merge" | "squash" | "rebase";
|
|
388
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
389
|
-
})[];
|
|
390
|
-
}, {
|
|
391
|
-
name: string;
|
|
392
|
-
steps: ({
|
|
393
|
-
kind: "branch";
|
|
394
|
-
from?: string | undefined;
|
|
395
|
-
per_task?: boolean | undefined;
|
|
396
|
-
} | {
|
|
397
|
-
kind: "review_subagent";
|
|
398
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
399
|
-
agent_type?: string | undefined;
|
|
400
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
401
|
-
template?: string | undefined;
|
|
402
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
403
|
-
} | {
|
|
404
|
-
kind: "ci_gate";
|
|
405
|
-
wait_for?: string | undefined;
|
|
406
|
-
} | {
|
|
407
|
-
kind: "merge";
|
|
408
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
409
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
410
|
-
})[];
|
|
411
|
-
when?: {
|
|
412
|
-
project?: string | undefined;
|
|
413
|
-
task_label?: string[] | undefined;
|
|
414
|
-
} | undefined;
|
|
415
|
-
}>, {
|
|
416
|
-
name: string;
|
|
417
|
-
when: {
|
|
418
|
-
project?: string | undefined;
|
|
419
|
-
task_label?: string[] | undefined;
|
|
420
|
-
};
|
|
421
|
-
steps: ({
|
|
422
|
-
kind: "branch";
|
|
423
|
-
from: string;
|
|
424
|
-
per_task: boolean;
|
|
425
|
-
} | {
|
|
426
|
-
kind: "review_subagent";
|
|
427
|
-
spawn: "required" | "optional" | "skip";
|
|
428
|
-
agent_type: string;
|
|
429
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
430
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
431
|
-
template?: string | undefined;
|
|
432
|
-
} | {
|
|
433
|
-
kind: "ci_gate";
|
|
434
|
-
wait_for: string;
|
|
435
|
-
} | {
|
|
436
|
-
kind: "merge";
|
|
437
|
-
method: "merge" | "squash" | "rebase";
|
|
438
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
439
|
-
})[];
|
|
440
|
-
}, {
|
|
441
|
-
name: string;
|
|
442
|
-
steps: ({
|
|
443
|
-
kind: "branch";
|
|
444
|
-
from?: string | undefined;
|
|
445
|
-
per_task?: boolean | undefined;
|
|
446
|
-
} | {
|
|
447
|
-
kind: "review_subagent";
|
|
448
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
449
|
-
agent_type?: string | undefined;
|
|
450
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
451
|
-
template?: string | undefined;
|
|
452
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
453
|
-
} | {
|
|
454
|
-
kind: "ci_gate";
|
|
455
|
-
wait_for?: string | undefined;
|
|
456
|
-
} | {
|
|
457
|
-
kind: "merge";
|
|
458
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
459
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
460
|
-
})[];
|
|
461
|
-
when?: {
|
|
462
|
-
project?: string | undefined;
|
|
463
|
-
task_label?: string[] | undefined;
|
|
464
|
-
} | undefined;
|
|
465
|
-
}>, "many">, {
|
|
466
|
-
name: string;
|
|
467
|
-
when: {
|
|
468
|
-
project?: string | undefined;
|
|
469
|
-
task_label?: string[] | undefined;
|
|
470
|
-
};
|
|
471
|
-
steps: ({
|
|
472
|
-
kind: "branch";
|
|
473
|
-
from: string;
|
|
474
|
-
per_task: boolean;
|
|
475
|
-
} | {
|
|
476
|
-
kind: "review_subagent";
|
|
477
|
-
spawn: "required" | "optional" | "skip";
|
|
478
|
-
agent_type: string;
|
|
479
|
-
rigor: "rigorous" | "quick" | "docs-only";
|
|
480
|
-
on_findings: "fix_then_remerge" | "comment_only";
|
|
481
|
-
template?: string | undefined;
|
|
482
|
-
} | {
|
|
483
|
-
kind: "ci_gate";
|
|
484
|
-
wait_for: string;
|
|
485
|
-
} | {
|
|
486
|
-
kind: "merge";
|
|
487
|
-
method: "merge" | "squash" | "rebase";
|
|
488
|
-
gate: "solo" | "agent_tasks_label" | "none";
|
|
489
|
-
})[];
|
|
490
|
-
}[], {
|
|
491
|
-
name: string;
|
|
492
|
-
steps: ({
|
|
493
|
-
kind: "branch";
|
|
494
|
-
from?: string | undefined;
|
|
495
|
-
per_task?: boolean | undefined;
|
|
496
|
-
} | {
|
|
497
|
-
kind: "review_subagent";
|
|
498
|
-
spawn?: "required" | "optional" | "skip" | undefined;
|
|
499
|
-
agent_type?: string | undefined;
|
|
500
|
-
rigor?: "rigorous" | "quick" | "docs-only" | undefined;
|
|
501
|
-
template?: string | undefined;
|
|
502
|
-
on_findings?: "fix_then_remerge" | "comment_only" | undefined;
|
|
503
|
-
} | {
|
|
504
|
-
kind: "ci_gate";
|
|
505
|
-
wait_for?: string | undefined;
|
|
506
|
-
} | {
|
|
507
|
-
kind: "merge";
|
|
508
|
-
method?: "merge" | "squash" | "rebase" | undefined;
|
|
509
|
-
gate?: "solo" | "agent_tasks_label" | "none" | undefined;
|
|
510
|
-
})[];
|
|
511
|
-
when?: {
|
|
512
|
-
project?: string | undefined;
|
|
513
|
-
task_label?: string[] | undefined;
|
|
514
|
-
} | undefined;
|
|
515
|
-
}[]>;
|
|
516
|
-
export declare const ReviewTemplatesSchema: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
517
|
-
export type Workflow = z.infer<typeof WorkflowSchema>;
|
|
518
|
-
export type WorkflowStep = z.infer<typeof WorkflowStepSchema>;
|
|
519
|
-
export type ReviewTemplates = z.infer<typeof ReviewTemplatesSchema>;
|
package/dist/schema/workflows.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export const ReviewSpawnSchema = z.enum(["required", "optional", "skip"]);
|
|
3
|
-
export const ReviewRigorSchema = z.enum(["rigorous", "quick", "docs-only"]);
|
|
4
|
-
export const ReviewOnFindingsSchema = z.enum(["fix_then_remerge", "comment_only"]);
|
|
5
|
-
export const MergeMethodSchema = z.enum(["merge", "squash", "rebase"]);
|
|
6
|
-
export const MergeGateSchema = z.enum(["solo", "agent_tasks_label", "none"]);
|
|
7
|
-
export const WorkflowWhenSchema = z
|
|
8
|
-
.object({
|
|
9
|
-
task_label: z.array(z.string().min(1)).min(1).optional(),
|
|
10
|
-
project: z.string().min(1).optional(),
|
|
11
|
-
})
|
|
12
|
-
.strict();
|
|
13
|
-
export const BranchStepSchema = z
|
|
14
|
-
.object({
|
|
15
|
-
kind: z.literal("branch"),
|
|
16
|
-
from: z.string().min(1).default("master"),
|
|
17
|
-
per_task: z.boolean().default(true),
|
|
18
|
-
})
|
|
19
|
-
.strict();
|
|
20
|
-
export const ReviewSubagentStepSchema = z
|
|
21
|
-
.object({
|
|
22
|
-
kind: z.literal("review_subagent"),
|
|
23
|
-
spawn: ReviewSpawnSchema.default("required"),
|
|
24
|
-
agent_type: z.string().min(1).default("Explore"),
|
|
25
|
-
rigor: ReviewRigorSchema.default("rigorous"),
|
|
26
|
-
template: z.string().min(1).optional(),
|
|
27
|
-
on_findings: ReviewOnFindingsSchema.default("fix_then_remerge"),
|
|
28
|
-
})
|
|
29
|
-
.strict();
|
|
30
|
-
export const CiGateStepSchema = z
|
|
31
|
-
.object({
|
|
32
|
-
kind: z.literal("ci_gate"),
|
|
33
|
-
wait_for: z.string().min(1).default("completed/success"),
|
|
34
|
-
})
|
|
35
|
-
.strict();
|
|
36
|
-
export const MergeStepSchema = z
|
|
37
|
-
.object({
|
|
38
|
-
kind: z.literal("merge"),
|
|
39
|
-
method: MergeMethodSchema.default("squash"),
|
|
40
|
-
gate: MergeGateSchema.default("solo"),
|
|
41
|
-
})
|
|
42
|
-
.strict();
|
|
43
|
-
export const WorkflowStepSchema = z.discriminatedUnion("kind", [
|
|
44
|
-
BranchStepSchema,
|
|
45
|
-
ReviewSubagentStepSchema,
|
|
46
|
-
CiGateStepSchema,
|
|
47
|
-
MergeStepSchema,
|
|
48
|
-
]);
|
|
49
|
-
export const WorkflowSchema = z
|
|
50
|
-
.object({
|
|
51
|
-
name: z.string().min(1),
|
|
52
|
-
when: WorkflowWhenSchema.default({}),
|
|
53
|
-
steps: z.array(WorkflowStepSchema).min(1),
|
|
54
|
-
})
|
|
55
|
-
.strict()
|
|
56
|
-
.superRefine((wf, ctx) => {
|
|
57
|
-
wf.steps.forEach((step, i) => {
|
|
58
|
-
if (step.kind === "review_subagent" && step.spawn === "required" && !step.template) {
|
|
59
|
-
ctx.addIssue({
|
|
60
|
-
code: z.ZodIssueCode.custom,
|
|
61
|
-
path: ["steps", i, "template"],
|
|
62
|
-
message: 'review_subagent with spawn: "required" must set a template name (referencing review_templates)',
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
export const WorkflowsSchema = z.array(WorkflowSchema).superRefine((workflows, ctx) => {
|
|
68
|
-
const seen = new Set();
|
|
69
|
-
workflows.forEach((wf, i) => {
|
|
70
|
-
if (seen.has(wf.name)) {
|
|
71
|
-
ctx.addIssue({
|
|
72
|
-
code: z.ZodIssueCode.custom,
|
|
73
|
-
path: [i, "name"],
|
|
74
|
-
message: `duplicate workflow name: ${wf.name}`,
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
seen.add(wf.name);
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
export const ReviewTemplatesSchema = z.record(z.string().min(1), z.string().min(1));
|
|
81
|
-
//# sourceMappingURL=workflows.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.js","sourceRoot":"","sources":["../../src/schema/workflows.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
// Docker probe for the runtime-reality PreToolUse hook.
|
|
3
|
-
//
|
|
4
|
-
// Contract (see `harness pack hook runtime-reality`): print a JSON array
|
|
5
|
-
// of ActualProcessState `{ name, running, startup_mode, port }` on stdout,
|
|
6
|
-
// one entry per running/known container. The hook spawns this via
|
|
7
|
-
// RUNTIME_REALITY_PROBE_CMD, parses stdout, and compares it against the
|
|
8
|
-
// keyword's expectations file. A non-zero exit or non-JSON output is
|
|
9
|
-
// treated by the hook as "probe failed" (fail-open unless
|
|
10
|
-
// RUNTIME_REALITY_PROBE_FAIL_BLOCK=1) — so this script must either emit a
|
|
11
|
-
// valid array or exit non-zero, never print partial garbage.
|
|
12
|
-
//
|
|
13
|
-
// Host-coupling lives here on purpose: the agent-grounding package stays
|
|
14
|
-
// probe-agnostic; this is the harness-side concrete probe. Copy/adapt it
|
|
15
|
-
// for systemd or pm2 hosts.
|
|
16
|
-
|
|
17
|
-
import { execFileSync } from "node:child_process";
|
|
18
|
-
|
|
19
|
-
/** Pull the first published host port out of a `docker ps` Ports string,
|
|
20
|
-
* e.g. "0.0.0.0:3001->3001/tcp, :::3001->3001/tcp" -> 3001. Returns
|
|
21
|
-
* undefined when the container publishes no host port. */
|
|
22
|
-
function firstHostPort(ports) {
|
|
23
|
-
if (typeof ports !== "string") return undefined;
|
|
24
|
-
const m = ports.match(/:(\d+)->/);
|
|
25
|
-
if (!m) return undefined;
|
|
26
|
-
const n = Number.parseInt(m[1], 10);
|
|
27
|
-
return Number.isFinite(n) ? n : undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function main() {
|
|
31
|
-
let raw;
|
|
32
|
-
try {
|
|
33
|
-
raw = execFileSync("docker", ["ps", "--format", "{{json .}}"], {
|
|
34
|
-
encoding: "utf8",
|
|
35
|
-
timeout: 8000,
|
|
36
|
-
maxBuffer: 4 * 1024 * 1024,
|
|
37
|
-
});
|
|
38
|
-
} catch (err) {
|
|
39
|
-
process.stderr.write(`docker-probe: docker ps failed: ${String(err)}\n`);
|
|
40
|
-
process.exit(1);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
const states = [];
|
|
44
|
-
for (const line of raw.split("\n")) {
|
|
45
|
-
const trimmed = line.trim();
|
|
46
|
-
if (!trimmed) continue;
|
|
47
|
-
let row;
|
|
48
|
-
try {
|
|
49
|
-
row = JSON.parse(trimmed);
|
|
50
|
-
} catch {
|
|
51
|
-
// A single malformed line shouldn't sink the whole probe; skip it.
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
// `docker ps` may join multiple names with commas; the first is the
|
|
55
|
-
// canonical container name expectations are written against.
|
|
56
|
-
const name = String(row.Names ?? "").split(",")[0].trim();
|
|
57
|
-
if (!name) continue;
|
|
58
|
-
const state = {
|
|
59
|
-
name,
|
|
60
|
-
running: row.State === "running",
|
|
61
|
-
startup_mode: "docker",
|
|
62
|
-
};
|
|
63
|
-
const port = firstHostPort(row.Ports);
|
|
64
|
-
if (port !== undefined) state.port = port;
|
|
65
|
-
states.push(state);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
process.stdout.write(JSON.stringify(states) + "\n");
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
main();
|