@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,100 +1,849 @@
|
|
|
1
|
+
/** @architectureCompositionRoot */
|
|
2
|
+
import { z } from "zod";
|
|
1
3
|
import { type AkumaCaller } from "../akuma/caller.js";
|
|
2
|
-
import { type ForkReceipt } from "../akuma/akuma-owner.js";
|
|
3
4
|
import type { BodyLauncher } from "../akuma/body-launch.js";
|
|
4
5
|
import { type AskObserver } from "../akuma/akuma-selection-execution.js";
|
|
5
6
|
import type { AkumaStatus } from "../akuma/akuma.js";
|
|
6
7
|
import type { TellResult } from "../akuma/body.js";
|
|
7
|
-
import { type
|
|
8
|
-
import { type Schema } from "../akuma/schema.js";
|
|
9
|
-
import type { AkumaAskResult } from "../akuma/selection-observation.js";
|
|
10
|
-
import { type AliasBinding } from "../alias/index.js";
|
|
11
|
-
import { type Dispatch, type DispatchFailure } from "../dispatch/index.js";
|
|
12
|
-
import type { PrivateStateSeatCloseLag } from "../git/private-state-seat.js";
|
|
8
|
+
import { type AkumaId } from "../akuma/identity.js";
|
|
13
9
|
import { type AkumaAlias } from "../identity/selector.js";
|
|
14
10
|
import type { Settings } from "../settings.js";
|
|
15
11
|
import { type WorldRoot } from "../world.js";
|
|
16
|
-
import type {
|
|
12
|
+
import type { Kei } from "./kei.js";
|
|
17
13
|
import { type Repo } from "./repo.js";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
export declare const spawnWaitHeadSchema: z.ZodReadonly<z.ZodObject<{
|
|
15
|
+
failures: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
16
|
+
kind: z.ZodEnum<{
|
|
17
|
+
"authority-corruption": "authority-corruption";
|
|
18
|
+
infrastructure: "infrastructure";
|
|
19
|
+
}>;
|
|
20
|
+
diagnostic: z.ZodString;
|
|
21
|
+
stage: z.ZodEnum<{
|
|
22
|
+
tell: "tell";
|
|
23
|
+
birth: "birth";
|
|
24
|
+
}>;
|
|
25
|
+
attemptedTellId: z.ZodExactOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
27
|
+
stage: z.ZodLiteral<"dispatch">;
|
|
28
|
+
failure: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
29
|
+
kind: z.ZodLiteral<"conflict">;
|
|
30
|
+
currentContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
31
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"publication-failed">;
|
|
33
|
+
diagnostic: z.ZodString;
|
|
34
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
35
|
+
kind: z.ZodEnum<{
|
|
36
|
+
"authority-corruption": "authority-corruption";
|
|
37
|
+
infrastructure: "infrastructure";
|
|
38
|
+
}>;
|
|
39
|
+
diagnostic: z.ZodString;
|
|
40
|
+
}, z.core.$strict>>]>;
|
|
41
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
42
|
+
kind: z.ZodEnum<{
|
|
43
|
+
"authority-corruption": "authority-corruption";
|
|
44
|
+
infrastructure: "infrastructure";
|
|
45
|
+
}>;
|
|
46
|
+
diagnostic: z.ZodString;
|
|
47
|
+
stage: z.ZodLiteral<"alias">;
|
|
48
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
49
|
+
diagnostic: z.ZodString;
|
|
50
|
+
logPath: z.ZodExactOptional<z.ZodString>;
|
|
51
|
+
stage: z.ZodLiteral<"wake">;
|
|
52
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
53
|
+
stage: z.ZodLiteral<"observation">;
|
|
54
|
+
diagnostic: z.ZodString;
|
|
55
|
+
}, z.core.$strict>>]>>>>;
|
|
56
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
|
|
57
|
+
aliasName: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaAlias, string>>>;
|
|
58
|
+
dispatchWarning: z.ZodExactOptional<z.ZodString>;
|
|
59
|
+
alias: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"moved">;
|
|
61
|
+
previousAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
62
|
+
}, z.core.$strict>>>;
|
|
63
|
+
cwd: z.ZodString;
|
|
64
|
+
}, z.core.$strict>>;
|
|
65
|
+
export declare const spawnNormalResultSchema: z.ZodReadonly<z.ZodObject<{
|
|
66
|
+
tellId: z.ZodExactOptional<z.ZodString>;
|
|
67
|
+
wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
68
|
+
kind: z.ZodLiteral<"pending">;
|
|
69
|
+
}, z.core.$strict>>>;
|
|
70
|
+
input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
71
|
+
kind: z.ZodLiteral<"answered">;
|
|
72
|
+
answer: z.ZodString;
|
|
73
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
74
|
+
kind: z.ZodLiteral<"unanswered">;
|
|
75
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
76
|
+
kind: z.ZodLiteral<"deadline">;
|
|
77
|
+
}, z.core.$strict>>]>>;
|
|
78
|
+
dispatchWarning: z.ZodExactOptional<z.ZodString>;
|
|
79
|
+
alias: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"moved">;
|
|
81
|
+
previousAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
82
|
+
}, z.core.$strict>>>;
|
|
83
|
+
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
84
|
+
kind: z.ZodLiteral<"spawned">;
|
|
85
|
+
}, z.core.$strict>>;
|
|
86
|
+
export declare const spawnResultSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
87
|
+
tellId: z.ZodExactOptional<z.ZodString>;
|
|
88
|
+
wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"pending">;
|
|
90
|
+
}, z.core.$strict>>>;
|
|
91
|
+
input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
92
|
+
kind: z.ZodLiteral<"answered">;
|
|
93
|
+
answer: z.ZodString;
|
|
94
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
95
|
+
kind: z.ZodLiteral<"unanswered">;
|
|
96
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"deadline">;
|
|
98
|
+
}, z.core.$strict>>]>>;
|
|
99
|
+
dispatchWarning: z.ZodExactOptional<z.ZodString>;
|
|
100
|
+
alias: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
101
|
+
kind: z.ZodLiteral<"moved">;
|
|
102
|
+
previousAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
103
|
+
}, z.core.$strict>>>;
|
|
104
|
+
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
105
|
+
kind: z.ZodLiteral<"spawned">;
|
|
106
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
107
|
+
failures: z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
108
|
+
kind: z.ZodEnum<{
|
|
109
|
+
"authority-corruption": "authority-corruption";
|
|
110
|
+
infrastructure: "infrastructure";
|
|
111
|
+
}>;
|
|
112
|
+
diagnostic: z.ZodString;
|
|
113
|
+
stage: z.ZodEnum<{
|
|
114
|
+
tell: "tell";
|
|
115
|
+
birth: "birth";
|
|
116
|
+
}>;
|
|
117
|
+
attemptedTellId: z.ZodExactOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
119
|
+
stage: z.ZodLiteral<"dispatch">;
|
|
120
|
+
failure: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
121
|
+
kind: z.ZodLiteral<"conflict">;
|
|
122
|
+
currentContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
123
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
124
|
+
kind: z.ZodLiteral<"publication-failed">;
|
|
125
|
+
diagnostic: z.ZodString;
|
|
126
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
127
|
+
kind: z.ZodEnum<{
|
|
128
|
+
"authority-corruption": "authority-corruption";
|
|
129
|
+
infrastructure: "infrastructure";
|
|
130
|
+
}>;
|
|
131
|
+
diagnostic: z.ZodString;
|
|
132
|
+
}, z.core.$strict>>]>;
|
|
133
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
134
|
+
kind: z.ZodEnum<{
|
|
135
|
+
"authority-corruption": "authority-corruption";
|
|
136
|
+
infrastructure: "infrastructure";
|
|
137
|
+
}>;
|
|
138
|
+
diagnostic: z.ZodString;
|
|
139
|
+
stage: z.ZodLiteral<"alias">;
|
|
140
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
141
|
+
diagnostic: z.ZodString;
|
|
142
|
+
logPath: z.ZodExactOptional<z.ZodString>;
|
|
143
|
+
stage: z.ZodLiteral<"wake">;
|
|
144
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
145
|
+
stage: z.ZodLiteral<"observation">;
|
|
146
|
+
diagnostic: z.ZodString;
|
|
147
|
+
}, z.core.$strict>>]>], z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
148
|
+
kind: z.ZodEnum<{
|
|
149
|
+
"authority-corruption": "authority-corruption";
|
|
150
|
+
infrastructure: "infrastructure";
|
|
151
|
+
}>;
|
|
152
|
+
diagnostic: z.ZodString;
|
|
153
|
+
stage: z.ZodEnum<{
|
|
154
|
+
tell: "tell";
|
|
155
|
+
birth: "birth";
|
|
156
|
+
}>;
|
|
157
|
+
attemptedTellId: z.ZodExactOptional<z.ZodString>;
|
|
158
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
159
|
+
stage: z.ZodLiteral<"dispatch">;
|
|
160
|
+
failure: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
161
|
+
kind: z.ZodLiteral<"conflict">;
|
|
162
|
+
currentContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
163
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
164
|
+
kind: z.ZodLiteral<"publication-failed">;
|
|
165
|
+
diagnostic: z.ZodString;
|
|
166
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
167
|
+
kind: z.ZodEnum<{
|
|
168
|
+
"authority-corruption": "authority-corruption";
|
|
169
|
+
infrastructure: "infrastructure";
|
|
170
|
+
}>;
|
|
171
|
+
diagnostic: z.ZodString;
|
|
172
|
+
}, z.core.$strict>>]>;
|
|
173
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
174
|
+
kind: z.ZodEnum<{
|
|
175
|
+
"authority-corruption": "authority-corruption";
|
|
176
|
+
infrastructure: "infrastructure";
|
|
177
|
+
}>;
|
|
178
|
+
diagnostic: z.ZodString;
|
|
179
|
+
stage: z.ZodLiteral<"alias">;
|
|
180
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
181
|
+
diagnostic: z.ZodString;
|
|
182
|
+
logPath: z.ZodExactOptional<z.ZodString>;
|
|
183
|
+
stage: z.ZodLiteral<"wake">;
|
|
184
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
185
|
+
stage: z.ZodLiteral<"observation">;
|
|
186
|
+
diagnostic: z.ZodString;
|
|
187
|
+
}, z.core.$strict>>]>>>;
|
|
188
|
+
tellId: z.ZodExactOptional<z.ZodString>;
|
|
189
|
+
wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
190
|
+
kind: z.ZodLiteral<"pending">;
|
|
191
|
+
}, z.core.$strict>>>;
|
|
192
|
+
input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
193
|
+
kind: z.ZodLiteral<"answered">;
|
|
194
|
+
answer: z.ZodString;
|
|
195
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
196
|
+
kind: z.ZodLiteral<"unanswered">;
|
|
197
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
198
|
+
kind: z.ZodLiteral<"deadline">;
|
|
199
|
+
}, z.core.$strict>>]>>;
|
|
200
|
+
dispatchWarning: z.ZodExactOptional<z.ZodString>;
|
|
201
|
+
alias: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
202
|
+
kind: z.ZodLiteral<"moved">;
|
|
203
|
+
previousAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
204
|
+
}, z.core.$strict>>>;
|
|
205
|
+
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
206
|
+
kind: z.ZodLiteral<"failed">;
|
|
207
|
+
}, z.core.$strict>>]>;
|
|
208
|
+
export declare const forkNormalResultSchema: z.ZodReadonly<z.ZodObject<{
|
|
209
|
+
dispatchWarning: z.ZodExactOptional<z.ZodString>;
|
|
210
|
+
parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>>;
|
|
211
|
+
kind: z.ZodLiteral<"forked">;
|
|
212
|
+
childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
213
|
+
}, z.core.$strict>>;
|
|
214
|
+
export declare const forkResultSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
215
|
+
dispatchWarning: z.ZodExactOptional<z.ZodString>;
|
|
216
|
+
parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>>;
|
|
217
|
+
kind: z.ZodLiteral<"forked">;
|
|
218
|
+
childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
219
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
220
|
+
failure: z.ZodReadonly<z.ZodObject<{
|
|
221
|
+
stage: z.ZodLiteral<"dispatch">;
|
|
222
|
+
failure: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
223
|
+
kind: z.ZodLiteral<"conflict">;
|
|
224
|
+
currentContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
225
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
226
|
+
kind: z.ZodLiteral<"publication-failed">;
|
|
227
|
+
diagnostic: z.ZodString;
|
|
228
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
229
|
+
kind: z.ZodEnum<{
|
|
230
|
+
"authority-corruption": "authority-corruption";
|
|
231
|
+
infrastructure: "infrastructure";
|
|
232
|
+
}>;
|
|
233
|
+
diagnostic: z.ZodString;
|
|
234
|
+
}, z.core.$strict>>]>;
|
|
235
|
+
}, z.core.$strict>>;
|
|
236
|
+
parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>>;
|
|
237
|
+
kind: z.ZodLiteral<"failed">;
|
|
238
|
+
childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
239
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
240
|
+
kind: z.ZodLiteral<"provider-cannot-fork">;
|
|
241
|
+
parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>>;
|
|
242
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
243
|
+
kind: z.ZodLiteral<"unknown-history">;
|
|
244
|
+
parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>>;
|
|
245
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
246
|
+
kind: z.ZodLiteral<"fork-failed">;
|
|
247
|
+
diagnostic: z.ZodString;
|
|
248
|
+
parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>>;
|
|
249
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
250
|
+
kind: z.ZodLiteral<"provider-forked-local-birth-failed">;
|
|
251
|
+
session: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
252
|
+
kind: z.ZodLiteral<"file">;
|
|
253
|
+
sessionFile: z.ZodString;
|
|
254
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
255
|
+
kind: z.ZodLiteral<"session">;
|
|
256
|
+
sessionId: z.ZodString;
|
|
257
|
+
}, z.core.$strict>>]>;
|
|
258
|
+
diagnostic: z.ZodString;
|
|
259
|
+
parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>>;
|
|
260
|
+
}, z.core.$strict>>]>;
|
|
261
|
+
export type SpawnWaitHead = z.output<typeof spawnWaitHeadSchema>;
|
|
262
|
+
export type SpawnResult = z.output<typeof spawnResultSchema>;
|
|
263
|
+
export type ForkResult = z.output<typeof forkResultSchema>;
|
|
264
|
+
export declare const spawnProgressSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
265
|
+
kind: z.ZodLiteral<"admitted">;
|
|
266
|
+
tell: z.ZodReadonly<z.ZodObject<{
|
|
267
|
+
admission: z.ZodReadonly<z.ZodObject<{
|
|
268
|
+
tellId: z.ZodString;
|
|
269
|
+
}, z.core.$strict>>;
|
|
270
|
+
row: z.ZodReadonly<z.ZodObject<{
|
|
271
|
+
at: z.ZodString;
|
|
272
|
+
text: z.ZodString;
|
|
273
|
+
sequence: z.ZodNumber;
|
|
274
|
+
}, z.core.$strict>>;
|
|
275
|
+
wake: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
276
|
+
kind: z.ZodLiteral<"told">;
|
|
277
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
278
|
+
kind: z.ZodLiteral<"held">;
|
|
279
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
280
|
+
kind: z.ZodLiteral<"pursuing">;
|
|
281
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
282
|
+
kind: z.ZodLiteral<"failed">;
|
|
283
|
+
diagnostic: z.ZodString;
|
|
284
|
+
child: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
285
|
+
log: z.ZodReadonly<z.ZodObject<{
|
|
286
|
+
path: z.ZodString;
|
|
287
|
+
}, z.core.$strict>>;
|
|
288
|
+
}, z.core.$strict>>>;
|
|
289
|
+
}, z.core.$strict>>]>;
|
|
290
|
+
interruption: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
291
|
+
kind: z.ZodLiteral<"completed">;
|
|
292
|
+
bodySequence: z.ZodNumber;
|
|
293
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
294
|
+
kind: z.ZodLiteral<"pending">;
|
|
295
|
+
bodySequence: z.ZodNumber;
|
|
296
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
297
|
+
kind: z.ZodLiteral<"unavailable">;
|
|
298
|
+
bodySequence: z.ZodNumber;
|
|
299
|
+
evidence: z.ZodEnum<{
|
|
300
|
+
hung: "hung";
|
|
301
|
+
untidy: "untidy";
|
|
302
|
+
}>;
|
|
303
|
+
}, z.core.$strict>>]>>;
|
|
304
|
+
}, z.core.$strict>>;
|
|
305
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
306
|
+
head: z.ZodReadonly<z.ZodObject<{
|
|
307
|
+
failures: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
308
|
+
kind: z.ZodEnum<{
|
|
309
|
+
"authority-corruption": "authority-corruption";
|
|
310
|
+
infrastructure: "infrastructure";
|
|
311
|
+
}>;
|
|
312
|
+
diagnostic: z.ZodString;
|
|
313
|
+
stage: z.ZodEnum<{
|
|
314
|
+
tell: "tell";
|
|
315
|
+
birth: "birth";
|
|
316
|
+
}>;
|
|
317
|
+
attemptedTellId: z.ZodExactOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
319
|
+
stage: z.ZodLiteral<"dispatch">;
|
|
320
|
+
failure: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
321
|
+
kind: z.ZodLiteral<"conflict">;
|
|
322
|
+
currentContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
323
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
324
|
+
kind: z.ZodLiteral<"publication-failed">;
|
|
325
|
+
diagnostic: z.ZodString;
|
|
326
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
327
|
+
kind: z.ZodEnum<{
|
|
328
|
+
"authority-corruption": "authority-corruption";
|
|
329
|
+
infrastructure: "infrastructure";
|
|
330
|
+
}>;
|
|
331
|
+
diagnostic: z.ZodString;
|
|
332
|
+
}, z.core.$strict>>]>;
|
|
333
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
334
|
+
kind: z.ZodEnum<{
|
|
335
|
+
"authority-corruption": "authority-corruption";
|
|
336
|
+
infrastructure: "infrastructure";
|
|
337
|
+
}>;
|
|
338
|
+
diagnostic: z.ZodString;
|
|
339
|
+
stage: z.ZodLiteral<"alias">;
|
|
340
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
341
|
+
diagnostic: z.ZodString;
|
|
342
|
+
logPath: z.ZodExactOptional<z.ZodString>;
|
|
343
|
+
stage: z.ZodLiteral<"wake">;
|
|
344
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
345
|
+
stage: z.ZodLiteral<"observation">;
|
|
346
|
+
diagnostic: z.ZodString;
|
|
347
|
+
}, z.core.$strict>>]>>>>;
|
|
348
|
+
contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
|
|
349
|
+
aliasName: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<AkumaAlias, string>>>;
|
|
350
|
+
dispatchWarning: z.ZodExactOptional<z.ZodString>;
|
|
351
|
+
alias: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
352
|
+
kind: z.ZodLiteral<"moved">;
|
|
353
|
+
previousAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
354
|
+
}, z.core.$strict>>>;
|
|
355
|
+
cwd: z.ZodString;
|
|
356
|
+
}, z.core.$strict>>;
|
|
357
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
358
|
+
kind: z.ZodLiteral<"live">;
|
|
359
|
+
observation: z.ZodReadonly<z.ZodObject<{
|
|
360
|
+
status: z.ZodReadonly<z.ZodObject<{
|
|
361
|
+
id: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
362
|
+
birth: z.ZodReadonly<z.ZodObject<{
|
|
363
|
+
origin: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
364
|
+
kind: z.ZodLiteral<"direct">;
|
|
365
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
366
|
+
kind: z.ZodLiteral<"fork">;
|
|
367
|
+
parent: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
368
|
+
at: z.ZodString;
|
|
369
|
+
}, z.core.$strict>>]>;
|
|
370
|
+
caller: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
371
|
+
kind: z.ZodLiteral<"akuma">;
|
|
372
|
+
world: z.ZodPipe<z.ZodString, z.ZodCustom<WorldRoot, WorldRoot>>;
|
|
373
|
+
akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<AkumaId, string>>;
|
|
374
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
375
|
+
kind: z.ZodLiteral<"external">;
|
|
376
|
+
integration: z.ZodString;
|
|
377
|
+
id: z.ZodString;
|
|
378
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
379
|
+
kind: z.ZodLiteral<"unknown">;
|
|
380
|
+
}, z.core.$strict>>]>;
|
|
381
|
+
}, z.core.$strict>>;
|
|
382
|
+
cwd: z.ZodExactOptional<z.ZodString>;
|
|
383
|
+
model: z.ZodExactOptional<z.ZodString>;
|
|
384
|
+
provider: z.ZodExactOptional<z.ZodString>;
|
|
385
|
+
lastActivityAt: z.ZodExactOptional<z.ZodString>;
|
|
386
|
+
life: z.ZodEnum<{
|
|
387
|
+
hung: "hung";
|
|
388
|
+
untidy: "untidy";
|
|
389
|
+
killed: "killed";
|
|
390
|
+
running: "running";
|
|
391
|
+
asleep: "asleep";
|
|
392
|
+
stranded: "stranded";
|
|
393
|
+
}>;
|
|
394
|
+
strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
|
|
395
|
+
timeline: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
396
|
+
reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
397
|
+
path: z.ZodString;
|
|
398
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
399
|
+
added: z.ZodNumber;
|
|
400
|
+
removed: z.ZodNumber;
|
|
401
|
+
}, z.core.$strict>>>;
|
|
402
|
+
}, z.core.$strict>>>>;
|
|
403
|
+
reportedChangesOmitted: z.ZodNumber;
|
|
404
|
+
reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
|
|
405
|
+
kind: z.ZodLiteral<"unborn">;
|
|
406
|
+
entries: z.ZodReadonly<z.ZodTuple<[], null>>;
|
|
407
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
408
|
+
reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
409
|
+
path: z.ZodString;
|
|
410
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
411
|
+
added: z.ZodNumber;
|
|
412
|
+
removed: z.ZodNumber;
|
|
413
|
+
}, z.core.$strict>>>;
|
|
414
|
+
}, z.core.$strict>>>>;
|
|
415
|
+
reportedChangesOmitted: z.ZodNumber;
|
|
416
|
+
reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
|
|
417
|
+
kind: z.ZodLiteral<"open">;
|
|
418
|
+
turn: z.ZodReadonly<z.ZodObject<{
|
|
419
|
+
kind: z.ZodLiteral<"turn">;
|
|
420
|
+
sequence: z.ZodNumber;
|
|
421
|
+
bodySequence: z.ZodNumber;
|
|
422
|
+
at: z.ZodString;
|
|
423
|
+
}, z.core.$strict>>;
|
|
424
|
+
entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
425
|
+
kind: z.ZodLiteral<"gap">;
|
|
426
|
+
count: z.ZodNumber;
|
|
427
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
428
|
+
kind: z.ZodLiteral<"row">;
|
|
429
|
+
row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
430
|
+
kind: z.ZodLiteral<"report">;
|
|
431
|
+
sequence: z.ZodNumber;
|
|
432
|
+
bodySequence: z.ZodNumber;
|
|
433
|
+
turnSequence: z.ZodNumber;
|
|
434
|
+
text: z.ZodString;
|
|
435
|
+
at: z.ZodString;
|
|
436
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
437
|
+
kind: z.ZodLiteral<"call">;
|
|
438
|
+
sequence: z.ZodNumber;
|
|
439
|
+
turnSequence: z.ZodNumber;
|
|
440
|
+
at: z.ZodString;
|
|
441
|
+
text: z.ZodString;
|
|
442
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
443
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
444
|
+
sequence: z.ZodNumber;
|
|
445
|
+
turnSequence: z.ZodNumber;
|
|
446
|
+
at: z.ZodString;
|
|
447
|
+
text: z.ZodString;
|
|
448
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
449
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
450
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
451
|
+
sequence: z.ZodNumber;
|
|
452
|
+
turnSequence: z.ZodNumber;
|
|
453
|
+
at: z.ZodString;
|
|
454
|
+
text: z.ZodString;
|
|
455
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
456
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
457
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
458
|
+
sequence: z.ZodNumber;
|
|
459
|
+
turnSequence: z.ZodNumber;
|
|
460
|
+
at: z.ZodString;
|
|
461
|
+
text: z.ZodString;
|
|
462
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
463
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
464
|
+
kind: z.ZodLiteral<"tell">;
|
|
465
|
+
sequence: z.ZodNumber;
|
|
466
|
+
at: z.ZodString;
|
|
467
|
+
tellId: z.ZodString;
|
|
468
|
+
text: z.ZodString;
|
|
469
|
+
state: z.ZodEnum<{
|
|
470
|
+
pending: "pending";
|
|
471
|
+
told: "told";
|
|
472
|
+
}>;
|
|
473
|
+
deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
474
|
+
deliveredAt: z.ZodString;
|
|
475
|
+
route: z.ZodEnum<{
|
|
476
|
+
launch: "launch";
|
|
477
|
+
live: "live";
|
|
478
|
+
}>;
|
|
479
|
+
turnSequence: z.ZodNumber;
|
|
480
|
+
}, z.core.$strict>>>>;
|
|
481
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
482
|
+
kind: z.ZodLiteral<"tool">;
|
|
483
|
+
sequence: z.ZodNumber;
|
|
484
|
+
turnSequence: z.ZodNumber;
|
|
485
|
+
at: z.ZodString;
|
|
486
|
+
durationMs: z.ZodExactOptional<z.ZodNumber>;
|
|
487
|
+
name: z.ZodString;
|
|
488
|
+
call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
489
|
+
kind: z.ZodLiteral<"run">;
|
|
490
|
+
command: z.ZodString;
|
|
491
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
492
|
+
kind: z.ZodLiteral<"read">;
|
|
493
|
+
path: z.ZodString;
|
|
494
|
+
offset: z.ZodExactOptional<z.ZodNumber>;
|
|
495
|
+
limit: z.ZodExactOptional<z.ZodNumber>;
|
|
496
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
497
|
+
kind: z.ZodLiteral<"search">;
|
|
498
|
+
query: z.ZodString;
|
|
499
|
+
scope: z.ZodExactOptional<z.ZodEnum<{
|
|
500
|
+
content: "content";
|
|
501
|
+
files: "files";
|
|
502
|
+
web: "web";
|
|
503
|
+
}>>;
|
|
504
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
505
|
+
glob: z.ZodExactOptional<z.ZodString>;
|
|
506
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
507
|
+
kind: z.ZodLiteral<"fileChange">;
|
|
508
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
509
|
+
op: z.ZodEnum<{
|
|
510
|
+
add: "add";
|
|
511
|
+
update: "update";
|
|
512
|
+
delete: "delete";
|
|
513
|
+
unspecified: "unspecified";
|
|
514
|
+
}>;
|
|
515
|
+
path: z.ZodString;
|
|
516
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
517
|
+
added: z.ZodNumber;
|
|
518
|
+
removed: z.ZodNumber;
|
|
519
|
+
}, z.core.$strict>>>;
|
|
520
|
+
patch: z.ZodExactOptional<z.ZodString>;
|
|
521
|
+
}, z.core.$strict>>>>;
|
|
522
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
523
|
+
kind: z.ZodLiteral<"other">;
|
|
524
|
+
input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
525
|
+
json: z.ZodString;
|
|
526
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
527
|
+
}, z.core.$strict>>>;
|
|
528
|
+
}, z.core.$strict>>]>;
|
|
529
|
+
toolId: z.ZodString;
|
|
530
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
531
|
+
state: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodReadonly<z.ZodObject<{
|
|
532
|
+
status: z.ZodEnum<{
|
|
533
|
+
error: "error";
|
|
534
|
+
ok: "ok";
|
|
535
|
+
}>;
|
|
536
|
+
message: z.ZodExactOptional<z.ZodString>;
|
|
537
|
+
output: z.ZodExactOptional<z.ZodString>;
|
|
538
|
+
exitCode: z.ZodExactOptional<z.ZodNumber>;
|
|
539
|
+
}, z.core.$strict>>]>;
|
|
540
|
+
}, z.core.$strict>>]>;
|
|
541
|
+
}, z.core.$strict>>]>>>;
|
|
542
|
+
openingSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
543
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
544
|
+
reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
545
|
+
path: z.ZodString;
|
|
546
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
547
|
+
added: z.ZodNumber;
|
|
548
|
+
removed: z.ZodNumber;
|
|
549
|
+
}, z.core.$strict>>>;
|
|
550
|
+
}, z.core.$strict>>>>;
|
|
551
|
+
reportedChangesOmitted: z.ZodNumber;
|
|
552
|
+
reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
|
|
553
|
+
kind: z.ZodLiteral<"idle">;
|
|
554
|
+
outcome: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
555
|
+
kind: z.ZodLiteral<"outcome">;
|
|
556
|
+
sequence: z.ZodNumber;
|
|
557
|
+
turnSequence: z.ZodNumber;
|
|
558
|
+
at: z.ZodString;
|
|
559
|
+
outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
560
|
+
kind: z.ZodLiteral<"answered">;
|
|
561
|
+
answer: z.ZodString;
|
|
562
|
+
foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
563
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
564
|
+
kind: z.ZodLiteral<"failed">;
|
|
565
|
+
diagnostic: z.ZodString;
|
|
566
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
567
|
+
kind: z.ZodLiteral<"canceled">;
|
|
568
|
+
}, z.core.$strict>>]>;
|
|
569
|
+
}, z.core.$strict>>>;
|
|
570
|
+
entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
571
|
+
kind: z.ZodLiteral<"gap">;
|
|
572
|
+
count: z.ZodNumber;
|
|
573
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
574
|
+
kind: z.ZodLiteral<"row">;
|
|
575
|
+
row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
576
|
+
kind: z.ZodLiteral<"report">;
|
|
577
|
+
sequence: z.ZodNumber;
|
|
578
|
+
bodySequence: z.ZodNumber;
|
|
579
|
+
turnSequence: z.ZodNumber;
|
|
580
|
+
text: z.ZodString;
|
|
581
|
+
at: z.ZodString;
|
|
582
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
583
|
+
kind: z.ZodLiteral<"call">;
|
|
584
|
+
sequence: z.ZodNumber;
|
|
585
|
+
turnSequence: z.ZodNumber;
|
|
586
|
+
at: z.ZodString;
|
|
587
|
+
text: z.ZodString;
|
|
588
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
589
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
590
|
+
sequence: z.ZodNumber;
|
|
591
|
+
turnSequence: z.ZodNumber;
|
|
592
|
+
at: z.ZodString;
|
|
593
|
+
text: z.ZodString;
|
|
594
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
595
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
596
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
597
|
+
sequence: z.ZodNumber;
|
|
598
|
+
turnSequence: z.ZodNumber;
|
|
599
|
+
at: z.ZodString;
|
|
600
|
+
text: z.ZodString;
|
|
601
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
602
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
603
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
604
|
+
sequence: z.ZodNumber;
|
|
605
|
+
turnSequence: z.ZodNumber;
|
|
606
|
+
at: z.ZodString;
|
|
607
|
+
text: z.ZodString;
|
|
608
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
609
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
610
|
+
kind: z.ZodLiteral<"tell">;
|
|
611
|
+
sequence: z.ZodNumber;
|
|
612
|
+
at: z.ZodString;
|
|
613
|
+
tellId: z.ZodString;
|
|
614
|
+
text: z.ZodString;
|
|
615
|
+
state: z.ZodEnum<{
|
|
616
|
+
pending: "pending";
|
|
617
|
+
told: "told";
|
|
618
|
+
}>;
|
|
619
|
+
deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
620
|
+
deliveredAt: z.ZodString;
|
|
621
|
+
route: z.ZodEnum<{
|
|
622
|
+
launch: "launch";
|
|
623
|
+
live: "live";
|
|
624
|
+
}>;
|
|
625
|
+
turnSequence: z.ZodNumber;
|
|
626
|
+
}, z.core.$strict>>>>;
|
|
627
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
628
|
+
kind: z.ZodLiteral<"tool">;
|
|
629
|
+
sequence: z.ZodNumber;
|
|
630
|
+
turnSequence: z.ZodNumber;
|
|
631
|
+
at: z.ZodString;
|
|
632
|
+
durationMs: z.ZodExactOptional<z.ZodNumber>;
|
|
633
|
+
name: z.ZodString;
|
|
634
|
+
call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
635
|
+
kind: z.ZodLiteral<"run">;
|
|
636
|
+
command: z.ZodString;
|
|
637
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
638
|
+
kind: z.ZodLiteral<"read">;
|
|
639
|
+
path: z.ZodString;
|
|
640
|
+
offset: z.ZodExactOptional<z.ZodNumber>;
|
|
641
|
+
limit: z.ZodExactOptional<z.ZodNumber>;
|
|
642
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
643
|
+
kind: z.ZodLiteral<"search">;
|
|
644
|
+
query: z.ZodString;
|
|
645
|
+
scope: z.ZodExactOptional<z.ZodEnum<{
|
|
646
|
+
content: "content";
|
|
647
|
+
files: "files";
|
|
648
|
+
web: "web";
|
|
649
|
+
}>>;
|
|
650
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
651
|
+
glob: z.ZodExactOptional<z.ZodString>;
|
|
652
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
653
|
+
kind: z.ZodLiteral<"fileChange">;
|
|
654
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
655
|
+
op: z.ZodEnum<{
|
|
656
|
+
add: "add";
|
|
657
|
+
update: "update";
|
|
658
|
+
delete: "delete";
|
|
659
|
+
unspecified: "unspecified";
|
|
660
|
+
}>;
|
|
661
|
+
path: z.ZodString;
|
|
662
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
663
|
+
added: z.ZodNumber;
|
|
664
|
+
removed: z.ZodNumber;
|
|
665
|
+
}, z.core.$strict>>>;
|
|
666
|
+
patch: z.ZodExactOptional<z.ZodString>;
|
|
667
|
+
}, z.core.$strict>>>>;
|
|
668
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
669
|
+
kind: z.ZodLiteral<"other">;
|
|
670
|
+
input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
671
|
+
json: z.ZodString;
|
|
672
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
673
|
+
}, z.core.$strict>>>;
|
|
674
|
+
}, z.core.$strict>>]>;
|
|
675
|
+
state: z.ZodReadonly<z.ZodObject<{
|
|
676
|
+
status: z.ZodEnum<{
|
|
677
|
+
error: "error";
|
|
678
|
+
ok: "ok";
|
|
679
|
+
}>;
|
|
680
|
+
message: z.ZodExactOptional<z.ZodString>;
|
|
681
|
+
output: z.ZodExactOptional<z.ZodString>;
|
|
682
|
+
exitCode: z.ZodExactOptional<z.ZodNumber>;
|
|
683
|
+
}, z.core.$strict>>;
|
|
684
|
+
toolId: z.ZodString;
|
|
685
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
686
|
+
}, z.core.$strict>>]>;
|
|
687
|
+
}, z.core.$strict>>]>>>;
|
|
688
|
+
}, z.core.$strict>>]>;
|
|
689
|
+
}, z.core.$strict>>;
|
|
690
|
+
ordinarySelected: z.ZodNumber;
|
|
691
|
+
rows: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
692
|
+
kind: z.ZodLiteral<"turn">;
|
|
693
|
+
sequence: z.ZodNumber;
|
|
694
|
+
bodySequence: z.ZodNumber;
|
|
695
|
+
at: z.ZodString;
|
|
696
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
697
|
+
kind: z.ZodLiteral<"call">;
|
|
698
|
+
sequence: z.ZodNumber;
|
|
699
|
+
turnSequence: z.ZodNumber;
|
|
700
|
+
at: z.ZodString;
|
|
701
|
+
text: z.ZodString;
|
|
702
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
703
|
+
kind: z.ZodLiteral<"report">;
|
|
704
|
+
sequence: z.ZodNumber;
|
|
705
|
+
bodySequence: z.ZodNumber;
|
|
706
|
+
turnSequence: z.ZodNumber;
|
|
707
|
+
text: z.ZodString;
|
|
708
|
+
at: z.ZodString;
|
|
709
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
710
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
711
|
+
sequence: z.ZodNumber;
|
|
712
|
+
turnSequence: z.ZodNumber;
|
|
713
|
+
at: z.ZodString;
|
|
714
|
+
text: z.ZodString;
|
|
715
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
716
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
717
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
718
|
+
sequence: z.ZodNumber;
|
|
719
|
+
turnSequence: z.ZodNumber;
|
|
720
|
+
at: z.ZodString;
|
|
721
|
+
text: z.ZodString;
|
|
722
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
723
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
724
|
+
kind: z.ZodLiteral<"thought" | "note" | "said">;
|
|
725
|
+
sequence: z.ZodNumber;
|
|
726
|
+
turnSequence: z.ZodNumber;
|
|
727
|
+
at: z.ZodString;
|
|
728
|
+
text: z.ZodString;
|
|
729
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
730
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
731
|
+
kind: z.ZodLiteral<"tell">;
|
|
732
|
+
sequence: z.ZodNumber;
|
|
733
|
+
at: z.ZodString;
|
|
734
|
+
tellId: z.ZodString;
|
|
735
|
+
text: z.ZodString;
|
|
736
|
+
state: z.ZodEnum<{
|
|
737
|
+
pending: "pending";
|
|
738
|
+
told: "told";
|
|
739
|
+
}>;
|
|
740
|
+
deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
741
|
+
deliveredAt: z.ZodString;
|
|
742
|
+
route: z.ZodEnum<{
|
|
743
|
+
launch: "launch";
|
|
744
|
+
live: "live";
|
|
745
|
+
}>;
|
|
746
|
+
turnSequence: z.ZodNumber;
|
|
747
|
+
}, z.core.$strict>>>>;
|
|
748
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
749
|
+
kind: z.ZodLiteral<"tool">;
|
|
750
|
+
sequence: z.ZodNumber;
|
|
751
|
+
turnSequence: z.ZodNumber;
|
|
752
|
+
at: z.ZodString;
|
|
753
|
+
durationMs: z.ZodExactOptional<z.ZodNumber>;
|
|
754
|
+
name: z.ZodString;
|
|
755
|
+
call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
756
|
+
kind: z.ZodLiteral<"run">;
|
|
757
|
+
command: z.ZodString;
|
|
758
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
759
|
+
kind: z.ZodLiteral<"read">;
|
|
760
|
+
path: z.ZodString;
|
|
761
|
+
offset: z.ZodExactOptional<z.ZodNumber>;
|
|
762
|
+
limit: z.ZodExactOptional<z.ZodNumber>;
|
|
763
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
764
|
+
kind: z.ZodLiteral<"search">;
|
|
765
|
+
query: z.ZodString;
|
|
766
|
+
scope: z.ZodExactOptional<z.ZodEnum<{
|
|
767
|
+
content: "content";
|
|
768
|
+
files: "files";
|
|
769
|
+
web: "web";
|
|
770
|
+
}>>;
|
|
771
|
+
path: z.ZodExactOptional<z.ZodString>;
|
|
772
|
+
glob: z.ZodExactOptional<z.ZodString>;
|
|
773
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
774
|
+
kind: z.ZodLiteral<"fileChange">;
|
|
775
|
+
changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
776
|
+
op: z.ZodEnum<{
|
|
777
|
+
add: "add";
|
|
778
|
+
update: "update";
|
|
779
|
+
delete: "delete";
|
|
780
|
+
unspecified: "unspecified";
|
|
781
|
+
}>;
|
|
782
|
+
path: z.ZodString;
|
|
783
|
+
diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
784
|
+
added: z.ZodNumber;
|
|
785
|
+
removed: z.ZodNumber;
|
|
786
|
+
}, z.core.$strict>>>;
|
|
787
|
+
patch: z.ZodExactOptional<z.ZodString>;
|
|
788
|
+
}, z.core.$strict>>>>;
|
|
789
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
790
|
+
kind: z.ZodLiteral<"other">;
|
|
791
|
+
input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
|
|
792
|
+
json: z.ZodString;
|
|
793
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
794
|
+
}, z.core.$strict>>>;
|
|
795
|
+
}, z.core.$strict>>]>;
|
|
796
|
+
toolId: z.ZodString;
|
|
797
|
+
truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
|
|
798
|
+
state: z.ZodUnion<readonly [z.ZodEnum<{
|
|
799
|
+
active: "active";
|
|
800
|
+
unsettled: "unsettled";
|
|
801
|
+
}>, z.ZodReadonly<z.ZodObject<{
|
|
802
|
+
status: z.ZodEnum<{
|
|
803
|
+
error: "error";
|
|
804
|
+
ok: "ok";
|
|
805
|
+
}>;
|
|
806
|
+
message: z.ZodExactOptional<z.ZodString>;
|
|
807
|
+
output: z.ZodExactOptional<z.ZodString>;
|
|
808
|
+
exitCode: z.ZodExactOptional<z.ZodNumber>;
|
|
809
|
+
}, z.core.$strict>>]>;
|
|
810
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
811
|
+
kind: z.ZodLiteral<"outcome">;
|
|
812
|
+
sequence: z.ZodNumber;
|
|
813
|
+
turnSequence: z.ZodNumber;
|
|
814
|
+
at: z.ZodString;
|
|
815
|
+
outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
|
|
816
|
+
kind: z.ZodLiteral<"answered">;
|
|
817
|
+
answer: z.ZodString;
|
|
818
|
+
foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
|
|
819
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
820
|
+
kind: z.ZodLiteral<"failed">;
|
|
821
|
+
diagnostic: z.ZodString;
|
|
822
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
823
|
+
kind: z.ZodLiteral<"canceled">;
|
|
824
|
+
}, z.core.$strict>>]>;
|
|
825
|
+
}, z.core.$strict>>]>>>;
|
|
826
|
+
}, z.core.$strict>>;
|
|
827
|
+
}, z.core.$strict>>]>;
|
|
828
|
+
export type SpawnProgress = z.output<typeof spawnProgressSchema>;
|
|
829
|
+
export type SpawnWaitObserver = Omit<AskObserver, "admitted"> & Readonly<{
|
|
830
|
+
admitted?: (tell: TellResult, id: AkumaStatus["id"], head: SpawnWaitHead) => void | Promise<void>;
|
|
21
831
|
}>;
|
|
22
|
-
export type
|
|
23
|
-
|
|
24
|
-
}> | Readonly<{
|
|
25
|
-
kind: "dispatched";
|
|
26
|
-
dispatch: Dispatch;
|
|
27
|
-
seatClose?: readonly PrivateStateSeatCloseLag[];
|
|
28
|
-
}> | Readonly<{
|
|
29
|
-
kind: "failed";
|
|
30
|
-
failure: DispatchFailure | IntegrationFailure;
|
|
31
|
-
}>;
|
|
32
|
-
type AliasStage = Readonly<{
|
|
33
|
-
kind: "none";
|
|
34
|
-
}> | Readonly<{
|
|
35
|
-
kind: "aliased";
|
|
36
|
-
alias: AliasBinding;
|
|
37
|
-
previous: AkuId | null;
|
|
38
|
-
}> | Readonly<{
|
|
39
|
-
kind: "skipped";
|
|
40
|
-
reason: "dispatch-failed";
|
|
41
|
-
}> | Readonly<{
|
|
42
|
-
kind: "failed";
|
|
43
|
-
failure: IntegrationFailure;
|
|
44
|
-
}>;
|
|
45
|
-
export type CallWaitHead = Readonly<{
|
|
46
|
-
dispatch: DispatchStage;
|
|
47
|
-
alias: AliasStage;
|
|
48
|
-
}>;
|
|
49
|
-
type CallWaitObserver = Readonly<{
|
|
50
|
-
admitted?: (tell: TellResult, id: AkumaStatus["id"], head: CallWaitHead) => void | Promise<void>;
|
|
51
|
-
observe?: AskObserver["observe"];
|
|
52
|
-
}>;
|
|
53
|
-
export type CallInput = Readonly<{
|
|
54
|
-
archetype: string;
|
|
832
|
+
export type SpawnInput = Readonly<{
|
|
833
|
+
akumaName: string;
|
|
55
834
|
body?: string;
|
|
56
835
|
cwd?: string;
|
|
57
836
|
mode?: "wait" | "detach";
|
|
58
837
|
timeoutMs?: number;
|
|
59
838
|
home?: string;
|
|
60
839
|
settings?: Settings;
|
|
61
|
-
contract?:
|
|
62
|
-
alias?:
|
|
63
|
-
writableDirectories?: readonly string[];
|
|
840
|
+
contract?: Kei;
|
|
841
|
+
alias?: string;
|
|
64
842
|
bare?: boolean;
|
|
65
|
-
schema?: Schema<unknown>;
|
|
66
843
|
initiator?: string;
|
|
67
844
|
caller?: AkumaCaller;
|
|
68
845
|
signal?: AbortSignal;
|
|
69
|
-
observe?:
|
|
70
|
-
}>;
|
|
71
|
-
export type CallObservation = Readonly<{
|
|
72
|
-
kind: "born";
|
|
73
|
-
}> | Readonly<{
|
|
74
|
-
kind: "detached";
|
|
75
|
-
tell: TellResult;
|
|
76
|
-
}> | Readonly<{
|
|
77
|
-
kind: "observed";
|
|
78
|
-
tell: TellResult;
|
|
79
|
-
observation: AkumaAskResult["observation"];
|
|
80
|
-
completedAt?: string | null;
|
|
81
|
-
}> | Readonly<{
|
|
82
|
-
kind: "failed";
|
|
83
|
-
tellId: string;
|
|
84
|
-
tell?: TellResult;
|
|
85
|
-
failure: IntegrationFailure;
|
|
86
|
-
}>;
|
|
87
|
-
export type CallResult = Readonly<{
|
|
88
|
-
kind: "called";
|
|
89
|
-
akuma: AkuId;
|
|
90
|
-
execution: Readonly<{
|
|
91
|
-
cwd: string;
|
|
92
|
-
source: "input" | "process" | "world";
|
|
93
|
-
}>;
|
|
94
|
-
dispatch: DispatchStage;
|
|
95
|
-
alias: AliasStage;
|
|
96
|
-
structured?: true;
|
|
97
|
-
observation: CallObservation;
|
|
846
|
+
observe?: SpawnWaitObserver;
|
|
98
847
|
}>;
|
|
99
848
|
export type ForkInput = Readonly<{
|
|
100
849
|
akuma: string;
|
|
@@ -104,21 +853,9 @@ export type ForkInput = Readonly<{
|
|
|
104
853
|
caller?: AkumaCaller;
|
|
105
854
|
initiator?: string;
|
|
106
855
|
}>;
|
|
107
|
-
export
|
|
108
|
-
kind: "forked";
|
|
109
|
-
parent: AkuId;
|
|
110
|
-
child: AkuId;
|
|
111
|
-
dispatch: DispatchStage;
|
|
112
|
-
}> | (Exclude<ForkReceipt, Readonly<{
|
|
113
|
-
kind: "forked";
|
|
114
|
-
child: AkuId;
|
|
115
|
-
}>> & Readonly<{
|
|
116
|
-
parent: AkuId;
|
|
117
|
-
}>);
|
|
118
|
-
export declare function callAkumas(input: CallInput & Readonly<{
|
|
856
|
+
export declare function callAkumas(input: SpawnInput & Readonly<{
|
|
119
857
|
path: WorldRoot;
|
|
120
|
-
}>, spawn: BodyLauncher, reportDiagnostic?: (message: string) => void): Promise<
|
|
858
|
+
}>, spawn: BodyLauncher, reportDiagnostic?: (message: string) => void): Promise<SpawnResult>;
|
|
121
859
|
export declare function forkAkumas(input: ForkInput & Readonly<{
|
|
122
860
|
path: WorldRoot;
|
|
123
861
|
}>, spawn: BodyLauncher): Promise<ForkResult>;
|
|
124
|
-
export {};
|