@madarco/agentbox 0.33.0 → 0.33.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 (913) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/_cloud-attach-KEFEQ2YH.js +32 -0
  3. package/dist/{chunk-L55DASHB.js → chunk-2SKTXZGX.js} +8 -8
  4. package/dist/{chunk-YZZKWZO2.js → chunk-3PTSPFR6.js} +7 -1
  5. package/dist/chunk-3PTSPFR6.js.map +1 -0
  6. package/dist/{chunk-BKOKMZNK.js → chunk-3QTWB66F.js} +6 -6
  7. package/dist/{chunk-VSWIJHCH.js → chunk-5ZBNVZSU.js} +3 -3
  8. package/dist/{chunk-IX7S6NJR.js → chunk-72LKKHPI.js} +4 -4
  9. package/dist/{chunk-AXAMPAP3.js → chunk-7ELRQNNH.js} +3 -3
  10. package/dist/chunk-7ELRQNNH.js.map +1 -0
  11. package/dist/{chunk-WJ4MZESJ.js → chunk-7RDDR6BW.js} +27 -8
  12. package/dist/chunk-7RDDR6BW.js.map +1 -0
  13. package/dist/{chunk-7TPGIQOP.js → chunk-BORN6FJK.js} +10 -10
  14. package/dist/{chunk-OVLM2EZV.js → chunk-CUMSI7N3.js} +97 -83
  15. package/dist/chunk-CUMSI7N3.js.map +1 -0
  16. package/dist/{chunk-Z6LK4P54.js → chunk-EUE6F7HL.js} +40 -12
  17. package/dist/chunk-EUE6F7HL.js.map +1 -0
  18. package/dist/{chunk-7AMMBUEW.js → chunk-F2CNFPIA.js} +67 -33
  19. package/dist/chunk-F2CNFPIA.js.map +1 -0
  20. package/dist/{chunk-77IAHAQY.js → chunk-FBQC6TKM.js} +6 -6
  21. package/dist/{chunk-IJFP7N34.js → chunk-FPYYDMCR.js} +26 -9
  22. package/dist/chunk-FPYYDMCR.js.map +1 -0
  23. package/dist/{chunk-U7J7JT6R.js → chunk-G35FJ4KT.js} +108 -43
  24. package/dist/chunk-G35FJ4KT.js.map +1 -0
  25. package/dist/{chunk-JUTAYI2N.js → chunk-GCUJUUNE.js} +5 -5
  26. package/dist/{chunk-S77B5POZ.js → chunk-GKBAEX2P.js} +6 -6
  27. package/dist/{chunk-XKUF67M6.js → chunk-GT7VDGNV.js} +4 -4
  28. package/dist/{chunk-52OXHGKQ.js → chunk-HNPYVRX7.js} +35 -16
  29. package/dist/chunk-HNPYVRX7.js.map +1 -0
  30. package/dist/{chunk-AGHR7XOJ.js → chunk-HOJKUVH6.js} +3 -3
  31. package/dist/{chunk-PENAXZMR.js → chunk-INJIW6PP.js} +7 -7
  32. package/dist/{chunk-OYWP4SII.js → chunk-IZPNDZXI.js} +5 -5
  33. package/dist/{chunk-U3BCLGTH.js → chunk-JHS4ROJH.js} +11 -11
  34. package/dist/{chunk-CWN4DJYI.js → chunk-JVZZPJ2C.js} +3 -3
  35. package/dist/{chunk-KOGQNHV3.js → chunk-KA67IGEG.js} +4 -4
  36. package/dist/{chunk-OTAYAFYF.js → chunk-KRF2JODE.js} +3 -3
  37. package/dist/{chunk-SDWKZLGP.js → chunk-LFMJXQDL.js} +5 -5
  38. package/dist/{chunk-FM7PHYBD.js → chunk-NEU5B2VO.js} +162 -8
  39. package/dist/chunk-NEU5B2VO.js.map +1 -0
  40. package/dist/{chunk-2U4HKKM7.js → chunk-NSYCXUN5.js} +6 -6
  41. package/dist/{chunk-U4Z5OOOD.js → chunk-NZN3BME7.js} +32 -12
  42. package/dist/chunk-NZN3BME7.js.map +1 -0
  43. package/dist/{chunk-KWDFEQO6.js → chunk-PI4A3TGV.js} +24 -71
  44. package/dist/chunk-PI4A3TGV.js.map +1 -0
  45. package/dist/{chunk-HS6B3CE4.js → chunk-PJCIZLIX.js} +472 -138
  46. package/dist/chunk-PJCIZLIX.js.map +1 -0
  47. package/dist/{chunk-GERRSRQZ.js → chunk-PZK5KRFB.js} +12 -10
  48. package/dist/{chunk-GERRSRQZ.js.map → chunk-PZK5KRFB.js.map} +1 -1
  49. package/dist/{chunk-5JDGKHWH.js → chunk-QALBGVPR.js} +2 -2
  50. package/dist/{chunk-JCDC5S32.js → chunk-QDBDDJKT.js} +4 -4
  51. package/dist/{chunk-R7J7WFM5.js → chunk-QUBP3AZD.js} +220 -49
  52. package/dist/chunk-QUBP3AZD.js.map +1 -0
  53. package/dist/{chunk-YVIC7TNH.js → chunk-QZW3WXBW.js} +43 -23
  54. package/dist/{chunk-YVIC7TNH.js.map → chunk-QZW3WXBW.js.map} +1 -1
  55. package/dist/{chunk-ZPFTFIKP.js → chunk-S5WFZHC5.js} +5 -5
  56. package/dist/{chunk-UFOUBCPW.js → chunk-UDSNFS67.js} +34 -36
  57. package/dist/{chunk-UFOUBCPW.js.map → chunk-UDSNFS67.js.map} +1 -1
  58. package/dist/{chunk-PVZUQTLW.js → chunk-VUTEVIYG.js} +5 -5
  59. package/dist/{chunk-3HJQZQ76.js → chunk-WNFUSPZR.js} +25 -72
  60. package/dist/chunk-WNFUSPZR.js.map +1 -0
  61. package/dist/{chunk-OWCTDO67.js → chunk-WVBTRK6R.js} +13 -13
  62. package/dist/{chunk-4IQGL4KD.js → chunk-ZMKRUD6J.js} +6 -6
  63. package/dist/{chunk-J2AD7MLR.js → chunk-ZQWOZ5BL.js} +3 -3
  64. package/dist/{cli-6IPZVUXF.js → cli-B4VVKKYV.js} +10 -10
  65. package/dist/{cli-QIBPY2HQ.js → cli-ENMWXMKO.js} +10 -10
  66. package/dist/{cli-QSV6K33P.js → cli-F2UBHH7H.js} +11 -11
  67. package/dist/{cli-E2ZC5S4U.js → cli-JKSQBGRO.js} +11 -11
  68. package/dist/{cli-3WZP5JHA.js → cli-MIIWRJDK.js} +11 -11
  69. package/dist/cloud-backends.js +6 -6
  70. package/dist/{control-plane-I2QKMHPK.js → control-plane-R4ELXZHL.js} +22 -22
  71. package/dist/{cp-hub-upload-GW566DGZ.js → cp-hub-upload-IUQVJGOW.js} +10 -10
  72. package/dist/custody-client-PVDBOT7Y.js +18 -0
  73. package/dist/{deploy-hetzner-IIAXES7B.js → deploy-hetzner-KY6KWN4M.js} +11 -11
  74. package/dist/{dist-4K66F4UR.js → dist-2QGMP2UI.js} +10 -10
  75. package/dist/{dist-SZTW3RMB.js → dist-5MCQFGLX.js} +28 -8
  76. package/dist/{dist-XZXZSTTA.js → dist-7EKSUISW.js} +33 -18
  77. package/dist/dist-7EKSUISW.js.map +1 -0
  78. package/dist/{dist-5RMJLMYG.js → dist-EIVYC2MR.js} +3 -3
  79. package/dist/{dist-VKKHIHCZ.js → dist-JWXPKGPZ.js} +10 -10
  80. package/dist/{dist-HIQCE4H2.js → dist-ONAAPVBD.js} +21 -11
  81. package/dist/{dist-WR2HYACA.js → dist-OXLTCVA2.js} +10 -10
  82. package/dist/{dist-WTPYXNRH.js → dist-PBO4UHJK.js} +2 -2
  83. package/dist/{dist-YED5YJQN.js → dist-RCBMUPVR.js} +12 -4
  84. package/dist/{dist-IXPKVU3R.js → dist-TD74GXLP.js} +6 -6
  85. package/dist/{dist-44RSFOGQ.js → dist-VCZ3LZPJ.js} +22 -12
  86. package/dist/{dist-3EZQDIOD.js → dist-WGV7LRDC.js} +11 -9
  87. package/dist/{host-reach-drainer-A4ZO6UKT.js → host-reach-drainer-AZYC6UIB.js} +2 -2
  88. package/dist/{host-session-POJP4WO6.js → host-session-EGUDGE4R.js} +12 -12
  89. package/dist/hub-76RHPA7X.js +40 -0
  90. package/dist/{hub-adopt-YR7S5TNB.js → hub-adopt-5G7SKI2E.js} +9 -9
  91. package/dist/{hub-api-client-BUQDTSQ3.js → hub-api-client-WPZTG5AT.js} +5 -5
  92. package/dist/{hub-docker-target-XA5U2ZU5.js → hub-docker-target-CNJHYH4B.js} +16 -16
  93. package/dist/index.js +299 -224
  94. package/dist/index.js.map +1 -1
  95. package/dist/{manager-pty-XCGH6AUC-EZML75UO.js → manager-pty-XCGH6AUC-O3UNISN2.js} +5 -5
  96. package/dist/{plugin-update-BIPJZA24.js → plugin-update-UZYPWL4N.js} +6 -6
  97. package/dist/prepare-4GOTJXQL.js +48 -0
  98. package/dist/prepared-custody-4YJ4ZT7J.js +40 -0
  99. package/dist/{prepared-state-FO74QUCP-4WLAYPEO.js → prepared-state-FO74QUCP-GUIPQORN.js} +5 -5
  100. package/dist/pty-host.js +4 -4
  101. package/dist/{publish-credentials-N2JD2D3A.js → publish-credentials-RLRLNL33.js} +12 -12
  102. package/dist/registry-QMHCNR5X.js +18 -0
  103. package/dist/relay-VBWFCWKK.js +23 -0
  104. package/dist/{remote-docker-share-GIH6JNKY.js → remote-docker-share-TKG7SXHX.js} +13 -13
  105. package/dist/{tool-grant-push-7K765QKW.js → tool-grant-push-V7E3Y2W6.js} +3 -3
  106. package/package.json +2 -1
  107. package/runtime/_shared/ctl.cjs +138 -40
  108. package/runtime/digitalocean/ctl.cjs +138 -40
  109. package/runtime/docker/packages/ctl/dist/bin.cjs +138 -40
  110. package/runtime/e2b/ctl.cjs +138 -40
  111. package/runtime/hetzner/ctl.cjs +138 -40
  112. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  113. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  114. package/runtime/hub/apps/hub/.next/prerender-manifest.json +3 -3
  115. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/next-font-manifest.json +3 -3
  116. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
  117. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
  118. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
  119. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
  120. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -1
  121. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.nft.json +1 -1
  122. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
  123. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -1
  124. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.nft.json +1 -1
  125. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
  126. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
  127. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -1
  128. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
  129. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
  130. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
  131. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
  132. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
  133. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.nft.json +1 -1
  134. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -1
  135. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.nft.json +1 -1
  136. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
  137. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -1
  138. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
  139. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
  140. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
  141. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
  142. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
  143. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
  144. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -1
  145. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.nft.json +1 -1
  146. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach-box/route.js.nft.json +1 -1
  147. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/heartbeat/route.js.nft.json +1 -1
  148. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.nft.json +1 -1
  149. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.nft.json +1 -1
  150. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/pin/route.js.nft.json +1 -1
  151. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.nft.json +1 -1
  152. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.nft.json +1 -1
  153. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.nft.json +1 -1
  154. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.nft.json +1 -1
  155. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.nft.json +1 -1
  156. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
  157. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.nft.json +1 -1
  158. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
  159. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.nft.json +1 -1
  160. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.nft.json +1 -1
  161. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
  162. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -1
  163. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
  164. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
  165. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
  166. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.nft.json +1 -1
  167. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
  168. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -1
  169. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -1
  170. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.nft.json +1 -1
  171. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/register/route.js.nft.json +1 -1
  172. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.nft.json +1 -1
  173. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.nft.json +1 -1
  174. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.nft.json +1 -1
  175. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.nft.json +1 -1
  176. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.nft.json +1 -1
  177. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.nft.json +1 -1
  178. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.nft.json +1 -1
  179. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.nft.json +1 -1
  180. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.nft.json +1 -1
  181. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.nft.json +1 -1
  182. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.nft.json +1 -1
  183. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.nft.json +1 -1
  184. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/events/route.js.nft.json +1 -1
  185. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.nft.json +1 -1
  186. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js +2 -2
  187. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.nft.json +1 -1
  188. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/next-font-manifest.json +3 -3
  189. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +1 -1
  190. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
  191. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  192. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/next-font-manifest.json +3 -3
  193. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +12 -12
  194. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
  195. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  196. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -1
  197. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.nft.json +1 -1
  198. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/next-font-manifest.json +3 -3
  199. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -1
  200. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page_client-reference-manifest.js +1 -1
  201. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/next-font-manifest.json +3 -3
  202. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
  203. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  204. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  205. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/next-font-manifest.json +3 -3
  206. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +8 -8
  207. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
  208. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  209. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/next-font-manifest.json +3 -3
  210. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
  211. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  212. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/next-font-manifest.json +3 -3
  213. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
  214. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page_client-reference-manifest.js +1 -1
  215. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
  216. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
  217. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  218. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  219. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  220. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  221. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  222. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  223. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  224. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/next-font-manifest.json +3 -3
  225. package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  226. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-5e8ze._.js +3 -0
  227. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-di9rg._.js +3 -0
  228. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__008zqfx._.js → [root-of-the-server]__0-ovzfw._.js} +2 -2
  229. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-r5e8q._.js +3 -0
  230. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__007hogi._.js +3 -0
  231. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0-kl55b._.js → [root-of-the-server]__00bh9gb._.js} +2 -2
  232. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00dc6yl._.js +3 -0
  233. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00zpt4k._.js +3 -0
  234. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__017tfb_._.js +3 -0
  235. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01dlun3._.js +3 -0
  236. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01mhbng._.js +3 -0
  237. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03jx5m5._.js +3 -0
  238. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03l4evb._.js +3 -0
  239. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0126167._.js → [root-of-the-server]__03uelft._.js} +2 -2
  240. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03wt33b._.js +3 -0
  241. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03z-u4h._.js +3 -0
  242. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__02s5f9s._.js → [root-of-the-server]__048c4u3._.js} +2 -2
  243. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04glef0._.js +3 -0
  244. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04za-91._.js +3 -0
  245. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05cnibm._.js +3 -0
  246. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06e_no_._.js +3 -0
  247. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06g2ncr._.js +3 -0
  248. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06vmwu8._.js +3 -0
  249. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06wzlsi._.js +3 -0
  250. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07f11r9._.js +3 -0
  251. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07mtcs1._.js +3 -0
  252. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__084o93l._.js +3 -0
  253. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__085_re5._.js +3 -0
  254. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08kj50f._.js +3 -0
  255. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08txtdi._.js +3 -0
  256. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__092u79y._.js +3 -0
  257. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09j-kzo._.js +3 -0
  258. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09umuy8._.js +3 -0
  259. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09wu-6r._.js +3 -0
  260. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_60dmv._.js +3 -0
  261. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_f5r-w._.js +3 -0
  262. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ahciyb._.js +3 -0
  263. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ajp0a3._.js +3 -0
  264. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ao_4th._.js +3 -0
  265. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0aqoqhn._.js +3 -0
  266. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0b3_azq._.js +3 -0
  267. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cjjwg7._.js +3 -0
  268. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +1 -1
  269. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1wl4f._.js +3 -0
  270. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d2ce-o._.js +3 -0
  271. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dfklvw._.js +3 -0
  272. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dgkz7l._.js +3 -0
  273. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dlg6e7._.js +3 -0
  274. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dq5edp._.js +3 -0
  275. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0drzmcj._.js +3 -0
  276. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dvyt4d._.js +3 -0
  277. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dyqk31._.js +3 -0
  278. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eliqqa._.js +3 -0
  279. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eluwey._.js +3 -0
  280. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f5v0j5._.js +3 -0
  281. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f7g_na._.js +3 -0
  282. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fn2qow._.js +3 -0
  283. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0frnoss._.js +3 -0
  284. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0g0e1x-._.js +3 -0
  285. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gdwl-b._.js +3 -0
  286. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gfhbl7._.js +3 -0
  287. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gsie0d._.js +3 -0
  288. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hg36y7._.js +3 -0
  289. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hz77cq._.js +3 -0
  290. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i501ph._.js +3 -0
  291. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j5jaq9._.js +3 -0
  292. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j7_6c5._.js +3 -0
  293. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jm5dx1._.js +3 -0
  294. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0k-t2mr._.js +3 -0
  295. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ktkk27._.js +3 -0
  296. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kxp4k8._.js +3 -0
  297. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l-mqzk._.js +3 -0
  298. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l7rw-n._.js +3 -0
  299. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lb45m6._.js +3 -0
  300. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lvczy2._.js +3 -0
  301. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0m9zj9m._.js +3 -0
  302. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mg-juc._.js +3 -0
  303. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mriv1n._.js +3 -0
  304. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0n4gqir._.js +3 -0
  305. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0new-8d._.js +3 -0
  306. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nuc9du._.js +3 -0
  307. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nxnhun._.js +3 -0
  308. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o42jfc._.js +3 -0
  309. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o7zz8d._.js +3 -0
  310. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0omb75h._.js +3 -0
  311. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p4ta6t._.js +3 -0
  312. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p5_ap9._.js +3 -0
  313. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pan9yi._.js +3 -0
  314. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pr6h1j._.js +3 -0
  315. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pz23t_._.js +3 -0
  316. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qcvt0o._.js +3 -0
  317. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qn4mea._.js +3 -0
  318. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qp0txx._.js +3 -0
  319. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qsn9xm._.js +3 -0
  320. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qx8qwu._.js +3 -0
  321. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r6p-ql._.js +3 -0
  322. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r6tfw8._.js +3 -0
  323. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sgdrnp._.js +3 -0
  324. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ssn3y9._.js +1 -1
  325. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0te8u6u._.js +3 -0
  326. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ukg6s1._.js +3 -0
  327. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0up7ls4._.js +3 -0
  328. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0uvnrnf._.js +3 -0
  329. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v2xw5s._.js +3 -0
  330. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v5qu_p._.js +3 -0
  331. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__12p0ia1._.js → [root-of-the-server]__0vku_ep._.js} +2 -2
  332. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vuhl78._.js +3 -0
  333. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w52bth._.js +3 -0
  334. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wq5ukd._.js +3 -0
  335. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wx561s._.js +3 -0
  336. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wxo4bk._.js +3 -0
  337. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xfcui-._.js +3 -0
  338. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xm7z28._.js +3 -0
  339. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xqz1om._.js +3 -0
  340. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xur24w._.js +3 -0
  341. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xw3pee._.js +3 -0
  342. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xwht7v._.js +3 -0
  343. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y20q9b._.js +3 -0
  344. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zfq7yk._.js +3 -0
  345. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi_qda._.js +3 -0
  346. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zpm7wg._.js +3 -0
  347. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zxlzp1._.js +3 -0
  348. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-a4wnf._.js +3 -0
  349. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-fpw4q._.js +3 -0
  350. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-iro6m._.js +3 -0
  351. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-o35-u._.js +3 -0
  352. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1043gy8._.js +3 -0
  353. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10kehs5._.js +3 -0
  354. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10s1755._.js +3 -0
  355. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11d3dgq._.js +3 -0
  356. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__126lrtu._.js +3 -0
  357. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12n9728._.js +3 -0
  358. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13hluml._.js +3 -0
  359. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13hzwlv._.js +3 -0
  360. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14c4h72._.js +3 -0
  361. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14oho-o._.js +3 -0
  362. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14zr9zt._.js +1 -1
  363. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__153axa9._.js +3 -0
  364. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1582-3i._.js +3 -0
  365. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15v83nk._.js +3 -0
  366. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16e-k-w._.js +3 -0
  367. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16m0mie._.js +3 -0
  368. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16ta_9y._.js +3 -0
  369. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17a3r0z._.js +3 -0
  370. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17kg43w._.js +3 -0
  371. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18g18yc._.js +3 -0
  372. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18m4f3-._.js +3 -0
  373. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__190vthx._.js +3 -0
  374. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19vezsz._.js +3 -0
  375. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19vgyci._.js +3 -0
  376. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_ulp2r._.js +3 -0
  377. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1a6hiz5._.js +3 -0
  378. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1apqdye._.js +3 -0
  379. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1avjial._.js +3 -0
  380. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cicer7._.js +3 -0
  381. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1crkcf8._.js +3 -0
  382. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dra_qf._.js +3 -0
  383. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eearvr._.js +3 -0
  384. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eewe3-._.js +3 -0
  385. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fd1yxa._.js +3 -0
  386. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fyknn9._.js +3 -0
  387. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g24h4v._.js +3 -0
  388. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1goi44d._.js +3 -0
  389. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hf8-7y._.js +3 -0
  390. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hn7h11._.js +3 -0
  391. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i9e2ly._.js +3 -0
  392. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1j6cxj7._.js +3 -0
  393. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jwn6xy._.js +3 -0
  394. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kw00ov._.js +3 -0
  395. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1l0xu4g._.js +3 -0
  396. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1laa5r-._.js +3 -0
  397. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lo6_vz._.js +3 -0
  398. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lzumk3._.js +3 -0
  399. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m1qnsg._.js +3 -0
  400. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m26y4h._.js +3 -0
  401. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m5qi0d._.js +3 -0
  402. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m7oktq._.js +3 -0
  403. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mq0v7p._.js +1 -1
  404. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n29-mo._.js +3 -0
  405. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n5aq-l._.js +3 -0
  406. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nhwizo._.js +3 -0
  407. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1o2vpkc._.js +3 -0
  408. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1o9euia._.js +3 -0
  409. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1otvs-z._.js +3 -0
  410. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1p3nshl._.js +3 -0
  411. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pbl8am._.js +3 -0
  412. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9a118._.js +3 -0
  413. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9klny._.js +3 -0
  414. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qf5sar._.js +3 -0
  415. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qjpnlw._.js +3 -0
  416. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qpcmfu._.js +1 -1
  417. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r8kqe3._.js +3 -0
  418. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ra-lry._.js +3 -0
  419. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rousb3._.js +3 -0
  420. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rvwwj8._.js +3 -0
  421. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rwfadw._.js +3 -0
  422. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sj1ox_._.js +3 -0
  423. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sq9444._.js +3 -0
  424. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sqteyf._.js +3 -0
  425. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1th4k80._.js +3 -0
  426. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1umt_5v._.js +3 -0
  427. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ux-zjb._.js +3 -0
  428. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v5fjky._.js +3 -0
  429. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vspjdn._.js +3 -0
  430. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1w02nxp._.js +3 -0
  431. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1winv-x._.js +3 -0
  432. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wj9na5._.js +3 -0
  433. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1x-8rww._.js +3 -0
  434. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ybyads._.js +3 -0
  435. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yzs5_p._.js +3 -0
  436. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z3bc6x._.js +3 -0
  437. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zh-p_4._.js +3 -0
  438. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zj2l_d._.js +3 -0
  439. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zqt33m._.js +3 -0
  440. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zr57k3._.js +3 -0
  441. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zxsjfn._.js +3 -0
  442. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ga3fy._.js +3 -0
  443. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20gp3bg._.js +3 -0
  444. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20k17-b._.js +3 -0
  445. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20o508x._.js +3 -0
  446. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20zx91s._.js +3 -0
  447. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__219zam7._.js +3 -0
  448. package/runtime/hub/apps/hub/.next/server/chunks/_03slv7y._.js +1 -1
  449. package/runtime/hub/apps/hub/.next/server/chunks/_03u-l9s._.js +1 -1
  450. package/runtime/hub/apps/hub/.next/server/chunks/_048yy7t._.js +1 -1
  451. package/runtime/hub/apps/hub/.next/server/chunks/_05_hmgg._.js +1 -1
  452. package/runtime/hub/apps/hub/.next/server/chunks/_08cr70o._.js +1 -1
  453. package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +1 -1
  454. package/runtime/hub/apps/hub/.next/server/chunks/_09bu8dh._.js +1 -1
  455. package/runtime/hub/apps/hub/.next/server/chunks/_0_2z437._.js +1 -1
  456. package/runtime/hub/apps/hub/.next/server/chunks/_0_s1tx9._.js +1 -1
  457. package/runtime/hub/apps/hub/.next/server/chunks/_0_ue2iy._.js +1 -1
  458. package/runtime/hub/apps/hub/.next/server/chunks/_0b6vmhh._.js +1 -1
  459. package/runtime/hub/apps/hub/.next/server/chunks/_0bxg62j._.js +1 -1
  460. package/runtime/hub/apps/hub/.next/server/chunks/_0cc3kcz._.js +1 -1
  461. package/runtime/hub/apps/hub/.next/server/chunks/_0ccgezr._.js +1 -1
  462. package/runtime/hub/apps/hub/.next/server/chunks/_0e50cwx._.js +1 -1
  463. package/runtime/hub/apps/hub/.next/server/chunks/_0ek1dkx._.js +1 -1
  464. package/runtime/hub/apps/hub/.next/server/chunks/_0g94rtj._.js +1 -1
  465. package/runtime/hub/apps/hub/.next/server/chunks/_0hwl0oy._.js +1 -1
  466. package/runtime/hub/apps/hub/.next/server/chunks/_0ihch2c._.js +1 -1
  467. package/runtime/hub/apps/hub/.next/server/chunks/_0jal0nm._.js +1 -1
  468. package/runtime/hub/apps/hub/.next/server/chunks/_0jvwv07._.js +1 -1
  469. package/runtime/hub/apps/hub/.next/server/chunks/_0mpj2yt._.js +1 -1
  470. package/runtime/hub/apps/hub/.next/server/chunks/_0n22m88._.js +1 -1
  471. package/runtime/hub/apps/hub/.next/server/chunks/_0ndtf84._.js +1 -1
  472. package/runtime/hub/apps/hub/.next/server/chunks/_0o1r-if._.js +1 -1
  473. package/runtime/hub/apps/hub/.next/server/chunks/_0opn03l._.js +1 -1
  474. package/runtime/hub/apps/hub/.next/server/chunks/_0p-2n50._.js +1 -1
  475. package/runtime/hub/apps/hub/.next/server/chunks/_0qf4357._.js +1 -1
  476. package/runtime/hub/apps/hub/.next/server/chunks/_0tbb47v._.js +1 -1
  477. package/runtime/hub/apps/hub/.next/server/chunks/_0ubchhn._.js +1 -1
  478. package/runtime/hub/apps/hub/.next/server/chunks/_0ul-64a._.js +1 -1
  479. package/runtime/hub/apps/hub/.next/server/chunks/_0v--tpg._.js +1 -1
  480. package/runtime/hub/apps/hub/.next/server/chunks/_0v3xwi-._.js +1 -1
  481. package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +42 -40
  482. package/runtime/hub/apps/hub/.next/server/chunks/_0y497n2._.js +1 -1
  483. package/runtime/hub/apps/hub/.next/server/chunks/_0zvfiwd._.js +1 -1
  484. package/runtime/hub/apps/hub/.next/server/chunks/_100tsj5._.js +1 -1
  485. package/runtime/hub/apps/hub/.next/server/chunks/_11-rqgb._.js +1 -1
  486. package/runtime/hub/apps/hub/.next/server/chunks/_113fejt._.js +1 -1
  487. package/runtime/hub/apps/hub/.next/server/chunks/_12juepz._.js +1 -1
  488. package/runtime/hub/apps/hub/.next/server/chunks/_12w22u2._.js +1 -1
  489. package/runtime/hub/apps/hub/.next/server/chunks/_134-gub._.js +1 -1
  490. package/runtime/hub/apps/hub/.next/server/chunks/_14kba0u._.js +1 -1
  491. package/runtime/hub/apps/hub/.next/server/chunks/_16ec74_._.js +1 -1
  492. package/runtime/hub/apps/hub/.next/server/chunks/_17ntgn8._.js +1 -1
  493. package/runtime/hub/apps/hub/.next/server/chunks/_1c27mjg._.js +1 -1
  494. package/runtime/hub/apps/hub/.next/server/chunks/_1c4zrlu._.js +1 -1
  495. package/runtime/hub/apps/hub/.next/server/chunks/_1cmknl6._.js +1 -1
  496. package/runtime/hub/apps/hub/.next/server/chunks/_1g8ctu7._.js +1 -1
  497. package/runtime/hub/apps/hub/.next/server/chunks/_1grz1bu._.js +1 -1
  498. package/runtime/hub/apps/hub/.next/server/chunks/_1itx6m_._.js +1 -1
  499. package/runtime/hub/apps/hub/.next/server/chunks/_1jaoh3w._.js +1 -1
  500. package/runtime/hub/apps/hub/.next/server/chunks/_1ktt212._.js +1 -1
  501. package/runtime/hub/apps/hub/.next/server/chunks/_1ldaou_._.js +1 -1
  502. package/runtime/hub/apps/hub/.next/server/chunks/_1n3e-p-._.js +1 -1
  503. package/runtime/hub/apps/hub/.next/server/chunks/_1onbxt8._.js +1 -1
  504. package/runtime/hub/apps/hub/.next/server/chunks/_1pudgbl._.js +1 -1
  505. package/runtime/hub/apps/hub/.next/server/chunks/_1qmsz02._.js +1 -1
  506. package/runtime/hub/apps/hub/.next/server/chunks/_1r3ah1o._.js +1 -1
  507. package/runtime/hub/apps/hub/.next/server/chunks/_1t24c_5._.js +1 -1
  508. package/runtime/hub/apps/hub/.next/server/chunks/_1vv20kp._.js +1 -1
  509. package/runtime/hub/apps/hub/.next/server/chunks/_1whgbe7._.js +1 -1
  510. package/runtime/hub/apps/hub/.next/server/chunks/_1wj2dpr._.js +1 -1
  511. package/runtime/hub/apps/hub/.next/server/chunks/_1wsllw4._.js +1 -1
  512. package/runtime/hub/apps/hub/.next/server/chunks/_1yk56nw._.js +1 -1
  513. package/runtime/hub/apps/hub/.next/server/chunks/_1yumxg7._.js +1 -1
  514. package/runtime/hub/apps/hub/.next/server/chunks/_1zlfubf._.js +1 -1
  515. package/runtime/hub/apps/hub/.next/server/chunks/_204rqiz._.js +1 -1
  516. package/runtime/hub/apps/hub/.next/server/chunks/_2056rpg._.js +1 -1
  517. package/runtime/hub/apps/hub/.next/server/chunks/_2056tby._.js +1 -1
  518. package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +13 -13
  519. package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +1 -1
  520. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0515n2f._.js +1 -1
  521. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0h3qrm-._.js +3 -0
  522. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0o-fklw._.js +3 -0
  523. package/runtime/hub/apps/hub/.next/server/chunks/ssr/{[root-of-the-server]__0m1akem._.js → [root-of-the-server]__1jkmxi2._.js} +2 -2
  524. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +1 -1
  525. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kzd494._.js +1 -1
  526. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +1 -1
  527. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +1 -1
  528. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +33 -31
  529. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1hrzkwr._.js +1 -1
  530. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0j5-o0f._.js +1 -1
  531. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_17myqp5._.js +1 -1
  532. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +1 -1
  533. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +1 -1
  534. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +1 -1
  535. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
  536. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +1 -1
  537. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_page_tsx_0o2z21l._.js +1 -1
  538. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +1 -1
  539. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  540. package/runtime/hub/apps/hub/.next/server/next-font-manifest.js +1 -1
  541. package/runtime/hub/apps/hub/.next/server/next-font-manifest.json +27 -27
  542. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  543. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -1
  544. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +19 -19
  545. package/runtime/hub/apps/hub/.next/static/chunks/{2hxatwkh8fha9.js → 02sqxeus8w0s0.js} +1 -1
  546. package/runtime/hub/apps/hub/.next/static/chunks/{0tmbn9jje8ulx.js → 03ceb0qh4s52a.js} +1 -1
  547. package/runtime/hub/apps/hub/.next/static/chunks/{03_fxfc3849ms.css → 0ofk3im5p6gn-.css} +2 -2
  548. package/runtime/hub/apps/hub/.next/static/chunks/{38dg0m6sbz8hx.js → 0qhuf1a_7byq-.js} +1 -1
  549. package/runtime/hub/apps/hub/.next/static/chunks/{05dzzanyo20wx.js → 0u50pq99k9z_4.js} +1 -1
  550. package/runtime/hub/apps/hub/.next/static/chunks/{27t0b0mja1zpt.js → 0x0l4io4rdmuq.js} +1 -1
  551. package/runtime/hub/apps/hub/.next/static/chunks/{1ct_kocalf1mw.js → 22rj-g4qe8jny.js} +1 -1
  552. package/runtime/hub/apps/hub/.next/static/chunks/{22fqc0ktzjo6x.js → 23kzsoacq647n.js} +1 -1
  553. package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.1iu7q7yw-zhgt.woff2 +0 -0
  554. package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.26axk51fv0nvx.woff2 +0 -0
  555. package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.17c61zbdzi3u-.woff2 +0 -0
  556. package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.1at6z4kbofh3w.woff2 +0 -0
  557. package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1h7k3aqd68qji.woff2 +0 -0
  558. package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.0g4pmka8j2u20.woff2 +0 -0
  559. package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.07-q_h5lq3omo.woff2 +0 -0
  560. package/runtime/hub/apps/hub/.next/static/media/77ce6907447ba740-s.1thpl3j71vtxe.woff2 +0 -0
  561. package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.30xqm3yldpj47.woff2 +0 -0
  562. package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.13qpbrx2rg1iz.woff2 +0 -0
  563. package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.42z9vm7u0i9n-.woff2 +0 -0
  564. package/runtime/hub/apps/hub/.next/static/media/bfc9b7e66b1caeca-s.3hdclex1x_th1.woff2 +0 -0
  565. package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.1v7x_qdpnbwoz.woff2 +0 -0
  566. package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.27korwsf9c79u.woff2 +0 -0
  567. package/runtime/hub/apps/hub/.next/static/media/f7cb89c1bcef4d27-s.3ajilh452uwtx.woff2 +0 -0
  568. package/runtime/hub/apps/hub/{auth-3K7Z7LVZ.js → auth-475LXXJA.js} +2 -2
  569. package/runtime/hub/apps/hub/{auth-config-G23WLTGN.js → auth-config-SPDXLHDX.js} +2 -2
  570. package/runtime/hub/apps/hub/{chunk-GGYNXEOD.js → chunk-3WRZVFOY.js} +521 -189
  571. package/runtime/hub/apps/hub/{chunk-RNUUXV2X.js → chunk-67LASBXO.js} +107 -42
  572. package/runtime/hub/apps/hub/{chunk-VQUZQ5MH.js → chunk-6ND54VG2.js} +161 -7
  573. package/runtime/hub/apps/hub/{chunk-7B4VZTUH.js → chunk-7XCRB6GS.js} +96 -82
  574. package/runtime/hub/apps/hub/{chunk-BEK5SYX5.js → chunk-DAMV47HM.js} +6 -0
  575. package/runtime/hub/apps/hub/{chunk-RAIBV7TH.js → chunk-FPLCH64R.js} +1 -1
  576. package/runtime/hub/apps/hub/{chunk-64GCEGJK.js → chunk-KJHUOHQ5.js} +4 -4
  577. package/runtime/hub/apps/hub/{chunk-OWAJTG3G.js → chunk-XGNMYL3X.js} +11 -11
  578. package/runtime/hub/apps/hub/{chunk-FWMBOJTZ.js → chunk-YBYUNY5P.js} +7 -7
  579. package/runtime/hub/apps/hub/{chunk-L5XPW2AU.js → chunk-ZVLJG772.js} +24 -71
  580. package/runtime/hub/apps/hub/{dist-QXOLLT4Y.js → dist-2KUVFXS3.js} +19 -9
  581. package/runtime/hub/apps/hub/{dist-D4JO7PAL.js → dist-2PUSTW2W.js} +1 -1
  582. package/runtime/hub/apps/hub/{dist-I5V4YM32.js → dist-67P6KLUY.js} +2 -2
  583. package/runtime/hub/apps/hub/dist-7PN6FTJV.js +26176 -0
  584. package/runtime/hub/apps/hub/{dist-BX2OAELL.js → dist-O53WU2K6.js} +11 -3
  585. package/runtime/hub/apps/hub/{dist-4GYSUKN3.js → dist-ODKJZJI2.js} +7 -7
  586. package/runtime/hub/apps/hub/{dist-R7ZY7ZTV.js → dist-SUHXQDYN.js} +26 -6
  587. package/runtime/hub/apps/hub/{dist-IHHRC4JW.js → dist-UMA73Z3V.js} +7 -7
  588. package/runtime/hub/apps/hub/{dist-LZWGXCOQ.js → dist-VHXEBJX5.js} +9 -7
  589. package/runtime/hub/apps/hub/{dist-TWRKOELH.js → dist-XOMGXTMI.js} +26 -71
  590. package/runtime/hub/apps/hub/{dist-33UWJJFG.js → dist-ZSRBJAWL.js} +27 -10
  591. package/runtime/hub/apps/hub/{hub-token-EIS7FVL2.js → hub-token-VMKQH4IY.js} +2 -2
  592. package/runtime/hub/apps/hub/{hub-worker-2LVMIS5H.js → hub-worker-5WDNMFCP.js} +9 -9
  593. package/runtime/hub/apps/hub/{manager-pty-XCGH6AUC-VJSNM3A6.js → manager-pty-XCGH6AUC-ZYM2ENVR.js} +4 -4
  594. package/runtime/hub/apps/hub/package.json +2 -1
  595. package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-LZNKUFC7.js → prepared-state-FO74QUCP-L5OKEU42.js} +4 -4
  596. package/runtime/hub/apps/hub/server.js +296 -123
  597. package/runtime/relay/bin.cjs +131 -33
  598. package/runtime/vercel/ctl.cjs +138 -40
  599. package/dist/_cloud-attach-F25HDXWB.js +0 -32
  600. package/dist/chunk-3HJQZQ76.js.map +0 -1
  601. package/dist/chunk-52OXHGKQ.js.map +0 -1
  602. package/dist/chunk-7AMMBUEW.js.map +0 -1
  603. package/dist/chunk-AXAMPAP3.js.map +0 -1
  604. package/dist/chunk-FM7PHYBD.js.map +0 -1
  605. package/dist/chunk-HS6B3CE4.js.map +0 -1
  606. package/dist/chunk-IJFP7N34.js.map +0 -1
  607. package/dist/chunk-KWDFEQO6.js.map +0 -1
  608. package/dist/chunk-OVLM2EZV.js.map +0 -1
  609. package/dist/chunk-R7J7WFM5.js.map +0 -1
  610. package/dist/chunk-U4Z5OOOD.js.map +0 -1
  611. package/dist/chunk-U7J7JT6R.js.map +0 -1
  612. package/dist/chunk-WJ4MZESJ.js.map +0 -1
  613. package/dist/chunk-YZZKWZO2.js.map +0 -1
  614. package/dist/chunk-Z6LK4P54.js.map +0 -1
  615. package/dist/custody-client-F3OAOAC7.js +0 -18
  616. package/dist/dist-XZXZSTTA.js.map +0 -1
  617. package/dist/hub-GHFEW3K2.js +0 -40
  618. package/dist/prepare-O4BUJIOQ.js +0 -48
  619. package/dist/prepared-custody-UTSSUTXF.js +0 -40
  620. package/dist/registry-IPDCZDNW.js +0 -18
  621. package/dist/relay-P5CXEGAZ.js +0 -23
  622. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-0scfb._.js +0 -3
  623. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00a4c3f._.js +0 -3
  624. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00tx9tm._.js +0 -3
  625. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02-rdq0._.js +0 -3
  626. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02kc2og._.js +0 -3
  627. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02sueng._.js +0 -3
  628. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02ywgcg._.js +0 -3
  629. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03_xi2c._.js +0 -3
  630. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03fxkqp._.js +0 -3
  631. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04-i6rm._.js +0 -3
  632. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04b75a4._.js +0 -3
  633. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04d3pe5._.js +0 -3
  634. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05_wgfq._.js +0 -3
  635. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__071c-t4._.js +0 -3
  636. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07fobp5._.js +0 -3
  637. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__081d104._.js +0 -3
  638. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08h5jgt._.js +0 -3
  639. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09grt_m._.js +0 -3
  640. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09jbqbh._.js +0 -3
  641. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09y4pdw._.js +0 -3
  642. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_t5f3m._.js +0 -3
  643. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_xcmfv._.js +0 -3
  644. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a6e0vs._.js +0 -3
  645. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a8ere2._.js +0 -3
  646. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0azx8z8._.js +0 -3
  647. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bok80z._.js +0 -3
  648. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bv_k0d._.js +0 -3
  649. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c1o4qr._.js +0 -3
  650. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c5mzbr._.js +0 -3
  651. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cc5lpl._.js +0 -3
  652. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ce13qa._.js +0 -3
  653. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cyy9az._.js +0 -3
  654. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d34880._.js +0 -3
  655. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dfvo5-._.js +0 -3
  656. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dtq9pr._.js +0 -3
  657. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dw7c0k._.js +0 -3
  658. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e6_t-d._.js +0 -3
  659. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0edd68z._.js +0 -3
  660. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0engd-e._.js +0 -3
  661. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eua3wn._.js +0 -3
  662. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ewh0df._.js +0 -3
  663. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_4fiu._.js +0 -3
  664. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fkjz20._.js +0 -3
  665. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fknr6k._.js +0 -3
  666. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fxx69a._.js +0 -3
  667. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0g7gynv._.js +0 -3
  668. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gl-4ha._.js +0 -3
  669. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gr6v_i._.js +0 -3
  670. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h181r5._.js +0 -3
  671. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h668tm._.js +0 -3
  672. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i65ptk._.js +0 -3
  673. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0iyr5bm._.js +0 -3
  674. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j0vl7q._.js +0 -3
  675. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jvk7x8._.js +0 -3
  676. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jz3x26._.js +0 -3
  677. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0k_7aj_._.js +0 -3
  678. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lc-j_n._.js +0 -3
  679. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mid58_._.js +0 -3
  680. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mq5e3o._.js +0 -3
  681. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0n5hh_2._.js +0 -3
  682. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0neufba._.js +0 -3
  683. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nqggrc._.js +0 -3
  684. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nx6w0m._.js +0 -3
  685. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o4rocd._.js +0 -3
  686. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0olhyt4._.js +0 -3
  687. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pe9g30._.js +0 -3
  688. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pik2ie._.js +0 -3
  689. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qkpqk7._.js +0 -3
  690. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qt_r6a._.js +0 -3
  691. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qudrhk._.js +0 -3
  692. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r0v_c_._.js +0 -3
  693. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r4qvs6._.js +0 -3
  694. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0rf4g7g._.js +0 -3
  695. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s4vdow._.js +0 -3
  696. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s5ck78._.js +0 -3
  697. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0scmgnp._.js +0 -3
  698. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sn7av8._.js +0 -3
  699. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0soiiqi._.js +0 -3
  700. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sz5p6g._.js +0 -3
  701. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tl6p7k._.js +0 -3
  702. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tv5sah._.js +0 -3
  703. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0usxinp._.js +0 -3
  704. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v5krdd._.js +0 -3
  705. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vgxotx._.js +0 -3
  706. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vsn71u._.js +0 -3
  707. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0x5eodh._.js +0 -3
  708. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0x_rx1f._.js +0 -3
  709. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xo5ak-._.js +0 -3
  710. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xt0w30._.js +0 -3
  711. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y-rry-._.js +0 -3
  712. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y3snn7._.js +0 -3
  713. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ygnbei._.js +0 -3
  714. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yio_n7._.js +0 -3
  715. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yxeq50._.js +0 -3
  716. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0z2lkh_._.js +0 -3
  717. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zd42wf._.js +0 -3
  718. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi14f-._.js +0 -3
  719. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zxv1ul._.js +0 -3
  720. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zyutsi._.js +0 -3
  721. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-90xgw._.js +0 -3
  722. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__106reiu._.js +0 -3
  723. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__112hqrh._.js +0 -3
  724. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__113ijth._.js +0 -3
  725. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11qbpq8._.js +0 -3
  726. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11xey3v._.js +0 -3
  727. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__121vdp5._.js +0 -3
  728. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12b40mo._.js +0 -3
  729. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12i61td._.js +0 -3
  730. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12tjfss._.js +0 -3
  731. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__139ha9-._.js +0 -3
  732. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13dk6en._.js +0 -3
  733. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13j6tof._.js +0 -3
  734. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13nfpq5._.js +0 -3
  735. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14opl53._.js +0 -3
  736. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14pxg1e._.js +0 -3
  737. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15gc6-s._.js +0 -3
  738. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15k2wx5._.js +0 -3
  739. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15umca-._.js +0 -3
  740. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__162e1zj._.js +0 -3
  741. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__166_uek._.js +0 -3
  742. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16pmnr6._.js +0 -3
  743. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__174fgjv._.js +0 -3
  744. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17df14g._.js +0 -3
  745. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17jzikc._.js +0 -3
  746. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17y9pmx._.js +0 -3
  747. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18pwzaw._.js +0 -3
  748. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__192ppv6._.js +0 -3
  749. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__198-esg._.js +0 -3
  750. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19al998._.js +0 -3
  751. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19m88da._.js +0 -3
  752. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19nlcuf._.js +0 -3
  753. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_4v0mh._.js +0 -3
  754. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_dmv53._.js +0 -3
  755. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_xgm2e._.js +0 -3
  756. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_zs8b5._.js +0 -3
  757. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1abclgc._.js +0 -3
  758. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1aboxh4._.js +0 -3
  759. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bh1dxz._.js +0 -3
  760. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cb0_wq._.js +0 -3
  761. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cbn_et._.js +0 -3
  762. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cggpv7._.js +0 -3
  763. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cnhbta._.js +0 -3
  764. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cpqqag._.js +0 -3
  765. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cs6d52._.js +0 -3
  766. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d-v8kt._.js +0 -3
  767. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d-yop_._.js +0 -3
  768. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d60scp._.js +0 -3
  769. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dhzd1_._.js +0 -3
  770. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1diw0ei._.js +0 -3
  771. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dogvkr._.js +0 -3
  772. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ectuq4._.js +0 -3
  773. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ehcanu._.js +0 -3
  774. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1em476i._.js +0 -3
  775. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9l4qz._.js +0 -3
  776. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4akof._.js +0 -3
  777. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i9bs12._.js +0 -3
  778. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jbtokr._.js +0 -3
  779. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jelopi._.js +0 -3
  780. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jnfrsy._.js +0 -3
  781. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1k934r7._.js +0 -3
  782. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kt9_sy._.js +0 -3
  783. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kv_jgw._.js +0 -3
  784. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1l_uof1._.js +0 -3
  785. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lareew._.js +0 -3
  786. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lgn5_b._.js +0 -3
  787. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lnherq._.js +0 -3
  788. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lyqerb._.js +0 -3
  789. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1me3irq._.js +0 -3
  790. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mh1-lh._.js +0 -3
  791. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mk_lpu._.js +0 -3
  792. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1muxcy9._.js +0 -3
  793. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mx0_-f._.js +0 -3
  794. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1no5aw3._.js +0 -3
  795. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1noanyg._.js +0 -3
  796. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ntihlm._.js +0 -3
  797. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ob9yn9._.js +0 -3
  798. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1odu62n._.js +0 -3
  799. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1oy_ypa._.js +0 -3
  800. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1p6khix._.js +0 -3
  801. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pg2kzv._.js +0 -3
  802. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pk410t._.js +0 -3
  803. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pta31u._.js +0 -3
  804. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pz2967._.js +0 -3
  805. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9ds80._.js +0 -3
  806. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qt1i63._.js +0 -3
  807. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rr4obb._.js +0 -3
  808. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rzg628._.js +0 -3
  809. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sdw2ls._.js +0 -3
  810. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1szemyb._.js +0 -3
  811. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1t88a94._.js +0 -3
  812. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1tfkm3m._.js +0 -3
  813. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1txvsbk._.js +0 -3
  814. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1uhiv-4._.js +0 -3
  815. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1utvnlp._.js +0 -3
  816. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vc_bp9._.js +0 -3
  817. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1w25h0t._.js +0 -3
  818. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wc9zwl._.js +0 -3
  819. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ws4ucz._.js +0 -3
  820. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wx5ltv._.js +0 -3
  821. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xi8hyy._.js +0 -3
  822. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xl-uhz._.js +0 -3
  823. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xlddup._.js +0 -3
  824. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y3gko6._.js +0 -3
  825. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y9wbb2._.js +0 -3
  826. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ypmy86._.js +0 -3
  827. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ysubik._.js +0 -3
  828. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yzmh_p._.js +0 -3
  829. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z7mgd6._.js +0 -3
  830. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ztoaz1._.js +0 -3
  831. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__2019yzl._.js +0 -3
  832. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20opvks._.js +0 -3
  833. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ygien._.js +0 -3
  834. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0bv8m80._.js +0 -3
  835. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1ay9-4x._.js +0 -3
  836. package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.29yke99gs9qpn.woff2 +0 -0
  837. package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.0o-3_g79811ob.woff2 +0 -0
  838. package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.226pwps5o-gq_.woff2 +0 -0
  839. package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.15orukf5wyxb5.woff2 +0 -0
  840. package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1u30mmyq6lnsd.woff2 +0 -0
  841. package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.2vemzm0itqzfy.woff2 +0 -0
  842. package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.1i-sca43-qwng.woff2 +0 -0
  843. package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.40sczeszzbjw1.woff2 +0 -0
  844. package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.0ngr-xkgqz1kf.woff2 +0 -0
  845. package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.1qc6dx89jd2qv.woff2 +0 -0
  846. package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.3cb5lpr2l6xud.woff2 +0 -0
  847. package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.0oace-s_gkfks.woff2 +0 -0
  848. package/runtime/hub/apps/hub/dist-25JLZKGB.js +0 -1278
  849. /package/dist/{_cloud-attach-F25HDXWB.js.map → _cloud-attach-KEFEQ2YH.js.map} +0 -0
  850. /package/dist/{chunk-L55DASHB.js.map → chunk-2SKTXZGX.js.map} +0 -0
  851. /package/dist/{chunk-BKOKMZNK.js.map → chunk-3QTWB66F.js.map} +0 -0
  852. /package/dist/{chunk-VSWIJHCH.js.map → chunk-5ZBNVZSU.js.map} +0 -0
  853. /package/dist/{chunk-IX7S6NJR.js.map → chunk-72LKKHPI.js.map} +0 -0
  854. /package/dist/{chunk-7TPGIQOP.js.map → chunk-BORN6FJK.js.map} +0 -0
  855. /package/dist/{chunk-77IAHAQY.js.map → chunk-FBQC6TKM.js.map} +0 -0
  856. /package/dist/{chunk-JUTAYI2N.js.map → chunk-GCUJUUNE.js.map} +0 -0
  857. /package/dist/{chunk-S77B5POZ.js.map → chunk-GKBAEX2P.js.map} +0 -0
  858. /package/dist/{chunk-XKUF67M6.js.map → chunk-GT7VDGNV.js.map} +0 -0
  859. /package/dist/{chunk-AGHR7XOJ.js.map → chunk-HOJKUVH6.js.map} +0 -0
  860. /package/dist/{chunk-PENAXZMR.js.map → chunk-INJIW6PP.js.map} +0 -0
  861. /package/dist/{chunk-OYWP4SII.js.map → chunk-IZPNDZXI.js.map} +0 -0
  862. /package/dist/{chunk-U3BCLGTH.js.map → chunk-JHS4ROJH.js.map} +0 -0
  863. /package/dist/{chunk-CWN4DJYI.js.map → chunk-JVZZPJ2C.js.map} +0 -0
  864. /package/dist/{chunk-KOGQNHV3.js.map → chunk-KA67IGEG.js.map} +0 -0
  865. /package/dist/{chunk-OTAYAFYF.js.map → chunk-KRF2JODE.js.map} +0 -0
  866. /package/dist/{chunk-SDWKZLGP.js.map → chunk-LFMJXQDL.js.map} +0 -0
  867. /package/dist/{chunk-2U4HKKM7.js.map → chunk-NSYCXUN5.js.map} +0 -0
  868. /package/dist/{chunk-5JDGKHWH.js.map → chunk-QALBGVPR.js.map} +0 -0
  869. /package/dist/{chunk-JCDC5S32.js.map → chunk-QDBDDJKT.js.map} +0 -0
  870. /package/dist/{chunk-ZPFTFIKP.js.map → chunk-S5WFZHC5.js.map} +0 -0
  871. /package/dist/{chunk-PVZUQTLW.js.map → chunk-VUTEVIYG.js.map} +0 -0
  872. /package/dist/{chunk-OWCTDO67.js.map → chunk-WVBTRK6R.js.map} +0 -0
  873. /package/dist/{chunk-4IQGL4KD.js.map → chunk-ZMKRUD6J.js.map} +0 -0
  874. /package/dist/{chunk-J2AD7MLR.js.map → chunk-ZQWOZ5BL.js.map} +0 -0
  875. /package/dist/{cli-3WZP5JHA.js.map → cli-B4VVKKYV.js.map} +0 -0
  876. /package/dist/{cli-6IPZVUXF.js.map → cli-ENMWXMKO.js.map} +0 -0
  877. /package/dist/{cli-E2ZC5S4U.js.map → cli-F2UBHH7H.js.map} +0 -0
  878. /package/dist/{cli-QIBPY2HQ.js.map → cli-JKSQBGRO.js.map} +0 -0
  879. /package/dist/{cli-QSV6K33P.js.map → cli-MIIWRJDK.js.map} +0 -0
  880. /package/dist/{control-plane-I2QKMHPK.js.map → control-plane-R4ELXZHL.js.map} +0 -0
  881. /package/dist/{cp-hub-upload-GW566DGZ.js.map → cp-hub-upload-IUQVJGOW.js.map} +0 -0
  882. /package/dist/{custody-client-F3OAOAC7.js.map → custody-client-PVDBOT7Y.js.map} +0 -0
  883. /package/dist/{deploy-hetzner-IIAXES7B.js.map → deploy-hetzner-KY6KWN4M.js.map} +0 -0
  884. /package/dist/{dist-3EZQDIOD.js.map → dist-2QGMP2UI.js.map} +0 -0
  885. /package/dist/{dist-44RSFOGQ.js.map → dist-5MCQFGLX.js.map} +0 -0
  886. /package/dist/{dist-4K66F4UR.js.map → dist-EIVYC2MR.js.map} +0 -0
  887. /package/dist/{dist-VKKHIHCZ.js.map → dist-JWXPKGPZ.js.map} +0 -0
  888. /package/dist/{dist-5RMJLMYG.js.map → dist-ONAAPVBD.js.map} +0 -0
  889. /package/dist/{dist-HIQCE4H2.js.map → dist-OXLTCVA2.js.map} +0 -0
  890. /package/dist/{dist-IXPKVU3R.js.map → dist-PBO4UHJK.js.map} +0 -0
  891. /package/dist/{dist-SZTW3RMB.js.map → dist-RCBMUPVR.js.map} +0 -0
  892. /package/dist/{dist-WR2HYACA.js.map → dist-TD74GXLP.js.map} +0 -0
  893. /package/dist/{dist-WTPYXNRH.js.map → dist-VCZ3LZPJ.js.map} +0 -0
  894. /package/dist/{dist-YED5YJQN.js.map → dist-WGV7LRDC.js.map} +0 -0
  895. /package/dist/{host-reach-drainer-A4ZO6UKT.js.map → host-reach-drainer-AZYC6UIB.js.map} +0 -0
  896. /package/dist/{host-session-POJP4WO6.js.map → host-session-EGUDGE4R.js.map} +0 -0
  897. /package/dist/{hub-GHFEW3K2.js.map → hub-76RHPA7X.js.map} +0 -0
  898. /package/dist/{hub-adopt-YR7S5TNB.js.map → hub-adopt-5G7SKI2E.js.map} +0 -0
  899. /package/dist/{hub-api-client-BUQDTSQ3.js.map → hub-api-client-WPZTG5AT.js.map} +0 -0
  900. /package/dist/{hub-docker-target-XA5U2ZU5.js.map → hub-docker-target-CNJHYH4B.js.map} +0 -0
  901. /package/dist/{manager-pty-XCGH6AUC-EZML75UO.js.map → manager-pty-XCGH6AUC-O3UNISN2.js.map} +0 -0
  902. /package/dist/{plugin-update-BIPJZA24.js.map → plugin-update-UZYPWL4N.js.map} +0 -0
  903. /package/dist/{prepare-O4BUJIOQ.js.map → prepare-4GOTJXQL.js.map} +0 -0
  904. /package/dist/{prepared-custody-UTSSUTXF.js.map → prepared-custody-4YJ4ZT7J.js.map} +0 -0
  905. /package/dist/{prepared-state-FO74QUCP-4WLAYPEO.js.map → prepared-state-FO74QUCP-GUIPQORN.js.map} +0 -0
  906. /package/dist/{publish-credentials-N2JD2D3A.js.map → publish-credentials-RLRLNL33.js.map} +0 -0
  907. /package/dist/{registry-IPDCZDNW.js.map → registry-QMHCNR5X.js.map} +0 -0
  908. /package/dist/{relay-P5CXEGAZ.js.map → relay-VBWFCWKK.js.map} +0 -0
  909. /package/dist/{remote-docker-share-GIH6JNKY.js.map → remote-docker-share-TKG7SXHX.js.map} +0 -0
  910. /package/dist/{tool-grant-push-7K765QKW.js.map → tool-grant-push-V7E3Y2W6.js.map} +0 -0
  911. /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_buildManifest.js +0 -0
  912. /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_clientMiddlewareManifest.js +0 -0
  913. /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_ssgManifest.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../packages/agent-opencode/src/docker-sync.ts"],"sourcesContent":["import { agentPushExcludes } from '@agentbox/core';\nimport { spawnSync } from 'node:child_process';\nimport { stat } from 'node:fs/promises';\nimport { homedir } from 'node:os';\nimport { join } from 'node:path';\nimport { execa } from 'execa';\nimport {\n buildTermSafeTmuxExec,\n buildTmuxSessionArgs,\n CONTAINER_USER,\n ensureVolume,\n volumeExists,\n createDockerSyncTransport,\n} from '@agentbox/sandbox-docker';\nimport { ensureAgentInstalled, resolveAgentSpec, AgentInstallError } from '@agentbox/sandbox-core';\n\n/**\n * OpenCode support mirrors the Codex support in `codex.ts`. The one structural\n * difference: OpenCode splits its state across two XDG directories —\n * `~/.config/opencode` (config) and `~/.local/share/opencode` (data + the\n * `auth.json` provider credentials). A single volume holds both: it is mounted\n * at the data dir, and the config dir is relocated into a `config/` subdir of\n * that same volume via the `OPENCODE_CONFIG_DIR` env var (OpenCode-specific, so\n * safe to set box-global — unlike `XDG_DATA_HOME`).\n */\n/**\n * The shared opencode-config volume, FROM THE REGISTRY.\n *\n * It was a second copy of `spec.dockerVolume` — the same string written in\n * two places, which is how a fourth agent ends up half-wired. Derived now, so\n * there is one source and no drift test is needed to keep them equal.\n */\n/**\n * `--exclude` flags for the opencode data tree, rendered from the registry.\n *\n * This used to be a hardcoded string that had drifted from the spec: it named\n * `opencode.db`/`-shm`/`-wal` one by one (now covered generically) and omitted\n * `snapshot`, so the docker volume received host-only snapshots the cloud\n * snapshot dropped.\n */\nconst OPENCODE_SPEC = resolveAgentSpec('opencode');\nfunction dataVolumeExcludeFlags(): string {\n const path = OPENCODE_SPEC.staticPaths[0];\n const derived = path ? agentPushExcludes(OPENCODE_SPEC, path, 'volume') : [];\n return derived.map((p) => `--exclude=${p}`).join(' ');\n}\n\nexport const SHARED_OPENCODE_VOLUME = resolveAgentSpec('opencode').dockerVolume;\nexport const DEFAULT_OPENCODE_SESSION = 'opencode';\n/** Volume mount point inside the box — OpenCode's native data dir. */\nconst CONTAINER_OPENCODE_DIR = '/home/vscode/.local/share/opencode';\n/**\n * The box run-env this agent needs, straight from the registry — the one place\n * it is declared (`boxRunEnv`). Restating the values here is how docker and the\n * clouds drifted apart: cloud set `OPENCODE_CONFIG_DIR` and silently omitted\n * `XDG_STATE_HOME`.\n *\n * `OPENCODE_CONFIG_DIR` relocates the config dir into the volume; it is\n * OpenCode-specific, so setting it box-global is safe — unlike `XDG_DATA_HOME`,\n * which would move every app's data dir. `XDG_STATE_HOME` relocates the state\n * dir (`model.json` — the last-selected model) into the volume too, so it\n * persists; it is generic, but the only state read back is the `opencode/`\n * subdir, so another tool's state landing there is harmless.\n */\nconst OPENCODE_BOX_RUN_ENV = resolveAgentSpec('opencode').boxRunEnv;\n/** Image-baked AgentBox OpenCode plugin (copied in from packages/sandbox-docker/scripts/). */\n\nexport interface OpencodeConfigSpec {\n /** Resolved Docker volume name mounted at the OpenCode data dir. */\n volume: string;\n}\n\nexport function resolveOpencodeVolume(opts: {\n isolate: boolean;\n boxId: string;\n}): OpencodeConfigSpec {\n if (opts.isolate) {\n return { volume: `${SHARED_OPENCODE_VOLUME}-${opts.boxId}` };\n }\n return { volume: SHARED_OPENCODE_VOLUME };\n}\n\nasync function pathExists(p: string): Promise<boolean> {\n try {\n await stat(p);\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * Single-quote a token for /bin/sh. Conservative: anything outside the safe\n * alphabet gets wrapped. Mirrors the helper in codex.ts.\n */\nfunction shQuote(arg: string): string {\n if (arg.length === 0) return `''`;\n if (/^[A-Za-z0-9_\\-./=:@%+,]+$/.test(arg)) return arg;\n return `'${arg.replace(/'/g, `'\\\\''`)}'`;\n}\n\nexport interface EnsureOpencodeVolumeOptions {\n /**\n * When true and the host has OpenCode dirs, rsync host -> volume on every\n * call. Additive (no `--delete`): host files win on overlap, box-only files\n * (e.g. an `auth.json` written by an in-box `opencode auth login`) are kept.\n */\n syncFromHost: boolean;\n /** Image used by the throwaway sync helper container (the box image). */\n image: string;\n}\n\nexport interface EnsureOpencodeVolumeResult {\n /** True only the very first time the volume is created (on this host). */\n created: boolean;\n /** True when the rsync helper ran (syncFromHost was true AND a host dir existed). */\n synced: boolean;\n}\n\n/**\n * Ensure the opencode-config volume exists, then (when {@link\n * EnsureOpencodeVolumeOptions.syncFromHost} is true and the host has OpenCode\n * state) rsync host -> volume via a throwaway helper container. The host is\n * authoritative — same model as the claude/codex volumes.\n *\n * Three host sources land in the one volume: `~/.local/share/opencode` -> volume\n * root (the data dir, holds `auth.json`), `~/.config/opencode` -> volume\n * `config/` (the relocated config dir), and `~/.local/state/opencode` ->\n * volume `.state/opencode` (the relocated state dir, holds `model.json` — the\n * last-selected model, matched by `XDG_STATE_HOME` in {@link buildOpencodeMounts}).\n * The data sync excludes the SQLite session storage / logs (`storage`, `log`,\n * `project`, `cache`, `bin`) — large, box-irrelevant, and host binaries don't run\n * on linux. The state sync is newest-wins (`--update`) since the model is two-way.\n *\n * When there is nothing to sync the volume root is still `chown`ed to uid 1000\n * so a throwaway `opencode auth login` container can write into it.\n */\nexport async function ensureOpencodeVolume(\n spec: OpencodeConfigSpec,\n opts: EnsureOpencodeVolumeOptions,\n): Promise<EnsureOpencodeVolumeResult> {\n const existed = await volumeExists(spec.volume);\n await ensureVolume(spec.volume);\n const created = !existed;\n\n const hostData = join(homedir(), '.local', 'share', 'opencode');\n const hostConfig = join(homedir(), '.config', 'opencode');\n const hostState = join(homedir(), '.local', 'state', 'opencode');\n const hasData = await pathExists(hostData);\n const hasConfig = await pathExists(hostConfig);\n const hasState = await pathExists(hostState);\n const willSync = opts.syncFromHost && (hasData || hasConfig || hasState);\n\n if (willSync) {\n const args = ['run', '--rm', '--user', '0', '-v', `${spec.volume}:/dst`];\n if (hasData) args.push('-v', `${hostData}:/src-data:ro`);\n if (hasConfig) args.push('-v', `${hostConfig}:/src-config:ro`);\n if (hasState) args.push('-v', `${hostState}:/src-state:ro`);\n const steps: string[] = [];\n if (hasData) {\n // Excludes come from the registry via `agentPushExcludes` — the same list\n // the cloud stager renders, so the two cannot drift (this hardcoded copy\n // was missing `snapshot`). `'volume'`, not `'snapshot'`: the volume is\n // this box's credential store, so `auth.json` must land in it. The SQLite\n // session store is dropped by the shared live-database deny.\n steps.push(`rsync -a ${dataVolumeExcludeFlags()} /src-data/ /dst/`);\n }\n if (hasConfig) {\n steps.push('mkdir -p /dst/config && rsync -a /src-config/ /dst/config/');\n }\n if (hasState) {\n // The selected model (`model.json`) is two-way state, not host-authoritative\n // config: `--update` (newest-wins) keeps a stale host file from clobbering a\n // model picked inside the box (which persists in this volume). `locks` is a\n // runtime lock dir — host-local, never synced.\n steps.push(\n 'mkdir -p /dst/.state/opencode &&' +\n ' rsync -a --update --exclude=locks /src-state/ /dst/.state/opencode/',\n );\n }\n steps.push('chown -R 1000:1000 /dst');\n args.push(opts.image, 'sh', '-c', steps.join(' && '));\n await execa('docker', args);\n return { created, synced: true };\n }\n\n // No host OpenCode state to sync — still make the (possibly freshly created,\n // root-owned) volume root writable by the in-box `vscode` user.\n await execa(\n 'docker',\n [\n 'run',\n '--rm',\n '--user',\n '0',\n '-v',\n `${spec.volume}:/dst`,\n opts.image,\n 'sh',\n '-c',\n 'chown 1000:1000 /dst',\n ],\n { reject: false },\n );\n return { created, synced: false };\n}\n\nexport interface OpencodeMountResult {\n /** Docker -v spec strings to append to runBox(extraVolumes). */\n extraVolumes: string[];\n /**\n * Env vars for the container: the fixed `OPENCODE_CONFIG_DIR` (relocates the\n * config dir into the volume) plus any forwarded provider keys set on the host.\n */\n env: Record<string, string>;\n volumeName: string;\n}\n\n// Provider API keys forwarded from the host's `process.env` into the box.\n// OpenCode's primary auth is the synced `auth.json`; these are a fallback /\n// supplement (OpenCode \"loads keys from environment variables at startup\").\n// Both Google key names are forwarded: `opencode auth list` recognizes\n// `GEMINI_API_KEY`, but the underlying provider SDK reads\n// `GOOGLE_GENERATIVE_AI_API_KEY` at request time.\nexport const OPENCODE_FORWARDED_ENV_KEYS = [\n 'ANTHROPIC_API_KEY',\n 'OPENAI_API_KEY',\n 'OPENROUTER_API_KEY',\n 'GEMINI_API_KEY',\n 'GOOGLE_GENERATIVE_AI_API_KEY',\n 'GOOGLE_API_KEY',\n 'GROQ_API_KEY',\n] as const;\n\nexport function buildOpencodeMounts(\n spec: OpencodeConfigSpec,\n hostEnv: NodeJS.ProcessEnv,\n): OpencodeMountResult {\n const env: Record<string, string> = { ...OPENCODE_BOX_RUN_ENV };\n for (const k of OPENCODE_FORWARDED_ENV_KEYS) {\n const v = hostEnv[k];\n if (typeof v === 'string' && v.length > 0) env[k] = v;\n }\n return {\n extraVolumes: [`${spec.volume}:${CONTAINER_OPENCODE_DIR}`],\n env,\n volumeName: spec.volume,\n };\n}\n\nexport class OpencodeSessionError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'OpencodeSessionError';\n }\n}\n\nexport interface EnsureOpencodeInstalledResult {\n /**\n * True when opencode had to be installed just now — i.e. it was absent from\n * the box image. Happens for boxes created from a checkpoint image captured\n * before OpenCode support, or from an older base image.\n */\n installed: boolean;\n}\n\n/**\n * Make sure the `opencode` binary is on PATH inside the box. OpenCode is baked\n * into the current base image, but a box created from a checkpoint image (a\n * frozen snapshot) captured before OpenCode support — or from an older base\n * image — won't have it. In that case we `npm install -g opencode-ai` into the\n * box's writable layer (persists across stop/start, wiped on destroy), mirroring\n * how `--with-playwright` installs at create time.\n *\n * Fast no-op (one `command -v`) when opencode is already present. Throws\n * {@link OpencodeSessionError} when opencode is absent *and* the install fails.\n */\nexport async function ensureOpencodeInstalled(\n container: string,\n opts: { onProgress?: (line: string) => void } = {},\n): Promise<EnsureOpencodeInstalledResult> {\n try {\n return await ensureAgentInstalled(createDockerSyncTransport({ container }), 'opencode', opts);\n } catch (err) {\n if (err instanceof AgentInstallError) throw new OpencodeSessionError(err.message);\n throw err;\n }\n}\n\nexport interface StartOpencodeSessionOptions {\n container: string;\n opencodeArgs: string[];\n sessionName?: string;\n}\n\n/**\n * Start a detached tmux session running the OpenCode TUI inside the container.\n * Survives client disconnects; reattach via {@link buildOpencodeAttachArgv}. The\n * shared {@link buildTmuxSessionArgs} remaps the prefix and hides the inner\n * status bar, exactly as for the claude/codex sessions.\n *\n * `OPENCODE_CONFIG_DIR` is already in the container env (set at `docker run -e`\n * by {@link buildOpencodeMounts}), so `docker exec` inherits it — only the\n * host-forwarded provider keys are re-passed here to pick up the host shell's\n * current values.\n */\nexport async function startOpencodeSession(opts: StartOpencodeSessionOptions): Promise<void> {\n const sessionName = opts.sessionName ?? DEFAULT_OPENCODE_SESSION;\n const cmd = ['opencode', ...opts.opencodeArgs].map(shQuote).join(' ');\n const term = process.env['TERM'] ?? 'xterm-256color';\n const envFlags: string[] = ['-e', `TERM=${term}`];\n for (const k of OPENCODE_FORWARDED_ENV_KEYS) {\n const v = process.env[k];\n if (typeof v === 'string' && v.length > 0) envFlags.push('-e', `${k}=${v}`);\n }\n const result = await execa(\n 'docker',\n [\n 'exec',\n ...envFlags,\n '--user',\n CONTAINER_USER,\n opts.container,\n 'tmux',\n 'new-session',\n '-d',\n '-s',\n sessionName,\n cmd,\n ...buildTmuxSessionArgs(sessionName),\n ],\n { reject: false },\n );\n if (result.exitCode === 0) return;\n const stderr = (result.stderr ?? '').toString();\n if (result.exitCode === 127 || /command not found|tmux: not found/i.test(stderr)) {\n throw new OpencodeSessionError(\n `tmux is missing from the box image. Rebuild with: docker rmi agentbox/box:dev && retry.`,\n );\n }\n if (/opencode.*not found|exec: \"opencode\"/i.test(stderr)) {\n throw new OpencodeSessionError(\n `opencode is missing from the box image. Rebuild with: docker rmi agentbox/box:dev && retry.`,\n );\n }\n if (/duplicate session/i.test(stderr)) {\n throw new OpencodeSessionError(\n `a tmux session \"${sessionName}\" already exists in ${opts.container}; use \\`agentbox opencode attach\\` to reattach.`,\n );\n }\n throw new OpencodeSessionError(\n `failed to start opencode session in ${opts.container}: ${stderr.trim() || `exit ${String(result.exitCode)}`}`,\n );\n}\n\n/**\n * The `docker` argv that attaches an interactive terminal to a box's OpenCode\n * tmux session. Mirrors {@link import('./codex.js').buildCodexAttachArgv}.\n */\nexport function buildOpencodeAttachArgv(container: string, sessionName?: string): string[] {\n const name = sessionName ?? DEFAULT_OPENCODE_SESSION;\n return buildTermSafeTmuxExec({\n container,\n user: CONTAINER_USER,\n tmuxScript: 'exec tmux attach -t \"$1\"',\n positionals: [name],\n });\n}\n\n/**\n * The `docker run` argv for an interactive `opencode auth login` in a throwaway\n * container. Mounts the opencode-config volume so the written `auth.json`\n * persists, and sets `OPENCODE_CONFIG_DIR` so config writes land in the volume\n * too. `opencode auth login` is interactive (provider picker); `extraArgs` are\n * appended verbatim (e.g. `['--provider', 'anthropic']`).\n *\n * `DISPLAY` is blanked for the same reason as the claude/codex login: the image\n * bakes `DISPLAY=:1` (a VNC X server) and opencode must not try to open a\n * browser there — forcing the terminal URL/paste-code flow.\n */\nexport function buildOpencodeLoginRunArgv(opts: {\n volume: string;\n image: string;\n extraArgs: string[];\n}): string[] {\n const term = process.env['TERM'] ?? 'xterm-256color';\n return [\n 'run',\n '-it',\n '--rm',\n '-e',\n `TERM=${term}`,\n '-e',\n 'DISPLAY=',\n ...Object.entries(OPENCODE_BOX_RUN_ENV).flatMap(([k, v]) => ['-e', `${k}=${v}`]),\n '-v',\n `${opts.volume}:${CONTAINER_OPENCODE_DIR}`,\n '--user',\n CONTAINER_USER,\n opts.image,\n 'opencode',\n 'auth',\n 'login',\n ...opts.extraArgs,\n ];\n}\n\n/**\n * Run an interactive docker argv (from {@link buildOpencodeLoginRunArgv}) with\n * the user's terminal attached. Returns the exit code; a null status is\n * reported as 1.\n */\nexport function runInteractiveOpencodeLogin(dockerArgv: string[]): { exitCode: number } {\n const child = spawnSync('docker', dockerArgv, { stdio: 'inherit' });\n return { exitCode: child.status ?? 1 };\n}\n\n/**\n * True when the opencode-config volume already holds an `auth.json` (at the\n * data-dir root). Used to skip the first-run sign-in offer when an earlier box\n * / `agentbox opencode login` already authenticated.\n */\nexport async function volumeHasOpencodeAuth(volume: string, image: string): Promise<boolean> {\n const res = await execa(\n 'docker',\n ['run', '--rm', '-v', `${volume}:/dst`, image, 'sh', '-c', 'test -e /dst/auth.json'],\n { reject: false },\n );\n return res.exitCode === 0;\n}\n\nexport interface OpencodeSessionInfo {\n running: boolean;\n sessionName: string;\n /** ISO-8601 timestamp from tmux's `#{session_created}`, or null when not running. */\n startedAt: string | null;\n}\n\n/**\n * Best-effort: returns `{ running: false, …, startedAt: null }` for any\n * non-zero exit from `tmux has-session`. Mirrors `codexSessionInfo`.\n */\nexport async function opencodeSessionInfo(\n container: string,\n sessionName?: string,\n): Promise<OpencodeSessionInfo> {\n const name = sessionName ?? DEFAULT_OPENCODE_SESSION;\n const has = await execa(\n 'docker',\n ['exec', '--user', CONTAINER_USER, container, 'tmux', 'has-session', '-t', name],\n { reject: false },\n );\n if (has.exitCode !== 0) {\n return { running: false, sessionName: name, startedAt: null };\n }\n const ts = await execa(\n 'docker',\n [\n 'exec',\n '--user',\n CONTAINER_USER,\n container,\n 'tmux',\n 'display-message',\n '-p',\n '-t',\n name,\n '#{session_created}',\n ],\n { reject: false },\n );\n let startedAt: string | null = null;\n if (ts.exitCode === 0) {\n const secs = Number.parseInt((ts.stdout ?? '').trim(), 10);\n if (Number.isFinite(secs) && secs > 0) startedAt = new Date(secs * 1000).toISOString();\n }\n return { running: true, sessionName: name, startedAt };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AACA,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,eAAe;AACxB,SAAS,YAAY;AACrB,SAAS,aAAa;AAmCtB,IAAM,gBAA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MACA;MACA;MACA;IACF;IACA,EAAE,QAAQ,MAAM;EAClB;AACA,MAAI,YAA2B;AAC/B,MAAI,GAAG,aAAa,GAAG;AACrB,UAAM,OAAO,OAAO,UAAU,GAAG,UAAU,IAAI,KAAK,GAAG,EAAE;AACzD,QAAI,OAAO,SAAS,IAAI,KAAK,OAAO,EAAG,aAAY,IAAI,KAAK,OAAO,GAAI,EAAE,YAAY;EACvF;AACA,SAAO,EAAE,SAAS,MAAM,aAAa,MAAM,UAAU;AACvD;","names":[]}
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- CustodyClient,
4
- collectAgentCredentialUploads,
5
- planPush,
6
- sha256Hex
7
- } from "./chunk-CWN4DJYI.js";
8
- import "./chunk-ZPFTFIKP.js";
9
- import "./chunk-U7J7JT6R.js";
10
- import "./chunk-FM7PHYBD.js";
11
- import "./chunk-YZZKWZO2.js";
12
- export {
13
- CustodyClient,
14
- collectAgentCredentialUploads,
15
- planPush,
16
- sha256Hex
17
- };
18
- //# sourceMappingURL=custody-client-F3OAOAC7.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../packages/sandbox-e2b/src/index.ts","../../../packages/sandbox-e2b/src/backend.ts","../../../packages/sandbox-e2b/src/retry.ts","../../../packages/sandbox-e2b/src/prepare.ts","../../../packages/sandbox-e2b/src/build-attach.ts","../../../packages/sandbox-e2b/src/provider-module.ts"],"sourcesContent":["/**\n * The E2B sandbox provider. A thin `CloudBackend` over the `e2b` v2 SDK,\n * composed via `@agentbox/sandbox-cloud`'s `createCloudProvider` for\n * everything provider-agnostic (workspace seeding, ctl launch, state, relay\n * polling).\n *\n * Three capabilities are overridden on top of the cloud scaffold:\n * - `prepare` — bake the custom base template via Template.build\n * (`agentbox prepare --provider e2b`).\n * - `buildAttach` — SDK-streaming PTY bridge (E2B has no SSH).\n * - `checkpoint` — store the E2B snapshot id (template id) in the manifest\n * so restore boots from it (`Sandbox.createSnapshot` produces an\n * id-addressed reusable snapshot, same shape as Vercel).\n *\n * `launchDockerd: true` — E2B microVMs DO support nested containers (full root\n * + cap_sys_admin + working namespaces, verified 2026-06-23), so the base\n * template bakes the docker engine and the cloud scaffold auto-starts dockerd\n * on every create/resume (same as the vercel/hetzner/daytona providers).\n */\n\nimport type { BoxRecord, Provider, ProviderCheckpoint } from '@agentbox/core';\nimport {\n createCloudProvider,\n currentCloudBaseFingerprint,\n listCloudCheckpoints,\n removeCloudCheckpointDir,\n resolveCloudCheckpoint,\n writeCloudCheckpointManifest,\n} from '@agentbox/sandbox-cloud';\nimport { readCliStamp, recordBox, type ProviderModule } from '@agentbox/sandbox-core';\nimport { e2bBackend, DEFAULT_BOX_IMAGE_REF } from './backend.js';\nimport { Sandbox, resolveApiKey } from './sdk.js';\nimport { withE2bRetry } from './retry.js';\nimport { prepareE2bProvider } from './prepare.js';\nimport { buildE2bAttach } from './build-attach.js';\nimport { currentE2bBaseFingerprintLive, currentE2bBaseFileHashes } from './prepared-state.js';\nimport { ensureE2bCredentials, setE2bCredentials } from './credentials.js';\nimport { doctorChecks, readCredStatusSummary, sizeIgnoredReason } from './provider-module.js';\n\nconst BACKEND_NAME = 'e2b';\n\nconst cloudProvider = createCloudProvider(e2bBackend, {\n // E2B applies resources at the template level (Template.build({ cpuCount,\n // memoryMB }) — `prepare` sets these). The numbers below are advisory\n // metadata for BoxRecord stats / the dashboard pane; per-create overrides\n // aren't honored by the SDK.\n defaultResources: { cpu: 2, memory: 4, disk: 8 },\n launchDockerd: true,\n});\n\n/**\n * Create a reusable, named E2B snapshot from a running sandbox.\n * `Sandbox.createSnapshot` pauses the source while capturing, then returns a\n * persistent `snapshotId` (template id form: `name:tag` or `template-id:tag`)\n * usable with `Sandbox.create({ template })` — see SDK docs.\n */\nasync function createE2bSnapshot(sandboxId: string, name: string): Promise<string> {\n const apiKey = resolveApiKey();\n return withE2bRetry(\n { method: 'createSnapshot', retryOnAmbiguous: false, attemptTimeoutMs: 900_000, backoffMs: [] },\n async () => {\n const info = await Sandbox.createSnapshot(sandboxId, { apiKey, name });\n return info.snapshotId;\n },\n );\n}\n\n/** Delete a snapshot by id. Idempotent — a missing snapshot is success. */\nasync function deleteE2bSnapshot(snapshotId: string): Promise<void> {\n const apiKey = resolveApiKey();\n await withE2bRetry({ method: 'deleteSnapshot', retryOnAmbiguous: true }, async () => {\n try {\n await Sandbox.deleteSnapshot(snapshotId, { apiKey });\n } catch (err) {\n const msg = err instanceof Error ? err.message : String(err);\n if (/not.?found|404/i.test(msg)) return; // idempotent\n throw err;\n }\n });\n}\n\n/**\n * Build a safe, unique E2B snapshot name. E2B names are global within a team\n * (`createSnapshot({ name })` reuses an existing name if it exists, growing\n * the build set). We stamp a per-create timestamp so each checkpoint gets its\n * own name → its own template id, never overwriting an earlier checkpoint.\n */\nfunction snapshotName(boxName: string, checkpointName: string): string {\n // E2B template names accept lower-case alnum + dashes/dots; coerce.\n const sanitize = (s: string): string =>\n s\n .toLowerCase()\n .replace(/[^a-z0-9.-]+/g, '-')\n .replace(/^-+|-+$/g, '');\n const ts = new Date().toISOString().replace(/[:.]/g, '-').replace('T', '_').replace('Z', '');\n return `agentbox-${sanitize(boxName)}-${sanitize(checkpointName)}-${sanitize(ts)}`;\n}\n\n/**\n * E2B-specific checkpoint capability. Unlike the scaffold's default (which\n * stores a caller-chosen snapshot *name*), we capture the SDK-returned\n * opaque snapshot id and store THAT in the manifest's `snapshotName` field —\n * the cloud create flow passes `manifest.snapshotName` straight to\n * `provision({ snapshot })`, and the E2B backend boots from it as a template\n * id. (Same id-addressed shape as Vercel's checkpoint capability.)\n */\nconst e2bCheckpoint: ProviderCheckpoint = {\n async create(box: BoxRecord, name: string) {\n if (!box.projectRoot) {\n throw new Error(\n 'cloud checkpoint requires the box to have a project root (run `agentbox checkpoint` from inside the project)',\n );\n }\n if (!box.cloud?.sandboxId) {\n throw new Error(`e2b box ${box.name} has no sandboxId — record is malformed`);\n }\n // NOTE: createSnapshot pauses the source sandbox; agentbox-ctl-checkpoint\n // resumes it lazily on the next op (Sandbox.connect auto-resumes).\n const e2bSnapName = snapshotName(box.name, name);\n const snapshotId = await createE2bSnapshot(box.cloud.sandboxId, e2bSnapName);\n // The box is now paused — persist it so the fast `agentbox list` path\n // doesn't show a stale `running` after a checkpoint. Best-effort.\n try {\n await recordBox({ ...box, cloud: { ...box.cloud, lastState: 'paused' } });\n } catch {\n // not worth failing the checkpoint over a state-record write\n }\n const info = await writeCloudCheckpointManifest(box.projectRoot, BACKEND_NAME, name, {\n snapshotName: snapshotId,\n sourceBoxId: box.id,\n sourceBoxName: box.name,\n baseProvider: BACKEND_NAME,\n baseFingerprint: currentCloudBaseFingerprint(BACKEND_NAME),\n cliVersion: readCliStamp().cliVersion,\n });\n return { ref: info.name };\n },\n async list(projectRoot: string) {\n const entries = await listCloudCheckpoints(projectRoot, BACKEND_NAME);\n return entries.map((e) => ({ ref: e.name, createdAt: e.manifest.createdAt }));\n },\n async remove(projectRoot: string, ref: string) {\n const entry = await resolveCloudCheckpoint(projectRoot, BACKEND_NAME, ref);\n if (!entry) return;\n try {\n await deleteE2bSnapshot(entry.manifest.snapshotName);\n } catch {\n // best-effort: drop the local manifest even if the remote delete failed\n // (network/perms/already-gone) so the user isn't left with a dead pointer.\n }\n await removeCloudCheckpointDir(projectRoot, BACKEND_NAME, ref);\n },\n};\n\nexport const e2bProvider: Provider = {\n ...cloudProvider,\n prepare: prepareE2bProvider,\n buildAttach: buildE2bAttach,\n checkpoint: e2bCheckpoint,\n baseFingerprint: () => currentE2bBaseFingerprintLive(),\n};\n\n/** Uniform surface the CLI provider loader resolves this package through. */\nexport const providerModule: ProviderModule = {\n provider: e2bProvider,\n backend: e2bBackend,\n ensureCredentials: ensureE2bCredentials,\n readCredStatus: readCredStatusSummary,\n setCredentials: (fields) => Promise.resolve(setE2bCredentials(fields)),\n currentBaseFingerprintLive: () => currentE2bBaseFingerprintLive(),\n currentBaseFileHashes: () => currentE2bBaseFileHashes(),\n sizeIgnoredReason,\n doctorChecks,\n};\n\nexport { e2bBackend, DEFAULT_BOX_IMAGE_REF };\n// Exported so the descriptor's declared `sizes` can be asserted against the\n// parser that actually accepts them (apps/cli/test/provider-sizes.test.ts).\nexport { parseE2bSize, DEFAULT_CPU, DEFAULT_MEMORY_MB } from './prepare.js';\nexport { ensureE2bEnvLoaded, reloadE2bEnv } from './env-loader.js';\nexport {\n ensureE2bCredentials,\n setE2bCredentials,\n readE2bCredStatus,\n secretsPath,\n maskKey,\n type EnsureE2bCredentialsOptions,\n type E2bCredStatus,\n} from './credentials.js';\nexport {\n RUNTIME_ASSETS,\n candidatesFor,\n resolveRuntimeAssets,\n findStagedCliRuntimeRoot,\n type RuntimeAsset,\n type ResolvedAsset,\n} from './runtime-assets.js';\nexport {\n prepareE2b,\n prepareE2bProvider,\n type PrepareE2bOptions,\n type PrepareE2bResult,\n} from './prepare.js';\nexport {\n currentE2bBaseFingerprintLive,\n ensureE2bBaseTemplate,\n preparedStatePath,\n readPreparedState,\n writePreparedState,\n updatePreparedState,\n type PreparedE2bState,\n type PreparedE2bBase,\n} from './prepared-state.js';\nexport { buildE2bAttach } from './build-attach.js';\n","/**\n * E2B `CloudBackend` — maps the provider-neutral cloud primitives onto the\n * `e2b` v2 SDK (Firecracker microVMs + pause/resume persistence). Composed\n * into a full `Provider` by `@agentbox/sandbox-cloud`'s `createCloudProvider`.\n *\n * Platform shape this backend is built around:\n * - Boxes boot from the prepared base template baked by `agentbox prepare\n * --provider e2b` (Template.build → custom Debian image with agentbox-ctl,\n * the vscode user, /workspace, claude/codex/opencode, tmux, Chrome).\n * `backend.provision` gates on `ensureE2bBaseTemplate()` (mirrors the\n * hetzner/vercel pattern: `prepare` itself sidesteps the gate so a cold\n * install can bootstrap). A snapshot ref (cloud checkpoint) wins over\n * the prepared base.\n * - No nested containers (Firecracker microVM); the provider sets\n * `launchDockerd: false`.\n * - Preview URLs (`{port}-{sandboxId}.{E2B_DOMAIN}`) are public HTTPS by\n * default (allowPublicTraffic=true); no header token needed. We construct\n * the URL string locally so `previewUrl` doesn't have to `Sandbox.connect`\n * (which would auto-resume a paused box).\n * - `Sandbox.getInfo` is a NON-resuming static API; `state()`/`get()` use it\n * to check existence cheaply without waking a paused sandbox. Auto-resume\n * happens only inside `Sandbox.connect` (used by ops that need a live\n * handle: exec, file ops, pause, destroy).\n * - `Sandbox.pause` is the canonical pause API (`betaPause` is deprecated).\n * - `Sandbox.createSnapshot` is the reusable-snapshot primitive; the\n * provider overrides the whole `checkpoint` capability in index.ts to\n * store the resulting snapshot id (matching vercel's id-addressed shape).\n * - No SSH — the provider overrides `buildAttach` with an SDK-streaming\n * PTY bridge (`buildE2bAttach`); the legacy `attachArgv` slot stays\n * unset.\n */\n\nimport { readFile } from 'node:fs/promises';\nimport type {\n CloudBackend,\n CloudExecOptions,\n CloudExecResult,\n CloudFileEntry,\n CloudHandle,\n CloudPreviewUrl,\n CloudProvisionRequest,\n CloudSandboxSummary,\n CloudState,\n} from '@agentbox/core';\nimport type { SandboxInfo, SandboxState } from './sdk.js';\nimport { Sandbox, Template, resolveApiKey } from './sdk.js';\nimport { withE2bRetry } from './retry.js';\nimport { parseE2bSize } from './prepare.js';\nimport {\n ensureE2bBaseTemplate,\n preparedEntryFor,\n readPreparedState,\n type PreparedE2bState,\n} from './prepared-state.js';\nimport { agentSetArg, normalizeAgentSet } from '@agentbox/sandbox-core';\n\n/**\n * Sentinel image ref the cloud-provider hands us when no --image was passed.\n * Mirrors docker's convention; the actual template id is read from the\n * prepared-state file by `provision`.\n */\nexport const DEFAULT_BOX_IMAGE_REF = 'agentbox/box:dev';\n\n/** Box user agentbox standardizes on (matches docker/vercel — created by build-template.sh). */\nconst BOX_USER = 'vscode';\nconst BOX_OWNER = 'vscode:vscode';\n\n/** Default E2B preview hostname. Override via the SDK's `E2B_DOMAIN` env. */\nconst DEFAULT_E2B_DOMAIN = 'e2b.app';\n\n/**\n * Per-box session timeout the SDK enforces at create. The host keepalive loop\n * renews it while the agent is active via `renewTimeout` (static\n * `Sandbox.setTimeout`), so a long-running session isn't cut mid-work. 45 min\n * default mirrors vercel.\n *\n * Renewal cannot outrun the PLAN CAP: per the SDK's own typings, a sandbox may\n * be kept alive at most 1 h on Hobby and 24 h on Pro. That cap is why boxes\n * were observed dying at exactly 60 min — not a missing keepalive. We survive\n * it with `lifecycle.onTimeout: 'pause'` (see `provision`) rather than trying\n * to extend past it.\n */\nconst DEFAULT_TIMEOUT_MS = 45 * 60_000;\n\n/**\n * Connect options for every `Sandbox.connect` call.\n *\n * `timeoutMs` here is the SANDBOX deadline, not a request timeout, and the SDK\n * always sends it — omitting it means `DEFAULT_SANDBOX_TIMEOUT_MS` (5 min).\n * On a running sandbox the API only ever extends, so this can't shorten a live\n * box; it exists so a box AUTO-RESUMED by one of these calls comes back with a\n * real session window instead of five minutes. Auto-resume is the common path\n * now that `provision` sets `lifecycle.autoResume`.\n */\nfunction connectOpts(apiKey: string, timeoutMs: number = DEFAULT_TIMEOUT_MS) {\n return { apiKey, timeoutMs };\n}\n\nconst E2B_WEB_PORT = 8080;\n\n/** Single-quote a string for safe embedding inside a `bash -lc '<…>'`. */\nfunction shq(s: string): string {\n return \"'\" + s.replace(/'/g, \"'\\\\''\") + \"'\";\n}\n\n/**\n * Convert a Node `Buffer` to a plain `ArrayBuffer` because E2B's `files.write`\n * `data:` field is `string | ArrayBuffer | Blob | ReadableStream` — Buffer is a\n * `Uint8Array` subclass and doesn't satisfy that union at the type level (even\n * though it works at runtime). Copy rather than slice the underlying buffer:\n * Buffers may share an underlying ArrayBuffer with a pooled allocator, so\n * `data.buffer` of a small Buffer can be a megabyte-long shared region.\n */\nfunction bufferToArrayBuffer(b: Buffer): ArrayBuffer {\n const ab = new ArrayBuffer(b.byteLength);\n new Uint8Array(ab).set(b);\n return ab;\n}\n\n/**\n * Map the SDK's nullable string state onto our 4-value `CloudState`.\n * E2B reports 'running' | 'paused' (per SDK types). Anything else (or absent)\n * → 'missing' so callers ping-pong the lifecycle into a clean state.\n */\nfunction mapState(s: SandboxState | undefined): CloudState {\n switch (s) {\n case 'running':\n return 'running';\n case 'paused':\n return 'paused';\n default:\n return 'missing';\n }\n}\n\n/** True when the error means \"sandbox doesn't exist\" (404). */\nfunction isNotFound(err: unknown): boolean {\n if (!err || typeof err !== 'object') return false;\n const name = err instanceof Error ? err.name : '';\n if (name === 'SandboxNotFoundError' || name === 'NotFoundError') return true;\n const status =\n (err as { statusCode?: unknown; status?: unknown }).statusCode ??\n (err as { status?: unknown }).status;\n return status === 404;\n}\n\n/**\n * Sanitize a box name for use as the `metadata.name` value. E2B accepts\n * arbitrary strings (probed) but we strip control chars defensively so a name\n * with embedded newlines can't break log parsing or response shapes.\n */\nfunction safeMetadataName(name: string): string {\n return name.replace(/[\\u0000-\\u001f]/g, '').slice(0, 200);\n}\n\n/**\n * Which E2B template a create boots: an explicit checkpoint snapshot, else the\n * template built for exactly this agent set, else the agentless base.\n *\n * The base fallback is load-bearing, not belt-and-braces: after a base-only\n * `prepare --provider e2b` — the documented install path — NO variant exists,\n * and without it every create would throw. Booting the base is the correct\n * degrade, because `ensureAgentsInstalledForCloud` puts the agent in at create;\n * hetzner and daytona fall back the same way.\n *\n * Exported pure so the fallback chain is testable without the SDK.\n */\nexport function resolveE2bTemplate(\n prepared: PreparedE2bState,\n req: Pick<CloudProvisionRequest, 'snapshot' | 'agents'>,\n): string | undefined {\n if (req.snapshot !== undefined) return req.snapshot;\n const variant = preparedEntryFor(prepared, agentSetArg(normalizeAgentSet(req.agents)));\n return variant?.templateId ?? prepared.base?.templateId;\n}\n\nexport const e2bBackend: CloudBackend = {\n name: 'e2b',\n\n // The cloud scaffold's WebProxy binds whatever port we expose here, and\n // `agentbox url --kind=web` resolves via `getHost(port)`. 8080 matches the\n // non-privileged convention vercel uses — `getHost` accepts any port, but\n // staying on 8080 keeps the in-box ctl flag (AGENTBOX_WEB_PROXY_PORT)\n // identical across cloud providers.\n webProxyPort: E2B_WEB_PORT,\n // See CloudBackend.stageFilesAsRoot: exec runs as the unprivileged `vscode`,\n // so the carry extract's trailing chown needs root.\n stageFilesAsRoot: true,\n\n async provision(req: CloudProvisionRequest): Promise<CloudHandle> {\n const apiKey = resolveApiKey();\n const log = req.onLog ?? (() => {});\n // Resolve the template to boot from: an explicit cloud-checkpoint snapshot\n // (req.snapshot) wins, else the prepared base template id. We don't fall\n // back to E2B's stock `base` template — every box must have the agentbox\n // runtime baked in. The gate throws an actionable \"run `agentbox prepare`\"\n // error when no template is recorded yet (mirrors the hetzner/vercel\n // pattern: `prepare` itself sidesteps the gate by calling `prepareE2b`\n // directly, never `provision`).\n if (req.snapshot === undefined) {\n ensureE2bBaseTemplate();\n }\n const template = resolveE2bTemplate(readPreparedState(), req);\n if (!template) {\n throw new Error(\n 'e2b provision: no template available — `agentbox prepare --provider e2b` must run first',\n );\n }\n\n // E2B resources are fixed at template-build time (E2B rejects per-create\n // resources). If the user asked for a size that differs from what the\n // template was baked with, warn loudly — never send it to Sandbox.create.\n if (req.size && req.size.trim().length > 0) {\n let requestedKey: string | undefined;\n try {\n const parsed = parseE2bSize(req.size);\n if (parsed) requestedKey = `${String(parsed.cpuCount)}-${String(parsed.memoryMB / 1024)}`;\n } catch {\n // A foreign/malformed box.size (e.g. a hetzner server type) isn't ours\n // to validate here — prepare surfaces that. Skip the size-drift warning.\n }\n const bakedSize = readPreparedState().base?.size;\n if (requestedKey && requestedKey !== bakedSize) {\n log(\n `e2b: WARNING — size '${requestedKey}' is ignored at create time; ` +\n `this template was baked at ${bakedSize ?? 'the default size'}. ` +\n `E2B resources are fixed at bake time — re-bake with ` +\n `\\`agentbox prepare --provider e2b --size ${requestedKey} --force\\` to change them.`,\n );\n }\n }\n\n // No-retry: Sandbox.create is billable and non-idempotent — a timeout\n // after the request reached the origin could leave a duplicate sandbox we\n // can't reference for cleanup.\n const sb = await withE2bRetry(\n { method: 'provision', retryOnAmbiguous: false, attemptTimeoutMs: 300_000, backoffMs: [] },\n async () =>\n Sandbox.create({\n apiKey,\n template,\n // Friendly name (so prune can see it) + the 'agentbox' marker so\n // `list()` can filter out sandboxes provisioned by other tooling.\n metadata: {\n agentbox: 'true',\n 'agentbox.name': safeMetadataName(req.name),\n name: safeMetadataName(req.name),\n },\n envs: req.env,\n timeoutMs: req.timeoutMs ?? DEFAULT_TIMEOUT_MS,\n // Survive the plan cap instead of being destroyed by it. The cap\n // (1 h Hobby / 24 h Pro) is not extendable, so the SDK default of\n // `onTimeout: 'kill'` loses work the keepalive is powerless to save.\n // `pause` preserves filesystem AND memory, and `autoResume` brings\n // the box back on the next inbound request with a fresh window — so\n // the hour mark becomes a brief freeze rather than a dead box.\n //\n // autoResume is also why this backend declares\n // `timeoutModel: 'inactivity'`: once any request revives a paused\n // box, the host must own the idle decision (see below).\n lifecycle: { onTimeout: 'pause', autoResume: true },\n }),\n );\n log(`e2b: created sandbox ${sb.sandboxId} (template ${template})`);\n return { sandboxId: sb.sandboxId };\n },\n\n async get(sandboxId: string): Promise<CloudHandle | null> {\n const apiKey = resolveApiKey();\n return withE2bRetry({ method: 'get', retryOnAmbiguous: true }, async () => {\n try {\n // Static, NON-resuming — won't wake a paused sandbox just to confirm\n // it exists (per orchestrator review #1: connect would auto-resume).\n await Sandbox.getInfo(sandboxId, { apiKey });\n return { sandboxId };\n } catch (err) {\n if (isNotFound(err)) return null;\n throw err;\n }\n });\n },\n\n async list(): Promise<CloudSandboxSummary[]> {\n const apiKey = resolveApiKey();\n return withE2bRetry({ method: 'list', retryOnAmbiguous: true }, async () => {\n const summaries: CloudSandboxSummary[] = [];\n // Default query returns both running and paused sandboxes. We filter\n // client-side to the ones we created (metadata.agentbox === 'true').\n for (const state of ['running', 'paused'] as const) {\n const paginator = Sandbox.list({ apiKey, query: { state: [state] } });\n while (paginator.hasNext) {\n const page = await paginator.nextItems();\n for (const info of page) {\n if (info.metadata?.['agentbox'] !== 'true') continue;\n const friendly = info.metadata?.['agentbox.name'] ?? info.metadata?.['name'];\n const summary: CloudSandboxSummary = { sandboxId: info.sandboxId, state };\n if (friendly) summary.name = friendly;\n const startedAt = info.startedAt;\n if (startedAt instanceof Date) summary.createdAt = startedAt.toISOString();\n summaries.push(summary);\n }\n }\n }\n return summaries;\n });\n },\n\n // E2B has no separate stop primitive — sandboxes are either running or\n // paused. start is therefore a connect-and-resume (auto-resume inside\n // Sandbox.connect handles a paused box transparently).\n async start(h: CloudHandle): Promise<void> {\n const apiKey = resolveApiKey();\n await withE2bRetry(\n { method: 'start', retryOnAmbiguous: true, attemptTimeoutMs: 120_000 },\n async () => {\n await Sandbox.connect(h.sandboxId, connectOpts(apiKey));\n },\n );\n },\n\n // stop ≡ pause on E2B (the pause IS the cold-storage state).\n async stop(h: CloudHandle): Promise<void> {\n await this.pause(h);\n },\n\n async pause(h: CloudHandle): Promise<void> {\n const apiKey = resolveApiKey();\n await withE2bRetry(\n { method: 'pause', retryOnAmbiguous: true, attemptTimeoutMs: 120_000 },\n async () => {\n await Sandbox.pause(h.sandboxId, { apiKey });\n },\n );\n },\n\n async resume(h: CloudHandle): Promise<void> {\n await this.start(h);\n },\n\n // E2B `setTimeout` SETS the TTL to N ms from now (absolute-from-now), so we\n // ignore the host's tracked deadline and use `target - now`. The static\n // `Sandbox.setTimeout` hits the API without `connect` (no resume of a paused\n // box). The host only calls when target > current, so this never shortens.\n async renewTimeout(h: CloudHandle, targetDeadlineEpochMs: number): Promise<void> {\n const ttlMs = Math.max(0, targetDeadlineEpochMs - Date.now());\n if (ttlMs === 0) return;\n const apiKey = resolveApiKey();\n await withE2bRetry({ method: 'renewTimeout', retryOnAmbiguous: true }, async () => {\n await Sandbox.setTimeout(h.sandboxId, ttlMs, { apiKey });\n });\n },\n\n // E2B's raw timer is absolute, but `provision` sets `lifecycle.autoResume`,\n // and once a paused box revives on ANY inbound request the relay's own\n // `CloudBoxPoller` — which long-polls every cloud box's preview URL forever —\n // becomes an infinite resurrection loop. That is exactly the condition\n // `timeoutModel: 'inactivity'` describes, so the host must own the idle\n // decision (pause the box itself once its agent has been idle a full window)\n // and stop the poller when it does. Same treatment daytona gets.\n timeoutModel: 'inactivity',\n\n async destroy(h: CloudHandle): Promise<void> {\n const apiKey = resolveApiKey();\n await withE2bRetry(\n { method: 'destroy', retryOnAmbiguous: true, attemptTimeoutMs: 120_000 },\n async () => {\n try {\n await Sandbox.kill(h.sandboxId, { apiKey });\n } catch (err) {\n if (isNotFound(err)) return; // idempotent\n throw err;\n }\n },\n );\n },\n\n async state(h: CloudHandle): Promise<CloudState> {\n const apiKey = resolveApiKey();\n return withE2bRetry({ method: 'state', retryOnAmbiguous: true }, async () => {\n try {\n const info: SandboxInfo = await Sandbox.getInfo(h.sandboxId, { apiKey });\n return mapState(info.state);\n } catch (err) {\n if (isNotFound(err)) return 'missing';\n throw err;\n }\n });\n },\n\n async exec(h: CloudHandle, cmd: string, opts?: CloudExecOptions): Promise<CloudExecResult> {\n const apiKey = resolveApiKey();\n // Default per-attempt cap is 5 min — covers the cloud scaffold's\n // workspace-seed/carry extracts (tar of thousands of files, chown -R).\n // Callers can shorten with opts.attemptTimeoutMs for snappier probes.\n const timeoutMs = opts?.attemptTimeoutMs ?? 300_000;\n return withE2bRetry(\n {\n method: 'exec',\n retryOnAmbiguous: opts?.noRetry ? false : true,\n attemptTimeoutMs: timeoutMs,\n backoffMs: opts?.noRetry ? [] : undefined,\n },\n async () => {\n // Connect for the live handle — auto-resumes a paused box, which is\n // the correct semantics for exec (caller wants the command to run).\n const sb = await Sandbox.connect(h.sandboxId, connectOpts(apiKey));\n // E2B's `commands.run` accepts only 'root' | 'user' | 'vscode'…; any\n // unix username we create in the fixup is valid. Pass through.\n const user = (opts?.user ?? BOX_USER) as 'root' | 'user';\n try {\n const r = await sb.commands.run(cmd, {\n ...(opts?.cwd !== undefined ? { cwd: opts.cwd } : {}),\n ...(opts?.env !== undefined ? { envs: opts.env } : {}),\n user,\n timeoutMs,\n });\n return { exitCode: r.exitCode, stdout: r.stdout ?? '', stderr: r.stderr ?? '' };\n } catch (err) {\n // commands.run throws on non-zero exit; the CommandResult fields\n // (exitCode/stdout/stderr) hang off the error. Map back into our\n // CloudExecResult so callers see exit=1, not a thrown exception\n // (vercel/daytona/hetzner exec contract returns the result).\n if (err instanceof Error && err.name === 'CommandExitError') {\n const ce = err as unknown as {\n exitCode: number;\n stdout: string;\n stderr: string;\n };\n return { exitCode: ce.exitCode, stdout: ce.stdout ?? '', stderr: ce.stderr ?? '' };\n }\n throw err;\n }\n },\n );\n },\n\n async uploadFile(h: CloudHandle, localPath: string, remotePath: string): Promise<void> {\n const apiKey = resolveApiKey();\n await withE2bRetry(\n { method: 'uploadFile', retryOnAmbiguous: true, attemptTimeoutMs: 300_000 },\n async () => {\n const data = await readFile(localPath);\n const sb = await Sandbox.connect(h.sandboxId, connectOpts(apiKey));\n await sb.files.write([{ path: remotePath, data: bufferToArrayBuffer(data) }]);\n // files.write writes as the default user; chown to vscode so reads\n // from the scaffold's `sudo -u vscode …` exec calls succeed. Best-\n // effort — a chown failure on a world-readable file is harmless.\n try {\n await sb.commands.run(`sudo -n chown ${BOX_OWNER} ${shq(remotePath)}`, {\n user: 'root',\n timeoutMs: 10_000,\n });\n } catch {\n // ignore — file is at least present and readable\n }\n },\n );\n },\n\n async downloadFile(h: CloudHandle, remotePath: string, localPath: string): Promise<void> {\n const apiKey = resolveApiKey();\n await withE2bRetry(\n { method: 'downloadFile', retryOnAmbiguous: true, attemptTimeoutMs: 300_000 },\n async () => {\n const sb = await Sandbox.connect(h.sandboxId, connectOpts(apiKey));\n const bytes = await sb.files.read(remotePath, { format: 'bytes' });\n const { writeFile } = await import('node:fs/promises');\n await writeFile(localPath, Buffer.from(bytes));\n },\n );\n },\n\n async listFiles(h: CloudHandle, remoteDir: string): Promise<CloudFileEntry[]> {\n const apiKey = resolveApiKey();\n return withE2bRetry({ method: 'listFiles', retryOnAmbiguous: true }, async () => {\n const sb = await Sandbox.connect(h.sandboxId, connectOpts(apiKey));\n const entries = await sb.files.list(remoteDir);\n return entries.map((e) => ({ name: e.name, isDir: e.type === 'dir' }));\n });\n },\n\n async previewUrl(h: CloudHandle, port: number): Promise<CloudPreviewUrl> {\n // E2B's `sandbox.getHost(port)` is just string interpolation of\n // `${port}-${sandboxId}.${sandboxDomain}` — calling it via Sandbox.connect\n // would auto-resume a paused box (the SDK's documented behavior). The\n // domain defaults to `e2b.app` with `E2B_DOMAIN` as the override (matches\n // the SDK's `ConnectionConfig` default), so we construct the URL locally\n // and never wake the box for a UI/dashboard URL fetch.\n const domain = process.env.E2B_DOMAIN ?? DEFAULT_E2B_DOMAIN;\n return { url: `https://${String(port)}-${h.sandboxId}.${domain}`, token: undefined };\n },\n\n // Fewer params than the interface's (h, port, expiresInSeconds) is fine —\n // E2B preview URLs are already public + browser-usable; no per-URL TTL.\n async signedPreviewUrl(h: CloudHandle, port: number): Promise<CloudPreviewUrl> {\n return this.previewUrl(h, port);\n },\n\n /**\n * Probe whether a snapshot (i.e. a template id) is still bootable. E2B's\n * snapshot ids look like `template-id:tag` or `team-slug/name:tag` — both\n * accepted by `Template.exists(name)`. Returns false on any lookup failure\n * (treated by the cloud-provider as \"gone\" so it falls back to a from-base\n * boot rather than 410ing the user).\n */\n async snapshotExists(snapshotName: string): Promise<boolean> {\n const apiKey = resolveApiKey();\n return withE2bRetry({ method: 'snapshotExists', retryOnAmbiguous: true }, async () => {\n try {\n return await Template.exists(snapshotName, { apiKey });\n } catch {\n return false;\n }\n });\n },\n};\n","/**\n * Bounded retry wrapper for E2B SDK calls — mirrors `withVercelRetry` /\n * `withHetznerRetry` in shape and intent. The E2B API rate-limits (429) and\n * can return transient 5xx during incidents; without bounded retries those\n * propagate as wedges in the calling lifecycle code.\n *\n * Non-idempotent ops (`provision`/`Sandbox.create`) pass `retryOnAmbiguous:\n * false` so a timeout after the request reached the origin doesn't create a\n * duplicate billable sandbox.\n */\n\nexport interface WithRetryOptions {\n method: string;\n /** Per-attempt timeout (ms). Default 30_000. */\n attemptTimeoutMs?: number;\n /** Backoff before attempts 2, 3, … (ms). Default [1000, 2000, 4000]. */\n backoffMs?: readonly number[];\n /**\n * Retry on errors where we can't be sure the server applied the request\n * (connection failures, per-attempt timeouts, 5xx). Set false for\n * non-idempotent operations where a retry could create a duplicate resource.\n */\n retryOnAmbiguous: boolean;\n /** Override the default stderr retry sink (used by tests). */\n onRetry?: (line: string) => void;\n}\n\nconst DEFAULT_BACKOFF: readonly number[] = [1000, 2000, 4000];\nconst DEFAULT_ATTEMPT_TIMEOUT_MS = 30_000;\n\nclass AttemptTimeoutError extends Error {\n constructor(method: string, ms: number) {\n super(`e2b ${method}: per-attempt timeout after ${String(ms)}ms`);\n this.name = 'AttemptTimeoutError';\n }\n}\n\nexport function isAttemptTimeout(err: unknown): err is AttemptTimeoutError {\n return err instanceof AttemptTimeoutError;\n}\n\n/** HTTP status code dug out of whatever error shape the SDK throws. */\nfunction statusCodeOf(err: unknown): number | undefined {\n if (!err || typeof err !== 'object') return undefined;\n for (const key of ['statusCode', 'status', 'code'] as const) {\n const v = (err as Record<string, unknown>)[key];\n if (typeof v === 'number') return v;\n }\n const resp = (err as { response?: { status?: unknown } }).response;\n if (resp && typeof resp.status === 'number') return resp.status;\n return undefined;\n}\n\nexport function isRetriable(err: unknown, allowAmbiguous: boolean): boolean {\n if (err instanceof AttemptTimeoutError) return allowAmbiguous;\n\n // The SDK exposes a dedicated `SandboxNotFoundError` and `RateLimitError`.\n // Match by error name to avoid an import cycle (sdk.ts → retry → sdk).\n const name = err instanceof Error ? err.name : undefined;\n if (name === 'RateLimitError') return true;\n if (name === 'SandboxNotFoundError') return false;\n\n const status = statusCodeOf(err);\n if (status !== undefined) {\n if (status === 429) return true;\n if (status >= 500 && status <= 599) return allowAmbiguous;\n return false;\n }\n\n // Raw fetch / undici errors. Node wraps low-level errors in `{ cause }`.\n if (err && typeof err === 'object') {\n const candidates: unknown[] = [err, (err as { cause?: unknown }).cause];\n for (const c of candidates) {\n if (!c || typeof c !== 'object') continue;\n const code = (c as { code?: unknown }).code;\n if (\n code === 'ECONNRESET' ||\n code === 'ETIMEDOUT' ||\n code === 'ECONNABORTED' ||\n code === 'EAI_AGAIN' ||\n code === 'ECONNREFUSED' ||\n code === 'ENOTFOUND' ||\n code === 'UND_ERR_SOCKET' ||\n code === 'UND_ERR_CONNECT_TIMEOUT'\n ) {\n return allowAmbiguous;\n }\n }\n }\n return false;\n}\n\nexport async function withE2bRetry<T>(opts: WithRetryOptions, fn: () => Promise<T>): Promise<T> {\n const backoff = opts.backoffMs ?? DEFAULT_BACKOFF;\n const maxAttempts = backoff.length + 1;\n const timeoutMs = opts.attemptTimeoutMs ?? DEFAULT_ATTEMPT_TIMEOUT_MS;\n const log = opts.onRetry ?? defaultRetryLog;\n\n for (let attempt = 1; attempt <= maxAttempts; attempt++) {\n try {\n return await raceTimeout(fn(), timeoutMs, opts.method);\n } catch (err) {\n const last = attempt === maxAttempts;\n if (last || !isRetriable(err, opts.retryOnAmbiguous)) throw err;\n const delay = backoff[attempt - 1] ?? backoff[backoff.length - 1] ?? 4000;\n log(\n `e2b ${opts.method}: attempt ${String(attempt)} failed (${errorSummary(err)}); retrying in ${String(delay)}ms`,\n );\n await sleep(delay);\n }\n }\n throw new Error(`withE2bRetry: exhausted attempts for ${opts.method}`);\n}\n\nfunction defaultRetryLog(line: string): void {\n process.stderr.write(`\\n[e2b-retry] ${line}\\n`);\n}\n\nfunction sleep(ms: number): Promise<void> {\n return new Promise((r) => setTimeout(r, ms));\n}\n\nasync function raceTimeout<T>(p: Promise<T>, ms: number, method: string): Promise<T> {\n let timer: ReturnType<typeof setTimeout> | undefined;\n try {\n return await Promise.race([\n p,\n new Promise<never>((_resolve, reject) => {\n timer = setTimeout(() => reject(new AttemptTimeoutError(method, ms)), ms);\n }),\n ]);\n } finally {\n if (timer !== undefined) clearTimeout(timer);\n }\n}\n\nfunction errorSummary(err: unknown): string {\n if (err instanceof Error) {\n const status = statusCodeOf(err);\n return status !== undefined\n ? `${err.name}(${String(status)}): ${truncate(err.message)}`\n : `${err.name}: ${truncate(err.message)}`;\n }\n return truncate(String(err));\n}\n\nfunction truncate(s: string, max = 160): string {\n return s.length > max ? `${s.slice(0, max)}…` : s;\n}\n","/**\n * `agentbox prepare --provider e2b` — bake the E2B base template.\n *\n * Unlike Vercel/Hetzner, E2B can build templates from a build DSL (the SDK's\n * `Template` + `Template.build`). We mirror Vercel's `prepare` shape but drive\n * the build through the SDK builder API instead of booting a sandbox + running\n * `provision.sh`:\n *\n * 1. Resolve runtime assets + fingerprint the build context. Skip-fast when\n * an up-to-date template id is already recorded.\n * 2. Stage every resolved asset under a temp `fileContextPath` directory\n * with predictable relative names (E2B's `template.copy(src, dest)`\n * requires sources to be RELATIVE paths inside the context dir).\n * 3. `Template({ fileContextPath })` → `.fromBaseImage()` (E2B's default\n * Debian 12 + node 20 + git + sudo). `.copy(rel, dest)` for each asset,\n * `.runCmd('bash /tmp/agentbox-build-template.sh', { user: 'root' })`,\n * `.setReadyCmd('test -x /usr/local/bin/agentbox-ctl')`.\n * 4. `Template.build(t, 'agentbox-base:<tag>', { cpuCount, memoryMB,\n * onBuildLogs })` streams logs into the spinner; returns the BuildInfo\n * with the template id.\n * 5. Persist `{ schema:1, base: { templateId, contextSha256, cliVersion,\n * cliCommit, createdAt } }` to ~/.agentbox/e2b-prepared.json.\n *\n * Templates on E2B are reusable named resources addressed by id+tag. Re-running\n * with the same name reuses the existing template id (E2B's documented\n * behavior). Unlike Vercel snapshots there's no per-box eviction concern; one\n * template is reused for every create.\n *\n * vCPU / RAM are template-level on E2B — set them here so per-box `create`\n * doesn't try to override them (which E2B rejects).\n */\n\nimport { copyFile, mkdir, mkdtemp, rm } from 'node:fs/promises';\nimport { tmpdir } from 'node:os';\nimport { dirname, join, resolve } from 'node:path';\nimport type { Provider } from '@agentbox/core';\nimport {\n computeContextManifest,\n readCliStamp,\n type AgentStaticStage,\n variantFingerprint,\n normalizeAgentSet,\n agentSetArg,\n resolveAgentSpec,\n resolveAgentInstall,\n renderAgentSettingEnv,\n type AgentSettingsMap,\n renderInstallRecipe,\n renderPackageInstall,\n} from '@agentbox/sandbox-core';\nimport { stageAllAgentStatic } from '@agentbox/sandbox-cloud';\nimport { ensureE2bCredentials } from './credentials.js';\nimport { resolveApiKey, Template } from './sdk.js';\nimport {\n preparedEntryFor,\n preparedStatePath,\n readPreparedState,\n writePreparedState,\n} from './prepared-state.js';\nimport {\n findStagedCliRuntimeRoot,\n resolveRuntimeAssets,\n type ResolvedAsset,\n} from './runtime-assets.js';\n\nexport interface PrepareE2bOptions {\n name?: string;\n hostWorkspace?: string;\n /** Force re-bake even when an up-to-date template id is recorded. */\n force?: boolean;\n /**\n * Bake-time `cpu-memory` GB size (e.g. `4-8`). Wins over `cpuCount`/`memoryMB`\n * when set. A third `-disk` slot is accepted with a warning (E2B has no disk\n * knob). Resolved by the CLI from `--size` / `box.sizeE2b` / `box.size`.\n */\n size?: string;\n /** vCPUs for the baked template (default 2). E2B applies this per-sandbox at boot. */\n cpuCount?: number;\n /** Memory in MiB for the baked template (default 4096). */\n memoryMB?: number;\n /** CLI runtime tree (set by the CLI to its dist neighbor). */\n cliRuntimeRoot?: string;\n /** Repo root for the dev fallback (defaults to a cwd-walk). */\n repoRoot?: string;\n /**\n * Every agent's declared settings (`AgentSyncSpec.settings`), keyed by agent\n * id. Selects an alternate install recipe where the agent declared one, and\n * is exported into its install shell as `AGENTBOX_AGENT_SETTING_*`.\n */\n agentSettings?: AgentSettingsMap;\n onLog?: (line: string) => void;\n /**\n * Agents to build into a DERIVED template on top of the agentless base.\n * Empty/absent bakes the base itself. Not just another env var into the build\n * script: the set picks which template we build, which record we write, and\n * which template a later create boots from.\n */\n agents?: string[];\n}\n\nexport interface PrepareE2bResult {\n snapshotName?: string;\n}\n\n/** Template name agentbox bakes under. E2B treats `name:tag` as a single addressable build. */\nconst TEMPLATE_NAME = 'agentbox-base:latest';\nconst DEFAULT_TAG = 'latest';\n\n/**\n * Template name for one agent set. E2B names allow `[a-zA-Z0-9-_]`, so a\n * multi-agent set joins with `-` rather than the `,` the variant key uses.\n */\nfunction templateNameFor(variantKey: string): string {\n if (variantKey === '') return TEMPLATE_NAME;\n return `agentbox-${variantKey.replaceAll(',', '-')}:${DEFAULT_TAG}`;\n}\n\nexport const DEFAULT_CPU = 2;\nexport const DEFAULT_MEMORY_MB = 4096;\n\n/**\n * Parse a `cpu-memory` GB size spec (e.g. `4-8`) into E2B's\n * `{ cpuCount, memoryMB }`. A third `-disk` slot is accepted but ignored with a\n * warning (E2B's `Template.build` has no disk knob). Returns `undefined` for an\n * empty/unset spec (caller keeps its defaults); throws on a malformed spec so\n * `prepare` surfaces it rather than silently baking the default size.\n *\n * Exported for unit tests.\n */\nexport function parseE2bSize(\n spec: string | undefined,\n warn?: (msg: string) => void,\n): { cpuCount: number; memoryMB: number } | undefined {\n const trimmed = (spec ?? '').trim();\n if (trimmed === '') return undefined;\n const parts = trimmed.split('-');\n const bad = (): never => {\n throw new Error(`invalid --size '${trimmed}' for e2b: expected 'cpu-memory' GB, e.g. '4-8'.`);\n };\n if (parts.length < 2 || parts.length > 3) bad();\n const nums = parts.map((p) => Number(p));\n // Every present slot must be a positive integer (rejects '4-8-', 'a-b', '0-8').\n if (nums.some((n) => !Number.isInteger(n) || n <= 0)) bad();\n if (parts.length === 3) {\n warn?.(\n `e2b: ignoring the disk slot in size '${trimmed}' — E2B templates have no disk knob; ` +\n `only cpu-memory (${String(nums[0])}-${String(nums[1])}) is applied.`,\n );\n }\n return { cpuCount: nums[0]!, memoryMB: nums[1]! * 1024 };\n}\n\n/** Normalize a parsed E2B size back to a canonical `cpu-memGB` key for the prepared state. */\nfunction e2bSizeKey(parsed: { cpuCount: number; memoryMB: number }): string {\n return `${String(parsed.cpuCount)}-${String(parsed.memoryMB / 1024)}`;\n}\n\n/** Wrap a shell snippet in single quotes for safe nesting inside `bash -lc`. */\nfunction shellSingleQuote(s: string): string {\n return `'${s.replaceAll(\"'\", `'\\\\''`)}'`;\n}\n\nexport async function prepareE2b(opts: PrepareE2bOptions = {}): Promise<PrepareE2bResult> {\n await ensureE2bCredentials();\n const apiKey = resolveApiKey();\n const log = opts.onLog ?? (() => {});\n const progress = (s: string) => log(`prepare-e2b: ${s}`);\n\n const assets = resolveRuntimeAssets({\n cliRuntimeRoot: opts.cliRuntimeRoot ?? findStagedCliRuntimeRoot(),\n repoRoot: opts.repoRoot,\n });\n const agentSettings = opts.agentSettings ?? {};\n // Keep the per-file digests, not just the fold: a later `stale` verdict can\n // then name the files that changed instead of only reporting a moved hash.\n const contextManifest = await computeContextManifest(\n assets.map((a) => ({ rel: a.name, abs: a.localPath })),\n );\n const agents = normalizeAgentSet(opts.agents);\n const variantKey = agentSetArg(agents);\n const derived = agents.length > 0;\n const templateName = templateNameFor(variantKey);\n const contextSha = variantFingerprint(contextManifest.contextSha256, { agentSettings, agents });\n\n // Bake-time size. A `--size` / `box.sizeE2b` like `4-8` overrides the default\n // cpu/memory (E2B rejects per-create resources, so it MUST be baked). The\n // normalized `cpu-memGB` key gates skip-fast so a re-sized bake rebuilds.\n const parsedSize = parseE2bSize(opts.size, (m) => log(m));\n const sizeKey = parsedSize ? e2bSizeKey(parsedSize) : undefined;\n\n // Skip-fast: existing template + matching fingerprint.\n //\n // Probe the persisted templateId itself, not TEMPLATE_NAME. If someone\n // (or another bake) rebuilt the alias under a different id, the name still\n // resolves but the stored id is stale and `Sandbox.create({ template: <stale id> })`\n // 404s. `Template.exists` accepts both `name:tag` and `template-id:tag`\n // forms, so we pass the exact id we'd later hand to `provision`.\n const existing = readPreparedState();\n\n // A derived build starts FROM the agentless base, so that has to exist first.\n const baseEntry = preparedEntryFor(existing, '');\n if (derived && !baseEntry) {\n throw new Error(\n 'no E2B base template to derive from — run `agentbox prepare --provider e2b` first, ' +\n 'then re-run with --agents.',\n );\n }\n\n const existingEntry = preparedEntryFor(existing, variantKey);\n if (!opts.force && existingEntry) {\n const bakedSize = existingEntry.size;\n const label = derived ? `${variantKey} template` : 'template';\n if (existingEntry.contextSha256 === contextSha && bakedSize === sizeKey) {\n const stillThere = await templateExists(existingEntry.templateId, apiKey);\n if (stillThere) {\n progress(\n `${label} ${existingEntry.templateId} already exists (fingerprint ${contextSha.slice(0, 12)} matches); skipping (pass --force to rebuild)`,\n );\n return { snapshotName: existingEntry.templateId };\n }\n progress(`recorded ${label} ${existingEntry.templateId} is gone on E2B; rebuilding`);\n } else if (existingEntry.contextSha256 === contextSha && bakedSize !== sizeKey) {\n progress(\n `size changed (was ${bakedSize ?? 'default'}, now ${sizeKey ?? 'default'}); rebuilding`,\n );\n } else {\n progress(\n `build context changed (was ${existingEntry.contextSha256?.slice(0, 12) ?? '<none>'}, now ${contextSha.slice(0, 12)}); rebuilding ${label}`,\n );\n }\n }\n\n // E2B's `template.copy(src, dest)` requires `src` to be a RELATIVE path\n // inside the Template's `fileContextPath`. Stage every resolved asset into\n // a temp dir under its logical name (asset.name) so the copy chain reads\n // from a single context root.\n const contextDir = await mkdtemp(join(tmpdir(), 'agentbox-e2b-build-'));\n let agentStages: AgentStaticStage[] = [];\n try {\n progress(`staging build context at ${contextDir}`);\n await stageAssetsInto(contextDir, assets);\n\n // Stage the host's per-tool static config (shared sync-layer producer) and\n // copy each tarball into the build context (E2B copy sources must be\n // relative to fileContextPath).\n agentStages = await stageAllAgentStatic({\n hostWorkspace: opts.hostWorkspace,\n agents: agents.length === 0 ? undefined : agents,\n });\n for (const s of agentStages) for (const w of s.staged.warnings) log(w);\n const usableStages = agentStages.filter((s) => s.staged.tarballPath !== null);\n for (const s of usableStages) {\n await copyFile(\n s.staged.tarballPath as string,\n resolve(contextDir, e2bStagePaths(s.kind).contextRel),\n );\n }\n\n // Build the Template via the SDK builder. fromBaseImage() starts from E2B's\n // own `e2bdev/base` (Debian 12 + node 20 + git + sudo), which halves the\n // install time vs starting from a vanilla Debian image.\n // A derived build starts FROM the recorded agentless base template and adds\n // only the agent recipe — E2B is the one provider where deriving needs no\n // boot at all, so a variant costs a build, not a VPS-minute.\n //\n // The base build stays as it was: fromBaseImage() starts from E2B's own\n // `e2bdev/base` (Debian 12 + node 20 + git + sudo), which halves the install\n // time vs a vanilla Debian image.\n progress(\n derived\n ? `assembling derived template build (fromTemplate ${baseEntry!.templateId} + ${variantKey})`\n : 'assembling template build (fromBaseImage + asset copy + runCmd)',\n );\n const template = derived\n ? Template({ fileContextPath: contextDir }).fromTemplate(baseEntry!.templateId)\n : Template({ fileContextPath: contextDir }).fromBaseImage();\n\n if (derived) {\n // Same AGENT_SYNC_SPECS recipes the docker derived layer, the hetzner\n // derived snapshot and `ensureAgentInstalled` use, so however an agent\n // reaches a box it is installed identically.\n for (const id of agents) {\n const spec = resolveAgentSpec(id);\n const install = resolveAgentInstall(spec.install, agentSettings[spec.id]);\n progress(` install ${spec.id}`);\n if (install.packages && install.packages.length > 0) {\n template.runCmd(renderPackageInstall(install.packages), { user: 'root' });\n }\n const settingEnv = renderAgentSettingEnv(agentSettings[spec.id]);\n const recipe = settingEnv + renderInstallRecipe(install.recipe);\n // `runAs: 'box-user'` is load-bearing: the native installers write into\n // the INVOKING user's ~/.local/bin, so as root the binary lands in\n // /root and the box user never sees it. E2B's runCmd takes a `user`,\n // but we go through `sudo -u vscode -H bash -lc` for the same reason\n // hetzner does — a login shell, and one form across providers.\n template.runCmd(\n install.runAs === 'box-user'\n ? `sudo -u vscode -H bash -lc ${shellSingleQuote(recipe)}`\n : recipe,\n { user: 'root' },\n );\n if (install.postInstall)\n template.runCmd(settingEnv + install.postInstall, { user: 'root' });\n }\n } else {\n for (const a of assets) {\n progress(` copy ${a.name} -> ${a.remotePath}`);\n template.copy(a.name, a.remotePath, {\n forceUpload: true,\n mode: a.remoteMode,\n user: 'root',\n });\n }\n template.runCmd('bash /tmp/agentbox-build-template.sh 2>&1', { user: 'root' });\n }\n\n // Seed the host's static agent config ON TOP of the built box (the vscode\n // user + home dirs exist only after build-template.sh). Copy each staged\n // tarball into the build, then one root pass extracts + chowns them —\n // mirrors Vercel/Hetzner/Daytona's host-static bake.\n // On a derived build, stage only THIS variant's agent config: putting\n // codex/opencode settings into a claude-only template would ship config for\n // agents that template will never run. `agents` (shared skills, not auth) is\n // always staged. The agentless base still carries all three, so an agent\n // installed at runtime still finds its plugins and settings.\n const wantsStage = (kind: AgentStaticStage['kind']): boolean =>\n !derived || kind === 'agents' || agents.includes(kind);\n const stagesForBuild = usableStages.filter((s) => wantsStage(s.kind));\n for (const s of stagesForBuild) {\n const { contextRel, remoteTar } = e2bStagePaths(s.kind);\n progress(` seed ${s.kind} static -> ${s.extractDir}`);\n template.copy(contextRel, remoteTar, { forceUpload: true, mode: 0o644, user: 'root' });\n }\n if (stagesForBuild.length > 0) {\n const extract =\n stagesForBuild\n .map(\n (s) =>\n `mkdir -p ${s.extractDir} && tar -xzf ${e2bStagePaths(s.kind).remoteTar} -C ${s.extractDir} --no-same-permissions --no-same-owner -m`,\n )\n .join(' && ') +\n // Guard each chown: with an agentless base and per-variant staging,\n // any of these dirs can legitimately be absent (the agent that owns it\n // was never installed here), and an unguarded chown fails the build.\n ' && for d in /home/vscode/.claude /home/vscode/.codex /home/vscode/.local /home/vscode/.agents;' +\n ' do [ -e \"$d\" ] && chown -R vscode:vscode \"$d\"; done' +\n ' ; rm -f /tmp/agentbox-seed-*.tar.gz';\n template.runCmd(extract, { user: 'root' });\n }\n // setReadyCmd flips the builder into TemplateFinal — required for build().\n // The base checks the ctl bundle the script's last `install` step lands; a\n // variant additionally proves its agent is on the BOX USER's PATH, which is\n // the thing that actually breaks (a native installer that writes to /root\n // exits 0 and leaves the box unusable).\n const readyCmd = derived\n ? agents\n .map(\n (id) =>\n `sudo -u vscode -H bash -lc 'command -v ${resolveAgentSpec(id).binary} >/dev/null'`,\n )\n .concat('test -x /usr/local/bin/agentbox-ctl')\n .join(' && ')\n : 'test -x /usr/local/bin/agentbox-ctl';\n const finalTemplate = template.setReadyCmd(readyCmd);\n\n // Parsed `--size` wins over the explicit cpuCount/memoryMB options, which\n // win over the built-in defaults.\n const cpuCount = parsedSize?.cpuCount ?? opts.cpuCount ?? DEFAULT_CPU;\n const memoryMB = parsedSize?.memoryMB ?? opts.memoryMB ?? DEFAULT_MEMORY_MB;\n progress(\n `running Template.build('${templateName}', { cpuCount: ${String(cpuCount)}, memoryMB: ${String(memoryMB)} })`,\n );\n const info = await Template.build(finalTemplate, templateName, {\n apiKey,\n cpuCount,\n memoryMB,\n onBuildLogs: (entry: LogEntryLike) => {\n // LogEntry exposes timestamp / level / message; stream the human form.\n log(`[build] ${formatBuildLog(entry)}`);\n },\n });\n progress(`template built: id=${info.templateId} build=${info.buildId} name=${info.name}`);\n\n // Persist. `Sandbox.create({ template })` auto-appends `:default` when no\n // tag is given (and 404s if that tag wasn't built), so we MUST store the\n // tagged form. `info.templateId` is just the raw id with no tag; use the\n // first tag we built with (`latest`) or fall back to `info.tags[0]`.\n const tag = info.tags?.[0] ?? DEFAULT_TAG;\n const cliStamp = readCliStamp();\n const taggedId = `${info.templateId}:${tag}`;\n const entry = {\n templateId: taggedId,\n // info.name is the full `name:tag` pair Template.build() was called\n // with (e.g. `agentbox-base:latest`). Earlier code re-appended `:${tag}`\n // and produced `agentbox-base:latest:latest` in the status display.\n templateName: info.name,\n contextSha256: contextSha,\n files: contextManifest.files,\n ...(sizeKey ? { size: sizeKey } : {}),\n cliVersion: cliStamp.cliVersion,\n cliCommit: cliStamp.cliCommit,\n createdAt: new Date().toISOString(),\n };\n const prior = readPreparedState();\n writePreparedState({\n schema: 2,\n // Merge, never replace: each variant keeps its own record, so building\n // the codex template doesn't invalidate the claude one.\n variants: { ...prior.variants, [variantKey]: entry },\n // `base` stays the AGENTLESS base, never the newest build — the\n // provider-generic readers (freshness, bake sharing, custody adoption)\n // reach straight for `base.contextSha256` and assume it describes the\n // agentless build context.\n ...(derived ? (prior.base ? { base: prior.base } : {}) : { base: entry }),\n });\n progress(`wrote ${preparedStatePath()}`);\n\n // No GC here, unlike hetzner. E2B templates are NAMED resources: rebuilding\n // `agentbox-claude:latest` moves the tag, so a rebuild replaces rather than\n // orphans, and the SDK exposes no template delete to reap an id with.\n progress(\n `prepare complete — ${derived ? `${variantKey} template` : 'base template'} ${taggedId}`,\n );\n return { snapshotName: taggedId };\n } finally {\n await Promise.all(agentStages.map((s) => s.staged.cleanup())).catch(() => {\n // best-effort: staged-tarball cleanup failures are noise.\n });\n await rm(contextDir, { recursive: true, force: true }).catch(() => {\n // best-effort: temp dir cleanup failures are noise, not errors.\n });\n }\n}\n\n/**\n * Copy every asset into `contextDir` under its logical `name`. Preserves the\n * source mode on the copy (E2B's `template.copy` also accepts a `mode`\n * override, but the on-disk mode keeps the local stage representative).\n */\nasync function stageAssetsInto(contextDir: string, assets: ResolvedAsset[]): Promise<void> {\n for (const a of assets) {\n const dest = resolve(contextDir, a.name);\n await mkdir(dirname(dest), { recursive: true });\n await copyFile(a.localPath, dest);\n }\n}\n\n/** E2B build paths for a staged tool (derived from its kind). E2B copy sources\n * must be RELATIVE to the Template `fileContextPath`, so the tarball is staged\n * into the context dir under `contextRel` then copied to `remoteTar`. */\nfunction e2bStagePaths(kind: AgentStaticStage['kind']): { contextRel: string; remoteTar: string } {\n return {\n contextRel: `agentbox-seed-${kind}.tar.gz`,\n remoteTar: `/tmp/agentbox-seed-${kind}.tar.gz`,\n };\n}\n\n/**\n * Check if a named template is bootable on E2B. Returns true on a 'ready'\n * build, false on anything else (deleted, errored, never built). Used by the\n * skip-fast path to detect a template that was deleted out-of-band.\n */\nasync function templateExists(name: string, apiKey: string): Promise<boolean> {\n try {\n return await Template.exists(name, { apiKey });\n } catch {\n return false;\n }\n}\n\n/**\n * E2B's `LogEntry` shape (timestamp, level, message). We treat the SDK's\n * type loosely here so the line-stream doesn't bind us to internal class\n * shapes — only the `.toString()` plus `.message` are documented.\n */\ninterface LogEntryLike {\n message?: string;\n level?: string;\n timestamp?: Date;\n toString(): string;\n}\n\nfunction formatBuildLog(entry: LogEntryLike): string {\n // The SDK's LogEntry.toString() emits a `[level] timestamp message` form.\n // For the spinner we only want the message — and clip overly long lines.\n const raw = typeof entry.message === 'string' ? entry.message : entry.toString();\n const cleaned = raw.replace(/\\r?\\n+$/, '');\n return cleaned.length > 200 ? cleaned.slice(0, 200) + '…' : cleaned;\n}\n\n/** Provider-level binding used by the CLI's `prepare` command. */\nexport const prepareE2bProvider: NonNullable<Provider['prepare']> = (req) =>\n prepareE2b({\n name: req.name,\n hostWorkspace: req.hostWorkspace ?? process.cwd(),\n force: req.force,\n size: req.size,\n ...(req.agentSettings ? { agentSettings: req.agentSettings } : {}),\n ...(req.agents ? { agents: req.agents } : {}),\n onLog: req.onLog,\n });\n","/**\n * `buildE2bAttach` — the E2B provider's override of `Provider.buildAttach`.\n *\n * E2B has no SSH and no public PTY CLI like Vercel's `sbx exec -i`. We ship\n * our own attach helper (`attach-helper.cjs`) that connects to the sandbox via\n * the SDK and bridges the host PTY to an in-box `sandbox.pty.create()`.\n *\n * Argv shape:\n * node <attach-helper.cjs> --sandbox-id <id> --user vscode\n *\n * The inner bash command (`renderInnerCommand` output: tmux ensure + attach)\n * is passed through the environment as `AGENTBOX_E2B_INNER_CMD` so quoting\n * stays sane and it doesn't leak through `ps`. `E2B_API_KEY` is passed through\n * the env for the same reason. `node-pty` (the host PTY wrapper) is what\n * spawns this argv, so stdin/stdout/SIGWINCH all reach the helper unchanged.\n */\n\nimport { existsSync } from 'node:fs';\nimport { dirname, resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport {\n type AttachKind,\n type AttachSpec,\n type BoxRecord,\n type BuildAttachOptions,\n} from '@agentbox/core';\nimport { hostTermForCloud, renderInnerCommand } from '@agentbox/sandbox-cloud';\nimport { resolveApiKey } from './sdk.js';\n\nconst SELF = dirname(fileURLToPath(import.meta.url));\n\n/**\n * Resolve the absolute path to `attach-helper.cjs`. In the published CLI it\n * lives at `runtime/e2b/attach-helper.cjs` (next to the staged provider\n * runtime tree); in dev it lives next to the package's `dist/`.\n */\nexport function resolveAttachHelperPath(): string {\n const candidates = [\n // dev: dist/index.js sibling\n resolve(SELF, 'attach-helper.cjs'),\n // dev: src compiled to dist/, while index.ts is in src/\n resolve(SELF, '..', 'dist', 'attach-helper.cjs'),\n // staged CLI: apps/cli/runtime/e2b/attach-helper.cjs\n resolve(SELF, '..', 'runtime', 'e2b', 'attach-helper.cjs'),\n resolve(SELF, '..', '..', 'runtime', 'e2b', 'attach-helper.cjs'),\n ];\n for (const p of candidates) {\n if (existsSync(p)) return p;\n }\n // Last-resort: still return the first candidate so the error message points\n // somewhere informative.\n return candidates[0]!;\n}\n\nexport async function buildE2bAttach(\n box: BoxRecord,\n kind: AttachKind,\n opts?: BuildAttachOptions,\n): Promise<AttachSpec> {\n const sandboxId = box.cloud?.sandboxId;\n if (!sandboxId) {\n throw new Error(`e2b box ${box.name} has no sandboxId — record is malformed`);\n }\n\n const helper = resolveAttachHelperPath();\n if (!existsSync(helper)) {\n throw new Error(\n `e2b attach helper not found at ${helper} — rebuild the CLI (\\`pnpm -w build\\`) ` +\n 'so packages/sandbox-e2b/dist/attach-helper.cjs is generated.',\n );\n }\n\n const apiKey = resolveApiKey();\n const inner = renderInnerCommand(kind, opts);\n // Forward the host's TERM (the helper has no host env once node-pty spawns\n // it, so pass it explicitly). The helper sets it on the in-box PTY; the\n // renderInnerCommand TERM guard downgrades to xterm-256color when the box's\n // terminfo doesn't carry it (e.g. xterm-ghostty), matching the docker path.\n const hostTerm = hostTermForCloud();\n\n const argv = [\n process.execPath,\n helper,\n '--sandbox-id',\n sandboxId,\n '--user',\n 'vscode',\n ];\n // Detached pre-start (new-tab attach / `-i` queue worker): the inner command\n // only creates the tmux session (no `exec tmux attach`). The helper must run\n // it once and EXIT rather than open a persistent interactive PTY that idles\n // forever — otherwise the host's `runDetached` await never resolves and\n // `agentbox <agent>` hangs after \"box ready\". See attach-helper.ts header.\n if (opts?.detached) argv.push('--detached');\n\n return {\n argv,\n env: {\n E2B_API_KEY: apiKey,\n AGENTBOX_E2B_INNER_CMD: inner,\n AGENTBOX_HOST_TERM: hostTerm,\n },\n };\n}\n","/**\n * Doctor probes + normalized credential status for the e2b provider,\n * assembled into `providerModule` in `index.ts`. Moved out of apps/cli so the\n * CLI dispatches to it generically (see `@agentbox/sandbox-core`'s `ProviderModule`).\n */\n\nimport { errSummary, type CheckResult, type CredStatusSummary } from '@agentbox/sandbox-core';\nimport { readE2bCredStatus } from './credentials.js';\nimport { parseE2bSize } from './prepare.js';\nimport { readPreparedState } from './prepared-state.js';\n\nexport function readCredStatusSummary(): CredStatusSummary {\n const cred = readE2bCredStatus();\n return { configured: cred.auth !== 'none', label: cred.auth };\n}\n\nexport async function doctorChecks(): Promise<CheckResult[]> {\n try {\n const cred = readE2bCredStatus();\n const credRes: CheckResult =\n cred.auth === 'none'\n ? {\n label: 'credentials',\n status: 'warn',\n detail: 'not configured',\n hint: '`agentbox e2b login`',\n }\n : { label: 'credentials', status: 'ok', detail: `${cred.auth} (${cred.source})` };\n\n const prepared = readPreparedState();\n const tmplRes: CheckResult = prepared.base?.templateId\n ? {\n label: 'base template',\n status: 'ok',\n detail: `${prepared.base.templateName ?? prepared.base.templateId} (${prepared.base.cliVersion ?? '—'})`,\n }\n : {\n label: 'base template',\n status: 'warn',\n detail: 'not baked',\n hint: '`agentbox prepare --provider e2b`',\n };\n return [credRes, tmplRes];\n } catch (err) {\n return [{ label: 'credentials', status: 'warn', detail: errSummary(err) }];\n }\n}\n\n/**\n * E2B fixes resources at TEMPLATE-build time and rejects per-create resources,\n * so any size that disagrees with the bake is discarded. Same comparison the\n * backend makes at provision — kept in step so the two can't drift.\n */\nexport function sizeIgnoredReason(size: string): string | null {\n let requested: string | undefined;\n try {\n const parsed = parseE2bSize(size);\n if (parsed) requested = `${String(parsed.cpuCount)}-${String(parsed.memoryMB / 1024)}`;\n } catch {\n // parseE2bSize THROWS on a malformed spec (unlike daytona's, which returns\n // undefined). A foreign value in the generic `box.size` isn't ours to\n // validate here — `prepare` surfaces it. Stay quiet.\n return null;\n }\n if (!requested) return null;\n const prepared = readPreparedState();\n // Nothing baked yet: `prepare` will build the template AT this size, so there\n // is no mismatch to report (same reasoning as daytona's).\n if (!prepared.base) return null;\n const baked = prepared.base.size;\n if (requested === baked) return null;\n return (\n `e2b: size '${requested}' is ignored at create time; this template was baked at ` +\n `${baked ?? 'the default size'}. E2B resources are fixed at bake time — re-bake with ` +\n `\\`agentbox prepare --provider e2b --size ${requested} --force\\` to change them.`\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACgCA,SAAS,gBAAgB;AEAzB,SAAS,UAAU,OAAO,SAAS,UAAU;AAC7C,SAAS,cAAc;AACvB,SAAS,SAAS,MAAM,eAAe;ACjBvC,SAAS,kBAAkB;AAC3B,SAAS,WAAAA,UAAS,WAAAC,gBAAe;AACjC,SAAS,qBAAqB;AFQ9B,IAAM,kBAAqC,CAAC,KAAM,KAAM,GAAI;AAC5D,IAAM,6BAA6B;AAEnC,IAAM,sBAAN,cAAkC,MAAM;EACtC,YAAY,QAAgB,IAAY;AACtC,UAAM,OAAO,MAAM,+BAA+B,OAAO,EAAE,CAAC,IAAI;AAChE,SAAK,OAAO;EACd;AACF;AAOA,SAAS,aAAa,KAAkC;AACtD,MAAI,CAAC,OAAO,OAAO,QAAQ,SAAU,QAAO;AAC5C,aAAW,OAAO,CAAC,cAAc,UAAU,MAAM,GAAY;AAC3D,UAAM,IAAK,IAAgC,GAAG;AAC9C,QAAI,OAAO,MAAM,SAAU,QAAO;EACpC;AACA,QAAM,OAAQ,IAA4C;AAC1D,MAAI,QAAQ,OAAO,KAAK,WAAW,SAAU,QAAO,KAAK;AACzD,SAAO;AACT;AAEO,SAAS,YAAY,KAAc,gBAAkC;AAC1E,MAAI,eAAe,oBAAqB,QAAO;AAI/C,QAAM,OAAO,eAAe,QAAQ,IAAI,OAAO;AAC/C,MAAI,SAAS,iBAAkB,QAAO;AACtC,MAAI,SAAS,uBAAwB,QAAO;AAE5C,QAAM,SAAS,aAAa,GAAG;AAC/B,MAAI,WAAW,QAAW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QAAI;AACF,YAAM,UAAU,EAAE,GAAG,KAAK,OAAO,EAAE,GAAG,IAAI,OAAO,WAAW,SAAS,EAAE,CAAC;IAC1E,QAAQ;IAER;AACA,UAAM,OAAO,MAAM,6BAA6B,IAAI,aAAa,cAAc,MAAM;MACnF,cAAc;MACd,aAAa,IAAI;MACjB,eAAe,IAAI;MACnB,cAAc;MACd,iBAAiB,4BAA4B,YAAY;MACzD,YAAYC,aAAa,EAAE;IAC7B,CAAC;AACD,WAAO,EAAE,KAAK,KAAK,KAAK;EAC1B;EACA,MAAM,KAAK,aAAqB;AAC9B,UAAM,UAAU,MAAM,qBAAqB,aAAa,YAAY;AACpE,WAAO,QAAQ,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,EAAE,SAAS,UAAU,EAAE;EAC9E;EACA,MAAM,OAAO,aAAqB,KAAa;AAC7C,UAAM,QAAQ,MAAM,uBAAuB,aAAa,cAAc,GAAG;AACzE,QAAI,CAAC,MAAO;AACZ,QAAI;AACF,YAAM,kBAAkB,MAAM,SAAS,YAAY;IACrD,QAAQ;IAGR;AACA,UAAM,yBAAyB,aAAa,cAAc,GAAG;EAC/D;AACF;AAEO,IAAM,cAAwB;EACnC,GAAG;EACH,SAAS;EACT,aAAa;EACb,YAAY;EACZ,iBAAiB,MAAM,8BAA8B;AACvD;AAGO,IAAM,iBAAiC;EAC5C,UAAU;EACV,SAAS;EACT,mBAAmB;EACnB,gBAAgB;EAChB,gBAAgB,CAAC,WAAW,QAAQ,QAAQ,kBAAkB,MAAM,CAAC;EACrE,4BAA4B,MAAM,8BAA8B;EAChE,uBAAuB,MAAM,yBAAyB;EACtD;EACA;AACF;","names":["dirname","resolve","entry","agentSetArg","normalizeAgentSet","snapshotName","dirname","resolve","readCliStamp"]}
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- describeRemoteHubBuild,
4
- hubCommand,
5
- resolveHubTarget
6
- } from "./chunk-U3BCLGTH.js";
7
- import "./chunk-UFOUBCPW.js";
8
- import "./chunk-4IQGL4KD.js";
9
- import "./chunk-UPQOX272.js";
10
- import "./chunk-OYWP4SII.js";
11
- import "./chunk-CWN4DJYI.js";
12
- import "./chunk-KOGQNHV3.js";
13
- import "./chunk-XKUF67M6.js";
14
- import "./chunk-KWDFEQO6.js";
15
- import "./chunk-3HJQZQ76.js";
16
- import "./chunk-AGHR7XOJ.js";
17
- import "./chunk-ZPFTFIKP.js";
18
- import "./chunk-QNYGNHM2.js";
19
- import "./chunk-SDWKZLGP.js";
20
- import "./chunk-WJ4MZESJ.js";
21
- import "./chunk-U4Z5OOOD.js";
22
- import "./chunk-OVLM2EZV.js";
23
- import "./chunk-HS6B3CE4.js";
24
- import "./chunk-S77B5POZ.js";
25
- import "./chunk-QESXSSO6.js";
26
- import "./chunk-6V366IZC.js";
27
- import "./chunk-MNDKP4VS.js";
28
- import "./chunk-7TPGIQOP.js";
29
- import "./chunk-AXAMPAP3.js";
30
- import "./chunk-L55DASHB.js";
31
- import "./chunk-JUTAYI2N.js";
32
- import "./chunk-U7J7JT6R.js";
33
- import "./chunk-FM7PHYBD.js";
34
- import "./chunk-YZZKWZO2.js";
35
- export {
36
- describeRemoteHubBuild,
37
- hubCommand,
38
- resolveHubTarget
39
- };
40
- //# sourceMappingURL=hub-GHFEW3K2.js.map
@@ -1,48 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- fetchControlBoxInventory,
4
- prepareCommand,
5
- renderControlBoxProviders,
6
- resolvePrepareTargetKind,
7
- runPrepare
8
- } from "./chunk-7AMMBUEW.js";
9
- import "./chunk-52OXHGKQ.js";
10
- import "./chunk-Z6LK4P54.js";
11
- import "./chunk-J2AD7MLR.js";
12
- import "./chunk-OWCTDO67.js";
13
- import "./chunk-PENAXZMR.js";
14
- import "./chunk-UFOUBCPW.js";
15
- import "./chunk-4IQGL4KD.js";
16
- import "./chunk-UPQOX272.js";
17
- import "./chunk-OYWP4SII.js";
18
- import "./chunk-CWN4DJYI.js";
19
- import "./chunk-XKUF67M6.js";
20
- import "./chunk-KWDFEQO6.js";
21
- import "./chunk-3HJQZQ76.js";
22
- import "./chunk-IJFP7N34.js";
23
- import "./chunk-AGHR7XOJ.js";
24
- import "./chunk-ZPFTFIKP.js";
25
- import "./chunk-QNYGNHM2.js";
26
- import "./chunk-WJ4MZESJ.js";
27
- import "./chunk-U4Z5OOOD.js";
28
- import "./chunk-OVLM2EZV.js";
29
- import "./chunk-HS6B3CE4.js";
30
- import "./chunk-S77B5POZ.js";
31
- import "./chunk-QESXSSO6.js";
32
- import "./chunk-6V366IZC.js";
33
- import "./chunk-MNDKP4VS.js";
34
- import "./chunk-7TPGIQOP.js";
35
- import "./chunk-AXAMPAP3.js";
36
- import "./chunk-L55DASHB.js";
37
- import "./chunk-JUTAYI2N.js";
38
- import "./chunk-U7J7JT6R.js";
39
- import "./chunk-FM7PHYBD.js";
40
- import "./chunk-YZZKWZO2.js";
41
- export {
42
- fetchControlBoxInventory,
43
- prepareCommand,
44
- renderControlBoxProviders,
45
- resolvePrepareTargetKind,
46
- runPrepare
47
- };
48
- //# sourceMappingURL=prepare-O4BUJIOQ.js.map
@@ -1,40 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- adoptPreparedBases,
4
- pinAdoptedBase,
5
- sharePreparedBase,
6
- tryAdoptPreparedBase
7
- } from "./chunk-PENAXZMR.js";
8
- import "./chunk-UFOUBCPW.js";
9
- import "./chunk-4IQGL4KD.js";
10
- import "./chunk-UPQOX272.js";
11
- import "./chunk-OYWP4SII.js";
12
- import "./chunk-CWN4DJYI.js";
13
- import "./chunk-XKUF67M6.js";
14
- import "./chunk-KWDFEQO6.js";
15
- import "./chunk-3HJQZQ76.js";
16
- import "./chunk-AGHR7XOJ.js";
17
- import "./chunk-ZPFTFIKP.js";
18
- import "./chunk-QNYGNHM2.js";
19
- import "./chunk-WJ4MZESJ.js";
20
- import "./chunk-U4Z5OOOD.js";
21
- import "./chunk-OVLM2EZV.js";
22
- import "./chunk-HS6B3CE4.js";
23
- import "./chunk-S77B5POZ.js";
24
- import "./chunk-QESXSSO6.js";
25
- import "./chunk-6V366IZC.js";
26
- import "./chunk-MNDKP4VS.js";
27
- import "./chunk-7TPGIQOP.js";
28
- import "./chunk-AXAMPAP3.js";
29
- import "./chunk-L55DASHB.js";
30
- import "./chunk-JUTAYI2N.js";
31
- import "./chunk-U7J7JT6R.js";
32
- import "./chunk-FM7PHYBD.js";
33
- import "./chunk-YZZKWZO2.js";
34
- export {
35
- adoptPreparedBases,
36
- pinAdoptedBase,
37
- sharePreparedBase,
38
- tryAdoptPreparedBase
39
- };
40
- //# sourceMappingURL=prepared-custody-UTSSUTXF.js.map
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- getProvider,
4
- isKnownProvider,
5
- providerForBox,
6
- providerForCreate
7
- } from "./chunk-AGHR7XOJ.js";
8
- import "./chunk-7TPGIQOP.js";
9
- import "./chunk-U7J7JT6R.js";
10
- import "./chunk-FM7PHYBD.js";
11
- import "./chunk-YZZKWZO2.js";
12
- export {
13
- getProvider,
14
- isKnownProvider,
15
- providerForBox,
16
- providerForCreate
17
- };
18
- //# sourceMappingURL=registry-IPDCZDNW.js.map
@@ -1,23 +0,0 @@
1
- #!/usr/bin/env node
2
- import {
3
- rehydrateFromState,
4
- relayCommand
5
- } from "./chunk-SDWKZLGP.js";
6
- import "./chunk-WJ4MZESJ.js";
7
- import "./chunk-U4Z5OOOD.js";
8
- import "./chunk-OVLM2EZV.js";
9
- import "./chunk-HS6B3CE4.js";
10
- import "./chunk-S77B5POZ.js";
11
- import "./chunk-QESXSSO6.js";
12
- import "./chunk-6V366IZC.js";
13
- import "./chunk-MNDKP4VS.js";
14
- import "./chunk-L55DASHB.js";
15
- import "./chunk-JUTAYI2N.js";
16
- import "./chunk-U7J7JT6R.js";
17
- import "./chunk-FM7PHYBD.js";
18
- import "./chunk-YZZKWZO2.js";
19
- export {
20
- rehydrateFromState,
21
- relayCommand
22
- };
23
- //# sourceMappingURL=relay-P5CXEGAZ.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},57764,(e,t,r)=>{t.exports=e.x("node:url",()=>require("node:url"))},99871,(e,t,r)=>{t.exports=e.x("node:string_decoder",()=>require("node:string_decoder"))},12057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},9656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},36340,(e,t,r)=>{t.exports=e.x("node:timers/promises",()=>require("node:timers/promises"))},87769,(e,t,r)=>{t.exports=e.x("node:events",()=>require("node:events"))},44385,(e,t,r)=>{t.exports=e.x("node:v8",()=>require("node:v8"))},51615,(e,t,r)=>{t.exports=e.x("node:buffer",()=>require("node:buffer"))},88646,(e,t,r)=>{t.exports=e.x("node:stream/promises",()=>require("node:stream/promises"))},4446,(e,t,r)=>{t.exports=e.x("net",()=>require("net"))},21517,(e,t,r)=>{t.exports=e.x("http",()=>require("http"))},92509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},62562,(e,t,r)=>{t.exports=e.x("module",()=>require("module"))},28065,(e,t,r)=>{t.exports=e.x("stream/promises",()=>require("stream/promises"))},88947,(e,t,r)=>{t.exports=e.x("stream",()=>require("stream"))},8614,22559,167,53412,2340,93540,21918,e=>{"use strict";var t=e.i(80704),r=e.i(4914),n=e.i(42861),i=e.i(11374),s=e.i(18067),o=e.i(63721);class u{static [t.entityKind]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor(e,t){this.reference=()=>{let{name:t,columns:r,foreignColumns:n}=e();return{name:t,columns:r,foreignTable:n[0].table,foreignColumns:n}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=e,this}onDelete(e){return this._onDelete=e,this}build(e){return new a(e,this)}}class a{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static [t.entityKind]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),n=t.map(e=>e.name),i=r.map(e=>e.name),s=[this.table[o.TableName],...n,r[0].table[o.TableName],...i];return e??`${s.join("_")}_fk`}}function l(e,t){return`${e[o.TableName]}_${t.join("_")}_unique`}e.s(["ForeignKeyBuilder",0,u],22559);class c{constructor(e,t){this.name=t,this.columns=e}static [t.entityKind]="SQLiteUniqueConstraintBuilder";columns;build(e){return new d(e,this.columns,this.name)}}class m{static [t.entityKind]="SQLiteUniqueOnConstraintBuilder";name;constructor(e){this.name=e}on(...e){return new c(e,this.name)}}class d{constructor(e,t,r){this.table=e,this.columns=t,this.name=r??l(this.table,this.columns.map(e=>e.name))}static [t.entityKind]="SQLiteUniqueConstraint";columns;name;getName(){return this.name}}e.s(["UniqueConstraintBuilder",0,c,"uniqueKeyName",0,l],167);class f extends i.ColumnBuilder{static [t.entityKind]="SQLiteColumnBuilder";foreignKeyConfigs=[];references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e){return this.config.isUnique=!0,this.config.uniqueName=e,this}generatedAlwaysAs(e,t){return this.config.generated={as:e,type:"always",mode:t?.mode??"virtual"},this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:r,actions:n})=>{let i;return i=new u(()=>({columns:[e],foreignColumns:[r()]})),n.onUpdate&&i.onUpdate(n.onUpdate),n.onDelete&&i.onDelete(n.onDelete),i.build(t)})}}class g extends s.Column{constructor(e,t){t.uniqueName||(t.uniqueName=l(e,[t.name])),super(e,t),this.table=e}static [t.entityKind]="SQLiteColumn"}e.s(["SQLiteColumn",0,g,"SQLiteColumnBuilder",0,f],53412);class p extends f{static [t.entityKind]="SQLiteBigIntBuilder";constructor(e){super(e,"bigint","SQLiteBigInt")}build(e){return new h(e,this.config)}}class h extends g{static [t.entityKind]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue(e){return"u">typeof Buffer&&Buffer.from?BigInt((Buffer.isBuffer(e)?e:e instanceof ArrayBuffer?Buffer.from(e):e.buffer?Buffer.from(e.buffer,e.byteOffset,e.byteLength):Buffer.from(e)).toString("utf8")):BigInt(n.textDecoder.decode(e))}mapToDriverValue(e){return Buffer.from(e.toString())}}class y extends f{static [t.entityKind]="SQLiteBlobJsonBuilder";constructor(e){super(e,"json","SQLiteBlobJson")}build(e){return new x(e,this.config)}}class x extends g{static [t.entityKind]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue(e){return"u">typeof Buffer&&Buffer.from?JSON.parse((Buffer.isBuffer(e)?e:e instanceof ArrayBuffer?Buffer.from(e):e.buffer?Buffer.from(e.buffer,e.byteOffset,e.byteLength):Buffer.from(e)).toString("utf8")):JSON.parse(n.textDecoder.decode(e))}mapToDriverValue(e){return Buffer.from(JSON.stringify(e))}}class b extends f{static [t.entityKind]="SQLiteBlobBufferBuilder";constructor(e){super(e,"buffer","SQLiteBlobBuffer")}build(e){return new S(e,this.config)}}class S extends g{static [t.entityKind]="SQLiteBlobBuffer";mapFromDriverValue(e){return Buffer.isBuffer(e)?e:Buffer.from(e)}getSQLType(){return"blob"}}function _(e,t){let{name:r,config:i}=(0,n.getColumnNameAndConfig)(e,t);return i?.mode==="json"?new y(r):i?.mode==="bigint"?new p(r):new b(r)}class B extends f{static [t.entityKind]="SQLiteCustomColumnBuilder";constructor(e,t,r){super(e,"custom","SQLiteCustomColumn"),this.config.fieldConfig=t,this.config.customTypeParams=r}build(e){return new L(e,this.config)}}class L extends g{static [t.entityKind]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor(e,t){super(e,t),this.sqlName=t.customTypeParams.dataType(t.fieldConfig),this.mapTo=t.customTypeParams.toDriver,this.mapFrom=t.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(e){return"function"==typeof this.mapFrom?this.mapFrom(e):e}mapToDriverValue(e){return"function"==typeof this.mapTo?this.mapTo(e):e}}function v(e){return(t,r)=>{let{name:i,config:s}=(0,n.getColumnNameAndConfig)(t,r);return new B(i,s,e)}}var Q=e.i(62583);class w extends f{static [t.entityKind]="SQLiteBaseIntegerBuilder";constructor(e,t,r){super(e,t,r),this.config.autoIncrement=!1}primaryKey(e){return e?.autoIncrement&&(this.config.autoIncrement=!0),this.config.hasDefault=!0,super.primaryKey()}}class T extends g{static [t.entityKind]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}}class K extends w{static [t.entityKind]="SQLiteIntegerBuilder";constructor(e){super(e,"number","SQLiteInteger")}build(e){return new q(e,this.config)}}class q extends T{static [t.entityKind]="SQLiteInteger"}class N extends w{static [t.entityKind]="SQLiteTimestampBuilder";constructor(e,t){super(e,"date","SQLiteTimestamp"),this.config.mode=t}defaultNow(){return this.default(Q.sql`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build(e){return new C(e,this.config)}}class C extends T{static [t.entityKind]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue(e){return new Date("timestamp"===this.config.mode?1e3*e:e)}mapToDriverValue(e){let t=e.getTime();return"timestamp"===this.config.mode?Math.floor(t/1e3):t}}class D extends w{static [t.entityKind]="SQLiteBooleanBuilder";constructor(e,t){super(e,"boolean","SQLiteBoolean"),this.config.mode=t}build(e){return new j(e,this.config)}}class j extends T{static [t.entityKind]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue(e){return 1===Number(e)}mapToDriverValue(e){return+!!e}}function z(e,t){let{name:r,config:i}=(0,n.getColumnNameAndConfig)(e,t);return i?.mode==="timestamp"||i?.mode==="timestamp_ms"?new N(r,i.mode):i?.mode==="boolean"?new D(r,i.mode):new K(r)}e.s(["integer",0,z],2340);class k extends f{static [t.entityKind]="SQLiteNumericBuilder";constructor(e){super(e,"string","SQLiteNumeric")}build(e){return new I(e,this.config)}}class I extends g{static [t.entityKind]="SQLiteNumeric";mapFromDriverValue(e){return"string"==typeof e?e:String(e)}getSQLType(){return"numeric"}}class V extends f{static [t.entityKind]="SQLiteNumericNumberBuilder";constructor(e){super(e,"number","SQLiteNumericNumber")}build(e){return new F(e,this.config)}}class F extends g{static [t.entityKind]="SQLiteNumericNumber";mapFromDriverValue(e){return"number"==typeof e?e:Number(e)}mapToDriverValue=String;getSQLType(){return"numeric"}}class U extends f{static [t.entityKind]="SQLiteNumericBigIntBuilder";constructor(e){super(e,"bigint","SQLiteNumericBigInt")}build(e){return new P(e,this.config)}}class P extends g{static [t.entityKind]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}function O(e,t){let{name:r,config:i}=(0,n.getColumnNameAndConfig)(e,t),s=i?.mode;return"number"===s?new V(r):"bigint"===s?new U(r):new k(r)}class J extends f{static [t.entityKind]="SQLiteRealBuilder";constructor(e){super(e,"number","SQLiteReal")}build(e){return new A(e,this.config)}}class A extends g{static [t.entityKind]="SQLiteReal";getSQLType(){return"real"}}function E(e){return new J(e??"")}class $ extends f{static [t.entityKind]="SQLiteTextBuilder";constructor(e,t){super(e,"string","SQLiteText"),this.config.enumValues=t.enum,this.config.length=t.length}build(e){return new R(e,this.config)}}class R extends g{static [t.entityKind]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor(e,t){super(e,t)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class M extends f{static [t.entityKind]="SQLiteTextJsonBuilder";constructor(e){super(e,"json","SQLiteTextJson")}build(e){return new Y(e,this.config)}}class Y extends g{static [t.entityKind]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue(e){return JSON.parse(e)}mapToDriverValue(e){return JSON.stringify(e)}}function G(e,t={}){let{name:r,config:i}=(0,n.getColumnNameAndConfig)(e,t);return"json"===i.mode?new M(r):new $(r,i)}e.s(["text",0,G],93540);let H=Symbol.for("drizzle:SQLiteInlineForeignKeys");class W extends r.Table{static [t.entityKind]="SQLiteTable";static Symbol=Object.assign({},r.Table.Symbol,{InlineForeignKeys:H});[r.Table.Symbol.Columns];[H]=[];[r.Table.Symbol.ExtraConfigBuilder]=void 0}e.s(["SQLiteTable",0,W,"sqliteTable",0,(e,t,n)=>(function(e,t,n,i=e){let s=new W(e,void 0,i),o=Object.fromEntries(Object.entries("function"==typeof t?t({blob:_,customType:v,integer:z,numeric:O,real:E,text:G}):t).map(([e,t])=>{t.setName(e);let r=t.build(s);return s[H].push(...t.buildForeignKeys(r,s)),[e,r]})),u=Object.assign(s,o);return u[r.Table.Symbol.Columns]=o,u[r.Table.Symbol.ExtraConfigColumns]=o,n&&(u[W.Symbol.ExtraConfigBuilder]=n),u})(e,t,n)],8614);class X{constructor(e,t){this.name=e,this.unique=t}static [t.entityKind]="SQLiteIndexBuilderOn";on(...e){return new Z(this.name,e,this.unique)}}class Z{static [t.entityKind]="SQLiteIndexBuilder";config;constructor(e,t,r){this.config={name:e,columns:t,unique:r,where:void 0}}where(e){return this.config.where=e,this}build(e){return new ee(this.config,e)}}class ee{static [t.entityKind]="SQLiteIndex";config;constructor(e,t){this.config={...e,table:t}}}e.s(["IndexBuilder",0,Z,"index",0,function(e){return new X(e,!1)}],21918)},63003,e=>{"use strict";e.i(7876);var t=e.i(85807);e.i(65949),e.s(["PostgresStore",()=>t.PostgresStore])},47714,e=>{e.v(e=>Promise.resolve().then(()=>e(46063)))},60815,e=>{e.v(e=>Promise.resolve().then(()=>e(24868)))},13172,e=>{e.v(t=>Promise.all(["server/chunks/packages_agent-registry_dist_index_1h1jlup.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(t=>e.l(t))).then(()=>t(6969)))},47800,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__1wc9zwl._.js","server/chunks/packages_relay_dist_chunk-NBDEMY4P_0jzzve0.js","server/chunks/_0vg6gvw._.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(t=>e.l(t))).then(()=>t(25038)))},53982,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__02sueng._.js","server/chunks/_0vg6gvw._.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(t=>e.l(t))).then(()=>t(8531)))},6194,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_pg_15jfwkh._.js"].map(t=>e.l(t))).then(()=>t(8844)))},14788,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__1v9_her._.js","server/chunks/1w4z_drizzle-orm_145bz8z._.js","server/chunks/1w4z_drizzle-orm_1nl4l3q._.js"].map(t=>e.l(t))).then(()=>t(5206)))},86115,e=>{e.v(t=>Promise.all(["server/chunks/1w4z_drizzle-orm_0pn9b49._.js","server/chunks/1w4z_drizzle-orm_sqlite-proxy_index_05v_j5r.js","server/chunks/1w4z_drizzle-orm_14y990b._.js"].map(t=>e.l(t))).then(()=>t(86097)))}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__0-0scfb._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[60526,(e,s,r)=>{s.exports=e.x("node:os",()=>require("node:os"))},2157,(e,s,r)=>{s.exports=e.x("node:fs",()=>require("node:fs"))},81111,(e,s,r)=>{s.exports=e.x("node:stream",()=>require("node:stream"))},74533,(e,s,r)=>{s.exports=e.x("node:child_process",()=>require("node:child_process"))},57764,(e,s,r)=>{s.exports=e.x("node:url",()=>require("node:url"))},99871,(e,s,r)=>{s.exports=e.x("node:string_decoder",()=>require("node:string_decoder"))},12057,(e,s,r)=>{s.exports=e.x("node:util",()=>require("node:util"))},59639,(e,s,r)=>{s.exports=e.x("node:process",()=>require("node:process"))},9656,(e,s,r)=>{s.exports=e.x("node:tty",()=>require("node:tty"))},33405,(e,s,r)=>{s.exports=e.x("child_process",()=>require("child_process"))},36340,(e,s,r)=>{s.exports=e.x("node:timers/promises",()=>require("node:timers/promises"))},87769,(e,s,r)=>{s.exports=e.x("node:events",()=>require("node:events"))},44385,(e,s,r)=>{s.exports=e.x("node:v8",()=>require("node:v8"))},51615,(e,s,r)=>{s.exports=e.x("node:buffer",()=>require("node:buffer"))},88646,(e,s,r)=>{s.exports=e.x("node:stream/promises",()=>require("node:stream/promises"))},4446,(e,s,r)=>{s.exports=e.x("net",()=>require("net"))},21517,(e,s,r)=>{s.exports=e.x("http",()=>require("http"))},92509,(e,s,r)=>{s.exports=e.x("url",()=>require("url"))},25038,e=>{"use strict";var s=e.i(11229),r=e.i(33405),t=e.i(24868),i=e.i(46786),o=e.i(14747),n=e.i(29220),a=e.i(25206),d={leaseGraceMs:6e4,scrollbackBytes:524288,submitDelayMs:400,windowSize:"latest",lifetime:"leased"},c=class extends Error{constructor(e){super(e),this.name="PtyCarrierUnavailable"}};async function p(e=process.env){let s=[],r=e.AGENTBOX_CLI_ENTRY;for(let e of(r&&s.push((0,o.join)((0,o.dirname)(r),"pty-host.js")),s.push((0,o.resolve)(process.cwd(),"apps/cli/dist/pty-host.js")),s.push((0,o.join)((0,o.dirname)(process.argv[1]??""),"pty-host.js")),s))if(e.endsWith("pty-host.js")&&await l(e))return e}async function l(e){try{return await (0,t.access)(e),!0}catch{return!1}}var u=async e=>{await (0,t.mkdir)((0,o.dirname)(e.logPath),{recursive:!0});let s=await (0,t.open)(e.logPath,"a");try{let t=(0,r.spawn)(process.execPath,[e.entry,"--spec-fd","3"],{detached:!0,cwd:e.cwd,env:e.env,stdio:["ignore",s.fd,s.fd,"pipe"]}),i=t.stdio[3];if(!i)throw Error("could not open the spec pipe to the pty host");return i.end(JSON.stringify(e.spec)),t.unref(),{...void 0===t.pid?{}:{pid:t.pid}}}finally{await s.close().catch(()=>{})}};async function h(e){let r=e.manager,n=await p(e.env);if(!n)throw new c("no pty-host entry found for this install");let l={...d,...e.settings},h=(0,s.managerExitFile)(await v(e.wsId),r.id);await (0,t.mkdir)((0,o.dirname)(h),{recursive:!0}),await (0,t.rm)(h,{force:!0}).catch(()=>{}),await (0,a.ensurePtyDir)(e.baseDir);let y=(0,a.ptySocketPath)(r.id,e.baseDir);await (0,s.ptyHostAlive)(y)||await (0,a.removePtySession)(r.id,e.baseDir);let x=(0,a.newPtyRunId)(),m=(0,s.buildManagerShellScript)({argv:e.argv,env:{AGENTBOX_WORKSPACE:e.wsId,AGENTBOX_MANAGER:r.id,AGENTBOX_MANAGER_RUN:x},exitFile:h}),g=(0,a.scrubAgentSessionEnv)(e.env??process.env),f={managerId:r.id,workspaceId:e.wsId,agent:r.agent,cwd:r.cwd,shell:(0,s.loginShell)(g),script:m,env:function(e){let s={};for(let[r,t]of Object.entries(e))void 0!==t&&(s[r]=t);return s}(g),token:(0,a.newPtyToken)(),runId:x,cols:120,rows:34,pinned:!0===r.pinned,lifetime:l.lifetime,leaseGraceMs:l.leaseGraceMs,scrollbackBytes:l.scrollbackBytes,windowSize:l.windowSize,submitDelayMs:l.submitDelayMs,...e.baseDir?{baseDir:e.baseDir}:{}},_=e.spawnHost??u;await _({entry:n,spec:f,logPath:(0,a.ptyLogPath)(r.id,e.baseDir),cwd:r.cwd,env:g});let k=await w(r.id,e.baseDir);if(!k)throw new c(`pty host did not come up; see ${(0,a.ptyLogPath)(r.id,e.baseDir)}`);return{id:r.id,agent:r.agent,kind:"pty",host:(e.hostname??i.hostname)(),cwd:r.cwd,pty:{pid:k.pid,socket:k.socket,runId:k.runId},argv:e.argv,...r.sessionId?{sessionId:r.sessionId}:{}}}async function w(e,r){let t=Date.now()+8e3;for(;Date.now()<t;){let t=await (0,a.readPtyMeta)(e,r);if(t&&await (0,s.ptyHostAlive)(t.socket))return t;await (0,n.setTimeout)(100)}}async function v(e){return await (0,s.resolveWorkspaceDir)(e)??(0,s.workspaceDir)(e)}e.s([],27089),e.i(27089),e.s(["PtyCarrierUnavailable",0,c,"startManagerPtySession",0,h],25038)},47714,e=>{e.v(e=>Promise.resolve().then(()=>e(46063)))},60815,e=>{e.v(e=>Promise.resolve().then(()=>e(24868)))},13172,e=>{e.v(s=>Promise.all(["server/chunks/packages_agent-registry_dist_index_1h1jlup.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(s=>e.l(s))).then(()=>s(6969)))},47800,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__00a4c3f._.js","server/chunks/packages_relay_dist_chunk-NBDEMY4P_0jzzve0.js","server/chunks/_0vg6gvw._.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(s=>e.l(s))).then(()=>s(25038)))}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__00a4c3f._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[60526,(e,t,r)=>{t.exports=e.x("node:os",()=>require("node:os"))},2157,(e,t,r)=>{t.exports=e.x("node:fs",()=>require("node:fs"))},81111,(e,t,r)=>{t.exports=e.x("node:stream",()=>require("node:stream"))},74533,(e,t,r)=>{t.exports=e.x("node:child_process",()=>require("node:child_process"))},57764,(e,t,r)=>{t.exports=e.x("node:url",()=>require("node:url"))},99871,(e,t,r)=>{t.exports=e.x("node:string_decoder",()=>require("node:string_decoder"))},12057,(e,t,r)=>{t.exports=e.x("node:util",()=>require("node:util"))},59639,(e,t,r)=>{t.exports=e.x("node:process",()=>require("node:process"))},9656,(e,t,r)=>{t.exports=e.x("node:tty",()=>require("node:tty"))},33405,(e,t,r)=>{t.exports=e.x("child_process",()=>require("child_process"))},36340,(e,t,r)=>{t.exports=e.x("node:timers/promises",()=>require("node:timers/promises"))},87769,(e,t,r)=>{t.exports=e.x("node:events",()=>require("node:events"))},44385,(e,t,r)=>{t.exports=e.x("node:v8",()=>require("node:v8"))},51615,(e,t,r)=>{t.exports=e.x("node:buffer",()=>require("node:buffer"))},88646,(e,t,r)=>{t.exports=e.x("node:stream/promises",()=>require("node:stream/promises"))},4446,(e,t,r)=>{t.exports=e.x("net",()=>require("net"))},21517,(e,t,r)=>{t.exports=e.x("http",()=>require("http"))},92509,(e,t,r)=>{t.exports=e.x("url",()=>require("url"))},62562,(e,t,r)=>{t.exports=e.x("module",()=>require("module"))},28065,(e,t,r)=>{t.exports=e.x("stream/promises",()=>require("stream/promises"))},88947,(e,t,r)=>{t.exports=e.x("stream",()=>require("stream"))},8614,22559,167,53412,2340,93540,21918,e=>{"use strict";var t=e.i(80704),r=e.i(4914),n=e.i(42861),i=e.i(11374),s=e.i(18067),o=e.i(63721);class u{static [t.entityKind]="SQLiteForeignKeyBuilder";reference;_onUpdate;_onDelete;constructor(e,t){this.reference=()=>{let{name:t,columns:r,foreignColumns:n}=e();return{name:t,columns:r,foreignTable:n[0].table,foreignColumns:n}},t&&(this._onUpdate=t.onUpdate,this._onDelete=t.onDelete)}onUpdate(e){return this._onUpdate=e,this}onDelete(e){return this._onDelete=e,this}build(e){return new a(e,this)}}class a{constructor(e,t){this.table=e,this.reference=t.reference,this.onUpdate=t._onUpdate,this.onDelete=t._onDelete}static [t.entityKind]="SQLiteForeignKey";reference;onUpdate;onDelete;getName(){let{name:e,columns:t,foreignColumns:r}=this.reference(),n=t.map(e=>e.name),i=r.map(e=>e.name),s=[this.table[o.TableName],...n,r[0].table[o.TableName],...i];return e??`${s.join("_")}_fk`}}function l(e,t){return`${e[o.TableName]}_${t.join("_")}_unique`}e.s(["ForeignKeyBuilder",0,u],22559);class c{constructor(e,t){this.name=t,this.columns=e}static [t.entityKind]="SQLiteUniqueConstraintBuilder";columns;build(e){return new d(e,this.columns,this.name)}}class m{static [t.entityKind]="SQLiteUniqueOnConstraintBuilder";name;constructor(e){this.name=e}on(...e){return new c(e,this.name)}}class d{constructor(e,t,r){this.table=e,this.columns=t,this.name=r??l(this.table,this.columns.map(e=>e.name))}static [t.entityKind]="SQLiteUniqueConstraint";columns;name;getName(){return this.name}}e.s(["UniqueConstraintBuilder",0,c,"uniqueKeyName",0,l],167);class f extends i.ColumnBuilder{static [t.entityKind]="SQLiteColumnBuilder";foreignKeyConfigs=[];references(e,t={}){return this.foreignKeyConfigs.push({ref:e,actions:t}),this}unique(e){return this.config.isUnique=!0,this.config.uniqueName=e,this}generatedAlwaysAs(e,t){return this.config.generated={as:e,type:"always",mode:t?.mode??"virtual"},this}buildForeignKeys(e,t){return this.foreignKeyConfigs.map(({ref:r,actions:n})=>{let i;return i=new u(()=>({columns:[e],foreignColumns:[r()]})),n.onUpdate&&i.onUpdate(n.onUpdate),n.onDelete&&i.onDelete(n.onDelete),i.build(t)})}}class g extends s.Column{constructor(e,t){t.uniqueName||(t.uniqueName=l(e,[t.name])),super(e,t),this.table=e}static [t.entityKind]="SQLiteColumn"}e.s(["SQLiteColumn",0,g,"SQLiteColumnBuilder",0,f],53412);class p extends f{static [t.entityKind]="SQLiteBigIntBuilder";constructor(e){super(e,"bigint","SQLiteBigInt")}build(e){return new h(e,this.config)}}class h extends g{static [t.entityKind]="SQLiteBigInt";getSQLType(){return"blob"}mapFromDriverValue(e){return"u">typeof Buffer&&Buffer.from?BigInt((Buffer.isBuffer(e)?e:e instanceof ArrayBuffer?Buffer.from(e):e.buffer?Buffer.from(e.buffer,e.byteOffset,e.byteLength):Buffer.from(e)).toString("utf8")):BigInt(n.textDecoder.decode(e))}mapToDriverValue(e){return Buffer.from(e.toString())}}class y extends f{static [t.entityKind]="SQLiteBlobJsonBuilder";constructor(e){super(e,"json","SQLiteBlobJson")}build(e){return new x(e,this.config)}}class x extends g{static [t.entityKind]="SQLiteBlobJson";getSQLType(){return"blob"}mapFromDriverValue(e){return"u">typeof Buffer&&Buffer.from?JSON.parse((Buffer.isBuffer(e)?e:e instanceof ArrayBuffer?Buffer.from(e):e.buffer?Buffer.from(e.buffer,e.byteOffset,e.byteLength):Buffer.from(e)).toString("utf8")):JSON.parse(n.textDecoder.decode(e))}mapToDriverValue(e){return Buffer.from(JSON.stringify(e))}}class b extends f{static [t.entityKind]="SQLiteBlobBufferBuilder";constructor(e){super(e,"buffer","SQLiteBlobBuffer")}build(e){return new S(e,this.config)}}class S extends g{static [t.entityKind]="SQLiteBlobBuffer";mapFromDriverValue(e){return Buffer.isBuffer(e)?e:Buffer.from(e)}getSQLType(){return"blob"}}function _(e,t){let{name:r,config:i}=(0,n.getColumnNameAndConfig)(e,t);return i?.mode==="json"?new y(r):i?.mode==="bigint"?new p(r):new b(r)}class B extends f{static [t.entityKind]="SQLiteCustomColumnBuilder";constructor(e,t,r){super(e,"custom","SQLiteCustomColumn"),this.config.fieldConfig=t,this.config.customTypeParams=r}build(e){return new L(e,this.config)}}class L extends g{static [t.entityKind]="SQLiteCustomColumn";sqlName;mapTo;mapFrom;constructor(e,t){super(e,t),this.sqlName=t.customTypeParams.dataType(t.fieldConfig),this.mapTo=t.customTypeParams.toDriver,this.mapFrom=t.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(e){return"function"==typeof this.mapFrom?this.mapFrom(e):e}mapToDriverValue(e){return"function"==typeof this.mapTo?this.mapTo(e):e}}function v(e){return(t,r)=>{let{name:i,config:s}=(0,n.getColumnNameAndConfig)(t,r);return new B(i,s,e)}}var Q=e.i(62583);class T extends f{static [t.entityKind]="SQLiteBaseIntegerBuilder";constructor(e,t,r){super(e,t,r),this.config.autoIncrement=!1}primaryKey(e){return e?.autoIncrement&&(this.config.autoIncrement=!0),this.config.hasDefault=!0,super.primaryKey()}}class K extends g{static [t.entityKind]="SQLiteBaseInteger";autoIncrement=this.config.autoIncrement;getSQLType(){return"integer"}}class w extends T{static [t.entityKind]="SQLiteIntegerBuilder";constructor(e){super(e,"number","SQLiteInteger")}build(e){return new q(e,this.config)}}class q extends K{static [t.entityKind]="SQLiteInteger"}class N extends T{static [t.entityKind]="SQLiteTimestampBuilder";constructor(e,t){super(e,"date","SQLiteTimestamp"),this.config.mode=t}defaultNow(){return this.default(Q.sql`(cast((julianday('now') - 2440587.5)*86400000 as integer))`)}build(e){return new C(e,this.config)}}class C extends K{static [t.entityKind]="SQLiteTimestamp";mode=this.config.mode;mapFromDriverValue(e){return new Date("timestamp"===this.config.mode?1e3*e:e)}mapToDriverValue(e){let t=e.getTime();return"timestamp"===this.config.mode?Math.floor(t/1e3):t}}class D extends T{static [t.entityKind]="SQLiteBooleanBuilder";constructor(e,t){super(e,"boolean","SQLiteBoolean"),this.config.mode=t}build(e){return new j(e,this.config)}}class j extends K{static [t.entityKind]="SQLiteBoolean";mode=this.config.mode;mapFromDriverValue(e){return 1===Number(e)}mapToDriverValue(e){return+!!e}}function k(e,t){let{name:r,config:i}=(0,n.getColumnNameAndConfig)(e,t);return i?.mode==="timestamp"||i?.mode==="timestamp_ms"?new N(r,i.mode):i?.mode==="boolean"?new D(r,i.mode):new w(r)}e.s(["integer",0,k],2340);class z extends f{static [t.entityKind]="SQLiteNumericBuilder";constructor(e){super(e,"string","SQLiteNumeric")}build(e){return new I(e,this.config)}}class I extends g{static [t.entityKind]="SQLiteNumeric";mapFromDriverValue(e){return"string"==typeof e?e:String(e)}getSQLType(){return"numeric"}}class V extends f{static [t.entityKind]="SQLiteNumericNumberBuilder";constructor(e){super(e,"number","SQLiteNumericNumber")}build(e){return new F(e,this.config)}}class F extends g{static [t.entityKind]="SQLiteNumericNumber";mapFromDriverValue(e){return"number"==typeof e?e:Number(e)}mapToDriverValue=String;getSQLType(){return"numeric"}}class U extends f{static [t.entityKind]="SQLiteNumericBigIntBuilder";constructor(e){super(e,"bigint","SQLiteNumericBigInt")}build(e){return new P(e,this.config)}}class P extends g{static [t.entityKind]="SQLiteNumericBigInt";mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return"numeric"}}function O(e,t){let{name:r,config:i}=(0,n.getColumnNameAndConfig)(e,t),s=i?.mode;return"number"===s?new V(r):"bigint"===s?new U(r):new z(r)}class J extends f{static [t.entityKind]="SQLiteRealBuilder";constructor(e){super(e,"number","SQLiteReal")}build(e){return new A(e,this.config)}}class A extends g{static [t.entityKind]="SQLiteReal";getSQLType(){return"real"}}function E(e){return new J(e??"")}class $ extends f{static [t.entityKind]="SQLiteTextBuilder";constructor(e,t){super(e,"string","SQLiteText"),this.config.enumValues=t.enum,this.config.length=t.length}build(e){return new R(e,this.config)}}class R extends g{static [t.entityKind]="SQLiteText";enumValues=this.config.enumValues;length=this.config.length;constructor(e,t){super(e,t)}getSQLType(){return`text${this.config.length?`(${this.config.length})`:""}`}}class M extends f{static [t.entityKind]="SQLiteTextJsonBuilder";constructor(e){super(e,"json","SQLiteTextJson")}build(e){return new Y(e,this.config)}}class Y extends g{static [t.entityKind]="SQLiteTextJson";getSQLType(){return"text"}mapFromDriverValue(e){return JSON.parse(e)}mapToDriverValue(e){return JSON.stringify(e)}}function G(e,t={}){let{name:r,config:i}=(0,n.getColumnNameAndConfig)(e,t);return"json"===i.mode?new M(r):new $(r,i)}e.s(["text",0,G],93540);let H=Symbol.for("drizzle:SQLiteInlineForeignKeys");class W extends r.Table{static [t.entityKind]="SQLiteTable";static Symbol=Object.assign({},r.Table.Symbol,{InlineForeignKeys:H});[r.Table.Symbol.Columns];[H]=[];[r.Table.Symbol.ExtraConfigBuilder]=void 0}e.s(["SQLiteTable",0,W,"sqliteTable",0,(e,t,n)=>(function(e,t,n,i=e){let s=new W(e,void 0,i),o=Object.fromEntries(Object.entries("function"==typeof t?t({blob:_,customType:v,integer:k,numeric:O,real:E,text:G}):t).map(([e,t])=>{t.setName(e);let r=t.build(s);return s[H].push(...t.buildForeignKeys(r,s)),[e,r]})),u=Object.assign(s,o);return u[r.Table.Symbol.Columns]=o,u[r.Table.Symbol.ExtraConfigColumns]=o,n&&(u[W.Symbol.ExtraConfigBuilder]=n),u})(e,t,n)],8614);class X{constructor(e,t){this.name=e,this.unique=t}static [t.entityKind]="SQLiteIndexBuilderOn";on(...e){return new Z(this.name,e,this.unique)}}class Z{static [t.entityKind]="SQLiteIndexBuilder";config;constructor(e,t,r){this.config={name:e,columns:t,unique:r,where:void 0}}where(e){return this.config.where=e,this}build(e){return new ee(this.config,e)}}class ee{static [t.entityKind]="SQLiteIndex";config;constructor(e,t){this.config={...e,table:t}}}e.s(["IndexBuilder",0,Z,"index",0,function(e){return new X(e,!1)}],21918)},63003,e=>{"use strict";e.i(7876);var t=e.i(85807);e.i(65949),e.s(["PostgresStore",()=>t.PostgresStore])},47714,e=>{e.v(e=>Promise.resolve().then(()=>e(46063)))},60815,e=>{e.v(e=>Promise.resolve().then(()=>e(24868)))},13172,e=>{e.v(t=>Promise.all(["server/chunks/packages_agent-registry_dist_index_1h1jlup.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(t=>e.l(t))).then(()=>t(6969)))},47800,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__0rf4g7g._.js","server/chunks/packages_relay_dist_chunk-NBDEMY4P_0jzzve0.js","server/chunks/_0vg6gvw._.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(t=>e.l(t))).then(()=>t(25038)))},53982,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__112hqrh._.js","server/chunks/_0vg6gvw._.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(t=>e.l(t))).then(()=>t(8531)))},6194,e=>{e.v(t=>Promise.all(["server/chunks/[externals]_pg_15jfwkh._.js"].map(t=>e.l(t))).then(()=>t(8844)))},14788,e=>{e.v(t=>Promise.all(["server/chunks/[root-of-the-server]__1v9_her._.js","server/chunks/1w4z_drizzle-orm_145bz8z._.js","server/chunks/1w4z_drizzle-orm_1nl4l3q._.js"].map(t=>e.l(t))).then(()=>t(5206)))},86115,e=>{e.v(t=>Promise.all(["server/chunks/1w4z_drizzle-orm_0pn9b49._.js","server/chunks/1w4z_drizzle-orm_sqlite-proxy_index_05v_j5r.js","server/chunks/1w4z_drizzle-orm_14y990b._.js"].map(t=>e.l(t))).then(()=>t(86097)))}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__00tx9tm._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[60526,(e,s,r)=>{s.exports=e.x("node:os",()=>require("node:os"))},2157,(e,s,r)=>{s.exports=e.x("node:fs",()=>require("node:fs"))},81111,(e,s,r)=>{s.exports=e.x("node:stream",()=>require("node:stream"))},74533,(e,s,r)=>{s.exports=e.x("node:child_process",()=>require("node:child_process"))},57764,(e,s,r)=>{s.exports=e.x("node:url",()=>require("node:url"))},99871,(e,s,r)=>{s.exports=e.x("node:string_decoder",()=>require("node:string_decoder"))},12057,(e,s,r)=>{s.exports=e.x("node:util",()=>require("node:util"))},59639,(e,s,r)=>{s.exports=e.x("node:process",()=>require("node:process"))},9656,(e,s,r)=>{s.exports=e.x("node:tty",()=>require("node:tty"))},33405,(e,s,r)=>{s.exports=e.x("child_process",()=>require("child_process"))},36340,(e,s,r)=>{s.exports=e.x("node:timers/promises",()=>require("node:timers/promises"))},87769,(e,s,r)=>{s.exports=e.x("node:events",()=>require("node:events"))},44385,(e,s,r)=>{s.exports=e.x("node:v8",()=>require("node:v8"))},51615,(e,s,r)=>{s.exports=e.x("node:buffer",()=>require("node:buffer"))},88646,(e,s,r)=>{s.exports=e.x("node:stream/promises",()=>require("node:stream/promises"))},4446,(e,s,r)=>{s.exports=e.x("net",()=>require("net"))},21517,(e,s,r)=>{s.exports=e.x("http",()=>require("http"))},92509,(e,s,r)=>{s.exports=e.x("url",()=>require("url"))},25038,e=>{"use strict";var s=e.i(11229),r=e.i(33405),t=e.i(24868),i=e.i(46786),o=e.i(14747),n=e.i(29220),a=e.i(25206),d={leaseGraceMs:6e4,scrollbackBytes:524288,submitDelayMs:400,windowSize:"latest",lifetime:"leased"},c=class extends Error{constructor(e){super(e),this.name="PtyCarrierUnavailable"}};async function p(e=process.env){let s=[],r=e.AGENTBOX_CLI_ENTRY;for(let e of(r&&s.push((0,o.join)((0,o.dirname)(r),"pty-host.js")),s.push((0,o.resolve)(process.cwd(),"apps/cli/dist/pty-host.js")),s.push((0,o.join)((0,o.dirname)(process.argv[1]??""),"pty-host.js")),s))if(e.endsWith("pty-host.js")&&await l(e))return e}async function l(e){try{return await (0,t.access)(e),!0}catch{return!1}}var u=async e=>{await (0,t.mkdir)((0,o.dirname)(e.logPath),{recursive:!0});let s=await (0,t.open)(e.logPath,"a");try{let t=(0,r.spawn)(process.execPath,[e.entry,"--spec-fd","3"],{detached:!0,cwd:e.cwd,env:e.env,stdio:["ignore",s.fd,s.fd,"pipe"]}),i=t.stdio[3];if(!i)throw Error("could not open the spec pipe to the pty host");return i.end(JSON.stringify(e.spec)),t.unref(),{...void 0===t.pid?{}:{pid:t.pid}}}finally{await s.close().catch(()=>{})}};async function h(e){let r=e.manager,n=await p(e.env);if(!n)throw new c("no pty-host entry found for this install");let l={...d,...e.settings},h=(0,s.managerExitFile)(await v(e.wsId),r.id);await (0,t.mkdir)((0,o.dirname)(h),{recursive:!0}),await (0,t.rm)(h,{force:!0}).catch(()=>{}),await (0,a.ensurePtyDir)(e.baseDir);let y=(0,a.ptySocketPath)(r.id,e.baseDir);await (0,s.ptyHostAlive)(y)||await (0,a.removePtySession)(r.id,e.baseDir);let x=(0,a.newPtyRunId)(),m=(0,s.buildManagerShellScript)({argv:e.argv,env:{AGENTBOX_WORKSPACE:e.wsId,AGENTBOX_MANAGER:r.id,AGENTBOX_MANAGER_RUN:x},exitFile:h}),g=(0,a.scrubAgentSessionEnv)(e.env??process.env),f={managerId:r.id,workspaceId:e.wsId,agent:r.agent,cwd:r.cwd,shell:(0,s.loginShell)(g),script:m,env:function(e){let s={};for(let[r,t]of Object.entries(e))void 0!==t&&(s[r]=t);return s}(g),token:(0,a.newPtyToken)(),runId:x,cols:120,rows:34,pinned:!0===r.pinned,lifetime:l.lifetime,leaseGraceMs:l.leaseGraceMs,scrollbackBytes:l.scrollbackBytes,windowSize:l.windowSize,submitDelayMs:l.submitDelayMs,...e.baseDir?{baseDir:e.baseDir}:{}},_=e.spawnHost??u;await _({entry:n,spec:f,logPath:(0,a.ptyLogPath)(r.id,e.baseDir),cwd:r.cwd,env:g});let k=await w(r.id,e.baseDir);if(!k)throw new c(`pty host did not come up; see ${(0,a.ptyLogPath)(r.id,e.baseDir)}`);return{id:r.id,agent:r.agent,kind:"pty",host:(e.hostname??i.hostname)(),cwd:r.cwd,pty:{pid:k.pid,socket:k.socket,runId:k.runId},argv:e.argv,...r.sessionId?{sessionId:r.sessionId}:{}}}async function w(e,r){let t=Date.now()+8e3;for(;Date.now()<t;){let t=await (0,a.readPtyMeta)(e,r);if(t&&await (0,s.ptyHostAlive)(t.socket))return t;await (0,n.setTimeout)(100)}}async function v(e){return await (0,s.resolveWorkspaceDir)(e)??(0,s.workspaceDir)(e)}e.s([],27089),e.i(27089),e.s(["PtyCarrierUnavailable",0,c,"startManagerPtySession",0,h],25038)},47714,e=>{e.v(e=>Promise.resolve().then(()=>e(46063)))},60815,e=>{e.v(e=>Promise.resolve().then(()=>e(24868)))},13172,e=>{e.v(s=>Promise.all(["server/chunks/packages_agent-registry_dist_index_1h1jlup.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(s=>e.l(s))).then(()=>s(6969)))},47800,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__02-rdq0._.js","server/chunks/packages_relay_dist_chunk-NBDEMY4P_0jzzve0.js","server/chunks/_0vg6gvw._.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(s=>e.l(s))).then(()=>s(25038)))}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__02-rdq0._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[60526,(e,s,r)=>{s.exports=e.x("node:os",()=>require("node:os"))},2157,(e,s,r)=>{s.exports=e.x("node:fs",()=>require("node:fs"))},81111,(e,s,r)=>{s.exports=e.x("node:stream",()=>require("node:stream"))},74533,(e,s,r)=>{s.exports=e.x("node:child_process",()=>require("node:child_process"))},57764,(e,s,r)=>{s.exports=e.x("node:url",()=>require("node:url"))},99871,(e,s,r)=>{s.exports=e.x("node:string_decoder",()=>require("node:string_decoder"))},12057,(e,s,r)=>{s.exports=e.x("node:util",()=>require("node:util"))},59639,(e,s,r)=>{s.exports=e.x("node:process",()=>require("node:process"))},9656,(e,s,r)=>{s.exports=e.x("node:tty",()=>require("node:tty"))},33405,(e,s,r)=>{s.exports=e.x("child_process",()=>require("child_process"))},36340,(e,s,r)=>{s.exports=e.x("node:timers/promises",()=>require("node:timers/promises"))},87769,(e,s,r)=>{s.exports=e.x("node:events",()=>require("node:events"))},44385,(e,s,r)=>{s.exports=e.x("node:v8",()=>require("node:v8"))},51615,(e,s,r)=>{s.exports=e.x("node:buffer",()=>require("node:buffer"))},88646,(e,s,r)=>{s.exports=e.x("node:stream/promises",()=>require("node:stream/promises"))},4446,(e,s,r)=>{s.exports=e.x("net",()=>require("net"))},21517,(e,s,r)=>{s.exports=e.x("http",()=>require("http"))},92509,(e,s,r)=>{s.exports=e.x("url",()=>require("url"))},25038,e=>{"use strict";var s=e.i(11229),r=e.i(33405),t=e.i(24868),i=e.i(46786),o=e.i(14747),n=e.i(29220),a=e.i(25206),d={leaseGraceMs:6e4,scrollbackBytes:524288,submitDelayMs:400,windowSize:"latest",lifetime:"leased"},c=class extends Error{constructor(e){super(e),this.name="PtyCarrierUnavailable"}};async function p(e=process.env){let s=[],r=e.AGENTBOX_CLI_ENTRY;for(let e of(r&&s.push((0,o.join)((0,o.dirname)(r),"pty-host.js")),s.push((0,o.resolve)(process.cwd(),"apps/cli/dist/pty-host.js")),s.push((0,o.join)((0,o.dirname)(process.argv[1]??""),"pty-host.js")),s))if(e.endsWith("pty-host.js")&&await l(e))return e}async function l(e){try{return await (0,t.access)(e),!0}catch{return!1}}var u=async e=>{await (0,t.mkdir)((0,o.dirname)(e.logPath),{recursive:!0});let s=await (0,t.open)(e.logPath,"a");try{let t=(0,r.spawn)(process.execPath,[e.entry,"--spec-fd","3"],{detached:!0,cwd:e.cwd,env:e.env,stdio:["ignore",s.fd,s.fd,"pipe"]}),i=t.stdio[3];if(!i)throw Error("could not open the spec pipe to the pty host");return i.end(JSON.stringify(e.spec)),t.unref(),{...void 0===t.pid?{}:{pid:t.pid}}}finally{await s.close().catch(()=>{})}};async function h(e){let r=e.manager,n=await p(e.env);if(!n)throw new c("no pty-host entry found for this install");let l={...d,...e.settings},h=(0,s.managerExitFile)(await v(e.wsId),r.id);await (0,t.mkdir)((0,o.dirname)(h),{recursive:!0}),await (0,t.rm)(h,{force:!0}).catch(()=>{}),await (0,a.ensurePtyDir)(e.baseDir);let y=(0,a.ptySocketPath)(r.id,e.baseDir);await (0,s.ptyHostAlive)(y)||await (0,a.removePtySession)(r.id,e.baseDir);let x=(0,a.newPtyRunId)(),m=(0,s.buildManagerShellScript)({argv:e.argv,env:{AGENTBOX_WORKSPACE:e.wsId,AGENTBOX_MANAGER:r.id,AGENTBOX_MANAGER_RUN:x},exitFile:h}),g=(0,a.scrubAgentSessionEnv)(e.env??process.env),f={managerId:r.id,workspaceId:e.wsId,agent:r.agent,cwd:r.cwd,shell:(0,s.loginShell)(g),script:m,env:function(e){let s={};for(let[r,t]of Object.entries(e))void 0!==t&&(s[r]=t);return s}(g),token:(0,a.newPtyToken)(),runId:x,cols:120,rows:34,pinned:!0===r.pinned,lifetime:l.lifetime,leaseGraceMs:l.leaseGraceMs,scrollbackBytes:l.scrollbackBytes,windowSize:l.windowSize,submitDelayMs:l.submitDelayMs,...e.baseDir?{baseDir:e.baseDir}:{}},_=e.spawnHost??u;await _({entry:n,spec:f,logPath:(0,a.ptyLogPath)(r.id,e.baseDir),cwd:r.cwd,env:g});let k=await w(r.id,e.baseDir);if(!k)throw new c(`pty host did not come up; see ${(0,a.ptyLogPath)(r.id,e.baseDir)}`);return{id:r.id,agent:r.agent,kind:"pty",host:(e.hostname??i.hostname)(),cwd:r.cwd,pty:{pid:k.pid,socket:k.socket,runId:k.runId},argv:e.argv,...r.sessionId?{sessionId:r.sessionId}:{}}}async function w(e,r){let t=Date.now()+8e3;for(;Date.now()<t;){let t=await (0,a.readPtyMeta)(e,r);if(t&&await (0,s.ptyHostAlive)(t.socket))return t;await (0,n.setTimeout)(100)}}async function v(e){return await (0,s.resolveWorkspaceDir)(e)??(0,s.workspaceDir)(e)}e.s([],27089),e.i(27089),e.s(["PtyCarrierUnavailable",0,c,"startManagerPtySession",0,h],25038)},47714,e=>{e.v(e=>Promise.resolve().then(()=>e(46063)))},60815,e=>{e.v(e=>Promise.resolve().then(()=>e(24868)))},13172,e=>{e.v(s=>Promise.all(["server/chunks/packages_agent-registry_dist_index_1h1jlup.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(s=>e.l(s))).then(()=>s(6969)))},47800,e=>{e.v(s=>Promise.all(["server/chunks/[root-of-the-server]__02kc2og._.js","server/chunks/packages_relay_dist_chunk-NBDEMY4P_0jzzve0.js","server/chunks/_0vg6gvw._.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(s=>e.l(s))).then(()=>s(25038)))}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__02kc2og._.js.map
@@ -1,3 +0,0 @@
1
- module.exports=[60526,(e,r,s)=>{r.exports=e.x("node:os",()=>require("node:os"))},2157,(e,r,s)=>{r.exports=e.x("node:fs",()=>require("node:fs"))},81111,(e,r,s)=>{r.exports=e.x("node:stream",()=>require("node:stream"))},74533,(e,r,s)=>{r.exports=e.x("node:child_process",()=>require("node:child_process"))},57764,(e,r,s)=>{r.exports=e.x("node:url",()=>require("node:url"))},99871,(e,r,s)=>{r.exports=e.x("node:string_decoder",()=>require("node:string_decoder"))},12057,(e,r,s)=>{r.exports=e.x("node:util",()=>require("node:util"))},59639,(e,r,s)=>{r.exports=e.x("node:process",()=>require("node:process"))},9656,(e,r,s)=>{r.exports=e.x("node:tty",()=>require("node:tty"))},33405,(e,r,s)=>{r.exports=e.x("child_process",()=>require("child_process"))},36340,(e,r,s)=>{r.exports=e.x("node:timers/promises",()=>require("node:timers/promises"))},87769,(e,r,s)=>{r.exports=e.x("node:events",()=>require("node:events"))},44385,(e,r,s)=>{r.exports=e.x("node:v8",()=>require("node:v8"))},51615,(e,r,s)=>{r.exports=e.x("node:buffer",()=>require("node:buffer"))},88646,(e,r,s)=>{r.exports=e.x("node:stream/promises",()=>require("node:stream/promises"))},4446,(e,r,s)=>{r.exports=e.x("net",()=>require("net"))},21517,(e,r,s)=>{r.exports=e.x("http",()=>require("http"))},92509,(e,r,s)=>{r.exports=e.x("url",()=>require("url"))},8531,e=>{"use strict";var r=e.i(25206);e.i(85233),e.i(72939),e.s(["boxSshDirForProvider",()=>r.boxSshDirForProvider,"mutateState",()=>r.mutateState,"readState",()=>r.readState])},47714,e=>{e.v(e=>Promise.resolve().then(()=>e(46063)))},60815,e=>{e.v(e=>Promise.resolve().then(()=>e(24868)))},13172,e=>{e.v(r=>Promise.all(["server/chunks/packages_agent-registry_dist_index_1h1jlup.js","server/chunks/packages_agent-registry_dist_index_1ze3mqq.js"].map(r=>e.l(r))).then(()=>r(6969)))}];
2
-
3
- //# sourceMappingURL=%5Broot-of-the-server%5D__02sueng._.js.map