@astrosheep/keiyaku 4.5.7 → 4.5.8

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.
Files changed (234) hide show
  1. package/README.md +10 -0
  2. package/build/integrations/marketplace/plugins/keiyaku/.claude-plugin/plugin.json +1 -1
  3. package/build/integrations/marketplace/plugins/keiyaku/.codex-plugin/plugin.json +1 -1
  4. package/build/integrations/marketplace/plugins/keiyaku/opencode.js +3 -2
  5. package/build/integrations/marketplace/plugins/keiyaku/package.json +1 -1
  6. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku/SKILL.md +10 -9
  7. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-akuma/SKILL.md +22 -1
  8. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-babysit/SKILL.md +35 -96
  9. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-bind/SKILL.md +28 -49
  10. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-task/SKILL.md +21 -15
  11. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-workflow/SKILL.md +148 -89
  12. package/build/src/akuma/abort.d.ts +2 -1
  13. package/build/src/akuma/abort.js +6 -23
  14. package/build/src/akuma/akuma-handle.js +4 -2
  15. package/build/src/akuma/akuma-observe.d.ts +2 -0
  16. package/build/src/akuma/akuma-observe.js +1 -0
  17. package/build/src/akuma/akuma-product.js +9 -7
  18. package/build/src/akuma/akuma.d.ts +372 -9
  19. package/build/src/akuma/akuma.js +31 -1
  20. package/build/src/akuma/allowed.d.ts +1 -1
  21. package/build/src/akuma/allowed.js +1 -0
  22. package/build/src/akuma/body.d.ts +6 -4
  23. package/build/src/akuma/body.js +5 -3
  24. package/build/src/akuma/call-request.d.ts +80 -0
  25. package/build/src/akuma/call-request.js +211 -0
  26. package/build/src/akuma/heart/facts.d.ts +6 -78
  27. package/build/src/akuma/heart/index.d.ts +1 -1
  28. package/build/src/akuma/heart/request-authority.d.ts +5 -4
  29. package/build/src/akuma/heart/request-authority.js +20 -34
  30. package/build/src/akuma/heart/request-rows.js +12 -23
  31. package/build/src/akuma/heart/schema.d.ts +1 -1
  32. package/build/src/akuma/heart/schema.js +5 -13
  33. package/build/src/akuma/index.d.ts +1 -1
  34. package/build/src/akuma/index.js +1 -1
  35. package/build/src/akuma/projection-read.d.ts +1 -0
  36. package/build/src/akuma/projection-read.js +8 -1
  37. package/build/src/akuma/projection.d.ts +856 -137
  38. package/build/src/akuma/projection.js +190 -0
  39. package/build/src/akuma/provider.d.ts +30 -3
  40. package/build/src/akuma/provider.js +104 -0
  41. package/build/src/akuma/providers/acp/core.d.ts +2 -2
  42. package/build/src/akuma/providers/acp/core.js +13 -6
  43. package/build/src/akuma/providers/acp/index.js +5 -4
  44. package/build/src/akuma/providers/claude/index.d.ts +3 -3
  45. package/build/src/akuma/providers/claude/index.js +16 -5
  46. package/build/src/akuma/providers/codex-app-server/events.js +1 -1
  47. package/build/src/akuma/providers/codex-app-server/index.js +18 -6
  48. package/build/src/akuma/providers/grok-build/index.js +5 -4
  49. package/build/src/akuma/providers/opencode-sdk/index.js +66 -25
  50. package/build/src/akuma/providers/opencode-sdk/session.d.ts +3 -2
  51. package/build/src/akuma/providers/opencode-sdk/session.js +28 -11
  52. package/build/src/akuma/providers/pi/index.js +42 -14
  53. package/build/src/akuma/request-lifecycle.d.ts +3 -9
  54. package/build/src/akuma/request-lifecycle.js +4 -4
  55. package/build/src/akuma/request-rendezvous.d.ts +26 -0
  56. package/build/src/akuma/request-rendezvous.js +100 -0
  57. package/build/src/akuma/request-serve.d.ts +5 -65
  58. package/build/src/akuma/request-serve.js +81 -208
  59. package/build/src/akuma/request-wire.d.ts +109 -115
  60. package/build/src/akuma/request-wire.js +63 -318
  61. package/build/src/akuma/requests.d.ts +19 -47
  62. package/build/src/akuma/requests.js +51 -107
  63. package/build/src/akuma/turn-drive.d.ts +5 -3
  64. package/build/src/akuma/turn-drive.js +32 -10
  65. package/build/src/akuma-body.d.ts +7 -2
  66. package/build/src/akuma-body.js +68 -46
  67. package/build/src/cli/accepted.d.ts +1 -1
  68. package/build/src/cli/accepted.js +2 -2
  69. package/build/src/cli/commands/akuma-invoke.d.ts +2 -0
  70. package/build/src/cli/commands/akuma-invoke.js +17 -9
  71. package/build/src/cli/commands/akuma.js +7 -7
  72. package/build/src/cli/commands/contract-invoke.d.ts +3 -2
  73. package/build/src/cli/commands/contract-invoke.js +26 -19
  74. package/build/src/cli/commands/contract.d.ts +13 -13
  75. package/build/src/cli/commands/contract.js +32 -17
  76. package/build/src/cli/commands/install.d.ts +1 -1
  77. package/build/src/cli/commands/install.js +1 -1
  78. package/build/src/cli/commands/task-invoke.d.ts +3 -0
  79. package/build/src/cli/commands/task-invoke.js +23 -140
  80. package/build/src/cli/commands/task.js +54 -20
  81. package/build/src/cli/invoke.js +39 -25
  82. package/build/src/cli/main.js +2 -1
  83. package/build/src/cli/parse.d.ts +2 -2
  84. package/build/src/cli/parse.js +37 -22
  85. package/build/src/cli/render/akuma-activity.d.ts +4 -1
  86. package/build/src/cli/render/akuma-activity.js +45 -30
  87. package/build/src/cli/render/akuma-tool.d.ts +5 -1
  88. package/build/src/cli/render/akuma.js +5 -9
  89. package/build/src/cli/render/audit.js +1 -1
  90. package/build/src/cli/render/catalog.js +80 -21
  91. package/build/src/cli/render/contract-observation.d.ts +2 -0
  92. package/build/src/cli/render/contract-observation.js +11 -0
  93. package/build/src/cli/render/contract.js +25 -65
  94. package/build/src/cli/render/kanshi-akuma.d.ts +8 -0
  95. package/build/src/cli/render/kanshi-akuma.js +111 -0
  96. package/build/src/cli/render/kanshi.js +108 -213
  97. package/build/src/cli/render/receipt.d.ts +1 -2
  98. package/build/src/cli/render/receipt.js +76 -26
  99. package/build/src/cli/render/refusal.js +2 -10
  100. package/build/src/cli/render/region.js +5 -2
  101. package/build/src/cli/render/settings.d.ts +1 -1
  102. package/build/src/cli/render/settings.js +27 -8
  103. package/build/src/cli/render/task.js +22 -5
  104. package/build/src/cli/render/terminal.d.ts +28 -0
  105. package/build/src/cli/render/terminal.js +65 -0
  106. package/build/src/cli/result.d.ts +3 -3
  107. package/build/src/cli/runtime.js +3 -1
  108. package/build/src/cli/selectors.d.ts +2 -1
  109. package/build/src/cli/selectors.js +4 -3
  110. package/build/src/cli/square-edge.js +120 -36
  111. package/build/src/cli/usage.js +2 -1
  112. package/build/src/contract-guidance.d.ts +5 -0
  113. package/build/src/contract-guidance.js +121 -0
  114. package/build/src/contract-worktree.d.ts +0 -1
  115. package/build/src/contract-worktree.js +32 -83
  116. package/build/src/coordination/sqlite-transaction-lock.d.ts +1 -0
  117. package/build/src/coordination/sqlite-transaction-lock.js +5 -0
  118. package/build/src/core/facts/codec.d.ts +2 -0
  119. package/build/src/core/facts/codec.js +4 -0
  120. package/build/src/core/verbs/placement.d.ts +6 -1
  121. package/build/src/core/verbs/placement.js +5 -3
  122. package/build/src/dispatch/index.d.ts +0 -2
  123. package/build/src/dispatch/index.js +54 -55
  124. package/build/src/git/admission.js +2 -2
  125. package/build/src/git/hooks.d.ts +9 -15
  126. package/build/src/git/hooks.js +23 -317
  127. package/build/src/git/nuke.d.ts +2 -1
  128. package/build/src/git/nuke.js +36 -18
  129. package/build/src/git/private-state-seat.d.ts +12 -0
  130. package/build/src/git/private-state-seat.js +39 -0
  131. package/build/src/git/process.d.ts +6 -0
  132. package/build/src/git/process.js +19 -7
  133. package/build/src/git/read-observation.js +29 -20
  134. package/build/src/git/reconcile.d.ts +11 -0
  135. package/build/src/git/reconcile.js +64 -11
  136. package/build/src/git/repository.d.ts +6 -2
  137. package/build/src/git/repository.js +8 -0
  138. package/build/src/git/target-placement.d.ts +1 -0
  139. package/build/src/git/target-placement.js +5 -0
  140. package/build/src/git/tender.d.ts +1 -0
  141. package/build/src/git/terminal-reconcile.d.ts +1 -1
  142. package/build/src/git/terminal-reconcile.js +22 -20
  143. package/build/src/git/workspace.d.ts +14 -0
  144. package/build/src/git/workspace.js +44 -0
  145. package/build/src/kanshi/index.d.ts +1 -1
  146. package/build/src/kanshi/read.js +16 -16
  147. package/build/src/kanshi/report.d.ts +2 -2
  148. package/build/src/library/address.d.ts +9 -3
  149. package/build/src/library/address.js +3 -2
  150. package/build/src/library/akuma-creation.d.ts +4 -3
  151. package/build/src/library/akuma-creation.js +19 -13
  152. package/build/src/library/audit.d.ts +1 -1
  153. package/build/src/library/audit.js +5 -3
  154. package/build/src/library/catalog.d.ts +3 -1
  155. package/build/src/library/catalog.js +20 -6
  156. package/build/src/library/composition.d.ts +371 -0
  157. package/build/src/library/composition.js +28 -0
  158. package/build/src/library/configuration.js +8 -2
  159. package/build/src/library/continuation.js +66 -30
  160. package/build/src/library/contract-bind.js +10 -2
  161. package/build/src/library/contract-forwarding-reconciliation-result.d.ts +96 -0
  162. package/build/src/library/contract-forwarding-reconciliation-result.js +83 -0
  163. package/build/src/library/contract-forwarding-result.d.ts +6723 -0
  164. package/build/src/library/contract-forwarding-result.js +521 -0
  165. package/build/src/library/contract-forwarding.d.ts +72 -0
  166. package/build/src/library/contract-forwarding.js +125 -0
  167. package/build/src/library/contract-handle.d.ts +36 -0
  168. package/build/src/library/contract-handle.js +313 -0
  169. package/build/src/library/contract-operations.d.ts +1044 -67
  170. package/build/src/library/contract-operations.js +190 -118
  171. package/build/src/library/contract.d.ts +11 -32
  172. package/build/src/library/contract.js +16 -289
  173. package/build/src/library/fleet-result.d.ts +1454 -0
  174. package/build/src/library/fleet-result.js +96 -0
  175. package/build/src/library/fleet.d.ts +112 -54
  176. package/build/src/library/fleet.js +211 -71
  177. package/build/src/library/input.d.ts +2 -0
  178. package/build/src/library/input.js +4 -0
  179. package/build/src/library/keiyaku.d.ts +371 -20
  180. package/build/src/library/keiyaku.js +8 -21
  181. package/build/src/library/mutation.d.ts +3 -3
  182. package/build/src/library/mutation.js +5 -9
  183. package/build/src/library/nuke.d.ts +1 -1
  184. package/build/src/library/nuke.js +4 -3
  185. package/build/src/library/reconcile.d.ts +4 -0
  186. package/build/src/library/reconcile.js +2 -0
  187. package/build/src/library/refusal.d.ts +0 -9
  188. package/build/src/library/refusal.js +0 -7
  189. package/build/src/protocol/amend.js +56 -50
  190. package/build/src/protocol/attempt.d.ts +2 -0
  191. package/build/src/protocol/attempt.js +8 -1
  192. package/build/src/protocol/completion.js +7 -0
  193. package/build/src/protocol/deliver.js +6 -2
  194. package/build/src/protocol/operations.d.ts +4 -1
  195. package/build/src/protocol/operations.js +5 -2
  196. package/build/src/protocol/placement.d.ts +1 -0
  197. package/build/src/protocol/placement.js +52 -38
  198. package/build/src/protocol/read/observation.d.ts +1 -4
  199. package/build/src/protocol/read/observation.js +2 -15
  200. package/build/src/protocol/reintegrate.js +62 -58
  201. package/build/src/protocol/review.js +5 -0
  202. package/build/src/protocol/run.js +17 -13
  203. package/build/src/runtime/proc/run.d.ts +8 -0
  204. package/build/src/runtime/proc/run.js +27 -0
  205. package/build/src/runtime/proc/termination.js +26 -22
  206. package/build/src/runtime/proc/windows-launch.exe +0 -0
  207. package/build/src/settlement/holder.d.ts +2 -1
  208. package/build/src/settlement/holder.js +15 -4
  209. package/build/src/settlement/settle.js +99 -33
  210. package/build/src/task/board.d.ts +68 -27
  211. package/build/src/task/board.js +31 -1
  212. package/build/src/task/catalog.d.ts +4 -0
  213. package/build/src/task/catalog.js +23 -0
  214. package/build/src/task/compose-language.js +33 -7
  215. package/build/src/task/compose-parser.d.ts +1 -1
  216. package/build/src/task/compose-parser.js +1 -1
  217. package/build/src/task/compose.js +2 -0
  218. package/build/src/task/index.d.ts +12 -4
  219. package/build/src/task/index.js +97 -16
  220. package/build/src/task/mutation-result.d.ts +923 -0
  221. package/build/src/task/mutation-result.js +140 -0
  222. package/build/src/task/mutation.d.ts +552 -28
  223. package/build/src/task/mutation.js +304 -97
  224. package/build/src/task/operations.d.ts +1 -4
  225. package/build/src/task/operations.js +0 -6
  226. package/build/src/task/public.d.ts +2 -0
  227. package/build/src/task/public.js +1 -0
  228. package/build/src/workspace-place.d.ts +7 -2
  229. package/build/src/workspace-place.js +34 -24
  230. package/build/src/world.d.ts +1 -0
  231. package/build/src/world.js +11 -0
  232. package/package.json +8 -6
  233. package/build/src/akuma/request-execution.d.ts +0 -8
  234. package/build/src/akuma/request-execution.js +0 -98
@@ -0,0 +1,923 @@
1
+ import type { TaskCompositionResult } from "./compose.js";
2
+ import type { TaskBatchResult, TaskMutationResult, TaskUpdateResult } from "./operations.js";
3
+ import { z } from "zod";
4
+ export type TaskMutationExecutionResult = TaskMutationResult | TaskUpdateResult | TaskBatchResult | TaskCompositionResult;
5
+ export declare const taskMutationIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
6
+ export declare const taskMutationResultSchema: z.ZodUnion<readonly [z.ZodObject<{
7
+ kind: z.ZodLiteral<"accepted">;
8
+ value: z.ZodPipe<z.ZodObject<{
9
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
10
+ namespace: z.ZodArray<z.ZodString>;
11
+ title: z.ZodString;
12
+ state: z.ZodEnum<{
13
+ open: "open";
14
+ in_progress: "in_progress";
15
+ on_hold: "on_hold";
16
+ done: "done";
17
+ drop: "drop";
18
+ }>;
19
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
20
+ needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
21
+ parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
22
+ supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
23
+ relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
24
+ note: z.ZodString;
25
+ createdBy: z.ZodOptional<z.ZodString>;
26
+ createdAt: z.ZodString;
27
+ updatedAt: z.ZodString;
28
+ body: z.ZodString;
29
+ }, z.core.$strict>, z.ZodTransform<{
30
+ id: `task/${string}`;
31
+ namespace: string[];
32
+ title: string;
33
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
34
+ priority: 0 | 1 | 2 | 3;
35
+ needs: `task/${string}`[];
36
+ parent: `task/${string}` | null;
37
+ supersedes: `task/${string}`[];
38
+ relates: `task/${string}`[];
39
+ note: string;
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ body: string;
43
+ } | {
44
+ createdBy: string;
45
+ id: `task/${string}`;
46
+ namespace: string[];
47
+ title: string;
48
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
49
+ priority: 0 | 1 | 2 | 3;
50
+ needs: `task/${string}`[];
51
+ parent: `task/${string}` | null;
52
+ supersedes: `task/${string}`[];
53
+ relates: `task/${string}`[];
54
+ note: string;
55
+ createdAt: string;
56
+ updatedAt: string;
57
+ body: string;
58
+ }, {
59
+ id: `task/${string}`;
60
+ namespace: string[];
61
+ title: string;
62
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
63
+ priority: 0 | 1 | 2 | 3;
64
+ needs: `task/${string}`[];
65
+ parent: `task/${string}` | null;
66
+ supersedes: `task/${string}`[];
67
+ relates: `task/${string}`[];
68
+ note: string;
69
+ createdAt: string;
70
+ updatedAt: string;
71
+ body: string;
72
+ createdBy?: string | undefined;
73
+ }>>;
74
+ }, z.core.$strict>, z.ZodObject<{
75
+ kind: z.ZodLiteral<"refused">;
76
+ refusal: z.ZodUnion<readonly [z.ZodObject<{
77
+ kind: z.ZodLiteral<"task-missing">;
78
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
81
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
82
+ state: z.ZodEnum<{
83
+ open: "open";
84
+ in_progress: "in_progress";
85
+ on_hold: "on_hold";
86
+ done: "done";
87
+ drop: "drop";
88
+ }>;
89
+ verb: z.ZodEnum<{
90
+ done: "done";
91
+ drop: "drop";
92
+ start: "start";
93
+ stop: "stop";
94
+ hold: "hold";
95
+ resume: "resume";
96
+ }>;
97
+ }, z.core.$strict>, z.ZodObject<{
98
+ kind: z.ZodLiteral<"invalid-graph">;
99
+ diagnostic: z.ZodString;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ kind: z.ZodLiteral<"invalid-namespace-context">;
102
+ path: z.ZodString;
103
+ }, z.core.$strict>, z.ZodObject<{
104
+ kind: z.ZodLiteral<"relation-owned-by-other">;
105
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
106
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
107
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ kind: z.ZodLiteral<"invalid-composition">;
110
+ diagnostics: z.ZodArray<z.ZodObject<{
111
+ line: z.ZodNumber;
112
+ reason: z.ZodString;
113
+ token: z.ZodString;
114
+ }, z.core.$strict>>;
115
+ }, z.core.$strict>]>;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ kind: z.ZodLiteral<"retry">;
118
+ reason: z.ZodEnum<{
119
+ "concurrent-modification": "concurrent-modification";
120
+ busy: "busy";
121
+ }>;
122
+ }, z.core.$strict>]>;
123
+ export declare const taskUpdateResultSchema: z.ZodUnion<readonly [z.ZodObject<{
124
+ kind: z.ZodLiteral<"accepted">;
125
+ value: z.ZodObject<{
126
+ task: z.ZodPipe<z.ZodObject<{
127
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
128
+ namespace: z.ZodArray<z.ZodString>;
129
+ title: z.ZodString;
130
+ state: z.ZodEnum<{
131
+ open: "open";
132
+ in_progress: "in_progress";
133
+ on_hold: "on_hold";
134
+ done: "done";
135
+ drop: "drop";
136
+ }>;
137
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
138
+ needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
139
+ parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
140
+ supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
141
+ relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
142
+ note: z.ZodString;
143
+ createdBy: z.ZodOptional<z.ZodString>;
144
+ createdAt: z.ZodString;
145
+ updatedAt: z.ZodString;
146
+ body: z.ZodString;
147
+ }, z.core.$strict>, z.ZodTransform<{
148
+ id: `task/${string}`;
149
+ namespace: string[];
150
+ title: string;
151
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
152
+ priority: 0 | 1 | 2 | 3;
153
+ needs: `task/${string}`[];
154
+ parent: `task/${string}` | null;
155
+ supersedes: `task/${string}`[];
156
+ relates: `task/${string}`[];
157
+ note: string;
158
+ createdAt: string;
159
+ updatedAt: string;
160
+ body: string;
161
+ } | {
162
+ createdBy: string;
163
+ id: `task/${string}`;
164
+ namespace: string[];
165
+ title: string;
166
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
167
+ priority: 0 | 1 | 2 | 3;
168
+ needs: `task/${string}`[];
169
+ parent: `task/${string}` | null;
170
+ supersedes: `task/${string}`[];
171
+ relates: `task/${string}`[];
172
+ note: string;
173
+ createdAt: string;
174
+ updatedAt: string;
175
+ body: string;
176
+ }, {
177
+ id: `task/${string}`;
178
+ namespace: string[];
179
+ title: string;
180
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
181
+ priority: 0 | 1 | 2 | 3;
182
+ needs: `task/${string}`[];
183
+ parent: `task/${string}` | null;
184
+ supersedes: `task/${string}`[];
185
+ relates: `task/${string}`[];
186
+ note: string;
187
+ createdAt: string;
188
+ updatedAt: string;
189
+ body: string;
190
+ createdBy?: string | undefined;
191
+ }>>;
192
+ documentDiff: z.ZodString;
193
+ }, z.core.$strict>;
194
+ }, z.core.$strict>, z.ZodObject<{
195
+ kind: z.ZodLiteral<"refused">;
196
+ refusal: z.ZodUnion<readonly [z.ZodObject<{
197
+ kind: z.ZodLiteral<"task-missing">;
198
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
199
+ }, z.core.$strict>, z.ZodObject<{
200
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
201
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
202
+ state: z.ZodEnum<{
203
+ open: "open";
204
+ in_progress: "in_progress";
205
+ on_hold: "on_hold";
206
+ done: "done";
207
+ drop: "drop";
208
+ }>;
209
+ verb: z.ZodEnum<{
210
+ done: "done";
211
+ drop: "drop";
212
+ start: "start";
213
+ stop: "stop";
214
+ hold: "hold";
215
+ resume: "resume";
216
+ }>;
217
+ }, z.core.$strict>, z.ZodObject<{
218
+ kind: z.ZodLiteral<"invalid-graph">;
219
+ diagnostic: z.ZodString;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ kind: z.ZodLiteral<"invalid-namespace-context">;
222
+ path: z.ZodString;
223
+ }, z.core.$strict>, z.ZodObject<{
224
+ kind: z.ZodLiteral<"relation-owned-by-other">;
225
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
226
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
227
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
228
+ }, z.core.$strict>, z.ZodObject<{
229
+ kind: z.ZodLiteral<"invalid-composition">;
230
+ diagnostics: z.ZodArray<z.ZodObject<{
231
+ line: z.ZodNumber;
232
+ reason: z.ZodString;
233
+ token: z.ZodString;
234
+ }, z.core.$strict>>;
235
+ }, z.core.$strict>]>;
236
+ }, z.core.$strict>, z.ZodObject<{
237
+ kind: z.ZodLiteral<"retry">;
238
+ reason: z.ZodEnum<{
239
+ "concurrent-modification": "concurrent-modification";
240
+ busy: "busy";
241
+ }>;
242
+ }, z.core.$strict>]>;
243
+ export declare const taskBatchResultSchema: z.ZodObject<{
244
+ items: z.ZodArray<z.ZodObject<{
245
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
246
+ outcome: z.ZodUnion<readonly [z.ZodObject<{
247
+ kind: z.ZodLiteral<"accepted">;
248
+ value: z.ZodPipe<z.ZodObject<{
249
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
250
+ namespace: z.ZodArray<z.ZodString>;
251
+ title: z.ZodString;
252
+ state: z.ZodEnum<{
253
+ open: "open";
254
+ in_progress: "in_progress";
255
+ on_hold: "on_hold";
256
+ done: "done";
257
+ drop: "drop";
258
+ }>;
259
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
260
+ needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
261
+ parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
262
+ supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
263
+ relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
264
+ note: z.ZodString;
265
+ createdBy: z.ZodOptional<z.ZodString>;
266
+ createdAt: z.ZodString;
267
+ updatedAt: z.ZodString;
268
+ body: z.ZodString;
269
+ }, z.core.$strict>, z.ZodTransform<{
270
+ id: `task/${string}`;
271
+ namespace: string[];
272
+ title: string;
273
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
274
+ priority: 0 | 1 | 2 | 3;
275
+ needs: `task/${string}`[];
276
+ parent: `task/${string}` | null;
277
+ supersedes: `task/${string}`[];
278
+ relates: `task/${string}`[];
279
+ note: string;
280
+ createdAt: string;
281
+ updatedAt: string;
282
+ body: string;
283
+ } | {
284
+ createdBy: string;
285
+ id: `task/${string}`;
286
+ namespace: string[];
287
+ title: string;
288
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
289
+ priority: 0 | 1 | 2 | 3;
290
+ needs: `task/${string}`[];
291
+ parent: `task/${string}` | null;
292
+ supersedes: `task/${string}`[];
293
+ relates: `task/${string}`[];
294
+ note: string;
295
+ createdAt: string;
296
+ updatedAt: string;
297
+ body: string;
298
+ }, {
299
+ id: `task/${string}`;
300
+ namespace: string[];
301
+ title: string;
302
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
303
+ priority: 0 | 1 | 2 | 3;
304
+ needs: `task/${string}`[];
305
+ parent: `task/${string}` | null;
306
+ supersedes: `task/${string}`[];
307
+ relates: `task/${string}`[];
308
+ note: string;
309
+ createdAt: string;
310
+ updatedAt: string;
311
+ body: string;
312
+ createdBy?: string | undefined;
313
+ }>>;
314
+ }, z.core.$strict>, z.ZodObject<{
315
+ kind: z.ZodLiteral<"refused">;
316
+ refusal: z.ZodUnion<readonly [z.ZodObject<{
317
+ kind: z.ZodLiteral<"task-missing">;
318
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
321
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
322
+ state: z.ZodEnum<{
323
+ open: "open";
324
+ in_progress: "in_progress";
325
+ on_hold: "on_hold";
326
+ done: "done";
327
+ drop: "drop";
328
+ }>;
329
+ verb: z.ZodEnum<{
330
+ done: "done";
331
+ drop: "drop";
332
+ start: "start";
333
+ stop: "stop";
334
+ hold: "hold";
335
+ resume: "resume";
336
+ }>;
337
+ }, z.core.$strict>, z.ZodObject<{
338
+ kind: z.ZodLiteral<"invalid-graph">;
339
+ diagnostic: z.ZodString;
340
+ }, z.core.$strict>, z.ZodObject<{
341
+ kind: z.ZodLiteral<"invalid-namespace-context">;
342
+ path: z.ZodString;
343
+ }, z.core.$strict>, z.ZodObject<{
344
+ kind: z.ZodLiteral<"relation-owned-by-other">;
345
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
346
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
347
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
348
+ }, z.core.$strict>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"invalid-composition">;
350
+ diagnostics: z.ZodArray<z.ZodObject<{
351
+ line: z.ZodNumber;
352
+ reason: z.ZodString;
353
+ token: z.ZodString;
354
+ }, z.core.$strict>>;
355
+ }, z.core.$strict>]>;
356
+ }, z.core.$strict>, z.ZodObject<{
357
+ kind: z.ZodLiteral<"retry">;
358
+ reason: z.ZodEnum<{
359
+ "concurrent-modification": "concurrent-modification";
360
+ busy: "busy";
361
+ }>;
362
+ }, z.core.$strict>]>;
363
+ }, z.core.$strict>>;
364
+ }, z.core.$strict>;
365
+ export declare const taskCompositionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
366
+ bodies: z.ZodArray<z.ZodObject<{
367
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
368
+ bytes: z.ZodNumber;
369
+ firstLine: z.ZodString;
370
+ lastLine: z.ZodString;
371
+ }, z.core.$strict>>;
372
+ aliases: z.ZodArray<z.ZodObject<{
373
+ alias: z.ZodString;
374
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
375
+ }, z.core.$strict>>;
376
+ admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
377
+ kind: z.ZodLiteral<"planned">;
378
+ }, z.core.$strict>, z.ZodObject<{
379
+ documentChanges: z.ZodArray<z.ZodObject<{
380
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
381
+ kind: z.ZodEnum<{
382
+ created: "created";
383
+ updated: "updated";
384
+ }>;
385
+ documentDiff: z.ZodString;
386
+ }, z.core.$strict>>;
387
+ aliases: z.ZodArray<z.ZodObject<{
388
+ alias: z.ZodString;
389
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
390
+ }, z.core.$strict>>;
391
+ admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
392
+ kind: z.ZodLiteral<"accepted">;
393
+ }, z.core.$strict>, z.ZodObject<{
394
+ kind: z.ZodLiteral<"refused">;
395
+ refusal: z.ZodObject<{
396
+ kind: z.ZodLiteral<"invalid-composition">;
397
+ diagnostics: z.ZodArray<z.ZodObject<{
398
+ line: z.ZodNumber;
399
+ reason: z.ZodString;
400
+ token: z.ZodString;
401
+ }, z.core.$strict>>;
402
+ }, z.core.$strict>;
403
+ }, z.core.$strict>, z.ZodObject<{
404
+ documentChanges: z.ZodArray<z.ZodObject<{
405
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
406
+ kind: z.ZodEnum<{
407
+ created: "created";
408
+ updated: "updated";
409
+ }>;
410
+ documentDiff: z.ZodString;
411
+ }, z.core.$strict>>;
412
+ stopped: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
413
+ kind: z.ZodLiteral<"task-missing">;
414
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
415
+ }, z.core.$strict>, z.ZodObject<{
416
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
417
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
418
+ state: z.ZodEnum<{
419
+ open: "open";
420
+ in_progress: "in_progress";
421
+ on_hold: "on_hold";
422
+ done: "done";
423
+ drop: "drop";
424
+ }>;
425
+ verb: z.ZodEnum<{
426
+ done: "done";
427
+ drop: "drop";
428
+ start: "start";
429
+ stop: "stop";
430
+ hold: "hold";
431
+ resume: "resume";
432
+ }>;
433
+ }, z.core.$strict>, z.ZodObject<{
434
+ kind: z.ZodLiteral<"invalid-graph">;
435
+ diagnostic: z.ZodString;
436
+ }, z.core.$strict>, z.ZodObject<{
437
+ kind: z.ZodLiteral<"invalid-namespace-context">;
438
+ path: z.ZodString;
439
+ }, z.core.$strict>, z.ZodObject<{
440
+ kind: z.ZodLiteral<"relation-owned-by-other">;
441
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
442
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
443
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
444
+ }, z.core.$strict>, z.ZodObject<{
445
+ kind: z.ZodLiteral<"invalid-composition">;
446
+ diagnostics: z.ZodArray<z.ZodObject<{
447
+ line: z.ZodNumber;
448
+ reason: z.ZodString;
449
+ token: z.ZodString;
450
+ }, z.core.$strict>>;
451
+ }, z.core.$strict>]>, z.ZodObject<{
452
+ kind: z.ZodLiteral<"retry">;
453
+ reason: z.ZodEnum<{
454
+ "concurrent-modification": "concurrent-modification";
455
+ busy: "busy";
456
+ }>;
457
+ }, z.core.$strict>]>;
458
+ draft: z.ZodString;
459
+ aliases: z.ZodArray<z.ZodObject<{
460
+ alias: z.ZodString;
461
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
462
+ }, z.core.$strict>>;
463
+ admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
464
+ kind: z.ZodLiteral<"incomplete">;
465
+ }, z.core.$strict>]>;
466
+ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
467
+ items: z.ZodArray<z.ZodObject<{
468
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
469
+ outcome: z.ZodUnion<readonly [z.ZodObject<{
470
+ kind: z.ZodLiteral<"accepted">;
471
+ value: z.ZodPipe<z.ZodObject<{
472
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
473
+ namespace: z.ZodArray<z.ZodString>;
474
+ title: z.ZodString;
475
+ state: z.ZodEnum<{
476
+ open: "open";
477
+ in_progress: "in_progress";
478
+ on_hold: "on_hold";
479
+ done: "done";
480
+ drop: "drop";
481
+ }>;
482
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
483
+ needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
484
+ parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
485
+ supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
486
+ relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
487
+ note: z.ZodString;
488
+ createdBy: z.ZodOptional<z.ZodString>;
489
+ createdAt: z.ZodString;
490
+ updatedAt: z.ZodString;
491
+ body: z.ZodString;
492
+ }, z.core.$strict>, z.ZodTransform<{
493
+ id: `task/${string}`;
494
+ namespace: string[];
495
+ title: string;
496
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
497
+ priority: 0 | 1 | 2 | 3;
498
+ needs: `task/${string}`[];
499
+ parent: `task/${string}` | null;
500
+ supersedes: `task/${string}`[];
501
+ relates: `task/${string}`[];
502
+ note: string;
503
+ createdAt: string;
504
+ updatedAt: string;
505
+ body: string;
506
+ } | {
507
+ createdBy: string;
508
+ id: `task/${string}`;
509
+ namespace: string[];
510
+ title: string;
511
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
512
+ priority: 0 | 1 | 2 | 3;
513
+ needs: `task/${string}`[];
514
+ parent: `task/${string}` | null;
515
+ supersedes: `task/${string}`[];
516
+ relates: `task/${string}`[];
517
+ note: string;
518
+ createdAt: string;
519
+ updatedAt: string;
520
+ body: string;
521
+ }, {
522
+ id: `task/${string}`;
523
+ namespace: string[];
524
+ title: string;
525
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
526
+ priority: 0 | 1 | 2 | 3;
527
+ needs: `task/${string}`[];
528
+ parent: `task/${string}` | null;
529
+ supersedes: `task/${string}`[];
530
+ relates: `task/${string}`[];
531
+ note: string;
532
+ createdAt: string;
533
+ updatedAt: string;
534
+ body: string;
535
+ createdBy?: string | undefined;
536
+ }>>;
537
+ }, z.core.$strict>, z.ZodObject<{
538
+ kind: z.ZodLiteral<"refused">;
539
+ refusal: z.ZodUnion<readonly [z.ZodObject<{
540
+ kind: z.ZodLiteral<"task-missing">;
541
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
542
+ }, z.core.$strict>, z.ZodObject<{
543
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
544
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
545
+ state: z.ZodEnum<{
546
+ open: "open";
547
+ in_progress: "in_progress";
548
+ on_hold: "on_hold";
549
+ done: "done";
550
+ drop: "drop";
551
+ }>;
552
+ verb: z.ZodEnum<{
553
+ done: "done";
554
+ drop: "drop";
555
+ start: "start";
556
+ stop: "stop";
557
+ hold: "hold";
558
+ resume: "resume";
559
+ }>;
560
+ }, z.core.$strict>, z.ZodObject<{
561
+ kind: z.ZodLiteral<"invalid-graph">;
562
+ diagnostic: z.ZodString;
563
+ }, z.core.$strict>, z.ZodObject<{
564
+ kind: z.ZodLiteral<"invalid-namespace-context">;
565
+ path: z.ZodString;
566
+ }, z.core.$strict>, z.ZodObject<{
567
+ kind: z.ZodLiteral<"relation-owned-by-other">;
568
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
569
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
570
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
571
+ }, z.core.$strict>, z.ZodObject<{
572
+ kind: z.ZodLiteral<"invalid-composition">;
573
+ diagnostics: z.ZodArray<z.ZodObject<{
574
+ line: z.ZodNumber;
575
+ reason: z.ZodString;
576
+ token: z.ZodString;
577
+ }, z.core.$strict>>;
578
+ }, z.core.$strict>]>;
579
+ }, z.core.$strict>, z.ZodObject<{
580
+ kind: z.ZodLiteral<"retry">;
581
+ reason: z.ZodEnum<{
582
+ "concurrent-modification": "concurrent-modification";
583
+ busy: "busy";
584
+ }>;
585
+ }, z.core.$strict>]>;
586
+ }, z.core.$strict>>;
587
+ }, z.core.$strict>, z.ZodUnion<readonly [z.ZodObject<{
588
+ kind: z.ZodLiteral<"accepted">;
589
+ value: z.ZodPipe<z.ZodObject<{
590
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
591
+ namespace: z.ZodArray<z.ZodString>;
592
+ title: z.ZodString;
593
+ state: z.ZodEnum<{
594
+ open: "open";
595
+ in_progress: "in_progress";
596
+ on_hold: "on_hold";
597
+ done: "done";
598
+ drop: "drop";
599
+ }>;
600
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
601
+ needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
602
+ parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
603
+ supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
604
+ relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
605
+ note: z.ZodString;
606
+ createdBy: z.ZodOptional<z.ZodString>;
607
+ createdAt: z.ZodString;
608
+ updatedAt: z.ZodString;
609
+ body: z.ZodString;
610
+ }, z.core.$strict>, z.ZodTransform<{
611
+ id: `task/${string}`;
612
+ namespace: string[];
613
+ title: string;
614
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
615
+ priority: 0 | 1 | 2 | 3;
616
+ needs: `task/${string}`[];
617
+ parent: `task/${string}` | null;
618
+ supersedes: `task/${string}`[];
619
+ relates: `task/${string}`[];
620
+ note: string;
621
+ createdAt: string;
622
+ updatedAt: string;
623
+ body: string;
624
+ } | {
625
+ createdBy: string;
626
+ id: `task/${string}`;
627
+ namespace: string[];
628
+ title: string;
629
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
630
+ priority: 0 | 1 | 2 | 3;
631
+ needs: `task/${string}`[];
632
+ parent: `task/${string}` | null;
633
+ supersedes: `task/${string}`[];
634
+ relates: `task/${string}`[];
635
+ note: string;
636
+ createdAt: string;
637
+ updatedAt: string;
638
+ body: string;
639
+ }, {
640
+ id: `task/${string}`;
641
+ namespace: string[];
642
+ title: string;
643
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
644
+ priority: 0 | 1 | 2 | 3;
645
+ needs: `task/${string}`[];
646
+ parent: `task/${string}` | null;
647
+ supersedes: `task/${string}`[];
648
+ relates: `task/${string}`[];
649
+ note: string;
650
+ createdAt: string;
651
+ updatedAt: string;
652
+ body: string;
653
+ createdBy?: string | undefined;
654
+ }>>;
655
+ }, z.core.$strict>, z.ZodObject<{
656
+ kind: z.ZodLiteral<"refused">;
657
+ refusal: z.ZodUnion<readonly [z.ZodObject<{
658
+ kind: z.ZodLiteral<"task-missing">;
659
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
660
+ }, z.core.$strict>, z.ZodObject<{
661
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
662
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
663
+ state: z.ZodEnum<{
664
+ open: "open";
665
+ in_progress: "in_progress";
666
+ on_hold: "on_hold";
667
+ done: "done";
668
+ drop: "drop";
669
+ }>;
670
+ verb: z.ZodEnum<{
671
+ done: "done";
672
+ drop: "drop";
673
+ start: "start";
674
+ stop: "stop";
675
+ hold: "hold";
676
+ resume: "resume";
677
+ }>;
678
+ }, z.core.$strict>, z.ZodObject<{
679
+ kind: z.ZodLiteral<"invalid-graph">;
680
+ diagnostic: z.ZodString;
681
+ }, z.core.$strict>, z.ZodObject<{
682
+ kind: z.ZodLiteral<"invalid-namespace-context">;
683
+ path: z.ZodString;
684
+ }, z.core.$strict>, z.ZodObject<{
685
+ kind: z.ZodLiteral<"relation-owned-by-other">;
686
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
687
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
688
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
689
+ }, z.core.$strict>, z.ZodObject<{
690
+ kind: z.ZodLiteral<"invalid-composition">;
691
+ diagnostics: z.ZodArray<z.ZodObject<{
692
+ line: z.ZodNumber;
693
+ reason: z.ZodString;
694
+ token: z.ZodString;
695
+ }, z.core.$strict>>;
696
+ }, z.core.$strict>]>;
697
+ }, z.core.$strict>, z.ZodObject<{
698
+ kind: z.ZodLiteral<"retry">;
699
+ reason: z.ZodEnum<{
700
+ "concurrent-modification": "concurrent-modification";
701
+ busy: "busy";
702
+ }>;
703
+ }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
704
+ kind: z.ZodLiteral<"accepted">;
705
+ value: z.ZodObject<{
706
+ task: z.ZodPipe<z.ZodObject<{
707
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
708
+ namespace: z.ZodArray<z.ZodString>;
709
+ title: z.ZodString;
710
+ state: z.ZodEnum<{
711
+ open: "open";
712
+ in_progress: "in_progress";
713
+ on_hold: "on_hold";
714
+ done: "done";
715
+ drop: "drop";
716
+ }>;
717
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
718
+ needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
719
+ parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
720
+ supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
721
+ relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
722
+ note: z.ZodString;
723
+ createdBy: z.ZodOptional<z.ZodString>;
724
+ createdAt: z.ZodString;
725
+ updatedAt: z.ZodString;
726
+ body: z.ZodString;
727
+ }, z.core.$strict>, z.ZodTransform<{
728
+ id: `task/${string}`;
729
+ namespace: string[];
730
+ title: string;
731
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
732
+ priority: 0 | 1 | 2 | 3;
733
+ needs: `task/${string}`[];
734
+ parent: `task/${string}` | null;
735
+ supersedes: `task/${string}`[];
736
+ relates: `task/${string}`[];
737
+ note: string;
738
+ createdAt: string;
739
+ updatedAt: string;
740
+ body: string;
741
+ } | {
742
+ createdBy: string;
743
+ id: `task/${string}`;
744
+ namespace: string[];
745
+ title: string;
746
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
747
+ priority: 0 | 1 | 2 | 3;
748
+ needs: `task/${string}`[];
749
+ parent: `task/${string}` | null;
750
+ supersedes: `task/${string}`[];
751
+ relates: `task/${string}`[];
752
+ note: string;
753
+ createdAt: string;
754
+ updatedAt: string;
755
+ body: string;
756
+ }, {
757
+ id: `task/${string}`;
758
+ namespace: string[];
759
+ title: string;
760
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
761
+ priority: 0 | 1 | 2 | 3;
762
+ needs: `task/${string}`[];
763
+ parent: `task/${string}` | null;
764
+ supersedes: `task/${string}`[];
765
+ relates: `task/${string}`[];
766
+ note: string;
767
+ createdAt: string;
768
+ updatedAt: string;
769
+ body: string;
770
+ createdBy?: string | undefined;
771
+ }>>;
772
+ documentDiff: z.ZodString;
773
+ }, z.core.$strict>;
774
+ }, z.core.$strict>, z.ZodObject<{
775
+ kind: z.ZodLiteral<"refused">;
776
+ refusal: z.ZodUnion<readonly [z.ZodObject<{
777
+ kind: z.ZodLiteral<"task-missing">;
778
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
779
+ }, z.core.$strict>, z.ZodObject<{
780
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
781
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
782
+ state: z.ZodEnum<{
783
+ open: "open";
784
+ in_progress: "in_progress";
785
+ on_hold: "on_hold";
786
+ done: "done";
787
+ drop: "drop";
788
+ }>;
789
+ verb: z.ZodEnum<{
790
+ done: "done";
791
+ drop: "drop";
792
+ start: "start";
793
+ stop: "stop";
794
+ hold: "hold";
795
+ resume: "resume";
796
+ }>;
797
+ }, z.core.$strict>, z.ZodObject<{
798
+ kind: z.ZodLiteral<"invalid-graph">;
799
+ diagnostic: z.ZodString;
800
+ }, z.core.$strict>, z.ZodObject<{
801
+ kind: z.ZodLiteral<"invalid-namespace-context">;
802
+ path: z.ZodString;
803
+ }, z.core.$strict>, z.ZodObject<{
804
+ kind: z.ZodLiteral<"relation-owned-by-other">;
805
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
806
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
807
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
808
+ }, z.core.$strict>, z.ZodObject<{
809
+ kind: z.ZodLiteral<"invalid-composition">;
810
+ diagnostics: z.ZodArray<z.ZodObject<{
811
+ line: z.ZodNumber;
812
+ reason: z.ZodString;
813
+ token: z.ZodString;
814
+ }, z.core.$strict>>;
815
+ }, z.core.$strict>]>;
816
+ }, z.core.$strict>, z.ZodObject<{
817
+ kind: z.ZodLiteral<"retry">;
818
+ reason: z.ZodEnum<{
819
+ "concurrent-modification": "concurrent-modification";
820
+ busy: "busy";
821
+ }>;
822
+ }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
823
+ bodies: z.ZodArray<z.ZodObject<{
824
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
825
+ bytes: z.ZodNumber;
826
+ firstLine: z.ZodString;
827
+ lastLine: z.ZodString;
828
+ }, z.core.$strict>>;
829
+ aliases: z.ZodArray<z.ZodObject<{
830
+ alias: z.ZodString;
831
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
832
+ }, z.core.$strict>>;
833
+ admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
834
+ kind: z.ZodLiteral<"planned">;
835
+ }, z.core.$strict>, z.ZodObject<{
836
+ documentChanges: z.ZodArray<z.ZodObject<{
837
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
838
+ kind: z.ZodEnum<{
839
+ created: "created";
840
+ updated: "updated";
841
+ }>;
842
+ documentDiff: z.ZodString;
843
+ }, z.core.$strict>>;
844
+ aliases: z.ZodArray<z.ZodObject<{
845
+ alias: z.ZodString;
846
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
847
+ }, z.core.$strict>>;
848
+ admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
849
+ kind: z.ZodLiteral<"accepted">;
850
+ }, z.core.$strict>, z.ZodObject<{
851
+ kind: z.ZodLiteral<"refused">;
852
+ refusal: z.ZodObject<{
853
+ kind: z.ZodLiteral<"invalid-composition">;
854
+ diagnostics: z.ZodArray<z.ZodObject<{
855
+ line: z.ZodNumber;
856
+ reason: z.ZodString;
857
+ token: z.ZodString;
858
+ }, z.core.$strict>>;
859
+ }, z.core.$strict>;
860
+ }, z.core.$strict>, z.ZodObject<{
861
+ documentChanges: z.ZodArray<z.ZodObject<{
862
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
863
+ kind: z.ZodEnum<{
864
+ created: "created";
865
+ updated: "updated";
866
+ }>;
867
+ documentDiff: z.ZodString;
868
+ }, z.core.$strict>>;
869
+ stopped: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
870
+ kind: z.ZodLiteral<"task-missing">;
871
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
872
+ }, z.core.$strict>, z.ZodObject<{
873
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
874
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
875
+ state: z.ZodEnum<{
876
+ open: "open";
877
+ in_progress: "in_progress";
878
+ on_hold: "on_hold";
879
+ done: "done";
880
+ drop: "drop";
881
+ }>;
882
+ verb: z.ZodEnum<{
883
+ done: "done";
884
+ drop: "drop";
885
+ start: "start";
886
+ stop: "stop";
887
+ hold: "hold";
888
+ resume: "resume";
889
+ }>;
890
+ }, z.core.$strict>, z.ZodObject<{
891
+ kind: z.ZodLiteral<"invalid-graph">;
892
+ diagnostic: z.ZodString;
893
+ }, z.core.$strict>, z.ZodObject<{
894
+ kind: z.ZodLiteral<"invalid-namespace-context">;
895
+ path: z.ZodString;
896
+ }, z.core.$strict>, z.ZodObject<{
897
+ kind: z.ZodLiteral<"relation-owned-by-other">;
898
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
899
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
900
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
901
+ }, z.core.$strict>, z.ZodObject<{
902
+ kind: z.ZodLiteral<"invalid-composition">;
903
+ diagnostics: z.ZodArray<z.ZodObject<{
904
+ line: z.ZodNumber;
905
+ reason: z.ZodString;
906
+ token: z.ZodString;
907
+ }, z.core.$strict>>;
908
+ }, z.core.$strict>]>, z.ZodObject<{
909
+ kind: z.ZodLiteral<"retry">;
910
+ reason: z.ZodEnum<{
911
+ "concurrent-modification": "concurrent-modification";
912
+ busy: "busy";
913
+ }>;
914
+ }, z.core.$strict>]>;
915
+ draft: z.ZodString;
916
+ aliases: z.ZodArray<z.ZodObject<{
917
+ alias: z.ZodString;
918
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
919
+ }, z.core.$strict>>;
920
+ admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
921
+ kind: z.ZodLiteral<"incomplete">;
922
+ }, z.core.$strict>]>]>;
923
+ export declare function isTaskMutationExecutionResult(value: unknown): value is TaskMutationExecutionResult;