@openagt/dashboard 0.8.0 → 0.9.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 (940) hide show
  1. package/README.md +6 -6
  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 +13 -4
  8. package/dist/built-in.d.ts.map +1 -1
  9. package/dist/built-in.js +45 -4
  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 -9
  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/static.js +1 -1
  77. package/dist/dashboard/types.d.ts +29 -3
  78. package/dist/dashboard/types.d.ts.map +1 -1
  79. package/dist/dashboard/web-start-endpoints.d.ts +1 -1
  80. package/dist/dashboard/web-start-endpoints.d.ts.map +1 -1
  81. package/dist/dashboard/web-start-endpoints.js +1 -1
  82. package/dist/dashboard/web-start-endpoints.js.map +1 -1
  83. package/dist/dashboard-bundle/assets/{main-om0WOAku.js → main-B98UOA3_.js} +48 -48
  84. package/dist/dashboard-bundle/assets/main-ByRjbCiA.css +2 -0
  85. package/dist/dashboard-bundle/assets/{module-jASZmfSB.js → module-v213KWfH.js} +4 -4
  86. package/dist/dashboard-bundle/host/module.js +1 -1
  87. package/dist/dashboard-bundle/index.html +6 -6
  88. package/dist/dashboard-rpc/context.d.ts +2 -0
  89. package/dist/dashboard-rpc/context.d.ts.map +1 -1
  90. package/dist/dashboard-rpc/context.js +4 -0
  91. package/dist/dashboard-rpc/context.js.map +1 -1
  92. package/dist/dashboard-rpc/control.d.ts +1 -1
  93. package/dist/dashboard-rpc/control.js +3 -3
  94. package/dist/dashboard-rpc/control.js.map +1 -1
  95. package/dist/dashboard-rpc/events.d.ts +3 -3
  96. package/dist/dashboard-rpc/index.d.ts +1 -1
  97. package/dist/dashboard-rpc/index.d.ts.map +1 -1
  98. package/dist/dashboard-rpc/index.js +1 -1
  99. package/dist/dashboard-rpc/index.js.map +1 -1
  100. package/dist/dashboard-rpc/modules.d.ts +8 -6
  101. package/dist/dashboard-rpc/modules.d.ts.map +1 -1
  102. package/dist/dashboard-rpc/modules.js +8 -6
  103. package/dist/dashboard-rpc/modules.js.map +1 -1
  104. package/dist/dashboard-rpc/preferences.d.ts +2 -2
  105. package/dist/dashboard-rpc/preferences.d.ts.map +1 -1
  106. package/dist/dashboard-rpc/preferences.js +2 -2
  107. package/dist/dashboard-rpc/preferences.js.map +1 -1
  108. package/dist/dashboard-rpc/projects.d.ts +29 -3
  109. package/dist/dashboard-rpc/projects.d.ts.map +1 -1
  110. package/dist/dashboard-rpc/projects.js +49 -7
  111. package/dist/dashboard-rpc/projects.js.map +1 -1
  112. package/dist/dashboard-rpc/reads.d.ts +3 -3
  113. package/dist/dashboard-rpc/reads.js +1 -1
  114. package/dist/dashboard-rpc/test-context.d.ts.map +1 -1
  115. package/dist/dashboard-rpc/test-context.js +4 -3
  116. package/dist/dashboard-rpc/test-context.js.map +1 -1
  117. package/dist/event-stream.d.ts +1 -1
  118. package/dist/event-stream.js +1 -1
  119. package/dist/events.d.ts +8 -8
  120. package/dist/events.d.ts.map +1 -1
  121. package/dist/index.d.ts +3 -2
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/install.d.ts +9 -7
  124. package/dist/install.d.ts.map +1 -1
  125. package/dist/install.js +28 -14
  126. package/dist/install.js.map +1 -1
  127. package/dist/module-server.d.ts +1 -1
  128. package/dist/module-types/dashboard/lib/route.d.ts +2 -1
  129. package/dist/module-types/dashboard/lib/use-modules.d.ts +4 -3
  130. package/dist/module-types/dashboard/module/index.d.ts +5 -5
  131. package/dist/module-types/src/agent-view.d.ts +3 -3
  132. package/dist/module-types/src/bridge-browser.d.ts +4 -4
  133. package/dist/module-types/src/built-in.d.ts +13 -4
  134. package/dist/module-types/src/client.d.ts +1 -1
  135. package/dist/module-types/src/cloud-run-state.d.ts +1 -1
  136. package/dist/module-types/src/dashboard/agent-handoff.d.ts +4 -4
  137. package/dist/module-types/src/dashboard/bridge-endpoints.d.ts +3 -3
  138. package/dist/module-types/src/dashboard/docs.d.ts +1 -1
  139. package/dist/module-types/src/dashboard/git-status.d.ts +1 -1
  140. package/dist/module-types/src/dashboard/interventions.d.ts +2 -2
  141. package/dist/module-types/src/dashboard/open-in-app.d.ts +3 -3
  142. package/dist/module-types/src/dashboard/open-questions.d.ts +2 -2
  143. package/dist/module-types/src/dashboard/projects.d.ts +6 -5
  144. package/dist/module-types/src/dashboard/pull-requests.d.ts +5 -5
  145. package/dist/module-types/src/dashboard/remote-run.d.ts +5 -5
  146. package/dist/module-types/src/dashboard/rpc-serve.d.ts +7 -4
  147. package/dist/module-types/src/dashboard/run-inbox.d.ts +2 -2
  148. package/dist/module-types/src/dashboard/types.d.ts +29 -3
  149. package/dist/module-types/src/dashboard-rpc/context.d.ts +2 -0
  150. package/dist/module-types/src/dashboard-rpc/control.d.ts +1 -1
  151. package/dist/module-types/src/dashboard-rpc/events.d.ts +3 -3
  152. package/dist/module-types/src/dashboard-rpc/index.d.ts +1 -1
  153. package/dist/module-types/src/dashboard-rpc/modules.d.ts +8 -6
  154. package/dist/module-types/src/dashboard-rpc/preferences.d.ts +2 -2
  155. package/dist/module-types/src/dashboard-rpc/projects.d.ts +29 -3
  156. package/dist/module-types/src/dashboard-rpc/reads.d.ts +3 -3
  157. package/dist/module-types/src/event-stream.d.ts +1 -1
  158. package/dist/module-types/src/events.d.ts +8 -8
  159. package/dist/module-types/src/index.d.ts +3 -2
  160. package/dist/module-types/src/open-choices.d.ts +2 -2
  161. package/dist/module-types/src/{framework-dir.d.ts → openagent-dir.d.ts} +2 -2
  162. package/dist/module-types/src/openagent-gitignore.d.ts +11 -0
  163. package/dist/module-types/src/project-commands.d.ts +1 -1
  164. package/dist/module-types/src/project-errors.d.ts +11 -7
  165. package/dist/module-types/src/project-hooks.d.ts +4 -4
  166. package/dist/module-types/src/project-modules.d.ts +5 -5
  167. package/dist/module-types/src/project-presets.d.ts +4 -4
  168. package/dist/module-types/src/project.d.ts +6 -6
  169. package/dist/module-types/src/publish-levels.d.ts +4 -4
  170. package/dist/module-types/src/quota-boundary.d.ts +2 -2
  171. package/dist/module-types/src/registry.d.ts +13 -7
  172. package/dist/module-types/src/store/agent-checkout.d.ts +1 -1
  173. package/dist/module-types/src/store/agent-store.d.ts +6 -6
  174. package/dist/module-types/src/store/branches.d.ts +7 -7
  175. package/dist/module-types/src/store/git-host.d.ts +7 -7
  176. package/dist/module-types/src/store/provided.d.ts +3 -3
  177. package/dist/module-types/src/store/queue.d.ts +8 -8
  178. package/dist/module-types/src/store/repository.d.ts +2 -2
  179. package/dist/module-types/src/store/run-record.d.ts +10 -10
  180. package/dist/module-types/src/store/runs.d.ts +6 -6
  181. package/dist/module-types/src/store/tickets.d.ts +7 -7
  182. package/dist/module-types/src/terminal.d.ts +3 -3
  183. package/dist/open-choices.d.ts +2 -2
  184. package/dist/{framework-dir.js → openagent-dir.d.ts} +3 -3
  185. package/dist/openagent-dir.d.ts.map +1 -0
  186. package/dist/{framework-dir.d.ts → openagent-dir.js} +3 -3
  187. package/dist/openagent-dir.js.map +1 -0
  188. package/dist/openagent-gitignore.d.ts +12 -0
  189. package/dist/openagent-gitignore.d.ts.map +1 -0
  190. package/dist/openagent-gitignore.js +19 -0
  191. package/dist/openagent-gitignore.js.map +1 -0
  192. package/dist/pick-directory.js +2 -2
  193. package/dist/pick-directory.js.map +1 -1
  194. package/dist/project-commands.d.ts +1 -1
  195. package/dist/project-commands.js +1 -1
  196. package/dist/project-errors.d.ts +11 -7
  197. package/dist/project-errors.d.ts.map +1 -1
  198. package/dist/project-errors.js +10 -8
  199. package/dist/project-errors.js.map +1 -1
  200. package/dist/project-hooks.d.ts +4 -4
  201. package/dist/project-hooks.d.ts.map +1 -1
  202. package/dist/project-hooks.js +8 -8
  203. package/dist/project-hooks.js.map +1 -1
  204. package/dist/project-modules.d.ts +5 -5
  205. package/dist/project-modules.js +2 -2
  206. package/dist/project-presets.d.ts +4 -4
  207. package/dist/project-presets.d.ts.map +1 -1
  208. package/dist/project-presets.js +9 -9
  209. package/dist/project-presets.js.map +1 -1
  210. package/dist/project.d.ts +6 -6
  211. package/dist/project.js +6 -6
  212. package/dist/publish-levels.d.ts +4 -4
  213. package/dist/publish-levels.d.ts.map +1 -1
  214. package/dist/publish-levels.js +7 -5
  215. package/dist/publish-levels.js.map +1 -1
  216. package/dist/quota-boundary.d.ts +2 -2
  217. package/dist/quota-boundary.js +2 -2
  218. package/dist/registry.d.ts +13 -7
  219. package/dist/registry.d.ts.map +1 -1
  220. package/dist/registry.js +19 -3
  221. package/dist/registry.js.map +1 -1
  222. package/dist/remove-files.d.ts +24 -0
  223. package/dist/remove-files.d.ts.map +1 -0
  224. package/dist/remove-files.js +98 -0
  225. package/dist/remove-files.js.map +1 -0
  226. package/dist/store/agent-checkout.d.ts +1 -1
  227. package/dist/store/agent-checkout.js +3 -3
  228. package/dist/store/agent-checkout.js.map +1 -1
  229. package/dist/store/agent-store.d.ts +6 -6
  230. package/dist/store/agent-store.js +8 -8
  231. package/dist/store/agent-store.js.map +1 -1
  232. package/dist/store/branches.d.ts +7 -7
  233. package/dist/store/branches.d.ts.map +1 -1
  234. package/dist/store/branches.js +1 -1
  235. package/dist/store/branches.js.map +1 -1
  236. package/dist/store/git-host.d.ts +7 -7
  237. package/dist/store/git-host.d.ts.map +1 -1
  238. package/dist/store/git-host.js +1 -1
  239. package/dist/store/git-host.js.map +1 -1
  240. package/dist/store/provided.d.ts +3 -3
  241. package/dist/store/provided.d.ts.map +1 -1
  242. package/dist/store/provided.js +3 -3
  243. package/dist/store/provided.js.map +1 -1
  244. package/dist/store/queue.d.ts +8 -8
  245. package/dist/store/queue.d.ts.map +1 -1
  246. package/dist/store/queue.js +1 -1
  247. package/dist/store/queue.js.map +1 -1
  248. package/dist/store/repository.d.ts +2 -2
  249. package/dist/store/run-record.d.ts +10 -10
  250. package/dist/store/run-record.d.ts.map +1 -1
  251. package/dist/store/run-record.js +7 -7
  252. package/dist/store/run-record.js.map +1 -1
  253. package/dist/store/runs.d.ts +6 -6
  254. package/dist/store/runs.d.ts.map +1 -1
  255. package/dist/store/runs.js +2 -2
  256. package/dist/store/runs.js.map +1 -1
  257. package/dist/store/tickets.d.ts +7 -7
  258. package/dist/store/tickets.d.ts.map +1 -1
  259. package/dist/store/tickets.js +1 -1
  260. package/dist/store/tickets.js.map +1 -1
  261. package/dist/terminal.d.ts +3 -3
  262. package/dist/terminal.js +3 -3
  263. package/package.json +19 -19
  264. package/dist/agent-archive.d.ts +0 -35
  265. package/dist/agent-archive.d.ts.map +0 -1
  266. package/dist/agent-archive.js +0 -67
  267. package/dist/agent-archive.js.map +0 -1
  268. package/dist/agent-commit.d.ts +0 -140
  269. package/dist/agent-commit.d.ts.map +0 -1
  270. package/dist/agent-commit.js +0 -254
  271. package/dist/agent-commit.js.map +0 -1
  272. package/dist/agent-driver.d.ts +0 -28
  273. package/dist/agent-driver.d.ts.map +0 -1
  274. package/dist/agent-driver.js +0 -18
  275. package/dist/agent-driver.js.map +0 -1
  276. package/dist/agent-location.d.ts +0 -11
  277. package/dist/agent-location.d.ts.map +0 -1
  278. package/dist/agent-location.js +0 -10
  279. package/dist/agent-location.js.map +0 -1
  280. package/dist/agent-messages.d.ts +0 -55
  281. package/dist/agent-messages.d.ts.map +0 -1
  282. package/dist/agent-messages.js +0 -73
  283. package/dist/agent-messages.js.map +0 -1
  284. package/dist/agent-names.d.ts +0 -24
  285. package/dist/agent-names.d.ts.map +0 -1
  286. package/dist/agent-names.js +0 -33
  287. package/dist/agent-names.js.map +0 -1
  288. package/dist/agent-options.d.ts +0 -45
  289. package/dist/agent-options.d.ts.map +0 -1
  290. package/dist/agent-options.js +0 -83
  291. package/dist/agent-options.js.map +0 -1
  292. package/dist/agent-spec.d.ts +0 -56
  293. package/dist/agent-spec.d.ts.map +0 -1
  294. package/dist/agent-spec.js +0 -56
  295. package/dist/agent-spec.js.map +0 -1
  296. package/dist/agent-telemetry.d.ts +0 -88
  297. package/dist/agent-telemetry.d.ts.map +0 -1
  298. package/dist/agent-telemetry.js +0 -97
  299. package/dist/agent-telemetry.js.map +0 -1
  300. package/dist/agent.d.ts +0 -113
  301. package/dist/agent.d.ts.map +0 -1
  302. package/dist/agent.js +0 -168
  303. package/dist/agent.js.map +0 -1
  304. package/dist/archived-agent-patch.d.ts +0 -14
  305. package/dist/archived-agent-patch.d.ts.map +0 -1
  306. package/dist/archived-agent-patch.js +0 -22
  307. package/dist/archived-agent-patch.js.map +0 -1
  308. package/dist/auto-pm.d.ts +0 -538
  309. package/dist/auto-pm.d.ts.map +0 -1
  310. package/dist/auto-pm.js +0 -707
  311. package/dist/auto-pm.js.map +0 -1
  312. package/dist/await-gate.d.ts +0 -184
  313. package/dist/await-gate.d.ts.map +0 -1
  314. package/dist/await-gate.js +0 -252
  315. package/dist/await-gate.js.map +0 -1
  316. package/dist/branch-links-pass.d.ts +0 -15
  317. package/dist/branch-links-pass.d.ts.map +0 -1
  318. package/dist/branch-links-pass.js +0 -13
  319. package/dist/branch-links-pass.js.map +0 -1
  320. package/dist/branch-links.d.ts +0 -53
  321. package/dist/branch-links.d.ts.map +0 -1
  322. package/dist/branch-links.js +0 -94
  323. package/dist/branch-links.js.map +0 -1
  324. package/dist/branch-names.d.ts +0 -57
  325. package/dist/branch-names.d.ts.map +0 -1
  326. package/dist/branch-names.js +0 -72
  327. package/dist/branch-names.js.map +0 -1
  328. package/dist/ci-watch.d.ts +0 -123
  329. package/dist/ci-watch.d.ts.map +0 -1
  330. package/dist/ci-watch.js +0 -228
  331. package/dist/ci-watch.js.map +0 -1
  332. package/dist/claude-trust.d.ts +0 -16
  333. package/dist/claude-trust.d.ts.map +0 -1
  334. package/dist/claude-trust.js +0 -72
  335. package/dist/claude-trust.js.map +0 -1
  336. package/dist/cli-exec.d.ts +0 -36
  337. package/dist/cli-exec.d.ts.map +0 -1
  338. package/dist/cli-exec.js +0 -44
  339. package/dist/cli-exec.js.map +0 -1
  340. package/dist/closing-keywords.d.ts +0 -28
  341. package/dist/closing-keywords.d.ts.map +0 -1
  342. package/dist/closing-keywords.js +0 -49
  343. package/dist/closing-keywords.js.map +0 -1
  344. package/dist/config-layers.d.ts +0 -62
  345. package/dist/config-layers.d.ts.map +0 -1
  346. package/dist/config-layers.js +0 -70
  347. package/dist/config-layers.js.map +0 -1
  348. package/dist/config.d.ts +0 -54
  349. package/dist/config.d.ts.map +0 -1
  350. package/dist/config.js +0 -78
  351. package/dist/config.js.map +0 -1
  352. package/dist/consumption-guard.d.ts +0 -53
  353. package/dist/consumption-guard.d.ts.map +0 -1
  354. package/dist/consumption-guard.js +0 -69
  355. package/dist/consumption-guard.js.map +0 -1
  356. package/dist/control.d.ts +0 -75
  357. package/dist/control.d.ts.map +0 -1
  358. package/dist/control.js +0 -68
  359. package/dist/control.js.map +0 -1
  360. package/dist/conversation-commit.d.ts +0 -166
  361. package/dist/conversation-commit.d.ts.map +0 -1
  362. package/dist/conversation-commit.js +0 -309
  363. package/dist/conversation-commit.js.map +0 -1
  364. package/dist/conversations.d.ts +0 -93
  365. package/dist/conversations.d.ts.map +0 -1
  366. package/dist/conversations.js +0 -176
  367. package/dist/conversations.js.map +0 -1
  368. package/dist/daemon-writes.d.ts +0 -33
  369. package/dist/daemon-writes.d.ts.map +0 -1
  370. package/dist/daemon-writes.js +0 -45
  371. package/dist/daemon-writes.js.map +0 -1
  372. package/dist/dashboard/agent-tree.d.ts +0 -106
  373. package/dist/dashboard/agent-tree.d.ts.map +0 -1
  374. package/dist/dashboard/agent-tree.js +0 -180
  375. package/dist/dashboard/agent-tree.js.map +0 -1
  376. package/dist/dashboard/browser-proxy.d.ts +0 -41
  377. package/dist/dashboard/browser-proxy.d.ts.map +0 -1
  378. package/dist/dashboard/browser-proxy.js +0 -96
  379. package/dist/dashboard/browser-proxy.js.map +0 -1
  380. package/dist/dashboard/discord-webhook.d.ts +0 -17
  381. package/dist/dashboard/discord-webhook.d.ts.map +0 -1
  382. package/dist/dashboard/discord-webhook.js +0 -36
  383. package/dist/dashboard/discord-webhook.js.map +0 -1
  384. package/dist/dashboard/file-diff.d.ts +0 -67
  385. package/dist/dashboard/file-diff.d.ts.map +0 -1
  386. package/dist/dashboard/file-diff.js +0 -132
  387. package/dist/dashboard/file-diff.js.map +0 -1
  388. package/dist/dashboard/file-read.d.ts +0 -42
  389. package/dist/dashboard/file-read.d.ts.map +0 -1
  390. package/dist/dashboard/file-read.js +0 -69
  391. package/dist/dashboard/file-read.js.map +0 -1
  392. package/dist/dashboard/file-status.d.ts +0 -21
  393. package/dist/dashboard/file-status.d.ts.map +0 -1
  394. package/dist/dashboard/file-status.js +0 -37
  395. package/dist/dashboard/file-status.js.map +0 -1
  396. package/dist/dashboard/gh.d.ts +0 -131
  397. package/dist/dashboard/gh.d.ts.map +0 -1
  398. package/dist/dashboard/gh.js +0 -150
  399. package/dist/dashboard/gh.js.map +0 -1
  400. package/dist/dashboard/github.d.ts +0 -11
  401. package/dist/dashboard/github.d.ts.map +0 -1
  402. package/dist/dashboard/github.js +0 -33
  403. package/dist/dashboard/github.js.map +0 -1
  404. package/dist/dashboard/run-handoff.d.ts +0 -311
  405. package/dist/dashboard/run-handoff.d.ts.map +0 -1
  406. package/dist/dashboard/run-handoff.js +0 -485
  407. package/dist/dashboard/run-handoff.js.map +0 -1
  408. package/dist/dashboard/scheduler-state.d.ts +0 -73
  409. package/dist/dashboard/scheduler-state.d.ts.map +0 -1
  410. package/dist/dashboard/scheduler-state.js +0 -120
  411. package/dist/dashboard/scheduler-state.js.map +0 -1
  412. package/dist/dashboard/subagent-settings.d.ts +0 -26
  413. package/dist/dashboard/subagent-settings.d.ts.map +0 -1
  414. package/dist/dashboard/subagent-settings.js +0 -52
  415. package/dist/dashboard/subagent-settings.js.map +0 -1
  416. package/dist/dashboard/telefunc-serve.d.ts +0 -118
  417. package/dist/dashboard/telefunc-serve.d.ts.map +0 -1
  418. package/dist/dashboard/telefunc-serve.js +0 -108
  419. package/dist/dashboard/telefunc-serve.js.map +0 -1
  420. package/dist/dashboard/tickets.d.ts +0 -29
  421. package/dist/dashboard/tickets.d.ts.map +0 -1
  422. package/dist/dashboard/tickets.js +0 -38
  423. package/dist/dashboard/tickets.js.map +0 -1
  424. package/dist/dashboard/widget-serve.d.ts +0 -15
  425. package/dist/dashboard/widget-serve.d.ts.map +0 -1
  426. package/dist/dashboard/widget-serve.js +0 -45
  427. package/dist/dashboard/widget-serve.js.map +0 -1
  428. package/dist/dashboard-bundle/assets/main-B3HghPQy.css +0 -2
  429. package/dist/dashboard-client/assets/chunks/chunk-BF9pJudf.js +0 -4
  430. package/dist/dashboard-client/assets/entries/entry-client-routing.CT1e9F0o.js +0 -1
  431. package/dist/dashboard-client/assets/entries/pages_index.CkW5JQ8X.js +0 -428
  432. package/dist/dashboard-client/assets/static/layouts_tailwind-00e65532.8OjKGAbA.css +0 -2
  433. package/dist/dashboard-client/index.html +0 -27
  434. package/dist/dashboard-client/index.pageContext.json +0 -1
  435. package/dist/dashboard-client/logo-animated.svg +0 -34
  436. package/dist/dashboard-client/logo.svg +0 -16
  437. package/dist/dashboard-rpc/control.telefunc.d.ts +0 -176
  438. package/dist/dashboard-rpc/control.telefunc.d.ts.map +0 -1
  439. package/dist/dashboard-rpc/control.telefunc.js +0 -373
  440. package/dist/dashboard-rpc/control.telefunc.js.map +0 -1
  441. package/dist/dashboard-rpc/devices.telefunc.d.ts +0 -9
  442. package/dist/dashboard-rpc/devices.telefunc.d.ts.map +0 -1
  443. package/dist/dashboard-rpc/devices.telefunc.js +0 -12
  444. package/dist/dashboard-rpc/devices.telefunc.js.map +0 -1
  445. package/dist/dashboard-rpc/events.telefunc.d.ts +0 -36
  446. package/dist/dashboard-rpc/events.telefunc.d.ts.map +0 -1
  447. package/dist/dashboard-rpc/events.telefunc.js +0 -70
  448. package/dist/dashboard-rpc/events.telefunc.js.map +0 -1
  449. package/dist/dashboard-rpc/preferences.telefunc.d.ts +0 -97
  450. package/dist/dashboard-rpc/preferences.telefunc.d.ts.map +0 -1
  451. package/dist/dashboard-rpc/preferences.telefunc.js +0 -157
  452. package/dist/dashboard-rpc/preferences.telefunc.js.map +0 -1
  453. package/dist/dashboard-rpc/projects.telefunc.d.ts +0 -56
  454. package/dist/dashboard-rpc/projects.telefunc.d.ts.map +0 -1
  455. package/dist/dashboard-rpc/projects.telefunc.js +0 -96
  456. package/dist/dashboard-rpc/projects.telefunc.js.map +0 -1
  457. package/dist/dashboard-rpc/quota.telefunc.d.ts +0 -40
  458. package/dist/dashboard-rpc/quota.telefunc.d.ts.map +0 -1
  459. package/dist/dashboard-rpc/quota.telefunc.js +0 -84
  460. package/dist/dashboard-rpc/quota.telefunc.js.map +0 -1
  461. package/dist/dashboard-rpc/reads.telefunc.d.ts +0 -197
  462. package/dist/dashboard-rpc/reads.telefunc.d.ts.map +0 -1
  463. package/dist/dashboard-rpc/reads.telefunc.js +0 -403
  464. package/dist/dashboard-rpc/reads.telefunc.js.map +0 -1
  465. package/dist/dashboard-rpc/register.d.ts +0 -18
  466. package/dist/dashboard-rpc/register.d.ts.map +0 -1
  467. package/dist/dashboard-rpc/register.js +0 -66
  468. package/dist/dashboard-rpc/register.js.map +0 -1
  469. package/dist/dashboard-rpc/relay-run.d.ts +0 -9
  470. package/dist/dashboard-rpc/relay-run.d.ts.map +0 -1
  471. package/dist/dashboard-rpc/relay-run.js +0 -21
  472. package/dist/dashboard-rpc/relay-run.js.map +0 -1
  473. package/dist/dashboard-rpc/stream-channel.d.ts +0 -23
  474. package/dist/dashboard-rpc/stream-channel.d.ts.map +0 -1
  475. package/dist/dashboard-rpc/stream-channel.js +0 -52
  476. package/dist/dashboard-rpc/stream-channel.js.map +0 -1
  477. package/dist/dashboard-rpc/subagents.d.ts +0 -12
  478. package/dist/dashboard-rpc/subagents.d.ts.map +0 -1
  479. package/dist/dashboard-rpc/subagents.js +0 -13
  480. package/dist/dashboard-rpc/subagents.js.map +0 -1
  481. package/dist/dashboard-rpc/widgets.d.ts +0 -33
  482. package/dist/dashboard-rpc/widgets.d.ts.map +0 -1
  483. package/dist/dashboard-rpc/widgets.js +0 -54
  484. package/dist/dashboard-rpc/widgets.js.map +0 -1
  485. package/dist/data-branch.d.ts +0 -120
  486. package/dist/data-branch.d.ts.map +0 -1
  487. package/dist/data-branch.js +0 -319
  488. package/dist/data-branch.js.map +0 -1
  489. package/dist/discord/bot.d.ts +0 -61
  490. package/dist/discord/bot.d.ts.map +0 -1
  491. package/dist/discord/bot.js +0 -94
  492. package/dist/discord/bot.js.map +0 -1
  493. package/dist/discord/gateway.d.ts +0 -137
  494. package/dist/discord/gateway.d.ts.map +0 -1
  495. package/dist/discord/gateway.js +0 -315
  496. package/dist/discord/gateway.js.map +0 -1
  497. package/dist/discord/live-run.d.ts +0 -31
  498. package/dist/discord/live-run.d.ts.map +0 -1
  499. package/dist/discord/live-run.js +0 -57
  500. package/dist/discord/live-run.js.map +0 -1
  501. package/dist/discord/reply-mirror.d.ts +0 -83
  502. package/dist/discord/reply-mirror.d.ts.map +0 -1
  503. package/dist/discord/reply-mirror.js +0 -84
  504. package/dist/discord/reply-mirror.js.map +0 -1
  505. package/dist/discord/rest.d.ts +0 -20
  506. package/dist/discord/rest.d.ts.map +0 -1
  507. package/dist/discord/rest.js +0 -41
  508. package/dist/discord/rest.js.map +0 -1
  509. package/dist/discord/routing.d.ts +0 -81
  510. package/dist/discord/routing.d.ts.map +0 -1
  511. package/dist/discord/routing.js +0 -91
  512. package/dist/discord/routing.js.map +0 -1
  513. package/dist/discord-credentials-store.d.ts +0 -14
  514. package/dist/discord-credentials-store.d.ts.map +0 -1
  515. package/dist/discord-credentials-store.js +0 -53
  516. package/dist/discord-credentials-store.js.map +0 -1
  517. package/dist/discord-credentials.d.ts +0 -80
  518. package/dist/discord-credentials.d.ts.map +0 -1
  519. package/dist/discord-credentials.js +0 -55
  520. package/dist/discord-credentials.js.map +0 -1
  521. package/dist/driver/actions-zip.d.ts +0 -2
  522. package/dist/driver/actions-zip.d.ts.map +0 -1
  523. package/dist/driver/actions-zip.js +0 -70
  524. package/dist/driver/actions-zip.js.map +0 -1
  525. package/dist/driver/actions.d.ts +0 -130
  526. package/dist/driver/actions.d.ts.map +0 -1
  527. package/dist/driver/actions.js +0 -261
  528. package/dist/driver/actions.js.map +0 -1
  529. package/dist/driver/agent-cli.d.ts +0 -57
  530. package/dist/driver/agent-cli.d.ts.map +0 -1
  531. package/dist/driver/agent-cli.js +0 -134
  532. package/dist/driver/agent-cli.js.map +0 -1
  533. package/dist/driver/child-registry.d.ts +0 -25
  534. package/dist/driver/child-registry.d.ts.map +0 -1
  535. package/dist/driver/child-registry.js +0 -53
  536. package/dist/driver/child-registry.js.map +0 -1
  537. package/dist/driver/claude-code-quota.d.ts +0 -40
  538. package/dist/driver/claude-code-quota.d.ts.map +0 -1
  539. package/dist/driver/claude-code-quota.js +0 -144
  540. package/dist/driver/claude-code-quota.js.map +0 -1
  541. package/dist/driver/claude-code.d.ts +0 -104
  542. package/dist/driver/claude-code.d.ts.map +0 -1
  543. package/dist/driver/claude-code.js +0 -314
  544. package/dist/driver/claude-code.js.map +0 -1
  545. package/dist/driver/cli-session.d.ts +0 -57
  546. package/dist/driver/cli-session.d.ts.map +0 -1
  547. package/dist/driver/cli-session.js +0 -134
  548. package/dist/driver/cli-session.js.map +0 -1
  549. package/dist/driver/cloud.d.ts +0 -109
  550. package/dist/driver/cloud.d.ts.map +0 -1
  551. package/dist/driver/cloud.js +0 -232
  552. package/dist/driver/cloud.js.map +0 -1
  553. package/dist/driver/codex.d.ts +0 -99
  554. package/dist/driver/codex.d.ts.map +0 -1
  555. package/dist/driver/codex.js +0 -190
  556. package/dist/driver/codex.js.map +0 -1
  557. package/dist/driver/fake.d.ts +0 -54
  558. package/dist/driver/fake.d.ts.map +0 -1
  559. package/dist/driver/fake.js +0 -73
  560. package/dist/driver/fake.js.map +0 -1
  561. package/dist/driver/index.d.ts +0 -10
  562. package/dist/driver/index.d.ts.map +0 -1
  563. package/dist/driver/index.js +0 -14
  564. package/dist/driver/index.js.map +0 -1
  565. package/dist/driver/session-support.d.ts +0 -14
  566. package/dist/driver/session-support.d.ts.map +0 -1
  567. package/dist/driver/session-support.js +0 -37
  568. package/dist/driver/session-support.js.map +0 -1
  569. package/dist/driver/types.d.ts +0 -310
  570. package/dist/driver/types.d.ts.map +0 -1
  571. package/dist/driver/types.js +0 -5
  572. package/dist/driver/types.js.map +0 -1
  573. package/dist/driver-cli.d.ts +0 -61
  574. package/dist/driver-cli.d.ts.map +0 -1
  575. package/dist/driver-cli.js +0 -66
  576. package/dist/driver-cli.js.map +0 -1
  577. package/dist/fake-script.d.ts +0 -15
  578. package/dist/fake-script.d.ts.map +0 -1
  579. package/dist/fake-script.js +0 -58
  580. package/dist/fake-script.js.map +0 -1
  581. package/dist/framework-dir.d.ts.map +0 -1
  582. package/dist/framework-dir.js.map +0 -1
  583. package/dist/framework-gitignore.d.ts +0 -12
  584. package/dist/framework-gitignore.d.ts.map +0 -1
  585. package/dist/framework-gitignore.js +0 -19
  586. package/dist/framework-gitignore.js.map +0 -1
  587. package/dist/gate-keepalive.d.ts +0 -47
  588. package/dist/gate-keepalive.d.ts.map +0 -1
  589. package/dist/gate-keepalive.js +0 -62
  590. package/dist/gate-keepalive.js.map +0 -1
  591. package/dist/git-exclude.d.ts +0 -11
  592. package/dist/git-exclude.d.ts.map +0 -1
  593. package/dist/git-exclude.js +0 -23
  594. package/dist/git-exclude.js.map +0 -1
  595. package/dist/handoff-level.d.ts +0 -56
  596. package/dist/handoff-level.d.ts.map +0 -1
  597. package/dist/handoff-level.js +0 -62
  598. package/dist/handoff-level.js.map +0 -1
  599. package/dist/host-exec.d.ts +0 -21
  600. package/dist/host-exec.d.ts.map +0 -1
  601. package/dist/host-exec.js +0 -30
  602. package/dist/host-exec.js.map +0 -1
  603. package/dist/layout.d.ts +0 -41
  604. package/dist/layout.d.ts.map +0 -1
  605. package/dist/layout.js +0 -69
  606. package/dist/layout.js.map +0 -1
  607. package/dist/logs.d.ts +0 -73
  608. package/dist/logs.d.ts.map +0 -1
  609. package/dist/logs.js +0 -218
  610. package/dist/logs.js.map +0 -1
  611. package/dist/maintenance.d.ts +0 -90
  612. package/dist/maintenance.d.ts.map +0 -1
  613. package/dist/maintenance.js +0 -141
  614. package/dist/maintenance.js.map +0 -1
  615. package/dist/merged-worktrees.d.ts +0 -74
  616. package/dist/merged-worktrees.d.ts.map +0 -1
  617. package/dist/merged-worktrees.js +0 -84
  618. package/dist/merged-worktrees.js.map +0 -1
  619. package/dist/module-types/src/dashboard/agent-tree.d.ts +0 -105
  620. package/dist/module-types/src/dashboard/file-diff.d.ts +0 -66
  621. package/dist/module-types/src/dashboard/file-read.d.ts +0 -41
  622. package/dist/module-types/src/dashboard/file-status.d.ts +0 -20
  623. package/dist/module-types/src/dashboard/scheduler-state.d.ts +0 -72
  624. package/dist/module-types/src/dashboard/subagent-settings.d.ts +0 -25
  625. package/dist/module-types/src/dashboard-rpc/subagents.d.ts +0 -11
  626. package/dist/module-types/src/framework-gitignore.d.ts +0 -11
  627. package/dist/module-types/src/subagent-settings.d.ts +0 -26
  628. package/dist/on-before-mergeable-prompt.d.ts +0 -32
  629. package/dist/on-before-mergeable-prompt.d.ts.map +0 -1
  630. package/dist/on-before-mergeable-prompt.js +0 -26
  631. package/dist/on-before-mergeable-prompt.js.map +0 -1
  632. package/dist/planned-quick-wins.d.ts +0 -102
  633. package/dist/planned-quick-wins.d.ts.map +0 -1
  634. package/dist/planned-quick-wins.js +0 -171
  635. package/dist/planned-quick-wins.js.map +0 -1
  636. package/dist/preflight.d.ts +0 -77
  637. package/dist/preflight.d.ts.map +0 -1
  638. package/dist/preflight.js +0 -91
  639. package/dist/preflight.js.map +0 -1
  640. package/dist/preset-catalog.d.ts +0 -98
  641. package/dist/preset-catalog.d.ts.map +0 -1
  642. package/dist/preset-catalog.js +0 -129
  643. package/dist/preset-catalog.js.map +0 -1
  644. package/dist/preset-prompt.d.ts +0 -81
  645. package/dist/preset-prompt.d.ts.map +0 -1
  646. package/dist/preset-prompt.js +0 -51
  647. package/dist/preset-prompt.js.map +0 -1
  648. package/dist/preset-registry.d.ts +0 -32
  649. package/dist/preset-registry.d.ts.map +0 -1
  650. package/dist/preset-registry.js +0 -35
  651. package/dist/preset-registry.js.map +0 -1
  652. package/dist/presets.d.ts +0 -20
  653. package/dist/presets.d.ts.map +0 -1
  654. package/dist/presets.js +0 -33
  655. package/dist/presets.js.map +0 -1
  656. package/dist/preview-runtime.d.ts +0 -33
  657. package/dist/preview-runtime.d.ts.map +0 -1
  658. package/dist/preview-runtime.js +0 -96
  659. package/dist/preview-runtime.js.map +0 -1
  660. package/dist/preview.d.ts +0 -78
  661. package/dist/preview.d.ts.map +0 -1
  662. package/dist/preview.js +0 -301
  663. package/dist/preview.js.map +0 -1
  664. package/dist/project-widgets.d.ts +0 -46
  665. package/dist/project-widgets.d.ts.map +0 -1
  666. package/dist/project-widgets.js +0 -93
  667. package/dist/project-widgets.js.map +0 -1
  668. package/dist/prompt-run.d.ts +0 -104
  669. package/dist/prompt-run.d.ts.map +0 -1
  670. package/dist/prompt-run.js +0 -112
  671. package/dist/prompt-run.js.map +0 -1
  672. package/dist/prompt-template.d.ts +0 -16
  673. package/dist/prompt-template.d.ts.map +0 -1
  674. package/dist/prompt-template.js +0 -56
  675. package/dist/prompt-template.js.map +0 -1
  676. package/dist/prompts.generated.d.ts +0 -53
  677. package/dist/prompts.generated.d.ts.map +0 -1
  678. package/dist/prompts.generated.js +0 -55
  679. package/dist/prompts.generated.js.map +0 -1
  680. package/dist/queue-promote.d.ts +0 -70
  681. package/dist/queue-promote.d.ts.map +0 -1
  682. package/dist/queue-promote.js +0 -118
  683. package/dist/queue-promote.js.map +0 -1
  684. package/dist/relay.d.ts +0 -84
  685. package/dist/relay.d.ts.map +0 -1
  686. package/dist/relay.js +0 -199
  687. package/dist/relay.js.map +0 -1
  688. package/dist/repos-directory.d.ts +0 -19
  689. package/dist/repos-directory.d.ts.map +0 -1
  690. package/dist/repos-directory.js +0 -23
  691. package/dist/repos-directory.js.map +0 -1
  692. package/dist/retired-project-settings.d.ts +0 -43
  693. package/dist/retired-project-settings.d.ts.map +0 -1
  694. package/dist/retired-project-settings.js +0 -125
  695. package/dist/retired-project-settings.js.map +0 -1
  696. package/dist/routine-locks.d.ts +0 -53
  697. package/dist/routine-locks.d.ts.map +0 -1
  698. package/dist/routine-locks.js +0 -125
  699. package/dist/routine-locks.js.map +0 -1
  700. package/dist/run-driver.d.ts +0 -26
  701. package/dist/run-driver.d.ts.map +0 -1
  702. package/dist/run-driver.js +0 -17
  703. package/dist/run-driver.js.map +0 -1
  704. package/dist/run-locks.d.ts +0 -3
  705. package/dist/run-locks.d.ts.map +0 -1
  706. package/dist/run-locks.js +0 -39
  707. package/dist/run-locks.js.map +0 -1
  708. package/dist/run-messages.d.ts +0 -64
  709. package/dist/run-messages.d.ts.map +0 -1
  710. package/dist/run-messages.js +0 -76
  711. package/dist/run-messages.js.map +0 -1
  712. package/dist/run-options.d.ts +0 -53
  713. package/dist/run-options.d.ts.map +0 -1
  714. package/dist/run-options.js +0 -110
  715. package/dist/run-options.js.map +0 -1
  716. package/dist/run-telemetry.d.ts +0 -115
  717. package/dist/run-telemetry.d.ts.map +0 -1
  718. package/dist/run-telemetry.js +0 -137
  719. package/dist/run-telemetry.js.map +0 -1
  720. package/dist/run-view.d.ts +0 -109
  721. package/dist/run-view.d.ts.map +0 -1
  722. package/dist/run-view.js +0 -118
  723. package/dist/run-view.js.map +0 -1
  724. package/dist/run.d.ts +0 -261
  725. package/dist/run.d.ts.map +0 -1
  726. package/dist/run.js +0 -420
  727. package/dist/run.js.map +0 -1
  728. package/dist/runtime-keys.d.ts +0 -17
  729. package/dist/runtime-keys.d.ts.map +0 -1
  730. package/dist/runtime-keys.js +0 -17
  731. package/dist/runtime-keys.js.map +0 -1
  732. package/dist/sandbox.d.ts +0 -27
  733. package/dist/sandbox.d.ts.map +0 -1
  734. package/dist/sandbox.js +0 -63
  735. package/dist/sandbox.js.map +0 -1
  736. package/dist/session-link.d.ts +0 -19
  737. package/dist/session-link.d.ts.map +0 -1
  738. package/dist/session-link.js +0 -26
  739. package/dist/session-link.js.map +0 -1
  740. package/dist/sessions.d.ts +0 -77
  741. package/dist/sessions.d.ts.map +0 -1
  742. package/dist/sessions.js +0 -146
  743. package/dist/sessions.js.map +0 -1
  744. package/dist/spike-locks.d.ts +0 -75
  745. package/dist/spike-locks.d.ts.map +0 -1
  746. package/dist/spike-locks.js +0 -208
  747. package/dist/spike-locks.js.map +0 -1
  748. package/dist/stale-branch.d.ts +0 -21
  749. package/dist/stale-branch.d.ts.map +0 -1
  750. package/dist/stale-branch.js +0 -32
  751. package/dist/stale-branch.js.map +0 -1
  752. package/dist/steps.d.ts +0 -9
  753. package/dist/steps.d.ts.map +0 -1
  754. package/dist/steps.js +0 -13
  755. package/dist/steps.js.map +0 -1
  756. package/dist/store/forge.d.ts +0 -110
  757. package/dist/store/forge.d.ts.map +0 -1
  758. package/dist/store/forge.js +0 -97
  759. package/dist/store/forge.js.map +0 -1
  760. package/dist/store/run-checkout.d.ts +0 -33
  761. package/dist/store/run-checkout.d.ts.map +0 -1
  762. package/dist/store/run-checkout.js +0 -59
  763. package/dist/store/run-checkout.js.map +0 -1
  764. package/dist/store/run-store.d.ts +0 -501
  765. package/dist/store/run-store.d.ts.map +0 -1
  766. package/dist/store/run-store.js +0 -806
  767. package/dist/store/run-store.js.map +0 -1
  768. package/dist/store/suspend.d.ts +0 -38
  769. package/dist/store/suspend.d.ts.map +0 -1
  770. package/dist/store/suspend.js +0 -45
  771. package/dist/store/suspend.js.map +0 -1
  772. package/dist/store/worktree-deps.d.ts +0 -30
  773. package/dist/store/worktree-deps.d.ts.map +0 -1
  774. package/dist/store/worktree-deps.js +0 -115
  775. package/dist/store/worktree-deps.js.map +0 -1
  776. package/dist/store/worktree.d.ts +0 -194
  777. package/dist/store/worktree.d.ts.map +0 -1
  778. package/dist/store/worktree.js +0 -331
  779. package/dist/store/worktree.js.map +0 -1
  780. package/dist/subagent-settings.d.ts +0 -27
  781. package/dist/subagent-settings.d.ts.map +0 -1
  782. package/dist/subagent-settings.js +0 -35
  783. package/dist/subagent-settings.js.map +0 -1
  784. package/dist/system-prompt-file.d.ts +0 -18
  785. package/dist/system-prompt-file.d.ts.map +0 -1
  786. package/dist/system-prompt-file.js +0 -28
  787. package/dist/system-prompt-file.js.map +0 -1
  788. package/dist/system-prompt.d.ts +0 -148
  789. package/dist/system-prompt.d.ts.map +0 -1
  790. package/dist/system-prompt.js +0 -170
  791. package/dist/system-prompt.js.map +0 -1
  792. package/dist/target-driver.d.ts +0 -28
  793. package/dist/target-driver.d.ts.map +0 -1
  794. package/dist/target-driver.js +0 -18
  795. package/dist/target-driver.js.map +0 -1
  796. package/dist/ticket-locks.d.ts +0 -61
  797. package/dist/ticket-locks.d.ts.map +0 -1
  798. package/dist/ticket-locks.js +0 -137
  799. package/dist/ticket-locks.js.map +0 -1
  800. package/dist/tickets-file.d.ts +0 -7
  801. package/dist/tickets-file.d.ts.map +0 -1
  802. package/dist/tickets-file.js +0 -21
  803. package/dist/tickets-file.js.map +0 -1
  804. package/dist/tickets.d.ts +0 -18
  805. package/dist/tickets.d.ts.map +0 -1
  806. package/dist/tickets.js +0 -23
  807. package/dist/tickets.js.map +0 -1
  808. package/dist/todo-loop.d.ts +0 -110
  809. package/dist/todo-loop.d.ts.map +0 -1
  810. package/dist/todo-loop.js +0 -175
  811. package/dist/todo-loop.js.map +0 -1
  812. package/dist/turn-gate.d.ts +0 -144
  813. package/dist/turn-gate.d.ts.map +0 -1
  814. package/dist/turn-gate.js +0 -217
  815. package/dist/turn-gate.js.map +0 -1
  816. package/dist/usage.d.ts +0 -32
  817. package/dist/usage.d.ts.map +0 -1
  818. package/dist/usage.js +0 -46
  819. package/dist/usage.js.map +0 -1
  820. package/dist/widget-types/dashboard/components/LinkActions.d.ts +0 -26
  821. package/dist/widget-types/dashboard/components/Markdown.d.ts +0 -4
  822. package/dist/widget-types/dashboard/components/StartAgentButton.d.ts +0 -39
  823. package/dist/widget-types/dashboard/components/ui/badge.d.ts +0 -2
  824. package/dist/widget-types/dashboard/components/ui/button.d.ts +0 -10
  825. package/dist/widget-types/dashboard/components/ui/card.d.ts +0 -5
  826. package/dist/widget-types/dashboard/components/ui/checkbox.d.ts +0 -7
  827. package/dist/widget-types/dashboard/components/ui/dropdown-menu.d.ts +0 -16
  828. package/dist/widget-types/dashboard/components/ui/input.d.ts +0 -2
  829. package/dist/widget-types/dashboard/components/ui/option-label.d.ts +0 -4
  830. package/dist/widget-types/dashboard/components/ui/popover.d.ts +0 -8
  831. package/dist/widget-types/dashboard/components/ui/scroll-area.d.ts +0 -10
  832. package/dist/widget-types/dashboard/components/ui/separator.d.ts +0 -3
  833. package/dist/widget-types/dashboard/components/ui/skeleton.d.ts +0 -2
  834. package/dist/widget-types/dashboard/components/ui/slider.d.ts +0 -9
  835. package/dist/widget-types/dashboard/components/ui/tooltip.d.ts +0 -11
  836. package/dist/widget-types/dashboard/lib/draft-handoff.d.ts +0 -15
  837. package/dist/widget-types/dashboard/lib/format-date.d.ts +0 -51
  838. package/dist/widget-types/dashboard/lib/host-services.d.ts +0 -12
  839. package/dist/widget-types/dashboard/lib/route.d.ts +0 -24
  840. package/dist/widget-types/dashboard/lib/rpc.d.ts +0 -31
  841. package/dist/widget-types/dashboard/lib/use-action.d.ts +0 -25
  842. package/dist/widget-types/dashboard/lib/use-async.d.ts +0 -39
  843. package/dist/widget-types/dashboard/lib/use-widgets.d.ts +0 -42
  844. package/dist/widget-types/dashboard/lib/utils.d.ts +0 -3
  845. package/dist/widget-types/dashboard/rpc/widgets.d.ts +0 -4
  846. package/dist/widget-types/dashboard/widget/index.d.ts +0 -207
  847. package/dist/widget-types/src/agent-id.d.ts +0 -12
  848. package/dist/widget-types/src/agent-locks.d.ts +0 -2
  849. package/dist/widget-types/src/agent-view.d.ts +0 -38
  850. package/dist/widget-types/src/bridge-browser.d.ts +0 -216
  851. package/dist/widget-types/src/browser-stream.d.ts +0 -19
  852. package/dist/widget-types/src/browser.d.ts +0 -15
  853. package/dist/widget-types/src/cli-exec.d.ts +0 -35
  854. package/dist/widget-types/src/cloud-run-state.d.ts +0 -26
  855. package/dist/widget-types/src/dashboard/activity.d.ts +0 -40
  856. package/dist/widget-types/src/dashboard/agent-handoff.d.ts +0 -211
  857. package/dist/widget-types/src/dashboard/agent-tree.d.ts +0 -105
  858. package/dist/widget-types/src/dashboard/bridge-endpoints.d.ts +0 -157
  859. package/dist/widget-types/src/dashboard/bridge-question.d.ts +0 -32
  860. package/dist/widget-types/src/dashboard/bridge-store.d.ts +0 -178
  861. package/dist/widget-types/src/dashboard/cache.d.ts +0 -46
  862. package/dist/widget-types/src/dashboard/content-type.d.ts +0 -2
  863. package/dist/widget-types/src/dashboard/dashboard.d.ts +0 -37
  864. package/dist/widget-types/src/dashboard/discord-webhook.d.ts +0 -16
  865. package/dist/widget-types/src/dashboard/docs.d.ts +0 -38
  866. package/dist/widget-types/src/dashboard/file-diff.d.ts +0 -66
  867. package/dist/widget-types/src/dashboard/file-read.d.ts +0 -41
  868. package/dist/widget-types/src/dashboard/file-status.d.ts +0 -20
  869. package/dist/widget-types/src/dashboard/gh.d.ts +0 -130
  870. package/dist/widget-types/src/dashboard/git-status.d.ts +0 -32
  871. package/dist/widget-types/src/dashboard/github.d.ts +0 -10
  872. package/dist/widget-types/src/dashboard/http.d.ts +0 -28
  873. package/dist/widget-types/src/dashboard/interventions.d.ts +0 -66
  874. package/dist/widget-types/src/dashboard/keys.d.ts +0 -30
  875. package/dist/widget-types/src/dashboard/models.d.ts +0 -24
  876. package/dist/widget-types/src/dashboard/open-in-app.d.ts +0 -42
  877. package/dist/widget-types/src/dashboard/open-questions.d.ts +0 -52
  878. package/dist/widget-types/src/dashboard/overview.d.ts +0 -77
  879. package/dist/widget-types/src/dashboard/projects.d.ts +0 -89
  880. package/dist/widget-types/src/dashboard/pull-requests.d.ts +0 -126
  881. package/dist/widget-types/src/dashboard/queue.d.ts +0 -16
  882. package/dist/widget-types/src/dashboard/quota.d.ts +0 -59
  883. package/dist/widget-types/src/dashboard/remote-run.d.ts +0 -94
  884. package/dist/widget-types/src/dashboard/rpc-serve.d.ts +0 -102
  885. package/dist/widget-types/src/dashboard/run-inbox.d.ts +0 -30
  886. package/dist/widget-types/src/dashboard/scheduler-state.d.ts +0 -64
  887. package/dist/widget-types/src/dashboard/tickets.d.ts +0 -28
  888. package/dist/widget-types/src/dashboard/types.d.ts +0 -99
  889. package/dist/widget-types/src/dashboard/widget-serve.d.ts +0 -14
  890. package/dist/widget-types/src/dashboard-rpc/context.d.ts +0 -53
  891. package/dist/widget-types/src/dashboard-rpc/control.d.ts +0 -108
  892. package/dist/widget-types/src/dashboard-rpc/devices.d.ts +0 -8
  893. package/dist/widget-types/src/dashboard-rpc/events-tail.d.ts +0 -53
  894. package/dist/widget-types/src/dashboard-rpc/events.d.ts +0 -29
  895. package/dist/widget-types/src/dashboard-rpc/index.d.ts +0 -28
  896. package/dist/widget-types/src/dashboard-rpc/models.d.ts +0 -3
  897. package/dist/widget-types/src/dashboard-rpc/preferences.d.ts +0 -40
  898. package/dist/widget-types/src/dashboard-rpc/projects.d.ts +0 -54
  899. package/dist/widget-types/src/dashboard-rpc/quota.d.ts +0 -26
  900. package/dist/widget-types/src/dashboard-rpc/reads.d.ts +0 -227
  901. package/dist/widget-types/src/dashboard-rpc/relay-agent.d.ts +0 -8
  902. package/dist/widget-types/src/dashboard-rpc/stream-forward.d.ts +0 -16
  903. package/dist/widget-types/src/dashboard-rpc/widgets.d.ts +0 -32
  904. package/dist/widget-types/src/discord-credentials.d.ts +0 -79
  905. package/dist/widget-types/src/driver-names.d.ts +0 -21
  906. package/dist/widget-types/src/error-message.d.ts +0 -7
  907. package/dist/widget-types/src/event-stream.d.ts +0 -32
  908. package/dist/widget-types/src/events.d.ts +0 -235
  909. package/dist/widget-types/src/framework-dir.d.ts +0 -10
  910. package/dist/widget-types/src/framework-gitignore.d.ts +0 -11
  911. package/dist/widget-types/src/index.d.ts +0 -42
  912. package/dist/widget-types/src/jsonl-tail.d.ts +0 -54
  913. package/dist/widget-types/src/loopback-host.d.ts +0 -19
  914. package/dist/widget-types/src/node-fs.d.ts +0 -32
  915. package/dist/widget-types/src/open-choices.d.ts +0 -14
  916. package/dist/widget-types/src/pick-directory.d.ts +0 -29
  917. package/dist/widget-types/src/preference-defaults.d.ts +0 -53
  918. package/dist/widget-types/src/project-commands.d.ts +0 -23
  919. package/dist/widget-types/src/project-errors.d.ts +0 -43
  920. package/dist/widget-types/src/project-hooks.d.ts +0 -133
  921. package/dist/widget-types/src/project-presets.d.ts +0 -29
  922. package/dist/widget-types/src/project-widgets.d.ts +0 -45
  923. package/dist/widget-types/src/project.d.ts +0 -28
  924. package/dist/widget-types/src/quota-boundary.d.ts +0 -115
  925. package/dist/widget-types/src/quota-poller.d.ts +0 -82
  926. package/dist/widget-types/src/registry.d.ts +0 -210
  927. package/dist/widget-types/src/store/agent-checkout.d.ts +0 -46
  928. package/dist/widget-types/src/store/agent-store.d.ts +0 -237
  929. package/dist/widget-types/src/store/branches.d.ts +0 -133
  930. package/dist/widget-types/src/store/forge.d.ts +0 -109
  931. package/dist/widget-types/src/store/git-host.d.ts +0 -111
  932. package/dist/widget-types/src/store/index.d.ts +0 -9
  933. package/dist/widget-types/src/store/provided.d.ts +0 -16
  934. package/dist/widget-types/src/store/queue.d.ts +0 -45
  935. package/dist/widget-types/src/store/run-record.d.ts +0 -21
  936. package/dist/widget-types/src/store/runs.d.ts +0 -101
  937. package/dist/widget-types/src/store/tickets.d.ts +0 -72
  938. package/dist/widget-types/src/tickets.d.ts +0 -17
  939. package/dist/widget-types/src/worktrees.d.ts +0 -89
  940. package/dist/widget.css +0 -50
@@ -1,133 +0,0 @@
1
- /**
2
- * A project's hooks (#1774): the shell lines a project's own `.the-framework/hooks.yml` names to
3
- * run when the dashboard opens and when it closes, the two lines that start a run and continue
4
- * one, the line that says whether a run can start here at all, and the line that sets how far past
5
- * the quota boundary unattended work may go, and the line that switches a scheduled command on or
6
- * off on this machine. The daemon names no tool: it runs whatever the file says, in the project. Per
7
- * user, since `.the-framework/` is ignored: a hook is this machine's, and a teammate's pull
8
- * changes nothing.
9
- *
10
- * Optional, best-effort and bounded: no file means nothing runs, a broken file is a warning, an
11
- * `open` or `close` line that fails or hangs is logged and the next line still runs, and nothing
12
- * here ever throws to the daemon.
13
- */
14
- /** The hooks file, under the project's ignored `.the-framework/`. */
15
- export declare const PROJECT_HOOKS_FILE = ".the-framework/hooks.yml";
16
- /** How long one line may run before it is killed and logged as timed out. */
17
- export declare const HOOK_TIMEOUT_MS = 60000;
18
- /** When a project's hooks run: `open` when the dashboard starts (and when the project is added while it runs), `close` when it stops. */
19
- export type HookKind = 'open' | 'close';
20
- /**
21
- * The two lines a person's click runs to start or continue a run: `start` begins a run from a
22
- * prompt, `resume` continues an ended one with a text or an answer. One line each, since each
23
- * answers one document on stdout.
24
- */
25
- export type RunHookKind = 'start' | 'resume';
26
- export interface ProjectHooks {
27
- open: string[];
28
- close: string[];
29
- start?: string;
30
- resume?: string;
31
- check?: string;
32
- offset?: string;
33
- switch?: string;
34
- }
35
- /**
36
- * Read a project's hooks. A missing file is no hooks. A file that cannot be parsed or has the
37
- * wrong shape is reported through `onWarn`, prefixed "ignoring", and counts as no hooks.
38
- */
39
- export declare function readProjectHooks(cwd: string, onWarn?: (message: string) => void): Promise<ProjectHooks>;
40
- /**
41
- * Parse the hooks file: a YAML map whose keys are `open` and `close`, each a list of shell lines,
42
- * and `start`, `resume`, `check`, `offset` and `switch`, each one shell line. An empty document is no hooks. Anything else throws, so the reader can warn: a wrong key is
43
- * refused rather than ignored, because a misspelled `open` would otherwise be a hook that
44
- * silently never runs.
45
- */
46
- export declare function parseProjectHooks(raw: string, source?: string): ProjectHooks;
47
- export interface RunHooksOptions {
48
- /** Where each line's outcome and the tool's stderr go; default nowhere. */
49
- log?: (line: string) => void;
50
- /** How long one line may run; default {@link HOOK_TIMEOUT_MS}. */
51
- timeoutMs?: number;
52
- /** The environment the lines run with; default the daemon's own. */
53
- env?: NodeJS.ProcessEnv;
54
- }
55
- /**
56
- * Run a project's `open` or `close` lines, in order, each through `sh -c` with the project's
57
- * root as working directory. A line that exits non-zero, times out or cannot start is logged and
58
- * the next line still runs; the lines' stderr is logged too, since a tool's one line for a person
59
- * goes there. Never throws.
60
- */
61
- export declare function runProjectHooks(cwd: string, kind: HookKind, opts?: RunHooksOptions): Promise<void>;
62
- /** What a `start` line is given: the prompt, the coding agent and model when the person picked them, and the follow-up when there is one. */
63
- export interface StartHookInput {
64
- prompt: string;
65
- driver?: string;
66
- model?: string;
67
- /** A fresh agent's prompt once the run ends done with a pull request; the merge waits for it. */
68
- then?: string;
69
- }
70
- /** What a `resume` line is given: the run, and the person's text or their answer to the question it ended on. */
71
- export type ResumeHookInput = {
72
- runId: string;
73
- } & ({
74
- text: string;
75
- } | {
76
- answer: string;
77
- });
78
- export type RunHookResult = {
79
- ok: true;
80
- id: string;
81
- } | {
82
- ok: false;
83
- error: string;
84
- };
85
- /**
86
- * Run the project's `start` line: the prompt in `PROMPT`, the picks in `DRIVER` and `MODEL` when
87
- * made, the follow-up in `THEN` when there is one. The line answers one JSON document on stdout
88
- * whose `id` names the run it started.
89
- */
90
- export declare function runStartHook(cwd: string, input: StartHookInput, opts?: Omit<RunHooksOptions, 'log'>): Promise<RunHookResult>;
91
- /**
92
- * Run the project's `resume` line: the run in `RUN_ID`, and the person's words in `TEXT` or their
93
- * answer in `ANSWER`. The line answers like a `start` line, naming the run it continued.
94
- */
95
- export declare function runResumeHook(cwd: string, input: ResumeHookInput, opts?: Omit<RunHooksOptions, 'log'>): Promise<RunHookResult>;
96
- /** What stands in the way of a run: problems stop it, warnings do not. One line each, each naming its fix. */
97
- export interface StartReadiness {
98
- problems: string[];
99
- warnings: string[];
100
- }
101
- /** How a `check` line went; `noHook` when the project's file names no such line. */
102
- export type CheckHookResult = ({
103
- ok: true;
104
- } & StartReadiness) | {
105
- ok: false;
106
- error: string;
107
- noHook?: true;
108
- };
109
- /**
110
- * Run the project's `check` line: the coding agent the person picked in `DRIVER`, when picked.
111
- * The line answers one JSON document on stdout with `problems` and `warnings`, lists of lines.
112
- */
113
- export declare function runCheckHook(cwd: string, input: {
114
- driver?: string;
115
- }, opts?: Omit<RunHooksOptions, 'log'>): Promise<CheckHookResult>;
116
- /** How a setting line (`offset`, `switch`) went; `noHook` when the project's file names no such line. */
117
- export type SettingHookResult = {
118
- ok: true;
119
- } | {
120
- ok: false;
121
- error: string;
122
- noHook?: true;
123
- };
124
- /**
125
- * Run the project's `offset` line: the percentage points in `POINTS`, how far past the quota
126
- * boundary the project's unattended work may go. Exit 0 is done; the line answers nothing else.
127
- */
128
- export declare function runOffsetHook(cwd: string, points: number, opts?: Omit<RunHooksOptions, 'log'>): Promise<SettingHookResult>;
129
- /**
130
- * Run the project's `switch` line: the scheduled command in `COMMAND`, and `on` or `off` in
131
- * `SWITCH`, whether it runs on this machine. Exit 0 is done; the line answers nothing else.
132
- */
133
- export declare function runSwitchHook(cwd: string, command: string, on: boolean, opts?: Omit<RunHooksOptions, 'log'>): Promise<SettingHookResult>;
@@ -1,29 +0,0 @@
1
- import { type CustomPreset } from './registry.js';
2
- import { type StoreFs } from './store/index.js';
3
- /**
4
- * Project-scoped custom presets (#1025).
5
- *
6
- * The user tier (#626) saves a custom preset to the user's home file, so it follows the person
7
- * across every project and stays private. The project tier saves it into the repo instead, so it
8
- * travels with the code and everyone who clones the repo gets it — the "share your presets" half
9
- * of the issue.
10
- *
11
- * The store is a plain JSON array of {@link CustomPreset}, the exact shape the user tier uses, so
12
- * the dashboard renders both from one type and the same sanitizer guards both files.
13
- */
14
- /** The committed file holding a project's shared custom presets, under `.the-framework/`. */
15
- export declare const PROJECT_PRESETS_FILE = ".the-framework/custom-presets.json";
16
- /**
17
- * Read a project's shared custom presets. Forgiving like every other read here: a missing,
18
- * unreadable or malformed file yields `[]`, never throws, and the same sanitizer that guards
19
- * the home file drops any hand-edited or hostile entry.
20
- */
21
- export declare function readProjectPresets(cwd: string, fs?: StoreFs): Promise<CustomPreset[]>;
22
- /**
23
- * Write a project's shared custom presets, sanitizing first so the committed file is always
24
- * well-formed. Also ensures `.the-framework/.gitignore` un-ignores the file: the dir's ignore is
25
- * `*` + `!.gitignore` (nothing else is tracked by default), so without a negation git would
26
- * never see the presets and they could not be shared. Removing every preset writes an empty array
27
- * rather than deleting the file, so the negation stays in place for the next save.
28
- */
29
- export declare function writeProjectPresets(cwd: string, presets: CustomPreset[], fs?: StoreFs): Promise<void>;
@@ -1,45 +0,0 @@
1
- import { type PackageCommandResult } from '@gemstack/agent-data';
2
- /**
3
- * A dashboard widget one of a project's packages brings (#1774): the package's own browser module,
4
- * named by its `exports["./dashboard"]`. The framework names no package: any dependency of the
5
- * project that exports `./dashboard` is a widget, whoever wrote it.
6
- */
7
- export interface ProjectWidget {
8
- /** The package's name, as the project's package.json lists it. */
9
- package: string;
10
- /** The package's version, when its package.json says one. */
11
- version?: string;
12
- /** The directory the widget's module sits in, symlinks resolved: the only directory served for it. */
13
- dir: string;
14
- /** The widget module's file name inside {@link dir}. */
15
- entry: string;
16
- /** The package's commands, by name, as absolute paths: what the widget may run in this project. */
17
- bins: Record<string, string>;
18
- }
19
- /**
20
- * The widgets a project's packages bring: each of the project's dependencies whose package.json
21
- * exports `./dashboard` to a file that exists inside the package. Sorted by name.
22
- */
23
- export declare function readProjectWidgets(root: string): Promise<ProjectWidget[]>;
24
- /** The one widget of this project that `name` names, or undefined. */
25
- export declare function findProjectWidget(root: string, name: string): Promise<ProjectWidget | undefined>;
26
- /**
27
- * The file a widget serves at `rel`, a path relative to its module's directory: its module, its
28
- * stylesheet, a chunk. `undefined` for a path that leaves that directory (symlinks resolved) or
29
- * names no file, so nothing else of the package, and nothing of the project, is ever served.
30
- */
31
- export declare function widgetFile(widget: ProjectWidget, rel: string): Promise<string | undefined>;
32
- /** What a widget's command answered: its JSON output, or why there is none. */
33
- export type WidgetCommandResult = PackageCommandResult;
34
- /**
35
- * Run one of a widget package's own commands in the project, with the given arguments, and read
36
- * its standard output as JSON. This is how a widget reads its data: the same command an agent runs
37
- * (`npx logs`), so the widget and the agent see the same thing and the framework knows neither.
38
- *
39
- * `command` picks one of the package's commands; a package with exactly one needs none. The
40
- * command runs with Node (a package's commands are Node scripts), in the project root, never
41
- * through a shell, bounded in time and output. Refused: a command the package does not have, too
42
- * many or too long arguments. A command that exits non-zero answers its last stderr line; one that
43
- * prints no JSON says so.
44
- */
45
- export declare function runWidgetCommand(root: string, widget: ProjectWidget, args: readonly string[], command?: string): Promise<WidgetCommandResult>;
@@ -1,28 +0,0 @@
1
- import { type GitRunner } from '@gemstack/agent-data';
2
- /**
3
- * Project-level repo helpers (#380): the activation marker check and a
4
- * `git ls-files` crawl. Read-only
5
- * building blocks for the sidebars (#314); activation/install (writing the
6
- * marker, the install commit) is a separate, deferred concern.
7
- */
8
- /** Minimal fs seam so activation is unit-testable without touching disk. */
9
- export interface ProjectFs {
10
- /** True when `path` exists AND is a file. */
11
- exists(path: string): Promise<boolean>;
12
- }
13
- /**
14
- * A repo is "activated"/installed for The Framework when it has the
15
- * `.the-framework/.gitignore` install writes — the same marker install's own
16
- * no-op check reads (#1600), so a `.the-framework/` directory something else
17
- * created can never read as activated while the repo still lacks the ignore
18
- * file that keeps framework state off its branches. Read-only check; writing
19
- * the marker + the install commit is a separate, deferred concern.
20
- */
21
- export declare function isActivated(cwd: string, fs?: ProjectFs): Promise<boolean>;
22
- /**
23
- * List every file git sees in the repo at `cwd`: tracked + untracked, honoring
24
- * .gitignore. Uses `git ls-files -z --cached --others --exclude-standard` (the
25
- * same approach Vike uses). Returns repo-relative paths, deduped and sorted.
26
- * Forgiving: a non-repo / missing git / any failure yields `[]`, never throws.
27
- */
28
- export declare function crawlRepoFiles(cwd: string, agent?: GitRunner): Promise<string[]>;
@@ -1,115 +0,0 @@
1
- /**
2
- * The quota boundary (#879): how much of the account's week The Framework may
3
- * have spent by now.
4
- *
5
- * The whole policy is one line — the boundary is the pro-rated share of the week's allowance that
6
- * has elapsed, rising continuously with the clock rather than once a day (#960 Edit) — and it
7
- * replaces the configurable limits of #519. There is nothing to configure: the boundary is derived
8
- * from the account's own week, which the agent reports.
9
- *
10
- * Two properties fall out of it, and they are the point:
11
- * - Nothing is left on the floor. The boundary rises on its own and reaches the full allowance
12
- * exactly as the week resets, so a quiet week still gets spent rather than expiring.
13
- * - Low-priority work cannot starve high-priority work. Work the user asks for
14
- * borrows against the days still to come; unattended work stands down once it
15
- * passes the boundary, by default a half-day cushion beyond it (#960 Edit) —
16
- * see {@link QuotaLimit}.
17
- */
18
- import type { DriverQuotaWindow } from 'agent-driver';
19
- /** The quota week, in ms. */
20
- export declare const QUOTA_WEEK_MS: number;
21
- /** Where the boundary sits, and the week it is derived from. */
22
- export interface QuotaBoundary {
23
- /** When the current quota week began, epoch ms. */
24
- startsAt: number;
25
- /** When it resets, epoch ms. */
26
- resetsAt: number;
27
- /** Which day of the week we are on, 1-7. */
28
- day: number;
29
- /** The share of the week's allowance that may be spent by now, 0-100. */
30
- percent: number;
31
- }
32
- /**
33
- * Parse the agent's reset prose into an epoch.
34
- *
35
- * The agent prints no year (`Jul 25 at 7am (Asia/Jerusalem)`), which is why the
36
- * driver keeps this as text. It is recoverable here because we know something
37
- * the driver does not: a *weekly* window resets within seven days, so of the
38
- * candidate years exactly one lands anywhere near now.
39
- *
40
- * `undefined` for anything that does not parse, which the callers treat as "we
41
- * do not know where the week is" rather than as a boundary of zero.
42
- */
43
- export declare function parseResetsAt(text: string, now: number): number | undefined;
44
- /**
45
- * Where the boundary sits, given when the week resets.
46
- *
47
- * `percent` is continuous — the plain elapsed share of the week (#960 Edit) — rather than a value
48
- * that jumps once a day, so it always names the actual instant `now` falls on, on any axis that
49
- * measures the week the same way. A stepped version once unlocked a whole day's allowance the
50
- * moment a new day began (including the entire week's worth on the last day), which read as
51
- * generous on paper but let a burst of spending land the instant the clock ticked over rather than
52
- * pacing with it; continuous keeps the line honest about what has actually elapsed at the cost of
53
- * that burst.
54
- *
55
- * `day` is 1-based and still names which day of the week `now` falls on — for callers that want to
56
- * say "day 4 of 7" rather than a percentage — and steps at the exact second the week's own day
57
- * rolls over, independently of `percent`.
58
- */
59
- export declare function boundaryFromResetsAt(resetsAt: number, now: number): QuotaBoundary;
60
- /** One quota window measured against the boundary. */
61
- export interface BoundaryWindow {
62
- /** The window's own label, as the agent phrased it. */
63
- label: string;
64
- /** How much of it is gone, 0-100. */
65
- percentUsed: number;
66
- /** Whether it has reached the limit in force. */
67
- reached: boolean;
68
- }
69
- /**
70
- * The line unattended work actually stops at (#960).
71
- *
72
- * The boundary is the policy; this is the policy plus whatever the user asked for with the
73
- * slider. They are separate values because the panel draws both: moving your own limit should
74
- * not silently redraw the boundary it is measured against.
75
- */
76
- export interface QuotaLimit {
77
- /** Where the limit sits, 0-100. */
78
- percent: number;
79
- /** How far it is from the boundary, in percentage points. `0` is the default policy. */
80
- offset: number;
81
- }
82
- /** Where the account stands against its boundary. */
83
- export interface QuotaBoundaryStatus {
84
- boundary: QuotaBoundary;
85
- /** The line in force, which is the boundary unless the user moved it (#960). */
86
- limit: QuotaLimit;
87
- /** The windows in force: the account's week, plus the selected model's own week when we can tell which it is. */
88
- windows: BoundaryWindow[];
89
- /** The window that has reached the limit, or `null` while there is room. */
90
- reached: BoundaryWindow | null;
91
- }
92
- /**
93
- * Measure the account's windows against the boundary (#879).
94
- *
95
- * Both weekly windows bind at once — the account's week and, per Rom's edit, the
96
- * selected model's own week — so each is measured against the same boundary and
97
- * whichever reaches it first is the one that stops the work. The model's window
98
- * is only included when we can tell which model it belongs to; an unrecognized
99
- * one is left out rather than allowed to stop work for a model nobody selected.
100
- *
101
- * `undefined` when there is no reading, or when the week's reset cannot be
102
- * placed. That is "we do not know", and each caller decides what to do with it:
103
- * the per-agent guard carries on, unattended work stands down.
104
- */
105
- export declare function quotaBoundaryStatus(input: {
106
- windows: DriverQuotaWindow[];
107
- now: number;
108
- /** The model the work will run on, e.g. `claude-fable-5`. Its own week joins the gate when given. */
109
- model?: string;
110
- /**
111
- * How far the automatic-consumption limit sits from the boundary, in percentage points (#960).
112
- * Omitted or `0` is the spend-boundary policy (#879): the limit *is* the boundary.
113
- */
114
- limitOffset?: number;
115
- }): QuotaBoundaryStatus | undefined;
@@ -1,82 +0,0 @@
1
- import { type DriverQuota } from 'agent-driver';
2
- /**
3
- * How often to read the quota when everything is healthy. A read spawns the
4
- * whole agent CLI (~5s), and the agent's own usage fetch is refused upstream if
5
- * asked too often, so this is deliberately slow: the boundary moves over days,
6
- * which a 5-minute sample rate resolves comfortably.
7
- */
8
- export declare const DEFAULT_POLL_MS: number;
9
- /** Longest gap between reads once backoff has stretched it. */
10
- export declare const MAX_POLL_MS: number;
11
- /**
12
- * What the poller currently believes about the account's quota.
13
- *
14
- * `latest` is the last attempt as it came back; `lastGood` is the last real
15
- * reading. The two are separate so a transient blip doesn't blank a number that
16
- * was accurate a minute ago — a bar going empty reads as "nothing used", which
17
- * is the one thing this feature must never imply.
18
- */
19
- export interface QuotaEnvelope {
20
- /** The most recent attempt, exactly as it came back. `undefined` before the first. */
21
- latest: DriverQuota | undefined;
22
- /** The most recent successful reading, retained across transient failures. */
23
- lastGood: (DriverQuota & {
24
- available: true;
25
- }) | undefined;
26
- /** When {@link lastGood} was read, epoch ms. */
27
- lastGoodAt: number | undefined;
28
- /** When the last failure happened, epoch ms. */
29
- lastFailureAt: number | undefined;
30
- }
31
- /** Options for {@link QuotaPoller}. */
32
- export interface QuotaPollerOptions {
33
- /** Read the quota once. Normally `driver.readQuota`. */
34
- read: () => Promise<DriverQuota>;
35
- /** Healthy interval. Default {@link DEFAULT_POLL_MS}. */
36
- intervalMs?: number;
37
- /** Ceiling for the backed-off interval. Default {@link MAX_POLL_MS}. */
38
- maxIntervalMs?: number;
39
- /** Clock, injectable for tests. */
40
- now?: () => number;
41
- }
42
- /**
43
- * Keeps a recent quota reading on hand (#525).
44
- *
45
- * Polling is slow by design and backs *off* on failure rather than retrying
46
- * into it: the agent's usage fetch is refused upstream when asked too often,
47
- * and the penalty window is minutes long, so an eager retry loop would keep the
48
- * number permanently unavailable — the opposite of the goal.
49
- */
50
- export declare class QuotaPoller {
51
- private readonly opts;
52
- private envelope;
53
- private timer;
54
- private running;
55
- private currentIntervalMs;
56
- private stopped;
57
- private readonly now;
58
- constructor(opts: QuotaPollerOptions);
59
- /** What we currently believe. */
60
- current(): QuotaEnvelope;
61
- /** The gap before the next read, which grows while the fetch keeps being refused. */
62
- get intervalMs(): number;
63
- /** Whether the poller has given up (an authoritative failure, or {@link stop}). */
64
- get isStopped(): boolean;
65
- /**
66
- * Read once, now, and fold the result in. Safe to call on demand (e.g. right
67
- * after a turn settles) alongside the timer.
68
- */
69
- poll(): Promise<DriverQuota>;
70
- /**
71
- * Begin polling, starting with a read right now rather than one interval from
72
- * now: a poller whose first reading lands five minutes in is no use to an agent
73
- * that just started, and the session's own measurement needs a baseline. Not
74
- * awaited — the read takes ~5s and nothing should wait on it. Idempotent.
75
- */
76
- start(): void;
77
- /** Stop polling. Idempotent. */
78
- stop(): void;
79
- private onGood;
80
- private onBad;
81
- private schedule;
82
- }
@@ -1,210 +0,0 @@
1
- /**
2
- * The multi-project registry (#390): the list of projects the user has
3
- * installed The Framework into, kept as a single JSON file `.bashrc`-style —
4
- * `$HOME/.the-framework.json` — so it is the user's responsibility to re-create
5
- * per machine. The same file also holds the user's dashboard preferences (#410),
6
- * so the daemon owns one user file and the UI never needs localStorage.
7
- */
8
- /** One registered project. */
9
- export interface ProjectRecord {
10
- /** Stable, URL-safe id derived from the path. */
11
- id: string;
12
- /** Absolute repo path. */
13
- path: string;
14
- /** ISO timestamp the project was added. */
15
- addedAt: string;
16
- }
17
- /**
18
- * The dashboard's Global options (#410), persisted next to the project list so they
19
- * survive restarts without localStorage — the daemon reads/writes them, the SPA reads
20
- * them over `POST /_rpc/onPreferences`. Mostly flat booleans mirroring the Start form's
21
- * toggles; every field is optional and absent means off, except where a field documents its
22
- * own default below.
23
- */
24
- /**
25
- * A user-defined preset (#626): a named prompt the user saved to re-run their own high-signal
26
- * prompts, listed as a saved prompt in the launcher's Commands menu beside the project's commands.
27
- * Just data — the label is the menu item, the prompt is loaded verbatim into the editor. `id` is
28
- * stable so edits/deletes address one.
29
- */
30
- export interface CustomPreset {
31
- id: string;
32
- label: string;
33
- prompt: string;
34
- }
35
- export interface Preferences {
36
- /** Fire a browser notification when a new item lands on the "needs you" queue (#627). Absent = on. */
37
- notifyBrowser?: boolean;
38
- /**
39
- * Also notify on plain agent activity — an agent started, an agent finished (#627). The default-off
40
- * counterpart to the always-on "needs you" notifications: it keeps you loosely informed of the
41
- * pipeline moving even when nothing needs you. A *category* toggle: it composes with the method
42
- * toggle {@link notifyBrowser}.
43
- */
44
- notifyNewActivity?: boolean;
45
- /**
46
- * The "needs you" category (#627): notify when an agent is awaiting your answer or a PR is ready
47
- * to review. A *category* toggle, like {@link notifyNewActivity}, composing with the method
48
- * toggle {@link notifyBrowser}. **Absent = on**: unlike the other
49
- * flat opt-in booleans, human-intervention pings are the baseline The Framework leans on, so an
50
- * unset preference keeps them firing; a user turns them off explicitly.
51
- */
52
- notifyHumanIntervention?: boolean;
53
- /** The model to run on (#628), e.g. `opus` / `sonnet`, handed to the project's start hook. Absent = the hook's own default. */
54
- model?: string;
55
- /** Which coding agent a run starts on (#650): `claude-code` or `codex`, handed to the project's start hook. Absent = the hook's own default. */
56
- driver?: string;
57
- /**
58
- * Post-merge cleanup: a run started from the launcher, in a project that has the
59
- * `post-merge-cleanup` command, is followed by a fresh agent running it on the run's branch
60
- * before the run's pull request merges. The default of the launcher's box, which writes it
61
- * too. **Absent = off.**
62
- */
63
- postMergeCleanup?: boolean;
64
- /** Preferred editor for "Open in editor" (#727): an editor CLI (e.g. `code`, `cursor`, `zed`).
65
- * Absent falls back to `$FRAMEWORK_EDITOR`, then `code`. */
66
- editor?: string;
67
- /** Dashboard color theme (#725): `system` (follow the OS, the default), `light`, or `dark`. Absent = system. */
68
- theme?: 'system' | 'light' | 'dark';
69
- /**
70
- * The browser bridge (#1237): let an extension running in the user's own Claude session report
71
- * the question a Claude web agent is parked on, so it shows in the dashboard rather than only on
72
- * claude.ai. **Absent = off.** It opens the daemon's one route reachable from another origin,
73
- * so it is opt-in rather than a baseline, and turning it on is what mints the bridge token.
74
- */
75
- bridge?: boolean;
76
- /**
77
- * The bridge browser (#1332): let the daemon run its own Chrome for Testing with the bridge
78
- * extension installed, signed in once and kept minimized, so web runs stop depending on the
79
- * user's own Chrome being open. **Absent = off**: it downloads a browser and keeps a signed-in
80
- * claude.ai session on disk, neither of which should happen unasked. Needs {@link bridge}.
81
- */
82
- bridgeBrowser?: boolean;
83
- /** User-defined presets (#626): the user's own saved prompts, shown in the Commands menu beside the project's commands. */
84
- customPresets?: CustomPreset[];
85
- /**
86
- * Whether the Overview's Onboarding checklist has been dismissed (#958). Absent = show it,
87
- * so a fresh install is walked through setup; dismissing only hides it on the Overview, and
88
- * the same checklist stays available on the settings page.
89
- */
90
- onboardingDismissed?: boolean;
91
- }
92
- /** The persisted registry file shape (#410): the project list plus the user preferences. */
93
- export interface Registry {
94
- projects: ProjectRecord[];
95
- preferences: Preferences;
96
- /**
97
- * The shared daemon token (#1051): generated on the first non-loopback bind and reused after.
98
- * A top-level field, deliberately not a {@link Preferences} one, so it is never shipped to the
99
- * browser bundle. Absent on a loopback-only machine.
100
- */
101
- daemonToken?: string;
102
- }
103
- /** A read/write handle for the user preferences, wired into the dashboard's context by the daemon. */
104
- export interface PreferencesStore {
105
- read(): Promise<Preferences>;
106
- save(preferences: Preferences): Promise<void>;
107
- /**
108
- * Merge only the keys the caller changed (#1148) and hand back the stored result. Preferred over
109
- * {@link save}, which replaces the whole block from a snapshot that may already be stale.
110
- */
111
- patch(patch: Preferences): Promise<Preferences>;
112
- }
113
- /** The registry file name: a single file under `$XDG_CONFIG_HOME` (dotted under `$HOME`). */
114
- export declare const REGISTRY_FILE = "the-framework.json";
115
- /** Owner read/write only: the file holds the daemon token (#1051). */
116
- export declare const REGISTRY_FILE_MODE = 384;
117
- /**
118
- * Deterministic, URL-safe id for a project path: the sanitized basename plus a
119
- * short hash of the full path, so two repos named alike still get distinct ids.
120
- * Pure; same path always yields the same id.
121
- */
122
- export declare function projectId(path: string): string;
123
- /**
124
- * The registry file path, resolved from `env` (injectable so tests never touch
125
- * the real home): `$XDG_CONFIG_HOME/the-framework.json` when set, else the
126
- * dotted `$HOME/.the-framework.json`. A single file, not a directory (#390).
127
- */
128
- export declare function registryPath(env: NodeJS.ProcessEnv): string;
129
- /** Minimal fs seam so the registry is unit-testable without touching disk. */
130
- export interface RegistryFs {
131
- /** Rejects when the file is absent. */
132
- read(path: string): Promise<string>;
133
- write(path: string, contents: string): Promise<void>;
134
- /** Recursive; used on the registry file's parent dir. */
135
- mkdir(path: string): Promise<void>;
136
- /**
137
- * Replace `to` with `from`, atomically. Optional only so an existing implementation of this
138
- * seam keeps compiling; without it {@link writeRegistry} falls back to the truncate-then-write
139
- * this method exists to avoid (#991).
140
- */
141
- rename?(from: string, to: string): Promise<void>;
142
- /**
143
- * Narrow a file's permissions. Optional, and best-effort at the call site: this file holds the
144
- * daemon token (#1051), so it is written owner-only — but a
145
- * filesystem that cannot express that (Windows, a FAT volume) must not fail the write.
146
- */
147
- chmod?(path: string, mode: number): Promise<void>;
148
- }
149
- /** A {@link RegistryFs} backed by `node:fs/promises`. See {@link nodeFs}. */
150
- export declare function nodeRegistryFs(): RegistryFs;
151
- /**
152
- * Keep only well-formed custom presets (#626): each needs a non-empty id, label, and prompt;
153
- * label/prompt are trimmed and length-capped, the list capped at {@link CUSTOM_PRESET_LIMITS.count},
154
- * and duplicate ids dropped. A malformed entry is skipped, not thrown — a bad registry never breaks the read.
155
- */
156
- export declare function sanitizeCustomPresets(value: unknown): CustomPreset[];
157
- /**
158
- * Read the whole registry. Forgiving: a missing / unreadable / malformed file — or one in a shape
159
- * this no longer writes — yields an empty registry, never throws. Projects are deduped by resolved
160
- * path and unknown preference fields are dropped.
161
- */
162
- export declare function readRegistry(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<Registry>;
163
- /**
164
- * Read the registry's project list. Forgiving: a missing / unreadable / malformed
165
- * file yields `[]`, never throws. Deduped by resolved path, first wins.
166
- */
167
- export declare function listProjects(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<ProjectRecord[]>;
168
- /**
169
- * Register a project. Idempotent by resolved path: when the path is already
170
- * registered, the existing record is returned untouched (addedAt survives);
171
- * otherwise the new record is appended and the file written back (preferences preserved).
172
- */
173
- export declare function addProject(path: string, addedAt: string, fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<ProjectRecord>;
174
- /** The user's dashboard preferences (#410), or `{}` when none are stored. */
175
- export declare function readPreferences(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<Preferences>;
176
- /** Persist the dashboard preferences (#410), sanitized, preserving the project list. */
177
- export declare function writePreferences(preferences: Preferences, fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<void>;
178
- /**
179
- * Merge `patch` over the stored preferences (#1148) and return the result.
180
- *
181
- * The counterpart to {@link writePreferences}, which replaces the whole block: a client that
182
- * sends its entire snapshot replays every value it happens to hold, so a dashboard tab opened
183
- * before someone else's change silently reverted it on the tab's next write, whatever key that
184
- * write was actually about. Sending only the changed keys makes a write touch only what it names.
185
- *
186
- * Clearing needs no sentinel: {@link sanitizePreferences} already drops blank strings and empty
187
- * lists, so `{ editor: '' }` merges in as blank and comes out absent, which is how the dashboard
188
- * clears the editor today.
189
- */
190
- export declare function patchPreferences(patch: Preferences, fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<Preferences>;
191
- /**
192
- * The shared daemon token (#1051): read the persisted one, or generate + persist it now. Called
193
- * only on a non-loopback bind, so a loopback-only machine never grows one. Serialized with the
194
- * other mutators so two concurrent binds can't each write a different token. `base64url` of 32
195
- * random bytes: URL-safe, so it drops straight into a `?token=` without encoding.
196
- */
197
- export declare function ensureDaemonToken(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<string>;
198
- /** The persisted daemon token (#1051), or `undefined` when none exists. A pure read, so a process
199
- * that only prints the reachable URL never generates one. */
200
- export declare function readDaemonToken(fs?: RegistryFs, env?: NodeJS.ProcessEnv): Promise<string | undefined>;
201
- /** A {@link PreferencesStore} bound to the real registry file, wired by the daemon so the
202
- * dashboard's preferences RPCs read/write the user's home file.
203
- *
204
- * `onChange` is handed **the keys the caller wrote**, not the merged result, so a listener can
205
- * tell "this write switched the setting on" from "it was already on and something else changed"
206
- * (#1161). It runs after the write has landed, and its failure is swallowed: the save succeeded,
207
- * and a listener must not be able to report otherwise: a setting saved in the browser has to
208
- * reach the daemon's own services without a restart.
209
- */
210
- export declare function registryPreferencesStore(fs?: RegistryFs, env?: NodeJS.ProcessEnv, onChange?: (written: Preferences) => void): PreferencesStore;