@wjarka/cezarion 0.17.0-pr848.3486 → 0.18.0-dev.5793

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 (1392) hide show
  1. package/bin.js +2 -0
  2. package/cez.js +2 -0
  3. package/cezarion.js +2 -0
  4. package/dist/cez.js +2 -0
  5. package/dist/cezarion.js +2 -0
  6. package/dist/hsq.js +2 -0
  7. package/dist/index.js +1 -781
  8. package/dist/server/app-type.d.ts +1 -6
  9. package/dist/server/app-type.js +1 -2
  10. package/hsq.js +2 -0
  11. package/package.json +20 -59
  12. package/web/dist/assets/activity-motion-0wHCeUs7.css +1 -0
  13. package/web/dist/assets/activity-motion-2nE59DAT.js +2 -0
  14. package/web/dist/assets/activity-route-R9lPc2jy.js +1 -0
  15. package/web/dist/assets/agent-accounts-f1cxwgfz.js +18 -0
  16. package/web/dist/assets/alert-dialog-Dj464rjk.js +1 -0
  17. package/web/dist/assets/arrow-right-Dh_Lx3um.js +1 -0
  18. package/web/dist/assets/button-CHUAMTHK.js +3 -0
  19. package/web/dist/assets/centered-state-DGyy0SuA.js +1 -0
  20. package/web/dist/assets/cez-idle-EVoUsgU3.js +1 -0
  21. package/web/dist/assets/commit-diff-panel-BJyNYmCY.js +1 -0
  22. package/web/dist/assets/control-locations-C9II3kPz.js +1 -0
  23. package/web/dist/assets/design-icons-DmYTv2r1.js +1 -0
  24. package/web/dist/assets/diff-D_9MtICR.js +3 -0
  25. package/web/dist/assets/diff-controls-BR2uqhwG.js +1 -0
  26. package/web/dist/assets/diff-view-xRPxXHXl.js +11 -0
  27. package/web/dist/assets/dropdown-menu-DhrBcVgr.js +1 -0
  28. package/web/dist/assets/es2015-D345RR4o.js +41 -0
  29. package/web/dist/assets/file-preview-D08Kq15E.js +2 -0
  30. package/web/dist/assets/git-toolbar-D9taioU5.js +1 -0
  31. package/web/dist/assets/github-bv_pBGc5.js +1 -0
  32. package/web/dist/assets/github-sidebar-model-B0Ufci5S.js +1 -0
  33. package/web/dist/assets/global-activity-route-QxTPDyx-.js +1 -0
  34. package/web/dist/assets/hourglass-B0lPAJvT.js +1 -0
  35. package/web/dist/assets/{image-preview-C_t9q45f.js → image-preview-Cq1vDiEo.js} +1 -1
  36. package/web/dist/assets/index-B18AqW0Z.css +1 -0
  37. package/web/dist/assets/index-DgU3yYUl.js +14 -0
  38. package/web/dist/assets/index.global-D3Ga_D3Y.js +1 -0
  39. package/web/dist/assets/live-protocol-BVn0UA_g.js +64 -0
  40. package/web/dist/assets/live-refetch-BdnmTJ_8.js +1 -0
  41. package/web/dist/assets/{live-worker-BizfZSoh.ts → live-worker-BWdeGzQX.ts} +2 -1
  42. package/web/dist/assets/loader-circle-CZkGEdoI.js +1 -0
  43. package/web/dist/assets/markdown-D7DUNWcJ.js +6 -0
  44. package/web/dist/assets/mermaid.min-3O9YjB2l.js +1 -0
  45. package/web/dist/assets/message-square-B-MD-8rD.js +1 -0
  46. package/web/dist/assets/{nav-row-styles-AoIhhIwf.js → nav-row-styles-BZUUavOF.js} +1 -1
  47. package/web/dist/assets/popover-DRcRI46x.js +1 -0
  48. package/web/dist/assets/preview-pane-connected-cD-MTiVN.js +3 -0
  49. package/web/dist/assets/project-router-MMOk9VbW.js +1 -0
  50. package/web/dist/assets/project-scope-context-B3M-u8R0.js +4 -0
  51. package/web/dist/assets/queries-DORTKwyN.js +1 -0
  52. package/web/dist/assets/repo-git-E_4Ighvg.js +1 -0
  53. package/web/dist/assets/report-reader-XVNQsXB4.js +1 -0
  54. package/web/dist/assets/report-title-D4Mbu2Er.js +1 -0
  55. package/web/dist/assets/reports-B7QAzibP.css +1 -0
  56. package/web/dist/assets/reports-B_PVTBzP.js +1 -0
  57. package/web/dist/assets/run-header-wm0gSs6X.js +2 -0
  58. package/web/dist/assets/skill-empty-hint-YDmkqgo-.js +1 -0
  59. package/web/dist/assets/skills-D2RLxUIc.js +1 -0
  60. package/web/dist/assets/skills-DFBiAuJG.js +1 -0
  61. package/web/dist/assets/skills-workflows-C21NystW.css +1 -0
  62. package/web/dist/assets/sortable.esm-zp_qkYGV.js +5 -0
  63. package/web/dist/assets/tab-link-BvoGfK8S.js +1 -0
  64. package/web/dist/assets/task-changes-DNtkfFzQ.js +1 -0
  65. package/web/dist/assets/task-commits-CivO-OrN.js +1 -0
  66. package/web/dist/assets/task-files-dczkxV_G.js +1 -0
  67. package/web/dist/assets/task-github-item-DKV4yrcf.js +1 -0
  68. package/web/dist/assets/task-thread-DIaTTGEF.js +9 -0
  69. package/web/dist/assets/textarea-DlVUfdWG.js +1 -0
  70. package/web/dist/assets/thread-state-DIozHuHb.js +4 -0
  71. package/web/dist/assets/toaster-B1MyeHiE.js +1 -0
  72. package/web/dist/assets/use-hand-to-agent-state-D58ayxI4.js +1 -0
  73. package/web/dist/assets/useInfiniteQuery-BbYMWe23.js +1 -0
  74. package/web/dist/assets/useQuery-CqqnAJvu.js +1 -0
  75. package/web/dist/assets/workflows-YMEsGXeB.js +7 -0
  76. package/web/dist/assets/ws-BtSVmivO.js +1 -0
  77. package/web/dist/assets/zoomable-image-5pOUaPEg.js +1 -0
  78. package/web/dist/index.html +31 -15
  79. package/web/dist/live-worker.js +2 -2
  80. package/LICENSE +0 -22
  81. package/README.md +0 -1745
  82. package/dist/agent-config/account-identity.d.ts +0 -28
  83. package/dist/agent-config/account-identity.js +0 -131
  84. package/dist/agent-config/account-identity.js.map +0 -1
  85. package/dist/agent-config/catalog.d.ts +0 -70
  86. package/dist/agent-config/catalog.js +0 -383
  87. package/dist/agent-config/catalog.js.map +0 -1
  88. package/dist/agent-config/files.d.ts +0 -42
  89. package/dist/agent-config/files.js +0 -115
  90. package/dist/agent-config/files.js.map +0 -1
  91. package/dist/agent-config/model-settings/claude.d.ts +0 -2
  92. package/dist/agent-config/model-settings/claude.js +0 -11
  93. package/dist/agent-config/model-settings/claude.js.map +0 -1
  94. package/dist/agent-config/model-settings/codex.d.ts +0 -2
  95. package/dist/agent-config/model-settings/codex.js +0 -16
  96. package/dist/agent-config/model-settings/codex.js.map +0 -1
  97. package/dist/agent-config/model-settings/opencode.d.ts +0 -2
  98. package/dist/agent-config/model-settings/opencode.js +0 -8
  99. package/dist/agent-config/model-settings/opencode.js.map +0 -1
  100. package/dist/agent-config/model-settings/pi.d.ts +0 -2
  101. package/dist/agent-config/model-settings/pi.js +0 -38
  102. package/dist/agent-config/model-settings/pi.js.map +0 -1
  103. package/dist/agent-config/model-settings/shared.d.ts +0 -12
  104. package/dist/agent-config/model-settings/shared.js +0 -100
  105. package/dist/agent-config/model-settings/shared.js.map +0 -1
  106. package/dist/agent-config/model-settings/types.d.ts +0 -9
  107. package/dist/agent-config/model-settings/types.js +0 -2
  108. package/dist/agent-config/model-settings/types.js.map +0 -1
  109. package/dist/agent-config/models.d.ts +0 -9
  110. package/dist/agent-config/models.js +0 -40
  111. package/dist/agent-config/models.js.map +0 -1
  112. package/dist/agent-config/seed.d.ts +0 -15
  113. package/dist/agent-config/seed.js +0 -94
  114. package/dist/agent-config/seed.js.map +0 -1
  115. package/dist/agent-config/service.d.ts +0 -44
  116. package/dist/agent-config/service.js +0 -72
  117. package/dist/agent-config/service.js.map +0 -1
  118. package/dist/agent-config/validate.d.ts +0 -18
  119. package/dist/agent-config/validate.js +0 -82
  120. package/dist/agent-config/validate.js.map +0 -1
  121. package/dist/application-update/bin-recovery.d.ts +0 -5
  122. package/dist/application-update/bin-recovery.js +0 -96
  123. package/dist/application-update/bin-recovery.js.map +0 -1
  124. package/dist/application-update/discovery.d.ts +0 -22
  125. package/dist/application-update/discovery.js +0 -91
  126. package/dist/application-update/discovery.js.map +0 -1
  127. package/dist/application-update/helper.d.ts +0 -57
  128. package/dist/application-update/helper.js +0 -369
  129. package/dist/application-update/helper.js.map +0 -1
  130. package/dist/application-update/launcher.d.ts +0 -12
  131. package/dist/application-update/launcher.js +0 -59
  132. package/dist/application-update/launcher.js.map +0 -1
  133. package/dist/application-update/lock.d.ts +0 -4
  134. package/dist/application-update/lock.js +0 -70
  135. package/dist/application-update/lock.js.map +0 -1
  136. package/dist/application-update/npm-process.d.ts +0 -17
  137. package/dist/application-update/npm-process.js +0 -133
  138. package/dist/application-update/npm-process.js.map +0 -1
  139. package/dist/application-update/service.d.ts +0 -69
  140. package/dist/application-update/service.js +0 -456
  141. package/dist/application-update/service.js.map +0 -1
  142. package/dist/archive-on-merge-setting.d.ts +0 -15
  143. package/dist/archive-on-merge-setting.js +0 -14
  144. package/dist/archive-on-merge-setting.js.map +0 -1
  145. package/dist/artifacts/cli.d.ts +0 -9
  146. package/dist/artifacts/cli.js +0 -59
  147. package/dist/artifacts/cli.js.map +0 -1
  148. package/dist/artifacts/lifecycle.d.ts +0 -4
  149. package/dist/artifacts/lifecycle.js +0 -42
  150. package/dist/artifacts/lifecycle.js.map +0 -1
  151. package/dist/artifacts/resolve.d.ts +0 -18
  152. package/dist/artifacts/resolve.js +0 -103
  153. package/dist/artifacts/resolve.js.map +0 -1
  154. package/dist/artifacts/store.d.ts +0 -8
  155. package/dist/artifacts/store.js +0 -323
  156. package/dist/artifacts/store.js.map +0 -1
  157. package/dist/automations/automation-cli.d.ts +0 -59
  158. package/dist/automations/automation-cli.js +0 -509
  159. package/dist/automations/automation-cli.js.map +0 -1
  160. package/dist/automations/builtin-skill.d.ts +0 -7
  161. package/dist/automations/builtin-skill.js +0 -14
  162. package/dist/automations/builtin-skill.js.map +0 -1
  163. package/dist/automations/coordinator.d.ts +0 -33
  164. package/dist/automations/coordinator.js +0 -86
  165. package/dist/automations/coordinator.js.map +0 -1
  166. package/dist/automations/github-baseline.d.ts +0 -3
  167. package/dist/automations/github-baseline.js +0 -17
  168. package/dist/automations/github-baseline.js.map +0 -1
  169. package/dist/automations/github-poller.d.ts +0 -93
  170. package/dist/automations/github-poller.js +0 -303
  171. package/dist/automations/github-poller.js.map +0 -1
  172. package/dist/automations/prompts.d.ts +0 -12
  173. package/dist/automations/prompts.js +0 -160
  174. package/dist/automations/prompts.js.map +0 -1
  175. package/dist/automations/schedule-runner.d.ts +0 -149
  176. package/dist/automations/schedule-runner.js +0 -513
  177. package/dist/automations/schedule-runner.js.map +0 -1
  178. package/dist/automations/scheduler.d.ts +0 -87
  179. package/dist/automations/scheduler.js +0 -434
  180. package/dist/automations/scheduler.js.map +0 -1
  181. package/dist/automations/service.d.ts +0 -777
  182. package/dist/automations/service.js +0 -444
  183. package/dist/automations/service.js.map +0 -1
  184. package/dist/automations/store.d.ts +0 -160
  185. package/dist/automations/store.js +0 -738
  186. package/dist/automations/store.js.map +0 -1
  187. package/dist/automations/task-template.d.ts +0 -59
  188. package/dist/automations/task-template.js +0 -273
  189. package/dist/automations/task-template.js.map +0 -1
  190. package/dist/automations/tool-adapter.d.ts +0 -6
  191. package/dist/automations/tool-adapter.js +0 -108
  192. package/dist/automations/tool-adapter.js.map +0 -1
  193. package/dist/automations/types.d.ts +0 -1
  194. package/dist/automations/types.js +0 -2
  195. package/dist/automations/types.js.map +0 -1
  196. package/dist/autosave-cleanup.d.ts +0 -26
  197. package/dist/autosave-cleanup.js +0 -87
  198. package/dist/autosave-cleanup.js.map +0 -1
  199. package/dist/autosave-git.d.ts +0 -21
  200. package/dist/autosave-git.js +0 -204
  201. package/dist/autosave-git.js.map +0 -1
  202. package/dist/autosave-group.d.ts +0 -8
  203. package/dist/autosave-group.js +0 -61
  204. package/dist/autosave-group.js.map +0 -1
  205. package/dist/autosave-holders.d.ts +0 -34
  206. package/dist/autosave-holders.js +0 -204
  207. package/dist/autosave-holders.js.map +0 -1
  208. package/dist/autosave-windows.d.ts +0 -25
  209. package/dist/autosave-windows.js +0 -156
  210. package/dist/autosave-windows.js.map +0 -1
  211. package/dist/ci-wait/client.d.ts +0 -28
  212. package/dist/ci-wait/client.js +0 -105
  213. package/dist/ci-wait/client.js.map +0 -1
  214. package/dist/ci-wait/controller.d.ts +0 -780
  215. package/dist/ci-wait/controller.js +0 -334
  216. package/dist/ci-wait/controller.js.map +0 -1
  217. package/dist/ci-wait/errors.d.ts +0 -27
  218. package/dist/ci-wait/errors.js +0 -253
  219. package/dist/ci-wait/errors.js.map +0 -1
  220. package/dist/ci-wait/github.d.ts +0 -87
  221. package/dist/ci-wait/github.js +0 -278
  222. package/dist/ci-wait/github.js.map +0 -1
  223. package/dist/ci-wait/injection.d.ts +0 -3
  224. package/dist/ci-wait/injection.js +0 -26
  225. package/dist/ci-wait/injection.js.map +0 -1
  226. package/dist/ci-wait/mcp.d.ts +0 -3
  227. package/dist/ci-wait/mcp.js +0 -30
  228. package/dist/ci-wait/mcp.js.map +0 -1
  229. package/dist/ci-wait/resources.d.ts +0 -7
  230. package/dist/ci-wait/resources.js +0 -32
  231. package/dist/ci-wait/resources.js.map +0 -1
  232. package/dist/ci-wait/supervisor.d.ts +0 -29
  233. package/dist/ci-wait/supervisor.js +0 -260
  234. package/dist/ci-wait/supervisor.js.map +0 -1
  235. package/dist/ci-wait/tools.d.ts +0 -830
  236. package/dist/ci-wait/tools.js +0 -209
  237. package/dist/ci-wait/tools.js.map +0 -1
  238. package/dist/config.d.ts +0 -68
  239. package/dist/config.js +0 -209
  240. package/dist/config.js.map +0 -1
  241. package/dist/contract/active-provider.d.ts +0 -12
  242. package/dist/contract/agent-config.d.ts +0 -160
  243. package/dist/contract/agent-profiles.d.ts +0 -369
  244. package/dist/contract/application-update.d.ts +0 -32
  245. package/dist/contract/artifacts.d.ts +0 -83
  246. package/dist/contract/ask-schema.d.ts +0 -50
  247. package/dist/contract/ask.d.ts +0 -9
  248. package/dist/contract/attachments.d.ts +0 -35
  249. package/dist/contract/attention.d.ts +0 -91
  250. package/dist/contract/automation-requests.d.ts +0 -308
  251. package/dist/contract/automation-schedule.d.ts +0 -89
  252. package/dist/contract/automation-storage.d.ts +0 -512
  253. package/dist/contract/automations.d.ts +0 -1542
  254. package/dist/contract/ci-wait.d.ts +0 -222
  255. package/dist/contract/config-requests.d.ts +0 -36
  256. package/dist/contract/conversations.d.ts +0 -401
  257. package/dist/contract/defined.d.ts +0 -8
  258. package/dist/contract/delegation.d.ts +0 -2165
  259. package/dist/contract/discovery.d.ts +0 -228
  260. package/dist/contract/effort.d.ts +0 -18
  261. package/dist/contract/events.d.ts +0 -303
  262. package/dist/contract/github-requests.d.ts +0 -26
  263. package/dist/contract/github.d.ts +0 -732
  264. package/dist/contract/handoff.d.ts +0 -43
  265. package/dist/contract/health.d.ts +0 -124
  266. package/dist/contract/image-path.d.ts +0 -6
  267. package/dist/contract/index.d.ts +0 -59
  268. package/dist/contract/index.js +0 -6035
  269. package/dist/contract/live-coordination.d.ts +0 -158
  270. package/dist/contract/live-limits.d.ts +0 -8
  271. package/dist/contract/live.d.ts +0 -123
  272. package/dist/contract/pending-ask.d.ts +0 -58
  273. package/dist/contract/permissions.d.ts +0 -54
  274. package/dist/contract/preview.d.ts +0 -560
  275. package/dist/contract/project-limits.d.ts +0 -33
  276. package/dist/contract/projects.d.ts +0 -716
  277. package/dist/contract/provider-requests.d.ts +0 -77
  278. package/dist/contract/query-requests.d.ts +0 -52
  279. package/dist/contract/repo-requests.d.ts +0 -12
  280. package/dist/contract/repo.d.ts +0 -515
  281. package/dist/contract/run-labels.d.ts +0 -8
  282. package/dist/contract/run-limits.d.ts +0 -8
  283. package/dist/contract/run-predicates.d.ts +0 -32
  284. package/dist/contract/run-requests.d.ts +0 -33
  285. package/dist/contract/run-search.d.ts +0 -193
  286. package/dist/contract/runs.d.ts +0 -5711
  287. package/dist/contract/scheduled-tasks.d.ts +0 -187
  288. package/dist/contract/skills.d.ts +0 -56
  289. package/dist/contract/team-skill-ref.d.ts +0 -10
  290. package/dist/contract/tool-display.d.ts +0 -25
  291. package/dist/contract/ui-state-requests.d.ts +0 -60
  292. package/dist/contract/version.d.ts +0 -3
  293. package/dist/contract/voice.d.ts +0 -213
  294. package/dist/contract/waits.d.ts +0 -1367
  295. package/dist/contract/workflow-file.d.ts +0 -37
  296. package/dist/contract/workflow-requests.d.ts +0 -7
  297. package/dist/contract/workflows.d.ts +0 -250
  298. package/dist/contract/workspace.d.ts +0 -631
  299. package/dist/contract/zoned-time.d.ts +0 -26
  300. package/dist/core/agent-env.d.ts +0 -30
  301. package/dist/core/agent-env.js +0 -400
  302. package/dist/core/agent-env.js.map +0 -1
  303. package/dist/core/agent-model-policy.d.ts +0 -10
  304. package/dist/core/agent-model-policy.js +0 -36
  305. package/dist/core/agent-model-policy.js.map +0 -1
  306. package/dist/core/agent-profiles.d.ts +0 -50
  307. package/dist/core/agent-profiles.js +0 -105
  308. package/dist/core/agent-profiles.js.map +0 -1
  309. package/dist/core/agent-runner.d.ts +0 -394
  310. package/dist/core/agent-runner.js +0 -96
  311. package/dist/core/agent-runner.js.map +0 -1
  312. package/dist/core/ask.d.ts +0 -79
  313. package/dist/core/ask.js +0 -232
  314. package/dist/core/ask.js.map +0 -1
  315. package/dist/core/backend-detect.d.ts +0 -17
  316. package/dist/core/backend-detect.js +0 -209
  317. package/dist/core/backend-detect.js.map +0 -1
  318. package/dist/core/claude-cli-runner.d.ts +0 -72
  319. package/dist/core/claude-cli-runner.js +0 -910
  320. package/dist/core/claude-cli-runner.js.map +0 -1
  321. package/dist/core/claude-model-catalog.d.ts +0 -16
  322. package/dist/core/claude-model-catalog.js +0 -198
  323. package/dist/core/claude-model-catalog.js.map +0 -1
  324. package/dist/core/claude-stream.d.ts +0 -31
  325. package/dist/core/claude-stream.js +0 -68
  326. package/dist/core/claude-stream.js.map +0 -1
  327. package/dist/core/claude-ui-mapper.d.ts +0 -80
  328. package/dist/core/claude-ui-mapper.js +0 -696
  329. package/dist/core/claude-ui-mapper.js.map +0 -1
  330. package/dist/core/codex-app-server-runner.d.ts +0 -61
  331. package/dist/core/codex-app-server-runner.js +0 -1269
  332. package/dist/core/codex-app-server-runner.js.map +0 -1
  333. package/dist/core/codex-app-server-transport.d.ts +0 -52
  334. package/dist/core/codex-app-server-transport.js +0 -199
  335. package/dist/core/codex-app-server-transport.js.map +0 -1
  336. package/dist/core/codex-approvals.d.ts +0 -12
  337. package/dist/core/codex-approvals.js +0 -161
  338. package/dist/core/codex-approvals.js.map +0 -1
  339. package/dist/core/codex-model-catalog.d.ts +0 -10
  340. package/dist/core/codex-model-catalog.js +0 -110
  341. package/dist/core/codex-model-catalog.js.map +0 -1
  342. package/dist/core/codex-native-frames.d.ts +0 -10
  343. package/dist/core/codex-native-frames.js +0 -47
  344. package/dist/core/codex-native-frames.js.map +0 -1
  345. package/dist/core/codex-permissions.d.ts +0 -6
  346. package/dist/core/codex-permissions.js +0 -27
  347. package/dist/core/codex-permissions.js.map +0 -1
  348. package/dist/core/codex-stream-error.d.ts +0 -2
  349. package/dist/core/codex-stream-error.js +0 -12
  350. package/dist/core/codex-stream-error.js.map +0 -1
  351. package/dist/core/codex-turn-outcome.d.ts +0 -8
  352. package/dist/core/codex-turn-outcome.js +0 -30
  353. package/dist/core/codex-turn-outcome.js.map +0 -1
  354. package/dist/core/codex-ui-mapper.d.ts +0 -112
  355. package/dist/core/codex-ui-mapper.js +0 -808
  356. package/dist/core/codex-ui-mapper.js.map +0 -1
  357. package/dist/core/cursor-acp-runner.d.ts +0 -34
  358. package/dist/core/cursor-acp-runner.js +0 -777
  359. package/dist/core/cursor-acp-runner.js.map +0 -1
  360. package/dist/core/cursor-cli-flags.d.ts +0 -19
  361. package/dist/core/cursor-cli-flags.js +0 -47
  362. package/dist/core/cursor-cli-flags.js.map +0 -1
  363. package/dist/core/cursor-config-options.d.ts +0 -18
  364. package/dist/core/cursor-config-options.js +0 -31
  365. package/dist/core/cursor-config-options.js.map +0 -1
  366. package/dist/core/cursor-model-catalog.d.ts +0 -45
  367. package/dist/core/cursor-model-catalog.js +0 -300
  368. package/dist/core/cursor-model-catalog.js.map +0 -1
  369. package/dist/core/cursor-print-capabilities.d.ts +0 -16
  370. package/dist/core/cursor-print-capabilities.js +0 -141
  371. package/dist/core/cursor-print-capabilities.js.map +0 -1
  372. package/dist/core/cursor-print-process.d.ts +0 -31
  373. package/dist/core/cursor-print-process.js +0 -117
  374. package/dist/core/cursor-print-process.js.map +0 -1
  375. package/dist/core/cursor-print-runner.d.ts +0 -31
  376. package/dist/core/cursor-print-runner.js +0 -555
  377. package/dist/core/cursor-print-runner.js.map +0 -1
  378. package/dist/core/cursor-print-tool-catalog.d.ts +0 -10
  379. package/dist/core/cursor-print-tool-catalog.js +0 -91
  380. package/dist/core/cursor-print-tool-catalog.js.map +0 -1
  381. package/dist/core/cursor-print-ui-mapper.d.ts +0 -47
  382. package/dist/core/cursor-print-ui-mapper.js +0 -553
  383. package/dist/core/cursor-print-ui-mapper.js.map +0 -1
  384. package/dist/core/cursor-provider-error.d.ts +0 -33
  385. package/dist/core/cursor-provider-error.js +0 -68
  386. package/dist/core/cursor-provider-error.js.map +0 -1
  387. package/dist/core/cursor-runner.d.ts +0 -24
  388. package/dist/core/cursor-runner.js +0 -149
  389. package/dist/core/cursor-runner.js.map +0 -1
  390. package/dist/core/cursor-ui-mapper.d.ts +0 -29
  391. package/dist/core/cursor-ui-mapper.js +0 -275
  392. package/dist/core/cursor-ui-mapper.js.map +0 -1
  393. package/dist/core/defined.d.ts +0 -1
  394. package/dist/core/defined.js +0 -2
  395. package/dist/core/defined.js.map +0 -1
  396. package/dist/core/hook-items.d.ts +0 -14
  397. package/dist/core/hook-items.js +0 -13
  398. package/dist/core/hook-items.js.map +0 -1
  399. package/dist/core/host-model-catalog.d.ts +0 -7
  400. package/dist/core/host-model-catalog.js +0 -21
  401. package/dist/core/host-model-catalog.js.map +0 -1
  402. package/dist/core/input-submissions.d.ts +0 -14
  403. package/dist/core/input-submissions.js +0 -26
  404. package/dist/core/input-submissions.js.map +0 -1
  405. package/dist/core/managed-session.d.ts +0 -6
  406. package/dist/core/managed-session.js +0 -116
  407. package/dist/core/managed-session.js.map +0 -1
  408. package/dist/core/model-identity.d.ts +0 -108
  409. package/dist/core/model-identity.js +0 -137
  410. package/dist/core/model-identity.js.map +0 -1
  411. package/dist/core/model-presets.d.ts +0 -10
  412. package/dist/core/model-presets.js +0 -77
  413. package/dist/core/model-presets.js.map +0 -1
  414. package/dist/core/ndjson.d.ts +0 -6
  415. package/dist/core/ndjson.js +0 -23
  416. package/dist/core/ndjson.js.map +0 -1
  417. package/dist/core/omp-model-catalog.d.ts +0 -43
  418. package/dist/core/omp-model-catalog.js +0 -205
  419. package/dist/core/omp-model-catalog.js.map +0 -1
  420. package/dist/core/omp-runner.d.ts +0 -72
  421. package/dist/core/omp-runner.js +0 -832
  422. package/dist/core/omp-runner.js.map +0 -1
  423. package/dist/core/omp-ui-mapper.d.ts +0 -106
  424. package/dist/core/omp-ui-mapper.js +0 -856
  425. package/dist/core/omp-ui-mapper.js.map +0 -1
  426. package/dist/core/opencode-model-catalog.d.ts +0 -32
  427. package/dist/core/opencode-model-catalog.js +0 -215
  428. package/dist/core/opencode-model-catalog.js.map +0 -1
  429. package/dist/core/opencode-permissions.d.ts +0 -52
  430. package/dist/core/opencode-permissions.js +0 -101
  431. package/dist/core/opencode-permissions.js.map +0 -1
  432. package/dist/core/opencode-server-runner.d.ts +0 -61
  433. package/dist/core/opencode-server-runner.js +0 -1692
  434. package/dist/core/opencode-server-runner.js.map +0 -1
  435. package/dist/core/opencode-session-error.d.ts +0 -19
  436. package/dist/core/opencode-session-error.js +0 -42
  437. package/dist/core/opencode-session-error.js.map +0 -1
  438. package/dist/core/opencode-ui-mapper.d.ts +0 -137
  439. package/dist/core/opencode-ui-mapper.js +0 -768
  440. package/dist/core/opencode-ui-mapper.js.map +0 -1
  441. package/dist/core/pi-model-catalog.d.ts +0 -38
  442. package/dist/core/pi-model-catalog.js +0 -249
  443. package/dist/core/pi-model-catalog.js.map +0 -1
  444. package/dist/core/pi-rpc-turn.d.ts +0 -184
  445. package/dist/core/pi-rpc-turn.js +0 -380
  446. package/dist/core/pi-rpc-turn.js.map +0 -1
  447. package/dist/core/pi-rpc-wire.d.ts +0 -31
  448. package/dist/core/pi-rpc-wire.js +0 -88
  449. package/dist/core/pi-rpc-wire.js.map +0 -1
  450. package/dist/core/pi-runner.d.ts +0 -43
  451. package/dist/core/pi-runner.js +0 -592
  452. package/dist/core/pi-runner.js.map +0 -1
  453. package/dist/core/pi-ui-mapper.d.ts +0 -52
  454. package/dist/core/pi-ui-mapper.js +0 -373
  455. package/dist/core/pi-ui-mapper.js.map +0 -1
  456. package/dist/core/process-usage.d.ts +0 -74
  457. package/dist/core/process-usage.js +0 -218
  458. package/dist/core/process-usage.js.map +0 -1
  459. package/dist/core/provider-auth.d.ts +0 -168
  460. package/dist/core/provider-auth.js +0 -660
  461. package/dist/core/provider-auth.js.map +0 -1
  462. package/dist/core/provider-availability.d.ts +0 -3
  463. package/dist/core/provider-availability.js +0 -14
  464. package/dist/core/provider-availability.js.map +0 -1
  465. package/dist/core/runner-factory.d.ts +0 -11
  466. package/dist/core/runner-factory.js +0 -31
  467. package/dist/core/runner-factory.js.map +0 -1
  468. package/dist/core/runner-model-catalog.d.ts +0 -34
  469. package/dist/core/runner-model-catalog.js +0 -109
  470. package/dist/core/runner-model-catalog.js.map +0 -1
  471. package/dist/core/runner-runtime.d.ts +0 -40
  472. package/dist/core/runner-runtime.js +0 -88
  473. package/dist/core/runner-runtime.js.map +0 -1
  474. package/dist/core/runner-stderr.d.ts +0 -2
  475. package/dist/core/runner-stderr.js +0 -20
  476. package/dist/core/runner-stderr.js.map +0 -1
  477. package/dist/core/runner-tool-grants.d.ts +0 -21
  478. package/dist/core/runner-tool-grants.js +0 -64
  479. package/dist/core/runner-tool-grants.js.map +0 -1
  480. package/dist/core/secret-redaction.d.ts +0 -20
  481. package/dist/core/secret-redaction.js +0 -98
  482. package/dist/core/secret-redaction.js.map +0 -1
  483. package/dist/core/session-process.d.ts +0 -42
  484. package/dist/core/session-process.js +0 -360
  485. package/dist/core/session-process.js.map +0 -1
  486. package/dist/core/shell-env.d.ts +0 -17
  487. package/dist/core/shell-env.js +0 -51
  488. package/dist/core/shell-env.js.map +0 -1
  489. package/dist/core/ui-events.d.ts +0 -348
  490. package/dist/core/ui-events.js +0 -2
  491. package/dist/core/ui-events.js.map +0 -1
  492. package/dist/core/usage-limit.d.ts +0 -42
  493. package/dist/core/usage-limit.js +0 -152
  494. package/dist/core/usage-limit.js.map +0 -1
  495. package/dist/core/usage.d.ts +0 -11
  496. package/dist/core/usage.js +0 -15
  497. package/dist/core/usage.js.map +0 -1
  498. package/dist/core/v1-text-coalescer.d.ts +0 -36
  499. package/dist/core/v1-text-coalescer.js +0 -72
  500. package/dist/core/v1-text-coalescer.js.map +0 -1
  501. package/dist/data-gitignore.d.ts +0 -6
  502. package/dist/data-gitignore.js +0 -59
  503. package/dist/data-gitignore.js.map +0 -1
  504. package/dist/delegation/capacity.d.ts +0 -15
  505. package/dist/delegation/capacity.js +0 -30
  506. package/dist/delegation/capacity.js.map +0 -1
  507. package/dist/delegation/cli.d.ts +0 -5
  508. package/dist/delegation/cli.js +0 -559
  509. package/dist/delegation/cli.js.map +0 -1
  510. package/dist/delegation/context.d.ts +0 -40
  511. package/dist/delegation/context.js +0 -383
  512. package/dist/delegation/context.js.map +0 -1
  513. package/dist/delegation/conversation-send.d.ts +0 -63
  514. package/dist/delegation/conversation-send.js +0 -60
  515. package/dist/delegation/conversation-send.js.map +0 -1
  516. package/dist/delegation/conversations.d.ts +0 -1670
  517. package/dist/delegation/conversations.js +0 -277
  518. package/dist/delegation/conversations.js.map +0 -1
  519. package/dist/delegation/credentials.d.ts +0 -21
  520. package/dist/delegation/credentials.js +0 -66
  521. package/dist/delegation/credentials.js.map +0 -1
  522. package/dist/delegation/destroy-observation.d.ts +0 -42
  523. package/dist/delegation/destroy-observation.js +0 -115
  524. package/dist/delegation/destroy-observation.js.map +0 -1
  525. package/dist/delegation/effort.d.ts +0 -1
  526. package/dist/delegation/effort.js +0 -11
  527. package/dist/delegation/effort.js.map +0 -1
  528. package/dist/delegation/execution-identity.d.ts +0 -254
  529. package/dist/delegation/execution-identity.js +0 -250
  530. package/dist/delegation/execution-identity.js.map +0 -1
  531. package/dist/delegation/execution-settings.d.ts +0 -10
  532. package/dist/delegation/execution-settings.js +0 -65
  533. package/dist/delegation/execution-settings.js.map +0 -1
  534. package/dist/delegation/idle-test-app.d.ts +0 -4
  535. package/dist/delegation/idle-test-app.js +0 -185
  536. package/dist/delegation/idle-test-app.js.map +0 -1
  537. package/dist/delegation/input.d.ts +0 -12
  538. package/dist/delegation/input.js +0 -50
  539. package/dist/delegation/input.js.map +0 -1
  540. package/dist/delegation/park-notice.d.ts +0 -45
  541. package/dist/delegation/park-notice.js +0 -79
  542. package/dist/delegation/park-notice.js.map +0 -1
  543. package/dist/delegation/policy.d.ts +0 -22
  544. package/dist/delegation/policy.js +0 -95
  545. package/dist/delegation/policy.js.map +0 -1
  546. package/dist/delegation/process-liveness.d.ts +0 -98
  547. package/dist/delegation/process-liveness.js +0 -213
  548. package/dist/delegation/process-liveness.js.map +0 -1
  549. package/dist/delegation/provision.d.ts +0 -35
  550. package/dist/delegation/provision.js +0 -178
  551. package/dist/delegation/provision.js.map +0 -1
  552. package/dist/delegation/questions.d.ts +0 -24
  553. package/dist/delegation/questions.js +0 -55
  554. package/dist/delegation/questions.js.map +0 -1
  555. package/dist/delegation/readiness.d.ts +0 -13
  556. package/dist/delegation/readiness.js +0 -19
  557. package/dist/delegation/readiness.js.map +0 -1
  558. package/dist/delegation/results.d.ts +0 -13
  559. package/dist/delegation/results.js +0 -154
  560. package/dist/delegation/results.js.map +0 -1
  561. package/dist/delegation/retry-backoff.d.ts +0 -31
  562. package/dist/delegation/retry-backoff.js +0 -26
  563. package/dist/delegation/retry-backoff.js.map +0 -1
  564. package/dist/delegation/routes.d.ts +0 -1014
  565. package/dist/delegation/routes.js +0 -77
  566. package/dist/delegation/routes.js.map +0 -1
  567. package/dist/delegation/scratch-cleanup.d.ts +0 -28
  568. package/dist/delegation/scratch-cleanup.js +0 -145
  569. package/dist/delegation/scratch-cleanup.js.map +0 -1
  570. package/dist/delegation/service.d.ts +0 -284
  571. package/dist/delegation/service.js +0 -1046
  572. package/dist/delegation/service.js.map +0 -1
  573. package/dist/delegation/task-discovery.d.ts +0 -6
  574. package/dist/delegation/task-discovery.js +0 -23
  575. package/dist/delegation/task-discovery.js.map +0 -1
  576. package/dist/delegation/transport.d.ts +0 -992
  577. package/dist/delegation/transport.js +0 -22
  578. package/dist/delegation/transport.js.map +0 -1
  579. package/dist/delegation/wait.d.ts +0 -14
  580. package/dist/delegation/wait.js +0 -72
  581. package/dist/delegation/wait.js.map +0 -1
  582. package/dist/delegation/windows-test-app.d.ts +0 -5
  583. package/dist/delegation/windows-test-app.js +0 -63
  584. package/dist/delegation/windows-test-app.js.map +0 -1
  585. package/dist/delegation/windows-workspace-identity.d.ts +0 -3
  586. package/dist/delegation/windows-workspace-identity.js +0 -22
  587. package/dist/delegation/windows-workspace-identity.js.map +0 -1
  588. package/dist/delegation/workspace.d.ts +0 -33
  589. package/dist/delegation/workspace.js +0 -560
  590. package/dist/delegation/workspace.js.map +0 -1
  591. package/dist/detached-process.d.ts +0 -125
  592. package/dist/detached-process.js +0 -448
  593. package/dist/detached-process.js.map +0 -1
  594. package/dist/discovery/catalog.d.ts +0 -15
  595. package/dist/discovery/catalog.js +0 -31
  596. package/dist/discovery/catalog.js.map +0 -1
  597. package/dist/discovery/cli.d.ts +0 -8
  598. package/dist/discovery/cli.js +0 -106
  599. package/dist/discovery/cli.js.map +0 -1
  600. package/dist/git-diff-base.d.ts +0 -41
  601. package/dist/git-diff-base.js +0 -116
  602. package/dist/git-diff-base.js.map +0 -1
  603. package/dist/git-index-copy.d.ts +0 -4
  604. package/dist/git-index-copy.js +0 -10
  605. package/dist/git-index-copy.js.map +0 -1
  606. package/dist/git-refs.d.ts +0 -11
  607. package/dist/git-refs.js +0 -14
  608. package/dist/git-refs.js.map +0 -1
  609. package/dist/git-worktree-lock-helper.d.ts +0 -7
  610. package/dist/git-worktree-lock-helper.js +0 -158
  611. package/dist/git-worktree-lock-helper.js.map +0 -1
  612. package/dist/git-worktree-lock.d.ts +0 -17
  613. package/dist/git-worktree-lock.js +0 -90
  614. package/dist/git-worktree-lock.js.map +0 -1
  615. package/dist/git-worktree-release.d.ts +0 -20
  616. package/dist/git-worktree-release.js +0 -27
  617. package/dist/git-worktree-release.js.map +0 -1
  618. package/dist/git-worktree.d.ts +0 -154
  619. package/dist/git-worktree.js +0 -858
  620. package/dist/git-worktree.js.map +0 -1
  621. package/dist/handoff.d.ts +0 -72
  622. package/dist/handoff.js +0 -209
  623. package/dist/handoff.js.map +0 -1
  624. package/dist/index.d.ts +0 -2
  625. package/dist/index.js.map +0 -1
  626. package/dist/install-as-command.d.ts +0 -40
  627. package/dist/install-as-command.js +0 -52
  628. package/dist/install-as-command.js.map +0 -1
  629. package/dist/merge-observations.d.ts +0 -13
  630. package/dist/merge-observations.js +0 -55
  631. package/dist/merge-observations.js.map +0 -1
  632. package/dist/open-url.d.ts +0 -2
  633. package/dist/open-url.js +0 -10
  634. package/dist/open-url.js.map +0 -1
  635. package/dist/pack-check.d.ts +0 -17
  636. package/dist/pack-check.js +0 -27
  637. package/dist/pack-check.js.map +0 -1
  638. package/dist/paths.d.ts +0 -138
  639. package/dist/paths.js +0 -220
  640. package/dist/paths.js.map +0 -1
  641. package/dist/planner.d.ts +0 -28
  642. package/dist/planner.js +0 -271
  643. package/dist/planner.js.map +0 -1
  644. package/dist/preview/agent-address.d.ts +0 -34
  645. package/dist/preview/agent-address.js +0 -51
  646. package/dist/preview/agent-address.js.map +0 -1
  647. package/dist/preview/agent-marker.d.ts +0 -17
  648. package/dist/preview/agent-marker.js +0 -71
  649. package/dist/preview/agent-marker.js.map +0 -1
  650. package/dist/preview/browser-launch.d.ts +0 -27
  651. package/dist/preview/browser-launch.js +0 -53
  652. package/dist/preview/browser-launch.js.map +0 -1
  653. package/dist/preview/cdp-proxy.d.ts +0 -54
  654. package/dist/preview/cdp-proxy.js +0 -151
  655. package/dist/preview/cdp-proxy.js.map +0 -1
  656. package/dist/preview/cdp.d.ts +0 -49
  657. package/dist/preview/cdp.js +0 -167
  658. package/dist/preview/cdp.js.map +0 -1
  659. package/dist/preview/chromium.d.ts +0 -88
  660. package/dist/preview/chromium.js +0 -482
  661. package/dist/preview/chromium.js.map +0 -1
  662. package/dist/preview/dev-server.d.ts +0 -68
  663. package/dist/preview/dev-server.js +0 -317
  664. package/dist/preview/dev-server.js.map +0 -1
  665. package/dist/preview/host.d.ts +0 -206
  666. package/dist/preview/host.js +0 -929
  667. package/dist/preview/host.js.map +0 -1
  668. package/dist/preview/registration.d.ts +0 -68
  669. package/dist/preview/registration.js +0 -111
  670. package/dist/preview/registration.js.map +0 -1
  671. package/dist/preview/run-tools.d.ts +0 -9
  672. package/dist/preview/run-tools.js +0 -72
  673. package/dist/preview/run-tools.js.map +0 -1
  674. package/dist/preview/session.d.ts +0 -87
  675. package/dist/preview/session.js +0 -378
  676. package/dist/preview/session.js.map +0 -1
  677. package/dist/preview/url.d.ts +0 -6
  678. package/dist/preview/url.js +0 -17
  679. package/dist/preview/url.js.map +0 -1
  680. package/dist/process-wait/exit-file.d.ts +0 -29
  681. package/dist/process-wait/exit-file.js +0 -67
  682. package/dist/process-wait/exit-file.js.map +0 -1
  683. package/dist/process-wait/supervisor.d.ts +0 -30
  684. package/dist/process-wait/supervisor.js +0 -71
  685. package/dist/process-wait/supervisor.js.map +0 -1
  686. package/dist/release/manifests.d.ts +0 -103
  687. package/dist/release/manifests.js +0 -90
  688. package/dist/release/manifests.js.map +0 -1
  689. package/dist/release/snapshot.d.ts +0 -67
  690. package/dist/release/snapshot.js +0 -97
  691. package/dist/release/snapshot.js.map +0 -1
  692. package/dist/release/stable.d.ts +0 -38
  693. package/dist/release/stable.js +0 -55
  694. package/dist/release/stable.js.map +0 -1
  695. package/dist/runs/agent-tmpdir-removal.d.ts +0 -15
  696. package/dist/runs/agent-tmpdir-removal.js +0 -60
  697. package/dist/runs/agent-tmpdir-removal.js.map +0 -1
  698. package/dist/runs/agent-tmpdir.d.ts +0 -119
  699. package/dist/runs/agent-tmpdir.js +0 -829
  700. package/dist/runs/agent-tmpdir.js.map +0 -1
  701. package/dist/runs/arm-repo-handle.d.ts +0 -9
  702. package/dist/runs/arm-repo-handle.js +0 -45
  703. package/dist/runs/arm-repo-handle.js.map +0 -1
  704. package/dist/runs/auto-name.d.ts +0 -75
  705. package/dist/runs/auto-name.js +0 -179
  706. package/dist/runs/auto-name.js.map +0 -1
  707. package/dist/runs/client-request.d.ts +0 -11
  708. package/dist/runs/client-request.js +0 -26
  709. package/dist/runs/client-request.js.map +0 -1
  710. package/dist/runs/conversation-identity.d.ts +0 -19
  711. package/dist/runs/conversation-identity.js +0 -31
  712. package/dist/runs/conversation-identity.js.map +0 -1
  713. package/dist/runs/delegation-state.d.ts +0 -409
  714. package/dist/runs/delegation-state.js +0 -22
  715. package/dist/runs/delegation-state.js.map +0 -1
  716. package/dist/runs/event-history-agent-context.d.ts +0 -14
  717. package/dist/runs/event-history-agent-context.js +0 -105
  718. package/dist/runs/event-history-agent-context.js.map +0 -1
  719. package/dist/runs/event-history-context.d.ts +0 -15
  720. package/dist/runs/event-history-context.js +0 -109
  721. package/dist/runs/event-history-context.js.map +0 -1
  722. package/dist/runs/event-history.d.ts +0 -53
  723. package/dist/runs/event-history.js +0 -535
  724. package/dist/runs/event-history.js.map +0 -1
  725. package/dist/runs/history-compressor.d.ts +0 -29
  726. package/dist/runs/history-compressor.js +0 -116
  727. package/dist/runs/history-compressor.js.map +0 -1
  728. package/dist/runs/history-file.d.ts +0 -36
  729. package/dist/runs/history-file.js +0 -463
  730. package/dist/runs/history-file.js.map +0 -1
  731. package/dist/runs/history-stream.d.ts +0 -2
  732. package/dist/runs/history-stream.js +0 -62
  733. package/dist/runs/history-stream.js.map +0 -1
  734. package/dist/runs/legacy-index.d.ts +0 -49
  735. package/dist/runs/legacy-index.js +0 -155
  736. package/dist/runs/legacy-index.js.map +0 -1
  737. package/dist/runs/live-item-snapshots.d.ts +0 -13
  738. package/dist/runs/live-item-snapshots.js +0 -79
  739. package/dist/runs/live-item-snapshots.js.map +0 -1
  740. package/dist/runs/loaded-run-healing.d.ts +0 -3
  741. package/dist/runs/loaded-run-healing.js +0 -17
  742. package/dist/runs/loaded-run-healing.js.map +0 -1
  743. package/dist/runs/outcome-commit.d.ts +0 -98
  744. package/dist/runs/outcome-commit.js +0 -132
  745. package/dist/runs/outcome-commit.js.map +0 -1
  746. package/dist/runs/pull-requests.d.ts +0 -14
  747. package/dist/runs/pull-requests.js +0 -96
  748. package/dist/runs/pull-requests.js.map +0 -1
  749. package/dist/runs/raw-record.d.ts +0 -40
  750. package/dist/runs/raw-record.js +0 -133
  751. package/dist/runs/raw-record.js.map +0 -1
  752. package/dist/runs/retention.d.ts +0 -91
  753. package/dist/runs/retention.js +0 -182
  754. package/dist/runs/retention.js.map +0 -1
  755. package/dist/runs/review-gate.d.ts +0 -18
  756. package/dist/runs/review-gate.js +0 -21
  757. package/dist/runs/review-gate.js.map +0 -1
  758. package/dist/runs/run-claims.d.ts +0 -16
  759. package/dist/runs/run-claims.js +0 -24
  760. package/dist/runs/run-claims.js.map +0 -1
  761. package/dist/runs/run-database-peer-page.d.ts +0 -12
  762. package/dist/runs/run-database-peer-page.js +0 -25
  763. package/dist/runs/run-database-peer-page.js.map +0 -1
  764. package/dist/runs/run-database.d.ts +0 -383
  765. package/dist/runs/run-database.js +0 -1004
  766. package/dist/runs/run-database.js.map +0 -1
  767. package/dist/runs/run-index.d.ts +0 -26
  768. package/dist/runs/run-index.js +0 -212
  769. package/dist/runs/run-index.js.map +0 -1
  770. package/dist/runs/run-row.d.ts +0 -15
  771. package/dist/runs/run-row.js +0 -59
  772. package/dist/runs/run-row.js.map +0 -1
  773. package/dist/runs/run-summary-page.d.ts +0 -36
  774. package/dist/runs/run-summary-page.js +0 -46
  775. package/dist/runs/run-summary-page.js.map +0 -1
  776. package/dist/runs/run-title.d.ts +0 -8
  777. package/dist/runs/run-title.js +0 -28
  778. package/dist/runs/run-title.js.map +0 -1
  779. package/dist/runs/store-open-error.d.ts +0 -24
  780. package/dist/runs/store-open-error.js +0 -61
  781. package/dist/runs/store-open-error.js.map +0 -1
  782. package/dist/runs/store.d.ts +0 -3263
  783. package/dist/runs/store.js +0 -4647
  784. package/dist/runs/store.js.map +0 -1
  785. package/dist/runs/task-markers.d.ts +0 -29
  786. package/dist/runs/task-markers.js +0 -78
  787. package/dist/runs/task-markers.js.map +0 -1
  788. package/dist/runs/task-refs.d.ts +0 -39
  789. package/dist/runs/task-refs.js +0 -107
  790. package/dist/runs/task-refs.js.map +0 -1
  791. package/dist/runs/transcript-facts-fold.d.ts +0 -64
  792. package/dist/runs/transcript-facts-fold.js +0 -109
  793. package/dist/runs/transcript-facts-fold.js.map +0 -1
  794. package/dist/runs/transcript-facts-load.d.ts +0 -11
  795. package/dist/runs/transcript-facts-load.js +0 -66
  796. package/dist/runs/transcript-facts-load.js.map +0 -1
  797. package/dist/runs/transcript-facts-queue.d.ts +0 -30
  798. package/dist/runs/transcript-facts-queue.js +0 -227
  799. package/dist/runs/transcript-facts-queue.js.map +0 -1
  800. package/dist/runs/transcript-facts-worker.d.ts +0 -15
  801. package/dist/runs/transcript-facts-worker.js +0 -26
  802. package/dist/runs/transcript-facts-worker.js.map +0 -1
  803. package/dist/runs/transcript-facts.d.ts +0 -39
  804. package/dist/runs/transcript-facts.js +0 -186
  805. package/dist/runs/transcript-facts.js.map +0 -1
  806. package/dist/runs/ui-event-sink.d.ts +0 -56
  807. package/dist/runs/ui-event-sink.js +0 -188
  808. package/dist/runs/ui-event-sink.js.map +0 -1
  809. package/dist/runs/webhook.d.ts +0 -191
  810. package/dist/runs/webhook.js +0 -360
  811. package/dist/runs/webhook.js.map +0 -1
  812. package/dist/runs/worker-deletion-proof.d.ts +0 -13
  813. package/dist/runs/worker-deletion-proof.js +0 -13
  814. package/dist/runs/worker-deletion-proof.js.map +0 -1
  815. package/dist/runs/worker-execution.d.ts +0 -22
  816. package/dist/runs/worker-execution.js +0 -30
  817. package/dist/runs/worker-execution.js.map +0 -1
  818. package/dist/serve-boot.d.ts +0 -27
  819. package/dist/serve-boot.js +0 -85
  820. package/dist/serve-boot.js.map +0 -1
  821. package/dist/server/app-type.js.map +0 -1
  822. package/dist/server/archive-on-merge.d.ts +0 -35
  823. package/dist/server/archive-on-merge.js +0 -202
  824. package/dist/server/archive-on-merge.js.map +0 -1
  825. package/dist/server/capabilities.d.ts +0 -59
  826. package/dist/server/capabilities.js +0 -141
  827. package/dist/server/capabilities.js.map +0 -1
  828. package/dist/server/checkout-progress.d.ts +0 -10
  829. package/dist/server/checkout-progress.js +0 -27
  830. package/dist/server/checkout-progress.js.map +0 -1
  831. package/dist/server/checkout.d.ts +0 -129
  832. package/dist/server/checkout.js +0 -304
  833. package/dist/server/checkout.js.map +0 -1
  834. package/dist/server/cockpit-ownership.d.ts +0 -31
  835. package/dist/server/cockpit-ownership.js +0 -191
  836. package/dist/server/cockpit-ownership.js.map +0 -1
  837. package/dist/server/cold-repo-handles.d.ts +0 -14
  838. package/dist/server/cold-repo-handles.js +0 -78
  839. package/dist/server/cold-repo-handles.js.map +0 -1
  840. package/dist/server/completion-actions.d.ts +0 -30
  841. package/dist/server/completion-actions.js +0 -204
  842. package/dist/server/completion-actions.js.map +0 -1
  843. package/dist/server/create-project.d.ts +0 -71
  844. package/dist/server/create-project.js +0 -448
  845. package/dist/server/create-project.js.map +0 -1
  846. package/dist/server/forge/github-filters.d.ts +0 -22
  847. package/dist/server/forge/github-filters.js +0 -127
  848. package/dist/server/forge/github-filters.js.map +0 -1
  849. package/dist/server/forge/github-merge-requirements.d.ts +0 -18
  850. package/dist/server/forge/github-merge-requirements.js +0 -137
  851. package/dist/server/forge/github-merge-requirements.js.map +0 -1
  852. package/dist/server/forge/github.d.ts +0 -535
  853. package/dist/server/forge/github.js +0 -3200
  854. package/dist/server/forge/github.js.map +0 -1
  855. package/dist/server/forge/index.d.ts +0 -40
  856. package/dist/server/forge/index.js +0 -72
  857. package/dist/server/forge/index.js.map +0 -1
  858. package/dist/server/forge/types.d.ts +0 -244
  859. package/dist/server/forge/types.js +0 -2
  860. package/dist/server/forge/types.js.map +0 -1
  861. package/dist/server/fs-browse.d.ts +0 -80
  862. package/dist/server/fs-browse.js +0 -182
  863. package/dist/server/fs-browse.js.map +0 -1
  864. package/dist/server/git-changes.d.ts +0 -203
  865. package/dist/server/git-changes.js +0 -508
  866. package/dist/server/git-changes.js.map +0 -1
  867. package/dist/server/git.d.ts +0 -52
  868. package/dist/server/git.js +0 -170
  869. package/dist/server/git.js.map +0 -1
  870. package/dist/server/github.d.ts +0 -9
  871. package/dist/server/github.js +0 -8
  872. package/dist/server/github.js.map +0 -1
  873. package/dist/server/launch-key.d.ts +0 -5
  874. package/dist/server/launch-key.js +0 -31
  875. package/dist/server/launch-key.js.map +0 -1
  876. package/dist/server/live-routes.d.ts +0 -68
  877. package/dist/server/live-routes.js +0 -147
  878. package/dist/server/live-routes.js.map +0 -1
  879. package/dist/server/open-in-app.d.ts +0 -57
  880. package/dist/server/open-in-app.js +0 -177
  881. package/dist/server/open-in-app.js.map +0 -1
  882. package/dist/server/open-in-targets.d.ts +0 -42
  883. package/dist/server/open-in-targets.js +0 -110
  884. package/dist/server/open-in-targets.js.map +0 -1
  885. package/dist/server/open-in-terminal.d.ts +0 -73
  886. package/dist/server/open-in-terminal.js +0 -159
  887. package/dist/server/open-in-terminal.js.map +0 -1
  888. package/dist/server/pr.d.ts +0 -7
  889. package/dist/server/pr.js +0 -7
  890. package/dist/server/pr.js.map +0 -1
  891. package/dist/server/preview-cdp-socket.d.ts +0 -21
  892. package/dist/server/preview-cdp-socket.js +0 -112
  893. package/dist/server/preview-cdp-socket.js.map +0 -1
  894. package/dist/server/preview-socket.d.ts +0 -36
  895. package/dist/server/preview-socket.js +0 -126
  896. package/dist/server/preview-socket.js.map +0 -1
  897. package/dist/server/preview-sockets.d.ts +0 -14
  898. package/dist/server/preview-sockets.js +0 -18
  899. package/dist/server/preview-sockets.js.map +0 -1
  900. package/dist/server/project-context.d.ts +0 -192
  901. package/dist/server/project-context.js +0 -452
  902. package/dist/server/project-context.js.map +0 -1
  903. package/dist/server/provider-action-gate.d.ts +0 -5
  904. package/dist/server/provider-action-gate.js +0 -27
  905. package/dist/server/provider-action-gate.js.map +0 -1
  906. package/dist/server/provider-auth-runtime.d.ts +0 -32
  907. package/dist/server/provider-auth-runtime.js +0 -116
  908. package/dist/server/provider-auth-runtime.js.map +0 -1
  909. package/dist/server/repo-branch-forge.d.ts +0 -59
  910. package/dist/server/repo-branch-forge.js +0 -157
  911. package/dist/server/repo-branch-forge.js.map +0 -1
  912. package/dist/server/repo-branch-sweep.d.ts +0 -21
  913. package/dist/server/repo-branch-sweep.js +0 -64
  914. package/dist/server/repo-branch-sweep.js.map +0 -1
  915. package/dist/server/repo-branches.d.ts +0 -101
  916. package/dist/server/repo-branches.js +0 -803
  917. package/dist/server/repo-branches.js.map +0 -1
  918. package/dist/server/repo-pull.d.ts +0 -18
  919. package/dist/server/repo-pull.js +0 -96
  920. package/dist/server/repo-pull.js.map +0 -1
  921. package/dist/server/run-event-feed.d.ts +0 -20
  922. package/dist/server/run-event-feed.js +0 -190
  923. package/dist/server/run-event-feed.js.map +0 -1
  924. package/dist/server/server-deps.d.ts +0 -37
  925. package/dist/server/server-deps.js +0 -114
  926. package/dist/server/server-deps.js.map +0 -1
  927. package/dist/server/server.d.ts +0 -29583
  928. package/dist/server/server.js +0 -5456
  929. package/dist/server/server.js.map +0 -1
  930. package/dist/server/start-run-options.d.ts +0 -83
  931. package/dist/server/start-run-options.js +0 -111
  932. package/dist/server/start-run-options.js.map +0 -1
  933. package/dist/server/static-ui.d.ts +0 -49
  934. package/dist/server/static-ui.js +0 -98
  935. package/dist/server/static-ui.js.map +0 -1
  936. package/dist/server/upgrade-router.d.ts +0 -23
  937. package/dist/server/upgrade-router.js +0 -53
  938. package/dist/server/upgrade-router.js.map +0 -1
  939. package/dist/server/validators.d.ts +0 -80
  940. package/dist/server/validators.js +0 -85
  941. package/dist/server/validators.js.map +0 -1
  942. package/dist/server/ws.d.ts +0 -65
  943. package/dist/server/ws.js +0 -200
  944. package/dist/server/ws.js.map +0 -1
  945. package/dist/server/wsl.d.ts +0 -25
  946. package/dist/server/wsl.js +0 -92
  947. package/dist/server/wsl.js.map +0 -1
  948. package/dist/server-install/engine.d.ts +0 -47
  949. package/dist/server-install/engine.js +0 -317
  950. package/dist/server-install/engine.js.map +0 -1
  951. package/dist/server-install/npx-cache.d.ts +0 -36
  952. package/dist/server-install/npx-cache.js +0 -104
  953. package/dist/server-install/npx-cache.js.map +0 -1
  954. package/dist/server-install/platforms/macosx-ngrok.d.ts +0 -6
  955. package/dist/server-install/platforms/macosx-ngrok.js +0 -371
  956. package/dist/server-install/platforms/macosx-ngrok.js.map +0 -1
  957. package/dist/server-install/platforms/ubuntu-vps.d.ts +0 -54
  958. package/dist/server-install/platforms/ubuntu-vps.js +0 -1066
  959. package/dist/server-install/platforms/ubuntu-vps.js.map +0 -1
  960. package/dist/server-install/state.d.ts +0 -50
  961. package/dist/server-install/state.js +0 -180
  962. package/dist/server-install/state.js.map +0 -1
  963. package/dist/server-install/steps.d.ts +0 -108
  964. package/dist/server-install/steps.js +0 -332
  965. package/dist/server-install/steps.js.map +0 -1
  966. package/dist/server-install/strategies.d.ts +0 -4
  967. package/dist/server-install/strategies.js +0 -20
  968. package/dist/server-install/strategies.js.map +0 -1
  969. package/dist/server-install/types.d.ts +0 -284
  970. package/dist/server-install/types.js +0 -118
  971. package/dist/server-install/types.js.map +0 -1
  972. package/dist/server-install/ui.d.ts +0 -36
  973. package/dist/server-install/ui.js +0 -130
  974. package/dist/server-install/ui.js.map +0 -1
  975. package/dist/session-context.d.ts +0 -64
  976. package/dist/session-context.js +0 -264
  977. package/dist/session-context.js.map +0 -1
  978. package/dist/skills-provision.d.ts +0 -62
  979. package/dist/skills-provision.js +0 -325
  980. package/dist/skills-provision.js.map +0 -1
  981. package/dist/skills-remote.d.ts +0 -129
  982. package/dist/skills-remote.js +0 -782
  983. package/dist/skills-remote.js.map +0 -1
  984. package/dist/skills.d.ts +0 -71
  985. package/dist/skills.js +0 -249
  986. package/dist/skills.js.map +0 -1
  987. package/dist/subcommands.d.ts +0 -11
  988. package/dist/subcommands.js +0 -25
  989. package/dist/subcommands.js.map +0 -1
  990. package/dist/task-cli/cli.d.ts +0 -39
  991. package/dist/task-cli/cli.js +0 -721
  992. package/dist/task-cli/cli.js.map +0 -1
  993. package/dist/task-cli/discovery.d.ts +0 -25
  994. package/dist/task-cli/discovery.js +0 -98
  995. package/dist/task-cli/discovery.js.map +0 -1
  996. package/dist/task-cli/hint.d.ts +0 -20
  997. package/dist/task-cli/hint.js +0 -14
  998. package/dist/task-cli/hint.js.map +0 -1
  999. package/dist/task-cli/http.d.ts +0 -49
  1000. package/dist/task-cli/http.js +0 -109
  1001. package/dist/task-cli/http.js.map +0 -1
  1002. package/dist/task-cli/projections.d.ts +0 -68
  1003. package/dist/task-cli/projections.js +0 -76
  1004. package/dist/task-cli/projections.js.map +0 -1
  1005. package/dist/task-cli/watch.d.ts +0 -119
  1006. package/dist/task-cli/watch.js +0 -475
  1007. package/dist/task-cli/watch.js.map +0 -1
  1008. package/dist/ui-state.d.ts +0 -41
  1009. package/dist/ui-state.js +0 -90
  1010. package/dist/ui-state.js.map +0 -1
  1011. package/dist/update-check.d.ts +0 -2
  1012. package/dist/update-check.js +0 -26
  1013. package/dist/update-check.js.map +0 -1
  1014. package/dist/voice/decide.d.ts +0 -32
  1015. package/dist/voice/decide.js +0 -297
  1016. package/dist/voice/decide.js.map +0 -1
  1017. package/dist/voice/decision-log.d.ts +0 -52
  1018. package/dist/voice/decision-log.js +0 -107
  1019. package/dist/voice/decision-log.js.map +0 -1
  1020. package/dist/voice/engine.d.ts +0 -119
  1021. package/dist/voice/engine.js +0 -60
  1022. package/dist/voice/engine.js.map +0 -1
  1023. package/dist/voice/fake-engine.d.ts +0 -10
  1024. package/dist/voice/fake-engine.js +0 -192
  1025. package/dist/voice/fake-engine.js.map +0 -1
  1026. package/dist/voice/jev-engine.d.ts +0 -17
  1027. package/dist/voice/jev-engine.js +0 -110
  1028. package/dist/voice/jev-engine.js.map +0 -1
  1029. package/dist/voice/pending-ask.d.ts +0 -17
  1030. package/dist/voice/pending-ask.js +0 -50
  1031. package/dist/voice/pending-ask.js.map +0 -1
  1032. package/dist/voice/routes.d.ts +0 -115
  1033. package/dist/voice/routes.js +0 -91
  1034. package/dist/voice/routes.js.map +0 -1
  1035. package/dist/voice/sentence.d.ts +0 -21
  1036. package/dist/voice/sentence.js +0 -61
  1037. package/dist/voice/sentence.js.map +0 -1
  1038. package/dist/voice/thresholds.d.ts +0 -28
  1039. package/dist/voice/thresholds.js +0 -29
  1040. package/dist/voice/thresholds.js.map +0 -1
  1041. package/dist/webhooks/cli.d.ts +0 -18
  1042. package/dist/webhooks/cli.js +0 -145
  1043. package/dist/webhooks/cli.js.map +0 -1
  1044. package/dist/webhooks/prompt.d.ts +0 -5
  1045. package/dist/webhooks/prompt.js +0 -26
  1046. package/dist/webhooks/prompt.js.map +0 -1
  1047. package/dist/workflows/active-run.d.ts +0 -170
  1048. package/dist/workflows/active-run.js +0 -21
  1049. package/dist/workflows/active-run.js.map +0 -1
  1050. package/dist/workflows/attachment-path.d.ts +0 -6
  1051. package/dist/workflows/attachment-path.js +0 -40
  1052. package/dist/workflows/attachment-path.js.map +0 -1
  1053. package/dist/workflows/completion-policy.d.ts +0 -98
  1054. package/dist/workflows/completion-policy.js +0 -87
  1055. package/dist/workflows/completion-policy.js.map +0 -1
  1056. package/dist/workflows/continuation-admission.d.ts +0 -965
  1057. package/dist/workflows/continuation-admission.js +0 -265
  1058. package/dist/workflows/continuation-admission.js.map +0 -1
  1059. package/dist/workflows/execution-account.d.ts +0 -13
  1060. package/dist/workflows/execution-account.js +0 -18
  1061. package/dist/workflows/execution-account.js.map +0 -1
  1062. package/dist/workflows/grouped-command.d.ts +0 -31
  1063. package/dist/workflows/grouped-command.js +0 -143
  1064. package/dist/workflows/grouped-command.js.map +0 -1
  1065. package/dist/workflows/input-acknowledgement.d.ts +0 -203
  1066. package/dist/workflows/input-acknowledgement.js +0 -41
  1067. package/dist/workflows/input-acknowledgement.js.map +0 -1
  1068. package/dist/workflows/line-order.d.ts +0 -5
  1069. package/dist/workflows/line-order.js +0 -25
  1070. package/dist/workflows/line-order.js.map +0 -1
  1071. package/dist/workflows/load.d.ts +0 -17
  1072. package/dist/workflows/load.js +0 -61
  1073. package/dist/workflows/load.js.map +0 -1
  1074. package/dist/workflows/outcome-batches.d.ts +0 -32
  1075. package/dist/workflows/outcome-batches.js +0 -55
  1076. package/dist/workflows/outcome-batches.js.map +0 -1
  1077. package/dist/workflows/pasted-content.d.ts +0 -60
  1078. package/dist/workflows/pasted-content.js +0 -69
  1079. package/dist/workflows/pasted-content.js.map +0 -1
  1080. package/dist/workflows/question-routing.d.ts +0 -8
  1081. package/dist/workflows/question-routing.js +0 -20
  1082. package/dist/workflows/question-routing.js.map +0 -1
  1083. package/dist/workflows/run/attachment-writer.d.ts +0 -34
  1084. package/dist/workflows/run/attachment-writer.js +0 -98
  1085. package/dist/workflows/run/attachment-writer.js.map +0 -1
  1086. package/dist/workflows/run/auto-resume.d.ts +0 -91
  1087. package/dist/workflows/run/auto-resume.js +0 -248
  1088. package/dist/workflows/run/auto-resume.js.map +0 -1
  1089. package/dist/workflows/run/cezar-tools.d.ts +0 -45
  1090. package/dist/workflows/run/cezar-tools.js +0 -129
  1091. package/dist/workflows/run/cezar-tools.js.map +0 -1
  1092. package/dist/workflows/run/completion-gate.d.ts +0 -77
  1093. package/dist/workflows/run/completion-gate.js +0 -90
  1094. package/dist/workflows/run/completion-gate.js.map +0 -1
  1095. package/dist/workflows/run/compose.d.ts +0 -174
  1096. package/dist/workflows/run/compose.js +0 -391
  1097. package/dist/workflows/run/compose.js.map +0 -1
  1098. package/dist/workflows/run/constants.d.ts +0 -48
  1099. package/dist/workflows/run/constants.js +0 -49
  1100. package/dist/workflows/run/constants.js.map +0 -1
  1101. package/dist/workflows/run/continuation-acceptance.d.ts +0 -70
  1102. package/dist/workflows/run/continuation-acceptance.js +0 -198
  1103. package/dist/workflows/run/continuation-acceptance.js.map +0 -1
  1104. package/dist/workflows/run/continuation-session.d.ts +0 -128
  1105. package/dist/workflows/run/continuation-session.js +0 -581
  1106. package/dist/workflows/run/continuation-session.js.map +0 -1
  1107. package/dist/workflows/run/drop-active.d.ts +0 -4
  1108. package/dist/workflows/run/drop-active.js +0 -11
  1109. package/dist/workflows/run/drop-active.js.map +0 -1
  1110. package/dist/workflows/run/family-reconciler.d.ts +0 -74
  1111. package/dist/workflows/run/family-reconciler.js +0 -310
  1112. package/dist/workflows/run/family-reconciler.js.map +0 -1
  1113. package/dist/workflows/run/human-waits.d.ts +0 -91
  1114. package/dist/workflows/run/human-waits.js +0 -192
  1115. package/dist/workflows/run/human-waits.js.map +0 -1
  1116. package/dist/workflows/run/inbox-claims.d.ts +0 -38
  1117. package/dist/workflows/run/inbox-claims.js +0 -107
  1118. package/dist/workflows/run/inbox-claims.js.map +0 -1
  1119. package/dist/workflows/run/input-batch.d.ts +0 -15
  1120. package/dist/workflows/run/input-batch.js +0 -31
  1121. package/dist/workflows/run/input-batch.js.map +0 -1
  1122. package/dist/workflows/run/input-delivery.d.ts +0 -122
  1123. package/dist/workflows/run/input-delivery.js +0 -661
  1124. package/dist/workflows/run/input-delivery.js.map +0 -1
  1125. package/dist/workflows/run/input-receipts.d.ts +0 -65
  1126. package/dist/workflows/run/input-receipts.js +0 -222
  1127. package/dist/workflows/run/input-receipts.js.map +0 -1
  1128. package/dist/workflows/run/input-timers.d.ts +0 -10
  1129. package/dist/workflows/run/input-timers.js +0 -42
  1130. package/dist/workflows/run/input-timers.js.map +0 -1
  1131. package/dist/workflows/run/launch-context.d.ts +0 -64
  1132. package/dist/workflows/run/launch-context.js +0 -145
  1133. package/dist/workflows/run/launch-context.js.map +0 -1
  1134. package/dist/workflows/run/launch-settings.d.ts +0 -49
  1135. package/dist/workflows/run/launch-settings.js +0 -125
  1136. package/dist/workflows/run/launch-settings.js.map +0 -1
  1137. package/dist/workflows/run/maintenance-claims.d.ts +0 -47
  1138. package/dist/workflows/run/maintenance-claims.js +0 -83
  1139. package/dist/workflows/run/maintenance-claims.js.map +0 -1
  1140. package/dist/workflows/run/memory-guard.d.ts +0 -25
  1141. package/dist/workflows/run/memory-guard.js +0 -63
  1142. package/dist/workflows/run/memory-guard.js.map +0 -1
  1143. package/dist/workflows/run/opening.d.ts +0 -41
  1144. package/dist/workflows/run/opening.js +0 -92
  1145. package/dist/workflows/run/opening.js.map +0 -1
  1146. package/dist/workflows/run/pending-ask-facts.d.ts +0 -10
  1147. package/dist/workflows/run/pending-ask-facts.js +0 -19
  1148. package/dist/workflows/run/pending-ask-facts.js.map +0 -1
  1149. package/dist/workflows/run/prompts.d.ts +0 -74
  1150. package/dist/workflows/run/prompts.js +0 -140
  1151. package/dist/workflows/run/prompts.js.map +0 -1
  1152. package/dist/workflows/run/queued-input.d.ts +0 -108
  1153. package/dist/workflows/run/queued-input.js +0 -321
  1154. package/dist/workflows/run/queued-input.js.map +0 -1
  1155. package/dist/workflows/run/queued-revival.d.ts +0 -44
  1156. package/dist/workflows/run/queued-revival.js +0 -157
  1157. package/dist/workflows/run/queued-revival.js.map +0 -1
  1158. package/dist/workflows/run/repo-root-lease.d.ts +0 -34
  1159. package/dist/workflows/run/repo-root-lease.js +0 -70
  1160. package/dist/workflows/run/repo-root-lease.js.map +0 -1
  1161. package/dist/workflows/run/resolved-wait-input-batch.d.ts +0 -7
  1162. package/dist/workflows/run/resolved-wait-input-batch.js +0 -25
  1163. package/dist/workflows/run/resolved-wait-input-batch.js.map +0 -1
  1164. package/dist/workflows/run/run-cancel.d.ts +0 -36
  1165. package/dist/workflows/run/run-cancel.js +0 -126
  1166. package/dist/workflows/run/run-cancel.js.map +0 -1
  1167. package/dist/workflows/run/run-finish.d.ts +0 -68
  1168. package/dist/workflows/run/run-finish.js +0 -239
  1169. package/dist/workflows/run/run-finish.js.map +0 -1
  1170. package/dist/workflows/run/run-guards.d.ts +0 -14
  1171. package/dist/workflows/run/run-guards.js +0 -34
  1172. package/dist/workflows/run/run-guards.js.map +0 -1
  1173. package/dist/workflows/run/run-line.d.ts +0 -179
  1174. package/dist/workflows/run/run-line.js +0 -429
  1175. package/dist/workflows/run/run-line.js.map +0 -1
  1176. package/dist/workflows/run/run-recovery.d.ts +0 -117
  1177. package/dist/workflows/run/run-recovery.js +0 -442
  1178. package/dist/workflows/run/run-recovery.js.map +0 -1
  1179. package/dist/workflows/run/run-settlement.d.ts +0 -163
  1180. package/dist/workflows/run/run-settlement.js +0 -535
  1181. package/dist/workflows/run/run-settlement.js.map +0 -1
  1182. package/dist/workflows/run/run-skills.d.ts +0 -81
  1183. package/dist/workflows/run/run-skills.js +0 -178
  1184. package/dist/workflows/run/run-skills.js.map +0 -1
  1185. package/dist/workflows/run/run-start.d.ts +0 -64
  1186. package/dist/workflows/run/run-start.js +0 -177
  1187. package/dist/workflows/run/run-start.js.map +0 -1
  1188. package/dist/workflows/run/run-workspace.d.ts +0 -25
  1189. package/dist/workflows/run/run-workspace.js +0 -65
  1190. package/dist/workflows/run/run-workspace.js.map +0 -1
  1191. package/dist/workflows/run/session-events.d.ts +0 -144
  1192. package/dist/workflows/run/session-events.js +0 -262
  1193. package/dist/workflows/run/session-events.js.map +0 -1
  1194. package/dist/workflows/run/step-decisions.d.ts +0 -37
  1195. package/dist/workflows/run/step-decisions.js +0 -42
  1196. package/dist/workflows/run/step-decisions.js.map +0 -1
  1197. package/dist/workflows/run/step-loop.d.ts +0 -140
  1198. package/dist/workflows/run/step-loop.js +0 -490
  1199. package/dist/workflows/run/step-loop.js.map +0 -1
  1200. package/dist/workflows/run/step-session.d.ts +0 -64
  1201. package/dist/workflows/run/step-session.js +0 -280
  1202. package/dist/workflows/run/step-session.js.map +0 -1
  1203. package/dist/workflows/run/steps.d.ts +0 -13
  1204. package/dist/workflows/run/steps.js +0 -14
  1205. package/dist/workflows/run/steps.js.map +0 -1
  1206. package/dist/workflows/run/tracked-work.d.ts +0 -12
  1207. package/dist/workflows/run/tracked-work.js +0 -29
  1208. package/dist/workflows/run/tracked-work.js.map +0 -1
  1209. package/dist/workflows/run/turn-bookkeeping.d.ts +0 -67
  1210. package/dist/workflows/run/turn-bookkeeping.js +0 -174
  1211. package/dist/workflows/run/turn-bookkeeping.js.map +0 -1
  1212. package/dist/workflows/run/turn-markers.d.ts +0 -85
  1213. package/dist/workflows/run/turn-markers.js +0 -262
  1214. package/dist/workflows/run/turn-markers.js.map +0 -1
  1215. package/dist/workflows/run/turn-nudges.d.ts +0 -101
  1216. package/dist/workflows/run/turn-nudges.js +0 -245
  1217. package/dist/workflows/run/turn-nudges.js.map +0 -1
  1218. package/dist/workflows/run/turn-settler.d.ts +0 -166
  1219. package/dist/workflows/run/turn-settler.js +0 -492
  1220. package/dist/workflows/run/turn-settler.js.map +0 -1
  1221. package/dist/workflows/run/types.d.ts +0 -280
  1222. package/dist/workflows/run/types.js +0 -2
  1223. package/dist/workflows/run/types.js.map +0 -1
  1224. package/dist/workflows/run/usage-accounting.d.ts +0 -28
  1225. package/dist/workflows/run/usage-accounting.js +0 -158
  1226. package/dist/workflows/run/usage-accounting.js.map +0 -1
  1227. package/dist/workflows/run/wait-registry.d.ts +0 -132
  1228. package/dist/workflows/run/wait-registry.js +0 -405
  1229. package/dist/workflows/run/wait-registry.js.map +0 -1
  1230. package/dist/workflows/run/wait-watches.d.ts +0 -855
  1231. package/dist/workflows/run/wait-watches.js +0 -221
  1232. package/dist/workflows/run/wait-watches.js.map +0 -1
  1233. package/dist/workflows/run/wake-admission.d.ts +0 -160
  1234. package/dist/workflows/run/wake-admission.js +0 -404
  1235. package/dist/workflows/run/wake-admission.js.map +0 -1
  1236. package/dist/workflows/run/wake-ledger.d.ts +0 -61
  1237. package/dist/workflows/run/wake-ledger.js +0 -77
  1238. package/dist/workflows/run/wake-ledger.js.map +0 -1
  1239. package/dist/workflows/run/wake-retries.d.ts +0 -31
  1240. package/dist/workflows/run/wake-retries.js +0 -93
  1241. package/dist/workflows/run/wake-retries.js.map +0 -1
  1242. package/dist/workflows/run/worker-executions.d.ts +0 -54
  1243. package/dist/workflows/run/worker-executions.js +0 -149
  1244. package/dist/workflows/run/worker-executions.js.map +0 -1
  1245. package/dist/workflows/run/worker-orphans.d.ts +0 -91
  1246. package/dist/workflows/run/worker-orphans.js +0 -275
  1247. package/dist/workflows/run/worker-orphans.js.map +0 -1
  1248. package/dist/workflows/run/worker-questions.d.ts +0 -122
  1249. package/dist/workflows/run/worker-questions.js +0 -309
  1250. package/dist/workflows/run/worker-questions.js.map +0 -1
  1251. package/dist/workflows/run/workflow-position.d.ts +0 -18
  1252. package/dist/workflows/run/workflow-position.js +0 -88
  1253. package/dist/workflows/run/workflow-position.js.map +0 -1
  1254. package/dist/workflows/run/worktree-autosave.d.ts +0 -39
  1255. package/dist/workflows/run/worktree-autosave.js +0 -156
  1256. package/dist/workflows/run/worktree-autosave.js.map +0 -1
  1257. package/dist/workflows/run-scheduling.d.ts +0 -40
  1258. package/dist/workflows/run-scheduling.js +0 -84
  1259. package/dist/workflows/run-scheduling.js.map +0 -1
  1260. package/dist/workflows/run-states.d.ts +0 -191
  1261. package/dist/workflows/run-states.js +0 -318
  1262. package/dist/workflows/run-states.js.map +0 -1
  1263. package/dist/workflows/run.d.ts +0 -334
  1264. package/dist/workflows/run.js +0 -603
  1265. package/dist/workflows/run.js.map +0 -1
  1266. package/dist/workflows/turn-end.d.ts +0 -126
  1267. package/dist/workflows/turn-end.js +0 -78
  1268. package/dist/workflows/turn-end.js.map +0 -1
  1269. package/dist/workflows/types.d.ts +0 -83
  1270. package/dist/workflows/types.js +0 -192
  1271. package/dist/workflows/types.js.map +0 -1
  1272. package/dist/workflows/wait-scope.d.ts +0 -80
  1273. package/dist/workflows/wait-scope.js +0 -110
  1274. package/dist/workflows/wait-scope.js.map +0 -1
  1275. package/dist/workflows/waits.d.ts +0 -188
  1276. package/dist/workflows/waits.js +0 -287
  1277. package/dist/workflows/waits.js.map +0 -1
  1278. package/dist/workspace/agent-accounts.d.ts +0 -128
  1279. package/dist/workspace/agent-accounts.js +0 -280
  1280. package/dist/workspace/agent-accounts.js.map +0 -1
  1281. package/dist/workspace/agent-profiles.d.ts +0 -124
  1282. package/dist/workspace/agent-profiles.js +0 -190
  1283. package/dist/workspace/agent-profiles.js.map +0 -1
  1284. package/dist/workspace/config.d.ts +0 -181
  1285. package/dist/workspace/config.js +0 -389
  1286. package/dist/workspace/config.js.map +0 -1
  1287. package/dist/workspace/migrations.d.ts +0 -35
  1288. package/dist/workspace/migrations.js +0 -147
  1289. package/dist/workspace/migrations.js.map +0 -1
  1290. package/dist/workspace/projects-cli.d.ts +0 -25
  1291. package/dist/workspace/projects-cli.js +0 -172
  1292. package/dist/workspace/projects-cli.js.map +0 -1
  1293. package/dist/workspace/projects.d.ts +0 -129
  1294. package/dist/workspace/projects.js +0 -267
  1295. package/dist/workspace/projects.js.map +0 -1
  1296. package/dist/workspace/semaphore.d.ts +0 -145
  1297. package/dist/workspace/semaphore.js +0 -196
  1298. package/dist/workspace/semaphore.js.map +0 -1
  1299. package/dist/workspace/ui-state.d.ts +0 -36
  1300. package/dist/workspace/ui-state.js +0 -55
  1301. package/dist/workspace/ui-state.js.map +0 -1
  1302. package/dist/workspace/webhooks.d.ts +0 -40
  1303. package/dist/workspace/webhooks.js +0 -146
  1304. package/dist/workspace/webhooks.js.map +0 -1
  1305. package/dist/worktree-manifest.d.ts +0 -165
  1306. package/dist/worktree-manifest.js +0 -530
  1307. package/dist/worktree-manifest.js.map +0 -1
  1308. package/dist/worktree-setup.d.ts +0 -85
  1309. package/dist/worktree-setup.js +0 -164
  1310. package/dist/worktree-setup.js.map +0 -1
  1311. package/scripts/benchmark-run-store-fixture.ts +0 -432
  1312. package/scripts/benchmark-run-store.ts +0 -743
  1313. package/scripts/benchmark-stuck-destroys.ts +0 -143
  1314. package/scripts/check-pack.mjs +0 -48
  1315. package/scripts/inline-contract.mjs +0 -165
  1316. package/scripts/install-as-command.mjs +0 -122
  1317. package/scripts/measure-transcript-facts-health.mjs +0 -87
  1318. package/scripts/measure-transcript-facts-lag.mjs +0 -68
  1319. package/scripts/mock-autonomous.mjs +0 -11
  1320. package/scripts/mock-ci-tool.mjs +0 -111
  1321. package/scripts/mock-claude-model-refusal.mjs +0 -42
  1322. package/scripts/mock-claude.mjs +0 -1065
  1323. package/scripts/mock-codex-app-server.mjs +0 -905
  1324. package/scripts/mock-codex-coalesce-steer.mjs +0 -59
  1325. package/scripts/mock-codex-reverse-steer.mjs +0 -130
  1326. package/scripts/mock-cursor-acp.mjs +0 -423
  1327. package/scripts/mock-cursor-hang-stdin-late.mjs +0 -35
  1328. package/scripts/mock-cursor-hang-stdin.mjs +0 -30
  1329. package/scripts/mock-cursor-print.mjs +0 -256
  1330. package/scripts/mock-deferred-turn-start.mjs +0 -16
  1331. package/scripts/mock-delivery-control.d.mts +0 -23
  1332. package/scripts/mock-delivery-control.mjs +0 -80
  1333. package/scripts/mock-env-record.mjs +0 -11
  1334. package/scripts/mock-failure-control.d.mts +0 -13
  1335. package/scripts/mock-failure-control.mjs +0 -68
  1336. package/scripts/mock-multi-pr.mjs +0 -7
  1337. package/scripts/mock-nudge.mjs +0 -45
  1338. package/scripts/mock-omp-rpc.mjs +0 -779
  1339. package/scripts/mock-opencode-serve.mjs +0 -1230
  1340. package/scripts/mock-pi-rpc.mjs +0 -698
  1341. package/scripts/mock-runner-crash.mjs +0 -58
  1342. package/scripts/mock-session-context.d.mts +0 -5
  1343. package/scripts/mock-session-context.mjs +0 -56
  1344. package/scripts/mock-silent-tail.mjs +0 -85
  1345. package/scripts/mock-turn-messages.mjs +0 -5
  1346. package/scripts/omp-ci-wait.mjs +0 -29
  1347. package/scripts/omp-restrict-delegation.yml +0 -4
  1348. package/scripts/pi-ci-wait.mjs +0 -17
  1349. package/scripts/pi-default-tools.mjs +0 -22
  1350. package/scripts/pi-project-skills.mjs +0 -59
  1351. package/scripts/pi-retry-degraded-service.mjs +0 -16
  1352. package/scripts/probe-cursor-print.mjs +0 -627
  1353. package/scripts/seed-archive-profile.ts +0 -53
  1354. package/scripts/sync-readme.mjs +0 -20
  1355. package/scripts/test-process-usage.mjs +0 -47
  1356. package/scripts/transcript-facts-fixture.mjs +0 -53
  1357. package/scripts/voice-replay.ts +0 -50
  1358. package/scripts/windows-workspace-identity.cs +0 -208
  1359. package/scripts/windows-workspace-identity.ps1 +0 -10
  1360. package/web/dist/assets/alert-dialog-DfctKUMw.js +0 -1
  1361. package/web/dist/assets/button-CeupvoKG.js +0 -41
  1362. package/web/dist/assets/centered-state-DRV994qx.js +0 -1
  1363. package/web/dist/assets/cez-idle-D3aj_9lp.js +0 -1
  1364. package/web/dist/assets/diff-CMvwOEAq2.js +0 -3
  1365. package/web/dist/assets/diff-controls-DOUOXMFa.js +0 -1
  1366. package/web/dist/assets/diff-view-CeyiYVO0.js +0 -11
  1367. package/web/dist/assets/dropdown-menu-o5TscAn1.js +0 -6
  1368. package/web/dist/assets/git-toolbar-BXqnQi8K.js +0 -1
  1369. package/web/dist/assets/github-BK1vJWfx.js +0 -1
  1370. package/web/dist/assets/index-C3hy-aA5.css +0 -1
  1371. package/web/dist/assets/index-CvfFqahx.js +0 -34
  1372. package/web/dist/assets/lib-BQXq3kEf.js +0 -1
  1373. package/web/dist/assets/live-protocol-DhRssvhp.js +0 -64
  1374. package/web/dist/assets/play-CmVAj_fu.js +0 -1
  1375. package/web/dist/assets/popover-BhkASzoh.js +0 -1
  1376. package/web/dist/assets/preview-pane-connected-DYEO_KU8.js +0 -3
  1377. package/web/dist/assets/reference-chip-CwVbHR5t.js +0 -1
  1378. package/web/dist/assets/repo-git-CHmWZuZU.js +0 -1
  1379. package/web/dist/assets/run-header-BaMbZXjb.js +0 -2
  1380. package/web/dist/assets/skill-empty-hint-oOtzR3v0.js +0 -1
  1381. package/web/dist/assets/skills-DviK76JU.js +0 -1
  1382. package/web/dist/assets/status-dot-B_zxTP5h.js +0 -1
  1383. package/web/dist/assets/tab-link-I2OzEyyp.js +0 -1
  1384. package/web/dist/assets/task-changes--tIcV2If.js +0 -1
  1385. package/web/dist/assets/task-commits-BkgYMsVZ.js +0 -1
  1386. package/web/dist/assets/task-files-CfqI5Pd4.js +0 -2
  1387. package/web/dist/assets/task-github-item-CXv13eJx.js +0 -1
  1388. package/web/dist/assets/task-thread-DJfpoqYU.js +0 -9
  1389. package/web/dist/assets/thread-state-C_J5glQD.js +0 -4
  1390. package/web/dist/assets/use-hand-to-agent-state-C-_lVGuC.js +0 -1
  1391. package/web/dist/assets/workflows-9xLAxVoB.js +0 -7
  1392. package/web/dist/assets/zoomable-image-CxQSsfcn.js +0 -1
@@ -1,3263 +0,0 @@
1
- import { type PeerTaskPageOptions } from './run-summary-page.ts';
2
- export { parseStoredSummary } from './run-summary-page.ts';
3
- import { EventEmitter } from 'node:events';
4
- import { type WorkerExecution } from './worker-execution.ts';
5
- import { z } from 'zod';
6
- import { queuedMessageSchema } from '../contract/index.js';
7
- import type { ArchiveFinishedScope, ArchivedRunsResponse, ArchivePullRequestIdentity, CiWait, PrWaitEntry, ConversationState, AgentInput, InboxClaim, DelegationState, MergedPullRequest, RunSummary, Wait, WorkerCollectedResult, WorkerDestroyRetry, WorkerWait, WorkerWaitEntry } from '../contract/index.js';
8
- import { type AutomationNames } from '../contract/index.js';
9
- import { type TranscriptFacts } from './transcript-facts.ts';
10
- import { type WorkerExecutionIdentity } from '../delegation/execution-identity.ts';
11
- import { type CwdSource, type WorkerProcessRecord } from '../delegation/process-liveness.ts';
12
- import { workflowDefSchema } from '../workflows/types.ts';
13
- import { type OutcomeDependencies, type RunOutcome } from './outcome-commit.ts';
14
- import { type ConversationIdentity } from './conversation-identity.ts';
15
- export { ConversationIdInUseError } from './conversation-identity.ts';
16
- import { type RunnerId } from '../core/agent-runner.ts';
17
- import { type RawExtras } from './raw-record.ts';
18
- import { RunStoreOpenError } from './store-open-error.ts';
19
- export type RunStatus = 'queued' | 'running' | 'waiting' | 'review' | 'done' | 'failed' | 'cancelled';
20
- export type StepStatus = 'pending' | 'running' | 'waiting' | 'review' | 'done' | 'failed' | 'cancelled' | 'skipped';
21
- declare const stepStateSchema: z.ZodObject<{
22
- id: z.ZodString;
23
- name: z.ZodString;
24
- kind: z.ZodEnum<{
25
- agent: "agent";
26
- check: "check";
27
- }>;
28
- status: z.ZodEnum<{
29
- cancelled: "cancelled";
30
- done: "done";
31
- failed: "failed";
32
- pending: "pending";
33
- review: "review";
34
- running: "running";
35
- skipped: "skipped";
36
- waiting: "waiting";
37
- }>;
38
- iterations: z.ZodNumber;
39
- retriesUsed: z.ZodOptional<z.ZodNumber>;
40
- tokensUsed: z.ZodNumber;
41
- inputTokens: z.ZodOptional<z.ZodNumber>;
42
- outputTokens: z.ZodOptional<z.ZodNumber>;
43
- usageInvocationsStarted: z.ZodOptional<z.ZodNumber>;
44
- usageInvocationsObserved: z.ZodOptional<z.ZodNumber>;
45
- usageTurnsStarted: z.ZodOptional<z.ZodNumber>;
46
- usageTurnsRecorded: z.ZodOptional<z.ZodNumber>;
47
- usageInvocationEpoch: z.ZodOptional<z.ZodNumber>;
48
- startedAt: z.ZodOptional<z.ZodString>;
49
- finishedAt: z.ZodOptional<z.ZodString>;
50
- error: z.ZodOptional<z.ZodString>;
51
- sessionId: z.ZodOptional<z.ZodString>;
52
- sessionTransport: z.ZodOptional<z.ZodEnum<{
53
- "cursor-acp": "cursor-acp";
54
- "cursor-print": "cursor-print";
55
- }>>;
56
- profileId: z.ZodOptional<z.ZodString>;
57
- costUsd: z.ZodOptional<z.ZodNumber>;
58
- synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
59
- backend: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
60
- claude: "claude";
61
- "claude-cli": "claude-cli";
62
- codex: "codex";
63
- cursor: "cursor";
64
- omp: "omp";
65
- opencode: "opencode";
66
- pi: "pi";
67
- }>, z.ZodTransform<"claude" | "codex" | "cursor" | "omp" | "opencode" | "pi", "claude" | "claude-cli" | "codex" | "cursor" | "omp" | "opencode" | "pi">>>;
68
- }, z.core.$strip>;
69
- /** Exported for `./run-index.ts`, the read-only reader of the same records. Nothing else should
70
- * parse a stored run — see `reconcileLoadedRun` for why a second parser is a correctness risk. */
71
- export declare const runRecordSchema: z.ZodObject<{
72
- id: z.ZodString;
73
- title: z.ZodString;
74
- titleSummary: z.ZodOptional<z.ZodString>;
75
- diffStat: z.ZodOptional<z.ZodObject<{
76
- adds: z.ZodNumber;
77
- dels: z.ZodNumber;
78
- files: z.ZodNumber;
79
- repointed: z.ZodOptional<z.ZodBoolean>;
80
- }, z.core.$strip>>;
81
- workflow: z.ZodString;
82
- task: z.ZodString;
83
- queuedMessages: z.ZodOptional<z.ZodArray<z.ZodObject<{
84
- id: z.ZodString;
85
- text: z.ZodString;
86
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
87
- createdAt: z.ZodString;
88
- }, z.core.$strip>>>;
89
- continuationMessage: z.ZodOptional<z.ZodObject<{
90
- id: z.ZodString;
91
- text: z.ZodString;
92
- images: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
- createdAt: z.ZodString;
94
- origin: z.ZodOptional<z.ZodEnum<{
95
- human: "human";
96
- lifecycle: "lifecycle";
97
- }>>;
98
- agentInputId: z.ZodOptional<z.ZodUUID>;
99
- resumeContext: z.ZodOptional<z.ZodObject<{
100
- failure: z.ZodOptional<z.ZodObject<{
101
- stepId: z.ZodOptional<z.ZodString>;
102
- error: z.ZodString;
103
- }, z.core.$strip>>;
104
- restarted: z.ZodOptional<z.ZodLiteral<true>>;
105
- }, z.core.$strip>>;
106
- }, z.core.$strip>>;
107
- workflowResumeStepId: z.ZodOptional<z.ZodString>;
108
- invalidAsk: z.ZodOptional<z.ZodBoolean>;
109
- agentInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
110
- conversation: z.ZodOptional<z.ZodObject<{
111
- senderRunId: z.ZodUUID;
112
- recipientRunId: z.ZodUUID;
113
- kind: z.ZodEnum<{
114
- "follow-up": "follow-up";
115
- progress: "progress";
116
- reply: "reply";
117
- request: "request";
118
- }>;
119
- requestId: z.ZodOptional<z.ZodUUID>;
120
- relationship: z.ZodOptional<z.ZodEnum<{
121
- family: "family";
122
- peer: "peer";
123
- }>>;
124
- }, z.core.$strict>>;
125
- id: z.ZodUUID;
126
- source: z.ZodEnum<{
127
- agent: "agent";
128
- lifecycle: "lifecycle";
129
- }>;
130
- parentRunId: z.ZodUUID;
131
- text: z.ZodString;
132
- createdAt: z.ZodISODateTime;
133
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
134
- consumedAt: z.ZodOptional<z.ZodISODateTime>;
135
- awaitingRead: z.ZodOptional<z.ZodLiteral<true>>;
136
- inboxClaim: z.ZodOptional<z.ZodObject<{
137
- receiptId: z.ZodUUID;
138
- generation: z.ZodUUID;
139
- expiresAt: z.ZodISODateTime;
140
- acknowledgedAt: z.ZodOptional<z.ZodISODateTime>;
141
- memberIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
142
- }, z.core.$strict>>;
143
- purpose: z.ZodOptional<z.ZodLiteral<"completion-refusal">>;
144
- requestHash: z.ZodOptional<z.ZodString>;
145
- deadline: z.ZodOptional<z.ZodISODateTime>;
146
- }, z.core.$strict>>>;
147
- waits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
148
- prUrl: z.ZodString;
149
- repository: z.ZodString;
150
- prNumber: z.ZodNumber;
151
- headSha: z.ZodString;
152
- id: z.ZodUUID;
153
- source: z.ZodEnum<{
154
- agent: "agent";
155
- cezar: "cezar";
156
- }>;
157
- via: z.ZodEnum<{
158
- "ask-line": "ask-line";
159
- budget: "budget";
160
- "cez-message-wait": "cez-message-wait";
161
- "cez-worker-wait": "cez-worker-wait";
162
- cezar_ask: "cezar_ask";
163
- cezar_wait: "cezar_wait";
164
- cezar_wait_for_ci: "cezar_wait_for_ci";
165
- completion: "completion";
166
- "monitoring-line": "monitoring-line";
167
- "native-ask": "native-ask";
168
- "no-wait": "no-wait";
169
- "schedule-wakeup": "schedule-wakeup";
170
- }>;
171
- registeredAt: z.ZodISODateTime;
172
- phase: z.ZodEnum<{
173
- cancelled: "cancelled";
174
- delivered: "delivered";
175
- open: "open";
176
- resolved: "resolved";
177
- }>;
178
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
179
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
180
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
181
- turnId: z.ZodString;
182
- kind: z.ZodLiteral<"pr">;
183
- deadline: z.ZodISODateTime;
184
- generation: z.ZodString;
185
- timeoutSeconds: z.ZodNumber;
186
- until: z.ZodEnum<{
187
- checks: "checks";
188
- merge: "merge";
189
- }>;
190
- wakeOnConflict: z.ZodBoolean;
191
- result: z.ZodOptional<z.ZodObject<{
192
- outcome: z.ZodEnum<{
193
- cancelled: "cancelled";
194
- closed: "closed";
195
- conflicting: "conflicting";
196
- deadline: "deadline";
197
- error: "error";
198
- failed: "failed";
199
- head_changed: "head_changed";
200
- merged: "merged";
201
- no_checks: "no_checks";
202
- passed: "passed";
203
- skipped: "skipped";
204
- }>;
205
- headSha: z.ZodString;
206
- observedHeadSha: z.ZodOptional<z.ZodString>;
207
- mergeable: z.ZodOptional<z.ZodEnum<{
208
- CONFLICTING: "CONFLICTING";
209
- MERGEABLE: "MERGEABLE";
210
- UNKNOWN: "UNKNOWN";
211
- }>>;
212
- mergeStateStatus: z.ZodOptional<z.ZodString>;
213
- mergedAt: z.ZodOptional<z.ZodISODateTime>;
214
- mergeCommitSha: z.ZodOptional<z.ZodString>;
215
- observedAt: z.ZodISODateTime;
216
- checks: z.ZodArray<z.ZodObject<{
217
- name: z.ZodString;
218
- state: z.ZodString;
219
- link: z.ZodString;
220
- }, z.core.$strict>>;
221
- totalChecks: z.ZodNumber;
222
- truncated: z.ZodBoolean;
223
- diagnostic: z.ZodOptional<z.ZodString>;
224
- }, z.core.$strict>>;
225
- }, z.core.$strict>, z.ZodObject<{
226
- id: z.ZodUUID;
227
- source: z.ZodEnum<{
228
- agent: "agent";
229
- cezar: "cezar";
230
- }>;
231
- via: z.ZodEnum<{
232
- "ask-line": "ask-line";
233
- budget: "budget";
234
- "cez-message-wait": "cez-message-wait";
235
- "cez-worker-wait": "cez-worker-wait";
236
- cezar_ask: "cezar_ask";
237
- cezar_wait: "cezar_wait";
238
- cezar_wait_for_ci: "cezar_wait_for_ci";
239
- completion: "completion";
240
- "monitoring-line": "monitoring-line";
241
- "native-ask": "native-ask";
242
- "no-wait": "no-wait";
243
- "schedule-wakeup": "schedule-wakeup";
244
- }>;
245
- registeredAt: z.ZodISODateTime;
246
- phase: z.ZodEnum<{
247
- cancelled: "cancelled";
248
- delivered: "delivered";
249
- open: "open";
250
- resolved: "resolved";
251
- }>;
252
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
253
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
254
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
255
- turnId: z.ZodString;
256
- kind: z.ZodLiteral<"timer">;
257
- deadline: z.ZodISODateTime;
258
- seconds: z.ZodNumber;
259
- note: z.ZodOptional<z.ZodString>;
260
- }, z.core.$strict>, z.ZodObject<{
261
- id: z.ZodUUID;
262
- source: z.ZodEnum<{
263
- agent: "agent";
264
- cezar: "cezar";
265
- }>;
266
- via: z.ZodEnum<{
267
- "ask-line": "ask-line";
268
- budget: "budget";
269
- "cez-message-wait": "cez-message-wait";
270
- "cez-worker-wait": "cez-worker-wait";
271
- cezar_ask: "cezar_ask";
272
- cezar_wait: "cezar_wait";
273
- cezar_wait_for_ci: "cezar_wait_for_ci";
274
- completion: "completion";
275
- "monitoring-line": "monitoring-line";
276
- "native-ask": "native-ask";
277
- "no-wait": "no-wait";
278
- "schedule-wakeup": "schedule-wakeup";
279
- }>;
280
- registeredAt: z.ZodISODateTime;
281
- phase: z.ZodEnum<{
282
- cancelled: "cancelled";
283
- delivered: "delivered";
284
- open: "open";
285
- resolved: "resolved";
286
- }>;
287
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
288
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
289
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
290
- turnId: z.ZodString;
291
- kind: z.ZodLiteral<"human">;
292
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
293
- id: z.ZodOptional<z.ZodString>;
294
- header: z.ZodString;
295
- question: z.ZodString;
296
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
297
- label: z.ZodString;
298
- description: z.ZodOptional<z.ZodString>;
299
- }, z.core.$strict>>>;
300
- multiSelect: z.ZodOptional<z.ZodBoolean>;
301
- }, z.core.$strict>>>;
302
- context: z.ZodOptional<z.ZodString>;
303
- askSeq: z.ZodOptional<z.ZodNumber>;
304
- }, z.core.$strict>, z.ZodObject<{
305
- id: z.ZodUUID;
306
- source: z.ZodEnum<{
307
- agent: "agent";
308
- cezar: "cezar";
309
- }>;
310
- via: z.ZodEnum<{
311
- "ask-line": "ask-line";
312
- budget: "budget";
313
- "cez-message-wait": "cez-message-wait";
314
- "cez-worker-wait": "cez-worker-wait";
315
- cezar_ask: "cezar_ask";
316
- cezar_wait: "cezar_wait";
317
- cezar_wait_for_ci: "cezar_wait_for_ci";
318
- completion: "completion";
319
- "monitoring-line": "monitoring-line";
320
- "native-ask": "native-ask";
321
- "no-wait": "no-wait";
322
- "schedule-wakeup": "schedule-wakeup";
323
- }>;
324
- registeredAt: z.ZodISODateTime;
325
- phase: z.ZodEnum<{
326
- cancelled: "cancelled";
327
- delivered: "delivered";
328
- open: "open";
329
- resolved: "resolved";
330
- }>;
331
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
332
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
333
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
334
- turnId: z.ZodString;
335
- kind: z.ZodLiteral<"worker">;
336
- deadline: z.ZodOptional<z.ZodISODateTime>;
337
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
338
- mode: z.ZodOptional<z.ZodEnum<{
339
- all: "all";
340
- any: "any";
341
- one: "one";
342
- }>>;
343
- workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
344
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
- workerId: z.ZodUUID;
346
- revision: z.ZodNumber;
347
- }, z.core.$strict>>>;
348
- outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
349
- workerId: z.ZodUUID;
350
- status: z.ZodEnum<{
351
- cancelled: "cancelled";
352
- done: "done";
353
- failed: "failed";
354
- review: "review";
355
- }>;
356
- observedAt: z.ZodISODateTime;
357
- summary: z.ZodOptional<z.ZodString>;
358
- revision: z.ZodOptional<z.ZodNumber>;
359
- }, z.core.$strict>>>;
360
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
361
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
362
- requestId: z.ZodUUID;
363
- status: z.ZodEnum<{
364
- cancelled: "cancelled";
365
- "completed-without-reply": "completed-without-reply";
366
- deleted: "deleted";
367
- destroyed: "destroyed";
368
- failed: "failed";
369
- "human-fallback": "human-fallback";
370
- replied: "replied";
371
- "replied-late": "replied-late";
372
- "sender-closed": "sender-closed";
373
- "timed-out": "timed-out";
374
- }>;
375
- observedAt: z.ZodISODateTime;
376
- replyId: z.ZodOptional<z.ZodUUID>;
377
- }, z.core.$strict>>>;
378
- result: z.ZodOptional<z.ZodObject<{
379
- reason: z.ZodEnum<{
380
- outcome: "outcome";
381
- timeout: "timeout";
382
- }>;
383
- }, z.core.$strict>>;
384
- wakeInputId: z.ZodOptional<z.ZodUUID>;
385
- }, z.core.$strict>, z.ZodObject<{
386
- id: z.ZodUUID;
387
- source: z.ZodEnum<{
388
- agent: "agent";
389
- cezar: "cezar";
390
- }>;
391
- via: z.ZodEnum<{
392
- "ask-line": "ask-line";
393
- budget: "budget";
394
- "cez-message-wait": "cez-message-wait";
395
- "cez-worker-wait": "cez-worker-wait";
396
- cezar_ask: "cezar_ask";
397
- cezar_wait: "cezar_wait";
398
- cezar_wait_for_ci: "cezar_wait_for_ci";
399
- completion: "completion";
400
- "monitoring-line": "monitoring-line";
401
- "native-ask": "native-ask";
402
- "no-wait": "no-wait";
403
- "schedule-wakeup": "schedule-wakeup";
404
- }>;
405
- registeredAt: z.ZodISODateTime;
406
- phase: z.ZodEnum<{
407
- cancelled: "cancelled";
408
- delivered: "delivered";
409
- open: "open";
410
- resolved: "resolved";
411
- }>;
412
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
413
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
414
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
415
- turnId: z.ZodString;
416
- kind: z.ZodLiteral<"process">;
417
- deadline: z.ZodISODateTime;
418
- timeoutSeconds: z.ZodNumber;
419
- pid: z.ZodNumber;
420
- startToken: z.ZodOptional<z.ZodString>;
421
- exitFile: z.ZodOptional<z.ZodString>;
422
- note: z.ZodOptional<z.ZodString>;
423
- result: z.ZodOptional<z.ZodObject<{
424
- outcome: z.ZodEnum<{
425
- deadline: "deadline";
426
- error: "error";
427
- exit_file: "exit_file";
428
- exited: "exited";
429
- }>;
430
- observedAt: z.ZodISODateTime;
431
- exitCode: z.ZodOptional<z.ZodNumber>;
432
- exitFileNote: z.ZodOptional<z.ZodLiteral<"not-an-exit-code">>;
433
- diagnostic: z.ZodOptional<z.ZodString>;
434
- }, z.core.$strict>>;
435
- }, z.core.$strict>, z.ZodObject<{
436
- id: z.ZodUUID;
437
- source: z.ZodEnum<{
438
- agent: "agent";
439
- cezar: "cezar";
440
- }>;
441
- via: z.ZodEnum<{
442
- "ask-line": "ask-line";
443
- budget: "budget";
444
- "cez-message-wait": "cez-message-wait";
445
- "cez-worker-wait": "cez-worker-wait";
446
- cezar_ask: "cezar_ask";
447
- cezar_wait: "cezar_wait";
448
- cezar_wait_for_ci: "cezar_wait_for_ci";
449
- completion: "completion";
450
- "monitoring-line": "monitoring-line";
451
- "native-ask": "native-ask";
452
- "no-wait": "no-wait";
453
- "schedule-wakeup": "schedule-wakeup";
454
- }>;
455
- registeredAt: z.ZodISODateTime;
456
- phase: z.ZodEnum<{
457
- cancelled: "cancelled";
458
- delivered: "delivered";
459
- open: "open";
460
- resolved: "resolved";
461
- }>;
462
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
463
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
464
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
465
- turnId: z.ZodString;
466
- kind: z.ZodLiteral<"peer">;
467
- deadline: z.ZodISODateTime;
468
- timeoutSeconds: z.ZodNumber;
469
- peerIds: z.ZodArray<z.ZodUUID>;
470
- result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
471
- reason: z.ZodLiteral<"message">;
472
- peerRunId: z.ZodUUID;
473
- messageId: z.ZodUUID;
474
- }, z.core.$strict>, z.ZodObject<{
475
- reason: z.ZodLiteral<"settled">;
476
- peerRunId: z.ZodUUID;
477
- }, z.core.$strict>, z.ZodObject<{
478
- reason: z.ZodLiteral<"timeout">;
479
- }, z.core.$strict>], "reason">>;
480
- }, z.core.$strict>], "kind">>>;
481
- lastWaits: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
482
- prUrl: z.ZodString;
483
- repository: z.ZodString;
484
- prNumber: z.ZodNumber;
485
- headSha: z.ZodString;
486
- id: z.ZodUUID;
487
- source: z.ZodEnum<{
488
- agent: "agent";
489
- cezar: "cezar";
490
- }>;
491
- via: z.ZodEnum<{
492
- "ask-line": "ask-line";
493
- budget: "budget";
494
- "cez-message-wait": "cez-message-wait";
495
- "cez-worker-wait": "cez-worker-wait";
496
- cezar_ask: "cezar_ask";
497
- cezar_wait: "cezar_wait";
498
- cezar_wait_for_ci: "cezar_wait_for_ci";
499
- completion: "completion";
500
- "monitoring-line": "monitoring-line";
501
- "native-ask": "native-ask";
502
- "no-wait": "no-wait";
503
- "schedule-wakeup": "schedule-wakeup";
504
- }>;
505
- registeredAt: z.ZodISODateTime;
506
- phase: z.ZodEnum<{
507
- cancelled: "cancelled";
508
- delivered: "delivered";
509
- open: "open";
510
- resolved: "resolved";
511
- }>;
512
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
513
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
514
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
515
- turnId: z.ZodString;
516
- kind: z.ZodLiteral<"pr">;
517
- deadline: z.ZodISODateTime;
518
- generation: z.ZodString;
519
- timeoutSeconds: z.ZodNumber;
520
- until: z.ZodEnum<{
521
- checks: "checks";
522
- merge: "merge";
523
- }>;
524
- wakeOnConflict: z.ZodBoolean;
525
- result: z.ZodOptional<z.ZodObject<{
526
- outcome: z.ZodEnum<{
527
- cancelled: "cancelled";
528
- closed: "closed";
529
- conflicting: "conflicting";
530
- deadline: "deadline";
531
- error: "error";
532
- failed: "failed";
533
- head_changed: "head_changed";
534
- merged: "merged";
535
- no_checks: "no_checks";
536
- passed: "passed";
537
- skipped: "skipped";
538
- }>;
539
- headSha: z.ZodString;
540
- observedHeadSha: z.ZodOptional<z.ZodString>;
541
- mergeable: z.ZodOptional<z.ZodEnum<{
542
- CONFLICTING: "CONFLICTING";
543
- MERGEABLE: "MERGEABLE";
544
- UNKNOWN: "UNKNOWN";
545
- }>>;
546
- mergeStateStatus: z.ZodOptional<z.ZodString>;
547
- mergedAt: z.ZodOptional<z.ZodISODateTime>;
548
- mergeCommitSha: z.ZodOptional<z.ZodString>;
549
- observedAt: z.ZodISODateTime;
550
- checks: z.ZodArray<z.ZodObject<{
551
- name: z.ZodString;
552
- state: z.ZodString;
553
- link: z.ZodString;
554
- }, z.core.$strict>>;
555
- totalChecks: z.ZodNumber;
556
- truncated: z.ZodBoolean;
557
- diagnostic: z.ZodOptional<z.ZodString>;
558
- }, z.core.$strict>>;
559
- }, z.core.$strict>, z.ZodObject<{
560
- id: z.ZodUUID;
561
- source: z.ZodEnum<{
562
- agent: "agent";
563
- cezar: "cezar";
564
- }>;
565
- via: z.ZodEnum<{
566
- "ask-line": "ask-line";
567
- budget: "budget";
568
- "cez-message-wait": "cez-message-wait";
569
- "cez-worker-wait": "cez-worker-wait";
570
- cezar_ask: "cezar_ask";
571
- cezar_wait: "cezar_wait";
572
- cezar_wait_for_ci: "cezar_wait_for_ci";
573
- completion: "completion";
574
- "monitoring-line": "monitoring-line";
575
- "native-ask": "native-ask";
576
- "no-wait": "no-wait";
577
- "schedule-wakeup": "schedule-wakeup";
578
- }>;
579
- registeredAt: z.ZodISODateTime;
580
- phase: z.ZodEnum<{
581
- cancelled: "cancelled";
582
- delivered: "delivered";
583
- open: "open";
584
- resolved: "resolved";
585
- }>;
586
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
587
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
588
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
589
- turnId: z.ZodString;
590
- kind: z.ZodLiteral<"timer">;
591
- deadline: z.ZodISODateTime;
592
- seconds: z.ZodNumber;
593
- note: z.ZodOptional<z.ZodString>;
594
- }, z.core.$strict>, z.ZodObject<{
595
- id: z.ZodUUID;
596
- source: z.ZodEnum<{
597
- agent: "agent";
598
- cezar: "cezar";
599
- }>;
600
- via: z.ZodEnum<{
601
- "ask-line": "ask-line";
602
- budget: "budget";
603
- "cez-message-wait": "cez-message-wait";
604
- "cez-worker-wait": "cez-worker-wait";
605
- cezar_ask: "cezar_ask";
606
- cezar_wait: "cezar_wait";
607
- cezar_wait_for_ci: "cezar_wait_for_ci";
608
- completion: "completion";
609
- "monitoring-line": "monitoring-line";
610
- "native-ask": "native-ask";
611
- "no-wait": "no-wait";
612
- "schedule-wakeup": "schedule-wakeup";
613
- }>;
614
- registeredAt: z.ZodISODateTime;
615
- phase: z.ZodEnum<{
616
- cancelled: "cancelled";
617
- delivered: "delivered";
618
- open: "open";
619
- resolved: "resolved";
620
- }>;
621
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
622
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
623
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
624
- turnId: z.ZodString;
625
- kind: z.ZodLiteral<"human">;
626
- questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
627
- id: z.ZodOptional<z.ZodString>;
628
- header: z.ZodString;
629
- question: z.ZodString;
630
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
631
- label: z.ZodString;
632
- description: z.ZodOptional<z.ZodString>;
633
- }, z.core.$strict>>>;
634
- multiSelect: z.ZodOptional<z.ZodBoolean>;
635
- }, z.core.$strict>>>;
636
- context: z.ZodOptional<z.ZodString>;
637
- askSeq: z.ZodOptional<z.ZodNumber>;
638
- }, z.core.$strict>, z.ZodObject<{
639
- id: z.ZodUUID;
640
- source: z.ZodEnum<{
641
- agent: "agent";
642
- cezar: "cezar";
643
- }>;
644
- via: z.ZodEnum<{
645
- "ask-line": "ask-line";
646
- budget: "budget";
647
- "cez-message-wait": "cez-message-wait";
648
- "cez-worker-wait": "cez-worker-wait";
649
- cezar_ask: "cezar_ask";
650
- cezar_wait: "cezar_wait";
651
- cezar_wait_for_ci: "cezar_wait_for_ci";
652
- completion: "completion";
653
- "monitoring-line": "monitoring-line";
654
- "native-ask": "native-ask";
655
- "no-wait": "no-wait";
656
- "schedule-wakeup": "schedule-wakeup";
657
- }>;
658
- registeredAt: z.ZodISODateTime;
659
- phase: z.ZodEnum<{
660
- cancelled: "cancelled";
661
- delivered: "delivered";
662
- open: "open";
663
- resolved: "resolved";
664
- }>;
665
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
666
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
667
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
668
- turnId: z.ZodString;
669
- kind: z.ZodLiteral<"worker">;
670
- deadline: z.ZodOptional<z.ZodISODateTime>;
671
- timeoutSeconds: z.ZodOptional<z.ZodNumber>;
672
- mode: z.ZodOptional<z.ZodEnum<{
673
- all: "all";
674
- any: "any";
675
- one: "one";
676
- }>>;
677
- workerIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
678
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
679
- workerId: z.ZodUUID;
680
- revision: z.ZodNumber;
681
- }, z.core.$strict>>>;
682
- outcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
683
- workerId: z.ZodUUID;
684
- status: z.ZodEnum<{
685
- cancelled: "cancelled";
686
- done: "done";
687
- failed: "failed";
688
- review: "review";
689
- }>;
690
- observedAt: z.ZodISODateTime;
691
- summary: z.ZodOptional<z.ZodString>;
692
- revision: z.ZodOptional<z.ZodNumber>;
693
- }, z.core.$strict>>>;
694
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
695
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
696
- requestId: z.ZodUUID;
697
- status: z.ZodEnum<{
698
- cancelled: "cancelled";
699
- "completed-without-reply": "completed-without-reply";
700
- deleted: "deleted";
701
- destroyed: "destroyed";
702
- failed: "failed";
703
- "human-fallback": "human-fallback";
704
- replied: "replied";
705
- "replied-late": "replied-late";
706
- "sender-closed": "sender-closed";
707
- "timed-out": "timed-out";
708
- }>;
709
- observedAt: z.ZodISODateTime;
710
- replyId: z.ZodOptional<z.ZodUUID>;
711
- }, z.core.$strict>>>;
712
- result: z.ZodOptional<z.ZodObject<{
713
- reason: z.ZodEnum<{
714
- outcome: "outcome";
715
- timeout: "timeout";
716
- }>;
717
- }, z.core.$strict>>;
718
- wakeInputId: z.ZodOptional<z.ZodUUID>;
719
- }, z.core.$strict>, z.ZodObject<{
720
- id: z.ZodUUID;
721
- source: z.ZodEnum<{
722
- agent: "agent";
723
- cezar: "cezar";
724
- }>;
725
- via: z.ZodEnum<{
726
- "ask-line": "ask-line";
727
- budget: "budget";
728
- "cez-message-wait": "cez-message-wait";
729
- "cez-worker-wait": "cez-worker-wait";
730
- cezar_ask: "cezar_ask";
731
- cezar_wait: "cezar_wait";
732
- cezar_wait_for_ci: "cezar_wait_for_ci";
733
- completion: "completion";
734
- "monitoring-line": "monitoring-line";
735
- "native-ask": "native-ask";
736
- "no-wait": "no-wait";
737
- "schedule-wakeup": "schedule-wakeup";
738
- }>;
739
- registeredAt: z.ZodISODateTime;
740
- phase: z.ZodEnum<{
741
- cancelled: "cancelled";
742
- delivered: "delivered";
743
- open: "open";
744
- resolved: "resolved";
745
- }>;
746
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
747
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
748
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
749
- turnId: z.ZodString;
750
- kind: z.ZodLiteral<"process">;
751
- deadline: z.ZodISODateTime;
752
- timeoutSeconds: z.ZodNumber;
753
- pid: z.ZodNumber;
754
- startToken: z.ZodOptional<z.ZodString>;
755
- exitFile: z.ZodOptional<z.ZodString>;
756
- note: z.ZodOptional<z.ZodString>;
757
- result: z.ZodOptional<z.ZodObject<{
758
- outcome: z.ZodEnum<{
759
- deadline: "deadline";
760
- error: "error";
761
- exit_file: "exit_file";
762
- exited: "exited";
763
- }>;
764
- observedAt: z.ZodISODateTime;
765
- exitCode: z.ZodOptional<z.ZodNumber>;
766
- exitFileNote: z.ZodOptional<z.ZodLiteral<"not-an-exit-code">>;
767
- diagnostic: z.ZodOptional<z.ZodString>;
768
- }, z.core.$strict>>;
769
- }, z.core.$strict>, z.ZodObject<{
770
- id: z.ZodUUID;
771
- source: z.ZodEnum<{
772
- agent: "agent";
773
- cezar: "cezar";
774
- }>;
775
- via: z.ZodEnum<{
776
- "ask-line": "ask-line";
777
- budget: "budget";
778
- "cez-message-wait": "cez-message-wait";
779
- "cez-worker-wait": "cez-worker-wait";
780
- cezar_ask: "cezar_ask";
781
- cezar_wait: "cezar_wait";
782
- cezar_wait_for_ci: "cezar_wait_for_ci";
783
- completion: "completion";
784
- "monitoring-line": "monitoring-line";
785
- "native-ask": "native-ask";
786
- "no-wait": "no-wait";
787
- "schedule-wakeup": "schedule-wakeup";
788
- }>;
789
- registeredAt: z.ZodISODateTime;
790
- phase: z.ZodEnum<{
791
- cancelled: "cancelled";
792
- delivered: "delivered";
793
- open: "open";
794
- resolved: "resolved";
795
- }>;
796
- resolvedAt: z.ZodOptional<z.ZodISODateTime>;
797
- deliveredAt: z.ZodOptional<z.ZodISODateTime>;
798
- cancelledAt: z.ZodOptional<z.ZodISODateTime>;
799
- turnId: z.ZodString;
800
- kind: z.ZodLiteral<"peer">;
801
- deadline: z.ZodISODateTime;
802
- timeoutSeconds: z.ZodNumber;
803
- peerIds: z.ZodArray<z.ZodUUID>;
804
- result: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
805
- reason: z.ZodLiteral<"message">;
806
- peerRunId: z.ZodUUID;
807
- messageId: z.ZodUUID;
808
- }, z.core.$strict>, z.ZodObject<{
809
- reason: z.ZodLiteral<"settled">;
810
- peerRunId: z.ZodUUID;
811
- }, z.core.$strict>, z.ZodObject<{
812
- reason: z.ZodLiteral<"timeout">;
813
- }, z.core.$strict>], "reason">>;
814
- }, z.core.$strict>], "kind">>>;
815
- previewServers: z.ZodOptional<z.ZodArray<z.ZodObject<{
816
- port: z.ZodNumber;
817
- command: z.ZodString;
818
- cwd: z.ZodOptional<z.ZodString>;
819
- label: z.ZodString;
820
- path: z.ZodOptional<z.ZodString>;
821
- registeredAt: z.ZodISODateTime;
822
- answeredAtRegistration: z.ZodBoolean;
823
- }, z.core.$strip>>>;
824
- taskImages: z.ZodOptional<z.ZodArray<z.ZodString>>;
825
- model: z.ZodOptional<z.ZodString>;
826
- effort: z.ZodOptional<z.ZodString>;
827
- modelIdentity: z.ZodOptional<z.ZodString>;
828
- agentProfile: z.ZodOptional<z.ZodString>;
829
- systemPrompt: z.ZodOptional<z.ZodString>;
830
- generateFollowups: z.ZodOptional<z.ZodBoolean>;
831
- autonomous: z.ZodOptional<z.ZodBoolean>;
832
- archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
833
- autoMergePr: z.ZodOptional<z.ZodBoolean>;
834
- completionAction: z.ZodOptional<z.ZodObject<{
835
- id: z.ZodString;
836
- phase: z.ZodEnum<{
837
- blocked: "blocked";
838
- complete: "complete";
839
- pending: "pending";
840
- }>;
841
- message: z.ZodOptional<z.ZodString>;
842
- }, z.core.$strip>>;
843
- archiveBlocker: z.ZodOptional<z.ZodObject<{
844
- message: z.ZodString;
845
- runId: z.ZodOptional<z.ZodString>;
846
- pullRequestUrl: z.ZodOptional<z.ZodString>;
847
- }, z.core.$strip>>;
848
- status: z.ZodEnum<{
849
- cancelled: "cancelled";
850
- done: "done";
851
- failed: "failed";
852
- queued: "queued";
853
- review: "review";
854
- running: "running";
855
- waiting: "waiting";
856
- }>;
857
- createdAt: z.ZodString;
858
- startedAt: z.ZodOptional<z.ZodString>;
859
- finishedAt: z.ZodOptional<z.ZodString>;
860
- tokensUsed: z.ZodNumber;
861
- inputTokens: z.ZodOptional<z.ZodNumber>;
862
- outputTokens: z.ZodOptional<z.ZodNumber>;
863
- costUsd: z.ZodOptional<z.ZodNumber>;
864
- pullRequestUrl: z.ZodOptional<z.ZodString>;
865
- referencedPullRequestUrl: z.ZodOptional<z.ZodString>;
866
- prNumber: z.ZodOptional<z.ZodNumber>;
867
- issueNumber: z.ZodOptional<z.ZodNumber>;
868
- referencedIssueNumberSeeded: z.ZodOptional<z.ZodBoolean>;
869
- titleOrigin: z.ZodOptional<z.ZodEnum<{
870
- auto: "auto";
871
- marker: "marker";
872
- user: "user";
873
- }>>;
874
- markerRefs: z.ZodOptional<z.ZodObject<{
875
- pr: z.ZodOptional<z.ZodNumber>;
876
- issue: z.ZodOptional<z.ZodNumber>;
877
- }, z.core.$strip>>;
878
- referencedPrCandidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
879
- referencedIssueUrl: z.ZodOptional<z.ZodString>;
880
- referencedIssueCandidates: z.ZodOptional<z.ZodArray<z.ZodString>>;
881
- worktree: z.ZodOptional<z.ZodLiteral<false>>;
882
- worktreePath: z.ZodOptional<z.ZodString>;
883
- branch: z.ZodOptional<z.ZodString>;
884
- baseBranch: z.ZodOptional<z.ZodString>;
885
- worktreeReclaimedAt: z.ZodOptional<z.ZodString>;
886
- groupId: z.ZodOptional<z.ZodString>;
887
- variant: z.ZodOptional<z.ZodString>;
888
- clientRequestId: z.ZodOptional<z.ZodString>;
889
- clientRequestHash: z.ZodOptional<z.ZodString>;
890
- peakRssBytes: z.ZodOptional<z.ZodNumber>;
891
- peakProcCount: z.ZodOptional<z.ZodNumber>;
892
- archivedAt: z.ZodOptional<z.ZodString>;
893
- autoArchive: z.ZodOptional<z.ZodObject<{
894
- reason: z.ZodLiteral<"pull-requests-merged">;
895
- archivedAt: z.ZodString;
896
- fingerprint: z.ZodString;
897
- pullRequests: z.ZodArray<z.ZodObject<{
898
- owner: z.ZodString;
899
- repo: z.ZodString;
900
- number: z.ZodNumber;
901
- mergedAt: z.ZodString;
902
- }, z.core.$strip>>;
903
- }, z.core.$strip>>;
904
- manualUnarchivedAt: z.ZodOptional<z.ZodString>;
905
- pinned: z.ZodOptional<z.ZodBoolean>;
906
- pinnedAt: z.ZodOptional<z.ZodString>;
907
- seenAt: z.ZodOptional<z.ZodString>;
908
- currentStepId: z.ZodOptional<z.ZodString>;
909
- error: z.ZodOptional<z.ZodString>;
910
- delegation: z.ZodCatch<z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
911
- role: z.ZodLiteral<"root">;
912
- conversation: z.ZodOptional<z.ZodObject<{
913
- messages: z.ZodArray<z.ZodObject<{
914
- senderRunId: z.ZodUUID;
915
- recipientRunId: z.ZodUUID;
916
- kind: z.ZodEnum<{
917
- "follow-up": "follow-up";
918
- progress: "progress";
919
- reply: "reply";
920
- request: "request";
921
- }>;
922
- requestId: z.ZodOptional<z.ZodUUID>;
923
- relationship: z.ZodOptional<z.ZodEnum<{
924
- family: "family";
925
- peer: "peer";
926
- }>>;
927
- id: z.ZodUUID;
928
- text: z.ZodString;
929
- createdAt: z.ZodISODateTime;
930
- deadline: z.ZodOptional<z.ZodISODateTime>;
931
- requestHash: z.ZodString;
932
- state: z.ZodEnum<{
933
- accepted: "accepted";
934
- "continuation-required": "continuation-required";
935
- destroyed: "destroyed";
936
- late: "late";
937
- }>;
938
- resumed: z.ZodOptional<z.ZodLiteral<true>>;
939
- instruction: z.ZodOptional<z.ZodString>;
940
- question: z.ZodOptional<z.ZodObject<{
941
- context: z.ZodOptional<z.ZodString>;
942
- questions: z.ZodArray<z.ZodObject<{
943
- id: z.ZodOptional<z.ZodString>;
944
- header: z.ZodString;
945
- question: z.ZodString;
946
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
947
- label: z.ZodString;
948
- description: z.ZodOptional<z.ZodString>;
949
- }, z.core.$strict>>>;
950
- multiSelect: z.ZodOptional<z.ZodBoolean>;
951
- }, z.core.$strict>>;
952
- }, z.core.$strict>>;
953
- }, z.core.$strict>>;
954
- outcomes: z.ZodArray<z.ZodObject<{
955
- requestId: z.ZodUUID;
956
- status: z.ZodEnum<{
957
- cancelled: "cancelled";
958
- "completed-without-reply": "completed-without-reply";
959
- deleted: "deleted";
960
- destroyed: "destroyed";
961
- failed: "failed";
962
- "human-fallback": "human-fallback";
963
- replied: "replied";
964
- "replied-late": "replied-late";
965
- "sender-closed": "sender-closed";
966
- "timed-out": "timed-out";
967
- }>;
968
- observedAt: z.ZodISODateTime;
969
- replyId: z.ZodOptional<z.ZodUUID>;
970
- }, z.core.$strict>>;
971
- }, z.core.$strict>>;
972
- permissions: z.ZodArray<z.ZodEnum<{
973
- destroy: "destroy";
974
- diff: "diff";
975
- inspect: "inspect";
976
- spawn: "spawn";
977
- steer: "steer";
978
- stop: "stop";
979
- wait: "wait";
980
- }>>;
981
- receipts: z.ZodArray<z.ZodObject<{
982
- requestId: z.ZodUUID;
983
- workerId: z.ZodUUID;
984
- requestHash: z.ZodString;
985
- deletion: z.ZodOptional<z.ZodObject<{
986
- phase: z.ZodEnum<{
987
- complete: "complete";
988
- pending: "pending";
989
- }>;
990
- revision: z.ZodNumber;
991
- resourceId: z.ZodUUID;
992
- generation: z.ZodUUID;
993
- }, z.core.$strict>>;
994
- }, z.core.$strict>>;
995
- wait: z.ZodOptional<z.ZodObject<{
996
- id: z.ZodUUID;
997
- workerIds: z.ZodArray<z.ZodUUID>;
998
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
999
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1000
- requestId: z.ZodUUID;
1001
- status: z.ZodEnum<{
1002
- cancelled: "cancelled";
1003
- "completed-without-reply": "completed-without-reply";
1004
- deleted: "deleted";
1005
- destroyed: "destroyed";
1006
- failed: "failed";
1007
- "human-fallback": "human-fallback";
1008
- replied: "replied";
1009
- "replied-late": "replied-late";
1010
- "sender-closed": "sender-closed";
1011
- "timed-out": "timed-out";
1012
- }>;
1013
- observedAt: z.ZodISODateTime;
1014
- replyId: z.ZodOptional<z.ZodUUID>;
1015
- }, z.core.$strict>>>;
1016
- deadline: z.ZodISODateTime;
1017
- mode: z.ZodOptional<z.ZodEnum<{
1018
- all: "all";
1019
- any: "any";
1020
- one: "one";
1021
- }>>;
1022
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1023
- workerId: z.ZodUUID;
1024
- revision: z.ZodNumber;
1025
- }, z.core.$strict>>>;
1026
- reason: z.ZodOptional<z.ZodEnum<{
1027
- cancelled: "cancelled";
1028
- message: "message";
1029
- outcome: "outcome";
1030
- timeout: "timeout";
1031
- }>>;
1032
- phase: z.ZodEnum<{
1033
- parked: "parked";
1034
- registered: "registered";
1035
- "wake-pending": "wake-pending";
1036
- }>;
1037
- outcomes: z.ZodArray<z.ZodObject<{
1038
- workerId: z.ZodUUID;
1039
- status: z.ZodEnum<{
1040
- cancelled: "cancelled";
1041
- done: "done";
1042
- failed: "failed";
1043
- review: "review";
1044
- }>;
1045
- observedAt: z.ZodISODateTime;
1046
- summary: z.ZodOptional<z.ZodString>;
1047
- revision: z.ZodOptional<z.ZodNumber>;
1048
- }, z.core.$strict>>;
1049
- wakeId: z.ZodOptional<z.ZodUUID>;
1050
- }, z.core.$strict>>;
1051
- lastWait: z.ZodOptional<z.ZodObject<{
1052
- id: z.ZodUUID;
1053
- workerIds: z.ZodArray<z.ZodUUID>;
1054
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1055
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1056
- requestId: z.ZodUUID;
1057
- status: z.ZodEnum<{
1058
- cancelled: "cancelled";
1059
- "completed-without-reply": "completed-without-reply";
1060
- deleted: "deleted";
1061
- destroyed: "destroyed";
1062
- failed: "failed";
1063
- "human-fallback": "human-fallback";
1064
- replied: "replied";
1065
- "replied-late": "replied-late";
1066
- "sender-closed": "sender-closed";
1067
- "timed-out": "timed-out";
1068
- }>;
1069
- observedAt: z.ZodISODateTime;
1070
- replyId: z.ZodOptional<z.ZodUUID>;
1071
- }, z.core.$strict>>>;
1072
- deadline: z.ZodISODateTime;
1073
- mode: z.ZodOptional<z.ZodEnum<{
1074
- all: "all";
1075
- any: "any";
1076
- one: "one";
1077
- }>>;
1078
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1079
- workerId: z.ZodUUID;
1080
- revision: z.ZodNumber;
1081
- }, z.core.$strict>>>;
1082
- reason: z.ZodOptional<z.ZodEnum<{
1083
- cancelled: "cancelled";
1084
- message: "message";
1085
- outcome: "outcome";
1086
- timeout: "timeout";
1087
- }>>;
1088
- phase: z.ZodEnum<{
1089
- parked: "parked";
1090
- registered: "registered";
1091
- "wake-pending": "wake-pending";
1092
- }>;
1093
- outcomes: z.ZodArray<z.ZodObject<{
1094
- workerId: z.ZodUUID;
1095
- status: z.ZodEnum<{
1096
- cancelled: "cancelled";
1097
- done: "done";
1098
- failed: "failed";
1099
- review: "review";
1100
- }>;
1101
- observedAt: z.ZodISODateTime;
1102
- summary: z.ZodOptional<z.ZodString>;
1103
- revision: z.ZodOptional<z.ZodNumber>;
1104
- }, z.core.$strict>>;
1105
- wakeId: z.ZodOptional<z.ZodUUID>;
1106
- }, z.core.$strict>>;
1107
- results: z.ZodOptional<z.ZodArray<z.ZodObject<{
1108
- workerId: z.ZodUUID;
1109
- revision: z.ZodNumber;
1110
- snapshotId: z.ZodUUID;
1111
- observedAt: z.ZodISODateTime;
1112
- lastExecutionOutcome: z.ZodEnum<{
1113
- cancelled: "cancelled";
1114
- completed: "completed";
1115
- failed: "failed";
1116
- "review-ready": "review-ready";
1117
- running: "running";
1118
- }>;
1119
- previous: z.ZodOptional<z.ZodObject<{
1120
- revision: z.ZodNumber;
1121
- observedAt: z.ZodISODateTime;
1122
- lastExecutionOutcome: z.ZodEnum<{
1123
- cancelled: "cancelled";
1124
- completed: "completed";
1125
- failed: "failed";
1126
- "review-ready": "review-ready";
1127
- running: "running";
1128
- }>;
1129
- }, z.core.$strict>>;
1130
- }, z.core.$strict>>>;
1131
- finishRequestedAt: z.ZodOptional<z.ZodISODateTime>;
1132
- historyDeletion: z.ZodOptional<z.ZodLiteral<"pending">>;
1133
- completion: z.ZodOptional<z.ZodObject<{
1134
- phase: z.ZodEnum<{
1135
- attention: "attention";
1136
- waiting: "waiting";
1137
- }>;
1138
- waitId: z.ZodOptional<z.ZodUUID>;
1139
- }, z.core.$strict>>;
1140
- }, z.core.$strict>, z.ZodObject<{
1141
- role: z.ZodLiteral<"worker">;
1142
- wait: z.ZodOptional<z.ZodObject<{
1143
- id: z.ZodUUID;
1144
- workerIds: z.ZodArray<z.ZodUUID>;
1145
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1146
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1147
- requestId: z.ZodUUID;
1148
- status: z.ZodEnum<{
1149
- cancelled: "cancelled";
1150
- "completed-without-reply": "completed-without-reply";
1151
- deleted: "deleted";
1152
- destroyed: "destroyed";
1153
- failed: "failed";
1154
- "human-fallback": "human-fallback";
1155
- replied: "replied";
1156
- "replied-late": "replied-late";
1157
- "sender-closed": "sender-closed";
1158
- "timed-out": "timed-out";
1159
- }>;
1160
- observedAt: z.ZodISODateTime;
1161
- replyId: z.ZodOptional<z.ZodUUID>;
1162
- }, z.core.$strict>>>;
1163
- deadline: z.ZodISODateTime;
1164
- mode: z.ZodOptional<z.ZodEnum<{
1165
- all: "all";
1166
- any: "any";
1167
- one: "one";
1168
- }>>;
1169
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1170
- workerId: z.ZodUUID;
1171
- revision: z.ZodNumber;
1172
- }, z.core.$strict>>>;
1173
- reason: z.ZodOptional<z.ZodEnum<{
1174
- cancelled: "cancelled";
1175
- message: "message";
1176
- outcome: "outcome";
1177
- timeout: "timeout";
1178
- }>>;
1179
- phase: z.ZodEnum<{
1180
- parked: "parked";
1181
- registered: "registered";
1182
- "wake-pending": "wake-pending";
1183
- }>;
1184
- outcomes: z.ZodArray<z.ZodObject<{
1185
- workerId: z.ZodUUID;
1186
- status: z.ZodEnum<{
1187
- cancelled: "cancelled";
1188
- done: "done";
1189
- failed: "failed";
1190
- review: "review";
1191
- }>;
1192
- observedAt: z.ZodISODateTime;
1193
- summary: z.ZodOptional<z.ZodString>;
1194
- revision: z.ZodOptional<z.ZodNumber>;
1195
- }, z.core.$strict>>;
1196
- wakeId: z.ZodOptional<z.ZodUUID>;
1197
- }, z.core.$strict>>;
1198
- lastWait: z.ZodOptional<z.ZodObject<{
1199
- id: z.ZodUUID;
1200
- workerIds: z.ZodArray<z.ZodUUID>;
1201
- requestIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
1202
- requestOutcomes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1203
- requestId: z.ZodUUID;
1204
- status: z.ZodEnum<{
1205
- cancelled: "cancelled";
1206
- "completed-without-reply": "completed-without-reply";
1207
- deleted: "deleted";
1208
- destroyed: "destroyed";
1209
- failed: "failed";
1210
- "human-fallback": "human-fallback";
1211
- replied: "replied";
1212
- "replied-late": "replied-late";
1213
- "sender-closed": "sender-closed";
1214
- "timed-out": "timed-out";
1215
- }>;
1216
- observedAt: z.ZodISODateTime;
1217
- replyId: z.ZodOptional<z.ZodUUID>;
1218
- }, z.core.$strict>>>;
1219
- deadline: z.ZodISODateTime;
1220
- mode: z.ZodOptional<z.ZodEnum<{
1221
- all: "all";
1222
- any: "any";
1223
- one: "one";
1224
- }>>;
1225
- revisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1226
- workerId: z.ZodUUID;
1227
- revision: z.ZodNumber;
1228
- }, z.core.$strict>>>;
1229
- reason: z.ZodOptional<z.ZodEnum<{
1230
- cancelled: "cancelled";
1231
- message: "message";
1232
- outcome: "outcome";
1233
- timeout: "timeout";
1234
- }>>;
1235
- phase: z.ZodEnum<{
1236
- parked: "parked";
1237
- registered: "registered";
1238
- "wake-pending": "wake-pending";
1239
- }>;
1240
- outcomes: z.ZodArray<z.ZodObject<{
1241
- workerId: z.ZodUUID;
1242
- status: z.ZodEnum<{
1243
- cancelled: "cancelled";
1244
- done: "done";
1245
- failed: "failed";
1246
- review: "review";
1247
- }>;
1248
- observedAt: z.ZodISODateTime;
1249
- summary: z.ZodOptional<z.ZodString>;
1250
- revision: z.ZodOptional<z.ZodNumber>;
1251
- }, z.core.$strict>>;
1252
- wakeId: z.ZodOptional<z.ZodUUID>;
1253
- }, z.core.$strict>>;
1254
- permissions: z.ZodArray<z.ZodEnum<{
1255
- destroy: "destroy";
1256
- diff: "diff";
1257
- inspect: "inspect";
1258
- spawn: "spawn";
1259
- steer: "steer";
1260
- stop: "stop";
1261
- wait: "wait";
1262
- }>>;
1263
- parentRunId: z.ZodUUID;
1264
- workspace: z.ZodObject<{
1265
- ownerRunId: z.ZodUUID;
1266
- resourceId: z.ZodUUID;
1267
- kind: z.ZodLiteral<"owned-isolated">;
1268
- path: z.ZodString;
1269
- branch: z.ZodString;
1270
- baselineSha: z.ZodString;
1271
- }, z.core.$strict>;
1272
- destroy: z.ZodOptional<z.ZodObject<{
1273
- requestedAt: z.ZodISODateTime;
1274
- phase: z.ZodEnum<{
1275
- cleaning: "cleaning";
1276
- complete: "complete";
1277
- incomplete: "incomplete";
1278
- requested: "requested";
1279
- terminating: "terminating";
1280
- }>;
1281
- remaining: z.ZodArray<z.ZodEnum<{
1282
- branch: "branch";
1283
- process: "process";
1284
- worktree: "worktree";
1285
- }>>;
1286
- error: z.ZodOptional<z.ZodString>;
1287
- }, z.core.$strict>>;
1288
- context: z.ZodOptional<z.ZodObject<{
1289
- text: z.ZodOptional<z.ZodString>;
1290
- inputs: z.ZodArray<z.ZodObject<{
1291
- source: z.ZodDiscriminatedUnion<[z.ZodObject<{
1292
- kind: z.ZodLiteral<"baseline-file">;
1293
- path: z.ZodString;
1294
- }, z.core.$strict>, z.ZodObject<{
1295
- kind: z.ZodLiteral<"parent-attachment">;
1296
- id: z.ZodString;
1297
- }, z.core.$strict>, z.ZodObject<{
1298
- kind: z.ZodLiteral<"parent-file">;
1299
- path: z.ZodString;
1300
- }, z.core.$strict>], "kind">;
1301
- path: z.ZodString;
1302
- sha256: z.ZodString;
1303
- bytes: z.ZodNumber;
1304
- }, z.core.$strict>>;
1305
- }, z.core.$strict>>;
1306
- executionRevision: z.ZodOptional<z.ZodNumber>;
1307
- executionStartSeq: z.ZodOptional<z.ZodNumber>;
1308
- }, z.core.$strict>, z.ZodObject<{
1309
- role: z.ZodLiteral<"invalid">;
1310
- }, z.core.$strict>], "role">>>;
1311
- lastWaitsError: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1312
- automaticWakes: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
1313
- waitDeliveryFailures: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
1314
- runner: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
1315
- claude: "claude";
1316
- "claude-cli": "claude-cli";
1317
- codex: "codex";
1318
- cursor: "cursor";
1319
- omp: "omp";
1320
- opencode: "opencode";
1321
- pi: "pi";
1322
- }>, z.ZodTransform<"claude" | "codex" | "cursor" | "omp" | "opencode" | "pi", "claude" | "claude-cli" | "codex" | "cursor" | "omp" | "opencode" | "pi">>>;
1323
- notify: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
1324
- webhook: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1325
- lastDeliveredAt: z.ZodOptional<z.ZodString>;
1326
- lastError: z.ZodOptional<z.ZodString>;
1327
- lastErrorWebhookId: z.ZodOptional<z.ZodString>;
1328
- }, z.core.$strip>>>;
1329
- destroyRetry: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1330
- attempts: z.ZodNumber;
1331
- nextAt: z.ZodISODateTime;
1332
- needsAttention: z.ZodOptional<z.ZodLiteral<true>>;
1333
- }, z.core.$strict>>>;
1334
- stopping: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
1335
- hasPendingPermission: z.ZodCatch<z.ZodOptional<z.ZodBoolean>>;
1336
- autoResumeAt: z.ZodCatch<z.ZodOptional<z.ZodString>>;
1337
- autoResumeAttempts: z.ZodCatch<z.ZodOptional<z.ZodNumber>>;
1338
- pullRequests: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
1339
- number: z.ZodNumber;
1340
- url: z.ZodOptional<z.ZodString>;
1341
- source: z.ZodEnum<{
1342
- created: "created";
1343
- declared: "declared";
1344
- }>;
1345
- }, z.core.$strip>>>>;
1346
- worktreeSetup: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1347
- status: z.ZodEnum<{
1348
- done: "done";
1349
- failed: "failed";
1350
- running: "running";
1351
- }>;
1352
- startedAt: z.ZodString;
1353
- finishedAt: z.ZodOptional<z.ZodString>;
1354
- durationMs: z.ZodOptional<z.ZodNumber>;
1355
- error: z.ZodOptional<z.ZodString>;
1356
- }, z.core.$strip>>>;
1357
- archived: z.ZodDefault<z.ZodBoolean>;
1358
- workflowDef: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1359
- name: z.ZodString;
1360
- description: z.ZodOptional<z.ZodString>;
1361
- steps: z.ZodArray<z.ZodObject<{
1362
- id: z.ZodString;
1363
- name: z.ZodOptional<z.ZodString>;
1364
- prompt: z.ZodOptional<z.ZodString>;
1365
- skill: z.ZodOptional<z.ZodString>;
1366
- model: z.ZodOptional<z.ZodString>;
1367
- effort: z.ZodOptional<z.ZodString>;
1368
- timeoutMs: z.ZodOptional<z.ZodNumber>;
1369
- runner: z.ZodOptional<z.ZodEnum<{
1370
- claude: "claude";
1371
- codex: "codex";
1372
- cursor: "cursor";
1373
- omp: "omp";
1374
- opencode: "opencode";
1375
- pi: "pi";
1376
- }>>;
1377
- agentProfile: z.ZodOptional<z.ZodString>;
1378
- allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1379
- bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
1380
- command: z.ZodOptional<z.ZodString>;
1381
- onFail: z.ZodOptional<z.ZodObject<{
1382
- retry: z.ZodString;
1383
- max: z.ZodDefault<z.ZodNumber>;
1384
- }, z.core.$strip>>;
1385
- }, z.core.$strip>>;
1386
- source: z.ZodEnum<{
1387
- "built-in": "built-in";
1388
- file: "file";
1389
- }>;
1390
- path: z.ZodOptional<z.ZodString>;
1391
- }, z.core.$strip>>>;
1392
- steps: z.ZodArray<z.ZodObject<{
1393
- id: z.ZodString;
1394
- name: z.ZodString;
1395
- kind: z.ZodEnum<{
1396
- agent: "agent";
1397
- check: "check";
1398
- }>;
1399
- status: z.ZodEnum<{
1400
- cancelled: "cancelled";
1401
- done: "done";
1402
- failed: "failed";
1403
- pending: "pending";
1404
- review: "review";
1405
- running: "running";
1406
- skipped: "skipped";
1407
- waiting: "waiting";
1408
- }>;
1409
- iterations: z.ZodNumber;
1410
- retriesUsed: z.ZodOptional<z.ZodNumber>;
1411
- tokensUsed: z.ZodNumber;
1412
- inputTokens: z.ZodOptional<z.ZodNumber>;
1413
- outputTokens: z.ZodOptional<z.ZodNumber>;
1414
- usageInvocationsStarted: z.ZodOptional<z.ZodNumber>;
1415
- usageInvocationsObserved: z.ZodOptional<z.ZodNumber>;
1416
- usageTurnsStarted: z.ZodOptional<z.ZodNumber>;
1417
- usageTurnsRecorded: z.ZodOptional<z.ZodNumber>;
1418
- usageInvocationEpoch: z.ZodOptional<z.ZodNumber>;
1419
- startedAt: z.ZodOptional<z.ZodString>;
1420
- finishedAt: z.ZodOptional<z.ZodString>;
1421
- error: z.ZodOptional<z.ZodString>;
1422
- sessionId: z.ZodOptional<z.ZodString>;
1423
- sessionTransport: z.ZodOptional<z.ZodEnum<{
1424
- "cursor-acp": "cursor-acp";
1425
- "cursor-print": "cursor-print";
1426
- }>>;
1427
- profileId: z.ZodOptional<z.ZodString>;
1428
- costUsd: z.ZodOptional<z.ZodNumber>;
1429
- synthetic: z.ZodOptional<z.ZodLiteral<"continuation">>;
1430
- backend: z.ZodOptional<z.ZodPipe<z.ZodEnum<{
1431
- claude: "claude";
1432
- "claude-cli": "claude-cli";
1433
- codex: "codex";
1434
- cursor: "cursor";
1435
- omp: "omp";
1436
- opencode: "opencode";
1437
- pi: "pi";
1438
- }>, z.ZodTransform<"claude" | "codex" | "cursor" | "omp" | "opencode" | "pi", "claude" | "claude-cli" | "codex" | "cursor" | "omp" | "opencode" | "pi">>>;
1439
- }, z.core.$strip>>;
1440
- automation: z.ZodOptional<z.ZodObject<{
1441
- automationId: z.ZodString;
1442
- receiptId: z.ZodString;
1443
- event: z.ZodString;
1444
- automationRevision: z.ZodNumber;
1445
- githubUrl: z.ZodString;
1446
- }, z.core.$strip>>;
1447
- automationTrigger: z.ZodOptional<z.ZodObject<{
1448
- automationId: z.ZodString;
1449
- receiptId: z.ZodString;
1450
- trigger: z.ZodEnum<{
1451
- "catch-up": "catch-up";
1452
- manual: "manual";
1453
- schedule: "schedule";
1454
- }>;
1455
- occurrenceAt: z.ZodString;
1456
- automationRevision: z.ZodNumber;
1457
- }, z.core.$strip>>;
1458
- handoffRecords: z.ZodCatch<z.ZodOptional<z.ZodObject<{
1459
- autosave: z.ZodArray<z.ZodObject<{
1460
- at: z.ZodString;
1461
- note: z.ZodString;
1462
- periodic: z.ZodOptional<z.ZodObject<{
1463
- branch: z.ZodNullable<z.ZodString>;
1464
- count: z.ZodNumber;
1465
- first: z.ZodNullable<z.ZodString>;
1466
- latest: z.ZodNullable<z.ZodString>;
1467
- }, z.core.$strip>>;
1468
- }, z.core.$strip>>;
1469
- }, z.core.$strip>>>;
1470
- }, z.core.$strip>;
1471
- /** A legacy `CiWait` as a wait entry. Its wake input's id was the wait's own (`wakeId`, which
1472
- * `run.ts` set to the wait id), so the entry keeps that id and delivery still finds the input. */
1473
- export declare function ciWaitEntry(wait: CiWait): PrWaitEntry;
1474
- /**
1475
- * A legacy agent `delegation.wait` as a worker wait entry (store schema 6, hearsay-tools/cezarion#1235),
1476
- * judged from the wait alone: what became of its wake input is `upgradeLegacyWaits`' to apply.
1477
- * `registered`/`parked` → open; `wake-pending` → resolved with its `outcome`/`timeout` reason, or
1478
- * cancelled. Undefined for the `message` stand-in, which was never an agent's wait: a message no
1479
- * longer resolves a wait, and its input still wakes the run on its own.
1480
- *
1481
- * Deterministic, never read from the clock: a row is upgraded on every read until open rewrites
1482
- * it, and two reads must agree. A `WorkerWait` kept no registration time, so `timeoutSeconds` is
1483
- * the 600 default, `registeredAt` is 600 s before the original deadline (kept as it was), and the
1484
- * settled stamps come from the wait itself: `resolvedAt` is the latest observation it holds, else
1485
- * its deadline, and `cancelledAt` is its deadline. `now` is only the fallback for a deadline that
1486
- * does not read, which the wait schema never admits.
1487
- */
1488
- export declare function workerWaitEntry(wait: WorkerWait, now: string): WorkerWaitEntry | undefined;
1489
- /** Whether a record is a root still parked on its workers: an open or resolved worker wait in the
1490
- * list. Such a root has its pending human question re-read from the transcript before a manager
1491
- * parks it. Every stored `delegation.wait`, the completion gate's included, is read into the list
1492
- * on open (store schema 7, hearsay-tools/cezarion#1301), so the list is the only place to look. */
1493
- export declare function holdsWorkerWait(run: Pick<RunRecord, 'delegation' | 'waits'>): boolean;
1494
- export declare function upgradeLegacyWaits(row: Record<string, unknown>): void;
1495
- /** Read legacy wait fields into the wait list and salvage per entry, identically for live stores
1496
- * and the read-only workspace index. */
1497
- export declare function parseRunRecords(raw: unknown): z.ZodSafeParseResult<{
1498
- id: string;
1499
- title: string;
1500
- titleSummary?: string | undefined;
1501
- diffStat?: {
1502
- adds: number;
1503
- dels: number;
1504
- files: number;
1505
- repointed?: boolean | undefined;
1506
- } | undefined;
1507
- workflow: string;
1508
- task: string;
1509
- queuedMessages?: {
1510
- id: string;
1511
- text: string;
1512
- images?: string[] | undefined;
1513
- createdAt: string;
1514
- }[] | undefined;
1515
- continuationMessage?: {
1516
- id: string;
1517
- text: string;
1518
- images?: string[] | undefined;
1519
- createdAt: string;
1520
- origin?: "human" | "lifecycle" | undefined;
1521
- agentInputId?: string | undefined;
1522
- resumeContext?: {
1523
- failure?: {
1524
- stepId?: string | undefined;
1525
- error: string;
1526
- } | undefined;
1527
- restarted?: true | undefined;
1528
- } | undefined;
1529
- } | undefined;
1530
- workflowResumeStepId?: string | undefined;
1531
- invalidAsk?: boolean | undefined;
1532
- agentInputs?: {
1533
- conversation?: {
1534
- senderRunId: string;
1535
- recipientRunId: string;
1536
- kind: "follow-up" | "progress" | "reply" | "request";
1537
- requestId?: string | undefined;
1538
- relationship?: "family" | "peer" | undefined;
1539
- } | undefined;
1540
- id: string;
1541
- source: "agent" | "lifecycle";
1542
- parentRunId: string;
1543
- text: string;
1544
- createdAt: string;
1545
- deliveredAt?: string | undefined;
1546
- consumedAt?: string | undefined;
1547
- awaitingRead?: true | undefined;
1548
- inboxClaim?: {
1549
- receiptId: string;
1550
- generation: string;
1551
- expiresAt: string;
1552
- acknowledgedAt?: string | undefined;
1553
- memberIds?: string[] | undefined;
1554
- } | undefined;
1555
- purpose?: "completion-refusal" | undefined;
1556
- requestHash?: string | undefined;
1557
- deadline?: string | undefined;
1558
- }[] | undefined;
1559
- waits?: ({
1560
- prUrl: string;
1561
- repository: string;
1562
- prNumber: number;
1563
- headSha: string;
1564
- id: string;
1565
- source: "agent" | "cezar";
1566
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1567
- registeredAt: string;
1568
- phase: "cancelled" | "delivered" | "open" | "resolved";
1569
- resolvedAt?: string | undefined;
1570
- deliveredAt?: string | undefined;
1571
- cancelledAt?: string | undefined;
1572
- turnId: string;
1573
- kind: "pr";
1574
- deadline: string;
1575
- generation: string;
1576
- timeoutSeconds: number;
1577
- until: "checks" | "merge";
1578
- wakeOnConflict: boolean;
1579
- result?: {
1580
- outcome: "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
1581
- headSha: string;
1582
- observedHeadSha?: string | undefined;
1583
- mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
1584
- mergeStateStatus?: string | undefined;
1585
- mergedAt?: string | undefined;
1586
- mergeCommitSha?: string | undefined;
1587
- observedAt: string;
1588
- checks: {
1589
- name: string;
1590
- state: string;
1591
- link: string;
1592
- }[];
1593
- totalChecks: number;
1594
- truncated: boolean;
1595
- diagnostic?: string | undefined;
1596
- } | undefined;
1597
- } | {
1598
- id: string;
1599
- source: "agent" | "cezar";
1600
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1601
- registeredAt: string;
1602
- phase: "cancelled" | "delivered" | "open" | "resolved";
1603
- resolvedAt?: string | undefined;
1604
- deliveredAt?: string | undefined;
1605
- cancelledAt?: string | undefined;
1606
- turnId: string;
1607
- kind: "timer";
1608
- deadline: string;
1609
- seconds: number;
1610
- note?: string | undefined;
1611
- } | {
1612
- id: string;
1613
- source: "agent" | "cezar";
1614
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1615
- registeredAt: string;
1616
- phase: "cancelled" | "delivered" | "open" | "resolved";
1617
- resolvedAt?: string | undefined;
1618
- deliveredAt?: string | undefined;
1619
- cancelledAt?: string | undefined;
1620
- turnId: string;
1621
- kind: "human";
1622
- questions?: {
1623
- id?: string | undefined;
1624
- header: string;
1625
- question: string;
1626
- options?: {
1627
- label: string;
1628
- description?: string | undefined;
1629
- }[] | undefined;
1630
- multiSelect?: boolean | undefined;
1631
- }[] | undefined;
1632
- context?: string | undefined;
1633
- askSeq?: number | undefined;
1634
- } | {
1635
- id: string;
1636
- source: "agent" | "cezar";
1637
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1638
- registeredAt: string;
1639
- phase: "cancelled" | "delivered" | "open" | "resolved";
1640
- resolvedAt?: string | undefined;
1641
- deliveredAt?: string | undefined;
1642
- cancelledAt?: string | undefined;
1643
- turnId: string;
1644
- kind: "worker";
1645
- deadline?: string | undefined;
1646
- timeoutSeconds?: number | undefined;
1647
- mode?: "all" | "any" | "one" | undefined;
1648
- workerIds?: string[] | undefined;
1649
- revisions?: {
1650
- workerId: string;
1651
- revision: number;
1652
- }[] | undefined;
1653
- outcomes?: {
1654
- workerId: string;
1655
- status: "cancelled" | "done" | "failed" | "review";
1656
- observedAt: string;
1657
- summary?: string | undefined;
1658
- revision?: number | undefined;
1659
- }[] | undefined;
1660
- requestIds?: string[] | undefined;
1661
- requestOutcomes?: {
1662
- requestId: string;
1663
- status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1664
- observedAt: string;
1665
- replyId?: string | undefined;
1666
- }[] | undefined;
1667
- result?: {
1668
- reason: "outcome" | "timeout";
1669
- } | undefined;
1670
- wakeInputId?: string | undefined;
1671
- } | {
1672
- id: string;
1673
- source: "agent" | "cezar";
1674
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1675
- registeredAt: string;
1676
- phase: "cancelled" | "delivered" | "open" | "resolved";
1677
- resolvedAt?: string | undefined;
1678
- deliveredAt?: string | undefined;
1679
- cancelledAt?: string | undefined;
1680
- turnId: string;
1681
- kind: "process";
1682
- deadline: string;
1683
- timeoutSeconds: number;
1684
- pid: number;
1685
- startToken?: string | undefined;
1686
- exitFile?: string | undefined;
1687
- note?: string | undefined;
1688
- result?: {
1689
- outcome: "deadline" | "error" | "exit_file" | "exited";
1690
- observedAt: string;
1691
- exitCode?: number | undefined;
1692
- exitFileNote?: "not-an-exit-code" | undefined;
1693
- diagnostic?: string | undefined;
1694
- } | undefined;
1695
- } | {
1696
- id: string;
1697
- source: "agent" | "cezar";
1698
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1699
- registeredAt: string;
1700
- phase: "cancelled" | "delivered" | "open" | "resolved";
1701
- resolvedAt?: string | undefined;
1702
- deliveredAt?: string | undefined;
1703
- cancelledAt?: string | undefined;
1704
- turnId: string;
1705
- kind: "peer";
1706
- deadline: string;
1707
- timeoutSeconds: number;
1708
- peerIds: string[];
1709
- result?: {
1710
- reason: "message";
1711
- peerRunId: string;
1712
- messageId: string;
1713
- } | {
1714
- reason: "settled";
1715
- peerRunId: string;
1716
- } | {
1717
- reason: "timeout";
1718
- } | undefined;
1719
- })[] | undefined;
1720
- lastWaits?: ({
1721
- prUrl: string;
1722
- repository: string;
1723
- prNumber: number;
1724
- headSha: string;
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" | "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: "pr";
1735
- deadline: string;
1736
- generation: string;
1737
- timeoutSeconds: number;
1738
- until: "checks" | "merge";
1739
- wakeOnConflict: boolean;
1740
- result?: {
1741
- outcome: "cancelled" | "closed" | "conflicting" | "deadline" | "error" | "failed" | "head_changed" | "merged" | "no_checks" | "passed" | "skipped";
1742
- headSha: string;
1743
- observedHeadSha?: string | undefined;
1744
- mergeable?: "CONFLICTING" | "MERGEABLE" | "UNKNOWN" | undefined;
1745
- mergeStateStatus?: string | undefined;
1746
- mergedAt?: string | undefined;
1747
- mergeCommitSha?: string | undefined;
1748
- observedAt: string;
1749
- checks: {
1750
- name: string;
1751
- state: string;
1752
- link: string;
1753
- }[];
1754
- totalChecks: number;
1755
- truncated: boolean;
1756
- diagnostic?: string | undefined;
1757
- } | undefined;
1758
- } | {
1759
- id: string;
1760
- source: "agent" | "cezar";
1761
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1762
- registeredAt: string;
1763
- phase: "cancelled" | "delivered" | "open" | "resolved";
1764
- resolvedAt?: string | undefined;
1765
- deliveredAt?: string | undefined;
1766
- cancelledAt?: string | undefined;
1767
- turnId: string;
1768
- kind: "timer";
1769
- deadline: string;
1770
- seconds: number;
1771
- note?: string | undefined;
1772
- } | {
1773
- id: string;
1774
- source: "agent" | "cezar";
1775
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1776
- registeredAt: string;
1777
- phase: "cancelled" | "delivered" | "open" | "resolved";
1778
- resolvedAt?: string | undefined;
1779
- deliveredAt?: string | undefined;
1780
- cancelledAt?: string | undefined;
1781
- turnId: string;
1782
- kind: "human";
1783
- questions?: {
1784
- id?: string | undefined;
1785
- header: string;
1786
- question: string;
1787
- options?: {
1788
- label: string;
1789
- description?: string | undefined;
1790
- }[] | undefined;
1791
- multiSelect?: boolean | undefined;
1792
- }[] | undefined;
1793
- context?: string | undefined;
1794
- askSeq?: number | undefined;
1795
- } | {
1796
- id: string;
1797
- source: "agent" | "cezar";
1798
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1799
- registeredAt: string;
1800
- phase: "cancelled" | "delivered" | "open" | "resolved";
1801
- resolvedAt?: string | undefined;
1802
- deliveredAt?: string | undefined;
1803
- cancelledAt?: string | undefined;
1804
- turnId: string;
1805
- kind: "worker";
1806
- deadline?: string | undefined;
1807
- timeoutSeconds?: number | undefined;
1808
- mode?: "all" | "any" | "one" | undefined;
1809
- workerIds?: string[] | undefined;
1810
- revisions?: {
1811
- workerId: string;
1812
- revision: number;
1813
- }[] | undefined;
1814
- outcomes?: {
1815
- workerId: string;
1816
- status: "cancelled" | "done" | "failed" | "review";
1817
- observedAt: string;
1818
- summary?: string | undefined;
1819
- revision?: number | undefined;
1820
- }[] | undefined;
1821
- requestIds?: string[] | undefined;
1822
- requestOutcomes?: {
1823
- requestId: string;
1824
- status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1825
- observedAt: string;
1826
- replyId?: string | undefined;
1827
- }[] | undefined;
1828
- result?: {
1829
- reason: "outcome" | "timeout";
1830
- } | undefined;
1831
- wakeInputId?: string | undefined;
1832
- } | {
1833
- id: string;
1834
- source: "agent" | "cezar";
1835
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1836
- registeredAt: string;
1837
- phase: "cancelled" | "delivered" | "open" | "resolved";
1838
- resolvedAt?: string | undefined;
1839
- deliveredAt?: string | undefined;
1840
- cancelledAt?: string | undefined;
1841
- turnId: string;
1842
- kind: "process";
1843
- deadline: string;
1844
- timeoutSeconds: number;
1845
- pid: number;
1846
- startToken?: string | undefined;
1847
- exitFile?: string | undefined;
1848
- note?: string | undefined;
1849
- result?: {
1850
- outcome: "deadline" | "error" | "exit_file" | "exited";
1851
- observedAt: string;
1852
- exitCode?: number | undefined;
1853
- exitFileNote?: "not-an-exit-code" | undefined;
1854
- diagnostic?: string | undefined;
1855
- } | undefined;
1856
- } | {
1857
- id: string;
1858
- source: "agent" | "cezar";
1859
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "no-wait" | "schedule-wakeup";
1860
- registeredAt: string;
1861
- phase: "cancelled" | "delivered" | "open" | "resolved";
1862
- resolvedAt?: string | undefined;
1863
- deliveredAt?: string | undefined;
1864
- cancelledAt?: string | undefined;
1865
- turnId: string;
1866
- kind: "peer";
1867
- deadline: string;
1868
- timeoutSeconds: number;
1869
- peerIds: string[];
1870
- result?: {
1871
- reason: "message";
1872
- peerRunId: string;
1873
- messageId: string;
1874
- } | {
1875
- reason: "settled";
1876
- peerRunId: string;
1877
- } | {
1878
- reason: "timeout";
1879
- } | undefined;
1880
- })[] | undefined;
1881
- previewServers?: {
1882
- port: number;
1883
- command: string;
1884
- cwd?: string | undefined;
1885
- label: string;
1886
- path?: string | undefined;
1887
- registeredAt: string;
1888
- answeredAtRegistration: boolean;
1889
- }[] | undefined;
1890
- taskImages?: string[] | undefined;
1891
- model?: string | undefined;
1892
- effort?: string | undefined;
1893
- modelIdentity?: string | undefined;
1894
- agentProfile?: string | undefined;
1895
- systemPrompt?: string | undefined;
1896
- generateFollowups?: boolean | undefined;
1897
- autonomous?: boolean | undefined;
1898
- archiveWhenDone?: boolean | undefined;
1899
- autoMergePr?: boolean | undefined;
1900
- completionAction?: {
1901
- id: string;
1902
- phase: "blocked" | "complete" | "pending";
1903
- message?: string | undefined;
1904
- } | undefined;
1905
- archiveBlocker?: {
1906
- message: string;
1907
- runId?: string | undefined;
1908
- pullRequestUrl?: string | undefined;
1909
- } | undefined;
1910
- status: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
1911
- createdAt: string;
1912
- startedAt?: string | undefined;
1913
- finishedAt?: string | undefined;
1914
- tokensUsed: number;
1915
- inputTokens?: number | undefined;
1916
- outputTokens?: number | undefined;
1917
- costUsd?: number | undefined;
1918
- pullRequestUrl?: string | undefined;
1919
- referencedPullRequestUrl?: string | undefined;
1920
- prNumber?: number | undefined;
1921
- issueNumber?: number | undefined;
1922
- referencedIssueNumberSeeded?: boolean | undefined;
1923
- titleOrigin?: "auto" | "marker" | "user" | undefined;
1924
- markerRefs?: {
1925
- pr?: number | undefined;
1926
- issue?: number | undefined;
1927
- } | undefined;
1928
- referencedPrCandidates?: string[] | undefined;
1929
- referencedIssueUrl?: string | undefined;
1930
- referencedIssueCandidates?: string[] | undefined;
1931
- worktree?: false | undefined;
1932
- worktreePath?: string | undefined;
1933
- branch?: string | undefined;
1934
- baseBranch?: string | undefined;
1935
- worktreeReclaimedAt?: string | undefined;
1936
- groupId?: string | undefined;
1937
- variant?: string | undefined;
1938
- clientRequestId?: string | undefined;
1939
- clientRequestHash?: string | undefined;
1940
- peakRssBytes?: number | undefined;
1941
- peakProcCount?: number | undefined;
1942
- archivedAt?: string | undefined;
1943
- autoArchive?: {
1944
- reason: "pull-requests-merged";
1945
- archivedAt: string;
1946
- fingerprint: string;
1947
- pullRequests: {
1948
- owner: string;
1949
- repo: string;
1950
- number: number;
1951
- mergedAt: string;
1952
- }[];
1953
- } | undefined;
1954
- manualUnarchivedAt?: string | undefined;
1955
- pinned?: boolean | undefined;
1956
- pinnedAt?: string | undefined;
1957
- seenAt?: string | undefined;
1958
- currentStepId?: string | undefined;
1959
- error?: string | undefined;
1960
- delegation?: {
1961
- role: "root";
1962
- conversation?: {
1963
- messages: {
1964
- senderRunId: string;
1965
- recipientRunId: string;
1966
- kind: "follow-up" | "progress" | "reply" | "request";
1967
- requestId?: string | undefined;
1968
- relationship?: "family" | "peer" | undefined;
1969
- id: string;
1970
- text: string;
1971
- createdAt: string;
1972
- deadline?: string | undefined;
1973
- requestHash: string;
1974
- state: "accepted" | "continuation-required" | "destroyed" | "late";
1975
- resumed?: true | undefined;
1976
- instruction?: string | undefined;
1977
- question?: {
1978
- context?: string | undefined;
1979
- questions: {
1980
- id?: string | undefined;
1981
- header: string;
1982
- question: string;
1983
- options?: {
1984
- label: string;
1985
- description?: string | undefined;
1986
- }[] | undefined;
1987
- multiSelect?: boolean | undefined;
1988
- }[];
1989
- } | undefined;
1990
- }[];
1991
- outcomes: {
1992
- requestId: string;
1993
- status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
1994
- observedAt: string;
1995
- replyId?: string | undefined;
1996
- }[];
1997
- } | undefined;
1998
- permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
1999
- receipts: {
2000
- requestId: string;
2001
- workerId: string;
2002
- requestHash: string;
2003
- deletion?: {
2004
- phase: "complete" | "pending";
2005
- revision: number;
2006
- resourceId: string;
2007
- generation: string;
2008
- } | undefined;
2009
- }[];
2010
- wait?: {
2011
- id: string;
2012
- workerIds: string[];
2013
- requestIds?: string[] | undefined;
2014
- requestOutcomes?: {
2015
- requestId: string;
2016
- status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2017
- observedAt: string;
2018
- replyId?: string | undefined;
2019
- }[] | undefined;
2020
- deadline: string;
2021
- mode?: "all" | "any" | "one" | undefined;
2022
- revisions?: {
2023
- workerId: string;
2024
- revision: number;
2025
- }[] | undefined;
2026
- reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
2027
- phase: "parked" | "registered" | "wake-pending";
2028
- outcomes: {
2029
- workerId: string;
2030
- status: "cancelled" | "done" | "failed" | "review";
2031
- observedAt: string;
2032
- summary?: string | undefined;
2033
- revision?: number | undefined;
2034
- }[];
2035
- wakeId?: string | undefined;
2036
- } | undefined;
2037
- lastWait?: {
2038
- id: string;
2039
- workerIds: string[];
2040
- requestIds?: string[] | undefined;
2041
- requestOutcomes?: {
2042
- requestId: string;
2043
- status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2044
- observedAt: string;
2045
- replyId?: string | undefined;
2046
- }[] | undefined;
2047
- deadline: string;
2048
- mode?: "all" | "any" | "one" | undefined;
2049
- revisions?: {
2050
- workerId: string;
2051
- revision: number;
2052
- }[] | undefined;
2053
- reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
2054
- phase: "parked" | "registered" | "wake-pending";
2055
- outcomes: {
2056
- workerId: string;
2057
- status: "cancelled" | "done" | "failed" | "review";
2058
- observedAt: string;
2059
- summary?: string | undefined;
2060
- revision?: number | undefined;
2061
- }[];
2062
- wakeId?: string | undefined;
2063
- } | undefined;
2064
- results?: {
2065
- workerId: string;
2066
- revision: number;
2067
- snapshotId: string;
2068
- observedAt: string;
2069
- lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
2070
- previous?: {
2071
- revision: number;
2072
- observedAt: string;
2073
- lastExecutionOutcome: "cancelled" | "completed" | "failed" | "review-ready" | "running";
2074
- } | undefined;
2075
- }[] | undefined;
2076
- finishRequestedAt?: string | undefined;
2077
- historyDeletion?: "pending" | undefined;
2078
- completion?: {
2079
- phase: "attention" | "waiting";
2080
- waitId?: string | undefined;
2081
- } | undefined;
2082
- } | {
2083
- role: "worker";
2084
- wait?: {
2085
- id: string;
2086
- workerIds: string[];
2087
- requestIds?: string[] | undefined;
2088
- requestOutcomes?: {
2089
- requestId: string;
2090
- status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2091
- observedAt: string;
2092
- replyId?: string | undefined;
2093
- }[] | undefined;
2094
- deadline: string;
2095
- mode?: "all" | "any" | "one" | undefined;
2096
- revisions?: {
2097
- workerId: string;
2098
- revision: number;
2099
- }[] | undefined;
2100
- reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
2101
- phase: "parked" | "registered" | "wake-pending";
2102
- outcomes: {
2103
- workerId: string;
2104
- status: "cancelled" | "done" | "failed" | "review";
2105
- observedAt: string;
2106
- summary?: string | undefined;
2107
- revision?: number | undefined;
2108
- }[];
2109
- wakeId?: string | undefined;
2110
- } | undefined;
2111
- lastWait?: {
2112
- id: string;
2113
- workerIds: string[];
2114
- requestIds?: string[] | undefined;
2115
- requestOutcomes?: {
2116
- requestId: string;
2117
- status: "cancelled" | "completed-without-reply" | "deleted" | "destroyed" | "failed" | "human-fallback" | "replied" | "replied-late" | "sender-closed" | "timed-out";
2118
- observedAt: string;
2119
- replyId?: string | undefined;
2120
- }[] | undefined;
2121
- deadline: string;
2122
- mode?: "all" | "any" | "one" | undefined;
2123
- revisions?: {
2124
- workerId: string;
2125
- revision: number;
2126
- }[] | undefined;
2127
- reason?: "cancelled" | "message" | "outcome" | "timeout" | undefined;
2128
- phase: "parked" | "registered" | "wake-pending";
2129
- outcomes: {
2130
- workerId: string;
2131
- status: "cancelled" | "done" | "failed" | "review";
2132
- observedAt: string;
2133
- summary?: string | undefined;
2134
- revision?: number | undefined;
2135
- }[];
2136
- wakeId?: string | undefined;
2137
- } | undefined;
2138
- permissions: ("destroy" | "diff" | "inspect" | "spawn" | "steer" | "stop" | "wait")[];
2139
- parentRunId: string;
2140
- workspace: {
2141
- ownerRunId: string;
2142
- resourceId: string;
2143
- kind: "owned-isolated";
2144
- path: string;
2145
- branch: string;
2146
- baselineSha: string;
2147
- };
2148
- destroy?: {
2149
- requestedAt: string;
2150
- phase: "cleaning" | "complete" | "incomplete" | "requested" | "terminating";
2151
- remaining: ("branch" | "process" | "worktree")[];
2152
- error?: string | undefined;
2153
- } | undefined;
2154
- context?: {
2155
- text?: string | undefined;
2156
- inputs: {
2157
- source: {
2158
- kind: "parent-file";
2159
- path: string;
2160
- } | {
2161
- kind: "baseline-file";
2162
- path: string;
2163
- } | {
2164
- kind: "parent-attachment";
2165
- id: string;
2166
- };
2167
- path: string;
2168
- sha256: string;
2169
- bytes: number;
2170
- }[];
2171
- } | undefined;
2172
- executionRevision?: number | undefined;
2173
- executionStartSeq?: number | undefined;
2174
- } | {
2175
- role: "invalid";
2176
- } | undefined;
2177
- lastWaitsError?: string | undefined;
2178
- automaticWakes?: number | undefined;
2179
- waitDeliveryFailures?: number | undefined;
2180
- runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
2181
- notify?: boolean | undefined;
2182
- webhook?: {
2183
- lastDeliveredAt?: string | undefined;
2184
- lastError?: string | undefined;
2185
- lastErrorWebhookId?: string | undefined;
2186
- } | undefined;
2187
- destroyRetry?: {
2188
- attempts: number;
2189
- nextAt: string;
2190
- needsAttention?: true | undefined;
2191
- } | undefined;
2192
- stopping?: boolean | undefined;
2193
- hasPendingPermission?: boolean | undefined;
2194
- autoResumeAt?: string | undefined;
2195
- autoResumeAttempts?: number | undefined;
2196
- pullRequests?: {
2197
- number: number;
2198
- url?: string | undefined;
2199
- source: "created" | "declared";
2200
- }[] | undefined;
2201
- worktreeSetup?: {
2202
- status: "done" | "failed" | "running";
2203
- startedAt: string;
2204
- finishedAt?: string | undefined;
2205
- durationMs?: number | undefined;
2206
- error?: string | undefined;
2207
- } | undefined;
2208
- archived: boolean;
2209
- workflowDef?: {
2210
- name: string;
2211
- description?: string | undefined;
2212
- steps: {
2213
- id: string;
2214
- name?: string | undefined;
2215
- prompt?: string | undefined;
2216
- skill?: string | undefined;
2217
- model?: string | undefined;
2218
- effort?: string | undefined;
2219
- timeoutMs?: number | undefined;
2220
- runner?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
2221
- agentProfile?: string | undefined;
2222
- allowedTools?: string[] | undefined;
2223
- bashAllowlist?: string[] | undefined;
2224
- command?: string | undefined;
2225
- onFail?: {
2226
- retry: string;
2227
- max: number;
2228
- } | undefined;
2229
- }[];
2230
- source: "built-in" | "file";
2231
- path?: string | undefined;
2232
- } | undefined;
2233
- steps: {
2234
- id: string;
2235
- name: string;
2236
- kind: "agent" | "check";
2237
- status: "cancelled" | "done" | "failed" | "pending" | "review" | "running" | "skipped" | "waiting";
2238
- iterations: number;
2239
- retriesUsed?: number | undefined;
2240
- tokensUsed: number;
2241
- inputTokens?: number | undefined;
2242
- outputTokens?: number | undefined;
2243
- usageInvocationsStarted?: number | undefined;
2244
- usageInvocationsObserved?: number | undefined;
2245
- usageTurnsStarted?: number | undefined;
2246
- usageTurnsRecorded?: number | undefined;
2247
- usageInvocationEpoch?: number | undefined;
2248
- startedAt?: string | undefined;
2249
- finishedAt?: string | undefined;
2250
- error?: string | undefined;
2251
- sessionId?: string | undefined;
2252
- sessionTransport?: "cursor-acp" | "cursor-print" | undefined;
2253
- profileId?: string | undefined;
2254
- costUsd?: number | undefined;
2255
- synthetic?: "continuation" | undefined;
2256
- backend?: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi" | undefined;
2257
- }[];
2258
- automation?: {
2259
- automationId: string;
2260
- receiptId: string;
2261
- event: string;
2262
- automationRevision: number;
2263
- githubUrl: string;
2264
- } | undefined;
2265
- automationTrigger?: {
2266
- automationId: string;
2267
- receiptId: string;
2268
- trigger: "catch-up" | "manual" | "schedule";
2269
- occurrenceAt: string;
2270
- automationRevision: number;
2271
- } | undefined;
2272
- handoffRecords?: {
2273
- autosave: {
2274
- at: string;
2275
- note: string;
2276
- periodic?: {
2277
- branch: string | null;
2278
- count: number;
2279
- first: string | null;
2280
- latest: string | null;
2281
- } | undefined;
2282
- }[];
2283
- } | undefined;
2284
- }[]>;
2285
- /** One stored record and what its JSON holds beyond the runtime schema (raw-record.ts), which
2286
- * the next write of its row puts back. */
2287
- export interface DecodedRun {
2288
- run: RunRecord;
2289
- extras: RawExtras | undefined;
2290
- /** The stored JSON still had schema-3 wait fields (`upgradeLegacyWaits`): open rewrites it. */
2291
- upgraded?: true;
2292
- }
2293
- /** One database row's `data` back into a record and its extras. Undefined when it does not parse:
2294
- * one unreadable row costs that row only. */
2295
- export declare function decodeRunRow(data: string): DecodedRun | undefined;
2296
- /** One database row's `data` back into a record, for a reader that never writes it back. */
2297
- export declare function decodeRunRecord(data: string): RunRecord | undefined;
2298
- export { LEGACY_INDEX_BACKUP_FILE, LEGACY_INDEX_FILE } from './legacy-index.ts';
2299
- export type StepState = z.infer<typeof stepStateSchema>;
2300
- export type QueuedMessage = z.infer<typeof queuedMessageSchema>;
2301
- export type RunRecord = z.infer<typeof runRecordSchema>;
2302
- /** One persisted event line; `type` mirrors AgentEvent plus engine lifecycle. */
2303
- export type RunEvent = import('../contract/index.js').RunEvent;
2304
- /** How many archived root runs the run lists carry per project (#864): `GET /run-summaries?archived=recent`
2305
- * and `GET /workspace/runs-index`. Unarchived runs are never cut; older archived runs page in
2306
- * through `GET /run-summaries/archived` and the workspace search. */
2307
- export declare const ARCHIVED_WINDOW = 200;
2308
- /** The repository a project IS, as `resolveRepoHandle` reports it. `null`/absent means "unknown",
2309
- * which is a real and common state (no `gh`, no remote, a non-git root) — never an error. */
2310
- export type RepoHandle = {
2311
- owner: string;
2312
- name: string;
2313
- };
2314
- /**
2315
- * Reconcile one record just read off disk with the fact that whichever process wrote it is gone.
2316
- *
2317
- * Mutates and returns `run`. Extracted from `RunStore.open` so the read-only index reader
2318
- * (`./run-index.ts`) answers the SAME question about a `running` row on disk. Two parsers that
2319
- * disagree here is a visible bug, not an internal one: the cockpit would show a task as running
2320
- * in the ⌘K index and failed the moment you opened it.
2321
- *
2322
- * `keepLive` (#367): leave `queued`/`running`/`waiting` untouched so the caller can recover them
2323
- * (RunManager.recover re-queues queued runs, resumes interrupted ones). Without it — one-shot CLI
2324
- * paths that never recover, and the index reader, which has no manager at all — live-looking runs
2325
- * are marked failed so no ghost stays behind.
2326
- */
2327
- export declare function reconcileLoadedRun(run: RunRecord, opts?: {
2328
- keepLive?: boolean;
2329
- }): RunRecord;
2330
- /**
2331
- * Settle an adopted dead owner’s live run without starting work. Untouched runs cancel; started
2332
- * runs become interrupted. Stop explicitly cancels its target. Mutates run.
2333
- */
2334
- export declare function settleOrphanedRun(run: RunRecord, opts?: {
2335
- stop?: boolean | undefined;
2336
- }): RunRecord;
2337
- /**
2338
- * Drop this run's referenced PR/issue if the project's handle proves it foreign and the prompt
2339
- * does not corroborate it (#945). Returns whether anything changed.
2340
- *
2341
- * One-directional by construction: it only ever clears fields, so a record written by an older
2342
- * cezar — or read by one after this ran — is never worse off, and a downgrade sees a record whose
2343
- * format is untouched and whose cleared fields were already optional.
2344
- */
2345
- export declare function rescopeRun(run: RunRecord, handle?: RepoHandle | null): boolean;
2346
- export declare function __setLegacyImportHookForTests(hook?: {
2347
- beforeTransaction?: () => void;
2348
- beforeCommit?: () => void;
2349
- }): void;
2350
- /** What branch cleanup and git-log attribution read about a run (`RunStore.listBranchOwners`). */
2351
- export interface BranchOwner {
2352
- id: string;
2353
- title: string;
2354
- status: RunStatus;
2355
- archived: boolean;
2356
- createdAt: string;
2357
- /** The branch the run owns (see `encodeRunRow`); absent for a run listed for its PR alone. */
2358
- branch?: string;
2359
- baseBranch?: string;
2360
- pullRequestUrl?: string;
2361
- }
2362
- /** A record as a branch owner, or undefined when it owns no branch and created no PR: the
2363
- * projection `listBranchOwners` reads off a row's summary and columns, computed from memory. */
2364
- export declare function branchOwnerOf(run: RunRecord): BranchOwner | undefined;
2365
- /** Who may hold a run in memory besides its own record (see `RunStore.pin`). `maintenance` is the
2366
- * RunManager's publish, worktree-reclaim and branch-cleanup claims, held across their async work. */
2367
- export type RunPinHolder = 'active' | 'continue' | 'cleanup' | 'maintenance';
2368
- /**
2369
- * Who may change a run, as this store sees it (#779, plan step 3; `RunStore.runOwnership`):
2370
- * - `held`: this store claims its delegation family;
2371
- * - `free`: no live process claims it and nothing in its family is live; a write takes it. A
2372
- * proven-dead owner's claim on such a family counts for nothing: there is nothing to recover;
2373
- * - `orphaned`: nobody alive owns a family that still has a live run (its owner died, or nobody
2374
- * claimed it): taking it means adopting it first (`RunStore.adoptFamily` settles it, then the
2375
- * manager recovers the family);
2376
- * - `foreign`: another process that is alive (or cannot be proven dead) holds it: read-only here;
2377
- * - `quarantined`: a write found it changed under this store; refused until cezar restarts.
2378
- */
2379
- export type RunOwnership = 'held' | 'free' | 'orphaned' | 'foreign' | 'quarantined';
2380
- /** The one answer every control gives for a run another cezar process owns (`409 { error }`). */
2381
- export declare const RUN_IN_USE_ELSEWHERE = "run is in use by another cezar process";
2382
- /** The answer for a run this process stopped writing after a conflicting write. */
2383
- export declare const RUN_QUARANTINED = "run changed under this cezar process \u2014 restart cezar to reload it";
2384
- /** A write this store must not make: another process owns the run, its owner died with work
2385
- * still live (adopt it first), or a conflict quarantined it. Nothing was changed. */
2386
- export declare class RunWriteRefusedError extends Error {
2387
- readonly runId: string;
2388
- readonly ownership: Exclude<RunOwnership, 'held' | 'free'>;
2389
- constructor(runId: string, ownership: Exclude<RunOwnership, 'held' | 'free'>);
2390
- }
2391
- /** Newest first, runs created in the same millisecond in insertion order: the order `runs.db`
2392
- * lists in, and the order every list had while it was a stable sort of the in-memory map. */
2393
- /** Why a `run` event fired, when a delegation checkpoint caused it or nothing durable changed
2394
- * (`republish`) (in-process only). */
2395
- export type CommitSource = 'delegation-checkpoint' | 'delegation-destroy-progress' | 'live-release';
2396
- /**
2397
- * Run rows in runs.db plus append-only NDJSON events and an in-process event bus. Hold live,
2398
- * pinned, related and unsettled records only. Optimistic writes debounce; durable commits
2399
- * publish after persistence. Family claims fence every write.
2400
- */
2401
- export declare class RunStore extends EventEmitter {
2402
- private readonly dataDir;
2403
- /** The held set: every record this store keeps in memory, by id. */
2404
- private readonly held;
2405
- /** Who holds a run beyond its record, by holder, so one holder's unpin never releases another. */
2406
- private readonly pins;
2407
- /** Staged ids while a durable commit installs and announces them: never evicted mid-commit. */
2408
- private readonly committing;
2409
- private saveTimer;
2410
- /** `null` once the store is closed, and in a `RunStore.unavailable` store (nothing is written,
2411
- * nothing is evicted). */
2412
- private db;
2413
- /** Why `open` failed, in a `RunStore.unavailable` store. */
2414
- private openFailure;
2415
- /** Runs whose held record is ahead of its row; the next save or commit writes them. */
2416
- private readonly dirty;
2417
- /** Runs gone from memory whose rows the next save or commit deletes. */
2418
- private readonly deleted;
2419
- /** Deleted runs whose history files (events, handoff, images, artifacts) go once the delete of
2420
- * their row commits: until then a conflict can undo the delete and bring the row back. */
2421
- private readonly historyOwed;
2422
- /** The repository this project IS (#945), armed after `open()` by `setRepoHandle`. Undefined
2423
- * until it arrives and `null` when it cannot be known — both mean "unscoped", which is
2424
- * exactly the pre-#945 behavior. */
2425
- private repoHandle;
2426
- /** `open()`'s `keepLive`, which a run read later from `runs.db` is reconciled with too. */
2427
- private keepLive;
2428
- /** This store's identity in `run_claims`; undefined without a database. */
2429
- private owner;
2430
- /** The families this store claims, with the generation each acquisition got. */
2431
- private readonly claimed;
2432
- /** Families judged free whose claim a busy database kept this store from taking: the next write
2433
- * of their rows takes it in its own transaction, if it is still as judged (null: absent). */
2434
- private readonly pendingClaims;
2435
- /** The revision and `data` of each held row (and pending deletion) as this store last read or
2436
- * wrote it: what a write is fenced against, and a conflict's "original". No entry: this store
2437
- * created the row and has not written it yet. `extras` is what that `data` holds beyond the
2438
- * schema, which the next write of the row puts back (raw-record.ts). */
2439
- private readonly base;
2440
- /** Rows read cold in the current synchronous turn, so a commit staged from one is fenced against
2441
- * the version it was computed from. `owned`: its family was already this store's when read.
2442
- * Cleared at the next microtask: no commit spans a turn. */
2443
- private readonly coldBase;
2444
- /** The family of each pending deletion, whose claim the deleting write is fenced against. */
2445
- private readonly deletedFamilies;
2446
- /** Rows a conflicting write excluded: this store refuses to write them until it is reopened. */
2447
- private readonly quarantined;
2448
- /** Rows whose `data` this store tried to decode and could not: left in the database untouched,
2449
- * and left out of the list rows from then on, as the cold reader leaves them out (run-index.ts). */
2450
- private readonly unreadable;
2451
- /** Background one-at-a-time compressor for archived transcripts (#818). */
2452
- private readonly compressor;
2453
- /** Transcript facts the delegation paths ask about, so they never re-read a transcript (#880). */
2454
- private readonly facts;
2455
- private readonly liveItems;
2456
- /** Capture both sources on the same synchronous sequence boundary before history IO. */
2457
- liveReadSnapshot(runId: string): {
2458
- events: {
2459
- [x: string]: unknown;
2460
- seq: number;
2461
- ts: string;
2462
- stepId?: string | undefined;
2463
- type: string;
2464
- }[];
2465
- throughSeq: number;
2466
- };
2467
- private constructor();
2468
- /**
2469
- * Open the project's run store. See `reconcileLoadedRun` for what `keepLive` (#367) decides
2470
- * about live-looking rows.
2471
- *
2472
- * Reads `runs.db` once its import is complete. Before that, `runs.json` is imported into it in
2473
- * one transaction (`importLegacyIndex`) and left exactly as it was, for older cezars to read.
2474
- * Either way only the held set is decoded: the live rows (by the indexed `live` column), the
2475
- * few finished rows a normalization still repairs, and the delegation families of the live
2476
- * ones.
2477
- *
2478
- * A store that cannot be opened is never an empty one (#779, plan step 4): `open` throws a
2479
- * `RunStoreOpenError` naming the cause, and nothing is reset, restored or deleted. `retryBusy`
2480
- * waits out a busy database (and a cockpit that may still be importing) with growing pauses,
2481
- * about 3.5 s in all, before it gives up. Open is synchronous, so the wait blocks this thread:
2482
- * only a boot passes it, while nothing else runs yet. Without it a busy database fails after
2483
- * one busy timeout.
2484
- */
2485
- static open(dataDir: string, opts?: {
2486
- keepLive?: boolean | undefined;
2487
- retryBusy?: boolean;
2488
- maintenance?: boolean;
2489
- }): RunStore;
2490
- private static openOnce;
2491
- /**
2492
- * The store `serve` keeps for its boot project when `open` failed: no database, nothing held,
2493
- * and every attempt to create or save a run refused with `failure`. The cockpit answers every
2494
- * route of that project with `failure`'s message, and boot skips everything that would read
2495
- * its empty run list as "no runs" (orphan pruning, retention, recovery, scratch sweeps). The
2496
- * way out is a restart once the cause is gone.
2497
- */
2498
- static unavailable(dataDir: string, failure: RunStoreOpenError): RunStore;
2499
- /** Why this store has no database, when it is `RunStore.unavailable`'s: its runs are unknown,
2500
- * not absent. */
2501
- get unavailable(): RunStoreOpenError | undefined;
2502
- /**
2503
- * Open-time load: the live rows, the finished rows a load normalization repairs, then the
2504
- * delegation families of the live ones. A row that does not parse is skipped and left in the
2505
- * database untouched; one warning says how many.
2506
- *
2507
- * Only rows this store can claim are loaded (#779, plan step 3). A live row whose family another
2508
- * live process claims — `serve`'s parked run, seen by a headless `cez run` — is that process's:
2509
- * it is not loaded, normalized or recovered here, and stays readable through `getRun` and the
2510
- * list rows. A live row nobody alive claims is taken over, as before: this open recovers it
2511
- * (`keepLive`) or settles it as interrupted.
2512
- */
2513
- private loadHeldRows;
2514
- /** Normalize a record just read from `row` (see `reconcileLoadedRun`) and hold it. Marks the row
2515
- * dirty only when normalization changed it, so the next save persists exactly the runs open()
2516
- * rewrote. A row read up from schema-3 wait fields counts as changed: its rewrite drops them
2517
- * and recomputes its summary and live column (`upgradeLegacyWaits`). The caller has claimed
2518
- * the row's family. */
2519
- private adoptLoadedRun;
2520
- /**
2521
- * Hold one delegation family: its root and the root's direct workers, read through the
2522
- * `parent_run_id` index. No recursion: workers cannot delegate, so a worker's own id never
2523
- * names a family. The caller has claimed it. `settle` settles its live rows instead of keeping
2524
- * them for recovery (`settleOrphanedRun`); `stopId` is the run a Stop settles as cancelled.
2525
- */
2526
- private holdFamily;
2527
- /**
2528
- * Make sure this store claims each of `families`, taking every one no live process holds, and
2529
- * return the ones it now holds. Liveness is judged here (`claimOwnerLive`), outside the write
2530
- * transaction; `takeClaims` then takes a claim only if it is still exactly what was judged.
2531
- *
2532
- * `allowLive` also takes a family that still has a live row although no live process owns it.
2533
- * Open and `adoptFamily` pass it, because recovery follows both, and so does a write moving a
2534
- * run this store holds into a new family (a worker quarantined to `invalid` becomes its own):
2535
- * an ordinary write must not quietly inherit a dead process's live run and leave it unrecovered.
2536
- * `wait` retries a busy database instead of leaving the claim to the next write: recovery
2537
- * cannot start without it.
2538
- */
2539
- private claimFamilies;
2540
- /** `takeClaims`, retried while another connection holds the write lock (each try waits out the
2541
- * busy timeout), then the busy error. */
2542
- private takeClaims;
2543
- /** Release the claim of every family with nothing left in memory, once nothing is pending: a
2544
- * failed save keeps its families claimed until it succeeds. A failed release retries at the
2545
- * next sweep; `close()` releases the rest. */
2546
- private releaseUnheldClaims;
2547
- /**
2548
- * Who may change this run right now (see `RunOwnership`), or undefined when there is no such
2549
- * run. Read-only: nothing is claimed. Controls ask this first, so a run another process owns is
2550
- * refused with `RUN_IN_USE_ELSEWHERE` and a dead process's run is adopted before it is changed.
2551
- */
2552
- runOwnership(id: string): RunOwnership | undefined;
2553
- /** Why a control on this run must be refused here, or undefined when this store may change it. */
2554
- writeRefusal(id: string): string | undefined;
2555
- /**
2556
- * Claim an orphaned family and settle its live rows before a control acts. Stop cancels its
2557
- * target. Return the root id, or undefined for a live owner or missing run; adoption never
2558
- * resumes work.
2559
- */
2560
- adoptFamily(id: string, opts?: {
2561
- stop?: boolean;
2562
- }): string | undefined;
2563
- /** Every run whose family another process owns — alive, or dead with a live run left to
2564
- * recover (cleanup keeps their scratch: it is theirs, or recovery's once someone adopts them).
2565
- * A dead owner's claim on a family with nothing live is no claim (see `runOwnership`). */
2566
- listForeignClaimedRunIds(): string[];
2567
- /**
2568
- * Whether a held run anchors itself (and its family) in memory. Anything else held is a family
2569
- * member or a settled write, and leaves at the next sweep (`evictSettled`).
2570
- *
2571
- * The held set is: every run that is live (`isLiveRecord`), pinned by a RunManager (`pin`),
2572
- * dirty, or inside a durable commit; plus the whole delegation family (root and direct
2573
- * workers) of any such run. Families are held because the RunManager reads a live run's family
2574
- * on every run event — `GET /runs/:id/relationships`, the global `reconcileWorkerWaits` pass
2575
- * (about twenty call sites), completion blockers and conversations — and decoding a cold
2576
- * record costs about 200 µs (JSON.parse plus the schema). Measured on a copy of a real
2577
- * cockpit's `runs.json` (958 runs, 957 of them delegated): a running root with 26 workers
2578
- * paid about 5 ms per family read, and the live families together about 10 ms per global
2579
- * pass, all on the event loop. Holding them costs memory in proportion to active work, not to
2580
- * history.
2581
- */
2582
- private isAnchor;
2583
- /** The family roots with an anchoring member in memory. */
2584
- private anchoredFamilies;
2585
- /** Drop every held run that is neither an anchor nor in an anchored family. A store without a
2586
- * database keeps everything: memory is the only copy it has. */
2587
- private evictSettled;
2588
- /** A run read from `runs.db`, normalized like a loaded one (`reconcileLoadedRun`, then the
2589
- * repository scope) but held by nobody. Undefined when absent, deleted or unreadable. */
2590
- private loadCold;
2591
- private decodeCold;
2592
- /** Hold a run just decoded from its row: the object every later read and write shares. */
2593
- private holdDecoded;
2594
- /**
2595
- * Bring a run into memory and return the held object: the record a write changes in place.
2596
- * It leaves again at the first sweep after its write settles, unless something anchors it.
2597
- * Its family is claimed first, then the row is read, so the version held is the claimed one;
2598
- * undefined while another process owns it (see `claimFamilies`).
2599
- */
2600
- private hold;
2601
- /** The record a store write changes in place: held, or loaded to be. Undefined for a run this
2602
- * store may not write (another process's, or quarantined), so the write changes nothing. */
2603
- private record;
2604
- /** The current record for reading: the held object, the held copy of a run whose family is in
2605
- * memory, or else a fresh copy nobody holds. */
2606
- private peek;
2607
- /**
2608
- * A run just read off its row, as reads answer it: held when its family is in memory (a live
2609
- * family's members are read on every run event), else a copy nobody holds — frozen under
2610
- * vitest when it leaves the store (`freeze`).
2611
- */
2612
- private answerCold;
2613
- /** `getRun` for a row a query already read: the held object, else decoded from `row`. */
2614
- private fromRow;
2615
- /** Whether the run exists, held or not, without decoding it. */
2616
- private hasRun;
2617
- /**
2618
- * Keep a run in memory for `holder` until `unpin(id, holder)`: a RunManager pins the runs it is
2619
- * executing (`active`) and the run a Continue is admitting (`continue`). A finished run is
2620
- * loaded. Pins are per holder, so releasing one never releases another. Returns the held record.
2621
- */
2622
- pin(id: string, holder: RunPinHolder): RunRecord | undefined;
2623
- /** Publish a run's current record again without a write: something read beside the record
2624
- * changed, such as the run leaving the manager's live registries, which a detail's finish
2625
- * verdict reads (hearsay-tools/cezarion#1301). */
2626
- republish(id: string): void;
2627
- /** Release `holder`'s pin. The run leaves memory at the next sweep once nothing else holds it. */
2628
- unpin(id: string, holder: RunPinHolder): void;
2629
- /**
2630
- * Set discovered repository identity without blocking boot. Recompute conclusions from retained
2631
- * evidence, including cold records; null retains unknown-handle behavior.
2632
- */
2633
- setRepoHandle(handle: RepoHandle | null): void;
2634
- /** Whether the stored summary still names a reference the scoped record no longer has. */
2635
- private storedScopeDiffers;
2636
- /**
2637
- * The live set, newest first: runs whose record is live (`isLiveRecord`) or that a RunManager
2638
- * pins. Finished runs are not here — read one by id (`getRun`), by an indexed query
2639
- * (`listWorkersOf`, `findRunByClientRequestId`, `listRunsWithWorktree`,
2640
- * `listBranchOwners`), or as list rows (`listRunSummaries`).
2641
- */
2642
- listRuns(): RunRecord[];
2643
- /** Where a held run lists: its row's insertion order, or after every row while this store has
2644
- * not written it yet. The held set keeps such runs in creation order, and so does every list
2645
- * that sorts them in held-set order (`sortNewestFirst` is stable). */
2646
- private listOrder;
2647
- /**
2648
- * EVERY run as a full record, newest first — decoded row by row. Only the legacy `GET /runs`
2649
- * (older clients; the cockpit reads `GET /run-summaries`) may call this: it is exactly the
2650
- * whole-history parse #779 exists to remove from everything else.
2651
- */
2652
- listAllRunsForLegacyRoute(): RunRecord[];
2653
- /** A bounded page of discoverable peer roots, including the current held overlay. */
2654
- listPeerTaskSummaries(options: PeerTaskPageOptions): {
2655
- runs: RunSummary[];
2656
- nextOffset?: number;
2657
- };
2658
- /**
2659
- * Every run as its list row, newest first: the stored `summary` column, with each held run's
2660
- * own projection laid over it — a debounced save keeps memory up to 300 ms ahead of the row,
2661
- * and a run created since the last save has no row yet. `usage` is the caller's to attach.
2662
- *
2663
- * With `archivedWindow` (#864), the window the cockpit's lists read: every unarchived run, plus
2664
- * the newest `archivedWindow` archived ROOT runs, and whether older archived roots were left
2665
- * out. Archived workers are never in it (see `RunDatabase.listWindowSummaries`); with `roots`,
2666
- * no worker is — the runs index, whose readers list no workers. A held run
2667
- * lists by its record, so one archived or unarchived since the last save is ranked as it is now.
2668
- *
2669
- * A row this store found unreadable is left out, as the cold reader leaves out a row it had to
2670
- * decode and could not. A finished row nobody has decoded is served from its summary by both,
2671
- * which decodes nothing; reading it is what finds out (`isUnreadable`).
2672
- */
2673
- listRunSummaries(options?: {
2674
- archivedWindow?: number | undefined;
2675
- roots?: boolean;
2676
- }): {
2677
- runs: RunSummary[];
2678
- truncated: boolean;
2679
- };
2680
- /**
2681
- * One page of archived ROOT runs, newest first (#864): `GET /run-summaries/archived`, the
2682
- * archived runs past the window. Held runs list by their record, as in `listRunSummaries`.
2683
- * `before` is the previous page's `nextCursor`; with `q`, only runs `matchesRunQuery` keeps, and
2684
- * `total` counts those. `automationNames` lets `q` match a task by its automation's name, as the
2685
- * list's origin line shows it (hearsay-tools/cezarion#1616). A cursor this store did not write
2686
- * answers `{ error }`.
2687
- *
2688
- * Ranking reads every archived root's key (id, created_at, seq: no record, no summary), so the
2689
- * page and `total` agree with the held overlay; only the page's own rows are read in full.
2690
- */
2691
- listArchivedRuns(options: {
2692
- before?: string;
2693
- limit: number;
2694
- q?: string;
2695
- automationNames?: AutomationNames;
2696
- }): ArchivedRunsResponse | {
2697
- error: string;
2698
- };
2699
- /** The archived roots in `runs.db`, each by its key: every one without `q` (no record, no
2700
- * summary read), and with `q` the searched rows `matchesRunSearch` keeps, which carry the summary
2701
- * the search read. A deleted, held or unreadable run's row is left out; a held run joins in
2702
- * `overlayHeldArchived`. */
2703
- private rankArchivedRows;
2704
- /** Lay the held archived roots over `ranked`, each by its record: it replaces its stored row
2705
- * (already left out of `ranked`), and with `q` it must match. A held worker never lists. */
2706
- private overlayHeldArchived;
2707
- /** The page of `ordered` after the cursor `after`: its summaries, the cursor of the next page,
2708
- * and `total`, the count of all of `ordered`. */
2709
- private archivedPage;
2710
- /** The page's summaries: a ranked key's own, else its stored one, read for the rows that have
2711
- * none in a single query. A row whose stored summary does not fit the contract is projected from
2712
- * its record; a row that cannot be read at all is left out. */
2713
- private hydrateArchivedPage;
2714
- /**
2715
- * The ROOT runs, archived or not, that match `query` (`matchesRunSearch`), newest first: at most
2716
- * `limit`, and whether more matched. The owned half of the workspace search (#864); held runs
2717
- * match by their record.
2718
- */
2719
- searchRunSummaries(query: string, limit: number): {
2720
- runs: RunSummary[];
2721
- truncated: boolean;
2722
- };
2723
- /** A row whose stored summary does not fit the contract any more, projected from its record. */
2724
- private coldSummary;
2725
- /**
2726
- * The run, or undefined. A held run is the held object (writes install into it). Any other run
2727
- * is a fresh copy of its row each call, normalized like a loaded record — frozen under vitest —
2728
- * so changing it means a store method, never an assignment.
2729
- */
2730
- getRun(id: string): RunRecord | undefined;
2731
- /** Whether the run's row is in `runs.db` but its record could not be read here: what tells a
2732
- * run that cannot open from one that does not exist. Known once something tried to read it. */
2733
- isUnreadable(id: string): boolean;
2734
- /** The ids in memory right now: the held set, for diagnostics and the benchmark's heap pass. */
2735
- heldIds(): string[];
2736
- /**
2737
- * The workers a root run owns, newest first, read off its own `receipts` (#659). Every
2738
- * `createOwnedRun` writes the receipt and the worker record in one transaction, and the
2739
- * receipt list is capped at 1,024 creations (#816), so this is a bounded lookup rather than a walk of the whole
2740
- * project index. An ordinary or worker run owns nothing and costs one map read; a receipt
2741
- * whose record has been deleted is skipped, never invented. A parent quarantined to
2742
- * `invalid` has no readable receipts and reports none, which is also what the cockpit
2743
- * assumes for that role.
2744
- */
2745
- listOwnedWorkers(parentId: string): RunRecord[];
2746
- /** Every worker filed under `parentId` (the `parent_run_id` index plus memory), newest first:
2747
- * receipts or not, which is what the reconcile and deletion checks ask. */
2748
- listWorkersOf(parentId: string): RunRecord[];
2749
- /** The id of every worker, held or stored, without decoding any (recovery's worker passes). */
2750
- listWorkerIds(): string[];
2751
- /** The id of every run whose delegation is quarantined (`invalid`), held or stored: its stored
2752
- * summary says so, so nothing is decoded (scratch cleanup). */
2753
- listQuarantinedRunIds(): string[];
2754
- /** All retained tasks this automation started, including variants, finished and archived runs.
2755
- * Logs and receipts may compact independently. Read only matching keys in SQLite and overlay
2756
- * held records so a debounced provenance update or deletion is reflected immediately. */
2757
- countAutomationRuns(automationId: string): number;
2758
- /** First non-archived task referencing a project issue, including secondary references. */
2759
- findNonArchivedRunByIssue(repo: string, number: number): string | undefined;
2760
- /**
2761
- * The runs automation receipts launched, by receipt id (`automation.receiptId` or
2762
- * `automationTrigger.receiptId`). Memory answers first; a receipt it does not know costs one
2763
- * pass over `runs.db` that reads the records' JSON in SQLite — only a crash leftover (a
2764
- * receipt still `reserved` at startup) ever asks.
2765
- */
2766
- findRunIdsByAutomationReceipt(receiptIds: readonly string[]): Map<string, string>;
2767
- /** The id of every root whose delegation carries a conversation, held or stored: recovery's full
2768
- * reconcile pass (#661). Only roots' records are read, in SQLite. `naming` keeps the ledgers whose
2769
- * messages name that run id, filtered there too, so a deleted peer decodes no other root. */
2770
- listConversationRootIds(naming?: string): string[];
2771
- /** The id of every run, held or stored, without decoding any (orphan-worktree sweeps). */
2772
- listRunIds(): string[];
2773
- /** Runs with a materialized worktree directory (`worktreePath`, not reclaimed), most recently
2774
- * finished first, then newest first: worktree retention and the worktrees panel. */
2775
- listRunsWithWorktree(): RunRecord[];
2776
- /**
2777
- * Every run that owns a branch or names the PR it created, as the few fields branch cleanup and
2778
- * git-log attribution read (issue 08 §B3, §B5; a squash commit is attributed by its PR number):
2779
- * the stored summary plus the `branch` and `base_branch` columns, so a Git-tab request decodes
2780
- * no record. Held runs answer from memory.
2781
- */
2782
- listBranchOwners(): BranchOwner[];
2783
- /** The rows a column query returned, as records, with memory laid over them: a held run
2784
- * answers from memory (matching `matches` there, not on its maybe-older row). */
2785
- private queryRuns;
2786
- /** The run an idempotent start already created (#504), archived or not. A deleted run is gone
2787
- * with its record, so a retry after deletion honestly creates a fresh one. */
2788
- findRunByClientRequestId(clientRequestId: string): RunRecord | undefined;
2789
- createRun(input: {
2790
- title: string;
2791
- systemPrompt?: string | undefined;
2792
- workflowDef?: z.infer<typeof workflowDefSchema>;
2793
- workflow: string;
2794
- task: string;
2795
- model?: string | undefined;
2796
- /** Reasoning-effort pin (#45). Absent = harness default. */
2797
- effort?: string | undefined;
2798
- runner?: RunnerId | undefined;
2799
- /** Composer's per-task agent account (spec 2026-07-29-agent-profiles). */
2800
- agentProfile?: string | undefined;
2801
- autonomous?: boolean | undefined;
2802
- archiveWhenDone?: boolean | undefined;
2803
- autoMergePr?: boolean | undefined;
2804
- /** Task webhook opt-in (#589), set at creation so the first transition is already covered. */
2805
- notify?: boolean | undefined;
2806
- worktree?: false | undefined;
2807
- groupId?: string;
2808
- variant?: string;
2809
- clientRequestId?: string | undefined;
2810
- clientRequestHash?: string | undefined;
2811
- /** Automation provenance, committed with the row that creates the run (hearsay-tools/cezarion#1465):
2812
- * a crash before a later write must still let reconciliation find the receipt's task. */
2813
- automation?: RunRecord['automation'];
2814
- automationTrigger?: RunRecord['automationTrigger'];
2815
- steps: Array<Pick<StepState, 'id' | 'name' | 'kind'>>;
2816
- }): RunRecord;
2817
- /** Build without publishing: owned creation must commit its receipt and run together. */
2818
- private buildRun;
2819
- /** Accept the family ledger and its recipient queue in a single durable index replacement. A new
2820
- * message (`message`, or the delivered input) whose ID is in use writes nothing; `recipientDelegation`
2821
- * makes a peer recipient with no delegation record a root task in the same write. */
2822
- commitConversation(rootId: string, conversation: ConversationState, delivery?: {
2823
- recipientRunId: string;
2824
- input: AgentInput;
2825
- recipientDelegation?: DelegationState;
2826
- }, message?: ConversationIdentity): void;
2827
- /** Crash recovery (#505): input a harness accepted but was never seen reading goes
2828
- * back to the queue. Returns the requeued IDs. */
2829
- requeueAwaitingReadInputs(id: string): string[];
2830
- /** Delivered, but the harness never confirmed reading it (#505): stop awaiting a read. */
2831
- commitAgentInputsUnconfirmed(id: string, ids: readonly string[]): void;
2832
- /** Observable atomic input checkpoint for the queue itself: enqueue, retire, reorder. Delivery
2833
- * and reads are outcomes (`commitOutcome`). */
2834
- commitAgentInputs(id: string, inputs: readonly AgentInput[]): void;
2835
- /** Reserve only unread conversation inputs in one durable index replacement. */
2836
- claimInboxInputs(runId: string, ids: readonly string[], claim: InboxClaim): void;
2837
- /** A receipt owns every matching input or none; exact ACK retries preserve the first timestamp. */
2838
- ackInboxInputs(runId: string, receiptId: string, generation: string, at: string): 'acknowledged' | 'already-acknowledged';
2839
- releaseInboxInputs(runId: string, receiptId: string, generation: string): 'released';
2840
- clearExpiredInboxClaims(runId: string, now: string): void;
2841
- /**
2842
- * A wait and its wake input share one atomic index replacement (spec 2026-10-17-unified-waits).
2843
- * Upserts `wait` by id into `waits` and clears `lastWaitsError`; `input` is appended once (an
2844
- * input whose id is already queued stays as it is). Only an open or resolved wait is committed
2845
- * here: settling is an outcome (`commitOutcome`). A new open wait
2846
- * past `WAIT_LIMIT` open ones is refused, so the list stays bounded whatever the caller checked.
2847
- */
2848
- commitWait(id: string, wait: Wait, input?: AgentInput): void;
2849
- /** A park that gives up its slot (hearsay-tools/cezarion#1235): the run and its step read
2850
- * `waiting`, committed at once instead of on the debounced save, so a refused write throws with
2851
- * nothing changed and the caller keeps the slot. */
2852
- commitParked(id: string, stepId?: string): void;
2853
- /** A usage-limit appointment withdrawn, committed at once instead of on the debounced save
2854
- * (hearsay-tools/cezarion#1236): a crash right after the withdrawal must not find it on disk,
2855
- * or recovery re-arms work the user cancelled. A run held for its resume settles `failed`. */
2856
- commitAutoResumeWithdrawal(id: string): void;
2857
- /** Legacy CI checkpoint over `commitWait`, kept until its callers move (unified waits, Task 4). */
2858
- commitCiWait(id: string, wait: CiWait, input?: AgentInput): void;
2859
- /** A human message beside a run's waits (hearsay-tools/cezarion#1235): accepted durably, and
2860
- * every wait stays. A lifecycle opening becomes
2861
- * the human's and keeps its wake text, so the message opens the continuation (and answers a
2862
- * pending question) and the owed results still reach the agent. */
2863
- commitHumanMessageBesideWaits(id: string, acceptedHumanMessage: QueuedMessage): void;
2864
- /**
2865
- * The one write of a run outcome (hearsay-tools/cezarion#1805): an input or wait delivered, a wake
2866
- * charged, a wait settled, a question answered, staged by `applyOutcomes` with what it depends on
2867
- * (`deps`) and committed in one transaction, with every pending row. A crash keeps all of it or
2868
- * none. Nothing changes: nothing is written. Needs no live session: it reads the stored record.
2869
- *
2870
- * A refused write throws with nothing changed. `bestEffort` is for a cleanup path, which must
2871
- * never stop on it: it warns and applies the change in memory for the debounced save to retry.
2872
- * A conversation request outcome is the other sanctioned write: `commitConversation`.
2873
- */
2874
- commitOutcome(id: string, outcomes: RunOutcome | readonly RunOutcome[], deps?: OutcomeDependencies, opts?: {
2875
- bestEffort?: boolean;
2876
- }): {
2877
- committed: boolean;
2878
- answered: string[];
2879
- };
2880
- /** An acknowledged inactive-root Finish must survive the async diff and restart. */
2881
- commitRootFinishIntent(id: string): void;
2882
- /** Cancellation supersedes pending Finish in one durable checkpoint. Also
2883
- * repairs cancelled-plus-intent snapshots left by older controllers. */
2884
- commitRootFinishCancellation(id: string): boolean;
2885
- /** Publish terminal success and completed steps only after their atomic checkpoint.
2886
- * A concurrent explicit cancellation is never overwritten by the async diff. */
2887
- commitRootFinishSuccess(id: string, status: 'done' | 'review'): boolean;
2888
- /** Persist all authority patches before exposing any of them to the engine or subscribers. */
2889
- commitDelegation(patches: ReadonlyArray<{
2890
- id: string;
2891
- delegation: DelegationState;
2892
- }>): void;
2893
- /** A pending destroy's automatic retry state, or its removal (hearsay-tools/cezarion#879). Kept on
2894
- * the record beside the strict delegation, so an older cezar strips it rather than quarantining the
2895
- * worker. Destroy progress: nothing the family reconcile reads changes. */
2896
- commitDestroyRetry(id: string, retry: WorkerDestroyRetry | undefined): void;
2897
- /** Accepted execution revision is public lifecycle identity, separate from process generations. */
2898
- commitWorkerContinuation(id: string, patch: Partial<Omit<RunRecord, 'id' | 'steps' | 'delegation'>>, step?: Pick<StepState, 'id' | 'name' | 'kind' | 'synthetic'>, conversation?: {
2899
- rootId: string;
2900
- state: ConversationState;
2901
- input: AgentInput;
2902
- }): void;
2903
- private workerResultsDir;
2904
- workerResultSnapshotPath(parentId: string, workerId: string, snapshotId: string): string;
2905
- private readWorkerResultFile;
2906
- readWorkerResult(parentId: string, workerId: string): WorkerCollectedResult | undefined;
2907
- readWorkerResultDiff(parentId: string, workerId: string): string | undefined;
2908
- /** Publish a pointer only after its redacted immutable snapshot reaches disk. Failed index writes retain the old evidence.
2909
- * A result whose evidence is already stored returns the stored one and writes nothing; `ignoreCleanup` is for a
2910
- * caller that only needs the payload durable, whatever cleanup phase the stored copy names. */
2911
- commitWorkerResult(parentId: string, value: WorkerCollectedResult, diffSnapshot?: string, opts?: {
2912
- ignoreCleanup?: boolean;
2913
- }): WorkerCollectedResult;
2914
- /**
2915
- * requestHash is supplied only by the trusted service: hash the ORIGINAL normalized request,
2916
- * before resolving refs. A retry keeps the original worker and pinned SHA even if HEAD moved.
2917
- * workspace.ownerRunId is the trusted service's preallocated worker UUID.
2918
- */
2919
- createOwnedRun(input: Parameters<RunStore['createRun']>[0], parentId: string, requestId: string, worker: DelegationState, requestHash: string, executionIdentity?: WorkerExecutionIdentity): RunRecord;
2920
- /**
2921
- * Durably replace or delete staged rows together with pending dirty rows. Persist before
2922
- * changing held objects or notifying subscribers. On failure retain all pending state; flush()
2923
- * remains best-effort.
2924
- */
2925
- private commitIndex;
2926
- /** Completion and its intent/archive share the same committed rows, including root Finish. */
2927
- private prepareCompletionActions;
2928
- private completionArchiveBlocker;
2929
- /** One archive write for manual actions, merge observations, completion, and sweeps.
2930
- * Archiving files history away; it never stops a process or removes a worktree. */
2931
- private stageArchive;
2932
- /** A bounded persisted queue also covers projects without a live RunManager. */
2933
- listCompletionCandidates(afterSeq?: number, limit?: number): Array<{
2934
- id: string;
2935
- seq: number;
2936
- }>;
2937
- canCompleteAction(id: string, token: string): boolean;
2938
- claimCompletionAction(id: string, token: string): boolean;
2939
- completeAction(id: string, token: string, phase: 'blocked' | 'complete', message?: string): boolean;
2940
- /**
2941
- * Refuse (throwing, with nothing changed) a commit that stages a quarantined run, or a run whose
2942
- * family this store does not claim and cannot take: another process owns it, or a dead process
2943
- * left it live and it has not been adopted.
2944
- */
2945
- private assertWritable;
2946
- /** The family of a run this store knows: held, else its row; a run nowhere is its own. */
2947
- private familyOf;
2948
- /** Schedule the sweep that lets any of `ids` leave memory, when one of them now can. */
2949
- private sweepIfSettled;
2950
- updateRun(id: string, patch: Partial<Omit<RunRecord, 'id' | 'steps'>>): RunRecord | undefined;
2951
- /** Prompt edits can both revoke and restore a reference. Resolve the retained working sets
2952
- * before notifying readers, using the same ambiguity, marker and repository rules as events. */
2953
- private resolveEditedTaskRefs;
2954
- /**
2955
- * Scrub the free-text fields of a record patch (#427 review). Redacting only
2956
- * events left a hole: `titleSummary` is derived from the RAW first agent turn
2957
- * and `error` from raw process output, so a token the agent echoed was
2958
- * `[REDACTED]` in the NDJSON yet verbatim in `runs.json` — the file the "no
2959
- * secrets in state files" rule names explicitly. These three are the only
2960
- * patch fields carrying agent/process text; the rest are ids, enums, counters
2961
- * and URLs, and running the scrubber over them would only risk mangling them.
2962
- *
2963
- * `StepState.error` is the step-level counterpart and is scrubbed the same
2964
- * way in `updateStep` — `run.ts` feeds the SAME `err.message` string to both
2965
- * calls, so redacting only the run-level copy left the token verbatim one
2966
- * field away (#456 review).
2967
- */
2968
- private redactPatch;
2969
- /**
2970
- * Step-level counterpart of `redactPatch` (#456 review). `error` is the only
2971
- * free-text `StepState` field — it is set from raw `err.message` /process
2972
- * output (`workflows/run/step-loop.ts` `finishStep`), and `touch()` fans the whole record out
2973
- * over SSE, so an unscrubbed copy leaked to `runs.json` AND to the browser.
2974
- * The remaining fields are ids, enums, counters and timestamps.
2975
- */
2976
- private redactStepPatch;
2977
- /** Append a step to an existing run (used by "Continue" — spec 003). */
2978
- addStep(runId: string, step: Pick<StepState, 'id' | 'name' | 'kind' | 'synthetic'>): void;
2979
- updateStep(runId: string, stepId: string, patch: Partial<Omit<StepState, 'id'>>): void;
2980
- listArchiveOnMergeCandidates(afterSeq?: number, limit?: number): Array<{
2981
- id: string;
2982
- seq: number;
2983
- }>;
2984
- /** Use unnormalized persisted evidence: cold reads must not turn interrupted work into safety. */
2985
- private archiveFamily;
2986
- /** Blockers are feedback, never archive authority or cleanup permission. */
2987
- setArchiveBlocker(id: string, blocker: RunRecord['archiveBlocker']): void;
2988
- archiveMergeBlocker(snapshot: ArchiveOnMergeSnapshot, missing: ArchivePullRequestIdentity, repoBase?: string): void;
2989
- hasArchiveOnMergeAssociations(id: string): boolean;
2990
- prepareArchiveOnMerge(id: string): Promise<void>;
2991
- archiveOnMergeSnapshot(id: string, repoBase?: string, isActive?: (id: string) => boolean): ArchiveOnMergeSnapshot | undefined;
2992
- private archiveSnapshot;
2993
- /** No await between final revalidation and the fenced, all-or-nothing cascade. */
2994
- archiveAfterMerge(snapshot: ArchiveOnMergeSnapshot, observations: readonly MergedPullRequest[], repoBase?: string, isActive?: (id: string) => boolean): boolean;
2995
- setArchived(id: string, archived: boolean): RunRecord | undefined;
2996
- /** Parent + owned workers; returns how many records flipped `archived`. */
2997
- private applyArchivedCascade;
2998
- private applyArchived;
2999
- /** Transcript form follows `archived`: enqueue compression, or restore the plain file now. */
3000
- private syncTranscriptForm;
3001
- /**
3002
- * Whether this store may compress `id`'s transcript: the run exists, is archived, is not in a
3003
- * live status (queued/running/waiting), and this process holds the family's claim in `claimed`
3004
- * (not merely `pendingClaims`). Two processes never both write a run (#779, #818 B1).
3005
- */
3006
- private isHistoryCompressEligible;
3007
- /** Take the family claim if free and require it to be in `this.claimed`, not only pending. */
3008
- private holdsCompressClaim;
3009
- /** Startup sweep: enqueue every archived non-live run that still has a plain transcript. */
3010
- compressArchivedHistory(): void;
3011
- /** Resolves when the transcript compressor is idle (tests, shutdown). */
3012
- historyIdle(): Promise<void>;
3013
- /** Pin one run to the top of this project's task list, or unpin it (#935). Mirrors
3014
- * `setArchived`: sets the fields, then persists + broadcasts via `touch`, so the updated
3015
- * record rides the existing `run` SSE with no new event. Idempotent — re-pinning a pinned
3016
- * run just re-stamps `pinnedAt`.
3017
- *
3018
- * Every active status is pinnable. Archived requests clear stale metadata instead, so a
3019
- * late click racing archive cannot leave a hidden pin that reappears on unarchive. */
3020
- setPinned(id: string, pinned: boolean): RunRecord | undefined;
3021
- /** Bulk-archive finished runs (#780). `isSweepable` decides which; `archived` counts every
3022
- * record that flipped (cascaded workers included), `ids` lists the top-level runs picked and
3023
- * `pinnedIds` the subset that carried a pin before `clearPin` dropped it. */
3024
- archiveFinished(scope?: ArchiveFinishedScope, automation?: boolean): {
3025
- archived: number;
3026
- ids: string[];
3027
- pinnedIds: string[];
3028
- };
3029
- /** Mark one run as read (#unread-done-items): stamp the read receipt now. Mirrors
3030
- * `setArchived` — sets the field then persists + broadcasts via `touch`, so the
3031
- * updated record rides the existing `run` SSE with no new event. Idempotent by
3032
- * design: opening an already-read thread just re-stamps a later `seenAt`. */
3033
- setRead(id: string): RunRecord | undefined;
3034
- /** Mark one run as UNread (#775): drop the read receipt so the run rejoins the unread
3035
- * list. The inverse of `setRead` and, like it, `touch`es so the updated record rides the
3036
- * existing `run` SSE.
3037
- *
3038
- * Deleting the field rather than adding a "manually unread" flag is the whole point:
3039
- * absent `seenAt` is ALREADY what every reader treats as unread (`isUnread` in the
3040
- * cockpit's read-state.ts, and `markAllRead`'s clause-for-clause copy of it below), so
3041
- * clearing needs no new state and writes a shape any older cezar already parses.
3042
- *
3043
- * Deliberately unconditional: clearing a receipt is always a legal write, so this
3044
- * succeeds for an already-unread run (idempotent) and for statuses that can never wear
3045
- * the marker. WHETHER the action means anything for a given run is UI policy, and lives
3046
- * in the cockpit's `runActionFlags` — the same split the rest of the store keeps. */
3047
- setUnread(id: string): RunRecord | undefined;
3048
- /**
3049
- * Stamp unread finished runs in bulk and return the count. Keep the rule aligned with cockpit
3050
- * isUnread: done/failed, finished since seen, not archived; cancelled and usage-limit waiting
3051
- * runs are excluded. `automation` narrows it to one origin, as in `archiveFinished`
3052
- * (hearsay-tools/cezarion#1616); absent stamps both.
3053
- */
3054
- markAllRead(automation?: boolean): number;
3055
- appendEvent(runId: string, event: {
3056
- type: string;
3057
- stepId?: string | undefined;
3058
- [key: string]: unknown;
3059
- }): RunEvent;
3060
- /**
3061
- * Fold every PR URL in `haystack` into the run's referenced-tier working
3062
- * set and re-resolve `referencedPullRequestUrl` (spec
3063
- * 2026-07-16-pr-autodiscovery). Mutates the record in place — the caller
3064
- * owns persistence/fan-out — and reports whether anything changed.
3065
- */
3066
- private trackReferencedPrs;
3067
- /**
3068
- * The issue-side mirror of `trackReferencedPrs` (spec
3069
- * 2026-07-21-report-ref-discovery): fold every issue URL in `haystack` into
3070
- * the working set and re-resolve `referencedIssueUrl`. An unambiguous
3071
- * resolution also seeds `issueNumber` when nothing owns that field yet —
3072
- * marker and namer both outrank this janitor and overwrite it freely.
3073
- */
3074
- private trackReferencedIssues;
3075
- /**
3076
- * Apply agent-declared reference markers (spec 2026-07-18-task-ref-markers).
3077
- * Marker values are authoritative for the display tier: they overwrite the
3078
- * regex/namer numbers unless the prompt identifies the originating issue, and a declared PR re-resolves the referenced URL
3079
- * against the candidate working set — including down to `undefined` when no
3080
- * candidate matches (a wrong chip is worse than no chip). The created tier
3081
- * (`pullRequestUrl`) is deliberately untouched.
3082
- *
3083
- * One declaration is NOT a statement about the referenced tier: the number of the PR this run
3084
- * itself created. See `referencedPrDeclaration` — the marker contract asks the agent to
3085
- * re-declare after it opens a PR, and taking that literally cost the task the PR it was about.
3086
- */
3087
- applyMarkerRefs(runId: string, refs: {
3088
- pr?: number | undefined;
3089
- prs?: readonly number[] | undefined;
3090
- issue?: number | undefined;
3091
- }): RunRecord | undefined;
3092
- /** Authoritative creation keeps the first scalar for publishing, plus every created identity. */
3093
- recordCreatedPr(runId: string, url: string): RunRecord | undefined;
3094
- private accumulatePullRequests;
3095
- /**
3096
- * Fan an event out to live subscribers WITHOUT writing it to the NDJSON
3097
- * file — the channel for coalesced `item.delta` flushes (protocol-v2
3098
- * performance guardrail: raw deltas never hit disk; replay = the persisted
3099
- * snapshots). Stamped with `seq`/`ts` like persisted lines so the live
3100
- * wire keeps one ordering axis. Finite polling coalesces active item content
3101
- * into bounded in-memory snapshots on that clock; disk replay still has gaps
3102
- * (dedup compares with `>`).
3103
- */
3104
- emitEphemeral(runId: string, event: {
3105
- type: string;
3106
- stepId?: string;
3107
- [key: string]: unknown;
3108
- }): RunEvent;
3109
- /** Lazily-collected concrete secret values from the host env (#427). */
3110
- private secretValues;
3111
- /** Controller-issued tokens never persist, including when host-secret redaction is disabled. */
3112
- private readonly sessionSecrets;
3113
- registerSessionSecret(value: string): void;
3114
- containsSessionSecret(value: string): boolean;
3115
- /**
3116
- * Scrub known credential values / token shapes from an event before it is
3117
- * persisted or fanned out. On by default; `CEZ_REDACT_SECRETS=0` opts out.
3118
- */
3119
- private redact;
3120
- /** Best-effort scrub of one free-text string bound for `runs.json`. Honors
3121
- * the `CEZ_REDACT_SECRETS=0` opt-out itself so every caller inherits it. */
3122
- redactText(text: string): string;
3123
- private hostSecrets;
3124
- /** The run's indexed transcript facts (#880): a read-only view, never a transcript read once
3125
- * the run's index is loaded. An unreadable transcript answers as empty, as readEvents does. */
3126
- transcriptFacts(runId: string): Readonly<TranscriptFacts>;
3127
- /** The run's transcript facts when they are known: undefined when the transcript exists but its
3128
- * facts are not current or cannot be read, so a caller can tell "no ask" from "no evidence". */
3129
- knownTranscriptFacts(runId: string): Readonly<TranscriptFacts> | undefined;
3130
- hasProjection(runId: string, projectionId: string): boolean;
3131
- private factsWarming;
3132
- /** Indexed family enumeration, including members not yet flushed to SQLite. */
3133
- listFamilyRunIds(rootId: string): string[];
3134
- private recoveryFactIds;
3135
- /** Readiness owns no run snapshot across an await: refresh only the currently held owner. */
3136
- prepareTranscriptFacts(runIds: Iterable<string>): Promise<void>;
3137
- prepareRecoveryFacts(familyRootId?: string): Promise<void>;
3138
- /** Register IDs only here; the index yields between cache reads and off-loop rebuilds. */
3139
- private warmTranscriptFacts;
3140
- /** Resolves when the open-time warm-up is done (tests). */
3141
- factsWarmIdle(): Promise<void>;
3142
- /** `readEvents` off the event loop (async read and async brotli), for collection paths. */
3143
- readEventsAsync(runId: string): Promise<RunEvent[]>;
3144
- readEvents(runId: string): RunEvent[];
3145
- /** Private process-generation evidence; never part of run JSON or SSE. */
3146
- private identityPath;
3147
- readWorkerIdentity(id: string): WorkerExecutionIdentity | undefined;
3148
- private writeWorkerIdentity;
3149
- private executionPath;
3150
- readWorkerExecution(id: string): WorkerExecution | undefined;
3151
- private writeWorkerExecution;
3152
- /** Complete execution is not permission to reuse/delete persistent resources (#738).
3153
- * Synchronous, fresh and generation/resource fenced; callers hold admission off across awaits. */
3154
- workerResourcesSafe(id: string, generation: string, resourceId: string, admittingQueued?: boolean): boolean;
3155
- /** `workerResourcesSafe` with the refusal's live PIDs (empty when no PID explains it). */
3156
- workerResourceHolders(id: string, generation: string, resourceId: string, opts?: {
3157
- admittingQueued?: boolean;
3158
- cwds?: CwdSource | undefined;
3159
- }): 'safe' | number[];
3160
- /** Upgrade a legacy completed checkpoint while terminal task ownership is still known.
3161
- * No holder scan here: settlement and scheduling must never wait on cleanup proof. */
3162
- retainWorkerScratchCleanup(id: string): void;
3163
- /** Cleanup can outlive its index row, but never its generation or terminal task intent.
3164
- * `cwds` is the scratch reprobe tick's shared `/proc` snapshot (hearsay-tools/cezarion#879). */
3165
- workerScratchResourcesSafe(id: string, generation: string, resourceId: string, cwds?: CwdSource): boolean;
3166
- commitWorkerExecutionStart(id: string): string;
3167
- /** Private process record (#469): which processes a generation spawned, never part of run JSON or SSE. */
3168
- private processesPath;
3169
- /** Tri-state: only ENOENT is `absent` (legacy, scan-only). A present record that is unreadable,
3170
- * wrongly permissioned, malformed or of another generation is `unknown`: never finalized or reaped. */
3171
- readWorkerProcesses(id: string, generation: string): WorkerProcessRecord | 'absent' | 'unknown';
3172
- private writeWorkerProcesses;
3173
- /** Bound to the current generation. Past the cap the record never drops an entry: the
3174
- * working-directory scan is the remaining evidence. */
3175
- appendWorkerProcess(id: string, generation: string, pid: number, pgid?: number): boolean;
3176
- commitWorkerExecutionComplete(id: string, generation: string): boolean;
3177
- /** Cancellation must hit disk before queued no-start evidence authorizes cleanup. */
3178
- commitWorkerCancellation(id: string): void;
3179
- /** Complete replacement evidence can stand in for absent child history, never for a present execution. */
3180
- readDeletedWorkerResult(parentId: string, workerId: string): WorkerCollectedResult | undefined;
3181
- /** A deleted child's receipt replaces the private proof only after the deletion checkpoint. */
3182
- private workerDeletionEvidence;
3183
- private workerDeletionResult;
3184
- canDeleteRun(id: string): boolean;
3185
- /** Delegated history deletion is synchronous and checkpointed; any failed byte/index removal remains retryable. */
3186
- private deleteDelegatedRun;
3187
- private removeRunHistoryBytes;
3188
- deleteRun(id: string): boolean;
3189
- /** Write the pending rows out now (used on shutdown). */
3190
- flush(): void;
3191
- private seqs;
3192
- private nextSeq;
3193
- /** After a restart the in-memory counter is empty while the run's NDJSON file
3194
- * keeps the history. Restarting from 1 would collide with the seqs a client
3195
- * already replayed — its `seq > maxSeq` dedup then silently drops every
3196
- * resumed event, even across a reload (the frozen-transcript symptom class
3197
- * of #424). One file read on the first post-restart append per run. */
3198
- private rehydrateSeq;
3199
- private eventsPath;
3200
- /** Same location `handoffPath()` in handoff.ts produces — inlined to keep
3201
- * the store free of upward imports. */
3202
- private handoffPath;
3203
- /** Agent screenshots persisted by the run manager (see persistImage). */
3204
- private imagesDir;
3205
- private touch;
3206
- /** Form follows archived: a terminal archived run with a plain transcript is queued again. */
3207
- private maybeEnqueueHistoryCompress;
3208
- /** The held record is gone; the next save or commit deletes its row, fenced by `family`'s claim
3209
- * and by the revision this store last saw (kept in `base` until the delete is written). */
3210
- private markDeleted;
3211
- /** A deleted run's history files, once the delete of its row has committed. Best effort, as
3212
- * deletion always was. */
3213
- private removeOwedHistory;
3214
- /**
3215
- * Count-based history retention: of the runs past the newest `MAX_RUNS_KEPT` unarchived ones,
3216
- * archive each finished run without delegation that is not pinned and whose family this store
3217
- * can claim. Ranked over the row keys (the `created_at` index, no record decoded) with memory
3218
- * laid over them, since a run created or archived since the last save has no row yet; the rows
3219
- * past the cut are then filtered in `runs.db`, so only real candidates decode. Archived runs
3220
- * are never deleted by retention — only an explicit delete, worker destruction, or history
3221
- * deletion removes a run.
3222
- */
3223
- private pruneOldRuns;
3224
- /** Debounced so token-usage updates don't rewrite a row per event. Nothing to schedule without
3225
- * a database: a `RunStore.unavailable` store, or a closed one, writes nothing. */
3226
- private scheduleSave;
3227
- /** The single database write, so a test can fail it the way a full disk would. */
3228
- private writeIndex;
3229
- /**
3230
- * Write `staged` plus everything still pending — dirty rows from memory, deletions — in one
3231
- * transaction, then clear the pending marks. Throws with nothing cleared when it fails.
3232
- * Never copies or sorts the whole store: the cost is the rows that changed.
3233
- *
3234
- * Fenced (#779, plan step 3): the transaction commits only if every family it writes still
3235
- * carries this store's claim and every row is at the revision this store last saw. Otherwise
3236
- * nothing is written and `handleConflicts` deals with the rows that changed under it.
3237
- */
3238
- private persist;
3239
- /** What a write of these rows (id → family) must still find: this store's claims, at the
3240
- * generations it took them, and each row at the revision it last saw (none for a new row). */
3241
- private fence;
3242
- /**
3243
- * Handle a fenced-write conflict. Save unexpected conflict evidence before clearing pending
3244
- * state or quarantining the row. If evidence persistence fails, retain pending writes. Other
3245
- * rows remain writable; stale unclaimed reads only fail their write.
3246
- */
3247
- private handleConflicts;
3248
- /** Write what is pending, then (unless closing) let every run whose write settled leave memory. */
3249
- private saveNow;
3250
- /**
3251
- * Write what is pending and release the database (store disposal, process shutdown).
3252
- * Idempotent. A closed store keeps answering reads for what it holds — the final save evicts
3253
- * nothing — but cannot read `runs.db` any more, so a run that had already left memory reads as
3254
- * absent. It saves nothing more, and a durable commit on it throws.
3255
- */
3256
- close(): void;
3257
- }
3258
- export interface ArchiveOnMergeSnapshot {
3259
- rootId: string;
3260
- fingerprint: string;
3261
- pullRequests: ArchivePullRequestIdentity[];
3262
- token: string;
3263
- }