@astrosheep/keiyaku 4.6.30 → 4.6.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -22
- package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/build/plugins/claude/skills/keiyaku/SKILL.md +12 -12
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +27 -22
- package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +14 -14
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +15 -13
- package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +18 -17
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +30 -30
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +24 -23
- package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
- package/build/plugins/codex/skills/keiyaku/SKILL.md +12 -12
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +27 -22
- package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +14 -14
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +15 -13
- package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +18 -17
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +30 -30
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +24 -23
- package/build/plugins/opencode/package.json +1 -1
- package/build/plugins/opencode/skills/keiyaku/SKILL.md +12 -12
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +27 -22
- package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +14 -14
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +15 -13
- package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +18 -17
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +30 -30
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +24 -23
- package/build/plugins/pi/README.md +20 -22
- package/build/plugins/pi/akuma-tools.ts +43 -56
- package/build/plugins/pi/keiyaku.ts +15 -4
- package/build/skills/keiyaku/SKILL.md +12 -12
- package/build/skills/keiyaku-akuma/SKILL.md +27 -22
- package/build/skills/keiyaku-akuma/references/automation.md +14 -14
- package/build/skills/keiyaku-babysit/SKILL.md +15 -13
- package/build/skills/keiyaku-bind/SKILL.md +18 -17
- package/build/skills/keiyaku-debt/SKILL.md +30 -30
- package/build/skills/keiyaku-workflow/SKILL.md +24 -23
- package/build/src/akuma/akuma-call.d.ts +4 -6
- package/build/src/akuma/akuma-call.js +12 -15
- package/build/src/akuma/akuma-errors.d.ts +12 -9
- package/build/src/akuma/akuma-errors.js +16 -12
- package/build/src/akuma/akuma-instance.d.ts +102 -23
- package/build/src/akuma/akuma-instance.js +66 -66
- package/build/src/akuma/akuma-observe.d.ts +15 -15
- package/build/src/akuma/akuma-observe.js +34 -32
- package/build/src/akuma/akuma-owner.d.ts +46 -17
- package/build/src/akuma/akuma-owner.js +68 -43
- package/build/src/akuma/akuma-probe.d.ts +3 -3
- package/build/src/akuma/akuma-probe.js +2 -2
- package/build/src/akuma/akuma-selection-execution.d.ts +992 -5
- package/build/src/akuma/akuma-selection-execution.js +96 -125
- package/build/src/akuma/akuma-stream.d.ts +2 -2
- package/build/src/akuma/akuma-stream.js +1 -1
- package/build/src/akuma/akuma-wait.d.ts +7 -7
- package/build/src/akuma/akuma-wait.js +52 -14
- package/build/src/akuma/akuma.d.ts +88 -451
- package/build/src/akuma/akuma.js +58 -56
- package/build/src/akuma/archetype.d.ts +31 -21
- package/build/src/akuma/archetype.js +67 -52
- package/build/src/akuma/body-launch.d.ts +2 -2
- package/build/src/akuma/body.js +35 -30
- package/build/src/akuma/call-initial-tell.d.ts +63 -44
- package/build/src/akuma/call-initial-tell.js +50 -3
- package/build/src/akuma/call-input.d.ts +8 -1
- package/build/src/akuma/call-input.js +27 -18
- package/build/src/akuma/caller.d.ts +26 -17
- package/build/src/akuma/caller.js +24 -10
- package/build/src/akuma/coordinate.d.ts +9 -0
- package/build/src/akuma/coordinate.js +13 -0
- package/build/src/akuma/detached-body.js +3 -3
- package/build/src/akuma/dispatch-association.d.ts +4 -4
- package/build/src/akuma/dispatch-association.js +12 -3
- package/build/src/akuma/execution-instructions.js +2 -2
- package/build/src/akuma/heart/facts.d.ts +32 -9
- package/build/src/akuma/heart/facts.js +18 -5
- package/build/src/akuma/heart/index.d.ts +0 -3
- package/build/src/akuma/heart/index.js +3 -6
- package/build/src/akuma/heart/rows.js +2 -2
- package/build/src/akuma/heart/soul.js +25 -9
- package/build/src/akuma/identity.d.ts +18 -17
- package/build/src/akuma/identity.js +29 -23
- package/build/src/akuma/index.d.ts +7 -9
- package/build/src/akuma/index.js +2 -3
- package/build/src/akuma/lineage-cache.d.ts +4 -4
- package/build/src/akuma/lineage-cache.js +10 -10
- package/build/src/akuma/projection-read.d.ts +2 -5
- package/build/src/akuma/projection-read.js +34 -47
- package/build/src/akuma/projection.d.ts +662 -569
- package/build/src/akuma/projection.js +203 -94
- package/build/src/akuma/provider-recipe.js +3 -2
- package/build/src/akuma/providers/acp/config.js +11 -10
- package/build/src/akuma/providers/acp/index.js +3 -2
- package/build/src/akuma/providers/codex-app-server/index.js +7 -1
- package/build/src/akuma/providers/execution-environment.d.ts +1 -3
- package/build/src/akuma/providers/execution-environment.js +0 -4
- package/build/src/akuma/providers/grok-build/index.js +2 -1
- package/build/src/akuma/providers/index.d.ts +0 -1
- package/build/src/akuma/providers/index.js +0 -8
- package/build/src/akuma/providers/paseo/index.js +7 -4
- package/build/src/akuma/providers/pi/index.js +4 -3
- package/build/src/akuma/publication.d.ts +3 -4
- package/build/src/akuma/publication.js +19 -17
- package/build/src/akuma/retention.js +2 -2
- package/build/src/akuma/schema.d.ts +3 -49
- package/build/src/akuma/schema.js +6 -147
- package/build/src/akuma/selection-observation.d.ts +559 -54
- package/build/src/akuma/selection-observation.js +207 -1
- package/build/src/akuma/status-projection.d.ts +52 -0
- package/build/src/akuma/status-projection.js +194 -0
- package/build/src/akuma/turn-drive.js +0 -3
- package/build/src/alias/index.d.ts +9 -4
- package/build/src/alias/index.js +11 -9
- package/build/src/body/amend.js +2 -1
- package/build/src/body/arc.js +3 -2
- package/build/src/body/criteria.js +4 -3
- package/build/src/body/decode.js +2 -1
- package/build/src/body/envelope.js +2 -1
- package/build/src/body/region.d.ts +1 -3
- package/build/src/body/region.js +3 -8
- package/build/src/body-host.d.ts +4 -11
- package/build/src/body-host.js +5 -4
- package/build/src/bounded-list.d.ts +8 -0
- package/build/src/bounded-list.js +11 -1
- package/build/src/cli/commands/akuma-grammar.d.ts +109 -66
- package/build/src/cli/commands/akuma-grammar.js +90 -110
- package/build/src/cli/commands/akuma.d.ts +8 -4
- package/build/src/cli/commands/akuma.js +92 -287
- package/build/src/cli/commands/contract-grammar.d.ts +3 -134
- package/build/src/cli/commands/contract-grammar.js +127 -203
- package/build/src/cli/commands/contract-help.d.ts +26 -21
- package/build/src/cli/commands/contract-help.js +45 -36
- package/build/src/cli/commands/contract.d.ts +6 -15
- package/build/src/cli/commands/contract.js +80 -518
- package/build/src/cli/commands/debt-grammar.d.ts +2 -4
- package/build/src/cli/commands/debt-grammar.js +22 -190
- package/build/src/cli/commands/debt.d.ts +2 -3
- package/build/src/cli/commands/debt.js +41 -334
- package/build/src/cli/commands/report.d.ts +2 -4
- package/build/src/cli/commands/report.js +11 -28
- package/build/src/cli/commands/whoami.d.ts +3 -43
- package/build/src/cli/commands/whoami.js +8 -121
- package/build/src/cli/coordinates.d.ts +3 -34
- package/build/src/cli/coordinates.js +13 -129
- package/build/src/cli/main.js +9 -3
- package/build/src/cli/parse.d.ts +78 -7
- package/build/src/cli/parse.js +49 -32
- package/build/src/cli/render/akuma-activity.d.ts +41 -31
- package/build/src/cli/render/akuma-activity.js +262 -349
- package/build/src/cli/render/akuma.d.ts +26 -27
- package/build/src/cli/render/akuma.js +99 -135
- package/build/src/cli/render/catalog.d.ts +3 -9
- package/build/src/cli/render/catalog.js +27 -105
- package/build/src/cli/render/contract-history.d.ts +3 -1
- package/build/src/cli/render/contract-history.js +139 -215
- package/build/src/cli/render/contract-observation.d.ts +36 -30
- package/build/src/cli/render/contract-observation.js +64 -34
- package/build/src/cli/render/contract-wait.js +6 -6
- package/build/src/cli/render/contract.d.ts +39 -6
- package/build/src/cli/render/contract.js +249 -374
- package/build/src/cli/render/debt.d.ts +7 -25
- package/build/src/cli/render/debt.js +74 -210
- package/build/src/cli/render/delivery-preview.d.ts +4 -3
- package/build/src/cli/render/delivery-preview.js +68 -96
- package/build/src/cli/render/kanshi-akuma.d.ts +8 -6
- package/build/src/cli/render/kanshi-akuma.js +77 -62
- package/build/src/cli/render/kanshi.d.ts +2 -4
- package/build/src/cli/render/kanshi.js +184 -223
- package/build/src/cli/render/marks.d.ts +11 -2
- package/build/src/cli/render/marks.js +13 -3
- package/build/src/cli/render/nuke.d.ts +3 -3
- package/build/src/cli/render/nuke.js +13 -16
- package/build/src/cli/render/receipt.d.ts +46 -43
- package/build/src/cli/render/receipt.js +318 -236
- package/build/src/cli/render/reconcile.d.ts +6 -4
- package/build/src/cli/render/reconcile.js +53 -137
- package/build/src/cli/render/refusal.d.ts +6 -4
- package/build/src/cli/render/refusal.js +82 -65
- package/build/src/cli/render/region.d.ts +11 -2
- package/build/src/cli/render/region.js +17 -23
- package/build/src/cli/render/settings.d.ts +1 -2
- package/build/src/cli/render/settings.js +8 -17
- package/build/src/cli/render/terminal.d.ts +11 -8
- package/build/src/cli/render/terminal.js +48 -32
- package/build/src/cli/render/verbs.d.ts +6 -0
- package/build/src/cli/render/verbs.js +270 -0
- package/build/src/cli/render/whoami.d.ts +1 -1
- package/build/src/cli/render/whoami.js +24 -31
- package/build/src/cli/runtime.d.ts +3 -11
- package/build/src/cli/runtime.js +119 -101
- package/build/src/cli/scan.d.ts +1 -1
- package/build/src/cli/streams.d.ts +2 -9
- package/build/src/cli/streams.js +9 -1
- package/build/src/cli/usage.d.ts +2 -1
- package/build/src/cli/usage.js +3 -2
- package/build/src/contract-guidance.js +2 -2
- package/build/src/contract-worktree.d.ts +2 -15
- package/build/src/contract-worktree.js +20 -44
- package/build/src/core/facts/codec.js +9 -23
- package/build/src/core/facts/errors.d.ts +2 -1
- package/build/src/core/facts/errors.js +3 -3
- package/build/src/core/facts/observation.d.ts +4 -5
- package/build/src/core/facts/observation.js +7 -9
- package/build/src/core/facts/types.d.ts +2 -13
- package/build/src/core/facts/types.js +1 -6
- package/build/src/core/verbs/abandon.d.ts +1 -2
- package/build/src/core/verbs/amend.d.ts +1 -3
- package/build/src/core/verbs/amend.js +3 -3
- package/build/src/core/verbs/arc.d.ts +1 -2
- package/build/src/core/verbs/attestation.d.ts +1 -2
- package/build/src/core/verbs/bind.d.ts +1 -3
- package/build/src/core/verbs/bind.js +5 -5
- package/build/src/core/verbs/deliver.d.ts +4 -4
- package/build/src/core/verbs/deliver.js +2 -2
- package/build/src/core/verbs/placement.d.ts +1 -7
- package/build/src/core/verbs/placement.js +4 -6
- package/build/src/core/verbs/reintegrate.d.ts +1 -3
- package/build/src/core/verbs/reintegrate.js +2 -2
- package/build/src/debt/board.d.ts +70 -134
- package/build/src/debt/board.js +99 -190
- package/build/src/debt/catalog.d.ts +4 -6
- package/build/src/debt/catalog.js +3 -40
- package/build/src/debt/document.d.ts +23 -21
- package/build/src/debt/document.js +32 -58
- package/build/src/debt/identity.d.ts +2 -14
- package/build/src/debt/identity.js +19 -49
- package/build/src/debt/index.d.ts +239 -54
- package/build/src/debt/index.js +85 -88
- package/build/src/debt/input.d.ts +21 -6
- package/build/src/debt/input.js +57 -169
- package/build/src/debt/lifecycle-operations.d.ts +1 -3
- package/build/src/debt/lifecycle-operations.js +6 -86
- package/build/src/debt/operation-types.d.ts +97 -79
- package/build/src/debt/operation-types.js +57 -1
- package/build/src/debt/operations.d.ts +11 -19
- package/build/src/debt/operations.js +70 -191
- package/build/src/debt/store.d.ts +4 -4
- package/build/src/debt/store.js +40 -95
- package/build/src/debt/view.d.ts +0 -3
- package/build/src/debt/view.js +0 -4
- package/build/src/dispatch/index.d.ts +22 -5
- package/build/src/dispatch/index.js +46 -37
- package/build/src/errors.d.ts +28 -0
- package/build/src/errors.js +26 -0
- package/build/src/git/admission.d.ts +2 -2
- package/build/src/git/admission.js +2 -1
- package/build/src/git/hooks.d.ts +15 -36
- package/build/src/git/hooks.js +45 -25
- package/build/src/git/integration.d.ts +6 -24
- package/build/src/git/integration.js +10 -16
- package/build/src/git/observe.d.ts +3 -0
- package/build/src/git/observe.js +19 -5
- package/build/src/git/private-state-seat.d.ts +2 -2
- package/build/src/git/private-state-seat.js +2 -1
- package/build/src/git/reconcile.d.ts +20 -95
- package/build/src/git/reconcile.js +37 -70
- package/build/src/git/repository.d.ts +2 -1
- package/build/src/git/repository.js +3 -3
- package/build/src/git/scratch.d.ts +3 -3
- package/build/src/git/scratch.js +4 -1
- package/build/src/git/target-placement.d.ts +27 -35
- package/build/src/git/target-placement.js +42 -27
- package/build/src/git/target.d.ts +4 -4
- package/build/src/git/target.js +2 -1
- package/build/src/git/tender.d.ts +8 -41
- package/build/src/git/tender.js +26 -66
- package/build/src/git/terminal-reconcile.js +15 -18
- package/build/src/git/terminal-seal.d.ts +2 -4
- package/build/src/git/terminal-seal.js +7 -33
- package/build/src/git/workspace.d.ts +65 -41
- package/build/src/git/workspace.js +45 -14
- package/build/src/identity/coordinates.d.ts +1 -1
- package/build/src/identity/coordinates.js +3 -2
- package/build/src/identity/normalize.js +2 -1
- package/build/src/identity/selector.d.ts +2 -0
- package/build/src/identity/selector.js +17 -6
- package/build/src/index.d.ts +37 -66
- package/build/src/index.js +10 -47
- package/build/src/kanshi/counts.d.ts +44 -15
- package/build/src/kanshi/counts.js +18 -15
- package/build/src/kanshi/index.d.ts +22 -7
- package/build/src/kanshi/index.js +30 -3
- package/build/src/kanshi/read.d.ts +309 -15
- package/build/src/kanshi/read.js +226 -535
- package/build/src/kanshi/report.d.ts +1225 -103
- package/build/src/kanshi/report.js +153 -1
- package/build/src/kanshi/select.d.ts +0 -8
- package/build/src/kanshi/select.js +20 -59
- package/build/src/library/address.d.ts +17 -17
- package/build/src/library/address.js +41 -34
- package/build/src/library/akuma-creation.d.ts +828 -91
- package/build/src/library/akuma-creation.js +292 -273
- package/build/src/library/akuma-retention.d.ts +2 -2
- package/build/src/library/akuma-retention.js +2 -2
- package/build/src/library/akumas.d.ts +33 -10
- package/build/src/library/akumas.js +109 -25
- package/build/src/library/bind.d.ts +32 -61
- package/build/src/library/bind.js +8 -12
- package/build/src/library/continuation.d.ts +133 -505
- package/build/src/library/continuation.js +37 -29
- package/build/src/library/contract-address.d.ts +8 -10
- package/build/src/library/contract-address.js +16 -23
- package/build/src/library/contract-composition.d.ts +18 -13
- package/build/src/library/contract-composition.js +62 -61
- package/build/src/library/contract-creation.d.ts +3 -2
- package/build/src/library/contract-creation.js +54 -49
- package/build/src/library/contract-outcomes.d.ts +2365 -43
- package/build/src/library/contract-outcomes.js +73 -16
- package/build/src/library/contract-settings.d.ts +3 -4
- package/build/src/library/contract-settings.js +21 -19
- package/build/src/library/contract-types.d.ts +227 -75
- package/build/src/library/contract-types.js +90 -1
- package/build/src/library/contract-wait.d.ts +75 -17
- package/build/src/library/contract-wait.js +61 -24
- package/build/src/library/delivery.d.ts +566 -37
- package/build/src/library/delivery.js +16 -28
- package/build/src/library/input.d.ts +31 -5
- package/build/src/library/input.js +40 -41
- package/build/src/library/invocation.d.ts +18 -12
- package/build/src/library/invocation.js +98 -96
- package/build/src/library/kei.d.ts +56 -0
- package/build/src/library/kei.js +696 -0
- package/build/src/{cli/delivery-identity.js → library/keiyaku-attribution.js} +1 -1
- package/build/src/library/keiyaku-classify.d.ts +11 -0
- package/build/src/library/keiyaku-classify.js +127 -0
- package/build/src/library/keiyaku-coordinates.d.ts +26 -0
- package/build/src/library/keiyaku-coordinates.js +83 -0
- package/build/src/library/keiyaku-debt.d.ts +70 -0
- package/build/src/library/keiyaku-debt.js +39 -0
- package/build/src/library/keiyaku-identity.d.ts +58 -0
- package/build/src/library/keiyaku-identity.js +177 -0
- package/build/src/library/keiyaku-verbs.d.ts +6893 -0
- package/build/src/library/keiyaku-verbs.js +496 -0
- package/build/src/library/keiyaku.d.ts +41 -38
- package/build/src/library/keiyaku.js +590 -127
- package/build/src/library/nuke.d.ts +25 -1
- package/build/src/library/nuke.js +9 -2
- package/build/src/library/outcome.d.ts +867 -736
- package/build/src/library/outcome.js +431 -211
- package/build/src/library/reconcile.d.ts +652 -116
- package/build/src/library/reconcile.js +146 -108
- package/build/src/library/refusal.d.ts +118 -590
- package/build/src/library/refusal.js +54 -51
- package/build/src/library/region.d.ts +5 -24
- package/build/src/library/region.js +6 -21
- package/build/src/library/repo.js +4 -3
- package/build/src/library/selection.d.ts +205 -45
- package/build/src/library/selection.js +139 -128
- package/build/src/mcp/adapter.d.ts +17 -0
- package/build/src/mcp/adapter.js +241 -0
- package/build/src/mcp/help.d.ts +1 -0
- package/build/src/mcp/help.js +31 -0
- package/build/src/mcp/index.d.ts +2 -0
- package/build/src/mcp/index.js +37 -0
- package/build/src/mcp/output.d.ts +385 -0
- package/build/src/mcp/output.js +193 -0
- package/build/src/plugin/public.d.ts +5 -1
- package/build/src/plugin/runtime.d.ts +1 -1
- package/build/src/plugin/runtime.js +19 -16
- package/build/src/protocol/amend.d.ts +1 -1
- package/build/src/protocol/amend.js +2 -2
- package/build/src/protocol/arc.d.ts +4 -1
- package/build/src/protocol/arc.js +7 -1
- package/build/src/protocol/attempt.d.ts +2 -3
- package/build/src/protocol/attempt.js +1 -10
- package/build/src/protocol/bind.d.ts +10 -13
- package/build/src/protocol/bind.js +12 -8
- package/build/src/protocol/completion.d.ts +412 -13
- package/build/src/protocol/completion.js +202 -28
- package/build/src/protocol/deliver.d.ts +35 -28
- package/build/src/protocol/deliver.js +52 -80
- package/build/src/protocol/delivery-preview.d.ts +102 -250
- package/build/src/protocol/delivery-preview.js +134 -130
- package/build/src/protocol/execution-observation.d.ts +136 -121
- package/build/src/protocol/execution-observation.js +9 -6
- package/build/src/protocol/intent.d.ts +14 -56
- package/build/src/protocol/intent.js +46 -73
- package/build/src/protocol/operations.d.ts +240 -543
- package/build/src/protocol/operations.js +89 -151
- package/build/src/protocol/outcome.d.ts +3 -1
- package/build/src/protocol/placement.d.ts +1 -3
- package/build/src/protocol/placement.js +6 -3
- package/build/src/protocol/progress.d.ts +8 -97
- package/build/src/protocol/progress.js +7 -55
- package/build/src/protocol/read/observation.d.ts +13 -6
- package/build/src/protocol/read/observation.js +10 -9
- package/build/src/protocol/read/status.d.ts +386 -98
- package/build/src/protocol/read/status.js +400 -139
- package/build/src/protocol/reconcile.d.ts +2 -0
- package/build/src/protocol/reconcile.js +12 -11
- package/build/src/protocol/reintegrate.d.ts +1 -3
- package/build/src/protocol/reintegrate.js +4 -5
- package/build/src/protocol/result-leaves.d.ts +507 -0
- package/build/src/protocol/result-leaves.js +156 -0
- package/build/src/protocol/result-reasons.d.ts +129 -0
- package/build/src/protocol/result-reasons.js +87 -0
- package/build/src/protocol/review.d.ts +14 -11
- package/build/src/protocol/review.js +30 -15
- package/build/src/protocol/run.d.ts +4 -4
- package/build/src/protocol/run.js +4 -1
- package/build/src/protocol/verify.d.ts +406 -31
- package/build/src/protocol/verify.js +137 -34
- package/build/src/region.d.ts +26 -0
- package/build/src/region.js +28 -0
- package/build/src/runtime/proc/diagnostic.d.ts +11 -0
- package/build/src/runtime/proc/diagnostic.js +20 -0
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/build/src/settings.d.ts +133 -40
- package/build/src/settings.js +122 -46
- package/build/src/settlement/holder.js +2 -2
- package/build/src/settlement/settle.d.ts +29 -18
- package/build/src/settlement/settle.js +22 -19
- package/build/src/verification/declaration.d.ts +4 -9
- package/build/src/verification/declaration.js +5 -10
- package/build/src/verification/execution.d.ts +7 -19
- package/build/src/verification/execution.js +37 -16
- package/build/src/verification/observation.d.ts +11 -11
- package/build/src/verification/observation.js +9 -7
- package/build/src/world.d.ts +11 -2
- package/build/src/world.js +12 -6
- package/package.json +6 -5
- package/plugins/paseo/plugin/index.server.ts +1 -1
- package/plugins/paseo/plugin/server/attach.ts +74 -67
- package/plugins/paseo/plugin/server/keiyaku.ts +73 -40
- package/plugins/paseo/plugin/server/message.ts +9 -30
- package/plugins/paseo/plugin/server/mirror-identity.ts +6 -4
- package/plugins/paseo/plugin/server/mirror.ts +16 -20
- package/plugins/paseo/plugin/server/provider.ts +1 -1
- package/plugins/paseo/plugin/server/sdk.ts +12 -6
- package/plugins/paseo/plugin/server/transport.ts +24 -1
- package/plugins/pi/README.md +20 -22
- package/plugins/pi/akuma-tools.ts +43 -56
- package/plugins/pi/keiyaku.ts +15 -4
- package/skills/keiyaku/SKILL.md +12 -12
- package/skills/keiyaku-akuma/SKILL.md +27 -22
- package/skills/keiyaku-akuma/references/automation.md +14 -14
- package/skills/keiyaku-babysit/SKILL.md +15 -13
- package/skills/keiyaku-bind/SKILL.md +18 -17
- package/skills/keiyaku-debt/SKILL.md +30 -30
- package/skills/keiyaku-workflow/SKILL.md +24 -23
- package/build/src/akuma/providers/codex-app-server/configuration.d.ts +0 -5
- package/build/src/akuma/providers/codex-app-server/configuration.js +0 -72
- package/build/src/cli/actor.d.ts +0 -10
- package/build/src/cli/actor.js +0 -24
- package/build/src/cli/akuma-caller.d.ts +0 -3
- package/build/src/cli/akuma-caller.js +0 -31
- package/build/src/cli/commands/debt-query.d.ts +0 -5
- package/build/src/cli/commands/debt-query.js +0 -194
- package/build/src/cli/render/akuma-tool-command.d.ts +0 -6
- package/build/src/cli/render/akuma-tool-command.js +0 -143
- package/build/src/cli/render/akuma-tool.d.ts +0 -32
- package/build/src/cli/render/akuma-tool.js +0 -219
- package/build/src/cli/render/effects.d.ts +0 -26
- package/build/src/cli/render/effects.js +0 -41
- package/build/src/cli/selectors.d.ts +0 -10
- package/build/src/cli/selectors.js +0 -42
- package/build/src/debt/context.d.ts +0 -16
- package/build/src/debt/context.js +0 -91
- package/build/src/debt/created-observation.d.ts +0 -38
- package/build/src/debt/created-observation.js +0 -30
- package/build/src/debt/query.d.ts +0 -76
- package/build/src/debt/query.js +0 -292
- package/build/src/library/contract-execution.d.ts +0 -28
- package/build/src/library/contract-execution.js +0 -467
- package/build/src/markdown/diff.d.ts +0 -1
- package/build/src/markdown/diff.js +0 -4
- /package/build/src/{cli/delivery-identity.d.ts → library/keiyaku-attribution.d.ts} +0 -0
|
@@ -1,718 +1,866 @@
|
|
|
1
1
|
/** @architectureCompositionRoot */
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import type {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import type
|
|
7
|
-
import type { WorldRoot } from "../world.js";
|
|
3
|
+
import type { ChangeId, ContractId, SnapshotId } from "../core/facts/types.js";
|
|
4
|
+
import { reconcileEffectSchema } from "../git/reconcile.js";
|
|
5
|
+
import { placementSchema } from "../protocol/completion.js";
|
|
6
|
+
import { type WorldRoot } from "../world.js";
|
|
8
7
|
import type { ContinuationReport } from "./continuation.js";
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type
|
|
8
|
+
import type { ReviewOutcome, VerifyOutcome } from "./contract-outcomes.js";
|
|
9
|
+
import type { SpawnResult } from "./akuma-creation.js";
|
|
10
|
+
import { KeiyakuError, type KeiyakuErrorCategory, type NextCall } from "../errors.js";
|
|
11
|
+
export { KeiyakuError, errorCategory } from "../errors.js";
|
|
12
|
+
import type { AkumaTellResult } from "../akuma/selection-observation.js";
|
|
12
13
|
import type { InvocationSnapshot } from "./invocation.js";
|
|
13
|
-
|
|
14
|
-
import { nukeConfirmationRefusalSchema, nukeConfirmationRequiredRefusalSchema, type OperationRetries } from "./refusal.js";
|
|
15
|
-
/** Contract operation tags, including preview, sharing the invocation envelope with World reset. */
|
|
14
|
+
export { executionIssueSchema } from "../protocol/result-reasons.js";
|
|
16
15
|
export type ContractVerb = "bind" | "amend" | "deliver" | "verify" | "review" | "deliver-preview" | "arc" | "abandon";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
before?: unknown;
|
|
36
|
-
after?: unknown;
|
|
37
|
-
}>>, z.ZodObject<{
|
|
38
|
-
kind: z.ZodLiteral<"worktree">;
|
|
39
|
-
path: z.ZodString;
|
|
40
|
-
action: z.ZodLiteral<"followed">;
|
|
41
|
-
before: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
42
|
-
after: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
43
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
44
|
-
kind: z.ZodLiteral<"recovery-snapshot">;
|
|
45
|
-
action: z.ZodLiteral<"created">;
|
|
46
|
-
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
47
|
-
retention: z.ZodLiteral<"ephemeral">;
|
|
48
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
-
kind: z.ZodLiteral<"target-checkout">;
|
|
16
|
+
export type ReconciliationEffect = z.output<typeof reconcileEffectSchema>;
|
|
17
|
+
export declare const reconciliationLagSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
18
|
+
kind: z.ZodLiteral<"worktree-retained">;
|
|
19
|
+
path: z.ZodString;
|
|
20
|
+
diagnostic: z.ZodExactOptional<z.ZodString>;
|
|
21
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
22
|
+
kind: z.ZodLiteral<"worktree-follow-retained">;
|
|
23
|
+
path: z.ZodString;
|
|
24
|
+
reason: z.ZodEnum<{
|
|
25
|
+
"head-moved": "head-moved";
|
|
26
|
+
"head-attached": "head-attached";
|
|
27
|
+
"operation-in-progress": "operation-in-progress";
|
|
28
|
+
}>;
|
|
29
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
30
|
+
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
31
|
+
path: z.ZodString;
|
|
32
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
33
|
+
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
50
34
|
path: z.ZodString;
|
|
51
35
|
target: z.ZodString;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
36
|
+
diagnostic: z.ZodString;
|
|
37
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
38
|
+
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
39
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
40
|
+
reason: z.ZodEnum<{
|
|
41
|
+
unappointed: "unappointed";
|
|
42
|
+
missing: "missing";
|
|
43
|
+
association: "association";
|
|
44
|
+
replaced: "replaced";
|
|
45
|
+
attached: "attached";
|
|
46
|
+
uncommitted: "uncommitted";
|
|
47
|
+
operation: "operation";
|
|
55
48
|
}>;
|
|
56
|
-
}, z.core.$strict
|
|
57
|
-
kind: z.ZodLiteral<"
|
|
49
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
50
|
+
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
51
|
+
phase: z.ZodEnum<{
|
|
52
|
+
create: "create";
|
|
53
|
+
destroy: "destroy";
|
|
54
|
+
}>;
|
|
55
|
+
path: z.ZodString;
|
|
58
56
|
name: z.ZodString;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, z.core.$strict
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
export type ReconciliationEffect = z.infer<typeof reconciliationEffectSchema>;
|
|
78
|
-
export type ReconciliationLag = z.infer<typeof reconciliationLagSchema>;
|
|
79
|
-
declare const resetOwnerSchema: z.ZodEnum<{
|
|
80
|
-
world: "world";
|
|
81
|
-
debt: "debt";
|
|
82
|
-
akuma: "akuma";
|
|
83
|
-
git: "git";
|
|
84
|
-
}>;
|
|
85
|
-
export type ResetOwner = z.infer<typeof resetOwnerSchema>;
|
|
86
|
-
declare const resetEffectSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
87
|
-
world: z.ZodString;
|
|
88
|
-
owner: z.ZodEnum<{
|
|
89
|
-
world: "world";
|
|
90
|
-
debt: "debt";
|
|
91
|
-
akuma: "akuma";
|
|
92
|
-
git: "git";
|
|
57
|
+
diagnostic: z.ZodString;
|
|
58
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
59
|
+
kind: z.ZodLiteral<"reconcile-failed">;
|
|
60
|
+
diagnostic: z.ZodString;
|
|
61
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
62
|
+
kind: z.ZodLiteral<"contract-file-failed">;
|
|
63
|
+
path: z.ZodString;
|
|
64
|
+
diagnostic: z.ZodString;
|
|
65
|
+
}, z.core.$strict>>]>;
|
|
66
|
+
export type ReconciliationLag = z.output<typeof reconciliationLagSchema>;
|
|
67
|
+
export type ReconcileLagScope = "none" | "reconciliation" | "placement" | "continuation";
|
|
68
|
+
export declare function reconcileLagScope(lag: ReconciliationLag): ReconcileLagScope;
|
|
69
|
+
export declare function reconcileLagIsFailure(lag: ReconciliationLag): boolean;
|
|
70
|
+
export declare const reconcileIssueSchema: z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
|
|
71
|
+
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
72
|
+
phase: z.ZodEnum<{
|
|
73
|
+
create: "create";
|
|
74
|
+
destroy: "destroy";
|
|
93
75
|
}>;
|
|
76
|
+
path: z.ZodString;
|
|
77
|
+
name: z.ZodString;
|
|
94
78
|
diagnostic: z.ZodString;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
owner: z.ZodEnum<{
|
|
99
|
-
world: "world";
|
|
100
|
-
debt: "debt";
|
|
101
|
-
akuma: "akuma";
|
|
102
|
-
git: "git";
|
|
79
|
+
severity: z.ZodEnum<{
|
|
80
|
+
optional: "optional";
|
|
81
|
+
required: "required";
|
|
103
82
|
}>;
|
|
83
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
84
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
85
|
+
kind: z.ZodLiteral<"reconcile-failed">;
|
|
104
86
|
diagnostic: z.ZodString;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
before?: unknown;
|
|
130
|
-
after?: unknown;
|
|
131
|
-
}>>, z.ZodObject<{
|
|
132
|
-
kind: z.ZodLiteral<"worktree">;
|
|
133
|
-
path: z.ZodString;
|
|
134
|
-
action: z.ZodLiteral<"followed">;
|
|
135
|
-
before: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
136
|
-
after: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
137
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
138
|
-
kind: z.ZodLiteral<"recovery-snapshot">;
|
|
139
|
-
action: z.ZodLiteral<"created">;
|
|
140
|
-
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
141
|
-
retention: z.ZodLiteral<"ephemeral">;
|
|
142
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
143
|
-
kind: z.ZodLiteral<"target-checkout">;
|
|
144
|
-
path: z.ZodString;
|
|
145
|
-
target: z.ZodString;
|
|
146
|
-
action: z.ZodEnum<{
|
|
147
|
-
followed: "followed";
|
|
148
|
-
recovered: "recovered";
|
|
149
|
-
}>;
|
|
150
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
151
|
-
kind: z.ZodLiteral<"ref">;
|
|
152
|
-
name: z.ZodString;
|
|
153
|
-
before: z.ZodNullable<z.ZodString>;
|
|
154
|
-
after: z.ZodNullable<z.ZodString>;
|
|
155
|
-
action: z.ZodEnum<{
|
|
156
|
-
removed: "removed";
|
|
157
|
-
unchanged: "unchanged";
|
|
158
|
-
updated: "updated";
|
|
159
|
-
created: "created";
|
|
160
|
-
}>;
|
|
161
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
162
|
-
kind: z.ZodLiteral<"contract-file">;
|
|
163
|
-
path: z.ZodString;
|
|
164
|
-
action: z.ZodEnum<{
|
|
165
|
-
removed: "removed";
|
|
166
|
-
unchanged: "unchanged";
|
|
167
|
-
updated: "updated";
|
|
168
|
-
created: "created";
|
|
169
|
-
}>;
|
|
170
|
-
}, z.core.$strict>]>;
|
|
171
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
172
|
-
kind: z.ZodLiteral<"reconciliation-lag">;
|
|
173
|
-
contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
174
|
-
affects: z.ZodEnum<{
|
|
175
|
-
none: "none";
|
|
176
|
-
placement: "placement";
|
|
177
|
-
continuation: "continuation";
|
|
178
|
-
reconciliation: "reconciliation";
|
|
179
|
-
}>;
|
|
180
|
-
lag: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
181
|
-
kind: z.ZodLiteral<"worktree-retained">;
|
|
182
|
-
path: z.ZodString;
|
|
183
|
-
diagnostic: z.ZodOptional<z.ZodString>;
|
|
184
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
185
|
-
kind: z.ZodLiteral<"worktree-follow-retained">;
|
|
186
|
-
path: z.ZodString;
|
|
187
|
-
tender: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
188
|
-
head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
189
|
-
reason: z.ZodEnum<{
|
|
190
|
-
"head-moved": "head-moved";
|
|
191
|
-
"head-attached": "head-attached";
|
|
192
|
-
"operation-in-progress": "operation-in-progress";
|
|
193
|
-
"unsupported-parent-shape": "unsupported-parent-shape";
|
|
194
|
-
}>;
|
|
195
|
-
paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
196
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
197
|
-
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
198
|
-
path: z.ZodString;
|
|
199
|
-
paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
200
|
-
head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
|
|
201
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
202
|
-
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
203
|
-
path: z.ZodString;
|
|
204
|
-
target: z.ZodString;
|
|
205
|
-
diagnostic: z.ZodString;
|
|
206
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
207
|
-
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
208
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
209
|
-
reason: z.ZodEnum<{
|
|
210
|
-
missing: "missing";
|
|
211
|
-
replaced: "replaced";
|
|
212
|
-
unappointed: "unappointed";
|
|
213
|
-
association: "association";
|
|
214
|
-
attached: "attached";
|
|
215
|
-
uncommitted: "uncommitted";
|
|
216
|
-
operation: "operation";
|
|
217
|
-
}>;
|
|
218
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
219
|
-
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
220
|
-
phase: z.ZodEnum<{
|
|
221
|
-
destroy: "destroy";
|
|
222
|
-
create: "create";
|
|
223
|
-
}>;
|
|
224
|
-
path: z.ZodString;
|
|
225
|
-
command: z.ZodNumber;
|
|
226
|
-
name: z.ZodString;
|
|
227
|
-
failure: z.ZodUnion<readonly [z.ZodObject<{
|
|
228
|
-
kind: z.ZodLiteral<"exit">;
|
|
229
|
-
code: z.ZodNumber;
|
|
230
|
-
stdout: z.ZodString;
|
|
231
|
-
stderr: z.ZodString;
|
|
232
|
-
truncated: z.ZodBoolean;
|
|
233
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
234
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
235
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
236
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
-
kind: z.ZodLiteral<"timeout">;
|
|
238
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
239
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
240
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
241
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
-
kind: z.ZodLiteral<"unknown-exit">;
|
|
243
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
244
|
-
kind: z.ZodLiteral<"spawn-error">;
|
|
245
|
-
diagnostic: z.ZodString;
|
|
246
|
-
}, z.core.$strict>]>;
|
|
247
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
248
|
-
kind: z.ZodLiteral<"reconcile-failed">;
|
|
249
|
-
stage: z.ZodEnum<{
|
|
250
|
-
observation: "observation";
|
|
251
|
-
effect: "effect";
|
|
252
|
-
}>;
|
|
253
|
-
diagnostic: z.ZodString;
|
|
254
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
255
|
-
kind: z.ZodLiteral<"contract-file-failed">;
|
|
256
|
-
worktree: z.ZodString;
|
|
257
|
-
path: z.ZodString;
|
|
258
|
-
diagnostic: z.ZodString;
|
|
259
|
-
}, z.core.$strict>]>;
|
|
260
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
261
|
-
kind: z.ZodLiteral<"checkout-retained">;
|
|
262
|
-
contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
87
|
+
severity: z.ZodEnum<{
|
|
88
|
+
optional: "optional";
|
|
89
|
+
required: "required";
|
|
90
|
+
}>;
|
|
91
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
92
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
93
|
+
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
94
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
95
|
+
reason: z.ZodEnum<{
|
|
96
|
+
unappointed: "unappointed";
|
|
97
|
+
missing: "missing";
|
|
98
|
+
association: "association";
|
|
99
|
+
replaced: "replaced";
|
|
100
|
+
attached: "attached";
|
|
101
|
+
uncommitted: "uncommitted";
|
|
102
|
+
operation: "operation";
|
|
103
|
+
}>;
|
|
104
|
+
severity: z.ZodEnum<{
|
|
105
|
+
optional: "optional";
|
|
106
|
+
required: "required";
|
|
107
|
+
}>;
|
|
108
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
109
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
110
|
+
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
263
111
|
path: z.ZodString;
|
|
264
112
|
target: z.ZodString;
|
|
265
113
|
diagnostic: z.ZodString;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
leak: z.ZodObject<{
|
|
332
|
-
path: z.ZodOptional<z.ZodString>;
|
|
333
|
-
diagnostic: z.ZodString;
|
|
334
|
-
}, z.core.$strict>;
|
|
335
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
336
|
-
kind: z.ZodLiteral<"private-state-seat-close">;
|
|
337
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
338
|
-
failure: z.ZodObject<{
|
|
339
|
-
kind: z.ZodLiteral<"private-state-seat-close-failed">;
|
|
340
|
-
diagnostic: z.ZodString;
|
|
341
|
-
}, z.core.$strict>;
|
|
342
|
-
}, z.core.$strict>]>;
|
|
343
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
344
|
-
kind: z.ZodLiteral<"execution-stopped">;
|
|
345
|
-
contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
346
|
-
stage: z.ZodEnum<{
|
|
347
|
-
admission: "admission";
|
|
348
|
-
placement: "placement";
|
|
349
|
-
verification: "verification";
|
|
350
|
-
continuation: "continuation";
|
|
351
|
-
reconciliation: "reconciliation";
|
|
352
|
-
reintegration: "reintegration";
|
|
114
|
+
severity: z.ZodEnum<{
|
|
115
|
+
optional: "optional";
|
|
116
|
+
required: "required";
|
|
117
|
+
}>;
|
|
118
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
119
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
121
|
+
path: z.ZodString;
|
|
122
|
+
severity: z.ZodEnum<{
|
|
123
|
+
optional: "optional";
|
|
124
|
+
required: "required";
|
|
125
|
+
}>;
|
|
126
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
127
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
128
|
+
kind: z.ZodLiteral<"worktree-follow-retained">;
|
|
129
|
+
path: z.ZodString;
|
|
130
|
+
reason: z.ZodEnum<{
|
|
131
|
+
"head-moved": "head-moved";
|
|
132
|
+
"head-attached": "head-attached";
|
|
133
|
+
"operation-in-progress": "operation-in-progress";
|
|
134
|
+
}>;
|
|
135
|
+
severity: z.ZodEnum<{
|
|
136
|
+
optional: "optional";
|
|
137
|
+
required: "required";
|
|
138
|
+
}>;
|
|
139
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
140
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
141
|
+
kind: z.ZodLiteral<"worktree-retained">;
|
|
142
|
+
path: z.ZodString;
|
|
143
|
+
diagnostic: z.ZodExactOptional<z.ZodString>;
|
|
144
|
+
severity: z.ZodEnum<{
|
|
145
|
+
optional: "optional";
|
|
146
|
+
required: "required";
|
|
147
|
+
}>;
|
|
148
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
149
|
+
}, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
|
|
150
|
+
kind: z.ZodLiteral<"contract-file-failed">;
|
|
151
|
+
path: z.ZodString;
|
|
152
|
+
diagnostic: z.ZodString;
|
|
153
|
+
severity: z.ZodEnum<{
|
|
154
|
+
optional: "optional";
|
|
155
|
+
required: "required";
|
|
156
|
+
}>;
|
|
157
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
158
|
+
}, z.core.$strict>>]>;
|
|
159
|
+
export declare const invocationIssueSchema: z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
|
|
160
|
+
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
161
|
+
phase: z.ZodEnum<{
|
|
162
|
+
create: "create";
|
|
163
|
+
destroy: "destroy";
|
|
164
|
+
}>;
|
|
165
|
+
path: z.ZodString;
|
|
166
|
+
name: z.ZodString;
|
|
167
|
+
diagnostic: z.ZodString;
|
|
168
|
+
severity: z.ZodEnum<{
|
|
169
|
+
optional: "optional";
|
|
170
|
+
required: "required";
|
|
171
|
+
}>;
|
|
172
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
173
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
174
|
+
kind: z.ZodLiteral<"reconcile-failed">;
|
|
175
|
+
diagnostic: z.ZodString;
|
|
176
|
+
severity: z.ZodEnum<{
|
|
177
|
+
optional: "optional";
|
|
178
|
+
required: "required";
|
|
353
179
|
}>;
|
|
180
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
181
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
182
|
+
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
183
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
184
|
+
reason: z.ZodEnum<{
|
|
185
|
+
unappointed: "unappointed";
|
|
186
|
+
missing: "missing";
|
|
187
|
+
association: "association";
|
|
188
|
+
replaced: "replaced";
|
|
189
|
+
attached: "attached";
|
|
190
|
+
uncommitted: "uncommitted";
|
|
191
|
+
operation: "operation";
|
|
192
|
+
}>;
|
|
193
|
+
severity: z.ZodEnum<{
|
|
194
|
+
optional: "optional";
|
|
195
|
+
required: "required";
|
|
196
|
+
}>;
|
|
197
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
198
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
199
|
+
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
200
|
+
path: z.ZodString;
|
|
201
|
+
target: z.ZodString;
|
|
202
|
+
diagnostic: z.ZodString;
|
|
203
|
+
severity: z.ZodEnum<{
|
|
204
|
+
optional: "optional";
|
|
205
|
+
required: "required";
|
|
206
|
+
}>;
|
|
207
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
208
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
209
|
+
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
210
|
+
path: z.ZodString;
|
|
211
|
+
severity: z.ZodEnum<{
|
|
212
|
+
optional: "optional";
|
|
213
|
+
required: "required";
|
|
214
|
+
}>;
|
|
215
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
216
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
217
|
+
kind: z.ZodLiteral<"worktree-follow-retained">;
|
|
218
|
+
path: z.ZodString;
|
|
219
|
+
reason: z.ZodEnum<{
|
|
220
|
+
"head-moved": "head-moved";
|
|
221
|
+
"head-attached": "head-attached";
|
|
222
|
+
"operation-in-progress": "operation-in-progress";
|
|
223
|
+
}>;
|
|
224
|
+
severity: z.ZodEnum<{
|
|
225
|
+
optional: "optional";
|
|
226
|
+
required: "required";
|
|
227
|
+
}>;
|
|
228
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
229
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
230
|
+
kind: z.ZodLiteral<"worktree-retained">;
|
|
231
|
+
path: z.ZodString;
|
|
232
|
+
diagnostic: z.ZodExactOptional<z.ZodString>;
|
|
233
|
+
severity: z.ZodEnum<{
|
|
234
|
+
optional: "optional";
|
|
235
|
+
required: "required";
|
|
236
|
+
}>;
|
|
237
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
238
|
+
}, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
|
|
239
|
+
kind: z.ZodLiteral<"contract-file-failed">;
|
|
240
|
+
path: z.ZodString;
|
|
241
|
+
diagnostic: z.ZodString;
|
|
242
|
+
severity: z.ZodEnum<{
|
|
243
|
+
optional: "optional";
|
|
244
|
+
required: "required";
|
|
245
|
+
}>;
|
|
246
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
247
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
248
|
+
kind: z.ZodLiteral<"diagnostic">;
|
|
249
|
+
severity: z.ZodEnum<{
|
|
250
|
+
optional: "optional";
|
|
251
|
+
required: "required";
|
|
252
|
+
}>;
|
|
253
|
+
diagnostic: z.ZodString;
|
|
254
|
+
snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
255
|
+
requirement: z.ZodExactOptional<z.ZodString>;
|
|
256
|
+
index: z.ZodExactOptional<z.ZodNumber>;
|
|
257
|
+
name: z.ZodExactOptional<z.ZodString>;
|
|
258
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
259
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
260
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
261
|
+
kind: z.ZodLiteral<"execution-stopped">;
|
|
354
262
|
reason: z.ZodEnum<{
|
|
355
263
|
failed: "failed";
|
|
356
264
|
cancelled: "cancelled";
|
|
357
265
|
}>;
|
|
358
266
|
diagnostic: z.ZodString;
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
267
|
+
severity: z.ZodLiteral<"required">;
|
|
268
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
269
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
270
|
+
kind: z.ZodLiteral<"settlement-failed">;
|
|
271
|
+
severity: z.ZodLiteral<"required">;
|
|
272
|
+
debtId: z.ZodExactOptional<z.ZodString>;
|
|
273
|
+
diagnostic: z.ZodString;
|
|
274
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
275
|
+
}, z.core.$strict>>]>;
|
|
276
|
+
export type InvocationIssue = z.output<typeof invocationIssueSchema>;
|
|
277
|
+
export declare const localIssueSchema: z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
|
|
278
|
+
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
279
|
+
phase: z.ZodEnum<{
|
|
280
|
+
create: "create";
|
|
281
|
+
destroy: "destroy";
|
|
282
|
+
}>;
|
|
283
|
+
path: z.ZodString;
|
|
362
284
|
name: z.ZodString;
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
after: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
397
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
398
|
-
kind: z.ZodLiteral<"recovery-snapshot">;
|
|
399
|
-
action: z.ZodLiteral<"created">;
|
|
400
|
-
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
401
|
-
retention: z.ZodLiteral<"ephemeral">;
|
|
402
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
403
|
-
kind: z.ZodLiteral<"target-checkout">;
|
|
404
|
-
path: z.ZodString;
|
|
405
|
-
target: z.ZodString;
|
|
406
|
-
action: z.ZodEnum<{
|
|
407
|
-
followed: "followed";
|
|
408
|
-
recovered: "recovered";
|
|
409
|
-
}>;
|
|
410
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
411
|
-
kind: z.ZodLiteral<"ref">;
|
|
412
|
-
name: z.ZodString;
|
|
413
|
-
before: z.ZodNullable<z.ZodString>;
|
|
414
|
-
after: z.ZodNullable<z.ZodString>;
|
|
415
|
-
action: z.ZodEnum<{
|
|
416
|
-
removed: "removed";
|
|
417
|
-
unchanged: "unchanged";
|
|
418
|
-
updated: "updated";
|
|
419
|
-
created: "created";
|
|
420
|
-
}>;
|
|
421
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
422
|
-
kind: z.ZodLiteral<"contract-file">;
|
|
423
|
-
path: z.ZodString;
|
|
424
|
-
action: z.ZodEnum<{
|
|
425
|
-
removed: "removed";
|
|
426
|
-
unchanged: "unchanged";
|
|
427
|
-
updated: "updated";
|
|
428
|
-
created: "created";
|
|
429
|
-
}>;
|
|
430
|
-
}, z.core.$strict>]>;
|
|
431
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
432
|
-
kind: z.ZodLiteral<"reconciliation-lag">;
|
|
433
|
-
contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
434
|
-
affects: z.ZodEnum<{
|
|
435
|
-
none: "none";
|
|
436
|
-
placement: "placement";
|
|
437
|
-
continuation: "continuation";
|
|
438
|
-
reconciliation: "reconciliation";
|
|
439
|
-
}>;
|
|
440
|
-
lag: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
441
|
-
kind: z.ZodLiteral<"worktree-retained">;
|
|
442
|
-
path: z.ZodString;
|
|
443
|
-
diagnostic: z.ZodOptional<z.ZodString>;
|
|
444
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
445
|
-
kind: z.ZodLiteral<"worktree-follow-retained">;
|
|
446
|
-
path: z.ZodString;
|
|
447
|
-
tender: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
448
|
-
head: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>;
|
|
449
|
-
reason: z.ZodEnum<{
|
|
450
|
-
"head-moved": "head-moved";
|
|
451
|
-
"head-attached": "head-attached";
|
|
452
|
-
"operation-in-progress": "operation-in-progress";
|
|
453
|
-
"unsupported-parent-shape": "unsupported-parent-shape";
|
|
454
|
-
}>;
|
|
455
|
-
paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
456
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
457
|
-
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
458
|
-
path: z.ZodString;
|
|
459
|
-
paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
460
|
-
head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
|
|
461
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
462
|
-
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
463
|
-
path: z.ZodString;
|
|
464
|
-
target: z.ZodString;
|
|
465
|
-
diagnostic: z.ZodString;
|
|
466
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
467
|
-
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
468
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
469
|
-
reason: z.ZodEnum<{
|
|
470
|
-
missing: "missing";
|
|
471
|
-
replaced: "replaced";
|
|
472
|
-
unappointed: "unappointed";
|
|
473
|
-
association: "association";
|
|
474
|
-
attached: "attached";
|
|
475
|
-
uncommitted: "uncommitted";
|
|
476
|
-
operation: "operation";
|
|
477
|
-
}>;
|
|
478
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
479
|
-
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
480
|
-
phase: z.ZodEnum<{
|
|
481
|
-
destroy: "destroy";
|
|
482
|
-
create: "create";
|
|
483
|
-
}>;
|
|
484
|
-
path: z.ZodString;
|
|
485
|
-
command: z.ZodNumber;
|
|
486
|
-
name: z.ZodString;
|
|
487
|
-
failure: z.ZodUnion<readonly [z.ZodObject<{
|
|
488
|
-
kind: z.ZodLiteral<"exit">;
|
|
489
|
-
code: z.ZodNumber;
|
|
490
|
-
stdout: z.ZodString;
|
|
491
|
-
stderr: z.ZodString;
|
|
492
|
-
truncated: z.ZodBoolean;
|
|
493
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
494
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
495
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
496
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
-
kind: z.ZodLiteral<"timeout">;
|
|
498
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
499
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
500
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
501
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
502
|
-
kind: z.ZodLiteral<"unknown-exit">;
|
|
503
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
504
|
-
kind: z.ZodLiteral<"spawn-error">;
|
|
505
|
-
diagnostic: z.ZodString;
|
|
506
|
-
}, z.core.$strict>]>;
|
|
507
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
508
|
-
kind: z.ZodLiteral<"reconcile-failed">;
|
|
509
|
-
stage: z.ZodEnum<{
|
|
510
|
-
observation: "observation";
|
|
511
|
-
effect: "effect";
|
|
512
|
-
}>;
|
|
513
|
-
diagnostic: z.ZodString;
|
|
514
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
515
|
-
kind: z.ZodLiteral<"contract-file-failed">;
|
|
516
|
-
worktree: z.ZodString;
|
|
517
|
-
path: z.ZodString;
|
|
518
|
-
diagnostic: z.ZodString;
|
|
519
|
-
}, z.core.$strict>]>;
|
|
520
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
521
|
-
kind: z.ZodLiteral<"checkout-retained">;
|
|
522
|
-
contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
285
|
+
diagnostic: z.ZodString;
|
|
286
|
+
severity: z.ZodEnum<{
|
|
287
|
+
optional: "optional";
|
|
288
|
+
required: "required";
|
|
289
|
+
}>;
|
|
290
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
291
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
292
|
+
kind: z.ZodLiteral<"reconcile-failed">;
|
|
293
|
+
diagnostic: z.ZodString;
|
|
294
|
+
severity: z.ZodEnum<{
|
|
295
|
+
optional: "optional";
|
|
296
|
+
required: "required";
|
|
297
|
+
}>;
|
|
298
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
299
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
300
|
+
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
301
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
302
|
+
reason: z.ZodEnum<{
|
|
303
|
+
unappointed: "unappointed";
|
|
304
|
+
missing: "missing";
|
|
305
|
+
association: "association";
|
|
306
|
+
replaced: "replaced";
|
|
307
|
+
attached: "attached";
|
|
308
|
+
uncommitted: "uncommitted";
|
|
309
|
+
operation: "operation";
|
|
310
|
+
}>;
|
|
311
|
+
severity: z.ZodEnum<{
|
|
312
|
+
optional: "optional";
|
|
313
|
+
required: "required";
|
|
314
|
+
}>;
|
|
315
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
316
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
317
|
+
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
523
318
|
path: z.ZodString;
|
|
524
319
|
target: z.ZodString;
|
|
525
320
|
diagnostic: z.ZodString;
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
lag: z.ZodObject<{
|
|
538
|
-
kind: z.ZodLiteral<"settlement-failed">;
|
|
539
|
-
surface: z.ZodEnum<{
|
|
540
|
-
debt: "debt";
|
|
541
|
-
"debt-holder": "debt-holder";
|
|
542
|
-
}>;
|
|
543
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
544
|
-
debtId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
|
|
545
|
-
path: z.ZodOptional<z.ZodString>;
|
|
546
|
-
diagnostic: z.ZodString;
|
|
547
|
-
}, z.core.$strict>;
|
|
548
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
549
|
-
kind: z.ZodLiteral<"cleanup">;
|
|
550
|
-
contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
551
|
-
issue: z.ZodUnion<readonly [z.ZodObject<{
|
|
552
|
-
kind: z.ZodLiteral<"decode-channel-retirement">;
|
|
553
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
554
|
-
diagnostic: z.ZodString;
|
|
555
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
556
|
-
kind: z.ZodLiteral<"verification-cleanup">;
|
|
557
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
558
|
-
snapshot: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
|
|
559
|
-
requirement: z.ZodOptional<z.ZodString>;
|
|
560
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
561
|
-
failure: z.ZodObject<{
|
|
562
|
-
phase: z.ZodLiteral<"destroy">;
|
|
563
|
-
name: z.ZodString;
|
|
564
|
-
detail: z.ZodUnion<readonly [z.ZodObject<{
|
|
565
|
-
kind: z.ZodLiteral<"exit">;
|
|
566
|
-
code: z.ZodNumber;
|
|
567
|
-
stdout: z.ZodString;
|
|
568
|
-
stderr: z.ZodString;
|
|
569
|
-
truncated: z.ZodBoolean;
|
|
570
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
571
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
572
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
573
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
574
|
-
kind: z.ZodLiteral<"timeout">;
|
|
575
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
576
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
577
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
578
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
579
|
-
kind: z.ZodLiteral<"unknown-exit">;
|
|
580
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
581
|
-
kind: z.ZodLiteral<"spawn-error">;
|
|
582
|
-
diagnostic: z.ZodString;
|
|
583
|
-
}, z.core.$strict>]>;
|
|
584
|
-
}, z.core.$strict>;
|
|
585
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
586
|
-
kind: z.ZodLiteral<"worktree-leak">;
|
|
587
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
588
|
-
snapshot: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").SnapshotId, string>>>;
|
|
589
|
-
requirement: z.ZodOptional<z.ZodString>;
|
|
590
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
591
|
-
leak: z.ZodObject<{
|
|
592
|
-
path: z.ZodOptional<z.ZodString>;
|
|
593
|
-
diagnostic: z.ZodString;
|
|
594
|
-
}, z.core.$strict>;
|
|
595
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
596
|
-
kind: z.ZodLiteral<"private-state-seat-close">;
|
|
597
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
598
|
-
failure: z.ZodObject<{
|
|
599
|
-
kind: z.ZodLiteral<"private-state-seat-close-failed">;
|
|
600
|
-
diagnostic: z.ZodString;
|
|
601
|
-
}, z.core.$strict>;
|
|
602
|
-
}, z.core.$strict>]>;
|
|
603
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
604
|
-
kind: z.ZodLiteral<"execution-stopped">;
|
|
605
|
-
contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
606
|
-
stage: z.ZodEnum<{
|
|
607
|
-
admission: "admission";
|
|
608
|
-
placement: "placement";
|
|
609
|
-
verification: "verification";
|
|
610
|
-
continuation: "continuation";
|
|
611
|
-
reconciliation: "reconciliation";
|
|
612
|
-
reintegration: "reintegration";
|
|
321
|
+
severity: z.ZodEnum<{
|
|
322
|
+
optional: "optional";
|
|
323
|
+
required: "required";
|
|
324
|
+
}>;
|
|
325
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
326
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
327
|
+
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
328
|
+
path: z.ZodString;
|
|
329
|
+
severity: z.ZodEnum<{
|
|
330
|
+
optional: "optional";
|
|
331
|
+
required: "required";
|
|
613
332
|
}>;
|
|
333
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
334
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
335
|
+
kind: z.ZodLiteral<"worktree-retained">;
|
|
336
|
+
path: z.ZodString;
|
|
337
|
+
diagnostic: z.ZodExactOptional<z.ZodString>;
|
|
338
|
+
severity: z.ZodEnum<{
|
|
339
|
+
optional: "optional";
|
|
340
|
+
required: "required";
|
|
341
|
+
}>;
|
|
342
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
343
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
344
|
+
kind: z.ZodLiteral<"contract-file-failed">;
|
|
345
|
+
path: z.ZodString;
|
|
346
|
+
diagnostic: z.ZodString;
|
|
347
|
+
severity: z.ZodEnum<{
|
|
348
|
+
optional: "optional";
|
|
349
|
+
required: "required";
|
|
350
|
+
}>;
|
|
351
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
352
|
+
}, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
|
|
353
|
+
kind: z.ZodLiteral<"diagnostic">;
|
|
354
|
+
severity: z.ZodEnum<{
|
|
355
|
+
optional: "optional";
|
|
356
|
+
required: "required";
|
|
357
|
+
}>;
|
|
358
|
+
diagnostic: z.ZodString;
|
|
359
|
+
snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
360
|
+
requirement: z.ZodExactOptional<z.ZodString>;
|
|
361
|
+
index: z.ZodExactOptional<z.ZodNumber>;
|
|
362
|
+
name: z.ZodExactOptional<z.ZodString>;
|
|
363
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
364
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
365
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
366
|
+
kind: z.ZodLiteral<"execution-stopped">;
|
|
614
367
|
reason: z.ZodEnum<{
|
|
615
368
|
failed: "failed";
|
|
616
369
|
cancelled: "cancelled";
|
|
617
370
|
}>;
|
|
618
371
|
diagnostic: z.ZodString;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
372
|
+
severity: z.ZodLiteral<"required">;
|
|
373
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
374
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
375
|
+
kind: z.ZodLiteral<"settlement-failed">;
|
|
376
|
+
severity: z.ZodLiteral<"required">;
|
|
377
|
+
debtId: z.ZodExactOptional<z.ZodString>;
|
|
378
|
+
diagnostic: z.ZodString;
|
|
379
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
380
|
+
}, z.core.$strict>>]>;
|
|
381
|
+
export declare const optionalInvocationIssueSchema: z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
|
|
382
|
+
kind: z.ZodLiteral<"worktree-retained">;
|
|
383
|
+
path: z.ZodString;
|
|
384
|
+
diagnostic: z.ZodExactOptional<z.ZodString>;
|
|
385
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
386
|
+
severity: z.ZodLiteral<"optional">;
|
|
387
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
388
|
+
kind: z.ZodLiteral<"contract-file-failed">;
|
|
389
|
+
path: z.ZodString;
|
|
390
|
+
diagnostic: z.ZodString;
|
|
391
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
392
|
+
severity: z.ZodLiteral<"optional">;
|
|
393
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
394
|
+
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
395
|
+
path: z.ZodString;
|
|
396
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
397
|
+
severity: z.ZodLiteral<"optional">;
|
|
398
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
399
|
+
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
400
|
+
path: z.ZodString;
|
|
401
|
+
target: z.ZodString;
|
|
402
|
+
diagnostic: z.ZodString;
|
|
403
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
404
|
+
severity: z.ZodLiteral<"optional">;
|
|
405
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
406
|
+
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
407
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
408
|
+
reason: z.ZodEnum<{
|
|
409
|
+
unappointed: "unappointed";
|
|
410
|
+
missing: "missing";
|
|
411
|
+
association: "association";
|
|
412
|
+
replaced: "replaced";
|
|
413
|
+
attached: "attached";
|
|
414
|
+
uncommitted: "uncommitted";
|
|
415
|
+
operation: "operation";
|
|
416
|
+
}>;
|
|
417
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
418
|
+
severity: z.ZodLiteral<"optional">;
|
|
419
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
420
|
+
kind: z.ZodLiteral<"reconcile-failed">;
|
|
421
|
+
diagnostic: z.ZodString;
|
|
422
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
423
|
+
severity: z.ZodLiteral<"optional">;
|
|
424
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
425
|
+
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
426
|
+
phase: z.ZodEnum<{
|
|
427
|
+
create: "create";
|
|
428
|
+
destroy: "destroy";
|
|
429
|
+
}>;
|
|
430
|
+
path: z.ZodString;
|
|
622
431
|
name: z.ZodString;
|
|
623
|
-
|
|
432
|
+
diagnostic: z.ZodString;
|
|
433
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
434
|
+
severity: z.ZodLiteral<"optional">;
|
|
435
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
436
|
+
kind: z.ZodLiteral<"worktree-follow-retained">;
|
|
437
|
+
path: z.ZodString;
|
|
438
|
+
reason: z.ZodEnum<{
|
|
439
|
+
"head-moved": "head-moved";
|
|
440
|
+
"head-attached": "head-attached";
|
|
441
|
+
"operation-in-progress": "operation-in-progress";
|
|
442
|
+
}>;
|
|
443
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
444
|
+
severity: z.ZodLiteral<"optional">;
|
|
445
|
+
}, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
|
|
446
|
+
kind: z.ZodLiteral<"diagnostic">;
|
|
447
|
+
diagnostic: z.ZodString;
|
|
448
|
+
snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
449
|
+
requirement: z.ZodExactOptional<z.ZodString>;
|
|
450
|
+
index: z.ZodExactOptional<z.ZodNumber>;
|
|
451
|
+
name: z.ZodExactOptional<z.ZodString>;
|
|
452
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
453
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
454
|
+
severity: z.ZodLiteral<"optional">;
|
|
455
|
+
}, z.core.$strict>>]>;
|
|
456
|
+
export declare const optionalLocalIssueSchema: z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
|
|
624
457
|
kind: z.ZodLiteral<"worktree-retained">;
|
|
625
|
-
contract: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
626
458
|
path: z.ZodString;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
459
|
+
diagnostic: z.ZodExactOptional<z.ZodString>;
|
|
460
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
461
|
+
severity: z.ZodLiteral<"optional">;
|
|
462
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
463
|
+
kind: z.ZodLiteral<"contract-file-failed">;
|
|
464
|
+
path: z.ZodString;
|
|
465
|
+
diagnostic: z.ZodString;
|
|
466
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
467
|
+
severity: z.ZodLiteral<"optional">;
|
|
468
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
469
|
+
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
470
|
+
path: z.ZodString;
|
|
471
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
472
|
+
severity: z.ZodLiteral<"optional">;
|
|
473
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
474
|
+
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
475
|
+
path: z.ZodString;
|
|
476
|
+
target: z.ZodString;
|
|
477
|
+
diagnostic: z.ZodString;
|
|
478
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
479
|
+
severity: z.ZodLiteral<"optional">;
|
|
480
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
481
|
+
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
482
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
483
|
+
reason: z.ZodEnum<{
|
|
484
|
+
unappointed: "unappointed";
|
|
485
|
+
missing: "missing";
|
|
486
|
+
association: "association";
|
|
487
|
+
replaced: "replaced";
|
|
488
|
+
attached: "attached";
|
|
489
|
+
uncommitted: "uncommitted";
|
|
490
|
+
operation: "operation";
|
|
634
491
|
}>;
|
|
492
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
493
|
+
severity: z.ZodLiteral<"optional">;
|
|
494
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
495
|
+
kind: z.ZodLiteral<"reconcile-failed">;
|
|
496
|
+
diagnostic: z.ZodString;
|
|
497
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
498
|
+
severity: z.ZodLiteral<"optional">;
|
|
499
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
500
|
+
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
501
|
+
phase: z.ZodEnum<{
|
|
502
|
+
create: "create";
|
|
503
|
+
destroy: "destroy";
|
|
504
|
+
}>;
|
|
505
|
+
path: z.ZodString;
|
|
506
|
+
name: z.ZodString;
|
|
635
507
|
diagnostic: z.ZodString;
|
|
508
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
509
|
+
severity: z.ZodLiteral<"optional">;
|
|
510
|
+
}, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
|
|
511
|
+
kind: z.ZodLiteral<"diagnostic">;
|
|
512
|
+
diagnostic: z.ZodString;
|
|
513
|
+
snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
514
|
+
requirement: z.ZodExactOptional<z.ZodString>;
|
|
515
|
+
index: z.ZodExactOptional<z.ZodNumber>;
|
|
516
|
+
name: z.ZodExactOptional<z.ZodString>;
|
|
517
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
518
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
519
|
+
severity: z.ZodLiteral<"optional">;
|
|
520
|
+
}, z.core.$strict>>]>;
|
|
521
|
+
export declare const previewIssueSchema: z.ZodReadonly<z.ZodObject<{
|
|
522
|
+
kind: z.ZodLiteral<"diagnostic">;
|
|
523
|
+
diagnostic: z.ZodString;
|
|
524
|
+
snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
525
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
526
|
+
name: z.ZodExactOptional<z.ZodString>;
|
|
527
|
+
severity: z.ZodEnum<{
|
|
528
|
+
optional: "optional";
|
|
529
|
+
required: "required";
|
|
530
|
+
}>;
|
|
531
|
+
requirement: z.ZodExactOptional<z.ZodString>;
|
|
532
|
+
index: z.ZodExactOptional<z.ZodNumber>;
|
|
533
|
+
}, z.core.$strict>>;
|
|
534
|
+
export declare const reconcilePublicIssueSchema: z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
|
|
535
|
+
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
536
|
+
phase: z.ZodEnum<{
|
|
537
|
+
create: "create";
|
|
538
|
+
destroy: "destroy";
|
|
539
|
+
}>;
|
|
540
|
+
path: z.ZodString;
|
|
541
|
+
name: z.ZodString;
|
|
542
|
+
diagnostic: z.ZodString;
|
|
543
|
+
severity: z.ZodEnum<{
|
|
544
|
+
optional: "optional";
|
|
545
|
+
required: "required";
|
|
546
|
+
}>;
|
|
547
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
548
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
549
|
+
kind: z.ZodLiteral<"reconcile-failed">;
|
|
550
|
+
diagnostic: z.ZodString;
|
|
551
|
+
severity: z.ZodEnum<{
|
|
552
|
+
optional: "optional";
|
|
553
|
+
required: "required";
|
|
554
|
+
}>;
|
|
555
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
556
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
557
|
+
kind: z.ZodLiteral<"target-workspace-retained">;
|
|
558
|
+
targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
559
|
+
reason: z.ZodEnum<{
|
|
560
|
+
unappointed: "unappointed";
|
|
561
|
+
missing: "missing";
|
|
562
|
+
association: "association";
|
|
563
|
+
replaced: "replaced";
|
|
564
|
+
attached: "attached";
|
|
565
|
+
uncommitted: "uncommitted";
|
|
566
|
+
operation: "operation";
|
|
567
|
+
}>;
|
|
568
|
+
severity: z.ZodEnum<{
|
|
569
|
+
optional: "optional";
|
|
570
|
+
required: "required";
|
|
571
|
+
}>;
|
|
572
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
573
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
574
|
+
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
575
|
+
path: z.ZodString;
|
|
576
|
+
target: z.ZodString;
|
|
577
|
+
diagnostic: z.ZodString;
|
|
578
|
+
severity: z.ZodEnum<{
|
|
579
|
+
optional: "optional";
|
|
580
|
+
required: "required";
|
|
581
|
+
}>;
|
|
582
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
583
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
584
|
+
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
585
|
+
path: z.ZodString;
|
|
586
|
+
severity: z.ZodEnum<{
|
|
587
|
+
optional: "optional";
|
|
588
|
+
required: "required";
|
|
589
|
+
}>;
|
|
590
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
591
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
592
|
+
kind: z.ZodLiteral<"worktree-retained">;
|
|
593
|
+
path: z.ZodString;
|
|
594
|
+
diagnostic: z.ZodExactOptional<z.ZodString>;
|
|
595
|
+
severity: z.ZodEnum<{
|
|
596
|
+
optional: "optional";
|
|
597
|
+
required: "required";
|
|
598
|
+
}>;
|
|
599
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
600
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
601
|
+
kind: z.ZodLiteral<"contract-file-failed">;
|
|
602
|
+
path: z.ZodString;
|
|
603
|
+
diagnostic: z.ZodString;
|
|
604
|
+
severity: z.ZodEnum<{
|
|
605
|
+
optional: "optional";
|
|
606
|
+
required: "required";
|
|
607
|
+
}>;
|
|
608
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
609
|
+
}, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
|
|
610
|
+
kind: z.ZodLiteral<"diagnostic">;
|
|
611
|
+
severity: z.ZodEnum<{
|
|
612
|
+
optional: "optional";
|
|
613
|
+
required: "required";
|
|
614
|
+
}>;
|
|
615
|
+
diagnostic: z.ZodString;
|
|
616
|
+
snapshot: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
617
|
+
requirement: z.ZodExactOptional<z.ZodString>;
|
|
618
|
+
index: z.ZodExactOptional<z.ZodNumber>;
|
|
619
|
+
name: z.ZodExactOptional<z.ZodString>;
|
|
620
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
621
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
622
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
623
|
+
kind: z.ZodLiteral<"settlement-failed">;
|
|
624
|
+
severity: z.ZodLiteral<"required">;
|
|
625
|
+
debtId: z.ZodExactOptional<z.ZodString>;
|
|
626
|
+
diagnostic: z.ZodString;
|
|
627
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
628
|
+
}, z.core.$strict>>]>;
|
|
629
|
+
export declare function invocationIssueIsFailure(issue: InvocationIssue): boolean;
|
|
630
|
+
/** Invocation classification consumes owner conclusions, never a fresh authority read. */
|
|
631
|
+
export declare function contractOutcomeDisposition(result: Readonly<{
|
|
632
|
+
kind: string;
|
|
633
|
+
issues?: readonly InvocationIssue[];
|
|
634
|
+
placement?: import("../protocol/completion.js").Placement | Omit<import("../protocol/completion.js").Placed, "integration">;
|
|
635
|
+
checks?: readonly import("../protocol/verify.js").VerificationCheck[];
|
|
636
|
+
continuation?: ContinuationReport;
|
|
637
|
+
}>): "accepted" | "unsatisfied" | "refused" | "retryable" | "failed";
|
|
638
|
+
declare const resetOwnerSchema: z.ZodEnum<{
|
|
639
|
+
world: "world";
|
|
640
|
+
akuma: "akuma";
|
|
641
|
+
git: "git";
|
|
642
|
+
debt: "debt";
|
|
643
|
+
}>;
|
|
644
|
+
export type ResetOwner = z.output<typeof resetOwnerSchema>;
|
|
645
|
+
export declare const resetIssueSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
636
646
|
kind: z.ZodLiteral<"reset-owner-stopped">;
|
|
637
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
638
|
-
world: z.ZodString;
|
|
639
647
|
owner: z.ZodEnum<{
|
|
640
648
|
world: "world";
|
|
641
|
-
debt: "debt";
|
|
642
649
|
akuma: "akuma";
|
|
643
650
|
git: "git";
|
|
651
|
+
debt: "debt";
|
|
644
652
|
}>;
|
|
645
653
|
diagnostic: z.ZodString;
|
|
654
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
646
655
|
kind: z.ZodLiteral<"reset-residue">;
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
}>;
|
|
660
|
-
required: z.ZodBoolean;
|
|
661
|
-
}, z.core.$strict>;
|
|
662
|
-
export type PendingSurface = z.infer<typeof pendingSurfaceSchema>;
|
|
663
|
-
type EnvelopeFields = Readonly<{
|
|
664
|
-
operation: ContractVerb;
|
|
665
|
-
contract?: ContractId;
|
|
666
|
-
facts: readonly JournalEntry[];
|
|
667
|
-
effects: readonly z.infer<typeof contractEffectSchema>[];
|
|
668
|
-
pending: readonly PendingSurface[];
|
|
656
|
+
diagnostic: z.ZodString;
|
|
657
|
+
}, z.core.$strict>>]>;
|
|
658
|
+
export type ResetIssue = z.output<typeof resetIssueSchema>;
|
|
659
|
+
export declare function resetIssueIsRequired(issue: ResetIssue): boolean;
|
|
660
|
+
type ResetEffect = (Readonly<{
|
|
661
|
+
kind: "reset-owner-stopped";
|
|
662
|
+
}> | Readonly<{
|
|
663
|
+
kind: "reset-residue";
|
|
664
|
+
}>) & Readonly<{
|
|
665
|
+
owner: ResetOwner;
|
|
666
|
+
diagnostic: string;
|
|
667
|
+
world: string;
|
|
669
668
|
}>;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
kind: "
|
|
669
|
+
/** Internal accumulator carrier, not a published operation answer. */
|
|
670
|
+
export type InvocationEffect = Readonly<{
|
|
671
|
+
kind: "issue";
|
|
673
672
|
contract: ContractId;
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
kind: "refused";
|
|
680
|
-
refusal: Refusal;
|
|
673
|
+
issue: InvocationIssue;
|
|
674
|
+
}> | ResetEffect | Readonly<{
|
|
675
|
+
kind: "movement";
|
|
676
|
+
contract: ContractId;
|
|
677
|
+
effect: MovementEffect;
|
|
681
678
|
}>;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
kind:
|
|
685
|
-
|
|
679
|
+
export declare const admittedEvidenceSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
680
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
681
|
+
kind: z.ZodEnum<{
|
|
682
|
+
bind: "bind";
|
|
683
|
+
amend: "amend";
|
|
684
|
+
claimed: "claimed";
|
|
685
|
+
abandoned: "abandoned";
|
|
686
|
+
}>;
|
|
687
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
688
|
+
candidate: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
689
|
+
integration: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
690
|
+
contentId: z.ZodString;
|
|
691
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
692
|
+
kind: z.ZodLiteral<"deliver">;
|
|
693
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
694
|
+
integration: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
695
|
+
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
696
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
697
|
+
kind: z.ZodLiteral<"reintegrated">;
|
|
698
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
699
|
+
requirement: z.ZodExactOptional<z.ZodString>;
|
|
700
|
+
verdict: z.ZodExactOptional<z.ZodEnum<{
|
|
701
|
+
satisfied: "satisfied";
|
|
702
|
+
unsatisfied: "unsatisfied";
|
|
703
|
+
}>>;
|
|
704
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
705
|
+
kind: z.ZodLiteral<"attestation">;
|
|
706
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
707
|
+
chapter: z.ZodNumber;
|
|
708
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
709
|
+
kind: z.ZodLiteral<"arc">;
|
|
710
|
+
}, z.core.$strict>>]>;
|
|
711
|
+
export declare const meaningfulEffectSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
712
|
+
kind: z.ZodEnum<{
|
|
713
|
+
"worktree-created": "worktree-created";
|
|
714
|
+
"worktree-removed": "worktree-removed";
|
|
715
|
+
}>;
|
|
716
|
+
path: z.ZodString;
|
|
717
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
718
|
+
kind: z.ZodLiteral<"worktree-followed">;
|
|
719
|
+
path: z.ZodString;
|
|
720
|
+
before: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
721
|
+
after: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
722
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
723
|
+
kind: z.ZodLiteral<"recovery-snapshot">;
|
|
724
|
+
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
725
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
726
|
+
kind: z.ZodLiteral<"target-checkout">;
|
|
727
|
+
path: z.ZodString;
|
|
728
|
+
target: z.ZodString;
|
|
729
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
730
|
+
kind: z.ZodLiteral<"ref">;
|
|
731
|
+
name: z.ZodString;
|
|
732
|
+
before: z.ZodNullable<z.ZodString>;
|
|
733
|
+
after: z.ZodNullable<z.ZodString>;
|
|
734
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
735
|
+
kind: z.ZodLiteral<"debt-settled">;
|
|
736
|
+
debtId: z.ZodString;
|
|
737
|
+
}, z.core.$strict>>]>;
|
|
738
|
+
export type MovementEffect = z.output<typeof meaningfulEffectSchema>;
|
|
739
|
+
export declare function compactEffect(effect: ReconciliationEffect): MovementEffect | undefined;
|
|
740
|
+
export declare const recoverySnapshotSchema: z.ZodReadonly<z.ZodObject<{
|
|
741
|
+
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
742
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
743
|
+
}, z.core.$strict>>;
|
|
744
|
+
declare const exceptionalEffectSchema: z.ZodUnion<readonly [...(z.ZodReadonly<z.ZodObject<{
|
|
745
|
+
kind: z.ZodLiteral<"ref">;
|
|
746
|
+
name: z.ZodString;
|
|
747
|
+
before: z.ZodNullable<z.ZodString>;
|
|
748
|
+
after: z.ZodNullable<z.ZodString>;
|
|
749
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
750
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
751
|
+
kind: z.ZodLiteral<"debt-settled">;
|
|
752
|
+
debtId: z.ZodString;
|
|
753
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
754
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
755
|
+
kind: z.ZodLiteral<"target-checkout">;
|
|
756
|
+
path: z.ZodString;
|
|
757
|
+
target: z.ZodString;
|
|
758
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
759
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
760
|
+
kind: z.ZodLiteral<"recovery-snapshot">;
|
|
761
|
+
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
762
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
763
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
764
|
+
kind: z.ZodLiteral<"worktree-followed">;
|
|
765
|
+
path: z.ZodString;
|
|
766
|
+
before: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
767
|
+
after: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
768
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
769
|
+
}, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
|
|
770
|
+
kind: z.ZodEnum<{
|
|
771
|
+
"worktree-created": "worktree-created";
|
|
772
|
+
"worktree-removed": "worktree-removed";
|
|
773
|
+
}>;
|
|
774
|
+
path: z.ZodString;
|
|
775
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
776
|
+
}, z.core.$strict>>)[], z.ZodReadonly<z.ZodObject<{
|
|
777
|
+
kind: z.ZodLiteral<"placed">;
|
|
778
|
+
integration: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
779
|
+
target: z.ZodExactOptional<z.ZodString>;
|
|
780
|
+
predecessor: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
781
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
782
|
+
}, z.core.$strict>>]>;
|
|
783
|
+
type PartialEvidence = Readonly<{
|
|
784
|
+
admitted?: readonly z.output<typeof admittedEvidenceSchema>[];
|
|
785
|
+
placement?: z.output<typeof placementSchema>;
|
|
786
|
+
effects?: readonly z.output<typeof exceptionalEffectSchema>[];
|
|
686
787
|
}>;
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
contract: ContractId;
|
|
691
|
-
value: IntegrationConflictMaterialized;
|
|
788
|
+
type ReceiptFields = Readonly<{
|
|
789
|
+
contractId?: ContractId;
|
|
790
|
+
issues?: readonly InvocationIssue[];
|
|
692
791
|
}>;
|
|
693
|
-
export
|
|
694
|
-
|
|
792
|
+
export declare function acceptedOutcomeSchema<Fields extends z.ZodRawShape, Issues extends z.ZodType>(fields: Fields, issues: Issues): z.ZodReadonly<z.ZodObject<{
|
|
793
|
+
kind: z.ZodLiteral<"accepted">;
|
|
794
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
795
|
+
issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<Issues>>>;
|
|
796
|
+
recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
797
|
+
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
798
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
799
|
+
}, z.core.$strict>>>>>;
|
|
800
|
+
} & Fields extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$strict>>;
|
|
801
|
+
export declare function operationOutcomeSchema<Fields extends z.ZodRawShape, Refusal extends z.ZodType, Issues extends z.ZodType>(fields: Fields, refusal: Refusal, issues: Issues): z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
802
|
+
kind: z.ZodLiteral<"accepted">;
|
|
803
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
804
|
+
issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<Issues>>>;
|
|
805
|
+
recoverySnapshots: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
806
|
+
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
807
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>>;
|
|
808
|
+
}, z.core.$strict>>>>>;
|
|
809
|
+
} & Fields extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
810
|
+
kind: z.ZodLiteral<"refused">;
|
|
811
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
812
|
+
reason: Refusal;
|
|
813
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
814
|
+
kind: z.ZodLiteral<"retry">;
|
|
815
|
+
reason: z.ZodEnum<{
|
|
816
|
+
exhausted: "exhausted";
|
|
817
|
+
collision: "collision";
|
|
818
|
+
}>;
|
|
819
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
820
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
821
|
+
kind: z.ZodLiteral<"retry">;
|
|
822
|
+
reason: z.ZodLiteral<"publication-failed">;
|
|
823
|
+
diagnostic: z.ZodString;
|
|
824
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
825
|
+
}, z.core.$strict>>]>;
|
|
826
|
+
export declare const handoffOutcomeSchema: z.ZodReadonly<z.ZodObject<{
|
|
827
|
+
kind: z.ZodLiteral<"handoff">;
|
|
828
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<ContractId, string>>;
|
|
829
|
+
worktreePath: z.ZodString;
|
|
830
|
+
targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
831
|
+
conflictPaths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
832
|
+
handoffBase: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
833
|
+
}, z.core.$strict>>;
|
|
834
|
+
export type HandoffOutcome = z.output<typeof handoffOutcomeSchema>;
|
|
695
835
|
export type ResetCounts = Readonly<{
|
|
696
836
|
refs: number;
|
|
697
837
|
worktrees: number;
|
|
698
838
|
debts: number;
|
|
699
839
|
}>;
|
|
700
|
-
export type ResetRefusal =
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
}
|
|
840
|
+
export type ResetRefusal = import("./refusal.js").NukeConfirmationRefusal | import("./refusal.js").NukeConfirmationRequiredRefusal;
|
|
841
|
+
export declare const resetOutcomeSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
842
|
+
kind: z.ZodLiteral<"accepted">;
|
|
843
|
+
refsRemoved: z.ZodExactOptional<z.ZodNumber>;
|
|
844
|
+
worktreesRemoved: z.ZodExactOptional<z.ZodNumber>;
|
|
845
|
+
debtsRemoved: z.ZodExactOptional<z.ZodNumber>;
|
|
846
|
+
issues: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
847
|
+
kind: z.ZodLiteral<"reset-owner-stopped">;
|
|
848
|
+
owner: z.ZodEnum<{
|
|
849
|
+
world: "world";
|
|
850
|
+
akuma: "akuma";
|
|
851
|
+
git: "git";
|
|
852
|
+
debt: "debt";
|
|
853
|
+
}>;
|
|
854
|
+
diagnostic: z.ZodString;
|
|
855
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
856
|
+
kind: z.ZodLiteral<"reset-residue">;
|
|
857
|
+
diagnostic: z.ZodString;
|
|
858
|
+
}, z.core.$strict>>]>>>>;
|
|
859
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
860
|
+
kind: z.ZodLiteral<"refused">;
|
|
861
|
+
world: z.ZodPipe<z.ZodString, z.ZodTransform<WorldRoot, string>>;
|
|
862
|
+
}, z.core.$strict>>]>;
|
|
863
|
+
export type ResetOutcome = z.output<typeof resetOutcomeSchema>;
|
|
716
864
|
type ResetProjection = Readonly<{
|
|
717
865
|
world: WorldRoot;
|
|
718
866
|
}> & (Readonly<{
|
|
@@ -724,102 +872,85 @@ type ResetProjection = Readonly<{
|
|
|
724
872
|
kind: "failed";
|
|
725
873
|
error: unknown;
|
|
726
874
|
}>);
|
|
727
|
-
type
|
|
728
|
-
bind: Partial<BindValue>;
|
|
729
|
-
amend: Partial<AmendValue>;
|
|
730
|
-
deliver: Partial<DeliveryValue>;
|
|
731
|
-
verify: Partial<Verify>;
|
|
732
|
-
review: Review;
|
|
733
|
-
"deliver-preview": Partial<DeliveryPreviewReport>;
|
|
734
|
-
arc: Record<string, never>;
|
|
735
|
-
abandon: Record<string, never>;
|
|
736
|
-
};
|
|
737
|
-
type PartialContractEnvelope = {
|
|
738
|
-
[Operation in ContractVerb]: EnvelopeFields & Readonly<{
|
|
739
|
-
operation: Operation;
|
|
740
|
-
head?: ContractHead;
|
|
741
|
-
value?: PartialValues[Operation];
|
|
742
|
-
}>;
|
|
743
|
-
}[ContractVerb];
|
|
744
|
-
export type PartialOutcomeEnvelope = PartialContractEnvelope | (ResetEnvelope & Readonly<{
|
|
745
|
-
value?: {
|
|
746
|
-
removed: ResetCounts;
|
|
747
|
-
};
|
|
748
|
-
}>);
|
|
749
|
-
/** What the invocation reached when its owned work stopped. */
|
|
750
|
-
export type OutcomeProjection<Operation extends ContractVerb, Value, Refusal> = Readonly<{
|
|
875
|
+
export type Verify = Omit<Extract<VerifyOutcome, {
|
|
751
876
|
kind: "accepted";
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
}
|
|
756
|
-
|
|
757
|
-
contract
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
877
|
+
}>, "kind" | "contractId" | "issues" | "recoverySnapshots">;
|
|
878
|
+
export type Review = Omit<Extract<ReviewOutcome, {
|
|
879
|
+
kind: "accepted";
|
|
880
|
+
}>, "kind" | "contractId" | "issues" | "recoverySnapshots">;
|
|
881
|
+
type PartialContractEnvelope = ReceiptFields & PartialEvidence & Readonly<{
|
|
882
|
+
kind: "contract";
|
|
883
|
+
worktreePath?: string;
|
|
884
|
+
target?: string;
|
|
885
|
+
changedSections?: readonly string[];
|
|
886
|
+
gatesChanged?: true;
|
|
887
|
+
afterChanged?: true;
|
|
888
|
+
candidate?: SnapshotId;
|
|
889
|
+
integration?: SnapshotId;
|
|
890
|
+
contentId?: ChangeId;
|
|
891
|
+
admission?: "reused";
|
|
892
|
+
previousContentId?: ChangeId;
|
|
893
|
+
snapshot?: SnapshotId;
|
|
894
|
+
checks?: readonly import("../protocol/verify.js").VerificationCheck[];
|
|
895
|
+
worktreeChanges?: NonNullable<Review["worktreeChanges"]>;
|
|
896
|
+
continuation?: ContinuationReport;
|
|
897
|
+
chapter?: number;
|
|
898
|
+
preview?: Partial<import("../protocol/delivery-preview.js").DeliveryPreviewReport>;
|
|
899
|
+
}>;
|
|
900
|
+
export type PartialOutcomeEnvelope = PartialContractEnvelope | Readonly<{
|
|
901
|
+
kind: "world";
|
|
902
|
+
world?: WorldRoot;
|
|
903
|
+
removed?: Partial<ResetCounts>;
|
|
904
|
+
issues?: readonly ResetIssue[];
|
|
905
|
+
contracts?: readonly import("./reconcile.js").RepoContractReconcileReport[];
|
|
906
|
+
}>;
|
|
907
|
+
export type ContractConclusion = Omit<PartialContractEnvelope, "kind" | "contractId" | "issues" | "admitted" | "effects">;
|
|
908
|
+
export type InvocationFailure = Readonly<{
|
|
764
909
|
kind: "failed";
|
|
765
910
|
contract?: ContractId;
|
|
766
911
|
error: unknown;
|
|
767
|
-
}> | (Operation extends "deliver" ? Readonly<{
|
|
768
|
-
kind: "handoff";
|
|
769
|
-
contract: ContractId;
|
|
770
|
-
value: IntegrationConflictMaterialized;
|
|
771
|
-
}> : never);
|
|
772
|
-
export type Projected<Operation extends ContractVerb, Value, Refusal> = Readonly<{
|
|
773
|
-
kind: "returned";
|
|
774
|
-
outcome: ProjectedOutcome<Operation, Value, Refusal>;
|
|
775
|
-
}> | Readonly<{
|
|
776
|
-
kind: "failed";
|
|
777
|
-
error: KeiyakuError;
|
|
778
912
|
}>;
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
* produces the shared envelope for a complete answer or, on the failure path, the same envelope as
|
|
782
|
-
* the exceptional receipt. There is no independently assembled partial result.
|
|
783
|
-
*/
|
|
784
|
-
export declare function project(operation: "nuke", snapshot: InvocationSnapshot, projection: ResetProjection): Readonly<{
|
|
913
|
+
export declare function invocationIssues(effects: readonly InvocationEffect[], primary?: ContractId, snapshot?: string): readonly InvocationIssue[];
|
|
914
|
+
export declare function project(operation: "nuke", snapshot: InvocationSnapshot, conclusion: ResetProjection): Readonly<{
|
|
785
915
|
kind: "returned";
|
|
786
916
|
outcome: ResetOutcome;
|
|
787
917
|
}> | Readonly<{
|
|
788
918
|
kind: "failed";
|
|
789
919
|
error: KeiyakuError;
|
|
790
920
|
}>;
|
|
791
|
-
export declare function project<
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
921
|
+
export declare function project<Answer extends Readonly<{
|
|
922
|
+
kind: string;
|
|
923
|
+
contractId?: ContractId;
|
|
924
|
+
}>>(operation: ContractVerb, snapshot: InvocationSnapshot, conclusion: Answer | InvocationFailure, signal?: AbortSignal): Readonly<{
|
|
925
|
+
kind: "returned";
|
|
926
|
+
outcome: Answer;
|
|
927
|
+
}> | InvocationFailure;
|
|
928
|
+
declare module "../errors.js" {
|
|
929
|
+
interface KeiyakuError {
|
|
930
|
+
readonly outcome?: PartialOutcomeEnvelope;
|
|
931
|
+
readonly spawn?: SpawnResult;
|
|
932
|
+
readonly tell?: AkumaTellResult;
|
|
933
|
+
}
|
|
934
|
+
interface KeiyakuErrorOptions {
|
|
935
|
+
readonly outcome?: PartialOutcomeEnvelope | undefined;
|
|
936
|
+
readonly spawn?: SpawnResult | undefined;
|
|
937
|
+
readonly tell?: AkumaTellResult | undefined;
|
|
938
|
+
}
|
|
802
939
|
}
|
|
803
|
-
/** One explicit caller-validation phase; its failures are invalid input with a native TypeError cause. */
|
|
804
940
|
export declare function validated<Value>(phase: () => Value): Value;
|
|
805
|
-
export declare function errorCategory(error: unknown): KeiyakuErrorCategory;
|
|
806
941
|
export declare function readContractValue<Value>(operation: () => Promise<Value>): Promise<Value>;
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
export
|
|
810
|
-
continuation?: ContinuationReport | undefined;
|
|
811
|
-
}>;
|
|
812
|
-
export type Review = CompletionEvidence & ReviewAdmissionValue & Readonly<{
|
|
813
|
-
continuation?: ContinuationReport | undefined;
|
|
814
|
-
}>;
|
|
815
|
-
/** Native diagnostic projection for JSON callers; process custody stays on the original error. */
|
|
942
|
+
export declare function withOutcomeReceipt(error: unknown, outcome: PartialOutcomeEnvelope, signal?: AbortSignal): KeiyakuError;
|
|
943
|
+
/** Confirmed birth is attached without mutating a shared or frozen native failure. */
|
|
944
|
+
export declare function withSpawnFailureReceipt(reason: unknown, spawn: SpawnResult, signal?: AbortSignal): KeiyakuError;
|
|
816
945
|
export type FailureProjection = Readonly<{
|
|
817
946
|
kind: "failed";
|
|
818
947
|
category: KeiyakuErrorCategory;
|
|
819
948
|
diagnostic: string;
|
|
949
|
+
next?: NextCall;
|
|
820
950
|
causeClass?: string;
|
|
821
951
|
causeDiagnostic?: string;
|
|
822
952
|
outcome?: PartialOutcomeEnvelope;
|
|
953
|
+
spawn?: SpawnResult;
|
|
954
|
+
tell?: AkumaTellResult;
|
|
823
955
|
}>;
|
|
824
956
|
export declare function projectFailure(error: unknown): FailureProjection;
|
|
825
|
-
export {};
|