@astrosheep/keiyaku 4.6.27 → 4.6.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/README.md +76 -35
  2. package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
  3. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +39 -4
  4. package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +4 -7
  5. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +1 -1
  6. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +39 -15
  7. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +42 -22
  8. package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
  9. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +39 -4
  10. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +4 -7
  11. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +1 -1
  12. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +39 -15
  13. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +42 -22
  14. package/build/plugins/opencode/package.json +1 -1
  15. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +39 -4
  16. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +4 -7
  17. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +1 -1
  18. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +39 -15
  19. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +42 -22
  20. package/build/plugins/pi/README.md +7 -12
  21. package/build/plugins/pi/akuma-tools.ts +3 -18
  22. package/build/skills/keiyaku-akuma/SKILL.md +39 -4
  23. package/build/skills/keiyaku-akuma/references/automation.md +4 -7
  24. package/build/skills/keiyaku-babysit/SKILL.md +1 -1
  25. package/build/skills/keiyaku-bind/SKILL.md +39 -15
  26. package/build/skills/keiyaku-workflow/SKILL.md +42 -22
  27. package/build/src/akuma/akuma-call.d.ts +15 -18
  28. package/build/src/akuma/akuma-call.js +55 -112
  29. package/build/src/akuma/akuma-errors.d.ts +0 -5
  30. package/build/src/akuma/akuma-errors.js +0 -9
  31. package/build/src/akuma/akuma-instance.d.ts +0 -2
  32. package/build/src/akuma/akuma-instance.js +18 -14
  33. package/build/src/akuma/akuma-observe.js +0 -1
  34. package/build/src/akuma/akuma-owner.js +0 -1
  35. package/build/src/akuma/akuma.d.ts +10 -26
  36. package/build/src/akuma/akuma.js +0 -2
  37. package/build/src/akuma/archetype.d.ts +0 -2
  38. package/build/src/akuma/archetype.js +3 -9
  39. package/build/src/akuma/body-launch.d.ts +12 -4
  40. package/build/src/akuma/body.d.ts +2 -5
  41. package/build/src/akuma/body.js +5 -49
  42. package/build/src/akuma/call-initial-tell.d.ts +39 -147
  43. package/build/src/akuma/call-initial-tell.js +0 -48
  44. package/build/src/akuma/caller.d.ts +0 -4
  45. package/build/src/akuma/custody.js +1 -57
  46. package/build/src/akuma/heart/facts.d.ts +0 -39
  47. package/build/src/akuma/heart/facts.js +0 -1
  48. package/build/src/akuma/heart/index.d.ts +1 -2
  49. package/build/src/akuma/heart/index.js +0 -1
  50. package/build/src/akuma/heart/schema.js +0 -26
  51. package/build/src/akuma/heart/soul.d.ts +2 -2
  52. package/build/src/akuma/heart/soul.js +2 -4
  53. package/build/src/akuma/identity.d.ts +0 -1
  54. package/build/src/akuma/identity.js +0 -2
  55. package/build/src/akuma/in-process-body.d.ts +1 -1
  56. package/build/src/akuma/index.d.ts +0 -2
  57. package/build/src/akuma/index.js +0 -1
  58. package/build/src/akuma/projection.d.ts +23 -23
  59. package/build/src/akuma/provider.d.ts +0 -5
  60. package/build/src/akuma/provider.js +0 -1
  61. package/build/src/akuma/providers/acp/core.js +1 -1
  62. package/build/src/akuma/providers/claude/index.js +1 -2
  63. package/build/src/akuma/providers/codex-app-server/index.js +1 -1
  64. package/build/src/akuma/providers/execution-environment.d.ts +1 -3
  65. package/build/src/akuma/providers/execution-environment.js +1 -7
  66. package/build/src/akuma/providers/opencode-sdk/index.js +0 -1
  67. package/build/src/akuma/providers/opencode-sdk/session.d.ts +0 -1
  68. package/build/src/akuma/providers/opencode-sdk/session.js +4 -4
  69. package/build/src/akuma/providers/paseo/index.js +2 -9
  70. package/build/src/akuma/providers/pi/index.js +8 -14
  71. package/build/src/akuma/publication.d.ts +24 -59
  72. package/build/src/akuma/publication.js +29 -64
  73. package/build/src/akuma/selection-observation.d.ts +47 -2036
  74. package/build/src/akuma/selection-observation.js +1 -59
  75. package/build/src/akuma/turn-drive.d.ts +0 -8
  76. package/build/src/akuma/turn-drive.js +19 -103
  77. package/build/src/akuma-body.js +3 -6
  78. package/build/src/body-host.d.ts +8 -2
  79. package/build/src/body-host.js +30 -4
  80. package/build/src/cli/commands/akuma-grammar.d.ts +0 -2
  81. package/build/src/cli/commands/akuma-grammar.js +10 -33
  82. package/build/src/cli/commands/akuma.js +31 -49
  83. package/build/src/cli/commands/contract-grammar.d.ts +7 -1
  84. package/build/src/cli/commands/contract-grammar.js +15 -0
  85. package/build/src/cli/commands/contract-help.d.ts +13 -1
  86. package/build/src/cli/commands/contract-help.js +47 -16
  87. package/build/src/cli/commands/contract.js +27 -26
  88. package/build/src/cli/commands/debt.js +3 -3
  89. package/build/src/cli/commands/whoami.d.ts +0 -2
  90. package/build/src/cli/commands/whoami.js +0 -5
  91. package/build/src/cli/coordinates.js +15 -0
  92. package/build/src/cli/delivery-identity.d.ts +3 -0
  93. package/build/src/cli/delivery-identity.js +23 -0
  94. package/build/src/cli/parse.js +1 -0
  95. package/build/src/cli/render/akuma-activity.d.ts +0 -1
  96. package/build/src/cli/render/akuma-activity.js +1 -4
  97. package/build/src/cli/render/catalog.js +7 -1
  98. package/build/src/cli/render/contract-history.js +16 -38
  99. package/build/src/cli/render/contract-observation.d.ts +23 -10
  100. package/build/src/cli/render/contract-observation.js +9 -6
  101. package/build/src/cli/render/contract-wait.d.ts +2 -0
  102. package/build/src/cli/render/contract-wait.js +18 -0
  103. package/build/src/cli/render/contract.d.ts +2 -2
  104. package/build/src/cli/render/contract.js +57 -39
  105. package/build/src/cli/render/delivery-preview.js +13 -26
  106. package/build/src/cli/render/execution-progress.js +9 -9
  107. package/build/src/cli/render/kanshi.js +4 -11
  108. package/build/src/cli/render/receipt.d.ts +18 -0
  109. package/build/src/cli/render/receipt.js +34 -10
  110. package/build/src/cli/render/reconcile.js +3 -0
  111. package/build/src/cli/render/refusal.js +28 -6
  112. package/build/src/cli/render/whoami.js +1 -4
  113. package/build/src/cli/runtime.d.ts +0 -2
  114. package/build/src/cli/runtime.js +3 -7
  115. package/build/src/cli/selectors.d.ts +1 -2
  116. package/build/src/cli/selectors.js +2 -5
  117. package/build/src/contract-guidance.js +4 -2
  118. package/build/src/contract-worktree.d.ts +3 -3
  119. package/build/src/core/facts/codec.js +38 -5
  120. package/build/src/core/facts/fold.js +1 -0
  121. package/build/src/core/facts/gate.d.ts +10 -4
  122. package/build/src/core/facts/gate.js +56 -39
  123. package/build/src/core/facts/observation.d.ts +7 -1
  124. package/build/src/core/facts/observation.js +15 -0
  125. package/build/src/core/facts/offer.d.ts +2 -2
  126. package/build/src/core/facts/types.d.ts +17 -1
  127. package/build/src/core/facts/types.js +6 -0
  128. package/build/src/core/verbs/amend.js +8 -0
  129. package/build/src/core/verbs/bind.d.ts +3 -1
  130. package/build/src/core/verbs/bind.js +9 -1
  131. package/build/src/core/verbs/deliver.d.ts +2 -1
  132. package/build/src/core/verbs/deliver.js +4 -1
  133. package/build/src/core/verbs/placement.d.ts +2 -1
  134. package/build/src/core/verbs/placement.js +7 -4
  135. package/build/src/core/verbs/reintegrate.d.ts +2 -1
  136. package/build/src/core/verbs/reintegrate.js +4 -1
  137. package/build/src/debt/board.d.ts +10 -10
  138. package/build/src/debt/created-observation.d.ts +3 -3
  139. package/build/src/debt/document.d.ts +1 -1
  140. package/build/src/debt/index.d.ts +2 -24
  141. package/build/src/debt/index.js +11 -71
  142. package/build/src/debt/operation-types.d.ts +44 -3
  143. package/build/src/git/admission.js +18 -6
  144. package/build/src/git/integration.d.ts +4 -4
  145. package/build/src/git/integration.js +7 -1
  146. package/build/src/git/observe.d.ts +6 -4
  147. package/build/src/git/observe.js +18 -17
  148. package/build/src/git/reconcile.d.ts +20 -8
  149. package/build/src/git/reconcile.js +94 -45
  150. package/build/src/git/repository.d.ts +3 -1
  151. package/build/src/git/repository.js +26 -4
  152. package/build/src/git/scratch.d.ts +1 -1
  153. package/build/src/git/scratch.js +19 -18
  154. package/build/src/git/target-placement.d.ts +33 -7
  155. package/build/src/git/target-placement.js +67 -18
  156. package/build/src/git/target.d.ts +32 -0
  157. package/build/src/git/target.js +84 -0
  158. package/build/src/git/terminal-reconcile.d.ts +1 -1
  159. package/build/src/git/terminal-reconcile.js +34 -6
  160. package/build/src/index.d.ts +9 -7
  161. package/build/src/index.js +1 -1
  162. package/build/src/library/address.d.ts +1 -20
  163. package/build/src/library/address.js +3 -24
  164. package/build/src/library/akuma-creation.d.ts +2 -5
  165. package/build/src/library/akuma-creation.js +60 -44
  166. package/build/src/library/akumas.d.ts +3 -9
  167. package/build/src/library/akumas.js +12 -25
  168. package/build/src/library/bind.d.ts +21 -9
  169. package/build/src/library/bind.js +5 -1
  170. package/build/src/library/continuation.d.ts +130 -155
  171. package/build/src/library/continuation.js +1 -4
  172. package/build/src/library/contract-composition.d.ts +4 -9
  173. package/build/src/library/contract-composition.js +8 -12
  174. package/build/src/library/contract-creation.d.ts +1 -3
  175. package/build/src/library/contract-creation.js +2 -3
  176. package/build/src/library/contract-execution.d.ts +3 -5
  177. package/build/src/library/contract-execution.js +55 -96
  178. package/build/src/library/contract-outcomes.d.ts +2 -1
  179. package/build/src/library/contract-types.d.ts +5 -0
  180. package/build/src/library/contract-wait.d.ts +35 -0
  181. package/build/src/library/contract-wait.js +141 -0
  182. package/build/src/library/delivery.d.ts +13 -525
  183. package/build/src/library/delivery.js +1 -12
  184. package/build/src/library/input.js +2 -1
  185. package/build/src/library/invocation.d.ts +5 -1
  186. package/build/src/library/invocation.js +9 -2
  187. package/build/src/library/keiyaku.d.ts +7 -6
  188. package/build/src/library/keiyaku.js +12 -7
  189. package/build/src/library/outcome.d.ts +461 -12586
  190. package/build/src/library/outcome.js +15 -234
  191. package/build/src/library/reconcile.d.ts +12 -0
  192. package/build/src/library/reconcile.js +1 -0
  193. package/build/src/library/refusal.d.ts +251 -34
  194. package/build/src/library/refusal.js +10 -5
  195. package/build/src/library/selection.d.ts +9 -35
  196. package/build/src/library/selection.js +59 -129
  197. package/build/src/plugin/akuma-signals.d.ts +2 -2
  198. package/build/src/plugin/akuma-signals.js +2 -2
  199. package/build/src/plugin/public.d.ts +0 -7
  200. package/build/src/plugin/runtime.d.ts +2 -2
  201. package/build/src/plugin/runtime.js +4 -3
  202. package/build/src/protocol/attempt.js +7 -3
  203. package/build/src/protocol/bind.d.ts +18 -4
  204. package/build/src/protocol/bind.js +102 -35
  205. package/build/src/protocol/completion.d.ts +18 -331
  206. package/build/src/protocol/completion.js +17 -130
  207. package/build/src/protocol/deliver.d.ts +3 -3
  208. package/build/src/protocol/deliver.js +64 -74
  209. package/build/src/protocol/delivery-preview.d.ts +85 -28
  210. package/build/src/protocol/delivery-preview.js +34 -22
  211. package/build/src/protocol/execution-observation.d.ts +12 -9
  212. package/build/src/protocol/execution-observation.js +0 -1
  213. package/build/src/protocol/intent.d.ts +20 -50
  214. package/build/src/protocol/intent.js +37 -44
  215. package/build/src/protocol/operations.d.ts +299 -19
  216. package/build/src/protocol/operations.js +68 -27
  217. package/build/src/protocol/outcome.d.ts +1 -1
  218. package/build/src/protocol/placement.d.ts +2 -2
  219. package/build/src/protocol/placement.js +4 -3
  220. package/build/src/protocol/progress.d.ts +35 -2
  221. package/build/src/protocol/progress.js +12 -1
  222. package/build/src/protocol/read/observation.js +15 -4
  223. package/build/src/protocol/read/status.d.ts +9 -14
  224. package/build/src/protocol/read/status.js +15 -22
  225. package/build/src/protocol/reintegrate.d.ts +4 -3
  226. package/build/src/protocol/reintegrate.js +21 -5
  227. package/build/src/protocol/review.d.ts +9 -15
  228. package/build/src/protocol/review.js +2 -6
  229. package/build/src/protocol/run.d.ts +1 -1
  230. package/build/src/protocol/verify.d.ts +51 -0
  231. package/build/src/protocol/verify.js +128 -0
  232. package/build/src/verification/declaration.d.ts +5 -1
  233. package/build/src/verification/declaration.js +19 -2
  234. package/build/src/verification/execution.d.ts +5 -2
  235. package/build/src/verification/execution.js +48 -53
  236. package/build/src/verification/observation.d.ts +10 -6
  237. package/build/src/verification/observation.js +5 -2
  238. package/package.json +3 -3
  239. package/plugins/paseo/plugin/index.server.ts +3 -0
  240. package/plugins/paseo/plugin/server/attach.ts +42 -0
  241. package/plugins/paseo/plugin/server/mirror-identity.ts +51 -0
  242. package/plugins/paseo/plugin/server/model.ts +26 -0
  243. package/plugins/paseo/plugin/server/provider.ts +4 -6
  244. package/plugins/paseo/plugin/server/reopen.ts +4 -39
  245. package/plugins/pi/README.md +7 -12
  246. package/plugins/pi/akuma-tools.ts +3 -18
  247. package/skills/keiyaku-akuma/SKILL.md +39 -4
  248. package/skills/keiyaku-akuma/references/automation.md +4 -7
  249. package/skills/keiyaku-babysit/SKILL.md +1 -1
  250. package/skills/keiyaku-bind/SKILL.md +39 -15
  251. package/skills/keiyaku-workflow/SKILL.md +42 -22
  252. package/build/src/akuma/allowed.d.ts +0 -23
  253. package/build/src/akuma/allowed.js +0 -63
  254. package/build/src/akuma/call-request.d.ts +0 -308
  255. package/build/src/akuma/call-request.js +0 -175
  256. package/build/src/akuma/heart/request-authority.d.ts +0 -16
  257. package/build/src/akuma/heart/request-authority.js +0 -140
  258. package/build/src/akuma/heart/request-rows.d.ts +0 -18
  259. package/build/src/akuma/heart/request-rows.js +0 -107
  260. package/build/src/akuma/request-lifecycle.d.ts +0 -42
  261. package/build/src/akuma/request-lifecycle.js +0 -197
  262. package/build/src/akuma/request-observation.d.ts +0 -45
  263. package/build/src/akuma/request-observation.js +0 -162
  264. package/build/src/akuma/request-rendezvous.d.ts +0 -32
  265. package/build/src/akuma/request-rendezvous.js +0 -189
  266. package/build/src/akuma/request-serve.d.ts +0 -16
  267. package/build/src/akuma/request-serve.js +0 -188
  268. package/build/src/akuma/request-wire.d.ts +0 -143
  269. package/build/src/akuma/request-wire.js +0 -146
  270. package/build/src/akuma/requests.d.ts +0 -20
  271. package/build/src/akuma/requests.js +0 -72
  272. package/build/src/akuma/selection-owner-port.d.ts +0 -14
  273. package/build/src/akuma/selection-owner-port.js +0 -54
  274. package/build/src/akuma/selection-request.d.ts +0 -305
  275. package/build/src/akuma/selection-request.js +0 -307
  276. package/build/src/body-requests.d.ts +0 -13
  277. package/build/src/body-requests.js +0 -131
  278. package/build/src/cli/square-identity.d.ts +0 -10
  279. package/build/src/cli/square-identity.js +0 -130
  280. package/build/src/debt/mutation-result.d.ts +0 -981
  281. package/build/src/debt/mutation-result.js +0 -109
  282. package/build/src/debt/mutation.d.ts +0 -424
  283. package/build/src/debt/mutation.js +0 -223
  284. package/build/src/library/contract-operations.d.ts +0 -382
  285. package/build/src/library/contract-operations.js +0 -300
@@ -1,2047 +1,58 @@
1
- import { z } from "zod";
2
- import { type AkumaStatus } from "./akuma.js";
3
- declare const akumaObservationSchema: z.ZodObject<{
4
- status: z.ZodObject<{
5
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
6
- birth: z.ZodObject<{
7
- origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
8
- kind: z.ZodLiteral<"direct">;
9
- }, z.core.$strip>, z.ZodObject<{
10
- kind: z.ZodLiteral<"request">;
11
- parent: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
12
- requestId: z.ZodString;
13
- }, z.core.$strip>, z.ZodObject<{
14
- kind: z.ZodLiteral<"fork">;
15
- parent: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
16
- at: z.ZodString;
17
- }, z.core.$strip>], "kind">;
18
- caller: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
19
- kind: z.ZodLiteral<"akuma">;
20
- world: z.ZodCustom<import("../world.js").WorldRoot, import("../world.js").WorldRoot>;
21
- akuId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
22
- }, z.core.$strict>, z.ZodObject<{
23
- kind: z.ZodLiteral<"external">;
24
- integration: z.ZodString;
25
- id: z.ZodString;
26
- }, z.core.$strict>], "kind">, z.ZodObject<{
27
- kind: z.ZodLiteral<"unknown">;
28
- }, z.core.$strict>]>;
29
- }, z.core.$strict>;
30
- life: z.ZodEnum<{
31
- killed: "killed";
32
- hung: "hung";
33
- untidy: "untidy";
34
- running: "running";
35
- asleep: "asleep";
36
- stranded: "stranded";
37
- }>;
38
- cwd: z.ZodOptional<z.ZodString>;
39
- provider: z.ZodOptional<z.ZodString>;
40
- model: z.ZodOptional<z.ZodString>;
41
- allowed: z.ZodPipe<z.ZodArray<z.ZodEnum<{
42
- "debt.add": "debt.add";
43
- "debt.addDocument": "debt.addDocument";
44
- "debt.done": "debt.done";
45
- "debt.drop": "debt.drop";
46
- "debt.update": "debt.update";
47
- "akuma.call": "akuma.call";
48
- "akuma.kill": "akuma.kill";
49
- "akuma.tell": "akuma.tell";
50
- "contract.deliver": "contract.deliver";
51
- "contract.review": "contract.review";
52
- }>>, z.ZodTransform<import("./allowed.js").AllowedActions, ("debt.add" | "debt.addDocument" | "debt.done" | "debt.drop" | "debt.update" | "akuma.call" | "akuma.kill" | "akuma.tell" | "contract.deliver" | "contract.review")[]>>;
53
- timeline: z.ZodUnion<readonly [z.ZodObject<{
54
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
55
- sequence: z.ZodNumber;
56
- at: z.ZodString;
57
- op: z.ZodEnum<{
58
- add: "add";
59
- update: "update";
60
- delete: "delete";
61
- unspecified: "unspecified";
62
- }>;
63
- path: z.ZodString;
64
- diffstat: z.ZodOptional<z.ZodObject<{
65
- added: z.ZodNumber;
66
- removed: z.ZodNumber;
67
- }, z.core.$strict>>;
68
- }, z.core.$strict>>>;
69
- reportedChangesOmitted: z.ZodNumber;
70
- kind: z.ZodLiteral<"unborn">;
71
- entries: z.ZodReadonly<z.ZodTuple<[], null>>;
72
- omitted: z.ZodLiteral<0>;
73
- }, z.core.$strict>, z.ZodObject<{
74
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
75
- sequence: z.ZodNumber;
76
- at: z.ZodString;
77
- op: z.ZodEnum<{
78
- add: "add";
79
- update: "update";
80
- delete: "delete";
81
- unspecified: "unspecified";
82
- }>;
83
- path: z.ZodString;
84
- diffstat: z.ZodOptional<z.ZodObject<{
85
- added: z.ZodNumber;
86
- removed: z.ZodNumber;
87
- }, z.core.$strict>>;
88
- }, z.core.$strict>>>;
89
- reportedChangesOmitted: z.ZodNumber;
90
- kind: z.ZodLiteral<"open">;
91
- turn: z.ZodObject<{
92
- kind: z.ZodLiteral<"turn">;
93
- sequence: z.ZodNumber;
94
- turnSequence: z.ZodNumber;
95
- bodySequence: z.ZodNumber;
96
- at: z.ZodString;
97
- }, z.core.$strict>;
98
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
99
- kind: z.ZodLiteral<"gap">;
100
- count: z.ZodNumber;
101
- }, z.core.$strict>, z.ZodObject<{
102
- kind: z.ZodLiteral<"row">;
103
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
104
- kind: z.ZodLiteral<"report">;
105
- sequence: z.ZodNumber;
106
- bodySequence: z.ZodNumber;
107
- turnSequence: z.ZodNumber;
108
- text: z.ZodString;
109
- at: z.ZodString;
110
- }, z.core.$strict>, 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
- unavailable: "unavailable";
156
- required: "required";
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?: "unavailable" | "required" | 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
- patch: z.ZodOptional<z.ZodString>;
204
- diffstat: z.ZodOptional<z.ZodObject<{
205
- added: z.ZodNumber;
206
- removed: z.ZodNumber;
207
- }, z.core.$strict>>;
208
- }, z.core.$strict>>>;
209
- }, z.core.$strict>, z.ZodObject<{
210
- kind: z.ZodLiteral<"other">;
211
- display: z.ZodString;
212
- input: z.ZodOptional<z.ZodObject<{
213
- json: z.ZodString;
214
- truncated: z.ZodBoolean;
215
- }, z.core.$strict>>;
216
- }, z.core.$strict>]>;
217
- state: z.ZodLiteral<"active">;
218
- toolId: z.ZodOptional<z.ZodString>;
219
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
220
- }, z.core.$strict>, z.ZodObject<{
221
- kind: z.ZodLiteral<"tool">;
222
- sequence: z.ZodNumber;
223
- turnSequence: z.ZodNumber;
224
- at: z.ZodString;
225
- durationMs: z.ZodOptional<z.ZodNumber>;
226
- name: z.ZodString;
227
- call: z.ZodUnion<readonly [z.ZodObject<{
228
- kind: z.ZodLiteral<"run">;
229
- command: z.ZodString;
230
- }, z.core.$strict>, z.ZodObject<{
231
- kind: z.ZodLiteral<"read">;
232
- path: z.ZodString;
233
- offset: z.ZodOptional<z.ZodNumber>;
234
- limit: z.ZodOptional<z.ZodNumber>;
235
- }, z.core.$strict>, z.ZodObject<{
236
- kind: z.ZodLiteral<"search">;
237
- query: z.ZodString;
238
- scope: z.ZodOptional<z.ZodEnum<{
239
- content: "content";
240
- files: "files";
241
- web: "web";
242
- }>>;
243
- path: z.ZodOptional<z.ZodString>;
244
- glob: z.ZodOptional<z.ZodString>;
245
- }, z.core.$strict>, z.ZodObject<{
246
- kind: z.ZodLiteral<"fileChange">;
247
- changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
248
- op: z.ZodEnum<{
249
- add: "add";
250
- update: "update";
251
- delete: "delete";
252
- unspecified: "unspecified";
253
- }>;
254
- path: z.ZodString;
255
- patch: z.ZodOptional<z.ZodString>;
256
- diffstat: z.ZodOptional<z.ZodObject<{
257
- added: z.ZodNumber;
258
- removed: z.ZodNumber;
259
- }, z.core.$strict>>;
260
- }, z.core.$strict>>>;
261
- }, z.core.$strict>, z.ZodObject<{
262
- kind: z.ZodLiteral<"other">;
263
- display: z.ZodString;
264
- input: z.ZodOptional<z.ZodObject<{
265
- json: z.ZodString;
266
- truncated: z.ZodBoolean;
267
- }, z.core.$strict>>;
268
- }, z.core.$strict>]>;
269
- state: z.ZodObject<{
270
- status: z.ZodEnum<{
271
- error: "error";
272
- ok: "ok";
273
- }>;
274
- message: z.ZodOptional<z.ZodString>;
275
- output: z.ZodOptional<z.ZodString>;
276
- exitCode: z.ZodOptional<z.ZodNumber>;
277
- }, z.core.$strict>;
278
- toolId: z.ZodOptional<z.ZodString>;
279
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
280
- }, z.core.$strict>]>;
281
- }, z.core.$strict>]>>>;
282
- omitted: z.ZodNumber;
283
- openingSequence: z.ZodOptional<z.ZodNumber>;
284
- }, z.core.$strict>, z.ZodObject<{
285
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
286
- sequence: z.ZodNumber;
287
- at: z.ZodString;
288
- op: z.ZodEnum<{
289
- add: "add";
290
- update: "update";
291
- delete: "delete";
292
- unspecified: "unspecified";
293
- }>;
294
- path: z.ZodString;
295
- diffstat: z.ZodOptional<z.ZodObject<{
296
- added: z.ZodNumber;
297
- removed: z.ZodNumber;
298
- }, z.core.$strict>>;
299
- }, z.core.$strict>>>;
300
- reportedChangesOmitted: z.ZodNumber;
301
- kind: z.ZodLiteral<"idle">;
302
- outcome: z.ZodOptional<z.ZodObject<{
303
- kind: z.ZodLiteral<"outcome">;
304
- sequence: z.ZodNumber;
305
- turnSequence: z.ZodNumber;
306
- at: z.ZodString;
307
- outcome: z.ZodUnion<readonly [z.ZodObject<{
308
- kind: z.ZodLiteral<"answered">;
309
- historyId: z.ZodString;
310
- answer: z.ZodString;
311
- foldedSaidSequence: z.ZodOptional<z.ZodNumber>;
312
- }, z.core.$strict>, z.ZodObject<{
313
- kind: z.ZodLiteral<"failed">;
314
- historyId: z.ZodString;
315
- diagnostic: z.ZodString;
316
- }, z.core.$strict>, z.ZodObject<{
317
- kind: z.ZodLiteral<"canceled">;
318
- historyId: z.ZodString;
319
- }, z.core.$strict>]>;
320
- }, z.core.$strict>>;
321
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
322
- kind: z.ZodLiteral<"gap">;
323
- count: z.ZodNumber;
324
- }, z.core.$strict>, z.ZodObject<{
325
- kind: z.ZodLiteral<"row">;
326
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
327
- kind: z.ZodLiteral<"report">;
328
- sequence: z.ZodNumber;
329
- bodySequence: z.ZodNumber;
330
- turnSequence: z.ZodNumber;
331
- text: z.ZodString;
332
- at: z.ZodString;
333
- }, z.core.$strict>, z.ZodObject<{
334
- kind: z.ZodLiteral<"call">;
335
- sequence: z.ZodNumber;
336
- turnSequence: z.ZodNumber;
337
- at: z.ZodString;
338
- text: z.ZodString;
339
- }, z.core.$strict>, z.ZodObject<{
340
- kind: z.ZodLiteral<"note" | "thought" | "said">;
341
- sequence: z.ZodNumber;
342
- turnSequence: z.ZodNumber;
343
- at: z.ZodString;
344
- text: z.ZodString;
345
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
346
- }, z.core.$strict>, z.ZodObject<{
347
- kind: z.ZodLiteral<"note" | "thought" | "said">;
348
- sequence: z.ZodNumber;
349
- turnSequence: z.ZodNumber;
350
- at: z.ZodString;
351
- text: z.ZodString;
352
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
353
- }, z.core.$strict>, z.ZodObject<{
354
- kind: z.ZodLiteral<"note" | "thought" | "said">;
355
- sequence: z.ZodNumber;
356
- turnSequence: z.ZodNumber;
357
- at: z.ZodString;
358
- text: z.ZodString;
359
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
360
- }, z.core.$strict>, z.ZodObject<{
361
- kind: z.ZodLiteral<"tell">;
362
- sequence: z.ZodNumber;
363
- at: z.ZodString;
364
- tellId: z.ZodString;
365
- text: z.ZodString;
366
- state: z.ZodEnum<{
367
- pending: "pending";
368
- told: "told";
369
- }>;
370
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
371
- deliveredAt: z.ZodString;
372
- route: z.ZodEnum<{
373
- live: "live";
374
- launch: "launch";
375
- }>;
376
- turnSequence: z.ZodNumber;
377
- receipt: z.ZodOptional<z.ZodEnum<{
378
- unavailable: "unavailable";
379
- required: "required";
380
- }>>;
381
- }, z.core.$strict>, z.ZodTransform<Readonly<{
382
- turnSequence: number;
383
- route: "launch" | "live";
384
- receipt?: "unavailable" | "required";
385
- deliveredAt: string;
386
- }>, {
387
- deliveredAt: string;
388
- route: "live" | "launch";
389
- turnSequence: number;
390
- receipt?: "unavailable" | "required" | undefined;
391
- }>>>>;
392
- }, z.core.$strict>]>, z.ZodObject<{
393
- kind: z.ZodLiteral<"tool">;
394
- sequence: z.ZodNumber;
395
- turnSequence: z.ZodNumber;
396
- at: z.ZodString;
397
- durationMs: z.ZodOptional<z.ZodNumber>;
398
- name: z.ZodString;
399
- call: z.ZodUnion<readonly [z.ZodObject<{
400
- kind: z.ZodLiteral<"run">;
401
- command: z.ZodString;
402
- }, z.core.$strict>, z.ZodObject<{
403
- kind: z.ZodLiteral<"read">;
404
- path: z.ZodString;
405
- offset: z.ZodOptional<z.ZodNumber>;
406
- limit: z.ZodOptional<z.ZodNumber>;
407
- }, z.core.$strict>, z.ZodObject<{
408
- kind: z.ZodLiteral<"search">;
409
- query: z.ZodString;
410
- scope: z.ZodOptional<z.ZodEnum<{
411
- content: "content";
412
- files: "files";
413
- web: "web";
414
- }>>;
415
- path: z.ZodOptional<z.ZodString>;
416
- glob: z.ZodOptional<z.ZodString>;
417
- }, z.core.$strict>, z.ZodObject<{
418
- kind: z.ZodLiteral<"fileChange">;
419
- changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
420
- op: z.ZodEnum<{
421
- add: "add";
422
- update: "update";
423
- delete: "delete";
424
- unspecified: "unspecified";
425
- }>;
426
- path: z.ZodString;
427
- patch: z.ZodOptional<z.ZodString>;
428
- diffstat: z.ZodOptional<z.ZodObject<{
429
- added: z.ZodNumber;
430
- removed: z.ZodNumber;
431
- }, z.core.$strict>>;
432
- }, z.core.$strict>>>;
433
- }, z.core.$strict>, z.ZodObject<{
434
- kind: z.ZodLiteral<"other">;
435
- display: z.ZodString;
436
- input: z.ZodOptional<z.ZodObject<{
437
- json: z.ZodString;
438
- truncated: z.ZodBoolean;
439
- }, z.core.$strict>>;
440
- }, z.core.$strict>]>;
441
- state: z.ZodObject<{
442
- status: z.ZodEnum<{
443
- error: "error";
444
- ok: "ok";
445
- }>;
446
- message: z.ZodOptional<z.ZodString>;
447
- output: z.ZodOptional<z.ZodString>;
448
- exitCode: z.ZodOptional<z.ZodNumber>;
449
- }, z.core.$strict>;
450
- toolId: z.ZodOptional<z.ZodString>;
451
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
452
- }, z.core.$strict>]>;
453
- }, z.core.$strict>]>>>;
454
- omitted: z.ZodNumber;
455
- }, z.core.$strict>]>;
456
- strandedReason: z.ZodOptional<z.ZodLiteral<"resume-unsupported">>;
457
- }, z.core.$strict>;
458
- contract: z.ZodUnion<readonly [z.ZodObject<{
459
- kind: z.ZodLiteral<"none">;
460
- }, z.core.$strict>, z.ZodObject<{
461
- kind: z.ZodLiteral<"associated">;
462
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
463
- }, z.core.$strict>, z.ZodObject<{
464
- kind: z.ZodLiteral<"failed">;
465
- diagnostic: z.ZodString;
466
- }, z.core.$strict>]>;
467
- createdDebts: z.ZodUnion<readonly [z.ZodObject<{
468
- kind: z.ZodLiteral<"present">;
469
- rows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
470
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
471
- title: z.ZodString;
472
- state: z.ZodEnum<{
473
- open: "open";
474
- done: "done";
475
- drop: "drop";
476
- }>;
477
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
478
- disposition: z.ZodEnum<{
479
- done: "done";
480
- drop: "drop";
481
- ready: "ready";
482
- blocked: "blocked";
483
- }>;
484
- updatedAt: z.ZodString;
485
- bodyPresent: z.ZodBoolean;
486
- children: z.ZodOptional<z.ZodObject<{
487
- live: z.ZodNumber;
488
- total: z.ZodNumber;
489
- }, z.core.$strict>>;
490
- }, z.core.$strict>>>;
491
- }, z.core.$strict>, z.ZodObject<{
492
- kind: z.ZodLiteral<"failed">;
493
- diagnostic: z.ZodString;
494
- }, z.core.$strict>]>;
495
- }, z.core.$strict>;
496
- declare const akumaUnobservedSchema: z.ZodObject<{
497
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
498
- diagnostic: z.ZodString;
499
- }, z.core.$strict>;
500
- declare const akumaWaitResultSchema: z.ZodObject<{
501
- mode: z.ZodEnum<{
502
- any: "any";
503
- all: "all";
504
- }>;
505
- reason: z.ZodEnum<{
506
- completed: "completed";
507
- deadline: "deadline";
508
- }>;
509
- observations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
510
- status: z.ZodObject<{
511
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
512
- birth: z.ZodObject<{
513
- origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
514
- kind: z.ZodLiteral<"direct">;
515
- }, z.core.$strip>, z.ZodObject<{
516
- kind: z.ZodLiteral<"request">;
517
- parent: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
518
- requestId: z.ZodString;
519
- }, z.core.$strip>, z.ZodObject<{
520
- kind: z.ZodLiteral<"fork">;
521
- parent: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
522
- at: z.ZodString;
523
- }, z.core.$strip>], "kind">;
524
- caller: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
525
- kind: z.ZodLiteral<"akuma">;
526
- world: z.ZodCustom<import("../world.js").WorldRoot, import("../world.js").WorldRoot>;
527
- akuId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
528
- }, z.core.$strict>, z.ZodObject<{
529
- kind: z.ZodLiteral<"external">;
530
- integration: z.ZodString;
531
- id: z.ZodString;
532
- }, z.core.$strict>], "kind">, z.ZodObject<{
533
- kind: z.ZodLiteral<"unknown">;
534
- }, z.core.$strict>]>;
535
- }, z.core.$strict>;
536
- life: z.ZodEnum<{
537
- killed: "killed";
538
- hung: "hung";
539
- untidy: "untidy";
540
- running: "running";
541
- asleep: "asleep";
542
- stranded: "stranded";
543
- }>;
544
- cwd: z.ZodOptional<z.ZodString>;
545
- provider: z.ZodOptional<z.ZodString>;
546
- model: z.ZodOptional<z.ZodString>;
547
- allowed: z.ZodPipe<z.ZodArray<z.ZodEnum<{
548
- "debt.add": "debt.add";
549
- "debt.addDocument": "debt.addDocument";
550
- "debt.done": "debt.done";
551
- "debt.drop": "debt.drop";
552
- "debt.update": "debt.update";
553
- "akuma.call": "akuma.call";
554
- "akuma.kill": "akuma.kill";
555
- "akuma.tell": "akuma.tell";
556
- "contract.deliver": "contract.deliver";
557
- "contract.review": "contract.review";
558
- }>>, z.ZodTransform<import("./allowed.js").AllowedActions, ("debt.add" | "debt.addDocument" | "debt.done" | "debt.drop" | "debt.update" | "akuma.call" | "akuma.kill" | "akuma.tell" | "contract.deliver" | "contract.review")[]>>;
559
- timeline: z.ZodUnion<readonly [z.ZodObject<{
560
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
561
- sequence: z.ZodNumber;
562
- at: z.ZodString;
563
- op: z.ZodEnum<{
564
- add: "add";
565
- update: "update";
566
- delete: "delete";
567
- unspecified: "unspecified";
568
- }>;
569
- path: z.ZodString;
570
- diffstat: z.ZodOptional<z.ZodObject<{
571
- added: z.ZodNumber;
572
- removed: z.ZodNumber;
573
- }, z.core.$strict>>;
574
- }, z.core.$strict>>>;
575
- reportedChangesOmitted: z.ZodNumber;
576
- kind: z.ZodLiteral<"unborn">;
577
- entries: z.ZodReadonly<z.ZodTuple<[], null>>;
578
- omitted: z.ZodLiteral<0>;
579
- }, z.core.$strict>, z.ZodObject<{
580
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
581
- sequence: z.ZodNumber;
582
- at: z.ZodString;
583
- op: z.ZodEnum<{
584
- add: "add";
585
- update: "update";
586
- delete: "delete";
587
- unspecified: "unspecified";
588
- }>;
589
- path: z.ZodString;
590
- diffstat: z.ZodOptional<z.ZodObject<{
591
- added: z.ZodNumber;
592
- removed: z.ZodNumber;
593
- }, z.core.$strict>>;
594
- }, z.core.$strict>>>;
595
- reportedChangesOmitted: z.ZodNumber;
596
- kind: z.ZodLiteral<"open">;
597
- turn: z.ZodObject<{
598
- kind: z.ZodLiteral<"turn">;
599
- sequence: z.ZodNumber;
600
- turnSequence: z.ZodNumber;
601
- bodySequence: z.ZodNumber;
602
- at: z.ZodString;
603
- }, z.core.$strict>;
604
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
605
- kind: z.ZodLiteral<"gap">;
606
- count: z.ZodNumber;
607
- }, z.core.$strict>, z.ZodObject<{
608
- kind: z.ZodLiteral<"row">;
609
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
610
- kind: z.ZodLiteral<"report">;
611
- sequence: z.ZodNumber;
612
- bodySequence: z.ZodNumber;
613
- turnSequence: z.ZodNumber;
614
- text: z.ZodString;
615
- at: z.ZodString;
616
- }, z.core.$strict>, z.ZodObject<{
617
- kind: z.ZodLiteral<"call">;
618
- sequence: z.ZodNumber;
619
- turnSequence: z.ZodNumber;
620
- at: z.ZodString;
621
- text: z.ZodString;
622
- }, z.core.$strict>, z.ZodObject<{
623
- kind: z.ZodLiteral<"note" | "thought" | "said">;
624
- sequence: z.ZodNumber;
625
- turnSequence: z.ZodNumber;
626
- at: z.ZodString;
627
- text: z.ZodString;
628
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
629
- }, z.core.$strict>, z.ZodObject<{
630
- kind: z.ZodLiteral<"note" | "thought" | "said">;
631
- sequence: z.ZodNumber;
632
- turnSequence: z.ZodNumber;
633
- at: z.ZodString;
634
- text: z.ZodString;
635
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
636
- }, z.core.$strict>, z.ZodObject<{
637
- kind: z.ZodLiteral<"note" | "thought" | "said">;
638
- sequence: z.ZodNumber;
639
- turnSequence: z.ZodNumber;
640
- at: z.ZodString;
641
- text: z.ZodString;
642
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
643
- }, z.core.$strict>, z.ZodObject<{
644
- kind: z.ZodLiteral<"tell">;
645
- sequence: z.ZodNumber;
646
- at: z.ZodString;
647
- tellId: z.ZodString;
648
- text: z.ZodString;
649
- state: z.ZodEnum<{
650
- pending: "pending";
651
- told: "told";
652
- }>;
653
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
654
- deliveredAt: z.ZodString;
655
- route: z.ZodEnum<{
656
- live: "live";
657
- launch: "launch";
658
- }>;
659
- turnSequence: z.ZodNumber;
660
- receipt: z.ZodOptional<z.ZodEnum<{
661
- unavailable: "unavailable";
662
- required: "required";
663
- }>>;
664
- }, z.core.$strict>, z.ZodTransform<Readonly<{
665
- turnSequence: number;
666
- route: "launch" | "live";
667
- receipt?: "unavailable" | "required";
668
- deliveredAt: string;
669
- }>, {
670
- deliveredAt: string;
671
- route: "live" | "launch";
672
- turnSequence: number;
673
- receipt?: "unavailable" | "required" | undefined;
674
- }>>>>;
675
- }, z.core.$strict>]>, z.ZodObject<{
676
- kind: z.ZodLiteral<"tool">;
677
- sequence: z.ZodNumber;
678
- turnSequence: z.ZodNumber;
679
- at: z.ZodString;
680
- name: z.ZodString;
681
- call: z.ZodUnion<readonly [z.ZodObject<{
682
- kind: z.ZodLiteral<"run">;
683
- command: z.ZodString;
684
- }, z.core.$strict>, z.ZodObject<{
685
- kind: z.ZodLiteral<"read">;
686
- path: z.ZodString;
687
- offset: z.ZodOptional<z.ZodNumber>;
688
- limit: z.ZodOptional<z.ZodNumber>;
689
- }, z.core.$strict>, z.ZodObject<{
690
- kind: z.ZodLiteral<"search">;
691
- query: z.ZodString;
692
- scope: z.ZodOptional<z.ZodEnum<{
693
- content: "content";
694
- files: "files";
695
- web: "web";
696
- }>>;
697
- path: z.ZodOptional<z.ZodString>;
698
- glob: z.ZodOptional<z.ZodString>;
699
- }, z.core.$strict>, z.ZodObject<{
700
- kind: z.ZodLiteral<"fileChange">;
701
- changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
702
- op: z.ZodEnum<{
703
- add: "add";
704
- update: "update";
705
- delete: "delete";
706
- unspecified: "unspecified";
707
- }>;
708
- path: z.ZodString;
709
- patch: z.ZodOptional<z.ZodString>;
710
- diffstat: z.ZodOptional<z.ZodObject<{
711
- added: z.ZodNumber;
712
- removed: z.ZodNumber;
713
- }, z.core.$strict>>;
714
- }, z.core.$strict>>>;
715
- }, z.core.$strict>, z.ZodObject<{
716
- kind: z.ZodLiteral<"other">;
717
- display: z.ZodString;
718
- input: z.ZodOptional<z.ZodObject<{
719
- json: z.ZodString;
720
- truncated: z.ZodBoolean;
721
- }, z.core.$strict>>;
722
- }, z.core.$strict>]>;
723
- state: z.ZodLiteral<"active">;
724
- toolId: z.ZodOptional<z.ZodString>;
725
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
726
- }, z.core.$strict>, z.ZodObject<{
727
- kind: z.ZodLiteral<"tool">;
728
- sequence: z.ZodNumber;
729
- turnSequence: z.ZodNumber;
730
- at: z.ZodString;
731
- durationMs: z.ZodOptional<z.ZodNumber>;
732
- name: z.ZodString;
733
- call: z.ZodUnion<readonly [z.ZodObject<{
734
- kind: z.ZodLiteral<"run">;
735
- command: z.ZodString;
736
- }, z.core.$strict>, z.ZodObject<{
737
- kind: z.ZodLiteral<"read">;
738
- path: z.ZodString;
739
- offset: z.ZodOptional<z.ZodNumber>;
740
- limit: z.ZodOptional<z.ZodNumber>;
741
- }, z.core.$strict>, z.ZodObject<{
742
- kind: z.ZodLiteral<"search">;
743
- query: z.ZodString;
744
- scope: z.ZodOptional<z.ZodEnum<{
745
- content: "content";
746
- files: "files";
747
- web: "web";
748
- }>>;
749
- path: z.ZodOptional<z.ZodString>;
750
- glob: z.ZodOptional<z.ZodString>;
751
- }, z.core.$strict>, z.ZodObject<{
752
- kind: z.ZodLiteral<"fileChange">;
753
- changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
754
- op: z.ZodEnum<{
755
- add: "add";
756
- update: "update";
757
- delete: "delete";
758
- unspecified: "unspecified";
759
- }>;
760
- path: z.ZodString;
761
- patch: z.ZodOptional<z.ZodString>;
762
- diffstat: z.ZodOptional<z.ZodObject<{
763
- added: z.ZodNumber;
764
- removed: z.ZodNumber;
765
- }, z.core.$strict>>;
766
- }, z.core.$strict>>>;
767
- }, z.core.$strict>, z.ZodObject<{
768
- kind: z.ZodLiteral<"other">;
769
- display: z.ZodString;
770
- input: z.ZodOptional<z.ZodObject<{
771
- json: z.ZodString;
772
- truncated: z.ZodBoolean;
773
- }, z.core.$strict>>;
774
- }, z.core.$strict>]>;
775
- state: z.ZodObject<{
776
- status: z.ZodEnum<{
777
- error: "error";
778
- ok: "ok";
779
- }>;
780
- message: z.ZodOptional<z.ZodString>;
781
- output: z.ZodOptional<z.ZodString>;
782
- exitCode: z.ZodOptional<z.ZodNumber>;
783
- }, z.core.$strict>;
784
- toolId: z.ZodOptional<z.ZodString>;
785
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
786
- }, z.core.$strict>]>;
787
- }, z.core.$strict>]>>>;
788
- omitted: z.ZodNumber;
789
- openingSequence: z.ZodOptional<z.ZodNumber>;
790
- }, z.core.$strict>, z.ZodObject<{
791
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
792
- sequence: z.ZodNumber;
793
- at: z.ZodString;
794
- op: z.ZodEnum<{
795
- add: "add";
796
- update: "update";
797
- delete: "delete";
798
- unspecified: "unspecified";
799
- }>;
800
- path: z.ZodString;
801
- diffstat: z.ZodOptional<z.ZodObject<{
802
- added: z.ZodNumber;
803
- removed: z.ZodNumber;
804
- }, z.core.$strict>>;
805
- }, z.core.$strict>>>;
806
- reportedChangesOmitted: z.ZodNumber;
807
- kind: z.ZodLiteral<"idle">;
808
- outcome: z.ZodOptional<z.ZodObject<{
809
- kind: z.ZodLiteral<"outcome">;
810
- sequence: z.ZodNumber;
811
- turnSequence: z.ZodNumber;
812
- at: z.ZodString;
813
- outcome: z.ZodUnion<readonly [z.ZodObject<{
814
- kind: z.ZodLiteral<"answered">;
815
- historyId: z.ZodString;
816
- answer: z.ZodString;
817
- foldedSaidSequence: z.ZodOptional<z.ZodNumber>;
818
- }, z.core.$strict>, z.ZodObject<{
819
- kind: z.ZodLiteral<"failed">;
820
- historyId: z.ZodString;
821
- diagnostic: z.ZodString;
822
- }, z.core.$strict>, z.ZodObject<{
823
- kind: z.ZodLiteral<"canceled">;
824
- historyId: z.ZodString;
825
- }, z.core.$strict>]>;
826
- }, z.core.$strict>>;
827
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
828
- kind: z.ZodLiteral<"gap">;
829
- count: z.ZodNumber;
830
- }, z.core.$strict>, z.ZodObject<{
831
- kind: z.ZodLiteral<"row">;
832
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
833
- kind: z.ZodLiteral<"report">;
834
- sequence: z.ZodNumber;
835
- bodySequence: z.ZodNumber;
836
- turnSequence: z.ZodNumber;
837
- text: z.ZodString;
838
- at: z.ZodString;
839
- }, z.core.$strict>, z.ZodObject<{
840
- kind: z.ZodLiteral<"call">;
841
- sequence: z.ZodNumber;
842
- turnSequence: z.ZodNumber;
843
- at: z.ZodString;
844
- text: z.ZodString;
845
- }, z.core.$strict>, z.ZodObject<{
846
- kind: z.ZodLiteral<"note" | "thought" | "said">;
847
- sequence: z.ZodNumber;
848
- turnSequence: z.ZodNumber;
849
- at: z.ZodString;
850
- text: z.ZodString;
851
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
852
- }, z.core.$strict>, z.ZodObject<{
853
- kind: z.ZodLiteral<"note" | "thought" | "said">;
854
- sequence: z.ZodNumber;
855
- turnSequence: z.ZodNumber;
856
- at: z.ZodString;
857
- text: z.ZodString;
858
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
859
- }, z.core.$strict>, z.ZodObject<{
860
- kind: z.ZodLiteral<"note" | "thought" | "said">;
861
- sequence: z.ZodNumber;
862
- turnSequence: z.ZodNumber;
863
- at: z.ZodString;
864
- text: z.ZodString;
865
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
866
- }, z.core.$strict>, z.ZodObject<{
867
- kind: z.ZodLiteral<"tell">;
868
- sequence: z.ZodNumber;
869
- at: z.ZodString;
870
- tellId: z.ZodString;
871
- text: z.ZodString;
872
- state: z.ZodEnum<{
873
- pending: "pending";
874
- told: "told";
875
- }>;
876
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
877
- deliveredAt: z.ZodString;
878
- route: z.ZodEnum<{
879
- live: "live";
880
- launch: "launch";
881
- }>;
882
- turnSequence: z.ZodNumber;
883
- receipt: z.ZodOptional<z.ZodEnum<{
884
- unavailable: "unavailable";
885
- required: "required";
886
- }>>;
887
- }, z.core.$strict>, z.ZodTransform<Readonly<{
888
- turnSequence: number;
889
- route: "launch" | "live";
890
- receipt?: "unavailable" | "required";
891
- deliveredAt: string;
892
- }>, {
893
- deliveredAt: string;
894
- route: "live" | "launch";
895
- turnSequence: number;
896
- receipt?: "unavailable" | "required" | undefined;
897
- }>>>>;
898
- }, z.core.$strict>]>, z.ZodObject<{
899
- kind: z.ZodLiteral<"tool">;
900
- sequence: z.ZodNumber;
901
- turnSequence: z.ZodNumber;
902
- at: z.ZodString;
903
- durationMs: z.ZodOptional<z.ZodNumber>;
904
- name: z.ZodString;
905
- call: z.ZodUnion<readonly [z.ZodObject<{
906
- kind: z.ZodLiteral<"run">;
907
- command: z.ZodString;
908
- }, z.core.$strict>, z.ZodObject<{
909
- kind: z.ZodLiteral<"read">;
910
- path: z.ZodString;
911
- offset: z.ZodOptional<z.ZodNumber>;
912
- limit: z.ZodOptional<z.ZodNumber>;
913
- }, z.core.$strict>, z.ZodObject<{
914
- kind: z.ZodLiteral<"search">;
915
- query: z.ZodString;
916
- scope: z.ZodOptional<z.ZodEnum<{
917
- content: "content";
918
- files: "files";
919
- web: "web";
920
- }>>;
921
- path: z.ZodOptional<z.ZodString>;
922
- glob: z.ZodOptional<z.ZodString>;
923
- }, z.core.$strict>, z.ZodObject<{
924
- kind: z.ZodLiteral<"fileChange">;
925
- changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
926
- op: z.ZodEnum<{
927
- add: "add";
928
- update: "update";
929
- delete: "delete";
930
- unspecified: "unspecified";
931
- }>;
932
- path: z.ZodString;
933
- patch: z.ZodOptional<z.ZodString>;
934
- diffstat: z.ZodOptional<z.ZodObject<{
935
- added: z.ZodNumber;
936
- removed: z.ZodNumber;
937
- }, z.core.$strict>>;
938
- }, z.core.$strict>>>;
939
- }, z.core.$strict>, z.ZodObject<{
940
- kind: z.ZodLiteral<"other">;
941
- display: z.ZodString;
942
- input: z.ZodOptional<z.ZodObject<{
943
- json: z.ZodString;
944
- truncated: z.ZodBoolean;
945
- }, z.core.$strict>>;
946
- }, z.core.$strict>]>;
947
- state: z.ZodObject<{
948
- status: z.ZodEnum<{
949
- error: "error";
950
- ok: "ok";
951
- }>;
952
- message: z.ZodOptional<z.ZodString>;
953
- output: z.ZodOptional<z.ZodString>;
954
- exitCode: z.ZodOptional<z.ZodNumber>;
955
- }, z.core.$strict>;
956
- toolId: z.ZodOptional<z.ZodString>;
957
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
958
- }, z.core.$strict>]>;
959
- }, z.core.$strict>]>>>;
960
- omitted: z.ZodNumber;
961
- }, z.core.$strict>]>;
962
- strandedReason: z.ZodOptional<z.ZodLiteral<"resume-unsupported">>;
963
- }, z.core.$strict>;
964
- contract: z.ZodUnion<readonly [z.ZodObject<{
965
- kind: z.ZodLiteral<"none">;
966
- }, z.core.$strict>, z.ZodObject<{
967
- kind: z.ZodLiteral<"associated">;
968
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
969
- }, z.core.$strict>, z.ZodObject<{
970
- kind: z.ZodLiteral<"failed">;
971
- diagnostic: z.ZodString;
972
- }, z.core.$strict>]>;
973
- createdDebts: z.ZodUnion<readonly [z.ZodObject<{
974
- kind: z.ZodLiteral<"present">;
975
- rows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
976
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
977
- title: z.ZodString;
978
- state: z.ZodEnum<{
979
- open: "open";
980
- done: "done";
981
- drop: "drop";
982
- }>;
983
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
984
- disposition: z.ZodEnum<{
985
- done: "done";
986
- drop: "drop";
987
- ready: "ready";
988
- blocked: "blocked";
989
- }>;
990
- updatedAt: z.ZodString;
991
- bodyPresent: z.ZodBoolean;
992
- children: z.ZodOptional<z.ZodObject<{
993
- live: z.ZodNumber;
994
- total: z.ZodNumber;
995
- }, z.core.$strict>>;
996
- }, z.core.$strict>>>;
997
- }, z.core.$strict>, z.ZodObject<{
998
- kind: z.ZodLiteral<"failed">;
999
- diagnostic: z.ZodString;
1000
- }, z.core.$strict>]>;
1001
- }, z.core.$strict>>>;
1002
- unobserved: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1003
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1004
- diagnostic: z.ZodString;
1005
- }, z.core.$strict>>>;
1006
- }, z.core.$strict>;
1007
- declare const akumaKillResultSchema: z.ZodObject<{
1008
- results: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1009
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1010
- evidence: z.ZodEnum<{
1011
- killed: "killed";
1012
- hung: "hung";
1013
- unavailable: "unavailable";
1014
- untidy: "untidy";
1015
- "already-killed": "already-killed";
1016
- "already-stopped": "already-stopped";
1017
- }>;
1018
- }, z.core.$strict>>>;
1019
- }, z.core.$strict>;
1020
- declare const akumaTellResultSchema: z.ZodObject<{
1021
- akuma: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1022
- tell: z.ZodObject<{
1023
- admission: z.ZodObject<{
1024
- fact: z.ZodLiteral<"recorded">;
1025
- tellId: z.ZodString;
1026
- }, z.core.$strict>;
1027
- row: z.ZodObject<{
1028
- kind: z.ZodLiteral<"tell">;
1029
- sequence: z.ZodNumber;
1030
- at: z.ZodString;
1031
- tellId: z.ZodString;
1032
- text: z.ZodString;
1033
- state: z.ZodEnum<{
1034
- pending: "pending";
1035
- told: "told";
1036
- }>;
1037
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
1038
- deliveredAt: z.ZodString;
1039
- route: z.ZodEnum<{
1040
- live: "live";
1041
- launch: "launch";
1042
- }>;
1043
- turnSequence: z.ZodNumber;
1044
- receipt: z.ZodOptional<z.ZodEnum<{
1045
- unavailable: "unavailable";
1046
- required: "required";
1047
- }>>;
1048
- }, z.core.$strict>, z.ZodTransform<Readonly<{
1049
- turnSequence: number;
1050
- route: "launch" | "live";
1051
- receipt?: "unavailable" | "required";
1052
- deliveredAt: string;
1053
- }>, {
1054
- deliveredAt: string;
1055
- route: "live" | "launch";
1056
- turnSequence: number;
1057
- receipt?: "unavailable" | "required" | undefined;
1058
- }>>>>;
1059
- }, z.core.$strict>;
1060
- wake: z.ZodUnion<readonly [z.ZodObject<{
1061
- kind: z.ZodLiteral<"told">;
1062
- }, z.core.$strict>, z.ZodObject<{
1063
- kind: z.ZodLiteral<"held">;
1064
- }, z.core.$strict>, z.ZodObject<{
1065
- kind: z.ZodLiteral<"pursuing">;
1066
- bodySequence: z.ZodNumber;
1067
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1068
- kind: z.ZodLiteral<"failed">;
1069
- diagnostic: z.ZodString;
1070
- child: z.ZodOptional<z.ZodObject<{
1071
- code: z.ZodNullable<z.ZodNumber>;
1072
- signal: z.ZodNullable<z.ZodString>;
1073
- log: z.ZodObject<{
1074
- path: z.ZodString;
1075
- from: z.ZodNumber;
1076
- to: z.ZodNumber;
1077
- }, z.core.$strict>;
1078
- }, z.core.$strict>>;
1079
- }, z.core.$strict>, z.ZodTransform<{
1080
- kind: "failed";
1081
- diagnostic: string;
1082
- } | {
1083
- child: {
1084
- code: number | null;
1085
- signal: string | null;
1086
- log: {
1087
- path: string;
1088
- from: number;
1089
- to: number;
1090
- };
1091
- };
1092
- kind: "failed";
1093
- diagnostic: string;
1094
- }, {
1095
- kind: "failed";
1096
- diagnostic: string;
1097
- child?: {
1098
- code: number | null;
1099
- signal: string | null;
1100
- log: {
1101
- path: string;
1102
- from: number;
1103
- to: number;
1104
- };
1105
- } | undefined;
1106
- }>>]>;
1107
- interruption: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1108
- kind: z.ZodLiteral<"completed">;
1109
- bodySequence: z.ZodNumber;
1110
- putDown: z.ZodEnum<{
1111
- "was-idle": "was-idle";
1112
- "self-aborted": "self-aborted";
1113
- }>;
1114
- }, z.core.$strict>, z.ZodObject<{
1115
- kind: z.ZodLiteral<"pending">;
1116
- bodySequence: z.ZodNumber;
1117
- }, z.core.$strict>, z.ZodObject<{
1118
- kind: z.ZodLiteral<"unavailable">;
1119
- bodySequence: z.ZodNumber;
1120
- evidence: z.ZodEnum<{
1121
- hung: "hung";
1122
- untidy: "untidy";
1123
- }>;
1124
- }, z.core.$strict>], "kind">>;
1125
- }, z.core.$strict>;
1126
- }, z.core.$strict>;
1127
- declare const askObservationSchema: z.ZodUnion<readonly [z.ZodObject<{
1128
- reason: z.ZodLiteral<"answered">;
1129
- answer: z.ZodUnknown;
1130
- }, z.core.$strict>, z.ZodObject<{
1131
- reason: z.ZodLiteral<"failed">;
1132
- diagnostic: z.ZodString;
1133
- }, z.core.$strict>, z.ZodObject<{
1134
- reason: z.ZodLiteral<"invalid-output">;
1135
- diagnostic: z.ZodString;
1136
- answer: z.ZodString;
1137
- }, z.core.$strict>, z.ZodObject<{
1138
- reason: z.ZodLiteral<"unanswered">;
1139
- }, z.core.$strict>, z.ZodObject<{
1140
- reason: z.ZodLiteral<"deadline">;
1141
- }, z.core.$strict>]>;
1142
- declare const akumaAskResultSchema: z.ZodObject<{
1143
- akuma: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1144
- tell: z.ZodObject<{
1145
- admission: z.ZodObject<{
1146
- fact: z.ZodLiteral<"recorded">;
1147
- tellId: z.ZodString;
1148
- }, z.core.$strict>;
1149
- row: z.ZodObject<{
1150
- kind: z.ZodLiteral<"tell">;
1151
- sequence: z.ZodNumber;
1152
- at: z.ZodString;
1153
- tellId: z.ZodString;
1154
- text: z.ZodString;
1155
- state: z.ZodEnum<{
1156
- pending: "pending";
1157
- told: "told";
1158
- }>;
1159
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
1160
- deliveredAt: z.ZodString;
1161
- route: z.ZodEnum<{
1162
- live: "live";
1163
- launch: "launch";
1164
- }>;
1165
- turnSequence: z.ZodNumber;
1166
- receipt: z.ZodOptional<z.ZodEnum<{
1167
- unavailable: "unavailable";
1168
- required: "required";
1169
- }>>;
1170
- }, z.core.$strict>, z.ZodTransform<Readonly<{
1171
- turnSequence: number;
1172
- route: "launch" | "live";
1173
- receipt?: "unavailable" | "required";
1174
- deliveredAt: string;
1175
- }>, {
1176
- deliveredAt: string;
1177
- route: "live" | "launch";
1178
- turnSequence: number;
1179
- receipt?: "unavailable" | "required" | undefined;
1180
- }>>>>;
1181
- }, z.core.$strict>;
1182
- wake: z.ZodUnion<readonly [z.ZodObject<{
1183
- kind: z.ZodLiteral<"told">;
1184
- }, z.core.$strict>, z.ZodObject<{
1185
- kind: z.ZodLiteral<"held">;
1186
- }, z.core.$strict>, z.ZodObject<{
1187
- kind: z.ZodLiteral<"pursuing">;
1188
- bodySequence: z.ZodNumber;
1189
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1190
- kind: z.ZodLiteral<"failed">;
1191
- diagnostic: z.ZodString;
1192
- child: z.ZodOptional<z.ZodObject<{
1193
- code: z.ZodNullable<z.ZodNumber>;
1194
- signal: z.ZodNullable<z.ZodString>;
1195
- log: z.ZodObject<{
1196
- path: z.ZodString;
1197
- from: z.ZodNumber;
1198
- to: z.ZodNumber;
1199
- }, z.core.$strict>;
1200
- }, z.core.$strict>>;
1201
- }, z.core.$strict>, z.ZodTransform<{
1202
- kind: "failed";
1203
- diagnostic: string;
1204
- } | {
1205
- child: {
1206
- code: number | null;
1207
- signal: string | null;
1208
- log: {
1209
- path: string;
1210
- from: number;
1211
- to: number;
1212
- };
1213
- };
1214
- kind: "failed";
1215
- diagnostic: string;
1216
- }, {
1217
- kind: "failed";
1218
- diagnostic: string;
1219
- child?: {
1220
- code: number | null;
1221
- signal: string | null;
1222
- log: {
1223
- path: string;
1224
- from: number;
1225
- to: number;
1226
- };
1227
- } | undefined;
1228
- }>>]>;
1229
- interruption: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1230
- kind: z.ZodLiteral<"completed">;
1231
- bodySequence: z.ZodNumber;
1232
- putDown: z.ZodEnum<{
1233
- "was-idle": "was-idle";
1234
- "self-aborted": "self-aborted";
1235
- }>;
1236
- }, z.core.$strict>, z.ZodObject<{
1237
- kind: z.ZodLiteral<"pending">;
1238
- bodySequence: z.ZodNumber;
1239
- }, z.core.$strict>, z.ZodObject<{
1240
- kind: z.ZodLiteral<"unavailable">;
1241
- bodySequence: z.ZodNumber;
1242
- evidence: z.ZodEnum<{
1243
- hung: "hung";
1244
- untidy: "untidy";
1245
- }>;
1246
- }, z.core.$strict>], "kind">>;
1247
- }, z.core.$strict>;
1248
- observation: z.ZodUnion<readonly [z.ZodObject<{
1249
- reason: z.ZodLiteral<"answered">;
1250
- answer: z.ZodUnknown;
1251
- }, z.core.$strict>, z.ZodObject<{
1252
- reason: z.ZodLiteral<"failed">;
1253
- diagnostic: z.ZodString;
1254
- }, z.core.$strict>, z.ZodObject<{
1255
- reason: z.ZodLiteral<"invalid-output">;
1256
- diagnostic: z.ZodString;
1257
- answer: z.ZodString;
1258
- }, z.core.$strict>, z.ZodObject<{
1259
- reason: z.ZodLiteral<"unanswered">;
1260
- }, z.core.$strict>, z.ZodObject<{
1261
- reason: z.ZodLiteral<"deadline">;
1262
- }, z.core.$strict>]>;
1263
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1264
- }, z.core.$strict>;
1265
- export type AkumaObservation = z.infer<typeof akumaObservationSchema>;
1
+ import type { CreatedDebtObservation } from "../debt/created-observation.js";
2
+ import type { AkumaStatus } from "./akuma.js";
3
+ import type { TellResult } from "./call-initial-tell.js";
4
+ import type { DispatchAssociation } from "./dispatch-association.js";
5
+ import type { KillEvidence } from "./heart/index.js";
6
+ import type { AkuId } from "./identity.js";
7
+ export type AkumaObservation = Readonly<{
8
+ status: AkumaStatus;
9
+ contract: DispatchAssociation;
10
+ createdDebts: CreatedDebtObservation;
11
+ }>;
1266
12
  export type AkumaObservationStage = (Readonly<{
1267
13
  kind: "observed";
1268
14
  }> & AkumaObservation) | Readonly<{
1269
15
  kind: "unobserved";
1270
16
  diagnostic: string;
1271
17
  }>;
1272
- export type AkumaUnobserved = z.infer<typeof akumaUnobservedSchema>;
1273
- export type AkumaWaitResult = z.infer<typeof akumaWaitResultSchema>;
1274
- export type AkumaKillResult = z.infer<typeof akumaKillResultSchema>;
1275
- export type AkumaTellResult = z.infer<typeof akumaTellResultSchema>;
1276
- export type AkumaAskObservation<T = unknown> = Exclude<z.infer<typeof askObservationSchema>, {
1277
- reason: "answered";
1278
- }> | Readonly<{
18
+ export type AkumaUnobserved = Readonly<{
19
+ id: AkuId;
20
+ diagnostic: string;
21
+ }>;
22
+ export type AkumaWaitResult = Readonly<{
23
+ mode: "any" | "all";
24
+ reason: "completed" | "deadline";
25
+ observations: readonly AkumaObservation[];
26
+ unobserved: readonly AkumaUnobserved[];
27
+ }>;
28
+ export type AkumaKillResult = Readonly<{
29
+ results: readonly Readonly<{
30
+ id: AkuId;
31
+ evidence: KillEvidence;
32
+ }>[];
33
+ }>;
34
+ export type AkumaTellResult = Readonly<{
35
+ akuma: AkuId;
36
+ tell: TellResult;
37
+ }>;
38
+ export type AkumaAskObservation<T = unknown> = Readonly<{
1279
39
  reason: "answered";
1280
40
  answer: T;
41
+ }> | Readonly<{
42
+ reason: "failed";
43
+ diagnostic: string;
44
+ }> | Readonly<{
45
+ reason: "invalid-output";
46
+ diagnostic: string;
47
+ answer: string;
48
+ }> | Readonly<{
49
+ reason: "unanswered";
50
+ }> | Readonly<{
51
+ reason: "deadline";
1281
52
  }>;
1282
- export type AkumaAskResult<T = unknown> = Omit<z.infer<typeof akumaAskResultSchema>, "observation"> & Readonly<{
53
+ export type AkumaAskResult<T = unknown> = Readonly<{
54
+ akuma: AkuId;
55
+ tell: TellResult;
1283
56
  observation: AkumaAskObservation<T>;
57
+ completedAt?: string | null;
1284
58
  }>;
1285
- /** Compose one native status into the canonical observation its crossing transports. */
1286
- export declare function akumaObservationOf(status: AkumaStatus): AkumaObservation;
1287
- export declare const selectionResultSchemas: {
1288
- wait: z.ZodObject<{
1289
- mode: z.ZodEnum<{
1290
- any: "any";
1291
- all: "all";
1292
- }>;
1293
- reason: z.ZodEnum<{
1294
- completed: "completed";
1295
- deadline: "deadline";
1296
- }>;
1297
- observations: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1298
- status: z.ZodObject<{
1299
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1300
- birth: z.ZodObject<{
1301
- origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
1302
- kind: z.ZodLiteral<"direct">;
1303
- }, z.core.$strip>, z.ZodObject<{
1304
- kind: z.ZodLiteral<"request">;
1305
- parent: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1306
- requestId: z.ZodString;
1307
- }, z.core.$strip>, z.ZodObject<{
1308
- kind: z.ZodLiteral<"fork">;
1309
- parent: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1310
- at: z.ZodString;
1311
- }, z.core.$strip>], "kind">;
1312
- caller: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
1313
- kind: z.ZodLiteral<"akuma">;
1314
- world: z.ZodCustom<import("../world.js").WorldRoot, import("../world.js").WorldRoot>;
1315
- akuId: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1316
- }, z.core.$strict>, z.ZodObject<{
1317
- kind: z.ZodLiteral<"external">;
1318
- integration: z.ZodString;
1319
- id: z.ZodString;
1320
- }, z.core.$strict>], "kind">, z.ZodObject<{
1321
- kind: z.ZodLiteral<"unknown">;
1322
- }, z.core.$strict>]>;
1323
- }, z.core.$strict>;
1324
- life: z.ZodEnum<{
1325
- killed: "killed";
1326
- hung: "hung";
1327
- untidy: "untidy";
1328
- running: "running";
1329
- asleep: "asleep";
1330
- stranded: "stranded";
1331
- }>;
1332
- cwd: z.ZodOptional<z.ZodString>;
1333
- provider: z.ZodOptional<z.ZodString>;
1334
- model: z.ZodOptional<z.ZodString>;
1335
- allowed: z.ZodPipe<z.ZodArray<z.ZodEnum<{
1336
- "debt.add": "debt.add";
1337
- "debt.addDocument": "debt.addDocument";
1338
- "debt.done": "debt.done";
1339
- "debt.drop": "debt.drop";
1340
- "debt.update": "debt.update";
1341
- "akuma.call": "akuma.call";
1342
- "akuma.kill": "akuma.kill";
1343
- "akuma.tell": "akuma.tell";
1344
- "contract.deliver": "contract.deliver";
1345
- "contract.review": "contract.review";
1346
- }>>, z.ZodTransform<import("./allowed.js").AllowedActions, ("debt.add" | "debt.addDocument" | "debt.done" | "debt.drop" | "debt.update" | "akuma.call" | "akuma.kill" | "akuma.tell" | "contract.deliver" | "contract.review")[]>>;
1347
- timeline: z.ZodUnion<readonly [z.ZodObject<{
1348
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1349
- sequence: z.ZodNumber;
1350
- at: z.ZodString;
1351
- op: z.ZodEnum<{
1352
- add: "add";
1353
- update: "update";
1354
- delete: "delete";
1355
- unspecified: "unspecified";
1356
- }>;
1357
- path: z.ZodString;
1358
- diffstat: z.ZodOptional<z.ZodObject<{
1359
- added: z.ZodNumber;
1360
- removed: z.ZodNumber;
1361
- }, z.core.$strict>>;
1362
- }, z.core.$strict>>>;
1363
- reportedChangesOmitted: z.ZodNumber;
1364
- kind: z.ZodLiteral<"unborn">;
1365
- entries: z.ZodReadonly<z.ZodTuple<[], null>>;
1366
- omitted: z.ZodLiteral<0>;
1367
- }, z.core.$strict>, z.ZodObject<{
1368
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1369
- sequence: z.ZodNumber;
1370
- at: z.ZodString;
1371
- op: z.ZodEnum<{
1372
- add: "add";
1373
- update: "update";
1374
- delete: "delete";
1375
- unspecified: "unspecified";
1376
- }>;
1377
- path: z.ZodString;
1378
- diffstat: z.ZodOptional<z.ZodObject<{
1379
- added: z.ZodNumber;
1380
- removed: z.ZodNumber;
1381
- }, z.core.$strict>>;
1382
- }, z.core.$strict>>>;
1383
- reportedChangesOmitted: z.ZodNumber;
1384
- kind: z.ZodLiteral<"open">;
1385
- turn: z.ZodObject<{
1386
- kind: z.ZodLiteral<"turn">;
1387
- sequence: z.ZodNumber;
1388
- turnSequence: z.ZodNumber;
1389
- bodySequence: z.ZodNumber;
1390
- at: z.ZodString;
1391
- }, z.core.$strict>;
1392
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1393
- kind: z.ZodLiteral<"gap">;
1394
- count: z.ZodNumber;
1395
- }, z.core.$strict>, z.ZodObject<{
1396
- kind: z.ZodLiteral<"row">;
1397
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1398
- kind: z.ZodLiteral<"report">;
1399
- sequence: z.ZodNumber;
1400
- bodySequence: z.ZodNumber;
1401
- turnSequence: z.ZodNumber;
1402
- text: z.ZodString;
1403
- at: z.ZodString;
1404
- }, z.core.$strict>, z.ZodObject<{
1405
- kind: z.ZodLiteral<"call">;
1406
- sequence: z.ZodNumber;
1407
- turnSequence: z.ZodNumber;
1408
- at: z.ZodString;
1409
- text: z.ZodString;
1410
- }, z.core.$strict>, z.ZodObject<{
1411
- kind: z.ZodLiteral<"note" | "thought" | "said">;
1412
- sequence: z.ZodNumber;
1413
- turnSequence: z.ZodNumber;
1414
- at: z.ZodString;
1415
- text: z.ZodString;
1416
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1417
- }, z.core.$strict>, z.ZodObject<{
1418
- kind: z.ZodLiteral<"note" | "thought" | "said">;
1419
- sequence: z.ZodNumber;
1420
- turnSequence: z.ZodNumber;
1421
- at: z.ZodString;
1422
- text: z.ZodString;
1423
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1424
- }, z.core.$strict>, z.ZodObject<{
1425
- kind: z.ZodLiteral<"note" | "thought" | "said">;
1426
- sequence: z.ZodNumber;
1427
- turnSequence: z.ZodNumber;
1428
- at: z.ZodString;
1429
- text: z.ZodString;
1430
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1431
- }, z.core.$strict>, z.ZodObject<{
1432
- kind: z.ZodLiteral<"tell">;
1433
- sequence: z.ZodNumber;
1434
- at: z.ZodString;
1435
- tellId: z.ZodString;
1436
- text: z.ZodString;
1437
- state: z.ZodEnum<{
1438
- pending: "pending";
1439
- told: "told";
1440
- }>;
1441
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
1442
- deliveredAt: z.ZodString;
1443
- route: z.ZodEnum<{
1444
- live: "live";
1445
- launch: "launch";
1446
- }>;
1447
- turnSequence: z.ZodNumber;
1448
- receipt: z.ZodOptional<z.ZodEnum<{
1449
- unavailable: "unavailable";
1450
- required: "required";
1451
- }>>;
1452
- }, z.core.$strict>, z.ZodTransform<Readonly<{
1453
- turnSequence: number;
1454
- route: "launch" | "live";
1455
- receipt?: "unavailable" | "required";
1456
- deliveredAt: string;
1457
- }>, {
1458
- deliveredAt: string;
1459
- route: "live" | "launch";
1460
- turnSequence: number;
1461
- receipt?: "unavailable" | "required" | undefined;
1462
- }>>>>;
1463
- }, z.core.$strict>]>, z.ZodObject<{
1464
- kind: z.ZodLiteral<"tool">;
1465
- sequence: z.ZodNumber;
1466
- turnSequence: z.ZodNumber;
1467
- at: z.ZodString;
1468
- name: z.ZodString;
1469
- call: z.ZodUnion<readonly [z.ZodObject<{
1470
- kind: z.ZodLiteral<"run">;
1471
- command: z.ZodString;
1472
- }, z.core.$strict>, z.ZodObject<{
1473
- kind: z.ZodLiteral<"read">;
1474
- path: z.ZodString;
1475
- offset: z.ZodOptional<z.ZodNumber>;
1476
- limit: z.ZodOptional<z.ZodNumber>;
1477
- }, z.core.$strict>, z.ZodObject<{
1478
- kind: z.ZodLiteral<"search">;
1479
- query: z.ZodString;
1480
- scope: z.ZodOptional<z.ZodEnum<{
1481
- content: "content";
1482
- files: "files";
1483
- web: "web";
1484
- }>>;
1485
- path: z.ZodOptional<z.ZodString>;
1486
- glob: z.ZodOptional<z.ZodString>;
1487
- }, z.core.$strict>, z.ZodObject<{
1488
- kind: z.ZodLiteral<"fileChange">;
1489
- changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1490
- op: z.ZodEnum<{
1491
- add: "add";
1492
- update: "update";
1493
- delete: "delete";
1494
- unspecified: "unspecified";
1495
- }>;
1496
- path: z.ZodString;
1497
- patch: z.ZodOptional<z.ZodString>;
1498
- diffstat: z.ZodOptional<z.ZodObject<{
1499
- added: z.ZodNumber;
1500
- removed: z.ZodNumber;
1501
- }, z.core.$strict>>;
1502
- }, z.core.$strict>>>;
1503
- }, z.core.$strict>, z.ZodObject<{
1504
- kind: z.ZodLiteral<"other">;
1505
- display: z.ZodString;
1506
- input: z.ZodOptional<z.ZodObject<{
1507
- json: z.ZodString;
1508
- truncated: z.ZodBoolean;
1509
- }, z.core.$strict>>;
1510
- }, z.core.$strict>]>;
1511
- state: z.ZodLiteral<"active">;
1512
- toolId: z.ZodOptional<z.ZodString>;
1513
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1514
- }, z.core.$strict>, z.ZodObject<{
1515
- kind: z.ZodLiteral<"tool">;
1516
- sequence: z.ZodNumber;
1517
- turnSequence: z.ZodNumber;
1518
- at: z.ZodString;
1519
- durationMs: z.ZodOptional<z.ZodNumber>;
1520
- name: z.ZodString;
1521
- call: z.ZodUnion<readonly [z.ZodObject<{
1522
- kind: z.ZodLiteral<"run">;
1523
- command: z.ZodString;
1524
- }, z.core.$strict>, z.ZodObject<{
1525
- kind: z.ZodLiteral<"read">;
1526
- path: z.ZodString;
1527
- offset: z.ZodOptional<z.ZodNumber>;
1528
- limit: z.ZodOptional<z.ZodNumber>;
1529
- }, z.core.$strict>, z.ZodObject<{
1530
- kind: z.ZodLiteral<"search">;
1531
- query: z.ZodString;
1532
- scope: z.ZodOptional<z.ZodEnum<{
1533
- content: "content";
1534
- files: "files";
1535
- web: "web";
1536
- }>>;
1537
- path: z.ZodOptional<z.ZodString>;
1538
- glob: z.ZodOptional<z.ZodString>;
1539
- }, z.core.$strict>, z.ZodObject<{
1540
- kind: z.ZodLiteral<"fileChange">;
1541
- changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1542
- op: z.ZodEnum<{
1543
- add: "add";
1544
- update: "update";
1545
- delete: "delete";
1546
- unspecified: "unspecified";
1547
- }>;
1548
- path: z.ZodString;
1549
- patch: z.ZodOptional<z.ZodString>;
1550
- diffstat: z.ZodOptional<z.ZodObject<{
1551
- added: z.ZodNumber;
1552
- removed: z.ZodNumber;
1553
- }, z.core.$strict>>;
1554
- }, z.core.$strict>>>;
1555
- }, z.core.$strict>, z.ZodObject<{
1556
- kind: z.ZodLiteral<"other">;
1557
- display: z.ZodString;
1558
- input: z.ZodOptional<z.ZodObject<{
1559
- json: z.ZodString;
1560
- truncated: z.ZodBoolean;
1561
- }, z.core.$strict>>;
1562
- }, z.core.$strict>]>;
1563
- state: z.ZodObject<{
1564
- status: z.ZodEnum<{
1565
- error: "error";
1566
- ok: "ok";
1567
- }>;
1568
- message: z.ZodOptional<z.ZodString>;
1569
- output: z.ZodOptional<z.ZodString>;
1570
- exitCode: z.ZodOptional<z.ZodNumber>;
1571
- }, z.core.$strict>;
1572
- toolId: z.ZodOptional<z.ZodString>;
1573
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1574
- }, z.core.$strict>]>;
1575
- }, z.core.$strict>]>>>;
1576
- omitted: z.ZodNumber;
1577
- openingSequence: z.ZodOptional<z.ZodNumber>;
1578
- }, z.core.$strict>, z.ZodObject<{
1579
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1580
- sequence: z.ZodNumber;
1581
- at: z.ZodString;
1582
- op: z.ZodEnum<{
1583
- add: "add";
1584
- update: "update";
1585
- delete: "delete";
1586
- unspecified: "unspecified";
1587
- }>;
1588
- path: z.ZodString;
1589
- diffstat: z.ZodOptional<z.ZodObject<{
1590
- added: z.ZodNumber;
1591
- removed: z.ZodNumber;
1592
- }, z.core.$strict>>;
1593
- }, z.core.$strict>>>;
1594
- reportedChangesOmitted: z.ZodNumber;
1595
- kind: z.ZodLiteral<"idle">;
1596
- outcome: z.ZodOptional<z.ZodObject<{
1597
- kind: z.ZodLiteral<"outcome">;
1598
- sequence: z.ZodNumber;
1599
- turnSequence: z.ZodNumber;
1600
- at: z.ZodString;
1601
- outcome: z.ZodUnion<readonly [z.ZodObject<{
1602
- kind: z.ZodLiteral<"answered">;
1603
- historyId: z.ZodString;
1604
- answer: z.ZodString;
1605
- foldedSaidSequence: z.ZodOptional<z.ZodNumber>;
1606
- }, z.core.$strict>, z.ZodObject<{
1607
- kind: z.ZodLiteral<"failed">;
1608
- historyId: z.ZodString;
1609
- diagnostic: z.ZodString;
1610
- }, z.core.$strict>, z.ZodObject<{
1611
- kind: z.ZodLiteral<"canceled">;
1612
- historyId: z.ZodString;
1613
- }, z.core.$strict>]>;
1614
- }, z.core.$strict>>;
1615
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1616
- kind: z.ZodLiteral<"gap">;
1617
- count: z.ZodNumber;
1618
- }, z.core.$strict>, z.ZodObject<{
1619
- kind: z.ZodLiteral<"row">;
1620
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1621
- kind: z.ZodLiteral<"report">;
1622
- sequence: z.ZodNumber;
1623
- bodySequence: z.ZodNumber;
1624
- turnSequence: z.ZodNumber;
1625
- text: z.ZodString;
1626
- at: z.ZodString;
1627
- }, z.core.$strict>, z.ZodObject<{
1628
- kind: z.ZodLiteral<"call">;
1629
- sequence: z.ZodNumber;
1630
- turnSequence: z.ZodNumber;
1631
- at: z.ZodString;
1632
- text: z.ZodString;
1633
- }, z.core.$strict>, z.ZodObject<{
1634
- kind: z.ZodLiteral<"note" | "thought" | "said">;
1635
- sequence: z.ZodNumber;
1636
- turnSequence: z.ZodNumber;
1637
- at: z.ZodString;
1638
- text: z.ZodString;
1639
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1640
- }, z.core.$strict>, z.ZodObject<{
1641
- kind: z.ZodLiteral<"note" | "thought" | "said">;
1642
- sequence: z.ZodNumber;
1643
- turnSequence: z.ZodNumber;
1644
- at: z.ZodString;
1645
- text: z.ZodString;
1646
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1647
- }, z.core.$strict>, z.ZodObject<{
1648
- kind: z.ZodLiteral<"note" | "thought" | "said">;
1649
- sequence: z.ZodNumber;
1650
- turnSequence: z.ZodNumber;
1651
- at: z.ZodString;
1652
- text: z.ZodString;
1653
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1654
- }, z.core.$strict>, z.ZodObject<{
1655
- kind: z.ZodLiteral<"tell">;
1656
- sequence: z.ZodNumber;
1657
- at: z.ZodString;
1658
- tellId: z.ZodString;
1659
- text: z.ZodString;
1660
- state: z.ZodEnum<{
1661
- pending: "pending";
1662
- told: "told";
1663
- }>;
1664
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
1665
- deliveredAt: z.ZodString;
1666
- route: z.ZodEnum<{
1667
- live: "live";
1668
- launch: "launch";
1669
- }>;
1670
- turnSequence: z.ZodNumber;
1671
- receipt: z.ZodOptional<z.ZodEnum<{
1672
- unavailable: "unavailable";
1673
- required: "required";
1674
- }>>;
1675
- }, z.core.$strict>, z.ZodTransform<Readonly<{
1676
- turnSequence: number;
1677
- route: "launch" | "live";
1678
- receipt?: "unavailable" | "required";
1679
- deliveredAt: string;
1680
- }>, {
1681
- deliveredAt: string;
1682
- route: "live" | "launch";
1683
- turnSequence: number;
1684
- receipt?: "unavailable" | "required" | undefined;
1685
- }>>>>;
1686
- }, z.core.$strict>]>, z.ZodObject<{
1687
- kind: z.ZodLiteral<"tool">;
1688
- sequence: z.ZodNumber;
1689
- turnSequence: z.ZodNumber;
1690
- at: z.ZodString;
1691
- durationMs: z.ZodOptional<z.ZodNumber>;
1692
- name: z.ZodString;
1693
- call: z.ZodUnion<readonly [z.ZodObject<{
1694
- kind: z.ZodLiteral<"run">;
1695
- command: z.ZodString;
1696
- }, z.core.$strict>, z.ZodObject<{
1697
- kind: z.ZodLiteral<"read">;
1698
- path: z.ZodString;
1699
- offset: z.ZodOptional<z.ZodNumber>;
1700
- limit: z.ZodOptional<z.ZodNumber>;
1701
- }, z.core.$strict>, z.ZodObject<{
1702
- kind: z.ZodLiteral<"search">;
1703
- query: z.ZodString;
1704
- scope: z.ZodOptional<z.ZodEnum<{
1705
- content: "content";
1706
- files: "files";
1707
- web: "web";
1708
- }>>;
1709
- path: z.ZodOptional<z.ZodString>;
1710
- glob: z.ZodOptional<z.ZodString>;
1711
- }, z.core.$strict>, z.ZodObject<{
1712
- kind: z.ZodLiteral<"fileChange">;
1713
- changes: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1714
- op: z.ZodEnum<{
1715
- add: "add";
1716
- update: "update";
1717
- delete: "delete";
1718
- unspecified: "unspecified";
1719
- }>;
1720
- path: z.ZodString;
1721
- patch: z.ZodOptional<z.ZodString>;
1722
- diffstat: z.ZodOptional<z.ZodObject<{
1723
- added: z.ZodNumber;
1724
- removed: z.ZodNumber;
1725
- }, z.core.$strict>>;
1726
- }, z.core.$strict>>>;
1727
- }, z.core.$strict>, z.ZodObject<{
1728
- kind: z.ZodLiteral<"other">;
1729
- display: z.ZodString;
1730
- input: z.ZodOptional<z.ZodObject<{
1731
- json: z.ZodString;
1732
- truncated: z.ZodBoolean;
1733
- }, z.core.$strict>>;
1734
- }, z.core.$strict>]>;
1735
- state: z.ZodObject<{
1736
- status: z.ZodEnum<{
1737
- error: "error";
1738
- ok: "ok";
1739
- }>;
1740
- message: z.ZodOptional<z.ZodString>;
1741
- output: z.ZodOptional<z.ZodString>;
1742
- exitCode: z.ZodOptional<z.ZodNumber>;
1743
- }, z.core.$strict>;
1744
- toolId: z.ZodOptional<z.ZodString>;
1745
- truncated: z.ZodOptional<z.ZodLiteral<true>>;
1746
- }, z.core.$strict>]>;
1747
- }, z.core.$strict>]>>>;
1748
- omitted: z.ZodNumber;
1749
- }, z.core.$strict>]>;
1750
- strandedReason: z.ZodOptional<z.ZodLiteral<"resume-unsupported">>;
1751
- }, z.core.$strict>;
1752
- contract: z.ZodUnion<readonly [z.ZodObject<{
1753
- kind: z.ZodLiteral<"none">;
1754
- }, z.core.$strict>, z.ZodObject<{
1755
- kind: z.ZodLiteral<"associated">;
1756
- contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
1757
- }, z.core.$strict>, z.ZodObject<{
1758
- kind: z.ZodLiteral<"failed">;
1759
- diagnostic: z.ZodString;
1760
- }, z.core.$strict>]>;
1761
- createdDebts: z.ZodUnion<readonly [z.ZodObject<{
1762
- kind: z.ZodLiteral<"present">;
1763
- rows: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1764
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>;
1765
- title: z.ZodString;
1766
- state: z.ZodEnum<{
1767
- open: "open";
1768
- done: "done";
1769
- drop: "drop";
1770
- }>;
1771
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1772
- disposition: z.ZodEnum<{
1773
- done: "done";
1774
- drop: "drop";
1775
- ready: "ready";
1776
- blocked: "blocked";
1777
- }>;
1778
- updatedAt: z.ZodString;
1779
- bodyPresent: z.ZodBoolean;
1780
- children: z.ZodOptional<z.ZodObject<{
1781
- live: z.ZodNumber;
1782
- total: z.ZodNumber;
1783
- }, z.core.$strict>>;
1784
- }, z.core.$strict>>>;
1785
- }, z.core.$strict>, z.ZodObject<{
1786
- kind: z.ZodLiteral<"failed">;
1787
- diagnostic: z.ZodString;
1788
- }, z.core.$strict>]>;
1789
- }, z.core.$strict>>>;
1790
- unobserved: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1791
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1792
- diagnostic: z.ZodString;
1793
- }, z.core.$strict>>>;
1794
- }, z.core.$strict>;
1795
- tell: z.ZodObject<{
1796
- akuma: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1797
- tell: z.ZodObject<{
1798
- admission: z.ZodObject<{
1799
- fact: z.ZodLiteral<"recorded">;
1800
- tellId: z.ZodString;
1801
- }, z.core.$strict>;
1802
- row: z.ZodObject<{
1803
- kind: z.ZodLiteral<"tell">;
1804
- sequence: z.ZodNumber;
1805
- at: z.ZodString;
1806
- tellId: z.ZodString;
1807
- text: z.ZodString;
1808
- state: z.ZodEnum<{
1809
- pending: "pending";
1810
- told: "told";
1811
- }>;
1812
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
1813
- deliveredAt: z.ZodString;
1814
- route: z.ZodEnum<{
1815
- live: "live";
1816
- launch: "launch";
1817
- }>;
1818
- turnSequence: z.ZodNumber;
1819
- receipt: z.ZodOptional<z.ZodEnum<{
1820
- unavailable: "unavailable";
1821
- required: "required";
1822
- }>>;
1823
- }, z.core.$strict>, z.ZodTransform<Readonly<{
1824
- turnSequence: number;
1825
- route: "launch" | "live";
1826
- receipt?: "unavailable" | "required";
1827
- deliveredAt: string;
1828
- }>, {
1829
- deliveredAt: string;
1830
- route: "live" | "launch";
1831
- turnSequence: number;
1832
- receipt?: "unavailable" | "required" | undefined;
1833
- }>>>>;
1834
- }, z.core.$strict>;
1835
- wake: z.ZodUnion<readonly [z.ZodObject<{
1836
- kind: z.ZodLiteral<"told">;
1837
- }, z.core.$strict>, z.ZodObject<{
1838
- kind: z.ZodLiteral<"held">;
1839
- }, z.core.$strict>, z.ZodObject<{
1840
- kind: z.ZodLiteral<"pursuing">;
1841
- bodySequence: z.ZodNumber;
1842
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1843
- kind: z.ZodLiteral<"failed">;
1844
- diagnostic: z.ZodString;
1845
- child: z.ZodOptional<z.ZodObject<{
1846
- code: z.ZodNullable<z.ZodNumber>;
1847
- signal: z.ZodNullable<z.ZodString>;
1848
- log: z.ZodObject<{
1849
- path: z.ZodString;
1850
- from: z.ZodNumber;
1851
- to: z.ZodNumber;
1852
- }, z.core.$strict>;
1853
- }, z.core.$strict>>;
1854
- }, z.core.$strict>, z.ZodTransform<{
1855
- kind: "failed";
1856
- diagnostic: string;
1857
- } | {
1858
- child: {
1859
- code: number | null;
1860
- signal: string | null;
1861
- log: {
1862
- path: string;
1863
- from: number;
1864
- to: number;
1865
- };
1866
- };
1867
- kind: "failed";
1868
- diagnostic: string;
1869
- }, {
1870
- kind: "failed";
1871
- diagnostic: string;
1872
- child?: {
1873
- code: number | null;
1874
- signal: string | null;
1875
- log: {
1876
- path: string;
1877
- from: number;
1878
- to: number;
1879
- };
1880
- } | undefined;
1881
- }>>]>;
1882
- interruption: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1883
- kind: z.ZodLiteral<"completed">;
1884
- bodySequence: z.ZodNumber;
1885
- putDown: z.ZodEnum<{
1886
- "was-idle": "was-idle";
1887
- "self-aborted": "self-aborted";
1888
- }>;
1889
- }, z.core.$strict>, z.ZodObject<{
1890
- kind: z.ZodLiteral<"pending">;
1891
- bodySequence: z.ZodNumber;
1892
- }, z.core.$strict>, z.ZodObject<{
1893
- kind: z.ZodLiteral<"unavailable">;
1894
- bodySequence: z.ZodNumber;
1895
- evidence: z.ZodEnum<{
1896
- hung: "hung";
1897
- untidy: "untidy";
1898
- }>;
1899
- }, z.core.$strict>], "kind">>;
1900
- }, z.core.$strict>;
1901
- }, z.core.$strict>;
1902
- ask: z.ZodObject<{
1903
- akuma: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
1904
- tell: z.ZodObject<{
1905
- admission: z.ZodObject<{
1906
- fact: z.ZodLiteral<"recorded">;
1907
- tellId: z.ZodString;
1908
- }, z.core.$strict>;
1909
- row: z.ZodObject<{
1910
- kind: z.ZodLiteral<"tell">;
1911
- sequence: z.ZodNumber;
1912
- at: z.ZodString;
1913
- tellId: z.ZodString;
1914
- text: z.ZodString;
1915
- state: z.ZodEnum<{
1916
- pending: "pending";
1917
- told: "told";
1918
- }>;
1919
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodObject<{
1920
- deliveredAt: z.ZodString;
1921
- route: z.ZodEnum<{
1922
- live: "live";
1923
- launch: "launch";
1924
- }>;
1925
- turnSequence: z.ZodNumber;
1926
- receipt: z.ZodOptional<z.ZodEnum<{
1927
- unavailable: "unavailable";
1928
- required: "required";
1929
- }>>;
1930
- }, z.core.$strict>, z.ZodTransform<Readonly<{
1931
- turnSequence: number;
1932
- route: "launch" | "live";
1933
- receipt?: "unavailable" | "required";
1934
- deliveredAt: string;
1935
- }>, {
1936
- deliveredAt: string;
1937
- route: "live" | "launch";
1938
- turnSequence: number;
1939
- receipt?: "unavailable" | "required" | undefined;
1940
- }>>>>;
1941
- }, z.core.$strict>;
1942
- wake: z.ZodUnion<readonly [z.ZodObject<{
1943
- kind: z.ZodLiteral<"told">;
1944
- }, z.core.$strict>, z.ZodObject<{
1945
- kind: z.ZodLiteral<"held">;
1946
- }, z.core.$strict>, z.ZodObject<{
1947
- kind: z.ZodLiteral<"pursuing">;
1948
- bodySequence: z.ZodNumber;
1949
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1950
- kind: z.ZodLiteral<"failed">;
1951
- diagnostic: z.ZodString;
1952
- child: z.ZodOptional<z.ZodObject<{
1953
- code: z.ZodNullable<z.ZodNumber>;
1954
- signal: z.ZodNullable<z.ZodString>;
1955
- log: z.ZodObject<{
1956
- path: z.ZodString;
1957
- from: z.ZodNumber;
1958
- to: z.ZodNumber;
1959
- }, z.core.$strict>;
1960
- }, z.core.$strict>>;
1961
- }, z.core.$strict>, z.ZodTransform<{
1962
- kind: "failed";
1963
- diagnostic: string;
1964
- } | {
1965
- child: {
1966
- code: number | null;
1967
- signal: string | null;
1968
- log: {
1969
- path: string;
1970
- from: number;
1971
- to: number;
1972
- };
1973
- };
1974
- kind: "failed";
1975
- diagnostic: string;
1976
- }, {
1977
- kind: "failed";
1978
- diagnostic: string;
1979
- child?: {
1980
- code: number | null;
1981
- signal: string | null;
1982
- log: {
1983
- path: string;
1984
- from: number;
1985
- to: number;
1986
- };
1987
- } | undefined;
1988
- }>>]>;
1989
- interruption: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1990
- kind: z.ZodLiteral<"completed">;
1991
- bodySequence: z.ZodNumber;
1992
- putDown: z.ZodEnum<{
1993
- "was-idle": "was-idle";
1994
- "self-aborted": "self-aborted";
1995
- }>;
1996
- }, z.core.$strict>, z.ZodObject<{
1997
- kind: z.ZodLiteral<"pending">;
1998
- bodySequence: z.ZodNumber;
1999
- }, z.core.$strict>, z.ZodObject<{
2000
- kind: z.ZodLiteral<"unavailable">;
2001
- bodySequence: z.ZodNumber;
2002
- evidence: z.ZodEnum<{
2003
- hung: "hung";
2004
- untidy: "untidy";
2005
- }>;
2006
- }, z.core.$strict>], "kind">>;
2007
- }, z.core.$strict>;
2008
- observation: z.ZodUnion<readonly [z.ZodObject<{
2009
- reason: z.ZodLiteral<"answered">;
2010
- answer: z.ZodUnknown;
2011
- }, z.core.$strict>, z.ZodObject<{
2012
- reason: z.ZodLiteral<"failed">;
2013
- diagnostic: z.ZodString;
2014
- }, z.core.$strict>, z.ZodObject<{
2015
- reason: z.ZodLiteral<"invalid-output">;
2016
- diagnostic: z.ZodString;
2017
- answer: z.ZodString;
2018
- }, z.core.$strict>, z.ZodObject<{
2019
- reason: z.ZodLiteral<"unanswered">;
2020
- }, z.core.$strict>, z.ZodObject<{
2021
- reason: z.ZodLiteral<"deadline">;
2022
- }, z.core.$strict>]>;
2023
- completedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2024
- }, z.core.$strict>;
2025
- kill: z.ZodObject<{
2026
- results: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2027
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("./identity.js").AkuId, string>>;
2028
- evidence: z.ZodEnum<{
2029
- killed: "killed";
2030
- hung: "hung";
2031
- unavailable: "unavailable";
2032
- untidy: "untidy";
2033
- "already-killed": "already-killed";
2034
- "already-stopped": "already-stopped";
2035
- }>;
2036
- }, z.core.$strict>>>;
2037
- }, z.core.$strict>;
2038
- killEvidence: z.ZodEnum<{
2039
- killed: "killed";
2040
- hung: "hung";
2041
- unavailable: "unavailable";
2042
- untidy: "untidy";
2043
- "already-killed": "already-killed";
2044
- "already-stopped": "already-stopped";
2045
- }>;
2046
- };
2047
- export {};