@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
package/dist/index.js CHANGED
@@ -1,4 +1,8 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ pluginCommand,
4
+ resolvePackage
5
+ } from "./chunk-TDPHZWJI.js";
2
6
  import {
3
7
  claudeCliSpec,
4
8
  claudeCredStatus,
@@ -8,15 +12,15 @@ import {
8
12
  runClaudeLogin,
9
13
  takeLoginCode,
10
14
  writeLoginState
11
- } from "./chunk-4LSLXBFN.js";
15
+ } from "./chunk-MO3QJTVS.js";
12
16
  import {
13
17
  codexCliSpec,
14
18
  codexRuntime,
15
19
  installCodexPlugin
16
- } from "./chunk-VWJBQGXD.js";
20
+ } from "./chunk-EDJ6O6CI.js";
17
21
  import {
18
22
  opencodeCliSpec
19
- } from "./chunk-4NO5MO2P.js";
23
+ } from "./chunk-RIXW4HSE.js";
20
24
  import {
21
25
  DEFAULT_PI_SESSION,
22
26
  buildPiMounts,
@@ -27,14 +31,14 @@ import {
27
31
  piSessionInfo,
28
32
  resolvePiVolume,
29
33
  startPiSession
30
- } from "./chunk-L567TKOK.js";
34
+ } from "./chunk-CXAWPWGZ.js";
31
35
  import {
32
36
  buildExampleMounts,
33
37
  ensureExampleVolume,
34
38
  exampleCliSpec,
35
39
  exampleSessionInfo,
36
40
  resolveExampleVolume
37
- } from "./chunk-ENFWBFBI.js";
41
+ } from "./chunk-XLJ4D4FI.js";
38
42
  import {
39
43
  ADVANCED_HINT_GROUPS,
40
44
  ALERT_BAND_ROWS,
@@ -71,7 +75,7 @@ import {
71
75
  subscribePrompts,
72
76
  uploadImageFileToBox,
73
77
  withFirewallRepair
74
- } from "./chunk-NKHRFR5G.js";
78
+ } from "./chunk-GSMQL4IJ.js";
75
79
  import {
76
80
  codexStagedItems,
77
81
  opencodeStagedItems,
@@ -80,21 +84,29 @@ import {
80
84
  registerOpencodeAgent,
81
85
  renderControlBoxProviders,
82
86
  runPrepare
83
- } from "./chunk-QT4MOS6R.js";
87
+ } from "./chunk-2APGFWEU.js";
84
88
  import {
85
89
  DEFAULT_CODEX_SESSION,
86
90
  ensureCodexInstalled,
87
91
  startCodexSession
88
- } from "./chunk-IF4VXKJK.js";
92
+ } from "./chunk-6XMOBI5V.js";
89
93
  import {
90
94
  DEFAULT_OPENCODE_SESSION,
91
95
  ensureOpencodeInstalled,
92
96
  startOpencodeSession
93
- } from "./chunk-IQ6BQ2LX.js";
97
+ } from "./chunk-4FOXMGJ7.js";
98
+ import {
99
+ dockerHiddenMessage,
100
+ dockerHiddenReason,
101
+ dockerProviderRefusal,
102
+ dockerProvidersHidden,
103
+ isDockerProvider,
104
+ remoteHubConfigured
105
+ } from "./chunk-27S7QLDF.js";
94
106
  import {
95
107
  sharePreparedBase,
96
108
  tryAdoptPreparedBase
97
- } from "./chunk-QWWDG5B7.js";
109
+ } from "./chunk-XTNAIM7X.js";
98
110
  import {
99
111
  ensurePortlessProxyQuietly,
100
112
  hubCommand,
@@ -103,7 +115,7 @@ import {
103
115
  resolvePortlessEnabled,
104
116
  resolvePortlessNonInteractive,
105
117
  setupPortlessHost
106
- } from "./chunk-CUIJ2PIN.js";
118
+ } from "./chunk-TAZYSVLT.js";
107
119
  import {
108
120
  AGENTBOX_COMMIT,
109
121
  AGENTBOX_VERSION,
@@ -148,31 +160,29 @@ import {
148
160
  trayRunning,
149
161
  updateCheckEnabled,
150
162
  writeUpdateState
151
- } from "./chunk-5UX2HAF4.js";
163
+ } from "./chunk-5OKDSI6M.js";
164
+ import {
165
+ isNewer
166
+ } from "./chunk-UPQOX272.js";
152
167
  import {
153
168
  boxOwningHubIsLocal,
154
169
  exitCodeForApiError,
155
170
  remoteHubHostFileRefusal,
156
171
  reportBoxNotOnAnyHub,
157
172
  withHubClient,
173
+ withHubClientQuiet,
158
174
  withOwningHub
159
- } from "./chunk-ZUTC2JZM.js";
175
+ } from "./chunk-XNZ6UHTM.js";
176
+ import "./chunk-X6CO4WIX.js";
160
177
  import {
161
178
  CustodyClient
162
- } from "./chunk-EXF4PLBN.js";
179
+ } from "./chunk-3ISG5THX.js";
163
180
  import {
164
181
  adoptHubBox,
165
182
  downloadBoxSshKeys,
166
183
  normalizeOriginUrl
167
- } from "./chunk-OXBWZG2N.js";
168
- import "./chunk-IFPTD73K.js";
169
- import {
170
- pluginCommand,
171
- resolvePackage
172
- } from "./chunk-QDVIMN57.js";
173
- import {
174
- isNewer
175
- } from "./chunk-UPQOX272.js";
184
+ } from "./chunk-7QTBRHB7.js";
185
+ import "./chunk-3L2DIPRM.js";
176
186
  import {
177
187
  detectSbx,
178
188
  ensureVercelCredentials,
@@ -181,14 +191,14 @@ import {
181
191
  readPreparedState as readPreparedState2,
182
192
  readVercelCredStatus,
183
193
  secretsPath as secretsPath3
184
- } from "./chunk-GCS5XAPC.js";
194
+ } from "./chunk-MI3V2MAE.js";
185
195
  import {
186
196
  ensureE2bCredentials,
187
197
  maskKey as maskKey4,
188
198
  readE2bCredStatus,
189
199
  readPreparedState as readPreparedState3,
190
200
  secretsPath as secretsPath4
191
- } from "./chunk-RUKTOHK7.js";
201
+ } from "./chunk-3AYSA62C.js";
192
202
  import {
193
203
  detectEgressIp as detectEgressIp2,
194
204
  ensureDigitalOceanCredentials,
@@ -200,7 +210,7 @@ import {
200
210
  readPreparedState as readPreparedState4,
201
211
  secretsPath as secretsPath5,
202
212
  syncFirewallSource as syncFirewallSource2
203
- } from "./chunk-AAMPHDB2.js";
213
+ } from "./chunk-MPTE57BZ.js";
204
214
  import {
205
215
  getProvider,
206
216
  isKnownProvider,
@@ -209,22 +219,36 @@ import {
209
219
  providerSpecFor,
210
220
  resolveCreateProviderSpec,
211
221
  resolveProviderChoice
212
- } from "./chunk-4Y365UYP.js";
222
+ } from "./chunk-JWQYZ6V4.js";
213
223
  import {
214
- dockerHiddenMessage,
215
- dockerHiddenReason,
216
- dockerProviderRefusal,
217
- dockerProvidersHidden,
218
- isDockerProvider,
219
- remoteHubConfigured
220
- } from "./chunk-LR5RNEVO.js";
221
- import "./chunk-VQONUZE4.js";
224
+ RECENT_SESSION_MS,
225
+ detectAgentFromEnv,
226
+ detectHostSession,
227
+ registerCurrentSession,
228
+ registerHostManager
229
+ } from "./chunk-GVNKIACA.js";
222
230
  import {
223
231
  hubCanRunEngine,
224
232
  shareHostWith,
225
233
  unshareHostFrom,
226
234
  unsharedHostReason
227
- } from "./chunk-VOVRWIBC.js";
235
+ } from "./chunk-YSACCMUB.js";
236
+ import {
237
+ assertValidAlias,
238
+ bakeRegisteredHost,
239
+ getHostAlias,
240
+ interactiveRegisterHost,
241
+ listHostAliases,
242
+ prepareRemoteDocker,
243
+ probeRemoteEngine,
244
+ readPreparedState as readPreparedState5,
245
+ removeHostAlias,
246
+ removePreparedHost,
247
+ setRemoteHostBaker,
248
+ setRemoteHostSharer,
249
+ shareRegisteredHost,
250
+ upsertHostAlias
251
+ } from "./chunk-L4KBYI3I.js";
228
252
  import {
229
253
  BOX_WORKSPACE,
230
254
  RESUME_SEED,
@@ -244,40 +268,24 @@ import {
244
268
  select,
245
269
  spinner3,
246
270
  text
247
- } from "./chunk-M6VAID7T.js";
248
- import {
249
- assertValidAlias,
250
- bakeRegisteredHost,
251
- getHostAlias,
252
- interactiveRegisterHost,
253
- listHostAliases,
254
- prepareRemoteDocker,
255
- probeRemoteEngine,
256
- readPreparedState as readPreparedState5,
257
- removeHostAlias,
258
- removePreparedHost,
259
- setRemoteHostBaker,
260
- setRemoteHostSharer,
261
- shareRegisteredHost,
262
- upsertHostAlias
263
- } from "./chunk-BYZPRB7U.js";
271
+ } from "./chunk-QBVRWGXD.js";
264
272
  import {
265
273
  HubApiClient,
266
274
  HubApiError,
267
275
  hubBoxAgentStatus
268
- } from "./chunk-PXH3DERD.js";
276
+ } from "./chunk-MB2K74BI.js";
269
277
  import {
270
278
  readControlPlaneEnvMap
271
279
  } from "./chunk-QNYGNHM2.js";
272
280
  import {
273
281
  rehydrateFromState,
274
282
  relayCommand
275
- } from "./chunk-IQMDGAMB.js";
283
+ } from "./chunk-WLEGSKKE.js";
276
284
  import {
277
285
  claudeStagedItems,
278
286
  handleLifecycleError,
279
287
  registerClaudeAgent
280
- } from "./chunk-YL3VEQTS.js";
288
+ } from "./chunk-S7LPQXR5.js";
281
289
  import {
282
290
  SHARED_CLAUDE_VOLUME,
283
291
  buildDashboardAttachArgv,
@@ -287,7 +295,7 @@ import {
287
295
  rebuildPluginNativeDeps,
288
296
  startClaudeSession,
289
297
  waitForTmuxPaneContent
290
- } from "./chunk-YSC4VY43.js";
298
+ } from "./chunk-ANSPBIYG.js";
291
299
  import {
292
300
  daytonaBackend,
293
301
  ensureDaytonaCredentials,
@@ -295,7 +303,7 @@ import {
295
303
  readDaytonaCredStatus,
296
304
  readPreparedDaytonaState,
297
305
  secretsPath
298
- } from "./chunk-MJZPECVQ.js";
306
+ } from "./chunk-M2DWTQRF.js";
299
307
  import {
300
308
  detectEgressIp,
301
309
  ensureHetznerCredentials,
@@ -306,7 +314,7 @@ import {
306
314
  readPreparedState,
307
315
  secretsPath as secretsPath2,
308
316
  syncFirewallSource
309
- } from "./chunk-AYREFYEF.js";
317
+ } from "./chunk-KOTW7QQW.js";
310
318
  import {
311
319
  CarrySeedError,
312
320
  adminCustodySink,
@@ -325,7 +333,7 @@ import {
325
333
  registerAgentCloudModule,
326
334
  resolveCloudCheckpoint,
327
335
  seedAgentVolumesIfFresh
328
- } from "./chunk-MBZ4UOWF.js";
336
+ } from "./chunk-WTOG3CC6.js";
329
337
  import {
330
338
  CONTAINER_USER,
331
339
  DEFAULT_SHELL_SESSION,
@@ -343,6 +351,7 @@ import {
343
351
  createDockerVolumeSyncTransport,
344
352
  destroyBox,
345
353
  detectEngine,
354
+ detectPortless,
346
355
  dockerCredentialRefresh,
347
356
  dockerHubPortlessHooks,
348
357
  downloadFromBox,
@@ -369,6 +378,7 @@ import {
369
378
  parseToolsSection,
370
379
  pauseBox,
371
380
  portlessGetUrl,
381
+ portlessServiceStatus,
372
382
  portlessUnalias,
373
383
  projectCheckpointImageBytes,
374
384
  pullToHost,
@@ -395,30 +405,33 @@ import {
395
405
  volumeClaudeCredentials,
396
406
  volumeExists,
397
407
  volumeSettingsTarget
398
- } from "./chunk-EP4IFSV5.js";
408
+ } from "./chunk-PE5LPD23.js";
399
409
  import {
400
410
  DEFAULT_BOX_RELAY_PORT,
411
+ RESUMABLE_MANAGER_AGENTS,
401
412
  deleteJob,
402
413
  enqueueQueueJob,
414
+ findWorkspaceContaining,
403
415
  hashRpcParams,
404
416
  injectPrCreateHead,
405
417
  loadQueue,
406
418
  loadQueueConfig,
407
419
  parseGitRemote,
408
420
  readJob,
421
+ recordCreateJobTimeline,
409
422
  takeQueueLoginCode,
410
423
  writeJob
411
- } from "./chunk-KCDLAP5Q.js";
424
+ } from "./chunk-66GAYIJZ.js";
412
425
  import "./chunk-MNDKP4VS.js";
413
426
  import {
414
427
  cloudBackendForProvider,
415
428
  currentCloudBaseFingerprintLive
416
- } from "./chunk-75JF44DH.js";
429
+ } from "./chunk-AWI2TSWS.js";
417
430
  import {
418
431
  getRuntimeProviderNames,
419
432
  isRuntimeProvider,
420
433
  loadProviderModule
421
- } from "./chunk-2MBELUE6.js";
434
+ } from "./chunk-CDRKQ5BH.js";
422
435
  import {
423
436
  BUILD_CONTEXT_DIR,
424
437
  DEFAULT_BOX_IMAGE,
@@ -427,7 +440,7 @@ import {
427
440
  evaluateDockerBaseFreshness,
428
441
  imageExists,
429
442
  readPreparedDockerState
430
- } from "./chunk-X6SZPGL5.js";
443
+ } from "./chunk-YNAJUTYC.js";
431
444
  import {
432
445
  AGENT_SYNC_SPECS,
433
446
  BOTS_DIR_REL,
@@ -531,7 +544,7 @@ import {
531
544
  upsertClaudeSshConfig,
532
545
  withServiceSignIn,
533
546
  writeBackupManifest
534
- } from "./chunk-C67DVYWA.js";
547
+ } from "./chunk-ZKOLV4ZN.js";
535
548
  import {
536
549
  AmbiguousBoxError,
537
550
  BUILTIN_AGENT_SPECS,
@@ -558,7 +571,8 @@ import {
558
571
  requireAgentCredential,
559
572
  resolveAgentLauncher,
560
573
  resolveCreatePersistent,
561
- toQueueKind
574
+ toQueueKind,
575
+ visibleAgentSpecs
562
576
  } from "./chunk-AWFTAHGF.js";
563
577
  import {
564
578
  GLOBAL_TOOLS_FILE,
@@ -610,7 +624,7 @@ import "./chunk-6V366IZC.js";
610
624
  import { existsSync as _existsSync } from "fs";
611
625
  import { dirname as _dirname, resolve as _resolve } from "path";
612
626
  import { fileURLToPath as _fileURLToPath } from "url";
613
- import { Command as Command68 } from "commander";
627
+ import { Command as Command71 } from "commander";
614
628
 
615
629
  // ../../packages/agent-example/dist/index.js
616
630
  var exampleSyncModule = {
@@ -687,10 +701,10 @@ async function stagePiCredentialsForUpload(opts = {}) {
687
701
  }
688
702
  var PI_FILE_ITEMS = /* @__PURE__ */ new Set(["auth.json", "settings.json"]);
689
703
  function piStagedItems(newItems) {
690
- return newItems.map((label) => ({
691
- rel: label,
692
- label,
693
- kind: PI_FILE_ITEMS.has(label) || label.endsWith(".md") ? "file" : "dir"
704
+ return newItems.map((label2) => ({
705
+ rel: label2,
706
+ label: label2,
707
+ kind: PI_FILE_ITEMS.has(label2) || label2.endsWith(".md") ? "file" : "dir"
694
708
  }));
695
709
  }
696
710
  var piSyncModule = {
@@ -819,6 +833,11 @@ var HELP_GROUPS = [
819
833
  title: "Git & sync",
820
834
  commands: ["git", "git push", "git pull", "git pr", "download", "cp", "checkpoint", "queue"]
821
835
  },
836
+ {
837
+ title: "Workspaces & tasks",
838
+ hint: "group projects in a folder, plan the work, run a manager agent over it",
839
+ commands: ["workspace", "tasks", "manager"]
840
+ },
822
841
  {
823
842
  title: "Providers",
824
843
  commands: [
@@ -851,6 +870,9 @@ var HELP_GROUPS = [
851
870
  }
852
871
  ];
853
872
  var SHORT_DESCRIPTIONS = {
873
+ workspace: "Register a folder grouping several projects, with its own task list",
874
+ tasks: "Units of work in a workspace, assigned to boxes (not agentbox.yaml tasks)",
875
+ manager: "Agent sessions that create and watch boxes: detected, or run by the hub",
854
876
  create: "Create and start a new agent box (no agent launched)",
855
877
  claude: "Create a box and launch Claude Code (detachable tmux session)",
856
878
  codex: "Create a box and launch OpenAI Codex (detachable tmux session)",
@@ -909,7 +931,7 @@ function buildGroupedHelp(program2) {
909
931
  const orphans = visible.map((c) => c.name()).filter((n) => !grouped.has(n));
910
932
  const groups = [...HELP_GROUPS];
911
933
  if (orphans.length) groups.push({ title: "Other", commands: orphans });
912
- const resolve7 = (name) => {
934
+ const resolve8 = (name) => {
913
935
  const parts = name.split(" ");
914
936
  let cmd = byName.get(parts[0]);
915
937
  for (const part of parts.slice(1)) {
@@ -921,7 +943,7 @@ function buildGroupedHelp(program2) {
921
943
  const termWidths = [];
922
944
  for (const g of groups) {
923
945
  for (const name of g.commands) {
924
- const row2 = resolve7(name);
946
+ const row2 = resolve8(name);
925
947
  if (row2) termWidths.push(rowTerm(name, row2.cmd).length + row2.depth * 2);
926
948
  }
927
949
  }
@@ -932,7 +954,7 @@ function buildGroupedHelp(program2) {
932
954
  const title = g.hint ? `${g.title} (${g.hint})` : g.title;
933
955
  lines.push("", ` ${title}`);
934
956
  for (const name of g.commands) {
935
- const row2 = resolve7(name);
957
+ const row2 = resolve8(name);
936
958
  if (!row2) continue;
937
959
  const description = SHORT_DESCRIPTIONS[name] ?? row2.cmd.description();
938
960
  const indent2 = " " + " ".repeat(row2.depth);
@@ -1044,12 +1066,12 @@ var ADOPT_TIMEOUT_MS = 4e3;
1044
1066
  var REACHABLE_PROBE_MS = 1500;
1045
1067
  async function tryAutoAdopt(ref, cwd, projectRoot) {
1046
1068
  try {
1047
- const { resolveHubTarget } = await import("./hub-OMGLWQEV.js");
1069
+ const { resolveHubTarget } = await import("./hub-OWUC4IGW.js");
1048
1070
  const target = await resolveHubTarget();
1049
1071
  if (target.mode !== "remote") return null;
1050
1072
  if (!target.token) return "unreachable";
1051
1073
  const [{ adoptHubBox: adoptHubBox2 }, { HubApiClient: HubApiClient2 }, { deadlineFetch: deadlineFetch2, hostReachable: hostReachable2 }] = await Promise.all(
1052
- [import("./hub-adopt-IYZ3WXYN.js"), import("./hub-api-client-WOZ2BQ6H.js"), import("./dist-36WLI6E2.js")]
1074
+ [import("./hub-adopt-HYXFUPPO.js"), import("./hub-api-client-BI3E37CF.js"), import("./dist-V224SH3Z.js")]
1053
1075
  );
1054
1076
  const deadline = Date.now() + ADOPT_TIMEOUT_MS;
1055
1077
  const remaining = () => deadline - Date.now();
@@ -1074,8 +1096,8 @@ async function tryAutoAdopt(ref, cwd, projectRoot) {
1074
1096
  log.info("retry with a longer id prefix, the full name, or the sandbox id");
1075
1097
  process.exit(2);
1076
1098
  }
1077
- const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-DGLF4MBB.js");
1078
- const { CustodyClient: CustodyClient2 } = await import("./custody-client-P7SCEDU2.js");
1099
+ const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-3TII2JGM.js");
1100
+ const { CustodyClient: CustodyClient2 } = await import("./custody-client-KYEZET6C.js");
1079
1101
  const custodyTarget = await resolveCustodyApiTarget2(void 0, {
1080
1102
  quiet: true,
1081
1103
  remoteOnly: true
@@ -1087,7 +1109,7 @@ async function tryAutoAdopt(ref, cwd, projectRoot) {
1087
1109
  controlPlaneUrl: target.url,
1088
1110
  cwd
1089
1111
  });
1090
- const { ensureHostReachDrainer } = await import("./host-reach-drainer-XFLSMTSX.js");
1112
+ const { ensureHostReachDrainer } = await import("./host-reach-drainer-NYN3YXHG.js");
1091
1113
  void ensureHostReachDrainer(res.record);
1092
1114
  return res.record;
1093
1115
  } catch {
@@ -1686,14 +1708,14 @@ var agentApproveCommand = new Command2("approve").description(
1686
1708
  async function approveRelay(id, opts) {
1687
1709
  const cancelled = opts.cancel === true;
1688
1710
  const answer = opts.deny === true || cancelled ? "n" : "y";
1689
- const label = answer === "y" ? "approved" : "denied";
1711
+ const label2 = answer === "y" ? "approved" : "denied";
1690
1712
  let reachedHub = false;
1691
1713
  const localClient = await resolveHubApiClient(void 0, { preferLocal: true });
1692
1714
  if (localClient) {
1693
1715
  reachedHub = true;
1694
1716
  try {
1695
1717
  const opened = await localClient.answerApprovalOpeningLinks(id, answer, cancelled);
1696
- log4.success(opened ? `approval ${id}: opened ${opened}` : `approval ${id}: ${label}`);
1718
+ log4.success(opened ? `approval ${id}: opened ${opened}` : `approval ${id}: ${label2}`);
1697
1719
  return;
1698
1720
  } catch (err) {
1699
1721
  if (!(err instanceof HubApiError && err.code === "not_found")) throw err;
@@ -1713,7 +1735,7 @@ Set AGENTBOX_HUB_API_KEY (or run \`agentbox hub setup\`), or answer it with \`ag
1713
1735
  try {
1714
1736
  const opened = await remoteClient.answerApprovalOpeningLinks(id, answer, cancelled);
1715
1737
  log4.success(
1716
- opened ? `approval ${id}: opened ${opened}` : `approval ${id}: ${label} (on the control box)`
1738
+ opened ? `approval ${id}: opened ${opened}` : `approval ${id}: ${label2} (on the control box)`
1717
1739
  );
1718
1740
  return;
1719
1741
  } catch (err) {
@@ -1953,10 +1975,10 @@ function emitMatch(claude, asJson) {
1953
1975
  function statusDisplay(claude) {
1954
1976
  return derivedAgentState(claude);
1955
1977
  }
1956
- function parsePositiveInt(raw, label) {
1978
+ function parsePositiveInt(raw, label2) {
1957
1979
  const n = Number.parseInt(raw, 10);
1958
1980
  if (!Number.isFinite(n) || n <= 0 || String(n) !== raw.trim()) {
1959
- throw new Error(`${label} must be a positive integer (got: ${raw})`);
1981
+ throw new Error(`${label2} must be a positive integer (got: ${raw})`);
1960
1982
  }
1961
1983
  return n;
1962
1984
  }
@@ -2104,15 +2126,15 @@ var logSub = new Command3("log").description("Show the tray app's diagnostics (u
2104
2126
  };
2105
2127
  process.on("SIGINT", term2);
2106
2128
  process.on("SIGTERM", term2);
2107
- await new Promise((resolve7) => {
2129
+ await new Promise((resolve8) => {
2108
2130
  child.on("error", (err) => {
2109
2131
  log5.error(`failed to start \`log stream\`: ${err.message}`);
2110
2132
  process.exitCode = 1;
2111
- resolve7();
2133
+ resolve8();
2112
2134
  });
2113
2135
  child.on("exit", (code) => {
2114
2136
  if (code && code !== 0) process.exitCode = code;
2115
- resolve7();
2137
+ resolve8();
2116
2138
  });
2117
2139
  });
2118
2140
  return;
@@ -2293,7 +2315,7 @@ async function warnCheckpointAgentMismatch(provider, projectRoot, ref, agents, w
2293
2315
  }
2294
2316
  async function evaluateBaseFreshness(provider) {
2295
2317
  if (provider === "docker") {
2296
- const { evaluateDockerBaseFreshness: evaluateDockerBaseFreshness2 } = await import("./dist-2CAWJQT5.js");
2318
+ const { evaluateDockerBaseFreshness: evaluateDockerBaseFreshness2 } = await import("./dist-JJZ3NZRO.js");
2297
2319
  return await evaluateDockerBaseFreshness2();
2298
2320
  }
2299
2321
  const stored = currentCloudBaseFingerprint(provider);
@@ -2390,6 +2412,67 @@ function cloudSizingProviderOptions(providerName, cfg, flags = {}) {
2390
2412
  return out;
2391
2413
  }
2392
2414
 
2415
+ // src/lib/tasks-assign.ts
2416
+ var TASK_ID_RE = /^T-\d+$/;
2417
+ var TaskIdError = class extends Error {
2418
+ };
2419
+ function parseTaskIds(raw) {
2420
+ const ids = raw.split(",").map((s) => s.trim()).filter((s) => s.length > 0);
2421
+ if (ids.length === 0) throw new TaskIdError("--tasks needs at least one task id (e.g. T-11)");
2422
+ const bad = ids.filter((id) => !TASK_ID_RE.test(id));
2423
+ if (bad.length > 0) {
2424
+ throw new TaskIdError(`not a task id: ${bad.join(", ")} (expected T-<number>)`);
2425
+ }
2426
+ return [...new Set(ids)];
2427
+ }
2428
+ async function preflightTaskAssignment(client, projectRoot, ids) {
2429
+ const workspaces = await client.listWorkspaces();
2430
+ const ws = (process.env["AGENTBOX_WORKSPACE"] ? workspaces.find((w) => w.id === process.env["AGENTBOX_WORKSPACE"]) : void 0) ?? findWorkspaceContaining(workspaces, projectRoot);
2431
+ if (!ws) {
2432
+ throw new TaskIdError(
2433
+ `--tasks needs a workspace: no registered workspace contains ${projectRoot}. Register one with \`agentbox workspace add\`.`
2434
+ );
2435
+ }
2436
+ const known = new Set((await client.listTasks(ws.id)).map((t) => t.id));
2437
+ const missing = ids.filter((id) => !known.has(id));
2438
+ if (missing.length > 0) {
2439
+ throw new TaskIdError(`unknown task ${missing.join(", ")} in workspace ${ws.name}`);
2440
+ }
2441
+ return ws.id;
2442
+ }
2443
+ async function assignTasksBestEffort(client, wsId, ids, target) {
2444
+ try {
2445
+ await client.assignTasks(wsId, ids, target);
2446
+ log2.info(`tasks assigned: ${ids.join(", ")}`);
2447
+ } catch (err) {
2448
+ log2.warn(
2449
+ `could not assign ${ids.join(", ")}: ${err instanceof Error ? err.message : String(err)}`
2450
+ );
2451
+ }
2452
+ }
2453
+ async function preflightOrExit(client, projectRoot, ids) {
2454
+ try {
2455
+ return await preflightTaskAssignment(client, projectRoot, ids);
2456
+ } catch (err) {
2457
+ if (err instanceof TaskIdError) {
2458
+ log2.error(err.message);
2459
+ process.exit(4);
2460
+ }
2461
+ throw err;
2462
+ }
2463
+ }
2464
+ function parseTaskIdsOrExit(raw) {
2465
+ try {
2466
+ return parseTaskIds(raw);
2467
+ } catch (err) {
2468
+ if (err instanceof TaskIdError) {
2469
+ log2.error(err.message);
2470
+ process.exit(4);
2471
+ }
2472
+ throw err;
2473
+ }
2474
+ }
2475
+
2393
2476
  // src/lib/queue/parse-max-option.ts
2394
2477
  function parseMaxOption(flag, raw) {
2395
2478
  if (raw === void 0) return void 0;
@@ -2698,8 +2781,8 @@ async function printLaunchRecap(args) {
2698
2781
  rows.push(["branch", `${base} \u2192 ${toBranch}`]);
2699
2782
  }
2700
2783
  }
2701
- const pad3 = Math.max(...rows.map(([label]) => label.length)) + 2;
2702
- const body = rows.map(([label, value]) => `${label.padEnd(pad3)}${value}`).join("\n");
2784
+ const pad3 = Math.max(...rows.map(([label2]) => label2.length)) + 2;
2785
+ const body = rows.map(([label2, value]) => `${label2.padEnd(pad3)}${value}`).join("\n");
2703
2786
  const instruction = args.attaching ? `Ctrl+a d to detach. Reattach with: agentbox ${args.mode} attach ${args.reattach}` : `Attach with: agentbox ${args.mode} attach ${args.reattach}`;
2704
2787
  note2(whiten(`${body}
2705
2788
 
@@ -2727,6 +2810,7 @@ async function cloudAgentCreate(args) {
2727
2810
  s.stop(`box ready${nSuffix}`);
2728
2811
  await recordLastAgent(result.record.id, args.mode).catch(() => {
2729
2812
  });
2813
+ if (args.onCreated) await args.onCreated(result.record);
2730
2814
  let extraArgs = args.extraArgs;
2731
2815
  if (args.beforeStart) {
2732
2816
  const hook = await args.beforeStart(result.record);
@@ -2777,7 +2861,7 @@ import { isCancel, log as log7, text as text2 } from "@clack/prompts";
2777
2861
  var JOB_POLL_MS = 2e3;
2778
2862
  var CREATE_TIMEOUT_MS = 45 * 6e4;
2779
2863
  function delay(ms) {
2780
- return new Promise((resolve7) => setTimeout(resolve7, ms));
2864
+ return new Promise((resolve8) => setTimeout(resolve8, ms));
2781
2865
  }
2782
2866
  async function defaultLoginPrompt(url, lastError) {
2783
2867
  if (lastError) log7.warn(`login code rejected: ${lastError}`);
@@ -2882,7 +2966,7 @@ async function resolveCreateTarget(input) {
2882
2966
  fellBackReason: "no git `origin` remote for the control box to clone"
2883
2967
  };
2884
2968
  }
2885
- const { resolveCustodyTarget: resolveCustodyTarget2 } = await import("./control-plane-DGLF4MBB.js");
2969
+ const { resolveCustodyTarget: resolveCustodyTarget2 } = await import("./control-plane-3TII2JGM.js");
2886
2970
  const custody = await resolveCustodyTarget2(urlFlag, { quiet: !forceHub });
2887
2971
  if (!custody) {
2888
2972
  if (forceHub) {
@@ -3001,7 +3085,9 @@ async function createCloudBoxViaHubAndAdopt(args) {
3001
3085
  })
3002
3086
  });
3003
3087
  const client = new HubApiClient(apiTarget);
3088
+ const manager = await registerCurrentSession(client);
3004
3089
  const { jobId } = await client.createBox({
3090
+ ...manager ? { managerId: manager.managerId } : {},
3005
3091
  repoUrl,
3006
3092
  provider: providerSpecFor(providerName, remoteHost),
3007
3093
  agent,
@@ -3077,7 +3163,9 @@ async function enqueueAgentJobViaHub(args) {
3077
3163
  })
3078
3164
  });
3079
3165
  const client = new HubApiClient(apiTarget);
3166
+ const manager = await registerCurrentSession(client);
3080
3167
  const { jobId } = await client.createBox({
3168
+ ...manager ? { managerId: manager.managerId } : {},
3081
3169
  repoUrl,
3082
3170
  provider: providerSpecFor(providerName, remoteHost),
3083
3171
  agent,
@@ -3788,6 +3876,9 @@ var BOX_REF_HELP = "box ref: project index, id, id prefix, name, or container (d
3788
3876
  function addCreateOptions(cmd, a) {
3789
3877
  const { id, productName, text: text3 } = a;
3790
3878
  cmd.option("-w, --workspace <path>", "host workspace to mount", process.cwd()).option("-n, --name <name>", "friendly box name (default: <workspace-basename>-<id>)").option(
3879
+ "--tasks <ids>",
3880
+ "comma-separated workspace task ids to assign to this box (e.g. T-11,T-12)"
3881
+ ).option(
3791
3882
  "--host-snapshot",
3792
3883
  "APFS-clone the host workspace into a per-box scratch dir before seeding /workspace (stabilizes the tar-pipe source)"
3793
3884
  ).option("--no-host-snapshot", "tar-pipe directly from the live host workspace at create time").option(
@@ -4284,6 +4375,34 @@ async function runAgentCreate(a, agentArgs, opts) {
4284
4375
  });
4285
4376
  const cfg = cfgLoaded.effective;
4286
4377
  const projectRoot = (await findProjectRoot(opts.workspace)).root;
4378
+ const taskIds = opts.tasks ? parseTaskIdsOrExit(opts.tasks) : [];
4379
+ let taskWorkspaceId = null;
4380
+ if (taskIds.length > 0) {
4381
+ taskWorkspaceId = await withHubClient(
4382
+ { preferLocal: true },
4383
+ (client) => preflightOrExit(client, projectRoot, taskIds)
4384
+ ) ?? null;
4385
+ if (!taskWorkspaceId) process.exit(process.exitCode || 1);
4386
+ }
4387
+ const sessionHint = detectHostSession();
4388
+ const recordCreate = async (target) => {
4389
+ if (sessionHint) {
4390
+ const registered = await withHubClientQuiet(
4391
+ { preferLocal: true },
4392
+ (client) => registerHostManager(client, sessionHint, target)
4393
+ );
4394
+ if (!registered.ok) {
4395
+ log2.warn(
4396
+ `could not register this ${sessionHint.agent} session as a manager: ${registered.error}`
4397
+ );
4398
+ }
4399
+ }
4400
+ if (!taskWorkspaceId) return;
4401
+ await withHubClient(
4402
+ { preferLocal: true },
4403
+ (client) => assignTasksBestEffort(client, taskWorkspaceId, taskIds, target)
4404
+ );
4405
+ };
4287
4406
  const { providerName, remoteHost } = resolveProviderChoice(cfg, { provider: opts.provider });
4288
4407
  const isCloud = providerName !== "docker";
4289
4408
  let routingPromise;
@@ -4405,6 +4524,7 @@ async function runAgentCreate(a, agentArgs, opts) {
4405
4524
  1
4406
4525
  );
4407
4526
  }
4527
+ if (res.boxId) await recordCreate({ boxId: res.boxId });
4408
4528
  outro(`${a.id} is running on the control plane: box ${res.boxId ?? "(id pending)"}`);
4409
4529
  cmdLog.close();
4410
4530
  return;
@@ -4448,6 +4568,7 @@ async function runAgentCreate(a, agentArgs, opts) {
4448
4568
  maxWorkingOverride,
4449
4569
  openTerminal: captureOpenTerminalContext(cfg.queue.openIn)
4450
4570
  });
4571
+ await recordCreate({ boxJobId: result.job.id });
4451
4572
  outro(
4452
4573
  `job ${result.job.id} queued (${String(result.runningCount)}/${String(result.maxConcurrent)} running); log: ${result.job.logPath}`
4453
4574
  );
@@ -4594,6 +4715,7 @@ async function runAgentCreate(a, agentArgs, opts) {
4594
4715
  { verbose: opts.verbose === true }
4595
4716
  );
4596
4717
  if (adopted) {
4718
+ await recordCreate({ boxId: adopted.id });
4597
4719
  await cloudAgentAttach({
4598
4720
  box: adopted,
4599
4721
  binary: a.spec.binary,
@@ -4645,6 +4767,7 @@ async function runAgentCreate(a, agentArgs, opts) {
4645
4767
  binary: a.spec.binary,
4646
4768
  sessionName,
4647
4769
  mode: a.id,
4770
+ onCreated: (box) => recordCreate({ boxId: box.id }),
4648
4771
  hasSeedPrompt: seedOwnsFirstTurn,
4649
4772
  extraArgs: effectiveArgs,
4650
4773
  verbose: opts.verbose === true,
@@ -4710,6 +4833,7 @@ async function runAgentCreate(a, agentArgs, opts) {
4710
4833
  }
4711
4834
  });
4712
4835
  containerName = result.record.container;
4836
+ await recordCreate({ boxId: result.record.id });
4713
4837
  if (a.runtime.ensureInstalledOnCreate) {
4714
4838
  s.message(`checking ${a.id}`);
4715
4839
  cmdLog.write(`checking ${a.id}`);
@@ -6232,9 +6356,9 @@ var createSub = new Command8("create").description("Capture a box state as a pro
6232
6356
  }
6233
6357
  });
6234
6358
  function itemRow(c) {
6235
- const label = c.provider === "docker" ? `docker (${c.kind})` : `${c.provider} (${c.kind})`;
6359
+ const label2 = c.provider === "docker" ? `docker (${c.kind})` : `${c.provider} (${c.kind})`;
6236
6360
  const flag = c.isDefault ? " *default" : "";
6237
- return `${c.name} ${label} from ${c.sourceBoxName} ${c.createdAt}${flag}`;
6361
+ return `${c.name} ${label2} from ${c.sourceBoxName} ${c.createdAt}${flag}`;
6238
6362
  }
6239
6363
  var lsSub = new Command8("ls").description("List this project's checkpoints (both docker and cloud); -g for all projects").option("-g, --global", "include checkpoints from all projects").action(async (opts) => {
6240
6364
  try {
@@ -6295,13 +6419,13 @@ var setDefaultSub = new Command8("set-default").description("Pin a checkpoint as
6295
6419
  `${providerArg} is a plugin provider, which has no per-provider default key \u2014 this sets the cross-provider ${configKey}, used by every provider without its own default.`
6296
6420
  );
6297
6421
  }
6298
- const label = providerArg && perProvider ? `${providerArg} default checkpoint` : "project default checkpoint";
6422
+ const label2 = providerArg && perProvider ? `${providerArg} default checkpoint` : "project default checkpoint";
6299
6423
  if (opts.clear) {
6300
6424
  if (ref !== void 0) throw new Error("pass either a <ref> or --clear, not both");
6301
6425
  const rr = await unsetConfigValue("project", configKey, projectRoot);
6302
6426
  process.stdout.write(
6303
- rr.existed ? `cleared ${label} (wrote ${rr.path})
6304
- ` : `no ${label} was set (${rr.path})
6427
+ rr.existed ? `cleared ${label2} (wrote ${rr.path})
6428
+ ` : `no ${label2} was set (${rr.path})
6305
6429
  `
6306
6430
  );
6307
6431
  return;
@@ -6316,7 +6440,7 @@ var setDefaultSub = new Command8("set-default").description("Pin a checkpoint as
6316
6440
  return;
6317
6441
  }
6318
6442
  const rr = await setConfigValue("project", configKey, ref, projectRoot);
6319
- process.stdout.write(`${label} = ${ref} (wrote ${rr.path})
6443
+ process.stdout.write(`${label2} = ${ref} (wrote ${rr.path})
6320
6444
  `);
6321
6445
  });
6322
6446
  } catch (err) {
@@ -6482,10 +6606,10 @@ var propagateCommand = new Command9("propagate").description("Push the host cred
6482
6606
  });
6483
6607
  async function pushCredentialToCustody(agent, content) {
6484
6608
  try {
6485
- const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-DGLF4MBB.js");
6609
+ const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-3TII2JGM.js");
6486
6610
  const target = await resolveCustodyApiTarget2(void 0, { quiet: true, remoteOnly: true });
6487
6611
  if (!target) return;
6488
- const { CustodyClient: CustodyClient2, planPush } = await import("./custody-client-P7SCEDU2.js");
6612
+ const { CustodyClient: CustodyClient2, planPush } = await import("./custody-client-KYEZET6C.js");
6489
6613
  const client = new CustodyClient2(target);
6490
6614
  const path = `agents/${agent}/${requireAgentCredential(resolveAgentSpec(agent)).boxRelPath}`;
6491
6615
  const item = { path, data: Buffer.from(content, "utf8") };
@@ -6848,10 +6972,10 @@ async function launchOne(flavor, folderUri) {
6848
6972
  return { code: fallback, flavor, via: "open" };
6849
6973
  }
6850
6974
  function spawnCommand(cmd, args) {
6851
- return new Promise((resolve7) => {
6975
+ return new Promise((resolve8) => {
6852
6976
  const child = spawn2(cmd, args, { stdio: "ignore" });
6853
- child.once("error", () => resolve7(127));
6854
- child.once("exit", (code) => resolve7(code ?? -1));
6977
+ child.once("error", () => resolve8(127));
6978
+ child.once("exit", (code) => resolve8(code ?? -1));
6855
6979
  });
6856
6980
  }
6857
6981
  async function fetchServiceNamesDocker(container) {
@@ -7309,7 +7433,7 @@ var cpCommand = new Command12("cp").description(
7309
7433
  ).action(async (paths, opts) => {
7310
7434
  try {
7311
7435
  if (paths.length >= 2 && isHubDest(paths[paths.length - 1])) {
7312
- const { uploadToHubCache } = await import("./cp-hub-upload-7YESYCVS.js");
7436
+ const { uploadToHubCache } = await import("./cp-hub-upload-3W7Z4BMT.js");
7313
7437
  await uploadToHubCache(paths.slice(0, -1), process.cwd());
7314
7438
  return;
7315
7439
  }
@@ -7449,7 +7573,9 @@ async function runCreateViaHubApi(target, opts, providerName, remoteHost, projec
7449
7573
  ...opts.credentialSync === false ? { credentialSync: false } : {}
7450
7574
  };
7451
7575
  const outcome = await withHubClient({ url: opts.url }, async (client) => {
7576
+ const manager = await registerCurrentSession(client);
7452
7577
  const { jobId } = await client.createBox({
7578
+ ...manager ? { managerId: manager.managerId } : {},
7453
7579
  repoUrl: target.repoUrl,
7454
7580
  provider: providerSpecFor(providerName, remoteHost),
7455
7581
  agent: "none",
@@ -7483,6 +7609,9 @@ async function runCreateViaHubApi(target, opts, providerName, remoteHost, projec
7483
7609
  var createCommand = new Command13("create").description(
7484
7610
  "Create and start a new agent box (Docker container with /workspace seeded via in-container git worktree)"
7485
7611
  ).option("-w, --workspace <path>", "host workspace to mount", process.cwd()).option("-n, --name <name>", "friendly box name (default: <workspace-basename>-<id>)").option(
7612
+ "--tasks <ids>",
7613
+ "comma-separated workspace task ids to assign to this box (e.g. T-11,T-12)"
7614
+ ).option(
7486
7615
  "--provider <name>",
7487
7616
  "sandbox backend: docker (default), daytona, hetzner, digitalocean, vercel, e2b, remote-docker. `docker:<host>` runs the box on that machine's docker engine over SSH."
7488
7617
  ).option(
@@ -7809,8 +7938,12 @@ var createCommand = new Command13("create").description(
7809
7938
  }
7810
7939
  const s = makeProgressReporter(opts.verbose === true);
7811
7940
  s.start("creating box");
7941
+ const taskIds = opts.tasks ? parseTaskIdsOrExit(opts.tasks) : [];
7812
7942
  const outcome = await withHubClient({ preferLocal: true }, async (client) => {
7943
+ const taskWorkspace = taskIds.length > 0 ? await preflightOrExit(client, projectRoot, taskIds) : null;
7944
+ const manager = await registerCurrentSession(client);
7813
7945
  const { jobId } = await client.createBox({
7946
+ ...manager ? { managerId: manager.managerId } : {},
7814
7947
  projectId: hashProjectPath(projectRoot),
7815
7948
  provider: opts.provider ?? providerName,
7816
7949
  agent: "none",
@@ -7851,6 +7984,8 @@ var createCommand = new Command13("create").description(
7851
7984
  }
7852
7985
  });
7853
7986
  cmdLog.write(`enqueued: job ${jobId}`);
7987
+ if (taskWorkspace)
7988
+ await assignTasksBestEffort(client, taskWorkspace, taskIds, { boxJobId: jobId });
7854
7989
  return await streamJobToCompletion(client, jobId, {
7855
7990
  onLine: (line) => {
7856
7991
  s.message(line);
@@ -7914,7 +8049,7 @@ var createCommand = new Command13("create").description(
7914
8049
  for (const w of cmdLog.warnings()) log15.warn(w);
7915
8050
  outro4("done");
7916
8051
  if (attachClaudeAfter && record) {
7917
- const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-B3BCOZ7U.js");
8052
+ const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-6RKS3MAP.js");
7918
8053
  await cloudAgentAttach2({
7919
8054
  box: record,
7920
8055
  binary: "claude",
@@ -7953,12 +8088,12 @@ async function fetchBoxListing(opts = {}) {
7953
8088
  const ttl = apiMemo?.listing.stale === true ? HUB_LIST_FAIL_MEMO_MS : HUB_LIST_MEMO_MS;
7954
8089
  if (apiMemo && Date.now() - apiMemo.at < ttl) return apiMemo.listing;
7955
8090
  }
7956
- const { resolveHubTarget } = await import("./hub-OMGLWQEV.js");
8091
+ const { resolveHubTarget } = await import("./hub-OWUC4IGW.js");
7957
8092
  const probe = await resolveHubTarget(opts.url).catch(() => null);
7958
8093
  if (probe && probe.mode === "remote" && !probe.token) {
7959
8094
  return remember({ boxes: [], stale: true, reason: "no-token" }, opts.live);
7960
8095
  }
7961
- const { resolveHubApiTarget: resolveHubApiTarget2 } = await import("./control-plane-DGLF4MBB.js");
8096
+ const { resolveHubApiTarget: resolveHubApiTarget2 } = await import("./control-plane-3TII2JGM.js");
7962
8097
  const target = await resolveHubApiTarget2(opts.url).catch(() => null);
7963
8098
  if (target) {
7964
8099
  const ceiling = opts.live ? HUB_LIST_LIVE_TIMEOUT_MS : HUB_LIST_TIMEOUT_MS;
@@ -8747,8 +8882,8 @@ var Compositor = class {
8747
8882
  this.drawChrome();
8748
8883
  this.scheduleRender();
8749
8884
  this.pollTimer = setInterval(() => void this.poll(), POLL_MS);
8750
- await new Promise((resolve7) => {
8751
- this.resolveDone = resolve7;
8885
+ await new Promise((resolve8) => {
8886
+ this.resolveDone = resolve8;
8752
8887
  });
8753
8888
  }
8754
8889
  async refreshBoxes() {
@@ -9103,8 +9238,8 @@ var Compositor = class {
9103
9238
  this.busy = true;
9104
9239
  this.menu = null;
9105
9240
  this.createMenu = null;
9106
- const label = which === "shell" ? "shell" : which === "pi" ? "Pi" : which === "opencode" ? "OpenCode" : which === "codex" ? "Codex" : "Claude";
9107
- this.placeholder = ["", which === "shell" ? " Opening shell\u2026" : ` Starting ${label}\u2026`];
9241
+ const label2 = which === "shell" ? "shell" : which === "pi" ? "Pi" : which === "opencode" ? "OpenCode" : which === "codex" ? "Codex" : "Claude";
9242
+ this.placeholder = ["", which === "shell" ? " Opening shell\u2026" : ` Starting ${label2}\u2026`];
9108
9243
  this.prevRows = null;
9109
9244
  this.drawChrome();
9110
9245
  this.scheduleRender();
@@ -9117,7 +9252,7 @@ var Compositor = class {
9117
9252
  const msg = err instanceof Error ? err.message : String(err);
9118
9253
  this.placeholder = [
9119
9254
  "",
9120
- ` Failed to ${which === "shell" ? "open a shell" : `start ${label}`} in ${name}:`,
9255
+ ` Failed to ${which === "shell" ? "open a shell" : `start ${label2}`} in ${name}:`,
9121
9256
  ` ${msg}`,
9122
9257
  "",
9123
9258
  which === "shell" ? ` Try from a shell: agentbox shell ${name}` : ` Try from a shell: agentbox ${which} start ${name}`
@@ -11156,9 +11291,9 @@ var remoteDockerCommand = new Command21("remote-docker").description("Remote Doc
11156
11291
  process.stdout.write(`remote-docker: ${header}
11157
11292
  `);
11158
11293
  for (const r of rows) {
11159
- const label = r.label.padEnd(10);
11294
+ const label2 = r.label.padEnd(10);
11160
11295
  const tail = r.hint ? ` (${r.hint})` : "";
11161
- process.stdout.write(` ${statusBadge(r.status)} ${label} ${r.detail}${tail}
11296
+ process.stdout.write(` ${statusBadge(r.status)} ${label2} ${r.detail}${tail}
11162
11297
  `);
11163
11298
  }
11164
11299
  if (!probe.ok) process.exitCode = 1;
@@ -11479,16 +11614,16 @@ async function runPropagateStep(opts) {
11479
11614
  };
11480
11615
  const image = sourceBox.image || DEFAULT_BOX_IMAGE;
11481
11616
  for (const vol of plan.dockerVolumes) {
11482
- const label = vol.shared ? `docker boxes (shared volume): ${vol.boxNames.join(", ")}` : `${vol.boxNames.join(", ")} (isolated volume)`;
11617
+ const label2 = vol.shared ? `docker boxes (shared volume): ${vol.boxNames.join(", ")}` : `${vol.boxNames.join(", ")} (isolated volume)`;
11483
11618
  try {
11484
11619
  const result = await propagateStagedSettings(
11485
- volumeSettingsTarget(vol.volume, image, label),
11620
+ volumeSettingsTarget(vol.volume, image, label2),
11486
11621
  staged
11487
11622
  );
11488
- process.stdout.write(` -> ${label}: ${summarize(result)}
11623
+ process.stdout.write(` -> ${label2}: ${summarize(result)}
11489
11624
  `);
11490
11625
  } catch (err) {
11491
- log2.warn(` -> ${label}: failed \u2014 ${err instanceof Error ? err.message : String(err)}`);
11626
+ log2.warn(` -> ${label2}: failed \u2014 ${err instanceof Error ? err.message : String(err)}`);
11492
11627
  }
11493
11628
  }
11494
11629
  for (const target of plan.cloudBoxes) {
@@ -12535,10 +12670,10 @@ function parseRowRange(raw) {
12535
12670
  }
12536
12671
  return { from: Number(m[1]), to: Number(m[2]) };
12537
12672
  }
12538
- function parsePositiveInt2(raw, label) {
12673
+ function parsePositiveInt2(raw, label2) {
12539
12674
  const n = Number.parseInt(raw, 10);
12540
12675
  if (!Number.isFinite(n) || n <= 0 || String(n) !== raw.trim()) {
12541
- throw new Error(`${label} must be a positive integer (got: ${raw})`);
12676
+ throw new Error(`${label2} must be a positive integer (got: ${raw})`);
12542
12677
  }
12543
12678
  return n;
12544
12679
  }
@@ -12570,20 +12705,12 @@ function resolveForkProvider(positional, flag) {
12570
12705
  }
12571
12706
  return provider || void 0;
12572
12707
  }
12573
- function detectAgentFromEnv(env = process.env) {
12574
- if (env.CLAUDECODE === "1" || (env.CLAUDE_CODE_SESSION_ID ?? "").trim().length > 0) {
12575
- return "claude";
12576
- }
12577
- if ((env.CODEX_THREAD_ID ?? "").trim().length > 0) return "codex";
12578
- return void 0;
12579
- }
12580
12708
  function agentCommandFor(agent) {
12581
12709
  const entry = agentCommandEntry(agent);
12582
12710
  if (!entry) throw new Error(`fork: no command registered for agent '${agent}'`);
12583
12711
  return entry.command;
12584
12712
  }
12585
12713
  var FORK_ATTACH_VALUES = ["window", "tab", "split", "background", "same"];
12586
- var RECENT_SESSION_MS = 5 * 60 * 1e3;
12587
12714
  function resolveSessionArgs(agent, opts) {
12588
12715
  if (!resolveAgentSpec(agent).caps.resume) {
12589
12716
  if (opts.session) {
@@ -12838,6 +12965,15 @@ async function checkGit() {
12838
12965
  hint: "install git \u2014 required for the workspace git-bundle seed"
12839
12966
  };
12840
12967
  }
12968
+ async function checkGh() {
12969
+ const v = await probeVersion("gh");
12970
+ return v ? { label: "gh", status: "ok", detail: v } : {
12971
+ label: "gh",
12972
+ status: "warn",
12973
+ detail: "not found",
12974
+ hint: "optional: `brew install gh` \u2014 needed for PRs from a box (the built-in gh host tool)"
12975
+ };
12976
+ }
12841
12977
  async function checkSsh() {
12842
12978
  const v = await probeVersion("ssh", ["-V"]);
12843
12979
  return v ? { label: "ssh", status: "ok", detail: v } : {
@@ -12868,14 +13004,25 @@ function checkMacfuse() {
12868
13004
  hint: "optional: `brew install macfuse` \u2014 the FUSE backend `agentbox open` mounts through"
12869
13005
  };
12870
13006
  }
13007
+ async function checkTmux() {
13008
+ const v = await probeVersion("tmux", ["-V"]);
13009
+ return v ? { label: "tmux", status: "ok", detail: v } : {
13010
+ label: "tmux",
13011
+ status: "warn",
13012
+ detail: "not found",
13013
+ hint: "optional: `brew install tmux` \u2014 needed for `agentbox manager` (the workspace agent runs in a tmux session)"
13014
+ };
13015
+ }
12871
13016
  async function runSystemChecks() {
12872
- const [git2, ssh, sshfs, config] = await Promise.all([
13017
+ const [git2, gh, ssh, sshfs, tmux, config] = await Promise.all([
12873
13018
  checkGit(),
13019
+ checkGh(),
12874
13020
  checkSsh(),
12875
13021
  checkSshfs(),
13022
+ checkTmux(),
12876
13023
  checkConfig()
12877
13024
  ]);
12878
- const results = [checkNode(), checkPlatform(), checkAgentboxHome(), git2, ssh, sshfs];
13025
+ const results = [checkNode(), checkPlatform(), checkAgentboxHome(), git2, gh, ssh, sshfs, tmux];
12879
13026
  results.push(...await checkBoxesOnStaleRelayPort());
12880
13027
  if (process.platform === "darwin") results.push(checkMacfuse());
12881
13028
  results.push(...config);
@@ -13060,6 +13207,32 @@ function worstStatus(groups) {
13060
13207
  }
13061
13208
  return worst;
13062
13209
  }
13210
+ async function buildDoctorReport(groups, probes = {
13211
+ engine: () => detectEngine(),
13212
+ portless: () => detectPortless(),
13213
+ service: () => portlessServiceStatus()
13214
+ }) {
13215
+ const noPortless = { installed: false, proxyRunning: false, version: void 0 };
13216
+ const [engine, state, service] = await Promise.all([
13217
+ probes.engine().catch(() => "other"),
13218
+ probes.portless().catch(() => noPortless),
13219
+ probes.service().catch(() => ({ installed: false, failing: false }))
13220
+ ]);
13221
+ return {
13222
+ version: AGENTBOX_VERSION,
13223
+ platform: { os: process.platform, arch: process.arch },
13224
+ status: worstStatus(groups),
13225
+ groups,
13226
+ portless: {
13227
+ relevant: engine !== "orbstack",
13228
+ installed: state.installed,
13229
+ ...state.version ? { version: state.version } : {},
13230
+ proxyRunning: state.proxyRunning,
13231
+ serviceInstalled: service.installed,
13232
+ serviceFailing: service.installed && service.failing === true
13233
+ }
13234
+ };
13235
+ }
13063
13236
  function summaryToken(group) {
13064
13237
  const worst = worstInResults(group.results);
13065
13238
  if (group.title === "system") {
@@ -13799,9 +13972,9 @@ async function runProviderLogin(name) {
13799
13972
  async function maybeSetDefaultProvider(name, autoYes) {
13800
13973
  const cfg = await loadEffectiveConfig(process.cwd());
13801
13974
  if (cfg.effective.box.provider === name) return true;
13802
- const label = providerMeta(name).label;
13975
+ const label2 = providerMeta(name).label;
13803
13976
  const wantDefault = autoYes ? true : await confirm({
13804
- message: `Make ${label} the default for new boxes? (plain \`agentbox claude\` will use it)`,
13977
+ message: `Make ${label2} the default for new boxes? (plain \`agentbox claude\` will use it)`,
13805
13978
  initialValue: true
13806
13979
  });
13807
13980
  if (!wantDefault) {
@@ -13810,11 +13983,11 @@ async function maybeSetDefaultProvider(name, autoYes) {
13810
13983
  }
13811
13984
  try {
13812
13985
  await setConfigValue("global", "box.provider", name, process.cwd(), { raw: true });
13813
- log2.info(`${label} is now the default for new boxes`);
13986
+ log2.info(`${label2} is now the default for new boxes`);
13814
13987
  return true;
13815
13988
  } catch (err) {
13816
13989
  log2.warn(
13817
- `could not set ${label} as the default: ${err instanceof Error ? err.message : String(err)}`
13990
+ `could not set ${label2} as the default: ${err instanceof Error ? err.message : String(err)}`
13818
13991
  );
13819
13992
  return false;
13820
13993
  }
@@ -14062,6 +14235,9 @@ var doctorCommand = new Command40("doctor").description(
14062
14235
  ).option(
14063
14236
  "-p, --provider <name>",
14064
14237
  "limit checks to one provider (docker | daytona | hetzner | vercel | e2b)"
14238
+ ).option(
14239
+ "--json",
14240
+ "print the report as JSON ({ version, platform, status, groups, portless }) \u2014 what the menu-bar app reads"
14065
14241
  ).action(async (opts) => {
14066
14242
  let groups;
14067
14243
  if (opts.provider) {
@@ -14081,6 +14257,12 @@ var doctorCommand = new Command40("doctor").description(
14081
14257
  } else {
14082
14258
  groups = await runAllChecks();
14083
14259
  }
14260
+ if (opts.json === true) {
14261
+ const report2 = await buildDoctorReport(groups);
14262
+ process.stdout.write(JSON.stringify(report2, null, 2) + "\n");
14263
+ if (report2.status === "fail") process.exit(1);
14264
+ return;
14265
+ }
14084
14266
  process.stdout.write(formatDetailed(groups).join("\n") + "\n");
14085
14267
  const controlBox = await renderControlBoxProviders().catch(() => []);
14086
14268
  if (controlBox.length > 0) process.stdout.write(controlBox.join("\n") + "\n");
@@ -14116,7 +14298,7 @@ async function scopeFile(global) {
14116
14298
  }
14117
14299
  async function announceGrantChange(global) {
14118
14300
  const { root } = await findProjectRoot(process.cwd());
14119
- const { pushToolGrantChange, describeToolGrantPush } = await import("./tool-grant-push-7G2QAN3J.js");
14301
+ const { pushToolGrantChange, describeToolGrantPush } = await import("./tool-grant-push-A2JYLJVF.js");
14120
14302
  const summary2 = describeToolGrantPush(await pushToolGrantChange({ global, projectRoot: root }));
14121
14303
  if (summary2) log27.info(summary2);
14122
14304
  }
@@ -14421,10 +14603,10 @@ function boxLabel(box) {
14421
14603
  import { supportsHyperlink } from "supports-hyperlinks";
14422
14604
  var ESC2 = "\x1B";
14423
14605
  var ST = `${ESC2}\\`;
14424
- function hyperlink(label, url, stream, force = false) {
14606
+ function hyperlink(label2, url, stream, force = false) {
14425
14607
  const out = stream ?? process.stdout;
14426
- if (!force && !supportsHyperlink(out)) return label;
14427
- return `${ESC2}]8;;${url}${ST}${label}${ESC2}]8;;${ST}`;
14608
+ if (!force && !supportsHyperlink(out)) return label2;
14609
+ return `${ESC2}]8;;${url}${ST}${label2}${ESC2}]8;;${ST}`;
14428
14610
  }
14429
14611
 
14430
14612
  // src/watch.ts
@@ -14546,8 +14728,8 @@ function urlCell(b, stream, hub) {
14546
14728
  parts.push({ text: hyperlink(display, primaryHref ?? primary, stream), width: display.length });
14547
14729
  }
14548
14730
  if (vnc && vnc !== primary) {
14549
- const label = "(VNC)";
14550
- parts.push({ text: hyperlink(label, vnc, stream), width: label.length });
14731
+ const label2 = "(VNC)";
14732
+ parts.push({ text: hyperlink(label2, vnc, stream), width: label2.length });
14551
14733
  }
14552
14734
  if (parts.length === 0) return plain("");
14553
14735
  const sep2 = " ";
@@ -14658,9 +14840,9 @@ function projectLabel(root) {
14658
14840
  if (!root) return "other";
14659
14841
  return root.split("/").filter(Boolean).pop() ?? root;
14660
14842
  }
14661
- function projectHeader(label, color, width) {
14843
+ function projectHeader(label2, color, width) {
14662
14844
  const max = Math.max(1, width - 6);
14663
- const name = label.length > max ? label.slice(0, Math.max(1, max - 1)) + "\u2026" : label;
14845
+ const name = label2.length > max ? label2.slice(0, Math.max(1, max - 1)) + "\u2026" : label2;
14664
14846
  const h = `\u2500\u2500 ${name} \u2500\u2500`;
14665
14847
  return color ? colorize(h, "dim") : h;
14666
14848
  }
@@ -15942,10 +16124,10 @@ async function pollUntil(deadline, probe) {
15942
16124
  function sleep4(ms) {
15943
16125
  return new Promise((r) => setTimeout(r, ms));
15944
16126
  }
15945
- function parsePositiveInt3(raw, label) {
16127
+ function parsePositiveInt3(raw, label2) {
15946
16128
  const n = Number.parseInt(raw, 10);
15947
16129
  if (!Number.isFinite(n) || n <= 0 || String(n) !== raw.trim()) {
15948
- throw new Error(`${label} must be a positive integer (got: ${raw})`);
16130
+ throw new Error(`${label2} must be a positive integer (got: ${raw})`);
15949
16131
  }
15950
16132
  return n;
15951
16133
  }
@@ -15967,8 +16149,815 @@ function formatAge(iso) {
15967
16149
  return `${String(d)}d`;
15968
16150
  }
15969
16151
 
15970
- // src/commands/_run-queued-job.ts
16152
+ // src/commands/workspace.ts
16153
+ import { resolve as resolve7 } from "path";
15971
16154
  import { Command as Command51 } from "commander";
16155
+
16156
+ // src/lib/workspace-ref.ts
16157
+ var WorkspaceRefError = class extends Error {
16158
+ };
16159
+ function pickWorkspace(workspaces, opts) {
16160
+ const explicit = opts.ref ?? opts.env;
16161
+ if (explicit) {
16162
+ const byId = workspaces.find((w) => w.id === explicit);
16163
+ if (byId) return byId;
16164
+ const normalized = explicit.length > 1 && explicit.endsWith("/") ? explicit.slice(0, -1) : explicit;
16165
+ const byRoot = workspaces.find((w) => w.root === normalized);
16166
+ if (byRoot) return byRoot;
16167
+ const byName = workspaces.filter((w) => w.name === explicit);
16168
+ if (byName.length === 1) return byName[0];
16169
+ return null;
16170
+ }
16171
+ return findWorkspaceContaining(workspaces, opts.cwd);
16172
+ }
16173
+ async function resolveWorkspace(client, ref) {
16174
+ return (await resolveWorkspaceAndManager(client, ref)).workspace;
16175
+ }
16176
+ async function resolveWorkspaceAndManager(client, ref, opts = {}, deps = {}) {
16177
+ const workspaces = await client.listWorkspaces();
16178
+ const env = (deps.env ?? process.env)["AGENTBOX_WORKSPACE"];
16179
+ const cwd = deps.cwd ?? process.cwd();
16180
+ const explicit = ref ?? env;
16181
+ const picked = pickWorkspace(workspaces, {
16182
+ ...ref ? { ref } : {},
16183
+ ...env ? { env } : {},
16184
+ cwd
16185
+ });
16186
+ if (!picked && explicit) {
16187
+ throw new WorkspaceRefError(
16188
+ `no workspace matches "${explicit}". List them with \`agentbox workspace list\`.`
16189
+ );
16190
+ }
16191
+ let hint = !picked || opts.register ? (deps.detect ?? detectHostSession)() : void 0;
16192
+ if (hint && picked && explicit && findWorkspaceContaining(workspaces, hint.cwd)?.id !== picked.id) {
16193
+ hint = void 0;
16194
+ }
16195
+ if (hint) {
16196
+ const registered = await registerHostManager(client, hint);
16197
+ if (registered && !picked) {
16198
+ return { workspace: registered.workspace, managerId: registered.managerId };
16199
+ }
16200
+ if (registered && registered.workspace.id === picked?.id) {
16201
+ return { workspace: picked, managerId: registered.managerId };
16202
+ }
16203
+ }
16204
+ if (picked) return { workspace: picked };
16205
+ if (workspaces.length === 0) {
16206
+ throw new WorkspaceRefError(
16207
+ "no workspaces registered on this hub. Register one with `agentbox workspace add <path>`."
16208
+ );
16209
+ }
16210
+ throw new WorkspaceRefError(
16211
+ `no registered workspace contains ${cwd}. Pass --workspace <id|path>, or register this folder with \`agentbox workspace add\`.`
16212
+ );
16213
+ }
16214
+
16215
+ // src/lib/text-table.ts
16216
+ function renderTable2(headers, rows) {
16217
+ const widths = headers.map((h, i) => Math.max(h.length, ...rows.map((r) => (r[i] ?? "").length)));
16218
+ const pad3 = (s, w) => s + " ".repeat(Math.max(0, w - s.length));
16219
+ const line = (cells) => cells.map((c, i) => pad3(c, widths[i])).join(" ").trimEnd() + "\n";
16220
+ process.stdout.write(line(headers));
16221
+ process.stdout.write(widths.map((w) => "-".repeat(w)).join(" ") + "\n");
16222
+ for (const r of rows) process.stdout.write(line(r));
16223
+ }
16224
+
16225
+ // src/commands/workspace.ts
16226
+ async function mustResolve(client, ref) {
16227
+ try {
16228
+ return await resolveWorkspace(client, ref);
16229
+ } catch (err) {
16230
+ if (err instanceof WorkspaceRefError) {
16231
+ log2.error(err.message);
16232
+ process.exit(2);
16233
+ }
16234
+ throw err;
16235
+ }
16236
+ }
16237
+ function printWorkspace(ws) {
16238
+ log2.info(`${ws.name} (${ws.id})`);
16239
+ process.stdout.write(` root ${ws.root}
16240
+ `);
16241
+ process.stdout.write(` projects ${String(ws.projectIds.length)}
16242
+ `);
16243
+ if (ws.taskCounts) {
16244
+ process.stdout.write(
16245
+ ` tasks ${String(ws.taskCounts.open)} open, ${String(ws.taskCounts.done)} done
16246
+ `
16247
+ );
16248
+ }
16249
+ if (ws.managers) {
16250
+ process.stdout.write(
16251
+ ` managers ${String(ws.managers.running)} running, ${String(ws.managers.total)} total
16252
+ `
16253
+ );
16254
+ }
16255
+ }
16256
+ var addCommand = new Command51("add").description("Register a folder as a workspace and discover the projects in it").argument("[path]", "folder to register (default: the current directory)").option("--name <name>", "display name (default: the folder basename)").option("-j, --json", "print the workspace as JSON").action(async (path, opts) => {
16257
+ await withHubClient({ preferLocal: true }, async (client) => {
16258
+ const ws = await client.addWorkspace({
16259
+ path: resolve7(path ?? process.cwd()),
16260
+ ...opts.name ? { name: opts.name } : {}
16261
+ });
16262
+ if (opts.json) {
16263
+ process.stdout.write(JSON.stringify(ws, null, 2) + "\n");
16264
+ return;
16265
+ }
16266
+ printWorkspace(ws);
16267
+ if (ws.projectIds.length === 0) {
16268
+ log2.warn("no projects found in this folder (looked for .git or agentbox.yaml, depth 1)");
16269
+ }
16270
+ });
16271
+ });
16272
+ var listCommand3 = new Command51("list").alias("ls").description("List registered workspaces").option("-j, --json", "print the listing as JSON").action(async (opts) => {
16273
+ await withHubClient({ preferLocal: true }, async (client) => {
16274
+ const workspaces = await client.listWorkspaces();
16275
+ if (opts.json) {
16276
+ process.stdout.write(JSON.stringify(workspaces, null, 2) + "\n");
16277
+ return;
16278
+ }
16279
+ if (workspaces.length === 0) {
16280
+ log2.info("no workspaces yet. Register one with `agentbox workspace add <path>`.");
16281
+ return;
16282
+ }
16283
+ renderTable2(
16284
+ ["id", "name", "projects", "tasks", "managers", "root"],
16285
+ workspaces.map((w) => [
16286
+ w.id,
16287
+ w.name,
16288
+ String(w.projectIds.length),
16289
+ w.taskCounts ? `${String(w.taskCounts.open)}/${String(w.taskCounts.open + w.taskCounts.done)}` : "-",
16290
+ w.managers ? `${String(w.managers.running)}/${String(w.managers.total)}` : "-",
16291
+ w.root
16292
+ ])
16293
+ );
16294
+ });
16295
+ });
16296
+ var showCommand = new Command51("show").description("Show one workspace").argument("[workspace]", "workspace id or path (default: the one containing the cwd)").option("-j, --json", "print the workspace as JSON").action(async (ref, opts) => {
16297
+ await withHubClient({ preferLocal: true }, async (client) => {
16298
+ const ws = await mustResolve(client, ref);
16299
+ if (opts.json) {
16300
+ process.stdout.write(JSON.stringify(ws, null, 2) + "\n");
16301
+ return;
16302
+ }
16303
+ printWorkspace(ws);
16304
+ });
16305
+ });
16306
+ var rescanCommand = new Command51("rescan").description("Re-discover the projects in a workspace folder").argument("[workspace]", "workspace id or path (default: the one containing the cwd)").action(async (ref) => {
16307
+ await withHubClient({ preferLocal: true }, async (client) => {
16308
+ const ws = await mustResolve(client, ref);
16309
+ printWorkspace(await client.rescanWorkspace(ws.id));
16310
+ });
16311
+ });
16312
+ var renameCommand = new Command51("rename").description("Rename a workspace").argument("<name>", "new display name").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").action(async (name, opts) => {
16313
+ await withHubClient({ preferLocal: true }, async (client) => {
16314
+ const ws = await mustResolve(client, opts.workspace);
16315
+ printWorkspace(await client.renameWorkspace(ws.id, name));
16316
+ });
16317
+ });
16318
+ var removeCommand = new Command51("remove").alias("rm").description("Unregister a workspace (the folder and its boxes are untouched)").argument("[workspace]", "workspace id or path (default: the one containing the cwd)").option("-y, --yes", "skip the confirmation").option("--force", "remove it even while one of its managers reads as running").action(async (ref, opts) => {
16319
+ await withHubClient({ preferLocal: true }, async (client) => {
16320
+ const ws = await mustResolve(client, ref);
16321
+ if (!opts.yes) {
16322
+ const open = ws.taskCounts?.open ?? 0;
16323
+ const answer = await confirm({
16324
+ message: `Unregister ${ws.name}${open > 0 ? ` and drop its ${String(open)} open task(s)` : ""}?`,
16325
+ initialValue: false
16326
+ });
16327
+ if (isCancel3(answer) || !answer) {
16328
+ log2.info("cancelled.");
16329
+ return;
16330
+ }
16331
+ }
16332
+ await client.removeWorkspace(ws.id, { force: Boolean(opts.force) });
16333
+ log2.success(`unregistered ${ws.name}`);
16334
+ });
16335
+ });
16336
+ var workspaceCommand = new Command51("workspace").alias("ws").description("Workspaces: a folder grouping projects, with its own task list and manager").addCommand(addCommand).addCommand(listCommand3).addCommand(showCommand).addCommand(rescanCommand).addCommand(renameCommand).addCommand(removeCommand);
16337
+
16338
+ // src/commands/tasks.ts
16339
+ import { Command as Command52 } from "commander";
16340
+ var STATUSES = ["todo", "in_progress", "blocked", "done"];
16341
+ async function mustResolve2(client, ref) {
16342
+ return (await mustResolveWith(() => resolveWorkspace(client, ref).then((workspace) => ({ workspace })))).workspace;
16343
+ }
16344
+ async function mustResolveWith(fn) {
16345
+ try {
16346
+ return await fn();
16347
+ } catch (err) {
16348
+ if (err instanceof WorkspaceRefError) {
16349
+ log2.error(err.message);
16350
+ process.exit(2);
16351
+ }
16352
+ throw err;
16353
+ }
16354
+ }
16355
+ function mustStatus(value) {
16356
+ if (value === void 0) return void 0;
16357
+ if (!STATUSES.includes(value)) {
16358
+ log2.error(`unknown status "${value}" (expected ${STATUSES.join(", ")})`);
16359
+ process.exit(4);
16360
+ }
16361
+ return value;
16362
+ }
16363
+ function mustIds(raw) {
16364
+ try {
16365
+ return parseTaskIds(raw.join(","));
16366
+ } catch (err) {
16367
+ if (err instanceof TaskIdError) {
16368
+ log2.error(err.message);
16369
+ process.exit(4);
16370
+ }
16371
+ throw err;
16372
+ }
16373
+ }
16374
+ function whereOf(t) {
16375
+ if (t.boxId) return t.boxId;
16376
+ if (t.boxJobId) return `job:${t.boxJobId}`;
16377
+ return "backlog";
16378
+ }
16379
+ function taskRows(tasks) {
16380
+ return tasks.map((t) => [t.id, t.status, t.title, whereOf(t), t.projectId ?? "-"]);
16381
+ }
16382
+ function renderByBox(tasks) {
16383
+ const groups = /* @__PURE__ */ new Map();
16384
+ for (const t of tasks) {
16385
+ const key = whereOf(t);
16386
+ const list = groups.get(key);
16387
+ if (list) list.push(t);
16388
+ else groups.set(key, [t]);
16389
+ }
16390
+ const backlog = groups.get("backlog");
16391
+ groups.delete("backlog");
16392
+ for (const [box, list] of groups) {
16393
+ const done = list.filter((t) => t.status === "done").length;
16394
+ process.stdout.write(`
16395
+ ${box} (${String(done)} / ${String(list.length)})
16396
+ `);
16397
+ renderTable2(
16398
+ ["id", "status", "title", "project"],
16399
+ list.map((t) => [t.id, t.status, t.title, t.projectId ?? "-"])
16400
+ );
16401
+ }
16402
+ if (backlog?.length) {
16403
+ process.stdout.write("\nBacklog\n");
16404
+ renderTable2(
16405
+ ["id", "status", "title", "project"],
16406
+ backlog.map((t) => [t.id, t.status, t.title, t.projectId ?? "-"])
16407
+ );
16408
+ }
16409
+ }
16410
+ var addCommand2 = new Command52("add").description("Add a task to the workspace backlog").argument("<title...>", "what the task is").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-d, --description <text>", "longer description").option("-p, --project <id>", "scope the task to one project").option("--depends-on <ids>", "comma-separated task ids this one waits on").option("--box <id>", "assign it to a box right away").option("--by-manager", "record the manager agent as the author (default: human)").option("--no-manager", "do not attach the task to the current agent session").option("--note <text>", "why: recorded on the workspace timeline next to the task").option("-j, --json", "print the task as JSON").action(
16411
+ async (title, opts) => {
16412
+ await withHubClient({ preferLocal: true }, async (client) => {
16413
+ const { workspace: ws, managerId } = await mustResolveWith(
16414
+ () => resolveWorkspaceAndManager(client, opts.workspace, { register: opts.manager !== false })
16415
+ );
16416
+ const task = await client.addTask(ws.id, {
16417
+ ...managerId && opts.manager !== false ? { managerId } : {},
16418
+ title: title.join(" "),
16419
+ ...opts.description ? { description: opts.description } : {},
16420
+ ...opts.project ? { projectId: opts.project } : {},
16421
+ ...opts.dependsOn ? { dependsOn: mustIds([opts.dependsOn]) } : {},
16422
+ ...opts.box ? { boxId: opts.box } : {},
16423
+ ...opts.byManager ? { createdBy: "manager" } : {},
16424
+ ...opts.note ? { note: opts.note } : {}
16425
+ });
16426
+ if (opts.json) process.stdout.write(JSON.stringify(task, null, 2) + "\n");
16427
+ else log2.success(`${task.id} ${task.title}`);
16428
+ });
16429
+ }
16430
+ );
16431
+ var listCommand4 = new Command52("list").alias("ls").description("List the workspace tasks in priority order").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-p, --project <id>", "only tasks scoped to this project").option("--box <id>", "only tasks assigned to this box").option("--status <status>", `only this status (${STATUSES.join(" | ")})`).option("--manager <id>", "only tasks belonging to this manager").option("--mine", "only tasks belonging to the agent session running this command").option("-a, --all", "include done tasks (hidden by default)").option("--by-box", "group by box, the way the manager plans them").option("-j, --json", "print the listing as JSON").action(
16432
+ async (opts) => {
16433
+ await withHubClient({ preferLocal: true }, async (client) => {
16434
+ const ws = await mustResolve2(client, opts.workspace);
16435
+ const status = mustStatus(opts.status);
16436
+ let managerId = opts.manager;
16437
+ if (opts.mine) {
16438
+ const hint = detectHostSession();
16439
+ if (!hint) {
16440
+ log2.error("--mine needs to run inside a claude or codex session");
16441
+ process.exit(2);
16442
+ }
16443
+ const mine = (await client.listManagers()).find(
16444
+ (m) => m.agent === hint.agent && m.sessionId === hint.sessionId
16445
+ );
16446
+ if (!mine) {
16447
+ log2.info("this session is not registered as a manager yet, so it has no tasks.");
16448
+ return;
16449
+ }
16450
+ managerId = mine.id;
16451
+ }
16452
+ const all = await client.listTasks(ws.id, {
16453
+ ...managerId ? { managerId } : {},
16454
+ ...opts.project ? { projectId: opts.project } : {},
16455
+ ...opts.box ? { boxId: opts.box } : {},
16456
+ ...status ? { status } : {}
16457
+ });
16458
+ const tasks = opts.all || status === "done" ? all : all.filter((t) => t.status !== "done");
16459
+ if (opts.json) {
16460
+ process.stdout.write(JSON.stringify(tasks, null, 2) + "\n");
16461
+ return;
16462
+ }
16463
+ if (tasks.length === 0) {
16464
+ log2.info(opts.all ? "no tasks yet." : "no open tasks (-a to include done).");
16465
+ return;
16466
+ }
16467
+ if (opts.byBox) renderByBox(tasks);
16468
+ else renderTable2(["id", "status", "title", "where", "project"], taskRows(tasks));
16469
+ });
16470
+ }
16471
+ );
16472
+ var showCommand2 = new Command52("show").description("Show one task").argument("<id>", "task id (e.g. T-11)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-j, --json", "print the task as JSON").action(async (id, opts) => {
16473
+ await withHubClient({ preferLocal: true }, async (client) => {
16474
+ const ws = await mustResolve2(client, opts.workspace);
16475
+ const task = await client.getTask(ws.id, mustIds([id])[0]);
16476
+ if (opts.json) {
16477
+ process.stdout.write(JSON.stringify(task, null, 2) + "\n");
16478
+ return;
16479
+ }
16480
+ log2.info(`${task.id} ${task.title}`);
16481
+ process.stdout.write(` status ${task.status}
16482
+ `);
16483
+ process.stdout.write(` where ${whereOf(task)}
16484
+ `);
16485
+ process.stdout.write(` project ${task.projectId ?? "-"}
16486
+ `);
16487
+ if (task.managerId) process.stdout.write(` manager ${task.managerId}
16488
+ `);
16489
+ if (task.dependsOn?.length) process.stdout.write(` after ${task.dependsOn.join(", ")}
16490
+ `);
16491
+ if (task.description) process.stdout.write(`
16492
+ ${task.description}
16493
+ `);
16494
+ });
16495
+ });
16496
+ var updateCommand = new Command52("update").alias("edit").description("Update a task").argument("<id>", "task id (e.g. T-11)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--title <title>", "new title").option("-d, --description <text>", "new description").option("--status <status>", `new status (${STATUSES.join(" | ")})`).option("-p, --project <id>", "scope the task to this project").option("--no-project", "clear the project scope").option("--depends-on <ids>", 'comma-separated task ids this one waits on ("" clears)').option("--note <text>", "why: recorded on the workspace timeline next to the change").option("-j, --json", "print the task as JSON").action(
16497
+ async (id, opts) => {
16498
+ await withHubClient({ preferLocal: true }, async (client) => {
16499
+ const ws = await mustResolve2(client, opts.workspace);
16500
+ const status = mustStatus(opts.status);
16501
+ const clearProject = opts.project === false;
16502
+ const body = {
16503
+ ...opts.title ? { title: opts.title } : {},
16504
+ ...opts.description !== void 0 ? { description: opts.description } : {},
16505
+ ...status ? { status } : {},
16506
+ ...clearProject ? { projectId: null } : {},
16507
+ ...typeof opts.project === "string" ? { projectId: opts.project } : {},
16508
+ ...opts.dependsOn !== void 0 ? { dependsOn: opts.dependsOn === "" ? [] : mustIds([opts.dependsOn]) } : {}
16509
+ };
16510
+ if (Object.keys(body).length === 0) {
16511
+ log2.error(
16512
+ "nothing to update \u2014 pass at least one of --title, --description, --status, --project, --depends-on"
16513
+ );
16514
+ process.exit(4);
16515
+ }
16516
+ const task = await client.updateTask(ws.id, mustIds([id])[0], {
16517
+ ...body,
16518
+ ...opts.note ? { note: opts.note } : {}
16519
+ });
16520
+ if (opts.json) process.stdout.write(JSON.stringify(task, null, 2) + "\n");
16521
+ else log2.success(`${task.id} ${task.status} ${task.title}`);
16522
+ });
16523
+ }
16524
+ );
16525
+ var doneCommand = new Command52("done").description("Mark tasks finished").argument("<ids...>", "task ids (e.g. T-11 T-12)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").action(async (ids, opts) => {
16526
+ await withHubClient({ preferLocal: true }, async (client) => {
16527
+ const ws = await mustResolve2(client, opts.workspace);
16528
+ for (const id of mustIds(ids)) {
16529
+ const task = await client.completeTask(ws.id, id);
16530
+ log2.success(`${task.id} done`);
16531
+ }
16532
+ });
16533
+ });
16534
+ var assignCommand = new Command52("assign").description("Assign tasks to a box (or, with --box none, return them to the backlog)").argument("<ids...>", "task ids (e.g. T-11 T-12)").requiredOption("--box <id>", 'box id, or "none" to unassign').option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--note <text>", "why: recorded on the workspace timeline next to the assignment").action(async (ids, opts) => {
16535
+ await withHubClient({ preferLocal: true }, async (client) => {
16536
+ const ws = await mustResolve2(client, opts.workspace);
16537
+ const taskIds = mustIds(ids);
16538
+ if (opts.box === "none") {
16539
+ if (opts.note) log2.warn("--note is not recorded when unassigning");
16540
+ for (const id of taskIds) await client.unassignTask(ws.id, id);
16541
+ log2.success(`${taskIds.join(", ")} back in the backlog`);
16542
+ return;
16543
+ }
16544
+ await client.assignTasks(
16545
+ ws.id,
16546
+ taskIds,
16547
+ { boxId: opts.box },
16548
+ opts.note ? { note: opts.note } : {}
16549
+ );
16550
+ log2.success(`${taskIds.join(", ")} -> ${opts.box}`);
16551
+ });
16552
+ });
16553
+ var reorderCommand = new Command52("reorder").description("Set the whole priority order (list every task id)").argument("<ids...>", "every task id, in the order you want").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--note <text>", "why the order changed: recorded on the workspace timeline").action(async (ids, opts) => {
16554
+ await withHubClient({ preferLocal: true }, async (client) => {
16555
+ const ws = await mustResolve2(client, opts.workspace);
16556
+ const tasks = await client.reorderTasks(
16557
+ ws.id,
16558
+ mustIds(ids),
16559
+ opts.note ? { note: opts.note } : {}
16560
+ );
16561
+ renderTable2(["id", "status", "title", "where", "project"], taskRows(tasks));
16562
+ });
16563
+ });
16564
+ var removeCommand2 = new Command52("remove").alias("rm").description("Delete tasks").argument("<ids...>", "task ids (e.g. T-11 T-12)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-y, --yes", "skip the confirmation").action(async (ids, opts) => {
16565
+ await withHubClient({ preferLocal: true }, async (client) => {
16566
+ const ws = await mustResolve2(client, opts.workspace);
16567
+ const taskIds = mustIds(ids);
16568
+ if (!opts.yes) {
16569
+ const answer = await confirm({
16570
+ message: `Delete ${taskIds.join(", ")} from ${ws.name}?`,
16571
+ initialValue: false
16572
+ });
16573
+ if (isCancel3(answer) || !answer) {
16574
+ log2.info("cancelled.");
16575
+ return;
16576
+ }
16577
+ }
16578
+ for (const id of taskIds) await client.removeTask(ws.id, id);
16579
+ log2.success(`deleted ${taskIds.join(", ")}`);
16580
+ });
16581
+ });
16582
+ var tasksCommand = new Command52("tasks").alias("task").description("Workspace tasks: the units of work a manager groups into boxes").addCommand(addCommand2).addCommand(listCommand4).addCommand(showCommand2).addCommand(updateCommand).addCommand(doneCommand).addCommand(assignCommand).addCommand(reorderCommand).addCommand(removeCommand2);
16583
+
16584
+ // src/commands/manager.ts
16585
+ import { spawnSync as spawnSync5 } from "child_process";
16586
+ import { Command as Command53 } from "commander";
16587
+ function managerAgents() {
16588
+ return visibleAgentSpecs().filter((spec) => spec.caps?.surface !== "service").map((spec) => spec.id);
16589
+ }
16590
+ var ManagerRefError = class extends Error {
16591
+ };
16592
+ async function mustResolve3(client, ref) {
16593
+ try {
16594
+ return await resolveWorkspace(client, ref);
16595
+ } catch (err) {
16596
+ if (err instanceof WorkspaceRefError) {
16597
+ log2.error(err.message);
16598
+ process.exit(2);
16599
+ }
16600
+ throw err;
16601
+ }
16602
+ }
16603
+ function pickManager(managers, ref) {
16604
+ const exact = managers.find((m) => m.id === ref);
16605
+ if (exact) return exact;
16606
+ const byPrefix = ref.length >= 4 ? managers.filter((m) => m.id.startsWith(ref)) : [];
16607
+ if (byPrefix.length === 1) return byPrefix[0];
16608
+ if (byPrefix.length > 1) {
16609
+ throw new ManagerRefError(
16610
+ `"${ref}" matches ${String(byPrefix.length)} managers; use more of the id`
16611
+ );
16612
+ }
16613
+ throw new ManagerRefError(
16614
+ `no manager matches "${ref}". List them with \`agentbox manager list\`.`
16615
+ );
16616
+ }
16617
+ async function mustManager(client, ref) {
16618
+ try {
16619
+ return pickManager(await client.listManagers(), ref);
16620
+ } catch (err) {
16621
+ if (err instanceof ManagerRefError) {
16622
+ log2.error(err.message);
16623
+ process.exit(2);
16624
+ }
16625
+ throw err;
16626
+ }
16627
+ }
16628
+ async function currentManager(client) {
16629
+ const hint = detectHostSession();
16630
+ if (!hint) return void 0;
16631
+ return (await client.listManagers()).find(
16632
+ (m) => m.agent === hint.agent && m.sessionId === hint.sessionId
16633
+ );
16634
+ }
16635
+ function label(m) {
16636
+ return m.title ?? (m.sessionId ? m.sessionId.slice(0, 8) : "(new session)");
16637
+ }
16638
+ function printManager(m) {
16639
+ log2.info(
16640
+ `manager ${m.id}: ${m.status} (${m.agent}, ${m.kind === "hub" ? "hub-run" : "external"})`
16641
+ );
16642
+ process.stdout.write(` workspace ${m.workspaceName}
16643
+ `);
16644
+ process.stdout.write(` folder ${m.cwd}
16645
+ `);
16646
+ if (m.title) process.stdout.write(` title ${m.title}
16647
+ `);
16648
+ if (m.sessionId) process.stdout.write(` session ${m.sessionId}
16649
+ `);
16650
+ if (m.pid !== void 0)
16651
+ process.stdout.write(` pid ${String(m.pid)}${m.host ? ` on ${m.host}` : ""}
16652
+ `);
16653
+ process.stdout.write(` boxes ${String(m.boxIds.length + m.boxJobIds.length)}
16654
+ `);
16655
+ process.stdout.write(
16656
+ ` tasks ${String(m.taskCounts.open)} open, ${String(m.taskCounts.done)} done
16657
+ `
16658
+ );
16659
+ process.stdout.write(` seen ${ago(m.lastSeenAt)}
16660
+ `);
16661
+ if (m.status === "stopped" && m.lastExit !== void 0) {
16662
+ process.stdout.write(` exited ${String(m.lastExit)}
16663
+ `);
16664
+ }
16665
+ if (m.attachCommand) process.stdout.write(` attach ${m.attachCommand}
16666
+ `);
16667
+ }
16668
+ function renderManagers(managers) {
16669
+ renderTable2(
16670
+ ["id", "status", "kind", "agent", "workspace", "boxes", "tasks", "session"],
16671
+ managers.map((m) => [
16672
+ m.id,
16673
+ m.status,
16674
+ m.kind,
16675
+ m.agent,
16676
+ m.workspaceName,
16677
+ String(m.boxIds.length + m.boxJobIds.length),
16678
+ `${String(m.taskCounts.open)}/${String(m.taskCounts.open + m.taskCounts.done)}`,
16679
+ label(m)
16680
+ ])
16681
+ );
16682
+ }
16683
+ function ago(iso) {
16684
+ const mins = Math.max(0, Math.round((Date.now() - Date.parse(iso)) / 6e4));
16685
+ if (mins < 60) return `${String(mins)}m ago`;
16686
+ const hours = Math.round(mins / 60);
16687
+ return hours < 48 ? `${String(hours)}h ago` : `${String(Math.round(hours / 24))}d ago`;
16688
+ }
16689
+ async function hubIsLocal() {
16690
+ const { resolveHubTarget } = await import("./hub-OWUC4IGW.js");
16691
+ const target = await resolveHubTarget(void 0, { preferLocal: true });
16692
+ return target?.onThisMachine ?? true;
16693
+ }
16694
+ async function attachToSession(m, openIn) {
16695
+ if (!m.tmuxSession || !m.attachCommand) {
16696
+ log2.error(
16697
+ `manager ${m.id} runs in a terminal of its own, not in a session the hub can attach to.`
16698
+ );
16699
+ return false;
16700
+ }
16701
+ if (!await hubIsLocal()) {
16702
+ log2.error(
16703
+ `the manager runs on the hub's machine, not this one. Reach its session there with:
16704
+ ${m.attachCommand}`
16705
+ );
16706
+ return false;
16707
+ }
16708
+ const target = `=${m.tmuxSession}`;
16709
+ if (openIn && openIn !== "same") {
16710
+ const host = detectHostTerminal();
16711
+ if (host === "unknown") {
16712
+ log2.error("--attach-in needs a supported terminal (tmux, cmux, herdr, iTerm2).");
16713
+ return false;
16714
+ }
16715
+ const spawned = await spawnInNewTerminal({
16716
+ host,
16717
+ mode: openIn,
16718
+ argv: ["tmux", "attach-session", "-t", target],
16719
+ cwd: m.cwd,
16720
+ title: "manager"
16721
+ });
16722
+ if (!spawned.launched) {
16723
+ log2.error(spawned.error ?? `could not open a new ${host} ${openIn}`);
16724
+ return false;
16725
+ }
16726
+ log2.success(spawned.note || `attached in a new ${host} ${openIn}`);
16727
+ return true;
16728
+ }
16729
+ const inTmux = (process.env["TMUX"] ?? "").length > 0;
16730
+ const args = inTmux ? ["switch-client", "-t", target] : ["attach-session", "-t", target];
16731
+ const r = spawnSync5("tmux", args, { stdio: "inherit" });
16732
+ if (r.status !== 0) {
16733
+ log2.error(`could not attach: tmux ${args.join(" ")} exited ${String(r.status ?? -1)}`);
16734
+ return false;
16735
+ }
16736
+ return true;
16737
+ }
16738
+ function mustAttachIn(value) {
16739
+ if (value && !["split", "window", "tab"].includes(value)) {
16740
+ log2.error(`--attach-in must be one of split, window, tab`);
16741
+ process.exit(4);
16742
+ }
16743
+ return value;
16744
+ }
16745
+ var listCommand5 = new Command53("list").alias("ls").description("List manager sessions: running first, then the most recently seen").option("-w, --workspace <ref>", "only this workspace (id or path)").option("--running", "only running managers").option("-j, --json", "print the listing as JSON").action(async (opts) => {
16746
+ await withHubClient({ preferLocal: true }, async (client) => {
16747
+ const ws = opts.workspace ? await mustResolve3(client, opts.workspace) : void 0;
16748
+ const managers = await client.listManagers({
16749
+ ...ws ? { workspaceId: ws.id } : {},
16750
+ ...opts.running ? { status: "running" } : {}
16751
+ });
16752
+ if (opts.json) {
16753
+ process.stdout.write(JSON.stringify(managers, null, 2) + "\n");
16754
+ return;
16755
+ }
16756
+ if (managers.length === 0) {
16757
+ log2.info(
16758
+ "no managers yet. Run `agentbox create` or `agentbox tasks add` from a claude or codex session, or `agentbox manager start`."
16759
+ );
16760
+ return;
16761
+ }
16762
+ renderManagers(managers);
16763
+ });
16764
+ });
16765
+ var statusCommand2 = new Command53("status").description("Show a manager's state (default: this session's, else the workspace's)").argument("[id]", "manager id (or a unique prefix)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-j, --json", "print the state as JSON").action(async (id, opts) => {
16766
+ await withHubClient({ preferLocal: true }, async (client) => {
16767
+ const one = id ? await mustManager(client, id) : opts.workspace ? void 0 : await currentManager(client);
16768
+ if (one) {
16769
+ if (opts.json) process.stdout.write(JSON.stringify(one, null, 2) + "\n");
16770
+ else printManager(one);
16771
+ return;
16772
+ }
16773
+ const ws = await mustResolve3(client, opts.workspace);
16774
+ const managers = await client.listWorkspaceManagers(ws.id);
16775
+ if (opts.json) {
16776
+ process.stdout.write(JSON.stringify(managers, null, 2) + "\n");
16777
+ return;
16778
+ }
16779
+ if (managers.length === 0) {
16780
+ log2.info(`no managers in ${ws.name} yet.`);
16781
+ return;
16782
+ }
16783
+ renderManagers(managers);
16784
+ });
16785
+ });
16786
+ var startCommand = new Command53("start").description("Start a manager agent in the workspace folder, in a tmux session the hub runs").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--agent <agent>", `which agent to run (${managerAgents().join(" | ")})`, "claude").option(
16787
+ "--session <id>",
16788
+ `resume this agent session (${RESUMABLE_MANAGER_AGENTS.join(" | ")} only)`
16789
+ ).option("--new", "start a fresh session without asking which to resume").option("--restart", "with --session: restart the hub-run manager holding it if it is running").option("--attach", "attach to the session once it is up").action(
16790
+ async (opts) => {
16791
+ const agents = managerAgents();
16792
+ if (!agents.includes(opts.agent)) {
16793
+ log2.error(`unknown agent "${opts.agent}" (expected ${agents.join(", ")})`);
16794
+ process.exit(4);
16795
+ }
16796
+ await withHubClient({ preferLocal: true }, async (client) => {
16797
+ const ws = await mustResolve3(client, opts.workspace);
16798
+ let sessionId = opts.session;
16799
+ if (!sessionId && !opts.new && process.stdout.isTTY) {
16800
+ const found = await client.listManagerSessions(ws.id, opts.agent).catch(() => null);
16801
+ if (found?.supported && found.sessions.length > 0) {
16802
+ const picked = await select({
16803
+ message: `Resume a ${opts.agent} session in ${ws.name}?`,
16804
+ options: [
16805
+ { value: "", label: "New session" },
16806
+ ...found.sessions.map((s) => ({
16807
+ value: s.id,
16808
+ label: s.title,
16809
+ hint: `${s.id.slice(0, 8)} \xB7 ${ago(s.updatedAt)}`
16810
+ }))
16811
+ ]
16812
+ });
16813
+ if (isCancel3(picked)) {
16814
+ log2.info("cancelled.");
16815
+ return;
16816
+ }
16817
+ if (picked) sessionId = picked;
16818
+ }
16819
+ }
16820
+ const manager = await client.startManager(ws.id, {
16821
+ agent: opts.agent,
16822
+ ...sessionId ? { sessionId } : {},
16823
+ ...opts.restart ? { restart: true } : {}
16824
+ });
16825
+ printManager(manager);
16826
+ if (opts.attach && !await attachToSession(manager)) process.exit(1);
16827
+ });
16828
+ }
16829
+ );
16830
+ var resumeCommand = new Command53("resume").description("Reopen a stopped manager's session in a tmux session the hub runs").argument("<id>", "manager id (or a unique prefix)").option("--attach", "attach to the session once it is up").option("--attach-in <mode>", "with --attach: open in a new split | window | tab").action(async (id, opts) => {
16831
+ const mode = mustAttachIn(opts.attachIn);
16832
+ await withHubClient({ preferLocal: true }, async (client) => {
16833
+ const target = await mustManager(client, id);
16834
+ const manager = await client.resumeManager(target.id);
16835
+ printManager(manager);
16836
+ if (opts.attach && !await attachToSession(manager, mode)) process.exit(1);
16837
+ });
16838
+ });
16839
+ var stopCommand = new Command53("stop").description("Stop a hub-run manager (a session in your own terminal is yours to exit)").argument("<id>", "manager id (or a unique prefix)").action(async (id) => {
16840
+ await withHubClient({ preferLocal: true }, async (client) => {
16841
+ const target = await mustManager(client, id);
16842
+ printManager(await client.stopManager(target.id));
16843
+ });
16844
+ });
16845
+ var attachCommand2 = new Command53("attach").description("Attach to a hub-run manager's terminal session").argument("[id]", "manager id (default: the one running hub-run manager in the workspace)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--attach-in <mode>", "open in a new split | window | tab instead of this terminal").action(async (id, opts) => {
16846
+ const mode = mustAttachIn(opts.attachIn);
16847
+ await withHubClient({ preferLocal: true }, async (client) => {
16848
+ let manager;
16849
+ if (id) manager = await mustManager(client, id);
16850
+ else {
16851
+ const ws = await mustResolve3(client, opts.workspace);
16852
+ const running = (await client.listWorkspaceManagers(ws.id)).filter(
16853
+ (m) => m.kind === "hub" && m.status === "running"
16854
+ );
16855
+ if (running.length !== 1) {
16856
+ log2.error(
16857
+ running.length === 0 ? `no hub-run manager is running in ${ws.name}. Start one with \`agentbox manager start\`, or resume one with \`agentbox manager resume <id>\`.` : `${String(running.length)} hub-run managers are running in ${ws.name}; pass an id (\`agentbox manager list\`).`
16858
+ );
16859
+ process.exit(2);
16860
+ }
16861
+ manager = running[0];
16862
+ }
16863
+ if (manager.background && !manager.attachCommand) {
16864
+ manager = await client.attachManager(manager.id);
16865
+ }
16866
+ if (manager.kind === "external" && manager.status === "running" && !manager.attachCommand) {
16867
+ log2.info(
16868
+ `manager ${manager.id} is running in your terminal${manager.pid !== void 0 ? ` (pid ${String(manager.pid)})` : ""}; switch to that window.`
16869
+ );
16870
+ process.exit(2);
16871
+ }
16872
+ if (manager.status !== "running") {
16873
+ log2.error(
16874
+ `manager ${manager.id} is not running. Resume it with \`agentbox manager resume ${manager.id} --attach\`.`
16875
+ );
16876
+ process.exit(2);
16877
+ }
16878
+ if (!await attachToSession(manager, mode)) process.exit(1);
16879
+ });
16880
+ });
16881
+ var sessionsCommand = new Command53("sessions").description("List agent sessions in the workspace folder that a manager could resume").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--agent <agent>", "which agent to list sessions for", "claude").option("-j, --json", "print the listing as JSON").action(async (opts) => {
16882
+ await withHubClient({ preferLocal: true }, async (client) => {
16883
+ const ws = await mustResolve3(client, opts.workspace);
16884
+ const found = await client.listManagerSessions(ws.id, opts.agent);
16885
+ if (opts.json) {
16886
+ process.stdout.write(JSON.stringify(found, null, 2) + "\n");
16887
+ return;
16888
+ }
16889
+ if (!found.supported) {
16890
+ log2.info(`resuming a ${found.agent} session is not supported yet.`);
16891
+ return;
16892
+ }
16893
+ if (found.sessions.length === 0) {
16894
+ log2.info(`no ${found.agent} sessions in ${ws.root}.`);
16895
+ return;
16896
+ }
16897
+ renderTable2(
16898
+ ["id", "title", "updated"],
16899
+ found.sessions.map((s) => [s.id, s.title, ago(s.updatedAt)])
16900
+ );
16901
+ });
16902
+ });
16903
+ var noteCommand = new Command53("note").description(
16904
+ "Record why the manager did something on the workspace timeline, at this session's turn"
16905
+ ).argument("<text>", "the note").argument("[id]", "manager id or unique prefix (default: the session running this command)").option("--replan", "mark it as a re-plan: reordering, holding or splitting work").option("--plan", "mark it as the plan itself").option("-j, --json", "print the recorded event as JSON").action(
16906
+ async (text3, id, opts) => {
16907
+ if (opts.replan && opts.plan) {
16908
+ log2.error("pass --replan or --plan, not both");
16909
+ process.exit(4);
16910
+ }
16911
+ await withHubClient({ preferLocal: true }, async (client) => {
16912
+ let managerId;
16913
+ if (id) managerId = (await mustManager(client, id)).id;
16914
+ else {
16915
+ const hint = detectHostSession();
16916
+ if (!hint) {
16917
+ log2.error("run inside the manager session, or pass a manager id");
16918
+ process.exit(2);
16919
+ }
16920
+ const registered = await registerHostManager(client, hint);
16921
+ if (!registered) process.exit(1);
16922
+ managerId = registered.managerId;
16923
+ }
16924
+ const event = await client.addManagerNote(managerId, {
16925
+ text: text3,
16926
+ ...opts.replan ? { kind: "replan" } : opts.plan ? { kind: "plan" } : {}
16927
+ });
16928
+ if (opts.json) {
16929
+ process.stdout.write(JSON.stringify(event, null, 2) + "\n");
16930
+ return;
16931
+ }
16932
+ log2.success(
16933
+ `noted on ${managerId}${event.turn !== void 0 ? ` at turn ${String(event.turn)}` : ""}`
16934
+ );
16935
+ });
16936
+ }
16937
+ );
16938
+ var forgetCommand = new Command53("forget").alias("rm").description("Forget a stopped manager (its boxes and tasks are untouched)").argument("<id>", "manager id (or a unique prefix)").option("-y, --yes", "skip the confirmation").option("--force", "forget it even if it reads as running (its process is left alone)").action(async (id, opts) => {
16939
+ await withHubClient({ preferLocal: true }, async (client) => {
16940
+ const target = await mustManager(client, id);
16941
+ if (!opts.yes) {
16942
+ const answer = await confirm({
16943
+ message: `Forget manager ${target.id} (${target.agent} \xB7 ${label(target)})?`,
16944
+ initialValue: false
16945
+ });
16946
+ if (isCancel3(answer) || !answer) {
16947
+ log2.info("cancelled.");
16948
+ return;
16949
+ }
16950
+ }
16951
+ await client.removeManager(target.id, { force: Boolean(opts.force) });
16952
+ log2.success(`forgot ${target.id}`);
16953
+ });
16954
+ });
16955
+ var managerCommand = new Command53("manager").alias("managers").description(
16956
+ "Agent sessions that create and watch boxes: detected from your terminal, or run by the hub"
16957
+ ).addCommand(listCommand5, { isDefault: true }).addCommand(statusCommand2).addCommand(startCommand).addCommand(resumeCommand).addCommand(stopCommand).addCommand(attachCommand2).addCommand(sessionsCommand).addCommand(noteCommand).addCommand(forgetCommand);
16958
+
16959
+ // src/commands/_run-queued-job.ts
16960
+ import { Command as Command54 } from "commander";
15972
16961
  import { stat as stat3 } from "fs/promises";
15973
16962
  import { join as join25 } from "path";
15974
16963
 
@@ -16106,7 +17095,7 @@ async function ensureClaudeLoginFresh(args) {
16106
17095
  for (const sig of ["SIGTERM", "SIGINT"]) process.removeListener(sig, onSignal);
16107
17096
  }
16108
17097
  }
16109
- var runQueuedJobCommand = new Command51("_run-queued-job").description("internal: run a queued background agent job (do not invoke directly)").argument("<id>", "queue job id (from ~/.agentbox/queue/<id>.json)").action(async (id) => {
17098
+ var runQueuedJobCommand = new Command54("_run-queued-job").description("internal: run a queued background agent job (do not invoke directly)").argument("<id>", "queue job id (from ~/.agentbox/queue/<id>.json)").action(async (id) => {
16110
17099
  const log44 = openCommandLog(`queue-${id}`);
16111
17100
  log44.write(`worker pid=${String(process.pid)} starting for job ${id}`);
16112
17101
  let job = null;
@@ -16135,6 +17124,7 @@ var runQueuedJobCommand = new Command51("_run-queued-job").description("internal
16135
17124
  login: persisted?.login
16136
17125
  };
16137
17126
  await writeJob(done);
17127
+ await recordCreateJobTimeline(done);
16138
17128
  log44.write(`done`);
16139
17129
  log44.close();
16140
17130
  process.exit(0);
@@ -16153,6 +17143,7 @@ var runQueuedJobCommand = new Command51("_run-queued-job").description("internal
16153
17143
  login: persisted?.login
16154
17144
  };
16155
17145
  await writeJob(failed);
17146
+ await recordCreateJobTimeline(failed);
16156
17147
  } catch {
16157
17148
  }
16158
17149
  }
@@ -16526,8 +17517,8 @@ function buildOverridesFromJob(job) {
16526
17517
  }
16527
17518
 
16528
17519
  // src/commands/_run-queued-prepare.ts
16529
- import { Command as Command52 } from "commander";
16530
- var runQueuedPrepareCommand = new Command52("_run-queued-prepare").description("internal: run a queued provider image-bake job (do not invoke directly)").argument("<id>", "queue job id (from ~/.agentbox/queue/<id>.json)").action(async (id) => {
17520
+ import { Command as Command55 } from "commander";
17521
+ var runQueuedPrepareCommand = new Command55("_run-queued-prepare").description("internal: run a queued provider image-bake job (do not invoke directly)").argument("<id>", "queue job id (from ~/.agentbox/queue/<id>.json)").action(async (id) => {
16531
17522
  const log44 = openCommandLog(`queue-${id}`);
16532
17523
  log44.write(`prepare worker pid=${String(process.pid)} starting for job ${id}`);
16533
17524
  let job = null;
@@ -16637,8 +17628,8 @@ async function runPrepareJob(job, log44) {
16637
17628
  }
16638
17629
 
16639
17630
  // src/commands/_claude-login-worker.ts
16640
- import { Command as Command53 } from "commander";
16641
- var claudeLoginWorkerCommand = new Command53("_claude-login-worker").description(
17631
+ import { Command as Command56 } from "commander";
17632
+ var claudeLoginWorkerCommand = new Command56("_claude-login-worker").description(
16642
17633
  "internal: drive `claude auth login` under a pty for headless login (do not invoke directly)"
16643
17634
  ).argument("<id>", "login session id (~/.agentbox/claude-login/<id>/)").action(async (id) => {
16644
17635
  const log44 = openCommandLog(`claude-login-${id}`);
@@ -16681,7 +17672,7 @@ var claudeLoginWorkerCommand = new Command53("_claude-login-worker").description
16681
17672
  });
16682
17673
 
16683
17674
  // src/commands/_post-update-refresh.ts
16684
- import { Command as Command54 } from "commander";
17675
+ import { Command as Command57 } from "commander";
16685
17676
 
16686
17677
  // src/lib/post-update-refresh.ts
16687
17678
  function cachedTraySha(state) {
@@ -16744,7 +17735,7 @@ async function runPostUpdateRefresh(opts = {}) {
16744
17735
  }
16745
17736
  if (!opts.skipPlugins) {
16746
17737
  try {
16747
- const { runPluginUpdates } = await import("./plugin-update-2ACFHFUI.js");
17738
+ const { runPluginUpdates } = await import("./plugin-update-LI3QDA4K.js");
16748
17739
  const report2 = await runPluginUpdates({ log: (line) => say(`plugins: ${line}`) });
16749
17740
  for (const problem of report2.problems) log2.warn(`plugins: ${problem}`);
16750
17741
  } catch (err) {
@@ -16760,7 +17751,7 @@ async function runPostUpdateRefresh(opts = {}) {
16760
17751
  warn("box image check", err);
16761
17752
  }
16762
17753
  try {
16763
- const { adoptPreparedBases } = await import("./prepared-custody-E7CSZJ6V.js");
17754
+ const { adoptPreparedBases } = await import("./prepared-custody-WSHX6XTQ.js");
16764
17755
  const res = await adoptPreparedBases();
16765
17756
  if (res.adopted.length > 0) {
16766
17757
  say(`adopted the control box's ${res.adopted.join(", ")} base bake(s) \u2014 no re-bake needed`);
@@ -16814,7 +17805,7 @@ async function runPostUpdateRefresh(opts = {}) {
16814
17805
  }
16815
17806
 
16816
17807
  // src/commands/_post-update-refresh.ts
16817
- var postUpdateRefreshCommand = new Command54("_post-update-refresh").description("internal: refresh skills, box image, relay, and tray after a package update").option("--skip-skills", "skip refreshing the host skill files").option("--skip-plugins", "skip updating registered provider plugin packages").action(async (opts) => {
17808
+ var postUpdateRefreshCommand = new Command57("_post-update-refresh").description("internal: refresh skills, box image, relay, and tray after a package update").option("--skip-skills", "skip refreshing the host skill files").option("--skip-plugins", "skip updating registered provider plugin packages").action(async (opts) => {
16818
17809
  try {
16819
17810
  await runPostUpdateRefresh({
16820
17811
  skipSkills: opts.skipSkills,
@@ -16826,8 +17817,8 @@ var postUpdateRefreshCommand = new Command54("_post-update-refresh").description
16826
17817
  });
16827
17818
 
16828
17819
  // src/commands/herdr.ts
16829
- import { spawnSync as spawnSync5 } from "child_process";
16830
- import { Command as Command55 } from "commander";
17820
+ import { spawnSync as spawnSync6 } from "child_process";
17821
+ import { Command as Command58 } from "commander";
16831
17822
  function parseHerdrLink(uri) {
16832
17823
  if (!uri) return null;
16833
17824
  const m = uri.match(/^agentbox:\/\/([^/]+)\/(.+)$/);
@@ -16853,7 +17844,7 @@ function herdrContextCwd(env = process.env) {
16853
17844
  }
16854
17845
  return process.cwd();
16855
17846
  }
16856
- var newCommand = new Command55("new").description("Open a new box session in a fresh Herdr tab (used by the plugin shortcut)").option("--agent <agent>", "agent to launch (claude|codex|opencode)", "claude").action(async (opts) => {
17847
+ var newCommand = new Command58("new").description("Open a new box session in a fresh Herdr tab (used by the plugin shortcut)").option("--agent <agent>", "agent to launch (claude|codex|opencode)", "claude").action(async (opts) => {
16857
17848
  const agent = opts.agent ?? "claude";
16858
17849
  const cwd = herdrContextCwd();
16859
17850
  const r = await spawnInNewTerminal({
@@ -16866,7 +17857,7 @@ var newCommand = new Command55("new").description("Open a new box session in a f
16866
17857
  if (r.launched) process.stdout.write(r.note + "\n");
16867
17858
  else if (r.error) process.stderr.write(r.error + "\n");
16868
17859
  });
16869
- var linkCommand = new Command55("link").description("Handle a Ctrl+click on an agentbox:// link (used by the plugin link handler)").argument("[uri]", "the clicked URI; defaults to $HERDR_PLUGIN_CLICKED_URL").action(async (uriArg) => {
17860
+ var linkCommand = new Command58("link").description("Handle a Ctrl+click on an agentbox:// link (used by the plugin link handler)").argument("[uri]", "the clicked URI; defaults to $HERDR_PLUGIN_CLICKED_URL").action(async (uriArg) => {
16870
17861
  const link = parseHerdrLink(uriArg ?? process.env["HERDR_PLUGIN_CLICKED_URL"]);
16871
17862
  if (!link) return;
16872
17863
  if (link.verb !== "web") return;
@@ -16882,7 +17873,7 @@ var linkCommand = new Command55("link").description("Handle a Ctrl+click on an a
16882
17873
  }
16883
17874
  const webUrl = box.endpoints.endpoints.find((e) => e.kind === "web" && e.url)?.url;
16884
17875
  if (webUrl) {
16885
- spawnSync5(hostOpenCommand(), [webUrl], { stdio: "ignore" });
17876
+ spawnSync6(hostOpenCommand(), [webUrl], { stdio: "ignore" });
16886
17877
  return;
16887
17878
  }
16888
17879
  if (box.state !== "running") {
@@ -16899,14 +17890,14 @@ var linkCommand = new Command55("link").description("Handle a Ctrl+click on an a
16899
17890
  sound: "request"
16900
17891
  });
16901
17892
  });
16902
- var herdrCommand = new Command55("herdr").description("Internal: Herdr plugin entry points (see `agentbox install herdr`)").addCommand(newCommand).addCommand(linkCommand);
17893
+ var herdrCommand = new Command58("herdr").description("Internal: Herdr plugin entry points (see `agentbox install herdr`)").addCommand(newCommand).addCommand(linkCommand);
16903
17894
 
16904
17895
  // src/commands/recover.ts
16905
17896
  import { homedir as homedir18 } from "os";
16906
17897
  import { join as join26 } from "path";
16907
17898
  import { access } from "fs/promises";
16908
17899
  import { isCancel as isCancel8, log as log34, select as select3 } from "@clack/prompts";
16909
- import { Command as Command56 } from "commander";
17900
+ import { Command as Command59 } from "commander";
16910
17901
  var CUSTODY_PROBE_MS = 1500;
16911
17902
  var CUSTODY_PULL_MS = 1e4;
16912
17903
  function hetznerKeyPath(sandboxId) {
@@ -17079,7 +18070,7 @@ async function adoptUnknownBox(provider, ref) {
17079
18070
  );
17080
18071
  return record;
17081
18072
  }
17082
- var recoverCommand = new Command56("recover").description(
18073
+ var recoverCommand = new Command59("recover").description(
17083
18074
  "Reconnect to an already-running box without power-cycling it: ensure the relay is up, re-open the host transport (Hetzner SSH tunnel) + portless aliases, re-register with the relay, relaunch the agent it was running, and attach. With --all, recover every box in state. With --provider <p> --adopt [ref], first rebuild local state for a box created elsewhere."
17084
18075
  ).argument(
17085
18076
  "[box]",
@@ -17140,9 +18131,9 @@ var recoverCommand = new Command56("recover").description(
17140
18131
  });
17141
18132
 
17142
18133
  // src/commands/screen.ts
17143
- import { spawnSync as spawnSync6 } from "child_process";
18134
+ import { spawnSync as spawnSync7 } from "child_process";
17144
18135
  import { log as log35 } from "@clack/prompts";
17145
- import { Command as Command57 } from "commander";
18136
+ import { Command as Command60 } from "commander";
17146
18137
  var SIGNED_URL_TTL_MIN = 1;
17147
18138
  var SIGNED_URL_TTL_MAX = 86400;
17148
18139
  function parseTtlOrExit(raw) {
@@ -17211,14 +18202,14 @@ function emitUrl(url, opts) {
17211
18202
  `);
17212
18203
  return;
17213
18204
  }
17214
- const opened = spawnSync6(hostOpenCommand(), [url], { stdio: "inherit" });
18205
+ const opened = spawnSync7(hostOpenCommand(), [url], { stdio: "inherit" });
17215
18206
  if (opened.status !== 0) {
17216
18207
  throw new Error(`open ${url} failed (exit ${String(opened.status ?? "n/a")})`);
17217
18208
  }
17218
18209
  process.stdout.write(`opened ${url}
17219
18210
  `);
17220
18211
  }
17221
- var screenCommand = new Command57("screen").description("Open a box's VNC (noVNC) viewer in the browser (auto-unpause/start)").argument(
18212
+ var screenCommand = new Command60("screen").description("Open a box's VNC (noVNC) viewer in the browser (auto-unpause/start)").argument(
17222
18213
  "[box]",
17223
18214
  "box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
17224
18215
  ).option("--print", "print the URL to stdout instead of launching the browser").option("--loopback", "docker only: use the 127.0.0.1 URL instead of the OrbStack .orb.local URL").option("--ttl <seconds>", "cloud only: signed-URL expiry in seconds (default 3600, max 86400)").action(async (idOrName, opts) => {
@@ -17258,7 +18249,7 @@ var screenCommand = new Command57("screen").description("Open a box's VNC (noVNC
17258
18249
 
17259
18250
  // src/commands/services.ts
17260
18251
  import { log as log36 } from "@clack/prompts";
17261
- import { Command as Command58 } from "commander";
18252
+ import { Command as Command61 } from "commander";
17262
18253
  function toStatusRows(services) {
17263
18254
  return services.map((s) => ({
17264
18255
  name: s.name,
@@ -17276,7 +18267,7 @@ function toStatusRows(services) {
17276
18267
  probed: s.probed ?? false
17277
18268
  }));
17278
18269
  }
17279
- var listCommand3 = new Command58("list").description("List the box's services with their live state (running / ready / crashed / \u2026)").argument("[box]", "box ref (default: the only box in this project)").option("--json", "print the raw status (services, tasks, ports) as JSON").action(async (idOrName, opts) => {
18270
+ var listCommand6 = new Command61("list").description("List the box's services with their live state (running / ready / crashed / \u2026)").argument("[box]", "box ref (default: the only box in this project)").option("--json", "print the raw status (services, tasks, ports) as JSON").action(async (idOrName, opts) => {
17280
18271
  try {
17281
18272
  const box = await resolveBoxOrExit(idOrName);
17282
18273
  const r = await withOwningHub(box, async (client) => {
@@ -17303,7 +18294,7 @@ var listCommand3 = new Command58("list").description("List the box's services wi
17303
18294
  handleLifecycleError(err);
17304
18295
  }
17305
18296
  });
17306
- var restartCommand = new Command58("restart").description("Restart one service, or every service when no name is given").argument("[box]", "box ref (default: the only box in this project)").argument("[name]", "service to restart (omit to restart all)").action(async (idOrName, name) => {
18297
+ var restartCommand = new Command61("restart").description("Restart one service, or every service when no name is given").argument("[box]", "box ref (default: the only box in this project)").argument("[name]", "service to restart (omit to restart all)").action(async (idOrName, name) => {
17307
18298
  try {
17308
18299
  const { box, shifted } = await resolveBoxOrShift(idOrName);
17309
18300
  const serviceName = shifted ? idOrName : name;
@@ -17318,12 +18309,12 @@ var restartCommand = new Command58("restart").description("Restart one service,
17318
18309
  handleLifecycleError(err);
17319
18310
  }
17320
18311
  });
17321
- var servicesCommand = new Command58("services").description("List and restart a box's agentbox.yaml services").addCommand(listCommand3, { isDefault: true }).addCommand(restartCommand);
18312
+ var servicesCommand = new Command61("services").description("List and restart a box's agentbox.yaml services").addCommand(listCommand6, { isDefault: true }).addCommand(restartCommand);
17322
18313
 
17323
18314
  // src/commands/shell.ts
17324
- import { spawnSync as spawnSync7 } from "child_process";
18315
+ import { spawnSync as spawnSync8 } from "child_process";
17325
18316
  import { log as log38, spinner as spinner5 } from "@clack/prompts";
17326
- import { Command as Command59 } from "commander";
18317
+ import { Command as Command62 } from "commander";
17327
18318
 
17328
18319
  // src/commands/_provider-guard.ts
17329
18320
  import { log as log37 } from "@clack/prompts";
@@ -17351,8 +18342,8 @@ function reattachRef2(r) {
17351
18342
  return typeof r.projectIndex === "number" ? String(r.projectIndex) : r.name;
17352
18343
  }
17353
18344
  function detachSuffix(sessionName) {
17354
- const label = shellLabel(sessionName);
17355
- return label === DEFAULT_SHELL_SESSION ? "" : ` -n ${label}`;
18345
+ const label2 = shellLabel(sessionName);
18346
+ return label2 === DEFAULT_SHELL_SESSION ? "" : ` -n ${label2}`;
17356
18347
  }
17357
18348
  function oneShotBashArgv(cmd, login) {
17358
18349
  const flag = login ? "-lc" : "-c";
@@ -17408,10 +18399,10 @@ async function resolveCloudShellSessionName(box, provider, user, opts) {
17408
18399
  return allocateShellSessionName(existing);
17409
18400
  }
17410
18401
  async function startOrAttachShell(box, cfg) {
17411
- const label = shellLabel(cfg.sessionName);
18402
+ const label2 = shellLabel(cfg.sessionName);
17412
18403
  const info = await shellSessionInfo(box.container, cfg.sessionName, cfg.user);
17413
18404
  if (info.running) {
17414
- log38.info(`reattaching to shell "${label}" \u2014 Control+a d to detach`);
18405
+ log38.info(`reattaching to shell "${label2}" \u2014 Control+a d to detach`);
17415
18406
  } else {
17416
18407
  await startShellSession({
17417
18408
  container: box.container,
@@ -17419,7 +18410,7 @@ async function startOrAttachShell(box, cfg) {
17419
18410
  user: cfg.user,
17420
18411
  login: cfg.login
17421
18412
  });
17422
- log38.info(`shell "${label}" \u2014 Control+a d to detach, leaves it running`);
18413
+ log38.info(`shell "${label2}" \u2014 Control+a d to detach, leaves it running`);
17423
18414
  }
17424
18415
  const code = await runWrappedAttach({
17425
18416
  container: box.container,
@@ -17488,7 +18479,7 @@ async function runSshConfig(box, opts) {
17488
18479
  ];
17489
18480
  process.stdout.write(lines.join("\n") + "\n");
17490
18481
  }
17491
- var shellCommand = new Command59("shell").description(
18482
+ var shellCommand = new Command62("shell").description(
17492
18483
  "Open an interactive shell in a box, in a detachable tmux session (auto-unpause/start)"
17493
18484
  ).argument(
17494
18485
  "[box]",
@@ -17580,7 +18571,7 @@ var shellCommand = new Command59("shell").description(
17580
18571
  ...bashInvocation
17581
18572
  ];
17582
18573
  if (!isInteractive || effectiveCmd.length > 0) {
17583
- const child = spawnSync7("docker", plainArgv, { stdio: "inherit" });
18574
+ const child = spawnSync8("docker", plainArgv, { stdio: "inherit" });
17584
18575
  process.exit(child.status ?? 0);
17585
18576
  }
17586
18577
  if (tmux) {
@@ -17601,7 +18592,7 @@ var shellCommand = new Command59("shell").description(
17601
18592
  handleLifecycleError(err);
17602
18593
  }
17603
18594
  });
17604
- var shellAttachCommand = new Command59("attach").description(
18595
+ var shellAttachCommand = new Command62("attach").description(
17605
18596
  "Attach to a shell tmux session in a box, starting one if none is running (auto-unpause/start)"
17606
18597
  ).argument(
17607
18598
  "[box]",
@@ -17637,7 +18628,7 @@ function renderShellTable(sessions) {
17637
18628
  for (const r of rows) process.stdout.write(`${fmt(r)}
17638
18629
  `);
17639
18630
  }
17640
- var shellLsCommand = new Command59("ls").description("List the shell tmux sessions running in a box").argument(
18631
+ var shellLsCommand = new Command62("ls").description("List the shell tmux sessions running in a box").argument(
17641
18632
  "[box]",
17642
18633
  "box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
17643
18634
  ).action(async (idOrName) => {
@@ -17660,7 +18651,7 @@ var shellLsCommand = new Command59("ls").description("List the shell tmux sessio
17660
18651
  handleLifecycleError(err);
17661
18652
  }
17662
18653
  });
17663
- var shellKillCommand = new Command59("kill").description("Kill a shell tmux session in a box (the shell and anything running in it)").argument(
18654
+ var shellKillCommand = new Command62("kill").description("Kill a shell tmux session in a box (the shell and anything running in it)").argument(
17664
18655
  "[box]",
17665
18656
  "box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
17666
18657
  ).option("-n, --name <label>", "shell label to kill (default: the box default shell)").option("--all", "kill every shell session in the box").action(async function(idOrName) {
@@ -17700,8 +18691,8 @@ shellCommand.addCommand(shellLsCommand);
17700
18691
  shellCommand.addCommand(shellKillCommand);
17701
18692
 
17702
18693
  // src/commands/start.ts
17703
- import { Command as Command60 } from "commander";
17704
- var startCommand = new Command60("start").description(
18694
+ import { Command as Command63 } from "commander";
18695
+ var startCommand2 = new Command63("start").description(
17705
18696
  "Start a stopped box. Docker: docker start + relaunch ctl/dockerd/vnc daemons. Cloud: backend.start, then re-resolve preview URLs/tokens, re-launch in-sandbox ctl/dockerd daemons, and re-register with the host relay (so the CloudBoxPoller resumes)."
17706
18697
  ).argument(
17707
18698
  "[box]",
@@ -17715,8 +18706,8 @@ var startCommand = new Command60("start").description(
17715
18706
  reportBoxNotOnAnyHub(box);
17716
18707
  return;
17717
18708
  }
17718
- const label = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
17719
- process.stdout.write(`started ${label}
18709
+ const label2 = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
18710
+ process.stdout.write(`started ${label2}
17720
18711
  `);
17721
18712
  const provider = await providerForBox(box);
17722
18713
  const cfg = await loadEffectiveConfig(box.workspacePath);
@@ -17738,7 +18729,7 @@ var startCommand = new Command60("start").description(
17738
18729
 
17739
18730
  // src/commands/status.ts
17740
18731
  import { log as log40 } from "@clack/prompts";
17741
- import { Command as Command61 } from "commander";
18732
+ import { Command as Command64 } from "commander";
17742
18733
 
17743
18734
  // src/endpoints-render.ts
17744
18735
  function renderEndpointLines(endpoints, stream) {
@@ -18067,8 +19058,8 @@ async function runInspect(box, opts) {
18067
19058
 
18068
19059
  // src/commands/status.ts
18069
19060
  var MAX_DISPLAY_NAME = 60;
18070
- var statusCommand2 = withWatchOptions(
18071
- new Command61("status").description("Show service + task status from a box's agentbox-ctl daemon").argument(
19061
+ var statusCommand3 = withWatchOptions(
19062
+ new Command64("status").description("Show service + task status from a box's agentbox-ctl daemon").argument(
18072
19063
  "[box]",
18073
19064
  "box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
18074
19065
  ).option("-j, --json", "machine-readable JSON output").option("--inspect", "show detailed box info (volumes, limits, paths) plus service/task status").option(
@@ -18220,14 +19211,14 @@ function renderClaude(i, persisted) {
18220
19211
  } else if (!s.running) {
18221
19212
  session = `no session ("${s.sessionName}")`;
18222
19213
  } else {
18223
- const ago = fmtAgo2(s.startedAt);
18224
- session = `running ("${s.sessionName}")${ago ? `, started ${ago}` : ""}`;
19214
+ const ago2 = fmtAgo2(s.startedAt);
19215
+ session = `running ("${s.sessionName}")${ago2 ? `, started ${ago2}` : ""}`;
18225
19216
  }
18226
19217
  const lines = [` session ${session}`];
18227
19218
  const claude = normalizeAgentStatus(persisted).claude;
18228
19219
  if (claude) {
18229
- const ago = fmtAgo2(claude.updatedAt);
18230
- lines.push(` activity ${claude.state}${ago ? ` (${ago})` : ""}`);
19220
+ const ago2 = fmtAgo2(claude.updatedAt);
19221
+ lines.push(` activity ${claude.state}${ago2 ? ` (${ago2})` : ""}`);
18231
19222
  }
18232
19223
  return lines.join("\n");
18233
19224
  }
@@ -18247,8 +19238,8 @@ function renderPersisted2(s, state) {
18247
19238
  }
18248
19239
 
18249
19240
  // src/commands/stop.ts
18250
- import { Command as Command62 } from "commander";
18251
- var stopCommand = new Command62("stop").description(
19241
+ import { Command as Command65 } from "commander";
19242
+ var stopCommand2 = new Command65("stop").description(
18252
19243
  "Stop a box (Docker: docker stop; preserves upper + node_modules volumes. Cloud: backend.stop \u2014 sandbox stays in your account, disk preserved)."
18253
19244
  ).argument(
18254
19245
  "[box]",
@@ -18262,8 +19253,8 @@ var stopCommand = new Command62("stop").description(
18262
19253
  reportBoxNotOnAnyHub(box);
18263
19254
  return;
18264
19255
  }
18265
- const label = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
18266
- process.stdout.write(`stopped ${label}
19256
+ const label2 = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
19257
+ process.stdout.write(`stopped ${label2}
18267
19258
  restart with: agentbox start ${box.name}
18268
19259
  `);
18269
19260
  } catch (err) {
@@ -18272,7 +19263,7 @@ restart with: agentbox start ${box.name}
18272
19263
  });
18273
19264
 
18274
19265
  // src/commands/top.ts
18275
- import { Command as Command63 } from "commander";
19266
+ import { Command as Command66 } from "commander";
18276
19267
 
18277
19268
  // src/lib/cloud-state.ts
18278
19269
  var PROBE_TIMEOUT_MS = 4e3;
@@ -18290,17 +19281,17 @@ async function applyLiveCloudStates(boxes) {
18290
19281
  );
18291
19282
  }
18292
19283
  function withTimeout(p2, ms) {
18293
- return new Promise((resolve7) => {
18294
- const t = setTimeout(() => resolve7(null), ms);
19284
+ return new Promise((resolve8) => {
19285
+ const t = setTimeout(() => resolve8(null), ms);
18295
19286
  if (typeof t.unref === "function") t.unref();
18296
19287
  p2.then(
18297
19288
  (v) => {
18298
19289
  clearTimeout(t);
18299
- resolve7(v);
19290
+ resolve8(v);
18300
19291
  },
18301
19292
  () => {
18302
19293
  clearTimeout(t);
18303
- resolve7(null);
19294
+ resolve8(null);
18304
19295
  }
18305
19296
  );
18306
19297
  });
@@ -18322,7 +19313,7 @@ function row(name, state, s) {
18322
19313
  s.live ? net : "\u2014"
18323
19314
  ];
18324
19315
  }
18325
- function renderTable2(rows) {
19316
+ function renderTable3(rows) {
18326
19317
  const all = [COLS, ...rows];
18327
19318
  const widths = COLS.map((_, c) => Math.max(...all.map((r) => r[c].length)));
18328
19319
  return all.map(
@@ -18379,7 +19370,7 @@ async function renderProjectFooters() {
18379
19370
 
18380
19371
  SYSTEM: ${parts.join(" - ")}` : "";
18381
19372
  }
18382
- var topCommand = new Command63("top").description("Live resource monitor (cpu/mem/pids/disk) for a box, the project, or every box").argument(
19373
+ var topCommand = new Command66("top").description("Live resource monitor (cpu/mem/pids/disk) for a box, the project, or every box").argument(
18383
19374
  "[box]",
18384
19375
  "box ref (default: every box on the host; --project narrows to the cwd's project)"
18385
19376
  ).option("-p, --project", "show only boxes in the cwd's project").option("--once", "print a single snapshot instead of watching").option("-j, --json", "machine-readable JSON (implies --once)").option("--interval <seconds>", "refresh interval", "2").option(
@@ -18401,7 +19392,7 @@ var topCommand = new Command63("top").description("Live resource monitor (cpu/me
18401
19392
  const produce = async (watching) => {
18402
19393
  const { boxes, stats } = await snapshot(idOrName, opts);
18403
19394
  const scope = opts.project ? "no boxes for this project" : "no boxes";
18404
- const header = boxes.length === 0 ? watching ? `${scope} (waiting...)` : scope : renderTable2(boxes.map((b, i) => row(b.name, b.state, stats[i])));
19395
+ const header = boxes.length === 0 ? watching ? `${scope} (waiting...)` : scope : renderTable3(boxes.map((b, i) => row(b.name, b.state, stats[i])));
18405
19396
  return header + await renderProjectFooters();
18406
19397
  };
18407
19398
  if (opts.once) {
@@ -18415,8 +19406,8 @@ var topCommand = new Command63("top").description("Live resource monitor (cpu/me
18415
19406
  });
18416
19407
 
18417
19408
  // src/commands/unpause.ts
18418
- import { Command as Command64 } from "commander";
18419
- var unpauseCommand = new Command64("unpause").description(
19409
+ import { Command as Command67 } from "commander";
19410
+ var unpauseCommand = new Command67("unpause").description(
18420
19411
  "Resume a paused box. Docker: `docker unpause` (sub-second). Cloud: backend.resume (re-hydrates from archive \u2014 slower first time)."
18421
19412
  ).argument(
18422
19413
  "[box]",
@@ -18430,8 +19421,8 @@ var unpauseCommand = new Command64("unpause").description(
18430
19421
  reportBoxNotOnAnyHub(box);
18431
19422
  return;
18432
19423
  }
18433
- const label = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
18434
- process.stdout.write(`unpaused ${label}
19424
+ const label2 = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
19425
+ process.stdout.write(`unpaused ${label2}
18435
19426
  `);
18436
19427
  if (!boxOwningHubIsLocal(box)) {
18437
19428
  const provider = await providerForBox(box);
@@ -18455,7 +19446,7 @@ var unpauseCommand = new Command64("unpause").description(
18455
19446
 
18456
19447
  // src/commands/update.ts
18457
19448
  import { spawn as spawn4 } from "child_process";
18458
- import { Command as Command65 } from "commander";
19449
+ import { Command as Command68 } from "commander";
18459
19450
 
18460
19451
  // src/lib/hub-update-decision.ts
18461
19452
  function decideHubUpdate(input) {
@@ -18516,12 +19507,12 @@ async function resolveHubUpdate(args) {
18516
19507
  return decideHubUpdate({ record: null, liveVersion: void 0, ...args });
18517
19508
  }
18518
19509
  try {
18519
- const { readDeployRecord } = await import("./deploy-hetzner-FOCNRRB2.js");
19510
+ const { readDeployRecord } = await import("./deploy-hetzner-EO5PFKBG.js");
18520
19511
  const record = await readDeployRecord();
18521
19512
  if (!record?.url || record.provider === "local") {
18522
19513
  return decideHubUpdate({ record, liveVersion: void 0, ...args });
18523
19514
  }
18524
- const { probeControlPlaneStatus } = await import("./control-plane-DGLF4MBB.js");
19515
+ const { probeControlPlaneStatus } = await import("./control-plane-3TII2JGM.js");
18525
19516
  const live = await probeControlPlaneStatus(record.url).catch(() => null);
18526
19517
  return decideHubUpdate({ record, liveVersion: live?.version, ...args });
18527
19518
  } catch {
@@ -18552,7 +19543,7 @@ function describeResolution(channel, newest, decision) {
18552
19543
  if (decision.install) return `current ${AGENTBOX_VERSION} \u2192 newest ${newest}${on}`;
18553
19544
  return `already the newest (${AGENTBOX_VERSION})${on} \u2014 refreshing skills/image/relay/app anyway`;
18554
19545
  }
18555
- var updateCommand = new Command65("self-update").description(
19546
+ var updateCommand2 = new Command68("self-update").description(
18556
19547
  "Update agentbox: self-update via npm/pnpm (unless run via npx), refresh the host skills, re-check the box image (rebuilt on the next create only if its build context changed), reload the relay/hub, and update the menu-bar app"
18557
19548
  ).option("-y, --yes", "skip the confirmation prompt").option("--dry-run", "show what would happen, don't change anything").option(
18558
19549
  "--skip-self",
@@ -18691,9 +19682,9 @@ var updateCommand = new Command65("self-update").description(
18691
19682
  });
18692
19683
 
18693
19684
  // src/commands/url.ts
18694
- import { spawnSync as spawnSync8 } from "child_process";
19685
+ import { spawnSync as spawnSync9 } from "child_process";
18695
19686
  import { log as log41 } from "@clack/prompts";
18696
- import { Command as Command66 } from "commander";
19687
+ import { Command as Command69 } from "commander";
18697
19688
  var SIGNED_URL_TTL_MIN2 = 1;
18698
19689
  var SIGNED_URL_TTL_MAX2 = 86400;
18699
19690
  function parseTtlOrExit2(raw) {
@@ -18762,7 +19753,7 @@ function emitUrl2(url, signInUrl, opts) {
18762
19753
  return;
18763
19754
  }
18764
19755
  const target = signInUrl ?? url;
18765
- const opened = spawnSync8(hostOpenCommand(), [target], { stdio: "inherit" });
19756
+ const opened = spawnSync9(hostOpenCommand(), [target], { stdio: "inherit" });
18766
19757
  if (opened.status !== 0) {
18767
19758
  throw new Error(`open ${target} failed (exit ${String(opened.status ?? "n/a")})`);
18768
19759
  }
@@ -18779,7 +19770,7 @@ async function signInUrlViaProvider(box, url) {
18779
19770
  return null;
18780
19771
  }
18781
19772
  }
18782
- var urlCommand = new Command66("url").description(
19773
+ var urlCommand = new Command69("url").description(
18783
19774
  "Open a box's web app URL in the browser, even when no service declares `expose:` (auto-unpause/start)"
18784
19775
  ).argument(
18785
19776
  "[box]",
@@ -18823,8 +19814,8 @@ var urlCommand = new Command66("url").description(
18823
19814
 
18824
19815
  // src/commands/wait.ts
18825
19816
  import { log as log42 } from "@clack/prompts";
18826
- import { Command as Command67 } from "commander";
18827
- var waitCommand = new Command67("wait").description("Block until the box reports all autostart units ready").argument(
19817
+ import { Command as Command70 } from "commander";
19818
+ var waitCommand = new Command70("wait").description("Block until the box reports all autostart units ready").argument(
18828
19819
  "[box]",
18829
19820
  "box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
18830
19821
  ).option("--timeout <ms>", "overall timeout in milliseconds", "120000").option("--units <names...>", "restrict to the named units").option("-j, --json", "machine-readable JSON output").action(async (idOrName, opts) => {
@@ -18888,15 +19879,15 @@ process.env.AGENTBOX_CLI_COMMIT = AGENTBOX_COMMIT;
18888
19879
  }
18889
19880
  installConfigWarningSink();
18890
19881
  setCredentialPublisher(async (providerId, fields) => {
18891
- const { publishProviderCredentials } = await import("./publish-credentials-TO5IIW2T.js");
19882
+ const { publishProviderCredentials } = await import("./publish-credentials-FCEQSIPE.js");
18892
19883
  await publishProviderCredentials(providerId, fields);
18893
19884
  });
18894
19885
  setRemoteHostSharer(async (alias) => {
18895
- const { shareAfterAdd } = await import("./remote-docker-share-YADHIHXV.js");
19886
+ const { shareAfterAdd } = await import("./remote-docker-share-4Z4VVUPG.js");
18896
19887
  await shareAfterAdd(alias);
18897
19888
  });
18898
19889
  setRemoteHostBaker(async (alias) => {
18899
- const { runPrepare: runPrepare2 } = await import("./prepare-OOZF37J6.js");
19890
+ const { runPrepare: runPrepare2 } = await import("./prepare-MYFNDJPP.js");
18900
19891
  await runPrepare2(`docker:${alias}`, { yes: true, suppressStatus: true });
18901
19892
  });
18902
19893
  setHubPortlessHooks(dockerHubPortlessHooks);
@@ -18908,7 +19899,7 @@ for (const f of installedAgents.failed) {
18908
19899
  process.stderr.write(`agentbox: agent package "${f.packageName}" not loaded \u2014 ${f.reason}
18909
19900
  `);
18910
19901
  }
18911
- var program = new Command68();
19902
+ var program = new Command71();
18912
19903
  program.name("agentbox").description("Launch coding agents in isolated sandboxes").version(AGENTBOX_VERSION);
18913
19904
  program.enablePositionalOptions();
18914
19905
  program.addCommand(createCommand);
@@ -18929,7 +19920,7 @@ program.addCommand(downloadCommand);
18929
19920
  program.addCommand(uploadCommand);
18930
19921
  program.addCommand(cloneCommand);
18931
19922
  program.addCommand(cpCommand);
18932
- program.addCommand(statusCommand2);
19923
+ program.addCommand(statusCommand3);
18933
19924
  program.addCommand(servicesCommand);
18934
19925
  program.addCommand(topCommand);
18935
19926
  program.addCommand(dashboardCommand);
@@ -18941,8 +19932,8 @@ program.addCommand(pauseCommand);
18941
19932
  program.addCommand(unpauseCommand);
18942
19933
  program.addCommand(inboundCommand);
18943
19934
  program.addCommand(connectCommand);
18944
- program.addCommand(stopCommand);
18945
- program.addCommand(startCommand);
19935
+ program.addCommand(stopCommand2);
19936
+ program.addCommand(startCommand2);
18946
19937
  program.addCommand(recoverCommand);
18947
19938
  program.addCommand(destroyCommand);
18948
19939
  program.addCommand(prepareCommand);
@@ -18951,6 +19942,9 @@ program.addCommand(checkpointCommand);
18951
19942
  program.addCommand(credentialsCommand, { hidden: true });
18952
19943
  program.addCommand(configCommand);
18953
19944
  program.addCommand(queueCommand);
19945
+ program.addCommand(workspaceCommand);
19946
+ program.addCommand(tasksCommand);
19947
+ program.addCommand(managerCommand);
18954
19948
  program.addCommand(relayCommand);
18955
19949
  program.addCommand(hubCommand);
18956
19950
  program.addCommand(runQueuedJobCommand, { hidden: true });
@@ -18966,7 +19960,7 @@ program.addCommand(digitaloceanCommand);
18966
19960
  for (const sub of remoteDockerShareSubcommands) remoteDockerCommand.addCommand(sub);
18967
19961
  program.addCommand(remoteDockerCommand);
18968
19962
  program.addCommand(dockerCommand);
18969
- program.addCommand(updateCommand);
19963
+ program.addCommand(updateCommand2);
18970
19964
  program.addCommand(installCommand);
18971
19965
  program.addCommand(appCommand);
18972
19966
  program.addCommand(pluginCommand);
@@ -18976,7 +19970,7 @@ program.configureHelp({ visibleCommands: () => [] });
18976
19970
  program.addHelpText("after", () => "\n" + buildCompactHelp(program));
18977
19971
  program.helpCommand(false);
18978
19972
  program.addCommand(
18979
- new Command68("help").description("List every command, grouped; `help <command>` for one command").argument("[command]", "command to show help for").action((name) => {
19973
+ new Command71("help").description("List every command, grouped; `help <command>` for one command").argument("[command]", "command to show help for").action((name) => {
18980
19974
  if (name) {
18981
19975
  const sub = program.commands.find((c) => c.name() === name || c.aliases().includes(name));
18982
19976
  if (!sub) program.error(`unknown command '${name}'`);