@open-mercato/cezar 0.19.0-pr1908.4332 → 0.19.0-pr1908.4683

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 (608) hide show
  1. package/README.md +3 -2
  2. package/dist/agent-config/account-identity.js +3 -0
  3. package/dist/agent-config/account-identity.js.map +1 -1
  4. package/dist/agent-config/catalog.d.ts +7 -1
  5. package/dist/agent-config/catalog.js +174 -4
  6. package/dist/agent-config/catalog.js.map +1 -1
  7. package/dist/agent-config/model-settings/gemini.d.ts +8 -0
  8. package/dist/agent-config/model-settings/gemini.js +16 -0
  9. package/dist/agent-config/model-settings/gemini.js.map +1 -0
  10. package/dist/agent-config/model-settings/kimi.d.ts +7 -0
  11. package/dist/agent-config/model-settings/kimi.js +13 -0
  12. package/dist/agent-config/model-settings/kimi.js.map +1 -0
  13. package/dist/agent-config/model-settings/omp.d.ts +11 -0
  14. package/dist/agent-config/model-settings/omp.js +17 -0
  15. package/dist/agent-config/model-settings/omp.js.map +1 -0
  16. package/dist/agent-config/model-settings/shared.d.ts +6 -0
  17. package/dist/agent-config/model-settings/shared.js +17 -3
  18. package/dist/agent-config/model-settings/shared.js.map +1 -1
  19. package/dist/agent-config/models.js +6 -0
  20. package/dist/agent-config/models.js.map +1 -1
  21. package/dist/agent-config/validate.js +15 -0
  22. package/dist/agent-config/validate.js.map +1 -1
  23. package/dist/automations/automation-cli.d.ts +2 -0
  24. package/dist/automations/automation-cli.js +82 -2
  25. package/dist/automations/automation-cli.js.map +1 -1
  26. package/dist/automations/deferred-start.d.ts +5 -4
  27. package/dist/automations/deferred-start.js +5 -1
  28. package/dist/automations/deferred-start.js.map +1 -1
  29. package/dist/automations/paused-work.d.ts +24 -0
  30. package/dist/automations/paused-work.js +61 -0
  31. package/dist/automations/paused-work.js.map +1 -0
  32. package/dist/automations/pr-head.d.ts +3 -0
  33. package/dist/automations/pr-head.js +8 -4
  34. package/dist/automations/pr-head.js.map +1 -1
  35. package/dist/automations/prompts.js +1 -0
  36. package/dist/automations/prompts.js.map +1 -1
  37. package/dist/automations/store.d.ts +16 -0
  38. package/dist/automations/store.js +44 -0
  39. package/dist/automations/store.js.map +1 -1
  40. package/dist/automations/task-template.js +1 -0
  41. package/dist/automations/task-template.js.map +1 -1
  42. package/dist/automations/templates.js +1 -0
  43. package/dist/automations/templates.js.map +1 -1
  44. package/dist/automations/types.d.ts +24 -0
  45. package/dist/automations/types.js +2 -0
  46. package/dist/automations/types.js.map +1 -1
  47. package/dist/automations/validate-input.d.ts +188 -0
  48. package/dist/automations/validate-input.js +85 -0
  49. package/dist/automations/validate-input.js.map +1 -0
  50. package/dist/config.d.ts +12 -5
  51. package/dist/config.js +4 -12
  52. package/dist/config.js.map +1 -1
  53. package/dist/contract/agent-config.d.ts +9 -0
  54. package/dist/contract/agent-profiles.d.ts +74 -20
  55. package/dist/contract/agent.d.ts +12 -0
  56. package/dist/contract/artifacts.d.ts +138 -0
  57. package/dist/contract/assets.d.ts +83 -0
  58. package/dist/contract/automations.d.ts +158 -0
  59. package/dist/contract/dashboard-costs.d.ts +2 -0
  60. package/dist/contract/dashboard.d.ts +8 -0
  61. package/dist/contract/deferred-start.d.ts +33 -0
  62. package/dist/contract/dispatch.d.ts +9 -0
  63. package/dist/contract/events.d.ts +6 -0
  64. package/dist/contract/github.d.ts +13 -0
  65. package/dist/contract/health.d.ts +12 -0
  66. package/dist/contract/impact.d.ts +134 -0
  67. package/dist/contract/index.d.ts +6 -0
  68. package/dist/contract/index.js +2955 -2547
  69. package/dist/contract/managers.d.ts +79 -0
  70. package/dist/contract/runners.d.ts +15 -0
  71. package/dist/contract/runs.d.ts +292 -0
  72. package/dist/contract/skills.d.ts +67 -0
  73. package/dist/contract/telemetry.d.ts +5 -1
  74. package/dist/contract/transfer.d.ts +1932 -0
  75. package/dist/contract/workflows.d.ts +87 -0
  76. package/dist/contract/workspace-layouts.d.ts +6 -0
  77. package/dist/contract/workspace.d.ts +111 -37
  78. package/dist/core/agent-env.js +43 -1
  79. package/dist/core/agent-env.js.map +1 -1
  80. package/dist/core/agent-errors.d.ts +3 -0
  81. package/dist/core/agent-errors.js +13 -0
  82. package/dist/core/agent-errors.js.map +1 -1
  83. package/dist/core/agent-model-policy.d.ts +1 -1
  84. package/dist/core/agent-model-policy.js +1 -1
  85. package/dist/core/agent-model-policy.js.map +1 -1
  86. package/dist/core/agent-profiles.d.ts +19 -3
  87. package/dist/core/agent-profiles.js +27 -3
  88. package/dist/core/agent-profiles.js.map +1 -1
  89. package/dist/core/agent-runner.d.ts +44 -10
  90. package/dist/core/agent-runner.js +21 -7
  91. package/dist/core/agent-runner.js.map +1 -1
  92. package/dist/core/antigravity-runner.js +2 -1
  93. package/dist/core/antigravity-runner.js.map +1 -1
  94. package/dist/core/backend-detect.d.ts +3 -2
  95. package/dist/core/backend-detect.js +80 -1
  96. package/dist/core/backend-detect.js.map +1 -1
  97. package/dist/core/claude-cli-runner.js +30 -3
  98. package/dist/core/claude-cli-runner.js.map +1 -1
  99. package/dist/core/claude-model-catalog.d.ts +6 -1
  100. package/dist/core/claude-model-catalog.js +20 -0
  101. package/dist/core/claude-model-catalog.js.map +1 -1
  102. package/dist/core/claude-usage-status.d.ts +8 -0
  103. package/dist/core/claude-usage-status.js +48 -0
  104. package/dist/core/claude-usage-status.js.map +1 -0
  105. package/dist/core/codex-app-server-runner.d.ts +8 -0
  106. package/dist/core/codex-app-server-runner.js +84 -13
  107. package/dist/core/codex-app-server-runner.js.map +1 -1
  108. package/dist/core/codex-model-catalog.js +42 -0
  109. package/dist/core/codex-model-catalog.js.map +1 -1
  110. package/dist/core/codex-ui-mapper.d.ts +7 -0
  111. package/dist/core/codex-ui-mapper.js +12 -2
  112. package/dist/core/codex-ui-mapper.js.map +1 -1
  113. package/dist/core/copilot-acp-runner.js +5 -1
  114. package/dist/core/copilot-acp-runner.js.map +1 -1
  115. package/dist/core/cursor-agent-runner.js +5 -1
  116. package/dist/core/cursor-agent-runner.js.map +1 -1
  117. package/dist/core/gemini-acp-runner.d.ts +37 -0
  118. package/dist/core/gemini-acp-runner.js +537 -0
  119. package/dist/core/gemini-acp-runner.js.map +1 -0
  120. package/dist/core/gemini-credentials.d.ts +21 -0
  121. package/dist/core/gemini-credentials.js +80 -0
  122. package/dist/core/gemini-credentials.js.map +1 -0
  123. package/dist/core/gemini-sessions.d.ts +18 -0
  124. package/dist/core/gemini-sessions.js +41 -0
  125. package/dist/core/gemini-sessions.js.map +1 -0
  126. package/dist/core/gemini-ui-mapper.d.ts +30 -0
  127. package/dist/core/gemini-ui-mapper.js +80 -0
  128. package/dist/core/gemini-ui-mapper.js.map +1 -0
  129. package/dist/core/junie-runner.js +2 -1
  130. package/dist/core/junie-runner.js.map +1 -1
  131. package/dist/core/kimi-home.d.ts +7 -0
  132. package/dist/core/kimi-home.js +13 -0
  133. package/dist/core/kimi-home.js.map +1 -0
  134. package/dist/core/kimi-model-catalog.d.ts +17 -0
  135. package/dist/core/kimi-model-catalog.js +45 -0
  136. package/dist/core/kimi-model-catalog.js.map +1 -0
  137. package/dist/core/kimi-runner.d.ts +90 -0
  138. package/dist/core/kimi-runner.js +874 -0
  139. package/dist/core/kimi-runner.js.map +1 -0
  140. package/dist/core/kimi-ui-mapper.d.ts +71 -0
  141. package/dist/core/kimi-ui-mapper.js +399 -0
  142. package/dist/core/kimi-ui-mapper.js.map +1 -0
  143. package/dist/core/model-identity.js +11 -0
  144. package/dist/core/model-identity.js.map +1 -1
  145. package/dist/core/model-presets.js +10 -0
  146. package/dist/core/model-presets.js.map +1 -1
  147. package/dist/core/omp-rpc-runner.d.ts +41 -0
  148. package/dist/core/omp-rpc-runner.js +451 -0
  149. package/dist/core/omp-rpc-runner.js.map +1 -0
  150. package/dist/core/omp-ui-mapper.d.ts +56 -0
  151. package/dist/core/omp-ui-mapper.js +468 -0
  152. package/dist/core/omp-ui-mapper.js.map +1 -0
  153. package/dist/core/opencode-http.d.ts +2 -0
  154. package/dist/core/opencode-http.js +2 -2
  155. package/dist/core/opencode-http.js.map +1 -1
  156. package/dist/core/opencode-server-runner.d.ts +3 -1
  157. package/dist/core/opencode-server-runner.js +197 -25
  158. package/dist/core/opencode-server-runner.js.map +1 -1
  159. package/dist/core/opencode-v2-events.d.ts +11 -0
  160. package/dist/core/opencode-v2-events.js +105 -0
  161. package/dist/core/opencode-v2-events.js.map +1 -0
  162. package/dist/core/pi-runner.js +5 -1
  163. package/dist/core/pi-runner.js.map +1 -1
  164. package/dist/core/private-mcp.d.ts +1 -1
  165. package/dist/core/private-mcp.js +2 -2
  166. package/dist/core/private-mcp.js.map +1 -1
  167. package/dist/core/process-signals.d.ts +29 -0
  168. package/dist/core/process-signals.js +85 -0
  169. package/dist/core/process-signals.js.map +1 -0
  170. package/dist/core/provider-auth.d.ts +25 -2
  171. package/dist/core/provider-auth.js +132 -12
  172. package/dist/core/provider-auth.js.map +1 -1
  173. package/dist/core/runner-factory.d.ts +1 -0
  174. package/dist/core/runner-factory.js +38 -1
  175. package/dist/core/runner-factory.js.map +1 -1
  176. package/dist/core/runner-model-catalog.d.ts +8 -0
  177. package/dist/core/runner-model-catalog.js +3 -0
  178. package/dist/core/runner-model-catalog.js.map +1 -1
  179. package/dist/core/tool-display.js +2 -0
  180. package/dist/core/tool-display.js.map +1 -1
  181. package/dist/core/ui-events.d.ts +1 -1
  182. package/dist/core/usage-limit.d.ts +2 -2
  183. package/dist/core/usage-limit.js +5 -3
  184. package/dist/core/usage-limit.js.map +1 -1
  185. package/dist/data-gitignore.d.ts +1 -1
  186. package/dist/data-gitignore.js +1 -0
  187. package/dist/data-gitignore.js.map +1 -1
  188. package/dist/dispatch/engine.d.ts +4 -0
  189. package/dist/dispatch/engine.js +9 -0
  190. package/dist/dispatch/engine.js.map +1 -1
  191. package/dist/e2e-setup.d.ts +8 -3
  192. package/dist/e2e-setup.js +31 -16
  193. package/dist/e2e-setup.js.map +1 -1
  194. package/dist/handoff.d.ts +2 -2
  195. package/dist/handoff.js +5 -5
  196. package/dist/handoff.js.map +1 -1
  197. package/dist/impact/demo-review.json +781 -0
  198. package/dist/impact/diff.d.ts +21 -0
  199. package/dist/impact/diff.js +81 -0
  200. package/dist/impact/diff.js.map +1 -0
  201. package/dist/impact/evidence.d.ts +67 -0
  202. package/dist/impact/evidence.js +238 -0
  203. package/dist/impact/evidence.js.map +1 -0
  204. package/dist/impact/impact-cli.d.ts +12 -0
  205. package/dist/impact/impact-cli.js +141 -0
  206. package/dist/impact/impact-cli.js.map +1 -0
  207. package/dist/impact/launch.d.ts +46 -0
  208. package/dist/impact/launch.js +145 -0
  209. package/dist/impact/launch.js.map +1 -0
  210. package/dist/impact/model.d.ts +551 -0
  211. package/dist/impact/model.js +188 -0
  212. package/dist/impact/model.js.map +1 -0
  213. package/dist/impact/publish.d.ts +30 -0
  214. package/dist/impact/publish.js +119 -0
  215. package/dist/impact/publish.js.map +1 -0
  216. package/dist/impact/render.d.ts +41 -0
  217. package/dist/impact/render.js +109 -0
  218. package/dist/impact/render.js.map +1 -0
  219. package/dist/impact/template.html +670 -0
  220. package/dist/impact/validate.d.ts +25 -0
  221. package/dist/impact/validate.js +273 -0
  222. package/dist/impact/validate.js.map +1 -0
  223. package/dist/index.js +19 -4
  224. package/dist/index.js.map +1 -1
  225. package/dist/managers/engine.js +5 -2
  226. package/dist/managers/engine.js.map +1 -1
  227. package/dist/pack-check.d.ts +1 -0
  228. package/dist/pack-check.js +14 -0
  229. package/dist/pack-check.js.map +1 -1
  230. package/dist/paths.d.ts +6 -0
  231. package/dist/paths.js +19 -1
  232. package/dist/paths.js.map +1 -1
  233. package/dist/runs/agent-error-telemetry.js +7 -4
  234. package/dist/runs/agent-error-telemetry.js.map +1 -1
  235. package/dist/runs/agent-tmpdir.d.ts +25 -6
  236. package/dist/runs/agent-tmpdir.js +136 -25
  237. package/dist/runs/agent-tmpdir.js.map +1 -1
  238. package/dist/runs/artifacts.d.ts +52 -0
  239. package/dist/runs/artifacts.js +243 -0
  240. package/dist/runs/artifacts.js.map +1 -0
  241. package/dist/runs/event-history.d.ts +12 -0
  242. package/dist/runs/event-history.js +61 -0
  243. package/dist/runs/event-history.js.map +1 -1
  244. package/dist/runs/project-assets.d.ts +9 -0
  245. package/dist/runs/project-assets.js +57 -0
  246. package/dist/runs/project-assets.js.map +1 -0
  247. package/dist/runs/review-gate.d.ts +10 -0
  248. package/dist/runs/review-gate.js +12 -0
  249. package/dist/runs/review-gate.js.map +1 -1
  250. package/dist/runs/store.d.ts +70 -4
  251. package/dist/runs/store.js +139 -26
  252. package/dist/runs/store.js.map +1 -1
  253. package/dist/server/agent-setup.d.ts +1 -1
  254. package/dist/server/agent-setup.js +2 -1
  255. package/dist/server/agent-setup.js.map +1 -1
  256. package/dist/server/artifacts.d.ts +33 -0
  257. package/dist/server/artifacts.js +133 -0
  258. package/dist/server/artifacts.js.map +1 -0
  259. package/dist/server/dashboard.d.ts +5 -0
  260. package/dist/server/forge/github-assets.d.ts +7 -0
  261. package/dist/server/forge/github-assets.js +100 -0
  262. package/dist/server/forge/github-assets.js.map +1 -0
  263. package/dist/server/forge/github.d.ts +11 -0
  264. package/dist/server/forge/github.js +42 -0
  265. package/dist/server/forge/github.js.map +1 -1
  266. package/dist/server/open-in-app.js +3 -0
  267. package/dist/server/open-in-app.js.map +1 -1
  268. package/dist/server/provider-action-gate.js +12 -4
  269. package/dist/server/provider-action-gate.js.map +1 -1
  270. package/dist/server/server.d.ts +10012 -6701
  271. package/dist/server/server.js +353 -193
  272. package/dist/server/server.js.map +1 -1
  273. package/dist/server/star-count.d.ts +5 -5
  274. package/dist/server/star-count.js +5 -5
  275. package/dist/server/star-count.js.map +1 -1
  276. package/dist/server-install/steps.js +1 -0
  277. package/dist/server-install/steps.js.map +1 -1
  278. package/dist/skills-provision.js +7 -1
  279. package/dist/skills-provision.js.map +1 -1
  280. package/dist/skills.d.ts +10 -6
  281. package/dist/skills.js +11 -6
  282. package/dist/skills.js.map +1 -1
  283. package/dist/transfer/automations-file.d.ts +46 -0
  284. package/dist/transfer/automations-file.js +172 -0
  285. package/dist/transfer/automations-file.js.map +1 -0
  286. package/dist/transfer/config-bundle.d.ts +100 -0
  287. package/dist/transfer/config-bundle.js +430 -0
  288. package/dist/transfer/config-bundle.js.map +1 -0
  289. package/dist/webhooks/outbox.js +83 -63
  290. package/dist/webhooks/outbox.js.map +1 -1
  291. package/dist/workflows/graph.d.ts +27 -0
  292. package/dist/workflows/load.js +2 -2
  293. package/dist/workflows/load.js.map +1 -1
  294. package/dist/workflows/resume-fallback.d.ts +13 -6
  295. package/dist/workflows/resume-fallback.js +26 -6
  296. package/dist/workflows/resume-fallback.js.map +1 -1
  297. package/dist/workflows/run.d.ts +121 -10
  298. package/dist/workflows/run.js +363 -61
  299. package/dist/workflows/run.js.map +1 -1
  300. package/dist/workflows/templates.d.ts +27 -16
  301. package/dist/workflows/templates.js +17 -0
  302. package/dist/workflows/templates.js.map +1 -1
  303. package/dist/workflows/types.d.ts +21 -0
  304. package/dist/workflows/types.js +3 -1
  305. package/dist/workflows/types.js.map +1 -1
  306. package/dist/workspace/agent-accounts.d.ts +27 -15
  307. package/dist/workspace/agent-accounts.js +4 -14
  308. package/dist/workspace/agent-accounts.js.map +1 -1
  309. package/dist/workspace/agent-profiles.js +3 -0
  310. package/dist/workspace/agent-profiles.js.map +1 -1
  311. package/dist/workspace/config.d.ts +12 -6
  312. package/dist/workspace/config.js +3 -13
  313. package/dist/workspace/config.js.map +1 -1
  314. package/dist/workspace/dashboard-costs.d.ts +1 -0
  315. package/dist/workspace/dashboard-costs.js +1 -0
  316. package/dist/workspace/dashboard-costs.js.map +1 -1
  317. package/dist/workspace/dashboard-insights.d.ts +1 -0
  318. package/dist/workspace/dashboard-insights.js +5 -2
  319. package/dist/workspace/dashboard-insights.js.map +1 -1
  320. package/dist/workspace/dashboard-overview.js +2 -0
  321. package/dist/workspace/dashboard-overview.js.map +1 -1
  322. package/dist/workspace/dashboard.d.ts +1 -0
  323. package/package.json +5 -4
  324. package/scripts/check-pack.mjs +3 -2
  325. package/scripts/copy-assets.mjs +17 -0
  326. package/scripts/mock-claude.mjs +106 -1
  327. package/scripts/mock-gemini-acp.mjs +195 -0
  328. package/scripts/mock-kimi-acp.mjs +126 -0
  329. package/scripts/mock-omp-rpc.mjs +194 -0
  330. package/skills/change-impact/SKILL.md +117 -0
  331. package/skills/change-impact/references/analysis-contract.md +141 -0
  332. package/skills/change-impact/references/public-api.md +92 -0
  333. package/skills/change-impact/references/visual-contract.md +71 -0
  334. package/web/dist/assets/{active-forge-DEmP_h4r.js → active-forge-DO2AaQ-s.js} +1 -1
  335. package/web/dist/assets/agent-task-pickers-CZpw4vcZ.js +1 -0
  336. package/web/dist/assets/{alert-dialog-BZkKvKiu.js → alert-dialog-BihfE0uZ.js} +1 -1
  337. package/web/dist/assets/arrow-down-DACdHKjc.js +1 -0
  338. package/web/dist/assets/arrow-left-BtT8zuL0.js +1 -0
  339. package/web/dist/assets/arrow-up-BAPSgozC.js +1 -0
  340. package/web/dist/assets/ask-answer-Co3javaA.js +1 -0
  341. package/web/dist/assets/{ask-card-CfNUHYt9.js → ask-card-DLtNyMH_.js} +2 -2
  342. package/web/dist/assets/assets-view-CLCckPll.js +1 -0
  343. package/web/dist/assets/{automation-format-BPrWgGBz.js → automation-format-BXwiLf2G.js} +1 -1
  344. package/web/dist/assets/automations-route-JizzZrRf.js +1 -0
  345. package/web/dist/assets/blink-1oEUjxch.webp +0 -0
  346. package/web/dist/assets/blink-B4Y4PYCR.webp +0 -0
  347. package/web/dist/assets/blink-BpqW08tf.webp +0 -0
  348. package/web/dist/assets/blink-C380t2a5.webp +0 -0
  349. package/web/dist/assets/blink-CLn5VMYQ.webp +0 -0
  350. package/web/dist/assets/blink-Cn_tI5Yd.webp +0 -0
  351. package/web/dist/assets/blink-D4EaTnc2.webp +0 -0
  352. package/web/dist/assets/blink-DY4Sm5aw.webp +0 -0
  353. package/web/dist/assets/blink-mcM10OfP.webp +0 -0
  354. package/web/dist/assets/body-CXEwT_gR.webp +0 -0
  355. package/web/dist/assets/body-D-UrLURv.webp +0 -0
  356. package/web/dist/assets/body-D7Q8eJDv.webp +0 -0
  357. package/web/dist/assets/body-DdNSx4-d.webp +0 -0
  358. package/web/dist/assets/body-DlFNtp32.webp +0 -0
  359. package/web/dist/assets/body-EreQeu3g.webp +0 -0
  360. package/web/dist/assets/body-Goc64z5o.webp +0 -0
  361. package/web/dist/assets/body-_FLmHm_q.webp +0 -0
  362. package/web/dist/assets/body-v5xTmq5E.webp +0 -0
  363. package/web/dist/assets/{bot-qZRkHkDp.js → bot-Cm-PLA1M.js} +1 -1
  364. package/web/dist/assets/{button-BrxohNcK.js → button-BqkA8Ovk.js} +1 -1
  365. package/web/dist/assets/{centered-state-CSW_o4N7.js → centered-state-CquGIOsq.js} +1 -1
  366. package/web/dist/assets/check-B1z-_MCO.js +1 -0
  367. package/web/dist/assets/chevron-left-CDAxCC2p.js +1 -0
  368. package/web/dist/assets/chevron-right-DPaV033p.js +1 -0
  369. package/web/dist/assets/chunk-KS7C4IRE-DtL2Gzw3.js +3 -0
  370. package/web/dist/assets/{circle-alert-COKQc-87.js → circle-alert-B7VNkPC2.js} +1 -1
  371. package/web/dist/assets/circle-check-LWKCYKhA.js +1 -0
  372. package/web/dist/assets/{collapsible-BJ0sxcz9.js → collapsible-BuSDxSYs.js} +1 -1
  373. package/web/dist/assets/command-CfdVVS0V.js +1 -0
  374. package/web/dist/assets/{commit-list-HXZj01RO.js → commit-list-D5Nuv2HC.js} +1 -1
  375. package/web/dist/assets/compare-variants-BBOnUKfp.js +1 -0
  376. package/web/dist/assets/composer-BPIW4tmM.js +18 -0
  377. package/web/dist/assets/composer-attachments-DyC9yyGs.js +3 -0
  378. package/web/dist/assets/concerned-BIuYysOA.webp +0 -0
  379. package/web/dist/assets/concerned-BWTrkjRS.webp +0 -0
  380. package/web/dist/assets/concerned-BW_ywmzK.webp +0 -0
  381. package/web/dist/assets/concerned-CXQVACqJ.webp +0 -0
  382. package/web/dist/assets/concerned-DdsJa1t2.webp +0 -0
  383. package/web/dist/assets/concerned-Dlln-1nu.webp +0 -0
  384. package/web/dist/assets/concerned-DrSCYUQV.webp +0 -0
  385. package/web/dist/assets/concerned-TOjmS1qX.webp +0 -0
  386. package/web/dist/assets/concerned-tIx9dV3J.webp +0 -0
  387. package/web/dist/assets/dashboard-B_ytEQ_y.js +44 -0
  388. package/web/dist/assets/diff-BQScRHXz.js +3 -0
  389. package/web/dist/assets/diff-stat-CxDTnfya.js +1 -0
  390. package/web/dist/assets/diff-view-8m9Rnct7.js +13 -0
  391. package/web/dist/assets/{directional-usage-BtjgT5nc.js → directional-usage-BerE4wJK.js} +1 -1
  392. package/web/dist/assets/dist-Br4Ra_c5.js +1 -0
  393. package/web/dist/assets/{download-DH68Y5Vz.js → download-HBguClwD.js} +1 -1
  394. package/web/dist/assets/dropdown-menu-CDv5Teql.js +1 -0
  395. package/web/dist/assets/excited-8dK2gfAF.webp +0 -0
  396. package/web/dist/assets/excited-B-w6ozXs.webp +0 -0
  397. package/web/dist/assets/excited-B4Sch7Ub.webp +0 -0
  398. package/web/dist/assets/excited-BPQk8ECE.webp +0 -0
  399. package/web/dist/assets/excited-BRFi0cue.webp +0 -0
  400. package/web/dist/assets/excited-BvbUAHvw.webp +0 -0
  401. package/web/dist/assets/excited-CCH-VUDr.webp +0 -0
  402. package/web/dist/assets/excited-TMExhEMj.webp +0 -0
  403. package/web/dist/assets/excited-cSRbau5J.webp +0 -0
  404. package/web/dist/assets/{external-link-BVYdhpSK.js → external-link-Bclznsu3.js} +1 -1
  405. package/web/dist/assets/file-preview-DQ7iQhe0.js +2 -0
  406. package/web/dist/assets/{file-DYpKJvYs.js → file-rCLi_p-R.js} +1 -1
  407. package/web/dist/assets/file-tree-Bm38qEZP.js +1 -0
  408. package/web/dist/assets/focused-XMnI1Trp.webp +0 -0
  409. package/web/dist/assets/{folder-CeFUSrsO.js → folder-leteY9jH.js} +1 -1
  410. package/web/dist/assets/follow-up-engine-Q1EcpRpB.js +1 -0
  411. package/web/dist/assets/git-pull-request-CURFMFaU.js +1 -0
  412. package/web/dist/assets/{git-pull-request-draft-DL1VMp1L.js → git-pull-request-draft-BZgJrUou.js} +1 -1
  413. package/web/dist/assets/git-tab-loading-CF0flOMS.js +1 -0
  414. package/web/dist/assets/github-DcvXvc4J.js +1 -0
  415. package/web/dist/assets/happy-B7LJPne_.webp +0 -0
  416. package/web/dist/assets/happy-CCpAho8w.webp +0 -0
  417. package/web/dist/assets/happy-Ch9wxHii.webp +0 -0
  418. package/web/dist/assets/happy-CnoCjXOf.webp +0 -0
  419. package/web/dist/assets/happy-DVeEwiyo.webp +0 -0
  420. package/web/dist/assets/happy-URIT6hFl.webp +0 -0
  421. package/web/dist/assets/happy-ZufSdCLm.webp +0 -0
  422. package/web/dist/assets/happy-kfLwwDLp.webp +0 -0
  423. package/web/dist/assets/happy-nVffy2Sx.webp +0 -0
  424. package/web/dist/assets/{host-usage-o1rC0TiP.js → host-usage-CX8OXl8q.js} +1 -1
  425. package/web/dist/assets/icon-tooltip-BMkyRHLt.js +1 -0
  426. package/web/dist/assets/impact-control-Deh1F44q.js +1 -0
  427. package/web/dist/assets/impact-model-Dj6tIycu.js +1 -0
  428. package/web/dist/assets/index-DuW72uFI.js +33 -0
  429. package/web/dist/assets/index-jRkTI5kE.css +2 -0
  430. package/web/dist/assets/{input-BxjGaO_P.js → input-BO795Un9.js} +1 -1
  431. package/web/dist/assets/laptop-D2EKUOdE.webp +0 -0
  432. package/web/dist/assets/layers-YoqiEcNh.js +1 -0
  433. package/web/dist/assets/layout-cards-Cvq2XaJL.js +1 -0
  434. package/web/dist/assets/{layout-grid-C4d5rrDE.js → layout-grid-CSvbdC6i.js} +1 -1
  435. package/web/dist/assets/left-BBmAC9hS.webp +0 -0
  436. package/web/dist/assets/left-BUX98ijg.webp +0 -0
  437. package/web/dist/assets/left-CCrTs359.webp +0 -0
  438. package/web/dist/assets/left-CxWtAZHp.webp +0 -0
  439. package/web/dist/assets/left-DDCoVDRG.webp +0 -0
  440. package/web/dist/assets/left-DFGwPnRL.webp +0 -0
  441. package/web/dist/assets/left-D_qxT7z_.webp +0 -0
  442. package/web/dist/assets/left-QXVHT2zO.webp +0 -0
  443. package/web/dist/assets/left-S_rwAL-X.webp +0 -0
  444. package/web/dist/assets/leg-left-0EW5L4pu.webp +0 -0
  445. package/web/dist/assets/leg-left-BGo9dZbQ.webp +0 -0
  446. package/web/dist/assets/leg-left-BZ8ETYLj.webp +0 -0
  447. package/web/dist/assets/leg-left-BahG1x_b.webp +0 -0
  448. package/web/dist/assets/leg-left-C-DJQ3Pt.webp +0 -0
  449. package/web/dist/assets/leg-left-C6ZvH8fW.webp +0 -0
  450. package/web/dist/assets/leg-left-DsfFyCf7.webp +0 -0
  451. package/web/dist/assets/leg-left-Iq6VC-OZ.webp +0 -0
  452. package/web/dist/assets/leg-left-rVU9cV-d.webp +0 -0
  453. package/web/dist/assets/leg-right-2MnCGKHj.webp +0 -0
  454. package/web/dist/assets/leg-right-BCgv_Tjj.webp +0 -0
  455. package/web/dist/assets/leg-right-BOxKTHZ9.webp +0 -0
  456. package/web/dist/assets/leg-right-BeDSbUV7.webp +0 -0
  457. package/web/dist/assets/leg-right-BwrF93s6.webp +0 -0
  458. package/web/dist/assets/leg-right-CU-y_n5h.webp +0 -0
  459. package/web/dist/assets/leg-right-DKSfNi2y.webp +0 -0
  460. package/web/dist/assets/leg-right-Dq0ze2e4.webp +0 -0
  461. package/web/dist/assets/leg-right-t34e1CvD.webp +0 -0
  462. package/web/dist/assets/lib-BQXq3kEf.js +1 -0
  463. package/web/dist/assets/loader-circle-DjzuGw6j.js +1 -0
  464. package/web/dist/assets/manager-chat-C4QqN-w6.js +1 -0
  465. package/web/dist/assets/manager-index-BGNDfiIy.js +1 -0
  466. package/web/dist/assets/manager-new-Dek6H9Bg.js +2 -0
  467. package/web/dist/assets/managers-Dufza9IX.js +1 -0
  468. package/web/dist/assets/{markdown-Di8pirEb.js → markdown-CP2EQDsL.js} +1 -1
  469. package/web/dist/assets/{markdown-rDA5iFAU.js → markdown-YWy3FUHK.js} +2 -2
  470. package/web/dist/assets/mascot-picker-0_LGzV_f.js +1 -0
  471. package/web/dist/assets/{message-square-CstvkIHe.js → message-square-beq8DjLH.js} +1 -1
  472. package/web/dist/assets/new-task-form-BgMiEphZ.js +2 -0
  473. package/web/dist/assets/pencil-RUM53auZ.js +1 -0
  474. package/web/dist/assets/picker-pill-BO6YUs1F.js +1 -0
  475. package/web/dist/assets/play-Cj3p2Q5t.js +1 -0
  476. package/web/dist/assets/plus-Bdmhj8CR.js +1 -0
  477. package/web/dist/assets/portrait-BJ2e30PF.webp +0 -0
  478. package/web/dist/assets/portrait-BeDbYw8Z.webp +0 -0
  479. package/web/dist/assets/portrait-Bq7D7LzX.webp +0 -0
  480. package/web/dist/assets/portrait-C6HtaggP.webp +0 -0
  481. package/web/dist/assets/portrait-CcOzDXGs.webp +0 -0
  482. package/web/dist/assets/portrait-D44z6yep.webp +0 -0
  483. package/web/dist/assets/portrait-DHLQRy13.webp +0 -0
  484. package/web/dist/assets/portrait-DU3qlTxc.webp +0 -0
  485. package/web/dist/assets/portrait-q94U_uD6.webp +0 -0
  486. package/web/dist/assets/project-router-xmadY-N9.js +1 -0
  487. package/web/dist/assets/queries-ba5qZ3kd.js +1 -0
  488. package/web/dist/assets/reasoning-effort-pill-B8Z1RaXL.js +1 -0
  489. package/web/dist/assets/reference-chip-C9pVQk05.js +1 -0
  490. package/web/dist/assets/reference-conflict-action-DxUm18aD.js +1 -0
  491. package/web/dist/assets/repo-git-DFf8ZGZv.js +1 -0
  492. package/web/dist/assets/right-BFOa1Ihi.webp +0 -0
  493. package/web/dist/assets/right-BLsBZrK1.webp +0 -0
  494. package/web/dist/assets/right-BVU3rYuj.webp +0 -0
  495. package/web/dist/assets/right-BbES4jIG.webp +0 -0
  496. package/web/dist/assets/right-C2klSA-G.webp +0 -0
  497. package/web/dist/assets/right-Cte2BTL5.webp +0 -0
  498. package/web/dist/assets/right-Dz7jYN17.webp +0 -0
  499. package/web/dist/assets/right-W2oGaUHb.webp +0 -0
  500. package/web/dist/assets/right-XJjUU0AU.webp +0 -0
  501. package/web/dist/assets/run-actions-CLIUiXwS.js +1 -0
  502. package/web/dist/assets/{run-diff-CFHlmgGA.js → run-diff-CxS_a1EO.js} +2 -2
  503. package/web/dist/assets/{save-C4TDysfG.js → save-zfKVAo2Y.js} +1 -1
  504. package/web/dist/assets/{scroll-within-D3mqUngk.js → scroll-within-DhWf-4MN.js} +1 -1
  505. package/web/dist/assets/search-CCE2KMtX.js +1 -0
  506. package/web/dist/assets/{search-x-BkezzsKh.js → search-x-BxcYdvqm.js} +1 -1
  507. package/web/dist/assets/{settings-2-DIHmg7wZ.js → settings-2-B0yYRU0q.js} +1 -1
  508. package/web/dist/assets/sheet-DxqNqi5S.js +1 -0
  509. package/web/dist/assets/skills-BmQ9hZ2c.js +1 -0
  510. package/web/dist/assets/sortable.esm-Dj7Kk-Wk.js +5 -0
  511. package/web/dist/assets/square--LrBHma0.js +1 -0
  512. package/web/dist/assets/standing-C42GacCE.webp +0 -0
  513. package/web/dist/assets/standing-C5Tul1Nv.webp +0 -0
  514. package/web/dist/assets/standing-CUU2Jka6.webp +0 -0
  515. package/web/dist/assets/standing-Ca5nprIS.webp +0 -0
  516. package/web/dist/assets/standing-CgOaMKRT.webp +0 -0
  517. package/web/dist/assets/standing-ClF4PE2-.webp +0 -0
  518. package/web/dist/assets/standing-CoS9fBjb.webp +0 -0
  519. package/web/dist/assets/standing-DZrhVTuG.webp +0 -0
  520. package/web/dist/assets/standing-MhG0Chks.webp +0 -0
  521. package/web/dist/assets/status-dot-Dxb9pPsK.js +1 -0
  522. package/web/dist/assets/tabs-CmEFauE4.js +1 -0
  523. package/web/dist/assets/{tag-B56iP2zA.js → tag-TWBVKabJ.js} +1 -1
  524. package/web/dist/assets/task-commits-sdhrDSta.js +1 -0
  525. package/web/dist/assets/{task-graph-ZjFyDrAV.js → task-graph-DqXUw-PM.js} +1 -1
  526. package/web/dist/assets/task-notes-ur3eZYQs.js +1 -0
  527. package/web/dist/assets/task-workspace-BvamqKbw.js +28 -0
  528. package/web/dist/assets/terminal-CmRAOyqu.js +1 -0
  529. package/web/dist/assets/terminal-drawer-BiRjtnip.js +1 -0
  530. package/web/dist/assets/{terminal-pane-CeYi-FvS.js → terminal-pane-YnSc_Vhs.js} +2 -2
  531. package/web/dist/assets/{textarea-BXN4nZ0d.js → textarea-C58jseO-.js} +1 -1
  532. package/web/dist/assets/toaster-5ad4wwJ9.js +1 -0
  533. package/web/dist/assets/tooltip-45rfBiq8.js +1 -0
  534. package/web/dist/assets/tracker-CcyqVPEo.js +4 -0
  535. package/web/dist/assets/triangle-alert-C1mTIqxM.js +1 -0
  536. package/web/dist/assets/typing-left-BWPbVi7e.webp +0 -0
  537. package/web/dist/assets/typing-right-HDY0V90O.webp +0 -0
  538. package/web/dist/assets/{upload-D_kW6AjR.js → upload-C2gxSnMR.js} +1 -1
  539. package/web/dist/assets/use-now-DD2atNhs.js +1 -0
  540. package/web/dist/assets/utils-Br_dqwn-.js +60 -0
  541. package/web/dist/assets/{workflow-j8scU63W.js → workflow-WvO4bTRt.js} +1 -1
  542. package/web/dist/assets/workflow-graph-B2oESW5u.js +13 -0
  543. package/web/dist/assets/worktree-lifecycle-BxYvSKsA.js +1 -0
  544. package/web/dist/assets/{worktree-lifecycle-operation-mYB7KCpQ.js → worktree-lifecycle-operation-BRID04bW.js} +1 -1
  545. package/web/dist/assets/x-CZSnHsZ4.js +1 -0
  546. package/web/dist/assets/{zoomable-image-CW-pQ6ZO.js → zoomable-image-DCITEnK-.js} +1 -1
  547. package/web/dist/index.html +70 -60
  548. package/web/dist/assets/agent-task-pickers-8skJH9bS.js +0 -1
  549. package/web/dist/assets/arrow-down-cBTb_EjO.js +0 -1
  550. package/web/dist/assets/arrow-left-BvR1Oqhc.js +0 -1
  551. package/web/dist/assets/arrow-up-Cn0IS81u.js +0 -1
  552. package/web/dist/assets/ask-answer-Cfb0vEFv.js +0 -1
  553. package/web/dist/assets/automations-route-B4axw9eb.js +0 -1
  554. package/web/dist/assets/check-B5omShEO.js +0 -1
  555. package/web/dist/assets/chevron-left-D74_-PJ_.js +0 -1
  556. package/web/dist/assets/chevron-right-C3fLn_fF.js +0 -1
  557. package/web/dist/assets/circle-check-j6r9xbE5.js +0 -1
  558. package/web/dist/assets/compare-variants-CDrFR7P_.js +0 -1
  559. package/web/dist/assets/composer-GntpkeQD.js +0 -18
  560. package/web/dist/assets/composer-attachments-Xa-qW8Eq.js +0 -3
  561. package/web/dist/assets/dashboard-CJW-Xk7f.js +0 -44
  562. package/web/dist/assets/diff-RPASOQVF.js +0 -3
  563. package/web/dist/assets/diff-view-Ckaab4uQ.js +0 -13
  564. package/web/dist/assets/file-preview-DOSEbcqV.js +0 -2
  565. package/web/dist/assets/git-tab-loading-DhclV71X.js +0 -1
  566. package/web/dist/assets/git-toolbar-Bk-3i42V.js +0 -1
  567. package/web/dist/assets/github-TdBnzj-H.js +0 -1
  568. package/web/dist/assets/icon-tooltip-CUJLXOxf.js +0 -1
  569. package/web/dist/assets/index-CDhEdFaZ.js +0 -33
  570. package/web/dist/assets/index-Dk1VTlxY.css +0 -2
  571. package/web/dist/assets/layout-cards-BYOEsNbu.js +0 -1
  572. package/web/dist/assets/lib-D2__YoPr.js +0 -1
  573. package/web/dist/assets/loader-circle-DCpZCAyT.js +0 -1
  574. package/web/dist/assets/manager-chat-B1Taq3Eg.js +0 -1
  575. package/web/dist/assets/manager-index-COwisKDf.js +0 -1
  576. package/web/dist/assets/manager-new-BdJPiBs2.js +0 -2
  577. package/web/dist/assets/manager-pickers-CvYpd5cU.js +0 -1
  578. package/web/dist/assets/managers-CDiETPHi.js +0 -1
  579. package/web/dist/assets/pencil-DWtoOm2f.js +0 -1
  580. package/web/dist/assets/picker-pill-DQICTO2N.js +0 -1
  581. package/web/dist/assets/play-BYwEI1EA.js +0 -1
  582. package/web/dist/assets/plus-BPopgSYQ.js +0 -1
  583. package/web/dist/assets/popover-DzdYqnHw.js +0 -1
  584. package/web/dist/assets/project-router-CmpQcVZp.js +0 -1
  585. package/web/dist/assets/queries-DOHu2y2B.js +0 -1
  586. package/web/dist/assets/reference-chip-ty5g_OLC.js +0 -1
  587. package/web/dist/assets/reference-conflict-action-B2LrO-o3.js +0 -1
  588. package/web/dist/assets/repo-git-CyoBxHfP.js +0 -1
  589. package/web/dist/assets/sheet-7RYAcp_E.js +0 -1
  590. package/web/dist/assets/skills-BBqk5FoM.js +0 -1
  591. package/web/dist/assets/sortable.esm-O2daV3YI.js +0 -5
  592. package/web/dist/assets/square-BPbl10lx.js +0 -1
  593. package/web/dist/assets/status-dot-C_5ryAFi.js +0 -1
  594. package/web/dist/assets/tabs-EEnYYrJF.js +0 -1
  595. package/web/dist/assets/task-commits-DFalvqkF.js +0 -1
  596. package/web/dist/assets/task-notes-DRDKGsIw.js +0 -1
  597. package/web/dist/assets/task-workspace-D2ak5sTE.js +0 -28
  598. package/web/dist/assets/terminal-B-JX8x9P.js +0 -1
  599. package/web/dist/assets/terminal-drawer-S0cBMANF.js +0 -1
  600. package/web/dist/assets/toaster-DrFdGtNN.js +0 -3
  601. package/web/dist/assets/tooltip-p6YPEpXC.js +0 -1
  602. package/web/dist/assets/tracker-CFDEuaFt.js +0 -4
  603. package/web/dist/assets/triangle-alert-Crbc2knA.js +0 -1
  604. package/web/dist/assets/use-now-DQpgbshl.js +0 -1
  605. package/web/dist/assets/utils-Df_1kJEk.js +0 -60
  606. package/web/dist/assets/workflow-graph-Cye5SBdg.js +0 -13
  607. package/web/dist/assets/worktree-lifecycle-Da61xsLH.js +0 -1
  608. package/web/dist/assets/x-sQR-jRBj.js +0 -1
@@ -14,7 +14,7 @@
14
14
  * 2. An explicit reset instant in the prose (`try again at 2026-08-03T18:00:00Z`) — how Codex and
15
15
  * OpenCode phrase the same thing when they carry a timestamp at all.
16
16
  * 3. A clock-only reset in prose (`resets 8:10pm (Europe/Warsaw)`) — how Claude Code phrases
17
- * session windows in some interactive output.
17
+ * session windows in some interactive output. Allow the whole displayed minute to elapse.
18
18
  * 4. A relative delay (`try again in 42 minutes`, `retry-after: 3600`).
19
19
  *
20
20
  * Nothing else counts. A limit message with no recoverable reset instant returns `null` on
@@ -22,7 +22,7 @@
22
22
  * that is still refusing, and "we don't know when" is an honest answer the caller can surface.
23
23
  */
24
24
  export interface UsageLimitHit {
25
- /** When the provider says the limit lifts. Never in the past — a stale instant clamps to now. */
25
+ /** Earliest safe reset instant, including clock-only precision padding. Stale instants clamp to now. */
26
26
  resetAt: Date;
27
27
  /** Which shape carried it — the lifecycle note quotes this so the schedule is auditable. */
28
28
  evidence: 'claude-marker' | 'timestamp' | 'clock' | 'delay';
@@ -14,7 +14,7 @@
14
14
  * 2. An explicit reset instant in the prose (`try again at 2026-08-03T18:00:00Z`) — how Codex and
15
15
  * OpenCode phrase the same thing when they carry a timestamp at all.
16
16
  * 3. A clock-only reset in prose (`resets 8:10pm (Europe/Warsaw)`) — how Claude Code phrases
17
- * session windows in some interactive output.
17
+ * session windows in some interactive output. Allow the whole displayed minute to elapse.
18
18
  * 4. A relative delay (`try again in 42 minutes`, `retry-after: 3600`).
19
19
  *
20
20
  * Nothing else counts. A limit message with no recoverable reset instant returns `null` on
@@ -28,6 +28,8 @@ import { isValidTimeZone, zonedParts, zonedWallTimeToUtc } from '../contract/ind
28
28
  * would be indistinguishable from losing the task.
29
29
  */
30
30
  export const MAX_USAGE_LIMIT_WAIT_MS = 7 * 24 * 60 * 60_000;
31
+ // A clock-only message omits reset seconds. Pad before selecting its day (#1081).
32
+ const CLOCK_RESET_BUFFER_MS = 60_000;
31
33
  /** Claude Code's own envelope. The suffix is Unix EPOCH SECONDS (ms tolerated — see below). */
32
34
  const CLAUDE_MARKER_RE = /claude(?:\s+ai)?\s+usage\s+limit\s+reached\s*\|\s*(\d{9,16})/i;
33
35
  /**
@@ -199,7 +201,7 @@ function nextLocalClock(hour, minute, now) {
199
201
  candidate.setHours(hour, minute, 0, 0);
200
202
  if (now - candidate.getTime() > CLOCK_JUST_LIFTED_MS)
201
203
  candidate.setDate(candidate.getDate() + 1);
202
- return candidate.getTime();
204
+ return candidate.getTime() + CLOCK_RESET_BUFFER_MS;
203
205
  }
204
206
  function nextClockInTimeZone(hour, minute, timeZone, now) {
205
207
  const today = zonedParts(now, timeZone);
@@ -212,7 +214,7 @@ function nextClockInTimeZone(hour, minute, timeZone, now) {
212
214
  const tomorrow = new Date(Date.UTC(today.year, today.month - 1, today.day + 1));
213
215
  candidate = zonedWallTimeToUtc(tomorrow.getUTCFullYear(), tomorrow.getUTCMonth() + 1, tomorrow.getUTCDate(), hour, minute, timeZone);
214
216
  }
215
- return candidate;
217
+ return candidate === null ? null : candidate + CLOCK_RESET_BUFFER_MS;
216
218
  }
217
219
  /** Bound a candidate instant: past → now (the limit already lifted), absurd → not believed. */
218
220
  function settle(epochMs, now, evidence) {
@@ -1 +1 @@
1
- {"version":3,"file":"usage-limit.js","sourceRoot":"","sources":["../../src/core/usage-limit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAS/F;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;AAE5D,+FAA+F;AAC/F,MAAM,gBAAgB,GAAG,+DAA+D,CAAC;AAEzF;;;GAGG;AACH,MAAM,eAAe,GACnB,oLAAoL,CAAC;AAEvL,2EAA2E;AAC3E,MAAM,WAAW,GACf,6KAA6K,CAAC;AAEhL,mEAAmE;AACnE,MAAM,cAAc,GAClB,kLAAkL,CAAC;AAErL;2FAC2F;AAC3F,MAAM,mBAAmB,GACvB,6QAA6Q,CAAC;AAChR,MAAM,MAAM,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KA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AO,EAAE,OAAO,EAAE,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC;AACjE,CAAC"}
@@ -10,7 +10,7 @@
10
10
  * Lives in its own module rather than in `index.ts` so it can be tested: importing `index.ts`
11
11
  * runs the CLI.
12
12
  */
13
- export declare const DATA_GITIGNORE_ENTRIES: readonly ['runs.json', 'runs.json.tmp', 'runs/', 'webhooks/', 'dispatch/', 'attachments/', 'worktrees/', 'lifecycle/', 'config.lifecycle.lock/', 'config.json.*.tmp', 'tmp/', 'drafts/', 'layouts/', 'todos.json', 'todos.json.tmp', 'mcp.local.json', 'mcp.local.json.cez-tmp-*', 'tracker.json', 'tracker.json.tmp', 'tracker.json.*.tmp', 'tracker-association.lock/', 'launch-key', 'automations.json', 'automations.json.tmp', 'automation-state.json', 'automation-state.json.tmp', 'automation-receipts.ndjson', 'automation-receipts.ndjson.tmp', 'automation-log.ndjson', 'automation-log.ndjson.tmp', 'automation-poll.lock', 'automation-poll.lock.guard/', 'automation-mutation.lock.guard/', 'automation-mutation.lock'];
13
+ export declare const DATA_GITIGNORE_ENTRIES: readonly ['runs.json', 'runs.json.tmp', 'runs/', 'webhooks/', 'dispatch/', 'attachments/', 'worktrees/', 'artifacts/', 'lifecycle/', 'config.lifecycle.lock/', 'config.json.*.tmp', 'tmp/', 'drafts/', 'layouts/', 'todos.json', 'todos.json.tmp', 'mcp.local.json', 'mcp.local.json.cez-tmp-*', 'tracker.json', 'tracker.json.tmp', 'tracker.json.*.tmp', 'tracker-association.lock/', 'launch-key', 'automations.json', 'automations.json.tmp', 'automation-state.json', 'automation-state.json.tmp', 'automation-receipts.ndjson', 'automation-receipts.ndjson.tmp', 'automation-log.ndjson', 'automation-log.ndjson.tmp', 'automation-poll.lock', 'automation-poll.lock.guard/', 'automation-mutation.lock.guard/', 'automation-mutation.lock'];
14
14
  /** cezar's own data directory as a git pathspec exclusion. An in-place task's Changes and its
15
15
  * landing commit leave it out (spec 2026-10-20-trunk-based-projects): its config, ui-state and
16
16
  * .gitignore are not untracked by default, but they are never the task's work. */
@@ -26,6 +26,7 @@ export const DATA_GITIGNORE_ENTRIES = [
26
26
  // is not named here is covered by nothing at all. `data-gitignore.test.ts` guards that rule.
27
27
  'attachments/',
28
28
  'worktrees/',
29
+ 'artifacts/', // agent-published pages per run (spec 2026-10-22-html-artifacts-and-impact)
29
30
  'lifecycle/', // independent durable worktree preparation/cleanup history
30
31
  'config.lifecycle.lock/',
31
32
  'config.json.*.tmp',
@@ -1 +1 @@
1
- {"version":3,"file":"data-gitignore.js","sourceRoot":"","sources":["../src/data-gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,WAAW;IACX,eAAe;IACf,OAAO;IACP,WAAW,EAAE,sDAAsD;IACnE,WAAW,EAAE,+CAA+C;IAC5D,6FAA6F;IAC7F,4FAA4F;IAC5F,8FAA8F;IAC9F,uFAAuF;IACvF,8FAA8F;IAC9F,6FAA6F;IAC7F,cAAc;IACd,YAAY;IACZ,YAAY,EAAE,2DAA2D;IACzE,wBAAwB;IACxB,mBAAmB;IACnB,MAAM,EAAE,wCAAwC;IAChD,SAAS;IACT,6GAA6G;IAC7G,UAAU,EAAE,0EAA0E;IACtF,YAAY;IACZ,gBAAgB;IAChB,4FAA4F;IAC5F,gBAAgB;IAChB,0BAA0B;IAC1B,cAAc;IACd,kBAAkB;IAClB,oBAAoB;IACpB,2BAA2B;IAC3B,YAAY;IACZ,kBAAkB;IAClB,sBAAsB;IACtB,uBAAuB;IACvB,2BAA2B;IAC3B,4BAA4B;IAC5B,gCAAgC;IAChC,uBAAuB;IACvB,2BAA2B;IAC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AE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QACnE,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAClC,MAAM,OAAO,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QACzE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;YAC5D,aAAa,CAAC,IAAI,EAAE,GAAG,OAAO,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QAC1E,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,YAAY;IACd,CAAC;AACH,CAAC"}
@@ -28,6 +28,10 @@ export declare function isTerminalStatus(status: string): boolean;
28
28
  export declare function childrenOf(runs: readonly RunRecord[], parentId: string): RunRecord[];
29
29
  /** The subset still working — what the fan-out cap counts. */
30
30
  export declare function inFlightChildren(runs: readonly RunRecord[], parentId: string): RunRecord[];
31
+ /** What a parent is SUPERVISING (spec 2026-09-10-dispatch, A15): the children that will settle —
32
+ * and so wake it with a report — without anyone's help. A `waiting` child must not count, or it
33
+ * holds the parent's supervision exemption open for as long as nobody answers it. */
34
+ export declare function progressingChildren(runs: readonly RunRecord[], parentId: string): RunRecord[];
31
35
  /**
32
36
  * What a parent may still hand out: `budgetUsd − costUsd − Σ children.budgetUsd` (spec §Budget).
33
37
  *
@@ -35,6 +35,15 @@ export function childrenOf(runs, parentId) {
35
35
  export function inFlightChildren(runs, parentId) {
36
36
  return childrenOf(runs, parentId).filter((run) => IN_FLIGHT_STATUSES.includes(run.status));
37
37
  }
38
+ /** A child still moving on its own. Narrower than in-flight: a `waiting` child is parked on a
39
+ * human (its own `CEZ:ASK`, its cap, the empty-turn breaker) and will not settle without one. */
40
+ const PROGRESSING_STATUSES = ['queued', 'running'];
41
+ /** What a parent is SUPERVISING (spec 2026-09-10-dispatch, A15): the children that will settle —
42
+ * and so wake it with a report — without anyone's help. A `waiting` child must not count, or it
43
+ * holds the parent's supervision exemption open for as long as nobody answers it. */
44
+ export function progressingChildren(runs, parentId) {
45
+ return childrenOf(runs, parentId).filter((run) => PROGRESSING_STATUSES.includes(run.status));
46
+ }
38
47
  /**
39
48
  * What a parent may still hand out: `budgetUsd − costUsd − Σ children.budgetUsd` (spec §Budget).
40
49
  *
@@ -1 +1 @@
1
- {"version":3,"file":"engine.js","sourceRoot":"","sources":["../../src/dispatch/engine.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,EACL,sBAAsB,GAKvB,MAAM,8BAA8B,CAAC;AAGtC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,sBAAsB,CAAC;AAE7D;;0CAE0C;AAC1C,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AAEtC,2FAA2F;AAC3F,MAAM,kBAAkB,GAAsB,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAE/E;gGACgG;AAChG,MAAM,CAAC,MAAM,iBAAiB,GAAsB,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;AAE9F,MAAM,UAAU,gBAAgB,CAAC,MAAc;IAC7C,OAAO,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;AAC5C,CAAC;AAED,gFAAgF;AAChF,MAAM,UAAU,UAAU,CAAC,IAA0B,EAAE,QAAgB;IACrE,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,WAAW,KAAK,QAAQ,CAAC,CAAC;AACtE,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KAAK,CAAC,CAAC,mBAAmB,CAAC,CAAC;IAC/F,OAAO,EAAE,GAAG,QAAQ,EAAE,cAAc,EAAE,CAAC;AACzC,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAyC;IAC3E,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC3C,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAClC,MAAM,KAAK,GAAG,CAAC,UAAU,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrE,IAAI,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM;YAAE,KAAK,CAAC,IAAI,CAAC,aAAa,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC/F,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM;YAAE,KAAK,CAAC,IAAI,CAAC,WAAW,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACzF,OAAO,MAAM,KAAK,CAAC,KAAK,MAAM,KAAK,CAAC,SAAS,KAAK,KAAK,CAAC,EAAE,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IACrF,CAAC,CAAC,CAAC;IACH,OAAO,0CAA0C,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;AACtE,CAAC"}
@@ -17,19 +17,24 @@ export declare const E2E_WORKFLOW_FILE = ".ai/cezar/workflows/implement-and-e2e.
17
17
  export declare const E2E_CONFIG_FILES: readonly ['e2e.config.ts', 'e2e.config.mts', 'e2e.config.js', 'e2e.config.mjs'];
18
18
  /** The task text of a setup run: what the thread and the run list show. */
19
19
  export declare const E2E_SETUP_TASK = "Set up browser e2e tests (TesterArmy e2e) in this repository";
20
+ /** The first `e2e` with the non-interactive `init` flags, `E2E_CACHE_DIR` and `--max-duration`. */
21
+ export declare const E2E_PACKAGE = "e2e@^0.21.0";
22
+ /** The scaffold command: every wizard answer is a flag (e2e #1114), so nothing is left for the agent to undo. */
23
+ export declare function e2eInitCommand(credentials: readonly E2eCredentialName[]): string;
20
24
  /**
21
25
  * The workflow the setup leaves behind for the user's own tasks: implement, unit-test, then
22
26
  * prove it in a browser. `retryOn: [1]` loops on e2e's verdict only (exit 2/3/4 are config,
23
- * credential and engine failures the coding agent cannot fix — `docs/e2e-verification.md`).
27
+ * credential and engine failures the coding agent cannot fix — `docs/e2e-verification.md`);
28
+ * an exhausted `--max-duration` also exits 1, so a change that hangs the app loops back too.
24
29
  * The setup agent adapts the install and unit-test commands to the project; the rest is fixed.
25
30
  */
26
- export declare const E2E_WORKFLOW_TEMPLATE = "name: implement-and-e2e\ndescription: Implement, unit-test, then prove it in a real browser (set up by cezar).\nsteps:\n - id: deps\n name: Install\n command: \"npm ci --prefer-offline --no-audit\"\n\n - id: implement\n name: Implement\n prompt: |\n {{task}}\n\n If a browser check fails, read .e2e/summary.md and the pages under\n .e2e/failures/ before changing anything. Use the `e2e` skill for anything\n you change under tests/.\n\n - id: unit\n name: Unit tests\n command: \"npm test\"\n onFail:\n retry: implement\n max: 2\n\n - id: browser\n name: Browser e2e\n command: |\n E2E_TELEMETRY_DISABLED=1 npx --no-install e2e run --reporter list,markdown --max-failures 3; code=$?\n [ -f .e2e/summary.md ] && cat .e2e/summary.md\n exit $code\n onFail:\n retry: implement\n max: 2\n retryOn: [1]\n";
31
+ export declare const E2E_WORKFLOW_TEMPLATE = "name: implement-and-e2e\ndescription: Implement, unit-test, then prove it in a real browser (set up by cezar).\nsteps:\n - id: deps\n name: Install\n command: \"npm ci --prefer-offline --no-audit\"\n\n - id: implement\n name: Implement\n prompt: |\n {{task}}\n\n If a browser check fails, read .e2e/summary.md and the pages under\n .e2e/failures/ before changing anything. Use the `e2e` skill for anything\n you change under tests/.\n\n - id: unit\n name: Unit tests\n command: \"npm test\"\n onFail:\n retry: implement\n max: 2\n\n - id: browser\n name: Browser e2e\n command: |\n E2E_TELEMETRY_DISABLED=1 E2E_CACHE_DIR=\"${CEZ_SHARED_CACHE_DIR:+$CEZ_SHARED_CACHE_DIR/e2e}\" npx --no-install e2e run --reporter list,markdown --max-failures 3 --max-duration 900000; code=$?\n [ -f .e2e/summary.md ] && cat .e2e/summary.md\n exit $code\n onFail:\n retry: implement\n max: 2\n retryOn: [1]\n";
27
32
  /** The setup agent's instructions. `credentials` are NAMES only — the agent never sees a value. */
28
33
  export declare function e2eSetupPrompt(credentials: readonly E2eCredentialName[]): string;
29
34
  /** The draft PR's title — what the user sees in their PR list. */
30
35
  export declare const E2E_SETUP_PR_TITLE = "chore: set up e2e browser tests (TesterArmy e2e)";
31
36
  /**
32
- * The setup chain. The checks re-run what step 6 asked the agent to prove, from the outside,
37
+ * The setup chain. The checks re-run what step 5 asked the agent to prove, from the outside,
33
38
  * and loop back with the failing output on ANY exit code: unlike a coding task, a config,
34
39
  * dependency or app-process error (2/3) is exactly the setup's own work.
35
40
  *
package/dist/e2e-setup.js CHANGED
@@ -22,20 +22,37 @@ export const E2E_SETUP_TASK = 'Set up browser e2e tests (TesterArmy e2e) in this
22
22
  * Every `e2e` invocation the setup makes: the repo-pinned binary only (`--no-install` — a bare
23
23
  * `npx e2e` with nothing installed would fetch the registry's latest instead of the version the
24
24
  * setup pinned) and the vendor's telemetry off, because cezar does not widen network exposure
25
- * on the user's behalf.
25
+ * on the user's behalf. The replay cache goes to the project's shared check cache, so a
26
+ * recording made in one task's worktree replays in the next (e2e treats a blank value as unset).
26
27
  */
27
- const E2E = 'E2E_TELEMETRY_DISABLED=1 npx --no-install e2e';
28
+ const E2E = 'E2E_TELEMETRY_DISABLED=1 E2E_CACHE_DIR="${CEZ_SHARED_CACHE_DIR:+$CEZ_SHARED_CACHE_DIR/e2e}" npx --no-install e2e';
29
+ /** The first `e2e` with the non-interactive `init` flags, `E2E_CACHE_DIR` and `--max-duration`. */
30
+ export const E2E_PACKAGE = 'e2e@^0.21.0';
31
+ /** Run budgets: one smoke test during setup; a whole suite in the user's tasks (exits 1 on expiry). */
32
+ const SMOKE_MAX_DURATION_MS = 300_000;
33
+ const SUITE_MAX_DURATION_MS = 900_000;
34
+ /** The `init --gateway` that generates the model for a stored key; direct providers have none. */
35
+ const INIT_GATEWAYS = {
36
+ AI_GATEWAY_API_KEY: 'vercel',
37
+ OPENROUTER_API_KEY: 'openrouter',
38
+ };
28
39
  /** What the configured provider package and model factory are, per stored key name. */
29
40
  const PROVIDER_HINTS = {
30
41
  AI_GATEWAY_API_KEY: "the Vercel AI Gateway — keep the `gateway(...)` model `e2e init` generated (package `ai`)",
31
42
  OPENAI_API_KEY: 'OpenAI directly — add `@ai-sdk/openai` as a devDependency and use its `openai(...)` model',
32
43
  ANTHROPIC_API_KEY: 'Anthropic directly — add `@ai-sdk/anthropic` as a devDependency and use its `anthropic(...)` model',
33
- OPENROUTER_API_KEY: 'OpenRouter — add `@openrouter/ai-sdk-provider` as a devDependency and use its `openrouter(...)` model',
44
+ OPENROUTER_API_KEY: "OpenRouter — keep the `openrouter(...)` model `e2e init` generated (package `@openrouter/ai-sdk-provider`)",
34
45
  };
46
+ /** The scaffold command: every wizard answer is a flag (e2e #1114), so nothing is left for the agent to undo. */
47
+ export function e2eInitCommand(credentials) {
48
+ const gateway = (credentials[0] && INIT_GATEWAYS[credentials[0]]) ?? 'vercel';
49
+ return `E2E_TELEMETRY_DISABLED=1 npx --yes ${E2E_PACKAGE} init --yes --engine web --gateway ${gateway} --skills .agents/skills,.claude/skills --mcp .mcp.json --install </dev/null`;
50
+ }
35
51
  /**
36
52
  * The workflow the setup leaves behind for the user's own tasks: implement, unit-test, then
37
53
  * prove it in a browser. `retryOn: [1]` loops on e2e's verdict only (exit 2/3/4 are config,
38
- * credential and engine failures the coding agent cannot fix — `docs/e2e-verification.md`).
54
+ * credential and engine failures the coding agent cannot fix — `docs/e2e-verification.md`);
55
+ * an exhausted `--max-duration` also exits 1, so a change that hangs the app loops back too.
39
56
  * The setup agent adapts the install and unit-test commands to the project; the rest is fixed.
40
57
  */
41
58
  export const E2E_WORKFLOW_TEMPLATE = `name: implement-and-e2e
@@ -64,7 +81,7 @@ steps:
64
81
  - id: browser
65
82
  name: Browser e2e
66
83
  command: |
67
- ${E2E} run --reporter list,markdown --max-failures 3; code=$?
84
+ ${E2E} run --reporter list,markdown --max-failures 3 --max-duration ${SUITE_MAX_DURATION_MS}; code=$?
68
85
  [ -f .e2e/summary.md ] && cat .e2e/summary.md
69
86
  exit $code
70
87
  onFail:
@@ -90,31 +107,29 @@ export function e2eSetupPrompt(credentials) {
90
107
 
91
108
  1. Check the toolchain. \`e2e\` needs Node.js ^22.22.3 or >=24.8.0 (\`node --version\`). If this repository has no web application that a browser could open (no dev server or start script), or Node is too old, stop: explain why in one short paragraph and change nothing.
92
109
 
93
- 2. Scaffold: \`E2E_TELEMETRY_DISABLED=1 npx --yes e2e@latest init --yes </dev/null\`. It never overwrites existing files. It writes \`e2e.config.ts\`, \`tests/example.e2e.ts\`, the \`e2e\` skill (\`.agents/skills/e2e\` and a \`.claude/skills/e2e\` symlink), \`.mcp.json\`, a \`test:e2e\` script, devDependencies and \`.gitignore\` entries. If it also created \`.cursor/\` and the repository had no \`.cursor/\` directory before, delete that directory.
94
-
95
- 3. Install the dependencies \`init\` added with the package manager this repository uses (the \`packageManager\` field or the lockfile; npm otherwise), so the lockfile is updated.
110
+ 2. Scaffold: \`${e2eInitCommand(credentials)}\` — if the repository already has a \`.cursor/\` directory, append \`,.cursor/mcp.json\` to \`--mcp\`. It never overwrites existing files. It writes \`e2e.config.ts\`, \`tests/example.e2e.ts\`, the \`e2e\` skill (\`.agents/skills/e2e\` and a \`.claude/skills/e2e\` symlink), \`.mcp.json\`, a \`test:e2e\` script, devDependencies and \`.gitignore\` entries, and installs the dependencies with the package manager this repository uses, updating its lockfile.
96
111
 
97
- 4. Configure \`e2e.config.ts\` so every task gets its own port (cezar runs tasks in parallel):
112
+ 3. Configure \`e2e.config.ts\` so every task gets its own port (cezar runs tasks in parallel):
98
113
  - \`app.url: 'http://127.0.0.1:0'\` — literally \`127.0.0.1\`, never \`localhost\`, which e2e rejects with port 0.
99
- - \`app.command\`: start THIS project's dev server as \`{ executable, args, env }\` (never a shell string) with the \`{port}\` placeholder, bound to 127.0.0.1 — e.g. Vite \`['run','dev','--','--host','127.0.0.1','--port','{port}','--strictPort']\`, Next.js \`['run','dev','--','-H','127.0.0.1','-p','{port}']\` (and add \`allowedDevOrigins: ['127.0.0.1']\` to the Next config, or the page never hydrates). Pass \`PORT: '{port}'\` in \`env\` too. Raise \`startupTimeout\` if the dev server is slow to start. The app process inherits only PATH, HOME and temp variables, so put anything else it needs in \`env\`.
114
+ - \`app.command\`: start THIS project's dev server as \`{ executable, args, env }\` (never a shell string) with the \`{port}\` placeholder, bound to 127.0.0.1 — e.g. Vite \`['run','dev','--','--host','127.0.0.1','--port','{port}','--strictPort']\`, Next.js \`['run','dev','--','-H','127.0.0.1','-p','{port}']\` (and add \`allowedDevOrigins: ['127.0.0.1']\` to the Next config, or the page never hydrates). Pass \`PORT: '{port}'\` in \`env\` too. Raise \`startupTimeout\` if the dev server is slow to start. The app process inherits only PATH, HOME and temp variables: put fixed values in \`env\`, and list variables whose values come from the environment (a database URL, a service secret) in \`inheritEnv\` by name or \`PREFIX_*\` — never \`'*'\`, which e2e rejects because it would hand the app the model keys.
100
115
  - Model: ${providerLine}
101
116
  - Read \`node_modules/e2e/docs/reference/config.mdx\` for anything not covered here.
102
117
 
103
- 5. Replace \`tests/example.e2e.ts\` with \`tests/smoke.e2e.ts\`: open \`/\` and assert something visible that this app actually renders (a heading, the main landmark) using locators only — no \`agent.*\` step, so the smoke test passes without a model key. Leave one commented-out \`agent.act\`/\`agent.assert\` example below it.
118
+ 4. Replace \`tests/example.e2e.ts\` with \`tests/smoke.e2e.ts\`: open \`/\` and assert something visible that this app actually renders (a heading, the main landmark) using locators only — no \`agent.*\` step, so the smoke test passes without a model key. Leave one commented-out \`agent.act\`/\`agent.assert\` example below it.
104
119
 
105
- 6. Prove it locally: \`${E2E} list\` must list the smoke test, and \`${E2E} run --reporter list,markdown\` must pass (a missing browser downloads once on its own). Fix the configuration until both pass.
120
+ 5. Prove it locally: \`${E2E} list\` must list the smoke test, and \`${E2E} run --reporter list,markdown\` must pass (a missing browser downloads once on its own). Fix the configuration until both pass.
106
121
 
107
- 7. Write \`${E2E_WORKFLOW_FILE}\` with exactly this content, changing only the \`deps\` install command and the \`unit\` test command to what this repository uses (drop the \`unit\` step if it has no unit tests). Replace \`${TASK_PLACEHOLDER}\` with cezar's task token: two opening curly braces, the word \`task\`, two closing curly braces, with no spaces. A check step verifies that token is in the file.
122
+ 6. Write \`${E2E_WORKFLOW_FILE}\` with exactly this content, changing only the \`deps\` install command and the \`unit\` test command to what this repository uses (drop the \`unit\` step if it has no unit tests). Replace \`${TASK_PLACEHOLDER}\` with cezar's task token: two opening curly braces, the word \`task\`, two closing curly braces, with no spaces. A check step verifies that token is in the file.
108
123
 
109
124
  \`\`\`yaml
110
125
  ${E2E_WORKFLOW_TEMPLATE.replaceAll(TASK_TOKEN, TASK_PLACEHOLDER)}\`\`\`
111
126
 
112
- 8. Commit everything with the message \`chore: set up e2e browser tests\`. Reply with three short lines: the dev-server command you configured, the model provider, and anything the user still has to do.`;
127
+ 7. Commit everything with the message \`chore: set up e2e browser tests\`. Reply with three short lines: the dev-server command you configured, the model provider, and anything the user still has to do.`;
113
128
  }
114
129
  /** The draft PR's title — what the user sees in their PR list. */
115
130
  export const E2E_SETUP_PR_TITLE = 'chore: set up e2e browser tests (TesterArmy e2e)';
116
131
  /**
117
- * The setup chain. The checks re-run what step 6 asked the agent to prove, from the outside,
132
+ * The setup chain. The checks re-run what step 5 asked the agent to prove, from the outside,
118
133
  * and loop back with the failing output on ANY exit code: unlike a coding task, a config,
119
134
  * dependency or app-process error (2/3) is exactly the setup's own work.
120
135
  *
@@ -137,7 +152,7 @@ export function e2eSetupWorkflow(credentials) {
137
152
  {
138
153
  id: 'e2e-smoke',
139
154
  name: 'e2e smoke test',
140
- command: `${E2E} run --reporter list,markdown --max-failures 3; code=$?\n[ -f .e2e/summary.md ] && cat .e2e/summary.md\nexit $code`,
155
+ command: `${E2E} run --reporter list,markdown --max-failures 3 --max-duration ${SMOKE_MAX_DURATION_MS}; code=$?\n[ -f .e2e/summary.md ] && cat .e2e/summary.md\nexit $code`,
141
156
  onFail: { retry: 'setup', max: 2 },
142
157
  },
143
158
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"e2e-setup.js","sourceRoot":"","sources":["../src/e2e-setup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,uBAAuB,EAA0C,MAAM,8BAA8B,CAAC;AAErI,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAG/D;;;;;;;;GAQG;AAEH,OAAO,EAAE,uBAAuB,EAAE,CAAC;AAEnC,mGAAmG;AACnG,MAAM,CAAC,MAAM,iBAAiB,GAAG,4CAA4C,CAAC;AAE9E,gGAAgG;AAChG,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,CAAU,CAAC;AAEhH,2EAA2E;AAC3E,MAAM,CAAC,MAAM,cAAc,GAAG,8DAA8D,CAAC;AAE7F;;;;;GAKG;AACH,MAAM,GAAG,GAAG,+CAA+C,CAAC;AAE5D,uFAAuF;AACvF,MAAM,cAAc,GAAsC;IACxD,kBAAkB,EAAE,2FAA2F;IAC/G,cAAc,EAAE,2FAA2F;IAC3G,iBAAiB,EAAE,oGAAoG;IACvH,kBAAkB,EAAE,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AAS;YAAE,MAAM,GAAG,GAAG,CAAC;IAChE,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,kFAAkF;AAClF,MAAM,UAAU,aAAa,CAAC,GAA0B;IACtD,OAAO,GAAG,KAAK,SAAS,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;AACpF,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,QAAgB,EAChB,IAA0B,EAC1B,gBAAkC;IAElC,MAAM,KAAK,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO;QACL,UAAU,EAAE,MAAM,aAAa,CAAC,QAAQ,CAAC;QACzC,QAAQ,EAAE,MAAM,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QACzD,WAAW,EAAE,mBAAmB,CAAC,gBAAgB,CAAC;QAClD,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI;KAChE,CAAC;AACJ,CAAC"}
package/dist/handoff.d.ts CHANGED
@@ -70,7 +70,7 @@ export declare function followupsEnabled(env?: NodeJS.ProcessEnv): boolean;
70
70
  * inherited value from a parent cezar cannot shine through
71
71
  * (`RunManager.agentEnv`).
72
72
  */
73
- export declare const HANDOFF_ONLY_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\nUse the commands, never a hand-written script: node \"$CEZ_BIN\" handoff log \"<terse line>\" inserts the timestamped line under \"## Progress log\"; node \"$CEZ_BIN\" handoff resume \"<notes>\" (or the notes on stdin, for several lines) replaces \"## Resume notes\", and handoff resume \"\" clears it. Only if CEZ_BIN is unset, edit the file directly.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Dispatching a sub-agent is exactly this case, and it counts whether the sub-agent finishes inside this turn or runs in the background and reports back later through its own completion notification \u2014 cez has no sub-agent-completion event of its own, so an unmarked turn-end is indistinguishable from you asking the user a question, and it raises \"needs you\" and a browser notification for work nobody needs to look at. The test is one question: is the only thing between you and the next step work YOU started? Then the marker belongs there. A turn that fans work out ends like this, marker on the very last line:\n\n Dispatched 3 sub-agents to investigate the failing migration; I'll continue as soon as they report.\n CEZ:MONITORING\n\nUse CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE. A park is bounded, not indefinite: with an automatic re-check cadence configured cez wakes you on that cadence and, after the configured number of re-checks with no progress, hands the task to the user unless a dispatched child is still in flight; with no cadence configured it does the same after four times the configured waiting-session idle timeout (60 minutes by default, also the fallback when idle timeout is disabled), unless a dispatched child is still in flight. An unanswered hand-off ends the run as failed with a Continue button when the configured idle timeout closes the session; with idle timeout disabled it raises attention and rests at waiting \u2014 so end each re-check turn with CEZ:MONITORING again while the downstream work is still pending.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u201320 questions, 2\u201310 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The card itself gives every question an \"Other\u2026\" field for the user's own answer and a \"Need more info\" choice, so never add either as an option yourself. An answer that is not one of your labels is the user's own: act on it. An answer asking for more information means the user cannot decide yet: explain what that question hinges on \u2014 the context, the trade-offs, what each option would change \u2014 then ask it again with CEZ:ASK; never guess an answer for it. Several decisions that are genuinely all the user's ride ONE card \u2014 do not drop any to fit a count, and do not split them across turns. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line \u2014 those two always come last.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, text, archives \u2014 any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only; a non-image attachment exists ONLY as the file at that path.";
73
+ export declare const HANDOFF_ONLY_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\nUse the commands, never a hand-written script: node \"$CEZ_BIN\" handoff log \"<terse line>\" inserts the timestamped line under \"## Progress log\"; node \"$CEZ_BIN\" handoff resume \"<notes>\" (or the notes on stdin, for several lines) replaces \"## Resume notes\", and handoff resume \"\" clears it. Only if CEZ_BIN is unset, edit the file directly.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Dispatching a sub-agent is exactly this case, and it counts whether the sub-agent finishes inside this turn or runs in the background and reports back later through its own completion notification \u2014 cez has no sub-agent-completion event of its own, so an unmarked turn-end is indistinguishable from you asking the user a question, and it raises \"needs you\" and a browser notification for work nobody needs to look at. The test is one question: is the only thing between you and the next step work YOU started? Then the marker belongs there. A turn that fans work out ends like this, marker on the very last line:\n\n Dispatched 3 sub-agents to investigate the failing migration; I'll continue as soon as they report.\n CEZ:MONITORING\n\nUse CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE. A park is bounded, not indefinite: with an automatic re-check cadence configured cez wakes you on that cadence and, after the configured number of re-checks with no progress, hands the task to the user unless a dispatched child is still in flight; with no cadence configured it does the same after four times the configured waiting-session idle timeout (60 minutes by default, also the fallback when idle timeout is disabled), unless a dispatched child is still in flight. An unanswered hand-off ends the run as failed with a Continue button when the configured idle timeout closes the session; with idle timeout disabled it raises attention and rests at waiting \u2014 so end each re-check turn with CEZ:MONITORING again while the downstream work is still pending.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u201320 questions, 2\u201310 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The card itself gives every question an \"Other\u2026\" field for the user's own answer and a \"Need more info\" choice, so never add either as an option yourself. An answer that is not one of your labels is the user's own: act on it. An answer asking for more information means the user cannot decide yet: explain what that question hinges on \u2014 the context, the trade-offs, what each option would change \u2014 then ask it again with CEZ:ASK; never guess an answer for it. Several decisions that are genuinely all the user's ride ONE card \u2014 do not drop any to fit a count, and do not split them across turns. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line \u2014 those two always come last.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, text, archives \u2014 any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.";
74
74
  export declare const FOLLOWUP_INSTRUCTIONS = "## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
75
75
  /** Default-on combined contract retained for old callers and runs. */
76
- export declare const HANDOFF_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\nUse the commands, never a hand-written script: node \"$CEZ_BIN\" handoff log \"<terse line>\" inserts the timestamped line under \"## Progress log\"; node \"$CEZ_BIN\" handoff resume \"<notes>\" (or the notes on stdin, for several lines) replaces \"## Resume notes\", and handoff resume \"\" clears it. Only if CEZ_BIN is unset, edit the file directly.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Dispatching a sub-agent is exactly this case, and it counts whether the sub-agent finishes inside this turn or runs in the background and reports back later through its own completion notification \u2014 cez has no sub-agent-completion event of its own, so an unmarked turn-end is indistinguishable from you asking the user a question, and it raises \"needs you\" and a browser notification for work nobody needs to look at. The test is one question: is the only thing between you and the next step work YOU started? Then the marker belongs there. A turn that fans work out ends like this, marker on the very last line:\n\n Dispatched 3 sub-agents to investigate the failing migration; I'll continue as soon as they report.\n CEZ:MONITORING\n\nUse CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE. A park is bounded, not indefinite: with an automatic re-check cadence configured cez wakes you on that cadence and, after the configured number of re-checks with no progress, hands the task to the user unless a dispatched child is still in flight; with no cadence configured it does the same after four times the configured waiting-session idle timeout (60 minutes by default, also the fallback when idle timeout is disabled), unless a dispatched child is still in flight. An unanswered hand-off ends the run as failed with a Continue button when the configured idle timeout closes the session; with idle timeout disabled it raises attention and rests at waiting \u2014 so end each re-check turn with CEZ:MONITORING again while the downstream work is still pending.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u201320 questions, 2\u201310 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The card itself gives every question an \"Other\u2026\" field for the user's own answer and a \"Need more info\" choice, so never add either as an option yourself. An answer that is not one of your labels is the user's own: act on it. An answer asking for more information means the user cannot decide yet: explain what that question hinges on \u2014 the context, the trade-offs, what each option would change \u2014 then ask it again with CEZ:ASK; never guess an answer for it. Several decisions that are genuinely all the user's ride ONE card \u2014 do not drop any to fit a count, and do not split them across turns. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line \u2014 those two always come last.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, text, archives \u2014 any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only; a non-image attachment exists ONLY as the file at that path.\n\n## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
76
+ export declare const HANDOFF_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\nUse the commands, never a hand-written script: node \"$CEZ_BIN\" handoff log \"<terse line>\" inserts the timestamped line under \"## Progress log\"; node \"$CEZ_BIN\" handoff resume \"<notes>\" (or the notes on stdin, for several lines) replaces \"## Resume notes\", and handoff resume \"\" clears it. Only if CEZ_BIN is unset, edit the file directly.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Dispatching a sub-agent is exactly this case, and it counts whether the sub-agent finishes inside this turn or runs in the background and reports back later through its own completion notification \u2014 cez has no sub-agent-completion event of its own, so an unmarked turn-end is indistinguishable from you asking the user a question, and it raises \"needs you\" and a browser notification for work nobody needs to look at. The test is one question: is the only thing between you and the next step work YOU started? Then the marker belongs there. A turn that fans work out ends like this, marker on the very last line:\n\n Dispatched 3 sub-agents to investigate the failing migration; I'll continue as soon as they report.\n CEZ:MONITORING\n\nUse CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE. A park is bounded, not indefinite: with an automatic re-check cadence configured cez wakes you on that cadence and, after the configured number of re-checks with no progress, hands the task to the user unless a dispatched child is still in flight; with no cadence configured it does the same after four times the configured waiting-session idle timeout (60 minutes by default, also the fallback when idle timeout is disabled), unless a dispatched child is still in flight. An unanswered hand-off ends the run as failed with a Continue button when the configured idle timeout closes the session; with idle timeout disabled it raises attention and rests at waiting \u2014 so end each re-check turn with CEZ:MONITORING again while the downstream work is still pending.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u201320 questions, 2\u201310 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The card itself gives every question an \"Other\u2026\" field for the user's own answer and a \"Need more info\" choice, so never add either as an option yourself. An answer that is not one of your labels is the user's own: act on it. An answer asking for more information means the user cannot decide yet: explain what that question hinges on \u2014 the context, the trade-offs, what each option would change \u2014 then ask it again with CEZ:ASK; never guess an answer for it. Several decisions that are genuinely all the user's ride ONE card \u2014 do not drop any to fit a count, and do not split them across turns. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line \u2014 those two always come last.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, text, archives \u2014 any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.\n\n## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
package/dist/handoff.js CHANGED
@@ -1,4 +1,4 @@
1
- import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
1
+ import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
2
2
  import { dirname, join } from 'node:path';
3
3
  /**
4
4
  * Per-task handoff journal (spec 007): `.ai/cezar/runs/<runId>.handoff.md`,
@@ -98,8 +98,6 @@ function boundProgressLog(text) {
98
98
  * continuation) is never overwritten. Returns the file path. */
99
99
  export function seedHandoffFile(dataDir, run) {
100
100
  const file = handoffPath(dataDir, run.id);
101
- if (existsSync(file))
102
- return file;
103
101
  const header = `# Handoff — ${run.title}\n\n` +
104
102
  `**Task id:** ${run.id}\n` +
105
103
  `**Workflow:** ${run.workflow}\n` +
@@ -110,7 +108,9 @@ export function seedHandoffFile(dataDir, run) {
110
108
  `## Resume notes\n`;
111
109
  try {
112
110
  mkdirSync(dirname(file), { recursive: true });
113
- writeFileSync(file, header, 'utf8');
111
+ // Exclusive creation preserves a journal another writer created while we seeded it,
112
+ // and refuses existing symlinks (including dangling ones) without following them.
113
+ writeFileSync(file, header, { encoding: 'utf8', flag: 'wx' });
114
114
  }
115
115
  catch {
116
116
  // best effort — a read-only data dir must not break the run
@@ -257,7 +257,7 @@ Structured question marker: when you are blocked on a decision that is genuinely
257
257
  Task reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject — never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. "implementing comment threads"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence, and above any CEZ:DONE / CEZ:MONITORING line — those two always come last.
258
258
 
259
259
  ## Pasted attachments
260
- User-attached screenshots and files (PDF, text, archives — any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only; a non-image attachment exists ONLY as the file at that path.`;
260
+ User-attached screenshots and files (PDF, text, archives — any type) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only and does not survive later workflow steps, some backends or a compacted context, while the file on disk always does; a non-image attachment exists ONLY as the file at that path. Read the file whenever the user refers to a screenshot you cannot see inline, and never tell the user their attachment did not reach you without opening its path first.`;
261
261
  export const FOLLOWUP_INSTRUCTIONS = `## Follow-ups (cezar)
262
262
 
263
263
  CEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox — a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler — a restated summary of what you just finished, a congratulatory note, or "no further action needed" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:
@@ -1 +1 @@
1
- {"version":3,"file":"handoff.js","sourceRoot":"","sources":["../src/handoff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAE1C;;;;;;;GAOG;AAEH,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,KAAa;IACxD,OAAO,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,aAAa,CAAC,CAAC;AACtD,CAAC;AAWD,6EAA6E;AAC7E,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,CAAC;AAU1C,MAAM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