@madarco/agentbox 0.28.1 → 0.29.1

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 (452) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/dist/_cloud-attach-EUO2OL7W.js +30 -0
  3. package/dist/chunk-2JHPGPLE.js +71 -0
  4. package/dist/chunk-2JHPGPLE.js.map +1 -0
  5. package/dist/{chunk-JQLOGVZK.js → chunk-4KYP775X.js} +85 -21
  6. package/dist/chunk-4KYP775X.js.map +1 -0
  7. package/dist/{chunk-V5NWSLWD.js → chunk-4NUETVTR.js} +14 -14
  8. package/dist/{chunk-OXKW4GWD.js → chunk-53OTEDBS.js} +4 -70
  9. package/dist/chunk-53OTEDBS.js.map +1 -0
  10. package/dist/{chunk-FGQFVUMH.js → chunk-6YSYQZRH.js} +3 -3
  11. package/dist/{chunk-KFLGXE3R.js → chunk-73D2HKA3.js} +138 -24
  12. package/dist/chunk-73D2HKA3.js.map +1 -0
  13. package/dist/{chunk-HYXCH4GA.js → chunk-7LC5IG5K.js} +7 -7
  14. package/dist/{chunk-NHVGKFVY.js → chunk-7LNXTPEE.js} +340 -22
  15. package/dist/chunk-7LNXTPEE.js.map +1 -0
  16. package/dist/{chunk-74VIUGY6.js → chunk-A2TATHHJ.js} +6 -9
  17. package/dist/chunk-A2TATHHJ.js.map +1 -0
  18. package/dist/{chunk-YI4GHC2E.js → chunk-AC3HU25W.js} +12 -15
  19. package/dist/chunk-AC3HU25W.js.map +1 -0
  20. package/dist/{chunk-7ABO7OIF.js → chunk-AUHYXXCA.js} +4 -4
  21. package/dist/{chunk-FPMRFMVK.js → chunk-B4YFG5TB.js} +9 -9
  22. package/dist/{chunk-OUF3YTQO.js → chunk-BIKWXLX7.js} +14 -17
  23. package/dist/chunk-BIKWXLX7.js.map +1 -0
  24. package/dist/{chunk-CKD3PRON.js → chunk-CZPVVFCF.js} +12 -9
  25. package/dist/{chunk-CKD3PRON.js.map → chunk-CZPVVFCF.js.map} +1 -1
  26. package/dist/chunk-F4PPZ4SI.js +17 -0
  27. package/dist/chunk-F4PPZ4SI.js.map +1 -0
  28. package/dist/{chunk-BWM56FKY.js → chunk-FEFLAITR.js} +11 -11
  29. package/dist/{chunk-EVT2SNF2.js → chunk-FELVUIIM.js} +3 -3
  30. package/dist/{chunk-46NNZMZT.js → chunk-I2DEYQLZ.js} +372 -72
  31. package/dist/chunk-I2DEYQLZ.js.map +1 -0
  32. package/dist/{chunk-OUWVN2F2.js → chunk-I7BSBUPC.js} +16 -13
  33. package/dist/chunk-I7BSBUPC.js.map +1 -0
  34. package/dist/{chunk-G3H2L3O2.js → chunk-MNDKP4VS.js} +23 -3
  35. package/dist/chunk-MNDKP4VS.js.map +1 -0
  36. package/dist/{chunk-BUMKBUXS.js → chunk-PAWAGULH.js} +3 -3
  37. package/dist/{chunk-4PR3KJ5X.js → chunk-PFEBKXFD.js} +20 -20
  38. package/dist/{chunk-JDSYMTMS.js → chunk-QDU7YDME.js} +130 -66
  39. package/dist/chunk-QDU7YDME.js.map +1 -0
  40. package/dist/{chunk-JNC7MCWJ.js → chunk-S32GHLVU.js} +10 -10
  41. package/dist/chunk-S32GHLVU.js.map +1 -0
  42. package/dist/{chunk-WB6S4W7O.js → chunk-THKVKVRF.js} +2413 -1012
  43. package/dist/chunk-THKVKVRF.js.map +1 -0
  44. package/dist/{chunk-7RSE7ESY.js → chunk-UEEW5TW7.js} +27 -18
  45. package/dist/chunk-UEEW5TW7.js.map +1 -0
  46. package/dist/{chunk-B4DAH2F2.js → chunk-UTOC2NHC.js} +3 -3
  47. package/dist/{chunk-NHTRTST5.js → chunk-WDBDFLH3.js} +38 -15
  48. package/dist/chunk-WDBDFLH3.js.map +1 -0
  49. package/dist/{chunk-PSA6GADQ.js → chunk-WHFCJBMO.js} +14 -1
  50. package/dist/chunk-WHFCJBMO.js.map +1 -0
  51. package/dist/{chunk-KJ5TCYNI.js → chunk-WJUKN4L4.js} +7 -6
  52. package/dist/chunk-WJUKN4L4.js.map +1 -0
  53. package/dist/{chunk-GFOWBXV7.js → chunk-XENTK32L.js} +463 -253
  54. package/dist/chunk-XENTK32L.js.map +1 -0
  55. package/dist/cloud-backends.js +5 -5
  56. package/dist/{cloud-poller-SUNA6ZQC-7M5LJHHE.js → cloud-poller-QJRZXB4W-LJ2BRB3L.js} +2 -2
  57. package/dist/{control-plane-5R7PYRQ6.js → control-plane-YQFX2ILX.js} +19 -18
  58. package/dist/cp-hub-upload-RMJ3XJ65.js +81 -0
  59. package/dist/cp-hub-upload-RMJ3XJ65.js.map +1 -0
  60. package/dist/{custody-client-PNCC2HBJ.js → custody-client-L4FEFW4C.js} +5 -4
  61. package/dist/{deploy-hetzner-SSGSXAKA.js → deploy-hetzner-EECQ4JCM.js} +10 -10
  62. package/dist/{dist-RN6JOAG4.js → dist-3BKIPZR3.js} +81 -45
  63. package/dist/{dist-K5M4HKG7.js → dist-C5B6NGBO.js} +21 -9
  64. package/dist/{dist-6PYXFREL.js → dist-E5EXDZG4.js} +61 -16
  65. package/dist/dist-E5EXDZG4.js.map +1 -0
  66. package/dist/{dist-XATN4ZIR.js → dist-FBM2WS5S.js} +22 -4
  67. package/dist/{dist-XQLKK7H3.js → dist-NFF2KEMB.js} +54 -28
  68. package/dist/dist-NFF2KEMB.js.map +1 -0
  69. package/dist/{dist-5OR4QTQW.js → dist-NTUHJOK3.js} +9 -9
  70. package/dist/{dist-ZNQZHTUN.js → dist-PTYASENV.js} +35 -6
  71. package/dist/{dist-POILUDVJ.js → dist-Q4UDCSZQ.js} +9 -9
  72. package/dist/{dist-M4O5MU5K.js → dist-TXFTYNNE.js} +8 -8
  73. package/dist/{dist-EPFS5PRI.js → dist-XUOHE22G.js} +10 -10
  74. package/dist/{dist-SN2TCRZ5.js → dist-Z2TPC3EN.js} +9 -9
  75. package/dist/host-reach-drainer-N4JSFUBY.js +9 -0
  76. package/dist/hub-3HPYOV5O.js +37 -0
  77. package/dist/{hub-adopt-I44VGSBL.js → hub-adopt-NCCCMMXL.js} +8 -8
  78. package/dist/{hub-api-client-WJPBXZAZ.js → hub-api-client-5U6WOTZ3.js} +2 -2
  79. package/dist/{hub-docker-target-REEEWUG2.js → hub-docker-target-ZKAWXVPH.js} +16 -16
  80. package/dist/index.js +1321 -882
  81. package/dist/index.js.map +1 -1
  82. package/dist/prepare-KIVDQRMN.js +41 -0
  83. package/dist/prepared-custody-EFSOOAIQ.js +36 -0
  84. package/dist/{prepared-state-PV3GUBHO-MF56HWMZ.js → prepared-state-LNQ7DYSU-2YFSDOCV.js} +4 -3
  85. package/dist/{publish-credentials-BPHUO5VL.js → publish-credentials-F2A5OVCO.js} +11 -11
  86. package/dist/registry-O3X2CDDU.js +18 -0
  87. package/dist/relay-3T57T4RI.js +20 -0
  88. package/dist/relay-3T57T4RI.js.map +1 -0
  89. package/dist/{remote-docker-share-RX5ARK45.js → remote-docker-share-QDCBM5UM.js} +11 -11
  90. package/dist/remote-docker-share-QDCBM5UM.js.map +1 -0
  91. package/dist/tool-grant-push-6ISDIJKH.js +90 -0
  92. package/dist/tool-grant-push-6ISDIJKH.js.map +1 -0
  93. package/package.json +1 -2
  94. package/runtime/_shared/agentbox-tool-shim +21 -0
  95. package/runtime/_shared/ctl.cjs +6760 -5299
  96. package/runtime/_shared/gh-shim +103 -228
  97. package/runtime/digitalocean/agentbox-tool-shim +21 -0
  98. package/runtime/digitalocean/ctl.cjs +6760 -5299
  99. package/runtime/digitalocean/gh-shim +103 -228
  100. package/runtime/digitalocean/scripts/install-box.sh +9 -15
  101. package/runtime/docker/Dockerfile.box +8 -18
  102. package/runtime/docker/packages/ctl/dist/bin.cjs +6760 -5299
  103. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-tool-shim +21 -0
  104. package/runtime/docker/packages/sandbox-docker/scripts/gh-shim +103 -228
  105. package/runtime/e2b/agentbox-tool-shim +21 -0
  106. package/runtime/e2b/ctl.cjs +6760 -5299
  107. package/runtime/e2b/gh-shim +103 -228
  108. package/runtime/e2b/scripts/build-template.sh +5 -9
  109. package/runtime/hetzner/agentbox-tool-shim +21 -0
  110. package/runtime/hetzner/ctl.cjs +6760 -5299
  111. package/runtime/hetzner/gh-shim +103 -228
  112. package/runtime/hetzner/scripts/install-box.sh +9 -15
  113. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  114. package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +2 -0
  115. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  116. package/runtime/hub/apps/hub/.next/routes-manifest.json +16 -0
  117. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +5 -5
  118. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -1
  119. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +2 -2
  120. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
  121. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js +2 -2
  122. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
  123. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +2 -2
  124. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
  125. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js +2 -2
  126. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -1
  127. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js +2 -2
  128. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
  129. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js +2 -2
  130. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -1
  131. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +2 -2
  132. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
  133. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js +2 -2
  134. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
  135. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js +1 -1
  136. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -1
  137. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js +2 -2
  138. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
  139. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js +2 -2
  140. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
  141. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js +2 -2
  142. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
  143. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +2 -2
  144. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
  145. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js +2 -2
  146. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
  147. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route/app-paths-manifest.json +3 -0
  148. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route/build-manifest.json +9 -0
  149. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route/server-reference-manifest.json +4 -0
  150. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js +8 -0
  151. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.map +5 -0
  152. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -0
  153. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route_client-reference-manifest.js +3 -0
  154. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +2 -2
  155. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
  156. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js +2 -2
  157. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -1
  158. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js +1 -1
  159. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js.nft.json +1 -1
  160. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route.js +2 -2
  161. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route.js.nft.json +1 -1
  162. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js +2 -2
  163. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.nft.json +1 -1
  164. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js +2 -2
  165. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
  166. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js +2 -2
  167. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
  168. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js +2 -2
  169. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
  170. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +2 -2
  171. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
  172. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js +2 -2
  173. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
  174. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js +2 -2
  175. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
  176. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js +2 -2
  177. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -1
  178. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js +2 -2
  179. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
  180. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js +2 -2
  181. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
  182. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js +2 -2
  183. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
  184. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js +2 -2
  185. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -1
  186. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +2 -2
  187. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
  188. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +2 -2
  189. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
  190. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +2 -2
  191. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
  192. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js +2 -2
  193. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
  194. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js +2 -2
  195. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -1
  196. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js +2 -2
  197. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -1
  198. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js +1 -1
  199. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
  200. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js +1 -1
  201. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
  202. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  203. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route/app-paths-manifest.json +3 -0
  204. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route/build-manifest.json +9 -0
  205. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route/server-reference-manifest.json +4 -0
  206. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js +8 -0
  207. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.map +5 -0
  208. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -0
  209. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route_client-reference-manifest.js +3 -0
  210. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js +1 -1
  211. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -1
  212. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js +1 -1
  213. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  214. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js +1 -1
  215. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
  216. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js +1 -1
  217. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
  218. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  219. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js +1 -1
  220. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
  221. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +4 -4
  222. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
  223. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  224. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  225. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  226. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  227. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  228. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  229. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  230. package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +2 -0
  231. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_boxes_[id]_vnc_route_actions_1cy1392.js +3 -0
  232. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_vnc_route_actions_10y_e83.js +3 -0
  233. package/runtime/hub/apps/hub/.next/server/chunks/{[externals]__1nj4awx._.js → [externals]__02a249v._.js} +2 -2
  234. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00f9v4p._.js +1 -1
  235. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01nppdu._.js +1 -1
  236. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02f8rwr._.js +1 -1
  237. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__068_052._.js +1 -1
  238. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06ma5m4._.js +3 -0
  239. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07kp2fu._.js +1 -1
  240. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1yi-2wa._.js → [root-of-the-server]__08u01ud._.js} +3 -3
  241. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__098bkh3._.js +3 -0
  242. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1hxo1tv._.js → [root-of-the-server]__09hbkgm._.js} +2 -2
  243. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09tmbom._.js +3 -0
  244. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_3m9sf._.js +1 -1
  245. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0aotdzg._.js +3 -0
  246. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bn6-pu._.js +1 -1
  247. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cpt9f9._.js +1 -1
  248. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +15 -15
  249. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dom248._.js +1 -1
  250. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f0bb7o._.js +1 -1
  251. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gb04bp._.js +1 -1
  252. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0glplq7._.js +1 -1
  253. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0xrdbh9._.js → [root-of-the-server]__0gxfyol._.js} +2 -2
  254. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hsb2ak._.js +1 -1
  255. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0joqm8t._.js +1 -1
  256. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jp-895._.js +1 -1
  257. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1leda2s._.js → [root-of-the-server]__0jpqg_t._.js} +2 -2
  258. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__17bhgkz._.js → [root-of-the-server]__0lgnu00._.js} +2 -2
  259. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lsv9-6._.js +1 -1
  260. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pzgufc._.js +1 -1
  261. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qfv7z6._.js +1 -1
  262. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qlr61y._.js +1 -1
  263. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s8srqi._.js +1 -1
  264. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0urn9j5._.js +1 -1
  265. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vb8mk2._.js +4 -0
  266. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__17w5eaa._.js → [root-of-the-server]__0x27ifo._.js} +2 -2
  267. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y7rvy1._.js +1 -1
  268. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zsgjre._.js +1 -1
  269. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-bqa8a._.js +1 -1
  270. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11uspjg._.js +1 -1
  271. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0zvr6ul._.js → [root-of-the-server]__15tgdh6._.js} +2 -2
  272. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1ek7nxv._.js → [root-of-the-server]__16bz_kz._.js} +2 -2
  273. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1w7jw4q._.js → [root-of-the-server]__18tehjj._.js} +2 -2
  274. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1ds8g0e._.js → [root-of-the-server]__1_hzv4s._.js} +2 -2
  275. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0cgpsh8._.js → [root-of-the-server]__1b5f5h4._.js} +2 -2
  276. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__10-aihp._.js → [root-of-the-server]__1dv80yf._.js} +2 -2
  277. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eanlxn._.js +1 -1
  278. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__16lcb2d._.js → [root-of-the-server]__1fc-nvn._.js} +2 -2
  279. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4iahl._.js +1 -1
  280. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0f-c-eh._.js → [root-of-the-server]__1j0vnh3._.js} +2 -2
  281. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lgrtx6._.js +1 -1
  282. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1unqgd7._.js → [root-of-the-server]__1lz7931._.js} +2 -2
  283. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1oclxlx._.js → [root-of-the-server]__1n3u6-5._.js} +2 -2
  284. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qky5cd._.js +1 -1
  285. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r2quye._.js +3 -0
  286. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rb_nc5._.js +1 -1
  287. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0cv16py._.js → [root-of-the-server]__1spr8ss._.js} +2 -2
  288. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1t_juqb._.js +1 -1
  289. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0t8kwy3._.js → [root-of-the-server]__1tct9rj._.js} +3 -3
  290. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0gfa1jg._.js → [root-of-the-server]__1tjtt06._.js} +2 -2
  291. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__09cigc7._.js → [root-of-the-server]__1whjno0._.js} +2 -2
  292. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wn4-iv._.js +3 -0
  293. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1x6zxrf._.js +1 -1
  294. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0tyixgg._.js → [root-of-the-server]__1xfxc6i._.js} +2 -2
  295. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1m1_gm_._.js → [root-of-the-server]__1xqcvi4._.js} +2 -2
  296. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__207d30i._.js +1 -1
  297. package/runtime/hub/apps/hub/.next/server/chunks/_07icdxf._.js +1 -1
  298. package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +1 -1
  299. package/runtime/hub/apps/hub/.next/server/chunks/_0adm87k._.js +1 -1
  300. package/runtime/hub/apps/hub/.next/server/chunks/_0g01mkg._.js +1 -1
  301. package/runtime/hub/apps/hub/.next/server/chunks/_0l_klgd._.js +1 -1
  302. package/runtime/hub/apps/hub/.next/server/chunks/_0lfm81x._.js +1 -1
  303. package/runtime/hub/apps/hub/.next/server/chunks/_0tbg83f._.js +1 -1
  304. package/runtime/hub/apps/hub/.next/server/chunks/_0tms_au._.js +1 -1
  305. package/runtime/hub/apps/hub/.next/server/chunks/_0zhli27._.js +1 -1
  306. package/runtime/hub/apps/hub/.next/server/chunks/_10yfoq5._.js +1 -1
  307. package/runtime/hub/apps/hub/.next/server/chunks/_12uhpbp._.js +1 -1
  308. package/runtime/hub/apps/hub/.next/server/chunks/_17a9v8y._.js +2 -2
  309. package/runtime/hub/apps/hub/.next/server/chunks/_1c7x9ee._.js +1 -1
  310. package/runtime/hub/apps/hub/.next/server/chunks/_1n-c443._.js +1 -1
  311. package/runtime/hub/apps/hub/.next/server/chunks/_1y80vfg._.js +1 -1
  312. package/runtime/hub/apps/hub/.next/server/chunks/_214_q-1._.js +1 -1
  313. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_openapi_ts_1yokmzt._.js +1 -1
  314. package/runtime/hub/apps/hub/.next/server/chunks/{packages_relay_dist_0eg7ay1._.js → packages_relay_dist_0p8dnf4._.js} +4 -4
  315. package/runtime/hub/apps/hub/.next/server/chunks/ssr/{[root-of-the-server]__1plrs94._.js → [root-of-the-server]__0-c5j6l._.js} +2 -2
  316. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +1 -1
  317. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_19vy9ni._.js +2 -2
  318. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
  319. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_settings_page_tsx_0hv6n82._.js +1 -1
  320. package/runtime/hub/apps/hub/.next/server/chunks/ssr/{packages_relay_dist_1z9j3g0._.js → packages_relay_dist_0sap-2l._.js} +4 -4
  321. package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +3 -1
  322. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  323. package/runtime/hub/apps/hub/.next/server/middleware.js +1 -1
  324. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  325. package/runtime/hub/apps/hub/.next/static/chunks/{328ny-3zs_h7m.js → 0jefm3re1-2jv.js} +1 -1
  326. package/runtime/hub/apps/hub/.next/static/chunks/{30h8mz040b5-l.js → 3u4odx1_-dy6b.js} +1 -1
  327. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/[id]/vnc/route.ts +45 -0
  328. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/openapi.ts +45 -1
  329. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/validate.ts +14 -3
  330. package/runtime/hub/apps/hub/app/(dashboard)/boxes/[id]/vnc/route.ts +58 -0
  331. package/runtime/hub/apps/hub/app/(dashboard)/boxes/components/access.tsx +26 -9
  332. package/runtime/hub/apps/hub/app/(dashboard)/settings/components/provider-actions.tsx +34 -26
  333. package/runtime/hub/apps/hub/{auth-JMVHQKWY.js → auth-V7KPRWPS.js} +2 -2
  334. package/runtime/hub/apps/hub/{auth-config-5IFRWOK4.js → auth-config-B3Y3BT2I.js} +2 -2
  335. package/runtime/hub/apps/hub/{chunk-QU3FFGJY.js → chunk-2WB3A5IN.js} +11 -14
  336. package/runtime/hub/apps/hub/{chunk-LPYK2354.js → chunk-5ABFGGPT.js} +339 -21
  337. package/runtime/hub/apps/hub/{chunk-VKOCY6SX.js → chunk-BI4MPGQT.js} +49 -14
  338. package/runtime/hub/apps/hub/{chunk-UMPTTQBE.js → chunk-G6FJR7TN.js} +461 -251
  339. package/runtime/hub/apps/hub/{chunk-KTVETF3F.js → chunk-QGAP34GN.js} +11 -8
  340. package/runtime/hub/apps/hub/{chunk-5TM7XXLT.js → chunk-QWSP6WJ2.js} +2833 -1277
  341. package/runtime/hub/apps/hub/{chunk-EZUK53CC.js → chunk-RPPOFMPA.js} +85 -21
  342. package/runtime/hub/apps/hub/{chunk-3LAHFDJF.js → chunk-VWQNSZGI.js} +22 -2
  343. package/runtime/hub/apps/hub/{chunk-D33EV4YZ.js → chunk-ZP4RYI4U.js} +1 -1
  344. package/runtime/hub/apps/hub/{cloud-poller-SUNA6ZQC-VSKVMYHL.js → cloud-poller-QJRZXB4W-G7ECKNKQ.js} +1 -1
  345. package/runtime/hub/apps/hub/{dist-JVEDVVVG.js → dist-4F6XEJHK.js} +7 -7
  346. package/runtime/hub/apps/hub/{dist-2YP57GMB.js → dist-A3JOKKYG.js} +13 -13
  347. package/runtime/hub/apps/hub/{dist-D265LCAN.js → dist-CGH7PEMZ.js} +21 -3
  348. package/runtime/hub/apps/hub/{dist-SYWTB6RD.js → dist-F547YSBE.js} +15 -18
  349. package/runtime/hub/apps/hub/{dist-YK5FFPXZ.js → dist-FEHV4PC7.js} +62 -20
  350. package/runtime/hub/apps/hub/{dist-NKCXH5DW.js → dist-P7NT6VLK.js} +6 -6
  351. package/runtime/hub/apps/hub/{dist-E2FTSTCY.js → dist-W2YXTEQN.js} +34 -5
  352. package/runtime/hub/apps/hub/{dist-ELZHBQEM.js → dist-W5SGEJLA.js} +11 -11
  353. package/runtime/hub/apps/hub/{dist-N3E5YAYY.js → dist-YB3Y2XDK.js} +53 -26
  354. package/runtime/hub/apps/hub/{dist-5HTJSOHS.js → dist-ZTJMZLED.js} +19 -7
  355. package/runtime/hub/apps/hub/docker-compose.yml +1 -0
  356. package/runtime/hub/apps/hub/{hub-token-MDOBY7MZ.js → hub-token-DDJ5Z6RS.js} +2 -2
  357. package/runtime/hub/apps/hub/{hub-worker-UFFLF37F.js → hub-worker-I5QBLSRU.js} +16 -16
  358. package/runtime/hub/apps/hub/lib/boxes/backend-types.ts +11 -0
  359. package/runtime/hub/apps/hub/lib/boxes/types.ts +43 -0
  360. package/runtime/hub/apps/hub/lib/boxes/vnc-link.ts +51 -0
  361. package/runtime/hub/apps/hub/lib/hub-backend.ts +127 -54
  362. package/runtime/hub/apps/hub/lib/hub-worker.ts +4 -4
  363. package/runtime/hub/apps/hub/lib/provider-importers.ts +66 -1
  364. package/runtime/hub/apps/hub/{prepared-state-PV3GUBHO-PPRQDYFR.js → prepared-state-LNQ7DYSU-4I7FNNNS.js} +3 -2
  365. package/runtime/hub/apps/hub/server.js +130 -72
  366. package/runtime/hub/apps/hub/server.ts +18 -0
  367. package/runtime/hub/apps/hub/test/vnc-link.test.ts +61 -0
  368. package/runtime/hub/apps/hub/tsconfig.tsbuildinfo +1 -1
  369. package/runtime/hub-deploy/docker-compose.yml +1 -0
  370. package/runtime/relay/bin.cjs +16626 -14688
  371. package/runtime/vercel/agentbox-tool-shim +21 -0
  372. package/runtime/vercel/ctl.cjs +6760 -5299
  373. package/runtime/vercel/gh-shim +103 -228
  374. package/runtime/vercel/scripts/provision.sh +5 -9
  375. package/share/host-skills/agentbox-info/SKILL.md +24 -14
  376. package/dist/_cloud-attach-Y5HIQ373.js +0 -28
  377. package/dist/chunk-46NNZMZT.js.map +0 -1
  378. package/dist/chunk-74VIUGY6.js.map +0 -1
  379. package/dist/chunk-7RSE7ESY.js.map +0 -1
  380. package/dist/chunk-G3H2L3O2.js.map +0 -1
  381. package/dist/chunk-GFOWBXV7.js.map +0 -1
  382. package/dist/chunk-JDSYMTMS.js.map +0 -1
  383. package/dist/chunk-JNC7MCWJ.js.map +0 -1
  384. package/dist/chunk-JQLOGVZK.js.map +0 -1
  385. package/dist/chunk-KFLGXE3R.js.map +0 -1
  386. package/dist/chunk-KJ5TCYNI.js.map +0 -1
  387. package/dist/chunk-NHTRTST5.js.map +0 -1
  388. package/dist/chunk-NHVGKFVY.js.map +0 -1
  389. package/dist/chunk-OUF3YTQO.js.map +0 -1
  390. package/dist/chunk-OUWVN2F2.js.map +0 -1
  391. package/dist/chunk-OXKW4GWD.js.map +0 -1
  392. package/dist/chunk-PSA6GADQ.js.map +0 -1
  393. package/dist/chunk-WB6S4W7O.js.map +0 -1
  394. package/dist/chunk-YI4GHC2E.js.map +0 -1
  395. package/dist/dist-6PYXFREL.js.map +0 -1
  396. package/dist/dist-XQLKK7H3.js.map +0 -1
  397. package/dist/hub-MJ7O4WXW.js +0 -36
  398. package/dist/prepare-V4U5HVJU.js +0 -40
  399. package/dist/prepared-custody-QIXW7MJM.js +0 -35
  400. package/dist/relay-DRDELF6B.js +0 -20
  401. package/runtime/_shared/linear-shim +0 -181
  402. package/runtime/_shared/ntn-shim +0 -95
  403. package/runtime/digitalocean/linear-shim +0 -181
  404. package/runtime/digitalocean/ntn-shim +0 -95
  405. package/runtime/docker/packages/sandbox-docker/scripts/linear-shim +0 -181
  406. package/runtime/docker/packages/sandbox-docker/scripts/ntn-shim +0 -95
  407. package/runtime/e2b/linear-shim +0 -181
  408. package/runtime/e2b/ntn-shim +0 -95
  409. package/runtime/hetzner/linear-shim +0 -181
  410. package/runtime/hetzner/ntn-shim +0 -95
  411. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__039tc0m._.js +0 -3
  412. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c_3x8u._.js +0 -3
  413. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ty7ew1._.js +0 -3
  414. package/runtime/vercel/linear-shim +0 -181
  415. package/runtime/vercel/ntn-shim +0 -95
  416. /package/dist/{_cloud-attach-Y5HIQ373.js.map → _cloud-attach-EUO2OL7W.js.map} +0 -0
  417. /package/dist/{chunk-V5NWSLWD.js.map → chunk-4NUETVTR.js.map} +0 -0
  418. /package/dist/{chunk-FGQFVUMH.js.map → chunk-6YSYQZRH.js.map} +0 -0
  419. /package/dist/{chunk-HYXCH4GA.js.map → chunk-7LC5IG5K.js.map} +0 -0
  420. /package/dist/{chunk-7ABO7OIF.js.map → chunk-AUHYXXCA.js.map} +0 -0
  421. /package/dist/{chunk-FPMRFMVK.js.map → chunk-B4YFG5TB.js.map} +0 -0
  422. /package/dist/{chunk-BWM56FKY.js.map → chunk-FEFLAITR.js.map} +0 -0
  423. /package/dist/{chunk-EVT2SNF2.js.map → chunk-FELVUIIM.js.map} +0 -0
  424. /package/dist/{chunk-BUMKBUXS.js.map → chunk-PAWAGULH.js.map} +0 -0
  425. /package/dist/{chunk-4PR3KJ5X.js.map → chunk-PFEBKXFD.js.map} +0 -0
  426. /package/dist/{chunk-B4DAH2F2.js.map → chunk-UTOC2NHC.js.map} +0 -0
  427. /package/dist/{cloud-poller-SUNA6ZQC-7M5LJHHE.js.map → cloud-poller-QJRZXB4W-LJ2BRB3L.js.map} +0 -0
  428. /package/dist/{control-plane-5R7PYRQ6.js.map → control-plane-YQFX2ILX.js.map} +0 -0
  429. /package/dist/{custody-client-PNCC2HBJ.js.map → custody-client-L4FEFW4C.js.map} +0 -0
  430. /package/dist/{deploy-hetzner-SSGSXAKA.js.map → deploy-hetzner-EECQ4JCM.js.map} +0 -0
  431. /package/dist/{dist-5OR4QTQW.js.map → dist-3BKIPZR3.js.map} +0 -0
  432. /package/dist/{dist-EPFS5PRI.js.map → dist-C5B6NGBO.js.map} +0 -0
  433. /package/dist/{dist-K5M4HKG7.js.map → dist-FBM2WS5S.js.map} +0 -0
  434. /package/dist/{dist-M4O5MU5K.js.map → dist-NTUHJOK3.js.map} +0 -0
  435. /package/dist/{dist-POILUDVJ.js.map → dist-PTYASENV.js.map} +0 -0
  436. /package/dist/{dist-RN6JOAG4.js.map → dist-Q4UDCSZQ.js.map} +0 -0
  437. /package/dist/{dist-SN2TCRZ5.js.map → dist-TXFTYNNE.js.map} +0 -0
  438. /package/dist/{dist-XATN4ZIR.js.map → dist-XUOHE22G.js.map} +0 -0
  439. /package/dist/{dist-ZNQZHTUN.js.map → dist-Z2TPC3EN.js.map} +0 -0
  440. /package/dist/{hub-MJ7O4WXW.js.map → host-reach-drainer-N4JSFUBY.js.map} +0 -0
  441. /package/dist/{hub-adopt-I44VGSBL.js.map → hub-3HPYOV5O.js.map} +0 -0
  442. /package/dist/{hub-api-client-WJPBXZAZ.js.map → hub-adopt-NCCCMMXL.js.map} +0 -0
  443. /package/dist/{prepare-V4U5HVJU.js.map → hub-api-client-5U6WOTZ3.js.map} +0 -0
  444. /package/dist/{hub-docker-target-REEEWUG2.js.map → hub-docker-target-ZKAWXVPH.js.map} +0 -0
  445. /package/dist/{prepared-custody-QIXW7MJM.js.map → prepare-KIVDQRMN.js.map} +0 -0
  446. /package/dist/{prepared-state-PV3GUBHO-MF56HWMZ.js.map → prepared-custody-EFSOOAIQ.js.map} +0 -0
  447. /package/dist/{relay-DRDELF6B.js.map → prepared-state-LNQ7DYSU-2YFSDOCV.js.map} +0 -0
  448. /package/dist/{publish-credentials-BPHUO5VL.js.map → publish-credentials-F2A5OVCO.js.map} +0 -0
  449. /package/dist/{remote-docker-share-RX5ARK45.js.map → registry-O3X2CDDU.js.map} +0 -0
  450. /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → nDHi_1342DzyGDC14ocQo}/_buildManifest.js +0 -0
  451. /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → nDHi_1342DzyGDC14ocQo}/_clientMiddlewareManifest.js +0 -0
  452. /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → nDHi_1342DzyGDC14ocQo}/_ssgManifest.js +0 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,152 @@ Entries are generated from the commit history with `/release-notes` and then
9
9
  hand-reviewed — they describe what changed for someone using the `agentbox`
10
10
  CLI, not the raw commits.
11
11
 
12
+ ## [0.29.1] - 2026-08-30
13
+
14
+ ### Fixed
15
+
16
+ - **A clean install could dead-end on the hub token.** Deleting `~/.agentbox`
17
+ while the hub daemon kept running left it serving a token that no longer
18
+ existed on disk, so every `agentbox prepare` — and the install wizard's bake —
19
+ failed with `The local hub reports no API token`. The advice it printed was a
20
+ dead end: `agentbox hub` is a no-op against a live daemon and never rewrites
21
+ the file. The hub is now restarted to re-mint the token.
22
+ - **Attach silently lost its footer and permission prompts** when the optional
23
+ native pty backend (`@homebridge/node-pty-prebuilt-multiarch`) wasn't
24
+ installed — npm swallows an optional dependency that fails to install, so
25
+ `npm i -g @madarco/agentbox` can succeed without it. The notice now names the
26
+ missing package, points at the usual cause (`agentbox` installed under a
27
+ different Node than the one on `PATH`), and is repeated after the session
28
+ exits instead of being painted over by the agent's full-screen TUI.
29
+ - A provider plugin that declares no `descriptor` now gets a capitalised display
30
+ label, so the create picker and the tray no longer show two spellings of the
31
+ same provider. Plugins registered before this keep their old label until
32
+ `agentbox plugin add` re-registers them.
33
+
34
+ ## [0.29.0] - 2026-08-28
35
+
36
+ ### Added
37
+
38
+ - **Host tools — any CLI on your machine, usable from a box.** `agentbox tools
39
+ add <name>` grants a box the right to run one of your host commands
40
+ (`terraform`, `aws`, `linear`, …) through the relay, so it uses your
41
+ credentials without ever receiving them. Grants live host-side; an
42
+ `agentbox.yaml` `tools:` block only *requests* one and raises a single
43
+ approval at create time, and a box can ask for a new tool at runtime
44
+ (`tools.request.enabled`). A built-in credential deny list — token printers,
45
+ `sts get-session-token`, keyring reads — refuses ahead of your own allow
46
+ rules. `agentbox doctor` grows a `tools` section. See
47
+ https://agent-box.sh/docs/host-tools.
48
+ - **The whole `gh` CLI now works from a box** (#304). It was a curated
49
+ allowlist, so "implement GitHub issue `<link>`" died at `gh issue: not
50
+ proxied`. One forwarder now carries the entire CLI, with policy instead of a
51
+ list: credential and shell-escape commands (`auth token|login`, `config set`,
52
+ `alias set`, `extension install`, `key add`) are refused outright, destructive
53
+ ones (`repo delete/archive/rename`, `release delete`, `secret set/delete`,
54
+ `gh api -X DELETE|PUT|PATCH`, GraphQL mutations) always confirm even under
55
+ `autoApproveSafeHostActions`, and everything else is allow-once.
56
+ `tools.gh.enabled` revokes the built-in grant.
57
+ - Community providers now appear in the create pickers (web UI and tray) and get
58
+ a real credential form, from a new `ProviderDescriptor` a plugin declares and
59
+ `agentbox plugin add` snapshots. Existing plugins keep working unchanged —
60
+ declaring one is optional.
61
+ - `agentbox code`, `open`, `prune`, `checkpoint set-default` and `fork` now gate
62
+ on a provider's declared capabilities instead of hardcoded name lists, so a
63
+ plugin that supports them gets them. DigitalOcean gains `code`/`open` this way.
64
+
65
+ ### Changed
66
+
67
+ - Provider SDK 2.9.0 adds `ProviderModule.descriptor`,
68
+ `ProviderModule.sizeIgnoredReason` and `CloudBackend.stageFilesAsRoot`, and
69
+ ships `agentbox-tool-shim` in place of the per-CLI `ntn`/`linear` shims.
70
+ Additive (`SDK_API_VERSION` stays 2), but a plugin whose provision script
71
+ installs `/tmp/agentbox-ntn-shim` must switch to `/tmp/agentbox-tool-shim`.
72
+
73
+ ### Removed
74
+
75
+ - The bespoke Notion and Linear connectors, along with
76
+ `integrations.notion.enabled` / `integrations.linear.enabled`. Both are
77
+ ordinary host tools now — `agentbox tools add ntn` does what the connector
78
+ did, for any CLI.
79
+
80
+ ### Fixed
81
+
82
+ - **Claude Code stopped claiming your login expired when it hadn't.** The check
83
+ read the ~8h access token rather than the ~30-day refresh token, so a healthy
84
+ login looked dead within a day of every sign-in — and accepting the prompt
85
+ rotated the shared token before you reached the browser, so cancelling left
86
+ every copy of that login holding a spent one. A lapsed access token is now
87
+ renewed silently, credential syncs are newest-wins in both directions, and a
88
+ rotation is re-sent until the relay confirms it instead of being lost to a
89
+ restart.
90
+ - Claude Code now runs with its classic renderer inside a box. Its fullscreen
91
+ renderer leaves stale characters in the blank areas of the screen over a
92
+ network transport — visible while scrolling, and cleared only by resizing the
93
+ terminal. `box.claudeTui` (`default` / `fullscreen` / `auto`) switches it back.
94
+ - Attached sessions no longer print escape-sequence debris into the content
95
+ area (#260). The status footer was repainted after every stream chunk, so it
96
+ spliced itself into whatever sequence the transport had cut in half. Worst on
97
+ finely-chunked providers, where a screen could be left unreadable.
98
+ - Host tools now run on the machine that granted them. With a remote hub they
99
+ executed on the control box, against a project directory that no longer
100
+ existed — so a box saw neither your grants nor your binaries. `agentbox tools
101
+ add/rm` also tells running boxes immediately (and says which ones took it)
102
+ instead of each box asking once a minute.
103
+ - `cp` between a box and your files now works with a remote hub. A control box
104
+ holds no checkout of your project, so it brokers the copy back to your machine
105
+ — which gates and runs it — instead of failing on a workspace that isn't
106
+ there. With your machine offline, a read is served from a cache the hub keeps
107
+ (approved separately, and labelled with its age) and a write is parked for
108
+ your machine to land on its next connect. `agentbox cp <file> hub:` pre-loads
109
+ a file so a box can read it with your machine off; `relay.hostReachTimeoutMs`
110
+ tunes how long the hub waits before falling back.
111
+ - `gh` from a box now targets the repo's own GitHub host (#242), so GitHub
112
+ Enterprise repos work and one stale `github.com` token no longer makes every
113
+ `gh` call look unauthenticated. `~/.ssh/config` host aliases in the remote are
114
+ expanded the way git and gh expand them.
115
+ - `agentbox <group> <typo>` no longer silently runs the group's default (#259):
116
+ `agentbox hetzner ssh` ran `hetzner login`, turning a typo into a credential
117
+ prompt. Unknown subcommands now list what the group accepts and exit 1.
118
+ - `agentbox create --provider <plugin>` failed with a 400 — creates go through
119
+ the hub, which only knew the built-in providers. `carry:` also failed, and
120
+ then hung the create, on any provider whose box user isn't root.
121
+ - `agentbox stop` on an E2B box now sticks; auto-resume revived it on the
122
+ relay's own next poll. E2B boxes also pause at the platform session cap (1h on
123
+ Hobby) instead of being destroyed by it, and a resumed box gets a fresh window
124
+ instead of the SDK's 5-minute default. On Vercel, a reconnect no longer stacks
125
+ a whole extra timeout window each time.
126
+ - `relay.port` now actually moves the host daemon. It was documented and
127
+ settable but never read, so the relay always bound 8787. It governs the hub
128
+ too — the two share the port — and 8788 is refused (boxes bind it internally).
129
+ `agentbox doctor` names docker boxes left dialling a port the host no longer
130
+ serves, since their host actions would otherwise just fail with a 502.
131
+ - `agentbox relay start` no longer reports success when the relay failed to
132
+ bind. It verifies `/healthz` really is our relay, names a foreign process
133
+ holding the port, inlines the log tail, clears the stale pidfile, and exits
134
+ non-zero.
135
+ - A local hub no longer inherits a configured control box's identity — it picked
136
+ up the deployed profile, served the password UI, and switched off the very
137
+ host-action poller it was meant to enable.
138
+ - A `box.size` / `box.size<Provider>` that Daytona or E2B will ignore (both fix
139
+ resources when the base image is baked) is now called out when you set it and
140
+ when you queue a `-i` create, instead of only in a detached job's log where
141
+ nobody sees it. Daytona also records the resources a snapshot actually has, so
142
+ the warning names real numbers rather than "the default size".
143
+
144
+ ## [0.28.2] - 2026-08-26
145
+
146
+ ### Fixed
147
+
148
+ - The hub and the lean relay fought over port 8787 whenever the CLI's version differed
149
+ from the running hub's — the standing state after any upgrade or publish. Each evicted
150
+ the other in a loop, and every eviction restarted the queue loop, so background `-i`
151
+ jobs sat at `queued`. `ensureRelay` now restarts a hub instead of replacing it with a
152
+ relay.
153
+ - `agentbox hub status` now warns when the hub was started before the bundle it runs
154
+ from was rebuilt — the state that produced `Cannot find module 'dist-XXXX.js'`.
155
+ - Taking port 8787 no longer leaves the other daemon's pidfile behind, so `relay status`
156
+ and `hub status` stop reporting a dead pid as running.
157
+
12
158
  ## [0.28.1] - 2026-08-26
13
159
 
14
160
  ### Fixed
@@ -0,0 +1,30 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ cloudAgentAttach,
4
+ cloudAgentStartDetached
5
+ } from "./chunk-73D2HKA3.js";
6
+ import "./chunk-F4PPZ4SI.js";
7
+ import "./chunk-53OTEDBS.js";
8
+ import "./chunk-2JHPGPLE.js";
9
+ import "./chunk-WHFCJBMO.js";
10
+ import {
11
+ buildCloudAttachInnerCommand,
12
+ verifyDetachedSession
13
+ } from "./chunk-4KYP775X.js";
14
+ import "./chunk-I2DEYQLZ.js";
15
+ import "./chunk-THKVKVRF.js";
16
+ import "./chunk-I7BSBUPC.js";
17
+ import "./chunk-CZPVVFCF.js";
18
+ import "./chunk-XENTK32L.js";
19
+ import "./chunk-7LNXTPEE.js";
20
+ import "./chunk-QESXSSO6.js";
21
+ import "./chunk-6V366IZC.js";
22
+ import "./chunk-MNDKP4VS.js";
23
+ import "./chunk-WJFZJZIM.js";
24
+ export {
25
+ buildCloudAttachInnerCommand,
26
+ cloudAgentAttach,
27
+ cloudAgentStartDetached,
28
+ verifyDetachedSession
29
+ };
30
+ //# sourceMappingURL=_cloud-attach-EUO2OL7W.js.map
@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ getRuntimeProviderNames,
4
+ isRuntimeProvider,
5
+ loadProviderModule
6
+ } from "./chunk-I7BSBUPC.js";
7
+ import {
8
+ REMOTE_DOCKER,
9
+ parseProviderSpec
10
+ } from "./chunk-7LNXTPEE.js";
11
+
12
+ // src/provider/spec.ts
13
+ function resolveCreateProviderSpec(providerName, remoteHost) {
14
+ const raw = providerName && providerName.trim() || "docker";
15
+ if (remoteHost && parseProviderSpec(raw).name === "docker") return `docker:${remoteHost}`;
16
+ return raw;
17
+ }
18
+ function resolveProviderChoice(cfg, opts = {}) {
19
+ const { name: providerName, remoteHost: specHost } = parseProviderSpec(
20
+ opts.provider?.trim() || cfg.box.provider || "docker"
21
+ );
22
+ const host = opts.remoteHost?.trim() || specHost || (cfg.box.remoteDockerHost || "").trim() || void 0;
23
+ const remoteHost = providerName === REMOTE_DOCKER ? host : void 0;
24
+ return { providerName, remoteHost, spec: providerSpecFor(providerName, remoteHost) };
25
+ }
26
+ function providerSpecFor(providerName, remoteHost) {
27
+ return providerName === REMOTE_DOCKER && remoteHost ? `docker:${remoteHost}` : providerName;
28
+ }
29
+
30
+ // src/provider/registry.ts
31
+ function isKnownProvider(name) {
32
+ try {
33
+ return isRuntimeProvider(parseProviderSpec(name).name);
34
+ } catch {
35
+ return false;
36
+ }
37
+ }
38
+ async function getProvider(name) {
39
+ const mod = await loadProviderModule(parseProviderSpec(name).name);
40
+ if (mod.ensureCredentials) await mod.ensureCredentials();
41
+ return mod.provider;
42
+ }
43
+ async function providerForBox(box) {
44
+ return getProvider(box.provider ?? "docker");
45
+ }
46
+ async function loadControlPlaneEnvLazily() {
47
+ const { loadControlPlaneEnv } = await import("./env-file-XT7SDXSX.js");
48
+ loadControlPlaneEnv();
49
+ }
50
+ async function providerForCreate(choice) {
51
+ const flag = choice.flag?.trim();
52
+ const spec = flag && flag.length > 0 ? flag : choice.config.box.provider;
53
+ if (typeof spec !== "string" || spec.length === 0 || !isKnownProvider(spec)) {
54
+ throw new Error(
55
+ `unknown sandbox provider "${String(spec)}" (known: ${getRuntimeProviderNames().join(", ")})`
56
+ );
57
+ }
58
+ if (choice.config.relay?.controlPlaneUrl) await loadControlPlaneEnvLazily();
59
+ return getProvider(spec);
60
+ }
61
+
62
+ export {
63
+ resolveCreateProviderSpec,
64
+ resolveProviderChoice,
65
+ providerSpecFor,
66
+ isKnownProvider,
67
+ getProvider,
68
+ providerForBox,
69
+ providerForCreate
70
+ };
71
+ //# sourceMappingURL=chunk-2JHPGPLE.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/provider/spec.ts","../src/provider/registry.ts"],"sourcesContent":["/**\n * `--provider` accepts a *spec*, not just a name — see\n * `@agentbox/config`'s `provider-spec.ts`, which owns the parser so the CLI and\n * the hub cannot drift on what `docker:<host>` means.\n *\n * Everything that takes a `--provider` runs its value through `parseProviderSpec`,\n * so a spec works anywhere a bare name does. A name with no `:` parses to\n * itself, which keeps every existing call site's behavior exactly as it was.\n */\n\nexport {\n parseProviderSpec,\n providerNameOf,\n REMOTE_DOCKER,\n type ProviderSpec,\n} from '@agentbox/config';\n\nimport type { EffectiveConfig } from '@agentbox/config';\nimport { parseProviderSpec, REMOTE_DOCKER } from '@agentbox/config';\n\n/**\n * The effective provider spec for a queued create job, folding a `remoteHost`\n * (the `--remote-host` flag) into the spec. A `--remote-host` on an otherwise-bare\n * `docker` job IS a remote-docker box — encode it as `docker:<host>` so the worker\n * resolves the REMOTE engine, not the local one (a bare `docker` job would build\n * on this machine, silently ignoring the host the submitter asked for). A cloud\n * name, or an explicit `docker:<host>` spec (which already carries its host), pass\n * through unchanged.\n */\nexport function resolveCreateProviderSpec(\n providerName: string | undefined,\n remoteHost: string | undefined,\n): string {\n const raw = (providerName && providerName.trim()) || 'docker';\n if (remoteHost && parseProviderSpec(raw).name === 'docker') return `docker:${remoteHost}`;\n return raw;\n}\n\n/**\n * Resolve the provider + engine for a command, in one place.\n *\n * `box.provider` is stored as a bare provider NAME (the parser splits a\n * `docker:<host>` spec into `box.provider` + `box.remoteDockerHost`), so a\n * command can no longer get the host out of the config value itself. It has to\n * read the second key — and it must, because `dockerProviderRefusal` decides\n * whether a remote-docker create is allowed by whether the control box can\n * reach that host: a dropped host reads as \"no engine\" and refuses the create.\n *\n * Precedence, unchanged from when the spec carried the host: an explicit\n * `--remote-host` beats the host inside `--provider docker:<host>`, which beats\n * the configured `box.remoteDockerHost`.\n */\nexport function resolveProviderChoice(\n cfg: EffectiveConfig,\n opts: { provider?: string; remoteHost?: string } = {},\n): { providerName: string; remoteHost: string | undefined; spec: string } {\n const { name: providerName, remoteHost: specHost } = parseProviderSpec(\n opts.provider?.trim() || cfg.box.provider || 'docker',\n );\n const host =\n opts.remoteHost?.trim() || specHost || (cfg.box.remoteDockerHost || '').trim() || undefined;\n // Only remote-docker has an engine; carrying a stray host onto a cloud\n // provider would make `--remote-host` look honoured when it is ignored.\n const remoteHost = providerName === REMOTE_DOCKER ? host : undefined;\n return { providerName, remoteHost, spec: providerSpecFor(providerName, remoteHost) };\n}\n\n/**\n * The wire form for the hub API, which still speaks the spec: the hub worker\n * splits it again on its side (`parseProviderSpec` in `hub-worker.ts`). Only\n * remote-docker re-sugars; every other name is already the whole story.\n */\nexport function providerSpecFor(providerName: string, remoteHost: string | undefined): string {\n return providerName === REMOTE_DOCKER && remoteHost ? `docker:${remoteHost}` : providerName;\n}\n","/**\n * Provider registry — resolves a `Provider` for either an existing box (from\n * its `provider` discriminator) or a fresh `create` (from --provider flag /\n * config / default). Lazy `import()` keeps the Daytona SDK out of the Docker\n * hot path.\n */\n\nimport type { EffectiveConfig } from '@agentbox/config';\nimport type { ProviderKind } from '@agentbox/config';\nimport type { BoxRecord, Provider, ProviderName } from '@agentbox/core';\nimport { getRuntimeProviderNames, isRuntimeProvider, loadProviderModule } from './loaders.js';\nimport { parseProviderSpec } from './spec.js';\n\n/** A built-in `ProviderKind` OR a registered plugin provider name. */\nexport type KnownProviderName = ProviderKind | (string & {});\n\n/**\n * True for a built-in provider, a registered plugin provider, or a\n * host-qualified spec (`docker:<host>`). Every `--provider` validation goes\n * through here, so a spec is accepted everywhere a bare name is.\n */\nexport function isKnownProvider(name: string): boolean {\n try {\n return isRuntimeProvider(parseProviderSpec(name).name);\n } catch {\n // A malformed spec (`docker:` with no host) is not a known provider; the\n // caller's error message names it.\n return false;\n }\n}\n\n/**\n * Resolve a `Provider` by name or spec, running its first-run credential gate\n * first. Each provider package's `providerModule.ensureCredentials` walks the\n * user through `agentbox <provider> login` on first use (a no-op for docker and\n * remote-docker, which have no credential, and for non-TTY callers). The\n * base-snapshot gate lives inside `backend.provision`, not here, so `agentbox\n * prepare` can build the snapshot without tripping it. Built-ins load through\n * the bundle-inlined map; unknown names fall back to the plugin registry.\n */\nexport async function getProvider(name: ProviderName): Promise<Provider> {\n const mod = await loadProviderModule(parseProviderSpec(name).name);\n if (mod.ensureCredentials) await mod.ensureCredentials();\n return mod.provider;\n}\n\n/** Provider for an existing box record. Defaults to 'docker' for legacy records. */\nexport async function providerForBox(box: BoxRecord): Promise<Provider> {\n return getProvider(box.provider ?? 'docker');\n}\n\nexport interface CreateProviderChoice {\n /** Explicit --provider flag, if the command exposed one. */\n flag?: string;\n /** Effective config (carries box.provider for the layered default). */\n config: EffectiveConfig;\n}\n\n/**\n * Provider for a fresh `agentbox create`. Precedence: --provider flag >\n * box.provider config > 'docker'. Throws if the resolved name isn't registered.\n */\n/** Lazy: keeps the env-file read off every `getProvider` call. */\nasync function loadControlPlaneEnvLazily(): Promise<void> {\n const { loadControlPlaneEnv } = await import('../control-plane/env-file.js');\n loadControlPlaneEnv();\n}\n\nexport async function providerForCreate(choice: CreateProviderChoice): Promise<Provider> {\n const flag = choice.flag?.trim();\n const spec = (flag && flag.length > 0 ? flag : choice.config.box.provider) as ProviderName;\n if (typeof spec !== 'string' || spec.length === 0 || !isKnownProvider(spec)) {\n throw new Error(\n `unknown sandbox provider \"${String(spec)}\" (known: ${getRuntimeProviderNames().join(', ')})`,\n );\n }\n // A control-plane create needs the admin bearer in `process.env` — the\n // provider registers the box on the plane and pushes seed material with it.\n // The token lives in the setup-written env file, and nothing on the create\n // path was loading it, so in an ordinary shell (where the user has not\n // sourced it) every PC create silently skipped registration: the box came up\n // with `topology: control-plane` but the plane never heard of it, its seed was\n // never stored, and its `git push` had no token to lease with.\n //\n // Every create path resolves its provider through here, so this is the one\n // place that covers create / claude / codex / opencode / queued jobs.\n // Optional-chained: a real EffectiveConfig always carries `relay` (defaults\n // fill it), but callers/tests hand this a narrower object.\n if (choice.config.relay?.controlPlaneUrl) await loadControlPlaneEnvLazily();\n return getProvider(spec);\n}\n"],"mappings":";;;;;;;;;;;;AA6BO,SAAS,0BACd,cACA,YACQ;AACR,QAAM,MAAO,gBAAgB,aAAa,KAAK,KAAM;AACrD,MAAI,cAAc,kBAAkB,GAAG,EAAE,SAAS,SAAU,QAAO,UAAU,UAAU;AACvF,SAAO;AACT;AAgBO,SAAS,sBACd,KACA,OAAmD,CAAC,GACoB;AACxE,QAAM,EAAE,MAAM,cAAc,YAAY,SAAS,IAAI;AAAA,IACnD,KAAK,UAAU,KAAK,KAAK,IAAI,IAAI,YAAY;AAAA,EAC/C;AACA,QAAM,OACJ,KAAK,YAAY,KAAK,KAAK,aAAa,IAAI,IAAI,oBAAoB,IAAI,KAAK,KAAK;AAGpF,QAAM,aAAa,iBAAiB,gBAAgB,OAAO;AAC3D,SAAO,EAAE,cAAc,YAAY,MAAM,gBAAgB,cAAc,UAAU,EAAE;AACrF;AAOO,SAAS,gBAAgB,cAAsB,YAAwC;AAC5F,SAAO,iBAAiB,iBAAiB,aAAa,UAAU,UAAU,KAAK;AACjF;;;ACrDO,SAAS,gBAAgB,MAAuB;AACrD,MAAI;AACF,WAAO,kBAAkB,kBAAkB,IAAI,EAAE,IAAI;AAAA,EACvD,QAAQ;AAGN,WAAO;AAAA,EACT;AACF;AAWA,eAAsB,YAAY,MAAuC;AACvE,QAAM,MAAM,MAAM,mBAAmB,kBAAkB,IAAI,EAAE,IAAI;AACjE,MAAI,IAAI,kBAAmB,OAAM,IAAI,kBAAkB;AACvD,SAAO,IAAI;AACb;AAGA,eAAsB,eAAe,KAAmC;AACtE,SAAO,YAAY,IAAI,YAAY,QAAQ;AAC7C;AAcA,eAAe,4BAA2C;AACxD,QAAM,EAAE,oBAAoB,IAAI,MAAM,OAAO,wBAA8B;AAC3E,sBAAoB;AACtB;AAEA,eAAsB,kBAAkB,QAAiD;AACvF,QAAM,OAAO,OAAO,MAAM,KAAK;AAC/B,QAAM,OAAQ,QAAQ,KAAK,SAAS,IAAI,OAAO,OAAO,OAAO,IAAI;AACjE,MAAI,OAAO,SAAS,YAAY,KAAK,WAAW,KAAK,CAAC,gBAAgB,IAAI,GAAG;AAC3E,UAAM,IAAI;AAAA,MACR,6BAA6B,OAAO,IAAI,CAAC,aAAa,wBAAwB,EAAE,KAAK,IAAI,CAAC;AAAA,IAC5F;AAAA,EACF;AAaA,MAAI,OAAO,OAAO,OAAO,gBAAiB,OAAM,0BAA0B;AAC1E,SAAO,YAAY,IAAI;AACzB;","names":[]}
@@ -15,14 +15,9 @@ import {
15
15
  portlessGetUrl,
16
16
  portlessUnalias,
17
17
  readBoxStatus,
18
- registerBoxWithRelay
19
- } from "./chunk-46NNZMZT.js";
20
- import {
21
- hashProjectPath,
22
- loadEffectiveConfig,
23
- projectDirSegment,
24
- sanitizeMnemonic
25
- } from "./chunk-NHVGKFVY.js";
18
+ registerBoxWithRelay,
19
+ stopBoxPollerOnRelay
20
+ } from "./chunk-I2DEYQLZ.js";
26
21
  import {
27
22
  AGENT_SYNC_SPECS,
28
23
  BOX_DYNAMIC_SYNC_MANIFEST,
@@ -36,6 +31,7 @@ import {
36
31
  allocateProjectIndex,
37
32
  boxSshDirForProvider,
38
33
  buildHostSyncManifest,
34
+ claudeTuiEnv,
39
35
  computeSyncDelta,
40
36
  describeInbound,
41
37
  detectGitRepos,
@@ -76,7 +72,13 @@ import {
76
72
  stageOpencodeStaticForUpload,
77
73
  writeCredentialBackup,
78
74
  writePreparedStateRaw
79
- } from "./chunk-GFOWBXV7.js";
75
+ } from "./chunk-XENTK32L.js";
76
+ import {
77
+ hashProjectPath,
78
+ loadEffectiveConfig,
79
+ projectDirSegment,
80
+ sanitizeMnemonic
81
+ } from "./chunk-7LNXTPEE.js";
80
82
 
81
83
  // ../../packages/sandbox-cloud/dist/index.js
82
84
  import { existsSync as existsSync2 } from "fs";
@@ -951,13 +953,12 @@ async function uploadOneEntry(args) {
951
953
  parts.push(`chown -R ${chownTarget} ${shellQuote(boxDest)}`);
952
954
  if (plan.parentChainNeeded) {
953
955
  parts.push(
954
- `parent=$(dirname ${shellQuote(boxDest)}); while [ "$parent" != "${BOX_HOME}" ] && [ "$parent" != "/" ]; do chown ${chownTarget} "$parent"; parent=$(dirname "$parent"); done`
956
+ `{ parent=$(dirname ${shellQuote(boxDest)}); while [ -n "$parent" ] && [ "$parent" != "." ] && [ "$parent" != "${BOX_HOME}" ] && [ "$parent" != "/" ]; do chown ${chownTarget} "$parent"; parent=$(dirname "$parent"); done; }`
955
957
  );
956
958
  }
957
959
  parts.push(`rm -f ${remoteTar}`);
958
960
  const cmd = parts.join(" && ");
959
- const wantsRoot = args.backend.name === "vercel" || args.backend.name === "e2b";
960
- const execOpts = wantsRoot ? { user: "root" } : void 0;
961
+ const execOpts = args.backend.stageFilesAsRoot ? { user: "root" } : void 0;
961
962
  const res = await args.backend.exec(args.handle, cmd, execOpts);
962
963
  if (res.exitCode !== 0) {
963
964
  throw new Error(
@@ -2573,6 +2574,38 @@ function createCloudProvider(backend, opts = {}) {
2573
2574
  } catch {
2574
2575
  }
2575
2576
  }
2577
+ async function reRegisterCloudBoxWithRelay(box) {
2578
+ const previewUrl = box.cloud?.relayPreviewUrl;
2579
+ const bridgeToken = box.cloud?.bridgeToken;
2580
+ if (!previewUrl || !bridgeToken || !box.relayToken) return;
2581
+ await registerBoxWithRelay({
2582
+ boxId: box.id,
2583
+ token: box.relayToken,
2584
+ name: box.name,
2585
+ kind: "cloud",
2586
+ backend: backend.name,
2587
+ previewUrl,
2588
+ previewToken: box.cloud?.relayPreviewToken,
2589
+ bridgeToken,
2590
+ createdAt: box.createdAt,
2591
+ projectIndex: box.projectIndex,
2592
+ autoApproveHostActions: box.autoApproveHostActions,
2593
+ autoApproveSafeHostActions: box.autoApproveSafeHostActions
2594
+ });
2595
+ }
2596
+ async function pauseWithPollerStopped(box, doPause) {
2597
+ await stopBoxPollerOnRelay(box.id);
2598
+ try {
2599
+ await doPause();
2600
+ } catch (err) {
2601
+ try {
2602
+ await reRegisterCloudBoxWithRelay(box);
2603
+ } catch {
2604
+ }
2605
+ throw err;
2606
+ }
2607
+ await persistLastState(box, "paused");
2608
+ }
2576
2609
  async function reEnsureCloudBox(box, h) {
2577
2610
  const webPort = box.cloud?.webPort ?? backend.webProxyPort ?? CLOUD_WEB_PROXY_PORT;
2578
2611
  let webPreview;
@@ -2640,6 +2673,21 @@ function createCloudProvider(backend, opts = {}) {
2640
2673
  } catch {
2641
2674
  }
2642
2675
  }
2676
+ const sessionTimeoutMs = box.cloud?.sessionTimeoutMs;
2677
+ let sessionDeadlineEpochMs = box.cloud?.sessionDeadlineEpochMs;
2678
+ if (backend.renewTimeout && sessionTimeoutMs != null && sessionTimeoutMs > 0) {
2679
+ const now = Date.now();
2680
+ const target = now + sessionTimeoutMs;
2681
+ const recorded = box.cloud?.sessionDeadlineEpochMs;
2682
+ const current = recorded != null && recorded > now ? recorded : now;
2683
+ if (current < target) {
2684
+ try {
2685
+ await backend.renewTimeout(h, target, current);
2686
+ sessionDeadlineEpochMs = target;
2687
+ } catch {
2688
+ }
2689
+ }
2690
+ }
2643
2691
  const next = {
2644
2692
  ...box,
2645
2693
  portlessAlias: portlessAliasName,
@@ -2649,6 +2697,7 @@ function createCloudProvider(backend, opts = {}) {
2649
2697
  cloud: {
2650
2698
  ...box.cloud ?? { backend: providerName, sandboxId: h.sandboxId },
2651
2699
  webPort,
2700
+ sessionDeadlineEpochMs,
2652
2701
  previewUrls: Object.keys(mergedPreviews).length > 0 ? mergedPreviews : void 0,
2653
2702
  relayPreviewUrl: relayPreview?.url ?? box.cloud?.relayPreviewUrl,
2654
2703
  relayPreviewToken: relayPreview?.token ?? box.cloud?.relayPreviewToken,
@@ -3210,6 +3259,7 @@ function createCloudProvider(backend, opts = {}) {
3210
3259
  snapshotRef: resolvedCheckpointRef,
3211
3260
  lastState: "running",
3212
3261
  sessionTimeoutMs: timeoutMs,
3262
+ sessionDeadlineEpochMs: timeoutMs != null && timeoutMs > 0 ? Date.now() + timeoutMs : void 0,
3213
3263
  // Real resources the backend reported (Hetzner: the plan's actual
3214
3264
  // cores/memory/disk). Absent → readers fall back to defaultResources.
3215
3265
  resources: handle.resources,
@@ -3306,8 +3356,7 @@ function createCloudProvider(backend, opts = {}) {
3306
3356
  if (cloud) await recordBox({ ...box, cloud: { ...cloud, gitPushMode: "direct" } });
3307
3357
  },
3308
3358
  async pause(box) {
3309
- await backend.pause(handleFor(box));
3310
- await persistLastState(box, "paused");
3359
+ await pauseWithPollerStopped(box, () => backend.pause(handleFor(box)));
3311
3360
  },
3312
3361
  async resume(box) {
3313
3362
  const h = handleFor(box);
@@ -3315,8 +3364,7 @@ function createCloudProvider(backend, opts = {}) {
3315
3364
  await reEnsureCloudBox(box, h);
3316
3365
  },
3317
3366
  async stop(box) {
3318
- await backend.stop(handleFor(box));
3319
- await persistLastState(box, "paused");
3367
+ await pauseWithPollerStopped(box, () => backend.stop(handleFor(box)));
3320
3368
  },
3321
3369
  async destroy(box) {
3322
3370
  try {
@@ -3663,18 +3711,22 @@ function emptyCloudStats(provider) {
3663
3711
  warnings: []
3664
3712
  };
3665
3713
  }
3714
+ function shQuote(v) {
3715
+ return `"${v.replace(/(["$`\\])/g, "\\$1")}"`;
3716
+ }
3666
3717
  function agentStartBanner(binary) {
3667
3718
  return `printf " agentbox: starting ${binary} (first paint may take a few seconds)...\\r\\n"; `;
3668
3719
  }
3669
- function buildCloudAttachInnerCommand(binary, extraArgs) {
3720
+ function buildCloudAttachInnerCommand(binary, extraArgs, env) {
3721
+ const exports = Object.entries(env ?? {}).map(([k, v]) => `export ${k}=${shQuote(v)}; `).join("");
3670
3722
  if (!extraArgs || extraArgs.length === 0) {
3671
- return `bash -lc '${agentStartBanner(binary)}exec ${binary}'`;
3723
+ return `bash -lc '${agentStartBanner(binary)}${exports}exec ${binary}'`;
3672
3724
  }
3673
3725
  const blob = Buffer.from(
3674
3726
  extraArgs.map((a) => Buffer.from(a, "utf8").toString("base64")).join("\n"),
3675
3727
  "utf8"
3676
3728
  ).toString("base64");
3677
- return `bash -lc '${agentStartBanner(binary)}A=(); while IFS= read -r t; do A+=("$(printf %s "$t" | base64 -d)"); done <<< "$(echo ${blob} | base64 -d)"; exec ${binary} "\${A[@]}"'`;
3729
+ return `bash -lc '${agentStartBanner(binary)}${exports}A=(); while IFS= read -r t; do A+=("$(printf %s "$t" | base64 -d)"); done <<< "$(echo ${blob} | base64 -d)"; exec ${binary} "\${A[@]}"'`;
3678
3730
  }
3679
3731
  async function startDetachedSession(provider, box, sessionName, command) {
3680
3732
  if (!provider.buildAttach) {
@@ -3758,6 +3810,13 @@ async function tmuxSessionExists(provider, box, sessionName) {
3758
3810
  return false;
3759
3811
  }
3760
3812
  }
3813
+ async function resolveBoxClaudeTui(box) {
3814
+ try {
3815
+ return (await loadEffectiveConfig(box.workspacePath)).effective.box.claudeTui;
3816
+ } catch {
3817
+ return "default";
3818
+ }
3819
+ }
3761
3820
  async function startDetachedCloudAgent(args) {
3762
3821
  const { provider, binary, sessionName } = args;
3763
3822
  let box = args.box;
@@ -3773,7 +3832,11 @@ async function startDetachedCloudAgent(args) {
3773
3832
  const resume = await args.resolveResumeArgs(box);
3774
3833
  if (resume) extraArgs = resume;
3775
3834
  }
3776
- const command = buildCloudAttachInnerCommand(binary, extraArgs);
3835
+ const command = buildCloudAttachInnerCommand(
3836
+ binary,
3837
+ extraArgs,
3838
+ binary === "claude" ? claudeTuiEnv(await resolveBoxClaudeTui(box)) : void 0
3839
+ );
3777
3840
  const attempts = Math.max(1, args.startRetry?.attempts ?? DEFAULT_START_ATTEMPTS);
3778
3841
  const backoffMs = args.startRetry?.backoffMs ?? DEFAULT_START_BACKOFF_MS;
3779
3842
  for (let attempt = 1; ; attempt++) {
@@ -3972,6 +4035,7 @@ function makeMockCloudBackend(opts = {}) {
3972
4035
  };
3973
4036
  const backend = {
3974
4037
  name,
4038
+ ...opts.stageFilesAsRoot ? { stageFilesAsRoot: true } : {},
3975
4039
  get calls() {
3976
4040
  return calls;
3977
4041
  },
@@ -4174,4 +4238,4 @@ export {
4174
4238
  openWebAppOnVncScreen,
4175
4239
  makeMockCloudBackend
4176
4240
  };
4177
- //# sourceMappingURL=chunk-JQLOGVZK.js.map
4241
+ //# sourceMappingURL=chunk-4KYP775X.js.map