@madarco/agentbox 0.31.0 → 0.31.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 (912) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/{_cloud-attach-CGH4ETV4.js → _cloud-attach-AXWUCRWB.js} +3 -3
  3. package/dist/{chunk-XGMVKF4D.js → chunk-4IWF23UX.js} +2 -2
  4. package/dist/{chunk-7B5UQ4TZ.js → chunk-63ZQVPLG.js} +2 -2
  5. package/dist/{chunk-XR4DJ5CE.js → chunk-EZAQMVVF.js} +12 -12
  6. package/dist/{chunk-XAN5OA2G.js → chunk-FPU5NDXS.js} +2 -2
  7. package/dist/{chunk-EE6QYX7K.js → chunk-JRKEM7MP.js} +2 -2
  8. package/dist/{chunk-AVA37UUL.js → chunk-LI5DIISL.js} +4 -4
  9. package/dist/{chunk-CQSO43K2.js → chunk-T5DMSP72.js} +4 -4
  10. package/dist/{chunk-AHGKZ4XT.js → chunk-U6P5XEUV.js} +3 -3
  11. package/dist/{chunk-T7HSUEJ2.js → chunk-WDZ2IBLL.js} +6 -6
  12. package/dist/{control-plane-RVOT72RR.js → control-plane-WLYSZJ47.js} +4 -4
  13. package/dist/{deploy-hetzner-XWLX4A27.js → deploy-hetzner-K5ASROTK.js} +2 -2
  14. package/dist/{hub-WELYMA4S.js → hub-OX4YPVNZ.js} +5 -5
  15. package/dist/{hub-docker-target-FZEG42LK.js → hub-docker-target-2PS3AAGX.js} +4 -4
  16. package/dist/index.js +22 -22
  17. package/dist/{prepare-SO67S5YF.js → prepare-UYXYLGDO.js} +8 -8
  18. package/dist/{prepared-custody-SJSYXY64.js → prepared-custody-CVJ6G3FL.js} +5 -5
  19. package/dist/{publish-credentials-WLHZK4BZ.js → publish-credentials-AXWNXFML.js} +2 -2
  20. package/dist/{remote-docker-share-IHADSWLQ.js → remote-docker-share-QIQGOWNM.js} +2 -2
  21. package/package.json +1 -1
  22. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -0
  23. package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +68 -0
  24. package/runtime/hub/apps/hub/.next/build-manifest.json +21 -0
  25. package/runtime/hub/apps/hub/.next/package.json +1 -0
  26. package/runtime/hub/apps/hub/.next/prerender-manifest.json +36 -0
  27. package/runtime/hub/apps/hub/.next/required-server-files.json +355 -0
  28. package/runtime/hub/apps/hub/.next/routes-manifest.json +528 -0
  29. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/app-paths-manifest.json +3 -0
  30. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/build-manifest.json +9 -0
  31. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/server-reference-manifest.json +4 -0
  32. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +13 -0
  33. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.map +5 -0
  34. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -0
  35. package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route_client-reference-manifest.js +3 -0
  36. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/app-paths-manifest.json +3 -0
  37. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/build-manifest.json +17 -0
  38. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/next-font-manifest.json +13 -0
  39. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/react-loadable-manifest.json +1 -0
  40. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/server-reference-manifest.json +4 -0
  41. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js +14 -0
  42. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.map +5 -0
  43. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.nft.json +1 -0
  44. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +3 -0
  45. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/app-paths-manifest.json +3 -0
  46. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/build-manifest.json +9 -0
  47. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/server-reference-manifest.json +4 -0
  48. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js +7 -0
  49. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js.map +5 -0
  50. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js.nft.json +1 -0
  51. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route_client-reference-manifest.js +3 -0
  52. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/app-paths-manifest.json +3 -0
  53. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/build-manifest.json +9 -0
  54. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/server-reference-manifest.json +4 -0
  55. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js +7 -0
  56. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js.map +5 -0
  57. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js.nft.json +1 -0
  58. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route_client-reference-manifest.js +3 -0
  59. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/agents/route/app-paths-manifest.json +3 -0
  60. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/agents/route/build-manifest.json +9 -0
  61. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/agents/route/server-reference-manifest.json +4 -0
  62. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/agents/route.js +7 -0
  63. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/agents/route.js.map +5 -0
  64. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/agents/route.js.nft.json +1 -0
  65. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/agents/route_client-reference-manifest.js +3 -0
  66. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/app-paths-manifest.json +3 -0
  67. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/build-manifest.json +9 -0
  68. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/server-reference-manifest.json +4 -0
  69. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +10 -0
  70. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.map +5 -0
  71. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -0
  72. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route_client-reference-manifest.js +3 -0
  73. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/app-paths-manifest.json +3 -0
  74. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/build-manifest.json +9 -0
  75. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/server-reference-manifest.json +4 -0
  76. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js +9 -0
  77. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.map +5 -0
  78. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -0
  79. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route_client-reference-manifest.js +3 -0
  80. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/app-paths-manifest.json +3 -0
  81. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/build-manifest.json +9 -0
  82. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/server-reference-manifest.json +4 -0
  83. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +10 -0
  84. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.map +5 -0
  85. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -0
  86. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route_client-reference-manifest.js +3 -0
  87. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route/app-paths-manifest.json +3 -0
  88. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route/build-manifest.json +9 -0
  89. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route/server-reference-manifest.json +4 -0
  90. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js +9 -0
  91. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.map +5 -0
  92. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -0
  93. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route_client-reference-manifest.js +3 -0
  94. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route/app-paths-manifest.json +3 -0
  95. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route/build-manifest.json +9 -0
  96. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route/server-reference-manifest.json +4 -0
  97. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js +10 -0
  98. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.map +5 -0
  99. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.nft.json +1 -0
  100. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route_client-reference-manifest.js +3 -0
  101. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/app-paths-manifest.json +3 -0
  102. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/build-manifest.json +9 -0
  103. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/server-reference-manifest.json +4 -0
  104. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js +9 -0
  105. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.map +5 -0
  106. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -0
  107. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route_client-reference-manifest.js +3 -0
  108. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route/app-paths-manifest.json +3 -0
  109. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route/build-manifest.json +9 -0
  110. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route/server-reference-manifest.json +4 -0
  111. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js +10 -0
  112. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.map +5 -0
  113. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -0
  114. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route_client-reference-manifest.js +3 -0
  115. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route/app-paths-manifest.json +3 -0
  116. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route/build-manifest.json +9 -0
  117. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route/server-reference-manifest.json +4 -0
  118. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js +10 -0
  119. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.map +5 -0
  120. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.nft.json +1 -0
  121. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route_client-reference-manifest.js +3 -0
  122. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/app-paths-manifest.json +3 -0
  123. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/build-manifest.json +9 -0
  124. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/server-reference-manifest.json +4 -0
  125. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +10 -0
  126. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.map +5 -0
  127. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -0
  128. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route_client-reference-manifest.js +3 -0
  129. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/app-paths-manifest.json +3 -0
  130. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/build-manifest.json +9 -0
  131. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/server-reference-manifest.json +4 -0
  132. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js +9 -0
  133. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.map +5 -0
  134. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -0
  135. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route_client-reference-manifest.js +3 -0
  136. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route/app-paths-manifest.json +3 -0
  137. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route/build-manifest.json +9 -0
  138. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route/server-reference-manifest.json +4 -0
  139. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js +9 -0
  140. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.map +5 -0
  141. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -0
  142. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route_client-reference-manifest.js +3 -0
  143. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route/app-paths-manifest.json +3 -0
  144. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route/build-manifest.json +9 -0
  145. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route/server-reference-manifest.json +4 -0
  146. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js +10 -0
  147. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.map +5 -0
  148. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -0
  149. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route_client-reference-manifest.js +3 -0
  150. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/app-paths-manifest.json +3 -0
  151. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/build-manifest.json +9 -0
  152. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route/server-reference-manifest.json +4 -0
  153. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js +10 -0
  154. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.map +5 -0
  155. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -0
  156. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route_client-reference-manifest.js +3 -0
  157. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/app-paths-manifest.json +3 -0
  158. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/build-manifest.json +9 -0
  159. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/server-reference-manifest.json +4 -0
  160. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js +9 -0
  161. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.map +5 -0
  162. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -0
  163. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route_client-reference-manifest.js +3 -0
  164. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/app-paths-manifest.json +3 -0
  165. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/build-manifest.json +9 -0
  166. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/server-reference-manifest.json +4 -0
  167. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +10 -0
  168. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.map +5 -0
  169. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -0
  170. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route_client-reference-manifest.js +3 -0
  171. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/app-paths-manifest.json +3 -0
  172. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/build-manifest.json +9 -0
  173. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/server-reference-manifest.json +4 -0
  174. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js +9 -0
  175. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.map +5 -0
  176. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -0
  177. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route_client-reference-manifest.js +3 -0
  178. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/stream/route/app-paths-manifest.json +3 -0
  179. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/stream/route/build-manifest.json +9 -0
  180. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/stream/route/server-reference-manifest.json +4 -0
  181. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/stream/route.js +7 -0
  182. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/stream/route.js.map +5 -0
  183. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/stream/route.js.nft.json +1 -0
  184. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/stream/route_client-reference-manifest.js +3 -0
  185. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route/app-paths-manifest.json +3 -0
  186. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route/build-manifest.json +9 -0
  187. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route/server-reference-manifest.json +4 -0
  188. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js +10 -0
  189. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.map +5 -0
  190. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.nft.json +1 -0
  191. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route_client-reference-manifest.js +3 -0
  192. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route/app-paths-manifest.json +3 -0
  193. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route/build-manifest.json +9 -0
  194. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route/server-reference-manifest.json +4 -0
  195. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js +9 -0
  196. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.map +5 -0
  197. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -0
  198. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route_client-reference-manifest.js +3 -0
  199. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route/app-paths-manifest.json +3 -0
  200. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route/build-manifest.json +9 -0
  201. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route/server-reference-manifest.json +4 -0
  202. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js +9 -0
  203. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.map +5 -0
  204. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.nft.json +1 -0
  205. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route_client-reference-manifest.js +3 -0
  206. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/app-paths-manifest.json +3 -0
  207. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/build-manifest.json +9 -0
  208. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/server-reference-manifest.json +4 -0
  209. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +10 -0
  210. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.map +5 -0
  211. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -0
  212. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route_client-reference-manifest.js +3 -0
  213. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route/app-paths-manifest.json +3 -0
  214. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route/build-manifest.json +9 -0
  215. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route/server-reference-manifest.json +4 -0
  216. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js +9 -0
  217. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.map +5 -0
  218. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -0
  219. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route_client-reference-manifest.js +3 -0
  220. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route/app-paths-manifest.json +3 -0
  221. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route/build-manifest.json +9 -0
  222. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route/server-reference-manifest.json +4 -0
  223. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js +9 -0
  224. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js.map +5 -0
  225. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js.nft.json +1 -0
  226. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route_client-reference-manifest.js +3 -0
  227. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route/app-paths-manifest.json +3 -0
  228. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route/build-manifest.json +9 -0
  229. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route/server-reference-manifest.json +4 -0
  230. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route.js +8 -0
  231. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route.js.map +5 -0
  232. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route.js.nft.json +1 -0
  233. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route_client-reference-manifest.js +3 -0
  234. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/route/app-paths-manifest.json +3 -0
  235. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/route/build-manifest.json +9 -0
  236. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/route/server-reference-manifest.json +4 -0
  237. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/route.js +7 -0
  238. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/route.js.map +5 -0
  239. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/route.js.nft.json +1 -0
  240. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/route_client-reference-manifest.js +3 -0
  241. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/app-paths-manifest.json +3 -0
  242. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/build-manifest.json +9 -0
  243. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/server-reference-manifest.json +4 -0
  244. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js +8 -0
  245. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.map +5 -0
  246. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.nft.json +1 -0
  247. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route_client-reference-manifest.js +3 -0
  248. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/app-paths-manifest.json +3 -0
  249. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/build-manifest.json +9 -0
  250. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/server-reference-manifest.json +4 -0
  251. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js +8 -0
  252. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.map +5 -0
  253. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.nft.json +1 -0
  254. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route_client-reference-manifest.js +3 -0
  255. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route/app-paths-manifest.json +3 -0
  256. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route/build-manifest.json +9 -0
  257. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route/server-reference-manifest.json +4 -0
  258. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js +9 -0
  259. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.map +5 -0
  260. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -0
  261. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route_client-reference-manifest.js +3 -0
  262. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route/app-paths-manifest.json +3 -0
  263. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route/build-manifest.json +9 -0
  264. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route/server-reference-manifest.json +4 -0
  265. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js +9 -0
  266. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.map +5 -0
  267. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -0
  268. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route_client-reference-manifest.js +3 -0
  269. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route/app-paths-manifest.json +3 -0
  270. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route/build-manifest.json +9 -0
  271. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route/server-reference-manifest.json +4 -0
  272. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js +10 -0
  273. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.map +5 -0
  274. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -0
  275. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route_client-reference-manifest.js +3 -0
  276. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/app-paths-manifest.json +3 -0
  277. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/build-manifest.json +9 -0
  278. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/server-reference-manifest.json +4 -0
  279. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +10 -0
  280. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.map +5 -0
  281. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -0
  282. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route_client-reference-manifest.js +3 -0
  283. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/app-paths-manifest.json +3 -0
  284. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/build-manifest.json +9 -0
  285. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/server-reference-manifest.json +4 -0
  286. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js +9 -0
  287. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.map +5 -0
  288. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -0
  289. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route_client-reference-manifest.js +3 -0
  290. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/app-paths-manifest.json +3 -0
  291. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/build-manifest.json +9 -0
  292. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/server-reference-manifest.json +4 -0
  293. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js +9 -0
  294. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.map +5 -0
  295. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -0
  296. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route_client-reference-manifest.js +3 -0
  297. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route/app-paths-manifest.json +3 -0
  298. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route/build-manifest.json +9 -0
  299. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route/server-reference-manifest.json +4 -0
  300. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js +9 -0
  301. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.map +5 -0
  302. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -0
  303. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route_client-reference-manifest.js +3 -0
  304. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route/app-paths-manifest.json +3 -0
  305. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route/build-manifest.json +9 -0
  306. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route/server-reference-manifest.json +4 -0
  307. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js +9 -0
  308. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.map +5 -0
  309. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -0
  310. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route_client-reference-manifest.js +3 -0
  311. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/app-paths-manifest.json +3 -0
  312. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/build-manifest.json +9 -0
  313. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/server-reference-manifest.json +4 -0
  314. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js +8 -0
  315. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.map +5 -0
  316. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.nft.json +1 -0
  317. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route_client-reference-manifest.js +3 -0
  318. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route/app-paths-manifest.json +3 -0
  319. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route/build-manifest.json +9 -0
  320. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route/server-reference-manifest.json +4 -0
  321. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js +9 -0
  322. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.map +5 -0
  323. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.nft.json +1 -0
  324. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route_client-reference-manifest.js +3 -0
  325. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/app-paths-manifest.json +3 -0
  326. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/build-manifest.json +9 -0
  327. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/server-reference-manifest.json +4 -0
  328. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js +9 -0
  329. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.map +5 -0
  330. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -0
  331. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route_client-reference-manifest.js +3 -0
  332. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route/app-paths-manifest.json +3 -0
  333. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route/build-manifest.json +9 -0
  334. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route/server-reference-manifest.json +4 -0
  335. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js +10 -0
  336. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.map +5 -0
  337. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.nft.json +1 -0
  338. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route_client-reference-manifest.js +3 -0
  339. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route/app-paths-manifest.json +3 -0
  340. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route/build-manifest.json +9 -0
  341. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route/server-reference-manifest.json +4 -0
  342. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js +10 -0
  343. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.map +5 -0
  344. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.nft.json +1 -0
  345. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route_client-reference-manifest.js +3 -0
  346. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/app-paths-manifest.json +3 -0
  347. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/build-manifest.json +9 -0
  348. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/server-reference-manifest.json +4 -0
  349. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js +9 -0
  350. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.map +5 -0
  351. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -0
  352. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route_client-reference-manifest.js +3 -0
  353. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route/app-paths-manifest.json +3 -0
  354. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route/build-manifest.json +9 -0
  355. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route/server-reference-manifest.json +4 -0
  356. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js +9 -0
  357. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.map +5 -0
  358. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -0
  359. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route_client-reference-manifest.js +3 -0
  360. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/app-paths-manifest.json +3 -0
  361. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/build-manifest.json +9 -0
  362. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/server-reference-manifest.json +4 -0
  363. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +10 -0
  364. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.map +5 -0
  365. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -0
  366. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route_client-reference-manifest.js +3 -0
  367. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/app-paths-manifest.json +3 -0
  368. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/build-manifest.json +9 -0
  369. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/server-reference-manifest.json +4 -0
  370. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +10 -0
  371. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.map +5 -0
  372. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -0
  373. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route_client-reference-manifest.js +3 -0
  374. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/app-paths-manifest.json +3 -0
  375. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/build-manifest.json +9 -0
  376. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/server-reference-manifest.json +4 -0
  377. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +10 -0
  378. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.map +5 -0
  379. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -0
  380. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route_client-reference-manifest.js +3 -0
  381. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route/app-paths-manifest.json +3 -0
  382. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route/build-manifest.json +9 -0
  383. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route/server-reference-manifest.json +4 -0
  384. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js +10 -0
  385. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.map +5 -0
  386. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.nft.json +1 -0
  387. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route_client-reference-manifest.js +3 -0
  388. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/app-paths-manifest.json +3 -0
  389. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/build-manifest.json +9 -0
  390. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/server-reference-manifest.json +4 -0
  391. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js +9 -0
  392. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.map +5 -0
  393. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -0
  394. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route_client-reference-manifest.js +3 -0
  395. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route/app-paths-manifest.json +3 -0
  396. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route/build-manifest.json +9 -0
  397. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route/server-reference-manifest.json +4 -0
  398. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js +10 -0
  399. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.map +5 -0
  400. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -0
  401. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route_client-reference-manifest.js +3 -0
  402. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route/app-paths-manifest.json +3 -0
  403. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route/build-manifest.json +9 -0
  404. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route/server-reference-manifest.json +4 -0
  405. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js +9 -0
  406. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.map +5 -0
  407. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -0
  408. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route_client-reference-manifest.js +3 -0
  409. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/app-paths-manifest.json +3 -0
  410. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/build-manifest.json +17 -0
  411. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/next-font-manifest.json +13 -0
  412. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/react-loadable-manifest.json +1 -0
  413. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +17 -0
  414. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js +17 -0
  415. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.map +5 -0
  416. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -0
  417. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +3 -0
  418. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/app-paths-manifest.json +3 -0
  419. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/build-manifest.json +17 -0
  420. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/next-font-manifest.json +13 -0
  421. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/react-loadable-manifest.json +1 -0
  422. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +149 -0
  423. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js +17 -0
  424. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.map +5 -0
  425. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -0
  426. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +3 -0
  427. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route/app-paths-manifest.json +3 -0
  428. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route/build-manifest.json +9 -0
  429. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route/server-reference-manifest.json +4 -0
  430. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js +9 -0
  431. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.map +5 -0
  432. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -0
  433. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route_client-reference-manifest.js +3 -0
  434. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route/app-paths-manifest.json +3 -0
  435. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route/build-manifest.json +9 -0
  436. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route/server-reference-manifest.json +4 -0
  437. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js +9 -0
  438. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.map +5 -0
  439. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.nft.json +1 -0
  440. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route_client-reference-manifest.js +3 -0
  441. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/app-paths-manifest.json +3 -0
  442. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/build-manifest.json +17 -0
  443. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/next-font-manifest.json +13 -0
  444. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/react-loadable-manifest.json +1 -0
  445. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/server-reference-manifest.json +4 -0
  446. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js +16 -0
  447. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.map +5 -0
  448. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -0
  449. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page_client-reference-manifest.js +3 -0
  450. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/app-paths-manifest.json +3 -0
  451. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/build-manifest.json +17 -0
  452. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/next-font-manifest.json +13 -0
  453. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/react-loadable-manifest.json +1 -0
  454. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +149 -0
  455. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js +17 -0
  456. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.map +5 -0
  457. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -0
  458. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +3 -0
  459. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/app-paths-manifest.json +3 -0
  460. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/build-manifest.json +17 -0
  461. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/next-font-manifest.json +13 -0
  462. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/react-loadable-manifest.json +1 -0
  463. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +101 -0
  464. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js +17 -0
  465. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.map +5 -0
  466. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -0
  467. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +3 -0
  468. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/app-paths-manifest.json +3 -0
  469. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/build-manifest.json +17 -0
  470. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/next-font-manifest.json +13 -0
  471. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/react-loadable-manifest.json +1 -0
  472. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/server-reference-manifest.json +4 -0
  473. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js +16 -0
  474. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.map +5 -0
  475. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -0
  476. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +3 -0
  477. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/app-paths-manifest.json +3 -0
  478. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/build-manifest.json +17 -0
  479. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/next-font-manifest.json +13 -0
  480. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/react-loadable-manifest.json +1 -0
  481. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/server-reference-manifest.json +4 -0
  482. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js +16 -0
  483. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.map +5 -0
  484. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -0
  485. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page_client-reference-manifest.js +3 -0
  486. package/runtime/hub/apps/hub/.next/server/app/[...path]/route/app-paths-manifest.json +3 -0
  487. package/runtime/hub/apps/hub/.next/server/app/[...path]/route/build-manifest.json +9 -0
  488. package/runtime/hub/apps/hub/.next/server/app/[...path]/route/server-reference-manifest.json +4 -0
  489. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +13 -0
  490. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.map +5 -0
  491. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -0
  492. package/runtime/hub/apps/hub/.next/server/app/[...path]/route_client-reference-manifest.js +3 -0
  493. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
  494. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/build-manifest.json +17 -0
  495. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
  496. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
  497. package/runtime/hub/apps/hub/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
  498. package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js +10 -0
  499. package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.map +5 -0
  500. package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.nft.json +1 -0
  501. package/runtime/hub/apps/hub/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
  502. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -0
  503. package/runtime/hub/apps/hub/.next/server/app/_global-error.meta +15 -0
  504. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +14 -0
  505. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
  506. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
  507. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
  508. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
  509. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
  510. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
  511. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/build-manifest.json +17 -0
  512. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/next-font-manifest.json +13 -0
  513. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
  514. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
  515. package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js +13 -0
  516. package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.map +5 -0
  517. package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.nft.json +1 -0
  518. package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
  519. package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +68 -0
  520. package/runtime/hub/apps/hub/.next/server/chunks/0-fj_better-auth_dist_adapters_kysely-adapter_index_mjs_0btft52._.js +3 -0
  521. package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_0jw_ngm._.js +3 -0
  522. package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_0z6cvsk._.js +3 -0
  523. package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_210bxd8._.js +3 -0
  524. package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_index_mjs_0h-j5xt._.js +4 -0
  525. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(auth)_api_auth_[___all]_route_actions_1agi0ag.js +3 -0
  526. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_agents_route_actions_086j7ku.js +3 -0
  527. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_boxes_route_actions_1ggp_5o.js +3 -0
  528. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_custody_route_actions_09f493i.js +3 -0
  529. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_health_route_actions_017gnzg.js +3 -0
  530. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_hosts_route_actions_0b_404_.js +3 -0
  531. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_projects_route_actions_04w8ozk.js +3 -0
  532. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_prune_route_actions_1hpttqf.js +3 -0
  533. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_system_route_actions_1-oi6mp.js +3 -0
  534. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_boxes_[id]_vnc_route_actions_1cy1392.js +3 -0
  535. package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_boxes_[id]_web_route_actions_0d77wbq.js +3 -0
  536. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_projects_[id]_create-preflight_route_actions_1fz_8h-.js +3 -0
  537. package/runtime/hub/apps/hub/.next/server/chunks/09mp_@better-auth_memory-adapter_dist_index_mjs_0ti_30h._.js +3 -0
  538. package/runtime/hub/apps/hub/.next/server/chunks/09xn_next_0tn6frk._.js +6 -0
  539. package/runtime/hub/apps/hub/.next/server/chunks/09xn_next_dist_esm_build_templates_app-route_0qd2whc.js +461 -0
  540. package/runtime/hub/apps/hub/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +3 -0
  541. package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_095p8vu._.js +3 -0
  542. package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_1skbhvx._.js +3 -0
  543. package/runtime/hub/apps/hub/.next/server/chunks/0sj1_@opentelemetry_api_build_esm_index_0xy-j06.js +3 -0
  544. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_jobs_[id]_logs_route_actions_01aqmf3.js +3 -0
  545. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_approvals_route_actions_1vwxs9a.js +3 -0
  546. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_boxes_[id]_route_actions_01510xg.js +3 -0
  547. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_checkpoints_route_actions_0f5ys2e.js +3 -0
  548. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_jobs_[id]_route_actions_0oc630h.js +3 -0
  549. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_open-targets_route_actions_1z-vd4m.js +3 -0
  550. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_openapi_json_route_actions_1lunxjz.js +3 -0
  551. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_providers_route_actions_1666ry8.js +3 -0
  552. package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_hosts_[alias]_route_actions_0swypy5.js +3 -0
  553. package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_projects_[id]_route_actions_1beikpx.js +3 -0
  554. package/runtime/hub/apps/hub/.next/server/chunks/151__@better-auth_core_dist_0ecdp_3._.js +5 -0
  555. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_approvals_[id]_answer_route_actions_1cq4z5x.js +3 -0
  556. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_[action]_route_actions_0cib0ju.js +3 -0
  557. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_agent_route_actions_108dlk0.js +3 -0
  558. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_backup_route_actions_1q8ne87.js +3 -0
  559. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_branches_route_actions_15snjix.js +3 -0
  560. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_checkpoint_route_actions_1jam6-g.js +3 -0
  561. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_clone_route_actions_1uyw4vk.js +3 -0
  562. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_git_[op]_route_actions_116a41w.js +3 -0
  563. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_git_route_actions_1a-q-i2.js +3 -0
  564. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_logs_route_actions_0uebl-z.js +3 -0
  565. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_open_route_actions_1agwl8h.js +3 -0
  566. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_rename_route_actions_0mf3a9p.js +3 -0
  567. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_services_restart_route_actions_1yvsbmm.js +3 -0
  568. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_services_route_actions_1uvv36v.js +3 -0
  569. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_stream_route_actions_10rv7cx.js +3 -0
  570. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_upload_route_actions_1sgpja3.js +3 -0
  571. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_vnc_route_actions_10y_e83.js +3 -0
  572. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_web_route_actions_1i6vjni.js +3 -0
  573. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_custody_[___path]_route_actions_0n8gxh6.js +3 -0
  574. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_custody_blob_[___path]_route_actions_0pblwu0.js +3 -0
  575. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_hosts_[alias]_bake_route_actions_1-_pu3n.js +3 -0
  576. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_jobs_[id]_login-code_route_actions_1825jmw.js +3 -0
  577. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_jobs_[id]_logs_route_actions_0msc0_w.js +3 -0
  578. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_projects_[id]_bots_route_actions_1ihq5kp.js +3 -0
  579. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_projects_[id]_branches_route_actions_07i0vrw.js +3 -0
  580. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_projects_[id]_restore_route_actions_02k7clv.js +3 -0
  581. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_projects_[id]_seed_route_actions_0_4p3gs.js +3 -0
  582. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_credentials_route_actions_1cds5re.js +3 -0
  583. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_prepare_route_actions_079fbng.js +3 -0
  584. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_size-check_route_actions_0zgoguy.js +3 -0
  585. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_0gvv4ct._.js +4 -0
  586. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_0pn9b49._.js +4 -0
  587. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_145bz8z._.js +9 -0
  588. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_14y990b._.js +3 -0
  589. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_1nl4l3q._.js +3 -0
  590. package/runtime/hub/apps/hub/.next/server/chunks/1w4z_drizzle-orm_sqlite-proxy_index_05v_j5r.js +15 -0
  591. package/runtime/hub/apps/hub/.next/server/chunks/[externals]__14ecq5v._.js +3 -0
  592. package/runtime/hub/apps/hub/.next/server/chunks/[externals]_pg_15jfwkh._.js +3 -0
  593. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-c97gb._.js +3 -0
  594. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__008zqfx._.js +3 -0
  595. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00bupbc._.js +3 -0
  596. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00o_3sf._.js +3 -0
  597. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01fy5q0._.js +3 -0
  598. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__028ifqb._.js +3 -0
  599. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02s5f9s._.js +3 -0
  600. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03fxkqp._.js +3 -0
  601. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04b75a4._.js +3 -0
  602. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05_wgfq._.js +3 -0
  603. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05uinnp._.js +3 -0
  604. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__074mxl5._.js +3 -0
  605. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08jg8w8._.js +3 -0
  606. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08xwxyo._.js +3 -0
  607. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09059m-._.js +3 -0
  608. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__092y7_z._.js +3 -0
  609. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_mog_h._.js +3 -0
  610. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0azx8z8._.js +3 -0
  611. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bmro0b._.js +3 -0
  612. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bv_k0d._.js +3 -0
  613. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c1o4qr._.js +3 -0
  614. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c5mzbr._.js +3 -0
  615. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cdoz9i._.js +3 -0
  616. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cmu4sk._.js +3 -0
  617. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cxjxz0._.js +3 -0
  618. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +105 -0
  619. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d34880._.js +3 -0
  620. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dm5oqm._.js +3 -0
  621. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dy5g2k._.js +3 -0
  622. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e1uaxg._.js +3 -0
  623. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0engd-e._.js +3 -0
  624. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ets4cd._.js +3 -0
  625. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ewh0df._.js +3 -0
  626. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f2u0ul._.js +3 -0
  627. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f9p_4f._.js +3 -0
  628. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_4fiu._.js +3 -0
  629. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_jmq2._.js +3 -0
  630. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fksz_r._.js +3 -0
  631. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gaknnd._.js +3 -0
  632. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gym-rp._.js +3 -0
  633. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h181r5._.js +3 -0
  634. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hhlb2_._.js +3 -0
  635. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i9phow._.js +3 -0
  636. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ikyoac._.js +3 -0
  637. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j72bti._.js +3 -0
  638. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jb371p._.js +3 -0
  639. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kcw8t0._.js +3 -0
  640. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kdt9-i._.js +3 -0
  641. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l27vs0._.js +3 -0
  642. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0m5woxc._.js +3 -0
  643. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nndlre._.js +3 -0
  644. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o3sjtx._.js +3 -0
  645. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o4rocd._.js +3 -0
  646. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0onk5r0._.js +3 -0
  647. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qde3vr._.js +3 -0
  648. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ry8baf._.js +3 -0
  649. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s4vdow._.js +3 -0
  650. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0se1fty._.js +3 -0
  651. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sgjn2j._.js +3 -0
  652. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0spnud2._.js +3 -0
  653. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0st6oln._.js +3 -0
  654. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sz5p6g._.js +3 -0
  655. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t0p64l._.js +3 -0
  656. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t4qmv-._.js +3 -0
  657. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tv5sah._.js +3 -0
  658. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ve_tqz._.js +3 -0
  659. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vxaujy._.js +6 -0
  660. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w38hd_._.js +6 -0
  661. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wo4sqj._.js +3 -0
  662. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xl1-w6._.js +3 -0
  663. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yct1tu._.js +3 -0
  664. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yg67t0._.js +3 -0
  665. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0z2lkh_._.js +3 -0
  666. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi14f-._.js +3 -0
  667. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-8sj4i._.js +3 -0
  668. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-mtsr6._.js +3 -0
  669. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10yfcvu._.js +3 -0
  670. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11s1mrd._.js +3 -0
  671. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11xey3v._.js +3 -0
  672. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12b2kuv._.js +3 -0
  673. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12gbq5m._.js +3 -0
  674. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12p0ia1._.js +3 -0
  675. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__139ha9-._.js +3 -0
  676. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13vl4-h._.js +3 -0
  677. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__153b7kv._.js +3 -0
  678. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__157kmse._.js +3 -0
  679. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16695dw._.js +3 -0
  680. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16o0ij7._.js +3 -0
  681. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__175lucf._.js +3 -0
  682. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17df14g._.js +3 -0
  683. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17jzikc._.js +3 -0
  684. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18pwzaw._.js +3 -0
  685. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18xpvkc._.js +3 -0
  686. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__198-esg._.js +3 -0
  687. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19grunx._.js +3 -0
  688. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_cbcl1._.js +3 -0
  689. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1abclgc._.js +3 -0
  690. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1aboxh4._.js +3 -0
  691. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c0ex8m._.js +3 -0
  692. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c1rcl-._.js +3 -0
  693. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c9f4uu._.js +3 -0
  694. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cggpv7._.js +3 -0
  695. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ci8hc2._.js +3 -0
  696. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cpr4qy._.js +3 -0
  697. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d75vsx._.js +6 -0
  698. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1diw0ei._.js +3 -0
  699. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dp2exz._.js +3 -0
  700. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1epnstn._.js +3 -0
  701. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g5wnt2._.js +3 -0
  702. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g9v7bq._.js +3 -0
  703. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4akof._.js +3 -0
  704. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h_59cs._.js +3 -0
  705. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hlugb4._.js +3 -0
  706. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hux-70._.js +3 -0
  707. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1j6clag._.js +3 -0
  708. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1khvg39._.js +3 -0
  709. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m36v6k._.js +3 -0
  710. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1me3irq._.js +3 -0
  711. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mt32fu._.js +3 -0
  712. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n1_2tw._.js +3 -0
  713. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ob9yn9._.js +3 -0
  714. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pe6m2l._.js +3 -0
  715. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pk410t._.js +3 -0
  716. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q6xrlt._.js +6 -0
  717. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qt1i63._.js +3 -0
  718. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rjs_x0._.js +3 -0
  719. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rxud0j._.js +3 -0
  720. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1s5app0._.js +3 -0
  721. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1slo4q_._.js +3 -0
  722. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ta1gr1._.js +3 -0
  723. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1tfkm3m._.js +3 -0
  724. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1twtnwr._.js +3 -0
  725. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1uch-60._.js +3 -0
  726. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v9_her._.js +4 -0
  727. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vnnuo1._.js +3 -0
  728. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wi5roz._.js +3 -0
  729. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y9wbb2._.js +3 -0
  730. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ysubik._.js +3 -0
  731. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z7mgd6._.js +3 -0
  732. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zml9me._.js +3 -0
  733. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zrf_a6._.js +3 -0
  734. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20jyxyo._.js +6 -0
  735. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20opvks._.js +3 -0
  736. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ybhif._.js +3 -0
  737. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20zl5fr._.js +3 -0
  738. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__212dyoi._.js +3 -0
  739. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__218oup-._.js +3 -0
  740. package/runtime/hub/apps/hub/.next/server/chunks/[turbopack]_runtime.js +903 -0
  741. package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +27 -0
  742. package/runtime/hub/apps/hub/.next/server/chunks/_0mcxq5g._.js +3 -0
  743. package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +79 -0
  744. package/runtime/hub/apps/hub/.next/server/chunks/_0zfb0rb._.js +4 -0
  745. package/runtime/hub/apps/hub/.next/server/chunks/_1o5p4w_._.js +4 -0
  746. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_events_route_actions_17s9lxs.js +3 -0
  747. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_v1_docs_route_actions_0d-s_oo.js +3 -0
  748. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_v1_jobs_route_actions_20qqrdq.js +3 -0
  749. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_[___path]_route_actions_1hdraye.js +3 -0
  750. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_openapi_ts_1yokmzt._.js +14 -0
  751. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_validate_ts_16dhbzz._.js +3 -0
  752. package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1h1jlup.js +3 -0
  753. package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +107 -0
  754. package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +117 -0
  755. package/runtime/hub/apps/hub/.next/server/chunks/packages_sandbox-core_dist_index_12otajh.js +3 -0
  756. package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +3 -0
  757. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_1vemgz6._.js +6 -0
  758. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +3 -0
  759. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_1uccfbf._.js +6 -0
  760. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_20xzgz2._.js +3 -0
  761. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_forbidden_1x5yo9-.js +3 -0
  762. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_global-error_14poel6.js +3 -0
  763. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_unauthorized_0vj9qge.js +3 -0
  764. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +4 -0
  765. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +4 -0
  766. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +4 -0
  767. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +4 -0
  768. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +4 -0
  769. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +4 -0
  770. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +4 -0
  771. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_12iql7k.js +4 -0
  772. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +4 -0
  773. package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1hcmkyz.js +4 -0
  774. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_0ebuy19._.js +3 -0
  775. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_0wxhi0-._.js +3 -0
  776. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_0xe4ick._.js +9 -0
  777. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_14oaveu._.js +4 -0
  778. package/runtime/hub/apps/hub/.next/server/chunks/ssr/1w4z_drizzle-orm_sqlite-proxy_index_1a6wfdg.js +15 -0
  779. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[externals]_pg_15jfwkh._.js +3 -0
  780. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__03-x9xy._.js +19 -0
  781. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +3 -0
  782. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +3 -0
  783. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +3 -0
  784. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +3 -0
  785. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +3 -0
  786. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0m1akem._.js +3 -0
  787. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0m1yf2b._.js +4 -0
  788. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0qmliyt._.js +33 -0
  789. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +3 -0
  790. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__140qlw0._.js +3 -0
  791. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +33 -0
  792. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1c1x9zr._.js +3 -0
  793. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1jqga8h._.js +3 -0
  794. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +3 -0
  795. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1o7pwtt._.js +3 -0
  796. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1ogrfbc._.js +3 -0
  797. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1w78ucx._.js +3 -0
  798. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1z_fv26._.js +3 -0
  799. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
  800. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_053q38y._.js +3 -0
  801. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +3 -0
  802. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kzd494._.js +3 -0
  803. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +21 -0
  804. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +27 -0
  805. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +79 -0
  806. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1hrzkwr._.js +3 -0
  807. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_202__6o._.js +3 -0
  808. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0glk9of._.js +3 -0
  809. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0i637dy._.js +3 -0
  810. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0j5-o0f._.js +3 -0
  811. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_1-hoscg._.js +3 -0
  812. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_111ly04._.js +3 -0
  813. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_17myqp5._.js +3 -0
  814. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_1ak245a._.js +3 -0
  815. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(auth)_signin_page_actions_1vmiwl7.js +3 -0
  816. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +3 -0
  817. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +3 -0
  818. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_custody_page_actions_1l3eye7.js +3 -0
  819. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +3 -0
  820. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_settings_page_actions_0ti7gxm.js +3 -0
  821. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_system_page_actions_15ysdm5.js +3 -0
  822. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app__global-error_page_actions_1ofuxm1.js +3 -0
  823. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app__not-found_page_actions_1fmdkci.js +3 -0
  824. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +3 -0
  825. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +3 -0
  826. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_page_tsx_0o2z21l._.js +3 -0
  827. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_settings_page_tsx_0hv6n82._.js +3 -0
  828. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_system_page_tsx_0af_pu3._.js +3 -0
  829. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_lib_auth_client_ts_1uxjxr_._.js +3 -0
  830. package/runtime/hub/apps/hub/.next/server/chunks/ssr/node_modules__pnpm_04qfi10._.js +3 -0
  831. package/runtime/hub/apps/hub/.next/server/chunks/ssr/node_modules__pnpm_0kvuy0s._.js +33 -0
  832. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +107 -0
  833. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_124y82q.js +3 -0
  834. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +57 -0
  835. package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +70 -0
  836. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +21 -0
  837. package/runtime/hub/apps/hub/.next/server/middleware-manifest.json +6 -0
  838. package/runtime/hub/apps/hub/.next/server/middleware.js +5 -0
  839. package/runtime/hub/apps/hub/.next/server/next-font-manifest.js +1 -0
  840. package/runtime/hub/apps/hub/.next/server/next-font-manifest.json +61 -0
  841. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -0
  842. package/runtime/hub/apps/hub/.next/server/pages-manifest.json +3 -0
  843. package/runtime/hub/apps/hub/.next/server/prefetch-hints.json +1 -0
  844. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -0
  845. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +312 -0
  846. package/runtime/hub/apps/hub/.next/static/Yh_fE79Ysx3neelGLtcew/_buildManifest.js +11 -0
  847. package/runtime/hub/apps/hub/.next/static/Yh_fE79Ysx3neelGLtcew/_clientMiddlewareManifest.js +6 -0
  848. package/runtime/hub/apps/hub/.next/static/Yh_fE79Ysx3neelGLtcew/_ssgManifest.js +1 -0
  849. package/runtime/hub/apps/hub/.next/static/chunks/05dzzanyo20wx.js +1 -0
  850. package/runtime/hub/apps/hub/.next/static/chunks/06i3hqhwldtiq.js +1 -0
  851. package/runtime/hub/apps/hub/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
  852. package/runtime/hub/apps/hub/.next/static/chunks/0o-ash0w8ow06.js +1 -0
  853. package/runtime/hub/apps/hub/.next/static/chunks/0ptag81psa0nj.js +1 -0
  854. package/runtime/hub/apps/hub/.next/static/chunks/0tmbn9jje8ulx.js +1 -0
  855. package/runtime/hub/apps/hub/.next/static/chunks/13z_vo4y7za0y.js +1 -0
  856. package/runtime/hub/apps/hub/.next/static/chunks/1ct_kocalf1mw.js +1 -0
  857. package/runtime/hub/apps/hub/.next/static/chunks/22fqc0ktzjo6x.js +1 -0
  858. package/runtime/hub/apps/hub/.next/static/chunks/22ic_47gmsbhf.js +1 -0
  859. package/runtime/hub/apps/hub/.next/static/chunks/26ef4lcj-7-li.js +1 -0
  860. package/runtime/hub/apps/hub/.next/static/chunks/27t0b0mja1zpt.js +1 -0
  861. package/runtime/hub/apps/hub/.next/static/chunks/2hxatwkh8fha9.js +1 -0
  862. package/runtime/hub/apps/hub/.next/static/chunks/2ozcn3ku69ymf.js +1 -0
  863. package/runtime/hub/apps/hub/.next/static/chunks/2p2wxpcnygx0j.js +1 -0
  864. package/runtime/hub/apps/hub/.next/static/chunks/2vek3z0bw0bke.js +2 -0
  865. package/runtime/hub/apps/hub/.next/static/chunks/2x7nfpuaaba_a.js +1 -0
  866. package/runtime/hub/apps/hub/.next/static/chunks/31e1wjin30i__.css +3 -0
  867. package/runtime/hub/apps/hub/.next/static/chunks/38dg0m6sbz8hx.js +1 -0
  868. package/runtime/hub/apps/hub/.next/static/chunks/3c49t4evjq8hf.js +1 -0
  869. package/runtime/hub/apps/hub/.next/static/chunks/3o736nio6056k.js +31 -0
  870. package/runtime/hub/apps/hub/.next/static/chunks/3oc6y_gbi9g75.js +4 -0
  871. package/runtime/hub/apps/hub/.next/static/chunks/3pwnhuz8q-ch4.js +1 -0
  872. package/runtime/hub/apps/hub/.next/static/chunks/turbopack-25un8yxrkvr61.js +1 -0
  873. package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.29yke99gs9qpn.woff2 +0 -0
  874. package/runtime/hub/apps/hub/.next/static/media/03fc1b4a8d284b5e-s.p.0wiir8udbzjvx.woff2 +0 -0
  875. package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.0o-3_g79811ob.woff2 +0 -0
  876. package/runtime/hub/apps/hub/.next/static/media/1bcd0e671759a44c-s.2qt3tdwt-y9x_.woff2 +0 -0
  877. package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.226pwps5o-gq_.woff2 +0 -0
  878. package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.15orukf5wyxb5.woff2 +0 -0
  879. package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1u30mmyq6lnsd.woff2 +0 -0
  880. package/runtime/hub/apps/hub/.next/static/media/57215795b8570f5c-s.2rixgazldzomk.woff2 +0 -0
  881. package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.2vemzm0itqzfy.woff2 +0 -0
  882. package/runtime/hub/apps/hub/.next/static/media/5e05ae5b48faa55e-s.1yd4_i3e35931.woff2 +0 -0
  883. package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.1i-sca43-qwng.woff2 +0 -0
  884. package/runtime/hub/apps/hub/.next/static/media/6ff74e33ebd7bca3-s.352ti9pm7m6qh.woff2 +0 -0
  885. package/runtime/hub/apps/hub/.next/static/media/7fea77d1d19108bf-s.2y65deuc30pmy.woff2 +0 -0
  886. package/runtime/hub/apps/hub/.next/static/media/90c51ce8fb754fe8-s.02z5rrbg5nt92.woff2 +0 -0
  887. package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.40sczeszzbjw1.woff2 +0 -0
  888. package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.0ngr-xkgqz1kf.woff2 +0 -0
  889. package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.1qc6dx89jd2qv.woff2 +0 -0
  890. package/runtime/hub/apps/hub/.next/static/media/e15f58668ad64cb8-s.3cvcemwuzoywn.woff2 +0 -0
  891. package/runtime/hub/apps/hub/.next/static/media/e390973e931a41c5-s.0rgnxg2b64rzs.woff2 +0 -0
  892. package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.3cb5lpr2l6xud.woff2 +0 -0
  893. package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.0oace-s_gkfks.woff2 +0 -0
  894. package/runtime/hub/apps/hub/tsconfig.tsbuildinfo +1 -0
  895. /package/dist/{_cloud-attach-CGH4ETV4.js.map → _cloud-attach-AXWUCRWB.js.map} +0 -0
  896. /package/dist/{chunk-XGMVKF4D.js.map → chunk-4IWF23UX.js.map} +0 -0
  897. /package/dist/{chunk-7B5UQ4TZ.js.map → chunk-63ZQVPLG.js.map} +0 -0
  898. /package/dist/{chunk-XR4DJ5CE.js.map → chunk-EZAQMVVF.js.map} +0 -0
  899. /package/dist/{chunk-XAN5OA2G.js.map → chunk-FPU5NDXS.js.map} +0 -0
  900. /package/dist/{chunk-EE6QYX7K.js.map → chunk-JRKEM7MP.js.map} +0 -0
  901. /package/dist/{chunk-AVA37UUL.js.map → chunk-LI5DIISL.js.map} +0 -0
  902. /package/dist/{chunk-CQSO43K2.js.map → chunk-T5DMSP72.js.map} +0 -0
  903. /package/dist/{chunk-AHGKZ4XT.js.map → chunk-U6P5XEUV.js.map} +0 -0
  904. /package/dist/{chunk-T7HSUEJ2.js.map → chunk-WDZ2IBLL.js.map} +0 -0
  905. /package/dist/{control-plane-RVOT72RR.js.map → control-plane-WLYSZJ47.js.map} +0 -0
  906. /package/dist/{deploy-hetzner-XWLX4A27.js.map → deploy-hetzner-K5ASROTK.js.map} +0 -0
  907. /package/dist/{hub-WELYMA4S.js.map → hub-OX4YPVNZ.js.map} +0 -0
  908. /package/dist/{hub-docker-target-FZEG42LK.js.map → hub-docker-target-2PS3AAGX.js.map} +0 -0
  909. /package/dist/{prepare-SO67S5YF.js.map → prepare-UYXYLGDO.js.map} +0 -0
  910. /package/dist/{prepared-custody-SJSYXY64.js.map → prepared-custody-CVJ6G3FL.js.map} +0 -0
  911. /package/dist/{publish-credentials-WLHZK4BZ.js.map → publish-credentials-AXWNXFML.js.map} +0 -0
  912. /package/dist/{remote-docker-share-IHADSWLQ.js.map → remote-docker-share-QIQGOWNM.js.map} +0 -0
@@ -0,0 +1,3 @@
1
+ module.exports=[82337,a=>{"use strict";var b=a.i(33552),c=a.i(86834),d=a.i(87883);a.s(["Stat",0,function({k:a,v:d,mono:e,icon:f}){return(0,b.jsxs)("div",{className:"px-4.5 p-4",children:[(0,b.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:a}),(0,b.jsxs)("div",{className:(0,c.cn)("flex items-center gap-2 font-semibold tracking-[-0.01em]",e?"font-mono text-sm font-medium":"text-base"),children:[f?(0,b.jsx)(f,{className:"size-[15px] text-muted-foreground"}):null,d]})]})},"StatGrid",0,function({children:a}){return(0,b.jsx)(d.Card,{className:"grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] divide-x divide-border/60 overflow-hidden",children:a})}])},87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},17607,16146,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);function d(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}a.s(["fmtAgo",0,d,"fmtBytes",0,function(a){return a<1024?a+"B":a<1048576?(a/1024).toFixed(1)+"KB":(a/1048576).toFixed(1)+"MB"}],16146),a.s(["Ago",0,function({ms:a}){let[e,f]=(0,c.useState)(!1);return(0,c.useEffect)(()=>f(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:e?d(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},12019,a=>{"use strict";var b=a.i(33552),c=a.i(97187);a.s(["EmptyBox",0,function({children:a}){return(0,b.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,b.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,b.jsx)(c.Icons.box,{className:"size-5"})}),a]})}])},96664,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(6451),g=a.r(74786),h=a.r(50495)},60401,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(97187),f=a.i(18071),g=a.i(96664);let h=(0,g.createServerReference)("60470f87c7999b1dca9c512862da9659a80e8a731c",g.callServer,void 0,g.findSourceMapURL,"answerApprovalAction");a.s(["ApprovalActions",0,function({id:a,url:g}){let i=(0,c.useRouter)(),[j,k]=(0,d.useTransition)(),l=b=>{k(async()=>{let c=await h(a,b);c.ok||window.alert(`Failed: ${c.error}`),i.refresh()})};return g?(0,b.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,b.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:j,className:"hover:border-[var(--red-line)] hover:bg-[var(--red-soft)] hover:text-[var(--red)]",onClick:()=>l("n"),children:[(0,b.jsx)(e.Icons.x,{}),"Dismiss"]}),(0,b.jsxs)(f.Button,{size:"sm",href:g,target:"_blank",rel:"noreferrer",onClick:()=>{fetch(`/api/v1/approvals/${encodeURIComponent(a)}/answer`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({answer:"y",openedByClient:!0})}).catch(()=>void 0).finally(()=>{i.refresh()})},children:[(0,b.jsx)(e.Icons.ext,{}),"Open link"]})]}):(0,b.jsxs)("div",{className:"flex justify-end gap-1.5",children:[(0,b.jsxs)(f.Button,{variant:"outline",size:"sm",disabled:j,className:"hover:border-[var(--red-line)] hover:bg-[var(--red-soft)] hover:text-[var(--red)]",onClick:()=>l("n"),children:[(0,b.jsx)(e.Icons.x,{}),"Deny"]}),(0,b.jsxs)(f.Button,{size:"sm",disabled:j,onClick:()=>l("y"),children:[(0,b.jsx)(e.Icons.check,{}),"Approve"]})]})}],60401)},34537,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Label",0,function({className:a,...d}){return(0,b.jsx)("label",{className:(0,c.cn)("mb-2 block text-[13px] font-medium leading-none",a),...d})}])},24288,a=>{"use strict";var b=a.i(33552),c=a.i(51363),d=a.i(97187);a.s(["BackLink",0,function({to:a,children:e}){return(0,b.jsxs)(c.default,{className:"mb-3.5 inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-mono text-xs text-muted-foreground hover:text-primary",href:a,children:[(0,b.jsx)(d.Icons.arrowL,{className:"size-[13px]"}),e]})}])}];
2
+
3
+ //# sourceMappingURL=_1hrzkwr._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[82337,a=>{"use strict";var b=a.i(33552),c=a.i(86834),d=a.i(87883);a.s(["Stat",0,function({k:a,v:d,mono:e,icon:f}){return(0,b.jsxs)("div",{className:"px-4.5 p-4",children:[(0,b.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:a}),(0,b.jsxs)("div",{className:(0,c.cn)("flex items-center gap-2 font-semibold tracking-[-0.01em]",e?"font-mono text-sm font-medium":"text-base"),children:[f?(0,b.jsx)(f,{className:"size-[15px] text-muted-foreground"}):null,d]})]})},"StatGrid",0,function({children:a}){return(0,b.jsx)(d.Card,{className:"grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] divide-x divide-border/60 overflow-hidden",children:a})}])},87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},17607,16146,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);function d(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}a.s(["fmtAgo",0,d,"fmtBytes",0,function(a){return a<1024?a+"B":a<1048576?(a/1024).toFixed(1)+"KB":(a/1048576).toFixed(1)+"MB"}],16146),a.s(["Ago",0,function({ms:a}){let[e,f]=(0,c.useState)(!1);return(0,c.useEffect)(()=>f(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:e?d(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},12019,a=>{"use strict";var b=a.i(33552),c=a.i(97187);a.s(["EmptyBox",0,function({children:a}){return(0,b.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,b.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,b.jsx)(c.Icons.box,{className:"size-5"})}),a]})}])},96664,(a,b,c)=>{"use strict";Object.defineProperty(c,"__esModule",{value:!0});var d={callServer:function(){return f.callServer},createServerReference:function(){return h.createServerReference},findSourceMapURL:function(){return g.findSourceMapURL}};for(var e in d)Object.defineProperty(c,e,{enumerable:!0,get:d[e]});let f=a.r(6451),g=a.r(74786),h=a.r(50495)},24985,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Table",0,function({className:a,...d}){return(0,b.jsx)("table",{className:(0,c.cn)("w-full caption-bottom text-sm",a),...d})},"TableBody",0,function({className:a,...d}){return(0,b.jsx)("tbody",{className:(0,c.cn)("[&_tr:last-child]:border-0",a),...d})},"TableCell",0,function({className:a,...d}){return(0,b.jsx)("td",{className:(0,c.cn)("px-4 py-3 align-middle",a),...d})},"TableHead",0,function({className:a,...d}){return(0,b.jsx)("th",{className:(0,c.cn)("h-9 px-4 text-left align-middle font-mono text-[10.5px] font-normal uppercase tracking-[.08em] text-muted-foreground/90",a),...d})},"TableHeader",0,function({className:a,...d}){return(0,b.jsx)("thead",{className:(0,c.cn)("bg-background [&_tr]:border-b [&_tr]:border-border",a),...d})},"TableRow",0,function({className:a,...d}){return(0,b.jsx)("tr",{className:(0,c.cn)("border-b border-border/60 transition-colors hover:bg-[#fcfcfb] data-[state=selected]:bg-accent",a),...d})}])},24288,a=>{"use strict";var b=a.i(33552),c=a.i(51363),d=a.i(97187);a.s(["BackLink",0,function({to:a,children:e}){return(0,b.jsxs)(c.default,{className:"mb-3.5 inline-flex cursor-pointer items-center gap-1.5 border-0 bg-transparent p-0 font-mono text-xs text-muted-foreground hover:text-primary",href:a,children:[(0,b.jsx)(d.Icons.arrowL,{className:"size-[13px]"}),e]})}])},3385,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(17607),e=a.i(97187),f=a.i(80007),g=a.i(24288),h=a.i(61688),i=a.i(10511),j=a.i(47685),k=a.i(12019),l=a.i(3015),m=a.i(82337),n=a.i(50253),o=a.i(87883),p=a.i(4305);function q({project:a}){let[c,d]=(0,n.useState)([]),f=(0,n.useCallback)(async()=>{try{let b=await fetch(`/api/v1/projects/${encodeURIComponent(a.id)}/bots`,{credentials:"same-origin"});if(!b.ok)return void d([]);let{bots:c}=await b.json();d(c)}catch{d([])}},[a.id]);return((0,n.useEffect)(()=>{f()},[f]),0===c.length)?null:(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.SectionLabel,{children:"Bot backups"}),(0,b.jsx)(o.Card,{className:"divide-y divide-border/60 overflow-hidden",children:c.map(c=>{let d=(0,p.preferredBackup)(c)??c.backups[0],f=(0,p.restorableBackups)(c);return(0,b.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,b.jsxs)("div",{className:"min-w-[180px] flex-1",children:[(0,b.jsx)("div",{className:"font-mono text-[13.5px] font-medium",children:c.bot}),(0,b.jsxs)("div",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:[c.backups.length," backup",1===c.backups.length?"":"s",d?` \xb7 newest ${(0,p.readableStamp)(d.stamp)}`:"",f.length>0?"":" · workspace only, no identity captured"]})]}),f.length>0&&d?(0,b.jsx)(i.CreateBoxButton,{project:a,variant:"outline",size:"sm",label:"Restore…",icon:e.Icons.refresh,initialRestore:(0,p.restoreKeyOf)(c.bot,d.stamp)}):(0,b.jsx)("span",{className:"text-[11.5px] text-muted-foreground",title:"These backups captured no agent state, so there is no identity to restore.",children:"Not restorable"})]},c.bot)})})]})}var r=a.i(16146);function s({projectId:a}){let[c,f]=(0,n.useState)(null),[g,h]=(0,n.useState)(!1);if((0,n.useEffect)(()=>{let b=!1;return(async()=>{try{let c=await fetch(`/api/v1/projects/${encodeURIComponent(a)}/seed`,{credentials:"same-origin"});if(!c.ok)return;let d=await c.json();b||f(d)}catch{}finally{b||h(!0)}})(),()=>{b=!0}},[a]),!g||!c||!c.custodyAvailable)return null;let i=c.seed;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.SectionLabel,{children:"Seed / custody"}),i?(0,b.jsxs)(o.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,b.jsxs)("div",{className:"grid grid-cols-[repeat(auto-fit,minmax(150px,1fr))] divide-x divide-border/60",children:[(0,b.jsx)(t,{k:"Slug",v:i.slug,mono:!0}),(0,b.jsx)(t,{k:"Captured",v:i.capturedAt?(0,b.jsx)(d.Ago,{ms:Date.parse(i.capturedAt)||Date.now()}):"—"}),(0,b.jsx)(t,{k:"At commit",v:i.repoHeadSha?i.repoHeadSha.slice(0,8):"—",mono:!0}),(0,b.jsx)(t,{k:"Base branch",v:i.baseBranch??"—",mono:!0}),(0,b.jsx)(t,{k:"Secrets",v:(0,b.jsx)("span",{className:"flex items-center gap-1.5",children:i.hasEnv?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(e.Icons.shield,{className:"size-[14px] text-[var(--green-ink)]"})," present"]}):"none"})}),(0,b.jsx)(t,{k:"Size",v:(0,r.fmtBytes)(i.totalBytes),mono:!0})]}),(0,b.jsx)("div",{children:i.entries.map(a=>(0,b.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[(0,b.jsx)(e.Icons.file,{className:"size-[14px] flex-none text-muted-foreground"}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[13px] text-secondary-foreground",children:a.name}),(0,b.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:a.sha256.slice(0,10)}),(0,b.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:(0,r.fmtBytes)(a.size)}),(0,b.jsx)("span",{className:"font-mono text-[11px] text-muted-foreground",children:(0,b.jsx)(d.Ago,{ms:Date.parse(a.updatedAt)||Date.now()})})]},a.name))})]}):(0,b.jsxs)(k.EmptyBox,{children:[(0,b.jsx)("div",{children:"No seed pushed yet."}),(0,b.jsxs)("div",{className:"mt-1 text-[12.5px] text-muted-foreground",children:["Run ",(0,b.jsx)("code",{className:"font-mono",children:"agentbox hub project push"})," from the repo to register its untracked files and secrets."]})]})]})}function t({k:a,v:c,mono:d}){return(0,b.jsxs)("div",{className:"px-4.5 p-4",children:[(0,b.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:a}),(0,b.jsx)("div",{className:d?"truncate font-mono text-sm font-medium":"text-sm font-medium",children:c})]})}a.s(["default",0,function(){let{id:a}=(0,c.useParams)(),{project:n,boxesFor:o}=(0,f.useStore)(),p=n(a);if(!p)return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8",children:[(0,b.jsx)(g.BackLink,{to:"/",children:"Dashboard"}),(0,b.jsx)(k.EmptyBox,{children:"Project not found."})]});let r=o(a),t=r.filter(a=>"running"===a.status).length,u=p.currentBranch||p.defaultBranch,v=p.originUrl?.trim()||null,w=v?/^https?:\/\//i.test(v)?v.replace(/\.git$/i,""):null:null;return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,b.jsx)(g.BackLink,{to:"/",children:"All projects"}),(0,b.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col",children:[(0,b.jsxs)("div",{className:"min-w-0",children:[(0,b.jsxs)("h1",{className:"flex items-center gap-3 text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:[(0,b.jsx)("span",{className:"grid h-[26px] w-[26px] flex-none place-items-center rounded-md border border-[var(--green-line)] bg-accent text-primary",children:(0,b.jsx)(e.Icons.folder,{className:"size-[15px]"})}),p.name]}),(0,b.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[v?w?(0,b.jsx)("a",{href:w,target:"_blank",rel:"noopener",className:"font-mono text-secondary-foreground hover:text-primary",children:v}):(0,b.jsx)("span",{className:"font-mono text-secondary-foreground",children:v}):(0,b.jsx)("span",{className:"font-mono text-secondary-foreground",children:p.repo})," ","· ",p.provider]})]}),(0,b.jsxs)("div",{className:"ml-auto flex flex-none gap-2 max-md:ml-0",children:[(0,b.jsx)(i.CreateBoxButton,{project:p}),0===r.length?(0,b.jsx)(j.DeleteProjectButton,{project:p,redirectHome:!0}):null]})]}),(0,b.jsx)("div",{className:"mt-5",children:(0,b.jsxs)(m.StatGrid,{children:[(0,b.jsx)(m.Stat,{k:"Boxes",v:r.length,icon:e.Icons.box}),(0,b.jsx)(m.Stat,{k:"Running",v:t,icon:e.Icons.activity}),(0,b.jsx)(m.Stat,{k:"Provider",v:p.provider,mono:!0}),(0,b.jsx)(m.Stat,{k:"Branch",v:u||"—",mono:!0,icon:e.Icons.branch}),(0,b.jsx)(m.Stat,{k:"Created",v:(0,b.jsx)(d.Ago,{ms:p.createdAt}),mono:!0})]})}),(0,b.jsx)(s,{projectId:a}),(0,b.jsx)(q,{project:p}),(0,b.jsx)(l.SectionLabel,{children:"Boxes"}),r.length?(0,b.jsx)(h.BoxTable,{boxes:r}):(0,b.jsx)(k.EmptyBox,{children:(0,b.jsx)("div",{children:"No boxes yet."})})]})}],3385)}];
2
+
3
+ //# sourceMappingURL=_202__6o._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},17607,16146,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);function d(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}a.s(["fmtAgo",0,d,"fmtBytes",0,function(a){return a<1024?a+"B":a<1048576?(a/1024).toFixed(1)+"KB":(a/1048576).toFixed(1)+"MB"}],16146),a.s(["Ago",0,function({ms:a}){let[e,f]=(0,c.useState)(!1);return(0,c.useEffect)(()=>f(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:e?d(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},12019,a=>{"use strict";var b=a.i(33552),c=a.i(97187);a.s(["EmptyBox",0,function({children:a}){return(0,b.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,b.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,b.jsx)(c.Icons.box,{className:"size-5"})}),a]})}])},82337,a=>{"use strict";var b=a.i(33552),c=a.i(86834),d=a.i(87883);a.s(["Stat",0,function({k:a,v:d,mono:e,icon:f}){return(0,b.jsxs)("div",{className:"px-4.5 p-4",children:[(0,b.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:a}),(0,b.jsxs)("div",{className:(0,c.cn)("flex items-center gap-2 font-semibold tracking-[-0.01em]",e?"font-mono text-sm font-medium":"text-base"),children:[f?(0,b.jsx)(f,{className:"size-[15px] text-muted-foreground"}):null,d]})]})},"StatGrid",0,function({children:a}){return(0,b.jsx)(d.Card,{className:"grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] divide-x divide-border/60 overflow-hidden",children:a})}])},20799,a=>{"use strict";let b=["agents","projects","prepared","boxes"],c={agents:{label:"Agent credentials",blurb:"Claude / Codex / OpenCode logins pushed here so a hub-created box is never launched signed-out."},projects:{label:"Project seeds",blurb:"Per-project secrets and untracked seed files overlaid onto a fresh clone."},prepared:{label:"Prepared bakes",blurb:"Each provider’s base-image bake record, so a base baked on one machine is visible to both."},boxes:{label:"Box SSH keys",blurb:"Per-box SSH key material a host minted, so either side can attach / cp / port-forward."}};function d(a){let d=new Map;for(let a of b)d.set(a,new Map);for(let c of a){let a=c.path.split("/")[0]??"";if(!b.includes(a))continue;let e=d.get(a),f=function(a){let b=a.split("/")[1]??"";return b.endsWith(".json")?b.slice(0,-5):b}(c.path),g=e.get(f)??[];g.push(c),e.set(f,g)}return b.map(a=>{let b=[...d.get(a).entries()].map(([a,b])=>({key:a,entries:[...b].sort((a,b)=>a.path<b.path?-1:+(a.path>b.path)),size:b.reduce((a,b)=>a+b.size,0)})).sort((a,b)=>a.key<b.key?-1:+(a.key>b.key)),e=b.reduce((a,b)=>a+b.entries.length,0),f=b.reduce((a,b)=>a+b.size,0);return{scope:a,label:c[a].label,blurb:c[a].blurb,count:e,size:f,subgroups:b}})}let e={claude:"Claude",codex:"Codex",opencode:"OpenCode",pi:"Pi"};a.s(["CUSTODY_SCOPES",0,b,"fmtBytes",0,function(a){if(a<1024)return`${String(a)} B`;let b=a/1024;if(b<1024)return`${b.toFixed(+(b<10))} KB`;let c=b/1024;return`${c.toFixed(+(c<10))} MB`},"groupCustody",0,d,"shortSha",0,function(a){return a.slice(0,12)},"summarizeAgentCredentials",0,function(a){let b=d(a).find(a=>"agents"===a.scope);return b?b.subgroups.map(a=>({agent:a.key,label:e[a.key]??a.key,count:a.entries.length,size:a.size,lastUpdate:a.entries.reduce((a,b)=>Math.max(a,Date.parse(b.updatedAt)||0),0)})):[]}])}];
2
+
3
+ //# sourceMappingURL=apps_hub_0glk9of._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[97187,a=>{"use strict";var b=a.i(33552);let c=(a,c)=>d=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:c?"currentColor":"none",stroke:c?"none":"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round",...d,children:a.map((a,c)=>(0,b.jsx)("path",{d:a},c))}),d={grid:c(["M4 4h7v7H4zM13 4h7v7h-7zM13 13h7v7h-7zM4 13h7v7H4z"]),box:c(["M12 20.5 5 17V7l7-3.5L19 7v10Z","m5 7 7 3.5L19 7M12 10.5V20"]),folder:c(["M4 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"]),settings:c(["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M19.4 15a1.6 1.6 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.6 1.6 0 0 0-2.7 1.1V21a2 2 0 1 1-4 0v-.1A1.6 1.6 0 0 0 7.5 19.4a1.6 1.6 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.6 1.6 0 0 0-1.1-2.7H1a2 2 0 1 1 0-4h.1A1.6 1.6 0 0 0 2.6 7.5a1.6 1.6 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.6 1.6 0 0 0 2.7-1.1V1a2 2 0 1 1 4 0v.1a1.6 1.6 0 0 0 2.7 1.1 1.6 1.6 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.6 1.6 0 0 0 1.1 2.7H21a2 2 0 1 1 0 4h-.1a1.6 1.6 0 0 0-1.5 1Z"]),book:c(["M4 19.5A2.5 2.5 0 0 1 6.5 17H20","M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"]),branch:c(["M6 3v12","M18 9a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M6 21a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M18 9a9 9 0 0 1-9 9"]),plus:c(["M12 5v14M5 12h14"]),pencil:c(["M12 20h9","M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"]),pause:c(["M9 4H6v16h3zM18 4h-3v16h3z"]),play:c(["M6 4l14 8-14 8Z"]),refresh:c(["M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8","M3 3v5h5","M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16","M21 21v-5h-5"]),stop:c(["M7 7h10v10H7z"]),trash:c(["M3 6h18","M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2","M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"]),chevR:c(["m9 6 6 6-6 6"]),arrowL:c(["M19 12H5","m12 19-7-7 7-7"]),arrowUp:c(["M12 19V5","m5 12 7-7 7 7"]),ext:c(["M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6","M15 3h6v6","M10 14 21 3"]),copy:c(["M9 9h11a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2Z","M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"]),x:c(["M18 6 6 18M6 6l12 12"]),check:c(["M20 6 9 17l-5-5"]),clock:c(["M12 7v5l3 2","M12 21a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z"]),server:c(["M3 4h18v6H3zM3 14h18v6H3z","M7 7h.01M7 17h.01"]),host:c(["M5 4h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2Z","M5 14h14a2 2 0 0 1 2 2v2a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-2a2 2 0 0 1 2-2Z","M7 7h.01M7 17h.01"]),repo:c(["M4 19.5A2.5 2.5 0 0 1 6.5 17H20","M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2Z"]),search:c(["M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z","m20 20-3.5-3.5"]),menu:c(["M4 7h16M4 12h16M4 17h16"]),terminal:c(["m6 9 3 3-3 3","M13 15h5","M4 4h16v16H4z"]),warn:c(["M10.3 4.3 2.5 18a1.8 1.8 0 0 0 1.6 2.7h15.8A1.8 1.8 0 0 0 21.5 18L13.7 4.3a1.8 1.8 0 0 0-3.1 0Z","M12 9v4M12 17h.01"]),activity:c(["M22 12h-4l-3 9L9 3l-3 9H2"]),commit:c(["M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z","M3 12h6M15 12h6"]),file:c(["M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z","M14 2v6h6"]),shield:c(["M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"]),lock:c(["M7 11h10a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2Z","M8 11V7a4 4 0 0 1 8 0v4"]),key:c(["M15.5 7.5a3.5 3.5 0 1 1-4.6 4.6L4 19l1.5 1.5M8 16l2 2M20 4l-4.5 4.5","M15.5 7.5 20 4"]),claude:c(["M12 3v18M3 12h18M5.5 5.5l13 13M18.5 5.5l-13 13"]),codex:a=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...a,children:(0,b.jsx)("path",{d:"M12 2.6 3.2 7v10l8.8 4.4L20.8 17V7L12 2.6Zm0 3.1a6.3 6.3 0 1 1 0 12.6 6.3 6.3 0 0 1 0-12.6Zm0 2.4a3.9 3.9 0 1 0 0 7.8 3.9 3.9 0 0 0 0-7.8Z"})}),opencode:c(["M9 8l-4 4 4 4","M15 8l4 4-4 4","M13 6l-2 12"]),pi:c(["M5 8h14","M9.5 8v10","M15 8v7.5a2.5 2.5 0 0 0 2.5 2.5"]),github:a=>(0,b.jsx)("svg",{viewBox:"0 0 24 24",fill:"currentColor",...a,children:(0,b.jsx)("path",{d:"M12 1.5A10.5 10.5 0 0 0 8.7 22c.5.1.7-.2.7-.5v-1.8c-2.9.6-3.5-1.4-3.5-1.4-.5-1.2-1.2-1.5-1.2-1.5-.9-.6.1-.6.1-.6 1 .1 1.6 1 1.6 1 .9 1.6 2.4 1.1 3 .9.1-.7.4-1.1.6-1.4-2.3-.3-4.7-1.2-4.7-5.1 0-1.1.4-2 1-2.7-.1-.3-.5-1.4.1-2.8 0 0 .9-.3 2.8 1a9.6 9.6 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .6 1.4.2 2.5.1 2.8.7.7 1 1.6 1 2.7 0 3.9-2.4 4.8-4.6 5 .4.3.7.9.7 1.9v2.8c0 .3.2.6.7.5A10.5 10.5 0 0 0 12 1.5Z"})})},e={TypeScript:"#3178c6",Go:"#00add8",Astro:"#ff5d01",MDX:"#f9a03c",JavaScript:"#f1e05a",Python:"#3572a5"};d.claude,d.codex,d.opencode,d.pi,d.terminal,a.s(["Icons",0,d,"LangDot",0,function({lang:a}){return(0,b.jsx)("span",{className:"inline-block h-2 w-2 flex-none rounded-full",style:{background:e[a]??"#9aa0a6"}})}])},54473,a=>{"use strict";var b=a.i(33552),c=a.i(86834);let d={default:"border-transparent bg-primary text-primary-foreground",secondary:"border-transparent bg-secondary text-secondary-foreground",outline:"text-muted-foreground border-border"};a.s(["Badge",0,function({className:a,variant:e="outline",...f}){return(0,b.jsx)("span",{className:(0,c.cn)("inline-flex items-center gap-1.5 rounded-full border px-2.5 py-[2px] font-mono text-[11px] font-medium tracking-[.01em]",d[e],a),...f})}])},18071,a=>{"use strict";var b=a.i(33552),c=a.i(86834);let d={default:"bg-primary text-primary-foreground shadow-sm hover:bg-[hsl(var(--accent-foreground))]",outline:"border border-border bg-card text-secondary-foreground shadow-sm hover:border-[#a4a9b0] hover:text-foreground",ghost:"text-muted-foreground hover:bg-secondary hover:text-foreground",destructive:"border border-border bg-card text-destructive shadow-sm hover:border-[var(--red)] hover:bg-[var(--red-soft)]",link:"text-primary underline-offset-4 hover:underline"},e={default:"h-9 px-3.5 text-[13px] [&_svg]:size-3.5",sm:"h-[30px] px-2.5 text-xs rounded-md [&_svg]:size-[13px]",icon:"h-9 w-9 [&_svg]:size-4","icon-sm":"h-7 w-7 rounded-md [&_svg]:size-[13px]"};a.s(["Button",0,function({className:a,variant:f="default",size:g="default",href:h,...i}){let j=(0,c.cn)("inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-lg font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 [&_svg]:shrink-0",d[f],e[g],a);return void 0!==h?(0,b.jsx)("a",{className:j,href:h,...i}):(0,b.jsx)("button",{className:j,...i})}])},80007,a=>{"use strict";var b=a.i(33552),c=a.i(50253);let d=(0,c.createContext)(null);a.s(["HubProvider",0,function({data:a,children:e}){let f=(0,c.useMemo)(()=>({state:a,project:b=>a.projects.find(a=>a.id===b),box:b=>a.boxes.find(a=>a.id===b),boxesFor:b=>a.boxes.filter(a=>a.projectId===b),repo:b=>a.github.repos.find(a=>a.full===b)}),[a]);return(0,b.jsx)(d.Provider,{value:f,children:e})},"useStore",0,function(){let a=(0,c.useContext)(d);if(!a)throw Error("useStore must be used within HubProvider");return a}])},49240,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(51363),f=a.i(86834),g=a.i(97187);function h({className:a,fallback:c,...d}){return(0,b.jsx)("span",{className:(0,f.cn)("grid h-7 w-7 flex-none place-items-center rounded-full bg-primary font-mono text-xs font-semibold text-primary-foreground",a),...d,children:c})}var i=a.i(54473),j=a.i(80007);function k({active:a,to:c,href:d,icon:h,label:j,count:l,ext:m}){let n=(0,f.cn)("flex w-full cursor-pointer items-center gap-2.5 rounded-lg border-0 bg-transparent px-2 py-[7px] text-left text-[13.5px] transition-colors",a?"bg-accent font-medium text-accent-foreground":"text-secondary-foreground hover:bg-secondary hover:text-foreground"),o=(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(h,{className:(0,f.cn)("size-4 flex-none",a?"text-primary":"text-muted-foreground")}),j,void 0!==l?(0,b.jsx)(i.Badge,{className:(0,f.cn)("ml-auto border-transparent px-2 py-0 text-[11px]",a?"bg-card text-primary":"bg-secondary text-[#a4a9b0]"),children:l}):null,m?(0,b.jsx)(g.Icons.ext,{className:"ml-auto size-[13px] text-[#a4a9b0]"}):null]});return d?(0,b.jsx)("a",{className:n,href:d,target:"_blank",rel:"noopener",children:o}):(0,b.jsx)(e.default,{className:n,href:c??"#",children:o})}function l({children:a}){return(0,b.jsx)("div",{className:"px-2 pb-1.5 pt-4 font-mono text-[10.5px] uppercase tracking-[.1em] text-[#a4a9b0]",children:a})}function m(){let{state:a,boxesFor:d}=(0,j.useStore)(),e=(0,c.usePathname)(),f="/"===e||e.startsWith("/boxes");return(0,b.jsxs)("aside",{className:"shad-side sticky top-[var(--banner-h,0px)] z-50 flex h-[calc(100vh-var(--banner-h,0px))] flex-col self-start overflow-y-auto border-r border-border bg-background px-3.5 pb-4 pt-4 max-md:w-64",children:[(0,b.jsxs)("div",{className:"flex items-center gap-2.5 px-2 pb-4 font-mono text-sm font-semibold",children:[(0,b.jsx)("img",{src:"/logo.svg",alt:"",width:20,height:20,className:"h-5 w-5"}),"agentbox",(0,b.jsx)("span",{className:"font-normal text-[#a4a9b0]",children:"/ hub"})]}),(0,b.jsx)(l,{children:"Workspace"}),(0,b.jsxs)("nav",{className:"flex flex-col gap-px",children:[(0,b.jsx)(k,{active:f,to:"/",icon:g.Icons.grid,label:"Dashboard",count:a.boxes.length}),(0,b.jsx)(k,{active:e.startsWith("/approvals"),to:"/approvals",icon:g.Icons.shield,label:"Approvals",count:a.approvals.length}),(0,b.jsx)(k,{active:e.startsWith("/custody"),to:"/custody",icon:g.Icons.key,label:"Custody"}),(0,b.jsx)(k,{active:e.startsWith("/settings"),to:"/settings",icon:g.Icons.settings,label:"Settings"}),(0,b.jsx)(k,{active:e.startsWith("/system"),to:"/system",icon:g.Icons.server,label:"System"}),(0,b.jsx)(k,{href:"https://agent-box.sh/docs",icon:g.Icons.book,label:"Docs",ext:!0}),(0,b.jsx)(k,{href:"/api/v1/docs",icon:g.Icons.terminal,label:"API",ext:!0})]}),(0,b.jsx)(l,{children:"Projects"}),(0,b.jsx)("nav",{className:"flex flex-col gap-px",children:a.projects.map(a=>(0,b.jsx)(k,{active:e==="/projects/"+a.id,to:"/projects/"+a.id,icon:g.Icons.folder,label:a.name,count:d(a.id).length},a.id))}),(0,b.jsx)("div",{className:"mt-auto border-t border-border pt-2.5",children:(0,b.jsxs)("div",{className:"flex items-center gap-2.5 px-1.5 pt-1.5",children:[(0,b.jsx)(h,{fallback:"M"}),(0,b.jsxs)("div",{className:"text-[12.5px] leading-tight",children:[a.user.name,(0,b.jsxs)("span",{className:"block font-mono text-[11px] text-muted-foreground",children:["@",a.user.login]})]})]})})]})}function n(){let{state:a}=(0,j.useStore)(),c=a.controlPlane;return c?(0,b.jsxs)("div",{className:"sticky top-0 z-50 flex h-[var(--banner-h)] items-center justify-center gap-2.5 border-b border-[var(--green-line)] bg-accent px-6 text-[12.5px] text-secondary-foreground max-md:px-4",children:[(0,b.jsx)(g.Icons.server,{className:"size-[14px] flex-none text-[var(--green-ink)]"}),(0,b.jsxs)("span",{className:"min-w-0 truncate",children:["This AgentBox instance is linked to a remote hub at"," ",(0,b.jsx)("a",{href:c.url,target:"_blank",rel:"noopener",className:"font-mono text-primary underline decoration-dotted underline-offset-2 hover:decoration-solid",children:c.url})]}),(0,b.jsxs)("a",{href:c.url,target:"_blank",rel:"noopener",className:"flex flex-none items-center gap-1 font-medium text-primary hover:opacity-80",children:["Open ",(0,b.jsx)(g.Icons.ext,{className:"size-[13px]"})]})]}):null}function o(){let a=(0,c.useRouter)();return(0,d.useEffect)(()=>{let b=null,c=()=>{document.hidden||b||(b=setTimeout(()=>{b=null,a.refresh()},250))},d=new EventSource("/api/events");return d.addEventListener("change",c),d.addEventListener("ping",c),()=>{b&&clearTimeout(b),d.close()}},[a]),null}var p=a.i(18071),q=a.i(54250);function r({to:a,children:c,current:d}){return d?(0,b.jsx)("b",{className:"overflow-hidden text-ellipsis whitespace-nowrap font-medium text-secondary-foreground",children:c}):(0,b.jsx)(e.default,{className:"cursor-pointer hover:text-primary",href:a??"#",children:c})}function s(){return(0,b.jsx)("span",{className:"text-border",children:"/"})}function t(){let a=(0,c.usePathname)(),{project:d,box:e}=(0,j.useStore)(),f=[(0,b.jsx)(r,{to:"/",children:"hub"},"h")],g=a.split("/").filter(Boolean);if("projects"===g[0]&&g[1]){let a=d(g[1]);f.push((0,b.jsx)(s,{},"s1"),(0,b.jsx)(r,{current:!0,children:a?a.name:"project"},"p"))}else if("boxes"===g[0]&&g[1]){let a=e(g[1]),c=a?d(a.projectId):void 0;c&&f.push((0,b.jsx)(s,{},"s1"),(0,b.jsx)(r,{to:"/projects/"+c.id,children:c.name},"p")),f.push((0,b.jsx)(s,{},"s2"),(0,b.jsx)(r,{current:!0,children:a?a.id:"box"},"b"))}else"settings"===g[0]?f.push((0,b.jsx)(s,{},"s1"),(0,b.jsx)(r,{current:!0,children:"settings"},"se")):f.push((0,b.jsx)(s,{},"s1"),(0,b.jsx)(r,{current:!0,children:"dashboard"},"d"));return(0,b.jsx)("div",{className:"flex min-w-0 items-center gap-2 font-mono text-[12.5px] text-[#a4a9b0]",children:f})}function u(){let a=(0,c.useRouter)(),{state:d}=(0,j.useStore)();return(0,b.jsxs)("div",{className:"sticky top-[var(--banner-h,0px)] z-30 flex h-[54px] items-center gap-3 border-b border-border bg-[rgba(246,246,243,.86)] px-6 backdrop-blur-md",children:[(0,b.jsx)(p.Button,{variant:"outline",size:"icon-sm",className:"hidden max-md:inline-flex","aria-label":"Menu",onClick:()=>document.body.classList.toggle("nav-open"),children:(0,b.jsx)(g.Icons.menu,{})}),(0,b.jsx)(t,{}),(0,b.jsx)("span",{className:"flex-1"}),d.controlPlane?(0,b.jsxs)(p.Button,{variant:"ghost",size:"sm",href:d.controlPlane.url,target:"_blank",rel:"noopener",title:`This hub operates through the control box at ${d.controlPlane.url}`,children:[(0,b.jsx)(g.Icons.server,{}),"Control box"]}):null,(0,b.jsxs)(p.Button,{variant:"ghost",size:"sm",href:"https://agent-box.sh/docs",target:"_blank",rel:"noopener",children:[(0,b.jsx)(g.Icons.book,{}),"Docs"]}),(0,b.jsxs)(p.Button,{variant:"ghost",size:"sm",href:"/api/v1/docs",target:"_blank",rel:"noopener",children:[(0,b.jsx)(g.Icons.terminal,{}),"API"]}),"password"===d.authMode?(0,b.jsx)(p.Button,{variant:"ghost",size:"sm",onClick:()=>{(0,q.signOut)().then(()=>{a.push("/signin"),a.refresh()})},children:"Sign out"}):null]})}function v({children:a}){let e=(0,c.usePathname)();return(0,d.useEffect)(()=>{document.body.classList.remove("nav-open")},[e]),(0,b.jsxs)("div",{className:"grid min-h-[calc(100vh-var(--banner-h,0px))] grid-cols-[232px_minmax(0,1fr)] max-md:grid-cols-1",children:[(0,b.jsx)("div",{className:"pointer-events-none fixed inset-0 z-40 bg-[rgba(20,24,30,.4)] opacity-0 transition-opacity [body.nav-open_&]:pointer-events-auto [body.nav-open_&]:opacity-100",onClick:()=>document.body.classList.remove("nav-open")}),(0,b.jsx)(m,{}),(0,b.jsxs)("main",{className:"flex min-w-0 flex-col",children:[(0,b.jsx)(u,{}),a]})]})}a.s(["HubShell",0,function({data:a,children:c}){let d={"--banner-h":a.controlPlane?"36px":"0px"};return(0,b.jsxs)(j.HubProvider,{data:a,children:[(0,b.jsx)(o,{}),(0,b.jsxs)("div",{style:d,children:[(0,b.jsx)(n,{}),(0,b.jsx)(v,{children:c})]})]})}],49240)}];
2
+
3
+ //# sourceMappingURL=apps_hub_0i637dy._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[85883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Input",0,function({className:a,...d}){return(0,b.jsx)("input",{className:(0,c.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...d})}])},45515,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(86834),e=a.i(97187);a.s(["Dialog",0,function({onClose:a,className:f,children:g}){return(0,c.useEffect)(()=>{let b=b=>{"Escape"===b.key&&a()};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:a,children:(0,b.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,d.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",f),onClick:a=>a.stopPropagation(),children:[g,(0,b.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:a,"aria-label":"Close",children:(0,b.jsx)(e.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("px-5 py-4",a),...c})},"DialogDescription",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("mt-1 font-mono text-xs text-muted-foreground",a),...c})},"DialogFooter",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",a),...c})},"DialogHeader",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",a),...c})},"DialogIcon",0,function({children:a}){return(0,b.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:a})},"DialogTitle",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("text-base font-semibold leading-tight tracking-tight",a),...c})}])},94290,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(18071),e=a.i(85883);function f({jobId:a,login:g}){let[h,i]=(0,c.useState)(""),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(null),n="exchanging"===g.phase,o=async()=>{let b=h.trim();if(b&&!j){k(!0),m(null);try{let c=await fetch(`/api/v1/jobs/${encodeURIComponent(a)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:b})});if(!c.ok){let a=await c.json().catch(()=>null);m(a?.error?.message??`request failed (${c.status})`);return}i("")}catch(a){m(a instanceof Error?a.message:String(a))}finally{k(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,b.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),g.url?(0,b.jsx)("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,b.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,b.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,b.jsx)(e.Input,{value:h,onChange:a=>i(a.target.value),onKeyDown:a=>{"Enter"===a.key&&o()},placeholder:"Paste approval code",disabled:n,className:"flex-1 font-mono text-xs"}),(0,b.jsx)(d.Button,{type:"button",onClick:()=>void o(),disabled:!h.trim()||j||n,children:n?"Verifying…":j?"Submitting…":"Submit"})]}),g.lastError?(0,b.jsx)("p",{className:"text-xs text-amber-300",children:g.lastError}):null,"error"===g.phase&&g.error?(0,b.jsx)("p",{className:"text-xs text-red-400",children:g.error}):null,l?(0,b.jsx)("p",{className:"text-xs text-red-400",children:l}):null]})}a.s(["JobLogStream",0,function({jobId:a,endpoint:d,onDone:e,onStatus:g,onLogin:h}){let[i,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(e);n.current=e;let o=(0,c.useRef)(g);o.current=g;let p=(0,c.useRef)(h);return p.current=h,(0,c.useEffect)(()=>{o.current?.("streaming");let b=new EventSource(d??`/api/jobs/${encodeURIComponent(a)}/logs`);return b.addEventListener("log",a=>{let b=JSON.parse(a.data);j(a=>[...a,b])}),b.addEventListener("login",a=>{let b=JSON.parse(a.data);l(b),p.current?.(b)}),b.addEventListener("end",a=>{let c=JSON.parse(a.data);o.current?.(c.status),n.current?.(c.status),b.close()}),()=>b.close()},[a,d]),(0,c.useEffect)(()=>{let a=m.current;a&&(a.scrollTop=a.scrollHeight)},[i]),(0,b.jsxs)("div",{className:"flex flex-col gap-3",children:[k&&"done"!==k.phase?(0,b.jsx)(f,{jobId:a,login:k}):null,(0,b.jsx)("pre",{ref:m,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===i.length?"starting…":i.join("\n")})]})}])},81624,71152,a=>{"use strict";var b=a.i(33552),c=a.i(97187),d=a.i(86834);a.s(["PersistentMark",0,function({className:a}){return(0,b.jsx)("span",{title:"Persistent (always-on): never auto-paused, never pruned, and started again after a host reboot","aria-label":"Persistent box",className:"inline-flex flex-none items-center text-muted-foreground",children:(0,b.jsx)(c.Icons.lock,{className:(0,d.cn)("size-3.5",a)})})}],81624);var e=a.i(54473);let f={running:{label:"running",badgeClass:"badge-run"},paused:{label:"paused",badgeClass:"badge-pause"},stopped:{label:"stopped",badgeClass:"badge-stop"},creating:{label:"creating",badgeClass:"badge-create"},error:{label:"error",badgeClass:"badge-err"}};a.s(["StatusBadge",0,function({status:a}){let c=f[a]??f.stopped;return(0,b.jsxs)(e.Badge,{className:c.badgeClass,children:[(0,b.jsx)("span",{className:"badge-dot"}),c.label]})}],71152)},4305,a=>{"use strict";function b(a){return a.backups.filter(a=>a.state)}a.s(["parseRestoreKey",0,function(a){let b=a.split("/");return 2===b.length&&b[0]&&b[1]?{bot:b[0],stamp:b[1]}:null},"preferredBackup",0,function(a){let c=b(a);return c.find(b=>b.stamp===a.latest)??c[0]},"readableStamp",0,function(a){let b=new Date(a.replace(/^(\d{4}-\d{2}-\d{2})T(\d{2})-(\d{2})-(\d{2})Z$/,"$1T$2:$3:$4Z"));return Number.isNaN(b.getTime())?a:b.toLocaleString()},"restorableBackups",0,b,"restoreKeyOf",0,function(a,b){return`${a}/${b}`}])},17236,53596,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(86834),f=a.i(18071),g=a.i(97187),h=a.i(96664);let i=(0,h.createServerReference)("40a8d927c4cdf2644578c7d046ec6ac4b5476e093c",h.callServer,void 0,h.findSourceMapURL,"destroyBoxAction"),j=(0,h.createServerReference)("400fa966c2798373b413a766971b2a65942e1c10ed",h.callServer,void 0,h.findSourceMapURL,"pauseBoxAction"),k=(0,h.createServerReference)("6071e7924c81efcf4f632db30c94b2719dea3aad86",h.callServer,void 0,h.findSourceMapURL,"renameBoxAction"),l=(0,h.createServerReference)("4096c3a9fca12159537e807a65e8c69363c9994b44",h.callServer,void 0,h.findSourceMapURL,"resumeBoxAction"),m=(0,h.createServerReference)("401094edbde1b8a36591bbcb042a1f6f13c0856238",h.callServer,void 0,h.findSourceMapURL,"stopBoxAction");a.s(["BoxActions",0,function({box:a,size:h}){let n=(0,c.useRouter)(),[o,p]=(0,d.useTransition)(),q="running"===a.status,r="paused"===a.status,s="stopped"===a.status,t=a.id.startsWith("job:"),u="lg"===h,v=u?"sm":"icon-sm",w=(b,c,d)=>{b.stopPropagation(),(!d||window.confirm(d))&&p(async()=>{let b=await c(a.id);b.ok||window.alert(`Action failed: ${b.error}`),n.refresh()})};return t?(0,b.jsx)("div",{className:(0,e.cn)("flex gap-1.5",u?"":"justify-end"),children:(0,b.jsxs)(f.Button,{variant:"destructive",size:v,title:"Dismiss",disabled:o||"error"!==a.status,onClick:b=>w(b,i,`Dismiss failed box ${a.id}? This clears the failed create.`),children:[(0,b.jsx)(g.Icons.trash,{}),u?"Dismiss":null]})}):(0,b.jsxs)("div",{className:(0,e.cn)("flex gap-1.5",u?"":"justify-end"),children:[r?(0,b.jsxs)(f.Button,{variant:u?"default":"outline",size:v,title:"Resume",disabled:o,className:u?"":"hover:border-[var(--green)] hover:bg-accent hover:text-[var(--green-ink)]",onClick:a=>w(a,l),children:[(0,b.jsx)(g.Icons.play,{}),u?"Resume":null]}):(0,b.jsxs)(f.Button,{variant:"outline",size:v,disabled:o||!q,title:"Pause",className:u?"":"hover:border-[var(--amber)] hover:bg-[var(--amber-soft)] hover:text-[var(--amber)]",onClick:a=>w(a,j),children:[(0,b.jsx)(g.Icons.pause,{}),u?"Pause":null]}),(0,b.jsxs)(f.Button,{variant:"outline",size:v,disabled:o||s,title:"Stop",onClick:a=>w(a,m),children:[(0,b.jsx)(g.Icons.stop,{}),u?"Stop":null]}),(0,b.jsxs)(f.Button,{variant:"outline",size:v,disabled:o,title:"Rename",onClick:b=>{b.stopPropagation();let c=window.prompt("Rename box (label only — leave blank to reset)",a.displayName??a.task);null!==c&&p(async()=>{let b=await k(a.id,c.trim());b.ok||window.alert(`Rename failed: ${b.error}`),n.refresh()})},children:[(0,b.jsx)(g.Icons.pencil,{}),u?"Rename":null]}),(0,b.jsxs)(f.Button,{variant:"destructive",size:v,title:"Destroy",disabled:o,onClick:b=>w(b,i,`Destroy box ${a.id}? Its workspace volume is discarded. This cannot be undone.`),children:[(0,b.jsx)(g.Icons.trash,{}),u?"Destroy":null]})]})}],17236),a.s(["Select",0,function({wrapperClassName:a,className:c,children:d,...f}){return(0,b.jsxs)("span",{className:(0,e.cn)("relative inline-flex",a),children:[(0,b.jsx)("select",{className:(0,e.cn)("h-9 w-full cursor-pointer appearance-none rounded-lg border border-input bg-card py-1 pl-3 pr-9 text-[13px] shadow-sm focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",c),...f,children:d}),(0,b.jsx)("svg",{className:"pointer-events-none absolute right-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:(0,b.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}],53596)}];
2
+
3
+ //# sourceMappingURL=apps_hub_0j5-o0f._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},17607,16146,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);function d(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}a.s(["fmtAgo",0,d,"fmtBytes",0,function(a){return a<1024?a+"B":a<1048576?(a/1024).toFixed(1)+"KB":(a/1048576).toFixed(1)+"MB"}],16146),a.s(["Ago",0,function({ms:a}){let[e,f]=(0,c.useState)(!1);return(0,c.useEffect)(()=>f(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:e?d(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},12019,a=>{"use strict";var b=a.i(33552),c=a.i(97187);a.s(["EmptyBox",0,function({children:a}){return(0,b.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-card px-5 py-9 text-center text-[13.5px] text-muted-foreground",children:[(0,b.jsx)("div",{className:"mx-auto mb-3 grid h-10 w-10 place-items-center rounded-lg border border-border text-[#a4a9b0]",children:(0,b.jsx)(c.Icons.box,{className:"size-5"})}),a]})}])},82337,a=>{"use strict";var b=a.i(33552),c=a.i(86834),d=a.i(87883);a.s(["Stat",0,function({k:a,v:d,mono:e,icon:f}){return(0,b.jsxs)("div",{className:"px-4.5 p-4",children:[(0,b.jsx)("div",{className:"mb-1.5 font-mono text-[10.5px] uppercase tracking-[.06em] text-[#a4a9b0]",children:a}),(0,b.jsxs)("div",{className:(0,c.cn)("flex items-center gap-2 font-semibold tracking-[-0.01em]",e?"font-mono text-sm font-medium":"text-base"),children:[f?(0,b.jsx)(f,{className:"size-[15px] text-muted-foreground"}):null,d]})]})},"StatGrid",0,function({children:a}){return(0,b.jsx)(d.Card,{className:"grid grid-cols-[repeat(auto-fit,minmax(140px,1fr))] divide-x divide-border/60 overflow-hidden",children:a})}])},20799,a=>{"use strict";let b=["agents","projects","prepared","boxes"],c={agents:{label:"Agent credentials",blurb:"Claude / Codex / OpenCode logins pushed here so a hub-created box is never launched signed-out."},projects:{label:"Project seeds",blurb:"Per-project secrets and untracked seed files overlaid onto a fresh clone."},prepared:{label:"Prepared bakes",blurb:"Each provider’s base-image bake record, so a base baked on one machine is visible to both."},boxes:{label:"Box SSH keys",blurb:"Per-box SSH key material a host minted, so either side can attach / cp / port-forward."}};function d(a){let d=new Map;for(let a of b)d.set(a,new Map);for(let c of a){let a=c.path.split("/")[0]??"";if(!b.includes(a))continue;let e=d.get(a),f=function(a){let b=a.split("/")[1]??"";return b.endsWith(".json")?b.slice(0,-5):b}(c.path),g=e.get(f)??[];g.push(c),e.set(f,g)}return b.map(a=>{let b=[...d.get(a).entries()].map(([a,b])=>({key:a,entries:[...b].sort((a,b)=>a.path<b.path?-1:+(a.path>b.path)),size:b.reduce((a,b)=>a+b.size,0)})).sort((a,b)=>a.key<b.key?-1:+(a.key>b.key)),e=b.reduce((a,b)=>a+b.entries.length,0),f=b.reduce((a,b)=>a+b.size,0);return{scope:a,label:c[a].label,blurb:c[a].blurb,count:e,size:f,subgroups:b}})}let e={claude:"Claude",codex:"Codex",opencode:"OpenCode",pi:"Pi"};a.s(["CUSTODY_SCOPES",0,b,"fmtBytes",0,function(a){if(a<1024)return`${String(a)} B`;let b=a/1024;if(b<1024)return`${b.toFixed(+(b<10))} KB`;let c=b/1024;return`${c.toFixed(+(c<10))} MB`},"groupCustody",0,d,"shortSha",0,function(a){return a.slice(0,12)},"summarizeAgentCredentials",0,function(a){let b=d(a).find(a=>"agents"===a.scope);return b?b.subgroups.map(a=>({agent:a.key,label:e[a.key]??a.key,count:a.entries.length,size:a.size,lastUpdate:a.entries.reduce((a,b)=>Math.max(a,Date.parse(b.updatedAt)||0),0)})):[]}])},20450,a=>{"use strict";var b=a.i(33552),c=a.i(51363),d=a.i(50253),e=a.i(17607),f=a.i(97187),g=a.i(54473),h=a.i(87883),i=a.i(86834),j=a.i(20799),k=a.i(12019),l=a.i(3015),m=a.i(82337);function n({active:a,onClick:c,label:d,count:e}){return(0,b.jsxs)("button",{type:"button",onClick:c,className:(0,i.cn)("inline-flex items-center gap-1.5 rounded-full border px-3 py-1 text-[12.5px] transition-colors",a?"border-transparent bg-accent font-medium text-accent-foreground":"border-border text-secondary-foreground hover:bg-secondary hover:text-foreground"),children:[d,(0,b.jsx)("span",{className:(0,i.cn)("font-mono text-[11px]",a?"text-primary":"text-[#a4a9b0]"),children:e})]})}a.s(["default",0,function(){let[a,i]=(0,d.useState)(null),[o,p]=(0,d.useState)(null),[q,r]=(0,d.useState)(null);(0,d.useEffect)(()=>{let a=!0;return fetch("/api/v1/custody",{credentials:"same-origin"}).then(async a=>{if(!a.ok)throw Error(`request failed (${String(a.status)})`);return await a.json()}).then(b=>{a&&i(b)}).catch(b=>{a&&p(b instanceof Error?b.message:String(b))}),()=>{a=!1}},[]);let s=(0,d.useMemo)(()=>(0,j.groupCustody)(a?.entries??[]),[a]),t=s.reduce((a,b)=>a+b.count,0),u=q?s.filter(a=>a.scope===q):s;return(0,b.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,b.jsx)("h1",{className:"text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:"Custody"}),(0,b.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:["What the control box holds so a box created from either side is usable from both. Paths, hashes and sizes only —"," ",(0,b.jsx)("span",{className:"text-secondary-foreground",children:"values never leave the box"}),"."]}),o?(0,b.jsx)("div",{className:"mt-6",children:(0,b.jsxs)(k.EmptyBox,{children:[(0,b.jsx)("div",{children:"Couldn’t load custody."}),(0,b.jsx)("div",{className:"mt-1.5 font-mono text-xs text-red-400",children:o})]})}):a&&!a.enabled?(0,b.jsx)("div",{className:"mt-6",children:(0,b.jsxs)(k.EmptyBox,{children:[(0,b.jsx)("div",{children:"Custody isn’t enabled on this hub."}),(0,b.jsxs)("div",{className:"mt-1.5 font-mono text-xs text-muted-foreground",children:["Custody runs on a deployed control box (a hub with an admin token). A localhost hub keeps credentials on your machine directly — see"," ",(0,b.jsx)(c.default,{href:"/system",className:"underline underline-offset-2 hover:text-foreground",children:"Carried from this machine"}),"."]})]})}):a?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(l.SectionLabel,{right:(0,b.jsxs)("span",{className:"font-mono text-[11px] tracking-normal text-[#a4a9b0]",children:[t," entries"]}),children:"Overview"}),(0,b.jsx)(m.StatGrid,{children:s.map(a=>(0,b.jsx)(m.Stat,{k:a.label,v:`${String(a.count)}${a.count?` \xb7 ${(0,j.fmtBytes)(a.size)}`:""}`},a.scope))}),(0,b.jsxs)("div",{className:"mt-6 flex flex-wrap items-center gap-1.5",children:[(0,b.jsx)(n,{active:null===q,onClick:()=>r(null),label:"All",count:t}),j.CUSTODY_SCOPES.map(a=>{let c=s.find(b=>b.scope===a);return(0,b.jsx)(n,{active:q===a,onClick:()=>r(a),label:c.label,count:c.count},a)})]}),u.every(a=>0===a.count)?(0,b.jsx)("div",{className:"mt-6",children:(0,b.jsxs)(k.EmptyBox,{children:[(0,b.jsxs)("div",{children:["Nothing in custody",q?` under ${q}`:""," yet."]}),(0,b.jsx)("div",{className:"mt-1.5 font-mono text-xs text-muted-foreground",children:"Agent credentials arrive from `agentbox hub credentials push`; seeds, bake records and box keys are written as boxes are created."})]})}):u.filter(a=>a.count>0).map(a=>(0,b.jsxs)("div",{children:[(0,b.jsx)(l.SectionLabel,{right:(0,b.jsx)("span",{className:"font-mono text-[11px] tracking-normal text-[#a4a9b0]",children:a.count}),children:a.label}),(0,b.jsx)("div",{className:"mb-3 text-[12.5px] text-muted-foreground",children:a.blurb}),(0,b.jsx)(h.Card,{className:"divide-y divide-border/60 overflow-hidden",children:a.subgroups.map(a=>(0,b.jsxs)("div",{className:"p-4 px-5",children:[(0,b.jsxs)("div",{className:"mb-2 flex items-center gap-2",children:[(0,b.jsx)(f.Icons.folder,{className:"size-[15px] flex-none text-muted-foreground"}),(0,b.jsx)("span",{className:"font-mono text-[13px] font-medium",children:a.key}),(0,b.jsx)(g.Badge,{className:"px-1.5 py-0 text-[10px] normal-case",children:a.entries.length}),(0,b.jsx)("span",{className:"ml-auto font-mono text-[11px] text-[#a4a9b0]",children:(0,j.fmtBytes)(a.size)})]}),(0,b.jsx)("div",{className:"divide-y divide-border/40",children:a.entries.map(a=>(0,b.jsxs)("div",{className:"flex items-center gap-3 py-1.5 max-sm:flex-wrap",children:[(0,b.jsx)(f.Icons.file,{className:"size-3.5 flex-none text-[#a4a9b0]"}),(0,b.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[12px]",title:a.path,children:a.path.split("/").slice(2).join("/")||a.path}),(0,b.jsx)("span",{className:"font-mono text-[11px] text-[#a4a9b0]",title:a.sha256,children:(0,j.shortSha)(a.sha256)}),(0,b.jsx)("span",{className:"w-16 text-right font-mono text-[11px] text-muted-foreground",children:(0,j.fmtBytes)(a.size)}),(0,b.jsx)("span",{className:"w-24 text-right font-mono text-[11px] text-muted-foreground",children:(0,b.jsx)(e.Ago,{ms:Date.parse(a.updatedAt)})})]},a.path))})]},a.key))})]},a.scope))]}):(0,b.jsx)("div",{className:"mt-8 text-sm text-muted-foreground",children:"Loading…"})]})}])}];
2
+
3
+ //# sourceMappingURL=apps_hub_1-hoscg._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},17607,16146,3015,a=>{"use strict";var b=a.i(33552),c=a.i(50253);function d(a){let b=Math.floor((Date.now()-a)/1e3);if(b<60)return b+"s ago";let c=Math.floor(b/60);if(c<60)return c+"m ago";let d=Math.floor(c/60);return d<24?d+"h ago":Math.floor(d/24)+"d ago"}a.s(["fmtAgo",0,d,"fmtBytes",0,function(a){return a<1024?a+"B":a<1048576?(a/1024).toFixed(1)+"KB":(a/1048576).toFixed(1)+"MB"}],16146),a.s(["Ago",0,function({ms:a}){let[e,f]=(0,c.useState)(!1);return(0,c.useEffect)(()=>f(!0),[]),(0,b.jsx)("span",{suppressHydrationWarning:!0,children:e?d(a):new Date(a).toLocaleDateString()})}],17607),a.s(["SectionLabel",0,function({children:a,right:c}){return(0,b.jsxs)("div",{className:"mb-3 mt-8 flex items-center gap-2.5 font-mono text-[11px] uppercase tracking-[.1em] text-[#a4a9b0]",children:[a,(0,b.jsx)("span",{className:"h-px flex-1 bg-border"}),c??null]})}],3015)},85883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Input",0,function({className:a,...d}){return(0,b.jsx)("input",{className:(0,c.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...d})}])},94290,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(18071),e=a.i(85883);function f({jobId:a,login:g}){let[h,i]=(0,c.useState)(""),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(null),n="exchanging"===g.phase,o=async()=>{let b=h.trim();if(b&&!j){k(!0),m(null);try{let c=await fetch(`/api/v1/jobs/${encodeURIComponent(a)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:b})});if(!c.ok){let a=await c.json().catch(()=>null);m(a?.error?.message??`request failed (${c.status})`);return}i("")}catch(a){m(a instanceof Error?a.message:String(a))}finally{k(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,b.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),g.url?(0,b.jsx)("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,b.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,b.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,b.jsx)(e.Input,{value:h,onChange:a=>i(a.target.value),onKeyDown:a=>{"Enter"===a.key&&o()},placeholder:"Paste approval code",disabled:n,className:"flex-1 font-mono text-xs"}),(0,b.jsx)(d.Button,{type:"button",onClick:()=>void o(),disabled:!h.trim()||j||n,children:n?"Verifying…":j?"Submitting…":"Submit"})]}),g.lastError?(0,b.jsx)("p",{className:"text-xs text-amber-300",children:g.lastError}):null,"error"===g.phase&&g.error?(0,b.jsx)("p",{className:"text-xs text-red-400",children:g.error}):null,l?(0,b.jsx)("p",{className:"text-xs text-red-400",children:l}):null]})}a.s(["JobLogStream",0,function({jobId:a,endpoint:d,onDone:e,onStatus:g,onLogin:h}){let[i,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(e);n.current=e;let o=(0,c.useRef)(g);o.current=g;let p=(0,c.useRef)(h);return p.current=h,(0,c.useEffect)(()=>{o.current?.("streaming");let b=new EventSource(d??`/api/jobs/${encodeURIComponent(a)}/logs`);return b.addEventListener("log",a=>{let b=JSON.parse(a.data);j(a=>[...a,b])}),b.addEventListener("login",a=>{let b=JSON.parse(a.data);l(b),p.current?.(b)}),b.addEventListener("end",a=>{let c=JSON.parse(a.data);o.current?.(c.status),n.current?.(c.status),b.close()}),()=>b.close()},[a,d]),(0,c.useEffect)(()=>{let a=m.current;a&&(a.scrollTop=a.scrollHeight)},[i]),(0,b.jsxs)("div",{className:"flex flex-col gap-3",children:[k&&"done"!==k.phase?(0,b.jsx)(f,{jobId:a,login:k}):null,(0,b.jsx)("pre",{ref:m,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===i.length?"starting…":i.join("\n")})]})}])},45515,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(86834),e=a.i(97187);a.s(["Dialog",0,function({onClose:a,className:f,children:g}){return(0,c.useEffect)(()=>{let b=b=>{"Escape"===b.key&&a()};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:a,children:(0,b.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,d.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",f),onClick:a=>a.stopPropagation(),children:[g,(0,b.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:a,"aria-label":"Close",children:(0,b.jsx)(e.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("px-5 py-4",a),...c})},"DialogDescription",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("mt-1 font-mono text-xs text-muted-foreground",a),...c})},"DialogFooter",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",a),...c})},"DialogHeader",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",a),...c})},"DialogIcon",0,function({children:a}){return(0,b.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:a})},"DialogTitle",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("text-base font-semibold leading-tight tracking-tight",a),...c})}])}];
2
+
3
+ //# sourceMappingURL=apps_hub_111ly04._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[85883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Input",0,function({className:a,...d}){return(0,b.jsx)("input",{className:(0,c.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...d})}])},45515,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(86834),e=a.i(97187);a.s(["Dialog",0,function({onClose:a,className:f,children:g}){return(0,c.useEffect)(()=>{let b=b=>{"Escape"===b.key&&a()};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[a]),(0,b.jsx)("div",{className:"anim-fade fixed inset-0 z-50 grid place-items-center overflow-y-auto bg-[rgba(20,24,30,.42)] p-6 backdrop-blur-[2px]",onClick:a,children:(0,b.jsxs)("div",{role:"dialog","aria-modal":"true",className:(0,d.cn)("anim-pop relative m-auto w-full max-w-[500px] rounded-2xl border border-border bg-card shadow-[0_40px_80px_-30px_rgba(20,24,30,.5)]",f),onClick:a=>a.stopPropagation(),children:[g,(0,b.jsx)("button",{className:"absolute right-4 top-4 grid h-7 w-7 cursor-pointer place-items-center rounded-md border-0 bg-transparent text-[#a4a9b0] transition-colors hover:bg-secondary hover:text-foreground",onClick:a,"aria-label":"Close",children:(0,b.jsx)(e.Icons.x,{style:{width:15,height:15}})})]})})},"DialogBody",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("px-5 py-4",a),...c})},"DialogDescription",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("mt-1 font-mono text-xs text-muted-foreground",a),...c})},"DialogFooter",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex justify-end gap-2.5 rounded-b-2xl border-t border-border/70 bg-background px-5 py-3.5",a),...c})},"DialogHeader",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("flex items-start gap-3 border-b border-border/70 px-5 pb-4 pt-5",a),...c})},"DialogIcon",0,function({children:a}){return(0,b.jsx)("span",{className:"grid h-9 w-9 flex-none place-items-center rounded-lg border border-[var(--green-line)] bg-accent text-primary [&_svg]:size-[17px]",children:a})},"DialogTitle",0,function({className:a,...c}){return(0,b.jsx)("div",{className:(0,d.cn)("text-base font-semibold leading-tight tracking-tight",a),...c})}])},94290,a=>{"use strict";var b=a.i(33552),c=a.i(50253),d=a.i(18071),e=a.i(85883);function f({jobId:a,login:g}){let[h,i]=(0,c.useState)(""),[j,k]=(0,c.useState)(!1),[l,m]=(0,c.useState)(null),n="exchanging"===g.phase,o=async()=>{let b=h.trim();if(b&&!j){k(!0),m(null);try{let c=await fetch(`/api/v1/jobs/${encodeURIComponent(a)}/login-code`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({code:b})});if(!c.ok){let a=await c.json().catch(()=>null);m(a?.error?.message??`request failed (${c.status})`);return}i("")}catch(a){m(a instanceof Error?a.message:String(a))}finally{k(!1)}}};return(0,b.jsxs)("div",{className:"flex flex-col gap-2 rounded-lg border border-amber-500/40 bg-amber-500/10 p-3",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:"Claude login required"}),(0,b.jsx)("p",{className:"text-xs text-amber-100/80",children:"Your saved Claude login is expired. Open the sign-in page, approve access, then paste the code Claude shows you."}),g.url?(0,b.jsx)("a",{href:g.url,target:"_blank",rel:"noreferrer",className:"w-fit rounded-md bg-amber-500/20 px-2.5 py-1 text-xs font-medium text-amber-100 underline decoration-amber-400/50 underline-offset-2 hover:bg-amber-500/30",children:"Open Claude sign-in ↗"}):(0,b.jsx)("span",{className:"text-xs text-amber-100/60",children:"waiting for the sign-in link…"}),(0,b.jsxs)("div",{className:"mt-1 flex gap-2",children:[(0,b.jsx)(e.Input,{value:h,onChange:a=>i(a.target.value),onKeyDown:a=>{"Enter"===a.key&&o()},placeholder:"Paste approval code",disabled:n,className:"flex-1 font-mono text-xs"}),(0,b.jsx)(d.Button,{type:"button",onClick:()=>void o(),disabled:!h.trim()||j||n,children:n?"Verifying…":j?"Submitting…":"Submit"})]}),g.lastError?(0,b.jsx)("p",{className:"text-xs text-amber-300",children:g.lastError}):null,"error"===g.phase&&g.error?(0,b.jsx)("p",{className:"text-xs text-red-400",children:g.error}):null,l?(0,b.jsx)("p",{className:"text-xs text-red-400",children:l}):null]})}a.s(["JobLogStream",0,function({jobId:a,endpoint:d,onDone:e,onStatus:g,onLogin:h}){let[i,j]=(0,c.useState)([]),[k,l]=(0,c.useState)(null),m=(0,c.useRef)(null),n=(0,c.useRef)(e);n.current=e;let o=(0,c.useRef)(g);o.current=g;let p=(0,c.useRef)(h);return p.current=h,(0,c.useEffect)(()=>{o.current?.("streaming");let b=new EventSource(d??`/api/jobs/${encodeURIComponent(a)}/logs`);return b.addEventListener("log",a=>{let b=JSON.parse(a.data);j(a=>[...a,b])}),b.addEventListener("login",a=>{let b=JSON.parse(a.data);l(b),p.current?.(b)}),b.addEventListener("end",a=>{let c=JSON.parse(a.data);o.current?.(c.status),n.current?.(c.status),b.close()}),()=>b.close()},[a,d]),(0,c.useEffect)(()=>{let a=m.current;a&&(a.scrollTop=a.scrollHeight)},[i]),(0,b.jsxs)("div",{className:"flex flex-col gap-3",children:[k&&"done"!==k.phase?(0,b.jsx)(f,{jobId:a,login:k}):null,(0,b.jsx)("pre",{ref:m,className:"max-h-[440px] min-h-[220px] overflow-auto whitespace-pre rounded-lg bg-[#16181c] p-3 font-mono text-[11.5px] leading-relaxed text-[#d6d9de]",children:0===i.length?"starting…":i.join("\n")})]})}])},81624,71152,a=>{"use strict";var b=a.i(33552),c=a.i(97187),d=a.i(86834);a.s(["PersistentMark",0,function({className:a}){return(0,b.jsx)("span",{title:"Persistent (always-on): never auto-paused, never pruned, and started again after a host reboot","aria-label":"Persistent box",className:"inline-flex flex-none items-center text-muted-foreground",children:(0,b.jsx)(c.Icons.lock,{className:(0,d.cn)("size-3.5",a)})})}],81624);var e=a.i(54473);let f={running:{label:"running",badgeClass:"badge-run"},paused:{label:"paused",badgeClass:"badge-pause"},stopped:{label:"stopped",badgeClass:"badge-stop"},creating:{label:"creating",badgeClass:"badge-create"},error:{label:"error",badgeClass:"badge-err"}};a.s(["StatusBadge",0,function({status:a}){let c=f[a]??f.stopped;return(0,b.jsxs)(e.Badge,{className:c.badgeClass,children:[(0,b.jsx)("span",{className:"badge-dot"}),c.label]})}],71152)},17236,53596,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(86834),f=a.i(18071),g=a.i(97187),h=a.i(96664);let i=(0,h.createServerReference)("40a8d927c4cdf2644578c7d046ec6ac4b5476e093c",h.callServer,void 0,h.findSourceMapURL,"destroyBoxAction"),j=(0,h.createServerReference)("400fa966c2798373b413a766971b2a65942e1c10ed",h.callServer,void 0,h.findSourceMapURL,"pauseBoxAction"),k=(0,h.createServerReference)("6071e7924c81efcf4f632db30c94b2719dea3aad86",h.callServer,void 0,h.findSourceMapURL,"renameBoxAction"),l=(0,h.createServerReference)("4096c3a9fca12159537e807a65e8c69363c9994b44",h.callServer,void 0,h.findSourceMapURL,"resumeBoxAction"),m=(0,h.createServerReference)("401094edbde1b8a36591bbcb042a1f6f13c0856238",h.callServer,void 0,h.findSourceMapURL,"stopBoxAction");a.s(["BoxActions",0,function({box:a,size:h}){let n=(0,c.useRouter)(),[o,p]=(0,d.useTransition)(),q="running"===a.status,r="paused"===a.status,s="stopped"===a.status,t=a.id.startsWith("job:"),u="lg"===h,v=u?"sm":"icon-sm",w=(b,c,d)=>{b.stopPropagation(),(!d||window.confirm(d))&&p(async()=>{let b=await c(a.id);b.ok||window.alert(`Action failed: ${b.error}`),n.refresh()})};return t?(0,b.jsx)("div",{className:(0,e.cn)("flex gap-1.5",u?"":"justify-end"),children:(0,b.jsxs)(f.Button,{variant:"destructive",size:v,title:"Dismiss",disabled:o||"error"!==a.status,onClick:b=>w(b,i,`Dismiss failed box ${a.id}? This clears the failed create.`),children:[(0,b.jsx)(g.Icons.trash,{}),u?"Dismiss":null]})}):(0,b.jsxs)("div",{className:(0,e.cn)("flex gap-1.5",u?"":"justify-end"),children:[r?(0,b.jsxs)(f.Button,{variant:u?"default":"outline",size:v,title:"Resume",disabled:o,className:u?"":"hover:border-[var(--green)] hover:bg-accent hover:text-[var(--green-ink)]",onClick:a=>w(a,l),children:[(0,b.jsx)(g.Icons.play,{}),u?"Resume":null]}):(0,b.jsxs)(f.Button,{variant:"outline",size:v,disabled:o||!q,title:"Pause",className:u?"":"hover:border-[var(--amber)] hover:bg-[var(--amber-soft)] hover:text-[var(--amber)]",onClick:a=>w(a,j),children:[(0,b.jsx)(g.Icons.pause,{}),u?"Pause":null]}),(0,b.jsxs)(f.Button,{variant:"outline",size:v,disabled:o||s,title:"Stop",onClick:a=>w(a,m),children:[(0,b.jsx)(g.Icons.stop,{}),u?"Stop":null]}),(0,b.jsxs)(f.Button,{variant:"outline",size:v,disabled:o,title:"Rename",onClick:b=>{b.stopPropagation();let c=window.prompt("Rename box (label only — leave blank to reset)",a.displayName??a.task);null!==c&&p(async()=>{let b=await k(a.id,c.trim());b.ok||window.alert(`Rename failed: ${b.error}`),n.refresh()})},children:[(0,b.jsx)(g.Icons.pencil,{}),u?"Rename":null]}),(0,b.jsxs)(f.Button,{variant:"destructive",size:v,title:"Destroy",disabled:o,onClick:b=>w(b,i,`Destroy box ${a.id}? Its workspace volume is discarded. This cannot be undone.`),children:[(0,b.jsx)(g.Icons.trash,{}),u?"Destroy":null]})]})}],17236),a.s(["Select",0,function({wrapperClassName:a,className:c,children:d,...f}){return(0,b.jsxs)("span",{className:(0,e.cn)("relative inline-flex",a),children:[(0,b.jsx)("select",{className:(0,e.cn)("h-9 w-full cursor-pointer appearance-none rounded-lg border border-input bg-card py-1 pl-3 pr-9 text-[13px] shadow-sm focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",c),...f,children:d}),(0,b.jsx)("svg",{className:"pointer-events-none absolute right-3 top-1/2 size-3.5 -translate-y-1/2 text-muted-foreground",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:(0,b.jsx)("path",{d:"m6 9 6 6 6-6"})})]})}],53596)},4305,a=>{"use strict";function b(a){return a.backups.filter(a=>a.state)}a.s(["parseRestoreKey",0,function(a){let b=a.split("/");return 2===b.length&&b[0]&&b[1]?{bot:b[0],stamp:b[1]}:null},"preferredBackup",0,function(a){let c=b(a);return c.find(b=>b.stamp===a.latest)??c[0]},"readableStamp",0,function(a){let b=new Date(a.replace(/^(\d{4}-\d{2}-\d{2})T(\d{2})-(\d{2})-(\d{2})Z$/,"$1T$2:$3:$4Z"));return Number.isNaN(b.getTime())?a:b.toLocaleString()},"restorableBackups",0,b,"restoreKeyOf",0,function(a,b){return`${a}/${b}`}])}];
2
+
3
+ //# sourceMappingURL=apps_hub_17myqp5._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[18071,a=>{"use strict";var b=a.i(33552),c=a.i(86834);let d={default:"bg-primary text-primary-foreground shadow-sm hover:bg-[hsl(var(--accent-foreground))]",outline:"border border-border bg-card text-secondary-foreground shadow-sm hover:border-[#a4a9b0] hover:text-foreground",ghost:"text-muted-foreground hover:bg-secondary hover:text-foreground",destructive:"border border-border bg-card text-destructive shadow-sm hover:border-[var(--red)] hover:bg-[var(--red-soft)]",link:"text-primary underline-offset-4 hover:underline"},e={default:"h-9 px-3.5 text-[13px] [&_svg]:size-3.5",sm:"h-[30px] px-2.5 text-xs rounded-md [&_svg]:size-[13px]",icon:"h-9 w-9 [&_svg]:size-4","icon-sm":"h-7 w-7 rounded-md [&_svg]:size-[13px]"};a.s(["Button",0,function({className:a,variant:f="default",size:g="default",href:h,...i}){let j=(0,c.cn)("inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-lg font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/40 disabled:pointer-events-none disabled:opacity-50 [&_svg]:shrink-0",d[f],e[g],a);return void 0!==h?(0,b.jsx)("a",{className:j,href:h,...i}):(0,b.jsx)("button",{className:j,...i})}])},87883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Card",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("rounded-xl border border-border bg-card text-card-foreground",a),...d})},"CardContent",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("p-5 pt-0",a),...d})},"CardDescription",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[12.5px] text-muted-foreground",a),...d})},"CardHeader",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("flex flex-col space-y-1 p-5",a),...d})},"CardTitle",0,function({className:a,...d}){return(0,b.jsx)("div",{className:(0,c.cn)("text-[15px] font-semibold leading-none tracking-tight",a),...d})}])},85883,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Input",0,function({className:a,...d}){return(0,b.jsx)("input",{className:(0,c.cn)("flex h-10 w-full rounded-lg border border-input bg-card px-3 py-1 text-sm shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...d})}])},34537,a=>{"use strict";var b=a.i(33552),c=a.i(86834);a.s(["Label",0,function({className:a,...d}){return(0,b.jsx)("label",{className:(0,c.cn)("mb-2 block text-[13px] font-medium leading-none",a),...d})}])},75296,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(50253),e=a.i(18071),f=a.i(87883),g=a.i(85883),h=a.i(34537),i=a.i(54250);function j(){var a;let f=(0,c.useRouter)(),j=(a=(0,c.useSearchParams)().get("returnUrl"))&&a.startsWith("/")&&!a.startsWith("//")?a:"/",[k,l]=(0,d.useState)(""),[m,n]=(0,d.useState)(""),[o,p]=(0,d.useState)(null),[q,r]=(0,d.useState)(!1);async function s(a){a.preventDefault(),r(!0),p(null);let{error:b}=await i.signIn.email({email:k,password:m});if(b){p(b.message??"Sign in failed"),r(!1);return}f.push(j),f.refresh()}return(0,b.jsxs)("form",{onSubmit:s,className:"flex flex-col gap-4",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)(h.Label,{htmlFor:"email",children:"Email"}),(0,b.jsx)(g.Input,{id:"email",type:"email",autoComplete:"username",value:k,onChange:a=>l(a.target.value),required:!0,autoFocus:!0})]}),(0,b.jsxs)("div",{children:[(0,b.jsx)(h.Label,{htmlFor:"password",children:"Password"}),(0,b.jsx)(g.Input,{id:"password",type:"password",autoComplete:"current-password",value:m,onChange:a=>n(a.target.value),required:!0})]}),o?(0,b.jsx)("p",{className:"text-[12.5px] text-destructive",children:o}):null,(0,b.jsx)(e.Button,{type:"submit",disabled:q,children:q?"Signing in…":"Sign in"})]})}a.s(["default",0,function(){return(0,b.jsx)("div",{className:"flex min-h-screen items-center justify-center bg-background p-6",children:(0,b.jsxs)(f.Card,{className:"w-full max-w-[380px]",children:[(0,b.jsxs)(f.CardHeader,{children:[(0,b.jsxs)(f.CardTitle,{className:"flex items-center gap-2.5 font-mono",children:[(0,b.jsx)("img",{src:"/logo.svg",alt:"",width:22,height:22,className:"h-[22px] w-[22px]"}),"AgentBox hub"]}),(0,b.jsx)(f.CardDescription,{children:"Sign in to continue"})]}),(0,b.jsx)(f.CardContent,{children:(0,b.jsx)(d.Suspense,{fallback:null,children:(0,b.jsx)(j,{})})})]})})}])}];
2
+
3
+ //# sourceMappingURL=apps_hub_1ak245a._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[82979,a=>{"use strict";a.s([])}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app_%28auth%29_signin_page_actions_1vmiwl7.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[1720,a=>{"use strict";var b=a.i(56539);a.s([],91886),a.i(91886),a.s(["60470f87c7999b1dca9c512862da9659a80e8a731c",()=>b.answerApprovalAction],1720)}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app_%28dashboard%29_approvals_page_actions_1mi0bpn.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[73968,a=>{"use strict";var b=a.i(56539);a.s([],39249),a.i(39249),a.s(["400fa966c2798373b413a766971b2a65942e1c10ed",()=>b.pauseBoxAction,"401094edbde1b8a36591bbcb042a1f6f13c0856238",()=>b.stopBoxAction,"4096c3a9fca12159537e807a65e8c69363c9994b44",()=>b.resumeBoxAction,"40a8d927c4cdf2644578c7d046ec6ac4b5476e093c",()=>b.destroyBoxAction,"601e3dfce4a4ab2a05da305b17b9a2b1a0deff17ac",()=>b.gitCheckoutAction,"601f2c3e0321a08383085ec5e3a5fbb8716ea76294",()=>b.gitPushAction,"60470f87c7999b1dca9c512862da9659a80e8a731c",()=>b.answerApprovalAction,"6071e7924c81efcf4f632db30c94b2719dea3aad86",()=>b.renameBoxAction,"6082cd78a335a4443f8c036a77f52ed6a3083bdcdf",()=>b.gitPullAction,"60da82486c45cc898a820bef37096ef3789b315977",()=>b.restartServiceAction,"60e0680d8810c30312023715663c6f70d4167b0579",()=>b.gitPushHostAction,"70aa4e7ad793775cd9d218cb2581d5063e5c41e19e",()=>b.gitBranchAction],73968)}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app_%28dashboard%29_boxes_%5Bid%5D_page_actions_0k7kgn2.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[39776,a=>{"use strict";a.s([])}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app_%28dashboard%29_custody_page_actions_1l3eye7.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[12901,a=>{"use strict";var b=a.i(56539);a.s([],77267),a.i(77267),a.s(["400fa966c2798373b413a766971b2a65942e1c10ed",()=>b.pauseBoxAction,"401094edbde1b8a36591bbcb042a1f6f13c0856238",()=>b.stopBoxAction,"401bd68ff8094c0b9bf05a721b44b0b7d29763287f",()=>b.createProjectAction,"402eda0518b07f30fd9e8b1c4f899f2a945bca9412",()=>b.browseDirAction,"404f76d985ac6fbd236c731f1d3f0c36bb52320b2b",()=>b.listBranchesAction,"4069d41484fe5995f8acd539b9f440661717b97aee",()=>b.removeProjectAction,"4088fd04bb9ec3ac2c0ae00f6a2cb7dd879c184007",()=>b.addProjectAction,"4096c3a9fca12159537e807a65e8c69363c9994b44",()=>b.resumeBoxAction,"40a8d927c4cdf2644578c7d046ec6ac4b5476e093c",()=>b.destroyBoxAction,"40e884589d1e7e5ab0b4a28c5f8833f40542ce99d3",()=>b.createBoxAction,"60470f87c7999b1dca9c512862da9659a80e8a731c",()=>b.answerApprovalAction,"6071e7924c81efcf4f632db30c94b2719dea3aad86",()=>b.renameBoxAction],12901)}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app_%28dashboard%29_page_actions_1t3u0xy.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[39595,a=>{"use strict";a.s([])}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app_%28dashboard%29_settings_page_actions_0ti7gxm.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[7875,a=>{"use strict";a.s([])}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app_%28dashboard%29_system_page_actions_15ysdm5.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[70202,a=>{"use strict";a.s([])}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app__global-error_page_actions_1ofuxm1.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[53541,a=>{"use strict";a.s([])}];
2
+
3
+ //# sourceMappingURL=apps_hub__next-internal_server_app__not-found_page_actions_1fmdkci.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[58099,a=>{"use strict";let b,c;var d,e=a.i(33552),f=a.i(74455),g=a.i(17607),h=a.i(97187),i=a.i(81624),j=a.i(71152),k=a.i(86834);function l({className:a,icon:b,title:c,children:d}){return(0,e.jsxs)("div",{className:(0,k.cn)("relative flex w-full items-start gap-3 rounded-xl border p-4",a),children:[b?(0,e.jsx)(b,{className:"mt-0.5 size-4 flex-none"}):null,(0,e.jsxs)("div",{className:"min-w-0",children:[c?(0,e.jsx)("div",{className:"mb-0.5 text-[13.5px] font-semibold leading-tight",children:c}):null,(0,e.jsx)("div",{className:"text-[12.5px] leading-normal",children:d})]})]})}var m=a.i(87883),n=a.i(80007),o=a.i(60401);function p({boxId:a}){let{state:b}=(0,n.useStore)(),c=b.approvals.filter(b=>b.boxId===a).sort((a,b)=>a.createdAt-b.createdAt);return 0===c.length?null:(0,e.jsxs)("div",{className:"mt-4 overflow-hidden rounded-xl border border-[var(--amber-line)] bg-[var(--amber-soft)]",children:[(0,e.jsxs)("div",{className:"flex items-center gap-2 border-b border-[var(--amber-line)] px-4 py-2.5",children:[(0,e.jsx)(h.Icons.shield,{className:"size-4 flex-none text-[var(--amber)]"}),(0,e.jsxs)("span",{className:"text-[13.5px] font-semibold",children:[c.length," pending approval",1===c.length?"":"s"]}),(0,e.jsx)("span",{className:"text-[12.5px] text-muted-foreground",children:"— this box is waiting on you."})]}),(0,e.jsx)("div",{className:"divide-y divide-[var(--amber-line)]",children:c.map(a=>(0,e.jsxs)("div",{className:"flex items-start gap-3 px-4 py-3",children:[(0,e.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,e.jsx)("div",{className:"truncate font-mono text-[13px] text-secondary-foreground",children:a.command??a.message}),a.detail?(0,e.jsx)("div",{className:"mt-0.5 truncate text-[11.5px] text-muted-foreground",children:a.detail}):null,a.cwd?(0,e.jsx)("div",{className:"mt-0.5 truncate font-mono text-[11px] text-[#a4a9b0]",children:a.cwd}):null,(0,e.jsx)("div",{className:"mt-0.5 font-mono text-[11px] text-[#a4a9b0]",children:(0,e.jsx)(g.Ago,{ms:a.createdAt})})]}),(0,e.jsx)("div",{className:"flex-none pt-0.5",children:(0,e.jsx)(o.ApprovalActions,{id:a.id,url:a.url})})]},a.id))})]})}var q=a.i(50253),r=a.i(18071);function s(a,b,{checkForDefaultPrevented:c=!0}={}){return function(d){if(a?.(d),!1===c||!d||!d.defaultPrevented)return b?.(d)}}function t(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}function u(...a){return q.useCallback(function(...a){return b=>{let c=!1,d=a.map(a=>{let d=t(a,b);return c||"function"!=typeof d||(c=!0),d});if(c)return()=>{for(let b=0;b<d.length;b++){let c=d[b];"function"==typeof c?c():t(a[b],null)}}}}(...a),a)}function v(a,b=[]){let c=[],d=()=>{let b=c.map(a=>q.createContext(a));return function(c){let d=c?.[a]||b;return q.useMemo(()=>({[`__scope${a}`]:{...c,[a]:d}}),[c,d])}};return d.scopeName=a,[function(b,d){let f=q.createContext(d);f.displayName=b+"Context";let g=c.length;c=[...c,d];let h=b=>{let{scope:c,children:d,...h}=b,i=c?.[a]?.[g]||f,j=q.useMemo(()=>h,Object.values(h));return(0,e.jsx)(i.Provider,{value:j,children:d})};return h.displayName=b+"Provider",[h,function(c,e,h={}){let{optional:i=!1}=h,j=e?.[a]?.[g]||f,k=q.useContext(j);if(k)return k;if(void 0!==d)return d;if(!i)throw Error(`\`${c}\` must be used within \`${b}\``)}]},function(...a){let b=a[0];if(1===a.length)return b;let c=()=>{let c=a.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(a){let d=c.reduce((b,{useScope:c,scopeName:d})=>{let e=c(a)[`__scope${d}`];return{...b,...e}},{});return q.useMemo(()=>({[`__scope${b.scopeName}`]:d}),[d])}};return c.scopeName=b.scopeName,c}(d,...b)]}var w=a.i(48365),x=Symbol.for("radix.slottable"),y=Symbol.for("react.lazy");function z(a){var b;return null!=a&&"object"==typeof a&&"$$typeof"in a&&a.$$typeof===y&&"_payload"in a&&"object"==typeof(b=a._payload)&&null!==b&&"then"in b}var A=q[" use ".trim().toString()],B=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((a,b)=>{var c;let d,f=(c=`Primitive.${b}`,(d=q.forwardRef((a,b)=>{var d;let e,f,{children:g,...h}=a,i=null,j=!1,k=[];z(g)&&"function"==typeof A&&(g=A(g._payload)),q.Children.forEach(g,a=>{var b;if(b=a,q.isValidElement(b)&&"function"==typeof b.type&&"__radixId"in b.type&&b.type.__radixId===x){j=!0;let b="child"in a.props?a.props.child:a.props.children;z(b)&&"function"==typeof A&&(b=A(b._payload)),i=((a,b)=>{if("child"in a.props){let b=a.props.child;return q.isValidElement(b)?q.cloneElement(b,void 0,a.props.children(b.props.children)):null}return q.isValidElement(b)?b:null})(a,b),k.push(i?.props?.children)}else k.push(a)}),i?i=q.cloneElement(i,void 0,k):!j&&1===q.Children.count(g)&&q.isValidElement(g)&&(i=g);let l=i?(d=i,(f=(e=Object.getOwnPropertyDescriptor(d.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?d.ref:(f=(e=Object.getOwnPropertyDescriptor(d,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?d.props.ref:d.props.ref||d.ref):void 0,m=u(b,l);if(!i){if(g||0===g){let a,b;throw Error(j?(a=c,`${a} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`):(b=c,`${b} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`))}return g}let n=function(a,b){let c={...b};for(let d in b){let e=a[d],f=b[d];/^on[A-Z]/.test(d)?e&&f?c[d]=(...a)=>{let b=f(...a);return e(...a),b}:e&&(c[d]=e):"style"===d?c[d]={...e,...f}:"className"===d&&(c[d]=[e,f].filter(Boolean).join(" "))}return{...a,...c}}(h,i.props??{});return i.type!==q.Fragment&&(n.ref=b?m:l),q.cloneElement(i,n)})).displayName=`${c}.Slot`,d),g=q.forwardRef((a,c)=>{let{asChild:d,...g}=a;return(0,e.jsx)(d?f:b,{...g,ref:c})});return g.displayName=`Primitive.${b}`,{...a,[b]:g}},{});function C(a){let b=q.useRef(a);return q.useEffect(()=>{b.current=a}),q.useMemo(()=>(...a)=>b.current?.(...a),[])}var D="dismissableLayer.update",E=q.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),F=q.forwardRef((a,b)=>{let{disableOutsidePointerEvents:c=!1,deferPointerDownOutside:f=!1,onEscapeKeyDown:g,onPointerDownOutside:h,onFocusOutside:i,onInteractOutside:j,onDismiss:k,...l}=a,m=q.useContext(E),[n,o]=q.useState(null),p=n?.ownerDocument??globalThis?.document,[,r]=q.useState({}),t=u(b,o),v=Array.from(m.layers),[w]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),x=w?v.indexOf(w):-1,y=n?v.indexOf(n):-1,z=m.layersWithOutsidePointerEventsDisabled.size>0,A=y>=x,F=q.useRef(!1),J=function(a,b){let{ownerDocument:c=globalThis?.document,deferPointerDownOutside:d=!1,isDeferredPointerDownOutsideRef:e,dismissableSurfaces:f,shouldHandlePointerDownOutside:g=G}=b,h=C(a),i=q.useRef(!1),j=q.useRef(!1),k=q.useRef(new Map),l=q.useRef(()=>{});return q.useEffect(()=>{function a(){j.current=!1,e.current=!1,k.current.clear()}function b(a){if(!j.current)return;let b=a.target;b instanceof Node&&[...f].some(a=>a.contains(b))||k.current.set(a.type,!0),"click"===a.type&&window.setTimeout(()=>{j.current&&l.current()},0)}function m(a){j.current&&k.current.set(a.type,!1)}let n=b=>{if(b.target&&!i.current){let f=function(){c.removeEventListener("click",l.current);let b=Array.from(k.current.values()).some(Boolean);a(),b||I("dismissableLayer.pointerDownOutside",h,m,{discrete:!0})};if(!g(b.target)){c.removeEventListener("click",l.current),a(),i.current=!1;return}let m={originalEvent:b};j.current=!0,e.current=d&&0===b.button,k.current.clear(),d&&0===b.button?(c.removeEventListener("click",l.current),l.current=f,c.addEventListener("click",l.current,{once:!0})):f()}else c.removeEventListener("click",l.current),a();i.current=!1},o=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let a of o)c.addEventListener(a,b,!0),c.addEventListener(a,m);let p=window.setTimeout(()=>{c.addEventListener("pointerdown",n)},0);return()=>{for(let a of(window.clearTimeout(p),c.removeEventListener("pointerdown",n),c.removeEventListener("click",l.current),o))c.removeEventListener(a,b,!0),c.removeEventListener(a,m)}},[c,h,d,e,f,g]),{onPointerDownCapture:()=>i.current=!0}}(a=>{h?.(a),j?.(a),a.defaultPrevented||k?.()},{ownerDocument:p,deferPointerDownOutside:f,isDeferredPointerDownOutsideRef:F,dismissableSurfaces:m.dismissableSurfaces,shouldHandlePointerDownOutside:q.useCallback(a=>{if(!(a instanceof Node))return!1;let b=[...m.branches].some(b=>b.contains(a));return A&&!b},[m.branches,A])}),K=function(a,b=globalThis?.document){let c=C(a),d=q.useRef(!1);return q.useEffect(()=>{let a=a=>{a.target&&!d.current&&I("dismissableLayer.focusOutside",c,{originalEvent:a},{discrete:!1})};return b.addEventListener("focusin",a),()=>b.removeEventListener("focusin",a)},[b,c]),{onFocusCapture:()=>d.current=!0,onBlurCapture:()=>d.current=!1}}(a=>{if(f&&F.current)return;let b=a.target;![...m.branches].some(a=>a.contains(b))&&(i?.(a),j?.(a),a.defaultPrevented||k?.())},p),L=!!n&&y===v.length-1,M=C(a=>{"Escape"===a.key&&(g?.(a),!a.defaultPrevented&&k&&(a.preventDefault(),k()))});return q.useEffect(()=>{if(L)return p.addEventListener("keydown",M,{capture:!0}),()=>p.removeEventListener("keydown",M,{capture:!0})},[p,L,M]),q.useEffect(()=>{if(n)return c&&(0===m.layersWithOutsidePointerEventsDisabled.size&&(d=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(n)),m.layers.add(n),H(),()=>{c&&(m.layersWithOutsidePointerEventsDisabled.delete(n),0===m.layersWithOutsidePointerEventsDisabled.size&&(p.body.style.pointerEvents=d))}},[n,p,c,m]),q.useEffect(()=>()=>{n&&(m.layers.delete(n),m.layersWithOutsidePointerEventsDisabled.delete(n),H())},[n,m]),q.useEffect(()=>{let a=()=>r({});return document.addEventListener(D,a),()=>document.removeEventListener(D,a)},[]),(0,e.jsx)(B.div,{...l,ref:t,style:{pointerEvents:z?A?"auto":"none":void 0,...a.style},onFocusCapture:s(a.onFocusCapture,K.onFocusCapture),onBlurCapture:s(a.onBlurCapture,K.onBlurCapture),onPointerDownCapture:s(a.onPointerDownCapture,J.onPointerDownCapture)})});F.displayName="DismissableLayer",q.forwardRef((a,b)=>{let c=q.useContext(E),d=q.useRef(null),f=u(b,d);return q.useEffect(()=>{let a=d.current;if(a)return c.branches.add(a),()=>{c.branches.delete(a)}},[c.branches]),(0,e.jsx)(B.div,{...a,ref:f})}).displayName="DismissableLayerBranch";var G=()=>!0;function H(){let a=new CustomEvent(D);document.dispatchEvent(a)}function I(a,b,c,{discrete:d}){let e=c.originalEvent.target,f=new CustomEvent(a,{bubbles:!1,cancelable:!0,detail:c});if(b&&e.addEventListener(a,b,{once:!0}),d)e&&w.flushSync(()=>e.dispatchEvent(f));else e.dispatchEvent(f)}var J=globalThis?.document?q.useLayoutEffect:()=>{},K=q[" useId ".trim().toString()]||(()=>void 0),L=0;let M=["top","right","bottom","left"],N=Math.min,O=Math.max,P=Math.round,Q=Math.floor,R=a=>({x:a,y:a}),S={left:"right",right:"left",bottom:"top",top:"bottom"};function T(a,b){return"function"==typeof a?a(b):a}function U(a){return a.split("-")[0]}function V(a){return a.split("-")[1]}function W(a){return"x"===a?"y":"x"}function X(a){return"y"===a?"height":"width"}function Y(a){let b=a[0];return"t"===b||"b"===b?"y":"x"}function Z(a){return a.includes("start")?a.replace("start","end"):a.replace("end","start")}let $=["left","right"],_=["right","left"],aa=["top","bottom"],ab=["bottom","top"];function ac(a){let b=U(a);return S[b]+a.slice(b.length)}function ad(a){return"number"!=typeof a?{top:0,right:0,bottom:0,left:0,...a}:{top:a,right:a,bottom:a,left:a}}function ae(a){let{x:b,y:c,width:d,height:e}=a;return{width:d,height:e,top:c,left:b,right:b+d,bottom:c+e,x:b,y:c}}function af(a,b,c){let d,{reference:e,floating:f}=a,g=Y(b),h=W(Y(b)),i=X(h),j=U(b),k="y"===g,l=e.x+e.width/2-f.width/2,m=e.y+e.height/2-f.height/2,n=e[i]/2-f[i]/2;switch(j){case"top":d={x:l,y:e.y-f.height};break;case"bottom":d={x:l,y:e.y+e.height};break;case"right":d={x:e.x+e.width,y:m};break;case"left":d={x:e.x-f.width,y:m};break;default:d={x:e.x,y:e.y}}switch(V(b)){case"start":d[h]-=n*(c&&k?-1:1);break;case"end":d[h]+=n*(c&&k?-1:1)}return d}async function ag(a,b){var c;void 0===b&&(b={});let{x:d,y:e,platform:f,rects:g,elements:h,strategy:i}=a,{boundary:j="clippingAncestors",rootBoundary:k="viewport",elementContext:l="floating",altBoundary:m=!1,padding:n=0}=T(b,a),o=ad(n),p=h[m?"floating"===l?"reference":"floating":l],q=ae(await f.getClippingRect({element:null==(c=await (null==f.isElement?void 0:f.isElement(p)))||c?p:p.contextElement||await (null==f.getDocumentElement?void 0:f.getDocumentElement(h.floating)),boundary:j,rootBoundary:k,strategy:i})),r="floating"===l?{x:d,y:e,width:g.floating.width,height:g.floating.height}:g.reference,s=await (null==f.getOffsetParent?void 0:f.getOffsetParent(h.floating)),t=await (null==f.isElement?void 0:f.isElement(s))&&await (null==f.getScale?void 0:f.getScale(s))||{x:1,y:1},u=ae(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:r,offsetParent:s,strategy:i}):r);return{top:(q.top-u.top+o.top)/t.y,bottom:(u.bottom-q.bottom+o.bottom)/t.y,left:(q.left-u.left+o.left)/t.x,right:(u.right-q.right+o.right)/t.x}}let ah=async(a,b,c)=>{let{placement:d="bottom",strategy:e="absolute",middleware:f=[],platform:g}=c,h=g.detectOverflow?g:{...g,detectOverflow:ag},i=await (null==g.isRTL?void 0:g.isRTL(b)),j=await g.getElementRects({reference:a,floating:b,strategy:e}),{x:k,y:l}=af(j,d,i),m=d,n=0,o={};for(let c=0;c<f.length;c++){let p=f[c];if(!p)continue;let{name:q,fn:r}=p,{x:s,y:t,data:u,reset:v}=await r({x:k,y:l,initialPlacement:d,placement:m,strategy:e,middlewareData:o,rects:j,platform:h,elements:{reference:a,floating:b}});k=null!=s?s:k,l=null!=t?t:l,o[q]={...o[q],...u},v&&n<50&&(n++,"object"==typeof v&&(v.placement&&(m=v.placement),v.rects&&(j=!0===v.rects?await g.getElementRects({reference:a,floating:b,strategy:e}):v.rects),{x:k,y:l}=af(j,m,i)),c=-1)}return{x:k,y:l,placement:m,strategy:e,middlewareData:o}};function ai(a,b){return{top:a.top-b.height,right:a.right-b.width,bottom:a.bottom-b.height,left:a.left-b.width}}function aj(a){return M.some(b=>a[b]>=0)}let ak=new Set(["left","top"]);async function al(a,b){let{placement:c,platform:d,elements:e}=a,f=await (null==d.isRTL?void 0:d.isRTL(e.floating)),g=U(c),h=V(c),i="y"===Y(c),j=ak.has(g)?-1:1,k=f&&i?-1:1,l=T(b,a),{mainAxis:m,crossAxis:n,alignmentAxis:o}="number"==typeof l?{mainAxis:l,crossAxis:0,alignmentAxis:null}:{mainAxis:l.mainAxis||0,crossAxis:l.crossAxis||0,alignmentAxis:l.alignmentAxis};return h&&"number"==typeof o&&(n="end"===h?-1*o:o),i?{x:n*k,y:m*j}:{x:m*j,y:n*k}}function am(a){return function(a){return!1}(a)?(a.nodeName||"").toLowerCase():"#document"}function an(a){var b;return(null==a||null==(b=a.ownerDocument)?void 0:b.defaultView)||window}function ao(a){var b;return null==(b=(function(a){return!1}(a)?a.ownerDocument:a.document)||window.document)?void 0:b.documentElement}function ap(a){return!1}function aq(a){let{overflow:b,overflowX:c,overflowY:d,display:e}=ay(a);return/auto|scroll|overlay|hidden|clip/.test(b+d+c)&&"inline"!==e&&"contents"!==e}function ar(a){try{if(a.matches(":popover-open"))return!0}catch(a){}try{return a.matches(":modal")}catch(a){return!1}}let as=/transform|translate|scale|rotate|perspective|filter/,at=/paint|layout|strict|content/,au=a=>!!a&&"none"!==a;function av(a){let b=a;return au(b.transform)||au(b.translate)||au(b.scale)||au(b.rotate)||au(b.perspective)||!aw()&&(au(b.backdropFilter)||au(b.filter))||as.test(b.willChange||"")||at.test(b.contain||"")}function aw(){return null==b&&(b="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),b}function ax(a){return/^(html|body|#document)$/.test(am(a))}function ay(a){return an(a).getComputedStyle(a)}function az(a){return{scrollLeft:a.scrollX,scrollTop:a.scrollY}}function aA(a){if("html"===am(a))return a;let b=a.assignedSlot||a.parentNode||ao(a);return b}function aB(a,b,c){var d;void 0===b&&(b=[]),void 0===c&&(c=!0);let e=function a(b){let c=aA(b);return ax(c)?b.ownerDocument?b.ownerDocument.body:b.body:a(c)}(a),f=e===(null==(d=a.ownerDocument)?void 0:d.body),g=an(e);if(!f)return b.concat(e,aB(e,[],c));{let a=aC(g);return b.concat(g,g.visualViewport||[],aq(e)?e:[],a&&c?aB(a):[])}}function aC(a){return a.parent&&Object.getPrototypeOf(a.parent)?a.frameElement:null}function aD(a){let b=ay(a),c=parseFloat(b.width)||0,d=parseFloat(b.height)||0,e=c,f=d,g=P(c)!==e||P(d)!==f;return g&&(c=e,d=f),{width:c,height:d,$:g}}function aE(a){return 0,a.contextElement}function aF(a){let b=aE(a);1;return R(1)}let aG=R(0);function aH(a){let b=an(a);return aw()&&b.visualViewport?{x:b.visualViewport.offsetLeft,y:b.visualViewport.offsetTop}:aG}function aI(a,b,c,d){var e;void 0===b&&(b=!1),void 0===c&&(c=!1);let f=a.getBoundingClientRect(),g=aE(a),h=R(1);b&&(d||(h=aF(a)));let i=(void 0===(e=c)&&(e=!1),d&&(!e||d===an(g))&&e)?aH(g):R(0),j=(f.left+i.x)/h.x,k=(f.top+i.y)/h.y,l=f.width/h.x,m=f.height/h.y;if(g){let a=an(g),b=d,c=a,e=aC(c);for(;e&&d&&b!==c;){let a=aF(e),b=e.getBoundingClientRect(),d=ay(e),f=b.left+(e.clientLeft+parseFloat(d.paddingLeft))*a.x,g=b.top+(e.clientTop+parseFloat(d.paddingTop))*a.y;j*=a.x,k*=a.y,l*=a.x,m*=a.y,j+=f,k+=g,e=aC(c=an(e))}}return ae({width:l,height:m,x:j,y:k})}function aJ(a,b){let c=az(a).scrollLeft;return b?b.left+c:aI(ao(a)).left+c}function aK(a,b){let c=a.getBoundingClientRect();return{x:c.left+b.scrollLeft-aJ(a,c),y:c.top+b.scrollTop}}function aL(a,b,c){var d;let e;if("viewport"===b)e=function(a,b){let c=an(a),d=ao(a),e=c.visualViewport,f=d.clientWidth,g=d.clientHeight,h=0,i=0;if(e){f=e.width,g=e.height;let a=aw();(!a||a&&"fixed"===b)&&(h=e.offsetLeft,i=e.offsetTop)}let j=aJ(d);if(j<=0){let a=d.ownerDocument,b=a.body,c=getComputedStyle(b),e="CSS1Compat"===a.compatMode&&parseFloat(c.marginLeft)+parseFloat(c.marginRight)||0,g=Math.abs(d.clientWidth-b.clientWidth-e);g<=25&&(f-=g)}else j<=25&&(f+=j);return{width:f,height:g,x:h,y:i}}(a,c);else if("document"===b){let b,c,f,g,h,i,j;d=ao(a),b=ao(d),c=az(d),f=d.ownerDocument.body,g=O(b.scrollWidth,b.clientWidth,f.scrollWidth,f.clientWidth),h=O(b.scrollHeight,b.clientHeight,f.scrollHeight,f.clientHeight),i=-c.scrollLeft+aJ(d),j=-c.scrollTop,"rtl"===ay(f).direction&&(i+=O(b.clientWidth,f.clientWidth)-g),e={width:g,height:h,x:i,y:j}}else if(1){let c=aH(a);e={x:b.x-c.x,y:b.y-c.y,width:b.width,height:b.height}}else{let a,d,f,g,h,i;d=(a=aI(b,!0,"fixed"===c)).top+b.clientTop,f=a.left+b.clientLeft,g=R(1),h=b.clientWidth*g.x,i=b.clientHeight*g.y,e={width:h,height:i,x:f*g.x,y:d*g.y}}return ae(e)}function aM(a){return"static"===ay(a).position}function aN(a,b){1;return null}function aO(a,b){var c;let d=an(a);if(ar(a))return d;1;{let b=aA(a);for(;b&&!ax(b);){0;b=aA(b)}return d}}let aP=async function(a){let b=this.getOffsetParent||aO,c=this.getDimensions,d=await c(a.floating);return{reference:function(a,b,c){let d=ao(b),e="fixed"===c,f=aI(a,!0,e,b),g={scrollLeft:0,scrollTop:0},h=R(0);if(!e)if(("body"!==am(b)||aq(d))&&(g=az(b)),1)d&&(h.x=aJ(d));else{let a=aI(b,!0,e,b);h.x=a.x+b.clientLeft,h.y=a.y+b.clientTop}e&&d&&(h.x=aJ(d));let i=!d||e?R(0):aK(d,g);return{x:f.left+g.scrollLeft-h.x-i.x,y:f.top+g.scrollTop-h.y-i.y,width:f.width,height:f.height}}(a.reference,await b(a.floating),a.strategy),floating:{x:0,y:0,width:d.width,height:d.height}}},aQ={convertOffsetParentRelativeRectToViewportRelativeRect:function(a){let{elements:b,rect:c,offsetParent:d,strategy:e}=a,f="fixed"===e,g=ao(d),h=!!b&&ar(b.floating);if(d===g||h&&f)return c;let i={scrollLeft:0,scrollTop:0},j=R(1),k=R(0);!f&&(("body"!==am(d)||aq(g))&&(i=az(d)),0);let l=!g||f?R(0):aK(g,i);return{width:c.width*j.x,height:c.height*j.y,x:c.x*j.x-i.scrollLeft*j.x+k.x+l.x,y:c.y*j.y-i.scrollTop*j.y+k.y+l.y}},getDocumentElement:ao,getClippingRect:function(a){let{element:b,boundary:c,rootBoundary:d,strategy:e}=a,f=[..."clippingAncestors"===c?ar(b)?[]:function(a,b){let c=b.get(a);if(c)return c;let d=aB(a,[],!1).filter(a=>!1),e="fixed"===ay(a).position,f=e?aA(a):a;return b.set(a,d),d}(b,this._c):[].concat(c),d],g=aL(b,f[0],e),h=g.top,i=g.right,j=g.bottom,k=g.left;for(let a=1;a<f.length;a++){let c=aL(b,f[a],e);h=O(c.top,h),i=N(c.right,i),j=N(c.bottom,j),k=O(c.left,k)}return{width:i-k,height:j-h,x:k,y:h}},getOffsetParent:aO,getElementRects:aP,getClientRects:function(a){return Array.from(a.getClientRects())},getDimensions:function(a){let{width:b,height:c}=aD(a);return{width:b,height:c}},getScale:aF,isElement:ap,isRTL:function(a){return"rtl"===ay(a).direction}};function aR(a,b){return a.x===b.x&&a.y===b.y&&a.width===b.width&&a.height===b.height}let aS=a=>({name:"arrow",options:a,async fn(b){let{x:c,y:d,placement:e,rects:f,platform:g,elements:h,middlewareData:i}=b,{element:j,padding:k=0}=T(a,b)||{};if(null==j)return{};let l=ad(k),m={x:c,y:d},n=W(Y(e)),o=X(n),p=await g.getDimensions(j),q="y"===n,r=q?"clientHeight":"clientWidth",s=f.reference[o]+f.reference[n]-m[n]-f.floating[o],t=m[n]-f.reference[n],u=await (null==g.getOffsetParent?void 0:g.getOffsetParent(j)),v=u?u[r]:0;v&&await (null==g.isElement?void 0:g.isElement(u))||(v=h.floating[r]||f.floating[o]);let w=v/2-p[o]/2-1,x=N(l[q?"top":"left"],w),y=N(l[q?"bottom":"right"],w),z=v-p[o]-y,A=v/2-p[o]/2+(s/2-t/2),B=O(x,N(A,z)),C=!i.arrow&&null!=V(e)&&A!==B&&f.reference[o]/2-(A<x?x:y)-p[o]/2<0,D=C?A<x?A-x:A-z:0;return{[n]:m[n]+D,data:{[n]:B,centerOffset:A-B-D,...C&&{alignmentOffset:D}},reset:C}}});var aT="u">typeof document?q.useLayoutEffect:function(){};function aU(a,b){let c,d,e;if(a===b)return!0;if(typeof a!=typeof b)return!1;if("function"==typeof a&&a.toString()===b.toString())return!0;if(a&&b&&"object"==typeof a){if(Array.isArray(a)){if((c=a.length)!==b.length)return!1;for(d=c;0!=d--;)if(!aU(a[d],b[d]))return!1;return!0}if((c=(e=Object.keys(a)).length)!==Object.keys(b).length)return!1;for(d=c;0!=d--;)if(!({}).hasOwnProperty.call(b,e[d]))return!1;for(d=c;0!=d--;){let c=e[d];if(("_owner"!==c||!a.$$typeof)&&!aU(a[c],b[c]))return!1}return!0}return a!=a&&b!=b}function aV(a,b){return Math.round(+b)/1}function aW(a){let b=q.useRef(a);return aT(()=>{b.current=a}),b}var aX=q.forwardRef((a,b)=>{let{children:c,width:d=10,height:f=5,...g}=a;return(0,e.jsx)(B.svg,{...g,ref:b,width:d,height:f,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:a.asChild?c:(0,e.jsx)("polygon",{points:"0,0 30,0 15,10"})})});aX.displayName="Arrow";var aY="Popper",[aZ,a$]=v(aY),[a_,a0]=aZ(aY),a1=a=>{let{__scopePopper:b,children:c}=a,[d,f]=q.useState(null),[g,h]=q.useState(void 0);return(0,e.jsx)(a_,{scope:b,anchor:d,onAnchorChange:f,placementState:g,setPlacementState:h,children:c})};a1.displayName=aY;var a2="PopperAnchor",a3=q.forwardRef((a,b)=>{let{__scopePopper:c,virtualRef:d,...f}=a,g=a0(a2,c),h=q.useRef(null),i=g.onAnchorChange,j=u(b,q.useCallback(a=>{h.current=a,a&&i(a)},[i])),k=q.useRef(null);q.useEffect(()=>{if(!d)return;let a=k.current;k.current=d.current,a!==k.current&&i(k.current)});let l=g.placementState&&bd(g.placementState),m=l?.[0],n=l?.[1];return d?null:(0,e.jsx)(B.div,{"data-radix-popper-side":m,"data-radix-popper-align":n,...f,ref:j})});a3.displayName=a2;var a4="PopperContent",[a5,a6]=aZ(a4),a7=q.forwardRef((a,b)=>{var c,d,f,g,h,i,j,k,l,m,n,o,p;let r,s,t,v,x,y,{__scopePopper:z,side:A="bottom",sideOffset:D=0,align:E="center",alignOffset:F=0,arrowPadding:G=0,avoidCollisions:H=!0,collisionBoundary:I=[],collisionPadding:K=0,sticky:L="partial",hideWhenDetached:M=!1,updatePositionStrategy:P="optimized",onPlaced:R,...S}=a,ad=a0(a4,z),[ae,af]=q.useState(null),ag=u(b,af),[am,an]=q.useState(null),ap=function(a){let[b,c]=q.useState(void 0);return J(()=>{if(a){c({width:a.offsetWidth,height:a.offsetHeight});let b=new ResizeObserver(b=>{let d,e;if(!Array.isArray(b)||!b.length)return;let f=b[0];if("borderBoxSize"in f){let a=f.borderBoxSize,b=Array.isArray(a)?a[0]:a;d=b.inlineSize,e=b.blockSize}else d=a.offsetWidth,e=a.offsetHeight;c({width:d,height:e})});return b.observe(a,{box:"border-box"}),()=>b.unobserve(a)}c(void 0)},[a]),b}(am),aq=ap?.width??0,ar=ap?.height??0,as="number"==typeof K?K:{top:0,right:0,bottom:0,left:0,...K},at=Array.isArray(I)?I:[I],au=at.length>0,av={padding:as,boundary:at.filter(bb),altBoundary:au},{refs:aw,floatingStyles:ax,placement:ay,isPositioned:az,middlewareData:aA}=function(a){void 0===a&&(a={});let{placement:b="bottom",strategy:c="absolute",middleware:d=[],platform:e,elements:{reference:f,floating:g}={},transform:h=!0,whileElementsMounted:i,open:j}=a,[k,l]=q.useState({x:0,y:0,strategy:c,placement:b,middlewareData:{},isPositioned:!1}),[m,n]=q.useState(d);aU(m,d)||n(d);let[o,p]=q.useState(null),[r,s]=q.useState(null),t=q.useCallback(a=>{a!==y.current&&(y.current=a,p(a))},[]),u=q.useCallback(a=>{a!==z.current&&(z.current=a,s(a))},[]),v=f||o,x=g||r,y=q.useRef(null),z=q.useRef(null),A=q.useRef(k),B=null!=i,C=aW(i),D=aW(e),E=aW(j),F=q.useCallback(()=>{var a,d;let e,f,g;if(!y.current||!z.current)return;let h={placement:b,strategy:c,middleware:m};D.current&&(h.platform=D.current),(a=y.current,d=z.current,e=new Map,g={...(f={platform:aQ,...h}).platform,_c:e},ah(a,d,{...f,platform:g})).then(a=>{let b={...a,isPositioned:!1!==E.current};G.current&&!aU(A.current,b)&&(A.current=b,w.flushSync(()=>{l(b)}))})},[m,b,c,D,E]);aT(()=>{!1===j&&A.current.isPositioned&&(A.current.isPositioned=!1,l(a=>({...a,isPositioned:!1})))},[j]);let G=q.useRef(!1);aT(()=>(G.current=!0,()=>{G.current=!1}),[]),aT(()=>{if(v&&(y.current=v),x&&(z.current=x),v&&x){if(C.current)return C.current(v,x,F);F()}},[v,x,F,C,B]);let H=q.useMemo(()=>({reference:y,floating:z,setReference:t,setFloating:u}),[t,u]),I=q.useMemo(()=>({reference:v,floating:x}),[v,x]),J=q.useMemo(()=>{let a={position:c,left:0,top:0};if(!I.floating)return a;let b=aV(I.floating,k.x),d=aV(I.floating,k.y);if(h)return{...a,transform:"translate("+b+"px, "+d+"px)",...(I.floating,false)};return{position:c,left:b,top:d}},[c,h,I.floating,k.x,k.y]);return q.useMemo(()=>({...k,update:F,refs:H,elements:I,floatingStyles:J}),[k,F,H,I,J])}({strategy:"fixed",placement:A+("center"!==E?"-"+E:""),whileElementsMounted:(...a)=>(function(a,b,c,d){let e;void 0===d&&(d={});let{ancestorScroll:f=!0,ancestorResize:g=!0,elementResize:h="function"==typeof ResizeObserver,layoutShift:i="function"==typeof IntersectionObserver,animationFrame:j=!1}=d,k=aE(a),l=f||g?[...k?aB(k):[],...b?aB(b):[]]:[];l.forEach(a=>{f&&a.addEventListener("scroll",c,{passive:!0}),g&&a.addEventListener("resize",c)});let m=k&&i?function(a,b){let c,d=null,e=ao(a);function f(){var a;clearTimeout(c),null==(a=d)||a.disconnect(),d=null}return!function g(h,i){void 0===h&&(h=!1),void 0===i&&(i=1),f();let j=a.getBoundingClientRect(),{left:k,top:l,width:m,height:n}=j;if(h||b(),!m||!n)return;let o={rootMargin:-Q(l)+"px "+-Q(e.clientWidth-(k+m))+"px "+-Q(e.clientHeight-(l+n))+"px "+-Q(k)+"px",threshold:O(0,N(1,i))||1},p=!0;function q(b){let d=b[0].intersectionRatio;if(d!==i){if(!p)return g();d?g(!1,d):c=setTimeout(()=>{g(!1,1e-7)},1e3)}1!==d||aR(j,a.getBoundingClientRect())||g(),p=!1}try{d=new IntersectionObserver(q,{...o,root:e.ownerDocument})}catch(a){d=new IntersectionObserver(q,o)}d.observe(a)}(!0),f}(k,c):null,n=-1,o=null;h&&(o=new ResizeObserver(a=>{let[d]=a;d&&d.target===k&&o&&b&&(o.unobserve(b),cancelAnimationFrame(n),n=requestAnimationFrame(()=>{var a;null==(a=o)||a.observe(b)})),c()}),k&&!j&&o.observe(k),b&&o.observe(b));let p=j?aI(a):null;return j&&function b(){let d=aI(a);p&&!aR(p,d)&&c(),p=d,e=requestAnimationFrame(b)}(),c(),()=>{var a;l.forEach(a=>{f&&a.removeEventListener("scroll",c),g&&a.removeEventListener("resize",c)}),null==m||m(),null==(a=o)||a.disconnect(),o=null,j&&cancelAnimationFrame(e)}})(...a,{animationFrame:"always"===P}),elements:{reference:ad.anchor},middleware:[{name:(r={name:"offset",options:d=c={mainAxis:D+ar,alignmentAxis:F},async fn(a){var b,c;let{x:e,y:f,placement:g,middlewareData:h}=a,i=await al(a,d);return g===(null==(b=h.offset)?void 0:b.placement)&&null!=(c=h.arrow)&&c.alignmentOffset?{}:{x:e+i.x,y:f+i.y,data:{...i,placement:g}}}}).name,fn:r.fn,options:[c,void 0]},H&&{name:(s={name:"shift",options:h=g={mainAxis:!0,crossAxis:!1,limiter:"partial"===L?{fn:(f=void 0,{options:f={},fn(a){let{x:b,y:c,placement:d,rects:e,middlewareData:g}=a,{offset:h=0,mainAxis:i=!0,crossAxis:j=!0}=T(f,a),k={x:b,y:c},l=Y(d),m=W(l),n=k[m],o=k[l],p=T(h,a),q="number"==typeof p?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(i){let a="y"===m?"height":"width",b=e.reference[m]-e.floating[a]+q.mainAxis,c=e.reference[m]+e.reference[a]-q.mainAxis;n<b?n=b:n>c&&(n=c)}if(j){var r,s;let a="y"===m?"width":"height",b=ak.has(U(d)),c=e.reference[l]-e.floating[a]+(b&&(null==(r=g.offset)?void 0:r[l])||0)+(b?0:q.crossAxis),f=e.reference[l]+e.reference[a]+(b?0:(null==(s=g.offset)?void 0:s[l])||0)-(b?q.crossAxis:0);o<c?o=c:o>f&&(o=f)}return{[m]:n,[l]:o}}}).fn,options:[void 0,void 0]}:void 0,...av},async fn(a){let{x:b,y:c,placement:d,platform:e}=a,{mainAxis:f=!0,crossAxis:g=!1,limiter:i={fn:a=>{let{x:b,y:c}=a;return{x:b,y:c}}},...j}=T(h,a),k={x:b,y:c},l=await e.detectOverflow(a,j),m=Y(U(d)),n=W(m),o=k[n],p=k[m];if(f){let a="y"===n?"top":"left",b="y"===n?"bottom":"right",c=o+l[a],d=o-l[b];o=O(c,N(o,d))}if(g){let a="y"===m?"top":"left",b="y"===m?"bottom":"right",c=p+l[a],d=p-l[b];p=O(c,N(p,d))}let q=i.fn({...a,[n]:o,[m]:p});return{...q,data:{x:q.x-b,y:q.y-c,enabled:{[n]:f,[m]:g}}}}}).name,fn:s.fn,options:[g,void 0]},H&&{name:(t={name:"flip",options:j=i={...av},async fn(a){var b,c,d,e,f,g,h,i;let k,l,m,{placement:n,middlewareData:o,rects:p,initialPlacement:q,platform:r,elements:s}=a,{mainAxis:t=!0,crossAxis:u=!0,fallbackPlacements:v,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:y=!0,...z}=T(j,a);if(null!=(b=o.arrow)&&b.alignmentOffset)return{};let A=U(n),B=Y(q),C=U(q)===q,D=await (null==r.isRTL?void 0:r.isRTL(s.floating)),E=v||(C||!y?[ac(q)]:(k=ac(q),[Z(q),k,Z(k)])),F="none"!==x;!v&&F&&E.push(...(l=V(q),m=function(a,b,c){switch(a){case"top":case"bottom":if(c)return b?_:$;return b?$:_;case"left":case"right":return b?aa:ab;default:return[]}}(U(q),"start"===x,D),l&&(m=m.map(a=>a+"-"+l),y&&(m=m.concat(m.map(Z)))),m));let G=[q,...E],H=await r.detectOverflow(a,z),I=[],J=(null==(c=o.flip)?void 0:c.overflows)||[];if(t&&I.push(H[A]),u){let a,b,c,d,e=(g=n,h=p,void 0===(i=D)&&(i=!1),a=V(g),c=X(b=W(Y(g))),d="x"===b?a===(i?"end":"start")?"right":"left":"start"===a?"bottom":"top",h.reference[c]>h.floating[c]&&(d=ac(d)),[d,ac(d)]);I.push(H[e[0]],H[e[1]])}if(J=[...J,{placement:n,overflows:I}],!I.every(a=>a<=0)){let a=((null==(d=o.flip)?void 0:d.index)||0)+1,b=G[a];if(b&&("alignment"!==u||B===Y(b)||J.every(a=>Y(a.placement)!==B||a.overflows[0]>0)))return{data:{index:a,overflows:J},reset:{placement:b}};let c=null==(e=J.filter(a=>a.overflows[0]<=0).sort((a,b)=>a.overflows[1]-b.overflows[1])[0])?void 0:e.placement;if(!c)switch(w){case"bestFit":{let a=null==(f=J.filter(a=>{if(F){let b=Y(a.placement);return b===B||"y"===b}return!0}).map(a=>[a.placement,a.overflows.filter(a=>a>0).reduce((a,b)=>a+b,0)]).sort((a,b)=>a[1]-b[1])[0])?void 0:f[0];a&&(c=a);break}case"initialPlacement":c=q}if(n!==c)return{reset:{placement:c}}}return{}}}).name,fn:t.fn,options:[i,void 0]},{name:(v={name:"size",options:l=k={...av,apply:({elements:a,rects:b,availableWidth:c,availableHeight:d})=>{let{width:e,height:f}=b.reference,g=a.floating.style;g.setProperty("--radix-popper-available-width",`${c}px`),g.setProperty("--radix-popper-available-height",`${d}px`),g.setProperty("--radix-popper-anchor-width",`${e}px`),g.setProperty("--radix-popper-anchor-height",`${f}px`)}},async fn(a){var b,c;let d,e,{placement:f,rects:g,platform:h,elements:i}=a,{apply:j=()=>{},...k}=T(l,a),m=await h.detectOverflow(a,k),n=U(f),o=V(f),p="y"===Y(f),{width:q,height:r}=g.floating;"top"===n||"bottom"===n?(d=n,e=o===(await (null==h.isRTL?void 0:h.isRTL(i.floating))?"start":"end")?"left":"right"):(e=n,d="end"===o?"top":"bottom");let s=r-m.top-m.bottom,t=q-m.left-m.right,u=N(r-m[d],s),v=N(q-m[e],t),w=!a.middlewareData.shift,x=u,y=v;if(null!=(b=a.middlewareData.shift)&&b.enabled.x&&(y=t),null!=(c=a.middlewareData.shift)&&c.enabled.y&&(x=s),w&&!o){let a=O(m.left,0),b=O(m.right,0),c=O(m.top,0),d=O(m.bottom,0);p?y=q-2*(0!==a||0!==b?a+b:O(m.left,m.right)):x=r-2*(0!==c||0!==d?c+d:O(m.top,m.bottom))}await j({...a,availableWidth:y,availableHeight:x});let z=await h.getDimensions(i.floating);return q!==z.width||r!==z.height?{reset:{rects:!0}}:{}}}).name,fn:v.fn,options:[k,void 0]},am&&{name:(x={name:"arrow",options:n=m={element:am,padding:G},fn(a){let{element:b,padding:c}="function"==typeof n?n(a):n;return b&&({}).hasOwnProperty.call(b,"current")?null!=b.current?aS({element:b.current,padding:c}).fn(a):{}:b?aS({element:b,padding:c}).fn(a):{}}}).name,fn:x.fn,options:[m,void 0]},bc({arrowWidth:aq,arrowHeight:ar}),M&&{name:(y={name:"hide",options:p=o={strategy:"referenceHidden",...av,boundary:au?av.boundary:void 0},async fn(a){let{rects:b,platform:c}=a,{strategy:d="referenceHidden",...e}=T(p,a);switch(d){case"referenceHidden":{let d=ai(await c.detectOverflow(a,{...e,elementContext:"reference"}),b.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:aj(d)}}}case"escaped":{let d=ai(await c.detectOverflow(a,{...e,altBoundary:!0}),b.floating);return{data:{escapedOffsets:d,escaped:aj(d)}}}default:return{}}}}).name,fn:y.fn,options:[o,void 0]}]}),aC=ad.setPlacementState;J(()=>(aC(ay),()=>{aC(void 0)}),[ay,aC]);let[aD,aF]=bd(ay),aG=C(R);J(()=>{az&&aG?.()},[az,aG]);let aH=aA.arrow?.x,aJ=aA.arrow?.y,aK=aA.arrow?.centerOffset!==0,[aL,aM]=q.useState();return J(()=>{ae&&aM(window.getComputedStyle(ae).zIndex)},[ae]),(0,e.jsx)("div",{ref:aw.setFloating,"data-radix-popper-content-wrapper":"",style:{...ax,transform:az?ax.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:aL,"--radix-popper-transform-origin":[aA.transformOrigin?.x,aA.transformOrigin?.y].join(" "),...aA.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:a.dir,children:(0,e.jsx)(a5,{scope:z,placedSide:aD,placedAlign:aF,onArrowChange:an,arrowX:aH,arrowY:aJ,shouldHideArrow:aK,children:(0,e.jsx)(B.div,{"data-side":aD,"data-align":aF,...S,ref:ag,style:{...S.style,animation:az?void 0:"none"}})})})});a7.displayName=a4;var a8="PopperArrow",a9={top:"bottom",right:"left",bottom:"top",left:"right"},ba=q.forwardRef(function(a,b){let{__scopePopper:c,...d}=a,f=a6(a8,c),g=a9[f.placedSide];return(0,e.jsx)("span",{ref:f.onArrowChange,style:{position:"absolute",left:f.arrowX,top:f.arrowY,[g]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[f.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[f.placedSide],visibility:f.shouldHideArrow?"hidden":void 0},children:(0,e.jsx)(aX,{...d,ref:b,style:{...d.style,display:"block"}})})});function bb(a){return null!==a}ba.displayName=a8;var bc=a=>({name:"transformOrigin",options:a,fn(b){let{placement:c,rects:d,middlewareData:e}=b,f=e.arrow?.centerOffset!==0,g=f?0:a.arrowWidth,h=f?0:a.arrowHeight,[i,j]=bd(c),k={start:"0%",center:"50%",end:"100%"}[j],l=(e.arrow?.x??0)+g/2,m=(e.arrow?.y??0)+h/2,n="",o="";return"bottom"===i?(n=f?k:`${l}px`,o=`${-h}px`):"top"===i?(n=f?k:`${l}px`,o=`${d.floating.height+h}px`):"right"===i?(n=`${-h}px`,o=f?k:`${m}px`):"left"===i&&(n=`${d.floating.width+h}px`,o=f?k:`${m}px`),{data:{x:n,y:o}}}});function bd(a){let[b,c="center"]=a.split("-");return[b,c]}var be=q.forwardRef((a,b)=>{let{container:c,...d}=a,[f,g]=q.useState(!1);J(()=>g(!0),[]);let h=c||f&&globalThis?.document?.body;return h?w.createPortal((0,e.jsx)(B.div,{...d,ref:b}),h):null});be.displayName="Portal";var bf=a=>{var b;let c,d,{present:e,children:f}=a,g=function(a){var b,c;let[d,e]=q.useState(),f=q.useRef(null),g=q.useRef(a),h=q.useRef("none"),i=q.useRef(void 0),[j,k]=(b=a?"mounted":"unmounted",c={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},q.useReducer((a,b)=>c[a][b]??a,b));return q.useEffect(()=>{"mounted"===j?(h.current=i.current??bh(f.current),i.current=void 0):h.current="none"},[j]),J(()=>{let b=f.current,c=g.current;if(c!==a){let d=h.current,e=bh(b);a?(i.current=e,k("MOUNT")):"none"===e||b?.display==="none"?k("UNMOUNT"):c&&d!==e?k("ANIMATION_OUT"):k("UNMOUNT"),g.current=a}},[a,k]),J(()=>{if(d){let a,b=d.ownerDocument.defaultView??window,c=c=>{let e=bh(f.current).includes(CSS.escape(c.animationName));if(c.target===d&&e&&(k("ANIMATION_END"),!g.current)){let c=d.style.animationFillMode;d.style.animationFillMode="forwards",a=b.setTimeout(()=>{"forwards"===d.style.animationFillMode&&(d.style.animationFillMode=c)})}},e=a=>{a.target===d&&(h.current=bh(f.current))};return d.addEventListener("animationstart",e),d.addEventListener("animationcancel",c),d.addEventListener("animationend",c),()=>{b.clearTimeout(a),d.removeEventListener("animationstart",e),d.removeEventListener("animationcancel",c),d.removeEventListener("animationend",c)}}k("ANIMATION_END")},[d,k]),{isPresent:["mounted","unmountSuspended"].includes(j),ref:q.useCallback(a=>{if(a){let b=getComputedStyle(a);f.current=b,i.current=bh(b)}else f.current=null;e(a)},[])}}(e),h="function"==typeof f?f({present:g.isPresent}):q.Children.only(f),i=function(...a){let b=q.useRef(a);return b.current=a,q.useCallback(a=>{let c=b.current,d=!1,e=c.map(b=>{let c=bg(b,a);return d||"function"!=typeof c||(d=!0),c});if(d)return()=>{for(let a=0;a<e.length;a++){let b=e[a];"function"==typeof b?b():bg(c[a],null)}}},[])}(g.ref,(b=h,(d=(c=Object.getOwnPropertyDescriptor(b.props,"ref")?.get)&&"isReactWarning"in c&&c.isReactWarning)?b.ref:(d=(c=Object.getOwnPropertyDescriptor(b,"ref")?.get)&&"isReactWarning"in c&&c.isReactWarning)?b.props.ref:b.props.ref||b.ref));return"function"==typeof f||g.isPresent?q.cloneElement(h,{ref:i}):null};function bg(a,b){if("function"==typeof a)return a(b);null!=a&&(a.current=b)}function bh(a){return a?.animationName||"none"}bf.displayName="Presence",q[" useEffectEvent ".trim().toString()],q[" useInsertionEffect ".trim().toString()];var bi=q[" useInsertionEffect ".trim().toString()]||J;Symbol("RADIX:SYNC_STATE");var bj=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),bk=q.forwardRef((a,b)=>(0,e.jsx)(B.span,{...a,ref:b,style:{...bj,...a.style}}));bk.displayName="VisuallyHidden";var[bl,bm]=v("Tooltip",[a$]),bn=a$(),bo="TooltipProvider",bp="tooltip.open",[bq,br]=bl(bo),bs=a=>{let{__scopeTooltip:b,delayDuration:c=700,skipDelayDuration:d=300,disableHoverableContent:f=!1,children:g}=a,h=q.useRef(!0),i=q.useRef(!1),j=q.useRef(0);return q.useEffect(()=>{let a=j.current;return()=>window.clearTimeout(a)},[]),(0,e.jsx)(bq,{scope:b,isOpenDelayedRef:h,delayDuration:c,onOpen:q.useCallback(()=>{d<=0||(window.clearTimeout(j.current),h.current=!1)},[d]),onClose:q.useCallback(()=>{d<=0||(window.clearTimeout(j.current),j.current=window.setTimeout(()=>h.current=!0,d))},[d]),isPointerInTransitRef:i,onPointerInTransitChange:q.useCallback(a=>{i.current=a},[]),disableHoverableContent:f,children:g})};bs.displayName=bo;var bt="Tooltip",[bu,bv]=bl(bt),bw=a=>{let{__scopeTooltip:b,children:c,open:d,defaultOpen:f,onOpenChange:g,disableHoverableContent:h,delayDuration:i}=a,j=br(bt,a.__scopeTooltip),k=bn(b),[l,m]=q.useState(null),n=function(){let[a,b]=q.useState(K());return J(()=>{b(a=>a??String(L++))},[void 0]),a?`radix-${a}`:""}(),o=q.useRef(0),p=h??j.disableHoverableContent,r=i??j.delayDuration,s=q.useRef(!1),[t,u]=function({prop:a,defaultProp:b,onChange:c=()=>{},caller:d}){let[e,f,g]=function({defaultProp:a,onChange:b}){let[c,d]=q.useState(a),e=q.useRef(c),f=q.useRef(b);return bi(()=>{f.current=b},[b]),q.useEffect(()=>{e.current!==c&&(f.current?.(c),e.current=c)},[c,e]),[c,d,f]}({defaultProp:b,onChange:c}),h=void 0!==a,i=h?a:e;{let b=q.useRef(void 0!==a);q.useEffect(()=>{let a=b.current;if(a!==h){let b=h?"controlled":"uncontrolled";console.warn(`${d} is changing from ${a?"controlled":"uncontrolled"} to ${b}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}b.current=h},[h,d])}return[i,q.useCallback(b=>{if(h){let c="function"==typeof b?b(a):b;c!==a&&g.current?.(c)}else f(b)},[h,a,f,g])]}({prop:d,defaultProp:f??!1,onChange:a=>{a?(j.onOpen(),document.dispatchEvent(new CustomEvent(bp))):j.onClose(),g?.(a)},caller:bt}),v=q.useMemo(()=>t?s.current?"delayed-open":"instant-open":"closed",[t]),w=q.useCallback(()=>{window.clearTimeout(o.current),o.current=0,s.current=!1,u(!0)},[u]),x=q.useCallback(()=>{window.clearTimeout(o.current),o.current=0,u(!1)},[u]),y=q.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(()=>{s.current=!0,u(!0),o.current=0},r)},[r,u]);return q.useEffect(()=>()=>{o.current&&(window.clearTimeout(o.current),o.current=0)},[]),(0,e.jsx)(a1,{...k,children:(0,e.jsx)(bu,{scope:b,contentId:n,open:t,stateAttribute:v,trigger:l,onTriggerChange:m,onTriggerEnter:q.useCallback(()=>{j.isOpenDelayedRef.current?y():w()},[j.isOpenDelayedRef,y,w]),onTriggerLeave:q.useCallback(()=>{p?x():(window.clearTimeout(o.current),o.current=0)},[x,p]),onOpen:w,onClose:x,disableHoverableContent:p,children:c})})};bw.displayName=bt;var bx="TooltipTrigger",by=q.forwardRef((a,b)=>{let{__scopeTooltip:c,...d}=a,f=bv(bx,c),g=br(bx,c),h=bn(c),i=u(b,q.useRef(null),f.onTriggerChange),j=q.useRef(!1),k=q.useRef(!1),l=q.useCallback(()=>j.current=!1,[]);return q.useEffect(()=>()=>document.removeEventListener("pointerup",l),[l]),(0,e.jsx)(a3,{asChild:!0,...h,children:(0,e.jsx)(B.button,{"aria-describedby":f.open?f.contentId:void 0,"data-state":f.stateAttribute,...d,ref:i,onPointerMove:s(a.onPointerMove,a=>{"touch"!==a.pointerType&&(k.current||g.isPointerInTransitRef.current||(f.onTriggerEnter(),k.current=!0))}),onPointerLeave:s(a.onPointerLeave,()=>{f.onTriggerLeave(),k.current=!1}),onPointerDown:s(a.onPointerDown,()=>{f.open&&f.onClose(),j.current=!0,document.addEventListener("pointerup",l,{once:!0})}),onFocus:s(a.onFocus,()=>{j.current||f.onOpen()}),onBlur:s(a.onBlur,f.onClose),onClick:s(a.onClick,f.onClose)})})});by.displayName=bx;var bz="TooltipPortal",[bA,bB]=bl(bz,{forceMount:void 0}),bC=a=>{let{__scopeTooltip:b,forceMount:c,children:d,container:f}=a,g=bv(bz,b);return(0,e.jsx)(bA,{scope:b,forceMount:c,children:(0,e.jsx)(bf,{present:c||g.open,children:(0,e.jsx)(be,{asChild:!0,container:f,children:d})})})};bC.displayName=bz;var bD="TooltipContent",bE=q.forwardRef((a,b)=>{let c=bB(bD,a.__scopeTooltip),{forceMount:d=c.forceMount,side:f="top",...g}=a,h=bv(bD,a.__scopeTooltip);return(0,e.jsx)(bf,{present:d||h.open,children:h.disableHoverableContent?(0,e.jsx)(bJ,{side:f,...g,ref:b}):(0,e.jsx)(bF,{side:f,...g,ref:b})})}),bF=q.forwardRef((a,b)=>{let c=bv(bD,a.__scopeTooltip),d=br(bD,a.__scopeTooltip),f=q.useRef(null),g=u(b,f),[h,i]=q.useState(null),{trigger:j,onClose:k}=c,l=f.current,{onPointerInTransitChange:m}=d,n=q.useCallback(()=>{i(null),m(!1)},[m]),o=q.useCallback((a,b)=>{let c,d=a.currentTarget,e={x:a.clientX,y:a.clientY},f=function(a,b){let c=Math.abs(b.top-a.y),d=Math.abs(b.bottom-a.y),e=Math.abs(b.right-a.x),f=Math.abs(b.left-a.x);switch(Math.min(c,d,e,f)){case f:return"left";case e:return"right";case c:return"top";case d:return"bottom";default:throw Error("unreachable")}}(e,d.getBoundingClientRect());i(((c=[...function(a,b,c=5){let d=[];switch(b){case"top":d.push({x:a.x-c,y:a.y+c},{x:a.x+c,y:a.y+c});break;case"bottom":d.push({x:a.x-c,y:a.y-c},{x:a.x+c,y:a.y-c});break;case"left":d.push({x:a.x+c,y:a.y-c},{x:a.x+c,y:a.y+c});break;case"right":d.push({x:a.x-c,y:a.y-c},{x:a.x-c,y:a.y+c})}return d}(e,f),...function(a){let{top:b,right:c,bottom:d,left:e}=a;return[{x:e,y:b},{x:c,y:b},{x:c,y:d},{x:e,y:d}]}(b.getBoundingClientRect())].slice()).sort((a,b)=>a.x<b.x?-1:a.x>b.x?1:a.y<b.y?-1:1*!!(a.y>b.y)),function(a){if(a.length<=1)return a.slice();let b=[];for(let c=0;c<a.length;c++){let d=a[c];for(;b.length>=2;){let a=b[b.length-1],c=b[b.length-2];if((a.x-c.x)*(d.y-c.y)>=(a.y-c.y)*(d.x-c.x))b.pop();else break}b.push(d)}b.pop();let c=[];for(let b=a.length-1;b>=0;b--){let d=a[b];for(;c.length>=2;){let a=c[c.length-1],b=c[c.length-2];if((a.x-b.x)*(d.y-b.y)>=(a.y-b.y)*(d.x-b.x))c.pop();else break}c.push(d)}return(c.pop(),1===b.length&&1===c.length&&b[0].x===c[0].x&&b[0].y===c[0].y)?b:b.concat(c)}(c))),m(!0)},[m]);return q.useEffect(()=>()=>n(),[n]),q.useEffect(()=>{if(j&&l){let a=a=>o(a,l),b=a=>o(a,j);return j.addEventListener("pointerleave",a),l.addEventListener("pointerleave",b),()=>{j.removeEventListener("pointerleave",a),l.removeEventListener("pointerleave",b)}}},[j,l,o,n]),q.useEffect(()=>{if(h){let a=a=>{let b=a.target,c={x:a.clientX,y:a.clientY},d=j?.contains(b)||l?.contains(b),e=!function(a,b){let{x:c,y:d}=a,e=!1;for(let a=0,f=b.length-1;a<b.length;f=a++){let g=b[a],h=b[f],i=g.x,j=g.y,k=h.x,l=h.y;j>d!=l>d&&c<(k-i)*(d-j)/(l-j)+i&&(e=!e)}return e}(c,h);d?n():e&&(n(),k())};return document.addEventListener("pointermove",a),()=>document.removeEventListener("pointermove",a)}},[j,l,h,k,n]),(0,e.jsx)(bJ,{...a,ref:g})}),[bG,bH]=bl(bt,{isInside:!1}),bI=((c=a=>"child"in a?a.children(a.child):a.children).displayName="TooltipContent.Slottable",c.__radixId=x,c),bJ=q.forwardRef((a,b)=>{let{__scopeTooltip:c,children:d,"aria-label":f,onEscapeKeyDown:g,onPointerDownOutside:h,...i}=a,j=bv(bD,c),k=bn(c),{onClose:l}=j;return q.useEffect(()=>(document.addEventListener(bp,l),()=>document.removeEventListener(bp,l)),[l]),q.useEffect(()=>{if(j.trigger){let a=a=>{a.target instanceof Node&&a.target.contains(j.trigger)&&l()};return window.addEventListener("scroll",a,{capture:!0}),()=>window.removeEventListener("scroll",a,{capture:!0})}},[j.trigger,l]),(0,e.jsx)(F,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:g,onPointerDownOutside:h,onFocusOutside:a=>a.preventDefault(),onDismiss:l,children:(0,e.jsxs)(a7,{"data-state":j.stateAttribute,...k,...i,ref:b,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,e.jsx)(bI,{children:d}),(0,e.jsx)(bG,{scope:c,isInside:!0,children:(0,e.jsx)(bk,{id:j.contentId,role:"tooltip",children:f||d})})]})})});bE.displayName=bD;var bK="TooltipArrow",bL=q.forwardRef((a,b)=>{let{__scopeTooltip:c,...d}=a,f=bn(c);return bH(bK,c).isInside?null:(0,e.jsx)(ba,{...f,...d,ref:b})});function bM({delayDuration:a=0,...b}){return(0,e.jsx)(bs,{delayDuration:a,...b})}function bN(a){return(0,e.jsx)(bM,{children:(0,e.jsx)(bw,{...a})})}function bO(a){return(0,e.jsx)(by,{...a})}function bP({className:a,sideOffset:b=4,children:c,...d}){return(0,e.jsx)(bC,{children:(0,e.jsxs)(bE,{sideOffset:b,className:(0,k.cn)("z-50 w-fit max-w-64 origin-(--radix-tooltip-content-transform-origin) rounded-md bg-primary px-3 py-1.5 text-xs text-balance text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...d,children:[c,(0,e.jsx)(bL,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] fill-primary"})]})})}function bQ(a){let b=a.state??a.status;return"paused"===b?"Box is paused — resume to access":"stopped"===b?"Box is stopped — start to access":"missing"===b?"Box has no sandbox left":null}bL.displayName=bK;var bR=a.i(3015);let bS=[{app:"claude",label:"Claude",icon:"claude"},{app:"codex",label:"Codex",icon:"codex"},{app:"vscode",label:"VS Code",icon:"ext"},{app:"cmux",label:"cmux",icon:"terminal"},{app:"herdr",label:"Herdr",icon:"terminal"},{app:"iterm2",label:"iTerm2",icon:"terminal"},{app:"finder",label:"Finder",icon:"folder"}];function bT({url:a}){let[b,c]=(0,q.useState)(!1),d=(0,q.useRef)(null);(0,q.useEffect)(()=>()=>{d.current&&clearTimeout(d.current)},[]);let f=(0,q.useCallback)(async()=>{try{await navigator.clipboard.writeText(a),c(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>c(!1),1500)}catch{}},[a]);return(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",onClick:f,children:[b?(0,e.jsx)(h.Icons.check,{}):(0,e.jsx)(h.Icons.copy,{}),b?"Copied":"Copy URL"]})}function bU({reason:a,children:b}){return a?(0,e.jsxs)(bN,{children:[(0,e.jsx)(bO,{asChild:!0,children:(0,e.jsx)("span",{className:"cursor-not-allowed",children:b})}),(0,e.jsx)(bP,{children:a})]}):(0,e.jsx)(e.Fragment,{children:b})}function bV({box:a}){let b,{webUrl:c,vncUrl:d}=a,{apps:f,supported:g,pending:i,launch:j}=function(a){let[b,c]=(0,q.useState)(null),[d,e]=(0,q.useState)(null);(0,q.useEffect)(()=>{let a=!0;return(async()=>{try{let b=await fetch("/api/v1/open-targets",{credentials:"same-origin"});a&&c(b.ok?await b.json():null)}catch{a&&c(null)}})(),()=>{a=!1}},[]);let f=(0,q.useCallback)(async b=>{e(b);try{let c=await fetch(`/api/v1/boxes/${encodeURIComponent(a.id)}/open`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({app:b})});if(!c.ok){let a=await c.json().catch(()=>null);window.alert(`Open in ${b} failed: ${a?.error?.message??`HTTP ${c.status}`}`)}}catch(a){window.alert(`Open in ${b} failed: ${a instanceof Error?a.message:String(a)}`)}finally{e(null)}},[a.id]),g=b?.supported?b.targets:null;return{apps:g?bS.map(({app:b,label:c,icon:d})=>{let e=g[b],f=e.available?e.providers&&!e.providers.includes(a.provider)?`Not available for ${a.provider} boxes`:null:e.reason??`${c} is not installed`;return{app:b,label:c,icon:d,disabledReason:f}}):[],supported:null!==g,pending:d,launch:f}}(a),k="paused"===a.status?"Box is paused — resume to access":"stopped"===a.status?"Box is stopped — start to access":null,{href:l,reason:n}=(b=a.state?"running"===a.state:"running"===a.status,a.webUrl?b?{href:`/boxes/${encodeURIComponent(a.id)}/web`,reason:null}:{href:null,reason:bQ(a)??"Box is not running"}:{href:null,reason:bQ(a)??"No web service exposed"}),o=d??(a.vncEnabled&&"running"===a.status?`/boxes/${encodeURIComponent(a.id)}/vnc`:null),p=o?null:!1===a.vncEnabled?"VNC is not enabled for this box":k??"VNC is not available";return g||c||o?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(bR.SectionLabel,{children:"Access"}),(0,e.jsxs)(m.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,e.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,e.jsx)("div",{className:"text-[13.5px] font-medium",children:c||!o?"Web":"VNC"}),(0,e.jsx)("div",{className:"mt-0.5 break-all font-mono text-[11.5px] text-muted-foreground",children:c??(o?"Remote desktop":n)})]}),(0,e.jsxs)("div",{className:"flex flex-none flex-wrap gap-1.5",children:[l?(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",href:l,target:"_blank",rel:"noreferrer",children:[(0,e.jsx)(h.Icons.ext,{}),"Open web"]}):(0,e.jsx)(bU,{reason:n,children:(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:!0,children:[(0,e.jsx)(h.Icons.ext,{}),"Open web"]})}),c?(0,e.jsx)(bT,{url:c}):null,o?(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",href:o,target:"_blank",rel:"noreferrer",onClick:()=>{d&&fetch(`/api/v1/boxes/${encodeURIComponent(a.id)}/screen`,{method:"POST",credentials:"same-origin"}).catch(()=>{})},children:[(0,e.jsx)(h.Icons.ext,{}),"Open VNC"]}):(0,e.jsx)(bU,{reason:p,children:(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:!0,children:[(0,e.jsx)(h.Icons.ext,{}),"Open VNC"]})})]})]}),g?(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,e.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,e.jsx)("div",{className:"text-[13.5px] font-medium",children:"Apps"}),(0,e.jsx)("div",{className:"mt-0.5 text-[11.5px] text-muted-foreground",children:"Open the box project from the host"})]}),(0,e.jsx)("div",{className:"flex flex-none flex-wrap justify-end gap-1.5",children:f.map(({app:a,label:b,icon:c,disabledReason:d})=>{let f=h.Icons[c];return(0,e.jsx)(bU,{reason:d,children:(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:null!==d||null!==i,onClick:()=>void j(a),children:[(0,e.jsx)(f,{}),b]})},a)})})]}):null]})]}):null}var bW=a.i(24288),bX=a.i(45515),bY=a.i(85883),bZ=a.i(34537),b$=a.i(4305),b_=a.i(94290);let b0=0;function b1(){let[a,b]=(0,q.useState)([]),c=(0,q.useCallback)(a=>b(b=>b.filter(b=>b.id!==a)),[]);return{toasts:a,push:(0,q.useCallback)(a=>{let d=++b0;b(b=>[...b,{id:d,...a}]),setTimeout(()=>c(d),4200)},[c]),dismiss:c}}function b2({toasts:a,dismiss:b}){return(0,e.jsx)("div",{className:"pointer-events-none fixed bottom-5 right-5 z-[60] flex w-[340px] max-w-[calc(100vw-40px)] flex-col gap-2",children:a.map(a=>(0,e.jsxs)("div",{className:"anim-pop pointer-events-auto relative flex items-start gap-3 rounded-xl border border-border bg-card p-3.5 pr-9 shadow-[0_16px_40px_-18px_rgba(20,24,30,.35)]",children:[(0,e.jsx)("span",{className:(0,k.cn)("mt-0.5 grid h-6 w-6 flex-none place-items-center rounded-md border","error"===a.variant?"border-[var(--red-line)] bg-[var(--red-soft)] text-[var(--red)]":"border-[var(--green-line)] bg-accent text-primary"),children:"error"===a.variant?(0,e.jsx)(h.Icons.warn,{className:"size-3.5"}):(0,e.jsx)(h.Icons.check,{className:"size-3.5"})}),(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsx)("div",{className:"text-[13px] font-semibold leading-tight",children:a.title}),a.detail?(0,e.jsx)("div",{className:"mt-0.5 break-words font-mono text-[11.5px] leading-normal text-muted-foreground",children:a.detail}):null]}),(0,e.jsx)("button",{className:"absolute right-2.5 top-2.5 grid h-5 w-5 cursor-pointer place-items-center rounded border-0 bg-transparent text-[#a4a9b0] hover:text-foreground",onClick:()=>b(a.id),"aria-label":"Dismiss",children:(0,e.jsx)(h.Icons.x,{className:"size-3"})})]},a.id))})}async function b3(a){try{let b=await a.json();return b.error?.message??`HTTP ${String(a.status)}`}catch{return`HTTP ${String(a.status)}`}}function b4({label:a,desc:b,children:c}){return(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,e.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,e.jsx)("div",{className:"text-[13.5px] font-medium",children:a}),(0,e.jsx)("div",{className:"mt-0.5 text-[11.5px] leading-normal text-muted-foreground",children:b})]}),(0,e.jsx)("div",{className:"flex flex-none flex-wrap gap-1.5",children:c})]})}function b5({icon:a,disabled:b,onRun:c,children:d}){let[f,g]=(0,q.useState)(!1);return(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:b||f,onClick:()=>{g(!0),c().finally(()=>g(!1))},children:[f?(0,e.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,e.jsx)(a,{}),d]})}function b6({box:a}){let b=(0,f.useRouter)(),{toasts:c,push:d,dismiss:g}=b1(),[i,j]=(0,q.useState)(!1),[k,l]=(0,q.useState)(null),n=a.id.startsWith("job:"),o="running"!==a.status,p=!0===a.supportsBackup&&!n,s=(0,q.useCallback)(async()=>{if(p)try{let b=await fetch(`/api/v1/projects/${encodeURIComponent(a.projectId)}/bots`,{credentials:"same-origin"});if(!b.ok)return;let{bots:c}=await b.json(),d=c.find(b=>b.bot===(a.name??"")),e=d?(0,b$.preferredBackup)(d)??d.backups[0]:void 0;l(e?{stamp:e.stamp,state:e.state}:null)}catch{l(null)}},[a.projectId,a.name,p]);if((0,q.useEffect)(()=>{s()},[s]),n)return null;let t=async()=>{let c;try{c=await fetch(`/api/v1/boxes/${encodeURIComponent(a.id)}/backup`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:"{}"})}catch(a){d({variant:"error",title:"Backup failed",detail:a instanceof Error?a.message:String(a)});return}if(!c.ok)return void d({variant:"error",title:"Backup failed",detail:await b3(c)});let e=await c.json();d({title:`Backed up ${e.bot}`,detail:e.state?`${e.stamp} — ${String(e.files)} file(s) + identity`:`${e.stamp} — ${String(e.files)} file(s), NO identity captured`,...e.state?{}:{variant:"error"}}),s(),b.refresh()};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(bR.SectionLabel,{children:"Bot"}),(0,e.jsxs)(m.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[o?(0,e.jsxs)("div",{className:"flex items-center gap-2.5 bg-[var(--amber-soft)] px-4.5 p-2.5 text-[12.5px] text-[var(--amber)]",children:[(0,e.jsx)(h.Icons.warn,{className:"size-3.5 flex-none"}),"Box is ",a.status," — backing up and cloning both read the live box."]}):null,p?(0,e.jsx)(b4,{label:"Backup",desc:k?(0,e.jsxs)(e.Fragment,{children:["Last backup ",(0,b$.readableStamp)(k.stamp),k.state?"":" (workspace only)"]}):"Workspace + this bot’s identity: auth token, pairings, history.",children:(0,e.jsx)(b5,{icon:h.Icons.shield,disabled:o,onRun:t,children:"Back up now"})}):null,(0,e.jsx)(b4,{label:"Clone",desc:"A second box from these files, with a fresh identity of its own. Not a backup.",children:(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:o,onClick:()=>j(!0),children:[(0,e.jsx)(h.Icons.copy,{}),"Clone…"]})})]}),i?(0,e.jsx)(b7,{box:a,onClose:()=>j(!1),onDone:d}):null,(0,e.jsx)(b2,{toasts:c,dismiss:g})]})}function b7({box:a,onClose:b,onDone:c}){let d=(0,f.useRouter)(),[g,i]=(0,q.useState)(`${a.name??a.task}-clone`),[j,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)(null),[o,p]=(0,q.useState)(null),s=async()=>{l(!0),n(null);try{let b=await fetch(`/api/v1/boxes/${encodeURIComponent(a.id)}/clone`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({name:g.trim()||void 0})});if(!b.ok)return n(await b3(b)),!1;let c=await b.json();return p(c.jobId),d.refresh(),!0}catch(a){return n(a instanceof Error?a.message:String(a)),!1}finally{l(!1)}};return(0,e.jsxs)(bX.Dialog,{onClose:b,children:[(0,e.jsxs)(bX.DialogHeader,{children:[(0,e.jsx)(bX.DialogIcon,{children:(0,e.jsx)(h.Icons.copy,{className:"size-4"})}),(0,e.jsxs)("div",{children:[(0,e.jsxs)(bX.DialogTitle,{children:["Clone ",a.task]}),(0,e.jsxs)(bX.DialogDescription,{children:["A new box from this one’s workspace files and its ",(0,e.jsx)("code",{children:"agentbox.yaml"}),", with a ",(0,e.jsx)("strong",{children:"fresh identity"}),"— it onboards from scratch and generates its own token. To keep this box’s identity instead, back it up and restore it."]})]})]}),(0,e.jsx)(bX.DialogBody,{children:o?(0,e.jsx)(b_.JobLogStream,{jobId:o,endpoint:`/api/v1/jobs/${o}/logs`}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(bZ.Label,{htmlFor:"clone-name",children:"New box name"}),(0,e.jsx)(bY.Input,{id:"clone-name",value:g,onChange:a=>i(a.target.value),placeholder:"my-bot-clone"}),m?(0,e.jsx)("div",{className:(0,k.cn)("mt-3 rounded-lg border border-[var(--red-line)] bg-[var(--red-soft)] p-3","text-[12.5px] leading-relaxed text-[var(--red)]"),children:m}):null]})}),(0,e.jsxs)(bX.DialogFooter,{children:[(0,e.jsx)(r.Button,{variant:"outline",size:"sm",onClick:b,children:o?"Close":"Cancel"}),o?null:(0,e.jsxs)(r.Button,{size:"sm",disabled:j||0===g.trim().length,onClick:()=>{s().then(a=>{a&&c({title:"Clone started"})})},children:[j?(0,e.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,e.jsx)(h.Icons.copy,{}),"Clone"]})]})]})}var b8=a.i(17236),b9=a.i(51363);function ca({k:a,v:b,mono:c,link:d}){return(0,e.jsxs)("div",{className:"grid grid-cols-[156px_1fr] items-baseline gap-4 px-4.5 p-3 max-sm:grid-cols-1 max-sm:gap-1",children:[(0,e.jsx)("div",{className:"font-mono text-xs text-muted-foreground",children:a}),(0,e.jsx)("div",{className:(0,k.cn)("min-w-0 text-[13.5px]",c?"font-mono text-[13px]":""),children:d?(0,e.jsx)(b9.default,{className:"cursor-pointer text-primary",href:d,children:b}):b})]})}var cb=a.i(12019),cc=a.i(53596),cd=a.i(96664);let ce=(0,cd.createServerReference)("70aa4e7ad793775cd9d218cb2581d5063e5c41e19e",cd.callServer,void 0,cd.findSourceMapURL,"gitBranchAction"),cf=(0,cd.createServerReference)("601e3dfce4a4ab2a05da305b17b9a2b1a0deff17ac",cd.callServer,void 0,cd.findSourceMapURL,"gitCheckoutAction"),cg=(0,cd.createServerReference)("6082cd78a335a4443f8c036a77f52ed6a3083bdcdf",cd.callServer,void 0,cd.findSourceMapURL,"gitPullAction"),ch=(0,cd.createServerReference)("601f2c3e0321a08383085ec5e3a5fbb8716ea76294",cd.callServer,void 0,cd.findSourceMapURL,"gitPushAction"),ci=(0,cd.createServerReference)("60e0680d8810c30312023715663c6f70d4167b0579",cd.callServer,void 0,cd.findSourceMapURL,"gitPushHostAction");function cj({label:a,desc:b,children:c}){return(0,e.jsxs)("div",{className:"flex flex-wrap items-center gap-3 px-4.5 p-3.5",children:[(0,e.jsxs)("div",{className:"min-w-[150px] flex-1",children:[(0,e.jsx)("div",{className:"text-[13.5px] font-medium",children:a}),(0,e.jsx)("div",{className:"mt-0.5 font-mono text-[11.5px] text-muted-foreground",children:b})]}),(0,e.jsx)("div",{className:"flex flex-none flex-wrap gap-1.5",children:c})]})}function ck({icon:a,disabled:b,onRun:c,children:d}){let[f,g]=(0,q.useState)(!1),h=async()=>{g(!0);try{await c()}finally{g(!1)}};return(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:b||f,onClick:h,children:[f?(0,e.jsx)("span",{className:"spin",style:{width:12,height:12}}):(0,e.jsx)(a,{}),d]})}function cl(a,b){let c=(a??"").trim()||(b??"").trim();return c?c.split("\n")[0]:void 0}function cm({box:a}){let b=(0,f.useRouter)(),{toasts:c,push:d,dismiss:g}=b1(),[i,j]=(0,q.useState)(null),[l,n]=(0,q.useState)(null),o="running"!==a.status,p=(0,q.useCallback)(async()=>{try{let b=await fetch(`/api/v1/boxes/${encodeURIComponent(a.id)}/git`,{credentials:"same-origin"});j(b.ok?await b.json():null)}catch{j(null)}},[a.id]);(0,q.useEffect)(()=>{p()},[p]);let s=i?.ok&&i.branch?i.branch:a.branch||"—",t=()=>{p(),b.refresh()},u=async(a,b)=>{let c=await b();c.ok?(d({title:a,detail:cl(c.stdout,c.stderr)}),t()):d({variant:"error",title:`${a} failed`,detail:c.error})};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)(m.Card,{className:(0,k.cn)("divide-y divide-border/60 overflow-hidden",o?"opacity-90":""),children:[o?(0,e.jsxs)("div",{className:"flex items-center gap-2.5 bg-[var(--amber-soft)] px-4.5 p-2.5 text-[12.5px] text-[var(--amber)]",children:[(0,e.jsx)(h.Icons.warn,{className:"size-3.5 flex-none"}),"Box is ",a.status," — git operations need a running box."]}):null,(0,e.jsxs)(cj,{label:"Sync",desc:`origin ↔ ${s}`,children:[(0,e.jsx)(ck,{icon:h.Icons.arrowL,disabled:o,onRun:()=>u("Pulled from origin",()=>cg(a.id)),children:"Pull"}),(0,e.jsx)(ck,{icon:h.Icons.ext,disabled:o,onRun:()=>u("Pushed to origin",()=>ch(a.id)),children:"Push"}),(0,e.jsx)(ck,{icon:h.Icons.host,disabled:o,onRun:()=>u("Pushed to host",()=>ci(a.id)),children:"Push to host"})]}),(0,e.jsxs)(cj,{label:"Branch",desc:`currently on ${s}`,children:[(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:o,onClick:()=>n("change"),children:[(0,e.jsx)(h.Icons.branch,{}),"Change branch"]}),(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:o,onClick:()=>n("new"),children:[(0,e.jsx)(h.Icons.plus,{}),"New branch"]})]})]}),"change"===l?(0,e.jsx)(cp,{box:a,branch:s,onClose:()=>n(null),onDone:d,onRefresh:t}):null,"new"===l?(0,e.jsx)(cq,{box:a,onClose:()=>n(null),onDone:d,onRefresh:t}):null,(0,e.jsx)(b2,{toasts:c,dismiss:g})]})}let cn="__manual__";function co({boxId:a,value:b,onChange:c,id:d,headLabel:f,currentBranch:g}){let[h,i]=(0,q.useState)(null),[j,k]=(0,q.useState)(g??null),[l,m]=(0,q.useState)(!1);return((0,q.useEffect)(()=>{let b=!1;return(async()=>{try{let c=await fetch(`/api/v1/boxes/${encodeURIComponent(a)}/branches`,{credentials:"same-origin"}),d=c.ok?await c.json():null;if(b)return;d&&Array.isArray(d.branches)&&d.branches.length>0?(i(d.branches),g||"string"!=typeof d.current||k(d.current)):(i([]),m(!0))}catch{b||(i([]),m(!0))}})(),()=>{b=!0}},[a,g]),null===h)?(0,e.jsx)(cc.Select,{id:d,value:"",disabled:!0,wrapperClassName:"w-full",children:(0,e.jsx)("option",{value:"",children:"Loading branches…"})}):l?(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(bY.Input,{id:d,className:"font-mono text-[13px]",autoFocus:!0,value:b,onChange:a=>c(a.target.value),placeholder:f?"HEAD":"feature-x"}),h.length>0?(0,e.jsx)("button",{type:"button",onClick:()=>{m(!1),c("")},className:"mt-1.5 cursor-pointer text-xs text-secondary-foreground underline-offset-2 hover:underline",children:"← Back to branch list"}):null]}):(0,e.jsxs)(cc.Select,{id:d,value:b,wrapperClassName:"w-full",onChange:a=>{if(a.target.value===cn){m(!0),c("");return}c(a.target.value)},children:[f?(0,e.jsx)("option",{value:"",children:f}):(0,e.jsx)("option",{value:"",disabled:!0,children:"Select a branch…"}),(0,e.jsx)("option",{value:cn,children:"Other / type manually…"}),(0,e.jsx)("option",{disabled:!0,children:"────────────"}),h.map(a=>(0,e.jsxs)("option",{value:a,children:[a,a===j?" (current)":""]},a))]})}function cp({box:a,branch:b,onClose:c,onDone:d,onRefresh:f}){let[g,i]=(0,q.useState)(""),[j,k]=(0,q.useState)(!1),[l,m]=(0,q.useState)(null),n=g.trim().length>0;return(0,e.jsxs)(bX.Dialog,{onClose:c,className:"max-w-[440px]",children:[(0,e.jsxs)(bX.DialogHeader,{children:[(0,e.jsx)(bX.DialogIcon,{children:(0,e.jsx)(h.Icons.branch,{})}),(0,e.jsxs)("div",{children:[(0,e.jsx)(bX.DialogTitle,{children:"Change branch"}),(0,e.jsxs)(bX.DialogDescription,{children:[a.id," · currently on ",b]})]})]}),(0,e.jsxs)(bX.DialogBody,{children:[(0,e.jsx)(bZ.Label,{htmlFor:"gb-branch",children:"Branch"}),(0,e.jsx)(co,{boxId:a.id,id:"gb-branch",value:g,onChange:i,currentBranch:b}),(0,e.jsx)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"The branch must exist and not be checked out in another worktree."}),l?(0,e.jsx)("p",{className:"mt-2 break-words font-mono text-xs text-destructive",children:l}):null]}),(0,e.jsxs)(bX.DialogFooter,{children:[(0,e.jsx)(r.Button,{variant:"outline",onClick:c,disabled:j,children:"Cancel"}),(0,e.jsxs)(r.Button,{onClick:()=>{n&&!j&&(k(!0),m(null),(async()=>{let b=await cf(a.id,g.trim());b.ok?(d({title:"Branch changed",detail:cl(b.stdout,b.stderr)}),c(),f()):(m(b.error),k(!1))})())},disabled:!n||j,children:[j?(0,e.jsx)("span",{className:"spin"}):(0,e.jsx)(h.Icons.check,{}),j?"Checking out…":"Change branch"]})]})]})}function cq({box:a,onClose:b,onDone:c,onRefresh:d}){let[f,g]=(0,q.useState)(""),[i,j]=(0,q.useState)(""),[k,l]=(0,q.useState)(!1),[m,n]=(0,q.useState)(null),o=f.trim().length>0,p=()=>{o&&!k&&(l(!0),n(null),(async()=>{let e=await ce(a.id,f.trim(),i.trim()||void 0);e.ok?(c({title:"Branch created",detail:cl(e.stdout,e.stderr)}),b(),d()):(n(e.error),l(!1))})())};return(0,e.jsxs)(bX.Dialog,{onClose:b,className:"max-w-[440px]",children:[(0,e.jsxs)(bX.DialogHeader,{children:[(0,e.jsx)(bX.DialogIcon,{children:(0,e.jsx)(h.Icons.branch,{})}),(0,e.jsxs)("div",{children:[(0,e.jsx)(bX.DialogTitle,{children:"New branch"}),(0,e.jsxs)(bX.DialogDescription,{children:[a.id," · branching in the box workspace"]})]})]}),(0,e.jsxs)(bX.DialogBody,{children:[(0,e.jsxs)("div",{className:"mb-4",children:[(0,e.jsx)(bZ.Label,{htmlFor:"nb-name",children:"Name"}),(0,e.jsx)(bY.Input,{id:"nb-name",className:"font-mono text-[13px]",autoFocus:!0,value:f,onChange:a=>g(a.target.value),onKeyDown:a=>{"Enter"===a.key&&p()},placeholder:"my-branch"}),(0,e.jsxs)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:["An ",(0,e.jsx)("span",{className:"font-mono",children:"agentbox/"})," prefix is added when missing."]})]}),(0,e.jsxs)(bZ.Label,{htmlFor:"nb-from",children:["Base ref ",(0,e.jsx)("span",{className:"font-normal text-[#a4a9b0]",children:"(optional)"})]}),(0,e.jsx)(co,{boxId:a.id,id:"nb-from",value:i,onChange:j,headLabel:"Current HEAD (default)"}),(0,e.jsx)("p",{className:"mt-1.5 text-xs text-muted-foreground",children:"Defaults to the box's current HEAD."}),m?(0,e.jsx)("p",{className:"mt-2 break-words font-mono text-xs text-destructive",children:m}):null]}),(0,e.jsxs)(bX.DialogFooter,{children:[(0,e.jsx)(r.Button,{variant:"outline",onClick:b,disabled:k,children:"Cancel"}),(0,e.jsxs)(r.Button,{onClick:p,disabled:!o||k,children:[k?(0,e.jsx)("span",{className:"spin"}):(0,e.jsx)(h.Icons.plus,{}),k?"Creating…":"Create branch"]})]})]})}let cr=(0,cd.createServerReference)("60da82486c45cc898a820bef37096ef3789b315977",cd.callServer,void 0,cd.findSourceMapURL,"restartServiceAction"),cs=new Set(["ready","running","done"]),ct=new Set(["crashed","unhealthy","backoff","failed"]),cu={up:"bg-[var(--green)]",bad:"bg-[var(--red)]",idle:"bg-[var(--amber)]"},cv={up:"text-[var(--green-ink)]",bad:"text-[var(--red)]",idle:"text-[var(--amber)]"};function cw({svc:a,disabled:b,onRestart:c}){var d;let f=(d=a.state,cs.has(d)?"up":ct.has(d)?"bad":"idle");return(0,e.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5",children:[(0,e.jsx)("span",{className:(0,k.cn)("badge-dot",cu[f]),"aria-hidden":!0}),(0,e.jsx)("span",{className:"min-w-0 flex-1 truncate font-mono text-[13px] text-secondary-foreground",children:a.name}),(0,e.jsx)("span",{className:(0,k.cn)("font-mono text-xs",cv[f]),children:a.state}),a.restarts>0?(0,e.jsxs)("span",{className:"font-mono text-[11px] text-muted-foreground",children:["↻",a.restarts]}):null,(0,e.jsx)(r.Button,{variant:"outline",size:"icon-sm",title:`Restart ${a.name}`,disabled:b,onClick:()=>c(a.name),children:(0,e.jsx)(h.Icons.refresh,{})})]})}function cx({id:a,running:b}){let[c,d]=(0,q.useState)(null),[f,g]=(0,q.useState)(null),[i,j]=(0,q.useTransition)(),k=(0,q.useCallback)(async()=>{try{let b=await fetch(`/api/v1/boxes/${encodeURIComponent(a)}/services`,{credentials:"same-origin"});if(!b.ok)return void g(`status ${String(b.status)}`);d(await b.json()),g(null)}catch(a){g(a instanceof Error?a.message:String(a))}},[a]);(0,q.useEffect)(()=>{if(k(),!b)return;let a=setInterval(()=>void k(),4e3);return()=>clearInterval(a)},[k,b]);let l=b=>{j(async()=>{let c=await cr(a,b);c.ok||window.alert(`Restart failed: ${c.error}`),await k()})},n=c?.services??[],o=n.length>0;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(bR.SectionLabel,{right:o?(0,e.jsxs)(r.Button,{variant:"outline",size:"sm",disabled:!b||i,onClick:()=>l(void 0),children:[(0,e.jsx)(h.Icons.refresh,{}),"Restart all"]}):null,children:"Services"}),(0,e.jsx)(m.Card,{className:"divide-y divide-border/60 overflow-hidden",children:c||f?f?(0,e.jsxs)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:["Could not load services (",f,")."]}):o?(0,e.jsxs)(e.Fragment,{children:[c?.source==="persisted"?(0,e.jsx)("div",{className:"bg-muted/30 px-4 py-1.5 font-mono text-[11px] text-muted-foreground",children:"persisted snapshot — box not running"}):null,n.map(a=>(0,e.jsx)(cw,{svc:a,disabled:!b||i,onRestart:a=>l(a)},a.name))]}):(0,e.jsx)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:c?.source==="unavailable"?"No service status (box not running or no snapshot yet).":"No services declared in agentbox.yaml."}):(0,e.jsx)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:"Loading…"})})]})}var cy=a.i(82337);a.s(["default",0,function(){let{id:a}=(0,f.useParams)(),{box:b,project:c}=(0,n.useStore)(),d=b(a);if(!d)return(0,e.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8",children:[(0,e.jsx)(bW.BackLink,{to:"/",children:"All boxes"}),(0,e.jsx)(cb.EmptyBox,{children:"This box no longer exists — it may have been destroyed."})]});let k=c(d.projectId);return(0,e.jsxs)("div",{className:"mx-auto w-full max-w-[1080px] px-8 pb-16 pt-8 max-sm:px-4",children:[(0,e.jsx)(bW.BackLink,{to:"/projects/"+d.projectId,children:k?k.name:"Project"}),(0,e.jsxs)("div",{className:"flex items-start gap-4 max-md:flex-col",children:[(0,e.jsxs)("div",{className:"min-w-0",children:[(0,e.jsxs)("h1",{className:"flex flex-wrap items-center gap-3 text-[25px] font-semibold leading-tight tracking-[-0.025em]",children:[d.task,d.persistent?(0,e.jsx)(i.PersistentMark,{className:"size-4"}):null,(0,e.jsx)(j.StatusBadge,{status:d.status})]}),(0,e.jsxs)("div",{className:"mt-1.5 text-sm text-muted-foreground",children:[(0,e.jsx)("span",{className:"font-mono text-secondary-foreground",children:d.id})," ·"," ",(0,e.jsx)("span",{className:"font-mono text-secondary-foreground",children:d.repo})," · ",d.host]})]}),(0,e.jsx)("div",{className:"ml-auto flex-none max-md:ml-0",children:(0,e.jsx)(b8.BoxActions,{box:d,size:"lg"})})]}),d.error?(0,e.jsx)(l,{className:"mt-4 border-[var(--red-line)] bg-[var(--red-soft)] text-[var(--red)]",icon:h.Icons.warn,title:"Box errored",children:(0,e.jsx)("span",{className:"font-mono text-secondary-foreground",children:d.error})}):null,(0,e.jsx)(p,{boxId:d.id}),(0,e.jsx)(bR.SectionLabel,{children:"Overview"}),(0,e.jsxs)(cy.StatGrid,{children:[(0,e.jsx)(cy.Stat,{k:"Status",v:(0,e.jsx)(j.StatusBadge,{status:d.status})}),(0,e.jsx)(cy.Stat,{k:"Agent CLI",v:d.agent,mono:!0}),(0,e.jsx)(cy.Stat,{k:"Commits",v:d.commits??"—",icon:h.Icons.commit}),(0,e.jsx)(cy.Stat,{k:"Files touched",v:d.filesTouched??"—",icon:h.Icons.file}),(0,e.jsx)(cy.Stat,{k:"Last activity",v:(0,e.jsx)(g.Ago,{ms:d.lastActivity}),mono:!0})]}),(0,e.jsx)(bV,{box:d}),(0,e.jsx)(b6,{box:d}),!1===d.hasGit?null:(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(bR.SectionLabel,{children:"Git operations"}),(0,e.jsx)(cm,{box:d})]}),(0,e.jsx)(cx,{id:d.id,running:"running"===d.status}),(0,e.jsx)(bR.SectionLabel,{children:"Details"}),(0,e.jsxs)(m.Card,{className:"divide-y divide-border/60 overflow-hidden",children:[(0,e.jsx)(ca,{k:"Box ID",v:d.id,mono:!0}),(0,e.jsx)(ca,{k:"Project",v:k?k.name:"—",link:k?"/projects/"+d.projectId:null}),(0,e.jsx)(ca,{k:"Repository",v:d.repo,mono:!0}),!1===d.hasGit?null:(0,e.jsx)(ca,{k:"Branch",v:d.branch,mono:!0}),(0,e.jsx)(ca,{k:"Host",v:d.host,mono:!0}),(0,e.jsx)(ca,{k:"Created",v:new Date(d.createdAt).toLocaleString(),mono:!0})]})]})}],58099)}];
2
+
3
+ //# sourceMappingURL=apps_hub_app_%28dashboard%29_boxes_%5Bid%5D_page_tsx_1-j_972._.js.map
@@ -0,0 +1,3 @@
1
+ module.exports=[61688,10511,47685,a=>{"use strict";var b=a.i(33552),c=a.i(74455),d=a.i(17607),e=a.i(97187),f=a.i(81624),g=a.i(71152),h=a.i(87883),i=a.i(24985),j=a.i(17236);a.s(["BoxTable",0,function({boxes:a}){let k=(0,c.useRouter)();return(0,b.jsx)(h.Card,{className:"overflow-hidden",children:(0,b.jsxs)(i.Table,{children:[(0,b.jsx)(i.TableHeader,{children:(0,b.jsxs)(i.TableRow,{className:"hover:bg-transparent",children:[(0,b.jsx)(i.TableHead,{className:"w-[38%]",children:"Task"}),(0,b.jsx)(i.TableHead,{className:"w-[27%] max-md:hidden",children:"Branch"}),(0,b.jsx)(i.TableHead,{className:"max-md:hidden",children:"Status"}),(0,b.jsx)(i.TableHead,{className:"text-right",children:"Actions"})]})}),(0,b.jsx)(i.TableBody,{children:a.map(a=>(0,b.jsxs)(i.TableRow,{className:"cursor-pointer",onClick:()=>k.push("/boxes/"+a.id),children:[(0,b.jsxs)(i.TableCell,{children:[(0,b.jsxs)("div",{className:"flex min-w-0 items-center gap-1.5 text-[13.5px] font-medium",children:[(0,b.jsx)("span",{className:"truncate",children:a.task}),a.persistent?(0,b.jsx)(f.PersistentMark,{}):null]}),(0,b.jsxs)("div",{className:"mt-0.5 font-mono text-[11px] text-[#a4a9b0]",children:[a.id," · ",a.host]})]}),(0,b.jsxs)(i.TableCell,{className:"max-md:hidden",children:[(0,b.jsxs)("span",{className:"inline-flex max-w-full items-center gap-1.5 font-mono text-xs text-secondary-foreground",children:[(0,b.jsx)(e.Icons.branch,{className:"size-3 flex-none text-muted-foreground"}),(0,b.jsx)("span",{className:"truncate",children:a.branch})]}),(0,b.jsxs)("div",{className:"mt-0.5 font-mono text-[11px] text-[#a4a9b0]",children:[a.agent," · ",(0,b.jsx)(d.Ago,{ms:a.lastActivity})]})]}),(0,b.jsx)(i.TableCell,{className:"max-md:hidden",children:(0,b.jsx)(g.StatusBadge,{status:a.status})}),(0,b.jsx)(i.TableCell,{className:"text-right",onClick:a=>a.stopPropagation(),children:(0,b.jsx)(j.BoxActions,{box:a})})]},a.id))})]})})}],61688);var k=a.i(50253);let l="claude";function m(a,b){if(!a)return!1;let c=b.find(b=>b.id===a);return!!c&&c.configured&&"hub"!==c.origin}var n=a.i(54473),o=a.i(18071),p=a.i(45515),q=a.i(85883),r=a.i(53596),s=a.i(86834);function t({className:a,...c}){return(0,b.jsx)("textarea",{className:(0,s.cn)("flex min-h-[76px] w-full resize-y rounded-lg border border-input bg-card px-3 py-2 text-sm leading-normal shadow-sm transition-[border-color,box-shadow] placeholder:text-muted-foreground focus-visible:outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/15",a),...c})}var u=a.i(96664);let v=(0,u.createServerReference)("40e884589d1e7e5ab0b4a28c5f8833f40542ce99d3",u.callServer,void 0,u.findSourceMapURL,"createBoxAction"),w=(0,u.createServerReference)("404f76d985ac6fbd236c731f1d3f0c36bb52320b2b",u.callServer,void 0,u.findSourceMapURL,"listBranchesAction");var x=a.i(4305),y=a.i(80007),z=a.i(94290);function A({request:a,onAnswer:c,disabled:d}){var e;let f=a.choices??("confirm"===(e=a).kind?[{value:"y",label:"Yes"},{value:"n",label:"No"}]:[{value:e.fallback.value,label:"Continue"}]);return(0,b.jsxs)("div",{className:"space-y-3 rounded-md border border-amber-500/30 bg-amber-500/5 p-4",children:[(0,b.jsx)("div",{className:"text-sm font-semibold text-amber-200",children:a.heading??a.title}),a.heading?(0,b.jsx)("div",{className:"text-xs text-foreground",children:a.title}):null,a.body?(0,b.jsx)("p",{className:"text-xs leading-relaxed text-muted-foreground",children:a.body}):null,(0,b.jsx)(B,{detail:a.detail}),(0,b.jsx)("div",{className:"flex flex-wrap gap-2 pt-1",children:f.map(e=>(0,b.jsx)(o.Button,{type:"button",variant:e.value!==a.defaultValue||e.danger?"outline":"default",disabled:d,title:e.hint,onClick:()=>c(e.value),className:(0,s.cn)(e.danger&&"text-red-400 hover:text-red-300"),children:e.label},e.value))})]})}function B({detail:a}){return a?"file-table"===a.type&&"rows"in a?(0,b.jsx)("div",{className:"overflow-x-auto rounded border border-border/60",children:(0,b.jsxs)("table",{className:"w-full text-left text-xs",children:[(0,b.jsx)("thead",{className:"bg-muted/40 text-muted-foreground",children:(0,b.jsxs)("tr",{children:[(0,b.jsx)("th",{className:"px-2 py-1 font-medium",children:"From"}),(0,b.jsx)("th",{className:"px-2 py-1 font-medium",children:"To"}),(0,b.jsx)("th",{className:"px-2 py-1 text-right font-medium",children:"Size"}),(0,b.jsx)("th",{className:"px-2 py-1 font-medium",children:"Notes"})]})}),(0,b.jsx)("tbody",{className:"font-mono",children:a.rows.map(a=>(0,b.jsxs)("tr",{className:(0,s.cn)("border-t border-border/40",a.warn&&"bg-red-500/10"),children:[(0,b.jsx)("td",{className:"px-2 py-1 break-all",children:a.src}),(0,b.jsx)("td",{className:"px-2 py-1 break-all",children:a.dest}),(0,b.jsx)("td",{className:"px-2 py-1 text-right whitespace-nowrap text-muted-foreground",children:"missing"===a.kind?"—":function(a){if(a<1024)return`${String(a)} B`;let b=["KB","MB","GB","TB"],c=a/1024,d=0;for(;c>=1024&&d<b.length-1;)c/=1024,d+=1;return`${c<10?c.toFixed(1):String(Math.round(c))} ${b[d]}`}(a.bytes??0)}),(0,b.jsx)("td",{className:"px-2 py-1 whitespace-nowrap text-muted-foreground",children:a.flags.join(", ")})]},`${a.src}->${a.dest}`))})]})}):"credential-list"===a.type&&"rows"in a?(0,b.jsx)("div",{className:"space-y-2",children:a.rows.map(a=>(0,b.jsxs)("div",{className:(0,s.cn)("space-y-1 rounded border border-border/60 bg-muted/20 p-3 text-xs",a.warn&&"border-red-500/40 bg-red-500/10"),children:[(0,b.jsxs)("div",{className:"font-medium",children:[a.label,a.provider?(0,b.jsx)("span",{className:"pl-2 font-normal text-muted-foreground",children:a.provider}):null]}),(0,b.jsx)("div",{className:"font-mono break-all text-muted-foreground",children:"env"===a.source?a.envVar:`${a.hostPath??""} → ${a.boxPath??""}`}),a.caveat?(0,b.jsx)("div",{className:"pt-1 text-amber-300",children:a.caveat}):null]},a.value))}):"credential"===a.type&&"hostPath"in a?(0,b.jsxs)("div",{className:"space-y-1 rounded border border-border/60 bg-muted/20 p-3 text-xs",children:[(0,b.jsx)("div",{className:"font-medium",children:a.label}),(0,b.jsxs)("div",{className:"font-mono break-all text-muted-foreground",children:[a.hostPath," ",(0,b.jsx)("span",{className:"px-1",children:"→"})," ",a.boxPath]}),a.caveat?(0,b.jsx)("div",{className:"pt-1 text-amber-300",children:a.caveat}):null]}):(0,b.jsx)("pre",{className:"overflow-x-auto rounded border border-border/60 bg-muted/20 p-3 font-mono text-xs",children:a.summary}):null}let C="__custom__",D=[{id:"docker",label:"Docker (local)",configured:!0}],E=new Set(["e2b","vercel"]),F=[{id:"claude",label:"Claude"},{id:"codex",label:"Codex"},{id:"opencode",label:"OpenCode"},{id:"pi",label:"Pi"}];function G({project:a,projects:d,initialRestore:f,onClose:g}){let h,i,j=(0,c.useRouter)(),{state:n}=(0,y.useStore)(),[u,B]=(0,k.useState)(null),J=u??(n.providers.length?n.providers:D),[K,L]=(0,k.useTransition)(),[M,N]=(0,k.useState)(a?.id??d[0]?.id??""),[O,P]=(0,k.useState)("claude"),[Q,R]=(0,k.useState)(null),[S,T]=(0,k.useState)(null),U=S??F,[V,W]=(0,k.useState)("docker"),[X,Y]=(0,k.useState)(""),[Z,$]=(0,k.useState)(""),[_,aa]=(0,k.useState)(""),[ab,ac]=(0,k.useState)(null),[ad,ae]=(0,k.useState)(!1),[af,ag]=(0,k.useState)([]),[ah,ai]=(0,k.useState)(f??""),[aj,ak]=(0,k.useState)(!1),al=(0,k.useRef)(f?a?.id??d[0]?.id??"":null),[am,an]=(0,k.useState)(null),[ao,ap]=(0,k.useState)(!1),[aq,ar]=(0,k.useState)(""),[as,at]=(0,k.useState)(""),[au,av]=(0,k.useState)(null),[aw,ax]=(0,k.useState)(null),[ay,az]=(0,k.useState)(null),[aA,aB]=(0,k.useState)([]),[aC,aD]=(0,k.useState)([]),[aE,aF]=(0,k.useState)([]),[aG,aH]=(0,k.useState)("streaming"),[aI,aJ]=(0,k.useState)(null),[aK,aL]=(0,k.useState)(null),[aM,aN]=(0,k.useState)(!1),[aO,aP]=(0,k.useState)(null);(0,k.useEffect)(()=>{let a=!1;return(async()=>{try{let b=await fetch("/api/v1/providers?freshness=1&hosts=expand",{credentials:"same-origin"});if(!b.ok)return;let c=await b.json();if(a)return;let d=c.providers??[];B(d);let e={};for(let a of d)e[a.id]={baseStatus:a.baseStatus,baseStaleReason:a.baseStaleReason,jobId:a.jobId};aP(e)}catch{}})(),()=>{a=!0}},[]),(0,k.useEffect)(()=>{let a=!1;if(ag([]),al.current===M?al.current=null:ai(""),M)return(async()=>{try{let b=await fetch(`/api/v1/projects/${encodeURIComponent(M)}/bots`,{credentials:"same-origin"});if(!b.ok)return;let c=await b.json();if(a)return;ag((c.bots??[]).filter(a=>a.backups.some(a=>a.state)))}catch{}})(),()=>{a=!0}},[M]),(0,k.useEffect)(()=>{let a=!1;return(async()=>{try{let b=await fetch("/api/v1/agents",{credentials:"same-origin"});if(!b.ok)return;let c=await b.json();if(a||!c.agents?.length)return;T(c.agents)}catch{}})(),()=>{a=!0}},[]);let aQ=d.find(a=>a.id===M)??a,aR=(()=>{let a=ah?(0,x.parseRestoreKey)(ah):null;if(!a)return null;let b=af.find(b=>b.bot===a.bot),c=b&&(0,x.restorableBackups)(b).find(b=>b.stamp===a.stamp);return b&&c?{bot:b.bot,stamp:c.stamp}:null})(),aS=m(h=aQ?.lastProvider??void 0,J)?h:"docker",aT=(i=aQ?.lastAgent??void 0)&&U.some(a=>a.id===i)?i:U.some(a=>a.id===l)?l:U[0]?.id??l,aU=m(V,J),aV="none"===O||U.some(a=>a.id===O);(0,k.useEffect)(()=>{if(Q!==M||!aU){W(aS),P(aT),R(M);return}aV||P(aT)},[M,Q,aU,aV]);let aW=V??"docker",aX=J.find(a=>a.id===aW),aY=J.find(a=>"hub"===a.origin&&a.hubUrl)?.hubUrl,aZ=aO?.[aW],a$=E.has(aW),a_=U.find(a=>a.id===O)?.surface==="service",a0=(am??a_)&&!a$,a1=(aq===C?as:aq).trim(),a2=!aR&&!!aZ&&(!!aZ.jobId||"unprepared"===aZ.baseStatus||"stale"===aZ.baseStatus);(0,k.useEffect)(()=>{ar(""),at(""),av(null)},[aW]),(0,k.useEffect)(()=>{if(aX?.sizeAppliesAt!=="bake"||0===a1.length)return void av(null);let a=!1,b=setTimeout(()=>{(async()=>{try{let b=await fetch(`/api/v1/providers/${encodeURIComponent(aW)}/size-check`,{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({size:a1})});if(!b.ok||a)return;let c=await b.json();if(a)return;av({required:!!c.rebakeRequired,reason:c.reason})}catch{}})()},400);return()=>{a=!0,clearTimeout(b)}},[aW,a1,aX?.sizeAppliesAt]),(0,k.useEffect)(()=>{if(!M||ay)return;ae(aQ?.needsSetup??!1);let a=!1;return ac(null),aa(aQ?.currentBranch??""),w(M).then(b=>{if(a||!b.ok){a||b.ok||ac([]);return}ac(b.branches),b.current&&b.branches.includes(b.current)&&aa(b.current)}),()=>{a=!0}},[M,ay]);let a3=async a=>{try{let b=await fetch(`/api/v1/projects/${encodeURIComponent(M)}/restore`,{method:"POST",credentials:"same-origin",headers:{"content-type":"application/json"},body:JSON.stringify({bot:a.bot,stamp:a.stamp,name:X.trim()||void 0,provider:V,...aj?{force:!0}:{}})});if(!b.ok){let a=await b.json().catch(()=>null);ax(a?.error?.message??`restore failed (HTTP ${String(b.status)})`);return}let c=await b.json();az(c.jobId)}catch(a){ax(a instanceof Error?a.message:String(a))}},a4=async()=>{try{let a=await fetch(`/api/v1/projects/${encodeURIComponent(M)}/create-preflight`,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({agent:O,provider:V})}),b=await a.json();if(aF(b?.unavailable??[]),a.ok&&b?.prompts?.length)return aB(b.prompts),aD([]),!0}catch{}return!1},a5=(a=aC)=>{au?.required&&!a2?a6():a2?au?.required||"docker"===aW||aZ?.baseStatus!=="stale"||aZ.jobId?a6():aN(!0):a7(a)},a6=()=>{ax(null);let a=aZ?.jobId;a?aL(a):L(async()=>{try{let a=await fetch(`/api/v1/providers/${encodeURIComponent(aW)}/prepare`,{method:"POST",headers:{"content-type":"application/json"},credentials:"same-origin",body:JSON.stringify({...a1.length>0?{size:a1}:{},...au?.required?{force:!0}:{}})}),b=await a.json().catch(()=>null);if(!a.ok||!b?.jobId)return void ax(b?.error?.message??`base image build request failed (${a.status})`);aL(b.jobId)}catch(a){ax(a instanceof Error?a.message:String(a))}})},a7=(a=aC)=>{ax(null),L(async()=>{await a8(a)})},a8=async a=>{let b,c=await v({projectId:M,agent:O,provider:V,name:X.trim()||void 0,prompt:"none"===O?void 0:Z.trim()||void 0,fromBranch:_.trim()&&_.trim()!==aQ?.currentBranch?_.trim():void 0,setupWizard:"none"!==O&&ad,...(b={},a.length>0&&(b.promptAnswers=a),a$?a_&&(b.persistent=!1):a0!==a_&&(b.persistent=a0),a1.length>0&&aX?.sizeAppliesAt!=="bake"&&(b.size=a1),Object.keys(b).length>0?{opts:b}:{})});c.ok?(az(c.jobId),aB([]),j.refresh()):ax(c.error)};return(0,b.jsxs)(p.Dialog,{onClose:g,className:ay||aK?"max-w-[900px]":"max-w-[560px]",children:[(0,b.jsxs)(p.DialogHeader,{children:[(0,b.jsx)(p.DialogIcon,{children:(0,b.jsx)(e.Icons.box,{})}),(0,b.jsxs)("div",{children:[(0,b.jsx)(p.DialogTitle,{children:aA.length>0?"Create box":!ay&&aK?"Building base image":"Create box"}),(0,b.jsx)(p.DialogDescription,{children:aQ?aQ.name:"Start a box in a project"})]}),ay||aK?(0,b.jsx)("div",{className:"ml-auto mr-8 flex-none pt-0.5",children:(0,b.jsx)(H,{status:aG,loginPhase:aI})}):null]}),(0,b.jsxs)(p.DialogBody,{className:"flex flex-col gap-4",children:[!(aE.length>0)||ay||aK?null:(0,b.jsx)("div",{className:"space-y-1 rounded-md border border-amber-500/30 bg-amber-500/5 p-3 text-xs",children:aE.map(a=>(0,b.jsxs)("div",{children:[(0,b.jsx)("span",{className:"font-medium text-amber-200",children:a.topic}),(0,b.jsxs)("span",{className:"text-muted-foreground",children:[" — ",a.reason]})]},a.topic))}),aA.length>0?(0,b.jsx)(A,{request:aA[0],onAnswer:a=>{let b=aA[0];if(!b)return;let c=[...aC,{id:b.id,value:a}],d=aA.slice(1);if("cancel"===a){aB([]),aD([]);return}aD(c),aB(d),0===d.length&&a5(c)},disabled:K},aA[0].id):ay?(0,b.jsx)(z.JobLogStream,{jobId:ay,onStatus:aH,onDone:()=>j.refresh(),onLogin:a=>aJ(a?.phase??null)}):aK?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{className:"font-mono text-xs text-muted-foreground",children:["Building the ",aX?.label??aW," base image — one-time, can take several minutes. The box is created automatically when it finishes."]}),(0,b.jsx)(z.JobLogStream,{jobId:aK,onStatus:aH,onDone:a=>{"done"===a?a7():ax(`base image build ${a}`)}}),aw?(0,b.jsx)("div",{className:"font-mono text-xs text-destructive",children:aw}):null]}):aA.length>0?null:(0,b.jsxs)(b.Fragment,{children:[a?null:(0,b.jsx)(I,{label:"Project",children:(0,b.jsxs)(r.Select,{value:M,onChange:a=>N(a.target.value),children:[0===d.length?(0,b.jsx)("option",{value:"",children:"No projects — add one first"}):null,d.map(a=>(0,b.jsx)("option",{value:a.id,children:a.name},a.id))]})}),af.length>0?(0,b.jsxs)(I,{label:"Start from",children:[(0,b.jsxs)(r.Select,{value:ah,onChange:a=>ai(a.target.value),children:[(0,b.jsx)("option",{value:"",children:"New workspace"}),af.flatMap(a=>(0,x.restorableBackups)(a).map(c=>(0,b.jsxs)("option",{value:(0,x.restoreKeyOf)(a.bot,c.stamp),children:[a.bot," — ",(0,x.readableStamp)(c.stamp),c.stamp===a.latest?" (latest)":""]},(0,x.restoreKeyOf)(a.bot,c.stamp))))]}),aR?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("p",{className:"mt-1.5 text-[11.5px] leading-normal text-muted-foreground",children:["Restores ",(0,b.jsx)("span",{className:"font-mono",children:aR.bot})," with"," ",(0,b.jsx)("strong",{children:"the same identity"}),"— same auth token, same pairings, same history. Refused while the box this backup came from is still running: two live gateways cannot share one identity."]}),(0,b.jsxs)("label",{className:"mt-2 flex items-start gap-2.5",children:[(0,b.jsx)("input",{type:"checkbox",checked:aj,onChange:a=>ak(a.target.checked),className:"mt-0.5 h-4 w-4 flex-none accent-primary"}),(0,b.jsx)("span",{className:"text-[11.5px] leading-normal text-muted-foreground",children:"Restore anyway if the source box is still running, or the destination is not empty"})]})]}):null]}):null,(0,b.jsx)(I,{label:"Provider",children:(0,b.jsx)(r.Select,{value:V,onChange:a=>W(a.target.value),children:J.map(a=>(0,b.jsxs)("option",{disabled:!a.configured||"hub"===a.origin,title:"hub"===a.origin?`Create these on the control box${a.hubUrl?` (${a.hubUrl})`:""}`:a.reason,value:a.id,children:[a.label,"hub"===a.origin?" — create on the control box":a.configured?"":" — not configured"]},a.id))})}),aY?(0,b.jsxs)("p",{className:"-mt-2 text-xs text-muted-foreground",children:["Cloud boxes are created on your control box."," ",(0,b.jsx)("a",{href:`${aY}/boxes`,target:"_blank",rel:"noreferrer",className:"underline underline-offset-2 hover:text-foreground",children:"Open it ↗"})]}):null,a2?(0,b.jsx)("p",{className:"-mt-2 font-mono text-xs text-amber-600 dark:text-amber-400",title:aZ?.baseStaleReason,children:aZ?.jobId?"A base-image build is already running — the box will be created when it finishes.":aZ?.baseStatus==="unprepared"?"First use of this provider: the base image will be downloaded or built first (can take 5–10 minutes).":"The base image is out of date and will be rebuilt first (can take 5–10 minutes)."}):null,aR?null:null===ab?(0,b.jsx)(I,{label:"Base branch",children:(0,b.jsx)(r.Select,{value:"",disabled:!0,children:(0,b.jsx)("option",{value:"",children:"Loading branches…"})})}):ab.length>0?(0,b.jsx)(I,{label:"Base branch",children:(0,b.jsxs)(r.Select,{value:_,onChange:a=>aa(a.target.value),children:[aQ?.currentBranch&&!ab.includes(aQ.currentBranch)?(0,b.jsxs)("option",{value:"",children:[aQ.currentBranch," (current)"]}):null,ab.map(a=>(0,b.jsxs)("option",{value:a,children:[a,a===aQ?.currentBranch?" (current)":""]},a))]})}):null,aR?null:(0,b.jsx)(I,{label:"Agent",children:(0,b.jsxs)(r.Select,{value:O,onChange:a=>P(a.target.value),children:[U.map(a=>(0,b.jsx)("option",{value:a.id,children:!1===a.installed?`${a.label} — not set up on this host`:a.label},a.id)),(0,b.jsx)("option",{value:"none",children:"Empty — just create the box"})]})}),(0,b.jsx)(I,{label:"Name (optional)",children:(0,b.jsx)(q.Input,{value:X,onChange:a=>Y(a.target.value),placeholder:"auto"})}),aQ?.needsSetup&&"none"!==O&&!aR?(0,b.jsxs)("label",{className:"flex items-start gap-2.5",children:[(0,b.jsx)("input",{type:"checkbox",checked:ad,onChange:a=>ae(a.target.checked),className:"mt-0.5 h-4 w-4 flex-none accent-primary"}),(0,b.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("span",{className:"text-xs font-medium text-secondary-foreground",children:"Run setup wizard"}),(0,b.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:"This project has no agentbox.yaml — the agent explores the repo and proposes one on its first turn."})]})]}):null,"none"!==O||aR?null:(0,b.jsxs)("p",{className:"font-mono text-xs text-muted-foreground",children:["The box is created and left running with no agent — attach later from a terminal or SSH (",(0,b.jsx)("span",{className:"text-secondary-foreground",children:"agentbox shell"}),")."]}),(0,b.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,b.jsxs)("button",{type:"button",onClick:()=>ap(a=>!a),className:"flex cursor-pointer items-center gap-1.5 self-start text-xs font-medium text-secondary-foreground transition-colors hover:text-foreground",children:[(0,b.jsx)(e.Icons.chevR,{className:(0,s.cn)("size-3.5 transition-transform",ao&&"rotate-90")}),"Advanced"]}),ao?(0,b.jsxs)(b.Fragment,{children:[aX?.sizes?.length?(0,b.jsxs)("div",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)(I,{label:"Size",children:(0,b.jsxs)(r.Select,{value:aq,onChange:a=>{ar(a.target.value),a.target.value!==C&&at("")},children:[(0,b.jsx)("option",{value:"",children:"Provider default"}),aX.sizes.map(a=>(0,b.jsx)("option",{value:a.key,children:a.label},a.key)),aX.sizeHint?(0,b.jsx)("option",{value:C,children:"Custom…"}):null]})}),aq===C?(0,b.jsx)(q.Input,{value:as,onChange:a=>at(a.target.value),placeholder:aX.sizeHint,autoFocus:!0}):null,au?.required?(0,b.jsxs)("p",{className:"font-mono text-xs text-amber-500",title:au.reason,children:[aX.label," fixes the size at bake time, so the base image is rebuilt first",aX.bake?.approxMinutes?` (about ${aX.bake.approxMinutes} min)`:"","."]}):null]}):null,"none"!==O?(0,b.jsx)(I,{label:"Initial prompt (optional)",children:(0,b.jsx)(t,{value:Z,onChange:a=>$(a.target.value),rows:3,placeholder:"Leave empty to just start the agent — attach later from a terminal or SSH."})}):null,(0,b.jsxs)("label",{className:(0,s.cn)("flex items-start gap-2.5",a$&&"cursor-not-allowed opacity-60"),children:[(0,b.jsx)("input",{type:"checkbox",checked:a0,disabled:a$,onChange:a=>an(a.target.checked),className:"mt-0.5 h-4 w-4 flex-none accent-primary"}),(0,b.jsxs)("span",{className:"flex flex-col gap-0.5",children:[(0,b.jsx)("span",{className:"text-xs font-medium text-secondary-foreground",children:"Persistent"}),(0,b.jsx)("span",{className:"font-mono text-xs text-muted-foreground",children:a$?`${aX?.label??aW} caps how long a sandbox can live, so an always-on box is not possible there.`:"Keep this box always on and protected from pruning"})]})]})]}):null]}),aw?(0,b.jsx)("div",{className:"font-mono text-xs text-destructive",children:aw}):null]})]}),(0,b.jsx)(p.DialogFooter,{children:aA.length>0?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{className:"mr-auto self-center font-mono text-xs text-muted-foreground",children:aA.length>1?`${String(aA.length)} questions before this box is created`:"One question before this box is created"}),(0,b.jsx)(o.Button,{variant:"outline",onClick:g,disabled:K,children:"Cancel"})]}):ay||aK?(0,b.jsxs)(b.Fragment,{children:["streaming"===aG?(0,b.jsx)("span",{className:"mr-auto self-center font-mono text-xs text-muted-foreground",children:ay?"The box + agent start in the background — you can close this.":"Keep this open — the box is created when the build finishes."}):null,(0,b.jsx)(o.Button,{onClick:g,children:"Close"})]}):aM?(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)("span",{className:"mr-auto self-center font-mono text-xs text-muted-foreground",title:aZ?.baseStaleReason,children:["The ",aX?.label??aW," base image is out of date."]}),(0,b.jsx)(o.Button,{variant:"outline",onClick:()=>aN(!1),disabled:K,children:"Cancel"}),(0,b.jsx)(o.Button,{variant:"outline",onClick:()=>{aN(!1),a7()},disabled:K,children:"Use existing image"}),(0,b.jsx)(o.Button,{onClick:()=>{aN(!1),a6()},disabled:K,children:"Rebuild & create"})]}):(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(o.Button,{variant:"outline",onClick:g,disabled:K,children:"Cancel"}),(0,b.jsx)(o.Button,{onClick:()=>{(ax(null),M)?aR?L(async()=>{await a3(aR)}):L(async()=>{await a4()||a5()}):ax("pick a project")},disabled:K||!M,children:K?"Starting…":aR?"Restore":"Create box"})]})})]})}function H({status:a,loginPhase:c}){return"done"===a?(0,b.jsxs)(n.Badge,{className:"badge-run",children:[(0,b.jsx)("span",{className:"badge-dot"}),"Done"]}):"failed"===a||"error"===a||"cancelled"===a?(0,b.jsxs)(n.Badge,{className:"badge-err",children:[(0,b.jsx)("span",{className:"badge-dot"}),"Failed"]}):"error"===c?(0,b.jsxs)(n.Badge,{className:"badge-err",children:[(0,b.jsx)("span",{className:"badge-dot"}),"Login failed"]}):"awaiting-code"===c||"starting"===c||"exchanging"===c?(0,b.jsxs)(n.Badge,{className:"badge-create",children:[(0,b.jsx)("span",{className:"badge-dot"}),"Login required"]}):(0,b.jsxs)(n.Badge,{className:"badge-create",children:[(0,b.jsx)("span",{className:"badge-dot"}),"Working…"]})}function I({label:a,children:c}){return(0,b.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,b.jsx)("span",{className:"text-xs font-medium text-secondary-foreground",children:a}),c]})}a.s(["CreateBoxButton",0,function({project:a,projects:c,variant:d,size:f,className:g,label:h,icon:i,initialRestore:j}){let[l,m]=(0,k.useState)(!1);return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(o.Button,{variant:d,size:f,className:g,onClick:()=>m(!0),children:[i?(0,b.jsx)(i,{}):(0,b.jsx)(e.Icons.plus,{}),h??"Create box"]}),l?(0,b.jsx)(G,{project:a,projects:c??(a?[a]:[]),initialRestore:j,onClose:()=>m(!1)}):null]})}],10511);let J=(0,u.createServerReference)("4069d41484fe5995f8acd539b9f440661717b97aee",u.callServer,void 0,u.findSourceMapURL,"removeProjectAction");a.s(["DeleteProjectButton",0,function({project:a,size:d,className:f,redirectHome:g}){let h=(0,c.useRouter)(),[i,j]=(0,k.useTransition)();return(0,b.jsxs)(o.Button,{variant:"destructive",size:d,className:f,title:"Delete project",disabled:i,onClick:b=>{b.stopPropagation(),b.preventDefault(),window.confirm(`Remove project "${a.name}" from the hub? Its folder and files are NOT deleted — this only unregisters it (and any hub-set project settings). This cannot be undone.`)&&j(async()=>{let b=await J(a.id);b.ok?g?h.push("/"):h.refresh():window.alert(`Delete failed: ${b.error}`)})},children:[(0,b.jsx)(e.Icons.trash,{}),"Delete"]})}],47685)}];
2
+
3
+ //# sourceMappingURL=apps_hub_app_%28dashboard%29_boxes_components_box-table_tsx_0a9pyn_._.js.map