@astrosheep/keiyaku 4.5.6 → 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 (245) 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 -8
  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 +53 -0
  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 +7 -5
  23. package/build/src/akuma/body.js +25 -36
  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 +3 -3
  28. package/build/src/akuma/heart/index.js +2 -2
  29. package/build/src/akuma/heart/request-authority.d.ts +6 -4
  30. package/build/src/akuma/heart/request-authority.js +31 -35
  31. package/build/src/akuma/heart/request-rows.js +12 -23
  32. package/build/src/akuma/heart/schema.d.ts +1 -1
  33. package/build/src/akuma/heart/schema.js +5 -13
  34. package/build/src/akuma/heart/storage.d.ts +0 -1
  35. package/build/src/akuma/heart/storage.js +0 -54
  36. package/build/src/akuma/index.d.ts +1 -1
  37. package/build/src/akuma/index.js +1 -1
  38. package/build/src/akuma/projection-read.d.ts +1 -0
  39. package/build/src/akuma/projection-read.js +8 -1
  40. package/build/src/akuma/projection.d.ts +856 -137
  41. package/build/src/akuma/projection.js +190 -0
  42. package/build/src/akuma/provider.d.ts +30 -3
  43. package/build/src/akuma/provider.js +104 -0
  44. package/build/src/akuma/providers/acp/core.d.ts +2 -2
  45. package/build/src/akuma/providers/acp/core.js +13 -6
  46. package/build/src/akuma/providers/acp/index.js +5 -4
  47. package/build/src/akuma/providers/claude/index.d.ts +3 -3
  48. package/build/src/akuma/providers/claude/index.js +16 -5
  49. package/build/src/akuma/providers/codex-app-server/events.js +1 -1
  50. package/build/src/akuma/providers/codex-app-server/index.js +18 -6
  51. package/build/src/akuma/providers/grok-build/index.js +5 -4
  52. package/build/src/akuma/providers/opencode-sdk/index.js +66 -25
  53. package/build/src/akuma/providers/opencode-sdk/session.d.ts +3 -2
  54. package/build/src/akuma/providers/opencode-sdk/session.js +28 -11
  55. package/build/src/akuma/providers/pi/index.js +42 -14
  56. package/build/src/akuma/publication.js +75 -13
  57. package/build/src/akuma/request-lifecycle.d.ts +3 -9
  58. package/build/src/akuma/request-lifecycle.js +12 -25
  59. package/build/src/akuma/request-rendezvous.d.ts +26 -0
  60. package/build/src/akuma/request-rendezvous.js +100 -0
  61. package/build/src/akuma/request-serve.d.ts +5 -65
  62. package/build/src/akuma/request-serve.js +92 -204
  63. package/build/src/akuma/request-wire.d.ts +109 -115
  64. package/build/src/akuma/request-wire.js +63 -318
  65. package/build/src/akuma/requests.d.ts +19 -47
  66. package/build/src/akuma/requests.js +51 -107
  67. package/build/src/akuma/turn-drive.d.ts +5 -3
  68. package/build/src/akuma/turn-drive.js +32 -10
  69. package/build/src/akuma-body.d.ts +7 -2
  70. package/build/src/akuma-body.js +68 -46
  71. package/build/src/cli/accepted.d.ts +1 -1
  72. package/build/src/cli/accepted.js +2 -2
  73. package/build/src/cli/commands/akuma-invoke.d.ts +2 -0
  74. package/build/src/cli/commands/akuma-invoke.js +17 -9
  75. package/build/src/cli/commands/akuma.js +7 -7
  76. package/build/src/cli/commands/contract-invoke.d.ts +3 -2
  77. package/build/src/cli/commands/contract-invoke.js +26 -19
  78. package/build/src/cli/commands/contract.d.ts +13 -13
  79. package/build/src/cli/commands/contract.js +32 -17
  80. package/build/src/cli/commands/install.d.ts +1 -1
  81. package/build/src/cli/commands/install.js +1 -1
  82. package/build/src/cli/commands/task-invoke.d.ts +7 -2
  83. package/build/src/cli/commands/task-invoke.js +67 -158
  84. package/build/src/cli/commands/task.d.ts +1 -1
  85. package/build/src/cli/commands/task.js +60 -22
  86. package/build/src/cli/coordinates.d.ts +2 -0
  87. package/build/src/cli/coordinates.js +18 -2
  88. package/build/src/cli/invoke.js +39 -25
  89. package/build/src/cli/main.js +2 -1
  90. package/build/src/cli/parse.d.ts +2 -2
  91. package/build/src/cli/parse.js +37 -22
  92. package/build/src/cli/render/akuma-activity.d.ts +4 -1
  93. package/build/src/cli/render/akuma-activity.js +45 -30
  94. package/build/src/cli/render/akuma-tool.d.ts +5 -1
  95. package/build/src/cli/render/akuma.js +5 -9
  96. package/build/src/cli/render/audit.js +1 -1
  97. package/build/src/cli/render/catalog.js +80 -21
  98. package/build/src/cli/render/contract-observation.d.ts +2 -0
  99. package/build/src/cli/render/contract-observation.js +11 -0
  100. package/build/src/cli/render/contract.js +25 -65
  101. package/build/src/cli/render/kanshi-akuma.d.ts +8 -0
  102. package/build/src/cli/render/kanshi-akuma.js +111 -0
  103. package/build/src/cli/render/kanshi.js +108 -213
  104. package/build/src/cli/render/receipt.d.ts +1 -2
  105. package/build/src/cli/render/receipt.js +76 -26
  106. package/build/src/cli/render/refusal.js +2 -10
  107. package/build/src/cli/render/region.js +5 -2
  108. package/build/src/cli/render/settings.d.ts +1 -1
  109. package/build/src/cli/render/settings.js +27 -8
  110. package/build/src/cli/render/task.js +28 -10
  111. package/build/src/cli/render/terminal.d.ts +28 -0
  112. package/build/src/cli/render/terminal.js +65 -0
  113. package/build/src/cli/result.d.ts +3 -3
  114. package/build/src/cli/runtime.js +3 -1
  115. package/build/src/cli/selectors.d.ts +2 -1
  116. package/build/src/cli/selectors.js +4 -3
  117. package/build/src/cli/square-edge.js +120 -36
  118. package/build/src/cli/usage.js +2 -1
  119. package/build/src/contract-guidance.d.ts +5 -0
  120. package/build/src/contract-guidance.js +121 -0
  121. package/build/src/contract-worktree.d.ts +0 -1
  122. package/build/src/contract-worktree.js +32 -83
  123. package/build/src/coordination/sqlite-transaction-lock.d.ts +1 -0
  124. package/build/src/coordination/sqlite-transaction-lock.js +5 -0
  125. package/build/src/core/facts/codec.d.ts +2 -0
  126. package/build/src/core/facts/codec.js +4 -0
  127. package/build/src/core/verbs/placement.d.ts +6 -1
  128. package/build/src/core/verbs/placement.js +5 -3
  129. package/build/src/dispatch/index.d.ts +0 -2
  130. package/build/src/dispatch/index.js +54 -55
  131. package/build/src/git/admission.js +2 -2
  132. package/build/src/git/hooks.d.ts +9 -15
  133. package/build/src/git/hooks.js +23 -317
  134. package/build/src/git/nuke.d.ts +2 -1
  135. package/build/src/git/nuke.js +36 -18
  136. package/build/src/git/private-state-seat.d.ts +12 -0
  137. package/build/src/git/private-state-seat.js +39 -0
  138. package/build/src/git/process.d.ts +6 -0
  139. package/build/src/git/process.js +19 -7
  140. package/build/src/git/read-observation.js +29 -20
  141. package/build/src/git/reconcile.d.ts +11 -0
  142. package/build/src/git/reconcile.js +64 -11
  143. package/build/src/git/repository.d.ts +8 -2
  144. package/build/src/git/repository.js +42 -21
  145. package/build/src/git/target-placement.d.ts +1 -0
  146. package/build/src/git/target-placement.js +5 -6
  147. package/build/src/git/tender.d.ts +1 -0
  148. package/build/src/git/terminal-reconcile.d.ts +1 -1
  149. package/build/src/git/terminal-reconcile.js +22 -20
  150. package/build/src/git/workspace.d.ts +14 -0
  151. package/build/src/git/workspace.js +44 -0
  152. package/build/src/kanshi/index.d.ts +1 -1
  153. package/build/src/kanshi/read.js +16 -16
  154. package/build/src/kanshi/report.d.ts +2 -2
  155. package/build/src/library/address.d.ts +9 -3
  156. package/build/src/library/address.js +3 -2
  157. package/build/src/library/akuma-creation.d.ts +4 -3
  158. package/build/src/library/akuma-creation.js +19 -13
  159. package/build/src/library/audit.d.ts +1 -1
  160. package/build/src/library/audit.js +5 -3
  161. package/build/src/library/catalog.d.ts +3 -1
  162. package/build/src/library/catalog.js +20 -6
  163. package/build/src/library/composition.d.ts +371 -0
  164. package/build/src/library/composition.js +28 -0
  165. package/build/src/library/configuration.js +8 -2
  166. package/build/src/library/continuation.js +66 -30
  167. package/build/src/library/contract-bind.js +10 -2
  168. package/build/src/library/contract-forwarding-reconciliation-result.d.ts +96 -0
  169. package/build/src/library/contract-forwarding-reconciliation-result.js +83 -0
  170. package/build/src/library/contract-forwarding-result.d.ts +6723 -0
  171. package/build/src/library/contract-forwarding-result.js +521 -0
  172. package/build/src/library/contract-forwarding.d.ts +72 -0
  173. package/build/src/library/contract-forwarding.js +125 -0
  174. package/build/src/library/contract-handle.d.ts +36 -0
  175. package/build/src/library/contract-handle.js +313 -0
  176. package/build/src/library/contract-operations.d.ts +1044 -67
  177. package/build/src/library/contract-operations.js +190 -118
  178. package/build/src/library/contract.d.ts +11 -32
  179. package/build/src/library/contract.js +16 -289
  180. package/build/src/library/fleet-result.d.ts +1454 -0
  181. package/build/src/library/fleet-result.js +96 -0
  182. package/build/src/library/fleet.d.ts +112 -54
  183. package/build/src/library/fleet.js +211 -71
  184. package/build/src/library/input.d.ts +2 -0
  185. package/build/src/library/input.js +4 -0
  186. package/build/src/library/keiyaku.d.ts +371 -20
  187. package/build/src/library/keiyaku.js +8 -21
  188. package/build/src/library/mutation.d.ts +3 -3
  189. package/build/src/library/mutation.js +5 -9
  190. package/build/src/library/nuke.d.ts +1 -1
  191. package/build/src/library/nuke.js +4 -3
  192. package/build/src/library/reconcile.d.ts +4 -0
  193. package/build/src/library/reconcile.js +2 -0
  194. package/build/src/library/refusal.d.ts +0 -9
  195. package/build/src/library/refusal.js +0 -7
  196. package/build/src/protocol/amend.js +56 -50
  197. package/build/src/protocol/attempt.d.ts +2 -0
  198. package/build/src/protocol/attempt.js +17 -5
  199. package/build/src/protocol/completion.js +7 -0
  200. package/build/src/protocol/deliver.js +6 -2
  201. package/build/src/protocol/operations.d.ts +4 -1
  202. package/build/src/protocol/operations.js +5 -2
  203. package/build/src/protocol/placement.d.ts +1 -0
  204. package/build/src/protocol/placement.js +52 -38
  205. package/build/src/protocol/read/observation.d.ts +1 -4
  206. package/build/src/protocol/read/observation.js +2 -15
  207. package/build/src/protocol/reintegrate.js +62 -58
  208. package/build/src/protocol/review.js +5 -0
  209. package/build/src/protocol/run.js +17 -13
  210. package/build/src/runtime/proc/run.d.ts +8 -0
  211. package/build/src/runtime/proc/run.js +27 -0
  212. package/build/src/runtime/proc/termination.js +26 -22
  213. package/build/src/runtime/proc/windows-launch.exe +0 -0
  214. package/build/src/settlement/holder.d.ts +2 -1
  215. package/build/src/settlement/holder.js +15 -4
  216. package/build/src/settlement/settle.js +99 -33
  217. package/build/src/task/board.d.ts +68 -27
  218. package/build/src/task/board.js +31 -1
  219. package/build/src/task/catalog.d.ts +4 -0
  220. package/build/src/task/catalog.js +23 -0
  221. package/build/src/task/compose-language.d.ts +4 -0
  222. package/build/src/task/compose-language.js +40 -7
  223. package/build/src/task/compose-parser.d.ts +2 -1
  224. package/build/src/task/compose-parser.js +5 -3
  225. package/build/src/task/compose.d.ts +1 -0
  226. package/build/src/task/compose.js +4 -1
  227. package/build/src/task/context.d.ts +7 -1
  228. package/build/src/task/context.js +25 -6
  229. package/build/src/task/index.d.ts +18 -5
  230. package/build/src/task/index.js +97 -16
  231. package/build/src/task/mutation-result.d.ts +923 -0
  232. package/build/src/task/mutation-result.js +140 -0
  233. package/build/src/task/mutation.d.ts +552 -28
  234. package/build/src/task/mutation.js +304 -97
  235. package/build/src/task/operations.d.ts +1 -4
  236. package/build/src/task/operations.js +0 -6
  237. package/build/src/task/public.d.ts +2 -0
  238. package/build/src/task/public.js +1 -0
  239. package/build/src/workspace-place.d.ts +7 -2
  240. package/build/src/workspace-place.js +34 -24
  241. package/build/src/world.d.ts +1 -0
  242. package/build/src/world.js +11 -0
  243. package/package.json +8 -6
  244. package/build/src/akuma/request-execution.d.ts +0 -8
  245. package/build/src/akuma/request-execution.js +0 -98
@@ -0,0 +1,1454 @@
1
+ import { z } from "zod";
2
+ declare const dispatchAssociationSchema: z.ZodUnion<readonly [z.ZodObject<{
3
+ kind: z.ZodLiteral<"none">;
4
+ }, z.core.$strict>, z.ZodObject<{
5
+ kind: z.ZodLiteral<"associated">;
6
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
7
+ }, z.core.$strict>, z.ZodObject<{
8
+ kind: z.ZodLiteral<"failed">;
9
+ diagnostic: z.ZodString;
10
+ }, z.core.$strict>]>;
11
+ declare const createdTaskObservationSchema: z.ZodUnion<readonly [z.ZodObject<{
12
+ kind: z.ZodLiteral<"present">;
13
+ rows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
14
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
15
+ title: z.ZodString;
16
+ state: z.ZodEnum<{
17
+ open: "open";
18
+ in_progress: "in_progress";
19
+ on_hold: "on_hold";
20
+ done: "done";
21
+ drop: "drop";
22
+ }>;
23
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
24
+ disposition: z.ZodEnum<{
25
+ in_progress: "in_progress";
26
+ on_hold: "on_hold";
27
+ done: "done";
28
+ drop: "drop";
29
+ ready: "ready";
30
+ blocked: "blocked";
31
+ }>;
32
+ updatedAt: z.ZodString;
33
+ bodyPresent: z.ZodBoolean;
34
+ children: z.ZodOptional<z.ZodObject<{
35
+ live: z.ZodNumber;
36
+ total: z.ZodNumber;
37
+ }, z.core.$strict>>;
38
+ }, z.core.$strict>>>;
39
+ }, z.core.$strict>, z.ZodObject<{
40
+ kind: z.ZodLiteral<"failed">;
41
+ diagnostic: z.ZodString;
42
+ }, z.core.$strict>]>;
43
+ declare const akumaObservationSchema: z.ZodObject<{
44
+ status: z.ZodObject<{
45
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
46
+ life: z.ZodEnum<{
47
+ killed: "killed";
48
+ hung: "hung";
49
+ untidy: "untidy";
50
+ running: "running";
51
+ asleep: "asleep";
52
+ stranded: "stranded";
53
+ }>;
54
+ readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
55
+ enforcement: z.ZodLiteral<"native">;
56
+ }, z.core.$strict>, z.ZodObject<{
57
+ enforcement: z.ZodLiteral<"none">;
58
+ diagnostic: z.ZodString;
59
+ }, z.core.$strict>]>>;
60
+ timeline: z.ZodUnion<readonly [z.ZodObject<{
61
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
62
+ sequence: z.ZodNumber;
63
+ at: z.ZodString;
64
+ op: z.ZodEnum<{
65
+ add: "add";
66
+ update: "update";
67
+ delete: "delete";
68
+ unspecified: "unspecified";
69
+ }>;
70
+ path: z.ZodString;
71
+ diffstat: z.ZodOptional<z.ZodObject<{
72
+ added: z.ZodNumber;
73
+ removed: z.ZodNumber;
74
+ }, z.core.$strict>>;
75
+ }, z.core.$strict>>>;
76
+ reportedChangesOmitted: z.ZodNumber;
77
+ kind: z.ZodLiteral<"unborn">;
78
+ entries: z.ZodReadonly<z.ZodTuple<[], null>>;
79
+ omitted: z.ZodLiteral<0>;
80
+ }, z.core.$strict>, z.ZodObject<{
81
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
82
+ sequence: z.ZodNumber;
83
+ at: z.ZodString;
84
+ op: z.ZodEnum<{
85
+ add: "add";
86
+ update: "update";
87
+ delete: "delete";
88
+ unspecified: "unspecified";
89
+ }>;
90
+ path: z.ZodString;
91
+ diffstat: z.ZodOptional<z.ZodObject<{
92
+ added: z.ZodNumber;
93
+ removed: z.ZodNumber;
94
+ }, z.core.$strict>>;
95
+ }, z.core.$strict>>>;
96
+ reportedChangesOmitted: z.ZodNumber;
97
+ kind: z.ZodLiteral<"open">;
98
+ turn: z.ZodObject<{
99
+ kind: z.ZodLiteral<"turn">;
100
+ sequence: z.ZodNumber;
101
+ turnSequence: z.ZodNumber;
102
+ bodySequence: z.ZodNumber;
103
+ at: z.ZodString;
104
+ }, z.core.$strict>;
105
+ entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
106
+ kind: z.ZodLiteral<"gap">;
107
+ count: z.ZodNumber;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ kind: z.ZodLiteral<"row">;
110
+ row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
111
+ kind: z.ZodLiteral<"call">;
112
+ sequence: z.ZodNumber;
113
+ turnSequence: z.ZodNumber;
114
+ at: z.ZodString;
115
+ text: z.ZodString;
116
+ }, z.core.$strict>, z.ZodObject<{
117
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
118
+ sequence: z.ZodNumber;
119
+ turnSequence: z.ZodNumber;
120
+ at: z.ZodString;
121
+ text: z.ZodString;
122
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
123
+ }, z.core.$strict>, z.ZodObject<{
124
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
125
+ sequence: z.ZodNumber;
126
+ turnSequence: z.ZodNumber;
127
+ at: z.ZodString;
128
+ text: z.ZodString;
129
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
130
+ }, z.core.$strict>, z.ZodObject<{
131
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
132
+ sequence: z.ZodNumber;
133
+ turnSequence: z.ZodNumber;
134
+ at: z.ZodString;
135
+ text: z.ZodString;
136
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
137
+ }, z.core.$strict>, z.ZodObject<{
138
+ kind: z.ZodLiteral<"tell">;
139
+ sequence: z.ZodNumber;
140
+ at: z.ZodString;
141
+ tellId: z.ZodString;
142
+ text: z.ZodString;
143
+ state: z.ZodEnum<{
144
+ pending: "pending";
145
+ told: "told";
146
+ }>;
147
+ deliveries: z.ZodReadonly<z.ZodArray<z.ZodObject<{
148
+ deliveredAt: z.ZodString;
149
+ route: z.ZodEnum<{
150
+ live: "live";
151
+ launch: "launch";
152
+ }>;
153
+ turnSequence: z.ZodNumber;
154
+ receipt: z.ZodOptional<z.ZodEnum<{
155
+ required: "required";
156
+ unavailable: "unavailable";
157
+ }>>;
158
+ }, z.core.$strict>>>;
159
+ }, z.core.$strict>]>, z.ZodObject<{
160
+ kind: z.ZodLiteral<"tool">;
161
+ sequence: z.ZodNumber;
162
+ turnSequence: z.ZodNumber;
163
+ at: z.ZodString;
164
+ name: z.ZodString;
165
+ call: z.ZodUnion<readonly [z.ZodObject<{
166
+ kind: z.ZodLiteral<"run">;
167
+ command: z.ZodString;
168
+ }, z.core.$strict>, z.ZodObject<{
169
+ kind: z.ZodLiteral<"read">;
170
+ path: z.ZodString;
171
+ offset: z.ZodOptional<z.ZodNumber>;
172
+ limit: z.ZodOptional<z.ZodNumber>;
173
+ }, z.core.$strict>, z.ZodObject<{
174
+ kind: z.ZodLiteral<"search">;
175
+ query: z.ZodString;
176
+ scope: z.ZodOptional<z.ZodEnum<{
177
+ content: "content";
178
+ files: "files";
179
+ web: "web";
180
+ }>>;
181
+ path: z.ZodOptional<z.ZodString>;
182
+ glob: z.ZodOptional<z.ZodString>;
183
+ }, z.core.$strict>, z.ZodObject<{
184
+ kind: z.ZodLiteral<"fileChange">;
185
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
186
+ op: z.ZodEnum<{
187
+ add: "add";
188
+ update: "update";
189
+ delete: "delete";
190
+ unspecified: "unspecified";
191
+ }>;
192
+ path: z.ZodString;
193
+ diffstat: z.ZodOptional<z.ZodObject<{
194
+ added: z.ZodNumber;
195
+ removed: z.ZodNumber;
196
+ }, z.core.$strict>>;
197
+ }, z.core.$strict>>>;
198
+ }, z.core.$strict>, z.ZodObject<{
199
+ kind: z.ZodLiteral<"other">;
200
+ display: z.ZodString;
201
+ }, z.core.$strict>]>;
202
+ state: z.ZodLiteral<"active">;
203
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
204
+ }, z.core.$strict>, z.ZodObject<{
205
+ kind: z.ZodLiteral<"tool">;
206
+ sequence: z.ZodNumber;
207
+ turnSequence: z.ZodNumber;
208
+ at: z.ZodString;
209
+ completedAt: z.ZodOptional<z.ZodString>;
210
+ durationMs: z.ZodOptional<z.ZodNumber>;
211
+ name: z.ZodString;
212
+ call: z.ZodUnion<readonly [z.ZodObject<{
213
+ kind: z.ZodLiteral<"run">;
214
+ command: z.ZodString;
215
+ }, z.core.$strict>, z.ZodObject<{
216
+ kind: z.ZodLiteral<"read">;
217
+ path: z.ZodString;
218
+ offset: z.ZodOptional<z.ZodNumber>;
219
+ limit: z.ZodOptional<z.ZodNumber>;
220
+ }, z.core.$strict>, z.ZodObject<{
221
+ kind: z.ZodLiteral<"search">;
222
+ query: z.ZodString;
223
+ scope: z.ZodOptional<z.ZodEnum<{
224
+ content: "content";
225
+ files: "files";
226
+ web: "web";
227
+ }>>;
228
+ path: z.ZodOptional<z.ZodString>;
229
+ glob: z.ZodOptional<z.ZodString>;
230
+ }, z.core.$strict>, z.ZodObject<{
231
+ kind: z.ZodLiteral<"fileChange">;
232
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
233
+ op: z.ZodEnum<{
234
+ add: "add";
235
+ update: "update";
236
+ delete: "delete";
237
+ unspecified: "unspecified";
238
+ }>;
239
+ path: z.ZodString;
240
+ diffstat: z.ZodOptional<z.ZodObject<{
241
+ added: z.ZodNumber;
242
+ removed: z.ZodNumber;
243
+ }, z.core.$strict>>;
244
+ }, z.core.$strict>>>;
245
+ }, z.core.$strict>, z.ZodObject<{
246
+ kind: z.ZodLiteral<"other">;
247
+ display: z.ZodString;
248
+ }, z.core.$strict>]>;
249
+ state: z.ZodObject<{
250
+ status: z.ZodEnum<{
251
+ error: "error";
252
+ ok: "ok";
253
+ }>;
254
+ message: z.ZodOptional<z.ZodString>;
255
+ exitCode: z.ZodOptional<z.ZodNumber>;
256
+ }, z.core.$strict>;
257
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
258
+ }, z.core.$strict>]>;
259
+ }, z.core.$strict>]>>>;
260
+ omitted: z.ZodNumber;
261
+ }, z.core.$strict>, z.ZodObject<{
262
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
263
+ sequence: z.ZodNumber;
264
+ at: z.ZodString;
265
+ op: z.ZodEnum<{
266
+ add: "add";
267
+ update: "update";
268
+ delete: "delete";
269
+ unspecified: "unspecified";
270
+ }>;
271
+ path: z.ZodString;
272
+ diffstat: z.ZodOptional<z.ZodObject<{
273
+ added: z.ZodNumber;
274
+ removed: z.ZodNumber;
275
+ }, z.core.$strict>>;
276
+ }, z.core.$strict>>>;
277
+ reportedChangesOmitted: z.ZodNumber;
278
+ kind: z.ZodLiteral<"idle">;
279
+ outcome: z.ZodOptional<z.ZodObject<{
280
+ kind: z.ZodLiteral<"outcome">;
281
+ sequence: z.ZodNumber;
282
+ turnSequence: z.ZodNumber;
283
+ at: z.ZodString;
284
+ outcome: z.ZodUnion<readonly [z.ZodObject<{
285
+ kind: z.ZodLiteral<"answered">;
286
+ historyId: z.ZodString;
287
+ answer: z.ZodString;
288
+ }, z.core.$strict>, z.ZodObject<{
289
+ kind: z.ZodLiteral<"failed">;
290
+ historyId: z.ZodString;
291
+ diagnostic: z.ZodString;
292
+ }, z.core.$strict>]>;
293
+ }, z.core.$strict>>;
294
+ entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
295
+ kind: z.ZodLiteral<"gap">;
296
+ count: z.ZodNumber;
297
+ }, z.core.$strict>, z.ZodObject<{
298
+ kind: z.ZodLiteral<"row">;
299
+ row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
300
+ kind: z.ZodLiteral<"call">;
301
+ sequence: z.ZodNumber;
302
+ turnSequence: z.ZodNumber;
303
+ at: z.ZodString;
304
+ text: z.ZodString;
305
+ }, z.core.$strict>, z.ZodObject<{
306
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
307
+ sequence: z.ZodNumber;
308
+ turnSequence: z.ZodNumber;
309
+ at: z.ZodString;
310
+ text: z.ZodString;
311
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
312
+ }, z.core.$strict>, z.ZodObject<{
313
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
314
+ sequence: z.ZodNumber;
315
+ turnSequence: z.ZodNumber;
316
+ at: z.ZodString;
317
+ text: z.ZodString;
318
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
319
+ }, z.core.$strict>, z.ZodObject<{
320
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
321
+ sequence: z.ZodNumber;
322
+ turnSequence: z.ZodNumber;
323
+ at: z.ZodString;
324
+ text: z.ZodString;
325
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
326
+ }, z.core.$strict>, z.ZodObject<{
327
+ kind: z.ZodLiteral<"tell">;
328
+ sequence: z.ZodNumber;
329
+ at: z.ZodString;
330
+ tellId: z.ZodString;
331
+ text: z.ZodString;
332
+ state: z.ZodEnum<{
333
+ pending: "pending";
334
+ told: "told";
335
+ }>;
336
+ deliveries: z.ZodReadonly<z.ZodArray<z.ZodObject<{
337
+ deliveredAt: z.ZodString;
338
+ route: z.ZodEnum<{
339
+ live: "live";
340
+ launch: "launch";
341
+ }>;
342
+ turnSequence: z.ZodNumber;
343
+ receipt: z.ZodOptional<z.ZodEnum<{
344
+ required: "required";
345
+ unavailable: "unavailable";
346
+ }>>;
347
+ }, z.core.$strict>>>;
348
+ }, z.core.$strict>]>, z.ZodObject<{
349
+ kind: z.ZodLiteral<"tool">;
350
+ sequence: z.ZodNumber;
351
+ turnSequence: z.ZodNumber;
352
+ at: z.ZodString;
353
+ completedAt: z.ZodOptional<z.ZodString>;
354
+ durationMs: z.ZodOptional<z.ZodNumber>;
355
+ name: z.ZodString;
356
+ call: z.ZodUnion<readonly [z.ZodObject<{
357
+ kind: z.ZodLiteral<"run">;
358
+ command: z.ZodString;
359
+ }, z.core.$strict>, z.ZodObject<{
360
+ kind: z.ZodLiteral<"read">;
361
+ path: z.ZodString;
362
+ offset: z.ZodOptional<z.ZodNumber>;
363
+ limit: z.ZodOptional<z.ZodNumber>;
364
+ }, z.core.$strict>, z.ZodObject<{
365
+ kind: z.ZodLiteral<"search">;
366
+ query: z.ZodString;
367
+ scope: z.ZodOptional<z.ZodEnum<{
368
+ content: "content";
369
+ files: "files";
370
+ web: "web";
371
+ }>>;
372
+ path: z.ZodOptional<z.ZodString>;
373
+ glob: z.ZodOptional<z.ZodString>;
374
+ }, z.core.$strict>, z.ZodObject<{
375
+ kind: z.ZodLiteral<"fileChange">;
376
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
377
+ op: z.ZodEnum<{
378
+ add: "add";
379
+ update: "update";
380
+ delete: "delete";
381
+ unspecified: "unspecified";
382
+ }>;
383
+ path: z.ZodString;
384
+ diffstat: z.ZodOptional<z.ZodObject<{
385
+ added: z.ZodNumber;
386
+ removed: z.ZodNumber;
387
+ }, z.core.$strict>>;
388
+ }, z.core.$strict>>>;
389
+ }, z.core.$strict>, z.ZodObject<{
390
+ kind: z.ZodLiteral<"other">;
391
+ display: z.ZodString;
392
+ }, z.core.$strict>]>;
393
+ state: z.ZodObject<{
394
+ status: z.ZodEnum<{
395
+ error: "error";
396
+ ok: "ok";
397
+ }>;
398
+ message: z.ZodOptional<z.ZodString>;
399
+ exitCode: z.ZodOptional<z.ZodNumber>;
400
+ }, z.core.$strict>;
401
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
402
+ }, z.core.$strict>]>;
403
+ }, z.core.$strict>]>>>;
404
+ omitted: z.ZodNumber;
405
+ }, z.core.$strict>]>;
406
+ strandedReason: z.ZodOptional<z.ZodLiteral<"resume-unsupported">>;
407
+ }, z.core.$strict>;
408
+ contract: z.ZodUnion<readonly [z.ZodObject<{
409
+ kind: z.ZodLiteral<"none">;
410
+ }, z.core.$strict>, z.ZodObject<{
411
+ kind: z.ZodLiteral<"associated">;
412
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
413
+ }, z.core.$strict>, z.ZodObject<{
414
+ kind: z.ZodLiteral<"failed">;
415
+ diagnostic: z.ZodString;
416
+ }, z.core.$strict>]>;
417
+ createdTasks: z.ZodUnion<readonly [z.ZodObject<{
418
+ kind: z.ZodLiteral<"present">;
419
+ rows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
420
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
421
+ title: z.ZodString;
422
+ state: z.ZodEnum<{
423
+ open: "open";
424
+ in_progress: "in_progress";
425
+ on_hold: "on_hold";
426
+ done: "done";
427
+ drop: "drop";
428
+ }>;
429
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
430
+ disposition: z.ZodEnum<{
431
+ in_progress: "in_progress";
432
+ on_hold: "on_hold";
433
+ done: "done";
434
+ drop: "drop";
435
+ ready: "ready";
436
+ blocked: "blocked";
437
+ }>;
438
+ updatedAt: z.ZodString;
439
+ bodyPresent: z.ZodBoolean;
440
+ children: z.ZodOptional<z.ZodObject<{
441
+ live: z.ZodNumber;
442
+ total: z.ZodNumber;
443
+ }, z.core.$strict>>;
444
+ }, z.core.$strict>>>;
445
+ }, z.core.$strict>, z.ZodObject<{
446
+ kind: z.ZodLiteral<"failed">;
447
+ diagnostic: z.ZodString;
448
+ }, z.core.$strict>]>;
449
+ }, z.core.$strict>;
450
+ declare const akumaUnobservedSchema: z.ZodObject<{
451
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
452
+ diagnostic: z.ZodString;
453
+ }, z.core.$strict>;
454
+ declare const akumaWaitResultSchema: z.ZodObject<{
455
+ completion: z.ZodEnum<{
456
+ any: "any";
457
+ all: "all";
458
+ }>;
459
+ observations: z.ZodArray<z.ZodObject<{
460
+ status: z.ZodObject<{
461
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
462
+ life: z.ZodEnum<{
463
+ killed: "killed";
464
+ hung: "hung";
465
+ untidy: "untidy";
466
+ running: "running";
467
+ asleep: "asleep";
468
+ stranded: "stranded";
469
+ }>;
470
+ readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
471
+ enforcement: z.ZodLiteral<"native">;
472
+ }, z.core.$strict>, z.ZodObject<{
473
+ enforcement: z.ZodLiteral<"none">;
474
+ diagnostic: z.ZodString;
475
+ }, z.core.$strict>]>>;
476
+ timeline: z.ZodUnion<readonly [z.ZodObject<{
477
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
478
+ sequence: z.ZodNumber;
479
+ at: z.ZodString;
480
+ op: z.ZodEnum<{
481
+ add: "add";
482
+ update: "update";
483
+ delete: "delete";
484
+ unspecified: "unspecified";
485
+ }>;
486
+ path: z.ZodString;
487
+ diffstat: z.ZodOptional<z.ZodObject<{
488
+ added: z.ZodNumber;
489
+ removed: z.ZodNumber;
490
+ }, z.core.$strict>>;
491
+ }, z.core.$strict>>>;
492
+ reportedChangesOmitted: z.ZodNumber;
493
+ kind: z.ZodLiteral<"unborn">;
494
+ entries: z.ZodReadonly<z.ZodTuple<[], null>>;
495
+ omitted: z.ZodLiteral<0>;
496
+ }, z.core.$strict>, z.ZodObject<{
497
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
498
+ sequence: z.ZodNumber;
499
+ at: z.ZodString;
500
+ op: z.ZodEnum<{
501
+ add: "add";
502
+ update: "update";
503
+ delete: "delete";
504
+ unspecified: "unspecified";
505
+ }>;
506
+ path: z.ZodString;
507
+ diffstat: z.ZodOptional<z.ZodObject<{
508
+ added: z.ZodNumber;
509
+ removed: z.ZodNumber;
510
+ }, z.core.$strict>>;
511
+ }, z.core.$strict>>>;
512
+ reportedChangesOmitted: z.ZodNumber;
513
+ kind: z.ZodLiteral<"open">;
514
+ turn: z.ZodObject<{
515
+ kind: z.ZodLiteral<"turn">;
516
+ sequence: z.ZodNumber;
517
+ turnSequence: z.ZodNumber;
518
+ bodySequence: z.ZodNumber;
519
+ at: z.ZodString;
520
+ }, z.core.$strict>;
521
+ entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
522
+ kind: z.ZodLiteral<"gap">;
523
+ count: z.ZodNumber;
524
+ }, z.core.$strict>, z.ZodObject<{
525
+ kind: z.ZodLiteral<"row">;
526
+ row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
527
+ kind: z.ZodLiteral<"call">;
528
+ sequence: z.ZodNumber;
529
+ turnSequence: z.ZodNumber;
530
+ at: z.ZodString;
531
+ text: z.ZodString;
532
+ }, z.core.$strict>, z.ZodObject<{
533
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
534
+ sequence: z.ZodNumber;
535
+ turnSequence: z.ZodNumber;
536
+ at: z.ZodString;
537
+ text: z.ZodString;
538
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
539
+ }, z.core.$strict>, z.ZodObject<{
540
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
541
+ sequence: z.ZodNumber;
542
+ turnSequence: z.ZodNumber;
543
+ at: z.ZodString;
544
+ text: z.ZodString;
545
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
546
+ }, z.core.$strict>, z.ZodObject<{
547
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
548
+ sequence: z.ZodNumber;
549
+ turnSequence: z.ZodNumber;
550
+ at: z.ZodString;
551
+ text: z.ZodString;
552
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
553
+ }, z.core.$strict>, z.ZodObject<{
554
+ kind: z.ZodLiteral<"tell">;
555
+ sequence: z.ZodNumber;
556
+ at: z.ZodString;
557
+ tellId: z.ZodString;
558
+ text: z.ZodString;
559
+ state: z.ZodEnum<{
560
+ pending: "pending";
561
+ told: "told";
562
+ }>;
563
+ deliveries: z.ZodReadonly<z.ZodArray<z.ZodObject<{
564
+ deliveredAt: z.ZodString;
565
+ route: z.ZodEnum<{
566
+ live: "live";
567
+ launch: "launch";
568
+ }>;
569
+ turnSequence: z.ZodNumber;
570
+ receipt: z.ZodOptional<z.ZodEnum<{
571
+ required: "required";
572
+ unavailable: "unavailable";
573
+ }>>;
574
+ }, z.core.$strict>>>;
575
+ }, z.core.$strict>]>, z.ZodObject<{
576
+ kind: z.ZodLiteral<"tool">;
577
+ sequence: z.ZodNumber;
578
+ turnSequence: z.ZodNumber;
579
+ at: z.ZodString;
580
+ name: z.ZodString;
581
+ call: z.ZodUnion<readonly [z.ZodObject<{
582
+ kind: z.ZodLiteral<"run">;
583
+ command: z.ZodString;
584
+ }, z.core.$strict>, z.ZodObject<{
585
+ kind: z.ZodLiteral<"read">;
586
+ path: z.ZodString;
587
+ offset: z.ZodOptional<z.ZodNumber>;
588
+ limit: z.ZodOptional<z.ZodNumber>;
589
+ }, z.core.$strict>, z.ZodObject<{
590
+ kind: z.ZodLiteral<"search">;
591
+ query: z.ZodString;
592
+ scope: z.ZodOptional<z.ZodEnum<{
593
+ content: "content";
594
+ files: "files";
595
+ web: "web";
596
+ }>>;
597
+ path: z.ZodOptional<z.ZodString>;
598
+ glob: z.ZodOptional<z.ZodString>;
599
+ }, z.core.$strict>, z.ZodObject<{
600
+ kind: z.ZodLiteral<"fileChange">;
601
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
602
+ op: z.ZodEnum<{
603
+ add: "add";
604
+ update: "update";
605
+ delete: "delete";
606
+ unspecified: "unspecified";
607
+ }>;
608
+ path: z.ZodString;
609
+ diffstat: z.ZodOptional<z.ZodObject<{
610
+ added: z.ZodNumber;
611
+ removed: z.ZodNumber;
612
+ }, z.core.$strict>>;
613
+ }, z.core.$strict>>>;
614
+ }, z.core.$strict>, z.ZodObject<{
615
+ kind: z.ZodLiteral<"other">;
616
+ display: z.ZodString;
617
+ }, z.core.$strict>]>;
618
+ state: z.ZodLiteral<"active">;
619
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
620
+ }, z.core.$strict>, z.ZodObject<{
621
+ kind: z.ZodLiteral<"tool">;
622
+ sequence: z.ZodNumber;
623
+ turnSequence: z.ZodNumber;
624
+ at: z.ZodString;
625
+ completedAt: z.ZodOptional<z.ZodString>;
626
+ durationMs: z.ZodOptional<z.ZodNumber>;
627
+ name: z.ZodString;
628
+ call: z.ZodUnion<readonly [z.ZodObject<{
629
+ kind: z.ZodLiteral<"run">;
630
+ command: z.ZodString;
631
+ }, z.core.$strict>, z.ZodObject<{
632
+ kind: z.ZodLiteral<"read">;
633
+ path: z.ZodString;
634
+ offset: z.ZodOptional<z.ZodNumber>;
635
+ limit: z.ZodOptional<z.ZodNumber>;
636
+ }, z.core.$strict>, z.ZodObject<{
637
+ kind: z.ZodLiteral<"search">;
638
+ query: z.ZodString;
639
+ scope: z.ZodOptional<z.ZodEnum<{
640
+ content: "content";
641
+ files: "files";
642
+ web: "web";
643
+ }>>;
644
+ path: z.ZodOptional<z.ZodString>;
645
+ glob: z.ZodOptional<z.ZodString>;
646
+ }, z.core.$strict>, z.ZodObject<{
647
+ kind: z.ZodLiteral<"fileChange">;
648
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
649
+ op: z.ZodEnum<{
650
+ add: "add";
651
+ update: "update";
652
+ delete: "delete";
653
+ unspecified: "unspecified";
654
+ }>;
655
+ path: z.ZodString;
656
+ diffstat: z.ZodOptional<z.ZodObject<{
657
+ added: z.ZodNumber;
658
+ removed: z.ZodNumber;
659
+ }, z.core.$strict>>;
660
+ }, z.core.$strict>>>;
661
+ }, z.core.$strict>, z.ZodObject<{
662
+ kind: z.ZodLiteral<"other">;
663
+ display: z.ZodString;
664
+ }, z.core.$strict>]>;
665
+ state: z.ZodObject<{
666
+ status: z.ZodEnum<{
667
+ error: "error";
668
+ ok: "ok";
669
+ }>;
670
+ message: z.ZodOptional<z.ZodString>;
671
+ exitCode: z.ZodOptional<z.ZodNumber>;
672
+ }, z.core.$strict>;
673
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
674
+ }, z.core.$strict>]>;
675
+ }, z.core.$strict>]>>>;
676
+ omitted: z.ZodNumber;
677
+ }, z.core.$strict>, z.ZodObject<{
678
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
679
+ sequence: z.ZodNumber;
680
+ at: z.ZodString;
681
+ op: z.ZodEnum<{
682
+ add: "add";
683
+ update: "update";
684
+ delete: "delete";
685
+ unspecified: "unspecified";
686
+ }>;
687
+ path: z.ZodString;
688
+ diffstat: z.ZodOptional<z.ZodObject<{
689
+ added: z.ZodNumber;
690
+ removed: z.ZodNumber;
691
+ }, z.core.$strict>>;
692
+ }, z.core.$strict>>>;
693
+ reportedChangesOmitted: z.ZodNumber;
694
+ kind: z.ZodLiteral<"idle">;
695
+ outcome: z.ZodOptional<z.ZodObject<{
696
+ kind: z.ZodLiteral<"outcome">;
697
+ sequence: z.ZodNumber;
698
+ turnSequence: z.ZodNumber;
699
+ at: z.ZodString;
700
+ outcome: z.ZodUnion<readonly [z.ZodObject<{
701
+ kind: z.ZodLiteral<"answered">;
702
+ historyId: z.ZodString;
703
+ answer: z.ZodString;
704
+ }, z.core.$strict>, z.ZodObject<{
705
+ kind: z.ZodLiteral<"failed">;
706
+ historyId: z.ZodString;
707
+ diagnostic: z.ZodString;
708
+ }, z.core.$strict>]>;
709
+ }, z.core.$strict>>;
710
+ entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
711
+ kind: z.ZodLiteral<"gap">;
712
+ count: z.ZodNumber;
713
+ }, z.core.$strict>, z.ZodObject<{
714
+ kind: z.ZodLiteral<"row">;
715
+ row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
716
+ kind: z.ZodLiteral<"call">;
717
+ sequence: z.ZodNumber;
718
+ turnSequence: z.ZodNumber;
719
+ at: z.ZodString;
720
+ text: z.ZodString;
721
+ }, z.core.$strict>, z.ZodObject<{
722
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
723
+ sequence: z.ZodNumber;
724
+ turnSequence: z.ZodNumber;
725
+ at: z.ZodString;
726
+ text: z.ZodString;
727
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
728
+ }, z.core.$strict>, z.ZodObject<{
729
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
730
+ sequence: z.ZodNumber;
731
+ turnSequence: z.ZodNumber;
732
+ at: z.ZodString;
733
+ text: z.ZodString;
734
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
735
+ }, z.core.$strict>, z.ZodObject<{
736
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
737
+ sequence: z.ZodNumber;
738
+ turnSequence: z.ZodNumber;
739
+ at: z.ZodString;
740
+ text: z.ZodString;
741
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
742
+ }, z.core.$strict>, z.ZodObject<{
743
+ kind: z.ZodLiteral<"tell">;
744
+ sequence: z.ZodNumber;
745
+ at: z.ZodString;
746
+ tellId: z.ZodString;
747
+ text: z.ZodString;
748
+ state: z.ZodEnum<{
749
+ pending: "pending";
750
+ told: "told";
751
+ }>;
752
+ deliveries: z.ZodReadonly<z.ZodArray<z.ZodObject<{
753
+ deliveredAt: z.ZodString;
754
+ route: z.ZodEnum<{
755
+ live: "live";
756
+ launch: "launch";
757
+ }>;
758
+ turnSequence: z.ZodNumber;
759
+ receipt: z.ZodOptional<z.ZodEnum<{
760
+ required: "required";
761
+ unavailable: "unavailable";
762
+ }>>;
763
+ }, z.core.$strict>>>;
764
+ }, z.core.$strict>]>, z.ZodObject<{
765
+ kind: z.ZodLiteral<"tool">;
766
+ sequence: z.ZodNumber;
767
+ turnSequence: z.ZodNumber;
768
+ at: z.ZodString;
769
+ completedAt: z.ZodOptional<z.ZodString>;
770
+ durationMs: z.ZodOptional<z.ZodNumber>;
771
+ name: z.ZodString;
772
+ call: z.ZodUnion<readonly [z.ZodObject<{
773
+ kind: z.ZodLiteral<"run">;
774
+ command: z.ZodString;
775
+ }, z.core.$strict>, z.ZodObject<{
776
+ kind: z.ZodLiteral<"read">;
777
+ path: z.ZodString;
778
+ offset: z.ZodOptional<z.ZodNumber>;
779
+ limit: z.ZodOptional<z.ZodNumber>;
780
+ }, z.core.$strict>, z.ZodObject<{
781
+ kind: z.ZodLiteral<"search">;
782
+ query: z.ZodString;
783
+ scope: z.ZodOptional<z.ZodEnum<{
784
+ content: "content";
785
+ files: "files";
786
+ web: "web";
787
+ }>>;
788
+ path: z.ZodOptional<z.ZodString>;
789
+ glob: z.ZodOptional<z.ZodString>;
790
+ }, z.core.$strict>, z.ZodObject<{
791
+ kind: z.ZodLiteral<"fileChange">;
792
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
793
+ op: z.ZodEnum<{
794
+ add: "add";
795
+ update: "update";
796
+ delete: "delete";
797
+ unspecified: "unspecified";
798
+ }>;
799
+ path: z.ZodString;
800
+ diffstat: z.ZodOptional<z.ZodObject<{
801
+ added: z.ZodNumber;
802
+ removed: z.ZodNumber;
803
+ }, z.core.$strict>>;
804
+ }, z.core.$strict>>>;
805
+ }, z.core.$strict>, z.ZodObject<{
806
+ kind: z.ZodLiteral<"other">;
807
+ display: z.ZodString;
808
+ }, z.core.$strict>]>;
809
+ state: z.ZodObject<{
810
+ status: z.ZodEnum<{
811
+ error: "error";
812
+ ok: "ok";
813
+ }>;
814
+ message: z.ZodOptional<z.ZodString>;
815
+ exitCode: z.ZodOptional<z.ZodNumber>;
816
+ }, z.core.$strict>;
817
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
818
+ }, z.core.$strict>]>;
819
+ }, z.core.$strict>]>>>;
820
+ omitted: z.ZodNumber;
821
+ }, z.core.$strict>]>;
822
+ strandedReason: z.ZodOptional<z.ZodLiteral<"resume-unsupported">>;
823
+ }, z.core.$strict>;
824
+ contract: z.ZodUnion<readonly [z.ZodObject<{
825
+ kind: z.ZodLiteral<"none">;
826
+ }, z.core.$strict>, z.ZodObject<{
827
+ kind: z.ZodLiteral<"associated">;
828
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
829
+ }, z.core.$strict>, z.ZodObject<{
830
+ kind: z.ZodLiteral<"failed">;
831
+ diagnostic: z.ZodString;
832
+ }, z.core.$strict>]>;
833
+ createdTasks: z.ZodUnion<readonly [z.ZodObject<{
834
+ kind: z.ZodLiteral<"present">;
835
+ rows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
836
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
837
+ title: z.ZodString;
838
+ state: z.ZodEnum<{
839
+ open: "open";
840
+ in_progress: "in_progress";
841
+ on_hold: "on_hold";
842
+ done: "done";
843
+ drop: "drop";
844
+ }>;
845
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
846
+ disposition: z.ZodEnum<{
847
+ in_progress: "in_progress";
848
+ on_hold: "on_hold";
849
+ done: "done";
850
+ drop: "drop";
851
+ ready: "ready";
852
+ blocked: "blocked";
853
+ }>;
854
+ updatedAt: z.ZodString;
855
+ bodyPresent: z.ZodBoolean;
856
+ children: z.ZodOptional<z.ZodObject<{
857
+ live: z.ZodNumber;
858
+ total: z.ZodNumber;
859
+ }, z.core.$strict>>;
860
+ }, z.core.$strict>>>;
861
+ }, z.core.$strict>, z.ZodObject<{
862
+ kind: z.ZodLiteral<"failed">;
863
+ diagnostic: z.ZodString;
864
+ }, z.core.$strict>]>;
865
+ }, z.core.$strict>>;
866
+ unobserved: z.ZodArray<z.ZodObject<{
867
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
868
+ diagnostic: z.ZodString;
869
+ }, z.core.$strict>>;
870
+ }, z.core.$strict>;
871
+ declare const akumaKillResultSchema: z.ZodObject<{
872
+ results: z.ZodArray<z.ZodObject<{
873
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
874
+ evidence: z.ZodEnum<{
875
+ unavailable: "unavailable";
876
+ killed: "killed";
877
+ "already-killed": "already-killed";
878
+ "already-stopped": "already-stopped";
879
+ hung: "hung";
880
+ untidy: "untidy";
881
+ }>;
882
+ }, z.core.$strict>>;
883
+ }, z.core.$strict>;
884
+ declare const akumaTellResultSchema: z.ZodObject<{
885
+ akuma: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
886
+ tell: z.ZodObject<{
887
+ admission: z.ZodObject<{
888
+ fact: z.ZodLiteral<"recorded">;
889
+ tellId: z.ZodString;
890
+ }, z.core.$strict>;
891
+ wake: z.ZodUnion<readonly [z.ZodObject<{
892
+ kind: z.ZodLiteral<"told">;
893
+ }, z.core.$strict>, z.ZodObject<{
894
+ kind: z.ZodLiteral<"held">;
895
+ }, z.core.$strict>, z.ZodObject<{
896
+ kind: z.ZodLiteral<"pursuing">;
897
+ bodySequence: z.ZodNumber;
898
+ }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
899
+ kind: z.ZodLiteral<"failed">;
900
+ diagnostic: z.ZodString;
901
+ child: z.ZodOptional<z.ZodObject<{
902
+ code: z.ZodNullable<z.ZodNumber>;
903
+ signal: z.ZodNullable<z.ZodString>;
904
+ log: z.ZodObject<{
905
+ path: z.ZodString;
906
+ from: z.ZodNumber;
907
+ to: z.ZodNumber;
908
+ }, z.core.$strict>;
909
+ }, z.core.$strict>>;
910
+ }, z.core.$strict>, z.ZodTransform<{
911
+ kind: "failed";
912
+ diagnostic: string;
913
+ } | {
914
+ child: {
915
+ code: number | null;
916
+ signal: string | null;
917
+ log: {
918
+ path: string;
919
+ from: number;
920
+ to: number;
921
+ };
922
+ };
923
+ kind: "failed";
924
+ diagnostic: string;
925
+ }, {
926
+ kind: "failed";
927
+ diagnostic: string;
928
+ child?: {
929
+ code: number | null;
930
+ signal: string | null;
931
+ log: {
932
+ path: string;
933
+ from: number;
934
+ to: number;
935
+ };
936
+ } | undefined;
937
+ }>>]>;
938
+ }, z.core.$strict>;
939
+ }, z.core.$strict>;
940
+ export type CreatedTaskObservation = z.infer<typeof createdTaskObservationSchema>;
941
+ export type DispatchAssociation = z.infer<typeof dispatchAssociationSchema>;
942
+ export type AkumaObservation = z.infer<typeof akumaObservationSchema>;
943
+ export type AkumaObservationStage = (Readonly<{
944
+ kind: "observed";
945
+ }> & AkumaObservation) | Readonly<{
946
+ kind: "unobserved";
947
+ diagnostic: string;
948
+ }>;
949
+ export type AkumaUnobserved = z.infer<typeof akumaUnobservedSchema>;
950
+ export type AkumaWaitResult = z.infer<typeof akumaWaitResultSchema>;
951
+ export type AkumaKillResult = z.infer<typeof akumaKillResultSchema>;
952
+ export type AkumaTellResult = z.infer<typeof akumaTellResultSchema>;
953
+ export declare function parseCreatedTaskObservation(value: unknown): CreatedTaskObservation;
954
+ export declare function parseAkumaObservation(value: unknown): AkumaObservation;
955
+ export declare function isWaitResult(value: unknown): value is AkumaWaitResult;
956
+ export declare function isKillResult(value: unknown): value is AkumaKillResult;
957
+ export declare function isTellResult(value: unknown): value is AkumaTellResult;
958
+ export declare const fleetResultSchemas: {
959
+ wait: z.ZodObject<{
960
+ completion: z.ZodEnum<{
961
+ any: "any";
962
+ all: "all";
963
+ }>;
964
+ observations: z.ZodArray<z.ZodObject<{
965
+ status: z.ZodObject<{
966
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
967
+ life: z.ZodEnum<{
968
+ killed: "killed";
969
+ hung: "hung";
970
+ untidy: "untidy";
971
+ running: "running";
972
+ asleep: "asleep";
973
+ stranded: "stranded";
974
+ }>;
975
+ readonly: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
976
+ enforcement: z.ZodLiteral<"native">;
977
+ }, z.core.$strict>, z.ZodObject<{
978
+ enforcement: z.ZodLiteral<"none">;
979
+ diagnostic: z.ZodString;
980
+ }, z.core.$strict>]>>;
981
+ timeline: z.ZodUnion<readonly [z.ZodObject<{
982
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
983
+ sequence: z.ZodNumber;
984
+ at: z.ZodString;
985
+ op: z.ZodEnum<{
986
+ add: "add";
987
+ update: "update";
988
+ delete: "delete";
989
+ unspecified: "unspecified";
990
+ }>;
991
+ path: z.ZodString;
992
+ diffstat: z.ZodOptional<z.ZodObject<{
993
+ added: z.ZodNumber;
994
+ removed: z.ZodNumber;
995
+ }, z.core.$strict>>;
996
+ }, z.core.$strict>>>;
997
+ reportedChangesOmitted: z.ZodNumber;
998
+ kind: z.ZodLiteral<"unborn">;
999
+ entries: z.ZodReadonly<z.ZodTuple<[], null>>;
1000
+ omitted: z.ZodLiteral<0>;
1001
+ }, z.core.$strict>, z.ZodObject<{
1002
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1003
+ sequence: z.ZodNumber;
1004
+ at: z.ZodString;
1005
+ op: z.ZodEnum<{
1006
+ add: "add";
1007
+ update: "update";
1008
+ delete: "delete";
1009
+ unspecified: "unspecified";
1010
+ }>;
1011
+ path: z.ZodString;
1012
+ diffstat: z.ZodOptional<z.ZodObject<{
1013
+ added: z.ZodNumber;
1014
+ removed: z.ZodNumber;
1015
+ }, z.core.$strict>>;
1016
+ }, z.core.$strict>>>;
1017
+ reportedChangesOmitted: z.ZodNumber;
1018
+ kind: z.ZodLiteral<"open">;
1019
+ turn: z.ZodObject<{
1020
+ kind: z.ZodLiteral<"turn">;
1021
+ sequence: z.ZodNumber;
1022
+ turnSequence: z.ZodNumber;
1023
+ bodySequence: z.ZodNumber;
1024
+ at: z.ZodString;
1025
+ }, z.core.$strict>;
1026
+ entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1027
+ kind: z.ZodLiteral<"gap">;
1028
+ count: z.ZodNumber;
1029
+ }, z.core.$strict>, z.ZodObject<{
1030
+ kind: z.ZodLiteral<"row">;
1031
+ row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1032
+ kind: z.ZodLiteral<"call">;
1033
+ sequence: z.ZodNumber;
1034
+ turnSequence: z.ZodNumber;
1035
+ at: z.ZodString;
1036
+ text: z.ZodString;
1037
+ }, z.core.$strict>, z.ZodObject<{
1038
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
1039
+ sequence: z.ZodNumber;
1040
+ turnSequence: z.ZodNumber;
1041
+ at: z.ZodString;
1042
+ text: z.ZodString;
1043
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1044
+ }, z.core.$strict>, z.ZodObject<{
1045
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
1046
+ sequence: z.ZodNumber;
1047
+ turnSequence: z.ZodNumber;
1048
+ at: z.ZodString;
1049
+ text: z.ZodString;
1050
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1051
+ }, z.core.$strict>, z.ZodObject<{
1052
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
1053
+ sequence: z.ZodNumber;
1054
+ turnSequence: z.ZodNumber;
1055
+ at: z.ZodString;
1056
+ text: z.ZodString;
1057
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1058
+ }, z.core.$strict>, z.ZodObject<{
1059
+ kind: z.ZodLiteral<"tell">;
1060
+ sequence: z.ZodNumber;
1061
+ at: z.ZodString;
1062
+ tellId: z.ZodString;
1063
+ text: z.ZodString;
1064
+ state: z.ZodEnum<{
1065
+ pending: "pending";
1066
+ told: "told";
1067
+ }>;
1068
+ deliveries: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1069
+ deliveredAt: z.ZodString;
1070
+ route: z.ZodEnum<{
1071
+ live: "live";
1072
+ launch: "launch";
1073
+ }>;
1074
+ turnSequence: z.ZodNumber;
1075
+ receipt: z.ZodOptional<z.ZodEnum<{
1076
+ required: "required";
1077
+ unavailable: "unavailable";
1078
+ }>>;
1079
+ }, z.core.$strict>>>;
1080
+ }, z.core.$strict>]>, z.ZodObject<{
1081
+ kind: z.ZodLiteral<"tool">;
1082
+ sequence: z.ZodNumber;
1083
+ turnSequence: z.ZodNumber;
1084
+ at: z.ZodString;
1085
+ name: z.ZodString;
1086
+ call: z.ZodUnion<readonly [z.ZodObject<{
1087
+ kind: z.ZodLiteral<"run">;
1088
+ command: z.ZodString;
1089
+ }, z.core.$strict>, z.ZodObject<{
1090
+ kind: z.ZodLiteral<"read">;
1091
+ path: z.ZodString;
1092
+ offset: z.ZodOptional<z.ZodNumber>;
1093
+ limit: z.ZodOptional<z.ZodNumber>;
1094
+ }, z.core.$strict>, z.ZodObject<{
1095
+ kind: z.ZodLiteral<"search">;
1096
+ query: z.ZodString;
1097
+ scope: z.ZodOptional<z.ZodEnum<{
1098
+ content: "content";
1099
+ files: "files";
1100
+ web: "web";
1101
+ }>>;
1102
+ path: z.ZodOptional<z.ZodString>;
1103
+ glob: z.ZodOptional<z.ZodString>;
1104
+ }, z.core.$strict>, z.ZodObject<{
1105
+ kind: z.ZodLiteral<"fileChange">;
1106
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1107
+ op: z.ZodEnum<{
1108
+ add: "add";
1109
+ update: "update";
1110
+ delete: "delete";
1111
+ unspecified: "unspecified";
1112
+ }>;
1113
+ path: z.ZodString;
1114
+ diffstat: z.ZodOptional<z.ZodObject<{
1115
+ added: z.ZodNumber;
1116
+ removed: z.ZodNumber;
1117
+ }, z.core.$strict>>;
1118
+ }, z.core.$strict>>>;
1119
+ }, z.core.$strict>, z.ZodObject<{
1120
+ kind: z.ZodLiteral<"other">;
1121
+ display: z.ZodString;
1122
+ }, z.core.$strict>]>;
1123
+ state: z.ZodLiteral<"active">;
1124
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1125
+ }, z.core.$strict>, z.ZodObject<{
1126
+ kind: z.ZodLiteral<"tool">;
1127
+ sequence: z.ZodNumber;
1128
+ turnSequence: z.ZodNumber;
1129
+ at: z.ZodString;
1130
+ completedAt: z.ZodOptional<z.ZodString>;
1131
+ durationMs: z.ZodOptional<z.ZodNumber>;
1132
+ name: z.ZodString;
1133
+ call: z.ZodUnion<readonly [z.ZodObject<{
1134
+ kind: z.ZodLiteral<"run">;
1135
+ command: z.ZodString;
1136
+ }, z.core.$strict>, z.ZodObject<{
1137
+ kind: z.ZodLiteral<"read">;
1138
+ path: z.ZodString;
1139
+ offset: z.ZodOptional<z.ZodNumber>;
1140
+ limit: z.ZodOptional<z.ZodNumber>;
1141
+ }, z.core.$strict>, z.ZodObject<{
1142
+ kind: z.ZodLiteral<"search">;
1143
+ query: z.ZodString;
1144
+ scope: z.ZodOptional<z.ZodEnum<{
1145
+ content: "content";
1146
+ files: "files";
1147
+ web: "web";
1148
+ }>>;
1149
+ path: z.ZodOptional<z.ZodString>;
1150
+ glob: z.ZodOptional<z.ZodString>;
1151
+ }, z.core.$strict>, z.ZodObject<{
1152
+ kind: z.ZodLiteral<"fileChange">;
1153
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1154
+ op: z.ZodEnum<{
1155
+ add: "add";
1156
+ update: "update";
1157
+ delete: "delete";
1158
+ unspecified: "unspecified";
1159
+ }>;
1160
+ path: z.ZodString;
1161
+ diffstat: z.ZodOptional<z.ZodObject<{
1162
+ added: z.ZodNumber;
1163
+ removed: z.ZodNumber;
1164
+ }, z.core.$strict>>;
1165
+ }, z.core.$strict>>>;
1166
+ }, z.core.$strict>, z.ZodObject<{
1167
+ kind: z.ZodLiteral<"other">;
1168
+ display: z.ZodString;
1169
+ }, z.core.$strict>]>;
1170
+ state: z.ZodObject<{
1171
+ status: z.ZodEnum<{
1172
+ error: "error";
1173
+ ok: "ok";
1174
+ }>;
1175
+ message: z.ZodOptional<z.ZodString>;
1176
+ exitCode: z.ZodOptional<z.ZodNumber>;
1177
+ }, z.core.$strict>;
1178
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1179
+ }, z.core.$strict>]>;
1180
+ }, z.core.$strict>]>>>;
1181
+ omitted: z.ZodNumber;
1182
+ }, z.core.$strict>, z.ZodObject<{
1183
+ reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1184
+ sequence: z.ZodNumber;
1185
+ at: z.ZodString;
1186
+ op: z.ZodEnum<{
1187
+ add: "add";
1188
+ update: "update";
1189
+ delete: "delete";
1190
+ unspecified: "unspecified";
1191
+ }>;
1192
+ path: z.ZodString;
1193
+ diffstat: z.ZodOptional<z.ZodObject<{
1194
+ added: z.ZodNumber;
1195
+ removed: z.ZodNumber;
1196
+ }, z.core.$strict>>;
1197
+ }, z.core.$strict>>>;
1198
+ reportedChangesOmitted: z.ZodNumber;
1199
+ kind: z.ZodLiteral<"idle">;
1200
+ outcome: z.ZodOptional<z.ZodObject<{
1201
+ kind: z.ZodLiteral<"outcome">;
1202
+ sequence: z.ZodNumber;
1203
+ turnSequence: z.ZodNumber;
1204
+ at: z.ZodString;
1205
+ outcome: z.ZodUnion<readonly [z.ZodObject<{
1206
+ kind: z.ZodLiteral<"answered">;
1207
+ historyId: z.ZodString;
1208
+ answer: z.ZodString;
1209
+ }, z.core.$strict>, z.ZodObject<{
1210
+ kind: z.ZodLiteral<"failed">;
1211
+ historyId: z.ZodString;
1212
+ diagnostic: z.ZodString;
1213
+ }, z.core.$strict>]>;
1214
+ }, z.core.$strict>>;
1215
+ entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1216
+ kind: z.ZodLiteral<"gap">;
1217
+ count: z.ZodNumber;
1218
+ }, z.core.$strict>, z.ZodObject<{
1219
+ kind: z.ZodLiteral<"row">;
1220
+ row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1221
+ kind: z.ZodLiteral<"call">;
1222
+ sequence: z.ZodNumber;
1223
+ turnSequence: z.ZodNumber;
1224
+ at: z.ZodString;
1225
+ text: z.ZodString;
1226
+ }, z.core.$strict>, z.ZodObject<{
1227
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
1228
+ sequence: z.ZodNumber;
1229
+ turnSequence: z.ZodNumber;
1230
+ at: z.ZodString;
1231
+ text: z.ZodString;
1232
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1233
+ }, z.core.$strict>, z.ZodObject<{
1234
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
1235
+ sequence: z.ZodNumber;
1236
+ turnSequence: z.ZodNumber;
1237
+ at: z.ZodString;
1238
+ text: z.ZodString;
1239
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1240
+ }, z.core.$strict>, z.ZodObject<{
1241
+ kind: z.ZodLiteral<"note" | "thought" | "said">;
1242
+ sequence: z.ZodNumber;
1243
+ turnSequence: z.ZodNumber;
1244
+ at: z.ZodString;
1245
+ text: z.ZodString;
1246
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1247
+ }, z.core.$strict>, z.ZodObject<{
1248
+ kind: z.ZodLiteral<"tell">;
1249
+ sequence: z.ZodNumber;
1250
+ at: z.ZodString;
1251
+ tellId: z.ZodString;
1252
+ text: z.ZodString;
1253
+ state: z.ZodEnum<{
1254
+ pending: "pending";
1255
+ told: "told";
1256
+ }>;
1257
+ deliveries: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1258
+ deliveredAt: z.ZodString;
1259
+ route: z.ZodEnum<{
1260
+ live: "live";
1261
+ launch: "launch";
1262
+ }>;
1263
+ turnSequence: z.ZodNumber;
1264
+ receipt: z.ZodOptional<z.ZodEnum<{
1265
+ required: "required";
1266
+ unavailable: "unavailable";
1267
+ }>>;
1268
+ }, z.core.$strict>>>;
1269
+ }, z.core.$strict>]>, z.ZodObject<{
1270
+ kind: z.ZodLiteral<"tool">;
1271
+ sequence: z.ZodNumber;
1272
+ turnSequence: z.ZodNumber;
1273
+ at: z.ZodString;
1274
+ completedAt: z.ZodOptional<z.ZodString>;
1275
+ durationMs: z.ZodOptional<z.ZodNumber>;
1276
+ name: z.ZodString;
1277
+ call: z.ZodUnion<readonly [z.ZodObject<{
1278
+ kind: z.ZodLiteral<"run">;
1279
+ command: z.ZodString;
1280
+ }, z.core.$strict>, z.ZodObject<{
1281
+ kind: z.ZodLiteral<"read">;
1282
+ path: z.ZodString;
1283
+ offset: z.ZodOptional<z.ZodNumber>;
1284
+ limit: z.ZodOptional<z.ZodNumber>;
1285
+ }, z.core.$strict>, z.ZodObject<{
1286
+ kind: z.ZodLiteral<"search">;
1287
+ query: z.ZodString;
1288
+ scope: z.ZodOptional<z.ZodEnum<{
1289
+ content: "content";
1290
+ files: "files";
1291
+ web: "web";
1292
+ }>>;
1293
+ path: z.ZodOptional<z.ZodString>;
1294
+ glob: z.ZodOptional<z.ZodString>;
1295
+ }, z.core.$strict>, z.ZodObject<{
1296
+ kind: z.ZodLiteral<"fileChange">;
1297
+ changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1298
+ op: z.ZodEnum<{
1299
+ add: "add";
1300
+ update: "update";
1301
+ delete: "delete";
1302
+ unspecified: "unspecified";
1303
+ }>;
1304
+ path: z.ZodString;
1305
+ diffstat: z.ZodOptional<z.ZodObject<{
1306
+ added: z.ZodNumber;
1307
+ removed: z.ZodNumber;
1308
+ }, z.core.$strict>>;
1309
+ }, z.core.$strict>>>;
1310
+ }, z.core.$strict>, z.ZodObject<{
1311
+ kind: z.ZodLiteral<"other">;
1312
+ display: z.ZodString;
1313
+ }, z.core.$strict>]>;
1314
+ state: z.ZodObject<{
1315
+ status: z.ZodEnum<{
1316
+ error: "error";
1317
+ ok: "ok";
1318
+ }>;
1319
+ message: z.ZodOptional<z.ZodString>;
1320
+ exitCode: z.ZodOptional<z.ZodNumber>;
1321
+ }, z.core.$strict>;
1322
+ truncated: z.ZodOptional<z.ZodLiteral<true>>;
1323
+ }, z.core.$strict>]>;
1324
+ }, z.core.$strict>]>>>;
1325
+ omitted: z.ZodNumber;
1326
+ }, z.core.$strict>]>;
1327
+ strandedReason: z.ZodOptional<z.ZodLiteral<"resume-unsupported">>;
1328
+ }, z.core.$strict>;
1329
+ contract: z.ZodUnion<readonly [z.ZodObject<{
1330
+ kind: z.ZodLiteral<"none">;
1331
+ }, z.core.$strict>, z.ZodObject<{
1332
+ kind: z.ZodLiteral<"associated">;
1333
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").ContractId, string>>;
1334
+ }, z.core.$strict>, z.ZodObject<{
1335
+ kind: z.ZodLiteral<"failed">;
1336
+ diagnostic: z.ZodString;
1337
+ }, z.core.$strict>]>;
1338
+ createdTasks: z.ZodUnion<readonly [z.ZodObject<{
1339
+ kind: z.ZodLiteral<"present">;
1340
+ rows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1341
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1342
+ title: z.ZodString;
1343
+ state: z.ZodEnum<{
1344
+ open: "open";
1345
+ in_progress: "in_progress";
1346
+ on_hold: "on_hold";
1347
+ done: "done";
1348
+ drop: "drop";
1349
+ }>;
1350
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1351
+ disposition: z.ZodEnum<{
1352
+ in_progress: "in_progress";
1353
+ on_hold: "on_hold";
1354
+ done: "done";
1355
+ drop: "drop";
1356
+ ready: "ready";
1357
+ blocked: "blocked";
1358
+ }>;
1359
+ updatedAt: z.ZodString;
1360
+ bodyPresent: z.ZodBoolean;
1361
+ children: z.ZodOptional<z.ZodObject<{
1362
+ live: z.ZodNumber;
1363
+ total: z.ZodNumber;
1364
+ }, z.core.$strict>>;
1365
+ }, z.core.$strict>>>;
1366
+ }, z.core.$strict>, z.ZodObject<{
1367
+ kind: z.ZodLiteral<"failed">;
1368
+ diagnostic: z.ZodString;
1369
+ }, z.core.$strict>]>;
1370
+ }, z.core.$strict>>;
1371
+ unobserved: z.ZodArray<z.ZodObject<{
1372
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
1373
+ diagnostic: z.ZodString;
1374
+ }, z.core.$strict>>;
1375
+ }, z.core.$strict>;
1376
+ tell: z.ZodObject<{
1377
+ akuma: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
1378
+ tell: z.ZodObject<{
1379
+ admission: z.ZodObject<{
1380
+ fact: z.ZodLiteral<"recorded">;
1381
+ tellId: z.ZodString;
1382
+ }, z.core.$strict>;
1383
+ wake: z.ZodUnion<readonly [z.ZodObject<{
1384
+ kind: z.ZodLiteral<"told">;
1385
+ }, z.core.$strict>, z.ZodObject<{
1386
+ kind: z.ZodLiteral<"held">;
1387
+ }, z.core.$strict>, z.ZodObject<{
1388
+ kind: z.ZodLiteral<"pursuing">;
1389
+ bodySequence: z.ZodNumber;
1390
+ }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1391
+ kind: z.ZodLiteral<"failed">;
1392
+ diagnostic: z.ZodString;
1393
+ child: z.ZodOptional<z.ZodObject<{
1394
+ code: z.ZodNullable<z.ZodNumber>;
1395
+ signal: z.ZodNullable<z.ZodString>;
1396
+ log: z.ZodObject<{
1397
+ path: z.ZodString;
1398
+ from: z.ZodNumber;
1399
+ to: z.ZodNumber;
1400
+ }, z.core.$strict>;
1401
+ }, z.core.$strict>>;
1402
+ }, z.core.$strict>, z.ZodTransform<{
1403
+ kind: "failed";
1404
+ diagnostic: string;
1405
+ } | {
1406
+ child: {
1407
+ code: number | null;
1408
+ signal: string | null;
1409
+ log: {
1410
+ path: string;
1411
+ from: number;
1412
+ to: number;
1413
+ };
1414
+ };
1415
+ kind: "failed";
1416
+ diagnostic: string;
1417
+ }, {
1418
+ kind: "failed";
1419
+ diagnostic: string;
1420
+ child?: {
1421
+ code: number | null;
1422
+ signal: string | null;
1423
+ log: {
1424
+ path: string;
1425
+ from: number;
1426
+ to: number;
1427
+ };
1428
+ } | undefined;
1429
+ }>>]>;
1430
+ }, z.core.$strict>;
1431
+ }, z.core.$strict>;
1432
+ kill: z.ZodObject<{
1433
+ results: z.ZodArray<z.ZodObject<{
1434
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkuId, string>>;
1435
+ evidence: z.ZodEnum<{
1436
+ unavailable: "unavailable";
1437
+ killed: "killed";
1438
+ "already-killed": "already-killed";
1439
+ "already-stopped": "already-stopped";
1440
+ hung: "hung";
1441
+ untidy: "untidy";
1442
+ }>;
1443
+ }, z.core.$strict>>;
1444
+ }, z.core.$strict>;
1445
+ killEvidence: z.ZodEnum<{
1446
+ unavailable: "unavailable";
1447
+ killed: "killed";
1448
+ "already-killed": "already-killed";
1449
+ "already-stopped": "already-stopped";
1450
+ hung: "hung";
1451
+ untidy: "untidy";
1452
+ }>;
1453
+ };
1454
+ export {};