@madarco/agentbox 0.27.0 → 0.27.2

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 (233) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/{_cloud-attach-WDGM6FL5.js → _cloud-attach-FVD5YJCE.js} +6 -4
  3. package/dist/{chunk-NEF6MDJO.js → chunk-2PCU4OF5.js} +4 -4
  4. package/dist/{chunk-JE6UI5YR.js → chunk-47BVC7FN.js} +7 -59
  5. package/dist/chunk-47BVC7FN.js.map +1 -0
  6. package/dist/chunk-5ZK5MQA2.js +64 -0
  7. package/dist/chunk-5ZK5MQA2.js.map +1 -0
  8. package/dist/{chunk-26IKZRTT.js → chunk-A4OVGMVL.js} +23 -16
  9. package/dist/chunk-A4OVGMVL.js.map +1 -0
  10. package/dist/{chunk-KWOEUFVA.js → chunk-EZWPCTUO.js} +2 -2
  11. package/dist/{chunk-IDH5A4RR.js → chunk-F6NQZ4DC.js} +2 -2
  12. package/dist/chunk-G3H2L3O2.js +0 -0
  13. package/dist/chunk-IMN62QY5.js +285 -0
  14. package/dist/chunk-IMN62QY5.js.map +1 -0
  15. package/dist/chunk-JGZSA5ZI.js +0 -0
  16. package/dist/{chunk-V5XXJH63.js → chunk-JNFUWQ4N.js} +2 -2
  17. package/dist/{chunk-UJEH2NJT.js → chunk-JRXNVEV3.js} +2 -271
  18. package/dist/chunk-JRXNVEV3.js.map +1 -0
  19. package/dist/{chunk-LL7NCMUU.js → chunk-QAJQXZ3N.js} +3 -3
  20. package/dist/{chunk-SJ75AIA2.js → chunk-QJT2XOKH.js} +8 -6
  21. package/dist/{chunk-SJ75AIA2.js.map → chunk-QJT2XOKH.js.map} +1 -1
  22. package/dist/{chunk-HR7NHH5J.js → chunk-RK2CEABS.js} +205 -5
  23. package/dist/{chunk-HR7NHH5J.js.map → chunk-RK2CEABS.js.map} +1 -1
  24. package/dist/chunk-WJFZJZIM.js +0 -0
  25. package/dist/cloud-backends.js +28 -0
  26. package/dist/cloud-backends.js.map +1 -0
  27. package/dist/cloud-poller-SUNA6ZQC-7M5LJHHE.js +0 -0
  28. package/dist/{dist-O3LKOIE7.js → dist-2SXD3ITR.js} +6 -5
  29. package/dist/{dist-O3LKOIE7.js.map → dist-2SXD3ITR.js.map} +1 -1
  30. package/dist/{dist-FTKS2GI4.js → dist-4KTWNGU6.js} +6 -5
  31. package/dist/{dist-WVYAURMF.js → dist-6ZOCQZIP.js} +6 -5
  32. package/dist/{dist-OO52HARR.js → dist-7VCYREHM.js} +22 -20
  33. package/dist/{dist-KQTMCVME.js → dist-TL4YW7KZ.js} +6 -5
  34. package/dist/{dist-KQTMCVME.js.map → dist-TL4YW7KZ.js.map} +1 -1
  35. package/dist/dist-U2SVLJUQ.js +0 -0
  36. package/dist/{dist-TSFVB7AI.js → dist-UUOX4DBX.js} +6 -5
  37. package/dist/{dist-TSFVB7AI.js.map → dist-UUOX4DBX.js.map} +1 -1
  38. package/dist/dist-XSEK7LX3.js +156 -0
  39. package/dist/{dist-Z6L5MM5D.js → dist-YGXQMN2K.js} +6 -5
  40. package/dist/index.js +59 -55
  41. package/dist/index.js.map +1 -1
  42. package/dist/{prepared-state-75DIZ55S-TNJXWMXV.js → prepared-state-75DIZ55S-B33TDOJZ.js} +3 -2
  43. package/dist/prepared-state-75DIZ55S-B33TDOJZ.js.map +1 -0
  44. package/package.json +31 -29
  45. package/runtime/_shared/agentbox-checkpoint-cleanup +0 -0
  46. package/runtime/_shared/agentbox-dockerd-start +0 -0
  47. package/runtime/_shared/agentbox-open +0 -0
  48. package/runtime/_shared/agentbox-portless-trust +0 -0
  49. package/runtime/_shared/agentbox-vnc-start +0 -0
  50. package/runtime/_shared/ctl.cjs +186 -172
  51. package/runtime/_shared/gh-shim +0 -0
  52. package/runtime/_shared/git-shim +0 -0
  53. package/runtime/_shared/linear-shim +0 -0
  54. package/runtime/_shared/ntn-shim +0 -0
  55. package/runtime/digitalocean/agentbox-checkpoint-cleanup +0 -0
  56. package/runtime/digitalocean/agentbox-dockerd-start +0 -0
  57. package/runtime/digitalocean/agentbox-open +0 -0
  58. package/runtime/digitalocean/agentbox-portless-trust +0 -0
  59. package/runtime/digitalocean/agentbox-vnc-start +0 -0
  60. package/runtime/digitalocean/ctl.cjs +186 -172
  61. package/runtime/digitalocean/gh-shim +0 -0
  62. package/runtime/digitalocean/git-shim +0 -0
  63. package/runtime/digitalocean/linear-shim +0 -0
  64. package/runtime/digitalocean/ntn-shim +0 -0
  65. package/runtime/digitalocean/scripts/install-box.sh +0 -0
  66. package/runtime/docker/packages/ctl/dist/bin.cjs +186 -172
  67. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-checkpoint-cleanup +0 -0
  68. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-dockerd-start +0 -0
  69. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-open +0 -0
  70. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-portless-trust +0 -0
  71. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-sshd-start +0 -0
  72. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-vnc-start +0 -0
  73. package/runtime/docker/packages/sandbox-docker/scripts/chromium-resolver +0 -0
  74. package/runtime/docker/packages/sandbox-docker/scripts/gh-shim +0 -0
  75. package/runtime/docker/packages/sandbox-docker/scripts/git-shim +0 -0
  76. package/runtime/docker/packages/sandbox-docker/scripts/linear-shim +0 -0
  77. package/runtime/docker/packages/sandbox-docker/scripts/ntn-shim +0 -0
  78. package/runtime/e2b/agentbox-checkpoint-cleanup +0 -0
  79. package/runtime/e2b/agentbox-dockerd-start +0 -0
  80. package/runtime/e2b/agentbox-open +0 -0
  81. package/runtime/e2b/agentbox-vnc-start +0 -0
  82. package/runtime/e2b/ctl.cjs +186 -172
  83. package/runtime/e2b/gh-shim +0 -0
  84. package/runtime/e2b/git-shim +0 -0
  85. package/runtime/e2b/linear-shim +0 -0
  86. package/runtime/e2b/ntn-shim +0 -0
  87. package/runtime/e2b/scripts/build-template.sh +0 -0
  88. package/runtime/hetzner/agentbox-checkpoint-cleanup +0 -0
  89. package/runtime/hetzner/agentbox-dockerd-start +0 -0
  90. package/runtime/hetzner/agentbox-open +0 -0
  91. package/runtime/hetzner/agentbox-portless-trust +0 -0
  92. package/runtime/hetzner/agentbox-vnc-start +0 -0
  93. package/runtime/hetzner/ctl.cjs +186 -172
  94. package/runtime/hetzner/gh-shim +0 -0
  95. package/runtime/hetzner/git-shim +0 -0
  96. package/runtime/hetzner/linear-shim +0 -0
  97. package/runtime/hetzner/ntn-shim +0 -0
  98. package/runtime/hetzner/scripts/install-box.sh +0 -0
  99. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  100. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  101. package/runtime/hub/apps/hub/.next/prerender-manifest.json +3 -3
  102. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +1 -1
  103. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -1
  104. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +1 -1
  105. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  106. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +12 -12
  107. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  108. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +11 -11
  109. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  110. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +8 -8
  111. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  112. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
  113. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
  114. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  115. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  116. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  117. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  118. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  119. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  120. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  121. package/runtime/hub/apps/hub/.next/server/chunks/0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js +3 -0
  122. package/runtime/hub/apps/hub/.next/server/chunks/151__@better-auth_core_dist_0ecdp_3._.js +1 -1
  123. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04h15ml._.js +1 -1
  124. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04jgk9x._.js +1 -1
  125. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07ednlo._.js +1 -1
  126. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a7djvw._.js +1 -1
  127. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +5 -5
  128. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ig1bot._.js +1 -1
  129. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0szd4sh._.js +1 -1
  130. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t7o5ed._.js +1 -1
  131. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-0flwc._.js +1 -1
  132. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-9g0ae._.js +2 -2
  133. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1e4z_-v._.js → [root-of-the-server]__11izd5j._.js} +2 -2
  134. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13ioh5z._.js +1 -1
  135. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13jwk_k._.js +1 -1
  136. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16_uteg._.js +1 -1
  137. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16p2m-g._.js +1 -1
  138. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1k8g143._.js → [root-of-the-server]__19pc87s._.js} +2 -2
  139. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_gu2yk._.js +1 -1
  140. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ai-945._.js +1 -1
  141. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bu2zio._.js +1 -1
  142. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ctczev._.js +1 -1
  143. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f2sueq._.js +1 -1
  144. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9zctr._.js +1 -1
  145. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1md9kdw._.js +1 -1
  146. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mttufy._.js +1 -1
  147. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pp5oib._.js +1 -1
  148. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qwhzmi._.js +1 -1
  149. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1thipug._.js +1 -1
  150. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xeczo7._.js +1 -1
  151. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20503l7._.js +1 -1
  152. package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +3 -3
  153. package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +3 -3
  154. package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +1 -1
  155. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +1 -1
  156. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +1 -1
  157. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +1 -1
  158. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +1 -1
  159. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +1 -1
  160. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +1 -1
  161. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +1 -1
  162. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +1 -1
  163. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +1 -1
  164. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +1 -1
  165. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +1 -1
  166. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +1 -1
  167. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +1 -1
  168. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +1 -1
  169. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +1 -1
  170. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +1 -1
  171. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +1 -1
  172. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_03s-ah2._.js +1 -1
  173. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +1 -1
  174. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +1 -1
  175. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r4px38._.js +1 -1
  176. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_18w2zeh._.js +1 -1
  177. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +1 -1
  178. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +1 -1
  179. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +1 -1
  180. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
  181. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +1 -1
  182. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +1 -1
  183. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  184. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  185. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -1
  186. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +18 -18
  187. package/runtime/hub/apps/hub/.next/static/chunks/{44j61g8lm9nvw.js → 1-maeq_pl3z29.js} +1 -1
  188. package/runtime/hub/apps/hub/.next/static/chunks/{3-zanu4ioia5i.js → 1f-pwhlfklk8h.js} +1 -1
  189. package/runtime/hub/apps/hub/.next/static/chunks/{0xdtiy_m2ygv8.js → 1g922r_mc5ciw.js} +1 -1
  190. package/runtime/hub/apps/hub/.next/static/chunks/{26rwu1f2gzemi.js → 2k1tvmngrtdgs.js} +1 -1
  191. package/runtime/hub/apps/hub/.next/static/chunks/{3v6kx35_lwjs8.js → 2omimeqtc8qnp.js} +1 -1
  192. package/runtime/hub/apps/hub/.next/static/chunks/{000a1sa7te1h8.js → 3urpddxa8b_je.js} +1 -1
  193. package/runtime/hub/apps/hub/{chunk-YJ5MJOXK.js → chunk-5ARPIPV4.js} +194 -171
  194. package/runtime/hub/apps/hub/{chunk-EHBJKZCL.js → chunk-AEIOQFZ4.js} +245 -2
  195. package/runtime/hub/apps/hub/dist-2EOAT3PC.js +155 -0
  196. package/runtime/hub/apps/hub/{dist-LYDHYTP2.js → dist-DQIL673Y.js} +2 -2
  197. package/runtime/hub/apps/hub/{dist-GTVVXCBP.js → dist-EURE7AUA.js} +2 -2
  198. package/runtime/hub/apps/hub/{dist-JG45OFT2.js → dist-EYHD64SR.js} +16 -16
  199. package/runtime/hub/apps/hub/{dist-G6TXUSPZ.js → dist-GFXXCXLS.js} +2 -2
  200. package/runtime/hub/apps/hub/{dist-DX6IYMAH.js → dist-IVA2PC7N.js} +2 -2
  201. package/runtime/hub/apps/hub/{dist-6FPPUSWZ.js → dist-MMTT7VYJ.js} +1 -1
  202. package/runtime/hub/apps/hub/{dist-3I7KUI6W.js → dist-TAWVTJGU.js} +2 -2
  203. package/runtime/hub/apps/hub/server.js +28 -15
  204. package/runtime/relay/bin.cjs +37 -3
  205. package/runtime/vercel/agentbox-checkpoint-cleanup +0 -0
  206. package/runtime/vercel/agentbox-dockerd-start +0 -0
  207. package/runtime/vercel/agentbox-open +0 -0
  208. package/runtime/vercel/agentbox-vnc-start +0 -0
  209. package/runtime/vercel/ctl.cjs +186 -172
  210. package/runtime/vercel/gh-shim +0 -0
  211. package/runtime/vercel/git-shim +0 -0
  212. package/runtime/vercel/linear-shim +0 -0
  213. package/runtime/vercel/ntn-shim +0 -0
  214. package/runtime/vercel/scripts/provision.sh +0 -0
  215. package/LICENSE +0 -21
  216. package/dist/chunk-26IKZRTT.js.map +0 -1
  217. package/dist/chunk-JE6UI5YR.js.map +0 -1
  218. package/dist/chunk-UJEH2NJT.js.map +0 -1
  219. package/runtime/hub/apps/hub/.next/server/chunks/0-fj_better-auth_dist_adapters_kysely-adapter_index_mjs_0btft52._.js +0 -3
  220. /package/dist/{_cloud-attach-WDGM6FL5.js.map → _cloud-attach-FVD5YJCE.js.map} +0 -0
  221. /package/dist/{chunk-NEF6MDJO.js.map → chunk-2PCU4OF5.js.map} +0 -0
  222. /package/dist/{chunk-KWOEUFVA.js.map → chunk-EZWPCTUO.js.map} +0 -0
  223. /package/dist/{chunk-IDH5A4RR.js.map → chunk-F6NQZ4DC.js.map} +0 -0
  224. /package/dist/{chunk-V5XXJH63.js.map → chunk-JNFUWQ4N.js.map} +0 -0
  225. /package/dist/{chunk-LL7NCMUU.js.map → chunk-QAJQXZ3N.js.map} +0 -0
  226. /package/dist/{dist-FTKS2GI4.js.map → dist-4KTWNGU6.js.map} +0 -0
  227. /package/dist/{dist-OO52HARR.js.map → dist-6ZOCQZIP.js.map} +0 -0
  228. /package/dist/{dist-WVYAURMF.js.map → dist-7VCYREHM.js.map} +0 -0
  229. /package/dist/{dist-Z6L5MM5D.js.map → dist-XSEK7LX3.js.map} +0 -0
  230. /package/dist/{prepared-state-75DIZ55S-TNJXWMXV.js.map → dist-YGXQMN2K.js.map} +0 -0
  231. /package/runtime/hub/apps/hub/.next/static/{S-yw9-SVffiEHRGm85NzP → Wddru2A-5szSWhZWYoMwi}/_buildManifest.js +0 -0
  232. /package/runtime/hub/apps/hub/.next/static/{S-yw9-SVffiEHRGm85NzP → Wddru2A-5szSWhZWYoMwi}/_clientMiddlewareManifest.js +0 -0
  233. /package/runtime/hub/apps/hub/.next/static/{S-yw9-SVffiEHRGm85NzP → Wddru2A-5szSWhZWYoMwi}/_ssgManifest.js +0 -0
@@ -22,20 +22,22 @@ import {
22
22
  readBoxStatus,
23
23
  registerBoxWithRelay,
24
24
  syncClaudeCredentials
25
- } from "./chunk-26IKZRTT.js";
25
+ } from "./chunk-A4OVGMVL.js";
26
26
  import {
27
27
  hashProjectPath,
28
28
  loadEffectiveConfig,
29
29
  projectDirSegment,
30
30
  sanitizeMnemonic
31
31
  } from "./chunk-JGZSA5ZI.js";
32
+ import {
33
+ DEFAULT_BOX_IMAGE
34
+ } from "./chunk-IMN62QY5.js";
32
35
  import {
33
36
  AGENT_SYNC_SPECS,
34
37
  BOX_DYNAMIC_SYNC_MANIFEST,
35
38
  BOX_HOME,
36
39
  BOX_MEMORY_DIR,
37
40
  BOX_WORKFLOWS_DIR,
38
- DEFAULT_BOX_IMAGE,
39
41
  SEED_MARKER,
40
42
  SYNC_DRYRUN_ENV,
41
43
  UserFacingError,
@@ -77,7 +79,7 @@ import {
77
79
  stageOpencodeStateForUpload,
78
80
  stageOpencodeStaticForUpload,
79
81
  writeCredentialBackup
80
- } from "./chunk-UJEH2NJT.js";
82
+ } from "./chunk-JRXNVEV3.js";
81
83
 
82
84
  // ../../packages/sandbox-cloud/dist/index.js
83
85
  import { basename as basename2, resolve } from "path";
@@ -3087,6 +3089,26 @@ function defaultCommand(kind, opts) {
3087
3089
  function shellSingle(s) {
3088
3090
  return "'" + s.replace(/'/g, "'\\''") + "'";
3089
3091
  }
3092
+ function emptyCloudStats(provider) {
3093
+ return {
3094
+ source: provider,
3095
+ live: false,
3096
+ cpuPercent: null,
3097
+ memUsedBytes: null,
3098
+ memLimitBytes: null,
3099
+ memPercent: null,
3100
+ pids: null,
3101
+ diskUsedBytes: null,
3102
+ snapshotDiskBytes: null,
3103
+ checkpointVolumeBytes: null,
3104
+ netRxBytes: null,
3105
+ netTxBytes: null,
3106
+ blockReadBytes: null,
3107
+ blockWriteBytes: null,
3108
+ limits: { memoryBytes: null, cpus: null, pidsLimit: null, disk: null },
3109
+ warnings: []
3110
+ };
3111
+ }
3090
3112
  function remoteTarFor(kind) {
3091
3113
  return `/tmp/agentbox-seed-${kind}.tar.gz`;
3092
3114
  }
@@ -3163,14 +3185,183 @@ async function openWebAppOnVncScreen(box, provider) {
3163
3185
  return { opened: false, reason: err instanceof Error ? err.message : String(err) };
3164
3186
  }
3165
3187
  }
3188
+ function makeMockCloudBackend(opts = {}) {
3189
+ const name = opts.name ?? "mock";
3190
+ const calls = [];
3191
+ const sandboxes = /* @__PURE__ */ new Map();
3192
+ const snapshots = /* @__PURE__ */ new Map();
3193
+ for (const pre of opts.preloaded ?? []) {
3194
+ sandboxes.set(pre.id, {
3195
+ id: pre.id,
3196
+ name: pre.name ?? pre.id,
3197
+ state: pre.state ?? "running",
3198
+ createdAt: pre.createdAt ?? (/* @__PURE__ */ new Date()).toISOString(),
3199
+ image: "mock/preloaded",
3200
+ files: /* @__PURE__ */ new Map()
3201
+ });
3202
+ }
3203
+ const record = async (method, args) => {
3204
+ calls.push({ method, args });
3205
+ if (opts.beforeCall) await opts.beforeCall(method, args);
3206
+ };
3207
+ const requireSandbox = (id) => {
3208
+ const sb = sandboxes.get(id);
3209
+ if (!sb) throw new Error(`mock backend: sandbox ${id} not found`);
3210
+ return sb;
3211
+ };
3212
+ const backend = {
3213
+ name,
3214
+ get calls() {
3215
+ return calls;
3216
+ },
3217
+ get sandboxes() {
3218
+ return Array.from(sandboxes.values());
3219
+ },
3220
+ clearCalls() {
3221
+ calls.length = 0;
3222
+ },
3223
+ async provision(req) {
3224
+ await record("provision", [req]);
3225
+ const id = `mock-${String(sandboxes.size + 1)}-${req.name}`;
3226
+ sandboxes.set(id, {
3227
+ id,
3228
+ name: req.name,
3229
+ state: "running",
3230
+ createdAt: (/* @__PURE__ */ new Date()).toISOString(),
3231
+ image: req.snapshot ?? req.image,
3232
+ files: /* @__PURE__ */ new Map()
3233
+ });
3234
+ return { sandboxId: id };
3235
+ },
3236
+ async get(sandboxId) {
3237
+ await record("get", [sandboxId]);
3238
+ return sandboxes.has(sandboxId) ? { sandboxId } : null;
3239
+ },
3240
+ async list() {
3241
+ await record("list", []);
3242
+ return Array.from(sandboxes.values()).map((sb) => ({
3243
+ sandboxId: sb.id,
3244
+ name: sb.name,
3245
+ createdAt: sb.createdAt,
3246
+ state: sb.state
3247
+ }));
3248
+ },
3249
+ async start(h) {
3250
+ await record("start", [h]);
3251
+ const sb = requireSandbox(h.sandboxId);
3252
+ sb.state = "running";
3253
+ },
3254
+ async stop(h) {
3255
+ await record("stop", [h]);
3256
+ const sb = requireSandbox(h.sandboxId);
3257
+ sb.state = "stopped";
3258
+ },
3259
+ async pause(h) {
3260
+ await record("pause", [h]);
3261
+ const sb = requireSandbox(h.sandboxId);
3262
+ sb.state = "paused";
3263
+ },
3264
+ async resume(h) {
3265
+ await record("resume", [h]);
3266
+ const sb = requireSandbox(h.sandboxId);
3267
+ sb.state = "running";
3268
+ },
3269
+ async destroy(h) {
3270
+ await record("destroy", [h]);
3271
+ sandboxes.delete(h.sandboxId);
3272
+ },
3273
+ async state(h) {
3274
+ await record("state", [h]);
3275
+ const sb = sandboxes.get(h.sandboxId);
3276
+ return sb ? sb.state : "missing";
3277
+ },
3278
+ async exec(h, cmd, opts2) {
3279
+ await record("exec", [h, cmd, opts2]);
3280
+ requireSandbox(h.sandboxId);
3281
+ return { exitCode: 0, stdout: "", stderr: "" };
3282
+ },
3283
+ async uploadFile(h, localPath, remotePath) {
3284
+ await record("uploadFile", [h, localPath, remotePath]);
3285
+ const sb = requireSandbox(h.sandboxId);
3286
+ sb.files.set(remotePath, new Uint8Array([0]));
3287
+ },
3288
+ async downloadFile(h, remotePath, localPath) {
3289
+ await record("downloadFile", [h, remotePath, localPath]);
3290
+ const sb = requireSandbox(h.sandboxId);
3291
+ if (!sb.files.has(remotePath)) {
3292
+ throw new Error(`mock backend: ${remotePath} not in sandbox ${h.sandboxId}`);
3293
+ }
3294
+ },
3295
+ async listFiles(h, remoteDir) {
3296
+ await record("listFiles", [h, remoteDir]);
3297
+ const sb = requireSandbox(h.sandboxId);
3298
+ const prefix = remoteDir.endsWith("/") ? remoteDir : `${remoteDir}/`;
3299
+ const out = [];
3300
+ for (const p of sb.files.keys()) {
3301
+ if (p.startsWith(prefix)) {
3302
+ out.push({ name: p.slice(prefix.length), isDir: false });
3303
+ }
3304
+ }
3305
+ return out;
3306
+ },
3307
+ async previewUrl(h, port) {
3308
+ await record("previewUrl", [h, port]);
3309
+ requireSandbox(h.sandboxId);
3310
+ return { url: `https://${String(port)}-${h.sandboxId}.mock.preview`, token: "mock-token" };
3311
+ },
3312
+ async signedPreviewUrl(h, port, expiresInSeconds) {
3313
+ await record("signedPreviewUrl", [h, port, expiresInSeconds]);
3314
+ requireSandbox(h.sandboxId);
3315
+ return {
3316
+ url: `https://${String(port)}-${h.sandboxId}-signed${String(expiresInSeconds)}.mock.preview`
3317
+ };
3318
+ },
3319
+ async attachArgv(h) {
3320
+ await record("attachArgv", [h]);
3321
+ requireSandbox(h.sandboxId);
3322
+ return ["ssh", "-o", "StrictHostKeyChecking=no", `mock-token@${h.sandboxId}.mock.ssh`];
3323
+ },
3324
+ async revokeAttachToken(h, argv) {
3325
+ await record("revokeAttachToken", [h, argv]);
3326
+ },
3327
+ async ensureVolume(volumeName) {
3328
+ await record("ensureVolume", [volumeName]);
3329
+ return { volumeId: `vol-${volumeName}` };
3330
+ },
3331
+ async createSnapshot(h, snapshotName) {
3332
+ await record("createSnapshot", [h, snapshotName]);
3333
+ requireSandbox(h.sandboxId);
3334
+ snapshots.set(snapshotName, { id: snapshotName });
3335
+ },
3336
+ async deleteSnapshot(snapshotName) {
3337
+ await record("deleteSnapshot", [snapshotName]);
3338
+ snapshots.delete(snapshotName);
3339
+ }
3340
+ };
3341
+ return backend;
3342
+ }
3166
3343
 
3167
3344
  export {
3168
3345
  quoteShellArgv,
3169
3346
  quoteShellArg,
3170
3347
  bashScript,
3348
+ createCloudSyncTransport,
3171
3349
  ensureAgentVolumesForCloud,
3172
3350
  seedAgentVolumesIfFresh,
3351
+ ensureAgentHomeDirsOwned,
3352
+ seedOpencodeModelState,
3173
3353
  agentSpecsForCloud,
3354
+ extractCloudAgentCredentials,
3355
+ reconcileAgentCredentials,
3356
+ reconcileAgentCredentialsViaTransport,
3357
+ seedDynamicConfig,
3358
+ seedClaudeJsonAtCreate,
3359
+ seedGitIdentity,
3360
+ seedGitCredentials,
3361
+ uploadEnvFiles,
3362
+ makeCloudSync,
3363
+ CLOUD_CHECKPOINTS_ROOT,
3364
+ CLOUD_SNAPSHOT_NAME_PREFIX,
3174
3365
  cloudSnapshotName,
3175
3366
  listCloudBackendDirs,
3176
3367
  listCloudCheckpoints,
@@ -3181,12 +3372,21 @@ export {
3181
3372
  baseFreshnessFromFingerprints,
3182
3373
  removeCloudCheckpointDir,
3183
3374
  probeCloudCheckpoint,
3375
+ pullCloudDirContents,
3376
+ uploadToCloudBox,
3377
+ downloadFromCloudBox,
3378
+ kickCloudBootstrap,
3379
+ seedCloudWorkspace,
3380
+ CLOUD_WORKSPACE_DIR,
3184
3381
  CLOUD_WEB_PROXY_PORT,
3185
3382
  CLOUD_VNC_PORT,
3186
3383
  createCloudProvider,
3187
3384
  hostTermForCloud,
3188
3385
  renderInnerCommand,
3386
+ emptyCloudStats,
3387
+ buildAgentStaticSeedCommands,
3189
3388
  seedAgentStaticIntoCloudBox,
3190
- openWebAppOnVncScreen
3389
+ openWebAppOnVncScreen,
3390
+ makeMockCloudBackend
3191
3391
  };
3192
- //# sourceMappingURL=chunk-HR7NHH5J.js.map
3392
+ //# sourceMappingURL=chunk-RK2CEABS.js.map