@openagt/dashboard 0.8.0 → 0.10.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 (965) hide show
  1. package/README.md +14 -17
  2. package/dist/agent-view.d.ts +3 -3
  3. package/dist/bridge-browser.d.ts +4 -4
  4. package/dist/bridge-browser.d.ts.map +1 -1
  5. package/dist/bridge-browser.js +8 -8
  6. package/dist/bridge-browser.js.map +1 -1
  7. package/dist/built-in.d.ts +45 -14
  8. package/dist/built-in.d.ts.map +1 -1
  9. package/dist/built-in.js +122 -27
  10. package/dist/built-in.js.map +1 -1
  11. package/dist/chrome-extension/background.js +11 -11
  12. package/dist/chrome-extension/content.js +37 -37
  13. package/dist/chrome-extension/driver-plan.js +1 -1
  14. package/dist/chrome-extension/fingerprint.js +1 -1
  15. package/dist/chrome-extension/manifest.json +3 -3
  16. package/dist/chrome-extension/options.html +4 -4
  17. package/dist/chrome-extension/options.js +4 -4
  18. package/dist/cli.d.ts +1 -1
  19. package/dist/cli.js +7 -7
  20. package/dist/cli.js.map +1 -1
  21. package/dist/client.d.ts +1 -1
  22. package/dist/client.js +2 -2
  23. package/dist/cloud-run-state.d.ts +1 -1
  24. package/dist/cloud-scratch-refs.js +7 -7
  25. package/dist/cloud-scratch-refs.js.map +1 -1
  26. package/dist/cloud-work.js +2 -2
  27. package/dist/daemon-runtime.d.ts +5 -4
  28. package/dist/daemon-runtime.d.ts.map +1 -1
  29. package/dist/daemon-runtime.js +59 -10
  30. package/dist/daemon-runtime.js.map +1 -1
  31. package/dist/daemon-services.d.ts +4 -3
  32. package/dist/daemon-services.d.ts.map +1 -1
  33. package/dist/daemon-services.js +14 -8
  34. package/dist/daemon-services.js.map +1 -1
  35. package/dist/daemon-tick.js +1 -1
  36. package/dist/daemon.d.ts +1 -12
  37. package/dist/daemon.d.ts.map +1 -1
  38. package/dist/daemon.js +9 -32
  39. package/dist/daemon.js.map +1 -1
  40. package/dist/dashboard/agent-handoff.d.ts +4 -4
  41. package/dist/dashboard/agent-handoff.js +7 -7
  42. package/dist/dashboard/agent-handoff.js.map +1 -1
  43. package/dist/dashboard/bridge-endpoints.d.ts +3 -3
  44. package/dist/dashboard/bridge-endpoints.js +3 -3
  45. package/dist/dashboard/content-type.js +1 -1
  46. package/dist/dashboard/docs.d.ts +1 -1
  47. package/dist/dashboard/docs.js +1 -1
  48. package/dist/dashboard/git-status.d.ts +1 -1
  49. package/dist/dashboard/index.d.ts +1 -1
  50. package/dist/dashboard/index.d.ts.map +1 -1
  51. package/dist/dashboard/interventions.d.ts +2 -2
  52. package/dist/dashboard/open-in-app.d.ts +3 -3
  53. package/dist/dashboard/open-in-app.js +4 -4
  54. package/dist/dashboard/open-questions.d.ts +2 -2
  55. package/dist/dashboard/projects.d.ts +6 -5
  56. package/dist/dashboard/projects.d.ts.map +1 -1
  57. package/dist/dashboard/projects.js.map +1 -1
  58. package/dist/dashboard/pull-requests.d.ts +5 -5
  59. package/dist/dashboard/pull-requests.d.ts.map +1 -1
  60. package/dist/dashboard/pull-requests.js +2 -2
  61. package/dist/dashboard/pull-requests.js.map +1 -1
  62. package/dist/dashboard/relay-endpoints.d.ts +3 -3
  63. package/dist/dashboard/relay-endpoints.js +1 -1
  64. package/dist/dashboard/remote-run.d.ts +5 -5
  65. package/dist/dashboard/remote-run.js +3 -3
  66. package/dist/dashboard/rpc-serve.d.ts +7 -4
  67. package/dist/dashboard/rpc-serve.d.ts.map +1 -1
  68. package/dist/dashboard/rpc-serve.js.map +1 -1
  69. package/dist/dashboard/run-inbox.d.ts +2 -2
  70. package/dist/dashboard/run-inbox.js +4 -4
  71. package/dist/dashboard/run-inbox.js.map +1 -1
  72. package/dist/dashboard/server.d.ts +6 -4
  73. package/dist/dashboard/server.d.ts.map +1 -1
  74. package/dist/dashboard/server.js +3 -2
  75. package/dist/dashboard/server.js.map +1 -1
  76. package/dist/dashboard/start-branch.d.ts +32 -0
  77. package/dist/dashboard/start-branch.d.ts.map +1 -0
  78. package/dist/dashboard/start-branch.js +47 -0
  79. package/dist/dashboard/start-branch.js.map +1 -0
  80. package/dist/dashboard/static.js +1 -1
  81. package/dist/dashboard/types.d.ts +29 -3
  82. package/dist/dashboard/types.d.ts.map +1 -1
  83. package/dist/dashboard/web-start-endpoints.d.ts +1 -1
  84. package/dist/dashboard/web-start-endpoints.d.ts.map +1 -1
  85. package/dist/dashboard/web-start-endpoints.js +1 -1
  86. package/dist/dashboard/web-start-endpoints.js.map +1 -1
  87. package/dist/dashboard-bundle/assets/main-Q7JMdMJI.css +2 -0
  88. package/dist/dashboard-bundle/assets/main-fDZWGOub.js +140 -0
  89. package/dist/dashboard-bundle/assets/{module-jASZmfSB.js → module-gKz-ZvkG.js} +4 -4
  90. package/dist/dashboard-bundle/host/module.js +1 -1
  91. package/dist/dashboard-bundle/index.html +6 -6
  92. package/dist/dashboard-rpc/context.d.ts +2 -0
  93. package/dist/dashboard-rpc/context.d.ts.map +1 -1
  94. package/dist/dashboard-rpc/context.js +4 -0
  95. package/dist/dashboard-rpc/context.js.map +1 -1
  96. package/dist/dashboard-rpc/control.d.ts +1 -1
  97. package/dist/dashboard-rpc/control.js +3 -3
  98. package/dist/dashboard-rpc/control.js.map +1 -1
  99. package/dist/dashboard-rpc/events.d.ts +3 -3
  100. package/dist/dashboard-rpc/index.d.ts +2 -1
  101. package/dist/dashboard-rpc/index.d.ts.map +1 -1
  102. package/dist/dashboard-rpc/index.js +4 -2
  103. package/dist/dashboard-rpc/index.js.map +1 -1
  104. package/dist/dashboard-rpc/modules.d.ts +8 -6
  105. package/dist/dashboard-rpc/modules.d.ts.map +1 -1
  106. package/dist/dashboard-rpc/modules.js +8 -6
  107. package/dist/dashboard-rpc/modules.js.map +1 -1
  108. package/dist/dashboard-rpc/preferences.d.ts +2 -2
  109. package/dist/dashboard-rpc/preferences.d.ts.map +1 -1
  110. package/dist/dashboard-rpc/preferences.js +2 -2
  111. package/dist/dashboard-rpc/preferences.js.map +1 -1
  112. package/dist/dashboard-rpc/projects.d.ts +29 -3
  113. package/dist/dashboard-rpc/projects.d.ts.map +1 -1
  114. package/dist/dashboard-rpc/projects.js +57 -8
  115. package/dist/dashboard-rpc/projects.js.map +1 -1
  116. package/dist/dashboard-rpc/reads.d.ts +3 -3
  117. package/dist/dashboard-rpc/reads.js +1 -1
  118. package/dist/dashboard-rpc/skills.d.ts +80 -0
  119. package/dist/dashboard-rpc/skills.d.ts.map +1 -0
  120. package/dist/dashboard-rpc/skills.js +84 -0
  121. package/dist/dashboard-rpc/skills.js.map +1 -0
  122. package/dist/dashboard-rpc/test-context.d.ts.map +1 -1
  123. package/dist/dashboard-rpc/test-context.js +4 -3
  124. package/dist/dashboard-rpc/test-context.js.map +1 -1
  125. package/dist/event-stream.d.ts +1 -1
  126. package/dist/event-stream.js +1 -1
  127. package/dist/events.d.ts +8 -8
  128. package/dist/events.d.ts.map +1 -1
  129. package/dist/index.d.ts +3 -2
  130. package/dist/index.d.ts.map +1 -1
  131. package/dist/install.d.ts +9 -7
  132. package/dist/install.d.ts.map +1 -1
  133. package/dist/install.js +28 -14
  134. package/dist/install.js.map +1 -1
  135. package/dist/module-server.d.ts +1 -1
  136. package/dist/module-types/dashboard/components/ui/switch.d.ts +7 -0
  137. package/dist/module-types/dashboard/lib/route.d.ts +2 -1
  138. package/dist/module-types/dashboard/lib/use-modules.d.ts +4 -3
  139. package/dist/module-types/dashboard/module/index.d.ts +6 -5
  140. package/dist/module-types/src/agent-view.d.ts +3 -3
  141. package/dist/module-types/src/bridge-browser.d.ts +4 -4
  142. package/dist/module-types/src/built-in.d.ts +45 -14
  143. package/dist/module-types/src/client.d.ts +1 -1
  144. package/dist/module-types/src/cloud-run-state.d.ts +1 -1
  145. package/dist/module-types/src/dashboard/agent-handoff.d.ts +4 -4
  146. package/dist/module-types/src/dashboard/bridge-endpoints.d.ts +3 -3
  147. package/dist/module-types/src/dashboard/docs.d.ts +1 -1
  148. package/dist/module-types/src/dashboard/git-status.d.ts +1 -1
  149. package/dist/module-types/src/dashboard/interventions.d.ts +2 -2
  150. package/dist/module-types/src/dashboard/open-in-app.d.ts +3 -3
  151. package/dist/module-types/src/dashboard/open-questions.d.ts +2 -2
  152. package/dist/module-types/src/dashboard/projects.d.ts +6 -5
  153. package/dist/module-types/src/dashboard/pull-requests.d.ts +5 -5
  154. package/dist/module-types/src/dashboard/remote-run.d.ts +5 -5
  155. package/dist/module-types/src/dashboard/rpc-serve.d.ts +7 -4
  156. package/dist/module-types/src/dashboard/run-inbox.d.ts +2 -2
  157. package/dist/module-types/src/dashboard/start-branch.d.ts +31 -0
  158. package/dist/module-types/src/dashboard/types.d.ts +29 -3
  159. package/dist/module-types/src/dashboard-rpc/context.d.ts +2 -0
  160. package/dist/module-types/src/dashboard-rpc/control.d.ts +1 -1
  161. package/dist/module-types/src/dashboard-rpc/events.d.ts +3 -3
  162. package/dist/module-types/src/dashboard-rpc/index.d.ts +2 -1
  163. package/dist/module-types/src/dashboard-rpc/modules.d.ts +8 -6
  164. package/dist/module-types/src/dashboard-rpc/preferences.d.ts +2 -2
  165. package/dist/module-types/src/dashboard-rpc/projects.d.ts +29 -3
  166. package/dist/module-types/src/dashboard-rpc/reads.d.ts +3 -3
  167. package/dist/module-types/src/dashboard-rpc/skills.d.ts +79 -0
  168. package/dist/module-types/src/event-stream.d.ts +1 -1
  169. package/dist/module-types/src/events.d.ts +8 -8
  170. package/dist/module-types/src/index.d.ts +3 -2
  171. package/dist/module-types/src/open-choices.d.ts +2 -2
  172. package/dist/module-types/src/openagent-dir.d.ts +8 -0
  173. package/dist/module-types/src/openagent-gitignore.d.ts +11 -0
  174. package/dist/module-types/src/project-commands.d.ts +5 -1
  175. package/dist/module-types/src/project-errors.d.ts +11 -7
  176. package/dist/module-types/src/project-hooks.d.ts +12 -9
  177. package/dist/module-types/src/project-modules.d.ts +9 -7
  178. package/dist/module-types/src/project-presets.d.ts +4 -4
  179. package/dist/module-types/src/project.d.ts +6 -6
  180. package/dist/module-types/src/publish-levels.d.ts +4 -4
  181. package/dist/module-types/src/quota-boundary.d.ts +2 -2
  182. package/dist/module-types/src/registry.d.ts +13 -7
  183. package/dist/module-types/src/store/agent-checkout.d.ts +1 -1
  184. package/dist/module-types/src/store/agent-store.d.ts +6 -6
  185. package/dist/module-types/src/store/branches.d.ts +8 -8
  186. package/dist/module-types/src/store/git-host.d.ts +8 -8
  187. package/dist/module-types/src/store/provided.d.ts +3 -3
  188. package/dist/module-types/src/store/queue.d.ts +9 -9
  189. package/dist/module-types/src/store/repository.d.ts +2 -2
  190. package/dist/module-types/src/store/run-record.d.ts +10 -10
  191. package/dist/module-types/src/store/runs.d.ts +7 -7
  192. package/dist/module-types/src/store/tickets.d.ts +8 -8
  193. package/dist/module-types/src/terminal.d.ts +3 -3
  194. package/dist/open-choices.d.ts +2 -2
  195. package/dist/openagent-dir.d.ts +9 -0
  196. package/dist/openagent-dir.d.ts.map +1 -0
  197. package/dist/openagent-dir.js +9 -0
  198. package/dist/openagent-dir.js.map +1 -0
  199. package/dist/openagent-gitignore.d.ts +12 -0
  200. package/dist/openagent-gitignore.d.ts.map +1 -0
  201. package/dist/openagent-gitignore.js +19 -0
  202. package/dist/openagent-gitignore.js.map +1 -0
  203. package/dist/pick-directory.js +2 -2
  204. package/dist/pick-directory.js.map +1 -1
  205. package/dist/project-commands.d.ts +5 -1
  206. package/dist/project-commands.d.ts.map +1 -1
  207. package/dist/project-commands.js +1 -1
  208. package/dist/project-commands.js.map +1 -1
  209. package/dist/project-errors.d.ts +11 -7
  210. package/dist/project-errors.d.ts.map +1 -1
  211. package/dist/project-errors.js +10 -8
  212. package/dist/project-errors.js.map +1 -1
  213. package/dist/project-hooks.d.ts +12 -9
  214. package/dist/project-hooks.d.ts.map +1 -1
  215. package/dist/project-hooks.js +17 -14
  216. package/dist/project-hooks.js.map +1 -1
  217. package/dist/project-modules.d.ts +9 -7
  218. package/dist/project-modules.d.ts.map +1 -1
  219. package/dist/project-modules.js +7 -13
  220. package/dist/project-modules.js.map +1 -1
  221. package/dist/project-presets.d.ts +4 -4
  222. package/dist/project-presets.d.ts.map +1 -1
  223. package/dist/project-presets.js +9 -9
  224. package/dist/project-presets.js.map +1 -1
  225. package/dist/project.d.ts +6 -6
  226. package/dist/project.d.ts.map +1 -1
  227. package/dist/project.js +6 -7
  228. package/dist/project.js.map +1 -1
  229. package/dist/publish-levels.d.ts +4 -4
  230. package/dist/publish-levels.d.ts.map +1 -1
  231. package/dist/publish-levels.js +7 -5
  232. package/dist/publish-levels.js.map +1 -1
  233. package/dist/quota-boundary.d.ts +2 -2
  234. package/dist/quota-boundary.js +2 -2
  235. package/dist/registry.d.ts +13 -7
  236. package/dist/registry.d.ts.map +1 -1
  237. package/dist/registry.js +19 -3
  238. package/dist/registry.js.map +1 -1
  239. package/dist/remove-files.d.ts +24 -0
  240. package/dist/remove-files.d.ts.map +1 -0
  241. package/dist/remove-files.js +98 -0
  242. package/dist/remove-files.js.map +1 -0
  243. package/dist/store/agent-checkout.d.ts +1 -1
  244. package/dist/store/agent-checkout.js +3 -3
  245. package/dist/store/agent-checkout.js.map +1 -1
  246. package/dist/store/agent-store.d.ts +6 -6
  247. package/dist/store/agent-store.js +8 -8
  248. package/dist/store/agent-store.js.map +1 -1
  249. package/dist/store/branches.d.ts +8 -8
  250. package/dist/store/branches.d.ts.map +1 -1
  251. package/dist/store/branches.js +2 -2
  252. package/dist/store/branches.js.map +1 -1
  253. package/dist/store/git-host.d.ts +8 -8
  254. package/dist/store/git-host.d.ts.map +1 -1
  255. package/dist/store/git-host.js +3 -3
  256. package/dist/store/git-host.js.map +1 -1
  257. package/dist/store/provided.d.ts +3 -3
  258. package/dist/store/provided.d.ts.map +1 -1
  259. package/dist/store/provided.js +3 -3
  260. package/dist/store/provided.js.map +1 -1
  261. package/dist/store/queue.d.ts +9 -9
  262. package/dist/store/queue.d.ts.map +1 -1
  263. package/dist/store/queue.js +2 -2
  264. package/dist/store/queue.js.map +1 -1
  265. package/dist/store/repository.d.ts +2 -2
  266. package/dist/store/run-record.d.ts +10 -10
  267. package/dist/store/run-record.d.ts.map +1 -1
  268. package/dist/store/run-record.js +7 -7
  269. package/dist/store/run-record.js.map +1 -1
  270. package/dist/store/runs.d.ts +7 -7
  271. package/dist/store/runs.d.ts.map +1 -1
  272. package/dist/store/runs.js +3 -3
  273. package/dist/store/runs.js.map +1 -1
  274. package/dist/store/test-branches.d.ts +0 -8
  275. package/dist/store/test-branches.d.ts.map +1 -1
  276. package/dist/store/test-branches.js +0 -24
  277. package/dist/store/test-branches.js.map +1 -1
  278. package/dist/store/tickets.d.ts +8 -8
  279. package/dist/store/tickets.d.ts.map +1 -1
  280. package/dist/store/tickets.js +2 -2
  281. package/dist/store/tickets.js.map +1 -1
  282. package/dist/terminal.d.ts +3 -3
  283. package/dist/terminal.js +3 -3
  284. package/package.json +23 -20
  285. package/dist/agent-archive.d.ts +0 -35
  286. package/dist/agent-archive.d.ts.map +0 -1
  287. package/dist/agent-archive.js +0 -67
  288. package/dist/agent-archive.js.map +0 -1
  289. package/dist/agent-commit.d.ts +0 -140
  290. package/dist/agent-commit.d.ts.map +0 -1
  291. package/dist/agent-commit.js +0 -254
  292. package/dist/agent-commit.js.map +0 -1
  293. package/dist/agent-driver.d.ts +0 -28
  294. package/dist/agent-driver.d.ts.map +0 -1
  295. package/dist/agent-driver.js +0 -18
  296. package/dist/agent-driver.js.map +0 -1
  297. package/dist/agent-location.d.ts +0 -11
  298. package/dist/agent-location.d.ts.map +0 -1
  299. package/dist/agent-location.js +0 -10
  300. package/dist/agent-location.js.map +0 -1
  301. package/dist/agent-messages.d.ts +0 -55
  302. package/dist/agent-messages.d.ts.map +0 -1
  303. package/dist/agent-messages.js +0 -73
  304. package/dist/agent-messages.js.map +0 -1
  305. package/dist/agent-names.d.ts +0 -24
  306. package/dist/agent-names.d.ts.map +0 -1
  307. package/dist/agent-names.js +0 -33
  308. package/dist/agent-names.js.map +0 -1
  309. package/dist/agent-options.d.ts +0 -45
  310. package/dist/agent-options.d.ts.map +0 -1
  311. package/dist/agent-options.js +0 -83
  312. package/dist/agent-options.js.map +0 -1
  313. package/dist/agent-spec.d.ts +0 -56
  314. package/dist/agent-spec.d.ts.map +0 -1
  315. package/dist/agent-spec.js +0 -56
  316. package/dist/agent-spec.js.map +0 -1
  317. package/dist/agent-telemetry.d.ts +0 -88
  318. package/dist/agent-telemetry.d.ts.map +0 -1
  319. package/dist/agent-telemetry.js +0 -97
  320. package/dist/agent-telemetry.js.map +0 -1
  321. package/dist/agent.d.ts +0 -113
  322. package/dist/agent.d.ts.map +0 -1
  323. package/dist/agent.js +0 -168
  324. package/dist/agent.js.map +0 -1
  325. package/dist/archived-agent-patch.d.ts +0 -14
  326. package/dist/archived-agent-patch.d.ts.map +0 -1
  327. package/dist/archived-agent-patch.js +0 -22
  328. package/dist/archived-agent-patch.js.map +0 -1
  329. package/dist/auto-pm.d.ts +0 -538
  330. package/dist/auto-pm.d.ts.map +0 -1
  331. package/dist/auto-pm.js +0 -707
  332. package/dist/auto-pm.js.map +0 -1
  333. package/dist/await-gate.d.ts +0 -184
  334. package/dist/await-gate.d.ts.map +0 -1
  335. package/dist/await-gate.js +0 -252
  336. package/dist/await-gate.js.map +0 -1
  337. package/dist/branch-links-pass.d.ts +0 -15
  338. package/dist/branch-links-pass.d.ts.map +0 -1
  339. package/dist/branch-links-pass.js +0 -13
  340. package/dist/branch-links-pass.js.map +0 -1
  341. package/dist/branch-links.d.ts +0 -53
  342. package/dist/branch-links.d.ts.map +0 -1
  343. package/dist/branch-links.js +0 -94
  344. package/dist/branch-links.js.map +0 -1
  345. package/dist/branch-names.d.ts +0 -57
  346. package/dist/branch-names.d.ts.map +0 -1
  347. package/dist/branch-names.js +0 -72
  348. package/dist/branch-names.js.map +0 -1
  349. package/dist/ci-watch.d.ts +0 -123
  350. package/dist/ci-watch.d.ts.map +0 -1
  351. package/dist/ci-watch.js +0 -228
  352. package/dist/ci-watch.js.map +0 -1
  353. package/dist/claude-trust.d.ts +0 -16
  354. package/dist/claude-trust.d.ts.map +0 -1
  355. package/dist/claude-trust.js +0 -72
  356. package/dist/claude-trust.js.map +0 -1
  357. package/dist/cli-exec.d.ts +0 -36
  358. package/dist/cli-exec.d.ts.map +0 -1
  359. package/dist/cli-exec.js +0 -44
  360. package/dist/cli-exec.js.map +0 -1
  361. package/dist/closing-keywords.d.ts +0 -28
  362. package/dist/closing-keywords.d.ts.map +0 -1
  363. package/dist/closing-keywords.js +0 -49
  364. package/dist/closing-keywords.js.map +0 -1
  365. package/dist/config-layers.d.ts +0 -62
  366. package/dist/config-layers.d.ts.map +0 -1
  367. package/dist/config-layers.js +0 -70
  368. package/dist/config-layers.js.map +0 -1
  369. package/dist/config.d.ts +0 -54
  370. package/dist/config.d.ts.map +0 -1
  371. package/dist/config.js +0 -78
  372. package/dist/config.js.map +0 -1
  373. package/dist/consumption-guard.d.ts +0 -53
  374. package/dist/consumption-guard.d.ts.map +0 -1
  375. package/dist/consumption-guard.js +0 -69
  376. package/dist/consumption-guard.js.map +0 -1
  377. package/dist/control.d.ts +0 -75
  378. package/dist/control.d.ts.map +0 -1
  379. package/dist/control.js +0 -68
  380. package/dist/control.js.map +0 -1
  381. package/dist/conversation-commit.d.ts +0 -166
  382. package/dist/conversation-commit.d.ts.map +0 -1
  383. package/dist/conversation-commit.js +0 -309
  384. package/dist/conversation-commit.js.map +0 -1
  385. package/dist/conversations.d.ts +0 -93
  386. package/dist/conversations.d.ts.map +0 -1
  387. package/dist/conversations.js +0 -176
  388. package/dist/conversations.js.map +0 -1
  389. package/dist/daemon-writes.d.ts +0 -33
  390. package/dist/daemon-writes.d.ts.map +0 -1
  391. package/dist/daemon-writes.js +0 -45
  392. package/dist/daemon-writes.js.map +0 -1
  393. package/dist/dashboard/agent-tree.d.ts +0 -106
  394. package/dist/dashboard/agent-tree.d.ts.map +0 -1
  395. package/dist/dashboard/agent-tree.js +0 -180
  396. package/dist/dashboard/agent-tree.js.map +0 -1
  397. package/dist/dashboard/browser-proxy.d.ts +0 -41
  398. package/dist/dashboard/browser-proxy.d.ts.map +0 -1
  399. package/dist/dashboard/browser-proxy.js +0 -96
  400. package/dist/dashboard/browser-proxy.js.map +0 -1
  401. package/dist/dashboard/discord-webhook.d.ts +0 -17
  402. package/dist/dashboard/discord-webhook.d.ts.map +0 -1
  403. package/dist/dashboard/discord-webhook.js +0 -36
  404. package/dist/dashboard/discord-webhook.js.map +0 -1
  405. package/dist/dashboard/file-diff.d.ts +0 -67
  406. package/dist/dashboard/file-diff.d.ts.map +0 -1
  407. package/dist/dashboard/file-diff.js +0 -132
  408. package/dist/dashboard/file-diff.js.map +0 -1
  409. package/dist/dashboard/file-read.d.ts +0 -42
  410. package/dist/dashboard/file-read.d.ts.map +0 -1
  411. package/dist/dashboard/file-read.js +0 -69
  412. package/dist/dashboard/file-read.js.map +0 -1
  413. package/dist/dashboard/file-status.d.ts +0 -21
  414. package/dist/dashboard/file-status.d.ts.map +0 -1
  415. package/dist/dashboard/file-status.js +0 -37
  416. package/dist/dashboard/file-status.js.map +0 -1
  417. package/dist/dashboard/gh.d.ts +0 -131
  418. package/dist/dashboard/gh.d.ts.map +0 -1
  419. package/dist/dashboard/gh.js +0 -150
  420. package/dist/dashboard/gh.js.map +0 -1
  421. package/dist/dashboard/github.d.ts +0 -11
  422. package/dist/dashboard/github.d.ts.map +0 -1
  423. package/dist/dashboard/github.js +0 -33
  424. package/dist/dashboard/github.js.map +0 -1
  425. package/dist/dashboard/run-handoff.d.ts +0 -311
  426. package/dist/dashboard/run-handoff.d.ts.map +0 -1
  427. package/dist/dashboard/run-handoff.js +0 -485
  428. package/dist/dashboard/run-handoff.js.map +0 -1
  429. package/dist/dashboard/scheduler-state.d.ts +0 -73
  430. package/dist/dashboard/scheduler-state.d.ts.map +0 -1
  431. package/dist/dashboard/scheduler-state.js +0 -120
  432. package/dist/dashboard/scheduler-state.js.map +0 -1
  433. package/dist/dashboard/subagent-settings.d.ts +0 -26
  434. package/dist/dashboard/subagent-settings.d.ts.map +0 -1
  435. package/dist/dashboard/subagent-settings.js +0 -52
  436. package/dist/dashboard/subagent-settings.js.map +0 -1
  437. package/dist/dashboard/telefunc-serve.d.ts +0 -118
  438. package/dist/dashboard/telefunc-serve.d.ts.map +0 -1
  439. package/dist/dashboard/telefunc-serve.js +0 -108
  440. package/dist/dashboard/telefunc-serve.js.map +0 -1
  441. package/dist/dashboard/tickets.d.ts +0 -29
  442. package/dist/dashboard/tickets.d.ts.map +0 -1
  443. package/dist/dashboard/tickets.js +0 -38
  444. package/dist/dashboard/tickets.js.map +0 -1
  445. package/dist/dashboard/widget-serve.d.ts +0 -15
  446. package/dist/dashboard/widget-serve.d.ts.map +0 -1
  447. package/dist/dashboard/widget-serve.js +0 -45
  448. package/dist/dashboard/widget-serve.js.map +0 -1
  449. package/dist/dashboard-bundle/assets/main-B3HghPQy.css +0 -2
  450. package/dist/dashboard-bundle/assets/main-om0WOAku.js +0 -140
  451. package/dist/dashboard-client/assets/chunks/chunk-BF9pJudf.js +0 -4
  452. package/dist/dashboard-client/assets/entries/entry-client-routing.CT1e9F0o.js +0 -1
  453. package/dist/dashboard-client/assets/entries/pages_index.CkW5JQ8X.js +0 -428
  454. package/dist/dashboard-client/assets/static/layouts_tailwind-00e65532.8OjKGAbA.css +0 -2
  455. package/dist/dashboard-client/index.html +0 -27
  456. package/dist/dashboard-client/index.pageContext.json +0 -1
  457. package/dist/dashboard-client/logo-animated.svg +0 -34
  458. package/dist/dashboard-client/logo.svg +0 -16
  459. package/dist/dashboard-rpc/control.telefunc.d.ts +0 -176
  460. package/dist/dashboard-rpc/control.telefunc.d.ts.map +0 -1
  461. package/dist/dashboard-rpc/control.telefunc.js +0 -373
  462. package/dist/dashboard-rpc/control.telefunc.js.map +0 -1
  463. package/dist/dashboard-rpc/devices.telefunc.d.ts +0 -9
  464. package/dist/dashboard-rpc/devices.telefunc.d.ts.map +0 -1
  465. package/dist/dashboard-rpc/devices.telefunc.js +0 -12
  466. package/dist/dashboard-rpc/devices.telefunc.js.map +0 -1
  467. package/dist/dashboard-rpc/events.telefunc.d.ts +0 -36
  468. package/dist/dashboard-rpc/events.telefunc.d.ts.map +0 -1
  469. package/dist/dashboard-rpc/events.telefunc.js +0 -70
  470. package/dist/dashboard-rpc/events.telefunc.js.map +0 -1
  471. package/dist/dashboard-rpc/preferences.telefunc.d.ts +0 -97
  472. package/dist/dashboard-rpc/preferences.telefunc.d.ts.map +0 -1
  473. package/dist/dashboard-rpc/preferences.telefunc.js +0 -157
  474. package/dist/dashboard-rpc/preferences.telefunc.js.map +0 -1
  475. package/dist/dashboard-rpc/projects.telefunc.d.ts +0 -56
  476. package/dist/dashboard-rpc/projects.telefunc.d.ts.map +0 -1
  477. package/dist/dashboard-rpc/projects.telefunc.js +0 -96
  478. package/dist/dashboard-rpc/projects.telefunc.js.map +0 -1
  479. package/dist/dashboard-rpc/quota.telefunc.d.ts +0 -40
  480. package/dist/dashboard-rpc/quota.telefunc.d.ts.map +0 -1
  481. package/dist/dashboard-rpc/quota.telefunc.js +0 -84
  482. package/dist/dashboard-rpc/quota.telefunc.js.map +0 -1
  483. package/dist/dashboard-rpc/reads.telefunc.d.ts +0 -197
  484. package/dist/dashboard-rpc/reads.telefunc.d.ts.map +0 -1
  485. package/dist/dashboard-rpc/reads.telefunc.js +0 -403
  486. package/dist/dashboard-rpc/reads.telefunc.js.map +0 -1
  487. package/dist/dashboard-rpc/register.d.ts +0 -18
  488. package/dist/dashboard-rpc/register.d.ts.map +0 -1
  489. package/dist/dashboard-rpc/register.js +0 -66
  490. package/dist/dashboard-rpc/register.js.map +0 -1
  491. package/dist/dashboard-rpc/relay-run.d.ts +0 -9
  492. package/dist/dashboard-rpc/relay-run.d.ts.map +0 -1
  493. package/dist/dashboard-rpc/relay-run.js +0 -21
  494. package/dist/dashboard-rpc/relay-run.js.map +0 -1
  495. package/dist/dashboard-rpc/stream-channel.d.ts +0 -23
  496. package/dist/dashboard-rpc/stream-channel.d.ts.map +0 -1
  497. package/dist/dashboard-rpc/stream-channel.js +0 -52
  498. package/dist/dashboard-rpc/stream-channel.js.map +0 -1
  499. package/dist/dashboard-rpc/subagents.d.ts +0 -12
  500. package/dist/dashboard-rpc/subagents.d.ts.map +0 -1
  501. package/dist/dashboard-rpc/subagents.js +0 -13
  502. package/dist/dashboard-rpc/subagents.js.map +0 -1
  503. package/dist/dashboard-rpc/widgets.d.ts +0 -33
  504. package/dist/dashboard-rpc/widgets.d.ts.map +0 -1
  505. package/dist/dashboard-rpc/widgets.js +0 -54
  506. package/dist/dashboard-rpc/widgets.js.map +0 -1
  507. package/dist/data-branch.d.ts +0 -120
  508. package/dist/data-branch.d.ts.map +0 -1
  509. package/dist/data-branch.js +0 -319
  510. package/dist/data-branch.js.map +0 -1
  511. package/dist/discord/bot.d.ts +0 -61
  512. package/dist/discord/bot.d.ts.map +0 -1
  513. package/dist/discord/bot.js +0 -94
  514. package/dist/discord/bot.js.map +0 -1
  515. package/dist/discord/gateway.d.ts +0 -137
  516. package/dist/discord/gateway.d.ts.map +0 -1
  517. package/dist/discord/gateway.js +0 -315
  518. package/dist/discord/gateway.js.map +0 -1
  519. package/dist/discord/live-run.d.ts +0 -31
  520. package/dist/discord/live-run.d.ts.map +0 -1
  521. package/dist/discord/live-run.js +0 -57
  522. package/dist/discord/live-run.js.map +0 -1
  523. package/dist/discord/reply-mirror.d.ts +0 -83
  524. package/dist/discord/reply-mirror.d.ts.map +0 -1
  525. package/dist/discord/reply-mirror.js +0 -84
  526. package/dist/discord/reply-mirror.js.map +0 -1
  527. package/dist/discord/rest.d.ts +0 -20
  528. package/dist/discord/rest.d.ts.map +0 -1
  529. package/dist/discord/rest.js +0 -41
  530. package/dist/discord/rest.js.map +0 -1
  531. package/dist/discord/routing.d.ts +0 -81
  532. package/dist/discord/routing.d.ts.map +0 -1
  533. package/dist/discord/routing.js +0 -91
  534. package/dist/discord/routing.js.map +0 -1
  535. package/dist/discord-credentials-store.d.ts +0 -14
  536. package/dist/discord-credentials-store.d.ts.map +0 -1
  537. package/dist/discord-credentials-store.js +0 -53
  538. package/dist/discord-credentials-store.js.map +0 -1
  539. package/dist/discord-credentials.d.ts +0 -80
  540. package/dist/discord-credentials.d.ts.map +0 -1
  541. package/dist/discord-credentials.js +0 -55
  542. package/dist/discord-credentials.js.map +0 -1
  543. package/dist/driver/actions-zip.d.ts +0 -2
  544. package/dist/driver/actions-zip.d.ts.map +0 -1
  545. package/dist/driver/actions-zip.js +0 -70
  546. package/dist/driver/actions-zip.js.map +0 -1
  547. package/dist/driver/actions.d.ts +0 -130
  548. package/dist/driver/actions.d.ts.map +0 -1
  549. package/dist/driver/actions.js +0 -261
  550. package/dist/driver/actions.js.map +0 -1
  551. package/dist/driver/agent-cli.d.ts +0 -57
  552. package/dist/driver/agent-cli.d.ts.map +0 -1
  553. package/dist/driver/agent-cli.js +0 -134
  554. package/dist/driver/agent-cli.js.map +0 -1
  555. package/dist/driver/child-registry.d.ts +0 -25
  556. package/dist/driver/child-registry.d.ts.map +0 -1
  557. package/dist/driver/child-registry.js +0 -53
  558. package/dist/driver/child-registry.js.map +0 -1
  559. package/dist/driver/claude-code-quota.d.ts +0 -40
  560. package/dist/driver/claude-code-quota.d.ts.map +0 -1
  561. package/dist/driver/claude-code-quota.js +0 -144
  562. package/dist/driver/claude-code-quota.js.map +0 -1
  563. package/dist/driver/claude-code.d.ts +0 -104
  564. package/dist/driver/claude-code.d.ts.map +0 -1
  565. package/dist/driver/claude-code.js +0 -314
  566. package/dist/driver/claude-code.js.map +0 -1
  567. package/dist/driver/cli-session.d.ts +0 -57
  568. package/dist/driver/cli-session.d.ts.map +0 -1
  569. package/dist/driver/cli-session.js +0 -134
  570. package/dist/driver/cli-session.js.map +0 -1
  571. package/dist/driver/cloud.d.ts +0 -109
  572. package/dist/driver/cloud.d.ts.map +0 -1
  573. package/dist/driver/cloud.js +0 -232
  574. package/dist/driver/cloud.js.map +0 -1
  575. package/dist/driver/codex.d.ts +0 -99
  576. package/dist/driver/codex.d.ts.map +0 -1
  577. package/dist/driver/codex.js +0 -190
  578. package/dist/driver/codex.js.map +0 -1
  579. package/dist/driver/fake.d.ts +0 -54
  580. package/dist/driver/fake.d.ts.map +0 -1
  581. package/dist/driver/fake.js +0 -73
  582. package/dist/driver/fake.js.map +0 -1
  583. package/dist/driver/index.d.ts +0 -10
  584. package/dist/driver/index.d.ts.map +0 -1
  585. package/dist/driver/index.js +0 -14
  586. package/dist/driver/index.js.map +0 -1
  587. package/dist/driver/session-support.d.ts +0 -14
  588. package/dist/driver/session-support.d.ts.map +0 -1
  589. package/dist/driver/session-support.js +0 -37
  590. package/dist/driver/session-support.js.map +0 -1
  591. package/dist/driver/types.d.ts +0 -310
  592. package/dist/driver/types.d.ts.map +0 -1
  593. package/dist/driver/types.js +0 -5
  594. package/dist/driver/types.js.map +0 -1
  595. package/dist/driver-cli.d.ts +0 -61
  596. package/dist/driver-cli.d.ts.map +0 -1
  597. package/dist/driver-cli.js +0 -66
  598. package/dist/driver-cli.js.map +0 -1
  599. package/dist/fake-script.d.ts +0 -15
  600. package/dist/fake-script.d.ts.map +0 -1
  601. package/dist/fake-script.js +0 -58
  602. package/dist/fake-script.js.map +0 -1
  603. package/dist/framework-dir.d.ts +0 -11
  604. package/dist/framework-dir.d.ts.map +0 -1
  605. package/dist/framework-dir.js +0 -11
  606. package/dist/framework-dir.js.map +0 -1
  607. package/dist/framework-gitignore.d.ts +0 -12
  608. package/dist/framework-gitignore.d.ts.map +0 -1
  609. package/dist/framework-gitignore.js +0 -19
  610. package/dist/framework-gitignore.js.map +0 -1
  611. package/dist/gate-keepalive.d.ts +0 -47
  612. package/dist/gate-keepalive.d.ts.map +0 -1
  613. package/dist/gate-keepalive.js +0 -62
  614. package/dist/gate-keepalive.js.map +0 -1
  615. package/dist/git-exclude.d.ts +0 -11
  616. package/dist/git-exclude.d.ts.map +0 -1
  617. package/dist/git-exclude.js +0 -23
  618. package/dist/git-exclude.js.map +0 -1
  619. package/dist/handoff-level.d.ts +0 -56
  620. package/dist/handoff-level.d.ts.map +0 -1
  621. package/dist/handoff-level.js +0 -62
  622. package/dist/handoff-level.js.map +0 -1
  623. package/dist/host-exec.d.ts +0 -21
  624. package/dist/host-exec.d.ts.map +0 -1
  625. package/dist/host-exec.js +0 -30
  626. package/dist/host-exec.js.map +0 -1
  627. package/dist/layout.d.ts +0 -41
  628. package/dist/layout.d.ts.map +0 -1
  629. package/dist/layout.js +0 -69
  630. package/dist/layout.js.map +0 -1
  631. package/dist/logs.d.ts +0 -73
  632. package/dist/logs.d.ts.map +0 -1
  633. package/dist/logs.js +0 -218
  634. package/dist/logs.js.map +0 -1
  635. package/dist/maintenance.d.ts +0 -90
  636. package/dist/maintenance.d.ts.map +0 -1
  637. package/dist/maintenance.js +0 -141
  638. package/dist/maintenance.js.map +0 -1
  639. package/dist/merged-worktrees.d.ts +0 -74
  640. package/dist/merged-worktrees.d.ts.map +0 -1
  641. package/dist/merged-worktrees.js +0 -84
  642. package/dist/merged-worktrees.js.map +0 -1
  643. package/dist/module-types/src/dashboard/agent-tree.d.ts +0 -105
  644. package/dist/module-types/src/dashboard/file-diff.d.ts +0 -66
  645. package/dist/module-types/src/dashboard/file-read.d.ts +0 -41
  646. package/dist/module-types/src/dashboard/file-status.d.ts +0 -20
  647. package/dist/module-types/src/dashboard/scheduler-state.d.ts +0 -72
  648. package/dist/module-types/src/dashboard/subagent-settings.d.ts +0 -25
  649. package/dist/module-types/src/dashboard-rpc/subagents.d.ts +0 -11
  650. package/dist/module-types/src/framework-dir.d.ts +0 -10
  651. package/dist/module-types/src/framework-gitignore.d.ts +0 -11
  652. package/dist/module-types/src/subagent-settings.d.ts +0 -26
  653. package/dist/on-before-mergeable-prompt.d.ts +0 -32
  654. package/dist/on-before-mergeable-prompt.d.ts.map +0 -1
  655. package/dist/on-before-mergeable-prompt.js +0 -26
  656. package/dist/on-before-mergeable-prompt.js.map +0 -1
  657. package/dist/planned-quick-wins.d.ts +0 -102
  658. package/dist/planned-quick-wins.d.ts.map +0 -1
  659. package/dist/planned-quick-wins.js +0 -171
  660. package/dist/planned-quick-wins.js.map +0 -1
  661. package/dist/preflight.d.ts +0 -77
  662. package/dist/preflight.d.ts.map +0 -1
  663. package/dist/preflight.js +0 -91
  664. package/dist/preflight.js.map +0 -1
  665. package/dist/preset-catalog.d.ts +0 -98
  666. package/dist/preset-catalog.d.ts.map +0 -1
  667. package/dist/preset-catalog.js +0 -129
  668. package/dist/preset-catalog.js.map +0 -1
  669. package/dist/preset-prompt.d.ts +0 -81
  670. package/dist/preset-prompt.d.ts.map +0 -1
  671. package/dist/preset-prompt.js +0 -51
  672. package/dist/preset-prompt.js.map +0 -1
  673. package/dist/preset-registry.d.ts +0 -32
  674. package/dist/preset-registry.d.ts.map +0 -1
  675. package/dist/preset-registry.js +0 -35
  676. package/dist/preset-registry.js.map +0 -1
  677. package/dist/presets.d.ts +0 -20
  678. package/dist/presets.d.ts.map +0 -1
  679. package/dist/presets.js +0 -33
  680. package/dist/presets.js.map +0 -1
  681. package/dist/preview-runtime.d.ts +0 -33
  682. package/dist/preview-runtime.d.ts.map +0 -1
  683. package/dist/preview-runtime.js +0 -96
  684. package/dist/preview-runtime.js.map +0 -1
  685. package/dist/preview.d.ts +0 -78
  686. package/dist/preview.d.ts.map +0 -1
  687. package/dist/preview.js +0 -301
  688. package/dist/preview.js.map +0 -1
  689. package/dist/project-widgets.d.ts +0 -46
  690. package/dist/project-widgets.d.ts.map +0 -1
  691. package/dist/project-widgets.js +0 -93
  692. package/dist/project-widgets.js.map +0 -1
  693. package/dist/prompt-run.d.ts +0 -104
  694. package/dist/prompt-run.d.ts.map +0 -1
  695. package/dist/prompt-run.js +0 -112
  696. package/dist/prompt-run.js.map +0 -1
  697. package/dist/prompt-template.d.ts +0 -16
  698. package/dist/prompt-template.d.ts.map +0 -1
  699. package/dist/prompt-template.js +0 -56
  700. package/dist/prompt-template.js.map +0 -1
  701. package/dist/prompts.generated.d.ts +0 -53
  702. package/dist/prompts.generated.d.ts.map +0 -1
  703. package/dist/prompts.generated.js +0 -55
  704. package/dist/prompts.generated.js.map +0 -1
  705. package/dist/queue-promote.d.ts +0 -70
  706. package/dist/queue-promote.d.ts.map +0 -1
  707. package/dist/queue-promote.js +0 -118
  708. package/dist/queue-promote.js.map +0 -1
  709. package/dist/relay.d.ts +0 -84
  710. package/dist/relay.d.ts.map +0 -1
  711. package/dist/relay.js +0 -199
  712. package/dist/relay.js.map +0 -1
  713. package/dist/repos-directory.d.ts +0 -19
  714. package/dist/repos-directory.d.ts.map +0 -1
  715. package/dist/repos-directory.js +0 -23
  716. package/dist/repos-directory.js.map +0 -1
  717. package/dist/retired-project-settings.d.ts +0 -43
  718. package/dist/retired-project-settings.d.ts.map +0 -1
  719. package/dist/retired-project-settings.js +0 -125
  720. package/dist/retired-project-settings.js.map +0 -1
  721. package/dist/routine-locks.d.ts +0 -53
  722. package/dist/routine-locks.d.ts.map +0 -1
  723. package/dist/routine-locks.js +0 -125
  724. package/dist/routine-locks.js.map +0 -1
  725. package/dist/run-driver.d.ts +0 -26
  726. package/dist/run-driver.d.ts.map +0 -1
  727. package/dist/run-driver.js +0 -17
  728. package/dist/run-driver.js.map +0 -1
  729. package/dist/run-locks.d.ts +0 -3
  730. package/dist/run-locks.d.ts.map +0 -1
  731. package/dist/run-locks.js +0 -39
  732. package/dist/run-locks.js.map +0 -1
  733. package/dist/run-messages.d.ts +0 -64
  734. package/dist/run-messages.d.ts.map +0 -1
  735. package/dist/run-messages.js +0 -76
  736. package/dist/run-messages.js.map +0 -1
  737. package/dist/run-options.d.ts +0 -53
  738. package/dist/run-options.d.ts.map +0 -1
  739. package/dist/run-options.js +0 -110
  740. package/dist/run-options.js.map +0 -1
  741. package/dist/run-telemetry.d.ts +0 -115
  742. package/dist/run-telemetry.d.ts.map +0 -1
  743. package/dist/run-telemetry.js +0 -137
  744. package/dist/run-telemetry.js.map +0 -1
  745. package/dist/run-view.d.ts +0 -109
  746. package/dist/run-view.d.ts.map +0 -1
  747. package/dist/run-view.js +0 -118
  748. package/dist/run-view.js.map +0 -1
  749. package/dist/run.d.ts +0 -261
  750. package/dist/run.d.ts.map +0 -1
  751. package/dist/run.js +0 -420
  752. package/dist/run.js.map +0 -1
  753. package/dist/runtime-keys.d.ts +0 -17
  754. package/dist/runtime-keys.d.ts.map +0 -1
  755. package/dist/runtime-keys.js +0 -17
  756. package/dist/runtime-keys.js.map +0 -1
  757. package/dist/sandbox.d.ts +0 -27
  758. package/dist/sandbox.d.ts.map +0 -1
  759. package/dist/sandbox.js +0 -63
  760. package/dist/sandbox.js.map +0 -1
  761. package/dist/session-link.d.ts +0 -19
  762. package/dist/session-link.d.ts.map +0 -1
  763. package/dist/session-link.js +0 -26
  764. package/dist/session-link.js.map +0 -1
  765. package/dist/sessions.d.ts +0 -77
  766. package/dist/sessions.d.ts.map +0 -1
  767. package/dist/sessions.js +0 -146
  768. package/dist/sessions.js.map +0 -1
  769. package/dist/spike-locks.d.ts +0 -75
  770. package/dist/spike-locks.d.ts.map +0 -1
  771. package/dist/spike-locks.js +0 -208
  772. package/dist/spike-locks.js.map +0 -1
  773. package/dist/stale-branch.d.ts +0 -21
  774. package/dist/stale-branch.d.ts.map +0 -1
  775. package/dist/stale-branch.js +0 -32
  776. package/dist/stale-branch.js.map +0 -1
  777. package/dist/steps.d.ts +0 -9
  778. package/dist/steps.d.ts.map +0 -1
  779. package/dist/steps.js +0 -13
  780. package/dist/steps.js.map +0 -1
  781. package/dist/store/forge.d.ts +0 -110
  782. package/dist/store/forge.d.ts.map +0 -1
  783. package/dist/store/forge.js +0 -97
  784. package/dist/store/forge.js.map +0 -1
  785. package/dist/store/run-checkout.d.ts +0 -33
  786. package/dist/store/run-checkout.d.ts.map +0 -1
  787. package/dist/store/run-checkout.js +0 -59
  788. package/dist/store/run-checkout.js.map +0 -1
  789. package/dist/store/run-store.d.ts +0 -501
  790. package/dist/store/run-store.d.ts.map +0 -1
  791. package/dist/store/run-store.js +0 -806
  792. package/dist/store/run-store.js.map +0 -1
  793. package/dist/store/suspend.d.ts +0 -38
  794. package/dist/store/suspend.d.ts.map +0 -1
  795. package/dist/store/suspend.js +0 -45
  796. package/dist/store/suspend.js.map +0 -1
  797. package/dist/store/worktree-deps.d.ts +0 -30
  798. package/dist/store/worktree-deps.d.ts.map +0 -1
  799. package/dist/store/worktree-deps.js +0 -115
  800. package/dist/store/worktree-deps.js.map +0 -1
  801. package/dist/store/worktree.d.ts +0 -194
  802. package/dist/store/worktree.d.ts.map +0 -1
  803. package/dist/store/worktree.js +0 -331
  804. package/dist/store/worktree.js.map +0 -1
  805. package/dist/subagent-settings.d.ts +0 -27
  806. package/dist/subagent-settings.d.ts.map +0 -1
  807. package/dist/subagent-settings.js +0 -35
  808. package/dist/subagent-settings.js.map +0 -1
  809. package/dist/system-prompt-file.d.ts +0 -18
  810. package/dist/system-prompt-file.d.ts.map +0 -1
  811. package/dist/system-prompt-file.js +0 -28
  812. package/dist/system-prompt-file.js.map +0 -1
  813. package/dist/system-prompt.d.ts +0 -148
  814. package/dist/system-prompt.d.ts.map +0 -1
  815. package/dist/system-prompt.js +0 -170
  816. package/dist/system-prompt.js.map +0 -1
  817. package/dist/target-driver.d.ts +0 -28
  818. package/dist/target-driver.d.ts.map +0 -1
  819. package/dist/target-driver.js +0 -18
  820. package/dist/target-driver.js.map +0 -1
  821. package/dist/ticket-locks.d.ts +0 -61
  822. package/dist/ticket-locks.d.ts.map +0 -1
  823. package/dist/ticket-locks.js +0 -137
  824. package/dist/ticket-locks.js.map +0 -1
  825. package/dist/tickets-file.d.ts +0 -7
  826. package/dist/tickets-file.d.ts.map +0 -1
  827. package/dist/tickets-file.js +0 -21
  828. package/dist/tickets-file.js.map +0 -1
  829. package/dist/tickets.d.ts +0 -18
  830. package/dist/tickets.d.ts.map +0 -1
  831. package/dist/tickets.js +0 -23
  832. package/dist/tickets.js.map +0 -1
  833. package/dist/todo-loop.d.ts +0 -110
  834. package/dist/todo-loop.d.ts.map +0 -1
  835. package/dist/todo-loop.js +0 -175
  836. package/dist/todo-loop.js.map +0 -1
  837. package/dist/turn-gate.d.ts +0 -144
  838. package/dist/turn-gate.d.ts.map +0 -1
  839. package/dist/turn-gate.js +0 -217
  840. package/dist/turn-gate.js.map +0 -1
  841. package/dist/usage.d.ts +0 -32
  842. package/dist/usage.d.ts.map +0 -1
  843. package/dist/usage.js +0 -46
  844. package/dist/usage.js.map +0 -1
  845. package/dist/widget-types/dashboard/components/LinkActions.d.ts +0 -26
  846. package/dist/widget-types/dashboard/components/Markdown.d.ts +0 -4
  847. package/dist/widget-types/dashboard/components/StartAgentButton.d.ts +0 -39
  848. package/dist/widget-types/dashboard/components/ui/badge.d.ts +0 -2
  849. package/dist/widget-types/dashboard/components/ui/button.d.ts +0 -10
  850. package/dist/widget-types/dashboard/components/ui/card.d.ts +0 -5
  851. package/dist/widget-types/dashboard/components/ui/checkbox.d.ts +0 -7
  852. package/dist/widget-types/dashboard/components/ui/dropdown-menu.d.ts +0 -16
  853. package/dist/widget-types/dashboard/components/ui/input.d.ts +0 -2
  854. package/dist/widget-types/dashboard/components/ui/option-label.d.ts +0 -4
  855. package/dist/widget-types/dashboard/components/ui/popover.d.ts +0 -8
  856. package/dist/widget-types/dashboard/components/ui/scroll-area.d.ts +0 -10
  857. package/dist/widget-types/dashboard/components/ui/separator.d.ts +0 -3
  858. package/dist/widget-types/dashboard/components/ui/skeleton.d.ts +0 -2
  859. package/dist/widget-types/dashboard/components/ui/slider.d.ts +0 -9
  860. package/dist/widget-types/dashboard/components/ui/tooltip.d.ts +0 -11
  861. package/dist/widget-types/dashboard/lib/draft-handoff.d.ts +0 -15
  862. package/dist/widget-types/dashboard/lib/format-date.d.ts +0 -51
  863. package/dist/widget-types/dashboard/lib/host-services.d.ts +0 -12
  864. package/dist/widget-types/dashboard/lib/route.d.ts +0 -24
  865. package/dist/widget-types/dashboard/lib/rpc.d.ts +0 -31
  866. package/dist/widget-types/dashboard/lib/use-action.d.ts +0 -25
  867. package/dist/widget-types/dashboard/lib/use-async.d.ts +0 -39
  868. package/dist/widget-types/dashboard/lib/use-widgets.d.ts +0 -42
  869. package/dist/widget-types/dashboard/lib/utils.d.ts +0 -3
  870. package/dist/widget-types/dashboard/rpc/widgets.d.ts +0 -4
  871. package/dist/widget-types/dashboard/widget/index.d.ts +0 -207
  872. package/dist/widget-types/src/agent-id.d.ts +0 -12
  873. package/dist/widget-types/src/agent-locks.d.ts +0 -2
  874. package/dist/widget-types/src/agent-view.d.ts +0 -38
  875. package/dist/widget-types/src/bridge-browser.d.ts +0 -216
  876. package/dist/widget-types/src/browser-stream.d.ts +0 -19
  877. package/dist/widget-types/src/browser.d.ts +0 -15
  878. package/dist/widget-types/src/cli-exec.d.ts +0 -35
  879. package/dist/widget-types/src/cloud-run-state.d.ts +0 -26
  880. package/dist/widget-types/src/dashboard/activity.d.ts +0 -40
  881. package/dist/widget-types/src/dashboard/agent-handoff.d.ts +0 -211
  882. package/dist/widget-types/src/dashboard/agent-tree.d.ts +0 -105
  883. package/dist/widget-types/src/dashboard/bridge-endpoints.d.ts +0 -157
  884. package/dist/widget-types/src/dashboard/bridge-question.d.ts +0 -32
  885. package/dist/widget-types/src/dashboard/bridge-store.d.ts +0 -178
  886. package/dist/widget-types/src/dashboard/cache.d.ts +0 -46
  887. package/dist/widget-types/src/dashboard/content-type.d.ts +0 -2
  888. package/dist/widget-types/src/dashboard/dashboard.d.ts +0 -37
  889. package/dist/widget-types/src/dashboard/discord-webhook.d.ts +0 -16
  890. package/dist/widget-types/src/dashboard/docs.d.ts +0 -38
  891. package/dist/widget-types/src/dashboard/file-diff.d.ts +0 -66
  892. package/dist/widget-types/src/dashboard/file-read.d.ts +0 -41
  893. package/dist/widget-types/src/dashboard/file-status.d.ts +0 -20
  894. package/dist/widget-types/src/dashboard/gh.d.ts +0 -130
  895. package/dist/widget-types/src/dashboard/git-status.d.ts +0 -32
  896. package/dist/widget-types/src/dashboard/github.d.ts +0 -10
  897. package/dist/widget-types/src/dashboard/http.d.ts +0 -28
  898. package/dist/widget-types/src/dashboard/interventions.d.ts +0 -66
  899. package/dist/widget-types/src/dashboard/keys.d.ts +0 -30
  900. package/dist/widget-types/src/dashboard/models.d.ts +0 -24
  901. package/dist/widget-types/src/dashboard/open-in-app.d.ts +0 -42
  902. package/dist/widget-types/src/dashboard/open-questions.d.ts +0 -52
  903. package/dist/widget-types/src/dashboard/overview.d.ts +0 -77
  904. package/dist/widget-types/src/dashboard/projects.d.ts +0 -89
  905. package/dist/widget-types/src/dashboard/pull-requests.d.ts +0 -126
  906. package/dist/widget-types/src/dashboard/queue.d.ts +0 -16
  907. package/dist/widget-types/src/dashboard/quota.d.ts +0 -59
  908. package/dist/widget-types/src/dashboard/remote-run.d.ts +0 -94
  909. package/dist/widget-types/src/dashboard/rpc-serve.d.ts +0 -102
  910. package/dist/widget-types/src/dashboard/run-inbox.d.ts +0 -30
  911. package/dist/widget-types/src/dashboard/scheduler-state.d.ts +0 -64
  912. package/dist/widget-types/src/dashboard/tickets.d.ts +0 -28
  913. package/dist/widget-types/src/dashboard/types.d.ts +0 -99
  914. package/dist/widget-types/src/dashboard/widget-serve.d.ts +0 -14
  915. package/dist/widget-types/src/dashboard-rpc/context.d.ts +0 -53
  916. package/dist/widget-types/src/dashboard-rpc/control.d.ts +0 -108
  917. package/dist/widget-types/src/dashboard-rpc/devices.d.ts +0 -8
  918. package/dist/widget-types/src/dashboard-rpc/events-tail.d.ts +0 -53
  919. package/dist/widget-types/src/dashboard-rpc/events.d.ts +0 -29
  920. package/dist/widget-types/src/dashboard-rpc/index.d.ts +0 -28
  921. package/dist/widget-types/src/dashboard-rpc/models.d.ts +0 -3
  922. package/dist/widget-types/src/dashboard-rpc/preferences.d.ts +0 -40
  923. package/dist/widget-types/src/dashboard-rpc/projects.d.ts +0 -54
  924. package/dist/widget-types/src/dashboard-rpc/quota.d.ts +0 -26
  925. package/dist/widget-types/src/dashboard-rpc/reads.d.ts +0 -227
  926. package/dist/widget-types/src/dashboard-rpc/relay-agent.d.ts +0 -8
  927. package/dist/widget-types/src/dashboard-rpc/stream-forward.d.ts +0 -16
  928. package/dist/widget-types/src/dashboard-rpc/widgets.d.ts +0 -32
  929. package/dist/widget-types/src/discord-credentials.d.ts +0 -79
  930. package/dist/widget-types/src/driver-names.d.ts +0 -21
  931. package/dist/widget-types/src/error-message.d.ts +0 -7
  932. package/dist/widget-types/src/event-stream.d.ts +0 -32
  933. package/dist/widget-types/src/events.d.ts +0 -235
  934. package/dist/widget-types/src/framework-dir.d.ts +0 -10
  935. package/dist/widget-types/src/framework-gitignore.d.ts +0 -11
  936. package/dist/widget-types/src/index.d.ts +0 -42
  937. package/dist/widget-types/src/jsonl-tail.d.ts +0 -54
  938. package/dist/widget-types/src/loopback-host.d.ts +0 -19
  939. package/dist/widget-types/src/node-fs.d.ts +0 -32
  940. package/dist/widget-types/src/open-choices.d.ts +0 -14
  941. package/dist/widget-types/src/pick-directory.d.ts +0 -29
  942. package/dist/widget-types/src/preference-defaults.d.ts +0 -53
  943. package/dist/widget-types/src/project-commands.d.ts +0 -23
  944. package/dist/widget-types/src/project-errors.d.ts +0 -43
  945. package/dist/widget-types/src/project-hooks.d.ts +0 -133
  946. package/dist/widget-types/src/project-presets.d.ts +0 -29
  947. package/dist/widget-types/src/project-widgets.d.ts +0 -45
  948. package/dist/widget-types/src/project.d.ts +0 -28
  949. package/dist/widget-types/src/quota-boundary.d.ts +0 -115
  950. package/dist/widget-types/src/quota-poller.d.ts +0 -82
  951. package/dist/widget-types/src/registry.d.ts +0 -210
  952. package/dist/widget-types/src/store/agent-checkout.d.ts +0 -46
  953. package/dist/widget-types/src/store/agent-store.d.ts +0 -237
  954. package/dist/widget-types/src/store/branches.d.ts +0 -133
  955. package/dist/widget-types/src/store/forge.d.ts +0 -109
  956. package/dist/widget-types/src/store/git-host.d.ts +0 -111
  957. package/dist/widget-types/src/store/index.d.ts +0 -9
  958. package/dist/widget-types/src/store/provided.d.ts +0 -16
  959. package/dist/widget-types/src/store/queue.d.ts +0 -45
  960. package/dist/widget-types/src/store/run-record.d.ts +0 -21
  961. package/dist/widget-types/src/store/runs.d.ts +0 -101
  962. package/dist/widget-types/src/store/tickets.d.ts +0 -72
  963. package/dist/widget-types/src/tickets.d.ts +0 -17
  964. package/dist/widget-types/src/worktrees.d.ts +0 -89
  965. package/dist/widget.css +0 -50
@@ -1,94 +0,0 @@
1
- import { basename, join } from 'node:path';
2
- import { nodeGitRunner } from './project.js';
3
- import { excludeFromGit } from './git-exclude.js';
4
- import { FRAMEWORK_DIR, BRANCHES_DIR, worktreeDirEntries, worktreeBranch } from './store/index.js';
5
- import { isWorktreeDirName } from './branch-names.js';
6
- import { startProjectPass } from './project-pass.js';
7
- /** A {@link LinksFs} over `node:fs/promises`, dynamically imported like {@link nodeDirLister}. */
8
- function nodeLinksFs() {
9
- const fs = () => import('node:fs/promises');
10
- return {
11
- readdir: dir => fs().then(f => f.readdir(dir)).catch(() => []),
12
- mkdir: dir => fs().then(f => f.mkdir(dir, { recursive: true })).then(() => { }),
13
- symlink: (target, path) => fs().then(f => f.symlink(target, path)),
14
- readlink: path => fs().then(f => f.readlink(path)).catch(() => undefined),
15
- unlink: path => fs().then(f => f.unlink(path)),
16
- lexists: path => fs().then(f => f.lstat(path)).then(() => true, () => false),
17
- };
18
- }
19
- /**
20
- * Bring one project's `branches/` links in line with its worktrees: one link per worktree, named
21
- * as the branch the worktree is on right now, plus the repo-root shortcut. Renames are covered by
22
- * the same rule — the old name stops being wanted and is dropped, the new one is created.
23
- *
24
- * Touches only what is provably ours: a link is created, replaced, or removed only when it points
25
- * (or would point) into `worktrees/`; anything else at those paths — a user's own file, dir, or
26
- * symlink — is left alone. Never throws.
27
- */
28
- export async function reconcileBranchLinks(cwd, deps = {}) {
29
- const git = deps.git ?? nodeGitRunner();
30
- const fs = deps.fs ?? nodeLinksFs();
31
- const worktrees = deps.worktrees ?? worktreeDirEntries;
32
- // A `branches/` directory that is not a worktree root reads as no branch (#1654): otherwise
33
- // it reads as the enclosing repo's, and a link named after the user's own branch appears.
34
- const branchOf = deps.branchOf ?? ((path) => worktreeBranch(path, git));
35
- const exclude = deps.exclude ?? ((repo, rule) => excludeFromGit(repo, rule, undefined, git));
36
- const linksDir = join(cwd, FRAMEWORK_DIR, BRANCHES_DIR);
37
- /** Link name -> relative target, derived from what is actually checked out. */
38
- const wanted = new Map();
39
- for (const entry of await worktrees(cwd).catch(() => [])) {
40
- const branch = await branchOf(entry.path).catch(() => undefined);
41
- // A detached worktree has no name to link; a slashed name (a pre-#1581 branch) cannot be a
42
- // link name at all — both simply get no link.
43
- if (!branch || branch.includes('/'))
44
- continue;
45
- // The link is a sibling of the checkout. A dir already carrying the branch's name needs none.
46
- const target = basename(entry.path);
47
- if (branch === target)
48
- continue;
49
- wanted.set(branch, target);
50
- }
51
- // Drop our stale links: entries that are symlinks to a sibling checkout but no longer wanted,
52
- // or wanted with a different target (a reused branch name now belongs to a newer worktree).
53
- for (const name of await fs.readdir(linksDir)) {
54
- const path = join(linksDir, name);
55
- const target = await fs.readlink(path);
56
- if (target === undefined || !isWorktreeDirName(target))
57
- continue; // not ours to touch
58
- if (wanted.get(name) === target)
59
- continue;
60
- await fs.unlink(path).catch(() => { });
61
- }
62
- for (const [name, target] of wanted) {
63
- const path = join(linksDir, name);
64
- if (await fs.lexists(path))
65
- continue; // ours-and-current, or someone else's — either way, stay
66
- await fs.mkdir(linksDir);
67
- await fs.symlink(target, path).catch(() => { });
68
- }
69
- // The repo-root `branches` shortcut (#1580). Relative, so a checkout that moves keeps working;
70
- // created only when nothing sits at that path — a user's own `branches` file or dir is theirs.
71
- // The link is framework state, so it is hidden from git the moment it is made (#1600):
72
- // uncommitted at the root, it would ride any sweeping `git add -A` onto a code branch. The
73
- // same exclude pair as the data checkout's `tickets` link: `/branches` hides root entries of
74
- // that name, and `!/branches/` re-includes directories (a trailing slash never matches a
75
- // symlink), so a user's own `branches` directory keeps committing while the link stays hidden.
76
- const rootLink = join(cwd, 'branches');
77
- if (!(await fs.lexists(rootLink))) {
78
- await fs.mkdir(linksDir);
79
- await fs.symlink(join(FRAMEWORK_DIR, BRANCHES_DIR), rootLink).catch(() => { });
80
- await exclude(cwd, '/branches').catch(() => { });
81
- await exclude(cwd, '!/branches/').catch(() => { });
82
- }
83
- }
84
- /**
85
- * Keep every registered project's branch links current, one turn per call. Runs on the daemon's
86
- * clock; renames and reclaimed worktrees settle within a tick, and a freshly-allocated worktree
87
- * gets its link immediately because allocation calls the reconcile too. Quiet on purpose: links
88
- * are presentation, and narrating every rename would drown the log.
89
- */
90
- export function startBranchLinksPass(opts) {
91
- const reconcile = opts.reconcile ?? reconcileBranchLinks;
92
- return startProjectPass(opts.projects, cwd => reconcile(cwd).catch(() => { }));
93
- }
94
- //# sourceMappingURL=branch-links.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branch-links.js","sourceRoot":"","sources":["../src/branch-links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAkB,MAAM,cAAc,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,kBAAkB,EAAE,cAAc,EAAyB,MAAM,kBAAkB,CAAA;AACzH,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAyC,MAAM,mBAAmB,CAAA;AA6B3F,kGAAkG;AAClG,SAAS,WAAW;IAClB,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;IAC3C,OAAO;QACL,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC;QAC9D,KAAK,EAAE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,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;QAC/C,MAAM,OAAO,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;IACnD,CAAC;AACH,CAAC;AASD;;;;;GAKG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAwB;IAC3D,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,oBAAoB,CAAA;IACxD,OAAO,gBAAgB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,CAAA;AAC/E,CAAC"}
@@ -1,57 +0,0 @@
1
- /**
2
- * Branch naming (#736/#1581), alone in a module so browser-safe code (the client barrel reaches
3
- * auto-pm's policy functions) can name branches without dragging the store's node imports along.
4
- */
5
- /**
6
- * What every framework-minted branch is named under (#1581). Slash-free on purpose: a `/` in a
7
- * ref name never resolves as a cloud session's revision (anthropics/claude-code#87235), and it
8
- * keeps the planned flat `branches/` dir (#1580) possible, where each dir is named as its branch.
9
- */
10
- export declare const AGENT_BRANCH_PREFIX = "tf-";
11
- /**
12
- * The pre-#1581 spelling. Never minted anymore, but branches under it still exist on remotes and
13
- * in archives, so classifiers and sweeps keep recognizing it until those die out.
14
- */
15
- export declare const LEGACY_AGENT_BRANCH_PREFIX = "the-framework/";
16
- /**
17
- * The branch holding everything The Framework writes (#1582) — tickets, queue, session archives —
18
- * checked out under `.the-framework/branches/` in a dir named as itself, like every checkout
19
- * there. Named here beside the other branch names so the store can build its paths without
20
- * importing the data-branch module (which imports the store).
21
- */
22
- export declare const DATA_BRANCH = "tf-data";
23
- /**
24
- * The branch a framework-allocated worktree starts on (#736). The agent id exists
25
- * before the session name does, so the branch is created from the id and renamed
26
- * once the agent picks a name.
27
- */
28
- export declare function agentBranchName(agentId: string): string;
29
- /**
30
- * The pre-#1581 run-branch spelling, kept only for reasoning about runs and refs that predate the
31
- * rename (archive branch guesses, remote scratch sweeps). Never used to create anything.
32
- */
33
- export declare function legacyAgentBranchName(agentId: string): string;
34
- /**
35
- * The directory an agent's worktree lives in under `.the-framework/branches/` (#1580): the run
36
- * branch's own name, so the flat `branches/` listing reads as branch names. #1581 (slash-free
37
- * names) is what makes this equality possible at all.
38
- */
39
- export declare function worktreeDirName(agentId: string): string;
40
- /**
41
- * The inverse of {@link worktreeDirName}. A name without the run prefix is a pre-#1580 worktree
42
- * directory, which was the bare agent id — returned as-is so legacy checkouts stay addressable.
43
- */
44
- export declare function agentIdFromWorktreeDir(name: string): string;
45
- /**
46
- * Whether a branch is one the framework minted for a run (#1650): the run-id spelling, a
47
- * session-named `tf-<name>`, or the legacy slashed form — and never the data branch, which
48
- * shares the prefix. The only branches the framework may delete on its own.
49
- */
50
- export declare function isRunBranch(name: string): boolean;
51
- /**
52
- * Whether a name under `branches/` is a framework checkout directory. The same directory also
53
- * holds the rename links (#1589) and possibly a user's own entries, and only names the framework
54
- * mints — the run branch spelling — are checkouts.
55
- */
56
- export declare function isWorktreeDirName(name: string): boolean;
57
- //# sourceMappingURL=branch-names.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branch-names.d.ts","sourceRoot":"","sources":["../src/branch-names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,QAAQ,CAAA;AAExC;;;GAGG;AACH,eAAO,MAAM,0BAA0B,mBAAmB,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,WAAW,YAAY,CAAA;AAEpC;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG3D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGjD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEvD"}
@@ -1,72 +0,0 @@
1
- /**
2
- * Branch naming (#736/#1581), alone in a module so browser-safe code (the client barrel reaches
3
- * auto-pm's policy functions) can name branches without dragging the store's node imports along.
4
- */
5
- /**
6
- * What every framework-minted branch is named under (#1581). Slash-free on purpose: a `/` in a
7
- * ref name never resolves as a cloud session's revision (anthropics/claude-code#87235), and it
8
- * keeps the planned flat `branches/` dir (#1580) possible, where each dir is named as its branch.
9
- */
10
- export const AGENT_BRANCH_PREFIX = 'tf-';
11
- /**
12
- * The pre-#1581 spelling. Never minted anymore, but branches under it still exist on remotes and
13
- * in archives, so classifiers and sweeps keep recognizing it until those die out.
14
- */
15
- export const LEGACY_AGENT_BRANCH_PREFIX = 'the-framework/';
16
- /**
17
- * The branch holding everything The Framework writes (#1582) — tickets, queue, session archives —
18
- * checked out under `.the-framework/branches/` in a dir named as itself, like every checkout
19
- * there. Named here beside the other branch names so the store can build its paths without
20
- * importing the data-branch module (which imports the store).
21
- */
22
- export const DATA_BRANCH = 'tf-data';
23
- /**
24
- * The branch a framework-allocated worktree starts on (#736). The agent id exists
25
- * before the session name does, so the branch is created from the id and renamed
26
- * once the agent picks a name.
27
- */
28
- export function agentBranchName(agentId) {
29
- return `${AGENT_BRANCH_PREFIX}agent-${agentId}`;
30
- }
31
- /**
32
- * The pre-#1581 run-branch spelling, kept only for reasoning about runs and refs that predate the
33
- * rename (archive branch guesses, remote scratch sweeps). Never used to create anything.
34
- */
35
- export function legacyAgentBranchName(agentId) {
36
- return `${LEGACY_AGENT_BRANCH_PREFIX}agent-${agentId}`;
37
- }
38
- /**
39
- * The directory an agent's worktree lives in under `.the-framework/branches/` (#1580): the run
40
- * branch's own name, so the flat `branches/` listing reads as branch names. #1581 (slash-free
41
- * names) is what makes this equality possible at all.
42
- */
43
- export function worktreeDirName(agentId) {
44
- return agentBranchName(agentId);
45
- }
46
- /**
47
- * The inverse of {@link worktreeDirName}. A name without the run prefix is a pre-#1580 worktree
48
- * directory, which was the bare agent id — returned as-is so legacy checkouts stay addressable.
49
- */
50
- export function agentIdFromWorktreeDir(name) {
51
- const prefix = `${AGENT_BRANCH_PREFIX}agent-`;
52
- return name.startsWith(prefix) ? name.slice(prefix.length) : name;
53
- }
54
- /**
55
- * Whether a branch is one the framework minted for a run (#1650): the run-id spelling, a
56
- * session-named `tf-<name>`, or the legacy slashed form — and never the data branch, which
57
- * shares the prefix. The only branches the framework may delete on its own.
58
- */
59
- export function isRunBranch(name) {
60
- if (name === DATA_BRANCH)
61
- return false;
62
- return name.startsWith(AGENT_BRANCH_PREFIX) || name.startsWith(LEGACY_AGENT_BRANCH_PREFIX);
63
- }
64
- /**
65
- * Whether a name under `branches/` is a framework checkout directory. The same directory also
66
- * holds the rename links (#1589) and possibly a user's own entries, and only names the framework
67
- * mints — the run branch spelling — are checkouts.
68
- */
69
- export function isWorktreeDirName(name) {
70
- return name.startsWith(`${AGENT_BRANCH_PREFIX}agent-`);
71
- }
72
- //# sourceMappingURL=branch-names.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branch-names.js","sourceRoot":"","sources":["../src/branch-names.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,KAAK,CAAA;AAExC;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB,CAAA;AAE1D;;;;;GAKG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAA;AAEpC;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,OAAO,GAAG,mBAAmB,SAAS,OAAO,EAAE,CAAA;AACjD,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACnD,OAAO,GAAG,0BAA0B,SAAS,OAAO,EAAE,CAAA;AACxD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,OAAO,eAAe,CAAC,OAAO,CAAC,CAAA;AACjC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAY;IACjD,MAAM,MAAM,GAAG,GAAG,mBAAmB,QAAQ,CAAA;IAC7C,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AACnE,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,IAAY;IACtC,IAAI,IAAI,KAAK,WAAW;QAAE,OAAO,KAAK,CAAA;IACtC,OAAO,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,0BAA0B,CAAC,CAAA;AAC5F,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,mBAAmB,QAAQ,CAAC,CAAA;AACxD,CAAC"}
@@ -1,123 +0,0 @@
1
- import { type AgentMeta } from './store/index.js';
2
- import { type HandoffResult, type PrAgent } from './dashboard/agent-handoff.js';
3
- import { type LinkedPr, type PrCiStatus } from './dashboard/gh.js';
4
- import type { Cached } from './dashboard/cache.js';
5
- import { type ProjectPass, type ProjectsSource } from './project-pass.js';
6
- /**
7
- * How long an agent's watched PR stays on the sweep's list: long enough to survive a weekend of the
8
- * daemon being off, short enough that the sweep's `gh` spend cannot grow with the archive. A PR
9
- * older than this is a human's to land — it has been red or unmergeable for a week.
10
- */
11
- export declare const CI_WATCH_WINDOW_MS: number;
12
- /**
13
- * How old a check-less PR must be before "no checks" is believed to mean "this repo has no CI"
14
- * rather than "the suite has not attached yet" — GitHub takes seconds to attach one after a push,
15
- * and merging inside that window is the stale-check hazard (#1406) wearing a different face.
16
- */
17
- export declare const NO_CHECKS_GRACE_MS: number;
18
- /**
19
- * The marker a CI-fix agent's prompt opens with, so attempts are discoverable from agent metas. The
20
- * `@` is always there, sha or not: it is what stops "PR #12" reading as a prefix of "PR #123"
21
- * when the metas are scanned for prior attempts.
22
- */
23
- export declare function ciFixMarker(number: number, headSha?: string): string;
24
- /** What the fix agent needs to know, distilled from the PR and its checks read. */
25
- export interface CiFixRequest {
26
- number: number;
27
- title: string;
28
- url: string;
29
- branch: string;
30
- headSha: string;
31
- failed: string[];
32
- }
33
- /**
34
- * The prompt a CI-fix session runs (#1418). Explicit about the git mechanics because the agent gets
35
- * an ordinary session worktree on its own scratch branch: the PR's branch may be checked out in a
36
- * retained worktree elsewhere, so `push origin HEAD:<branch>` is the one spelling that always
37
- * lands the fix without fighting over who holds the branch.
38
- */
39
- export declare function ciFixPrompt(fix: CiFixRequest): string;
40
- /** One PR the sweep merged. */
41
- export interface CiMerged {
42
- agentId: string;
43
- number: number;
44
- url?: string;
45
- }
46
- /** One fix session the sweep started, or why it stood down. */
47
- export interface CiFixOutcome {
48
- number: number;
49
- /** The started session, when one was. */
50
- agentId?: string;
51
- /** Why no session was started: the wiring declined (gate/quota), or the attempts cap is spent. */
52
- reason?: 'declined' | 'attempts-exhausted';
53
- }
54
- /** What one project's sweep did. */
55
- export interface CiSweepResult {
56
- merged: CiMerged[];
57
- /** Merges that should have happened and did not, with the refusal. */
58
- failed: {
59
- agentId: string;
60
- number: number;
61
- error: string;
62
- }[];
63
- fixes: CiFixOutcome[];
64
- }
65
- /** Injectable seams so the sweep is unit-testable off disk and off `gh`. */
66
- export interface CiSweepDeps {
67
- /** Every agent meta worth scanning — live and archived (default: both stores). */
68
- agents?: (cwd: string) => Promise<AgentMeta[]>;
69
- /** The PR that belongs to an agent (default {@link resolveAgentPr}, which rides the PR-lookup cache (#1028)). */
70
- pr?: (cwd: string, agent: PrAgent) => Promise<Cached<LinkedPr | undefined>>;
71
- /** A PR's combined check state (default {@link ghPrCiStatus}). */
72
- ci?: (cwd: string, number: number) => Promise<PrCiStatus>;
73
- /** Merge an agent's open PR (default {@link mergeAgentPr}, which also forgets the PR caches). */
74
- merge?: (cwd: string, agent: PrAgent) => Promise<HandoffResult>;
75
- /**
76
- * Start a CI-fix session for a red PR (#1418's fix half), resolving the agent id or undefined
77
- * when the wiring declined (preference off, no quota headroom, start failed). Absent = the fix
78
- * half is off and red PRs are only left for the merge half to keep ignoring.
79
- */
80
- fix?: (cwd: string, request: CiFixRequest) => Promise<string | undefined>;
81
- /**
82
- * Merge attempts that already failed (`<cwd>\0<number>\0<headSha>`), fed and consulted by the
83
- * sweep so a persistently refused merge (branch protection demanding a review, say) costs one
84
- * `gh` write per head, not one per tick for a week. The head sha is part of the key (#1484):
85
- * a push that changes the head — a conflict resolved, say — re-arms exactly one more attempt,
86
- * the same re-arm rule the CI-fix half applies. Before, a PR that arrived unmergeable was
87
- * skipped for the daemon's lifetime even after its branch was fixed and its checks went green.
88
- * In-memory on purpose: a daemon restart retries once.
89
- */
90
- attemptedMerges?: Set<string>;
91
- now?: () => number;
92
- }
93
- /**
94
- * Sweep one project's watched PRs (#1418): merge the green ones the repo could not arm GitHub
95
- * auto-merge for, and start a fix session for the red ones.
96
- *
97
- * Conservative wherever the answer is unclear: a PR that is not OPEN is done (merged or a
98
- * human's rejection — neither is this sweep's to touch), `pending` checks wait for the next
99
- * tick, and a check-less PR only counts as green once it has been check-less for longer than a
100
- * suite takes to attach ({@link NO_CHECKS_GRACE_MS}). An `auto-armed` PR is never merged here —
101
- * GitHub holds that promise — but its checks going red still starts a fix.
102
- */
103
- export declare function sweepProjectCi(cwd: string, deps?: CiSweepDeps): Promise<CiSweepResult>;
104
- /** What {@link startCiWatch} needs from the daemon. */
105
- export interface CiWatchOptions {
106
- /** The registered projects to sweep. */
107
- projects: ProjectsSource;
108
- log: (message: string) => void;
109
- /** The per-project sweep's seams, {@link CiSweepDeps.fix} included — the daemon wires the gates. */
110
- deps?: CiSweepDeps;
111
- /** The per-project sweep (default {@link sweepProjectCi}). */
112
- sweep?: (cwd: string, deps: CiSweepDeps) => Promise<CiSweepResult>;
113
- }
114
- /**
115
- * Watch every registered project's armed PRs on a timer (#1418).
116
- *
117
- * Same lifecycle contract as the merged-worktree sweep: an immediate start-up tick (the case is a
118
- * daemon that was off while checks went green), overlapping ticks join the sweep in flight, the
119
- * timer is unref'd, and everything it does is logged — a PR merging with no line explaining why
120
- * reads as a bug even when it is the feature.
121
- */
122
- export declare function startCiWatch(opts: CiWatchOptions): ProjectPass;
123
- //# sourceMappingURL=ci-watch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ci-watch.d.ts","sourceRoot":"","sources":["../src/ci-watch.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5E,OAAO,EAAgC,KAAK,aAAa,EAAE,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAC7G,OAAO,EAAgB,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAChF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,EAAoB,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAmB3F;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAA0B,CAAA;AAEzD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,QAAgB,CAAA;AAS/C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,SAAK,GAAG,MAAM,CAEhE;AAED,mFAAmF;AACnF,MAAM,WAAW,YAAY;I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E,MAAM,KAAK,OAAO,CAAC,UAAU,CAAC,CAAA;IACzD,iGAAiG;IACjG,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/D;;;;OAIG;IACH,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;IACzE;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC7B,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;CACnB;AAmBD;;;;;;;;;GASG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,WAAgB,GAAG,OAAO,CAAC,aAAa,CAAC,CAoDhG;AAwCD,uDAAuD;AACvD,MAAM,WAAW,cAAc;IAC7B,wCAAwC;IACxC,QAAQ,EAAE,cAAc,CAAA;IACxB,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC9B,oGAAoG;IACpG,IAAI,CAAC,EAAE,WAAW,CAAA;IAClB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;CACnE;AAED;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,cAAc,GAAG,WAAW,CA2B9D"}
package/dist/ci-watch.js DELETED
@@ -1,228 +0,0 @@
1
- import { listAgents, readLiveMetas } from './store/index.js';
2
- import { mergeAgentPr, resolveAgentPr } from './dashboard/agent-handoff.js';
3
- import { ghPrCiStatus } from './dashboard/gh.js';
4
- import { startProjectPass } from './project-pass.js';
5
- // Watch the PRs the framework is waiting to land, and act on what their CI says (#1418).
6
- //
7
- // The merge half (#1417's ask): a session armed for auto-merge on a repo without GitHub's native
8
- // auto-merge used to get the direct fallback — merged seconds after opening, before its first
9
- // check ran (#1406). Since #1418 that path answers `watched` instead, and this sweep is the other
10
- // half of the promise: poll the watched PR's checks (~1 min, the latency agreed on the issue) and
11
- // merge it once they pass. The repo setting stops mattering: merge-on-green works everywhere.
12
- //
13
- // The fix half (#1418's first use case): a watched or auto-armed PR whose checks go *red* is work
14
- // the framework produced and then abandoned to a human. The sweep starts one unattended fix
15
- // session per failing head commit, told to land its fix on the PR's own branch — the checks rerun,
16
- // and the merge half finishes the job if they come back green.
17
- //
18
- // Polling rather than webhooks on purpose: a local daemon has no public URL for GitHub to call.
19
- // Every decision this sweep takes starts from what `gh` answers, so a hosted deployment can later
20
- // feed the same handlers from a webhook receiver and only the trigger changes.
21
- /**
22
- * How long an agent's watched PR stays on the sweep's list: long enough to survive a weekend of the
23
- * daemon being off, short enough that the sweep's `gh` spend cannot grow with the archive. A PR
24
- * older than this is a human's to land — it has been red or unmergeable for a week.
25
- */
26
- export const CI_WATCH_WINDOW_MS = 7 * 24 * 60 * 60 * 1000;
27
- /**
28
- * How old a check-less PR must be before "no checks" is believed to mean "this repo has no CI"
29
- * rather than "the suite has not attached yet" — GitHub takes seconds to attach one after a push,
30
- * and merging inside that window is the stale-check hazard (#1406) wearing a different face.
31
- */
32
- export const NO_CHECKS_GRACE_MS = 3 * 60 * 1000;
33
- /**
34
- * How many fix sessions one PR may consume before the sweep stands down. Each attempt only
35
- * re-arms on a new head commit, so two attempts means: the original failure, and one more after
36
- * a fix that did not take. Past that the failure is evidently not agent-shaped.
37
- */
38
- const MAX_CI_FIX_ATTEMPTS = 2;
39
- /**
40
- * The marker a CI-fix agent's prompt opens with, so attempts are discoverable from agent metas. The
41
- * `@` is always there, sha or not: it is what stops "PR #12" reading as a prefix of "PR #123"
42
- * when the metas are scanned for prior attempts.
43
- */
44
- export function ciFixMarker(number, headSha = '') {
45
- return `[ci-fix] PR #${number} @${headSha}`;
46
- }
47
- /**
48
- * The prompt a CI-fix session runs (#1418). Explicit about the git mechanics because the agent gets
49
- * an ordinary session worktree on its own scratch branch: the PR's branch may be checked out in a
50
- * retained worktree elsewhere, so `push origin HEAD:<branch>` is the one spelling that always
51
- * lands the fix without fighting over who holds the branch.
52
- */
53
- export function ciFixPrompt(fix) {
54
- return [
55
- ciFixMarker(fix.number, fix.headSha),
56
- '',
57
- `CI is red on PR #${fix.number} ("${fix.title}"): ${fix.failed.join(', ') || 'checks failed'}.`,
58
- `The PR's branch is \`${fix.branch}\` and its failing head commit is ${fix.headSha}.`,
59
- '',
60
- 'Fix the failure so the checks go green:',
61
- `1. \`git fetch origin ${fix.branch}\` and put your worktree on that exact state: \`git reset --hard origin/${fix.branch}\` (your worktree’s own branch is scratch — nothing on it is worth keeping).`,
62
- `2. Read the failing checks (\`gh pr checks ${fix.number}\`, then \`gh run view --log-failed <run-id>\` for the failed workflow runs) and diagnose the failure.`,
63
- '3. Fix it, and run the relevant tests/build locally to confirm.',
64
- `4. Push the fix back onto the PR: \`git push origin HEAD:${fix.branch}\`.`,
65
- '',
66
- `Do NOT open a new PR and do not merge anything: the fix belongs on PR #${fix.number} (${fix.url}), and the merge happens elsewhere once the checks pass.`,
67
- ].join('\n');
68
- }
69
- /** Both stores' metas: the live agents (their conversation is still going) and the archive. */
70
- async function allAgentMetas(cwd) {
71
- const [live, archived] = await Promise.all([
72
- readLiveMetas(cwd).catch(() => []),
73
- listAgents(cwd).catch(() => []),
74
- ]);
75
- return [...live, ...archived];
76
- }
77
- /** Whether a meta is one of this sweep's candidates: an ended agent with a merge the CI decides. */
78
- function watchable(meta, now) {
79
- if (meta.status === 'running')
80
- return false;
81
- if (meta.mergeOutcome !== 'watched' && meta.mergeOutcome !== 'auto-armed')
82
- return false;
83
- const updated = Date.parse(meta.updatedAt ?? '');
84
- return Number.isFinite(updated) && now - updated <= CI_WATCH_WINDOW_MS;
85
- }
86
- /**
87
- * Sweep one project's watched PRs (#1418): merge the green ones the repo could not arm GitHub
88
- * auto-merge for, and start a fix session for the red ones.
89
- *
90
- * Conservative wherever the answer is unclear: a PR that is not OPEN is done (merged or a
91
- * human's rejection — neither is this sweep's to touch), `pending` checks wait for the next
92
- * tick, and a check-less PR only counts as green once it has been check-less for longer than a
93
- * suite takes to attach ({@link NO_CHECKS_GRACE_MS}). An `auto-armed` PR is never merged here —
94
- * GitHub holds that promise — but its checks going red still starts a fix.
95
- */
96
- export async function sweepProjectCi(cwd, deps = {}) {
97
- const agents = deps.agents ?? allAgentMetas;
98
- const pr = deps.pr ?? resolveAgentPr;
99
- const ci = deps.ci ?? ghPrCiStatus;
100
- const merge = deps.merge ?? mergeAgentPr;
101
- const now = deps.now ?? Date.now;
102
- const result = { merged: [], failed: [], fixes: [] };
103
- const metas = await agents(cwd).catch(() => []);
104
- const candidates = metas.filter(meta => watchable(meta, now()));
105
- if (candidates.length === 0)
106
- return result;
107
- const seen = new Set();
108
- for (const meta of candidates) {
109
- const read = await pr(cwd, meta).catch(() => ({ value: undefined, pending: false }));
110
- // A cache still warming answers `pending`, and the value standing in for the state it has not
111
- // read yet is a synthetic OPEN (agent-handoff.ts). Acting on that guess re-merges PRs that
112
- // already landed and starts fix sessions on branches a human closed; the next tick knows.
113
- if (read.pending)
114
- continue;
115
- const linked = read.value;
116
- // No PR, or one that is no longer open: nothing left to watch. CLOSED stays closed on
117
- // purpose — an unmerged close is a human's rejection of the work.
118
- if (!linked || linked.state !== 'OPEN' || seen.has(linked.number))
119
- continue;
120
- seen.add(linked.number);
121
- const status = await ci(cwd, linked.number).catch(() => ({ checks: 'none', failed: [] }));
122
- if (status.checks === 'pending')
123
- continue;
124
- if (status.checks === 'failing') {
125
- const fix = await requestFix(cwd, metas, linked, status, deps);
126
- if (fix)
127
- result.fixes.push(fix);
128
- continue;
129
- }
130
- // Green — but the merge is only ours where GitHub could not take it (#1418): an auto-armed
131
- // PR lands by GitHub's own hand, and a check-less one must outlive the attach window first.
132
- if (meta.mergeOutcome !== 'watched')
133
- continue;
134
- if (status.checks === 'none') {
135
- // "No checks" means "this repo has no CI" only when `gh` actually answered: an unreadable
136
- // status reads `none` too (gh.ts), and acting on one must never merge anything. A read that
137
- // succeeded always carries the head commit, so its presence is what tells the two apart.
138
- if (!status.headSha)
139
- continue;
140
- if (!pastNoChecksGrace(linked, now()))
141
- continue;
142
- }
143
- const attemptKey = `${cwd}\u0000${linked.number}\u0000${status.headSha ?? ''}`;
144
- if (deps.attemptedMerges?.has(attemptKey))
145
- continue;
146
- const outcome = await merge(cwd, meta);
147
- if (outcome.ok)
148
- result.merged.push({ agentId: meta.id, number: linked.number, ...(outcome.url ? { url: outcome.url } : {}) });
149
- else {
150
- deps.attemptedMerges?.add(attemptKey);
151
- result.failed.push({ agentId: meta.id, number: linked.number, error: outcome.error });
152
- }
153
- }
154
- return result;
155
- }
156
- /** Whether a check-less PR has been open longer than a check suite takes to attach. */
157
- function pastNoChecksGrace(pr, now) {
158
- const created = Date.parse(pr.createdAt ?? '');
159
- // No creation time on the record: age unknowable, so never merge on its absence.
160
- return Number.isFinite(created) && now - created > NO_CHECKS_GRACE_MS;
161
- }
162
- /**
163
- * The fix half's own restraint (#1418), applied before the wiring's gates: one session per
164
- * failing head commit — the marker in the prompt is the durable record, scanned off the same
165
- * metas — at most one in flight per PR, and {@link MAX_CI_FIX_ATTEMPTS} per PR ever.
166
- */
167
- async function requestFix(cwd, metas, pr, status, deps) {
168
- if (!deps.fix)
169
- return undefined;
170
- // No head to pin the attempt to (or no branch to land it on): a retry could not be told from a
171
- // loop, so stand down rather than guess.
172
- if (!status.headSha || !status.branch)
173
- return undefined;
174
- const attempts = metas.filter(meta => meta.intent?.startsWith(ciFixMarker(pr.number)));
175
- if (attempts.some(meta => meta.intent?.startsWith(ciFixMarker(pr.number, status.headSha))))
176
- return undefined;
177
- if (attempts.some(meta => meta.status === 'running'))
178
- return undefined;
179
- if (attempts.length >= MAX_CI_FIX_ATTEMPTS)
180
- return { number: pr.number, reason: 'attempts-exhausted' };
181
- const agentId = await deps.fix(cwd, {
182
- number: pr.number,
183
- title: pr.title,
184
- url: pr.url,
185
- branch: status.branch,
186
- headSha: status.headSha,
187
- failed: status.failed,
188
- });
189
- return agentId ? { number: pr.number, agentId } : { number: pr.number, reason: 'declined' };
190
- }
191
- /**
192
- * Watch every registered project's armed PRs on a timer (#1418).
193
- *
194
- * Same lifecycle contract as the merged-worktree sweep: an immediate start-up tick (the case is a
195
- * daemon that was off while checks went green), overlapping ticks join the sweep in flight, the
196
- * timer is unref'd, and everything it does is logged — a PR merging with no line explaining why
197
- * reads as a bug even when it is the feature.
198
- */
199
- export function startCiWatch(opts) {
200
- const sweep = opts.sweep ?? sweepProjectCi;
201
- const deps = { attemptedMerges: new Set(), ...opts.deps };
202
- // A red or unmergeable PR stays a candidate for a week, and its line does not get truer with
203
- // repetition: each distinct line is said once per daemon lifetime.
204
- const said = new Set();
205
- const sayOnce = (line) => {
206
- if (said.has(line))
207
- return;
208
- said.add(line);
209
- opts.log(line);
210
- };
211
- // No timer of its own (E4): the daemon's one clock calls `tick`.
212
- return startProjectPass(opts.projects, async (cwd) => {
213
- const result = await sweep(cwd, deps).catch(() => ({ merged: [], failed: [], fixes: [] }));
214
- for (const item of result.merged) {
215
- opts.log(`[framework] CI watch: checks passed on PR #${item.number}, merged it${item.url ? ` (${item.url})` : ''} (session ${item.agentId})`);
216
- }
217
- for (const item of result.failed) {
218
- sayOnce(`[framework] CI watch: could not merge PR #${item.number}: ${item.error}`);
219
- }
220
- for (const item of result.fixes) {
221
- if (item.agentId)
222
- opts.log(`[framework] CI watch: checks failed on PR #${item.number}, started fix session ${item.agentId}`);
223
- else if (item.reason === 'attempts-exhausted')
224
- sayOnce(`[framework] CI watch: PR #${item.number} is still red after ${MAX_CI_FIX_ATTEMPTS} fix sessions; leaving it for a human`);
225
- }
226
- });
227
- }
228
- //# sourceMappingURL=ci-watch.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ci-watch.js","sourceRoot":"","sources":["../src/ci-watch.ts"],"names":[],"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E,OAAO,CAAC,6BAA6B,IAAI,CAAC,MAAM,uBAAuB,mBAAmB,uCAAuC,CAAC,CAAA;QACnL,CAAC;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -1,16 +0,0 @@
1
- /** What is known about a root's trust. `known: false` means the file could not say. */
2
- export interface ClaudeTrust {
3
- known: boolean;
4
- trusted: boolean;
5
- }
6
- /** Whether the CLI trusts `root`. Unknown when the config is missing or not understood. */
7
- export declare function readClaudeTrust(root: string, path?: string): Promise<ClaudeTrust>;
8
- /**
9
- * Record that the CLI can trust `root` (#1493): the exact record the CLI itself writes
10
- * when the user accepts its dialog, so the dialog never fires. Everything else in the
11
- * config — other projects, top-level settings, the entry's own sibling fields — is
12
- * preserved. A missing file is created; an existing file that does not parse is refused
13
- * with a throw rather than overwritten, since the file is the CLI's, not ours.
14
- */
15
- export declare function writeClaudeTrust(root: string, path?: string): Promise<void>;
16
- //# sourceMappingURL=claude-trust.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"claude-trust.d.ts","sourceRoot":"","sources":["../src/claude-trust.ts"],"names":[],"mappings":"AA2BA,uFAAuF;AACvF,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,2FAA2F;AAC3F,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAA2B,GAAG,OAAO,CAAC,WAAW,CAAC,CAc3G;AAED;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBrG"}