@astrosheep/keiyaku 4.5.7 → 4.5.9

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