@wjarka/cezarion 0.16.0 → 0.17.0

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 (907) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +594 -207
  3. package/dist/agent-config/account-identity.d.ts +3 -19
  4. package/dist/agent-config/account-identity.js +8 -5
  5. package/dist/agent-config/account-identity.js.map +1 -1
  6. package/dist/agent-config/catalog.d.ts +3 -14
  7. package/dist/agent-config/catalog.js.map +1 -1
  8. package/dist/agent-config/files.d.ts +2 -6
  9. package/dist/agent-config/files.js +2 -6
  10. package/dist/agent-config/files.js.map +1 -1
  11. package/dist/agent-config/model-settings/types.d.ts +1 -1
  12. package/dist/agent-config/seed.d.ts +11 -3
  13. package/dist/agent-config/seed.js +52 -48
  14. package/dist/agent-config/seed.js.map +1 -1
  15. package/dist/agent-config/service.js +3 -2
  16. package/dist/agent-config/service.js.map +1 -1
  17. package/dist/agent-config/validate.d.ts +1 -4
  18. package/dist/agent-config/validate.js.map +1 -1
  19. package/dist/application-update/helper.d.ts +2 -2
  20. package/dist/application-update/helper.js +7 -12
  21. package/dist/application-update/helper.js.map +1 -1
  22. package/dist/application-update/launcher.d.ts +4 -0
  23. package/dist/application-update/launcher.js +18 -12
  24. package/dist/application-update/launcher.js.map +1 -1
  25. package/dist/application-update/service.d.ts +3 -3
  26. package/dist/application-update/service.js +1 -1
  27. package/dist/application-update/service.js.map +1 -1
  28. package/dist/archive-on-merge-setting.d.ts +15 -0
  29. package/dist/archive-on-merge-setting.js +14 -0
  30. package/dist/archive-on-merge-setting.js.map +1 -0
  31. package/dist/artifacts/cli.d.ts +8 -0
  32. package/dist/artifacts/cli.js +21 -2
  33. package/dist/artifacts/cli.js.map +1 -1
  34. package/dist/artifacts/resolve.js +2 -1
  35. package/dist/artifacts/resolve.js.map +1 -1
  36. package/dist/artifacts/store.js.map +1 -1
  37. package/dist/automations/automation-cli.d.ts +59 -0
  38. package/dist/automations/automation-cli.js +509 -0
  39. package/dist/automations/automation-cli.js.map +1 -0
  40. package/dist/automations/builtin-skill.d.ts +7 -0
  41. package/dist/automations/builtin-skill.js +14 -0
  42. package/dist/automations/builtin-skill.js.map +1 -0
  43. package/dist/automations/github-baseline.d.ts +3 -0
  44. package/dist/automations/github-baseline.js +17 -0
  45. package/dist/automations/github-baseline.js.map +1 -0
  46. package/dist/automations/github-poller.d.ts +23 -4
  47. package/dist/automations/github-poller.js +157 -88
  48. package/dist/automations/github-poller.js.map +1 -1
  49. package/dist/automations/prompts.d.ts +12 -0
  50. package/dist/automations/prompts.js +160 -0
  51. package/dist/automations/prompts.js.map +1 -0
  52. package/dist/automations/schedule-runner.d.ts +43 -24
  53. package/dist/automations/schedule-runner.js +207 -20
  54. package/dist/automations/schedule-runner.js.map +1 -1
  55. package/dist/automations/scheduler.d.ts +10 -2
  56. package/dist/automations/scheduler.js +200 -54
  57. package/dist/automations/scheduler.js.map +1 -1
  58. package/dist/automations/service.d.ts +777 -0
  59. package/dist/automations/service.js +444 -0
  60. package/dist/automations/service.js.map +1 -0
  61. package/dist/automations/store.d.ts +17 -7
  62. package/dist/automations/store.js +88 -17
  63. package/dist/automations/store.js.map +1 -1
  64. package/dist/automations/task-template.d.ts +7 -2
  65. package/dist/automations/task-template.js +93 -44
  66. package/dist/automations/task-template.js.map +1 -1
  67. package/dist/automations/tool-adapter.d.ts +6 -0
  68. package/dist/automations/tool-adapter.js +108 -0
  69. package/dist/automations/tool-adapter.js.map +1 -0
  70. package/dist/automations/types.d.ts +1 -405
  71. package/dist/automations/types.js +1 -218
  72. package/dist/automations/types.js.map +1 -1
  73. package/dist/autosave-cleanup.d.ts +26 -0
  74. package/dist/autosave-cleanup.js +87 -0
  75. package/dist/autosave-cleanup.js.map +1 -0
  76. package/dist/autosave-git.d.ts +3 -0
  77. package/dist/autosave-git.js +67 -35
  78. package/dist/autosave-git.js.map +1 -1
  79. package/dist/autosave-group.d.ts +8 -0
  80. package/dist/autosave-group.js +61 -0
  81. package/dist/autosave-group.js.map +1 -0
  82. package/dist/autosave-holders.d.ts +31 -4
  83. package/dist/autosave-holders.js +92 -7
  84. package/dist/autosave-holders.js.map +1 -1
  85. package/dist/autosave-windows.d.ts +14 -0
  86. package/dist/autosave-windows.js +36 -2
  87. package/dist/autosave-windows.js.map +1 -1
  88. package/dist/ci-wait/client.d.ts +20 -3
  89. package/dist/ci-wait/client.js +40 -44
  90. package/dist/ci-wait/client.js.map +1 -1
  91. package/dist/ci-wait/controller.d.ts +622 -36
  92. package/dist/ci-wait/controller.js +152 -20
  93. package/dist/ci-wait/controller.js.map +1 -1
  94. package/dist/ci-wait/errors.d.ts +19 -0
  95. package/dist/ci-wait/errors.js +180 -2
  96. package/dist/ci-wait/errors.js.map +1 -1
  97. package/dist/ci-wait/github.d.ts +25 -1
  98. package/dist/ci-wait/github.js +76 -9
  99. package/dist/ci-wait/github.js.map +1 -1
  100. package/dist/ci-wait/mcp.d.ts +0 -1
  101. package/dist/ci-wait/mcp.js +0 -2
  102. package/dist/ci-wait/mcp.js.map +1 -1
  103. package/dist/ci-wait/supervisor.d.ts +7 -0
  104. package/dist/ci-wait/supervisor.js +113 -17
  105. package/dist/ci-wait/supervisor.js.map +1 -1
  106. package/dist/ci-wait/tools.d.ts +536 -16
  107. package/dist/ci-wait/tools.js +165 -20
  108. package/dist/ci-wait/tools.js.map +1 -1
  109. package/dist/config.d.ts +3 -17
  110. package/dist/config.js +4 -60
  111. package/dist/config.js.map +1 -1
  112. package/dist/contract/active-provider.d.ts +12 -0
  113. package/dist/contract/agent-profiles.d.ts +2 -10
  114. package/dist/contract/ask-schema.d.ts +22 -4
  115. package/dist/contract/ask.d.ts +6 -4
  116. package/dist/contract/attachments.d.ts +35 -0
  117. package/dist/contract/attention.d.ts +46 -37
  118. package/dist/contract/automation-requests.d.ts +308 -0
  119. package/dist/contract/automation-schedule.d.ts +40 -11
  120. package/dist/contract/automation-storage.d.ts +512 -0
  121. package/dist/contract/automations.d.ts +421 -40
  122. package/dist/contract/ci-wait.d.ts +41 -4
  123. package/dist/contract/config-requests.d.ts +36 -0
  124. package/dist/contract/conversations.d.ts +24 -10
  125. package/dist/contract/defined.d.ts +8 -0
  126. package/dist/contract/delegation.d.ts +312 -8
  127. package/dist/contract/events.d.ts +24 -3
  128. package/dist/contract/github-requests.d.ts +26 -0
  129. package/dist/contract/github.d.ts +60 -27
  130. package/dist/contract/handoff.d.ts +43 -0
  131. package/dist/contract/health.d.ts +2 -2
  132. package/dist/contract/image-path.d.ts +6 -0
  133. package/dist/contract/index.d.ts +31 -0
  134. package/dist/contract/index.js +3756 -1525
  135. package/dist/contract/live-coordination.d.ts +158 -0
  136. package/dist/contract/live-limits.d.ts +8 -0
  137. package/dist/contract/live.d.ts +123 -0
  138. package/dist/contract/pending-ask.d.ts +58 -0
  139. package/dist/contract/permissions.d.ts +54 -0
  140. package/dist/contract/preview.d.ts +33 -0
  141. package/dist/contract/project-limits.d.ts +33 -0
  142. package/dist/contract/projects.d.ts +486 -20
  143. package/dist/contract/provider-requests.d.ts +77 -0
  144. package/dist/contract/query-requests.d.ts +52 -0
  145. package/dist/contract/repo-requests.d.ts +12 -0
  146. package/dist/contract/run-labels.d.ts +8 -0
  147. package/dist/contract/run-limits.d.ts +8 -0
  148. package/dist/contract/run-predicates.d.ts +32 -0
  149. package/dist/contract/run-requests.d.ts +33 -0
  150. package/dist/contract/run-search.d.ts +193 -0
  151. package/dist/contract/runs.d.ts +2232 -1894
  152. package/dist/contract/scheduled-tasks.d.ts +187 -0
  153. package/dist/contract/skills.d.ts +22 -772
  154. package/dist/contract/team-skill-ref.d.ts +10 -0
  155. package/dist/{core → contract}/tool-display.d.ts +4 -10
  156. package/dist/contract/ui-state-requests.d.ts +60 -0
  157. package/dist/contract/version.d.ts +3 -0
  158. package/dist/contract/voice.d.ts +213 -0
  159. package/dist/contract/waits.d.ts +1204 -0
  160. package/dist/contract/workflow-file.d.ts +37 -0
  161. package/dist/contract/workflow-requests.d.ts +7 -0
  162. package/dist/contract/workflows.d.ts +1 -2
  163. package/dist/contract/workspace.d.ts +34 -82
  164. package/dist/contract/zoned-time.d.ts +2 -11
  165. package/dist/core/agent-env.d.ts +4 -16
  166. package/dist/core/agent-env.js +14 -16
  167. package/dist/core/agent-env.js.map +1 -1
  168. package/dist/core/agent-profiles.d.ts +28 -40
  169. package/dist/core/agent-profiles.js +56 -51
  170. package/dist/core/agent-profiles.js.map +1 -1
  171. package/dist/core/agent-runner.d.ts +88 -44
  172. package/dist/core/agent-runner.js +17 -18
  173. package/dist/core/agent-runner.js.map +1 -1
  174. package/dist/core/ask.d.ts +3 -0
  175. package/dist/core/ask.js +12 -0
  176. package/dist/core/ask.js.map +1 -1
  177. package/dist/core/backend-detect.js +16 -2
  178. package/dist/core/backend-detect.js.map +1 -1
  179. package/dist/core/claude-cli-runner.d.ts +23 -4
  180. package/dist/core/claude-cli-runner.js +280 -76
  181. package/dist/core/claude-cli-runner.js.map +1 -1
  182. package/dist/core/claude-model-catalog.d.ts +2 -10
  183. package/dist/core/claude-model-catalog.js +2 -10
  184. package/dist/core/claude-model-catalog.js.map +1 -1
  185. package/dist/core/claude-ui-mapper.d.ts +2 -2
  186. package/dist/core/claude-ui-mapper.js +94 -2
  187. package/dist/core/claude-ui-mapper.js.map +1 -1
  188. package/dist/core/codex-app-server-runner.d.ts +3 -4
  189. package/dist/core/codex-app-server-runner.js +146 -51
  190. package/dist/core/codex-app-server-runner.js.map +1 -1
  191. package/dist/core/codex-app-server-transport.d.ts +4 -3
  192. package/dist/core/codex-app-server-transport.js +11 -7
  193. package/dist/core/codex-app-server-transport.js.map +1 -1
  194. package/dist/core/codex-approvals.d.ts +12 -0
  195. package/dist/core/codex-approvals.js +161 -0
  196. package/dist/core/codex-approvals.js.map +1 -0
  197. package/dist/core/codex-permissions.d.ts +1 -1
  198. package/dist/core/codex-ui-mapper.js +45 -1
  199. package/dist/core/codex-ui-mapper.js.map +1 -1
  200. package/dist/core/cursor-acp-runner.d.ts +1 -1
  201. package/dist/core/cursor-acp-runner.js +39 -15
  202. package/dist/core/cursor-acp-runner.js.map +1 -1
  203. package/dist/core/cursor-cli-flags.d.ts +19 -0
  204. package/dist/core/cursor-cli-flags.js +47 -0
  205. package/dist/core/cursor-cli-flags.js.map +1 -0
  206. package/dist/core/cursor-model-catalog.d.ts +22 -0
  207. package/dist/core/cursor-model-catalog.js +53 -24
  208. package/dist/core/cursor-model-catalog.js.map +1 -1
  209. package/dist/core/cursor-print-capabilities.d.ts +16 -0
  210. package/dist/core/cursor-print-capabilities.js +141 -0
  211. package/dist/core/cursor-print-capabilities.js.map +1 -0
  212. package/dist/core/cursor-print-process.d.ts +31 -0
  213. package/dist/core/cursor-print-process.js +117 -0
  214. package/dist/core/cursor-print-process.js.map +1 -0
  215. package/dist/core/cursor-print-runner.d.ts +31 -0
  216. package/dist/core/cursor-print-runner.js +555 -0
  217. package/dist/core/cursor-print-runner.js.map +1 -0
  218. package/dist/core/cursor-print-tool-catalog.d.ts +10 -0
  219. package/dist/core/cursor-print-tool-catalog.js +91 -0
  220. package/dist/core/cursor-print-tool-catalog.js.map +1 -0
  221. package/dist/core/cursor-print-ui-mapper.d.ts +47 -0
  222. package/dist/core/cursor-print-ui-mapper.js +553 -0
  223. package/dist/core/cursor-print-ui-mapper.js.map +1 -0
  224. package/dist/core/cursor-runner.d.ts +24 -0
  225. package/dist/core/cursor-runner.js +149 -0
  226. package/dist/core/cursor-runner.js.map +1 -0
  227. package/dist/core/cursor-ui-mapper.js +5 -2
  228. package/dist/core/cursor-ui-mapper.js.map +1 -1
  229. package/dist/core/defined.d.ts +1 -0
  230. package/dist/core/defined.js +2 -0
  231. package/dist/core/defined.js.map +1 -0
  232. package/dist/core/hook-items.d.ts +14 -0
  233. package/dist/core/hook-items.js +13 -0
  234. package/dist/core/hook-items.js.map +1 -0
  235. package/dist/core/host-model-catalog.d.ts +2 -9
  236. package/dist/core/host-model-catalog.js +2 -9
  237. package/dist/core/host-model-catalog.js.map +1 -1
  238. package/dist/core/managed-session.js +15 -3
  239. package/dist/core/managed-session.js.map +1 -1
  240. package/dist/core/model-identity.d.ts +4 -21
  241. package/dist/core/model-identity.js.map +1 -1
  242. package/dist/core/model-presets.d.ts +2 -13
  243. package/dist/core/model-presets.js +2 -13
  244. package/dist/core/model-presets.js.map +1 -1
  245. package/dist/core/omp-model-catalog.js.map +1 -1
  246. package/dist/core/omp-runner.d.ts +6 -7
  247. package/dist/core/omp-runner.js +92 -33
  248. package/dist/core/omp-runner.js.map +1 -1
  249. package/dist/core/omp-ui-mapper.js +1 -1
  250. package/dist/core/omp-ui-mapper.js.map +1 -1
  251. package/dist/core/opencode-model-catalog.js.map +1 -1
  252. package/dist/core/opencode-permissions.d.ts +52 -0
  253. package/dist/core/opencode-permissions.js +101 -0
  254. package/dist/core/opencode-permissions.js.map +1 -0
  255. package/dist/core/opencode-server-runner.d.ts +10 -9
  256. package/dist/core/opencode-server-runner.js +286 -28
  257. package/dist/core/opencode-server-runner.js.map +1 -1
  258. package/dist/core/opencode-session-error.d.ts +15 -7
  259. package/dist/core/opencode-session-error.js +25 -9
  260. package/dist/core/opencode-session-error.js.map +1 -1
  261. package/dist/core/opencode-ui-mapper.js +2 -2
  262. package/dist/core/opencode-ui-mapper.js.map +1 -1
  263. package/dist/core/pi-model-catalog.js.map +1 -1
  264. package/dist/core/pi-runner.d.ts +12 -4
  265. package/dist/core/pi-runner.js +171 -63
  266. package/dist/core/pi-runner.js.map +1 -1
  267. package/dist/core/pi-ui-mapper.js +1 -1
  268. package/dist/core/pi-ui-mapper.js.map +1 -1
  269. package/dist/core/process-usage.d.ts +5 -0
  270. package/dist/core/process-usage.js +24 -4
  271. package/dist/core/process-usage.js.map +1 -1
  272. package/dist/core/provider-auth.d.ts +16 -107
  273. package/dist/core/provider-auth.js +16 -132
  274. package/dist/core/provider-auth.js.map +1 -1
  275. package/dist/core/runner-factory.d.ts +4 -1
  276. package/dist/core/runner-factory.js +3 -3
  277. package/dist/core/runner-factory.js.map +1 -1
  278. package/dist/core/runner-runtime.d.ts +22 -0
  279. package/dist/core/runner-runtime.js +66 -5
  280. package/dist/core/runner-runtime.js.map +1 -1
  281. package/dist/core/runner-tool-grants.d.ts +21 -0
  282. package/dist/core/runner-tool-grants.js +64 -0
  283. package/dist/core/runner-tool-grants.js.map +1 -0
  284. package/dist/core/secret-redaction.d.ts +3 -20
  285. package/dist/core/secret-redaction.js +3 -20
  286. package/dist/core/secret-redaction.js.map +1 -1
  287. package/dist/core/session-process.d.ts +22 -2
  288. package/dist/core/session-process.js +170 -12
  289. package/dist/core/session-process.js.map +1 -1
  290. package/dist/core/shell-env.d.ts +2 -15
  291. package/dist/core/shell-env.js +2 -15
  292. package/dist/core/shell-env.js.map +1 -1
  293. package/dist/core/ui-events.d.ts +60 -47
  294. package/dist/core/ui-events.js +0 -23
  295. package/dist/core/ui-events.js.map +1 -1
  296. package/dist/core/usage-limit.js.map +1 -1
  297. package/dist/data-gitignore.js +3 -1
  298. package/dist/data-gitignore.js.map +1 -1
  299. package/dist/delegation/capacity.d.ts +4 -8
  300. package/dist/delegation/capacity.js +4 -8
  301. package/dist/delegation/capacity.js.map +1 -1
  302. package/dist/delegation/cli.js +123 -21
  303. package/dist/delegation/cli.js.map +1 -1
  304. package/dist/delegation/context.d.ts +19 -3
  305. package/dist/delegation/context.js +217 -22
  306. package/dist/delegation/context.js.map +1 -1
  307. package/dist/delegation/conversations.d.ts +4 -3
  308. package/dist/delegation/conversations.js +7 -5
  309. package/dist/delegation/conversations.js.map +1 -1
  310. package/dist/delegation/destroy-observation.d.ts +1 -1
  311. package/dist/delegation/destroy-observation.js.map +1 -1
  312. package/dist/delegation/effort.js.map +1 -1
  313. package/dist/delegation/execution-identity.d.ts +1 -1
  314. package/dist/delegation/execution-identity.js +41 -7
  315. package/dist/delegation/execution-identity.js.map +1 -1
  316. package/dist/delegation/idle-test-app.d.ts +4 -0
  317. package/dist/delegation/idle-test-app.js +174 -0
  318. package/dist/delegation/idle-test-app.js.map +1 -0
  319. package/dist/delegation/input.js.map +1 -1
  320. package/dist/delegation/park-notice.d.ts +42 -0
  321. package/dist/delegation/park-notice.js +71 -0
  322. package/dist/delegation/park-notice.js.map +1 -0
  323. package/dist/delegation/policy.d.ts +2 -0
  324. package/dist/delegation/policy.js +9 -1
  325. package/dist/delegation/policy.js.map +1 -1
  326. package/dist/delegation/process-liveness.d.ts +10 -15
  327. package/dist/delegation/process-liveness.js +11 -35
  328. package/dist/delegation/process-liveness.js.map +1 -1
  329. package/dist/delegation/provision.js +21 -19
  330. package/dist/delegation/provision.js.map +1 -1
  331. package/dist/delegation/questions.d.ts +3 -1
  332. package/dist/delegation/questions.js +10 -5
  333. package/dist/delegation/questions.js.map +1 -1
  334. package/dist/delegation/readiness.d.ts +2 -2
  335. package/dist/delegation/results.d.ts +4 -1
  336. package/dist/delegation/results.js +49 -18
  337. package/dist/delegation/results.js.map +1 -1
  338. package/dist/delegation/retry-backoff.d.ts +8 -0
  339. package/dist/delegation/retry-backoff.js +8 -0
  340. package/dist/delegation/retry-backoff.js.map +1 -1
  341. package/dist/delegation/routes.d.ts +114 -30
  342. package/dist/delegation/routes.js +4 -1
  343. package/dist/delegation/routes.js.map +1 -1
  344. package/dist/delegation/scratch-cleanup.d.ts +4 -5
  345. package/dist/delegation/scratch-cleanup.js +10 -8
  346. package/dist/delegation/scratch-cleanup.js.map +1 -1
  347. package/dist/delegation/service.d.ts +12 -4
  348. package/dist/delegation/service.js +76 -28
  349. package/dist/delegation/service.js.map +1 -1
  350. package/dist/delegation/transport.d.ts +154 -70
  351. package/dist/delegation/wait.d.ts +11 -0
  352. package/dist/delegation/wait.js +24 -0
  353. package/dist/delegation/wait.js.map +1 -1
  354. package/dist/delegation/windows-test-app.d.ts +5 -0
  355. package/dist/delegation/windows-test-app.js +63 -0
  356. package/dist/delegation/windows-test-app.js.map +1 -0
  357. package/dist/delegation/windows-workspace-identity.d.ts +3 -0
  358. package/dist/delegation/windows-workspace-identity.js +22 -0
  359. package/dist/delegation/windows-workspace-identity.js.map +1 -0
  360. package/dist/delegation/workspace.d.ts +5 -10
  361. package/dist/delegation/workspace.js +136 -75
  362. package/dist/delegation/workspace.js.map +1 -1
  363. package/dist/detached-process.d.ts +103 -0
  364. package/dist/detached-process.js +301 -0
  365. package/dist/detached-process.js.map +1 -0
  366. package/dist/discovery/catalog.d.ts +2 -1
  367. package/dist/discovery/catalog.js.map +1 -1
  368. package/dist/discovery/cli.js +3 -1
  369. package/dist/discovery/cli.js.map +1 -1
  370. package/dist/git-diff-base.d.ts +6 -61
  371. package/dist/git-diff-base.js +6 -70
  372. package/dist/git-diff-base.js.map +1 -1
  373. package/dist/git-index-copy.d.ts +4 -0
  374. package/dist/git-index-copy.js +10 -0
  375. package/dist/git-index-copy.js.map +1 -0
  376. package/dist/git-worktree-lock.d.ts +2 -4
  377. package/dist/git-worktree-lock.js +2 -4
  378. package/dist/git-worktree-lock.js.map +1 -1
  379. package/dist/git-worktree-release.d.ts +2 -2
  380. package/dist/git-worktree-release.js.map +1 -1
  381. package/dist/git-worktree.d.ts +47 -76
  382. package/dist/git-worktree.js +240 -94
  383. package/dist/git-worktree.js.map +1 -1
  384. package/dist/handoff.d.ts +51 -41
  385. package/dist/handoff.js +130 -78
  386. package/dist/handoff.js.map +1 -1
  387. package/dist/index.js +60 -39
  388. package/dist/index.js.map +1 -1
  389. package/dist/merge-observations.d.ts +13 -0
  390. package/dist/merge-observations.js +55 -0
  391. package/dist/merge-observations.js.map +1 -0
  392. package/dist/open-url.js +4 -14
  393. package/dist/open-url.js.map +1 -1
  394. package/dist/paths.d.ts +10 -13
  395. package/dist/paths.js +36 -17
  396. package/dist/paths.js.map +1 -1
  397. package/dist/planner.d.ts +2 -1
  398. package/dist/planner.js +9 -6
  399. package/dist/planner.js.map +1 -1
  400. package/dist/preview/agent-address.d.ts +34 -0
  401. package/dist/preview/agent-address.js +51 -0
  402. package/dist/preview/agent-address.js.map +1 -0
  403. package/dist/preview/agent-marker.d.ts +17 -0
  404. package/dist/preview/agent-marker.js +71 -0
  405. package/dist/preview/agent-marker.js.map +1 -0
  406. package/dist/preview/cdp-proxy.d.ts +54 -0
  407. package/dist/preview/cdp-proxy.js +151 -0
  408. package/dist/preview/cdp-proxy.js.map +1 -0
  409. package/dist/preview/cdp.d.ts +39 -3
  410. package/dist/preview/cdp.js +155 -57
  411. package/dist/preview/cdp.js.map +1 -1
  412. package/dist/preview/chromium.d.ts +18 -6
  413. package/dist/preview/chromium.js +112 -25
  414. package/dist/preview/chromium.js.map +1 -1
  415. package/dist/preview/dev-server.d.ts +1 -1
  416. package/dist/preview/dev-server.js +20 -44
  417. package/dist/preview/dev-server.js.map +1 -1
  418. package/dist/preview/host.d.ts +70 -3
  419. package/dist/preview/host.js +314 -28
  420. package/dist/preview/host.js.map +1 -1
  421. package/dist/preview/registration.d.ts +10 -5
  422. package/dist/preview/registration.js +2 -0
  423. package/dist/preview/registration.js.map +1 -1
  424. package/dist/preview/session.d.ts +2 -0
  425. package/dist/preview/session.js +10 -0
  426. package/dist/preview/session.js.map +1 -1
  427. package/dist/process-wait/exit-file.d.ts +29 -0
  428. package/dist/process-wait/exit-file.js +67 -0
  429. package/dist/process-wait/exit-file.js.map +1 -0
  430. package/dist/process-wait/supervisor.d.ts +30 -0
  431. package/dist/process-wait/supervisor.js +71 -0
  432. package/dist/process-wait/supervisor.js.map +1 -0
  433. package/dist/release/snapshot.d.ts +6 -6
  434. package/dist/runs/agent-tmpdir.d.ts +51 -36
  435. package/dist/runs/agent-tmpdir.js +389 -132
  436. package/dist/runs/agent-tmpdir.js.map +1 -1
  437. package/dist/runs/auto-name.d.ts +6 -6
  438. package/dist/runs/auto-name.js +1 -1
  439. package/dist/runs/auto-name.js.map +1 -1
  440. package/dist/runs/client-request.d.ts +3 -3
  441. package/dist/runs/client-request.js +3 -3
  442. package/dist/runs/client-request.js.map +1 -1
  443. package/dist/runs/delegation-state.d.ts +11 -2
  444. package/dist/runs/delegation-state.js.map +1 -1
  445. package/dist/runs/event-history-agent-context.d.ts +14 -0
  446. package/dist/runs/event-history-agent-context.js +105 -0
  447. package/dist/runs/event-history-agent-context.js.map +1 -0
  448. package/dist/runs/event-history-context.d.ts +15 -0
  449. package/dist/runs/event-history-context.js +109 -0
  450. package/dist/runs/event-history-context.js.map +1 -0
  451. package/dist/runs/event-history.d.ts +4 -1
  452. package/dist/runs/event-history.js +29 -130
  453. package/dist/runs/event-history.js.map +1 -1
  454. package/dist/runs/history-stream.d.ts +2 -0
  455. package/dist/runs/history-stream.js +62 -0
  456. package/dist/runs/history-stream.js.map +1 -0
  457. package/dist/runs/legacy-index.d.ts +6 -19
  458. package/dist/runs/legacy-index.js +6 -19
  459. package/dist/runs/legacy-index.js.map +1 -1
  460. package/dist/runs/live-item-snapshots.d.ts +13 -0
  461. package/dist/runs/live-item-snapshots.js +79 -0
  462. package/dist/runs/live-item-snapshots.js.map +1 -0
  463. package/dist/runs/loaded-run-healing.d.ts +3 -0
  464. package/dist/runs/loaded-run-healing.js +17 -0
  465. package/dist/runs/loaded-run-healing.js.map +1 -0
  466. package/dist/runs/outcome-commit.d.ts +98 -0
  467. package/dist/runs/outcome-commit.js +132 -0
  468. package/dist/runs/outcome-commit.js.map +1 -0
  469. package/dist/runs/pull-requests.d.ts +14 -0
  470. package/dist/runs/pull-requests.js +96 -0
  471. package/dist/runs/pull-requests.js.map +1 -0
  472. package/dist/runs/raw-record.d.ts +3 -15
  473. package/dist/runs/raw-record.js +3 -15
  474. package/dist/runs/raw-record.js.map +1 -1
  475. package/dist/runs/retention.d.ts +2 -2
  476. package/dist/runs/retention.js +7 -0
  477. package/dist/runs/retention.js.map +1 -1
  478. package/dist/runs/review-gate.d.ts +1 -1
  479. package/dist/runs/review-gate.js.map +1 -1
  480. package/dist/runs/run-claims.d.ts +2 -9
  481. package/dist/runs/run-claims.js.map +1 -1
  482. package/dist/runs/run-database.d.ts +29 -34
  483. package/dist/runs/run-database.js +124 -46
  484. package/dist/runs/run-database.js.map +1 -1
  485. package/dist/runs/run-index.d.ts +6 -25
  486. package/dist/runs/run-index.js +25 -38
  487. package/dist/runs/run-index.js.map +1 -1
  488. package/dist/runs/run-row.d.ts +5 -34
  489. package/dist/runs/run-row.js +13 -38
  490. package/dist/runs/run-row.js.map +1 -1
  491. package/dist/runs/store.d.ts +1597 -744
  492. package/dist/runs/store.js +1231 -739
  493. package/dist/runs/store.js.map +1 -1
  494. package/dist/runs/task-markers.d.ts +1 -0
  495. package/dist/runs/task-markers.js +5 -1
  496. package/dist/runs/task-markers.js.map +1 -1
  497. package/dist/runs/task-refs.d.ts +3 -3
  498. package/dist/runs/transcript-facts-fold.d.ts +64 -0
  499. package/dist/runs/transcript-facts-fold.js +109 -0
  500. package/dist/runs/transcript-facts-fold.js.map +1 -0
  501. package/dist/runs/transcript-facts-load.d.ts +11 -0
  502. package/dist/runs/transcript-facts-load.js +66 -0
  503. package/dist/runs/transcript-facts-load.js.map +1 -0
  504. package/dist/runs/transcript-facts-queue.d.ts +30 -0
  505. package/dist/runs/transcript-facts-queue.js +227 -0
  506. package/dist/runs/transcript-facts-queue.js.map +1 -0
  507. package/dist/runs/transcript-facts-worker.d.ts +15 -0
  508. package/dist/runs/transcript-facts-worker.js +26 -0
  509. package/dist/runs/transcript-facts-worker.js.map +1 -0
  510. package/dist/runs/transcript-facts.d.ts +13 -51
  511. package/dist/runs/transcript-facts.js +86 -202
  512. package/dist/runs/transcript-facts.js.map +1 -1
  513. package/dist/runs/ui-event-sink.d.ts +5 -30
  514. package/dist/runs/ui-event-sink.js +8 -30
  515. package/dist/runs/ui-event-sink.js.map +1 -1
  516. package/dist/runs/webhook.d.ts +104 -38
  517. package/dist/runs/webhook.js +180 -77
  518. package/dist/runs/webhook.js.map +1 -1
  519. package/dist/server/app-type.d.ts +2 -17
  520. package/dist/server/archive-on-merge.d.ts +35 -0
  521. package/dist/server/archive-on-merge.js +202 -0
  522. package/dist/server/archive-on-merge.js.map +1 -0
  523. package/dist/server/capabilities.d.ts +3 -15
  524. package/dist/server/capabilities.js +6 -19
  525. package/dist/server/capabilities.js.map +1 -1
  526. package/dist/server/checkout-progress.d.ts +10 -0
  527. package/dist/server/checkout-progress.js +27 -0
  528. package/dist/server/checkout-progress.js.map +1 -0
  529. package/dist/server/checkout.d.ts +10 -19
  530. package/dist/server/checkout.js +15 -45
  531. package/dist/server/checkout.js.map +1 -1
  532. package/dist/server/cockpit-ownership.d.ts +2 -0
  533. package/dist/server/cockpit-ownership.js +9 -0
  534. package/dist/server/cockpit-ownership.js.map +1 -1
  535. package/dist/server/cold-repo-handles.d.ts +2 -7
  536. package/dist/server/cold-repo-handles.js +2 -7
  537. package/dist/server/cold-repo-handles.js.map +1 -1
  538. package/dist/server/completion-actions.d.ts +30 -0
  539. package/dist/server/completion-actions.js +204 -0
  540. package/dist/server/completion-actions.js.map +1 -0
  541. package/dist/server/create-project.d.ts +71 -0
  542. package/dist/server/create-project.js +448 -0
  543. package/dist/server/create-project.js.map +1 -0
  544. package/dist/server/forge/github-filters.d.ts +7 -1
  545. package/dist/server/forge/github-filters.js +66 -51
  546. package/dist/server/forge/github-filters.js.map +1 -1
  547. package/dist/server/forge/github-merge-requirements.d.ts +18 -0
  548. package/dist/server/forge/github-merge-requirements.js +137 -0
  549. package/dist/server/forge/github-merge-requirements.js.map +1 -0
  550. package/dist/server/forge/github.d.ts +98 -111
  551. package/dist/server/forge/github.js +625 -306
  552. package/dist/server/forge/github.js.map +1 -1
  553. package/dist/server/forge/types.d.ts +25 -22
  554. package/dist/server/fs-browse.d.ts +3 -28
  555. package/dist/server/fs-browse.js.map +1 -1
  556. package/dist/server/git-changes.d.ts +5 -15
  557. package/dist/server/git-changes.js +3 -50
  558. package/dist/server/git-changes.js.map +1 -1
  559. package/dist/server/git.d.ts +3 -1
  560. package/dist/server/git.js +12 -0
  561. package/dist/server/git.js.map +1 -1
  562. package/dist/server/github.d.ts +1 -1
  563. package/dist/server/github.js +1 -1
  564. package/dist/server/github.js.map +1 -1
  565. package/dist/server/launch-key.d.ts +2 -4
  566. package/dist/server/launch-key.js +2 -4
  567. package/dist/server/launch-key.js.map +1 -1
  568. package/dist/server/live-routes.d.ts +68 -0
  569. package/dist/server/live-routes.js +147 -0
  570. package/dist/server/live-routes.js.map +1 -0
  571. package/dist/server/open-in-app.d.ts +4 -13
  572. package/dist/server/open-in-app.js +5 -41
  573. package/dist/server/open-in-app.js.map +1 -1
  574. package/dist/server/open-in-targets.d.ts +42 -0
  575. package/dist/server/open-in-targets.js +110 -0
  576. package/dist/server/open-in-targets.js.map +1 -0
  577. package/dist/server/open-in-terminal.d.ts +3 -0
  578. package/dist/server/open-in-terminal.js +6 -26
  579. package/dist/server/open-in-terminal.js.map +1 -1
  580. package/dist/server/preview-cdp-socket.d.ts +21 -0
  581. package/dist/server/preview-cdp-socket.js +112 -0
  582. package/dist/server/preview-cdp-socket.js.map +1 -0
  583. package/dist/server/preview-socket.d.ts +11 -11
  584. package/dist/server/preview-socket.js +22 -22
  585. package/dist/server/preview-socket.js.map +1 -1
  586. package/dist/server/preview-sockets.d.ts +14 -0
  587. package/dist/server/preview-sockets.js +18 -0
  588. package/dist/server/preview-sockets.js.map +1 -0
  589. package/dist/server/project-context.d.ts +54 -18
  590. package/dist/server/project-context.js +178 -5
  591. package/dist/server/project-context.js.map +1 -1
  592. package/dist/server/provider-action-gate.d.ts +0 -2
  593. package/dist/server/provider-action-gate.js +0 -21
  594. package/dist/server/provider-action-gate.js.map +1 -1
  595. package/dist/server/provider-auth-runtime.d.ts +3 -18
  596. package/dist/server/provider-auth-runtime.js +3 -18
  597. package/dist/server/provider-auth-runtime.js.map +1 -1
  598. package/dist/server/repo-branches.d.ts +3 -9
  599. package/dist/server/repo-branches.js +6 -22
  600. package/dist/server/repo-branches.js.map +1 -1
  601. package/dist/server/run-event-feed.d.ts +20 -0
  602. package/dist/server/run-event-feed.js +190 -0
  603. package/dist/server/run-event-feed.js.map +1 -0
  604. package/dist/server/server-deps.d.ts +37 -0
  605. package/dist/server/server-deps.js +114 -0
  606. package/dist/server/server-deps.js.map +1 -0
  607. package/dist/server/server.d.ts +14082 -11998
  608. package/dist/server/server.js +785 -1647
  609. package/dist/server/server.js.map +1 -1
  610. package/dist/server/start-run-options.d.ts +82 -0
  611. package/dist/server/start-run-options.js +111 -0
  612. package/dist/server/start-run-options.js.map +1 -0
  613. package/dist/server/validators.d.ts +3 -29
  614. package/dist/server/validators.js +1 -2
  615. package/dist/server/validators.js.map +1 -1
  616. package/dist/server/ws.d.ts +3 -23
  617. package/dist/server/ws.js +3 -23
  618. package/dist/server/ws.js.map +1 -1
  619. package/dist/server-install/engine.d.ts +6 -9
  620. package/dist/server-install/engine.js +2 -9
  621. package/dist/server-install/engine.js.map +1 -1
  622. package/dist/server-install/platforms/ubuntu-vps.d.ts +1 -1
  623. package/dist/server-install/state.d.ts +2 -4
  624. package/dist/server-install/state.js +2 -4
  625. package/dist/server-install/state.js.map +1 -1
  626. package/dist/server-install/steps.d.ts +2 -5
  627. package/dist/server-install/steps.js +3 -6
  628. package/dist/server-install/steps.js.map +1 -1
  629. package/dist/server-install/types.d.ts +3 -6
  630. package/dist/server-install/types.js +2 -5
  631. package/dist/server-install/types.js.map +1 -1
  632. package/dist/server-install/ui.d.ts +2 -8
  633. package/dist/server-install/ui.js +3 -3
  634. package/dist/server-install/ui.js.map +1 -1
  635. package/dist/session-context.d.ts +64 -0
  636. package/dist/session-context.js +264 -0
  637. package/dist/session-context.js.map +1 -0
  638. package/dist/skills-provision.d.ts +62 -0
  639. package/dist/skills-provision.js +325 -0
  640. package/dist/skills-provision.js.map +1 -0
  641. package/dist/skills-remote.d.ts +29 -27
  642. package/dist/skills-remote.js +236 -100
  643. package/dist/skills-remote.js.map +1 -1
  644. package/dist/skills.d.ts +25 -36
  645. package/dist/skills.js +43 -54
  646. package/dist/skills.js.map +1 -1
  647. package/dist/subcommands.d.ts +11 -0
  648. package/dist/subcommands.js +24 -0
  649. package/dist/subcommands.js.map +1 -0
  650. package/dist/task-cli/cli.js +78 -25
  651. package/dist/task-cli/cli.js.map +1 -1
  652. package/dist/task-cli/discovery.d.ts +4 -2
  653. package/dist/task-cli/discovery.js +14 -13
  654. package/dist/task-cli/discovery.js.map +1 -1
  655. package/dist/task-cli/hint.d.ts +20 -0
  656. package/dist/task-cli/hint.js +14 -0
  657. package/dist/task-cli/hint.js.map +1 -0
  658. package/dist/task-cli/http.d.ts +1 -0
  659. package/dist/task-cli/http.js +3 -1
  660. package/dist/task-cli/http.js.map +1 -1
  661. package/dist/task-cli/projections.d.ts +14 -11
  662. package/dist/task-cli/projections.js +15 -11
  663. package/dist/task-cli/projections.js.map +1 -1
  664. package/dist/task-cli/watch.d.ts +18 -10
  665. package/dist/task-cli/watch.js +128 -20
  666. package/dist/task-cli/watch.js.map +1 -1
  667. package/dist/ui-state.d.ts +17 -3
  668. package/dist/ui-state.js +56 -9
  669. package/dist/ui-state.js.map +1 -1
  670. package/dist/update-check.d.ts +0 -10
  671. package/dist/update-check.js +1 -16
  672. package/dist/update-check.js.map +1 -1
  673. package/dist/voice/decide.d.ts +32 -0
  674. package/dist/voice/decide.js +297 -0
  675. package/dist/voice/decide.js.map +1 -0
  676. package/dist/voice/decision-log.d.ts +52 -0
  677. package/dist/voice/decision-log.js +107 -0
  678. package/dist/voice/decision-log.js.map +1 -0
  679. package/dist/voice/engine.d.ts +119 -0
  680. package/dist/voice/engine.js +60 -0
  681. package/dist/voice/engine.js.map +1 -0
  682. package/dist/voice/fake-engine.d.ts +10 -0
  683. package/dist/voice/fake-engine.js +192 -0
  684. package/dist/voice/fake-engine.js.map +1 -0
  685. package/dist/voice/jev-engine.d.ts +17 -0
  686. package/dist/voice/jev-engine.js +110 -0
  687. package/dist/voice/jev-engine.js.map +1 -0
  688. package/dist/voice/pending-ask.d.ts +17 -0
  689. package/dist/voice/pending-ask.js +50 -0
  690. package/dist/voice/pending-ask.js.map +1 -0
  691. package/dist/voice/routes.d.ts +115 -0
  692. package/dist/voice/routes.js +91 -0
  693. package/dist/voice/routes.js.map +1 -0
  694. package/dist/voice/sentence.d.ts +21 -0
  695. package/dist/voice/sentence.js +61 -0
  696. package/dist/voice/sentence.js.map +1 -0
  697. package/dist/voice/thresholds.d.ts +28 -0
  698. package/dist/voice/thresholds.js +29 -0
  699. package/dist/voice/thresholds.js.map +1 -0
  700. package/dist/webhooks/cli.d.ts +18 -0
  701. package/dist/webhooks/cli.js +145 -0
  702. package/dist/webhooks/cli.js.map +1 -0
  703. package/dist/webhooks/prompt.d.ts +5 -0
  704. package/dist/webhooks/prompt.js +26 -0
  705. package/dist/webhooks/prompt.js.map +1 -0
  706. package/dist/workflows/active-run.d.ts +167 -0
  707. package/dist/workflows/active-run.js +21 -0
  708. package/dist/workflows/active-run.js.map +1 -0
  709. package/dist/workflows/continuation-admission.d.ts +913 -0
  710. package/dist/workflows/continuation-admission.js +265 -0
  711. package/dist/workflows/continuation-admission.js.map +1 -0
  712. package/dist/workflows/execution-account.d.ts +13 -0
  713. package/dist/workflows/execution-account.js +18 -0
  714. package/dist/workflows/execution-account.js.map +1 -0
  715. package/dist/workflows/input-acknowledgement.d.ts +152 -0
  716. package/dist/workflows/input-acknowledgement.js +38 -0
  717. package/dist/workflows/input-acknowledgement.js.map +1 -0
  718. package/dist/workflows/line-order.d.ts +5 -0
  719. package/dist/workflows/line-order.js +25 -0
  720. package/dist/workflows/line-order.js.map +1 -0
  721. package/dist/workflows/outcome-batches.d.ts +20 -0
  722. package/dist/workflows/outcome-batches.js +25 -0
  723. package/dist/workflows/outcome-batches.js.map +1 -0
  724. package/dist/workflows/question-routing.d.ts +8 -0
  725. package/dist/workflows/question-routing.js +18 -0
  726. package/dist/workflows/question-routing.js.map +1 -0
  727. package/dist/workflows/run-scheduling.d.ts +35 -0
  728. package/dist/workflows/run-scheduling.js +61 -0
  729. package/dist/workflows/run-scheduling.js.map +1 -0
  730. package/dist/workflows/run-states.d.ts +190 -0
  731. package/dist/workflows/run-states.js +295 -0
  732. package/dist/workflows/run-states.js.map +1 -0
  733. package/dist/workflows/run.d.ts +1296 -278
  734. package/dist/workflows/run.js +5730 -3265
  735. package/dist/workflows/run.js.map +1 -1
  736. package/dist/workflows/turn-end.d.ts +116 -0
  737. package/dist/workflows/turn-end.js +68 -0
  738. package/dist/workflows/turn-end.js.map +1 -0
  739. package/dist/workflows/types.d.ts +35 -130
  740. package/dist/workflows/types.js +47 -100
  741. package/dist/workflows/types.js.map +1 -1
  742. package/dist/workflows/waits.d.ts +74 -0
  743. package/dist/workflows/waits.js +197 -0
  744. package/dist/workflows/waits.js.map +1 -0
  745. package/dist/workspace/agent-accounts.d.ts +5 -38
  746. package/dist/workspace/agent-accounts.js +14 -40
  747. package/dist/workspace/agent-accounts.js.map +1 -1
  748. package/dist/workspace/agent-profiles.d.ts +40 -16
  749. package/dist/workspace/agent-profiles.js +77 -17
  750. package/dist/workspace/agent-profiles.js.map +1 -1
  751. package/dist/workspace/config.d.ts +48 -49
  752. package/dist/workspace/config.js +68 -72
  753. package/dist/workspace/config.js.map +1 -1
  754. package/dist/workspace/migrations.d.ts +3 -13
  755. package/dist/workspace/migrations.js.map +1 -1
  756. package/dist/workspace/projects-cli.d.ts +1 -1
  757. package/dist/workspace/projects-cli.js.map +1 -1
  758. package/dist/workspace/projects.d.ts +15 -18
  759. package/dist/workspace/projects.js +20 -16
  760. package/dist/workspace/projects.js.map +1 -1
  761. package/dist/workspace/semaphore.d.ts +11 -45
  762. package/dist/workspace/semaphore.js +6 -18
  763. package/dist/workspace/semaphore.js.map +1 -1
  764. package/dist/workspace/ui-state.d.ts +6 -4
  765. package/dist/workspace/ui-state.js +6 -4
  766. package/dist/workspace/ui-state.js.map +1 -1
  767. package/dist/workspace/webhooks.d.ts +40 -0
  768. package/dist/workspace/webhooks.js +146 -0
  769. package/dist/workspace/webhooks.js.map +1 -0
  770. package/dist/worktree-manifest.d.ts +165 -0
  771. package/dist/worktree-manifest.js +530 -0
  772. package/dist/worktree-manifest.js.map +1 -0
  773. package/dist/worktree-setup.js.map +1 -1
  774. package/package.json +6 -5
  775. package/scripts/benchmark-run-store-fixture.ts +7 -3
  776. package/scripts/check-pack.mjs +3 -1
  777. package/scripts/inline-contract.mjs +80 -27
  778. package/scripts/install-as-command.mjs +3 -1
  779. package/scripts/measure-transcript-facts-health.mjs +87 -0
  780. package/scripts/measure-transcript-facts-lag.mjs +68 -0
  781. package/scripts/mock-ci-tool.mjs +49 -6
  782. package/scripts/mock-claude-model-refusal.mjs +42 -0
  783. package/scripts/mock-claude.mjs +833 -591
  784. package/scripts/mock-codex-app-server.mjs +785 -418
  785. package/scripts/mock-cursor-acp.mjs +296 -125
  786. package/scripts/mock-cursor-print.mjs +256 -0
  787. package/scripts/mock-deferred-turn-start.mjs +16 -0
  788. package/scripts/mock-delivery-control.d.mts +23 -0
  789. package/scripts/mock-delivery-control.mjs +80 -0
  790. package/scripts/mock-env-record.mjs +11 -0
  791. package/scripts/mock-failure-control.d.mts +13 -0
  792. package/scripts/mock-failure-control.mjs +68 -0
  793. package/scripts/mock-multi-pr.mjs +7 -0
  794. package/scripts/mock-nudge.mjs +45 -0
  795. package/scripts/mock-omp-rpc.mjs +429 -255
  796. package/scripts/mock-opencode-serve.mjs +972 -557
  797. package/scripts/mock-pi-rpc.mjs +558 -331
  798. package/scripts/mock-runner-crash.mjs +18 -2
  799. package/scripts/mock-session-context.d.mts +5 -0
  800. package/scripts/mock-session-context.mjs +56 -0
  801. package/scripts/mock-silent-tail.mjs +10 -3
  802. package/scripts/pi-default-tools.mjs +22 -0
  803. package/scripts/pi-project-skills.mjs +59 -0
  804. package/scripts/probe-cursor-print.mjs +627 -0
  805. package/scripts/transcript-facts-fixture.mjs +53 -0
  806. package/scripts/voice-replay.ts +50 -0
  807. package/scripts/windows-workspace-identity.cs +208 -0
  808. package/scripts/windows-workspace-identity.ps1 +10 -0
  809. package/web/dist/assets/alert-dialog-DfctKUMw.js +1 -0
  810. package/web/dist/assets/button-CeupvoKG.js +41 -0
  811. package/web/dist/assets/centered-state-hDsyXrnH.js +1 -0
  812. package/web/dist/assets/cez-idle-D3aj_9lp.js +1 -0
  813. package/web/dist/assets/diff-BnIXZK3i2.js +3 -0
  814. package/web/dist/assets/diff-controls-GewpW9aF.js +1 -0
  815. package/web/dist/assets/diff-view-Byo7gpvW.js +11 -0
  816. package/web/dist/assets/dropdown-menu-COj_J5wd.js +6 -0
  817. package/web/dist/assets/eye-B8okNWXU.js +1 -0
  818. package/web/dist/assets/git-toolbar-DY0z0n4S.js +1 -0
  819. package/web/dist/assets/github-DwU6ALRK.js +1 -0
  820. package/web/dist/assets/{image-preview-FOEfqpZP.js → image-preview-C_t9q45f.js} +1 -1
  821. package/web/dist/assets/index-BOfE8pyD.js +34 -0
  822. package/web/dist/assets/index-D9HpsmdW.css +1 -0
  823. package/web/dist/assets/live-protocol-Uce2NwEX.js +64 -0
  824. package/web/dist/assets/live-worker-BizfZSoh.ts +33 -0
  825. package/web/dist/assets/markdown-BBDDg-4t.js +1 -0
  826. package/web/dist/assets/nav-row-styles-AoIhhIwf.js +1 -0
  827. package/web/dist/assets/popover-D56fhiXj.js +1 -0
  828. package/web/dist/assets/preview-pane-connected-BmVqfSU5.js +3 -0
  829. package/web/dist/assets/reference-chip-gQNk-4jc.js +1 -0
  830. package/web/dist/assets/repo-git-B5ECDUuv.js +1 -0
  831. package/web/dist/assets/{repo-git-CoKp-g9K.css → repo-git-DVXNOJDT.css} +1 -1
  832. package/web/dist/assets/run-header-C0Y1NvEM.js +2 -0
  833. package/web/dist/assets/run-header-CC7VUTg9.css +1 -0
  834. package/web/dist/assets/skills-DUeTkZ9z.js +1 -0
  835. package/web/dist/assets/status-dot-1PR0i69P.js +1 -0
  836. package/web/dist/assets/tab-link-DmWk4l5O.js +1 -0
  837. package/web/dist/assets/task-changes-DKZXuW89.js +1 -0
  838. package/web/dist/assets/task-commits-BZ6KxWdF.js +1 -0
  839. package/web/dist/assets/task-files-DlF7Apcn.js +2 -0
  840. package/web/dist/assets/task-github-item-CVPo3geZ.js +1 -0
  841. package/web/dist/assets/task-thread-DtQ6uGfQ.css +1 -0
  842. package/web/dist/assets/task-thread-mm4-ECyo.js +9 -0
  843. package/web/dist/assets/thread-state-CIw2BlhT.js +4 -0
  844. package/web/dist/assets/use-hand-to-agent-state-BCDjzHnG.js +1 -0
  845. package/web/dist/assets/use-hand-to-agent-state-C7esPJ-N.css +1 -0
  846. package/web/dist/assets/workflows-D8vYD-ql.js +7 -0
  847. package/web/dist/assets/zoomable-image-CxQSsfcn.js +1 -0
  848. package/web/dist/index.html +13 -17
  849. package/web/dist/live-worker.js +4 -0
  850. package/dist/core/tool-display.js +0 -179
  851. package/dist/core/tool-display.js.map +0 -1
  852. package/dist/runs/human-ask-summary.d.ts +0 -9
  853. package/dist/runs/human-ask-summary.js +0 -39
  854. package/dist/runs/human-ask-summary.js.map +0 -1
  855. package/dist/runs/run-search.d.ts +0 -29
  856. package/dist/runs/run-search.js +0 -63
  857. package/dist/runs/run-search.js.map +0 -1
  858. package/dist/skills-banner.d.ts +0 -22
  859. package/dist/skills-banner.js +0 -41
  860. package/dist/skills-banner.js.map +0 -1
  861. package/dist/skills-update.d.ts +0 -88
  862. package/dist/skills-update.js +0 -392
  863. package/dist/skills-update.js.map +0 -1
  864. package/dist/todos.d.ts +0 -48
  865. package/dist/todos.js +0 -201
  866. package/dist/todos.js.map +0 -1
  867. package/web/dist/assets/agent-accounts-CFOBMVHc.js +0 -1
  868. package/web/dist/assets/alert-dialog-BrpNUwMt.js +0 -1
  869. package/web/dist/assets/button-C_rd7CPp.js +0 -43
  870. package/web/dist/assets/compare-variants-D6WXhvXA.js +0 -1
  871. package/web/dist/assets/diff-DrEARXTV.js +0 -3
  872. package/web/dist/assets/diff-controls-B1-j7nFg.js +0 -1
  873. package/web/dist/assets/diff-view-DvGLjdTk.js +0 -6
  874. package/web/dist/assets/dropdown-menu-BegOZFrj.js +0 -1
  875. package/web/dist/assets/format-DpNe3S0A.js +0 -1
  876. package/web/dist/assets/git-toolbar-Cw4ljmhB.js +0 -1
  877. package/web/dist/assets/github-CfV5sqL0.js +0 -1
  878. package/web/dist/assets/index-DgWWlOLy.js +0 -13
  879. package/web/dist/assets/index-fBFnuvxu.css +0 -1
  880. package/web/dist/assets/nav-row-styles-vp2JbhuJ.js +0 -1
  881. package/web/dist/assets/popover-BohP6WTx.js +0 -1
  882. package/web/dist/assets/preview-pane-connected-qTA5KNoJ.js +0 -3
  883. package/web/dist/assets/preview-state-vuMviq6q.js +0 -1
  884. package/web/dist/assets/prompt-templates-Cubdut_C.js +0 -15
  885. package/web/dist/assets/repo-git-Cf4t5PD0.js +0 -1
  886. package/web/dist/assets/run-diff-BpkUW37Z.js +0 -3
  887. package/web/dist/assets/run-header-68WHf9wV.js +0 -1
  888. package/web/dist/assets/run-header-8GObNx6F.css +0 -1
  889. package/web/dist/assets/search-x-I9Q8pgUa.js +0 -1
  890. package/web/dist/assets/skills-DFBiAuJG.js +0 -1
  891. package/web/dist/assets/skills-DiVIgKeU.js +0 -1
  892. package/web/dist/assets/square-terminal-B6RYYieR.js +0 -1
  893. package/web/dist/assets/status-dot-CqTJHSP9.js +0 -1
  894. package/web/dist/assets/tab-link-B07Hu4QX.js +0 -1
  895. package/web/dist/assets/task-changes--lQF6EYf.js +0 -1
  896. package/web/dist/assets/task-commits-Cx0qy4DN.js +0 -1
  897. package/web/dist/assets/task-files-D50s-gKW.js +0 -2
  898. package/web/dist/assets/task-github-item-DaqmSwYT.js +0 -1
  899. package/web/dist/assets/task-thread-BPQ64lui.js +0 -7
  900. package/web/dist/assets/task-thread-zNE2Q9E-.css +0 -1
  901. package/web/dist/assets/textarea-D20O4Pw0.js +0 -1
  902. package/web/dist/assets/thread-state-DWcFMrvb.js +0 -4
  903. package/web/dist/assets/use-hand-to-agent-state-BLIGmwbd.css +0 -1
  904. package/web/dist/assets/use-hand-to-agent-state-Cy9eyyfL.js +0 -1
  905. package/web/dist/assets/utils-JsL3ZsJf.js +0 -64
  906. package/web/dist/assets/workflows-jwG7uxqi.js +0 -11
  907. package/web/dist/assets/zoomable-image-BJJ64KGc.js +0 -1
@@ -17,6 +17,31 @@ import { z } from 'zod';
17
17
  * keys. The client narrows on which key is present, and the DTO's flattened shape allowed
18
18
  * `{}` — a payload the route cannot produce.
19
19
  */
20
+ /** Canonical GitHub authority retained with an automatic archive receipt. */
21
+ export declare const archivePullRequestIdentitySchema: z.ZodObject<{
22
+ owner: z.ZodString;
23
+ repo: z.ZodString;
24
+ number: z.ZodNumber;
25
+ }, z.core.$strip>;
26
+ export type ArchivePullRequestIdentity = z.infer<typeof archivePullRequestIdentitySchema>;
27
+ export declare const mergedPullRequestSchema: z.ZodObject<{
28
+ owner: z.ZodString;
29
+ repo: z.ZodString;
30
+ number: z.ZodNumber;
31
+ mergedAt: z.ZodString;
32
+ }, z.core.$strip>;
33
+ export type MergedPullRequest = z.infer<typeof mergedPullRequestSchema>;
34
+ export declare const autoArchiveReceiptSchema: z.ZodObject<{
35
+ reason: z.ZodLiteral<"pull-requests-merged">;
36
+ archivedAt: z.ZodString;
37
+ fingerprint: z.ZodString;
38
+ pullRequests: z.ZodArray<z.ZodObject<{
39
+ owner: z.ZodString;
40
+ repo: z.ZodString;
41
+ number: z.ZodNumber;
42
+ mergedAt: z.ZodString;
43
+ }, z.core.$strip>>;
44
+ }, z.core.$strip>;
20
45
  export declare const runStatusSchema: z.ZodEnum<{
21
46
  cancelled: "cancelled";
22
47
  done: "done";
@@ -27,15 +52,16 @@ export declare const runStatusSchema: z.ZodEnum<{
27
52
  waiting: "waiting";
28
53
  }>;
29
54
  export type RunStatus = z.infer<typeof runStatusSchema>;
30
- /**
31
- * Sub-state of `running` (spec 2026-07-18-subagent-monitoring-status, #490): the agent ended its
32
- * turn still working on its own downstream work (a sub-agent, a monitored command) and said so
33
- * with the `CEZ:MONITORING` marker — a non-attention state, not "needs you".
34
- */
35
- export declare const runActivitySchema: z.ZodEnum<{
36
- monitoring: "monitoring";
37
- }>;
38
- export type RunActivity = z.infer<typeof runActivitySchema>;
55
+ /** Durable completion work. The id fences replies from a previous completion or setting. */
56
+ export declare const completionActionSchema: z.ZodObject<{
57
+ id: z.ZodString;
58
+ phase: z.ZodEnum<{
59
+ blocked: "blocked";
60
+ complete: "complete";
61
+ pending: "pending";
62
+ }>;
63
+ message: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strip>;
39
65
  export declare const stepStatusSchema: z.ZodEnum<{
40
66
  cancelled: "cancelled";
41
67
  done: "done";
@@ -47,6 +73,12 @@ export declare const stepStatusSchema: z.ZodEnum<{
47
73
  waiting: "waiting";
48
74
  }>;
49
75
  export type StepStatus = z.infer<typeof stepStatusSchema>;
76
+ /** Wire transport that owns a Cursor native session. Legacy Cursor sessions omit it (ACP). */
77
+ export declare const sessionTransportSchema: z.ZodEnum<{
78
+ "cursor-acp": "cursor-acp";
79
+ "cursor-print": "cursor-print";
80
+ }>;
81
+ export type SessionTransport = z.infer<typeof sessionTransportSchema>;
50
82
  /** One step of a run's chain. */
51
83
  export declare const stepStateSchema: z.ZodObject<{
52
84
  id: z.ZodString;
@@ -79,6 +111,10 @@ export declare const stepStateSchema: z.ZodObject<{
79
111
  finishedAt: z.ZodOptional<z.ZodString>;
80
112
  error: z.ZodOptional<z.ZodString>;
81
113
  sessionId: z.ZodOptional<z.ZodString>;
114
+ sessionTransport: z.ZodOptional<z.ZodEnum<{
115
+ "cursor-acp": "cursor-acp";
116
+ "cursor-print": "cursor-print";
117
+ }>>;
82
118
  backend: z.ZodOptional<z.ZodEnum<{
83
119
  claude: "claude";
84
120
  codex: "codex";
@@ -119,6 +155,13 @@ export declare const continuationMessageSchema: z.ZodObject<{
119
155
  lifecycle: "lifecycle";
120
156
  }>>;
121
157
  agentInputId: z.ZodOptional<z.ZodUUID>;
158
+ resumeContext: z.ZodOptional<z.ZodObject<{
159
+ failure: z.ZodOptional<z.ZodObject<{
160
+ stepId: z.ZodOptional<z.ZodString>;
161
+ error: z.ZodString;
162
+ }, z.core.$strip>>;
163
+ restarted: z.ZodOptional<z.ZodLiteral<true>>;
164
+ }, z.core.$strip>>;
122
165
  }, z.core.$strip>;
123
166
  /** One aggregated sample of a run's live process tree (`src/core/process-usage.ts`). */
124
167
  export declare const processUsageSchema: z.ZodObject<{
@@ -127,11 +170,14 @@ export declare const processUsageSchema: z.ZodObject<{
127
170
  procCount: z.ZodNumber;
128
171
  }, z.core.$strip>;
129
172
  export type ProcessUsage = z.infer<typeof processUsageSchema>;
130
- /** What the last task-webhook delivery did (#589). A success clears `lastError`; a failure after
131
- * every attempt keeps `lastDeliveredAt` from the last one that worked. */
173
+ /** What the last task-webhook delivery did (#589). A failure after every attempt keeps
174
+ * `lastDeliveredAt` from the last one that worked. With several webhooks
175
+ * (hearsay-tools/cezarion#1576), `lastError` starts with the failed webhook's name and
176
+ * `lastErrorWebhookId` names it; only a later success to that webhook clears it. */
132
177
  export declare const runWebhookOutcomeSchema: z.ZodObject<{
133
178
  lastDeliveredAt: z.ZodOptional<z.ZodString>;
134
179
  lastError: z.ZodOptional<z.ZodString>;
180
+ lastErrorWebhookId: z.ZodOptional<z.ZodString>;
135
181
  }, z.core.$strip>;
136
182
  export type RunWebhookOutcome = z.infer<typeof runWebhookOutcomeSchema>;
137
183
  /**
@@ -158,6 +204,16 @@ export declare const runWorktreeSetupSchema: z.ZodObject<{
158
204
  error: z.ZodOptional<z.ZodString>;
159
205
  }, z.core.$strip>;
160
206
  export type RunWorktreeSetup = z.infer<typeof runWorktreeSetupSchema>;
207
+ /** Task-owned PR evidence (hearsay-tools/cezarion#922); candidates never enter this list. */
208
+ export declare const runPullRequestSchema: z.ZodObject<{
209
+ number: z.ZodNumber;
210
+ url: z.ZodOptional<z.ZodString>;
211
+ source: z.ZodEnum<{
212
+ created: "created";
213
+ declared: "declared";
214
+ }>;
215
+ }, z.core.$strip>;
216
+ export type RunPullRequest = z.infer<typeof runPullRequestSchema>;
161
217
  export declare const runRecordSchema: z.ZodObject<{
162
218
  id: z.ZodString;
163
219
  title: z.ZodString;
@@ -187,7 +243,15 @@ export declare const runRecordSchema: z.ZodObject<{
187
243
  lifecycle: "lifecycle";
188
244
  }>>;
189
245
  agentInputId: z.ZodOptional<z.ZodUUID>;
246
+ resumeContext: z.ZodOptional<z.ZodObject<{
247
+ failure: z.ZodOptional<z.ZodObject<{
248
+ stepId: z.ZodOptional<z.ZodString>;
249
+ error: z.ZodString;
250
+ }, z.core.$strip>>;
251
+ restarted: z.ZodOptional<z.ZodLiteral<true>>;
252
+ }, z.core.$strip>>;
190
253
  }, z.core.$strip>>;
254
+ workflowResumeStepId: z.ZodOptional<z.ZodString>;
191
255
  invalidAsk: z.ZodOptional<z.ZodBoolean>;
192
256
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
193
257
  role: z.ZodLiteral<"root">;
@@ -216,14 +280,15 @@ export declare const runRecordSchema: z.ZodObject<{
216
280
  resumed: z.ZodOptional<z.ZodLiteral<true>>;
217
281
  instruction: z.ZodOptional<z.ZodString>;
218
282
  question: z.ZodOptional<z.ZodObject<{
283
+ context: z.ZodOptional<z.ZodString>;
219
284
  questions: z.ZodArray<z.ZodObject<{
220
285
  id: z.ZodOptional<z.ZodString>;
221
286
  header: z.ZodString;
222
287
  question: z.ZodString;
223
- options: z.ZodArray<z.ZodObject<{
288
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
224
289
  label: z.ZodString;
225
290
  description: z.ZodOptional<z.ZodString>;
226
- }, z.core.$strict>>;
291
+ }, z.core.$strict>>>;
227
292
  multiSelect: z.ZodOptional<z.ZodBoolean>;
228
293
  }, z.core.$strict>>;
229
294
  }, z.core.$strict>>;
@@ -237,6 +302,7 @@ export declare const runRecordSchema: z.ZodObject<{
237
302
  failed: "failed";
238
303
  "human-fallback": "human-fallback";
239
304
  replied: "replied";
305
+ "replied-late": "replied-late";
240
306
  "sender-closed": "sender-closed";
241
307
  "timed-out": "timed-out";
242
308
  }>;
@@ -280,6 +346,7 @@ export declare const runRecordSchema: z.ZodObject<{
280
346
  failed: "failed";
281
347
  "human-fallback": "human-fallback";
282
348
  replied: "replied";
349
+ "replied-late": "replied-late";
283
350
  "sender-closed": "sender-closed";
284
351
  "timed-out": "timed-out";
285
352
  }>;
@@ -334,6 +401,7 @@ export declare const runRecordSchema: z.ZodObject<{
334
401
  failed: "failed";
335
402
  "human-fallback": "human-fallback";
336
403
  replied: "replied";
404
+ "replied-late": "replied-late";
337
405
  "sender-closed": "sender-closed";
338
406
  "timed-out": "timed-out";
339
407
  }>;
@@ -423,6 +491,7 @@ export declare const runRecordSchema: z.ZodObject<{
423
491
  failed: "failed";
424
492
  "human-fallback": "human-fallback";
425
493
  replied: "replied";
494
+ "replied-late": "replied-late";
426
495
  "sender-closed": "sender-closed";
427
496
  "timed-out": "timed-out";
428
497
  }>;
@@ -477,6 +546,7 @@ export declare const runRecordSchema: z.ZodObject<{
477
546
  failed: "failed";
478
547
  "human-fallback": "human-fallback";
479
548
  replied: "replied";
549
+ "replied-late": "replied-late";
480
550
  "sender-closed": "sender-closed";
481
551
  "timed-out": "timed-out";
482
552
  }>;
@@ -561,6 +631,9 @@ export declare const runRecordSchema: z.ZodObject<{
561
631
  }, z.core.$strict>, z.ZodObject<{
562
632
  kind: z.ZodLiteral<"parent-attachment">;
563
633
  id: z.ZodString;
634
+ }, z.core.$strict>, z.ZodObject<{
635
+ kind: z.ZodLiteral<"parent-file">;
636
+ path: z.ZodString;
564
637
  }, z.core.$strict>], "kind">;
565
638
  path: z.ZodString;
566
639
  sha256: z.ZodString;
@@ -602,38 +675,75 @@ export declare const runRecordSchema: z.ZodObject<{
602
675
  acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
603
676
  memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
604
677
  }, z.core.$strict>>;
678
+ purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
605
679
  }, z.core.$strict>>>;
606
- ciWait: z.ZodOptional<z.ZodObject<{
680
+ waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
607
681
  prUrl: z.ZodString;
608
682
  repository: z.ZodString;
609
683
  prNumber: z.ZodNumber;
610
684
  headSha: z.ZodString;
611
685
  id: z.ZodUUID;
612
- generation: z.ZodString;
613
- turnId: z.ZodString;
614
- timeoutSeconds: z.ZodNumber;
686
+ source: z.ZodEnum<{
687
+ agent: "agent";
688
+ cezar: "cezar";
689
+ }>;
690
+ via: z.ZodEnum<{
691
+ "ask-line": "ask-line";
692
+ budget: "budget";
693
+ "cez-worker-wait": "cez-worker-wait";
694
+ cezar_ask: "cezar_ask";
695
+ cezar_wait: "cezar_wait";
696
+ cezar_wait_for_ci: "cezar_wait_for_ci";
697
+ completion: "completion";
698
+ "monitoring-line": "monitoring-line";
699
+ "native-ask": "native-ask";
700
+ "no-wait": "no-wait";
701
+ "schedule-wakeup": "schedule-wakeup";
702
+ }>;
615
703
  registeredAt: z.ZodISODateTime;
616
- deadline: z.ZodISODateTime;
617
704
  phase: z.ZodEnum<{
705
+ cancelled: "cancelled";
618
706
  delivered: "delivered";
619
- parked: "parked";
620
- registered: "registered";
621
- "wake-pending": "wake-pending";
622
- withdrawn: "withdrawn";
707
+ open: "open";
708
+ resolved: "resolved";
709
+ }>;
710
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
711
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
712
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
713
+ turnId: z.ZodString;
714
+ kind: z.ZodLiteral<"pr">;
715
+ deadline: z.ZodISODateTime;
716
+ generation: z.ZodString;
717
+ timeoutSeconds: z.ZodNumber;
718
+ until: z.ZodEnum<{
719
+ checks: "checks";
720
+ merge: "merge";
623
721
  }>;
722
+ wakeOnConflict: z.ZodBoolean;
624
723
  result: z.ZodOptional<z.ZodObject<{
625
724
  outcome: z.ZodEnum<{
626
725
  cancelled: "cancelled";
726
+ closed: "closed";
727
+ conflicting: "conflicting";
627
728
  deadline: "deadline";
628
729
  error: "error";
629
730
  failed: "failed";
630
731
  head_changed: "head_changed";
732
+ merged: "merged";
631
733
  no_checks: "no_checks";
632
734
  passed: "passed";
633
735
  skipped: "skipped";
634
736
  }>;
635
737
  headSha: z.ZodString;
636
738
  observedHeadSha: z.ZodOptional<z.ZodString>;
739
+ mergeable: z.ZodOptional<z.ZodEnum<{
740
+ CONFLICTING: "CONFLICTING";
741
+ MERGEABLE: "MERGEABLE";
742
+ UNKNOWN: "UNKNOWN";
743
+ }>>;
744
+ mergeStateStatus: z.ZodOptional<z.ZodString>;
745
+ mergedAt: z.ZodOptional<z.ZodISODateTime>;
746
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
637
747
  observedAt: z.ZodISODateTime;
638
748
  checks: z.ZodArray<z.ZodObject<{
639
749
  name: z.ZodString;
@@ -644,40 +754,279 @@ export declare const runRecordSchema: z.ZodObject<{
644
754
  truncated: z.ZodBoolean;
645
755
  diagnostic: z.ZodOptional<z.ZodString>;
646
756
  }, z.core.$strict>>;
647
- wakeId: z.ZodOptional<z.ZodString>;
757
+ }, z.core.$strict>, z.ZodObject<{
758
+ id: z.ZodUUID;
759
+ source: z.ZodEnum<{
760
+ agent: "agent";
761
+ cezar: "cezar";
762
+ }>;
763
+ via: z.ZodEnum<{
764
+ "ask-line": "ask-line";
765
+ budget: "budget";
766
+ "cez-worker-wait": "cez-worker-wait";
767
+ cezar_ask: "cezar_ask";
768
+ cezar_wait: "cezar_wait";
769
+ cezar_wait_for_ci: "cezar_wait_for_ci";
770
+ completion: "completion";
771
+ "monitoring-line": "monitoring-line";
772
+ "native-ask": "native-ask";
773
+ "no-wait": "no-wait";
774
+ "schedule-wakeup": "schedule-wakeup";
775
+ }>;
776
+ registeredAt: z.ZodISODateTime;
777
+ phase: z.ZodEnum<{
778
+ cancelled: "cancelled";
779
+ delivered: "delivered";
780
+ open: "open";
781
+ resolved: "resolved";
782
+ }>;
783
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
648
784
  deliveredAt: z.ZodOptional<z.ZodISODateTime>;
649
- }, z.core.$strict>>;
650
- lastCiWait: z.ZodOptional<z.ZodObject<{
785
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
786
+ turnId: z.ZodString;
787
+ kind: z.ZodLiteral<"timer">;
788
+ deadline: z.ZodISODateTime;
789
+ seconds: z.ZodNumber;
790
+ note: z.ZodOptional<z.ZodString>;
791
+ }, z.core.$strict>, z.ZodObject<{
792
+ id: z.ZodUUID;
793
+ source: z.ZodEnum<{
794
+ agent: "agent";
795
+ cezar: "cezar";
796
+ }>;
797
+ via: z.ZodEnum<{
798
+ "ask-line": "ask-line";
799
+ budget: "budget";
800
+ "cez-worker-wait": "cez-worker-wait";
801
+ cezar_ask: "cezar_ask";
802
+ cezar_wait: "cezar_wait";
803
+ cezar_wait_for_ci: "cezar_wait_for_ci";
804
+ completion: "completion";
805
+ "monitoring-line": "monitoring-line";
806
+ "native-ask": "native-ask";
807
+ "no-wait": "no-wait";
808
+ "schedule-wakeup": "schedule-wakeup";
809
+ }>;
810
+ registeredAt: z.ZodISODateTime;
811
+ phase: z.ZodEnum<{
812
+ cancelled: "cancelled";
813
+ delivered: "delivered";
814
+ open: "open";
815
+ resolved: "resolved";
816
+ }>;
817
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
818
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
819
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
820
+ turnId: z.ZodString;
821
+ kind: z.ZodLiteral<"human">;
822
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
823
+ id: z.ZodOptional<z.ZodString>;
824
+ header: z.ZodString;
825
+ question: z.ZodString;
826
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
827
+ label: z.ZodString;
828
+ description: z.ZodOptional<z.ZodString>;
829
+ }, z.core.$strict>>>;
830
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
831
+ }, z.core.$strict>>>;
832
+ context: z.ZodOptional<z.ZodString>;
833
+ askSeq: z.ZodOptional<z.ZodNumber>;
834
+ }, z.core.$strict>, z.ZodObject<{
835
+ id: z.ZodUUID;
836
+ source: z.ZodEnum<{
837
+ agent: "agent";
838
+ cezar: "cezar";
839
+ }>;
840
+ via: z.ZodEnum<{
841
+ "ask-line": "ask-line";
842
+ budget: "budget";
843
+ "cez-worker-wait": "cez-worker-wait";
844
+ cezar_ask: "cezar_ask";
845
+ cezar_wait: "cezar_wait";
846
+ cezar_wait_for_ci: "cezar_wait_for_ci";
847
+ completion: "completion";
848
+ "monitoring-line": "monitoring-line";
849
+ "native-ask": "native-ask";
850
+ "no-wait": "no-wait";
851
+ "schedule-wakeup": "schedule-wakeup";
852
+ }>;
853
+ registeredAt: z.ZodISODateTime;
854
+ phase: z.ZodEnum<{
855
+ cancelled: "cancelled";
856
+ delivered: "delivered";
857
+ open: "open";
858
+ resolved: "resolved";
859
+ }>;
860
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
861
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
862
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
863
+ turnId: z.ZodString;
864
+ kind: z.ZodLiteral<"worker">;
865
+ deadline: z.ZodOptional<z.ZodISODateTime>;
866
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
867
+ mode: z.ZodOptional<z.ZodEnum<{
868
+ all: "all";
869
+ any: "any";
870
+ one: "one";
871
+ }>>;
872
+ workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
873
+ revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
874
+ workerId: z.ZodUUID;
875
+ revision: z.ZodNumber;
876
+ }, z.core.$strict>>>;
877
+ outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
878
+ workerId: z.ZodUUID;
879
+ status: z.ZodEnum<{
880
+ cancelled: "cancelled";
881
+ done: "done";
882
+ failed: "failed";
883
+ review: "review";
884
+ }>;
885
+ observedAt: z.ZodISODateTime;
886
+ summary: z.ZodOptional<z.ZodString>;
887
+ revision: z.ZodOptional<z.ZodNumber>;
888
+ }, z.core.$strict>>>;
889
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
890
+ requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
891
+ requestId: z.ZodUUID;
892
+ status: z.ZodEnum<{
893
+ cancelled: "cancelled";
894
+ "completed-without-reply": "completed-without-reply";
895
+ destroyed: "destroyed";
896
+ failed: "failed";
897
+ "human-fallback": "human-fallback";
898
+ replied: "replied";
899
+ "replied-late": "replied-late";
900
+ "sender-closed": "sender-closed";
901
+ "timed-out": "timed-out";
902
+ }>;
903
+ observedAt: z.ZodISODateTime;
904
+ replyId: z.ZodOptional<z.ZodUUID>;
905
+ }, z.core.$strict>>>;
906
+ result: z.ZodOptional<z.ZodObject<{
907
+ reason: z.ZodEnum<{
908
+ outcome: "outcome";
909
+ timeout: "timeout";
910
+ }>;
911
+ }, z.core.$strict>>;
912
+ wakeInputId: z.ZodOptional<z.ZodUUID>;
913
+ }, z.core.$strict>, z.ZodObject<{
914
+ id: z.ZodUUID;
915
+ source: z.ZodEnum<{
916
+ agent: "agent";
917
+ cezar: "cezar";
918
+ }>;
919
+ via: z.ZodEnum<{
920
+ "ask-line": "ask-line";
921
+ budget: "budget";
922
+ "cez-worker-wait": "cez-worker-wait";
923
+ cezar_ask: "cezar_ask";
924
+ cezar_wait: "cezar_wait";
925
+ cezar_wait_for_ci: "cezar_wait_for_ci";
926
+ completion: "completion";
927
+ "monitoring-line": "monitoring-line";
928
+ "native-ask": "native-ask";
929
+ "no-wait": "no-wait";
930
+ "schedule-wakeup": "schedule-wakeup";
931
+ }>;
932
+ registeredAt: z.ZodISODateTime;
933
+ phase: z.ZodEnum<{
934
+ cancelled: "cancelled";
935
+ delivered: "delivered";
936
+ open: "open";
937
+ resolved: "resolved";
938
+ }>;
939
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
940
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
941
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
942
+ turnId: z.ZodString;
943
+ kind: z.ZodLiteral<"process">;
944
+ deadline: z.ZodISODateTime;
945
+ timeoutSeconds: z.ZodNumber;
946
+ pid: z.ZodNumber;
947
+ startToken: z.ZodOptional<z.ZodString>;
948
+ exitFile: z.ZodOptional<z.ZodString>;
949
+ note: z.ZodOptional<z.ZodString>;
950
+ result: z.ZodOptional<z.ZodObject<{
951
+ outcome: z.ZodEnum<{
952
+ deadline: "deadline";
953
+ error: "error";
954
+ exit_file: "exit_file";
955
+ exited: "exited";
956
+ }>;
957
+ observedAt: z.ZodISODateTime;
958
+ exitCode: z.ZodOptional<z.ZodNumber>;
959
+ exitFileNote: z.ZodOptional<z.ZodLiteral<"not-an-exit-code">>;
960
+ diagnostic: z.ZodOptional<z.ZodString>;
961
+ }, z.core.$strict>>;
962
+ }, z.core.$strict>], "kind">>>;
963
+ lastWaits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
651
964
  prUrl: z.ZodString;
652
965
  repository: z.ZodString;
653
966
  prNumber: z.ZodNumber;
654
967
  headSha: z.ZodString;
655
968
  id: z.ZodUUID;
656
- generation: z.ZodString;
657
- turnId: z.ZodString;
658
- timeoutSeconds: z.ZodNumber;
969
+ source: z.ZodEnum<{
970
+ agent: "agent";
971
+ cezar: "cezar";
972
+ }>;
973
+ via: z.ZodEnum<{
974
+ "ask-line": "ask-line";
975
+ budget: "budget";
976
+ "cez-worker-wait": "cez-worker-wait";
977
+ cezar_ask: "cezar_ask";
978
+ cezar_wait: "cezar_wait";
979
+ cezar_wait_for_ci: "cezar_wait_for_ci";
980
+ completion: "completion";
981
+ "monitoring-line": "monitoring-line";
982
+ "native-ask": "native-ask";
983
+ "no-wait": "no-wait";
984
+ "schedule-wakeup": "schedule-wakeup";
985
+ }>;
659
986
  registeredAt: z.ZodISODateTime;
660
- deadline: z.ZodISODateTime;
661
987
  phase: z.ZodEnum<{
988
+ cancelled: "cancelled";
662
989
  delivered: "delivered";
663
- parked: "parked";
664
- registered: "registered";
665
- "wake-pending": "wake-pending";
666
- withdrawn: "withdrawn";
990
+ open: "open";
991
+ resolved: "resolved";
992
+ }>;
993
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
994
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
995
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
996
+ turnId: z.ZodString;
997
+ kind: z.ZodLiteral<"pr">;
998
+ deadline: z.ZodISODateTime;
999
+ generation: z.ZodString;
1000
+ timeoutSeconds: z.ZodNumber;
1001
+ until: z.ZodEnum<{
1002
+ checks: "checks";
1003
+ merge: "merge";
667
1004
  }>;
1005
+ wakeOnConflict: z.ZodBoolean;
668
1006
  result: z.ZodOptional<z.ZodObject<{
669
1007
  outcome: z.ZodEnum<{
670
1008
  cancelled: "cancelled";
1009
+ closed: "closed";
1010
+ conflicting: "conflicting";
671
1011
  deadline: "deadline";
672
1012
  error: "error";
673
1013
  failed: "failed";
674
1014
  head_changed: "head_changed";
1015
+ merged: "merged";
675
1016
  no_checks: "no_checks";
676
1017
  passed: "passed";
677
1018
  skipped: "skipped";
678
1019
  }>;
679
1020
  headSha: z.ZodString;
680
1021
  observedHeadSha: z.ZodOptional<z.ZodString>;
1022
+ mergeable: z.ZodOptional<z.ZodEnum<{
1023
+ CONFLICTING: "CONFLICTING";
1024
+ MERGEABLE: "MERGEABLE";
1025
+ UNKNOWN: "UNKNOWN";
1026
+ }>>;
1027
+ mergeStateStatus: z.ZodOptional<z.ZodString>;
1028
+ mergedAt: z.ZodOptional<z.ZodISODateTime>;
1029
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
681
1030
  observedAt: z.ZodISODateTime;
682
1031
  checks: z.ZodArray<z.ZodObject<{
683
1032
  name: z.ZodString;
@@ -688,10 +1037,215 @@ export declare const runRecordSchema: z.ZodObject<{
688
1037
  truncated: z.ZodBoolean;
689
1038
  diagnostic: z.ZodOptional<z.ZodString>;
690
1039
  }, z.core.$strict>>;
691
- wakeId: z.ZodOptional<z.ZodString>;
1040
+ }, z.core.$strict>, z.ZodObject<{
1041
+ id: z.ZodUUID;
1042
+ source: z.ZodEnum<{
1043
+ agent: "agent";
1044
+ cezar: "cezar";
1045
+ }>;
1046
+ via: z.ZodEnum<{
1047
+ "ask-line": "ask-line";
1048
+ budget: "budget";
1049
+ "cez-worker-wait": "cez-worker-wait";
1050
+ cezar_ask: "cezar_ask";
1051
+ cezar_wait: "cezar_wait";
1052
+ cezar_wait_for_ci: "cezar_wait_for_ci";
1053
+ completion: "completion";
1054
+ "monitoring-line": "monitoring-line";
1055
+ "native-ask": "native-ask";
1056
+ "no-wait": "no-wait";
1057
+ "schedule-wakeup": "schedule-wakeup";
1058
+ }>;
1059
+ registeredAt: z.ZodISODateTime;
1060
+ phase: z.ZodEnum<{
1061
+ cancelled: "cancelled";
1062
+ delivered: "delivered";
1063
+ open: "open";
1064
+ resolved: "resolved";
1065
+ }>;
1066
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
692
1067
  deliveredAt: z.ZodOptional<z.ZodISODateTime>;
693
- }, z.core.$strict>>;
694
- lastCiWaitError: z.ZodOptional<z.ZodString>;
1068
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
1069
+ turnId: z.ZodString;
1070
+ kind: z.ZodLiteral<"timer">;
1071
+ deadline: z.ZodISODateTime;
1072
+ seconds: z.ZodNumber;
1073
+ note: z.ZodOptional<z.ZodString>;
1074
+ }, z.core.$strict>, z.ZodObject<{
1075
+ id: z.ZodUUID;
1076
+ source: z.ZodEnum<{
1077
+ agent: "agent";
1078
+ cezar: "cezar";
1079
+ }>;
1080
+ via: z.ZodEnum<{
1081
+ "ask-line": "ask-line";
1082
+ budget: "budget";
1083
+ "cez-worker-wait": "cez-worker-wait";
1084
+ cezar_ask: "cezar_ask";
1085
+ cezar_wait: "cezar_wait";
1086
+ cezar_wait_for_ci: "cezar_wait_for_ci";
1087
+ completion: "completion";
1088
+ "monitoring-line": "monitoring-line";
1089
+ "native-ask": "native-ask";
1090
+ "no-wait": "no-wait";
1091
+ "schedule-wakeup": "schedule-wakeup";
1092
+ }>;
1093
+ registeredAt: z.ZodISODateTime;
1094
+ phase: z.ZodEnum<{
1095
+ cancelled: "cancelled";
1096
+ delivered: "delivered";
1097
+ open: "open";
1098
+ resolved: "resolved";
1099
+ }>;
1100
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
1101
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
1102
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
1103
+ turnId: z.ZodString;
1104
+ kind: z.ZodLiteral<"human">;
1105
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1106
+ id: z.ZodOptional<z.ZodString>;
1107
+ header: z.ZodString;
1108
+ question: z.ZodString;
1109
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
1110
+ label: z.ZodString;
1111
+ description: z.ZodOptional<z.ZodString>;
1112
+ }, z.core.$strict>>>;
1113
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
1114
+ }, z.core.$strict>>>;
1115
+ context: z.ZodOptional<z.ZodString>;
1116
+ askSeq: z.ZodOptional<z.ZodNumber>;
1117
+ }, z.core.$strict>, z.ZodObject<{
1118
+ id: z.ZodUUID;
1119
+ source: z.ZodEnum<{
1120
+ agent: "agent";
1121
+ cezar: "cezar";
1122
+ }>;
1123
+ via: z.ZodEnum<{
1124
+ "ask-line": "ask-line";
1125
+ budget: "budget";
1126
+ "cez-worker-wait": "cez-worker-wait";
1127
+ cezar_ask: "cezar_ask";
1128
+ cezar_wait: "cezar_wait";
1129
+ cezar_wait_for_ci: "cezar_wait_for_ci";
1130
+ completion: "completion";
1131
+ "monitoring-line": "monitoring-line";
1132
+ "native-ask": "native-ask";
1133
+ "no-wait": "no-wait";
1134
+ "schedule-wakeup": "schedule-wakeup";
1135
+ }>;
1136
+ registeredAt: z.ZodISODateTime;
1137
+ phase: z.ZodEnum<{
1138
+ cancelled: "cancelled";
1139
+ delivered: "delivered";
1140
+ open: "open";
1141
+ resolved: "resolved";
1142
+ }>;
1143
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
1144
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
1145
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
1146
+ turnId: z.ZodString;
1147
+ kind: z.ZodLiteral<"worker">;
1148
+ deadline: z.ZodOptional<z.ZodISODateTime>;
1149
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
1150
+ mode: z.ZodOptional<z.ZodEnum<{
1151
+ all: "all";
1152
+ any: "any";
1153
+ one: "one";
1154
+ }>>;
1155
+ workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1156
+ revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1157
+ workerId: z.ZodUUID;
1158
+ revision: z.ZodNumber;
1159
+ }, z.core.$strict>>>;
1160
+ outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1161
+ workerId: z.ZodUUID;
1162
+ status: z.ZodEnum<{
1163
+ cancelled: "cancelled";
1164
+ done: "done";
1165
+ failed: "failed";
1166
+ review: "review";
1167
+ }>;
1168
+ observedAt: z.ZodISODateTime;
1169
+ summary: z.ZodOptional<z.ZodString>;
1170
+ revision: z.ZodOptional<z.ZodNumber>;
1171
+ }, z.core.$strict>>>;
1172
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1173
+ requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1174
+ requestId: z.ZodUUID;
1175
+ status: z.ZodEnum<{
1176
+ cancelled: "cancelled";
1177
+ "completed-without-reply": "completed-without-reply";
1178
+ destroyed: "destroyed";
1179
+ failed: "failed";
1180
+ "human-fallback": "human-fallback";
1181
+ replied: "replied";
1182
+ "replied-late": "replied-late";
1183
+ "sender-closed": "sender-closed";
1184
+ "timed-out": "timed-out";
1185
+ }>;
1186
+ observedAt: z.ZodISODateTime;
1187
+ replyId: z.ZodOptional<z.ZodUUID>;
1188
+ }, z.core.$strict>>>;
1189
+ result: z.ZodOptional<z.ZodObject<{
1190
+ reason: z.ZodEnum<{
1191
+ outcome: "outcome";
1192
+ timeout: "timeout";
1193
+ }>;
1194
+ }, z.core.$strict>>;
1195
+ wakeInputId: z.ZodOptional<z.ZodUUID>;
1196
+ }, z.core.$strict>, z.ZodObject<{
1197
+ id: z.ZodUUID;
1198
+ source: z.ZodEnum<{
1199
+ agent: "agent";
1200
+ cezar: "cezar";
1201
+ }>;
1202
+ via: z.ZodEnum<{
1203
+ "ask-line": "ask-line";
1204
+ budget: "budget";
1205
+ "cez-worker-wait": "cez-worker-wait";
1206
+ cezar_ask: "cezar_ask";
1207
+ cezar_wait: "cezar_wait";
1208
+ cezar_wait_for_ci: "cezar_wait_for_ci";
1209
+ completion: "completion";
1210
+ "monitoring-line": "monitoring-line";
1211
+ "native-ask": "native-ask";
1212
+ "no-wait": "no-wait";
1213
+ "schedule-wakeup": "schedule-wakeup";
1214
+ }>;
1215
+ registeredAt: z.ZodISODateTime;
1216
+ phase: z.ZodEnum<{
1217
+ cancelled: "cancelled";
1218
+ delivered: "delivered";
1219
+ open: "open";
1220
+ resolved: "resolved";
1221
+ }>;
1222
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
1223
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
1224
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
1225
+ turnId: z.ZodString;
1226
+ kind: z.ZodLiteral<"process">;
1227
+ deadline: z.ZodISODateTime;
1228
+ timeoutSeconds: z.ZodNumber;
1229
+ pid: z.ZodNumber;
1230
+ startToken: z.ZodOptional<z.ZodString>;
1231
+ exitFile: z.ZodOptional<z.ZodString>;
1232
+ note: z.ZodOptional<z.ZodString>;
1233
+ result: z.ZodOptional<z.ZodObject<{
1234
+ outcome: z.ZodEnum<{
1235
+ deadline: "deadline";
1236
+ error: "error";
1237
+ exit_file: "exit_file";
1238
+ exited: "exited";
1239
+ }>;
1240
+ observedAt: z.ZodISODateTime;
1241
+ exitCode: z.ZodOptional<z.ZodNumber>;
1242
+ exitFileNote: z.ZodOptional<z.ZodLiteral<"not-an-exit-code">>;
1243
+ diagnostic: z.ZodOptional<z.ZodString>;
1244
+ }, z.core.$strict>>;
1245
+ }, z.core.$strict>], "kind">>>;
1246
+ lastWaitsError: z.ZodOptional<z.ZodString>;
1247
+ automaticWakes: z.ZodOptional<z.ZodNumber>;
1248
+ waitDeliveryFailures: z.ZodOptional<z.ZodNumber>;
695
1249
  previewServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
696
1250
  port: z.ZodNumber;
697
1251
  command: z.ZodString;
@@ -717,6 +1271,22 @@ export declare const runRecordSchema: z.ZodObject<{
717
1271
  systemPrompt: z.ZodOptional<z.ZodString>;
718
1272
  generateFollowups: z.ZodOptional<z.ZodBoolean>;
719
1273
  autonomous: z.ZodOptional<z.ZodBoolean>;
1274
+ archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
1275
+ autoMergePr: z.ZodOptional<z.ZodBoolean>;
1276
+ completionAction: z.ZodOptional<z.ZodObject<{
1277
+ id: z.ZodString;
1278
+ phase: z.ZodEnum<{
1279
+ blocked: "blocked";
1280
+ complete: "complete";
1281
+ pending: "pending";
1282
+ }>;
1283
+ message: z.ZodOptional<z.ZodString>;
1284
+ }, z.core.$strip>>;
1285
+ archiveBlocker: z.ZodOptional<z.ZodObject<{
1286
+ message: z.ZodString;
1287
+ runId: z.ZodOptional<z.ZodString>;
1288
+ pullRequestUrl: z.ZodOptional<z.ZodString>;
1289
+ }, z.core.$strip>>;
720
1290
  automation: z.ZodOptional<z.ZodObject<{
721
1291
  automationId: z.ZodString;
722
1292
  automationRevision: z.ZodNumber;
@@ -744,6 +1314,7 @@ export declare const runRecordSchema: z.ZodObject<{
744
1314
  webhook: z.ZodOptional<z.ZodObject<{
745
1315
  lastDeliveredAt: z.ZodOptional<z.ZodString>;
746
1316
  lastError: z.ZodOptional<z.ZodString>;
1317
+ lastErrorWebhookId: z.ZodOptional<z.ZodString>;
747
1318
  }, z.core.$strip>>;
748
1319
  status: z.ZodEnum<{
749
1320
  cancelled: "cancelled";
@@ -754,12 +1325,7 @@ export declare const runRecordSchema: z.ZodObject<{
754
1325
  running: "running";
755
1326
  waiting: "waiting";
756
1327
  }>;
757
- activity: z.ZodOptional<z.ZodEnum<{
758
- monitoring: "monitoring";
759
- }>>;
760
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
761
- monitoringWakeAt: z.ZodOptional<z.ZodString>;
762
- monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
1328
+ hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
763
1329
  autoResumeAt: z.ZodOptional<z.ZodString>;
764
1330
  autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
765
1331
  createdAt: z.ZodString;
@@ -770,6 +1336,14 @@ export declare const runRecordSchema: z.ZodObject<{
770
1336
  outputTokens: z.ZodOptional<z.ZodNumber>;
771
1337
  costUsd: z.ZodOptional<z.ZodNumber>;
772
1338
  pullRequestUrl: z.ZodOptional<z.ZodString>;
1339
+ pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
1340
+ number: z.ZodNumber;
1341
+ url: z.ZodOptional<z.ZodString>;
1342
+ source: z.ZodEnum<{
1343
+ created: "created";
1344
+ declared: "declared";
1345
+ }>;
1346
+ }, z.core.$strip>>>;
773
1347
  referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
774
1348
  prNumber: z.ZodOptional<z.ZodNumber>;
775
1349
  issueNumber: z.ZodOptional<z.ZodNumber>;
@@ -810,6 +1384,18 @@ export declare const runRecordSchema: z.ZodObject<{
810
1384
  peakProcCount: z.ZodOptional<z.ZodNumber>;
811
1385
  archived: z.ZodBoolean;
812
1386
  archivedAt: z.ZodOptional<z.ZodString>;
1387
+ autoArchive: z.ZodOptional<z.ZodObject<{
1388
+ reason: z.ZodLiteral<"pull-requests-merged">;
1389
+ archivedAt: z.ZodString;
1390
+ fingerprint: z.ZodString;
1391
+ pullRequests: z.ZodArray<z.ZodObject<{
1392
+ owner: z.ZodString;
1393
+ repo: z.ZodString;
1394
+ number: z.ZodNumber;
1395
+ mergedAt: z.ZodString;
1396
+ }, z.core.$strip>>;
1397
+ }, z.core.$strip>>;
1398
+ manualUnarchivedAt: z.ZodOptional<z.ZodString>;
813
1399
  pinned: z.ZodOptional<z.ZodBoolean>;
814
1400
  pinnedAt: z.ZodOptional<z.ZodString>;
815
1401
  seenAt: z.ZodOptional<z.ZodString>;
@@ -846,6 +1432,10 @@ export declare const runRecordSchema: z.ZodObject<{
846
1432
  finishedAt: z.ZodOptional<z.ZodString>;
847
1433
  error: z.ZodOptional<z.ZodString>;
848
1434
  sessionId: z.ZodOptional<z.ZodString>;
1435
+ sessionTransport: z.ZodOptional<z.ZodEnum<{
1436
+ "cursor-acp": "cursor-acp";
1437
+ "cursor-print": "cursor-print";
1438
+ }>>;
849
1439
  backend: z.ZodOptional<z.ZodEnum<{
850
1440
  claude: "claude";
851
1441
  codex: "codex";
@@ -892,6 +1482,18 @@ export declare const runRecordSchema: z.ZodObject<{
892
1482
  }>;
893
1483
  path: z.ZodOptional<z.ZodString>;
894
1484
  }, z.core.$strip>>;
1485
+ handoffRecords: z.ZodOptional<z.ZodObject<{
1486
+ autosave: z.ZodArray<z.ZodObject<{
1487
+ at: z.ZodString;
1488
+ note: z.ZodString;
1489
+ periodic: z.ZodOptional<z.ZodObject<{
1490
+ branch: z.ZodNullable<z.ZodString>;
1491
+ count: z.ZodNumber;
1492
+ first: z.ZodNullable<z.ZodString>;
1493
+ latest: z.ZodNullable<z.ZodString>;
1494
+ }, z.core.$strip>>;
1495
+ }, z.core.$strip>>;
1496
+ }, z.core.$strip>>;
895
1497
  }, z.core.$strip>;
896
1498
  export type RunRecord = z.infer<typeof runRecordSchema>;
897
1499
  /**
@@ -929,7 +1531,15 @@ export declare const apiRunSchema: z.ZodObject<{
929
1531
  lifecycle: "lifecycle";
930
1532
  }>>;
931
1533
  agentInputId: z.ZodOptional<z.ZodUUID>;
1534
+ resumeContext: z.ZodOptional<z.ZodObject<{
1535
+ failure: z.ZodOptional<z.ZodObject<{
1536
+ stepId: z.ZodOptional<z.ZodString>;
1537
+ error: z.ZodString;
1538
+ }, z.core.$strip>>;
1539
+ restarted: z.ZodOptional<z.ZodLiteral<true>>;
1540
+ }, z.core.$strip>>;
932
1541
  }, z.core.$strip>>;
1542
+ workflowResumeStepId: z.ZodOptional<z.ZodString>;
933
1543
  invalidAsk: z.ZodOptional<z.ZodBoolean>;
934
1544
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
935
1545
  role: z.ZodLiteral<"root">;
@@ -958,14 +1568,15 @@ export declare const apiRunSchema: z.ZodObject<{
958
1568
  resumed: z.ZodOptional<z.ZodLiteral<true>>;
959
1569
  instruction: z.ZodOptional<z.ZodString>;
960
1570
  question: z.ZodOptional<z.ZodObject<{
1571
+ context: z.ZodOptional<z.ZodString>;
961
1572
  questions: z.ZodArray<z.ZodObject<{
962
1573
  id: z.ZodOptional<z.ZodString>;
963
1574
  header: z.ZodString;
964
1575
  question: z.ZodString;
965
- options: z.ZodArray<z.ZodObject<{
1576
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
966
1577
  label: z.ZodString;
967
1578
  description: z.ZodOptional<z.ZodString>;
968
- }, z.core.$strict>>;
1579
+ }, z.core.$strict>>>;
969
1580
  multiSelect: z.ZodOptional<z.ZodBoolean>;
970
1581
  }, z.core.$strict>>;
971
1582
  }, z.core.$strict>>;
@@ -979,6 +1590,7 @@ export declare const apiRunSchema: z.ZodObject<{
979
1590
  failed: "failed";
980
1591
  "human-fallback": "human-fallback";
981
1592
  replied: "replied";
1593
+ "replied-late": "replied-late";
982
1594
  "sender-closed": "sender-closed";
983
1595
  "timed-out": "timed-out";
984
1596
  }>;
@@ -1022,6 +1634,7 @@ export declare const apiRunSchema: z.ZodObject<{
1022
1634
  failed: "failed";
1023
1635
  "human-fallback": "human-fallback";
1024
1636
  replied: "replied";
1637
+ "replied-late": "replied-late";
1025
1638
  "sender-closed": "sender-closed";
1026
1639
  "timed-out": "timed-out";
1027
1640
  }>;
@@ -1076,6 +1689,7 @@ export declare const apiRunSchema: z.ZodObject<{
1076
1689
  failed: "failed";
1077
1690
  "human-fallback": "human-fallback";
1078
1691
  replied: "replied";
1692
+ "replied-late": "replied-late";
1079
1693
  "sender-closed": "sender-closed";
1080
1694
  "timed-out": "timed-out";
1081
1695
  }>;
@@ -1165,6 +1779,7 @@ export declare const apiRunSchema: z.ZodObject<{
1165
1779
  failed: "failed";
1166
1780
  "human-fallback": "human-fallback";
1167
1781
  replied: "replied";
1782
+ "replied-late": "replied-late";
1168
1783
  "sender-closed": "sender-closed";
1169
1784
  "timed-out": "timed-out";
1170
1785
  }>;
@@ -1219,6 +1834,7 @@ export declare const apiRunSchema: z.ZodObject<{
1219
1834
  failed: "failed";
1220
1835
  "human-fallback": "human-fallback";
1221
1836
  replied: "replied";
1837
+ "replied-late": "replied-late";
1222
1838
  "sender-closed": "sender-closed";
1223
1839
  "timed-out": "timed-out";
1224
1840
  }>;
@@ -1303,6 +1919,9 @@ export declare const apiRunSchema: z.ZodObject<{
1303
1919
  }, z.core.$strict>, z.ZodObject<{
1304
1920
  kind: z.ZodLiteral<"parent-attachment">;
1305
1921
  id: z.ZodString;
1922
+ }, z.core.$strict>, z.ZodObject<{
1923
+ kind: z.ZodLiteral<"parent-file">;
1924
+ path: z.ZodString;
1306
1925
  }, z.core.$strict>], "kind">;
1307
1926
  path: z.ZodString;
1308
1927
  sha256: z.ZodString;
@@ -1344,38 +1963,75 @@ export declare const apiRunSchema: z.ZodObject<{
1344
1963
  acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
1345
1964
  memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1346
1965
  }, z.core.$strict>>;
1966
+ purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
1347
1967
  }, z.core.$strict>>>;
1348
- ciWait: z.ZodOptional<z.ZodObject<{
1968
+ waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1349
1969
  prUrl: z.ZodString;
1350
1970
  repository: z.ZodString;
1351
1971
  prNumber: z.ZodNumber;
1352
1972
  headSha: z.ZodString;
1353
1973
  id: z.ZodUUID;
1354
- generation: z.ZodString;
1355
- turnId: z.ZodString;
1356
- timeoutSeconds: z.ZodNumber;
1974
+ source: z.ZodEnum<{
1975
+ agent: "agent";
1976
+ cezar: "cezar";
1977
+ }>;
1978
+ via: z.ZodEnum<{
1979
+ "ask-line": "ask-line";
1980
+ budget: "budget";
1981
+ "cez-worker-wait": "cez-worker-wait";
1982
+ cezar_ask: "cezar_ask";
1983
+ cezar_wait: "cezar_wait";
1984
+ cezar_wait_for_ci: "cezar_wait_for_ci";
1985
+ completion: "completion";
1986
+ "monitoring-line": "monitoring-line";
1987
+ "native-ask": "native-ask";
1988
+ "no-wait": "no-wait";
1989
+ "schedule-wakeup": "schedule-wakeup";
1990
+ }>;
1357
1991
  registeredAt: z.ZodISODateTime;
1358
- deadline: z.ZodISODateTime;
1359
1992
  phase: z.ZodEnum<{
1993
+ cancelled: "cancelled";
1360
1994
  delivered: "delivered";
1361
- parked: "parked";
1362
- registered: "registered";
1363
- "wake-pending": "wake-pending";
1364
- withdrawn: "withdrawn";
1995
+ open: "open";
1996
+ resolved: "resolved";
1997
+ }>;
1998
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
1999
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2000
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2001
+ turnId: z.ZodString;
2002
+ kind: z.ZodLiteral<"pr">;
2003
+ deadline: z.ZodISODateTime;
2004
+ generation: z.ZodString;
2005
+ timeoutSeconds: z.ZodNumber;
2006
+ until: z.ZodEnum<{
2007
+ checks: "checks";
2008
+ merge: "merge";
1365
2009
  }>;
2010
+ wakeOnConflict: z.ZodBoolean;
1366
2011
  result: z.ZodOptional<z.ZodObject<{
1367
2012
  outcome: z.ZodEnum<{
1368
2013
  cancelled: "cancelled";
2014
+ closed: "closed";
2015
+ conflicting: "conflicting";
1369
2016
  deadline: "deadline";
1370
2017
  error: "error";
1371
2018
  failed: "failed";
1372
2019
  head_changed: "head_changed";
2020
+ merged: "merged";
1373
2021
  no_checks: "no_checks";
1374
2022
  passed: "passed";
1375
2023
  skipped: "skipped";
1376
2024
  }>;
1377
2025
  headSha: z.ZodString;
1378
2026
  observedHeadSha: z.ZodOptional<z.ZodString>;
2027
+ mergeable: z.ZodOptional<z.ZodEnum<{
2028
+ CONFLICTING: "CONFLICTING";
2029
+ MERGEABLE: "MERGEABLE";
2030
+ UNKNOWN: "UNKNOWN";
2031
+ }>>;
2032
+ mergeStateStatus: z.ZodOptional<z.ZodString>;
2033
+ mergedAt: z.ZodOptional<z.ZodISODateTime>;
2034
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
1379
2035
  observedAt: z.ZodISODateTime;
1380
2036
  checks: z.ZodArray<z.ZodObject<{
1381
2037
  name: z.ZodString;
@@ -1386,40 +2042,279 @@ export declare const apiRunSchema: z.ZodObject<{
1386
2042
  truncated: z.ZodBoolean;
1387
2043
  diagnostic: z.ZodOptional<z.ZodString>;
1388
2044
  }, z.core.$strict>>;
1389
- wakeId: z.ZodOptional<z.ZodString>;
2045
+ }, z.core.$strict>, z.ZodObject<{
2046
+ id: z.ZodUUID;
2047
+ source: z.ZodEnum<{
2048
+ agent: "agent";
2049
+ cezar: "cezar";
2050
+ }>;
2051
+ via: z.ZodEnum<{
2052
+ "ask-line": "ask-line";
2053
+ budget: "budget";
2054
+ "cez-worker-wait": "cez-worker-wait";
2055
+ cezar_ask: "cezar_ask";
2056
+ cezar_wait: "cezar_wait";
2057
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2058
+ completion: "completion";
2059
+ "monitoring-line": "monitoring-line";
2060
+ "native-ask": "native-ask";
2061
+ "no-wait": "no-wait";
2062
+ "schedule-wakeup": "schedule-wakeup";
2063
+ }>;
2064
+ registeredAt: z.ZodISODateTime;
2065
+ phase: z.ZodEnum<{
2066
+ cancelled: "cancelled";
2067
+ delivered: "delivered";
2068
+ open: "open";
2069
+ resolved: "resolved";
2070
+ }>;
2071
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
1390
2072
  deliveredAt: z.ZodOptional<z.ZodISODateTime>;
1391
- }, z.core.$strict>>;
1392
- lastCiWait: z.ZodOptional<z.ZodObject<{
2073
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2074
+ turnId: z.ZodString;
2075
+ kind: z.ZodLiteral<"timer">;
2076
+ deadline: z.ZodISODateTime;
2077
+ seconds: z.ZodNumber;
2078
+ note: z.ZodOptional<z.ZodString>;
2079
+ }, z.core.$strict>, z.ZodObject<{
2080
+ id: z.ZodUUID;
2081
+ source: z.ZodEnum<{
2082
+ agent: "agent";
2083
+ cezar: "cezar";
2084
+ }>;
2085
+ via: z.ZodEnum<{
2086
+ "ask-line": "ask-line";
2087
+ budget: "budget";
2088
+ "cez-worker-wait": "cez-worker-wait";
2089
+ cezar_ask: "cezar_ask";
2090
+ cezar_wait: "cezar_wait";
2091
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2092
+ completion: "completion";
2093
+ "monitoring-line": "monitoring-line";
2094
+ "native-ask": "native-ask";
2095
+ "no-wait": "no-wait";
2096
+ "schedule-wakeup": "schedule-wakeup";
2097
+ }>;
2098
+ registeredAt: z.ZodISODateTime;
2099
+ phase: z.ZodEnum<{
2100
+ cancelled: "cancelled";
2101
+ delivered: "delivered";
2102
+ open: "open";
2103
+ resolved: "resolved";
2104
+ }>;
2105
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2106
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2107
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2108
+ turnId: z.ZodString;
2109
+ kind: z.ZodLiteral<"human">;
2110
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2111
+ id: z.ZodOptional<z.ZodString>;
2112
+ header: z.ZodString;
2113
+ question: z.ZodString;
2114
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
2115
+ label: z.ZodString;
2116
+ description: z.ZodOptional<z.ZodString>;
2117
+ }, z.core.$strict>>>;
2118
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
2119
+ }, z.core.$strict>>>;
2120
+ context: z.ZodOptional<z.ZodString>;
2121
+ askSeq: z.ZodOptional<z.ZodNumber>;
2122
+ }, z.core.$strict>, z.ZodObject<{
2123
+ id: z.ZodUUID;
2124
+ source: z.ZodEnum<{
2125
+ agent: "agent";
2126
+ cezar: "cezar";
2127
+ }>;
2128
+ via: z.ZodEnum<{
2129
+ "ask-line": "ask-line";
2130
+ budget: "budget";
2131
+ "cez-worker-wait": "cez-worker-wait";
2132
+ cezar_ask: "cezar_ask";
2133
+ cezar_wait: "cezar_wait";
2134
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2135
+ completion: "completion";
2136
+ "monitoring-line": "monitoring-line";
2137
+ "native-ask": "native-ask";
2138
+ "no-wait": "no-wait";
2139
+ "schedule-wakeup": "schedule-wakeup";
2140
+ }>;
2141
+ registeredAt: z.ZodISODateTime;
2142
+ phase: z.ZodEnum<{
2143
+ cancelled: "cancelled";
2144
+ delivered: "delivered";
2145
+ open: "open";
2146
+ resolved: "resolved";
2147
+ }>;
2148
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2149
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2150
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2151
+ turnId: z.ZodString;
2152
+ kind: z.ZodLiteral<"worker">;
2153
+ deadline: z.ZodOptional<z.ZodISODateTime>;
2154
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
2155
+ mode: z.ZodOptional<z.ZodEnum<{
2156
+ all: "all";
2157
+ any: "any";
2158
+ one: "one";
2159
+ }>>;
2160
+ workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2161
+ revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2162
+ workerId: z.ZodUUID;
2163
+ revision: z.ZodNumber;
2164
+ }, z.core.$strict>>>;
2165
+ outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2166
+ workerId: z.ZodUUID;
2167
+ status: z.ZodEnum<{
2168
+ cancelled: "cancelled";
2169
+ done: "done";
2170
+ failed: "failed";
2171
+ review: "review";
2172
+ }>;
2173
+ observedAt: z.ZodISODateTime;
2174
+ summary: z.ZodOptional<z.ZodString>;
2175
+ revision: z.ZodOptional<z.ZodNumber>;
2176
+ }, z.core.$strict>>>;
2177
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2178
+ requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2179
+ requestId: z.ZodUUID;
2180
+ status: z.ZodEnum<{
2181
+ cancelled: "cancelled";
2182
+ "completed-without-reply": "completed-without-reply";
2183
+ destroyed: "destroyed";
2184
+ failed: "failed";
2185
+ "human-fallback": "human-fallback";
2186
+ replied: "replied";
2187
+ "replied-late": "replied-late";
2188
+ "sender-closed": "sender-closed";
2189
+ "timed-out": "timed-out";
2190
+ }>;
2191
+ observedAt: z.ZodISODateTime;
2192
+ replyId: z.ZodOptional<z.ZodUUID>;
2193
+ }, z.core.$strict>>>;
2194
+ result: z.ZodOptional<z.ZodObject<{
2195
+ reason: z.ZodEnum<{
2196
+ outcome: "outcome";
2197
+ timeout: "timeout";
2198
+ }>;
2199
+ }, z.core.$strict>>;
2200
+ wakeInputId: z.ZodOptional<z.ZodUUID>;
2201
+ }, z.core.$strict>, z.ZodObject<{
2202
+ id: z.ZodUUID;
2203
+ source: z.ZodEnum<{
2204
+ agent: "agent";
2205
+ cezar: "cezar";
2206
+ }>;
2207
+ via: z.ZodEnum<{
2208
+ "ask-line": "ask-line";
2209
+ budget: "budget";
2210
+ "cez-worker-wait": "cez-worker-wait";
2211
+ cezar_ask: "cezar_ask";
2212
+ cezar_wait: "cezar_wait";
2213
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2214
+ completion: "completion";
2215
+ "monitoring-line": "monitoring-line";
2216
+ "native-ask": "native-ask";
2217
+ "no-wait": "no-wait";
2218
+ "schedule-wakeup": "schedule-wakeup";
2219
+ }>;
2220
+ registeredAt: z.ZodISODateTime;
2221
+ phase: z.ZodEnum<{
2222
+ cancelled: "cancelled";
2223
+ delivered: "delivered";
2224
+ open: "open";
2225
+ resolved: "resolved";
2226
+ }>;
2227
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2228
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2229
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2230
+ turnId: z.ZodString;
2231
+ kind: z.ZodLiteral<"process">;
2232
+ deadline: z.ZodISODateTime;
2233
+ timeoutSeconds: z.ZodNumber;
2234
+ pid: z.ZodNumber;
2235
+ startToken: z.ZodOptional<z.ZodString>;
2236
+ exitFile: z.ZodOptional<z.ZodString>;
2237
+ note: z.ZodOptional<z.ZodString>;
2238
+ result: z.ZodOptional<z.ZodObject<{
2239
+ outcome: z.ZodEnum<{
2240
+ deadline: "deadline";
2241
+ error: "error";
2242
+ exit_file: "exit_file";
2243
+ exited: "exited";
2244
+ }>;
2245
+ observedAt: z.ZodISODateTime;
2246
+ exitCode: z.ZodOptional<z.ZodNumber>;
2247
+ exitFileNote: z.ZodOptional<z.ZodLiteral<"not-an-exit-code">>;
2248
+ diagnostic: z.ZodOptional<z.ZodString>;
2249
+ }, z.core.$strict>>;
2250
+ }, z.core.$strict>], "kind">>>;
2251
+ lastWaits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1393
2252
  prUrl: z.ZodString;
1394
2253
  repository: z.ZodString;
1395
2254
  prNumber: z.ZodNumber;
1396
2255
  headSha: z.ZodString;
1397
2256
  id: z.ZodUUID;
1398
- generation: z.ZodString;
1399
- turnId: z.ZodString;
1400
- timeoutSeconds: z.ZodNumber;
2257
+ source: z.ZodEnum<{
2258
+ agent: "agent";
2259
+ cezar: "cezar";
2260
+ }>;
2261
+ via: z.ZodEnum<{
2262
+ "ask-line": "ask-line";
2263
+ budget: "budget";
2264
+ "cez-worker-wait": "cez-worker-wait";
2265
+ cezar_ask: "cezar_ask";
2266
+ cezar_wait: "cezar_wait";
2267
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2268
+ completion: "completion";
2269
+ "monitoring-line": "monitoring-line";
2270
+ "native-ask": "native-ask";
2271
+ "no-wait": "no-wait";
2272
+ "schedule-wakeup": "schedule-wakeup";
2273
+ }>;
1401
2274
  registeredAt: z.ZodISODateTime;
1402
- deadline: z.ZodISODateTime;
1403
2275
  phase: z.ZodEnum<{
2276
+ cancelled: "cancelled";
1404
2277
  delivered: "delivered";
1405
- parked: "parked";
1406
- registered: "registered";
1407
- "wake-pending": "wake-pending";
1408
- withdrawn: "withdrawn";
2278
+ open: "open";
2279
+ resolved: "resolved";
2280
+ }>;
2281
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2282
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2283
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2284
+ turnId: z.ZodString;
2285
+ kind: z.ZodLiteral<"pr">;
2286
+ deadline: z.ZodISODateTime;
2287
+ generation: z.ZodString;
2288
+ timeoutSeconds: z.ZodNumber;
2289
+ until: z.ZodEnum<{
2290
+ checks: "checks";
2291
+ merge: "merge";
1409
2292
  }>;
2293
+ wakeOnConflict: z.ZodBoolean;
1410
2294
  result: z.ZodOptional<z.ZodObject<{
1411
2295
  outcome: z.ZodEnum<{
1412
2296
  cancelled: "cancelled";
2297
+ closed: "closed";
2298
+ conflicting: "conflicting";
1413
2299
  deadline: "deadline";
1414
2300
  error: "error";
1415
2301
  failed: "failed";
1416
2302
  head_changed: "head_changed";
2303
+ merged: "merged";
1417
2304
  no_checks: "no_checks";
1418
2305
  passed: "passed";
1419
2306
  skipped: "skipped";
1420
2307
  }>;
1421
2308
  headSha: z.ZodString;
1422
2309
  observedHeadSha: z.ZodOptional<z.ZodString>;
2310
+ mergeable: z.ZodOptional<z.ZodEnum<{
2311
+ CONFLICTING: "CONFLICTING";
2312
+ MERGEABLE: "MERGEABLE";
2313
+ UNKNOWN: "UNKNOWN";
2314
+ }>>;
2315
+ mergeStateStatus: z.ZodOptional<z.ZodString>;
2316
+ mergedAt: z.ZodOptional<z.ZodISODateTime>;
2317
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
1423
2318
  observedAt: z.ZodISODateTime;
1424
2319
  checks: z.ZodArray<z.ZodObject<{
1425
2320
  name: z.ZodString;
@@ -1430,10 +2325,215 @@ export declare const apiRunSchema: z.ZodObject<{
1430
2325
  truncated: z.ZodBoolean;
1431
2326
  diagnostic: z.ZodOptional<z.ZodString>;
1432
2327
  }, z.core.$strict>>;
1433
- wakeId: z.ZodOptional<z.ZodString>;
2328
+ }, z.core.$strict>, z.ZodObject<{
2329
+ id: z.ZodUUID;
2330
+ source: z.ZodEnum<{
2331
+ agent: "agent";
2332
+ cezar: "cezar";
2333
+ }>;
2334
+ via: z.ZodEnum<{
2335
+ "ask-line": "ask-line";
2336
+ budget: "budget";
2337
+ "cez-worker-wait": "cez-worker-wait";
2338
+ cezar_ask: "cezar_ask";
2339
+ cezar_wait: "cezar_wait";
2340
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2341
+ completion: "completion";
2342
+ "monitoring-line": "monitoring-line";
2343
+ "native-ask": "native-ask";
2344
+ "no-wait": "no-wait";
2345
+ "schedule-wakeup": "schedule-wakeup";
2346
+ }>;
2347
+ registeredAt: z.ZodISODateTime;
2348
+ phase: z.ZodEnum<{
2349
+ cancelled: "cancelled";
2350
+ delivered: "delivered";
2351
+ open: "open";
2352
+ resolved: "resolved";
2353
+ }>;
2354
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
1434
2355
  deliveredAt: z.ZodOptional<z.ZodISODateTime>;
1435
- }, z.core.$strict>>;
1436
- lastCiWaitError: z.ZodOptional<z.ZodString>;
2356
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2357
+ turnId: z.ZodString;
2358
+ kind: z.ZodLiteral<"timer">;
2359
+ deadline: z.ZodISODateTime;
2360
+ seconds: z.ZodNumber;
2361
+ note: z.ZodOptional<z.ZodString>;
2362
+ }, z.core.$strict>, z.ZodObject<{
2363
+ id: z.ZodUUID;
2364
+ source: z.ZodEnum<{
2365
+ agent: "agent";
2366
+ cezar: "cezar";
2367
+ }>;
2368
+ via: z.ZodEnum<{
2369
+ "ask-line": "ask-line";
2370
+ budget: "budget";
2371
+ "cez-worker-wait": "cez-worker-wait";
2372
+ cezar_ask: "cezar_ask";
2373
+ cezar_wait: "cezar_wait";
2374
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2375
+ completion: "completion";
2376
+ "monitoring-line": "monitoring-line";
2377
+ "native-ask": "native-ask";
2378
+ "no-wait": "no-wait";
2379
+ "schedule-wakeup": "schedule-wakeup";
2380
+ }>;
2381
+ registeredAt: z.ZodISODateTime;
2382
+ phase: z.ZodEnum<{
2383
+ cancelled: "cancelled";
2384
+ delivered: "delivered";
2385
+ open: "open";
2386
+ resolved: "resolved";
2387
+ }>;
2388
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2389
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2390
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2391
+ turnId: z.ZodString;
2392
+ kind: z.ZodLiteral<"human">;
2393
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2394
+ id: z.ZodOptional<z.ZodString>;
2395
+ header: z.ZodString;
2396
+ question: z.ZodString;
2397
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
2398
+ label: z.ZodString;
2399
+ description: z.ZodOptional<z.ZodString>;
2400
+ }, z.core.$strict>>>;
2401
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
2402
+ }, z.core.$strict>>>;
2403
+ context: z.ZodOptional<z.ZodString>;
2404
+ askSeq: z.ZodOptional<z.ZodNumber>;
2405
+ }, z.core.$strict>, z.ZodObject<{
2406
+ id: z.ZodUUID;
2407
+ source: z.ZodEnum<{
2408
+ agent: "agent";
2409
+ cezar: "cezar";
2410
+ }>;
2411
+ via: z.ZodEnum<{
2412
+ "ask-line": "ask-line";
2413
+ budget: "budget";
2414
+ "cez-worker-wait": "cez-worker-wait";
2415
+ cezar_ask: "cezar_ask";
2416
+ cezar_wait: "cezar_wait";
2417
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2418
+ completion: "completion";
2419
+ "monitoring-line": "monitoring-line";
2420
+ "native-ask": "native-ask";
2421
+ "no-wait": "no-wait";
2422
+ "schedule-wakeup": "schedule-wakeup";
2423
+ }>;
2424
+ registeredAt: z.ZodISODateTime;
2425
+ phase: z.ZodEnum<{
2426
+ cancelled: "cancelled";
2427
+ delivered: "delivered";
2428
+ open: "open";
2429
+ resolved: "resolved";
2430
+ }>;
2431
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2432
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2433
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2434
+ turnId: z.ZodString;
2435
+ kind: z.ZodLiteral<"worker">;
2436
+ deadline: z.ZodOptional<z.ZodISODateTime>;
2437
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
2438
+ mode: z.ZodOptional<z.ZodEnum<{
2439
+ all: "all";
2440
+ any: "any";
2441
+ one: "one";
2442
+ }>>;
2443
+ workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2444
+ revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2445
+ workerId: z.ZodUUID;
2446
+ revision: z.ZodNumber;
2447
+ }, z.core.$strict>>>;
2448
+ outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2449
+ workerId: z.ZodUUID;
2450
+ status: z.ZodEnum<{
2451
+ cancelled: "cancelled";
2452
+ done: "done";
2453
+ failed: "failed";
2454
+ review: "review";
2455
+ }>;
2456
+ observedAt: z.ZodISODateTime;
2457
+ summary: z.ZodOptional<z.ZodString>;
2458
+ revision: z.ZodOptional<z.ZodNumber>;
2459
+ }, z.core.$strict>>>;
2460
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2461
+ requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
2462
+ requestId: z.ZodUUID;
2463
+ status: z.ZodEnum<{
2464
+ cancelled: "cancelled";
2465
+ "completed-without-reply": "completed-without-reply";
2466
+ destroyed: "destroyed";
2467
+ failed: "failed";
2468
+ "human-fallback": "human-fallback";
2469
+ replied: "replied";
2470
+ "replied-late": "replied-late";
2471
+ "sender-closed": "sender-closed";
2472
+ "timed-out": "timed-out";
2473
+ }>;
2474
+ observedAt: z.ZodISODateTime;
2475
+ replyId: z.ZodOptional<z.ZodUUID>;
2476
+ }, z.core.$strict>>>;
2477
+ result: z.ZodOptional<z.ZodObject<{
2478
+ reason: z.ZodEnum<{
2479
+ outcome: "outcome";
2480
+ timeout: "timeout";
2481
+ }>;
2482
+ }, z.core.$strict>>;
2483
+ wakeInputId: z.ZodOptional<z.ZodUUID>;
2484
+ }, z.core.$strict>, z.ZodObject<{
2485
+ id: z.ZodUUID;
2486
+ source: z.ZodEnum<{
2487
+ agent: "agent";
2488
+ cezar: "cezar";
2489
+ }>;
2490
+ via: z.ZodEnum<{
2491
+ "ask-line": "ask-line";
2492
+ budget: "budget";
2493
+ "cez-worker-wait": "cez-worker-wait";
2494
+ cezar_ask: "cezar_ask";
2495
+ cezar_wait: "cezar_wait";
2496
+ cezar_wait_for_ci: "cezar_wait_for_ci";
2497
+ completion: "completion";
2498
+ "monitoring-line": "monitoring-line";
2499
+ "native-ask": "native-ask";
2500
+ "no-wait": "no-wait";
2501
+ "schedule-wakeup": "schedule-wakeup";
2502
+ }>;
2503
+ registeredAt: z.ZodISODateTime;
2504
+ phase: z.ZodEnum<{
2505
+ cancelled: "cancelled";
2506
+ delivered: "delivered";
2507
+ open: "open";
2508
+ resolved: "resolved";
2509
+ }>;
2510
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2511
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2512
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
2513
+ turnId: z.ZodString;
2514
+ kind: z.ZodLiteral<"process">;
2515
+ deadline: z.ZodISODateTime;
2516
+ timeoutSeconds: z.ZodNumber;
2517
+ pid: z.ZodNumber;
2518
+ startToken: z.ZodOptional<z.ZodString>;
2519
+ exitFile: z.ZodOptional<z.ZodString>;
2520
+ note: z.ZodOptional<z.ZodString>;
2521
+ result: z.ZodOptional<z.ZodObject<{
2522
+ outcome: z.ZodEnum<{
2523
+ deadline: "deadline";
2524
+ error: "error";
2525
+ exit_file: "exit_file";
2526
+ exited: "exited";
2527
+ }>;
2528
+ observedAt: z.ZodISODateTime;
2529
+ exitCode: z.ZodOptional<z.ZodNumber>;
2530
+ exitFileNote: z.ZodOptional<z.ZodLiteral<"not-an-exit-code">>;
2531
+ diagnostic: z.ZodOptional<z.ZodString>;
2532
+ }, z.core.$strict>>;
2533
+ }, z.core.$strict>], "kind">>>;
2534
+ lastWaitsError: z.ZodOptional<z.ZodString>;
2535
+ automaticWakes: z.ZodOptional<z.ZodNumber>;
2536
+ waitDeliveryFailures: z.ZodOptional<z.ZodNumber>;
1437
2537
  previewServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1438
2538
  port: z.ZodNumber;
1439
2539
  command: z.ZodString;
@@ -1459,6 +2559,22 @@ export declare const apiRunSchema: z.ZodObject<{
1459
2559
  systemPrompt: z.ZodOptional<z.ZodString>;
1460
2560
  generateFollowups: z.ZodOptional<z.ZodBoolean>;
1461
2561
  autonomous: z.ZodOptional<z.ZodBoolean>;
2562
+ archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
2563
+ autoMergePr: z.ZodOptional<z.ZodBoolean>;
2564
+ completionAction: z.ZodOptional<z.ZodObject<{
2565
+ id: z.ZodString;
2566
+ phase: z.ZodEnum<{
2567
+ blocked: "blocked";
2568
+ complete: "complete";
2569
+ pending: "pending";
2570
+ }>;
2571
+ message: z.ZodOptional<z.ZodString>;
2572
+ }, z.core.$strip>>;
2573
+ archiveBlocker: z.ZodOptional<z.ZodObject<{
2574
+ message: z.ZodString;
2575
+ runId: z.ZodOptional<z.ZodString>;
2576
+ pullRequestUrl: z.ZodOptional<z.ZodString>;
2577
+ }, z.core.$strip>>;
1462
2578
  automation: z.ZodOptional<z.ZodObject<{
1463
2579
  automationId: z.ZodString;
1464
2580
  automationRevision: z.ZodNumber;
@@ -1486,6 +2602,7 @@ export declare const apiRunSchema: z.ZodObject<{
1486
2602
  webhook: z.ZodOptional<z.ZodObject<{
1487
2603
  lastDeliveredAt: z.ZodOptional<z.ZodString>;
1488
2604
  lastError: z.ZodOptional<z.ZodString>;
2605
+ lastErrorWebhookId: z.ZodOptional<z.ZodString>;
1489
2606
  }, z.core.$strip>>;
1490
2607
  status: z.ZodEnum<{
1491
2608
  cancelled: "cancelled";
@@ -1496,12 +2613,7 @@ export declare const apiRunSchema: z.ZodObject<{
1496
2613
  running: "running";
1497
2614
  waiting: "waiting";
1498
2615
  }>;
1499
- activity: z.ZodOptional<z.ZodEnum<{
1500
- monitoring: "monitoring";
1501
- }>>;
1502
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
1503
- monitoringWakeAt: z.ZodOptional<z.ZodString>;
1504
- monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
2616
+ hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
1505
2617
  autoResumeAt: z.ZodOptional<z.ZodString>;
1506
2618
  autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
1507
2619
  createdAt: z.ZodString;
@@ -1512,6 +2624,14 @@ export declare const apiRunSchema: z.ZodObject<{
1512
2624
  outputTokens: z.ZodOptional<z.ZodNumber>;
1513
2625
  costUsd: z.ZodOptional<z.ZodNumber>;
1514
2626
  pullRequestUrl: z.ZodOptional<z.ZodString>;
2627
+ pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
2628
+ number: z.ZodNumber;
2629
+ url: z.ZodOptional<z.ZodString>;
2630
+ source: z.ZodEnum<{
2631
+ created: "created";
2632
+ declared: "declared";
2633
+ }>;
2634
+ }, z.core.$strip>>>;
1515
2635
  referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
1516
2636
  prNumber: z.ZodOptional<z.ZodNumber>;
1517
2637
  issueNumber: z.ZodOptional<z.ZodNumber>;
@@ -1552,6 +2672,18 @@ export declare const apiRunSchema: z.ZodObject<{
1552
2672
  peakProcCount: z.ZodOptional<z.ZodNumber>;
1553
2673
  archived: z.ZodBoolean;
1554
2674
  archivedAt: z.ZodOptional<z.ZodString>;
2675
+ autoArchive: z.ZodOptional<z.ZodObject<{
2676
+ reason: z.ZodLiteral<"pull-requests-merged">;
2677
+ archivedAt: z.ZodString;
2678
+ fingerprint: z.ZodString;
2679
+ pullRequests: z.ZodArray<z.ZodObject<{
2680
+ owner: z.ZodString;
2681
+ repo: z.ZodString;
2682
+ number: z.ZodNumber;
2683
+ mergedAt: z.ZodString;
2684
+ }, z.core.$strip>>;
2685
+ }, z.core.$strip>>;
2686
+ manualUnarchivedAt: z.ZodOptional<z.ZodString>;
1555
2687
  pinned: z.ZodOptional<z.ZodBoolean>;
1556
2688
  pinnedAt: z.ZodOptional<z.ZodString>;
1557
2689
  seenAt: z.ZodOptional<z.ZodString>;
@@ -1588,6 +2720,10 @@ export declare const apiRunSchema: z.ZodObject<{
1588
2720
  finishedAt: z.ZodOptional<z.ZodString>;
1589
2721
  error: z.ZodOptional<z.ZodString>;
1590
2722
  sessionId: z.ZodOptional<z.ZodString>;
2723
+ sessionTransport: z.ZodOptional<z.ZodEnum<{
2724
+ "cursor-acp": "cursor-acp";
2725
+ "cursor-print": "cursor-print";
2726
+ }>>;
1591
2727
  backend: z.ZodOptional<z.ZodEnum<{
1592
2728
  claude: "claude";
1593
2729
  codex: "codex";
@@ -1634,6 +2770,18 @@ export declare const apiRunSchema: z.ZodObject<{
1634
2770
  }>;
1635
2771
  path: z.ZodOptional<z.ZodString>;
1636
2772
  }, z.core.$strip>>;
2773
+ handoffRecords: z.ZodOptional<z.ZodObject<{
2774
+ autosave: z.ZodArray<z.ZodObject<{
2775
+ at: z.ZodString;
2776
+ note: z.ZodString;
2777
+ periodic: z.ZodOptional<z.ZodObject<{
2778
+ branch: z.ZodNullable<z.ZodString>;
2779
+ count: z.ZodNumber;
2780
+ first: z.ZodNullable<z.ZodString>;
2781
+ latest: z.ZodNullable<z.ZodString>;
2782
+ }, z.core.$strip>>;
2783
+ }, z.core.$strip>>;
2784
+ }, z.core.$strip>>;
1637
2785
  finishBlocked: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1638
2786
  cliResumeCommand: z.ZodOptional<z.ZodString>;
1639
2787
  usage: z.ZodOptional<z.ZodObject<{
@@ -1678,18 +2826,49 @@ export declare const runSummarySchema: z.ZodObject<{
1678
2826
  running: "running";
1679
2827
  waiting: "waiting";
1680
2828
  }>;
1681
- activity: z.ZodOptional<z.ZodEnum<{
1682
- monitoring: "monitoring";
1683
- }>>;
1684
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
1685
- delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1686
- role: z.ZodLiteral<"root">;
1687
- wait: z.ZodOptional<z.ZodObject<{
1688
- workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1689
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1690
- phase: z.ZodEnum<{
1691
- parked: "parked";
1692
- registered: "registered";
2829
+ hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
2830
+ waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
2831
+ kind: z.ZodLiteral<"human">;
2832
+ shown: z.ZodOptional<z.ZodLiteral<true>>;
2833
+ }, z.core.$strip>, z.ZodObject<{
2834
+ kind: z.ZodLiteral<"usage-limit">;
2835
+ at: z.ZodString;
2836
+ }, z.core.$strip>, z.ZodObject<{
2837
+ kind: z.ZodLiteral<"workers">;
2838
+ count: z.ZodNumber;
2839
+ replies: z.ZodOptional<z.ZodLiteral<true>>;
2840
+ }, z.core.$strip>, z.ZodObject<{
2841
+ kind: z.ZodLiteral<"pr">;
2842
+ until: z.ZodEnum<{
2843
+ checks: "checks";
2844
+ merge: "merge";
2845
+ }>;
2846
+ waitId: z.ZodUUID;
2847
+ prUrl: z.ZodString;
2848
+ repository: z.ZodString;
2849
+ prNumber: z.ZodNumber;
2850
+ deadline: z.ZodISODateTime;
2851
+ }, z.core.$strip>, z.ZodObject<{
2852
+ kind: z.ZodLiteral<"process">;
2853
+ waitId: z.ZodUUID;
2854
+ pid: z.ZodNumber;
2855
+ deadline: z.ZodISODateTime;
2856
+ note: z.ZodOptional<z.ZodString>;
2857
+ }, z.core.$strip>, z.ZodObject<{
2858
+ kind: z.ZodLiteral<"timer">;
2859
+ waitId: z.ZodUUID;
2860
+ at: z.ZodISODateTime;
2861
+ note: z.ZodOptional<z.ZodString>;
2862
+ }, z.core.$strip>], "kind">>>;
2863
+ waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
2864
+ delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2865
+ role: z.ZodLiteral<"root">;
2866
+ wait: z.ZodOptional<z.ZodObject<{
2867
+ workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2868
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2869
+ phase: z.ZodEnum<{
2870
+ parked: "parked";
2871
+ registered: "registered";
1693
2872
  "wake-pending": "wake-pending";
1694
2873
  }>;
1695
2874
  outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -1719,6 +2898,14 @@ export declare const runSummarySchema: z.ZodObject<{
1719
2898
  branch: z.ZodOptional<z.ZodString>;
1720
2899
  startedAt: z.ZodOptional<z.ZodString>;
1721
2900
  pullRequestUrl: z.ZodOptional<z.ZodString>;
2901
+ pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
2902
+ number: z.ZodNumber;
2903
+ url: z.ZodOptional<z.ZodString>;
2904
+ source: z.ZodEnum<{
2905
+ created: "created";
2906
+ declared: "declared";
2907
+ }>;
2908
+ }, z.core.$strip>>>;
1722
2909
  referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
1723
2910
  prNumber: z.ZodOptional<z.ZodNumber>;
1724
2911
  issueNumber: z.ZodOptional<z.ZodNumber>;
@@ -1739,6 +2926,7 @@ export declare const runSummarySchema: z.ZodObject<{
1739
2926
  groupId: z.ZodOptional<z.ZodString>;
1740
2927
  variant: z.ZodOptional<z.ZodString>;
1741
2928
  pinned: z.ZodOptional<z.ZodBoolean>;
2929
+ automationId: z.ZodOptional<z.ZodString>;
1742
2930
  runner: z.ZodOptional<z.ZodEnum<{
1743
2931
  claude: "claude";
1744
2932
  codex: "codex";
@@ -1794,10 +2982,41 @@ export declare const runIndexEntrySchema: z.ZodObject<{
1794
2982
  running: "running";
1795
2983
  waiting: "waiting";
1796
2984
  }>;
1797
- activity: z.ZodOptional<z.ZodEnum<{
1798
- monitoring: "monitoring";
1799
- }>>;
1800
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
2985
+ hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
2986
+ waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
2987
+ kind: z.ZodLiteral<"human">;
2988
+ shown: z.ZodOptional<z.ZodLiteral<true>>;
2989
+ }, z.core.$strip>, z.ZodObject<{
2990
+ kind: z.ZodLiteral<"usage-limit">;
2991
+ at: z.ZodString;
2992
+ }, z.core.$strip>, z.ZodObject<{
2993
+ kind: z.ZodLiteral<"workers">;
2994
+ count: z.ZodNumber;
2995
+ replies: z.ZodOptional<z.ZodLiteral<true>>;
2996
+ }, z.core.$strip>, z.ZodObject<{
2997
+ kind: z.ZodLiteral<"pr">;
2998
+ until: z.ZodEnum<{
2999
+ checks: "checks";
3000
+ merge: "merge";
3001
+ }>;
3002
+ waitId: z.ZodUUID;
3003
+ prUrl: z.ZodString;
3004
+ repository: z.ZodString;
3005
+ prNumber: z.ZodNumber;
3006
+ deadline: z.ZodISODateTime;
3007
+ }, z.core.$strip>, z.ZodObject<{
3008
+ kind: z.ZodLiteral<"process">;
3009
+ waitId: z.ZodUUID;
3010
+ pid: z.ZodNumber;
3011
+ deadline: z.ZodISODateTime;
3012
+ note: z.ZodOptional<z.ZodString>;
3013
+ }, z.core.$strip>, z.ZodObject<{
3014
+ kind: z.ZodLiteral<"timer">;
3015
+ waitId: z.ZodUUID;
3016
+ at: z.ZodISODateTime;
3017
+ note: z.ZodOptional<z.ZodString>;
3018
+ }, z.core.$strip>], "kind">>>;
3019
+ waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
1801
3020
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1802
3021
  role: z.ZodLiteral<"root">;
1803
3022
  wait: z.ZodOptional<z.ZodObject<{
@@ -1835,6 +3054,14 @@ export declare const runIndexEntrySchema: z.ZodObject<{
1835
3054
  branch: z.ZodOptional<z.ZodString>;
1836
3055
  startedAt: z.ZodOptional<z.ZodString>;
1837
3056
  pullRequestUrl: z.ZodOptional<z.ZodString>;
3057
+ pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
3058
+ number: z.ZodNumber;
3059
+ url: z.ZodOptional<z.ZodString>;
3060
+ source: z.ZodEnum<{
3061
+ created: "created";
3062
+ declared: "declared";
3063
+ }>;
3064
+ }, z.core.$strip>>>;
1838
3065
  referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
1839
3066
  prNumber: z.ZodOptional<z.ZodNumber>;
1840
3067
  issueNumber: z.ZodOptional<z.ZodNumber>;
@@ -1855,6 +3082,7 @@ export declare const runIndexEntrySchema: z.ZodObject<{
1855
3082
  groupId: z.ZodOptional<z.ZodString>;
1856
3083
  variant: z.ZodOptional<z.ZodString>;
1857
3084
  pinned: z.ZodOptional<z.ZodBoolean>;
3085
+ automationId: z.ZodOptional<z.ZodString>;
1858
3086
  runner: z.ZodOptional<z.ZodEnum<{
1859
3087
  claude: "claude";
1860
3088
  codex: "codex";
@@ -1888,8 +3116,6 @@ export declare const runIndexEntrySchema: z.ZodObject<{
1888
3116
  projectId: z.ZodString;
1889
3117
  }, z.core.$strip>;
1890
3118
  export type RunIndexEntry = z.infer<typeof runIndexEntrySchema>;
1891
- /** `(planned)` and `(inbox)` chains carry their meaning in their first agent step's name. */
1892
- export declare function runWorkflowLabel(run: Pick<RunRecord, 'workflow' | 'steps'>): string;
1893
3119
  /**
1894
3120
  * The one projection from a run record to its list row (#817). Optional keys are copied only when
1895
3121
  * present, so the wire never carries an `undefined` the schema calls absent; `delegation` goes
@@ -1897,8 +3123,17 @@ export declare function runWorkflowLabel(run: Pick<RunRecord, 'workflow' | 'step
1897
3123
  * the live sample a caller attached, never persisted.
1898
3124
  */
1899
3125
  export declare function toRunSummary(run: RunRecord & {
1900
- usage?: ProcessUsage;
3126
+ usage?: ProcessUsage | undefined;
1901
3127
  }): RunSummary;
3128
+ /** The automation that launched a run, from either origin field (hearsay-tools/cezarion#1332).
3129
+ * Only the recorded origin counts: `autonomous`, the title and whether the definition still
3130
+ * exists say nothing about who started a task. */
3131
+ export declare function automationIdOf(run: Pick<RunRecord, 'automation' | 'automationTrigger'>): string | undefined;
3132
+ /** Whether a list row is an automation-created task: the sidebar's Automations tab and its
3133
+ * scoped "Archive all" read this, on the cockpit and in the store. */
3134
+ export declare function isAutomationTask(run: {
3135
+ automationId?: string | undefined;
3136
+ }): boolean;
1902
3137
  /**
1903
3138
  * `GET /workspace/runs-index`.
1904
3139
  *
@@ -1944,9 +3179,6 @@ export declare const referenceStatusesByProjectSchema: z.ZodRecord<z.ZodString,
1944
3179
  "review-required": "review-required";
1945
3180
  }>>;
1946
3181
  }, z.core.$strip>>;
1947
- /** The archived roots `GET /run-summaries/archived` answers per page by default, and at most (#864). */
1948
- export declare const ARCHIVED_RUNS_PAGE_DEFAULT = 50;
1949
- export declare const ARCHIVED_RUNS_PAGE_MAX = 200;
1950
3182
  /**
1951
3183
  * `GET /run-summaries?archived=` (#864). `all` (the default) is every run, as the route has always
1952
3184
  * answered — an older `cez task list --all` keeps getting every row. `recent` is the window the
@@ -1985,10 +3217,41 @@ export declare const archivedRunsResponseSchema: z.ZodObject<{
1985
3217
  running: "running";
1986
3218
  waiting: "waiting";
1987
3219
  }>;
1988
- activity: z.ZodOptional<z.ZodEnum<{
1989
- monitoring: "monitoring";
1990
- }>>;
1991
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
3220
+ hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
3221
+ waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
3222
+ kind: z.ZodLiteral<"human">;
3223
+ shown: z.ZodOptional<z.ZodLiteral<true>>;
3224
+ }, z.core.$strip>, z.ZodObject<{
3225
+ kind: z.ZodLiteral<"usage-limit">;
3226
+ at: z.ZodString;
3227
+ }, z.core.$strip>, z.ZodObject<{
3228
+ kind: z.ZodLiteral<"workers">;
3229
+ count: z.ZodNumber;
3230
+ replies: z.ZodOptional<z.ZodLiteral<true>>;
3231
+ }, z.core.$strip>, z.ZodObject<{
3232
+ kind: z.ZodLiteral<"pr">;
3233
+ until: z.ZodEnum<{
3234
+ checks: "checks";
3235
+ merge: "merge";
3236
+ }>;
3237
+ waitId: z.ZodUUID;
3238
+ prUrl: z.ZodString;
3239
+ repository: z.ZodString;
3240
+ prNumber: z.ZodNumber;
3241
+ deadline: z.ZodISODateTime;
3242
+ }, z.core.$strip>, z.ZodObject<{
3243
+ kind: z.ZodLiteral<"process">;
3244
+ waitId: z.ZodUUID;
3245
+ pid: z.ZodNumber;
3246
+ deadline: z.ZodISODateTime;
3247
+ note: z.ZodOptional<z.ZodString>;
3248
+ }, z.core.$strip>, z.ZodObject<{
3249
+ kind: z.ZodLiteral<"timer">;
3250
+ waitId: z.ZodUUID;
3251
+ at: z.ZodISODateTime;
3252
+ note: z.ZodOptional<z.ZodString>;
3253
+ }, z.core.$strip>], "kind">>>;
3254
+ waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
1992
3255
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1993
3256
  role: z.ZodLiteral<"root">;
1994
3257
  wait: z.ZodOptional<z.ZodObject<{
@@ -2026,6 +3289,14 @@ export declare const archivedRunsResponseSchema: z.ZodObject<{
2026
3289
  branch: z.ZodOptional<z.ZodString>;
2027
3290
  startedAt: z.ZodOptional<z.ZodString>;
2028
3291
  pullRequestUrl: z.ZodOptional<z.ZodString>;
3292
+ pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
3293
+ number: z.ZodNumber;
3294
+ url: z.ZodOptional<z.ZodString>;
3295
+ source: z.ZodEnum<{
3296
+ created: "created";
3297
+ declared: "declared";
3298
+ }>;
3299
+ }, z.core.$strip>>>;
2029
3300
  referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
2030
3301
  prNumber: z.ZodOptional<z.ZodNumber>;
2031
3302
  issueNumber: z.ZodOptional<z.ZodNumber>;
@@ -2046,6 +3317,7 @@ export declare const archivedRunsResponseSchema: z.ZodObject<{
2046
3317
  groupId: z.ZodOptional<z.ZodString>;
2047
3318
  variant: z.ZodOptional<z.ZodString>;
2048
3319
  pinned: z.ZodOptional<z.ZodBoolean>;
3320
+ automationId: z.ZodOptional<z.ZodString>;
2049
3321
  runner: z.ZodOptional<z.ZodEnum<{
2050
3322
  claude: "claude";
2051
3323
  codex: "codex";
@@ -2100,10 +3372,41 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
2100
3372
  running: "running";
2101
3373
  waiting: "waiting";
2102
3374
  }>;
2103
- activity: z.ZodOptional<z.ZodEnum<{
2104
- monitoring: "monitoring";
2105
- }>>;
2106
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
3375
+ hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
3376
+ waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
3377
+ kind: z.ZodLiteral<"human">;
3378
+ shown: z.ZodOptional<z.ZodLiteral<true>>;
3379
+ }, z.core.$strip>, z.ZodObject<{
3380
+ kind: z.ZodLiteral<"usage-limit">;
3381
+ at: z.ZodString;
3382
+ }, z.core.$strip>, z.ZodObject<{
3383
+ kind: z.ZodLiteral<"workers">;
3384
+ count: z.ZodNumber;
3385
+ replies: z.ZodOptional<z.ZodLiteral<true>>;
3386
+ }, z.core.$strip>, z.ZodObject<{
3387
+ kind: z.ZodLiteral<"pr">;
3388
+ until: z.ZodEnum<{
3389
+ checks: "checks";
3390
+ merge: "merge";
3391
+ }>;
3392
+ waitId: z.ZodUUID;
3393
+ prUrl: z.ZodString;
3394
+ repository: z.ZodString;
3395
+ prNumber: z.ZodNumber;
3396
+ deadline: z.ZodISODateTime;
3397
+ }, z.core.$strip>, z.ZodObject<{
3398
+ kind: z.ZodLiteral<"process">;
3399
+ waitId: z.ZodUUID;
3400
+ pid: z.ZodNumber;
3401
+ deadline: z.ZodISODateTime;
3402
+ note: z.ZodOptional<z.ZodString>;
3403
+ }, z.core.$strip>, z.ZodObject<{
3404
+ kind: z.ZodLiteral<"timer">;
3405
+ waitId: z.ZodUUID;
3406
+ at: z.ZodISODateTime;
3407
+ note: z.ZodOptional<z.ZodString>;
3408
+ }, z.core.$strip>], "kind">>>;
3409
+ waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
2107
3410
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2108
3411
  role: z.ZodLiteral<"root">;
2109
3412
  wait: z.ZodOptional<z.ZodObject<{
@@ -2141,6 +3444,14 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
2141
3444
  branch: z.ZodOptional<z.ZodString>;
2142
3445
  startedAt: z.ZodOptional<z.ZodString>;
2143
3446
  pullRequestUrl: z.ZodOptional<z.ZodString>;
3447
+ pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
3448
+ number: z.ZodNumber;
3449
+ url: z.ZodOptional<z.ZodString>;
3450
+ source: z.ZodEnum<{
3451
+ created: "created";
3452
+ declared: "declared";
3453
+ }>;
3454
+ }, z.core.$strip>>>;
2144
3455
  referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
2145
3456
  prNumber: z.ZodOptional<z.ZodNumber>;
2146
3457
  issueNumber: z.ZodOptional<z.ZodNumber>;
@@ -2161,6 +3472,7 @@ export declare const runsIndexResponseSchema: z.ZodObject<{
2161
3472
  groupId: z.ZodOptional<z.ZodString>;
2162
3473
  variant: z.ZodOptional<z.ZodString>;
2163
3474
  pinned: z.ZodOptional<z.ZodBoolean>;
3475
+ automationId: z.ZodOptional<z.ZodString>;
2164
3476
  runner: z.ZodOptional<z.ZodEnum<{
2165
3477
  claude: "claude";
2166
3478
  codex: "codex";
@@ -2252,10 +3564,41 @@ export declare const runsSearchResponseSchema: z.ZodObject<{
2252
3564
  running: "running";
2253
3565
  waiting: "waiting";
2254
3566
  }>;
2255
- activity: z.ZodOptional<z.ZodEnum<{
2256
- monitoring: "monitoring";
2257
- }>>;
2258
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
3567
+ hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
3568
+ waitingOn: z.ZodOptional<z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
3569
+ kind: z.ZodLiteral<"human">;
3570
+ shown: z.ZodOptional<z.ZodLiteral<true>>;
3571
+ }, z.core.$strip>, z.ZodObject<{
3572
+ kind: z.ZodLiteral<"usage-limit">;
3573
+ at: z.ZodString;
3574
+ }, z.core.$strip>, z.ZodObject<{
3575
+ kind: z.ZodLiteral<"workers">;
3576
+ count: z.ZodNumber;
3577
+ replies: z.ZodOptional<z.ZodLiteral<true>>;
3578
+ }, z.core.$strip>, z.ZodObject<{
3579
+ kind: z.ZodLiteral<"pr">;
3580
+ until: z.ZodEnum<{
3581
+ checks: "checks";
3582
+ merge: "merge";
3583
+ }>;
3584
+ waitId: z.ZodUUID;
3585
+ prUrl: z.ZodString;
3586
+ repository: z.ZodString;
3587
+ prNumber: z.ZodNumber;
3588
+ deadline: z.ZodISODateTime;
3589
+ }, z.core.$strip>, z.ZodObject<{
3590
+ kind: z.ZodLiteral<"process">;
3591
+ waitId: z.ZodUUID;
3592
+ pid: z.ZodNumber;
3593
+ deadline: z.ZodISODateTime;
3594
+ note: z.ZodOptional<z.ZodString>;
3595
+ }, z.core.$strip>, z.ZodObject<{
3596
+ kind: z.ZodLiteral<"timer">;
3597
+ waitId: z.ZodUUID;
3598
+ at: z.ZodISODateTime;
3599
+ note: z.ZodOptional<z.ZodString>;
3600
+ }, z.core.$strip>], "kind">>>;
3601
+ waitWakePending: z.ZodOptional<z.ZodLiteral<true>>;
2259
3602
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2260
3603
  role: z.ZodLiteral<"root">;
2261
3604
  wait: z.ZodOptional<z.ZodObject<{
@@ -2293,6 +3636,14 @@ export declare const runsSearchResponseSchema: z.ZodObject<{
2293
3636
  branch: z.ZodOptional<z.ZodString>;
2294
3637
  startedAt: z.ZodOptional<z.ZodString>;
2295
3638
  pullRequestUrl: z.ZodOptional<z.ZodString>;
3639
+ pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
3640
+ number: z.ZodNumber;
3641
+ url: z.ZodOptional<z.ZodString>;
3642
+ source: z.ZodEnum<{
3643
+ created: "created";
3644
+ declared: "declared";
3645
+ }>;
3646
+ }, z.core.$strip>>>;
2296
3647
  referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
2297
3648
  prNumber: z.ZodOptional<z.ZodNumber>;
2298
3649
  issueNumber: z.ZodOptional<z.ZodNumber>;
@@ -2313,6 +3664,7 @@ export declare const runsSearchResponseSchema: z.ZodObject<{
2313
3664
  groupId: z.ZodOptional<z.ZodString>;
2314
3665
  variant: z.ZodOptional<z.ZodString>;
2315
3666
  pinned: z.ZodOptional<z.ZodBoolean>;
3667
+ automationId: z.ZodOptional<z.ZodString>;
2316
3668
  runner: z.ZodOptional<z.ZodEnum<{
2317
3669
  claude: "claude";
2318
3670
  codex: "codex";
@@ -2348,13 +3700,8 @@ export declare const runsSearchResponseSchema: z.ZodObject<{
2348
3700
  truncated: z.ZodArray<z.ZodString>;
2349
3701
  }, z.core.$strip>;
2350
3702
  export type RunsSearchResponse = z.infer<typeof runsSearchResponseSchema>;
2351
- /**
2352
- * `POST /runs` (201) — one record for ×1, a group for ×2/×3.
2353
- *
2354
- * The ×1 branch is the STORED record, not `ApiRun`: `startRun` answers before any `ps` sample
2355
- * exists, so the create route never runs a record through `withUsage`.
2356
- */
2357
- export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3703
+ /** `POST /runs` (201) — the stored record, before any process usage sample exists. */
3704
+ export declare const createRunResponseSchema: z.ZodObject<{
2358
3705
  id: z.ZodString;
2359
3706
  title: z.ZodString;
2360
3707
  titleSummary: z.ZodOptional<z.ZodString>;
@@ -2383,7 +3730,15 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2383
3730
  lifecycle: "lifecycle";
2384
3731
  }>>;
2385
3732
  agentInputId: z.ZodOptional<z.ZodUUID>;
3733
+ resumeContext: z.ZodOptional<z.ZodObject<{
3734
+ failure: z.ZodOptional<z.ZodObject<{
3735
+ stepId: z.ZodOptional<z.ZodString>;
3736
+ error: z.ZodString;
3737
+ }, z.core.$strip>>;
3738
+ restarted: z.ZodOptional<z.ZodLiteral<true>>;
3739
+ }, z.core.$strip>>;
2386
3740
  }, z.core.$strip>>;
3741
+ workflowResumeStepId: z.ZodOptional<z.ZodString>;
2387
3742
  invalidAsk: z.ZodOptional<z.ZodBoolean>;
2388
3743
  delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2389
3744
  role: z.ZodLiteral<"root">;
@@ -2412,14 +3767,15 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2412
3767
  resumed: z.ZodOptional<z.ZodLiteral<true>>;
2413
3768
  instruction: z.ZodOptional<z.ZodString>;
2414
3769
  question: z.ZodOptional<z.ZodObject<{
3770
+ context: z.ZodOptional<z.ZodString>;
2415
3771
  questions: z.ZodArray<z.ZodObject<{
2416
3772
  id: z.ZodOptional<z.ZodString>;
2417
3773
  header: z.ZodString;
2418
3774
  question: z.ZodString;
2419
- options: z.ZodArray<z.ZodObject<{
3775
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
2420
3776
  label: z.ZodString;
2421
3777
  description: z.ZodOptional<z.ZodString>;
2422
- }, z.core.$strict>>;
3778
+ }, z.core.$strict>>>;
2423
3779
  multiSelect: z.ZodOptional<z.ZodBoolean>;
2424
3780
  }, z.core.$strict>>;
2425
3781
  }, z.core.$strict>>;
@@ -2433,6 +3789,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2433
3789
  failed: "failed";
2434
3790
  "human-fallback": "human-fallback";
2435
3791
  replied: "replied";
3792
+ "replied-late": "replied-late";
2436
3793
  "sender-closed": "sender-closed";
2437
3794
  "timed-out": "timed-out";
2438
3795
  }>;
@@ -2476,6 +3833,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2476
3833
  failed: "failed";
2477
3834
  "human-fallback": "human-fallback";
2478
3835
  replied: "replied";
3836
+ "replied-late": "replied-late";
2479
3837
  "sender-closed": "sender-closed";
2480
3838
  "timed-out": "timed-out";
2481
3839
  }>;
@@ -2530,6 +3888,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2530
3888
  failed: "failed";
2531
3889
  "human-fallback": "human-fallback";
2532
3890
  replied: "replied";
3891
+ "replied-late": "replied-late";
2533
3892
  "sender-closed": "sender-closed";
2534
3893
  "timed-out": "timed-out";
2535
3894
  }>;
@@ -2619,6 +3978,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2619
3978
  failed: "failed";
2620
3979
  "human-fallback": "human-fallback";
2621
3980
  replied: "replied";
3981
+ "replied-late": "replied-late";
2622
3982
  "sender-closed": "sender-closed";
2623
3983
  "timed-out": "timed-out";
2624
3984
  }>;
@@ -2673,6 +4033,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2673
4033
  failed: "failed";
2674
4034
  "human-fallback": "human-fallback";
2675
4035
  replied: "replied";
4036
+ "replied-late": "replied-late";
2676
4037
  "sender-closed": "sender-closed";
2677
4038
  "timed-out": "timed-out";
2678
4039
  }>;
@@ -2757,6 +4118,9 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2757
4118
  }, z.core.$strict>, z.ZodObject<{
2758
4119
  kind: z.ZodLiteral<"parent-attachment">;
2759
4120
  id: z.ZodString;
4121
+ }, z.core.$strict>, z.ZodObject<{
4122
+ kind: z.ZodLiteral<"parent-file">;
4123
+ path: z.ZodString;
2760
4124
  }, z.core.$strict>], "kind">;
2761
4125
  path: z.ZodString;
2762
4126
  sha256: z.ZodString;
@@ -2798,38 +4162,75 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2798
4162
  acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
2799
4163
  memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
2800
4164
  }, z.core.$strict>>;
4165
+ purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
2801
4166
  }, z.core.$strict>>>;
2802
- ciWait: z.ZodOptional<z.ZodObject<{
4167
+ waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2803
4168
  prUrl: z.ZodString;
2804
4169
  repository: z.ZodString;
2805
4170
  prNumber: z.ZodNumber;
2806
4171
  headSha: z.ZodString;
2807
4172
  id: z.ZodUUID;
2808
- generation: z.ZodString;
2809
- turnId: z.ZodString;
2810
- timeoutSeconds: z.ZodNumber;
4173
+ source: z.ZodEnum<{
4174
+ agent: "agent";
4175
+ cezar: "cezar";
4176
+ }>;
4177
+ via: z.ZodEnum<{
4178
+ "ask-line": "ask-line";
4179
+ budget: "budget";
4180
+ "cez-worker-wait": "cez-worker-wait";
4181
+ cezar_ask: "cezar_ask";
4182
+ cezar_wait: "cezar_wait";
4183
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4184
+ completion: "completion";
4185
+ "monitoring-line": "monitoring-line";
4186
+ "native-ask": "native-ask";
4187
+ "no-wait": "no-wait";
4188
+ "schedule-wakeup": "schedule-wakeup";
4189
+ }>;
2811
4190
  registeredAt: z.ZodISODateTime;
2812
- deadline: z.ZodISODateTime;
2813
4191
  phase: z.ZodEnum<{
4192
+ cancelled: "cancelled";
2814
4193
  delivered: "delivered";
2815
- parked: "parked";
2816
- registered: "registered";
2817
- "wake-pending": "wake-pending";
2818
- withdrawn: "withdrawn";
4194
+ open: "open";
4195
+ resolved: "resolved";
4196
+ }>;
4197
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
4198
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4199
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4200
+ turnId: z.ZodString;
4201
+ kind: z.ZodLiteral<"pr">;
4202
+ deadline: z.ZodISODateTime;
4203
+ generation: z.ZodString;
4204
+ timeoutSeconds: z.ZodNumber;
4205
+ until: z.ZodEnum<{
4206
+ checks: "checks";
4207
+ merge: "merge";
2819
4208
  }>;
4209
+ wakeOnConflict: z.ZodBoolean;
2820
4210
  result: z.ZodOptional<z.ZodObject<{
2821
4211
  outcome: z.ZodEnum<{
2822
4212
  cancelled: "cancelled";
4213
+ closed: "closed";
4214
+ conflicting: "conflicting";
2823
4215
  deadline: "deadline";
2824
4216
  error: "error";
2825
4217
  failed: "failed";
2826
4218
  head_changed: "head_changed";
4219
+ merged: "merged";
2827
4220
  no_checks: "no_checks";
2828
4221
  passed: "passed";
2829
4222
  skipped: "skipped";
2830
4223
  }>;
2831
4224
  headSha: z.ZodString;
2832
4225
  observedHeadSha: z.ZodOptional<z.ZodString>;
4226
+ mergeable: z.ZodOptional<z.ZodEnum<{
4227
+ CONFLICTING: "CONFLICTING";
4228
+ MERGEABLE: "MERGEABLE";
4229
+ UNKNOWN: "UNKNOWN";
4230
+ }>>;
4231
+ mergeStateStatus: z.ZodOptional<z.ZodString>;
4232
+ mergedAt: z.ZodOptional<z.ZodISODateTime>;
4233
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
2833
4234
  observedAt: z.ZodISODateTime;
2834
4235
  checks: z.ZodArray<z.ZodObject<{
2835
4236
  name: z.ZodString;
@@ -2840,40 +4241,279 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2840
4241
  truncated: z.ZodBoolean;
2841
4242
  diagnostic: z.ZodOptional<z.ZodString>;
2842
4243
  }, z.core.$strict>>;
2843
- wakeId: z.ZodOptional<z.ZodString>;
4244
+ }, z.core.$strict>, z.ZodObject<{
4245
+ id: z.ZodUUID;
4246
+ source: z.ZodEnum<{
4247
+ agent: "agent";
4248
+ cezar: "cezar";
4249
+ }>;
4250
+ via: z.ZodEnum<{
4251
+ "ask-line": "ask-line";
4252
+ budget: "budget";
4253
+ "cez-worker-wait": "cez-worker-wait";
4254
+ cezar_ask: "cezar_ask";
4255
+ cezar_wait: "cezar_wait";
4256
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4257
+ completion: "completion";
4258
+ "monitoring-line": "monitoring-line";
4259
+ "native-ask": "native-ask";
4260
+ "no-wait": "no-wait";
4261
+ "schedule-wakeup": "schedule-wakeup";
4262
+ }>;
4263
+ registeredAt: z.ZodISODateTime;
4264
+ phase: z.ZodEnum<{
4265
+ cancelled: "cancelled";
4266
+ delivered: "delivered";
4267
+ open: "open";
4268
+ resolved: "resolved";
4269
+ }>;
4270
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2844
4271
  deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2845
- }, z.core.$strict>>;
2846
- lastCiWait: z.ZodOptional<z.ZodObject<{
4272
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4273
+ turnId: z.ZodString;
4274
+ kind: z.ZodLiteral<"timer">;
4275
+ deadline: z.ZodISODateTime;
4276
+ seconds: z.ZodNumber;
4277
+ note: z.ZodOptional<z.ZodString>;
4278
+ }, z.core.$strict>, z.ZodObject<{
4279
+ id: z.ZodUUID;
4280
+ source: z.ZodEnum<{
4281
+ agent: "agent";
4282
+ cezar: "cezar";
4283
+ }>;
4284
+ via: z.ZodEnum<{
4285
+ "ask-line": "ask-line";
4286
+ budget: "budget";
4287
+ "cez-worker-wait": "cez-worker-wait";
4288
+ cezar_ask: "cezar_ask";
4289
+ cezar_wait: "cezar_wait";
4290
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4291
+ completion: "completion";
4292
+ "monitoring-line": "monitoring-line";
4293
+ "native-ask": "native-ask";
4294
+ "no-wait": "no-wait";
4295
+ "schedule-wakeup": "schedule-wakeup";
4296
+ }>;
4297
+ registeredAt: z.ZodISODateTime;
4298
+ phase: z.ZodEnum<{
4299
+ cancelled: "cancelled";
4300
+ delivered: "delivered";
4301
+ open: "open";
4302
+ resolved: "resolved";
4303
+ }>;
4304
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
4305
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4306
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4307
+ turnId: z.ZodString;
4308
+ kind: z.ZodLiteral<"human">;
4309
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4310
+ id: z.ZodOptional<z.ZodString>;
4311
+ header: z.ZodString;
4312
+ question: z.ZodString;
4313
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
4314
+ label: z.ZodString;
4315
+ description: z.ZodOptional<z.ZodString>;
4316
+ }, z.core.$strict>>>;
4317
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
4318
+ }, z.core.$strict>>>;
4319
+ context: z.ZodOptional<z.ZodString>;
4320
+ askSeq: z.ZodOptional<z.ZodNumber>;
4321
+ }, z.core.$strict>, z.ZodObject<{
4322
+ id: z.ZodUUID;
4323
+ source: z.ZodEnum<{
4324
+ agent: "agent";
4325
+ cezar: "cezar";
4326
+ }>;
4327
+ via: z.ZodEnum<{
4328
+ "ask-line": "ask-line";
4329
+ budget: "budget";
4330
+ "cez-worker-wait": "cez-worker-wait";
4331
+ cezar_ask: "cezar_ask";
4332
+ cezar_wait: "cezar_wait";
4333
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4334
+ completion: "completion";
4335
+ "monitoring-line": "monitoring-line";
4336
+ "native-ask": "native-ask";
4337
+ "no-wait": "no-wait";
4338
+ "schedule-wakeup": "schedule-wakeup";
4339
+ }>;
4340
+ registeredAt: z.ZodISODateTime;
4341
+ phase: z.ZodEnum<{
4342
+ cancelled: "cancelled";
4343
+ delivered: "delivered";
4344
+ open: "open";
4345
+ resolved: "resolved";
4346
+ }>;
4347
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
4348
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4349
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4350
+ turnId: z.ZodString;
4351
+ kind: z.ZodLiteral<"worker">;
4352
+ deadline: z.ZodOptional<z.ZodISODateTime>;
4353
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
4354
+ mode: z.ZodOptional<z.ZodEnum<{
4355
+ all: "all";
4356
+ any: "any";
4357
+ one: "one";
4358
+ }>>;
4359
+ workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4360
+ revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4361
+ workerId: z.ZodUUID;
4362
+ revision: z.ZodNumber;
4363
+ }, z.core.$strict>>>;
4364
+ outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4365
+ workerId: z.ZodUUID;
4366
+ status: z.ZodEnum<{
4367
+ cancelled: "cancelled";
4368
+ done: "done";
4369
+ failed: "failed";
4370
+ review: "review";
4371
+ }>;
4372
+ observedAt: z.ZodISODateTime;
4373
+ summary: z.ZodOptional<z.ZodString>;
4374
+ revision: z.ZodOptional<z.ZodNumber>;
4375
+ }, z.core.$strict>>>;
4376
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4377
+ requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4378
+ requestId: z.ZodUUID;
4379
+ status: z.ZodEnum<{
4380
+ cancelled: "cancelled";
4381
+ "completed-without-reply": "completed-without-reply";
4382
+ destroyed: "destroyed";
4383
+ failed: "failed";
4384
+ "human-fallback": "human-fallback";
4385
+ replied: "replied";
4386
+ "replied-late": "replied-late";
4387
+ "sender-closed": "sender-closed";
4388
+ "timed-out": "timed-out";
4389
+ }>;
4390
+ observedAt: z.ZodISODateTime;
4391
+ replyId: z.ZodOptional<z.ZodUUID>;
4392
+ }, z.core.$strict>>>;
4393
+ result: z.ZodOptional<z.ZodObject<{
4394
+ reason: z.ZodEnum<{
4395
+ outcome: "outcome";
4396
+ timeout: "timeout";
4397
+ }>;
4398
+ }, z.core.$strict>>;
4399
+ wakeInputId: z.ZodOptional<z.ZodUUID>;
4400
+ }, z.core.$strict>, z.ZodObject<{
4401
+ id: z.ZodUUID;
4402
+ source: z.ZodEnum<{
4403
+ agent: "agent";
4404
+ cezar: "cezar";
4405
+ }>;
4406
+ via: z.ZodEnum<{
4407
+ "ask-line": "ask-line";
4408
+ budget: "budget";
4409
+ "cez-worker-wait": "cez-worker-wait";
4410
+ cezar_ask: "cezar_ask";
4411
+ cezar_wait: "cezar_wait";
4412
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4413
+ completion: "completion";
4414
+ "monitoring-line": "monitoring-line";
4415
+ "native-ask": "native-ask";
4416
+ "no-wait": "no-wait";
4417
+ "schedule-wakeup": "schedule-wakeup";
4418
+ }>;
4419
+ registeredAt: z.ZodISODateTime;
4420
+ phase: z.ZodEnum<{
4421
+ cancelled: "cancelled";
4422
+ delivered: "delivered";
4423
+ open: "open";
4424
+ resolved: "resolved";
4425
+ }>;
4426
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
4427
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4428
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4429
+ turnId: z.ZodString;
4430
+ kind: z.ZodLiteral<"process">;
4431
+ deadline: z.ZodISODateTime;
4432
+ timeoutSeconds: z.ZodNumber;
4433
+ pid: z.ZodNumber;
4434
+ startToken: z.ZodOptional<z.ZodString>;
4435
+ exitFile: z.ZodOptional<z.ZodString>;
4436
+ note: z.ZodOptional<z.ZodString>;
4437
+ result: z.ZodOptional<z.ZodObject<{
4438
+ outcome: z.ZodEnum<{
4439
+ deadline: "deadline";
4440
+ error: "error";
4441
+ exit_file: "exit_file";
4442
+ exited: "exited";
4443
+ }>;
4444
+ observedAt: z.ZodISODateTime;
4445
+ exitCode: z.ZodOptional<z.ZodNumber>;
4446
+ exitFileNote: z.ZodOptional<z.ZodLiteral<"not-an-exit-code">>;
4447
+ diagnostic: z.ZodOptional<z.ZodString>;
4448
+ }, z.core.$strict>>;
4449
+ }, z.core.$strict>], "kind">>>;
4450
+ lastWaits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
2847
4451
  prUrl: z.ZodString;
2848
4452
  repository: z.ZodString;
2849
4453
  prNumber: z.ZodNumber;
2850
4454
  headSha: z.ZodString;
2851
4455
  id: z.ZodUUID;
2852
- generation: z.ZodString;
2853
- turnId: z.ZodString;
2854
- timeoutSeconds: z.ZodNumber;
4456
+ source: z.ZodEnum<{
4457
+ agent: "agent";
4458
+ cezar: "cezar";
4459
+ }>;
4460
+ via: z.ZodEnum<{
4461
+ "ask-line": "ask-line";
4462
+ budget: "budget";
4463
+ "cez-worker-wait": "cez-worker-wait";
4464
+ cezar_ask: "cezar_ask";
4465
+ cezar_wait: "cezar_wait";
4466
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4467
+ completion: "completion";
4468
+ "monitoring-line": "monitoring-line";
4469
+ "native-ask": "native-ask";
4470
+ "no-wait": "no-wait";
4471
+ "schedule-wakeup": "schedule-wakeup";
4472
+ }>;
2855
4473
  registeredAt: z.ZodISODateTime;
2856
- deadline: z.ZodISODateTime;
2857
4474
  phase: z.ZodEnum<{
4475
+ cancelled: "cancelled";
2858
4476
  delivered: "delivered";
2859
- parked: "parked";
2860
- registered: "registered";
2861
- "wake-pending": "wake-pending";
2862
- withdrawn: "withdrawn";
4477
+ open: "open";
4478
+ resolved: "resolved";
4479
+ }>;
4480
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
4481
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4482
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4483
+ turnId: z.ZodString;
4484
+ kind: z.ZodLiteral<"pr">;
4485
+ deadline: z.ZodISODateTime;
4486
+ generation: z.ZodString;
4487
+ timeoutSeconds: z.ZodNumber;
4488
+ until: z.ZodEnum<{
4489
+ checks: "checks";
4490
+ merge: "merge";
2863
4491
  }>;
4492
+ wakeOnConflict: z.ZodBoolean;
2864
4493
  result: z.ZodOptional<z.ZodObject<{
2865
4494
  outcome: z.ZodEnum<{
2866
4495
  cancelled: "cancelled";
4496
+ closed: "closed";
4497
+ conflicting: "conflicting";
2867
4498
  deadline: "deadline";
2868
4499
  error: "error";
2869
4500
  failed: "failed";
2870
4501
  head_changed: "head_changed";
4502
+ merged: "merged";
2871
4503
  no_checks: "no_checks";
2872
4504
  passed: "passed";
2873
4505
  skipped: "skipped";
2874
4506
  }>;
2875
4507
  headSha: z.ZodString;
2876
4508
  observedHeadSha: z.ZodOptional<z.ZodString>;
4509
+ mergeable: z.ZodOptional<z.ZodEnum<{
4510
+ CONFLICTING: "CONFLICTING";
4511
+ MERGEABLE: "MERGEABLE";
4512
+ UNKNOWN: "UNKNOWN";
4513
+ }>>;
4514
+ mergeStateStatus: z.ZodOptional<z.ZodString>;
4515
+ mergedAt: z.ZodOptional<z.ZodISODateTime>;
4516
+ mergeCommitSha: z.ZodOptional<z.ZodString>;
2877
4517
  observedAt: z.ZodISODateTime;
2878
4518
  checks: z.ZodArray<z.ZodObject<{
2879
4519
  name: z.ZodString;
@@ -2884,35 +4524,256 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2884
4524
  truncated: z.ZodBoolean;
2885
4525
  diagnostic: z.ZodOptional<z.ZodString>;
2886
4526
  }, z.core.$strict>>;
2887
- wakeId: z.ZodOptional<z.ZodString>;
4527
+ }, z.core.$strict>, z.ZodObject<{
4528
+ id: z.ZodUUID;
4529
+ source: z.ZodEnum<{
4530
+ agent: "agent";
4531
+ cezar: "cezar";
4532
+ }>;
4533
+ via: z.ZodEnum<{
4534
+ "ask-line": "ask-line";
4535
+ budget: "budget";
4536
+ "cez-worker-wait": "cez-worker-wait";
4537
+ cezar_ask: "cezar_ask";
4538
+ cezar_wait: "cezar_wait";
4539
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4540
+ completion: "completion";
4541
+ "monitoring-line": "monitoring-line";
4542
+ "native-ask": "native-ask";
4543
+ "no-wait": "no-wait";
4544
+ "schedule-wakeup": "schedule-wakeup";
4545
+ }>;
4546
+ registeredAt: z.ZodISODateTime;
4547
+ phase: z.ZodEnum<{
4548
+ cancelled: "cancelled";
4549
+ delivered: "delivered";
4550
+ open: "open";
4551
+ resolved: "resolved";
4552
+ }>;
4553
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
2888
4554
  deliveredAt: z.ZodOptional<z.ZodISODateTime>;
2889
- }, z.core.$strict>>;
2890
- lastCiWaitError: z.ZodOptional<z.ZodString>;
2891
- previewServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2892
- port: z.ZodNumber;
2893
- command: z.ZodString;
2894
- cwd: z.ZodOptional<z.ZodString>;
2895
- label: z.ZodString;
2896
- path: z.ZodOptional<z.ZodString>;
4555
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4556
+ turnId: z.ZodString;
4557
+ kind: z.ZodLiteral<"timer">;
4558
+ deadline: z.ZodISODateTime;
4559
+ seconds: z.ZodNumber;
4560
+ note: z.ZodOptional<z.ZodString>;
4561
+ }, z.core.$strict>, z.ZodObject<{
4562
+ id: z.ZodUUID;
4563
+ source: z.ZodEnum<{
4564
+ agent: "agent";
4565
+ cezar: "cezar";
4566
+ }>;
4567
+ via: z.ZodEnum<{
4568
+ "ask-line": "ask-line";
4569
+ budget: "budget";
4570
+ "cez-worker-wait": "cez-worker-wait";
4571
+ cezar_ask: "cezar_ask";
4572
+ cezar_wait: "cezar_wait";
4573
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4574
+ completion: "completion";
4575
+ "monitoring-line": "monitoring-line";
4576
+ "native-ask": "native-ask";
4577
+ "no-wait": "no-wait";
4578
+ "schedule-wakeup": "schedule-wakeup";
4579
+ }>;
2897
4580
  registeredAt: z.ZodISODateTime;
2898
- answeredAtRegistration: z.ZodBoolean;
2899
- }, z.core.$strip>>>;
2900
- taskImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
2901
- model: z.ZodOptional<z.ZodString>;
2902
- effort: z.ZodOptional<z.ZodString>;
2903
- modelIdentity: z.ZodOptional<z.ZodString>;
2904
- runner: z.ZodOptional<z.ZodEnum<{
2905
- claude: "claude";
2906
- codex: "codex";
2907
- cursor: "cursor";
2908
- omp: "omp";
2909
- opencode: "opencode";
4581
+ phase: z.ZodEnum<{
4582
+ cancelled: "cancelled";
4583
+ delivered: "delivered";
4584
+ open: "open";
4585
+ resolved: "resolved";
4586
+ }>;
4587
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
4588
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4589
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4590
+ turnId: z.ZodString;
4591
+ kind: z.ZodLiteral<"human">;
4592
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4593
+ id: z.ZodOptional<z.ZodString>;
4594
+ header: z.ZodString;
4595
+ question: z.ZodString;
4596
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
4597
+ label: z.ZodString;
4598
+ description: z.ZodOptional<z.ZodString>;
4599
+ }, z.core.$strict>>>;
4600
+ multiSelect: z.ZodOptional<z.ZodBoolean>;
4601
+ }, z.core.$strict>>>;
4602
+ context: z.ZodOptional<z.ZodString>;
4603
+ askSeq: z.ZodOptional<z.ZodNumber>;
4604
+ }, z.core.$strict>, z.ZodObject<{
4605
+ id: z.ZodUUID;
4606
+ source: z.ZodEnum<{
4607
+ agent: "agent";
4608
+ cezar: "cezar";
4609
+ }>;
4610
+ via: z.ZodEnum<{
4611
+ "ask-line": "ask-line";
4612
+ budget: "budget";
4613
+ "cez-worker-wait": "cez-worker-wait";
4614
+ cezar_ask: "cezar_ask";
4615
+ cezar_wait: "cezar_wait";
4616
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4617
+ completion: "completion";
4618
+ "monitoring-line": "monitoring-line";
4619
+ "native-ask": "native-ask";
4620
+ "no-wait": "no-wait";
4621
+ "schedule-wakeup": "schedule-wakeup";
4622
+ }>;
4623
+ registeredAt: z.ZodISODateTime;
4624
+ phase: z.ZodEnum<{
4625
+ cancelled: "cancelled";
4626
+ delivered: "delivered";
4627
+ open: "open";
4628
+ resolved: "resolved";
4629
+ }>;
4630
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
4631
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4632
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4633
+ turnId: z.ZodString;
4634
+ kind: z.ZodLiteral<"worker">;
4635
+ deadline: z.ZodOptional<z.ZodISODateTime>;
4636
+ timeoutSeconds: z.ZodOptional<z.ZodNumber>;
4637
+ mode: z.ZodOptional<z.ZodEnum<{
4638
+ all: "all";
4639
+ any: "any";
4640
+ one: "one";
4641
+ }>>;
4642
+ workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4643
+ revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4644
+ workerId: z.ZodUUID;
4645
+ revision: z.ZodNumber;
4646
+ }, z.core.$strict>>>;
4647
+ outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4648
+ workerId: z.ZodUUID;
4649
+ status: z.ZodEnum<{
4650
+ cancelled: "cancelled";
4651
+ done: "done";
4652
+ failed: "failed";
4653
+ review: "review";
4654
+ }>;
4655
+ observedAt: z.ZodISODateTime;
4656
+ summary: z.ZodOptional<z.ZodString>;
4657
+ revision: z.ZodOptional<z.ZodNumber>;
4658
+ }, z.core.$strict>>>;
4659
+ requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4660
+ requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4661
+ requestId: z.ZodUUID;
4662
+ status: z.ZodEnum<{
4663
+ cancelled: "cancelled";
4664
+ "completed-without-reply": "completed-without-reply";
4665
+ destroyed: "destroyed";
4666
+ failed: "failed";
4667
+ "human-fallback": "human-fallback";
4668
+ replied: "replied";
4669
+ "replied-late": "replied-late";
4670
+ "sender-closed": "sender-closed";
4671
+ "timed-out": "timed-out";
4672
+ }>;
4673
+ observedAt: z.ZodISODateTime;
4674
+ replyId: z.ZodOptional<z.ZodUUID>;
4675
+ }, z.core.$strict>>>;
4676
+ result: z.ZodOptional<z.ZodObject<{
4677
+ reason: z.ZodEnum<{
4678
+ outcome: "outcome";
4679
+ timeout: "timeout";
4680
+ }>;
4681
+ }, z.core.$strict>>;
4682
+ wakeInputId: z.ZodOptional<z.ZodUUID>;
4683
+ }, z.core.$strict>, z.ZodObject<{
4684
+ id: z.ZodUUID;
4685
+ source: z.ZodEnum<{
4686
+ agent: "agent";
4687
+ cezar: "cezar";
4688
+ }>;
4689
+ via: z.ZodEnum<{
4690
+ "ask-line": "ask-line";
4691
+ budget: "budget";
4692
+ "cez-worker-wait": "cez-worker-wait";
4693
+ cezar_ask: "cezar_ask";
4694
+ cezar_wait: "cezar_wait";
4695
+ cezar_wait_for_ci: "cezar_wait_for_ci";
4696
+ completion: "completion";
4697
+ "monitoring-line": "monitoring-line";
4698
+ "native-ask": "native-ask";
4699
+ "no-wait": "no-wait";
4700
+ "schedule-wakeup": "schedule-wakeup";
4701
+ }>;
4702
+ registeredAt: z.ZodISODateTime;
4703
+ phase: z.ZodEnum<{
4704
+ cancelled: "cancelled";
4705
+ delivered: "delivered";
4706
+ open: "open";
4707
+ resolved: "resolved";
4708
+ }>;
4709
+ resolvedAt: z.ZodOptional<z.ZodISODateTime>;
4710
+ deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4711
+ cancelledAt: z.ZodOptional<z.ZodISODateTime>;
4712
+ turnId: z.ZodString;
4713
+ kind: z.ZodLiteral<"process">;
4714
+ deadline: z.ZodISODateTime;
4715
+ timeoutSeconds: z.ZodNumber;
4716
+ pid: z.ZodNumber;
4717
+ startToken: z.ZodOptional<z.ZodString>;
4718
+ exitFile: z.ZodOptional<z.ZodString>;
4719
+ note: z.ZodOptional<z.ZodString>;
4720
+ result: z.ZodOptional<z.ZodObject<{
4721
+ outcome: z.ZodEnum<{
4722
+ deadline: "deadline";
4723
+ error: "error";
4724
+ exit_file: "exit_file";
4725
+ exited: "exited";
4726
+ }>;
4727
+ observedAt: z.ZodISODateTime;
4728
+ exitCode: z.ZodOptional<z.ZodNumber>;
4729
+ exitFileNote: z.ZodOptional<z.ZodLiteral<"not-an-exit-code">>;
4730
+ diagnostic: z.ZodOptional<z.ZodString>;
4731
+ }, z.core.$strict>>;
4732
+ }, z.core.$strict>], "kind">>>;
4733
+ lastWaitsError: z.ZodOptional<z.ZodString>;
4734
+ automaticWakes: z.ZodOptional<z.ZodNumber>;
4735
+ waitDeliveryFailures: z.ZodOptional<z.ZodNumber>;
4736
+ previewServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
4737
+ port: z.ZodNumber;
4738
+ command: z.ZodString;
4739
+ cwd: z.ZodOptional<z.ZodString>;
4740
+ label: z.ZodString;
4741
+ path: z.ZodOptional<z.ZodString>;
4742
+ registeredAt: z.ZodISODateTime;
4743
+ answeredAtRegistration: z.ZodBoolean;
4744
+ }, z.core.$strip>>>;
4745
+ taskImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
4746
+ model: z.ZodOptional<z.ZodString>;
4747
+ effort: z.ZodOptional<z.ZodString>;
4748
+ modelIdentity: z.ZodOptional<z.ZodString>;
4749
+ runner: z.ZodOptional<z.ZodEnum<{
4750
+ claude: "claude";
4751
+ codex: "codex";
4752
+ cursor: "cursor";
4753
+ omp: "omp";
4754
+ opencode: "opencode";
2910
4755
  pi: "pi";
2911
4756
  }>>;
2912
4757
  agentProfile: z.ZodOptional<z.ZodString>;
2913
4758
  systemPrompt: z.ZodOptional<z.ZodString>;
2914
4759
  generateFollowups: z.ZodOptional<z.ZodBoolean>;
2915
4760
  autonomous: z.ZodOptional<z.ZodBoolean>;
4761
+ archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
4762
+ autoMergePr: z.ZodOptional<z.ZodBoolean>;
4763
+ completionAction: z.ZodOptional<z.ZodObject<{
4764
+ id: z.ZodString;
4765
+ phase: z.ZodEnum<{
4766
+ blocked: "blocked";
4767
+ complete: "complete";
4768
+ pending: "pending";
4769
+ }>;
4770
+ message: z.ZodOptional<z.ZodString>;
4771
+ }, z.core.$strip>>;
4772
+ archiveBlocker: z.ZodOptional<z.ZodObject<{
4773
+ message: z.ZodString;
4774
+ runId: z.ZodOptional<z.ZodString>;
4775
+ pullRequestUrl: z.ZodOptional<z.ZodString>;
4776
+ }, z.core.$strip>>;
2916
4777
  automation: z.ZodOptional<z.ZodObject<{
2917
4778
  automationId: z.ZodString;
2918
4779
  automationRevision: z.ZodNumber;
@@ -2940,6 +4801,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2940
4801
  webhook: z.ZodOptional<z.ZodObject<{
2941
4802
  lastDeliveredAt: z.ZodOptional<z.ZodString>;
2942
4803
  lastError: z.ZodOptional<z.ZodString>;
4804
+ lastErrorWebhookId: z.ZodOptional<z.ZodString>;
2943
4805
  }, z.core.$strip>>;
2944
4806
  status: z.ZodEnum<{
2945
4807
  cancelled: "cancelled";
@@ -2950,12 +4812,7 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2950
4812
  running: "running";
2951
4813
  waiting: "waiting";
2952
4814
  }>;
2953
- activity: z.ZodOptional<z.ZodEnum<{
2954
- monitoring: "monitoring";
2955
- }>>;
2956
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
2957
- monitoringWakeAt: z.ZodOptional<z.ZodString>;
2958
- monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
4815
+ hasPendingPermission: z.ZodOptional<z.ZodBoolean>;
2959
4816
  autoResumeAt: z.ZodOptional<z.ZodString>;
2960
4817
  autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
2961
4818
  createdAt: z.ZodString;
@@ -2966,6 +4823,14 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
2966
4823
  outputTokens: z.ZodOptional<z.ZodNumber>;
2967
4824
  costUsd: z.ZodOptional<z.ZodNumber>;
2968
4825
  pullRequestUrl: z.ZodOptional<z.ZodString>;
4826
+ pullRequests: z.ZodOptional<z.ZodArray<z.ZodObject<{
4827
+ number: z.ZodNumber;
4828
+ url: z.ZodOptional<z.ZodString>;
4829
+ source: z.ZodEnum<{
4830
+ created: "created";
4831
+ declared: "declared";
4832
+ }>;
4833
+ }, z.core.$strip>>>;
2969
4834
  referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
2970
4835
  prNumber: z.ZodOptional<z.ZodNumber>;
2971
4836
  issueNumber: z.ZodOptional<z.ZodNumber>;
@@ -3006,6 +4871,18 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3006
4871
  peakProcCount: z.ZodOptional<z.ZodNumber>;
3007
4872
  archived: z.ZodBoolean;
3008
4873
  archivedAt: z.ZodOptional<z.ZodString>;
4874
+ autoArchive: z.ZodOptional<z.ZodObject<{
4875
+ reason: z.ZodLiteral<"pull-requests-merged">;
4876
+ archivedAt: z.ZodString;
4877
+ fingerprint: z.ZodString;
4878
+ pullRequests: z.ZodArray<z.ZodObject<{
4879
+ owner: z.ZodString;
4880
+ repo: z.ZodString;
4881
+ number: z.ZodNumber;
4882
+ mergedAt: z.ZodString;
4883
+ }, z.core.$strip>>;
4884
+ }, z.core.$strip>>;
4885
+ manualUnarchivedAt: z.ZodOptional<z.ZodString>;
3009
4886
  pinned: z.ZodOptional<z.ZodBoolean>;
3010
4887
  pinnedAt: z.ZodOptional<z.ZodString>;
3011
4888
  seenAt: z.ZodOptional<z.ZodString>;
@@ -3042,6 +4919,10 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3042
4919
  finishedAt: z.ZodOptional<z.ZodString>;
3043
4920
  error: z.ZodOptional<z.ZodString>;
3044
4921
  sessionId: z.ZodOptional<z.ZodString>;
4922
+ sessionTransport: z.ZodOptional<z.ZodEnum<{
4923
+ "cursor-acp": "cursor-acp";
4924
+ "cursor-print": "cursor-print";
4925
+ }>>;
3045
4926
  backend: z.ZodOptional<z.ZodEnum<{
3046
4927
  claude: "claude";
3047
4928
  codex: "codex";
@@ -3088,1735 +4969,189 @@ export declare const createRunResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3088
4969
  }>;
3089
4970
  path: z.ZodOptional<z.ZodString>;
3090
4971
  }, z.core.$strip>>;
4972
+ handoffRecords: z.ZodOptional<z.ZodObject<{
4973
+ autosave: z.ZodArray<z.ZodObject<{
4974
+ at: z.ZodString;
4975
+ note: z.ZodString;
4976
+ periodic: z.ZodOptional<z.ZodObject<{
4977
+ branch: z.ZodNullable<z.ZodString>;
4978
+ count: z.ZodNumber;
4979
+ first: z.ZodNullable<z.ZodString>;
4980
+ latest: z.ZodNullable<z.ZodString>;
4981
+ }, z.core.$strip>>;
4982
+ }, z.core.$strip>>;
4983
+ }, z.core.$strip>>;
4984
+ }, z.core.$strip>;
4985
+ export type CreateRunResponse = z.infer<typeof createRunResponseSchema>;
4986
+ /** `POST /runs/:id/cancel` — genuinely a boolean: an already-settled run answers 200 + `false`. */
4987
+ export declare const cancelResponseSchema: z.ZodObject<{
4988
+ cancelled: z.ZodBoolean;
4989
+ }, z.core.$strip>;
4990
+ export type CancelResponse = z.infer<typeof cancelResponseSchema>;
4991
+ /**
4992
+ * `DELETE /runs/:id/auto-resume` (spec 2026-08-03-auto-resume-after-usage-limit) — the per-task
4993
+ * off switch for a pending usage-limit resume, next to the workspace-wide setting.
4994
+ *
4995
+ * `z.literal(true)`, not a boolean, and that IS the shape: the route is idempotent, so a run with
4996
+ * nothing pending answers 200 as well — "this task will not resume itself" is equally true either
4997
+ * way. Only an unknown run refuses, with 404.
4998
+ */
4999
+ export declare const cancelAutoResumeResponseSchema: z.ZodObject<{
5000
+ cancelled: z.ZodLiteral<true>;
5001
+ }, z.core.$strip>;
5002
+ export type CancelAutoResumeResponse = z.infer<typeof cancelAutoResumeResponseSchema>;
5003
+ /** Which finished runs a sweep takes: unpinned (the sidebar's Finished group), pinned (the pinned
5004
+ * rows that have ended), or both when absent. Scheduled runs and owned workers are never swept. */
5005
+ export declare const archiveFinishedScopeSchema: z.ZodEnum<{
5006
+ pinned: "pinned";
5007
+ unpinned: "unpinned";
5008
+ }>;
5009
+ export type ArchiveFinishedScope = z.infer<typeof archiveFinishedScopeSchema>;
5010
+ /** `POST /runs/archive-finished` body — optional, an absent body sweeps both scopes. `automation`
5011
+ * narrows the sweep to tasks an automation launched (`true`) or to every other task (`false`):
5012
+ * the sidebar's Automations and Active tabs (hearsay-tools/cezarion#1332). Absent takes both. */
5013
+ export declare const archiveFinishedRequestSchema: z.ZodObject<{
5014
+ scope: z.ZodOptional<z.ZodEnum<{
5015
+ pinned: "pinned";
5016
+ unpinned: "unpinned";
5017
+ }>>;
5018
+ automation: z.ZodOptional<z.ZodBoolean>;
5019
+ }, z.core.$strip>;
5020
+ export type ArchiveFinishedRequest = z.infer<typeof archiveFinishedRequestSchema>;
5021
+ /** `POST /runs/archive-finished` — `archived` counts every record flipped (owned workers
5022
+ * included), `ids` the top-level runs the sweep picked, `pinnedIds` the subset that carried a
5023
+ * pin before archiving dropped it (so an Undo can restore it). */
5024
+ export declare const archiveFinishedResponseSchema: z.ZodObject<{
5025
+ archived: z.ZodNumber;
5026
+ ids: z.ZodArray<z.ZodString>;
5027
+ pinnedIds: z.ZodArray<z.ZodString>;
5028
+ }, z.core.$strip>;
5029
+ export type ArchiveFinishedResponse = z.infer<typeof archiveFinishedResponseSchema>;
5030
+ /** `POST /runs/read-all` — how many unread finished runs the sweep marked read. */
5031
+ /** `POST /runs/read-all` body — optional, an absent body stamps every origin. `automation` narrows
5032
+ * the sweep the same way `archiveFinishedRequestSchema` does: the Tasks pages' origin filter
5033
+ * (hearsay-tools/cezarion#1616). */
5034
+ export declare const markAllReadRequestSchema: z.ZodObject<{
5035
+ automation: z.ZodOptional<z.ZodBoolean>;
5036
+ }, z.core.$strip>;
5037
+ export type MarkAllReadRequest = z.infer<typeof markAllReadRequestSchema>;
5038
+ export declare const markAllReadResponseSchema: z.ZodObject<{
5039
+ read: z.ZodNumber;
5040
+ }, z.core.$strip>;
5041
+ export type MarkAllReadResponse = z.infer<typeof markAllReadResponseSchema>;
5042
+ /** `DELETE /runs/:id` — an active run is a 409 and an unknown one a 404, so this only ever
5043
+ * reports success. */
5044
+ export declare const deleteRunResponseSchema: z.ZodObject<{
5045
+ deleted: z.ZodLiteral<true>;
5046
+ }, z.core.$strip>;
5047
+ export type DeleteRunResponse = z.infer<typeof deleteRunResponseSchema>;
5048
+ /** `POST /runs/:id/finish` — "no open session" is a 409. */
5049
+ export declare const finishResponseSchema: z.ZodObject<{
5050
+ finished: z.ZodLiteral<true>;
5051
+ }, z.core.$strip>;
5052
+ export type FinishResponse = z.infer<typeof finishResponseSchema>;
5053
+ /** `POST /runs/:id/continue` — a refusal to reopen is a 409 carrying the engine's reason. */
5054
+ export declare const continueResponseSchema: z.ZodObject<{
5055
+ continued: z.ZodLiteral<true>;
5056
+ }, z.core.$strip>;
5057
+ export type ContinueResponse = z.infer<typeof continueResponseSchema>;
5058
+ /**
5059
+ * `POST /runs/:id/pr` (201, spec 009) — the draft PR's URL; `dryRun` marks the CEZ_DRY_RUN fake
5060
+ * (no push, no gh). Failure is a 409 whose `ApiError` carries the `manual` merge command instead.
5061
+ *
5062
+ * `dryRun` is REQUIRED: `createDraftPr`'s success outcome always sets it (`forge/types.ts`), so
5063
+ * the key is always on the wire. The hand-written DTO had it optional.
5064
+ */
5065
+ export declare const createPrResponseSchema: z.ZodObject<{
5066
+ url: z.ZodString;
5067
+ dryRun: z.ZodBoolean;
5068
+ }, z.core.$strip>;
5069
+ export type CreatePrResponse = z.infer<typeof createPrResponseSchema>;
5070
+ /**
5071
+ * `POST /runs/:id/messages` — one of three shapes (#472), by how far the run has got:
5072
+ * `delivered` (a live session took it), `queued` (still waiting for a slot, so it was stacked
5073
+ * onto the prompt and the stored entry rides along), `deferred` (mid-spawn, so it was buffered
5074
+ * and arrives as an ordinary follow-up turn once the session opens). Anything else is a 409.
5075
+ *
5076
+ * A union, not one object of optional flags: exactly one of the three keys is ever present, and
5077
+ * the flattened DTO shape admitted `{}`. Pre-#472 clients only ever saw `delivered`.
5078
+ */
5079
+ export declare const messageResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
5080
+ delivered: z.ZodLiteral<true>;
3091
5081
  }, z.core.$strip>, z.ZodObject<{
3092
- runs: z.ZodArray<z.ZodObject<{
5082
+ queued: z.ZodLiteral<true>;
5083
+ message: z.ZodObject<{
3093
5084
  id: z.ZodString;
3094
- title: z.ZodString;
3095
- titleSummary: z.ZodOptional<z.ZodString>;
3096
- diffStat: z.ZodOptional<z.ZodObject<{
3097
- adds: z.ZodNumber;
3098
- dels: z.ZodNumber;
3099
- files: z.ZodNumber;
3100
- repointed: z.ZodOptional<z.ZodBoolean>;
3101
- }, z.core.$strip>>;
3102
- workflow: z.ZodString;
3103
- task: z.ZodString;
3104
- queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
3105
- id: z.ZodString;
3106
- text: z.ZodString;
3107
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
3108
- createdAt: z.ZodString;
3109
- }, z.core.$strip>>>;
3110
- stopping: z.ZodOptional<z.ZodBoolean>;
3111
- continuationMessage: z.ZodOptional<z.ZodObject<{
3112
- id: z.ZodString;
3113
- text: z.ZodString;
3114
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
3115
- createdAt: z.ZodString;
3116
- origin: z.ZodOptional<z.ZodEnum<{
3117
- human: "human";
3118
- lifecycle: "lifecycle";
3119
- }>>;
3120
- agentInputId: z.ZodOptional<z.ZodUUID>;
3121
- }, z.core.$strip>>;
3122
- invalidAsk: z.ZodOptional<z.ZodBoolean>;
3123
- delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
3124
- role: z.ZodLiteral<"root">;
3125
- conversation: z.ZodOptional<z.ZodObject<{
3126
- messages: z.ZodArray<z.ZodObject<{
3127
- senderRunId: z.ZodUUID;
3128
- recipientRunId: z.ZodUUID;
3129
- kind: z.ZodEnum<{
3130
- "follow-up": "follow-up";
3131
- progress: "progress";
3132
- reply: "reply";
3133
- request: "request";
3134
- }>;
3135
- requestId: z.ZodOptional<z.ZodUUID>;
3136
- id: z.ZodUUID;
3137
- text: z.ZodString;
3138
- createdAt: z.ZodISODateTime;
3139
- deadline: z.ZodOptional<z.ZodISODateTime>;
3140
- requestHash: z.ZodString;
3141
- state: z.ZodEnum<{
3142
- accepted: "accepted";
3143
- "continuation-required": "continuation-required";
3144
- destroyed: "destroyed";
3145
- late: "late";
3146
- }>;
3147
- resumed: z.ZodOptional<z.ZodLiteral<true>>;
3148
- instruction: z.ZodOptional<z.ZodString>;
3149
- question: z.ZodOptional<z.ZodObject<{
3150
- questions: z.ZodArray<z.ZodObject<{
3151
- id: z.ZodOptional<z.ZodString>;
3152
- header: z.ZodString;
3153
- question: z.ZodString;
3154
- options: z.ZodArray<z.ZodObject<{
3155
- label: z.ZodString;
3156
- description: z.ZodOptional<z.ZodString>;
3157
- }, z.core.$strict>>;
3158
- multiSelect: z.ZodOptional<z.ZodBoolean>;
3159
- }, z.core.$strict>>;
3160
- }, z.core.$strict>>;
3161
- }, z.core.$strict>>;
3162
- outcomes: z.ZodArray<z.ZodObject<{
3163
- requestId: z.ZodUUID;
3164
- status: z.ZodEnum<{
3165
- cancelled: "cancelled";
3166
- "completed-without-reply": "completed-without-reply";
3167
- destroyed: "destroyed";
3168
- failed: "failed";
3169
- "human-fallback": "human-fallback";
3170
- replied: "replied";
3171
- "sender-closed": "sender-closed";
3172
- "timed-out": "timed-out";
3173
- }>;
3174
- observedAt: z.ZodISODateTime;
3175
- replyId: z.ZodOptional<z.ZodUUID>;
3176
- }, z.core.$strict>>;
3177
- }, z.core.$strict>>;
3178
- permissions: z.ZodArray<z.ZodEnum<{
3179
- destroy: "destroy";
3180
- diff: "diff";
3181
- inspect: "inspect";
3182
- spawn: "spawn";
3183
- steer: "steer";
3184
- stop: "stop";
3185
- wait: "wait";
3186
- }>>;
3187
- receipts: z.ZodArray<z.ZodObject<{
3188
- requestId: z.ZodUUID;
3189
- workerId: z.ZodUUID;
3190
- requestHash: z.ZodString;
3191
- deletion: z.ZodOptional<z.ZodObject<{
3192
- phase: z.ZodEnum<{
3193
- complete: "complete";
3194
- pending: "pending";
3195
- }>;
3196
- revision: z.ZodNumber;
3197
- resourceId: z.ZodUUID;
3198
- generation: z.ZodUUID;
3199
- }, z.core.$strict>>;
3200
- }, z.core.$strict>>;
3201
- wait: z.ZodOptional<z.ZodObject<{
3202
- id: z.ZodUUID;
3203
- workerIds: z.ZodArray<z.ZodUUID>;
3204
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
3205
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3206
- requestId: z.ZodUUID;
3207
- status: z.ZodEnum<{
3208
- cancelled: "cancelled";
3209
- "completed-without-reply": "completed-without-reply";
3210
- destroyed: "destroyed";
3211
- failed: "failed";
3212
- "human-fallback": "human-fallback";
3213
- replied: "replied";
3214
- "sender-closed": "sender-closed";
3215
- "timed-out": "timed-out";
3216
- }>;
3217
- observedAt: z.ZodISODateTime;
3218
- replyId: z.ZodOptional<z.ZodUUID>;
3219
- }, z.core.$strict>>>;
3220
- deadline: z.ZodISODateTime;
3221
- mode: z.ZodOptional<z.ZodEnum<{
3222
- all: "all";
3223
- any: "any";
3224
- one: "one";
3225
- }>>;
3226
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3227
- workerId: z.ZodUUID;
3228
- revision: z.ZodNumber;
3229
- }, z.core.$strict>>>;
3230
- reason: z.ZodOptional<z.ZodEnum<{
3231
- cancelled: "cancelled";
3232
- message: "message";
3233
- outcome: "outcome";
3234
- timeout: "timeout";
3235
- }>>;
3236
- phase: z.ZodEnum<{
3237
- parked: "parked";
3238
- registered: "registered";
3239
- "wake-pending": "wake-pending";
3240
- }>;
3241
- outcomes: z.ZodArray<z.ZodObject<{
3242
- workerId: z.ZodUUID;
3243
- status: z.ZodEnum<{
3244
- cancelled: "cancelled";
3245
- done: "done";
3246
- failed: "failed";
3247
- review: "review";
3248
- }>;
3249
- observedAt: z.ZodISODateTime;
3250
- summary: z.ZodOptional<z.ZodString>;
3251
- revision: z.ZodOptional<z.ZodNumber>;
3252
- }, z.core.$strict>>;
3253
- wakeId: z.ZodOptional<z.ZodUUID>;
3254
- }, z.core.$strict>>;
3255
- lastWait: z.ZodOptional<z.ZodObject<{
3256
- id: z.ZodUUID;
3257
- workerIds: z.ZodArray<z.ZodUUID>;
3258
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
3259
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3260
- requestId: z.ZodUUID;
3261
- status: z.ZodEnum<{
3262
- cancelled: "cancelled";
3263
- "completed-without-reply": "completed-without-reply";
3264
- destroyed: "destroyed";
3265
- failed: "failed";
3266
- "human-fallback": "human-fallback";
3267
- replied: "replied";
3268
- "sender-closed": "sender-closed";
3269
- "timed-out": "timed-out";
3270
- }>;
3271
- observedAt: z.ZodISODateTime;
3272
- replyId: z.ZodOptional<z.ZodUUID>;
3273
- }, z.core.$strict>>>;
3274
- deadline: z.ZodISODateTime;
3275
- mode: z.ZodOptional<z.ZodEnum<{
3276
- all: "all";
3277
- any: "any";
3278
- one: "one";
3279
- }>>;
3280
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3281
- workerId: z.ZodUUID;
3282
- revision: z.ZodNumber;
3283
- }, z.core.$strict>>>;
3284
- reason: z.ZodOptional<z.ZodEnum<{
3285
- cancelled: "cancelled";
3286
- message: "message";
3287
- outcome: "outcome";
3288
- timeout: "timeout";
3289
- }>>;
3290
- phase: z.ZodEnum<{
3291
- parked: "parked";
3292
- registered: "registered";
3293
- "wake-pending": "wake-pending";
3294
- }>;
3295
- outcomes: z.ZodArray<z.ZodObject<{
3296
- workerId: z.ZodUUID;
3297
- status: z.ZodEnum<{
3298
- cancelled: "cancelled";
3299
- done: "done";
3300
- failed: "failed";
3301
- review: "review";
3302
- }>;
3303
- observedAt: z.ZodISODateTime;
3304
- summary: z.ZodOptional<z.ZodString>;
3305
- revision: z.ZodOptional<z.ZodNumber>;
3306
- }, z.core.$strict>>;
3307
- wakeId: z.ZodOptional<z.ZodUUID>;
3308
- }, z.core.$strict>>;
3309
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
3310
- workerId: z.ZodUUID;
3311
- revision: z.ZodNumber;
3312
- snapshotId: z.ZodUUID;
3313
- observedAt: z.ZodISODateTime;
3314
- lastExecutionOutcome: z.ZodEnum<{
3315
- cancelled: "cancelled";
3316
- completed: "completed";
3317
- failed: "failed";
3318
- "review-ready": "review-ready";
3319
- running: "running";
3320
- }>;
3321
- previous: z.ZodOptional<z.ZodObject<{
3322
- revision: z.ZodNumber;
3323
- observedAt: z.ZodISODateTime;
3324
- lastExecutionOutcome: z.ZodEnum<{
3325
- cancelled: "cancelled";
3326
- completed: "completed";
3327
- failed: "failed";
3328
- "review-ready": "review-ready";
3329
- running: "running";
3330
- }>;
3331
- }, z.core.$strict>>;
3332
- }, z.core.$strict>>>;
3333
- finishRequestedAt: z.ZodOptional<z.ZodISODateTime>;
3334
- historyDeletion: z.ZodOptional<z.ZodLiteral<"pending">>;
3335
- completion: z.ZodOptional<z.ZodObject<{
3336
- phase: z.ZodEnum<{
3337
- attention: "attention";
3338
- waiting: "waiting";
3339
- }>;
3340
- waitId: z.ZodOptional<z.ZodUUID>;
3341
- }, z.core.$strict>>;
3342
- }, z.core.$strict>, z.ZodObject<{
3343
- role: z.ZodLiteral<"worker">;
3344
- wait: z.ZodOptional<z.ZodObject<{
3345
- id: z.ZodUUID;
3346
- workerIds: z.ZodArray<z.ZodUUID>;
3347
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
3348
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3349
- requestId: z.ZodUUID;
3350
- status: z.ZodEnum<{
3351
- cancelled: "cancelled";
3352
- "completed-without-reply": "completed-without-reply";
3353
- destroyed: "destroyed";
3354
- failed: "failed";
3355
- "human-fallback": "human-fallback";
3356
- replied: "replied";
3357
- "sender-closed": "sender-closed";
3358
- "timed-out": "timed-out";
3359
- }>;
3360
- observedAt: z.ZodISODateTime;
3361
- replyId: z.ZodOptional<z.ZodUUID>;
3362
- }, z.core.$strict>>>;
3363
- deadline: z.ZodISODateTime;
3364
- mode: z.ZodOptional<z.ZodEnum<{
3365
- all: "all";
3366
- any: "any";
3367
- one: "one";
3368
- }>>;
3369
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3370
- workerId: z.ZodUUID;
3371
- revision: z.ZodNumber;
3372
- }, z.core.$strict>>>;
3373
- reason: z.ZodOptional<z.ZodEnum<{
3374
- cancelled: "cancelled";
3375
- message: "message";
3376
- outcome: "outcome";
3377
- timeout: "timeout";
3378
- }>>;
3379
- phase: z.ZodEnum<{
3380
- parked: "parked";
3381
- registered: "registered";
3382
- "wake-pending": "wake-pending";
3383
- }>;
3384
- outcomes: z.ZodArray<z.ZodObject<{
3385
- workerId: z.ZodUUID;
3386
- status: z.ZodEnum<{
3387
- cancelled: "cancelled";
3388
- done: "done";
3389
- failed: "failed";
3390
- review: "review";
3391
- }>;
3392
- observedAt: z.ZodISODateTime;
3393
- summary: z.ZodOptional<z.ZodString>;
3394
- revision: z.ZodOptional<z.ZodNumber>;
3395
- }, z.core.$strict>>;
3396
- wakeId: z.ZodOptional<z.ZodUUID>;
3397
- }, z.core.$strict>>;
3398
- lastWait: z.ZodOptional<z.ZodObject<{
3399
- id: z.ZodUUID;
3400
- workerIds: z.ZodArray<z.ZodUUID>;
3401
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
3402
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
3403
- requestId: z.ZodUUID;
3404
- status: z.ZodEnum<{
3405
- cancelled: "cancelled";
3406
- "completed-without-reply": "completed-without-reply";
3407
- destroyed: "destroyed";
3408
- failed: "failed";
3409
- "human-fallback": "human-fallback";
3410
- replied: "replied";
3411
- "sender-closed": "sender-closed";
3412
- "timed-out": "timed-out";
3413
- }>;
3414
- observedAt: z.ZodISODateTime;
3415
- replyId: z.ZodOptional<z.ZodUUID>;
3416
- }, z.core.$strict>>>;
3417
- deadline: z.ZodISODateTime;
3418
- mode: z.ZodOptional<z.ZodEnum<{
3419
- all: "all";
3420
- any: "any";
3421
- one: "one";
3422
- }>>;
3423
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
3424
- workerId: z.ZodUUID;
3425
- revision: z.ZodNumber;
3426
- }, z.core.$strict>>>;
3427
- reason: z.ZodOptional<z.ZodEnum<{
3428
- cancelled: "cancelled";
3429
- message: "message";
3430
- outcome: "outcome";
3431
- timeout: "timeout";
3432
- }>>;
3433
- phase: z.ZodEnum<{
3434
- parked: "parked";
3435
- registered: "registered";
3436
- "wake-pending": "wake-pending";
3437
- }>;
3438
- outcomes: z.ZodArray<z.ZodObject<{
3439
- workerId: z.ZodUUID;
3440
- status: z.ZodEnum<{
3441
- cancelled: "cancelled";
3442
- done: "done";
3443
- failed: "failed";
3444
- review: "review";
3445
- }>;
3446
- observedAt: z.ZodISODateTime;
3447
- summary: z.ZodOptional<z.ZodString>;
3448
- revision: z.ZodOptional<z.ZodNumber>;
3449
- }, z.core.$strict>>;
3450
- wakeId: z.ZodOptional<z.ZodUUID>;
3451
- }, z.core.$strict>>;
3452
- permissions: z.ZodArray<z.ZodEnum<{
3453
- destroy: "destroy";
3454
- diff: "diff";
3455
- inspect: "inspect";
3456
- spawn: "spawn";
3457
- steer: "steer";
3458
- stop: "stop";
3459
- wait: "wait";
3460
- }>>;
3461
- parentRunId: z.ZodUUID;
3462
- workspace: z.ZodObject<{
3463
- ownerRunId: z.ZodUUID;
3464
- resourceId: z.ZodUUID;
3465
- kind: z.ZodLiteral<"owned-isolated">;
3466
- path: z.ZodString;
3467
- branch: z.ZodString;
3468
- baselineSha: z.ZodString;
3469
- }, z.core.$strict>;
3470
- destroy: z.ZodOptional<z.ZodObject<{
3471
- requestedAt: z.ZodISODateTime;
3472
- phase: z.ZodEnum<{
3473
- cleaning: "cleaning";
3474
- complete: "complete";
3475
- incomplete: "incomplete";
3476
- requested: "requested";
3477
- terminating: "terminating";
3478
- }>;
3479
- remaining: z.ZodArray<z.ZodEnum<{
3480
- branch: "branch";
3481
- process: "process";
3482
- worktree: "worktree";
3483
- }>>;
3484
- error: z.ZodOptional<z.ZodString>;
3485
- }, z.core.$strict>>;
3486
- context: z.ZodOptional<z.ZodObject<{
3487
- text: z.ZodOptional<z.ZodString>;
3488
- inputs: z.ZodArray<z.ZodObject<{
3489
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
3490
- kind: z.ZodLiteral<"baseline-file">;
3491
- path: z.ZodString;
3492
- }, z.core.$strict>, z.ZodObject<{
3493
- kind: z.ZodLiteral<"parent-attachment">;
3494
- id: z.ZodString;
3495
- }, z.core.$strict>], "kind">;
3496
- path: z.ZodString;
3497
- sha256: z.ZodString;
3498
- bytes: z.ZodNumber;
3499
- }, z.core.$strict>>;
3500
- }, z.core.$strict>>;
3501
- executionRevision: z.ZodOptional<z.ZodNumber>;
3502
- executionStartSeq: z.ZodOptional<z.ZodNumber>;
3503
- }, z.core.$strict>, z.ZodObject<{
3504
- role: z.ZodLiteral<"invalid">;
3505
- }, z.core.$strict>], "role">>;
3506
- agentInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
3507
- conversation: z.ZodOptional<z.ZodObject<{
3508
- senderRunId: z.ZodUUID;
3509
- recipientRunId: z.ZodUUID;
3510
- kind: z.ZodEnum<{
3511
- "follow-up": "follow-up";
3512
- progress: "progress";
3513
- reply: "reply";
3514
- request: "request";
3515
- }>;
3516
- requestId: z.ZodOptional<z.ZodUUID>;
3517
- }, z.core.$strict>>;
3518
- id: z.ZodUUID;
3519
- source: z.ZodEnum<{
3520
- agent: "agent";
3521
- lifecycle: "lifecycle";
3522
- }>;
3523
- parentRunId: z.ZodUUID;
3524
- text: z.ZodString;
3525
- createdAt: z.ZodISODateTime;
3526
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
3527
- consumedAt: z.ZodOptional<z.ZodISODateTime>;
3528
- awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
3529
- inboxClaim: z.ZodOptional<z.ZodObject<{
3530
- receiptId: z.ZodUUID;
3531
- generation: z.ZodUUID;
3532
- expiresAt: z.ZodISODateTime;
3533
- acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
3534
- memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
3535
- }, z.core.$strict>>;
3536
- }, z.core.$strict>>>;
3537
- ciWait: z.ZodOptional<z.ZodObject<{
3538
- prUrl: z.ZodString;
3539
- repository: z.ZodString;
3540
- prNumber: z.ZodNumber;
3541
- headSha: z.ZodString;
3542
- id: z.ZodUUID;
3543
- generation: z.ZodString;
3544
- turnId: z.ZodString;
3545
- timeoutSeconds: z.ZodNumber;
3546
- registeredAt: z.ZodISODateTime;
3547
- deadline: z.ZodISODateTime;
3548
- phase: z.ZodEnum<{
3549
- delivered: "delivered";
3550
- parked: "parked";
3551
- registered: "registered";
3552
- "wake-pending": "wake-pending";
3553
- withdrawn: "withdrawn";
3554
- }>;
3555
- result: z.ZodOptional<z.ZodObject<{
3556
- outcome: z.ZodEnum<{
3557
- cancelled: "cancelled";
3558
- deadline: "deadline";
3559
- error: "error";
3560
- failed: "failed";
3561
- head_changed: "head_changed";
3562
- no_checks: "no_checks";
3563
- passed: "passed";
3564
- skipped: "skipped";
3565
- }>;
3566
- headSha: z.ZodString;
3567
- observedHeadSha: z.ZodOptional<z.ZodString>;
3568
- observedAt: z.ZodISODateTime;
3569
- checks: z.ZodArray<z.ZodObject<{
3570
- name: z.ZodString;
3571
- state: z.ZodString;
3572
- link: z.ZodString;
3573
- }, z.core.$strict>>;
3574
- totalChecks: z.ZodNumber;
3575
- truncated: z.ZodBoolean;
3576
- diagnostic: z.ZodOptional<z.ZodString>;
3577
- }, z.core.$strict>>;
3578
- wakeId: z.ZodOptional<z.ZodString>;
3579
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
3580
- }, z.core.$strict>>;
3581
- lastCiWait: z.ZodOptional<z.ZodObject<{
3582
- prUrl: z.ZodString;
3583
- repository: z.ZodString;
3584
- prNumber: z.ZodNumber;
3585
- headSha: z.ZodString;
3586
- id: z.ZodUUID;
3587
- generation: z.ZodString;
3588
- turnId: z.ZodString;
3589
- timeoutSeconds: z.ZodNumber;
3590
- registeredAt: z.ZodISODateTime;
3591
- deadline: z.ZodISODateTime;
3592
- phase: z.ZodEnum<{
3593
- delivered: "delivered";
3594
- parked: "parked";
3595
- registered: "registered";
3596
- "wake-pending": "wake-pending";
3597
- withdrawn: "withdrawn";
3598
- }>;
3599
- result: z.ZodOptional<z.ZodObject<{
3600
- outcome: z.ZodEnum<{
3601
- cancelled: "cancelled";
3602
- deadline: "deadline";
3603
- error: "error";
3604
- failed: "failed";
3605
- head_changed: "head_changed";
3606
- no_checks: "no_checks";
3607
- passed: "passed";
3608
- skipped: "skipped";
3609
- }>;
3610
- headSha: z.ZodString;
3611
- observedHeadSha: z.ZodOptional<z.ZodString>;
3612
- observedAt: z.ZodISODateTime;
3613
- checks: z.ZodArray<z.ZodObject<{
3614
- name: z.ZodString;
3615
- state: z.ZodString;
3616
- link: z.ZodString;
3617
- }, z.core.$strict>>;
3618
- totalChecks: z.ZodNumber;
3619
- truncated: z.ZodBoolean;
3620
- diagnostic: z.ZodOptional<z.ZodString>;
3621
- }, z.core.$strict>>;
3622
- wakeId: z.ZodOptional<z.ZodString>;
3623
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
3624
- }, z.core.$strict>>;
3625
- lastCiWaitError: z.ZodOptional<z.ZodString>;
3626
- previewServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
3627
- port: z.ZodNumber;
3628
- command: z.ZodString;
3629
- cwd: z.ZodOptional<z.ZodString>;
3630
- label: z.ZodString;
3631
- path: z.ZodOptional<z.ZodString>;
3632
- registeredAt: z.ZodISODateTime;
3633
- answeredAtRegistration: z.ZodBoolean;
3634
- }, z.core.$strip>>>;
3635
- taskImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
3636
- model: z.ZodOptional<z.ZodString>;
3637
- effort: z.ZodOptional<z.ZodString>;
3638
- modelIdentity: z.ZodOptional<z.ZodString>;
3639
- runner: z.ZodOptional<z.ZodEnum<{
3640
- claude: "claude";
3641
- codex: "codex";
3642
- cursor: "cursor";
3643
- omp: "omp";
3644
- opencode: "opencode";
3645
- pi: "pi";
3646
- }>>;
3647
- agentProfile: z.ZodOptional<z.ZodString>;
3648
- systemPrompt: z.ZodOptional<z.ZodString>;
3649
- generateFollowups: z.ZodOptional<z.ZodBoolean>;
3650
- autonomous: z.ZodOptional<z.ZodBoolean>;
3651
- automation: z.ZodOptional<z.ZodObject<{
3652
- automationId: z.ZodString;
3653
- automationRevision: z.ZodNumber;
3654
- receiptId: z.ZodString;
3655
- event: z.ZodString;
3656
- githubUrl: z.ZodString;
3657
- }, z.core.$strip>>;
3658
- automationTrigger: z.ZodOptional<z.ZodObject<{
3659
- automationId: z.ZodString;
3660
- automationRevision: z.ZodNumber;
3661
- receiptId: z.ZodString;
3662
- trigger: z.ZodEnum<{
3663
- "catch-up": "catch-up";
3664
- manual: "manual";
3665
- schedule: "schedule";
3666
- }>;
3667
- occurrenceAt: z.ZodString;
3668
- }, z.core.$strip>>;
3669
- destroyRetry: z.ZodOptional<z.ZodObject<{
3670
- attempts: z.ZodNumber;
3671
- nextAt: z.ZodISODateTime;
3672
- needsAttention: z.ZodOptional<z.ZodLiteral<true>>;
3673
- }, z.core.$strict>>;
3674
- notify: z.ZodOptional<z.ZodBoolean>;
3675
- webhook: z.ZodOptional<z.ZodObject<{
3676
- lastDeliveredAt: z.ZodOptional<z.ZodString>;
3677
- lastError: z.ZodOptional<z.ZodString>;
3678
- }, z.core.$strip>>;
3679
- status: z.ZodEnum<{
3680
- cancelled: "cancelled";
3681
- done: "done";
3682
- failed: "failed";
3683
- queued: "queued";
3684
- review: "review";
3685
- running: "running";
3686
- waiting: "waiting";
3687
- }>;
3688
- activity: z.ZodOptional<z.ZodEnum<{
3689
- monitoring: "monitoring";
3690
- }>>;
3691
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
3692
- monitoringWakeAt: z.ZodOptional<z.ZodString>;
3693
- monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
3694
- autoResumeAt: z.ZodOptional<z.ZodString>;
3695
- autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
3696
- createdAt: z.ZodString;
3697
- startedAt: z.ZodOptional<z.ZodString>;
3698
- finishedAt: z.ZodOptional<z.ZodString>;
3699
- tokensUsed: z.ZodNumber;
3700
- inputTokens: z.ZodOptional<z.ZodNumber>;
3701
- outputTokens: z.ZodOptional<z.ZodNumber>;
3702
- costUsd: z.ZodOptional<z.ZodNumber>;
3703
- pullRequestUrl: z.ZodOptional<z.ZodString>;
3704
- referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
3705
- prNumber: z.ZodOptional<z.ZodNumber>;
3706
- issueNumber: z.ZodOptional<z.ZodNumber>;
3707
- referencedIssueNumberSeeded: z.ZodOptional<z.ZodBoolean>;
3708
- titleOrigin: z.ZodOptional<z.ZodEnum<{
3709
- auto: "auto";
3710
- marker: "marker";
3711
- user: "user";
3712
- }>>;
3713
- markerRefs: z.ZodOptional<z.ZodObject<{
3714
- pr: z.ZodOptional<z.ZodNumber>;
3715
- issue: z.ZodOptional<z.ZodNumber>;
3716
- }, z.core.$strip>>;
3717
- referencedPrCandidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
3718
- referencedIssueUrl: z.ZodOptional<z.ZodString>;
3719
- referencedIssueCandidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
3720
- worktree: z.ZodOptional<z.ZodLiteral<false>>;
3721
- worktreePath: z.ZodOptional<z.ZodString>;
3722
- branch: z.ZodOptional<z.ZodString>;
3723
- baseBranch: z.ZodOptional<z.ZodString>;
3724
- worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
3725
- worktreeSetup: z.ZodOptional<z.ZodObject<{
3726
- status: z.ZodEnum<{
3727
- done: "done";
3728
- failed: "failed";
3729
- running: "running";
3730
- }>;
3731
- startedAt: z.ZodString;
3732
- finishedAt: z.ZodOptional<z.ZodString>;
3733
- durationMs: z.ZodOptional<z.ZodNumber>;
3734
- error: z.ZodOptional<z.ZodString>;
3735
- }, z.core.$strip>>;
3736
- groupId: z.ZodOptional<z.ZodString>;
3737
- variant: z.ZodOptional<z.ZodString>;
3738
- clientRequestId: z.ZodOptional<z.ZodString>;
3739
- clientRequestHash: z.ZodOptional<z.ZodString>;
3740
- peakRssBytes: z.ZodOptional<z.ZodNumber>;
3741
- peakProcCount: z.ZodOptional<z.ZodNumber>;
3742
- archived: z.ZodBoolean;
3743
- archivedAt: z.ZodOptional<z.ZodString>;
3744
- pinned: z.ZodOptional<z.ZodBoolean>;
3745
- pinnedAt: z.ZodOptional<z.ZodString>;
3746
- seenAt: z.ZodOptional<z.ZodString>;
3747
- currentStepId: z.ZodOptional<z.ZodString>;
3748
- error: z.ZodOptional<z.ZodString>;
3749
- steps: z.ZodArray<z.ZodObject<{
3750
- id: z.ZodString;
3751
- name: z.ZodString;
3752
- kind: z.ZodEnum<{
3753
- agent: "agent";
3754
- check: "check";
3755
- }>;
3756
- status: z.ZodEnum<{
3757
- cancelled: "cancelled";
3758
- done: "done";
3759
- failed: "failed";
3760
- pending: "pending";
3761
- review: "review";
3762
- running: "running";
3763
- skipped: "skipped";
3764
- waiting: "waiting";
3765
- }>;
3766
- iterations: z.ZodNumber;
3767
- retriesUsed: z.ZodOptional<z.ZodNumber>;
3768
- tokensUsed: z.ZodNumber;
3769
- inputTokens: z.ZodOptional<z.ZodNumber>;
3770
- outputTokens: z.ZodOptional<z.ZodNumber>;
3771
- usageInvocationsStarted: z.ZodOptional<z.ZodNumber>;
3772
- usageInvocationsObserved: z.ZodOptional<z.ZodNumber>;
3773
- usageTurnsStarted: z.ZodOptional<z.ZodNumber>;
3774
- usageTurnsRecorded: z.ZodOptional<z.ZodNumber>;
3775
- usageInvocationEpoch: z.ZodOptional<z.ZodNumber>;
3776
- startedAt: z.ZodOptional<z.ZodString>;
3777
- finishedAt: z.ZodOptional<z.ZodString>;
3778
- error: z.ZodOptional<z.ZodString>;
3779
- sessionId: z.ZodOptional<z.ZodString>;
3780
- backend: z.ZodOptional<z.ZodEnum<{
3781
- claude: "claude";
3782
- codex: "codex";
3783
- cursor: "cursor";
3784
- omp: "omp";
3785
- opencode: "opencode";
3786
- pi: "pi";
3787
- }>>;
3788
- profileId: z.ZodOptional<z.ZodString>;
3789
- costUsd: z.ZodOptional<z.ZodNumber>;
3790
- synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
3791
- }, z.core.$strip>>;
3792
- workflowDef: z.ZodOptional<z.ZodObject<{
3793
- name: z.ZodString;
3794
- description: z.ZodOptional<z.ZodString>;
3795
- steps: z.ZodArray<z.ZodObject<{
3796
- id: z.ZodString;
3797
- name: z.ZodOptional<z.ZodString>;
3798
- prompt: z.ZodOptional<z.ZodString>;
3799
- skill: z.ZodOptional<z.ZodString>;
3800
- model: z.ZodOptional<z.ZodString>;
3801
- effort: z.ZodOptional<z.ZodString>;
3802
- timeoutMs: z.ZodOptional<z.ZodNumber>;
3803
- runner: z.ZodOptional<z.ZodEnum<{
3804
- claude: "claude";
3805
- codex: "codex";
3806
- cursor: "cursor";
3807
- omp: "omp";
3808
- opencode: "opencode";
3809
- pi: "pi";
3810
- }>>;
3811
- agentProfile: z.ZodOptional<z.ZodString>;
3812
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
3813
- bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
3814
- command: z.ZodOptional<z.ZodString>;
3815
- onFail: z.ZodOptional<z.ZodObject<{
3816
- retry: z.ZodString;
3817
- max: z.ZodDefault<z.ZodNumber>;
3818
- }, z.core.$strip>>;
3819
- }, z.core.$strip>>;
3820
- source: z.ZodEnum<{
3821
- "built-in": "built-in";
3822
- file: "file";
3823
- }>;
3824
- path: z.ZodOptional<z.ZodString>;
3825
- }, z.core.$strip>>;
3826
- }, z.core.$strip>>;
3827
- }, z.core.$strip>]>;
3828
- export type CreateRunResponse = z.infer<typeof createRunResponseSchema>;
3829
- /** `POST /runs/:id/cancel` — genuinely a boolean: an already-settled run answers 200 + `false`. */
3830
- export declare const cancelResponseSchema: z.ZodObject<{
3831
- cancelled: z.ZodBoolean;
3832
- }, z.core.$strip>;
3833
- export type CancelResponse = z.infer<typeof cancelResponseSchema>;
3834
- /**
3835
- * `DELETE /runs/:id/auto-resume` (spec 2026-08-03-auto-resume-after-usage-limit) — the per-task
3836
- * off switch for a pending usage-limit resume, next to the workspace-wide setting.
3837
- *
3838
- * `z.literal(true)`, not a boolean, and that IS the shape: the route is idempotent, so a run with
3839
- * nothing pending answers 200 as well — "this task will not resume itself" is equally true either
3840
- * way. Only an unknown run refuses, with 404.
3841
- */
3842
- export declare const cancelAutoResumeResponseSchema: z.ZodObject<{
3843
- cancelled: z.ZodLiteral<true>;
3844
- }, z.core.$strip>;
3845
- export type CancelAutoResumeResponse = z.infer<typeof cancelAutoResumeResponseSchema>;
3846
- /** Which finished runs a sweep takes: unpinned (the sidebar's Finished group), pinned (the pinned
3847
- * rows that have ended), or both when absent. Scheduled runs and owned workers are never swept. */
3848
- export declare const archiveFinishedScopeSchema: z.ZodEnum<{
3849
- pinned: "pinned";
3850
- unpinned: "unpinned";
3851
- }>;
3852
- export type ArchiveFinishedScope = z.infer<typeof archiveFinishedScopeSchema>;
3853
- /** `POST /runs/archive-finished` body — optional, an absent body sweeps both scopes. */
3854
- export declare const archiveFinishedRequestSchema: z.ZodObject<{
3855
- scope: z.ZodOptional<z.ZodEnum<{
3856
- pinned: "pinned";
3857
- unpinned: "unpinned";
3858
- }>>;
3859
- }, z.core.$strip>;
3860
- export type ArchiveFinishedRequest = z.infer<typeof archiveFinishedRequestSchema>;
3861
- /** `POST /runs/archive-finished` — `archived` counts every record flipped (owned workers
3862
- * included), `ids` the top-level runs the sweep picked, `pinnedIds` the subset that carried a
3863
- * pin before archiving dropped it (so an Undo can restore it). */
3864
- export declare const archiveFinishedResponseSchema: z.ZodObject<{
3865
- archived: z.ZodNumber;
3866
- ids: z.ZodArray<z.ZodString>;
3867
- pinnedIds: z.ZodArray<z.ZodString>;
3868
- }, z.core.$strip>;
3869
- export type ArchiveFinishedResponse = z.infer<typeof archiveFinishedResponseSchema>;
3870
- /** `POST /runs/read-all` — how many unread finished runs the sweep marked read. */
3871
- export declare const markAllReadResponseSchema: z.ZodObject<{
3872
- read: z.ZodNumber;
3873
- }, z.core.$strip>;
3874
- export type MarkAllReadResponse = z.infer<typeof markAllReadResponseSchema>;
3875
- /** `DELETE /runs/:id` — an active run is a 409 and an unknown one a 404, so this only ever
3876
- * reports success. */
3877
- export declare const deleteRunResponseSchema: z.ZodObject<{
3878
- deleted: z.ZodLiteral<true>;
3879
- }, z.core.$strip>;
3880
- export type DeleteRunResponse = z.infer<typeof deleteRunResponseSchema>;
3881
- /** `POST /runs/:id/finish` — "no open session" is a 409. */
3882
- export declare const finishResponseSchema: z.ZodObject<{
3883
- finished: z.ZodLiteral<true>;
3884
- }, z.core.$strip>;
3885
- export type FinishResponse = z.infer<typeof finishResponseSchema>;
3886
- /** `POST /runs/:id/continue` — a refusal to reopen is a 409 carrying the engine's reason. */
3887
- export declare const continueResponseSchema: z.ZodObject<{
3888
- continued: z.ZodLiteral<true>;
3889
- }, z.core.$strip>;
3890
- export type ContinueResponse = z.infer<typeof continueResponseSchema>;
3891
- /**
3892
- * `POST /runs/:id/pr` (201, spec 009) — the draft PR's URL; `dryRun` marks the CEZ_DRY_RUN fake
3893
- * (no push, no gh). Failure is a 409 whose `ApiError` carries the `manual` merge command instead.
3894
- *
3895
- * `dryRun` is REQUIRED: `createDraftPr`'s success outcome always sets it (`forge/types.ts`), so
3896
- * the key is always on the wire. The hand-written DTO had it optional.
3897
- */
3898
- export declare const createPrResponseSchema: z.ZodObject<{
3899
- url: z.ZodString;
3900
- dryRun: z.ZodBoolean;
3901
- }, z.core.$strip>;
3902
- export type CreatePrResponse = z.infer<typeof createPrResponseSchema>;
3903
- /**
3904
- * `POST /runs/:id/messages` — one of three shapes (#472), by how far the run has got:
3905
- * `delivered` (a live session took it), `queued` (still waiting for a slot, so it was stacked
3906
- * onto the prompt and the stored entry rides along), `deferred` (mid-spawn, so it was buffered
3907
- * and arrives as an ordinary follow-up turn once the session opens). Anything else is a 409.
3908
- *
3909
- * A union, not one object of optional flags: exactly one of the three keys is ever present, and
3910
- * the flattened DTO shape admitted `{}`. Pre-#472 clients only ever saw `delivered`.
3911
- */
3912
- export declare const messageResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
3913
- delivered: z.ZodLiteral<true>;
3914
- }, z.core.$strip>, z.ZodObject<{
3915
- queued: z.ZodLiteral<true>;
3916
- message: z.ZodObject<{
3917
- id: z.ZodString;
3918
- text: z.ZodString;
3919
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
3920
- createdAt: z.ZodString;
3921
- }, z.core.$strip>;
3922
- }, z.core.$strip>, z.ZodObject<{
3923
- deferred: z.ZodLiteral<true>;
3924
- }, z.core.$strip>]>;
3925
- export type MessageResponse = z.infer<typeof messageResponseSchema>;
3926
- /** `PATCH /runs/:id/queued-messages/:msgId` (#472) — the replaced entry. */
3927
- export declare const editQueuedMessageResponseSchema: z.ZodObject<{
3928
- message: z.ZodObject<{
3929
- id: z.ZodString;
3930
- text: z.ZodString;
3931
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
3932
- createdAt: z.ZodString;
3933
- }, z.core.$strip>;
3934
- }, z.core.$strip>;
3935
- export type EditQueuedMessageResponse = z.infer<typeof editQueuedMessageResponseSchema>;
3936
- /** `DELETE /runs/:id/queued-messages/:msgId` (#472) — `409 run already started` otherwise. */
3937
- export declare const removeQueuedMessageResponseSchema: z.ZodObject<{
3938
- removed: z.ZodLiteral<true>;
3939
- }, z.core.$strip>;
3940
- export type RemoveQueuedMessageResponse = z.infer<typeof removeQueuedMessageResponseSchema>;
3941
- /**
3942
- * `POST /runs/:id/open-in-cli` — a terminal was spawned with `command` running in it. With no
3943
- * terminal emulator the server answers 409 and the `ApiError` carries the full `cd … && <command>`
3944
- * for the clipboard fallback.
3945
- */
3946
- export declare const openInCliResponseSchema: z.ZodObject<{
3947
- opened: z.ZodLiteral<true>;
3948
- command: z.ZodString;
3949
- }, z.core.$strip>;
3950
- export type OpenInCliResponse = z.infer<typeof openInCliResponseSchema>;
3951
- /** `POST /runs/:id/remove-worktree` — per-row delete in the worktrees panel (#483). */
3952
- export declare const removeWorktreeResponseSchema: z.ZodObject<{
3953
- removed: z.ZodLiteral<true>;
3954
- }, z.core.$strip>;
3955
- export type RemoveWorktreeResponse = z.infer<typeof removeWorktreeResponseSchema>;
3956
- /** `POST /runs/:id/git/commit` — `git add -A && git commit` in the run's worktree. */
3957
- export declare const gitCommitResponseSchema: z.ZodObject<{
3958
- committed: z.ZodLiteral<true>;
3959
- sha: z.ZodString;
3960
- }, z.core.$strip>;
3961
- export type GitCommitResponse = z.infer<typeof gitCommitResponseSchema>;
3962
- /** `POST /runs/:id/git/push` — push the worktree's branch, setting upstream if it has none. */
3963
- export declare const gitPushResponseSchema: z.ZodObject<{
3964
- pushed: z.ZodLiteral<true>;
3965
- branch: z.ZodString;
3966
- remote: z.ZodString;
3967
- upstreamSet: z.ZodBoolean;
3968
- }, z.core.$strip>;
3969
- export type GitPushResponse = z.infer<typeof gitPushResponseSchema>;
3970
- /** A commit a run made on its worktree branch. */
3971
- export declare const runCommitSchema: z.ZodObject<{
3972
- sha: z.ZodString;
3973
- subject: z.ZodString;
3974
- author: z.ZodString;
3975
- when: z.ZodString;
3976
- }, z.core.$strip>;
3977
- export type RunCommit = z.infer<typeof runCommitSchema>;
3978
- /** `GET /runs/:id/commits` — `<base>..HEAD` on the worktree branch, newest first. */
3979
- export declare const runCommitsResponseSchema: z.ZodObject<{
3980
- commits: z.ZodArray<z.ZodObject<{
3981
- sha: z.ZodString;
3982
- subject: z.ZodString;
3983
- author: z.ZodString;
3984
- when: z.ZodString;
3985
- }, z.core.$strip>>;
3986
- }, z.core.$strip>;
3987
- export type RunCommitsResponse = z.infer<typeof runCommitsResponseSchema>;
3988
- /**
3989
- * One variant column of the compare view.
3990
- *
3991
- * CAREFUL: `diffStat` here is the raw `git diff --stat` TEXT the server runs in the variant's
3992
- * worktree — a different thing from the numeric `RunRecord.diffStat`. `''` when the worktree
3993
- * is gone.
3994
- */
3995
- export declare const groupVariantSchema: z.ZodObject<{
3996
- id: z.ZodString;
3997
- variant: z.ZodString;
3998
- title: z.ZodString;
3999
- status: z.ZodEnum<{
4000
- cancelled: "cancelled";
4001
- done: "done";
4002
- failed: "failed";
4003
- queued: "queued";
4004
- review: "review";
4005
- running: "running";
4006
- waiting: "waiting";
4007
- }>;
4008
- archived: z.ZodBoolean;
4009
- tokensUsed: z.ZodNumber;
4010
- inputTokens: z.ZodOptional<z.ZodNumber>;
4011
- outputTokens: z.ZodOptional<z.ZodNumber>;
4012
- costUsd: z.ZodOptional<z.ZodNumber>;
4013
- diffStat: z.ZodString;
4014
- handoffExcerpt: z.ZodString;
4015
- }, z.core.$strip>;
4016
- export type GroupVariant = z.infer<typeof groupVariantSchema>;
4017
- /** `GET /groups/:groupId` — every run sharing a groupId, side by side. */
4018
- export declare const groupResponseSchema: z.ZodObject<{
4019
- groupId: z.ZodString;
4020
- runs: z.ZodArray<z.ZodObject<{
4021
- id: z.ZodString;
4022
- variant: z.ZodString;
4023
- title: z.ZodString;
4024
- status: z.ZodEnum<{
4025
- cancelled: "cancelled";
4026
- done: "done";
4027
- failed: "failed";
4028
- queued: "queued";
4029
- review: "review";
4030
- running: "running";
4031
- waiting: "waiting";
4032
- }>;
4033
- archived: z.ZodBoolean;
4034
- tokensUsed: z.ZodNumber;
4035
- inputTokens: z.ZodOptional<z.ZodNumber>;
4036
- outputTokens: z.ZodOptional<z.ZodNumber>;
4037
- costUsd: z.ZodOptional<z.ZodNumber>;
4038
- diffStat: z.ZodString;
4039
- handoffExcerpt: z.ZodString;
4040
- }, z.core.$strip>>;
4041
- }, z.core.$strip>;
4042
- export type GroupResponse = z.infer<typeof groupResponseSchema>;
4043
- /**
4044
- * `POST /groups/:groupId/pick` — the winner (parked at `review` when it has a diff); the losers
4045
- * were cancelled if alive, archived, and their worktrees + branches removed.
4046
- *
4047
- * `winner` is OPTIONAL because that is what the wire says: `store.getRun(id)` can miss, and
4048
- * `JSON.stringify` drops a key whose value is `undefined`. The handler spreads the key in
4049
- * conditionally (`server.ts`, the `/groups/:groupId/pick` route) so its own type says the same
4050
- * thing — the two-way check in `contract-parity.workflows.test.ts` is what pins that.
4051
- */
4052
- export declare const pickVariantResponseSchema: z.ZodObject<{
4053
- winner: z.ZodOptional<z.ZodObject<{
4054
- id: z.ZodString;
4055
- title: z.ZodString;
4056
- titleSummary: z.ZodOptional<z.ZodString>;
4057
- diffStat: z.ZodOptional<z.ZodObject<{
4058
- adds: z.ZodNumber;
4059
- dels: z.ZodNumber;
4060
- files: z.ZodNumber;
4061
- repointed: z.ZodOptional<z.ZodBoolean>;
4062
- }, z.core.$strip>>;
4063
- workflow: z.ZodString;
4064
- task: z.ZodString;
4065
- queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
4066
- id: z.ZodString;
4067
- text: z.ZodString;
4068
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
4069
- createdAt: z.ZodString;
4070
- }, z.core.$strip>>>;
4071
- stopping: z.ZodOptional<z.ZodBoolean>;
4072
- continuationMessage: z.ZodOptional<z.ZodObject<{
4073
- id: z.ZodString;
4074
- text: z.ZodString;
4075
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
4076
- createdAt: z.ZodString;
4077
- origin: z.ZodOptional<z.ZodEnum<{
4078
- human: "human";
4079
- lifecycle: "lifecycle";
4080
- }>>;
4081
- agentInputId: z.ZodOptional<z.ZodUUID>;
4082
- }, z.core.$strip>>;
4083
- invalidAsk: z.ZodOptional<z.ZodBoolean>;
4084
- delegation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
4085
- role: z.ZodLiteral<"root">;
4086
- conversation: z.ZodOptional<z.ZodObject<{
4087
- messages: z.ZodArray<z.ZodObject<{
4088
- senderRunId: z.ZodUUID;
4089
- recipientRunId: z.ZodUUID;
4090
- kind: z.ZodEnum<{
4091
- "follow-up": "follow-up";
4092
- progress: "progress";
4093
- reply: "reply";
4094
- request: "request";
4095
- }>;
4096
- requestId: z.ZodOptional<z.ZodUUID>;
4097
- id: z.ZodUUID;
4098
- text: z.ZodString;
4099
- createdAt: z.ZodISODateTime;
4100
- deadline: z.ZodOptional<z.ZodISODateTime>;
4101
- requestHash: z.ZodString;
4102
- state: z.ZodEnum<{
4103
- accepted: "accepted";
4104
- "continuation-required": "continuation-required";
4105
- destroyed: "destroyed";
4106
- late: "late";
4107
- }>;
4108
- resumed: z.ZodOptional<z.ZodLiteral<true>>;
4109
- instruction: z.ZodOptional<z.ZodString>;
4110
- question: z.ZodOptional<z.ZodObject<{
4111
- questions: z.ZodArray<z.ZodObject<{
4112
- id: z.ZodOptional<z.ZodString>;
4113
- header: z.ZodString;
4114
- question: z.ZodString;
4115
- options: z.ZodArray<z.ZodObject<{
4116
- label: z.ZodString;
4117
- description: z.ZodOptional<z.ZodString>;
4118
- }, z.core.$strict>>;
4119
- multiSelect: z.ZodOptional<z.ZodBoolean>;
4120
- }, z.core.$strict>>;
4121
- }, z.core.$strict>>;
4122
- }, z.core.$strict>>;
4123
- outcomes: z.ZodArray<z.ZodObject<{
4124
- requestId: z.ZodUUID;
4125
- status: z.ZodEnum<{
4126
- cancelled: "cancelled";
4127
- "completed-without-reply": "completed-without-reply";
4128
- destroyed: "destroyed";
4129
- failed: "failed";
4130
- "human-fallback": "human-fallback";
4131
- replied: "replied";
4132
- "sender-closed": "sender-closed";
4133
- "timed-out": "timed-out";
4134
- }>;
4135
- observedAt: z.ZodISODateTime;
4136
- replyId: z.ZodOptional<z.ZodUUID>;
4137
- }, z.core.$strict>>;
4138
- }, z.core.$strict>>;
4139
- permissions: z.ZodArray<z.ZodEnum<{
4140
- destroy: "destroy";
4141
- diff: "diff";
4142
- inspect: "inspect";
4143
- spawn: "spawn";
4144
- steer: "steer";
4145
- stop: "stop";
4146
- wait: "wait";
4147
- }>>;
4148
- receipts: z.ZodArray<z.ZodObject<{
4149
- requestId: z.ZodUUID;
4150
- workerId: z.ZodUUID;
4151
- requestHash: z.ZodString;
4152
- deletion: z.ZodOptional<z.ZodObject<{
4153
- phase: z.ZodEnum<{
4154
- complete: "complete";
4155
- pending: "pending";
4156
- }>;
4157
- revision: z.ZodNumber;
4158
- resourceId: z.ZodUUID;
4159
- generation: z.ZodUUID;
4160
- }, z.core.$strict>>;
4161
- }, z.core.$strict>>;
4162
- wait: z.ZodOptional<z.ZodObject<{
4163
- id: z.ZodUUID;
4164
- workerIds: z.ZodArray<z.ZodUUID>;
4165
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4166
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4167
- requestId: z.ZodUUID;
4168
- status: z.ZodEnum<{
4169
- cancelled: "cancelled";
4170
- "completed-without-reply": "completed-without-reply";
4171
- destroyed: "destroyed";
4172
- failed: "failed";
4173
- "human-fallback": "human-fallback";
4174
- replied: "replied";
4175
- "sender-closed": "sender-closed";
4176
- "timed-out": "timed-out";
4177
- }>;
4178
- observedAt: z.ZodISODateTime;
4179
- replyId: z.ZodOptional<z.ZodUUID>;
4180
- }, z.core.$strict>>>;
4181
- deadline: z.ZodISODateTime;
4182
- mode: z.ZodOptional<z.ZodEnum<{
4183
- all: "all";
4184
- any: "any";
4185
- one: "one";
4186
- }>>;
4187
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4188
- workerId: z.ZodUUID;
4189
- revision: z.ZodNumber;
4190
- }, z.core.$strict>>>;
4191
- reason: z.ZodOptional<z.ZodEnum<{
4192
- cancelled: "cancelled";
4193
- message: "message";
4194
- outcome: "outcome";
4195
- timeout: "timeout";
4196
- }>>;
4197
- phase: z.ZodEnum<{
4198
- parked: "parked";
4199
- registered: "registered";
4200
- "wake-pending": "wake-pending";
4201
- }>;
4202
- outcomes: z.ZodArray<z.ZodObject<{
4203
- workerId: z.ZodUUID;
4204
- status: z.ZodEnum<{
4205
- cancelled: "cancelled";
4206
- done: "done";
4207
- failed: "failed";
4208
- review: "review";
4209
- }>;
4210
- observedAt: z.ZodISODateTime;
4211
- summary: z.ZodOptional<z.ZodString>;
4212
- revision: z.ZodOptional<z.ZodNumber>;
4213
- }, z.core.$strict>>;
4214
- wakeId: z.ZodOptional<z.ZodUUID>;
4215
- }, z.core.$strict>>;
4216
- lastWait: z.ZodOptional<z.ZodObject<{
4217
- id: z.ZodUUID;
4218
- workerIds: z.ZodArray<z.ZodUUID>;
4219
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4220
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4221
- requestId: z.ZodUUID;
4222
- status: z.ZodEnum<{
4223
- cancelled: "cancelled";
4224
- "completed-without-reply": "completed-without-reply";
4225
- destroyed: "destroyed";
4226
- failed: "failed";
4227
- "human-fallback": "human-fallback";
4228
- replied: "replied";
4229
- "sender-closed": "sender-closed";
4230
- "timed-out": "timed-out";
4231
- }>;
4232
- observedAt: z.ZodISODateTime;
4233
- replyId: z.ZodOptional<z.ZodUUID>;
4234
- }, z.core.$strict>>>;
4235
- deadline: z.ZodISODateTime;
4236
- mode: z.ZodOptional<z.ZodEnum<{
4237
- all: "all";
4238
- any: "any";
4239
- one: "one";
4240
- }>>;
4241
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4242
- workerId: z.ZodUUID;
4243
- revision: z.ZodNumber;
4244
- }, z.core.$strict>>>;
4245
- reason: z.ZodOptional<z.ZodEnum<{
4246
- cancelled: "cancelled";
4247
- message: "message";
4248
- outcome: "outcome";
4249
- timeout: "timeout";
4250
- }>>;
4251
- phase: z.ZodEnum<{
4252
- parked: "parked";
4253
- registered: "registered";
4254
- "wake-pending": "wake-pending";
4255
- }>;
4256
- outcomes: z.ZodArray<z.ZodObject<{
4257
- workerId: z.ZodUUID;
4258
- status: z.ZodEnum<{
4259
- cancelled: "cancelled";
4260
- done: "done";
4261
- failed: "failed";
4262
- review: "review";
4263
- }>;
4264
- observedAt: z.ZodISODateTime;
4265
- summary: z.ZodOptional<z.ZodString>;
4266
- revision: z.ZodOptional<z.ZodNumber>;
4267
- }, z.core.$strict>>;
4268
- wakeId: z.ZodOptional<z.ZodUUID>;
4269
- }, z.core.$strict>>;
4270
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
4271
- workerId: z.ZodUUID;
4272
- revision: z.ZodNumber;
4273
- snapshotId: z.ZodUUID;
4274
- observedAt: z.ZodISODateTime;
4275
- lastExecutionOutcome: z.ZodEnum<{
4276
- cancelled: "cancelled";
4277
- completed: "completed";
4278
- failed: "failed";
4279
- "review-ready": "review-ready";
4280
- running: "running";
4281
- }>;
4282
- previous: z.ZodOptional<z.ZodObject<{
4283
- revision: z.ZodNumber;
4284
- observedAt: z.ZodISODateTime;
4285
- lastExecutionOutcome: z.ZodEnum<{
4286
- cancelled: "cancelled";
4287
- completed: "completed";
4288
- failed: "failed";
4289
- "review-ready": "review-ready";
4290
- running: "running";
4291
- }>;
4292
- }, z.core.$strict>>;
4293
- }, z.core.$strict>>>;
4294
- finishRequestedAt: z.ZodOptional<z.ZodISODateTime>;
4295
- historyDeletion: z.ZodOptional<z.ZodLiteral<"pending">>;
4296
- completion: z.ZodOptional<z.ZodObject<{
4297
- phase: z.ZodEnum<{
4298
- attention: "attention";
4299
- waiting: "waiting";
4300
- }>;
4301
- waitId: z.ZodOptional<z.ZodUUID>;
4302
- }, z.core.$strict>>;
4303
- }, z.core.$strict>, z.ZodObject<{
4304
- role: z.ZodLiteral<"worker">;
4305
- wait: z.ZodOptional<z.ZodObject<{
4306
- id: z.ZodUUID;
4307
- workerIds: z.ZodArray<z.ZodUUID>;
4308
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4309
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4310
- requestId: z.ZodUUID;
4311
- status: z.ZodEnum<{
4312
- cancelled: "cancelled";
4313
- "completed-without-reply": "completed-without-reply";
4314
- destroyed: "destroyed";
4315
- failed: "failed";
4316
- "human-fallback": "human-fallback";
4317
- replied: "replied";
4318
- "sender-closed": "sender-closed";
4319
- "timed-out": "timed-out";
4320
- }>;
4321
- observedAt: z.ZodISODateTime;
4322
- replyId: z.ZodOptional<z.ZodUUID>;
4323
- }, z.core.$strict>>>;
4324
- deadline: z.ZodISODateTime;
4325
- mode: z.ZodOptional<z.ZodEnum<{
4326
- all: "all";
4327
- any: "any";
4328
- one: "one";
4329
- }>>;
4330
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4331
- workerId: z.ZodUUID;
4332
- revision: z.ZodNumber;
4333
- }, z.core.$strict>>>;
4334
- reason: z.ZodOptional<z.ZodEnum<{
4335
- cancelled: "cancelled";
4336
- message: "message";
4337
- outcome: "outcome";
4338
- timeout: "timeout";
4339
- }>>;
4340
- phase: z.ZodEnum<{
4341
- parked: "parked";
4342
- registered: "registered";
4343
- "wake-pending": "wake-pending";
4344
- }>;
4345
- outcomes: z.ZodArray<z.ZodObject<{
4346
- workerId: z.ZodUUID;
4347
- status: z.ZodEnum<{
4348
- cancelled: "cancelled";
4349
- done: "done";
4350
- failed: "failed";
4351
- review: "review";
4352
- }>;
4353
- observedAt: z.ZodISODateTime;
4354
- summary: z.ZodOptional<z.ZodString>;
4355
- revision: z.ZodOptional<z.ZodNumber>;
4356
- }, z.core.$strict>>;
4357
- wakeId: z.ZodOptional<z.ZodUUID>;
4358
- }, z.core.$strict>>;
4359
- lastWait: z.ZodOptional<z.ZodObject<{
4360
- id: z.ZodUUID;
4361
- workerIds: z.ZodArray<z.ZodUUID>;
4362
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4363
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
4364
- requestId: z.ZodUUID;
4365
- status: z.ZodEnum<{
4366
- cancelled: "cancelled";
4367
- "completed-without-reply": "completed-without-reply";
4368
- destroyed: "destroyed";
4369
- failed: "failed";
4370
- "human-fallback": "human-fallback";
4371
- replied: "replied";
4372
- "sender-closed": "sender-closed";
4373
- "timed-out": "timed-out";
4374
- }>;
4375
- observedAt: z.ZodISODateTime;
4376
- replyId: z.ZodOptional<z.ZodUUID>;
4377
- }, z.core.$strict>>>;
4378
- deadline: z.ZodISODateTime;
4379
- mode: z.ZodOptional<z.ZodEnum<{
4380
- all: "all";
4381
- any: "any";
4382
- one: "one";
4383
- }>>;
4384
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
4385
- workerId: z.ZodUUID;
4386
- revision: z.ZodNumber;
4387
- }, z.core.$strict>>>;
4388
- reason: z.ZodOptional<z.ZodEnum<{
4389
- cancelled: "cancelled";
4390
- message: "message";
4391
- outcome: "outcome";
4392
- timeout: "timeout";
4393
- }>>;
4394
- phase: z.ZodEnum<{
4395
- parked: "parked";
4396
- registered: "registered";
4397
- "wake-pending": "wake-pending";
4398
- }>;
4399
- outcomes: z.ZodArray<z.ZodObject<{
4400
- workerId: z.ZodUUID;
4401
- status: z.ZodEnum<{
4402
- cancelled: "cancelled";
4403
- done: "done";
4404
- failed: "failed";
4405
- review: "review";
4406
- }>;
4407
- observedAt: z.ZodISODateTime;
4408
- summary: z.ZodOptional<z.ZodString>;
4409
- revision: z.ZodOptional<z.ZodNumber>;
4410
- }, z.core.$strict>>;
4411
- wakeId: z.ZodOptional<z.ZodUUID>;
4412
- }, z.core.$strict>>;
4413
- permissions: z.ZodArray<z.ZodEnum<{
4414
- destroy: "destroy";
4415
- diff: "diff";
4416
- inspect: "inspect";
4417
- spawn: "spawn";
4418
- steer: "steer";
4419
- stop: "stop";
4420
- wait: "wait";
4421
- }>>;
4422
- parentRunId: z.ZodUUID;
4423
- workspace: z.ZodObject<{
4424
- ownerRunId: z.ZodUUID;
4425
- resourceId: z.ZodUUID;
4426
- kind: z.ZodLiteral<"owned-isolated">;
4427
- path: z.ZodString;
4428
- branch: z.ZodString;
4429
- baselineSha: z.ZodString;
4430
- }, z.core.$strict>;
4431
- destroy: z.ZodOptional<z.ZodObject<{
4432
- requestedAt: z.ZodISODateTime;
4433
- phase: z.ZodEnum<{
4434
- cleaning: "cleaning";
4435
- complete: "complete";
4436
- incomplete: "incomplete";
4437
- requested: "requested";
4438
- terminating: "terminating";
4439
- }>;
4440
- remaining: z.ZodArray<z.ZodEnum<{
4441
- branch: "branch";
4442
- process: "process";
4443
- worktree: "worktree";
4444
- }>>;
4445
- error: z.ZodOptional<z.ZodString>;
4446
- }, z.core.$strict>>;
4447
- context: z.ZodOptional<z.ZodObject<{
4448
- text: z.ZodOptional<z.ZodString>;
4449
- inputs: z.ZodArray<z.ZodObject<{
4450
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
4451
- kind: z.ZodLiteral<"baseline-file">;
4452
- path: z.ZodString;
4453
- }, z.core.$strict>, z.ZodObject<{
4454
- kind: z.ZodLiteral<"parent-attachment">;
4455
- id: z.ZodString;
4456
- }, z.core.$strict>], "kind">;
4457
- path: z.ZodString;
4458
- sha256: z.ZodString;
4459
- bytes: z.ZodNumber;
4460
- }, z.core.$strict>>;
4461
- }, z.core.$strict>>;
4462
- executionRevision: z.ZodOptional<z.ZodNumber>;
4463
- executionStartSeq: z.ZodOptional<z.ZodNumber>;
4464
- }, z.core.$strict>, z.ZodObject<{
4465
- role: z.ZodLiteral<"invalid">;
4466
- }, z.core.$strict>], "role">>;
4467
- agentInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4468
- conversation: z.ZodOptional<z.ZodObject<{
4469
- senderRunId: z.ZodUUID;
4470
- recipientRunId: z.ZodUUID;
4471
- kind: z.ZodEnum<{
4472
- "follow-up": "follow-up";
4473
- progress: "progress";
4474
- reply: "reply";
4475
- request: "request";
4476
- }>;
4477
- requestId: z.ZodOptional<z.ZodUUID>;
4478
- }, z.core.$strict>>;
4479
- id: z.ZodUUID;
4480
- source: z.ZodEnum<{
4481
- agent: "agent";
4482
- lifecycle: "lifecycle";
4483
- }>;
4484
- parentRunId: z.ZodUUID;
4485
- text: z.ZodString;
4486
- createdAt: z.ZodISODateTime;
4487
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4488
- consumedAt: z.ZodOptional<z.ZodISODateTime>;
4489
- awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
4490
- inboxClaim: z.ZodOptional<z.ZodObject<{
4491
- receiptId: z.ZodUUID;
4492
- generation: z.ZodUUID;
4493
- expiresAt: z.ZodISODateTime;
4494
- acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
4495
- memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
4496
- }, z.core.$strict>>;
4497
- }, z.core.$strict>>>;
4498
- ciWait: z.ZodOptional<z.ZodObject<{
4499
- prUrl: z.ZodString;
4500
- repository: z.ZodString;
4501
- prNumber: z.ZodNumber;
4502
- headSha: z.ZodString;
4503
- id: z.ZodUUID;
4504
- generation: z.ZodString;
4505
- turnId: z.ZodString;
4506
- timeoutSeconds: z.ZodNumber;
4507
- registeredAt: z.ZodISODateTime;
4508
- deadline: z.ZodISODateTime;
4509
- phase: z.ZodEnum<{
4510
- delivered: "delivered";
4511
- parked: "parked";
4512
- registered: "registered";
4513
- "wake-pending": "wake-pending";
4514
- withdrawn: "withdrawn";
4515
- }>;
4516
- result: z.ZodOptional<z.ZodObject<{
4517
- outcome: z.ZodEnum<{
4518
- cancelled: "cancelled";
4519
- deadline: "deadline";
4520
- error: "error";
4521
- failed: "failed";
4522
- head_changed: "head_changed";
4523
- no_checks: "no_checks";
4524
- passed: "passed";
4525
- skipped: "skipped";
4526
- }>;
4527
- headSha: z.ZodString;
4528
- observedHeadSha: z.ZodOptional<z.ZodString>;
4529
- observedAt: z.ZodISODateTime;
4530
- checks: z.ZodArray<z.ZodObject<{
4531
- name: z.ZodString;
4532
- state: z.ZodString;
4533
- link: z.ZodString;
4534
- }, z.core.$strict>>;
4535
- totalChecks: z.ZodNumber;
4536
- truncated: z.ZodBoolean;
4537
- diagnostic: z.ZodOptional<z.ZodString>;
4538
- }, z.core.$strict>>;
4539
- wakeId: z.ZodOptional<z.ZodString>;
4540
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4541
- }, z.core.$strict>>;
4542
- lastCiWait: z.ZodOptional<z.ZodObject<{
4543
- prUrl: z.ZodString;
4544
- repository: z.ZodString;
4545
- prNumber: z.ZodNumber;
4546
- headSha: z.ZodString;
4547
- id: z.ZodUUID;
4548
- generation: z.ZodString;
4549
- turnId: z.ZodString;
4550
- timeoutSeconds: z.ZodNumber;
4551
- registeredAt: z.ZodISODateTime;
4552
- deadline: z.ZodISODateTime;
4553
- phase: z.ZodEnum<{
4554
- delivered: "delivered";
4555
- parked: "parked";
4556
- registered: "registered";
4557
- "wake-pending": "wake-pending";
4558
- withdrawn: "withdrawn";
4559
- }>;
4560
- result: z.ZodOptional<z.ZodObject<{
4561
- outcome: z.ZodEnum<{
4562
- cancelled: "cancelled";
4563
- deadline: "deadline";
4564
- error: "error";
4565
- failed: "failed";
4566
- head_changed: "head_changed";
4567
- no_checks: "no_checks";
4568
- passed: "passed";
4569
- skipped: "skipped";
4570
- }>;
4571
- headSha: z.ZodString;
4572
- observedHeadSha: z.ZodOptional<z.ZodString>;
4573
- observedAt: z.ZodISODateTime;
4574
- checks: z.ZodArray<z.ZodObject<{
4575
- name: z.ZodString;
4576
- state: z.ZodString;
4577
- link: z.ZodString;
4578
- }, z.core.$strict>>;
4579
- totalChecks: z.ZodNumber;
4580
- truncated: z.ZodBoolean;
4581
- diagnostic: z.ZodOptional<z.ZodString>;
4582
- }, z.core.$strict>>;
4583
- wakeId: z.ZodOptional<z.ZodString>;
4584
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
4585
- }, z.core.$strict>>;
4586
- lastCiWaitError: z.ZodOptional<z.ZodString>;
4587
- previewServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
4588
- port: z.ZodNumber;
4589
- command: z.ZodString;
4590
- cwd: z.ZodOptional<z.ZodString>;
4591
- label: z.ZodString;
4592
- path: z.ZodOptional<z.ZodString>;
4593
- registeredAt: z.ZodISODateTime;
4594
- answeredAtRegistration: z.ZodBoolean;
4595
- }, z.core.$strip>>>;
4596
- taskImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
4597
- model: z.ZodOptional<z.ZodString>;
4598
- effort: z.ZodOptional<z.ZodString>;
4599
- modelIdentity: z.ZodOptional<z.ZodString>;
4600
- runner: z.ZodOptional<z.ZodEnum<{
4601
- claude: "claude";
4602
- codex: "codex";
4603
- cursor: "cursor";
4604
- omp: "omp";
4605
- opencode: "opencode";
4606
- pi: "pi";
4607
- }>>;
4608
- agentProfile: z.ZodOptional<z.ZodString>;
4609
- systemPrompt: z.ZodOptional<z.ZodString>;
4610
- generateFollowups: z.ZodOptional<z.ZodBoolean>;
4611
- autonomous: z.ZodOptional<z.ZodBoolean>;
4612
- automation: z.ZodOptional<z.ZodObject<{
4613
- automationId: z.ZodString;
4614
- automationRevision: z.ZodNumber;
4615
- receiptId: z.ZodString;
4616
- event: z.ZodString;
4617
- githubUrl: z.ZodString;
4618
- }, z.core.$strip>>;
4619
- automationTrigger: z.ZodOptional<z.ZodObject<{
4620
- automationId: z.ZodString;
4621
- automationRevision: z.ZodNumber;
4622
- receiptId: z.ZodString;
4623
- trigger: z.ZodEnum<{
4624
- "catch-up": "catch-up";
4625
- manual: "manual";
4626
- schedule: "schedule";
4627
- }>;
4628
- occurrenceAt: z.ZodString;
4629
- }, z.core.$strip>>;
4630
- destroyRetry: z.ZodOptional<z.ZodObject<{
4631
- attempts: z.ZodNumber;
4632
- nextAt: z.ZodISODateTime;
4633
- needsAttention: z.ZodOptional<z.ZodLiteral<true>>;
4634
- }, z.core.$strict>>;
4635
- notify: z.ZodOptional<z.ZodBoolean>;
4636
- webhook: z.ZodOptional<z.ZodObject<{
4637
- lastDeliveredAt: z.ZodOptional<z.ZodString>;
4638
- lastError: z.ZodOptional<z.ZodString>;
4639
- }, z.core.$strip>>;
4640
- status: z.ZodEnum<{
4641
- cancelled: "cancelled";
4642
- done: "done";
4643
- failed: "failed";
4644
- queued: "queued";
4645
- review: "review";
4646
- running: "running";
4647
- waiting: "waiting";
4648
- }>;
4649
- activity: z.ZodOptional<z.ZodEnum<{
4650
- monitoring: "monitoring";
4651
- }>>;
4652
- hasPendingHumanAsk: z.ZodOptional<z.ZodBoolean>;
4653
- monitoringWakeAt: z.ZodOptional<z.ZodString>;
4654
- monitoringWakeCapReached: z.ZodOptional<z.ZodBoolean>;
4655
- autoResumeAt: z.ZodOptional<z.ZodString>;
4656
- autoResumeAttempts: z.ZodOptional<z.ZodNumber>;
5085
+ text: z.ZodString;
5086
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
4657
5087
  createdAt: z.ZodString;
4658
- startedAt: z.ZodOptional<z.ZodString>;
4659
- finishedAt: z.ZodOptional<z.ZodString>;
4660
- tokensUsed: z.ZodNumber;
4661
- inputTokens: z.ZodOptional<z.ZodNumber>;
4662
- outputTokens: z.ZodOptional<z.ZodNumber>;
4663
- costUsd: z.ZodOptional<z.ZodNumber>;
4664
- pullRequestUrl: z.ZodOptional<z.ZodString>;
4665
- referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
4666
- prNumber: z.ZodOptional<z.ZodNumber>;
4667
- issueNumber: z.ZodOptional<z.ZodNumber>;
4668
- referencedIssueNumberSeeded: z.ZodOptional<z.ZodBoolean>;
4669
- titleOrigin: z.ZodOptional<z.ZodEnum<{
4670
- auto: "auto";
4671
- marker: "marker";
4672
- user: "user";
4673
- }>>;
4674
- markerRefs: z.ZodOptional<z.ZodObject<{
4675
- pr: z.ZodOptional<z.ZodNumber>;
4676
- issue: z.ZodOptional<z.ZodNumber>;
4677
- }, z.core.$strip>>;
4678
- referencedPrCandidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
4679
- referencedIssueUrl: z.ZodOptional<z.ZodString>;
4680
- referencedIssueCandidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
4681
- worktree: z.ZodOptional<z.ZodLiteral<false>>;
4682
- worktreePath: z.ZodOptional<z.ZodString>;
4683
- branch: z.ZodOptional<z.ZodString>;
4684
- baseBranch: z.ZodOptional<z.ZodString>;
4685
- worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
4686
- worktreeSetup: z.ZodOptional<z.ZodObject<{
4687
- status: z.ZodEnum<{
4688
- done: "done";
4689
- failed: "failed";
4690
- running: "running";
4691
- }>;
4692
- startedAt: z.ZodString;
4693
- finishedAt: z.ZodOptional<z.ZodString>;
4694
- durationMs: z.ZodOptional<z.ZodNumber>;
4695
- error: z.ZodOptional<z.ZodString>;
4696
- }, z.core.$strip>>;
4697
- groupId: z.ZodOptional<z.ZodString>;
4698
- variant: z.ZodOptional<z.ZodString>;
4699
- clientRequestId: z.ZodOptional<z.ZodString>;
4700
- clientRequestHash: z.ZodOptional<z.ZodString>;
4701
- peakRssBytes: z.ZodOptional<z.ZodNumber>;
4702
- peakProcCount: z.ZodOptional<z.ZodNumber>;
4703
- archived: z.ZodBoolean;
4704
- archivedAt: z.ZodOptional<z.ZodString>;
4705
- pinned: z.ZodOptional<z.ZodBoolean>;
4706
- pinnedAt: z.ZodOptional<z.ZodString>;
4707
- seenAt: z.ZodOptional<z.ZodString>;
4708
- currentStepId: z.ZodOptional<z.ZodString>;
4709
- error: z.ZodOptional<z.ZodString>;
4710
- steps: z.ZodArray<z.ZodObject<{
4711
- id: z.ZodString;
4712
- name: z.ZodString;
4713
- kind: z.ZodEnum<{
4714
- agent: "agent";
4715
- check: "check";
4716
- }>;
4717
- status: z.ZodEnum<{
4718
- cancelled: "cancelled";
4719
- done: "done";
4720
- failed: "failed";
4721
- pending: "pending";
4722
- review: "review";
4723
- running: "running";
4724
- skipped: "skipped";
4725
- waiting: "waiting";
4726
- }>;
4727
- iterations: z.ZodNumber;
4728
- retriesUsed: z.ZodOptional<z.ZodNumber>;
4729
- tokensUsed: z.ZodNumber;
4730
- inputTokens: z.ZodOptional<z.ZodNumber>;
4731
- outputTokens: z.ZodOptional<z.ZodNumber>;
4732
- usageInvocationsStarted: z.ZodOptional<z.ZodNumber>;
4733
- usageInvocationsObserved: z.ZodOptional<z.ZodNumber>;
4734
- usageTurnsStarted: z.ZodOptional<z.ZodNumber>;
4735
- usageTurnsRecorded: z.ZodOptional<z.ZodNumber>;
4736
- usageInvocationEpoch: z.ZodOptional<z.ZodNumber>;
4737
- startedAt: z.ZodOptional<z.ZodString>;
4738
- finishedAt: z.ZodOptional<z.ZodString>;
4739
- error: z.ZodOptional<z.ZodString>;
4740
- sessionId: z.ZodOptional<z.ZodString>;
4741
- backend: z.ZodOptional<z.ZodEnum<{
4742
- claude: "claude";
4743
- codex: "codex";
4744
- cursor: "cursor";
4745
- omp: "omp";
4746
- opencode: "opencode";
4747
- pi: "pi";
4748
- }>>;
4749
- profileId: z.ZodOptional<z.ZodString>;
4750
- costUsd: z.ZodOptional<z.ZodNumber>;
4751
- synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
4752
- }, z.core.$strip>>;
4753
- workflowDef: z.ZodOptional<z.ZodObject<{
4754
- name: z.ZodString;
4755
- description: z.ZodOptional<z.ZodString>;
4756
- steps: z.ZodArray<z.ZodObject<{
4757
- id: z.ZodString;
4758
- name: z.ZodOptional<z.ZodString>;
4759
- prompt: z.ZodOptional<z.ZodString>;
4760
- skill: z.ZodOptional<z.ZodString>;
4761
- model: z.ZodOptional<z.ZodString>;
4762
- effort: z.ZodOptional<z.ZodString>;
4763
- timeoutMs: z.ZodOptional<z.ZodNumber>;
4764
- runner: z.ZodOptional<z.ZodEnum<{
4765
- claude: "claude";
4766
- codex: "codex";
4767
- cursor: "cursor";
4768
- omp: "omp";
4769
- opencode: "opencode";
4770
- pi: "pi";
4771
- }>>;
4772
- agentProfile: z.ZodOptional<z.ZodString>;
4773
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
4774
- bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
4775
- command: z.ZodOptional<z.ZodString>;
4776
- onFail: z.ZodOptional<z.ZodObject<{
4777
- retry: z.ZodString;
4778
- max: z.ZodDefault<z.ZodNumber>;
4779
- }, z.core.$strip>>;
4780
- }, z.core.$strip>>;
4781
- source: z.ZodEnum<{
4782
- "built-in": "built-in";
4783
- file: "file";
4784
- }>;
4785
- path: z.ZodOptional<z.ZodString>;
4786
- }, z.core.$strip>>;
4787
- }, z.core.$strip>>;
5088
+ }, z.core.$strip>;
5089
+ }, z.core.$strip>, z.ZodObject<{
5090
+ deferred: z.ZodLiteral<true>;
5091
+ }, z.core.$strip>]>;
5092
+ export type MessageResponse = z.infer<typeof messageResponseSchema>;
5093
+ /** `PATCH /runs/:id/queued-messages/:msgId` (#472) — the replaced entry. */
5094
+ export declare const editQueuedMessageResponseSchema: z.ZodObject<{
5095
+ message: z.ZodObject<{
5096
+ id: z.ZodString;
5097
+ text: z.ZodString;
5098
+ images: z.ZodOptional<z.ZodArray<z.ZodString>>;
5099
+ createdAt: z.ZodString;
5100
+ }, z.core.$strip>;
4788
5101
  }, z.core.$strip>;
4789
- export type PickVariantResponse = z.infer<typeof pickVariantResponseSchema>;
4790
- /**
4791
- * Non-image attachment types the composer may send (#950). Deliberately an allowlist and
4792
- * deliberately short: cezar serves these files back from the cockpit's own origin, so every entry
4793
- * here is one more thing that must be safe to hand a browser. `image/*` stays a regex — narrowing
4794
- * what the route has always accepted would be the breaking half of this change.
4795
- *
4796
- * `text/x-markdown` is the spelling some browsers still report for a `.md`.
4797
- */
4798
- export declare const FILE_ATTACHMENT_MEDIA_TYPES: readonly ['text/plain', 'text/markdown', 'text/x-markdown', 'application/pdf'];
4799
- /** Does this media type travel as an inline image block the model can look at? */
4800
- export declare function isImageMediaType(mediaType: string): boolean;
4801
- /** Is this something the composer may attach at all — an image, or one of the file types above? */
4802
- export declare function isAttachmentMediaType(mediaType: string): boolean;
4803
- /**
4804
- * The on-disk extension for an attachment, derived from its media type ALONE — the user's own
4805
- * filename never reaches the wire, and therefore never reaches a path. `img` is the pre-existing
4806
- * catch-all for an image type cezar does not name (an SVG, a BMP), kept so those files land where
4807
- * they always did.
4808
- */
4809
- export declare function attachmentExtension(mediaType: string): string;
5102
+ export type EditQueuedMessageResponse = z.infer<typeof editQueuedMessageResponseSchema>;
5103
+ /** `DELETE /runs/:id/queued-messages/:msgId` (#472) — `409 run already started` otherwise. */
5104
+ export declare const removeQueuedMessageResponseSchema: z.ZodObject<{
5105
+ removed: z.ZodLiteral<true>;
5106
+ }, z.core.$strip>;
5107
+ export type RemoveQueuedMessageResponse = z.infer<typeof removeQueuedMessageResponseSchema>;
4810
5108
  /**
4811
- * Does a persisted attachment name (`pasted-3.pdf`, `screenshot-1.png`) refer to an image?
4812
- *
4813
- * The one predicate every reader branches on — the engine deciding whether to re-encode a file as
4814
- * an image block, and the cockpit deciding between a thumbnail and a named chip. Branch on the
4815
- * NAME, never on the list an entry came from: images and files share one list and one numbering
4816
- * space on disk, and that is what keeps the orphan sweep, the restart re-read and the per-stack
4817
- * cap on a single code path.
5109
+ * `POST /runs/:id/open-in-cli` — a terminal was spawned with `command` running in it. With no
5110
+ * terminal emulator the server answers 409 and the `ApiError` carries the full `cd … && <command>`
5111
+ * for the clipboard fallback.
4818
5112
  */
4819
- export declare function isImageAttachmentName(name: string): boolean;
5113
+ export declare const openInCliResponseSchema: z.ZodObject<{
5114
+ opened: z.ZodLiteral<true>;
5115
+ command: z.ZodString;
5116
+ }, z.core.$strip>;
5117
+ export type OpenInCliResponse = z.infer<typeof openInCliResponseSchema>;
5118
+ /** `POST /runs/:id/remove-worktree` — per-row delete in the worktrees panel (#483). */
5119
+ export declare const removeWorktreeResponseSchema: z.ZodObject<{
5120
+ removed: z.ZodLiteral<true>;
5121
+ }, z.core.$strip>;
5122
+ export type RemoveWorktreeResponse = z.infer<typeof removeWorktreeResponseSchema>;
5123
+ /** `POST /runs/:id/git/commit` — `git add -A && git commit` in the run's worktree. */
5124
+ export declare const gitCommitResponseSchema: z.ZodObject<{
5125
+ committed: z.ZodLiteral<true>;
5126
+ sha: z.ZodString;
5127
+ }, z.core.$strip>;
5128
+ export type GitCommitResponse = z.infer<typeof gitCommitResponseSchema>;
5129
+ /** `POST /runs/:id/git/push` — push the worktree's branch, setting upstream if it has none. */
5130
+ export declare const gitPushResponseSchema: z.ZodObject<{
5131
+ pushed: z.ZodLiteral<true>;
5132
+ branch: z.ZodString;
5133
+ remote: z.ZodString;
5134
+ upstreamSet: z.ZodBoolean;
5135
+ }, z.core.$strip>;
5136
+ export type GitPushResponse = z.infer<typeof gitPushResponseSchema>;
5137
+ /** A commit a run made on its worktree branch. */
5138
+ export declare const runCommitSchema: z.ZodObject<{
5139
+ sha: z.ZodString;
5140
+ subject: z.ZodString;
5141
+ author: z.ZodString;
5142
+ when: z.ZodString;
5143
+ }, z.core.$strip>;
5144
+ export type RunCommit = z.infer<typeof runCommitSchema>;
5145
+ /** `GET /runs/:id/commits` — `<base>..HEAD` on the worktree branch, newest first. */
5146
+ export declare const runCommitsResponseSchema: z.ZodObject<{
5147
+ commits: z.ZodArray<z.ZodObject<{
5148
+ sha: z.ZodString;
5149
+ subject: z.ZodString;
5150
+ author: z.ZodString;
5151
+ when: z.ZodString;
5152
+ }, z.core.$strip>>;
5153
+ }, z.core.$strip>;
5154
+ export type RunCommitsResponse = z.infer<typeof runCommitsResponseSchema>;
4820
5155
  /**
4821
5156
  * One inline attachment, base64 — ≤4 per request, 7,000,000 encoded characters each.
4822
5157
  *
@@ -4842,8 +5177,9 @@ export declare const imageInputSchema: z.ZodObject<{
4842
5177
  data: z.ZodString;
4843
5178
  }, z.core.$strip>;
4844
5179
  export type ImageInput = AttachmentInput;
4845
- /** A request id names one run, so it cannot ask for ×2/×3. */
4846
- export declare const CLIENT_REQUEST_VARIANTS_ERROR = "clientRequestId names one run; it cannot be combined with variants > 1";
5180
+ export declare const PARALLEL_VARIANTS_REMOVED = "Parallel variants are removed. Use owned workers to compare approaches; collect their results and integrate the chosen commits explicitly.";
5181
+ /** A refusal fence for older callers: never strip a candidate count and launch one run. */
5182
+ export declare const singleRunVariantsSchema: z.ZodOptional<z.ZodLiteral<1>>;
4847
5183
  /**
4848
5184
  * The KEYS of `POST /runs`' body, before the XOR refinement that `createRunInputSchema` adds.
4849
5185
  *
@@ -4891,16 +5227,16 @@ export declare const createRunInputBaseSchema: z.ZodObject<{
4891
5227
  pi: "pi";
4892
5228
  }>>;
4893
5229
  agentProfile: z.ZodOptional<z.ZodString>;
4894
- variants: z.ZodOptional<z.ZodNumber>;
5230
+ variants: z.ZodOptional<z.ZodLiteral<1>>;
4895
5231
  worktree: z.ZodOptional<z.ZodBoolean>;
4896
5232
  autonomous: z.ZodOptional<z.ZodBoolean>;
4897
- generateFollowups: z.ZodOptional<z.ZodBoolean>;
5233
+ archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
5234
+ autoMergePr: z.ZodOptional<z.ZodBoolean>;
4898
5235
  systemPrompt: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
4899
5236
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
4900
5237
  mediaType: z.ZodString;
4901
5238
  data: z.ZodString;
4902
5239
  }, z.core.$strip>>>;
4903
- todoId: z.ZodOptional<z.ZodString>;
4904
5240
  }, z.core.$strip>;
4905
5241
  /**
4906
5242
  * `POST /runs`. Exactly one of `workflow` / `steps` — the server rejects both or neither.
@@ -4947,16 +5283,16 @@ export declare const createRunInputSchema: z.ZodObject<{
4947
5283
  pi: "pi";
4948
5284
  }>>;
4949
5285
  agentProfile: z.ZodOptional<z.ZodString>;
4950
- variants: z.ZodOptional<z.ZodNumber>;
5286
+ variants: z.ZodOptional<z.ZodLiteral<1>>;
4951
5287
  worktree: z.ZodOptional<z.ZodBoolean>;
4952
5288
  autonomous: z.ZodOptional<z.ZodBoolean>;
4953
- generateFollowups: z.ZodOptional<z.ZodBoolean>;
5289
+ archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
5290
+ autoMergePr: z.ZodOptional<z.ZodBoolean>;
4954
5291
  systemPrompt: z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>;
4955
5292
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
4956
5293
  mediaType: z.ZodString;
4957
5294
  data: z.ZodString;
4958
5295
  }, z.core.$strip>>>;
4959
- todoId: z.ZodOptional<z.ZodString>;
4960
5296
  clientRequestId: z.ZodOptional<z.ZodString>;
4961
5297
  notify: z.ZodOptional<z.ZodBoolean>;
4962
5298
  }, z.core.$strip>;
@@ -4983,6 +5319,8 @@ export type MessageInput = z.input<typeof messageInputSchema>;
4983
5319
  export declare const patchRunInputSchema: z.ZodObject<{
4984
5320
  title: z.ZodOptional<z.ZodString>;
4985
5321
  task: z.ZodOptional<z.ZodString>;
5322
+ archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
5323
+ autoMergePr: z.ZodOptional<z.ZodBoolean>;
4986
5324
  }, z.core.$strip>;
4987
5325
  export type PatchRunInput = z.input<typeof patchRunInputSchema>;
4988
5326
  /** Per-project pin mutation. An absent flag pins; false removes both pin fields. */