@madarco/agentbox 0.21.0 → 0.22.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 (571) hide show
  1. package/CHANGELOG.md +109 -0
  2. package/README.md +32 -0
  3. package/dist/{_cloud-attach-U3QJO7IF.js → _cloud-attach-YH2SU75S.js} +5 -4
  4. package/dist/chunk-ALEYDWAO.js +2561 -0
  5. package/dist/chunk-ALEYDWAO.js.map +1 -0
  6. package/dist/{chunk-QKL7PCXQ.js → chunk-CDEJ2GQK.js} +836 -488
  7. package/dist/chunk-CDEJ2GQK.js.map +1 -0
  8. package/dist/{chunk-PX7G4PSI.js → chunk-GGWVTWJM.js} +65 -34
  9. package/dist/{chunk-PX7G4PSI.js.map → chunk-GGWVTWJM.js.map} +1 -1
  10. package/dist/chunk-KBVD2UUQ.js +1654 -0
  11. package/dist/chunk-KBVD2UUQ.js.map +1 -0
  12. package/dist/{chunk-IXQTUXWV.js → chunk-O2NDZQHN.js} +50 -52
  13. package/dist/{chunk-IXQTUXWV.js.map → chunk-O2NDZQHN.js.map} +1 -1
  14. package/dist/{dist-NWKOEWUJ.js → chunk-O67ZESNL.js} +1059 -109
  15. package/dist/chunk-O67ZESNL.js.map +1 -0
  16. package/dist/chunk-VBSRJG53.js +1241 -0
  17. package/dist/chunk-VBSRJG53.js.map +1 -0
  18. package/dist/{chunk-6JJIKCMY.js → chunk-W2FLHB54.js} +26 -56
  19. package/dist/chunk-W2FLHB54.js.map +1 -0
  20. package/dist/{chunk-YZVFGFYQ.js → chunk-YZXXBHWG.js} +1937 -2975
  21. package/dist/chunk-YZXXBHWG.js.map +1 -0
  22. package/dist/{dist-SAS4PIHA.js → dist-EJXUKIR7.js} +41 -36
  23. package/dist/{dist-UVQJ2BZJ.js → dist-LJHS4PTC.js} +112 -62
  24. package/dist/dist-LJHS4PTC.js.map +1 -0
  25. package/dist/dist-QBXEP4VY.js +89 -0
  26. package/dist/dist-QNV4H6NN.js +80 -0
  27. package/dist/dist-QNV4H6NN.js.map +1 -0
  28. package/dist/{dist-FMA5Y25B.js → dist-UR2DB2HT.js} +83 -9
  29. package/dist/dist-UR2DB2HT.js.map +1 -0
  30. package/dist/dist-YECTRVGD.js +102 -0
  31. package/dist/dist-YECTRVGD.js.map +1 -0
  32. package/dist/index.js +3243 -1448
  33. package/dist/index.js.map +1 -1
  34. package/dist/{prepared-state-MQHD3M5F-YYVVMTNJ.js → prepared-state-5FIGV4BE-BMUK63FD.js} +2 -2
  35. package/dist/prepared-state-5FIGV4BE-BMUK63FD.js.map +1 -0
  36. package/package.json +12 -5
  37. package/runtime/_shared/agentbox-checkpoint-cleanup +55 -0
  38. package/runtime/_shared/agentbox-codex-hooks.json +68 -0
  39. package/runtime/_shared/agentbox-dockerd-start +145 -0
  40. package/runtime/_shared/agentbox-open +28 -0
  41. package/runtime/_shared/agentbox-portless-trust +82 -0
  42. package/runtime/_shared/agentbox-setup-skill.md +317 -0
  43. package/runtime/_shared/agentbox-vnc-start +102 -0
  44. package/runtime/_shared/claude-managed-settings.json +116 -0
  45. package/runtime/_shared/ctl.cjs +27469 -0
  46. package/runtime/_shared/gh-shim +344 -0
  47. package/runtime/_shared/git-shim +131 -0
  48. package/runtime/_shared/linear-shim +181 -0
  49. package/runtime/_shared/ntn-shim +95 -0
  50. package/runtime/_shared/opencode-agentbox-plugin.js +76 -0
  51. package/runtime/docker/Dockerfile.box +30 -17
  52. package/runtime/docker/packages/ctl/dist/bin.cjs +11871 -10351
  53. package/runtime/e2b/ctl.cjs +11871 -10351
  54. package/runtime/e2b/scripts/build-template.sh +31 -15
  55. package/runtime/hetzner/ctl.cjs +11871 -10351
  56. package/runtime/hetzner/scripts/install-box.sh +37 -19
  57. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -0
  58. package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +36 -0
  59. package/runtime/hub/apps/hub/.next/build-manifest.json +21 -0
  60. package/runtime/hub/apps/hub/.next/package.json +1 -0
  61. package/runtime/hub/apps/hub/.next/prerender-manifest.json +36 -0
  62. package/runtime/hub/apps/hub/.next/required-server-files.json +350 -0
  63. package/runtime/hub/apps/hub/.next/routes-manifest.json +292 -0
  64. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/app-paths-manifest.json +3 -0
  65. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/build-manifest.json +9 -0
  66. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/server-reference-manifest.json +4 -0
  67. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +13 -0
  68. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.map +5 -0
  69. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -0
  70. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route_client-reference-manifest.js +3 -0
  71. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/app-paths-manifest.json +3 -0
  72. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/build-manifest.json +17 -0
  73. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/next-font-manifest.json +13 -0
  74. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/react-loadable-manifest.json +1 -0
  75. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/server-reference-manifest.json +4 -0
  76. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js +14 -0
  77. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.map +5 -0
  78. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.nft.json +1 -0
  79. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +3 -0
  80. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/app-paths-manifest.json +3 -0
  81. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/build-manifest.json +9 -0
  82. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/server-reference-manifest.json +4 -0
  83. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js +7 -0
  84. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js.map +5 -0
  85. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js.nft.json +1 -0
  86. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route_client-reference-manifest.js +3 -0
  87. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/app-paths-manifest.json +3 -0
  88. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/build-manifest.json +9 -0
  89. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/server-reference-manifest.json +4 -0
  90. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js +7 -0
  91. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js.map +5 -0
  92. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js.nft.json +1 -0
  93. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route_client-reference-manifest.js +3 -0
  94. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/app-paths-manifest.json +3 -0
  95. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/build-manifest.json +9 -0
  96. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/server-reference-manifest.json +4 -0
  97. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +9 -0
  98. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.map +5 -0
  99. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -0
  100. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route_client-reference-manifest.js +3 -0
  101. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/app-paths-manifest.json +3 -0
  102. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/build-manifest.json +9 -0
  103. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/server-reference-manifest.json +4 -0
  104. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js +8 -0
  105. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.map +5 -0
  106. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -0
  107. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route_client-reference-manifest.js +3 -0
  108. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/app-paths-manifest.json +3 -0
  109. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/build-manifest.json +9 -0
  110. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/server-reference-manifest.json +4 -0
  111. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +9 -0
  112. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.map +5 -0
  113. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -0
  114. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route_client-reference-manifest.js +3 -0
  115. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/app-paths-manifest.json +3 -0
  116. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/build-manifest.json +9 -0
  117. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/server-reference-manifest.json +4 -0
  118. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js +8 -0
  119. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.map +5 -0
  120. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -0
  121. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route_client-reference-manifest.js +3 -0
  122. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/app-paths-manifest.json +3 -0
  123. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/build-manifest.json +9 -0
  124. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/server-reference-manifest.json +4 -0
  125. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +9 -0
  126. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.map +5 -0
  127. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -0
  128. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route_client-reference-manifest.js +3 -0
  129. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/app-paths-manifest.json +3 -0
  130. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/build-manifest.json +9 -0
  131. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/server-reference-manifest.json +4 -0
  132. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js +8 -0
  133. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.map +5 -0
  134. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -0
  135. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route_client-reference-manifest.js +3 -0
  136. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/app-paths-manifest.json +3 -0
  137. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/build-manifest.json +9 -0
  138. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/server-reference-manifest.json +4 -0
  139. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js +8 -0
  140. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.map +5 -0
  141. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -0
  142. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route_client-reference-manifest.js +3 -0
  143. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/app-paths-manifest.json +3 -0
  144. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/build-manifest.json +9 -0
  145. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/server-reference-manifest.json +4 -0
  146. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +9 -0
  147. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.map +5 -0
  148. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -0
  149. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route_client-reference-manifest.js +3 -0
  150. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/app-paths-manifest.json +3 -0
  151. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/build-manifest.json +9 -0
  152. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/server-reference-manifest.json +4 -0
  153. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js +8 -0
  154. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.map +5 -0
  155. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -0
  156. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route_client-reference-manifest.js +3 -0
  157. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/app-paths-manifest.json +3 -0
  158. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/build-manifest.json +9 -0
  159. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/server-reference-manifest.json +4 -0
  160. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +9 -0
  161. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.map +5 -0
  162. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -0
  163. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route_client-reference-manifest.js +3 -0
  164. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/app-paths-manifest.json +3 -0
  165. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/build-manifest.json +9 -0
  166. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/server-reference-manifest.json +4 -0
  167. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js +7 -0
  168. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.map +5 -0
  169. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.nft.json +1 -0
  170. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route_client-reference-manifest.js +3 -0
  171. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/app-paths-manifest.json +3 -0
  172. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/build-manifest.json +9 -0
  173. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/server-reference-manifest.json +4 -0
  174. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js +8 -0
  175. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.map +5 -0
  176. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.nft.json +1 -0
  177. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route_client-reference-manifest.js +3 -0
  178. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/app-paths-manifest.json +3 -0
  179. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/build-manifest.json +9 -0
  180. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/server-reference-manifest.json +4 -0
  181. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +9 -0
  182. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.map +5 -0
  183. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -0
  184. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route_client-reference-manifest.js +3 -0
  185. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/app-paths-manifest.json +3 -0
  186. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/build-manifest.json +9 -0
  187. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/server-reference-manifest.json +4 -0
  188. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js +8 -0
  189. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.map +5 -0
  190. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -0
  191. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route_client-reference-manifest.js +3 -0
  192. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/app-paths-manifest.json +3 -0
  193. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/build-manifest.json +9 -0
  194. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/server-reference-manifest.json +4 -0
  195. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js +8 -0
  196. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.map +5 -0
  197. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -0
  198. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route_client-reference-manifest.js +3 -0
  199. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/app-paths-manifest.json +3 -0
  200. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/build-manifest.json +9 -0
  201. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/server-reference-manifest.json +4 -0
  202. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js +7 -0
  203. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.map +5 -0
  204. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.nft.json +1 -0
  205. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route_client-reference-manifest.js +3 -0
  206. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/app-paths-manifest.json +3 -0
  207. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/build-manifest.json +9 -0
  208. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/server-reference-manifest.json +4 -0
  209. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js +8 -0
  210. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.map +5 -0
  211. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -0
  212. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route_client-reference-manifest.js +3 -0
  213. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/app-paths-manifest.json +3 -0
  214. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/build-manifest.json +9 -0
  215. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/server-reference-manifest.json +4 -0
  216. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js +8 -0
  217. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.map +5 -0
  218. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -0
  219. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route_client-reference-manifest.js +3 -0
  220. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/app-paths-manifest.json +3 -0
  221. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/build-manifest.json +9 -0
  222. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/server-reference-manifest.json +4 -0
  223. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +9 -0
  224. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.map +5 -0
  225. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -0
  226. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route_client-reference-manifest.js +3 -0
  227. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/app-paths-manifest.json +3 -0
  228. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/build-manifest.json +9 -0
  229. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/server-reference-manifest.json +4 -0
  230. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +9 -0
  231. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.map +5 -0
  232. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -0
  233. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route_client-reference-manifest.js +3 -0
  234. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/app-paths-manifest.json +3 -0
  235. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/build-manifest.json +9 -0
  236. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/server-reference-manifest.json +4 -0
  237. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +9 -0
  238. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.map +5 -0
  239. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -0
  240. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route_client-reference-manifest.js +3 -0
  241. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/app-paths-manifest.json +3 -0
  242. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/build-manifest.json +9 -0
  243. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/server-reference-manifest.json +4 -0
  244. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js +8 -0
  245. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.map +5 -0
  246. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -0
  247. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route_client-reference-manifest.js +3 -0
  248. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/app-paths-manifest.json +3 -0
  249. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/build-manifest.json +17 -0
  250. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/next-font-manifest.json +13 -0
  251. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/react-loadable-manifest.json +1 -0
  252. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +17 -0
  253. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js +17 -0
  254. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.map +5 -0
  255. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -0
  256. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +3 -0
  257. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/app-paths-manifest.json +3 -0
  258. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/build-manifest.json +17 -0
  259. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/next-font-manifest.json +13 -0
  260. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/react-loadable-manifest.json +1 -0
  261. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +137 -0
  262. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js +17 -0
  263. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.map +5 -0
  264. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -0
  265. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +3 -0
  266. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/app-paths-manifest.json +3 -0
  267. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/build-manifest.json +17 -0
  268. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/next-font-manifest.json +13 -0
  269. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/react-loadable-manifest.json +1 -0
  270. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +125 -0
  271. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js +17 -0
  272. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.map +5 -0
  273. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -0
  274. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +3 -0
  275. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/app-paths-manifest.json +3 -0
  276. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/build-manifest.json +17 -0
  277. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/next-font-manifest.json +13 -0
  278. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/react-loadable-manifest.json +1 -0
  279. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +89 -0
  280. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js +17 -0
  281. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.map +5 -0
  282. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -0
  283. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +3 -0
  284. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/app-paths-manifest.json +3 -0
  285. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/build-manifest.json +17 -0
  286. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/next-font-manifest.json +13 -0
  287. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/react-loadable-manifest.json +1 -0
  288. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/server-reference-manifest.json +4 -0
  289. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js +16 -0
  290. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.map +5 -0
  291. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -0
  292. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +3 -0
  293. package/runtime/hub/apps/hub/.next/server/app/[...path]/route/app-paths-manifest.json +3 -0
  294. package/runtime/hub/apps/hub/.next/server/app/[...path]/route/build-manifest.json +9 -0
  295. package/runtime/hub/apps/hub/.next/server/app/[...path]/route/server-reference-manifest.json +4 -0
  296. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +8 -0
  297. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.map +5 -0
  298. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -0
  299. package/runtime/hub/apps/hub/.next/server/app/[...path]/route_client-reference-manifest.js +3 -0
  300. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  301. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/build-manifest.json +17 -0
  302. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  303. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  304. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  305. package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js +10 -0
  306. package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.map +5 -0
  307. package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.nft.json +1 -0
  308. package/runtime/hub/apps/hub/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
  309. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -0
  310. package/runtime/hub/apps/hub/.next/server/app/_global-error.meta +15 -0
  311. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +14 -0
  312. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
  313. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  314. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
  315. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
  316. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  317. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  318. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/build-manifest.json +17 -0
  319. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/next-font-manifest.json +13 -0
  320. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  321. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  322. package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js +13 -0
  323. package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.map +5 -0
  324. package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.nft.json +1 -0
  325. package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
  326. package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +36 -0
  327. package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_0jw_ngm._.js +3 -0
  328. package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_0z6cvsk._.js +3 -0
  329. package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_210bxd8._.js +3 -0
  330. package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_index_mjs_0h-j5xt._.js +4 -0
  331. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(auth)_api_auth_[___all]_route_actions_1agi0ag.js +3 -0
  332. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_boxes_route_actions_1ggp_5o.js +3 -0
  333. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_health_route_actions_017gnzg.js +3 -0
  334. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_projects_route_actions_04w8ozk.js +3 -0
  335. package/runtime/hub/apps/hub/.next/server/chunks/09mp_@better-auth_memory-adapter_dist_index_mjs_0ti_30h._.js +3 -0
  336. package/runtime/hub/apps/hub/.next/server/chunks/09xn_next_0tn6frk._.js +6 -0
  337. package/runtime/hub/apps/hub/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +3 -0
  338. package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_095p8vu._.js +3 -0
  339. package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_1skbhvx._.js +3 -0
  340. package/runtime/hub/apps/hub/.next/server/chunks/0sj1_@opentelemetry_api_build_esm_index_0xy-j06.js +3 -0
  341. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_jobs_[id]_logs_route_actions_01aqmf3.js +3 -0
  342. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_approvals_route_actions_1vwxs9a.js +3 -0
  343. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_boxes_[id]_route_actions_01510xg.js +3 -0
  344. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_jobs_[id]_route_actions_0oc630h.js +3 -0
  345. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_openapi_json_route_actions_1lunxjz.js +3 -0
  346. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_providers_route_actions_1666ry8.js +3 -0
  347. package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_projects_[id]_route_actions_1beikpx.js +3 -0
  348. package/runtime/hub/apps/hub/.next/server/chunks/0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js +3 -0
  349. package/runtime/hub/apps/hub/.next/server/chunks/151__@better-auth_core_dist_0ecdp_3._.js +5 -0
  350. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_approvals_[id]_answer_route_actions_1cq4z5x.js +3 -0
  351. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_[action]_route_actions_0cib0ju.js +3 -0
  352. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_branches_route_actions_15snjix.js +3 -0
  353. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_git_[op]_route_actions_116a41w.js +3 -0
  354. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_git_route_actions_1a-q-i2.js +3 -0
  355. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_services_restart_route_actions_1yvsbmm.js +3 -0
  356. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_services_route_actions_1uvv36v.js +3 -0
  357. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_jobs_[id]_login-code_route_actions_1825jmw.js +3 -0
  358. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_jobs_[id]_logs_route_actions_0msc0_w.js +3 -0
  359. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_projects_[id]_branches_route_actions_07i0vrw.js +3 -0
  360. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_credentials_route_actions_1cds5re.js +3 -0
  361. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_prepare_route_actions_079fbng.js +3 -0
  362. package/runtime/hub/apps/hub/.next/server/chunks/[externals]__12m3qoa._.js +3 -0
  363. package/runtime/hub/apps/hub/.next/server/chunks/[externals]_pg_15jfwkh._.js +3 -0
  364. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04h15ml._.js +3 -0
  365. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04jgk9x._.js +3 -0
  366. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07ednlo._.js +3 -0
  367. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +105 -0
  368. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ig1bot._.js +3 -0
  369. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +3 -0
  370. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ql4fjo._.js +3 -0
  371. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0se1fty._.js +3 -0
  372. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t7o5ed._.js +3 -0
  373. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vs8fma._.js +3 -0
  374. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vxaujy._.js +6 -0
  375. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w9ud8u._.js +3 -0
  376. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yhb0gc._.js +3 -0
  377. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-9g0ae._.js +461 -0
  378. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13jwk_k._.js +3 -0
  379. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16_uteg._.js +3 -0
  380. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16p2m-g._.js +3 -0
  381. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19pc87s._.js +3 -0
  382. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_gu2yk._.js +3 -0
  383. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ai-945._.js +3 -0
  384. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +14 -0
  385. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bu2zio._.js +3 -0
  386. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ctczev._.js +3 -0
  387. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d6mtlk._.js +3 -0
  388. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d75vsx._.js +6 -0
  389. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dn_3i1._.js +3 -0
  390. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1e4z_-v._.js +3 -0
  391. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f2sueq._.js +3 -0
  392. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9zctr._.js +3 -0
  393. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hqla7-._.js +3 -0
  394. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1js2jdv._.js +3 -0
  395. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mttufy._.js +3 -0
  396. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nepkp-._.js +6 -0
  397. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pp5oib._.js +3 -0
  398. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q5bqse._.js +3 -0
  399. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +14 -0
  400. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qwhzmi._.js +3 -0
  401. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v9om6g._.js +3 -0
  402. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xeczo7._.js +3 -0
  403. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20503l7._.js +3 -0
  404. package/runtime/hub/apps/hub/.next/server/chunks/[turbopack]_runtime.js +903 -0
  405. package/runtime/hub/apps/hub/.next/server/chunks/_033w048._.js +3 -0
  406. package/runtime/hub/apps/hub/.next/server/chunks/_06f2faq._.js +3 -0
  407. package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +27 -0
  408. package/runtime/hub/apps/hub/.next/server/chunks/_0pyhcqe._.js +3 -0
  409. package/runtime/hub/apps/hub/.next/server/chunks/_1-42ili._.js +3 -0
  410. package/runtime/hub/apps/hub/.next/server/chunks/_11__3wi._.js +3 -0
  411. package/runtime/hub/apps/hub/.next/server/chunks/_12flzuh._.js +3 -0
  412. package/runtime/hub/apps/hub/.next/server/chunks/_1rpkqst._.js +3 -0
  413. package/runtime/hub/apps/hub/.next/server/chunks/_1wt72m1._.js +3 -0
  414. package/runtime/hub/apps/hub/.next/server/chunks/_1x3l5t8._.js +3 -0
  415. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_events_route_actions_17s9lxs.js +3 -0
  416. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_v1_docs_route_actions_0d-s_oo.js +3 -0
  417. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_[___path]_route_actions_1hdraye.js +3 -0
  418. package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +86 -0
  419. package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +3 -0
  420. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0iwlo01._.js +6 -0
  421. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +3 -0
  422. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_20xzgz2._.js +3 -0
  423. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_forbidden_1x5yo9-.js +3 -0
  424. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_global-error_14poel6.js +3 -0
  425. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_unauthorized_0vj9qge.js +3 -0
  426. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +4 -0
  427. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +4 -0
  428. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +4 -0
  429. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +4 -0
  430. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +4 -0
  431. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +4 -0
  432. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +4 -0
  433. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +4 -0
  434. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[externals]_pg_15jfwkh._.js +3 -0
  435. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[externals]_pg_20c820g._.js +3 -0
  436. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__03-x9xy._.js +19 -0
  437. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +3 -0
  438. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +3 -0
  439. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0cpdgd0._.js +33 -0
  440. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +3 -0
  441. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0j0tjwn._.js +3 -0
  442. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +3 -0
  443. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +3 -0
  444. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +3 -0
  445. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +33 -0
  446. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1bq2f8q._.js +3 -0
  447. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1c1x9zr._.js +3 -0
  448. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1he4k-q._.js +3 -0
  449. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +3 -0
  450. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
  451. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_04br1ft._.js +6 -0
  452. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_09gdzmo._.js +3 -0
  453. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +3 -0
  454. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +21 -0
  455. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +27 -0
  456. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0tgpglr._.js +3 -0
  457. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1laion6._.js +3 -0
  458. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0_lzzn3._.js +3 -0
  459. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0b_hsjl._.js +3 -0
  460. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(auth)_signin_page_actions_1vmiwl7.js +3 -0
  461. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +3 -0
  462. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +3 -0
  463. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +3 -0
  464. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_settings_page_actions_0ti7gxm.js +3 -0
  465. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app__global-error_page_actions_1ofuxm1.js +3 -0
  466. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app__not-found_page_actions_1fmdkci.js +3 -0
  467. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +3 -0
  468. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +3 -0
  469. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_components_1z1p98f._.js +3 -0
  470. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_lib_auth_client_ts_1uxjxr_._.js +3 -0
  471. package/runtime/hub/apps/hub/.next/server/chunks/ssr/node_modules__pnpm_04qfi10._.js +3 -0
  472. package/runtime/hub/apps/hub/.next/server/chunks/ssr/node_modules__pnpm_0kvuy0s._.js +33 -0
  473. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +80 -0
  474. package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +40 -0
  475. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +21 -0
  476. package/runtime/hub/apps/hub/.next/server/middleware-manifest.json +6 -0
  477. package/runtime/hub/apps/hub/.next/server/middleware.js +5 -0
  478. package/runtime/hub/apps/hub/.next/server/next-font-manifest.js +1 -0
  479. package/runtime/hub/apps/hub/.next/server/next-font-manifest.json +49 -0
  480. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -0
  481. package/runtime/hub/apps/hub/.next/server/pages-manifest.json +3 -0
  482. package/runtime/hub/apps/hub/.next/server/prefetch-hints.json +1 -0
  483. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -0
  484. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +276 -0
  485. package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_buildManifest.js +11 -0
  486. package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_clientMiddlewareManifest.js +6 -0
  487. package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_ssgManifest.js +1 -0
  488. package/runtime/hub/apps/hub/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
  489. package/runtime/hub/apps/hub/.next/static/chunks/0dx4alyqu7cq1.css +3 -0
  490. package/runtime/hub/apps/hub/.next/static/chunks/0lq354ziiwxxl.js +1 -0
  491. package/runtime/hub/apps/hub/.next/static/chunks/0ptag81psa0nj.js +1 -0
  492. package/runtime/hub/apps/hub/.next/static/chunks/11vmjdy3390ik.js +1 -0
  493. package/runtime/hub/apps/hub/.next/static/chunks/19cwkdx97a5_c.js +1 -0
  494. package/runtime/hub/apps/hub/.next/static/chunks/1svigjdfotduh.js +1 -0
  495. package/runtime/hub/apps/hub/.next/static/chunks/1t3645mc1s54c.js +1 -0
  496. package/runtime/hub/apps/hub/.next/static/chunks/1y49eldffr2-_.js +31 -0
  497. package/runtime/hub/apps/hub/.next/static/chunks/26ef4lcj-7-li.js +1 -0
  498. package/runtime/hub/apps/hub/.next/static/chunks/2d5e6t-5j4etp.js +1 -0
  499. package/runtime/hub/apps/hub/.next/static/chunks/2ozcn3ku69ymf.js +1 -0
  500. package/runtime/hub/apps/hub/.next/static/chunks/2w65a9zig6ya7.js +4 -0
  501. package/runtime/hub/apps/hub/.next/static/chunks/2x7nfpuaaba_a.js +1 -0
  502. package/runtime/hub/apps/hub/.next/static/chunks/3-zanu4ioia5i.js +1 -0
  503. package/runtime/hub/apps/hub/.next/static/chunks/3c49t4evjq8hf.js +1 -0
  504. package/runtime/hub/apps/hub/.next/static/chunks/3x8k7so-uoat8.js +2 -0
  505. package/runtime/hub/apps/hub/.next/static/chunks/3y2c7woqhtx9s.js +1 -0
  506. package/runtime/hub/apps/hub/.next/static/chunks/turbopack-2x4_cva4cco3h.js +1 -0
  507. package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.29yke99gs9qpn.woff2 +0 -0
  508. package/runtime/hub/apps/hub/.next/static/media/03fc1b4a8d284b5e-s.p.0wiir8udbzjvx.woff2 +0 -0
  509. package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.0o-3_g79811ob.woff2 +0 -0
  510. package/runtime/hub/apps/hub/.next/static/media/1bcd0e671759a44c-s.2qt3tdwt-y9x_.woff2 +0 -0
  511. package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.226pwps5o-gq_.woff2 +0 -0
  512. package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.15orukf5wyxb5.woff2 +0 -0
  513. package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1u30mmyq6lnsd.woff2 +0 -0
  514. package/runtime/hub/apps/hub/.next/static/media/57215795b8570f5c-s.2rixgazldzomk.woff2 +0 -0
  515. package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.2vemzm0itqzfy.woff2 +0 -0
  516. package/runtime/hub/apps/hub/.next/static/media/5e05ae5b48faa55e-s.1yd4_i3e35931.woff2 +0 -0
  517. package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.1i-sca43-qwng.woff2 +0 -0
  518. package/runtime/hub/apps/hub/.next/static/media/6ff74e33ebd7bca3-s.352ti9pm7m6qh.woff2 +0 -0
  519. package/runtime/hub/apps/hub/.next/static/media/7fea77d1d19108bf-s.2y65deuc30pmy.woff2 +0 -0
  520. package/runtime/hub/apps/hub/.next/static/media/90c51ce8fb754fe8-s.02z5rrbg5nt92.woff2 +0 -0
  521. package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.40sczeszzbjw1.woff2 +0 -0
  522. package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.0ngr-xkgqz1kf.woff2 +0 -0
  523. package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.1qc6dx89jd2qv.woff2 +0 -0
  524. package/runtime/hub/apps/hub/.next/static/media/e15f58668ad64cb8-s.3cvcemwuzoywn.woff2 +0 -0
  525. package/runtime/hub/apps/hub/.next/static/media/e390973e931a41c5-s.0rgnxg2b64rzs.woff2 +0 -0
  526. package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.3cb5lpr2l6xud.woff2 +0 -0
  527. package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.0oace-s_gkfks.woff2 +0 -0
  528. package/runtime/hub/apps/hub/auth-YBXDRLHG.js +75 -0
  529. package/runtime/hub/apps/hub/auth-config-LJGI76HI.js +21 -0
  530. package/runtime/hub/apps/hub/chunk-3LAHFDJF.js +287 -0
  531. package/runtime/hub/apps/hub/chunk-AKLBSCSZ.js +8573 -0
  532. package/runtime/hub/apps/hub/chunk-EFW34I43.js +7299 -0
  533. package/runtime/hub/apps/hub/chunk-JDA7BPPN.js +2806 -0
  534. package/runtime/hub/apps/hub/chunk-LJG4CEGS.js +3341 -0
  535. package/runtime/hub/apps/hub/chunk-OBKLTPIR.js +41 -0
  536. package/runtime/hub/apps/hub/chunk-OF242BLD.js +797 -0
  537. package/runtime/hub/apps/hub/chunk-TZFWAJVB.js +38 -0
  538. package/runtime/hub/apps/hub/chunk-V5KGFHCF.js +12683 -0
  539. package/runtime/hub/apps/hub/cloud-poller-SUNA6ZQC-VSKVMYHL.js +10 -0
  540. package/runtime/hub/apps/hub/dist-BF54UNHK.js +1029 -0
  541. package/runtime/hub/apps/hub/dist-CM4YAQLI.js +1656 -0
  542. package/runtime/hub/apps/hub/dist-ELOY2IUE.js +533 -0
  543. package/runtime/hub/apps/hub/dist-FDBOJ74K.js +1085 -0
  544. package/runtime/hub/apps/hub/dist-GGM4BUKM.js +2281 -0
  545. package/runtime/hub/apps/hub/dist-IENF7YOD.js +88 -0
  546. package/runtime/hub/apps/hub/execa-4DLVNM6E.js +32 -0
  547. package/runtime/hub/apps/hub/hub-token-EW32VDIU.js +25 -0
  548. package/runtime/hub/apps/hub/package.json +55 -0
  549. package/runtime/hub/apps/hub/prepared-state-5FIGV4BE-FIXKBF5A.js +19 -0
  550. package/runtime/hub/apps/hub/public/logo.svg +5 -0
  551. package/runtime/hub/apps/hub/server.js +838 -0
  552. package/runtime/relay/bin.cjs +1738 -482
  553. package/runtime/vercel/ctl.cjs +11871 -10351
  554. package/runtime/vercel/scripts/provision.sh +31 -15
  555. package/dist/chunk-6JJIKCMY.js.map +0 -1
  556. package/dist/chunk-DBMLOY3T.js +0 -793
  557. package/dist/chunk-DBMLOY3T.js.map +0 -1
  558. package/dist/chunk-KTEDFUKM.js +0 -831
  559. package/dist/chunk-KTEDFUKM.js.map +0 -1
  560. package/dist/chunk-QKL7PCXQ.js.map +0 -1
  561. package/dist/chunk-X2DWS4KS.js +0 -820
  562. package/dist/chunk-X2DWS4KS.js.map +0 -1
  563. package/dist/chunk-YZVFGFYQ.js.map +0 -1
  564. package/dist/dist-FMA5Y25B.js.map +0 -1
  565. package/dist/dist-NWKOEWUJ.js.map +0 -1
  566. package/dist/dist-U76JL6HI.js +0 -738
  567. package/dist/dist-U76JL6HI.js.map +0 -1
  568. package/dist/dist-UVQJ2BZJ.js.map +0 -1
  569. /package/dist/{_cloud-attach-U3QJO7IF.js.map → _cloud-attach-YH2SU75S.js.map} +0 -0
  570. /package/dist/{dist-SAS4PIHA.js.map → dist-EJXUKIR7.js.map} +0 -0
  571. /package/dist/{prepared-state-MQHD3M5F-YYVVMTNJ.js.map → dist-QBXEP4VY.js.map} +0 -0
@@ -0,0 +1,1029 @@
1
+ import { createRequire as __cr } from 'node:module'; import { fileURLToPath as __f } from 'node:url'; import { dirname as __d } from 'node:path'; const require = __cr(import.meta.url); const __filename = __f(import.meta.url); const __dirname = __d(__filename);
2
+ import {
3
+ $e,
4
+ BD,
5
+ fe,
6
+ me,
7
+ v,
8
+ ve,
9
+ we,
10
+ ye
11
+ } from "./chunk-OF242BLD.js";
12
+ import {
13
+ createCloudProvider,
14
+ currentCloudBaseFingerprint,
15
+ hostTermForCloud,
16
+ listCloudCheckpoints,
17
+ removeCloudCheckpointDir,
18
+ renderInnerCommand,
19
+ resolveCloudCheckpoint,
20
+ writeCloudCheckpointManifest
21
+ } from "./chunk-JDA7BPPN.js";
22
+ import "./chunk-V5KGFHCF.js";
23
+ import "./chunk-AKLBSCSZ.js";
24
+ import "./chunk-3LAHFDJF.js";
25
+ import {
26
+ UserFacingError,
27
+ claudeInstallFingerprint,
28
+ computeContextSha256,
29
+ errSummary,
30
+ hostOpenCommand,
31
+ preparedStatePathFor,
32
+ readCliStamp,
33
+ readPreparedStateRaw,
34
+ recordBox,
35
+ stageAllAgentStatic,
36
+ writeManagedSecrets,
37
+ writePreparedStateRaw
38
+ } from "./chunk-LJG4CEGS.js";
39
+ import "./chunk-EFW34I43.js";
40
+ import "./chunk-TZFWAJVB.js";
41
+
42
+ // ../../packages/sandbox-e2b/dist/chunk-4FOXSEPX.js
43
+ import { existsSync, readFileSync } from "fs";
44
+ import { homedir } from "os";
45
+ import { resolve } from "path";
46
+ import { Sandbox, Template } from "e2b";
47
+ import { homedir as homedir2 } from "os";
48
+ import { resolve as resolve2 } from "path";
49
+ import { existsSync as existsSync2 } from "fs";
50
+ import { dirname, resolve as resolve3 } from "path";
51
+ import { fileURLToPath } from "url";
52
+ var E2B_KEYS = ["E2B_API_KEY", "E2B_DOMAIN"];
53
+ var loaded = false;
54
+ function ensureE2bEnvLoaded() {
55
+ if (loaded) return;
56
+ loaded = true;
57
+ importE2bFromFile(resolve(homedir(), ".agentbox", "secrets.env"), E2B_KEYS);
58
+ }
59
+ function reloadE2bEnv() {
60
+ loaded = false;
61
+ ensureE2bEnvLoaded();
62
+ }
63
+ function importE2bFromFile(path, keys) {
64
+ if (!existsSync(path)) return;
65
+ let body;
66
+ try {
67
+ body = readFileSync(path, "utf8");
68
+ } catch {
69
+ return;
70
+ }
71
+ const parsed = parseEnvFile(body);
72
+ for (const key of keys) {
73
+ if (process.env[key] !== void 0) continue;
74
+ const value = parsed[key];
75
+ if (typeof value === "string") {
76
+ process.env[key] = value;
77
+ }
78
+ }
79
+ }
80
+ function parseEnvFile(body) {
81
+ const out = {};
82
+ for (const rawLine of body.split(/\r?\n/)) {
83
+ const line = rawLine.trim();
84
+ if (line.length === 0 || line.startsWith("#")) continue;
85
+ const stripped = line.startsWith("export ") ? line.slice("export ".length) : line;
86
+ const eq = stripped.indexOf("=");
87
+ if (eq <= 0) continue;
88
+ const key = stripped.slice(0, eq).trim();
89
+ let value = stripped.slice(eq + 1).trim();
90
+ if (value.length >= 2 && (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'"))) {
91
+ value = value.slice(1, -1);
92
+ }
93
+ out[key] = value;
94
+ }
95
+ return out;
96
+ }
97
+ function resolveApiKey() {
98
+ ensureE2bEnvLoaded();
99
+ const k = process.env.E2B_API_KEY;
100
+ if (!k) {
101
+ throw new Error(
102
+ "E2B credentials not configured.\nRun `agentbox e2b login` to paste your API key (from https://e2b.dev/dashboard?tab=keys), or set E2B_API_KEY in the environment / ~/.agentbox/secrets.env."
103
+ );
104
+ }
105
+ return k;
106
+ }
107
+ function hasUsableCredentials() {
108
+ ensureE2bEnvLoaded();
109
+ return Boolean(process.env.E2B_API_KEY);
110
+ }
111
+ function exitOnCancel(v2) {
112
+ if (BD(v2)) {
113
+ ve("Cancelled.");
114
+ process.exit(130);
115
+ }
116
+ return v2;
117
+ }
118
+ var DASHBOARD_KEYS_URL = "https://e2b.dev/dashboard?tab=keys";
119
+ var MANAGED_KEYS = ["E2B_API_KEY"];
120
+ async function ensureE2bCredentials(opts = {}) {
121
+ ensureE2bEnvLoaded();
122
+ if (!opts.force && hasUsableCredentials()) return;
123
+ if (!process.stdin.isTTY) return;
124
+ we("E2B setup");
125
+ ye(
126
+ `AgentBox needs an E2B API key to provision sandboxes.
127
+ Get one from ${DASHBOARD_KEYS_URL} (free tier available), then paste it below.
128
+ The key is stored in \`~/.agentbox/secrets.env\` (mode 0600) \u2014 no .env.local harvesting.`,
129
+ "Credentials required"
130
+ );
131
+ const openIt = exitOnCancel(
132
+ await me({
133
+ message: `Open ${DASHBOARD_KEYS_URL} to create a key?`,
134
+ initialValue: true
135
+ })
136
+ );
137
+ if (openIt) openDashboard();
138
+ const key = exitOnCancel(
139
+ await $e({
140
+ message: "Paste your E2B API key",
141
+ validate: (v2) => v2 && v2.trim().length > 0 ? void 0 : "Cannot be empty"
142
+ })
143
+ );
144
+ persistCredentials({ apiKey: key.trim() });
145
+ reloadE2bEnv();
146
+ v.success(`E2B credentials saved to ${secretsPath()}`);
147
+ fe("Setup complete.");
148
+ }
149
+ function persistCredentials(creds) {
150
+ writeManagedSecrets(MANAGED_KEYS, { E2B_API_KEY: creds.apiKey });
151
+ }
152
+ function setE2bCredentials(fields) {
153
+ const apiKey = (fields.apiKey ?? "").trim();
154
+ if (!apiKey) {
155
+ return { ok: false, error: "apiKey is required", status: { configured: false } };
156
+ }
157
+ persistCredentials({ apiKey });
158
+ const cred = readE2bCredStatus();
159
+ return { ok: true, status: { configured: cred.auth !== "none", label: cred.auth } };
160
+ }
161
+ function openDashboard() {
162
+ import("child_process").then(({ spawnSync }) => {
163
+ const r = spawnSync(hostOpenCommand(), [DASHBOARD_KEYS_URL], { stdio: "ignore" });
164
+ if (r.status !== 0) {
165
+ v.warn(`Could not auto-open the browser \u2014 visit ${DASHBOARD_KEYS_URL} manually.`);
166
+ }
167
+ }).catch(() => {
168
+ v.warn(`Could not auto-open the browser \u2014 visit ${DASHBOARD_KEYS_URL} manually.`);
169
+ });
170
+ }
171
+ function secretsPath() {
172
+ return resolve2(homedir2(), ".agentbox", "secrets.env");
173
+ }
174
+ function readE2bCredStatus() {
175
+ const shellHad = process.env.E2B_API_KEY !== void 0;
176
+ ensureE2bEnvLoaded();
177
+ const key = process.env.E2B_API_KEY;
178
+ if (!key) return { auth: "none", source: "none" };
179
+ return { auth: "key", token: key, source: shellHad ? "env" : "secrets.env" };
180
+ }
181
+ function maskKey(value) {
182
+ if (value.length <= 8) return "*".repeat(value.length);
183
+ return `${value.slice(0, 4)}\u2026${"*".repeat(8)}${value.slice(-4)}`;
184
+ }
185
+ var SELF = dirname(fileURLToPath(import.meta.url));
186
+ function findStagedCliRuntimeRoot() {
187
+ const candidates = [resolve3(SELF, "..", "runtime"), resolve3(SELF, "..", "..", "runtime")];
188
+ for (const c of candidates) {
189
+ if (existsSync2(resolve3(c, "e2b", "scripts", "build-template.sh"))) return c;
190
+ }
191
+ return void 0;
192
+ }
193
+ var RUNTIME_ASSETS = [
194
+ { name: "build-template.sh", remotePath: "/tmp/agentbox-build-template.sh", remoteMode: 493 },
195
+ { name: "agentbox-ctl", remotePath: "/tmp/agentbox-ctl", remoteMode: 493 },
196
+ { name: "agentbox-dockerd-start", remotePath: "/tmp/agentbox-dockerd-start", remoteMode: 493 },
197
+ { name: "agentbox-vnc-start", remotePath: "/tmp/agentbox-vnc-start", remoteMode: 493 },
198
+ { name: "agentbox-checkpoint-cleanup", remotePath: "/tmp/agentbox-checkpoint-cleanup", remoteMode: 493 },
199
+ { name: "agentbox-open", remotePath: "/tmp/agentbox-open", remoteMode: 493 },
200
+ { name: "gh-shim", remotePath: "/tmp/agentbox-gh-shim", remoteMode: 493 },
201
+ { name: "git-shim", remotePath: "/tmp/agentbox-git-shim", remoteMode: 493 },
202
+ { name: "ntn-shim", remotePath: "/tmp/agentbox-ntn-shim", remoteMode: 493 },
203
+ { name: "linear-shim", remotePath: "/tmp/agentbox-linear-shim", remoteMode: 493 },
204
+ { name: "custom-system-CLAUDE.md", remotePath: "/tmp/agentbox-custom-CLAUDE.md", remoteMode: 420 },
205
+ { name: "claude-managed-settings.json", remotePath: "/tmp/agentbox-managed-settings.json", remoteMode: 420 },
206
+ { name: "agentbox-codex-hooks.json", remotePath: "/tmp/agentbox-codex-hooks.json", remoteMode: 420 },
207
+ { name: "agentbox-setup-skill.md", remotePath: "/tmp/agentbox-setup-skill.md", remoteMode: 420 }
208
+ ];
209
+ function candidatesFor(name, opts = {}) {
210
+ const cliRoot = opts.cliRuntimeRoot;
211
+ const monorepo = opts.repoRoot ?? guessRepoRoot();
212
+ const monorepoRelative = {
213
+ "build-template.sh": ["packages/sandbox-e2b/scripts/build-template.sh"],
214
+ "agentbox-ctl": ["packages/ctl/dist/bin.cjs"],
215
+ "agentbox-dockerd-start": ["packages/sandbox-docker/scripts/agentbox-dockerd-start"],
216
+ "agentbox-vnc-start": ["packages/sandbox-docker/scripts/agentbox-vnc-start"],
217
+ "agentbox-checkpoint-cleanup": ["packages/sandbox-docker/scripts/agentbox-checkpoint-cleanup"],
218
+ "agentbox-open": ["packages/sandbox-docker/scripts/agentbox-open"],
219
+ "gh-shim": ["packages/sandbox-docker/scripts/gh-shim"],
220
+ "git-shim": ["packages/sandbox-docker/scripts/git-shim"],
221
+ "ntn-shim": ["packages/sandbox-docker/scripts/ntn-shim"],
222
+ "linear-shim": ["packages/sandbox-docker/scripts/linear-shim"],
223
+ "custom-system-CLAUDE.md": ["packages/sandbox-e2b/scripts/custom-system-CLAUDE.md"],
224
+ "claude-managed-settings.json": ["packages/sandbox-docker/scripts/claude-managed-settings.json"],
225
+ "agentbox-codex-hooks.json": ["packages/sandbox-docker/scripts/agentbox-codex-hooks.json"],
226
+ "agentbox-setup-skill.md": ["apps/cli/share/agentbox-setup/SKILL.md"]
227
+ };
228
+ const cliRelative = {
229
+ "build-template.sh": ["e2b/scripts/build-template.sh"],
230
+ "agentbox-ctl": ["e2b/ctl.cjs"],
231
+ "agentbox-dockerd-start": ["e2b/agentbox-dockerd-start", "docker/packages/sandbox-docker/scripts/agentbox-dockerd-start"],
232
+ "agentbox-vnc-start": ["e2b/agentbox-vnc-start", "docker/packages/sandbox-docker/scripts/agentbox-vnc-start"],
233
+ "agentbox-checkpoint-cleanup": ["e2b/agentbox-checkpoint-cleanup", "docker/packages/sandbox-docker/scripts/agentbox-checkpoint-cleanup"],
234
+ "agentbox-open": ["e2b/agentbox-open", "docker/packages/sandbox-docker/scripts/agentbox-open"],
235
+ "gh-shim": ["e2b/gh-shim", "docker/packages/sandbox-docker/scripts/gh-shim"],
236
+ "git-shim": ["e2b/git-shim", "docker/packages/sandbox-docker/scripts/git-shim"],
237
+ "ntn-shim": ["e2b/ntn-shim", "docker/packages/sandbox-docker/scripts/ntn-shim"],
238
+ "linear-shim": ["e2b/linear-shim", "docker/packages/sandbox-docker/scripts/linear-shim"],
239
+ "custom-system-CLAUDE.md": ["e2b/custom-system-CLAUDE.md"],
240
+ "claude-managed-settings.json": ["e2b/claude-managed-settings.json", "docker/packages/sandbox-docker/scripts/claude-managed-settings.json"],
241
+ "agentbox-codex-hooks.json": ["e2b/agentbox-codex-hooks.json", "docker/packages/sandbox-docker/scripts/agentbox-codex-hooks.json"],
242
+ "agentbox-setup-skill.md": ["e2b/agentbox-setup-skill.md", "docker/apps/cli/share/agentbox-setup/SKILL.md"]
243
+ };
244
+ const out = [];
245
+ if (cliRoot) {
246
+ for (const rel of cliRelative[name] ?? []) out.push(resolve3(cliRoot, rel));
247
+ }
248
+ for (const rel of monorepoRelative[name] ?? []) out.push(resolve3(monorepo, rel));
249
+ return out;
250
+ }
251
+ function resolveRuntimeAssets(opts = {}) {
252
+ const out = [];
253
+ const missing = [];
254
+ for (const asset of RUNTIME_ASSETS) {
255
+ const cands = candidatesFor(asset.name, opts);
256
+ const hit = cands.find((p) => existsSync2(p));
257
+ if (!hit) {
258
+ missing.push({ name: asset.name, tried: cands });
259
+ continue;
260
+ }
261
+ out.push({ ...asset, localPath: hit });
262
+ }
263
+ if (missing.length > 0) {
264
+ const lines = missing.flatMap((m) => [` - ${m.name}: tried`, ...m.tried.map((p) => ` ${p}`)]);
265
+ throw new Error(
266
+ `e2b: could not resolve runtime assets needed to bake the base template:
267
+ ` + lines.join("\n") + `
268
+
269
+ If running from the monorepo, ensure \`pnpm -w build\` has run so packages/ctl/dist/bin.cjs exists.`
270
+ );
271
+ }
272
+ return out;
273
+ }
274
+ function guessRepoRoot() {
275
+ let cur = SELF;
276
+ for (let i = 0; i < 8; i++) {
277
+ if (existsSync2(resolve3(cur, "pnpm-workspace.yaml"))) return cur;
278
+ const parent = dirname(cur);
279
+ if (parent === cur) break;
280
+ cur = parent;
281
+ }
282
+ return SELF;
283
+ }
284
+ var SCHEMA = 1;
285
+ function preparedStatePath() {
286
+ return preparedStatePathFor("e2b");
287
+ }
288
+ function readPreparedState() {
289
+ const raw = readPreparedStateRaw("e2b");
290
+ if (raw === null || typeof raw !== "object") return { schema: SCHEMA };
291
+ const parsed = raw;
292
+ if (parsed.schema !== SCHEMA) {
293
+ return { schema: SCHEMA };
294
+ }
295
+ return { schema: SCHEMA, base: parsed.base };
296
+ }
297
+ function writePreparedState(state) {
298
+ writePreparedStateRaw("e2b", state);
299
+ }
300
+ function updatePreparedState(mutate) {
301
+ const s = readPreparedState();
302
+ mutate(s);
303
+ writePreparedState(s);
304
+ }
305
+ async function currentE2bBaseFingerprintLive(claudeInstall = "native") {
306
+ try {
307
+ const assets = resolveRuntimeAssets({ cliRuntimeRoot: findStagedCliRuntimeRoot() });
308
+ return claudeInstallFingerprint(
309
+ await computeContextSha256(assets.map((a) => ({ rel: a.name, abs: a.localPath }))),
310
+ claudeInstall
311
+ );
312
+ } catch {
313
+ return void 0;
314
+ }
315
+ }
316
+ function ensureE2bBaseTemplate() {
317
+ const state = readPreparedState();
318
+ if (state.base !== void 0) return;
319
+ throw new UserFacingError(
320
+ "no E2B base template found.\nRun `agentbox prepare --provider e2b` first \u2014 it bakes a custom template with the agentbox runtime (agentbox-ctl, vscode user, claude/codex/opencode, tmux) so per-box `create` boots ready in seconds."
321
+ );
322
+ }
323
+
324
+ // ../../packages/sandbox-e2b/dist/index.js
325
+ import { readFile } from "fs/promises";
326
+ import { copyFile, mkdir, mkdtemp, rm } from "fs/promises";
327
+ import { tmpdir } from "os";
328
+ import { dirname as dirname2, join, resolve as resolve4 } from "path";
329
+ import { existsSync as existsSync3 } from "fs";
330
+ import { dirname as dirname22, resolve as resolve22 } from "path";
331
+ import { fileURLToPath as fileURLToPath2 } from "url";
332
+ var DEFAULT_BACKOFF = [1e3, 2e3, 4e3];
333
+ var DEFAULT_ATTEMPT_TIMEOUT_MS = 3e4;
334
+ var AttemptTimeoutError = class extends Error {
335
+ constructor(method, ms) {
336
+ super(`e2b ${method}: per-attempt timeout after ${String(ms)}ms`);
337
+ this.name = "AttemptTimeoutError";
338
+ }
339
+ };
340
+ function statusCodeOf(err) {
341
+ if (!err || typeof err !== "object") return void 0;
342
+ for (const key of ["statusCode", "status", "code"]) {
343
+ const v2 = err[key];
344
+ if (typeof v2 === "number") return v2;
345
+ }
346
+ const resp = err.response;
347
+ if (resp && typeof resp.status === "number") return resp.status;
348
+ return void 0;
349
+ }
350
+ function isRetriable(err, allowAmbiguous) {
351
+ if (err instanceof AttemptTimeoutError) return allowAmbiguous;
352
+ const name = err instanceof Error ? err.name : void 0;
353
+ if (name === "RateLimitError") return true;
354
+ if (name === "SandboxNotFoundError") return false;
355
+ const status = statusCodeOf(err);
356
+ if (status !== void 0) {
357
+ if (status === 429) return true;
358
+ if (status >= 500 && status <= 599) return allowAmbiguous;
359
+ return false;
360
+ }
361
+ if (err && typeof err === "object") {
362
+ const candidates = [err, err.cause];
363
+ for (const c of candidates) {
364
+ if (!c || typeof c !== "object") continue;
365
+ const code = c.code;
366
+ if (code === "ECONNRESET" || code === "ETIMEDOUT" || code === "ECONNABORTED" || code === "EAI_AGAIN" || code === "ECONNREFUSED" || code === "ENOTFOUND" || code === "UND_ERR_SOCKET" || code === "UND_ERR_CONNECT_TIMEOUT") {
367
+ return allowAmbiguous;
368
+ }
369
+ }
370
+ }
371
+ return false;
372
+ }
373
+ async function withE2bRetry(opts, fn) {
374
+ const backoff = opts.backoffMs ?? DEFAULT_BACKOFF;
375
+ const maxAttempts = backoff.length + 1;
376
+ const timeoutMs = opts.attemptTimeoutMs ?? DEFAULT_ATTEMPT_TIMEOUT_MS;
377
+ const log = opts.onRetry ?? defaultRetryLog;
378
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
379
+ try {
380
+ return await raceTimeout(fn(), timeoutMs, opts.method);
381
+ } catch (err) {
382
+ const last = attempt === maxAttempts;
383
+ if (last || !isRetriable(err, opts.retryOnAmbiguous)) throw err;
384
+ const delay = backoff[attempt - 1] ?? backoff[backoff.length - 1] ?? 4e3;
385
+ log(
386
+ `e2b ${opts.method}: attempt ${String(attempt)} failed (${errorSummary(err)}); retrying in ${String(delay)}ms`
387
+ );
388
+ await sleep(delay);
389
+ }
390
+ }
391
+ throw new Error(`withE2bRetry: exhausted attempts for ${opts.method}`);
392
+ }
393
+ function defaultRetryLog(line) {
394
+ process.stderr.write(`
395
+ [e2b-retry] ${line}
396
+ `);
397
+ }
398
+ function sleep(ms) {
399
+ return new Promise((r) => setTimeout(r, ms));
400
+ }
401
+ async function raceTimeout(p, ms, method) {
402
+ let timer;
403
+ try {
404
+ return await Promise.race([
405
+ p,
406
+ new Promise((_resolve, reject) => {
407
+ timer = setTimeout(() => reject(new AttemptTimeoutError(method, ms)), ms);
408
+ })
409
+ ]);
410
+ } finally {
411
+ if (timer !== void 0) clearTimeout(timer);
412
+ }
413
+ }
414
+ function errorSummary(err) {
415
+ if (err instanceof Error) {
416
+ const status = statusCodeOf(err);
417
+ return status !== void 0 ? `${err.name}(${String(status)}): ${truncate(err.message)}` : `${err.name}: ${truncate(err.message)}`;
418
+ }
419
+ return truncate(String(err));
420
+ }
421
+ function truncate(s, max = 160) {
422
+ return s.length > max ? `${s.slice(0, max)}\u2026` : s;
423
+ }
424
+ var DEFAULT_BOX_IMAGE_REF = "agentbox/box:dev";
425
+ var BOX_USER = "vscode";
426
+ var BOX_OWNER = "vscode:vscode";
427
+ var DEFAULT_E2B_DOMAIN = "e2b.app";
428
+ var DEFAULT_TIMEOUT_MS = 45 * 6e4;
429
+ var E2B_WEB_PORT = 8080;
430
+ function shq(s) {
431
+ return "'" + s.replace(/'/g, "'\\''") + "'";
432
+ }
433
+ function bufferToArrayBuffer(b) {
434
+ const ab = new ArrayBuffer(b.byteLength);
435
+ new Uint8Array(ab).set(b);
436
+ return ab;
437
+ }
438
+ function mapState(s) {
439
+ switch (s) {
440
+ case "running":
441
+ return "running";
442
+ case "paused":
443
+ return "paused";
444
+ default:
445
+ return "missing";
446
+ }
447
+ }
448
+ function isNotFound(err) {
449
+ if (!err || typeof err !== "object") return false;
450
+ const name = err instanceof Error ? err.name : "";
451
+ if (name === "SandboxNotFoundError" || name === "NotFoundError") return true;
452
+ const status = err.statusCode ?? err.status;
453
+ return status === 404;
454
+ }
455
+ function safeMetadataName(name) {
456
+ return name.replace(/[\u0000-\u001f]/g, "").slice(0, 200);
457
+ }
458
+ var e2bBackend = {
459
+ name: "e2b",
460
+ // The cloud scaffold's WebProxy binds whatever port we expose here, and
461
+ // `agentbox url --kind=web` resolves via `getHost(port)`. 8080 matches the
462
+ // non-privileged convention vercel uses — `getHost` accepts any port, but
463
+ // staying on 8080 keeps the in-box ctl flag (AGENTBOX_WEB_PROXY_PORT)
464
+ // identical across cloud providers.
465
+ webProxyPort: E2B_WEB_PORT,
466
+ async provision(req) {
467
+ const apiKey = resolveApiKey();
468
+ const log = req.onLog ?? (() => {
469
+ });
470
+ if (req.snapshot === void 0) {
471
+ ensureE2bBaseTemplate();
472
+ }
473
+ const template = req.snapshot ?? readPreparedState().base?.templateId;
474
+ if (!template) {
475
+ throw new Error(
476
+ "e2b provision: no template available \u2014 `agentbox prepare --provider e2b` must run first"
477
+ );
478
+ }
479
+ const sb = await withE2bRetry(
480
+ { method: "provision", retryOnAmbiguous: false, attemptTimeoutMs: 3e5, backoffMs: [] },
481
+ async () => Sandbox.create({
482
+ apiKey,
483
+ template,
484
+ // Friendly name (so prune can see it) + the 'agentbox' marker so
485
+ // `list()` can filter out sandboxes provisioned by other tooling.
486
+ metadata: { agentbox: "true", "agentbox.name": safeMetadataName(req.name), name: safeMetadataName(req.name) },
487
+ envs: req.env,
488
+ timeoutMs: req.timeoutMs ?? DEFAULT_TIMEOUT_MS
489
+ })
490
+ );
491
+ log(`e2b: created sandbox ${sb.sandboxId} (template ${template})`);
492
+ return { sandboxId: sb.sandboxId };
493
+ },
494
+ async get(sandboxId) {
495
+ const apiKey = resolveApiKey();
496
+ return withE2bRetry({ method: "get", retryOnAmbiguous: true }, async () => {
497
+ try {
498
+ await Sandbox.getInfo(sandboxId, { apiKey });
499
+ return { sandboxId };
500
+ } catch (err) {
501
+ if (isNotFound(err)) return null;
502
+ throw err;
503
+ }
504
+ });
505
+ },
506
+ async list() {
507
+ const apiKey = resolveApiKey();
508
+ return withE2bRetry({ method: "list", retryOnAmbiguous: true }, async () => {
509
+ const summaries = [];
510
+ for (const state of ["running", "paused"]) {
511
+ const paginator = Sandbox.list({ apiKey, query: { state: [state] } });
512
+ while (paginator.hasNext) {
513
+ const page = await paginator.nextItems();
514
+ for (const info of page) {
515
+ if (info.metadata?.["agentbox"] !== "true") continue;
516
+ const friendly = info.metadata?.["agentbox.name"] ?? info.metadata?.["name"];
517
+ const summary = { sandboxId: info.sandboxId, state };
518
+ if (friendly) summary.name = friendly;
519
+ const startedAt = info.startedAt;
520
+ if (startedAt instanceof Date) summary.createdAt = startedAt.toISOString();
521
+ summaries.push(summary);
522
+ }
523
+ }
524
+ }
525
+ return summaries;
526
+ });
527
+ },
528
+ // E2B has no separate stop primitive — sandboxes are either running or
529
+ // paused. start is therefore a connect-and-resume (auto-resume inside
530
+ // Sandbox.connect handles a paused box transparently).
531
+ async start(h) {
532
+ const apiKey = resolveApiKey();
533
+ await withE2bRetry(
534
+ { method: "start", retryOnAmbiguous: true, attemptTimeoutMs: 12e4 },
535
+ async () => {
536
+ await Sandbox.connect(h.sandboxId, { apiKey });
537
+ }
538
+ );
539
+ },
540
+ // stop ≡ pause on E2B (the pause IS the cold-storage state).
541
+ async stop(h) {
542
+ await this.pause(h);
543
+ },
544
+ async pause(h) {
545
+ const apiKey = resolveApiKey();
546
+ await withE2bRetry(
547
+ { method: "pause", retryOnAmbiguous: true, attemptTimeoutMs: 12e4 },
548
+ async () => {
549
+ await Sandbox.pause(h.sandboxId, { apiKey });
550
+ }
551
+ );
552
+ },
553
+ async resume(h) {
554
+ await this.start(h);
555
+ },
556
+ // E2B `setTimeout` SETS the TTL to N ms from now (absolute-from-now), so we
557
+ // ignore the host's tracked deadline and use `target - now`. The static
558
+ // `Sandbox.setTimeout` hits the API without `connect` (no resume of a paused
559
+ // box). The host only calls when target > current, so this never shortens.
560
+ async renewTimeout(h, targetDeadlineEpochMs) {
561
+ const ttlMs = Math.max(0, targetDeadlineEpochMs - Date.now());
562
+ if (ttlMs === 0) return;
563
+ const apiKey = resolveApiKey();
564
+ await withE2bRetry({ method: "renewTimeout", retryOnAmbiguous: true }, async () => {
565
+ await Sandbox.setTimeout(h.sandboxId, ttlMs, { apiKey });
566
+ });
567
+ },
568
+ async destroy(h) {
569
+ const apiKey = resolveApiKey();
570
+ await withE2bRetry(
571
+ { method: "destroy", retryOnAmbiguous: true, attemptTimeoutMs: 12e4 },
572
+ async () => {
573
+ try {
574
+ await Sandbox.kill(h.sandboxId, { apiKey });
575
+ } catch (err) {
576
+ if (isNotFound(err)) return;
577
+ throw err;
578
+ }
579
+ }
580
+ );
581
+ },
582
+ async state(h) {
583
+ const apiKey = resolveApiKey();
584
+ return withE2bRetry({ method: "state", retryOnAmbiguous: true }, async () => {
585
+ try {
586
+ const info = await Sandbox.getInfo(h.sandboxId, { apiKey });
587
+ return mapState(info.state);
588
+ } catch (err) {
589
+ if (isNotFound(err)) return "missing";
590
+ throw err;
591
+ }
592
+ });
593
+ },
594
+ async exec(h, cmd, opts) {
595
+ const apiKey = resolveApiKey();
596
+ const timeoutMs = opts?.attemptTimeoutMs ?? 3e5;
597
+ return withE2bRetry(
598
+ {
599
+ method: "exec",
600
+ retryOnAmbiguous: opts?.noRetry ? false : true,
601
+ attemptTimeoutMs: timeoutMs,
602
+ backoffMs: opts?.noRetry ? [] : void 0
603
+ },
604
+ async () => {
605
+ const sb = await Sandbox.connect(h.sandboxId, { apiKey });
606
+ const user = opts?.user ?? BOX_USER;
607
+ try {
608
+ const r = await sb.commands.run(cmd, {
609
+ ...opts?.cwd !== void 0 ? { cwd: opts.cwd } : {},
610
+ ...opts?.env !== void 0 ? { envs: opts.env } : {},
611
+ user,
612
+ timeoutMs
613
+ });
614
+ return { exitCode: r.exitCode, stdout: r.stdout ?? "", stderr: r.stderr ?? "" };
615
+ } catch (err) {
616
+ if (err instanceof Error && err.name === "CommandExitError") {
617
+ const ce = err;
618
+ return { exitCode: ce.exitCode, stdout: ce.stdout ?? "", stderr: ce.stderr ?? "" };
619
+ }
620
+ throw err;
621
+ }
622
+ }
623
+ );
624
+ },
625
+ async uploadFile(h, localPath, remotePath) {
626
+ const apiKey = resolveApiKey();
627
+ await withE2bRetry(
628
+ { method: "uploadFile", retryOnAmbiguous: true, attemptTimeoutMs: 3e5 },
629
+ async () => {
630
+ const data = await readFile(localPath);
631
+ const sb = await Sandbox.connect(h.sandboxId, { apiKey });
632
+ await sb.files.write([{ path: remotePath, data: bufferToArrayBuffer(data) }]);
633
+ try {
634
+ await sb.commands.run(`sudo -n chown ${BOX_OWNER} ${shq(remotePath)}`, {
635
+ user: "root",
636
+ timeoutMs: 1e4
637
+ });
638
+ } catch {
639
+ }
640
+ }
641
+ );
642
+ },
643
+ async downloadFile(h, remotePath, localPath) {
644
+ const apiKey = resolveApiKey();
645
+ await withE2bRetry(
646
+ { method: "downloadFile", retryOnAmbiguous: true, attemptTimeoutMs: 3e5 },
647
+ async () => {
648
+ const sb = await Sandbox.connect(h.sandboxId, { apiKey });
649
+ const bytes = await sb.files.read(remotePath, { format: "bytes" });
650
+ const { writeFile } = await import("fs/promises");
651
+ await writeFile(localPath, Buffer.from(bytes));
652
+ }
653
+ );
654
+ },
655
+ async listFiles(h, remoteDir) {
656
+ const apiKey = resolveApiKey();
657
+ return withE2bRetry({ method: "listFiles", retryOnAmbiguous: true }, async () => {
658
+ const sb = await Sandbox.connect(h.sandboxId, { apiKey });
659
+ const entries = await sb.files.list(remoteDir);
660
+ return entries.map((e) => ({ name: e.name, isDir: e.type === "dir" }));
661
+ });
662
+ },
663
+ async previewUrl(h, port) {
664
+ const domain = process.env.E2B_DOMAIN ?? DEFAULT_E2B_DOMAIN;
665
+ return { url: `https://${String(port)}-${h.sandboxId}.${domain}`, token: void 0 };
666
+ },
667
+ // Fewer params than the interface's (h, port, expiresInSeconds) is fine —
668
+ // E2B preview URLs are already public + browser-usable; no per-URL TTL.
669
+ async signedPreviewUrl(h, port) {
670
+ return this.previewUrl(h, port);
671
+ },
672
+ /**
673
+ * Probe whether a snapshot (i.e. a template id) is still bootable. E2B's
674
+ * snapshot ids look like `template-id:tag` or `team-slug/name:tag` — both
675
+ * accepted by `Template.exists(name)`. Returns false on any lookup failure
676
+ * (treated by the cloud-provider as "gone" so it falls back to a from-base
677
+ * boot rather than 410ing the user).
678
+ */
679
+ async snapshotExists(snapshotName2) {
680
+ const apiKey = resolveApiKey();
681
+ return withE2bRetry({ method: "snapshotExists", retryOnAmbiguous: true }, async () => {
682
+ try {
683
+ return await Template.exists(snapshotName2, { apiKey });
684
+ } catch {
685
+ return false;
686
+ }
687
+ });
688
+ }
689
+ };
690
+ var TEMPLATE_NAME = "agentbox-base:latest";
691
+ var DEFAULT_TAG = "latest";
692
+ var DEFAULT_CPU = 2;
693
+ var DEFAULT_MEMORY_MB = 4096;
694
+ async function prepareE2b(opts = {}) {
695
+ await ensureE2bCredentials();
696
+ const apiKey = resolveApiKey();
697
+ const log = opts.onLog ?? (() => {
698
+ });
699
+ const progress = (s) => log(`prepare-e2b: ${s}`);
700
+ const assets = resolveRuntimeAssets({
701
+ cliRuntimeRoot: opts.cliRuntimeRoot ?? findStagedCliRuntimeRoot(),
702
+ repoRoot: opts.repoRoot
703
+ });
704
+ const claudeInstall = opts.claudeInstall ?? "native";
705
+ const contextSha = claudeInstallFingerprint(
706
+ await computeContextSha256(assets.map((a) => ({ rel: a.name, abs: a.localPath }))),
707
+ claudeInstall
708
+ );
709
+ const existing = readPreparedState();
710
+ if (!opts.force && existing.base) {
711
+ if (existing.base.contextSha256 === contextSha) {
712
+ const stillThere = await templateExists(existing.base.templateId, apiKey);
713
+ if (stillThere) {
714
+ progress(
715
+ `template ${existing.base.templateId} already exists (fingerprint ${contextSha.slice(0, 12)} matches); skipping (pass --force to rebuild)`
716
+ );
717
+ return { snapshotName: existing.base.templateId };
718
+ }
719
+ progress(`recorded template ${existing.base.templateId} is gone on E2B; rebuilding`);
720
+ } else {
721
+ progress(
722
+ `build context changed (was ${existing.base.contextSha256?.slice(0, 12) ?? "<none>"}, now ${contextSha.slice(0, 12)}); rebuilding`
723
+ );
724
+ }
725
+ }
726
+ const contextDir = await mkdtemp(join(tmpdir(), "agentbox-e2b-build-"));
727
+ let agentStages = [];
728
+ try {
729
+ progress(`staging build context at ${contextDir}`);
730
+ await stageAssetsInto(contextDir, assets);
731
+ agentStages = await stageAllAgentStatic({ hostWorkspace: opts.hostWorkspace });
732
+ for (const s of agentStages) for (const w of s.staged.warnings) log(w);
733
+ const usableStages = agentStages.filter((s) => s.staged.tarballPath !== null);
734
+ for (const s of usableStages) {
735
+ await copyFile(s.staged.tarballPath, resolve4(contextDir, e2bStagePaths(s.kind).contextRel));
736
+ }
737
+ progress("assembling template build (fromBaseImage + asset copy + runCmd)");
738
+ const template = Template({ fileContextPath: contextDir }).fromBaseImage();
739
+ for (const a of assets) {
740
+ progress(` copy ${a.name} -> ${a.remotePath}`);
741
+ template.copy(a.name, a.remotePath, {
742
+ forceUpload: true,
743
+ mode: a.remoteMode,
744
+ user: "root"
745
+ });
746
+ }
747
+ template.runCmd(`AGENTBOX_CLAUDE_INSTALL=${claudeInstall} bash /tmp/agentbox-build-template.sh 2>&1`, {
748
+ user: "root"
749
+ });
750
+ for (const s of usableStages) {
751
+ const { contextRel, remoteTar } = e2bStagePaths(s.kind);
752
+ progress(` seed ${s.kind} static -> ${s.extractDir}`);
753
+ template.copy(contextRel, remoteTar, { forceUpload: true, mode: 420, user: "root" });
754
+ }
755
+ if (usableStages.length > 0) {
756
+ const extract = usableStages.map((s) => `mkdir -p ${s.extractDir} && tar -xzf ${e2bStagePaths(s.kind).remoteTar} -C ${s.extractDir} --no-same-permissions --no-same-owner -m`).join(" && ") + " && chown -R vscode:vscode /home/vscode/.claude /home/vscode/.codex /home/vscode/.local && ([ -d /home/vscode/.agents ] && chown -R vscode:vscode /home/vscode/.agents || true) && rm -f /tmp/agentbox-seed-*.tar.gz";
757
+ template.runCmd(extract, { user: "root" });
758
+ }
759
+ const finalTemplate = template.setReadyCmd(
760
+ "test -x /usr/local/bin/agentbox-ctl"
761
+ );
762
+ const cpuCount = opts.cpuCount ?? DEFAULT_CPU;
763
+ const memoryMB = opts.memoryMB ?? DEFAULT_MEMORY_MB;
764
+ progress(
765
+ `running Template.build('${TEMPLATE_NAME}', { cpuCount: ${String(cpuCount)}, memoryMB: ${String(memoryMB)} })`
766
+ );
767
+ const info = await Template.build(finalTemplate, TEMPLATE_NAME, {
768
+ apiKey,
769
+ cpuCount,
770
+ memoryMB,
771
+ onBuildLogs: (entry) => {
772
+ log(`[build] ${formatBuildLog(entry)}`);
773
+ }
774
+ });
775
+ progress(`template built: id=${info.templateId} build=${info.buildId} name=${info.name}`);
776
+ const tag = info.tags?.[0] ?? DEFAULT_TAG;
777
+ const cliStamp = readCliStamp();
778
+ const taggedId = `${info.templateId}:${tag}`;
779
+ writePreparedState({
780
+ schema: 1,
781
+ base: {
782
+ templateId: taggedId,
783
+ // info.name is the full `name:tag` pair Template.build() was called
784
+ // with (e.g. `agentbox-base:latest`). Earlier code re-appended `:${tag}`
785
+ // and produced `agentbox-base:latest:latest` in the status display.
786
+ templateName: info.name,
787
+ contextSha256: contextSha,
788
+ cliVersion: cliStamp.cliVersion,
789
+ cliCommit: cliStamp.cliCommit,
790
+ createdAt: (/* @__PURE__ */ new Date()).toISOString()
791
+ }
792
+ });
793
+ progress(`wrote ${preparedStatePath()}`);
794
+ progress(`prepare complete \u2014 base template ${taggedId}`);
795
+ return { snapshotName: taggedId };
796
+ } finally {
797
+ await Promise.all(agentStages.map((s) => s.staged.cleanup())).catch(() => {
798
+ });
799
+ await rm(contextDir, { recursive: true, force: true }).catch(() => {
800
+ });
801
+ }
802
+ }
803
+ async function stageAssetsInto(contextDir, assets) {
804
+ for (const a of assets) {
805
+ const dest = resolve4(contextDir, a.name);
806
+ await mkdir(dirname2(dest), { recursive: true });
807
+ await copyFile(a.localPath, dest);
808
+ }
809
+ }
810
+ function e2bStagePaths(kind) {
811
+ return {
812
+ contextRel: `agentbox-seed-${kind}.tar.gz`,
813
+ remoteTar: `/tmp/agentbox-seed-${kind}.tar.gz`
814
+ };
815
+ }
816
+ async function templateExists(name, apiKey) {
817
+ try {
818
+ return await Template.exists(name, { apiKey });
819
+ } catch {
820
+ return false;
821
+ }
822
+ }
823
+ function formatBuildLog(entry) {
824
+ const raw = typeof entry.message === "string" ? entry.message : entry.toString();
825
+ const cleaned = raw.replace(/\r?\n+$/, "");
826
+ return cleaned.length > 200 ? cleaned.slice(0, 200) + "\u2026" : cleaned;
827
+ }
828
+ var prepareE2bProvider = (req) => prepareE2b({
829
+ name: req.name,
830
+ hostWorkspace: req.hostWorkspace ?? process.cwd(),
831
+ force: req.force,
832
+ claudeInstall: req.claudeInstall,
833
+ onLog: req.onLog
834
+ });
835
+ var SELF2 = dirname22(fileURLToPath2(import.meta.url));
836
+ function resolveAttachHelperPath() {
837
+ const candidates = [
838
+ // dev: dist/index.js sibling
839
+ resolve22(SELF2, "attach-helper.cjs"),
840
+ // dev: src compiled to dist/, while index.ts is in src/
841
+ resolve22(SELF2, "..", "dist", "attach-helper.cjs"),
842
+ // staged CLI: apps/cli/runtime/e2b/attach-helper.cjs
843
+ resolve22(SELF2, "..", "runtime", "e2b", "attach-helper.cjs"),
844
+ resolve22(SELF2, "..", "..", "runtime", "e2b", "attach-helper.cjs")
845
+ ];
846
+ for (const p of candidates) {
847
+ if (existsSync3(p)) return p;
848
+ }
849
+ return candidates[0];
850
+ }
851
+ async function buildE2bAttach(box, kind, opts) {
852
+ const sandboxId = box.cloud?.sandboxId;
853
+ if (!sandboxId) {
854
+ throw new Error(`e2b box ${box.name} has no sandboxId \u2014 record is malformed`);
855
+ }
856
+ const helper = resolveAttachHelperPath();
857
+ if (!existsSync3(helper)) {
858
+ throw new Error(
859
+ `e2b attach helper not found at ${helper} \u2014 rebuild the CLI (\`pnpm -w build\`) so packages/sandbox-e2b/dist/attach-helper.cjs is generated.`
860
+ );
861
+ }
862
+ const apiKey = resolveApiKey();
863
+ const inner = renderInnerCommand(kind, opts);
864
+ const hostTerm = hostTermForCloud();
865
+ const argv = [
866
+ process.execPath,
867
+ helper,
868
+ "--sandbox-id",
869
+ sandboxId,
870
+ "--user",
871
+ "vscode"
872
+ ];
873
+ if (opts?.detached) argv.push("--detached");
874
+ return {
875
+ argv,
876
+ env: {
877
+ E2B_API_KEY: apiKey,
878
+ AGENTBOX_E2B_INNER_CMD: inner,
879
+ AGENTBOX_HOST_TERM: hostTerm
880
+ }
881
+ };
882
+ }
883
+ function readCredStatusSummary() {
884
+ const cred = readE2bCredStatus();
885
+ return { configured: cred.auth !== "none", label: cred.auth };
886
+ }
887
+ async function doctorChecks() {
888
+ try {
889
+ const cred = readE2bCredStatus();
890
+ const credRes = cred.auth === "none" ? {
891
+ label: "credentials",
892
+ status: "warn",
893
+ detail: "not configured",
894
+ hint: "`agentbox e2b login`"
895
+ } : { label: "credentials", status: "ok", detail: `${cred.auth} (${cred.source})` };
896
+ const prepared = readPreparedState();
897
+ const tmplRes = prepared.base?.templateId ? {
898
+ label: "base template",
899
+ status: "ok",
900
+ detail: `${prepared.base.templateName ?? prepared.base.templateId} (${prepared.base.cliVersion ?? "\u2014"})`
901
+ } : {
902
+ label: "base template",
903
+ status: "warn",
904
+ detail: "not baked",
905
+ hint: "`agentbox prepare --provider e2b`"
906
+ };
907
+ return [credRes, tmplRes];
908
+ } catch (err) {
909
+ return [{ label: "credentials", status: "warn", detail: errSummary(err) }];
910
+ }
911
+ }
912
+ var BACKEND_NAME = "e2b";
913
+ var cloudProvider = createCloudProvider(e2bBackend, {
914
+ // E2B applies resources at the template level (Template.build({ cpuCount,
915
+ // memoryMB }) — `prepare` sets these). The numbers below are advisory
916
+ // metadata for BoxRecord stats / the dashboard pane; per-create overrides
917
+ // aren't honored by the SDK.
918
+ defaultResources: { cpu: 2, memory: 4, disk: 8 },
919
+ launchDockerd: true
920
+ });
921
+ async function createE2bSnapshot(sandboxId, name) {
922
+ const apiKey = resolveApiKey();
923
+ return withE2bRetry(
924
+ { method: "createSnapshot", retryOnAmbiguous: false, attemptTimeoutMs: 9e5, backoffMs: [] },
925
+ async () => {
926
+ const info = await Sandbox.createSnapshot(sandboxId, { apiKey, name });
927
+ return info.snapshotId;
928
+ }
929
+ );
930
+ }
931
+ async function deleteE2bSnapshot(snapshotId) {
932
+ const apiKey = resolveApiKey();
933
+ await withE2bRetry({ method: "deleteSnapshot", retryOnAmbiguous: true }, async () => {
934
+ try {
935
+ await Sandbox.deleteSnapshot(snapshotId, { apiKey });
936
+ } catch (err) {
937
+ const msg = err instanceof Error ? err.message : String(err);
938
+ if (/not.?found|404/i.test(msg)) return;
939
+ throw err;
940
+ }
941
+ });
942
+ }
943
+ function snapshotName(boxName, checkpointName) {
944
+ const sanitize = (s) => s.toLowerCase().replace(/[^a-z0-9.-]+/g, "-").replace(/^-+|-+$/g, "");
945
+ const ts = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").replace("T", "_").replace("Z", "");
946
+ return `agentbox-${sanitize(boxName)}-${sanitize(checkpointName)}-${sanitize(ts)}`;
947
+ }
948
+ var e2bCheckpoint = {
949
+ async create(box, name) {
950
+ if (!box.projectRoot) {
951
+ throw new Error(
952
+ "cloud checkpoint requires the box to have a project root (run `agentbox checkpoint` from inside the project)"
953
+ );
954
+ }
955
+ if (!box.cloud?.sandboxId) {
956
+ throw new Error(`e2b box ${box.name} has no sandboxId \u2014 record is malformed`);
957
+ }
958
+ const e2bSnapName = snapshotName(box.name, name);
959
+ const snapshotId = await createE2bSnapshot(box.cloud.sandboxId, e2bSnapName);
960
+ try {
961
+ await recordBox({ ...box, cloud: { ...box.cloud, lastState: "paused" } });
962
+ } catch {
963
+ }
964
+ const info = await writeCloudCheckpointManifest(box.projectRoot, BACKEND_NAME, name, {
965
+ snapshotName: snapshotId,
966
+ sourceBoxId: box.id,
967
+ sourceBoxName: box.name,
968
+ baseProvider: BACKEND_NAME,
969
+ baseFingerprint: currentCloudBaseFingerprint(BACKEND_NAME),
970
+ cliVersion: readCliStamp().cliVersion
971
+ });
972
+ return { ref: info.name };
973
+ },
974
+ async list(projectRoot) {
975
+ const entries = await listCloudCheckpoints(projectRoot, BACKEND_NAME);
976
+ return entries.map((e) => ({ ref: e.name, createdAt: e.manifest.createdAt }));
977
+ },
978
+ async remove(projectRoot, ref) {
979
+ const entry = await resolveCloudCheckpoint(projectRoot, BACKEND_NAME, ref);
980
+ if (!entry) return;
981
+ try {
982
+ await deleteE2bSnapshot(entry.manifest.snapshotName);
983
+ } catch {
984
+ }
985
+ await removeCloudCheckpointDir(projectRoot, BACKEND_NAME, ref);
986
+ }
987
+ };
988
+ var e2bProvider = {
989
+ ...cloudProvider,
990
+ prepare: prepareE2bProvider,
991
+ buildAttach: buildE2bAttach,
992
+ checkpoint: e2bCheckpoint,
993
+ baseFingerprint: () => currentE2bBaseFingerprintLive()
994
+ };
995
+ var providerModule = {
996
+ provider: e2bProvider,
997
+ backend: e2bBackend,
998
+ ensureCredentials: ensureE2bCredentials,
999
+ readCredStatus: readCredStatusSummary,
1000
+ setCredentials: (fields) => Promise.resolve(setE2bCredentials(fields)),
1001
+ currentBaseFingerprintLive: (claudeInstall) => currentE2bBaseFingerprintLive(claudeInstall),
1002
+ doctorChecks
1003
+ };
1004
+ export {
1005
+ DEFAULT_BOX_IMAGE_REF,
1006
+ RUNTIME_ASSETS,
1007
+ buildE2bAttach,
1008
+ candidatesFor,
1009
+ currentE2bBaseFingerprintLive,
1010
+ e2bBackend,
1011
+ e2bProvider,
1012
+ ensureE2bBaseTemplate,
1013
+ ensureE2bCredentials,
1014
+ ensureE2bEnvLoaded,
1015
+ findStagedCliRuntimeRoot,
1016
+ maskKey,
1017
+ prepareE2b,
1018
+ prepareE2bProvider,
1019
+ preparedStatePath,
1020
+ providerModule,
1021
+ readE2bCredStatus,
1022
+ readPreparedState,
1023
+ reloadE2bEnv,
1024
+ resolveRuntimeAssets,
1025
+ secretsPath,
1026
+ setE2bCredentials,
1027
+ updatePreparedState,
1028
+ writePreparedState
1029
+ };