@madarco/agentbox 0.31.4 → 0.32.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 (722) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/_cloud-attach-6RKS3MAP.js +31 -0
  3. package/dist/{chunk-LR5RNEVO.js → chunk-27S7QLDF.js} +3 -3
  4. package/dist/{chunk-QT4MOS6R.js → chunk-2APGFWEU.js} +23 -23
  5. package/dist/{chunk-RUKTOHK7.js → chunk-3AYSA62C.js} +2 -2
  6. package/dist/{chunk-EXF4PLBN.js → chunk-3ISG5THX.js} +3 -3
  7. package/dist/{chunk-IFPTD73K.js → chunk-3L2DIPRM.js} +2 -2
  8. package/dist/{chunk-IQ6BQ2LX.js → chunk-4FOXMGJ7.js} +3 -3
  9. package/dist/{chunk-5UX2HAF4.js → chunk-5OKDSI6M.js} +43 -43
  10. package/dist/{chunk-KCDLAP5Q.js → chunk-66GAYIJZ.js} +3252 -936
  11. package/dist/chunk-66GAYIJZ.js.map +1 -0
  12. package/dist/{chunk-IF4VXKJK.js → chunk-6XMOBI5V.js} +3 -3
  13. package/dist/{chunk-OXBWZG2N.js → chunk-7QTBRHB7.js} +4 -4
  14. package/dist/{chunk-YSC4VY43.js → chunk-ANSPBIYG.js} +3 -3
  15. package/dist/{chunk-75JF44DH.js → chunk-AWI2TSWS.js} +2 -2
  16. package/dist/{chunk-2MBELUE6.js → chunk-CDRKQ5BH.js} +9 -9
  17. package/dist/{chunk-L567TKOK.js → chunk-CXAWPWGZ.js} +5 -5
  18. package/dist/{chunk-VWJBQGXD.js → chunk-EDJ6O6CI.js} +6 -6
  19. package/dist/{chunk-NKHRFR5G.js → chunk-GSMQL4IJ.js} +16 -16
  20. package/dist/chunk-GVNKIACA.js +223 -0
  21. package/dist/chunk-GVNKIACA.js.map +1 -0
  22. package/dist/{chunk-4Y365UYP.js → chunk-JWQYZ6V4.js} +2 -2
  23. package/dist/{chunk-AYREFYEF.js → chunk-KOTW7QQW.js} +4 -4
  24. package/dist/{chunk-BYZPRB7U.js → chunk-L4KBYI3I.js} +5 -5
  25. package/dist/{chunk-MJZPECVQ.js → chunk-M2DWTQRF.js} +2 -2
  26. package/dist/{chunk-PXH3DERD.js → chunk-MB2K74BI.js} +164 -2
  27. package/dist/chunk-MB2K74BI.js.map +1 -0
  28. package/dist/{chunk-GCS5XAPC.js → chunk-MI3V2MAE.js} +3 -3
  29. package/dist/{chunk-4LSLXBFN.js → chunk-MO3QJTVS.js} +6 -6
  30. package/dist/{chunk-AAMPHDB2.js → chunk-MPTE57BZ.js} +5 -5
  31. package/dist/{chunk-EP4IFSV5.js → chunk-PE5LPD23.js} +67 -24
  32. package/dist/chunk-PE5LPD23.js.map +1 -0
  33. package/dist/{chunk-M6VAID7T.js → chunk-QBVRWGXD.js} +2 -2
  34. package/dist/{chunk-4NO5MO2P.js → chunk-RIXW4HSE.js} +6 -6
  35. package/dist/{chunk-YL3VEQTS.js → chunk-S7LPQXR5.js} +5 -5
  36. package/dist/{chunk-CUIJ2PIN.js → chunk-TAZYSVLT.js} +26 -22
  37. package/dist/{chunk-CUIJ2PIN.js.map → chunk-TAZYSVLT.js.map} +1 -1
  38. package/dist/{chunk-QDVIMN57.js → chunk-TDPHZWJI.js} +4 -4
  39. package/dist/{chunk-IQMDGAMB.js → chunk-WLEGSKKE.js} +4 -4
  40. package/dist/{chunk-MBZ4UOWF.js → chunk-WTOG3CC6.js} +3 -3
  41. package/dist/{chunk-VQONUZE4.js → chunk-X6CO4WIX.js} +4 -4
  42. package/dist/{chunk-ENFWBFBI.js → chunk-XLJ4D4FI.js} +4 -4
  43. package/dist/{chunk-ZUTC2JZM.js → chunk-XNZ6UHTM.js} +27 -5
  44. package/dist/chunk-XNZ6UHTM.js.map +1 -0
  45. package/dist/{chunk-QWWDG5B7.js → chunk-XTNAIM7X.js} +6 -6
  46. package/dist/{chunk-X6SZPGL5.js → chunk-YNAJUTYC.js} +6 -6
  47. package/dist/{chunk-VOVRWIBC.js → chunk-YSACCMUB.js} +13 -13
  48. package/dist/{chunk-C67DVYWA.js → chunk-ZKOLV4ZN.js} +37 -2
  49. package/dist/chunk-ZKOLV4ZN.js.map +1 -0
  50. package/dist/{cli-KT5X4J74.js → cli-IFXU5XNZ.js} +8 -8
  51. package/dist/{cli-7JW54ZTA.js → cli-MZSWFSTW.js} +8 -8
  52. package/dist/{cli-7Z7BD23R.js → cli-O3WXOFNS.js} +7 -7
  53. package/dist/{cli-HFLU5QTD.js → cli-RQJUQJEP.js} +7 -7
  54. package/dist/{cli-XRF7WFE5.js → cli-ZGYSHJP7.js} +8 -8
  55. package/dist/cloud-backends.js +4 -4
  56. package/dist/{control-plane-DGLF4MBB.js → control-plane-3TII2JGM.js} +19 -19
  57. package/dist/{cp-hub-upload-7YESYCVS.js → cp-hub-upload-3W7Z4BMT.js} +6 -6
  58. package/dist/{custody-client-P7SCEDU2.js → custody-client-KYEZET6C.js} +4 -4
  59. package/dist/{deploy-hetzner-FOCNRRB2.js → deploy-hetzner-EO5PFKBG.js} +8 -8
  60. package/dist/{dist-MITAKWKQ.js → dist-3AR6L5MF.js} +7 -7
  61. package/dist/{dist-54VRDCUU.js → dist-4GHNQ2AK.js} +7 -7
  62. package/dist/{dist-63YBVZW4.js → dist-BFH537FO.js} +8 -8
  63. package/dist/{dist-TJJ6KBNZ.js → dist-ETGTZQUT.js} +255 -5
  64. package/dist/{dist-XSAPZOEG.js → dist-H2CSUDEI.js} +7 -7
  65. package/dist/{dist-CBPQZPQN.js → dist-IABCQB5D.js} +7 -7
  66. package/dist/{dist-2CAWJQT5.js → dist-JJZ3NZRO.js} +9 -5
  67. package/dist/{dist-E4VLIH3H.js → dist-RPBA2EL5.js} +7 -7
  68. package/dist/{dist-FHPNYDCF.js → dist-URWWHI3X.js} +8 -2
  69. package/dist/{dist-36WLI6E2.js → dist-V224SH3Z.js} +6 -6
  70. package/dist/{host-reach-drainer-XFLSMTSX.js → host-reach-drainer-NYN3YXHG.js} +2 -2
  71. package/dist/host-session-YP5RKV6T.js +29 -0
  72. package/dist/hub-OWUC4IGW.js +39 -0
  73. package/dist/{hub-adopt-IYZ3WXYN.js → hub-adopt-HYXFUPPO.js} +6 -6
  74. package/dist/{hub-api-client-WOZ2BQ6H.js → hub-api-client-BI3E37CF.js} +3 -3
  75. package/dist/{hub-docker-target-IQHX6OYX.js → hub-docker-target-6ODSK7ZE.js} +13 -13
  76. package/dist/index.js +1223 -229
  77. package/dist/index.js.map +1 -1
  78. package/dist/{plugin-update-2ACFHFUI.js → plugin-update-LI3QDA4K.js} +4 -4
  79. package/dist/prepare-MYFNDJPP.js +45 -0
  80. package/dist/prepared-custody-WSHX6XTQ.js +39 -0
  81. package/dist/{prepared-state-FO74QUCP-PZLOM6HD.js → prepared-state-FO74QUCP-M4Q2X3KN.js} +3 -3
  82. package/dist/{publish-credentials-TO5IIW2T.js → publish-credentials-FCEQSIPE.js} +8 -8
  83. package/dist/{registry-X33JZU6B.js → registry-GG23NEBF.js} +4 -4
  84. package/dist/relay-YUOIK3HN.js +22 -0
  85. package/dist/{remote-docker-share-YADHIHXV.js → remote-docker-share-4Z4VVUPG.js} +10 -10
  86. package/dist/remote-docker-share-4Z4VVUPG.js.map +1 -0
  87. package/dist/{tool-grant-push-7G2QAN3J.js → tool-grant-push-A2JYLJVF.js} +3 -3
  88. package/package.json +1 -1
  89. package/runtime/_shared/ctl.cjs +1026 -309
  90. package/runtime/digitalocean/ctl.cjs +1026 -309
  91. package/runtime/docker/packages/ctl/dist/bin.cjs +1026 -309
  92. package/runtime/e2b/ctl.cjs +1026 -309
  93. package/runtime/hetzner/ctl.cjs +1026 -309
  94. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  95. package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +24 -0
  96. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  97. package/runtime/hub/apps/hub/.next/routes-manifest.json +188 -0
  98. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
  99. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +2 -2
  100. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
  101. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
  102. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +4 -4
  103. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
  104. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -1
  105. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js +2 -2
  106. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.nft.json +1 -1
  107. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
  108. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js +2 -2
  109. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -1
  110. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js +2 -2
  111. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.nft.json +1 -1
  112. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +4 -4
  113. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
  114. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
  115. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -1
  116. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js +2 -2
  117. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
  118. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js +2 -2
  119. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
  120. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
  121. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +2 -2
  122. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
  123. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
  124. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js +2 -2
  125. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.nft.json +1 -1
  126. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -1
  127. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.nft.json +1 -1
  128. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +4 -4
  129. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
  130. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -1
  131. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js +3 -3
  132. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
  133. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
  134. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js +2 -2
  135. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
  136. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +2 -2
  137. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
  138. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
  139. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
  140. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -1
  141. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/app-paths-manifest.json +3 -0
  142. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/build-manifest.json +9 -0
  143. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/server-reference-manifest.json +4 -0
  144. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js +9 -0
  145. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.map +5 -0
  146. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.nft.json +1 -0
  147. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route_client-reference-manifest.js +3 -0
  148. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/app-paths-manifest.json +3 -0
  149. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/build-manifest.json +9 -0
  150. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/server-reference-manifest.json +4 -0
  151. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js +10 -0
  152. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.map +5 -0
  153. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.nft.json +1 -0
  154. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route_client-reference-manifest.js +3 -0
  155. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/app-paths-manifest.json +3 -0
  156. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/build-manifest.json +9 -0
  157. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/server-reference-manifest.json +4 -0
  158. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js +10 -0
  159. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.map +5 -0
  160. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.nft.json +1 -0
  161. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route_client-reference-manifest.js +3 -0
  162. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/app-paths-manifest.json +3 -0
  163. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/build-manifest.json +9 -0
  164. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/server-reference-manifest.json +4 -0
  165. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js +9 -0
  166. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.map +5 -0
  167. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.nft.json +1 -0
  168. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route_client-reference-manifest.js +3 -0
  169. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/app-paths-manifest.json +3 -0
  170. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/build-manifest.json +9 -0
  171. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/server-reference-manifest.json +4 -0
  172. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js +10 -0
  173. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.map +5 -0
  174. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.nft.json +1 -0
  175. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route_client-reference-manifest.js +3 -0
  176. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/app-paths-manifest.json +3 -0
  177. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/build-manifest.json +9 -0
  178. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/server-reference-manifest.json +4 -0
  179. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js +9 -0
  180. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.map +5 -0
  181. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.nft.json +1 -0
  182. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route_client-reference-manifest.js +3 -0
  183. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/app-paths-manifest.json +3 -0
  184. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/build-manifest.json +9 -0
  185. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/server-reference-manifest.json +4 -0
  186. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js +10 -0
  187. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.map +5 -0
  188. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.nft.json +1 -0
  189. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route_client-reference-manifest.js +3 -0
  190. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/app-paths-manifest.json +3 -0
  191. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/build-manifest.json +9 -0
  192. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/server-reference-manifest.json +4 -0
  193. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js +10 -0
  194. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.map +5 -0
  195. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.nft.json +1 -0
  196. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route_client-reference-manifest.js +3 -0
  197. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
  198. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.nft.json +1 -1
  199. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
  200. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js +2 -2
  201. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.nft.json +1 -1
  202. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js +2 -2
  203. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.nft.json +1 -1
  204. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
  205. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -1
  206. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +2 -2
  207. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
  208. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +2 -2
  209. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
  210. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +2 -2
  211. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
  212. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js +2 -2
  213. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.nft.json +1 -1
  214. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
  215. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js +2 -2
  216. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -1
  217. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -1
  218. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/app-paths-manifest.json +3 -0
  219. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/build-manifest.json +9 -0
  220. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/server-reference-manifest.json +4 -0
  221. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js +10 -0
  222. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.map +5 -0
  223. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.nft.json +1 -0
  224. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route_client-reference-manifest.js +3 -0
  225. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/app-paths-manifest.json +3 -0
  226. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/build-manifest.json +9 -0
  227. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/server-reference-manifest.json +4 -0
  228. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js +9 -0
  229. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.map +5 -0
  230. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.nft.json +1 -0
  231. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route_client-reference-manifest.js +3 -0
  232. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/app-paths-manifest.json +3 -0
  233. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/build-manifest.json +9 -0
  234. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/server-reference-manifest.json +4 -0
  235. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js +9 -0
  236. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.map +5 -0
  237. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.nft.json +1 -0
  238. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route_client-reference-manifest.js +3 -0
  239. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/app-paths-manifest.json +3 -0
  240. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/build-manifest.json +9 -0
  241. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/server-reference-manifest.json +4 -0
  242. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js +10 -0
  243. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.map +5 -0
  244. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.nft.json +1 -0
  245. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route_client-reference-manifest.js +3 -0
  246. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/app-paths-manifest.json +3 -0
  247. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/build-manifest.json +9 -0
  248. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/server-reference-manifest.json +4 -0
  249. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js +10 -0
  250. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.map +5 -0
  251. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.nft.json +1 -0
  252. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route_client-reference-manifest.js +3 -0
  253. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/app-paths-manifest.json +3 -0
  254. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/build-manifest.json +9 -0
  255. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/server-reference-manifest.json +4 -0
  256. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js +9 -0
  257. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js.map +5 -0
  258. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js.nft.json +1 -0
  259. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route_client-reference-manifest.js +3 -0
  260. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/app-paths-manifest.json +3 -0
  261. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/build-manifest.json +9 -0
  262. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/server-reference-manifest.json +4 -0
  263. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js +10 -0
  264. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.map +5 -0
  265. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.nft.json +1 -0
  266. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route_client-reference-manifest.js +3 -0
  267. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/app-paths-manifest.json +3 -0
  268. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/build-manifest.json +9 -0
  269. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/server-reference-manifest.json +4 -0
  270. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js +10 -0
  271. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.map +5 -0
  272. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.nft.json +1 -0
  273. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route_client-reference-manifest.js +3 -0
  274. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/app-paths-manifest.json +3 -0
  275. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/build-manifest.json +9 -0
  276. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/server-reference-manifest.json +4 -0
  277. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js +9 -0
  278. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.map +5 -0
  279. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.nft.json +1 -0
  280. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route_client-reference-manifest.js +3 -0
  281. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/app-paths-manifest.json +3 -0
  282. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/build-manifest.json +9 -0
  283. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/server-reference-manifest.json +4 -0
  284. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js +10 -0
  285. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.map +5 -0
  286. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.nft.json +1 -0
  287. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route_client-reference-manifest.js +3 -0
  288. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/app-paths-manifest.json +3 -0
  289. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/build-manifest.json +9 -0
  290. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/server-reference-manifest.json +4 -0
  291. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js +9 -0
  292. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.map +5 -0
  293. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.nft.json +1 -0
  294. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route_client-reference-manifest.js +3 -0
  295. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/app-paths-manifest.json +3 -0
  296. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/build-manifest.json +9 -0
  297. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/server-reference-manifest.json +4 -0
  298. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js +10 -0
  299. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.map +5 -0
  300. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.nft.json +1 -0
  301. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route_client-reference-manifest.js +3 -0
  302. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/app-paths-manifest.json +3 -0
  303. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/build-manifest.json +9 -0
  304. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/server-reference-manifest.json +4 -0
  305. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js +10 -0
  306. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.map +5 -0
  307. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.nft.json +1 -0
  308. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route_client-reference-manifest.js +3 -0
  309. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/app-paths-manifest.json +3 -0
  310. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/build-manifest.json +9 -0
  311. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/server-reference-manifest.json +4 -0
  312. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js +10 -0
  313. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.map +5 -0
  314. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.nft.json +1 -0
  315. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route_client-reference-manifest.js +3 -0
  316. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/app-paths-manifest.json +3 -0
  317. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/build-manifest.json +9 -0
  318. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/server-reference-manifest.json +4 -0
  319. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js +10 -0
  320. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.map +5 -0
  321. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.nft.json +1 -0
  322. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route_client-reference-manifest.js +3 -0
  323. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/app-paths-manifest.json +3 -0
  324. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/build-manifest.json +9 -0
  325. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/server-reference-manifest.json +4 -0
  326. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js +10 -0
  327. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.map +5 -0
  328. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.nft.json +1 -0
  329. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route_client-reference-manifest.js +3 -0
  330. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
  331. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  332. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
  333. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  334. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -1
  335. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.nft.json +1 -1
  336. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -1
  337. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page_client-reference-manifest.js +1 -1
  338. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  339. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  340. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
  341. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  342. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
  343. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  344. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
  345. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page_client-reference-manifest.js +1 -1
  346. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
  347. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
  348. package/runtime/hub/apps/hub/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  349. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  350. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  351. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  352. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  353. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  354. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  355. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  356. package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  357. package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +24 -0
  358. package/runtime/hub/apps/hub/.next/server/chunks/00je_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_assign_route_actions_1sufsej.js +3 -0
  359. package/runtime/hub/apps/hub/.next/server/chunks/00je_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_done_route_actions_216dixx.js +3 -0
  360. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_managers_route_actions_1_vtgih.js +3 -0
  361. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_tasks_route_actions_1h8tg_m.js +3 -0
  362. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_managers_sessions_route_actions_16dksub.js +3 -0
  363. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_managers_start_route_actions_1g-vmis.js +3 -0
  364. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_route_actions_03oih6y.js +3 -0
  365. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_assign_route_actions_196zwo9.js +3 -0
  366. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_reorder_route_actions_1zkcfk-.js +3 -0
  367. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_workspaces_route_actions_12a7_y8.js +3 -0
  368. package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_managers_[id]_route_actions_07cpyb_.js +3 -0
  369. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_attach_route_actions_0o-khw8.js +3 -0
  370. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_message_route_actions_0rjcqe5.js +3 -0
  371. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_notes_route_actions_1-mf4r_.js +3 -0
  372. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_resume_route_actions_0-cm1mu.js +3 -0
  373. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_stop_route_actions_16nrl1r.js +3 -0
  374. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_detect_route_actions_1sdbs-_.js +3 -0
  375. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_managers_route_actions_1sxymv0.js +3 -0
  376. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_rename_route_actions_0df5zi2.js +3 -0
  377. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_rescan_route_actions_1yra_w8.js +3 -0
  378. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_route_actions_1f56n_0.js +3 -0
  379. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_tasks_route_actions_1t-6quw.js +3 -0
  380. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_timeline_route_actions_0pbxblt.js +3 -0
  381. package/runtime/hub/apps/hub/.next/server/chunks/1viy_api_v1_workspaces_[id]_tasks_[taskId]_unassign_route_actions_18a1p_r.js +3 -0
  382. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-c97gb._.js +1 -1
  383. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0spnud2._.js → [root-of-the-server]__0-kl55b._.js} +1 -1
  384. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__028ifqb._.js → [root-of-the-server]__0-xlf9z._.js} +2 -2
  385. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__074mxl5._.js → [root-of-the-server]__0004tsz._.js} +2 -2
  386. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00bupbc._.js +1 -1
  387. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1cpr4qy._.js → [root-of-the-server]__0126167._.js} +1 -1
  388. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01fy5q0._.js +1 -1
  389. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02c077x._.js +3 -0
  390. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1ta1gr1._.js → [root-of-the-server]__02sueng._.js} +1 -1
  391. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0nndlre._.js → [root-of-the-server]__04-gm8c._.js} +2 -2
  392. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05uinnp._.js +1 -1
  393. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06wy8zz._.js +3 -0
  394. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__071c-t4._.js +3 -0
  395. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08jg8w8._.js +1 -1
  396. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09059m-._.js +1 -1
  397. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__092y7_z._.js +1 -1
  398. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09ti2-t._.js +3 -0
  399. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09y4pdw._.js +3 -0
  400. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_mog_h._.js +1 -1
  401. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a689u5._.js +3 -0
  402. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a8ere2._.js +3 -0
  403. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bzqrje._.js +3 -0
  404. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c_r3oe._.js +3 -0
  405. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cdoz9i._.js +1 -1
  406. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cmu4sk._.js +1 -1
  407. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cxjxz0._.js +1 -1
  408. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d27tlu._.js +3 -0
  409. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d3fx1z._.js +3 -0
  410. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dm5oqm._.js +1 -1
  411. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dy5g2k._.js +1 -1
  412. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e1uaxg._.js +1 -1
  413. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e6_t-d._.js +3 -0
  414. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ets4cd._.js +1 -1
  415. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f2u0ul._.js +1 -1
  416. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f9p_4f._.js +1 -1
  417. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_jmq2._.js +1 -1
  418. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fksz_r._.js +1 -1
  419. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fpygqn._.js +3 -0
  420. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gym-rp._.js +1 -1
  421. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hhlb2_._.js +1 -1
  422. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i9phow._.js +1 -1
  423. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ikyoac._.js +1 -1
  424. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j72bti._.js +1 -1
  425. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jb371p._.js +1 -1
  426. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jq6cdw._.js +3 -0
  427. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jt1d2s._.js +3 -0
  428. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kcw8t0._.js +1 -1
  429. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kdt9-i._.js +1 -1
  430. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l27vs0._.js +1 -1
  431. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lc-j_n._.js +3 -0
  432. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lna-vq._.js +3 -0
  433. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0m5woxc._.js +1 -1
  434. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mi9xib._.js +3 -0
  435. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0muy7eg._.js +3 -0
  436. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nn0_b5._.js +3 -0
  437. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0no30or._.js +3 -0
  438. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o3sjtx._.js +1 -1
  439. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0onk5r0._.js +1 -1
  440. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pik2ie._.js +3 -0
  441. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qde3vr._.js +1 -1
  442. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qt_r6a._.js +3 -0
  443. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ry8baf._.js +1 -1
  444. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sg4y_2._.js +3 -0
  445. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sgjn2j._.js +1 -1
  446. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0st6oln._.js +1 -1
  447. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t0p64l._.js +1 -1
  448. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tbl11-._.js +3 -0
  449. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ve_tqz._.js +1 -1
  450. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w4smfx._.js +3 -0
  451. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wo4sqj._.js +1 -1
  452. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wujjkl._.js +3 -0
  453. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xbu3yj._.js +3 -0
  454. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xl1-w6._.js +1 -1
  455. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yct1tu._.js +1 -1
  456. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yg67t0._.js +1 -1
  457. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ykw5oe._.js +3 -0
  458. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1c1rcl-._.js → [root-of-the-server]__0zznyx2._.js} +2 -2
  459. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1--u2xl._.js +3 -0
  460. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-8sj4i._.js +1 -1
  461. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10kmcrt._.js +3 -0
  462. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10l_-cd._.js +3 -0
  463. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10yfcvu._.js +1 -1
  464. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__112hqrh._.js +3 -0
  465. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11c-21i._.js +3 -0
  466. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11qbpq8._.js +3 -0
  467. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11s1mrd._.js +1 -1
  468. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__128w1nz._.js +3 -0
  469. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12b2kuv._.js +1 -1
  470. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12gbq5m._.js +1 -1
  471. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13nfpq5._.js +3 -0
  472. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13vl4-h._.js +1 -1
  473. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__153b7kv._.js +1 -1
  474. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__157kmse._.js +1 -1
  475. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16695dw._.js +1 -1
  476. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__166_uek._.js +3 -0
  477. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16o0ij7._.js +1 -1
  478. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__175lucf._.js +1 -1
  479. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17p53e3._.js +3 -0
  480. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17y9pmx._.js +3 -0
  481. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18ec5_t._.js +3 -0
  482. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18xpvkc._.js +1 -1
  483. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1925hyw._.js +3 -0
  484. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19ew1r2._.js +3 -0
  485. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19grunx._.js +1 -1
  486. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_4v0mh._.js +3 -0
  487. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_cbcl1._.js +1 -1
  488. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_wb2uh._.js +3 -0
  489. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_xgm2e._.js +3 -0
  490. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1an6-yb._.js +3 -0
  491. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c0ex8m._.js +1 -1
  492. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c1e08-._.js +3 -0
  493. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c9f4uu._.js +1 -1
  494. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ci8hc2._.js +1 -1
  495. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cs6d52._.js +3 -0
  496. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d60scp._.js +3 -0
  497. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dicjoc._.js +3 -0
  498. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1diipl4._.js +3 -0
  499. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dp2exz._.js +1 -1
  500. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1epnstn._.js +1 -1
  501. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fjnz2l._.js +3 -0
  502. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g5wnt2._.js +1 -1
  503. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g9v7bq._.js +1 -1
  504. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1gon0_4._.js +3 -0
  505. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h_59cs._.js +1 -1
  506. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h_q3sn._.js +3 -0
  507. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hlugb4._.js +1 -1
  508. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hux-70._.js +1 -1
  509. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i-7bnu._.js +3 -0
  510. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i_el2y._.js +3 -0
  511. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1j6clag._.js +1 -1
  512. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1k6q17t._.js +3 -0
  513. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1khvg39._.js +1 -1
  514. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lx9lyn._.js +3 -0
  515. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m36v6k._.js +1 -1
  516. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mgu19x._.js +3 -0
  517. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mhyrr5._.js +3 -0
  518. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mk_lpu._.js +3 -0
  519. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mt32fu._.js +1 -1
  520. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n1_2tw._.js +1 -1
  521. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1na4sdw._.js +3 -0
  522. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ntihlm._.js +3 -0
  523. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1odu62n._.js +3 -0
  524. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q6xrlt._.js +2 -2
  525. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r4x1-y._.js +3 -0
  526. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rjs_x0._.js +1 -1
  527. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rxud0j._.js +1 -1
  528. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1s5app0._.js +1 -1
  529. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sjz59l._.js +3 -0
  530. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1slo4q_._.js +1 -1
  531. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1thrazp._.js +3 -0
  532. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1twtnwr._.js +1 -1
  533. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1txvsbk._.js +3 -0
  534. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1uch-60._.js +1 -1
  535. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1um2jum._.js +3 -0
  536. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vnnuo1._.js +1 -1
  537. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wegvep._.js +3 -0
  538. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wi5roz._.js +1 -1
  539. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xa9oiv._.js +3 -0
  540. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ypmy86._.js +3 -0
  541. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zml9me._.js +1 -1
  542. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zrf_a6._.js +1 -1
  543. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__2019yzl._.js +3 -0
  544. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20jyxyo._.js +2 -2
  545. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ybhif._.js +1 -1
  546. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20zl5fr._.js +1 -1
  547. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__212dyoi._.js +1 -1
  548. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__218oup-._.js +1 -1
  549. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__21abvx9._.js +3 -0
  550. package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +2 -1
  551. package/runtime/hub/apps/hub/.next/server/chunks/_0mcxq5g._.js +1 -1
  552. package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +41 -41
  553. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_openapi_ts_1yokmzt._.js +1 -1
  554. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_validate_ts_16dhbzz._.js +1 -1
  555. package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +6 -6
  556. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__03-x9xy._.js +1 -1
  557. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1jqga8h._.js +1 -1
  558. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +2 -1
  559. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +26 -26
  560. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +1 -1
  561. package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +24 -0
  562. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  563. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  564. package/runtime/hub/apps/hub/.next/static/chunks/{31e1wjin30i__.css → 03_fxfc3849ms.css} +1 -1
  565. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/[id]/[action]/route.ts +4 -2
  566. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.ts +6 -4
  567. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/route.ts +2 -1
  568. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/actor.ts +48 -0
  569. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/envelope.ts +5 -2
  570. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/openapi.ts +1687 -52
  571. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/validate.ts +527 -1
  572. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/attach/route.ts +26 -0
  573. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/message/route.ts +34 -0
  574. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/notes/route.ts +26 -0
  575. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/resume/route.ts +26 -0
  576. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/route.ts +34 -0
  577. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/stop/route.ts +23 -0
  578. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/detect/route.ts +33 -0
  579. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/route.ts +27 -0
  580. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/tasks/route.ts +30 -0
  581. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/route.ts +19 -0
  582. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.ts +22 -0
  583. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.ts +61 -0
  584. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/rename/route.ts +25 -0
  585. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.ts +20 -0
  586. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/route.ts +34 -0
  587. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.ts +33 -0
  588. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.ts +23 -0
  589. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.ts +54 -0
  590. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.ts +25 -0
  591. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.ts +34 -0
  592. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.ts +33 -0
  593. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.ts +59 -0
  594. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.ts +25 -0
  595. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/route.ts +31 -0
  596. package/runtime/hub/apps/hub/{chunk-7JBH42LK.js → chunk-BR4WVGWJ.js} +2 -2
  597. package/runtime/hub/apps/hub/{chunk-AIFVVQPX.js → chunk-EVB2OTLU.js} +3311 -1031
  598. package/runtime/hub/apps/hub/{chunk-SM2XYDPL.js → chunk-FBNAIUXZ.js} +36 -1
  599. package/runtime/hub/apps/hub/{chunk-F6GOERHP.js → chunk-G2AEPH7C.js} +3 -3
  600. package/runtime/hub/apps/hub/{chunk-7IIG6MIB.js → chunk-JX5JUFSR.js} +9 -9
  601. package/runtime/hub/apps/hub/{chunk-AAF4CYVH.js → chunk-MD2UNTZR.js} +5 -5
  602. package/runtime/hub/apps/hub/{dist-DS5LGBGK.js → dist-3LDUYWPK.js} +7 -1
  603. package/runtime/hub/apps/hub/{dist-MQADLEEQ.js → dist-CJ6QFUFV.js} +4 -4
  604. package/runtime/hub/apps/hub/{dist-H7NIUVBD.js → dist-GGLWLMY6.js} +5 -5
  605. package/runtime/hub/apps/hub/{dist-YG4RVC24.js → dist-HLLYJGIT.js} +5 -5
  606. package/runtime/hub/apps/hub/{dist-VENYRIRW.js → dist-IIQU4I42.js} +4 -4
  607. package/runtime/hub/apps/hub/{dist-LV6CHJVA.js → dist-UFMCOK3W.js} +4 -4
  608. package/runtime/hub/apps/hub/{dist-BKCL4HAA.js → dist-XUNBQ4WM.js} +4 -4
  609. package/runtime/hub/apps/hub/{dist-YOTRYCRK.js → dist-Y2263LMY.js} +7 -3
  610. package/runtime/hub/apps/hub/{dist-RJBPZWSZ.js → dist-YV4M6NJO.js} +4 -4
  611. package/runtime/hub/apps/hub/{hub-worker-DLFLGKCV.js → hub-worker-LJYEEAJL.js} +6 -6
  612. package/runtime/hub/apps/hub/lib/backend/background.ts +19 -0
  613. package/runtime/hub/apps/hub/lib/backend/box-facts.ts +97 -0
  614. package/runtime/hub/apps/hub/lib/backend/box-prs.ts +213 -0
  615. package/runtime/hub/apps/hub/lib/backend/deps.ts +99 -0
  616. package/runtime/hub/apps/hub/lib/backend/errors.ts +7 -0
  617. package/runtime/hub/apps/hub/lib/backend/github-prs.ts +302 -0
  618. package/runtime/hub/apps/hub/lib/backend/managers.ts +748 -0
  619. package/runtime/hub/apps/hub/lib/backend/timeline-lanes.ts +150 -0
  620. package/runtime/hub/apps/hub/lib/backend/timeline.ts +611 -0
  621. package/runtime/hub/apps/hub/lib/backend/workspaces.ts +439 -0
  622. package/runtime/hub/apps/hub/lib/boxes/backend-types.ts +355 -10
  623. package/runtime/hub/apps/hub/lib/boxes/postgres-source.ts +3 -0
  624. package/runtime/hub/apps/hub/lib/boxes/source.ts +18 -1
  625. package/runtime/hub/apps/hub/lib/boxes/types.ts +66 -0
  626. package/runtime/hub/apps/hub/lib/hub-backend.ts +114 -7
  627. package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-FZ6PT4LA.js → prepared-state-FO74QUCP-75UBPW5I.js} +2 -2
  628. package/runtime/hub/apps/hub/server.js +2032 -163
  629. package/runtime/hub/apps/hub/test/backend-managers-background.test.ts +336 -0
  630. package/runtime/hub/apps/hub/test/backend-managers.test.ts +493 -0
  631. package/runtime/hub/apps/hub/test/backend-workspaces.test.ts +208 -0
  632. package/runtime/hub/apps/hub/test/box-prs.test.ts +198 -0
  633. package/runtime/hub/apps/hub/test/timeline-lanes.test.ts +261 -0
  634. package/runtime/hub/apps/hub/test/timeline.test.ts +1185 -0
  635. package/runtime/hub/apps/hub/test/validate.test.ts +252 -0
  636. package/runtime/hub/apps/hub/tsconfig.tsbuildinfo +1 -1
  637. package/runtime/relay/bin.cjs +1399 -616
  638. package/runtime/vercel/ctl.cjs +1026 -309
  639. package/share/host-skills/agentbox-info/SKILL.md +25 -4
  640. package/dist/_cloud-attach-B3BCOZ7U.js +0 -31
  641. package/dist/chunk-C67DVYWA.js.map +0 -1
  642. package/dist/chunk-EP4IFSV5.js.map +0 -1
  643. package/dist/chunk-KCDLAP5Q.js.map +0 -1
  644. package/dist/chunk-PXH3DERD.js.map +0 -1
  645. package/dist/chunk-ZUTC2JZM.js.map +0 -1
  646. package/dist/hub-OMGLWQEV.js +0 -39
  647. package/dist/prepare-OOZF37J6.js +0 -45
  648. package/dist/prepared-custody-E7CSZJ6V.js +0 -39
  649. package/dist/relay-7D5NOFKS.js +0 -22
  650. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00o_3sf._.js +0 -3
  651. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08xwxyo._.js +0 -3
  652. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-mtsr6._.js +0 -3
  653. /package/dist/{_cloud-attach-B3BCOZ7U.js.map → _cloud-attach-6RKS3MAP.js.map} +0 -0
  654. /package/dist/{chunk-LR5RNEVO.js.map → chunk-27S7QLDF.js.map} +0 -0
  655. /package/dist/{chunk-QT4MOS6R.js.map → chunk-2APGFWEU.js.map} +0 -0
  656. /package/dist/{chunk-RUKTOHK7.js.map → chunk-3AYSA62C.js.map} +0 -0
  657. /package/dist/{chunk-EXF4PLBN.js.map → chunk-3ISG5THX.js.map} +0 -0
  658. /package/dist/{chunk-IFPTD73K.js.map → chunk-3L2DIPRM.js.map} +0 -0
  659. /package/dist/{chunk-IQ6BQ2LX.js.map → chunk-4FOXMGJ7.js.map} +0 -0
  660. /package/dist/{chunk-5UX2HAF4.js.map → chunk-5OKDSI6M.js.map} +0 -0
  661. /package/dist/{chunk-IF4VXKJK.js.map → chunk-6XMOBI5V.js.map} +0 -0
  662. /package/dist/{chunk-OXBWZG2N.js.map → chunk-7QTBRHB7.js.map} +0 -0
  663. /package/dist/{chunk-YSC4VY43.js.map → chunk-ANSPBIYG.js.map} +0 -0
  664. /package/dist/{chunk-75JF44DH.js.map → chunk-AWI2TSWS.js.map} +0 -0
  665. /package/dist/{chunk-2MBELUE6.js.map → chunk-CDRKQ5BH.js.map} +0 -0
  666. /package/dist/{chunk-L567TKOK.js.map → chunk-CXAWPWGZ.js.map} +0 -0
  667. /package/dist/{chunk-VWJBQGXD.js.map → chunk-EDJ6O6CI.js.map} +0 -0
  668. /package/dist/{chunk-NKHRFR5G.js.map → chunk-GSMQL4IJ.js.map} +0 -0
  669. /package/dist/{chunk-4Y365UYP.js.map → chunk-JWQYZ6V4.js.map} +0 -0
  670. /package/dist/{chunk-AYREFYEF.js.map → chunk-KOTW7QQW.js.map} +0 -0
  671. /package/dist/{chunk-BYZPRB7U.js.map → chunk-L4KBYI3I.js.map} +0 -0
  672. /package/dist/{chunk-MJZPECVQ.js.map → chunk-M2DWTQRF.js.map} +0 -0
  673. /package/dist/{chunk-GCS5XAPC.js.map → chunk-MI3V2MAE.js.map} +0 -0
  674. /package/dist/{chunk-4LSLXBFN.js.map → chunk-MO3QJTVS.js.map} +0 -0
  675. /package/dist/{chunk-AAMPHDB2.js.map → chunk-MPTE57BZ.js.map} +0 -0
  676. /package/dist/{chunk-M6VAID7T.js.map → chunk-QBVRWGXD.js.map} +0 -0
  677. /package/dist/{chunk-4NO5MO2P.js.map → chunk-RIXW4HSE.js.map} +0 -0
  678. /package/dist/{chunk-YL3VEQTS.js.map → chunk-S7LPQXR5.js.map} +0 -0
  679. /package/dist/{chunk-QDVIMN57.js.map → chunk-TDPHZWJI.js.map} +0 -0
  680. /package/dist/{chunk-IQMDGAMB.js.map → chunk-WLEGSKKE.js.map} +0 -0
  681. /package/dist/{chunk-MBZ4UOWF.js.map → chunk-WTOG3CC6.js.map} +0 -0
  682. /package/dist/{chunk-VQONUZE4.js.map → chunk-X6CO4WIX.js.map} +0 -0
  683. /package/dist/{chunk-ENFWBFBI.js.map → chunk-XLJ4D4FI.js.map} +0 -0
  684. /package/dist/{chunk-QWWDG5B7.js.map → chunk-XTNAIM7X.js.map} +0 -0
  685. /package/dist/{chunk-X6SZPGL5.js.map → chunk-YNAJUTYC.js.map} +0 -0
  686. /package/dist/{chunk-VOVRWIBC.js.map → chunk-YSACCMUB.js.map} +0 -0
  687. /package/dist/{cli-7JW54ZTA.js.map → cli-IFXU5XNZ.js.map} +0 -0
  688. /package/dist/{cli-7Z7BD23R.js.map → cli-MZSWFSTW.js.map} +0 -0
  689. /package/dist/{cli-HFLU5QTD.js.map → cli-O3WXOFNS.js.map} +0 -0
  690. /package/dist/{cli-KT5X4J74.js.map → cli-RQJUQJEP.js.map} +0 -0
  691. /package/dist/{cli-XRF7WFE5.js.map → cli-ZGYSHJP7.js.map} +0 -0
  692. /package/dist/{control-plane-DGLF4MBB.js.map → control-plane-3TII2JGM.js.map} +0 -0
  693. /package/dist/{cp-hub-upload-7YESYCVS.js.map → cp-hub-upload-3W7Z4BMT.js.map} +0 -0
  694. /package/dist/{custody-client-P7SCEDU2.js.map → custody-client-KYEZET6C.js.map} +0 -0
  695. /package/dist/{deploy-hetzner-FOCNRRB2.js.map → deploy-hetzner-EO5PFKBG.js.map} +0 -0
  696. /package/dist/{dist-2CAWJQT5.js.map → dist-3AR6L5MF.js.map} +0 -0
  697. /package/dist/{dist-54VRDCUU.js.map → dist-4GHNQ2AK.js.map} +0 -0
  698. /package/dist/{dist-36WLI6E2.js.map → dist-BFH537FO.js.map} +0 -0
  699. /package/dist/{dist-63YBVZW4.js.map → dist-ETGTZQUT.js.map} +0 -0
  700. /package/dist/{dist-CBPQZPQN.js.map → dist-H2CSUDEI.js.map} +0 -0
  701. /package/dist/{dist-FHPNYDCF.js.map → dist-IABCQB5D.js.map} +0 -0
  702. /package/dist/{dist-MITAKWKQ.js.map → dist-JJZ3NZRO.js.map} +0 -0
  703. /package/dist/{dist-E4VLIH3H.js.map → dist-RPBA2EL5.js.map} +0 -0
  704. /package/dist/{dist-TJJ6KBNZ.js.map → dist-URWWHI3X.js.map} +0 -0
  705. /package/dist/{dist-XSAPZOEG.js.map → dist-V224SH3Z.js.map} +0 -0
  706. /package/dist/{host-reach-drainer-XFLSMTSX.js.map → host-reach-drainer-NYN3YXHG.js.map} +0 -0
  707. /package/dist/{hub-OMGLWQEV.js.map → host-session-YP5RKV6T.js.map} +0 -0
  708. /package/dist/{hub-adopt-IYZ3WXYN.js.map → hub-OWUC4IGW.js.map} +0 -0
  709. /package/dist/{hub-api-client-WOZ2BQ6H.js.map → hub-adopt-HYXFUPPO.js.map} +0 -0
  710. /package/dist/{prepare-OOZF37J6.js.map → hub-api-client-BI3E37CF.js.map} +0 -0
  711. /package/dist/{hub-docker-target-IQHX6OYX.js.map → hub-docker-target-6ODSK7ZE.js.map} +0 -0
  712. /package/dist/{plugin-update-2ACFHFUI.js.map → plugin-update-LI3QDA4K.js.map} +0 -0
  713. /package/dist/{prepared-custody-E7CSZJ6V.js.map → prepare-MYFNDJPP.js.map} +0 -0
  714. /package/dist/{prepared-state-FO74QUCP-PZLOM6HD.js.map → prepared-custody-WSHX6XTQ.js.map} +0 -0
  715. /package/dist/{registry-X33JZU6B.js.map → prepared-state-FO74QUCP-M4Q2X3KN.js.map} +0 -0
  716. /package/dist/{publish-credentials-TO5IIW2T.js.map → publish-credentials-FCEQSIPE.js.map} +0 -0
  717. /package/dist/{relay-7D5NOFKS.js.map → registry-GG23NEBF.js.map} +0 -0
  718. /package/dist/{remote-docker-share-YADHIHXV.js.map → relay-YUOIK3HN.js.map} +0 -0
  719. /package/dist/{tool-grant-push-7G2QAN3J.js.map → tool-grant-push-A2JYLJVF.js.map} +0 -0
  720. /package/runtime/hub/apps/hub/.next/static/{o9_g9S5JH-r8bfNfmPa5H → QDhlg7V_fEVGv_NfM2cEJ}/_buildManifest.js +0 -0
  721. /package/runtime/hub/apps/hub/.next/static/{o9_g9S5JH-r8bfNfmPa5H → QDhlg7V_fEVGv_NfM2cEJ}/_clientMiddlewareManifest.js +0 -0
  722. /package/runtime/hub/apps/hub/.next/static/{o9_g9S5JH-r8bfNfmPa5H → QDhlg7V_fEVGv_NfM2cEJ}/_ssgManifest.js +0 -0
@@ -1,4 +1,4 @@
1
- module.exports=[48806,e=>{"use strict";let t={description:"Error",content:{"application/json":{schema:{$ref:"#/components/schemas/Error"}}}};e.s(["buildOpenApi",0,function(){return{openapi:"3.1.0",info:{title:"AgentBox Hub API",version:"1.0.0",description:'Launch and manage AgentBox sandboxes ("boxes") programmatically. Every endpoint except /health, /openapi.json and /docs requires an Authorization: Bearer <hub token> header (the token the hub prints on boot, also at ~/.agentbox/hub/token). Errors always return { error: { code, message, details? } }.'},servers:[{url:"/api/v1"}],security:[{bearerAuth:[]}],tags:[{name:"System",description:"Liveness and API version."},{name:"Boxes",description:"Create, inspect, and run lifecycle actions on boxes."},{name:"Box git",description:"Git state and operations on a box's branch."},{name:"Box services",description:"A box's agentbox.yaml service/task/port status."},{name:"Projects",description:"Register folders as projects and list their branches."},{name:"Providers",description:"Sandbox providers: status, credentials, base-image bake."},{name:"Agents",description:"Coding agents this hub can start, and host setup for each."},{name:"Hosts",description:"Remote-docker host aliases (name -> SSH connection)."},{name:"Approvals",description:"Pending host-action approvals."},{name:"Jobs",description:"Async create/bake job status and log streams."},{name:"Checkpoints",description:"Durable per-project checkpoints (docker image / cloud snapshot)."},{name:"Fleet",description:"Fleet-wide maintenance (prune orphan boxes and resources)."},{name:"Custody",description:"What the control box holds in custody (metadata only — never values)."}],paths:{"/health":{get:{tags:["System"],summary:"Get liveness + API version",security:[],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Health"}}}}}}},"/boxes":{get:{tags:["Boxes"],summary:"List or resolve boxes",description:"Lists every box (normalized view). ?live=1 refreshes each cloud box state with an SDK probe (opt-in, slower; host topology only). ?ref=<id|name|index> instead resolves a single box server-side (findBox semantics: exact id, unique id prefix, name, displayName, sandbox id); pass ?project=<host-path> for numeric project-index refs. The ref response is the match set in { boxes }: 0 (none), 1 (unique), or >1 (ambiguous prefix).",parameters:[{name:"live",in:"query",required:!1,schema:{type:"string",enum:["1"]}},{name:"ref",in:"query",required:!1,schema:{type:"string"}},{name:"project",in:"query",required:!1,schema:{type:"string"}}],responses:{200:{description:"Boxes",content:{"application/json":{schema:{type:"object",properties:{boxes:{type:"array",items:{$ref:"#/components/schemas/Box"}}},required:["boxes"]}}}},401:t}},post:{tags:["Boxes"],summary:"Create a box",description:'Async — returns a job id. agent "none" just creates the box without starting an agent (prompt ignored). provider defaults to docker; a cloud provider must be configured on the host (see GET /providers). A SERVICE agent (one whose GET /agents row reports `surface: "service"`, e.g. openclaw) creates a PERSISTENT box by default — it hosts a daemon, so an autopause would be an outage; pass `opts.persistent: false` for an expendable one. A persistent create on e2b/vercel is refused with `conflict` rather than silently downgraded. A service-agent box has no session to attach to: the build ends at a running daemon.',requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateBox"}}}},responses:{202:{description:"Accepted — build job enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"}},required:["jobId"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}":{get:{tags:["Boxes"],summary:"Get one box",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Box",content:{"application/json":{schema:{$ref:"#/components/schemas/Box"}}}},401:t,404:t}}},"/boxes/{id}/{action}":{post:{tags:["Boxes"],summary:"Run a lifecycle action",description:"One of start | pause | resume | stop | destroy | screen. start brings a stopped box back up (resumes if paused, no-op if already running); it does not restart the agent session — that happens on the next attach. screen is the open-VNC prep step: it points the in-box browser at the box’s web app so the VNC desktop shows the app instead of a blank X screen — call it right before opening the viewer. It does not return a URL; get that from GET /boxes/{id}/vnc.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}},{name:"action",in:"path",required:!0,schema:{type:"string",enum:["start","pause","resume","stop","destroy","screen"]}}],responses:{200:{description:"Done",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/git":{get:{tags:["Box git"],summary:"Get the box's live git summary",description:"The worktree's current branch, dirty, ahead/behind.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Git info",content:{"application/json":{schema:{$ref:"#/components/schemas/GitInfo"}}}},401:t,404:t,503:t}}},"/boxes/{id}/git/{op}":{post:{tags:["Box git"],summary:"Run a git op on the box branch",description:"checkout {branch}; branch {name, from?} (create+switch a new agentbox/* branch); pull {remote?, ffOnly?}; push {remote?, force?}; push-host {as?, force?} (land in the host repo only, publishes nothing).",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}},{name:"op",in:"path",required:!0,schema:{type:"string",enum:["checkout","branch","pull","push","push-host"]}}],requestBody:{required:!1,content:{"application/json":{schema:{$ref:"#/components/schemas/GitOpBody"}}}},responses:{200:{description:"Done (git stdout/stderr)",content:{"application/json":{schema:{$ref:"#/components/schemas/GitOpResult"}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/branches":{get:{tags:["Box git"],summary:"List the box project's branches",description:"Local + remote branches and the current HEAD, for the box git-panel branch picker.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Branches",content:{"application/json":{schema:{$ref:"#/components/schemas/BranchList"}}}},400:t,401:t,404:t,503:t}}},"/boxes/{id}/services":{get:{tags:["Box services"],summary:"Get the box's service/task/port status",description:"From the box's agentbox.yaml — live, or the persisted snapshot when the box isn't running.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Services",content:{"application/json":{schema:{$ref:"#/components/schemas/Services"}}}},401:t,503:t}}},"/boxes/{id}/services/restart":{post:{tags:["Box services"],summary:"Restart services",description:"Restart one service (body {name}) or every service (empty body).",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string"}}}}}},responses:{200:{description:"Restarted",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/vnc":{get:{tags:["Boxes"],summary:"Mint the box's noVNC viewer URL",description:"A ready-to-open noVNC URL (autoconnect, password in the query). Cloud boxes get a freshly SIGNED preview URL on port 6080 that expires — which is why the Box payload's `vncUrl` is null for daytona/vercel/e2b and this must be called at click time. Docker/hetzner boxes return their stable Portless/OrbStack/loopback URL. Read-only: refused with 409 when the box is not running, has VNC disabled, or has no recorded password. Pair with POST /boxes/{id}/screen to point the in-box browser at the web app first.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}},{name:"ttl",in:"query",required:!1,description:"Cloud only: signed-URL lifetime in seconds (provider default 3600).",schema:{type:"integer",minimum:1,maximum:86400}},{name:"loopback",in:"query",required:!1,description:"Docker only: prefer the 127.0.0.1 host-port URL over OrbStack/Portless.",schema:{type:"string",enum:["1"]}}],responses:{200:{description:"Viewer URL",content:{"application/json":{schema:{type:"object",properties:{url:{type:"string"},ttl:{type:"integer"}},required:["url"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/web":{get:{tags:["Boxes"],summary:"Resolve a box's web URL at click time, with a sign-in link when one applies",description:"The live web URL for the box, plus — for a SERVICE agent (openclaw) — a link that opens the agent's own UI already signed in. Call this before opening a box's web UI instead of using the Box payload's `webUrl`: that field is a recorded value, and where the URL is an SSH forward (hetzner/DO) the live port differs once the session has been re-established — the same class of reason `vncUrl` is null for signed-URL clouds. `signInUrl` is `<url>/#token=…` (the daemon generates its token inside the box and its UI reads it from the URL FRAGMENT), and null when the agent declares no such field or has not written one yet. `signInPending` tells those two apart: true means this box's daemon HAS a token and could not give one (still starting, or still onboarding), so `url` opens its sign-in prompt at best and a dead port at worst — say \"not ready yet\" and offer to wait rather than opening it. False means `url` is the complete answer. Read-only: refused with 409 when the box is not running.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Web URL, and the sign-in link when there is one",content:{"application/json":{schema:{type:"object",properties:{url:{type:"string"},signInUrl:{type:"string",nullable:!0},signInPending:{type:"boolean"}},required:["url","signInUrl","signInPending"]}}}},401:t,404:t,409:t,503:t}}},"/boxes/{id}/rename":{post:{tags:["Boxes"],summary:"Set or clear a box's display label",description:"Cosmetic only — the container, branch and URLs are untouched. Pass an empty string to clear the label. Backs `agentbox status <box> --set-name/--clear-name`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{displayName:{type:"string",description:"New label (max 60 chars); empty string clears it."}},required:["displayName"]}}}},responses:{200:{description:"Renamed",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/agent":{get:{tags:["Boxes"],summary:"Get the box's in-box coding-agent status snapshot",description:"Every reporting agent's live activity (working / idle / waiting / question / end-plan / …), plan/question payload and session title, from the persisted status store. Backs `agentbox agent state/wait-for/get-plan-question`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Agent state",content:{"application/json":{schema:{$ref:"#/components/schemas/AgentState"}}}},401:t,404:t,503:t}}},"/boxes/{id}/logs":{get:{tags:["Boxes"],summary:"Read (or follow) a box's service log",description:"One of two shapes on one route. `follow=0` (default) returns a JSON `{ output }` snapshot — a bounded `--tail` dump. `follow=1` returns an SSE stream (`open` / `log`* / `end`) the hub pipes live from the in-box `agentbox-ctl logs --follow`. Pass `service=<name>` for a declared service, or `daemon=1` for the ctl-daemon log.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}},{name:"service",in:"query",required:!1,schema:{type:"string"},description:"A declared service name (required unless daemon=1)."},{name:"daemon",in:"query",required:!1,schema:{type:"string",enum:["1"]},description:"Tail the ctl-daemon log instead of a service."},{name:"follow",in:"query",required:!1,schema:{type:"string",enum:["1"]},description:"Stream the log as SSE instead of returning a snapshot."},{name:"tail",in:"query",required:!1,schema:{type:"integer"},description:"Lines of history (default 200)."}],responses:{200:{description:"Log snapshot (JSON) or SSE stream (text/event-stream when follow=1)",content:{"application/json":{schema:{type:"object",properties:{output:{type:"string"}},required:["output"]}},"text/event-stream":{schema:{type:"string"}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/checkpoint":{post:{tags:["Checkpoints"],summary:"Capture the box state as a project checkpoint",description:"Commits the box (docker commit / cloud snapshot) into the project checkpoint store on the hub machine, via provider.checkpoint.*. A durable project asset — it survives the box. Backs `agentbox checkpoint create`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string",description:"Checkpoint name (auto-generated if omitted)."},merged:{type:"boolean",description:"docker: flatten to a single squashed layer (FROM scratch)."},setDefault:{type:"boolean",description:"Also pin this as the project's default checkpoint."},replace:{type:"boolean",description:"Overwrite an existing checkpoint of the same name."}}}}}},responses:{200:{description:"Checkpoint captured",content:{"application/json":{schema:{$ref:"#/components/schemas/CheckpointCreateResult"}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/backup":{post:{tags:["Checkpoints"],summary:"Capture a bot: workspace + the agent's state dir, identity included",description:"Writes `<project>/.agentbox/bots/<bot>/<stamp>/` on the HUB's machine — a `workspace/` half, and (when the box's agent declares a state backup, i.e. `supportsBackup` on the box payload) a `state/` half holding the bot's IDENTITY: gateway token, channel pairings, history. Live databases go through SQLite's online-backup API, not a byte copy. Unlike a checkpoint, this is provider-neutral files, so a bot captured on e2b restores onto hetzner. The state half is BEST-EFFORT — a box whose agent cannot be reached still yields a usable workspace bundle, and the manifest's `state: false` says so. Mirrors `agentbox download --backup`; read back by `POST /projects/{id}/restore`. `state/` holds a live credential: it is written 0700 and `.agentbox/` is added to the project's .gitignore.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string",description:"Bot name the bundle is filed under (default: the box name). A single path segment."},keep:{type:"integer",minimum:1,description:"Backups to keep for this bot; older ones are pruned. Default 3."},agent:{type:"string",description:"Whose state to capture (default: the box's own recorded agent)."},includeNodeModules:{type:"boolean",description:"Carry node_modules into the workspace half as well."}}}}}},responses:{200:{description:"Backup written",content:{"application/json":{schema:{type:"object",properties:{ok:{type:"boolean"},bot:{type:"string"},stamp:{type:"string"},dir:{type:"string",description:"Absolute bundle dir on the HUB's machine."},agent:{type:"string"},state:{type:"boolean",description:"False when only the workspace was captured — no identity in this bundle."},databases:{type:"array",items:{type:"string"}},files:{type:"number"},pruned:{type:"array",items:{type:"string"}},wroteGitignore:{type:"boolean"}}}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/upload":{post:{tags:["Box services"],summary:"Push the host workspace into the box (`agentbox upload`)",description:"The host->box direction, the mirror of `agentbox download`. A git workspace merges the host branch into the box branch and overlays the host's uncommitted/untracked changes; a non-git workspace gets a plain file overlay. THE BOX WINS every conflict — nothing in the box is overwritten or reset, and the skipped host paths come back in `conflicts`. Needs the in-process host backend, and reads the workspace off the HUB'S OWN disk — a client on another machine cannot push its files this way, so `agentbox upload` refuses rather than uploading the hub's copy of the project.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{includeNodeModules:{type:"boolean",description:"Push node_modules too (non-git workspaces only)."}}}}}},responses:{200:{description:"Workspace synced",content:{"application/json":{schema:{type:"object",properties:{mode:{type:"string",enum:["git","files"]},copied:{type:"integer"},conflicts:{type:"array",items:{type:"string"}}},required:["mode","copied","conflicts"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/clone":{post:{tags:["Boxes"],summary:"New box from this box's workspace, with a fresh agent identity",description:"Exports the box's workspace files (gitignore/exclude aware, agent state dropped) into a new host project dir, then enqueues a normal create seeded from it. The agent's config volume and credential are deliberately NOT copied, so the clone onboards from scratch and gets its own identity — there is no `--with-state`. `.git` is not exported: the clone is a template, and a git-backed second box is what a plain create already gives you. Returns the create job; stream it via GET /jobs/{jobId}/logs — the create is enqueued in the ungated FOREGROUND lane, because the caller is blocked on that stream and must not queue behind background jobs. Backs `agentbox clone`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string",description:"Name for the new box (default `<source>-clone`)."},provider:{type:"string",description:"Provider for the new box (default: the source box's)."},into:{type:"string",description:"Dir for the clone's workspace ON THE HUB'S MACHINE (default `~/.agentbox/clones/<name>`, in the hub user's home); must be absent or empty. MUST BE ABSOLUTE — a working directory is client state that does not travel over an API, so a relative path is rejected with `invalid_request` rather than resolved against whatever directory the hub daemon was started in. `agentbox clone --into` resolves it against your cwd before sending."},includeNodeModules:{type:"boolean"},persistent:{type:"boolean",description:"Always-on clone. OMIT to inherit the source box's persistence (a clone of a service box is always-on too); `false` is an explicit opt-out. `true` against e2b/vercel is refused with `conflict` — their platform session cap makes an always-on box impossible."}}}}}},responses:{200:{description:"Clone staged; create job enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"},name:{type:"string"},workspace:{type:"string",description:"Host dir the clone's workspace was exported to."},provider:{type:"string"},carryAsk:{type:"boolean",description:"Show the `carry:` question again for a list this project has already approved. A standing approval otherwise removes the prompt entirely, so this is how a client offers a review — and, by answering Skip/Cancel on the create, a way to withdraw it."},files:{type:"integer"},persistent:{type:"boolean",description:"The always-on flag resolved for the clone. Absent when neither the request nor the source box had an opinion, leaving it to the hub's `box.persistent`."}},required:["jobId","name","workspace","provider","files"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/open":{post:{tags:["Box services"],summary:"Open the box in a host app",description:"Launch the box in a host GUI app (Codex, VS Code/Cursor, cmux, Herdr, iTerm2) by re-shelling `agentbox open --in <app>`. Only works on a localhost hub running on macOS; a remote hub / non-macOS host refuses. An app must be installed and provider-eligible (e.g. Codex is Hetzner-only) — see GET /open-targets.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{app:{type:"string",enum:["codex","herdr","cmux","vscode","iterm2"]}},required:["app"]}}}},responses:{200:{description:"Launched",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/open-targets":{get:{tags:["Box services"],summary:"Which host apps this hub can open a box in",description:'Reports whether the hub can launch host GUI apps (`supported` — true only on a localhost hub on macOS) and, if so, which of Codex/Herdr/cmux/VS Code/iTerm2 are installed plus their provider eligibility. Backs the box detail page "Apps" launchers.',responses:{200:{description:"Open targets",content:{"application/json":{schema:{type:"object",properties:{supported:{type:"boolean"},targets:{type:["object","null"],additionalProperties:{type:"object",properties:{available:{type:"boolean"},providers:{type:"array",items:{type:"string"}}},required:["available"]}}},required:["supported","targets"]}}}},401:t}}},"/projects":{get:{tags:["Projects"],summary:"List registered projects",responses:{200:{description:"Projects",content:{"application/json":{schema:{type:"object",properties:{projects:{type:"array",items:{$ref:"#/components/schemas/Project"}}},required:["projects"]}}}},401:t}},post:{tags:["Projects"],summary:"Register a folder as a project, or create a new one",description:"Exactly one body shape. `{ path }` registers a folder that already exists. `{ parent, name, git? }` creates `<parent>/<name>` (empty, or with `git: true` a repo on `main` with a `.gitignore` and an initial commit) and registers it; refused when the target exists or the parent sits inside another project.",requestBody:{required:!0,content:{"application/json":{schema:{oneOf:[{type:"object",title:"RegisterProject",properties:{path:{type:"string",description:"Absolute path to the folder."}},required:["path"]},{type:"object",title:"CreateProject",properties:{parent:{type:"string",description:"Absolute path of the existing folder to create into."},name:{type:"string",pattern:"^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$",description:"New folder name (one path segment, no leading dot)."},git:{type:"boolean",default:!1,description:"Initialize a git repository with an initial commit."}},required:["parent","name"]}]}}}},responses:{200:{description:"Registered (or created and registered)",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0},id:{type:"string",description:"Project id (hash of the canonical root)."},path:{type:"string",description:"Canonical project root."}},required:["ok","id","path"]}}}},400:t,401:t,503:t}}},"/projects/{id}":{delete:{tags:["Projects"],summary:"Unregister an empty project",description:"Folder/files on disk are untouched.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Removed",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},401:t,404:t,409:t,503:t}}},"/projects/{id}/bots":{get:{tags:["Projects"],summary:"Bots this project holds a backup of",description:"Every bot under `<project>/.agentbox/bots/`, alphabetically, each with its backups newest first and its manifest folded in. The source for a restore picker. `latest` is the stamp the bot's `latest` link resolves to, omitted when the link is missing or dangling. `state: false` on a backup means it captured only a workspace — restoring one gives a working box with a FRESH identity, which is not what \"restore this bot\" promises, so a picker must surface it. Read-only, but host-backed: the bundles are on the hub's own disk.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Bots and their backups",content:{"application/json":{schema:{type:"object",properties:{bots:{type:"array",items:{type:"object",properties:{bot:{type:"string"},latest:{type:"string"},backups:{type:"array",items:{type:"object",properties:{stamp:{type:"string"},agent:{type:"string"},state:{type:"boolean"},boxName:{type:"string"},provider:{type:"string"}}}}}}}}}}}},401:t,404:t,503:t}}},"/projects/{id}/restore":{post:{tags:["Projects"],summary:"Bring a backed-up bot back as a new box, identity included",description:"The inverse of `POST /boxes/{id}/backup`, and the opposite of `clone`: a clone deliberately starts a SECOND bot with a fresh identity, a restore puts the ORIGINAL one back — same gateway token, same channel pairings, same history, on whichever provider you point it at. Project-scoped because a bundle outlives the box it came from, which is what a backup is for; the project is what still exists. Two steps behind one call, exactly like `clone`: the bundle's workspace half is staged into `<project>/.agentbox/bots/{bot}/workspace` (or `into`) and registered as a project, then a normal create is enqueued in the ungated foreground lane; the STATE half is applied by the queue worker once the box's service has come up on its own. REFUSALS, both before anything is written: the source box still running (two live gateways cannot share one identity — the failure a per-box state dir exists to prevent), and a destination another box already runs on. `force` overrides both. A bundle with `state: false` is refused by name rather than half-delivered. Returns the create job — stream it through `GET /jobs/{jobId}/logs`. Backs `agentbox <service-agent> --restore <bot>`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["bot"],properties:{bot:{type:"string",description:"Which bot to bring back."},stamp:{type:"string",description:"Which backup. Default: whatever the bot's `latest` points at."},name:{type:"string",description:"Name for the new box (default: the bot name)."},provider:{type:"string",description:"Provider for the new box (default: the one the bundle was captured on). A bundle is provider-neutral files, so this may differ."},into:{type:"string",description:"Where the restored workspace lives, on the HUB's machine. MUST be absolute — a working directory is client state that does not travel over an API."},force:{type:"boolean",description:"Proceed even when the source box is still running, or the destination is not empty."},persistent:{type:"boolean",description:"Always-on flag for the restored box. Defaults to true — a bot is an always-on box, and a restored one is the same bot."}}}}}},responses:{200:{description:"Workspace staged; create job enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"},name:{type:"string"},workspace:{type:"string"},provider:{type:"string"},bot:{type:"string"},stamp:{type:"string"},agent:{type:"string"},files:{type:"number"},persistent:{type:"boolean"}}}}}},400:t,401:t,404:t,409:t,503:t}}},"/projects/{id}/branches":{get:{tags:["Projects"],summary:"List a project's branches",description:"Local + remote branches and the current HEAD, for the create-box base-branch picker.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Branches",content:{"application/json":{schema:{$ref:"#/components/schemas/BranchList"}}}},400:t,401:t,404:t,503:t}}},"/projects/{id}/create-preflight":{post:{tags:["Projects"],summary:"What would creating a box here ask the user?",description:'The host-boundary questions a create for this project would ask — a project\'s `carry:` block, the host login a service agent would borrow — as `PromptRequest` objects a client renders and answers. Answers ride back on `POST /api/v1/boxes` as `opts.promptAnswers`.\n\nThe list comes from running the real gates with a collecting asker, so it can never differ from what the create asks. `unavailable` names each gate this hub cannot run and why: a control box has no local checkout of the project, so it can read neither the files a `carry:` block names nor the host logins a box would borrow, and says so rather than returning an empty list that looks like "nothing to ask".\n\nA client that skips this endpoint still creates boxes: every prompt carries a `fallback`. But a prompt marked `required` — `carry:`, whose silent answer would move host secrets — has no safe fallback, and a create that leaves it unanswered is refused.',parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["agent"],properties:{agent:{type:"string",description:"Agent the box would run; decides which agent-specific gates apply. `none` for an agentless box."},provider:{type:"string"}}}}}},responses:{200:{description:"The questions this create would ask",content:{"application/json":{schema:{$ref:"#/components/schemas/CreatePreflight"}}}},400:t,401:t,503:t}}},"/projects/{id}/seed":{get:{tags:["Projects"],summary:"Get a project's seed / custody status",description:"What `agentbox hub project push` stored on the control box (untracked + env/secret tarballs + manifest), as paths, hashes and timestamps only — never seed contents. `custodyAvailable` is false on a hub that is not a control box.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Seed status",content:{"application/json":{schema:{$ref:"#/components/schemas/ProjectSeed"}}}},401:t,404:t}}},"/agents":{get:{tags:["Agents"],summary:"List coding agents",description:"The agents a picker should offer, from the agent registry (so an agent registered with `agentbox agent add` is included). `installed` reports whether THIS machine holds the agent's config directory or an AgentBox-saved login for it; it is a hint for what to offer first, not a gate — an agent installs on demand inside a box. Omitted when the hub cannot answer for a host (the hosted plane), which clients read as unknown rather than as false.",responses:{200:{description:"Agents",content:{"application/json":{schema:{type:"object",properties:{agents:{type:"array",items:{$ref:"#/components/schemas/Agent"}}},required:["agents"]}}}},401:t}}},"/providers":{get:{tags:["Providers"],summary:"List sandbox providers",description:"With credential + baked status on this host.",responses:{200:{description:"Providers",content:{"application/json":{schema:{type:"object",properties:{providers:{type:"array",items:{$ref:"#/components/schemas/Provider"}}},required:["providers"]}}}},401:t}}},"/providers/{id}/credentials":{post:{tags:["Providers"],summary:"Set a provider's credentials",description:"API keys/tokens, validated then saved to secrets.env. Never echoes secret values.",parameters:[{name:"id",in:"path",required:!0,description:"Provider name. Built-ins are docker, daytona, hetzner, vercel, e2b, digitalocean, remote-docker; a provider registered with `agentbox plugin add` uses its own name.",schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:{type:"string"},description:"Provider-specific fields, e.g. { apiKey } (e2b), { token } (hetzner), { apiKey } or { jwtToken, organizationId } (daytona), { token, teamId?, projectId? } (vercel)."}}}},responses:{200:{description:"Saved",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,503:t}}},"/providers/{id}/size-check":{post:{tags:["Providers"],summary:"Would a box created at this size actually get it?",description:"Most backends apply a size per create and answer false. Daytona and e2b fix CPU/memory when the base is baked and discard anything else, so they answer true with the reason to show. Lets a create form re-bake only when the size really differs from the baked one. Advisory: an unresolvable provider or a backend with no opinion answers false.",parameters:[{name:"id",in:"path",required:!0,description:"Provider name. Built-ins are docker, daytona, hetzner, vercel, e2b, digitalocean, remote-docker; a provider registered with `agentbox plugin add` uses its own name.",schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{size:{type:"string",description:"A literal --size value for this provider (e.g. cx43, 4, 4-8-10). Opaque here — the provider parses it."}},required:["size"]}}}},responses:{200:{description:"Verdict",content:{"application/json":{schema:{type:"object",properties:{rebakeRequired:{type:"boolean",description:"true = a plain create would discard this size; bake first with POST /providers/{id}/prepare { size, force: true }. `force` matters: a size change does not move the build-context fingerprint, so without it the bake is a no-op."},reason:{type:"string",description:"Why, in the provider's own words. Only when rebakeRequired."}},required:["rebakeRequired"]}}}},400:t,401:t,503:t}}},"/providers/{id}/prepare":{post:{tags:["Providers"],summary:"Bake a provider's base image",description:"Async — returns a job id. Progress streams over GET /jobs/{id}/logs.",parameters:[{name:"id",in:"path",required:!0,description:"Provider name. Built-ins are docker, daytona, hetzner, vercel, e2b, digitalocean, remote-docker; a provider registered with `agentbox plugin add` uses its own name.",schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{force:{type:"boolean"},agentSettings:{type:"object",additionalProperties:{type:"object",additionalProperties:{type:["string","boolean"]}},description:'Per-agent settings for the bake, keyed by agent id (e.g. {"claude":{"install":"npm"}}). Which keys an agent declares is runtime data - see `agentbox config list`.'},agents:{type:"array",items:{type:"string",enum:["claude","codex","opencode","pi"]},description:"Agents to bake into the base. Omitted/empty bakes an agentless base."},build:{type:"boolean"},size:{type:"string"},location:{type:"string"},name:{type:"string"}}}}}},responses:{202:{description:"Bake enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"}},required:["jobId"]}}}},400:t,401:t,409:t,503:t}}},"/hosts":{get:{tags:["Hosts"],summary:"List remote-docker host aliases",description:"Each with its SSH connection and baked/default state.",responses:{200:{description:"Hosts",content:{"application/json":{schema:{type:"object",properties:{hosts:{type:"array",items:{type:"object",properties:{alias:{type:"string"},ssh:{type:"string"},baked:{type:"boolean"},bakedImageRef:{type:"string"},default:{type:"boolean"}},required:["alias","ssh","baked","default"]}}},required:["hosts"]}}}},401:t,503:t}},post:{tags:["Hosts"],summary:"Register a remote-docker host alias",description:"Probes the host (ssh + docker) before saving. Does not bake the image (builds on first create). `default` also pins box.remoteDockerHost.",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{alias:{type:"string"},ssh:{type:"string",description:"an ~/.ssh/config alias or [user@]host[:port]"},default:{type:"boolean"}},required:["alias","ssh"]}}}},responses:{201:{description:"Registered",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,409:t,503:t}}},"/hosts/{alias}":{delete:{tags:["Hosts"],summary:"Forget a remote-docker host alias",description:"Drops the alias + baked-image record + default. Local record only. Returns boxes created against it (now unreachable).",parameters:[{name:"alias",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Removed",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0},boxesAffected:{type:"array",items:{type:"string"}}},required:["ok","boxesAffected"]}}}},401:t,404:t,503:t}}},"/hosts/{alias}/bake":{post:{tags:["Hosts"],summary:"Bake the box image on a host",description:"Async — returns a job id. Progress streams over GET /jobs/{id}/logs (pull from GHCR is fast; a registry-miss build is slow).",parameters:[{name:"alias",in:"path",required:!0,schema:{type:"string"}}],responses:{202:{description:"Bake enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"}},required:["jobId"]}}}},401:t,404:t,503:t}}},"/checkpoints":{get:{tags:["Checkpoints"],summary:"List a project's (or every project's) checkpoints",description:"The project checkpoint store lives on the hub machine, keyed by the absolute project root. Pass `?project=<abs root>` for one project, or `?global=1` for every project. Backs `agentbox checkpoint ls` / `ls -g`.",parameters:[{name:"project",in:"query",required:!1,schema:{type:"string"},description:"Absolute project root (required unless global=1)."},{name:"global",in:"query",required:!1,schema:{type:"string",enum:["1"]},description:"List checkpoints for every project."}],responses:{200:{description:"Checkpoints",content:{"application/json":{schema:{$ref:"#/components/schemas/CheckpointListing"}}}},400:t,401:t,503:t}},delete:{tags:["Checkpoints"],summary:"Delete a checkpoint",description:"Removes one checkpoint from every store that had it and sweeps any dangling default-checkpoint config pointer. Backs `agentbox checkpoint rm`.",parameters:[{name:"project",in:"query",required:!0,schema:{type:"string"},description:"Absolute project root."},{name:"ref",in:"query",required:!0,schema:{type:"string"},description:"The checkpoint name."},{name:"provider",in:"query",required:!1,schema:{type:"string"},description:"Scope the delete to one provider store."}],responses:{200:{description:"Deleted",content:{"application/json":{schema:{$ref:"#/components/schemas/CheckpointRemoveResult"}}}},400:t,401:t,404:t,503:t}}},"/prune":{post:{tags:["Fleet"],summary:"Prune orphan boxes and resources",description:"Without a provider (or provider `docker`) it reaps orphan docker records, containers, volumes, snapshot/box dirs — and, with `all`, orphan project configs. With a cloud provider it enumerates untracked sandboxes and (when not a `dryRun`) deletes them AND reaps their control-box registrations. Durable project checkpoints are always left intact. Backs `agentbox prune`.",requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{provider:{type:"string",description:"Cloud provider to prune; omit (or `docker`) for the local docker sweep."},all:{type:"boolean",description:"docker: also remove orphan per-project config dirs."},dryRun:{type:"boolean",description:"Report what would be removed without removing anything."}}}}}},responses:{200:{description:"Prune result",content:{"application/json":{schema:{$ref:"#/components/schemas/PruneResult"}}}},400:t,401:t,409:t,503:t}}},"/approvals":{get:{tags:["Approvals"],summary:"List pending host-action approvals",responses:{200:{description:"Approvals",content:{"application/json":{schema:{type:"object",properties:{approvals:{type:"array",items:{$ref:"#/components/schemas/Approval"}}},required:["approvals"]}}}},401:t}}},"/approvals/{id}/answer":{post:{tags:["Approvals"],summary:"Answer a pending approval",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{answer:{type:"string",enum:["y","n"]},cancelled:{type:"boolean",description:"Mark a dismissal distinctly from a plain deny in the audit trail (the `agent approve --cancel` capability). Still leaves the action unapproved."},openedByClient:{type:"boolean",description:"`open-link` only: this client already opened the URL on its own machine, so the host must not open it again. Answering is also the CLAIM — several surfaces see the same link and only the first gets 200; a 404 means someone else opened it, so open nothing."}},required:["answer"]}}}},responses:{200:{description:"Resolved",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,503:t}}},"/boxes/{id}/stream":{get:{tags:["Approvals"],summary:"Subscribe to a box's live event stream (SSE)",description:"Payload-carrying Server-Sent Events for one box — the attach footer's channel. Emits `open` (first frame of every connect, followed by a backlog flush of everything still live), `prompt-ask` (the full pending-approval payload), `prompt-resolved` (`{ id }`), `notice-set`/`notice-clear`, `box-status` (the in-box daemon's latest snapshot: agent activity, session titles, service/task states), and a `ping` heartbeat. `box-status` is the only status source for a box this hub owns but the client does not — the durable status file is written by whichever relay the box reports to. Distinct from GET /api/events, which carries refetch signals only (`data: {}`). Degrades to open + heartbeat on a hub topology with no in-process relay.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"SSE stream (text/event-stream)",content:{"text/event-stream":{schema:{type:"string"}}}},401:t}}},"/jobs":{get:{tags:["Jobs"],summary:"List background jobs",description:"The unified job listing — the local file queue's create jobs merged with, on a control box, the control-plane create queue. Backs `agentbox queue list` and `agentbox hub jobs`.",responses:{200:{description:"Jobs",content:{"application/json":{schema:{type:"object",properties:{jobs:{type:"array",items:{$ref:"#/components/schemas/JobListItem"}}},required:["jobs"]}}}},401:t,503:t}}},"/jobs/{id}":{get:{tags:["Jobs"],summary:"Get a create job status",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Job",content:{"application/json":{schema:{$ref:"#/components/schemas/Job"}}}},401:t,404:t}}},"/jobs/{id}/logs":{get:{tags:["Jobs"],summary:"Stream a create job log (SSE)",description:"text/event-stream. Emits `open`, then `log` events per line, then a terminal `end` event with the final status.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"SSE stream",content:{"text/event-stream":{}}},401:t,404:t,503:t}}},"/jobs/{id}/login-code":{post:{tags:["Jobs"],summary:"Deliver an OAuth login code to a create job",description:"Feeds a pasted Claude OAuth approval code to a create job that is awaiting a re-login. The create worker consumes it and completes the in-box login. The one interactive create affordance that survives.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{code:{type:"string",description:"The OAuth approval code."}},required:["code"]}}}},responses:{200:{description:"Accepted",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,503:t}}},"/custody":{get:{tags:["Custody"],summary:"List the custody manifest (metadata only)",description:"What the hub holds so a box created from either side is usable from both: agent credentials, project seeds, provider bake records, and per-box SSH keys. Returns paths, hashes, sizes and mtimes ONLY — value bytes never leave the box (same contract as `agentbox hub custody list`). Optional `?prefix=` scopes the listing to a custody scope (`agents` | `projects` | `prepared` | `boxes`) or a `scope/subject`.",parameters:[{name:"prefix",in:"query",required:!1,schema:{type:"string"},description:"A custody scope or scope/subject, e.g. `agents` or `boxes/box-abc`."}],responses:{200:{description:"Custody manifest",content:{"application/json":{schema:{$ref:"#/components/schemas/Custody"}}}},400:t,401:t}}},"/custody/{path}":{parameters:[{name:"path",in:"path",required:!0,schema:{type:"string"},description:"Custody path, e.g. `agents/claude/.credentials.json` or `boxes/box-abc/ssh/id_ed25519`."}],get:{tags:["Custody"],summary:"Read a stored blob (ELEVATED — admin token required on a control box)",description:"Returns the entry metadata AND its bytes (`data`, base64). This is the ONE byte-returning custody route, so it is gated beyond the hub API key: on a control box (password profile) it additionally requires the admin token in `X-Agentbox-Admin-Token` — a byte-read with only the API key is `401`, so a value never leaves the box to a thin client. A localhost hub (token profile) needs no admin token: its hub token is a machine-local secret that already gates the whole surface. Backs `agentbox hub credentials pull` / `custody pull` and per-box SSH-key adoption.",responses:{200:{description:"The stored entry + its base64 bytes",content:{"application/json":{schema:{$ref:"#/components/schemas/CustodyValue"}}}},400:t,401:t,404:t}},put:{tags:["Custody"],summary:"Store bytes at a custody path (metadata-only response)",description:"Stores `data` (base64) at the path. Content-addressed: `changed` is false when the identical bytes were already there. The response is METADATA ONLY — it never echoes the stored value. Backs `agentbox hub credentials/secrets/project push`.",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["data"],properties:{data:{type:"string",description:"base64-encoded bytes"}}}}}},responses:{200:{description:"Stored (metadata only)",content:{"application/json":{schema:{$ref:"#/components/schemas/CustodyPutResult"}}}},400:t,401:t}},delete:{tags:["Custody"],summary:"Delete a custody entry",description:"Removes one entry. Backs `agentbox hub custody rm`.",responses:{204:{description:"Deleted"},400:t,401:t,404:t}}},"/custody/blob/{path}":{parameters:[{name:"path",in:"path",required:!0,schema:{type:"string"},description:"Custody path, e.g. `projects/acme__web/seed/carry.tar.gz`."}],get:{tags:["Custody"],summary:"Stream a stored blob (ELEVATED — admin token required on a control box)",description:"Raw `application/octet-stream` counterpart of GET /custody/{path}, for values too large to buffer as base64. Same elevated gate, for the same reason (custody holds credentials and SSH private keys) — streaming changes the transport, never the trust. `X-Agentbox-Sha256` carries the digest.",responses:{200:{description:"The stored bytes",content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}},400:t,401:t,404:t}},put:{tags:["Custody"],summary:"Stream bytes into a custody path",description:"Raw `application/octet-stream` counterpart of PUT /custody/{path}. The JSON route stays the simple, general-purpose API for small values (credentials, .env, SSH keys); this one exists for payloads where base64-in-JSON costs several times the payload in peak memory on both ends — chiefly a project's `carry:` material, which can run to `box.cpMaxBytes` (100 MiB). Capped by AGENTBOX_CUSTODY_MAX_BLOB_BYTES and enforced mid-stream, so an over-cap upload is cut off rather than landed. Returns metadata only, and is content-addressed (`changed: false` when the bytes were already stored).",requestBody:{required:!0,content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}},responses:{200:{description:"Stored (metadata only)",content:{"application/json":{schema:{$ref:"#/components/schemas/CustodyPutResult"}}}},400:t,401:t}}},"/system":{get:{tags:["System"],summary:"Get hub build + provider bake status",description:'Answers "what is running here, and do I need to re-bake?": hub version + channel + build source, the deploy record (when this machine is an exposed/deployed control box), each base provider’s baked fingerprint and freshness (`baseStatus` `stale` = re-bake), and the box-image build-context manifest. Freshness is populated only on the in-process host topology (like GET /providers?freshness=1).',responses:{200:{description:"System info",content:{"application/json":{schema:{$ref:"#/components/schemas/System"}}}},401:t}}}},components:{securitySchemes:{bearerAuth:{type:"http",scheme:"bearer",description:"The hub token (Authorization: Bearer <token>)."}},schemas:{Health:{type:"object",properties:{ok:{const:!0},apiVersion:{type:"string"},profile:{type:"string"}},required:["ok","apiVersion"]},CustodyEntry:{type:"object",description:"One stored item — metadata only; the value bytes are never returned.",properties:{path:{type:"string",description:"Custody-relative path, e.g. agents/claude/.credentials.json"},size:{type:"number"},sha256:{type:"string",description:"Hex sha256 of the stored bytes"},mode:{type:"number",description:"POSIX mode of the stored value"},updatedAt:{type:"string",description:"ISO timestamp of the last write"}},required:["path","size","sha256","mode","updatedAt"]},CustodyPutResult:{type:"object",description:"A store result — metadata only, never the stored value.",allOf:[{$ref:"#/components/schemas/CustodyEntry"},{type:"object",properties:{changed:{type:"boolean",description:"false when the identical bytes were already stored (content-addressed)"}},required:["changed"]}]},CustodyValue:{type:"object",description:"A stored entry AND its bytes — only the elevated byte-read GET returns this.",allOf:[{$ref:"#/components/schemas/CustodyEntry"},{type:"object",properties:{data:{type:"string",description:"base64-encoded stored bytes"}},required:["data"]}]},Custody:{type:"object",properties:{enabled:{type:"boolean",description:"false only when this hub has no custody store wired"},entries:{type:"array",items:{$ref:"#/components/schemas/CustodyEntry"}}},required:["enabled","entries"]},ProviderBake:{type:"object",properties:{id:{type:"string"},label:{type:"string"},baked:{type:"boolean"},fingerprint:{type:"string",description:"Short (12-char) build-context fingerprint of the baked base"},cliVersion:{type:"string"},bakedAt:{type:"string"},imageRef:{type:"string"},baseStatus:{type:"string",enum:["fresh","stale","unprepared","unknown"]},baseStaleReason:{type:"string"},bakeDiff:{type:"object",description:"Which files differ, when baseStatus is stale. hasManifest:false means the base was baked before per-file manifests were recorded, so no diff is possible without a re-bake.",properties:{hasManifest:{type:"boolean"},liveUnavailable:{type:"boolean",description:"A manifest exists but the current hashes could not be computed, so no diff is possible. Distinct from hasManifest:false, where a re-bake would help."},changed:{type:"array",items:{type:"object",properties:{rel:{type:"string"},from:{type:"string"},to:{type:"string"}}}},added:{type:"array",items:{type:"string"}},removed:{type:"array",items:{type:"string"}}},required:["hasManifest"]}},required:["id","label","baked"]},System:{type:"object",properties:{hub:{type:"object",properties:{version:{type:["string","null"]},commit:{type:["string","null"]},profile:{type:"string"},apiVersion:{type:"string"}},required:["profile","apiVersion"]},build:{type:"object",properties:{version:{type:["string","null"]},channel:{type:["string","null"],description:"stable | nightly | source (<ref>)"},build:{type:["string","null"],description:"Human build line, e.g. @madarco/agentbox@0.28.0 (npm)"}}},deploy:{type:["object","null"],description:"Present only when this machine is an exposed/deployed control box."},providers:{type:"array",items:{$ref:"#/components/schemas/ProviderBake"}},hostCarried:{type:"array",description:"Agent configs, skills and identity files THIS machine hands to a box. Present-only: a path absent here is one a box will not receive.",items:{type:"object",properties:{agent:{type:"string"},label:{type:"string"},hostPath:{type:"string"},kind:{type:"string",enum:["skills","config","identity"]},skills:{type:"array",items:{type:"string"}}},required:["agent","label","hostPath","kind"]}},boxImage:{type:["object","null"],description:"Box-image resolution: the registry, the exact fingerprint-tag this host pulls, and what it last stamped.",properties:{registry:{type:"string"},pullTag:{type:"string"},stampedFingerprint:{type:"string"},imageRef:{type:"string"},bakedAt:{type:"string"}}}},required:["hub","build","providers","hostCarried"]},Error:{type:"object",properties:{error:{type:"object",properties:{code:{type:"string"},message:{type:"string"},details:{}},required:["code","message"]}},required:["error"]},Box:{type:"object",properties:{id:{type:"string"},projectId:{type:"string"},repo:{type:"string"},branch:{type:"string"},task:{type:"string"},agent:{type:"string"},status:{type:"string",enum:["running","paused","stopped","creating","error"]},createdAt:{type:"number"},lastActivity:{type:"number"},host:{type:"string"},commits:{type:["number","null"]},filesTouched:{type:["number","null"]},error:{type:["string","null"]},displayName:{type:["string","null"],description:"Cosmetic user-set label (rename); null when unset"},webUrl:{type:["string","null"],description:"Host-openable web-service URL; null when absent/unreachable (e.g. paused)"},vncUrl:{type:["string","null"],description:"Host-openable VNC desktop URL; null when absent/unreachable"},state:{type:"string",enum:["running","paused","stopped","missing"],description:"Raw provider runtime state (host topology only). Absent on synthetic creating/error rows — presence distinguishes a real box whose agent errored from a failed create job."},name:{type:"string"},provider:{type:"string",description:"Raw provider id ('docker', 'daytona', …; plugin ids possible)"},projectRoot:{type:"string",description:"Absolute host path of the project. Host topology only — never emitted by the hosted plane"},projectIndex:{type:"number"},vncEnabled:{type:"boolean"},gitWorktrees:{type:"array",items:{type:"object",properties:{kind:{type:"string"},branch:{type:"string"}}}},hasGit:{type:"boolean",description:'Does the box workspace have a git repo at all? `false` means there is no worktree and no branch, and a client should HIDE its git UI (pull/push/checkout would all fail). Derived host-side on read from the recorded worktrees, else a `.git` probe of the project root, so cloud boxes — which record no worktrees — answer correctly. ABSENT is not `false`: the hosted plane and synthetic creating/error rows say nothing, and silence must be read as "show".'},supportsBackup:{type:"boolean",description:"The box's agent declares a state backup, so `POST /boxes/{id}/backup` captures its IDENTITY (gateway token, pairings, history) and not just a workspace. Present for a service bot (openclaw); absent for a coding-agent box."},agentStatus:{type:"object",description:"Every agent reporting in this box, keyed by agent id. The source of truth; the named fields below are its projection over the three built-ins, kept for older clients. An agent outside those three appears only here. Each value is { state, sessionTitle? }, where state is 'working | idle | waiting | end-plan | question | compacting | error | unknown'.",additionalProperties:{type:"object",properties:{state:{type:"string"},sessionTitle:{type:"string"}}}},claudeSessionTitle:{type:"string"},codexSessionTitle:{type:"string"},opencodeSessionTitle:{type:"string"},claudeActivity:{type:"string",description:"working | idle | waiting | end-plan | question | compacting | error | unknown"},codexActivity:{type:"string"},opencodeActivity:{type:"string"},shellCount:{type:"number",description:'Live shell-session count (docker only); absent → the CLI renders "-".'},sandboxId:{type:"string",description:"Provider-native sandbox id (cloud boxes). Part of the non-secret adoption block a thin client rebuilds a drivable local record from — tokens are never serialized, a fresh adoption re-mints them."},originUrl:{type:["string","null"],description:"Box repo's origin remote URL. Lets project-scoped `ls` match a box to the cwd repo by identity when its projectRoot is a remote hub's path. Populated for any registered box, docker included."},publicHost:{type:"string",description:"Public IP/host of the box VM (direct-SSH providers: hetzner/digitalocean)."},image:{type:"string",description:"Base image / snapshot ref the sandbox booted from."},webPort:{type:"number",description:"In-box WebProxy port (cloud boxes bind a non-privileged port)."},previewUrls:{type:"object",additionalProperties:{type:"string"},description:"Token-authed preview URLs keyed by in-box port."},lastAgent:{type:"string",enum:["claude","codex","opencode","pi"],description:"The agent the box was created for."},persistent:{type:"boolean",description:"Always-on box (`--persistent` / `box.persistent`, resolved at create time): never auto-paused, never idle-lapsed, skipped by prune, and started again by the relay's boot reconcile after a host reboot. `agentbox destroy -y` refuses one without `--force`; POST /boxes/{id}/destroy has no such guard, so a client that offers destroy should confirm on this field. Absent/false = an ordinary expendable box."},topology:{type:"string",description:"Sync federation shape ('cloud' | 'control-plane'); absent for docker."}},required:["id","projectId","status","agent"]},Project:{type:"object",properties:{id:{type:"string"},name:{type:"string"},repo:{type:"string"},defaultBranch:{type:"string"},currentBranch:{type:"string",nullable:!0},needsSetup:{type:"boolean",description:"No agentbox.yaml + no default snapshot — the create form offers the setup wizard"},provider:{type:"string"},createdAt:{type:"number"},originUrl:{type:"string",nullable:!0,description:"Repo origin remote URL (hosted source only)"},projectSlug:{type:"string",nullable:!0,description:"Custody projects/<slug> key (hosted source only)"},lastProvider:{type:"string",nullable:!0,description:"The provider this project's last box was created with — the pre-selection a create picker should open on. Advisory, not a contract: it may be a `docker:<alias>` remote-docker spec, and it may name a provider that is not configured (or no longer exists) on this host, so clamp it against GET /providers and fall back to docker. Absent until a create has been recorded."},lastAgent:{type:"string",nullable:!0,description:"The agent that box was created for, as a create-picker default. Same caveats as lastProvider — clamp against GET /agents. Never `none`: an agentless create records only the provider."},lastUsedAt:{type:"number",nullable:!0,description:"Epoch ms of the create those two fields describe."}},required:["id","name"]},PromptRequest:{type:"object",description:"One question to put to the user. The generic half (`kind`, `title`, `body`, `choices`) is enough to render and answer ANY prompt, including one this client has never seen. `detail` is the opt-in half: a client that recognises the variant draws it properly (a file table, a credential card) and one that does not renders its `summary`.",required:["id","topic","kind","title","fallback"],properties:{id:{type:"string",description:"Content-addressed over the question itself (`<topic>:<digest>`). Echo it back in the answer; if the question has since changed the id no longer matches and the create refuses rather than applying an answer to a different question."},topic:{type:"string",description:"Machine-stable reason this prompt exists: `carry`, `model-auth`."},kind:{type:"string",enum:["confirm","select","text"]},title:{type:"string"},body:{type:"string"},choices:{type:"array",description:"Required for `select`.",items:{type:"object",required:["value","label"],properties:{value:{type:"string"},label:{type:"string"},hint:{type:"string"},danger:{type:"boolean"},exclusive:{type:"boolean",description:'In a `multiple` select, means "none of the others". Ignored otherwise.'}}}},multiple:{type:"boolean",description:"`select` only: several choices may be picked, and the answer is their values joined by `,`. A client that does not know the flag renders a plain single select and posts ONE value, which is the n=1 encoding of the same answer."},defaultValue:{type:"string"},detail:{type:"object",description:"Typed extra content, discriminated by `type` (`file-table` | `credential` | `credential-list` | `text`). Every variant carries `summary`, so an unknown one still renders.",required:["type","summary"],properties:{type:{type:"string"},summary:{type:"string"}},additionalProperties:!0},fallback:{type:"object",description:"What happens if nobody answers.",required:["value","reason"],properties:{value:{type:"string"},reason:{type:"string"}}},required:{type:"boolean",description:"No safe fallback: a create that leaves this unanswered is refused rather than defaulted."},nonInteractiveHint:{type:"string",description:"The flags or env vars that decide this question up front."}}},CreatePreflight:{type:"object",required:["prompts","unavailable"],properties:{prompts:{type:"array",items:{$ref:"#/components/schemas/PromptRequest"}},unavailable:{type:"array",description:"Gates this hub cannot run, and why.",items:{type:"object",required:["topic","reason"],properties:{topic:{type:"string"},reason:{type:"string"}}}}}},ProjectSeed:{type:"object",properties:{custodyAvailable:{type:"boolean",description:"False when this hub is not a control box (no custody store)"},seed:{type:"object",nullable:!0,description:"Null when nothing has been pushed for this project.",properties:{slug:{type:"string"},originUrl:{type:"string"},baseBranch:{type:"string"},repoHeadSha:{type:"string",description:"Full commit the working tree sat on"},capturedAt:{type:"string",description:"ISO timestamp of the last seed push"},hasEnv:{type:"boolean",description:"env/secret tarball present"},hasUntracked:{type:"boolean",description:"untracked-files tarball present"},totalBytes:{type:"number"},entries:{type:"array",items:{type:"object",properties:{name:{type:"string"},size:{type:"number"},sha256:{type:"string"},updatedAt:{type:"string"}},required:["name","size","sha256","updatedAt"]}}},required:["slug","hasEnv","hasUntracked","totalBytes","entries"]}},required:["custodyAvailable","seed"]},BranchList:{type:"object",properties:{current:{type:"string",nullable:!0,description:"The repo's current HEAD (the default base ref)"},branches:{type:"array",items:{type:"string"},description:"Local + remote-tracking branch names"}},required:["branches"]},Approval:{type:"object",properties:{id:{type:"string"},boxId:{type:"string"},kind:{type:"string",enum:["confirm","select","text","open-link"],description:"Which widget to draw; absent means `confirm`. `open-link` is not a question: it carries a `url` the client is asked to open on ITS OWN machine, answering with `openedByClient: true` so the host does not open a second copy (on a control box that would be a tab nobody can see). A client that cannot open URLs may answer a plain `y` and let the host try."},message:{type:"string"},detail:{type:"string"},command:{type:"string"},cwd:{type:"string"},argv:{type:"array",items:{type:"string"}},defaultAnswer:{type:"string",enum:["y","n"]},createdAt:{type:"number"},url:{type:"string",description:"`open-link` only: the http(s) URL to open."},autoOpen:{type:"boolean",description:"`open-link` only: the host already approved this link (safe subset + rate budget), so a client that can open URLs should claim it and open it without asking. Absent means a human has to act."}},required:["id","boxId","message","defaultAnswer"]},Job:{type:"object",properties:{id:{type:"string"},status:{type:"string",enum:["queued","running","done","failed","cancelled"]},boxId:{type:"string"},error:{type:"string",description:"A failed job's reason — so a create reports the failure, not a silent 'done'."},provider:{type:"string"},name:{type:"string"},agent:{type:"string"},createdAt:{type:"string"},login:{type:"object",description:"Present when the create is awaiting a Claude re-login (see POST /jobs/{id}/login-code).",properties:{required:{type:"boolean"},phase:{type:"string"},url:{type:"string"},error:{type:"string"},lastError:{type:"string"}}}},required:["id","status"]},JobListItem:{type:"object",description:"One row of GET /jobs — the Job shape without the streamable log path.",properties:{id:{type:"string"},status:{type:"string",enum:["queued","running","done","failed","cancelled"]},boxId:{type:"string"},error:{type:"string"},provider:{type:"string"},name:{type:"string"},agent:{type:"string"},createdAt:{type:"string"}},required:["id","status"]},AgentState:{type:"object",description:"The box's in-box agent status snapshot. `agents` holds every reporting agent keyed by id (each the raw ctl status payload: activity, plan/question, session title) and is the source of truth. `claude` repeats that agent's body for clients older than `agents`; null when claude has no snapshot, which includes a box running a different agent.",properties:{agents:{type:"object",description:"Raw per-agent status payloads, keyed by agent id (opaque here).",additionalProperties:!0},claude:{description:"Claude's body, repeated from `agents` (opaque here)."}},required:["claude"]},CheckpointCreateResult:{type:"object",properties:{ok:{const:!0},name:{type:"string"},kind:{type:"string",description:"docker manifest type ('layered' | 'merged') or 'snapshot' for a cloud backend."},ref:{type:"string",description:"The image tag / snapshot id created."},provider:{type:"string"},dir:{type:"string",description:"Snapshot dir (cloud backends)."},setDefaultKey:{type:"string",description:"The config key written when setDefault was requested."}},required:["ok","name","kind","ref","provider"]},CheckpointItem:{type:"object",properties:{name:{type:"string"},provider:{type:"string",description:"'docker' or the cloud backend name."},kind:{type:"string"},sourceBoxName:{type:"string"},createdAt:{type:"string"},isDefault:{type:"boolean",description:"Resolved server-side against the project's effective config."}},required:["name","provider","kind","isDefault"]},CheckpointListing:{type:"object",properties:{projects:{type:"array",items:{type:"object",properties:{segment:{type:"string",description:"The path-hash store segment."},projectRoot:{type:"string",description:"Absent for an orphan segment whose project config was GC-ed."},label:{type:"string"},items:{type:"array",items:{$ref:"#/components/schemas/CheckpointItem"}}},required:["segment","label","items"]}}},required:["projects"]},CheckpointRemoveResult:{type:"object",properties:{ok:{const:!0},removed:{type:"array",items:{type:"string"},description:"Providers the checkpoint was deleted from."},clearedKeys:{type:"array",items:{type:"string"},description:"Default-checkpoint config pointers cleared in the project layer."},warnedKeys:{type:"array",items:{type:"string"},description:"Dangling pointers in a layer we can't auto-edit (warned, not cleared)."}},required:["ok","removed","clearedKeys","warnedKeys"]},PruneResult:{description:"The prune outcome — discriminated by `kind`: `general` (docker sweep), `cloud` (untracked cloud sandboxes).",oneOf:[{type:"object",properties:{kind:{const:"general"},result:{type:"object",properties:{removedRecords:{type:"array",items:{type:"string"}},removedContainers:{type:"array",items:{type:"string"}},removedVolumes:{type:"array",items:{type:"string"}},removedSnapshotDirs:{type:"array",items:{type:"string"}},removedBoxDirs:{type:"array",items:{type:"string"}},removedCheckpointImages:{type:"array",items:{type:"string"}},dryRun:{type:"boolean"}},required:["dryRun"]},projectConfigs:{type:"array",items:{type:"string"}}},required:["kind","result","projectConfigs"]},{type:"object",properties:{kind:{const:"cloud"},provider:{type:"string"},dryRun:{type:"boolean"},orphans:{type:"array",items:{type:"object",properties:{sandboxId:{type:"string"},name:{type:"string"},state:{type:"string"},createdAt:{type:"string"}},required:["sandboxId"]}},deleted:{type:"number"},failed:{type:"number"},reaped:{type:"number",description:"Control-box registrations reaped for the deleted sandboxes (0 on a dry run)."}},required:["kind","provider","dryRun","orphans","deleted","failed","reaped"]}]},CreateBox:{type:"object",properties:{projectId:{type:"string",description:"Project to build from. Exactly one of projectId / repoUrl. A projectId whose folder is absent on this machine (the normal case on a control box) routes to the control-plane clone queue."},repoUrl:{type:"string",description:"Repo origin to clone from, when the project has no folder on the hub's machine. Exactly one of projectId / repoUrl."},agent:{type:"string",description:'Canonical agent id, or "none" for a plain box with no agent. Open-ended: the built-ins are claude | codex | opencode | pi | openclaw, plus anything registered by `agentbox agent add` — GET /agents is the live list this route validates against.',example:"claude"},agentArgs:{type:"array",items:{type:"string"},description:"Extra argv passed to the agent's launcher."},startAgent:{type:"boolean",description:"Start the agent session after the box is built (default true)."},foreground:{type:"boolean",description:"An interactive create — the hub runs it in the ungated foreground lane so it doesn't queue behind background jobs."},opts:{type:"object",additionalProperties:!0,description:"Box-shaping knobs the caller already resolved (image, snapshot, limits, size/location, carry, credential-sync, ...), so a hub-routed create builds the same box an inline one would. Absent keys fall back to the hub's own config.",properties:{persistent:{type:"boolean",description:"Always-on box: never auto-paused, never idle-lapsed, skipped by prune, restarted after a host reboot. OMIT for no opinion — a service agent then defaults to `true` and everything else to the hub's `box.persistent`. `true` on e2b/vercel is refused with `conflict`."},promptAnswers:{type:"array",description:"Answers to the questions POST /projects/{id}/create-preflight returned. Each `id` is matched against the question the create actually asks, so a stale answer is ignored rather than applied. Omitting an answer to a `required` prompt fails the create.",items:{type:"object",required:["id","value"],properties:{id:{type:"string"},value:{type:"string"},cancelled:{type:"boolean"}}}},borrowCredentials:{type:"array",items:{type:"string"},description:"Other agents' host logins to seed as this box's model auth (`--model-auth`; service agents). Normally decided by the `model-auth` prompt instead."}}},provider:{type:"string",enum:["docker","daytona","hetzner","vercel","e2b","digitalocean","remote-docker"],default:"docker"},name:{type:"string"},prompt:{type:"string"},fromBranch:{type:"string",description:"Base ref the box's per-box branch forks from (branch / tag / SHA); default the project's HEAD"},setupWizard:{type:"boolean",description:'Seed the agent\'s first turn to generate agentbox.yaml (for projects with none). Inert for agent "none".'}},required:["projectId","agent"]},Agent:{type:"object",properties:{id:{type:"string",description:"Canonical agent id, as accepted by `agent` on POST /boxes. Open-ended: the built-ins are claude | codex | opencode | pi, plus whatever is registered."},label:{type:"string",description:"Display name; falls back to the id."},installed:{type:"boolean",description:"This machine holds the agent's config dir or a saved AgentBox login. Absent when the hub has no host to answer for."},surface:{type:"string",enum:["tui","service"],description:"What the agent IS: `tui` is a session you attach to, `service` is a daemon the box hosts (published on the box web URL, nothing to attach to). Read it to show the defaults this API applies — a `service` agent creates an always-on box unless `opts.persistent` says otherwise, so a create form that renders that toggle off would contradict what POST /boxes does. Absent when the hub has no host to answer for; treat that as unknown, not as `tui`."}},required:["id","label"]},Provider:{type:"object",description:"A provider plus its declarative descriptor. The descriptor half comes from a sync snapshot (the built-in table, or ~/.agentbox/plugins.json for a community provider), so it is always present and costs nothing to serve. Clients should render from it rather than hardcoding provider names.",properties:{id:{type:"string",description:"Built-ins are docker, daytona, hetzner, vercel, e2b, digitalocean, remote-docker; a registered plugin uses its own name."},label:{type:"string"},configured:{type:"boolean",description:"Base image baked (usable for create) on this host."},kind:{type:"string",enum:["local","cloud"]},credentials:{type:"object",description:'What "configured credentials" means, and the form to prompt with.',properties:{envKeys:{type:"array",items:{type:"string"},description:"secrets.env key NAMES whose presence means configured. Values are never read."},fields:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"},optional:{type:"boolean"},secret:{type:"boolean",description:"Absent means secret — mask it."},hint:{type:"string"}},required:["key","label"]}}}},bake:{type:"object",properties:{required:{type:"boolean",description:"false = the base self-heals on create (docker), so a missing base is a slow first create, not a blocked one."},approxMinutes:{type:"string"},createProgressSteps:{type:"integer",description:"Typical streamed create-log line count, for client progress pacing."},bakeProgressSteps:{type:"integer"}}},capabilities:{type:"object",description:'All DECLARED, not inferred from method presence. pauseSemantics "stop" means pause powers the box off — relabel the control, do not hide it.',additionalProperties:!0},sizes:{type:"array",description:"Sizes to offer in a create picker, most-modest first. Each key is a literal --size value for THIS backend; there is no cross-provider grammar. Absent = the provider has no size knob (docker).",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}},required:["key","label"]}},sizeHint:{type:"string",description:"Placeholder for a free-text size. Its PRESENCE is what says `sizes` is an open list — offer a custom-value field only when there is a hint for it."},sizeAppliesAt:{type:"string",enum:["create","bake"],description:"bake = the size is fixed when the base is baked and rejected per-create (daytona, e2b), so a change must go through POST /providers/{id}/prepare with { size, force: true } first. Absent = create. POST /providers/{id}/size-check says whether a SPECIFIC size needs that."},regions:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}},required:["key","label"]}},hasCredentials:{type:"boolean",description:"Credentials present (docker: always true). Can be true while not yet configured (baked)."},jobId:{type:"string",description:"Id of an in-flight bake (prepare) job for this provider, if any."},reason:{type:"string"},baseStatus:{type:"string",enum:["fresh","stale","unprepared","unknown"],description:"Only when ?freshness=1. stale = re-bake wanted; unknown = could not verify."},baseStaleReason:{type:"string"},origin:{type:"string",enum:["local","hub"],description:"hub = this row came from a remote control box, which is where its boxes are created."},hubUrl:{type:"string"}},required:["id","label","configured"]},GitOpBody:{type:"object",description:"Union of git-op fields; only those for the chosen {op} are read (extras are ignored).",properties:{branch:{type:"string",description:"checkout: branch to switch to"},name:{type:"string",description:"branch: new branch name (agentbox/ prefix added when missing)"},from:{type:"string",description:"branch: base ref to fork from (default: box's HEAD)"},remote:{type:"string",description:"push/pull: remote name (default: origin)"},force:{type:"boolean",description:"push: force the remote push; push-host: overwrite the destination branch"},ffOnly:{type:"boolean",description:"pull: pass --ff-only to the merge"},as:{type:"string",description:"push-host: destination branch name in the host repo (default: the box's branch)"}}},GitOpResult:{type:"object",properties:{ok:{const:!0},stdout:{type:"string"},stderr:{type:"string"}},required:["ok"]},GitInfo:{type:"object",properties:{ok:{type:"boolean"},branch:{type:"string"},dirty:{type:"boolean"},ahead:{type:"number"},behind:{type:"number"},error:{type:"string"}},required:["ok"]},Services:{type:"object",properties:{source:{type:"string",enum:["live","persisted","unavailable"]},services:{type:"array",items:{type:"object",properties:{name:{type:"string"},state:{type:"string"},pid:{type:["number","null"]},restarts:{type:"number"},lastExitCode:{type:["number","null"]},blockedOn:{type:"array",items:{type:"string"}},command:{type:"string"}},required:["name","state"]}},tasks:{type:"array",items:{type:"object",properties:{name:{type:"string"},state:{type:"string"}},required:["name","state"]}},ports:{type:"array",items:{type:"object",properties:{port:{type:"number"},service:{type:["string","null"]}},required:["port"]}},error:{type:"string"}},required:["source","services","tasks","ports"]}}}}},"docsHtml",0,function(){return`<!doctype html>
1
+ module.exports=[48806,e=>{"use strict";let t={description:"Error",content:{"application/json":{schema:{$ref:"#/components/schemas/Error"}}}},s={name:"id",in:"path",required:!0,schema:{type:"string",pattern:"^[0-9a-f]{16}$"},description:"Manager id."},r={name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},n={type:"object",properties:{manager:{$ref:"#/components/schemas/Manager"},workspace:{$ref:"#/components/schemas/Workspace"}},required:["manager","workspace"]},o="Why: recorded on the workspace timeline as a `manager.note` next to this change (stamped with the caller's manager and turn when the CLI sends `X-AgentBox-Session`).",a=["task.created","task.status","task.assigned","task.unassigned","task.removed","manager.joined","manager.started","manager.resumed","manager.stopped","manager.note","manager.message","box.created","box.ready","box.failed","box.started","box.stopped","box.destroyed","box.branch","git.push","pr.opened","pr.ready","pr.merged","pr.closed"],i={type:"string",enum:["todo","in_progress","blocked","done"]},p={id:{type:"string",description:"Time-sortable: zero-padded base-36 ms, then a random suffix."},at:{type:"string",description:"ISO time."},type:{type:"string",enum:a},actor:{type:"string",enum:["human","manager","box","hub","github"]},managerId:{type:"string"},turn:{type:"number",description:"The manager session's turn when this happened; only when its transcript is on the hub's disk."},prompt:{type:"string",description:"That turn's prompt, as a one-line title."},boxId:{type:"string"},boxName:{type:"string"},agent:{type:"string"},branch:{type:"string",description:"`box.branch`: the branch the box is on after the switch, as the hub sanctioned it."},base:{type:"string",description:"`box.created`: the branch the box forked from (the create's `fromBranch`, else the branch the project's host checkout was on; absent when unknown). `box.ready`: the create's `fromBranch`, only when it had one. `box.branch`: the branch it switched away from."},projectId:{type:"string"},taskIds:{type:"array",items:{type:"string"},description:"Captured when the event was written (a task later leaves its box)."},task:{type:"object",properties:{id:{type:"string"},title:{type:"string"},from:i,to:i},required:["id","title"]},pr:{$ref:"#/components/schemas/TimelinePr"},text:{type:"string",description:"A note, or the message sent to a manager."},noteKind:{type:"string",enum:["note","replan","plan"]},boxRunning:{type:"boolean",description:"`task.assigned`: the box was already running (it was given more work)."},additions:{type:"number",description:"`git.push`: lines the push added, read from the host repo when it was recorded (the old tip to the new, or the merge base with the default branch for a first push or a force-push that rewrote the old tip). Absent when it could not be read."},deletions:{type:"number",description:"`git.push`: lines the push removed (see `additions`)."},key:{type:"string",description:"Dedupe key (`pr:<repo>#<n>:merged`, `job:<jobId>:ready`); an event whose key is already logged is not appended again."}};e.s(["buildOpenApi",0,function(){return{openapi:"3.1.0",info:{title:"AgentBox Hub API",version:"1.0.0",description:'Launch and manage AgentBox sandboxes ("boxes") programmatically. Every endpoint except /health, /openapi.json and /docs requires an Authorization: Bearer <hub token> header (the token the hub prints on boot, also at ~/.agentbox/hub/token). Errors always return { error: { code, message, details? } }.'},servers:[{url:"/api/v1"}],security:[{bearerAuth:[]}],tags:[{name:"System",description:"Liveness and API version."},{name:"Boxes",description:"Create, inspect, and run lifecycle actions on boxes."},{name:"Box git",description:"Git state and operations on a box's branch."},{name:"Box services",description:"A box's agentbox.yaml service/task/port status."},{name:"Projects",description:"Register folders as projects and list their branches."},{name:"Providers",description:"Sandbox providers: status, credentials, base-image bake."},{name:"Agents",description:"Coding agents this hub can start, and host setup for each."},{name:"Hosts",description:"Remote-docker host aliases (name -> SSH connection)."},{name:"Approvals",description:"Pending host-action approvals."},{name:"Jobs",description:"Async create/bake job status and log streams."},{name:"Checkpoints",description:"Durable per-project checkpoints (docker image / cloud snapshot)."},{name:"Fleet",description:"Fleet-wide maintenance (prune orphan boxes and resources)."},{name:"Custody",description:"What the control box holds in custody (metadata only — never values)."},{name:"Workspaces",description:"Folders grouping one or more projects, each owning a task list and its manager sessions."},{name:"Tasks",description:"Units of work, prioritized by list order and assigned to boxes."},{name:"Managers",description:"Host agent sessions that create and watch boxes: detected from your terminal, or run by the hub in tmux."}],paths:{"/health":{get:{tags:["System"],summary:"Get liveness + API version",security:[],responses:{200:{description:"OK",content:{"application/json":{schema:{$ref:"#/components/schemas/Health"}}}}}}},"/boxes":{get:{tags:["Boxes"],summary:"List or resolve boxes",description:"Lists every box (normalized view). ?live=1 refreshes each cloud box state with an SDK probe (opt-in, slower; host topology only). ?ref=<id|name|index> instead resolves a single box server-side (findBox semantics: exact id, unique id prefix, name, displayName, sandbox id); pass ?project=<host-path> for numeric project-index refs. The ref response is the match set in { boxes }: 0 (none), 1 (unique), or >1 (ambiguous prefix).",parameters:[{name:"live",in:"query",required:!1,schema:{type:"string",enum:["1"]}},{name:"ref",in:"query",required:!1,schema:{type:"string"}},{name:"project",in:"query",required:!1,schema:{type:"string"}}],responses:{200:{description:"Boxes",content:{"application/json":{schema:{type:"object",properties:{boxes:{type:"array",items:{$ref:"#/components/schemas/Box"}}},required:["boxes"]}}}},401:t}},post:{tags:["Boxes"],summary:"Create a box",description:'Async — returns a job id. agent "none" just creates the box without starting an agent (prompt ignored). provider defaults to docker; a cloud provider must be configured on the host (see GET /providers). A SERVICE agent (one whose GET /agents row reports `surface: "service"`, e.g. openclaw) creates a PERSISTENT box by default — it hosts a daemon, so an autopause would be an outage; pass `opts.persistent: false` for an expendable one. A persistent create on e2b/vercel is refused with `conflict` rather than silently downgraded. A service-agent box has no session to attach to: the build ends at a running daemon.',requestBody:{required:!0,content:{"application/json":{schema:{$ref:"#/components/schemas/CreateBox"}}}},responses:{202:{description:"Accepted — build job enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"}},required:["jobId"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}":{get:{tags:["Boxes"],summary:"Get one box",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Box",content:{"application/json":{schema:{$ref:"#/components/schemas/Box"}}}},401:t,404:t}}},"/boxes/{id}/{action}":{post:{tags:["Boxes"],summary:"Run a lifecycle action",description:"One of start | pause | resume | stop | destroy | screen. start brings a stopped box back up (resumes if paused, no-op if already running); it does not restart the agent session — that happens on the next attach. screen is the open-VNC prep step: it points the in-box browser at the box’s web app so the VNC desktop shows the app instead of a blank X screen — call it right before opening the viewer. It does not return a URL; get that from GET /boxes/{id}/vnc.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}},{name:"action",in:"path",required:!0,schema:{type:"string",enum:["start","pause","resume","stop","destroy","screen"]}}],responses:{200:{description:"Done",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/git":{get:{tags:["Box git"],summary:"Get the box's live git summary",description:"The worktree's current branch, dirty, ahead/behind.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Git info",content:{"application/json":{schema:{$ref:"#/components/schemas/GitInfo"}}}},401:t,404:t,503:t}}},"/boxes/{id}/git/{op}":{post:{tags:["Box git"],summary:"Run a git op on the box branch",description:"checkout {branch}; branch {name, from?} (create+switch a new agentbox/* branch); pull {remote?, ffOnly?}; push {remote?, force?}; push-host {as?, force?} (land in the host repo only, publishes nothing).",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}},{name:"op",in:"path",required:!0,schema:{type:"string",enum:["checkout","branch","pull","push","push-host"]}}],requestBody:{required:!1,content:{"application/json":{schema:{$ref:"#/components/schemas/GitOpBody"}}}},responses:{200:{description:"Done (git stdout/stderr)",content:{"application/json":{schema:{$ref:"#/components/schemas/GitOpResult"}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/branches":{get:{tags:["Box git"],summary:"List the box project's branches",description:"Local + remote branches and the current HEAD, for the box git-panel branch picker.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Branches",content:{"application/json":{schema:{$ref:"#/components/schemas/BranchList"}}}},400:t,401:t,404:t,503:t}}},"/boxes/{id}/services":{get:{tags:["Box services"],summary:"Get the box's service/task/port status",description:"From the box's agentbox.yaml — live, or the persisted snapshot when the box isn't running.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Services",content:{"application/json":{schema:{$ref:"#/components/schemas/Services"}}}},401:t,503:t}}},"/boxes/{id}/services/restart":{post:{tags:["Box services"],summary:"Restart services",description:"Restart one service (body {name}) or every service (empty body).",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string"}}}}}},responses:{200:{description:"Restarted",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/vnc":{get:{tags:["Boxes"],summary:"Mint the box's noVNC viewer URL",description:"A ready-to-open noVNC URL (autoconnect, password in the query). Cloud boxes get a freshly SIGNED preview URL on port 6080 that expires — which is why the Box payload's `vncUrl` is null for daytona/vercel/e2b and this must be called at click time. Docker/hetzner boxes return their stable Portless/OrbStack/loopback URL. Read-only: refused with 409 when the box is not running, has VNC disabled, or has no recorded password. Pair with POST /boxes/{id}/screen to point the in-box browser at the web app first.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}},{name:"ttl",in:"query",required:!1,description:"Cloud only: signed-URL lifetime in seconds (provider default 3600).",schema:{type:"integer",minimum:1,maximum:86400}},{name:"loopback",in:"query",required:!1,description:"Docker only: prefer the 127.0.0.1 host-port URL over OrbStack/Portless.",schema:{type:"string",enum:["1"]}}],responses:{200:{description:"Viewer URL",content:{"application/json":{schema:{type:"object",properties:{url:{type:"string"},ttl:{type:"integer"}},required:["url"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/web":{get:{tags:["Boxes"],summary:"Resolve a box's web URL at click time, with a sign-in link when one applies",description:"The live web URL for the box, plus — for a SERVICE agent (openclaw) — a link that opens the agent's own UI already signed in. Call this before opening a box's web UI instead of using the Box payload's `webUrl`: that field is a recorded value, and where the URL is an SSH forward (hetzner/DO) the live port differs once the session has been re-established — the same class of reason `vncUrl` is null for signed-URL clouds. `signInUrl` is `<url>/#token=…` (the daemon generates its token inside the box and its UI reads it from the URL FRAGMENT), and null when the agent declares no such field or has not written one yet. `signInPending` tells those two apart: true means this box's daemon HAS a token and could not give one (still starting, or still onboarding), so `url` opens its sign-in prompt at best and a dead port at worst — say \"not ready yet\" and offer to wait rather than opening it. False means `url` is the complete answer. Read-only: refused with 409 when the box is not running.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Web URL, and the sign-in link when there is one",content:{"application/json":{schema:{type:"object",properties:{url:{type:"string"},signInUrl:{type:"string",nullable:!0},signInPending:{type:"boolean"}},required:["url","signInUrl","signInPending"]}}}},401:t,404:t,409:t,503:t}}},"/boxes/{id}/rename":{post:{tags:["Boxes"],summary:"Set or clear a box's display label",description:"Cosmetic only — the container, branch and URLs are untouched. Pass an empty string to clear the label. Backs `agentbox status <box> --set-name/--clear-name`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{displayName:{type:"string",description:"New label (max 60 chars); empty string clears it."}},required:["displayName"]}}}},responses:{200:{description:"Renamed",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/agent":{get:{tags:["Boxes"],summary:"Get the box's in-box coding-agent status snapshot",description:"Every reporting agent's live activity (working / idle / waiting / question / end-plan / …), plan/question payload and session title, from the persisted status store. Backs `agentbox agent state/wait-for/get-plan-question`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Agent state",content:{"application/json":{schema:{$ref:"#/components/schemas/AgentState"}}}},401:t,404:t,503:t}}},"/boxes/{id}/logs":{get:{tags:["Boxes"],summary:"Read (or follow) a box's service log",description:"One of two shapes on one route. `follow=0` (default) returns a JSON `{ output }` snapshot — a bounded `--tail` dump. `follow=1` returns an SSE stream (`open` / `log`* / `end`) the hub pipes live from the in-box `agentbox-ctl logs --follow`. Pass `service=<name>` for a declared service, or `daemon=1` for the ctl-daemon log.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}},{name:"service",in:"query",required:!1,schema:{type:"string"},description:"A declared service name (required unless daemon=1)."},{name:"daemon",in:"query",required:!1,schema:{type:"string",enum:["1"]},description:"Tail the ctl-daemon log instead of a service."},{name:"follow",in:"query",required:!1,schema:{type:"string",enum:["1"]},description:"Stream the log as SSE instead of returning a snapshot."},{name:"tail",in:"query",required:!1,schema:{type:"integer"},description:"Lines of history (default 200)."}],responses:{200:{description:"Log snapshot (JSON) or SSE stream (text/event-stream when follow=1)",content:{"application/json":{schema:{type:"object",properties:{output:{type:"string"}},required:["output"]}},"text/event-stream":{schema:{type:"string"}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/checkpoint":{post:{tags:["Checkpoints"],summary:"Capture the box state as a project checkpoint",description:"Commits the box (docker commit / cloud snapshot) into the project checkpoint store on the hub machine, via provider.checkpoint.*. A durable project asset — it survives the box. Backs `agentbox checkpoint create`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string",description:"Checkpoint name (auto-generated if omitted)."},merged:{type:"boolean",description:"docker: flatten to a single squashed layer (FROM scratch)."},setDefault:{type:"boolean",description:"Also pin this as the project's default checkpoint."},replace:{type:"boolean",description:"Overwrite an existing checkpoint of the same name."}}}}}},responses:{200:{description:"Checkpoint captured",content:{"application/json":{schema:{$ref:"#/components/schemas/CheckpointCreateResult"}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/backup":{post:{tags:["Checkpoints"],summary:"Capture a bot: workspace + the agent's state dir, identity included",description:"Writes `<project>/.agentbox/bots/<bot>/<stamp>/` on the HUB's machine — a `workspace/` half, and (when the box's agent declares a state backup, i.e. `supportsBackup` on the box payload) a `state/` half holding the bot's IDENTITY: gateway token, channel pairings, history. Live databases go through SQLite's online-backup API, not a byte copy. Unlike a checkpoint, this is provider-neutral files, so a bot captured on e2b restores onto hetzner. The state half is BEST-EFFORT — a box whose agent cannot be reached still yields a usable workspace bundle, and the manifest's `state: false` says so. Mirrors `agentbox download --backup`; read back by `POST /projects/{id}/restore`. `state/` holds a live credential: it is written 0700 and `.agentbox/` is added to the project's .gitignore.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string",description:"Bot name the bundle is filed under (default: the box name). A single path segment."},keep:{type:"integer",minimum:1,description:"Backups to keep for this bot; older ones are pruned. Default 3."},agent:{type:"string",description:"Whose state to capture (default: the box's own recorded agent)."},includeNodeModules:{type:"boolean",description:"Carry node_modules into the workspace half as well."}}}}}},responses:{200:{description:"Backup written",content:{"application/json":{schema:{type:"object",properties:{ok:{type:"boolean"},bot:{type:"string"},stamp:{type:"string"},dir:{type:"string",description:"Absolute bundle dir on the HUB's machine."},agent:{type:"string"},state:{type:"boolean",description:"False when only the workspace was captured — no identity in this bundle."},databases:{type:"array",items:{type:"string"}},files:{type:"number"},pruned:{type:"array",items:{type:"string"}},wroteGitignore:{type:"boolean"}}}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/upload":{post:{tags:["Box services"],summary:"Push the host workspace into the box (`agentbox upload`)",description:"The host->box direction, the mirror of `agentbox download`. A git workspace merges the host branch into the box branch and overlays the host's uncommitted/untracked changes; a non-git workspace gets a plain file overlay. THE BOX WINS every conflict — nothing in the box is overwritten or reset, and the skipped host paths come back in `conflicts`. Needs the in-process host backend, and reads the workspace off the HUB'S OWN disk — a client on another machine cannot push its files this way, so `agentbox upload` refuses rather than uploading the hub's copy of the project.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{includeNodeModules:{type:"boolean",description:"Push node_modules too (non-git workspaces only)."}}}}}},responses:{200:{description:"Workspace synced",content:{"application/json":{schema:{type:"object",properties:{mode:{type:"string",enum:["git","files"]},copied:{type:"integer"},conflicts:{type:"array",items:{type:"string"}}},required:["mode","copied","conflicts"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/clone":{post:{tags:["Boxes"],summary:"New box from this box's workspace, with a fresh agent identity",description:"Exports the box's workspace files (gitignore/exclude aware, agent state dropped) into a new host project dir, then enqueues a normal create seeded from it. The agent's config volume and credential are deliberately NOT copied, so the clone onboards from scratch and gets its own identity — there is no `--with-state`. `.git` is not exported: the clone is a template, and a git-backed second box is what a plain create already gives you. Returns the create job; stream it via GET /jobs/{jobId}/logs — the create is enqueued in the ungated FOREGROUND lane, because the caller is blocked on that stream and must not queue behind background jobs. Backs `agentbox clone`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string",description:"Name for the new box (default `<source>-clone`)."},provider:{type:"string",description:"Provider for the new box (default: the source box's)."},into:{type:"string",description:"Dir for the clone's workspace ON THE HUB'S MACHINE (default `~/.agentbox/clones/<name>`, in the hub user's home); must be absent or empty. MUST BE ABSOLUTE — a working directory is client state that does not travel over an API, so a relative path is rejected with `invalid_request` rather than resolved against whatever directory the hub daemon was started in. `agentbox clone --into` resolves it against your cwd before sending."},includeNodeModules:{type:"boolean"},persistent:{type:"boolean",description:"Always-on clone. OMIT to inherit the source box's persistence (a clone of a service box is always-on too); `false` is an explicit opt-out. `true` against e2b/vercel is refused with `conflict` — their platform session cap makes an always-on box impossible."}}}}}},responses:{200:{description:"Clone staged; create job enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"},name:{type:"string"},workspace:{type:"string",description:"Host dir the clone's workspace was exported to."},provider:{type:"string"},carryAsk:{type:"boolean",description:"Show the `carry:` question again for a list this project has already approved. A standing approval otherwise removes the prompt entirely, so this is how a client offers a review — and, by answering Skip/Cancel on the create, a way to withdraw it."},files:{type:"integer"},persistent:{type:"boolean",description:"The always-on flag resolved for the clone. Absent when neither the request nor the source box had an opinion, leaving it to the hub's `box.persistent`."}},required:["jobId","name","workspace","provider","files"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/boxes/{id}/open":{post:{tags:["Box services"],summary:"Open the box in a host app",description:"Launch the box in a host GUI app (Codex, VS Code/Cursor, cmux, Herdr, iTerm2) by re-shelling `agentbox open --in <app>`. Only works on a localhost hub running on macOS; a remote hub / non-macOS host refuses. An app must be installed and provider-eligible (e.g. Codex is Hetzner-only) — see GET /open-targets.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{app:{type:"string",enum:["codex","herdr","cmux","vscode","iterm2"]}},required:["app"]}}}},responses:{200:{description:"Launched",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/open-targets":{get:{tags:["Box services"],summary:"Which host apps this hub can open a box in",description:'Reports whether the hub can launch host GUI apps (`supported` — true only on a localhost hub on macOS) and, if so, which of Codex/Herdr/cmux/VS Code/iTerm2 are installed plus their provider eligibility. Backs the box detail page "Apps" launchers.',responses:{200:{description:"Open targets",content:{"application/json":{schema:{type:"object",properties:{supported:{type:"boolean"},targets:{type:["object","null"],additionalProperties:{type:"object",properties:{available:{type:"boolean"},providers:{type:"array",items:{type:"string"}}},required:["available"]}}},required:["supported","targets"]}}}},401:t}}},"/workspaces":{get:{tags:["Workspaces"],summary:"List registered workspaces",description:"A workspace is a folder on the hub host grouping one or more projects; it owns a task list and its manager sessions. One is created automatically when a manager session is detected in a folder no workspace contains. Empty on a hosted hub, which holds no host folders.",responses:{200:{description:"Workspaces",content:{"application/json":{schema:{type:"object",properties:{workspaces:{type:"array",items:{$ref:"#/components/schemas/Workspace"}}},required:["workspaces"]}}}},401:t}},post:{tags:["Workspaces"],summary:"Register a folder as a workspace",description:"Scans the folder and its immediate subfolders for projects (a `.git` or an `agentbox.yaml`) and registers each one, so they appear in `GET /projects` too. Idempotent: re-posting a registered root rescans it.",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{path:{type:"string",description:"Absolute path on the hub host."},name:{type:"string",description:"Display name (default: folder basename)."}},required:["path"]}}}},responses:{200:{description:"The workspace",content:{"application/json":{schema:{$ref:"#/components/schemas/Workspace"}}}},400:t,401:t,503:t}}},"/workspaces/{id}":{get:{tags:["Workspaces"],summary:"Get one workspace",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."}],responses:{200:{description:"The workspace",content:{"application/json":{schema:{$ref:"#/components/schemas/Workspace"}}}},401:t,404:t}},delete:{tags:["Workspaces"],summary:"Unregister a workspace",description:"Drops the workspace record, its tasks and its managers. The folder, its projects and their boxes are untouched. Refused (409) while any of its managers is running, unless `force=1`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},{name:"force",in:"query",schema:{type:"string",enum:["1","true"]},description:"Remove it even while one of its managers reads as running."}],responses:{200:{description:"Done",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},401:t,404:t,409:t,503:t}}},"/workspaces/{id}/rename":{post:{tags:["Workspaces"],summary:"Rename a workspace",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{name:{type:"string",maxLength:60}},required:["name"]}}}},responses:{200:{description:"The workspace",content:{"application/json":{schema:{$ref:"#/components/schemas/Workspace"}}}},400:t,401:t,404:t,503:t}}},"/workspaces/{id}/rescan":{post:{tags:["Workspaces"],summary:"Re-discover the projects under a workspace",description:"A repo cloned into the folder after registration is invisible until this runs.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."}],responses:{200:{description:"The workspace",content:{"application/json":{schema:{$ref:"#/components/schemas/Workspace"}}}},401:t,404:t,503:t}}},"/workspaces/{id}/tasks":{get:{tags:["Tasks"],summary:"List a workspace's tasks",description:"In priority order (the list order IS the priority). Assignments are healed on read: a task pointed at a create job moves to the box id once the worker records it, and a task whose box is gone returns to the backlog.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},{name:"status",in:"query",schema:{type:"string",enum:["todo","in_progress","blocked","done"]}},{name:"projectId",in:"query",schema:{type:"string"}},{name:"boxId",in:"query",schema:{type:"string"}},{name:"managerId",in:"query",schema:{type:"string"}}],responses:{200:{description:"Tasks",content:{"application/json":{schema:{type:"object",properties:{tasks:{type:"array",items:{$ref:"#/components/schemas/WorkTask"}}},required:["tasks"]}}}},400:t,401:t,404:t}},post:{tags:["Tasks"],summary:"Add a task",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{title:{type:"string",maxLength:300},description:{type:"string"},projectId:{type:"string",description:"Scope the task to one project."},dependsOn:{type:"array",items:{type:"string",pattern:"^T-\\d+$"}},createdBy:{type:"string",enum:["human","manager","api"]},externalRef:{$ref:"#/components/schemas/WorkTaskExternalRef"},boxId:{type:"string",description:"Assign to this box immediately."},boxJobId:{type:"string",description:"Assign to the box this create job will produce."},managerId:{type:"string",pattern:"^[0-9a-f]{16}$",description:"The manager session this task belongs to; 400 when it belongs to another workspace (or is unknown). Omitted with a box: the box's manager, when it is this workspace's."},note:{type:"string",maxLength:2e3,description:o}},required:["title"]}}}},responses:{201:{description:"The task",content:{"application/json":{schema:{$ref:"#/components/schemas/WorkTask"}}}},400:t,401:t,404:t,409:t,503:t}}},"/workspaces/{id}/tasks/reorder":{post:{tags:["Tasks"],summary:"Set the whole task order",description:"`ids` must be an exact permutation of the workspace's tasks — a partial list would silently renumber the rest, and this order is the priority the manager reads.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string",pattern:"^T-\\d+$"}},note:{type:"string",maxLength:2e3,description:o}},required:["ids"]}}}},responses:{200:{description:"Tasks",content:{"application/json":{schema:{type:"object",properties:{tasks:{type:"array",items:{$ref:"#/components/schemas/WorkTask"}}},required:["tasks"]}}}},400:t,401:t,404:t,503:t}}},"/workspaces/{id}/tasks/assign":{post:{tags:["Tasks"],summary:"Assign several tasks to one box",description:"The bulk form the manager uses when it groups tasks that touch the same files into one box. Exactly one of `boxId` / `boxJobId`; a `todo` task becomes `in_progress`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string",pattern:"^T-\\d+$"}},boxId:{type:"string"},boxJobId:{type:"string"},note:{type:"string",maxLength:2e3,description:o}},required:["ids"]}}}},responses:{200:{description:"Tasks",content:{"application/json":{schema:{type:"object",properties:{tasks:{type:"array",items:{$ref:"#/components/schemas/WorkTask"}}},required:["tasks"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/workspaces/{id}/tasks/{taskId}":{get:{tags:["Tasks"],summary:"Get one task",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},{name:"taskId",in:"path",required:!0,schema:{type:"string",pattern:"^T-\\d+$"}}],responses:{200:{description:"The task",content:{"application/json":{schema:{$ref:"#/components/schemas/WorkTask"}}}},401:t,404:t}},post:{tags:["Tasks"],summary:"Update a task",description:"Partial update (this API has no PATCH). `projectId: null` clears the project scope and `managerId: null` the manager; an omitted field is left alone.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},{name:"taskId",in:"path",required:!0,schema:{type:"string",pattern:"^T-\\d+$"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{title:{type:"string",maxLength:300},description:{type:"string"},status:{type:"string",enum:["todo","in_progress","blocked","done"]},projectId:{type:"string",nullable:!0},dependsOn:{type:"array",items:{type:"string",pattern:"^T-\\d+$"}},externalRef:{$ref:"#/components/schemas/WorkTaskExternalRef"},managerId:{type:"string",nullable:!0,description:"`null` clears the manager; 400 for a manager of another workspace (or an unknown one)."},note:{type:"string",maxLength:2e3,description:o}}}}}},responses:{200:{description:"The task",content:{"application/json":{schema:{$ref:"#/components/schemas/WorkTask"}}}},400:t,401:t,404:t,409:t,503:t}},delete:{tags:["Tasks"],summary:"Remove a task",description:"Also drops the id from every other task's dependsOn.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},{name:"taskId",in:"path",required:!0,schema:{type:"string",pattern:"^T-\\d+$"}}],responses:{200:{description:"Done",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},401:t,404:t,503:t}}},"/workspaces/{id}/tasks/{taskId}/done":{post:{tags:["Tasks"],summary:"Mark a task done",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},{name:"taskId",in:"path",required:!0,schema:{type:"string",pattern:"^T-\\d+$"}}],responses:{200:{description:"The task",content:{"application/json":{schema:{$ref:"#/components/schemas/WorkTask"}}}},401:t,404:t,503:t}}},"/workspaces/{id}/tasks/{taskId}/assign":{post:{tags:["Tasks"],summary:"Assign one task to a box",description:"Exactly one of `boxId` / `boxJobId`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},{name:"taskId",in:"path",required:!0,schema:{type:"string",pattern:"^T-\\d+$"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{boxId:{type:"string"},boxJobId:{type:"string"},note:{type:"string",maxLength:2e3,description:o}}}}}},responses:{200:{description:"The task",content:{"application/json":{schema:{$ref:"#/components/schemas/WorkTask"}}}},400:t,401:t,404:t,409:t,503:t}}},"/workspaces/{id}/tasks/{taskId}/unassign":{post:{tags:["Tasks"],summary:"Return a task to the backlog",description:"Finished work stays finished; only an in-progress task reverts to todo.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"},description:"Workspace id."},{name:"taskId",in:"path",required:!0,schema:{type:"string",pattern:"^T-\\d+$"}}],responses:{200:{description:"The task",content:{"application/json":{schema:{$ref:"#/components/schemas/WorkTask"}}}},401:t,404:t,503:t}}},"/managers":{get:{tags:["Managers"],summary:"List manager sessions across every workspace",description:"A manager is a host agent session that creates and watches boxes: `external` (a claude/codex session in your own terminal, registered when the `agentbox` CLI runs inside it) or `hub` (one this hub started in tmux). Running first, then the most recently seen. `status` is derived from the process — the tmux session for a hub manager, the pid for an external one reported from this host, else a 30-minute last-seen window. Empty on a hosted hub.",parameters:[{name:"workspaceId",in:"query",schema:{type:"string"}},{name:"status",in:"query",schema:{type:"string",enum:["running","stopped"]}}],responses:{200:{description:"Managers",content:{"application/json":{schema:{type:"object",properties:{managers:{type:"array",items:{$ref:"#/components/schemas/Manager"}}},required:["managers"]}}}},400:t,401:t}}},"/managers/detect":{post:{tags:["Managers"],summary:"Register the host session a CLI call came from",description:"Matched by `(agent, sessionId)`, so repeating it refreshes one record (`lastSeenAt`, `pid`). A `managerId` (the caller's `$AGENTBOX_MANAGER`) joins the session to the hub-run manager it runs in. When no workspace contains `cwd`, one is created there, named after the folder — except at `/`, the hub user's home folder or a folder above it, or a `cwd` that is not a folder on this hub, which answer 400. A session already registered stays in its workspace. `boxId` / `boxJobId` attaches a box this session just made in the same call. 201 when a manager or workspace was created, 200 when an existing one was refreshed.",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{agent:{type:"string",description:"An agent this hub knows with a session surface (not a service agent)."},sessionId:{type:"string",description:"Claude session uuid / codex thread uuid."},cwd:{type:"string",description:"Absolute folder the session runs in."},pid:{type:"integer",description:"The agent process, probed for liveness when `host` is this hub's; its start time is recorded then too, so a reused pid does not read as running."},host:{type:"string",description:"Hostname of the machine the session runs on."},managerId:{type:"string",pattern:"^[0-9a-f]{16}$"},tmuxPane:{type:"string",pattern:"^%\\d+$",description:"`$TMUX_PANE` of the session's terminal, so POST /managers/{id}/message can type into it."},tmuxSession:{type:"string",pattern:"^agentbox-manager-[0-9a-f]{16}$",description:"The AgentBox manager tmux session that pane belongs to. When it exists on the hub's machine and started in `cwd`, the manager is recorded as `hub`-run from it (a session from before managers were detected is adopted). A session hosted by Claude's background daemon never sends it: the daemon drops TMUX."},boxId:{type:"string"},boxJobId:{type:"string"}},required:["agent","sessionId","cwd"]}}}},responses:{200:{description:"Refreshed",content:{"application/json":{schema:n}}},201:{description:"Created",content:{"application/json":{schema:n}}},400:t,401:t,503:t}}},"/managers/{id}":{get:{tags:["Managers"],summary:"Get one manager",parameters:[s],responses:{200:{description:"Manager",content:{"application/json":{schema:{$ref:"#/components/schemas/Manager"}}}},401:t,404:t}},delete:{tags:["Managers"],summary:"Forget a manager",description:"Drops the record. Its boxes and tasks are untouched (tasks keep a `managerId` nothing resolves). Refused (409) while it runs, unless `force=1` — which forgets it regardless of status and leaves its process (a tmux session, a terminal) alone.",parameters:[s,{name:"force",in:"query",schema:{type:"string",enum:["1","true"]},description:"Forget it regardless of status."}],responses:{200:{description:"Forgotten",content:{"application/json":{schema:{type:"object",properties:{ok:{type:"boolean"}},required:["ok"]}}}},401:t,404:t,409:t,503:t}}},"/managers/{id}/stop":{post:{tags:["Managers"],summary:"Stop a hub-run manager",description:"Kills its tmux session. Idempotent; the record is kept so it can be resumed. An external manager is your own terminal process, which the hub never signals: 409 while it runs, a no-op once it has exited. A claude manager whose session runs in Claude's background daemon is never ended by this: only the hub's attach session (POST /managers/{id}/attach) is closed, and the answer carries `notice` saying the session keeps running (end it with `claude stop <id>`).",parameters:[s],responses:{200:{description:"Manager, plus `notice` (string) when the agent session was left running in Claude's background daemon.",content:{"application/json":{schema:{$ref:"#/components/schemas/Manager"}}}},401:t,404:t,409:t,503:t}}},"/managers/{id}/resume":{post:{tags:["Managers"],summary:"Resume a manager's session in the hub",description:"Reopens the session in a tmux session the hub owns (`claude --resume <id>` / `codex resume <id>`, run in the manager's `cwd`), and the manager becomes `hub`-run. 409 while the session still runs anywhere (two processes writing one transcript corrupt it), for a manager with no session id, for an agent whose sessions cannot be resumed, and for an external session reported from another host (its transcript is not on this machine); 503 when the hub host has no tmux.",parameters:[s],responses:{200:{description:"Manager",content:{"application/json":{schema:{$ref:"#/components/schemas/Manager"}}}},401:t,404:t,409:t,503:t}}},"/managers/{id}/attach":{post:{tags:["Managers"],summary:"Open a manager's Claude background session in the hub",description:"For a claude manager whose session is a detached Claude Code background session (`background` on the manager): starts, or reuses, the tmux session `agentbox-manager-<managerId>` on the hub user's default tmux server running `claude attach <background.id>` in the manager's `cwd`, and answers the manager with `attachCommand` for it. The record keeps its kind, session id and pid. The session keeps running in Claude's daemon when that tmux session ends, and the manager stays `running`. 409 when the manager has no running background session, or when something the hub can see may already show it (an AgentBox tmux session starting in its folder, or a `claude attach` client); 503 when the hub host has no tmux.",parameters:[s],responses:{200:{description:"Manager",content:{"application/json":{schema:{$ref:"#/components/schemas/Manager"}}}},401:t,404:t,409:t,503:t}}},"/managers/{id}/notes":{post:{tags:["Managers","Timeline"],summary:"Record a manager note on the timeline",description:"A note explaining what the manager decided (`kind`: `note`, `replan` when it re-planned, `plan` when it made one). Stamped with the manager's current turn and that turn's prompt when its transcript is on this hub's disk.",parameters:[s],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{text:{type:"string",maxLength:2e3},kind:{type:"string",enum:["note","replan","plan"]}},required:["text"]}}}},responses:{201:{description:"The recorded event",content:{"application/json":{schema:{$ref:"#/components/schemas/TimelineEvent"}}}},400:t,401:t,404:t,409:t,503:t}}},"/managers/{id}/message":{post:{tags:["Managers","Timeline"],summary:"Type a message into a manager's session",description:"Types `text` into the session and submits it (newlines are flattened to spaces). A running hub-run manager gets it in its tmux session (`delivered: session`); a running external manager in the tmux pane it reported at detect (`pane`, only when it runs on this hub's machine); a stopped manager with a session is resumed in the hub's tmux with the text as its prompt (`resumed`). A running external manager outside tmux answers 409 with code `manager_unreachable` — a client offers the text to paste instead. `prNumber` (with `repo`, `owner/name`, when the workspace spans several repos) ties the message to a PR, which is how a later merge shows `approvedByYou`; without `repo` the PR is matched only when one repo in the log has that number. Records `manager.message` on success.",parameters:[s],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{text:{type:"string",maxLength:2e3},prNumber:{type:"integer",minimum:1},repo:{type:"string",pattern:"^[A-Za-z0-9_.-]{1,100}/[A-Za-z0-9_.-]{1,100}$",description:"`owner/name` of the PR; requires `prNumber`."}},required:["text"]}}}},responses:{200:{description:"Delivered",content:{"application/json":{schema:{type:"object",properties:{delivered:{type:"string",enum:["session","pane","resumed"]},manager:{$ref:"#/components/schemas/Manager"},event:{oneOf:[{$ref:"#/components/schemas/TimelineEvent"},{type:"null"}]}},required:["delivered","manager","event"]}}}},400:t,401:t,404:t,409:t,503:t}}},"/workspaces/{id}/timeline":{get:{tags:["Timeline"],summary:"A workspace's timeline",description:"What happened in the workspace, newest first: task, manager, box, push and PR events from its append-only log, with 3+ task creates from one manager turn (within 10 minutes) collapsed into one `plan` item. `live` holds the rows true right now, never stored: a box working an in-progress task (with its uncommitted diff when running) and a ready PR nobody merged yet (`awaiting`, `approved` once a message about it was sent). `?since=` adds a `summary` of what changed since then. A GitHub sync (`gh pr list` on the repos behind the workspace's projects) starts in the background when the last one is over a minute old; `github` reports it, and rows it adds fire the usual change event.",parameters:[r,{name:"before",in:"query",schema:{type:"string"},description:"Only items strictly older than this ISO time (paging)."},{name:"limit",in:"query",schema:{type:"integer",minimum:1,maximum:500,default:100}},{name:"since",in:"query",schema:{type:"string"},description:"ISO time the summary counts from; items are not filtered by it."},{name:"sync",in:"query",schema:{type:"string",enum:["0"]},description:"`0`: do not start a GitHub sync; `github` reports the last one (`syncing` before any). For a small read on every refresh. Any other value, or none, keeps the default."}],responses:{200:{description:"Timeline",content:{"application/json":{schema:{$ref:"#/components/schemas/Timeline"}}}},400:t,401:t,404:t}}},"/workspaces/{id}/managers":{get:{tags:["Managers"],summary:"List a workspace's managers",parameters:[r],responses:{200:{description:"Managers",content:{"application/json":{schema:{type:"object",properties:{managers:{type:"array",items:{$ref:"#/components/schemas/Manager"}}},required:["managers"]}}}},401:t,404:t}}},"/workspaces/{id}/managers/start":{post:{tags:["Managers"],summary:"Start a manager agent in the workspace folder",description:"Runs a coding agent LOCALLY in the workspace folder, in a detached tmux session the hub owns, with AGENTBOX_WORKSPACE and AGENTBOX_MANAGER set. Clients attach to that session rather than the hub proxying a terminal. Send `agent` — one this hub knows, has installed, and can attach to (a `service` agent is a daemon and is refused) — optionally with a `sessionId` to resume (claude and codex only). A `sessionId` some manager already holds resumes that manager rather than creating a second one (409 while it runs, unless `restart` and it is hub-run). There is deliberately no free-form command, and `sessionId` must look like an id: this runs on the hub host, not in a box. 503 when the hub host has no tmux.",parameters:[r],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{agent:{type:"string",description:"An agent this hub knows (GET /agents); the built-ins are claude, codex, opencode and pi."},sessionId:{type:"string",description:"Resume this session (claude and codex only; refused for any other agent)."},restart:{type:"boolean",description:"With a `sessionId` whose hub-run manager is running: restart it instead of refusing."}},required:["agent"]}}}},responses:{200:{description:"Manager",content:{"application/json":{schema:{$ref:"#/components/schemas/Manager"}}}},400:t,401:t,404:t,409:t,503:t}}},"/workspaces/{id}/managers/sessions":{get:{tags:["Managers"],summary:"Resumable agent sessions for the workspace folder",description:"Read from the agent's own on-disk store, for the \"resume a session\" picker, newest first. Only claude and codex are readable today; for anything else `supported: false` means that agent's session format is not one we can resume — not an error.",parameters:[r,{name:"agent",in:"query",schema:{type:"string",default:"claude"}}],responses:{200:{description:"Sessions",content:{"application/json":{schema:{type:"object",properties:{agent:{type:"string"},supported:{type:"boolean"},sessions:{type:"array",items:{$ref:"#/components/schemas/HostSession"}}},required:["agent","supported","sessions"]}}}},401:t,404:t}}},"/tasks":{get:{tags:["Tasks"],summary:"List tasks across every workspace",description:'The cross-workspace read a fleet view needs: answers "what is assigned to this box" without knowing which workspace owns it.',parameters:[{name:"workspaceId",in:"query",schema:{type:"string"}},{name:"projectId",in:"query",schema:{type:"string"}},{name:"boxId",in:"query",schema:{type:"string"}},{name:"managerId",in:"query",schema:{type:"string"}},{name:"status",in:"query",schema:{type:"string",enum:["todo","in_progress","blocked","done"]}}],responses:{200:{description:"Tasks",content:{"application/json":{schema:{type:"object",properties:{tasks:{type:"array",items:{$ref:"#/components/schemas/WorkTask"}}},required:["tasks"]}}}},400:t,401:t}}},"/projects":{get:{tags:["Projects"],summary:"List registered projects",responses:{200:{description:"Projects",content:{"application/json":{schema:{type:"object",properties:{projects:{type:"array",items:{$ref:"#/components/schemas/Project"}}},required:["projects"]}}}},401:t}},post:{tags:["Projects"],summary:"Register a folder as a project, or create a new one",description:"Exactly one body shape. `{ path }` registers a folder that already exists. `{ parent, name, git? }` creates `<parent>/<name>` (empty, or with `git: true` a repo on `main` with a `.gitignore` and an initial commit) and registers it; refused when the target exists or the parent sits inside another project.",requestBody:{required:!0,content:{"application/json":{schema:{oneOf:[{type:"object",title:"RegisterProject",properties:{path:{type:"string",description:"Absolute path to the folder."}},required:["path"]},{type:"object",title:"CreateProject",properties:{parent:{type:"string",description:"Absolute path of the existing folder to create into."},name:{type:"string",pattern:"^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$",description:"New folder name (one path segment, no leading dot)."},git:{type:"boolean",default:!1,description:"Initialize a git repository with an initial commit."}},required:["parent","name"]}]}}}},responses:{200:{description:"Registered (or created and registered)",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0},id:{type:"string",description:"Project id (hash of the canonical root)."},path:{type:"string",description:"Canonical project root."}},required:["ok","id","path"]}}}},400:t,401:t,503:t}}},"/projects/{id}":{delete:{tags:["Projects"],summary:"Unregister an empty project",description:"Folder/files on disk are untouched.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Removed",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},401:t,404:t,409:t,503:t}}},"/projects/{id}/bots":{get:{tags:["Projects"],summary:"Bots this project holds a backup of",description:"Every bot under `<project>/.agentbox/bots/`, alphabetically, each with its backups newest first and its manifest folded in. The source for a restore picker. `latest` is the stamp the bot's `latest` link resolves to, omitted when the link is missing or dangling. `state: false` on a backup means it captured only a workspace — restoring one gives a working box with a FRESH identity, which is not what \"restore this bot\" promises, so a picker must surface it. Read-only, but host-backed: the bundles are on the hub's own disk.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Bots and their backups",content:{"application/json":{schema:{type:"object",properties:{bots:{type:"array",items:{type:"object",properties:{bot:{type:"string"},latest:{type:"string"},backups:{type:"array",items:{type:"object",properties:{stamp:{type:"string"},agent:{type:"string"},state:{type:"boolean"},boxName:{type:"string"},provider:{type:"string"}}}}}}}}}}}},401:t,404:t,503:t}}},"/projects/{id}/restore":{post:{tags:["Projects"],summary:"Bring a backed-up bot back as a new box, identity included",description:"The inverse of `POST /boxes/{id}/backup`, and the opposite of `clone`: a clone deliberately starts a SECOND bot with a fresh identity, a restore puts the ORIGINAL one back — same gateway token, same channel pairings, same history, on whichever provider you point it at. Project-scoped because a bundle outlives the box it came from, which is what a backup is for; the project is what still exists. Two steps behind one call, exactly like `clone`: the bundle's workspace half is staged into `<project>/.agentbox/bots/{bot}/workspace` (or `into`) and registered as a project, then a normal create is enqueued in the ungated foreground lane; the STATE half is applied by the queue worker once the box's service has come up on its own. REFUSALS, both before anything is written: the source box still running (two live gateways cannot share one identity — the failure a per-box state dir exists to prevent), and a destination another box already runs on. `force` overrides both. A bundle with `state: false` is refused by name rather than half-delivered. Returns the create job — stream it through `GET /jobs/{jobId}/logs`. Backs `agentbox <service-agent> --restore <bot>`.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["bot"],properties:{bot:{type:"string",description:"Which bot to bring back."},stamp:{type:"string",description:"Which backup. Default: whatever the bot's `latest` points at."},name:{type:"string",description:"Name for the new box (default: the bot name)."},provider:{type:"string",description:"Provider for the new box (default: the one the bundle was captured on). A bundle is provider-neutral files, so this may differ."},into:{type:"string",description:"Where the restored workspace lives, on the HUB's machine. MUST be absolute — a working directory is client state that does not travel over an API."},force:{type:"boolean",description:"Proceed even when the source box is still running, or the destination is not empty."},persistent:{type:"boolean",description:"Always-on flag for the restored box. Defaults to true — a bot is an always-on box, and a restored one is the same bot."}}}}}},responses:{200:{description:"Workspace staged; create job enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"},name:{type:"string"},workspace:{type:"string"},provider:{type:"string"},bot:{type:"string"},stamp:{type:"string"},agent:{type:"string"},files:{type:"number"},persistent:{type:"boolean"}}}}}},400:t,401:t,404:t,409:t,503:t}}},"/projects/{id}/branches":{get:{tags:["Projects"],summary:"List a project's branches",description:"Local + remote branches and the current HEAD, for the create-box base-branch picker.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Branches",content:{"application/json":{schema:{$ref:"#/components/schemas/BranchList"}}}},400:t,401:t,404:t,503:t}}},"/projects/{id}/create-preflight":{post:{tags:["Projects"],summary:"What would creating a box here ask the user?",description:'The host-boundary questions a create for this project would ask — a project\'s `carry:` block, the host login a service agent would borrow — as `PromptRequest` objects a client renders and answers. Answers ride back on `POST /api/v1/boxes` as `opts.promptAnswers`.\n\nThe list comes from running the real gates with a collecting asker, so it can never differ from what the create asks. `unavailable` names each gate this hub cannot run and why: a control box has no local checkout of the project, so it can read neither the files a `carry:` block names nor the host logins a box would borrow, and says so rather than returning an empty list that looks like "nothing to ask".\n\nA client that skips this endpoint still creates boxes: every prompt carries a `fallback`. But a prompt marked `required` — `carry:`, whose silent answer would move host secrets — has no safe fallback, and a create that leaves it unanswered is refused.',parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["agent"],properties:{agent:{type:"string",description:"Agent the box would run; decides which agent-specific gates apply. `none` for an agentless box."},provider:{type:"string"}}}}}},responses:{200:{description:"The questions this create would ask",content:{"application/json":{schema:{$ref:"#/components/schemas/CreatePreflight"}}}},400:t,401:t,503:t}}},"/projects/{id}/seed":{get:{tags:["Projects"],summary:"Get a project's seed / custody status",description:"What `agentbox hub project push` stored on the control box (untracked + env/secret tarballs + manifest), as paths, hashes and timestamps only — never seed contents. `custodyAvailable` is false on a hub that is not a control box.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Seed status",content:{"application/json":{schema:{$ref:"#/components/schemas/ProjectSeed"}}}},401:t,404:t}}},"/agents":{get:{tags:["Agents"],summary:"List coding agents",description:"The agents a picker should offer, from the agent registry (so an agent registered with `agentbox agent add` is included). `installed` reports whether THIS machine holds the agent's config directory or an AgentBox-saved login for it; it is a hint for what to offer first, not a gate — an agent installs on demand inside a box. Omitted when the hub cannot answer for a host (the hosted plane), which clients read as unknown rather than as false.",responses:{200:{description:"Agents",content:{"application/json":{schema:{type:"object",properties:{agents:{type:"array",items:{$ref:"#/components/schemas/Agent"}}},required:["agents"]}}}},401:t}}},"/providers":{get:{tags:["Providers"],summary:"List sandbox providers",description:"With credential + baked status on this host.",responses:{200:{description:"Providers",content:{"application/json":{schema:{type:"object",properties:{providers:{type:"array",items:{$ref:"#/components/schemas/Provider"}}},required:["providers"]}}}},401:t}}},"/providers/{id}/credentials":{post:{tags:["Providers"],summary:"Set a provider's credentials",description:"API keys/tokens, validated then saved to secrets.env. Never echoes secret values.",parameters:[{name:"id",in:"path",required:!0,description:"Provider name. Built-ins are docker, daytona, hetzner, vercel, e2b, digitalocean, remote-docker; a provider registered with `agentbox plugin add` uses its own name.",schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",additionalProperties:{type:"string"},description:"Provider-specific fields, e.g. { apiKey } (e2b), { token } (hetzner), { apiKey } or { jwtToken, organizationId } (daytona), { token, teamId?, projectId? } (vercel)."}}}},responses:{200:{description:"Saved",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,503:t}}},"/providers/{id}/size-check":{post:{tags:["Providers"],summary:"Would a box created at this size actually get it?",description:"Most backends apply a size per create and answer false. Daytona and e2b fix CPU/memory when the base is baked and discard anything else, so they answer true with the reason to show. Lets a create form re-bake only when the size really differs from the baked one. Advisory: an unresolvable provider or a backend with no opinion answers false.",parameters:[{name:"id",in:"path",required:!0,description:"Provider name. Built-ins are docker, daytona, hetzner, vercel, e2b, digitalocean, remote-docker; a provider registered with `agentbox plugin add` uses its own name.",schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{size:{type:"string",description:"A literal --size value for this provider (e.g. cx43, 4, 4-8-10). Opaque here — the provider parses it."}},required:["size"]}}}},responses:{200:{description:"Verdict",content:{"application/json":{schema:{type:"object",properties:{rebakeRequired:{type:"boolean",description:"true = a plain create would discard this size; bake first with POST /providers/{id}/prepare { size, force: true }. `force` matters: a size change does not move the build-context fingerprint, so without it the bake is a no-op."},reason:{type:"string",description:"Why, in the provider's own words. Only when rebakeRequired."}},required:["rebakeRequired"]}}}},400:t,401:t,503:t}}},"/providers/{id}/prepare":{post:{tags:["Providers"],summary:"Bake a provider's base image",description:"Async — returns a job id. Progress streams over GET /jobs/{id}/logs.",parameters:[{name:"id",in:"path",required:!0,description:"Provider name. Built-ins are docker, daytona, hetzner, vercel, e2b, digitalocean, remote-docker; a provider registered with `agentbox plugin add` uses its own name.",schema:{type:"string"}}],requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{force:{type:"boolean"},agentSettings:{type:"object",additionalProperties:{type:"object",additionalProperties:{type:["string","boolean"]}},description:'Per-agent settings for the bake, keyed by agent id (e.g. {"claude":{"install":"npm"}}). Which keys an agent declares is runtime data - see `agentbox config list`.'},agents:{type:"array",items:{type:"string",enum:["claude","codex","opencode","pi"]},description:"Agents to bake into the base. Omitted/empty bakes an agentless base."},build:{type:"boolean"},size:{type:"string"},location:{type:"string"},name:{type:"string"}}}}}},responses:{202:{description:"Bake enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"}},required:["jobId"]}}}},400:t,401:t,409:t,503:t}}},"/hosts":{get:{tags:["Hosts"],summary:"List remote-docker host aliases",description:"Each with its SSH connection and baked/default state.",responses:{200:{description:"Hosts",content:{"application/json":{schema:{type:"object",properties:{hosts:{type:"array",items:{type:"object",properties:{alias:{type:"string"},ssh:{type:"string"},baked:{type:"boolean"},bakedImageRef:{type:"string"},default:{type:"boolean"}},required:["alias","ssh","baked","default"]}}},required:["hosts"]}}}},401:t,503:t}},post:{tags:["Hosts"],summary:"Register a remote-docker host alias",description:"Probes the host (ssh + docker) before saving. Does not bake the image (builds on first create). `default` also pins box.remoteDockerHost.",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{alias:{type:"string"},ssh:{type:"string",description:"an ~/.ssh/config alias or [user@]host[:port]"},default:{type:"boolean"}},required:["alias","ssh"]}}}},responses:{201:{description:"Registered",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,409:t,503:t}}},"/hosts/{alias}":{delete:{tags:["Hosts"],summary:"Forget a remote-docker host alias",description:"Drops the alias + baked-image record + default. Local record only. Returns boxes created against it (now unreachable).",parameters:[{name:"alias",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Removed",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0},boxesAffected:{type:"array",items:{type:"string"}}},required:["ok","boxesAffected"]}}}},401:t,404:t,503:t}}},"/hosts/{alias}/bake":{post:{tags:["Hosts"],summary:"Bake the box image on a host",description:"Async — returns a job id. Progress streams over GET /jobs/{id}/logs (pull from GHCR is fast; a registry-miss build is slow).",parameters:[{name:"alias",in:"path",required:!0,schema:{type:"string"}}],responses:{202:{description:"Bake enqueued",content:{"application/json":{schema:{type:"object",properties:{jobId:{type:"string"}},required:["jobId"]}}}},401:t,404:t,503:t}}},"/checkpoints":{get:{tags:["Checkpoints"],summary:"List a project's (or every project's) checkpoints",description:"The project checkpoint store lives on the hub machine, keyed by the absolute project root. Pass `?project=<abs root>` for one project, or `?global=1` for every project. Backs `agentbox checkpoint ls` / `ls -g`.",parameters:[{name:"project",in:"query",required:!1,schema:{type:"string"},description:"Absolute project root (required unless global=1)."},{name:"global",in:"query",required:!1,schema:{type:"string",enum:["1"]},description:"List checkpoints for every project."}],responses:{200:{description:"Checkpoints",content:{"application/json":{schema:{$ref:"#/components/schemas/CheckpointListing"}}}},400:t,401:t,503:t}},delete:{tags:["Checkpoints"],summary:"Delete a checkpoint",description:"Removes one checkpoint from every store that had it and sweeps any dangling default-checkpoint config pointer. Backs `agentbox checkpoint rm`.",parameters:[{name:"project",in:"query",required:!0,schema:{type:"string"},description:"Absolute project root."},{name:"ref",in:"query",required:!0,schema:{type:"string"},description:"The checkpoint name."},{name:"provider",in:"query",required:!1,schema:{type:"string"},description:"Scope the delete to one provider store."}],responses:{200:{description:"Deleted",content:{"application/json":{schema:{$ref:"#/components/schemas/CheckpointRemoveResult"}}}},400:t,401:t,404:t,503:t}}},"/prune":{post:{tags:["Fleet"],summary:"Prune orphan boxes and resources",description:"Without a provider (or provider `docker`) it reaps orphan docker records, containers, volumes, snapshot/box dirs — and, with `all`, orphan project configs. With a cloud provider it enumerates untracked sandboxes and (when not a `dryRun`) deletes them AND reaps their control-box registrations. Durable project checkpoints are always left intact. Backs `agentbox prune`.",requestBody:{required:!1,content:{"application/json":{schema:{type:"object",properties:{provider:{type:"string",description:"Cloud provider to prune; omit (or `docker`) for the local docker sweep."},all:{type:"boolean",description:"docker: also remove orphan per-project config dirs."},dryRun:{type:"boolean",description:"Report what would be removed without removing anything."}}}}}},responses:{200:{description:"Prune result",content:{"application/json":{schema:{$ref:"#/components/schemas/PruneResult"}}}},400:t,401:t,409:t,503:t}}},"/approvals":{get:{tags:["Approvals"],summary:"List pending host-action approvals",responses:{200:{description:"Approvals",content:{"application/json":{schema:{type:"object",properties:{approvals:{type:"array",items:{$ref:"#/components/schemas/Approval"}}},required:["approvals"]}}}},401:t}}},"/approvals/{id}/answer":{post:{tags:["Approvals"],summary:"Answer a pending approval",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{answer:{type:"string",enum:["y","n"]},cancelled:{type:"boolean",description:"Mark a dismissal distinctly from a plain deny in the audit trail (the `agent approve --cancel` capability). Still leaves the action unapproved."},openedByClient:{type:"boolean",description:"`open-link` only: this client already opened the URL on its own machine, so the host must not open it again. Answering is also the CLAIM — several surfaces see the same link and only the first gets 200; a 404 means someone else opened it, so open nothing."}},required:["answer"]}}}},responses:{200:{description:"Resolved",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,503:t}}},"/boxes/{id}/stream":{get:{tags:["Approvals"],summary:"Subscribe to a box's live event stream (SSE)",description:"Payload-carrying Server-Sent Events for one box — the attach footer's channel. Emits `open` (first frame of every connect, followed by a backlog flush of everything still live), `prompt-ask` (the full pending-approval payload), `prompt-resolved` (`{ id }`), `notice-set`/`notice-clear`, `box-status` (the in-box daemon's latest snapshot: agent activity, session titles, service/task states), and a `ping` heartbeat. `box-status` is the only status source for a box this hub owns but the client does not — the durable status file is written by whichever relay the box reports to. Distinct from GET /api/events, which carries refetch signals only (`data: {}`). Degrades to open + heartbeat on a hub topology with no in-process relay.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"SSE stream (text/event-stream)",content:{"text/event-stream":{schema:{type:"string"}}}},401:t}}},"/jobs":{get:{tags:["Jobs"],summary:"List background jobs",description:"The unified job listing — the local file queue's create jobs merged with, on a control box, the control-plane create queue. Backs `agentbox queue list` and `agentbox hub jobs`.",responses:{200:{description:"Jobs",content:{"application/json":{schema:{type:"object",properties:{jobs:{type:"array",items:{$ref:"#/components/schemas/JobListItem"}}},required:["jobs"]}}}},401:t,503:t}}},"/jobs/{id}":{get:{tags:["Jobs"],summary:"Get a create job status",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"Job",content:{"application/json":{schema:{$ref:"#/components/schemas/Job"}}}},401:t,404:t}}},"/jobs/{id}/logs":{get:{tags:["Jobs"],summary:"Stream a create job log (SSE)",description:"text/event-stream. Emits `open`, then `log` events per line, then a terminal `end` event with the final status.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],responses:{200:{description:"SSE stream",content:{"text/event-stream":{}}},401:t,404:t,503:t}}},"/jobs/{id}/login-code":{post:{tags:["Jobs"],summary:"Deliver an OAuth login code to a create job",description:"Feeds a pasted Claude OAuth approval code to a create job that is awaiting a re-login. The create worker consumes it and completes the in-box login. The one interactive create affordance that survives.",parameters:[{name:"id",in:"path",required:!0,schema:{type:"string"}}],requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{code:{type:"string",description:"The OAuth approval code."}},required:["code"]}}}},responses:{200:{description:"Accepted",content:{"application/json":{schema:{type:"object",properties:{ok:{const:!0}},required:["ok"]}}}},400:t,401:t,404:t,503:t}}},"/custody":{get:{tags:["Custody"],summary:"List the custody manifest (metadata only)",description:"What the hub holds so a box created from either side is usable from both: agent credentials, project seeds, provider bake records, and per-box SSH keys. Returns paths, hashes, sizes and mtimes ONLY — value bytes never leave the box (same contract as `agentbox hub custody list`). Optional `?prefix=` scopes the listing to a custody scope (`agents` | `projects` | `prepared` | `boxes`) or a `scope/subject`.",parameters:[{name:"prefix",in:"query",required:!1,schema:{type:"string"},description:"A custody scope or scope/subject, e.g. `agents` or `boxes/box-abc`."}],responses:{200:{description:"Custody manifest",content:{"application/json":{schema:{$ref:"#/components/schemas/Custody"}}}},400:t,401:t}}},"/custody/{path}":{parameters:[{name:"path",in:"path",required:!0,schema:{type:"string"},description:"Custody path, e.g. `agents/claude/.credentials.json` or `boxes/box-abc/ssh/id_ed25519`."}],get:{tags:["Custody"],summary:"Read a stored blob (ELEVATED — admin token required on a control box)",description:"Returns the entry metadata AND its bytes (`data`, base64). This is the ONE byte-returning custody route, so it is gated beyond the hub API key: on a control box (password profile) it additionally requires the admin token in `X-Agentbox-Admin-Token` — a byte-read with only the API key is `401`, so a value never leaves the box to a thin client. A localhost hub (token profile) needs no admin token: its hub token is a machine-local secret that already gates the whole surface. Backs `agentbox hub credentials pull` / `custody pull` and per-box SSH-key adoption.",responses:{200:{description:"The stored entry + its base64 bytes",content:{"application/json":{schema:{$ref:"#/components/schemas/CustodyValue"}}}},400:t,401:t,404:t}},put:{tags:["Custody"],summary:"Store bytes at a custody path (metadata-only response)",description:"Stores `data` (base64) at the path. Content-addressed: `changed` is false when the identical bytes were already there. The response is METADATA ONLY — it never echoes the stored value. Backs `agentbox hub credentials/secrets/project push`.",requestBody:{required:!0,content:{"application/json":{schema:{type:"object",required:["data"],properties:{data:{type:"string",description:"base64-encoded bytes"}}}}}},responses:{200:{description:"Stored (metadata only)",content:{"application/json":{schema:{$ref:"#/components/schemas/CustodyPutResult"}}}},400:t,401:t}},delete:{tags:["Custody"],summary:"Delete a custody entry",description:"Removes one entry. Backs `agentbox hub custody rm`.",responses:{204:{description:"Deleted"},400:t,401:t,404:t}}},"/custody/blob/{path}":{parameters:[{name:"path",in:"path",required:!0,schema:{type:"string"},description:"Custody path, e.g. `projects/acme__web/seed/carry.tar.gz`."}],get:{tags:["Custody"],summary:"Stream a stored blob (ELEVATED — admin token required on a control box)",description:"Raw `application/octet-stream` counterpart of GET /custody/{path}, for values too large to buffer as base64. Same elevated gate, for the same reason (custody holds credentials and SSH private keys) — streaming changes the transport, never the trust. `X-Agentbox-Sha256` carries the digest.",responses:{200:{description:"The stored bytes",content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}},400:t,401:t,404:t}},put:{tags:["Custody"],summary:"Stream bytes into a custody path",description:"Raw `application/octet-stream` counterpart of PUT /custody/{path}. The JSON route stays the simple, general-purpose API for small values (credentials, .env, SSH keys); this one exists for payloads where base64-in-JSON costs several times the payload in peak memory on both ends — chiefly a project's `carry:` material, which can run to `box.cpMaxBytes` (100 MiB). Capped by AGENTBOX_CUSTODY_MAX_BLOB_BYTES and enforced mid-stream, so an over-cap upload is cut off rather than landed. Returns metadata only, and is content-addressed (`changed: false` when the bytes were already stored).",requestBody:{required:!0,content:{"application/octet-stream":{schema:{type:"string",format:"binary"}}}},responses:{200:{description:"Stored (metadata only)",content:{"application/json":{schema:{$ref:"#/components/schemas/CustodyPutResult"}}}},400:t,401:t}}},"/system":{get:{tags:["System"],summary:"Get hub build + provider bake status",description:'Answers "what is running here, and do I need to re-bake?": hub version + channel + build source, the deploy record (when this machine is an exposed/deployed control box), each base provider’s baked fingerprint and freshness (`baseStatus` `stale` = re-bake), and the box-image build-context manifest. Freshness is populated only on the in-process host topology (like GET /providers?freshness=1).',responses:{200:{description:"System info",content:{"application/json":{schema:{$ref:"#/components/schemas/System"}}}},401:t}}}},components:{securitySchemes:{bearerAuth:{type:"http",scheme:"bearer",description:"The hub token (Authorization: Bearer <token>)."}},schemas:{Health:{type:"object",properties:{ok:{const:!0},apiVersion:{type:"string"},profile:{type:"string"}},required:["ok","apiVersion"]},CustodyEntry:{type:"object",description:"One stored item — metadata only; the value bytes are never returned.",properties:{path:{type:"string",description:"Custody-relative path, e.g. agents/claude/.credentials.json"},size:{type:"number"},sha256:{type:"string",description:"Hex sha256 of the stored bytes"},mode:{type:"number",description:"POSIX mode of the stored value"},updatedAt:{type:"string",description:"ISO timestamp of the last write"}},required:["path","size","sha256","mode","updatedAt"]},CustodyPutResult:{type:"object",description:"A store result — metadata only, never the stored value.",allOf:[{$ref:"#/components/schemas/CustodyEntry"},{type:"object",properties:{changed:{type:"boolean",description:"false when the identical bytes were already stored (content-addressed)"}},required:["changed"]}]},CustodyValue:{type:"object",description:"A stored entry AND its bytes — only the elevated byte-read GET returns this.",allOf:[{$ref:"#/components/schemas/CustodyEntry"},{type:"object",properties:{data:{type:"string",description:"base64-encoded stored bytes"}},required:["data"]}]},Custody:{type:"object",properties:{enabled:{type:"boolean",description:"false only when this hub has no custody store wired"},entries:{type:"array",items:{$ref:"#/components/schemas/CustodyEntry"}}},required:["enabled","entries"]},ProviderBake:{type:"object",properties:{id:{type:"string"},label:{type:"string"},baked:{type:"boolean"},fingerprint:{type:"string",description:"Short (12-char) build-context fingerprint of the baked base"},cliVersion:{type:"string"},bakedAt:{type:"string"},imageRef:{type:"string"},baseStatus:{type:"string",enum:["fresh","stale","unprepared","unknown"]},baseStaleReason:{type:"string"},bakeDiff:{type:"object",description:"Which files differ, when baseStatus is stale. hasManifest:false means the base was baked before per-file manifests were recorded, so no diff is possible without a re-bake.",properties:{hasManifest:{type:"boolean"},liveUnavailable:{type:"boolean",description:"A manifest exists but the current hashes could not be computed, so no diff is possible. Distinct from hasManifest:false, where a re-bake would help."},changed:{type:"array",items:{type:"object",properties:{rel:{type:"string"},from:{type:"string"},to:{type:"string"}}}},added:{type:"array",items:{type:"string"}},removed:{type:"array",items:{type:"string"}}},required:["hasManifest"]}},required:["id","label","baked"]},System:{type:"object",properties:{hub:{type:"object",properties:{version:{type:["string","null"]},commit:{type:["string","null"]},profile:{type:"string"},apiVersion:{type:"string"}},required:["profile","apiVersion"]},build:{type:"object",properties:{version:{type:["string","null"]},channel:{type:["string","null"],description:"stable | nightly | source (<ref>)"},build:{type:["string","null"],description:"Human build line, e.g. @madarco/agentbox@0.28.0 (npm)"}}},deploy:{type:["object","null"],description:"Present only when this machine is an exposed/deployed control box."},providers:{type:"array",items:{$ref:"#/components/schemas/ProviderBake"}},hostCarried:{type:"array",description:"Agent configs, skills and identity files THIS machine hands to a box. Present-only: a path absent here is one a box will not receive.",items:{type:"object",properties:{agent:{type:"string"},label:{type:"string"},hostPath:{type:"string"},kind:{type:"string",enum:["skills","config","identity"]},skills:{type:"array",items:{type:"string"}}},required:["agent","label","hostPath","kind"]}},boxImage:{type:["object","null"],description:"Box-image resolution: the registry, the exact fingerprint-tag this host pulls, and what it last stamped.",properties:{registry:{type:"string"},pullTag:{type:"string"},stampedFingerprint:{type:"string"},imageRef:{type:"string"},bakedAt:{type:"string"}}}},required:["hub","build","providers","hostCarried"]},Error:{type:"object",properties:{error:{type:"object",properties:{code:{type:"string"},message:{type:"string"},details:{}},required:["code","message"]}},required:["error"]},Box:{type:"object",properties:{id:{type:"string"},managerId:{type:"string",description:"The manager session that created this box. Absent for a box made from the web UI or the tray, and on a hosted hub."},projectId:{type:"string"},repo:{type:"string"},branch:{type:"string"},task:{type:"string"},agent:{type:"string"},status:{type:"string",enum:["running","paused","stopped","creating","error"]},createdAt:{type:"number"},lastActivity:{type:"number"},host:{type:"string"},commits:{type:["number","null"]},filesTouched:{type:["number","null"]},error:{type:["string","null"]},displayName:{type:["string","null"],description:"Cosmetic user-set label (rename); null when unset"},webUrl:{type:["string","null"],description:"Host-openable web-service URL; null when absent/unreachable (e.g. paused)"},vncUrl:{type:["string","null"],description:"Host-openable VNC desktop URL; null when absent/unreachable"},state:{type:"string",enum:["running","paused","stopped","missing"],description:"Raw provider runtime state (host topology only). Absent on synthetic creating/error rows — presence distinguishes a real box whose agent errored from a failed create job."},name:{type:"string"},provider:{type:"string",description:"Raw provider id ('docker', 'daytona', …; plugin ids possible)"},projectRoot:{type:"string",description:"Absolute host path of the project. Host topology only — never emitted by the hosted plane"},projectIndex:{type:"number"},vncEnabled:{type:"boolean"},gitWorktrees:{type:"array",items:{type:"object",properties:{kind:{type:"string"},branch:{type:"string"}}}},hasGit:{type:"boolean",description:'Does the box workspace have a git repo at all? `false` means there is no worktree and no branch, and a client should HIDE its git UI (pull/push/checkout would all fail). Derived host-side on read from the recorded worktrees, else a `.git` probe of the project root, so cloud boxes — which record no worktrees — answer correctly. ABSENT is not `false`: the hosted plane and synthetic creating/error rows say nothing, and silence must be read as "show".'},supportsBackup:{type:"boolean",description:"The box's agent declares a state backup, so `POST /boxes/{id}/backup` captures its IDENTITY (gateway token, pairings, history) and not just a workspace. Present for a service bot (openclaw); absent for a coding-agent box."},pr:{type:"object",description:"The box's pull request: matched in its workspace timeline by box id, else by the box branch against the PR head; the newest wins, an open one over a merged or closed one. `state` is the last GitHub sync's when the hub has one, else the log's. ABSENT means no data: no known PR, no workspace, or the hosted plane.",properties:{repo:{type:"string",description:"`owner/name`."},number:{type:"number"},url:{type:"string"},state:{type:"string",enum:["open","ready","merged","closed"]}},required:["repo","number","state"]},agentStatus:{type:"object",description:"Every agent reporting in this box, keyed by agent id. The source of truth; the named fields below are its projection over the three built-ins, kept for older clients. An agent outside those three appears only here. Each value is { state, sessionTitle? }, where state is 'working | idle | waiting | end-plan | question | compacting | error | unknown'.",additionalProperties:{type:"object",properties:{state:{type:"string"},sessionTitle:{type:"string"}}}},claudeSessionTitle:{type:"string"},codexSessionTitle:{type:"string"},opencodeSessionTitle:{type:"string"},claudeActivity:{type:"string",description:"working | idle | waiting | end-plan | question | compacting | error | unknown"},codexActivity:{type:"string"},opencodeActivity:{type:"string"},shellCount:{type:"number",description:'Live shell-session count (docker only); absent → the CLI renders "-".'},sandboxId:{type:"string",description:"Provider-native sandbox id (cloud boxes). Part of the non-secret adoption block a thin client rebuilds a drivable local record from — tokens are never serialized, a fresh adoption re-mints them."},originUrl:{type:["string","null"],description:"Box repo's origin remote URL. Lets project-scoped `ls` match a box to the cwd repo by identity when its projectRoot is a remote hub's path. Populated for any registered box, docker included."},publicHost:{type:"string",description:"Public IP/host of the box VM (direct-SSH providers: hetzner/digitalocean)."},image:{type:"string",description:"Base image / snapshot ref the sandbox booted from."},webPort:{type:"number",description:"In-box WebProxy port (cloud boxes bind a non-privileged port)."},previewUrls:{type:"object",additionalProperties:{type:"string"},description:"Token-authed preview URLs keyed by in-box port."},lastAgent:{type:"string",enum:["claude","codex","opencode","pi"],description:"The agent the box was created for."},persistent:{type:"boolean",description:"Always-on box (`--persistent` / `box.persistent`, resolved at create time): never auto-paused, never idle-lapsed, skipped by prune, and started again by the relay's boot reconcile after a host reboot. `agentbox destroy -y` refuses one without `--force`; POST /boxes/{id}/destroy has no such guard, so a client that offers destroy should confirm on this field. Absent/false = an ordinary expendable box."},topology:{type:"string",description:"Sync federation shape ('cloud' | 'control-plane'); absent for docker."}},required:["id","projectId","status","agent"]},Workspace:{type:"object",description:"A folder on the hub host grouping one or more projects, owning a task list and a manager.",properties:{id:{type:"string",description:"Hash of the canonical root (same key space as a project id)."},name:{type:"string"},root:{type:"string",description:"Absolute folder path on the hub host."},projectIds:{type:"array",items:{type:"string"}},taskCounts:{type:"object",properties:{open:{type:"number"},done:{type:"number"}},required:["open","done"]},managers:{type:"object",description:"How many manager sessions this workspace has, and how many run now.",properties:{running:{type:"number"},total:{type:"number"}},required:["running","total"]},createdAt:{type:"string"},updatedAt:{type:"string"}},required:["id","name","root","projectIds","createdAt","updatedAt"]},WorkTaskExternalRef:{type:"object",description:"Back-reference to an external tracker. One ticket routinely becomes several tasks.",properties:{kind:{type:"string",example:"linear"},id:{type:"string"},url:{type:"string"}},required:["kind","id"]},TimelinePr:{type:"object",properties:{repo:{type:"string",description:"`owner/name`."},number:{type:"number"},title:{type:"string"},url:{type:"string"},base:{type:"string"},head:{type:"string"},additions:{type:"number"},deletions:{type:"number"},checks:{type:"string",enum:["pass","fail","pending","none"]},mergeState:{type:"string"},autoMerge:{type:"boolean"},mergedBy:{type:"string"}},required:["repo","number","title","url","base","head"]},TimelineEvent:{type:"object",description:"One line of a workspace's append-only timeline log.",properties:p,required:["id","at","type","actor"]},TimelineBranchUrl:{type:"string",description:"The row's branch on the web, e.g. `https://github.com/acme/storefront-web/tree/feat/checkout-copy`, each branch segment URL-encoded. Added at read time, never stored. Present only when the row names a branch (`pr.head` on a PR row, else `branch`) and its repo is known: from `pr.url`, else a repo the GitHub sync resolved, else the row's project or box repo as the last sync cached it."},TimelineLane:{type:"object",description:"Where a row sits when the timeline is drawn as a branch graph. Assigned at read time over the whole log before paging, so a lane keeps its id on every page; set on every item and live row.",properties:{id:{type:"string",description:"`trunk`, `box:<boxId>`, or `branch:<head>` for a pull request no box is known to own."},kind:{type:"string",enum:["trunk","box","branch"]},from:{type:"string",description:"On the lane's oldest row: the lane it forked from (the box lane that last carried its `base`, else `trunk`). Absent on a page that does not reach the fork."},into:{type:"string",description:"`pr.merged`: the lane it merged into (the box lane carrying `pr.base`, else `trunk`). The row stays on its own lane."},branch:{type:"string",description:"The lane's branch, on its first row and on every row where it changes."},open:{type:"boolean",description:"On the lane's live rows and its newest item when the lane goes on: a live row exists, or the box still exists and is running or has unmerged work."}},required:["id","kind"]},TimelineItem:{type:"object",description:"A timeline row: an event, or a `plan` that 3+ `task.created` events from one manager turn collapsed into.",properties:{...p,type:{type:"string",enum:[...a,"plan"]},count:{type:"number",description:"`plan`: how many tasks it created."},approvedByYou:{type:"boolean",description:"`pr.merged`: a message about this PR was sent before it merged."},branchUrl:{$ref:"#/components/schemas/TimelineBranchUrl"},lane:{$ref:"#/components/schemas/TimelineLane"}},required:["id","at","type","actor"]},TimelineLiveItem:{type:"object",description:"A row true right now, built at read time.",properties:{id:{type:"string"},type:{type:"string",enum:["task.in_progress","pr.ready"]},at:{type:"string"},boxId:{type:"string"},boxName:{type:"string"},agent:{type:"string"},branch:{type:"string"},branchUrl:{$ref:"#/components/schemas/TimelineBranchUrl"},managerId:{type:"string"},task:{type:"object",properties:{id:{type:"string"},title:{type:"string"}},required:["id","title"]},taskIds:{type:"array",items:{type:"string"}},filesChanged:{type:"number"},additions:{type:"number"},deletions:{type:"number"},pr:{$ref:"#/components/schemas/TimelinePr"},awaiting:{type:"boolean"},approved:{type:"boolean"},lane:{$ref:"#/components/schemas/TimelineLane"}},required:["id","type","at"]},TimelineSummary:{type:"object",properties:{since:{type:"string"},merged:{type:"number"},additions:{type:"number"},deletions:{type:"number"},tasksDone:{type:"number"},awaiting:{type:"number",description:"Ready PRs not approved yet, plus pending approvals on the workspace's boxes."}},required:["since","merged","additions","deletions","tasksDone","awaiting"]},Timeline:{type:"object",properties:{items:{type:"array",items:{$ref:"#/components/schemas/TimelineItem"}},live:{type:"array",items:{$ref:"#/components/schemas/TimelineLiveItem"}},summary:{$ref:"#/components/schemas/TimelineSummary"},github:{type:"string",enum:["ok","syncing","unavailable"],description:"`unavailable`: no gh, not logged in, or no GitHub repo behind the workspace."}},required:["items","live","github"]},WorkTask:{type:"object",properties:{id:{type:"string",pattern:"^T-\\d+$"},workspaceId:{type:"string"},projectId:{type:"string"},title:{type:"string"},description:{type:"string"},status:{type:"string",enum:["todo","in_progress","blocked","done"]},order:{type:"number",description:"Position in the list; the order IS the priority."},boxId:{type:"string"},boxJobId:{type:"string",description:"A create job that has not produced a box yet; healed to boxId on read."},managerId:{type:"string",description:"The manager session this task belongs to. Set by `agentbox tasks add` inside a session, and inherited from the box on assignment."},dependsOn:{type:"array",items:{type:"string"}},createdBy:{type:"string",enum:["human","manager","api"]},externalRef:{$ref:"#/components/schemas/WorkTaskExternalRef"},createdAt:{type:"string"},updatedAt:{type:"string"},doneAt:{type:"string"}},required:["id","workspaceId","title","status","order","createdBy","createdAt","updatedAt"]},Manager:{type:"object",description:"A host agent session that creates and watches boxes. Many per workspace.",properties:{id:{type:"string",pattern:"^[0-9a-f]{16}$"},workspaceId:{type:"string"},workspaceName:{type:"string"},agent:{type:"string"},kind:{type:"string",enum:["external","hub"],description:"`external`: a session in your own terminal the hub only observes. `hub`: one the hub runs in tmux, which can be attached to and stopped."},status:{type:"string",enum:["running","stopped"]},resumable:{type:"boolean",description:"Whether POST /managers/{id}/resume would be accepted now: false while it runs, without a session id, for an agent whose sessions cannot be resumed, and for an external session that ran on another machine (its transcript is not on this hub). A GUI disables Resume on false."},resumeBlockedBy:{type:"string",enum:["running","other-host","unsupported-agent","no-session"],description:"Why `resumable` is false, in the order a resume checks: `other-host` (an external session reported from another machine), `running`, `no-session` (no session id yet), `unsupported-agent`. Absent when `resumable` is true."},cwd:{type:"string",description:"Folder the session runs in; a resume runs there."},sessionId:{type:"string"},title:{type:"string",description:"The session's first user turn, when readable."},host:{type:"string"},pid:{type:"number"},pidStartedAt:{type:"string",description:"The pid's start time (`ps -o lstart=`), recorded when the session reported the hub's own host. A live pid with a different start time is a reused pid, and the manager reads as stopped."},tmuxSession:{type:"string"},tmuxPane:{type:"string",description:"External only: the tmux pane the session's terminal reported, where a message can be typed."},attachCommand:{type:"string",description:"Ready-to-run tmux attach command: a running hub-run manager's session, or the hub's attach session for a Claude background session while it is up."},background:{type:"object",description:"A claude manager whose session is a detached Claude Code background session (`claude --bg`, listed by `claude agents`): running in Claude's daemon and shown by nothing the hub can see. POST /managers/{id}/attach opens it. The manager is `running` while the session is, whatever else is attached. Read from `claude agents --json --all` at most every 15 s.",properties:{id:{type:"string",description:"The short id `claude attach` takes."},status:{type:"string",description:"`busy`, `idle`, `waiting`, …"},state:{type:"string",description:"`working`, `done`, …"},name:{type:"string"}},required:["id"]},terminalSession:{type:"string",description:"A running external manager's likely terminal: the one AgentBox tmux session (`agentbox-manager-*`) that started in its folder and no manager owns, such as a session from before managers were detected. A guess, never adopted: a client may offer to open it (`tmux attach -t =<name>`)."},boxIds:{type:"array",items:{type:"string"}},boxJobIds:{type:"array",items:{type:"string"},description:"Create jobs that have not produced a box yet; healed to boxIds on read."},taskCounts:{type:"object",properties:{open:{type:"number"},done:{type:"number"}},required:["open","done"]},createdAt:{type:"string"},lastSeenAt:{type:"string"},startedAt:{type:"string"},stoppedAt:{type:"string"},lastExit:{type:"number",description:"A hub-run agent's own exit code, when it ended on its own."}},required:["id","workspaceId","workspaceName","agent","kind","status","resumable","cwd","boxIds","boxJobIds","taskCounts","createdAt","lastSeenAt"]},HostSession:{type:"object",properties:{id:{type:"string"},agent:{type:"string"},title:{type:"string",description:"First user turn of the transcript."},updatedAt:{type:"string"}},required:["id","agent","title","updatedAt"]},Project:{type:"object",properties:{id:{type:"string"},name:{type:"string"},repo:{type:"string"},defaultBranch:{type:"string"},currentBranch:{type:"string",nullable:!0},needsSetup:{type:"boolean",description:"No agentbox.yaml + no default snapshot — the create form offers the setup wizard"},provider:{type:"string"},createdAt:{type:"number"},originUrl:{type:"string",nullable:!0,description:"Repo origin remote URL (hosted source only)"},projectSlug:{type:"string",nullable:!0,description:"Custody projects/<slug> key (hosted source only)"},lastProvider:{type:"string",nullable:!0,description:"The provider this project's last box was created with — the pre-selection a create picker should open on. Advisory, not a contract: it may be a `docker:<alias>` remote-docker spec, and it may name a provider that is not configured (or no longer exists) on this host, so clamp it against GET /providers and fall back to docker. Absent until a create has been recorded."},lastAgent:{type:"string",nullable:!0,description:"The agent that box was created for, as a create-picker default. Same caveats as lastProvider — clamp against GET /agents. Never `none`: an agentless create records only the provider."},lastUsedAt:{type:"number",nullable:!0,description:"Epoch ms of the create those two fields describe."}},required:["id","name"]},PromptRequest:{type:"object",description:"One question to put to the user. The generic half (`kind`, `title`, `body`, `choices`) is enough to render and answer ANY prompt, including one this client has never seen. `detail` is the opt-in half: a client that recognises the variant draws it properly (a file table, a credential card) and one that does not renders its `summary`.",required:["id","topic","kind","title","fallback"],properties:{id:{type:"string",description:"Content-addressed over the question itself (`<topic>:<digest>`). Echo it back in the answer; if the question has since changed the id no longer matches and the create refuses rather than applying an answer to a different question."},topic:{type:"string",description:"Machine-stable reason this prompt exists: `carry`, `model-auth`."},kind:{type:"string",enum:["confirm","select","text"]},title:{type:"string"},body:{type:"string"},choices:{type:"array",description:"Required for `select`.",items:{type:"object",required:["value","label"],properties:{value:{type:"string"},label:{type:"string"},hint:{type:"string"},danger:{type:"boolean"},exclusive:{type:"boolean",description:'In a `multiple` select, means "none of the others". Ignored otherwise.'}}}},multiple:{type:"boolean",description:"`select` only: several choices may be picked, and the answer is their values joined by `,`. A client that does not know the flag renders a plain single select and posts ONE value, which is the n=1 encoding of the same answer."},defaultValue:{type:"string"},detail:{type:"object",description:"Typed extra content, discriminated by `type` (`file-table` | `credential` | `credential-list` | `text`). Every variant carries `summary`, so an unknown one still renders.",required:["type","summary"],properties:{type:{type:"string"},summary:{type:"string"}},additionalProperties:!0},fallback:{type:"object",description:"What happens if nobody answers.",required:["value","reason"],properties:{value:{type:"string"},reason:{type:"string"}}},required:{type:"boolean",description:"No safe fallback: a create that leaves this unanswered is refused rather than defaulted."},nonInteractiveHint:{type:"string",description:"The flags or env vars that decide this question up front."}}},CreatePreflight:{type:"object",required:["prompts","unavailable"],properties:{prompts:{type:"array",items:{$ref:"#/components/schemas/PromptRequest"}},unavailable:{type:"array",description:"Gates this hub cannot run, and why.",items:{type:"object",required:["topic","reason"],properties:{topic:{type:"string"},reason:{type:"string"}}}}}},ProjectSeed:{type:"object",properties:{custodyAvailable:{type:"boolean",description:"False when this hub is not a control box (no custody store)"},seed:{type:"object",nullable:!0,description:"Null when nothing has been pushed for this project.",properties:{slug:{type:"string"},originUrl:{type:"string"},baseBranch:{type:"string"},repoHeadSha:{type:"string",description:"Full commit the working tree sat on"},capturedAt:{type:"string",description:"ISO timestamp of the last seed push"},hasEnv:{type:"boolean",description:"env/secret tarball present"},hasUntracked:{type:"boolean",description:"untracked-files tarball present"},totalBytes:{type:"number"},entries:{type:"array",items:{type:"object",properties:{name:{type:"string"},size:{type:"number"},sha256:{type:"string"},updatedAt:{type:"string"}},required:["name","size","sha256","updatedAt"]}}},required:["slug","hasEnv","hasUntracked","totalBytes","entries"]}},required:["custodyAvailable","seed"]},BranchList:{type:"object",properties:{current:{type:"string",nullable:!0,description:"The repo's current HEAD (the default base ref)"},branches:{type:"array",items:{type:"string"},description:"Local + remote-tracking branch names"}},required:["branches"]},Approval:{type:"object",properties:{id:{type:"string"},boxId:{type:"string"},kind:{type:"string",enum:["confirm","select","text","open-link"],description:"Which widget to draw; absent means `confirm`. `open-link` is not a question: it carries a `url` the client is asked to open on ITS OWN machine, answering with `openedByClient: true` so the host does not open a second copy (on a control box that would be a tab nobody can see). A client that cannot open URLs may answer a plain `y` and let the host try."},message:{type:"string"},detail:{type:"string"},command:{type:"string"},cwd:{type:"string"},argv:{type:"array",items:{type:"string"}},defaultAnswer:{type:"string",enum:["y","n"]},createdAt:{type:"number"},url:{type:"string",description:"`open-link` only: the http(s) URL to open."},autoOpen:{type:"boolean",description:"`open-link` only: the host already approved this link (safe subset + rate budget), so a client that can open URLs should claim it and open it without asking. Absent means a human has to act."}},required:["id","boxId","message","defaultAnswer"]},Job:{type:"object",properties:{id:{type:"string"},status:{type:"string",enum:["queued","running","done","failed","cancelled"]},boxId:{type:"string"},error:{type:"string",description:"A failed job's reason — so a create reports the failure, not a silent 'done'."},provider:{type:"string"},name:{type:"string"},agent:{type:"string"},createdAt:{type:"string"},login:{type:"object",description:"Present when the create is awaiting a Claude re-login (see POST /jobs/{id}/login-code).",properties:{required:{type:"boolean"},phase:{type:"string"},url:{type:"string"},error:{type:"string"},lastError:{type:"string"}}}},required:["id","status"]},JobListItem:{type:"object",description:"One row of GET /jobs — the Job shape without the streamable log path.",properties:{id:{type:"string"},status:{type:"string",enum:["queued","running","done","failed","cancelled"]},boxId:{type:"string"},error:{type:"string"},provider:{type:"string"},name:{type:"string"},agent:{type:"string"},createdAt:{type:"string"}},required:["id","status"]},AgentState:{type:"object",description:"The box's in-box agent status snapshot. `agents` holds every reporting agent keyed by id (each the raw ctl status payload: activity, plan/question, session title) and is the source of truth. `claude` repeats that agent's body for clients older than `agents`; null when claude has no snapshot, which includes a box running a different agent.",properties:{agents:{type:"object",description:"Raw per-agent status payloads, keyed by agent id (opaque here).",additionalProperties:!0},claude:{description:"Claude's body, repeated from `agents` (opaque here)."}},required:["claude"]},CheckpointCreateResult:{type:"object",properties:{ok:{const:!0},name:{type:"string"},kind:{type:"string",description:"docker manifest type ('layered' | 'merged') or 'snapshot' for a cloud backend."},ref:{type:"string",description:"The image tag / snapshot id created."},provider:{type:"string"},dir:{type:"string",description:"Snapshot dir (cloud backends)."},setDefaultKey:{type:"string",description:"The config key written when setDefault was requested."}},required:["ok","name","kind","ref","provider"]},CheckpointItem:{type:"object",properties:{name:{type:"string"},provider:{type:"string",description:"'docker' or the cloud backend name."},kind:{type:"string"},sourceBoxName:{type:"string"},createdAt:{type:"string"},isDefault:{type:"boolean",description:"Resolved server-side against the project's effective config."}},required:["name","provider","kind","isDefault"]},CheckpointListing:{type:"object",properties:{projects:{type:"array",items:{type:"object",properties:{segment:{type:"string",description:"The path-hash store segment."},projectRoot:{type:"string",description:"Absent for an orphan segment whose project config was GC-ed."},label:{type:"string"},items:{type:"array",items:{$ref:"#/components/schemas/CheckpointItem"}}},required:["segment","label","items"]}}},required:["projects"]},CheckpointRemoveResult:{type:"object",properties:{ok:{const:!0},removed:{type:"array",items:{type:"string"},description:"Providers the checkpoint was deleted from."},clearedKeys:{type:"array",items:{type:"string"},description:"Default-checkpoint config pointers cleared in the project layer."},warnedKeys:{type:"array",items:{type:"string"},description:"Dangling pointers in a layer we can't auto-edit (warned, not cleared)."}},required:["ok","removed","clearedKeys","warnedKeys"]},PruneResult:{description:"The prune outcome — discriminated by `kind`: `general` (docker sweep), `cloud` (untracked cloud sandboxes).",oneOf:[{type:"object",properties:{kind:{const:"general"},result:{type:"object",properties:{removedRecords:{type:"array",items:{type:"string"}},removedContainers:{type:"array",items:{type:"string"}},removedVolumes:{type:"array",items:{type:"string"}},removedSnapshotDirs:{type:"array",items:{type:"string"}},removedBoxDirs:{type:"array",items:{type:"string"}},removedCheckpointImages:{type:"array",items:{type:"string"}},dryRun:{type:"boolean"}},required:["dryRun"]},projectConfigs:{type:"array",items:{type:"string"}}},required:["kind","result","projectConfigs"]},{type:"object",properties:{kind:{const:"cloud"},provider:{type:"string"},dryRun:{type:"boolean"},orphans:{type:"array",items:{type:"object",properties:{sandboxId:{type:"string"},name:{type:"string"},state:{type:"string"},createdAt:{type:"string"}},required:["sandboxId"]}},deleted:{type:"number"},failed:{type:"number"},reaped:{type:"number",description:"Control-box registrations reaped for the deleted sandboxes (0 on a dry run)."}},required:["kind","provider","dryRun","orphans","deleted","failed","reaped"]}]},CreateBox:{type:"object",properties:{projectId:{type:"string",description:"Project to build from. Exactly one of projectId / repoUrl. A projectId whose folder is absent on this machine (the normal case on a control box) routes to the control-plane clone queue."},repoUrl:{type:"string",description:"Repo origin to clone from, when the project has no folder on the hub's machine. Exactly one of projectId / repoUrl."},agent:{type:"string",description:'Canonical agent id, or "none" for a plain box with no agent. Open-ended: the built-ins are claude | codex | opencode | pi | openclaw, plus anything registered by `agentbox agent add` — GET /agents is the live list this route validates against.',example:"claude"},agentArgs:{type:"array",items:{type:"string"},description:"Extra argv passed to the agent's launcher."},startAgent:{type:"boolean",description:"Start the agent session after the box is built (default true)."},foreground:{type:"boolean",description:"An interactive create — the hub runs it in the ungated foreground lane so it doesn't queue behind background jobs."},managerId:{type:"string",pattern:"^[0-9a-f]{16}$",description:"The manager session this create came from (`POST /managers/detect` returns it). The job is attached to it, so the box reports that `managerId`."},opts:{type:"object",additionalProperties:!0,description:"Box-shaping knobs the caller already resolved (image, snapshot, limits, size/location, carry, credential-sync, ...), so a hub-routed create builds the same box an inline one would. Absent keys fall back to the hub's own config.",properties:{persistent:{type:"boolean",description:"Always-on box: never auto-paused, never idle-lapsed, skipped by prune, restarted after a host reboot. OMIT for no opinion — a service agent then defaults to `true` and everything else to the hub's `box.persistent`. `true` on e2b/vercel is refused with `conflict`."},promptAnswers:{type:"array",description:"Answers to the questions POST /projects/{id}/create-preflight returned. Each `id` is matched against the question the create actually asks, so a stale answer is ignored rather than applied. Omitting an answer to a `required` prompt fails the create.",items:{type:"object",required:["id","value"],properties:{id:{type:"string"},value:{type:"string"},cancelled:{type:"boolean"}}}},borrowCredentials:{type:"array",items:{type:"string"},description:"Other agents' host logins to seed as this box's model auth (`--model-auth`; service agents). Normally decided by the `model-auth` prompt instead."}}},provider:{type:"string",enum:["docker","daytona","hetzner","vercel","e2b","digitalocean","remote-docker"],default:"docker"},name:{type:"string"},prompt:{type:"string"},fromBranch:{type:"string",description:"Base ref the box's per-box branch forks from (branch / tag / SHA); default the project's HEAD"},setupWizard:{type:"boolean",description:'Seed the agent\'s first turn to generate agentbox.yaml (for projects with none). Inert for agent "none".'}},required:["projectId","agent"]},Agent:{type:"object",properties:{id:{type:"string",description:"Canonical agent id, as accepted by `agent` on POST /boxes. Open-ended: the built-ins are claude | codex | opencode | pi, plus whatever is registered."},label:{type:"string",description:"Display name; falls back to the id."},installed:{type:"boolean",description:"This machine holds the agent's config dir or a saved AgentBox login. Absent when the hub has no host to answer for."},surface:{type:"string",enum:["tui","service"],description:"What the agent IS: `tui` is a session you attach to, `service` is a daemon the box hosts (published on the box web URL, nothing to attach to). Read it to show the defaults this API applies — a `service` agent creates an always-on box unless `opts.persistent` says otherwise, so a create form that renders that toggle off would contradict what POST /boxes does. Absent when the hub has no host to answer for; treat that as unknown, not as `tui`."}},required:["id","label"]},Provider:{type:"object",description:"A provider plus its declarative descriptor. The descriptor half comes from a sync snapshot (the built-in table, or ~/.agentbox/plugins.json for a community provider), so it is always present and costs nothing to serve. Clients should render from it rather than hardcoding provider names.",properties:{id:{type:"string",description:"Built-ins are docker, daytona, hetzner, vercel, e2b, digitalocean, remote-docker; a registered plugin uses its own name."},label:{type:"string"},configured:{type:"boolean",description:"Base image baked (usable for create) on this host."},kind:{type:"string",enum:["local","cloud"]},credentials:{type:"object",description:'What "configured credentials" means, and the form to prompt with.',properties:{envKeys:{type:"array",items:{type:"string"},description:"secrets.env key NAMES whose presence means configured. Values are never read."},fields:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"},optional:{type:"boolean"},secret:{type:"boolean",description:"Absent means secret — mask it."},hint:{type:"string"}},required:["key","label"]}}}},bake:{type:"object",properties:{required:{type:"boolean",description:"false = the base self-heals on create (docker), so a missing base is a slow first create, not a blocked one."},approxMinutes:{type:"string"},createProgressSteps:{type:"integer",description:"Typical streamed create-log line count, for client progress pacing."},bakeProgressSteps:{type:"integer"}}},capabilities:{type:"object",description:'All DECLARED, not inferred from method presence. pauseSemantics "stop" means pause powers the box off — relabel the control, do not hide it.',additionalProperties:!0},sizes:{type:"array",description:"Sizes to offer in a create picker, most-modest first. Each key is a literal --size value for THIS backend; there is no cross-provider grammar. Absent = the provider has no size knob (docker).",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}},required:["key","label"]}},sizeHint:{type:"string",description:"Placeholder for a free-text size. Its PRESENCE is what says `sizes` is an open list — offer a custom-value field only when there is a hint for it."},sizeAppliesAt:{type:"string",enum:["create","bake"],description:"bake = the size is fixed when the base is baked and rejected per-create (daytona, e2b), so a change must go through POST /providers/{id}/prepare with { size, force: true } first. Absent = create. POST /providers/{id}/size-check says whether a SPECIFIC size needs that."},regions:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}},required:["key","label"]}},hasCredentials:{type:"boolean",description:"Credentials present (docker: always true). Can be true while not yet configured (baked)."},jobId:{type:"string",description:"Id of an in-flight bake (prepare) job for this provider, if any."},reason:{type:"string"},baseStatus:{type:"string",enum:["fresh","stale","unprepared","unknown"],description:"Only when ?freshness=1. stale = re-bake wanted; unknown = could not verify."},baseStaleReason:{type:"string"},origin:{type:"string",enum:["local","hub"],description:"hub = this row came from a remote control box, which is where its boxes are created."},hubUrl:{type:"string"}},required:["id","label","configured"]},GitOpBody:{type:"object",description:"Union of git-op fields; only those for the chosen {op} are read (extras are ignored).",properties:{branch:{type:"string",description:"checkout: branch to switch to"},name:{type:"string",description:"branch: new branch name (agentbox/ prefix added when missing)"},from:{type:"string",description:"branch: base ref to fork from (default: box's HEAD)"},remote:{type:"string",description:"push/pull: remote name (default: origin)"},force:{type:"boolean",description:"push: force the remote push; push-host: overwrite the destination branch"},ffOnly:{type:"boolean",description:"pull: pass --ff-only to the merge"},as:{type:"string",description:"push-host: destination branch name in the host repo (default: the box's branch)"}}},GitOpResult:{type:"object",properties:{ok:{const:!0},stdout:{type:"string"},stderr:{type:"string"}},required:["ok"]},GitInfo:{type:"object",properties:{ok:{type:"boolean"},branch:{type:"string"},dirty:{type:"boolean"},ahead:{type:"number"},behind:{type:"number"},error:{type:"string"}},required:["ok"]},Services:{type:"object",properties:{source:{type:"string",enum:["live","persisted","unavailable"]},services:{type:"array",items:{type:"object",properties:{name:{type:"string"},state:{type:"string"},pid:{type:["number","null"]},restarts:{type:"number"},lastExitCode:{type:["number","null"]},blockedOn:{type:"array",items:{type:"string"}},command:{type:"string"}},required:["name","state"]}},tasks:{type:"array",items:{type:"object",properties:{name:{type:"string"},state:{type:"string"}},required:["name","state"]}},ports:{type:"array",items:{type:"object",properties:{port:{type:"number"},service:{type:["string","null"]}},required:["port"]}},error:{type:"string"}},required:["source","services","tasks","ports"]}}}}},"docsHtml",0,function(){return`<!doctype html>
2
2
  <html>
3
3
  <head>
4
4
  <title>AgentBox Hub API</title>