@astrosheep/keiyaku 4.5.29 → 4.6.2

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 (418) hide show
  1. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku/SKILL.md +0 -13
  2. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-akuma/SKILL.md +47 -78
  3. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-akuma/references/automation.md +54 -41
  4. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-babysit/SKILL.md +10 -0
  5. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-bind/SKILL.md +27 -9
  6. package/build/integrations/marketplace/plugins/keiyaku/skills/keiyaku-workflow/SKILL.md +68 -71
  7. package/build/src/akuma/akuma-call.d.ts +53 -0
  8. package/build/src/akuma/akuma-call.js +113 -0
  9. package/build/src/akuma/akuma-instance.d.ts +20 -18
  10. package/build/src/akuma/akuma-instance.js +65 -175
  11. package/build/src/akuma/akuma-observe.d.ts +3 -21
  12. package/build/src/akuma/akuma-observe.js +7 -24
  13. package/build/src/akuma/{akuma-handle.d.ts → akuma-owner.d.ts} +55 -27
  14. package/build/src/akuma/{akuma-handle.js → akuma-owner.js} +24 -23
  15. package/build/src/akuma/akuma-selection-execution.d.ts +51 -0
  16. package/build/src/akuma/akuma-selection-execution.js +134 -0
  17. package/build/src/akuma/{fleet-execution.d.ts → akuma-wait.d.ts} +24 -44
  18. package/build/src/akuma/akuma-wait.js +113 -0
  19. package/build/src/akuma/akuma.d.ts +35 -89
  20. package/build/src/akuma/akuma.js +148 -30
  21. package/build/src/akuma/archetype.d.ts +12 -0
  22. package/build/src/akuma/archetype.js +47 -19
  23. package/build/src/akuma/body.d.ts +76 -36
  24. package/build/src/akuma/body.js +84 -49
  25. package/build/src/akuma/call-initial-tell.d.ts +131 -22
  26. package/build/src/akuma/call-initial-tell.js +31 -1
  27. package/build/src/akuma/call-request.d.ts +237 -31
  28. package/build/src/akuma/call-request.js +67 -94
  29. package/build/src/akuma/coordinate.d.ts +15 -5
  30. package/build/src/akuma/coordinate.js +12 -22
  31. package/build/src/akuma/dispatch-association.d.ts +1 -1
  32. package/build/src/akuma/dispatch-association.js +1 -10
  33. package/build/src/akuma/heart/activity-schema.d.ts +325 -0
  34. package/build/src/akuma/heart/activity-schema.js +53 -0
  35. package/build/src/akuma/heart/facts.d.ts +1 -6
  36. package/build/src/akuma/heart/index.d.ts +3 -1
  37. package/build/src/akuma/heart/index.js +4 -1
  38. package/build/src/akuma/heart/rows.d.ts +49 -2
  39. package/build/src/akuma/heart/rows.js +16 -2
  40. package/build/src/akuma/heart/soul.d.ts +1 -0
  41. package/build/src/akuma/heart/soul.js +6 -4
  42. package/build/src/akuma/heart/tells.d.ts +1 -0
  43. package/build/src/akuma/heart/tells.js +18 -0
  44. package/build/src/akuma/identity.d.ts +10 -7
  45. package/build/src/akuma/identity.js +23 -0
  46. package/build/src/akuma/index.d.ts +10 -8
  47. package/build/src/akuma/index.js +2 -2
  48. package/build/src/akuma/nuke.d.ts +3 -0
  49. package/build/src/akuma/nuke.js +13 -7
  50. package/build/src/akuma/projection.d.ts +0 -5
  51. package/build/src/akuma/projection.js +22 -43
  52. package/build/src/akuma/provider-recipe.d.ts +58 -13
  53. package/build/src/akuma/provider-recipe.js +62 -80
  54. package/build/src/akuma/provider.d.ts +6 -76
  55. package/build/src/akuma/provider.js +11 -219
  56. package/build/src/akuma/providers/acp/config.d.ts +2 -0
  57. package/build/src/akuma/providers/acp/config.js +26 -1
  58. package/build/src/akuma/providers/acp/core.d.ts +7 -0
  59. package/build/src/akuma/providers/acp/core.js +49 -18
  60. package/build/src/akuma/providers/acp/index.js +14 -6
  61. package/build/src/akuma/providers/grok-build/index.js +44 -13
  62. package/build/src/akuma/providers/index.d.ts +3 -3
  63. package/build/src/akuma/providers/index.js +2 -13
  64. package/build/src/akuma/providers/opencode-sdk/event-stream.d.ts +28 -0
  65. package/build/src/akuma/providers/opencode-sdk/event-stream.js +92 -0
  66. package/build/src/akuma/providers/opencode-sdk/events.d.ts +0 -1
  67. package/build/src/akuma/providers/opencode-sdk/index.js +200 -64
  68. package/build/src/akuma/providers/opencode-sdk/session.d.ts +41 -1
  69. package/build/src/akuma/providers/opencode-sdk/session.js +69 -2
  70. package/build/src/akuma/providers/pi/events.js +5 -2
  71. package/build/src/akuma/providers/pi/index.d.ts +3 -4
  72. package/build/src/akuma/providers/pi/index.js +99 -45
  73. package/build/src/akuma/publication.d.ts +84 -3
  74. package/build/src/akuma/publication.js +145 -2
  75. package/build/src/akuma/read-pool.d.ts +2 -0
  76. package/build/src/akuma/read-pool.js +15 -0
  77. package/build/src/akuma/request-rendezvous.js +10 -0
  78. package/build/src/akuma/request-serve.js +7 -0
  79. package/build/src/akuma/request-wire.d.ts +14 -26
  80. package/build/src/akuma/request-wire.js +4 -0
  81. package/build/src/akuma/requests.d.ts +0 -2
  82. package/build/src/akuma/requests.js +0 -17
  83. package/build/src/akuma/{fleet-observation.d.ts → selection-observation.d.ts} +37 -36
  84. package/build/src/akuma/selection-observation.js +65 -0
  85. package/build/src/akuma/{fleet-owner-port.d.ts → selection-owner-port.d.ts} +3 -3
  86. package/build/src/akuma/{fleet-owner-port.js → selection-owner-port.js} +11 -17
  87. package/build/src/akuma/{fleet-request.d.ts → selection-request.d.ts} +42 -82
  88. package/build/src/akuma/{fleet-request.js → selection-request.js} +92 -136
  89. package/build/src/akuma/turn-drive.js +73 -14
  90. package/build/src/akuma-body.js +91 -56
  91. package/build/src/body/amend.d.ts +5 -0
  92. package/build/src/body/amend.js +26 -50
  93. package/build/src/body/arc.d.ts +4 -2
  94. package/build/src/body/arc.js +19 -26
  95. package/build/src/body/criteria.d.ts +6 -0
  96. package/build/src/body/criteria.js +37 -0
  97. package/build/src/body/decode.js +5 -42
  98. package/build/src/body/region.d.ts +5 -0
  99. package/build/src/body/region.js +45 -2
  100. package/build/src/body/render.js +2 -4
  101. package/build/src/cli/activity.d.ts +26 -0
  102. package/build/src/cli/activity.js +75 -0
  103. package/build/src/cli/actor.d.ts +3 -1
  104. package/build/src/cli/actor.js +15 -2
  105. package/build/src/cli/commands/akuma-grammar.d.ts +75 -0
  106. package/build/src/cli/commands/akuma-grammar.js +414 -0
  107. package/build/src/cli/commands/akuma.d.ts +5 -69
  108. package/build/src/cli/commands/akuma.js +352 -319
  109. package/build/src/cli/commands/amend.d.ts +4 -5
  110. package/build/src/cli/commands/amend.js +1 -2
  111. package/build/src/cli/commands/bind.d.ts +4 -5
  112. package/build/src/cli/commands/bind.js +7 -10
  113. package/build/src/cli/commands/contract-grammar.d.ts +112 -0
  114. package/build/src/cli/commands/contract-grammar.js +282 -0
  115. package/build/src/cli/commands/contract-help.d.ts +17 -22
  116. package/build/src/cli/commands/contract-help.js +37 -24
  117. package/build/src/cli/commands/contract.d.ts +18 -97
  118. package/build/src/cli/commands/contract.js +621 -233
  119. package/build/src/cli/commands/install.d.ts +1 -1
  120. package/build/src/cli/commands/install.js +2 -2
  121. package/build/src/cli/commands/task-grammar.d.ts +19 -0
  122. package/build/src/cli/commands/task-grammar.js +438 -0
  123. package/build/src/cli/commands/task-query.js +23 -104
  124. package/build/src/cli/commands/task.d.ts +5 -20
  125. package/build/src/cli/commands/task.js +414 -364
  126. package/build/src/cli/coordinates.d.ts +10 -0
  127. package/build/src/cli/coordinates.js +20 -0
  128. package/build/src/cli/draft.d.ts +7 -1
  129. package/build/src/cli/main.js +10 -1
  130. package/build/src/cli/parse.d.ts +8 -9
  131. package/build/src/cli/parse.js +62 -62
  132. package/build/src/cli/render/akuma-activity.d.ts +54 -36
  133. package/build/src/cli/render/akuma-activity.js +262 -242
  134. package/build/src/cli/render/akuma-tool.d.ts +8 -4
  135. package/build/src/cli/render/akuma-tool.js +6 -5
  136. package/build/src/cli/render/akuma.d.ts +36 -16
  137. package/build/src/cli/render/akuma.js +65 -132
  138. package/build/src/cli/render/audit.d.ts +6 -2
  139. package/build/src/cli/render/audit.js +59 -28
  140. package/build/src/cli/render/catalog.d.ts +11 -2
  141. package/build/src/cli/render/catalog.js +75 -95
  142. package/build/src/cli/render/contract-history.d.ts +3 -1
  143. package/build/src/cli/render/contract-history.js +215 -22
  144. package/build/src/cli/render/contract-observation.d.ts +10 -5
  145. package/build/src/cli/render/contract-observation.js +29 -46
  146. package/build/src/cli/render/contract.d.ts +10 -3
  147. package/build/src/cli/render/contract.js +252 -103
  148. package/build/src/cli/render/effects.d.ts +26 -0
  149. package/build/src/cli/render/effects.js +41 -0
  150. package/build/src/cli/render/execution-progress.d.ts +18 -6
  151. package/build/src/cli/render/execution-progress.js +34 -31
  152. package/build/src/cli/render/kanshi-akuma.d.ts +1 -2
  153. package/build/src/cli/render/kanshi-akuma.js +5 -26
  154. package/build/src/cli/render/kanshi.js +107 -128
  155. package/build/src/cli/render/marks.d.ts +13 -0
  156. package/build/src/cli/render/marks.js +74 -0
  157. package/build/src/cli/render/nuke.js +18 -7
  158. package/build/src/cli/render/receipt.d.ts +10 -4
  159. package/build/src/cli/render/receipt.js +124 -44
  160. package/build/src/cli/render/reconcile.d.ts +5 -0
  161. package/build/src/cli/render/reconcile.js +152 -0
  162. package/build/src/cli/render/refusal.d.ts +21 -4
  163. package/build/src/cli/render/refusal.js +60 -33
  164. package/build/src/cli/render/region.js +3 -2
  165. package/build/src/cli/render/settings.js +2 -12
  166. package/build/src/cli/render/task.d.ts +37 -6
  167. package/build/src/cli/render/task.js +161 -157
  168. package/build/src/cli/render/terminal.d.ts +20 -1
  169. package/build/src/cli/render/terminal.js +92 -18
  170. package/build/src/cli/runtime.d.ts +32 -8
  171. package/build/src/cli/runtime.js +157 -165
  172. package/build/src/cli/selectors.d.ts +5 -2
  173. package/build/src/cli/selectors.js +11 -3
  174. package/build/src/cli/streams.d.ts +11 -0
  175. package/build/src/cli/streams.js +32 -0
  176. package/build/src/cli/usage.d.ts +2 -0
  177. package/build/src/cli/usage.js +12 -8
  178. package/build/src/contract-guidance.js +3 -7
  179. package/build/src/contract-worktree.d.ts +20 -28
  180. package/build/src/contract-worktree.js +18 -70
  181. package/build/src/coordination/durable-file.d.ts +2 -2
  182. package/build/src/coordination/durable-file.js +0 -27
  183. package/build/src/core/facts/codec.d.ts +1 -2
  184. package/build/src/core/facts/codec.js +6 -7
  185. package/build/src/core/facts/gate.d.ts +0 -1
  186. package/build/src/core/facts/gate.js +0 -82
  187. package/build/src/core/facts/types.d.ts +1 -2
  188. package/build/src/core/verbs/abandon.d.ts +2 -6
  189. package/build/src/core/verbs/abandon.js +0 -16
  190. package/build/src/core/verbs/amend.d.ts +0 -1
  191. package/build/src/core/verbs/amend.js +0 -20
  192. package/build/src/core/verbs/arc.d.ts +7 -8
  193. package/build/src/core/verbs/arc.js +2 -19
  194. package/build/src/core/verbs/attestation.d.ts +2 -6
  195. package/build/src/core/verbs/attestation.js +0 -16
  196. package/build/src/core/verbs/bind.d.ts +0 -1
  197. package/build/src/core/verbs/bind.js +0 -16
  198. package/build/src/core/verbs/deliver.d.ts +0 -1
  199. package/build/src/core/verbs/deliver.js +0 -16
  200. package/build/src/core/verbs/placement.d.ts +2 -1
  201. package/build/src/core/verbs/placement.js +10 -59
  202. package/build/src/git/admission.d.ts +6 -4
  203. package/build/src/git/admission.js +4 -0
  204. package/build/src/git/hooks.d.ts +55 -30
  205. package/build/src/git/hooks.js +30 -3
  206. package/build/src/git/identity.d.ts +6 -0
  207. package/build/src/git/identity.js +47 -0
  208. package/build/src/git/integration.d.ts +31 -13
  209. package/build/src/git/integration.js +32 -1
  210. package/build/src/git/nuke.d.ts +10 -1
  211. package/build/src/git/nuke.js +31 -11
  212. package/build/src/git/observe.js +2 -15
  213. package/build/src/git/private-state-seat.d.ts +6 -7
  214. package/build/src/git/private-state-seat.js +8 -6
  215. package/build/src/git/read-observation.d.ts +6 -1
  216. package/build/src/git/read-observation.js +81 -46
  217. package/build/src/git/reconcile.d.ts +117 -40
  218. package/build/src/git/reconcile.js +169 -40
  219. package/build/src/git/scratch.d.ts +7 -4
  220. package/build/src/git/scratch.js +28 -6
  221. package/build/src/git/target-placement.d.ts +53 -38
  222. package/build/src/git/target-placement.js +69 -54
  223. package/build/src/git/tender.d.ts +37 -28
  224. package/build/src/git/tender.js +39 -0
  225. package/build/src/git/terminal-reconcile.js +21 -23
  226. package/build/src/git/terminal-seal.d.ts +8 -6
  227. package/build/src/git/terminal-seal.js +10 -0
  228. package/build/src/git/workspace.d.ts +29 -15
  229. package/build/src/git/workspace.js +28 -2
  230. package/build/src/identity/normalize.js +19 -6
  231. package/build/src/index.d.ts +78 -7
  232. package/build/src/index.js +52 -4
  233. package/build/src/kanshi/read.d.ts +3 -3
  234. package/build/src/kanshi/read.js +21 -21
  235. package/build/src/kanshi/report.d.ts +9 -8
  236. package/build/src/kanshi/roster.d.ts +2 -0
  237. package/build/src/kanshi/roster.js +2 -0
  238. package/build/src/kanshi/select.js +7 -3
  239. package/build/src/library/address.d.ts +3 -7
  240. package/build/src/library/address.js +7 -7
  241. package/build/src/library/akuma-creation.d.ts +21 -32
  242. package/build/src/library/akuma-creation.js +148 -165
  243. package/build/src/library/akumas.d.ts +20 -22
  244. package/build/src/library/akumas.js +43 -20
  245. package/build/src/library/bind.d.ts +107 -13
  246. package/build/src/library/bind.js +29 -23
  247. package/build/src/library/continuation.d.ts +556 -28
  248. package/build/src/library/continuation.js +29 -54
  249. package/build/src/library/contract-composition.d.ts +40 -0
  250. package/build/src/library/contract-composition.js +105 -0
  251. package/build/src/library/contract-creation.d.ts +7 -0
  252. package/build/src/library/contract-creation.js +192 -0
  253. package/build/src/library/contract-execution.d.ts +29 -40
  254. package/build/src/library/contract-execution.js +503 -128
  255. package/build/src/library/contract-operations.d.ts +275 -134
  256. package/build/src/library/contract-operations.js +83 -92
  257. package/build/src/library/contract-outcomes.d.ts +71 -0
  258. package/build/src/library/contract-outcomes.js +32 -0
  259. package/build/src/library/contract-settings.d.ts +25 -0
  260. package/build/src/library/contract-settings.js +135 -0
  261. package/build/src/library/contract-types.d.ts +17 -38
  262. package/build/src/library/delivery.d.ts +530 -10
  263. package/build/src/library/delivery.js +20 -45
  264. package/build/src/library/input.d.ts +3 -1
  265. package/build/src/library/input.js +11 -16
  266. package/build/src/library/invocation.d.ts +87 -0
  267. package/build/src/library/invocation.js +290 -0
  268. package/build/src/library/keiyaku.d.ts +45 -22
  269. package/build/src/library/keiyaku.js +134 -8
  270. package/build/src/library/nuke.d.ts +2 -11
  271. package/build/src/library/nuke.js +70 -57
  272. package/build/src/library/outcome.d.ts +13196 -0
  273. package/build/src/library/outcome.js +487 -0
  274. package/build/src/library/reconcile.d.ts +96 -24
  275. package/build/src/library/reconcile.js +102 -42
  276. package/build/src/library/refusal.d.ts +470 -42
  277. package/build/src/library/refusal.js +55 -143
  278. package/build/src/library/region.d.ts +15 -7
  279. package/build/src/library/region.js +23 -3
  280. package/build/src/library/repo.d.ts +2 -12
  281. package/build/src/library/repo.js +1 -22
  282. package/build/src/library/selection.d.ts +121 -0
  283. package/build/src/library/{fleet.js → selection.js} +169 -152
  284. package/build/src/plugin/public.d.ts +2 -0
  285. package/build/src/protocol/abandon.d.ts +2 -2
  286. package/build/src/protocol/abandon.js +1 -0
  287. package/build/src/protocol/amend.js +1 -0
  288. package/build/src/protocol/arc.d.ts +6 -4
  289. package/build/src/protocol/attempt.d.ts +4 -2
  290. package/build/src/protocol/attempt.js +10 -0
  291. package/build/src/protocol/audit.d.ts +255 -52
  292. package/build/src/protocol/audit.js +63 -5
  293. package/build/src/protocol/bind.d.ts +18 -17
  294. package/build/src/protocol/bind.js +9 -28
  295. package/build/src/protocol/completion.d.ts +256 -22
  296. package/build/src/protocol/completion.js +100 -12
  297. package/build/src/protocol/deliver.d.ts +34 -23
  298. package/build/src/protocol/deliver.js +39 -25
  299. package/build/src/protocol/execution-observation.d.ts +36 -37
  300. package/build/src/protocol/execution-observation.js +7 -9
  301. package/build/src/protocol/intent.d.ts +101 -30
  302. package/build/src/protocol/intent.js +74 -1
  303. package/build/src/protocol/operations.d.ts +570 -64
  304. package/build/src/protocol/operations.js +189 -9
  305. package/build/src/protocol/outcome.d.ts +2 -1
  306. package/build/src/protocol/placement.d.ts +2 -2
  307. package/build/src/protocol/placement.js +3 -1
  308. package/build/src/protocol/progress.d.ts +108 -65
  309. package/build/src/protocol/progress.js +82 -132
  310. package/build/src/protocol/read/status.d.ts +4 -3
  311. package/build/src/protocol/read/status.js +6 -5
  312. package/build/src/protocol/reconcile.d.ts +3 -3
  313. package/build/src/protocol/reconcile.js +4 -0
  314. package/build/src/protocol/reintegrate.d.ts +2 -2
  315. package/build/src/protocol/review.d.ts +30 -12
  316. package/build/src/protocol/review.js +15 -24
  317. package/build/src/protocol/run.d.ts +34 -5
  318. package/build/src/protocol/run.js +24 -12
  319. package/build/src/runtime/proc/windows-launch.exe +0 -0
  320. package/build/src/settings.d.ts +0 -10
  321. package/build/src/settings.js +0 -76
  322. package/build/src/settlement/holder.d.ts +1 -1
  323. package/build/src/settlement/settle.d.ts +25 -16
  324. package/build/src/settlement/settle.js +80 -20
  325. package/build/src/task/board.d.ts +3 -1
  326. package/build/src/task/board.js +13 -17
  327. package/build/src/task/catalog.d.ts +0 -4
  328. package/build/src/task/catalog.js +0 -15
  329. package/build/src/task/compose-language.d.ts +19 -9
  330. package/build/src/task/compose-language.js +30 -20
  331. package/build/src/task/compose.d.ts +7 -37
  332. package/build/src/task/compose.js +20 -2
  333. package/build/src/task/created-observation.d.ts +0 -1
  334. package/build/src/task/created-observation.js +1 -4
  335. package/build/src/task/document.d.ts +12 -2
  336. package/build/src/task/document.js +4 -0
  337. package/build/src/task/identity.d.ts +4 -1
  338. package/build/src/task/identity.js +21 -17
  339. package/build/src/task/index.d.ts +36 -16
  340. package/build/src/task/index.js +103 -96
  341. package/build/src/task/lifecycle-operations.d.ts +1 -1
  342. package/build/src/task/mutation-result.d.ts +647 -586
  343. package/build/src/task/mutation-result.js +79 -46
  344. package/build/src/task/mutation.d.ts +298 -270
  345. package/build/src/task/mutation.js +93 -110
  346. package/build/src/task/operation-types.d.ts +6 -49
  347. package/build/src/task/operations.d.ts +2 -1
  348. package/build/src/task/operations.js +35 -12
  349. package/build/src/task/query.d.ts +9 -3
  350. package/build/src/task/query.js +42 -16
  351. package/build/src/task/store.d.ts +2 -1
  352. package/build/src/task/store.js +10 -14
  353. package/build/src/verification/declaration.d.ts +0 -1
  354. package/build/src/verification/declaration.js +1 -18
  355. package/build/src/verification/execution.d.ts +6 -2
  356. package/build/src/verification/observation.d.ts +1 -1
  357. package/package.json +2 -18
  358. package/build/src/akuma/akuma-product.d.ts +0 -58
  359. package/build/src/akuma/akuma-product.js +0 -276
  360. package/build/src/akuma/fleet-execution.js +0 -234
  361. package/build/src/akuma/fleet-observation.js +0 -97
  362. package/build/src/cli/accepted.d.ts +0 -24
  363. package/build/src/cli/accepted.js +0 -167
  364. package/build/src/cli/catalog.d.ts +0 -45
  365. package/build/src/cli/catalog.js +0 -1
  366. package/build/src/cli/commands/akuma-invoke.d.ts +0 -114
  367. package/build/src/cli/commands/akuma-invoke.js +0 -375
  368. package/build/src/cli/commands/contract-invoke.d.ts +0 -34
  369. package/build/src/cli/commands/contract-invoke.js +0 -259
  370. package/build/src/cli/commands/nuke.d.ts +0 -10
  371. package/build/src/cli/commands/nuke.js +0 -20
  372. package/build/src/cli/commands/status-set.d.ts +0 -4
  373. package/build/src/cli/commands/status-set.js +0 -52
  374. package/build/src/cli/commands/task-invoke.d.ts +0 -49
  375. package/build/src/cli/commands/task-invoke.js +0 -306
  376. package/build/src/cli/invoke.d.ts +0 -27
  377. package/build/src/cli/invoke.js +0 -521
  378. package/build/src/cli/render/board.d.ts +0 -3
  379. package/build/src/cli/render/board.js +0 -25
  380. package/build/src/cli/render/status-set.d.ts +0 -5
  381. package/build/src/cli/render/status-set.js +0 -19
  382. package/build/src/cli/render/text.d.ts +0 -3
  383. package/build/src/cli/render/text.js +0 -33
  384. package/build/src/cli/result.d.ts +0 -240
  385. package/build/src/cli/result.js +0 -1
  386. package/build/src/git/result-codec.d.ts +0 -29
  387. package/build/src/git/result-codec.js +0 -309
  388. package/build/src/kanshi/fleet.d.ts +0 -6
  389. package/build/src/kanshi/fleet.js +0 -27
  390. package/build/src/library/audit.d.ts +0 -29
  391. package/build/src/library/audit.js +0 -41
  392. package/build/src/library/composition.d.ts +0 -15
  393. package/build/src/library/composition.js +0 -28
  394. package/build/src/library/configuration.d.ts +0 -4
  395. package/build/src/library/configuration.js +0 -2
  396. package/build/src/library/contract-bind.d.ts +0 -31
  397. package/build/src/library/contract-bind.js +0 -140
  398. package/build/src/library/contract-forwarding.d.ts +0 -55
  399. package/build/src/library/contract-forwarding.js +0 -67
  400. package/build/src/library/contract-handle.d.ts +0 -50
  401. package/build/src/library/contract-handle.js +0 -385
  402. package/build/src/library/contract.d.ts +0 -46
  403. package/build/src/library/contract.js +0 -73
  404. package/build/src/library/execution-result.d.ts +0 -243
  405. package/build/src/library/execution-result.js +0 -101
  406. package/build/src/library/execution.d.ts +0 -8
  407. package/build/src/library/execution.js +0 -102
  408. package/build/src/library/fleet.d.ts +0 -83
  409. package/build/src/library/mutation.d.ts +0 -501
  410. package/build/src/library/mutation.js +0 -248
  411. package/build/src/library/result-codec.d.ts +0 -2
  412. package/build/src/library/result-codec.js +0 -12
  413. package/build/src/protocol/result-codec.d.ts +0 -23
  414. package/build/src/protocol/result-codec.js +0 -488
  415. package/build/src/settlement/result-codec.d.ts +0 -2
  416. package/build/src/settlement/result-codec.js +0 -56
  417. package/build/src/task/public.d.ts +0 -2
  418. package/build/src/task/public.js +0 -1
@@ -1,18 +1,123 @@
1
- import type { TaskCompositionResult } from "./compose.js";
2
- import type { TaskBatchResult, TaskMutationResult, TaskUpdateResult } from "./operations.js";
3
1
  import { z } from "zod";
4
- export type TaskMutationExecutionResult = TaskMutationResult | TaskUpdateResult | TaskBatchResult | TaskCompositionResult;
2
+ export { taskIdSchema as taskMutationIdSchema } from "./identity.js";
5
3
  type WithoutUndefined<Value> = {
6
4
  [Key in keyof Value as undefined extends Value[Key] ? never : Key]: Value[Key];
7
5
  } & {
8
6
  [Key in keyof Value as undefined extends Value[Key] ? Key : never]?: Exclude<Value[Key], undefined>;
9
7
  };
10
- export declare const taskMutationIdSchema: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
8
+ declare const taskRetrySchema: z.ZodObject<{
9
+ kind: z.ZodLiteral<"retry">;
10
+ reason: z.ZodEnum<{
11
+ "concurrent-modification": "concurrent-modification";
12
+ busy: "busy";
13
+ }>;
14
+ }, z.core.$strict>;
15
+ declare const taskCleanupFailureSchema: z.ZodObject<{
16
+ kind: z.ZodLiteral<"lock-release-failed">;
17
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
18
+ }, z.core.$strict>;
19
+ declare const taskViewSchema: z.ZodPipe<z.ZodObject<{
20
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
21
+ namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
22
+ title: z.ZodString;
23
+ state: z.ZodEnum<{
24
+ open: "open";
25
+ in_progress: "in_progress";
26
+ on_hold: "on_hold";
27
+ done: "done";
28
+ drop: "drop";
29
+ }>;
30
+ priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
31
+ needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
32
+ parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
33
+ supersedes: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
34
+ relates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
35
+ note: z.ZodString;
36
+ createdBy: z.ZodOptional<z.ZodString>;
37
+ createdAt: z.ZodString;
38
+ updatedAt: z.ZodString;
39
+ body: z.ZodString;
40
+ }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
41
+ createdBy: string | undefined;
42
+ id: `task/${string}`;
43
+ namespace: readonly string[];
44
+ title: string;
45
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
46
+ priority: 0 | 1 | 2 | 3;
47
+ needs: readonly `task/${string}`[];
48
+ parent: `task/${string}` | null;
49
+ supersedes: readonly `task/${string}`[];
50
+ relates: readonly `task/${string}`[];
51
+ note: string;
52
+ createdAt: string;
53
+ updatedAt: string;
54
+ body: string;
55
+ }>, {
56
+ id: `task/${string}`;
57
+ namespace: readonly string[];
58
+ title: string;
59
+ state: "open" | "in_progress" | "on_hold" | "done" | "drop";
60
+ priority: 0 | 1 | 2 | 3;
61
+ needs: readonly `task/${string}`[];
62
+ parent: `task/${string}` | null;
63
+ supersedes: readonly `task/${string}`[];
64
+ relates: readonly `task/${string}`[];
65
+ note: string;
66
+ createdAt: string;
67
+ updatedAt: string;
68
+ body: string;
69
+ createdBy?: string | undefined;
70
+ }>>;
71
+ declare const compositionDiagnosticSchema: z.ZodObject<{
72
+ line: z.ZodNumber;
73
+ reason: z.ZodString;
74
+ token: z.ZodString;
75
+ }, z.core.$strict>;
76
+ export declare const taskRefusalSchema: z.ZodUnion<readonly [z.ZodObject<{
77
+ kind: z.ZodLiteral<"task-missing">;
78
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
79
+ }, z.core.$strict>, z.ZodObject<{
80
+ kind: z.ZodLiteral<"invalid-lifecycle-transition">;
81
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
82
+ state: z.ZodEnum<{
83
+ open: "open";
84
+ in_progress: "in_progress";
85
+ on_hold: "on_hold";
86
+ done: "done";
87
+ drop: "drop";
88
+ }>;
89
+ verb: z.ZodEnum<{
90
+ done: "done";
91
+ drop: "drop";
92
+ start: "start";
93
+ stop: "stop";
94
+ hold: "hold";
95
+ resume: "resume";
96
+ }>;
97
+ }, z.core.$strict>, z.ZodObject<{
98
+ kind: z.ZodLiteral<"invalid-graph">;
99
+ diagnostic: z.ZodString;
100
+ }, z.core.$strict>, z.ZodObject<{
101
+ kind: z.ZodLiteral<"invalid-namespace-context">;
102
+ path: z.ZodString;
103
+ }, z.core.$strict>, z.ZodObject<{
104
+ kind: z.ZodLiteral<"relation-owned-by-other">;
105
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
106
+ related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
107
+ declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
108
+ }, z.core.$strict>, z.ZodObject<{
109
+ kind: z.ZodLiteral<"invalid-composition">;
110
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
111
+ line: z.ZodNumber;
112
+ reason: z.ZodString;
113
+ token: z.ZodString;
114
+ }, z.core.$strict>>>;
115
+ }, z.core.$strict>]>;
11
116
  export declare const taskMutationResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
12
117
  kind: z.ZodLiteral<"accepted">;
13
118
  value: z.ZodPipe<z.ZodObject<{
14
119
  id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
15
- namespace: z.ZodArray<z.ZodString>;
120
+ namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
16
121
  title: z.ZodString;
17
122
  state: z.ZodEnum<{
18
123
  open: "open";
@@ -22,54 +127,40 @@ export declare const taskMutationResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.
22
127
  drop: "drop";
23
128
  }>;
24
129
  priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
25
- needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
130
+ needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
26
131
  parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
27
- supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
28
- relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
132
+ supersedes: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
133
+ relates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
29
134
  note: z.ZodString;
30
135
  createdBy: z.ZodOptional<z.ZodString>;
31
136
  createdAt: z.ZodString;
32
137
  updatedAt: z.ZodString;
33
138
  body: z.ZodString;
34
- }, z.core.$strict>, z.ZodTransform<{
139
+ }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
140
+ createdBy: string | undefined;
35
141
  id: `task/${string}`;
36
- namespace: string[];
142
+ namespace: readonly string[];
37
143
  title: string;
38
144
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
39
145
  priority: 0 | 1 | 2 | 3;
40
- needs: `task/${string}`[];
146
+ needs: readonly `task/${string}`[];
41
147
  parent: `task/${string}` | null;
42
- supersedes: `task/${string}`[];
43
- relates: `task/${string}`[];
148
+ supersedes: readonly `task/${string}`[];
149
+ relates: readonly `task/${string}`[];
44
150
  note: string;
45
151
  createdAt: string;
46
152
  updatedAt: string;
47
153
  body: string;
48
- } | {
49
- createdBy: string;
154
+ }>, {
50
155
  id: `task/${string}`;
51
- namespace: string[];
156
+ namespace: readonly string[];
52
157
  title: string;
53
158
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
54
159
  priority: 0 | 1 | 2 | 3;
55
- needs: `task/${string}`[];
160
+ needs: readonly `task/${string}`[];
56
161
  parent: `task/${string}` | null;
57
- supersedes: `task/${string}`[];
58
- relates: `task/${string}`[];
59
- note: string;
60
- createdAt: string;
61
- updatedAt: string;
62
- body: string;
63
- }, {
64
- id: `task/${string}`;
65
- namespace: string[];
66
- title: string;
67
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
68
- priority: 0 | 1 | 2 | 3;
69
- needs: `task/${string}`[];
70
- parent: `task/${string}` | null;
71
- supersedes: `task/${string}`[];
72
- relates: `task/${string}`[];
162
+ supersedes: readonly `task/${string}`[];
163
+ relates: readonly `task/${string}`[];
73
164
  note: string;
74
165
  createdAt: string;
75
166
  updatedAt: string;
@@ -78,79 +169,51 @@ export declare const taskMutationResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.
78
169
  }>>;
79
170
  cleanup: z.ZodOptional<z.ZodObject<{
80
171
  kind: z.ZodLiteral<"lock-release-failed">;
81
- diagnostics: z.ZodArray<z.ZodString>;
172
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
82
173
  }, z.core.$strict>>;
83
174
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
84
175
  kind: "accepted";
85
- value: {
176
+ value: WithoutUndefined<{
177
+ createdBy: string | undefined;
86
178
  id: `task/${string}`;
87
- namespace: string[];
179
+ namespace: readonly string[];
88
180
  title: string;
89
181
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
90
182
  priority: 0 | 1 | 2 | 3;
91
- needs: `task/${string}`[];
183
+ needs: readonly `task/${string}`[];
92
184
  parent: `task/${string}` | null;
93
- supersedes: `task/${string}`[];
94
- relates: `task/${string}`[];
185
+ supersedes: readonly `task/${string}`[];
186
+ relates: readonly `task/${string}`[];
95
187
  note: string;
96
188
  createdAt: string;
97
189
  updatedAt: string;
98
190
  body: string;
99
- } | {
100
- createdBy: string;
101
- id: `task/${string}`;
102
- namespace: string[];
103
- title: string;
104
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
105
- priority: 0 | 1 | 2 | 3;
106
- needs: `task/${string}`[];
107
- parent: `task/${string}` | null;
108
- supersedes: `task/${string}`[];
109
- relates: `task/${string}`[];
110
- note: string;
111
- createdAt: string;
112
- updatedAt: string;
113
- body: string;
114
- };
191
+ }>;
115
192
  cleanup?: {
116
193
  kind: "lock-release-failed";
117
- diagnostics: string[];
194
+ diagnostics: readonly string[];
118
195
  } | undefined;
119
196
  }>, {
120
197
  kind: "accepted";
121
- value: {
198
+ value: WithoutUndefined<{
199
+ createdBy: string | undefined;
122
200
  id: `task/${string}`;
123
- namespace: string[];
201
+ namespace: readonly string[];
124
202
  title: string;
125
203
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
126
204
  priority: 0 | 1 | 2 | 3;
127
- needs: `task/${string}`[];
205
+ needs: readonly `task/${string}`[];
128
206
  parent: `task/${string}` | null;
129
- supersedes: `task/${string}`[];
130
- relates: `task/${string}`[];
207
+ supersedes: readonly `task/${string}`[];
208
+ relates: readonly `task/${string}`[];
131
209
  note: string;
132
210
  createdAt: string;
133
211
  updatedAt: string;
134
212
  body: string;
135
- } | {
136
- createdBy: string;
137
- id: `task/${string}`;
138
- namespace: string[];
139
- title: string;
140
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
141
- priority: 0 | 1 | 2 | 3;
142
- needs: `task/${string}`[];
143
- parent: `task/${string}` | null;
144
- supersedes: `task/${string}`[];
145
- relates: `task/${string}`[];
146
- note: string;
147
- createdAt: string;
148
- updatedAt: string;
149
- body: string;
150
- };
213
+ }>;
151
214
  cleanup?: {
152
215
  kind: "lock-release-failed";
153
- diagnostics: string[];
216
+ diagnostics: readonly string[];
154
217
  } | undefined;
155
218
  }>>, z.ZodObject<{
156
219
  kind: z.ZodLiteral<"refused">;
@@ -188,11 +251,11 @@ export declare const taskMutationResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.
188
251
  declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
189
252
  }, z.core.$strict>, z.ZodObject<{
190
253
  kind: z.ZodLiteral<"invalid-composition">;
191
- diagnostics: z.ZodArray<z.ZodObject<{
254
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
192
255
  line: z.ZodNumber;
193
256
  reason: z.ZodString;
194
257
  token: z.ZodString;
195
- }, z.core.$strict>>;
258
+ }, z.core.$strict>>>;
196
259
  }, z.core.$strict>]>;
197
260
  }, z.core.$strict>, z.ZodObject<{
198
261
  kind: z.ZodLiteral<"retry">;
@@ -206,7 +269,7 @@ export declare const taskUpdateResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
206
269
  value: z.ZodObject<{
207
270
  task: z.ZodPipe<z.ZodObject<{
208
271
  id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
209
- namespace: z.ZodArray<z.ZodString>;
272
+ namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
210
273
  title: z.ZodString;
211
274
  state: z.ZodEnum<{
212
275
  open: "open";
@@ -216,54 +279,40 @@ export declare const taskUpdateResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
216
279
  drop: "drop";
217
280
  }>;
218
281
  priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
219
- needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
282
+ needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
220
283
  parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
221
- supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
222
- relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
284
+ supersedes: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
285
+ relates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
223
286
  note: z.ZodString;
224
287
  createdBy: z.ZodOptional<z.ZodString>;
225
288
  createdAt: z.ZodString;
226
289
  updatedAt: z.ZodString;
227
290
  body: z.ZodString;
228
- }, z.core.$strict>, z.ZodTransform<{
229
- id: `task/${string}`;
230
- namespace: string[];
231
- title: string;
232
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
233
- priority: 0 | 1 | 2 | 3;
234
- needs: `task/${string}`[];
235
- parent: `task/${string}` | null;
236
- supersedes: `task/${string}`[];
237
- relates: `task/${string}`[];
238
- note: string;
239
- createdAt: string;
240
- updatedAt: string;
241
- body: string;
242
- } | {
243
- createdBy: string;
291
+ }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
292
+ createdBy: string | undefined;
244
293
  id: `task/${string}`;
245
- namespace: string[];
294
+ namespace: readonly string[];
246
295
  title: string;
247
296
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
248
297
  priority: 0 | 1 | 2 | 3;
249
- needs: `task/${string}`[];
298
+ needs: readonly `task/${string}`[];
250
299
  parent: `task/${string}` | null;
251
- supersedes: `task/${string}`[];
252
- relates: `task/${string}`[];
300
+ supersedes: readonly `task/${string}`[];
301
+ relates: readonly `task/${string}`[];
253
302
  note: string;
254
303
  createdAt: string;
255
304
  updatedAt: string;
256
305
  body: string;
257
- }, {
306
+ }>, {
258
307
  id: `task/${string}`;
259
- namespace: string[];
308
+ namespace: readonly string[];
260
309
  title: string;
261
310
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
262
311
  priority: 0 | 1 | 2 | 3;
263
- needs: `task/${string}`[];
312
+ needs: readonly `task/${string}`[];
264
313
  parent: `task/${string}` | null;
265
- supersedes: `task/${string}`[];
266
- relates: `task/${string}`[];
314
+ supersedes: readonly `task/${string}`[];
315
+ relates: readonly `task/${string}`[];
267
316
  note: string;
268
317
  createdAt: string;
269
318
  updatedAt: string;
@@ -271,88 +320,78 @@ export declare const taskUpdateResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
271
320
  createdBy?: string | undefined;
272
321
  }>>;
273
322
  documentDiff: z.ZodString;
323
+ changedFields: z.ZodReadonly<z.ZodArray<z.ZodObject<{
324
+ field: z.ZodString;
325
+ action: z.ZodEnum<{
326
+ replaced: "replaced";
327
+ changed: "changed";
328
+ added: "added";
329
+ cleared: "cleared";
330
+ appended: "appended";
331
+ }>;
332
+ }, z.core.$strict>>>;
274
333
  }, z.core.$strict>;
275
334
  cleanup: z.ZodOptional<z.ZodObject<{
276
335
  kind: z.ZodLiteral<"lock-release-failed">;
277
- diagnostics: z.ZodArray<z.ZodString>;
336
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
278
337
  }, z.core.$strict>>;
279
338
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
280
339
  kind: "accepted";
281
340
  value: {
282
- task: {
283
- id: `task/${string}`;
284
- namespace: string[];
285
- title: string;
286
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
287
- priority: 0 | 1 | 2 | 3;
288
- needs: `task/${string}`[];
289
- parent: `task/${string}` | null;
290
- supersedes: `task/${string}`[];
291
- relates: `task/${string}`[];
292
- note: string;
293
- createdAt: string;
294
- updatedAt: string;
295
- body: string;
296
- } | {
297
- createdBy: string;
341
+ task: WithoutUndefined<{
342
+ createdBy: string | undefined;
298
343
  id: `task/${string}`;
299
- namespace: string[];
344
+ namespace: readonly string[];
300
345
  title: string;
301
346
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
302
347
  priority: 0 | 1 | 2 | 3;
303
- needs: `task/${string}`[];
348
+ needs: readonly `task/${string}`[];
304
349
  parent: `task/${string}` | null;
305
- supersedes: `task/${string}`[];
306
- relates: `task/${string}`[];
350
+ supersedes: readonly `task/${string}`[];
351
+ relates: readonly `task/${string}`[];
307
352
  note: string;
308
353
  createdAt: string;
309
354
  updatedAt: string;
310
355
  body: string;
311
- };
356
+ }>;
312
357
  documentDiff: string;
358
+ changedFields: readonly {
359
+ field: string;
360
+ action: "replaced" | "changed" | "added" | "cleared" | "appended";
361
+ }[];
313
362
  };
314
363
  cleanup?: {
315
364
  kind: "lock-release-failed";
316
- diagnostics: string[];
365
+ diagnostics: readonly string[];
317
366
  } | undefined;
318
367
  }>, {
319
368
  kind: "accepted";
320
369
  value: {
321
- task: {
370
+ task: WithoutUndefined<{
371
+ createdBy: string | undefined;
322
372
  id: `task/${string}`;
323
- namespace: string[];
373
+ namespace: readonly string[];
324
374
  title: string;
325
375
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
326
376
  priority: 0 | 1 | 2 | 3;
327
- needs: `task/${string}`[];
377
+ needs: readonly `task/${string}`[];
328
378
  parent: `task/${string}` | null;
329
- supersedes: `task/${string}`[];
330
- relates: `task/${string}`[];
379
+ supersedes: readonly `task/${string}`[];
380
+ relates: readonly `task/${string}`[];
331
381
  note: string;
332
382
  createdAt: string;
333
383
  updatedAt: string;
334
384
  body: string;
335
- } | {
336
- createdBy: string;
337
- id: `task/${string}`;
338
- namespace: string[];
339
- title: string;
340
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
341
- priority: 0 | 1 | 2 | 3;
342
- needs: `task/${string}`[];
343
- parent: `task/${string}` | null;
344
- supersedes: `task/${string}`[];
345
- relates: `task/${string}`[];
346
- note: string;
347
- createdAt: string;
348
- updatedAt: string;
349
- body: string;
350
- };
385
+ }>;
351
386
  documentDiff: string;
387
+ changedFields: readonly {
388
+ field: string;
389
+ action: "replaced" | "changed" | "added" | "cleared" | "appended";
390
+ }[];
352
391
  };
353
392
  cleanup?: {
354
393
  kind: "lock-release-failed";
355
- diagnostics: string[];
394
+ diagnostics: readonly string[];
356
395
  } | undefined;
357
396
  }>>, z.ZodObject<{
358
397
  kind: z.ZodLiteral<"refused">;
@@ -390,11 +429,11 @@ export declare const taskUpdateResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
390
429
  declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
391
430
  }, z.core.$strict>, z.ZodObject<{
392
431
  kind: z.ZodLiteral<"invalid-composition">;
393
- diagnostics: z.ZodArray<z.ZodObject<{
432
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
394
433
  line: z.ZodNumber;
395
434
  reason: z.ZodString;
396
435
  token: z.ZodString;
397
- }, z.core.$strict>>;
436
+ }, z.core.$strict>>>;
398
437
  }, z.core.$strict>]>;
399
438
  }, z.core.$strict>, z.ZodObject<{
400
439
  kind: z.ZodLiteral<"retry">;
@@ -404,13 +443,13 @@ export declare const taskUpdateResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.Zo
404
443
  }>;
405
444
  }, z.core.$strict>]>;
406
445
  export declare const taskBatchResultSchema: z.ZodObject<{
407
- items: z.ZodArray<z.ZodObject<{
446
+ items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
408
447
  id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
409
448
  outcome: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
410
449
  kind: z.ZodLiteral<"accepted">;
411
450
  value: z.ZodPipe<z.ZodObject<{
412
451
  id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
413
- namespace: z.ZodArray<z.ZodString>;
452
+ namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
414
453
  title: z.ZodString;
415
454
  state: z.ZodEnum<{
416
455
  open: "open";
@@ -420,54 +459,40 @@ export declare const taskBatchResultSchema: z.ZodObject<{
420
459
  drop: "drop";
421
460
  }>;
422
461
  priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
423
- needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
462
+ needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
424
463
  parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
425
- supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
426
- relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
464
+ supersedes: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
465
+ relates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
427
466
  note: z.ZodString;
428
467
  createdBy: z.ZodOptional<z.ZodString>;
429
468
  createdAt: z.ZodString;
430
469
  updatedAt: z.ZodString;
431
470
  body: z.ZodString;
432
- }, z.core.$strict>, z.ZodTransform<{
471
+ }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
472
+ createdBy: string | undefined;
433
473
  id: `task/${string}`;
434
- namespace: string[];
474
+ namespace: readonly string[];
435
475
  title: string;
436
476
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
437
477
  priority: 0 | 1 | 2 | 3;
438
- needs: `task/${string}`[];
478
+ needs: readonly `task/${string}`[];
439
479
  parent: `task/${string}` | null;
440
- supersedes: `task/${string}`[];
441
- relates: `task/${string}`[];
480
+ supersedes: readonly `task/${string}`[];
481
+ relates: readonly `task/${string}`[];
442
482
  note: string;
443
483
  createdAt: string;
444
484
  updatedAt: string;
445
485
  body: string;
446
- } | {
447
- createdBy: string;
486
+ }>, {
448
487
  id: `task/${string}`;
449
- namespace: string[];
488
+ namespace: readonly string[];
450
489
  title: string;
451
490
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
452
491
  priority: 0 | 1 | 2 | 3;
453
- needs: `task/${string}`[];
492
+ needs: readonly `task/${string}`[];
454
493
  parent: `task/${string}` | null;
455
- supersedes: `task/${string}`[];
456
- relates: `task/${string}`[];
457
- note: string;
458
- createdAt: string;
459
- updatedAt: string;
460
- body: string;
461
- }, {
462
- id: `task/${string}`;
463
- namespace: string[];
464
- title: string;
465
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
466
- priority: 0 | 1 | 2 | 3;
467
- needs: `task/${string}`[];
468
- parent: `task/${string}` | null;
469
- supersedes: `task/${string}`[];
470
- relates: `task/${string}`[];
494
+ supersedes: readonly `task/${string}`[];
495
+ relates: readonly `task/${string}`[];
471
496
  note: string;
472
497
  createdAt: string;
473
498
  updatedAt: string;
@@ -476,79 +501,51 @@ export declare const taskBatchResultSchema: z.ZodObject<{
476
501
  }>>;
477
502
  cleanup: z.ZodOptional<z.ZodObject<{
478
503
  kind: z.ZodLiteral<"lock-release-failed">;
479
- diagnostics: z.ZodArray<z.ZodString>;
504
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
480
505
  }, z.core.$strict>>;
481
506
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
482
507
  kind: "accepted";
483
- value: {
508
+ value: WithoutUndefined<{
509
+ createdBy: string | undefined;
484
510
  id: `task/${string}`;
485
- namespace: string[];
511
+ namespace: readonly string[];
486
512
  title: string;
487
513
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
488
514
  priority: 0 | 1 | 2 | 3;
489
- needs: `task/${string}`[];
515
+ needs: readonly `task/${string}`[];
490
516
  parent: `task/${string}` | null;
491
- supersedes: `task/${string}`[];
492
- relates: `task/${string}`[];
517
+ supersedes: readonly `task/${string}`[];
518
+ relates: readonly `task/${string}`[];
493
519
  note: string;
494
520
  createdAt: string;
495
521
  updatedAt: string;
496
522
  body: string;
497
- } | {
498
- createdBy: string;
499
- id: `task/${string}`;
500
- namespace: string[];
501
- title: string;
502
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
503
- priority: 0 | 1 | 2 | 3;
504
- needs: `task/${string}`[];
505
- parent: `task/${string}` | null;
506
- supersedes: `task/${string}`[];
507
- relates: `task/${string}`[];
508
- note: string;
509
- createdAt: string;
510
- updatedAt: string;
511
- body: string;
512
- };
523
+ }>;
513
524
  cleanup?: {
514
525
  kind: "lock-release-failed";
515
- diagnostics: string[];
526
+ diagnostics: readonly string[];
516
527
  } | undefined;
517
528
  }>, {
518
529
  kind: "accepted";
519
- value: {
520
- id: `task/${string}`;
521
- namespace: string[];
522
- title: string;
523
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
524
- priority: 0 | 1 | 2 | 3;
525
- needs: `task/${string}`[];
526
- parent: `task/${string}` | null;
527
- supersedes: `task/${string}`[];
528
- relates: `task/${string}`[];
529
- note: string;
530
- createdAt: string;
531
- updatedAt: string;
532
- body: string;
533
- } | {
534
- createdBy: string;
530
+ value: WithoutUndefined<{
531
+ createdBy: string | undefined;
535
532
  id: `task/${string}`;
536
- namespace: string[];
533
+ namespace: readonly string[];
537
534
  title: string;
538
535
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
539
536
  priority: 0 | 1 | 2 | 3;
540
- needs: `task/${string}`[];
537
+ needs: readonly `task/${string}`[];
541
538
  parent: `task/${string}` | null;
542
- supersedes: `task/${string}`[];
543
- relates: `task/${string}`[];
539
+ supersedes: readonly `task/${string}`[];
540
+ relates: readonly `task/${string}`[];
544
541
  note: string;
545
542
  createdAt: string;
546
543
  updatedAt: string;
547
544
  body: string;
548
- };
545
+ }>;
549
546
  cleanup?: {
550
547
  kind: "lock-release-failed";
551
- diagnostics: string[];
548
+ diagnostics: readonly string[];
552
549
  } | undefined;
553
550
  }>>, z.ZodObject<{
554
551
  kind: z.ZodLiteral<"refused">;
@@ -586,11 +583,11 @@ export declare const taskBatchResultSchema: z.ZodObject<{
586
583
  declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
587
584
  }, z.core.$strict>, z.ZodObject<{
588
585
  kind: z.ZodLiteral<"invalid-composition">;
589
- diagnostics: z.ZodArray<z.ZodObject<{
586
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
590
587
  line: z.ZodNumber;
591
588
  reason: z.ZodString;
592
589
  token: z.ZodString;
593
- }, z.core.$strict>>;
590
+ }, z.core.$strict>>>;
594
591
  }, z.core.$strict>]>;
595
592
  }, z.core.$strict>, z.ZodObject<{
596
593
  kind: z.ZodLiteral<"retry">;
@@ -599,94 +596,143 @@ export declare const taskBatchResultSchema: z.ZodObject<{
599
596
  busy: "busy";
600
597
  }>;
601
598
  }, z.core.$strict>]>;
602
- }, z.core.$strict>>;
599
+ }, z.core.$strict>>>;
603
600
  }, z.core.$strict>;
604
601
  export declare const taskCompositionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
605
- bodies: z.ZodArray<z.ZodObject<{
602
+ kind: z.ZodLiteral<"planned">;
603
+ aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
604
+ alias: z.ZodString;
605
+ position: z.ZodNumber;
606
+ }, z.core.$strict>>>;
607
+ admissionOrder: z.ZodReadonly<z.ZodArray<z.ZodObject<{
608
+ position: z.ZodNumber;
609
+ alias: z.ZodOptional<z.ZodString>;
610
+ taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
611
+ }, z.core.$strict>>>;
612
+ admissions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
613
+ kind: z.ZodLiteral<"new">;
614
+ position: z.ZodNumber;
615
+ alias: z.ZodOptional<z.ZodString>;
616
+ title: z.ZodString;
617
+ }, z.core.$strict>, z.ZodObject<{
618
+ kind: z.ZodLiteral<"existing">;
619
+ position: z.ZodNumber;
606
620
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
621
+ title: z.ZodString;
622
+ }, z.core.$strict>], "kind">>>;
623
+ bodies: z.ZodReadonly<z.ZodArray<z.ZodObject<{
624
+ position: z.ZodNumber;
625
+ title: z.ZodString;
607
626
  bytes: z.ZodNumber;
608
627
  firstLine: z.ZodString;
609
628
  lastLine: z.ZodString;
610
- }, z.core.$strict>>;
611
- aliases: z.ZodArray<z.ZodObject<{
612
- alias: z.ZodString;
613
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
614
- }, z.core.$strict>>;
615
- admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
616
- kind: z.ZodLiteral<"planned">;
629
+ }, z.core.$strict>>>;
617
630
  }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
618
- documentChanges: z.ZodArray<z.ZodObject<{
631
+ documentChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
619
632
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
620
633
  kind: z.ZodEnum<{
621
634
  created: "created";
622
635
  updated: "updated";
623
636
  }>;
624
637
  documentDiff: z.ZodString;
625
- }, z.core.$strict>>;
638
+ }, z.core.$strict>>>;
626
639
  cleanup: z.ZodOptional<z.ZodObject<{
627
640
  kind: z.ZodLiteral<"lock-release-failed">;
628
- diagnostics: z.ZodArray<z.ZodString>;
641
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
629
642
  }, z.core.$strict>>;
630
- aliases: z.ZodArray<z.ZodObject<{
643
+ aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
631
644
  alias: z.ZodString;
632
645
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
633
- }, z.core.$strict>>;
634
- admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
646
+ }, z.core.$strict>>>;
647
+ admissionOrder: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
648
+ admissions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
649
+ kind: z.ZodLiteral<"new">;
650
+ position: z.ZodNumber;
651
+ alias: z.ZodOptional<z.ZodString>;
652
+ title: z.ZodString;
653
+ }, z.core.$strict>, z.ZodObject<{
654
+ kind: z.ZodLiteral<"existing">;
655
+ position: z.ZodNumber;
656
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
657
+ title: z.ZodString;
658
+ }, z.core.$strict>], "kind">>>;
635
659
  kind: z.ZodLiteral<"accepted">;
636
660
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
637
- documentChanges: {
661
+ documentChanges: readonly {
638
662
  taskId: `task/${string}`;
639
663
  kind: "created" | "updated";
640
664
  documentDiff: string;
641
665
  }[];
642
- aliases: {
666
+ aliases: readonly {
643
667
  alias: string;
644
668
  taskId: `task/${string}`;
645
669
  }[];
646
- admissionOrder: `task/${string}`[];
670
+ admissionOrder: readonly `task/${string}`[];
671
+ admissions: readonly ({
672
+ kind: "new";
673
+ position: number;
674
+ title: string;
675
+ alias?: string | undefined;
676
+ } | {
677
+ kind: "existing";
678
+ position: number;
679
+ taskId: `task/${string}`;
680
+ title: string;
681
+ })[];
647
682
  kind: "accepted";
648
683
  cleanup?: {
649
684
  kind: "lock-release-failed";
650
- diagnostics: string[];
685
+ diagnostics: readonly string[];
651
686
  } | undefined;
652
687
  }>, {
653
- documentChanges: {
688
+ documentChanges: readonly {
654
689
  taskId: `task/${string}`;
655
690
  kind: "created" | "updated";
656
691
  documentDiff: string;
657
692
  }[];
658
- aliases: {
693
+ aliases: readonly {
659
694
  alias: string;
660
695
  taskId: `task/${string}`;
661
696
  }[];
662
- admissionOrder: `task/${string}`[];
697
+ admissionOrder: readonly `task/${string}`[];
698
+ admissions: readonly ({
699
+ kind: "new";
700
+ position: number;
701
+ title: string;
702
+ alias?: string | undefined;
703
+ } | {
704
+ kind: "existing";
705
+ position: number;
706
+ taskId: `task/${string}`;
707
+ title: string;
708
+ })[];
663
709
  kind: "accepted";
664
710
  cleanup?: {
665
711
  kind: "lock-release-failed";
666
- diagnostics: string[];
712
+ diagnostics: readonly string[];
667
713
  } | undefined;
668
714
  }>>, z.ZodObject<{
669
715
  kind: z.ZodLiteral<"refused">;
670
716
  refusal: z.ZodObject<{
671
717
  kind: z.ZodLiteral<"invalid-composition">;
672
- diagnostics: z.ZodArray<z.ZodObject<{
718
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
673
719
  line: z.ZodNumber;
674
720
  reason: z.ZodString;
675
721
  token: z.ZodString;
676
- }, z.core.$strict>>;
722
+ }, z.core.$strict>>>;
677
723
  }, z.core.$strict>;
678
724
  }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
679
- documentChanges: z.ZodArray<z.ZodObject<{
725
+ documentChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
680
726
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
681
727
  kind: z.ZodEnum<{
682
728
  created: "created";
683
729
  updated: "updated";
684
730
  }>;
685
731
  documentDiff: z.ZodString;
686
- }, z.core.$strict>>;
732
+ }, z.core.$strict>>>;
687
733
  cleanup: z.ZodOptional<z.ZodObject<{
688
734
  kind: z.ZodLiteral<"lock-release-failed">;
689
- diagnostics: z.ZodArray<z.ZodString>;
735
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
690
736
  }, z.core.$strict>>;
691
737
  stopped: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
692
738
  kind: z.ZodLiteral<"task-missing">;
@@ -722,11 +768,11 @@ export declare const taskCompositionResultSchema: z.ZodUnion<readonly [z.ZodObje
722
768
  declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
723
769
  }, z.core.$strict>, z.ZodObject<{
724
770
  kind: z.ZodLiteral<"invalid-composition">;
725
- diagnostics: z.ZodArray<z.ZodObject<{
771
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
726
772
  line: z.ZodNumber;
727
773
  reason: z.ZodString;
728
774
  token: z.ZodString;
729
- }, z.core.$strict>>;
775
+ }, z.core.$strict>>>;
730
776
  }, z.core.$strict>]>, z.ZodObject<{
731
777
  kind: z.ZodLiteral<"retry">;
732
778
  reason: z.ZodEnum<{
@@ -735,19 +781,40 @@ export declare const taskCompositionResultSchema: z.ZodUnion<readonly [z.ZodObje
735
781
  }>;
736
782
  }, z.core.$strict>]>;
737
783
  draft: z.ZodString;
738
- aliases: z.ZodArray<z.ZodObject<{
784
+ aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
739
785
  alias: z.ZodString;
740
786
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
741
- }, z.core.$strict>>;
742
- admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
787
+ }, z.core.$strict>>>;
788
+ admissionOrder: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
789
+ admissions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
790
+ kind: z.ZodLiteral<"new">;
791
+ position: z.ZodNumber;
792
+ alias: z.ZodOptional<z.ZodString>;
793
+ title: z.ZodString;
794
+ }, z.core.$strict>, z.ZodObject<{
795
+ kind: z.ZodLiteral<"existing">;
796
+ position: z.ZodNumber;
797
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
798
+ title: z.ZodString;
799
+ }, z.core.$strict>], "kind">>>;
743
800
  kind: z.ZodLiteral<"incomplete">;
744
801
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
745
- documentChanges: {
802
+ documentChanges: readonly {
746
803
  taskId: `task/${string}`;
747
804
  kind: "created" | "updated";
748
805
  documentDiff: string;
749
806
  }[];
750
807
  stopped: {
808
+ kind: "retry";
809
+ reason: "concurrent-modification" | "busy";
810
+ } | {
811
+ kind: "invalid-composition";
812
+ diagnostics: readonly {
813
+ line: number;
814
+ reason: string;
815
+ token: string;
816
+ }[];
817
+ } | {
751
818
  kind: "task-missing";
752
819
  taskId: `task/${string}`;
753
820
  } | {
@@ -766,35 +833,46 @@ export declare const taskCompositionResultSchema: z.ZodUnion<readonly [z.ZodObje
766
833
  taskId: `task/${string}`;
767
834
  related: `task/${string}`;
768
835
  declaringTask: `task/${string}`;
769
- } | {
770
- kind: "invalid-composition";
771
- diagnostics: {
772
- line: number;
773
- reason: string;
774
- token: string;
775
- }[];
776
- } | {
777
- kind: "retry";
778
- reason: "concurrent-modification" | "busy";
779
836
  };
780
837
  draft: string;
781
- aliases: {
838
+ aliases: readonly {
782
839
  alias: string;
783
840
  taskId: `task/${string}`;
784
841
  }[];
785
- admissionOrder: `task/${string}`[];
842
+ admissionOrder: readonly `task/${string}`[];
843
+ admissions: readonly ({
844
+ kind: "new";
845
+ position: number;
846
+ title: string;
847
+ alias?: string | undefined;
848
+ } | {
849
+ kind: "existing";
850
+ position: number;
851
+ taskId: `task/${string}`;
852
+ title: string;
853
+ })[];
786
854
  kind: "incomplete";
787
855
  cleanup?: {
788
856
  kind: "lock-release-failed";
789
- diagnostics: string[];
857
+ diagnostics: readonly string[];
790
858
  } | undefined;
791
859
  }>, {
792
- documentChanges: {
860
+ documentChanges: readonly {
793
861
  taskId: `task/${string}`;
794
862
  kind: "created" | "updated";
795
863
  documentDiff: string;
796
864
  }[];
797
865
  stopped: {
866
+ kind: "retry";
867
+ reason: "concurrent-modification" | "busy";
868
+ } | {
869
+ kind: "invalid-composition";
870
+ diagnostics: readonly {
871
+ line: number;
872
+ reason: string;
873
+ token: string;
874
+ }[];
875
+ } | {
798
876
  kind: "task-missing";
799
877
  taskId: `task/${string}`;
800
878
  } | {
@@ -813,37 +891,38 @@ export declare const taskCompositionResultSchema: z.ZodUnion<readonly [z.ZodObje
813
891
  taskId: `task/${string}`;
814
892
  related: `task/${string}`;
815
893
  declaringTask: `task/${string}`;
816
- } | {
817
- kind: "invalid-composition";
818
- diagnostics: {
819
- line: number;
820
- reason: string;
821
- token: string;
822
- }[];
823
- } | {
824
- kind: "retry";
825
- reason: "concurrent-modification" | "busy";
826
894
  };
827
895
  draft: string;
828
- aliases: {
896
+ aliases: readonly {
829
897
  alias: string;
830
898
  taskId: `task/${string}`;
831
899
  }[];
832
- admissionOrder: `task/${string}`[];
900
+ admissionOrder: readonly `task/${string}`[];
901
+ admissions: readonly ({
902
+ kind: "new";
903
+ position: number;
904
+ title: string;
905
+ alias?: string | undefined;
906
+ } | {
907
+ kind: "existing";
908
+ position: number;
909
+ taskId: `task/${string}`;
910
+ title: string;
911
+ })[];
833
912
  kind: "incomplete";
834
913
  cleanup?: {
835
914
  kind: "lock-release-failed";
836
- diagnostics: string[];
915
+ diagnostics: readonly string[];
837
916
  } | undefined;
838
917
  }>>]>;
839
918
  export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
840
- items: z.ZodArray<z.ZodObject<{
919
+ items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
841
920
  id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
842
921
  outcome: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
843
922
  kind: z.ZodLiteral<"accepted">;
844
923
  value: z.ZodPipe<z.ZodObject<{
845
924
  id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
846
- namespace: z.ZodArray<z.ZodString>;
925
+ namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
847
926
  title: z.ZodString;
848
927
  state: z.ZodEnum<{
849
928
  open: "open";
@@ -853,54 +932,40 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
853
932
  drop: "drop";
854
933
  }>;
855
934
  priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
856
- needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
935
+ needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
857
936
  parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
858
- supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
859
- relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
937
+ supersedes: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
938
+ relates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
860
939
  note: z.ZodString;
861
940
  createdBy: z.ZodOptional<z.ZodString>;
862
941
  createdAt: z.ZodString;
863
942
  updatedAt: z.ZodString;
864
943
  body: z.ZodString;
865
- }, z.core.$strict>, z.ZodTransform<{
944
+ }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
945
+ createdBy: string | undefined;
866
946
  id: `task/${string}`;
867
- namespace: string[];
947
+ namespace: readonly string[];
868
948
  title: string;
869
949
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
870
950
  priority: 0 | 1 | 2 | 3;
871
- needs: `task/${string}`[];
951
+ needs: readonly `task/${string}`[];
872
952
  parent: `task/${string}` | null;
873
- supersedes: `task/${string}`[];
874
- relates: `task/${string}`[];
953
+ supersedes: readonly `task/${string}`[];
954
+ relates: readonly `task/${string}`[];
875
955
  note: string;
876
956
  createdAt: string;
877
957
  updatedAt: string;
878
958
  body: string;
879
- } | {
880
- createdBy: string;
959
+ }>, {
881
960
  id: `task/${string}`;
882
- namespace: string[];
961
+ namespace: readonly string[];
883
962
  title: string;
884
963
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
885
964
  priority: 0 | 1 | 2 | 3;
886
- needs: `task/${string}`[];
965
+ needs: readonly `task/${string}`[];
887
966
  parent: `task/${string}` | null;
888
- supersedes: `task/${string}`[];
889
- relates: `task/${string}`[];
890
- note: string;
891
- createdAt: string;
892
- updatedAt: string;
893
- body: string;
894
- }, {
895
- id: `task/${string}`;
896
- namespace: string[];
897
- title: string;
898
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
899
- priority: 0 | 1 | 2 | 3;
900
- needs: `task/${string}`[];
901
- parent: `task/${string}` | null;
902
- supersedes: `task/${string}`[];
903
- relates: `task/${string}`[];
967
+ supersedes: readonly `task/${string}`[];
968
+ relates: readonly `task/${string}`[];
904
969
  note: string;
905
970
  createdAt: string;
906
971
  updatedAt: string;
@@ -909,79 +974,51 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
909
974
  }>>;
910
975
  cleanup: z.ZodOptional<z.ZodObject<{
911
976
  kind: z.ZodLiteral<"lock-release-failed">;
912
- diagnostics: z.ZodArray<z.ZodString>;
977
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
913
978
  }, z.core.$strict>>;
914
979
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
915
980
  kind: "accepted";
916
- value: {
917
- id: `task/${string}`;
918
- namespace: string[];
919
- title: string;
920
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
921
- priority: 0 | 1 | 2 | 3;
922
- needs: `task/${string}`[];
923
- parent: `task/${string}` | null;
924
- supersedes: `task/${string}`[];
925
- relates: `task/${string}`[];
926
- note: string;
927
- createdAt: string;
928
- updatedAt: string;
929
- body: string;
930
- } | {
931
- createdBy: string;
981
+ value: WithoutUndefined<{
982
+ createdBy: string | undefined;
932
983
  id: `task/${string}`;
933
- namespace: string[];
984
+ namespace: readonly string[];
934
985
  title: string;
935
986
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
936
987
  priority: 0 | 1 | 2 | 3;
937
- needs: `task/${string}`[];
988
+ needs: readonly `task/${string}`[];
938
989
  parent: `task/${string}` | null;
939
- supersedes: `task/${string}`[];
940
- relates: `task/${string}`[];
990
+ supersedes: readonly `task/${string}`[];
991
+ relates: readonly `task/${string}`[];
941
992
  note: string;
942
993
  createdAt: string;
943
994
  updatedAt: string;
944
995
  body: string;
945
- };
996
+ }>;
946
997
  cleanup?: {
947
998
  kind: "lock-release-failed";
948
- diagnostics: string[];
999
+ diagnostics: readonly string[];
949
1000
  } | undefined;
950
1001
  }>, {
951
1002
  kind: "accepted";
952
- value: {
1003
+ value: WithoutUndefined<{
1004
+ createdBy: string | undefined;
953
1005
  id: `task/${string}`;
954
- namespace: string[];
1006
+ namespace: readonly string[];
955
1007
  title: string;
956
1008
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
957
1009
  priority: 0 | 1 | 2 | 3;
958
- needs: `task/${string}`[];
1010
+ needs: readonly `task/${string}`[];
959
1011
  parent: `task/${string}` | null;
960
- supersedes: `task/${string}`[];
961
- relates: `task/${string}`[];
1012
+ supersedes: readonly `task/${string}`[];
1013
+ relates: readonly `task/${string}`[];
962
1014
  note: string;
963
1015
  createdAt: string;
964
1016
  updatedAt: string;
965
1017
  body: string;
966
- } | {
967
- createdBy: string;
968
- id: `task/${string}`;
969
- namespace: string[];
970
- title: string;
971
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
972
- priority: 0 | 1 | 2 | 3;
973
- needs: `task/${string}`[];
974
- parent: `task/${string}` | null;
975
- supersedes: `task/${string}`[];
976
- relates: `task/${string}`[];
977
- note: string;
978
- createdAt: string;
979
- updatedAt: string;
980
- body: string;
981
- };
1018
+ }>;
982
1019
  cleanup?: {
983
1020
  kind: "lock-release-failed";
984
- diagnostics: string[];
1021
+ diagnostics: readonly string[];
985
1022
  } | undefined;
986
1023
  }>>, z.ZodObject<{
987
1024
  kind: z.ZodLiteral<"refused">;
@@ -1019,11 +1056,11 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1019
1056
  declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1020
1057
  }, z.core.$strict>, z.ZodObject<{
1021
1058
  kind: z.ZodLiteral<"invalid-composition">;
1022
- diagnostics: z.ZodArray<z.ZodObject<{
1059
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1023
1060
  line: z.ZodNumber;
1024
1061
  reason: z.ZodString;
1025
1062
  token: z.ZodString;
1026
- }, z.core.$strict>>;
1063
+ }, z.core.$strict>>>;
1027
1064
  }, z.core.$strict>]>;
1028
1065
  }, z.core.$strict>, z.ZodObject<{
1029
1066
  kind: z.ZodLiteral<"retry">;
@@ -1032,12 +1069,12 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1032
1069
  busy: "busy";
1033
1070
  }>;
1034
1071
  }, z.core.$strict>]>;
1035
- }, z.core.$strict>>;
1072
+ }, z.core.$strict>>>;
1036
1073
  }, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1037
1074
  kind: z.ZodLiteral<"accepted">;
1038
1075
  value: z.ZodPipe<z.ZodObject<{
1039
1076
  id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1040
- namespace: z.ZodArray<z.ZodString>;
1077
+ namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1041
1078
  title: z.ZodString;
1042
1079
  state: z.ZodEnum<{
1043
1080
  open: "open";
@@ -1047,54 +1084,40 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1047
1084
  drop: "drop";
1048
1085
  }>;
1049
1086
  priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1050
- needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1087
+ needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1051
1088
  parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1052
- supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1053
- relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1089
+ supersedes: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1090
+ relates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1054
1091
  note: z.ZodString;
1055
1092
  createdBy: z.ZodOptional<z.ZodString>;
1056
1093
  createdAt: z.ZodString;
1057
1094
  updatedAt: z.ZodString;
1058
1095
  body: z.ZodString;
1059
- }, z.core.$strict>, z.ZodTransform<{
1060
- id: `task/${string}`;
1061
- namespace: string[];
1062
- title: string;
1063
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1064
- priority: 0 | 1 | 2 | 3;
1065
- needs: `task/${string}`[];
1066
- parent: `task/${string}` | null;
1067
- supersedes: `task/${string}`[];
1068
- relates: `task/${string}`[];
1069
- note: string;
1070
- createdAt: string;
1071
- updatedAt: string;
1072
- body: string;
1073
- } | {
1074
- createdBy: string;
1096
+ }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1097
+ createdBy: string | undefined;
1075
1098
  id: `task/${string}`;
1076
- namespace: string[];
1099
+ namespace: readonly string[];
1077
1100
  title: string;
1078
1101
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1079
1102
  priority: 0 | 1 | 2 | 3;
1080
- needs: `task/${string}`[];
1103
+ needs: readonly `task/${string}`[];
1081
1104
  parent: `task/${string}` | null;
1082
- supersedes: `task/${string}`[];
1083
- relates: `task/${string}`[];
1105
+ supersedes: readonly `task/${string}`[];
1106
+ relates: readonly `task/${string}`[];
1084
1107
  note: string;
1085
1108
  createdAt: string;
1086
1109
  updatedAt: string;
1087
1110
  body: string;
1088
- }, {
1111
+ }>, {
1089
1112
  id: `task/${string}`;
1090
- namespace: string[];
1113
+ namespace: readonly string[];
1091
1114
  title: string;
1092
1115
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1093
1116
  priority: 0 | 1 | 2 | 3;
1094
- needs: `task/${string}`[];
1117
+ needs: readonly `task/${string}`[];
1095
1118
  parent: `task/${string}` | null;
1096
- supersedes: `task/${string}`[];
1097
- relates: `task/${string}`[];
1119
+ supersedes: readonly `task/${string}`[];
1120
+ relates: readonly `task/${string}`[];
1098
1121
  note: string;
1099
1122
  createdAt: string;
1100
1123
  updatedAt: string;
@@ -1103,79 +1126,51 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1103
1126
  }>>;
1104
1127
  cleanup: z.ZodOptional<z.ZodObject<{
1105
1128
  kind: z.ZodLiteral<"lock-release-failed">;
1106
- diagnostics: z.ZodArray<z.ZodString>;
1129
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1107
1130
  }, z.core.$strict>>;
1108
1131
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1109
1132
  kind: "accepted";
1110
- value: {
1133
+ value: WithoutUndefined<{
1134
+ createdBy: string | undefined;
1111
1135
  id: `task/${string}`;
1112
- namespace: string[];
1136
+ namespace: readonly string[];
1113
1137
  title: string;
1114
1138
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1115
1139
  priority: 0 | 1 | 2 | 3;
1116
- needs: `task/${string}`[];
1140
+ needs: readonly `task/${string}`[];
1117
1141
  parent: `task/${string}` | null;
1118
- supersedes: `task/${string}`[];
1119
- relates: `task/${string}`[];
1142
+ supersedes: readonly `task/${string}`[];
1143
+ relates: readonly `task/${string}`[];
1120
1144
  note: string;
1121
1145
  createdAt: string;
1122
1146
  updatedAt: string;
1123
1147
  body: string;
1124
- } | {
1125
- createdBy: string;
1126
- id: `task/${string}`;
1127
- namespace: string[];
1128
- title: string;
1129
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1130
- priority: 0 | 1 | 2 | 3;
1131
- needs: `task/${string}`[];
1132
- parent: `task/${string}` | null;
1133
- supersedes: `task/${string}`[];
1134
- relates: `task/${string}`[];
1135
- note: string;
1136
- createdAt: string;
1137
- updatedAt: string;
1138
- body: string;
1139
- };
1148
+ }>;
1140
1149
  cleanup?: {
1141
1150
  kind: "lock-release-failed";
1142
- diagnostics: string[];
1151
+ diagnostics: readonly string[];
1143
1152
  } | undefined;
1144
1153
  }>, {
1145
1154
  kind: "accepted";
1146
- value: {
1147
- id: `task/${string}`;
1148
- namespace: string[];
1149
- title: string;
1150
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1151
- priority: 0 | 1 | 2 | 3;
1152
- needs: `task/${string}`[];
1153
- parent: `task/${string}` | null;
1154
- supersedes: `task/${string}`[];
1155
- relates: `task/${string}`[];
1156
- note: string;
1157
- createdAt: string;
1158
- updatedAt: string;
1159
- body: string;
1160
- } | {
1161
- createdBy: string;
1155
+ value: WithoutUndefined<{
1156
+ createdBy: string | undefined;
1162
1157
  id: `task/${string}`;
1163
- namespace: string[];
1158
+ namespace: readonly string[];
1164
1159
  title: string;
1165
1160
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1166
1161
  priority: 0 | 1 | 2 | 3;
1167
- needs: `task/${string}`[];
1162
+ needs: readonly `task/${string}`[];
1168
1163
  parent: `task/${string}` | null;
1169
- supersedes: `task/${string}`[];
1170
- relates: `task/${string}`[];
1164
+ supersedes: readonly `task/${string}`[];
1165
+ relates: readonly `task/${string}`[];
1171
1166
  note: string;
1172
1167
  createdAt: string;
1173
1168
  updatedAt: string;
1174
1169
  body: string;
1175
- };
1170
+ }>;
1176
1171
  cleanup?: {
1177
1172
  kind: "lock-release-failed";
1178
- diagnostics: string[];
1173
+ diagnostics: readonly string[];
1179
1174
  } | undefined;
1180
1175
  }>>, z.ZodObject<{
1181
1176
  kind: z.ZodLiteral<"refused">;
@@ -1213,11 +1208,11 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1213
1208
  declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1214
1209
  }, z.core.$strict>, z.ZodObject<{
1215
1210
  kind: z.ZodLiteral<"invalid-composition">;
1216
- diagnostics: z.ZodArray<z.ZodObject<{
1211
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1217
1212
  line: z.ZodNumber;
1218
1213
  reason: z.ZodString;
1219
1214
  token: z.ZodString;
1220
- }, z.core.$strict>>;
1215
+ }, z.core.$strict>>>;
1221
1216
  }, z.core.$strict>]>;
1222
1217
  }, z.core.$strict>, z.ZodObject<{
1223
1218
  kind: z.ZodLiteral<"retry">;
@@ -1230,7 +1225,7 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1230
1225
  value: z.ZodObject<{
1231
1226
  task: z.ZodPipe<z.ZodObject<{
1232
1227
  id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1233
- namespace: z.ZodArray<z.ZodString>;
1228
+ namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1234
1229
  title: z.ZodString;
1235
1230
  state: z.ZodEnum<{
1236
1231
  open: "open";
@@ -1240,54 +1235,40 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1240
1235
  drop: "drop";
1241
1236
  }>;
1242
1237
  priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1243
- needs: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1238
+ needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1244
1239
  parent: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1245
- supersedes: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1246
- relates: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1240
+ supersedes: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1241
+ relates: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1247
1242
  note: z.ZodString;
1248
1243
  createdBy: z.ZodOptional<z.ZodString>;
1249
1244
  createdAt: z.ZodString;
1250
1245
  updatedAt: z.ZodString;
1251
1246
  body: z.ZodString;
1252
- }, z.core.$strict>, z.ZodTransform<{
1253
- id: `task/${string}`;
1254
- namespace: string[];
1255
- title: string;
1256
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1257
- priority: 0 | 1 | 2 | 3;
1258
- needs: `task/${string}`[];
1259
- parent: `task/${string}` | null;
1260
- supersedes: `task/${string}`[];
1261
- relates: `task/${string}`[];
1262
- note: string;
1263
- createdAt: string;
1264
- updatedAt: string;
1265
- body: string;
1266
- } | {
1267
- createdBy: string;
1247
+ }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1248
+ createdBy: string | undefined;
1268
1249
  id: `task/${string}`;
1269
- namespace: string[];
1250
+ namespace: readonly string[];
1270
1251
  title: string;
1271
1252
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1272
1253
  priority: 0 | 1 | 2 | 3;
1273
- needs: `task/${string}`[];
1254
+ needs: readonly `task/${string}`[];
1274
1255
  parent: `task/${string}` | null;
1275
- supersedes: `task/${string}`[];
1276
- relates: `task/${string}`[];
1256
+ supersedes: readonly `task/${string}`[];
1257
+ relates: readonly `task/${string}`[];
1277
1258
  note: string;
1278
1259
  createdAt: string;
1279
1260
  updatedAt: string;
1280
1261
  body: string;
1281
- }, {
1262
+ }>, {
1282
1263
  id: `task/${string}`;
1283
- namespace: string[];
1264
+ namespace: readonly string[];
1284
1265
  title: string;
1285
1266
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1286
1267
  priority: 0 | 1 | 2 | 3;
1287
- needs: `task/${string}`[];
1268
+ needs: readonly `task/${string}`[];
1288
1269
  parent: `task/${string}` | null;
1289
- supersedes: `task/${string}`[];
1290
- relates: `task/${string}`[];
1270
+ supersedes: readonly `task/${string}`[];
1271
+ relates: readonly `task/${string}`[];
1291
1272
  note: string;
1292
1273
  createdAt: string;
1293
1274
  updatedAt: string;
@@ -1295,88 +1276,78 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1295
1276
  createdBy?: string | undefined;
1296
1277
  }>>;
1297
1278
  documentDiff: z.ZodString;
1279
+ changedFields: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1280
+ field: z.ZodString;
1281
+ action: z.ZodEnum<{
1282
+ replaced: "replaced";
1283
+ changed: "changed";
1284
+ added: "added";
1285
+ cleared: "cleared";
1286
+ appended: "appended";
1287
+ }>;
1288
+ }, z.core.$strict>>>;
1298
1289
  }, z.core.$strict>;
1299
1290
  cleanup: z.ZodOptional<z.ZodObject<{
1300
1291
  kind: z.ZodLiteral<"lock-release-failed">;
1301
- diagnostics: z.ZodArray<z.ZodString>;
1292
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1302
1293
  }, z.core.$strict>>;
1303
1294
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1304
1295
  kind: "accepted";
1305
1296
  value: {
1306
- task: {
1307
- id: `task/${string}`;
1308
- namespace: string[];
1309
- title: string;
1310
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1311
- priority: 0 | 1 | 2 | 3;
1312
- needs: `task/${string}`[];
1313
- parent: `task/${string}` | null;
1314
- supersedes: `task/${string}`[];
1315
- relates: `task/${string}`[];
1316
- note: string;
1317
- createdAt: string;
1318
- updatedAt: string;
1319
- body: string;
1320
- } | {
1321
- createdBy: string;
1297
+ task: WithoutUndefined<{
1298
+ createdBy: string | undefined;
1322
1299
  id: `task/${string}`;
1323
- namespace: string[];
1300
+ namespace: readonly string[];
1324
1301
  title: string;
1325
1302
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1326
1303
  priority: 0 | 1 | 2 | 3;
1327
- needs: `task/${string}`[];
1304
+ needs: readonly `task/${string}`[];
1328
1305
  parent: `task/${string}` | null;
1329
- supersedes: `task/${string}`[];
1330
- relates: `task/${string}`[];
1306
+ supersedes: readonly `task/${string}`[];
1307
+ relates: readonly `task/${string}`[];
1331
1308
  note: string;
1332
1309
  createdAt: string;
1333
1310
  updatedAt: string;
1334
1311
  body: string;
1335
- };
1312
+ }>;
1336
1313
  documentDiff: string;
1314
+ changedFields: readonly {
1315
+ field: string;
1316
+ action: "replaced" | "changed" | "added" | "cleared" | "appended";
1317
+ }[];
1337
1318
  };
1338
1319
  cleanup?: {
1339
1320
  kind: "lock-release-failed";
1340
- diagnostics: string[];
1321
+ diagnostics: readonly string[];
1341
1322
  } | undefined;
1342
1323
  }>, {
1343
1324
  kind: "accepted";
1344
1325
  value: {
1345
- task: {
1326
+ task: WithoutUndefined<{
1327
+ createdBy: string | undefined;
1346
1328
  id: `task/${string}`;
1347
- namespace: string[];
1329
+ namespace: readonly string[];
1348
1330
  title: string;
1349
1331
  state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1350
1332
  priority: 0 | 1 | 2 | 3;
1351
- needs: `task/${string}`[];
1333
+ needs: readonly `task/${string}`[];
1352
1334
  parent: `task/${string}` | null;
1353
- supersedes: `task/${string}`[];
1354
- relates: `task/${string}`[];
1335
+ supersedes: readonly `task/${string}`[];
1336
+ relates: readonly `task/${string}`[];
1355
1337
  note: string;
1356
1338
  createdAt: string;
1357
1339
  updatedAt: string;
1358
1340
  body: string;
1359
- } | {
1360
- createdBy: string;
1361
- id: `task/${string}`;
1362
- namespace: string[];
1363
- title: string;
1364
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1365
- priority: 0 | 1 | 2 | 3;
1366
- needs: `task/${string}`[];
1367
- parent: `task/${string}` | null;
1368
- supersedes: `task/${string}`[];
1369
- relates: `task/${string}`[];
1370
- note: string;
1371
- createdAt: string;
1372
- updatedAt: string;
1373
- body: string;
1374
- };
1341
+ }>;
1375
1342
  documentDiff: string;
1343
+ changedFields: readonly {
1344
+ field: string;
1345
+ action: "replaced" | "changed" | "added" | "cleared" | "appended";
1346
+ }[];
1376
1347
  };
1377
1348
  cleanup?: {
1378
1349
  kind: "lock-release-failed";
1379
- diagnostics: string[];
1350
+ diagnostics: readonly string[];
1380
1351
  } | undefined;
1381
1352
  }>>, z.ZodObject<{
1382
1353
  kind: z.ZodLiteral<"refused">;
@@ -1414,11 +1385,11 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1414
1385
  declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1415
1386
  }, z.core.$strict>, z.ZodObject<{
1416
1387
  kind: z.ZodLiteral<"invalid-composition">;
1417
- diagnostics: z.ZodArray<z.ZodObject<{
1388
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1418
1389
  line: z.ZodNumber;
1419
1390
  reason: z.ZodString;
1420
1391
  token: z.ZodString;
1421
- }, z.core.$strict>>;
1392
+ }, z.core.$strict>>>;
1422
1393
  }, z.core.$strict>]>;
1423
1394
  }, z.core.$strict>, z.ZodObject<{
1424
1395
  kind: z.ZodLiteral<"retry">;
@@ -1427,91 +1398,140 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1427
1398
  busy: "busy";
1428
1399
  }>;
1429
1400
  }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodObject<{
1430
- bodies: z.ZodArray<z.ZodObject<{
1401
+ kind: z.ZodLiteral<"planned">;
1402
+ aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1403
+ alias: z.ZodString;
1404
+ position: z.ZodNumber;
1405
+ }, z.core.$strict>>>;
1406
+ admissionOrder: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1407
+ position: z.ZodNumber;
1408
+ alias: z.ZodOptional<z.ZodString>;
1409
+ taskId: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1410
+ }, z.core.$strict>>>;
1411
+ admissions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1412
+ kind: z.ZodLiteral<"new">;
1413
+ position: z.ZodNumber;
1414
+ alias: z.ZodOptional<z.ZodString>;
1415
+ title: z.ZodString;
1416
+ }, z.core.$strict>, z.ZodObject<{
1417
+ kind: z.ZodLiteral<"existing">;
1418
+ position: z.ZodNumber;
1431
1419
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1420
+ title: z.ZodString;
1421
+ }, z.core.$strict>], "kind">>>;
1422
+ bodies: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1423
+ position: z.ZodNumber;
1424
+ title: z.ZodString;
1432
1425
  bytes: z.ZodNumber;
1433
1426
  firstLine: z.ZodString;
1434
1427
  lastLine: z.ZodString;
1435
- }, z.core.$strict>>;
1436
- aliases: z.ZodArray<z.ZodObject<{
1437
- alias: z.ZodString;
1438
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1439
- }, z.core.$strict>>;
1440
- admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1441
- kind: z.ZodLiteral<"planned">;
1428
+ }, z.core.$strict>>>;
1442
1429
  }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1443
- documentChanges: z.ZodArray<z.ZodObject<{
1430
+ documentChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1444
1431
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1445
1432
  kind: z.ZodEnum<{
1446
1433
  created: "created";
1447
1434
  updated: "updated";
1448
1435
  }>;
1449
1436
  documentDiff: z.ZodString;
1450
- }, z.core.$strict>>;
1437
+ }, z.core.$strict>>>;
1451
1438
  cleanup: z.ZodOptional<z.ZodObject<{
1452
1439
  kind: z.ZodLiteral<"lock-release-failed">;
1453
- diagnostics: z.ZodArray<z.ZodString>;
1440
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1454
1441
  }, z.core.$strict>>;
1455
- aliases: z.ZodArray<z.ZodObject<{
1442
+ aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1456
1443
  alias: z.ZodString;
1457
1444
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1458
- }, z.core.$strict>>;
1459
- admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1445
+ }, z.core.$strict>>>;
1446
+ admissionOrder: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1447
+ admissions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1448
+ kind: z.ZodLiteral<"new">;
1449
+ position: z.ZodNumber;
1450
+ alias: z.ZodOptional<z.ZodString>;
1451
+ title: z.ZodString;
1452
+ }, z.core.$strict>, z.ZodObject<{
1453
+ kind: z.ZodLiteral<"existing">;
1454
+ position: z.ZodNumber;
1455
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1456
+ title: z.ZodString;
1457
+ }, z.core.$strict>], "kind">>>;
1460
1458
  kind: z.ZodLiteral<"accepted">;
1461
1459
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1462
- documentChanges: {
1460
+ documentChanges: readonly {
1463
1461
  taskId: `task/${string}`;
1464
1462
  kind: "created" | "updated";
1465
1463
  documentDiff: string;
1466
1464
  }[];
1467
- aliases: {
1465
+ aliases: readonly {
1468
1466
  alias: string;
1469
1467
  taskId: `task/${string}`;
1470
1468
  }[];
1471
- admissionOrder: `task/${string}`[];
1469
+ admissionOrder: readonly `task/${string}`[];
1470
+ admissions: readonly ({
1471
+ kind: "new";
1472
+ position: number;
1473
+ title: string;
1474
+ alias?: string | undefined;
1475
+ } | {
1476
+ kind: "existing";
1477
+ position: number;
1478
+ taskId: `task/${string}`;
1479
+ title: string;
1480
+ })[];
1472
1481
  kind: "accepted";
1473
1482
  cleanup?: {
1474
1483
  kind: "lock-release-failed";
1475
- diagnostics: string[];
1484
+ diagnostics: readonly string[];
1476
1485
  } | undefined;
1477
1486
  }>, {
1478
- documentChanges: {
1487
+ documentChanges: readonly {
1479
1488
  taskId: `task/${string}`;
1480
1489
  kind: "created" | "updated";
1481
1490
  documentDiff: string;
1482
1491
  }[];
1483
- aliases: {
1492
+ aliases: readonly {
1484
1493
  alias: string;
1485
1494
  taskId: `task/${string}`;
1486
1495
  }[];
1487
- admissionOrder: `task/${string}`[];
1496
+ admissionOrder: readonly `task/${string}`[];
1497
+ admissions: readonly ({
1498
+ kind: "new";
1499
+ position: number;
1500
+ title: string;
1501
+ alias?: string | undefined;
1502
+ } | {
1503
+ kind: "existing";
1504
+ position: number;
1505
+ taskId: `task/${string}`;
1506
+ title: string;
1507
+ })[];
1488
1508
  kind: "accepted";
1489
1509
  cleanup?: {
1490
1510
  kind: "lock-release-failed";
1491
- diagnostics: string[];
1511
+ diagnostics: readonly string[];
1492
1512
  } | undefined;
1493
1513
  }>>, z.ZodObject<{
1494
1514
  kind: z.ZodLiteral<"refused">;
1495
1515
  refusal: z.ZodObject<{
1496
1516
  kind: z.ZodLiteral<"invalid-composition">;
1497
- diagnostics: z.ZodArray<z.ZodObject<{
1517
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1498
1518
  line: z.ZodNumber;
1499
1519
  reason: z.ZodString;
1500
1520
  token: z.ZodString;
1501
- }, z.core.$strict>>;
1521
+ }, z.core.$strict>>>;
1502
1522
  }, z.core.$strict>;
1503
1523
  }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1504
- documentChanges: z.ZodArray<z.ZodObject<{
1524
+ documentChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1505
1525
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1506
1526
  kind: z.ZodEnum<{
1507
1527
  created: "created";
1508
1528
  updated: "updated";
1509
1529
  }>;
1510
1530
  documentDiff: z.ZodString;
1511
- }, z.core.$strict>>;
1531
+ }, z.core.$strict>>>;
1512
1532
  cleanup: z.ZodOptional<z.ZodObject<{
1513
1533
  kind: z.ZodLiteral<"lock-release-failed">;
1514
- diagnostics: z.ZodArray<z.ZodString>;
1534
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1515
1535
  }, z.core.$strict>>;
1516
1536
  stopped: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1517
1537
  kind: z.ZodLiteral<"task-missing">;
@@ -1547,11 +1567,11 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1547
1567
  declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1548
1568
  }, z.core.$strict>, z.ZodObject<{
1549
1569
  kind: z.ZodLiteral<"invalid-composition">;
1550
- diagnostics: z.ZodArray<z.ZodObject<{
1570
+ diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1551
1571
  line: z.ZodNumber;
1552
1572
  reason: z.ZodString;
1553
1573
  token: z.ZodString;
1554
- }, z.core.$strict>>;
1574
+ }, z.core.$strict>>>;
1555
1575
  }, z.core.$strict>]>, z.ZodObject<{
1556
1576
  kind: z.ZodLiteral<"retry">;
1557
1577
  reason: z.ZodEnum<{
@@ -1560,19 +1580,40 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1560
1580
  }>;
1561
1581
  }, z.core.$strict>]>;
1562
1582
  draft: z.ZodString;
1563
- aliases: z.ZodArray<z.ZodObject<{
1583
+ aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1564
1584
  alias: z.ZodString;
1565
1585
  taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1566
- }, z.core.$strict>>;
1567
- admissionOrder: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>;
1586
+ }, z.core.$strict>>>;
1587
+ admissionOrder: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1588
+ admissions: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1589
+ kind: z.ZodLiteral<"new">;
1590
+ position: z.ZodNumber;
1591
+ alias: z.ZodOptional<z.ZodString>;
1592
+ title: z.ZodString;
1593
+ }, z.core.$strict>, z.ZodObject<{
1594
+ kind: z.ZodLiteral<"existing">;
1595
+ position: z.ZodNumber;
1596
+ taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1597
+ title: z.ZodString;
1598
+ }, z.core.$strict>], "kind">>>;
1568
1599
  kind: z.ZodLiteral<"incomplete">;
1569
1600
  }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1570
- documentChanges: {
1601
+ documentChanges: readonly {
1571
1602
  taskId: `task/${string}`;
1572
1603
  kind: "created" | "updated";
1573
1604
  documentDiff: string;
1574
1605
  }[];
1575
1606
  stopped: {
1607
+ kind: "retry";
1608
+ reason: "concurrent-modification" | "busy";
1609
+ } | {
1610
+ kind: "invalid-composition";
1611
+ diagnostics: readonly {
1612
+ line: number;
1613
+ reason: string;
1614
+ token: string;
1615
+ }[];
1616
+ } | {
1576
1617
  kind: "task-missing";
1577
1618
  taskId: `task/${string}`;
1578
1619
  } | {
@@ -1591,35 +1632,46 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1591
1632
  taskId: `task/${string}`;
1592
1633
  related: `task/${string}`;
1593
1634
  declaringTask: `task/${string}`;
1594
- } | {
1595
- kind: "invalid-composition";
1596
- diagnostics: {
1597
- line: number;
1598
- reason: string;
1599
- token: string;
1600
- }[];
1601
- } | {
1602
- kind: "retry";
1603
- reason: "concurrent-modification" | "busy";
1604
1635
  };
1605
1636
  draft: string;
1606
- aliases: {
1637
+ aliases: readonly {
1607
1638
  alias: string;
1608
1639
  taskId: `task/${string}`;
1609
1640
  }[];
1610
- admissionOrder: `task/${string}`[];
1641
+ admissionOrder: readonly `task/${string}`[];
1642
+ admissions: readonly ({
1643
+ kind: "new";
1644
+ position: number;
1645
+ title: string;
1646
+ alias?: string | undefined;
1647
+ } | {
1648
+ kind: "existing";
1649
+ position: number;
1650
+ taskId: `task/${string}`;
1651
+ title: string;
1652
+ })[];
1611
1653
  kind: "incomplete";
1612
1654
  cleanup?: {
1613
1655
  kind: "lock-release-failed";
1614
- diagnostics: string[];
1656
+ diagnostics: readonly string[];
1615
1657
  } | undefined;
1616
1658
  }>, {
1617
- documentChanges: {
1659
+ documentChanges: readonly {
1618
1660
  taskId: `task/${string}`;
1619
1661
  kind: "created" | "updated";
1620
1662
  documentDiff: string;
1621
1663
  }[];
1622
1664
  stopped: {
1665
+ kind: "retry";
1666
+ reason: "concurrent-modification" | "busy";
1667
+ } | {
1668
+ kind: "invalid-composition";
1669
+ diagnostics: readonly {
1670
+ line: number;
1671
+ reason: string;
1672
+ token: string;
1673
+ }[];
1674
+ } | {
1623
1675
  kind: "task-missing";
1624
1676
  taskId: `task/${string}`;
1625
1677
  } | {
@@ -1638,28 +1690,37 @@ export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.Z
1638
1690
  taskId: `task/${string}`;
1639
1691
  related: `task/${string}`;
1640
1692
  declaringTask: `task/${string}`;
1641
- } | {
1642
- kind: "invalid-composition";
1643
- diagnostics: {
1644
- line: number;
1645
- reason: string;
1646
- token: string;
1647
- }[];
1648
- } | {
1649
- kind: "retry";
1650
- reason: "concurrent-modification" | "busy";
1651
1693
  };
1652
1694
  draft: string;
1653
- aliases: {
1695
+ aliases: readonly {
1654
1696
  alias: string;
1655
1697
  taskId: `task/${string}`;
1656
1698
  }[];
1657
- admissionOrder: `task/${string}`[];
1699
+ admissionOrder: readonly `task/${string}`[];
1700
+ admissions: readonly ({
1701
+ kind: "new";
1702
+ position: number;
1703
+ title: string;
1704
+ alias?: string | undefined;
1705
+ } | {
1706
+ kind: "existing";
1707
+ position: number;
1708
+ taskId: `task/${string}`;
1709
+ title: string;
1710
+ })[];
1658
1711
  kind: "incomplete";
1659
1712
  cleanup?: {
1660
1713
  kind: "lock-release-failed";
1661
- diagnostics: string[];
1714
+ diagnostics: readonly string[];
1662
1715
  } | undefined;
1663
1716
  }>>]>]>;
1664
- export declare function isTaskMutationExecutionResult(value: unknown): value is TaskMutationExecutionResult;
1665
- export {};
1717
+ export type TaskView = z.infer<typeof taskViewSchema>;
1718
+ export type TaskCleanupFailure = z.infer<typeof taskCleanupFailureSchema>;
1719
+ export type TaskCompositionDiagnostic = z.infer<typeof compositionDiagnosticSchema>;
1720
+ export type TaskRefusal = z.infer<typeof taskRefusalSchema>;
1721
+ export type TaskRetry = z.infer<typeof taskRetrySchema>["reason"];
1722
+ export type TaskMutationResult = z.infer<typeof taskMutationResultSchema>;
1723
+ export type TaskUpdateResult = z.infer<typeof taskUpdateResultSchema>;
1724
+ export type TaskBatchResult = z.infer<typeof taskBatchResultSchema>;
1725
+ export type TaskCompositionResult = z.infer<typeof taskCompositionResultSchema>;
1726
+ export type TaskMutationExecutionResult = z.infer<typeof taskMutationExecutionResultSchema>;