@astrosheep/keiyaku 4.6.30 → 4.6.31
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 +5 -5
- 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 +16 -16
- package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +14 -14
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +10 -10
- package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +15 -15
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +16 -16
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +21 -21
- 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 +16 -16
- package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +14 -14
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +10 -10
- package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +15 -15
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +16 -16
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +21 -21
- 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 +16 -16
- package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +14 -14
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +10 -10
- package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +15 -15
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +16 -16
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +21 -21
- package/build/plugins/pi/README.md +5 -5
- package/build/plugins/pi/akuma-tools.ts +17 -23
- package/build/skills/keiyaku/SKILL.md +12 -12
- package/build/skills/keiyaku-akuma/SKILL.md +16 -16
- package/build/skills/keiyaku-akuma/references/automation.md +14 -14
- package/build/skills/keiyaku-babysit/SKILL.md +10 -10
- package/build/skills/keiyaku-bind/SKILL.md +15 -15
- package/build/skills/keiyaku-debt/SKILL.md +16 -16
- package/build/skills/keiyaku-workflow/SKILL.md +21 -21
- package/build/src/akuma/akuma-call.d.ts +1 -1
- package/build/src/akuma/akuma-call.js +9 -9
- package/build/src/akuma/akuma-errors.d.ts +5 -5
- package/build/src/akuma/akuma-instance.d.ts +355 -12
- package/build/src/akuma/akuma-instance.js +20 -20
- package/build/src/akuma/akuma-observe.d.ts +11 -12
- package/build/src/akuma/akuma-observe.js +34 -26
- package/build/src/akuma/akuma-owner.d.ts +32 -11
- package/build/src/akuma/akuma-owner.js +35 -16
- 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 +985 -1
- package/build/src/akuma/akuma-selection-execution.js +42 -18
- 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 +5 -5
- package/build/src/akuma/akuma-wait.js +52 -14
- package/build/src/akuma/akuma.d.ts +245 -271
- package/build/src/akuma/akuma.js +98 -46
- package/build/src/akuma/archetype.d.ts +19 -6
- package/build/src/akuma/archetype.js +25 -9
- package/build/src/akuma/body-launch.d.ts +2 -2
- package/build/src/akuma/body.js +4 -4
- package/build/src/akuma/call-initial-tell.d.ts +60 -44
- package/build/src/akuma/call-initial-tell.js +41 -2
- package/build/src/akuma/caller.d.ts +26 -17
- package/build/src/akuma/caller.js +22 -9
- package/build/src/akuma/coordinate.d.ts +9 -0
- package/build/src/akuma/coordinate.js +13 -0
- package/build/src/akuma/detached-body.js +2 -2
- 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 +29 -7
- package/build/src/akuma/heart/facts.js +13 -0
- 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 +5 -5
- package/build/src/akuma/identity.d.ts +17 -16
- package/build/src/akuma/identity.js +20 -19
- package/build/src/akuma/index.d.ts +1 -2
- 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 +659 -569
- package/build/src/akuma/projection.js +203 -94
- package/build/src/akuma/providers/acp/index.js +1 -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/publication.d.ts +2 -2
- package/build/src/akuma/publication.js +3 -3
- package/build/src/akuma/retention.js +2 -2
- package/build/src/akuma/selection-observation.d.ts +507 -43
- package/build/src/akuma/selection-observation.js +153 -1
- package/build/src/akuma/status-projection.d.ts +288 -0
- package/build/src/akuma/status-projection.js +154 -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/bounded-list.d.ts +8 -0
- package/build/src/bounded-list.js +9 -0
- package/build/src/cli/commands/akuma-grammar.d.ts +2 -2
- package/build/src/cli/commands/akuma-grammar.js +21 -21
- package/build/src/cli/commands/akuma.d.ts +1 -2
- package/build/src/cli/commands/akuma.js +115 -251
- package/build/src/cli/commands/contract-grammar.d.ts +4 -3
- package/build/src/cli/commands/contract-grammar.js +39 -22
- package/build/src/cli/commands/contract-help.d.ts +3 -1
- package/build/src/cli/commands/contract-help.js +4 -3
- package/build/src/cli/commands/contract.d.ts +6 -3
- package/build/src/cli/commands/contract.js +203 -434
- package/build/src/cli/commands/debt.d.ts +2 -3
- package/build/src/cli/commands/debt.js +101 -317
- 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 +4 -35
- package/build/src/cli/coordinates.js +13 -129
- package/build/src/cli/parse.d.ts +0 -6
- package/build/src/cli/parse.js +5 -48
- package/build/src/cli/render/akuma-activity.d.ts +31 -16
- package/build/src/cli/render/akuma-activity.js +157 -149
- package/build/src/cli/render/akuma-tool.d.ts +3 -6
- package/build/src/cli/render/akuma-tool.js +20 -14
- package/build/src/cli/render/akuma.d.ts +25 -26
- package/build/src/cli/render/akuma.js +100 -129
- package/build/src/cli/render/catalog.d.ts +4 -7
- package/build/src/cli/render/catalog.js +52 -99
- package/build/src/cli/render/contract-history.d.ts +3 -1
- package/build/src/cli/render/contract-history.js +140 -215
- package/build/src/cli/render/contract-observation.d.ts +43 -30
- package/build/src/cli/render/contract-observation.js +64 -31
- package/build/src/cli/render/contract-wait.js +6 -6
- package/build/src/cli/render/contract.d.ts +41 -6
- package/build/src/cli/render/contract.js +274 -370
- package/build/src/cli/render/debt.d.ts +9 -19
- package/build/src/cli/render/debt.js +120 -185
- 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 +4 -4
- package/build/src/cli/render/kanshi-akuma.js +70 -59
- package/build/src/cli/render/kanshi.d.ts +4 -4
- package/build/src/cli/render/kanshi.js +205 -221
- 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 +37 -43
- package/build/src/cli/render/receipt.js +313 -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 +3 -2
- package/build/src/cli/render/refusal.js +73 -54
- 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 +0 -1
- package/build/src/cli/render/settings.js +8 -17
- package/build/src/cli/render/terminal.d.ts +2 -0
- package/build/src/cli/render/verbs.d.ts +4 -0
- package/build/src/cli/render/verbs.js +312 -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 +96 -79
- package/build/src/cli/scan.d.ts +1 -1
- package/build/src/cli/streams.js +1 -0
- package/build/src/contract-guidance.js +2 -2
- package/build/src/contract-worktree.d.ts +2 -15
- package/build/src/contract-worktree.js +19 -35
- package/build/src/core/facts/observation.d.ts +4 -5
- package/build/src/core/facts/observation.js +7 -9
- package/build/src/core/verbs/amend.d.ts +0 -1
- package/build/src/core/verbs/amend.js +3 -3
- package/build/src/core/verbs/bind.d.ts +0 -1
- package/build/src/core/verbs/bind.js +5 -5
- package/build/src/core/verbs/deliver.d.ts +3 -2
- package/build/src/core/verbs/deliver.js +2 -2
- package/build/src/core/verbs/placement.d.ts +0 -5
- package/build/src/core/verbs/placement.js +4 -6
- package/build/src/core/verbs/reintegrate.d.ts +0 -1
- package/build/src/core/verbs/reintegrate.js +2 -2
- package/build/src/debt/board.d.ts +132 -116
- package/build/src/debt/board.js +138 -94
- package/build/src/debt/catalog.d.ts +4 -4
- package/build/src/debt/catalog.js +2 -18
- package/build/src/debt/context.d.ts +15 -3
- package/build/src/debt/context.js +12 -1
- package/build/src/debt/created-observation.d.ts +5 -17
- package/build/src/debt/created-observation.js +14 -6
- package/build/src/debt/document.d.ts +20 -15
- package/build/src/debt/document.js +18 -1
- package/build/src/debt/index.d.ts +346 -23
- package/build/src/debt/index.js +68 -22
- package/build/src/debt/input.d.ts +2 -1
- package/build/src/debt/input.js +14 -0
- package/build/src/debt/lifecycle-operations.d.ts +2 -2
- package/build/src/debt/lifecycle-operations.js +14 -22
- package/build/src/debt/operation-types.d.ts +188 -66
- package/build/src/debt/operation-types.js +113 -1
- package/build/src/debt/operations.d.ts +11 -10
- package/build/src/debt/operations.js +46 -71
- package/build/src/debt/query.d.ts +14 -10
- package/build/src/debt/query.js +3 -12
- package/build/src/debt/store.d.ts +4 -2
- package/build/src/debt/store.js +8 -8
- 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/git/admission.d.ts +2 -2
- package/build/src/git/admission.js +2 -1
- package/build/src/git/hooks.d.ts +14 -35
- 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/private-state-seat.d.ts +2 -2
- package/build/src/git/private-state-seat.js +2 -1
- package/build/src/git/reconcile.d.ts +17 -79
- package/build/src/git/reconcile.js +37 -52
- 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 +23 -31
- package/build/src/git/target-placement.js +42 -27
- package/build/src/git/target.d.ts +2 -2
- package/build/src/git/target.js +2 -1
- package/build/src/git/tender.d.ts +7 -39
- package/build/src/git/tender.js +21 -54
- 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/selector.d.ts +2 -0
- package/build/src/identity/selector.js +13 -3
- package/build/src/index.d.ts +48 -54
- package/build/src/index.js +31 -43
- package/build/src/kanshi/counts.d.ts +42 -8
- package/build/src/kanshi/counts.js +13 -2
- package/build/src/kanshi/index.d.ts +5 -5
- package/build/src/kanshi/index.js +4 -3
- package/build/src/kanshi/read.d.ts +489 -6
- package/build/src/kanshi/read.js +334 -483
- package/build/src/kanshi/report.d.ts +2504 -103
- package/build/src/kanshi/report.js +165 -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 +8 -8
- package/build/src/library/address.js +7 -7
- package/build/src/library/akuma-creation.d.ts +690 -84
- package/build/src/library/akuma-creation.js +202 -142
- 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 +10 -6
- package/build/src/library/akumas.js +24 -7
- package/build/src/library/bind.d.ts +28 -54
- package/build/src/library/bind.js +6 -4
- package/build/src/library/continuation.d.ts +197 -479
- package/build/src/library/continuation.js +40 -23
- package/build/src/library/contract-address.d.ts +6 -5
- package/build/src/library/contract-address.js +5 -7
- package/build/src/library/contract-composition.d.ts +18 -12
- package/build/src/library/contract-composition.js +55 -47
- package/build/src/library/contract-creation.d.ts +3 -2
- package/build/src/library/contract-creation.js +38 -32
- package/build/src/library/contract-execution.js +77 -38
- package/build/src/library/contract-outcomes.d.ts +1877 -27
- package/build/src/library/contract-outcomes.js +93 -10
- package/build/src/library/contract-settings.d.ts +2 -2
- package/build/src/library/contract-settings.js +18 -14
- package/build/src/library/contract-types.d.ts +238 -61
- package/build/src/library/contract-types.js +131 -1
- package/build/src/library/contract-wait.d.ts +38 -17
- package/build/src/library/contract-wait.js +40 -10
- package/build/src/library/delivery.d.ts +588 -36
- package/build/src/library/delivery.js +35 -27
- package/build/src/library/input.d.ts +1 -1
- package/build/src/library/input.js +1 -2
- package/build/src/library/invocation.d.ts +11 -7
- package/build/src/library/invocation.js +42 -51
- package/build/src/library/kei.d.ts +48 -0
- package/build/src/library/kei.js +256 -0
- package/build/src/library/keiyaku-attribution.d.ts +11 -0
- package/build/src/{cli/delivery-identity.js → library/keiyaku-attribution.js} +12 -1
- package/build/src/library/keiyaku-classify.d.ts +11 -0
- package/build/src/library/keiyaku-classify.js +146 -0
- package/build/src/library/keiyaku-coordinates.d.ts +31 -0
- package/build/src/library/keiyaku-coordinates.js +103 -0
- package/build/src/library/keiyaku-debt.d.ts +142 -0
- package/build/src/library/keiyaku-debt.js +188 -0
- package/build/src/library/keiyaku-identity.d.ts +58 -0
- package/build/src/library/keiyaku-identity.js +176 -0
- package/build/src/library/keiyaku-policy.d.ts +27 -0
- package/build/src/library/keiyaku-policy.js +44 -0
- package/build/src/library/keiyaku-status.d.ts +1487 -0
- package/build/src/library/keiyaku-status.js +92 -0
- package/build/src/library/keiyaku-verbs.d.ts +6774 -0
- package/build/src/library/keiyaku-verbs.js +458 -0
- package/build/src/library/keiyaku.d.ts +871 -38
- package/build/src/library/keiyaku.js +677 -127
- package/build/src/library/nuke.d.ts +22 -0
- package/build/src/library/nuke.js +4 -1
- package/build/src/library/outcome.d.ts +706 -692
- package/build/src/library/outcome.js +582 -167
- package/build/src/library/reconcile.d.ts +464 -116
- package/build/src/library/reconcile.js +174 -102
- package/build/src/library/refusal.d.ts +113 -577
- package/build/src/library/refusal.js +64 -51
- package/build/src/library/region.d.ts +5 -24
- package/build/src/library/region.js +6 -21
- package/build/src/library/selection.d.ts +181 -32
- package/build/src/library/selection.js +99 -64
- package/build/src/mcp/adapter.d.ts +11 -0
- package/build/src/mcp/adapter.js +106 -0
- package/build/src/mcp/help.d.ts +1 -0
- package/build/src/mcp/help.js +26 -0
- package/build/src/mcp/index.d.ts +2 -0
- package/build/src/mcp/index.js +37 -0
- package/build/src/plugin/public.d.ts +1 -1
- package/build/src/plugin/runtime.js +17 -14
- 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 +6 -7
- package/build/src/protocol/bind.js +9 -5
- package/build/src/protocol/completion.d.ts +448 -12
- package/build/src/protocol/completion.js +164 -26
- package/build/src/protocol/deliver.d.ts +26 -24
- package/build/src/protocol/deliver.js +24 -52
- package/build/src/protocol/delivery-preview.d.ts +97 -247
- package/build/src/protocol/delivery-preview.js +132 -128
- package/build/src/protocol/execution-observation.d.ts +146 -123
- package/build/src/protocol/execution-observation.js +9 -6
- package/build/src/protocol/intent.d.ts +9 -48
- package/build/src/protocol/intent.js +32 -46
- package/build/src/protocol/operations.d.ts +207 -505
- package/build/src/protocol/operations.js +81 -134
- package/build/src/protocol/placement.d.ts +0 -1
- package/build/src/protocol/placement.js +5 -2
- package/build/src/protocol/progress.d.ts +7 -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 +464 -93
- package/build/src/protocol/read/status.js +372 -85
- package/build/src/protocol/reconcile.d.ts +2 -0
- package/build/src/protocol/reconcile.js +12 -11
- package/build/src/protocol/reintegrate.d.ts +0 -1
- package/build/src/protocol/reintegrate.js +4 -4
- package/build/src/protocol/result-leaves.d.ts +528 -0
- package/build/src/protocol/result-leaves.js +195 -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 -14
- package/build/src/protocol/run.d.ts +4 -4
- package/build/src/protocol/run.js +4 -1
- package/build/src/protocol/verify.d.ts +359 -30
- package/build/src/protocol/verify.js +118 -28
- 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 +126 -32
- package/build/src/settings.js +107 -34
- package/build/src/settlement/settle.d.ts +29 -12
- package/build/src/settlement/settle.js +22 -15
- package/build/src/verification/declaration.d.ts +1 -3
- package/build/src/verification/declaration.js +2 -5
- package/build/src/verification/execution.d.ts +7 -19
- package/build/src/verification/execution.js +37 -16
- package/build/src/verification/observation.d.ts +13 -13
- package/build/src/verification/observation.js +9 -7
- package/build/src/world.d.ts +8 -0
- package/build/src/world.js +7 -0
- package/package.json +6 -5
- package/plugins/paseo/plugin/server/keiyaku.ts +13 -46
- package/plugins/paseo/plugin/server/message.ts +8 -30
- 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 +14 -6
- package/plugins/pi/README.md +5 -5
- package/plugins/pi/akuma-tools.ts +17 -23
- package/skills/keiyaku/SKILL.md +12 -12
- package/skills/keiyaku-akuma/SKILL.md +16 -16
- package/skills/keiyaku-akuma/references/automation.md +14 -14
- package/skills/keiyaku-babysit/SKILL.md +10 -10
- package/skills/keiyaku-bind/SKILL.md +15 -15
- package/skills/keiyaku-debt/SKILL.md +16 -16
- package/skills/keiyaku-workflow/SKILL.md +21 -21
- 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/delivery-identity.d.ts +0 -3
- 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/markdown/diff.d.ts +0 -1
- package/build/src/markdown/diff.js +0 -4
|
@@ -0,0 +1,458 @@
|
|
|
1
|
+
/** @architectureCompositionRoot */
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export { classifyVerb } from "./keiyaku-classify.js";
|
|
4
|
+
import { akumaCallerSchema } from "../akuma/caller.js";
|
|
5
|
+
import { askProgressSchema } from "../akuma/akuma-selection-execution.js";
|
|
6
|
+
import { akumaReportResultSchema } from "../akuma/akuma-instance.js";
|
|
7
|
+
import { akumaListSchema } from "../akuma/akuma.js";
|
|
8
|
+
import { archetypeCatalogSchema } from "../akuma/archetype.js";
|
|
9
|
+
import { akumaAskResultSchema, akumaKillResultSchema, akumaTellResultSchema, akumaWaitResultSchema, } from "../akuma/selection-observation.js";
|
|
10
|
+
import { regionResultSchema } from "../kanshi/report.js";
|
|
11
|
+
import { settingsSchema } from "../settings.js";
|
|
12
|
+
import { contractCatalogueSchema } from "../protocol/read/status.js";
|
|
13
|
+
import { executionObservationSchema } from "../protocol/execution-observation.js";
|
|
14
|
+
import { spawnProgressSchema, spawnResultSchema, forkResultSchema, } from "./akuma-creation.js";
|
|
15
|
+
import { bindOutcomeSchema, amendOutcomeSchema, arcOutcomeSchema, deliverOutcomeSchema, deliveryPreviewOutcomeSchema, verifyOutcomeSchema, reviewOutcomeSchema, abandonOutcomeSchema, } from "./contract-outcomes.js";
|
|
16
|
+
import { contractHistorySchema } from "./contract-types.js";
|
|
17
|
+
import { guidanceSchema } from "./kei.js";
|
|
18
|
+
import { contractWaitResultSchema } from "./contract-wait.js";
|
|
19
|
+
import { reconcileResultSchema } from "./reconcile.js";
|
|
20
|
+
import { akumaHistoryResultSchema } from "./selection.js";
|
|
21
|
+
import { statusResultSchema } from "./keiyaku-status.js";
|
|
22
|
+
import { whoamiFactsSchema } from "./keiyaku-identity.js";
|
|
23
|
+
import { resetOutcomeSchema } from "./outcome.js";
|
|
24
|
+
import { debtAbsentSchema, debtBatchResultSchema, debtTreeResultSchema, debtCatalogueSchema, debtShowResultSchema, debtDoctorReportSchema, debtReadyListSchema, blockedDebtListSchema, debtMutationResultSchema, debtQueryResultSchema, debtContextResultSchema, debtUpdateResultSchema, } from "../debt/index.js";
|
|
25
|
+
import { debtPrioritySchema, debtStateSchema } from "../debt/document.js";
|
|
26
|
+
import { debtIdSchema } from "../debt/identity.js";
|
|
27
|
+
const text = z.string();
|
|
28
|
+
const nonblank = text.regex(/\S/u, "Must not be blank");
|
|
29
|
+
const optText = text.exactOptional();
|
|
30
|
+
const optBool = z.boolean().exactOptional();
|
|
31
|
+
const strings = z.array(text).readonly();
|
|
32
|
+
const positive = z.number().int().positive();
|
|
33
|
+
const timeout = z.number().finite().nonnegative().exactOptional();
|
|
34
|
+
const contract = { contract: optText };
|
|
35
|
+
const actor = { actor: optText };
|
|
36
|
+
const commonBind = {
|
|
37
|
+
target: text.nullable().exactOptional(),
|
|
38
|
+
workspace: z.literal("worktree").exactOptional(),
|
|
39
|
+
...actor,
|
|
40
|
+
};
|
|
41
|
+
const jsonValue = z.lazy(() => z.union([
|
|
42
|
+
z.null(),
|
|
43
|
+
z.boolean(),
|
|
44
|
+
z.number().finite(),
|
|
45
|
+
z.string(),
|
|
46
|
+
z.array(jsonValue).readonly(),
|
|
47
|
+
z.record(z.string(), jsonValue).readonly(),
|
|
48
|
+
]));
|
|
49
|
+
const jsonDocument = z.record(z.string(), jsonValue).readonly();
|
|
50
|
+
const contractSelector = text.startsWith("kei/");
|
|
51
|
+
const akumaSelector = text.regex(/^(?!kei\/)/u);
|
|
52
|
+
const debtReadScope = {
|
|
53
|
+
scope: z.enum(["namespace", "world"]).exactOptional(),
|
|
54
|
+
namespace: strings.exactOptional(),
|
|
55
|
+
limit: positive.exactOptional(),
|
|
56
|
+
};
|
|
57
|
+
const debtSelection = z.enum(["active", "closed", "all"]).exactOptional();
|
|
58
|
+
const debtRelations = {
|
|
59
|
+
needs: strings.exactOptional(),
|
|
60
|
+
parent: text.nullable().exactOptional(),
|
|
61
|
+
supersedes: strings.exactOptional(),
|
|
62
|
+
relates: strings.exactOptional(),
|
|
63
|
+
};
|
|
64
|
+
const debtPredicate = z.union([
|
|
65
|
+
z.strictObject({ field: z.literal("state"), operator: z.enum(["=", "!="]), value: debtStateSchema }).readonly(),
|
|
66
|
+
z
|
|
67
|
+
.strictObject({
|
|
68
|
+
field: z.literal("priority"),
|
|
69
|
+
operator: z.enum(["=", "!=", "<", "<=", ">", ">="]),
|
|
70
|
+
value: debtPrioritySchema,
|
|
71
|
+
})
|
|
72
|
+
.readonly(),
|
|
73
|
+
z.strictObject({ field: z.enum(["title", "id"]), operator: z.enum(["=", "!=", "~"]), value: text }).readonly(),
|
|
74
|
+
z
|
|
75
|
+
.strictObject({ field: z.literal("parent"), operator: z.enum(["=", "!="]), value: debtIdSchema.nullable() })
|
|
76
|
+
.readonly(),
|
|
77
|
+
z
|
|
78
|
+
.strictObject({ field: z.enum(["under", "needs", "blocks"]), operator: z.enum(["=", "!="]), value: debtIdSchema })
|
|
79
|
+
.readonly(),
|
|
80
|
+
z.strictObject({ field: z.enum(["ready", "blocked"]), operator: z.enum(["=", "!="]), value: z.boolean() }).readonly(),
|
|
81
|
+
z
|
|
82
|
+
.strictObject({
|
|
83
|
+
field: z.enum(["created", "updated"]),
|
|
84
|
+
operator: z.enum(["=", "!=", "<", "<=", ">", ">="]),
|
|
85
|
+
value: text,
|
|
86
|
+
})
|
|
87
|
+
.readonly(),
|
|
88
|
+
]);
|
|
89
|
+
const debtQueryExpression = z.lazy(() => z.union([
|
|
90
|
+
z.strictObject({ kind: z.enum(["and", "or"]), terms: z.array(debtQueryExpression).readonly() }).readonly(),
|
|
91
|
+
z.strictObject({ kind: z.literal("not"), term: debtQueryExpression }).readonly(),
|
|
92
|
+
z.strictObject({ kind: z.literal("predicate"), predicate: debtPredicate }).readonly(),
|
|
93
|
+
]));
|
|
94
|
+
export const verbs = Object.freeze({
|
|
95
|
+
bind: {
|
|
96
|
+
description: "Bind Contract terms or fork existing terms.",
|
|
97
|
+
input: z.union([
|
|
98
|
+
z
|
|
99
|
+
.strictObject({
|
|
100
|
+
markdown: text,
|
|
101
|
+
debt: optText,
|
|
102
|
+
...commonBind,
|
|
103
|
+
after: strings.exactOptional(),
|
|
104
|
+
gates: strings.exactOptional(),
|
|
105
|
+
})
|
|
106
|
+
.readonly(),
|
|
107
|
+
z.strictObject({ forkOf: text, ...commonBind }).readonly(),
|
|
108
|
+
]),
|
|
109
|
+
output: bindOutcomeSchema,
|
|
110
|
+
effect: "write",
|
|
111
|
+
},
|
|
112
|
+
amend: {
|
|
113
|
+
description: "Amend Contract terms.",
|
|
114
|
+
input: z
|
|
115
|
+
.strictObject({
|
|
116
|
+
...contract,
|
|
117
|
+
markdown: optText,
|
|
118
|
+
after: strings.exactOptional(),
|
|
119
|
+
gates: strings.exactOptional(),
|
|
120
|
+
...actor,
|
|
121
|
+
})
|
|
122
|
+
.readonly(),
|
|
123
|
+
output: amendOutcomeSchema,
|
|
124
|
+
effect: "write",
|
|
125
|
+
},
|
|
126
|
+
arc: {
|
|
127
|
+
description: "Add a Contract arc.",
|
|
128
|
+
input: z.strictObject({ ...contract, markdown: text, ...actor }).readonly(),
|
|
129
|
+
output: arcOutcomeSchema,
|
|
130
|
+
effect: "write",
|
|
131
|
+
},
|
|
132
|
+
deliver: {
|
|
133
|
+
description: "Deliver a Contract candidate.",
|
|
134
|
+
input: z
|
|
135
|
+
.strictObject({
|
|
136
|
+
...contract,
|
|
137
|
+
message: optText,
|
|
138
|
+
includeDirty: optBool,
|
|
139
|
+
materializeConflict: optBool,
|
|
140
|
+
overwrite: optBool,
|
|
141
|
+
})
|
|
142
|
+
.readonly(),
|
|
143
|
+
output: deliverOutcomeSchema,
|
|
144
|
+
progress: executionObservationSchema,
|
|
145
|
+
effect: "write",
|
|
146
|
+
},
|
|
147
|
+
"deliver.preview": {
|
|
148
|
+
description: "Observe a prospective delivery.",
|
|
149
|
+
input: z.strictObject({ ...contract, includeDirty: optBool, showDiff: optBool }).readonly(),
|
|
150
|
+
output: deliveryPreviewOutcomeSchema,
|
|
151
|
+
progress: executionObservationSchema,
|
|
152
|
+
effect: "read",
|
|
153
|
+
},
|
|
154
|
+
verify: {
|
|
155
|
+
description: "Run declared verification.",
|
|
156
|
+
input: z.strictObject({ ...contract, index: positive.exactOptional(), includeDirty: optBool }).readonly(),
|
|
157
|
+
output: verifyOutcomeSchema,
|
|
158
|
+
progress: executionObservationSchema,
|
|
159
|
+
effect: "write",
|
|
160
|
+
},
|
|
161
|
+
review: {
|
|
162
|
+
description: "Record Contract review.",
|
|
163
|
+
input: z
|
|
164
|
+
.strictObject({ ...contract, verdict: z.enum(["satisfied", "unsatisfied"]), summary: nonblank, ...actor })
|
|
165
|
+
.readonly(),
|
|
166
|
+
output: reviewOutcomeSchema,
|
|
167
|
+
progress: executionObservationSchema,
|
|
168
|
+
effect: "write",
|
|
169
|
+
},
|
|
170
|
+
abandon: {
|
|
171
|
+
description: "Abandon a Contract.",
|
|
172
|
+
input: z.strictObject({ ...contract, note: optText, ...actor }).readonly(),
|
|
173
|
+
output: abandonOutcomeSchema,
|
|
174
|
+
effect: "destroy",
|
|
175
|
+
},
|
|
176
|
+
show: {
|
|
177
|
+
description: "Read Contract guidance.",
|
|
178
|
+
input: z.strictObject(contract).readonly(),
|
|
179
|
+
output: guidanceSchema,
|
|
180
|
+
effect: "read",
|
|
181
|
+
},
|
|
182
|
+
reconcile: {
|
|
183
|
+
description: "Reconcile Contract effects.",
|
|
184
|
+
input: z.strictObject({ ...contract, retryHooks: optBool }).readonly(),
|
|
185
|
+
output: reconcileResultSchema,
|
|
186
|
+
effect: "write",
|
|
187
|
+
},
|
|
188
|
+
spawn: {
|
|
189
|
+
description: "Spawn an Akuma.",
|
|
190
|
+
input: z
|
|
191
|
+
.strictObject({
|
|
192
|
+
akumaName: text,
|
|
193
|
+
prompt: optText,
|
|
194
|
+
...contract,
|
|
195
|
+
workdir: optText,
|
|
196
|
+
alias: optText,
|
|
197
|
+
mode: z.enum(["wait", "detach"]).exactOptional(),
|
|
198
|
+
timeoutMs: timeout,
|
|
199
|
+
writableDirectories: strings.exactOptional(),
|
|
200
|
+
bare: optBool,
|
|
201
|
+
schema: jsonDocument.exactOptional(),
|
|
202
|
+
})
|
|
203
|
+
.readonly(),
|
|
204
|
+
output: spawnResultSchema,
|
|
205
|
+
progress: spawnProgressSchema,
|
|
206
|
+
effect: "write",
|
|
207
|
+
},
|
|
208
|
+
fork: {
|
|
209
|
+
description: "Fork an Akuma at a history point.",
|
|
210
|
+
input: z.strictObject({ akuma: text, at: text, bare: optBool }).readonly(),
|
|
211
|
+
output: forkResultSchema,
|
|
212
|
+
effect: "write",
|
|
213
|
+
},
|
|
214
|
+
tell: {
|
|
215
|
+
description: "Send an Akuma a prompt.",
|
|
216
|
+
input: z.strictObject({ akuma: text, prompt: text, interrupt: optBool }).readonly(),
|
|
217
|
+
output: akumaTellResultSchema,
|
|
218
|
+
effect: "write",
|
|
219
|
+
},
|
|
220
|
+
ask: {
|
|
221
|
+
description: "Ask an Akuma and observe its answer.",
|
|
222
|
+
input: z
|
|
223
|
+
.strictObject({
|
|
224
|
+
akuma: text,
|
|
225
|
+
prompt: text,
|
|
226
|
+
timeoutMs: timeout,
|
|
227
|
+
schema: jsonDocument.exactOptional(),
|
|
228
|
+
interrupt: optBool,
|
|
229
|
+
})
|
|
230
|
+
.readonly(),
|
|
231
|
+
output: akumaAskResultSchema,
|
|
232
|
+
progress: askProgressSchema,
|
|
233
|
+
effect: "write",
|
|
234
|
+
},
|
|
235
|
+
kill: {
|
|
236
|
+
description: "Kill selected Akumas.",
|
|
237
|
+
input: z.strictObject({ akuma: z.array(text).min(1).readonly() }).readonly(),
|
|
238
|
+
output: akumaKillResultSchema,
|
|
239
|
+
effect: "destroy",
|
|
240
|
+
},
|
|
241
|
+
wait: {
|
|
242
|
+
description: "Wait for selected Contracts or Akumas.",
|
|
243
|
+
input: z.union([
|
|
244
|
+
z
|
|
245
|
+
.strictObject({
|
|
246
|
+
selectors: z.array(contractSelector).min(1).readonly(),
|
|
247
|
+
completion: z.enum(["any", "all"]).exactOptional(),
|
|
248
|
+
timeoutMs: timeout,
|
|
249
|
+
})
|
|
250
|
+
.readonly(),
|
|
251
|
+
z
|
|
252
|
+
.strictObject({
|
|
253
|
+
selectors: z.array(akumaSelector).min(1).readonly(),
|
|
254
|
+
completion: z.enum(["any", "all"]).exactOptional(),
|
|
255
|
+
timeoutMs: timeout,
|
|
256
|
+
})
|
|
257
|
+
.readonly(),
|
|
258
|
+
]),
|
|
259
|
+
output: z.union([contractWaitResultSchema, akumaWaitResultSchema]),
|
|
260
|
+
effect: "read",
|
|
261
|
+
},
|
|
262
|
+
history: {
|
|
263
|
+
description: "Read Contract or Akuma history.",
|
|
264
|
+
input: z.union([
|
|
265
|
+
z.strictObject({ selector: contractSelector, full: optBool }).readonly(),
|
|
266
|
+
z
|
|
267
|
+
.strictObject({
|
|
268
|
+
selector: akumaSelector,
|
|
269
|
+
id: optText,
|
|
270
|
+
before: positive.exactOptional(),
|
|
271
|
+
since: positive.exactOptional(),
|
|
272
|
+
limit: positive.exactOptional(),
|
|
273
|
+
last: optBool,
|
|
274
|
+
})
|
|
275
|
+
.readonly(),
|
|
276
|
+
]),
|
|
277
|
+
output: z.union([contractHistorySchema, akumaHistoryResultSchema]),
|
|
278
|
+
effect: "read",
|
|
279
|
+
},
|
|
280
|
+
report: {
|
|
281
|
+
description: "Record a report for the current execution.",
|
|
282
|
+
input: z.strictObject({ text: nonblank }).readonly(),
|
|
283
|
+
output: akumaReportResultSchema,
|
|
284
|
+
effect: "write",
|
|
285
|
+
},
|
|
286
|
+
whoami: {
|
|
287
|
+
description: "Observe the invocation's identity and context.",
|
|
288
|
+
input: z.strictObject({}).readonly(),
|
|
289
|
+
output: whoamiFactsSchema,
|
|
290
|
+
effect: "read",
|
|
291
|
+
},
|
|
292
|
+
settings: {
|
|
293
|
+
description: "Observe resolved Settings.",
|
|
294
|
+
input: z.strictObject({}).readonly(),
|
|
295
|
+
output: settingsSchema,
|
|
296
|
+
effect: "read",
|
|
297
|
+
},
|
|
298
|
+
nuke: {
|
|
299
|
+
description: "Reset the selected World with explicit confirmation.",
|
|
300
|
+
input: z.strictObject({ confirm: optText }).readonly(),
|
|
301
|
+
output: resetOutcomeSchema,
|
|
302
|
+
effect: "destroy",
|
|
303
|
+
},
|
|
304
|
+
status: {
|
|
305
|
+
description: "Observe the World or selected subjects.",
|
|
306
|
+
input: z.union([
|
|
307
|
+
z.strictObject({}).readonly(),
|
|
308
|
+
z.strictObject({ selector: text }).readonly(),
|
|
309
|
+
z.strictObject({ selectors: z.array(text).min(2).readonly() }).readonly(),
|
|
310
|
+
z.strictObject({ category: z.enum(["akuma", "contract"]), limit: positive.exactOptional() }).readonly(),
|
|
311
|
+
]),
|
|
312
|
+
output: statusResultSchema,
|
|
313
|
+
effect: "read",
|
|
314
|
+
},
|
|
315
|
+
region: {
|
|
316
|
+
description: "Observe Region declarations or overlaps.",
|
|
317
|
+
input: z.union([
|
|
318
|
+
z.strictObject({}).readonly(),
|
|
319
|
+
z.strictObject({ contract: text }).readonly(),
|
|
320
|
+
z.strictObject({ paths: z.array(text).min(1).readonly() }).readonly(),
|
|
321
|
+
]),
|
|
322
|
+
output: regionResultSchema,
|
|
323
|
+
effect: "read",
|
|
324
|
+
},
|
|
325
|
+
"debt.add": {
|
|
326
|
+
description: "Create a Debt.",
|
|
327
|
+
input: z
|
|
328
|
+
.strictObject({
|
|
329
|
+
title: text,
|
|
330
|
+
namespace: strings.exactOptional(),
|
|
331
|
+
body: optText,
|
|
332
|
+
note: optText,
|
|
333
|
+
state: debtStateSchema.exactOptional(),
|
|
334
|
+
priority: debtPrioritySchema.exactOptional(),
|
|
335
|
+
...debtRelations,
|
|
336
|
+
...actor,
|
|
337
|
+
})
|
|
338
|
+
.readonly(),
|
|
339
|
+
output: debtMutationResultSchema,
|
|
340
|
+
effect: "write",
|
|
341
|
+
},
|
|
342
|
+
"debt.addDocument": {
|
|
343
|
+
description: "Create a Debt from Markdown.",
|
|
344
|
+
input: z.strictObject({ markdown: text, namespace: strings.exactOptional(), ...actor }).readonly(),
|
|
345
|
+
output: debtMutationResultSchema,
|
|
346
|
+
effect: "write",
|
|
347
|
+
},
|
|
348
|
+
"debt.update": {
|
|
349
|
+
description: "Update a Debt.",
|
|
350
|
+
input: z
|
|
351
|
+
.strictObject({
|
|
352
|
+
id: text,
|
|
353
|
+
title: optText,
|
|
354
|
+
body: optText,
|
|
355
|
+
appendBody: optText,
|
|
356
|
+
note: optText,
|
|
357
|
+
priority: debtPrioritySchema.exactOptional(),
|
|
358
|
+
...debtRelations,
|
|
359
|
+
addNeeds: strings.exactOptional(),
|
|
360
|
+
dropNeeds: strings.exactOptional(),
|
|
361
|
+
addSupersedes: strings.exactOptional(),
|
|
362
|
+
dropSupersedes: strings.exactOptional(),
|
|
363
|
+
addRelates: strings.exactOptional(),
|
|
364
|
+
dropRelates: strings.exactOptional(),
|
|
365
|
+
})
|
|
366
|
+
.readonly(),
|
|
367
|
+
output: debtUpdateResultSchema,
|
|
368
|
+
effect: "write",
|
|
369
|
+
},
|
|
370
|
+
"debt.show": {
|
|
371
|
+
description: "Read one or more Debts.",
|
|
372
|
+
input: z.union([
|
|
373
|
+
z.strictObject({ id: text }).readonly(),
|
|
374
|
+
z.strictObject({ ids: z.array(text).min(1).readonly() }).readonly(),
|
|
375
|
+
]),
|
|
376
|
+
output: z.union([debtShowResultSchema, debtAbsentSchema]),
|
|
377
|
+
effect: "read",
|
|
378
|
+
},
|
|
379
|
+
"debt.done": {
|
|
380
|
+
description: "Complete Debts in caller order.",
|
|
381
|
+
input: z.strictObject({ ids: z.array(text).min(1).readonly(), note: optText }).readonly(),
|
|
382
|
+
output: debtBatchResultSchema,
|
|
383
|
+
effect: "write",
|
|
384
|
+
},
|
|
385
|
+
"debt.drop": {
|
|
386
|
+
description: "Drop Debts in caller order.",
|
|
387
|
+
input: z.strictObject({ ids: z.array(text).min(1).readonly(), note: optText }).readonly(),
|
|
388
|
+
output: debtBatchResultSchema,
|
|
389
|
+
effect: "write",
|
|
390
|
+
},
|
|
391
|
+
"debt.ready": {
|
|
392
|
+
description: "List ready Debts.",
|
|
393
|
+
input: z.strictObject({ ...debtReadScope, parent: optText }).readonly(),
|
|
394
|
+
output: debtReadyListSchema,
|
|
395
|
+
effect: "read",
|
|
396
|
+
},
|
|
397
|
+
"debt.blocked": {
|
|
398
|
+
description: "List blocked Debts.",
|
|
399
|
+
input: z.strictObject({ ...debtReadScope, parent: optText }).readonly(),
|
|
400
|
+
output: blockedDebtListSchema,
|
|
401
|
+
effect: "read",
|
|
402
|
+
},
|
|
403
|
+
"debt.query": {
|
|
404
|
+
description: "Query Debts using the owner expression.",
|
|
405
|
+
input: z
|
|
406
|
+
.strictObject({
|
|
407
|
+
...debtReadScope,
|
|
408
|
+
selection: debtSelection,
|
|
409
|
+
where: debtQueryExpression.exactOptional(),
|
|
410
|
+
sort: z.enum(["priority", "created", "updated", "id"]).exactOptional(),
|
|
411
|
+
})
|
|
412
|
+
.readonly(),
|
|
413
|
+
output: debtQueryResultSchema,
|
|
414
|
+
effect: "read",
|
|
415
|
+
},
|
|
416
|
+
"debt.tree": {
|
|
417
|
+
description: "Observe a Debt decomposition tree.",
|
|
418
|
+
input: z.strictObject({ id: text }).readonly(),
|
|
419
|
+
output: z.union([debtTreeResultSchema, debtAbsentSchema]),
|
|
420
|
+
effect: "read",
|
|
421
|
+
},
|
|
422
|
+
"debt.doctor": {
|
|
423
|
+
description: "Diagnose Debt authority and relations.",
|
|
424
|
+
input: z.strictObject({}).readonly(),
|
|
425
|
+
output: z.union([debtDoctorReportSchema, debtAbsentSchema]),
|
|
426
|
+
effect: "read",
|
|
427
|
+
},
|
|
428
|
+
"debt.context": {
|
|
429
|
+
description: "Observe or set the Debt namespace context.",
|
|
430
|
+
input: z.strictObject({ namespace: strings.exactOptional() }).readonly(),
|
|
431
|
+
output: debtContextResultSchema,
|
|
432
|
+
effect: "write",
|
|
433
|
+
},
|
|
434
|
+
ls: {
|
|
435
|
+
description: "List Contracts, Akumas, archetypes, or Debts.",
|
|
436
|
+
input: z.union([
|
|
437
|
+
z.strictObject({ of: z.literal("kei"), limit: positive.exactOptional() }).readonly(),
|
|
438
|
+
z
|
|
439
|
+
.strictObject({
|
|
440
|
+
of: z.literal("aku"),
|
|
441
|
+
limit: positive.exactOptional(),
|
|
442
|
+
akumaName: optText,
|
|
443
|
+
caller: z
|
|
444
|
+
.union([
|
|
445
|
+
z.strictObject({ kind: z.literal("mine") }).readonly(),
|
|
446
|
+
z.strictObject({ kind: z.literal("external"), caller: akumaCallerSchema }).readonly(),
|
|
447
|
+
z.strictObject({ kind: z.literal("akuma"), akumaId: text }).readonly(),
|
|
448
|
+
])
|
|
449
|
+
.exactOptional(),
|
|
450
|
+
})
|
|
451
|
+
.readonly(),
|
|
452
|
+
z.strictObject({ of: z.literal("akuma-name"), limit: positive.exactOptional() }).readonly(),
|
|
453
|
+
z.strictObject({ of: z.literal("debt"), ...debtReadScope, selection: debtSelection }).readonly(),
|
|
454
|
+
]),
|
|
455
|
+
output: z.union([contractCatalogueSchema, akumaListSchema, archetypeCatalogSchema, debtCatalogueSchema]),
|
|
456
|
+
effect: "read",
|
|
457
|
+
},
|
|
458
|
+
});
|