@astrosheep/keiyaku 4.6.32 → 4.6.34

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 +18 -7
  2. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +18 -11
  3. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +8 -6
  4. package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +2 -1
  5. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +2 -1
  6. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +18 -11
  7. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +8 -6
  8. package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +2 -1
  9. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +2 -1
  10. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +18 -11
  11. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +8 -6
  12. package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +2 -1
  13. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +2 -1
  14. package/build/plugins/pi/README.md +55 -97
  15. package/build/plugins/pi/keiyaku.ts +1 -142
  16. package/build/skills/keiyaku-akuma/SKILL.md +18 -11
  17. package/build/skills/keiyaku-babysit/SKILL.md +8 -6
  18. package/build/skills/keiyaku-debt/SKILL.md +2 -1
  19. package/build/skills/keiyaku-workflow/SKILL.md +2 -1
  20. package/build/src/akuma/akuma-instance.d.ts +11 -0
  21. package/build/src/akuma/akuma-instance.js +1 -2
  22. package/build/src/akuma/akuma-observe.d.ts +8 -0
  23. package/build/src/akuma/akuma-observe.js +81 -14
  24. package/build/src/akuma/akuma-owner.d.ts +1 -0
  25. package/build/src/akuma/akuma-owner.js +3 -5
  26. package/build/src/akuma/akuma-selection-execution.d.ts +82 -7
  27. package/build/src/akuma/akuma-selection-execution.js +26 -27
  28. package/build/src/akuma/akuma-wait.d.ts +155 -1
  29. package/build/src/akuma/akuma-wait.js +94 -34
  30. package/build/src/akuma/akuma.d.ts +17 -1
  31. package/build/src/akuma/akuma.js +37 -18
  32. package/build/src/akuma/body.js +13 -18
  33. package/build/src/akuma/call-initial-tell.d.ts +0 -1
  34. package/build/src/akuma/call-initial-tell.js +0 -1
  35. package/build/src/akuma/heart/activity-schema.d.ts +16 -0
  36. package/build/src/akuma/heart/activity-schema.js +7 -0
  37. package/build/src/akuma/heart/facts.d.ts +1 -0
  38. package/build/src/akuma/heart/facts.js +14 -0
  39. package/build/src/akuma/heart/index.d.ts +7 -1
  40. package/build/src/akuma/heart/index.js +35 -9
  41. package/build/src/akuma/heart/rows.d.ts +1 -0
  42. package/build/src/akuma/heart/rows.js +4 -0
  43. package/build/src/akuma/heart/timeline.js +4 -4
  44. package/build/src/akuma/lineage-cache.d.ts +7 -2
  45. package/build/src/akuma/lineage-cache.js +48 -24
  46. package/build/src/akuma/projection-read.d.ts +4 -2
  47. package/build/src/akuma/projection-read.js +25 -23
  48. package/build/src/akuma/projection.d.ts +94 -2
  49. package/build/src/akuma/projection.js +47 -47
  50. package/build/src/akuma/provider.d.ts +2 -2
  51. package/build/src/akuma/provider.js +27 -20
  52. package/build/src/akuma/providers/acp/core.js +2 -5
  53. package/build/src/akuma/providers/opencode-sdk/events.d.ts +2 -1
  54. package/build/src/akuma/providers/opencode-sdk/events.js +31 -1
  55. package/build/src/akuma/publication.js +3 -2
  56. package/build/src/akuma/selection-observation.d.ts +645 -0
  57. package/build/src/akuma/selection-observation.js +22 -7
  58. package/build/src/akuma/status-projection.d.ts +14 -1
  59. package/build/src/akuma/status-projection.js +40 -2
  60. package/build/src/akuma/turn-drive.js +21 -15
  61. package/build/src/body/amend.js +5 -17
  62. package/build/src/body/decode.js +11 -1
  63. package/build/src/body/envelope.d.ts +5 -1
  64. package/build/src/body/envelope.js +4 -2
  65. package/build/src/body/render.js +4 -6
  66. package/build/src/bounded-list.d.ts +8 -0
  67. package/build/src/bounded-list.js +10 -0
  68. package/build/src/cli/commands/akuma-grammar.d.ts +5 -8
  69. package/build/src/cli/commands/akuma-grammar.js +52 -77
  70. package/build/src/cli/commands/akuma.d.ts +1 -2
  71. package/build/src/cli/commands/akuma.js +12 -61
  72. package/build/src/cli/commands/contract-grammar.d.ts +1 -0
  73. package/build/src/cli/commands/contract-grammar.js +39 -42
  74. package/build/src/cli/commands/contract-help.d.ts +6 -5
  75. package/build/src/cli/commands/contract-help.js +21 -13
  76. package/build/src/cli/commands/contract.d.ts +3 -3
  77. package/build/src/cli/commands/contract.js +13 -9
  78. package/build/src/cli/commands/debt-grammar.js +2 -4
  79. package/build/src/cli/parse.d.ts +4 -10
  80. package/build/src/cli/parse.js +2 -5
  81. package/build/src/cli/render/akuma-activity.d.ts +12 -34
  82. package/build/src/cli/render/akuma-activity.js +99 -180
  83. package/build/src/cli/render/akuma.d.ts +5 -11
  84. package/build/src/cli/render/akuma.js +22 -30
  85. package/build/src/cli/render/catalog.js +4 -6
  86. package/build/src/cli/render/contract-history.d.ts +1 -3
  87. package/build/src/cli/render/contract-history.js +70 -49
  88. package/build/src/cli/render/contract-observation.d.ts +2 -1
  89. package/build/src/cli/render/contract-observation.js +25 -1
  90. package/build/src/cli/render/contract-wait.d.ts +2 -2
  91. package/build/src/cli/render/contract-wait.js +21 -17
  92. package/build/src/cli/render/contract.js +12 -9
  93. package/build/src/cli/render/debt.js +1 -2
  94. package/build/src/cli/render/execution-progress.js +1 -3
  95. package/build/src/cli/render/kanshi-akuma.d.ts +4 -3
  96. package/build/src/cli/render/kanshi-akuma.js +27 -23
  97. package/build/src/cli/render/kanshi.js +45 -60
  98. package/build/src/cli/render/receipt.d.ts +1 -1
  99. package/build/src/cli/render/receipt.js +33 -28
  100. package/build/src/cli/render/reconcile.js +2 -5
  101. package/build/src/cli/render/refusal.js +3 -6
  102. package/build/src/cli/render/terminal.d.ts +2 -4
  103. package/build/src/cli/render/terminal.js +10 -17
  104. package/build/src/cli/render/verbs.d.ts +1 -0
  105. package/build/src/cli/render/verbs.js +39 -34
  106. package/build/src/cli/runtime.js +12 -32
  107. package/build/src/core/facts/codec.js +7 -2
  108. package/build/src/core/facts/eligibility.d.ts +4 -4
  109. package/build/src/core/facts/eligibility.js +11 -0
  110. package/build/src/core/facts/fold.js +9 -5
  111. package/build/src/core/facts/gate.d.ts +5 -1
  112. package/build/src/core/facts/gate.js +14 -10
  113. package/build/src/core/facts/types.d.ts +5 -1
  114. package/build/src/core/facts/types.js +7 -0
  115. package/build/src/core/subject.d.ts +4 -1
  116. package/build/src/core/subject.js +10 -2
  117. package/build/src/core/verbs/amend.d.ts +15 -4
  118. package/build/src/core/verbs/amend.js +19 -9
  119. package/build/src/debt/board.d.ts +2 -1
  120. package/build/src/debt/board.js +3 -3
  121. package/build/src/debt/catalog.js +2 -1
  122. package/build/src/debt/document.d.ts +1 -0
  123. package/build/src/debt/document.js +3 -0
  124. package/build/src/debt/index.d.ts +2 -2
  125. package/build/src/debt/index.js +9 -14
  126. package/build/src/debt/input.d.ts +2 -1
  127. package/build/src/debt/input.js +6 -4
  128. package/build/src/debt/operations.d.ts +2 -1
  129. package/build/src/dispatch/index.d.ts +0 -17
  130. package/build/src/dispatch/index.js +1 -10
  131. package/build/src/git/identity.js +16 -45
  132. package/build/src/git/nuke.js +13 -23
  133. package/build/src/git/observe.d.ts +7 -3
  134. package/build/src/git/observe.js +29 -26
  135. package/build/src/git/process.js +11 -18
  136. package/build/src/git/read-observation.d.ts +5 -4
  137. package/build/src/git/repository.d.ts +2 -0
  138. package/build/src/git/repository.js +13 -1
  139. package/build/src/git/scratch.js +2 -14
  140. package/build/src/git/terminal-reconcile.js +1 -13
  141. package/build/src/history.d.ts +26 -0
  142. package/build/src/history.js +43 -0
  143. package/build/src/index.d.ts +6 -3
  144. package/build/src/kanshi/counts.d.ts +15 -1
  145. package/build/src/kanshi/counts.js +14 -3
  146. package/build/src/kanshi/index.d.ts +3 -4
  147. package/build/src/kanshi/index.js +2 -3
  148. package/build/src/kanshi/read.d.ts +21 -0
  149. package/build/src/kanshi/read.js +7 -3
  150. package/build/src/kanshi/report.d.ts +94 -0
  151. package/build/src/library/address.d.ts +12 -5
  152. package/build/src/library/address.js +18 -32
  153. package/build/src/library/akuma-creation.d.ts +39 -0
  154. package/build/src/library/akuma-creation.js +3 -9
  155. package/build/src/library/akumas.d.ts +5 -1
  156. package/build/src/library/akumas.js +11 -5
  157. package/build/src/library/continuation.d.ts +10 -0
  158. package/build/src/library/contract-composition.js +10 -10
  159. package/build/src/library/contract-creation.js +12 -13
  160. package/build/src/library/contract-outcomes.d.ts +72 -1
  161. package/build/src/library/contract-outcomes.js +1 -0
  162. package/build/src/library/contract-types.d.ts +233 -25
  163. package/build/src/library/contract-types.js +32 -12
  164. package/build/src/library/contract-wait.d.ts +212 -0
  165. package/build/src/library/contract-wait.js +65 -49
  166. package/build/src/library/delivery.d.ts +25 -0
  167. package/build/src/library/input.d.ts +8 -26
  168. package/build/src/library/input.js +17 -12
  169. package/build/src/library/kei.js +167 -90
  170. package/build/src/library/keiyaku-attribution.d.ts +1 -1
  171. package/build/src/library/keiyaku-attribution.js +3 -1
  172. package/build/src/library/keiyaku-classify.js +8 -4
  173. package/build/src/library/keiyaku-debt.d.ts +8 -7
  174. package/build/src/library/keiyaku-debt.js +1 -2
  175. package/build/src/library/keiyaku-identity.d.ts +4 -3
  176. package/build/src/library/keiyaku-identity.js +35 -7
  177. package/build/src/library/keiyaku-verbs.d.ts +974 -1409
  178. package/build/src/library/keiyaku-verbs.js +154 -161
  179. package/build/src/library/keiyaku-wait.d.ts +753 -0
  180. package/build/src/library/keiyaku-wait.js +230 -0
  181. package/build/src/library/keiyaku.d.ts +3110 -29
  182. package/build/src/library/keiyaku.js +342 -438
  183. package/build/src/library/model-tools.d.ts +754 -0
  184. package/build/src/library/model-tools.js +362 -0
  185. package/build/src/library/outcome.js +5 -6
  186. package/build/src/library/refusal.d.ts +25 -1
  187. package/build/src/library/refusal.js +4 -5
  188. package/build/src/library/selection.d.ts +18 -5
  189. package/build/src/library/selection.js +11 -5
  190. package/build/src/mcp/adapter.d.ts +0 -6
  191. package/build/src/mcp/adapter.js +11 -160
  192. package/build/src/mcp/description.d.ts +2 -0
  193. package/build/src/mcp/description.js +2 -0
  194. package/build/src/mcp/help.d.ts +1 -1
  195. package/build/src/mcp/help.js +10 -7
  196. package/build/src/pi/index.d.ts +5 -0
  197. package/build/src/pi/index.js +99 -0
  198. package/build/src/pi/status.d.ts +12 -0
  199. package/build/src/pi/status.js +140 -0
  200. package/build/src/protocol/amend.d.ts +14 -3
  201. package/build/src/protocol/amend.js +113 -46
  202. package/build/src/protocol/bind.d.ts +1 -1
  203. package/build/src/protocol/bind.js +5 -16
  204. package/build/src/protocol/completion.d.ts +30 -0
  205. package/build/src/protocol/completion.js +8 -5
  206. package/build/src/protocol/deliver.js +7 -20
  207. package/build/src/protocol/delivery-preview.d.ts +5 -0
  208. package/build/src/protocol/execution-observation.d.ts +8 -0
  209. package/build/src/protocol/intent.d.ts +1 -0
  210. package/build/src/protocol/intent.js +4 -1
  211. package/build/src/protocol/operations.d.ts +56 -16
  212. package/build/src/protocol/operations.js +18 -32
  213. package/build/src/protocol/placement.js +7 -1
  214. package/build/src/protocol/progress.js +0 -6
  215. package/build/src/protocol/read/status.d.ts +52 -4
  216. package/build/src/protocol/read/status.js +26 -22
  217. package/build/src/protocol/reintegrate.js +2 -2
  218. package/build/src/protocol/result-leaves.d.ts +56 -8
  219. package/build/src/protocol/result-leaves.js +11 -2
  220. package/build/src/protocol/run.js +1 -4
  221. package/build/src/protocol/verify.d.ts +10 -0
  222. package/build/src/protocol/verify.js +1 -0
  223. package/build/src/runtime/proc/windows-launch.exe +0 -0
  224. package/build/src/settlement/settle.js +19 -68
  225. package/package.json +7 -3
  226. package/plugins/paseo/plugin/index.server.ts +6 -2
  227. package/plugins/paseo/plugin/server/attach.ts +68 -48
  228. package/plugins/paseo/plugin/server/directory.ts +259 -0
  229. package/plugins/paseo/plugin/server/mirror-identity.ts +3 -32
  230. package/plugins/paseo/plugin/server/reopen.ts +52 -38
  231. package/plugins/pi/README.md +55 -97
  232. package/plugins/pi/keiyaku.ts +1 -142
  233. package/skills/keiyaku-akuma/SKILL.md +18 -11
  234. package/skills/keiyaku-babysit/SKILL.md +8 -6
  235. package/skills/keiyaku-debt/SKILL.md +2 -1
  236. package/skills/keiyaku-workflow/SKILL.md +2 -1
  237. package/build/plugins/pi/akuma-tools.ts +0 -283
  238. package/build/src/body/keys.d.ts +0 -4
  239. package/build/src/body/keys.js +0 -11
  240. package/build/src/kanshi/roster.d.ts +0 -2
  241. package/build/src/kanshi/roster.js +0 -2
  242. package/build/src/mcp/output.d.ts +0 -385
  243. package/build/src/mcp/output.js +0 -193
  244. package/plugins/pi/akuma-tools.ts +0 -283
@@ -1,6 +1,15 @@
1
1
  /** @architectureCompositionRoot */
2
2
  import { z } from "zod";
3
3
  export { classifyVerb, type VerbCompletion, type VerbDisposition } from "./keiyaku-classify.js";
4
+ export { akumaCatalogueSchema, akumaCatalogueRowSchema, akumaObservationSchema, observedAkumaWaitItemSchema, } from "../akuma/selection-observation.js";
5
+ export { dispatchAssociationSchema } from "../akuma/dispatch-association.js";
6
+ export { currentWorkSchema } from "../akuma/status-projection.js";
7
+ export { contractCatalogueSchema, contractSummarySchema } from "../protocol/read/status.js";
8
+ export { contractNormalStatusSchema } from "../kanshi/report.js";
9
+ export { akumaNameCatalogSchema, akumaNameCatalogRowSchema } from "../akuma/archetype.js";
10
+ export { debtListSchema, debtSummarySchema } from "../debt/index.js";
11
+ export { contractIdSchema } from "../git/identity.js";
12
+ export { akumaIdSchema } from "../akuma/identity.js";
4
13
  export type VerbEntry = Readonly<{
5
14
  description: string;
6
15
  input: z.ZodType;
@@ -17,12 +26,12 @@ export type VerbRun<E = never> = KeiyakuRunOptions & Readonly<{
17
26
  }>;
18
27
  export declare const verbs: Readonly<{
19
28
  readonly bind: {
20
- readonly description: "Bind a Contract: one tracked delivery with fixed terms. Complete Markdown terms in (or forkOf to copy another's); a kei/... id and its own worktree out. target is where the work lands once accepted; gates is what must pass first. Runs no checks.";
29
+ readonly description: "Bind a Contract: give exactly one of terms (complete Contract Markdown) or forkOf (copy another Contract). Returns a kei/... id and its own worktree. target is where accepted work lands; gates is what must pass first. Runs no checks.";
21
30
  readonly input: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
22
31
  after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
23
32
  gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
24
33
  target: z.ZodExactOptional<z.ZodNullable<z.ZodString>>;
25
- markdown: z.ZodString;
34
+ terms: z.ZodString;
26
35
  debt: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`debt/${string}`, string>>>;
27
36
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
28
37
  target: z.ZodExactOptional<z.ZodNullable<z.ZodString>>;
@@ -289,23 +298,14 @@ export declare const verbs: Readonly<{
289
298
  readonly effect: "write";
290
299
  };
291
300
  readonly amend: {
292
- readonly description: "Rewrite an active Contract's terms, prerequisites (after), or gates. markdown is H2 edits such as ## Replace: Objective, not a new Contract. Returns only what changed.";
293
- readonly input: z.ZodUnion<(z.ZodReadonly<z.ZodObject<{
294
- markdown: z.ZodExactOptional<z.ZodString>;
295
- after: z.ZodNonOptional<z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>>;
296
- gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
297
- contract: z.ZodExactOptional<z.ZodString>;
298
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
299
- markdown: z.ZodNonOptional<z.ZodExactOptional<z.ZodString>>;
301
+ readonly description: "Edit an active Contract's terms, target, prerequisites (after), or gates; naming none reports the Contract unchanged. Supply edits as section operations such as ## Replace: Objective, not a replacement Contract. Returns only what changed.";
302
+ readonly input: z.ZodReadonly<z.ZodObject<{
303
+ edits: z.ZodExactOptional<z.ZodString>;
300
304
  after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
301
305
  gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
306
+ target: z.ZodExactOptional<z.ZodString>;
302
307
  contract: z.ZodExactOptional<z.ZodString>;
303
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
304
- markdown: z.ZodExactOptional<z.ZodString>;
305
- after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
306
- gates: z.ZodNonOptional<z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>>;
307
- contract: z.ZodExactOptional<z.ZodString>;
308
- }, z.core.$strict>>)[]>;
308
+ }, z.core.$strict>>;
309
309
  readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
310
310
  kind: z.ZodLiteral<"accepted">;
311
311
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
@@ -430,22 +430,47 @@ export declare const verbs: Readonly<{
430
430
  }, z.core.$strict>>>>;
431
431
  }, z.core.$strict>>>>>;
432
432
  overlapError: z.ZodExactOptional<z.ZodString>;
433
+ target: z.ZodExactOptional<z.ZodString>;
433
434
  changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
434
435
  gatesChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
435
436
  afterChanged: z.ZodExactOptional<z.ZodLiteral<true>>;
436
437
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
437
438
  kind: z.ZodLiteral<"refused">;
438
439
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
439
- reason: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
440
+ reason: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
440
441
  kind: z.ZodEnum<{
441
442
  "contract-missing": "contract-missing";
442
443
  terminal: "terminal";
443
444
  "unknown-prerequisite": "unknown-prerequisite";
444
445
  "terms-moved": "terms-moved";
445
446
  "cyclic-prerequisite": "cyclic-prerequisite";
447
+ "cyclic-target": "cyclic-target";
448
+ }>;
449
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
450
+ kind: z.ZodEnum<{
451
+ "target-contract-missing": "target-contract-missing";
452
+ "target-contract-terminal": "target-contract-terminal";
453
+ }>;
454
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
455
+ }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
456
+ kind: z.ZodEnum<{
457
+ "target-missing": "target-missing";
458
+ "invalid-target": "invalid-target";
446
459
  }>;
447
460
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
448
461
  kind: z.ZodLiteral<"verification-declaration-invalid">;
462
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
463
+ kind: z.ZodLiteral<"target-workspace-unavailable">;
464
+ targetContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
465
+ reason: z.ZodEnum<{
466
+ unappointed: "unappointed";
467
+ missing: "missing";
468
+ association: "association";
469
+ replaced: "replaced";
470
+ attached: "attached";
471
+ uncommitted: "uncommitted";
472
+ operation: "operation";
473
+ }>;
449
474
  }, z.core.$strict>>]>;
450
475
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
451
476
  kind: z.ZodLiteral<"retry">;
@@ -463,9 +488,9 @@ export declare const verbs: Readonly<{
463
488
  readonly effect: "write";
464
489
  };
465
490
  readonly arc: {
466
- readonly description: "Open the next chapter of an active Contract: a # Title and optional notes telling its Akumas what is being done now. The terms stay as bound.";
491
+ readonly description: "Open the next chapter of an active Contract: give a # Title and optional narrative telling its Akumas what is being done now. Returns the new chapter number; the Contract terms stay unchanged.";
467
492
  readonly input: z.ZodReadonly<z.ZodObject<{
468
- markdown: z.ZodString;
493
+ body: z.ZodString;
469
494
  contract: z.ZodExactOptional<z.ZodString>;
470
495
  }, z.core.$strict>>;
471
496
  readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
@@ -777,6 +802,11 @@ export declare const verbs: Readonly<{
777
802
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
778
803
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
779
804
  state: z.ZodLiteral<"stale">;
805
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
806
+ kind: z.ZodLiteral<"snapshot-changed">;
807
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
808
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
809
+ }, z.core.$strict>>>;
780
810
  previousContentId: z.ZodExactOptional<z.ZodString>;
781
811
  currentContentId: z.ZodExactOptional<z.ZodString>;
782
812
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -886,6 +916,11 @@ export declare const verbs: Readonly<{
886
916
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
887
917
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
888
918
  state: z.ZodLiteral<"stale">;
919
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
920
+ kind: z.ZodLiteral<"snapshot-changed">;
921
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
922
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
923
+ }, z.core.$strict>>>;
889
924
  previousContentId: z.ZodExactOptional<z.ZodString>;
890
925
  currentContentId: z.ZodExactOptional<z.ZodString>;
891
926
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1069,6 +1104,11 @@ export declare const verbs: Readonly<{
1069
1104
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1070
1105
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1071
1106
  state: z.ZodLiteral<"stale">;
1107
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
1108
+ kind: z.ZodLiteral<"snapshot-changed">;
1109
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
1110
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
1111
+ }, z.core.$strict>>>;
1072
1112
  previousContentId: z.ZodExactOptional<z.ZodString>;
1073
1113
  currentContentId: z.ZodExactOptional<z.ZodString>;
1074
1114
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1246,6 +1286,14 @@ export declare const verbs: Readonly<{
1246
1286
  gates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
1247
1287
  requirements: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>>>>>;
1248
1288
  after: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>>;
1289
+ target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
1290
+ kind: z.ZodLiteral<"contract">;
1291
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
1292
+ worktree: z.ZodReadonly<z.ZodObject<{
1293
+ id: z.ZodString;
1294
+ identity: z.ZodString;
1295
+ }, z.core.$strict>>;
1296
+ }, z.core.$strict>>]>>;
1249
1297
  }, z.core.$strict>>;
1250
1298
  v: z.ZodLiteral<1>;
1251
1299
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
@@ -1547,6 +1595,11 @@ export declare const verbs: Readonly<{
1547
1595
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1548
1596
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1549
1597
  state: z.ZodLiteral<"stale">;
1598
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
1599
+ kind: z.ZodLiteral<"snapshot-changed">;
1600
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
1601
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
1602
+ }, z.core.$strict>>>;
1550
1603
  previousContentId: z.ZodExactOptional<z.ZodString>;
1551
1604
  currentContentId: z.ZodExactOptional<z.ZodString>;
1552
1605
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1747,6 +1800,11 @@ export declare const verbs: Readonly<{
1747
1800
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1748
1801
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1749
1802
  state: z.ZodLiteral<"stale">;
1803
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
1804
+ kind: z.ZodLiteral<"snapshot-changed">;
1805
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
1806
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
1807
+ }, z.core.$strict>>>;
1750
1808
  previousContentId: z.ZodExactOptional<z.ZodString>;
1751
1809
  currentContentId: z.ZodExactOptional<z.ZodString>;
1752
1810
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -1992,6 +2050,11 @@ export declare const verbs: Readonly<{
1992
2050
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
1993
2051
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
1994
2052
  state: z.ZodLiteral<"stale">;
2053
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
2054
+ kind: z.ZodLiteral<"snapshot-changed">;
2055
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
2056
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
2057
+ }, z.core.$strict>>>;
1995
2058
  previousContentId: z.ZodExactOptional<z.ZodString>;
1996
2059
  currentContentId: z.ZodExactOptional<z.ZodString>;
1997
2060
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -2057,6 +2120,11 @@ export declare const verbs: Readonly<{
2057
2120
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
2058
2121
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
2059
2122
  state: z.ZodLiteral<"stale">;
2123
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
2124
+ kind: z.ZodLiteral<"snapshot-changed">;
2125
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
2126
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
2127
+ }, z.core.$strict>>>;
2060
2128
  previousContentId: z.ZodExactOptional<z.ZodString>;
2061
2129
  currentContentId: z.ZodExactOptional<z.ZodString>;
2062
2130
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -2108,6 +2176,14 @@ export declare const verbs: Readonly<{
2108
2176
  gates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
2109
2177
  requirements: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>>>>>;
2110
2178
  after: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>>;
2179
+ target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
2180
+ kind: z.ZodLiteral<"contract">;
2181
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
2182
+ worktree: z.ZodReadonly<z.ZodObject<{
2183
+ id: z.ZodString;
2184
+ identity: z.ZodString;
2185
+ }, z.core.$strict>>;
2186
+ }, z.core.$strict>>]>>;
2111
2187
  }, z.core.$strict>>;
2112
2188
  v: z.ZodLiteral<1>;
2113
2189
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
@@ -2413,6 +2489,11 @@ export declare const verbs: Readonly<{
2413
2489
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
2414
2490
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
2415
2491
  state: z.ZodLiteral<"stale">;
2492
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
2493
+ kind: z.ZodLiteral<"snapshot-changed">;
2494
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
2495
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
2496
+ }, z.core.$strict>>>;
2416
2497
  previousContentId: z.ZodExactOptional<z.ZodString>;
2417
2498
  currentContentId: z.ZodExactOptional<z.ZodString>;
2418
2499
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -2528,6 +2609,11 @@ export declare const verbs: Readonly<{
2528
2609
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
2529
2610
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
2530
2611
  state: z.ZodLiteral<"stale">;
2612
+ reason: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
2613
+ kind: z.ZodLiteral<"snapshot-changed">;
2614
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
2615
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
2616
+ }, z.core.$strict>>>;
2531
2617
  previousContentId: z.ZodExactOptional<z.ZodString>;
2532
2618
  currentContentId: z.ZodExactOptional<z.ZodString>;
2533
2619
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
@@ -2681,6 +2767,14 @@ export declare const verbs: Readonly<{
2681
2767
  gates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
2682
2768
  requirements: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>>>>>;
2683
2769
  after: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>>;
2770
+ target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
2771
+ kind: z.ZodLiteral<"contract">;
2772
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
2773
+ worktree: z.ZodReadonly<z.ZodObject<{
2774
+ id: z.ZodString;
2775
+ identity: z.ZodString;
2776
+ }, z.core.$strict>>;
2777
+ }, z.core.$strict>>]>>;
2684
2778
  }, z.core.$strict>>;
2685
2779
  v: z.ZodLiteral<1>;
2686
2780
  contract: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
@@ -2964,9 +3058,9 @@ export declare const verbs: Readonly<{
2964
3058
  readonly effect: "destroy";
2965
3059
  };
2966
3060
  readonly show: {
2967
- readonly description: "Read a Contract in full: terms, current chapter, and working instructions. Or read one Debt in full with its prerequisites. Omit id to read the Contract whose worktree you stand in.";
3061
+ readonly description: "Read a Contract in full: terms, current chapter, and working instructions. Or read one Debt in full with its prerequisites. Requires one explicit selector.";
2968
3062
  readonly input: z.ZodReadonly<z.ZodObject<{
2969
- id: z.ZodExactOptional<z.ZodString>;
3063
+ selector: z.ZodString;
2970
3064
  }, z.core.$strict>>;
2971
3065
  readonly output: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
2972
3066
  kind: z.ZodLiteral<"present">;
@@ -3324,9 +3418,8 @@ export declare const verbs: Readonly<{
3324
3418
  readonly effect: "write";
3325
3419
  };
3326
3420
  readonly spawn: {
3327
- readonly description: "Birth a new Akuma from akumaName (ls aku/), with an optional first order. contract only marks whose work it is; give it a workdir and the terms yourself. A failed result with an akumaId still left an Akuma alive.";
3421
+ readonly description: "Birth a new Akuma from akumaName (ls aku/), with an optional first order. Returns birth and admission, not an answer; observe separately with wait. contract only marks whose work it is; give it a workdir and the terms yourself. A failed result with an akumaId still left an Akuma alive.";
3328
3422
  readonly input: z.ZodReadonly<z.ZodObject<{
3329
- wait: z.ZodExactOptional<z.ZodString>;
3330
3423
  prompt: z.ZodExactOptional<z.ZodString>;
3331
3424
  akumaName: z.ZodString;
3332
3425
  contract: z.ZodExactOptional<z.ZodString>;
@@ -3342,6 +3435,7 @@ export declare const verbs: Readonly<{
3342
3435
  input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3343
3436
  kind: z.ZodLiteral<"answered">;
3344
3437
  answer: z.ZodString;
3438
+ completedAt: z.ZodExactOptional<z.ZodString>;
3345
3439
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3346
3440
  kind: z.ZodLiteral<"unanswered">;
3347
3441
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -3443,6 +3537,7 @@ export declare const verbs: Readonly<{
3443
3537
  input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3444
3538
  kind: z.ZodLiteral<"answered">;
3445
3539
  answer: z.ZodString;
3540
+ completedAt: z.ZodExactOptional<z.ZodString>;
3446
3541
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3447
3542
  kind: z.ZodLiteral<"unanswered">;
3448
3543
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -3464,6 +3559,7 @@ export declare const verbs: Readonly<{
3464
3559
  input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3465
3560
  kind: z.ZodLiteral<"answered">;
3466
3561
  answer: z.ZodString;
3562
+ completedAt: z.ZodExactOptional<z.ZodString>;
3467
3563
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3468
3564
  kind: z.ZodLiteral<"unanswered">;
3469
3565
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
@@ -3477,1233 +3573,158 @@ export declare const verbs: Readonly<{
3477
3573
  akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3478
3574
  kind: z.ZodLiteral<"spawned">;
3479
3575
  }, z.core.$strict>>;
3480
- readonly progress: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3481
- kind: z.ZodLiteral<"admitted">;
3482
- tell: z.ZodReadonly<z.ZodObject<{
3483
- admission: z.ZodReadonly<z.ZodObject<{
3484
- tellId: z.ZodString;
3485
- }, z.core.$strict>>;
3486
- row: z.ZodReadonly<z.ZodObject<{
3487
- at: z.ZodString;
3488
- text: z.ZodString;
3489
- sequence: z.ZodNumber;
3490
- }, z.core.$strict>>;
3491
- wake: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3492
- kind: z.ZodLiteral<"told">;
3493
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3494
- kind: z.ZodLiteral<"held">;
3495
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3496
- kind: z.ZodLiteral<"pursuing">;
3497
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3498
- kind: z.ZodLiteral<"failed">;
3499
- diagnostic: z.ZodString;
3500
- child: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3501
- log: z.ZodReadonly<z.ZodObject<{
3502
- path: z.ZodString;
3503
- }, z.core.$strict>>;
3504
- }, z.core.$strict>>>;
3505
- }, z.core.$strict>>]>;
3506
- interruption: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3507
- kind: z.ZodLiteral<"completed">;
3508
- bodySequence: z.ZodNumber;
3509
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3510
- kind: z.ZodLiteral<"pending">;
3511
- bodySequence: z.ZodNumber;
3576
+ readonly effect: "write";
3577
+ };
3578
+ readonly fork: {
3579
+ readonly description: "Birth a copy of an Akuma as it stood at an answered turn (turn/<n> from history), to try another path. The copy wakes idle; give it orders with tell. Available only for Akumas that support forking.";
3580
+ readonly input: z.ZodReadonly<z.ZodObject<{
3581
+ akuma: z.ZodString;
3582
+ at: z.ZodString;
3583
+ bare: z.ZodExactOptional<z.ZodBoolean>;
3584
+ }, z.core.$strict>>;
3585
+ readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3586
+ dispatchWarning: z.ZodExactOptional<z.ZodString>;
3587
+ parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
3588
+ kind: z.ZodLiteral<"forked">;
3589
+ childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3590
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3591
+ failure: z.ZodReadonly<z.ZodObject<{
3592
+ stage: z.ZodLiteral<"dispatch">;
3593
+ failure: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3594
+ kind: z.ZodLiteral<"conflict">;
3595
+ currentContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
3512
3596
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3513
- kind: z.ZodLiteral<"unavailable">;
3514
- bodySequence: z.ZodNumber;
3515
- evidence: z.ZodEnum<{
3516
- hung: "hung";
3517
- untidy: "untidy";
3518
- }>;
3519
- }, z.core.$strict>>]>>;
3520
- }, z.core.$strict>>;
3521
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3522
- head: z.ZodReadonly<z.ZodObject<{
3523
- failures: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3524
- kind: z.ZodEnum<{
3525
- "authority-corruption": "authority-corruption";
3526
- infrastructure: "infrastructure";
3527
- }>;
3597
+ kind: z.ZodLiteral<"publication-failed">;
3528
3598
  diagnostic: z.ZodString;
3529
- stage: z.ZodEnum<{
3530
- tell: "tell";
3531
- birth: "birth";
3532
- }>;
3533
- attemptedTellId: z.ZodExactOptional<z.ZodString>;
3534
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3535
- stage: z.ZodLiteral<"dispatch">;
3536
- failure: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3537
- kind: z.ZodLiteral<"conflict">;
3538
- currentContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
3539
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3540
- kind: z.ZodLiteral<"publication-failed">;
3541
- diagnostic: z.ZodString;
3542
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3543
- kind: z.ZodEnum<{
3544
- "authority-corruption": "authority-corruption";
3545
- infrastructure: "infrastructure";
3546
- }>;
3547
- diagnostic: z.ZodString;
3548
- }, z.core.$strict>>]>;
3549
3599
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3550
3600
  kind: z.ZodEnum<{
3551
3601
  "authority-corruption": "authority-corruption";
3552
3602
  infrastructure: "infrastructure";
3553
3603
  }>;
3554
3604
  diagnostic: z.ZodString;
3555
- stage: z.ZodLiteral<"alias">;
3556
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3557
- diagnostic: z.ZodString;
3558
- logPath: z.ZodExactOptional<z.ZodString>;
3559
- stage: z.ZodLiteral<"wake">;
3560
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3561
- stage: z.ZodLiteral<"observation">;
3562
- diagnostic: z.ZodString;
3563
- }, z.core.$strict>>]>>>>;
3564
- contractId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>;
3565
- aliasName: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").AkumaAlias, string>>>;
3566
- dispatchWarning: z.ZodExactOptional<z.ZodString>;
3567
- alias: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3568
- kind: z.ZodLiteral<"moved">;
3569
- previousAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3570
- }, z.core.$strict>>>;
3571
- cwd: z.ZodString;
3605
+ }, z.core.$strict>>]>;
3572
3606
  }, z.core.$strict>>;
3607
+ parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
3608
+ kind: z.ZodLiteral<"failed">;
3609
+ childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3573
3610
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3574
- kind: z.ZodLiteral<"live">;
3575
- observation: z.ZodReadonly<z.ZodObject<{
3576
- status: z.ZodReadonly<z.ZodObject<{
3577
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3578
- birth: z.ZodReadonly<z.ZodObject<{
3579
- origin: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3580
- kind: z.ZodLiteral<"direct">;
3581
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3582
- kind: z.ZodLiteral<"fork">;
3583
- parent: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3584
- at: z.ZodString;
3585
- }, z.core.$strict>>]>;
3586
- caller: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3587
- kind: z.ZodLiteral<"akuma">;
3588
- world: z.ZodPipe<z.ZodString, z.ZodCustom<import("../world.js").WorldRoot, import("../world.js").WorldRoot>>;
3589
- akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3590
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3591
- kind: z.ZodLiteral<"external">;
3592
- integration: z.ZodString;
3593
- id: z.ZodString;
3594
- }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
3595
- kind: z.ZodLiteral<"unknown">;
3596
- }, z.core.$strict>>]>;
3597
- }, z.core.$strict>>;
3598
- cwd: z.ZodExactOptional<z.ZodString>;
3599
- model: z.ZodExactOptional<z.ZodString>;
3600
- provider: z.ZodExactOptional<z.ZodString>;
3601
- lastActivityAt: z.ZodExactOptional<z.ZodString>;
3602
- life: z.ZodEnum<{
3603
- hung: "hung";
3604
- untidy: "untidy";
3605
- killed: "killed";
3606
- running: "running";
3607
- asleep: "asleep";
3608
- stranded: "stranded";
3609
- }>;
3610
- strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
3611
- timeline: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3612
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3613
- path: z.ZodString;
3614
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3615
- added: z.ZodNumber;
3616
- removed: z.ZodNumber;
3617
- }, z.core.$strict>>>;
3618
- }, z.core.$strict>>>>;
3619
- reportedChangesOmitted: z.ZodNumber;
3620
- reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
3621
- kind: z.ZodLiteral<"unborn">;
3622
- entries: z.ZodReadonly<z.ZodTuple<[], null>>;
3623
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3624
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3625
- path: z.ZodString;
3626
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3627
- added: z.ZodNumber;
3628
- removed: z.ZodNumber;
3629
- }, z.core.$strict>>>;
3630
- }, z.core.$strict>>>>;
3631
- reportedChangesOmitted: z.ZodNumber;
3632
- reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
3633
- kind: z.ZodLiteral<"open">;
3634
- turn: z.ZodReadonly<z.ZodObject<{
3635
- kind: z.ZodLiteral<"turn">;
3636
- sequence: z.ZodNumber;
3637
- bodySequence: z.ZodNumber;
3638
- at: z.ZodString;
3639
- }, z.core.$strict>>;
3640
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3641
- kind: z.ZodLiteral<"gap">;
3642
- count: z.ZodNumber;
3643
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3644
- kind: z.ZodLiteral<"row">;
3645
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3646
- kind: z.ZodLiteral<"report">;
3647
- sequence: z.ZodNumber;
3648
- bodySequence: z.ZodNumber;
3649
- turnSequence: z.ZodNumber;
3650
- text: z.ZodString;
3651
- at: z.ZodString;
3652
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3653
- kind: z.ZodLiteral<"call">;
3654
- sequence: z.ZodNumber;
3655
- turnSequence: z.ZodNumber;
3656
- at: z.ZodString;
3657
- text: z.ZodString;
3658
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3659
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3660
- sequence: z.ZodNumber;
3661
- turnSequence: z.ZodNumber;
3662
- at: z.ZodString;
3663
- text: z.ZodString;
3664
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3665
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3666
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3667
- sequence: z.ZodNumber;
3668
- turnSequence: z.ZodNumber;
3669
- at: z.ZodString;
3670
- text: z.ZodString;
3671
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3672
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3673
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3674
- sequence: z.ZodNumber;
3675
- turnSequence: z.ZodNumber;
3676
- at: z.ZodString;
3677
- text: z.ZodString;
3678
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3679
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3680
- kind: z.ZodLiteral<"tell">;
3681
- sequence: z.ZodNumber;
3682
- at: z.ZodString;
3683
- tellId: z.ZodString;
3684
- text: z.ZodString;
3685
- state: z.ZodEnum<{
3686
- pending: "pending";
3687
- told: "told";
3688
- }>;
3689
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3690
- deliveredAt: z.ZodString;
3691
- route: z.ZodEnum<{
3692
- launch: "launch";
3693
- live: "live";
3694
- }>;
3695
- turnSequence: z.ZodNumber;
3696
- }, z.core.$strict>>>>;
3697
- }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
3698
- kind: z.ZodLiteral<"tool">;
3699
- sequence: z.ZodNumber;
3700
- turnSequence: z.ZodNumber;
3701
- at: z.ZodString;
3702
- durationMs: z.ZodExactOptional<z.ZodNumber>;
3703
- name: z.ZodString;
3704
- call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3705
- kind: z.ZodLiteral<"run">;
3706
- command: z.ZodString;
3707
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3708
- kind: z.ZodLiteral<"read">;
3709
- path: z.ZodString;
3710
- offset: z.ZodExactOptional<z.ZodNumber>;
3711
- limit: z.ZodExactOptional<z.ZodNumber>;
3712
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3713
- kind: z.ZodLiteral<"search">;
3714
- query: z.ZodString;
3715
- scope: z.ZodExactOptional<z.ZodEnum<{
3716
- content: "content";
3717
- files: "files";
3718
- web: "web";
3719
- }>>;
3720
- path: z.ZodExactOptional<z.ZodString>;
3721
- glob: z.ZodExactOptional<z.ZodString>;
3722
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3723
- kind: z.ZodLiteral<"fileChange">;
3724
- changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3725
- op: z.ZodEnum<{
3726
- add: "add";
3727
- update: "update";
3728
- delete: "delete";
3729
- unspecified: "unspecified";
3730
- }>;
3731
- path: z.ZodString;
3732
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3733
- added: z.ZodNumber;
3734
- removed: z.ZodNumber;
3735
- }, z.core.$strict>>>;
3736
- patch: z.ZodExactOptional<z.ZodString>;
3737
- }, z.core.$strict>>>>;
3738
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3739
- kind: z.ZodLiteral<"other">;
3740
- input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3741
- json: z.ZodString;
3742
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3743
- }, z.core.$strict>>>;
3744
- }, z.core.$strict>>]>;
3745
- toolId: z.ZodString;
3746
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3747
- state: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodReadonly<z.ZodObject<{
3748
- status: z.ZodEnum<{
3749
- error: "error";
3750
- ok: "ok";
3751
- }>;
3752
- message: z.ZodExactOptional<z.ZodString>;
3753
- output: z.ZodExactOptional<z.ZodString>;
3754
- exitCode: z.ZodExactOptional<z.ZodNumber>;
3755
- }, z.core.$strict>>]>;
3756
- }, z.core.$strict>>]>;
3757
- }, z.core.$strict>>]>>>;
3758
- openingSequence: z.ZodExactOptional<z.ZodNumber>;
3759
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3760
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3761
- path: z.ZodString;
3762
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3763
- added: z.ZodNumber;
3764
- removed: z.ZodNumber;
3765
- }, z.core.$strict>>>;
3766
- }, z.core.$strict>>>>;
3767
- reportedChangesOmitted: z.ZodNumber;
3768
- reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
3769
- kind: z.ZodLiteral<"idle">;
3770
- outcome: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3771
- kind: z.ZodLiteral<"outcome">;
3772
- sequence: z.ZodNumber;
3773
- turnSequence: z.ZodNumber;
3774
- at: z.ZodString;
3775
- outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3776
- kind: z.ZodLiteral<"answered">;
3777
- answer: z.ZodString;
3778
- foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
3779
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3780
- kind: z.ZodLiteral<"failed">;
3781
- diagnostic: z.ZodString;
3782
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3783
- kind: z.ZodLiteral<"canceled">;
3784
- }, z.core.$strict>>]>;
3785
- }, z.core.$strict>>>;
3786
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3787
- kind: z.ZodLiteral<"gap">;
3788
- count: z.ZodNumber;
3789
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3790
- kind: z.ZodLiteral<"row">;
3791
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3792
- kind: z.ZodLiteral<"report">;
3793
- sequence: z.ZodNumber;
3794
- bodySequence: z.ZodNumber;
3795
- turnSequence: z.ZodNumber;
3796
- text: z.ZodString;
3797
- at: z.ZodString;
3798
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3799
- kind: z.ZodLiteral<"call">;
3800
- sequence: z.ZodNumber;
3801
- turnSequence: z.ZodNumber;
3802
- at: z.ZodString;
3803
- text: z.ZodString;
3804
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3805
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3806
- sequence: z.ZodNumber;
3807
- turnSequence: z.ZodNumber;
3808
- at: z.ZodString;
3809
- text: z.ZodString;
3810
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3811
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3812
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3813
- sequence: z.ZodNumber;
3814
- turnSequence: z.ZodNumber;
3815
- at: z.ZodString;
3816
- text: z.ZodString;
3817
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3818
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3819
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3820
- sequence: z.ZodNumber;
3821
- turnSequence: z.ZodNumber;
3822
- at: z.ZodString;
3823
- text: z.ZodString;
3824
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3825
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3826
- kind: z.ZodLiteral<"tell">;
3827
- sequence: z.ZodNumber;
3828
- at: z.ZodString;
3829
- tellId: z.ZodString;
3830
- text: z.ZodString;
3831
- state: z.ZodEnum<{
3832
- pending: "pending";
3833
- told: "told";
3834
- }>;
3835
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3836
- deliveredAt: z.ZodString;
3837
- route: z.ZodEnum<{
3838
- launch: "launch";
3839
- live: "live";
3840
- }>;
3841
- turnSequence: z.ZodNumber;
3842
- }, z.core.$strict>>>>;
3843
- }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
3844
- kind: z.ZodLiteral<"tool">;
3845
- sequence: z.ZodNumber;
3846
- turnSequence: z.ZodNumber;
3847
- at: z.ZodString;
3848
- durationMs: z.ZodExactOptional<z.ZodNumber>;
3849
- name: z.ZodString;
3850
- call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3851
- kind: z.ZodLiteral<"run">;
3852
- command: z.ZodString;
3853
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3854
- kind: z.ZodLiteral<"read">;
3855
- path: z.ZodString;
3856
- offset: z.ZodExactOptional<z.ZodNumber>;
3857
- limit: z.ZodExactOptional<z.ZodNumber>;
3858
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3859
- kind: z.ZodLiteral<"search">;
3860
- query: z.ZodString;
3861
- scope: z.ZodExactOptional<z.ZodEnum<{
3862
- content: "content";
3863
- files: "files";
3864
- web: "web";
3865
- }>>;
3866
- path: z.ZodExactOptional<z.ZodString>;
3867
- glob: z.ZodExactOptional<z.ZodString>;
3868
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3869
- kind: z.ZodLiteral<"fileChange">;
3870
- changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3871
- op: z.ZodEnum<{
3872
- add: "add";
3873
- update: "update";
3874
- delete: "delete";
3875
- unspecified: "unspecified";
3876
- }>;
3877
- path: z.ZodString;
3878
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3879
- added: z.ZodNumber;
3880
- removed: z.ZodNumber;
3881
- }, z.core.$strict>>>;
3882
- patch: z.ZodExactOptional<z.ZodString>;
3883
- }, z.core.$strict>>>>;
3884
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3885
- kind: z.ZodLiteral<"other">;
3886
- input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3887
- json: z.ZodString;
3888
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3889
- }, z.core.$strict>>>;
3890
- }, z.core.$strict>>]>;
3891
- state: z.ZodReadonly<z.ZodObject<{
3892
- status: z.ZodEnum<{
3893
- error: "error";
3894
- ok: "ok";
3895
- }>;
3896
- message: z.ZodExactOptional<z.ZodString>;
3897
- output: z.ZodExactOptional<z.ZodString>;
3898
- exitCode: z.ZodExactOptional<z.ZodNumber>;
3899
- }, z.core.$strict>>;
3900
- toolId: z.ZodString;
3901
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3902
- }, z.core.$strict>>]>;
3903
- }, z.core.$strict>>]>>>;
3904
- }, z.core.$strict>>]>;
3905
- }, z.core.$strict>>;
3906
- ordinarySelected: z.ZodNumber;
3907
- rows: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3908
- kind: z.ZodLiteral<"turn">;
3909
- sequence: z.ZodNumber;
3910
- bodySequence: z.ZodNumber;
3911
- at: z.ZodString;
3912
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3913
- kind: z.ZodLiteral<"call">;
3914
- sequence: z.ZodNumber;
3915
- turnSequence: z.ZodNumber;
3916
- at: z.ZodString;
3917
- text: z.ZodString;
3918
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3919
- kind: z.ZodLiteral<"report">;
3920
- sequence: z.ZodNumber;
3921
- bodySequence: z.ZodNumber;
3922
- turnSequence: z.ZodNumber;
3923
- text: z.ZodString;
3924
- at: z.ZodString;
3925
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3926
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3927
- sequence: z.ZodNumber;
3928
- turnSequence: z.ZodNumber;
3929
- at: z.ZodString;
3930
- text: z.ZodString;
3931
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3932
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3933
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3934
- sequence: z.ZodNumber;
3935
- turnSequence: z.ZodNumber;
3936
- at: z.ZodString;
3937
- text: z.ZodString;
3938
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3939
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3940
- kind: z.ZodLiteral<"thought" | "note" | "said">;
3941
- sequence: z.ZodNumber;
3942
- turnSequence: z.ZodNumber;
3943
- at: z.ZodString;
3944
- text: z.ZodString;
3945
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
3946
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3947
- kind: z.ZodLiteral<"tell">;
3948
- sequence: z.ZodNumber;
3949
- at: z.ZodString;
3950
- tellId: z.ZodString;
3951
- text: z.ZodString;
3952
- state: z.ZodEnum<{
3953
- pending: "pending";
3954
- told: "told";
3955
- }>;
3956
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3957
- deliveredAt: z.ZodString;
3958
- route: z.ZodEnum<{
3959
- launch: "launch";
3960
- live: "live";
3961
- }>;
3962
- turnSequence: z.ZodNumber;
3963
- }, z.core.$strict>>>>;
3964
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3965
- kind: z.ZodLiteral<"tool">;
3966
- sequence: z.ZodNumber;
3967
- turnSequence: z.ZodNumber;
3968
- at: z.ZodString;
3969
- durationMs: z.ZodExactOptional<z.ZodNumber>;
3970
- name: z.ZodString;
3971
- call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3972
- kind: z.ZodLiteral<"run">;
3973
- command: z.ZodString;
3974
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3975
- kind: z.ZodLiteral<"read">;
3976
- path: z.ZodString;
3977
- offset: z.ZodExactOptional<z.ZodNumber>;
3978
- limit: z.ZodExactOptional<z.ZodNumber>;
3979
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3980
- kind: z.ZodLiteral<"search">;
3981
- query: z.ZodString;
3982
- scope: z.ZodExactOptional<z.ZodEnum<{
3983
- content: "content";
3984
- files: "files";
3985
- web: "web";
3986
- }>>;
3987
- path: z.ZodExactOptional<z.ZodString>;
3988
- glob: z.ZodExactOptional<z.ZodString>;
3989
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3990
- kind: z.ZodLiteral<"fileChange">;
3991
- changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
3992
- op: z.ZodEnum<{
3993
- add: "add";
3994
- update: "update";
3995
- delete: "delete";
3996
- unspecified: "unspecified";
3997
- }>;
3998
- path: z.ZodString;
3999
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4000
- added: z.ZodNumber;
4001
- removed: z.ZodNumber;
4002
- }, z.core.$strict>>>;
4003
- patch: z.ZodExactOptional<z.ZodString>;
4004
- }, z.core.$strict>>>>;
4005
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4006
- kind: z.ZodLiteral<"other">;
4007
- input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4008
- json: z.ZodString;
4009
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4010
- }, z.core.$strict>>>;
4011
- }, z.core.$strict>>]>;
4012
- toolId: z.ZodString;
4013
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4014
- state: z.ZodUnion<readonly [z.ZodEnum<{
4015
- active: "active";
4016
- unsettled: "unsettled";
4017
- }>, z.ZodReadonly<z.ZodObject<{
4018
- status: z.ZodEnum<{
4019
- error: "error";
4020
- ok: "ok";
4021
- }>;
4022
- message: z.ZodExactOptional<z.ZodString>;
4023
- output: z.ZodExactOptional<z.ZodString>;
4024
- exitCode: z.ZodExactOptional<z.ZodNumber>;
4025
- }, z.core.$strict>>]>;
4026
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4027
- kind: z.ZodLiteral<"outcome">;
4028
- sequence: z.ZodNumber;
4029
- turnSequence: z.ZodNumber;
4030
- at: z.ZodString;
4031
- outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4032
- kind: z.ZodLiteral<"answered">;
4033
- answer: z.ZodString;
4034
- foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
4035
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4036
- kind: z.ZodLiteral<"failed">;
4037
- diagnostic: z.ZodString;
4038
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4039
- kind: z.ZodLiteral<"canceled">;
4040
- }, z.core.$strict>>]>;
4041
- }, z.core.$strict>>]>>>;
4042
- }, z.core.$strict>>;
4043
- }, z.core.$strict>>]>;
4044
- readonly effect: "write";
4045
- };
4046
- readonly fork: {
4047
- readonly description: "Birth a copy of an Akuma as it stood at an answered turn (turn/<n> from history), to try another path. The copy wakes idle; give it orders with tell. Needs provider support.";
4048
- readonly input: z.ZodReadonly<z.ZodObject<{
4049
- akuma: z.ZodString;
4050
- at: z.ZodString;
4051
- bare: z.ZodExactOptional<z.ZodBoolean>;
4052
- }, z.core.$strict>>;
4053
- readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4054
- dispatchWarning: z.ZodExactOptional<z.ZodString>;
4055
- parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
4056
- kind: z.ZodLiteral<"forked">;
4057
- childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4058
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4059
- failure: z.ZodReadonly<z.ZodObject<{
4060
- stage: z.ZodLiteral<"dispatch">;
4061
- failure: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4062
- kind: z.ZodLiteral<"conflict">;
4063
- currentContractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
4064
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4065
- kind: z.ZodLiteral<"publication-failed">;
4066
- diagnostic: z.ZodString;
4067
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4068
- kind: z.ZodEnum<{
4069
- "authority-corruption": "authority-corruption";
4070
- infrastructure: "infrastructure";
4071
- }>;
4072
- diagnostic: z.ZodString;
4073
- }, z.core.$strict>>]>;
4074
- }, z.core.$strict>>;
4075
- parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
4076
- kind: z.ZodLiteral<"failed">;
4077
- childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4078
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4079
- kind: z.ZodLiteral<"provider-cannot-fork">;
4080
- parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
4081
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4082
- kind: z.ZodLiteral<"unknown-history">;
4083
- parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
4084
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4085
- kind: z.ZodLiteral<"fork-failed">;
4086
- diagnostic: z.ZodString;
4087
- parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
4088
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4089
- kind: z.ZodLiteral<"provider-forked-local-birth-failed">;
4090
- session: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4091
- kind: z.ZodLiteral<"file">;
4092
- sessionFile: z.ZodString;
4093
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4094
- kind: z.ZodLiteral<"session">;
4095
- sessionId: z.ZodString;
4096
- }, z.core.$strict>>]>;
4097
- diagnostic: z.ZodString;
4098
- parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
4099
- }, z.core.$strict>>]>;
4100
- readonly normal: z.ZodReadonly<z.ZodObject<{
4101
- dispatchWarning: z.ZodExactOptional<z.ZodString>;
4102
- parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
4103
- kind: z.ZodLiteral<"forked">;
4104
- childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4105
- }, z.core.$strict>>;
4106
- readonly effect: "write";
4107
- };
4108
- readonly tell: {
4109
- readonly description: "Give an Akuma new orders: steers its current work or wakes it. Returns once accepted; wait (e.g. 10m) also returns that turn's answer. A timeout ends the waiting, not the work.";
4110
- readonly input: z.ZodReadonly<z.ZodObject<{
4111
- wait: z.ZodExactOptional<z.ZodString>;
4112
- akuma: z.ZodString;
4113
- prompt: z.ZodString;
4114
- interrupt: z.ZodExactOptional<z.ZodBoolean>;
4115
- }, z.core.$strict>>;
4116
- readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4117
- wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4118
- kind: z.ZodLiteral<"pending">;
4119
- }, z.core.$strict>>>;
4120
- input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4121
- kind: z.ZodLiteral<"answered">;
4122
- answer: z.ZodString;
4123
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4124
- kind: z.ZodLiteral<"unanswered">;
4125
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4126
- kind: z.ZodLiteral<"deadline">;
4127
- }, z.core.$strict>>]>>;
4128
- akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4129
- tellId: z.ZodString;
4130
- interrupt: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4131
- kind: z.ZodLiteral<"pending">;
4132
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4133
- kind: z.ZodLiteral<"unavailable">;
4134
- evidence: z.ZodEnum<{
4135
- hung: "hung";
4136
- untidy: "untidy";
4137
- }>;
4138
- }, z.core.$strict>>]>>;
4139
- kind: z.ZodLiteral<"admitted">;
4140
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4141
- failures: z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4142
- diagnostic: z.ZodString;
4143
- logPath: z.ZodExactOptional<z.ZodString>;
4144
- stage: z.ZodLiteral<"wake">;
4145
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4146
- stage: z.ZodLiteral<"observation">;
4147
- diagnostic: z.ZodString;
4148
- }, z.core.$strict>>]>], z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4149
- diagnostic: z.ZodString;
4150
- logPath: z.ZodExactOptional<z.ZodString>;
4151
- stage: z.ZodLiteral<"wake">;
4152
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4153
- stage: z.ZodLiteral<"observation">;
4154
- diagnostic: z.ZodString;
4155
- }, z.core.$strict>>]>>>;
4156
- wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4157
- kind: z.ZodLiteral<"pending">;
4158
- }, z.core.$strict>>>;
4159
- input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4160
- kind: z.ZodLiteral<"answered">;
4161
- answer: z.ZodString;
4162
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4163
- kind: z.ZodLiteral<"unanswered">;
4164
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4165
- kind: z.ZodLiteral<"deadline">;
4166
- }, z.core.$strict>>]>>;
4167
- akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4168
- tellId: z.ZodString;
4169
- interrupt: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4170
- kind: z.ZodLiteral<"pending">;
4171
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4172
- kind: z.ZodLiteral<"unavailable">;
4173
- evidence: z.ZodEnum<{
4174
- hung: "hung";
4175
- untidy: "untidy";
4176
- }>;
4177
- }, z.core.$strict>>]>>;
4178
- kind: z.ZodLiteral<"failed">;
4179
- }, z.core.$strict>>]>;
4180
- readonly progress: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4181
- kind: z.ZodLiteral<"admitted">;
4182
- tell: z.ZodReadonly<z.ZodObject<{
4183
- admission: z.ZodReadonly<z.ZodObject<{
4184
- tellId: z.ZodString;
4185
- }, z.core.$strict>>;
4186
- row: z.ZodReadonly<z.ZodObject<{
4187
- at: z.ZodString;
4188
- text: z.ZodString;
4189
- sequence: z.ZodNumber;
4190
- }, z.core.$strict>>;
4191
- wake: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4192
- kind: z.ZodLiteral<"told">;
4193
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4194
- kind: z.ZodLiteral<"held">;
4195
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4196
- kind: z.ZodLiteral<"pursuing">;
4197
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4198
- kind: z.ZodLiteral<"failed">;
4199
- diagnostic: z.ZodString;
4200
- child: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4201
- log: z.ZodReadonly<z.ZodObject<{
4202
- path: z.ZodString;
4203
- }, z.core.$strict>>;
4204
- }, z.core.$strict>>>;
4205
- }, z.core.$strict>>]>;
4206
- interruption: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4207
- kind: z.ZodLiteral<"completed">;
4208
- bodySequence: z.ZodNumber;
4209
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4210
- kind: z.ZodLiteral<"pending">;
4211
- bodySequence: z.ZodNumber;
4212
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4213
- kind: z.ZodLiteral<"unavailable">;
4214
- bodySequence: z.ZodNumber;
4215
- evidence: z.ZodEnum<{
4216
- hung: "hung";
4217
- untidy: "untidy";
4218
- }>;
4219
- }, z.core.$strict>>]>>;
4220
- }, z.core.$strict>>;
4221
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4222
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4223
- kind: z.ZodLiteral<"live">;
4224
- observation: z.ZodReadonly<z.ZodObject<{
4225
- status: z.ZodReadonly<z.ZodObject<{
4226
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4227
- birth: z.ZodReadonly<z.ZodObject<{
4228
- origin: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4229
- kind: z.ZodLiteral<"direct">;
4230
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4231
- kind: z.ZodLiteral<"fork">;
4232
- parent: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4233
- at: z.ZodString;
4234
- }, z.core.$strict>>]>;
4235
- caller: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4236
- kind: z.ZodLiteral<"akuma">;
4237
- world: z.ZodPipe<z.ZodString, z.ZodCustom<import("../world.js").WorldRoot, import("../world.js").WorldRoot>>;
4238
- akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4239
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4240
- kind: z.ZodLiteral<"external">;
4241
- integration: z.ZodString;
4242
- id: z.ZodString;
4243
- }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
4244
- kind: z.ZodLiteral<"unknown">;
4245
- }, z.core.$strict>>]>;
4246
- }, z.core.$strict>>;
4247
- cwd: z.ZodExactOptional<z.ZodString>;
4248
- model: z.ZodExactOptional<z.ZodString>;
4249
- provider: z.ZodExactOptional<z.ZodString>;
4250
- lastActivityAt: z.ZodExactOptional<z.ZodString>;
4251
- life: z.ZodEnum<{
4252
- hung: "hung";
4253
- untidy: "untidy";
4254
- killed: "killed";
4255
- running: "running";
4256
- asleep: "asleep";
4257
- stranded: "stranded";
4258
- }>;
4259
- strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
4260
- timeline: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4261
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4262
- path: z.ZodString;
4263
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4264
- added: z.ZodNumber;
4265
- removed: z.ZodNumber;
4266
- }, z.core.$strict>>>;
4267
- }, z.core.$strict>>>>;
4268
- reportedChangesOmitted: z.ZodNumber;
4269
- reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
4270
- kind: z.ZodLiteral<"unborn">;
4271
- entries: z.ZodReadonly<z.ZodTuple<[], null>>;
4272
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4273
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4274
- path: z.ZodString;
4275
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4276
- added: z.ZodNumber;
4277
- removed: z.ZodNumber;
4278
- }, z.core.$strict>>>;
4279
- }, z.core.$strict>>>>;
4280
- reportedChangesOmitted: z.ZodNumber;
4281
- reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
4282
- kind: z.ZodLiteral<"open">;
4283
- turn: z.ZodReadonly<z.ZodObject<{
4284
- kind: z.ZodLiteral<"turn">;
4285
- sequence: z.ZodNumber;
4286
- bodySequence: z.ZodNumber;
4287
- at: z.ZodString;
4288
- }, z.core.$strict>>;
4289
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4290
- kind: z.ZodLiteral<"gap">;
4291
- count: z.ZodNumber;
4292
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4293
- kind: z.ZodLiteral<"row">;
4294
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4295
- kind: z.ZodLiteral<"report">;
4296
- sequence: z.ZodNumber;
4297
- bodySequence: z.ZodNumber;
4298
- turnSequence: z.ZodNumber;
4299
- text: z.ZodString;
4300
- at: z.ZodString;
4301
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4302
- kind: z.ZodLiteral<"call">;
4303
- sequence: z.ZodNumber;
4304
- turnSequence: z.ZodNumber;
4305
- at: z.ZodString;
4306
- text: z.ZodString;
4307
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4308
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4309
- sequence: z.ZodNumber;
4310
- turnSequence: z.ZodNumber;
4311
- at: z.ZodString;
4312
- text: z.ZodString;
4313
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4314
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4315
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4316
- sequence: z.ZodNumber;
4317
- turnSequence: z.ZodNumber;
4318
- at: z.ZodString;
4319
- text: z.ZodString;
4320
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4321
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4322
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4323
- sequence: z.ZodNumber;
4324
- turnSequence: z.ZodNumber;
4325
- at: z.ZodString;
4326
- text: z.ZodString;
4327
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4328
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4329
- kind: z.ZodLiteral<"tell">;
4330
- sequence: z.ZodNumber;
4331
- at: z.ZodString;
4332
- tellId: z.ZodString;
4333
- text: z.ZodString;
4334
- state: z.ZodEnum<{
4335
- pending: "pending";
4336
- told: "told";
4337
- }>;
4338
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4339
- deliveredAt: z.ZodString;
4340
- route: z.ZodEnum<{
4341
- launch: "launch";
4342
- live: "live";
4343
- }>;
4344
- turnSequence: z.ZodNumber;
4345
- }, z.core.$strict>>>>;
4346
- }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
4347
- kind: z.ZodLiteral<"tool">;
4348
- sequence: z.ZodNumber;
4349
- turnSequence: z.ZodNumber;
4350
- at: z.ZodString;
4351
- durationMs: z.ZodExactOptional<z.ZodNumber>;
4352
- name: z.ZodString;
4353
- call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4354
- kind: z.ZodLiteral<"run">;
4355
- command: z.ZodString;
4356
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4357
- kind: z.ZodLiteral<"read">;
4358
- path: z.ZodString;
4359
- offset: z.ZodExactOptional<z.ZodNumber>;
4360
- limit: z.ZodExactOptional<z.ZodNumber>;
4361
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4362
- kind: z.ZodLiteral<"search">;
4363
- query: z.ZodString;
4364
- scope: z.ZodExactOptional<z.ZodEnum<{
4365
- content: "content";
4366
- files: "files";
4367
- web: "web";
4368
- }>>;
4369
- path: z.ZodExactOptional<z.ZodString>;
4370
- glob: z.ZodExactOptional<z.ZodString>;
4371
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4372
- kind: z.ZodLiteral<"fileChange">;
4373
- changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4374
- op: z.ZodEnum<{
4375
- add: "add";
4376
- update: "update";
4377
- delete: "delete";
4378
- unspecified: "unspecified";
4379
- }>;
4380
- path: z.ZodString;
4381
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4382
- added: z.ZodNumber;
4383
- removed: z.ZodNumber;
4384
- }, z.core.$strict>>>;
4385
- patch: z.ZodExactOptional<z.ZodString>;
4386
- }, z.core.$strict>>>>;
4387
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4388
- kind: z.ZodLiteral<"other">;
4389
- input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4390
- json: z.ZodString;
4391
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4392
- }, z.core.$strict>>>;
4393
- }, z.core.$strict>>]>;
4394
- toolId: z.ZodString;
4395
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4396
- state: z.ZodUnion<readonly [z.ZodLiteral<"active">, z.ZodReadonly<z.ZodObject<{
4397
- status: z.ZodEnum<{
4398
- error: "error";
4399
- ok: "ok";
4400
- }>;
4401
- message: z.ZodExactOptional<z.ZodString>;
4402
- output: z.ZodExactOptional<z.ZodString>;
4403
- exitCode: z.ZodExactOptional<z.ZodNumber>;
4404
- }, z.core.$strict>>]>;
4405
- }, z.core.$strict>>]>;
4406
- }, z.core.$strict>>]>>>;
4407
- openingSequence: z.ZodExactOptional<z.ZodNumber>;
4408
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4409
- reportedChanges: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4410
- path: z.ZodString;
4411
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4412
- added: z.ZodNumber;
4413
- removed: z.ZodNumber;
4414
- }, z.core.$strict>>>;
4415
- }, z.core.$strict>>>>;
4416
- reportedChangesOmitted: z.ZodNumber;
4417
- reportedChangesOutside: z.ZodExactOptional<z.ZodNumber>;
4418
- kind: z.ZodLiteral<"idle">;
4419
- outcome: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4420
- kind: z.ZodLiteral<"outcome">;
4421
- sequence: z.ZodNumber;
4422
- turnSequence: z.ZodNumber;
4423
- at: z.ZodString;
4424
- outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4425
- kind: z.ZodLiteral<"answered">;
4426
- answer: z.ZodString;
4427
- foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
4428
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4429
- kind: z.ZodLiteral<"failed">;
4430
- diagnostic: z.ZodString;
4431
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4432
- kind: z.ZodLiteral<"canceled">;
4433
- }, z.core.$strict>>]>;
4434
- }, z.core.$strict>>>;
4435
- entries: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4436
- kind: z.ZodLiteral<"gap">;
4437
- count: z.ZodNumber;
4438
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4439
- kind: z.ZodLiteral<"row">;
4440
- row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4441
- kind: z.ZodLiteral<"report">;
4442
- sequence: z.ZodNumber;
4443
- bodySequence: z.ZodNumber;
4444
- turnSequence: z.ZodNumber;
4445
- text: z.ZodString;
4446
- at: z.ZodString;
4447
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4448
- kind: z.ZodLiteral<"call">;
4449
- sequence: z.ZodNumber;
4450
- turnSequence: z.ZodNumber;
4451
- at: z.ZodString;
4452
- text: z.ZodString;
4453
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4454
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4455
- sequence: z.ZodNumber;
4456
- turnSequence: z.ZodNumber;
4457
- at: z.ZodString;
4458
- text: z.ZodString;
4459
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4460
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4461
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4462
- sequence: z.ZodNumber;
4463
- turnSequence: z.ZodNumber;
4464
- at: z.ZodString;
4465
- text: z.ZodString;
4466
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4467
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4468
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4469
- sequence: z.ZodNumber;
4470
- turnSequence: z.ZodNumber;
4471
- at: z.ZodString;
4472
- text: z.ZodString;
4473
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4474
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4475
- kind: z.ZodLiteral<"tell">;
4476
- sequence: z.ZodNumber;
4477
- at: z.ZodString;
4478
- tellId: z.ZodString;
4479
- text: z.ZodString;
4480
- state: z.ZodEnum<{
4481
- pending: "pending";
4482
- told: "told";
4483
- }>;
4484
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4485
- deliveredAt: z.ZodString;
4486
- route: z.ZodEnum<{
4487
- launch: "launch";
4488
- live: "live";
4489
- }>;
4490
- turnSequence: z.ZodNumber;
4491
- }, z.core.$strict>>>>;
4492
- }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
4493
- kind: z.ZodLiteral<"tool">;
4494
- sequence: z.ZodNumber;
4495
- turnSequence: z.ZodNumber;
4496
- at: z.ZodString;
4497
- durationMs: z.ZodExactOptional<z.ZodNumber>;
4498
- name: z.ZodString;
4499
- call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4500
- kind: z.ZodLiteral<"run">;
4501
- command: z.ZodString;
4502
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4503
- kind: z.ZodLiteral<"read">;
4504
- path: z.ZodString;
4505
- offset: z.ZodExactOptional<z.ZodNumber>;
4506
- limit: z.ZodExactOptional<z.ZodNumber>;
4507
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4508
- kind: z.ZodLiteral<"search">;
4509
- query: z.ZodString;
4510
- scope: z.ZodExactOptional<z.ZodEnum<{
4511
- content: "content";
4512
- files: "files";
4513
- web: "web";
4514
- }>>;
4515
- path: z.ZodExactOptional<z.ZodString>;
4516
- glob: z.ZodExactOptional<z.ZodString>;
4517
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4518
- kind: z.ZodLiteral<"fileChange">;
4519
- changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4520
- op: z.ZodEnum<{
4521
- add: "add";
4522
- update: "update";
4523
- delete: "delete";
4524
- unspecified: "unspecified";
4525
- }>;
4526
- path: z.ZodString;
4527
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4528
- added: z.ZodNumber;
4529
- removed: z.ZodNumber;
4530
- }, z.core.$strict>>>;
4531
- patch: z.ZodExactOptional<z.ZodString>;
4532
- }, z.core.$strict>>>>;
4533
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4534
- kind: z.ZodLiteral<"other">;
4535
- input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4536
- json: z.ZodString;
4537
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4538
- }, z.core.$strict>>>;
4539
- }, z.core.$strict>>]>;
4540
- state: z.ZodReadonly<z.ZodObject<{
4541
- status: z.ZodEnum<{
4542
- error: "error";
4543
- ok: "ok";
4544
- }>;
4545
- message: z.ZodExactOptional<z.ZodString>;
4546
- output: z.ZodExactOptional<z.ZodString>;
4547
- exitCode: z.ZodExactOptional<z.ZodNumber>;
4548
- }, z.core.$strict>>;
4549
- toolId: z.ZodString;
4550
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4551
- }, z.core.$strict>>]>;
4552
- }, z.core.$strict>>]>>>;
4553
- }, z.core.$strict>>]>;
4554
- }, z.core.$strict>>;
4555
- ordinarySelected: z.ZodNumber;
4556
- rows: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4557
- kind: z.ZodLiteral<"turn">;
4558
- sequence: z.ZodNumber;
4559
- bodySequence: z.ZodNumber;
4560
- at: z.ZodString;
4561
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4562
- kind: z.ZodLiteral<"call">;
4563
- sequence: z.ZodNumber;
4564
- turnSequence: z.ZodNumber;
4565
- at: z.ZodString;
4566
- text: z.ZodString;
4567
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4568
- kind: z.ZodLiteral<"report">;
4569
- sequence: z.ZodNumber;
4570
- bodySequence: z.ZodNumber;
4571
- turnSequence: z.ZodNumber;
4572
- text: z.ZodString;
4573
- at: z.ZodString;
4574
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4575
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4576
- sequence: z.ZodNumber;
4577
- turnSequence: z.ZodNumber;
4578
- at: z.ZodString;
4579
- text: z.ZodString;
4580
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4581
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4582
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4583
- sequence: z.ZodNumber;
4584
- turnSequence: z.ZodNumber;
4585
- at: z.ZodString;
4586
- text: z.ZodString;
4587
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4588
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4589
- kind: z.ZodLiteral<"thought" | "note" | "said">;
4590
- sequence: z.ZodNumber;
4591
- turnSequence: z.ZodNumber;
4592
- at: z.ZodString;
4593
- text: z.ZodString;
4594
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4595
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4596
- kind: z.ZodLiteral<"tell">;
4597
- sequence: z.ZodNumber;
4598
- at: z.ZodString;
4599
- tellId: z.ZodString;
4600
- text: z.ZodString;
4601
- state: z.ZodEnum<{
4602
- pending: "pending";
4603
- told: "told";
4604
- }>;
4605
- deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4606
- deliveredAt: z.ZodString;
4607
- route: z.ZodEnum<{
4608
- launch: "launch";
4609
- live: "live";
4610
- }>;
4611
- turnSequence: z.ZodNumber;
4612
- }, z.core.$strict>>>>;
4613
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4614
- kind: z.ZodLiteral<"tool">;
4615
- sequence: z.ZodNumber;
4616
- turnSequence: z.ZodNumber;
4617
- at: z.ZodString;
4618
- durationMs: z.ZodExactOptional<z.ZodNumber>;
4619
- name: z.ZodString;
4620
- call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4621
- kind: z.ZodLiteral<"run">;
4622
- command: z.ZodString;
4623
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4624
- kind: z.ZodLiteral<"read">;
4625
- path: z.ZodString;
4626
- offset: z.ZodExactOptional<z.ZodNumber>;
4627
- limit: z.ZodExactOptional<z.ZodNumber>;
4628
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4629
- kind: z.ZodLiteral<"search">;
4630
- query: z.ZodString;
4631
- scope: z.ZodExactOptional<z.ZodEnum<{
4632
- content: "content";
4633
- files: "files";
4634
- web: "web";
4635
- }>>;
4636
- path: z.ZodExactOptional<z.ZodString>;
4637
- glob: z.ZodExactOptional<z.ZodString>;
4638
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4639
- kind: z.ZodLiteral<"fileChange">;
4640
- changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4641
- op: z.ZodEnum<{
4642
- add: "add";
4643
- update: "update";
4644
- delete: "delete";
4645
- unspecified: "unspecified";
4646
- }>;
4647
- path: z.ZodString;
4648
- diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4649
- added: z.ZodNumber;
4650
- removed: z.ZodNumber;
4651
- }, z.core.$strict>>>;
4652
- patch: z.ZodExactOptional<z.ZodString>;
4653
- }, z.core.$strict>>>>;
4654
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4655
- kind: z.ZodLiteral<"other">;
4656
- input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4657
- json: z.ZodString;
4658
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4659
- }, z.core.$strict>>>;
4660
- }, z.core.$strict>>]>;
4661
- toolId: z.ZodString;
4662
- truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4663
- state: z.ZodUnion<readonly [z.ZodEnum<{
4664
- active: "active";
4665
- unsettled: "unsettled";
4666
- }>, z.ZodReadonly<z.ZodObject<{
4667
- status: z.ZodEnum<{
4668
- error: "error";
4669
- ok: "ok";
4670
- }>;
4671
- message: z.ZodExactOptional<z.ZodString>;
4672
- output: z.ZodExactOptional<z.ZodString>;
4673
- exitCode: z.ZodExactOptional<z.ZodNumber>;
4674
- }, z.core.$strict>>]>;
4675
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4676
- kind: z.ZodLiteral<"outcome">;
4677
- sequence: z.ZodNumber;
4678
- turnSequence: z.ZodNumber;
4679
- at: z.ZodString;
4680
- outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4681
- kind: z.ZodLiteral<"answered">;
4682
- answer: z.ZodString;
4683
- foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
4684
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4685
- kind: z.ZodLiteral<"failed">;
4686
- diagnostic: z.ZodString;
4687
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4688
- kind: z.ZodLiteral<"canceled">;
4689
- }, z.core.$strict>>]>;
4690
- }, z.core.$strict>>]>>>;
4691
- }, z.core.$strict>>;
3611
+ kind: z.ZodLiteral<"provider-cannot-fork">;
3612
+ parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
3613
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3614
+ kind: z.ZodLiteral<"unknown-history">;
3615
+ parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
3616
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3617
+ kind: z.ZodLiteral<"fork-failed">;
3618
+ diagnostic: z.ZodString;
3619
+ parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
3620
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3621
+ kind: z.ZodLiteral<"provider-forked-local-birth-failed">;
3622
+ session: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3623
+ kind: z.ZodLiteral<"file">;
3624
+ sessionFile: z.ZodString;
3625
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3626
+ kind: z.ZodLiteral<"session">;
3627
+ sessionId: z.ZodString;
3628
+ }, z.core.$strict>>]>;
3629
+ diagnostic: z.ZodString;
3630
+ parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
3631
+ }, z.core.$strict>>]>;
3632
+ readonly normal: z.ZodReadonly<z.ZodObject<{
3633
+ dispatchWarning: z.ZodExactOptional<z.ZodString>;
3634
+ parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
3635
+ kind: z.ZodLiteral<"forked">;
3636
+ childAkumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3637
+ }, z.core.$strict>>;
3638
+ readonly effect: "write";
3639
+ };
3640
+ readonly tell: {
3641
+ readonly description: "Give an Akuma new orders: steers its current work or wakes it. Returns admission, not an answer. Observe work separately with wait, or use ask for a structured answer.";
3642
+ readonly input: z.ZodReadonly<z.ZodObject<{
3643
+ akuma: z.ZodString;
3644
+ prompt: z.ZodString;
3645
+ interrupt: z.ZodExactOptional<z.ZodBoolean>;
3646
+ }, z.core.$strict>>;
3647
+ readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3648
+ wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3649
+ kind: z.ZodLiteral<"pending">;
3650
+ }, z.core.$strict>>>;
3651
+ input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3652
+ kind: z.ZodLiteral<"answered">;
3653
+ answer: z.ZodString;
3654
+ completedAt: z.ZodExactOptional<z.ZodString>;
3655
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3656
+ kind: z.ZodLiteral<"unanswered">;
3657
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3658
+ kind: z.ZodLiteral<"deadline">;
3659
+ }, z.core.$strict>>]>>;
3660
+ akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3661
+ tellId: z.ZodString;
3662
+ interrupt: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3663
+ kind: z.ZodLiteral<"pending">;
3664
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3665
+ kind: z.ZodLiteral<"unavailable">;
3666
+ evidence: z.ZodEnum<{
3667
+ hung: "hung";
3668
+ untidy: "untidy";
3669
+ }>;
3670
+ }, z.core.$strict>>]>>;
3671
+ kind: z.ZodLiteral<"admitted">;
3672
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3673
+ failures: z.ZodReadonly<z.ZodTuple<[z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3674
+ diagnostic: z.ZodString;
3675
+ logPath: z.ZodExactOptional<z.ZodString>;
3676
+ stage: z.ZodLiteral<"wake">;
3677
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3678
+ stage: z.ZodLiteral<"observation">;
3679
+ diagnostic: z.ZodString;
3680
+ }, z.core.$strict>>]>], z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3681
+ diagnostic: z.ZodString;
3682
+ logPath: z.ZodExactOptional<z.ZodString>;
3683
+ stage: z.ZodLiteral<"wake">;
3684
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3685
+ stage: z.ZodLiteral<"observation">;
3686
+ diagnostic: z.ZodString;
3687
+ }, z.core.$strict>>]>>>;
3688
+ wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
3689
+ kind: z.ZodLiteral<"pending">;
3690
+ }, z.core.$strict>>>;
3691
+ input: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3692
+ kind: z.ZodLiteral<"answered">;
3693
+ answer: z.ZodString;
3694
+ completedAt: z.ZodExactOptional<z.ZodString>;
3695
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3696
+ kind: z.ZodLiteral<"unanswered">;
3697
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3698
+ kind: z.ZodLiteral<"deadline">;
3699
+ }, z.core.$strict>>]>>;
3700
+ akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
3701
+ tellId: z.ZodString;
3702
+ interrupt: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
3703
+ kind: z.ZodLiteral<"pending">;
3704
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
3705
+ kind: z.ZodLiteral<"unavailable">;
3706
+ evidence: z.ZodEnum<{
3707
+ hung: "hung";
3708
+ untidy: "untidy";
3709
+ }>;
3710
+ }, z.core.$strict>>]>>;
3711
+ kind: z.ZodLiteral<"failed">;
4692
3712
  }, z.core.$strict>>]>;
4693
3713
  readonly effect: "write";
4694
3714
  };
4695
3715
  readonly ask: {
4696
- readonly description: "Demand a structured answer from an Akuma: a prompt and a JSON Schema in, parsed JSON out. The answer is not checked against the schema; non-JSON is a failure. Not every provider honors schemas.";
3716
+ readonly description: "Demand a structured answer from an Akuma: a prompt and a JSON Schema in, parsed JSON out. The answer is not checked against the schema; non-JSON is a failure. Some Akumas cannot constrain answers to a schema.";
4697
3717
  readonly input: z.ZodReadonly<z.ZodObject<{
4698
3718
  akuma: z.ZodString;
4699
3719
  prompt: z.ZodString;
4700
- timeoutMs: z.ZodExactOptional<z.ZodNumber>;
3720
+ timeout: z.ZodExactOptional<z.ZodString>;
4701
3721
  schema: z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4702
3722
  interrupt: z.ZodExactOptional<z.ZodBoolean>;
4703
3723
  }, z.core.$strict>>;
4704
3724
  readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4705
3725
  kind: z.ZodLiteral<"answered">;
4706
3726
  answer: z.ZodJSONSchema;
3727
+ completedAt: z.ZodExactOptional<z.ZodString>;
4707
3728
  wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4708
3729
  kind: z.ZodLiteral<"failed">;
4709
3730
  diagnostic: z.ZodString;
@@ -4763,6 +3784,7 @@ export declare const verbs: Readonly<{
4763
3784
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4764
3785
  kind: z.ZodLiteral<"failed">;
4765
3786
  diagnostic: z.ZodString;
3787
+ completedAt: z.ZodExactOptional<z.ZodString>;
4766
3788
  wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4767
3789
  kind: z.ZodLiteral<"failed">;
4768
3790
  diagnostic: z.ZodString;
@@ -4783,6 +3805,7 @@ export declare const verbs: Readonly<{
4783
3805
  kind: z.ZodLiteral<"invalid-output">;
4784
3806
  diagnostic: z.ZodString;
4785
3807
  answer: z.ZodString;
3808
+ completedAt: z.ZodExactOptional<z.ZodString>;
4786
3809
  wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4787
3810
  kind: z.ZodLiteral<"failed">;
4788
3811
  diagnostic: z.ZodString;
@@ -4803,6 +3826,7 @@ export declare const verbs: Readonly<{
4803
3826
  readonly normal: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4804
3827
  kind: z.ZodLiteral<"answered">;
4805
3828
  answer: z.ZodJSONSchema;
3829
+ completedAt: z.ZodExactOptional<z.ZodString>;
4806
3830
  wake: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4807
3831
  kind: z.ZodLiteral<"failed">;
4808
3832
  diagnostic: z.ZodString;
@@ -4975,6 +3999,18 @@ export declare const verbs: Readonly<{
4975
3999
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4976
4000
  kind: z.ZodLiteral<"row">;
4977
4001
  row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4002
+ kind: z.ZodLiteral<"permission">;
4003
+ sequence: z.ZodNumber;
4004
+ turnSequence: z.ZodNumber;
4005
+ at: z.ZodString;
4006
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4007
+ id: z.ZodString;
4008
+ action: z.ZodString;
4009
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
4010
+ tool: z.ZodExactOptional<z.ZodString>;
4011
+ }, z.core.$strict>>>>;
4012
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4013
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4978
4014
  kind: z.ZodLiteral<"report">;
4979
4015
  sequence: z.ZodNumber;
4980
4016
  bodySequence: z.ZodNumber;
@@ -5121,6 +4157,18 @@ export declare const verbs: Readonly<{
5121
4157
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5122
4158
  kind: z.ZodLiteral<"row">;
5123
4159
  row: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4160
+ kind: z.ZodLiteral<"permission">;
4161
+ sequence: z.ZodNumber;
4162
+ turnSequence: z.ZodNumber;
4163
+ at: z.ZodString;
4164
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4165
+ id: z.ZodString;
4166
+ action: z.ZodString;
4167
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
4168
+ tool: z.ZodExactOptional<z.ZodString>;
4169
+ }, z.core.$strict>>>>;
4170
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4171
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5124
4172
  kind: z.ZodLiteral<"report">;
5125
4173
  sequence: z.ZodNumber;
5126
4174
  bodySequence: z.ZodNumber;
@@ -5237,6 +4285,18 @@ export declare const verbs: Readonly<{
5237
4285
  }, z.core.$strict>>;
5238
4286
  ordinarySelected: z.ZodNumber;
5239
4287
  rows: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4288
+ kind: z.ZodLiteral<"permission">;
4289
+ sequence: z.ZodNumber;
4290
+ turnSequence: z.ZodNumber;
4291
+ at: z.ZodString;
4292
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4293
+ id: z.ZodString;
4294
+ action: z.ZodString;
4295
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
4296
+ tool: z.ZodExactOptional<z.ZodString>;
4297
+ }, z.core.$strict>>>>;
4298
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4299
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5240
4300
  kind: z.ZodLiteral<"turn">;
5241
4301
  sequence: z.ZodNumber;
5242
4302
  bodySequence: z.ZodNumber;
@@ -5396,181 +4456,532 @@ export declare const verbs: Readonly<{
5396
4456
  readonly effect: "destroy";
5397
4457
  };
5398
4458
  readonly wait: {
5399
- readonly description: "Wait until selected Contracts change or close, or selected Akumas finish their current work. Contracts or Akumas, never both in one call. Already closed or finished returns at once. A timeout ends the waiting, not the work.";
5400
- readonly input: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5401
- selectors: z.ZodReadonly<z.ZodArray<z.ZodString>>;
5402
- completion: z.ZodExactOptional<z.ZodEnum<{
5403
- any: "any";
5404
- all: "all";
5405
- }>>;
5406
- timeoutMs: z.ZodExactOptional<z.ZodNumber>;
5407
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5408
- selectors: z.ZodReadonly<z.ZodArray<z.ZodString>>;
4459
+ readonly description: "Wait for Contracts to change or close and Akumas to finish their current work, together or separately. Any/all applies to the whole selection. Already satisfied members count immediately. A timeout ends observation, never the work.";
4460
+ readonly input: z.ZodReadonly<z.ZodObject<{
4461
+ selectors: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>, z.ZodString]>>>;
5409
4462
  completion: z.ZodExactOptional<z.ZodEnum<{
5410
4463
  any: "any";
5411
4464
  all: "all";
5412
4465
  }>>;
5413
- timeoutMs: z.ZodExactOptional<z.ZodNumber>;
5414
- }, z.core.$strict>>]>;
5415
- readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5416
- kind: z.ZodLiteral<"contract">;
4466
+ timeout: z.ZodExactOptional<z.ZodString>;
4467
+ }, z.core.$strict>>;
4468
+ readonly output: z.ZodReadonly<z.ZodObject<{
4469
+ kind: z.ZodLiteral<"wait">;
5417
4470
  reason: z.ZodEnum<{
5418
4471
  deadline: "deadline";
4472
+ unavailable: "unavailable";
5419
4473
  missing: "missing";
5420
- terminal: "terminal";
5421
- changed: "changed";
5422
- }>;
5423
- contracts: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5424
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5425
- changed: z.ZodExactOptional<z.ZodLiteral<true>>;
5426
- presence: z.ZodExactOptional<z.ZodEnum<{
5427
- unknown: "unknown";
5428
- missing: "missing";
5429
- }>>;
5430
- terminal: z.ZodExactOptional<z.ZodEnum<{
5431
- claimed: "claimed";
5432
- abandoned: "abandoned";
5433
- }>>;
5434
- }, z.core.$strict>>>>;
5435
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5436
- kind: z.ZodLiteral<"akuma">;
5437
- reason: z.ZodEnum<{
5438
- deadline: "deadline";
5439
4474
  completed: "completed";
5440
4475
  }>;
5441
- results: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5442
- kind: z.ZodLiteral<"observed">;
5443
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5444
- life: z.ZodEnum<{
5445
- hung: "hung";
5446
- untidy: "untidy";
5447
- killed: "killed";
5448
- running: "running";
5449
- asleep: "asleep";
5450
- stranded: "stranded";
5451
- }>;
5452
- pending: z.ZodExactOptional<z.ZodLiteral<true>>;
5453
- outcome: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5454
- kind: z.ZodLiteral<"answered">;
5455
- historyId: z.ZodTemplateLiteral<`turn/${number}`>;
5456
- answer: z.ZodString;
5457
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5458
- kind: z.ZodLiteral<"failed">;
5459
- historyId: z.ZodTemplateLiteral<`turn/${number}`>;
5460
- diagnostic: z.ZodString;
5461
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5462
- kind: z.ZodLiteral<"canceled">;
5463
- historyId: z.ZodTemplateLiteral<`turn/${number}`>;
5464
- }, z.core.$strict>>]>>;
5465
- strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
5466
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5467
- kind: z.ZodLiteral<"unobserved">;
5468
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5469
- diagnostic: z.ZodString;
4476
+ members: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4477
+ kind: z.ZodLiteral<"contract">;
4478
+ observation: z.ZodReadonly<z.ZodObject<{
4479
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
4480
+ changed: z.ZodExactOptional<z.ZodLiteral<true>>;
4481
+ presence: z.ZodExactOptional<z.ZodEnum<{
4482
+ unknown: "unknown";
4483
+ missing: "missing";
4484
+ }>>;
4485
+ terminal: z.ZodExactOptional<z.ZodEnum<{
4486
+ claimed: "claimed";
4487
+ abandoned: "abandoned";
4488
+ }>>;
4489
+ summary: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4490
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
4491
+ title: z.ZodExactOptional<z.ZodString>;
4492
+ phase: z.ZodEnum<{
4493
+ claimed: "claimed";
4494
+ abandoned: "abandoned";
4495
+ bound: "bound";
4496
+ }>;
4497
+ phaseAt: z.ZodString;
4498
+ delivered: z.ZodExactOptional<z.ZodLiteral<true>>;
4499
+ gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4500
+ name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4501
+ verdict: z.ZodEnum<{
4502
+ missing: "missing";
4503
+ satisfied: "satisfied";
4504
+ unsatisfied: "unsatisfied";
4505
+ stale: "stale";
4506
+ }>;
4507
+ }, z.core.$strict>>>>>;
4508
+ attention: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4509
+ kind: z.ZodLiteral<"workspace-unavailable">;
4510
+ path: z.ZodString;
4511
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4512
+ kind: z.ZodLiteral<"workspace-unappointed">;
4513
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4514
+ kind: z.ZodLiteral<"workspace-failed">;
4515
+ path: z.ZodString;
4516
+ diagnostic: z.ZodString;
4517
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4518
+ kind: z.ZodLiteral<"merge-in-progress">;
4519
+ path: z.ZodString;
4520
+ conflicts: z.ZodExactOptional<z.ZodNumber>;
4521
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4522
+ kind: z.ZodLiteral<"target-behind">;
4523
+ behind: z.ZodNumber;
4524
+ subject: z.ZodExactOptional<z.ZodString>;
4525
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4526
+ kind: z.ZodLiteral<"target-unknown">;
4527
+ subject: z.ZodExactOptional<z.ZodString>;
4528
+ }, z.core.$strict>>]>>>>;
4529
+ }, z.core.$strict>>>;
4530
+ }, z.core.$strict>>;
5470
4531
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5471
- kind: z.ZodLiteral<"missing">;
5472
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5473
- }, z.core.$strict>>]>>>;
5474
- }, z.core.$strict>>]>;
5475
- readonly normal: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5476
- kind: z.ZodLiteral<"contract">;
5477
- reason: z.ZodLiteral<"changed">;
5478
- contracts: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5479
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5480
- terminal: z.ZodExactOptional<z.ZodEnum<{
5481
- claimed: "claimed";
5482
- abandoned: "abandoned";
5483
- }>>;
5484
- changed: z.ZodExactOptional<z.ZodLiteral<true>>;
5485
- }, z.core.$strict>>>>;
5486
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5487
- kind: z.ZodLiteral<"contract">;
5488
- reason: z.ZodLiteral<"terminal">;
5489
- contracts: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5490
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5491
- terminal: z.ZodExactOptional<z.ZodEnum<{
5492
- claimed: "claimed";
5493
- abandoned: "abandoned";
5494
- }>>;
5495
- }, z.core.$strict>>>>;
5496
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5497
- kind: z.ZodLiteral<"contract">;
5498
- reason: z.ZodLiteral<"deadline">;
5499
- contracts: z.ZodUnion<readonly [z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5500
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5501
- terminal: z.ZodExactOptional<z.ZodEnum<{
5502
- claimed: "claimed";
5503
- abandoned: "abandoned";
5504
- }>>;
5505
- changed: z.ZodExactOptional<z.ZodLiteral<true>>;
5506
- }, z.core.$strict>>>>, z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5507
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5508
- presence: z.ZodLiteral<"unknown">;
5509
- }, z.core.$strict>>>>]>;
5510
- }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
5511
- kind: z.ZodLiteral<"akuma">;
5512
- reason: z.ZodEnum<{
5513
- deadline: "deadline";
5514
- completed: "completed";
5515
- }>;
5516
- results: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5517
- kind: z.ZodLiteral<"observed">;
5518
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5519
- life: z.ZodEnum<{
5520
- hung: "hung";
5521
- untidy: "untidy";
5522
- killed: "killed";
5523
- running: "running";
5524
- asleep: "asleep";
5525
- stranded: "stranded";
5526
- }>;
5527
- pending: z.ZodExactOptional<z.ZodLiteral<true>>;
5528
- outcome: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5529
- kind: z.ZodLiteral<"answered">;
5530
- historyId: z.ZodTemplateLiteral<`turn/${number}`>;
5531
- answer: z.ZodString;
4532
+ kind: z.ZodLiteral<"akuma">;
4533
+ observation: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4534
+ kind: z.ZodLiteral<"observed">;
4535
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4536
+ life: z.ZodEnum<{
4537
+ hung: "hung";
4538
+ untidy: "untidy";
4539
+ killed: "killed";
4540
+ running: "running";
4541
+ asleep: "asleep";
4542
+ stranded: "stranded";
4543
+ }>;
4544
+ lastActivityAt: z.ZodExactOptional<z.ZodString>;
4545
+ events: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4546
+ kind: z.ZodLiteral<"permission">;
4547
+ sequence: z.ZodNumber;
4548
+ turnSequence: z.ZodNumber;
4549
+ at: z.ZodString;
4550
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4551
+ id: z.ZodString;
4552
+ action: z.ZodString;
4553
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
4554
+ tool: z.ZodExactOptional<z.ZodString>;
4555
+ }, z.core.$strict>>>>;
4556
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4557
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4558
+ kind: z.ZodLiteral<"turn">;
4559
+ sequence: z.ZodNumber;
4560
+ bodySequence: z.ZodNumber;
4561
+ at: z.ZodString;
4562
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4563
+ kind: z.ZodLiteral<"call">;
4564
+ sequence: z.ZodNumber;
4565
+ turnSequence: z.ZodNumber;
4566
+ at: z.ZodString;
4567
+ text: z.ZodString;
4568
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4569
+ kind: z.ZodLiteral<"report">;
4570
+ sequence: z.ZodNumber;
4571
+ bodySequence: z.ZodNumber;
4572
+ turnSequence: z.ZodNumber;
4573
+ text: z.ZodString;
4574
+ at: z.ZodString;
4575
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4576
+ kind: z.ZodLiteral<"thought" | "note" | "said">;
4577
+ sequence: z.ZodNumber;
4578
+ turnSequence: z.ZodNumber;
4579
+ at: z.ZodString;
4580
+ text: z.ZodString;
4581
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4582
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4583
+ kind: z.ZodLiteral<"thought" | "note" | "said">;
4584
+ sequence: z.ZodNumber;
4585
+ turnSequence: z.ZodNumber;
4586
+ at: z.ZodString;
4587
+ text: z.ZodString;
4588
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4589
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4590
+ kind: z.ZodLiteral<"thought" | "note" | "said">;
4591
+ sequence: z.ZodNumber;
4592
+ turnSequence: z.ZodNumber;
4593
+ at: z.ZodString;
4594
+ text: z.ZodString;
4595
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4596
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4597
+ kind: z.ZodLiteral<"tell">;
4598
+ sequence: z.ZodNumber;
4599
+ at: z.ZodString;
4600
+ tellId: z.ZodString;
4601
+ text: z.ZodString;
4602
+ state: z.ZodEnum<{
4603
+ pending: "pending";
4604
+ told: "told";
4605
+ }>;
4606
+ deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4607
+ deliveredAt: z.ZodString;
4608
+ route: z.ZodEnum<{
4609
+ launch: "launch";
4610
+ live: "live";
4611
+ }>;
4612
+ turnSequence: z.ZodNumber;
4613
+ }, z.core.$strict>>>>;
4614
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4615
+ kind: z.ZodLiteral<"tool">;
4616
+ sequence: z.ZodNumber;
4617
+ turnSequence: z.ZodNumber;
4618
+ at: z.ZodString;
4619
+ durationMs: z.ZodExactOptional<z.ZodNumber>;
4620
+ name: z.ZodString;
4621
+ call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4622
+ kind: z.ZodLiteral<"run">;
4623
+ command: z.ZodString;
4624
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4625
+ kind: z.ZodLiteral<"read">;
4626
+ path: z.ZodString;
4627
+ offset: z.ZodExactOptional<z.ZodNumber>;
4628
+ limit: z.ZodExactOptional<z.ZodNumber>;
4629
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4630
+ kind: z.ZodLiteral<"search">;
4631
+ query: z.ZodString;
4632
+ scope: z.ZodExactOptional<z.ZodEnum<{
4633
+ content: "content";
4634
+ files: "files";
4635
+ web: "web";
4636
+ }>>;
4637
+ path: z.ZodExactOptional<z.ZodString>;
4638
+ glob: z.ZodExactOptional<z.ZodString>;
4639
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4640
+ kind: z.ZodLiteral<"fileChange">;
4641
+ changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4642
+ op: z.ZodEnum<{
4643
+ add: "add";
4644
+ update: "update";
4645
+ delete: "delete";
4646
+ unspecified: "unspecified";
4647
+ }>;
4648
+ path: z.ZodString;
4649
+ diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4650
+ added: z.ZodNumber;
4651
+ removed: z.ZodNumber;
4652
+ }, z.core.$strict>>>;
4653
+ patch: z.ZodExactOptional<z.ZodString>;
4654
+ }, z.core.$strict>>>>;
4655
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4656
+ kind: z.ZodLiteral<"other">;
4657
+ input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4658
+ json: z.ZodString;
4659
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4660
+ }, z.core.$strict>>>;
4661
+ }, z.core.$strict>>]>;
4662
+ toolId: z.ZodString;
4663
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4664
+ state: z.ZodUnion<readonly [z.ZodEnum<{
4665
+ active: "active";
4666
+ unsettled: "unsettled";
4667
+ }>, z.ZodReadonly<z.ZodObject<{
4668
+ status: z.ZodEnum<{
4669
+ error: "error";
4670
+ ok: "ok";
4671
+ }>;
4672
+ message: z.ZodExactOptional<z.ZodString>;
4673
+ output: z.ZodExactOptional<z.ZodString>;
4674
+ exitCode: z.ZodExactOptional<z.ZodNumber>;
4675
+ }, z.core.$strict>>]>;
4676
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4677
+ kind: z.ZodLiteral<"outcome">;
4678
+ sequence: z.ZodNumber;
4679
+ turnSequence: z.ZodNumber;
4680
+ at: z.ZodString;
4681
+ outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4682
+ kind: z.ZodLiteral<"answered">;
4683
+ answer: z.ZodString;
4684
+ foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
4685
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4686
+ kind: z.ZodLiteral<"failed">;
4687
+ diagnostic: z.ZodString;
4688
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4689
+ kind: z.ZodLiteral<"canceled">;
4690
+ }, z.core.$strict>>]>;
4691
+ }, z.core.$strict>>]>>>>;
4692
+ eventsUnavailable: z.ZodExactOptional<z.ZodString>;
4693
+ pending: z.ZodExactOptional<z.ZodLiteral<true>>;
4694
+ outcome: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4695
+ kind: z.ZodLiteral<"answered">;
4696
+ historyId: z.ZodTemplateLiteral<`turn/${number}`>;
4697
+ answer: z.ZodString;
4698
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4699
+ kind: z.ZodLiteral<"failed">;
4700
+ historyId: z.ZodTemplateLiteral<`turn/${number}`>;
4701
+ diagnostic: z.ZodString;
4702
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4703
+ kind: z.ZodLiteral<"canceled">;
4704
+ historyId: z.ZodTemplateLiteral<`turn/${number}`>;
4705
+ }, z.core.$strict>>]>>;
4706
+ strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
5532
4707
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5533
- kind: z.ZodLiteral<"failed">;
5534
- historyId: z.ZodTemplateLiteral<`turn/${number}`>;
4708
+ kind: z.ZodLiteral<"unobserved">;
4709
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5535
4710
  diagnostic: z.ZodString;
5536
4711
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5537
- kind: z.ZodLiteral<"canceled">;
5538
- historyId: z.ZodTemplateLiteral<`turn/${number}`>;
5539
- }, z.core.$strict>>]>>;
5540
- strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
5541
- }, z.core.$strict>>>>;
5542
- }, z.core.$strict>>]>;
4712
+ kind: z.ZodLiteral<"missing">;
4713
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4714
+ }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
4715
+ kind: z.ZodLiteral<"unknown">;
4716
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4717
+ }, z.core.$strict>>]>;
4718
+ }, z.core.$strict>>]>>>;
4719
+ }, z.core.$strict>>;
4720
+ readonly normal: z.ZodReadonly<z.ZodObject<{
4721
+ kind: z.ZodLiteral<"wait">;
4722
+ reason: z.ZodEnum<{
4723
+ deadline: "deadline";
4724
+ completed: "completed";
4725
+ }>;
4726
+ members: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4727
+ kind: z.ZodLiteral<"contract">;
4728
+ observation: z.ZodReadonly<z.ZodObject<{
4729
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
4730
+ changed: z.ZodExactOptional<z.ZodLiteral<true>>;
4731
+ terminal: z.ZodExactOptional<z.ZodEnum<{
4732
+ claimed: "claimed";
4733
+ abandoned: "abandoned";
4734
+ }>>;
4735
+ summary: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4736
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
4737
+ title: z.ZodExactOptional<z.ZodString>;
4738
+ phase: z.ZodEnum<{
4739
+ claimed: "claimed";
4740
+ abandoned: "abandoned";
4741
+ bound: "bound";
4742
+ }>;
4743
+ phaseAt: z.ZodString;
4744
+ delivered: z.ZodExactOptional<z.ZodLiteral<true>>;
4745
+ gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4746
+ name: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
4747
+ verdict: z.ZodEnum<{
4748
+ missing: "missing";
4749
+ satisfied: "satisfied";
4750
+ unsatisfied: "unsatisfied";
4751
+ stale: "stale";
4752
+ }>;
4753
+ }, z.core.$strict>>>>>;
4754
+ attention: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4755
+ kind: z.ZodLiteral<"workspace-unavailable">;
4756
+ path: z.ZodString;
4757
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4758
+ kind: z.ZodLiteral<"workspace-unappointed">;
4759
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4760
+ kind: z.ZodLiteral<"workspace-failed">;
4761
+ path: z.ZodString;
4762
+ diagnostic: z.ZodString;
4763
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4764
+ kind: z.ZodLiteral<"merge-in-progress">;
4765
+ path: z.ZodString;
4766
+ conflicts: z.ZodExactOptional<z.ZodNumber>;
4767
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4768
+ kind: z.ZodLiteral<"target-behind">;
4769
+ behind: z.ZodNumber;
4770
+ subject: z.ZodExactOptional<z.ZodString>;
4771
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4772
+ kind: z.ZodLiteral<"target-unknown">;
4773
+ subject: z.ZodExactOptional<z.ZodString>;
4774
+ }, z.core.$strict>>]>>>>;
4775
+ }, z.core.$strict>>>;
4776
+ presence: z.ZodExactOptional<z.ZodLiteral<"unknown">>;
4777
+ }, z.core.$strict>>;
4778
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4779
+ kind: z.ZodLiteral<"akuma">;
4780
+ observation: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4781
+ kind: z.ZodLiteral<"observed">;
4782
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4783
+ life: z.ZodEnum<{
4784
+ hung: "hung";
4785
+ untidy: "untidy";
4786
+ killed: "killed";
4787
+ running: "running";
4788
+ asleep: "asleep";
4789
+ stranded: "stranded";
4790
+ }>;
4791
+ lastActivityAt: z.ZodExactOptional<z.ZodString>;
4792
+ events: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4793
+ kind: z.ZodLiteral<"permission">;
4794
+ sequence: z.ZodNumber;
4795
+ turnSequence: z.ZodNumber;
4796
+ at: z.ZodString;
4797
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4798
+ id: z.ZodString;
4799
+ action: z.ZodString;
4800
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
4801
+ tool: z.ZodExactOptional<z.ZodString>;
4802
+ }, z.core.$strict>>>>;
4803
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4804
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4805
+ kind: z.ZodLiteral<"turn">;
4806
+ sequence: z.ZodNumber;
4807
+ bodySequence: z.ZodNumber;
4808
+ at: z.ZodString;
4809
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4810
+ kind: z.ZodLiteral<"call">;
4811
+ sequence: z.ZodNumber;
4812
+ turnSequence: z.ZodNumber;
4813
+ at: z.ZodString;
4814
+ text: z.ZodString;
4815
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4816
+ kind: z.ZodLiteral<"report">;
4817
+ sequence: z.ZodNumber;
4818
+ bodySequence: z.ZodNumber;
4819
+ turnSequence: z.ZodNumber;
4820
+ text: z.ZodString;
4821
+ at: z.ZodString;
4822
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4823
+ kind: z.ZodLiteral<"thought" | "note" | "said">;
4824
+ sequence: z.ZodNumber;
4825
+ turnSequence: z.ZodNumber;
4826
+ at: z.ZodString;
4827
+ text: z.ZodString;
4828
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4829
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4830
+ kind: z.ZodLiteral<"thought" | "note" | "said">;
4831
+ sequence: z.ZodNumber;
4832
+ turnSequence: z.ZodNumber;
4833
+ at: z.ZodString;
4834
+ text: z.ZodString;
4835
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4836
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4837
+ kind: z.ZodLiteral<"thought" | "note" | "said">;
4838
+ sequence: z.ZodNumber;
4839
+ turnSequence: z.ZodNumber;
4840
+ at: z.ZodString;
4841
+ text: z.ZodString;
4842
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4843
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4844
+ kind: z.ZodLiteral<"tell">;
4845
+ sequence: z.ZodNumber;
4846
+ at: z.ZodString;
4847
+ tellId: z.ZodString;
4848
+ text: z.ZodString;
4849
+ state: z.ZodEnum<{
4850
+ pending: "pending";
4851
+ told: "told";
4852
+ }>;
4853
+ deliveries: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4854
+ deliveredAt: z.ZodString;
4855
+ route: z.ZodEnum<{
4856
+ launch: "launch";
4857
+ live: "live";
4858
+ }>;
4859
+ turnSequence: z.ZodNumber;
4860
+ }, z.core.$strict>>>>;
4861
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4862
+ kind: z.ZodLiteral<"tool">;
4863
+ sequence: z.ZodNumber;
4864
+ turnSequence: z.ZodNumber;
4865
+ at: z.ZodString;
4866
+ durationMs: z.ZodExactOptional<z.ZodNumber>;
4867
+ name: z.ZodString;
4868
+ call: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4869
+ kind: z.ZodLiteral<"run">;
4870
+ command: z.ZodString;
4871
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4872
+ kind: z.ZodLiteral<"read">;
4873
+ path: z.ZodString;
4874
+ offset: z.ZodExactOptional<z.ZodNumber>;
4875
+ limit: z.ZodExactOptional<z.ZodNumber>;
4876
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4877
+ kind: z.ZodLiteral<"search">;
4878
+ query: z.ZodString;
4879
+ scope: z.ZodExactOptional<z.ZodEnum<{
4880
+ content: "content";
4881
+ files: "files";
4882
+ web: "web";
4883
+ }>>;
4884
+ path: z.ZodExactOptional<z.ZodString>;
4885
+ glob: z.ZodExactOptional<z.ZodString>;
4886
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4887
+ kind: z.ZodLiteral<"fileChange">;
4888
+ changes: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
4889
+ op: z.ZodEnum<{
4890
+ add: "add";
4891
+ update: "update";
4892
+ delete: "delete";
4893
+ unspecified: "unspecified";
4894
+ }>;
4895
+ path: z.ZodString;
4896
+ diffstat: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4897
+ added: z.ZodNumber;
4898
+ removed: z.ZodNumber;
4899
+ }, z.core.$strict>>>;
4900
+ patch: z.ZodExactOptional<z.ZodString>;
4901
+ }, z.core.$strict>>>>;
4902
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4903
+ kind: z.ZodLiteral<"other">;
4904
+ input: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
4905
+ json: z.ZodString;
4906
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4907
+ }, z.core.$strict>>>;
4908
+ }, z.core.$strict>>]>;
4909
+ toolId: z.ZodString;
4910
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
4911
+ state: z.ZodUnion<readonly [z.ZodEnum<{
4912
+ active: "active";
4913
+ unsettled: "unsettled";
4914
+ }>, z.ZodReadonly<z.ZodObject<{
4915
+ status: z.ZodEnum<{
4916
+ error: "error";
4917
+ ok: "ok";
4918
+ }>;
4919
+ message: z.ZodExactOptional<z.ZodString>;
4920
+ output: z.ZodExactOptional<z.ZodString>;
4921
+ exitCode: z.ZodExactOptional<z.ZodNumber>;
4922
+ }, z.core.$strict>>]>;
4923
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4924
+ kind: z.ZodLiteral<"outcome">;
4925
+ sequence: z.ZodNumber;
4926
+ turnSequence: z.ZodNumber;
4927
+ at: z.ZodString;
4928
+ outcome: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4929
+ kind: z.ZodLiteral<"answered">;
4930
+ answer: z.ZodString;
4931
+ foldedSaidSequence: z.ZodExactOptional<z.ZodNumber>;
4932
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4933
+ kind: z.ZodLiteral<"failed">;
4934
+ diagnostic: z.ZodString;
4935
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4936
+ kind: z.ZodLiteral<"canceled">;
4937
+ }, z.core.$strict>>]>;
4938
+ }, z.core.$strict>>]>>>>;
4939
+ eventsUnavailable: z.ZodExactOptional<z.ZodString>;
4940
+ pending: z.ZodExactOptional<z.ZodLiteral<true>>;
4941
+ outcome: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4942
+ kind: z.ZodLiteral<"answered">;
4943
+ historyId: z.ZodTemplateLiteral<`turn/${number}`>;
4944
+ answer: z.ZodString;
4945
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4946
+ kind: z.ZodLiteral<"failed">;
4947
+ historyId: z.ZodTemplateLiteral<`turn/${number}`>;
4948
+ diagnostic: z.ZodString;
4949
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4950
+ kind: z.ZodLiteral<"canceled">;
4951
+ historyId: z.ZodTemplateLiteral<`turn/${number}`>;
4952
+ }, z.core.$strict>>]>>;
4953
+ strandedReason: z.ZodExactOptional<z.ZodLiteral<"resume-unsupported">>;
4954
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
4955
+ kind: z.ZodLiteral<"unknown">;
4956
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
4957
+ }, z.core.$strict>>]>;
4958
+ }, z.core.$strict>>]>>>;
4959
+ }, z.core.$strict>>;
5543
4960
  readonly effect: "read";
5544
4961
  };
5545
4962
  readonly history: {
5546
- readonly description: "Look back: a Contract's journal, or an Akuma's recent activity. For an Akuma, last returns its latest answer and id opens one item such as turn/<n> or report/<n>.";
4963
+ readonly description: "Read a bounded Contract or Akuma timeline, or open one complete item by its visible address.";
5547
4964
  readonly input: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5548
4965
  selector: z.ZodString;
5549
- full: z.ZodExactOptional<z.ZodBoolean>;
5550
- }, z.core.$strict>>, ...(z.ZodReadonly<z.ZodObject<{
5551
- id: z.ZodString;
5552
- last: z.ZodExactOptional<z.ZodLiteral<false>>;
5553
- selector: z.ZodString;
5554
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
5555
- before: z.ZodExactOptional<z.ZodNumber>;
5556
- limit: z.ZodExactOptional<z.ZodNumber>;
5557
- last: z.ZodExactOptional<z.ZodLiteral<false>>;
4966
+ item: z.ZodString;
4967
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5558
4968
  selector: z.ZodString;
5559
- }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
4969
+ item: z.ZodString;
4970
+ }, z.core.$strict>>, ...(z.ZodReadonly<z.ZodObject<{
5560
4971
  since: z.ZodNumber;
5561
4972
  limit: z.ZodExactOptional<z.ZodNumber>;
5562
- last: z.ZodExactOptional<z.ZodLiteral<false>>;
5563
4973
  selector: z.ZodString;
5564
4974
  }, z.core.$strict>> | z.ZodReadonly<z.ZodObject<{
5565
- last: z.ZodLiteral<true>;
4975
+ before: z.ZodExactOptional<z.ZodNumber>;
4976
+ limit: z.ZodExactOptional<z.ZodNumber>;
5566
4977
  selector: z.ZodString;
5567
4978
  }, z.core.$strict>>)[]]>;
5568
4979
  readonly output: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5569
4980
  kind: z.ZodLiteral<"contract">;
5570
4981
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5571
- events: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
4982
+ events: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5572
4983
  kind: z.ZodLiteral<"bind">;
5573
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
4984
+ id: z.ZodString;
5574
4985
  at: z.ZodString;
5575
4986
  start: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5576
4987
  target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
@@ -5586,15 +4997,23 @@ export declare const verbs: Readonly<{
5586
4997
  }, z.core.$strict>>>;
5587
4998
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5588
4999
  kind: z.ZodLiteral<"amend">;
5589
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
5000
+ id: z.ZodString;
5590
5001
  at: z.ZodString;
5002
+ target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
5003
+ kind: z.ZodLiteral<"contract">;
5004
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5005
+ }, z.core.$strict>>]>>;
5006
+ targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
5007
+ id: z.ZodString;
5008
+ identity: z.ZodString;
5009
+ }, z.core.$strict>>>;
5591
5010
  changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
5592
5011
  gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
5593
5012
  after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>>>;
5594
5013
  document: z.ZodExactOptional<z.ZodString>;
5595
5014
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5596
5015
  kind: z.ZodLiteral<"deliver">;
5597
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
5016
+ id: z.ZodString;
5598
5017
  at: z.ZodString;
5599
5018
  candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5600
5019
  integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
@@ -5604,13 +5023,13 @@ export declare const verbs: Readonly<{
5604
5023
  requireBranchesToBeUpToDate: z.ZodExactOptional<z.ZodBoolean>;
5605
5024
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5606
5025
  kind: z.ZodLiteral<"reintegrated">;
5607
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
5026
+ id: z.ZodString;
5608
5027
  at: z.ZodString;
5609
5028
  predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5610
5029
  integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5611
5030
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5612
5031
  kind: z.ZodLiteral<"attestation">;
5613
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
5032
+ id: z.ZodString;
5614
5033
  at: z.ZodString;
5615
5034
  gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
5616
5035
  requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
@@ -5622,26 +5041,29 @@ export declare const verbs: Readonly<{
5622
5041
  summary: z.ZodExactOptional<z.ZodString>;
5623
5042
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5624
5043
  kind: z.ZodLiteral<"claimed">;
5625
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
5044
+ id: z.ZodString;
5626
5045
  at: z.ZodString;
5627
- deliveryId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
5046
+ deliveryId: z.ZodString;
5628
5047
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5629
5048
  kind: z.ZodLiteral<"arc">;
5630
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
5049
+ id: z.ZodString;
5631
5050
  at: z.ZodString;
5632
5051
  chapter: z.ZodNumber;
5633
5052
  title: z.ZodString;
5634
5053
  body: z.ZodExactOptional<z.ZodString>;
5635
5054
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5636
5055
  kind: z.ZodLiteral<"abandoned">;
5637
- id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").EntryUlid, string>>;
5056
+ id: z.ZodString;
5638
5057
  at: z.ZodString;
5639
5058
  note: z.ZodExactOptional<z.ZodString>;
5640
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5059
+ }, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
5641
5060
  kind: z.ZodLiteral<"dispatch">;
5642
5061
  at: z.ZodString;
5643
5062
  akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5644
5063
  }, z.core.$strict>>]>>>;
5064
+ omitted: z.ZodExactOptional<z.ZodNumber>;
5065
+ lowestRetainedSequence: z.ZodExactOptional<z.ZodNumber>;
5066
+ highestSequence: z.ZodExactOptional<z.ZodNumber>;
5645
5067
  dispatches: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
5646
5068
  kind: z.ZodLiteral<"unavailable">;
5647
5069
  category: z.ZodEnum<{
@@ -5650,11 +5072,107 @@ export declare const verbs: Readonly<{
5650
5072
  }>;
5651
5073
  diagnostic: z.ZodString;
5652
5074
  }, z.core.$strict>>>;
5075
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5076
+ kind: z.ZodLiteral<"contract-exact">;
5077
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5078
+ event: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5079
+ kind: z.ZodLiteral<"bind">;
5080
+ id: z.ZodString;
5081
+ at: z.ZodString;
5082
+ start: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5083
+ target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
5084
+ kind: z.ZodLiteral<"contract">;
5085
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5086
+ }, z.core.$strict>>]>>;
5087
+ gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
5088
+ after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>>>;
5089
+ document: z.ZodExactOptional<z.ZodString>;
5090
+ targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
5091
+ id: z.ZodString;
5092
+ identity: z.ZodString;
5093
+ }, z.core.$strict>>>;
5094
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5095
+ kind: z.ZodLiteral<"amend">;
5096
+ id: z.ZodString;
5097
+ at: z.ZodString;
5098
+ target: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodString, z.ZodReadonly<z.ZodObject<{
5099
+ kind: z.ZodLiteral<"contract">;
5100
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5101
+ }, z.core.$strict>>]>>;
5102
+ targetIncarnation: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
5103
+ id: z.ZodString;
5104
+ identity: z.ZodString;
5105
+ }, z.core.$strict>>>;
5106
+ changedSections: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
5107
+ gates: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>>;
5108
+ after: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>>>>;
5109
+ document: z.ZodExactOptional<z.ZodString>;
5110
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5111
+ kind: z.ZodLiteral<"deliver">;
5112
+ id: z.ZodString;
5113
+ at: z.ZodString;
5114
+ candidate: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5115
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5116
+ contentId: z.ZodString;
5117
+ predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5118
+ note: z.ZodExactOptional<z.ZodString>;
5119
+ requireBranchesToBeUpToDate: z.ZodExactOptional<z.ZodBoolean>;
5120
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5121
+ kind: z.ZodLiteral<"reintegrated">;
5122
+ id: z.ZodString;
5123
+ at: z.ZodString;
5124
+ predecessor: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5125
+ integration: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5126
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5127
+ kind: z.ZodLiteral<"attestation">;
5128
+ id: z.ZodString;
5129
+ at: z.ZodString;
5130
+ gate: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
5131
+ requirement: z.ZodPipe<z.ZodString, z.ZodTransform<import("../core/facts/types.js").RequirementId, string>>;
5132
+ verdict: z.ZodEnum<{
5133
+ satisfied: "satisfied";
5134
+ unsatisfied: "unsatisfied";
5135
+ }>;
5136
+ subject: z.ZodString;
5137
+ summary: z.ZodExactOptional<z.ZodString>;
5138
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5139
+ kind: z.ZodLiteral<"claimed">;
5140
+ id: z.ZodString;
5141
+ at: z.ZodString;
5142
+ deliveryId: z.ZodString;
5143
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5144
+ kind: z.ZodLiteral<"arc">;
5145
+ id: z.ZodString;
5146
+ at: z.ZodString;
5147
+ chapter: z.ZodNumber;
5148
+ title: z.ZodString;
5149
+ body: z.ZodExactOptional<z.ZodString>;
5150
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5151
+ kind: z.ZodLiteral<"abandoned">;
5152
+ id: z.ZodString;
5153
+ at: z.ZodString;
5154
+ note: z.ZodExactOptional<z.ZodString>;
5155
+ }, z.core.$strict>>]>;
5156
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5157
+ kind: z.ZodLiteral<"contract-unknown-history">;
5158
+ contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5653
5159
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5654
5160
  kind: z.ZodLiteral<"contract-missing">;
5655
5161
  contractId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
5656
5162
  }, z.core.$strict>>]>, z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5657
5163
  events: z.ZodReadonly<z.ZodArray<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5164
+ kind: z.ZodLiteral<"permission">;
5165
+ sequence: z.ZodNumber;
5166
+ turnSequence: z.ZodNumber;
5167
+ at: z.ZodString;
5168
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5169
+ id: z.ZodString;
5170
+ action: z.ZodString;
5171
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
5172
+ tool: z.ZodExactOptional<z.ZodString>;
5173
+ }, z.core.$strict>>>>;
5174
+ truncated: z.ZodExactOptional<z.ZodLiteral<true>>;
5175
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5658
5176
  kind: z.ZodLiteral<"turn">;
5659
5177
  sequence: z.ZodNumber;
5660
5178
  bodySequence: z.ZodNumber;
@@ -5823,9 +5341,10 @@ export declare const verbs: Readonly<{
5823
5341
  akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5824
5342
  kind: z.ZodLiteral<"akuma-unknown-history">;
5825
5343
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5344
+ historyId: z.ZodTemplateLiteral<`turn/${number}`>;
5826
5345
  answer: z.ZodString;
5827
5346
  akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5828
- kind: z.ZodLiteral<"akuma-last">;
5347
+ kind: z.ZodLiteral<"akuma-answer">;
5829
5348
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5830
5349
  akumaId: z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>;
5831
5350
  kind: z.ZodLiteral<"akuma-no-answer">;
@@ -5833,7 +5352,7 @@ export declare const verbs: Readonly<{
5833
5352
  readonly effect: "read";
5834
5353
  };
5835
5354
  readonly report: {
5836
- readonly description: "From inside a running Akuma, leave a progress note for whoever holds it and keep working. Only works when this server runs inside that Akuma.";
5355
+ readonly description: "From inside a running Akuma only, leave a progress note for whoever holds you and keep working. Returns confirmation that the note was recorded, not that it was received.";
5837
5356
  readonly input: z.ZodReadonly<z.ZodObject<{
5838
5357
  text: z.ZodString;
5839
5358
  }, z.core.$strict>>;
@@ -5850,7 +5369,7 @@ export declare const verbs: Readonly<{
5850
5369
  readonly effect: "write";
5851
5370
  };
5852
5371
  readonly whoami: {
5853
- readonly description: "Who this server acts as: caller or Akuma identity, its Contract link and turn initiator, and which Contract worktree cwd stands in. Read from the environment; not authentication.";
5372
+ readonly description: "See who you are acting as and which Contract/worktree you are in, including your Akuma identity and turn initiator when available. This is context, not authentication.";
5854
5373
  readonly input: z.ZodReadonly<z.ZodObject<{}, z.core.$strict>>;
5855
5374
  readonly output: z.ZodReadonly<z.ZodObject<{
5856
5375
  self: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
@@ -6110,7 +5629,7 @@ export declare const verbs: Readonly<{
6110
5629
  lastActivityAt: z.ZodExactOptional<z.ZodString>;
6111
5630
  pending: z.ZodExactOptional<z.ZodNumber>;
6112
5631
  diagnostic: z.ZodExactOptional<z.ZodString>;
6113
- aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").AkumaAlias, string>>>>>;
5632
+ aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../identity/selector.js").AkumaAlias, string>>>>>;
6114
5633
  parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
6115
5634
  contract: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
6116
5635
  kind: z.ZodLiteral<"associated">;
@@ -6133,6 +5652,17 @@ export declare const verbs: Readonly<{
6133
5652
  toolId: z.ZodString;
6134
5653
  }, z.core.$strict>>>>>;
6135
5654
  latestActivity: z.ZodExactOptional<z.ZodNumber>;
5655
+ awaiting: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
5656
+ kind: z.ZodLiteral<"permission">;
5657
+ id: z.ZodNumber;
5658
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5659
+ id: z.ZodString;
5660
+ action: z.ZodString;
5661
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
5662
+ tool: z.ZodExactOptional<z.ZodString>;
5663
+ }, z.core.$strict>>>>;
5664
+ clipped: z.ZodExactOptional<z.ZodLiteral<true>>;
5665
+ }, z.core.$strict>>>;
6136
5666
  pending: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
6137
5667
  id: z.ZodNumber;
6138
5668
  tellId: z.ZodString;
@@ -6167,9 +5697,9 @@ export declare const verbs: Readonly<{
6167
5697
  readonly effect: "read";
6168
5698
  };
6169
5699
  readonly status: {
6170
- readonly description: "Where one Contract stands (stage, gates, prerequisites, worktree) or what one Akuma is doing (state, current work, changed files). Exact kei/... or aku/<name>/<id> only; no aliases.";
5700
+ readonly description: "Where one Contract stands (stage, gates, prerequisites, worktree) or what one Akuma is doing (state, current work, changed files). Select one complete identity or @name; returns its canonical id.";
6171
5701
  readonly input: z.ZodReadonly<z.ZodObject<{
6172
- id: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>]>;
5702
+ selector: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>, z.ZodPipe<z.ZodString, z.ZodTransform<import("../identity/selector.js").AkumaAlias, string>>]>;
6173
5703
  }, z.core.$strict>>;
6174
5704
  readonly output: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
6175
5705
  id: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ContractId, string>>;
@@ -6221,6 +5751,16 @@ export declare const verbs: Readonly<{
6221
5751
  kind: z.ZodLiteral<"missing">;
6222
5752
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6223
5753
  kind: z.ZodLiteral<"stale">;
5754
+ reason: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5755
+ kind: z.ZodLiteral<"candidate-content-changed">;
5756
+ target: z.ZodExactOptional<z.ZodString>;
5757
+ previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
5758
+ currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
5759
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5760
+ kind: z.ZodLiteral<"snapshot-changed">;
5761
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5762
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5763
+ }, z.core.$strict>>]>>;
6224
5764
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6225
5765
  kind: z.ZodLiteral<"attested">;
6226
5766
  verdict: z.ZodEnum<{
@@ -6253,7 +5793,7 @@ export declare const verbs: Readonly<{
6253
5793
  }, z.core.$strict>>]>>;
6254
5794
  roster: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
6255
5795
  id: z.ZodString;
6256
- aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").AkumaAlias, string>>>>>;
5796
+ aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../identity/selector.js").AkumaAlias, string>>>>>;
6257
5797
  aliasesUnavailable: z.ZodExactOptional<z.ZodLiteral<true>>;
6258
5798
  }, z.core.$strict>>>>, z.ZodReadonly<z.ZodObject<{
6259
5799
  kind: z.ZodLiteral<"unavailable">;
@@ -6294,6 +5834,17 @@ export declare const verbs: Readonly<{
6294
5834
  toolId: z.ZodString;
6295
5835
  }, z.core.$strict>>>>>;
6296
5836
  latestActivity: z.ZodExactOptional<z.ZodNumber>;
5837
+ awaiting: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
5838
+ kind: z.ZodLiteral<"permission">;
5839
+ id: z.ZodNumber;
5840
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
5841
+ id: z.ZodString;
5842
+ action: z.ZodString;
5843
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
5844
+ tool: z.ZodExactOptional<z.ZodString>;
5845
+ }, z.core.$strict>>>>;
5846
+ clipped: z.ZodExactOptional<z.ZodLiteral<true>>;
5847
+ }, z.core.$strict>>>;
6297
5848
  pending: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
6298
5849
  id: z.ZodNumber;
6299
5850
  tellId: z.ZodString;
@@ -6382,6 +5933,16 @@ export declare const verbs: Readonly<{
6382
5933
  kind: z.ZodLiteral<"missing">;
6383
5934
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6384
5935
  kind: z.ZodLiteral<"stale">;
5936
+ reason: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
5937
+ kind: z.ZodLiteral<"candidate-content-changed">;
5938
+ target: z.ZodExactOptional<z.ZodString>;
5939
+ previousChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
5940
+ currentChange: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").ChangeId, string>>;
5941
+ }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
5942
+ kind: z.ZodLiteral<"snapshot-changed">;
5943
+ previousSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5944
+ currentSnapshot: z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").SnapshotId, string>>;
5945
+ }, z.core.$strict>>]>>;
6385
5946
  }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6386
5947
  kind: z.ZodLiteral<"attested">;
6387
5948
  verdict: z.ZodEnum<{
@@ -6414,7 +5975,7 @@ export declare const verbs: Readonly<{
6414
5975
  }, z.core.$strict>>]>>;
6415
5976
  roster: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
6416
5977
  id: z.ZodString;
6417
- aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").AkumaAlias, string>>>>>;
5978
+ aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../identity/selector.js").AkumaAlias, string>>>>>;
6418
5979
  aliasesUnavailable: z.ZodExactOptional<z.ZodLiteral<true>>;
6419
5980
  }, z.core.$strict>>>>, z.ZodReadonly<z.ZodObject<{
6420
5981
  kind: z.ZodLiteral<"unavailable">;
@@ -6448,6 +6009,17 @@ export declare const verbs: Readonly<{
6448
6009
  toolId: z.ZodString;
6449
6010
  }, z.core.$strict>>>>>;
6450
6011
  latestActivity: z.ZodExactOptional<z.ZodNumber>;
6012
+ awaiting: z.ZodExactOptional<z.ZodReadonly<z.ZodObject<{
6013
+ kind: z.ZodLiteral<"permission">;
6014
+ id: z.ZodNumber;
6015
+ requests: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
6016
+ id: z.ZodString;
6017
+ action: z.ZodString;
6018
+ resources: z.ZodReadonly<z.ZodArray<z.ZodString>>;
6019
+ tool: z.ZodExactOptional<z.ZodString>;
6020
+ }, z.core.$strict>>>>;
6021
+ clipped: z.ZodExactOptional<z.ZodLiteral<true>>;
6022
+ }, z.core.$strict>>>;
6451
6023
  pending: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
6452
6024
  id: z.ZodNumber;
6453
6025
  tellId: z.ZodString;
@@ -6489,23 +6061,17 @@ export declare const verbs: Readonly<{
6489
6061
  readonly effect: "read";
6490
6062
  };
6491
6063
  readonly ls: {
6492
- readonly description: "List ids of one kind: active Contracts (kei/), open Debts (debt/), akumaName values you can birth (aku/), or existing Akumas (aku/*).";
6493
- readonly input: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
6494
- limit: z.ZodExactOptional<z.ZodNumber>;
6064
+ readonly description: "List ids of one kind: Contracts (kei/), Debts (debt/), Akuma instances (aku/*), or akumaName values you can birth (aku/). Lifecycle selection is active (default), settled, or all; akumaName values have no lifecycle selection.";
6065
+ readonly input: z.ZodReadonly<z.ZodObject<{
6495
6066
  selector: z.ZodString;
6496
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6497
6067
  limit: z.ZodExactOptional<z.ZodNumber>;
6498
- selector: z.ZodString;
6499
- selection: z.ZodExactOptional<z.ZodEnum<{
6068
+ lifecycle: z.ZodExactOptional<z.ZodEnum<{
6500
6069
  active: "active";
6501
- closed: "closed";
6070
+ settled: "settled";
6502
6071
  all: "all";
6503
6072
  }>>;
6504
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6505
- limit: z.ZodExactOptional<z.ZodNumber>;
6506
- selector: z.ZodString;
6507
6073
  mine: z.ZodExactOptional<z.ZodBoolean>;
6508
- }, z.core.$strict>>]>;
6074
+ }, z.core.$strict>>;
6509
6075
  readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
6510
6076
  kind: z.ZodLiteral<"contract-catalogue">;
6511
6077
  observedAt: z.ZodString;
@@ -6570,7 +6136,7 @@ export declare const verbs: Readonly<{
6570
6136
  lastActivityAt: z.ZodExactOptional<z.ZodString>;
6571
6137
  pending: z.ZodExactOptional<z.ZodNumber>;
6572
6138
  diagnostic: z.ZodExactOptional<z.ZodString>;
6573
- aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").AkumaAlias, string>>>>>;
6139
+ aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../identity/selector.js").AkumaAlias, string>>>>>;
6574
6140
  parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
6575
6141
  contract: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
6576
6142
  kind: z.ZodLiteral<"associated">;
@@ -6671,7 +6237,7 @@ export declare const verbs: Readonly<{
6671
6237
  lastActivityAt: z.ZodExactOptional<z.ZodString>;
6672
6238
  pending: z.ZodExactOptional<z.ZodNumber>;
6673
6239
  diagnostic: z.ZodExactOptional<z.ZodString>;
6674
- aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../index.js").AkumaAlias, string>>>>>;
6240
+ aliases: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<import("../identity/selector.js").AkumaAlias, string>>>>>;
6675
6241
  parentAkumaId: z.ZodExactOptional<z.ZodPipe<z.ZodString, z.ZodTransform<import("../akuma/identity.js").AkumaId, string>>>;
6676
6242
  contract: z.ZodExactOptional<z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
6677
6243
  kind: z.ZodLiteral<"associated">;
@@ -6709,11 +6275,10 @@ export declare const verbs: Readonly<{
6709
6275
  };
6710
6276
  readonly region: {
6711
6277
  readonly description: "Before parallel work: which files active Contracts claim to change and where those claims overlap. Advisory only; no locks, no conflict prediction.";
6712
- readonly input: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6713
- contract: z.ZodString;
6714
- }, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
6715
- paths: z.ZodReadonly<z.ZodArray<z.ZodString>>;
6716
- }, z.core.$strict>>]>;
6278
+ readonly input: z.ZodReadonly<z.ZodObject<{
6279
+ contract: z.ZodExactOptional<z.ZodString>;
6280
+ paths: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodString>> & z.ZodType<readonly [string, ...string[]], readonly string[], z.core.$ZodTypeInternals<readonly [string, ...string[]], readonly string[]>>>;
6281
+ }, z.core.$strict>>;
6717
6282
  readonly output: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
6718
6283
  kind: z.ZodLiteral<"present">;
6719
6284
  declarations: z.ZodExactOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
@@ -6815,7 +6380,7 @@ export declare const verbs: Readonly<{
6815
6380
  readonly effect: "write";
6816
6381
  };
6817
6382
  readonly "debt.update": {
6818
- readonly description: "Replace a Debt's text, priority or prerequisites, or set its disposition to open, done or drop. Any state may be reopened or changed; omitted fields are preserved and empty body, note or needs clears them.";
6383
+ readonly description: "Change at least one Debt field: text, priority, prerequisites, or disposition (open, done, drop). Any state may be reopened or changed; omitted fields are preserved and empty body, note or needs clears them. Returns the updated Debt or reports no change.";
6819
6384
  readonly input: z.ZodReadonly<z.ZodObject<{
6820
6385
  title: z.ZodExactOptional<z.ZodString>;
6821
6386
  body: z.ZodExactOptional<z.ZodString>;