@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
@@ -4,14 +4,14 @@ import {
4
4
  destroyControlPlaneOnHetzner,
5
5
  readHetznerCredStatus,
6
6
  updateControlPlaneOnHetzner
7
- } from "./chunk-YI4GHC2E.js";
8
- import {
9
- loadEffectiveConfig
10
- } from "./chunk-NHVGKFVY.js";
7
+ } from "./chunk-AC3HU25W.js";
11
8
  import {
12
9
  controlPlaneDeployPath,
13
10
  syncAgentboxSshConfig
14
- } from "./chunk-GFOWBXV7.js";
11
+ } from "./chunk-XENTK32L.js";
12
+ import {
13
+ loadEffectiveConfig
14
+ } from "./chunk-7LNXTPEE.js";
15
15
 
16
16
  // src/control-plane/deploy-hetzner.ts
17
17
  import { mkdir, readFile, rm, writeFile } from "fs/promises";
@@ -133,7 +133,7 @@ async function purgeLocalControlPlaneState(opts) {
133
133
  } catch {
134
134
  }
135
135
  try {
136
- const { removeHubDockerTarget } = await import("./hub-docker-target-REEEWUG2.js");
136
+ const { removeHubDockerTarget } = await import("./hub-docker-target-ZKAWXVPH.js");
137
137
  await removeHubDockerTarget(() => {
138
138
  });
139
139
  } catch {
@@ -150,4 +150,4 @@ export {
150
150
  runHetznerDestroy,
151
151
  purgeLocalControlPlaneState
152
152
  };
153
- //# sourceMappingURL=chunk-HYXCH4GA.js.map
153
+ //# sourceMappingURL=chunk-7LC5IG5K.js.map
@@ -15,13 +15,39 @@ import { mkdir as mkdir2, readFile as readFile2, rename, rm as rm2, stat as stat
15
15
  import { dirname as dirname3, isAbsolute, join as join2 } from "path";
16
16
  import { parse as parseYaml3, stringify as stringifyYaml } from "yaml";
17
17
  import { readdir } from "fs/promises";
18
+ import { mkdir as mkdir3, readFile as readFile3, writeFile as writeFile2 } from "fs/promises";
19
+ import { dirname as dirname4 } from "path";
20
+ import { parse as parseYaml4, stringify as stringifyYaml2 } from "yaml";
18
21
  var PROVIDERS = [
19
22
  {
20
23
  name: "docker",
21
24
  kind: "local",
22
25
  label: "Docker (local)",
23
26
  loginHint: "builds a ~1GB local image; no login needed",
24
- rebuildMinutes: "1",
27
+ credentials: { envKeys: [], fields: [] },
28
+ // The base self-heals: `ensureImage` pulls or builds on create, so a missing
29
+ // base is a slow first create, never a blocked one.
30
+ bake: { required: false, approxMinutes: "1", createProgressSteps: 52, bakeProgressSteps: 420 },
31
+ capabilities: {
32
+ // `docker commit` — the oldest checkpoint implementation in the repo. It
33
+ // does NOT hang off `provider.checkpoint` (see the interface doc).
34
+ checkpoints: true,
35
+ checkpointReboots: false,
36
+ ssh: true,
37
+ persistentSsh: true,
38
+ // Its localhost sshd is reached by published port, not a direct `ssh
39
+ // user@host` attach argv.
40
+ directBoxSsh: false,
41
+ inbound: false,
42
+ directGit: false,
43
+ resync: true,
44
+ prune: false,
45
+ vnc: true,
46
+ dind: true,
47
+ pauseSemantics: "freeze",
48
+ // Local engine — there is no hub to route a create to.
49
+ hubRoutable: false
50
+ },
25
51
  blurb: "local Docker containers",
26
52
  sizeDesc: "Per-provider override of `box.size` for docker. Reserved \u2014 docker sizing is controlled via `box.memory` / `box.cpus` / `box.disk`.",
27
53
  imageDesc: "Per-provider override of `box.image` for docker (local docker image ref, e.g. `agentbox/box:dev`). Wins over the generic when set."
@@ -31,7 +57,37 @@ var PROVIDERS = [
31
57
  kind: "cloud",
32
58
  label: "Daytona (cloud sandbox)",
33
59
  loginHint: "paste an API key from the Daytona dashboard",
34
- rebuildMinutes: "7",
60
+ credentials: {
61
+ envKeys: ["DAYTONA_API_KEY", "DAYTONA_JWT_TOKEN"],
62
+ fields: [{ key: "apiKey", label: "API key" }]
63
+ },
64
+ bake: {
65
+ required: true,
66
+ approxMinutes: "7",
67
+ createProgressSteps: 1900,
68
+ bakeProgressSteps: 1500
69
+ },
70
+ capabilities: {
71
+ checkpoints: true,
72
+ // `sb._experimental_createSnapshot` stops the sandbox to capture it.
73
+ checkpointReboots: true,
74
+ ssh: true,
75
+ // The SSH gateway is reached with an expiring token, so an app that dials
76
+ // in on its own later (codex) finds a dead credential.
77
+ persistentSsh: false,
78
+ directBoxSsh: true,
79
+ inbound: false,
80
+ directGit: true,
81
+ resync: true,
82
+ prune: true,
83
+ vnc: true,
84
+ dind: true,
85
+ // linux-vm `pause()` freezes CPU + memory. The `container` class has no
86
+ // pause primitive and archives instead (filesystem only) — see backend.ts.
87
+ pauseSemantics: "freeze",
88
+ hubRoutable: true,
89
+ timeoutModel: "inactivity"
90
+ },
35
91
  blurb: "Daytona Cloud sandboxes",
36
92
  sizeDesc: "Per-provider override of `box.size` for daytona. `cpu-memory-disk` GB spec (e.g. `4-8-20`). Only honored on the image/Dockerfile create path; on the snapshot path the size is fixed at bake time (Daytona rejects custom resources on snapshot-resume).",
37
93
  imageDesc: "Per-provider override of `box.image` for daytona (named snapshot, e.g. `agentbox-base-<fingerprint>`). Written by `agentbox prepare --provider daytona`."
@@ -41,7 +97,33 @@ var PROVIDERS = [
41
97
  kind: "cloud",
42
98
  label: "Hetzner (cloud VPS)",
43
99
  loginHint: "paste an API token from the Hetzner Console",
44
- rebuildMinutes: "7-10",
100
+ credentials: {
101
+ envKeys: ["HCLOUD_TOKEN"],
102
+ fields: [{ key: "token", label: "API token" }]
103
+ },
104
+ bake: {
105
+ required: true,
106
+ approxMinutes: "7-10",
107
+ createProgressSteps: 41,
108
+ bakeProgressSteps: 900
109
+ },
110
+ capabilities: {
111
+ checkpoints: true,
112
+ // `create_image` defaults to no-pause, matching `docker commit`.
113
+ checkpointReboots: false,
114
+ ssh: true,
115
+ persistentSsh: true,
116
+ directBoxSsh: true,
117
+ inbound: true,
118
+ directGit: true,
119
+ resync: true,
120
+ prune: true,
121
+ vnc: true,
122
+ dind: true,
123
+ // "Hetzner has no archive primitive. Pause ≡ stop." (backend.ts)
124
+ pauseSemantics: "stop",
125
+ hubRoutable: true
126
+ },
45
127
  blurb: "Hetzner Cloud VPSes",
46
128
  sizeDesc: "Per-provider override of `box.size` for hetzner. Server type string (e.g. `cx23`, `cx33`, `cx43`).",
47
129
  imageDesc: "Per-provider override of `box.image` for hetzner (image description, e.g. `agentbox-base-<fingerprint>`). Written by `agentbox prepare --provider hetzner`."
@@ -51,7 +133,38 @@ var PROVIDERS = [
51
133
  kind: "cloud",
52
134
  label: "Vercel (cloud microVM)",
53
135
  loginHint: "installs the Vercel sandbox CLI, then a browser sign-in",
54
- rebuildMinutes: "5-10",
136
+ credentials: {
137
+ envKeys: ["VERCEL_TOKEN", "VERCEL_OIDC_TOKEN", "VERCEL_AUTH_SOURCE"],
138
+ fields: [
139
+ { key: "token", label: "Access token" },
140
+ { key: "teamId", label: "Team ID", optional: true },
141
+ { key: "projectId", label: "Project ID", optional: true }
142
+ ]
143
+ },
144
+ bake: {
145
+ required: true,
146
+ approxMinutes: "5-10",
147
+ createProgressSteps: 33,
148
+ bakeProgressSteps: 400
149
+ },
150
+ capabilities: {
151
+ checkpoints: true,
152
+ // `sb.snapshot()` stops the box; the live agent process doesn't survive.
153
+ checkpointReboots: true,
154
+ // No SSH at all — attach is a custom tmux bridge over the SDK.
155
+ ssh: false,
156
+ persistentSsh: false,
157
+ directBoxSsh: false,
158
+ inbound: false,
159
+ directGit: true,
160
+ resync: true,
161
+ prune: true,
162
+ vnc: true,
163
+ // Nested containers verified working 2026-06-30 (`launchDockerd: true`).
164
+ dind: true,
165
+ pauseSemantics: "freeze",
166
+ hubRoutable: true
167
+ },
55
168
  blurb: "Vercel Sandboxes",
56
169
  sizeDesc: "Per-provider override of `box.size` for vercel. vCPU count \u2014 one of `1`, `2`, `4`, `8` (Vercel couples RAM at 2048 MB/vCPU). Default 2.",
57
170
  imageDesc: "Per-provider override of `box.image` for vercel (snapshot id, e.g. `snap_\u2026`). Written by `agentbox prepare --provider vercel`."
@@ -61,7 +174,29 @@ var PROVIDERS = [
61
174
  kind: "cloud",
62
175
  label: "E2B (cloud microVM)",
63
176
  loginHint: "paste an API key from the E2B dashboard",
64
- rebuildMinutes: "2",
177
+ credentials: {
178
+ envKeys: ["E2B_API_KEY"],
179
+ fields: [{ key: "apiKey", label: "API key" }]
180
+ },
181
+ bake: { required: true, approxMinutes: "2", createProgressSteps: 34, bakeProgressSteps: 500 },
182
+ capabilities: {
183
+ checkpoints: true,
184
+ checkpointReboots: false,
185
+ // No SSH — attach is an SDK-streaming PTY bridge.
186
+ ssh: false,
187
+ persistentSsh: false,
188
+ directBoxSsh: false,
189
+ inbound: false,
190
+ directGit: true,
191
+ resync: true,
192
+ prune: true,
193
+ vnc: true,
194
+ // Full root + cap_sys_admin, verified 2026-06-23.
195
+ dind: true,
196
+ pauseSemantics: "freeze",
197
+ hubRoutable: true,
198
+ timeoutModel: "inactivity"
199
+ },
65
200
  blurb: "E2B microVMs",
66
201
  sizeDesc: "Per-provider override of `box.size` for e2b. `cpu-memory` GB spec (e.g. `4-8`). Template-level: baked by `agentbox prepare --provider e2b --size <spec>`; E2B rejects per-create resources.",
67
202
  imageDesc: "Per-provider override of `box.image` for e2b (template id or `name:tag`, e.g. `agentbox-base:latest`). Written by `agentbox prepare --provider e2b`."
@@ -71,7 +206,47 @@ var PROVIDERS = [
71
206
  kind: "cloud",
72
207
  label: "DigitalOcean (cloud VPS)",
73
208
  loginHint: "paste a Personal Access Token from the DigitalOcean Console",
74
- rebuildMinutes: "7-10",
209
+ credentials: {
210
+ envKeys: ["DIGITALOCEAN_TOKEN"],
211
+ fields: [
212
+ { key: "token", label: "API token" },
213
+ // Not a secret: the host writes it to `box.digitaloceanProject`. Blank
214
+ // means "leave unchanged", never "clear" — clearing is a `config unset`.
215
+ {
216
+ key: "project",
217
+ label: "Project",
218
+ optional: true,
219
+ secret: false,
220
+ hint: "blank leaves it unchanged"
221
+ }
222
+ ]
223
+ },
224
+ bake: {
225
+ required: true,
226
+ approxMinutes: "7-10",
227
+ createProgressSteps: 41,
228
+ bakeProgressSteps: 900
229
+ },
230
+ capabilities: {
231
+ checkpoints: true,
232
+ checkpointReboots: false,
233
+ // A VPS with a real sshd, same shape as hetzner. The pre-descriptor
234
+ // `IDE_PROVIDERS` / `SSH_MOUNT_PROVIDERS` arrays omitted digitalocean while
235
+ // listing it in `PROVIDERS_WITH_DIRECT_BOX_SSH` — an oversight, not a
236
+ // limitation, so `agentbox code` / `open` start working here.
237
+ ssh: true,
238
+ persistentSsh: true,
239
+ directBoxSsh: true,
240
+ inbound: true,
241
+ directGit: true,
242
+ resync: true,
243
+ prune: true,
244
+ vnc: true,
245
+ dind: true,
246
+ // "DigitalOcean has no archive primitive. Pause ≡ stop (power off)."
247
+ pauseSemantics: "stop",
248
+ hubRoutable: true
249
+ },
75
250
  blurb: "DigitalOcean Droplets",
76
251
  sizeDesc: "Per-provider override of `box.size` for digitalocean. Droplet size slug (e.g. `s-2vcpu-4gb`, `s-4vcpu-8gb`).",
77
252
  imageDesc: "Per-provider override of `box.image` for digitalocean (numeric snapshot id). Written by `agentbox prepare --provider digitalocean`."
@@ -80,8 +255,30 @@ var PROVIDERS = [
80
255
  name: "remote-docker",
81
256
  kind: "cloud",
82
257
  label: "Remote Docker (your own machine over SSH)",
258
+ // It connects as you, over your own ~/.ssh/config — there is no credential
259
+ // to store, so there is none to check.
83
260
  loginHint: "point it at an SSH host you can already reach (no login needed)",
84
- rebuildMinutes: "1-3",
261
+ credentials: { envKeys: [], fields: [] },
262
+ // Usable as soon as one host alias is registered: the image builds lazily on
263
+ // first create. Readiness is the alias count, not a base marker.
264
+ bake: { required: false, approxMinutes: "1-3" },
265
+ capabilities: {
266
+ checkpoints: true,
267
+ checkpointReboots: false,
268
+ ssh: true,
269
+ persistentSsh: true,
270
+ // Reached by ProxyJump through the engine, via its own `sshTarget`.
271
+ directBoxSsh: false,
272
+ inbound: false,
273
+ directGit: true,
274
+ resync: true,
275
+ prune: true,
276
+ vnc: true,
277
+ dind: true,
278
+ pauseSemantics: "freeze",
279
+ // Docker on YOUR OWN machine — a control box can't reach it.
280
+ hubRoutable: false
281
+ },
85
282
  blurb: "Docker on a remote machine over SSH",
86
283
  sizeDesc: "Per-provider override of `box.size` for remote-docker. `cpu-memory` GB spec (e.g. `4-8`) mapped to the container's `--cpus` / `--memory`. Empty = unlimited (the remote engine's defaults).",
87
284
  imageDesc: "Per-provider override of `box.image` for remote-docker (a docker image ref on the REMOTE engine). Normally left empty: the provider derives a fingerprint-tagged ref (`agentbox/box:<sha12>`) and ensures it on the remote itself."
@@ -91,9 +288,9 @@ var PROVIDER_NAMES = PROVIDERS.map((p) => p.name);
91
288
  var CLOUD_PROVIDER_NAMES = PROVIDERS.filter(
92
289
  (p) => p.kind === "cloud"
93
290
  ).map((p) => p.name);
94
- var HUB_ROUTABLE_PROVIDER_NAMES = CLOUD_PROVIDER_NAMES.filter(
95
- (n) => n !== "remote-docker"
96
- );
291
+ var HUB_ROUTABLE_PROVIDER_NAMES = PROVIDERS.filter(
292
+ (p) => p.capabilities.hubRoutable
293
+ ).map((p) => p.name);
97
294
  function isHubRoutableProvider(name) {
98
295
  return HUB_ROUTABLE_PROVIDER_NAMES.includes(name);
99
296
  }
@@ -133,6 +330,7 @@ var BUILT_IN_DEFAULTS = {
133
330
  sizeRemoteDocker: "",
134
331
  withPlaywright: false,
135
332
  claudeInstall: "native",
333
+ claudeTui: "default",
136
334
  withEnv: false,
137
335
  resyncOnStart: true,
138
336
  vnc: true,
@@ -225,7 +423,8 @@ var BUILT_IN_DEFAULTS = {
225
423
  port: 8787,
226
424
  controlPlaneUrl: void 0,
227
425
  custodyMaxBodyBytes: 32 * 1024 * 1024,
228
- custodyMaxBlobBytes: 100 * 1024 * 1024
426
+ custodyMaxBlobBytes: 100 * 1024 * 1024,
427
+ hostReachTimeoutMs: 6e4
229
428
  },
230
429
  git: {
231
430
  pushMode: "auto"
@@ -265,9 +464,9 @@ var BUILT_IN_DEFAULTS = {
265
464
  check: true,
266
465
  channel: "auto"
267
466
  },
268
- integrations: {
269
- notion: { enabled: false },
270
- linear: { enabled: false }
467
+ tools: {
468
+ gh: { enabled: true },
469
+ request: { enabled: true }
271
470
  }
272
471
  };
273
472
  function joinOr(items) {
@@ -340,6 +539,12 @@ var KEY_REGISTRY = [
340
539
  enumValues: ["native", "npm"],
341
540
  description: "How `agentbox prepare` installs Claude Code into the base image/snapshot: `native` (Anthropic's installer, the default) or `npm` (@anthropic-ai/claude-code). A fallback for cloud egress IPs the native installer's CDN 403s. Bake-time only \u2014 change it, then re-run `agentbox prepare --provider <name>`."
342
541
  },
542
+ {
543
+ key: "box.claudeTui",
544
+ type: "enum",
545
+ enumValues: ["default", "fullscreen", "auto"],
546
+ description: "Terminal renderer Claude Code uses inside a box: `default` (the classic renderer, the AgentBox default), `fullscreen` (Claude's alternate-screen renderer), or `auto` (let Claude decide). Boxes default to `default` because the fullscreen renderer's differential repaint leaves stale characters behind over a network transport \u2014 visible while scrolling, and cleared only by resizing the terminal. Applied via /etc/agentbox/box.env, so it takes effect on the next box start."
547
+ },
343
548
  {
344
549
  key: "box.withEnv",
345
550
  type: "bool",
@@ -363,7 +568,7 @@ var KEY_REGISTRY = [
363
568
  {
364
569
  key: "box.autoApproveSafeHostActions",
365
570
  type: "bool",
366
- description: "Auto-approve the SAFE subset of host actions without a prompt: opening a PR, PR/review comments, re-running CI, pushing to the box's scratch or host-sanctioned branch, checkpoints, integration writes, and file copy/download that stays inside the box project folder (non-secret). Uncontained or secret file transfers, non-sanctioned-branch pushes, and PR merge/checkout still prompt. On by default; set false to prompt for every host action (the pre-relax behavior). Superseded by box.autoApproveHostActions, which approves everything. Each auto-approval is recorded as a relay event."
571
+ description: "Auto-approve the SAFE subset of host actions without a prompt: opening a PR, PR/review comments, re-running CI, pushing to the box's scratch or host-sanctioned branch, checkpoints, calls to a granted host tool, and file copy/download that stays inside the box project folder (non-secret). Uncontained or secret file transfers, non-sanctioned-branch pushes, and PR merge/checkout still prompt. On by default; set false to prompt for every host action (the pre-relax behavior). Superseded by box.autoApproveHostActions, which approves everything. Each auto-approval is recorded as a relay event."
367
572
  },
368
573
  {
369
574
  key: "box.isolateClaudeConfig",
@@ -472,7 +677,7 @@ var KEY_REGISTRY = [
472
677
  {
473
678
  key: "box.e2bTimeoutMs",
474
679
  type: "int",
475
- description: "Session timeout (ms) a new --provider e2b box is created with, before E2B auto-pauses it on inactivity. The host keepalive loop pushes this forward while the agent is working. Default 2700000 (45 min); the Hobby tier caps total session at ~1 h regardless. E2B-only."
680
+ description: "Session window (ms) a --provider e2b box is created with and re-armed with on every resume; the host keepalive pushes it forward while the agent is working, and doubles as the idle window after which the host pauses the box. Boxes pause rather than die at the window (and at E2B\u2019s own ~1 h Hobby / 24 h Pro cap), keeping filesystem and memory. Default 2700000 (45 min). E2B-only."
476
681
  },
477
682
  {
478
683
  key: "box.cpMaxBytes",
@@ -612,6 +817,12 @@ var KEY_REGISTRY = [
612
817
  description: "Per-request cap (bytes) for the streaming custody blob API (default 104857600 = 100 MiB), which carries payloads too large to buffer as base64 \u2014 chiefly a project's `carry:` material. Defaults to the same value as box.cpMaxBytes so an entry the carry gate accepted at resolve time can actually be stored on a control box; if the two disagree the CLI promises a copy the transport then refuses. Enforced mid-stream (an over-cap upload is cut off, not landed). A control box enforces its own cap via AGENTBOX_CUSTODY_MAX_BLOB_BYTES, so raise both.",
613
818
  advanced: true
614
819
  },
820
+ {
821
+ key: "relay.hostReachTimeoutMs",
822
+ type: "int",
823
+ description: "How long a control box waits (ms, default 60000) for your machine to pick up a copy between a box and your files, before treating it as offline \u2014 and how long a silence must last before a machine that already took the copy is presumed gone. Your machine long-polls the control box while its relay runs, so this is a missed-heartbeat window, not a per-copy timeout: once your machine has the action it can sit on a confirmation prompt for as long as you like. Read on the machine that does the waiting \u2014 set it ON THE CONTROL BOX (its own config, or AGENTBOX_HOST_REACH_TIMEOUT_MS in its deploy env); setting it on your laptop governs nothing, since your laptop is not the one parking the copy. Lower it to fall back to the hub cache sooner on a flaky link, raise it if your machine sleeps often.",
824
+ advanced: true
825
+ },
615
826
  {
616
827
  key: "git.pushMode",
617
828
  type: "enum",
@@ -720,14 +931,14 @@ var KEY_REGISTRY = [
720
931
  description: "Which release channel `agentbox self-update` and `install app` follow: `auto` (default) follows the installed build, `nightly` opts into pre-release builds cut from the nightly branch, `stable` opts back out. Nightly always installs the newest build of EITHER channel, so a stable release supersedes the nightlies that preceded it."
721
932
  },
722
933
  {
723
- key: "integrations.notion.enabled",
934
+ key: "tools.gh.enabled",
724
935
  type: "bool",
725
- description: 'Enable the in-box Notion integration shim (`ntn`/`notion` commands routed via the host relay). When false (default), the relay refuses dispatch with a clear "disabled" error and no host process is touched.'
936
+ description: "Whether the built-in `gh` host-tool grant is active. True (default) keeps the in-box `gh` shim routing GitHub operations through the host relay with the host's own `gh` auth; false revokes the grant so `gh` stops resolving in new boxes. Every other host tool is opt-in via `agentbox tools add` or an `agentbox.yaml` `tools:` request."
726
937
  },
727
938
  {
728
- key: "integrations.linear.enabled",
939
+ key: "tools.request.enabled",
729
940
  type: "bool",
730
- description: 'Enable the in-box Linear integration shim (`linear` commands routed via the host relay; backed by `@schpet/linear-cli`). When false (default), the relay refuses dispatch with a clear "disabled" error and no host process is touched.'
941
+ description: "Whether a box may ask the host for access to a new host CLI (`agentbox-ctl tool request <bin>`). True (default) raises a host approval prompt naming the box, the binary and the reason; false refuses the request outright so boxes can only use tools already granted."
731
942
  }
732
943
  ];
733
944
  var REGISTRY_BY_KEY = new Map(KEY_REGISTRY.map((d) => [d.key, d]));
@@ -1041,6 +1252,10 @@ async function configPathFor(scope, cwd) {
1041
1252
  if (scope === "project") return projectConfigFile(root.root);
1042
1253
  return workspaceConfigFile(root.root);
1043
1254
  }
1255
+ var GLOBAL_TOOLS_FILE = join(STATE_DIR, "tools.yaml");
1256
+ function projectToolsFile(absPath) {
1257
+ return join(projectConfigDir(absPath), "tools.yaml");
1258
+ }
1044
1259
  var warningSink = null;
1045
1260
  function setConfigWarningSink(fn) {
1046
1261
  warningSink = fn;
@@ -1504,6 +1719,100 @@ async function touchProjectMeta(absPath, originUrl) {
1504
1719
  await writeFile(tmp, JSON.stringify(next, null, 2) + "\n", { encoding: "utf8", mode: 420 });
1505
1720
  await rename(tmp, metaPath);
1506
1721
  }
1722
+ var BUILTIN_GH_GRANT = {
1723
+ name: "gh",
1724
+ bin: "gh",
1725
+ source: "builtin"
1726
+ };
1727
+ async function loadGrantedTools(cwd, opts = {}) {
1728
+ const merged = /* @__PURE__ */ new Map();
1729
+ if (opts.includeBuiltins !== false) merged.set(BUILTIN_GH_GRANT.name, BUILTIN_GH_GRANT);
1730
+ let root = cwd;
1731
+ try {
1732
+ root = (await findProjectRoot(cwd)).root;
1733
+ } catch {
1734
+ }
1735
+ for (const file of [GLOBAL_TOOLS_FILE, projectToolsFile(root)]) {
1736
+ for (const grant of await readToolsFile(file)) merged.set(grant.name, grant);
1737
+ }
1738
+ return merged;
1739
+ }
1740
+ async function resolveProjectToolsFile(cwd) {
1741
+ try {
1742
+ return projectToolsFile((await findProjectRoot(cwd)).root);
1743
+ } catch {
1744
+ return projectToolsFile(cwd);
1745
+ }
1746
+ }
1747
+ async function readToolsFile(file) {
1748
+ let raw;
1749
+ try {
1750
+ raw = await readFile3(file, "utf8");
1751
+ } catch {
1752
+ return [];
1753
+ }
1754
+ let doc;
1755
+ try {
1756
+ doc = parseYaml4(raw);
1757
+ } catch {
1758
+ return [];
1759
+ }
1760
+ const tools = doc?.tools;
1761
+ if (!tools || typeof tools !== "object") return [];
1762
+ const out = [];
1763
+ for (const [name, value] of Object.entries(tools)) {
1764
+ if (!isValidToolName(name)) continue;
1765
+ const entry = value ?? {};
1766
+ out.push({
1767
+ name,
1768
+ bin: typeof entry.bin === "string" && entry.bin ? entry.bin : name,
1769
+ ...stringArray(entry.allow) ? { allow: stringArray(entry.allow) } : {},
1770
+ ...stringArray(entry.deny) ? { deny: stringArray(entry.deny) } : {},
1771
+ ...typeof entry.timeoutMs === "number" && entry.timeoutMs > 0 ? { timeoutMs: entry.timeoutMs } : {},
1772
+ source: isGrantSource(entry.source) ? entry.source : "cli",
1773
+ ...typeof entry.approvedAt === "string" ? { approvedAt: entry.approvedAt } : {}
1774
+ });
1775
+ }
1776
+ return out;
1777
+ }
1778
+ async function writeToolGrant(file, grant) {
1779
+ const existing = await readToolsFile(file);
1780
+ const byName = new Map(existing.map((g) => [g.name, g]));
1781
+ byName.set(grant.name, grant);
1782
+ await persist(file, [...byName.values()]);
1783
+ }
1784
+ async function removeToolGrant(file, name) {
1785
+ const existing = await readToolsFile(file);
1786
+ const kept = existing.filter((g) => g.name !== name);
1787
+ if (kept.length === existing.length) return false;
1788
+ await persist(file, kept);
1789
+ return true;
1790
+ }
1791
+ async function persist(file, grants) {
1792
+ await mkdir3(dirname4(file), { recursive: true });
1793
+ const tools = {};
1794
+ for (const g of grants.sort((a, b) => a.name.localeCompare(b.name))) {
1795
+ const rest = { bin: g.bin, source: g.source };
1796
+ if (g.allow) rest.allow = g.allow;
1797
+ if (g.deny) rest.deny = g.deny;
1798
+ if (g.timeoutMs !== void 0) rest.timeoutMs = g.timeoutMs;
1799
+ if (g.approvedAt) rest.approvedAt = g.approvedAt;
1800
+ tools[g.name] = rest;
1801
+ }
1802
+ const header = "# agentbox host-tool grants \u2014 written by `agentbox tools` and by approved\n# in-box `agentbox-ctl tool request` calls. The relay reads only this file;\n# an agentbox.yaml `tools:` entry is a request until it is approved here.\n";
1803
+ await writeFile2(file, header + stringifyYaml2({ tools }), "utf8");
1804
+ }
1805
+ function isValidToolName(name) {
1806
+ return /^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,63}$/.test(name);
1807
+ }
1808
+ function stringArray(v) {
1809
+ if (!Array.isArray(v)) return void 0;
1810
+ const out = v.filter((x) => typeof x === "string" && x.length > 0);
1811
+ return out.length > 0 ? out : void 0;
1812
+ }
1813
+ function isGrantSource(v) {
1814
+ return v === "builtin" || v === "cli" || v === "yaml" || v === "request";
1815
+ }
1507
1816
 
1508
1817
  export {
1509
1818
  PROVIDERS,
@@ -1538,6 +1847,8 @@ export {
1538
1847
  projectMetaFile,
1539
1848
  workspaceConfigFile,
1540
1849
  configPathFor,
1850
+ GLOBAL_TOOLS_FILE,
1851
+ projectToolsFile,
1541
1852
  setConfigWarningSink,
1542
1853
  loadProjectAgentboxDefaults,
1543
1854
  loadEffectiveConfig,
@@ -1558,6 +1869,13 @@ export {
1558
1869
  pruneOrphanProjectConfigs,
1559
1870
  bumpProjectGcCounter,
1560
1871
  registerProject,
1561
- unregisterProject
1872
+ unregisterProject,
1873
+ BUILTIN_GH_GRANT,
1874
+ loadGrantedTools,
1875
+ resolveProjectToolsFile,
1876
+ readToolsFile,
1877
+ writeToolGrant,
1878
+ removeToolGrant,
1879
+ isValidToolName
1562
1880
  };
1563
- //# sourceMappingURL=chunk-NHVGKFVY.js.map
1881
+ //# sourceMappingURL=chunk-7LNXTPEE.js.map