@astrosheep/keiyaku 4.6.31 → 4.6.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -17
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +16 -11
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +5 -3
- package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +4 -3
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +17 -17
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +16 -11
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +5 -3
- package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +4 -3
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +17 -17
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +16 -11
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +5 -3
- package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +4 -3
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +17 -17
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/plugins/pi/README.md +16 -18
- package/build/plugins/pi/akuma-tools.ts +31 -38
- package/build/plugins/pi/keiyaku.ts +15 -4
- package/build/skills/keiyaku-akuma/SKILL.md +16 -11
- package/build/skills/keiyaku-babysit/SKILL.md +5 -3
- package/build/skills/keiyaku-bind/SKILL.md +4 -3
- package/build/skills/keiyaku-debt/SKILL.md +17 -17
- package/build/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/src/akuma/akuma-call.d.ts +3 -5
- package/build/src/akuma/akuma-call.js +7 -10
- package/build/src/akuma/akuma-errors.d.ts +7 -4
- package/build/src/akuma/akuma-errors.js +16 -12
- package/build/src/akuma/akuma-instance.d.ts +39 -303
- package/build/src/akuma/akuma-instance.js +48 -48
- package/build/src/akuma/akuma-observe.d.ts +5 -4
- package/build/src/akuma/akuma-observe.js +1 -7
- package/build/src/akuma/akuma-owner.d.ts +14 -6
- package/build/src/akuma/akuma-owner.js +33 -27
- package/build/src/akuma/akuma-selection-execution.d.ts +22 -19
- package/build/src/akuma/akuma-selection-execution.js +71 -124
- package/build/src/akuma/akuma-wait.d.ts +3 -3
- package/build/src/akuma/akuma.d.ts +47 -384
- package/build/src/akuma/akuma.js +8 -58
- package/build/src/akuma/archetype.d.ts +16 -19
- package/build/src/akuma/archetype.js +48 -49
- package/build/src/akuma/body.js +31 -26
- package/build/src/akuma/call-initial-tell.d.ts +4 -1
- package/build/src/akuma/call-initial-tell.js +9 -1
- package/build/src/akuma/call-input.d.ts +8 -1
- package/build/src/akuma/call-input.js +27 -18
- package/build/src/akuma/caller.js +2 -1
- package/build/src/akuma/detached-body.js +1 -1
- package/build/src/akuma/heart/facts.d.ts +5 -4
- package/build/src/akuma/heart/facts.js +5 -5
- package/build/src/akuma/heart/soul.js +20 -4
- package/build/src/akuma/identity.d.ts +1 -1
- package/build/src/akuma/identity.js +9 -4
- package/build/src/akuma/index.d.ts +6 -7
- package/build/src/akuma/index.js +2 -3
- package/build/src/akuma/projection.d.ts +3 -0
- package/build/src/akuma/provider-recipe.js +3 -2
- package/build/src/akuma/providers/acp/config.js +11 -10
- package/build/src/akuma/providers/acp/index.js +2 -1
- package/build/src/akuma/providers/codex-app-server/index.js +7 -1
- package/build/src/akuma/providers/grok-build/index.js +2 -1
- package/build/src/akuma/providers/index.d.ts +0 -1
- package/build/src/akuma/providers/index.js +0 -8
- package/build/src/akuma/providers/paseo/index.js +7 -4
- package/build/src/akuma/providers/pi/index.js +4 -3
- package/build/src/akuma/publication.d.ts +1 -2
- package/build/src/akuma/publication.js +16 -14
- package/build/src/akuma/schema.d.ts +3 -49
- package/build/src/akuma/schema.js +6 -147
- package/build/src/akuma/selection-observation.d.ts +281 -240
- package/build/src/akuma/selection-observation.js +122 -68
- package/build/src/akuma/status-projection.d.ts +49 -285
- package/build/src/akuma/status-projection.js +178 -138
- package/build/src/body/amend.js +2 -1
- package/build/src/body/arc.js +3 -2
- package/build/src/body/criteria.js +4 -3
- package/build/src/body/decode.js +2 -1
- package/build/src/body/envelope.js +2 -1
- package/build/src/body/region.d.ts +1 -3
- package/build/src/body/region.js +3 -8
- package/build/src/body-host.d.ts +4 -11
- package/build/src/body-host.js +5 -4
- package/build/src/bounded-list.js +2 -1
- package/build/src/cli/commands/akuma-grammar.d.ts +109 -66
- package/build/src/cli/commands/akuma-grammar.js +75 -95
- package/build/src/cli/commands/akuma.d.ts +8 -3
- package/build/src/cli/commands/akuma.js +63 -122
- package/build/src/cli/commands/contract-grammar.d.ts +3 -135
- package/build/src/cli/commands/contract-grammar.js +125 -218
- package/build/src/cli/commands/contract-help.d.ts +24 -21
- package/build/src/cli/commands/contract-help.js +43 -35
- package/build/src/cli/commands/contract.d.ts +6 -18
- package/build/src/cli/commands/contract.js +65 -272
- package/build/src/cli/commands/debt-grammar.d.ts +2 -4
- package/build/src/cli/commands/debt-grammar.js +22 -190
- package/build/src/cli/commands/debt.js +10 -87
- package/build/src/cli/commands/report.d.ts +2 -4
- package/build/src/cli/coordinates.d.ts +1 -1
- package/build/src/cli/coordinates.js +1 -1
- package/build/src/cli/main.js +9 -3
- package/build/src/cli/parse.d.ts +80 -3
- package/build/src/cli/parse.js +76 -16
- package/build/src/cli/render/akuma-activity.d.ts +19 -24
- package/build/src/cli/render/akuma-activity.js +164 -259
- package/build/src/cli/render/akuma.d.ts +3 -3
- package/build/src/cli/render/akuma.js +36 -43
- package/build/src/cli/render/catalog.d.ts +2 -5
- package/build/src/cli/render/catalog.js +2 -33
- package/build/src/cli/render/contract-history.js +1 -2
- package/build/src/cli/render/contract-observation.d.ts +0 -7
- package/build/src/cli/render/contract-observation.js +0 -3
- package/build/src/cli/render/contract.d.ts +7 -9
- package/build/src/cli/render/contract.js +35 -64
- package/build/src/cli/render/debt.d.ts +3 -11
- package/build/src/cli/render/debt.js +17 -88
- package/build/src/cli/render/delivery-preview.js +4 -4
- package/build/src/cli/render/kanshi-akuma.d.ts +5 -3
- package/build/src/cli/render/kanshi-akuma.js +22 -18
- package/build/src/cli/render/kanshi.d.ts +1 -3
- package/build/src/cli/render/kanshi.js +16 -39
- package/build/src/cli/render/receipt.d.ts +21 -12
- package/build/src/cli/render/receipt.js +49 -44
- package/build/src/cli/render/refusal.d.ts +4 -3
- package/build/src/cli/render/refusal.js +15 -17
- package/build/src/cli/render/settings.d.ts +1 -1
- package/build/src/cli/render/terminal.d.ts +9 -8
- package/build/src/cli/render/terminal.js +48 -32
- package/build/src/cli/render/verbs.d.ts +3 -1
- package/build/src/cli/render/verbs.js +74 -116
- package/build/src/cli/runtime.js +66 -65
- package/build/src/cli/streams.d.ts +2 -9
- package/build/src/cli/streams.js +8 -1
- package/build/src/cli/usage.d.ts +2 -1
- package/build/src/cli/usage.js +3 -2
- package/build/src/contract-worktree.js +2 -10
- package/build/src/core/facts/codec.js +9 -23
- package/build/src/core/facts/errors.d.ts +2 -1
- package/build/src/core/facts/errors.js +3 -3
- package/build/src/core/facts/types.d.ts +2 -13
- package/build/src/core/facts/types.js +1 -6
- package/build/src/core/verbs/abandon.d.ts +1 -2
- package/build/src/core/verbs/amend.d.ts +1 -2
- package/build/src/core/verbs/arc.d.ts +1 -2
- package/build/src/core/verbs/attestation.d.ts +1 -2
- package/build/src/core/verbs/bind.d.ts +1 -2
- package/build/src/core/verbs/deliver.d.ts +1 -2
- package/build/src/core/verbs/placement.d.ts +1 -2
- package/build/src/core/verbs/reintegrate.d.ts +1 -2
- package/build/src/debt/board.d.ts +14 -94
- package/build/src/debt/board.js +25 -160
- package/build/src/debt/catalog.d.ts +0 -2
- package/build/src/debt/catalog.js +1 -22
- package/build/src/debt/document.d.ts +8 -11
- package/build/src/debt/document.js +19 -62
- package/build/src/debt/identity.d.ts +2 -14
- package/build/src/debt/identity.js +19 -49
- package/build/src/debt/index.d.ts +81 -219
- package/build/src/debt/index.js +61 -110
- package/build/src/debt/input.d.ts +19 -5
- package/build/src/debt/input.js +51 -177
- package/build/src/debt/lifecycle-operations.d.ts +1 -3
- package/build/src/debt/lifecycle-operations.js +1 -73
- package/build/src/debt/operation-types.d.ts +24 -128
- package/build/src/debt/operation-types.js +6 -62
- package/build/src/debt/operations.d.ts +8 -17
- package/build/src/debt/operations.js +58 -154
- package/build/src/debt/store.d.ts +0 -2
- package/build/src/debt/store.js +32 -87
- package/build/src/errors.d.ts +28 -0
- package/build/src/errors.js +26 -0
- package/build/src/git/hooks.d.ts +1 -1
- package/build/src/git/observe.d.ts +3 -0
- package/build/src/git/observe.js +19 -5
- package/build/src/git/reconcile.d.ts +3 -16
- package/build/src/git/reconcile.js +0 -18
- package/build/src/git/repository.d.ts +2 -1
- package/build/src/git/repository.js +3 -3
- package/build/src/git/target-placement.d.ts +4 -4
- package/build/src/git/target.d.ts +2 -2
- package/build/src/git/tender.d.ts +1 -2
- package/build/src/git/tender.js +5 -12
- package/build/src/identity/coordinates.d.ts +1 -1
- package/build/src/identity/coordinates.js +3 -2
- package/build/src/identity/normalize.js +2 -1
- package/build/src/identity/selector.js +4 -3
- package/build/src/index.d.ts +34 -57
- package/build/src/index.js +11 -36
- package/build/src/kanshi/counts.d.ts +3 -8
- package/build/src/kanshi/counts.js +6 -14
- package/build/src/kanshi/index.d.ts +22 -7
- package/build/src/kanshi/index.js +30 -4
- package/build/src/kanshi/read.d.ts +81 -270
- package/build/src/kanshi/read.js +39 -199
- package/build/src/kanshi/report.d.ts +340 -1619
- package/build/src/kanshi/report.js +19 -31
- package/build/src/library/address.d.ts +11 -11
- package/build/src/library/address.js +34 -27
- package/build/src/library/akuma-creation.d.ts +210 -79
- package/build/src/library/akuma-creation.js +201 -242
- package/build/src/library/akumas.d.ts +24 -5
- package/build/src/library/akumas.js +96 -29
- package/build/src/library/bind.d.ts +7 -10
- package/build/src/library/bind.js +2 -8
- package/build/src/library/continuation.d.ts +141 -231
- package/build/src/library/continuation.js +22 -31
- package/build/src/library/contract-address.d.ts +6 -9
- package/build/src/library/contract-address.js +11 -16
- package/build/src/library/contract-composition.d.ts +2 -3
- package/build/src/library/contract-composition.js +12 -19
- package/build/src/library/contract-creation.js +33 -34
- package/build/src/library/contract-outcomes.d.ts +1278 -806
- package/build/src/library/contract-outcomes.js +11 -37
- package/build/src/library/contract-settings.d.ts +1 -2
- package/build/src/library/contract-settings.js +5 -7
- package/build/src/library/contract-types.d.ts +42 -67
- package/build/src/library/contract-types.js +15 -56
- package/build/src/library/contract-wait.d.ts +40 -3
- package/build/src/library/contract-wait.js +28 -21
- package/build/src/library/delivery.d.ts +366 -389
- package/build/src/library/delivery.js +5 -25
- package/build/src/library/input.d.ts +31 -5
- package/build/src/library/input.js +40 -40
- package/build/src/library/invocation.d.ts +13 -11
- package/build/src/library/invocation.js +69 -58
- package/build/src/library/kei.d.ts +16 -8
- package/build/src/library/kei.js +459 -19
- package/build/src/library/keiyaku-attribution.d.ts +0 -8
- package/build/src/library/keiyaku-attribution.js +0 -11
- package/build/src/library/keiyaku-classify.d.ts +2 -2
- package/build/src/library/keiyaku-classify.js +40 -59
- package/build/src/library/keiyaku-coordinates.d.ts +3 -8
- package/build/src/library/keiyaku-coordinates.js +6 -26
- package/build/src/library/keiyaku-debt.d.ts +21 -93
- package/build/src/library/keiyaku-debt.js +8 -157
- package/build/src/library/keiyaku-identity.js +5 -4
- package/build/src/library/keiyaku-verbs.d.ts +4004 -3885
- package/build/src/library/keiyaku-verbs.js +309 -271
- package/build/src/library/keiyaku.d.ts +30 -860
- package/build/src/library/keiyaku.js +169 -256
- package/build/src/library/nuke.d.ts +4 -2
- package/build/src/library/nuke.js +5 -1
- package/build/src/library/outcome.d.ts +424 -307
- package/build/src/library/outcome.js +167 -362
- package/build/src/library/reconcile.d.ts +331 -143
- package/build/src/library/reconcile.js +38 -72
- package/build/src/library/refusal.d.ts +20 -28
- package/build/src/library/refusal.js +1 -11
- package/build/src/library/repo.js +4 -3
- package/build/src/library/selection.d.ts +32 -21
- package/build/src/library/selection.js +63 -87
- package/build/src/mcp/adapter.d.ts +6 -0
- package/build/src/mcp/adapter.js +177 -42
- package/build/src/mcp/help.d.ts +1 -1
- package/build/src/mcp/help.js +12 -7
- package/build/src/mcp/output.d.ts +385 -0
- package/build/src/mcp/output.js +193 -0
- package/build/src/plugin/public.d.ts +4 -0
- package/build/src/plugin/runtime.d.ts +1 -1
- package/build/src/plugin/runtime.js +2 -2
- package/build/src/protocol/amend.d.ts +1 -1
- package/build/src/protocol/amend.js +2 -2
- package/build/src/protocol/bind.d.ts +5 -7
- package/build/src/protocol/bind.js +3 -3
- package/build/src/protocol/completion.d.ts +158 -195
- package/build/src/protocol/completion.js +55 -19
- package/build/src/protocol/deliver.d.ts +11 -6
- package/build/src/protocol/deliver.js +30 -30
- package/build/src/protocol/delivery-preview.d.ts +13 -11
- package/build/src/protocol/delivery-preview.js +2 -2
- package/build/src/protocol/execution-observation.d.ts +5 -13
- package/build/src/protocol/intent.d.ts +6 -9
- package/build/src/protocol/intent.js +18 -31
- package/build/src/protocol/operations.d.ts +48 -53
- package/build/src/protocol/operations.js +16 -25
- package/build/src/protocol/outcome.d.ts +3 -1
- package/build/src/protocol/placement.d.ts +1 -2
- package/build/src/protocol/placement.js +1 -1
- package/build/src/protocol/progress.d.ts +1 -0
- package/build/src/protocol/read/status.d.ts +29 -112
- package/build/src/protocol/read/status.js +52 -78
- package/build/src/protocol/reintegrate.d.ts +1 -2
- package/build/src/protocol/reintegrate.js +0 -1
- package/build/src/protocol/result-leaves.d.ts +11 -32
- package/build/src/protocol/result-leaves.js +18 -57
- package/build/src/protocol/result-reasons.d.ts +6 -6
- package/build/src/protocol/review.js +0 -1
- package/build/src/protocol/verify.d.ts +192 -146
- package/build/src/protocol/verify.js +60 -47
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/build/src/settings.d.ts +8 -9
- package/build/src/settings.js +16 -13
- package/build/src/settlement/holder.js +2 -2
- package/build/src/settlement/settle.d.ts +0 -6
- package/build/src/settlement/settle.js +0 -4
- package/build/src/verification/declaration.d.ts +3 -6
- package/build/src/verification/declaration.js +3 -5
- package/build/src/verification/observation.d.ts +2 -2
- package/build/src/world.d.ts +3 -2
- package/build/src/world.js +5 -6
- package/package.json +1 -1
- package/plugins/paseo/plugin/index.server.ts +1 -1
- package/plugins/paseo/plugin/server/attach.ts +74 -67
- package/plugins/paseo/plugin/server/keiyaku.ts +80 -14
- package/plugins/paseo/plugin/server/message.ts +2 -1
- package/plugins/paseo/plugin/server/mirror-identity.ts +6 -4
- package/plugins/paseo/plugin/server/sdk.ts +9 -11
- package/plugins/paseo/plugin/server/transport.ts +24 -1
- package/plugins/pi/README.md +16 -18
- package/plugins/pi/akuma-tools.ts +31 -38
- package/plugins/pi/keiyaku.ts +15 -4
- package/skills/keiyaku-akuma/SKILL.md +16 -11
- package/skills/keiyaku-babysit/SKILL.md +5 -3
- package/skills/keiyaku-bind/SKILL.md +4 -3
- package/skills/keiyaku-debt/SKILL.md +17 -17
- package/skills/keiyaku-workflow/SKILL.md +4 -3
- package/build/src/akuma/providers/codex-app-server/configuration.d.ts +0 -5
- package/build/src/akuma/providers/codex-app-server/configuration.js +0 -72
- package/build/src/cli/commands/debt-query.d.ts +0 -5
- package/build/src/cli/commands/debt-query.js +0 -194
- package/build/src/cli/render/akuma-tool-command.d.ts +0 -6
- package/build/src/cli/render/akuma-tool-command.js +0 -143
- package/build/src/cli/render/akuma-tool.d.ts +0 -29
- package/build/src/cli/render/akuma-tool.js +0 -225
- package/build/src/debt/context.d.ts +0 -28
- package/build/src/debt/context.js +0 -102
- package/build/src/debt/created-observation.d.ts +0 -26
- package/build/src/debt/created-observation.js +0 -38
- package/build/src/debt/query.d.ts +0 -80
- package/build/src/debt/query.js +0 -283
- package/build/src/library/contract-execution.d.ts +0 -28
- package/build/src/library/contract-execution.js +0 -506
- package/build/src/library/keiyaku-policy.d.ts +0 -27
- package/build/src/library/keiyaku-policy.js +0 -44
- package/build/src/library/keiyaku-status.d.ts +0 -1487
- package/build/src/library/keiyaku-status.js +0 -92
|
@@ -1,24 +1,5 @@
|
|
|
1
|
-
import { verbs, type VerbName, type VerbInput, type VerbOutput, type
|
|
2
|
-
import type {
|
|
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";
|
|
1
|
+
import { verbs, type VerbName, type VerbInput, type VerbOutput, type VerbRunFor } from "./keiyaku-verbs.js";
|
|
2
|
+
import type { BindOutcome } from "./contract-outcomes.js";
|
|
22
3
|
export { KeiyakuArcDocumentError, KeiyakuUsageError } from "./keiyaku-coordinates.js";
|
|
23
4
|
export type KeiyakuAt = Readonly<{
|
|
24
5
|
cwd: string;
|
|
@@ -26,849 +7,38 @@ export type KeiyakuAt = Readonly<{
|
|
|
26
7
|
home?: string;
|
|
27
8
|
repo?: string;
|
|
28
9
|
}>;
|
|
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>;
|
|
75
|
-
}>;
|
|
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
10
|
export declare class Keiyaku {
|
|
93
11
|
#private;
|
|
94
12
|
static readonly verbs: typeof verbs;
|
|
95
13
|
private constructor();
|
|
96
14
|
static at(input: KeiyakuAt): Keiyaku;
|
|
97
|
-
run<T>(name: "ask", input: VerbInput<"ask">, run: AskRun<T>): Promise<AkumaAskResult<T>>;
|
|
98
15
|
run<K extends VerbName>(name: K, input: VerbInput<K>, run?: VerbRunFor<K>): Promise<VerbOutput<K>>;
|
|
99
|
-
bind(input:
|
|
100
|
-
amend(input:
|
|
101
|
-
arc(input:
|
|
102
|
-
deliver(input
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
}>>;
|
|
16
|
+
bind(input: VerbInput<"bind">, run?: VerbRunFor<"bind">): Promise<BindOutcome>;
|
|
17
|
+
amend(input: VerbInput<"amend">, run?: VerbRunFor<"amend">): Promise<VerbOutput<"amend">>;
|
|
18
|
+
arc(input: VerbInput<"arc">, run?: VerbRunFor<"arc">): Promise<VerbOutput<"arc">>;
|
|
19
|
+
deliver(input?: VerbInput<"deliver">, run?: VerbRunFor<"deliver">): Promise<VerbOutput<"deliver">>;
|
|
20
|
+
verify(input?: VerbInput<"verify">, run?: VerbRunFor<"verify">): Promise<VerbOutput<"verify">>;
|
|
21
|
+
review(input: VerbInput<"review">, run?: VerbRunFor<"review">): Promise<VerbOutput<"review">>;
|
|
22
|
+
abandon(input?: VerbInput<"abandon">, run?: VerbRunFor<"abandon">): Promise<VerbOutput<"abandon">>;
|
|
23
|
+
show(input?: VerbInput<"show">, run?: VerbRunFor<"show">): Promise<VerbOutput<"show">>;
|
|
24
|
+
reconcile(input?: VerbInput<"reconcile">, run?: VerbRunFor<"reconcile">): Promise<VerbOutput<"reconcile">>;
|
|
25
|
+
spawn(input: VerbInput<"spawn">, run?: VerbRunFor<"spawn">): Promise<VerbOutput<"spawn">>;
|
|
26
|
+
fork(input: VerbInput<"fork">, run?: VerbRunFor<"fork">): Promise<VerbOutput<"fork">>;
|
|
27
|
+
tell(input: VerbInput<"tell">, run?: VerbRunFor<"tell">): Promise<VerbOutput<"tell">>;
|
|
28
|
+
ask(input: VerbInput<"ask">, run?: VerbRunFor<"ask">): Promise<VerbOutput<"ask">>;
|
|
29
|
+
kill(input: VerbInput<"kill">, run?: VerbRunFor<"kill">): Promise<VerbOutput<"kill">>;
|
|
30
|
+
wait(input: VerbInput<"wait">, run?: VerbRunFor<"wait">): Promise<VerbOutput<"wait">>;
|
|
31
|
+
history(input: VerbInput<"history">, run?: VerbRunFor<"history">): Promise<VerbOutput<"history">>;
|
|
32
|
+
report(input: VerbInput<"report">, run?: VerbRunFor<"report">): Promise<VerbOutput<"report">>;
|
|
33
|
+
ls(input: VerbInput<"ls">, run?: VerbRunFor<"ls">): Promise<VerbOutput<"ls">>;
|
|
34
|
+
debtAdd(input: VerbInput<"debt.add">, run?: VerbRunFor<"debt.add">): Promise<VerbOutput<"debt.add">>;
|
|
35
|
+
debtAddDocument(input: VerbInput<"debt.addDocument">, run?: VerbRunFor<"debt.addDocument">): Promise<VerbOutput<"debt.addDocument">>;
|
|
36
|
+
debtUpdate(input: VerbInput<"debt.update">, run?: VerbRunFor<"debt.update">): Promise<VerbOutput<"debt.update">>;
|
|
37
|
+
debtDoctor(input?: VerbInput<"debt.doctor">, run?: VerbRunFor<"debt.doctor">): Promise<VerbOutput<"debt.doctor">>;
|
|
38
|
+
kanshi(input?: VerbInput<"kanshi">, run?: VerbRunFor<"kanshi">): Promise<VerbOutput<"kanshi">>;
|
|
39
|
+
status(input: VerbInput<"status">, run?: VerbRunFor<"status">): Promise<VerbOutput<"status">>;
|
|
40
|
+
region(input?: VerbInput<"region">, run?: VerbRunFor<"region">): Promise<VerbOutput<"region">>;
|
|
41
|
+
whoami(input?: VerbInput<"whoami">, run?: VerbRunFor<"whoami">): Promise<VerbOutput<"whoami">>;
|
|
42
|
+
settings(input?: VerbInput<"settings">, run?: VerbRunFor<"settings">): Promise<VerbOutput<"settings">>;
|
|
43
|
+
nuke(input?: VerbInput<"nuke">, run?: VerbRunFor<"nuke">): Promise<VerbOutput<"nuke">>;
|
|
874
44
|
}
|