@astrosheep/keiyaku 4.6.26 → 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 +113 -35
- package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/build/plugins/claude/skills/keiyaku/SKILL.md +14 -26
- package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +64 -44
- package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +13 -25
- package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +1 -1
- package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +42 -29
- package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +13 -8
- package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +57 -61
- package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
- package/build/plugins/codex/skills/keiyaku/SKILL.md +14 -26
- package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +64 -44
- package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +13 -25
- package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +1 -1
- package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +42 -29
- package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +13 -8
- package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +57 -61
- package/build/plugins/opencode/package.json +1 -1
- package/build/plugins/opencode/skills/keiyaku/SKILL.md +14 -26
- package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +64 -44
- package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +13 -25
- package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +1 -1
- package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +42 -29
- package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +13 -8
- package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +57 -61
- package/build/plugins/pi/README.md +7 -12
- package/build/plugins/pi/akuma-tools.ts +3 -18
- package/build/skills/keiyaku/SKILL.md +14 -26
- package/build/skills/keiyaku-akuma/SKILL.md +64 -44
- package/build/skills/keiyaku-akuma/references/automation.md +13 -25
- package/build/skills/keiyaku-babysit/SKILL.md +1 -1
- package/build/skills/keiyaku-bind/SKILL.md +42 -29
- package/build/skills/keiyaku-debt/SKILL.md +13 -8
- package/build/skills/keiyaku-workflow/SKILL.md +57 -61
- 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/events.d.ts +1 -1
- package/build/src/akuma/providers/codex-app-server/events.js +1 -3
- 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 +14 -37
- 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 +88 -81
- package/build/src/cli/commands/contract.js +27 -26
- package/build/src/cli/commands/debt-grammar.js +15 -15
- package/build/src/cli/commands/debt.js +3 -3
- package/build/src/cli/commands/install.d.ts +1 -1
- package/build/src/cli/commands/install.js +1 -2
- 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 +2 -1
- 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/runtime/proc/windows-launch.exe +0 -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/SKILL.md +14 -26
- package/skills/keiyaku-akuma/SKILL.md +64 -44
- package/skills/keiyaku-akuma/references/automation.md +13 -25
- package/skills/keiyaku-babysit/SKILL.md +1 -1
- package/skills/keiyaku-bind/SKILL.md +42 -29
- package/skills/keiyaku-debt/SKILL.md +13 -8
- package/skills/keiyaku-workflow/SKILL.md +57 -61
- 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
|
@@ -1,533 +1,21 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import type { SnapshotId } from "../core/facts/types.js";
|
|
1
|
+
import type { z } from "zod";
|
|
2
|
+
import type { DeliverData, SnapshotId } from "../core/facts/types.js";
|
|
3
|
+
import type { CompletionEvidence } from "../protocol/completion.js";
|
|
4
|
+
import type { deliverLeadingSchema } from "../protocol/deliver.js";
|
|
5
|
+
import type { candidateContentChangeSchema } from "../protocol/operations.js";
|
|
3
6
|
import { type RepositoryScope } from "../protocol/operations.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
deletions: z.ZodNumber;
|
|
11
|
-
filesChanged: z.ZodNumber;
|
|
12
|
-
insertions: z.ZodNumber;
|
|
13
|
-
}, z.core.$strict>>;
|
|
14
|
-
}, z.core.$strict>>;
|
|
15
|
-
verification: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16
|
-
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
17
|
-
verdict: z.ZodEnum<{
|
|
18
|
-
satisfied: "satisfied";
|
|
19
|
-
unsatisfied: "unsatisfied";
|
|
20
|
-
}>;
|
|
21
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
22
|
-
kind: z.ZodLiteral<"ran">;
|
|
23
|
-
entry: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>>;
|
|
24
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
25
|
-
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
26
|
-
verdict: z.ZodEnum<{
|
|
27
|
-
satisfied: "satisfied";
|
|
28
|
-
unsatisfied: "unsatisfied";
|
|
29
|
-
}>;
|
|
30
|
-
entry: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
|
|
31
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
32
|
-
kind: z.ZodLiteral<"reused">;
|
|
33
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
34
|
-
kind: z.ZodLiteral<"stopped">;
|
|
35
|
-
stop: z.ZodUnion<readonly [z.ZodObject<{
|
|
36
|
-
refusal: z.ZodUnion<readonly [z.ZodObject<{
|
|
37
|
-
kind: z.ZodEnum<{
|
|
38
|
-
terminal: "terminal";
|
|
39
|
-
"contract-missing": "contract-missing";
|
|
40
|
-
}>;
|
|
41
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
42
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
43
|
-
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
44
|
-
contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>;
|
|
45
|
-
}, z.core.$strict>]>;
|
|
46
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
47
|
-
retry: z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
-
kind: z.ZodEnum<{
|
|
49
|
-
exhausted: "exhausted";
|
|
50
|
-
collision: "collision";
|
|
51
|
-
}>;
|
|
52
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
-
kind: z.ZodLiteral<"publication-failed">;
|
|
54
|
-
diagnostic: z.ZodString;
|
|
55
|
-
}, z.core.$strict>]>;
|
|
56
|
-
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
57
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
58
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
59
|
-
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
60
|
-
failure: z.ZodEnum<{
|
|
61
|
-
cancelled: "cancelled";
|
|
62
|
-
"unknown-exit": "unknown-exit";
|
|
63
|
-
}>;
|
|
64
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
65
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
66
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
67
|
-
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
68
|
-
failure: z.ZodEnum<{
|
|
69
|
-
"spawn-error": "spawn-error";
|
|
70
|
-
"candidate-unavailable": "candidate-unavailable";
|
|
71
|
-
}>;
|
|
72
|
-
diagnostic: z.ZodString;
|
|
73
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
74
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
75
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
76
|
-
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
77
|
-
failure: z.ZodLiteral<"environment-failure">;
|
|
78
|
-
diagnostic: z.ZodString;
|
|
79
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
81
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
82
|
-
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
83
|
-
failure: z.ZodLiteral<"environment-failure">;
|
|
84
|
-
name: z.ZodString;
|
|
85
|
-
detail: z.ZodUnion<readonly [z.ZodObject<{
|
|
86
|
-
kind: z.ZodLiteral<"exit">;
|
|
87
|
-
code: z.ZodNumber;
|
|
88
|
-
stdout: z.ZodString;
|
|
89
|
-
stderr: z.ZodString;
|
|
90
|
-
truncated: z.ZodBoolean;
|
|
91
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
93
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
94
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
-
kind: z.ZodLiteral<"timeout">;
|
|
96
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
97
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
98
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
99
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
-
kind: z.ZodLiteral<"unknown-exit">;
|
|
101
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
102
|
-
kind: z.ZodLiteral<"spawn-error">;
|
|
103
|
-
diagnostic: z.ZodString;
|
|
104
|
-
}, z.core.$strict>]>;
|
|
105
|
-
}, z.core.$strict>]>]>;
|
|
106
|
-
}, z.core.$strict>], "kind">>;
|
|
107
|
-
placement: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
108
|
-
refusal: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
109
|
-
kind: z.ZodEnum<{
|
|
110
|
-
terminal: "terminal";
|
|
111
|
-
"contract-missing": "contract-missing";
|
|
112
|
-
"delivery-missing": "delivery-missing";
|
|
113
|
-
}>;
|
|
114
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
115
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
116
|
-
kind: z.ZodLiteral<"gates-unsatisfied">;
|
|
117
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
118
|
-
unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
119
|
-
gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
|
|
120
|
-
current: z.ZodUnion<readonly [z.ZodObject<{
|
|
121
|
-
kind: z.ZodLiteral<"missing">;
|
|
122
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
123
|
-
kind: z.ZodLiteral<"attested">;
|
|
124
|
-
verdict: z.ZodEnum<{
|
|
125
|
-
satisfied: "satisfied";
|
|
126
|
-
unsatisfied: "unsatisfied";
|
|
127
|
-
}>;
|
|
128
|
-
at: z.ZodString;
|
|
129
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
130
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
131
|
-
kind: z.ZodLiteral<"stale">;
|
|
132
|
-
priorVerdict: z.ZodEnum<{
|
|
133
|
-
satisfied: "satisfied";
|
|
134
|
-
unsatisfied: "unsatisfied";
|
|
135
|
-
}>;
|
|
136
|
-
reason: z.ZodOptional<z.ZodObject<{
|
|
137
|
-
kind: z.ZodLiteral<"candidate-content-changed">;
|
|
138
|
-
target: z.ZodOptional<z.ZodString>;
|
|
139
|
-
previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
140
|
-
currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
141
|
-
}, z.core.$strict>>;
|
|
142
|
-
}, z.core.$strict>]>;
|
|
143
|
-
}, z.core.$strict>>>;
|
|
144
|
-
target: z.ZodOptional<z.ZodString>;
|
|
145
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
146
|
-
kind: z.ZodLiteral<"prerequisites-unsatisfied">;
|
|
147
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
148
|
-
unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
149
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
150
|
-
state: z.ZodEnum<{
|
|
151
|
-
abandoned: "abandoned";
|
|
152
|
-
missing: "missing";
|
|
153
|
-
active: "active";
|
|
154
|
-
}>;
|
|
155
|
-
}, z.core.$strict>>>;
|
|
156
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
157
|
-
kind: z.ZodLiteral<"checkout-not-followable">;
|
|
158
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
159
|
-
target: z.ZodString;
|
|
160
|
-
path: z.ZodString;
|
|
161
|
-
reason: z.ZodLiteral<"untracked">;
|
|
162
|
-
paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
163
|
-
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
164
|
-
kind: z.ZodLiteral<"integration-failed">;
|
|
165
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
166
|
-
reason: z.ZodEnum<{
|
|
167
|
-
"not-based-on-target": "not-based-on-target";
|
|
168
|
-
"unrelated-histories": "unrelated-histories";
|
|
169
|
-
conflict: "conflict";
|
|
170
|
-
}>;
|
|
171
|
-
targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
172
|
-
conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
173
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
174
|
-
kind: "integration-failed";
|
|
175
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
176
|
-
reason: "not-based-on-target" | "unrelated-histories" | "conflict";
|
|
177
|
-
targetHead: SnapshotId;
|
|
178
|
-
} & {
|
|
179
|
-
conflictPaths?: readonly string[];
|
|
180
|
-
}, {
|
|
181
|
-
kind: "integration-failed";
|
|
182
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
183
|
-
reason: "not-based-on-target" | "unrelated-histories" | "conflict";
|
|
184
|
-
targetHead: SnapshotId;
|
|
185
|
-
conflictPaths?: readonly string[] | undefined;
|
|
186
|
-
}>>, z.ZodObject<{
|
|
187
|
-
kind: z.ZodLiteral<"integration-unsupported">;
|
|
188
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
189
|
-
requiredGit: z.ZodLiteral<"2.38">;
|
|
190
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
191
|
-
kind: z.ZodLiteral<"target-missing">;
|
|
192
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
193
|
-
}, z.core.$strict>]>;
|
|
194
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
195
|
-
retry: z.ZodUnion<readonly [z.ZodObject<{
|
|
196
|
-
kind: z.ZodEnum<{
|
|
197
|
-
exhausted: "exhausted";
|
|
198
|
-
collision: "collision";
|
|
199
|
-
}>;
|
|
200
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
201
|
-
kind: z.ZodLiteral<"publication-failed">;
|
|
202
|
-
diagnostic: z.ZodString;
|
|
203
|
-
}, z.core.$strict>]>;
|
|
204
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
205
|
-
failure: z.ZodLiteral<"target-placement-failed">;
|
|
206
|
-
diagnostic: z.ZodString;
|
|
207
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
208
|
-
failure: z.ZodLiteral<"target-moved">;
|
|
209
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
210
|
-
target: z.ZodString;
|
|
211
|
-
integratedAt: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
212
|
-
observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
213
|
-
attempts: z.ZodNumber;
|
|
214
|
-
observedTreeEqualsCandidate: z.ZodBoolean;
|
|
215
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
216
|
-
failure: z.ZodLiteral<"target-moved">;
|
|
217
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
218
|
-
target: z.ZodString;
|
|
219
|
-
expected: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
220
|
-
observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
221
|
-
observedTreeEqualsCandidate: z.ZodBoolean;
|
|
222
|
-
}, z.core.$strict>]>>;
|
|
223
|
-
leading: z.ZodObject<{
|
|
224
|
-
kind: z.ZodEnum<{
|
|
225
|
-
"admitted-now": "admitted-now";
|
|
226
|
-
"already-admitted": "already-admitted";
|
|
227
|
-
}>;
|
|
228
|
-
fact: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
|
|
229
|
-
reusedIntegration: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
230
|
-
}, z.core.$strict>;
|
|
231
|
-
contentChange: z.ZodOptional<z.ZodObject<{
|
|
232
|
-
kind: z.ZodLiteral<"candidate-content-changed">;
|
|
233
|
-
target: z.ZodOptional<z.ZodString>;
|
|
234
|
-
previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
235
|
-
currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
236
|
-
}, z.core.$strict>>;
|
|
237
|
-
continuation: z.ZodOptional<z.ZodObject<{
|
|
238
|
-
claimed: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>>;
|
|
239
|
-
stopped: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
240
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
241
|
-
stop: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
242
|
-
refusal: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
243
|
-
kind: z.ZodEnum<{
|
|
244
|
-
terminal: "terminal";
|
|
245
|
-
"contract-missing": "contract-missing";
|
|
246
|
-
"delivery-missing": "delivery-missing";
|
|
247
|
-
}>;
|
|
248
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
249
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
250
|
-
kind: z.ZodLiteral<"gates-unsatisfied">;
|
|
251
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
252
|
-
unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
253
|
-
gate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").Gate, string>>;
|
|
254
|
-
current: z.ZodUnion<readonly [z.ZodObject<{
|
|
255
|
-
kind: z.ZodLiteral<"missing">;
|
|
256
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
257
|
-
kind: z.ZodLiteral<"attested">;
|
|
258
|
-
verdict: z.ZodEnum<{
|
|
259
|
-
satisfied: "satisfied";
|
|
260
|
-
unsatisfied: "unsatisfied";
|
|
261
|
-
}>;
|
|
262
|
-
at: z.ZodString;
|
|
263
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
264
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
265
|
-
kind: z.ZodLiteral<"stale">;
|
|
266
|
-
priorVerdict: z.ZodEnum<{
|
|
267
|
-
satisfied: "satisfied";
|
|
268
|
-
unsatisfied: "unsatisfied";
|
|
269
|
-
}>;
|
|
270
|
-
reason: z.ZodOptional<z.ZodObject<{
|
|
271
|
-
kind: z.ZodLiteral<"candidate-content-changed">;
|
|
272
|
-
target: z.ZodOptional<z.ZodString>;
|
|
273
|
-
previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
274
|
-
currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
275
|
-
}, z.core.$strict>>;
|
|
276
|
-
}, z.core.$strict>]>;
|
|
277
|
-
}, z.core.$strict>>>;
|
|
278
|
-
target: z.ZodOptional<z.ZodString>;
|
|
279
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
280
|
-
kind: z.ZodLiteral<"prerequisites-unsatisfied">;
|
|
281
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
282
|
-
unmet: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
283
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
284
|
-
state: z.ZodEnum<{
|
|
285
|
-
abandoned: "abandoned";
|
|
286
|
-
missing: "missing";
|
|
287
|
-
active: "active";
|
|
288
|
-
}>;
|
|
289
|
-
}, z.core.$strict>>>;
|
|
290
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
291
|
-
kind: z.ZodLiteral<"checkout-not-followable">;
|
|
292
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
293
|
-
target: z.ZodString;
|
|
294
|
-
path: z.ZodString;
|
|
295
|
-
reason: z.ZodLiteral<"untracked">;
|
|
296
|
-
paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
297
|
-
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
298
|
-
kind: z.ZodLiteral<"integration-failed">;
|
|
299
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
300
|
-
reason: z.ZodEnum<{
|
|
301
|
-
"not-based-on-target": "not-based-on-target";
|
|
302
|
-
"unrelated-histories": "unrelated-histories";
|
|
303
|
-
conflict: "conflict";
|
|
304
|
-
}>;
|
|
305
|
-
targetHead: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
306
|
-
conflictPaths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
307
|
-
}, z.core.$strict>, z.ZodTransform<{
|
|
308
|
-
kind: "integration-failed";
|
|
309
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
310
|
-
reason: "not-based-on-target" | "unrelated-histories" | "conflict";
|
|
311
|
-
targetHead: SnapshotId;
|
|
312
|
-
} & {
|
|
313
|
-
conflictPaths?: readonly string[];
|
|
314
|
-
}, {
|
|
315
|
-
kind: "integration-failed";
|
|
316
|
-
contractId: import("../core/facts/types.js").ContractId;
|
|
317
|
-
reason: "not-based-on-target" | "unrelated-histories" | "conflict";
|
|
318
|
-
targetHead: SnapshotId;
|
|
319
|
-
conflictPaths?: readonly string[] | undefined;
|
|
320
|
-
}>>, z.ZodObject<{
|
|
321
|
-
kind: z.ZodLiteral<"integration-unsupported">;
|
|
322
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
323
|
-
requiredGit: z.ZodLiteral<"2.38">;
|
|
324
|
-
}, z.core.$strict>]>, z.ZodObject<{
|
|
325
|
-
kind: z.ZodLiteral<"target-missing">;
|
|
326
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
327
|
-
}, z.core.$strict>]>;
|
|
328
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
329
|
-
retry: z.ZodUnion<readonly [z.ZodObject<{
|
|
330
|
-
kind: z.ZodEnum<{
|
|
331
|
-
exhausted: "exhausted";
|
|
332
|
-
collision: "collision";
|
|
333
|
-
}>;
|
|
334
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
335
|
-
kind: z.ZodLiteral<"publication-failed">;
|
|
336
|
-
diagnostic: z.ZodString;
|
|
337
|
-
}, z.core.$strict>]>;
|
|
338
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
339
|
-
failure: z.ZodLiteral<"target-placement-failed">;
|
|
340
|
-
diagnostic: z.ZodString;
|
|
341
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
342
|
-
failure: z.ZodLiteral<"target-moved">;
|
|
343
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
344
|
-
target: z.ZodString;
|
|
345
|
-
integratedAt: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
346
|
-
observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
347
|
-
attempts: z.ZodNumber;
|
|
348
|
-
observedTreeEqualsCandidate: z.ZodBoolean;
|
|
349
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
350
|
-
failure: z.ZodLiteral<"target-moved">;
|
|
351
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
352
|
-
target: z.ZodString;
|
|
353
|
-
expected: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
354
|
-
observed: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
355
|
-
observedTreeEqualsCandidate: z.ZodBoolean;
|
|
356
|
-
}, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
357
|
-
refusal: z.ZodUnion<readonly [z.ZodObject<{
|
|
358
|
-
kind: z.ZodEnum<{
|
|
359
|
-
terminal: "terminal";
|
|
360
|
-
"contract-missing": "contract-missing";
|
|
361
|
-
}>;
|
|
362
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
363
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
364
|
-
kind: z.ZodLiteral<"verification-declaration-invalid">;
|
|
365
|
-
contractId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>>;
|
|
366
|
-
}, z.core.$strict>]>;
|
|
367
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
368
|
-
retry: z.ZodUnion<readonly [z.ZodObject<{
|
|
369
|
-
kind: z.ZodEnum<{
|
|
370
|
-
exhausted: "exhausted";
|
|
371
|
-
collision: "collision";
|
|
372
|
-
}>;
|
|
373
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
374
|
-
kind: z.ZodLiteral<"publication-failed">;
|
|
375
|
-
diagnostic: z.ZodString;
|
|
376
|
-
}, z.core.$strict>]>;
|
|
377
|
-
}, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
|
|
378
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
379
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
380
|
-
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
381
|
-
failure: z.ZodEnum<{
|
|
382
|
-
cancelled: "cancelled";
|
|
383
|
-
"unknown-exit": "unknown-exit";
|
|
384
|
-
}>;
|
|
385
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
386
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
387
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
388
|
-
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
389
|
-
failure: z.ZodEnum<{
|
|
390
|
-
"spawn-error": "spawn-error";
|
|
391
|
-
"candidate-unavailable": "candidate-unavailable";
|
|
392
|
-
}>;
|
|
393
|
-
diagnostic: z.ZodString;
|
|
394
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
395
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
396
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
397
|
-
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
398
|
-
failure: z.ZodLiteral<"environment-failure">;
|
|
399
|
-
diagnostic: z.ZodString;
|
|
400
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
401
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
402
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
403
|
-
truncated: z.ZodOptional<z.ZodLiteral<true>>;
|
|
404
|
-
failure: z.ZodLiteral<"environment-failure">;
|
|
405
|
-
name: z.ZodString;
|
|
406
|
-
detail: z.ZodUnion<readonly [z.ZodObject<{
|
|
407
|
-
kind: z.ZodLiteral<"exit">;
|
|
408
|
-
code: z.ZodNumber;
|
|
409
|
-
stdout: z.ZodString;
|
|
410
|
-
stderr: z.ZodString;
|
|
411
|
-
truncated: z.ZodBoolean;
|
|
412
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
413
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
414
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
415
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
416
|
-
kind: z.ZodLiteral<"timeout">;
|
|
417
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
418
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
419
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
420
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
421
|
-
kind: z.ZodLiteral<"unknown-exit">;
|
|
422
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
423
|
-
kind: z.ZodLiteral<"spawn-error">;
|
|
424
|
-
diagnostic: z.ZodString;
|
|
425
|
-
}, z.core.$strict>]>;
|
|
426
|
-
}, z.core.$strict>]>]>, z.ZodObject<{
|
|
427
|
-
kind: z.ZodLiteral<"execution-stopped">;
|
|
428
|
-
contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
|
|
429
|
-
stage: z.ZodEnum<{
|
|
430
|
-
admission: "admission";
|
|
431
|
-
placement: "placement";
|
|
432
|
-
verification: "verification";
|
|
433
|
-
continuation: "continuation";
|
|
434
|
-
reconciliation: "reconciliation";
|
|
435
|
-
reintegration: "reintegration";
|
|
436
|
-
}>;
|
|
437
|
-
reason: z.ZodEnum<{
|
|
438
|
-
failed: "failed";
|
|
439
|
-
cancelled: "cancelled";
|
|
440
|
-
}>;
|
|
441
|
-
diagnostic: z.ZodString;
|
|
442
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
443
|
-
kind: z.ZodLiteral<"already-terminal">;
|
|
444
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
445
|
-
kind: z.ZodLiteral<"physical-lag">;
|
|
446
|
-
lags: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
447
|
-
kind: z.ZodLiteral<"worktree-retained">;
|
|
448
|
-
path: z.ZodString;
|
|
449
|
-
diagnostic: z.ZodOptional<z.ZodString>;
|
|
450
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
451
|
-
kind: z.ZodLiteral<"worktree-follow-retained">;
|
|
452
|
-
path: z.ZodString;
|
|
453
|
-
tender: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
454
|
-
head: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
455
|
-
reason: z.ZodEnum<{
|
|
456
|
-
"head-moved": "head-moved";
|
|
457
|
-
"head-attached": "head-attached";
|
|
458
|
-
"operation-in-progress": "operation-in-progress";
|
|
459
|
-
"unsupported-parent-shape": "unsupported-parent-shape";
|
|
460
|
-
}>;
|
|
461
|
-
paths: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
462
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
463
|
-
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
464
|
-
path: z.ZodString;
|
|
465
|
-
paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
466
|
-
head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>>;
|
|
467
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
468
|
-
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
469
|
-
path: z.ZodString;
|
|
470
|
-
target: z.ZodString;
|
|
471
|
-
diagnostic: z.ZodString;
|
|
472
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
473
|
-
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
474
|
-
phase: z.ZodEnum<{
|
|
475
|
-
destroy: "destroy";
|
|
476
|
-
create: "create";
|
|
477
|
-
}>;
|
|
478
|
-
path: z.ZodString;
|
|
479
|
-
command: z.ZodNumber;
|
|
480
|
-
name: z.ZodString;
|
|
481
|
-
failure: z.ZodUnion<readonly [z.ZodObject<{
|
|
482
|
-
kind: z.ZodLiteral<"exit">;
|
|
483
|
-
code: z.ZodNumber;
|
|
484
|
-
stdout: z.ZodString;
|
|
485
|
-
stderr: z.ZodString;
|
|
486
|
-
truncated: z.ZodBoolean;
|
|
487
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
488
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
489
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
490
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
491
|
-
kind: z.ZodLiteral<"timeout">;
|
|
492
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
493
|
-
stdout: z.ZodOptional<z.ZodString>;
|
|
494
|
-
stderr: z.ZodOptional<z.ZodString>;
|
|
495
|
-
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
496
|
-
kind: z.ZodLiteral<"unknown-exit">;
|
|
497
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
498
|
-
kind: z.ZodLiteral<"spawn-error">;
|
|
499
|
-
diagnostic: z.ZodString;
|
|
500
|
-
}, z.core.$strict>]>;
|
|
501
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
502
|
-
kind: z.ZodLiteral<"reconcile-failed">;
|
|
503
|
-
stage: z.ZodEnum<{
|
|
504
|
-
observation: "observation";
|
|
505
|
-
effect: "effect";
|
|
506
|
-
}>;
|
|
507
|
-
diagnostic: z.ZodString;
|
|
508
|
-
}, z.core.$strict>]>>>;
|
|
509
|
-
}, z.core.$strict>]>;
|
|
510
|
-
}, z.core.$strict>>>;
|
|
511
|
-
}, z.core.$strict>>;
|
|
512
|
-
note: z.ZodOptional<z.ZodString>;
|
|
513
|
-
tenderSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
514
|
-
integration: z.ZodObject<{
|
|
515
|
-
predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
516
|
-
snapshot: z.ZodPipe<z.ZodString, z.ZodTransform<SnapshotId, string>>;
|
|
517
|
-
changeId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ChangeId, string>>;
|
|
518
|
-
}, z.core.$strict>;
|
|
519
|
-
method: z.ZodLiteral<"squash">;
|
|
520
|
-
policy: z.ZodObject<{
|
|
521
|
-
requireBranchesToBeUpToDate: z.ZodBoolean;
|
|
522
|
-
}, z.core.$strict>;
|
|
523
|
-
}, z.core.$strict>;
|
|
524
|
-
export type DeliveryValue = z.infer<typeof deliveryValueSchema>;
|
|
7
|
+
import type { ContinuationReport } from "./continuation.js";
|
|
8
|
+
export type DeliveryValue = DeliverData & CompletionEvidence & Readonly<{
|
|
9
|
+
leading: z.infer<typeof deliverLeadingSchema>;
|
|
10
|
+
contentChange?: z.infer<typeof candidateContentChangeSchema> | undefined;
|
|
11
|
+
continuation?: ContinuationReport | undefined;
|
|
12
|
+
}>;
|
|
525
13
|
declare class DeliveryHandle {
|
|
526
14
|
private readonly readDiff;
|
|
527
15
|
readonly leading?: DeliveryValue["leading"];
|
|
528
16
|
readonly contentChange?: DeliveryValue["contentChange"];
|
|
529
17
|
readonly completion?: DeliveryValue["completion"];
|
|
530
|
-
readonly
|
|
18
|
+
readonly gates?: DeliveryValue["gates"];
|
|
531
19
|
readonly placement?: DeliveryValue["placement"];
|
|
532
20
|
readonly continuation?: DeliveryValue["continuation"];
|
|
533
21
|
readonly tenderSnapshot: SnapshotId;
|
|
@@ -535,7 +23,7 @@ declare class DeliveryHandle {
|
|
|
535
23
|
readonly integration: DeliveryValue["integration"];
|
|
536
24
|
readonly method: DeliveryValue["method"];
|
|
537
25
|
readonly policy: DeliveryValue["policy"];
|
|
538
|
-
constructor(identity: Pick<DeliveryValue, "tenderSnapshot" | "integration" | "method" | "policy">, readDiff: () => Promise<string | null>, outcomes?: Partial<Pick<DeliveryValue, "leading" | "contentChange" | "completion" | "
|
|
26
|
+
constructor(identity: Pick<DeliveryValue, "tenderSnapshot" | "integration" | "method" | "policy">, readDiff: () => Promise<string | null>, outcomes?: Partial<Pick<DeliveryValue, "leading" | "contentChange" | "completion" | "gates" | "placement" | "continuation">>);
|
|
539
27
|
diff(): Promise<string | null>;
|
|
540
28
|
}
|
|
541
29
|
export type Delivery = DeliveryHandle;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { deliverLeadingSchema } from "../protocol/deliver.js";
|
|
3
|
-
import { candidateContentChangeSchema, deliverDataSchema, deliveryDiffOperation, } from "../protocol/operations.js";
|
|
4
|
-
import { continuationReportSchema } from "./continuation.js";
|
|
5
|
-
export const deliveryValueSchema = completionEvidenceSchema
|
|
6
|
-
.extend({
|
|
7
|
-
...deliverDataSchema.shape,
|
|
8
|
-
leading: deliverLeadingSchema,
|
|
9
|
-
contentChange: candidateContentChangeSchema.optional(),
|
|
10
|
-
continuation: continuationReportSchema.optional(),
|
|
11
|
-
})
|
|
12
|
-
.strict();
|
|
1
|
+
import { deliveryDiffOperation } from "../protocol/operations.js";
|
|
13
2
|
class DeliveryHandle {
|
|
14
3
|
readDiff;
|
|
15
4
|
constructor(identity, readDiff, outcomes = {}) {
|
|
@@ -4,7 +4,7 @@ import { validated } from "./outcome.js";
|
|
|
4
4
|
import { verificationDefinition } from "../body/decode.js";
|
|
5
5
|
import { actorId } from "../core/facts/types.js";
|
|
6
6
|
import { parseDebtId } from "../debt/identity.js";
|
|
7
|
-
import { prepareVerificationDeclaration } from "../verification/declaration.js";
|
|
7
|
+
import { gateRequirements, prepareVerificationDeclaration } from "../verification/declaration.js";
|
|
8
8
|
export function actorOption(actor) {
|
|
9
9
|
if (actor === undefined)
|
|
10
10
|
return {};
|
|
@@ -88,6 +88,7 @@ export function contractTerms(document, gates, after) {
|
|
|
88
88
|
document: document.document,
|
|
89
89
|
segments: document.segments,
|
|
90
90
|
gates,
|
|
91
|
+
requirements: gateRequirements(gates, verificationDefinition(document)),
|
|
91
92
|
after,
|
|
92
93
|
};
|
|
93
94
|
}
|
|
@@ -55,7 +55,11 @@ export declare class InvocationAccumulator implements ProtocolProgress {
|
|
|
55
55
|
head(contract: ContractId): ContractHead | undefined;
|
|
56
56
|
checkpoint(contract: ContractId): ContractCheckpoint | undefined;
|
|
57
57
|
recordResidue(contract: ContractId, residue: ProgressResidue): void;
|
|
58
|
-
recordVerification(contract: ContractId, snapshot: Parameters<ProtocolProgress["recordVerification"]>[1], result: VerificationResidue
|
|
58
|
+
recordVerification(contract: ContractId, snapshot: Parameters<ProtocolProgress["recordVerification"]>[1], result: VerificationResidue, coordinate?: Readonly<{
|
|
59
|
+
requirement: string;
|
|
60
|
+
index: number;
|
|
61
|
+
}>): void;
|
|
62
|
+
recordVerificationCheck(contract: ContractId, check: import("../protocol/verify.js").VerificationCheck): void;
|
|
59
63
|
/** Replace the current candidate's conclusions; accumulated resources are never erased. */
|
|
60
64
|
recordCandidate(contract: ContractId, evidence: CompletionEvidence): void;
|
|
61
65
|
/** The candidate's completion base, known before an optional observation can fail. */
|
|
@@ -3,7 +3,7 @@ import { encodeEntry } from "../core/facts/codec.js";
|
|
|
3
3
|
import { AuthorityCorruptionError } from "../core/facts/errors.js";
|
|
4
4
|
import { observeExecution, } from "../protocol/execution-observation.js";
|
|
5
5
|
import { reconcileLagScope } from "./reconcile.js";
|
|
6
|
-
const CANDIDATE_CONCLUSION_KEYS = ["completion", "
|
|
6
|
+
const CANDIDATE_CONCLUSION_KEYS = ["completion", "gates", "placement"];
|
|
7
7
|
function entryKey(fact) {
|
|
8
8
|
return `${fact.contract}\u0000${fact.entry}`;
|
|
9
9
|
}
|
|
@@ -91,7 +91,7 @@ export class InvocationAccumulator {
|
|
|
91
91
|
for (const failure of residue.seatClose ?? [])
|
|
92
92
|
this.recordSeatClose(contract, failure);
|
|
93
93
|
}
|
|
94
|
-
recordVerification(contract, snapshot, result) {
|
|
94
|
+
recordVerification(contract, snapshot, result, coordinate) {
|
|
95
95
|
if (result.cleanup !== undefined)
|
|
96
96
|
this.records.push({
|
|
97
97
|
kind: "cleanup",
|
|
@@ -100,6 +100,7 @@ export class InvocationAccumulator {
|
|
|
100
100
|
kind: "verification-cleanup",
|
|
101
101
|
contractId: contract,
|
|
102
102
|
...(snapshot === undefined ? {} : { snapshot }),
|
|
103
|
+
...coordinate,
|
|
103
104
|
failure: result.cleanup,
|
|
104
105
|
},
|
|
105
106
|
});
|
|
@@ -111,10 +112,16 @@ export class InvocationAccumulator {
|
|
|
111
112
|
kind: "worktree-leak",
|
|
112
113
|
contractId: contract,
|
|
113
114
|
...(snapshot === undefined ? {} : { snapshot }),
|
|
115
|
+
...coordinate,
|
|
114
116
|
leak: result.leak,
|
|
115
117
|
},
|
|
116
118
|
});
|
|
117
119
|
}
|
|
120
|
+
recordVerificationCheck(contract, check) {
|
|
121
|
+
const previous = this.candidateConclusions.get(contract);
|
|
122
|
+
const checks = (previous?.checks ?? []);
|
|
123
|
+
this.extendConclusions(contract, { snapshot: check.snapshot, checks: [...checks, check] });
|
|
124
|
+
}
|
|
118
125
|
/** Replace the current candidate's conclusions; accumulated resources are never erased. */
|
|
119
126
|
recordCandidate(contract, evidence) {
|
|
120
127
|
const next = { ...(this.candidateConclusions.get(contract) ?? {}) };
|