@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
@@ -3610,259 +3610,6 @@ function registryRefForSha(sha, registry = BOX_IMAGE_REGISTRY) {
3610
3610
  return `${registry}:sha-${sha.slice(0, 16)}`;
3611
3611
  }
3612
3612
 
3613
- // ../../packages/sandbox-docker/dist/chunk-6T2XZZB5.js
3614
- import { dirname as dirname23, resolve as resolve23 } from "path";
3615
- import { fileURLToPath as fileURLToPath2 } from "url";
3616
- import { execa as execa9 } from "execa";
3617
- import { existsSync as existsSync6 } from "fs";
3618
- import { fileURLToPath } from "url";
3619
- import { dirname as dirname11, resolve as resolve4 } from "path";
3620
- var DEFAULT_BOX_IMAGE = "agentbox/box:dev";
3621
- async function resolveClaudeInstallMode() {
3622
- try {
3623
- const { loadEffectiveConfig } = await import("./dist-U2SVLJUQ.js");
3624
- const cfg = await loadEffectiveConfig(process.cwd());
3625
- return cfg.effective.box.claudeInstall;
3626
- } catch {
3627
- return "native";
3628
- }
3629
- }
3630
- var here = dirname11(fileURLToPath(import.meta.url));
3631
- function resolveDockerBuild() {
3632
- const override = process.env.AGENTBOX_DOCKER_CONTEXT;
3633
- if (override && existsSync6(resolve4(override, "Dockerfile.box"))) {
3634
- return { dockerfile: resolve4(override, "Dockerfile.box"), context: override };
3635
- }
3636
- const staged = resolve4(here, "..", "runtime", "docker");
3637
- if (existsSync6(resolve4(staged, "Dockerfile.box"))) {
3638
- return { dockerfile: resolve4(staged, "Dockerfile.box"), context: staged };
3639
- }
3640
- const packageRoot = resolve4(here, "..");
3641
- return {
3642
- dockerfile: resolve4(packageRoot, "Dockerfile.box"),
3643
- context: resolve4(packageRoot, "..", "..")
3644
- };
3645
- }
3646
- var { dockerfile: DOCKERFILE_PATH_RESOLVED, context: BUILD_CONTEXT_DIR_RESOLVED } = resolveDockerBuild();
3647
- var DOCKERFILE_PATH = DOCKERFILE_PATH_RESOLVED;
3648
- var BUILD_CONTEXT_DIR = BUILD_CONTEXT_DIR_RESOLVED;
3649
- async function imageExists(ref) {
3650
- const result = await execa9("docker", ["image", "inspect", ref], { reject: false });
3651
- return result.exitCode === 0;
3652
- }
3653
- async function pullImage(target, opts = {}) {
3654
- const subprocess = execa9("docker", ["pull", target], {
3655
- stderr: "pipe",
3656
- stdout: "pipe",
3657
- reject: false
3658
- });
3659
- let heartbeat;
3660
- if (opts.onProgress) {
3661
- let lastLineAt = Date.now();
3662
- const forward = (chunk) => {
3663
- lastLineAt = Date.now();
3664
- const text = typeof chunk === "string" ? chunk : chunk.toString("utf8");
3665
- for (const line of text.split(/\r?\n/)) {
3666
- if (line.length > 0) opts.onProgress?.(line);
3667
- }
3668
- };
3669
- subprocess.stdout?.on("data", forward);
3670
- subprocess.stderr?.on("data", forward);
3671
- heartbeat = setInterval(() => {
3672
- if (Date.now() - lastLineAt >= 2e4) {
3673
- opts.onProgress?.(`still extracting ${target} \u2014 large layers can take a few minutes`);
3674
- }
3675
- }, 2e4);
3676
- }
3677
- try {
3678
- const result = await subprocess;
3679
- return result.exitCode === 0;
3680
- } finally {
3681
- if (heartbeat) clearInterval(heartbeat);
3682
- }
3683
- }
3684
- async function tagImage(source, target) {
3685
- await execa9("docker", ["tag", source, target]);
3686
- }
3687
- async function imageInfo(ref = DEFAULT_BOX_IMAGE) {
3688
- const result = await execa9(
3689
- "docker",
3690
- ["image", "inspect", "--format", "{{.Size}}|{{.Created}}", ref],
3691
- { reject: false }
3692
- );
3693
- if (result.exitCode !== 0) return { ref, exists: false };
3694
- const [sizeStr, createdAt] = result.stdout.trim().split("|");
3695
- const sizeBytes = sizeStr ? Number.parseInt(sizeStr, 10) : NaN;
3696
- return {
3697
- ref,
3698
- exists: true,
3699
- sizeBytes: Number.isFinite(sizeBytes) ? sizeBytes : void 0,
3700
- createdAt: createdAt && createdAt.length > 0 ? createdAt : void 0
3701
- };
3702
- }
3703
- async function buildImage(opts = {}) {
3704
- const ref = opts.ref ?? DEFAULT_BOX_IMAGE;
3705
- const dockerfile = opts.dockerfile ?? DOCKERFILE_PATH;
3706
- const contextDir = opts.contextDir ?? BUILD_CONTEXT_DIR;
3707
- const args = ["build", "-t", ref, "-f", dockerfile];
3708
- for (const [k, v] of Object.entries(opts.buildArgs ?? {})) {
3709
- args.push("--build-arg", `${k}=${v}`);
3710
- }
3711
- args.push(contextDir);
3712
- if (process.env.AGENTBOX === "1") {
3713
- args.splice(1, 0, "--network=host");
3714
- }
3715
- const subprocess = execa9("docker", args, {
3716
- stderr: "pipe",
3717
- stdout: "pipe"
3718
- });
3719
- if (opts.onProgress) {
3720
- const forward = (chunk) => {
3721
- const text = typeof chunk === "string" ? chunk : chunk.toString("utf8");
3722
- for (const line of text.split(/\r?\n/)) {
3723
- if (line.length > 0) opts.onProgress?.(line);
3724
- }
3725
- };
3726
- subprocess.stdout?.on("data", forward);
3727
- subprocess.stderr?.on("data", forward);
3728
- }
3729
- await subprocess;
3730
- return ref;
3731
- }
3732
- async function pullOrBuild(ref, fingerprint, opts = {}) {
3733
- const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-75DIZ55S-TNJXWMXV.js");
3734
- const registry = opts.registry ?? BOX_IMAGE_REGISTRY;
3735
- const allowPull = opts.allowPull !== false;
3736
- if (allowPull && registry && fingerprint) {
3737
- const target = registryRefForSha(fingerprint.contextSha256, registry);
3738
- opts.onProgress?.(`[image] pulling ${target}`);
3739
- if (await pullImage(target, { onProgress: opts.onProgress })) {
3740
- await tagImage(target, ref);
3741
- writePreparedDockerState2({ imageRef: ref, contextSha256: fingerprint.contextSha256 });
3742
- opts.onProgress?.(`[image] pulled ${target} -> ${ref}`);
3743
- return { source: "pulled" };
3744
- }
3745
- opts.onProgress?.(`[image] registry miss, building ${ref} locally`);
3746
- }
3747
- await buildImage({
3748
- ref,
3749
- dockerfile: opts.dockerfile,
3750
- contextDir: opts.contextDir,
3751
- buildArgs: opts.buildArgs,
3752
- onProgress: opts.onProgress
3753
- });
3754
- if (fingerprint) {
3755
- writePreparedDockerState2({ imageRef: ref, contextSha256: fingerprint.contextSha256 });
3756
- }
3757
- return { source: "built" };
3758
- }
3759
- async function ensureImage(ref = DEFAULT_BOX_IMAGE, opts = {}) {
3760
- const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-75DIZ55S-TNJXWMXV.js");
3761
- const claudeInstall = opts.claudeInstall ?? await resolveClaudeInstallMode();
3762
- const rawFingerprint = await computeDockerContextFingerprint2({
3763
- contextDir: opts.contextDir
3764
- });
3765
- const fingerprint = rawFingerprint ? {
3766
- ...rawFingerprint,
3767
- contextSha256: claudeInstallFingerprint(rawFingerprint.contextSha256, claudeInstall)
3768
- } : null;
3769
- const prepared = readPreparedDockerState2();
3770
- const exists = await imageExists(ref);
3771
- let reason;
3772
- if (!exists) {
3773
- reason = `image ${ref} not present`;
3774
- } else if (!fingerprint) {
3775
- return { ref, built: false, reason: "image present (fingerprint skipped)" };
3776
- } else if (!prepared) {
3777
- reason = "no docker-prepared.json on disk";
3778
- } else if (!preparedMatches2(prepared, fingerprint.contextSha256)) {
3779
- reason = `build context changed (was ${prepared.base?.contextSha256?.slice(0, 12) ?? "<none>"}, now ${fingerprint.contextSha256.slice(0, 12)})`;
3780
- }
3781
- if (!reason) {
3782
- return { ref, built: false, reason: "image up to date" };
3783
- }
3784
- opts.onProgress?.(`[image] ${ref}: ${reason}`);
3785
- const npm = claudeInstall === "npm";
3786
- const { source } = await pullOrBuild(ref, fingerprint, {
3787
- onProgress: opts.onProgress,
3788
- dockerfile: opts.dockerfile,
3789
- contextDir: opts.contextDir,
3790
- // npm mode pulls too. CI publishes both install variants, and `fingerprint`
3791
- // is already folded with the mode above — so the pull asks for the npm
3792
- // image's own tag and hits. (It used to be native-only, which meant npm
3793
- // users rebuilt the image locally on every first create, forever.) A tag
3794
- // that genuinely isn't published still falls back to a local build.
3795
- allowPull: opts.allowPull,
3796
- registry: opts.registry,
3797
- buildArgs: npm ? { AGENTBOX_CLAUDE_INSTALL: "npm" } : void 0
3798
- });
3799
- return { ref, built: source === "built", reason };
3800
- }
3801
- function classifyDockerBaseFreshness(input) {
3802
- if (!input.imagePresent) return { state: "unprepared" };
3803
- if (!input.fingerprint) return { state: "unknown" };
3804
- if (!input.stampedSha) return { state: "stale", reason: "no docker-prepared.json on disk" };
3805
- if (input.stampedSha !== input.fingerprint) {
3806
- return {
3807
- state: "stale",
3808
- reason: `build context changed (was ${input.stampedSha.slice(0, 12)}, now ${input.fingerprint.slice(0, 12)})`
3809
- };
3810
- }
3811
- return { state: "fresh" };
3812
- }
3813
- async function evaluateDockerBaseFreshness(opts = {}) {
3814
- const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-75DIZ55S-TNJXWMXV.js");
3815
- const ref = opts.ref ?? DEFAULT_BOX_IMAGE;
3816
- const imagePresent = await imageExists(ref);
3817
- if (!imagePresent) return { state: "unprepared" };
3818
- const claudeInstall = opts.claudeInstall ?? await resolveClaudeInstallMode();
3819
- const raw = await computeDockerContextFingerprint2({ contextDir: opts.contextDir });
3820
- return classifyDockerBaseFreshness({
3821
- imagePresent,
3822
- fingerprint: raw ? claudeInstallFingerprint(raw.contextSha256, claudeInstall) : null,
3823
- stampedSha: readPreparedDockerState2()?.base?.contextSha256 ?? null
3824
- });
3825
- }
3826
- var SCHEMA = 1;
3827
- function resolveContextFiles(opts = {}) {
3828
- const ctx = opts.contextDir ?? BUILD_CONTEXT_DIR;
3829
- const here2 = dirname23(fileURLToPath2(import.meta.url));
3830
- const packageRoot = resolve23(here2, "..");
3831
- return resolveContextFilesFrom(DOCKER_CONTEXT_FILE_MAP, {
3832
- contextDir: ctx,
3833
- devRoot: packageRoot
3834
- });
3835
- }
3836
- async function computeDockerContextFingerprint(opts = {}) {
3837
- const files = resolveContextFiles(opts);
3838
- if (!files) return null;
3839
- return { contextSha256: await computeContextSha256(files), files };
3840
- }
3841
- function readPreparedDockerState() {
3842
- const raw = readPreparedStateRaw("docker");
3843
- if (raw === null || typeof raw !== "object") return null;
3844
- const parsed = raw;
3845
- if (parsed.schema !== SCHEMA) return null;
3846
- return { schema: SCHEMA, base: parsed.base };
3847
- }
3848
- function writePreparedDockerState(opts) {
3849
- const stamp = readCliStamp();
3850
- const state = {
3851
- schema: SCHEMA,
3852
- base: {
3853
- imageRef: opts.imageRef ?? DEFAULT_BOX_IMAGE,
3854
- contextSha256: opts.contextSha256,
3855
- cliVersion: stamp.cliVersion,
3856
- cliCommit: stamp.cliCommit,
3857
- createdAt: (/* @__PURE__ */ new Date()).toISOString()
3858
- }
3859
- };
3860
- writePreparedStateRaw("docker", state);
3861
- }
3862
- function preparedMatches(state, current) {
3863
- return state?.base?.contextSha256 === current;
3864
- }
3865
-
3866
3613
  export {
3867
3614
  resolveAgentLauncher,
3868
3615
  ReplaceError,
@@ -4023,22 +3770,6 @@ export {
4023
3770
  DOCKER_CONTEXT_FILE_MAP,
4024
3771
  resolveContextFilesFrom,
4025
3772
  BOX_IMAGE_REGISTRY,
4026
- registryRefForSha,
4027
- DEFAULT_BOX_IMAGE,
4028
- DOCKERFILE_PATH,
4029
- BUILD_CONTEXT_DIR,
4030
- imageExists,
4031
- pullImage,
4032
- tagImage,
4033
- imageInfo,
4034
- pullOrBuild,
4035
- ensureImage,
4036
- classifyDockerBaseFreshness,
4037
- evaluateDockerBaseFreshness,
4038
- resolveContextFiles,
4039
- computeDockerContextFingerprint,
4040
- readPreparedDockerState,
4041
- writePreparedDockerState,
4042
- preparedMatches
3773
+ registryRefForSha
4043
3774
  };
4044
- //# sourceMappingURL=chunk-UJEH2NJT.js.map
3775
+ //# sourceMappingURL=chunk-JRXNVEV3.js.map