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

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