@astrosheep/keiyaku 4.6.29 → 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 +24 -24
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +44 -168
- package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +61 -231
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +47 -58
- package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +44 -185
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +40 -89
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +56 -116
- package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
- package/build/plugins/codex/skills/keiyaku/SKILL.md +24 -24
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +44 -168
- package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +61 -231
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +47 -58
- package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +44 -185
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +40 -89
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +56 -116
- package/build/plugins/opencode/package.json +1 -1
- package/build/plugins/opencode/skills/keiyaku/SKILL.md +24 -24
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +44 -168
- package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +61 -231
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +47 -58
- package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +44 -185
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +40 -89
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +56 -116
- package/build/plugins/pi/README.md +5 -5
- package/build/plugins/pi/akuma-tools.ts +17 -23
- package/build/skills/keiyaku/SKILL.md +24 -24
- package/build/skills/keiyaku-akuma/SKILL.md +44 -168
- package/build/skills/keiyaku-akuma/references/automation.md +61 -231
- package/build/skills/keiyaku-babysit/SKILL.md +47 -58
- package/build/skills/keiyaku-bind/SKILL.md +44 -185
- package/build/skills/keiyaku-debt/SKILL.md +40 -89
- package/build/skills/keiyaku-workflow/SKILL.md +56 -116
- 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 +162 -122
- 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 +5 -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 -207
- 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 +35 -36
- 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/observe.d.ts +2 -1
- package/build/src/git/observe.js +29 -20
- 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 +466 -95
- package/build/src/protocol/read/status.js +380 -91
- 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 +24 -24
- package/skills/keiyaku-akuma/SKILL.md +44 -168
- package/skills/keiyaku-akuma/references/automation.md +61 -231
- package/skills/keiyaku-babysit/SKILL.md +47 -58
- package/skills/keiyaku-bind/SKILL.md +44 -185
- package/skills/keiyaku-debt/SKILL.md +40 -89
- package/skills/keiyaku-workflow/SKILL.md +56 -116
- 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
|
@@ -1,41 +1,874 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import
|
|
7
|
-
import { type
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
type
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { verbs, type VerbName, type VerbInput, type VerbOutput, type VerbRun, type VerbRunFor, type AskRun } from "./keiyaku-verbs.js";
|
|
2
|
+
import type { AskProgress } from "../akuma/akuma-selection-execution.js";
|
|
3
|
+
import type { SpawnProgress } from "./akuma-creation.js";
|
|
4
|
+
import type { TellResult } from "../akuma/call-initial-tell.js";
|
|
5
|
+
import type { AkumaAskResult } from "../akuma/selection-observation.js";
|
|
6
|
+
import { type WorldRoot } from "../world.js";
|
|
7
|
+
import { type SpawnInput, type ForkInput, type AkumaAskInput, type AkumaTellInput, type AkumaKillInput, type AkumaHistoryInput, type SpawnWaitHead } from "./akumas.js";
|
|
8
|
+
import type { ContractWaitInput } from "./contract-wait.js";
|
|
9
|
+
import type { ContractId } from "../core/facts/types.js";
|
|
10
|
+
import { type ReconcileInput } from "./contract-composition.js";
|
|
11
|
+
import type { DeliveryPreviewInput } from "./contract-outcomes.js";
|
|
12
|
+
import type { AbandonInput, AmendInput, ArcInput, BindInput, DeliverInput, ReviewInput, VerifyInput } from "./contract-types.js";
|
|
13
|
+
import type { ContractCatalogue } from "../protocol/read/status.js";
|
|
14
|
+
import type { AkumaList } from "../akuma/akuma.js";
|
|
15
|
+
import { type ArchetypeCatalog } from "../akuma/archetype.js";
|
|
16
|
+
import type { AkumaCaller } from "../akuma/caller.js";
|
|
17
|
+
import type { AkumaId } from "../akuma/identity.js";
|
|
18
|
+
import type { AddDebtInput, AddDebtDocumentInput } from "../debt/index.js";
|
|
19
|
+
import * as debt from "./keiyaku-debt.js";
|
|
20
|
+
import type { DebtLsInvocation, DebtReadyInvocation, DebtQueryInvocation, DebtUpdateInvocation, DebtCloseInvocation, DebtShowInvocation, DebtContextInvocation } from "./keiyaku-debt.js";
|
|
21
|
+
export type { DebtSelection, DebtReadScope, DebtLsInvocation, DebtReadyInvocation, DebtQueryInvocation, DebtUpdateInvocation, DebtCloseInvocation, DebtShowInvocation, DebtContextInvocation, } from "./keiyaku-debt.js";
|
|
22
|
+
export { KeiyakuArcDocumentError, KeiyakuUsageError } from "./keiyaku-coordinates.js";
|
|
23
|
+
export type KeiyakuAt = Readonly<{
|
|
24
|
+
cwd: string;
|
|
25
|
+
environment: Readonly<Record<string, string | undefined>>;
|
|
26
|
+
home?: string;
|
|
27
|
+
repo?: string;
|
|
13
28
|
}>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
type LsCaller = Readonly<{
|
|
30
|
+
kind: "mine";
|
|
31
|
+
}> | Readonly<{
|
|
32
|
+
kind: "external";
|
|
33
|
+
caller: AkumaCaller;
|
|
34
|
+
}> | Readonly<{
|
|
35
|
+
kind: "akuma";
|
|
36
|
+
akumaId: AkumaId;
|
|
37
|
+
}>;
|
|
38
|
+
type KeiInput = Readonly<{
|
|
39
|
+
of: "kei";
|
|
40
|
+
limit?: number;
|
|
41
|
+
}>;
|
|
42
|
+
type AkumaInput = Readonly<{
|
|
43
|
+
of: "aku";
|
|
44
|
+
limit?: number;
|
|
45
|
+
akumaName?: string;
|
|
46
|
+
caller?: LsCaller;
|
|
47
|
+
}>;
|
|
48
|
+
type NameInput = Readonly<{
|
|
49
|
+
of: "akuma-name";
|
|
50
|
+
limit?: number;
|
|
51
|
+
}>;
|
|
52
|
+
type Selected<T> = T & Readonly<{
|
|
53
|
+
contract?: string;
|
|
54
|
+
}>;
|
|
55
|
+
type BindInvocation = (Omit<Extract<BindInput, {
|
|
56
|
+
markdown: string;
|
|
57
|
+
}>, "after"> & Readonly<{
|
|
58
|
+
after?: readonly string[];
|
|
59
|
+
}>) | (Omit<Extract<BindInput, {
|
|
60
|
+
forkOf: ContractId;
|
|
61
|
+
}>, "forkOf"> & Readonly<{
|
|
62
|
+
forkOf: string;
|
|
63
|
+
}>);
|
|
64
|
+
type AmendInvocation = Omit<AmendInput, "after"> & Readonly<{
|
|
65
|
+
after?: readonly string[];
|
|
66
|
+
}>;
|
|
67
|
+
type SpawnInvocation = Omit<SpawnInput, "body" | "cwd" | "contract" | "home" | "settings" | "caller" | "initiator" | "observe"> & Readonly<{
|
|
68
|
+
prompt?: string;
|
|
69
|
+
contract?: string;
|
|
70
|
+
workdir?: string;
|
|
71
|
+
observe?: Omit<NonNullable<SpawnInput["observe"]>, "admitted"> & Readonly<{
|
|
72
|
+
admitted?: (tell: TellResult, id: AkumaId, head: SpawnWaitHead & Readonly<{
|
|
73
|
+
cwd: string;
|
|
74
|
+
}>) => void | Promise<void>;
|
|
23
75
|
}>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
76
|
+
}>;
|
|
77
|
+
type TellInvocation = Omit<AkumaTellInput, "body" | "repo" | "initiator"> & Readonly<{
|
|
78
|
+
prompt: string;
|
|
79
|
+
}>;
|
|
80
|
+
type AskInvocation<T> = Omit<AkumaAskInput<T>, "body" | "repo" | "initiator"> & Readonly<{
|
|
81
|
+
prompt: string;
|
|
82
|
+
}>;
|
|
83
|
+
type ForkInvocation = Omit<ForkInput, "repo" | "caller" | "initiator">;
|
|
84
|
+
type KillInvocation = Omit<AkumaKillInput, "repo">;
|
|
85
|
+
type HistoryInvocation = Omit<AkumaHistoryInput, "akuma" | "repo"> & Readonly<{
|
|
86
|
+
selector: string;
|
|
87
|
+
full?: boolean;
|
|
88
|
+
}>;
|
|
89
|
+
type WaitInvocation = Omit<ContractWaitInput, "contracts"> & Readonly<{
|
|
90
|
+
selectors: readonly string[];
|
|
91
|
+
}>;
|
|
92
|
+
export declare class Keiyaku {
|
|
93
|
+
#private;
|
|
94
|
+
static readonly verbs: typeof verbs;
|
|
95
|
+
private constructor();
|
|
96
|
+
static at(input: KeiyakuAt): Keiyaku;
|
|
97
|
+
run<T>(name: "ask", input: VerbInput<"ask">, run: AskRun<T>): Promise<AkumaAskResult<T>>;
|
|
98
|
+
run<K extends VerbName>(name: K, input: VerbInput<K>, run?: VerbRunFor<K>): Promise<VerbOutput<K>>;
|
|
99
|
+
bind(input: BindInvocation): Promise<import("./contract-outcomes.js").BindOutcome>;
|
|
100
|
+
amend(input: Selected<AmendInvocation>): Promise<import("./contract-outcomes.js").AmendOutcome>;
|
|
101
|
+
arc(input: Selected<ArcInput>): Promise<import("./contract-outcomes.js").ArcOutcome>;
|
|
102
|
+
deliver(input: Omit<Selected<DeliverInput>, "signal">, run?: VerbRunFor<"deliver">): Promise<import("./contract-outcomes.js").DeliverOutcome>;
|
|
103
|
+
previewDelivery(input: Omit<Selected<DeliveryPreviewInput>, "signal">, run?: VerbRunFor<"deliver.preview">): Promise<import("./contract-outcomes.js").DeliveryPreviewOutcome>;
|
|
104
|
+
verify(input: Omit<Selected<VerifyInput>, "signal">, run?: VerbRunFor<"verify">): Promise<import("./contract-outcomes.js").VerifyOutcome>;
|
|
105
|
+
review(input: Omit<Selected<ReviewInput>, "signal">, run?: VerbRunFor<"review">): Promise<import("./contract-outcomes.js").ReviewOutcome>;
|
|
106
|
+
abandon(input: Selected<AbandonInput>): Promise<import("./contract-outcomes.js").AbandonOutcome>;
|
|
107
|
+
show(input?: Readonly<{
|
|
108
|
+
contract?: string;
|
|
109
|
+
}>): Promise<Readonly<{
|
|
110
|
+
kind: "present";
|
|
111
|
+
guidance: string;
|
|
112
|
+
}> | Readonly<{
|
|
113
|
+
kind: "missing";
|
|
114
|
+
}>>;
|
|
115
|
+
reconcile(input?: ReconcileInput): Promise<Readonly<{
|
|
116
|
+
contractId: ContractId;
|
|
117
|
+
kind: "contract";
|
|
118
|
+
effects?: readonly (Readonly<{
|
|
119
|
+
kind: "worktree-created" | "worktree-removed";
|
|
120
|
+
path: string;
|
|
121
|
+
}> | Readonly<{
|
|
122
|
+
kind: "recovery-snapshot";
|
|
123
|
+
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
124
|
+
}> | Readonly<{
|
|
125
|
+
kind: "target-checkout";
|
|
126
|
+
path: string;
|
|
127
|
+
target: string;
|
|
128
|
+
}> | Readonly<{
|
|
129
|
+
kind: "ref";
|
|
130
|
+
name: string;
|
|
131
|
+
before: string | null;
|
|
132
|
+
after: string | null;
|
|
133
|
+
}> | Readonly<{
|
|
134
|
+
kind: "debt-settled";
|
|
135
|
+
debtId: string;
|
|
136
|
+
}>)[];
|
|
137
|
+
issues?: readonly (Readonly<{
|
|
138
|
+
kind: "worktree-retained";
|
|
139
|
+
path: string;
|
|
140
|
+
diagnostic?: string;
|
|
141
|
+
contractId?: ContractId;
|
|
142
|
+
}> | Readonly<{
|
|
143
|
+
kind: "unsealed-bytes";
|
|
144
|
+
path: string;
|
|
145
|
+
contractId?: ContractId;
|
|
146
|
+
}> | Readonly<{
|
|
147
|
+
kind: "target-checkout-retained";
|
|
148
|
+
path: string;
|
|
149
|
+
target: string;
|
|
150
|
+
diagnostic: string;
|
|
151
|
+
contractId?: ContractId;
|
|
152
|
+
}> | Readonly<{
|
|
153
|
+
kind: "target-workspace-retained";
|
|
154
|
+
targetContractId: ContractId;
|
|
155
|
+
reason: "missing" | "replaced" | "unappointed" | "association" | "attached" | "uncommitted" | "operation";
|
|
156
|
+
contractId?: ContractId;
|
|
157
|
+
}> | Readonly<{
|
|
158
|
+
kind: "worktree-hook-failed";
|
|
159
|
+
phase: "destroy" | "create";
|
|
160
|
+
path: string;
|
|
161
|
+
name: string;
|
|
162
|
+
diagnostic: string;
|
|
163
|
+
contractId?: ContractId;
|
|
164
|
+
}> | Readonly<{
|
|
165
|
+
kind: "reconcile-failed";
|
|
166
|
+
diagnostic: string;
|
|
167
|
+
contractId?: ContractId;
|
|
168
|
+
}> | Readonly<{
|
|
169
|
+
kind: "contract-file-failed";
|
|
170
|
+
path: string;
|
|
171
|
+
diagnostic: string;
|
|
172
|
+
contractId?: ContractId;
|
|
173
|
+
}> | Readonly<{
|
|
174
|
+
kind: "private-state-seat-close";
|
|
175
|
+
diagnostic: string;
|
|
176
|
+
contractId?: ContractId;
|
|
177
|
+
}> | Readonly<{
|
|
178
|
+
kind: "settlement-failed";
|
|
179
|
+
diagnostic: string;
|
|
180
|
+
debtId?: string;
|
|
181
|
+
contractId?: ContractId;
|
|
182
|
+
}>)[];
|
|
183
|
+
}> | Readonly<{
|
|
184
|
+
kind: "missing";
|
|
185
|
+
contractId: ContractId;
|
|
186
|
+
}> | Readonly<{
|
|
187
|
+
kind: "world";
|
|
188
|
+
contracts?: readonly Readonly<{
|
|
189
|
+
contractId: ContractId;
|
|
190
|
+
effects?: readonly (Readonly<{
|
|
191
|
+
kind: "worktree-created" | "worktree-removed";
|
|
192
|
+
path: string;
|
|
193
|
+
}> | Readonly<{
|
|
194
|
+
kind: "recovery-snapshot";
|
|
195
|
+
snapshot: import("../core/facts/types.js").SnapshotId;
|
|
196
|
+
}> | Readonly<{
|
|
197
|
+
kind: "target-checkout";
|
|
198
|
+
path: string;
|
|
199
|
+
target: string;
|
|
200
|
+
}> | Readonly<{
|
|
201
|
+
kind: "ref";
|
|
202
|
+
name: string;
|
|
203
|
+
before: string | null;
|
|
204
|
+
after: string | null;
|
|
205
|
+
}> | Readonly<{
|
|
206
|
+
kind: "debt-settled";
|
|
207
|
+
debtId: string;
|
|
208
|
+
}>)[];
|
|
209
|
+
issues?: readonly (Readonly<{
|
|
210
|
+
kind: "worktree-retained";
|
|
211
|
+
path: string;
|
|
212
|
+
diagnostic?: string;
|
|
213
|
+
contractId?: ContractId;
|
|
214
|
+
}> | Readonly<{
|
|
215
|
+
kind: "unsealed-bytes";
|
|
216
|
+
path: string;
|
|
217
|
+
contractId?: ContractId;
|
|
218
|
+
}> | Readonly<{
|
|
219
|
+
kind: "target-checkout-retained";
|
|
220
|
+
path: string;
|
|
221
|
+
target: string;
|
|
222
|
+
diagnostic: string;
|
|
223
|
+
contractId?: ContractId;
|
|
224
|
+
}> | Readonly<{
|
|
225
|
+
kind: "target-workspace-retained";
|
|
226
|
+
targetContractId: ContractId;
|
|
227
|
+
reason: "missing" | "replaced" | "unappointed" | "association" | "attached" | "uncommitted" | "operation";
|
|
228
|
+
contractId?: ContractId;
|
|
229
|
+
}> | Readonly<{
|
|
230
|
+
kind: "worktree-hook-failed";
|
|
231
|
+
phase: "destroy" | "create";
|
|
232
|
+
path: string;
|
|
233
|
+
name: string;
|
|
234
|
+
diagnostic: string;
|
|
235
|
+
contractId?: ContractId;
|
|
236
|
+
}> | Readonly<{
|
|
237
|
+
kind: "reconcile-failed";
|
|
238
|
+
diagnostic: string;
|
|
239
|
+
contractId?: ContractId;
|
|
240
|
+
}> | Readonly<{
|
|
241
|
+
kind: "contract-file-failed";
|
|
242
|
+
path: string;
|
|
243
|
+
diagnostic: string;
|
|
244
|
+
contractId?: ContractId;
|
|
245
|
+
}> | Readonly<{
|
|
246
|
+
kind: "private-state-seat-close";
|
|
247
|
+
diagnostic: string;
|
|
248
|
+
contractId?: ContractId;
|
|
249
|
+
}> | Readonly<{
|
|
250
|
+
kind: "settlement-failed";
|
|
251
|
+
diagnostic: string;
|
|
252
|
+
debtId?: string;
|
|
253
|
+
contractId?: ContractId;
|
|
254
|
+
}>)[];
|
|
255
|
+
}>[];
|
|
256
|
+
}> | Readonly<{
|
|
257
|
+
kind: "world-observation-failed";
|
|
258
|
+
diagnostic: string;
|
|
259
|
+
}>>;
|
|
260
|
+
spawn({ schema, ...input }: Omit<SpawnInvocation, "signal" | "observe">, run?: VerbRun<SpawnProgress>): Promise<import("./akuma-creation.js").SpawnResult>;
|
|
261
|
+
fork(input: ForkInvocation): Promise<Readonly<{
|
|
262
|
+
kind: "forked";
|
|
263
|
+
childAkumaId: AkumaId;
|
|
264
|
+
dispatchFailure?: Readonly<{
|
|
265
|
+
kind: "authority-corruption" | "infrastructure";
|
|
266
|
+
diagnostic: string;
|
|
267
|
+
}> | Readonly<{
|
|
268
|
+
kind: "conflict";
|
|
269
|
+
currentContractId: ContractId;
|
|
270
|
+
}> | Readonly<{
|
|
271
|
+
kind: "publication-failed";
|
|
272
|
+
diagnostic: string;
|
|
273
|
+
}>;
|
|
274
|
+
dispatchWarning?: string;
|
|
275
|
+
parentAkumaId?: AkumaId;
|
|
276
|
+
}> | Readonly<{
|
|
277
|
+
kind: "provider-cannot-fork";
|
|
278
|
+
parentAkumaId?: AkumaId;
|
|
279
|
+
}> | Readonly<{
|
|
280
|
+
kind: "unknown-history";
|
|
281
|
+
parentAkumaId?: AkumaId;
|
|
282
|
+
}> | Readonly<{
|
|
283
|
+
kind: "fork-failed";
|
|
284
|
+
diagnostic: string;
|
|
285
|
+
parentAkumaId?: AkumaId;
|
|
286
|
+
}> | Readonly<{
|
|
287
|
+
kind: "provider-forked-local-birth-failed";
|
|
288
|
+
session: Readonly<{
|
|
289
|
+
kind: "file";
|
|
290
|
+
sessionFile: string;
|
|
291
|
+
}> | Readonly<{
|
|
292
|
+
kind: "session";
|
|
293
|
+
sessionId: string;
|
|
294
|
+
}>;
|
|
295
|
+
diagnostic: string;
|
|
296
|
+
parentAkumaId?: AkumaId;
|
|
297
|
+
}>>;
|
|
298
|
+
tell(input: Omit<TellInvocation, "signal">, run?: VerbRun): Promise<Readonly<{
|
|
299
|
+
akumaId: AkumaId;
|
|
300
|
+
tellId: string;
|
|
301
|
+
wake?: Readonly<{
|
|
302
|
+
kind: "failed";
|
|
303
|
+
diagnostic: string;
|
|
304
|
+
logPath?: string;
|
|
305
|
+
}> | Readonly<{
|
|
306
|
+
kind: "pending";
|
|
307
|
+
}>;
|
|
308
|
+
interrupt?: Readonly<{
|
|
309
|
+
kind: "interrupted";
|
|
310
|
+
bodySequence: number;
|
|
311
|
+
}> | Readonly<{
|
|
312
|
+
kind: "unavailable";
|
|
313
|
+
bodySequence: number;
|
|
314
|
+
evidence: "hung" | "untidy";
|
|
315
|
+
}>;
|
|
316
|
+
}>>;
|
|
317
|
+
ask<T = string>({ schema, ...input }: Omit<AskInvocation<T>, "signal" | "observe">, run?: VerbRun<AskProgress>): Promise<AkumaAskResult<T>>;
|
|
318
|
+
kill(input: Omit<KillInvocation, "signal">, run?: VerbRun): Promise<Readonly<{
|
|
319
|
+
results: readonly Readonly<{
|
|
320
|
+
id: AkumaId;
|
|
321
|
+
outcome: "killed" | "hung" | "unavailable" | "untidy" | "already-killed" | "already-stopped";
|
|
322
|
+
}>[];
|
|
323
|
+
}>>;
|
|
324
|
+
wait(input: Omit<WaitInvocation, "signal">, run?: VerbRun): Promise<Readonly<{
|
|
325
|
+
kind: "akuma";
|
|
326
|
+
reason: "completed" | "deadline";
|
|
327
|
+
results: readonly (Readonly<{
|
|
328
|
+
kind: "observed";
|
|
329
|
+
id: AkumaId;
|
|
330
|
+
life: "killed" | "hung" | "untidy" | "running" | "asleep" | "stranded";
|
|
331
|
+
pending?: true;
|
|
332
|
+
outcome?: Readonly<{
|
|
333
|
+
kind: "answered";
|
|
334
|
+
historyId: `turn/${number}`;
|
|
335
|
+
answer: string;
|
|
336
|
+
}> | Readonly<{
|
|
337
|
+
kind: "failed";
|
|
338
|
+
historyId: `turn/${number}`;
|
|
339
|
+
diagnostic: string;
|
|
340
|
+
}> | Readonly<{
|
|
341
|
+
kind: "canceled";
|
|
342
|
+
historyId: `turn/${number}`;
|
|
343
|
+
}>;
|
|
344
|
+
strandedReason?: "resume-unsupported";
|
|
345
|
+
}> | Readonly<{
|
|
346
|
+
kind: "unobserved";
|
|
347
|
+
id: AkumaId;
|
|
348
|
+
diagnostic: string;
|
|
349
|
+
}> | Readonly<{
|
|
350
|
+
kind: "missing";
|
|
351
|
+
id: AkumaId;
|
|
352
|
+
}>)[];
|
|
353
|
+
}> | Readonly<{
|
|
354
|
+
kind: "contract";
|
|
355
|
+
reason: "changed" | "terminal" | "missing" | "deadline";
|
|
356
|
+
contracts: readonly Readonly<{
|
|
357
|
+
id: ContractId;
|
|
358
|
+
changed?: true;
|
|
359
|
+
presence?: "unknown" | "missing";
|
|
360
|
+
terminal?: "claimed" | "abandoned";
|
|
361
|
+
}>[];
|
|
362
|
+
}>>;
|
|
363
|
+
history(input: HistoryInvocation): Promise<Readonly<{
|
|
364
|
+
kind: "contract";
|
|
365
|
+
contractId: ContractId;
|
|
366
|
+
events: readonly (Readonly<{
|
|
367
|
+
kind: "bind";
|
|
368
|
+
start: import("../core/facts/types.js").SnapshotId;
|
|
369
|
+
id: import("../core/facts/types.js").EntryUlid;
|
|
370
|
+
at: string;
|
|
371
|
+
target?: string | Readonly<{
|
|
372
|
+
kind: "contract";
|
|
373
|
+
contractId: ContractId;
|
|
374
|
+
}>;
|
|
375
|
+
gates?: readonly import("../core/facts/types.js").Gate[];
|
|
376
|
+
after?: readonly ContractId[];
|
|
377
|
+
document?: string;
|
|
378
|
+
targetIncarnation?: Readonly<{
|
|
379
|
+
id: string;
|
|
380
|
+
identity: string;
|
|
381
|
+
}>;
|
|
382
|
+
actor?: string;
|
|
383
|
+
}> | Readonly<{
|
|
384
|
+
kind: "amend";
|
|
385
|
+
id: import("../core/facts/types.js").EntryUlid;
|
|
386
|
+
at: string;
|
|
387
|
+
changedSections?: readonly string[];
|
|
388
|
+
gates?: readonly import("../core/facts/types.js").Gate[];
|
|
389
|
+
after?: readonly ContractId[];
|
|
390
|
+
document?: string;
|
|
391
|
+
actor?: string;
|
|
392
|
+
}> | Readonly<{
|
|
393
|
+
kind: "deliver";
|
|
394
|
+
candidate: import("../core/facts/types.js").SnapshotId;
|
|
395
|
+
integration: import("../core/facts/types.js").SnapshotId;
|
|
396
|
+
contentId: string;
|
|
397
|
+
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
398
|
+
id: import("../core/facts/types.js").EntryUlid;
|
|
399
|
+
at: string;
|
|
400
|
+
note?: string;
|
|
401
|
+
requireBranchesToBeUpToDate?: boolean;
|
|
402
|
+
actor?: string;
|
|
403
|
+
}> | Readonly<{
|
|
404
|
+
kind: "reintegrated";
|
|
405
|
+
predecessor: import("../core/facts/types.js").SnapshotId;
|
|
406
|
+
integration: import("../core/facts/types.js").SnapshotId;
|
|
407
|
+
id: import("../core/facts/types.js").EntryUlid;
|
|
408
|
+
at: string;
|
|
409
|
+
actor?: string;
|
|
410
|
+
}> | Readonly<{
|
|
411
|
+
kind: "attestation";
|
|
412
|
+
gate: import("../core/facts/types.js").Gate;
|
|
413
|
+
requirement: import("../core/facts/types.js").RequirementId;
|
|
414
|
+
verdict: "satisfied" | "unsatisfied";
|
|
415
|
+
subject: string;
|
|
416
|
+
id: import("../core/facts/types.js").EntryUlid;
|
|
417
|
+
at: string;
|
|
418
|
+
summary?: string;
|
|
419
|
+
actor?: string;
|
|
420
|
+
}> | Readonly<{
|
|
421
|
+
kind: "claimed";
|
|
422
|
+
deliveryId: import("../core/facts/types.js").EntryUlid;
|
|
423
|
+
id: import("../core/facts/types.js").EntryUlid;
|
|
424
|
+
at: string;
|
|
425
|
+
actor?: string;
|
|
426
|
+
}> | Readonly<{
|
|
427
|
+
kind: "arc";
|
|
428
|
+
chapter: number;
|
|
429
|
+
title: string;
|
|
430
|
+
id: import("../core/facts/types.js").EntryUlid;
|
|
431
|
+
at: string;
|
|
432
|
+
body?: string;
|
|
433
|
+
actor?: string;
|
|
434
|
+
}> | Readonly<{
|
|
435
|
+
kind: "abandoned";
|
|
436
|
+
id: import("../core/facts/types.js").EntryUlid;
|
|
437
|
+
at: string;
|
|
438
|
+
note?: string;
|
|
439
|
+
actor?: string;
|
|
440
|
+
}> | Readonly<{
|
|
441
|
+
kind: "dispatch";
|
|
442
|
+
at: string;
|
|
443
|
+
akumaId: AkumaId;
|
|
444
|
+
}>)[];
|
|
445
|
+
dispatches?: Readonly<{
|
|
446
|
+
kind: "unavailable";
|
|
447
|
+
category: "internal" | "authority-corruption";
|
|
448
|
+
diagnostic: string;
|
|
449
|
+
}>;
|
|
450
|
+
}> | Readonly<{
|
|
451
|
+
kind: "contract-missing";
|
|
452
|
+
contractId: ContractId;
|
|
453
|
+
}> | Readonly<{
|
|
454
|
+
events: readonly (Readonly<{
|
|
455
|
+
kind: "tell";
|
|
456
|
+
sequence: number;
|
|
457
|
+
at: string;
|
|
458
|
+
tellId: string;
|
|
459
|
+
text: string;
|
|
460
|
+
state: "pending" | "told";
|
|
461
|
+
deliveries: readonly Readonly<{
|
|
462
|
+
deliveredAt: string;
|
|
463
|
+
route: "launch" | "live";
|
|
464
|
+
turnSequence: number;
|
|
465
|
+
}>[];
|
|
466
|
+
}> | Readonly<{
|
|
467
|
+
kind: "report";
|
|
468
|
+
sequence: number;
|
|
469
|
+
bodySequence: number;
|
|
470
|
+
turnSequence: number;
|
|
471
|
+
text: string;
|
|
472
|
+
at: string;
|
|
473
|
+
}> | Readonly<{
|
|
474
|
+
kind: "call";
|
|
475
|
+
sequence: number;
|
|
476
|
+
turnSequence: number;
|
|
477
|
+
at: string;
|
|
478
|
+
text: string;
|
|
479
|
+
}> | Readonly<{
|
|
480
|
+
kind: "thought" | "note" | "said";
|
|
481
|
+
sequence: number;
|
|
482
|
+
turnSequence: number;
|
|
483
|
+
at: string;
|
|
484
|
+
text: string;
|
|
485
|
+
truncated?: true;
|
|
486
|
+
}> | Readonly<{
|
|
487
|
+
kind: "turn";
|
|
488
|
+
sequence: number;
|
|
489
|
+
bodySequence: number;
|
|
490
|
+
at: string;
|
|
491
|
+
}> | Readonly<{
|
|
492
|
+
kind: "outcome";
|
|
493
|
+
sequence: number;
|
|
494
|
+
turnSequence: number;
|
|
495
|
+
at: string;
|
|
496
|
+
outcome: Readonly<{
|
|
497
|
+
kind: "answered";
|
|
498
|
+
answer: string;
|
|
499
|
+
foldedSaidSequence?: number;
|
|
500
|
+
}> | Readonly<{
|
|
501
|
+
kind: "failed";
|
|
502
|
+
diagnostic: string;
|
|
503
|
+
}> | Readonly<{
|
|
504
|
+
kind: "canceled";
|
|
505
|
+
}>;
|
|
506
|
+
}> | Readonly<{
|
|
507
|
+
kind: "tool";
|
|
508
|
+
sequence: number;
|
|
509
|
+
turnSequence: number;
|
|
510
|
+
at: string;
|
|
511
|
+
name: string;
|
|
512
|
+
call: Readonly<{
|
|
513
|
+
kind: "run";
|
|
514
|
+
command: string;
|
|
515
|
+
}> | Readonly<{
|
|
516
|
+
kind: "read";
|
|
517
|
+
path: string;
|
|
518
|
+
offset?: number;
|
|
519
|
+
limit?: number;
|
|
520
|
+
}> | Readonly<{
|
|
521
|
+
kind: "search";
|
|
522
|
+
query: string;
|
|
523
|
+
scope?: "content" | "files" | "web";
|
|
524
|
+
path?: string;
|
|
525
|
+
glob?: string;
|
|
526
|
+
}> | Readonly<{
|
|
527
|
+
kind: "fileChange";
|
|
528
|
+
changes: readonly Readonly<{
|
|
529
|
+
op: "add" | "update" | "delete" | "unspecified";
|
|
530
|
+
path: string;
|
|
531
|
+
diffstat?: Readonly<{
|
|
532
|
+
added: number;
|
|
533
|
+
removed: number;
|
|
534
|
+
}>;
|
|
535
|
+
patch?: string;
|
|
536
|
+
}>[];
|
|
537
|
+
}> | Readonly<{
|
|
538
|
+
kind: "other";
|
|
539
|
+
input?: Readonly<{
|
|
540
|
+
json: string;
|
|
541
|
+
truncated?: true;
|
|
542
|
+
}>;
|
|
543
|
+
}>;
|
|
544
|
+
toolId: string;
|
|
545
|
+
state: "active" | "unsettled" | Readonly<{
|
|
546
|
+
status: "error" | "ok";
|
|
547
|
+
message?: string;
|
|
548
|
+
output?: string;
|
|
549
|
+
exitCode?: number;
|
|
550
|
+
}>;
|
|
551
|
+
durationMs?: number;
|
|
552
|
+
truncated?: true;
|
|
553
|
+
}>)[];
|
|
554
|
+
akumaId: AkumaId;
|
|
555
|
+
kind: "akuma";
|
|
556
|
+
omitted?: number;
|
|
557
|
+
retentionLost?: true;
|
|
558
|
+
lowestRetainedSequence?: number;
|
|
559
|
+
highestSequence?: number;
|
|
560
|
+
}> | Readonly<{
|
|
561
|
+
akumaId: AkumaId;
|
|
562
|
+
kind: "akuma-exact";
|
|
563
|
+
at: string;
|
|
564
|
+
sequence: number;
|
|
565
|
+
outcome: Readonly<{
|
|
566
|
+
kind: "answered";
|
|
567
|
+
answer: string;
|
|
568
|
+
foldedSaidSequence?: number;
|
|
569
|
+
}> | Readonly<{
|
|
570
|
+
kind: "failed";
|
|
571
|
+
diagnostic: string;
|
|
572
|
+
}> | Readonly<{
|
|
573
|
+
kind: "canceled";
|
|
574
|
+
}>;
|
|
575
|
+
turnSequence: number;
|
|
576
|
+
}> | Readonly<{
|
|
577
|
+
akumaId: AkumaId;
|
|
578
|
+
kind: "akuma-report";
|
|
579
|
+
at: string;
|
|
580
|
+
sequence: number;
|
|
581
|
+
text: string;
|
|
582
|
+
bodySequence: number;
|
|
583
|
+
turnSequence: number;
|
|
584
|
+
}> | Readonly<{
|
|
585
|
+
akumaId: AkumaId;
|
|
586
|
+
kind: "akuma-unknown-history";
|
|
587
|
+
}> | Readonly<{
|
|
588
|
+
answer: string;
|
|
589
|
+
akumaId: AkumaId;
|
|
590
|
+
kind: "akuma-last";
|
|
591
|
+
}> | Readonly<{
|
|
592
|
+
akumaId: AkumaId;
|
|
593
|
+
kind: "akuma-no-answer";
|
|
594
|
+
}>>;
|
|
595
|
+
report(input: Readonly<{
|
|
596
|
+
text: string;
|
|
597
|
+
}>, run?: VerbRun): Promise<import("../akuma/akuma-instance.js").AkumaReportResult>;
|
|
598
|
+
ls(input: KeiInput): Promise<ContractCatalogue>;
|
|
599
|
+
ls(input: AkumaInput): Promise<AkumaList>;
|
|
600
|
+
ls(input: NameInput): Promise<ArchetypeCatalog>;
|
|
601
|
+
ls(input: DebtLsInvocation): ReturnType<typeof debt.debtList>;
|
|
602
|
+
debtAdd({ signal, ...input }: AddDebtInput): Promise<Readonly<{
|
|
603
|
+
kind: "refused";
|
|
604
|
+
reason: "invalid-graph";
|
|
605
|
+
diagnostic: string;
|
|
606
|
+
}> | Readonly<{
|
|
607
|
+
kind: "refused";
|
|
608
|
+
reason: "invalid-namespace-context";
|
|
609
|
+
path?: string;
|
|
610
|
+
}> | Readonly<{
|
|
611
|
+
kind: "retry";
|
|
612
|
+
reason: "busy" | "concurrent-modification";
|
|
613
|
+
}> | Readonly<{
|
|
614
|
+
kind: "accepted";
|
|
615
|
+
id: `debt/${string}`;
|
|
616
|
+
warning?: string;
|
|
617
|
+
}>>;
|
|
618
|
+
debtAddDocument({ signal, ...input }: AddDebtDocumentInput): Promise<Readonly<{
|
|
619
|
+
kind: "refused";
|
|
620
|
+
reason: "invalid-graph";
|
|
621
|
+
diagnostic: string;
|
|
622
|
+
}> | Readonly<{
|
|
623
|
+
kind: "refused";
|
|
624
|
+
reason: "invalid-namespace-context";
|
|
625
|
+
path?: string;
|
|
626
|
+
}> | Readonly<{
|
|
627
|
+
kind: "retry";
|
|
628
|
+
reason: "busy" | "concurrent-modification";
|
|
629
|
+
}> | Readonly<{
|
|
630
|
+
kind: "accepted";
|
|
631
|
+
id: `debt/${string}`;
|
|
632
|
+
warning?: string;
|
|
633
|
+
}>>;
|
|
634
|
+
debtUpdate({ signal, ...input }: DebtUpdateInvocation): Promise<Readonly<{
|
|
635
|
+
kind: "refused";
|
|
636
|
+
reason: "debt-missing";
|
|
637
|
+
}> | Readonly<{
|
|
638
|
+
kind: "refused";
|
|
639
|
+
reason: "invalid-graph";
|
|
640
|
+
diagnostic: string;
|
|
641
|
+
}> | Readonly<{
|
|
642
|
+
kind: "refused";
|
|
643
|
+
reason: "relation-owned-by-other";
|
|
644
|
+
related: `debt/${string}`;
|
|
645
|
+
}> | Readonly<{
|
|
646
|
+
kind: "retry";
|
|
647
|
+
reason: "busy" | "concurrent-modification";
|
|
648
|
+
}> | Readonly<{
|
|
649
|
+
kind: "accepted";
|
|
650
|
+
changes?: readonly ("note" | "body" | "parent" | "title" | "priority" | "needs" | "supersedes" | "relates")[];
|
|
651
|
+
warning?: string;
|
|
652
|
+
}>>;
|
|
653
|
+
debtShow(input: DebtShowInvocation): Promise<Readonly<{
|
|
654
|
+
kind: "absent";
|
|
655
|
+
}> | Readonly<{
|
|
656
|
+
kind: "present";
|
|
657
|
+
items: readonly (Readonly<{
|
|
658
|
+
title: string;
|
|
659
|
+
state: "open" | "drop" | "done";
|
|
660
|
+
priority: 0 | 1 | 2 | 3;
|
|
661
|
+
createdAt: string;
|
|
662
|
+
updatedAt: string;
|
|
663
|
+
kind: "found";
|
|
664
|
+
body?: string;
|
|
665
|
+
note?: string;
|
|
666
|
+
createdBy?: string;
|
|
667
|
+
needs?: readonly Readonly<{
|
|
668
|
+
id: `debt/${string}`;
|
|
669
|
+
state: "open" | "drop" | "done" | "missing";
|
|
670
|
+
}>[];
|
|
671
|
+
parent?: Readonly<{
|
|
672
|
+
id: `debt/${string}`;
|
|
673
|
+
state: "open" | "drop" | "done" | "missing";
|
|
674
|
+
}>;
|
|
675
|
+
supersedes?: readonly Readonly<{
|
|
676
|
+
id: `debt/${string}`;
|
|
677
|
+
state: "open" | "drop" | "done" | "missing";
|
|
678
|
+
}>[];
|
|
679
|
+
relates?: readonly Readonly<{
|
|
680
|
+
id: `debt/${string}`;
|
|
681
|
+
state: "open" | "drop" | "done" | "missing";
|
|
682
|
+
}>[];
|
|
683
|
+
}> | Readonly<{
|
|
684
|
+
kind: "missing";
|
|
685
|
+
}>)[];
|
|
686
|
+
}>>;
|
|
687
|
+
debtDone({ signal, ...input }: DebtCloseInvocation): Promise<Readonly<{
|
|
688
|
+
items: readonly (Readonly<{
|
|
689
|
+
kind: "refused";
|
|
690
|
+
reason: "debt-missing";
|
|
691
|
+
}> | Readonly<{
|
|
692
|
+
kind: "refused";
|
|
693
|
+
reason: "invalid-lifecycle-transition";
|
|
694
|
+
state: "drop" | "done";
|
|
695
|
+
}> | Readonly<{
|
|
696
|
+
kind: "retry";
|
|
697
|
+
reason: "busy" | "concurrent-modification";
|
|
698
|
+
}> | Readonly<{
|
|
699
|
+
kind: "accepted";
|
|
700
|
+
warning?: string;
|
|
701
|
+
}>)[];
|
|
702
|
+
}>>;
|
|
703
|
+
debtDrop({ signal, ...input }: DebtCloseInvocation): Promise<Readonly<{
|
|
704
|
+
items: readonly (Readonly<{
|
|
705
|
+
kind: "refused";
|
|
706
|
+
reason: "debt-missing";
|
|
707
|
+
}> | Readonly<{
|
|
708
|
+
kind: "refused";
|
|
709
|
+
reason: "invalid-lifecycle-transition";
|
|
710
|
+
state: "drop" | "done";
|
|
711
|
+
}> | Readonly<{
|
|
712
|
+
kind: "retry";
|
|
713
|
+
reason: "busy" | "concurrent-modification";
|
|
714
|
+
}> | Readonly<{
|
|
715
|
+
kind: "accepted";
|
|
716
|
+
warning?: string;
|
|
717
|
+
}>)[];
|
|
718
|
+
}>>;
|
|
719
|
+
debtReady(input?: DebtReadyInvocation): Promise<import("../debt/index.js").DebtReadyList>;
|
|
720
|
+
debtBlocked(input?: DebtReadyInvocation): Promise<import("../debt/index.js").BlockedDebtList>;
|
|
721
|
+
debtQuery(input?: DebtQueryInvocation): Promise<import("../debt/index.js").DebtQueryResult>;
|
|
722
|
+
debtTree(input: Readonly<{
|
|
723
|
+
id: string;
|
|
724
|
+
}>): Promise<Readonly<{
|
|
725
|
+
kind: "absent";
|
|
726
|
+
}> | Readonly<{
|
|
727
|
+
title: string;
|
|
728
|
+
state: "open" | "drop" | "done";
|
|
729
|
+
priority: 0 | 1 | 2 | 3;
|
|
730
|
+
kind: "present";
|
|
731
|
+
children?: readonly import("../debt/board.js").DebtTreeNode[];
|
|
732
|
+
}> | Readonly<{
|
|
733
|
+
kind: "missing";
|
|
734
|
+
}>>;
|
|
735
|
+
debtDoctor(): Promise<Readonly<{
|
|
736
|
+
kind: "absent";
|
|
737
|
+
}> | Readonly<{
|
|
738
|
+
kind: "present";
|
|
739
|
+
issues?: readonly (Readonly<{
|
|
740
|
+
kind: "missing-target";
|
|
741
|
+
debtId: `debt/${string}`;
|
|
742
|
+
relation: "parent" | "needs" | "supersedes" | "relates";
|
|
743
|
+
target: `debt/${string}`;
|
|
744
|
+
}> | Readonly<{
|
|
745
|
+
kind: "self-relation";
|
|
746
|
+
debtId: `debt/${string}`;
|
|
747
|
+
relation: "parent" | "needs" | "supersedes" | "relates";
|
|
748
|
+
}> | Readonly<{
|
|
749
|
+
kind: "cycle";
|
|
750
|
+
relation: "parent" | "needs" | "supersedes";
|
|
751
|
+
debts: readonly `debt/${string}`[];
|
|
752
|
+
}>)[];
|
|
753
|
+
}>>;
|
|
754
|
+
debtContext(input?: DebtContextInvocation): Promise<Readonly<{
|
|
755
|
+
kind: "refused";
|
|
756
|
+
path: string;
|
|
757
|
+
}> | Readonly<{
|
|
758
|
+
kind: "present";
|
|
759
|
+
source: "default-root";
|
|
760
|
+
}> | Readonly<{
|
|
761
|
+
kind: "present";
|
|
762
|
+
source: "contract-installed" | "local-override";
|
|
763
|
+
namespace?: string;
|
|
764
|
+
}>>;
|
|
765
|
+
status(input?: VerbInput<"status">): Promise<import("./keiyaku-status.js").StatusResult>;
|
|
766
|
+
region(input?: VerbInput<"region">): Promise<Readonly<{
|
|
767
|
+
kind: "failed";
|
|
768
|
+
diagnostic: string;
|
|
769
|
+
}> | Readonly<{
|
|
770
|
+
kind: "present";
|
|
771
|
+
declarations?: readonly Readonly<{
|
|
772
|
+
id: ContractId;
|
|
773
|
+
patterns: readonly string[];
|
|
774
|
+
}>[];
|
|
775
|
+
}> | Readonly<{
|
|
776
|
+
kind: "present";
|
|
777
|
+
id: ContractId;
|
|
778
|
+
patterns: readonly string[];
|
|
779
|
+
overlaps?: readonly Readonly<{
|
|
780
|
+
contractId: ContractId;
|
|
781
|
+
patterns: readonly Readonly<{
|
|
782
|
+
mine: string;
|
|
783
|
+
theirs: string;
|
|
784
|
+
relation?: "mine-within-theirs" | "theirs-within-mine" | "intersect";
|
|
785
|
+
}>[];
|
|
786
|
+
}>[];
|
|
787
|
+
}> | Readonly<{
|
|
788
|
+
kind: "present";
|
|
789
|
+
overlaps?: readonly Readonly<{
|
|
790
|
+
contractId: ContractId;
|
|
791
|
+
patterns: readonly Readonly<{
|
|
792
|
+
mine: string;
|
|
793
|
+
theirs: string;
|
|
794
|
+
relation?: "mine-within-theirs" | "theirs-within-mine" | "intersect";
|
|
795
|
+
}>[];
|
|
796
|
+
}>[];
|
|
797
|
+
}> | Readonly<{
|
|
798
|
+
kind: "contract-missing";
|
|
799
|
+
id: ContractId;
|
|
800
|
+
}> | Readonly<{
|
|
801
|
+
kind: "contract-terminal";
|
|
802
|
+
id: ContractId;
|
|
803
|
+
}>>;
|
|
804
|
+
whoami(): Promise<Readonly<{
|
|
805
|
+
self: Readonly<{
|
|
806
|
+
kind: "akuma";
|
|
807
|
+
world: WorldRoot;
|
|
808
|
+
akumaId: AkumaId;
|
|
809
|
+
}> | Readonly<{
|
|
810
|
+
kind: "external";
|
|
811
|
+
id: string;
|
|
812
|
+
}> | Readonly<{
|
|
813
|
+
kind: "none";
|
|
814
|
+
}> | Readonly<{
|
|
815
|
+
kind: "invalid";
|
|
816
|
+
diagnostic: string;
|
|
817
|
+
}>;
|
|
818
|
+
world?: WorldRoot;
|
|
819
|
+
initiator?: string | Readonly<{
|
|
820
|
+
kind: "unavailable";
|
|
821
|
+
diagnostic: string;
|
|
822
|
+
}>;
|
|
823
|
+
contextContract?: ContractId | Readonly<{
|
|
824
|
+
kind: "unavailable";
|
|
825
|
+
diagnostic: string;
|
|
826
|
+
}> | Readonly<{
|
|
827
|
+
kind: "ambiguous";
|
|
828
|
+
}>;
|
|
829
|
+
aliases?: readonly string[];
|
|
830
|
+
workdir?: string;
|
|
831
|
+
provider?: string;
|
|
832
|
+
model?: string;
|
|
833
|
+
dispatchContract?: ContractId;
|
|
834
|
+
birthCaller?: Readonly<{
|
|
835
|
+
kind: "akuma";
|
|
836
|
+
world: WorldRoot;
|
|
837
|
+
akumaId: AkumaId;
|
|
838
|
+
}> | Readonly<{
|
|
839
|
+
kind: "external";
|
|
840
|
+
id: string;
|
|
841
|
+
}> | Readonly<{
|
|
842
|
+
kind: "unknown";
|
|
843
|
+
}>;
|
|
844
|
+
forkOrigin?: AkumaId;
|
|
845
|
+
profileUnavailable?: string;
|
|
846
|
+
}>>;
|
|
847
|
+
settings(): Promise<Readonly<{
|
|
848
|
+
scopes: Readonly<{
|
|
849
|
+
project: import("../settings.js").SettingsScopeState;
|
|
850
|
+
user: import("../settings.js").SettingsScopeState;
|
|
851
|
+
}>;
|
|
852
|
+
namespaces?: Readonly<Record<string, import("../settings.js").SettingsNamespaceView>>;
|
|
853
|
+
namespace(name: string): import("../settings.js").SettingsNamespaceView;
|
|
854
|
+
}>>;
|
|
855
|
+
nuke(input?: Readonly<{
|
|
856
|
+
confirm?: string;
|
|
857
|
+
}>): Promise<Readonly<{
|
|
858
|
+
kind: "accepted";
|
|
859
|
+
refsRemoved?: number;
|
|
860
|
+
worktreesRemoved?: number;
|
|
861
|
+
debtsRemoved?: number;
|
|
862
|
+
issues?: readonly (Readonly<{
|
|
863
|
+
kind: "reset-owner-stopped";
|
|
864
|
+
owner: "world" | "debt" | "akuma" | "git";
|
|
865
|
+
diagnostic: string;
|
|
866
|
+
}> | Readonly<{
|
|
867
|
+
kind: "reset-residue";
|
|
868
|
+
diagnostic: string;
|
|
869
|
+
}>)[];
|
|
870
|
+
}> | Readonly<{
|
|
871
|
+
kind: "refused";
|
|
872
|
+
world: WorldRoot;
|
|
873
|
+
}>>;
|
|
36
874
|
}
|
|
37
|
-
/** Internal constructor capability; callers select a Contract through Keiyaku.with. */
|
|
38
|
-
export declare function createKeiyakuHandle(id: ContractId, scope: RepositoryScope, composition: LocalContractCompositionCapture): Keiyaku;
|
|
39
|
-
/** Internal package composition capability; not exported from the package root. */
|
|
40
|
-
export declare function seatForKeiyaku(value: unknown): HandleSeat | null;
|
|
41
|
-
export {};
|