@madarco/agentbox 0.28.1 → 0.29.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 (452) hide show
  1. package/CHANGELOG.md +124 -0
  2. package/dist/_cloud-attach-HKRHYCY7.js +30 -0
  3. package/dist/{chunk-JNC7MCWJ.js → chunk-3INUZQTR.js} +10 -10
  4. package/dist/chunk-3INUZQTR.js.map +1 -0
  5. package/dist/{chunk-4PR3KJ5X.js → chunk-6PIGTR4D.js} +20 -20
  6. package/dist/{chunk-NHVGKFVY.js → chunk-7LNXTPEE.js} +340 -22
  7. package/dist/chunk-7LNXTPEE.js.map +1 -0
  8. package/dist/{chunk-WB6S4W7O.js → chunk-7Q6BG5AN.js} +2413 -1012
  9. package/dist/chunk-7Q6BG5AN.js.map +1 -0
  10. package/dist/{chunk-BUMKBUXS.js → chunk-7QU6XENE.js} +3 -3
  11. package/dist/chunk-BWE2I5QG.js +17 -0
  12. package/dist/chunk-BWE2I5QG.js.map +1 -0
  13. package/dist/{chunk-7ABO7OIF.js → chunk-CO2I3CQI.js} +4 -4
  14. package/dist/{chunk-OUF3YTQO.js → chunk-DBXCFLAR.js} +14 -17
  15. package/dist/chunk-DBXCFLAR.js.map +1 -0
  16. package/dist/{chunk-74VIUGY6.js → chunk-DYETLPUT.js} +6 -9
  17. package/dist/chunk-DYETLPUT.js.map +1 -0
  18. package/dist/{chunk-HYXCH4GA.js → chunk-EFVTQ7YB.js} +7 -7
  19. package/dist/{chunk-46NNZMZT.js → chunk-EPFXLXCW.js} +372 -72
  20. package/dist/chunk-EPFXLXCW.js.map +1 -0
  21. package/dist/chunk-GWKGSXDC.js +71 -0
  22. package/dist/chunk-GWKGSXDC.js.map +1 -0
  23. package/dist/{chunk-CKD3PRON.js → chunk-GWYD7YBK.js} +12 -9
  24. package/dist/{chunk-CKD3PRON.js.map → chunk-GWYD7YBK.js.map} +1 -1
  25. package/dist/{chunk-NHTRTST5.js → chunk-HNWZO2XU.js} +38 -15
  26. package/dist/chunk-HNWZO2XU.js.map +1 -0
  27. package/dist/{chunk-EVT2SNF2.js → chunk-HO2ACZES.js} +3 -3
  28. package/dist/{chunk-V5NWSLWD.js → chunk-HP4L45LW.js} +14 -14
  29. package/dist/{chunk-B4DAH2F2.js → chunk-LHOKRCNF.js} +3 -3
  30. package/dist/{chunk-G3H2L3O2.js → chunk-MNDKP4VS.js} +23 -3
  31. package/dist/chunk-MNDKP4VS.js.map +1 -0
  32. package/dist/{chunk-JDSYMTMS.js → chunk-NAT2H7J4.js} +110 -66
  33. package/dist/chunk-NAT2H7J4.js.map +1 -0
  34. package/dist/{chunk-KFLGXE3R.js → chunk-NGERWFSA.js} +133 -22
  35. package/dist/chunk-NGERWFSA.js.map +1 -0
  36. package/dist/{chunk-GFOWBXV7.js → chunk-OKLEPEWZ.js} +460 -253
  37. package/dist/chunk-OKLEPEWZ.js.map +1 -0
  38. package/dist/{chunk-YI4GHC2E.js → chunk-QU5BI2HC.js} +12 -15
  39. package/dist/chunk-QU5BI2HC.js.map +1 -0
  40. package/dist/{chunk-BWM56FKY.js → chunk-RQURMAPA.js} +11 -11
  41. package/dist/{chunk-FPMRFMVK.js → chunk-RZCLRWNY.js} +9 -9
  42. package/dist/{chunk-JQLOGVZK.js → chunk-THUST2QK.js} +85 -21
  43. package/dist/chunk-THUST2QK.js.map +1 -0
  44. package/dist/{chunk-OXKW4GWD.js → chunk-UPVP6YGJ.js} +4 -70
  45. package/dist/chunk-UPVP6YGJ.js.map +1 -0
  46. package/dist/{chunk-7RSE7ESY.js → chunk-VVNXQ4XS.js} +27 -18
  47. package/dist/chunk-VVNXQ4XS.js.map +1 -0
  48. package/dist/{chunk-FGQFVUMH.js → chunk-VY54AX4T.js} +3 -3
  49. package/dist/{chunk-OUWVN2F2.js → chunk-WGNI24H2.js} +16 -13
  50. package/dist/chunk-WGNI24H2.js.map +1 -0
  51. package/dist/{chunk-PSA6GADQ.js → chunk-WHFCJBMO.js} +14 -1
  52. package/dist/chunk-WHFCJBMO.js.map +1 -0
  53. package/dist/{chunk-KJ5TCYNI.js → chunk-WHJYOO5H.js} +7 -6
  54. package/dist/chunk-WHJYOO5H.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-UKKYXHIQ.js} +19 -18
  58. package/dist/cp-hub-upload-BM2OLTOS.js +81 -0
  59. package/dist/cp-hub-upload-BM2OLTOS.js.map +1 -0
  60. package/dist/{custody-client-PNCC2HBJ.js → custody-client-NPXJ46TB.js} +5 -4
  61. package/dist/{deploy-hetzner-SSGSXAKA.js → deploy-hetzner-Y3ILCDRF.js} +10 -10
  62. package/dist/{dist-RN6JOAG4.js → dist-5OGQ3CJQ.js} +81 -45
  63. package/dist/{dist-5OR4QTQW.js → dist-7B3VCLZI.js} +9 -9
  64. package/dist/{dist-EPFS5PRI.js → dist-A5ZEIVAW.js} +10 -10
  65. package/dist/{dist-6PYXFREL.js → dist-DOEGENNW.js} +61 -16
  66. package/dist/dist-DOEGENNW.js.map +1 -0
  67. package/dist/{dist-XQLKK7H3.js → dist-EOGD7KD6.js} +54 -28
  68. package/dist/dist-EOGD7KD6.js.map +1 -0
  69. package/dist/{dist-XATN4ZIR.js → dist-FBM2WS5S.js} +22 -4
  70. package/dist/{dist-POILUDVJ.js → dist-MUTFY7FA.js} +9 -9
  71. package/dist/{dist-ZNQZHTUN.js → dist-SMDXLPZO.js} +35 -6
  72. package/dist/{dist-M4O5MU5K.js → dist-VTLQKZ2E.js} +8 -8
  73. package/dist/{dist-SN2TCRZ5.js → dist-ZJIJHCZB.js} +9 -9
  74. package/dist/{dist-K5M4HKG7.js → dist-ZNYS7CVF.js} +21 -9
  75. package/dist/host-reach-drainer-ZJU2STQQ.js +9 -0
  76. package/dist/hub-Q4VOF4WN.js +37 -0
  77. package/dist/{hub-adopt-I44VGSBL.js → hub-adopt-OA336ZXZ.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-JKFCABK4.js} +16 -16
  80. package/dist/index.js +1321 -882
  81. package/dist/index.js.map +1 -1
  82. package/dist/prepare-GFWWKWGF.js +41 -0
  83. package/dist/prepared-custody-KU4PDVBT.js +36 -0
  84. package/dist/{prepared-state-PV3GUBHO-MF56HWMZ.js → prepared-state-LNQ7DYSU-AR5RMXAO.js} +4 -3
  85. package/dist/{publish-credentials-BPHUO5VL.js → publish-credentials-3SQXX45P.js} +11 -11
  86. package/dist/registry-AFKV3EO2.js +18 -0
  87. package/dist/relay-QH6OEY2V.js +20 -0
  88. package/dist/relay-QH6OEY2V.js.map +1 -0
  89. package/dist/{remote-docker-share-RX5ARK45.js → remote-docker-share-RMS6IB5X.js} +11 -11
  90. package/dist/remote-docker-share-RMS6IB5X.js.map +1 -0
  91. package/dist/tool-grant-push-T6DRBY3W.js +90 -0
  92. package/dist/tool-grant-push-T6DRBY3W.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 +6757 -5299
  96. package/runtime/_shared/gh-shim +103 -228
  97. package/runtime/digitalocean/agentbox-tool-shim +21 -0
  98. package/runtime/digitalocean/ctl.cjs +6757 -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 +6757 -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 +6757 -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 +6757 -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-VKOCY6SX.js → chunk-3AD3MYNV.js} +49 -14
  336. package/runtime/hub/apps/hub/{chunk-KTVETF3F.js → chunk-3ZDBZYOY.js} +11 -8
  337. package/runtime/hub/apps/hub/{chunk-LPYK2354.js → chunk-5ABFGGPT.js} +339 -21
  338. package/runtime/hub/apps/hub/{chunk-UMPTTQBE.js → chunk-GBYD2ODL.js} +458 -251
  339. package/runtime/hub/apps/hub/{chunk-5TM7XXLT.js → chunk-H5SUXDZA.js} +2833 -1277
  340. package/runtime/hub/apps/hub/{chunk-QU3FFGJY.js → chunk-UQ5XNPOF.js} +11 -14
  341. package/runtime/hub/apps/hub/{chunk-3LAHFDJF.js → chunk-VWQNSZGI.js} +22 -2
  342. package/runtime/hub/apps/hub/{chunk-EZUK53CC.js → chunk-WHGY7HOC.js} +85 -21
  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-ELZHBQEM.js → dist-37EKQ6RZ.js} +11 -11
  346. package/runtime/hub/apps/hub/{dist-D265LCAN.js → dist-CGH7PEMZ.js} +21 -3
  347. package/runtime/hub/apps/hub/{dist-SYWTB6RD.js → dist-CMVSARW5.js} +15 -18
  348. package/runtime/hub/apps/hub/{dist-5HTJSOHS.js → dist-EGXZRZH2.js} +19 -7
  349. package/runtime/hub/apps/hub/{dist-YK5FFPXZ.js → dist-EOGGFZZS.js} +62 -20
  350. package/runtime/hub/apps/hub/{dist-E2FTSTCY.js → dist-LJBHOO3K.js} +34 -5
  351. package/runtime/hub/apps/hub/{dist-N3E5YAYY.js → dist-R77W6WJ5.js} +53 -26
  352. package/runtime/hub/apps/hub/{dist-JVEDVVVG.js → dist-TH2JZYZY.js} +7 -7
  353. package/runtime/hub/apps/hub/{dist-2YP57GMB.js → dist-XPRGHQH2.js} +13 -13
  354. package/runtime/hub/apps/hub/{dist-NKCXH5DW.js → dist-Z2Y5F7AF.js} +6 -6
  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-DXVMUQWF.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-ABC2EQVI.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 +16623 -14688
  371. package/runtime/vercel/agentbox-tool-shim +21 -0
  372. package/runtime/vercel/ctl.cjs +6757 -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-HKRHYCY7.js.map} +0 -0
  417. /package/dist/{chunk-4PR3KJ5X.js.map → chunk-6PIGTR4D.js.map} +0 -0
  418. /package/dist/{chunk-BUMKBUXS.js.map → chunk-7QU6XENE.js.map} +0 -0
  419. /package/dist/{chunk-7ABO7OIF.js.map → chunk-CO2I3CQI.js.map} +0 -0
  420. /package/dist/{chunk-HYXCH4GA.js.map → chunk-EFVTQ7YB.js.map} +0 -0
  421. /package/dist/{chunk-EVT2SNF2.js.map → chunk-HO2ACZES.js.map} +0 -0
  422. /package/dist/{chunk-V5NWSLWD.js.map → chunk-HP4L45LW.js.map} +0 -0
  423. /package/dist/{chunk-B4DAH2F2.js.map → chunk-LHOKRCNF.js.map} +0 -0
  424. /package/dist/{chunk-BWM56FKY.js.map → chunk-RQURMAPA.js.map} +0 -0
  425. /package/dist/{chunk-FPMRFMVK.js.map → chunk-RZCLRWNY.js.map} +0 -0
  426. /package/dist/{chunk-FGQFVUMH.js.map → chunk-VY54AX4T.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-UKKYXHIQ.js.map} +0 -0
  429. /package/dist/{custody-client-PNCC2HBJ.js.map → custody-client-NPXJ46TB.js.map} +0 -0
  430. /package/dist/{deploy-hetzner-SSGSXAKA.js.map → deploy-hetzner-Y3ILCDRF.js.map} +0 -0
  431. /package/dist/{dist-5OR4QTQW.js.map → dist-5OGQ3CJQ.js.map} +0 -0
  432. /package/dist/{dist-EPFS5PRI.js.map → dist-7B3VCLZI.js.map} +0 -0
  433. /package/dist/{dist-K5M4HKG7.js.map → dist-A5ZEIVAW.js.map} +0 -0
  434. /package/dist/{dist-M4O5MU5K.js.map → dist-FBM2WS5S.js.map} +0 -0
  435. /package/dist/{dist-POILUDVJ.js.map → dist-MUTFY7FA.js.map} +0 -0
  436. /package/dist/{dist-RN6JOAG4.js.map → dist-SMDXLPZO.js.map} +0 -0
  437. /package/dist/{dist-SN2TCRZ5.js.map → dist-VTLQKZ2E.js.map} +0 -0
  438. /package/dist/{dist-XATN4ZIR.js.map → dist-ZJIJHCZB.js.map} +0 -0
  439. /package/dist/{dist-ZNQZHTUN.js.map → dist-ZNYS7CVF.js.map} +0 -0
  440. /package/dist/{hub-MJ7O4WXW.js.map → host-reach-drainer-ZJU2STQQ.js.map} +0 -0
  441. /package/dist/{hub-adopt-I44VGSBL.js.map → hub-Q4VOF4WN.js.map} +0 -0
  442. /package/dist/{hub-api-client-WJPBXZAZ.js.map → hub-adopt-OA336ZXZ.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-JKFCABK4.js.map} +0 -0
  445. /package/dist/{prepared-custody-QIXW7MJM.js.map → prepare-GFWWKWGF.js.map} +0 -0
  446. /package/dist/{prepared-state-PV3GUBHO-MF56HWMZ.js.map → prepared-custody-KU4PDVBT.js.map} +0 -0
  447. /package/dist/{relay-DRDELF6B.js.map → prepared-state-LNQ7DYSU-AR5RMXAO.js.map} +0 -0
  448. /package/dist/{publish-credentials-BPHUO5VL.js.map → publish-credentials-3SQXX45P.js.map} +0 -0
  449. /package/dist/{remote-docker-share-RX5ARK45.js.map → registry-AFKV3EO2.js.map} +0 -0
  450. /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → XIx10ozuCZRzwSsiCF_5t}/_buildManifest.js +0 -0
  451. /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → XIx10ozuCZRzwSsiCF_5t}/_clientMiddlewareManifest.js +0 -0
  452. /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → XIx10ozuCZRzwSsiCF_5t}/_ssgManifest.js +0 -0
@@ -4,6 +4,7 @@ import {
4
4
  BoxRegistry,
5
5
  BoxStatusStore,
6
6
  CREDENTIALS_UPDATED_EVENT,
7
+ CREDENTIAL_ARGV_PATTERNS,
7
8
  CUSTODY_BLOB_PATH_PREFIX,
8
9
  CUSTODY_PATH_PREFIX,
9
10
  CUSTODY_SCOPES,
@@ -12,20 +13,19 @@ import {
12
13
  CustodyTooLargeError,
13
14
  DEFAULT_BOX_RELAY_PORT,
14
15
  DEFAULT_CUSTODY_DIR,
16
+ DEFAULT_HOST_REACH_TIMEOUT_MS,
15
17
  DEFAULT_RELAY_PORT,
16
18
  DEFAULT_SQLITE_STORE_PATH,
17
19
  EventBuffer,
18
20
  FsCustodyStore,
19
- GH_API_ALLOWED_ENDPOINTS,
20
- GH_API_ENDPOINT_REFUSAL,
21
- GH_API_WRITE_ALLOWED_ENDPOINTS,
22
- GH_PR_OPS,
23
- GH_PR_READ_ONLY_OPS,
24
- GH_RUN_OPS,
25
- GH_RUN_READ_ONLY_OPS,
21
+ GH_BLOCKED,
22
+ GH_DESTRUCTIVE,
26
23
  GitHubAppLeaser,
24
+ HOST_EXEC_DEFAULT_TIMEOUT_MS,
27
25
  HostActionQueue,
28
26
  HostInitiatedTokens,
27
+ HostReachPoller,
28
+ HostReachQueue,
29
29
  HubNotifier,
30
30
  MemoryStore,
31
31
  PG_SCHEMA_SQL,
@@ -46,75 +46,92 @@ import {
46
46
  STARTUP_GRACE_MS,
47
47
  STORE_RPC_PATH,
48
48
  SqliteStore,
49
+ SseFrameReader,
49
50
  WriteThroughStore,
50
- _resetIntegrationReadyCacheForTests,
51
+ _resetGhReadyCacheForTests,
52
+ _resetHostBinReadyCacheForTests,
51
53
  appJwt,
52
54
  applyStoreOp,
55
+ argvIsExplicitlyAllowed,
53
56
  askPrompt,
54
57
  assertGhReady,
55
- assertIntegrationReady,
58
+ assertHostBinReady,
56
59
  buildSshTarget,
60
+ captureCpCacheEntry,
57
61
  checkoutGuards,
58
62
  cloneRepoWithLfs,
59
63
  countRunningPrepareJobsByProvider,
60
64
  countWorkingSlots,
65
+ cpCacheKey,
66
+ cpCacheKeyInput,
67
+ cpCacheMetaPath,
68
+ cpCachePrefix,
69
+ cpCacheTarPath,
61
70
  createRelayServer,
62
71
  custodyDigest,
63
72
  defaultCountRunningBoxes,
64
73
  defaultCountWorkingBoxes,
65
74
  deleteJob,
75
+ describeCacheAge,
66
76
  drainCreateJobs,
67
77
  drainOneCreateJob,
68
78
  enqueuePrepareJob,
69
79
  enqueueQueueJob,
70
80
  gateApproval,
81
+ ghDestructiveTarget,
82
+ ghHostFromRemote,
83
+ ghRunContext,
84
+ ghToolEnabled,
71
85
  handleCustodyBlobRequest,
72
86
  handleCustodyRequest,
73
87
  handleRelayRequest,
74
88
  handleRemoteBoxesRequest,
75
89
  handleStoreRpcRequest,
76
90
  hashRpcParams,
91
+ hostBinExists,
92
+ hostToolInstalled,
77
93
  injectPrCreateHead,
78
- isAllowedGhApiEndpoint,
79
94
  isCustodyBlobPath,
80
95
  isCustodyPath,
81
- isGhPrOp,
82
- isGhRunOp,
83
96
  isPromptAnswerBody,
84
97
  isRemoteBoxesPath,
85
98
  isStoreRpcMethod,
86
99
  isStoreRpcPath,
87
100
  isValidBoxStatus,
88
- isWriteAllowedGhApiEndpoint,
89
101
  leaseTokenResult,
90
102
  loadAutopauseConfig,
91
103
  loadGitHubAppConfig,
92
104
  loadQueue,
93
105
  loadQueueConfig,
94
106
  makeControlPlaneCreateBox,
95
- makeIntegrationOpRefusal,
96
107
  makeStore,
97
108
  normalizeCustodyPath,
98
109
  normalizeCustodyPrefix,
99
110
  normalizeRegistrationAgent,
100
111
  occupiesWorkingSlot,
101
112
  parseGitRemote,
102
- parseIntegrationMethod,
113
+ prCreateHasExplicitHead,
103
114
  prCreateNeedsHead,
104
115
  queueLogPath,
105
116
  queueLoginCodePath,
106
117
  readActiveAgent,
107
118
  readJob,
119
+ refuseBlockedGhCall,
108
120
  refuseCheckoutByDefault,
109
- refuseGhApiCall,
110
- refuseIfIntegrationDisabled,
111
- refuseIntegrationCall,
112
- refuseMergeBypass,
121
+ refuseCredentialArgv,
122
+ refuseDeniedArgv,
123
+ refuseGhApiInput,
124
+ refuseIfGhDisabled,
113
125
  registrationToBoxRecord,
126
+ renderToolList,
127
+ renderToolListJson,
114
128
  repoSlugFromRemote,
129
+ resolveGhTarget,
130
+ resolveToolGrant,
115
131
  resolveWorktree,
132
+ runGrantedTool,
133
+ runHostBinary,
116
134
  runHostGh,
117
- runHostIntegration,
118
135
  selectBoxesToPause,
119
136
  selectBoxesToRenew,
120
137
  selectNextRunnable,
@@ -131,24 +148,26 @@ import {
131
148
  takeQueueLoginCode,
132
149
  toAuthedHttpsUrl,
133
150
  toHttpsUrl,
151
+ toolRequestsEnabled,
134
152
  waitForFile,
135
153
  writeJob,
136
154
  writeQueueLoginCode
137
- } from "./chunk-WB6S4W7O.js";
138
- import "./chunk-NHVGKFVY.js";
139
- import "./chunk-GFOWBXV7.js";
155
+ } from "./chunk-7Q6BG5AN.js";
156
+ import "./chunk-OKLEPEWZ.js";
157
+ import "./chunk-7LNXTPEE.js";
140
158
  import "./chunk-QESXSSO6.js";
141
159
  import "./chunk-6V366IZC.js";
142
160
  import {
143
161
  CloudBoxPoller,
144
162
  CloudBoxPollers
145
- } from "./chunk-G3H2L3O2.js";
163
+ } from "./chunk-MNDKP4VS.js";
146
164
  import "./chunk-WJFZJZIM.js";
147
165
  export {
148
166
  BoxNotices,
149
167
  BoxRegistry,
150
168
  BoxStatusStore,
151
169
  CREDENTIALS_UPDATED_EVENT,
170
+ CREDENTIAL_ARGV_PATTERNS,
152
171
  CUSTODY_BLOB_PATH_PREFIX,
153
172
  CUSTODY_PATH_PREFIX,
154
173
  CUSTODY_SCOPES,
@@ -159,20 +178,19 @@ export {
159
178
  CustodyTooLargeError,
160
179
  DEFAULT_BOX_RELAY_PORT,
161
180
  DEFAULT_CUSTODY_DIR,
181
+ DEFAULT_HOST_REACH_TIMEOUT_MS,
162
182
  DEFAULT_RELAY_PORT,
163
183
  DEFAULT_SQLITE_STORE_PATH,
164
184
  EventBuffer,
165
185
  FsCustodyStore,
166
- GH_API_ALLOWED_ENDPOINTS,
167
- GH_API_ENDPOINT_REFUSAL,
168
- GH_API_WRITE_ALLOWED_ENDPOINTS,
169
- GH_PR_OPS,
170
- GH_PR_READ_ONLY_OPS,
171
- GH_RUN_OPS,
172
- GH_RUN_READ_ONLY_OPS,
186
+ GH_BLOCKED,
187
+ GH_DESTRUCTIVE,
173
188
  GitHubAppLeaser,
189
+ HOST_EXEC_DEFAULT_TIMEOUT_MS,
174
190
  HostActionQueue,
175
191
  HostInitiatedTokens,
192
+ HostReachPoller,
193
+ HostReachQueue,
176
194
  HubNotifier,
177
195
  MemoryStore,
178
196
  PG_SCHEMA_SQL,
@@ -193,75 +211,92 @@ export {
193
211
  STARTUP_GRACE_MS,
194
212
  STORE_RPC_PATH,
195
213
  SqliteStore,
214
+ SseFrameReader,
196
215
  WriteThroughStore,
197
- _resetIntegrationReadyCacheForTests,
216
+ _resetGhReadyCacheForTests,
217
+ _resetHostBinReadyCacheForTests,
198
218
  appJwt,
199
219
  applyStoreOp,
220
+ argvIsExplicitlyAllowed,
200
221
  askPrompt,
201
222
  assertGhReady,
202
- assertIntegrationReady,
223
+ assertHostBinReady,
203
224
  buildSshTarget,
225
+ captureCpCacheEntry,
204
226
  checkoutGuards,
205
227
  cloneRepoWithLfs,
206
228
  countRunningPrepareJobsByProvider,
207
229
  countWorkingSlots,
230
+ cpCacheKey,
231
+ cpCacheKeyInput,
232
+ cpCacheMetaPath,
233
+ cpCachePrefix,
234
+ cpCacheTarPath,
208
235
  createRelayServer,
209
236
  custodyDigest,
210
237
  defaultCountRunningBoxes,
211
238
  defaultCountWorkingBoxes,
212
239
  deleteJob,
240
+ describeCacheAge,
213
241
  drainCreateJobs,
214
242
  drainOneCreateJob,
215
243
  enqueuePrepareJob,
216
244
  enqueueQueueJob,
217
245
  gateApproval,
246
+ ghDestructiveTarget,
247
+ ghHostFromRemote,
248
+ ghRunContext,
249
+ ghToolEnabled,
218
250
  handleCustodyBlobRequest,
219
251
  handleCustodyRequest,
220
252
  handleRelayRequest,
221
253
  handleRemoteBoxesRequest,
222
254
  handleStoreRpcRequest,
223
255
  hashRpcParams,
256
+ hostBinExists,
257
+ hostToolInstalled,
224
258
  injectPrCreateHead,
225
- isAllowedGhApiEndpoint,
226
259
  isCustodyBlobPath,
227
260
  isCustodyPath,
228
- isGhPrOp,
229
- isGhRunOp,
230
261
  isPromptAnswerBody,
231
262
  isRemoteBoxesPath,
232
263
  isStoreRpcMethod,
233
264
  isStoreRpcPath,
234
265
  isValidBoxStatus,
235
- isWriteAllowedGhApiEndpoint,
236
266
  leaseTokenResult,
237
267
  loadAutopauseConfig,
238
268
  loadGitHubAppConfig,
239
269
  loadQueue,
240
270
  loadQueueConfig,
241
271
  makeControlPlaneCreateBox,
242
- makeIntegrationOpRefusal,
243
272
  makeStore,
244
273
  normalizeCustodyPath,
245
274
  normalizeCustodyPrefix,
246
275
  normalizeRegistrationAgent,
247
276
  occupiesWorkingSlot,
248
277
  parseGitRemote,
249
- parseIntegrationMethod,
278
+ prCreateHasExplicitHead,
250
279
  prCreateNeedsHead,
251
280
  queueLogPath,
252
281
  queueLoginCodePath,
253
282
  readActiveAgent,
254
283
  readJob,
284
+ refuseBlockedGhCall,
255
285
  refuseCheckoutByDefault,
256
- refuseGhApiCall,
257
- refuseIfIntegrationDisabled,
258
- refuseIntegrationCall,
259
- refuseMergeBypass,
286
+ refuseCredentialArgv,
287
+ refuseDeniedArgv,
288
+ refuseGhApiInput,
289
+ refuseIfGhDisabled,
260
290
  registrationToBoxRecord,
291
+ renderToolList,
292
+ renderToolListJson,
261
293
  repoSlugFromRemote,
294
+ resolveGhTarget,
295
+ resolveToolGrant,
262
296
  resolveWorktree,
297
+ runGrantedTool,
298
+ runHostBinary,
263
299
  runHostGh,
264
- runHostIntegration,
265
300
  selectBoxesToPause,
266
301
  selectBoxesToRenew,
267
302
  selectNextRunnable,
@@ -278,8 +313,9 @@ export {
278
313
  takeQueueLoginCode,
279
314
  toAuthedHttpsUrl,
280
315
  toHttpsUrl,
316
+ toolRequestsEnabled,
281
317
  waitForFile,
282
318
  writeJob,
283
319
  writeQueueLoginCode
284
320
  };
285
- //# sourceMappingURL=dist-RN6JOAG4.js.map
321
+ //# sourceMappingURL=dist-5OGQ3CJQ.js.map
@@ -48,12 +48,11 @@ import {
48
48
  validateServerChoice,
49
49
  withHetznerRetry,
50
50
  writePreparedState
51
- } from "./chunk-YI4GHC2E.js";
52
- import "./chunk-JQLOGVZK.js";
53
- import "./chunk-46NNZMZT.js";
54
- import "./chunk-WB6S4W7O.js";
55
- import "./chunk-NHVGKFVY.js";
56
- import "./chunk-CKD3PRON.js";
51
+ } from "./chunk-QU5BI2HC.js";
52
+ import "./chunk-THUST2QK.js";
53
+ import "./chunk-EPFXLXCW.js";
54
+ import "./chunk-7Q6BG5AN.js";
55
+ import "./chunk-GWYD7YBK.js";
57
56
  import {
58
57
  mintSshKey,
59
58
  scpDownload,
@@ -61,10 +60,11 @@ import {
61
60
  sshExec,
62
61
  sshOptArgs,
63
62
  waitForSsh
64
- } from "./chunk-GFOWBXV7.js";
63
+ } from "./chunk-OKLEPEWZ.js";
64
+ import "./chunk-7LNXTPEE.js";
65
65
  import "./chunk-QESXSSO6.js";
66
66
  import "./chunk-6V366IZC.js";
67
- import "./chunk-G3H2L3O2.js";
67
+ import "./chunk-MNDKP4VS.js";
68
68
  import "./chunk-WJFZJZIM.js";
69
69
  export {
70
70
  DEFAULT_HCLOUD_ENDPOINT,
@@ -122,4 +122,4 @@ export {
122
122
  withHetznerRetry,
123
123
  writePreparedState
124
124
  };
125
- //# sourceMappingURL=dist-5OR4QTQW.js.map
125
+ //# sourceMappingURL=dist-7B3VCLZI.js.map
@@ -48,13 +48,12 @@ import {
48
48
  validateSizeChoice,
49
49
  withDigitalOceanRetry,
50
50
  writePreparedState
51
- } from "./chunk-OUF3YTQO.js";
52
- import "./chunk-YI4GHC2E.js";
53
- import "./chunk-JQLOGVZK.js";
54
- import "./chunk-46NNZMZT.js";
55
- import "./chunk-WB6S4W7O.js";
56
- import "./chunk-NHVGKFVY.js";
57
- import "./chunk-CKD3PRON.js";
51
+ } from "./chunk-DBXCFLAR.js";
52
+ import "./chunk-QU5BI2HC.js";
53
+ import "./chunk-THUST2QK.js";
54
+ import "./chunk-EPFXLXCW.js";
55
+ import "./chunk-7Q6BG5AN.js";
56
+ import "./chunk-GWYD7YBK.js";
58
57
  import {
59
58
  mintSshKey,
60
59
  scpDownload,
@@ -62,10 +61,11 @@ import {
62
61
  sshExec,
63
62
  sshOptArgs,
64
63
  waitForSsh
65
- } from "./chunk-GFOWBXV7.js";
64
+ } from "./chunk-OKLEPEWZ.js";
65
+ import "./chunk-7LNXTPEE.js";
66
66
  import "./chunk-QESXSSO6.js";
67
67
  import "./chunk-6V366IZC.js";
68
- import "./chunk-G3H2L3O2.js";
68
+ import "./chunk-MNDKP4VS.js";
69
69
  import "./chunk-WJFZJZIM.js";
70
70
  export {
71
71
  DEFAULT_DO_ENDPOINT,
@@ -123,4 +123,4 @@ export {
123
123
  withDigitalOceanRetry,
124
124
  writePreparedState
125
125
  };
126
- //# sourceMappingURL=dist-EPFS5PRI.js.map
126
+ //# sourceMappingURL=dist-A5ZEIVAW.js.map
@@ -21,7 +21,7 @@ import {
21
21
  setE2bCredentials,
22
22
  updatePreparedState,
23
23
  writePreparedState
24
- } from "./chunk-74VIUGY6.js";
24
+ } from "./chunk-DYETLPUT.js";
25
25
  import {
26
26
  createCloudProvider,
27
27
  currentCloudBaseFingerprint,
@@ -31,11 +31,10 @@ import {
31
31
  renderInnerCommand,
32
32
  resolveCloudCheckpoint,
33
33
  writeCloudCheckpointManifest
34
- } from "./chunk-JQLOGVZK.js";
35
- import "./chunk-46NNZMZT.js";
36
- import "./chunk-WB6S4W7O.js";
37
- import "./chunk-NHVGKFVY.js";
38
- import "./chunk-CKD3PRON.js";
34
+ } from "./chunk-THUST2QK.js";
35
+ import "./chunk-EPFXLXCW.js";
36
+ import "./chunk-7Q6BG5AN.js";
37
+ import "./chunk-GWYD7YBK.js";
39
38
  import {
40
39
  claudeInstallFingerprint,
41
40
  computeContextManifest,
@@ -43,10 +42,11 @@ import {
43
42
  readCliStamp,
44
43
  recordBox,
45
44
  stageAllAgentStatic
46
- } from "./chunk-GFOWBXV7.js";
45
+ } from "./chunk-OKLEPEWZ.js";
46
+ import "./chunk-7LNXTPEE.js";
47
47
  import "./chunk-QESXSSO6.js";
48
48
  import "./chunk-6V366IZC.js";
49
- import "./chunk-G3H2L3O2.js";
49
+ import "./chunk-MNDKP4VS.js";
50
50
  import "./chunk-WJFZJZIM.js";
51
51
 
52
52
  // ../../packages/sandbox-e2b/dist/index.js
@@ -331,6 +331,9 @@ var BOX_USER = "vscode";
331
331
  var BOX_OWNER = "vscode:vscode";
332
332
  var DEFAULT_E2B_DOMAIN = "e2b.app";
333
333
  var DEFAULT_TIMEOUT_MS = 45 * 6e4;
334
+ function connectOpts(apiKey, timeoutMs = DEFAULT_TIMEOUT_MS) {
335
+ return { apiKey, timeoutMs };
336
+ }
334
337
  var E2B_WEB_PORT = 8080;
335
338
  function shq(s) {
336
339
  return "'" + s.replace(/'/g, "'\\''") + "'";
@@ -368,6 +371,9 @@ var e2bBackend = {
368
371
  // staying on 8080 keeps the in-box ctl flag (AGENTBOX_WEB_PROXY_PORT)
369
372
  // identical across cloud providers.
370
373
  webProxyPort: E2B_WEB_PORT,
374
+ // See CloudBackend.stageFilesAsRoot: exec runs as the unprivileged `vscode`,
375
+ // so the carry extract's trailing chown needs root.
376
+ stageFilesAsRoot: true,
371
377
  async provision(req) {
372
378
  const apiKey = resolveApiKey();
373
379
  const log = req.onLog ?? (() => {
@@ -402,9 +408,24 @@ var e2bBackend = {
402
408
  template,
403
409
  // Friendly name (so prune can see it) + the 'agentbox' marker so
404
410
  // `list()` can filter out sandboxes provisioned by other tooling.
405
- metadata: { agentbox: "true", "agentbox.name": safeMetadataName(req.name), name: safeMetadataName(req.name) },
411
+ metadata: {
412
+ agentbox: "true",
413
+ "agentbox.name": safeMetadataName(req.name),
414
+ name: safeMetadataName(req.name)
415
+ },
406
416
  envs: req.env,
407
- timeoutMs: req.timeoutMs ?? DEFAULT_TIMEOUT_MS
417
+ timeoutMs: req.timeoutMs ?? DEFAULT_TIMEOUT_MS,
418
+ // Survive the plan cap instead of being destroyed by it. The cap
419
+ // (1 h Hobby / 24 h Pro) is not extendable, so the SDK default of
420
+ // `onTimeout: 'kill'` loses work the keepalive is powerless to save.
421
+ // `pause` preserves filesystem AND memory, and `autoResume` brings
422
+ // the box back on the next inbound request with a fresh window — so
423
+ // the hour mark becomes a brief freeze rather than a dead box.
424
+ //
425
+ // autoResume is also why this backend declares
426
+ // `timeoutModel: 'inactivity'`: once any request revives a paused
427
+ // box, the host must own the idle decision (see below).
428
+ lifecycle: { onTimeout: "pause", autoResume: true }
408
429
  })
409
430
  );
410
431
  log(`e2b: created sandbox ${sb.sandboxId} (template ${template})`);
@@ -452,7 +473,7 @@ var e2bBackend = {
452
473
  await withE2bRetry(
453
474
  { method: "start", retryOnAmbiguous: true, attemptTimeoutMs: 12e4 },
454
475
  async () => {
455
- await Sandbox.connect(h.sandboxId, { apiKey });
476
+ await Sandbox.connect(h.sandboxId, connectOpts(apiKey));
456
477
  }
457
478
  );
458
479
  },
@@ -484,6 +505,14 @@ var e2bBackend = {
484
505
  await Sandbox.setTimeout(h.sandboxId, ttlMs, { apiKey });
485
506
  });
486
507
  },
508
+ // E2B's raw timer is absolute, but `provision` sets `lifecycle.autoResume`,
509
+ // and once a paused box revives on ANY inbound request the relay's own
510
+ // `CloudBoxPoller` — which long-polls every cloud box's preview URL forever —
511
+ // becomes an infinite resurrection loop. That is exactly the condition
512
+ // `timeoutModel: 'inactivity'` describes, so the host must own the idle
513
+ // decision (pause the box itself once its agent has been idle a full window)
514
+ // and stop the poller when it does. Same treatment daytona gets.
515
+ timeoutModel: "inactivity",
487
516
  async destroy(h) {
488
517
  const apiKey = resolveApiKey();
489
518
  await withE2bRetry(
@@ -521,7 +550,7 @@ var e2bBackend = {
521
550
  backoffMs: opts?.noRetry ? [] : void 0
522
551
  },
523
552
  async () => {
524
- const sb = await Sandbox.connect(h.sandboxId, { apiKey });
553
+ const sb = await Sandbox.connect(h.sandboxId, connectOpts(apiKey));
525
554
  const user = opts?.user ?? BOX_USER;
526
555
  try {
527
556
  const r = await sb.commands.run(cmd, {
@@ -547,7 +576,7 @@ var e2bBackend = {
547
576
  { method: "uploadFile", retryOnAmbiguous: true, attemptTimeoutMs: 3e5 },
548
577
  async () => {
549
578
  const data = await readFile(localPath);
550
- const sb = await Sandbox.connect(h.sandboxId, { apiKey });
579
+ const sb = await Sandbox.connect(h.sandboxId, connectOpts(apiKey));
551
580
  await sb.files.write([{ path: remotePath, data: bufferToArrayBuffer(data) }]);
552
581
  try {
553
582
  await sb.commands.run(`sudo -n chown ${BOX_OWNER} ${shq(remotePath)}`, {
@@ -564,7 +593,7 @@ var e2bBackend = {
564
593
  await withE2bRetry(
565
594
  { method: "downloadFile", retryOnAmbiguous: true, attemptTimeoutMs: 3e5 },
566
595
  async () => {
567
- const sb = await Sandbox.connect(h.sandboxId, { apiKey });
596
+ const sb = await Sandbox.connect(h.sandboxId, connectOpts(apiKey));
568
597
  const bytes = await sb.files.read(remotePath, { format: "bytes" });
569
598
  const { writeFile } = await import("fs/promises");
570
599
  await writeFile(localPath, Buffer.from(bytes));
@@ -574,7 +603,7 @@ var e2bBackend = {
574
603
  async listFiles(h, remoteDir) {
575
604
  const apiKey = resolveApiKey();
576
605
  return withE2bRetry({ method: "listFiles", retryOnAmbiguous: true }, async () => {
577
- const sb = await Sandbox.connect(h.sandboxId, { apiKey });
606
+ const sb = await Sandbox.connect(h.sandboxId, connectOpts(apiKey));
578
607
  const entries = await sb.files.list(remoteDir);
579
608
  return entries.map((e) => ({ name: e.name, isDir: e.type === "dir" }));
580
609
  });
@@ -683,6 +712,21 @@ async function doctorChecks() {
683
712
  return [{ label: "credentials", status: "warn", detail: errSummary(err) }];
684
713
  }
685
714
  }
715
+ function sizeIgnoredReason(size) {
716
+ let requested;
717
+ try {
718
+ const parsed = parseE2bSize(size);
719
+ if (parsed) requested = `${String(parsed.cpuCount)}-${String(parsed.memoryMB / 1024)}`;
720
+ } catch {
721
+ return null;
722
+ }
723
+ if (!requested) return null;
724
+ const prepared = readPreparedState();
725
+ if (!prepared.base) return null;
726
+ const baked = prepared.base.size;
727
+ if (requested === baked) return null;
728
+ return `e2b: size '${requested}' is ignored at create time; this template was baked at ${baked ?? "the default size"}. E2B resources are fixed at bake time \u2014 re-bake with \`agentbox prepare --provider e2b --size ${requested} --force\` to change them.`;
729
+ }
686
730
  var BACKEND_NAME = "e2b";
687
731
  var cloudProvider = createCloudProvider(e2bBackend, {
688
732
  // E2B applies resources at the template level (Template.build({ cpuCount,
@@ -774,6 +818,7 @@ var providerModule = {
774
818
  setCredentials: (fields) => Promise.resolve(setE2bCredentials(fields)),
775
819
  currentBaseFingerprintLive: (claudeInstall) => currentE2bBaseFingerprintLive(claudeInstall),
776
820
  currentBaseFileHashes: () => currentE2bBaseFileHashes(),
821
+ sizeIgnoredReason,
777
822
  doctorChecks
778
823
  };
779
824
  export {
@@ -802,4 +847,4 @@ export {
802
847
  updatePreparedState,
803
848
  writePreparedState
804
849
  };
805
- //# sourceMappingURL=dist-6PYXFREL.js.map
850
+ //# sourceMappingURL=dist-DOEGENNW.js.map