commandmate 0.15.0 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (711) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/app-build-manifest.json +425 -310
  3. package/.next/app-path-routes-manifest.json +35 -20
  4. package/.next/build-manifest.json +5 -5
  5. package/.next/prerender-manifest.json +15 -15
  6. package/.next/react-loadable-manifest.json +11 -11
  7. package/.next/required-server-files.json +1 -1
  8. package/.next/routes-manifest.json +72 -0
  9. package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  10. package/.next/server/app/api/app/update/route_client-reference-manifest.js +1 -1
  11. package/.next/server/app/api/app/update-check/route.js +1 -1
  12. package/.next/server/app/api/app/update-check/route_client-reference-manifest.js +1 -1
  13. package/.next/server/app/api/assistant/conversation/route.js +1 -1
  14. package/.next/server/app/api/assistant/conversation/route.js.nft.json +1 -1
  15. package/.next/server/app/api/assistant/conversation/route_client-reference-manifest.js +1 -1
  16. package/.next/server/app/api/assistant/current-output/route.js +1 -1
  17. package/.next/server/app/api/assistant/current-output/route.js.nft.json +1 -1
  18. package/.next/server/app/api/assistant/current-output/route_client-reference-manifest.js +1 -1
  19. package/.next/server/app/api/assistant/messages/route.js +1 -1
  20. package/.next/server/app/api/assistant/messages/route.js.nft.json +1 -1
  21. package/.next/server/app/api/assistant/messages/route_client-reference-manifest.js +1 -1
  22. package/.next/server/app/api/assistant/session/route.js +1 -1
  23. package/.next/server/app/api/assistant/session/route.js.nft.json +1 -1
  24. package/.next/server/app/api/assistant/session/route_client-reference-manifest.js +1 -1
  25. package/.next/server/app/api/assistant/start/route.js +1 -1
  26. package/.next/server/app/api/assistant/start/route.js.nft.json +1 -1
  27. package/.next/server/app/api/assistant/start/route_client-reference-manifest.js +1 -1
  28. package/.next/server/app/api/assistant/terminal/route.js +3 -3
  29. package/.next/server/app/api/assistant/terminal/route.js.nft.json +1 -1
  30. package/.next/server/app/api/assistant/terminal/route_client-reference-manifest.js +1 -1
  31. package/.next/server/app/api/assistant/tools/route.js +1 -1
  32. package/.next/server/app/api/assistant/tools/route.js.nft.json +1 -1
  33. package/.next/server/app/api/assistant/tools/route_client-reference-manifest.js +1 -1
  34. package/.next/server/app/api/auth/login/route_client-reference-manifest.js +1 -1
  35. package/.next/server/app/api/auth/logout/route_client-reference-manifest.js +1 -1
  36. package/.next/server/app/api/auth/status/route_client-reference-manifest.js +1 -1
  37. package/.next/server/app/api/daily-summary/route.js +1 -1
  38. package/.next/server/app/api/daily-summary/route.js.nft.json +1 -1
  39. package/.next/server/app/api/daily-summary/route_client-reference-manifest.js +1 -1
  40. package/.next/server/app/api/daily-summary/status/route.js +1 -1
  41. package/.next/server/app/api/daily-summary/status/route.js.nft.json +1 -1
  42. package/.next/server/app/api/daily-summary/status/route_client-reference-manifest.js +1 -1
  43. package/.next/server/app/api/external-apps/[id]/health/route_client-reference-manifest.js +1 -1
  44. package/.next/server/app/api/external-apps/[id]/route_client-reference-manifest.js +1 -1
  45. package/.next/server/app/api/external-apps/route_client-reference-manifest.js +1 -1
  46. package/.next/server/app/api/fs/browse/route_client-reference-manifest.js +1 -1
  47. package/.next/server/app/api/fs/recent-paths/route.js +1 -1
  48. package/.next/server/app/api/fs/recent-paths/route_client-reference-manifest.js +1 -1
  49. package/.next/server/app/api/hooks/agent-event/route.js +1 -0
  50. package/.next/server/app/api/hooks/agent-event/route.js.nft.json +1 -0
  51. package/.next/server/app/api/hooks/agent-event/route_client-reference-manifest.js +1 -0
  52. package/.next/server/app/api/hooks/claude-done/route.js +1 -1
  53. package/.next/server/app/api/hooks/claude-done/route.js.nft.json +1 -1
  54. package/.next/server/app/api/hooks/claude-done/route_client-reference-manifest.js +1 -1
  55. package/.next/server/app/api/metrics/vibe/route.js +37 -0
  56. package/.next/server/app/api/metrics/vibe/route.js.nft.json +1 -0
  57. package/.next/server/app/api/metrics/vibe/route_client-reference-manifest.js +1 -0
  58. package/.next/server/app/api/ollama/models/route_client-reference-manifest.js +1 -1
  59. package/.next/server/app/api/push/subscriptions/route.js +1 -1
  60. package/.next/server/app/api/push/subscriptions/route_client-reference-manifest.js +1 -1
  61. package/.next/server/app/api/push/vapid/route_client-reference-manifest.js +1 -1
  62. package/.next/server/app/api/repositories/[id]/route_client-reference-manifest.js +1 -1
  63. package/.next/server/app/api/repositories/[id]/todos/[todoId]/route.js +1 -1
  64. package/.next/server/app/api/repositories/[id]/todos/[todoId]/route_client-reference-manifest.js +1 -1
  65. package/.next/server/app/api/repositories/[id]/todos/route.js +1 -1
  66. package/.next/server/app/api/repositories/[id]/todos/route_client-reference-manifest.js +1 -1
  67. package/.next/server/app/api/repositories/clone/[jobId]/route.js +1 -1
  68. package/.next/server/app/api/repositories/clone/[jobId]/route.js.nft.json +1 -1
  69. package/.next/server/app/api/repositories/clone/[jobId]/route_client-reference-manifest.js +1 -1
  70. package/.next/server/app/api/repositories/clone/route.js +1 -1
  71. package/.next/server/app/api/repositories/clone/route.js.nft.json +1 -1
  72. package/.next/server/app/api/repositories/clone/route_client-reference-manifest.js +1 -1
  73. package/.next/server/app/api/repositories/excluded/route_client-reference-manifest.js +1 -1
  74. package/.next/server/app/api/repositories/restore/route.js +1 -1
  75. package/.next/server/app/api/repositories/restore/route.js.nft.json +1 -1
  76. package/.next/server/app/api/repositories/restore/route_client-reference-manifest.js +1 -1
  77. package/.next/server/app/api/repositories/route.js +1 -1
  78. package/.next/server/app/api/repositories/route.js.nft.json +1 -1
  79. package/.next/server/app/api/repositories/route_client-reference-manifest.js +1 -1
  80. package/.next/server/app/api/repositories/scan/route.js +1 -1
  81. package/.next/server/app/api/repositories/scan/route.js.nft.json +1 -1
  82. package/.next/server/app/api/repositories/scan/route_client-reference-manifest.js +1 -1
  83. package/.next/server/app/api/repositories/sync/route.js +1 -1
  84. package/.next/server/app/api/repositories/sync/route.js.nft.json +1 -1
  85. package/.next/server/app/api/repositories/sync/route_client-reference-manifest.js +1 -1
  86. package/.next/server/app/api/repositories/validate-path/route_client-reference-manifest.js +1 -1
  87. package/.next/server/app/api/sidebar/group-order/route_client-reference-manifest.js +1 -1
  88. package/.next/server/app/api/skills/[id]/route.js +1 -1
  89. package/.next/server/app/api/skills/[id]/route_client-reference-manifest.js +1 -1
  90. package/.next/server/app/api/skills/installations/route.js +23 -0
  91. package/.next/server/app/api/skills/installations/route.js.nft.json +1 -0
  92. package/.next/server/app/api/skills/installations/route_client-reference-manifest.js +1 -0
  93. package/.next/server/app/api/skills/operations/route.js +13 -0
  94. package/.next/server/app/api/skills/operations/route.js.nft.json +1 -0
  95. package/.next/server/app/api/skills/operations/route_client-reference-manifest.js +1 -0
  96. package/.next/server/app/api/skills/reindex/route.js +23 -0
  97. package/.next/server/app/api/skills/reindex/route.js.nft.json +1 -0
  98. package/.next/server/app/api/skills/reindex/route_client-reference-manifest.js +1 -0
  99. package/.next/server/app/api/skills/route.js +1 -1
  100. package/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
  101. package/.next/server/app/api/slash-commands/route_client-reference-manifest.js +1 -1
  102. package/.next/server/app/api/tasks/[taskId]/cancel/route.js +4 -0
  103. package/.next/server/app/api/tasks/[taskId]/cancel/route.js.nft.json +1 -0
  104. package/.next/server/app/api/tasks/[taskId]/cancel/route_client-reference-manifest.js +1 -0
  105. package/.next/server/app/api/tasks/[taskId]/route.js +4 -0
  106. package/.next/server/app/api/tasks/[taskId]/route.js.nft.json +1 -0
  107. package/.next/server/app/api/tasks/[taskId]/route_client-reference-manifest.js +1 -0
  108. package/.next/server/app/api/templates/[id]/route.js +1 -1
  109. package/.next/server/app/api/templates/[id]/route_client-reference-manifest.js +1 -1
  110. package/.next/server/app/api/templates/route.js +1 -1
  111. package/.next/server/app/api/templates/route_client-reference-manifest.js +1 -1
  112. package/.next/server/app/api/todos/route.js +1 -1
  113. package/.next/server/app/api/todos/route_client-reference-manifest.js +1 -1
  114. package/.next/server/app/api/verification/runs/[runId]/route.js +1 -0
  115. package/.next/server/app/api/verification/runs/[runId]/route.js.nft.json +1 -0
  116. package/.next/server/app/api/verification/runs/[runId]/route_client-reference-manifest.js +1 -0
  117. package/.next/server/app/api/verification/runs/route.js +1 -0
  118. package/.next/server/app/api/verification/runs/route.js.nft.json +1 -0
  119. package/.next/server/app/api/verification/runs/route_client-reference-manifest.js +1 -0
  120. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js +1 -1
  121. package/.next/server/app/api/worktrees/[id]/auto-yes/route.js.nft.json +1 -1
  122. package/.next/server/app/api/worktrees/[id]/auto-yes/route_client-reference-manifest.js +1 -1
  123. package/.next/server/app/api/worktrees/[id]/capture/route.js +1 -1
  124. package/.next/server/app/api/worktrees/[id]/capture/route.js.nft.json +1 -1
  125. package/.next/server/app/api/worktrees/[id]/capture/route_client-reference-manifest.js +1 -1
  126. package/.next/server/app/api/worktrees/[id]/cli-tool/route.js +1 -1
  127. package/.next/server/app/api/worktrees/[id]/cli-tool/route_client-reference-manifest.js +1 -1
  128. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route.js +1 -1
  129. package/.next/server/app/api/worktrees/[id]/cmate/schedules/route_client-reference-manifest.js +1 -1
  130. package/.next/server/app/api/worktrees/[id]/current-output/route.js +1 -1
  131. package/.next/server/app/api/worktrees/[id]/current-output/route.js.nft.json +1 -1
  132. package/.next/server/app/api/worktrees/[id]/current-output/route_client-reference-manifest.js +1 -1
  133. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route.js +1 -1
  134. package/.next/server/app/api/worktrees/[id]/execution-logs/[logId]/route_client-reference-manifest.js +1 -1
  135. package/.next/server/app/api/worktrees/[id]/execution-logs/route.js +2 -2
  136. package/.next/server/app/api/worktrees/[id]/execution-logs/route_client-reference-manifest.js +1 -1
  137. package/.next/server/app/api/worktrees/[id]/files/[...path]/route.js +1 -1
  138. package/.next/server/app/api/worktrees/[id]/files/[...path]/route_client-reference-manifest.js +1 -1
  139. package/.next/server/app/api/worktrees/[id]/git/branch/create/route.js +1 -1
  140. package/.next/server/app/api/worktrees/[id]/git/branch/create/route.js.nft.json +1 -1
  141. package/.next/server/app/api/worktrees/[id]/git/branch/create/route_client-reference-manifest.js +1 -1
  142. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route.js +1 -1
  143. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route.js.nft.json +1 -1
  144. package/.next/server/app/api/worktrees/[id]/git/branch/delete/route_client-reference-manifest.js +1 -1
  145. package/.next/server/app/api/worktrees/[id]/git/branches/route.js +1 -1
  146. package/.next/server/app/api/worktrees/[id]/git/branches/route.js.nft.json +1 -1
  147. package/.next/server/app/api/worktrees/[id]/git/branches/route_client-reference-manifest.js +1 -1
  148. package/.next/server/app/api/worktrees/[id]/git/checkout/route.js +1 -1
  149. package/.next/server/app/api/worktrees/[id]/git/checkout/route.js.nft.json +1 -1
  150. package/.next/server/app/api/worktrees/[id]/git/checkout/route_client-reference-manifest.js +1 -1
  151. package/.next/server/app/api/worktrees/[id]/git/commit/route.js +1 -1
  152. package/.next/server/app/api/worktrees/[id]/git/commit/route.js.nft.json +1 -1
  153. package/.next/server/app/api/worktrees/[id]/git/commit/route_client-reference-manifest.js +1 -1
  154. package/.next/server/app/api/worktrees/[id]/git/diff/route.js +1 -1
  155. package/.next/server/app/api/worktrees/[id]/git/diff/route.js.nft.json +1 -1
  156. package/.next/server/app/api/worktrees/[id]/git/diff/route_client-reference-manifest.js +1 -1
  157. package/.next/server/app/api/worktrees/[id]/git/fetch/route.js +1 -1
  158. package/.next/server/app/api/worktrees/[id]/git/fetch/route.js.nft.json +1 -1
  159. package/.next/server/app/api/worktrees/[id]/git/fetch/route_client-reference-manifest.js +1 -1
  160. package/.next/server/app/api/worktrees/[id]/git/log/route.js +1 -1
  161. package/.next/server/app/api/worktrees/[id]/git/log/route.js.nft.json +1 -1
  162. package/.next/server/app/api/worktrees/[id]/git/log/route_client-reference-manifest.js +1 -1
  163. package/.next/server/app/api/worktrees/[id]/git/pull/route.js +1 -1
  164. package/.next/server/app/api/worktrees/[id]/git/pull/route.js.nft.json +1 -1
  165. package/.next/server/app/api/worktrees/[id]/git/pull/route_client-reference-manifest.js +1 -1
  166. package/.next/server/app/api/worktrees/[id]/git/push/route.js +1 -1
  167. package/.next/server/app/api/worktrees/[id]/git/push/route.js.nft.json +1 -1
  168. package/.next/server/app/api/worktrees/[id]/git/push/route_client-reference-manifest.js +1 -1
  169. package/.next/server/app/api/worktrees/[id]/git/reset/route.js +1 -1
  170. package/.next/server/app/api/worktrees/[id]/git/reset/route.js.nft.json +1 -1
  171. package/.next/server/app/api/worktrees/[id]/git/reset/route_client-reference-manifest.js +1 -1
  172. package/.next/server/app/api/worktrees/[id]/git/revert/route.js +1 -1
  173. package/.next/server/app/api/worktrees/[id]/git/revert/route.js.nft.json +1 -1
  174. package/.next/server/app/api/worktrees/[id]/git/revert/route_client-reference-manifest.js +1 -1
  175. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route.js +1 -1
  176. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route.js.nft.json +1 -1
  177. package/.next/server/app/api/worktrees/[id]/git/show/[commitHash]/route_client-reference-manifest.js +1 -1
  178. package/.next/server/app/api/worktrees/[id]/git/stage/route.js +1 -1
  179. package/.next/server/app/api/worktrees/[id]/git/stage/route.js.nft.json +1 -1
  180. package/.next/server/app/api/worktrees/[id]/git/stage/route_client-reference-manifest.js +1 -1
  181. package/.next/server/app/api/worktrees/[id]/git/staged/route.js +1 -1
  182. package/.next/server/app/api/worktrees/[id]/git/staged/route.js.nft.json +1 -1
  183. package/.next/server/app/api/worktrees/[id]/git/staged/route_client-reference-manifest.js +1 -1
  184. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route.js +1 -1
  185. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route.js.nft.json +1 -1
  186. package/.next/server/app/api/worktrees/[id]/git/stash/[index]/route_client-reference-manifest.js +1 -1
  187. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route.js +1 -1
  188. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route.js.nft.json +1 -1
  189. package/.next/server/app/api/worktrees/[id]/git/stash/apply/route_client-reference-manifest.js +1 -1
  190. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route.js +1 -1
  191. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route.js.nft.json +1 -1
  192. package/.next/server/app/api/worktrees/[id]/git/stash/pop/route_client-reference-manifest.js +1 -1
  193. package/.next/server/app/api/worktrees/[id]/git/stash/push/route.js +1 -1
  194. package/.next/server/app/api/worktrees/[id]/git/stash/push/route.js.nft.json +1 -1
  195. package/.next/server/app/api/worktrees/[id]/git/stash/push/route_client-reference-manifest.js +1 -1
  196. package/.next/server/app/api/worktrees/[id]/git/stash/route.js +1 -1
  197. package/.next/server/app/api/worktrees/[id]/git/stash/route.js.nft.json +1 -1
  198. package/.next/server/app/api/worktrees/[id]/git/stash/route_client-reference-manifest.js +1 -1
  199. package/.next/server/app/api/worktrees/[id]/git/status/route.js +1 -1
  200. package/.next/server/app/api/worktrees/[id]/git/status/route.js.nft.json +1 -1
  201. package/.next/server/app/api/worktrees/[id]/git/status/route_client-reference-manifest.js +1 -1
  202. package/.next/server/app/api/worktrees/[id]/git/unstage/route.js +1 -1
  203. package/.next/server/app/api/worktrees/[id]/git/unstage/route.js.nft.json +1 -1
  204. package/.next/server/app/api/worktrees/[id]/git/unstage/route_client-reference-manifest.js +1 -1
  205. package/.next/server/app/api/worktrees/[id]/git/working-diff/route.js +1 -1
  206. package/.next/server/app/api/worktrees/[id]/git/working-diff/route.js.nft.json +1 -1
  207. package/.next/server/app/api/worktrees/[id]/git/working-diff/route_client-reference-manifest.js +1 -1
  208. package/.next/server/app/api/worktrees/[id]/interrupt/route.js +1 -1
  209. package/.next/server/app/api/worktrees/[id]/interrupt/route.js.nft.json +1 -1
  210. package/.next/server/app/api/worktrees/[id]/interrupt/route_client-reference-manifest.js +1 -1
  211. package/.next/server/app/api/worktrees/[id]/kill-session/route.js +1 -1
  212. package/.next/server/app/api/worktrees/[id]/kill-session/route.js.nft.json +1 -1
  213. package/.next/server/app/api/worktrees/[id]/kill-session/route_client-reference-manifest.js +1 -1
  214. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route.js +1 -1
  215. package/.next/server/app/api/worktrees/[id]/logs/[filename]/route_client-reference-manifest.js +1 -1
  216. package/.next/server/app/api/worktrees/[id]/logs/route.js +1 -1
  217. package/.next/server/app/api/worktrees/[id]/logs/route_client-reference-manifest.js +1 -1
  218. package/.next/server/app/api/worktrees/[id]/marp-render/route.js +1 -1
  219. package/.next/server/app/api/worktrees/[id]/marp-render/route_client-reference-manifest.js +1 -1
  220. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route.js +1 -1
  221. package/.next/server/app/api/worktrees/[id]/memos/[memoId]/route_client-reference-manifest.js +1 -1
  222. package/.next/server/app/api/worktrees/[id]/memos/route.js +1 -1
  223. package/.next/server/app/api/worktrees/[id]/memos/route_client-reference-manifest.js +1 -1
  224. package/.next/server/app/api/worktrees/[id]/messages/route.js +1 -1
  225. package/.next/server/app/api/worktrees/[id]/messages/route_client-reference-manifest.js +1 -1
  226. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js +1 -1
  227. package/.next/server/app/api/worktrees/[id]/prompt-response/route.js.nft.json +1 -1
  228. package/.next/server/app/api/worktrees/[id]/prompt-response/route_client-reference-manifest.js +1 -1
  229. package/.next/server/app/api/worktrees/[id]/respond/route.js +1 -1
  230. package/.next/server/app/api/worktrees/[id]/respond/route.js.nft.json +1 -1
  231. package/.next/server/app/api/worktrees/[id]/respond/route_client-reference-manifest.js +1 -1
  232. package/.next/server/app/api/worktrees/[id]/route.js +1 -1
  233. package/.next/server/app/api/worktrees/[id]/route.js.nft.json +1 -1
  234. package/.next/server/app/api/worktrees/[id]/route_client-reference-manifest.js +1 -1
  235. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route.js +1 -1
  236. package/.next/server/app/api/worktrees/[id]/schedules/[scheduleId]/route_client-reference-manifest.js +1 -1
  237. package/.next/server/app/api/worktrees/[id]/schedules/active/route.js +1 -1
  238. package/.next/server/app/api/worktrees/[id]/schedules/active/route_client-reference-manifest.js +1 -1
  239. package/.next/server/app/api/worktrees/[id]/schedules/route.js +2 -2
  240. package/.next/server/app/api/worktrees/[id]/schedules/route_client-reference-manifest.js +1 -1
  241. package/.next/server/app/api/worktrees/[id]/search/route.js +1 -1
  242. package/.next/server/app/api/worktrees/[id]/search/route_client-reference-manifest.js +1 -1
  243. package/.next/server/app/api/worktrees/[id]/send/route.js +1 -1
  244. package/.next/server/app/api/worktrees/[id]/send/route.js.nft.json +1 -1
  245. package/.next/server/app/api/worktrees/[id]/send/route_client-reference-manifest.js +1 -1
  246. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js +18 -0
  247. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.js.nft.json +1 -0
  248. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route_client-reference-manifest.js +1 -0
  249. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route.js +1 -1
  250. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route.js.nft.json +1 -1
  251. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/install/route_client-reference-manifest.js +1 -1
  252. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js +1 -1
  253. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route.js.nft.json +1 -1
  254. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/plan/route_client-reference-manifest.js +1 -1
  255. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route.js +1 -1
  256. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route.js.nft.json +1 -1
  257. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall/route_client-reference-manifest.js +1 -1
  258. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.js +1 -1
  259. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route.js.nft.json +1 -1
  260. package/.next/server/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route_client-reference-manifest.js +1 -1
  261. package/.next/server/app/api/worktrees/[id]/skills/route.js +2 -2
  262. package/.next/server/app/api/worktrees/[id]/skills/route_client-reference-manifest.js +1 -1
  263. package/.next/server/app/api/worktrees/[id]/slash-commands/route.js +1 -1
  264. package/.next/server/app/api/worktrees/[id]/slash-commands/route_client-reference-manifest.js +1 -1
  265. package/.next/server/app/api/worktrees/[id]/special-keys/route.js +1 -1
  266. package/.next/server/app/api/worktrees/[id]/special-keys/route.js.nft.json +1 -1
  267. package/.next/server/app/api/worktrees/[id]/special-keys/route_client-reference-manifest.js +1 -1
  268. package/.next/server/app/api/worktrees/[id]/start-polling/route.js +1 -1
  269. package/.next/server/app/api/worktrees/[id]/start-polling/route.js.nft.json +1 -1
  270. package/.next/server/app/api/worktrees/[id]/start-polling/route_client-reference-manifest.js +1 -1
  271. package/.next/server/app/api/worktrees/[id]/tasks/route.js +6 -0
  272. package/.next/server/app/api/worktrees/[id]/tasks/route.js.nft.json +1 -0
  273. package/.next/server/app/api/worktrees/[id]/tasks/route_client-reference-manifest.js +1 -0
  274. package/.next/server/app/api/worktrees/[id]/terminal/route.js +1 -1
  275. package/.next/server/app/api/worktrees/[id]/terminal/route.js.nft.json +1 -1
  276. package/.next/server/app/api/worktrees/[id]/terminal/route_client-reference-manifest.js +1 -1
  277. package/.next/server/app/api/worktrees/[id]/timers/history/route.js +1 -1
  278. package/.next/server/app/api/worktrees/[id]/timers/history/route_client-reference-manifest.js +1 -1
  279. package/.next/server/app/api/worktrees/[id]/timers/route.js +1 -1
  280. package/.next/server/app/api/worktrees/[id]/timers/route.js.nft.json +1 -1
  281. package/.next/server/app/api/worktrees/[id]/timers/route_client-reference-manifest.js +1 -1
  282. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route.js +1 -1
  283. package/.next/server/app/api/worktrees/[id]/todos/[todoId]/route_client-reference-manifest.js +1 -1
  284. package/.next/server/app/api/worktrees/[id]/todos/route.js +1 -1
  285. package/.next/server/app/api/worktrees/[id]/todos/route_client-reference-manifest.js +1 -1
  286. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route.js +1 -1
  287. package/.next/server/app/api/worktrees/[id]/tree/[...path]/route_client-reference-manifest.js +1 -1
  288. package/.next/server/app/api/worktrees/[id]/tree/route.js +1 -1
  289. package/.next/server/app/api/worktrees/[id]/tree/route_client-reference-manifest.js +1 -1
  290. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route.js +1 -1
  291. package/.next/server/app/api/worktrees/[id]/upload/[...path]/route_client-reference-manifest.js +1 -1
  292. package/.next/server/app/api/worktrees/[id]/verify/route.js +4 -0
  293. package/.next/server/app/api/worktrees/[id]/verify/route.js.nft.json +1 -0
  294. package/.next/server/app/api/worktrees/[id]/verify/route_client-reference-manifest.js +1 -0
  295. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route.js +1 -0
  296. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route.js.nft.json +1 -0
  297. package/.next/server/app/api/worktrees/[id]/verify/runs/[runId]/route_client-reference-manifest.js +1 -0
  298. package/.next/server/app/api/worktrees/[id]/verify/runs/route.js +1 -0
  299. package/.next/server/app/api/worktrees/[id]/verify/runs/route.js.nft.json +1 -0
  300. package/.next/server/app/api/worktrees/[id]/verify/runs/route_client-reference-manifest.js +1 -0
  301. package/.next/server/app/api/worktrees/[id]/viewed/route.js +1 -1
  302. package/.next/server/app/api/worktrees/[id]/viewed/route_client-reference-manifest.js +1 -1
  303. package/.next/server/app/api/worktrees/route.js +1 -1
  304. package/.next/server/app/api/worktrees/route.js.nft.json +1 -1
  305. package/.next/server/app/api/worktrees/route_client-reference-manifest.js +1 -1
  306. package/.next/server/app/chat/page_client-reference-manifest.js +1 -1
  307. package/.next/server/app/login/page_client-reference-manifest.js +1 -1
  308. package/.next/server/app/manifest.webmanifest/route_client-reference-manifest.js +1 -1
  309. package/.next/server/app/more/page.js +1 -1
  310. package/.next/server/app/more/page_client-reference-manifest.js +1 -1
  311. package/.next/server/app/offline/page_client-reference-manifest.js +1 -1
  312. package/.next/server/app/page_client-reference-manifest.js +1 -1
  313. package/.next/server/app/proxy/[...path]/route_client-reference-manifest.js +1 -1
  314. package/.next/server/app/repositories/page.js +1 -1
  315. package/.next/server/app/repositories/page_client-reference-manifest.js +1 -1
  316. package/.next/server/app/review/page.js +1 -1
  317. package/.next/server/app/review/page_client-reference-manifest.js +1 -1
  318. package/.next/server/app/sessions/page.js +1 -1
  319. package/.next/server/app/sessions/page_client-reference-manifest.js +1 -1
  320. package/.next/server/app/skills/[skillId]/page.js +1 -1
  321. package/.next/server/app/skills/[skillId]/page.js.nft.json +1 -1
  322. package/.next/server/app/skills/[skillId]/page_client-reference-manifest.js +1 -1
  323. package/.next/server/app/skills/installed/page.js +2 -0
  324. package/.next/server/app/skills/installed/page.js.nft.json +1 -0
  325. package/.next/server/app/skills/installed/page_client-reference-manifest.js +1 -0
  326. package/.next/server/app/skills/page.js +2 -2
  327. package/.next/server/app/skills/page.js.nft.json +1 -1
  328. package/.next/server/app/skills/page_client-reference-manifest.js +1 -1
  329. package/.next/server/app/worktrees/[id]/files/[...path]/page_client-reference-manifest.js +1 -1
  330. package/.next/server/app/worktrees/[id]/page.js +4 -4
  331. package/.next/server/app/worktrees/[id]/page.js.nft.json +1 -1
  332. package/.next/server/app/worktrees/[id]/page_client-reference-manifest.js +1 -1
  333. package/.next/server/app/worktrees/[id]/terminal/page_client-reference-manifest.js +1 -1
  334. package/.next/server/app-paths-manifest.json +35 -20
  335. package/.next/server/chunks/1068.js +1 -1
  336. package/.next/server/chunks/1117.js +1 -1
  337. package/.next/server/chunks/1185.js +1 -0
  338. package/.next/server/chunks/1239.js +1 -0
  339. package/.next/server/chunks/1503.js +2 -0
  340. package/.next/server/chunks/22.js +1 -1
  341. package/.next/server/chunks/2328.js +1 -1
  342. package/.next/server/chunks/2366.js +1 -0
  343. package/.next/server/chunks/2710.js +2 -0
  344. package/.next/server/chunks/28.js +35 -0
  345. package/.next/server/chunks/3042.js +1 -2
  346. package/.next/server/chunks/3736.js +1 -1
  347. package/.next/server/chunks/4440.js +2 -0
  348. package/.next/server/chunks/4444.js +1 -1
  349. package/.next/server/chunks/4548.js +1 -0
  350. package/.next/server/chunks/4689.js +25 -0
  351. package/.next/server/chunks/5064.js +1 -1
  352. package/.next/server/chunks/5381.js +50 -10
  353. package/.next/server/chunks/5456.js +1 -1
  354. package/.next/server/chunks/5737.js +1 -0
  355. package/.next/server/chunks/5793.js +1 -0
  356. package/.next/server/chunks/5959.js +3 -3
  357. package/.next/server/chunks/6130.js +1 -1
  358. package/.next/server/chunks/6274.js +13 -0
  359. package/.next/server/chunks/646.js +1 -1
  360. package/.next/server/chunks/8681.js +1 -1
  361. package/.next/server/chunks/8807.js +255 -51
  362. package/.next/server/chunks/8856.js +4 -0
  363. package/.next/server/chunks/9051.js +1 -0
  364. package/.next/server/chunks/9687.js +2 -2
  365. package/.next/server/middleware-build-manifest.js +1 -1
  366. package/.next/server/middleware-manifest.json +5 -5
  367. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  368. package/.next/server/pages/500.html +1 -1
  369. package/.next/server/server-reference-manifest.json +1 -1
  370. package/.next/static/chunks/2751-7fabd91275b14ca3.js +1 -0
  371. package/.next/static/chunks/{4459.03172449db395039.js → 4459.a94b52985a76509a.js} +1 -1
  372. package/.next/static/chunks/{4560-8ffb0bb19f2ba998.js → 4560-0917ae2e6a0e5400.js} +1 -1
  373. package/.next/static/chunks/{6488-93870a55f4a3e3cd.js → 6488-f4e447464c9e0e22.js} +1 -1
  374. package/.next/static/chunks/{7485.43871aedf3dbb980.js → 7485.442b21101fca7257.js} +1 -1
  375. package/.next/static/chunks/8562-6e2ab32452f4fa5b.js +1 -0
  376. package/.next/static/chunks/app/api/app/update/route-8440b6c72bed83a1.js +1 -0
  377. package/.next/static/chunks/app/api/app/update-check/route-8440b6c72bed83a1.js +1 -0
  378. package/.next/static/chunks/app/api/assistant/conversation/route-8440b6c72bed83a1.js +1 -0
  379. package/.next/static/chunks/app/api/assistant/current-output/route-8440b6c72bed83a1.js +1 -0
  380. package/.next/static/chunks/app/api/assistant/messages/route-8440b6c72bed83a1.js +1 -0
  381. package/.next/static/chunks/app/api/assistant/session/route-8440b6c72bed83a1.js +1 -0
  382. package/.next/static/chunks/app/api/assistant/start/route-8440b6c72bed83a1.js +1 -0
  383. package/.next/static/chunks/app/api/assistant/terminal/route-8440b6c72bed83a1.js +1 -0
  384. package/.next/static/chunks/app/api/assistant/tools/route-8440b6c72bed83a1.js +1 -0
  385. package/.next/static/chunks/app/api/auth/login/route-8440b6c72bed83a1.js +1 -0
  386. package/.next/static/chunks/app/api/auth/logout/route-8440b6c72bed83a1.js +1 -0
  387. package/.next/static/chunks/app/api/auth/status/route-8440b6c72bed83a1.js +1 -0
  388. package/.next/static/chunks/app/api/daily-summary/route-8440b6c72bed83a1.js +1 -0
  389. package/.next/static/chunks/app/api/daily-summary/status/route-8440b6c72bed83a1.js +1 -0
  390. package/.next/static/chunks/app/api/external-apps/[id]/health/route-8440b6c72bed83a1.js +1 -0
  391. package/.next/static/chunks/app/api/external-apps/[id]/route-8440b6c72bed83a1.js +1 -0
  392. package/.next/static/chunks/app/api/external-apps/route-8440b6c72bed83a1.js +1 -0
  393. package/.next/static/chunks/app/api/fs/browse/route-8440b6c72bed83a1.js +1 -0
  394. package/.next/static/chunks/app/api/fs/recent-paths/route-8440b6c72bed83a1.js +1 -0
  395. package/.next/static/chunks/app/api/hooks/agent-event/route-8440b6c72bed83a1.js +1 -0
  396. package/.next/static/chunks/app/api/hooks/claude-done/route-8440b6c72bed83a1.js +1 -0
  397. package/.next/static/chunks/app/api/metrics/vibe/route-8440b6c72bed83a1.js +1 -0
  398. package/.next/static/chunks/app/api/ollama/models/route-8440b6c72bed83a1.js +1 -0
  399. package/.next/static/chunks/app/api/push/subscriptions/route-8440b6c72bed83a1.js +1 -0
  400. package/.next/static/chunks/app/api/push/vapid/route-8440b6c72bed83a1.js +1 -0
  401. package/.next/static/chunks/app/api/repositories/[id]/route-8440b6c72bed83a1.js +1 -0
  402. package/.next/static/chunks/app/api/repositories/[id]/todos/[todoId]/route-8440b6c72bed83a1.js +1 -0
  403. package/.next/static/chunks/app/api/repositories/[id]/todos/route-8440b6c72bed83a1.js +1 -0
  404. package/.next/static/chunks/app/api/repositories/clone/[jobId]/route-8440b6c72bed83a1.js +1 -0
  405. package/.next/static/chunks/app/api/repositories/clone/route-8440b6c72bed83a1.js +1 -0
  406. package/.next/static/chunks/app/api/repositories/excluded/route-8440b6c72bed83a1.js +1 -0
  407. package/.next/static/chunks/app/api/repositories/restore/route-8440b6c72bed83a1.js +1 -0
  408. package/.next/static/chunks/app/api/repositories/route-8440b6c72bed83a1.js +1 -0
  409. package/.next/static/chunks/app/api/repositories/scan/route-8440b6c72bed83a1.js +1 -0
  410. package/.next/static/chunks/app/api/repositories/sync/route-8440b6c72bed83a1.js +1 -0
  411. package/.next/static/chunks/app/api/repositories/validate-path/route-8440b6c72bed83a1.js +1 -0
  412. package/.next/static/chunks/app/api/sidebar/group-order/route-8440b6c72bed83a1.js +1 -0
  413. package/.next/static/chunks/app/api/skills/[id]/route-8440b6c72bed83a1.js +1 -0
  414. package/.next/static/chunks/app/api/skills/installations/route-8440b6c72bed83a1.js +1 -0
  415. package/.next/static/chunks/app/api/skills/operations/route-8440b6c72bed83a1.js +1 -0
  416. package/.next/static/chunks/app/api/skills/reindex/route-8440b6c72bed83a1.js +1 -0
  417. package/.next/static/chunks/app/api/skills/route-8440b6c72bed83a1.js +1 -0
  418. package/.next/static/chunks/app/api/slash-commands/route-8440b6c72bed83a1.js +1 -0
  419. package/.next/static/chunks/app/api/tasks/[taskId]/cancel/route-8440b6c72bed83a1.js +1 -0
  420. package/.next/static/chunks/app/api/tasks/[taskId]/route-8440b6c72bed83a1.js +1 -0
  421. package/.next/static/chunks/app/api/templates/[id]/route-8440b6c72bed83a1.js +1 -0
  422. package/.next/static/chunks/app/api/templates/route-8440b6c72bed83a1.js +1 -0
  423. package/.next/static/chunks/app/api/todos/route-8440b6c72bed83a1.js +1 -0
  424. package/.next/static/chunks/app/api/verification/runs/[runId]/route-8440b6c72bed83a1.js +1 -0
  425. package/.next/static/chunks/app/api/verification/runs/route-8440b6c72bed83a1.js +1 -0
  426. package/.next/static/chunks/app/api/worktrees/[id]/auto-yes/route-8440b6c72bed83a1.js +1 -0
  427. package/.next/static/chunks/app/api/worktrees/[id]/capture/route-8440b6c72bed83a1.js +1 -0
  428. package/.next/static/chunks/app/api/worktrees/[id]/cli-tool/route-8440b6c72bed83a1.js +1 -0
  429. package/.next/static/chunks/app/api/worktrees/[id]/cmate/schedules/route-8440b6c72bed83a1.js +1 -0
  430. package/.next/static/chunks/app/api/worktrees/[id]/current-output/route-8440b6c72bed83a1.js +1 -0
  431. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/[logId]/route-8440b6c72bed83a1.js +1 -0
  432. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/route-8440b6c72bed83a1.js +1 -0
  433. package/.next/static/chunks/app/api/worktrees/[id]/files/[...path]/route-8440b6c72bed83a1.js +1 -0
  434. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/create/route-8440b6c72bed83a1.js +1 -0
  435. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/delete/route-8440b6c72bed83a1.js +1 -0
  436. package/.next/static/chunks/app/api/worktrees/[id]/git/branches/route-8440b6c72bed83a1.js +1 -0
  437. package/.next/static/chunks/app/api/worktrees/[id]/git/checkout/route-8440b6c72bed83a1.js +1 -0
  438. package/.next/static/chunks/app/api/worktrees/[id]/git/commit/route-8440b6c72bed83a1.js +1 -0
  439. package/.next/static/chunks/app/api/worktrees/[id]/git/diff/route-8440b6c72bed83a1.js +1 -0
  440. package/.next/static/chunks/app/api/worktrees/[id]/git/fetch/route-8440b6c72bed83a1.js +1 -0
  441. package/.next/static/chunks/app/api/worktrees/[id]/git/log/route-8440b6c72bed83a1.js +1 -0
  442. package/.next/static/chunks/app/api/worktrees/[id]/git/pull/route-8440b6c72bed83a1.js +1 -0
  443. package/.next/static/chunks/app/api/worktrees/[id]/git/push/route-8440b6c72bed83a1.js +1 -0
  444. package/.next/static/chunks/app/api/worktrees/[id]/git/reset/route-8440b6c72bed83a1.js +1 -0
  445. package/.next/static/chunks/app/api/worktrees/[id]/git/revert/route-8440b6c72bed83a1.js +1 -0
  446. package/.next/static/chunks/app/api/worktrees/[id]/git/show/[commitHash]/route-8440b6c72bed83a1.js +1 -0
  447. package/.next/static/chunks/app/api/worktrees/[id]/git/stage/route-8440b6c72bed83a1.js +1 -0
  448. package/.next/static/chunks/app/api/worktrees/[id]/git/staged/route-8440b6c72bed83a1.js +1 -0
  449. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/[index]/route-8440b6c72bed83a1.js +1 -0
  450. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/apply/route-8440b6c72bed83a1.js +1 -0
  451. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/pop/route-8440b6c72bed83a1.js +1 -0
  452. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/push/route-8440b6c72bed83a1.js +1 -0
  453. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/route-8440b6c72bed83a1.js +1 -0
  454. package/.next/static/chunks/app/api/worktrees/[id]/git/status/route-8440b6c72bed83a1.js +1 -0
  455. package/.next/static/chunks/app/api/worktrees/[id]/git/unstage/route-8440b6c72bed83a1.js +1 -0
  456. package/.next/static/chunks/app/api/worktrees/[id]/git/working-diff/route-8440b6c72bed83a1.js +1 -0
  457. package/.next/static/chunks/app/api/worktrees/[id]/interrupt/route-8440b6c72bed83a1.js +1 -0
  458. package/.next/static/chunks/app/api/worktrees/[id]/kill-session/route-8440b6c72bed83a1.js +1 -0
  459. package/.next/static/chunks/app/api/worktrees/[id]/logs/[filename]/route-8440b6c72bed83a1.js +1 -0
  460. package/.next/static/chunks/app/api/worktrees/[id]/logs/route-8440b6c72bed83a1.js +1 -0
  461. package/.next/static/chunks/app/api/worktrees/[id]/marp-render/route-8440b6c72bed83a1.js +1 -0
  462. package/.next/static/chunks/app/api/worktrees/[id]/memos/[memoId]/route-8440b6c72bed83a1.js +1 -0
  463. package/.next/static/chunks/app/api/worktrees/[id]/memos/route-8440b6c72bed83a1.js +1 -0
  464. package/.next/static/chunks/app/api/worktrees/[id]/messages/route-8440b6c72bed83a1.js +1 -0
  465. package/.next/static/chunks/app/api/worktrees/[id]/prompt-response/route-8440b6c72bed83a1.js +1 -0
  466. package/.next/static/chunks/app/api/worktrees/[id]/respond/route-8440b6c72bed83a1.js +1 -0
  467. package/.next/static/chunks/app/api/worktrees/[id]/route-8440b6c72bed83a1.js +1 -0
  468. package/.next/static/chunks/app/api/worktrees/[id]/schedules/[scheduleId]/route-8440b6c72bed83a1.js +1 -0
  469. package/.next/static/chunks/app/api/worktrees/[id]/schedules/active/route-8440b6c72bed83a1.js +1 -0
  470. package/.next/static/chunks/app/api/worktrees/[id]/schedules/route-8440b6c72bed83a1.js +1 -0
  471. package/.next/static/chunks/app/api/worktrees/[id]/search/route-8440b6c72bed83a1.js +1 -0
  472. package/.next/static/chunks/app/api/worktrees/[id]/send/route-8440b6c72bed83a1.js +1 -0
  473. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route-8440b6c72bed83a1.js +1 -0
  474. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/install/route-8440b6c72bed83a1.js +1 -0
  475. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/plan/route-8440b6c72bed83a1.js +1 -0
  476. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall/route-8440b6c72bed83a1.js +1 -0
  477. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route-8440b6c72bed83a1.js +1 -0
  478. package/.next/static/chunks/app/api/worktrees/[id]/skills/route-8440b6c72bed83a1.js +1 -0
  479. package/.next/static/chunks/app/api/worktrees/[id]/slash-commands/route-8440b6c72bed83a1.js +1 -0
  480. package/.next/static/chunks/app/api/worktrees/[id]/special-keys/route-8440b6c72bed83a1.js +1 -0
  481. package/.next/static/chunks/app/api/worktrees/[id]/start-polling/route-8440b6c72bed83a1.js +1 -0
  482. package/.next/static/chunks/app/api/worktrees/[id]/tasks/route-8440b6c72bed83a1.js +1 -0
  483. package/.next/static/chunks/app/api/worktrees/[id]/terminal/route-8440b6c72bed83a1.js +1 -0
  484. package/.next/static/chunks/app/api/worktrees/[id]/timers/history/route-8440b6c72bed83a1.js +1 -0
  485. package/.next/static/chunks/app/api/worktrees/[id]/timers/route-8440b6c72bed83a1.js +1 -0
  486. package/.next/static/chunks/app/api/worktrees/[id]/todos/[todoId]/route-8440b6c72bed83a1.js +1 -0
  487. package/.next/static/chunks/app/api/worktrees/[id]/todos/route-8440b6c72bed83a1.js +1 -0
  488. package/.next/static/chunks/app/api/worktrees/[id]/tree/[...path]/route-8440b6c72bed83a1.js +1 -0
  489. package/.next/static/chunks/app/api/worktrees/[id]/tree/route-8440b6c72bed83a1.js +1 -0
  490. package/.next/static/chunks/app/api/worktrees/[id]/upload/[...path]/route-8440b6c72bed83a1.js +1 -0
  491. package/.next/static/chunks/app/api/worktrees/[id]/verify/route-8440b6c72bed83a1.js +1 -0
  492. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/[runId]/route-8440b6c72bed83a1.js +1 -0
  493. package/.next/static/chunks/app/api/worktrees/[id]/verify/runs/route-8440b6c72bed83a1.js +1 -0
  494. package/.next/static/chunks/app/api/worktrees/[id]/viewed/route-8440b6c72bed83a1.js +1 -0
  495. package/.next/static/chunks/app/api/worktrees/route-8440b6c72bed83a1.js +1 -0
  496. package/.next/static/chunks/app/manifest.webmanifest/route-8440b6c72bed83a1.js +1 -0
  497. package/.next/static/chunks/app/more/{page-082d4ae496f9a36e.js → page-1619018cac999bbc.js} +1 -1
  498. package/.next/static/chunks/app/proxy/[...path]/route-8440b6c72bed83a1.js +1 -0
  499. package/.next/static/chunks/app/repositories/page-1ed1e5a542ecc168.js +1 -0
  500. package/.next/static/chunks/app/review/{page-f431d630097c2e85.js → page-b559bfb11c46931b.js} +1 -1
  501. package/.next/static/chunks/app/sessions/{page-20f07a99db64d2ca.js → page-3fa7e767d0ab3889.js} +1 -1
  502. package/.next/static/chunks/app/skills/[skillId]/page-6008b904225ebb25.js +1 -0
  503. package/.next/static/chunks/app/skills/installed/page-6641f95e6a6e5f9d.js +1 -0
  504. package/.next/static/chunks/app/skills/page-184f8e23e31a3667.js +1 -0
  505. package/.next/static/chunks/app/worktrees/[id]/page-5ffc84094830babb.js +1 -0
  506. package/.next/static/chunks/{webpack-6b35d37d50302d27.js → webpack-180bebdee221b6f4.js} +1 -1
  507. package/.next/static/css/{5127edd9aa8f3b49.css → d3453a6876553d32.css} +1 -1
  508. package/.next/static/gR8Sh86RrTynJON8SWkWK/_buildManifest.js +1 -0
  509. package/.next/trace +12 -11
  510. package/.next/types/app/api/hooks/agent-event/route.ts +347 -0
  511. package/.next/types/app/api/metrics/vibe/route.ts +347 -0
  512. package/.next/types/app/api/skills/installations/route.ts +347 -0
  513. package/.next/types/app/api/skills/operations/route.ts +347 -0
  514. package/.next/types/app/api/skills/reindex/route.ts +347 -0
  515. package/.next/types/app/api/tasks/[taskId]/cancel/route.ts +347 -0
  516. package/.next/types/app/api/tasks/[taskId]/route.ts +347 -0
  517. package/.next/types/app/api/verification/runs/[runId]/route.ts +347 -0
  518. package/.next/types/app/api/verification/runs/route.ts +347 -0
  519. package/.next/types/app/api/worktrees/[id]/skills/[skillId]/git-workflow/route.ts +347 -0
  520. package/.next/types/app/api/worktrees/[id]/tasks/route.ts +347 -0
  521. package/.next/types/app/api/worktrees/[id]/verify/route.ts +347 -0
  522. package/.next/types/app/api/worktrees/[id]/verify/runs/[runId]/route.ts +347 -0
  523. package/.next/types/app/api/worktrees/[id]/verify/runs/route.ts +347 -0
  524. package/.next/types/app/skills/installed/page.ts +84 -0
  525. package/.next/types/routes.d.ts +17 -2
  526. package/.next/types/validator.ts +135 -0
  527. package/dist/cli/commands/report.d.ts +1 -0
  528. package/dist/cli/commands/report.d.ts.map +1 -1
  529. package/dist/cli/commands/report.js +54 -0
  530. package/dist/cli/commands/send.d.ts.map +1 -1
  531. package/dist/cli/commands/send.js +86 -3
  532. package/dist/cli/commands/skill.d.ts +2 -1
  533. package/dist/cli/commands/skill.d.ts.map +1 -1
  534. package/dist/cli/commands/skill.js +136 -2
  535. package/dist/cli/commands/task.d.ts +11 -0
  536. package/dist/cli/commands/task.d.ts.map +1 -0
  537. package/dist/cli/commands/task.js +126 -0
  538. package/dist/cli/commands/verify.d.ts +19 -0
  539. package/dist/cli/commands/verify.d.ts.map +1 -0
  540. package/dist/cli/commands/verify.js +229 -0
  541. package/dist/cli/commands/wait.d.ts +2 -0
  542. package/dist/cli/commands/wait.d.ts.map +1 -1
  543. package/dist/cli/commands/wait.js +78 -13
  544. package/dist/cli/docs/agent-operations.d.ts +2 -2
  545. package/dist/cli/docs/agent-operations.d.ts.map +1 -1
  546. package/dist/cli/docs/agent-operations.js +92 -3
  547. package/dist/cli/program.d.ts.map +1 -1
  548. package/dist/cli/program.js +6 -0
  549. package/dist/cli/types/api-responses.d.ts +210 -0
  550. package/dist/cli/types/api-responses.d.ts.map +1 -1
  551. package/dist/cli/types/index.d.ts +88 -0
  552. package/dist/cli/types/index.d.ts.map +1 -1
  553. package/dist/cli/types/index.js +30 -1
  554. package/dist/cli/utils/api-client.d.ts +8 -0
  555. package/dist/cli/utils/api-client.d.ts.map +1 -1
  556. package/dist/cli/utils/verify-runner.d.ts +57 -0
  557. package/dist/cli/utils/verify-runner.d.ts.map +1 -0
  558. package/dist/cli/utils/verify-runner.js +174 -0
  559. package/dist/server/server.js +15 -0
  560. package/dist/server/src/config/auto-yes-config.js +22 -0
  561. package/dist/server/src/lib/auto-yes-poller.js +34 -2
  562. package/dist/server/src/lib/auto-yes-state.js +6 -19
  563. package/dist/server/src/lib/db/db.js +34 -1
  564. package/dist/server/src/lib/db/migrations/index.js +8 -0
  565. package/dist/server/src/lib/db/migrations/runner.js +1 -1
  566. package/dist/server/src/lib/db/migrations/v48-skill-operations-audit-index.js +117 -0
  567. package/dist/server/src/lib/db/migrations/v49-verification-runs.js +86 -0
  568. package/dist/server/src/lib/db/migrations/v50-tasks.js +68 -0
  569. package/dist/server/src/lib/db/migrations/v51-task-events.js +58 -0
  570. package/dist/server/src/lib/db/task-events-db.js +59 -0
  571. package/dist/server/src/lib/db/tasks-db.js +218 -0
  572. package/dist/server/src/lib/db/verification-db.js +272 -0
  573. package/dist/server/src/lib/polling/auto-yes-policy.js +117 -0
  574. package/dist/server/src/lib/polling/auto-yes-resolver.js +144 -4
  575. package/dist/server/src/lib/polling/response-checker.js +8 -0
  576. package/dist/server/src/lib/session/agent-event-state.js +46 -0
  577. package/dist/server/src/lib/session/current-output-builder.js +4 -0
  578. package/dist/server/src/lib/session/status-mapping.js +146 -0
  579. package/dist/server/src/lib/skills/compatibility-matrix.js +256 -0
  580. package/dist/server/src/lib/skills/compatibility.js +132 -11
  581. package/dist/server/src/lib/skills/operation-audit.js +85 -15
  582. package/dist/server/src/lib/skills/operation-journal.js +14 -1
  583. package/dist/server/src/lib/tasks/contract-parser.js +385 -0
  584. package/dist/server/src/lib/tasks/task-state-machine.js +183 -0
  585. package/dist/server/src/lib/tasks/task-transition-service.js +106 -0
  586. package/dist/server/src/lib/verification/verification-reconciler.js +49 -0
  587. package/dist/server/src/types/sidebar.js +7 -20
  588. package/package.json +5 -2
  589. package/scripts/hooks/cmate-agent-event.sh +175 -0
  590. package/.next/server/chunks/1808.js +0 -1
  591. package/.next/server/chunks/2064.js +0 -2
  592. package/.next/server/chunks/5226.js +0 -28
  593. package/.next/server/chunks/5306.js +0 -2
  594. package/.next/server/chunks/593.js +0 -1
  595. package/.next/server/chunks/9192.js +0 -1
  596. package/.next/static/MqlW91_Se_kEW6mtm-1x0/_buildManifest.js +0 -1
  597. package/.next/static/chunks/3418-7e47651340d940b0.js +0 -1
  598. package/.next/static/chunks/9142-41b13a2f278529cc.js +0 -1
  599. package/.next/static/chunks/app/api/app/update/route-8c8bebe20cebf964.js +0 -1
  600. package/.next/static/chunks/app/api/app/update-check/route-8c8bebe20cebf964.js +0 -1
  601. package/.next/static/chunks/app/api/assistant/conversation/route-8c8bebe20cebf964.js +0 -1
  602. package/.next/static/chunks/app/api/assistant/current-output/route-8c8bebe20cebf964.js +0 -1
  603. package/.next/static/chunks/app/api/assistant/messages/route-8c8bebe20cebf964.js +0 -1
  604. package/.next/static/chunks/app/api/assistant/session/route-8c8bebe20cebf964.js +0 -1
  605. package/.next/static/chunks/app/api/assistant/start/route-8c8bebe20cebf964.js +0 -1
  606. package/.next/static/chunks/app/api/assistant/terminal/route-8c8bebe20cebf964.js +0 -1
  607. package/.next/static/chunks/app/api/assistant/tools/route-8c8bebe20cebf964.js +0 -1
  608. package/.next/static/chunks/app/api/auth/login/route-8c8bebe20cebf964.js +0 -1
  609. package/.next/static/chunks/app/api/auth/logout/route-8c8bebe20cebf964.js +0 -1
  610. package/.next/static/chunks/app/api/auth/status/route-8c8bebe20cebf964.js +0 -1
  611. package/.next/static/chunks/app/api/daily-summary/route-8c8bebe20cebf964.js +0 -1
  612. package/.next/static/chunks/app/api/daily-summary/status/route-8c8bebe20cebf964.js +0 -1
  613. package/.next/static/chunks/app/api/external-apps/[id]/health/route-8c8bebe20cebf964.js +0 -1
  614. package/.next/static/chunks/app/api/external-apps/[id]/route-8c8bebe20cebf964.js +0 -1
  615. package/.next/static/chunks/app/api/external-apps/route-8c8bebe20cebf964.js +0 -1
  616. package/.next/static/chunks/app/api/fs/browse/route-8c8bebe20cebf964.js +0 -1
  617. package/.next/static/chunks/app/api/fs/recent-paths/route-8c8bebe20cebf964.js +0 -1
  618. package/.next/static/chunks/app/api/hooks/claude-done/route-8c8bebe20cebf964.js +0 -1
  619. package/.next/static/chunks/app/api/ollama/models/route-8c8bebe20cebf964.js +0 -1
  620. package/.next/static/chunks/app/api/push/subscriptions/route-8c8bebe20cebf964.js +0 -1
  621. package/.next/static/chunks/app/api/push/vapid/route-8c8bebe20cebf964.js +0 -1
  622. package/.next/static/chunks/app/api/repositories/[id]/route-8c8bebe20cebf964.js +0 -1
  623. package/.next/static/chunks/app/api/repositories/[id]/todos/[todoId]/route-8c8bebe20cebf964.js +0 -1
  624. package/.next/static/chunks/app/api/repositories/[id]/todos/route-8c8bebe20cebf964.js +0 -1
  625. package/.next/static/chunks/app/api/repositories/clone/[jobId]/route-8c8bebe20cebf964.js +0 -1
  626. package/.next/static/chunks/app/api/repositories/clone/route-8c8bebe20cebf964.js +0 -1
  627. package/.next/static/chunks/app/api/repositories/excluded/route-8c8bebe20cebf964.js +0 -1
  628. package/.next/static/chunks/app/api/repositories/restore/route-8c8bebe20cebf964.js +0 -1
  629. package/.next/static/chunks/app/api/repositories/route-8c8bebe20cebf964.js +0 -1
  630. package/.next/static/chunks/app/api/repositories/scan/route-8c8bebe20cebf964.js +0 -1
  631. package/.next/static/chunks/app/api/repositories/sync/route-8c8bebe20cebf964.js +0 -1
  632. package/.next/static/chunks/app/api/repositories/validate-path/route-8c8bebe20cebf964.js +0 -1
  633. package/.next/static/chunks/app/api/sidebar/group-order/route-8c8bebe20cebf964.js +0 -1
  634. package/.next/static/chunks/app/api/skills/[id]/route-8c8bebe20cebf964.js +0 -1
  635. package/.next/static/chunks/app/api/skills/route-8c8bebe20cebf964.js +0 -1
  636. package/.next/static/chunks/app/api/slash-commands/route-8c8bebe20cebf964.js +0 -1
  637. package/.next/static/chunks/app/api/templates/[id]/route-8c8bebe20cebf964.js +0 -1
  638. package/.next/static/chunks/app/api/templates/route-8c8bebe20cebf964.js +0 -1
  639. package/.next/static/chunks/app/api/todos/route-8c8bebe20cebf964.js +0 -1
  640. package/.next/static/chunks/app/api/worktrees/[id]/auto-yes/route-8c8bebe20cebf964.js +0 -1
  641. package/.next/static/chunks/app/api/worktrees/[id]/capture/route-8c8bebe20cebf964.js +0 -1
  642. package/.next/static/chunks/app/api/worktrees/[id]/cli-tool/route-8c8bebe20cebf964.js +0 -1
  643. package/.next/static/chunks/app/api/worktrees/[id]/cmate/schedules/route-8c8bebe20cebf964.js +0 -1
  644. package/.next/static/chunks/app/api/worktrees/[id]/current-output/route-8c8bebe20cebf964.js +0 -1
  645. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/[logId]/route-8c8bebe20cebf964.js +0 -1
  646. package/.next/static/chunks/app/api/worktrees/[id]/execution-logs/route-8c8bebe20cebf964.js +0 -1
  647. package/.next/static/chunks/app/api/worktrees/[id]/files/[...path]/route-8c8bebe20cebf964.js +0 -1
  648. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/create/route-8c8bebe20cebf964.js +0 -1
  649. package/.next/static/chunks/app/api/worktrees/[id]/git/branch/delete/route-8c8bebe20cebf964.js +0 -1
  650. package/.next/static/chunks/app/api/worktrees/[id]/git/branches/route-8c8bebe20cebf964.js +0 -1
  651. package/.next/static/chunks/app/api/worktrees/[id]/git/checkout/route-8c8bebe20cebf964.js +0 -1
  652. package/.next/static/chunks/app/api/worktrees/[id]/git/commit/route-8c8bebe20cebf964.js +0 -1
  653. package/.next/static/chunks/app/api/worktrees/[id]/git/diff/route-8c8bebe20cebf964.js +0 -1
  654. package/.next/static/chunks/app/api/worktrees/[id]/git/fetch/route-8c8bebe20cebf964.js +0 -1
  655. package/.next/static/chunks/app/api/worktrees/[id]/git/log/route-8c8bebe20cebf964.js +0 -1
  656. package/.next/static/chunks/app/api/worktrees/[id]/git/pull/route-8c8bebe20cebf964.js +0 -1
  657. package/.next/static/chunks/app/api/worktrees/[id]/git/push/route-8c8bebe20cebf964.js +0 -1
  658. package/.next/static/chunks/app/api/worktrees/[id]/git/reset/route-8c8bebe20cebf964.js +0 -1
  659. package/.next/static/chunks/app/api/worktrees/[id]/git/revert/route-8c8bebe20cebf964.js +0 -1
  660. package/.next/static/chunks/app/api/worktrees/[id]/git/show/[commitHash]/route-8c8bebe20cebf964.js +0 -1
  661. package/.next/static/chunks/app/api/worktrees/[id]/git/stage/route-8c8bebe20cebf964.js +0 -1
  662. package/.next/static/chunks/app/api/worktrees/[id]/git/staged/route-8c8bebe20cebf964.js +0 -1
  663. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/[index]/route-8c8bebe20cebf964.js +0 -1
  664. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/apply/route-8c8bebe20cebf964.js +0 -1
  665. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/pop/route-8c8bebe20cebf964.js +0 -1
  666. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/push/route-8c8bebe20cebf964.js +0 -1
  667. package/.next/static/chunks/app/api/worktrees/[id]/git/stash/route-8c8bebe20cebf964.js +0 -1
  668. package/.next/static/chunks/app/api/worktrees/[id]/git/status/route-8c8bebe20cebf964.js +0 -1
  669. package/.next/static/chunks/app/api/worktrees/[id]/git/unstage/route-8c8bebe20cebf964.js +0 -1
  670. package/.next/static/chunks/app/api/worktrees/[id]/git/working-diff/route-8c8bebe20cebf964.js +0 -1
  671. package/.next/static/chunks/app/api/worktrees/[id]/interrupt/route-8c8bebe20cebf964.js +0 -1
  672. package/.next/static/chunks/app/api/worktrees/[id]/kill-session/route-8c8bebe20cebf964.js +0 -1
  673. package/.next/static/chunks/app/api/worktrees/[id]/logs/[filename]/route-8c8bebe20cebf964.js +0 -1
  674. package/.next/static/chunks/app/api/worktrees/[id]/logs/route-8c8bebe20cebf964.js +0 -1
  675. package/.next/static/chunks/app/api/worktrees/[id]/marp-render/route-8c8bebe20cebf964.js +0 -1
  676. package/.next/static/chunks/app/api/worktrees/[id]/memos/[memoId]/route-8c8bebe20cebf964.js +0 -1
  677. package/.next/static/chunks/app/api/worktrees/[id]/memos/route-8c8bebe20cebf964.js +0 -1
  678. package/.next/static/chunks/app/api/worktrees/[id]/messages/route-8c8bebe20cebf964.js +0 -1
  679. package/.next/static/chunks/app/api/worktrees/[id]/prompt-response/route-8c8bebe20cebf964.js +0 -1
  680. package/.next/static/chunks/app/api/worktrees/[id]/respond/route-8c8bebe20cebf964.js +0 -1
  681. package/.next/static/chunks/app/api/worktrees/[id]/route-8c8bebe20cebf964.js +0 -1
  682. package/.next/static/chunks/app/api/worktrees/[id]/schedules/[scheduleId]/route-8c8bebe20cebf964.js +0 -1
  683. package/.next/static/chunks/app/api/worktrees/[id]/schedules/active/route-8c8bebe20cebf964.js +0 -1
  684. package/.next/static/chunks/app/api/worktrees/[id]/schedules/route-8c8bebe20cebf964.js +0 -1
  685. package/.next/static/chunks/app/api/worktrees/[id]/search/route-8c8bebe20cebf964.js +0 -1
  686. package/.next/static/chunks/app/api/worktrees/[id]/send/route-8c8bebe20cebf964.js +0 -1
  687. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/install/route-8c8bebe20cebf964.js +0 -1
  688. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/plan/route-8c8bebe20cebf964.js +0 -1
  689. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall/route-8c8bebe20cebf964.js +0 -1
  690. package/.next/static/chunks/app/api/worktrees/[id]/skills/[skillId]/uninstall-plan/route-8c8bebe20cebf964.js +0 -1
  691. package/.next/static/chunks/app/api/worktrees/[id]/skills/route-8c8bebe20cebf964.js +0 -1
  692. package/.next/static/chunks/app/api/worktrees/[id]/slash-commands/route-8c8bebe20cebf964.js +0 -1
  693. package/.next/static/chunks/app/api/worktrees/[id]/special-keys/route-8c8bebe20cebf964.js +0 -1
  694. package/.next/static/chunks/app/api/worktrees/[id]/start-polling/route-8c8bebe20cebf964.js +0 -1
  695. package/.next/static/chunks/app/api/worktrees/[id]/terminal/route-8c8bebe20cebf964.js +0 -1
  696. package/.next/static/chunks/app/api/worktrees/[id]/timers/history/route-8c8bebe20cebf964.js +0 -1
  697. package/.next/static/chunks/app/api/worktrees/[id]/timers/route-8c8bebe20cebf964.js +0 -1
  698. package/.next/static/chunks/app/api/worktrees/[id]/todos/[todoId]/route-8c8bebe20cebf964.js +0 -1
  699. package/.next/static/chunks/app/api/worktrees/[id]/todos/route-8c8bebe20cebf964.js +0 -1
  700. package/.next/static/chunks/app/api/worktrees/[id]/tree/[...path]/route-8c8bebe20cebf964.js +0 -1
  701. package/.next/static/chunks/app/api/worktrees/[id]/tree/route-8c8bebe20cebf964.js +0 -1
  702. package/.next/static/chunks/app/api/worktrees/[id]/upload/[...path]/route-8c8bebe20cebf964.js +0 -1
  703. package/.next/static/chunks/app/api/worktrees/[id]/viewed/route-8c8bebe20cebf964.js +0 -1
  704. package/.next/static/chunks/app/api/worktrees/route-8c8bebe20cebf964.js +0 -1
  705. package/.next/static/chunks/app/manifest.webmanifest/route-8c8bebe20cebf964.js +0 -1
  706. package/.next/static/chunks/app/proxy/[...path]/route-8c8bebe20cebf964.js +0 -1
  707. package/.next/static/chunks/app/repositories/page-3c4fb889da48ce24.js +0 -1
  708. package/.next/static/chunks/app/skills/[skillId]/page-8c40c9683f242207.js +0 -1
  709. package/.next/static/chunks/app/skills/page-46242c428ee8bccf.js +0 -1
  710. package/.next/static/chunks/app/worktrees/[id]/page-6da38f0a06dfd9db.js +0 -1
  711. /package/.next/static/{MqlW91_Se_kEW6mtm-1x0 → gR8Sh86RrTynJON8SWkWK}/_ssgManifest.js +0 -0
@@ -7,6 +7,8 @@
7
7
  * - 0: SUCCESS (agent completed)
8
8
  * - 10: PROMPT_DETECTED (agent waiting for user input)
9
9
  * - 124: TIMEOUT (--timeout exceeded)
10
+ * Issue #1544 adds --verify / --require-work, which can turn a detected
11
+ * completion into 20 (VERIFY_FAILED) or 21 (NOT_STARTED).
10
12
  * Infrastructure errors use ExitCode (1, 2, 99)
11
13
  */
12
14
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,6 +17,7 @@ const commander_1 = require("commander");
15
17
  const types_1 = require("../types");
16
18
  const api_client_1 = require("../utils/api-client");
17
19
  const command_helpers_1 = require("../utils/command-helpers");
20
+ const verify_runner_1 = require("../utils/verify-runner");
18
21
  /** [IA3-02] Polling interval 5 seconds (matches tmux-capture-cache TTL=2s) */
19
22
  const POLL_INTERVAL_MS = 5000;
20
23
  /**
@@ -95,6 +98,57 @@ async function pollWorktree(client, worktreeId, options) {
95
98
  function sleep(ms) {
96
99
  return new Promise(resolve => setTimeout(resolve, ms));
97
100
  }
101
+ /** True when the caller asked for a verdict rather than "the agent stopped". */
102
+ function verifyRequested(options) {
103
+ return Boolean(options.verify || options.requireWork);
104
+ }
105
+ /**
106
+ * Run verification for one worktree after its completion was detected.
107
+ *
108
+ * Swallows ApiError into an exit code: with several worktrees in flight, one
109
+ * unreachable run must not abort the verdicts of the others.
110
+ */
111
+ async function verifyAfterWait(client, worktreeId, options) {
112
+ // --verify runs every gate, and work-evidence is always part of "every gate",
113
+ // so combining it with --require-work is a superset rather than a conflict.
114
+ const gateIds = options.verify ? undefined : [verify_runner_1.WORK_EVIDENCE_GATE_ID];
115
+ try {
116
+ const outcome = await (0, verify_runner_1.runVerification)(client, {
117
+ worktreeId,
118
+ trigger: 'wait',
119
+ instanceId: options.instance,
120
+ gateIds,
121
+ // stdout stays reserved for the prompt JSON contract.
122
+ resultStream: 'stderr',
123
+ });
124
+ return outcome.exitCode;
125
+ }
126
+ catch (error) {
127
+ if (error instanceof api_client_1.ApiError) {
128
+ console.error(`Error: ${error.message}`);
129
+ return error.exitCode;
130
+ }
131
+ console.error(`Error: verification of ${worktreeId} failed: ${error instanceof Error ? error.message : String(error)}`);
132
+ return types_1.ExitCode.UNEXPECTED_ERROR;
133
+ }
134
+ }
135
+ /**
136
+ * Fold one worktree's exit code into the aggregate.
137
+ *
138
+ * Ranked codes (see WAIT_EXIT_CODE_PRIORITY) beat unranked infrastructure
139
+ * codes, and among equals the first one observed stands.
140
+ */
141
+ function mergeExitCode(current, candidate) {
142
+ if (candidate === types_1.WaitExitCode.SUCCESS)
143
+ return current;
144
+ if (current === types_1.WaitExitCode.SUCCESS)
145
+ return candidate;
146
+ const rank = (code) => {
147
+ const index = types_1.WAIT_EXIT_CODE_PRIORITY.indexOf(code);
148
+ return index === -1 ? Number.MAX_SAFE_INTEGER : index;
149
+ };
150
+ return rank(candidate) < rank(current) ? candidate : current;
151
+ }
98
152
  function createWaitCommand() {
99
153
  const cmd = new commander_1.Command('wait');
100
154
  cmd
@@ -104,6 +158,8 @@ function createWaitCommand() {
104
158
  .option('--on-prompt <mode>', 'Prompt handling: agent (default) or human')
105
159
  .option('--stall-timeout <seconds>', 'Maximum time without output change', parseInt)
106
160
  .option('--instance <id>', 'Agent instance ID: <agent> or <agent>-<n> (e.g. claude-2). Defaults to the agent\'s primary instance.')
161
+ .option('--verify', 'After completion, run every verification gate; exit 20 when a gate fails, 21 when there is nothing to verify')
162
+ .option('--require-work', 'After completion, run only the work-evidence gate; exit 21 when the worktree has no commits and no uncommitted changes')
107
163
  .option('--token <token>', command_helpers_1.TOKEN_WARNING)
108
164
  .action(async (worktreeIds, options) => {
109
165
  try {
@@ -112,12 +168,14 @@ function createWaitCommand() {
112
168
  if (!(0, api_client_1.isValidWorktreeId)(id)) {
113
169
  console.error(`Error: Invalid worktree ID format: ${id}`);
114
170
  process.exit(types_1.ExitCode.CONFIG_ERROR);
171
+ return;
115
172
  }
116
173
  }
117
174
  // Issue #868: Validate instance ID if provided
118
175
  if (options.instance && !(0, api_client_1.isValidInstanceId)(options.instance)) {
119
176
  console.error('Error: Invalid --instance. Must be an alphanumeric/underscore/hyphen identifier (max 64 chars).');
120
177
  process.exit(types_1.ExitCode.CONFIG_ERROR);
178
+ return;
121
179
  }
122
180
  const client = new api_client_1.ApiClient({ token: options.token });
123
181
  if (worktreeIds.length === 1) {
@@ -127,34 +185,41 @@ function createWaitCommand() {
127
185
  // stdout for result (JSON output)
128
186
  console.log(JSON.stringify(result.output));
129
187
  }
130
- process.exit(result.exitCode);
188
+ // Issue #1544: only a detected completion is worth verifying — a
189
+ // prompt or a timeout means the agent never claimed to be done.
190
+ const exitCode = result.exitCode === types_1.WaitExitCode.SUCCESS && verifyRequested(options)
191
+ ? await verifyAfterWait(client, worktreeIds[0], options)
192
+ : result.exitCode;
193
+ process.exit(exitCode);
194
+ return;
131
195
  }
132
196
  // [DR1-07] Multiple worktrees: Promise.allSettled for error isolation
133
197
  const results = await Promise.allSettled(worktreeIds.map(id => pollWorktree(client, id, options)));
134
198
  // Collect results
135
199
  const outputs = [];
136
200
  let finalExitCode = types_1.WaitExitCode.SUCCESS;
137
- for (const result of results) {
201
+ const verifyTargets = [];
202
+ results.forEach((result, index) => {
138
203
  if (result.status === 'fulfilled') {
139
204
  if (result.value.output) {
140
205
  outputs.push(result.value.output);
141
206
  }
142
- if (result.value.exitCode === types_1.WaitExitCode.PROMPT_DETECTED) {
143
- finalExitCode = types_1.WaitExitCode.PROMPT_DETECTED;
144
- }
145
- else if (result.value.exitCode !== types_1.WaitExitCode.SUCCESS && finalExitCode === types_1.WaitExitCode.SUCCESS) {
146
- finalExitCode = result.value.exitCode;
207
+ if (result.value.exitCode === types_1.WaitExitCode.SUCCESS && verifyRequested(options)) {
208
+ verifyTargets.push(worktreeIds[index]);
209
+ return;
147
210
  }
211
+ finalExitCode = mergeExitCode(finalExitCode, result.value.exitCode);
148
212
  }
149
213
  else {
150
214
  const err = result.reason;
151
- if (err instanceof api_client_1.ApiError && finalExitCode === types_1.WaitExitCode.SUCCESS) {
152
- finalExitCode = err.exitCode;
153
- }
154
- else if (finalExitCode === types_1.WaitExitCode.SUCCESS) {
155
- finalExitCode = types_1.ExitCode.UNEXPECTED_ERROR;
156
- }
215
+ finalExitCode = mergeExitCode(finalExitCode, err instanceof api_client_1.ApiError ? err.exitCode : types_1.ExitCode.UNEXPECTED_ERROR);
157
216
  }
217
+ });
218
+ // Issue #1544: serial on purpose. The server caps concurrent runs
219
+ // process-wide, so firing them together only queues them behind each
220
+ // other while every gate competes for the same machine.
221
+ for (const id of verifyTargets) {
222
+ finalExitCode = mergeExitCode(finalExitCode, await verifyAfterWait(client, id, options));
158
223
  }
159
224
  if (outputs.length > 0) {
160
225
  console.log(JSON.stringify(outputs));
@@ -5,6 +5,6 @@
5
5
  * This content is embedded as a string constant so that it's available
6
6
  * even when installed via `npm install -g commandmate` (where docs/ is not included).
7
7
  */
8
- export declare const AGENT_OPERATIONS_GUIDE = "# CLI Agent Operations Guide\n\nOperate agent sessions from the CommandMate CLI.\nThese commands enable coding agents (Claude Code, Codex, etc.) to orchestrate other agents in parallel.\n\n## Prerequisites\n\n- CommandMate server must be running: commandmate start --daemon\n- Target worktrees must be registered (visible in browser UI sidebar)\n- Use CM_PORT env var to connect to a different port (default: 3000)\n- Use CM_AUTH_TOKEN env var for authenticated servers\n\n## Commands\n\n### commandmate ls\n List worktrees with status.\n\n commandmate ls # Table format (ID, NAME, STATUS, DEFAULT)\n commandmate ls --json # JSON output (for agent consumption)\n commandmate ls --quiet # IDs only, one per line (for piping)\n commandmate ls --branch <prefix> # Filter by branch name prefix\n commandmate ls --id <prefix> # Filter by worktree id prefix\n\n Worktree ids are <repo>-<branch> slugs (e.g. anvil-develop). --id / --branch\n front-match is case-sensitive and does NOT guarantee uniqueness (e.g.\n --id anvil-develop also matches anvil-develop-2). --branch and --id combine\n as AND. Use --id to disambiguate the same branch across repositories.\n\n STATUS values:\n idle - Session not started\n ready - Session running, waiting for input (task completed)\n running - Agent executing a task\n waiting - Confirmation prompt active (Yes/No, etc.)\n\n### commandmate send <worktree-id> \"<message>\"\n Send a message to an agent (async). Starts session automatically if not running.\n\n Options:\n --agent <id> Agent type: claude (default), codex, gemini, vibe-local, opencode, copilot, antigravity\n --instance <id> Agent instance ID: <agent> or <agent>-<n> (e.g. claude-2). See \"Multi-Session\" below.\n --register Register the --instance session into the agent-instance roster\n --auto-yes Enable auto-yes before sending\n --duration <d> Auto-yes duration: 1h, 3h, 8h (default: 1h)\n --stop-pattern <p> Auto-yes stop condition (regex)\n\n Finding worktree IDs:\n WT=$(commandmate ls --branch feature/101 --quiet)\n WT=$(commandmate ls --id anvil- --quiet) # disambiguate by repo (id prefix)\n commandmate send \"$WT\" \"Implement this\"\n\n### commandmate wait <worktree-id...>\n Block until agent completes or prompt is detected.\n\n Options:\n --timeout <seconds> Maximum wait time\n --on-prompt <mode> agent (default) or human\n --stall-timeout <seconds> Max time without output change\n\n Exit codes:\n 0 - Completed (agent idle/ready)\n 10 - Prompt detected (--on-prompt agent mode)\n 124 - Timeout exceeded\n\n --on-prompt modes:\n agent - Returns exit 10 immediately with prompt JSON on stdout\n human - Keeps blocking until human responds via browser UI\n\n Prompt JSON output (exit 10):\n {\"worktreeId\":\"...\",\"cliToolId\":\"claude\",\"type\":\"yes_no\",\"question\":\"...\",\"options\":[\"yes\",\"no\"],\"status\":\"pending\"}\n\n### commandmate respond <worktree-id> \"<answer>\"\n Respond to an agent's prompt.\n\n commandmate respond <id> \"yes\" # Yes/No\n commandmate respond <id> \"2\" # Multiple choice (number)\n commandmate respond <id> \"custom text\" # Free text\n\n Exit codes:\n 0 - Response sent\n 99 - Prompt already dismissed (prompt_no_longer_active)\n\n### commandmate capture <worktree-id>\n Get current terminal output.\n\n commandmate capture <id> # Plain text\n commandmate capture <id> --json # JSON with status info\n commandmate capture <id> --agent codex # Specific agent\n\n### commandmate auto-yes <worktree-id>\n Control auto-yes (automatic prompt response).\n\n commandmate auto-yes <id> --enable # Enable (default 1h)\n commandmate auto-yes <id> --enable --duration 3h # With duration\n commandmate auto-yes <id> --enable --stop-pattern \"error\"\n commandmate auto-yes <id> --disable # Disable\n\n### commandmate instances <worktree-id> [action] [args]\n Discover and manage a worktree's agent-instance roster (1 agent, multiple sessions).\n\n commandmate instances <id> # List roster + running/auto-yes status\n commandmate instances <id> --json # JSON output\n commandmate instances <id> add --agent codex # Add an instance (auto-generates ID, e.g. codex-2)\n commandmate instances <id> add --agent codex --alias \"Review\" --id codex-3\n commandmate instances <id> remove <instance-id> # Remove from roster\n commandmate instances <id> remove <instance-id> --kill # Remove and kill its session\n commandmate instances <id> alias <instance-id> \"New Name\"\n commandmate instances <id> kill <instance-id> # Kill only that instance's session\n\n See \"Multi-Session\" below for the ID convention and roster semantics.\n\n### commandmate skill <subcommand>\n Manage official Agent Skills. Every subcommand is a thin client over the same\n APIs the browser UI uses: the CLI never downloads, extracts, writes or deletes\n anything itself, and never sends a filesystem path, artifact URL, file list or\n checksum (the API rejects those outright).\n\n commandmate skill list [--json] [--prerelease]\n commandmate skill info <skill-id> [--version <v>] [--json]\n commandmate skill plan <skill-id> --worktree <id> [--version <v>] [--json]\n commandmate skill install <skill-id> --worktree <id> --version <exact> [--dry-run] [--yes] [--ack-risk <id>@<version>] [--json]\n commandmate skill uninstall <skill-id> --worktree <id> [--dry-run] [--yes] [--json]\n commandmate skill status <skill-id> --worktree <id> [--json]\n\n Confirmation contract (writes = install / uninstall):\n - A plan is always built and shown first. --dry-run stops there.\n - Without a TTY, a write REQUIRES --yes. A missing --yes is refused, never\n assumed: an environment that cannot prompt must not install silently.\n - A high-risk Skill additionally requires --ack-risk <skill-id>@<version>\n with the exact id and version. --yes alone never carries a high-risk\n install, in a TTY or out of one.\n\n Exit codes:\n 0 success\n 1 the server or the Catalog could not be reached (retryable)\n 2 invalid arguments, unknown Skill or unknown version\n 11 the worktree refused it (local change, conflict, lock, plan drift)\n 12 the write was never confirmed (no --yes, declined, or missing --ack-risk)\n 13 files changed but the operation needs reconciliation\n\n --json prints the API response body verbatim on stdout; diagnostics, prompts\n and errors always go to stderr, so a failed --json run leaves stdout empty.\n\n 'skill status' reports one Skill in one worktree, read from the install\n receipt on disk. There is no per-worktree listing endpoint yet, so <skill-id>\n is required.\n\n## Multi-Session (1 agent, multiple sessions)\n\n A worktree can run several sessions of the same CLI tool concurrently. Each\n session is an \"instance\" identified by an instance ID:\n <agent> - the agent's primary instance (e.g. \"claude\")\n <agent>-<n> - an additional instance, n >= 2 (e.g. \"claude-2\", \"claude-3\")\n\n --instance is accepted by send / wait / respond / capture / auto-yes.\n send --instance auto-starts the session if it is not already running.\n\n The roster (visible in the browser UI's Agent panel) is the list of known\n instances with aliases and display order. Ad-hoc sessions started via\n 'send --instance' do NOT appear in the roster unless registered:\n commandmate send <id> \"...\" --instance claude-2 --register\n Without --register, the session still runs and responds to CLI commands,\n but it will not show up in the UI sidebar/roster until added there or via\n 'commandmate instances <id> add'.\n\n Per-instance auto-yes: --instance scopes --auto-yes/--duration/--stop-pattern\n to that specific session, independent of other instances of the same agent.\n\n commandmate instances <id> # discover valid --instance values\n commandmate send <id> \"task\" --agent codex --instance codex-2 --auto-yes\n commandmate wait <id> --instance codex-2 --timeout 600\n commandmate capture <id> --agent codex --instance codex-2\n\n## All Exit Codes\n\n 0 SUCCESS - Completed successfully\n 1 DEPENDENCY_ERROR - Server not running\n 2 CONFIG_ERROR - Validation error (invalid agent, duration, etc.)\n 10 PROMPT_DETECTED - Prompt detected during wait\n 99 UNEXPECTED_ERROR - Unexpected error / resource not found\n 124 TIMEOUT - Wait timeout exceeded\n\n## Troubleshooting\n\n Server not running:\n commandmate start --daemon\n CM_PORT=3011 commandmate ls # Different port\n\n Worktree not found:\n commandmate ls --quiet # Check registered IDs\n curl -s -X POST http://localhost:3000/api/repositories/sync # Sync new worktrees\n\n Authentication:\n CM_AUTH_TOKEN=your-token commandmate ls\n";
9
- export declare const AGENT_OPERATIONS_SAMPLES = "# CLI Agent Operations - Workflow Samples\n\nCopy and adapt these patterns for your use case.\n\n## 1. Basic: send, wait, capture\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n commandmate send \"$WT\" \"Implement Issue #101 with TDD\"\n commandmate wait \"$WT\" --timeout 600\n commandmate capture \"$WT\"\n\n## 2. With Auto-Yes (unattended execution)\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n commandmate send \"$WT\" \"Implement Issue #101\" --auto-yes --duration 3h\n commandmate wait \"$WT\" --timeout 1800\n commandmate auto-yes \"$WT\" --disable # Disable for safety\n commandmate capture \"$WT\" --json\n\n## 3. Prompt Response Loop\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n commandmate send \"$WT\" \"Refactor this module\"\n\n while true; do\n commandmate wait \"$WT\" --timeout 600 --on-prompt agent\n EXIT_CODE=$?\n\n if [ $EXIT_CODE -eq 0 ]; then\n echo \"Done\"\n break\n elif [ $EXIT_CODE -eq 10 ]; then\n commandmate respond \"$WT\" \"yes\"\n elif [ $EXIT_CODE -eq 124 ]; then\n echo \"Timeout\"\n break\n fi\n done\n\n commandmate capture \"$WT\"\n\n## 4. Parallel Worktrees\n\n WT1=$(commandmate ls --branch feature/101 --quiet)\n WT2=$(commandmate ls --branch feature/102 --quiet)\n\n commandmate send \"$WT1\" \"Implement #101\" --auto-yes\n commandmate send \"$WT2\" \"Implement #102\" --auto-yes --agent codex\n\n commandmate wait \"$WT1\" \"$WT2\" --timeout 1800\n\n commandmate capture \"$WT1\" --json\n commandmate capture \"$WT2\" --json\n\n## 5. Check status before sending\n\n # Find worktrees and check status\n commandmate ls --json | python3 -c \"\n import sys, json\n for wt in json.load(sys.stdin):\n if wt['name'].startswith('feature/'):\n print(f\\\"{wt['id']} {wt['name']}\\\")\n \"\n\n## 6. Error handling pattern\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n\n if [ -z \"$WT\" ]; then\n echo \"Error: worktree not found\"\n exit 1\n fi\n\n commandmate send \"$WT\" \"Fix the bug\" --auto-yes\n commandmate wait \"$WT\" --timeout 600\n EXIT_CODE=$?\n\n case $EXIT_CODE in\n 0) echo \"Success\"; commandmate capture \"$WT\" ;;\n 10) echo \"Prompt detected\"; commandmate respond \"$WT\" \"yes\" ;;\n 124) echo \"Timeout\"; commandmate capture \"$WT\" --json ;;\n *) echo \"Error: exit $EXIT_CODE\" ;;\n esac\n\n## 7. Multi-Session: run a second Codex session alongside the primary agent\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n\n # Discover the roster before picking an --instance value\n commandmate instances \"$WT\"\n\n # Register a second Codex instance, then send/wait/capture scoped to it\n commandmate instances \"$WT\" add --agent codex --alias \"Review\"\n commandmate send \"$WT\" \"Review the diff\" --agent codex --instance codex-2 --auto-yes\n commandmate wait \"$WT\" --instance codex-2 --timeout 600\n commandmate capture \"$WT\" --agent codex --instance codex-2 --json\n\n # Ad-hoc instance without pre-registering (still runs; register to show in UI)\n commandmate send \"$WT\" \"Quick check\" --agent codex --instance codex-3 --register\n\n # Clean up when done\n commandmate instances \"$WT\" remove codex-2 --kill\n";
8
+ export declare const AGENT_OPERATIONS_GUIDE = "# CLI Agent Operations Guide\n\nOperate agent sessions from the CommandMate CLI.\nThese commands enable coding agents (Claude Code, Codex, etc.) to orchestrate other agents in parallel.\n\n## Prerequisites\n\n- CommandMate server must be running: commandmate start --daemon\n- Target worktrees must be registered (visible in browser UI sidebar)\n- Use CM_PORT env var to connect to a different port (default: 3000)\n- Use CM_AUTH_TOKEN env var for authenticated servers\n\n## Commands\n\n### commandmate ls\n List worktrees with status.\n\n commandmate ls # Table format (ID, NAME, STATUS, DEFAULT)\n commandmate ls --json # JSON output (for agent consumption)\n commandmate ls --quiet # IDs only, one per line (for piping)\n commandmate ls --branch <prefix> # Filter by branch name prefix\n commandmate ls --id <prefix> # Filter by worktree id prefix\n\n Worktree ids are <repo>-<branch> slugs (e.g. anvil-develop). --id / --branch\n front-match is case-sensitive and does NOT guarantee uniqueness (e.g.\n --id anvil-develop also matches anvil-develop-2). --branch and --id combine\n as AND. Use --id to disambiguate the same branch across repositories.\n\n STATUS values:\n idle - Session not started\n ready - Session running, waiting for input (task completed)\n running - Agent executing a task\n waiting - Confirmation prompt active (Yes/No, etc.)\n\n### commandmate send <worktree-id> \"<message>\"\n Send a message to an agent (async). Starts session automatically if not running.\n\n Options:\n --agent <id> Agent type: claude (default), codex, gemini, vibe-local, opencode, copilot, antigravity\n --instance <id> Agent instance ID: <agent> or <agent>-<n> (e.g. claude-2). See \"Multi-Session\" below.\n --register Register the --instance session into the agent-instance roster\n --auto-yes Enable auto-yes before sending\n --duration <d> Auto-yes duration: 1h, 3h, 8h (default: 1h)\n --stop-pattern <p> Auto-yes stop condition (regex)\n\n Finding worktree IDs:\n WT=$(commandmate ls --branch feature/101 --quiet)\n WT=$(commandmate ls --id anvil- --quiet) # disambiguate by repo (id prefix)\n commandmate send \"$WT\" \"Implement this\"\n\n### commandmate wait <worktree-id...>\n Block until agent completes or prompt is detected.\n\n Options:\n --timeout <seconds> Maximum wait time\n --on-prompt <mode> agent (default) or human\n --stall-timeout <seconds> Max time without output change\n --verify After completion, run every verification gate\n --require-work After completion, run only the work-evidence gate\n\n Exit codes:\n 0 - Completed (agent idle/ready), and verified when --verify was given\n 10 - Prompt detected (--on-prompt agent mode)\n 20 - A verification gate failed (--verify)\n 21 - Nothing to verify: no commits, no uncommitted changes\n 124 - Timeout exceeded\n\n --on-prompt modes:\n agent - Returns exit 10 immediately with prompt JSON on stdout\n human - Keeps blocking until human responds via browser UI\n\n Prompt JSON output (exit 10):\n {\"worktreeId\":\"...\",\"cliToolId\":\"claude\",\"type\":\"yes_no\",\"question\":\"...\",\"options\":[\"yes\",\"no\"],\"status\":\"pending\"}\n\n --verify turns \"the agent stopped\" into \"the work passes the repository's own\n checks\". Verification only runs when completion was detected: a prompt (10) or\n a timeout (124) is reported as-is and never verified. With several worktrees,\n gates run one worktree at a time because the server caps concurrent runs.\n\n### commandmate verify <worktree-id>\n Run the gates declared in .commandmate/verify.yaml against a worktree.\n\n Options:\n --gates <id1,id2> Gate ids to run (default: work-evidence + all declared)\n --instance <id> Attribute the run to an agent instance\n --timeout <seconds> Stop polling after N seconds (exit 124)\n --json Print the run and its gate results as JSON on stdout\n\n Exit codes:\n 0 - Every gate passed\n 20 - A gate failed, timed out, or errored\n 21 - work-evidence found nothing to verify (no commits, no changes)\n 99 - The run produced no verdict (bad verify.yaml, gates skipped, cancelled)\n 124 - --timeout elapsed while the run was still going\n\n Output (progress on stderr, verdict on stdout):\n GATE work-evidence PASS (commits=3, uncommitted=2)\n GATE lint PASS (exit=0, 12.3s)\n GATE unit FAIL (exit=1, 45.0s)\n RESULT failed\n\n Gates run in the worktree's own directory. Gates are skipped (run status 99,\n never 0) in the checkout the server itself runs from when verify.yaml sets\n options.skipInPrimaryCheckout, so a 'build' gate cannot replace the assets the\n live app is serving.\n\n### commandmate verify history / commandmate verify show <run-id>\n Read past verification runs. Both are read-only and never start a run, so\n neither returns 20 or 21 \u2014 those mean \"this tree failed verification\", and a\n question about history is not a verdict on the current tree.\n\n commandmate verify history # every worktree, newest 50\n commandmate verify history --worktree <id> # one worktree\n commandmate verify history --days 14 --limit 100 # window and page size\n commandmate verify history --json # JSON array on stdout\n commandmate verify show 42 # gates + log tails\n commandmate verify show 42 --json\n\n history options:\n --worktree <id> Restrict to one worktree (default: all)\n --days <n> Look back n days, 1..90 (default: no lower bound)\n --limit <n> Maximum runs, 1..500 (default: 50)\n\n One run per line. The leading #<run-id> is what \"verify show\" takes:\n #42 2026-07-31T04:12:00.000Z myrepo-feature-101 manual failed failed: unit,build\n\n The listing carries gate verdicts but NOT gate log bodies \u2014 logTail is absent\n from the JSON, not null. Use \"verify show <run-id>\" when you need the log.\n\n Exit codes:\n 0 - Read succeeded (also when nothing matched: stderr note, or [] in JSON)\n 2 - Bad argument (--days/--limit out of range, bad worktree or run id)\n 99 - No such run (404), or an unexpected failure\n\n### commandmate respond <worktree-id> \"<answer>\"\n Respond to an agent's prompt.\n\n commandmate respond <id> \"yes\" # Yes/No\n commandmate respond <id> \"2\" # Multiple choice (number)\n commandmate respond <id> \"custom text\" # Free text\n\n Exit codes:\n 0 - Response sent\n 99 - Prompt already dismissed (prompt_no_longer_active)\n\n### commandmate capture <worktree-id>\n Get current terminal output.\n\n commandmate capture <id> # Plain text\n commandmate capture <id> --json # JSON with status info\n commandmate capture <id> --agent codex # Specific agent\n\n### commandmate auto-yes <worktree-id>\n Control auto-yes (automatic prompt response).\n\n commandmate auto-yes <id> --enable # Enable (default 1h)\n commandmate auto-yes <id> --enable --duration 3h # With duration\n commandmate auto-yes <id> --enable --stop-pattern \"error\"\n commandmate auto-yes <id> --disable # Disable\n\n### commandmate instances <worktree-id> [action] [args]\n Discover and manage a worktree's agent-instance roster (1 agent, multiple sessions).\n\n commandmate instances <id> # List roster + running/auto-yes status\n commandmate instances <id> --json # JSON output\n commandmate instances <id> add --agent codex # Add an instance (auto-generates ID, e.g. codex-2)\n commandmate instances <id> add --agent codex --alias \"Review\" --id codex-3\n commandmate instances <id> remove <instance-id> # Remove from roster\n commandmate instances <id> remove <instance-id> --kill # Remove and kill its session\n commandmate instances <id> alias <instance-id> \"New Name\"\n commandmate instances <id> kill <instance-id> # Kill only that instance's session\n\n See \"Multi-Session\" below for the ID convention and roster semantics.\n\n### commandmate skill <subcommand>\n Manage official Agent Skills. Every subcommand is a thin client over the same\n APIs the browser UI uses: the CLI never downloads, extracts, writes or deletes\n anything itself, and never sends a filesystem path, artifact URL, file list or\n checksum (the API rejects those outright).\n\n commandmate skill list [--json] [--prerelease]\n commandmate skill info <skill-id> [--version <v>] [--json]\n commandmate skill plan <skill-id> --worktree <id> [--version <v>] [--json]\n commandmate skill install <skill-id> --worktree <id> --version <exact> [--dry-run] [--yes] [--ack-risk <id>@<version>] [--json]\n commandmate skill uninstall <skill-id> --worktree <id> [--dry-run] [--yes] [--json]\n commandmate skill status <skill-id> --worktree <id> [--json]\n\n Confirmation contract (writes = install / uninstall):\n - A plan is always built and shown first. --dry-run stops there.\n - Without a TTY, a write REQUIRES --yes. A missing --yes is refused, never\n assumed: an environment that cannot prompt must not install silently.\n - A high-risk Skill additionally requires --ack-risk <skill-id>@<version>\n with the exact id and version. --yes alone never carries a high-risk\n install, in a TTY or out of one.\n\n Exit codes:\n 0 success\n 1 the server or the Catalog could not be reached (retryable)\n 2 invalid arguments, unknown Skill or unknown version\n 11 the worktree refused it (local change, conflict, lock, plan drift)\n 12 the write was never confirmed (no --yes, declined, or missing --ack-risk)\n 13 files changed but the operation needs reconciliation\n\n --json prints the API response body verbatim on stdout; diagnostics, prompts\n and errors always go to stderr, so a failed --json run leaves stdout empty.\n\n 'skill status' reports one Skill in one worktree, read from the install\n receipt on disk. There is no per-worktree listing endpoint yet, so <skill-id>\n is required.\n\n## Multi-Session (1 agent, multiple sessions)\n\n A worktree can run several sessions of the same CLI tool concurrently. Each\n session is an \"instance\" identified by an instance ID:\n <agent> - the agent's primary instance (e.g. \"claude\")\n <agent>-<n> - an additional instance, n >= 2 (e.g. \"claude-2\", \"claude-3\")\n\n --instance is accepted by send / wait / respond / capture / auto-yes.\n send --instance auto-starts the session if it is not already running.\n\n The roster (visible in the browser UI's Agent panel) is the list of known\n instances with aliases and display order. Ad-hoc sessions started via\n 'send --instance' do NOT appear in the roster unless registered:\n commandmate send <id> \"...\" --instance claude-2 --register\n Without --register, the session still runs and responds to CLI commands,\n but it will not show up in the UI sidebar/roster until added there or via\n 'commandmate instances <id> add'.\n\n Per-instance auto-yes: --instance scopes --auto-yes/--duration/--stop-pattern\n to that specific session, independent of other instances of the same agent.\n\n commandmate instances <id> # discover valid --instance values\n commandmate send <id> \"task\" --agent codex --instance codex-2 --auto-yes\n commandmate wait <id> --instance codex-2 --timeout 600\n commandmate capture <id> --agent codex --instance codex-2\n\n## All Exit Codes\n\n 0 SUCCESS - Completed successfully\n 1 DEPENDENCY_ERROR - Server not running\n 2 CONFIG_ERROR - Validation error (invalid agent, duration, etc.)\n 10 PROMPT_DETECTED - Prompt detected during wait\n 20 VERIFY_FAILED - A verification gate failed (verify, wait --verify)\n 21 NOT_STARTED - Nothing to verify: no commits, no uncommitted changes\n 99 UNEXPECTED_ERROR - Unexpected error / resource not found / no verdict\n 124 TIMEOUT - Wait or verification timeout exceeded\n\n When one 'wait' covers several worktrees, the reported code is the highest\n priority one observed: 10 > 20 > 21 > 124.\n\n## Troubleshooting\n\n Server not running:\n commandmate start --daemon\n CM_PORT=3011 commandmate ls # Different port\n\n Worktree not found:\n commandmate ls --quiet # Check registered IDs\n curl -s -X POST http://localhost:3000/api/repositories/sync # Sync new worktrees\n\n Authentication:\n CM_AUTH_TOKEN=your-token commandmate ls\n";
9
+ export declare const AGENT_OPERATIONS_SAMPLES = "# CLI Agent Operations - Workflow Samples\n\nCopy and adapt these patterns for your use case.\n\n## 1. Basic: send, wait, capture\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n commandmate send \"$WT\" \"Implement Issue #101 with TDD\"\n commandmate wait \"$WT\" --timeout 600\n commandmate capture \"$WT\"\n\n## 2. With Auto-Yes (unattended execution)\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n commandmate send \"$WT\" \"Implement Issue #101\" --auto-yes --duration 3h\n commandmate wait \"$WT\" --timeout 1800\n commandmate auto-yes \"$WT\" --disable # Disable for safety\n commandmate capture \"$WT\" --json\n\n## 3. Prompt Response Loop\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n commandmate send \"$WT\" \"Refactor this module\"\n\n while true; do\n commandmate wait \"$WT\" --timeout 600 --on-prompt agent\n EXIT_CODE=$?\n\n if [ $EXIT_CODE -eq 0 ]; then\n echo \"Done\"\n break\n elif [ $EXIT_CODE -eq 10 ]; then\n commandmate respond \"$WT\" \"yes\"\n elif [ $EXIT_CODE -eq 124 ]; then\n echo \"Timeout\"\n break\n fi\n done\n\n commandmate capture \"$WT\"\n\n## 4. Parallel Worktrees\n\n WT1=$(commandmate ls --branch feature/101 --quiet)\n WT2=$(commandmate ls --branch feature/102 --quiet)\n\n commandmate send \"$WT1\" \"Implement #101\" --auto-yes\n commandmate send \"$WT2\" \"Implement #102\" --auto-yes --agent codex\n\n commandmate wait \"$WT1\" \"$WT2\" --timeout 1800\n\n commandmate capture \"$WT1\" --json\n commandmate capture \"$WT2\" --json\n\n## 5. Check status before sending\n\n # Find worktrees and check status\n commandmate ls --json | python3 -c \"\n import sys, json\n for wt in json.load(sys.stdin):\n if wt['name'].startswith('feature/'):\n print(f\\\"{wt['id']} {wt['name']}\\\")\n \"\n\n## 6. Error handling pattern\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n\n if [ -z \"$WT\" ]; then\n echo \"Error: worktree not found\"\n exit 1\n fi\n\n commandmate send \"$WT\" \"Fix the bug\" --auto-yes\n commandmate wait \"$WT\" --timeout 600\n EXIT_CODE=$?\n\n case $EXIT_CODE in\n 0) echo \"Success\"; commandmate capture \"$WT\" ;;\n 10) echo \"Prompt detected\"; commandmate respond \"$WT\" \"yes\" ;;\n 124) echo \"Timeout\"; commandmate capture \"$WT\" --json ;;\n *) echo \"Error: exit $EXIT_CODE\" ;;\n esac\n\n## 7. Multi-Session: run a second Codex session alongside the primary agent\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n\n # Discover the roster before picking an --instance value\n commandmate instances \"$WT\"\n\n # Register a second Codex instance, then send/wait/capture scoped to it\n commandmate instances \"$WT\" add --agent codex --alias \"Review\"\n commandmate send \"$WT\" \"Review the diff\" --agent codex --instance codex-2 --auto-yes\n commandmate wait \"$WT\" --instance codex-2 --timeout 600\n commandmate capture \"$WT\" --agent codex --instance codex-2 --json\n\n # Ad-hoc instance without pre-registering (still runs; register to show in UI)\n commandmate send \"$WT\" \"Quick check\" --agent codex --instance codex-3 --register\n\n # Clean up when done\n commandmate instances \"$WT\" remove codex-2 --kill\n\n## 8. Verify the work instead of trusting \"the agent stopped\"\n\n WT=$(commandmate ls --branch feature/101 --quiet)\n commandmate send \"$WT\" \"Implement Issue #101 with TDD\" --auto-yes\n\n # One call: wait for completion, then run every gate in .commandmate/verify.yaml\n commandmate wait \"$WT\" --timeout 1800 --verify\n case $? in\n 0) echo \"Verified\" ;;\n 10) commandmate respond \"$WT\" \"yes\" ;;\n 20) echo \"A gate failed\"; commandmate verify \"$WT\" --json ;;\n 21) echo \"The agent produced nothing\" ;;\n esac\n\n # Cheap pre-check: is there any work at all, before paying for the full suite?\n commandmate wait \"$WT\" --require-work || echo \"no commits and no changes\"\n\n # Re-run a subset after a fix, without waiting on the agent\n commandmate verify \"$WT\" --gates lint,unit\n";
10
10
  //# sourceMappingURL=agent-operations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-operations.d.ts","sourceRoot":"","sources":["../../../src/cli/docs/agent-operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,sBAAsB,u9RAiMlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,osGAsGpC,CAAC"}
1
+ {"version":3,"file":"agent-operations.d.ts","sourceRoot":"","sources":["../../../src/cli/docs/agent-operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,sBAAsB,yiZAsQlC,CAAC;AAEF,eAAO,MAAM,wBAAwB,igIA0HpC,CAAC"}
@@ -65,10 +65,14 @@ These commands enable coding agents (Claude Code, Codex, etc.) to orchestrate ot
65
65
  --timeout <seconds> Maximum wait time
66
66
  --on-prompt <mode> agent (default) or human
67
67
  --stall-timeout <seconds> Max time without output change
68
+ --verify After completion, run every verification gate
69
+ --require-work After completion, run only the work-evidence gate
68
70
 
69
71
  Exit codes:
70
- 0 - Completed (agent idle/ready)
72
+ 0 - Completed (agent idle/ready), and verified when --verify was given
71
73
  10 - Prompt detected (--on-prompt agent mode)
74
+ 20 - A verification gate failed (--verify)
75
+ 21 - Nothing to verify: no commits, no uncommitted changes
72
76
  124 - Timeout exceeded
73
77
 
74
78
  --on-prompt modes:
@@ -78,6 +82,66 @@ These commands enable coding agents (Claude Code, Codex, etc.) to orchestrate ot
78
82
  Prompt JSON output (exit 10):
79
83
  {"worktreeId":"...","cliToolId":"claude","type":"yes_no","question":"...","options":["yes","no"],"status":"pending"}
80
84
 
85
+ --verify turns "the agent stopped" into "the work passes the repository's own
86
+ checks". Verification only runs when completion was detected: a prompt (10) or
87
+ a timeout (124) is reported as-is and never verified. With several worktrees,
88
+ gates run one worktree at a time because the server caps concurrent runs.
89
+
90
+ ### commandmate verify <worktree-id>
91
+ Run the gates declared in .commandmate/verify.yaml against a worktree.
92
+
93
+ Options:
94
+ --gates <id1,id2> Gate ids to run (default: work-evidence + all declared)
95
+ --instance <id> Attribute the run to an agent instance
96
+ --timeout <seconds> Stop polling after N seconds (exit 124)
97
+ --json Print the run and its gate results as JSON on stdout
98
+
99
+ Exit codes:
100
+ 0 - Every gate passed
101
+ 20 - A gate failed, timed out, or errored
102
+ 21 - work-evidence found nothing to verify (no commits, no changes)
103
+ 99 - The run produced no verdict (bad verify.yaml, gates skipped, cancelled)
104
+ 124 - --timeout elapsed while the run was still going
105
+
106
+ Output (progress on stderr, verdict on stdout):
107
+ GATE work-evidence PASS (commits=3, uncommitted=2)
108
+ GATE lint PASS (exit=0, 12.3s)
109
+ GATE unit FAIL (exit=1, 45.0s)
110
+ RESULT failed
111
+
112
+ Gates run in the worktree's own directory. Gates are skipped (run status 99,
113
+ never 0) in the checkout the server itself runs from when verify.yaml sets
114
+ options.skipInPrimaryCheckout, so a 'build' gate cannot replace the assets the
115
+ live app is serving.
116
+
117
+ ### commandmate verify history / commandmate verify show <run-id>
118
+ Read past verification runs. Both are read-only and never start a run, so
119
+ neither returns 20 or 21 — those mean "this tree failed verification", and a
120
+ question about history is not a verdict on the current tree.
121
+
122
+ commandmate verify history # every worktree, newest 50
123
+ commandmate verify history --worktree <id> # one worktree
124
+ commandmate verify history --days 14 --limit 100 # window and page size
125
+ commandmate verify history --json # JSON array on stdout
126
+ commandmate verify show 42 # gates + log tails
127
+ commandmate verify show 42 --json
128
+
129
+ history options:
130
+ --worktree <id> Restrict to one worktree (default: all)
131
+ --days <n> Look back n days, 1..90 (default: no lower bound)
132
+ --limit <n> Maximum runs, 1..500 (default: 50)
133
+
134
+ One run per line. The leading #<run-id> is what "verify show" takes:
135
+ #42 2026-07-31T04:12:00.000Z myrepo-feature-101 manual failed failed: unit,build
136
+
137
+ The listing carries gate verdicts but NOT gate log bodies — logTail is absent
138
+ from the JSON, not null. Use "verify show <run-id>" when you need the log.
139
+
140
+ Exit codes:
141
+ 0 - Read succeeded (also when nothing matched: stderr note, or [] in JSON)
142
+ 2 - Bad argument (--days/--limit out of range, bad worktree or run id)
143
+ 99 - No such run (404), or an unexpected failure
144
+
81
145
  ### commandmate respond <worktree-id> "<answer>"
82
146
  Respond to an agent's prompt.
83
147
 
@@ -186,8 +250,13 @@ These commands enable coding agents (Claude Code, Codex, etc.) to orchestrate ot
186
250
  1 DEPENDENCY_ERROR - Server not running
187
251
  2 CONFIG_ERROR - Validation error (invalid agent, duration, etc.)
188
252
  10 PROMPT_DETECTED - Prompt detected during wait
189
- 99 UNEXPECTED_ERROR - Unexpected error / resource not found
190
- 124 TIMEOUT - Wait timeout exceeded
253
+ 20 VERIFY_FAILED - A verification gate failed (verify, wait --verify)
254
+ 21 NOT_STARTED - Nothing to verify: no commits, no uncommitted changes
255
+ 99 UNEXPECTED_ERROR - Unexpected error / resource not found / no verdict
256
+ 124 TIMEOUT - Wait or verification timeout exceeded
257
+
258
+ When one 'wait' covers several worktrees, the reported code is the highest
259
+ priority one observed: 10 > 20 > 21 > 124.
191
260
 
192
261
  ## Troubleshooting
193
262
 
@@ -304,4 +373,24 @@ Copy and adapt these patterns for your use case.
304
373
 
305
374
  # Clean up when done
306
375
  commandmate instances "$WT" remove codex-2 --kill
376
+
377
+ ## 8. Verify the work instead of trusting "the agent stopped"
378
+
379
+ WT=$(commandmate ls --branch feature/101 --quiet)
380
+ commandmate send "$WT" "Implement Issue #101 with TDD" --auto-yes
381
+
382
+ # One call: wait for completion, then run every gate in .commandmate/verify.yaml
383
+ commandmate wait "$WT" --timeout 1800 --verify
384
+ case $? in
385
+ 0) echo "Verified" ;;
386
+ 10) commandmate respond "$WT" "yes" ;;
387
+ 20) echo "A gate failed"; commandmate verify "$WT" --json ;;
388
+ 21) echo "The agent produced nothing" ;;
389
+ esac
390
+
391
+ # Cheap pre-check: is there any work at all, before paying for the full suite?
392
+ commandmate wait "$WT" --require-work || echo "no commits and no changes"
393
+
394
+ # Re-run a subset after a fix, without waiting on the agent
395
+ commandmate verify "$WT" --gates lint,unit
307
396
  `;
@@ -1 +1 @@
1
- {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../src/cli/program.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AA4D5C;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,OAAO,CA4KtC"}
1
+ {"version":3,"file":"program.d.ts","sourceRoot":"","sources":["../../src/cli/program.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AA8D5C;;;;;;;GAOG;AACH,wBAAgB,YAAY,IAAI,OAAO,CAkLtC"}
@@ -22,6 +22,8 @@ const wait_1 = require("./commands/wait");
22
22
  const respond_1 = require("./commands/respond");
23
23
  const capture_1 = require("./commands/capture");
24
24
  const auto_yes_1 = require("./commands/auto-yes");
25
+ const verify_1 = require("./commands/verify");
26
+ const task_1 = require("./commands/task");
25
27
  // Issue #636: Report command
26
28
  const report_1 = require("./commands/report");
27
29
  // Issue #1000: Agent-instance roster management (discover/add/remove/alias/kill)
@@ -204,6 +206,10 @@ function buildProgram() {
204
206
  program.addCommand((0, respond_1.createRespondCommand)());
205
207
  program.addCommand((0, capture_1.createCaptureCommand)());
206
208
  program.addCommand((0, auto_yes_1.createAutoYesCommand)());
209
+ // Issue #1544: verification gates (.commandmate/verify.yaml)
210
+ program.addCommand((0, verify_1.createVerifyCommand)());
211
+ // Issue #1545: execution contracts (.commandmate/tasks/<name>.yaml)
212
+ program.addCommand((0, task_1.createTaskCommand)());
207
213
  // Issue #636: Report command
208
214
  program.addCommand((0, report_1.createReportCommand)());
209
215
  // Issue #1000: Agent-instance roster management
@@ -112,6 +112,41 @@ export interface SerializedReport {
112
112
  createdAt: string;
113
113
  updatedAt: string;
114
114
  }
115
+ export interface VibeMetrics {
116
+ periodDays: number;
117
+ tasks: {
118
+ total: number;
119
+ succeeded: number;
120
+ failed: number;
121
+ notStarted: number;
122
+ cancelled: number;
123
+ /** 0..1 fraction; null when no tasks were created in the window. */
124
+ successRate: number | null;
125
+ /** null when nothing failed in the window. */
126
+ avgRetryLoops: number | null;
127
+ };
128
+ verification: {
129
+ runs: number;
130
+ passed: number;
131
+ failed: number;
132
+ notStarted: number;
133
+ /** 0..1 fraction; null when no runs started in the window. */
134
+ passRate: number | null;
135
+ gateFailBreakdown: Array<{
136
+ gateId: string;
137
+ failCount: number;
138
+ }>;
139
+ };
140
+ intervention: {
141
+ humanResponds: number;
142
+ autoAnswered: number;
143
+ /** Always null in v1: the policy suppression log is not persisted. */
144
+ suppressedByPolicy: number | null;
145
+ };
146
+ }
147
+ export interface VibeMetricsResponse {
148
+ metrics: VibeMetrics;
149
+ }
115
150
  export interface TemplateResponse {
116
151
  id: string;
117
152
  name: string;
@@ -290,6 +325,31 @@ export interface SkillInstallResponse {
290
325
  }>;
291
326
  } | null;
292
327
  }
328
+ /** Mirrors: api/worktrees/[id]/skills/[skillId]/git-workflow prepare response (Issue #1247). */
329
+ export interface SkillGitWorkflowPrepareResponse {
330
+ workflowToken: string;
331
+ target: {
332
+ mode: string;
333
+ branch: string;
334
+ baseBranch: string | null;
335
+ headCommit: string;
336
+ branchCreated: boolean;
337
+ remote: string;
338
+ };
339
+ }
340
+ /** Mirrors: api/worktrees/[id]/skills/[skillId]/git-workflow apply response (Issue #1247). */
341
+ export interface SkillGitWorkflowApplyResponse {
342
+ result: {
343
+ branch: string;
344
+ baseBranch: string | null;
345
+ changedPaths: string[];
346
+ committed: boolean;
347
+ commitSha: string;
348
+ pushed: boolean;
349
+ pullRequestUrl: string | null;
350
+ pullRequestExisted: boolean;
351
+ };
352
+ }
293
353
  /** Mirrors: src/lib/skills/uninstall-plan.ts SkillUninstallPlanDto (subset). */
294
354
  export interface SkillUninstallPlan {
295
355
  token: string;
@@ -346,4 +406,154 @@ export interface SkillUninstallResponse {
346
406
  fullyRemoved?: boolean;
347
407
  } | null;
348
408
  }
409
+ /** Mirrors: src/app/api/skills/reindex/route.ts POST response [Issue #1248]. */
410
+ export interface SkillReindexResult {
411
+ scannedWorktrees: number;
412
+ indexed: number;
413
+ removed: number;
414
+ skipped: Array<{
415
+ worktreeId: string;
416
+ skillId: string;
417
+ /** Repository-relative root the directory was found at. */
418
+ root: string;
419
+ reason: string;
420
+ }>;
421
+ /** Registered worktrees whose directory is gone; their rows were left untouched. */
422
+ unreadableWorktreeIds: string[];
423
+ }
424
+ /** Mirrors: src/app/api/worktrees/[id]/verify/route.ts POST 202 response. */
425
+ export interface VerifyStartResponse {
426
+ runId: number;
427
+ }
428
+ /**
429
+ * Mirrors: src/lib/db/verification-db.ts VerificationRunStatus.
430
+ * Declared here rather than imported so the CLI bundle stays free of the
431
+ * server's better-sqlite3 dependency graph.
432
+ */
433
+ export type VerificationRunStatus = 'running' | 'passed' | 'failed' | 'not_started' | 'error' | 'cancelled';
434
+ /** Mirrors: src/lib/db/verification-db.ts VerificationGateStatus. */
435
+ export type VerificationGateStatus = 'running' | 'passed' | 'failed' | 'timeout' | 'skipped' | 'error';
436
+ /**
437
+ * Mirrors: src/lib/db/verification-db.ts VerificationGateResult.
438
+ * Dates arrive as ISO strings because the route serializes them through JSON.
439
+ */
440
+ export interface VerificationGateResultView {
441
+ id: number;
442
+ runId: number;
443
+ gateId: string;
444
+ command: string;
445
+ status: VerificationGateStatus;
446
+ exitCode: number | null;
447
+ durationMs: number | null;
448
+ logTail: string | null;
449
+ startedAt: string;
450
+ finishedAt: string | null;
451
+ }
452
+ /** Mirrors: src/lib/db/verification-db.ts VerificationRunWithGates. */
453
+ export interface VerificationRunView {
454
+ id: number;
455
+ worktreeId: string;
456
+ instanceId: string | null;
457
+ taskId: string | null;
458
+ trigger: string;
459
+ status: VerificationRunStatus;
460
+ baseRef: string | null;
461
+ startedAt: string;
462
+ finishedAt: string | null;
463
+ gates: VerificationGateResultView[];
464
+ }
465
+ /** Mirrors: src/app/api/worktrees/[id]/verify/runs/[runId]/route.ts GET response. */
466
+ export interface VerifyRunResponse {
467
+ run: VerificationRunView;
468
+ }
469
+ /**
470
+ * Mirrors: src/lib/db/verification-db.ts VerificationGateSummary (Issue #1593).
471
+ * No `logTail` — the history listing does not carry log bodies, and declaring
472
+ * one here would let `history` code read a field the server never sends.
473
+ */
474
+ export interface VerificationGateSummaryView {
475
+ gateId: string;
476
+ status: VerificationGateStatus;
477
+ exitCode: number | null;
478
+ durationMs: number | null;
479
+ }
480
+ /** Mirrors: src/lib/db/verification-db.ts VerificationRunWithGateSummaries. */
481
+ export interface VerificationRunSummaryView {
482
+ id: number;
483
+ worktreeId: string;
484
+ instanceId: string | null;
485
+ taskId: string | null;
486
+ trigger: string;
487
+ status: VerificationRunStatus;
488
+ baseRef: string | null;
489
+ startedAt: string;
490
+ finishedAt: string | null;
491
+ gates: VerificationGateSummaryView[];
492
+ }
493
+ /** Mirrors: src/app/api/verification/runs/route.ts GET response. */
494
+ export interface VerificationRunHistoryResponse {
495
+ runs: VerificationRunSummaryView[];
496
+ }
497
+ /** Mirrors: src/lib/db/tasks-db.ts TaskStatus. */
498
+ export type TaskStatus = 'pending' | 'running' | 'waiting_input' | 'verifying' | 'succeeded' | 'failed' | 'not_started' | 'cancelled';
499
+ /**
500
+ * Mirrors: src/lib/tasks/contract-parser.ts TaskContract.
501
+ * The snapshot taken at send time, as stored in `tasks.contract_json`.
502
+ */
503
+ export interface TaskContractView {
504
+ version: number;
505
+ title: string;
506
+ goal: string;
507
+ scope: {
508
+ allow: string[];
509
+ deny: string[];
510
+ };
511
+ verify: {
512
+ gates: string[] | null;
513
+ };
514
+ autoYes: {
515
+ mode: string | null;
516
+ allowPromptTypes: string[];
517
+ denyPatterns: string[];
518
+ };
519
+ success: {
520
+ requireWorkEvidence: boolean;
521
+ requireScopeClean: boolean;
522
+ };
523
+ }
524
+ /**
525
+ * Mirrors: src/lib/db/tasks-db.ts Task.
526
+ * Dates arrive as ISO strings because the route serializes them through JSON.
527
+ */
528
+ export interface TaskView {
529
+ id: string;
530
+ worktreeId: string;
531
+ cliToolId: string;
532
+ instanceId: string | null;
533
+ title: string;
534
+ goal: string;
535
+ contractPath: string | null;
536
+ contract: TaskContractView;
537
+ status: TaskStatus;
538
+ lastVerificationRunId: number | null;
539
+ createdAt: string;
540
+ updatedAt: string;
541
+ startedAt: string | null;
542
+ finishedAt: string | null;
543
+ }
544
+ /** Mirrors: src/app/api/worktrees/[id]/tasks/route.ts POST response. */
545
+ export interface TaskCreateResponse {
546
+ task: TaskView;
547
+ /** Contract preamble + goal, composed server-side; this is what gets sent. */
548
+ message: string;
549
+ }
550
+ /** Mirrors: src/app/api/worktrees/[id]/tasks/route.ts GET response. */
551
+ export interface TaskListResponse {
552
+ tasks: TaskView[];
553
+ }
554
+ /** Mirrors: src/app/api/tasks/[taskId]/route.ts GET response. */
555
+ export interface TaskDetailResponse {
556
+ task: TaskView;
557
+ lastVerificationRun: VerificationRunView | null;
558
+ }
349
559
  //# sourceMappingURL=api-responses.d.ts.map