@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,590 +0,0 @@
1
- import { type WorldRoot } from "../world.js";
2
- import { type ErasedRequestCommand, type RequestProtocol, type ServiceRequestCommand } from "../akuma/request-wire.js";
3
- import type { AddTaskDocumentInput, AddTaskInput, TaskBatchResult, TaskMutationResult, TaskUpdateResult, UpdateTaskInput } from "./operations.js";
4
- import type { TaskCompositionResult } from "./compose.js";
5
- import { type TaskMutationExecutionResult } from "./mutation-result.js";
6
- import { z } from "zod";
7
- export declare const TASK_MUTATION_ACTIONS: readonly ["task.add", "task.addDocument", "task.compose", "task.done", "task.drop", "task.hold", "task.resume", "task.start", "task.stop", "task.update"];
8
- declare const taskMutationActionSchema: z.ZodEnum<{
9
- "task.add": "task.add";
10
- "task.addDocument": "task.addDocument";
11
- "task.compose": "task.compose";
12
- "task.done": "task.done";
13
- "task.drop": "task.drop";
14
- "task.hold": "task.hold";
15
- "task.resume": "task.resume";
16
- "task.start": "task.start";
17
- "task.stop": "task.stop";
18
- "task.update": "task.update";
19
- }>;
20
- export type TaskMutationAction = z.infer<typeof taskMutationActionSchema>;
21
- declare const taskRequestSchemas: {
22
- readonly "task.add": z.ZodPipe<z.ZodObject<{
23
- input: z.ZodObject<{
24
- title: z.ZodString;
25
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
26
- body: z.ZodOptional<z.ZodString>;
27
- note: z.ZodOptional<z.ZodString>;
28
- state: z.ZodOptional<z.ZodEnum<{
29
- open: "open";
30
- in_progress: "in_progress";
31
- on_hold: "on_hold";
32
- done: "done";
33
- drop: "drop";
34
- }>>;
35
- priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
36
- needs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
37
- parent: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
38
- supersedes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
39
- relates: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
40
- }, z.core.$strict>;
41
- }, z.core.$strict>, z.ZodTransform<{
42
- action: "task.add";
43
- input: {
44
- title: string;
45
- namespace: readonly string[];
46
- body?: string | undefined;
47
- note?: string | undefined;
48
- state?: "open" | "in_progress" | "on_hold" | "done" | "drop" | undefined;
49
- priority?: 0 | 1 | 2 | 3 | undefined;
50
- needs?: readonly `task/${string}`[] | undefined;
51
- parent?: `task/${string}` | null | undefined;
52
- supersedes?: readonly `task/${string}`[] | undefined;
53
- relates?: readonly `task/${string}`[] | undefined;
54
- };
55
- }, {
56
- input: {
57
- title: string;
58
- namespace: readonly string[];
59
- body?: string | undefined;
60
- note?: string | undefined;
61
- state?: "open" | "in_progress" | "on_hold" | "done" | "drop" | undefined;
62
- priority?: 0 | 1 | 2 | 3 | undefined;
63
- needs?: readonly `task/${string}`[] | undefined;
64
- parent?: `task/${string}` | null | undefined;
65
- supersedes?: readonly `task/${string}`[] | undefined;
66
- relates?: readonly `task/${string}`[] | undefined;
67
- };
68
- }>>;
69
- readonly "task.addDocument": z.ZodPipe<z.ZodObject<{
70
- input: z.ZodObject<{
71
- markdown: z.ZodString;
72
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
73
- }, z.core.$strict>;
74
- }, z.core.$strict>, z.ZodTransform<{
75
- action: "task.addDocument";
76
- input: {
77
- markdown: string;
78
- namespace: readonly string[];
79
- };
80
- }, {
81
- input: {
82
- markdown: string;
83
- namespace: readonly string[];
84
- };
85
- }>>;
86
- readonly "task.compose": z.ZodPipe<z.ZodObject<{
87
- markdown: z.ZodString;
88
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
89
- }, z.core.$strict>, z.ZodTransform<{
90
- markdown: string;
91
- namespace: readonly string[];
92
- action: "task.compose";
93
- }, {
94
- markdown: string;
95
- namespace: readonly string[];
96
- }>>;
97
- readonly "task.done": z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
98
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
99
- note: z.ZodOptional<z.ZodString>;
100
- }, z.core.$strict>, z.ZodTransform<{
101
- note?: string;
102
- action: "task.done";
103
- id: `task/${string}`;
104
- }, {
105
- id: `task/${string}`;
106
- note?: string | undefined;
107
- }>>, z.ZodPipe<z.ZodObject<{
108
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
109
- note: z.ZodOptional<z.ZodString>;
110
- }, z.core.$strict>, z.ZodTransform<{
111
- note?: string;
112
- action: "task.done";
113
- ids: readonly `task/${string}`[];
114
- }, {
115
- ids: readonly `task/${string}`[];
116
- note?: string | undefined;
117
- }>>]>;
118
- readonly "task.drop": z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
119
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
120
- note: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strict>, z.ZodTransform<{
122
- note?: string;
123
- action: "task.drop";
124
- id: `task/${string}`;
125
- }, {
126
- id: `task/${string}`;
127
- note?: string | undefined;
128
- }>>, z.ZodPipe<z.ZodObject<{
129
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
130
- note: z.ZodOptional<z.ZodString>;
131
- }, z.core.$strict>, z.ZodTransform<{
132
- note?: string;
133
- action: "task.drop";
134
- ids: readonly `task/${string}`[];
135
- }, {
136
- ids: readonly `task/${string}`[];
137
- note?: string | undefined;
138
- }>>]>;
139
- readonly "task.hold": z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
140
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
141
- }, z.core.$strict>, z.ZodTransform<{
142
- action: "task.hold";
143
- id: `task/${string}`;
144
- }, {
145
- id: `task/${string}`;
146
- }>>, z.ZodPipe<z.ZodObject<{
147
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
148
- }, z.core.$strict>, z.ZodTransform<{
149
- action: "task.hold";
150
- ids: readonly `task/${string}`[];
151
- }, {
152
- ids: readonly `task/${string}`[];
153
- }>>]>;
154
- readonly "task.resume": z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
155
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
156
- }, z.core.$strict>, z.ZodTransform<{
157
- action: "task.resume";
158
- id: `task/${string}`;
159
- }, {
160
- id: `task/${string}`;
161
- }>>, z.ZodPipe<z.ZodObject<{
162
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
163
- }, z.core.$strict>, z.ZodTransform<{
164
- action: "task.resume";
165
- ids: readonly `task/${string}`[];
166
- }, {
167
- ids: readonly `task/${string}`[];
168
- }>>]>;
169
- readonly "task.start": z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
170
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
171
- }, z.core.$strict>, z.ZodTransform<{
172
- action: "task.start";
173
- id: `task/${string}`;
174
- }, {
175
- id: `task/${string}`;
176
- }>>, z.ZodPipe<z.ZodObject<{
177
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
178
- }, z.core.$strict>, z.ZodTransform<{
179
- action: "task.start";
180
- ids: readonly `task/${string}`[];
181
- }, {
182
- ids: readonly `task/${string}`[];
183
- }>>]>;
184
- readonly "task.stop": z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
185
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
186
- }, z.core.$strict>, z.ZodTransform<{
187
- action: "task.stop";
188
- id: `task/${string}`;
189
- }, {
190
- id: `task/${string}`;
191
- }>>, z.ZodPipe<z.ZodObject<{
192
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
193
- }, z.core.$strict>, z.ZodTransform<{
194
- action: "task.stop";
195
- ids: readonly `task/${string}`[];
196
- }, {
197
- ids: readonly `task/${string}`[];
198
- }>>]>;
199
- readonly "task.update": z.ZodPipe<z.ZodObject<{
200
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
201
- input: z.ZodObject<{
202
- title: z.ZodOptional<z.ZodString>;
203
- body: z.ZodOptional<z.ZodString>;
204
- appendBody: z.ZodOptional<z.ZodString>;
205
- note: z.ZodOptional<z.ZodString>;
206
- priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
207
- needs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
208
- addNeeds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
209
- dropNeeds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
210
- parent: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
211
- supersedes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
212
- addSupersedes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
213
- dropSupersedes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
214
- relates: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
215
- addRelates: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
216
- dropRelates: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
217
- }, z.core.$strict>;
218
- }, z.core.$strict>, z.ZodTransform<{
219
- id: `task/${string}`;
220
- input: {
221
- title?: string | undefined;
222
- body?: string | undefined;
223
- appendBody?: string | undefined;
224
- note?: string | undefined;
225
- priority?: 0 | 1 | 2 | 3 | undefined;
226
- needs?: readonly `task/${string}`[] | undefined;
227
- addNeeds?: readonly `task/${string}`[] | undefined;
228
- dropNeeds?: readonly `task/${string}`[] | undefined;
229
- parent?: `task/${string}` | null | undefined;
230
- supersedes?: readonly `task/${string}`[] | undefined;
231
- addSupersedes?: readonly `task/${string}`[] | undefined;
232
- dropSupersedes?: readonly `task/${string}`[] | undefined;
233
- relates?: readonly `task/${string}`[] | undefined;
234
- addRelates?: readonly `task/${string}`[] | undefined;
235
- dropRelates?: readonly `task/${string}`[] | undefined;
236
- };
237
- action: "task.update";
238
- }, {
239
- id: `task/${string}`;
240
- input: {
241
- title?: string | undefined;
242
- body?: string | undefined;
243
- appendBody?: string | undefined;
244
- note?: string | undefined;
245
- priority?: 0 | 1 | 2 | 3 | undefined;
246
- needs?: readonly `task/${string}`[] | undefined;
247
- addNeeds?: readonly `task/${string}`[] | undefined;
248
- dropNeeds?: readonly `task/${string}`[] | undefined;
249
- parent?: `task/${string}` | null | undefined;
250
- supersedes?: readonly `task/${string}`[] | undefined;
251
- addSupersedes?: readonly `task/${string}`[] | undefined;
252
- dropSupersedes?: readonly `task/${string}`[] | undefined;
253
- relates?: readonly `task/${string}`[] | undefined;
254
- addRelates?: readonly `task/${string}`[] | undefined;
255
- dropRelates?: readonly `task/${string}`[] | undefined;
256
- };
257
- }>>;
258
- };
259
- export type TaskMutationRequest = z.infer<(typeof taskRequestSchemas)[TaskMutationAction]>;
260
- declare const taskBodyRequestSchema: z.ZodObject<{
261
- world: z.ZodString;
262
- request: z.ZodUnion<(z.ZodPipe<z.ZodObject<{
263
- input: z.ZodObject<{
264
- title: z.ZodString;
265
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
266
- body: z.ZodOptional<z.ZodString>;
267
- note: z.ZodOptional<z.ZodString>;
268
- state: z.ZodOptional<z.ZodEnum<{
269
- open: "open";
270
- in_progress: "in_progress";
271
- on_hold: "on_hold";
272
- done: "done";
273
- drop: "drop";
274
- }>>;
275
- priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
276
- needs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
277
- parent: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
278
- supersedes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
279
- relates: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
280
- }, z.core.$strict>;
281
- }, z.core.$strict>, z.ZodTransform<{
282
- action: "task.add";
283
- input: {
284
- title: string;
285
- namespace: readonly string[];
286
- body?: string | undefined;
287
- note?: string | undefined;
288
- state?: "open" | "in_progress" | "on_hold" | "done" | "drop" | undefined;
289
- priority?: 0 | 1 | 2 | 3 | undefined;
290
- needs?: readonly `task/${string}`[] | undefined;
291
- parent?: `task/${string}` | null | undefined;
292
- supersedes?: readonly `task/${string}`[] | undefined;
293
- relates?: readonly `task/${string}`[] | undefined;
294
- };
295
- }, {
296
- input: {
297
- title: string;
298
- namespace: readonly string[];
299
- body?: string | undefined;
300
- note?: string | undefined;
301
- state?: "open" | "in_progress" | "on_hold" | "done" | "drop" | undefined;
302
- priority?: 0 | 1 | 2 | 3 | undefined;
303
- needs?: readonly `task/${string}`[] | undefined;
304
- parent?: `task/${string}` | null | undefined;
305
- supersedes?: readonly `task/${string}`[] | undefined;
306
- relates?: readonly `task/${string}`[] | undefined;
307
- };
308
- }>> | z.ZodPipe<z.ZodObject<{
309
- input: z.ZodObject<{
310
- markdown: z.ZodString;
311
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
312
- }, z.core.$strict>;
313
- }, z.core.$strict>, z.ZodTransform<{
314
- action: "task.addDocument";
315
- input: {
316
- markdown: string;
317
- namespace: readonly string[];
318
- };
319
- }, {
320
- input: {
321
- markdown: string;
322
- namespace: readonly string[];
323
- };
324
- }>> | z.ZodPipe<z.ZodObject<{
325
- markdown: z.ZodString;
326
- namespace: z.ZodReadonly<z.ZodArray<z.ZodString>>;
327
- }, z.core.$strict>, z.ZodTransform<{
328
- markdown: string;
329
- namespace: readonly string[];
330
- action: "task.compose";
331
- }, {
332
- markdown: string;
333
- namespace: readonly string[];
334
- }>> | z.ZodPipe<z.ZodObject<{
335
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
336
- input: z.ZodObject<{
337
- title: z.ZodOptional<z.ZodString>;
338
- body: z.ZodOptional<z.ZodString>;
339
- appendBody: z.ZodOptional<z.ZodString>;
340
- note: z.ZodOptional<z.ZodString>;
341
- priority: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
342
- needs: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
343
- addNeeds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
344
- dropNeeds: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
345
- parent: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
346
- supersedes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
347
- addSupersedes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
348
- dropSupersedes: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
349
- relates: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
350
- addRelates: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
351
- dropRelates: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>>;
352
- }, z.core.$strict>;
353
- }, z.core.$strict>, z.ZodTransform<{
354
- id: `task/${string}`;
355
- input: {
356
- title?: string | undefined;
357
- body?: string | undefined;
358
- appendBody?: string | undefined;
359
- note?: string | undefined;
360
- priority?: 0 | 1 | 2 | 3 | undefined;
361
- needs?: readonly `task/${string}`[] | undefined;
362
- addNeeds?: readonly `task/${string}`[] | undefined;
363
- dropNeeds?: readonly `task/${string}`[] | undefined;
364
- parent?: `task/${string}` | null | undefined;
365
- supersedes?: readonly `task/${string}`[] | undefined;
366
- addSupersedes?: readonly `task/${string}`[] | undefined;
367
- dropSupersedes?: readonly `task/${string}`[] | undefined;
368
- relates?: readonly `task/${string}`[] | undefined;
369
- addRelates?: readonly `task/${string}`[] | undefined;
370
- dropRelates?: readonly `task/${string}`[] | undefined;
371
- };
372
- action: "task.update";
373
- }, {
374
- id: `task/${string}`;
375
- input: {
376
- title?: string | undefined;
377
- body?: string | undefined;
378
- appendBody?: string | undefined;
379
- note?: string | undefined;
380
- priority?: 0 | 1 | 2 | 3 | undefined;
381
- needs?: readonly `task/${string}`[] | undefined;
382
- addNeeds?: readonly `task/${string}`[] | undefined;
383
- dropNeeds?: readonly `task/${string}`[] | undefined;
384
- parent?: `task/${string}` | null | undefined;
385
- supersedes?: readonly `task/${string}`[] | undefined;
386
- addSupersedes?: readonly `task/${string}`[] | undefined;
387
- dropSupersedes?: readonly `task/${string}`[] | undefined;
388
- relates?: readonly `task/${string}`[] | undefined;
389
- addRelates?: readonly `task/${string}`[] | undefined;
390
- dropRelates?: readonly `task/${string}`[] | undefined;
391
- };
392
- }>> | z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
393
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
394
- note: z.ZodOptional<z.ZodString>;
395
- }, z.core.$strict>, z.ZodTransform<{
396
- note?: string;
397
- action: "task.done";
398
- id: `task/${string}`;
399
- }, {
400
- id: `task/${string}`;
401
- note?: string | undefined;
402
- }>>, z.ZodPipe<z.ZodObject<{
403
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
404
- note: z.ZodOptional<z.ZodString>;
405
- }, z.core.$strict>, z.ZodTransform<{
406
- note?: string;
407
- action: "task.done";
408
- ids: readonly `task/${string}`[];
409
- }, {
410
- ids: readonly `task/${string}`[];
411
- note?: string | undefined;
412
- }>>]> | z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
413
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
414
- note: z.ZodOptional<z.ZodString>;
415
- }, z.core.$strict>, z.ZodTransform<{
416
- note?: string;
417
- action: "task.drop";
418
- id: `task/${string}`;
419
- }, {
420
- id: `task/${string}`;
421
- note?: string | undefined;
422
- }>>, z.ZodPipe<z.ZodObject<{
423
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
424
- note: z.ZodOptional<z.ZodString>;
425
- }, z.core.$strict>, z.ZodTransform<{
426
- note?: string;
427
- action: "task.drop";
428
- ids: readonly `task/${string}`[];
429
- }, {
430
- ids: readonly `task/${string}`[];
431
- note?: string | undefined;
432
- }>>]> | z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
433
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
434
- }, z.core.$strict>, z.ZodTransform<{
435
- action: "task.hold";
436
- id: `task/${string}`;
437
- }, {
438
- id: `task/${string}`;
439
- }>>, z.ZodPipe<z.ZodObject<{
440
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
441
- }, z.core.$strict>, z.ZodTransform<{
442
- action: "task.hold";
443
- ids: readonly `task/${string}`[];
444
- }, {
445
- ids: readonly `task/${string}`[];
446
- }>>]> | z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
447
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
448
- }, z.core.$strict>, z.ZodTransform<{
449
- action: "task.resume";
450
- id: `task/${string}`;
451
- }, {
452
- id: `task/${string}`;
453
- }>>, z.ZodPipe<z.ZodObject<{
454
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
455
- }, z.core.$strict>, z.ZodTransform<{
456
- action: "task.resume";
457
- ids: readonly `task/${string}`[];
458
- }, {
459
- ids: readonly `task/${string}`[];
460
- }>>]> | z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
461
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
462
- }, z.core.$strict>, z.ZodTransform<{
463
- action: "task.start";
464
- id: `task/${string}`;
465
- }, {
466
- id: `task/${string}`;
467
- }>>, z.ZodPipe<z.ZodObject<{
468
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
469
- }, z.core.$strict>, z.ZodTransform<{
470
- action: "task.start";
471
- ids: readonly `task/${string}`[];
472
- }, {
473
- ids: readonly `task/${string}`[];
474
- }>>]> | z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
475
- id: z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>;
476
- }, z.core.$strict>, z.ZodTransform<{
477
- action: "task.stop";
478
- id: `task/${string}`;
479
- }, {
480
- id: `task/${string}`;
481
- }>>, z.ZodPipe<z.ZodObject<{
482
- ids: z.ZodReadonly<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`task/${string}`, string>>>>;
483
- }, z.core.$strict>, z.ZodTransform<{
484
- action: "task.stop";
485
- ids: readonly `task/${string}`[];
486
- }, {
487
- ids: readonly `task/${string}`[];
488
- }>>]>)[]>;
489
- }, z.core.$strict>;
490
- export type TaskMutationBodyRequest = z.infer<typeof taskBodyRequestSchema>;
491
- declare const taskMutationServiceSchema: z.ZodObject<{
492
- action: z.ZodEnum<{
493
- "task.add": "task.add";
494
- "task.addDocument": "task.addDocument";
495
- "task.compose": "task.compose";
496
- "task.done": "task.done";
497
- "task.drop": "task.drop";
498
- "task.hold": "task.hold";
499
- "task.resume": "task.resume";
500
- "task.start": "task.start";
501
- "task.stop": "task.stop";
502
- "task.update": "task.update";
503
- }>;
504
- }, z.core.$strict>;
505
- type TaskMutationService = z.infer<typeof taskMutationServiceSchema>;
506
- export declare const forwardedTaskReferenceSchema: z.ZodObject<{
507
- kind: z.ZodLiteral<"served-reference">;
508
- action: z.ZodEnum<{
509
- "task.add": "task.add";
510
- "task.addDocument": "task.addDocument";
511
- "task.compose": "task.compose";
512
- "task.done": "task.done";
513
- "task.drop": "task.drop";
514
- "task.hold": "task.hold";
515
- "task.resume": "task.resume";
516
- "task.start": "task.start";
517
- "task.stop": "task.stop";
518
- "task.update": "task.update";
519
- }>;
520
- }, z.core.$strict>;
521
- export type ForwardedTaskReference = z.infer<typeof forwardedTaskReferenceSchema>;
522
- export type TaskMutationResultForRequest<Request extends TaskMutationRequest> = Request extends Readonly<{
523
- action: "task.compose";
524
- }> ? TaskCompositionResult : Request extends Readonly<{
525
- action: "task.update";
526
- }> ? TaskUpdateResult : Request extends Readonly<{
527
- ids: readonly string[];
528
- }> ? TaskBatchResult : TaskMutationResult;
529
- export type TaskLifecycleVerb = "start" | "stop" | "hold" | "resume" | "done" | "drop";
530
- /**
531
- * The forced-local Tasks SDK abilities one descriptor execution entry consumes.
532
- * They are composed at the upper Body edge from the same `Tasks.of(world)`
533
- * product an ordinary local caller uses; this module never imports that product
534
- * because the product consumes this descriptor protocol.
535
- */
536
- export type TaskMutationRequestPort = Readonly<{
537
- add(input: Readonly<{
538
- world: WorldRoot;
539
- options: AddTaskInput;
540
- }>): Promise<TaskMutationResult>;
541
- addDocument(input: Readonly<{
542
- world: WorldRoot;
543
- document: AddTaskDocumentInput;
544
- }>): Promise<TaskMutationResult>;
545
- compose(input: Readonly<{
546
- world: WorldRoot;
547
- markdown: string;
548
- defaultNamespace: readonly string[];
549
- actor: string;
550
- signal?: AbortSignal;
551
- }>): Promise<TaskCompositionResult>;
552
- update(input: Readonly<{
553
- world: WorldRoot;
554
- id: string;
555
- options: UpdateTaskInput;
556
- }>): Promise<TaskUpdateResult>;
557
- lifecycle(input: Readonly<{
558
- world: WorldRoot;
559
- verb: TaskLifecycleVerb;
560
- id: string;
561
- note?: string;
562
- signal?: AbortSignal;
563
- }>): Promise<TaskMutationResult>;
564
- batch(input: Readonly<{
565
- world: WorldRoot;
566
- verb: TaskLifecycleVerb;
567
- ids: readonly string[];
568
- note?: string;
569
- signal?: AbortSignal;
570
- }>): Promise<TaskBatchResult>;
571
- }>;
572
- /** Task owns forwarded mutation payload, live result, and durable service evidence. */
573
- export declare function taskMutationRequestProtocol(action: TaskMutationAction, batch?: boolean): RequestProtocol<TaskMutationBodyRequest, TaskMutationExecutionResult, ForwardedTaskReference>;
574
- export declare function taskMutationRequestCommand(action: TaskMutationAction, port: TaskMutationRequestPort): ServiceRequestCommand<TaskMutationBodyRequest, TaskMutationExecutionResult, TaskMutationService, ForwardedTaskReference>;
575
- export declare function taskMutationRequestCommands(port: TaskMutationRequestPort): Readonly<Record<TaskMutationAction, ErasedRequestCommand>>;
576
- export declare function requestForwardedTask<Request extends TaskMutationRequest>(input: Readonly<{
577
- directory: string;
578
- id?: never;
579
- world: WorldRoot;
580
- request: Request;
581
- signal?: AbortSignal;
582
- }>): Promise<TaskMutationResultForRequest<Request>>;
583
- export declare function requestForwardedTask<Request extends TaskMutationRequest>(input: Readonly<{
584
- directory: string;
585
- id: string;
586
- world: WorldRoot;
587
- request: Request;
588
- signal?: AbortSignal;
589
- }>): Promise<TaskMutationResultForRequest<Request> | ForwardedTaskReference>;
590
- export {};