@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,1085 @@
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
+ L,
6
+ fe,
7
+ me,
8
+ ue,
9
+ v,
10
+ ve,
11
+ we,
12
+ ye
13
+ } from "./chunk-OF242BLD.js";
14
+ import {
15
+ createCloudProvider
16
+ } from "./chunk-JDA7BPPN.js";
17
+ import "./chunk-V5KGFHCF.js";
18
+ import "./chunk-AKLBSCSZ.js";
19
+ import "./chunk-3LAHFDJF.js";
20
+ import {
21
+ DOCKER_CONTEXT_FILE_MAP,
22
+ claudeInstallFingerprint,
23
+ computeContextSha256,
24
+ errSummary,
25
+ hostOpenCommand,
26
+ readCliStamp,
27
+ readPreparedStateRaw,
28
+ resolveContextFilesFrom,
29
+ stageAllAgentStatic,
30
+ writeManagedSecrets,
31
+ writePreparedStateRaw
32
+ } from "./chunk-LJG4CEGS.js";
33
+ import "./chunk-EFW34I43.js";
34
+ import "./chunk-TZFWAJVB.js";
35
+
36
+ // ../../packages/sandbox-daytona/dist/chunk-6WHCUMQO.js
37
+ import { existsSync } from "fs";
38
+ import { dirname, resolve } from "path";
39
+ import { fileURLToPath } from "url";
40
+ import { existsSync as existsSync2, readFileSync } from "fs";
41
+ import { homedir } from "os";
42
+ import { resolve as resolve2 } from "path";
43
+ import { Daytona, DaytonaNotFoundError as DaytonaNotFoundError2, Image, SandboxState } from "@daytonaio/sdk";
44
+ import {
45
+ DaytonaAuthenticationError,
46
+ DaytonaAuthorizationError,
47
+ DaytonaConflictError,
48
+ DaytonaConnectionError,
49
+ DaytonaError,
50
+ DaytonaNotFoundError,
51
+ DaytonaRateLimitError,
52
+ DaytonaTimeoutError,
53
+ DaytonaValidationError
54
+ } from "@daytonaio/sdk";
55
+ import { spawnSync } from "child_process";
56
+ import { homedir as homedir2 } from "os";
57
+ import { resolve as resolve3 } from "path";
58
+ import { createHash } from "crypto";
59
+ import { existsSync as existsSync3 } from "fs";
60
+ import { dirname as dirname2, resolve as resolve4 } from "path";
61
+ import { fileURLToPath as fileURLToPath2 } from "url";
62
+ function resolveDockerfileContext() {
63
+ const override = process.env.AGENTBOX_DOCKER_CONTEXT;
64
+ if (override && existsSync(resolve(override, "Dockerfile.box"))) {
65
+ return { dockerfile: resolve(override, "Dockerfile.box"), context: override };
66
+ }
67
+ const here = dirname(fileURLToPath(import.meta.url));
68
+ const staged = resolve(here, "..", "runtime", "docker");
69
+ if (existsSync(resolve(staged, "Dockerfile.box"))) {
70
+ return { dockerfile: resolve(staged, "Dockerfile.box"), context: staged };
71
+ }
72
+ const monorepoRoot = resolve(here, "..", "..", "..");
73
+ const dockerfile = resolve(monorepoRoot, "packages", "sandbox-docker", "Dockerfile.box");
74
+ if (existsSync(dockerfile)) {
75
+ return { dockerfile, context: monorepoRoot };
76
+ }
77
+ return null;
78
+ }
79
+ function resolveDaytonaCustomClaudeMd() {
80
+ const here = dirname(fileURLToPath(import.meta.url));
81
+ const staged = resolve(here, "..", "runtime", "daytona", "custom-system-CLAUDE.md");
82
+ if (existsSync(staged)) return staged;
83
+ const monorepoRoot = resolve(here, "..", "..", "..");
84
+ const dev = resolve(
85
+ monorepoRoot,
86
+ "packages",
87
+ "sandbox-daytona",
88
+ "scripts",
89
+ "custom-system-CLAUDE.md"
90
+ );
91
+ if (existsSync(dev)) return dev;
92
+ return null;
93
+ }
94
+ var DAYTONA_KEYS = [
95
+ "DAYTONA_API_KEY",
96
+ "DAYTONA_JWT_TOKEN",
97
+ "DAYTONA_ORGANIZATION_ID",
98
+ "DAYTONA_API_URL",
99
+ "DAYTONA_TARGET"
100
+ ];
101
+ var loaded = false;
102
+ function ensureDaytonaEnvLoaded() {
103
+ if (loaded) return;
104
+ loaded = true;
105
+ importDaytonaFromFile(resolve2(homedir(), ".agentbox", "secrets.env"));
106
+ }
107
+ function importDaytonaFromFile(path) {
108
+ if (!existsSync2(path)) return;
109
+ let body;
110
+ try {
111
+ body = readFileSync(path, "utf8");
112
+ } catch {
113
+ return;
114
+ }
115
+ const parsed = parseEnvFile(body);
116
+ for (const key of DAYTONA_KEYS) {
117
+ if (process.env[key] !== void 0) continue;
118
+ const value = parsed[key];
119
+ if (typeof value === "string") {
120
+ process.env[key] = value;
121
+ }
122
+ }
123
+ }
124
+ function parseEnvFile(body) {
125
+ const out = {};
126
+ for (const rawLine of body.split(/\r?\n/)) {
127
+ const line = rawLine.trim();
128
+ if (line.length === 0 || line.startsWith("#")) continue;
129
+ const stripped = line.startsWith("export ") ? line.slice("export ".length) : line;
130
+ const eq = stripped.indexOf("=");
131
+ if (eq <= 0) continue;
132
+ const key = stripped.slice(0, eq).trim();
133
+ let value = stripped.slice(eq + 1).trim();
134
+ if (value.length >= 2 && (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'"))) {
135
+ value = value.slice(1, -1);
136
+ }
137
+ out[key] = value;
138
+ }
139
+ return out;
140
+ }
141
+ var DEFAULT_BACKOFF = [1e3, 2e3, 4e3];
142
+ var DEFAULT_ATTEMPT_TIMEOUT_MS = 3e4;
143
+ var AttemptTimeoutError = class extends Error {
144
+ constructor(method, ms) {
145
+ super(`daytona ${method}: per-attempt timeout after ${String(ms)}ms`);
146
+ this.name = "AttemptTimeoutError";
147
+ }
148
+ };
149
+ function isRetriable(err, allowAmbiguous) {
150
+ if (err instanceof DaytonaRateLimitError) return true;
151
+ if (err instanceof DaytonaNotFoundError || err instanceof DaytonaAuthenticationError || err instanceof DaytonaAuthorizationError || err instanceof DaytonaValidationError || err instanceof DaytonaConflictError) {
152
+ return false;
153
+ }
154
+ if (err instanceof DaytonaConnectionError || err instanceof DaytonaTimeoutError || err instanceof AttemptTimeoutError) {
155
+ return allowAmbiguous;
156
+ }
157
+ if (err instanceof DaytonaError) {
158
+ const status = err.statusCode;
159
+ if (typeof status === "number" && status >= 500 && status <= 599) {
160
+ return allowAmbiguous;
161
+ }
162
+ return false;
163
+ }
164
+ if (err && typeof err === "object") {
165
+ const code = err.code;
166
+ if (code === "ECONNRESET" || code === "ETIMEDOUT" || code === "ECONNABORTED" || code === "EAI_AGAIN" || code === "ECONNREFUSED" || code === "ENOTFOUND") {
167
+ return allowAmbiguous;
168
+ }
169
+ const status = err.response?.status ?? err.status ?? err.statusCode;
170
+ if (typeof status === "number" && status >= 500 && status <= 599) {
171
+ return allowAmbiguous;
172
+ }
173
+ }
174
+ return false;
175
+ }
176
+ async function withDaytonaRetry(opts, fn) {
177
+ const backoff = opts.backoffMs ?? DEFAULT_BACKOFF;
178
+ const maxAttempts = backoff.length + 1;
179
+ const timeoutMs = opts.attemptTimeoutMs ?? DEFAULT_ATTEMPT_TIMEOUT_MS;
180
+ const log2 = opts.onRetry ?? defaultRetryLog;
181
+ for (let attempt = 1; attempt <= maxAttempts; attempt++) {
182
+ try {
183
+ return await raceTimeout(fn(), timeoutMs, opts.method);
184
+ } catch (err) {
185
+ const last = attempt === maxAttempts;
186
+ if (last || !isRetriable(err, opts.retryOnAmbiguous)) throw err;
187
+ const delay = backoff[attempt - 1] ?? backoff[backoff.length - 1] ?? 4e3;
188
+ log2(
189
+ `daytona ${opts.method}: attempt ${String(attempt)} failed (${errorSummary(err)}); retrying in ${String(delay)}ms`
190
+ );
191
+ await sleep(delay);
192
+ }
193
+ }
194
+ throw new Error(`withDaytonaRetry: exhausted attempts for ${opts.method}`);
195
+ }
196
+ function defaultRetryLog(line) {
197
+ process.stderr.write(`
198
+ [daytona-retry] ${line}
199
+ `);
200
+ }
201
+ function sleep(ms) {
202
+ return new Promise((resolve5) => setTimeout(resolve5, ms));
203
+ }
204
+ async function raceTimeout(p, ms, method) {
205
+ let timer;
206
+ try {
207
+ return await Promise.race([
208
+ p,
209
+ new Promise((_resolve, reject) => {
210
+ timer = setTimeout(() => reject(new AttemptTimeoutError(method, ms)), ms);
211
+ })
212
+ ]);
213
+ } finally {
214
+ if (timer !== void 0) clearTimeout(timer);
215
+ }
216
+ }
217
+ function errorSummary(err) {
218
+ if (err instanceof DaytonaError) {
219
+ const status = err.statusCode;
220
+ const cls = err.constructor.name;
221
+ return `${cls}${typeof status === "number" ? ` ${String(status)}` : ""}: ${truncate(err.message)}`;
222
+ }
223
+ if (err instanceof Error) {
224
+ const code = err.code;
225
+ return code !== void 0 ? `${err.name}(${String(code)}): ${truncate(err.message)}` : `${err.name}: ${truncate(err.message)}`;
226
+ }
227
+ return truncate(String(err));
228
+ }
229
+ function truncate(s, max = 160) {
230
+ return s.length > max ? `${s.slice(0, max)}\u2026` : s;
231
+ }
232
+ function retry(method, fn, opts = {}) {
233
+ return withDaytonaRetry(
234
+ {
235
+ method,
236
+ retryOnAmbiguous: opts.retryOnAmbiguous ?? true,
237
+ attemptTimeoutMs: opts.attemptTimeoutMs,
238
+ backoffMs: opts.noRetry === true ? [] : void 0
239
+ },
240
+ fn
241
+ );
242
+ }
243
+ var DEFAULT_BOX_IMAGE_REF = "agentbox/box:dev";
244
+ var client = null;
245
+ function getClient() {
246
+ if (!client) {
247
+ ensureDaytonaEnvLoaded();
248
+ try {
249
+ client = new Daytona();
250
+ } catch (err) {
251
+ const msg = err instanceof Error ? err.message : String(err);
252
+ throw new Error(
253
+ `Daytona credentials not configured: ${msg}
254
+ Run \`agentbox daytona login\` interactively, or set DAYTONA_API_KEY in the environment.`
255
+ );
256
+ }
257
+ }
258
+ return client;
259
+ }
260
+ async function getSandbox(id) {
261
+ return getClient().get(id);
262
+ }
263
+ async function maybeGetSandbox(id) {
264
+ try {
265
+ return await getClient().get(id);
266
+ } catch {
267
+ return null;
268
+ }
269
+ }
270
+ function mapState(s) {
271
+ switch (s) {
272
+ case SandboxState.STARTED:
273
+ return "running";
274
+ case SandboxState.STARTING:
275
+ case SandboxState.CREATING:
276
+ case SandboxState.RESTORING:
277
+ case SandboxState.BUILDING_SNAPSHOT:
278
+ case SandboxState.PULLING_SNAPSHOT:
279
+ case SandboxState.PENDING_BUILD:
280
+ case SandboxState.STOPPING:
281
+ return "running";
282
+ case SandboxState.STOPPED:
283
+ return "stopped";
284
+ case SandboxState.ARCHIVED:
285
+ case SandboxState.ARCHIVING:
286
+ return "paused";
287
+ case SandboxState.DESTROYED:
288
+ case SandboxState.DESTROYING:
289
+ case SandboxState.ERROR:
290
+ case SandboxState.BUILD_FAILED:
291
+ case SandboxState.UNKNOWN:
292
+ default:
293
+ return "missing";
294
+ }
295
+ }
296
+ function toDaytonaVolumeMount(v2) {
297
+ return {
298
+ volumeId: v2.volumeId,
299
+ mountPath: v2.mountPath,
300
+ ...v2.subpath ? { subpath: v2.subpath } : {}
301
+ };
302
+ }
303
+ function resolveImage(ref) {
304
+ if (ref !== DEFAULT_BOX_IMAGE_REF) return ref;
305
+ const ctx = resolveDockerfileContext();
306
+ if (!ctx) {
307
+ throw new Error(
308
+ "could not locate the AgentBox Dockerfile.box build context for the Daytona snapshot. Set AGENTBOX_DOCKER_CONTEXT to a directory containing Dockerfile.box, or pass --image <ref> with a Daytona-compatible image."
309
+ );
310
+ }
311
+ return Image.fromDockerfile(ctx.dockerfile);
312
+ }
313
+ function parseDaytonaSize(spec) {
314
+ if (!spec) return void 0;
315
+ const parts = spec.trim().split("-");
316
+ if (parts.length !== 3) return void 0;
317
+ const nums = parts.map((p) => Number(p));
318
+ if (nums.some((n) => !Number.isInteger(n) || n <= 0)) return void 0;
319
+ return { cpu: nums[0], memory: nums[1], disk: nums[2] };
320
+ }
321
+ var daytonaBackend = {
322
+ name: "daytona",
323
+ async provision(req) {
324
+ return retry(
325
+ "provision",
326
+ async () => {
327
+ let sizeResources;
328
+ if (req.size && req.size.length > 0) {
329
+ sizeResources = parseDaytonaSize(req.size);
330
+ if (!sizeResources) {
331
+ req.onLog?.(
332
+ `daytona: ignoring invalid size '${req.size}' (expected 'cpu-memory-disk' GB, e.g. '4-8-20')`
333
+ );
334
+ }
335
+ }
336
+ const resources = sizeResources ?? req.resources;
337
+ const baseParams = {
338
+ ...resources ? { resources } : {},
339
+ envVars: req.env,
340
+ ...req.volumes && req.volumes.length > 0 ? { volumes: req.volumes.map(toDaytonaVolumeMount) } : {},
341
+ labels: { "agentbox.name": req.name }
342
+ };
343
+ const client2 = getClient();
344
+ let snapshotName = req.snapshot;
345
+ if (!snapshotName && req.image && req.image !== DEFAULT_BOX_IMAGE_REF) {
346
+ try {
347
+ const snap = await client2.snapshot.get(req.image);
348
+ if (snap && snap.name) snapshotName = snap.name;
349
+ } catch {
350
+ }
351
+ }
352
+ const snapshotParams = { ...baseParams };
353
+ delete snapshotParams.resources;
354
+ const sandbox = snapshotName ? await client2.create({ snapshot: snapshotName, ...snapshotParams }, { timeout: 900 }) : await client2.create(
355
+ { image: resolveImage(req.image), ...baseParams },
356
+ {
357
+ timeout: 900,
358
+ ...req.onLog ? { onSnapshotCreateLogs: req.onLog } : {}
359
+ }
360
+ );
361
+ return { sandboxId: sandbox.id };
362
+ },
363
+ { retryOnAmbiguous: false, attemptTimeoutMs: 9e5 }
364
+ );
365
+ },
366
+ async ensureVolume(name) {
367
+ const client2 = getClient();
368
+ let vol = await retry("volume.get(create)", () => client2.volume.get(name, true));
369
+ const deadline = Date.now() + 6e4;
370
+ while (vol.state !== "ready") {
371
+ if (vol.state === "error" || vol.state === "deleted" || vol.state === "deleting") {
372
+ throw new Error(
373
+ `Daytona volume '${name}' is in unrecoverable state '${vol.state}'. Delete it from the Daytona dashboard and retry.`
374
+ );
375
+ }
376
+ if (Date.now() >= deadline) {
377
+ throw new Error(
378
+ `Daytona volume '${name}' did not become ready within 60s (state: ${vol.state}). Try again \u2014 the Daytona control plane may be slow.`
379
+ );
380
+ }
381
+ await new Promise((r) => setTimeout(r, 1e3));
382
+ vol = await retry("volume.get(poll)", () => client2.volume.get(name));
383
+ }
384
+ return { volumeId: vol.id };
385
+ },
386
+ async get(sandboxId) {
387
+ return retry("get", async () => {
388
+ const sb = await maybeGetSandbox(sandboxId);
389
+ return sb ? { sandboxId: sb.id } : null;
390
+ });
391
+ },
392
+ async list() {
393
+ return retry("list", async () => {
394
+ const client2 = getClient();
395
+ const page = await client2.list();
396
+ const items = Array.isArray(page) ? page : page.items ?? [];
397
+ return items.map((sb) => {
398
+ const summary = { sandboxId: sb.id };
399
+ const raw = sb;
400
+ const friendly = raw.labels?.["agentbox.name"] ?? raw.name;
401
+ if (friendly) summary.name = friendly;
402
+ if (raw.createdAt) summary.createdAt = raw.createdAt;
403
+ if (typeof raw.state === "string") summary.state = mapState(raw.state);
404
+ return summary;
405
+ });
406
+ });
407
+ },
408
+ async start(h) {
409
+ return retry(
410
+ "start",
411
+ async () => {
412
+ const sb = await getSandbox(h.sandboxId);
413
+ await sb.start();
414
+ },
415
+ { attemptTimeoutMs: 6e4 }
416
+ );
417
+ },
418
+ async stop(h) {
419
+ return retry(
420
+ "stop",
421
+ async () => {
422
+ const sb = await getSandbox(h.sandboxId);
423
+ await sb.stop();
424
+ },
425
+ { attemptTimeoutMs: 6e4 }
426
+ );
427
+ },
428
+ async pause(h) {
429
+ return retry(
430
+ "pause",
431
+ async () => {
432
+ const sb = await getSandbox(h.sandboxId);
433
+ await sb.archive();
434
+ },
435
+ { attemptTimeoutMs: 6e4 }
436
+ );
437
+ },
438
+ async resume(h) {
439
+ return retry(
440
+ "resume",
441
+ async () => {
442
+ const sb = await getSandbox(h.sandboxId);
443
+ await sb.start();
444
+ },
445
+ { attemptTimeoutMs: 6e4 }
446
+ );
447
+ },
448
+ async destroy(h) {
449
+ return retry(
450
+ "destroy",
451
+ async () => {
452
+ const sb = await maybeGetSandbox(h.sandboxId);
453
+ if (!sb) return;
454
+ try {
455
+ await sb.stop(60);
456
+ } catch {
457
+ }
458
+ try {
459
+ await sb.delete(60);
460
+ } catch (err) {
461
+ const msg = err instanceof Error ? err.message : String(err);
462
+ if (!/not found/i.test(msg)) throw err;
463
+ }
464
+ },
465
+ { attemptTimeoutMs: 12e4 }
466
+ );
467
+ },
468
+ async state(h) {
469
+ return retry("state", async () => {
470
+ const sb = await maybeGetSandbox(h.sandboxId);
471
+ if (!sb) return "missing";
472
+ return mapState(sb.state);
473
+ });
474
+ },
475
+ async exec(h, cmd, opts) {
476
+ return retry(
477
+ "exec",
478
+ async () => {
479
+ const sb = await getSandbox(h.sandboxId);
480
+ const r = await sb.process.executeCommand(cmd, opts?.cwd, opts?.env);
481
+ return { exitCode: r.exitCode, stdout: r.result, stderr: "" };
482
+ },
483
+ { attemptTimeoutMs: opts?.attemptTimeoutMs ?? 12e4, noRetry: opts?.noRetry }
484
+ );
485
+ },
486
+ async uploadFile(h, localPath, remotePath) {
487
+ return retry(
488
+ "uploadFile",
489
+ async () => {
490
+ const sb = await getSandbox(h.sandboxId);
491
+ await sb.fs.uploadFile(localPath, remotePath);
492
+ },
493
+ { attemptTimeoutMs: 3e5 }
494
+ );
495
+ },
496
+ async downloadFile(h, remotePath, localPath) {
497
+ return retry(
498
+ "downloadFile",
499
+ async () => {
500
+ const sb = await getSandbox(h.sandboxId);
501
+ await sb.fs.downloadFile(remotePath, localPath);
502
+ },
503
+ { attemptTimeoutMs: 3e5 }
504
+ );
505
+ },
506
+ async listFiles(h, remoteDir) {
507
+ return retry("listFiles", async () => {
508
+ const sb = await getSandbox(h.sandboxId);
509
+ const files = await sb.fs.listFiles(remoteDir);
510
+ return files.map((f) => ({
511
+ name: f.name,
512
+ isDir: Boolean(f.isDir)
513
+ }));
514
+ });
515
+ },
516
+ async previewUrl(h, port) {
517
+ return retry("previewUrl", async () => {
518
+ const sb = await getSandbox(h.sandboxId);
519
+ const p = await sb.getPreviewLink(port);
520
+ return { url: p.url, token: p.token };
521
+ });
522
+ },
523
+ async signedPreviewUrl(h, port, expiresInSeconds) {
524
+ return retry("signedPreviewUrl", async () => {
525
+ const sb = await getSandbox(h.sandboxId);
526
+ const s = await sb.getSignedPreviewUrl(port, expiresInSeconds);
527
+ return { url: s.url, token: s.token };
528
+ });
529
+ },
530
+ async attachArgv(h) {
531
+ return retry("attachArgv", async () => {
532
+ const sb = await getSandbox(h.sandboxId);
533
+ const ssh = await sb.createSshAccess(60);
534
+ return [
535
+ "ssh",
536
+ // First-connect to a never-seen host fingerprint should be silent in a
537
+ // PTY — the user already authenticated via Daytona's API.
538
+ "-o",
539
+ "StrictHostKeyChecking=accept-new",
540
+ // Daytona's SSH gateway terminates per-token; no key file, no port.
541
+ `${ssh.token}@ssh.app.daytona.io`
542
+ ];
543
+ });
544
+ },
545
+ async revokeAttachToken(h, argv) {
546
+ const userhost = argv[argv.length - 1] ?? "";
547
+ const atIdx = userhost.indexOf("@");
548
+ if (atIdx <= 0) return;
549
+ const token = userhost.slice(0, atIdx);
550
+ if (token.length === 0) return;
551
+ try {
552
+ await retry("revokeAttachToken", async () => {
553
+ const sb = await getSandbox(h.sandboxId);
554
+ await sb.revokeSshAccess(token);
555
+ });
556
+ } catch {
557
+ }
558
+ },
559
+ async createSnapshot(h, snapshotName) {
560
+ return retry(
561
+ "createSnapshot",
562
+ async () => {
563
+ const sb = await getSandbox(h.sandboxId);
564
+ await sb._experimental_createSnapshot(snapshotName);
565
+ },
566
+ { attemptTimeoutMs: 9e5, retryOnAmbiguous: false }
567
+ );
568
+ },
569
+ async deleteSnapshot(snapshotName) {
570
+ return retry("deleteSnapshot", async () => {
571
+ try {
572
+ const client2 = getClient();
573
+ const snapshot = await client2.snapshot.get(snapshotName);
574
+ await client2.snapshot.delete(snapshot);
575
+ } catch (err) {
576
+ if (err instanceof DaytonaNotFoundError2) return;
577
+ const msg = err instanceof Error ? err.message : String(err);
578
+ if (/not found/i.test(msg)) return;
579
+ throw err;
580
+ }
581
+ });
582
+ }
583
+ };
584
+ function exitOnCancel(v2) {
585
+ if (BD(v2)) {
586
+ ve("Cancelled.");
587
+ process.exit(130);
588
+ }
589
+ return v2;
590
+ }
591
+ var DASHBOARD_KEYS_URL = "https://app.daytona.io/dashboard/keys";
592
+ var MANAGED_KEYS = ["DAYTONA_API_KEY", "DAYTONA_JWT_TOKEN", "DAYTONA_ORGANIZATION_ID"];
593
+ async function ensureDaytonaCredentials(opts = {}) {
594
+ ensureDaytonaEnvLoaded();
595
+ if (!opts.force && hasUsableCredentials()) return;
596
+ if (!process.stdin.isTTY) return;
597
+ we("Daytona setup");
598
+ ye(
599
+ `AgentBox needs a Daytona API key to provision cloud boxes.
600
+ Generate one at ${DASHBOARD_KEYS_URL}`,
601
+ "API key required"
602
+ );
603
+ const open = exitOnCancel(
604
+ await me({
605
+ message: `Open ${DASHBOARD_KEYS_URL} in your browser?`,
606
+ initialValue: true
607
+ })
608
+ );
609
+ if (open) openDashboard();
610
+ for (let attempt = 0; attempt < 2; attempt++) {
611
+ const creds = await promptForCredentials();
612
+ const result = await validateCredentials(creds);
613
+ if (result.ok) {
614
+ persistCredentials(creds);
615
+ v.success(`Daytona credentials saved to ${secretsPath()}`);
616
+ fe("Setup complete.");
617
+ return;
618
+ }
619
+ if (result.kind === "auth" && attempt === 0) {
620
+ v.error(`That key was rejected by Daytona: ${result.message}`);
621
+ v.info("Try again, or press Ctrl-C to cancel.");
622
+ continue;
623
+ }
624
+ if (result.kind === "network") {
625
+ v.warn(`Could not reach Daytona to validate (${result.message}) \u2014 saving anyway.`);
626
+ persistCredentials(creds);
627
+ v.success(`Daytona credentials saved to ${secretsPath()}`);
628
+ fe("Setup complete (unvalidated).");
629
+ return;
630
+ }
631
+ throw new Error(`Daytona credentials rejected: ${result.message}`);
632
+ }
633
+ }
634
+ function hasUsableCredentials() {
635
+ if (process.env.DAYTONA_API_KEY) return true;
636
+ if (process.env.DAYTONA_JWT_TOKEN && process.env.DAYTONA_ORGANIZATION_ID) return true;
637
+ return false;
638
+ }
639
+ async function promptForCredentials() {
640
+ const key = exitOnCancel(
641
+ await $e({
642
+ message: "Paste your Daytona API key (or JWT token)",
643
+ validate(v2) {
644
+ if (!v2 || v2.trim().length === 0) return "Cannot be empty";
645
+ return void 0;
646
+ }
647
+ })
648
+ );
649
+ const trimmed = key.trim();
650
+ if (trimmed.startsWith("eyJ")) {
651
+ const org = exitOnCancel(
652
+ await ue({
653
+ message: "Paste your Daytona organization ID",
654
+ placeholder: "org_...",
655
+ validate(v2) {
656
+ if (!v2 || v2.trim().length === 0) return "Cannot be empty";
657
+ return void 0;
658
+ }
659
+ })
660
+ );
661
+ return { jwtToken: trimmed, organizationId: org.trim() };
662
+ }
663
+ return { apiKey: trimmed };
664
+ }
665
+ async function validateCredentials(creds) {
666
+ const s = L();
667
+ s.start("Validating credentials with Daytona");
668
+ const snapshot = snapshotManagedEnv();
669
+ applyToEnv(creds);
670
+ try {
671
+ const { Daytona: Daytona2 } = await import("@daytonaio/sdk");
672
+ const client2 = new Daytona2();
673
+ await client2.list();
674
+ s.stop("Daytona credentials accepted");
675
+ return { ok: true };
676
+ } catch (err) {
677
+ restoreManagedEnv(snapshot);
678
+ const message = err instanceof Error ? err.message : String(err);
679
+ s.stop("Daytona credentials check failed");
680
+ if (/401|403|unauthor|forbidden|invalid/i.test(message)) {
681
+ return { ok: false, kind: "auth", message };
682
+ }
683
+ return { ok: false, kind: "network", message };
684
+ }
685
+ }
686
+ function snapshotManagedEnv() {
687
+ const out = {};
688
+ for (const k of MANAGED_KEYS) out[k] = process.env[k];
689
+ return out;
690
+ }
691
+ function restoreManagedEnv(snap) {
692
+ for (const k of MANAGED_KEYS) {
693
+ if (snap[k] === void 0) delete process.env[k];
694
+ else process.env[k] = snap[k];
695
+ }
696
+ }
697
+ function applyToEnv(creds) {
698
+ for (const k of MANAGED_KEYS) delete process.env[k];
699
+ if (creds.apiKey) process.env.DAYTONA_API_KEY = creds.apiKey;
700
+ if (creds.jwtToken) process.env.DAYTONA_JWT_TOKEN = creds.jwtToken;
701
+ if (creds.organizationId) process.env.DAYTONA_ORGANIZATION_ID = creds.organizationId;
702
+ }
703
+ function persistCredentials(creds) {
704
+ const record = {};
705
+ if (creds.apiKey) record.DAYTONA_API_KEY = creds.apiKey;
706
+ if (creds.jwtToken) record.DAYTONA_JWT_TOKEN = creds.jwtToken;
707
+ if (creds.organizationId) record.DAYTONA_ORGANIZATION_ID = creds.organizationId;
708
+ writeManagedSecrets(MANAGED_KEYS, record);
709
+ }
710
+ async function setDaytonaCredentials(fields) {
711
+ const apiKey = (fields.apiKey ?? "").trim();
712
+ const jwtToken = (fields.jwtToken ?? "").trim();
713
+ const organizationId = (fields.organizationId ?? "").trim();
714
+ let creds;
715
+ if (apiKey) {
716
+ creds = { apiKey };
717
+ } else if (jwtToken && organizationId) {
718
+ creds = { jwtToken, organizationId };
719
+ } else {
720
+ return {
721
+ ok: false,
722
+ error: "provide apiKey, or jwtToken + organizationId",
723
+ status: { configured: false }
724
+ };
725
+ }
726
+ const result = await validateCredentials(creds);
727
+ if (!result.ok && result.kind === "auth") {
728
+ return {
729
+ ok: false,
730
+ error: `credentials rejected by Daytona: ${result.message}`,
731
+ status: { configured: false }
732
+ };
733
+ }
734
+ persistCredentials(creds);
735
+ const label = result.ok ? creds.apiKey ? "key" : "jwt" : "key (unvalidated)";
736
+ return { ok: true, status: { configured: true, label } };
737
+ }
738
+ function openDashboard() {
739
+ try {
740
+ const r = spawnSync(hostOpenCommand(), [DASHBOARD_KEYS_URL], { stdio: "ignore" });
741
+ if (r.status !== 0) {
742
+ v.warn(`Could not auto-open the browser \u2014 visit ${DASHBOARD_KEYS_URL} manually.`);
743
+ }
744
+ } catch {
745
+ v.warn(`Could not auto-open the browser \u2014 visit ${DASHBOARD_KEYS_URL} manually.`);
746
+ }
747
+ }
748
+ function secretsPath() {
749
+ return resolve3(homedir2(), ".agentbox", "secrets.env");
750
+ }
751
+ var SCHEMA = 1;
752
+ function resolveDaytonaContextFiles() {
753
+ const ctx = resolveDockerfileContext();
754
+ if (!ctx) return null;
755
+ const here = dirname2(fileURLToPath2(import.meta.url));
756
+ const packageRoot = resolve4(here, "..");
757
+ const monorepoRoot = resolve4(here, "..", "..", "..");
758
+ const dockerPackageRoot = resolve4(monorepoRoot, "packages", "sandbox-docker");
759
+ const docker = resolveContextFilesFrom(DOCKER_CONTEXT_FILE_MAP, {
760
+ contextDir: ctx.context,
761
+ devRoot: existsSync3(dockerPackageRoot) ? dockerPackageRoot : packageRoot
762
+ });
763
+ if (!docker) return null;
764
+ const overlay = resolveDaytonaCustomClaudeMd();
765
+ if (!overlay) return null;
766
+ return [
767
+ ...docker,
768
+ // Daytona-specific overlay: separate logical name so a docker/daytona
769
+ // CLAUDE.md drift produces different fingerprints (the daytona snapshot
770
+ // contains both files in distinct locations).
771
+ { rel: "daytona/custom-system-CLAUDE.md", abs: overlay }
772
+ ];
773
+ }
774
+ var DAYTONA_SEED_SCHEMA = "relctx-1";
775
+ async function computeDaytonaContextFingerprint() {
776
+ const files = resolveDaytonaContextFiles();
777
+ if (!files) return null;
778
+ const rawSha = await computeContextSha256(files);
779
+ const contextSha256 = createHash("sha256").update(`${rawSha}\0daytona-seed=${DAYTONA_SEED_SCHEMA}`).digest("hex");
780
+ return { contextSha256, files };
781
+ }
782
+ async function currentDaytonaBaseFingerprintLive(claudeInstall = "native") {
783
+ try {
784
+ const fp = await computeDaytonaContextFingerprint();
785
+ if (!fp?.contextSha256) return void 0;
786
+ return claudeInstallFingerprint(fp.contextSha256, claudeInstall);
787
+ } catch {
788
+ return void 0;
789
+ }
790
+ }
791
+ function readPreparedDaytonaState() {
792
+ const raw = readPreparedStateRaw("daytona");
793
+ if (raw === null || typeof raw !== "object") return null;
794
+ const parsed = raw;
795
+ if (parsed.schema !== SCHEMA) return null;
796
+ return { schema: SCHEMA, base: parsed.base };
797
+ }
798
+ function writePreparedDaytonaState(opts) {
799
+ const stamp = readCliStamp();
800
+ const state = {
801
+ schema: SCHEMA,
802
+ base: {
803
+ imageRef: opts.snapshotName,
804
+ contextSha256: opts.contextSha256,
805
+ cliVersion: stamp.cliVersion,
806
+ cliCommit: stamp.cliCommit,
807
+ createdAt: (/* @__PURE__ */ new Date()).toISOString()
808
+ }
809
+ };
810
+ writePreparedStateRaw("daytona", state);
811
+ }
812
+ function preparedMatches(state, current) {
813
+ return state?.base?.contextSha256 === current;
814
+ }
815
+
816
+ // ../../packages/sandbox-daytona/dist/index.js
817
+ import { copyFileSync, mkdtempSync, readFileSync as readFileSync2, rmSync, writeFileSync } from "fs";
818
+ import { tmpdir } from "os";
819
+ import { dirname as dirname3, join } from "path";
820
+ import { Image as Image2 } from "@daytonaio/sdk";
821
+ function defaultSnapshotName(fingerprint) {
822
+ if (fingerprint) return `agentbox-base-${fingerprint.slice(0, 12)}`;
823
+ return `agentbox-base-${Math.floor(Date.now() / 1e3).toString()}`;
824
+ }
825
+ function daytonaSeedPaths(kind) {
826
+ return {
827
+ contextRel: `agentbox-seed-${kind}.tar.gz`,
828
+ remoteTar: `/tmp/agentbox-seed-${kind}.tar.gz`
829
+ };
830
+ }
831
+ var DAYTONA_CLAUDE_MD_REL = "agentbox-custom-CLAUDE.md";
832
+ function buildDaytonaSeedCommands(usable) {
833
+ const cmds = [
834
+ "USER root",
835
+ `COPY ${DAYTONA_CLAUDE_MD_REL} /tmp/agentbox-custom-CLAUDE.md`,
836
+ ...usable.map((s) => `COPY ${daytonaSeedPaths(s.kind).contextRel} ${daytonaSeedPaths(s.kind).remoteTar}`),
837
+ "RUN install -m 0644 /tmp/agentbox-custom-CLAUDE.md /etc/claude-code/CLAUDE.md && rm -f /tmp/agentbox-custom-CLAUDE.md",
838
+ ...usable.map(
839
+ (s) => `RUN mkdir -p ${s.extractDir} && tar -xzf ${daytonaSeedPaths(s.kind).remoteTar} -C ${s.extractDir} --no-same-permissions --no-same-owner -m`
840
+ )
841
+ ];
842
+ if (usable.length > 0) {
843
+ cmds.push(
844
+ "RUN 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"
845
+ );
846
+ }
847
+ cmds.push("USER vscode");
848
+ return cmds;
849
+ }
850
+ async function prepareDaytona(opts) {
851
+ ensureDaytonaEnvLoaded();
852
+ const log = opts.onLog ?? (() => {
853
+ });
854
+ const claudeInstall = opts.claudeInstall ?? "native";
855
+ const rawFingerprint = await computeDaytonaContextFingerprint();
856
+ const fingerprint = rawFingerprint ? {
857
+ ...rawFingerprint,
858
+ contextSha256: claudeInstallFingerprint(rawFingerprint.contextSha256, claudeInstall)
859
+ } : rawFingerprint;
860
+ const snapshotName = opts.name ?? defaultSnapshotName(fingerprint?.contextSha256 ?? null);
861
+ const prepared = readPreparedDaytonaState();
862
+ if (!opts.force && fingerprint && preparedMatches(prepared, fingerprint.contextSha256)) {
863
+ try {
864
+ const existing = await getClient().snapshot.get(
865
+ prepared?.base?.imageRef ?? snapshotName
866
+ );
867
+ if (existing?.name) {
868
+ log(
869
+ `daytona snapshot '${existing.name}' up to date (fingerprint ${fingerprint.contextSha256.slice(0, 12)}) \u2014 skipping rebuild (pass --force to override)`
870
+ );
871
+ return { snapshotName: existing.name };
872
+ }
873
+ log(
874
+ `recorded snapshot '${prepared?.base?.imageRef ?? snapshotName}' not found on Daytona; rebuilding`
875
+ );
876
+ } catch {
877
+ log(
878
+ `recorded snapshot lookup failed; rebuilding (pass --force to silence)`
879
+ );
880
+ }
881
+ } else if (!opts.force && fingerprint && prepared?.base?.contextSha256) {
882
+ log(
883
+ `daytona build context changed (was ${prepared.base.contextSha256.slice(0, 12)}, now ${fingerprint.contextSha256.slice(0, 12)}); rebuilding snapshot`
884
+ );
885
+ }
886
+ const ctx = resolveDockerfileContext();
887
+ if (!ctx) {
888
+ throw new Error(
889
+ "could not locate AgentBox Dockerfile.box build context for the Daytona snapshot. Set AGENTBOX_DOCKER_CONTEXT to the directory containing Dockerfile.box."
890
+ );
891
+ }
892
+ const daytonaClaudeMd = resolveDaytonaCustomClaudeMd();
893
+ if (!daytonaClaudeMd) {
894
+ throw new Error(
895
+ "could not locate packages/sandbox-daytona/scripts/custom-system-CLAUDE.md (or its staged runtime/daytona/ copy). Ensure `pnpm -w build` ran so the CLI staging populated runtime/daytona/."
896
+ );
897
+ }
898
+ const stages = await stageAllAgentStatic({ hostWorkspace: opts.hostWorkspace });
899
+ for (const s of stages) {
900
+ for (const w of s.staged.warnings) log(w);
901
+ }
902
+ let tempDockerfile = null;
903
+ const dockerfilePath = claudeInstall === "npm" ? tempDockerfile = writeNpmDockerfile(ctx.dockerfile) : ctx.dockerfile;
904
+ let seedContextDir = null;
905
+ try {
906
+ let image = Image2.fromDockerfile(dockerfilePath);
907
+ seedContextDir = mkdtempSync(join(tmpdir(), "agentbox-daytona-seed-"));
908
+ copyFileSync(daytonaClaudeMd, join(seedContextDir, DAYTONA_CLAUDE_MD_REL));
909
+ const usable = stages.filter((s) => s.staged.tarballPath !== null);
910
+ for (const s of usable) {
911
+ copyFileSync(s.staged.tarballPath, join(seedContextDir, daytonaSeedPaths(s.kind).contextRel));
912
+ }
913
+ image = image.dockerfileCommands(buildDaytonaSeedCommands(usable), seedContextDir);
914
+ const client2 = getClient();
915
+ log(`creating Daytona snapshot '${snapshotName}'\u2026`);
916
+ const snapshot = await client2.snapshot.create(
917
+ { name: snapshotName, image },
918
+ {
919
+ onLogs: (chunk) => log(String(chunk).split("\n").filter(Boolean).join(" "))
920
+ }
921
+ );
922
+ log(`snapshot '${snapshot.name}' is ${snapshot.state ?? "created"}`);
923
+ if (fingerprint) {
924
+ writePreparedDaytonaState({
925
+ snapshotName: snapshot.name ?? snapshotName,
926
+ contextSha256: fingerprint.contextSha256
927
+ });
928
+ log(
929
+ `recorded daytona-prepared.json (fingerprint ${fingerprint.contextSha256.slice(0, 12)})`
930
+ );
931
+ }
932
+ return { snapshotName: snapshot.name ?? snapshotName };
933
+ } finally {
934
+ await Promise.all(stages.map((s) => s.staged.cleanup()));
935
+ if (tempDockerfile) rmSync(tempDockerfile, { force: true });
936
+ if (seedContextDir) rmSync(seedContextDir, { recursive: true, force: true });
937
+ }
938
+ }
939
+ function writeNpmDockerfile(originalPath) {
940
+ const original = readFileSync2(originalPath, "utf8");
941
+ const flipped = original.replace(
942
+ "ARG AGENTBOX_CLAUDE_INSTALL=native",
943
+ "ARG AGENTBOX_CLAUDE_INSTALL=npm"
944
+ );
945
+ if (flipped === original) {
946
+ throw new Error(
947
+ `could not enable npm Claude install for Daytona: 'ARG AGENTBOX_CLAUDE_INSTALL=native' not found in ${originalPath}. The Dockerfile.box drifted from the expected shape.`
948
+ );
949
+ }
950
+ const target = join(dirname3(originalPath), ".agentbox-claude-npm.Dockerfile");
951
+ writeFileSync(target, flipped);
952
+ return target;
953
+ }
954
+ function isAgentboxName(name) {
955
+ return typeof name === "string" && name.toLowerCase().startsWith("agentbox");
956
+ }
957
+ async function getDaytonaStatus() {
958
+ try {
959
+ ensureDaytonaEnvLoaded();
960
+ } catch (err) {
961
+ return {
962
+ configured: false,
963
+ snapshots: [],
964
+ volumes: [],
965
+ reason: err instanceof Error ? err.message : String(err)
966
+ };
967
+ }
968
+ let client2;
969
+ try {
970
+ client2 = getClient();
971
+ } catch (err) {
972
+ return {
973
+ configured: false,
974
+ snapshots: [],
975
+ volumes: [],
976
+ reason: err instanceof Error ? err.message.split("\n")[0] : String(err)
977
+ };
978
+ }
979
+ const snapshots = [];
980
+ const volumes = [];
981
+ let reason;
982
+ try {
983
+ const list = await client2.snapshot.list();
984
+ const items = list.items ?? (Array.isArray(list) ? list : []);
985
+ for (const s of items) {
986
+ const dto = s;
987
+ if (!isAgentboxName(dto.name)) continue;
988
+ snapshots.push({
989
+ name: dto.name,
990
+ state: typeof dto.state === "string" ? dto.state : void 0,
991
+ sizeGb: typeof dto.size === "number" ? dto.size : void 0,
992
+ createdAt: typeof dto.createdAt === "string" ? dto.createdAt : void 0,
993
+ errorReason: typeof dto.errorReason === "string" ? dto.errorReason : void 0
994
+ });
995
+ }
996
+ } catch (err) {
997
+ reason = `snapshot list failed: ${err instanceof Error ? err.message.split("\n")[0] : String(err)}`;
998
+ }
999
+ try {
1000
+ const list = await client2.volume.list();
1001
+ const items = Array.isArray(list) ? list : list.items ?? [];
1002
+ for (const v2 of items) {
1003
+ const dto = v2;
1004
+ if (!isAgentboxName(dto.name)) continue;
1005
+ volumes.push({
1006
+ name: dto.name,
1007
+ id: typeof dto.id === "string" ? dto.id : "",
1008
+ state: typeof dto.state === "string" ? dto.state : void 0,
1009
+ createdAt: typeof dto.createdAt === "string" ? dto.createdAt : void 0,
1010
+ lastUsedAt: typeof dto.lastUsedAt === "string" ? dto.lastUsedAt : void 0
1011
+ });
1012
+ }
1013
+ } catch (err) {
1014
+ const msg = `volume list failed: ${err instanceof Error ? err.message.split("\n")[0] : String(err)}`;
1015
+ reason = reason ? `${reason}; ${msg}` : msg;
1016
+ }
1017
+ return {
1018
+ configured: true,
1019
+ snapshots: snapshots.sort((a, b) => (b.createdAt ?? "").localeCompare(a.createdAt ?? "")),
1020
+ volumes: volumes.sort((a, b) => a.name.localeCompare(b.name)),
1021
+ reason
1022
+ };
1023
+ }
1024
+ async function readCredStatusSummary() {
1025
+ const status = await getDaytonaStatus();
1026
+ return { configured: status.configured };
1027
+ }
1028
+ async function doctorChecks() {
1029
+ try {
1030
+ const status = await getDaytonaStatus();
1031
+ if (!status.configured) {
1032
+ return [
1033
+ {
1034
+ label: "credentials",
1035
+ status: "warn",
1036
+ detail: status.reason ?? "not configured",
1037
+ hint: "`agentbox daytona login`"
1038
+ }
1039
+ ];
1040
+ }
1041
+ const credRes = { label: "credentials", status: "ok", detail: "configured" };
1042
+ const snapRes = status.snapshots.length > 0 ? {
1043
+ label: "base snapshot",
1044
+ status: "ok",
1045
+ detail: `${String(status.snapshots.length)} agentbox snapshot(s)`
1046
+ } : {
1047
+ label: "base snapshot",
1048
+ status: "warn",
1049
+ detail: "none",
1050
+ hint: "`agentbox prepare --provider daytona`"
1051
+ };
1052
+ return [credRes, snapRes];
1053
+ } catch (err) {
1054
+ return [{ label: "credentials", status: "warn", detail: errSummary(err) }];
1055
+ }
1056
+ }
1057
+ var cloudProvider = createCloudProvider(daytonaBackend, {
1058
+ defaultResources: { cpu: 2, memory: 4, disk: 8 }
1059
+ });
1060
+ var daytonaProvider = {
1061
+ ...cloudProvider,
1062
+ prepare: prepareDaytona,
1063
+ baseFingerprint: () => currentDaytonaBaseFingerprintLive()
1064
+ };
1065
+ var providerModule = {
1066
+ provider: daytonaProvider,
1067
+ backend: daytonaBackend,
1068
+ ensureCredentials: ensureDaytonaCredentials,
1069
+ readCredStatus: readCredStatusSummary,
1070
+ setCredentials: setDaytonaCredentials,
1071
+ currentBaseFingerprintLive: (claudeInstall) => currentDaytonaBaseFingerprintLive(claudeInstall),
1072
+ doctorChecks
1073
+ };
1074
+ export {
1075
+ DEFAULT_BOX_IMAGE_REF,
1076
+ currentDaytonaBaseFingerprintLive,
1077
+ daytonaBackend,
1078
+ daytonaProvider,
1079
+ ensureDaytonaCredentials,
1080
+ ensureDaytonaEnvLoaded,
1081
+ getDaytonaStatus,
1082
+ providerModule,
1083
+ resolveDockerfileContext,
1084
+ setDaytonaCredentials
1085
+ };