@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,94 +0,0 @@
1
- import { EventStream } from '../event-stream.js';
2
- import type { FrameworkEvent } from '../events.js';
3
- import type { AgentMeta } from '../store/index.js';
4
- import type { StartAgentOptions, StartAgentResult } from './types.js';
5
- /**
6
- * The server-side half of "run on a connected device" (#1067). The local daemon holds the saved
7
- * device's token, so it - not the browser - drives the remote daemon: it POSTs the agent to the
8
- * remote's `/_relay/start` and then fetch-streams the remote's `/_relay/events` back into a local
9
- * {@link EventStream}, which the dashboard reads over its normal same-origin `onEvents` channel. So
10
- * the browser never talks cross-origin and the token never leaves the two daemons (issue #1067 (b)).
11
- *
12
- * Authentication is the shared-token cookie (#1051), sent daemon-to-daemon: `Cookie: fw_daemon=<token>` with no
13
- * `Origin` header. The remote's guard admits a matching cookie without the browser-only `?token=`
14
- * 302, and its `/_rpc` CSRF check (absent Origin passes) is not even on these raw routes.
15
- */
16
- /** Where a relayed agent executes: the remote daemon's origin and its #1051 token. Memory-only. */
17
- export interface RemoteTarget {
18
- url: string;
19
- token: string;
20
- }
21
- /** The body a relay start forwards to the remote's `/_relay/start`. */
22
- export interface RelayStartBody {
23
- prompt: string;
24
- options: StartAgentOptions;
25
- }
26
- /**
27
- * Health-check a saved device (#1072): a cookie'd `GET /_relay/ping`, true on any 2xx, false on a
28
- * non-2xx, an unreachable host, or the timeout. The token stays in memory for the check only, never
29
- * persisted, same as {@link startRemoteAgent}. This is how the browser's status dots learn reachable
30
- * from not: it has the tokens, the daemon does the cross-origin request.
31
- */
32
- export declare function pingRemote(target: RemoteTarget): Promise<boolean>;
33
- /**
34
- * Start an agent on the remote daemon and return its {@link StartAgentResult} (with the remote's own run
35
- * id). A non-2xx or a transport failure surfaces as an `ok: false` result the dashboard shows, the
36
- * same shape a local refusal has, so the caller does not special-case remote errors.
37
- */
38
- export declare function startRemoteAgent(target: RemoteTarget, body: RelayStartBody): Promise<StartAgentResult>;
39
- /**
40
- * Relay one run-scoped RPC to the device that owns a remote agent (#1067 slice 2). The local daemon
41
- * holds the device token, so a read/diff/handoff/push/PR for a relayed agent runs ON the device: POST
42
- * {fn, args} to the remote's /_relay/rpc over the shared-token cookie (#1051) (no Origin), returning the device's
43
- * result. Throws on an unreachable device or a non-2xx so the caller falls back to its own empty/error
44
- * shape, the same way a failed local read does.
45
- */
46
- export declare function relayRpc(target: RemoteTarget, fn: string, args: unknown[]): Promise<unknown>;
47
- /**
48
- * Fetch-stream a remote agent's newline-delimited events into `onEvent` until the remote closes the
49
- * body, the agent ends, or `cancel()` is called. A 401 (the token was rotated) ends the stream
50
- * cleanly rather than as an error, so the dashboard sees a normal `done`, not a lost connection.
51
- * Returns a cancel function; calling it aborts the fetch and releases the reader.
52
- */
53
- export declare function streamRemoteEvents(target: RemoteTarget, agentId: string, onEvent: (event: FrameworkEvent) => void, onEnd?: () => void): () => void;
54
- /**
55
- * The local daemon's live relayed runs (#1067), keyed by the remote agent id. Registering an agent opens
56
- * an {@link EventStream} the dashboard reads through `onEvents`, fed by {@link streamRemoteEvents}
57
- * from the remote. This map is where a saved device's token lives daemon-side: in memory, for the
58
- * run's lifetime.
59
- *
60
- * The `targets` map outlives the event pump (#1067 slice 2): a finished remote agent's post-run reads,
61
- * open-PR and merge still have to reach the device after its event stream has ended, so the device
62
- * target is kept until {@link dispose} clears it, not dropped when the stream closes.
63
- *
64
- * The `metas` map (#1077) holds a local {@link AgentMeta} stub per relayed agent so `onAgents` can show a
65
- * remote run in the session list and re-open it after a dashboard reload; {@link list} projects it
66
- * per project. Same lifetime as `targets`: it outlives the event stream and is cleared on dispose.
67
- */
68
- export declare class RelayedAgents {
69
- private readonly agents;
70
- private readonly targets;
71
- private readonly metas;
72
- /** Open a local stream for a remote agent and start pumping the remote's events into it. */
73
- register(agentId: string, target: RemoteTarget, meta: AgentMeta, projectId: string): void;
74
- /** The live event stream for a relayed agent, or undefined when this daemon is not relaying it. */
75
- get(agentId: string | undefined): EventStream<FrameworkEvent> | undefined;
76
- /** The device a relayed agent runs on, kept past the event stream so post-run push/PR still reach it. */
77
- target(agentId: string | undefined): RemoteTarget | undefined;
78
- /** A project's relayed run stubs (#1077), newest-first, so `onAgents` can surface them in the list. */
79
- list(projectId: string): AgentMeta[];
80
- /** Fold each relayed event into the agent's list row via the store's own reducer (#1077), so the
81
- * local stub mirrors the device: the terminal status on `end`, the waiting flag while it is parked
82
- * (#785), the driver once its session starts. Events carry no write time, so this stamps its own. */
83
- private apply;
84
- /** Close a relayed agent's event stream (not its target). Idempotent. */
85
- private endStream;
86
- /** Stop every pump, close every stream, and forget every device target + list stub, on daemon shutdown. */
87
- dispose(): void;
88
- }
89
- /**
90
- * Fold one relayed event into the memory-only row of a run on a device: what the device's own
91
- * card would say, kept here because that card is on the device. The events are the ones a run's
92
- * diary yields: the agent's session id, its cost, its end.
93
- */
94
- export declare function foldRelayedEvent(meta: AgentMeta, event: FrameworkEvent, at: string): AgentMeta;
@@ -1,102 +0,0 @@
1
- import type { IncomingMessage, ServerResponse } from 'node:http';
2
- import type { FrameworkEvent } from '../events.js';
3
- import type { PreferencesStore } from '../registry.js';
4
- import type { QuotaSource } from './quota.js';
5
- import type { ModelsSource } from './models.js';
6
- import type { BridgeBrowserOwner } from '../bridge-browser.js';
7
- import type { ProjectErrorsReader } from '../project-errors.js';
8
- import type { AddProjectResult, StartAgentOptions, StartAgentResult } from './types.js';
9
- import type { AgentMeta } from '../store/index.js';
10
- /** Wired by the daemon so `sendStart` can reach the daemon's own `startAgent` closure. */
11
- export type StartAgentHandler = (prompt: string, options: StartAgentOptions, projectId?: string) => StartAgentResult | Promise<StartAgentResult>;
12
- /** Wired by the daemon so `sendAddProject` can install + register a repo (#433). */
13
- export type AddProjectHandler = (path: string) => AddProjectResult | Promise<AddProjectResult>;
14
- /** Resolve an agent to its live event stream: the relay feeds `onEvents` from its own in-memory stream
15
- * rather than a file on disk (#426), and the daemon feeds an agent it is relaying from a device (#1067).
16
- * Returns undefined when there is no in-memory stream, so `onEvents` falls back to tailing the log. */
17
- export type EventsSource = (projectId: string, agentId?: string) => AsyncIterable<FrameworkEvent> | undefined;
18
- /** Look up the device a relayed agent (#1067) executes on, or undefined for an ordinary local agent. The
19
- * daemon wires this from its live relayed-agent map; a run-scoped RPC uses it to forward a remote agent's
20
- * read/steer/handoff to that device instead of resolving a (nonexistent) local checkout. */
21
- export interface RemoteAgents {
22
- target(agentId: string | undefined): {
23
- url: string;
24
- token: string;
25
- } | undefined;
26
- /** A project's relayed run stubs (#1077), so `onAgents` can show a remote agent in the list and re-open it after a reload. */
27
- list(projectId: string): AgentMeta[];
28
- }
29
- /**
30
- * What every RPC acts through.
31
- *
32
- * Every field is required (D3). These used to be optional because three hosts served this same
33
- * surface — the daemon, a per-session foreground dashboard, and a public relay — each wiring a
34
- * different subset, so every RPC carried an "absent capability" branch and the client rendered a
35
- * degradation matrix. There is one host now, and it wires all of it.
36
- */
37
- export interface DashboardContext {
38
- startAgent: StartAgentHandler;
39
- addProject: AddProjectHandler;
40
- /** The in-memory event stream for an agent relayed from a connected device (#1067), else undefined. */
41
- eventsSource: EventsSource;
42
- /** The relayed-agent lookup (#1067 slice 2), so a run-scoped RPC can tell a local agent from one
43
- * running on a connected device and forward the call there. */
44
- remote: RemoteAgents;
45
- /** The user-preferences store (#410), over the registry file. */
46
- preferences: PreferencesStore;
47
- /** The quota source behind the usage panel (#533). */
48
- quota: QuotaSource;
49
- /** Which models each coding agent offers, for the agent and model menu. */
50
- models: ModelsSource;
51
- /** What a project currently suffers from (#1500): the daemon's error state, read per project. */
52
- projectErrors: ProjectErrorsReader;
53
- /** The daemon's own bridge browser (#1332): status, and show/hide/restart on request. */
54
- bridgeBrowser: BridgeBrowserOwner;
55
- }
56
- /**
57
- * CSRF guard for the state-changing RPCs. A browser attaches an `Origin`
58
- * header to every cross-site request, so we reject any POST whose Origin is not this
59
- * same server (or a loopback host) — otherwise a page on `evil.com` could `fetch()` the
60
- * localhost dashboard and start or steer a run. An absent Origin means a non-browser caller
61
- * (curl, the test suite) with no ambient session to abuse, so it passes. Lives here beside
62
- * the mount, its only caller.
63
- */
64
- export declare function isSameOriginRequest(req: IncomingMessage): boolean;
65
- /**
66
- * DNS-rebinding guard, the other half of the CSRF check above. A page on `evil.com` whose DNS
67
- * re-answers as `127.0.0.1` is *same-origin* with this server as far as the browser is concerned,
68
- * so its `fetch()` takes the passing branch of {@link isSameOriginRequest} — and every RPC behind
69
- * the mount, `sendStart` included, is reachable from a page the user merely visited.
70
- *
71
- * The `Host` header is what still gives the attacker away: it carries the name the browser was
72
- * asked for (`evil.com`), not the address it resolved to. So when we are bound to loopback, the
73
- * only `Host` a real user's browser can send is a loopback one (or the bound address itself) —
74
- * anything else is a rebound name and is rejected. An absent `Host` is rejected too when we are
75
- * enforcing: HTTP/1.1 requires it, and every browser sends it.
76
- *
77
- * A non-loopback bind (`--host`, #1051) is reached by a hostname we cannot predict, so there is
78
- * no allowlist to check against; that case gates behind the shared daemon token instead. Hosts
79
- * that never pass a bind host at all (the relay, which serves a public domain) are unaffected.
80
- */
81
- export declare function isExpectedHost(req: IncomingMessage, boundHost: string | undefined): boolean;
82
- /** Where the dashboard's RPCs live. One prefix, so the static handler can decline it by path. */
83
- export declare const RPC_PREFIX = "/_rpc";
84
- /**
85
- * Mount the dashboard's RPC surface (#405) on the daemon's `node:http` server: `POST /_rpc/<name>`
86
- * for the calls, `GET /_rpc/events` for the live stream. It runs in the daemon process, so
87
- * `sendStart` reaches the daemon's own `startAgent` through the wired {@link DashboardContext}.
88
- *
89
- * Cross-origin POSTs are rejected (CSRF: a page on evil.com must not steer or start a session), as
90
- * are requests carrying someone else's `Host` when we are bound to loopback (DNS rebinding: the
91
- * same page must not reach us by pointing its own name at `127.0.0.1`). Pass `opts.host` — the
92
- * address the server is bound to — to enable that second check. Returns whether the request was
93
- * the RPC surface's.
94
- *
95
- * This replaced Telefunc (F3), which required a build-time transform over every `.telefunc.ts`
96
- * file, a registration table pinning each RPC to the client-baked key of the *dashboard* source
97
- * path it was re-exported from, and a request-context indirection for wiring that never varied
98
- * per request. What it bought over this was type-safety across a package boundary that A7 removed.
99
- */
100
- export declare function makeRpcMount(context: DashboardContext, opts?: {
101
- host?: string;
102
- }): (req: IncomingMessage, res: ServerResponse) => Promise<boolean>;
@@ -1,30 +0,0 @@
1
- import { type InboxLine } from 'agent-driver';
2
- /**
3
- * What a person says to a run (#1774): their own words, or their answer to the question the run
4
- * stopped on. The daemon runs no agent, so the line reaches the run through what the run's tool
5
- * reads: the inbox file in the run's checkout while the run works, the project's `resume` hook
6
- * line once it has ended. The framework names no tool in either.
7
- */
8
- /**
9
- * The inbox of a run, in its checkout's `.the-framework/`: the file agent-driver's session reads
10
- * when a turn ends, one JSON line per message or answer. The run's tool hands the session the
11
- * same path.
12
- */
13
- export declare const RUN_INBOX_FILE = "inbox.jsonl";
14
- /** What a write to a run came to: done, or why not, in words the surface shows. */
15
- export type SteerResult = {
16
- ok: true;
17
- } | {
18
- ok: false;
19
- error: string;
20
- };
21
- /**
22
- * Hand one line to a run of the project at `cwd`. A run that is working takes it from its inbox
23
- * when its turn ends. A run that has ended (done, stopped, failed, or waiting on its question) is
24
- * continued through the project's `resume` hook. A run that ends while the line is on its way
25
- * would leave it in an inbox nobody reads, so the run is looked at again after the write, and
26
- * what is still in the inbox then is taken back and resumes the run instead.
27
- */
28
- export declare function sayToRun(cwd: string, agentId: string, line: InboxLine, deps?: {
29
- isWorking?: (cwd: string, agentId: string) => Promise<boolean>;
30
- }): Promise<SteerResult>;
@@ -1,64 +0,0 @@
1
- import type { ProjectSummary } from './projects.js';
2
- /** The file the scheduler keeps its state in, at the project's root; per user, hidden from git by the tool. */
3
- export declare const SCHEDULER_STATE_FILE = ".agent-scheduler/state.json";
4
- /** What the last tick decided for one scheduled command, one line for a person. */
5
- export interface SchedulerDecision {
6
- command: string;
7
- outcome: string;
8
- /** The run's id when the tick started one: the same id the agent's record and checkout carry. */
9
- run?: string;
10
- }
11
- /** The last tick as the state file remembers it. */
12
- export interface SchedulerTick {
13
- /** ISO timestamp. */
14
- at: string;
15
- decisions: SchedulerDecision[];
16
- /** Why the tick decided nothing, when it could not. */
17
- note?: string;
18
- }
19
- /** One command of the project's schedule, as the scheduler's last tick read it, with this machine's switch. */
20
- export interface SchedulerCommand {
21
- command: string;
22
- /** How often at most, as written (`1d`). */
23
- every?: string;
24
- /** The check, when the line has one. */
25
- when?: string;
26
- /** Whether it runs on this machine: the machine's switch, else what the line says. */
27
- on: boolean;
28
- }
29
- /** A project's scheduler as the card shows it. */
30
- export interface SchedulerState {
31
- /** Whether the state file exists and parses: a project without it has no scheduler set up. */
32
- present: boolean;
33
- /** Whether ticks start agents. */
34
- on: boolean;
35
- /** Whether the scheduler's process outlives the dashboard that started it. */
36
- keepAlive: boolean;
37
- /** Whether the scheduler's own process is alive on this machine. */
38
- running: boolean;
39
- /** The model every run starts on. */
40
- model?: string;
41
- /** How far past the quota boundary this project's unattended runs may start, in percentage points. */
42
- spendOffset?: number;
43
- lastTick?: SchedulerTick;
44
- /** The schedule's commands with their switches; empty until the scheduler has ticked once with a schedule. */
45
- commands: SchedulerCommand[];
46
- }
47
- export interface ProjectScheduler extends SchedulerState {
48
- projectId: string;
49
- projectName: string;
50
- }
51
- /**
52
- * Read one project's scheduler state. `isAlive` is the process probe; injectable so a test can
53
- * decide what "running" means without holding a process.
54
- */
55
- export declare function readSchedulerState(cwd: string, isAlive?: (pid: number) => boolean): Promise<SchedulerState>;
56
- /** Every registered project's scheduler, one row per project in registry order, a failing read as not set up. */
57
- export declare function collectSchedulers(projects: ProjectSummary[], read?: (cwd: string) => Promise<SchedulerState>): Promise<ProjectScheduler[]>;
58
- /**
59
- * The spend offset the usage panel draws (#960), read off the projects' schedulers: the loosest
60
- * one, since it is the one that lets unattended work spend the furthest; `undefined` when no
61
- * scheduler names one. The panel's slider writes it back through each project's `offset` hook,
62
- * so the schedulers agree unless one was set by hand.
63
- */
64
- export declare function loosestSpendOffset(states: readonly SchedulerState[]): number | undefined;
@@ -1,28 +0,0 @@
1
- import { type Ticket, type TicketDetail, type TicketsMeta } from '@gemstack/skill-tickets';
2
- export type { TicketsMeta, TicketGithubLink } from '@gemstack/skill-tickets';
3
- /**
4
- * A ticket as the dashboard shows it: the `tickets` skill's row, with the holder of its claim
5
- * resolved against this project's own agents (#1748). A lock names an agent id — the same id
6
- * the agent's checkout is named with — so a claim the daemon minted, or an agent on this machine
7
- * made with the `tickets` command, resolves to the agent's page and its session name; a holder
8
- * this project has no record of (another machine's agent, a cloud session's branch name) is
9
- * shown as written.
10
- */
11
- export interface WorkspaceTicket extends Ticket {
12
- /** The agent whose id the lock names, when it is one of this project's: its id and, once named, its session name. */
13
- lockedByAgent?: {
14
- id: string;
15
- name?: string;
16
- };
17
- }
18
- /** One ticket with its entire markdown, for its own page. */
19
- export interface WorkspaceTicketDetail extends WorkspaceTicket, TicketDetail {
20
- }
21
- /** The project's tickets, off the skill's checkout under `.branches/agent-data`, holders resolved. */
22
- export declare function readTickets(cwd: string): Promise<WorkspaceTicket[]>;
23
- /** One ticket by filename, full text included; `null` when there is no such ticket. */
24
- export declare function readTicket(cwd: string, file: string): Promise<WorkspaceTicketDetail | null>;
25
- /** Whether the project has any ticket at all (#958): a listing, for the onboarding checklist's poll. */
26
- export declare function hasTickets(cwd: string): Promise<boolean>;
27
- /** When the tickets last caught up with GitHub (#1208), or `{}` when nothing has recorded it. */
28
- export declare function readTicketsMeta(cwd: string): Promise<TicketsMeta>;
@@ -1,99 +0,0 @@
1
- import type { LinkedPr } from './pull-requests.js';
2
- /** The outcome of removing a retained worktree (#737). */
3
- export type RemoveWorktreeResult = {
4
- ok: true;
5
- } | {
6
- ok: false;
7
- error: string;
8
- };
9
- /** The outcome of deleting a session — its records and worktree (#1032). */
10
- export type DeleteAgentResult = {
11
- ok: true;
12
- } | {
13
- ok: false;
14
- error: string;
15
- };
16
- /** The outcome of an add-project attempt (#396): registered, or was already, or why not. */
17
- export type AddProjectResult = {
18
- ok: true;
19
- alreadyActivated: boolean;
20
- } | {
21
- ok: false;
22
- error: string;
23
- };
24
- /**
25
- * What the Onboarding checklist (#958) needs and no other read carries: the server's own
26
- * working directory, offered as the one-click first project.
27
- *
28
- * Both fields are null where adding projects is not wired (the relay), so a public host
29
- * never discloses its filesystem layout.
30
- */
31
- export interface OnboardingSuggestion {
32
- /** The server's working directory, or null when it cannot be offered. */
33
- cwd: string | null;
34
- /** The project id for {@link cwd} when it is already registered, else null. */
35
- cwdProjectId: string | null;
36
- }
37
- /**
38
- * What a Start carries besides its prompt (#1774): the person's picks, handed to the project's
39
- * `start` hook line as `DRIVER` and `MODEL`. Absent leaves each to the tool the line names.
40
- */
41
- export interface StartAgentOptions {
42
- /** The model to run on. */
43
- model?: string;
44
- /** Which coding agent the run is on: `claude-code` or `codex`. */
45
- driver?: string;
46
- /**
47
- * The follow-up's prompt: once the run ends done with a pull request, a fresh agent works its
48
- * branch from it before the request merges. The launcher's "Post-merge cleanup" box.
49
- */
50
- then?: string;
51
- /**
52
- * Run this session on a connected device (#1067): the local daemon relays the start to the remote
53
- * daemon at `url` (authenticating with `token` as the `fw_daemon` cookie) and streams its events
54
- * back into the local agent view. The device `label` rides along (memory-only, like `url`/`token`) so
55
- * the local session list + notice can show which device the agent is on after a reload (#1077).
56
- * Memory-only relay config the dashboard sets at submit time from a saved device. NEVER persisted to
57
- * Preferences or the registry: a device token is a per-browser secret. Absent = run locally.
58
- * Stripped before the start is forwarded, so the remote starts an ordinary local run and does not
59
- * relay onward.
60
- */
61
- remote?: {
62
- url: string;
63
- token: string;
64
- label?: string;
65
- };
66
- }
67
- /** The outcome of a Start attempt (#345): the id of the run the project's start hook began, or why there is none. */
68
- export type StartAgentResult = {
69
- ok: true;
70
- agentId: string;
71
- } | {
72
- ok: false;
73
- error: string;
74
- };
75
- /**
76
- * Where a session is working (#798): its checkout, its branch, and what it is holding. Read by
77
- * the dashboard so a session's action bar can say which worktree it has, rather than leaving the
78
- * user to infer it from an agent id.
79
- *
80
- * Only what is true of the run: once its checkout is gone there is no tree to be clean or dirty,
81
- * so {@link checkout} is absent and the branch is the one the run recorded.
82
- */
83
- export interface AgentWorktree {
84
- /** The run's own checkout while it exists. */
85
- checkout?: {
86
- /** Absolute path of the checkout. */
87
- path: string;
88
- /** Uncommitted changes present in it. */
89
- dirty: boolean;
90
- /** Size on disk, bytes. Only read once nothing is writing to it, and best-effort even then. */
91
- sizeBytes?: number;
92
- };
93
- /** The branch the run's work is on: its checkout's while it has one, else the one it recorded. */
94
- branch?: string;
95
- /** The PR opened for this run's branch (#809), when there is one. */
96
- pr?: LinkedPr;
97
- /** The PR is not known yet, rather than absent (#1028): the lookup is still running. */
98
- prPending?: boolean;
99
- }
@@ -1,14 +0,0 @@
1
- import type { IncomingMessage, ServerResponse } from 'node:http';
2
- import { type ProjectsProvider } from './projects.js';
3
- import { type ProjectWidget } from '../project-widgets.js';
4
- /** Where widget files are served: `/_widgets/<project id>/<package>/<file>`, each segment encoded. */
5
- export declare const WIDGETS_PREFIX = "/_widgets";
6
- /** The URL a widget's module is served at from one project. */
7
- export declare function widgetUrl(projectId: string, widget: Pick<ProjectWidget, 'package' | 'entry'>): string;
8
- /**
9
- * Serve one widget file (#1774): the project must be registered, the package must be a widget of
10
- * that project, and the file must sit inside the widget module's own directory. Anything else is a
11
- * 404, never a fallback: a widget URL is asked for by the dashboard's loader, not typed by a person.
12
- * Served as `no-cache`, since a widget is rebuilt in place under the same name.
13
- */
14
- export declare function serveWidgetFile(req: IncomingMessage, res: ServerResponse, pathname: string, projects?: ProjectsProvider): Promise<void>;
@@ -1,53 +0,0 @@
1
- import { type ProjectsProvider } from '../dashboard/projects.js';
2
- import type { DashboardContext, EventsSource, RemoteAgents } from '../dashboard/rpc-serve.js';
3
- import type { PreferencesStore } from '../registry.js';
4
- import type { QuotaSource } from '../dashboard/quota.js';
5
- import type { ModelsSource } from '../dashboard/models.js';
6
- import type { ProjectErrorsReader } from '../project-errors.js';
7
- import type { BridgeBrowserOwner } from '../bridge-browser.js';
8
- /** Wire the dashboard's capabilities. The daemon calls this once at start-up; a test calls it per case. */
9
- export declare function setDashboardContext(context: DashboardContext): void;
10
- /** The projects every RPC resolves a project id against: the global registry. */
11
- export declare function contextProjects(): ProjectsProvider;
12
- /** The workspace path for a project id, or undefined when no project has that id. */
13
- export declare function resolveProjectPath(projectId: string): Promise<string | undefined>;
14
- /**
15
- * The checkout a call should act on: a live agent's own worktree when `agentId` names one (#738/#749),
16
- * else the project root. Since #736 an agent reads and writes inside its worktree — its event log,
17
- * its control log, its working tree — so anything addressed at a *run* has to resolve here, not
18
- * at the project path, or it reads an empty log and steers an agent that is not listening. The
19
- * resolution itself (and its #766 first-seconds subtlety) lives in the store's
20
- * {@link resolveAgentCheckout}, shared with the daemon; this adds only the project-id lookup.
21
- */
22
- export declare function resolveAgentPath(projectId: string, agentId?: string): Promise<string | undefined>;
23
- /**
24
- * The in-memory {@link EventsSource} (#426). It answers only for a run this daemon is relaying
25
- * from a connected device (#1067) — such a run has no diary on this machine, since it works in a
26
- * checkout over there — and returns undefined for an ordinary local run, whose diary `onEvents`
27
- * tails off disk.
28
- */
29
- export declare function contextEventsSource(): EventsSource;
30
- /**
31
- * The relayed-agent lookup (#1067 slice 2). A run-scoped RPC uses it to tell an ordinary local agent
32
- * (resolve a local checkout) from one running on a connected device (forward the call there).
33
- *
34
- * The one accessor with a default rather than a throw, because "unwired" has a real meaning here:
35
- * a call arriving over `/_relay/rpc` is the *device* side of the relay, and the agent it names is
36
- * local to that device. Forwarding it onward would be a loop, so the honest answer there is that
37
- * nothing is relayed from here.
38
- */
39
- export declare function contextRemote(): RemoteAgents;
40
- /** The user-preferences store (#410), over the registry file. */
41
- export declare function contextPreferences(): PreferencesStore;
42
- /** The quota source behind the usage panel (#533). */
43
- export declare function contextQuota(): QuotaSource;
44
- /** Which models each coding agent offers. */
45
- export declare function contextModels(): ModelsSource;
46
- /** What a project currently suffers from (#1500), as the daemon's background jobs last recorded it. */
47
- export declare function contextProjectErrors(): ProjectErrorsReader;
48
- /** The daemon's own bridge browser (#1332). */
49
- export declare function contextBridgeBrowser(): BridgeBrowserOwner;
50
- /** The daemon's own `startAgent`, so a start from the dashboard is the same start the CLI makes. */
51
- export declare function contextStartAgent(): DashboardContext['startAgent'];
52
- /** Install + register a repo (#433), which only the daemon can do. */
53
- export declare function contextAddProject(): DashboardContext['addProject'];
@@ -1,108 +0,0 @@
1
- import { type SteerResult } from '../dashboard/run-inbox.js';
2
- export type { SteerResult };
3
- import { type OpenTarget, type OpenResult } from '../dashboard/open-in-app.js';
4
- import type { BridgeBrowserAction } from '../bridge-browser.js';
5
- import { type HandoffResult } from '../dashboard/agent-handoff.js';
6
- import type { DeleteAgentResult, RemoveWorktreeResult, StartAgentOptions, StartAgentResult } from '../dashboard/types.js';
7
- /**
8
- * The key every action on one run locks under (`agent-locks.ts`): a Remove, a Delete and an Open
9
- * PR on the same run each run their own git; serialized, whichever runs second finds the state
10
- * the first one left and acts on that. The project and the run's id, not the checkout's path:
11
- * the path is the branches provider's to know, and an Open PR on a run whose checkout is gone
12
- * still locks the run.
13
- */
14
- export declare function agentLockKey(cwd: string, agentId: string): string;
15
- /**
16
- * Stop a live agent (the Stop button): SIGINT to the process the run's own card names, when it is
17
- * this machine's and alive. The card is the file the dashboard shows the run from, and its pid is
18
- * whoever runs the agent; the framework names no tool. Nothing else: a run without a live pid
19
- * here has nothing to stop.
20
- */
21
- export declare function sendStop(projectId: string, agentId?: string): Promise<void>;
22
- /**
23
- * Answer the question a run stopped on (#304, #1774). `pick` is one option id, or the chosen
24
- * subset of a multi-select; the answer handed to the run is the chosen labels, read off the
25
- * question as the run's own diary holds it, so only what the agent offered can be answered.
26
- */
27
- export declare function sendChoice(projectId: string, id: string, pick: string | string[], agentId?: string): Promise<SteerResult>;
28
- /**
29
- * Queue the user's pick for the question a Claude web session is parked on (#1237).
30
- *
31
- * Not a line for a run like {@link sendChoice}: a cloud agent has no run here to hand it to, so
32
- * the pick goes to the bridge store, where the browser extension collects it, types
33
- * it into the session's composer and submits. Only labels of the currently parked question are
34
- * accepted — one, or a multi-select's subset — and the daemon composes the text typed from them,
35
- * so this can never put arbitrary text in front of another product's agent. Local only, no
36
- * relay: the bridge lives on the daemon the extension talks to.
37
- */
38
- export declare function sendBridgeAnswer(sessionId: string, labels: string[]): Promise<{
39
- ok: boolean;
40
- error?: string;
41
- }>;
42
- /** Withdraw a queued bridge answer (#1237). A no-op once the extension has delivered it. */
43
- export declare function sendBridgeAnswerCancel(sessionId: string): Promise<void>;
44
- /**
45
- * Say something to a run (#714, #1774): the person's own words, the next prompt of the same
46
- * conversation. A run that is working takes them when its turn ends; an ended run is resumed
47
- * with them. Empty messages are dropped.
48
- */
49
- export declare function sendMessage(projectId: string, text: string, agentId?: string): Promise<SteerResult>;
50
- /**
51
- * Remove a retained worktree (#737). An agent that failed or was stopped keeps its checkout so you
52
- * can inspect it; this is the explicit cleanup for one, since nothing removes them on a timer.
53
- *
54
- * The checks and the removal are {@link removeProjectWorktree}'s, shared with the CLI's removal
55
- * path (#982) so the surfaces cannot drift again; this adds only the agent lock around them.
56
- */
57
- export declare function sendRemoveWorktree(projectId: string, agentId: string): Promise<RemoveWorktreeResult>;
58
- /**
59
- * Delete a session (#1032): remove it from the dashboard, records and all — the sibling of
60
- * {@link sendRemoveWorktree}, and the one destructive-of-history action, so its surface confirms
61
- * first. The checks, the worktree removal and what it leaves behind (the branch and its
62
- * commits) are all {@link deleteProjectAgent}'s; this adds only the agent lock around them.
63
- */
64
- export declare function sendDeleteAgent(projectId: string, agentId: string): Promise<DeleteAgentResult>;
65
- /**
66
- * Start a run in the project (#405, #1774): the project's own `start` hook line, reached through
67
- * the daemon's wired `startAgent` (which relays to a connected device when the options name
68
- * one). Answers the id of the run the hook began, or why there is none: a project without the
69
- * line cannot start a run from here.
70
- */
71
- export declare function sendStart(projectId: string, prompt: string, options?: StartAgentOptions): Promise<StartAgentResult>;
72
- /**
73
- * Open a project in the OS file manager or an editor (#490). Localhost-only: the daemon
74
- * spawns a local command against the project's own registered path. A public host has no
75
- * local path to resolve, so it returns an error rather than spawning anything.
76
- *
77
- * With a `agentId` it opens that session's own checkout instead (#798) — the whole point of
78
- * opening it is to look at what the agent is doing, which is not in the project's tree.
79
- */
80
- export declare function sendOpenInApp(projectId: string, target: OpenTarget, agentId?: string): Promise<OpenResult>;
81
- /**
82
- * Open a PR for a finished session's branch (#799): the project's branches provider pushes it
83
- * first if the remote lacks it (#1774).
84
- *
85
- * The title and body come from what the agent already recorded: the branch the agent named its
86
- * work with and the intent the user asked for. Nothing new is invented and nothing extra is asked
87
- * of the user, which is the point of "offer the next step rather than describe it".
88
- */
89
- export declare function sendOpenPullRequest(projectId: string, agentId: string): Promise<HandoffResult>;
90
- /**
91
- * The user's Push action (#1820): push a finished run's branch, the last step where the project has
92
- * no git host package. Under the agent lock, as Open PR is, so the push cannot race a Remove.
93
- */
94
- export declare function sendPush(projectId: string, agentId: string): Promise<HandoffResult>;
95
- /**
96
- * The user's Merge action (#1391): merge a finished run's open pull request, directly. A run
97
- * that is still working has no Merge: its agent publishes its own work, and the button comes
98
- * with the ended view.
99
- */
100
- export declare function sendMerge(projectId: string, agentId: string): Promise<HandoffResult>;
101
- /**
102
- * Ask the daemon's bridge browser to show its window (for the one-time sign-in), hide it again,
103
- * or restart (#1332). Anything else is refused; a browser that is not running ignores show/hide.
104
- */
105
- export declare function sendBridgeBrowser(action: BridgeBrowserAction): Promise<{
106
- ok: boolean;
107
- error?: string;
108
- }>;
@@ -1,8 +0,0 @@
1
- /** One device to health-check: its profile id plus the origin and token to reach it with. */
2
- export interface DeviceCheck {
3
- id: string;
4
- url: string;
5
- token: string;
6
- }
7
- /** Ping each saved device and map its id to whether it answered (#1072). Bad entries are dropped. */
8
- export declare function checkDevices(devices: DeviceCheck[]): Promise<Record<string, boolean>>;