@astrosheep/keiyaku 4.6.27 → 4.6.28
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 +76 -35
- package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +39 -4
- package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +4 -7
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +1 -1
- package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +39 -15
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +42 -22
- package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +39 -4
- package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +4 -7
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +1 -1
- package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +39 -15
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +42 -22
- package/build/plugins/opencode/package.json +1 -1
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +39 -4
- package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +4 -7
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +1 -1
- package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +39 -15
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +42 -22
- package/build/plugins/pi/README.md +7 -12
- package/build/plugins/pi/akuma-tools.ts +3 -18
- package/build/skills/keiyaku-akuma/SKILL.md +39 -4
- package/build/skills/keiyaku-akuma/references/automation.md +4 -7
- package/build/skills/keiyaku-babysit/SKILL.md +1 -1
- package/build/skills/keiyaku-bind/SKILL.md +39 -15
- package/build/skills/keiyaku-workflow/SKILL.md +42 -22
- package/build/src/akuma/akuma-call.d.ts +15 -18
- package/build/src/akuma/akuma-call.js +55 -112
- package/build/src/akuma/akuma-errors.d.ts +0 -5
- package/build/src/akuma/akuma-errors.js +0 -9
- package/build/src/akuma/akuma-instance.d.ts +0 -2
- package/build/src/akuma/akuma-instance.js +18 -14
- package/build/src/akuma/akuma-observe.js +0 -1
- package/build/src/akuma/akuma-owner.js +0 -1
- package/build/src/akuma/akuma.d.ts +10 -26
- package/build/src/akuma/akuma.js +0 -2
- package/build/src/akuma/archetype.d.ts +0 -2
- package/build/src/akuma/archetype.js +3 -9
- package/build/src/akuma/body-launch.d.ts +12 -4
- package/build/src/akuma/body.d.ts +2 -5
- package/build/src/akuma/body.js +5 -49
- package/build/src/akuma/call-initial-tell.d.ts +39 -147
- package/build/src/akuma/call-initial-tell.js +0 -48
- package/build/src/akuma/caller.d.ts +0 -4
- package/build/src/akuma/custody.js +1 -57
- package/build/src/akuma/heart/facts.d.ts +0 -39
- package/build/src/akuma/heart/facts.js +0 -1
- package/build/src/akuma/heart/index.d.ts +1 -2
- package/build/src/akuma/heart/index.js +0 -1
- package/build/src/akuma/heart/schema.js +0 -26
- package/build/src/akuma/heart/soul.d.ts +2 -2
- package/build/src/akuma/heart/soul.js +2 -4
- package/build/src/akuma/identity.d.ts +0 -1
- package/build/src/akuma/identity.js +0 -2
- package/build/src/akuma/in-process-body.d.ts +1 -1
- package/build/src/akuma/index.d.ts +0 -2
- package/build/src/akuma/index.js +0 -1
- package/build/src/akuma/projection.d.ts +23 -23
- package/build/src/akuma/provider.d.ts +0 -5
- package/build/src/akuma/provider.js +0 -1
- package/build/src/akuma/providers/acp/core.js +1 -1
- package/build/src/akuma/providers/claude/index.js +1 -2
- package/build/src/akuma/providers/codex-app-server/index.js +1 -1
- package/build/src/akuma/providers/execution-environment.d.ts +1 -3
- package/build/src/akuma/providers/execution-environment.js +1 -7
- package/build/src/akuma/providers/opencode-sdk/index.js +0 -1
- package/build/src/akuma/providers/opencode-sdk/session.d.ts +0 -1
- package/build/src/akuma/providers/opencode-sdk/session.js +4 -4
- package/build/src/akuma/providers/paseo/index.js +2 -9
- package/build/src/akuma/providers/pi/index.js +8 -14
- package/build/src/akuma/publication.d.ts +24 -59
- package/build/src/akuma/publication.js +29 -64
- package/build/src/akuma/selection-observation.d.ts +47 -2036
- package/build/src/akuma/selection-observation.js +1 -59
- package/build/src/akuma/turn-drive.d.ts +0 -8
- package/build/src/akuma/turn-drive.js +19 -103
- package/build/src/akuma-body.js +3 -6
- package/build/src/body-host.d.ts +8 -2
- package/build/src/body-host.js +30 -4
- package/build/src/cli/commands/akuma-grammar.d.ts +0 -2
- package/build/src/cli/commands/akuma-grammar.js +10 -33
- package/build/src/cli/commands/akuma.js +31 -49
- package/build/src/cli/commands/contract-grammar.d.ts +7 -1
- package/build/src/cli/commands/contract-grammar.js +15 -0
- package/build/src/cli/commands/contract-help.d.ts +13 -1
- package/build/src/cli/commands/contract-help.js +47 -16
- package/build/src/cli/commands/contract.js +27 -26
- package/build/src/cli/commands/debt.js +3 -3
- package/build/src/cli/commands/whoami.d.ts +0 -2
- package/build/src/cli/commands/whoami.js +0 -5
- package/build/src/cli/coordinates.js +15 -0
- package/build/src/cli/delivery-identity.d.ts +3 -0
- package/build/src/cli/delivery-identity.js +23 -0
- package/build/src/cli/parse.js +1 -0
- package/build/src/cli/render/akuma-activity.d.ts +0 -1
- package/build/src/cli/render/akuma-activity.js +1 -4
- package/build/src/cli/render/catalog.js +7 -1
- package/build/src/cli/render/contract-history.js +16 -38
- package/build/src/cli/render/contract-observation.d.ts +23 -10
- package/build/src/cli/render/contract-observation.js +9 -6
- package/build/src/cli/render/contract-wait.d.ts +2 -0
- package/build/src/cli/render/contract-wait.js +18 -0
- package/build/src/cli/render/contract.d.ts +2 -2
- package/build/src/cli/render/contract.js +57 -39
- package/build/src/cli/render/delivery-preview.js +13 -26
- package/build/src/cli/render/execution-progress.js +9 -9
- package/build/src/cli/render/kanshi.js +4 -11
- package/build/src/cli/render/receipt.d.ts +18 -0
- package/build/src/cli/render/receipt.js +34 -10
- package/build/src/cli/render/reconcile.js +3 -0
- package/build/src/cli/render/refusal.js +28 -6
- package/build/src/cli/render/whoami.js +1 -4
- package/build/src/cli/runtime.d.ts +0 -2
- package/build/src/cli/runtime.js +3 -7
- package/build/src/cli/selectors.d.ts +1 -2
- package/build/src/cli/selectors.js +2 -5
- package/build/src/contract-guidance.js +4 -2
- package/build/src/contract-worktree.d.ts +3 -3
- package/build/src/core/facts/codec.js +38 -5
- package/build/src/core/facts/fold.js +1 -0
- package/build/src/core/facts/gate.d.ts +10 -4
- package/build/src/core/facts/gate.js +56 -39
- package/build/src/core/facts/observation.d.ts +7 -1
- package/build/src/core/facts/observation.js +15 -0
- package/build/src/core/facts/offer.d.ts +2 -2
- package/build/src/core/facts/types.d.ts +17 -1
- package/build/src/core/facts/types.js +6 -0
- package/build/src/core/verbs/amend.js +8 -0
- package/build/src/core/verbs/bind.d.ts +3 -1
- package/build/src/core/verbs/bind.js +9 -1
- package/build/src/core/verbs/deliver.d.ts +2 -1
- package/build/src/core/verbs/deliver.js +4 -1
- package/build/src/core/verbs/placement.d.ts +2 -1
- package/build/src/core/verbs/placement.js +7 -4
- package/build/src/core/verbs/reintegrate.d.ts +2 -1
- package/build/src/core/verbs/reintegrate.js +4 -1
- package/build/src/debt/board.d.ts +10 -10
- package/build/src/debt/created-observation.d.ts +3 -3
- package/build/src/debt/document.d.ts +1 -1
- package/build/src/debt/index.d.ts +2 -24
- package/build/src/debt/index.js +11 -71
- package/build/src/debt/operation-types.d.ts +44 -3
- package/build/src/git/admission.js +18 -6
- package/build/src/git/integration.d.ts +4 -4
- package/build/src/git/integration.js +7 -1
- package/build/src/git/observe.d.ts +6 -4
- package/build/src/git/observe.js +18 -17
- package/build/src/git/reconcile.d.ts +20 -8
- package/build/src/git/reconcile.js +94 -45
- package/build/src/git/repository.d.ts +3 -1
- package/build/src/git/repository.js +26 -4
- package/build/src/git/scratch.d.ts +1 -1
- package/build/src/git/scratch.js +19 -18
- package/build/src/git/target-placement.d.ts +33 -7
- package/build/src/git/target-placement.js +67 -18
- package/build/src/git/target.d.ts +32 -0
- package/build/src/git/target.js +84 -0
- package/build/src/git/terminal-reconcile.d.ts +1 -1
- package/build/src/git/terminal-reconcile.js +34 -6
- package/build/src/index.d.ts +9 -7
- package/build/src/index.js +1 -1
- package/build/src/library/address.d.ts +1 -20
- package/build/src/library/address.js +3 -24
- package/build/src/library/akuma-creation.d.ts +2 -5
- package/build/src/library/akuma-creation.js +60 -44
- package/build/src/library/akumas.d.ts +3 -9
- package/build/src/library/akumas.js +12 -25
- package/build/src/library/bind.d.ts +21 -9
- package/build/src/library/bind.js +5 -1
- package/build/src/library/continuation.d.ts +130 -155
- package/build/src/library/continuation.js +1 -4
- package/build/src/library/contract-composition.d.ts +4 -9
- package/build/src/library/contract-composition.js +8 -12
- package/build/src/library/contract-creation.d.ts +1 -3
- package/build/src/library/contract-creation.js +2 -3
- package/build/src/library/contract-execution.d.ts +3 -5
- package/build/src/library/contract-execution.js +55 -96
- package/build/src/library/contract-outcomes.d.ts +2 -1
- package/build/src/library/contract-types.d.ts +5 -0
- package/build/src/library/contract-wait.d.ts +35 -0
- package/build/src/library/contract-wait.js +141 -0
- package/build/src/library/delivery.d.ts +13 -525
- package/build/src/library/delivery.js +1 -12
- package/build/src/library/input.js +2 -1
- package/build/src/library/invocation.d.ts +5 -1
- package/build/src/library/invocation.js +9 -2
- package/build/src/library/keiyaku.d.ts +7 -6
- package/build/src/library/keiyaku.js +12 -7
- package/build/src/library/outcome.d.ts +461 -12586
- package/build/src/library/outcome.js +15 -234
- package/build/src/library/reconcile.d.ts +12 -0
- package/build/src/library/reconcile.js +1 -0
- package/build/src/library/refusal.d.ts +251 -34
- package/build/src/library/refusal.js +10 -5
- package/build/src/library/selection.d.ts +9 -35
- package/build/src/library/selection.js +59 -129
- package/build/src/plugin/akuma-signals.d.ts +2 -2
- package/build/src/plugin/akuma-signals.js +2 -2
- package/build/src/plugin/public.d.ts +0 -7
- package/build/src/plugin/runtime.d.ts +2 -2
- package/build/src/plugin/runtime.js +4 -3
- package/build/src/protocol/attempt.js +7 -3
- package/build/src/protocol/bind.d.ts +18 -4
- package/build/src/protocol/bind.js +102 -35
- package/build/src/protocol/completion.d.ts +18 -331
- package/build/src/protocol/completion.js +17 -130
- package/build/src/protocol/deliver.d.ts +3 -3
- package/build/src/protocol/deliver.js +64 -74
- package/build/src/protocol/delivery-preview.d.ts +85 -28
- package/build/src/protocol/delivery-preview.js +34 -22
- package/build/src/protocol/execution-observation.d.ts +12 -9
- package/build/src/protocol/execution-observation.js +0 -1
- package/build/src/protocol/intent.d.ts +20 -50
- package/build/src/protocol/intent.js +37 -44
- package/build/src/protocol/operations.d.ts +299 -19
- package/build/src/protocol/operations.js +68 -27
- package/build/src/protocol/outcome.d.ts +1 -1
- package/build/src/protocol/placement.d.ts +2 -2
- package/build/src/protocol/placement.js +4 -3
- package/build/src/protocol/progress.d.ts +35 -2
- package/build/src/protocol/progress.js +12 -1
- package/build/src/protocol/read/observation.js +15 -4
- package/build/src/protocol/read/status.d.ts +9 -14
- package/build/src/protocol/read/status.js +15 -22
- package/build/src/protocol/reintegrate.d.ts +4 -3
- package/build/src/protocol/reintegrate.js +21 -5
- package/build/src/protocol/review.d.ts +9 -15
- package/build/src/protocol/review.js +2 -6
- package/build/src/protocol/run.d.ts +1 -1
- package/build/src/protocol/verify.d.ts +51 -0
- package/build/src/protocol/verify.js +128 -0
- package/build/src/verification/declaration.d.ts +5 -1
- package/build/src/verification/declaration.js +19 -2
- package/build/src/verification/execution.d.ts +5 -2
- package/build/src/verification/execution.js +48 -53
- package/build/src/verification/observation.d.ts +10 -6
- package/build/src/verification/observation.js +5 -2
- package/package.json +3 -3
- package/plugins/paseo/plugin/index.server.ts +3 -0
- package/plugins/paseo/plugin/server/attach.ts +42 -0
- package/plugins/paseo/plugin/server/mirror-identity.ts +51 -0
- package/plugins/paseo/plugin/server/model.ts +26 -0
- package/plugins/paseo/plugin/server/provider.ts +4 -6
- package/plugins/paseo/plugin/server/reopen.ts +4 -39
- package/plugins/pi/README.md +7 -12
- package/plugins/pi/akuma-tools.ts +3 -18
- package/skills/keiyaku-akuma/SKILL.md +39 -4
- package/skills/keiyaku-akuma/references/automation.md +4 -7
- package/skills/keiyaku-babysit/SKILL.md +1 -1
- package/skills/keiyaku-bind/SKILL.md +39 -15
- package/skills/keiyaku-workflow/SKILL.md +42 -22
- package/build/src/akuma/allowed.d.ts +0 -23
- package/build/src/akuma/allowed.js +0 -63
- package/build/src/akuma/call-request.d.ts +0 -308
- package/build/src/akuma/call-request.js +0 -175
- package/build/src/akuma/heart/request-authority.d.ts +0 -16
- package/build/src/akuma/heart/request-authority.js +0 -140
- package/build/src/akuma/heart/request-rows.d.ts +0 -18
- package/build/src/akuma/heart/request-rows.js +0 -107
- package/build/src/akuma/request-lifecycle.d.ts +0 -42
- package/build/src/akuma/request-lifecycle.js +0 -197
- package/build/src/akuma/request-observation.d.ts +0 -45
- package/build/src/akuma/request-observation.js +0 -162
- package/build/src/akuma/request-rendezvous.d.ts +0 -32
- package/build/src/akuma/request-rendezvous.js +0 -189
- package/build/src/akuma/request-serve.d.ts +0 -16
- package/build/src/akuma/request-serve.js +0 -188
- package/build/src/akuma/request-wire.d.ts +0 -143
- package/build/src/akuma/request-wire.js +0 -146
- package/build/src/akuma/requests.d.ts +0 -20
- package/build/src/akuma/requests.js +0 -72
- package/build/src/akuma/selection-owner-port.d.ts +0 -14
- package/build/src/akuma/selection-owner-port.js +0 -54
- package/build/src/akuma/selection-request.d.ts +0 -305
- package/build/src/akuma/selection-request.js +0 -307
- package/build/src/body-requests.d.ts +0 -13
- package/build/src/body-requests.js +0 -131
- package/build/src/cli/square-identity.d.ts +0 -10
- package/build/src/cli/square-identity.js +0 -130
- package/build/src/debt/mutation-result.d.ts +0 -981
- package/build/src/debt/mutation-result.js +0 -109
- package/build/src/debt/mutation.d.ts +0 -424
- package/build/src/debt/mutation.js +0 -223
- package/build/src/library/contract-operations.d.ts +0 -382
- package/build/src/library/contract-operations.js +0 -300
|
@@ -38,6 +38,9 @@ export declare const keiyakuRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
38
38
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
39
39
|
}, z.core.$strict>, z.ZodObject<{
|
|
40
40
|
kind: z.ZodEnum<{
|
|
41
|
+
"target-contract-missing": "target-contract-missing";
|
|
42
|
+
"target-contract-terminal": "target-contract-terminal";
|
|
43
|
+
"target-contract-self": "target-contract-self";
|
|
41
44
|
"contract-exists": "contract-exists";
|
|
42
45
|
"invalid-after": "invalid-after";
|
|
43
46
|
"unknown-prerequisite": "unknown-prerequisite";
|
|
@@ -50,10 +53,25 @@ export declare const keiyakuRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
50
53
|
kind: z.ZodEnum<{
|
|
51
54
|
terminal: "terminal";
|
|
52
55
|
"contract-missing": "contract-missing";
|
|
56
|
+
"target-contract-missing": "target-contract-missing";
|
|
57
|
+
"target-contract-terminal": "target-contract-terminal";
|
|
58
|
+
"target-contract-self": "target-contract-self";
|
|
53
59
|
"document-moved": "document-moved";
|
|
54
60
|
}>;
|
|
55
61
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
56
62
|
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
64
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
65
|
+
reason: z.ZodEnum<{
|
|
66
|
+
missing: "missing";
|
|
67
|
+
replaced: "replaced";
|
|
68
|
+
unappointed: "unappointed";
|
|
69
|
+
association: "association";
|
|
70
|
+
attached: "attached";
|
|
71
|
+
uncommitted: "uncommitted";
|
|
72
|
+
operation: "operation";
|
|
73
|
+
}>;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
57
75
|
kind: z.ZodLiteral<"target-missing">;
|
|
58
76
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
59
77
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -79,23 +97,23 @@ export declare const keiyakuRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
79
97
|
kind: z.ZodLiteral<"integration-failed">;
|
|
80
98
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
81
99
|
reason: z.ZodEnum<{
|
|
100
|
+
conflict: "conflict";
|
|
82
101
|
"not-based-on-target": "not-based-on-target";
|
|
83
102
|
"unrelated-histories": "unrelated-histories";
|
|
84
|
-
conflict: "conflict";
|
|
85
103
|
}>;
|
|
86
104
|
targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
|
|
87
105
|
conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
88
106
|
}, z.core.$strict>, z.ZodTransform<{
|
|
89
107
|
kind: "integration-failed";
|
|
90
108
|
contractId: import("../index.js").ContractId;
|
|
91
|
-
reason: "not-based-on-target" | "unrelated-histories"
|
|
109
|
+
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
92
110
|
targetHead: import("../index.js").SnapshotId;
|
|
93
111
|
} & {
|
|
94
112
|
conflictPaths?: readonly string[];
|
|
95
113
|
}, {
|
|
96
114
|
kind: "integration-failed";
|
|
97
115
|
contractId: import("../index.js").ContractId;
|
|
98
|
-
reason: "not-based-on-target" | "unrelated-histories"
|
|
116
|
+
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
99
117
|
targetHead: import("../index.js").SnapshotId;
|
|
100
118
|
conflictPaths?: readonly string[] | undefined;
|
|
101
119
|
}>>, z.ZodObject<{
|
|
@@ -128,6 +146,25 @@ export declare const keiyakuRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
128
146
|
staging: z.ZodLiteral<"not-required">;
|
|
129
147
|
}, z.core.$strict>;
|
|
130
148
|
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
149
|
+
kind: z.ZodEnum<{
|
|
150
|
+
"target-contract-missing": "target-contract-missing";
|
|
151
|
+
"target-contract-terminal": "target-contract-terminal";
|
|
152
|
+
"target-contract-self": "target-contract-self";
|
|
153
|
+
}>;
|
|
154
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
155
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
156
|
+
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
157
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
158
|
+
reason: z.ZodEnum<{
|
|
159
|
+
missing: "missing";
|
|
160
|
+
replaced: "replaced";
|
|
161
|
+
unappointed: "unappointed";
|
|
162
|
+
association: "association";
|
|
163
|
+
attached: "attached";
|
|
164
|
+
uncommitted: "uncommitted";
|
|
165
|
+
operation: "operation";
|
|
166
|
+
}>;
|
|
167
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
131
168
|
kind: z.ZodEnum<{
|
|
132
169
|
terminal: "terminal";
|
|
133
170
|
"contract-missing": "contract-missing";
|
|
@@ -139,6 +176,33 @@ export declare const keiyakuRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
139
176
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
140
177
|
unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
141
178
|
gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
|
|
179
|
+
requirements: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
180
|
+
requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
|
|
181
|
+
current: z.ZodUnion<readonly [z.ZodObject<{
|
|
182
|
+
kind: z.ZodLiteral<"missing">;
|
|
183
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
184
|
+
kind: z.ZodLiteral<"attested">;
|
|
185
|
+
verdict: z.ZodEnum<{
|
|
186
|
+
satisfied: "satisfied";
|
|
187
|
+
unsatisfied: "unsatisfied";
|
|
188
|
+
}>;
|
|
189
|
+
at: z.ZodString;
|
|
190
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
192
|
+
kind: z.ZodLiteral<"stale">;
|
|
193
|
+
priorVerdict: z.ZodEnum<{
|
|
194
|
+
satisfied: "satisfied";
|
|
195
|
+
unsatisfied: "unsatisfied";
|
|
196
|
+
}>;
|
|
197
|
+
reason: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
kind: z.ZodLiteral<"candidate-content-changed">;
|
|
199
|
+
target: z.ZodOptional<z.ZodString>;
|
|
200
|
+
previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
|
|
201
|
+
currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
|
|
202
|
+
}, z.core.$strict>>;
|
|
203
|
+
}, z.core.$strict>]>;
|
|
204
|
+
}, z.core.$strict>>>;
|
|
205
|
+
satisfied: z.ZodBoolean;
|
|
142
206
|
current: z.ZodUnion<readonly [z.ZodObject<{
|
|
143
207
|
kind: z.ZodLiteral<"missing">;
|
|
144
208
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -170,21 +234,41 @@ export declare const keiyakuRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
170
234
|
unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
171
235
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
172
236
|
state: z.ZodEnum<{
|
|
237
|
+
active: "active";
|
|
173
238
|
abandoned: "abandoned";
|
|
174
239
|
missing: "missing";
|
|
175
|
-
active: "active";
|
|
176
240
|
}>;
|
|
177
241
|
}, z.core.$strict>>>;
|
|
178
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
242
|
+
}, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
179
243
|
kind: z.ZodEnum<{
|
|
180
244
|
"target-missing": "target-missing";
|
|
181
245
|
"unborn-head": "unborn-head";
|
|
182
246
|
"invalid-target": "invalid-target";
|
|
183
247
|
}>;
|
|
184
248
|
}, z.core.$strict>, z.ZodObject<{
|
|
249
|
+
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
250
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
251
|
+
reason: z.ZodEnum<{
|
|
252
|
+
missing: "missing";
|
|
253
|
+
replaced: "replaced";
|
|
254
|
+
unappointed: "unappointed";
|
|
255
|
+
association: "association";
|
|
256
|
+
attached: "attached";
|
|
257
|
+
uncommitted: "uncommitted";
|
|
258
|
+
operation: "operation";
|
|
259
|
+
}>;
|
|
260
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
185
261
|
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
186
262
|
contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
|
|
187
|
-
}, z.core.$strict
|
|
263
|
+
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
264
|
+
kind: z.ZodLiteral<"verification-not-selected">;
|
|
265
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
266
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
267
|
+
kind: z.ZodLiteral<"verification-index-out-of-range">;
|
|
268
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
269
|
+
index: z.ZodNumber;
|
|
270
|
+
total: z.ZodNumber;
|
|
271
|
+
}, z.core.$strict>]>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
188
272
|
kind: z.ZodEnum<{
|
|
189
273
|
"fork-source-missing": "fork-source-missing";
|
|
190
274
|
"fork-source-unavailable": "fork-source-unavailable";
|
|
@@ -202,24 +286,21 @@ export declare const keiyakuRefusalSchema: z.ZodUnion<readonly [z.ZodUnion<reado
|
|
|
202
286
|
world: z.ZodString;
|
|
203
287
|
}, z.core.$strict>]>;
|
|
204
288
|
export type KeiyakuRefusal = z.infer<typeof keiyakuRefusalSchema>;
|
|
205
|
-
export declare const keiyakuRetryReasonSchema: z.ZodUnion<readonly [z.
|
|
289
|
+
export declare const keiyakuRetryReasonSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
206
290
|
kind: z.ZodEnum<{
|
|
207
|
-
exhausted: "exhausted";
|
|
208
291
|
collision: "collision";
|
|
292
|
+
exhausted: "exhausted";
|
|
209
293
|
}>;
|
|
210
294
|
}, z.core.$strict>, z.ZodObject<{
|
|
211
295
|
kind: z.ZodLiteral<"publication-failed">;
|
|
212
296
|
diagnostic: z.ZodString;
|
|
213
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
214
|
-
kind: z.ZodLiteral<"owner-reason-unavailable">;
|
|
215
|
-
diagnostic: z.ZodString;
|
|
216
297
|
}, z.core.$strict>]>;
|
|
217
298
|
export type KeiyakuRetryReason = z.infer<typeof keiyakuRetryReasonSchema>;
|
|
218
299
|
export declare const operationRetrySchemas: {
|
|
219
300
|
readonly bind: z.ZodUnion<readonly [z.ZodObject<{
|
|
220
301
|
kind: z.ZodEnum<{
|
|
221
|
-
exhausted: "exhausted";
|
|
222
302
|
collision: "collision";
|
|
303
|
+
exhausted: "exhausted";
|
|
223
304
|
}>;
|
|
224
305
|
}, z.core.$strict>, z.ZodObject<{
|
|
225
306
|
kind: z.ZodLiteral<"publication-failed">;
|
|
@@ -227,53 +308,53 @@ export declare const operationRetrySchemas: {
|
|
|
227
308
|
}, z.core.$strict>]>;
|
|
228
309
|
readonly amend: z.ZodUnion<readonly [z.ZodObject<{
|
|
229
310
|
kind: z.ZodEnum<{
|
|
230
|
-
exhausted: "exhausted";
|
|
231
311
|
collision: "collision";
|
|
312
|
+
exhausted: "exhausted";
|
|
232
313
|
}>;
|
|
233
314
|
}, z.core.$strict>, z.ZodObject<{
|
|
234
315
|
kind: z.ZodLiteral<"publication-failed">;
|
|
235
316
|
diagnostic: z.ZodString;
|
|
236
317
|
}, z.core.$strict>]>;
|
|
237
|
-
readonly deliver: z.ZodUnion<readonly [z.
|
|
318
|
+
readonly deliver: z.ZodUnion<readonly [z.ZodObject<{
|
|
238
319
|
kind: z.ZodEnum<{
|
|
239
|
-
exhausted: "exhausted";
|
|
240
320
|
collision: "collision";
|
|
321
|
+
exhausted: "exhausted";
|
|
241
322
|
}>;
|
|
242
323
|
}, z.core.$strict>, z.ZodObject<{
|
|
243
324
|
kind: z.ZodLiteral<"publication-failed">;
|
|
244
325
|
diagnostic: z.ZodString;
|
|
245
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
246
|
-
kind: z.ZodLiteral<"owner-reason-unavailable">;
|
|
247
|
-
diagnostic: z.ZodString;
|
|
248
326
|
}, z.core.$strict>]>;
|
|
249
|
-
readonly
|
|
327
|
+
readonly verify: z.ZodUnion<readonly [z.ZodObject<{
|
|
250
328
|
kind: z.ZodEnum<{
|
|
251
|
-
exhausted: "exhausted";
|
|
252
329
|
collision: "collision";
|
|
330
|
+
exhausted: "exhausted";
|
|
253
331
|
}>;
|
|
254
332
|
}, z.core.$strict>, z.ZodObject<{
|
|
255
333
|
kind: z.ZodLiteral<"publication-failed">;
|
|
256
334
|
diagnostic: z.ZodString;
|
|
257
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
258
|
-
kind: z.ZodLiteral<"owner-reason-unavailable">;
|
|
259
|
-
diagnostic: z.ZodString;
|
|
260
335
|
}, z.core.$strict>]>;
|
|
261
|
-
readonly
|
|
336
|
+
readonly review: z.ZodUnion<readonly [z.ZodObject<{
|
|
262
337
|
kind: z.ZodEnum<{
|
|
263
|
-
exhausted: "exhausted";
|
|
264
338
|
collision: "collision";
|
|
339
|
+
exhausted: "exhausted";
|
|
265
340
|
}>;
|
|
266
341
|
}, z.core.$strict>, z.ZodObject<{
|
|
267
342
|
kind: z.ZodLiteral<"publication-failed">;
|
|
268
343
|
diagnostic: z.ZodString;
|
|
269
|
-
}, z.core.$strict>]
|
|
270
|
-
|
|
344
|
+
}, z.core.$strict>]>;
|
|
345
|
+
readonly "deliver-preview": z.ZodUnion<readonly [z.ZodObject<{
|
|
346
|
+
kind: z.ZodEnum<{
|
|
347
|
+
collision: "collision";
|
|
348
|
+
exhausted: "exhausted";
|
|
349
|
+
}>;
|
|
350
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
351
|
+
kind: z.ZodLiteral<"publication-failed">;
|
|
271
352
|
diagnostic: z.ZodString;
|
|
272
353
|
}, z.core.$strict>]>;
|
|
273
354
|
readonly arc: z.ZodUnion<readonly [z.ZodObject<{
|
|
274
355
|
kind: z.ZodEnum<{
|
|
275
|
-
exhausted: "exhausted";
|
|
276
356
|
collision: "collision";
|
|
357
|
+
exhausted: "exhausted";
|
|
277
358
|
}>;
|
|
278
359
|
}, z.core.$strict>, z.ZodObject<{
|
|
279
360
|
kind: z.ZodLiteral<"publication-failed">;
|
|
@@ -281,8 +362,8 @@ export declare const operationRetrySchemas: {
|
|
|
281
362
|
}, z.core.$strict>]>;
|
|
282
363
|
readonly abandon: z.ZodUnion<readonly [z.ZodObject<{
|
|
283
364
|
kind: z.ZodEnum<{
|
|
284
|
-
exhausted: "exhausted";
|
|
285
365
|
collision: "collision";
|
|
366
|
+
exhausted: "exhausted";
|
|
286
367
|
}>;
|
|
287
368
|
}, z.core.$strict>, z.ZodObject<{
|
|
288
369
|
kind: z.ZodLiteral<"publication-failed">;
|
|
@@ -295,18 +376,33 @@ export type OperationRetries = {
|
|
|
295
376
|
export declare const operationRefusalSchemas: {
|
|
296
377
|
readonly bind: z.ZodUnion<readonly [z.ZodObject<{
|
|
297
378
|
kind: z.ZodEnum<{
|
|
379
|
+
"target-contract-missing": "target-contract-missing";
|
|
380
|
+
"target-contract-terminal": "target-contract-terminal";
|
|
381
|
+
"target-contract-self": "target-contract-self";
|
|
298
382
|
"contract-exists": "contract-exists";
|
|
299
383
|
"invalid-after": "invalid-after";
|
|
300
384
|
"unknown-prerequisite": "unknown-prerequisite";
|
|
301
385
|
}>;
|
|
302
386
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
303
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
387
|
+
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
304
388
|
kind: z.ZodEnum<{
|
|
305
389
|
"target-missing": "target-missing";
|
|
306
390
|
"unborn-head": "unborn-head";
|
|
307
391
|
"invalid-target": "invalid-target";
|
|
308
392
|
}>;
|
|
309
|
-
}, z.core.$strict>, z.
|
|
393
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
394
|
+
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
395
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
396
|
+
reason: z.ZodEnum<{
|
|
397
|
+
missing: "missing";
|
|
398
|
+
replaced: "replaced";
|
|
399
|
+
unappointed: "unappointed";
|
|
400
|
+
association: "association";
|
|
401
|
+
attached: "attached";
|
|
402
|
+
uncommitted: "uncommitted";
|
|
403
|
+
operation: "operation";
|
|
404
|
+
}>;
|
|
405
|
+
}, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
310
406
|
kind: z.ZodEnum<{
|
|
311
407
|
"fork-source-missing": "fork-source-missing";
|
|
312
408
|
"fork-source-unavailable": "fork-source-unavailable";
|
|
@@ -336,10 +432,25 @@ export declare const operationRefusalSchemas: {
|
|
|
336
432
|
kind: z.ZodEnum<{
|
|
337
433
|
terminal: "terminal";
|
|
338
434
|
"contract-missing": "contract-missing";
|
|
435
|
+
"target-contract-missing": "target-contract-missing";
|
|
436
|
+
"target-contract-terminal": "target-contract-terminal";
|
|
437
|
+
"target-contract-self": "target-contract-self";
|
|
339
438
|
"document-moved": "document-moved";
|
|
340
439
|
}>;
|
|
341
440
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
342
441
|
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
442
|
+
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
443
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
444
|
+
reason: z.ZodEnum<{
|
|
445
|
+
missing: "missing";
|
|
446
|
+
replaced: "replaced";
|
|
447
|
+
unappointed: "unappointed";
|
|
448
|
+
association: "association";
|
|
449
|
+
attached: "attached";
|
|
450
|
+
uncommitted: "uncommitted";
|
|
451
|
+
operation: "operation";
|
|
452
|
+
}>;
|
|
453
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
343
454
|
kind: z.ZodLiteral<"target-missing">;
|
|
344
455
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
345
456
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -365,23 +476,23 @@ export declare const operationRefusalSchemas: {
|
|
|
365
476
|
kind: z.ZodLiteral<"integration-failed">;
|
|
366
477
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
367
478
|
reason: z.ZodEnum<{
|
|
479
|
+
conflict: "conflict";
|
|
368
480
|
"not-based-on-target": "not-based-on-target";
|
|
369
481
|
"unrelated-histories": "unrelated-histories";
|
|
370
|
-
conflict: "conflict";
|
|
371
482
|
}>;
|
|
372
483
|
targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
|
|
373
484
|
conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
374
485
|
}, z.core.$strict>, z.ZodTransform<{
|
|
375
486
|
kind: "integration-failed";
|
|
376
487
|
contractId: import("../index.js").ContractId;
|
|
377
|
-
reason: "not-based-on-target" | "unrelated-histories"
|
|
488
|
+
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
378
489
|
targetHead: import("../index.js").SnapshotId;
|
|
379
490
|
} & {
|
|
380
491
|
conflictPaths?: readonly string[];
|
|
381
492
|
}, {
|
|
382
493
|
kind: "integration-failed";
|
|
383
494
|
contractId: import("../index.js").ContractId;
|
|
384
|
-
reason: "not-based-on-target" | "unrelated-histories"
|
|
495
|
+
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
385
496
|
targetHead: import("../index.js").SnapshotId;
|
|
386
497
|
conflictPaths?: readonly string[] | undefined;
|
|
387
498
|
}>>, z.ZodObject<{
|
|
@@ -417,6 +528,109 @@ export declare const operationRefusalSchemas: {
|
|
|
417
528
|
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
418
529
|
contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
|
|
419
530
|
}, z.core.$strict>]>;
|
|
531
|
+
readonly verify: z.ZodUnion<readonly [z.ZodObject<{
|
|
532
|
+
kind: z.ZodEnum<{
|
|
533
|
+
terminal: "terminal";
|
|
534
|
+
"contract-missing": "contract-missing";
|
|
535
|
+
}>;
|
|
536
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
537
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
538
|
+
kind: z.ZodEnum<{
|
|
539
|
+
terminal: "terminal";
|
|
540
|
+
"contract-missing": "contract-missing";
|
|
541
|
+
"target-contract-missing": "target-contract-missing";
|
|
542
|
+
"target-contract-terminal": "target-contract-terminal";
|
|
543
|
+
"target-contract-self": "target-contract-self";
|
|
544
|
+
"document-moved": "document-moved";
|
|
545
|
+
}>;
|
|
546
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
547
|
+
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
548
|
+
kind: z.ZodLiteral<"target-workspace-unavailable">;
|
|
549
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
550
|
+
reason: z.ZodEnum<{
|
|
551
|
+
missing: "missing";
|
|
552
|
+
replaced: "replaced";
|
|
553
|
+
unappointed: "unappointed";
|
|
554
|
+
association: "association";
|
|
555
|
+
attached: "attached";
|
|
556
|
+
uncommitted: "uncommitted";
|
|
557
|
+
operation: "operation";
|
|
558
|
+
}>;
|
|
559
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
560
|
+
kind: z.ZodLiteral<"target-missing">;
|
|
561
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
562
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
563
|
+
kind: z.ZodLiteral<"worktree-missing">;
|
|
564
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
565
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
566
|
+
kind: z.ZodLiteral<"dirty-workspace">;
|
|
567
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
568
|
+
staged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
569
|
+
unstaged: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
570
|
+
untracked: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
571
|
+
submodules: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
572
|
+
shortStat: z.ZodObject<{
|
|
573
|
+
filesChanged: z.ZodNumber;
|
|
574
|
+
insertions: z.ZodNumber;
|
|
575
|
+
deletions: z.ZodNumber;
|
|
576
|
+
}, z.core.$strict>;
|
|
577
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
578
|
+
kind: z.ZodLiteral<"unmerged-paths">;
|
|
579
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
580
|
+
paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
581
|
+
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
582
|
+
kind: z.ZodLiteral<"integration-failed">;
|
|
583
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
584
|
+
reason: z.ZodEnum<{
|
|
585
|
+
conflict: "conflict";
|
|
586
|
+
"not-based-on-target": "not-based-on-target";
|
|
587
|
+
"unrelated-histories": "unrelated-histories";
|
|
588
|
+
}>;
|
|
589
|
+
targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
|
|
590
|
+
conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
591
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
592
|
+
kind: "integration-failed";
|
|
593
|
+
contractId: import("../index.js").ContractId;
|
|
594
|
+
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
595
|
+
targetHead: import("../index.js").SnapshotId;
|
|
596
|
+
} & {
|
|
597
|
+
conflictPaths?: readonly string[];
|
|
598
|
+
}, {
|
|
599
|
+
kind: "integration-failed";
|
|
600
|
+
contractId: import("../index.js").ContractId;
|
|
601
|
+
reason: "conflict" | "not-based-on-target" | "unrelated-histories";
|
|
602
|
+
targetHead: import("../index.js").SnapshotId;
|
|
603
|
+
conflictPaths?: readonly string[] | undefined;
|
|
604
|
+
}>>, z.ZodObject<{
|
|
605
|
+
kind: z.ZodLiteral<"integration-unsupported">;
|
|
606
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
607
|
+
requiredGit: z.ZodLiteral<"2.38">;
|
|
608
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
609
|
+
kind: z.ZodLiteral<"merge-state-present">;
|
|
610
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
611
|
+
workspace: z.ZodObject<{
|
|
612
|
+
kind: z.ZodLiteral<"worktree">;
|
|
613
|
+
path: z.ZodString;
|
|
614
|
+
}, z.core.$strict>;
|
|
615
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
616
|
+
kind: z.ZodLiteral<"checkout-not-followable">;
|
|
617
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
618
|
+
target: z.ZodString;
|
|
619
|
+
path: z.ZodString;
|
|
620
|
+
reason: z.ZodLiteral<"untracked">;
|
|
621
|
+
paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
622
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
623
|
+
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
624
|
+
contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
|
|
625
|
+
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
626
|
+
kind: z.ZodLiteral<"verification-not-selected">;
|
|
627
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
628
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
629
|
+
kind: z.ZodLiteral<"verification-index-out-of-range">;
|
|
630
|
+
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
631
|
+
index: z.ZodNumber;
|
|
632
|
+
total: z.ZodNumber;
|
|
633
|
+
}, z.core.$strict>]>]>;
|
|
420
634
|
readonly review: z.ZodUnion<readonly [z.ZodObject<{
|
|
421
635
|
kind: z.ZodEnum<{
|
|
422
636
|
terminal: "terminal";
|
|
@@ -443,6 +657,9 @@ export declare const operationRefusalSchemas: {
|
|
|
443
657
|
kind: z.ZodEnum<{
|
|
444
658
|
terminal: "terminal";
|
|
445
659
|
"contract-missing": "contract-missing";
|
|
660
|
+
"target-contract-missing": "target-contract-missing";
|
|
661
|
+
"target-contract-terminal": "target-contract-terminal";
|
|
662
|
+
"target-contract-self": "target-contract-self";
|
|
446
663
|
"document-moved": "document-moved";
|
|
447
664
|
}>;
|
|
448
665
|
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { contractIdSchema, intentRefusalSchema, activeContractRefusalSchema, bindRefusalSchema, amendRefusalSchema, deliverRefusalSchema, deliveryPreparationRefusalSchema, deliverConflictRefusalSchema, verificationDeclarationRefusalSchema, } from "../protocol/operations.js";
|
|
2
|
+
import { contractIdSchema, intentRefusalSchema, activeContractRefusalSchema, bindRefusalSchema, amendRefusalSchema, deliverRefusalSchema, deliveryPreparationRefusalSchema, deliverConflictRefusalSchema, verificationDeclarationRefusalSchema, verifyRefusalSchema, } from "../protocol/operations.js";
|
|
3
3
|
import { targetInputRefusalSchema, forkSourceMovedRefusalSchema } from "../protocol/bind.js";
|
|
4
4
|
import { protocolTerminalSchema } from "../protocol/run.js";
|
|
5
5
|
import { worktreeMissingRefusalSchema, dirtyWorkspaceRefusalSchema } from "../git/tender.js";
|
|
@@ -23,14 +23,12 @@ export const keiyakuRefusalSchema = z.union([
|
|
|
23
23
|
nukeConfirmationRefusalSchema,
|
|
24
24
|
nukeConfirmationRequiredRefusalSchema,
|
|
25
25
|
]);
|
|
26
|
-
const
|
|
27
|
-
.object({ kind: z.literal("owner-reason-unavailable"), diagnostic: z.string() })
|
|
28
|
-
.strict();
|
|
29
|
-
export const keiyakuRetryReasonSchema = z.union([protocolTerminalSchema, forwardingRetrySchema]);
|
|
26
|
+
export const keiyakuRetryReasonSchema = protocolTerminalSchema;
|
|
30
27
|
export const operationRetrySchemas = {
|
|
31
28
|
bind: protocolTerminalSchema,
|
|
32
29
|
amend: protocolTerminalSchema,
|
|
33
30
|
deliver: keiyakuRetryReasonSchema,
|
|
31
|
+
verify: keiyakuRetryReasonSchema,
|
|
34
32
|
review: keiyakuRetryReasonSchema,
|
|
35
33
|
"deliver-preview": keiyakuRetryReasonSchema,
|
|
36
34
|
arc: protocolTerminalSchema,
|
|
@@ -50,6 +48,13 @@ export const operationRefusalSchemas = {
|
|
|
50
48
|
deliverConflictRefusalSchema,
|
|
51
49
|
verificationDeclarationRefusalSchema,
|
|
52
50
|
]),
|
|
51
|
+
verify: z.union([
|
|
52
|
+
activeContractRefusalSchema,
|
|
53
|
+
deliverRefusalSchema,
|
|
54
|
+
deliveryPreparationRefusalSchema,
|
|
55
|
+
verificationDeclarationRefusalSchema,
|
|
56
|
+
verifyRefusalSchema,
|
|
57
|
+
]),
|
|
53
58
|
review: z.union([activeContractRefusalSchema, worktreeMissingRefusalSchema, dirtyWorkspaceRefusalSchema]),
|
|
54
59
|
"deliver-preview": z.union([deliverRefusalSchema, verificationDeclarationRefusalSchema]),
|
|
55
60
|
arc: activeContractRefusalSchema,
|
|
@@ -2,38 +2,12 @@ import type { BodyLauncher } from "../akuma/body-launch.js";
|
|
|
2
2
|
import { type AskObserver } from "../akuma/akuma-selection-execution.js";
|
|
3
3
|
import { type AkumaStatus } from "../akuma/akuma.js";
|
|
4
4
|
import { type ActivityHistory, type OutcomeRow } from "../akuma/projection.js";
|
|
5
|
-
import { type ExecutionContext } from "../akuma/requests.js";
|
|
6
5
|
import { type Schema } from "../akuma/schema.js";
|
|
7
6
|
import type { AkumaAskResult, AkumaKillResult, AkumaObservation, AkumaTellResult, AkumaWaitResult } from "../akuma/selection-observation.js";
|
|
8
7
|
import type { DispatchAssociation } from "../akuma/dispatch-association.js";
|
|
9
8
|
import type { WorldRoot } from "../world.js";
|
|
10
|
-
import {
|
|
9
|
+
import { type AkumaAddressInput, type AkumaSetAddressInput } from "./address.js";
|
|
11
10
|
import { type Repo } from "./repo.js";
|
|
12
|
-
type AddressedAkuma = Awaited<ReturnType<typeof addressAkuma>>;
|
|
13
|
-
type AddressedAkumaSet = Awaited<ReturnType<typeof addressAkumaSet>>;
|
|
14
|
-
type UncheckedSelectionAddress = Parameters<typeof addressAkuma>[0];
|
|
15
|
-
type SelectionWaitMode = Readonly<{
|
|
16
|
-
completion: "any" | "all";
|
|
17
|
-
timeoutMs?: number;
|
|
18
|
-
signal?: AbortSignal;
|
|
19
|
-
repo?: Repo;
|
|
20
|
-
}>;
|
|
21
|
-
/**
|
|
22
|
-
* The one typed selection seam captured per execution. Selector resolution is
|
|
23
|
-
* bound once: local execution addresses and proves birth in this process, while
|
|
24
|
-
* a forwarded operation resolves coordinates only because the serving parent
|
|
25
|
-
* owns the target and its admission probes. Each verb's local or forwarded
|
|
26
|
-
* ability is likewise chosen once here, so no operation repeats a route branch.
|
|
27
|
-
*/
|
|
28
|
-
export type SelectionSeam = Readonly<{
|
|
29
|
-
addressOne(input: UncheckedSelectionAddress): Promise<AddressedAkuma>;
|
|
30
|
-
addressSet(input: UncheckedSelectionAddress): Promise<AddressedAkumaSet>;
|
|
31
|
-
wait(addressed: AddressedAkumaSet, mode: SelectionWaitMode): Promise<AkumaWaitResult>;
|
|
32
|
-
kill(addressed: AddressedAkumaSet, signal?: AbortSignal): Promise<AkumaKillResult>;
|
|
33
|
-
tell(addressed: AddressedAkuma, input: AkumaTellInput, signal?: AbortSignal): Promise<AkumaTellResult>;
|
|
34
|
-
ask<T>(addressed: AddressedAkuma, input: AkumaAskInput<T>, signal?: AbortSignal): Promise<AkumaAskResult<T>>;
|
|
35
|
-
}>;
|
|
36
|
-
export declare function selectionSeam(execution: ExecutionContext, spawn: BodyLauncher, reportDiagnostic?: (message: string) => void): SelectionSeam;
|
|
37
11
|
export type AkumaWaitInput = AkumaSetAddressInput & Readonly<{
|
|
38
12
|
completion?: "any" | "all";
|
|
39
13
|
timeoutMs?: number;
|
|
@@ -94,18 +68,18 @@ export declare function dispatchAssociations(repo: Repo | undefined, ids: readon
|
|
|
94
68
|
export declare function statusAkuma(input: AkumaAddressInput & Readonly<{
|
|
95
69
|
path: WorldRoot;
|
|
96
70
|
}>, reportDiagnostic?: (message: string) => void): Promise<AkumaObservation>;
|
|
97
|
-
export declare function
|
|
71
|
+
export declare function waitAkuma(input: AkumaWaitInput & Readonly<{
|
|
98
72
|
path: WorldRoot;
|
|
99
|
-
}
|
|
100
|
-
export declare function
|
|
73
|
+
}>, reportDiagnostic?: (message: string) => void): Promise<AkumaWaitResult>;
|
|
74
|
+
export declare function killAkuma(input: AkumaKillInput & Readonly<{
|
|
101
75
|
path: WorldRoot;
|
|
102
|
-
}
|
|
103
|
-
export declare function
|
|
76
|
+
}>, spawn: BodyLauncher): Promise<AkumaKillResult>;
|
|
77
|
+
export declare function tellAkuma(input: AkumaTellInput & Readonly<{
|
|
104
78
|
path: WorldRoot;
|
|
105
|
-
}
|
|
106
|
-
export declare function
|
|
79
|
+
}>, spawn: BodyLauncher): Promise<AkumaTellResult>;
|
|
80
|
+
export declare function askAkuma<T = string>(input: AkumaAskInput<T> & Readonly<{
|
|
107
81
|
path: WorldRoot;
|
|
108
|
-
}
|
|
82
|
+
}>, spawn: BodyLauncher, reportDiagnostic?: (message: string) => void): Promise<AkumaAskResult<T>>;
|
|
109
83
|
export declare function historyAkuma(input: AkumaHistoryInput & Readonly<{
|
|
110
84
|
path: WorldRoot;
|
|
111
85
|
}>, reportDiagnostic?: (message: string) => void): Promise<AkumaHistoryResult>;
|