@hearsay-tools/squawk 0.0.0-stage → 0.17.0-dev.5685

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 (1976) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +1846 -2
  3. package/dist/activity/demand.d.ts +21 -0
  4. package/dist/activity/demand.js +49 -0
  5. package/dist/activity/demand.js.map +1 -0
  6. package/dist/activity/publisher.d.ts +48 -0
  7. package/dist/activity/publisher.js +175 -0
  8. package/dist/activity/publisher.js.map +1 -0
  9. package/dist/activity/read-model.d.ts +50 -0
  10. package/dist/activity/read-model.js +143 -0
  11. package/dist/activity/read-model.js.map +1 -0
  12. package/dist/activity/requests.d.ts +27 -0
  13. package/dist/activity/requests.js +81 -0
  14. package/dist/activity/requests.js.map +1 -0
  15. package/dist/activity/text.d.ts +4 -0
  16. package/dist/activity/text.js +13 -0
  17. package/dist/activity/text.js.map +1 -0
  18. package/dist/activity/tool-activity.d.ts +87 -0
  19. package/dist/activity/tool-activity.js +250 -0
  20. package/dist/activity/tool-activity.js.map +1 -0
  21. package/dist/activity/wait.d.ts +19 -0
  22. package/dist/activity/wait.js +91 -0
  23. package/dist/activity/wait.js.map +1 -0
  24. package/dist/agent-config/account-identity.d.ts +28 -0
  25. package/dist/agent-config/account-identity.js +132 -0
  26. package/dist/agent-config/account-identity.js.map +1 -0
  27. package/dist/agent-config/catalog.d.ts +70 -0
  28. package/dist/agent-config/catalog.js +384 -0
  29. package/dist/agent-config/catalog.js.map +1 -0
  30. package/dist/agent-config/files.d.ts +42 -0
  31. package/dist/agent-config/files.js +115 -0
  32. package/dist/agent-config/files.js.map +1 -0
  33. package/dist/agent-config/model-settings/claude.d.ts +2 -0
  34. package/dist/agent-config/model-settings/claude.js +11 -0
  35. package/dist/agent-config/model-settings/claude.js.map +1 -0
  36. package/dist/agent-config/model-settings/codex.d.ts +2 -0
  37. package/dist/agent-config/model-settings/codex.js +16 -0
  38. package/dist/agent-config/model-settings/codex.js.map +1 -0
  39. package/dist/agent-config/model-settings/opencode.d.ts +2 -0
  40. package/dist/agent-config/model-settings/opencode.js +8 -0
  41. package/dist/agent-config/model-settings/opencode.js.map +1 -0
  42. package/dist/agent-config/model-settings/pi.d.ts +2 -0
  43. package/dist/agent-config/model-settings/pi.js +38 -0
  44. package/dist/agent-config/model-settings/pi.js.map +1 -0
  45. package/dist/agent-config/model-settings/shared.d.ts +12 -0
  46. package/dist/agent-config/model-settings/shared.js +100 -0
  47. package/dist/agent-config/model-settings/shared.js.map +1 -0
  48. package/dist/agent-config/model-settings/types.d.ts +9 -0
  49. package/dist/agent-config/model-settings/types.js +2 -0
  50. package/dist/agent-config/model-settings/types.js.map +1 -0
  51. package/dist/agent-config/models.d.ts +9 -0
  52. package/dist/agent-config/models.js +40 -0
  53. package/dist/agent-config/models.js.map +1 -0
  54. package/dist/agent-config/seed.d.ts +15 -0
  55. package/dist/agent-config/seed.js +94 -0
  56. package/dist/agent-config/seed.js.map +1 -0
  57. package/dist/agent-config/service.d.ts +44 -0
  58. package/dist/agent-config/service.js +73 -0
  59. package/dist/agent-config/service.js.map +1 -0
  60. package/dist/agent-config/validate.d.ts +18 -0
  61. package/dist/agent-config/validate.js +82 -0
  62. package/dist/agent-config/validate.js.map +1 -0
  63. package/dist/application-update/bin-recovery.d.ts +5 -0
  64. package/dist/application-update/bin-recovery.js +96 -0
  65. package/dist/application-update/bin-recovery.js.map +1 -0
  66. package/dist/application-update/discovery.d.ts +23 -0
  67. package/dist/application-update/discovery.js +131 -0
  68. package/dist/application-update/discovery.js.map +1 -0
  69. package/dist/application-update/helper.d.ts +58 -0
  70. package/dist/application-update/helper.js +363 -0
  71. package/dist/application-update/helper.js.map +1 -0
  72. package/dist/application-update/launcher.d.ts +12 -0
  73. package/dist/application-update/launcher.js +61 -0
  74. package/dist/application-update/launcher.js.map +1 -0
  75. package/dist/application-update/lock.d.ts +4 -0
  76. package/dist/application-update/lock.js +70 -0
  77. package/dist/application-update/lock.js.map +1 -0
  78. package/dist/application-update/npm-process.d.ts +17 -0
  79. package/dist/application-update/npm-process.js +156 -0
  80. package/dist/application-update/npm-process.js.map +1 -0
  81. package/dist/application-update/runtime-layout.d.ts +20 -0
  82. package/dist/application-update/runtime-layout.js +91 -0
  83. package/dist/application-update/runtime-layout.js.map +1 -0
  84. package/dist/application-update/scoped-recovery.d.ts +32 -0
  85. package/dist/application-update/scoped-recovery.js +210 -0
  86. package/dist/application-update/scoped-recovery.js.map +1 -0
  87. package/dist/application-update/service.d.ts +86 -0
  88. package/dist/application-update/service.js +523 -0
  89. package/dist/application-update/service.js.map +1 -0
  90. package/dist/archive-on-merge-setting.d.ts +15 -0
  91. package/dist/archive-on-merge-setting.js +15 -0
  92. package/dist/archive-on-merge-setting.js.map +1 -0
  93. package/dist/artifacts/cli.d.ts +1 -0
  94. package/dist/artifacts/cli.js +54 -0
  95. package/dist/artifacts/cli.js.map +1 -0
  96. package/dist/artifacts/lifecycle.d.ts +4 -0
  97. package/dist/artifacts/lifecycle.js +42 -0
  98. package/dist/artifacts/lifecycle.js.map +1 -0
  99. package/dist/artifacts/reports-index.d.ts +46 -0
  100. package/dist/artifacts/reports-index.js +279 -0
  101. package/dist/artifacts/reports-index.js.map +1 -0
  102. package/dist/artifacts/reports-watch.d.ts +43 -0
  103. package/dist/artifacts/reports-watch.js +129 -0
  104. package/dist/artifacts/reports-watch.js.map +1 -0
  105. package/dist/artifacts/resolve.d.ts +18 -0
  106. package/dist/artifacts/resolve.js +129 -0
  107. package/dist/artifacts/resolve.js.map +1 -0
  108. package/dist/artifacts/store.d.ts +40 -0
  109. package/dist/artifacts/store.js +513 -0
  110. package/dist/artifacts/store.js.map +1 -0
  111. package/dist/automations/automation-cli.d.ts +61 -0
  112. package/dist/automations/automation-cli.js +519 -0
  113. package/dist/automations/automation-cli.js.map +1 -0
  114. package/dist/automations/builtin-skill.d.ts +7 -0
  115. package/dist/automations/builtin-skill.js +14 -0
  116. package/dist/automations/builtin-skill.js.map +1 -0
  117. package/dist/automations/coordinator.d.ts +53 -0
  118. package/dist/automations/coordinator.js +136 -0
  119. package/dist/automations/coordinator.js.map +1 -0
  120. package/dist/automations/github-baseline.d.ts +3 -0
  121. package/dist/automations/github-baseline.js +17 -0
  122. package/dist/automations/github-baseline.js.map +1 -0
  123. package/dist/automations/github-poller.d.ts +93 -0
  124. package/dist/automations/github-poller.js +303 -0
  125. package/dist/automations/github-poller.js.map +1 -0
  126. package/dist/automations/project-files.d.ts +6 -0
  127. package/dist/automations/project-files.js +43 -0
  128. package/dist/automations/project-files.js.map +1 -0
  129. package/dist/automations/prompts.d.ts +12 -0
  130. package/dist/automations/prompts.js +162 -0
  131. package/dist/automations/prompts.js.map +1 -0
  132. package/dist/automations/schedule-runner.d.ts +153 -0
  133. package/dist/automations/schedule-runner.js +529 -0
  134. package/dist/automations/schedule-runner.js.map +1 -0
  135. package/dist/automations/scheduler.d.ts +95 -0
  136. package/dist/automations/scheduler.js +462 -0
  137. package/dist/automations/scheduler.js.map +1 -0
  138. package/dist/automations/service.d.ts +793 -0
  139. package/dist/automations/service.js +444 -0
  140. package/dist/automations/service.js.map +1 -0
  141. package/dist/automations/store.d.ts +168 -0
  142. package/dist/automations/store.js +805 -0
  143. package/dist/automations/store.js.map +1 -0
  144. package/dist/automations/task-template.d.ts +59 -0
  145. package/dist/automations/task-template.js +285 -0
  146. package/dist/automations/task-template.js.map +1 -0
  147. package/dist/automations/tool-adapter.d.ts +6 -0
  148. package/dist/automations/tool-adapter.js +115 -0
  149. package/dist/automations/tool-adapter.js.map +1 -0
  150. package/dist/automations/types.d.ts +1 -0
  151. package/dist/automations/types.js +2 -0
  152. package/dist/automations/types.js.map +1 -0
  153. package/dist/autosave-cleanup.d.ts +26 -0
  154. package/dist/autosave-cleanup.js +87 -0
  155. package/dist/autosave-cleanup.js.map +1 -0
  156. package/dist/autosave-git.d.ts +23 -0
  157. package/dist/autosave-git.js +211 -0
  158. package/dist/autosave-git.js.map +1 -0
  159. package/dist/autosave-group.d.ts +8 -0
  160. package/dist/autosave-group.js +61 -0
  161. package/dist/autosave-group.js.map +1 -0
  162. package/dist/autosave-holders.d.ts +34 -0
  163. package/dist/autosave-holders.js +228 -0
  164. package/dist/autosave-holders.js.map +1 -0
  165. package/dist/autosave-windows.d.ts +25 -0
  166. package/dist/autosave-windows.js +170 -0
  167. package/dist/autosave-windows.js.map +1 -0
  168. package/dist/cez.d.ts +2 -0
  169. package/dist/cez.js +3 -0
  170. package/dist/cez.js.map +1 -0
  171. package/dist/cezarion.d.ts +2 -0
  172. package/dist/cezarion.js +3 -0
  173. package/dist/cezarion.js.map +1 -0
  174. package/dist/ci-wait/client.d.ts +28 -0
  175. package/dist/ci-wait/client.js +123 -0
  176. package/dist/ci-wait/client.js.map +1 -0
  177. package/dist/ci-wait/controller.d.ts +824 -0
  178. package/dist/ci-wait/controller.js +305 -0
  179. package/dist/ci-wait/controller.js.map +1 -0
  180. package/dist/ci-wait/errors.d.ts +35 -0
  181. package/dist/ci-wait/errors.js +273 -0
  182. package/dist/ci-wait/errors.js.map +1 -0
  183. package/dist/ci-wait/github.d.ts +105 -0
  184. package/dist/ci-wait/github.js +324 -0
  185. package/dist/ci-wait/github.js.map +1 -0
  186. package/dist/ci-wait/injection.d.ts +3 -0
  187. package/dist/ci-wait/injection.js +13 -0
  188. package/dist/ci-wait/injection.js.map +1 -0
  189. package/dist/ci-wait/mcp.d.ts +3 -0
  190. package/dist/ci-wait/mcp.js +30 -0
  191. package/dist/ci-wait/mcp.js.map +1 -0
  192. package/dist/ci-wait/merge-progress.d.ts +84 -0
  193. package/dist/ci-wait/merge-progress.js +50 -0
  194. package/dist/ci-wait/merge-progress.js.map +1 -0
  195. package/dist/ci-wait/progress.d.ts +56 -0
  196. package/dist/ci-wait/progress.js +100 -0
  197. package/dist/ci-wait/progress.js.map +1 -0
  198. package/dist/ci-wait/resources.d.ts +9 -0
  199. package/dist/ci-wait/resources.js +46 -0
  200. package/dist/ci-wait/resources.js.map +1 -0
  201. package/dist/ci-wait/supervisor.d.ts +47 -0
  202. package/dist/ci-wait/supervisor.js +334 -0
  203. package/dist/ci-wait/supervisor.js.map +1 -0
  204. package/dist/ci-wait/text.d.ts +2 -0
  205. package/dist/ci-wait/text.js +5 -0
  206. package/dist/ci-wait/text.js.map +1 -0
  207. package/dist/ci-wait/tools.d.ts +845 -0
  208. package/dist/ci-wait/tools.js +232 -0
  209. package/dist/ci-wait/tools.js.map +1 -0
  210. package/dist/cli-dispatch.d.ts +33 -0
  211. package/dist/cli-dispatch.js +239 -0
  212. package/dist/cli-dispatch.js.map +1 -0
  213. package/dist/config.d.ts +117 -0
  214. package/dist/config.js +343 -0
  215. package/dist/config.js.map +1 -0
  216. package/dist/contract/active-provider.d.ts +12 -0
  217. package/dist/contract/activity.d.ts +1478 -0
  218. package/dist/contract/agent-config.d.ts +160 -0
  219. package/dist/contract/agent-profiles.d.ts +369 -0
  220. package/dist/contract/application-update.d.ts +32 -0
  221. package/dist/contract/artifacts.d.ts +100 -0
  222. package/dist/contract/ask-schema.d.ts +50 -0
  223. package/dist/contract/ask.d.ts +11 -0
  224. package/dist/contract/attachments.d.ts +35 -0
  225. package/dist/contract/attention.d.ts +99 -0
  226. package/dist/contract/automation-requests.d.ts +314 -0
  227. package/dist/contract/automation-schedule.d.ts +89 -0
  228. package/dist/contract/automation-storage.d.ts +518 -0
  229. package/dist/contract/automations.d.ts +1560 -0
  230. package/dist/contract/ci-wait.d.ts +281 -0
  231. package/dist/contract/config-requests.d.ts +36 -0
  232. package/dist/contract/control-locations.d.ts +10 -0
  233. package/dist/contract/conversations.d.ts +415 -0
  234. package/dist/contract/defined.d.ts +8 -0
  235. package/dist/contract/delegation.d.ts +2168 -0
  236. package/dist/contract/discovery.d.ts +228 -0
  237. package/dist/contract/effort.d.ts +18 -0
  238. package/dist/contract/events.d.ts +324 -0
  239. package/dist/contract/github-requests.d.ts +26 -0
  240. package/dist/contract/github.d.ts +732 -0
  241. package/dist/contract/handoff.d.ts +43 -0
  242. package/dist/contract/health.d.ts +128 -0
  243. package/dist/contract/home-recovery.d.ts +71 -0
  244. package/dist/contract/image-path.d.ts +6 -0
  245. package/dist/contract/index.d.ts +68 -0
  246. package/dist/contract/index.js +6709 -0
  247. package/dist/contract/live-coordination.d.ts +164 -0
  248. package/dist/contract/live-limits.d.ts +8 -0
  249. package/dist/contract/live.d.ts +123 -0
  250. package/dist/contract/pending-ask.d.ts +58 -0
  251. package/dist/contract/per-runner-optional-strings.d.ts +10 -0
  252. package/dist/contract/permissions.d.ts +54 -0
  253. package/dist/contract/preview.d.ts +568 -0
  254. package/dist/contract/project-limits.d.ts +35 -0
  255. package/dist/contract/projects.d.ts +716 -0
  256. package/dist/contract/provider-requests.d.ts +77 -0
  257. package/dist/contract/query-requests.d.ts +52 -0
  258. package/dist/contract/repo-requests.d.ts +12 -0
  259. package/dist/contract/repo.d.ts +515 -0
  260. package/dist/contract/report-title.d.ts +3 -0
  261. package/dist/contract/reports.d.ts +101 -0
  262. package/dist/contract/run-labels.d.ts +8 -0
  263. package/dist/contract/run-limits.d.ts +8 -0
  264. package/dist/contract/run-predicates.d.ts +87 -0
  265. package/dist/contract/run-requests.d.ts +33 -0
  266. package/dist/contract/run-search.d.ts +193 -0
  267. package/dist/contract/runs.d.ts +7108 -0
  268. package/dist/contract/scheduled-tasks.d.ts +188 -0
  269. package/dist/contract/self-update.d.ts +255 -0
  270. package/dist/contract/skill-sources.d.ts +125 -0
  271. package/dist/contract/skills.d.ts +56 -0
  272. package/dist/contract/task-options.d.ts +18 -0
  273. package/dist/contract/team-skill-ref.d.ts +10 -0
  274. package/dist/contract/tool-display.d.ts +25 -0
  275. package/dist/contract/ui-state-requests.d.ts +60 -0
  276. package/dist/contract/version.d.ts +3 -0
  277. package/dist/contract/voice.d.ts +213 -0
  278. package/dist/contract/waits.d.ts +1996 -0
  279. package/dist/contract/workflow-file.d.ts +37 -0
  280. package/dist/contract/workflow-requests.d.ts +7 -0
  281. package/dist/contract/workflows.d.ts +250 -0
  282. package/dist/contract/workspace-events.d.ts +410 -0
  283. package/dist/contract/workspace.d.ts +631 -0
  284. package/dist/contract/zoned-time.d.ts +26 -0
  285. package/dist/core/agent-env.d.ts +34 -0
  286. package/dist/core/agent-env.js +411 -0
  287. package/dist/core/agent-env.js.map +1 -0
  288. package/dist/core/agent-model-policy.d.ts +11 -0
  289. package/dist/core/agent-model-policy.js +38 -0
  290. package/dist/core/agent-model-policy.js.map +1 -0
  291. package/dist/core/agent-profiles.d.ts +50 -0
  292. package/dist/core/agent-profiles.js +105 -0
  293. package/dist/core/agent-profiles.js.map +1 -0
  294. package/dist/core/agent-runner.d.ts +425 -0
  295. package/dist/core/agent-runner.js +98 -0
  296. package/dist/core/agent-runner.js.map +1 -0
  297. package/dist/core/ask.d.ts +26 -0
  298. package/dist/core/ask.js +35 -0
  299. package/dist/core/ask.js.map +1 -0
  300. package/dist/core/backend-detect.d.ts +18 -0
  301. package/dist/core/backend-detect.js +216 -0
  302. package/dist/core/backend-detect.js.map +1 -0
  303. package/dist/core/claude-cli-runner.d.ts +85 -0
  304. package/dist/core/claude-cli-runner.js +899 -0
  305. package/dist/core/claude-cli-runner.js.map +1 -0
  306. package/dist/core/claude-executable.d.ts +2 -0
  307. package/dist/core/claude-executable.js +15 -0
  308. package/dist/core/claude-executable.js.map +1 -0
  309. package/dist/core/claude-model-catalog.d.ts +16 -0
  310. package/dist/core/claude-model-catalog.js +198 -0
  311. package/dist/core/claude-model-catalog.js.map +1 -0
  312. package/dist/core/claude-stream.d.ts +38 -0
  313. package/dist/core/claude-stream.js +77 -0
  314. package/dist/core/claude-stream.js.map +1 -0
  315. package/dist/core/claude-ui-mapper.d.ts +88 -0
  316. package/dist/core/claude-ui-mapper.js +851 -0
  317. package/dist/core/claude-ui-mapper.js.map +1 -0
  318. package/dist/core/codex-app-server-runner.d.ts +76 -0
  319. package/dist/core/codex-app-server-runner.js +1271 -0
  320. package/dist/core/codex-app-server-runner.js.map +1 -0
  321. package/dist/core/codex-app-server-transport.d.ts +52 -0
  322. package/dist/core/codex-app-server-transport.js +200 -0
  323. package/dist/core/codex-app-server-transport.js.map +1 -0
  324. package/dist/core/codex-approvals.d.ts +12 -0
  325. package/dist/core/codex-approvals.js +180 -0
  326. package/dist/core/codex-approvals.js.map +1 -0
  327. package/dist/core/codex-hook-mapper.d.ts +15 -0
  328. package/dist/core/codex-hook-mapper.js +73 -0
  329. package/dist/core/codex-hook-mapper.js.map +1 -0
  330. package/dist/core/codex-model-catalog.d.ts +10 -0
  331. package/dist/core/codex-model-catalog.js +110 -0
  332. package/dist/core/codex-model-catalog.js.map +1 -0
  333. package/dist/core/codex-native-frames.d.ts +35 -0
  334. package/dist/core/codex-native-frames.js +80 -0
  335. package/dist/core/codex-native-frames.js.map +1 -0
  336. package/dist/core/codex-permissions.d.ts +6 -0
  337. package/dist/core/codex-permissions.js +27 -0
  338. package/dist/core/codex-permissions.js.map +1 -0
  339. package/dist/core/codex-stream-error.d.ts +2 -0
  340. package/dist/core/codex-stream-error.js +12 -0
  341. package/dist/core/codex-stream-error.js.map +1 -0
  342. package/dist/core/codex-turn-outcome.d.ts +10 -0
  343. package/dist/core/codex-turn-outcome.js +35 -0
  344. package/dist/core/codex-turn-outcome.js.map +1 -0
  345. package/dist/core/codex-ui-mapper-state.d.ts +84 -0
  346. package/dist/core/codex-ui-mapper-state.js +8 -0
  347. package/dist/core/codex-ui-mapper-state.js.map +1 -0
  348. package/dist/core/codex-ui-mapper.d.ts +44 -0
  349. package/dist/core/codex-ui-mapper.js +799 -0
  350. package/dist/core/codex-ui-mapper.js.map +1 -0
  351. package/dist/core/cursor-cli-flags.d.ts +19 -0
  352. package/dist/core/cursor-cli-flags.js +47 -0
  353. package/dist/core/cursor-cli-flags.js.map +1 -0
  354. package/dist/core/cursor-config-options.d.ts +18 -0
  355. package/dist/core/cursor-config-options.js +31 -0
  356. package/dist/core/cursor-config-options.js.map +1 -0
  357. package/dist/core/cursor-model-catalog.d.ts +50 -0
  358. package/dist/core/cursor-model-catalog.js +306 -0
  359. package/dist/core/cursor-model-catalog.js.map +1 -0
  360. package/dist/core/cursor-print-capabilities.d.ts +14 -0
  361. package/dist/core/cursor-print-capabilities.js +169 -0
  362. package/dist/core/cursor-print-capabilities.js.map +1 -0
  363. package/dist/core/cursor-print-process.d.ts +31 -0
  364. package/dist/core/cursor-print-process.js +117 -0
  365. package/dist/core/cursor-print-process.js.map +1 -0
  366. package/dist/core/cursor-print-runner.d.ts +43 -0
  367. package/dist/core/cursor-print-runner.js +574 -0
  368. package/dist/core/cursor-print-runner.js.map +1 -0
  369. package/dist/core/cursor-print-tool-catalog.d.ts +3 -0
  370. package/dist/core/cursor-print-tool-catalog.js +13 -0
  371. package/dist/core/cursor-print-tool-catalog.js.map +1 -0
  372. package/dist/core/cursor-print-ui-mapper.d.ts +47 -0
  373. package/dist/core/cursor-print-ui-mapper.js +574 -0
  374. package/dist/core/cursor-print-ui-mapper.js.map +1 -0
  375. package/dist/core/cursor-provider-error.d.ts +9 -0
  376. package/dist/core/cursor-provider-error.js +15 -0
  377. package/dist/core/cursor-provider-error.js.map +1 -0
  378. package/dist/core/cursor-runner.d.ts +46 -0
  379. package/dist/core/cursor-runner.js +144 -0
  380. package/dist/core/cursor-runner.js.map +1 -0
  381. package/dist/core/defined.d.ts +1 -0
  382. package/dist/core/defined.js +2 -0
  383. package/dist/core/defined.js.map +1 -0
  384. package/dist/core/disclaim-spawn.d.ts +11 -0
  385. package/dist/core/disclaim-spawn.js +60 -0
  386. package/dist/core/disclaim-spawn.js.map +1 -0
  387. package/dist/core/edit-write-key.d.ts +2 -0
  388. package/dist/core/edit-write-key.js +6 -0
  389. package/dist/core/edit-write-key.js.map +1 -0
  390. package/dist/core/hook-items.d.ts +14 -0
  391. package/dist/core/hook-items.js +13 -0
  392. package/dist/core/hook-items.js.map +1 -0
  393. package/dist/core/host-model-catalog.d.ts +7 -0
  394. package/dist/core/host-model-catalog.js +21 -0
  395. package/dist/core/host-model-catalog.js.map +1 -0
  396. package/dist/core/input-submissions.d.ts +14 -0
  397. package/dist/core/input-submissions.js +26 -0
  398. package/dist/core/input-submissions.js.map +1 -0
  399. package/dist/core/managed-session.d.ts +6 -0
  400. package/dist/core/managed-session.js +116 -0
  401. package/dist/core/managed-session.js.map +1 -0
  402. package/dist/core/model-discovery-options.d.ts +8 -0
  403. package/dist/core/model-discovery-options.js +2 -0
  404. package/dist/core/model-discovery-options.js.map +1 -0
  405. package/dist/core/model-identity.d.ts +108 -0
  406. package/dist/core/model-identity.js +137 -0
  407. package/dist/core/model-identity.js.map +1 -0
  408. package/dist/core/model-presets.d.ts +10 -0
  409. package/dist/core/model-presets.js +77 -0
  410. package/dist/core/model-presets.js.map +1 -0
  411. package/dist/core/model-probe-teardown.d.ts +4 -0
  412. package/dist/core/model-probe-teardown.js +20 -0
  413. package/dist/core/model-probe-teardown.js.map +1 -0
  414. package/dist/core/ndjson.d.ts +6 -0
  415. package/dist/core/ndjson.js +23 -0
  416. package/dist/core/ndjson.js.map +1 -0
  417. package/dist/core/omp-model-catalog.d.ts +39 -0
  418. package/dist/core/omp-model-catalog.js +183 -0
  419. package/dist/core/omp-model-catalog.js.map +1 -0
  420. package/dist/core/omp-runner.d.ts +86 -0
  421. package/dist/core/omp-runner.js +818 -0
  422. package/dist/core/omp-runner.js.map +1 -0
  423. package/dist/core/omp-subagent-rows.d.ts +21 -0
  424. package/dist/core/omp-subagent-rows.js +99 -0
  425. package/dist/core/omp-subagent-rows.js.map +1 -0
  426. package/dist/core/omp-ui-mapper.d.ts +112 -0
  427. package/dist/core/omp-ui-mapper.js +807 -0
  428. package/dist/core/omp-ui-mapper.js.map +1 -0
  429. package/dist/core/opencode-model-catalog.d.ts +27 -0
  430. package/dist/core/opencode-model-catalog.js +189 -0
  431. package/dist/core/opencode-model-catalog.js.map +1 -0
  432. package/dist/core/opencode-permissions.d.ts +52 -0
  433. package/dist/core/opencode-permissions.js +101 -0
  434. package/dist/core/opencode-permissions.js.map +1 -0
  435. package/dist/core/opencode-runtime-config.d.ts +9 -0
  436. package/dist/core/opencode-runtime-config.js +26 -0
  437. package/dist/core/opencode-runtime-config.js.map +1 -0
  438. package/dist/core/opencode-server-runner.d.ts +75 -0
  439. package/dist/core/opencode-server-runner.js +1690 -0
  440. package/dist/core/opencode-server-runner.js.map +1 -0
  441. package/dist/core/opencode-session-error.d.ts +19 -0
  442. package/dist/core/opencode-session-error.js +42 -0
  443. package/dist/core/opencode-session-error.js.map +1 -0
  444. package/dist/core/opencode-task-scope.d.ts +9 -0
  445. package/dist/core/opencode-task-scope.js +19 -0
  446. package/dist/core/opencode-task-scope.js.map +1 -0
  447. package/dist/core/opencode-ui-mapper-state.d.ts +82 -0
  448. package/dist/core/opencode-ui-mapper-state.js +7 -0
  449. package/dist/core/opencode-ui-mapper-state.js.map +1 -0
  450. package/dist/core/opencode-ui-mapper.d.ts +59 -0
  451. package/dist/core/opencode-ui-mapper.js +724 -0
  452. package/dist/core/opencode-ui-mapper.js.map +1 -0
  453. package/dist/core/opencode-usage.d.ts +32 -0
  454. package/dist/core/opencode-usage.js +105 -0
  455. package/dist/core/opencode-usage.js.map +1 -0
  456. package/dist/core/pi-model-catalog.d.ts +34 -0
  457. package/dist/core/pi-model-catalog.js +247 -0
  458. package/dist/core/pi-model-catalog.js.map +1 -0
  459. package/dist/core/pi-rpc-turn.d.ts +179 -0
  460. package/dist/core/pi-rpc-turn.js +370 -0
  461. package/dist/core/pi-rpc-turn.js.map +1 -0
  462. package/dist/core/pi-rpc-wire.d.ts +31 -0
  463. package/dist/core/pi-rpc-wire.js +88 -0
  464. package/dist/core/pi-rpc-wire.js.map +1 -0
  465. package/dist/core/pi-runner.d.ts +58 -0
  466. package/dist/core/pi-runner.js +587 -0
  467. package/dist/core/pi-runner.js.map +1 -0
  468. package/dist/core/pi-ui-mapper.d.ts +52 -0
  469. package/dist/core/pi-ui-mapper.js +408 -0
  470. package/dist/core/pi-ui-mapper.js.map +1 -0
  471. package/dist/core/process-usage.d.ts +74 -0
  472. package/dist/core/process-usage.js +219 -0
  473. package/dist/core/process-usage.js.map +1 -0
  474. package/dist/core/product-env.d.ts +21 -0
  475. package/dist/core/product-env.js +38 -0
  476. package/dist/core/product-env.js.map +1 -0
  477. package/dist/core/provider-auth.d.ts +168 -0
  478. package/dist/core/provider-auth.js +661 -0
  479. package/dist/core/provider-auth.js.map +1 -0
  480. package/dist/core/provider-availability.d.ts +3 -0
  481. package/dist/core/provider-availability.js +14 -0
  482. package/dist/core/provider-availability.js.map +1 -0
  483. package/dist/core/runner-factory.d.ts +11 -0
  484. package/dist/core/runner-factory.js +36 -0
  485. package/dist/core/runner-factory.js.map +1 -0
  486. package/dist/core/runner-facts.d.ts +135 -0
  487. package/dist/core/runner-facts.js +59 -0
  488. package/dist/core/runner-facts.js.map +1 -0
  489. package/dist/core/runner-model-catalog.d.ts +34 -0
  490. package/dist/core/runner-model-catalog.js +109 -0
  491. package/dist/core/runner-model-catalog.js.map +1 -0
  492. package/dist/core/runner-runtime.d.ts +40 -0
  493. package/dist/core/runner-runtime.js +88 -0
  494. package/dist/core/runner-runtime.js.map +1 -0
  495. package/dist/core/runner-stderr.d.ts +2 -0
  496. package/dist/core/runner-stderr.js +20 -0
  497. package/dist/core/runner-stderr.js.map +1 -0
  498. package/dist/core/runner-tool-grants.d.ts +19 -0
  499. package/dist/core/runner-tool-grants.js +54 -0
  500. package/dist/core/runner-tool-grants.js.map +1 -0
  501. package/dist/core/secret-redaction.d.ts +20 -0
  502. package/dist/core/secret-redaction.js +95 -0
  503. package/dist/core/secret-redaction.js.map +1 -0
  504. package/dist/core/session-process.d.ts +43 -0
  505. package/dist/core/session-process.js +363 -0
  506. package/dist/core/session-process.js.map +1 -0
  507. package/dist/core/shell-env.d.ts +17 -0
  508. package/dist/core/shell-env.js +51 -0
  509. package/dist/core/shell-env.js.map +1 -0
  510. package/dist/core/ui-events.d.ts +356 -0
  511. package/dist/core/ui-events.js +13 -0
  512. package/dist/core/ui-events.js.map +1 -0
  513. package/dist/core/usage-limit.d.ts +42 -0
  514. package/dist/core/usage-limit.js +152 -0
  515. package/dist/core/usage-limit.js.map +1 -0
  516. package/dist/core/usage.d.ts +11 -0
  517. package/dist/core/usage.js +15 -0
  518. package/dist/core/usage.js.map +1 -0
  519. package/dist/core/v1-text-coalescer.d.ts +36 -0
  520. package/dist/core/v1-text-coalescer.js +72 -0
  521. package/dist/core/v1-text-coalescer.js.map +1 -0
  522. package/dist/data-gitignore.d.ts +6 -0
  523. package/dist/data-gitignore.js +80 -0
  524. package/dist/data-gitignore.js.map +1 -0
  525. package/dist/delegation/capacity.d.ts +15 -0
  526. package/dist/delegation/capacity.js +30 -0
  527. package/dist/delegation/capacity.js.map +1 -0
  528. package/dist/delegation/cli.d.ts +5 -0
  529. package/dist/delegation/cli.js +572 -0
  530. package/dist/delegation/cli.js.map +1 -0
  531. package/dist/delegation/context.d.ts +40 -0
  532. package/dist/delegation/context.js +398 -0
  533. package/dist/delegation/context.js.map +1 -0
  534. package/dist/delegation/conversation-send.d.ts +64 -0
  535. package/dist/delegation/conversation-send.js +74 -0
  536. package/dist/delegation/conversation-send.js.map +1 -0
  537. package/dist/delegation/conversations.d.ts +2186 -0
  538. package/dist/delegation/conversations.js +285 -0
  539. package/dist/delegation/conversations.js.map +1 -0
  540. package/dist/delegation/credentials.d.ts +21 -0
  541. package/dist/delegation/credentials.js +66 -0
  542. package/dist/delegation/credentials.js.map +1 -0
  543. package/dist/delegation/destroy-observation.d.ts +42 -0
  544. package/dist/delegation/destroy-observation.js +115 -0
  545. package/dist/delegation/destroy-observation.js.map +1 -0
  546. package/dist/delegation/effort.d.ts +1 -0
  547. package/dist/delegation/effort.js +11 -0
  548. package/dist/delegation/effort.js.map +1 -0
  549. package/dist/delegation/execution-identity.d.ts +257 -0
  550. package/dist/delegation/execution-identity.js +253 -0
  551. package/dist/delegation/execution-identity.js.map +1 -0
  552. package/dist/delegation/execution-settings.d.ts +11 -0
  553. package/dist/delegation/execution-settings.js +65 -0
  554. package/dist/delegation/execution-settings.js.map +1 -0
  555. package/dist/delegation/idle-test-app.d.ts +4 -0
  556. package/dist/delegation/idle-test-app.js +186 -0
  557. package/dist/delegation/idle-test-app.js.map +1 -0
  558. package/dist/delegation/input.d.ts +12 -0
  559. package/dist/delegation/input.js +50 -0
  560. package/dist/delegation/input.js.map +1 -0
  561. package/dist/delegation/park-notice.d.ts +45 -0
  562. package/dist/delegation/park-notice.js +81 -0
  563. package/dist/delegation/park-notice.js.map +1 -0
  564. package/dist/delegation/policy.d.ts +27 -0
  565. package/dist/delegation/policy.js +110 -0
  566. package/dist/delegation/policy.js.map +1 -0
  567. package/dist/delegation/process-liveness.d.ts +98 -0
  568. package/dist/delegation/process-liveness.js +213 -0
  569. package/dist/delegation/process-liveness.js.map +1 -0
  570. package/dist/delegation/provision.d.ts +36 -0
  571. package/dist/delegation/provision.js +218 -0
  572. package/dist/delegation/provision.js.map +1 -0
  573. package/dist/delegation/questions.d.ts +24 -0
  574. package/dist/delegation/questions.js +56 -0
  575. package/dist/delegation/questions.js.map +1 -0
  576. package/dist/delegation/readiness.d.ts +13 -0
  577. package/dist/delegation/readiness.js +19 -0
  578. package/dist/delegation/readiness.js.map +1 -0
  579. package/dist/delegation/results.d.ts +13 -0
  580. package/dist/delegation/results.js +153 -0
  581. package/dist/delegation/results.js.map +1 -0
  582. package/dist/delegation/retry-backoff.d.ts +31 -0
  583. package/dist/delegation/retry-backoff.js +26 -0
  584. package/dist/delegation/retry-backoff.js.map +1 -0
  585. package/dist/delegation/routes.d.ts +1017 -0
  586. package/dist/delegation/routes.js +85 -0
  587. package/dist/delegation/routes.js.map +1 -0
  588. package/dist/delegation/scratch-cleanup.d.ts +33 -0
  589. package/dist/delegation/scratch-cleanup.js +155 -0
  590. package/dist/delegation/scratch-cleanup.js.map +1 -0
  591. package/dist/delegation/service.d.ts +264 -0
  592. package/dist/delegation/service.js +807 -0
  593. package/dist/delegation/service.js.map +1 -0
  594. package/dist/delegation/task-discovery.d.ts +6 -0
  595. package/dist/delegation/task-discovery.js +27 -0
  596. package/dist/delegation/task-discovery.js.map +1 -0
  597. package/dist/delegation/transport.d.ts +995 -0
  598. package/dist/delegation/transport.js +22 -0
  599. package/dist/delegation/transport.js.map +1 -0
  600. package/dist/delegation/wait.d.ts +7 -0
  601. package/dist/delegation/wait.js +44 -0
  602. package/dist/delegation/wait.js.map +1 -0
  603. package/dist/delegation/windows-test-app.d.ts +5 -0
  604. package/dist/delegation/windows-test-app.js +64 -0
  605. package/dist/delegation/windows-test-app.js.map +1 -0
  606. package/dist/delegation/windows-workspace-identity.d.ts +3 -0
  607. package/dist/delegation/windows-workspace-identity.js +23 -0
  608. package/dist/delegation/windows-workspace-identity.js.map +1 -0
  609. package/dist/delegation/worker-cleanup.d.ts +53 -0
  610. package/dist/delegation/worker-cleanup.js +330 -0
  611. package/dist/delegation/worker-cleanup.js.map +1 -0
  612. package/dist/delegation/workspace.d.ts +40 -0
  613. package/dist/delegation/workspace.js +592 -0
  614. package/dist/delegation/workspace.js.map +1 -0
  615. package/dist/detached-process.d.ts +134 -0
  616. package/dist/detached-process.js +460 -0
  617. package/dist/detached-process.js.map +1 -0
  618. package/dist/discovery/catalog.d.ts +16 -0
  619. package/dist/discovery/catalog.js +31 -0
  620. package/dist/discovery/catalog.js.map +1 -0
  621. package/dist/discovery/cli.d.ts +8 -0
  622. package/dist/discovery/cli.js +122 -0
  623. package/dist/discovery/cli.js.map +1 -0
  624. package/dist/git-command.d.ts +7 -0
  625. package/dist/git-command.js +8 -0
  626. package/dist/git-command.js.map +1 -0
  627. package/dist/git-diff-base.d.ts +41 -0
  628. package/dist/git-diff-base.js +116 -0
  629. package/dist/git-diff-base.js.map +1 -0
  630. package/dist/git-index-copy.d.ts +4 -0
  631. package/dist/git-index-copy.js +10 -0
  632. package/dist/git-index-copy.js.map +1 -0
  633. package/dist/git-private-index.d.ts +11 -0
  634. package/dist/git-private-index.js +51 -0
  635. package/dist/git-private-index.js.map +1 -0
  636. package/dist/git-refs.d.ts +11 -0
  637. package/dist/git-refs.js +14 -0
  638. package/dist/git-refs.js.map +1 -0
  639. package/dist/git-worktree-lock-helper.d.ts +7 -0
  640. package/dist/git-worktree-lock-helper.js +178 -0
  641. package/dist/git-worktree-lock-helper.js.map +1 -0
  642. package/dist/git-worktree-lock.d.ts +17 -0
  643. package/dist/git-worktree-lock.js +90 -0
  644. package/dist/git-worktree-lock.js.map +1 -0
  645. package/dist/git-worktree-release.d.ts +20 -0
  646. package/dist/git-worktree-release.js +27 -0
  647. package/dist/git-worktree-release.js.map +1 -0
  648. package/dist/git-worktree.d.ts +148 -0
  649. package/dist/git-worktree.js +858 -0
  650. package/dist/git-worktree.js.map +1 -0
  651. package/dist/handoff.d.ts +72 -0
  652. package/dist/handoff.js +213 -0
  653. package/dist/handoff.js.map +1 -0
  654. package/dist/headless-run.d.ts +48 -0
  655. package/dist/headless-run.js +158 -0
  656. package/dist/headless-run.js.map +1 -0
  657. package/dist/home/boundary.d.ts +5 -0
  658. package/dist/home/boundary.js +76 -0
  659. package/dist/home/boundary.js.map +1 -0
  660. package/dist/home/changes.d.ts +3 -0
  661. package/dist/home/changes.js +11 -0
  662. package/dist/home/changes.js.map +1 -0
  663. package/dist/home/command.d.ts +9 -0
  664. package/dist/home/command.js +37 -0
  665. package/dist/home/command.js.map +1 -0
  666. package/dist/home/deprecation.d.ts +9 -0
  667. package/dist/home/deprecation.js +17 -0
  668. package/dist/home/deprecation.js.map +1 -0
  669. package/dist/home/display.d.ts +4 -0
  670. package/dist/home/display.js +11 -0
  671. package/dist/home/display.js.map +1 -0
  672. package/dist/home/entry-authorization.d.ts +17 -0
  673. package/dist/home/entry-authorization.js +39 -0
  674. package/dist/home/entry-authorization.js.map +1 -0
  675. package/dist/home/entry.d.ts +16 -0
  676. package/dist/home/entry.js +96 -0
  677. package/dist/home/entry.js.map +1 -0
  678. package/dist/home/file-location.d.ts +14 -0
  679. package/dist/home/file-location.js +24 -0
  680. package/dist/home/file-location.js.map +1 -0
  681. package/dist/home/home.d.ts +42 -0
  682. package/dist/home/home.js +70 -0
  683. package/dist/home/home.js.map +1 -0
  684. package/dist/home/identity.d.ts +22 -0
  685. package/dist/home/identity.js +25 -0
  686. package/dist/home/identity.js.map +1 -0
  687. package/dist/home/install-marker.d.ts +27 -0
  688. package/dist/home/install-marker.js +78 -0
  689. package/dist/home/install-marker.js.map +1 -0
  690. package/dist/home/kind-roots.d.ts +10 -0
  691. package/dist/home/kind-roots.js +36 -0
  692. package/dist/home/kind-roots.js.map +1 -0
  693. package/dist/home/leases.d.ts +14 -0
  694. package/dist/home/leases.js +55 -0
  695. package/dist/home/leases.js.map +1 -0
  696. package/dist/home/legacy-account-paths.d.ts +4 -0
  697. package/dist/home/legacy-account-paths.js +41 -0
  698. package/dist/home/legacy-account-paths.js.map +1 -0
  699. package/dist/home/legacy-merge.d.ts +3 -0
  700. package/dist/home/legacy-merge.js +45 -0
  701. package/dist/home/legacy-merge.js.map +1 -0
  702. package/dist/home/legacy-recovery.d.ts +5 -0
  703. package/dist/home/legacy-recovery.js +154 -0
  704. package/dist/home/legacy-recovery.js.map +1 -0
  705. package/dist/home/legacy-source.d.ts +15 -0
  706. package/dist/home/legacy-source.js +57 -0
  707. package/dist/home/legacy-source.js.map +1 -0
  708. package/dist/home/migrate.d.ts +19 -0
  709. package/dist/home/migrate.js +322 -0
  710. package/dist/home/migrate.js.map +1 -0
  711. package/dist/home/migration-account-source.d.ts +2 -0
  712. package/dist/home/migration-account-source.js +17 -0
  713. package/dist/home/migration-account-source.js.map +1 -0
  714. package/dist/home/migration-accounts.d.ts +23 -0
  715. package/dist/home/migration-accounts.js +174 -0
  716. package/dist/home/migration-accounts.js.map +1 -0
  717. package/dist/home/migration-boot.d.ts +23 -0
  718. package/dist/home/migration-boot.js +84 -0
  719. package/dist/home/migration-boot.js.map +1 -0
  720. package/dist/home/migration-claim.d.ts +4 -0
  721. package/dist/home/migration-claim.js +69 -0
  722. package/dist/home/migration-claim.js.map +1 -0
  723. package/dist/home/migration-cli.d.ts +3 -0
  724. package/dist/home/migration-cli.js +64 -0
  725. package/dist/home/migration-cli.js.map +1 -0
  726. package/dist/home/migration-files.d.ts +14 -0
  727. package/dist/home/migration-files.js +192 -0
  728. package/dist/home/migration-files.js.map +1 -0
  729. package/dist/home/migration-guard.d.ts +2 -0
  730. package/dist/home/migration-guard.js +20 -0
  731. package/dist/home/migration-guard.js.map +1 -0
  732. package/dist/home/migration-plan.d.ts +20 -0
  733. package/dist/home/migration-plan.js +71 -0
  734. package/dist/home/migration-plan.js.map +1 -0
  735. package/dist/home/migration-record.d.ts +79 -0
  736. package/dist/home/migration-record.js +39 -0
  737. package/dist/home/migration-record.js.map +1 -0
  738. package/dist/home/private-files.d.ts +13 -0
  739. package/dist/home/private-files.js +113 -0
  740. package/dist/home/private-files.js.map +1 -0
  741. package/dist/home/process-identity.d.ts +2 -0
  742. package/dist/home/process-identity.js +8 -0
  743. package/dist/home/process-identity.js.map +1 -0
  744. package/dist/home/protected-roots.d.ts +25 -0
  745. package/dist/home/protected-roots.js +91 -0
  746. package/dist/home/protected-roots.js.map +1 -0
  747. package/dist/home/recovery-watch.d.ts +3 -0
  748. package/dist/home/recovery-watch.js +75 -0
  749. package/dist/home/recovery-watch.js.map +1 -0
  750. package/dist/home/recovery.d.ts +10 -0
  751. package/dist/home/recovery.js +94 -0
  752. package/dist/home/recovery.js.map +1 -0
  753. package/dist/home/registry-content.d.ts +2 -0
  754. package/dist/home/registry-content.js +17 -0
  755. package/dist/home/registry-content.js.map +1 -0
  756. package/dist/home/reset-detection.d.ts +5 -0
  757. package/dist/home/reset-detection.js +22 -0
  758. package/dist/home/reset-detection.js.map +1 -0
  759. package/dist/home/resolve.d.ts +10 -0
  760. package/dist/home/resolve.js +28 -0
  761. package/dist/home/resolve.js.map +1 -0
  762. package/dist/home/store.d.ts +48 -0
  763. package/dist/home/store.js +324 -0
  764. package/dist/home/store.js.map +1 -0
  765. package/dist/home/switch.d.ts +2 -0
  766. package/dist/home/switch.js +3 -0
  767. package/dist/home/switch.js.map +1 -0
  768. package/dist/home/version-log.d.ts +48 -0
  769. package/dist/home/version-log.js +216 -0
  770. package/dist/home/version-log.js.map +1 -0
  771. package/dist/home/write-lock.d.ts +6 -0
  772. package/dist/home/write-lock.js +96 -0
  773. package/dist/home/write-lock.js.map +1 -0
  774. package/dist/hsq.d.ts +2 -0
  775. package/dist/hsq.js +3 -0
  776. package/dist/hsq.js.map +1 -0
  777. package/dist/index.d.ts +2 -0
  778. package/dist/index.js +123 -0
  779. package/dist/index.js.map +1 -0
  780. package/dist/install-as-command.d.ts +32 -0
  781. package/dist/install-as-command.js +55 -0
  782. package/dist/install-as-command.js.map +1 -0
  783. package/dist/jobs/cli.d.ts +2 -0
  784. package/dist/jobs/cli.js +53 -0
  785. package/dist/jobs/cli.js.map +1 -0
  786. package/dist/jobs/command.d.ts +9 -0
  787. package/dist/jobs/command.js +19 -0
  788. package/dist/jobs/command.js.map +1 -0
  789. package/dist/jobs/job.d.ts +77 -0
  790. package/dist/jobs/job.js +252 -0
  791. package/dist/jobs/job.js.map +1 -0
  792. package/dist/merge-observations.d.ts +13 -0
  793. package/dist/merge-observations.js +55 -0
  794. package/dist/merge-observations.js.map +1 -0
  795. package/dist/merged-streams.d.ts +13 -0
  796. package/dist/merged-streams.js +33 -0
  797. package/dist/merged-streams.js.map +1 -0
  798. package/dist/open-url.d.ts +2 -0
  799. package/dist/open-url.js +10 -0
  800. package/dist/open-url.js.map +1 -0
  801. package/dist/pack-check.d.ts +17 -0
  802. package/dist/pack-check.js +27 -0
  803. package/dist/pack-check.js.map +1 -0
  804. package/dist/paths.d.ts +118 -0
  805. package/dist/paths.js +192 -0
  806. package/dist/paths.js.map +1 -0
  807. package/dist/planner.d.ts +30 -0
  808. package/dist/planner.js +270 -0
  809. package/dist/planner.js.map +1 -0
  810. package/dist/preview/agent-address.d.ts +34 -0
  811. package/dist/preview/agent-address.js +52 -0
  812. package/dist/preview/agent-address.js.map +1 -0
  813. package/dist/preview/agent-marker.d.ts +17 -0
  814. package/dist/preview/agent-marker.js +71 -0
  815. package/dist/preview/agent-marker.js.map +1 -0
  816. package/dist/preview/browser-launch.d.ts +28 -0
  817. package/dist/preview/browser-launch.js +64 -0
  818. package/dist/preview/browser-launch.js.map +1 -0
  819. package/dist/preview/cdp-proxy.d.ts +54 -0
  820. package/dist/preview/cdp-proxy.js +152 -0
  821. package/dist/preview/cdp-proxy.js.map +1 -0
  822. package/dist/preview/cdp.d.ts +49 -0
  823. package/dist/preview/cdp.js +167 -0
  824. package/dist/preview/cdp.js.map +1 -0
  825. package/dist/preview/chromium-launch-progress.d.ts +10 -0
  826. package/dist/preview/chromium-launch-progress.js +48 -0
  827. package/dist/preview/chromium-launch-progress.js.map +1 -0
  828. package/dist/preview/chromium.d.ts +91 -0
  829. package/dist/preview/chromium.js +500 -0
  830. package/dist/preview/chromium.js.map +1 -0
  831. package/dist/preview/density.d.ts +17 -0
  832. package/dist/preview/density.js +62 -0
  833. package/dist/preview/density.js.map +1 -0
  834. package/dist/preview/dev-server.d.ts +68 -0
  835. package/dist/preview/dev-server.js +318 -0
  836. package/dist/preview/dev-server.js.map +1 -0
  837. package/dist/preview/host.d.ts +215 -0
  838. package/dist/preview/host.js +954 -0
  839. package/dist/preview/host.js.map +1 -0
  840. package/dist/preview/registration.d.ts +68 -0
  841. package/dist/preview/registration.js +111 -0
  842. package/dist/preview/registration.js.map +1 -0
  843. package/dist/preview/run-tools.d.ts +9 -0
  844. package/dist/preview/run-tools.js +72 -0
  845. package/dist/preview/run-tools.js.map +1 -0
  846. package/dist/preview/session.d.ts +139 -0
  847. package/dist/preview/session.js +479 -0
  848. package/dist/preview/session.js.map +1 -0
  849. package/dist/preview/url.d.ts +6 -0
  850. package/dist/preview/url.js +17 -0
  851. package/dist/preview/url.js.map +1 -0
  852. package/dist/process-wait/exit-file.d.ts +29 -0
  853. package/dist/process-wait/exit-file.js +67 -0
  854. package/dist/process-wait/exit-file.js.map +1 -0
  855. package/dist/process-wait/supervisor.d.ts +30 -0
  856. package/dist/process-wait/supervisor.js +71 -0
  857. package/dist/process-wait/supervisor.js.map +1 -0
  858. package/dist/project-commands.d.ts +14 -0
  859. package/dist/project-commands.js +91 -0
  860. package/dist/project-commands.js.map +1 -0
  861. package/dist/project-migration/answer.d.ts +23 -0
  862. package/dist/project-migration/answer.js +37 -0
  863. package/dist/project-migration/answer.js.map +1 -0
  864. package/dist/project-migration/auto.d.ts +73 -0
  865. package/dist/project-migration/auto.js +161 -0
  866. package/dist/project-migration/auto.js.map +1 -0
  867. package/dist/project-migration/cli.d.ts +18 -0
  868. package/dist/project-migration/cli.js +57 -0
  869. package/dist/project-migration/cli.js.map +1 -0
  870. package/dist/project-migration/containment.d.ts +52 -0
  871. package/dist/project-migration/containment.js +200 -0
  872. package/dist/project-migration/containment.js.map +1 -0
  873. package/dist/project-migration/durable.d.ts +25 -0
  874. package/dist/project-migration/durable.js +69 -0
  875. package/dist/project-migration/durable.js.map +1 -0
  876. package/dist/project-migration/engine.d.ts +47 -0
  877. package/dist/project-migration/engine.js +103 -0
  878. package/dist/project-migration/engine.js.map +1 -0
  879. package/dist/project-migration/fresh.d.ts +4 -0
  880. package/dist/project-migration/fresh.js +25 -0
  881. package/dist/project-migration/fresh.js.map +1 -0
  882. package/dist/project-migration/journal.d.ts +139 -0
  883. package/dist/project-migration/journal.js +69 -0
  884. package/dist/project-migration/journal.js.map +1 -0
  885. package/dist/project-migration/live.d.ts +48 -0
  886. package/dist/project-migration/live.js +148 -0
  887. package/dist/project-migration/live.js.map +1 -0
  888. package/dist/project-migration/offline.d.ts +25 -0
  889. package/dist/project-migration/offline.js +54 -0
  890. package/dist/project-migration/offline.js.map +1 -0
  891. package/dist/project-migration/plan.d.ts +91 -0
  892. package/dist/project-migration/plan.js +466 -0
  893. package/dist/project-migration/plan.js.map +1 -0
  894. package/dist/project-migration/recovery.d.ts +28 -0
  895. package/dist/project-migration/recovery.js +78 -0
  896. package/dist/project-migration/recovery.js.map +1 -0
  897. package/dist/project-migration/steps.d.ts +18 -0
  898. package/dist/project-migration/steps.js +312 -0
  899. package/dist/project-migration/steps.js.map +1 -0
  900. package/dist/project-paths.d.ts +61 -0
  901. package/dist/project-paths.js +185 -0
  902. package/dist/project-paths.js.map +1 -0
  903. package/dist/release/compatibility.d.ts +12 -0
  904. package/dist/release/compatibility.js +62 -0
  905. package/dist/release/compatibility.js.map +1 -0
  906. package/dist/release/manifests.d.ts +112 -0
  907. package/dist/release/manifests.js +104 -0
  908. package/dist/release/manifests.js.map +1 -0
  909. package/dist/release/publication.d.ts +3 -0
  910. package/dist/release/publication.js +34 -0
  911. package/dist/release/publication.js.map +1 -0
  912. package/dist/release/snapshot.d.ts +67 -0
  913. package/dist/release/snapshot.js +97 -0
  914. package/dist/release/snapshot.js.map +1 -0
  915. package/dist/release/stable.d.ts +38 -0
  916. package/dist/release/stable.js +55 -0
  917. package/dist/release/stable.js.map +1 -0
  918. package/dist/remote-settings-cli.d.ts +24 -0
  919. package/dist/remote-settings-cli.js +156 -0
  920. package/dist/remote-settings-cli.js.map +1 -0
  921. package/dist/remote-settings.d.ts +41 -0
  922. package/dist/remote-settings.js +110 -0
  923. package/dist/remote-settings.js.map +1 -0
  924. package/dist/runs/agent-tmpdir-removal.d.ts +15 -0
  925. package/dist/runs/agent-tmpdir-removal.js +60 -0
  926. package/dist/runs/agent-tmpdir-removal.js.map +1 -0
  927. package/dist/runs/agent-tmpdir.d.ts +119 -0
  928. package/dist/runs/agent-tmpdir.js +855 -0
  929. package/dist/runs/agent-tmpdir.js.map +1 -0
  930. package/dist/runs/archive-family.d.ts +33 -0
  931. package/dist/runs/archive-family.js +90 -0
  932. package/dist/runs/archive-family.js.map +1 -0
  933. package/dist/runs/arm-repo-handle.d.ts +10 -0
  934. package/dist/runs/arm-repo-handle.js +45 -0
  935. package/dist/runs/arm-repo-handle.js.map +1 -0
  936. package/dist/runs/auto-name.d.ts +77 -0
  937. package/dist/runs/auto-name.js +179 -0
  938. package/dist/runs/auto-name.js.map +1 -0
  939. package/dist/runs/claim-families.d.ts +37 -0
  940. package/dist/runs/claim-families.js +101 -0
  941. package/dist/runs/claim-families.js.map +1 -0
  942. package/dist/runs/client-request.d.ts +11 -0
  943. package/dist/runs/client-request.js +26 -0
  944. package/dist/runs/client-request.js.map +1 -0
  945. package/dist/runs/cold-reads.d.ts +40 -0
  946. package/dist/runs/cold-reads.js +56 -0
  947. package/dist/runs/cold-reads.js.map +1 -0
  948. package/dist/runs/conversation-identity.d.ts +19 -0
  949. package/dist/runs/conversation-identity.js +31 -0
  950. package/dist/runs/conversation-identity.js.map +1 -0
  951. package/dist/runs/delegation-state.d.ts +409 -0
  952. package/dist/runs/delegation-state.js +22 -0
  953. package/dist/runs/delegation-state.js.map +1 -0
  954. package/dist/runs/event-history-agent-context.d.ts +15 -0
  955. package/dist/runs/event-history-agent-context.js +119 -0
  956. package/dist/runs/event-history-agent-context.js.map +1 -0
  957. package/dist/runs/event-history-context.d.ts +15 -0
  958. package/dist/runs/event-history-context.js +109 -0
  959. package/dist/runs/event-history-context.js.map +1 -0
  960. package/dist/runs/event-history.d.ts +53 -0
  961. package/dist/runs/event-history.js +563 -0
  962. package/dist/runs/event-history.js.map +1 -0
  963. package/dist/runs/exit-events.d.ts +27 -0
  964. package/dist/runs/exit-events.js +46 -0
  965. package/dist/runs/exit-events.js.map +1 -0
  966. package/dist/runs/history-compressor.d.ts +29 -0
  967. package/dist/runs/history-compressor.js +116 -0
  968. package/dist/runs/history-compressor.js.map +1 -0
  969. package/dist/runs/history-file.d.ts +36 -0
  970. package/dist/runs/history-file.js +464 -0
  971. package/dist/runs/history-file.js.map +1 -0
  972. package/dist/runs/history-stream.d.ts +2 -0
  973. package/dist/runs/history-stream.js +62 -0
  974. package/dist/runs/history-stream.js.map +1 -0
  975. package/dist/runs/legacy-index.d.ts +49 -0
  976. package/dist/runs/legacy-index.js +156 -0
  977. package/dist/runs/legacy-index.js.map +1 -0
  978. package/dist/runs/legacy-run-rows.d.ts +12 -0
  979. package/dist/runs/legacy-run-rows.js +33 -0
  980. package/dist/runs/legacy-run-rows.js.map +1 -0
  981. package/dist/runs/legacy-waits.d.ts +64 -0
  982. package/dist/runs/legacy-waits.js +335 -0
  983. package/dist/runs/legacy-waits.js.map +1 -0
  984. package/dist/runs/live-item-snapshots.d.ts +15 -0
  985. package/dist/runs/live-item-snapshots.js +95 -0
  986. package/dist/runs/live-item-snapshots.js.map +1 -0
  987. package/dist/runs/loaded-run-exits.d.ts +6 -0
  988. package/dist/runs/loaded-run-exits.js +32 -0
  989. package/dist/runs/loaded-run-exits.js.map +1 -0
  990. package/dist/runs/loaded-run-healing.d.ts +3 -0
  991. package/dist/runs/loaded-run-healing.js +17 -0
  992. package/dist/runs/loaded-run-healing.js.map +1 -0
  993. package/dist/runs/outcome-commit.d.ts +119 -0
  994. package/dist/runs/outcome-commit.js +155 -0
  995. package/dist/runs/outcome-commit.js.map +1 -0
  996. package/dist/runs/owned-run-create.d.ts +33 -0
  997. package/dist/runs/owned-run-create.js +98 -0
  998. package/dist/runs/owned-run-create.js.map +1 -0
  999. package/dist/runs/project-run-connection.d.ts +76 -0
  1000. package/dist/runs/project-run-connection.js +287 -0
  1001. package/dist/runs/project-run-connection.js.map +1 -0
  1002. package/dist/runs/project-run-sources.d.ts +21 -0
  1003. package/dist/runs/project-run-sources.js +86 -0
  1004. package/dist/runs/project-run-sources.js.map +1 -0
  1005. package/dist/runs/pull-requests.d.ts +14 -0
  1006. package/dist/runs/pull-requests.js +96 -0
  1007. package/dist/runs/pull-requests.js.map +1 -0
  1008. package/dist/runs/raw-record.d.ts +40 -0
  1009. package/dist/runs/raw-record.js +133 -0
  1010. package/dist/runs/raw-record.js.map +1 -0
  1011. package/dist/runs/record-write-rules.d.ts +129 -0
  1012. package/dist/runs/record-write-rules.js +326 -0
  1013. package/dist/runs/record-write-rules.js.map +1 -0
  1014. package/dist/runs/report-rows.d.ts +36 -0
  1015. package/dist/runs/report-rows.js +102 -0
  1016. package/dist/runs/report-rows.js.map +1 -0
  1017. package/dist/runs/retention.d.ts +91 -0
  1018. package/dist/runs/retention.js +193 -0
  1019. package/dist/runs/retention.js.map +1 -0
  1020. package/dist/runs/review-gate.d.ts +18 -0
  1021. package/dist/runs/review-gate.js +22 -0
  1022. package/dist/runs/review-gate.js.map +1 -0
  1023. package/dist/runs/run-claims.d.ts +30 -0
  1024. package/dist/runs/run-claims.js +52 -0
  1025. package/dist/runs/run-claims.js.map +1 -0
  1026. package/dist/runs/run-database-peer-page.d.ts +12 -0
  1027. package/dist/runs/run-database-peer-page.js +25 -0
  1028. package/dist/runs/run-database-peer-page.js.map +1 -0
  1029. package/dist/runs/run-database-row.d.ts +39 -0
  1030. package/dist/runs/run-database-row.js +83 -0
  1031. package/dist/runs/run-database-row.js.map +1 -0
  1032. package/dist/runs/run-database-version.d.ts +14 -0
  1033. package/dist/runs/run-database-version.js +19 -0
  1034. package/dist/runs/run-database-version.js.map +1 -0
  1035. package/dist/runs/run-database.d.ts +389 -0
  1036. package/dist/runs/run-database.js +957 -0
  1037. package/dist/runs/run-database.js.map +1 -0
  1038. package/dist/runs/run-exits.d.ts +4510 -0
  1039. package/dist/runs/run-exits.js +191 -0
  1040. package/dist/runs/run-exits.js.map +1 -0
  1041. package/dist/runs/run-index.d.ts +36 -0
  1042. package/dist/runs/run-index.js +262 -0
  1043. package/dist/runs/run-index.js.map +1 -0
  1044. package/dist/runs/run-references.d.ts +61 -0
  1045. package/dist/runs/run-references.js +421 -0
  1046. package/dist/runs/run-references.js.map +1 -0
  1047. package/dist/runs/run-row.d.ts +14 -0
  1048. package/dist/runs/run-row.js +56 -0
  1049. package/dist/runs/run-row.js.map +1 -0
  1050. package/dist/runs/run-summary-page.d.ts +36 -0
  1051. package/dist/runs/run-summary-page.js +46 -0
  1052. package/dist/runs/run-summary-page.js.map +1 -0
  1053. package/dist/runs/run-title.d.ts +8 -0
  1054. package/dist/runs/run-title.js +28 -0
  1055. package/dist/runs/run-title.js.map +1 -0
  1056. package/dist/runs/store-open-error.d.ts +24 -0
  1057. package/dist/runs/store-open-error.js +62 -0
  1058. package/dist/runs/store-open-error.js.map +1 -0
  1059. package/dist/runs/store.d.ts +3974 -0
  1060. package/dist/runs/store.js +3516 -0
  1061. package/dist/runs/store.js.map +1 -0
  1062. package/dist/runs/task-markers.d.ts +29 -0
  1063. package/dist/runs/task-markers.js +78 -0
  1064. package/dist/runs/task-markers.js.map +1 -0
  1065. package/dist/runs/task-refs.d.ts +39 -0
  1066. package/dist/runs/task-refs.js +107 -0
  1067. package/dist/runs/task-refs.js.map +1 -0
  1068. package/dist/runs/transcript-facts-fold.d.ts +64 -0
  1069. package/dist/runs/transcript-facts-fold.js +109 -0
  1070. package/dist/runs/transcript-facts-fold.js.map +1 -0
  1071. package/dist/runs/transcript-facts-load.d.ts +11 -0
  1072. package/dist/runs/transcript-facts-load.js +66 -0
  1073. package/dist/runs/transcript-facts-load.js.map +1 -0
  1074. package/dist/runs/transcript-facts-queue.d.ts +30 -0
  1075. package/dist/runs/transcript-facts-queue.js +227 -0
  1076. package/dist/runs/transcript-facts-queue.js.map +1 -0
  1077. package/dist/runs/transcript-facts-worker.d.ts +15 -0
  1078. package/dist/runs/transcript-facts-worker.js +26 -0
  1079. package/dist/runs/transcript-facts-worker.js.map +1 -0
  1080. package/dist/runs/transcript-facts.d.ts +40 -0
  1081. package/dist/runs/transcript-facts.js +193 -0
  1082. package/dist/runs/transcript-facts.js.map +1 -0
  1083. package/dist/runs/ui-event-sink.d.ts +59 -0
  1084. package/dist/runs/ui-event-sink.js +197 -0
  1085. package/dist/runs/ui-event-sink.js.map +1 -0
  1086. package/dist/runs/wait-capacity.d.ts +8 -0
  1087. package/dist/runs/wait-capacity.js +28 -0
  1088. package/dist/runs/wait-capacity.js.map +1 -0
  1089. package/dist/runs/wait-phases.d.ts +4 -0
  1090. package/dist/runs/wait-phases.js +11 -0
  1091. package/dist/runs/wait-phases.js.map +1 -0
  1092. package/dist/runs/wait-registration-write.d.ts +5 -0
  1093. package/dist/runs/wait-registration-write.js +35 -0
  1094. package/dist/runs/wait-registration-write.js.map +1 -0
  1095. package/dist/runs/webhook.d.ts +193 -0
  1096. package/dist/runs/webhook.js +362 -0
  1097. package/dist/runs/webhook.js.map +1 -0
  1098. package/dist/runs/worker-deletion-proof.d.ts +13 -0
  1099. package/dist/runs/worker-deletion-proof.js +13 -0
  1100. package/dist/runs/worker-deletion-proof.js.map +1 -0
  1101. package/dist/runs/worker-execution.d.ts +22 -0
  1102. package/dist/runs/worker-execution.js +30 -0
  1103. package/dist/runs/worker-execution.js.map +1 -0
  1104. package/dist/runs/worker-resource-holders.d.ts +17 -0
  1105. package/dist/runs/worker-resource-holders.js +34 -0
  1106. package/dist/runs/worker-resource-holders.js.map +1 -0
  1107. package/dist/runs/worker-result-commit.d.ts +26 -0
  1108. package/dist/runs/worker-result-commit.js +121 -0
  1109. package/dist/runs/worker-result-commit.js.map +1 -0
  1110. package/dist/self-update/checkouts.d.ts +46 -0
  1111. package/dist/self-update/checkouts.js +284 -0
  1112. package/dist/self-update/checkouts.js.map +1 -0
  1113. package/dist/self-update/cli.d.ts +19 -0
  1114. package/dist/self-update/cli.js +243 -0
  1115. package/dist/self-update/cli.js.map +1 -0
  1116. package/dist/self-update/installer.d.ts +24 -0
  1117. package/dist/self-update/installer.js +139 -0
  1118. package/dist/self-update/installer.js.map +1 -0
  1119. package/dist/self-update/launcher.d.ts +30 -0
  1120. package/dist/self-update/launcher.js +172 -0
  1121. package/dist/self-update/launcher.js.map +1 -0
  1122. package/dist/self-update/layout.d.ts +108 -0
  1123. package/dist/self-update/layout.js +276 -0
  1124. package/dist/self-update/layout.js.map +1 -0
  1125. package/dist/self-update/pulls.d.ts +30 -0
  1126. package/dist/self-update/pulls.js +128 -0
  1127. package/dist/self-update/pulls.js.map +1 -0
  1128. package/dist/self-update/registry.d.ts +37 -0
  1129. package/dist/self-update/registry.js +86 -0
  1130. package/dist/self-update/registry.js.map +1 -0
  1131. package/dist/self-update/restart.d.ts +25 -0
  1132. package/dist/self-update/restart.js +79 -0
  1133. package/dist/self-update/restart.js.map +1 -0
  1134. package/dist/self-update/semver.d.ts +19 -0
  1135. package/dist/self-update/semver.js +79 -0
  1136. package/dist/self-update/semver.js.map +1 -0
  1137. package/dist/self-update/service.d.ts +115 -0
  1138. package/dist/self-update/service.js +332 -0
  1139. package/dist/self-update/service.js.map +1 -0
  1140. package/dist/self-update/supervisor.d.ts +10 -0
  1141. package/dist/self-update/supervisor.js +52 -0
  1142. package/dist/self-update/supervisor.js.map +1 -0
  1143. package/dist/serve-boot.d.ts +60 -0
  1144. package/dist/serve-boot.js +142 -0
  1145. package/dist/serve-boot.js.map +1 -0
  1146. package/dist/serve-command.d.ts +71 -0
  1147. package/dist/serve-command.js +168 -0
  1148. package/dist/serve-command.js.map +1 -0
  1149. package/dist/serve-listener.d.ts +12 -0
  1150. package/dist/serve-listener.js +52 -0
  1151. package/dist/serve-listener.js.map +1 -0
  1152. package/dist/server/activity-project-topic.d.ts +44 -0
  1153. package/dist/server/activity-project-topic.js +137 -0
  1154. package/dist/server/activity-project-topic.js.map +1 -0
  1155. package/dist/server/activity-routes.d.ts +317 -0
  1156. package/dist/server/activity-routes.js +117 -0
  1157. package/dist/server/activity-routes.js.map +1 -0
  1158. package/dist/server/activity-sources.d.ts +26 -0
  1159. package/dist/server/activity-sources.js +45 -0
  1160. package/dist/server/activity-sources.js.map +1 -0
  1161. package/dist/server/activity-topic.d.ts +33 -0
  1162. package/dist/server/activity-topic.js +48 -0
  1163. package/dist/server/activity-topic.js.map +1 -0
  1164. package/dist/server/app-type.d.ts +6 -0
  1165. package/dist/server/app-type.js +2 -0
  1166. package/dist/server/app-type.js.map +1 -0
  1167. package/dist/server/archive-on-merge.d.ts +45 -0
  1168. package/dist/server/archive-on-merge.js +242 -0
  1169. package/dist/server/archive-on-merge.js.map +1 -0
  1170. package/dist/server/automation-log-retry.d.ts +27 -0
  1171. package/dist/server/automation-log-retry.js +88 -0
  1172. package/dist/server/automation-log-retry.js.map +1 -0
  1173. package/dist/server/capabilities.d.ts +69 -0
  1174. package/dist/server/capabilities.js +111 -0
  1175. package/dist/server/capabilities.js.map +1 -0
  1176. package/dist/server/checkout-progress.d.ts +10 -0
  1177. package/dist/server/checkout-progress.js +27 -0
  1178. package/dist/server/checkout-progress.js.map +1 -0
  1179. package/dist/server/checkout.d.ts +153 -0
  1180. package/dist/server/checkout.js +323 -0
  1181. package/dist/server/checkout.js.map +1 -0
  1182. package/dist/server/cockpit-ownership.d.ts +112 -0
  1183. package/dist/server/cockpit-ownership.js +420 -0
  1184. package/dist/server/cockpit-ownership.js.map +1 -0
  1185. package/dist/server/cold-repo-handles.d.ts +17 -0
  1186. package/dist/server/cold-repo-handles.js +82 -0
  1187. package/dist/server/cold-repo-handles.js.map +1 -0
  1188. package/dist/server/completion-actions.d.ts +37 -0
  1189. package/dist/server/completion-actions.js +261 -0
  1190. package/dist/server/completion-actions.js.map +1 -0
  1191. package/dist/server/config-merge.d.ts +11 -0
  1192. package/dist/server/config-merge.js +74 -0
  1193. package/dist/server/config-merge.js.map +1 -0
  1194. package/dist/server/create-project.d.ts +71 -0
  1195. package/dist/server/create-project.js +467 -0
  1196. package/dist/server/create-project.js.map +1 -0
  1197. package/dist/server/forge/draft-pr.d.ts +8 -0
  1198. package/dist/server/forge/draft-pr.js +123 -0
  1199. package/dist/server/forge/draft-pr.js.map +1 -0
  1200. package/dist/server/forge/github-filters.d.ts +22 -0
  1201. package/dist/server/forge/github-filters.js +128 -0
  1202. package/dist/server/forge/github-filters.js.map +1 -0
  1203. package/dist/server/forge/github-merge-requirements.d.ts +18 -0
  1204. package/dist/server/forge/github-merge-requirements.js +148 -0
  1205. package/dist/server/forge/github-merge-requirements.js.map +1 -0
  1206. package/dist/server/forge/github-merge-state.d.ts +27 -0
  1207. package/dist/server/forge/github-merge-state.js +248 -0
  1208. package/dist/server/forge/github-merge-state.js.map +1 -0
  1209. package/dist/server/forge/github-timeline.d.ts +117 -0
  1210. package/dist/server/forge/github-timeline.js +273 -0
  1211. package/dist/server/forge/github-timeline.js.map +1 -0
  1212. package/dist/server/forge/github.d.ts +393 -0
  1213. package/dist/server/forge/github.js +2881 -0
  1214. package/dist/server/forge/github.js.map +1 -0
  1215. package/dist/server/forge/index.d.ts +47 -0
  1216. package/dist/server/forge/index.js +81 -0
  1217. package/dist/server/forge/index.js.map +1 -0
  1218. package/dist/server/forge/repo-handle-discovery.d.ts +16 -0
  1219. package/dist/server/forge/repo-handle-discovery.js +2 -0
  1220. package/dist/server/forge/repo-handle-discovery.js.map +1 -0
  1221. package/dist/server/forge/types.d.ts +278 -0
  1222. package/dist/server/forge/types.js +2 -0
  1223. package/dist/server/forge/types.js.map +1 -0
  1224. package/dist/server/fs-browse.d.ts +82 -0
  1225. package/dist/server/fs-browse.js +217 -0
  1226. package/dist/server/fs-browse.js.map +1 -0
  1227. package/dist/server/git-changes.d.ts +205 -0
  1228. package/dist/server/git-changes.js +531 -0
  1229. package/dist/server/git-changes.js.map +1 -0
  1230. package/dist/server/git.d.ts +52 -0
  1231. package/dist/server/git.js +174 -0
  1232. package/dist/server/git.js.map +1 -0
  1233. package/dist/server/home-recovery-routes.d.ts +171 -0
  1234. package/dist/server/home-recovery-routes.js +56 -0
  1235. package/dist/server/home-recovery-routes.js.map +1 -0
  1236. package/dist/server/launch-key.d.ts +5 -0
  1237. package/dist/server/launch-key.js +35 -0
  1238. package/dist/server/launch-key.js.map +1 -0
  1239. package/dist/server/live-routes.d.ts +73 -0
  1240. package/dist/server/live-routes.js +161 -0
  1241. package/dist/server/live-routes.js.map +1 -0
  1242. package/dist/server/open-in-app.d.ts +57 -0
  1243. package/dist/server/open-in-app.js +178 -0
  1244. package/dist/server/open-in-app.js.map +1 -0
  1245. package/dist/server/open-in-targets.d.ts +53 -0
  1246. package/dist/server/open-in-targets.js +112 -0
  1247. package/dist/server/open-in-targets.js.map +1 -0
  1248. package/dist/server/open-in-terminal.d.ts +73 -0
  1249. package/dist/server/open-in-terminal.js +160 -0
  1250. package/dist/server/open-in-terminal.js.map +1 -0
  1251. package/dist/server/preview-cdp-socket.d.ts +21 -0
  1252. package/dist/server/preview-cdp-socket.js +112 -0
  1253. package/dist/server/preview-cdp-socket.js.map +1 -0
  1254. package/dist/server/preview-socket.d.ts +36 -0
  1255. package/dist/server/preview-socket.js +142 -0
  1256. package/dist/server/preview-socket.js.map +1 -0
  1257. package/dist/server/preview-sockets.d.ts +14 -0
  1258. package/dist/server/preview-sockets.js +18 -0
  1259. package/dist/server/preview-sockets.js.map +1 -0
  1260. package/dist/server/project-context.d.ts +218 -0
  1261. package/dist/server/project-context.js +525 -0
  1262. package/dist/server/project-context.js.map +1 -0
  1263. package/dist/server/project-run-files.d.ts +13 -0
  1264. package/dist/server/project-run-files.js +52 -0
  1265. package/dist/server/project-run-files.js.map +1 -0
  1266. package/dist/server/provider-action-gate.d.ts +5 -0
  1267. package/dist/server/provider-action-gate.js +28 -0
  1268. package/dist/server/provider-action-gate.js.map +1 -0
  1269. package/dist/server/provider-auth-runtime.d.ts +34 -0
  1270. package/dist/server/provider-auth-runtime.js +118 -0
  1271. package/dist/server/provider-auth-runtime.js.map +1 -0
  1272. package/dist/server/repo-branch-forge.d.ts +61 -0
  1273. package/dist/server/repo-branch-forge.js +158 -0
  1274. package/dist/server/repo-branch-forge.js.map +1 -0
  1275. package/dist/server/repo-branch-sweep.d.ts +21 -0
  1276. package/dist/server/repo-branch-sweep.js +64 -0
  1277. package/dist/server/repo-branch-sweep.js.map +1 -0
  1278. package/dist/server/repo-branches.d.ts +103 -0
  1279. package/dist/server/repo-branches.js +804 -0
  1280. package/dist/server/repo-branches.js.map +1 -0
  1281. package/dist/server/repo-pull.d.ts +18 -0
  1282. package/dist/server/repo-pull.js +97 -0
  1283. package/dist/server/repo-pull.js.map +1 -0
  1284. package/dist/server/reports-api.d.ts +90 -0
  1285. package/dist/server/reports-api.js +21 -0
  1286. package/dist/server/reports-api.js.map +1 -0
  1287. package/dist/server/reports-topic.d.ts +5 -0
  1288. package/dist/server/reports-topic.js +37 -0
  1289. package/dist/server/reports-topic.js.map +1 -0
  1290. package/dist/server/run-checkout.d.ts +56 -0
  1291. package/dist/server/run-checkout.js +141 -0
  1292. package/dist/server/run-checkout.js.map +1 -0
  1293. package/dist/server/run-event-feed.d.ts +20 -0
  1294. package/dist/server/run-event-feed.js +203 -0
  1295. package/dist/server/run-event-feed.js.map +1 -0
  1296. package/dist/server/self-update-routes.d.ts +308 -0
  1297. package/dist/server/self-update-routes.js +80 -0
  1298. package/dist/server/self-update-routes.js.map +1 -0
  1299. package/dist/server/server-deps.d.ts +40 -0
  1300. package/dist/server/server-deps.js +132 -0
  1301. package/dist/server/server-deps.js.map +1 -0
  1302. package/dist/server/server.d.ts +35332 -0
  1303. package/dist/server/server.js +5046 -0
  1304. package/dist/server/server.js.map +1 -0
  1305. package/dist/server/skill-sources.d.ts +264 -0
  1306. package/dist/server/skill-sources.js +130 -0
  1307. package/dist/server/skill-sources.js.map +1 -0
  1308. package/dist/server/start-run-options.d.ts +84 -0
  1309. package/dist/server/start-run-options.js +114 -0
  1310. package/dist/server/start-run-options.js.map +1 -0
  1311. package/dist/server/static-ui.d.ts +49 -0
  1312. package/dist/server/static-ui.js +99 -0
  1313. package/dist/server/static-ui.js.map +1 -0
  1314. package/dist/server/upgrade-router.d.ts +23 -0
  1315. package/dist/server/upgrade-router.js +53 -0
  1316. package/dist/server/upgrade-router.js.map +1 -0
  1317. package/dist/server/validators.d.ts +80 -0
  1318. package/dist/server/validators.js +85 -0
  1319. package/dist/server/validators.js.map +1 -0
  1320. package/dist/server/workflow-files.d.ts +9 -0
  1321. package/dist/server/workflow-files.js +27 -0
  1322. package/dist/server/workflow-files.js.map +1 -0
  1323. package/dist/server/workspace-config-patch.d.ts +11 -0
  1324. package/dist/server/workspace-config-patch.js +75 -0
  1325. package/dist/server/workspace-config-patch.js.map +1 -0
  1326. package/dist/server/workspace-live-routes.d.ts +222 -0
  1327. package/dist/server/workspace-live-routes.js +8 -0
  1328. package/dist/server/workspace-live-routes.js.map +1 -0
  1329. package/dist/server/workspace-projects.d.ts +51 -0
  1330. package/dist/server/workspace-projects.js +161 -0
  1331. package/dist/server/workspace-projects.js.map +1 -0
  1332. package/dist/server/workspace-run-feed.d.ts +66 -0
  1333. package/dist/server/workspace-run-feed.js +171 -0
  1334. package/dist/server/workspace-run-feed.js.map +1 -0
  1335. package/dist/server/ws.d.ts +80 -0
  1336. package/dist/server/ws.js +280 -0
  1337. package/dist/server/ws.js.map +1 -0
  1338. package/dist/server/wsl.d.ts +25 -0
  1339. package/dist/server/wsl.js +92 -0
  1340. package/dist/server/wsl.js.map +1 -0
  1341. package/dist/server-command.d.ts +53 -0
  1342. package/dist/server-command.js +180 -0
  1343. package/dist/server-command.js.map +1 -0
  1344. package/dist/server-install/engine.d.ts +51 -0
  1345. package/dist/server-install/engine.js +358 -0
  1346. package/dist/server-install/engine.js.map +1 -0
  1347. package/dist/server-install/group-migrate.d.ts +26 -0
  1348. package/dist/server-install/group-migrate.js +241 -0
  1349. package/dist/server-install/group-migrate.js.map +1 -0
  1350. package/dist/server-install/migrate-cli.d.ts +12 -0
  1351. package/dist/server-install/migrate-cli.js +44 -0
  1352. package/dist/server-install/migrate-cli.js.map +1 -0
  1353. package/dist/server-install/migrate-journal.d.ts +15 -0
  1354. package/dist/server-install/migrate-journal.js +48 -0
  1355. package/dist/server-install/migrate-journal.js.map +1 -0
  1356. package/dist/server-install/migration-report.d.ts +3 -0
  1357. package/dist/server-install/migration-report.js +21 -0
  1358. package/dist/server-install/migration-report.js.map +1 -0
  1359. package/dist/server-install/npx-cache.d.ts +34 -0
  1360. package/dist/server-install/npx-cache.js +142 -0
  1361. package/dist/server-install/npx-cache.js.map +1 -0
  1362. package/dist/server-install/platforms/macosx-launchd-files.d.ts +11 -0
  1363. package/dist/server-install/platforms/macosx-launchd-files.js +60 -0
  1364. package/dist/server-install/platforms/macosx-launchd-files.js.map +1 -0
  1365. package/dist/server-install/platforms/macosx-migration.d.ts +17 -0
  1366. package/dist/server-install/platforms/macosx-migration.js +239 -0
  1367. package/dist/server-install/platforms/macosx-migration.js.map +1 -0
  1368. package/dist/server-install/platforms/macosx-ngrok.d.ts +12 -0
  1369. package/dist/server-install/platforms/macosx-ngrok.js +490 -0
  1370. package/dist/server-install/platforms/macosx-ngrok.js.map +1 -0
  1371. package/dist/server-install/platforms/service-env.d.ts +4 -0
  1372. package/dist/server-install/platforms/service-env.js +17 -0
  1373. package/dist/server-install/platforms/service-env.js.map +1 -0
  1374. package/dist/server-install/platforms/ubuntu-vps-files.d.ts +18 -0
  1375. package/dist/server-install/platforms/ubuntu-vps-files.js +43 -0
  1376. package/dist/server-install/platforms/ubuntu-vps-files.js.map +1 -0
  1377. package/dist/server-install/platforms/ubuntu-vps-migration.d.ts +26 -0
  1378. package/dist/server-install/platforms/ubuntu-vps-migration.js +391 -0
  1379. package/dist/server-install/platforms/ubuntu-vps-migration.js.map +1 -0
  1380. package/dist/server-install/platforms/ubuntu-vps-names.d.ts +30 -0
  1381. package/dist/server-install/platforms/ubuntu-vps-names.js +50 -0
  1382. package/dist/server-install/platforms/ubuntu-vps-names.js.map +1 -0
  1383. package/dist/server-install/platforms/ubuntu-vps-redeploy.d.ts +42 -0
  1384. package/dist/server-install/platforms/ubuntu-vps-redeploy.js +127 -0
  1385. package/dist/server-install/platforms/ubuntu-vps-redeploy.js.map +1 -0
  1386. package/dist/server-install/platforms/ubuntu-vps.d.ts +57 -0
  1387. package/dist/server-install/platforms/ubuntu-vps.js +945 -0
  1388. package/dist/server-install/platforms/ubuntu-vps.js.map +1 -0
  1389. package/dist/server-install/state.d.ts +51 -0
  1390. package/dist/server-install/state.js +178 -0
  1391. package/dist/server-install/state.js.map +1 -0
  1392. package/dist/server-install/steps.d.ts +108 -0
  1393. package/dist/server-install/steps.js +348 -0
  1394. package/dist/server-install/steps.js.map +1 -0
  1395. package/dist/server-install/strategies.d.ts +6 -0
  1396. package/dist/server-install/strategies.js +24 -0
  1397. package/dist/server-install/strategies.js.map +1 -0
  1398. package/dist/server-install/types.d.ts +316 -0
  1399. package/dist/server-install/types.js +118 -0
  1400. package/dist/server-install/types.js.map +1 -0
  1401. package/dist/server-install/ui.d.ts +36 -0
  1402. package/dist/server-install/ui.js +131 -0
  1403. package/dist/server-install/ui.js.map +1 -0
  1404. package/dist/session-context.d.ts +66 -0
  1405. package/dist/session-context.js +266 -0
  1406. package/dist/session-context.js.map +1 -0
  1407. package/dist/skills-provision.d.ts +64 -0
  1408. package/dist/skills-provision.js +325 -0
  1409. package/dist/skills-provision.js.map +1 -0
  1410. package/dist/skills-remote.d.ts +144 -0
  1411. package/dist/skills-remote.js +847 -0
  1412. package/dist/skills-remote.js.map +1 -0
  1413. package/dist/skills.d.ts +81 -0
  1414. package/dist/skills.js +288 -0
  1415. package/dist/skills.js.map +1 -0
  1416. package/dist/subcommands.d.ts +12 -0
  1417. package/dist/subcommands.js +59 -0
  1418. package/dist/subcommands.js.map +1 -0
  1419. package/dist/task-cli/cli.d.ts +39 -0
  1420. package/dist/task-cli/cli.js +773 -0
  1421. package/dist/task-cli/cli.js.map +1 -0
  1422. package/dist/task-cli/discovery.d.ts +32 -0
  1423. package/dist/task-cli/discovery.js +133 -0
  1424. package/dist/task-cli/discovery.js.map +1 -0
  1425. package/dist/task-cli/hint.d.ts +20 -0
  1426. package/dist/task-cli/hint.js +15 -0
  1427. package/dist/task-cli/hint.js.map +1 -0
  1428. package/dist/task-cli/http.d.ts +42 -0
  1429. package/dist/task-cli/http.js +110 -0
  1430. package/dist/task-cli/http.js.map +1 -0
  1431. package/dist/task-cli/projections.d.ts +68 -0
  1432. package/dist/task-cli/projections.js +76 -0
  1433. package/dist/task-cli/projections.js.map +1 -0
  1434. package/dist/task-cli/watch.d.ts +119 -0
  1435. package/dist/task-cli/watch.js +494 -0
  1436. package/dist/task-cli/watch.js.map +1 -0
  1437. package/dist/ui-state.d.ts +41 -0
  1438. package/dist/ui-state.js +93 -0
  1439. package/dist/ui-state.js.map +1 -0
  1440. package/dist/update-check.d.ts +2 -0
  1441. package/dist/update-check.js +28 -0
  1442. package/dist/update-check.js.map +1 -0
  1443. package/dist/use-command-notice.d.ts +1 -0
  1444. package/dist/use-command-notice.js +6 -0
  1445. package/dist/use-command-notice.js.map +1 -0
  1446. package/dist/voice/decide.d.ts +35 -0
  1447. package/dist/voice/decide.js +329 -0
  1448. package/dist/voice/decide.js.map +1 -0
  1449. package/dist/voice/decision-log.d.ts +48 -0
  1450. package/dist/voice/decision-log.js +117 -0
  1451. package/dist/voice/decision-log.js.map +1 -0
  1452. package/dist/voice/engine.d.ts +119 -0
  1453. package/dist/voice/engine.js +61 -0
  1454. package/dist/voice/engine.js.map +1 -0
  1455. package/dist/voice/fake-engine.d.ts +10 -0
  1456. package/dist/voice/fake-engine.js +192 -0
  1457. package/dist/voice/fake-engine.js.map +1 -0
  1458. package/dist/voice/jev-engine.d.ts +17 -0
  1459. package/dist/voice/jev-engine.js +110 -0
  1460. package/dist/voice/jev-engine.js.map +1 -0
  1461. package/dist/voice/pending-ask.d.ts +17 -0
  1462. package/dist/voice/pending-ask.js +51 -0
  1463. package/dist/voice/pending-ask.js.map +1 -0
  1464. package/dist/voice/routes.d.ts +115 -0
  1465. package/dist/voice/routes.js +92 -0
  1466. package/dist/voice/routes.js.map +1 -0
  1467. package/dist/voice/sentence.d.ts +21 -0
  1468. package/dist/voice/sentence.js +61 -0
  1469. package/dist/voice/sentence.js.map +1 -0
  1470. package/dist/voice/thresholds.d.ts +28 -0
  1471. package/dist/voice/thresholds.js +29 -0
  1472. package/dist/voice/thresholds.js.map +1 -0
  1473. package/dist/webhooks/cli.d.ts +18 -0
  1474. package/dist/webhooks/cli.js +127 -0
  1475. package/dist/webhooks/cli.js.map +1 -0
  1476. package/dist/webhooks/prompt.d.ts +5 -0
  1477. package/dist/webhooks/prompt.js +26 -0
  1478. package/dist/webhooks/prompt.js.map +1 -0
  1479. package/dist/workflows/active-run.d.ts +46 -0
  1480. package/dist/workflows/active-run.js +46 -0
  1481. package/dist/workflows/active-run.js.map +1 -0
  1482. package/dist/workflows/attachment-path.d.ts +6 -0
  1483. package/dist/workflows/attachment-path.js +40 -0
  1484. package/dist/workflows/attachment-path.js.map +1 -0
  1485. package/dist/workflows/completion-policy.d.ts +98 -0
  1486. package/dist/workflows/completion-policy.js +77 -0
  1487. package/dist/workflows/completion-policy.js.map +1 -0
  1488. package/dist/workflows/continuation-admission.d.ts +1229 -0
  1489. package/dist/workflows/continuation-admission.js +277 -0
  1490. package/dist/workflows/continuation-admission.js.map +1 -0
  1491. package/dist/workflows/execution-account.d.ts +13 -0
  1492. package/dist/workflows/execution-account.js +18 -0
  1493. package/dist/workflows/execution-account.js.map +1 -0
  1494. package/dist/workflows/grouped-command.d.ts +31 -0
  1495. package/dist/workflows/grouped-command.js +147 -0
  1496. package/dist/workflows/grouped-command.js.map +1 -0
  1497. package/dist/workflows/input-acknowledgement.d.ts +233 -0
  1498. package/dist/workflows/input-acknowledgement.js +41 -0
  1499. package/dist/workflows/input-acknowledgement.js.map +1 -0
  1500. package/dist/workflows/line-order.d.ts +5 -0
  1501. package/dist/workflows/line-order.js +25 -0
  1502. package/dist/workflows/line-order.js.map +1 -0
  1503. package/dist/workflows/load.d.ts +19 -0
  1504. package/dist/workflows/load.js +74 -0
  1505. package/dist/workflows/load.js.map +1 -0
  1506. package/dist/workflows/outcome-batches.d.ts +32 -0
  1507. package/dist/workflows/outcome-batches.js +55 -0
  1508. package/dist/workflows/outcome-batches.js.map +1 -0
  1509. package/dist/workflows/pasted-content.d.ts +60 -0
  1510. package/dist/workflows/pasted-content.js +69 -0
  1511. package/dist/workflows/pasted-content.js.map +1 -0
  1512. package/dist/workflows/question-routing.d.ts +16 -0
  1513. package/dist/workflows/question-routing.js +28 -0
  1514. package/dist/workflows/question-routing.js.map +1 -0
  1515. package/dist/workflows/run/attachment-writer.d.ts +34 -0
  1516. package/dist/workflows/run/attachment-writer.js +98 -0
  1517. package/dist/workflows/run/attachment-writer.js.map +1 -0
  1518. package/dist/workflows/run/auto-resume.d.ts +91 -0
  1519. package/dist/workflows/run/auto-resume.js +247 -0
  1520. package/dist/workflows/run/auto-resume.js.map +1 -0
  1521. package/dist/workflows/run/cezar-tools.d.ts +45 -0
  1522. package/dist/workflows/run/cezar-tools.js +117 -0
  1523. package/dist/workflows/run/cezar-tools.js.map +1 -0
  1524. package/dist/workflows/run/completion-gate.d.ts +77 -0
  1525. package/dist/workflows/run/completion-gate.js +93 -0
  1526. package/dist/workflows/run/completion-gate.js.map +1 -0
  1527. package/dist/workflows/run/compose.d.ts +181 -0
  1528. package/dist/workflows/run/compose.js +413 -0
  1529. package/dist/workflows/run/compose.js.map +1 -0
  1530. package/dist/workflows/run/constants.d.ts +48 -0
  1531. package/dist/workflows/run/constants.js +49 -0
  1532. package/dist/workflows/run/constants.js.map +1 -0
  1533. package/dist/workflows/run/continuation-acceptance.d.ts +70 -0
  1534. package/dist/workflows/run/continuation-acceptance.js +188 -0
  1535. package/dist/workflows/run/continuation-acceptance.js.map +1 -0
  1536. package/dist/workflows/run/continuation-session.d.ts +130 -0
  1537. package/dist/workflows/run/continuation-session.js +597 -0
  1538. package/dist/workflows/run/continuation-session.js.map +1 -0
  1539. package/dist/workflows/run/drop-active.d.ts +4 -0
  1540. package/dist/workflows/run/drop-active.js +11 -0
  1541. package/dist/workflows/run/drop-active.js.map +1 -0
  1542. package/dist/workflows/run/family-reconciler.d.ts +78 -0
  1543. package/dist/workflows/run/family-reconciler.js +308 -0
  1544. package/dist/workflows/run/family-reconciler.js.map +1 -0
  1545. package/dist/workflows/run/human-waits.d.ts +85 -0
  1546. package/dist/workflows/run/human-waits.js +163 -0
  1547. package/dist/workflows/run/human-waits.js.map +1 -0
  1548. package/dist/workflows/run/inbox-claims.d.ts +38 -0
  1549. package/dist/workflows/run/inbox-claims.js +108 -0
  1550. package/dist/workflows/run/inbox-claims.js.map +1 -0
  1551. package/dist/workflows/run/input-batch.d.ts +15 -0
  1552. package/dist/workflows/run/input-batch.js +32 -0
  1553. package/dist/workflows/run/input-batch.js.map +1 -0
  1554. package/dist/workflows/run/input-delivery.d.ts +202 -0
  1555. package/dist/workflows/run/input-delivery.js +818 -0
  1556. package/dist/workflows/run/input-delivery.js.map +1 -0
  1557. package/dist/workflows/run/input-receipts.d.ts +65 -0
  1558. package/dist/workflows/run/input-receipts.js +221 -0
  1559. package/dist/workflows/run/input-receipts.js.map +1 -0
  1560. package/dist/workflows/run/input-timers.d.ts +10 -0
  1561. package/dist/workflows/run/input-timers.js +32 -0
  1562. package/dist/workflows/run/input-timers.js.map +1 -0
  1563. package/dist/workflows/run/launch-context.d.ts +62 -0
  1564. package/dist/workflows/run/launch-context.js +119 -0
  1565. package/dist/workflows/run/launch-context.js.map +1 -0
  1566. package/dist/workflows/run/launch-read-resolver.d.ts +510 -0
  1567. package/dist/workflows/run/launch-read-resolver.js +658 -0
  1568. package/dist/workflows/run/launch-read-resolver.js.map +1 -0
  1569. package/dist/workflows/run/launch-settings.d.ts +10 -0
  1570. package/dist/workflows/run/launch-settings.js +11 -0
  1571. package/dist/workflows/run/launch-settings.js.map +1 -0
  1572. package/dist/workflows/run/live-session-state.d.ts +49 -0
  1573. package/dist/workflows/run/live-session-state.js +83 -0
  1574. package/dist/workflows/run/live-session-state.js.map +1 -0
  1575. package/dist/workflows/run/maintenance-claims.d.ts +47 -0
  1576. package/dist/workflows/run/maintenance-claims.js +83 -0
  1577. package/dist/workflows/run/maintenance-claims.js.map +1 -0
  1578. package/dist/workflows/run/memory-guard.d.ts +25 -0
  1579. package/dist/workflows/run/memory-guard.js +64 -0
  1580. package/dist/workflows/run/memory-guard.js.map +1 -0
  1581. package/dist/workflows/run/opening.d.ts +30 -0
  1582. package/dist/workflows/run/opening.js +6 -0
  1583. package/dist/workflows/run/opening.js.map +1 -0
  1584. package/dist/workflows/run/pending-ask-facts.d.ts +10 -0
  1585. package/dist/workflows/run/pending-ask-facts.js +19 -0
  1586. package/dist/workflows/run/pending-ask-facts.js.map +1 -0
  1587. package/dist/workflows/run/prompts.d.ts +74 -0
  1588. package/dist/workflows/run/prompts.js +140 -0
  1589. package/dist/workflows/run/prompts.js.map +1 -0
  1590. package/dist/workflows/run/queued-input.d.ts +108 -0
  1591. package/dist/workflows/run/queued-input.js +249 -0
  1592. package/dist/workflows/run/queued-input.js.map +1 -0
  1593. package/dist/workflows/run/queued-revival.d.ts +44 -0
  1594. package/dist/workflows/run/queued-revival.js +124 -0
  1595. package/dist/workflows/run/queued-revival.js.map +1 -0
  1596. package/dist/workflows/run/readonly-collections.d.ts +24 -0
  1597. package/dist/workflows/run/readonly-collections.js +33 -0
  1598. package/dist/workflows/run/readonly-collections.js.map +1 -0
  1599. package/dist/workflows/run/repo-root-lease.d.ts +34 -0
  1600. package/dist/workflows/run/repo-root-lease.js +71 -0
  1601. package/dist/workflows/run/repo-root-lease.js.map +1 -0
  1602. package/dist/workflows/run/resolved-wait-input-batch.d.ts +7 -0
  1603. package/dist/workflows/run/resolved-wait-input-batch.js +23 -0
  1604. package/dist/workflows/run/resolved-wait-input-batch.js.map +1 -0
  1605. package/dist/workflows/run/run-cancel.d.ts +36 -0
  1606. package/dist/workflows/run/run-cancel.js +130 -0
  1607. package/dist/workflows/run/run-cancel.js.map +1 -0
  1608. package/dist/workflows/run/run-finish.d.ts +72 -0
  1609. package/dist/workflows/run/run-finish.js +256 -0
  1610. package/dist/workflows/run/run-finish.js.map +1 -0
  1611. package/dist/workflows/run/run-guards.d.ts +15 -0
  1612. package/dist/workflows/run/run-guards.js +39 -0
  1613. package/dist/workflows/run/run-guards.js.map +1 -0
  1614. package/dist/workflows/run/run-line.d.ts +187 -0
  1615. package/dist/workflows/run/run-line.js +438 -0
  1616. package/dist/workflows/run/run-line.js.map +1 -0
  1617. package/dist/workflows/run/run-recovery.d.ts +116 -0
  1618. package/dist/workflows/run/run-recovery.js +422 -0
  1619. package/dist/workflows/run/run-recovery.js.map +1 -0
  1620. package/dist/workflows/run/run-settlement.d.ts +177 -0
  1621. package/dist/workflows/run/run-settlement.js +504 -0
  1622. package/dist/workflows/run/run-settlement.js.map +1 -0
  1623. package/dist/workflows/run/run-skills.d.ts +114 -0
  1624. package/dist/workflows/run/run-skills.js +233 -0
  1625. package/dist/workflows/run/run-skills.js.map +1 -0
  1626. package/dist/workflows/run/run-start.d.ts +64 -0
  1627. package/dist/workflows/run/run-start.js +126 -0
  1628. package/dist/workflows/run/run-start.js.map +1 -0
  1629. package/dist/workflows/run/run-workspace.d.ts +25 -0
  1630. package/dist/workflows/run/run-workspace.js +66 -0
  1631. package/dist/workflows/run/run-workspace.js.map +1 -0
  1632. package/dist/workflows/run/session-events.d.ts +155 -0
  1633. package/dist/workflows/run/session-events.js +282 -0
  1634. package/dist/workflows/run/session-events.js.map +1 -0
  1635. package/dist/workflows/run/step-decisions.d.ts +37 -0
  1636. package/dist/workflows/run/step-decisions.js +43 -0
  1637. package/dist/workflows/run/step-decisions.js.map +1 -0
  1638. package/dist/workflows/run/step-loop.d.ts +143 -0
  1639. package/dist/workflows/run/step-loop.js +488 -0
  1640. package/dist/workflows/run/step-loop.js.map +1 -0
  1641. package/dist/workflows/run/step-session.d.ts +65 -0
  1642. package/dist/workflows/run/step-session.js +280 -0
  1643. package/dist/workflows/run/step-session.js.map +1 -0
  1644. package/dist/workflows/run/steps.d.ts +13 -0
  1645. package/dist/workflows/run/steps.js +14 -0
  1646. package/dist/workflows/run/steps.js.map +1 -0
  1647. package/dist/workflows/run/subagent-waits.d.ts +138 -0
  1648. package/dist/workflows/run/subagent-waits.js +305 -0
  1649. package/dist/workflows/run/subagent-waits.js.map +1 -0
  1650. package/dist/workflows/run/tracked-work.d.ts +12 -0
  1651. package/dist/workflows/run/tracked-work.js +29 -0
  1652. package/dist/workflows/run/tracked-work.js.map +1 -0
  1653. package/dist/workflows/run/turn-bookkeeping.d.ts +67 -0
  1654. package/dist/workflows/run/turn-bookkeeping.js +173 -0
  1655. package/dist/workflows/run/turn-bookkeeping.js.map +1 -0
  1656. package/dist/workflows/run/turn-boundary.d.ts +215 -0
  1657. package/dist/workflows/run/turn-boundary.js +329 -0
  1658. package/dist/workflows/run/turn-boundary.js.map +1 -0
  1659. package/dist/workflows/run/turn-markers.d.ts +62 -0
  1660. package/dist/workflows/run/turn-markers.js +86 -0
  1661. package/dist/workflows/run/turn-markers.js.map +1 -0
  1662. package/dist/workflows/run/turn-nudges.d.ts +104 -0
  1663. package/dist/workflows/run/turn-nudges.js +244 -0
  1664. package/dist/workflows/run/turn-nudges.js.map +1 -0
  1665. package/dist/workflows/run/turn-settler.d.ts +161 -0
  1666. package/dist/workflows/run/turn-settler.js +469 -0
  1667. package/dist/workflows/run/turn-settler.js.map +1 -0
  1668. package/dist/workflows/run/types.d.ts +293 -0
  1669. package/dist/workflows/run/types.js +2 -0
  1670. package/dist/workflows/run/types.js.map +1 -0
  1671. package/dist/workflows/run/usage-accounting.d.ts +49 -0
  1672. package/dist/workflows/run/usage-accounting.js +213 -0
  1673. package/dist/workflows/run/usage-accounting.js.map +1 -0
  1674. package/dist/workflows/run/wait-engine.d.ts +1210 -0
  1675. package/dist/workflows/run/wait-engine.js +456 -0
  1676. package/dist/workflows/run/wait-engine.js.map +1 -0
  1677. package/dist/workflows/run/wait-kinds.d.ts +336 -0
  1678. package/dist/workflows/run/wait-kinds.js +471 -0
  1679. package/dist/workflows/run/wait-kinds.js.map +1 -0
  1680. package/dist/workflows/run/wait-registration-tool.d.ts +3 -0
  1681. package/dist/workflows/run/wait-registration-tool.js +68 -0
  1682. package/dist/workflows/run/wait-registration-tool.js.map +1 -0
  1683. package/dist/workflows/run/wait-registration.d.ts +7 -0
  1684. package/dist/workflows/run/wait-registration.js +39 -0
  1685. package/dist/workflows/run/wait-registration.js.map +1 -0
  1686. package/dist/workflows/run/wait-registry.d.ts +120 -0
  1687. package/dist/workflows/run/wait-registry.js +365 -0
  1688. package/dist/workflows/run/wait-registry.js.map +1 -0
  1689. package/dist/workflows/run/wait-watches.d.ts +13 -0
  1690. package/dist/workflows/run/wait-watches.js +12 -0
  1691. package/dist/workflows/run/wait-watches.js.map +1 -0
  1692. package/dist/workflows/run/wake-admission.d.ts +150 -0
  1693. package/dist/workflows/run/wake-admission.js +397 -0
  1694. package/dist/workflows/run/wake-admission.js.map +1 -0
  1695. package/dist/workflows/run/wake-ledger.d.ts +61 -0
  1696. package/dist/workflows/run/wake-ledger.js +78 -0
  1697. package/dist/workflows/run/wake-ledger.js.map +1 -0
  1698. package/dist/workflows/run/wake-retries.d.ts +31 -0
  1699. package/dist/workflows/run/wake-retries.js +93 -0
  1700. package/dist/workflows/run/wake-retries.js.map +1 -0
  1701. package/dist/workflows/run/worker-executions.d.ts +54 -0
  1702. package/dist/workflows/run/worker-executions.js +149 -0
  1703. package/dist/workflows/run/worker-executions.js.map +1 -0
  1704. package/dist/workflows/run/worker-orphans.d.ts +91 -0
  1705. package/dist/workflows/run/worker-orphans.js +275 -0
  1706. package/dist/workflows/run/worker-orphans.js.map +1 -0
  1707. package/dist/workflows/run/worker-questions.d.ts +169 -0
  1708. package/dist/workflows/run/worker-questions.js +464 -0
  1709. package/dist/workflows/run/worker-questions.js.map +1 -0
  1710. package/dist/workflows/run/workflow-position.d.ts +7 -0
  1711. package/dist/workflows/run/workflow-position.js +9 -0
  1712. package/dist/workflows/run/workflow-position.js.map +1 -0
  1713. package/dist/workflows/run/worktree-autosave.d.ts +48 -0
  1714. package/dist/workflows/run/worktree-autosave.js +175 -0
  1715. package/dist/workflows/run/worktree-autosave.js.map +1 -0
  1716. package/dist/workflows/run-scheduling.d.ts +38 -0
  1717. package/dist/workflows/run-scheduling.js +76 -0
  1718. package/dist/workflows/run-scheduling.js.map +1 -0
  1719. package/dist/workflows/run-states.d.ts +73 -0
  1720. package/dist/workflows/run-states.js +233 -0
  1721. package/dist/workflows/run-states.js.map +1 -0
  1722. package/dist/workflows/run.d.ts +275 -0
  1723. package/dist/workflows/run.js +626 -0
  1724. package/dist/workflows/run.js.map +1 -0
  1725. package/dist/workflows/turn-end.d.ts +119 -0
  1726. package/dist/workflows/turn-end.js +74 -0
  1727. package/dist/workflows/turn-end.js.map +1 -0
  1728. package/dist/workflows/types.d.ts +83 -0
  1729. package/dist/workflows/types.js +192 -0
  1730. package/dist/workflows/types.js.map +1 -0
  1731. package/dist/workflows/wait-scope.d.ts +75 -0
  1732. package/dist/workflows/wait-scope.js +115 -0
  1733. package/dist/workflows/wait-scope.js.map +1 -0
  1734. package/dist/workflows/waits.d.ts +58 -0
  1735. package/dist/workflows/waits.js +89 -0
  1736. package/dist/workflows/waits.js.map +1 -0
  1737. package/dist/workspace/agent-accounts.d.ts +135 -0
  1738. package/dist/workspace/agent-accounts.js +353 -0
  1739. package/dist/workspace/agent-accounts.js.map +1 -0
  1740. package/dist/workspace/agent-profiles.d.ts +125 -0
  1741. package/dist/workspace/agent-profiles.js +190 -0
  1742. package/dist/workspace/agent-profiles.js.map +1 -0
  1743. package/dist/workspace/backup-cli.d.ts +9 -0
  1744. package/dist/workspace/backup-cli.js +147 -0
  1745. package/dist/workspace/backup-cli.js.map +1 -0
  1746. package/dist/workspace/backups.d.ts +36 -0
  1747. package/dist/workspace/backups.js +249 -0
  1748. package/dist/workspace/backups.js.map +1 -0
  1749. package/dist/workspace/config.d.ts +179 -0
  1750. package/dist/workspace/config.js +396 -0
  1751. package/dist/workspace/config.js.map +1 -0
  1752. package/dist/workspace/migrations.d.ts +37 -0
  1753. package/dist/workspace/migrations.js +149 -0
  1754. package/dist/workspace/migrations.js.map +1 -0
  1755. package/dist/workspace/projects-cli.d.ts +27 -0
  1756. package/dist/workspace/projects-cli.js +175 -0
  1757. package/dist/workspace/projects-cli.js.map +1 -0
  1758. package/dist/workspace/projects.d.ts +131 -0
  1759. package/dist/workspace/projects.js +274 -0
  1760. package/dist/workspace/projects.js.map +1 -0
  1761. package/dist/workspace/root-probe-cache.d.ts +10 -0
  1762. package/dist/workspace/root-probe-cache.js +43 -0
  1763. package/dist/workspace/root-probe-cache.js.map +1 -0
  1764. package/dist/workspace/semaphore.d.ts +147 -0
  1765. package/dist/workspace/semaphore.js +196 -0
  1766. package/dist/workspace/semaphore.js.map +1 -0
  1767. package/dist/workspace/ui-state.d.ts +17 -0
  1768. package/dist/workspace/ui-state.js +59 -0
  1769. package/dist/workspace/ui-state.js.map +1 -0
  1770. package/dist/workspace/webhooks.d.ts +40 -0
  1771. package/dist/workspace/webhooks.js +146 -0
  1772. package/dist/workspace/webhooks.js.map +1 -0
  1773. package/dist/worktree-manifest.d.ts +165 -0
  1774. package/dist/worktree-manifest.js +535 -0
  1775. package/dist/worktree-manifest.js.map +1 -0
  1776. package/dist/worktree-setup.d.ts +88 -0
  1777. package/dist/worktree-setup.js +170 -0
  1778. package/dist/worktree-setup.js.map +1 -0
  1779. package/package.json +80 -4
  1780. package/scripts/benchmark-family-reconcile.ts +119 -0
  1781. package/scripts/benchmark-home.ts +32 -0
  1782. package/scripts/benchmark-project-probes.mjs +158 -0
  1783. package/scripts/benchmark-run-store-fixture.ts +432 -0
  1784. package/scripts/benchmark-run-store.ts +767 -0
  1785. package/scripts/benchmark-stuck-destroys.ts +144 -0
  1786. package/scripts/benchmark-workspace-events.ts +339 -0
  1787. package/scripts/check-pack.mjs +48 -0
  1788. package/scripts/inline-contract.mjs +165 -0
  1789. package/scripts/install-as-command.mjs +125 -0
  1790. package/scripts/measure-transcript-facts-health.mjs +103 -0
  1791. package/scripts/measure-transcript-facts-lag.mjs +69 -0
  1792. package/scripts/mock-autonomous.mjs +13 -0
  1793. package/scripts/mock-ci-tool.mjs +159 -0
  1794. package/scripts/mock-claude-model-refusal.mjs +76 -0
  1795. package/scripts/mock-claude-subagents.mjs +54 -0
  1796. package/scripts/mock-claude.mjs +800 -0
  1797. package/scripts/mock-codex-app-server.mjs +767 -0
  1798. package/scripts/mock-codex-coalesce-steer.mjs +59 -0
  1799. package/scripts/mock-codex-reverse-steer.mjs +143 -0
  1800. package/scripts/mock-codex-subagents.mjs +52 -0
  1801. package/scripts/mock-controls.d.mts +11 -0
  1802. package/scripts/mock-controls.mjs +13 -0
  1803. package/scripts/mock-cursor-hang-stdin-late.mjs +35 -0
  1804. package/scripts/mock-cursor-hang-stdin.mjs +30 -0
  1805. package/scripts/mock-cursor-print.mjs +237 -0
  1806. package/scripts/mock-deferred-turn-start.mjs +16 -0
  1807. package/scripts/mock-delivery-control.d.mts +23 -0
  1808. package/scripts/mock-delivery-control.mjs +80 -0
  1809. package/scripts/mock-env-record.mjs +11 -0
  1810. package/scripts/mock-failure-control.d.mts +13 -0
  1811. package/scripts/mock-failure-control.mjs +68 -0
  1812. package/scripts/mock-lifecycle.mjs +51 -0
  1813. package/scripts/mock-multi-pr.mjs +10 -0
  1814. package/scripts/mock-nudge.mjs +43 -0
  1815. package/scripts/mock-omp-rpc.mjs +536 -0
  1816. package/scripts/mock-opencode-serve.mjs +1000 -0
  1817. package/scripts/mock-pi-rpc.mjs +421 -0
  1818. package/scripts/mock-publish.mjs +13 -0
  1819. package/scripts/mock-runner-crash.mjs +64 -0
  1820. package/scripts/mock-scenario.d.mts +71 -0
  1821. package/scripts/mock-scenario.mjs +295 -0
  1822. package/scripts/mock-session-context.d.mts +5 -0
  1823. package/scripts/mock-session-context.mjs +56 -0
  1824. package/scripts/mock-silent-tail.mjs +93 -0
  1825. package/scripts/mock-turn-messages.mjs +5 -0
  1826. package/scripts/mock-wire-evidence.config.mjs +12 -0
  1827. package/scripts/mock-wire-recorder.mjs +66 -0
  1828. package/scripts/mock-wire-tools.mjs +7 -0
  1829. package/scripts/omp-ci-wait.mjs +29 -0
  1830. package/scripts/opencode-task-scope.d.mts +18 -0
  1831. package/scripts/opencode-task-scope.mjs +59 -0
  1832. package/scripts/parity-rows.ts +160 -0
  1833. package/scripts/pi-ci-wait.mjs +17 -0
  1834. package/scripts/pi-default-tools.mjs +22 -0
  1835. package/scripts/pi-project-skills.mjs +59 -0
  1836. package/scripts/pi-retry-degraded-service.mjs +16 -0
  1837. package/scripts/probe-cursor-print.mjs +699 -0
  1838. package/scripts/probe-session-env.ts +8 -0
  1839. package/scripts/product-env.mjs +6 -0
  1840. package/scripts/product-identity.mjs +12 -0
  1841. package/scripts/record-mock-wires.mjs +16 -0
  1842. package/scripts/seed-archive-profile.ts +53 -0
  1843. package/scripts/sync-readme.mjs +20 -0
  1844. package/scripts/test-process-usage.mjs +47 -0
  1845. package/scripts/transcript-facts-fixture.mjs +53 -0
  1846. package/scripts/transcript-facts-timing.mjs +42 -0
  1847. package/scripts/voice-replay.ts +50 -0
  1848. package/scripts/windows-workspace-identity.cs +208 -0
  1849. package/scripts/windows-workspace-identity.ps1 +10 -0
  1850. package/web/dist/assets/activity-motion-0wHCeUs7.css +1 -0
  1851. package/web/dist/assets/activity-motion-SGth5vR4.js +2 -0
  1852. package/web/dist/assets/activity-route-D8otXwOA.js +1 -0
  1853. package/web/dist/assets/agent-accounts-6EuZhy-N.js +18 -0
  1854. package/web/dist/assets/alert-dialog-vFjLgfK4.js +1 -0
  1855. package/web/dist/assets/app-window-CSHwDX9N.js +1 -0
  1856. package/web/dist/assets/arrow-right-Dh_Lx3um.js +1 -0
  1857. package/web/dist/assets/bundle-mjs-BT31bpU6.js +1 -0
  1858. package/web/dist/assets/button-BEK7XKhS.js +3 -0
  1859. package/web/dist/assets/centered-state-CPgI8cCO.js +1 -0
  1860. package/web/dist/assets/cez-idle-BT0U4GN_.js +1 -0
  1861. package/web/dist/assets/chunk-BO2N2NFS-DE6qKn3r.js +131 -0
  1862. package/web/dist/assets/commit-diff-panel-DzyWgn1Z.js +1 -0
  1863. package/web/dist/assets/control-locations-CexZsd3M.js +1 -0
  1864. package/web/dist/assets/core-BCsw8oQw.js +12 -0
  1865. package/web/dist/assets/createLucideIcon-BHp8sXmF.js +1 -0
  1866. package/web/dist/assets/css-BsVw1vtW.js +1 -0
  1867. package/web/dist/assets/design-icons-DmYTv2r1.js +1 -0
  1868. package/web/dist/assets/diff-DBDiZl58.js +3 -0
  1869. package/web/dist/assets/diff-controls-DXyB0aDl.js +1 -0
  1870. package/web/dist/assets/diff-view-DiKAwVMH.js +11 -0
  1871. package/web/dist/assets/diff-woXpYk--.js +1 -0
  1872. package/web/dist/assets/dropdown-menu-DYflHa4m.js +1 -0
  1873. package/web/dist/assets/engine-javascript-FQvzRocB.js +141 -0
  1874. package/web/dist/assets/es2015-BO600Xfi.js +41 -0
  1875. package/web/dist/assets/eye-B8okNWXU.js +1 -0
  1876. package/web/dist/assets/file-preview-DTSRkmMo.js +2 -0
  1877. package/web/dist/assets/git-toolbar-U4s46kUd.js +1 -0
  1878. package/web/dist/assets/github-UaBp2yRF.js +1 -0
  1879. package/web/dist/assets/github-sidebar-model-czjLsgVJ.js +1 -0
  1880. package/web/dist/assets/global-activity-route-B2N2Nz0H.js +1 -0
  1881. package/web/dist/assets/go-rLFTqkRN.js +1 -0
  1882. package/web/dist/assets/highlighted-body-OFNGDK62-BL-MfFgl.js +1 -0
  1883. package/web/dist/assets/hourglass-B0lPAJvT.js +1 -0
  1884. package/web/dist/assets/html-BY76lXLH.js +1 -0
  1885. package/web/dist/assets/image-preview-XPCPclpG.js +1 -0
  1886. package/web/dist/assets/index-B18AqW0Z.css +1 -0
  1887. package/web/dist/assets/index-xj-3O89_.js +14 -0
  1888. package/web/dist/assets/index.global-D3Ga_D3Y.js +1 -0
  1889. package/web/dist/assets/info-DA1x_4bz.js +1 -0
  1890. package/web/dist/assets/javascript-BgS3c2Ky.js +1 -0
  1891. package/web/dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
  1892. package/web/dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
  1893. package/web/dist/assets/json-qhed-kSA.js +1 -0
  1894. package/web/dist/assets/jsonc-CYpm1nAK.js +1 -0
  1895. package/web/dist/assets/jsx-Bz0zcwM4.js +1 -0
  1896. package/web/dist/assets/lib-BxQXEXDF.js +1 -0
  1897. package/web/dist/assets/live-protocol-BDY7JJpT.js +64 -0
  1898. package/web/dist/assets/live-refetch-C-Ony2Yr.js +1 -0
  1899. package/web/dist/assets/live-worker-BWdeGzQX.ts +34 -0
  1900. package/web/dist/assets/loader-circle-CZkGEdoI.js +1 -0
  1901. package/web/dist/assets/markdown-BBDDg-4t.js +1 -0
  1902. package/web/dist/assets/markdown-BYOwaDjH.js +1 -0
  1903. package/web/dist/assets/markdown-UdZ_toya.js +6 -0
  1904. package/web/dist/assets/mermaid-GHXKKRXX-C4jxqUUb.js +1 -0
  1905. package/web/dist/assets/mermaid.min-3O9YjB2l.js +1 -0
  1906. package/web/dist/assets/message-square-B-MD-8rD.js +1 -0
  1907. package/web/dist/assets/nav-row-styles-BE99gD3_.js +1 -0
  1908. package/web/dist/assets/popover-CpULuQSm.js +1 -0
  1909. package/web/dist/assets/poppins-devanagari-400-normal-CJDn6rn8.woff2 +0 -0
  1910. package/web/dist/assets/poppins-devanagari-400-normal-CqVvlrh5.woff +0 -0
  1911. package/web/dist/assets/poppins-devanagari-500-normal-BIdkeU1p.woff2 +0 -0
  1912. package/web/dist/assets/poppins-devanagari-500-normal-DMPDjHtT.woff +0 -0
  1913. package/web/dist/assets/poppins-devanagari-600-normal-ClASKHrr.woff +0 -0
  1914. package/web/dist/assets/poppins-devanagari-600-normal-STEjXBNN.woff2 +0 -0
  1915. package/web/dist/assets/poppins-latin-400-normal-BOb3E3N0.woff +0 -0
  1916. package/web/dist/assets/poppins-latin-400-normal-cpxAROuN.woff2 +0 -0
  1917. package/web/dist/assets/poppins-latin-500-normal-C8OXljZJ.woff2 +0 -0
  1918. package/web/dist/assets/poppins-latin-500-normal-DGXqpDMm.woff +0 -0
  1919. package/web/dist/assets/poppins-latin-600-normal-BJdTmd5m.woff +0 -0
  1920. package/web/dist/assets/poppins-latin-600-normal-zEkxB9Mr.woff2 +0 -0
  1921. package/web/dist/assets/poppins-latin-ext-400-normal-DaBSavcJ.woff +0 -0
  1922. package/web/dist/assets/poppins-latin-ext-400-normal-by3JarPu.woff2 +0 -0
  1923. package/web/dist/assets/poppins-latin-ext-500-normal-CK-6C4Hw.woff2 +0 -0
  1924. package/web/dist/assets/poppins-latin-ext-500-normal-CgAe2rWW.woff +0 -0
  1925. package/web/dist/assets/poppins-latin-ext-600-normal-CAhIAdZj.woff2 +0 -0
  1926. package/web/dist/assets/poppins-latin-ext-600-normal-Df5ffKXP.woff +0 -0
  1927. package/web/dist/assets/preview-pane-connected-CgRK7GzB.js +3 -0
  1928. package/web/dist/assets/project-router-CimAoN1H.js +1 -0
  1929. package/web/dist/assets/project-scope-context-DMpvJqIm.js +4 -0
  1930. package/web/dist/assets/python-gzcpVVnB.js +1 -0
  1931. package/web/dist/assets/queries-BIOp8jLx.js +1 -0
  1932. package/web/dist/assets/react-runtime-CCIEwYL0.js +9 -0
  1933. package/web/dist/assets/repo-git-DVXNOJDT.css +1 -0
  1934. package/web/dist/assets/repo-git-XkyTfP9G.js +1 -0
  1935. package/web/dist/assets/report-reader-CZjYS5Aw.js +1 -0
  1936. package/web/dist/assets/report-title-D4Mbu2Er.js +1 -0
  1937. package/web/dist/assets/reports-B7QAzibP.css +1 -0
  1938. package/web/dist/assets/reports-D_2sFE1y.js +1 -0
  1939. package/web/dist/assets/rolldown-runtime-QTnfLwEv.js +1 -0
  1940. package/web/dist/assets/run-header-BwPDVPpg.js +2 -0
  1941. package/web/dist/assets/run-header-CC7VUTg9.css +1 -0
  1942. package/web/dist/assets/rust-Cfkwpbl8.js +1 -0
  1943. package/web/dist/assets/shellscript-CLZ0U2zV.js +1 -0
  1944. package/web/dist/assets/skill-empty-hint-YDmkqgo-.js +1 -0
  1945. package/web/dist/assets/skills-BkXe4p4q.js +1 -0
  1946. package/web/dist/assets/skills-DFBiAuJG.js +1 -0
  1947. package/web/dist/assets/skills-workflows-C21NystW.css +1 -0
  1948. package/web/dist/assets/sortable.esm-zp_qkYGV.js +5 -0
  1949. package/web/dist/assets/sql-BsFa4tDR.js +1 -0
  1950. package/web/dist/assets/tab-link-BIweqlIZ.js +1 -0
  1951. package/web/dist/assets/task-changes-USNHNm_T.js +1 -0
  1952. package/web/dist/assets/task-commits-kHqlOJe_.js +1 -0
  1953. package/web/dist/assets/task-files-wTWwLR39.js +1 -0
  1954. package/web/dist/assets/task-github-item-GzaQjkF1.js +1 -0
  1955. package/web/dist/assets/task-thread-BZX863UN.js +9 -0
  1956. package/web/dist/assets/task-thread-DtQ6uGfQ.css +1 -0
  1957. package/web/dist/assets/textarea-FAUkHz1K.js +1 -0
  1958. package/web/dist/assets/thread-state-CBzx2hmX.js +4 -0
  1959. package/web/dist/assets/toaster-pthKGWiE.js +1 -0
  1960. package/web/dist/assets/toml-CcmNWLt0.js +1 -0
  1961. package/web/dist/assets/tsx-udAQXfEw.js +1 -0
  1962. package/web/dist/assets/typescript-bsJCZSQ-.js +1 -0
  1963. package/web/dist/assets/use-hand-to-agent-state-Bav9eT3b.js +1 -0
  1964. package/web/dist/assets/use-hand-to-agent-state-C7esPJ-N.css +1 -0
  1965. package/web/dist/assets/useInfiniteQuery-CQI4BO4C.js +1 -0
  1966. package/web/dist/assets/useQuery-Bkq-x4Id.js +1 -0
  1967. package/web/dist/assets/workflows-D871Gx--.js +7 -0
  1968. package/web/dist/assets/ws-DspW9wBH.js +1 -0
  1969. package/web/dist/assets/yaml-rwi0_p6S.js +1 -0
  1970. package/web/dist/assets/zoomable-image-DNc6ORaF.js +1 -0
  1971. package/web/dist/cezarion-lockup-dark.svg +9 -0
  1972. package/web/dist/cezarion-lockup-light.svg +9 -0
  1973. package/web/dist/cezarion-mark-dark.svg +4 -0
  1974. package/web/dist/cezarion-mark-light.svg +4 -0
  1975. package/web/dist/index.html +90 -0
  1976. package/web/dist/live-worker.js +4 -0
@@ -0,0 +1,4510 @@
1
+ /**
2
+ * The run exit table (ADR 0056, .ai/specs/2026-11-03-run-store-owns-exits.md). An exit
3
+ * (`RUN_EXITS`) is one kind of status write, with the statuses it may leave from. The trigger
4
+ * rows in `workflows/run-states.ts` name the exit they take; this module imports nothing from
5
+ * `workflows/`.
6
+ *
7
+ * The store writes every run status by applying an exit: `RunStore.move`, `applyExit` on a record
8
+ * it reconciles at load or stages for archive, or the `exit` of `commitOutcome` and
9
+ * `commitWorkerContinuation`. Each checks the status of the record its write
10
+ * changes against the exit's `from` (`exitStatus`). An exit with `fields` settles them on every
11
+ * write that applies it, under the caller's extras (slice S5). An exit with a `settle` is a guarded exit
12
+ * (Decision 5): `RunStore.move` commits it at once, with the record `settle` returns, only when
13
+ * its `guard` passes. An undeclared transition is written as before and reported as a violation;
14
+ * nothing throws in the write path. Strict mode (`vitest.setup.ts`) records each violation, and
15
+ * the test setup fails the test after it ran. Outside strict mode each violation is one
16
+ * `console.warn` and nothing is recorded.
17
+ */
18
+ import type { RunRecord, RunStatus, StepState } from '../contract/index.js';
19
+ import { isUsageLimitHold } from '../contract/index.js';
20
+ /** The fields a write that applies a run exit patches beside it: never the status, which the exit
21
+ * writes (`RunStore.move`). */
22
+ export type RunPatch = Partial<Omit<RunRecord, 'id' | 'steps' | 'status' | 'waits' | 'lastWaits'>> & {
23
+ status?: never;
24
+ waits?: never;
25
+ lastWaits?: never;
26
+ };
27
+ /** What a caller names beside an exit's extras: the step the exit settles apart from the others,
28
+ * and the text of the lifecycle event the exit writes, when the caller's says more. */
29
+ export type ExitCall = {
30
+ stepId?: string | undefined;
31
+ event?: string | undefined;
32
+ };
33
+ /** What an exit reads beside the record: one time for every field it stamps, and the step the
34
+ * caller names. */
35
+ export type ExitSettlement = ExitCall & {
36
+ now: string;
37
+ };
38
+ /** What an exit's `steps` read beside the step: the time the run settles at, and the error it
39
+ * keeps. */
40
+ export type StepSettlement = ExitSettlement & {
41
+ finishedAt: string;
42
+ error?: string | undefined;
43
+ };
44
+ /** How a write that applies an exit persists: `committed` at once, or `debounced` to the next save,
45
+ * which is best-effort, so a locked database cannot stop cleanup (Decision 4). */
46
+ export type ExitDurability = 'debounced' | 'committed';
47
+ /** What an exit's `fields` and `steps` read off the record a write applies it to. */
48
+ export type ExitRead = Pick<RunRecord, 'status' | 'delegation'> & Partial<Pick<RunRecord, 'finishedAt' | 'currentStepId' | 'error'>> & {
49
+ steps?: readonly StepState[];
50
+ };
51
+ /**
52
+ * One kind of status write: the statuses it may leave from and the one it writes. `fields` are
53
+ * the fields every site of the exit writes alike; a caller's extras override them. `steps` settles
54
+ * each step of the run in the same write (Table B targets B5, B8, B10, B11). `event` is the
55
+ * lifecycle event the store writes once, when the exit moves a run into its status (B12). A guarded exit
56
+ * declares a `guard`, a `settle`, or both: the store commits it at once, with the record `settle`
57
+ * returns (the store writes the exit's fields and `to` over it). Its `guard` decides whether the run may take it: a failed guard writes nothing, and the store
58
+ * returns undefined, or throws `refused` when the exit names one. `durability` is how a write that
59
+ * applies the exit persists, unless a rule raises it (`exitDurability`); a guarded exit commits.
60
+ */
61
+ export type RunExitSpec = {
62
+ from: readonly RunStatus[];
63
+ to: RunStatus;
64
+ durability: ExitDurability;
65
+ fields?: (run: ExitRead, at: ExitSettlement) => RunPatch;
66
+ steps?: (step: StepState, run: ExitRead, at: StepSettlement) => StepState;
67
+ event?: string;
68
+ guard?: (run: RunRecord) => boolean;
69
+ refused?: string;
70
+ settle?: (run: RunRecord, at: ExitSettlement) => RunRecord;
71
+ };
72
+ /** The root's pending Finish intent, retired as a patch (SRF): nothing when the run holds none. */
73
+ export declare function retiredFinishPatch(run: Pick<RunRecord, 'delegation'>): Pick<RunPatch, 'delegation'>;
74
+ /** Whether `exit` settles a run: it writes done, review, failed or cancelled. */
75
+ export declare function settlesRun(exit: RunExitId): boolean;
76
+ /** A run that succeeded: its resume counter and the legacy `activity` retired. A run that got all
77
+ * the way to a settled turn is not in a usage-limit loop, so its resume counter starts over
78
+ * instead of creeping toward the cap. */
79
+ declare const succeeded: () => RunPatch;
80
+ /** A run that succeeded settles its running and waiting steps done at its time (B5). A worker's
81
+ * incomplete earlier step, the one the caller names, stays waiting: a parent resume re-enters it
82
+ * (hearsay-tools/cezarion#1620). */
83
+ declare const succeededStep: (step: StepState, _run: ExitRead, { finishedAt, stepId }: StepSettlement) => StepState;
84
+ /** A cancelled run has no live step (B10): its running and waiting steps settle cancelled at the
85
+ * run's time. */
86
+ declare const cancelledStep: (step: StepState, _run: ExitRead, { finishedAt }: StepSettlement) => StepState;
87
+ /** A failed run has no live step (B11): its running steps fail at the run's time, each keeping an
88
+ * error of its own, else taking the run's. A waiting step stays waiting: it is the cursor a
89
+ * Continue resumes, a root's (`settleIncompleteStep`) and an owned worker's alike
90
+ * (hearsay-tools/cezarion#1620). */
91
+ declare const failedStep: (step: StepState, _run: ExitRead, { finishedAt, error }: StepSettlement) => StepState;
92
+ /** A park settles its step waiting in the same write (B8): the step the caller names, else the
93
+ * run's current step. A step that already ended (a failed attempt a park keeps for its wakes)
94
+ * stays as it is. */
95
+ declare const parkedStep: (step: StepState, run: ExitRead, { stepId }: StepSettlement) => StepState;
96
+ /** A released park: the legacy `activity` cleared. */
97
+ declare function settleParkRelease(run: RunRecord): RunRecord;
98
+ /** The lifecycle event of a cancellation: one for each run a cancel exit moves into cancelled (B12). */
99
+ export declare const RUN_CANCELLED = "run cancelled";
100
+ declare const rootFinishWaiting: (run: RunRecord) => boolean;
101
+ export declare const RUN_EXITS: {
102
+ readonly start: {
103
+ readonly durability: 'debounced';
104
+ readonly from: readonly ["queued", "running", "waiting"];
105
+ readonly to: 'running';
106
+ };
107
+ readonly 'start-held': {
108
+ readonly durability: 'debounced';
109
+ readonly from: readonly ["queued"];
110
+ readonly to: 'queued';
111
+ };
112
+ readonly requeue: {
113
+ readonly durability: 'debounced';
114
+ readonly from: readonly ["queued", "running", "failed"];
115
+ readonly to: 'queued';
116
+ readonly fields: () => {
117
+ currentStepId: undefined;
118
+ };
119
+ };
120
+ readonly 'continue-line': {
121
+ readonly durability: 'debounced';
122
+ readonly from: readonly ["waiting", "review", "done", "failed", "cancelled"];
123
+ readonly to: 'queued';
124
+ readonly fields: () => {
125
+ error: undefined;
126
+ finishedAt: undefined;
127
+ currentStepId: undefined;
128
+ };
129
+ };
130
+ readonly 'continue-now': {
131
+ readonly durability: 'debounced';
132
+ readonly from: readonly ["waiting", "review", "done", "failed", "cancelled"];
133
+ readonly to: 'running';
134
+ readonly fields: () => {
135
+ error: undefined;
136
+ finishedAt: undefined;
137
+ };
138
+ };
139
+ readonly park: {
140
+ readonly durability: 'debounced';
141
+ readonly from: readonly ["running", "queued", "waiting"];
142
+ readonly to: 'waiting';
143
+ readonly steps: typeof parkedStep;
144
+ };
145
+ readonly 'park-release': {
146
+ readonly durability: 'committed';
147
+ readonly from: readonly ["running", "queued", "waiting"];
148
+ readonly to: 'waiting';
149
+ readonly settle: typeof settleParkRelease;
150
+ readonly steps: typeof parkedStep;
151
+ };
152
+ readonly 'park-for-wake': {
153
+ readonly durability: 'debounced';
154
+ readonly from: readonly ["queued", "waiting"];
155
+ readonly to: 'waiting';
156
+ };
157
+ readonly hold: {
158
+ readonly durability: 'debounced';
159
+ readonly from: readonly ["failed", "waiting"];
160
+ readonly to: 'waiting';
161
+ readonly fields: () => {
162
+ finishedAt: undefined;
163
+ };
164
+ };
165
+ readonly resume: {
166
+ readonly durability: 'debounced';
167
+ readonly from: readonly ["waiting"];
168
+ readonly to: 'running';
169
+ };
170
+ readonly succeed: {
171
+ readonly durability: 'debounced';
172
+ readonly from: readonly ["running", "waiting"];
173
+ readonly to: 'done';
174
+ readonly fields: typeof succeeded;
175
+ readonly steps: typeof succeededStep;
176
+ };
177
+ readonly 'succeed-review': {
178
+ readonly durability: 'debounced';
179
+ readonly from: readonly ["running", "waiting"];
180
+ readonly to: 'review';
181
+ readonly fields: typeof succeeded;
182
+ readonly steps: typeof succeededStep;
183
+ };
184
+ readonly 'succeed-root': {
185
+ readonly durability: 'committed';
186
+ readonly from: readonly ["waiting"];
187
+ readonly to: 'done';
188
+ readonly guard: typeof rootFinishWaiting;
189
+ readonly fields: typeof succeeded;
190
+ readonly steps: typeof succeededStep;
191
+ };
192
+ readonly 'succeed-root-review': {
193
+ readonly durability: 'committed';
194
+ readonly from: readonly ["waiting"];
195
+ readonly to: 'review';
196
+ readonly guard: typeof rootFinishWaiting;
197
+ readonly fields: typeof succeeded;
198
+ readonly steps: typeof succeededStep;
199
+ };
200
+ readonly 'accept-review': {
201
+ readonly durability: 'debounced';
202
+ readonly from: readonly ["review"];
203
+ readonly to: 'done';
204
+ };
205
+ readonly 'draft-pr': {
206
+ readonly durability: 'debounced';
207
+ readonly from: readonly ["review", "done", "failed", "cancelled"];
208
+ readonly to: 'done';
209
+ };
210
+ readonly 'fail-start': {
211
+ readonly durability: 'debounced';
212
+ readonly from: readonly ["queued", "running"];
213
+ readonly to: 'failed';
214
+ readonly steps: typeof failedStep;
215
+ };
216
+ readonly fail: {
217
+ readonly durability: 'debounced';
218
+ readonly from: readonly ["running", "waiting"];
219
+ readonly to: 'failed';
220
+ readonly steps: typeof failedStep;
221
+ };
222
+ readonly 'fail-continue': {
223
+ readonly durability: 'debounced';
224
+ readonly from: readonly ["running", "waiting", "cancelled"];
225
+ readonly to: 'failed';
226
+ readonly steps: typeof failedStep;
227
+ };
228
+ readonly 'fail-interrupted': {
229
+ readonly durability: 'debounced';
230
+ readonly from: readonly ["queued", "running", "waiting"];
231
+ readonly to: 'failed';
232
+ readonly fields: () => {
233
+ error: string;
234
+ };
235
+ readonly steps: typeof failedStep;
236
+ };
237
+ readonly 'fail-crash': {
238
+ readonly durability: 'debounced';
239
+ readonly from: readonly ["queued", "running", "waiting"];
240
+ readonly to: 'failed';
241
+ readonly steps: typeof failedStep;
242
+ };
243
+ readonly 'withdraw-hold': {
244
+ readonly durability: 'committed';
245
+ readonly from: readonly ["waiting"];
246
+ readonly to: 'failed';
247
+ readonly guard: typeof isUsageLimitHold;
248
+ readonly settle: (run: {
249
+ archiveWhenDone?: boolean | undefined;
250
+ autoMergePr?: boolean | undefined;
251
+ allowWorkers?: boolean | undefined;
252
+ allowMessaging?: boolean | undefined;
253
+ id: string;
254
+ title: string;
255
+ titleSummary?: string | undefined;
256
+ diffStat?: {
257
+ adds: number;
258
+ dels: number;
259
+ files: number;
260
+ repointed?: boolean | undefined;
261
+ } | undefined;
262
+ workflow: string;
263
+ task: string;
264
+ queuedMessages?: {
265
+ id: string;
266
+ text: string;
267
+ images?: string[] | undefined;
268
+ createdAt: string;
269
+ }[] | undefined;
270
+ stopping?: boolean | undefined;
271
+ continuationMessage?: {
272
+ id: string;
273
+ text: string;
274
+ images?: string[] | undefined;
275
+ createdAt: string;
276
+ origin?: "human" | "lifecycle" | undefined;
277
+ agentInputId?: string | undefined;
278
+ resumeContext?: {
279
+ failure?: {
280
+ stepId?: string | undefined;
281
+ error: string;
282
+ } | undefined;
283
+ restarted?: true | undefined;
284
+ } | undefined;
285
+ } | undefined;
286
+ workflowResumeStepId?: string | undefined;
287
+ invalidAsk?: boolean | undefined;
288
+ delegation?: {
289
+ role: "root";
290
+ conversation?: {
291
+ messages: {
292
+ senderRunId: string;
293
+ recipientRunId: string;
294
+ kind: "follow-up" | "progress" | "reply" | "request";
295
+ requestId?: string | undefined;
296
+ relationship?: "family" | "peer" | undefined;
297
+ id: string;
298
+ text: string;
299
+ createdAt: string;
300
+ deadline?: string | undefined;
301
+ requestHash: string;
302
+ state: "accepted" | "continuation-required" | "destroyed" | "late";
303
+ resumed?: true | undefined;
304
+ instruction?: string | undefined;
305
+ question?: {
306
+ context?: string | undefined;
307
+ questions: {
308
+ id?: string | undefined;
309
+ header: string;
310
+ question: string;
311
+ options?: {
312
+ label: string;
313
+ description?: string | undefined;
314
+ }[] | undefined;
315
+ multiSelect?: boolean | undefined;
316
+ }[];
317
+ } | undefined;
318
+ }[];
319
+ outcomes: {
320
+ requestId: string;
321
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
322
+ observedAt: string;
323
+ replyId?: string | undefined;
324
+ }[];
325
+ } | undefined;
326
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
327
+ receipts: {
328
+ requestId: string;
329
+ workerId: string;
330
+ requestHash: string;
331
+ deletion?: {
332
+ phase: "complete" | "pending";
333
+ revision: number;
334
+ resourceId: string;
335
+ generation: string;
336
+ } | undefined;
337
+ }[];
338
+ wait?: {
339
+ id: string;
340
+ workerIds: string[];
341
+ requestIds?: string[] | undefined;
342
+ requestOutcomes?: {
343
+ requestId: string;
344
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
345
+ observedAt: string;
346
+ replyId?: string | undefined;
347
+ }[] | undefined;
348
+ deadline: string;
349
+ mode?: "all" | "any" | "one" | undefined;
350
+ revisions?: {
351
+ workerId: string;
352
+ revision: number;
353
+ }[] | undefined;
354
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
355
+ phase: "parked" | "registered" | "wake-pending";
356
+ outcomes: {
357
+ workerId: string;
358
+ status: "cancelled" | "done" | "failed" | "review";
359
+ observedAt: string;
360
+ summary?: string | undefined;
361
+ revision?: number | undefined;
362
+ }[];
363
+ wakeId?: string | undefined;
364
+ } | undefined;
365
+ lastWait?: {
366
+ id: string;
367
+ workerIds: string[];
368
+ requestIds?: string[] | undefined;
369
+ requestOutcomes?: {
370
+ requestId: string;
371
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
372
+ observedAt: string;
373
+ replyId?: string | undefined;
374
+ }[] | undefined;
375
+ deadline: string;
376
+ mode?: "all" | "any" | "one" | undefined;
377
+ revisions?: {
378
+ workerId: string;
379
+ revision: number;
380
+ }[] | undefined;
381
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
382
+ phase: "parked" | "registered" | "wake-pending";
383
+ outcomes: {
384
+ workerId: string;
385
+ status: "cancelled" | "done" | "failed" | "review";
386
+ observedAt: string;
387
+ summary?: string | undefined;
388
+ revision?: number | undefined;
389
+ }[];
390
+ wakeId?: string | undefined;
391
+ } | undefined;
392
+ results?: {
393
+ workerId: string;
394
+ revision: number;
395
+ snapshotId: string;
396
+ observedAt: string;
397
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
398
+ previous?: {
399
+ revision: number;
400
+ observedAt: string;
401
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
402
+ } | undefined;
403
+ }[] | undefined;
404
+ finishRequestedAt?: string | undefined;
405
+ historyDeletion?: "pending" | undefined;
406
+ completion?: {
407
+ phase: "attention" | "waiting";
408
+ waitId?: string | undefined;
409
+ } | undefined;
410
+ } | {
411
+ role: "worker";
412
+ wait?: {
413
+ id: string;
414
+ workerIds: string[];
415
+ requestIds?: string[] | undefined;
416
+ requestOutcomes?: {
417
+ requestId: string;
418
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
419
+ observedAt: string;
420
+ replyId?: string | undefined;
421
+ }[] | undefined;
422
+ deadline: string;
423
+ mode?: "all" | "any" | "one" | undefined;
424
+ revisions?: {
425
+ workerId: string;
426
+ revision: number;
427
+ }[] | undefined;
428
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
429
+ phase: "parked" | "registered" | "wake-pending";
430
+ outcomes: {
431
+ workerId: string;
432
+ status: "cancelled" | "done" | "failed" | "review";
433
+ observedAt: string;
434
+ summary?: string | undefined;
435
+ revision?: number | undefined;
436
+ }[];
437
+ wakeId?: string | undefined;
438
+ } | undefined;
439
+ lastWait?: {
440
+ id: string;
441
+ workerIds: string[];
442
+ requestIds?: string[] | undefined;
443
+ requestOutcomes?: {
444
+ requestId: string;
445
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
446
+ observedAt: string;
447
+ replyId?: string | undefined;
448
+ }[] | undefined;
449
+ deadline: string;
450
+ mode?: "all" | "any" | "one" | undefined;
451
+ revisions?: {
452
+ workerId: string;
453
+ revision: number;
454
+ }[] | undefined;
455
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
456
+ phase: "parked" | "registered" | "wake-pending";
457
+ outcomes: {
458
+ workerId: string;
459
+ status: "cancelled" | "done" | "failed" | "review";
460
+ observedAt: string;
461
+ summary?: string | undefined;
462
+ revision?: number | undefined;
463
+ }[];
464
+ wakeId?: string | undefined;
465
+ } | undefined;
466
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
467
+ parentRunId: string;
468
+ workspace: {
469
+ ownerRunId: string;
470
+ resourceId: string;
471
+ kind: "owned-isolated";
472
+ path: string;
473
+ branch: string;
474
+ baselineSha: string;
475
+ };
476
+ destroy?: {
477
+ requestedAt: string;
478
+ phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
479
+ remaining: ("branch" | "process" | "worktree")[];
480
+ error?: string | undefined;
481
+ } | undefined;
482
+ context?: {
483
+ text?: string | undefined;
484
+ inputs: {
485
+ source: {
486
+ kind: "parent-file";
487
+ path: string;
488
+ } | {
489
+ kind: "baseline-file";
490
+ path: string;
491
+ } | {
492
+ kind: "parent-attachment";
493
+ id: string;
494
+ };
495
+ path: string;
496
+ sha256: string;
497
+ bytes: number;
498
+ }[];
499
+ } | undefined;
500
+ executionRevision?: number | undefined;
501
+ executionStartSeq?: number | undefined;
502
+ } | {
503
+ role: "invalid";
504
+ } | undefined;
505
+ agentInputs?: {
506
+ conversation?: {
507
+ senderRunId: string;
508
+ recipientRunId: string;
509
+ kind: "follow-up" | "progress" | "reply" | "request";
510
+ requestId?: string | undefined;
511
+ relationship?: "family" | "peer" | undefined;
512
+ } | undefined;
513
+ id: string;
514
+ source: "agent" | "lifecycle";
515
+ parentRunId: string;
516
+ text: string;
517
+ createdAt: string;
518
+ deliveredAt?: string | undefined;
519
+ consumedAt?: string | undefined;
520
+ awaitingRead?: true | undefined;
521
+ inboxClaim?: {
522
+ receiptId: string;
523
+ generation: string;
524
+ expiresAt: string;
525
+ acknowledgedAt?: string | undefined;
526
+ memberIds?: string[] | undefined;
527
+ } | undefined;
528
+ purpose?: "completion-refusal" | "undelivered-question" | undefined;
529
+ requestHash?: string | undefined;
530
+ deadline?: string | undefined;
531
+ }[] | undefined;
532
+ waits?: ({
533
+ prUrl: string;
534
+ repository: string;
535
+ prNumber: number;
536
+ headSha: string;
537
+ id: string;
538
+ source: "agent" | "cezar";
539
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
540
+ registeredAt: string;
541
+ phase: "cancelled" | "delivered" | "open" | "resolved";
542
+ resolvedAt?: string | undefined;
543
+ deliveredAt?: string | undefined;
544
+ cancelledAt?: string | undefined;
545
+ turnId: string;
546
+ kind: "pr";
547
+ deadline: string;
548
+ generation: string;
549
+ timeoutSeconds: number;
550
+ until: "checks" | "merge" | "merge_or_blocked";
551
+ wakeOnConflict: boolean;
552
+ result?: {
553
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
554
+ headSha: string;
555
+ observedHeadSha?: string | undefined;
556
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
557
+ mergeStateStatus?: string | undefined;
558
+ mergedAt?: string | undefined;
559
+ mergeCommitSha?: string | undefined;
560
+ mergeBlock?: {
561
+ reason: "conflict" | "no_pending_merge";
562
+ isInMergeQueue: boolean;
563
+ autoMergeEnabled: boolean;
564
+ event?: {
565
+ kind: "auto_merge_disabled" | "queue_removal";
566
+ createdAt: string;
567
+ reason?: string | undefined;
568
+ reasonCode?: string | undefined;
569
+ } | undefined;
570
+ } | undefined;
571
+ observedAt: string;
572
+ checks: {
573
+ name: string;
574
+ state: string;
575
+ link: string;
576
+ }[];
577
+ totalChecks: number;
578
+ truncated: boolean;
579
+ diagnostic?: string | undefined;
580
+ } | undefined;
581
+ } | {
582
+ id: string;
583
+ source: "agent" | "cezar";
584
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
585
+ registeredAt: string;
586
+ phase: "cancelled" | "delivered" | "open" | "resolved";
587
+ resolvedAt?: string | undefined;
588
+ deliveredAt?: string | undefined;
589
+ cancelledAt?: string | undefined;
590
+ turnId: string;
591
+ kind: "timer";
592
+ deadline: string;
593
+ seconds: number;
594
+ note?: string | undefined;
595
+ } | {
596
+ id: string;
597
+ source: "agent" | "cezar";
598
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
599
+ registeredAt: string;
600
+ phase: "cancelled" | "delivered" | "open" | "resolved";
601
+ resolvedAt?: string | undefined;
602
+ deliveredAt?: string | undefined;
603
+ cancelledAt?: string | undefined;
604
+ turnId: string;
605
+ kind: "human";
606
+ questions?: {
607
+ id?: string | undefined;
608
+ header: string;
609
+ question: string;
610
+ options?: {
611
+ label: string;
612
+ description?: string | undefined;
613
+ }[] | undefined;
614
+ multiSelect?: boolean | undefined;
615
+ }[] | undefined;
616
+ context?: string | undefined;
617
+ askSeq?: number | undefined;
618
+ } | {
619
+ id: string;
620
+ source: "agent" | "cezar";
621
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
622
+ registeredAt: string;
623
+ phase: "cancelled" | "delivered" | "open" | "resolved";
624
+ resolvedAt?: string | undefined;
625
+ deliveredAt?: string | undefined;
626
+ cancelledAt?: string | undefined;
627
+ turnId: string;
628
+ kind: "worker";
629
+ deadline?: string | undefined;
630
+ timeoutSeconds?: number | undefined;
631
+ mode?: "all" | "any" | "one" | undefined;
632
+ workerIds?: string[] | undefined;
633
+ revisions?: {
634
+ workerId: string;
635
+ revision: number;
636
+ }[] | undefined;
637
+ outcomes?: {
638
+ workerId: string;
639
+ status: "cancelled" | "done" | "failed" | "review";
640
+ observedAt: string;
641
+ summary?: string | undefined;
642
+ revision?: number | undefined;
643
+ }[] | undefined;
644
+ requestIds?: string[] | undefined;
645
+ requestOutcomes?: {
646
+ requestId: string;
647
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
648
+ observedAt: string;
649
+ replyId?: string | undefined;
650
+ }[] | undefined;
651
+ result?: {
652
+ reason: "outcome" | "timeout";
653
+ } | undefined;
654
+ wakeInputId?: string | undefined;
655
+ } | {
656
+ id: string;
657
+ source: "agent" | "cezar";
658
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
659
+ registeredAt: string;
660
+ phase: "cancelled" | "delivered" | "open" | "resolved";
661
+ resolvedAt?: string | undefined;
662
+ deliveredAt?: string | undefined;
663
+ cancelledAt?: string | undefined;
664
+ turnId: string;
665
+ kind: "process";
666
+ deadline: string;
667
+ timeoutSeconds: number;
668
+ pid: number;
669
+ startToken?: string | undefined;
670
+ exitFile?: string | undefined;
671
+ note?: string | undefined;
672
+ result?: {
673
+ outcome: "deadline" | "error" | "exit_file" | "exited";
674
+ observedAt: string;
675
+ exitCode?: number | undefined;
676
+ exitFileNote?: "not-an-exit-code" | undefined;
677
+ diagnostic?: string | undefined;
678
+ } | undefined;
679
+ } | {
680
+ id: string;
681
+ source: "agent" | "cezar";
682
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
683
+ registeredAt: string;
684
+ phase: "cancelled" | "delivered" | "open" | "resolved";
685
+ resolvedAt?: string | undefined;
686
+ deliveredAt?: string | undefined;
687
+ cancelledAt?: string | undefined;
688
+ turnId: string;
689
+ kind: "peer";
690
+ deadline: string;
691
+ timeoutSeconds: number;
692
+ peerIds: string[];
693
+ result?: {
694
+ reason: "message";
695
+ peerRunId: string;
696
+ messageId: string;
697
+ } | {
698
+ reason: "settled";
699
+ peerRunId: string;
700
+ } | {
701
+ reason: "timeout";
702
+ } | undefined;
703
+ } | {
704
+ id: string;
705
+ registeredAt: string;
706
+ phase: "cancelled" | "delivered" | "open" | "resolved";
707
+ resolvedAt?: string | undefined;
708
+ deliveredAt?: string | undefined;
709
+ cancelledAt?: string | undefined;
710
+ turnId: string;
711
+ kind: "subagent";
712
+ source: "cezar";
713
+ via: "native-subagents";
714
+ deadline: string;
715
+ children: {
716
+ id: string;
717
+ status: "cancelled" | "completed" | "failed" | "running";
718
+ }[];
719
+ result?: {
720
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
721
+ } | undefined;
722
+ })[] | undefined;
723
+ waitRegistrations?: {
724
+ operationId: string;
725
+ requestHash: string;
726
+ wait: {
727
+ prUrl: string;
728
+ repository: string;
729
+ prNumber: number;
730
+ headSha: string;
731
+ id: string;
732
+ source: "agent" | "cezar";
733
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
734
+ registeredAt: string;
735
+ phase: "cancelled" | "delivered" | "open" | "resolved";
736
+ resolvedAt?: string | undefined;
737
+ deliveredAt?: string | undefined;
738
+ cancelledAt?: string | undefined;
739
+ turnId: string;
740
+ kind: "pr";
741
+ deadline: string;
742
+ generation: string;
743
+ timeoutSeconds: number;
744
+ until: "checks" | "merge" | "merge_or_blocked";
745
+ wakeOnConflict: boolean;
746
+ result?: {
747
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
748
+ headSha: string;
749
+ observedHeadSha?: string | undefined;
750
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
751
+ mergeStateStatus?: string | undefined;
752
+ mergedAt?: string | undefined;
753
+ mergeCommitSha?: string | undefined;
754
+ mergeBlock?: {
755
+ reason: "conflict" | "no_pending_merge";
756
+ isInMergeQueue: boolean;
757
+ autoMergeEnabled: boolean;
758
+ event?: {
759
+ kind: "auto_merge_disabled" | "queue_removal";
760
+ createdAt: string;
761
+ reason?: string | undefined;
762
+ reasonCode?: string | undefined;
763
+ } | undefined;
764
+ } | undefined;
765
+ observedAt: string;
766
+ checks: {
767
+ name: string;
768
+ state: string;
769
+ link: string;
770
+ }[];
771
+ totalChecks: number;
772
+ truncated: boolean;
773
+ diagnostic?: string | undefined;
774
+ } | undefined;
775
+ } | {
776
+ id: string;
777
+ source: "agent" | "cezar";
778
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
779
+ registeredAt: string;
780
+ phase: "cancelled" | "delivered" | "open" | "resolved";
781
+ resolvedAt?: string | undefined;
782
+ deliveredAt?: string | undefined;
783
+ cancelledAt?: string | undefined;
784
+ turnId: string;
785
+ kind: "timer";
786
+ deadline: string;
787
+ seconds: number;
788
+ note?: string | undefined;
789
+ } | {
790
+ id: string;
791
+ source: "agent" | "cezar";
792
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
793
+ registeredAt: string;
794
+ phase: "cancelled" | "delivered" | "open" | "resolved";
795
+ resolvedAt?: string | undefined;
796
+ deliveredAt?: string | undefined;
797
+ cancelledAt?: string | undefined;
798
+ turnId: string;
799
+ kind: "human";
800
+ questions?: {
801
+ id?: string | undefined;
802
+ header: string;
803
+ question: string;
804
+ options?: {
805
+ label: string;
806
+ description?: string | undefined;
807
+ }[] | undefined;
808
+ multiSelect?: boolean | undefined;
809
+ }[] | undefined;
810
+ context?: string | undefined;
811
+ askSeq?: number | undefined;
812
+ } | {
813
+ id: string;
814
+ source: "agent" | "cezar";
815
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
816
+ registeredAt: string;
817
+ phase: "cancelled" | "delivered" | "open" | "resolved";
818
+ resolvedAt?: string | undefined;
819
+ deliveredAt?: string | undefined;
820
+ cancelledAt?: string | undefined;
821
+ turnId: string;
822
+ kind: "worker";
823
+ deadline?: string | undefined;
824
+ timeoutSeconds?: number | undefined;
825
+ mode?: "all" | "any" | "one" | undefined;
826
+ workerIds?: string[] | undefined;
827
+ revisions?: {
828
+ workerId: string;
829
+ revision: number;
830
+ }[] | undefined;
831
+ outcomes?: {
832
+ workerId: string;
833
+ status: "cancelled" | "done" | "failed" | "review";
834
+ observedAt: string;
835
+ summary?: string | undefined;
836
+ revision?: number | undefined;
837
+ }[] | undefined;
838
+ requestIds?: string[] | undefined;
839
+ requestOutcomes?: {
840
+ requestId: string;
841
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
842
+ observedAt: string;
843
+ replyId?: string | undefined;
844
+ }[] | undefined;
845
+ result?: {
846
+ reason: "outcome" | "timeout";
847
+ } | undefined;
848
+ wakeInputId?: string | undefined;
849
+ } | {
850
+ id: string;
851
+ source: "agent" | "cezar";
852
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
853
+ registeredAt: string;
854
+ phase: "cancelled" | "delivered" | "open" | "resolved";
855
+ resolvedAt?: string | undefined;
856
+ deliveredAt?: string | undefined;
857
+ cancelledAt?: string | undefined;
858
+ turnId: string;
859
+ kind: "process";
860
+ deadline: string;
861
+ timeoutSeconds: number;
862
+ pid: number;
863
+ startToken?: string | undefined;
864
+ exitFile?: string | undefined;
865
+ note?: string | undefined;
866
+ result?: {
867
+ outcome: "deadline" | "error" | "exit_file" | "exited";
868
+ observedAt: string;
869
+ exitCode?: number | undefined;
870
+ exitFileNote?: "not-an-exit-code" | undefined;
871
+ diagnostic?: string | undefined;
872
+ } | undefined;
873
+ } | {
874
+ id: string;
875
+ source: "agent" | "cezar";
876
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
877
+ registeredAt: string;
878
+ phase: "cancelled" | "delivered" | "open" | "resolved";
879
+ resolvedAt?: string | undefined;
880
+ deliveredAt?: string | undefined;
881
+ cancelledAt?: string | undefined;
882
+ turnId: string;
883
+ kind: "peer";
884
+ deadline: string;
885
+ timeoutSeconds: number;
886
+ peerIds: string[];
887
+ result?: {
888
+ reason: "message";
889
+ peerRunId: string;
890
+ messageId: string;
891
+ } | {
892
+ reason: "settled";
893
+ peerRunId: string;
894
+ } | {
895
+ reason: "timeout";
896
+ } | undefined;
897
+ } | {
898
+ id: string;
899
+ registeredAt: string;
900
+ phase: "cancelled" | "delivered" | "open" | "resolved";
901
+ resolvedAt?: string | undefined;
902
+ deliveredAt?: string | undefined;
903
+ cancelledAt?: string | undefined;
904
+ turnId: string;
905
+ kind: "subagent";
906
+ source: "cezar";
907
+ via: "native-subagents";
908
+ deadline: string;
909
+ children: {
910
+ id: string;
911
+ status: "cancelled" | "completed" | "failed" | "running";
912
+ }[];
913
+ result?: {
914
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
915
+ } | undefined;
916
+ };
917
+ deduplicated: boolean;
918
+ }[] | undefined;
919
+ lastWaits?: ({
920
+ prUrl: string;
921
+ repository: string;
922
+ prNumber: number;
923
+ headSha: string;
924
+ id: string;
925
+ source: "agent" | "cezar";
926
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
927
+ registeredAt: string;
928
+ phase: "cancelled" | "delivered" | "open" | "resolved";
929
+ resolvedAt?: string | undefined;
930
+ deliveredAt?: string | undefined;
931
+ cancelledAt?: string | undefined;
932
+ turnId: string;
933
+ kind: "pr";
934
+ deadline: string;
935
+ generation: string;
936
+ timeoutSeconds: number;
937
+ until: "checks" | "merge" | "merge_or_blocked";
938
+ wakeOnConflict: boolean;
939
+ result?: {
940
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
941
+ headSha: string;
942
+ observedHeadSha?: string | undefined;
943
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
944
+ mergeStateStatus?: string | undefined;
945
+ mergedAt?: string | undefined;
946
+ mergeCommitSha?: string | undefined;
947
+ mergeBlock?: {
948
+ reason: "conflict" | "no_pending_merge";
949
+ isInMergeQueue: boolean;
950
+ autoMergeEnabled: boolean;
951
+ event?: {
952
+ kind: "auto_merge_disabled" | "queue_removal";
953
+ createdAt: string;
954
+ reason?: string | undefined;
955
+ reasonCode?: string | undefined;
956
+ } | undefined;
957
+ } | undefined;
958
+ observedAt: string;
959
+ checks: {
960
+ name: string;
961
+ state: string;
962
+ link: string;
963
+ }[];
964
+ totalChecks: number;
965
+ truncated: boolean;
966
+ diagnostic?: string | undefined;
967
+ } | undefined;
968
+ } | {
969
+ id: string;
970
+ source: "agent" | "cezar";
971
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
972
+ registeredAt: string;
973
+ phase: "cancelled" | "delivered" | "open" | "resolved";
974
+ resolvedAt?: string | undefined;
975
+ deliveredAt?: string | undefined;
976
+ cancelledAt?: string | undefined;
977
+ turnId: string;
978
+ kind: "timer";
979
+ deadline: string;
980
+ seconds: number;
981
+ note?: string | undefined;
982
+ } | {
983
+ id: string;
984
+ source: "agent" | "cezar";
985
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
986
+ registeredAt: string;
987
+ phase: "cancelled" | "delivered" | "open" | "resolved";
988
+ resolvedAt?: string | undefined;
989
+ deliveredAt?: string | undefined;
990
+ cancelledAt?: string | undefined;
991
+ turnId: string;
992
+ kind: "human";
993
+ questions?: {
994
+ id?: string | undefined;
995
+ header: string;
996
+ question: string;
997
+ options?: {
998
+ label: string;
999
+ description?: string | undefined;
1000
+ }[] | undefined;
1001
+ multiSelect?: boolean | undefined;
1002
+ }[] | undefined;
1003
+ context?: string | undefined;
1004
+ askSeq?: number | undefined;
1005
+ } | {
1006
+ id: string;
1007
+ source: "agent" | "cezar";
1008
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1009
+ registeredAt: string;
1010
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1011
+ resolvedAt?: string | undefined;
1012
+ deliveredAt?: string | undefined;
1013
+ cancelledAt?: string | undefined;
1014
+ turnId: string;
1015
+ kind: "worker";
1016
+ deadline?: string | undefined;
1017
+ timeoutSeconds?: number | undefined;
1018
+ mode?: "all" | "any" | "one" | undefined;
1019
+ workerIds?: string[] | undefined;
1020
+ revisions?: {
1021
+ workerId: string;
1022
+ revision: number;
1023
+ }[] | undefined;
1024
+ outcomes?: {
1025
+ workerId: string;
1026
+ status: "cancelled" | "done" | "failed" | "review";
1027
+ observedAt: string;
1028
+ summary?: string | undefined;
1029
+ revision?: number | undefined;
1030
+ }[] | undefined;
1031
+ requestIds?: string[] | undefined;
1032
+ requestOutcomes?: {
1033
+ requestId: string;
1034
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1035
+ observedAt: string;
1036
+ replyId?: string | undefined;
1037
+ }[] | undefined;
1038
+ result?: {
1039
+ reason: "outcome" | "timeout";
1040
+ } | undefined;
1041
+ wakeInputId?: string | undefined;
1042
+ } | {
1043
+ id: string;
1044
+ source: "agent" | "cezar";
1045
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1046
+ registeredAt: string;
1047
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1048
+ resolvedAt?: string | undefined;
1049
+ deliveredAt?: string | undefined;
1050
+ cancelledAt?: string | undefined;
1051
+ turnId: string;
1052
+ kind: "process";
1053
+ deadline: string;
1054
+ timeoutSeconds: number;
1055
+ pid: number;
1056
+ startToken?: string | undefined;
1057
+ exitFile?: string | undefined;
1058
+ note?: string | undefined;
1059
+ result?: {
1060
+ outcome: "deadline" | "error" | "exit_file" | "exited";
1061
+ observedAt: string;
1062
+ exitCode?: number | undefined;
1063
+ exitFileNote?: "not-an-exit-code" | undefined;
1064
+ diagnostic?: string | undefined;
1065
+ } | undefined;
1066
+ } | {
1067
+ id: string;
1068
+ source: "agent" | "cezar";
1069
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1070
+ registeredAt: string;
1071
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1072
+ resolvedAt?: string | undefined;
1073
+ deliveredAt?: string | undefined;
1074
+ cancelledAt?: string | undefined;
1075
+ turnId: string;
1076
+ kind: "peer";
1077
+ deadline: string;
1078
+ timeoutSeconds: number;
1079
+ peerIds: string[];
1080
+ result?: {
1081
+ reason: "message";
1082
+ peerRunId: string;
1083
+ messageId: string;
1084
+ } | {
1085
+ reason: "settled";
1086
+ peerRunId: string;
1087
+ } | {
1088
+ reason: "timeout";
1089
+ } | undefined;
1090
+ } | {
1091
+ id: string;
1092
+ registeredAt: string;
1093
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1094
+ resolvedAt?: string | undefined;
1095
+ deliveredAt?: string | undefined;
1096
+ cancelledAt?: string | undefined;
1097
+ turnId: string;
1098
+ kind: "subagent";
1099
+ source: "cezar";
1100
+ via: "native-subagents";
1101
+ deadline: string;
1102
+ children: {
1103
+ id: string;
1104
+ status: "cancelled" | "completed" | "failed" | "running";
1105
+ }[];
1106
+ result?: {
1107
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
1108
+ } | undefined;
1109
+ })[] | undefined;
1110
+ lastWaitsError?: string | undefined;
1111
+ automaticWakes?: number | undefined;
1112
+ waitDeliveryFailures?: number | undefined;
1113
+ previewServers?: {
1114
+ port: number;
1115
+ command: string;
1116
+ cwd?: string | undefined;
1117
+ label: string;
1118
+ path?: string | undefined;
1119
+ registeredAt: string;
1120
+ answeredAtRegistration: boolean;
1121
+ }[] | undefined;
1122
+ taskImages?: string[] | undefined;
1123
+ model?: string | undefined;
1124
+ effort?: string | undefined;
1125
+ modelIdentity?: string | undefined;
1126
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
1127
+ agentProfile?: string | undefined;
1128
+ systemPrompt?: string | undefined;
1129
+ generateFollowups?: boolean | undefined;
1130
+ autonomous?: boolean | undefined;
1131
+ completionAction?: {
1132
+ id: string;
1133
+ phase: "blocked" | "complete" | "pending";
1134
+ message?: string | undefined;
1135
+ } | undefined;
1136
+ archiveBlocker?: {
1137
+ message: string;
1138
+ runId?: string | undefined;
1139
+ pullRequestUrl?: string | undefined;
1140
+ } | undefined;
1141
+ automation?: {
1142
+ automationId: string;
1143
+ automationRevision: number;
1144
+ receiptId: string;
1145
+ event: string;
1146
+ githubUrl: string;
1147
+ } | undefined;
1148
+ automationTrigger?: {
1149
+ automationId: string;
1150
+ automationRevision: number;
1151
+ receiptId: string;
1152
+ trigger: "catch-up" | "manual" | "schedule";
1153
+ occurrenceAt: string;
1154
+ } | undefined;
1155
+ destroyRetry?: {
1156
+ attempts: number;
1157
+ nextAt: string;
1158
+ needsAttention?: true | undefined;
1159
+ } | undefined;
1160
+ notify?: boolean | undefined;
1161
+ webhook?: {
1162
+ lastDeliveredAt?: string | undefined;
1163
+ lastError?: string | undefined;
1164
+ lastErrorWebhookId?: string | undefined;
1165
+ } | undefined;
1166
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
1167
+ hasPendingPermission?: boolean | undefined;
1168
+ autoResumeAt?: string | undefined;
1169
+ autoResumeAttempts?: number | undefined;
1170
+ createdAt: string;
1171
+ startedAt?: string | undefined;
1172
+ finishedAt?: string | undefined;
1173
+ tokensUsed: number;
1174
+ inputTokens?: number | undefined;
1175
+ outputTokens?: number | undefined;
1176
+ costUsd?: number | undefined;
1177
+ pullRequestUrl?: string | undefined;
1178
+ pullRequests?: {
1179
+ number: number;
1180
+ url?: string | undefined;
1181
+ source: "created" | "declared";
1182
+ }[] | undefined;
1183
+ referencedPullRequestUrl?: string | undefined;
1184
+ prNumber?: number | undefined;
1185
+ issueNumber?: number | undefined;
1186
+ referencedIssueNumberSeeded?: boolean | undefined;
1187
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
1188
+ markerRefs?: {
1189
+ pr?: number | undefined;
1190
+ issue?: number | undefined;
1191
+ } | undefined;
1192
+ referencedPrCandidates?: string[] | undefined;
1193
+ referencedIssueUrl?: string | undefined;
1194
+ referencedIssueCandidates?: string[] | undefined;
1195
+ worktree?: false | undefined;
1196
+ worktreePath?: string | undefined;
1197
+ branch?: string | undefined;
1198
+ baseBranch?: string | undefined;
1199
+ worktreeReclaimedAt?: string | undefined;
1200
+ worktreeSetup?: {
1201
+ status: "done" | "failed" | "running";
1202
+ startedAt: string;
1203
+ finishedAt?: string | undefined;
1204
+ durationMs?: number | undefined;
1205
+ error?: string | undefined;
1206
+ } | undefined;
1207
+ groupId?: string | undefined;
1208
+ variant?: string | undefined;
1209
+ clientRequestId?: string | undefined;
1210
+ clientRequestHash?: string | undefined;
1211
+ peakRssBytes?: number | undefined;
1212
+ peakProcCount?: number | undefined;
1213
+ archived: boolean;
1214
+ archivedAt?: string | undefined;
1215
+ autoArchive?: {
1216
+ reason: "pull-requests-merged";
1217
+ archivedAt: string;
1218
+ fingerprint: string;
1219
+ pullRequests: {
1220
+ owner: string;
1221
+ repo: string;
1222
+ number: number;
1223
+ mergedAt: string;
1224
+ }[];
1225
+ } | undefined;
1226
+ manualUnarchivedAt?: string | undefined;
1227
+ pinned?: boolean | undefined;
1228
+ pinnedAt?: string | undefined;
1229
+ seenAt?: string | undefined;
1230
+ currentStepId?: string | undefined;
1231
+ error?: string | undefined;
1232
+ steps: {
1233
+ id: string;
1234
+ name: string;
1235
+ kind: "agent" | "check";
1236
+ status: "cancelled" | "done" | "failed" | "pending" | "review" | "running" | "skipped" | "waiting";
1237
+ iterations: number;
1238
+ retriesUsed?: number | undefined;
1239
+ tokensUsed: number;
1240
+ inputTokens?: number | undefined;
1241
+ outputTokens?: number | undefined;
1242
+ usageInvocationsStarted?: number | undefined;
1243
+ usageInvocationsObserved?: number | undefined;
1244
+ usageTurnsStarted?: number | undefined;
1245
+ usageTurnsRecorded?: number | undefined;
1246
+ usageInvocationEpoch?: number | undefined;
1247
+ startedAt?: string | undefined;
1248
+ finishedAt?: string | undefined;
1249
+ error?: string | undefined;
1250
+ sessionId?: string | undefined;
1251
+ sessionTransport?: "cursor-acp" | "cursor-print" | undefined;
1252
+ backend?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
1253
+ profileId?: string | undefined;
1254
+ costUsd?: number | undefined;
1255
+ synthetic?: "continuation" | undefined;
1256
+ }[];
1257
+ workflowDef?: {
1258
+ name: string;
1259
+ description?: string | undefined;
1260
+ steps: {
1261
+ id: string;
1262
+ name?: string | undefined;
1263
+ prompt?: string | undefined;
1264
+ skill?: string | undefined;
1265
+ model?: string | undefined;
1266
+ effort?: string | undefined;
1267
+ timeoutMs?: number | undefined;
1268
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
1269
+ agentProfile?: string | undefined;
1270
+ allowedTools?: string[] | undefined;
1271
+ bashAllowlist?: string[] | undefined;
1272
+ command?: string | undefined;
1273
+ onFail?: {
1274
+ retry: string;
1275
+ max: number;
1276
+ } | undefined;
1277
+ }[];
1278
+ source: "built-in" | "file";
1279
+ path?: string | undefined;
1280
+ } | undefined;
1281
+ handoffRecords?: {
1282
+ autosave: {
1283
+ at: string;
1284
+ note: string;
1285
+ periodic?: {
1286
+ branch: string | null;
1287
+ count: number;
1288
+ first: string | null;
1289
+ latest: string | null;
1290
+ } | undefined;
1291
+ }[];
1292
+ } | undefined;
1293
+ }) => {
1294
+ archiveWhenDone?: boolean | undefined;
1295
+ autoMergePr?: boolean | undefined;
1296
+ allowWorkers?: boolean | undefined;
1297
+ allowMessaging?: boolean | undefined;
1298
+ id: string;
1299
+ title: string;
1300
+ titleSummary?: string | undefined;
1301
+ diffStat?: {
1302
+ adds: number;
1303
+ dels: number;
1304
+ files: number;
1305
+ repointed?: boolean | undefined;
1306
+ } | undefined;
1307
+ workflow: string;
1308
+ task: string;
1309
+ queuedMessages?: {
1310
+ id: string;
1311
+ text: string;
1312
+ images?: string[] | undefined;
1313
+ createdAt: string;
1314
+ }[] | undefined;
1315
+ stopping?: boolean | undefined;
1316
+ continuationMessage?: {
1317
+ id: string;
1318
+ text: string;
1319
+ images?: string[] | undefined;
1320
+ createdAt: string;
1321
+ origin?: "human" | "lifecycle" | undefined;
1322
+ agentInputId?: string | undefined;
1323
+ resumeContext?: {
1324
+ failure?: {
1325
+ stepId?: string | undefined;
1326
+ error: string;
1327
+ } | undefined;
1328
+ restarted?: true | undefined;
1329
+ } | undefined;
1330
+ } | undefined;
1331
+ workflowResumeStepId?: string | undefined;
1332
+ invalidAsk?: boolean | undefined;
1333
+ delegation?: {
1334
+ role: "root";
1335
+ conversation?: {
1336
+ messages: {
1337
+ senderRunId: string;
1338
+ recipientRunId: string;
1339
+ kind: "follow-up" | "progress" | "reply" | "request";
1340
+ requestId?: string | undefined;
1341
+ relationship?: "family" | "peer" | undefined;
1342
+ id: string;
1343
+ text: string;
1344
+ createdAt: string;
1345
+ deadline?: string | undefined;
1346
+ requestHash: string;
1347
+ state: "accepted" | "continuation-required" | "destroyed" | "late";
1348
+ resumed?: true | undefined;
1349
+ instruction?: string | undefined;
1350
+ question?: {
1351
+ context?: string | undefined;
1352
+ questions: {
1353
+ id?: string | undefined;
1354
+ header: string;
1355
+ question: string;
1356
+ options?: {
1357
+ label: string;
1358
+ description?: string | undefined;
1359
+ }[] | undefined;
1360
+ multiSelect?: boolean | undefined;
1361
+ }[];
1362
+ } | undefined;
1363
+ }[];
1364
+ outcomes: {
1365
+ requestId: string;
1366
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1367
+ observedAt: string;
1368
+ replyId?: string | undefined;
1369
+ }[];
1370
+ } | undefined;
1371
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
1372
+ receipts: {
1373
+ requestId: string;
1374
+ workerId: string;
1375
+ requestHash: string;
1376
+ deletion?: {
1377
+ phase: "complete" | "pending";
1378
+ revision: number;
1379
+ resourceId: string;
1380
+ generation: string;
1381
+ } | undefined;
1382
+ }[];
1383
+ wait?: {
1384
+ id: string;
1385
+ workerIds: string[];
1386
+ requestIds?: string[] | undefined;
1387
+ requestOutcomes?: {
1388
+ requestId: string;
1389
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1390
+ observedAt: string;
1391
+ replyId?: string | undefined;
1392
+ }[] | undefined;
1393
+ deadline: string;
1394
+ mode?: "all" | "any" | "one" | undefined;
1395
+ revisions?: {
1396
+ workerId: string;
1397
+ revision: number;
1398
+ }[] | undefined;
1399
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
1400
+ phase: "parked" | "registered" | "wake-pending";
1401
+ outcomes: {
1402
+ workerId: string;
1403
+ status: "cancelled" | "done" | "failed" | "review";
1404
+ observedAt: string;
1405
+ summary?: string | undefined;
1406
+ revision?: number | undefined;
1407
+ }[];
1408
+ wakeId?: string | undefined;
1409
+ } | undefined;
1410
+ lastWait?: {
1411
+ id: string;
1412
+ workerIds: string[];
1413
+ requestIds?: string[] | undefined;
1414
+ requestOutcomes?: {
1415
+ requestId: string;
1416
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1417
+ observedAt: string;
1418
+ replyId?: string | undefined;
1419
+ }[] | undefined;
1420
+ deadline: string;
1421
+ mode?: "all" | "any" | "one" | undefined;
1422
+ revisions?: {
1423
+ workerId: string;
1424
+ revision: number;
1425
+ }[] | undefined;
1426
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
1427
+ phase: "parked" | "registered" | "wake-pending";
1428
+ outcomes: {
1429
+ workerId: string;
1430
+ status: "cancelled" | "done" | "failed" | "review";
1431
+ observedAt: string;
1432
+ summary?: string | undefined;
1433
+ revision?: number | undefined;
1434
+ }[];
1435
+ wakeId?: string | undefined;
1436
+ } | undefined;
1437
+ results?: {
1438
+ workerId: string;
1439
+ revision: number;
1440
+ snapshotId: string;
1441
+ observedAt: string;
1442
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
1443
+ previous?: {
1444
+ revision: number;
1445
+ observedAt: string;
1446
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
1447
+ } | undefined;
1448
+ }[] | undefined;
1449
+ finishRequestedAt?: string | undefined;
1450
+ historyDeletion?: "pending" | undefined;
1451
+ completion?: {
1452
+ phase: "attention" | "waiting";
1453
+ waitId?: string | undefined;
1454
+ } | undefined;
1455
+ } | {
1456
+ role: "worker";
1457
+ wait?: {
1458
+ id: string;
1459
+ workerIds: string[];
1460
+ requestIds?: string[] | undefined;
1461
+ requestOutcomes?: {
1462
+ requestId: string;
1463
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1464
+ observedAt: string;
1465
+ replyId?: string | undefined;
1466
+ }[] | undefined;
1467
+ deadline: string;
1468
+ mode?: "all" | "any" | "one" | undefined;
1469
+ revisions?: {
1470
+ workerId: string;
1471
+ revision: number;
1472
+ }[] | undefined;
1473
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
1474
+ phase: "parked" | "registered" | "wake-pending";
1475
+ outcomes: {
1476
+ workerId: string;
1477
+ status: "cancelled" | "done" | "failed" | "review";
1478
+ observedAt: string;
1479
+ summary?: string | undefined;
1480
+ revision?: number | undefined;
1481
+ }[];
1482
+ wakeId?: string | undefined;
1483
+ } | undefined;
1484
+ lastWait?: {
1485
+ id: string;
1486
+ workerIds: string[];
1487
+ requestIds?: string[] | undefined;
1488
+ requestOutcomes?: {
1489
+ requestId: string;
1490
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1491
+ observedAt: string;
1492
+ replyId?: string | undefined;
1493
+ }[] | undefined;
1494
+ deadline: string;
1495
+ mode?: "all" | "any" | "one" | undefined;
1496
+ revisions?: {
1497
+ workerId: string;
1498
+ revision: number;
1499
+ }[] | undefined;
1500
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
1501
+ phase: "parked" | "registered" | "wake-pending";
1502
+ outcomes: {
1503
+ workerId: string;
1504
+ status: "cancelled" | "done" | "failed" | "review";
1505
+ observedAt: string;
1506
+ summary?: string | undefined;
1507
+ revision?: number | undefined;
1508
+ }[];
1509
+ wakeId?: string | undefined;
1510
+ } | undefined;
1511
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
1512
+ parentRunId: string;
1513
+ workspace: {
1514
+ ownerRunId: string;
1515
+ resourceId: string;
1516
+ kind: "owned-isolated";
1517
+ path: string;
1518
+ branch: string;
1519
+ baselineSha: string;
1520
+ };
1521
+ destroy?: {
1522
+ requestedAt: string;
1523
+ phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
1524
+ remaining: ("branch" | "process" | "worktree")[];
1525
+ error?: string | undefined;
1526
+ } | undefined;
1527
+ context?: {
1528
+ text?: string | undefined;
1529
+ inputs: {
1530
+ source: {
1531
+ kind: "parent-file";
1532
+ path: string;
1533
+ } | {
1534
+ kind: "baseline-file";
1535
+ path: string;
1536
+ } | {
1537
+ kind: "parent-attachment";
1538
+ id: string;
1539
+ };
1540
+ path: string;
1541
+ sha256: string;
1542
+ bytes: number;
1543
+ }[];
1544
+ } | undefined;
1545
+ executionRevision?: number | undefined;
1546
+ executionStartSeq?: number | undefined;
1547
+ } | {
1548
+ role: "invalid";
1549
+ } | undefined;
1550
+ agentInputs?: {
1551
+ conversation?: {
1552
+ senderRunId: string;
1553
+ recipientRunId: string;
1554
+ kind: "follow-up" | "progress" | "reply" | "request";
1555
+ requestId?: string | undefined;
1556
+ relationship?: "family" | "peer" | undefined;
1557
+ } | undefined;
1558
+ id: string;
1559
+ source: "agent" | "lifecycle";
1560
+ parentRunId: string;
1561
+ text: string;
1562
+ createdAt: string;
1563
+ deliveredAt?: string | undefined;
1564
+ consumedAt?: string | undefined;
1565
+ awaitingRead?: true | undefined;
1566
+ inboxClaim?: {
1567
+ receiptId: string;
1568
+ generation: string;
1569
+ expiresAt: string;
1570
+ acknowledgedAt?: string | undefined;
1571
+ memberIds?: string[] | undefined;
1572
+ } | undefined;
1573
+ purpose?: "completion-refusal" | "undelivered-question" | undefined;
1574
+ requestHash?: string | undefined;
1575
+ deadline?: string | undefined;
1576
+ }[] | undefined;
1577
+ waits?: ({
1578
+ prUrl: string;
1579
+ repository: string;
1580
+ prNumber: number;
1581
+ headSha: string;
1582
+ id: string;
1583
+ source: "agent" | "cezar";
1584
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1585
+ registeredAt: string;
1586
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1587
+ resolvedAt?: string | undefined;
1588
+ deliveredAt?: string | undefined;
1589
+ cancelledAt?: string | undefined;
1590
+ turnId: string;
1591
+ kind: "pr";
1592
+ deadline: string;
1593
+ generation: string;
1594
+ timeoutSeconds: number;
1595
+ until: "checks" | "merge" | "merge_or_blocked";
1596
+ wakeOnConflict: boolean;
1597
+ result?: {
1598
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
1599
+ headSha: string;
1600
+ observedHeadSha?: string | undefined;
1601
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
1602
+ mergeStateStatus?: string | undefined;
1603
+ mergedAt?: string | undefined;
1604
+ mergeCommitSha?: string | undefined;
1605
+ mergeBlock?: {
1606
+ reason: "conflict" | "no_pending_merge";
1607
+ isInMergeQueue: boolean;
1608
+ autoMergeEnabled: boolean;
1609
+ event?: {
1610
+ kind: "auto_merge_disabled" | "queue_removal";
1611
+ createdAt: string;
1612
+ reason?: string | undefined;
1613
+ reasonCode?: string | undefined;
1614
+ } | undefined;
1615
+ } | undefined;
1616
+ observedAt: string;
1617
+ checks: {
1618
+ name: string;
1619
+ state: string;
1620
+ link: string;
1621
+ }[];
1622
+ totalChecks: number;
1623
+ truncated: boolean;
1624
+ diagnostic?: string | undefined;
1625
+ } | undefined;
1626
+ } | {
1627
+ id: string;
1628
+ source: "agent" | "cezar";
1629
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1630
+ registeredAt: string;
1631
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1632
+ resolvedAt?: string | undefined;
1633
+ deliveredAt?: string | undefined;
1634
+ cancelledAt?: string | undefined;
1635
+ turnId: string;
1636
+ kind: "timer";
1637
+ deadline: string;
1638
+ seconds: number;
1639
+ note?: string | undefined;
1640
+ } | {
1641
+ id: string;
1642
+ source: "agent" | "cezar";
1643
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1644
+ registeredAt: string;
1645
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1646
+ resolvedAt?: string | undefined;
1647
+ deliveredAt?: string | undefined;
1648
+ cancelledAt?: string | undefined;
1649
+ turnId: string;
1650
+ kind: "human";
1651
+ questions?: {
1652
+ id?: string | undefined;
1653
+ header: string;
1654
+ question: string;
1655
+ options?: {
1656
+ label: string;
1657
+ description?: string | undefined;
1658
+ }[] | undefined;
1659
+ multiSelect?: boolean | undefined;
1660
+ }[] | undefined;
1661
+ context?: string | undefined;
1662
+ askSeq?: number | undefined;
1663
+ } | {
1664
+ id: string;
1665
+ source: "agent" | "cezar";
1666
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1667
+ registeredAt: string;
1668
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1669
+ resolvedAt?: string | undefined;
1670
+ deliveredAt?: string | undefined;
1671
+ cancelledAt?: string | undefined;
1672
+ turnId: string;
1673
+ kind: "worker";
1674
+ deadline?: string | undefined;
1675
+ timeoutSeconds?: number | undefined;
1676
+ mode?: "all" | "any" | "one" | undefined;
1677
+ workerIds?: string[] | undefined;
1678
+ revisions?: {
1679
+ workerId: string;
1680
+ revision: number;
1681
+ }[] | undefined;
1682
+ outcomes?: {
1683
+ workerId: string;
1684
+ status: "cancelled" | "done" | "failed" | "review";
1685
+ observedAt: string;
1686
+ summary?: string | undefined;
1687
+ revision?: number | undefined;
1688
+ }[] | undefined;
1689
+ requestIds?: string[] | undefined;
1690
+ requestOutcomes?: {
1691
+ requestId: string;
1692
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1693
+ observedAt: string;
1694
+ replyId?: string | undefined;
1695
+ }[] | undefined;
1696
+ result?: {
1697
+ reason: "outcome" | "timeout";
1698
+ } | undefined;
1699
+ wakeInputId?: string | undefined;
1700
+ } | {
1701
+ id: string;
1702
+ source: "agent" | "cezar";
1703
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1704
+ registeredAt: string;
1705
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1706
+ resolvedAt?: string | undefined;
1707
+ deliveredAt?: string | undefined;
1708
+ cancelledAt?: string | undefined;
1709
+ turnId: string;
1710
+ kind: "process";
1711
+ deadline: string;
1712
+ timeoutSeconds: number;
1713
+ pid: number;
1714
+ startToken?: string | undefined;
1715
+ exitFile?: string | undefined;
1716
+ note?: string | undefined;
1717
+ result?: {
1718
+ outcome: "deadline" | "error" | "exit_file" | "exited";
1719
+ observedAt: string;
1720
+ exitCode?: number | undefined;
1721
+ exitFileNote?: "not-an-exit-code" | undefined;
1722
+ diagnostic?: string | undefined;
1723
+ } | undefined;
1724
+ } | {
1725
+ id: string;
1726
+ source: "agent" | "cezar";
1727
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1728
+ registeredAt: string;
1729
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1730
+ resolvedAt?: string | undefined;
1731
+ deliveredAt?: string | undefined;
1732
+ cancelledAt?: string | undefined;
1733
+ turnId: string;
1734
+ kind: "peer";
1735
+ deadline: string;
1736
+ timeoutSeconds: number;
1737
+ peerIds: string[];
1738
+ result?: {
1739
+ reason: "message";
1740
+ peerRunId: string;
1741
+ messageId: string;
1742
+ } | {
1743
+ reason: "settled";
1744
+ peerRunId: string;
1745
+ } | {
1746
+ reason: "timeout";
1747
+ } | undefined;
1748
+ } | {
1749
+ id: string;
1750
+ registeredAt: string;
1751
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1752
+ resolvedAt?: string | undefined;
1753
+ deliveredAt?: string | undefined;
1754
+ cancelledAt?: string | undefined;
1755
+ turnId: string;
1756
+ kind: "subagent";
1757
+ source: "cezar";
1758
+ via: "native-subagents";
1759
+ deadline: string;
1760
+ children: {
1761
+ id: string;
1762
+ status: "cancelled" | "completed" | "failed" | "running";
1763
+ }[];
1764
+ result?: {
1765
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
1766
+ } | undefined;
1767
+ })[] | undefined;
1768
+ waitRegistrations?: {
1769
+ operationId: string;
1770
+ requestHash: string;
1771
+ wait: {
1772
+ prUrl: string;
1773
+ repository: string;
1774
+ prNumber: number;
1775
+ headSha: string;
1776
+ id: string;
1777
+ source: "agent" | "cezar";
1778
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1779
+ registeredAt: string;
1780
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1781
+ resolvedAt?: string | undefined;
1782
+ deliveredAt?: string | undefined;
1783
+ cancelledAt?: string | undefined;
1784
+ turnId: string;
1785
+ kind: "pr";
1786
+ deadline: string;
1787
+ generation: string;
1788
+ timeoutSeconds: number;
1789
+ until: "checks" | "merge" | "merge_or_blocked";
1790
+ wakeOnConflict: boolean;
1791
+ result?: {
1792
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
1793
+ headSha: string;
1794
+ observedHeadSha?: string | undefined;
1795
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
1796
+ mergeStateStatus?: string | undefined;
1797
+ mergedAt?: string | undefined;
1798
+ mergeCommitSha?: string | undefined;
1799
+ mergeBlock?: {
1800
+ reason: "conflict" | "no_pending_merge";
1801
+ isInMergeQueue: boolean;
1802
+ autoMergeEnabled: boolean;
1803
+ event?: {
1804
+ kind: "auto_merge_disabled" | "queue_removal";
1805
+ createdAt: string;
1806
+ reason?: string | undefined;
1807
+ reasonCode?: string | undefined;
1808
+ } | undefined;
1809
+ } | undefined;
1810
+ observedAt: string;
1811
+ checks: {
1812
+ name: string;
1813
+ state: string;
1814
+ link: string;
1815
+ }[];
1816
+ totalChecks: number;
1817
+ truncated: boolean;
1818
+ diagnostic?: string | undefined;
1819
+ } | undefined;
1820
+ } | {
1821
+ id: string;
1822
+ source: "agent" | "cezar";
1823
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1824
+ registeredAt: string;
1825
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1826
+ resolvedAt?: string | undefined;
1827
+ deliveredAt?: string | undefined;
1828
+ cancelledAt?: string | undefined;
1829
+ turnId: string;
1830
+ kind: "timer";
1831
+ deadline: string;
1832
+ seconds: number;
1833
+ note?: string | undefined;
1834
+ } | {
1835
+ id: string;
1836
+ source: "agent" | "cezar";
1837
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1838
+ registeredAt: string;
1839
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1840
+ resolvedAt?: string | undefined;
1841
+ deliveredAt?: string | undefined;
1842
+ cancelledAt?: string | undefined;
1843
+ turnId: string;
1844
+ kind: "human";
1845
+ questions?: {
1846
+ id?: string | undefined;
1847
+ header: string;
1848
+ question: string;
1849
+ options?: {
1850
+ label: string;
1851
+ description?: string | undefined;
1852
+ }[] | undefined;
1853
+ multiSelect?: boolean | undefined;
1854
+ }[] | undefined;
1855
+ context?: string | undefined;
1856
+ askSeq?: number | undefined;
1857
+ } | {
1858
+ id: string;
1859
+ source: "agent" | "cezar";
1860
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1861
+ registeredAt: string;
1862
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1863
+ resolvedAt?: string | undefined;
1864
+ deliveredAt?: string | undefined;
1865
+ cancelledAt?: string | undefined;
1866
+ turnId: string;
1867
+ kind: "worker";
1868
+ deadline?: string | undefined;
1869
+ timeoutSeconds?: number | undefined;
1870
+ mode?: "all" | "any" | "one" | undefined;
1871
+ workerIds?: string[] | undefined;
1872
+ revisions?: {
1873
+ workerId: string;
1874
+ revision: number;
1875
+ }[] | undefined;
1876
+ outcomes?: {
1877
+ workerId: string;
1878
+ status: "cancelled" | "done" | "failed" | "review";
1879
+ observedAt: string;
1880
+ summary?: string | undefined;
1881
+ revision?: number | undefined;
1882
+ }[] | undefined;
1883
+ requestIds?: string[] | undefined;
1884
+ requestOutcomes?: {
1885
+ requestId: string;
1886
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1887
+ observedAt: string;
1888
+ replyId?: string | undefined;
1889
+ }[] | undefined;
1890
+ result?: {
1891
+ reason: "outcome" | "timeout";
1892
+ } | undefined;
1893
+ wakeInputId?: string | undefined;
1894
+ } | {
1895
+ id: string;
1896
+ source: "agent" | "cezar";
1897
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1898
+ registeredAt: string;
1899
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1900
+ resolvedAt?: string | undefined;
1901
+ deliveredAt?: string | undefined;
1902
+ cancelledAt?: string | undefined;
1903
+ turnId: string;
1904
+ kind: "process";
1905
+ deadline: string;
1906
+ timeoutSeconds: number;
1907
+ pid: number;
1908
+ startToken?: string | undefined;
1909
+ exitFile?: string | undefined;
1910
+ note?: string | undefined;
1911
+ result?: {
1912
+ outcome: "deadline" | "error" | "exit_file" | "exited";
1913
+ observedAt: string;
1914
+ exitCode?: number | undefined;
1915
+ exitFileNote?: "not-an-exit-code" | undefined;
1916
+ diagnostic?: string | undefined;
1917
+ } | undefined;
1918
+ } | {
1919
+ id: string;
1920
+ source: "agent" | "cezar";
1921
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1922
+ registeredAt: string;
1923
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1924
+ resolvedAt?: string | undefined;
1925
+ deliveredAt?: string | undefined;
1926
+ cancelledAt?: string | undefined;
1927
+ turnId: string;
1928
+ kind: "peer";
1929
+ deadline: string;
1930
+ timeoutSeconds: number;
1931
+ peerIds: string[];
1932
+ result?: {
1933
+ reason: "message";
1934
+ peerRunId: string;
1935
+ messageId: string;
1936
+ } | {
1937
+ reason: "settled";
1938
+ peerRunId: string;
1939
+ } | {
1940
+ reason: "timeout";
1941
+ } | undefined;
1942
+ } | {
1943
+ id: string;
1944
+ registeredAt: string;
1945
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1946
+ resolvedAt?: string | undefined;
1947
+ deliveredAt?: string | undefined;
1948
+ cancelledAt?: string | undefined;
1949
+ turnId: string;
1950
+ kind: "subagent";
1951
+ source: "cezar";
1952
+ via: "native-subagents";
1953
+ deadline: string;
1954
+ children: {
1955
+ id: string;
1956
+ status: "cancelled" | "completed" | "failed" | "running";
1957
+ }[];
1958
+ result?: {
1959
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
1960
+ } | undefined;
1961
+ };
1962
+ deduplicated: boolean;
1963
+ }[] | undefined;
1964
+ lastWaits?: ({
1965
+ prUrl: string;
1966
+ repository: string;
1967
+ prNumber: number;
1968
+ headSha: string;
1969
+ id: string;
1970
+ source: "agent" | "cezar";
1971
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
1972
+ registeredAt: string;
1973
+ phase: "cancelled" | "delivered" | "open" | "resolved";
1974
+ resolvedAt?: string | undefined;
1975
+ deliveredAt?: string | undefined;
1976
+ cancelledAt?: string | undefined;
1977
+ turnId: string;
1978
+ kind: "pr";
1979
+ deadline: string;
1980
+ generation: string;
1981
+ timeoutSeconds: number;
1982
+ until: "checks" | "merge" | "merge_or_blocked";
1983
+ wakeOnConflict: boolean;
1984
+ result?: {
1985
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
1986
+ headSha: string;
1987
+ observedHeadSha?: string | undefined;
1988
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
1989
+ mergeStateStatus?: string | undefined;
1990
+ mergedAt?: string | undefined;
1991
+ mergeCommitSha?: string | undefined;
1992
+ mergeBlock?: {
1993
+ reason: "conflict" | "no_pending_merge";
1994
+ isInMergeQueue: boolean;
1995
+ autoMergeEnabled: boolean;
1996
+ event?: {
1997
+ kind: "auto_merge_disabled" | "queue_removal";
1998
+ createdAt: string;
1999
+ reason?: string | undefined;
2000
+ reasonCode?: string | undefined;
2001
+ } | undefined;
2002
+ } | undefined;
2003
+ observedAt: string;
2004
+ checks: {
2005
+ name: string;
2006
+ state: string;
2007
+ link: string;
2008
+ }[];
2009
+ totalChecks: number;
2010
+ truncated: boolean;
2011
+ diagnostic?: string | undefined;
2012
+ } | undefined;
2013
+ } | {
2014
+ id: string;
2015
+ source: "agent" | "cezar";
2016
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2017
+ registeredAt: string;
2018
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2019
+ resolvedAt?: string | undefined;
2020
+ deliveredAt?: string | undefined;
2021
+ cancelledAt?: string | undefined;
2022
+ turnId: string;
2023
+ kind: "timer";
2024
+ deadline: string;
2025
+ seconds: number;
2026
+ note?: string | undefined;
2027
+ } | {
2028
+ id: string;
2029
+ source: "agent" | "cezar";
2030
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2031
+ registeredAt: string;
2032
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2033
+ resolvedAt?: string | undefined;
2034
+ deliveredAt?: string | undefined;
2035
+ cancelledAt?: string | undefined;
2036
+ turnId: string;
2037
+ kind: "human";
2038
+ questions?: {
2039
+ id?: string | undefined;
2040
+ header: string;
2041
+ question: string;
2042
+ options?: {
2043
+ label: string;
2044
+ description?: string | undefined;
2045
+ }[] | undefined;
2046
+ multiSelect?: boolean | undefined;
2047
+ }[] | undefined;
2048
+ context?: string | undefined;
2049
+ askSeq?: number | undefined;
2050
+ } | {
2051
+ id: string;
2052
+ source: "agent" | "cezar";
2053
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2054
+ registeredAt: string;
2055
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2056
+ resolvedAt?: string | undefined;
2057
+ deliveredAt?: string | undefined;
2058
+ cancelledAt?: string | undefined;
2059
+ turnId: string;
2060
+ kind: "worker";
2061
+ deadline?: string | undefined;
2062
+ timeoutSeconds?: number | undefined;
2063
+ mode?: "all" | "any" | "one" | undefined;
2064
+ workerIds?: string[] | undefined;
2065
+ revisions?: {
2066
+ workerId: string;
2067
+ revision: number;
2068
+ }[] | undefined;
2069
+ outcomes?: {
2070
+ workerId: string;
2071
+ status: "cancelled" | "done" | "failed" | "review";
2072
+ observedAt: string;
2073
+ summary?: string | undefined;
2074
+ revision?: number | undefined;
2075
+ }[] | undefined;
2076
+ requestIds?: string[] | undefined;
2077
+ requestOutcomes?: {
2078
+ requestId: string;
2079
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2080
+ observedAt: string;
2081
+ replyId?: string | undefined;
2082
+ }[] | undefined;
2083
+ result?: {
2084
+ reason: "outcome" | "timeout";
2085
+ } | undefined;
2086
+ wakeInputId?: string | undefined;
2087
+ } | {
2088
+ id: string;
2089
+ source: "agent" | "cezar";
2090
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2091
+ registeredAt: string;
2092
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2093
+ resolvedAt?: string | undefined;
2094
+ deliveredAt?: string | undefined;
2095
+ cancelledAt?: string | undefined;
2096
+ turnId: string;
2097
+ kind: "process";
2098
+ deadline: string;
2099
+ timeoutSeconds: number;
2100
+ pid: number;
2101
+ startToken?: string | undefined;
2102
+ exitFile?: string | undefined;
2103
+ note?: string | undefined;
2104
+ result?: {
2105
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2106
+ observedAt: string;
2107
+ exitCode?: number | undefined;
2108
+ exitFileNote?: "not-an-exit-code" | undefined;
2109
+ diagnostic?: string | undefined;
2110
+ } | undefined;
2111
+ } | {
2112
+ id: string;
2113
+ source: "agent" | "cezar";
2114
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2115
+ registeredAt: string;
2116
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2117
+ resolvedAt?: string | undefined;
2118
+ deliveredAt?: string | undefined;
2119
+ cancelledAt?: string | undefined;
2120
+ turnId: string;
2121
+ kind: "peer";
2122
+ deadline: string;
2123
+ timeoutSeconds: number;
2124
+ peerIds: string[];
2125
+ result?: {
2126
+ reason: "message";
2127
+ peerRunId: string;
2128
+ messageId: string;
2129
+ } | {
2130
+ reason: "settled";
2131
+ peerRunId: string;
2132
+ } | {
2133
+ reason: "timeout";
2134
+ } | undefined;
2135
+ } | {
2136
+ id: string;
2137
+ registeredAt: string;
2138
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2139
+ resolvedAt?: string | undefined;
2140
+ deliveredAt?: string | undefined;
2141
+ cancelledAt?: string | undefined;
2142
+ turnId: string;
2143
+ kind: "subagent";
2144
+ source: "cezar";
2145
+ via: "native-subagents";
2146
+ deadline: string;
2147
+ children: {
2148
+ id: string;
2149
+ status: "cancelled" | "completed" | "failed" | "running";
2150
+ }[];
2151
+ result?: {
2152
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
2153
+ } | undefined;
2154
+ })[] | undefined;
2155
+ lastWaitsError?: string | undefined;
2156
+ automaticWakes?: number | undefined;
2157
+ waitDeliveryFailures?: number | undefined;
2158
+ previewServers?: {
2159
+ port: number;
2160
+ command: string;
2161
+ cwd?: string | undefined;
2162
+ label: string;
2163
+ path?: string | undefined;
2164
+ registeredAt: string;
2165
+ answeredAtRegistration: boolean;
2166
+ }[] | undefined;
2167
+ taskImages?: string[] | undefined;
2168
+ model?: string | undefined;
2169
+ effort?: string | undefined;
2170
+ modelIdentity?: string | undefined;
2171
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
2172
+ agentProfile?: string | undefined;
2173
+ systemPrompt?: string | undefined;
2174
+ generateFollowups?: boolean | undefined;
2175
+ autonomous?: boolean | undefined;
2176
+ completionAction?: {
2177
+ id: string;
2178
+ phase: "blocked" | "complete" | "pending";
2179
+ message?: string | undefined;
2180
+ } | undefined;
2181
+ archiveBlocker?: {
2182
+ message: string;
2183
+ runId?: string | undefined;
2184
+ pullRequestUrl?: string | undefined;
2185
+ } | undefined;
2186
+ automation?: {
2187
+ automationId: string;
2188
+ automationRevision: number;
2189
+ receiptId: string;
2190
+ event: string;
2191
+ githubUrl: string;
2192
+ } | undefined;
2193
+ automationTrigger?: {
2194
+ automationId: string;
2195
+ automationRevision: number;
2196
+ receiptId: string;
2197
+ trigger: "catch-up" | "manual" | "schedule";
2198
+ occurrenceAt: string;
2199
+ } | undefined;
2200
+ destroyRetry?: {
2201
+ attempts: number;
2202
+ nextAt: string;
2203
+ needsAttention?: true | undefined;
2204
+ } | undefined;
2205
+ notify?: boolean | undefined;
2206
+ webhook?: {
2207
+ lastDeliveredAt?: string | undefined;
2208
+ lastError?: string | undefined;
2209
+ lastErrorWebhookId?: string | undefined;
2210
+ } | undefined;
2211
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
2212
+ hasPendingPermission?: boolean | undefined;
2213
+ createdAt: string;
2214
+ startedAt?: string | undefined;
2215
+ finishedAt?: string | undefined;
2216
+ tokensUsed: number;
2217
+ inputTokens?: number | undefined;
2218
+ outputTokens?: number | undefined;
2219
+ costUsd?: number | undefined;
2220
+ pullRequestUrl?: string | undefined;
2221
+ pullRequests?: {
2222
+ number: number;
2223
+ url?: string | undefined;
2224
+ source: "created" | "declared";
2225
+ }[] | undefined;
2226
+ referencedPullRequestUrl?: string | undefined;
2227
+ prNumber?: number | undefined;
2228
+ issueNumber?: number | undefined;
2229
+ referencedIssueNumberSeeded?: boolean | undefined;
2230
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
2231
+ markerRefs?: {
2232
+ pr?: number | undefined;
2233
+ issue?: number | undefined;
2234
+ } | undefined;
2235
+ referencedPrCandidates?: string[] | undefined;
2236
+ referencedIssueUrl?: string | undefined;
2237
+ referencedIssueCandidates?: string[] | undefined;
2238
+ worktree?: false | undefined;
2239
+ worktreePath?: string | undefined;
2240
+ branch?: string | undefined;
2241
+ baseBranch?: string | undefined;
2242
+ worktreeReclaimedAt?: string | undefined;
2243
+ worktreeSetup?: {
2244
+ status: "done" | "failed" | "running";
2245
+ startedAt: string;
2246
+ finishedAt?: string | undefined;
2247
+ durationMs?: number | undefined;
2248
+ error?: string | undefined;
2249
+ } | undefined;
2250
+ groupId?: string | undefined;
2251
+ variant?: string | undefined;
2252
+ clientRequestId?: string | undefined;
2253
+ clientRequestHash?: string | undefined;
2254
+ peakRssBytes?: number | undefined;
2255
+ peakProcCount?: number | undefined;
2256
+ archived: boolean;
2257
+ archivedAt?: string | undefined;
2258
+ autoArchive?: {
2259
+ reason: "pull-requests-merged";
2260
+ archivedAt: string;
2261
+ fingerprint: string;
2262
+ pullRequests: {
2263
+ owner: string;
2264
+ repo: string;
2265
+ number: number;
2266
+ mergedAt: string;
2267
+ }[];
2268
+ } | undefined;
2269
+ manualUnarchivedAt?: string | undefined;
2270
+ pinned?: boolean | undefined;
2271
+ pinnedAt?: string | undefined;
2272
+ seenAt?: string | undefined;
2273
+ currentStepId?: string | undefined;
2274
+ error?: string | undefined;
2275
+ steps: {
2276
+ id: string;
2277
+ name: string;
2278
+ kind: "agent" | "check";
2279
+ status: "cancelled" | "done" | "failed" | "pending" | "review" | "running" | "skipped" | "waiting";
2280
+ iterations: number;
2281
+ retriesUsed?: number | undefined;
2282
+ tokensUsed: number;
2283
+ inputTokens?: number | undefined;
2284
+ outputTokens?: number | undefined;
2285
+ usageInvocationsStarted?: number | undefined;
2286
+ usageInvocationsObserved?: number | undefined;
2287
+ usageTurnsStarted?: number | undefined;
2288
+ usageTurnsRecorded?: number | undefined;
2289
+ usageInvocationEpoch?: number | undefined;
2290
+ startedAt?: string | undefined;
2291
+ finishedAt?: string | undefined;
2292
+ error?: string | undefined;
2293
+ sessionId?: string | undefined;
2294
+ sessionTransport?: "cursor-acp" | "cursor-print" | undefined;
2295
+ backend?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
2296
+ profileId?: string | undefined;
2297
+ costUsd?: number | undefined;
2298
+ synthetic?: "continuation" | undefined;
2299
+ }[];
2300
+ workflowDef?: {
2301
+ name: string;
2302
+ description?: string | undefined;
2303
+ steps: {
2304
+ id: string;
2305
+ name?: string | undefined;
2306
+ prompt?: string | undefined;
2307
+ skill?: string | undefined;
2308
+ model?: string | undefined;
2309
+ effort?: string | undefined;
2310
+ timeoutMs?: number | undefined;
2311
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
2312
+ agentProfile?: string | undefined;
2313
+ allowedTools?: string[] | undefined;
2314
+ bashAllowlist?: string[] | undefined;
2315
+ command?: string | undefined;
2316
+ onFail?: {
2317
+ retry: string;
2318
+ max: number;
2319
+ } | undefined;
2320
+ }[];
2321
+ source: "built-in" | "file";
2322
+ path?: string | undefined;
2323
+ } | undefined;
2324
+ handoffRecords?: {
2325
+ autosave: {
2326
+ at: string;
2327
+ note: string;
2328
+ periodic?: {
2329
+ branch: string | null;
2330
+ count: number;
2331
+ first: string | null;
2332
+ latest: string | null;
2333
+ } | undefined;
2334
+ }[];
2335
+ } | undefined;
2336
+ autoResumeAt: undefined;
2337
+ autoResumeAttempts: undefined;
2338
+ };
2339
+ readonly steps: typeof failedStep;
2340
+ };
2341
+ readonly cancel: {
2342
+ readonly durability: 'debounced';
2343
+ readonly from: readonly ["queued", "running", "waiting"];
2344
+ readonly to: 'cancelled';
2345
+ readonly steps: typeof cancelledStep;
2346
+ readonly event: "run cancelled";
2347
+ };
2348
+ readonly 'cancel-root': {
2349
+ readonly durability: 'committed';
2350
+ readonly from: readonly ["waiting", "cancelled"];
2351
+ readonly to: 'cancelled';
2352
+ readonly guard: (run: {
2353
+ archiveWhenDone?: boolean | undefined;
2354
+ autoMergePr?: boolean | undefined;
2355
+ allowWorkers?: boolean | undefined;
2356
+ allowMessaging?: boolean | undefined;
2357
+ id: string;
2358
+ title: string;
2359
+ titleSummary?: string | undefined;
2360
+ diffStat?: {
2361
+ adds: number;
2362
+ dels: number;
2363
+ files: number;
2364
+ repointed?: boolean | undefined;
2365
+ } | undefined;
2366
+ workflow: string;
2367
+ task: string;
2368
+ queuedMessages?: {
2369
+ id: string;
2370
+ text: string;
2371
+ images?: string[] | undefined;
2372
+ createdAt: string;
2373
+ }[] | undefined;
2374
+ stopping?: boolean | undefined;
2375
+ continuationMessage?: {
2376
+ id: string;
2377
+ text: string;
2378
+ images?: string[] | undefined;
2379
+ createdAt: string;
2380
+ origin?: "human" | "lifecycle" | undefined;
2381
+ agentInputId?: string | undefined;
2382
+ resumeContext?: {
2383
+ failure?: {
2384
+ stepId?: string | undefined;
2385
+ error: string;
2386
+ } | undefined;
2387
+ restarted?: true | undefined;
2388
+ } | undefined;
2389
+ } | undefined;
2390
+ workflowResumeStepId?: string | undefined;
2391
+ invalidAsk?: boolean | undefined;
2392
+ delegation?: {
2393
+ role: "root";
2394
+ conversation?: {
2395
+ messages: {
2396
+ senderRunId: string;
2397
+ recipientRunId: string;
2398
+ kind: "follow-up" | "progress" | "reply" | "request";
2399
+ requestId?: string | undefined;
2400
+ relationship?: "family" | "peer" | undefined;
2401
+ id: string;
2402
+ text: string;
2403
+ createdAt: string;
2404
+ deadline?: string | undefined;
2405
+ requestHash: string;
2406
+ state: "accepted" | "continuation-required" | "destroyed" | "late";
2407
+ resumed?: true | undefined;
2408
+ instruction?: string | undefined;
2409
+ question?: {
2410
+ context?: string | undefined;
2411
+ questions: {
2412
+ id?: string | undefined;
2413
+ header: string;
2414
+ question: string;
2415
+ options?: {
2416
+ label: string;
2417
+ description?: string | undefined;
2418
+ }[] | undefined;
2419
+ multiSelect?: boolean | undefined;
2420
+ }[];
2421
+ } | undefined;
2422
+ }[];
2423
+ outcomes: {
2424
+ requestId: string;
2425
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2426
+ observedAt: string;
2427
+ replyId?: string | undefined;
2428
+ }[];
2429
+ } | undefined;
2430
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
2431
+ receipts: {
2432
+ requestId: string;
2433
+ workerId: string;
2434
+ requestHash: string;
2435
+ deletion?: {
2436
+ phase: "complete" | "pending";
2437
+ revision: number;
2438
+ resourceId: string;
2439
+ generation: string;
2440
+ } | undefined;
2441
+ }[];
2442
+ wait?: {
2443
+ id: string;
2444
+ workerIds: string[];
2445
+ requestIds?: string[] | undefined;
2446
+ requestOutcomes?: {
2447
+ requestId: string;
2448
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2449
+ observedAt: string;
2450
+ replyId?: string | undefined;
2451
+ }[] | undefined;
2452
+ deadline: string;
2453
+ mode?: "all" | "any" | "one" | undefined;
2454
+ revisions?: {
2455
+ workerId: string;
2456
+ revision: number;
2457
+ }[] | undefined;
2458
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
2459
+ phase: "parked" | "registered" | "wake-pending";
2460
+ outcomes: {
2461
+ workerId: string;
2462
+ status: "cancelled" | "done" | "failed" | "review";
2463
+ observedAt: string;
2464
+ summary?: string | undefined;
2465
+ revision?: number | undefined;
2466
+ }[];
2467
+ wakeId?: string | undefined;
2468
+ } | undefined;
2469
+ lastWait?: {
2470
+ id: string;
2471
+ workerIds: string[];
2472
+ requestIds?: string[] | undefined;
2473
+ requestOutcomes?: {
2474
+ requestId: string;
2475
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2476
+ observedAt: string;
2477
+ replyId?: string | undefined;
2478
+ }[] | undefined;
2479
+ deadline: string;
2480
+ mode?: "all" | "any" | "one" | undefined;
2481
+ revisions?: {
2482
+ workerId: string;
2483
+ revision: number;
2484
+ }[] | undefined;
2485
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
2486
+ phase: "parked" | "registered" | "wake-pending";
2487
+ outcomes: {
2488
+ workerId: string;
2489
+ status: "cancelled" | "done" | "failed" | "review";
2490
+ observedAt: string;
2491
+ summary?: string | undefined;
2492
+ revision?: number | undefined;
2493
+ }[];
2494
+ wakeId?: string | undefined;
2495
+ } | undefined;
2496
+ results?: {
2497
+ workerId: string;
2498
+ revision: number;
2499
+ snapshotId: string;
2500
+ observedAt: string;
2501
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
2502
+ previous?: {
2503
+ revision: number;
2504
+ observedAt: string;
2505
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
2506
+ } | undefined;
2507
+ }[] | undefined;
2508
+ finishRequestedAt?: string | undefined;
2509
+ historyDeletion?: "pending" | undefined;
2510
+ completion?: {
2511
+ phase: "attention" | "waiting";
2512
+ waitId?: string | undefined;
2513
+ } | undefined;
2514
+ } | {
2515
+ role: "worker";
2516
+ wait?: {
2517
+ id: string;
2518
+ workerIds: string[];
2519
+ requestIds?: string[] | undefined;
2520
+ requestOutcomes?: {
2521
+ requestId: string;
2522
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2523
+ observedAt: string;
2524
+ replyId?: string | undefined;
2525
+ }[] | undefined;
2526
+ deadline: string;
2527
+ mode?: "all" | "any" | "one" | undefined;
2528
+ revisions?: {
2529
+ workerId: string;
2530
+ revision: number;
2531
+ }[] | undefined;
2532
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
2533
+ phase: "parked" | "registered" | "wake-pending";
2534
+ outcomes: {
2535
+ workerId: string;
2536
+ status: "cancelled" | "done" | "failed" | "review";
2537
+ observedAt: string;
2538
+ summary?: string | undefined;
2539
+ revision?: number | undefined;
2540
+ }[];
2541
+ wakeId?: string | undefined;
2542
+ } | undefined;
2543
+ lastWait?: {
2544
+ id: string;
2545
+ workerIds: string[];
2546
+ requestIds?: string[] | undefined;
2547
+ requestOutcomes?: {
2548
+ requestId: string;
2549
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2550
+ observedAt: string;
2551
+ replyId?: string | undefined;
2552
+ }[] | undefined;
2553
+ deadline: string;
2554
+ mode?: "all" | "any" | "one" | undefined;
2555
+ revisions?: {
2556
+ workerId: string;
2557
+ revision: number;
2558
+ }[] | undefined;
2559
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
2560
+ phase: "parked" | "registered" | "wake-pending";
2561
+ outcomes: {
2562
+ workerId: string;
2563
+ status: "cancelled" | "done" | "failed" | "review";
2564
+ observedAt: string;
2565
+ summary?: string | undefined;
2566
+ revision?: number | undefined;
2567
+ }[];
2568
+ wakeId?: string | undefined;
2569
+ } | undefined;
2570
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
2571
+ parentRunId: string;
2572
+ workspace: {
2573
+ ownerRunId: string;
2574
+ resourceId: string;
2575
+ kind: "owned-isolated";
2576
+ path: string;
2577
+ branch: string;
2578
+ baselineSha: string;
2579
+ };
2580
+ destroy?: {
2581
+ requestedAt: string;
2582
+ phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
2583
+ remaining: ("branch" | "process" | "worktree")[];
2584
+ error?: string | undefined;
2585
+ } | undefined;
2586
+ context?: {
2587
+ text?: string | undefined;
2588
+ inputs: {
2589
+ source: {
2590
+ kind: "parent-file";
2591
+ path: string;
2592
+ } | {
2593
+ kind: "baseline-file";
2594
+ path: string;
2595
+ } | {
2596
+ kind: "parent-attachment";
2597
+ id: string;
2598
+ };
2599
+ path: string;
2600
+ sha256: string;
2601
+ bytes: number;
2602
+ }[];
2603
+ } | undefined;
2604
+ executionRevision?: number | undefined;
2605
+ executionStartSeq?: number | undefined;
2606
+ } | {
2607
+ role: "invalid";
2608
+ } | undefined;
2609
+ agentInputs?: {
2610
+ conversation?: {
2611
+ senderRunId: string;
2612
+ recipientRunId: string;
2613
+ kind: "follow-up" | "progress" | "reply" | "request";
2614
+ requestId?: string | undefined;
2615
+ relationship?: "family" | "peer" | undefined;
2616
+ } | undefined;
2617
+ id: string;
2618
+ source: "agent" | "lifecycle";
2619
+ parentRunId: string;
2620
+ text: string;
2621
+ createdAt: string;
2622
+ deliveredAt?: string | undefined;
2623
+ consumedAt?: string | undefined;
2624
+ awaitingRead?: true | undefined;
2625
+ inboxClaim?: {
2626
+ receiptId: string;
2627
+ generation: string;
2628
+ expiresAt: string;
2629
+ acknowledgedAt?: string | undefined;
2630
+ memberIds?: string[] | undefined;
2631
+ } | undefined;
2632
+ purpose?: "completion-refusal" | "undelivered-question" | undefined;
2633
+ requestHash?: string | undefined;
2634
+ deadline?: string | undefined;
2635
+ }[] | undefined;
2636
+ waits?: ({
2637
+ prUrl: string;
2638
+ repository: string;
2639
+ prNumber: number;
2640
+ headSha: string;
2641
+ id: string;
2642
+ source: "agent" | "cezar";
2643
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2644
+ registeredAt: string;
2645
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2646
+ resolvedAt?: string | undefined;
2647
+ deliveredAt?: string | undefined;
2648
+ cancelledAt?: string | undefined;
2649
+ turnId: string;
2650
+ kind: "pr";
2651
+ deadline: string;
2652
+ generation: string;
2653
+ timeoutSeconds: number;
2654
+ until: "checks" | "merge" | "merge_or_blocked";
2655
+ wakeOnConflict: boolean;
2656
+ result?: {
2657
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
2658
+ headSha: string;
2659
+ observedHeadSha?: string | undefined;
2660
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
2661
+ mergeStateStatus?: string | undefined;
2662
+ mergedAt?: string | undefined;
2663
+ mergeCommitSha?: string | undefined;
2664
+ mergeBlock?: {
2665
+ reason: "conflict" | "no_pending_merge";
2666
+ isInMergeQueue: boolean;
2667
+ autoMergeEnabled: boolean;
2668
+ event?: {
2669
+ kind: "auto_merge_disabled" | "queue_removal";
2670
+ createdAt: string;
2671
+ reason?: string | undefined;
2672
+ reasonCode?: string | undefined;
2673
+ } | undefined;
2674
+ } | undefined;
2675
+ observedAt: string;
2676
+ checks: {
2677
+ name: string;
2678
+ state: string;
2679
+ link: string;
2680
+ }[];
2681
+ totalChecks: number;
2682
+ truncated: boolean;
2683
+ diagnostic?: string | undefined;
2684
+ } | undefined;
2685
+ } | {
2686
+ id: string;
2687
+ source: "agent" | "cezar";
2688
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2689
+ registeredAt: string;
2690
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2691
+ resolvedAt?: string | undefined;
2692
+ deliveredAt?: string | undefined;
2693
+ cancelledAt?: string | undefined;
2694
+ turnId: string;
2695
+ kind: "timer";
2696
+ deadline: string;
2697
+ seconds: number;
2698
+ note?: string | undefined;
2699
+ } | {
2700
+ id: string;
2701
+ source: "agent" | "cezar";
2702
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2703
+ registeredAt: string;
2704
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2705
+ resolvedAt?: string | undefined;
2706
+ deliveredAt?: string | undefined;
2707
+ cancelledAt?: string | undefined;
2708
+ turnId: string;
2709
+ kind: "human";
2710
+ questions?: {
2711
+ id?: string | undefined;
2712
+ header: string;
2713
+ question: string;
2714
+ options?: {
2715
+ label: string;
2716
+ description?: string | undefined;
2717
+ }[] | undefined;
2718
+ multiSelect?: boolean | undefined;
2719
+ }[] | undefined;
2720
+ context?: string | undefined;
2721
+ askSeq?: number | undefined;
2722
+ } | {
2723
+ id: string;
2724
+ source: "agent" | "cezar";
2725
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2726
+ registeredAt: string;
2727
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2728
+ resolvedAt?: string | undefined;
2729
+ deliveredAt?: string | undefined;
2730
+ cancelledAt?: string | undefined;
2731
+ turnId: string;
2732
+ kind: "worker";
2733
+ deadline?: string | undefined;
2734
+ timeoutSeconds?: number | undefined;
2735
+ mode?: "all" | "any" | "one" | undefined;
2736
+ workerIds?: string[] | undefined;
2737
+ revisions?: {
2738
+ workerId: string;
2739
+ revision: number;
2740
+ }[] | undefined;
2741
+ outcomes?: {
2742
+ workerId: string;
2743
+ status: "cancelled" | "done" | "failed" | "review";
2744
+ observedAt: string;
2745
+ summary?: string | undefined;
2746
+ revision?: number | undefined;
2747
+ }[] | undefined;
2748
+ requestIds?: string[] | undefined;
2749
+ requestOutcomes?: {
2750
+ requestId: string;
2751
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2752
+ observedAt: string;
2753
+ replyId?: string | undefined;
2754
+ }[] | undefined;
2755
+ result?: {
2756
+ reason: "outcome" | "timeout";
2757
+ } | undefined;
2758
+ wakeInputId?: string | undefined;
2759
+ } | {
2760
+ id: string;
2761
+ source: "agent" | "cezar";
2762
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2763
+ registeredAt: string;
2764
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2765
+ resolvedAt?: string | undefined;
2766
+ deliveredAt?: string | undefined;
2767
+ cancelledAt?: string | undefined;
2768
+ turnId: string;
2769
+ kind: "process";
2770
+ deadline: string;
2771
+ timeoutSeconds: number;
2772
+ pid: number;
2773
+ startToken?: string | undefined;
2774
+ exitFile?: string | undefined;
2775
+ note?: string | undefined;
2776
+ result?: {
2777
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2778
+ observedAt: string;
2779
+ exitCode?: number | undefined;
2780
+ exitFileNote?: "not-an-exit-code" | undefined;
2781
+ diagnostic?: string | undefined;
2782
+ } | undefined;
2783
+ } | {
2784
+ id: string;
2785
+ source: "agent" | "cezar";
2786
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2787
+ registeredAt: string;
2788
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2789
+ resolvedAt?: string | undefined;
2790
+ deliveredAt?: string | undefined;
2791
+ cancelledAt?: string | undefined;
2792
+ turnId: string;
2793
+ kind: "peer";
2794
+ deadline: string;
2795
+ timeoutSeconds: number;
2796
+ peerIds: string[];
2797
+ result?: {
2798
+ reason: "message";
2799
+ peerRunId: string;
2800
+ messageId: string;
2801
+ } | {
2802
+ reason: "settled";
2803
+ peerRunId: string;
2804
+ } | {
2805
+ reason: "timeout";
2806
+ } | undefined;
2807
+ } | {
2808
+ id: string;
2809
+ registeredAt: string;
2810
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2811
+ resolvedAt?: string | undefined;
2812
+ deliveredAt?: string | undefined;
2813
+ cancelledAt?: string | undefined;
2814
+ turnId: string;
2815
+ kind: "subagent";
2816
+ source: "cezar";
2817
+ via: "native-subagents";
2818
+ deadline: string;
2819
+ children: {
2820
+ id: string;
2821
+ status: "cancelled" | "completed" | "failed" | "running";
2822
+ }[];
2823
+ result?: {
2824
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
2825
+ } | undefined;
2826
+ })[] | undefined;
2827
+ waitRegistrations?: {
2828
+ operationId: string;
2829
+ requestHash: string;
2830
+ wait: {
2831
+ prUrl: string;
2832
+ repository: string;
2833
+ prNumber: number;
2834
+ headSha: string;
2835
+ id: string;
2836
+ source: "agent" | "cezar";
2837
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2838
+ registeredAt: string;
2839
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2840
+ resolvedAt?: string | undefined;
2841
+ deliveredAt?: string | undefined;
2842
+ cancelledAt?: string | undefined;
2843
+ turnId: string;
2844
+ kind: "pr";
2845
+ deadline: string;
2846
+ generation: string;
2847
+ timeoutSeconds: number;
2848
+ until: "checks" | "merge" | "merge_or_blocked";
2849
+ wakeOnConflict: boolean;
2850
+ result?: {
2851
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
2852
+ headSha: string;
2853
+ observedHeadSha?: string | undefined;
2854
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
2855
+ mergeStateStatus?: string | undefined;
2856
+ mergedAt?: string | undefined;
2857
+ mergeCommitSha?: string | undefined;
2858
+ mergeBlock?: {
2859
+ reason: "conflict" | "no_pending_merge";
2860
+ isInMergeQueue: boolean;
2861
+ autoMergeEnabled: boolean;
2862
+ event?: {
2863
+ kind: "auto_merge_disabled" | "queue_removal";
2864
+ createdAt: string;
2865
+ reason?: string | undefined;
2866
+ reasonCode?: string | undefined;
2867
+ } | undefined;
2868
+ } | undefined;
2869
+ observedAt: string;
2870
+ checks: {
2871
+ name: string;
2872
+ state: string;
2873
+ link: string;
2874
+ }[];
2875
+ totalChecks: number;
2876
+ truncated: boolean;
2877
+ diagnostic?: string | undefined;
2878
+ } | undefined;
2879
+ } | {
2880
+ id: string;
2881
+ source: "agent" | "cezar";
2882
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2883
+ registeredAt: string;
2884
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2885
+ resolvedAt?: string | undefined;
2886
+ deliveredAt?: string | undefined;
2887
+ cancelledAt?: string | undefined;
2888
+ turnId: string;
2889
+ kind: "timer";
2890
+ deadline: string;
2891
+ seconds: number;
2892
+ note?: string | undefined;
2893
+ } | {
2894
+ id: string;
2895
+ source: "agent" | "cezar";
2896
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2897
+ registeredAt: string;
2898
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2899
+ resolvedAt?: string | undefined;
2900
+ deliveredAt?: string | undefined;
2901
+ cancelledAt?: string | undefined;
2902
+ turnId: string;
2903
+ kind: "human";
2904
+ questions?: {
2905
+ id?: string | undefined;
2906
+ header: string;
2907
+ question: string;
2908
+ options?: {
2909
+ label: string;
2910
+ description?: string | undefined;
2911
+ }[] | undefined;
2912
+ multiSelect?: boolean | undefined;
2913
+ }[] | undefined;
2914
+ context?: string | undefined;
2915
+ askSeq?: number | undefined;
2916
+ } | {
2917
+ id: string;
2918
+ source: "agent" | "cezar";
2919
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2920
+ registeredAt: string;
2921
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2922
+ resolvedAt?: string | undefined;
2923
+ deliveredAt?: string | undefined;
2924
+ cancelledAt?: string | undefined;
2925
+ turnId: string;
2926
+ kind: "worker";
2927
+ deadline?: string | undefined;
2928
+ timeoutSeconds?: number | undefined;
2929
+ mode?: "all" | "any" | "one" | undefined;
2930
+ workerIds?: string[] | undefined;
2931
+ revisions?: {
2932
+ workerId: string;
2933
+ revision: number;
2934
+ }[] | undefined;
2935
+ outcomes?: {
2936
+ workerId: string;
2937
+ status: "cancelled" | "done" | "failed" | "review";
2938
+ observedAt: string;
2939
+ summary?: string | undefined;
2940
+ revision?: number | undefined;
2941
+ }[] | undefined;
2942
+ requestIds?: string[] | undefined;
2943
+ requestOutcomes?: {
2944
+ requestId: string;
2945
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2946
+ observedAt: string;
2947
+ replyId?: string | undefined;
2948
+ }[] | undefined;
2949
+ result?: {
2950
+ reason: "outcome" | "timeout";
2951
+ } | undefined;
2952
+ wakeInputId?: string | undefined;
2953
+ } | {
2954
+ id: string;
2955
+ source: "agent" | "cezar";
2956
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2957
+ registeredAt: string;
2958
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2959
+ resolvedAt?: string | undefined;
2960
+ deliveredAt?: string | undefined;
2961
+ cancelledAt?: string | undefined;
2962
+ turnId: string;
2963
+ kind: "process";
2964
+ deadline: string;
2965
+ timeoutSeconds: number;
2966
+ pid: number;
2967
+ startToken?: string | undefined;
2968
+ exitFile?: string | undefined;
2969
+ note?: string | undefined;
2970
+ result?: {
2971
+ outcome: "deadline" | "error" | "exit_file" | "exited";
2972
+ observedAt: string;
2973
+ exitCode?: number | undefined;
2974
+ exitFileNote?: "not-an-exit-code" | undefined;
2975
+ diagnostic?: string | undefined;
2976
+ } | undefined;
2977
+ } | {
2978
+ id: string;
2979
+ source: "agent" | "cezar";
2980
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
2981
+ registeredAt: string;
2982
+ phase: "cancelled" | "delivered" | "open" | "resolved";
2983
+ resolvedAt?: string | undefined;
2984
+ deliveredAt?: string | undefined;
2985
+ cancelledAt?: string | undefined;
2986
+ turnId: string;
2987
+ kind: "peer";
2988
+ deadline: string;
2989
+ timeoutSeconds: number;
2990
+ peerIds: string[];
2991
+ result?: {
2992
+ reason: "message";
2993
+ peerRunId: string;
2994
+ messageId: string;
2995
+ } | {
2996
+ reason: "settled";
2997
+ peerRunId: string;
2998
+ } | {
2999
+ reason: "timeout";
3000
+ } | undefined;
3001
+ } | {
3002
+ id: string;
3003
+ registeredAt: string;
3004
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3005
+ resolvedAt?: string | undefined;
3006
+ deliveredAt?: string | undefined;
3007
+ cancelledAt?: string | undefined;
3008
+ turnId: string;
3009
+ kind: "subagent";
3010
+ source: "cezar";
3011
+ via: "native-subagents";
3012
+ deadline: string;
3013
+ children: {
3014
+ id: string;
3015
+ status: "cancelled" | "completed" | "failed" | "running";
3016
+ }[];
3017
+ result?: {
3018
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
3019
+ } | undefined;
3020
+ };
3021
+ deduplicated: boolean;
3022
+ }[] | undefined;
3023
+ lastWaits?: ({
3024
+ prUrl: string;
3025
+ repository: string;
3026
+ prNumber: number;
3027
+ headSha: string;
3028
+ id: string;
3029
+ source: "agent" | "cezar";
3030
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3031
+ registeredAt: string;
3032
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3033
+ resolvedAt?: string | undefined;
3034
+ deliveredAt?: string | undefined;
3035
+ cancelledAt?: string | undefined;
3036
+ turnId: string;
3037
+ kind: "pr";
3038
+ deadline: string;
3039
+ generation: string;
3040
+ timeoutSeconds: number;
3041
+ until: "checks" | "merge" | "merge_or_blocked";
3042
+ wakeOnConflict: boolean;
3043
+ result?: {
3044
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
3045
+ headSha: string;
3046
+ observedHeadSha?: string | undefined;
3047
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
3048
+ mergeStateStatus?: string | undefined;
3049
+ mergedAt?: string | undefined;
3050
+ mergeCommitSha?: string | undefined;
3051
+ mergeBlock?: {
3052
+ reason: "conflict" | "no_pending_merge";
3053
+ isInMergeQueue: boolean;
3054
+ autoMergeEnabled: boolean;
3055
+ event?: {
3056
+ kind: "auto_merge_disabled" | "queue_removal";
3057
+ createdAt: string;
3058
+ reason?: string | undefined;
3059
+ reasonCode?: string | undefined;
3060
+ } | undefined;
3061
+ } | undefined;
3062
+ observedAt: string;
3063
+ checks: {
3064
+ name: string;
3065
+ state: string;
3066
+ link: string;
3067
+ }[];
3068
+ totalChecks: number;
3069
+ truncated: boolean;
3070
+ diagnostic?: string | undefined;
3071
+ } | undefined;
3072
+ } | {
3073
+ id: string;
3074
+ source: "agent" | "cezar";
3075
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3076
+ registeredAt: string;
3077
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3078
+ resolvedAt?: string | undefined;
3079
+ deliveredAt?: string | undefined;
3080
+ cancelledAt?: string | undefined;
3081
+ turnId: string;
3082
+ kind: "timer";
3083
+ deadline: string;
3084
+ seconds: number;
3085
+ note?: string | undefined;
3086
+ } | {
3087
+ id: string;
3088
+ source: "agent" | "cezar";
3089
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3090
+ registeredAt: string;
3091
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3092
+ resolvedAt?: string | undefined;
3093
+ deliveredAt?: string | undefined;
3094
+ cancelledAt?: string | undefined;
3095
+ turnId: string;
3096
+ kind: "human";
3097
+ questions?: {
3098
+ id?: string | undefined;
3099
+ header: string;
3100
+ question: string;
3101
+ options?: {
3102
+ label: string;
3103
+ description?: string | undefined;
3104
+ }[] | undefined;
3105
+ multiSelect?: boolean | undefined;
3106
+ }[] | undefined;
3107
+ context?: string | undefined;
3108
+ askSeq?: number | undefined;
3109
+ } | {
3110
+ id: string;
3111
+ source: "agent" | "cezar";
3112
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3113
+ registeredAt: string;
3114
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3115
+ resolvedAt?: string | undefined;
3116
+ deliveredAt?: string | undefined;
3117
+ cancelledAt?: string | undefined;
3118
+ turnId: string;
3119
+ kind: "worker";
3120
+ deadline?: string | undefined;
3121
+ timeoutSeconds?: number | undefined;
3122
+ mode?: "all" | "any" | "one" | undefined;
3123
+ workerIds?: string[] | undefined;
3124
+ revisions?: {
3125
+ workerId: string;
3126
+ revision: number;
3127
+ }[] | undefined;
3128
+ outcomes?: {
3129
+ workerId: string;
3130
+ status: "cancelled" | "done" | "failed" | "review";
3131
+ observedAt: string;
3132
+ summary?: string | undefined;
3133
+ revision?: number | undefined;
3134
+ }[] | undefined;
3135
+ requestIds?: string[] | undefined;
3136
+ requestOutcomes?: {
3137
+ requestId: string;
3138
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
3139
+ observedAt: string;
3140
+ replyId?: string | undefined;
3141
+ }[] | undefined;
3142
+ result?: {
3143
+ reason: "outcome" | "timeout";
3144
+ } | undefined;
3145
+ wakeInputId?: string | undefined;
3146
+ } | {
3147
+ id: string;
3148
+ source: "agent" | "cezar";
3149
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3150
+ registeredAt: string;
3151
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3152
+ resolvedAt?: string | undefined;
3153
+ deliveredAt?: string | undefined;
3154
+ cancelledAt?: string | undefined;
3155
+ turnId: string;
3156
+ kind: "process";
3157
+ deadline: string;
3158
+ timeoutSeconds: number;
3159
+ pid: number;
3160
+ startToken?: string | undefined;
3161
+ exitFile?: string | undefined;
3162
+ note?: string | undefined;
3163
+ result?: {
3164
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3165
+ observedAt: string;
3166
+ exitCode?: number | undefined;
3167
+ exitFileNote?: "not-an-exit-code" | undefined;
3168
+ diagnostic?: string | undefined;
3169
+ } | undefined;
3170
+ } | {
3171
+ id: string;
3172
+ source: "agent" | "cezar";
3173
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3174
+ registeredAt: string;
3175
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3176
+ resolvedAt?: string | undefined;
3177
+ deliveredAt?: string | undefined;
3178
+ cancelledAt?: string | undefined;
3179
+ turnId: string;
3180
+ kind: "peer";
3181
+ deadline: string;
3182
+ timeoutSeconds: number;
3183
+ peerIds: string[];
3184
+ result?: {
3185
+ reason: "message";
3186
+ peerRunId: string;
3187
+ messageId: string;
3188
+ } | {
3189
+ reason: "settled";
3190
+ peerRunId: string;
3191
+ } | {
3192
+ reason: "timeout";
3193
+ } | undefined;
3194
+ } | {
3195
+ id: string;
3196
+ registeredAt: string;
3197
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3198
+ resolvedAt?: string | undefined;
3199
+ deliveredAt?: string | undefined;
3200
+ cancelledAt?: string | undefined;
3201
+ turnId: string;
3202
+ kind: "subagent";
3203
+ source: "cezar";
3204
+ via: "native-subagents";
3205
+ deadline: string;
3206
+ children: {
3207
+ id: string;
3208
+ status: "cancelled" | "completed" | "failed" | "running";
3209
+ }[];
3210
+ result?: {
3211
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
3212
+ } | undefined;
3213
+ })[] | undefined;
3214
+ lastWaitsError?: string | undefined;
3215
+ automaticWakes?: number | undefined;
3216
+ waitDeliveryFailures?: number | undefined;
3217
+ previewServers?: {
3218
+ port: number;
3219
+ command: string;
3220
+ cwd?: string | undefined;
3221
+ label: string;
3222
+ path?: string | undefined;
3223
+ registeredAt: string;
3224
+ answeredAtRegistration: boolean;
3225
+ }[] | undefined;
3226
+ taskImages?: string[] | undefined;
3227
+ model?: string | undefined;
3228
+ effort?: string | undefined;
3229
+ modelIdentity?: string | undefined;
3230
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
3231
+ agentProfile?: string | undefined;
3232
+ systemPrompt?: string | undefined;
3233
+ generateFollowups?: boolean | undefined;
3234
+ autonomous?: boolean | undefined;
3235
+ completionAction?: {
3236
+ id: string;
3237
+ phase: "blocked" | "complete" | "pending";
3238
+ message?: string | undefined;
3239
+ } | undefined;
3240
+ archiveBlocker?: {
3241
+ message: string;
3242
+ runId?: string | undefined;
3243
+ pullRequestUrl?: string | undefined;
3244
+ } | undefined;
3245
+ automation?: {
3246
+ automationId: string;
3247
+ automationRevision: number;
3248
+ receiptId: string;
3249
+ event: string;
3250
+ githubUrl: string;
3251
+ } | undefined;
3252
+ automationTrigger?: {
3253
+ automationId: string;
3254
+ automationRevision: number;
3255
+ receiptId: string;
3256
+ trigger: "catch-up" | "manual" | "schedule";
3257
+ occurrenceAt: string;
3258
+ } | undefined;
3259
+ destroyRetry?: {
3260
+ attempts: number;
3261
+ nextAt: string;
3262
+ needsAttention?: true | undefined;
3263
+ } | undefined;
3264
+ notify?: boolean | undefined;
3265
+ webhook?: {
3266
+ lastDeliveredAt?: string | undefined;
3267
+ lastError?: string | undefined;
3268
+ lastErrorWebhookId?: string | undefined;
3269
+ } | undefined;
3270
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3271
+ hasPendingPermission?: boolean | undefined;
3272
+ autoResumeAt?: string | undefined;
3273
+ autoResumeAttempts?: number | undefined;
3274
+ createdAt: string;
3275
+ startedAt?: string | undefined;
3276
+ finishedAt?: string | undefined;
3277
+ tokensUsed: number;
3278
+ inputTokens?: number | undefined;
3279
+ outputTokens?: number | undefined;
3280
+ costUsd?: number | undefined;
3281
+ pullRequestUrl?: string | undefined;
3282
+ pullRequests?: {
3283
+ number: number;
3284
+ url?: string | undefined;
3285
+ source: "created" | "declared";
3286
+ }[] | undefined;
3287
+ referencedPullRequestUrl?: string | undefined;
3288
+ prNumber?: number | undefined;
3289
+ issueNumber?: number | undefined;
3290
+ referencedIssueNumberSeeded?: boolean | undefined;
3291
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
3292
+ markerRefs?: {
3293
+ pr?: number | undefined;
3294
+ issue?: number | undefined;
3295
+ } | undefined;
3296
+ referencedPrCandidates?: string[] | undefined;
3297
+ referencedIssueUrl?: string | undefined;
3298
+ referencedIssueCandidates?: string[] | undefined;
3299
+ worktree?: false | undefined;
3300
+ worktreePath?: string | undefined;
3301
+ branch?: string | undefined;
3302
+ baseBranch?: string | undefined;
3303
+ worktreeReclaimedAt?: string | undefined;
3304
+ worktreeSetup?: {
3305
+ status: "done" | "failed" | "running";
3306
+ startedAt: string;
3307
+ finishedAt?: string | undefined;
3308
+ durationMs?: number | undefined;
3309
+ error?: string | undefined;
3310
+ } | undefined;
3311
+ groupId?: string | undefined;
3312
+ variant?: string | undefined;
3313
+ clientRequestId?: string | undefined;
3314
+ clientRequestHash?: string | undefined;
3315
+ peakRssBytes?: number | undefined;
3316
+ peakProcCount?: number | undefined;
3317
+ archived: boolean;
3318
+ archivedAt?: string | undefined;
3319
+ autoArchive?: {
3320
+ reason: "pull-requests-merged";
3321
+ archivedAt: string;
3322
+ fingerprint: string;
3323
+ pullRequests: {
3324
+ owner: string;
3325
+ repo: string;
3326
+ number: number;
3327
+ mergedAt: string;
3328
+ }[];
3329
+ } | undefined;
3330
+ manualUnarchivedAt?: string | undefined;
3331
+ pinned?: boolean | undefined;
3332
+ pinnedAt?: string | undefined;
3333
+ seenAt?: string | undefined;
3334
+ currentStepId?: string | undefined;
3335
+ error?: string | undefined;
3336
+ steps: {
3337
+ id: string;
3338
+ name: string;
3339
+ kind: "agent" | "check";
3340
+ status: "cancelled" | "done" | "failed" | "pending" | "review" | "running" | "skipped" | "waiting";
3341
+ iterations: number;
3342
+ retriesUsed?: number | undefined;
3343
+ tokensUsed: number;
3344
+ inputTokens?: number | undefined;
3345
+ outputTokens?: number | undefined;
3346
+ usageInvocationsStarted?: number | undefined;
3347
+ usageInvocationsObserved?: number | undefined;
3348
+ usageTurnsStarted?: number | undefined;
3349
+ usageTurnsRecorded?: number | undefined;
3350
+ usageInvocationEpoch?: number | undefined;
3351
+ startedAt?: string | undefined;
3352
+ finishedAt?: string | undefined;
3353
+ error?: string | undefined;
3354
+ sessionId?: string | undefined;
3355
+ sessionTransport?: "cursor-acp" | "cursor-print" | undefined;
3356
+ backend?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
3357
+ profileId?: string | undefined;
3358
+ costUsd?: number | undefined;
3359
+ synthetic?: "continuation" | undefined;
3360
+ }[];
3361
+ workflowDef?: {
3362
+ name: string;
3363
+ description?: string | undefined;
3364
+ steps: {
3365
+ id: string;
3366
+ name?: string | undefined;
3367
+ prompt?: string | undefined;
3368
+ skill?: string | undefined;
3369
+ model?: string | undefined;
3370
+ effort?: string | undefined;
3371
+ timeoutMs?: number | undefined;
3372
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
3373
+ agentProfile?: string | undefined;
3374
+ allowedTools?: string[] | undefined;
3375
+ bashAllowlist?: string[] | undefined;
3376
+ command?: string | undefined;
3377
+ onFail?: {
3378
+ retry: string;
3379
+ max: number;
3380
+ } | undefined;
3381
+ }[];
3382
+ source: "built-in" | "file";
3383
+ path?: string | undefined;
3384
+ } | undefined;
3385
+ handoffRecords?: {
3386
+ autosave: {
3387
+ at: string;
3388
+ note: string;
3389
+ periodic?: {
3390
+ branch: string | null;
3391
+ count: number;
3392
+ first: string | null;
3393
+ latest: string | null;
3394
+ } | undefined;
3395
+ }[];
3396
+ } | undefined;
3397
+ }) => boolean;
3398
+ readonly steps: typeof cancelledStep;
3399
+ readonly event: "run cancelled";
3400
+ };
3401
+ readonly 'stop-worker': {
3402
+ readonly durability: 'committed';
3403
+ readonly from: readonly ["queued", "running", "waiting", "review", "done", "failed"];
3404
+ readonly to: 'cancelled';
3405
+ readonly guard: (run: {
3406
+ archiveWhenDone?: boolean | undefined;
3407
+ autoMergePr?: boolean | undefined;
3408
+ allowWorkers?: boolean | undefined;
3409
+ allowMessaging?: boolean | undefined;
3410
+ id: string;
3411
+ title: string;
3412
+ titleSummary?: string | undefined;
3413
+ diffStat?: {
3414
+ adds: number;
3415
+ dels: number;
3416
+ files: number;
3417
+ repointed?: boolean | undefined;
3418
+ } | undefined;
3419
+ workflow: string;
3420
+ task: string;
3421
+ queuedMessages?: {
3422
+ id: string;
3423
+ text: string;
3424
+ images?: string[] | undefined;
3425
+ createdAt: string;
3426
+ }[] | undefined;
3427
+ stopping?: boolean | undefined;
3428
+ continuationMessage?: {
3429
+ id: string;
3430
+ text: string;
3431
+ images?: string[] | undefined;
3432
+ createdAt: string;
3433
+ origin?: "human" | "lifecycle" | undefined;
3434
+ agentInputId?: string | undefined;
3435
+ resumeContext?: {
3436
+ failure?: {
3437
+ stepId?: string | undefined;
3438
+ error: string;
3439
+ } | undefined;
3440
+ restarted?: true | undefined;
3441
+ } | undefined;
3442
+ } | undefined;
3443
+ workflowResumeStepId?: string | undefined;
3444
+ invalidAsk?: boolean | undefined;
3445
+ delegation?: {
3446
+ role: "root";
3447
+ conversation?: {
3448
+ messages: {
3449
+ senderRunId: string;
3450
+ recipientRunId: string;
3451
+ kind: "follow-up" | "progress" | "reply" | "request";
3452
+ requestId?: string | undefined;
3453
+ relationship?: "family" | "peer" | undefined;
3454
+ id: string;
3455
+ text: string;
3456
+ createdAt: string;
3457
+ deadline?: string | undefined;
3458
+ requestHash: string;
3459
+ state: "accepted" | "continuation-required" | "destroyed" | "late";
3460
+ resumed?: true | undefined;
3461
+ instruction?: string | undefined;
3462
+ question?: {
3463
+ context?: string | undefined;
3464
+ questions: {
3465
+ id?: string | undefined;
3466
+ header: string;
3467
+ question: string;
3468
+ options?: {
3469
+ label: string;
3470
+ description?: string | undefined;
3471
+ }[] | undefined;
3472
+ multiSelect?: boolean | undefined;
3473
+ }[];
3474
+ } | undefined;
3475
+ }[];
3476
+ outcomes: {
3477
+ requestId: string;
3478
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
3479
+ observedAt: string;
3480
+ replyId?: string | undefined;
3481
+ }[];
3482
+ } | undefined;
3483
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
3484
+ receipts: {
3485
+ requestId: string;
3486
+ workerId: string;
3487
+ requestHash: string;
3488
+ deletion?: {
3489
+ phase: "complete" | "pending";
3490
+ revision: number;
3491
+ resourceId: string;
3492
+ generation: string;
3493
+ } | undefined;
3494
+ }[];
3495
+ wait?: {
3496
+ id: string;
3497
+ workerIds: string[];
3498
+ requestIds?: string[] | undefined;
3499
+ requestOutcomes?: {
3500
+ requestId: string;
3501
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
3502
+ observedAt: string;
3503
+ replyId?: string | undefined;
3504
+ }[] | undefined;
3505
+ deadline: string;
3506
+ mode?: "all" | "any" | "one" | undefined;
3507
+ revisions?: {
3508
+ workerId: string;
3509
+ revision: number;
3510
+ }[] | undefined;
3511
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
3512
+ phase: "parked" | "registered" | "wake-pending";
3513
+ outcomes: {
3514
+ workerId: string;
3515
+ status: "cancelled" | "done" | "failed" | "review";
3516
+ observedAt: string;
3517
+ summary?: string | undefined;
3518
+ revision?: number | undefined;
3519
+ }[];
3520
+ wakeId?: string | undefined;
3521
+ } | undefined;
3522
+ lastWait?: {
3523
+ id: string;
3524
+ workerIds: string[];
3525
+ requestIds?: string[] | undefined;
3526
+ requestOutcomes?: {
3527
+ requestId: string;
3528
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
3529
+ observedAt: string;
3530
+ replyId?: string | undefined;
3531
+ }[] | undefined;
3532
+ deadline: string;
3533
+ mode?: "all" | "any" | "one" | undefined;
3534
+ revisions?: {
3535
+ workerId: string;
3536
+ revision: number;
3537
+ }[] | undefined;
3538
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
3539
+ phase: "parked" | "registered" | "wake-pending";
3540
+ outcomes: {
3541
+ workerId: string;
3542
+ status: "cancelled" | "done" | "failed" | "review";
3543
+ observedAt: string;
3544
+ summary?: string | undefined;
3545
+ revision?: number | undefined;
3546
+ }[];
3547
+ wakeId?: string | undefined;
3548
+ } | undefined;
3549
+ results?: {
3550
+ workerId: string;
3551
+ revision: number;
3552
+ snapshotId: string;
3553
+ observedAt: string;
3554
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
3555
+ previous?: {
3556
+ revision: number;
3557
+ observedAt: string;
3558
+ lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
3559
+ } | undefined;
3560
+ }[] | undefined;
3561
+ finishRequestedAt?: string | undefined;
3562
+ historyDeletion?: "pending" | undefined;
3563
+ completion?: {
3564
+ phase: "attention" | "waiting";
3565
+ waitId?: string | undefined;
3566
+ } | undefined;
3567
+ } | {
3568
+ role: "worker";
3569
+ wait?: {
3570
+ id: string;
3571
+ workerIds: string[];
3572
+ requestIds?: string[] | undefined;
3573
+ requestOutcomes?: {
3574
+ requestId: string;
3575
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
3576
+ observedAt: string;
3577
+ replyId?: string | undefined;
3578
+ }[] | undefined;
3579
+ deadline: string;
3580
+ mode?: "all" | "any" | "one" | undefined;
3581
+ revisions?: {
3582
+ workerId: string;
3583
+ revision: number;
3584
+ }[] | undefined;
3585
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
3586
+ phase: "parked" | "registered" | "wake-pending";
3587
+ outcomes: {
3588
+ workerId: string;
3589
+ status: "cancelled" | "done" | "failed" | "review";
3590
+ observedAt: string;
3591
+ summary?: string | undefined;
3592
+ revision?: number | undefined;
3593
+ }[];
3594
+ wakeId?: string | undefined;
3595
+ } | undefined;
3596
+ lastWait?: {
3597
+ id: string;
3598
+ workerIds: string[];
3599
+ requestIds?: string[] | undefined;
3600
+ requestOutcomes?: {
3601
+ requestId: string;
3602
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
3603
+ observedAt: string;
3604
+ replyId?: string | undefined;
3605
+ }[] | undefined;
3606
+ deadline: string;
3607
+ mode?: "all" | "any" | "one" | undefined;
3608
+ revisions?: {
3609
+ workerId: string;
3610
+ revision: number;
3611
+ }[] | undefined;
3612
+ reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
3613
+ phase: "parked" | "registered" | "wake-pending";
3614
+ outcomes: {
3615
+ workerId: string;
3616
+ status: "cancelled" | "done" | "failed" | "review";
3617
+ observedAt: string;
3618
+ summary?: string | undefined;
3619
+ revision?: number | undefined;
3620
+ }[];
3621
+ wakeId?: string | undefined;
3622
+ } | undefined;
3623
+ permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
3624
+ parentRunId: string;
3625
+ workspace: {
3626
+ ownerRunId: string;
3627
+ resourceId: string;
3628
+ kind: "owned-isolated";
3629
+ path: string;
3630
+ branch: string;
3631
+ baselineSha: string;
3632
+ };
3633
+ destroy?: {
3634
+ requestedAt: string;
3635
+ phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
3636
+ remaining: ("branch" | "process" | "worktree")[];
3637
+ error?: string | undefined;
3638
+ } | undefined;
3639
+ context?: {
3640
+ text?: string | undefined;
3641
+ inputs: {
3642
+ source: {
3643
+ kind: "parent-file";
3644
+ path: string;
3645
+ } | {
3646
+ kind: "baseline-file";
3647
+ path: string;
3648
+ } | {
3649
+ kind: "parent-attachment";
3650
+ id: string;
3651
+ };
3652
+ path: string;
3653
+ sha256: string;
3654
+ bytes: number;
3655
+ }[];
3656
+ } | undefined;
3657
+ executionRevision?: number | undefined;
3658
+ executionStartSeq?: number | undefined;
3659
+ } | {
3660
+ role: "invalid";
3661
+ } | undefined;
3662
+ agentInputs?: {
3663
+ conversation?: {
3664
+ senderRunId: string;
3665
+ recipientRunId: string;
3666
+ kind: "follow-up" | "progress" | "reply" | "request";
3667
+ requestId?: string | undefined;
3668
+ relationship?: "family" | "peer" | undefined;
3669
+ } | undefined;
3670
+ id: string;
3671
+ source: "agent" | "lifecycle";
3672
+ parentRunId: string;
3673
+ text: string;
3674
+ createdAt: string;
3675
+ deliveredAt?: string | undefined;
3676
+ consumedAt?: string | undefined;
3677
+ awaitingRead?: true | undefined;
3678
+ inboxClaim?: {
3679
+ receiptId: string;
3680
+ generation: string;
3681
+ expiresAt: string;
3682
+ acknowledgedAt?: string | undefined;
3683
+ memberIds?: string[] | undefined;
3684
+ } | undefined;
3685
+ purpose?: "completion-refusal" | "undelivered-question" | undefined;
3686
+ requestHash?: string | undefined;
3687
+ deadline?: string | undefined;
3688
+ }[] | undefined;
3689
+ waits?: ({
3690
+ prUrl: string;
3691
+ repository: string;
3692
+ prNumber: number;
3693
+ headSha: string;
3694
+ id: string;
3695
+ source: "agent" | "cezar";
3696
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3697
+ registeredAt: string;
3698
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3699
+ resolvedAt?: string | undefined;
3700
+ deliveredAt?: string | undefined;
3701
+ cancelledAt?: string | undefined;
3702
+ turnId: string;
3703
+ kind: "pr";
3704
+ deadline: string;
3705
+ generation: string;
3706
+ timeoutSeconds: number;
3707
+ until: "checks" | "merge" | "merge_or_blocked";
3708
+ wakeOnConflict: boolean;
3709
+ result?: {
3710
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
3711
+ headSha: string;
3712
+ observedHeadSha?: string | undefined;
3713
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
3714
+ mergeStateStatus?: string | undefined;
3715
+ mergedAt?: string | undefined;
3716
+ mergeCommitSha?: string | undefined;
3717
+ mergeBlock?: {
3718
+ reason: "conflict" | "no_pending_merge";
3719
+ isInMergeQueue: boolean;
3720
+ autoMergeEnabled: boolean;
3721
+ event?: {
3722
+ kind: "auto_merge_disabled" | "queue_removal";
3723
+ createdAt: string;
3724
+ reason?: string | undefined;
3725
+ reasonCode?: string | undefined;
3726
+ } | undefined;
3727
+ } | undefined;
3728
+ observedAt: string;
3729
+ checks: {
3730
+ name: string;
3731
+ state: string;
3732
+ link: string;
3733
+ }[];
3734
+ totalChecks: number;
3735
+ truncated: boolean;
3736
+ diagnostic?: string | undefined;
3737
+ } | undefined;
3738
+ } | {
3739
+ id: string;
3740
+ source: "agent" | "cezar";
3741
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3742
+ registeredAt: string;
3743
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3744
+ resolvedAt?: string | undefined;
3745
+ deliveredAt?: string | undefined;
3746
+ cancelledAt?: string | undefined;
3747
+ turnId: string;
3748
+ kind: "timer";
3749
+ deadline: string;
3750
+ seconds: number;
3751
+ note?: string | undefined;
3752
+ } | {
3753
+ id: string;
3754
+ source: "agent" | "cezar";
3755
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3756
+ registeredAt: string;
3757
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3758
+ resolvedAt?: string | undefined;
3759
+ deliveredAt?: string | undefined;
3760
+ cancelledAt?: string | undefined;
3761
+ turnId: string;
3762
+ kind: "human";
3763
+ questions?: {
3764
+ id?: string | undefined;
3765
+ header: string;
3766
+ question: string;
3767
+ options?: {
3768
+ label: string;
3769
+ description?: string | undefined;
3770
+ }[] | undefined;
3771
+ multiSelect?: boolean | undefined;
3772
+ }[] | undefined;
3773
+ context?: string | undefined;
3774
+ askSeq?: number | undefined;
3775
+ } | {
3776
+ id: string;
3777
+ source: "agent" | "cezar";
3778
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3779
+ registeredAt: string;
3780
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3781
+ resolvedAt?: string | undefined;
3782
+ deliveredAt?: string | undefined;
3783
+ cancelledAt?: string | undefined;
3784
+ turnId: string;
3785
+ kind: "worker";
3786
+ deadline?: string | undefined;
3787
+ timeoutSeconds?: number | undefined;
3788
+ mode?: "all" | "any" | "one" | undefined;
3789
+ workerIds?: string[] | undefined;
3790
+ revisions?: {
3791
+ workerId: string;
3792
+ revision: number;
3793
+ }[] | undefined;
3794
+ outcomes?: {
3795
+ workerId: string;
3796
+ status: "cancelled" | "done" | "failed" | "review";
3797
+ observedAt: string;
3798
+ summary?: string | undefined;
3799
+ revision?: number | undefined;
3800
+ }[] | undefined;
3801
+ requestIds?: string[] | undefined;
3802
+ requestOutcomes?: {
3803
+ requestId: string;
3804
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
3805
+ observedAt: string;
3806
+ replyId?: string | undefined;
3807
+ }[] | undefined;
3808
+ result?: {
3809
+ reason: "outcome" | "timeout";
3810
+ } | undefined;
3811
+ wakeInputId?: string | undefined;
3812
+ } | {
3813
+ id: string;
3814
+ source: "agent" | "cezar";
3815
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3816
+ registeredAt: string;
3817
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3818
+ resolvedAt?: string | undefined;
3819
+ deliveredAt?: string | undefined;
3820
+ cancelledAt?: string | undefined;
3821
+ turnId: string;
3822
+ kind: "process";
3823
+ deadline: string;
3824
+ timeoutSeconds: number;
3825
+ pid: number;
3826
+ startToken?: string | undefined;
3827
+ exitFile?: string | undefined;
3828
+ note?: string | undefined;
3829
+ result?: {
3830
+ outcome: "deadline" | "error" | "exit_file" | "exited";
3831
+ observedAt: string;
3832
+ exitCode?: number | undefined;
3833
+ exitFileNote?: "not-an-exit-code" | undefined;
3834
+ diagnostic?: string | undefined;
3835
+ } | undefined;
3836
+ } | {
3837
+ id: string;
3838
+ source: "agent" | "cezar";
3839
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3840
+ registeredAt: string;
3841
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3842
+ resolvedAt?: string | undefined;
3843
+ deliveredAt?: string | undefined;
3844
+ cancelledAt?: string | undefined;
3845
+ turnId: string;
3846
+ kind: "peer";
3847
+ deadline: string;
3848
+ timeoutSeconds: number;
3849
+ peerIds: string[];
3850
+ result?: {
3851
+ reason: "message";
3852
+ peerRunId: string;
3853
+ messageId: string;
3854
+ } | {
3855
+ reason: "settled";
3856
+ peerRunId: string;
3857
+ } | {
3858
+ reason: "timeout";
3859
+ } | undefined;
3860
+ } | {
3861
+ id: string;
3862
+ registeredAt: string;
3863
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3864
+ resolvedAt?: string | undefined;
3865
+ deliveredAt?: string | undefined;
3866
+ cancelledAt?: string | undefined;
3867
+ turnId: string;
3868
+ kind: "subagent";
3869
+ source: "cezar";
3870
+ via: "native-subagents";
3871
+ deadline: string;
3872
+ children: {
3873
+ id: string;
3874
+ status: "cancelled" | "completed" | "failed" | "running";
3875
+ }[];
3876
+ result?: {
3877
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
3878
+ } | undefined;
3879
+ })[] | undefined;
3880
+ waitRegistrations?: {
3881
+ operationId: string;
3882
+ requestHash: string;
3883
+ wait: {
3884
+ prUrl: string;
3885
+ repository: string;
3886
+ prNumber: number;
3887
+ headSha: string;
3888
+ id: string;
3889
+ source: "agent" | "cezar";
3890
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3891
+ registeredAt: string;
3892
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3893
+ resolvedAt?: string | undefined;
3894
+ deliveredAt?: string | undefined;
3895
+ cancelledAt?: string | undefined;
3896
+ turnId: string;
3897
+ kind: "pr";
3898
+ deadline: string;
3899
+ generation: string;
3900
+ timeoutSeconds: number;
3901
+ until: "checks" | "merge" | "merge_or_blocked";
3902
+ wakeOnConflict: boolean;
3903
+ result?: {
3904
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
3905
+ headSha: string;
3906
+ observedHeadSha?: string | undefined;
3907
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
3908
+ mergeStateStatus?: string | undefined;
3909
+ mergedAt?: string | undefined;
3910
+ mergeCommitSha?: string | undefined;
3911
+ mergeBlock?: {
3912
+ reason: "conflict" | "no_pending_merge";
3913
+ isInMergeQueue: boolean;
3914
+ autoMergeEnabled: boolean;
3915
+ event?: {
3916
+ kind: "auto_merge_disabled" | "queue_removal";
3917
+ createdAt: string;
3918
+ reason?: string | undefined;
3919
+ reasonCode?: string | undefined;
3920
+ } | undefined;
3921
+ } | undefined;
3922
+ observedAt: string;
3923
+ checks: {
3924
+ name: string;
3925
+ state: string;
3926
+ link: string;
3927
+ }[];
3928
+ totalChecks: number;
3929
+ truncated: boolean;
3930
+ diagnostic?: string | undefined;
3931
+ } | undefined;
3932
+ } | {
3933
+ id: string;
3934
+ source: "agent" | "cezar";
3935
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3936
+ registeredAt: string;
3937
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3938
+ resolvedAt?: string | undefined;
3939
+ deliveredAt?: string | undefined;
3940
+ cancelledAt?: string | undefined;
3941
+ turnId: string;
3942
+ kind: "timer";
3943
+ deadline: string;
3944
+ seconds: number;
3945
+ note?: string | undefined;
3946
+ } | {
3947
+ id: string;
3948
+ source: "agent" | "cezar";
3949
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3950
+ registeredAt: string;
3951
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3952
+ resolvedAt?: string | undefined;
3953
+ deliveredAt?: string | undefined;
3954
+ cancelledAt?: string | undefined;
3955
+ turnId: string;
3956
+ kind: "human";
3957
+ questions?: {
3958
+ id?: string | undefined;
3959
+ header: string;
3960
+ question: string;
3961
+ options?: {
3962
+ label: string;
3963
+ description?: string | undefined;
3964
+ }[] | undefined;
3965
+ multiSelect?: boolean | undefined;
3966
+ }[] | undefined;
3967
+ context?: string | undefined;
3968
+ askSeq?: number | undefined;
3969
+ } | {
3970
+ id: string;
3971
+ source: "agent" | "cezar";
3972
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
3973
+ registeredAt: string;
3974
+ phase: "cancelled" | "delivered" | "open" | "resolved";
3975
+ resolvedAt?: string | undefined;
3976
+ deliveredAt?: string | undefined;
3977
+ cancelledAt?: string | undefined;
3978
+ turnId: string;
3979
+ kind: "worker";
3980
+ deadline?: string | undefined;
3981
+ timeoutSeconds?: number | undefined;
3982
+ mode?: "all" | "any" | "one" | undefined;
3983
+ workerIds?: string[] | undefined;
3984
+ revisions?: {
3985
+ workerId: string;
3986
+ revision: number;
3987
+ }[] | undefined;
3988
+ outcomes?: {
3989
+ workerId: string;
3990
+ status: "cancelled" | "done" | "failed" | "review";
3991
+ observedAt: string;
3992
+ summary?: string | undefined;
3993
+ revision?: number | undefined;
3994
+ }[] | undefined;
3995
+ requestIds?: string[] | undefined;
3996
+ requestOutcomes?: {
3997
+ requestId: string;
3998
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
3999
+ observedAt: string;
4000
+ replyId?: string | undefined;
4001
+ }[] | undefined;
4002
+ result?: {
4003
+ reason: "outcome" | "timeout";
4004
+ } | undefined;
4005
+ wakeInputId?: string | undefined;
4006
+ } | {
4007
+ id: string;
4008
+ source: "agent" | "cezar";
4009
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4010
+ registeredAt: string;
4011
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4012
+ resolvedAt?: string | undefined;
4013
+ deliveredAt?: string | undefined;
4014
+ cancelledAt?: string | undefined;
4015
+ turnId: string;
4016
+ kind: "process";
4017
+ deadline: string;
4018
+ timeoutSeconds: number;
4019
+ pid: number;
4020
+ startToken?: string | undefined;
4021
+ exitFile?: string | undefined;
4022
+ note?: string | undefined;
4023
+ result?: {
4024
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4025
+ observedAt: string;
4026
+ exitCode?: number | undefined;
4027
+ exitFileNote?: "not-an-exit-code" | undefined;
4028
+ diagnostic?: string | undefined;
4029
+ } | undefined;
4030
+ } | {
4031
+ id: string;
4032
+ source: "agent" | "cezar";
4033
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4034
+ registeredAt: string;
4035
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4036
+ resolvedAt?: string | undefined;
4037
+ deliveredAt?: string | undefined;
4038
+ cancelledAt?: string | undefined;
4039
+ turnId: string;
4040
+ kind: "peer";
4041
+ deadline: string;
4042
+ timeoutSeconds: number;
4043
+ peerIds: string[];
4044
+ result?: {
4045
+ reason: "message";
4046
+ peerRunId: string;
4047
+ messageId: string;
4048
+ } | {
4049
+ reason: "settled";
4050
+ peerRunId: string;
4051
+ } | {
4052
+ reason: "timeout";
4053
+ } | undefined;
4054
+ } | {
4055
+ id: string;
4056
+ registeredAt: string;
4057
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4058
+ resolvedAt?: string | undefined;
4059
+ deliveredAt?: string | undefined;
4060
+ cancelledAt?: string | undefined;
4061
+ turnId: string;
4062
+ kind: "subagent";
4063
+ source: "cezar";
4064
+ via: "native-subagents";
4065
+ deadline: string;
4066
+ children: {
4067
+ id: string;
4068
+ status: "cancelled" | "completed" | "failed" | "running";
4069
+ }[];
4070
+ result?: {
4071
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
4072
+ } | undefined;
4073
+ };
4074
+ deduplicated: boolean;
4075
+ }[] | undefined;
4076
+ lastWaits?: ({
4077
+ prUrl: string;
4078
+ repository: string;
4079
+ prNumber: number;
4080
+ headSha: string;
4081
+ id: string;
4082
+ source: "agent" | "cezar";
4083
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4084
+ registeredAt: string;
4085
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4086
+ resolvedAt?: string | undefined;
4087
+ deliveredAt?: string | undefined;
4088
+ cancelledAt?: string | undefined;
4089
+ turnId: string;
4090
+ kind: "pr";
4091
+ deadline: string;
4092
+ generation: string;
4093
+ timeoutSeconds: number;
4094
+ until: "checks" | "merge" | "merge_or_blocked";
4095
+ wakeOnConflict: boolean;
4096
+ result?: {
4097
+ outcome: "blocked" | "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
4098
+ headSha: string;
4099
+ observedHeadSha?: string | undefined;
4100
+ mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
4101
+ mergeStateStatus?: string | undefined;
4102
+ mergedAt?: string | undefined;
4103
+ mergeCommitSha?: string | undefined;
4104
+ mergeBlock?: {
4105
+ reason: "conflict" | "no_pending_merge";
4106
+ isInMergeQueue: boolean;
4107
+ autoMergeEnabled: boolean;
4108
+ event?: {
4109
+ kind: "auto_merge_disabled" | "queue_removal";
4110
+ createdAt: string;
4111
+ reason?: string | undefined;
4112
+ reasonCode?: string | undefined;
4113
+ } | undefined;
4114
+ } | undefined;
4115
+ observedAt: string;
4116
+ checks: {
4117
+ name: string;
4118
+ state: string;
4119
+ link: string;
4120
+ }[];
4121
+ totalChecks: number;
4122
+ truncated: boolean;
4123
+ diagnostic?: string | undefined;
4124
+ } | undefined;
4125
+ } | {
4126
+ id: string;
4127
+ source: "agent" | "cezar";
4128
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4129
+ registeredAt: string;
4130
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4131
+ resolvedAt?: string | undefined;
4132
+ deliveredAt?: string | undefined;
4133
+ cancelledAt?: string | undefined;
4134
+ turnId: string;
4135
+ kind: "timer";
4136
+ deadline: string;
4137
+ seconds: number;
4138
+ note?: string | undefined;
4139
+ } | {
4140
+ id: string;
4141
+ source: "agent" | "cezar";
4142
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4143
+ registeredAt: string;
4144
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4145
+ resolvedAt?: string | undefined;
4146
+ deliveredAt?: string | undefined;
4147
+ cancelledAt?: string | undefined;
4148
+ turnId: string;
4149
+ kind: "human";
4150
+ questions?: {
4151
+ id?: string | undefined;
4152
+ header: string;
4153
+ question: string;
4154
+ options?: {
4155
+ label: string;
4156
+ description?: string | undefined;
4157
+ }[] | undefined;
4158
+ multiSelect?: boolean | undefined;
4159
+ }[] | undefined;
4160
+ context?: string | undefined;
4161
+ askSeq?: number | undefined;
4162
+ } | {
4163
+ id: string;
4164
+ source: "agent" | "cezar";
4165
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4166
+ registeredAt: string;
4167
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4168
+ resolvedAt?: string | undefined;
4169
+ deliveredAt?: string | undefined;
4170
+ cancelledAt?: string | undefined;
4171
+ turnId: string;
4172
+ kind: "worker";
4173
+ deadline?: string | undefined;
4174
+ timeoutSeconds?: number | undefined;
4175
+ mode?: "all" | "any" | "one" | undefined;
4176
+ workerIds?: string[] | undefined;
4177
+ revisions?: {
4178
+ workerId: string;
4179
+ revision: number;
4180
+ }[] | undefined;
4181
+ outcomes?: {
4182
+ workerId: string;
4183
+ status: "cancelled" | "done" | "failed" | "review";
4184
+ observedAt: string;
4185
+ summary?: string | undefined;
4186
+ revision?: number | undefined;
4187
+ }[] | undefined;
4188
+ requestIds?: string[] | undefined;
4189
+ requestOutcomes?: {
4190
+ requestId: string;
4191
+ status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
4192
+ observedAt: string;
4193
+ replyId?: string | undefined;
4194
+ }[] | undefined;
4195
+ result?: {
4196
+ reason: "outcome" | "timeout";
4197
+ } | undefined;
4198
+ wakeInputId?: string | undefined;
4199
+ } | {
4200
+ id: string;
4201
+ source: "agent" | "cezar";
4202
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4203
+ registeredAt: string;
4204
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4205
+ resolvedAt?: string | undefined;
4206
+ deliveredAt?: string | undefined;
4207
+ cancelledAt?: string | undefined;
4208
+ turnId: string;
4209
+ kind: "process";
4210
+ deadline: string;
4211
+ timeoutSeconds: number;
4212
+ pid: number;
4213
+ startToken?: string | undefined;
4214
+ exitFile?: string | undefined;
4215
+ note?: string | undefined;
4216
+ result?: {
4217
+ outcome: "deadline" | "error" | "exit_file" | "exited";
4218
+ observedAt: string;
4219
+ exitCode?: number | undefined;
4220
+ exitFileNote?: "not-an-exit-code" | undefined;
4221
+ diagnostic?: string | undefined;
4222
+ } | undefined;
4223
+ } | {
4224
+ id: string;
4225
+ source: "agent" | "cezar";
4226
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
4227
+ registeredAt: string;
4228
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4229
+ resolvedAt?: string | undefined;
4230
+ deliveredAt?: string | undefined;
4231
+ cancelledAt?: string | undefined;
4232
+ turnId: string;
4233
+ kind: "peer";
4234
+ deadline: string;
4235
+ timeoutSeconds: number;
4236
+ peerIds: string[];
4237
+ result?: {
4238
+ reason: "message";
4239
+ peerRunId: string;
4240
+ messageId: string;
4241
+ } | {
4242
+ reason: "settled";
4243
+ peerRunId: string;
4244
+ } | {
4245
+ reason: "timeout";
4246
+ } | undefined;
4247
+ } | {
4248
+ id: string;
4249
+ registeredAt: string;
4250
+ phase: "cancelled" | "delivered" | "open" | "resolved";
4251
+ resolvedAt?: string | undefined;
4252
+ deliveredAt?: string | undefined;
4253
+ cancelledAt?: string | undefined;
4254
+ turnId: string;
4255
+ kind: "subagent";
4256
+ source: "cezar";
4257
+ via: "native-subagents";
4258
+ deadline: string;
4259
+ children: {
4260
+ id: string;
4261
+ status: "cancelled" | "completed" | "failed" | "running";
4262
+ }[];
4263
+ result?: {
4264
+ reason: "interrupted" | "settled" | "superseded" | "timeout";
4265
+ } | undefined;
4266
+ })[] | undefined;
4267
+ lastWaitsError?: string | undefined;
4268
+ automaticWakes?: number | undefined;
4269
+ waitDeliveryFailures?: number | undefined;
4270
+ previewServers?: {
4271
+ port: number;
4272
+ command: string;
4273
+ cwd?: string | undefined;
4274
+ label: string;
4275
+ path?: string | undefined;
4276
+ registeredAt: string;
4277
+ answeredAtRegistration: boolean;
4278
+ }[] | undefined;
4279
+ taskImages?: string[] | undefined;
4280
+ model?: string | undefined;
4281
+ effort?: string | undefined;
4282
+ modelIdentity?: string | undefined;
4283
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
4284
+ agentProfile?: string | undefined;
4285
+ systemPrompt?: string | undefined;
4286
+ generateFollowups?: boolean | undefined;
4287
+ autonomous?: boolean | undefined;
4288
+ completionAction?: {
4289
+ id: string;
4290
+ phase: "blocked" | "complete" | "pending";
4291
+ message?: string | undefined;
4292
+ } | undefined;
4293
+ archiveBlocker?: {
4294
+ message: string;
4295
+ runId?: string | undefined;
4296
+ pullRequestUrl?: string | undefined;
4297
+ } | undefined;
4298
+ automation?: {
4299
+ automationId: string;
4300
+ automationRevision: number;
4301
+ receiptId: string;
4302
+ event: string;
4303
+ githubUrl: string;
4304
+ } | undefined;
4305
+ automationTrigger?: {
4306
+ automationId: string;
4307
+ automationRevision: number;
4308
+ receiptId: string;
4309
+ trigger: "catch-up" | "manual" | "schedule";
4310
+ occurrenceAt: string;
4311
+ } | undefined;
4312
+ destroyRetry?: {
4313
+ attempts: number;
4314
+ nextAt: string;
4315
+ needsAttention?: true | undefined;
4316
+ } | undefined;
4317
+ notify?: boolean | undefined;
4318
+ webhook?: {
4319
+ lastDeliveredAt?: string | undefined;
4320
+ lastError?: string | undefined;
4321
+ lastErrorWebhookId?: string | undefined;
4322
+ } | undefined;
4323
+ status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
4324
+ hasPendingPermission?: boolean | undefined;
4325
+ autoResumeAt?: string | undefined;
4326
+ autoResumeAttempts?: number | undefined;
4327
+ createdAt: string;
4328
+ startedAt?: string | undefined;
4329
+ finishedAt?: string | undefined;
4330
+ tokensUsed: number;
4331
+ inputTokens?: number | undefined;
4332
+ outputTokens?: number | undefined;
4333
+ costUsd?: number | undefined;
4334
+ pullRequestUrl?: string | undefined;
4335
+ pullRequests?: {
4336
+ number: number;
4337
+ url?: string | undefined;
4338
+ source: "created" | "declared";
4339
+ }[] | undefined;
4340
+ referencedPullRequestUrl?: string | undefined;
4341
+ prNumber?: number | undefined;
4342
+ issueNumber?: number | undefined;
4343
+ referencedIssueNumberSeeded?: boolean | undefined;
4344
+ titleOrigin?: "auto" | "marker" | "user" | undefined;
4345
+ markerRefs?: {
4346
+ pr?: number | undefined;
4347
+ issue?: number | undefined;
4348
+ } | undefined;
4349
+ referencedPrCandidates?: string[] | undefined;
4350
+ referencedIssueUrl?: string | undefined;
4351
+ referencedIssueCandidates?: string[] | undefined;
4352
+ worktree?: false | undefined;
4353
+ worktreePath?: string | undefined;
4354
+ branch?: string | undefined;
4355
+ baseBranch?: string | undefined;
4356
+ worktreeReclaimedAt?: string | undefined;
4357
+ worktreeSetup?: {
4358
+ status: "done" | "failed" | "running";
4359
+ startedAt: string;
4360
+ finishedAt?: string | undefined;
4361
+ durationMs?: number | undefined;
4362
+ error?: string | undefined;
4363
+ } | undefined;
4364
+ groupId?: string | undefined;
4365
+ variant?: string | undefined;
4366
+ clientRequestId?: string | undefined;
4367
+ clientRequestHash?: string | undefined;
4368
+ peakRssBytes?: number | undefined;
4369
+ peakProcCount?: number | undefined;
4370
+ archived: boolean;
4371
+ archivedAt?: string | undefined;
4372
+ autoArchive?: {
4373
+ reason: "pull-requests-merged";
4374
+ archivedAt: string;
4375
+ fingerprint: string;
4376
+ pullRequests: {
4377
+ owner: string;
4378
+ repo: string;
4379
+ number: number;
4380
+ mergedAt: string;
4381
+ }[];
4382
+ } | undefined;
4383
+ manualUnarchivedAt?: string | undefined;
4384
+ pinned?: boolean | undefined;
4385
+ pinnedAt?: string | undefined;
4386
+ seenAt?: string | undefined;
4387
+ currentStepId?: string | undefined;
4388
+ error?: string | undefined;
4389
+ steps: {
4390
+ id: string;
4391
+ name: string;
4392
+ kind: "agent" | "check";
4393
+ status: "cancelled" | "done" | "failed" | "pending" | "review" | "running" | "skipped" | "waiting";
4394
+ iterations: number;
4395
+ retriesUsed?: number | undefined;
4396
+ tokensUsed: number;
4397
+ inputTokens?: number | undefined;
4398
+ outputTokens?: number | undefined;
4399
+ usageInvocationsStarted?: number | undefined;
4400
+ usageInvocationsObserved?: number | undefined;
4401
+ usageTurnsStarted?: number | undefined;
4402
+ usageTurnsRecorded?: number | undefined;
4403
+ usageInvocationEpoch?: number | undefined;
4404
+ startedAt?: string | undefined;
4405
+ finishedAt?: string | undefined;
4406
+ error?: string | undefined;
4407
+ sessionId?: string | undefined;
4408
+ sessionTransport?: "cursor-acp" | "cursor-print" | undefined;
4409
+ backend?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
4410
+ profileId?: string | undefined;
4411
+ costUsd?: number | undefined;
4412
+ synthetic?: "continuation" | undefined;
4413
+ }[];
4414
+ workflowDef?: {
4415
+ name: string;
4416
+ description?: string | undefined;
4417
+ steps: {
4418
+ id: string;
4419
+ name?: string | undefined;
4420
+ prompt?: string | undefined;
4421
+ skill?: string | undefined;
4422
+ model?: string | undefined;
4423
+ effort?: string | undefined;
4424
+ timeoutMs?: number | undefined;
4425
+ runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
4426
+ agentProfile?: string | undefined;
4427
+ allowedTools?: string[] | undefined;
4428
+ bashAllowlist?: string[] | undefined;
4429
+ command?: string | undefined;
4430
+ onFail?: {
4431
+ retry: string;
4432
+ max: number;
4433
+ } | undefined;
4434
+ }[];
4435
+ source: "built-in" | "file";
4436
+ path?: string | undefined;
4437
+ } | undefined;
4438
+ handoffRecords?: {
4439
+ autosave: {
4440
+ at: string;
4441
+ note: string;
4442
+ periodic?: {
4443
+ branch: string | null;
4444
+ count: number;
4445
+ first: string | null;
4446
+ latest: string | null;
4447
+ } | undefined;
4448
+ }[];
4449
+ } | undefined;
4450
+ }) => boolean;
4451
+ readonly refused: 'Worker not found';
4452
+ readonly steps: typeof cancelledStep;
4453
+ readonly event: "run cancelled";
4454
+ };
4455
+ readonly 'cancel-late': {
4456
+ readonly durability: 'debounced';
4457
+ readonly from: readonly ["queued", "running", "waiting", "done", "review", "failed"];
4458
+ readonly to: 'cancelled';
4459
+ readonly steps: typeof cancelledStep;
4460
+ readonly event: "run cancelled";
4461
+ };
4462
+ };
4463
+ export type RunExitId = keyof typeof RUN_EXITS;
4464
+ /** The lifecycle event a write that applies `exit` to a run at `from` writes: the exit's `event`,
4465
+ * or the caller's text for it, when the exit moves the run into its status. A repeated write on a
4466
+ * run already there writes none, so one cancellation reads as one event (B12). */
4467
+ export declare function exitEvent(exit: RunExitId, from: RunStatus, call?: ExitCall): string | undefined;
4468
+ /** The record rule: a Done commits at once on a run with a completion option, because its
4469
+ * completion action and archive must be durable (hearsay-tools/cezarion#2324). */
4470
+ export declare function doneCommits(run: Pick<RunRecord, 'archiveWhenDone' | 'autoMergePr'>): boolean;
4471
+ /**
4472
+ * How `RunStore.move` persists `exit` on `run`, the record before the write (Decision 4). First
4473
+ * match wins: the record rule (an exit to `done` on a run with a completion option commits), then
4474
+ * the exit's own `durability`. A rule only raises a debounced exit to committed. An exit applied
4475
+ * inside another commit (`resume` in `commitOutcome`, `continue-*` in `commitWorkerContinuation`)
4476
+ * commits with that commit, before either rule; the caller's extras never decide.
4477
+ */
4478
+ export declare function exitDurability(exit: RunExitId, run: Pick<RunRecord, 'archiveWhenDone' | 'autoMergePr'>): ExitDurability;
4479
+ /** Tests only: `vitest.setup.ts` calls it, so a violation is recorded for `throwRunExitViolations`
4480
+ * instead of logged. Returns the previous mode, so a test that changes it can put it back. */
4481
+ export declare function strictRunExits(on?: boolean): boolean;
4482
+ /** The violations recorded since the last call. */
4483
+ export declare function takeRunExitViolations(): string[];
4484
+ /** Throws the violations recorded since the last call: the test setup runs it after each test. */
4485
+ export declare function throwRunExitViolations(): void;
4486
+ /** Report run-exit and wait-phase violations without interrupting the write.
4487
+ * Strict mode records them for the test setup; production warns once per violation. */
4488
+ export declare function reportStoreViolation(message: string): void;
4489
+ /** The fields a write that applies `exit` writes: `extras`, the steps it settles and the exit's
4490
+ * status. */
4491
+ export type ExitWrite<E extends RunExitId> = Omit<RunPatch, 'status'> & {
4492
+ steps?: StepState[];
4493
+ status: (typeof RUN_EXITS)[E]['to'];
4494
+ };
4495
+ /**
4496
+ * Apply `exit` to `run`, a record in hand: check its status against the exit's `from` and return
4497
+ * the fields to write: the exit's `fields`, then `extras` over them, then what a settling exit
4498
+ * writes on every run (`settledRun`), then the steps its `steps` changed, then the exit's status. It
4499
+ * neither runs a guard nor a guarded `settle`: a caller of a guarded exit checks its guard itself.
4500
+ * `RunStore.move` writes through it, and the store's load-time and archive writers assign its
4501
+ * result onto the record they change.
4502
+ */
4503
+ export declare function applyExit<E extends RunExitId>(run: ExitRead, exit: E, extras?: RunPatch, call?: ExitCall): ExitWrite<E>;
4504
+ /**
4505
+ * The status `exit` writes onto a run whose status is `from`. The store calls it inside the write
4506
+ * that applies the exit, with the record that write changes. It reports an exit that does not
4507
+ * leave from `from`, then returns the status all the same.
4508
+ */
4509
+ export declare function exitStatus<E extends RunExitId>(exit: E, from: RunStatus): (typeof RUN_EXITS)[E]['to'];
4510
+ export {};