@astrosheep/keiyaku 4.6.7 → 4.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (336) hide show
  1. package/README.md +46 -16
  2. package/build/plugins/claude/.claude-plugin/plugin.json +1 -1
  3. package/build/plugins/claude/skills/keiyaku/SKILL.md +5 -6
  4. package/build/plugins/claude/skills/keiyaku-akuma/SKILL.md +1 -1
  5. package/build/plugins/claude/skills/keiyaku-akuma/references/automation.md +8 -8
  6. package/build/plugins/claude/skills/keiyaku-babysit/SKILL.md +1 -1
  7. package/build/plugins/claude/skills/keiyaku-bind/SKILL.md +9 -9
  8. package/build/plugins/claude/skills/keiyaku-debt/SKILL.md +91 -0
  9. package/build/plugins/claude/skills/keiyaku-workflow/SKILL.md +2 -2
  10. package/build/plugins/codex/.codex-plugin/plugin.json +1 -1
  11. package/build/plugins/codex/skills/keiyaku/SKILL.md +5 -6
  12. package/build/plugins/codex/skills/keiyaku-akuma/SKILL.md +1 -1
  13. package/build/plugins/codex/skills/keiyaku-akuma/references/automation.md +8 -8
  14. package/build/plugins/codex/skills/keiyaku-babysit/SKILL.md +1 -1
  15. package/build/plugins/codex/skills/keiyaku-bind/SKILL.md +9 -9
  16. package/build/plugins/codex/skills/keiyaku-debt/SKILL.md +91 -0
  17. package/build/plugins/codex/skills/keiyaku-workflow/SKILL.md +2 -2
  18. package/build/plugins/opencode/index.js +1 -1
  19. package/build/plugins/opencode/skills/keiyaku/SKILL.md +5 -6
  20. package/build/plugins/opencode/skills/keiyaku-akuma/SKILL.md +1 -1
  21. package/build/plugins/opencode/skills/keiyaku-akuma/references/automation.md +8 -8
  22. package/build/plugins/opencode/skills/keiyaku-babysit/SKILL.md +1 -1
  23. package/build/plugins/opencode/skills/keiyaku-bind/SKILL.md +9 -9
  24. package/build/plugins/opencode/skills/keiyaku-debt/SKILL.md +91 -0
  25. package/build/plugins/opencode/skills/keiyaku-workflow/SKILL.md +2 -2
  26. package/build/plugins/pi/keiyaku.ts +0 -5
  27. package/build/skills/keiyaku/SKILL.md +5 -6
  28. package/build/skills/keiyaku-akuma/SKILL.md +1 -1
  29. package/build/skills/keiyaku-akuma/references/automation.md +8 -8
  30. package/build/skills/keiyaku-babysit/SKILL.md +1 -1
  31. package/build/skills/keiyaku-bind/SKILL.md +9 -9
  32. package/build/skills/keiyaku-debt/SKILL.md +91 -0
  33. package/build/skills/keiyaku-workflow/SKILL.md +2 -2
  34. package/build/src/akuma/akuma-call.d.ts +2 -0
  35. package/build/src/akuma/akuma-call.js +8 -2
  36. package/build/src/akuma/akuma-instance.d.ts +14 -1
  37. package/build/src/akuma/akuma-instance.js +37 -7
  38. package/build/src/akuma/akuma-observe.d.ts +33 -8
  39. package/build/src/akuma/akuma-observe.js +89 -63
  40. package/build/src/akuma/akuma-owner.d.ts +14 -2
  41. package/build/src/akuma/akuma-owner.js +49 -35
  42. package/build/src/akuma/akuma-selection-execution.js +9 -1
  43. package/build/src/akuma/akuma-stream.d.ts +22 -0
  44. package/build/src/akuma/akuma-stream.js +116 -0
  45. package/build/src/akuma/akuma-wait.d.ts +1 -40
  46. package/build/src/akuma/akuma-wait.js +23 -84
  47. package/build/src/akuma/akuma.d.ts +52 -16
  48. package/build/src/akuma/akuma.js +10 -10
  49. package/build/src/akuma/allowed.d.ts +7 -12
  50. package/build/src/akuma/allowed.js +13 -4
  51. package/build/src/akuma/archetype.d.ts +7 -15
  52. package/build/src/akuma/archetype.js +36 -35
  53. package/build/src/akuma/body-supervisor.d.ts +5 -5
  54. package/build/src/akuma/body-supervisor.js +22 -20
  55. package/build/src/akuma/body.d.ts +5 -3
  56. package/build/src/akuma/body.js +57 -8
  57. package/build/src/akuma/call-request.d.ts +30 -32
  58. package/build/src/akuma/call-request.js +10 -3
  59. package/build/src/akuma/caller.d.ts +39 -0
  60. package/build/src/akuma/caller.js +36 -0
  61. package/build/src/akuma/dispatch-association.d.ts +0 -1
  62. package/build/src/akuma/dispatch-association.js +0 -3
  63. package/build/src/akuma/heart/activity-schema.d.ts +12 -0
  64. package/build/src/akuma/heart/activity-schema.js +6 -0
  65. package/build/src/akuma/heart/facts.d.ts +16 -12
  66. package/build/src/akuma/heart/facts.js +8 -0
  67. package/build/src/akuma/heart/index.d.ts +61 -9
  68. package/build/src/akuma/heart/index.js +89 -24
  69. package/build/src/akuma/heart/rows.d.ts +3 -3
  70. package/build/src/akuma/heart/rows.js +5 -3
  71. package/build/src/akuma/heart/soul.d.ts +10 -1
  72. package/build/src/akuma/heart/soul.js +34 -24
  73. package/build/src/akuma/heart/storage.d.ts +20 -0
  74. package/build/src/akuma/heart/storage.js +62 -3
  75. package/build/src/akuma/heart/timeline.d.ts +7 -0
  76. package/build/src/akuma/heart/timeline.js +10 -0
  77. package/build/src/akuma/identity.d.ts +0 -1
  78. package/build/src/akuma/identity.js +2 -5
  79. package/build/src/akuma/index.d.ts +6 -2
  80. package/build/src/akuma/index.js +1 -0
  81. package/build/src/akuma/nuke.js +6 -28
  82. package/build/src/akuma/projection.d.ts +25 -11
  83. package/build/src/akuma/projection.js +24 -7
  84. package/build/src/akuma/provider-recipe.d.ts +18 -6
  85. package/build/src/akuma/provider-recipe.js +24 -1
  86. package/build/src/akuma/provider.d.ts +31 -10
  87. package/build/src/akuma/provider.js +105 -14
  88. package/build/src/akuma/providers/acp/events.js +29 -19
  89. package/build/src/akuma/providers/acp/index.js +2 -3
  90. package/build/src/akuma/providers/claude/events.js +110 -69
  91. package/build/src/akuma/providers/claude/index.d.ts +2 -2
  92. package/build/src/akuma/providers/claude/index.js +4 -8
  93. package/build/src/akuma/providers/codex-app-server/events.js +17 -2
  94. package/build/src/akuma/providers/codex-app-server/index.js +17 -11
  95. package/build/src/akuma/providers/decode.d.ts +33 -0
  96. package/build/src/akuma/providers/decode.js +65 -0
  97. package/build/src/akuma/providers/execution-environment.d.ts +2 -1
  98. package/build/src/akuma/providers/execution-environment.js +3 -0
  99. package/build/src/akuma/providers/grok-build/index.js +16 -48
  100. package/build/src/akuma/providers/index.js +2 -0
  101. package/build/src/akuma/providers/lifecycle.d.ts +9 -0
  102. package/build/src/akuma/providers/lifecycle.js +10 -0
  103. package/build/src/akuma/providers/opencode-sdk/event-stream.d.ts +3 -3
  104. package/build/src/akuma/providers/opencode-sdk/event-stream.js +2 -25
  105. package/build/src/akuma/providers/opencode-sdk/events.d.ts +7 -43
  106. package/build/src/akuma/providers/opencode-sdk/events.js +146 -296
  107. package/build/src/akuma/providers/opencode-sdk/index.js +270 -431
  108. package/build/src/akuma/providers/opencode-sdk/native-http.d.ts +9 -0
  109. package/build/src/akuma/providers/opencode-sdk/native-http.js +69 -0
  110. package/build/src/akuma/providers/opencode-sdk/session.d.ts +42 -36
  111. package/build/src/akuma/providers/opencode-sdk/session.js +75 -84
  112. package/build/src/akuma/providers/paseo/events.d.ts +33 -0
  113. package/build/src/akuma/providers/paseo/events.js +204 -0
  114. package/build/src/akuma/providers/paseo/index.d.ts +9 -0
  115. package/build/src/akuma/providers/paseo/index.js +357 -0
  116. package/build/src/akuma/providers/pi/events.d.ts +2 -0
  117. package/build/src/akuma/providers/pi/events.js +36 -38
  118. package/build/src/akuma/providers/pi/index.js +21 -35
  119. package/build/src/akuma/publication.d.ts +2 -0
  120. package/build/src/akuma/publication.js +5 -0
  121. package/build/src/akuma/request-lifecycle.d.ts +4 -2
  122. package/build/src/akuma/request-lifecycle.js +27 -12
  123. package/build/src/akuma/request-rendezvous.js +38 -55
  124. package/build/src/akuma/request-serve.d.ts +1 -1
  125. package/build/src/akuma/request-serve.js +77 -113
  126. package/build/src/akuma/requests.d.ts +3 -1
  127. package/build/src/akuma/requests.js +32 -0
  128. package/build/src/akuma/selection-observation.d.ts +129 -53
  129. package/build/src/akuma/selection-observation.js +3 -9
  130. package/build/src/akuma/turn-drive.d.ts +3 -0
  131. package/build/src/akuma/turn-drive.js +28 -10
  132. package/build/src/akuma-body.js +12 -22
  133. package/build/src/cli/akuma-caller.d.ts +3 -0
  134. package/build/src/cli/akuma-caller.js +31 -0
  135. package/build/src/cli/commands/akuma-grammar.js +10 -16
  136. package/build/src/cli/commands/akuma.js +25 -55
  137. package/build/src/cli/commands/contract-grammar.d.ts +9 -7
  138. package/build/src/cli/commands/contract-grammar.js +40 -47
  139. package/build/src/cli/commands/contract-help.d.ts +17 -7
  140. package/build/src/cli/commands/contract-help.js +50 -11
  141. package/build/src/cli/commands/contract.js +34 -63
  142. package/build/src/cli/commands/debt-grammar.d.ts +19 -0
  143. package/build/src/cli/commands/debt-grammar.js +323 -0
  144. package/build/src/cli/commands/debt-query.d.ts +5 -0
  145. package/build/src/cli/commands/{task-query.js → debt-query.js} +9 -9
  146. package/build/src/cli/commands/{task.d.ts → debt.d.ts} +2 -2
  147. package/build/src/cli/commands/{task.js → debt.js} +87 -164
  148. package/build/src/cli/coordinates.d.ts +1 -1
  149. package/build/src/cli/coordinates.js +1 -1
  150. package/build/src/cli/parse.d.ts +5 -5
  151. package/build/src/cli/parse.js +17 -16
  152. package/build/src/cli/render/akuma-activity.d.ts +11 -83
  153. package/build/src/cli/render/akuma-activity.js +20 -382
  154. package/build/src/cli/render/catalog.d.ts +4 -7
  155. package/build/src/cli/render/catalog.js +5 -5
  156. package/build/src/cli/render/contract-history.js +3 -6
  157. package/build/src/cli/render/contract.js +17 -52
  158. package/build/src/cli/render/debt.d.ts +28 -0
  159. package/build/src/cli/render/{task.js → debt.js} +55 -133
  160. package/build/src/cli/render/kanshi.js +28 -28
  161. package/build/src/cli/render/marks.d.ts +5 -5
  162. package/build/src/cli/render/marks.js +4 -10
  163. package/build/src/cli/render/nuke.js +1 -1
  164. package/build/src/cli/render/receipt.js +3 -10
  165. package/build/src/cli/runtime.d.ts +1 -1
  166. package/build/src/cli/runtime.js +14 -20
  167. package/build/src/cli/scan.d.ts +1 -1
  168. package/build/src/cli/selectors.d.ts +3 -6
  169. package/build/src/cli/selectors.js +22 -53
  170. package/build/src/cli/usage.d.ts +1 -1
  171. package/build/src/cli/usage.js +4 -4
  172. package/build/src/contract-worktree.js +3 -3
  173. package/build/src/debt/board.d.ts +160 -0
  174. package/build/src/{task → debt}/board.js +89 -89
  175. package/build/src/debt/catalog.d.ts +11 -0
  176. package/build/src/debt/catalog.js +59 -0
  177. package/build/src/{task → debt}/context.d.ts +1 -1
  178. package/build/src/{task → debt}/context.js +1 -1
  179. package/build/src/{task → debt}/created-observation.d.ts +6 -10
  180. package/build/src/{task → debt}/created-observation.js +7 -7
  181. package/build/src/debt/document.d.ts +37 -0
  182. package/build/src/{task → debt}/document.js +37 -37
  183. package/build/src/debt/identity.d.ts +21 -0
  184. package/build/src/{task → debt}/identity.js +35 -35
  185. package/build/src/debt/index.d.ts +111 -0
  186. package/build/src/debt/index.js +203 -0
  187. package/build/src/{task → debt}/input.d.ts +8 -8
  188. package/build/src/{task → debt}/input.js +21 -21
  189. package/build/src/debt/lifecycle-operations.d.ts +6 -0
  190. package/build/src/{task → debt}/lifecycle-operations.js +27 -31
  191. package/build/src/debt/mutation-result.d.ts +981 -0
  192. package/build/src/debt/mutation-result.js +109 -0
  193. package/build/src/debt/mutation.d.ts +424 -0
  194. package/build/src/debt/mutation.js +223 -0
  195. package/build/src/debt/operation-types.d.ts +71 -0
  196. package/build/src/debt/operations.d.ts +28 -0
  197. package/build/src/{task → debt}/operations.js +59 -60
  198. package/build/src/debt/query.d.ts +76 -0
  199. package/build/src/{task → debt}/query.js +55 -55
  200. package/build/src/{task → debt}/store.d.ts +13 -13
  201. package/build/src/{task → debt}/store.js +58 -49
  202. package/build/src/debt/view.d.ts +4 -0
  203. package/build/src/debt/view.js +7 -0
  204. package/build/src/dispatch/index.d.ts +3 -3
  205. package/build/src/dispatch/index.js +1 -2
  206. package/build/src/git/observe.d.ts +6 -2
  207. package/build/src/git/observe.js +6 -2
  208. package/build/src/identity/coordinates.d.ts +1 -1
  209. package/build/src/index.d.ts +17 -17
  210. package/build/src/index.js +11 -11
  211. package/build/src/kanshi/index.d.ts +2 -2
  212. package/build/src/kanshi/read.js +54 -39
  213. package/build/src/kanshi/report.d.ts +7 -7
  214. package/build/src/kanshi/select.js +4 -4
  215. package/build/src/library/address.js +2 -4
  216. package/build/src/library/akuma-creation.d.ts +5 -1
  217. package/build/src/library/akuma-creation.js +27 -47
  218. package/build/src/library/akumas.d.ts +7 -7
  219. package/build/src/library/akumas.js +13 -9
  220. package/build/src/library/bind.d.ts +17 -17
  221. package/build/src/library/bind.js +16 -12
  222. package/build/src/library/contract-address.d.ts +9 -0
  223. package/build/src/library/contract-address.js +71 -0
  224. package/build/src/library/contract-composition.d.ts +4 -7
  225. package/build/src/library/contract-composition.js +6 -18
  226. package/build/src/library/contract-creation.d.ts +3 -5
  227. package/build/src/library/contract-creation.js +24 -22
  228. package/build/src/library/contract-execution.js +21 -26
  229. package/build/src/library/contract-outcomes.d.ts +2 -14
  230. package/build/src/library/contract-outcomes.js +2 -13
  231. package/build/src/library/contract-types.d.ts +38 -4
  232. package/build/src/library/delivery.d.ts +0 -2
  233. package/build/src/library/delivery.js +2 -5
  234. package/build/src/library/input.d.ts +2 -2
  235. package/build/src/library/input.js +5 -5
  236. package/build/src/library/invocation.js +2 -2
  237. package/build/src/library/keiyaku.d.ts +0 -5
  238. package/build/src/library/keiyaku.js +6 -12
  239. package/build/src/library/nuke.js +3 -3
  240. package/build/src/library/outcome.d.ts +626 -625
  241. package/build/src/library/outcome.js +13 -3
  242. package/build/src/library/reconcile.js +8 -16
  243. package/build/src/library/refusal.d.ts +2 -2
  244. package/build/src/library/repo.d.ts +3 -2
  245. package/build/src/library/repo.js +10 -5
  246. package/build/src/library/selection.d.ts +5 -8
  247. package/build/src/library/selection.js +22 -73
  248. package/build/src/plugin/akuma-signals.d.ts +2 -0
  249. package/build/src/plugin/akuma-signals.js +4 -0
  250. package/build/src/plugin/public.d.ts +32 -2
  251. package/build/src/plugin/runtime.js +5 -3
  252. package/build/src/protocol/amend.js +3 -2
  253. package/build/src/protocol/attempt.js +3 -8
  254. package/build/src/protocol/bind.d.ts +2 -2
  255. package/build/src/protocol/bind.js +1 -1
  256. package/build/src/protocol/deliver.js +3 -3
  257. package/build/src/protocol/operations.d.ts +1 -3
  258. package/build/src/protocol/operations.js +0 -8
  259. package/build/src/protocol/outcome.d.ts +1 -2
  260. package/build/src/protocol/outcome.js +1 -13
  261. package/build/src/protocol/placement.js +3 -10
  262. package/build/src/protocol/read/status.js +31 -70
  263. package/build/src/protocol/reintegrate.js +3 -10
  264. package/build/src/protocol/review.js +3 -3
  265. package/build/src/protocol/run.d.ts +5 -1
  266. package/build/src/protocol/run.js +3 -3
  267. package/build/src/runtime/proc/windows-launch.exe +0 -0
  268. package/build/src/settlement/fence.d.ts +3 -3
  269. package/build/src/settlement/fence.js +4 -4
  270. package/build/src/settlement/holder.d.ts +16 -16
  271. package/build/src/settlement/holder.js +69 -63
  272. package/build/src/settlement/settle.d.ts +5 -5
  273. package/build/src/settlement/settle.js +53 -53
  274. package/package.json +19 -9
  275. package/plugins/paseo/plugin/index.server.ts +17 -0
  276. package/plugins/paseo/plugin/paseo-plugin.json +4 -0
  277. package/plugins/paseo/plugin/server/attach.ts +52 -0
  278. package/plugins/paseo/plugin/server/keiyaku.ts +44 -0
  279. package/plugins/paseo/plugin/server/message.ts +60 -0
  280. package/plugins/paseo/plugin/server/mirror.ts +193 -0
  281. package/plugins/paseo/plugin/server/model.ts +14 -0
  282. package/plugins/paseo/plugin/server/provider.ts +276 -0
  283. package/plugins/paseo/plugin/server/sdk-worker.ts +237 -0
  284. package/plugins/paseo/plugin/server/sdk.ts +289 -0
  285. package/plugins/paseo/plugin/server/stop.ts +26 -0
  286. package/plugins/paseo/plugin/server/transport.ts +35 -0
  287. package/plugins/paseo/plugin/shared/attach-rpc.ts +10 -0
  288. package/plugins/paseo/plugin/shared/refresh-rpc.ts +6 -0
  289. package/plugins/paseo/plugin/tsconfig.json +6 -0
  290. package/plugins/pi/keiyaku.ts +57 -0
  291. package/skills/keiyaku/SKILL.md +43 -0
  292. package/skills/keiyaku-akuma/SKILL.md +130 -0
  293. package/skills/keiyaku-akuma/references/automation.md +269 -0
  294. package/skills/keiyaku-babysit/SKILL.md +65 -0
  295. package/skills/keiyaku-bind/SKILL.md +216 -0
  296. package/skills/keiyaku-bind/agents/openai.yaml +4 -0
  297. package/skills/keiyaku-debt/SKILL.md +91 -0
  298. package/skills/keiyaku-workflow/SKILL.md +129 -0
  299. package/build/plugins/claude/skills/keiyaku-task/SKILL.md +0 -104
  300. package/build/plugins/codex/skills/keiyaku-task/SKILL.md +0 -104
  301. package/build/plugins/opencode/skills/keiyaku-task/SKILL.md +0 -104
  302. package/build/skills/keiyaku-task/SKILL.md +0 -104
  303. package/build/src/cli/commands/amend.d.ts +0 -12
  304. package/build/src/cli/commands/amend.js +0 -10
  305. package/build/src/cli/commands/bind.d.ts +0 -11
  306. package/build/src/cli/commands/bind.js +0 -23
  307. package/build/src/cli/commands/task-grammar.d.ts +0 -19
  308. package/build/src/cli/commands/task-grammar.js +0 -384
  309. package/build/src/cli/commands/task-query.d.ts +0 -5
  310. package/build/src/cli/render/task.d.ts +0 -41
  311. package/build/src/dispatch/association.d.ts +0 -1
  312. package/build/src/dispatch/association.js +0 -1
  313. package/build/src/task/board.d.ts +0 -168
  314. package/build/src/task/catalog.d.ts +0 -11
  315. package/build/src/task/catalog.js +0 -59
  316. package/build/src/task/compose-language.d.ts +0 -57
  317. package/build/src/task/compose-language.js +0 -364
  318. package/build/src/task/compose-parser.d.ts +0 -32
  319. package/build/src/task/compose-parser.js +0 -180
  320. package/build/src/task/compose.d.ts +0 -16
  321. package/build/src/task/compose.js +0 -189
  322. package/build/src/task/document.d.ts +0 -39
  323. package/build/src/task/identity.d.ts +0 -21
  324. package/build/src/task/index.d.ts +0 -138
  325. package/build/src/task/index.js +0 -269
  326. package/build/src/task/lifecycle-operations.d.ts +0 -6
  327. package/build/src/task/mutation-result.d.ts +0 -1726
  328. package/build/src/task/mutation-result.js +0 -198
  329. package/build/src/task/mutation.d.ts +0 -590
  330. package/build/src/task/mutation.js +0 -262
  331. package/build/src/task/operation-types.d.ts +0 -71
  332. package/build/src/task/operations.d.ts +0 -28
  333. package/build/src/task/query.d.ts +0 -76
  334. package/build/src/task/view.d.ts +0 -4
  335. package/build/src/task/view.js +0 -7
  336. /package/build/src/{task → debt}/operation-types.js +0 -0
@@ -1,1726 +0,0 @@
1
- import { z } from "zod";
2
- export { taskIdSchema as taskMutationIdSchema } from "./identity.js";
3
- type WithoutUndefined<Value> = {
4
- [Key in keyof Value as undefined extends Value[Key] ? never : Key]: Value[Key];
5
- } & {
6
- [Key in keyof Value as undefined extends Value[Key] ? Key : never]?: Exclude<Value[Key], undefined>;
7
- };
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>]>;
116
- export declare const taskMutationResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
117
- kind: z.ZodLiteral<"accepted">;
118
- value: z.ZodPipe<z.ZodObject<{
119
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
120
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
121
- title: z.ZodString;
122
- state: z.ZodEnum<{
123
- open: "open";
124
- in_progress: "in_progress";
125
- on_hold: "on_hold";
126
- done: "done";
127
- drop: "drop";
128
- }>;
129
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
130
- needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
131
- parent: z.ZodNullable<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>>>>;
134
- note: z.ZodString;
135
- createdBy: z.ZodOptional<z.ZodString>;
136
- createdAt: z.ZodString;
137
- updatedAt: z.ZodString;
138
- body: z.ZodString;
139
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
140
- createdBy: string | undefined;
141
- id: `task/${string}`;
142
- namespace: readonly string[];
143
- title: string;
144
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
145
- priority: 0 | 1 | 2 | 3;
146
- needs: readonly `task/${string}`[];
147
- parent: `task/${string}` | null;
148
- supersedes: readonly `task/${string}`[];
149
- relates: readonly `task/${string}`[];
150
- note: string;
151
- createdAt: string;
152
- updatedAt: string;
153
- body: string;
154
- }>, {
155
- id: `task/${string}`;
156
- namespace: readonly string[];
157
- title: string;
158
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
159
- priority: 0 | 1 | 2 | 3;
160
- needs: readonly `task/${string}`[];
161
- parent: `task/${string}` | null;
162
- supersedes: readonly `task/${string}`[];
163
- relates: readonly `task/${string}`[];
164
- note: string;
165
- createdAt: string;
166
- updatedAt: string;
167
- body: string;
168
- createdBy?: string | undefined;
169
- }>>;
170
- cleanup: z.ZodOptional<z.ZodObject<{
171
- kind: z.ZodLiteral<"lock-release-failed">;
172
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
173
- }, z.core.$strict>>;
174
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
175
- kind: "accepted";
176
- value: WithoutUndefined<{
177
- createdBy: string | undefined;
178
- id: `task/${string}`;
179
- namespace: readonly string[];
180
- title: string;
181
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
182
- priority: 0 | 1 | 2 | 3;
183
- needs: readonly `task/${string}`[];
184
- parent: `task/${string}` | null;
185
- supersedes: readonly `task/${string}`[];
186
- relates: readonly `task/${string}`[];
187
- note: string;
188
- createdAt: string;
189
- updatedAt: string;
190
- body: string;
191
- }>;
192
- cleanup?: {
193
- kind: "lock-release-failed";
194
- diagnostics: readonly string[];
195
- } | undefined;
196
- }>, {
197
- kind: "accepted";
198
- value: WithoutUndefined<{
199
- createdBy: string | undefined;
200
- id: `task/${string}`;
201
- namespace: readonly string[];
202
- title: string;
203
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
204
- priority: 0 | 1 | 2 | 3;
205
- needs: readonly `task/${string}`[];
206
- parent: `task/${string}` | null;
207
- supersedes: readonly `task/${string}`[];
208
- relates: readonly `task/${string}`[];
209
- note: string;
210
- createdAt: string;
211
- updatedAt: string;
212
- body: string;
213
- }>;
214
- cleanup?: {
215
- kind: "lock-release-failed";
216
- diagnostics: readonly string[];
217
- } | undefined;
218
- }>>, z.ZodObject<{
219
- kind: z.ZodLiteral<"refused">;
220
- refusal: z.ZodUnion<readonly [z.ZodObject<{
221
- kind: z.ZodLiteral<"task-missing">;
222
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
223
- }, z.core.$strict>, z.ZodObject<{
224
- kind: z.ZodLiteral<"invalid-lifecycle-transition">;
225
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
226
- state: z.ZodEnum<{
227
- open: "open";
228
- in_progress: "in_progress";
229
- on_hold: "on_hold";
230
- done: "done";
231
- drop: "drop";
232
- }>;
233
- verb: z.ZodEnum<{
234
- done: "done";
235
- drop: "drop";
236
- start: "start";
237
- stop: "stop";
238
- hold: "hold";
239
- resume: "resume";
240
- }>;
241
- }, z.core.$strict>, z.ZodObject<{
242
- kind: z.ZodLiteral<"invalid-graph">;
243
- diagnostic: z.ZodString;
244
- }, z.core.$strict>, z.ZodObject<{
245
- kind: z.ZodLiteral<"invalid-namespace-context">;
246
- path: z.ZodString;
247
- }, z.core.$strict>, z.ZodObject<{
248
- kind: z.ZodLiteral<"relation-owned-by-other">;
249
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
250
- related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
251
- declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
252
- }, z.core.$strict>, z.ZodObject<{
253
- kind: z.ZodLiteral<"invalid-composition">;
254
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
255
- line: z.ZodNumber;
256
- reason: z.ZodString;
257
- token: z.ZodString;
258
- }, z.core.$strict>>>;
259
- }, z.core.$strict>]>;
260
- }, z.core.$strict>, z.ZodObject<{
261
- kind: z.ZodLiteral<"retry">;
262
- reason: z.ZodEnum<{
263
- "concurrent-modification": "concurrent-modification";
264
- busy: "busy";
265
- }>;
266
- }, z.core.$strict>]>;
267
- export declare const taskUpdateResultSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
268
- kind: z.ZodLiteral<"accepted">;
269
- value: z.ZodObject<{
270
- task: z.ZodPipe<z.ZodObject<{
271
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
272
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
273
- title: z.ZodString;
274
- state: z.ZodEnum<{
275
- open: "open";
276
- in_progress: "in_progress";
277
- on_hold: "on_hold";
278
- done: "done";
279
- drop: "drop";
280
- }>;
281
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
282
- needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
283
- parent: z.ZodNullable<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>>>>;
286
- note: z.ZodString;
287
- createdBy: z.ZodOptional<z.ZodString>;
288
- createdAt: z.ZodString;
289
- updatedAt: z.ZodString;
290
- body: z.ZodString;
291
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
292
- createdBy: string | undefined;
293
- id: `task/${string}`;
294
- namespace: readonly string[];
295
- title: string;
296
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
297
- priority: 0 | 1 | 2 | 3;
298
- needs: readonly `task/${string}`[];
299
- parent: `task/${string}` | null;
300
- supersedes: readonly `task/${string}`[];
301
- relates: readonly `task/${string}`[];
302
- note: string;
303
- createdAt: string;
304
- updatedAt: string;
305
- body: string;
306
- }>, {
307
- id: `task/${string}`;
308
- namespace: readonly string[];
309
- title: string;
310
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
311
- priority: 0 | 1 | 2 | 3;
312
- needs: readonly `task/${string}`[];
313
- parent: `task/${string}` | null;
314
- supersedes: readonly `task/${string}`[];
315
- relates: readonly `task/${string}`[];
316
- note: string;
317
- createdAt: string;
318
- updatedAt: string;
319
- body: string;
320
- createdBy?: string | undefined;
321
- }>>;
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>>>;
333
- }, z.core.$strict>;
334
- cleanup: z.ZodOptional<z.ZodObject<{
335
- kind: z.ZodLiteral<"lock-release-failed">;
336
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
337
- }, z.core.$strict>>;
338
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
339
- kind: "accepted";
340
- value: {
341
- task: WithoutUndefined<{
342
- createdBy: string | undefined;
343
- id: `task/${string}`;
344
- namespace: readonly string[];
345
- title: string;
346
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
347
- priority: 0 | 1 | 2 | 3;
348
- needs: readonly `task/${string}`[];
349
- parent: `task/${string}` | null;
350
- supersedes: readonly `task/${string}`[];
351
- relates: readonly `task/${string}`[];
352
- note: string;
353
- createdAt: string;
354
- updatedAt: string;
355
- body: string;
356
- }>;
357
- documentDiff: string;
358
- changedFields: readonly {
359
- field: string;
360
- action: "replaced" | "changed" | "added" | "cleared" | "appended";
361
- }[];
362
- };
363
- cleanup?: {
364
- kind: "lock-release-failed";
365
- diagnostics: readonly string[];
366
- } | undefined;
367
- }>, {
368
- kind: "accepted";
369
- value: {
370
- task: WithoutUndefined<{
371
- createdBy: string | undefined;
372
- id: `task/${string}`;
373
- namespace: readonly string[];
374
- title: string;
375
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
376
- priority: 0 | 1 | 2 | 3;
377
- needs: readonly `task/${string}`[];
378
- parent: `task/${string}` | null;
379
- supersedes: readonly `task/${string}`[];
380
- relates: readonly `task/${string}`[];
381
- note: string;
382
- createdAt: string;
383
- updatedAt: string;
384
- body: string;
385
- }>;
386
- documentDiff: string;
387
- changedFields: readonly {
388
- field: string;
389
- action: "replaced" | "changed" | "added" | "cleared" | "appended";
390
- }[];
391
- };
392
- cleanup?: {
393
- kind: "lock-release-failed";
394
- diagnostics: readonly string[];
395
- } | undefined;
396
- }>>, z.ZodObject<{
397
- kind: z.ZodLiteral<"refused">;
398
- refusal: z.ZodUnion<readonly [z.ZodObject<{
399
- kind: z.ZodLiteral<"task-missing">;
400
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
401
- }, z.core.$strict>, z.ZodObject<{
402
- kind: z.ZodLiteral<"invalid-lifecycle-transition">;
403
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
404
- state: z.ZodEnum<{
405
- open: "open";
406
- in_progress: "in_progress";
407
- on_hold: "on_hold";
408
- done: "done";
409
- drop: "drop";
410
- }>;
411
- verb: z.ZodEnum<{
412
- done: "done";
413
- drop: "drop";
414
- start: "start";
415
- stop: "stop";
416
- hold: "hold";
417
- resume: "resume";
418
- }>;
419
- }, z.core.$strict>, z.ZodObject<{
420
- kind: z.ZodLiteral<"invalid-graph">;
421
- diagnostic: z.ZodString;
422
- }, z.core.$strict>, z.ZodObject<{
423
- kind: z.ZodLiteral<"invalid-namespace-context">;
424
- path: z.ZodString;
425
- }, z.core.$strict>, z.ZodObject<{
426
- kind: z.ZodLiteral<"relation-owned-by-other">;
427
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
428
- related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
429
- declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
430
- }, z.core.$strict>, z.ZodObject<{
431
- kind: z.ZodLiteral<"invalid-composition">;
432
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
433
- line: z.ZodNumber;
434
- reason: z.ZodString;
435
- token: z.ZodString;
436
- }, z.core.$strict>>>;
437
- }, z.core.$strict>]>;
438
- }, z.core.$strict>, z.ZodObject<{
439
- kind: z.ZodLiteral<"retry">;
440
- reason: z.ZodEnum<{
441
- "concurrent-modification": "concurrent-modification";
442
- busy: "busy";
443
- }>;
444
- }, z.core.$strict>]>;
445
- export declare const taskBatchResultSchema: z.ZodObject<{
446
- items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
447
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
448
- outcome: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
449
- kind: z.ZodLiteral<"accepted">;
450
- value: z.ZodPipe<z.ZodObject<{
451
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
452
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
453
- title: z.ZodString;
454
- state: z.ZodEnum<{
455
- open: "open";
456
- in_progress: "in_progress";
457
- on_hold: "on_hold";
458
- done: "done";
459
- drop: "drop";
460
- }>;
461
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
462
- needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
463
- parent: z.ZodNullable<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>>>>;
466
- note: z.ZodString;
467
- createdBy: z.ZodOptional<z.ZodString>;
468
- createdAt: z.ZodString;
469
- updatedAt: z.ZodString;
470
- body: z.ZodString;
471
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
472
- createdBy: string | undefined;
473
- id: `task/${string}`;
474
- namespace: readonly string[];
475
- title: string;
476
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
477
- priority: 0 | 1 | 2 | 3;
478
- needs: readonly `task/${string}`[];
479
- parent: `task/${string}` | null;
480
- supersedes: readonly `task/${string}`[];
481
- relates: readonly `task/${string}`[];
482
- note: string;
483
- createdAt: string;
484
- updatedAt: string;
485
- body: string;
486
- }>, {
487
- id: `task/${string}`;
488
- namespace: readonly string[];
489
- title: string;
490
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
491
- priority: 0 | 1 | 2 | 3;
492
- needs: readonly `task/${string}`[];
493
- parent: `task/${string}` | null;
494
- supersedes: readonly `task/${string}`[];
495
- relates: readonly `task/${string}`[];
496
- note: string;
497
- createdAt: string;
498
- updatedAt: string;
499
- body: string;
500
- createdBy?: string | undefined;
501
- }>>;
502
- cleanup: z.ZodOptional<z.ZodObject<{
503
- kind: z.ZodLiteral<"lock-release-failed">;
504
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
505
- }, z.core.$strict>>;
506
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
507
- kind: "accepted";
508
- value: WithoutUndefined<{
509
- createdBy: string | undefined;
510
- id: `task/${string}`;
511
- namespace: readonly string[];
512
- title: string;
513
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
514
- priority: 0 | 1 | 2 | 3;
515
- needs: readonly `task/${string}`[];
516
- parent: `task/${string}` | null;
517
- supersedes: readonly `task/${string}`[];
518
- relates: readonly `task/${string}`[];
519
- note: string;
520
- createdAt: string;
521
- updatedAt: string;
522
- body: string;
523
- }>;
524
- cleanup?: {
525
- kind: "lock-release-failed";
526
- diagnostics: readonly string[];
527
- } | undefined;
528
- }>, {
529
- kind: "accepted";
530
- value: WithoutUndefined<{
531
- createdBy: string | undefined;
532
- id: `task/${string}`;
533
- namespace: readonly string[];
534
- title: string;
535
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
536
- priority: 0 | 1 | 2 | 3;
537
- needs: readonly `task/${string}`[];
538
- parent: `task/${string}` | null;
539
- supersedes: readonly `task/${string}`[];
540
- relates: readonly `task/${string}`[];
541
- note: string;
542
- createdAt: string;
543
- updatedAt: string;
544
- body: string;
545
- }>;
546
- cleanup?: {
547
- kind: "lock-release-failed";
548
- diagnostics: readonly string[];
549
- } | undefined;
550
- }>>, z.ZodObject<{
551
- kind: z.ZodLiteral<"refused">;
552
- refusal: z.ZodUnion<readonly [z.ZodObject<{
553
- kind: z.ZodLiteral<"task-missing">;
554
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
555
- }, z.core.$strict>, z.ZodObject<{
556
- kind: z.ZodLiteral<"invalid-lifecycle-transition">;
557
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
558
- state: z.ZodEnum<{
559
- open: "open";
560
- in_progress: "in_progress";
561
- on_hold: "on_hold";
562
- done: "done";
563
- drop: "drop";
564
- }>;
565
- verb: z.ZodEnum<{
566
- done: "done";
567
- drop: "drop";
568
- start: "start";
569
- stop: "stop";
570
- hold: "hold";
571
- resume: "resume";
572
- }>;
573
- }, z.core.$strict>, z.ZodObject<{
574
- kind: z.ZodLiteral<"invalid-graph">;
575
- diagnostic: z.ZodString;
576
- }, z.core.$strict>, z.ZodObject<{
577
- kind: z.ZodLiteral<"invalid-namespace-context">;
578
- path: z.ZodString;
579
- }, z.core.$strict>, z.ZodObject<{
580
- kind: z.ZodLiteral<"relation-owned-by-other">;
581
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
582
- related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
583
- declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
584
- }, z.core.$strict>, z.ZodObject<{
585
- kind: z.ZodLiteral<"invalid-composition">;
586
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
587
- line: z.ZodNumber;
588
- reason: z.ZodString;
589
- token: z.ZodString;
590
- }, z.core.$strict>>>;
591
- }, z.core.$strict>]>;
592
- }, z.core.$strict>, z.ZodObject<{
593
- kind: z.ZodLiteral<"retry">;
594
- reason: z.ZodEnum<{
595
- "concurrent-modification": "concurrent-modification";
596
- busy: "busy";
597
- }>;
598
- }, z.core.$strict>]>;
599
- }, z.core.$strict>>>;
600
- }, z.core.$strict>;
601
- export declare const taskCompositionResultSchema: z.ZodUnion<readonly [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;
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;
626
- bytes: z.ZodNumber;
627
- firstLine: z.ZodString;
628
- lastLine: z.ZodString;
629
- }, z.core.$strict>>>;
630
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
631
- documentChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
632
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
633
- kind: z.ZodEnum<{
634
- created: "created";
635
- updated: "updated";
636
- }>;
637
- documentDiff: z.ZodString;
638
- }, z.core.$strict>>>;
639
- cleanup: z.ZodOptional<z.ZodObject<{
640
- kind: z.ZodLiteral<"lock-release-failed">;
641
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
642
- }, z.core.$strict>>;
643
- aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
644
- alias: z.ZodString;
645
- taskId: 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">>>;
659
- kind: z.ZodLiteral<"accepted">;
660
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
661
- documentChanges: readonly {
662
- taskId: `task/${string}`;
663
- kind: "created" | "updated";
664
- documentDiff: string;
665
- }[];
666
- aliases: readonly {
667
- alias: string;
668
- taskId: `task/${string}`;
669
- }[];
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
- })[];
682
- kind: "accepted";
683
- cleanup?: {
684
- kind: "lock-release-failed";
685
- diagnostics: readonly string[];
686
- } | undefined;
687
- }>, {
688
- documentChanges: readonly {
689
- taskId: `task/${string}`;
690
- kind: "created" | "updated";
691
- documentDiff: string;
692
- }[];
693
- aliases: readonly {
694
- alias: string;
695
- taskId: `task/${string}`;
696
- }[];
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
- })[];
709
- kind: "accepted";
710
- cleanup?: {
711
- kind: "lock-release-failed";
712
- diagnostics: readonly string[];
713
- } | undefined;
714
- }>>, z.ZodObject<{
715
- kind: z.ZodLiteral<"refused">;
716
- refusal: z.ZodObject<{
717
- kind: z.ZodLiteral<"invalid-composition">;
718
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
719
- line: z.ZodNumber;
720
- reason: z.ZodString;
721
- token: z.ZodString;
722
- }, z.core.$strict>>>;
723
- }, z.core.$strict>;
724
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
725
- documentChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
726
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
727
- kind: z.ZodEnum<{
728
- created: "created";
729
- updated: "updated";
730
- }>;
731
- documentDiff: z.ZodString;
732
- }, z.core.$strict>>>;
733
- cleanup: z.ZodOptional<z.ZodObject<{
734
- kind: z.ZodLiteral<"lock-release-failed">;
735
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
736
- }, z.core.$strict>>;
737
- stopped: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
738
- kind: z.ZodLiteral<"task-missing">;
739
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
740
- }, z.core.$strict>, z.ZodObject<{
741
- kind: z.ZodLiteral<"invalid-lifecycle-transition">;
742
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
743
- state: z.ZodEnum<{
744
- open: "open";
745
- in_progress: "in_progress";
746
- on_hold: "on_hold";
747
- done: "done";
748
- drop: "drop";
749
- }>;
750
- verb: z.ZodEnum<{
751
- done: "done";
752
- drop: "drop";
753
- start: "start";
754
- stop: "stop";
755
- hold: "hold";
756
- resume: "resume";
757
- }>;
758
- }, z.core.$strict>, z.ZodObject<{
759
- kind: z.ZodLiteral<"invalid-graph">;
760
- diagnostic: z.ZodString;
761
- }, z.core.$strict>, z.ZodObject<{
762
- kind: z.ZodLiteral<"invalid-namespace-context">;
763
- path: z.ZodString;
764
- }, z.core.$strict>, z.ZodObject<{
765
- kind: z.ZodLiteral<"relation-owned-by-other">;
766
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
767
- related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
768
- declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
769
- }, z.core.$strict>, z.ZodObject<{
770
- kind: z.ZodLiteral<"invalid-composition">;
771
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
772
- line: z.ZodNumber;
773
- reason: z.ZodString;
774
- token: z.ZodString;
775
- }, z.core.$strict>>>;
776
- }, z.core.$strict>]>, z.ZodObject<{
777
- kind: z.ZodLiteral<"retry">;
778
- reason: z.ZodEnum<{
779
- "concurrent-modification": "concurrent-modification";
780
- busy: "busy";
781
- }>;
782
- }, z.core.$strict>]>;
783
- draft: z.ZodString;
784
- aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
785
- alias: z.ZodString;
786
- taskId: 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">>>;
800
- kind: z.ZodLiteral<"incomplete">;
801
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
802
- documentChanges: readonly {
803
- taskId: `task/${string}`;
804
- kind: "created" | "updated";
805
- documentDiff: string;
806
- }[];
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
- } | {
818
- kind: "task-missing";
819
- taskId: `task/${string}`;
820
- } | {
821
- kind: "invalid-lifecycle-transition";
822
- taskId: `task/${string}`;
823
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
824
- verb: "done" | "drop" | "start" | "stop" | "hold" | "resume";
825
- } | {
826
- kind: "invalid-graph";
827
- diagnostic: string;
828
- } | {
829
- kind: "invalid-namespace-context";
830
- path: string;
831
- } | {
832
- kind: "relation-owned-by-other";
833
- taskId: `task/${string}`;
834
- related: `task/${string}`;
835
- declaringTask: `task/${string}`;
836
- };
837
- draft: string;
838
- aliases: readonly {
839
- alias: string;
840
- taskId: `task/${string}`;
841
- }[];
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
- })[];
854
- kind: "incomplete";
855
- cleanup?: {
856
- kind: "lock-release-failed";
857
- diagnostics: readonly string[];
858
- } | undefined;
859
- }>, {
860
- documentChanges: readonly {
861
- taskId: `task/${string}`;
862
- kind: "created" | "updated";
863
- documentDiff: string;
864
- }[];
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
- } | {
876
- kind: "task-missing";
877
- taskId: `task/${string}`;
878
- } | {
879
- kind: "invalid-lifecycle-transition";
880
- taskId: `task/${string}`;
881
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
882
- verb: "done" | "drop" | "start" | "stop" | "hold" | "resume";
883
- } | {
884
- kind: "invalid-graph";
885
- diagnostic: string;
886
- } | {
887
- kind: "invalid-namespace-context";
888
- path: string;
889
- } | {
890
- kind: "relation-owned-by-other";
891
- taskId: `task/${string}`;
892
- related: `task/${string}`;
893
- declaringTask: `task/${string}`;
894
- };
895
- draft: string;
896
- aliases: readonly {
897
- alias: string;
898
- taskId: `task/${string}`;
899
- }[];
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
- })[];
912
- kind: "incomplete";
913
- cleanup?: {
914
- kind: "lock-release-failed";
915
- diagnostics: readonly string[];
916
- } | undefined;
917
- }>>]>;
918
- export declare const taskMutationExecutionResultSchema: z.ZodUnion<readonly [z.ZodObject<{
919
- items: z.ZodReadonly<z.ZodArray<z.ZodObject<{
920
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
921
- outcome: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
922
- kind: z.ZodLiteral<"accepted">;
923
- value: z.ZodPipe<z.ZodObject<{
924
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
925
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
926
- title: z.ZodString;
927
- state: z.ZodEnum<{
928
- open: "open";
929
- in_progress: "in_progress";
930
- on_hold: "on_hold";
931
- done: "done";
932
- drop: "drop";
933
- }>;
934
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
935
- needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
936
- parent: z.ZodNullable<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>>>>;
939
- note: z.ZodString;
940
- createdBy: z.ZodOptional<z.ZodString>;
941
- createdAt: z.ZodString;
942
- updatedAt: z.ZodString;
943
- body: z.ZodString;
944
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
945
- createdBy: string | undefined;
946
- id: `task/${string}`;
947
- namespace: readonly string[];
948
- title: string;
949
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
950
- priority: 0 | 1 | 2 | 3;
951
- needs: readonly `task/${string}`[];
952
- parent: `task/${string}` | null;
953
- supersedes: readonly `task/${string}`[];
954
- relates: readonly `task/${string}`[];
955
- note: string;
956
- createdAt: string;
957
- updatedAt: string;
958
- body: string;
959
- }>, {
960
- id: `task/${string}`;
961
- namespace: readonly string[];
962
- title: string;
963
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
964
- priority: 0 | 1 | 2 | 3;
965
- needs: readonly `task/${string}`[];
966
- parent: `task/${string}` | null;
967
- supersedes: readonly `task/${string}`[];
968
- relates: readonly `task/${string}`[];
969
- note: string;
970
- createdAt: string;
971
- updatedAt: string;
972
- body: string;
973
- createdBy?: string | undefined;
974
- }>>;
975
- cleanup: z.ZodOptional<z.ZodObject<{
976
- kind: z.ZodLiteral<"lock-release-failed">;
977
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
978
- }, z.core.$strict>>;
979
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
980
- kind: "accepted";
981
- value: WithoutUndefined<{
982
- createdBy: string | undefined;
983
- id: `task/${string}`;
984
- namespace: readonly string[];
985
- title: string;
986
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
987
- priority: 0 | 1 | 2 | 3;
988
- needs: readonly `task/${string}`[];
989
- parent: `task/${string}` | null;
990
- supersedes: readonly `task/${string}`[];
991
- relates: readonly `task/${string}`[];
992
- note: string;
993
- createdAt: string;
994
- updatedAt: string;
995
- body: string;
996
- }>;
997
- cleanup?: {
998
- kind: "lock-release-failed";
999
- diagnostics: readonly string[];
1000
- } | undefined;
1001
- }>, {
1002
- kind: "accepted";
1003
- value: WithoutUndefined<{
1004
- createdBy: string | undefined;
1005
- id: `task/${string}`;
1006
- namespace: readonly string[];
1007
- title: string;
1008
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1009
- priority: 0 | 1 | 2 | 3;
1010
- needs: readonly `task/${string}`[];
1011
- parent: `task/${string}` | null;
1012
- supersedes: readonly `task/${string}`[];
1013
- relates: readonly `task/${string}`[];
1014
- note: string;
1015
- createdAt: string;
1016
- updatedAt: string;
1017
- body: string;
1018
- }>;
1019
- cleanup?: {
1020
- kind: "lock-release-failed";
1021
- diagnostics: readonly string[];
1022
- } | undefined;
1023
- }>>, z.ZodObject<{
1024
- kind: z.ZodLiteral<"refused">;
1025
- refusal: z.ZodUnion<readonly [z.ZodObject<{
1026
- kind: z.ZodLiteral<"task-missing">;
1027
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1028
- }, z.core.$strict>, z.ZodObject<{
1029
- kind: z.ZodLiteral<"invalid-lifecycle-transition">;
1030
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1031
- state: z.ZodEnum<{
1032
- open: "open";
1033
- in_progress: "in_progress";
1034
- on_hold: "on_hold";
1035
- done: "done";
1036
- drop: "drop";
1037
- }>;
1038
- verb: z.ZodEnum<{
1039
- done: "done";
1040
- drop: "drop";
1041
- start: "start";
1042
- stop: "stop";
1043
- hold: "hold";
1044
- resume: "resume";
1045
- }>;
1046
- }, z.core.$strict>, z.ZodObject<{
1047
- kind: z.ZodLiteral<"invalid-graph">;
1048
- diagnostic: z.ZodString;
1049
- }, z.core.$strict>, z.ZodObject<{
1050
- kind: z.ZodLiteral<"invalid-namespace-context">;
1051
- path: z.ZodString;
1052
- }, z.core.$strict>, z.ZodObject<{
1053
- kind: z.ZodLiteral<"relation-owned-by-other">;
1054
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1055
- related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1056
- declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1057
- }, z.core.$strict>, z.ZodObject<{
1058
- kind: z.ZodLiteral<"invalid-composition">;
1059
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1060
- line: z.ZodNumber;
1061
- reason: z.ZodString;
1062
- token: z.ZodString;
1063
- }, z.core.$strict>>>;
1064
- }, z.core.$strict>]>;
1065
- }, z.core.$strict>, z.ZodObject<{
1066
- kind: z.ZodLiteral<"retry">;
1067
- reason: z.ZodEnum<{
1068
- "concurrent-modification": "concurrent-modification";
1069
- busy: "busy";
1070
- }>;
1071
- }, z.core.$strict>]>;
1072
- }, z.core.$strict>>>;
1073
- }, z.core.$strict>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1074
- kind: z.ZodLiteral<"accepted">;
1075
- value: z.ZodPipe<z.ZodObject<{
1076
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1077
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1078
- title: z.ZodString;
1079
- state: z.ZodEnum<{
1080
- open: "open";
1081
- in_progress: "in_progress";
1082
- on_hold: "on_hold";
1083
- done: "done";
1084
- drop: "drop";
1085
- }>;
1086
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1087
- needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1088
- parent: z.ZodNullable<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>>>>;
1091
- note: z.ZodString;
1092
- createdBy: z.ZodOptional<z.ZodString>;
1093
- createdAt: z.ZodString;
1094
- updatedAt: z.ZodString;
1095
- body: z.ZodString;
1096
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1097
- createdBy: string | undefined;
1098
- id: `task/${string}`;
1099
- namespace: readonly string[];
1100
- title: string;
1101
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1102
- priority: 0 | 1 | 2 | 3;
1103
- needs: readonly `task/${string}`[];
1104
- parent: `task/${string}` | null;
1105
- supersedes: readonly `task/${string}`[];
1106
- relates: readonly `task/${string}`[];
1107
- note: string;
1108
- createdAt: string;
1109
- updatedAt: string;
1110
- body: string;
1111
- }>, {
1112
- id: `task/${string}`;
1113
- namespace: readonly string[];
1114
- title: string;
1115
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1116
- priority: 0 | 1 | 2 | 3;
1117
- needs: readonly `task/${string}`[];
1118
- parent: `task/${string}` | null;
1119
- supersedes: readonly `task/${string}`[];
1120
- relates: readonly `task/${string}`[];
1121
- note: string;
1122
- createdAt: string;
1123
- updatedAt: string;
1124
- body: string;
1125
- createdBy?: string | undefined;
1126
- }>>;
1127
- cleanup: z.ZodOptional<z.ZodObject<{
1128
- kind: z.ZodLiteral<"lock-release-failed">;
1129
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1130
- }, z.core.$strict>>;
1131
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1132
- kind: "accepted";
1133
- value: WithoutUndefined<{
1134
- createdBy: string | undefined;
1135
- id: `task/${string}`;
1136
- namespace: readonly string[];
1137
- title: string;
1138
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1139
- priority: 0 | 1 | 2 | 3;
1140
- needs: readonly `task/${string}`[];
1141
- parent: `task/${string}` | null;
1142
- supersedes: readonly `task/${string}`[];
1143
- relates: readonly `task/${string}`[];
1144
- note: string;
1145
- createdAt: string;
1146
- updatedAt: string;
1147
- body: string;
1148
- }>;
1149
- cleanup?: {
1150
- kind: "lock-release-failed";
1151
- diagnostics: readonly string[];
1152
- } | undefined;
1153
- }>, {
1154
- kind: "accepted";
1155
- value: WithoutUndefined<{
1156
- createdBy: string | undefined;
1157
- id: `task/${string}`;
1158
- namespace: readonly string[];
1159
- title: string;
1160
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1161
- priority: 0 | 1 | 2 | 3;
1162
- needs: readonly `task/${string}`[];
1163
- parent: `task/${string}` | null;
1164
- supersedes: readonly `task/${string}`[];
1165
- relates: readonly `task/${string}`[];
1166
- note: string;
1167
- createdAt: string;
1168
- updatedAt: string;
1169
- body: string;
1170
- }>;
1171
- cleanup?: {
1172
- kind: "lock-release-failed";
1173
- diagnostics: readonly string[];
1174
- } | undefined;
1175
- }>>, z.ZodObject<{
1176
- kind: z.ZodLiteral<"refused">;
1177
- refusal: z.ZodUnion<readonly [z.ZodObject<{
1178
- kind: z.ZodLiteral<"task-missing">;
1179
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1180
- }, z.core.$strict>, z.ZodObject<{
1181
- kind: z.ZodLiteral<"invalid-lifecycle-transition">;
1182
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1183
- state: z.ZodEnum<{
1184
- open: "open";
1185
- in_progress: "in_progress";
1186
- on_hold: "on_hold";
1187
- done: "done";
1188
- drop: "drop";
1189
- }>;
1190
- verb: z.ZodEnum<{
1191
- done: "done";
1192
- drop: "drop";
1193
- start: "start";
1194
- stop: "stop";
1195
- hold: "hold";
1196
- resume: "resume";
1197
- }>;
1198
- }, z.core.$strict>, z.ZodObject<{
1199
- kind: z.ZodLiteral<"invalid-graph">;
1200
- diagnostic: z.ZodString;
1201
- }, z.core.$strict>, z.ZodObject<{
1202
- kind: z.ZodLiteral<"invalid-namespace-context">;
1203
- path: z.ZodString;
1204
- }, z.core.$strict>, z.ZodObject<{
1205
- kind: z.ZodLiteral<"relation-owned-by-other">;
1206
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1207
- related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1208
- declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1209
- }, z.core.$strict>, z.ZodObject<{
1210
- kind: z.ZodLiteral<"invalid-composition">;
1211
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1212
- line: z.ZodNumber;
1213
- reason: z.ZodString;
1214
- token: z.ZodString;
1215
- }, z.core.$strict>>>;
1216
- }, z.core.$strict>]>;
1217
- }, z.core.$strict>, z.ZodObject<{
1218
- kind: z.ZodLiteral<"retry">;
1219
- reason: z.ZodEnum<{
1220
- "concurrent-modification": "concurrent-modification";
1221
- busy: "busy";
1222
- }>;
1223
- }, z.core.$strict>]>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1224
- kind: z.ZodLiteral<"accepted">;
1225
- value: z.ZodObject<{
1226
- task: z.ZodPipe<z.ZodObject<{
1227
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1228
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1229
- title: z.ZodString;
1230
- state: z.ZodEnum<{
1231
- open: "open";
1232
- in_progress: "in_progress";
1233
- on_hold: "on_hold";
1234
- done: "done";
1235
- drop: "drop";
1236
- }>;
1237
- priority: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
1238
- needs: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
1239
- parent: z.ZodNullable<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>>>>;
1242
- note: z.ZodString;
1243
- createdBy: z.ZodOptional<z.ZodString>;
1244
- createdAt: z.ZodString;
1245
- updatedAt: z.ZodString;
1246
- body: z.ZodString;
1247
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1248
- createdBy: string | undefined;
1249
- id: `task/${string}`;
1250
- namespace: readonly string[];
1251
- title: string;
1252
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1253
- priority: 0 | 1 | 2 | 3;
1254
- needs: readonly `task/${string}`[];
1255
- parent: `task/${string}` | null;
1256
- supersedes: readonly `task/${string}`[];
1257
- relates: readonly `task/${string}`[];
1258
- note: string;
1259
- createdAt: string;
1260
- updatedAt: string;
1261
- body: string;
1262
- }>, {
1263
- id: `task/${string}`;
1264
- namespace: readonly string[];
1265
- title: string;
1266
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1267
- priority: 0 | 1 | 2 | 3;
1268
- needs: readonly `task/${string}`[];
1269
- parent: `task/${string}` | null;
1270
- supersedes: readonly `task/${string}`[];
1271
- relates: readonly `task/${string}`[];
1272
- note: string;
1273
- createdAt: string;
1274
- updatedAt: string;
1275
- body: string;
1276
- createdBy?: string | undefined;
1277
- }>>;
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>>>;
1289
- }, z.core.$strict>;
1290
- cleanup: z.ZodOptional<z.ZodObject<{
1291
- kind: z.ZodLiteral<"lock-release-failed">;
1292
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1293
- }, z.core.$strict>>;
1294
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1295
- kind: "accepted";
1296
- value: {
1297
- task: WithoutUndefined<{
1298
- createdBy: string | undefined;
1299
- id: `task/${string}`;
1300
- namespace: readonly string[];
1301
- title: string;
1302
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1303
- priority: 0 | 1 | 2 | 3;
1304
- needs: readonly `task/${string}`[];
1305
- parent: `task/${string}` | null;
1306
- supersedes: readonly `task/${string}`[];
1307
- relates: readonly `task/${string}`[];
1308
- note: string;
1309
- createdAt: string;
1310
- updatedAt: string;
1311
- body: string;
1312
- }>;
1313
- documentDiff: string;
1314
- changedFields: readonly {
1315
- field: string;
1316
- action: "replaced" | "changed" | "added" | "cleared" | "appended";
1317
- }[];
1318
- };
1319
- cleanup?: {
1320
- kind: "lock-release-failed";
1321
- diagnostics: readonly string[];
1322
- } | undefined;
1323
- }>, {
1324
- kind: "accepted";
1325
- value: {
1326
- task: WithoutUndefined<{
1327
- createdBy: string | undefined;
1328
- id: `task/${string}`;
1329
- namespace: readonly string[];
1330
- title: string;
1331
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1332
- priority: 0 | 1 | 2 | 3;
1333
- needs: readonly `task/${string}`[];
1334
- parent: `task/${string}` | null;
1335
- supersedes: readonly `task/${string}`[];
1336
- relates: readonly `task/${string}`[];
1337
- note: string;
1338
- createdAt: string;
1339
- updatedAt: string;
1340
- body: string;
1341
- }>;
1342
- documentDiff: string;
1343
- changedFields: readonly {
1344
- field: string;
1345
- action: "replaced" | "changed" | "added" | "cleared" | "appended";
1346
- }[];
1347
- };
1348
- cleanup?: {
1349
- kind: "lock-release-failed";
1350
- diagnostics: readonly string[];
1351
- } | undefined;
1352
- }>>, z.ZodObject<{
1353
- kind: z.ZodLiteral<"refused">;
1354
- refusal: z.ZodUnion<readonly [z.ZodObject<{
1355
- kind: z.ZodLiteral<"task-missing">;
1356
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1357
- }, z.core.$strict>, z.ZodObject<{
1358
- kind: z.ZodLiteral<"invalid-lifecycle-transition">;
1359
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1360
- state: z.ZodEnum<{
1361
- open: "open";
1362
- in_progress: "in_progress";
1363
- on_hold: "on_hold";
1364
- done: "done";
1365
- drop: "drop";
1366
- }>;
1367
- verb: z.ZodEnum<{
1368
- done: "done";
1369
- drop: "drop";
1370
- start: "start";
1371
- stop: "stop";
1372
- hold: "hold";
1373
- resume: "resume";
1374
- }>;
1375
- }, z.core.$strict>, z.ZodObject<{
1376
- kind: z.ZodLiteral<"invalid-graph">;
1377
- diagnostic: z.ZodString;
1378
- }, z.core.$strict>, z.ZodObject<{
1379
- kind: z.ZodLiteral<"invalid-namespace-context">;
1380
- path: z.ZodString;
1381
- }, z.core.$strict>, z.ZodObject<{
1382
- kind: z.ZodLiteral<"relation-owned-by-other">;
1383
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1384
- related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1385
- declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1386
- }, z.core.$strict>, z.ZodObject<{
1387
- kind: z.ZodLiteral<"invalid-composition">;
1388
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1389
- line: z.ZodNumber;
1390
- reason: z.ZodString;
1391
- token: z.ZodString;
1392
- }, z.core.$strict>>>;
1393
- }, z.core.$strict>]>;
1394
- }, z.core.$strict>, z.ZodObject<{
1395
- kind: z.ZodLiteral<"retry">;
1396
- reason: z.ZodEnum<{
1397
- "concurrent-modification": "concurrent-modification";
1398
- busy: "busy";
1399
- }>;
1400
- }, z.core.$strict>]>, z.ZodUnion<readonly [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;
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;
1425
- bytes: z.ZodNumber;
1426
- firstLine: z.ZodString;
1427
- lastLine: z.ZodString;
1428
- }, z.core.$strict>>>;
1429
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1430
- documentChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1431
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1432
- kind: z.ZodEnum<{
1433
- created: "created";
1434
- updated: "updated";
1435
- }>;
1436
- documentDiff: z.ZodString;
1437
- }, z.core.$strict>>>;
1438
- cleanup: z.ZodOptional<z.ZodObject<{
1439
- kind: z.ZodLiteral<"lock-release-failed">;
1440
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1441
- }, z.core.$strict>>;
1442
- aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1443
- alias: z.ZodString;
1444
- taskId: 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">>>;
1458
- kind: z.ZodLiteral<"accepted">;
1459
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1460
- documentChanges: readonly {
1461
- taskId: `task/${string}`;
1462
- kind: "created" | "updated";
1463
- documentDiff: string;
1464
- }[];
1465
- aliases: readonly {
1466
- alias: string;
1467
- taskId: `task/${string}`;
1468
- }[];
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
- })[];
1481
- kind: "accepted";
1482
- cleanup?: {
1483
- kind: "lock-release-failed";
1484
- diagnostics: readonly string[];
1485
- } | undefined;
1486
- }>, {
1487
- documentChanges: readonly {
1488
- taskId: `task/${string}`;
1489
- kind: "created" | "updated";
1490
- documentDiff: string;
1491
- }[];
1492
- aliases: readonly {
1493
- alias: string;
1494
- taskId: `task/${string}`;
1495
- }[];
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
- })[];
1508
- kind: "accepted";
1509
- cleanup?: {
1510
- kind: "lock-release-failed";
1511
- diagnostics: readonly string[];
1512
- } | undefined;
1513
- }>>, z.ZodObject<{
1514
- kind: z.ZodLiteral<"refused">;
1515
- refusal: z.ZodObject<{
1516
- kind: z.ZodLiteral<"invalid-composition">;
1517
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1518
- line: z.ZodNumber;
1519
- reason: z.ZodString;
1520
- token: z.ZodString;
1521
- }, z.core.$strict>>>;
1522
- }, z.core.$strict>;
1523
- }, z.core.$strict>, z.ZodPipe<z.ZodObject<{
1524
- documentChanges: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1525
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1526
- kind: z.ZodEnum<{
1527
- created: "created";
1528
- updated: "updated";
1529
- }>;
1530
- documentDiff: z.ZodString;
1531
- }, z.core.$strict>>>;
1532
- cleanup: z.ZodOptional<z.ZodObject<{
1533
- kind: z.ZodLiteral<"lock-release-failed">;
1534
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1535
- }, z.core.$strict>>;
1536
- stopped: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
1537
- kind: z.ZodLiteral<"task-missing">;
1538
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1539
- }, z.core.$strict>, z.ZodObject<{
1540
- kind: z.ZodLiteral<"invalid-lifecycle-transition">;
1541
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1542
- state: z.ZodEnum<{
1543
- open: "open";
1544
- in_progress: "in_progress";
1545
- on_hold: "on_hold";
1546
- done: "done";
1547
- drop: "drop";
1548
- }>;
1549
- verb: z.ZodEnum<{
1550
- done: "done";
1551
- drop: "drop";
1552
- start: "start";
1553
- stop: "stop";
1554
- hold: "hold";
1555
- resume: "resume";
1556
- }>;
1557
- }, z.core.$strict>, z.ZodObject<{
1558
- kind: z.ZodLiteral<"invalid-graph">;
1559
- diagnostic: z.ZodString;
1560
- }, z.core.$strict>, z.ZodObject<{
1561
- kind: z.ZodLiteral<"invalid-namespace-context">;
1562
- path: z.ZodString;
1563
- }, z.core.$strict>, z.ZodObject<{
1564
- kind: z.ZodLiteral<"relation-owned-by-other">;
1565
- taskId: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1566
- related: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1567
- declaringTask: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
1568
- }, z.core.$strict>, z.ZodObject<{
1569
- kind: z.ZodLiteral<"invalid-composition">;
1570
- diagnostics: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1571
- line: z.ZodNumber;
1572
- reason: z.ZodString;
1573
- token: z.ZodString;
1574
- }, z.core.$strict>>>;
1575
- }, z.core.$strict>]>, z.ZodObject<{
1576
- kind: z.ZodLiteral<"retry">;
1577
- reason: z.ZodEnum<{
1578
- "concurrent-modification": "concurrent-modification";
1579
- busy: "busy";
1580
- }>;
1581
- }, z.core.$strict>]>;
1582
- draft: z.ZodString;
1583
- aliases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1584
- alias: z.ZodString;
1585
- taskId: 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">>>;
1599
- kind: z.ZodLiteral<"incomplete">;
1600
- }, z.core.$strict>, z.ZodTransform<WithoutUndefined<{
1601
- documentChanges: readonly {
1602
- taskId: `task/${string}`;
1603
- kind: "created" | "updated";
1604
- documentDiff: string;
1605
- }[];
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
- } | {
1617
- kind: "task-missing";
1618
- taskId: `task/${string}`;
1619
- } | {
1620
- kind: "invalid-lifecycle-transition";
1621
- taskId: `task/${string}`;
1622
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1623
- verb: "done" | "drop" | "start" | "stop" | "hold" | "resume";
1624
- } | {
1625
- kind: "invalid-graph";
1626
- diagnostic: string;
1627
- } | {
1628
- kind: "invalid-namespace-context";
1629
- path: string;
1630
- } | {
1631
- kind: "relation-owned-by-other";
1632
- taskId: `task/${string}`;
1633
- related: `task/${string}`;
1634
- declaringTask: `task/${string}`;
1635
- };
1636
- draft: string;
1637
- aliases: readonly {
1638
- alias: string;
1639
- taskId: `task/${string}`;
1640
- }[];
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
- })[];
1653
- kind: "incomplete";
1654
- cleanup?: {
1655
- kind: "lock-release-failed";
1656
- diagnostics: readonly string[];
1657
- } | undefined;
1658
- }>, {
1659
- documentChanges: readonly {
1660
- taskId: `task/${string}`;
1661
- kind: "created" | "updated";
1662
- documentDiff: string;
1663
- }[];
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
- } | {
1675
- kind: "task-missing";
1676
- taskId: `task/${string}`;
1677
- } | {
1678
- kind: "invalid-lifecycle-transition";
1679
- taskId: `task/${string}`;
1680
- state: "open" | "in_progress" | "on_hold" | "done" | "drop";
1681
- verb: "done" | "drop" | "start" | "stop" | "hold" | "resume";
1682
- } | {
1683
- kind: "invalid-graph";
1684
- diagnostic: string;
1685
- } | {
1686
- kind: "invalid-namespace-context";
1687
- path: string;
1688
- } | {
1689
- kind: "relation-owned-by-other";
1690
- taskId: `task/${string}`;
1691
- related: `task/${string}`;
1692
- declaringTask: `task/${string}`;
1693
- };
1694
- draft: string;
1695
- aliases: readonly {
1696
- alias: string;
1697
- taskId: `task/${string}`;
1698
- }[];
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
- })[];
1711
- kind: "incomplete";
1712
- cleanup?: {
1713
- kind: "lock-release-failed";
1714
- diagnostics: readonly string[];
1715
- } | undefined;
1716
- }>>]>]>;
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>;