@astrosheep/keiyaku 4.5.7 → 4.5.9
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 +10 -0
- package/build/integrations/marketplace/plugins/keiyaku/.claude-plugin/plugin.json +1 -1
- package/build/integrations/marketplace/plugins/keiyaku/.codex-plugin/plugin.json +1 -1
- package/build/integrations/marketplace/plugins/keiyaku/opencode.js +3 -2
- package/build/integrations/marketplace/plugins/keiyaku/package.json +1 -1
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku/SKILL.md +12 -11
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-akuma/SKILL.md +33 -12
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-babysit/SKILL.md +35 -96
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-bind/SKILL.md +28 -49
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-task/SKILL.md +21 -15
- package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-workflow/SKILL.md +148 -89
- package/build/src/akuma/abort.d.ts +2 -1
- package/build/src/akuma/abort.js +6 -23
- package/build/src/akuma/akuma-handle.js +4 -2
- package/build/src/akuma/akuma-observe.d.ts +2 -0
- package/build/src/akuma/akuma-observe.js +1 -0
- package/build/src/akuma/akuma-product.js +9 -7
- package/build/src/akuma/akuma.d.ts +392 -9
- package/build/src/akuma/akuma.js +31 -1
- package/build/src/akuma/allowed.d.ts +1 -1
- package/build/src/akuma/allowed.js +1 -0
- package/build/src/akuma/archetype.js +1 -1
- package/build/src/akuma/body.d.ts +8 -5
- package/build/src/akuma/body.js +12 -5
- package/build/src/akuma/call-request.d.ts +80 -0
- package/build/src/akuma/call-request.js +211 -0
- package/build/src/akuma/heart/facts.d.ts +16 -78
- package/build/src/akuma/heart/facts.js +11 -0
- package/build/src/akuma/heart/index.d.ts +3 -2
- package/build/src/akuma/heart/index.js +4 -1
- package/build/src/akuma/heart/request-authority.d.ts +5 -4
- package/build/src/akuma/heart/request-authority.js +20 -34
- package/build/src/akuma/heart/request-rows.js +12 -23
- package/build/src/akuma/heart/schema.d.ts +1 -1
- package/build/src/akuma/heart/schema.js +5 -13
- package/build/src/akuma/index.d.ts +1 -1
- package/build/src/akuma/index.js +1 -1
- package/build/src/akuma/projection-read.d.ts +1 -0
- package/build/src/akuma/projection-read.js +8 -1
- package/build/src/akuma/projection.d.ts +907 -137
- package/build/src/akuma/projection.js +193 -9
- package/build/src/akuma/provider.d.ts +30 -3
- package/build/src/akuma/provider.js +111 -0
- package/build/src/akuma/providers/acp/core.d.ts +2 -2
- package/build/src/akuma/providers/acp/core.js +13 -6
- package/build/src/akuma/providers/acp/index.js +5 -4
- package/build/src/akuma/providers/claude/events.d.ts +2 -2
- package/build/src/akuma/providers/claude/events.js +16 -3
- package/build/src/akuma/providers/claude/index.d.ts +3 -3
- package/build/src/akuma/providers/claude/index.js +16 -5
- package/build/src/akuma/providers/codex-app-server/events.d.ts +2 -2
- package/build/src/akuma/providers/codex-app-server/events.js +25 -4
- package/build/src/akuma/providers/codex-app-server/index.js +18 -6
- package/build/src/akuma/providers/grok-build/index.js +5 -4
- package/build/src/akuma/providers/opencode-sdk/index.js +66 -25
- package/build/src/akuma/providers/opencode-sdk/session.d.ts +3 -2
- package/build/src/akuma/providers/opencode-sdk/session.js +28 -11
- package/build/src/akuma/providers/pi/index.js +72 -58
- package/build/src/akuma/request-lifecycle.d.ts +4 -10
- package/build/src/akuma/request-lifecycle.js +7 -5
- package/build/src/akuma/request-rendezvous.d.ts +26 -0
- package/build/src/akuma/request-rendezvous.js +100 -0
- package/build/src/akuma/request-serve.d.ts +6 -66
- package/build/src/akuma/request-serve.js +83 -210
- package/build/src/akuma/request-wire.d.ts +109 -115
- package/build/src/akuma/request-wire.js +63 -318
- package/build/src/akuma/requests.d.ts +19 -47
- package/build/src/akuma/requests.js +51 -107
- package/build/src/akuma/turn-drive.d.ts +5 -3
- package/build/src/akuma/turn-drive.js +39 -11
- package/build/src/akuma-body.d.ts +7 -2
- package/build/src/akuma-body.js +68 -46
- package/build/src/body/amend.js +18 -19
- package/build/src/cli/accepted.d.ts +1 -1
- package/build/src/cli/accepted.js +2 -2
- package/build/src/cli/commands/akuma-invoke.d.ts +2 -0
- package/build/src/cli/commands/akuma-invoke.js +17 -9
- package/build/src/cli/commands/akuma.js +8 -8
- package/build/src/cli/commands/contract-invoke.d.ts +3 -2
- package/build/src/cli/commands/contract-invoke.js +42 -30
- package/build/src/cli/commands/contract.d.ts +16 -20
- package/build/src/cli/commands/contract.js +58 -25
- package/build/src/cli/commands/install.d.ts +2 -1
- package/build/src/cli/commands/install.js +3 -2
- package/build/src/cli/commands/task-invoke.d.ts +3 -0
- package/build/src/cli/commands/task-invoke.js +23 -140
- package/build/src/cli/commands/task.js +54 -20
- package/build/src/cli/invoke.js +39 -25
- package/build/src/cli/main.js +2 -1
- package/build/src/cli/parse.d.ts +2 -2
- package/build/src/cli/parse.js +56 -27
- package/build/src/cli/render/akuma-activity.d.ts +3 -0
- package/build/src/cli/render/akuma-activity.js +45 -29
- package/build/src/cli/render/akuma-tool.d.ts +5 -1
- package/build/src/cli/render/akuma.js +4 -8
- package/build/src/cli/render/audit.js +1 -1
- package/build/src/cli/render/catalog.js +80 -21
- package/build/src/cli/render/contract-observation.d.ts +2 -0
- package/build/src/cli/render/contract-observation.js +11 -0
- package/build/src/cli/render/contract.js +35 -62
- package/build/src/cli/render/kanshi-akuma.d.ts +8 -0
- package/build/src/cli/render/kanshi-akuma.js +132 -0
- package/build/src/cli/render/kanshi.js +131 -213
- package/build/src/cli/render/receipt.d.ts +1 -2
- package/build/src/cli/render/receipt.js +76 -26
- package/build/src/cli/render/refusal.js +2 -10
- package/build/src/cli/render/region.js +5 -2
- package/build/src/cli/render/settings.d.ts +1 -1
- package/build/src/cli/render/settings.js +27 -8
- package/build/src/cli/render/task.js +22 -5
- package/build/src/cli/render/terminal.d.ts +32 -1
- package/build/src/cli/render/terminal.js +77 -1
- package/build/src/cli/result.d.ts +3 -3
- package/build/src/cli/runtime.js +4 -2
- package/build/src/cli/selectors.d.ts +2 -1
- package/build/src/cli/selectors.js +4 -3
- package/build/src/cli/square-edge.js +120 -36
- package/build/src/cli/usage.js +2 -1
- package/build/src/contract-guidance.d.ts +5 -0
- package/build/src/contract-guidance.js +121 -0
- package/build/src/contract-worktree.d.ts +0 -1
- package/build/src/contract-worktree.js +32 -83
- package/build/src/coordination/sqlite-transaction-lock.d.ts +1 -0
- package/build/src/coordination/sqlite-transaction-lock.js +5 -0
- package/build/src/core/facts/codec.d.ts +2 -0
- package/build/src/core/facts/codec.js +4 -0
- package/build/src/core/verbs/placement.d.ts +6 -1
- package/build/src/core/verbs/placement.js +5 -3
- package/build/src/dispatch/index.d.ts +0 -2
- package/build/src/dispatch/index.js +54 -55
- package/build/src/git/admission.js +2 -2
- package/build/src/git/hooks.d.ts +9 -15
- package/build/src/git/hooks.js +23 -317
- package/build/src/git/nuke.d.ts +2 -1
- package/build/src/git/nuke.js +39 -21
- package/build/src/git/private-state-seat.d.ts +12 -0
- package/build/src/git/private-state-seat.js +39 -0
- package/build/src/git/process.d.ts +6 -0
- package/build/src/git/process.js +26 -11
- package/build/src/git/read-observation.js +29 -20
- package/build/src/git/reconcile.d.ts +13 -1
- package/build/src/git/reconcile.js +70 -11
- package/build/src/git/ref-migration.d.ts +22 -0
- package/build/src/git/ref-migration.js +55 -0
- package/build/src/git/repository.d.ts +10 -6
- package/build/src/git/repository.js +16 -8
- package/build/src/git/target-placement.d.ts +1 -0
- package/build/src/git/target-placement.js +5 -0
- package/build/src/git/tender.d.ts +1 -0
- package/build/src/git/terminal-reconcile.d.ts +1 -1
- package/build/src/git/terminal-reconcile.js +22 -20
- package/build/src/git/workspace.d.ts +14 -0
- package/build/src/git/workspace.js +44 -0
- package/build/src/kanshi/index.d.ts +1 -1
- package/build/src/kanshi/read.js +16 -16
- package/build/src/kanshi/report.d.ts +2 -2
- package/build/src/library/address.d.ts +9 -3
- package/build/src/library/address.js +3 -2
- package/build/src/library/akuma-creation.d.ts +4 -3
- package/build/src/library/akuma-creation.js +19 -13
- package/build/src/library/audit.d.ts +14 -6
- package/build/src/library/audit.js +13 -23
- package/build/src/library/catalog.d.ts +3 -1
- package/build/src/library/catalog.js +20 -6
- package/build/src/library/composition.d.ts +385 -0
- package/build/src/library/composition.js +28 -0
- package/build/src/library/configuration.js +8 -2
- package/build/src/library/continuation.js +66 -30
- package/build/src/library/contract-bind.js +10 -2
- package/build/src/library/contract-forwarding-reconciliation-result.d.ts +102 -0
- package/build/src/library/contract-forwarding-reconciliation-result.js +92 -0
- package/build/src/library/contract-forwarding-result.d.ts +4464 -0
- package/build/src/library/contract-forwarding-result.js +521 -0
- package/build/src/library/contract-forwarding.d.ts +71 -0
- package/build/src/library/contract-forwarding.js +114 -0
- package/build/src/library/contract-handle.d.ts +38 -0
- package/build/src/library/contract-handle.js +314 -0
- package/build/src/library/contract-operations.d.ts +214 -69
- package/build/src/library/contract-operations.js +189 -118
- package/build/src/library/contract-types.d.ts +7 -3
- package/build/src/library/contract.d.ts +21 -34
- package/build/src/library/contract.js +29 -287
- package/build/src/library/fleet-result.d.ts +1580 -0
- package/build/src/library/fleet-result.js +98 -0
- package/build/src/library/fleet.d.ts +112 -54
- package/build/src/library/fleet.js +211 -71
- package/build/src/library/input.d.ts +3 -1
- package/build/src/library/input.js +11 -1
- package/build/src/library/keiyaku.d.ts +388 -20
- package/build/src/library/keiyaku.js +13 -21
- package/build/src/library/mutation.d.ts +3 -3
- package/build/src/library/mutation.js +5 -9
- package/build/src/library/nuke.d.ts +1 -1
- package/build/src/library/nuke.js +4 -3
- package/build/src/library/reconcile.d.ts +4 -0
- package/build/src/library/reconcile.js +2 -0
- package/build/src/library/refusal.d.ts +0 -9
- package/build/src/library/refusal.js +0 -7
- package/build/src/protocol/amend.js +56 -50
- package/build/src/protocol/attempt.d.ts +2 -0
- package/build/src/protocol/attempt.js +8 -1
- package/build/src/protocol/completion.js +7 -0
- package/build/src/protocol/deliver.js +6 -2
- package/build/src/protocol/operations.d.ts +4 -1
- package/build/src/protocol/operations.js +5 -2
- package/build/src/protocol/placement.d.ts +1 -0
- package/build/src/protocol/placement.js +52 -38
- package/build/src/protocol/read/observation.d.ts +1 -4
- package/build/src/protocol/read/observation.js +2 -15
- package/build/src/protocol/reintegrate.js +62 -58
- package/build/src/protocol/review.js +5 -0
- package/build/src/protocol/run.js +17 -13
- package/build/src/runtime/proc/run.d.ts +9 -0
- package/build/src/runtime/proc/run.js +51 -4
- package/build/src/runtime/proc/termination.js +26 -22
- package/build/src/runtime/proc/windows-launch.exe +0 -0
- package/build/src/settlement/holder.d.ts +2 -1
- package/build/src/settlement/holder.js +15 -4
- package/build/src/settlement/settle.js +99 -33
- package/build/src/task/board.d.ts +68 -27
- package/build/src/task/board.js +31 -1
- package/build/src/task/catalog.d.ts +4 -0
- package/build/src/task/catalog.js +23 -0
- package/build/src/task/compose-language.js +33 -7
- package/build/src/task/compose-parser.d.ts +1 -1
- package/build/src/task/compose-parser.js +1 -1
- package/build/src/task/compose.js +2 -0
- package/build/src/task/index.d.ts +12 -4
- package/build/src/task/index.js +97 -16
- package/build/src/task/mutation-result.d.ts +923 -0
- package/build/src/task/mutation-result.js +140 -0
- package/build/src/task/mutation.d.ts +552 -28
- package/build/src/task/mutation.js +304 -97
- package/build/src/task/operations.d.ts +1 -4
- package/build/src/task/operations.js +0 -6
- package/build/src/task/public.d.ts +2 -0
- package/build/src/task/public.js +1 -0
- package/build/src/workspace-place.d.ts +7 -2
- package/build/src/workspace-place.js +34 -24
- package/build/src/world.d.ts +1 -0
- package/build/src/world.js +11 -0
- package/package.json +8 -6
- package/build/src/akuma/request-execution.d.ts +0 -8
- package/build/src/akuma/request-execution.js +0 -98
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const reconciliationLagSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"worktree-retained">;
|
|
4
|
+
path: z.ZodString;
|
|
5
|
+
}, z.core.$strict>, z.ZodPipe<z.ZodObject<{
|
|
6
|
+
kind: z.ZodLiteral<"worktree-follow-retained">;
|
|
7
|
+
path: z.ZodString;
|
|
8
|
+
tender: z.ZodPipe<z.ZodString, z.ZodTransform<import("./contract.js").SnapshotId, string>>;
|
|
9
|
+
head: z.ZodPipe<z.ZodString, z.ZodTransform<import("./contract.js").SnapshotId, string>>;
|
|
10
|
+
reason: z.ZodEnum<{
|
|
11
|
+
"head-moved": "head-moved";
|
|
12
|
+
"head-attached": "head-attached";
|
|
13
|
+
"operation-in-progress": "operation-in-progress";
|
|
14
|
+
"unsupported-parent-shape": "unsupported-parent-shape";
|
|
15
|
+
}>;
|
|
16
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
18
|
+
kind: "worktree-follow-retained";
|
|
19
|
+
path: string;
|
|
20
|
+
tender: import("./contract.js").SnapshotId;
|
|
21
|
+
head: import("./contract.js").SnapshotId;
|
|
22
|
+
reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
|
|
23
|
+
} | {
|
|
24
|
+
paths: string[];
|
|
25
|
+
kind: "worktree-follow-retained";
|
|
26
|
+
path: string;
|
|
27
|
+
tender: import("./contract.js").SnapshotId;
|
|
28
|
+
head: import("./contract.js").SnapshotId;
|
|
29
|
+
reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
|
|
30
|
+
}, {
|
|
31
|
+
kind: "worktree-follow-retained";
|
|
32
|
+
path: string;
|
|
33
|
+
tender: import("./contract.js").SnapshotId;
|
|
34
|
+
head: import("./contract.js").SnapshotId;
|
|
35
|
+
reason: "head-moved" | "head-attached" | "operation-in-progress" | "unsupported-parent-shape";
|
|
36
|
+
paths?: string[] | undefined;
|
|
37
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
38
|
+
kind: z.ZodLiteral<"unsealed-bytes">;
|
|
39
|
+
path: z.ZodString;
|
|
40
|
+
paths: z.ZodArray<z.ZodString>;
|
|
41
|
+
head: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("./contract.js").SnapshotId, string>>>;
|
|
42
|
+
}, z.core.$strict>, z.ZodTransform<{
|
|
43
|
+
kind: "unsealed-bytes";
|
|
44
|
+
path: string;
|
|
45
|
+
paths: string[];
|
|
46
|
+
} | {
|
|
47
|
+
head: import("./contract.js").SnapshotId;
|
|
48
|
+
kind: "unsealed-bytes";
|
|
49
|
+
path: string;
|
|
50
|
+
paths: string[];
|
|
51
|
+
}, {
|
|
52
|
+
kind: "unsealed-bytes";
|
|
53
|
+
path: string;
|
|
54
|
+
paths: string[];
|
|
55
|
+
head?: import("./contract.js").SnapshotId | undefined;
|
|
56
|
+
}>>, z.ZodObject<{
|
|
57
|
+
kind: z.ZodLiteral<"target-checkout-retained">;
|
|
58
|
+
path: z.ZodString;
|
|
59
|
+
target: z.ZodString;
|
|
60
|
+
diagnostic: z.ZodString;
|
|
61
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
+
kind: z.ZodLiteral<"reconcile-failed">;
|
|
63
|
+
stage: z.ZodEnum<{
|
|
64
|
+
observation: "observation";
|
|
65
|
+
effect: "effect";
|
|
66
|
+
}>;
|
|
67
|
+
diagnostic: z.ZodString;
|
|
68
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
69
|
+
kind: z.ZodLiteral<"ref-migration-conflict">;
|
|
70
|
+
legacyRef: z.ZodString;
|
|
71
|
+
legacyOid: z.ZodPipe<z.ZodString, z.ZodTransform<import("./contract.js").SnapshotId, string>>;
|
|
72
|
+
currentRef: z.ZodString;
|
|
73
|
+
currentOid: z.ZodPipe<z.ZodString, z.ZodTransform<import("./contract.js").SnapshotId, string>>;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
kind: z.ZodLiteral<"worktree-hook-failed">;
|
|
76
|
+
phase: z.ZodEnum<{
|
|
77
|
+
destroy: "destroy";
|
|
78
|
+
create: "create";
|
|
79
|
+
}>;
|
|
80
|
+
path: z.ZodString;
|
|
81
|
+
command: z.ZodNumber;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
failure: z.ZodUnion<readonly [z.ZodObject<{
|
|
84
|
+
kind: z.ZodLiteral<"exit">;
|
|
85
|
+
code: z.ZodNumber;
|
|
86
|
+
stdout: z.ZodString;
|
|
87
|
+
stderr: z.ZodString;
|
|
88
|
+
truncated: z.ZodBoolean;
|
|
89
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
90
|
+
kind: z.ZodLiteral<"timeout">;
|
|
91
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
+
kind: z.ZodLiteral<"spawn-error">;
|
|
93
|
+
diagnostic: z.ZodString;
|
|
94
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
95
|
+
kind: z.ZodLiteral<"unknown-exit">;
|
|
96
|
+
}, z.core.$strict>]>;
|
|
97
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
98
|
+
kind: z.ZodLiteral<"contract-file-failed">;
|
|
99
|
+
worktree: z.ZodString;
|
|
100
|
+
path: z.ZodString;
|
|
101
|
+
diagnostic: z.ZodString;
|
|
102
|
+
}, z.core.$strict>]>;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { mintSnapshotId } from "../git/identity.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
function canonicalSnapshot(value, context) {
|
|
4
|
+
try {
|
|
5
|
+
return mintSnapshotId(value);
|
|
6
|
+
}
|
|
7
|
+
catch {
|
|
8
|
+
context.addIssue({ code: "custom", message: "expected SnapshotId" });
|
|
9
|
+
return z.NEVER;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
const nonblankStringSchema = z.string().refine((value) => value.trim() !== "");
|
|
13
|
+
const snapshotIdSchema = z.string().transform(canonicalSnapshot);
|
|
14
|
+
const hookFailureSchema = z.union([
|
|
15
|
+
z
|
|
16
|
+
.object({
|
|
17
|
+
kind: z.literal("exit"),
|
|
18
|
+
code: z.number().int(),
|
|
19
|
+
stdout: z.string(),
|
|
20
|
+
stderr: z.string(),
|
|
21
|
+
truncated: z.boolean(),
|
|
22
|
+
})
|
|
23
|
+
.strict(),
|
|
24
|
+
z.object({ kind: z.literal("timeout") }).strict(),
|
|
25
|
+
z.object({ kind: z.literal("spawn-error"), diagnostic: z.string() }).strict(),
|
|
26
|
+
z.object({ kind: z.literal("unknown-exit") }).strict(),
|
|
27
|
+
]);
|
|
28
|
+
export const reconciliationLagSchema = z.union([
|
|
29
|
+
z.object({ kind: z.literal("worktree-retained"), path: nonblankStringSchema }).strict(),
|
|
30
|
+
z
|
|
31
|
+
.object({
|
|
32
|
+
kind: z.literal("worktree-follow-retained"),
|
|
33
|
+
path: nonblankStringSchema,
|
|
34
|
+
tender: snapshotIdSchema,
|
|
35
|
+
head: snapshotIdSchema,
|
|
36
|
+
reason: z.enum(["head-moved", "head-attached", "operation-in-progress", "unsupported-parent-shape"]),
|
|
37
|
+
paths: z.array(nonblankStringSchema).optional(),
|
|
38
|
+
})
|
|
39
|
+
.strict()
|
|
40
|
+
.transform(({ paths, ...lag }) => (paths === undefined ? lag : { ...lag, paths })),
|
|
41
|
+
z
|
|
42
|
+
.object({
|
|
43
|
+
kind: z.literal("unsealed-bytes"),
|
|
44
|
+
path: nonblankStringSchema,
|
|
45
|
+
paths: z.array(nonblankStringSchema),
|
|
46
|
+
head: snapshotIdSchema.optional(),
|
|
47
|
+
})
|
|
48
|
+
.strict()
|
|
49
|
+
.transform(({ head, ...lag }) => (head === undefined ? lag : { ...lag, head })),
|
|
50
|
+
z
|
|
51
|
+
.object({
|
|
52
|
+
kind: z.literal("target-checkout-retained"),
|
|
53
|
+
path: nonblankStringSchema,
|
|
54
|
+
target: nonblankStringSchema,
|
|
55
|
+
diagnostic: nonblankStringSchema,
|
|
56
|
+
})
|
|
57
|
+
.strict(),
|
|
58
|
+
z
|
|
59
|
+
.object({
|
|
60
|
+
kind: z.literal("reconcile-failed"),
|
|
61
|
+
stage: z.enum(["observation", "effect"]),
|
|
62
|
+
diagnostic: nonblankStringSchema,
|
|
63
|
+
})
|
|
64
|
+
.strict(),
|
|
65
|
+
z
|
|
66
|
+
.object({
|
|
67
|
+
kind: z.literal("ref-migration-conflict"),
|
|
68
|
+
legacyRef: nonblankStringSchema,
|
|
69
|
+
legacyOid: snapshotIdSchema,
|
|
70
|
+
currentRef: nonblankStringSchema,
|
|
71
|
+
currentOid: snapshotIdSchema,
|
|
72
|
+
})
|
|
73
|
+
.strict(),
|
|
74
|
+
z
|
|
75
|
+
.object({
|
|
76
|
+
kind: z.literal("worktree-hook-failed"),
|
|
77
|
+
phase: z.enum(["create", "destroy"]),
|
|
78
|
+
path: nonblankStringSchema,
|
|
79
|
+
command: z.number().int().nonnegative(),
|
|
80
|
+
name: nonblankStringSchema,
|
|
81
|
+
failure: hookFailureSchema,
|
|
82
|
+
})
|
|
83
|
+
.strict(),
|
|
84
|
+
z
|
|
85
|
+
.object({
|
|
86
|
+
kind: z.literal("contract-file-failed"),
|
|
87
|
+
worktree: nonblankStringSchema,
|
|
88
|
+
path: nonblankStringSchema,
|
|
89
|
+
diagnostic: nonblankStringSchema,
|
|
90
|
+
})
|
|
91
|
+
.strict(),
|
|
92
|
+
]);
|