@madarco/agentbox 0.33.0 → 0.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (913) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/_cloud-attach-KEFEQ2YH.js +32 -0
  3. package/dist/{chunk-L55DASHB.js → chunk-2SKTXZGX.js} +8 -8
  4. package/dist/{chunk-YZZKWZO2.js → chunk-3PTSPFR6.js} +7 -1
  5. package/dist/chunk-3PTSPFR6.js.map +1 -0
  6. package/dist/{chunk-BKOKMZNK.js → chunk-3QTWB66F.js} +6 -6
  7. package/dist/{chunk-VSWIJHCH.js → chunk-5ZBNVZSU.js} +3 -3
  8. package/dist/{chunk-IX7S6NJR.js → chunk-72LKKHPI.js} +4 -4
  9. package/dist/{chunk-AXAMPAP3.js → chunk-7ELRQNNH.js} +3 -3
  10. package/dist/chunk-7ELRQNNH.js.map +1 -0
  11. package/dist/{chunk-WJ4MZESJ.js → chunk-7RDDR6BW.js} +27 -8
  12. package/dist/chunk-7RDDR6BW.js.map +1 -0
  13. package/dist/{chunk-7TPGIQOP.js → chunk-BORN6FJK.js} +10 -10
  14. package/dist/{chunk-OVLM2EZV.js → chunk-CUMSI7N3.js} +97 -83
  15. package/dist/chunk-CUMSI7N3.js.map +1 -0
  16. package/dist/{chunk-Z6LK4P54.js → chunk-EUE6F7HL.js} +40 -12
  17. package/dist/chunk-EUE6F7HL.js.map +1 -0
  18. package/dist/{chunk-7AMMBUEW.js → chunk-F2CNFPIA.js} +67 -33
  19. package/dist/chunk-F2CNFPIA.js.map +1 -0
  20. package/dist/{chunk-77IAHAQY.js → chunk-FBQC6TKM.js} +6 -6
  21. package/dist/{chunk-IJFP7N34.js → chunk-FPYYDMCR.js} +26 -9
  22. package/dist/chunk-FPYYDMCR.js.map +1 -0
  23. package/dist/{chunk-U7J7JT6R.js → chunk-G35FJ4KT.js} +108 -43
  24. package/dist/chunk-G35FJ4KT.js.map +1 -0
  25. package/dist/{chunk-JUTAYI2N.js → chunk-GCUJUUNE.js} +5 -5
  26. package/dist/{chunk-S77B5POZ.js → chunk-GKBAEX2P.js} +6 -6
  27. package/dist/{chunk-XKUF67M6.js → chunk-GT7VDGNV.js} +4 -4
  28. package/dist/{chunk-52OXHGKQ.js → chunk-HNPYVRX7.js} +35 -16
  29. package/dist/chunk-HNPYVRX7.js.map +1 -0
  30. package/dist/{chunk-AGHR7XOJ.js → chunk-HOJKUVH6.js} +3 -3
  31. package/dist/{chunk-PENAXZMR.js → chunk-INJIW6PP.js} +7 -7
  32. package/dist/{chunk-OYWP4SII.js → chunk-IZPNDZXI.js} +5 -5
  33. package/dist/{chunk-U3BCLGTH.js → chunk-JHS4ROJH.js} +11 -11
  34. package/dist/{chunk-CWN4DJYI.js → chunk-JVZZPJ2C.js} +3 -3
  35. package/dist/{chunk-KOGQNHV3.js → chunk-KA67IGEG.js} +4 -4
  36. package/dist/{chunk-OTAYAFYF.js → chunk-KRF2JODE.js} +3 -3
  37. package/dist/{chunk-SDWKZLGP.js → chunk-LFMJXQDL.js} +5 -5
  38. package/dist/{chunk-FM7PHYBD.js → chunk-NEU5B2VO.js} +162 -8
  39. package/dist/chunk-NEU5B2VO.js.map +1 -0
  40. package/dist/{chunk-2U4HKKM7.js → chunk-NSYCXUN5.js} +6 -6
  41. package/dist/{chunk-U4Z5OOOD.js → chunk-NZN3BME7.js} +32 -12
  42. package/dist/chunk-NZN3BME7.js.map +1 -0
  43. package/dist/{chunk-KWDFEQO6.js → chunk-PI4A3TGV.js} +24 -71
  44. package/dist/chunk-PI4A3TGV.js.map +1 -0
  45. package/dist/{chunk-HS6B3CE4.js → chunk-PJCIZLIX.js} +472 -138
  46. package/dist/chunk-PJCIZLIX.js.map +1 -0
  47. package/dist/{chunk-GERRSRQZ.js → chunk-PZK5KRFB.js} +12 -10
  48. package/dist/{chunk-GERRSRQZ.js.map → chunk-PZK5KRFB.js.map} +1 -1
  49. package/dist/{chunk-5JDGKHWH.js → chunk-QALBGVPR.js} +2 -2
  50. package/dist/{chunk-JCDC5S32.js → chunk-QDBDDJKT.js} +4 -4
  51. package/dist/{chunk-R7J7WFM5.js → chunk-QUBP3AZD.js} +220 -49
  52. package/dist/chunk-QUBP3AZD.js.map +1 -0
  53. package/dist/{chunk-YVIC7TNH.js → chunk-QZW3WXBW.js} +43 -23
  54. package/dist/{chunk-YVIC7TNH.js.map → chunk-QZW3WXBW.js.map} +1 -1
  55. package/dist/{chunk-ZPFTFIKP.js → chunk-S5WFZHC5.js} +5 -5
  56. package/dist/{chunk-UFOUBCPW.js → chunk-UDSNFS67.js} +34 -36
  57. package/dist/{chunk-UFOUBCPW.js.map → chunk-UDSNFS67.js.map} +1 -1
  58. package/dist/{chunk-PVZUQTLW.js → chunk-VUTEVIYG.js} +5 -5
  59. package/dist/{chunk-3HJQZQ76.js → chunk-WNFUSPZR.js} +25 -72
  60. package/dist/chunk-WNFUSPZR.js.map +1 -0
  61. package/dist/{chunk-OWCTDO67.js → chunk-WVBTRK6R.js} +13 -13
  62. package/dist/{chunk-4IQGL4KD.js → chunk-ZMKRUD6J.js} +6 -6
  63. package/dist/{chunk-J2AD7MLR.js → chunk-ZQWOZ5BL.js} +3 -3
  64. package/dist/{cli-6IPZVUXF.js → cli-B4VVKKYV.js} +10 -10
  65. package/dist/{cli-QIBPY2HQ.js → cli-ENMWXMKO.js} +10 -10
  66. package/dist/{cli-QSV6K33P.js → cli-F2UBHH7H.js} +11 -11
  67. package/dist/{cli-E2ZC5S4U.js → cli-JKSQBGRO.js} +11 -11
  68. package/dist/{cli-3WZP5JHA.js → cli-MIIWRJDK.js} +11 -11
  69. package/dist/cloud-backends.js +6 -6
  70. package/dist/{control-plane-I2QKMHPK.js → control-plane-R4ELXZHL.js} +22 -22
  71. package/dist/{cp-hub-upload-GW566DGZ.js → cp-hub-upload-IUQVJGOW.js} +10 -10
  72. package/dist/custody-client-PVDBOT7Y.js +18 -0
  73. package/dist/{deploy-hetzner-IIAXES7B.js → deploy-hetzner-KY6KWN4M.js} +11 -11
  74. package/dist/{dist-4K66F4UR.js → dist-2QGMP2UI.js} +10 -10
  75. package/dist/{dist-SZTW3RMB.js → dist-5MCQFGLX.js} +28 -8
  76. package/dist/{dist-XZXZSTTA.js → dist-7EKSUISW.js} +33 -18
  77. package/dist/dist-7EKSUISW.js.map +1 -0
  78. package/dist/{dist-5RMJLMYG.js → dist-EIVYC2MR.js} +3 -3
  79. package/dist/{dist-VKKHIHCZ.js → dist-JWXPKGPZ.js} +10 -10
  80. package/dist/{dist-HIQCE4H2.js → dist-ONAAPVBD.js} +21 -11
  81. package/dist/{dist-WR2HYACA.js → dist-OXLTCVA2.js} +10 -10
  82. package/dist/{dist-WTPYXNRH.js → dist-PBO4UHJK.js} +2 -2
  83. package/dist/{dist-YED5YJQN.js → dist-RCBMUPVR.js} +12 -4
  84. package/dist/{dist-IXPKVU3R.js → dist-TD74GXLP.js} +6 -6
  85. package/dist/{dist-44RSFOGQ.js → dist-VCZ3LZPJ.js} +22 -12
  86. package/dist/{dist-3EZQDIOD.js → dist-WGV7LRDC.js} +11 -9
  87. package/dist/{host-reach-drainer-A4ZO6UKT.js → host-reach-drainer-AZYC6UIB.js} +2 -2
  88. package/dist/{host-session-POJP4WO6.js → host-session-EGUDGE4R.js} +12 -12
  89. package/dist/hub-76RHPA7X.js +40 -0
  90. package/dist/{hub-adopt-YR7S5TNB.js → hub-adopt-5G7SKI2E.js} +9 -9
  91. package/dist/{hub-api-client-BUQDTSQ3.js → hub-api-client-WPZTG5AT.js} +5 -5
  92. package/dist/{hub-docker-target-XA5U2ZU5.js → hub-docker-target-CNJHYH4B.js} +16 -16
  93. package/dist/index.js +299 -224
  94. package/dist/index.js.map +1 -1
  95. package/dist/{manager-pty-XCGH6AUC-EZML75UO.js → manager-pty-XCGH6AUC-O3UNISN2.js} +5 -5
  96. package/dist/{plugin-update-BIPJZA24.js → plugin-update-UZYPWL4N.js} +6 -6
  97. package/dist/prepare-4GOTJXQL.js +48 -0
  98. package/dist/prepared-custody-4YJ4ZT7J.js +40 -0
  99. package/dist/{prepared-state-FO74QUCP-4WLAYPEO.js → prepared-state-FO74QUCP-GUIPQORN.js} +5 -5
  100. package/dist/pty-host.js +4 -4
  101. package/dist/{publish-credentials-N2JD2D3A.js → publish-credentials-RLRLNL33.js} +12 -12
  102. package/dist/registry-QMHCNR5X.js +18 -0
  103. package/dist/relay-VBWFCWKK.js +23 -0
  104. package/dist/{remote-docker-share-GIH6JNKY.js → remote-docker-share-TKG7SXHX.js} +13 -13
  105. package/dist/{tool-grant-push-7K765QKW.js → tool-grant-push-V7E3Y2W6.js} +3 -3
  106. package/package.json +2 -1
  107. package/runtime/_shared/ctl.cjs +138 -40
  108. package/runtime/digitalocean/ctl.cjs +138 -40
  109. package/runtime/docker/packages/ctl/dist/bin.cjs +138 -40
  110. package/runtime/e2b/ctl.cjs +138 -40
  111. package/runtime/hetzner/ctl.cjs +138 -40
  112. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  113. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  114. package/runtime/hub/apps/hub/.next/prerender-manifest.json +3 -3
  115. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/next-font-manifest.json +3 -3
  116. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
  117. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
  118. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
  119. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
  120. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -1
  121. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.nft.json +1 -1
  122. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
  123. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -1
  124. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.nft.json +1 -1
  125. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
  126. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
  127. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -1
  128. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
  129. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
  130. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
  131. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
  132. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
  133. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.nft.json +1 -1
  134. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -1
  135. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.nft.json +1 -1
  136. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
  137. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -1
  138. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
  139. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
  140. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
  141. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
  142. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
  143. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
  144. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -1
  145. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.nft.json +1 -1
  146. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach-box/route.js.nft.json +1 -1
  147. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/heartbeat/route.js.nft.json +1 -1
  148. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.nft.json +1 -1
  149. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.nft.json +1 -1
  150. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/pin/route.js.nft.json +1 -1
  151. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.nft.json +1 -1
  152. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.nft.json +1 -1
  153. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.nft.json +1 -1
  154. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.nft.json +1 -1
  155. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.nft.json +1 -1
  156. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
  157. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.nft.json +1 -1
  158. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
  159. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.nft.json +1 -1
  160. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.nft.json +1 -1
  161. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
  162. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -1
  163. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
  164. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
  165. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
  166. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.nft.json +1 -1
  167. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
  168. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -1
  169. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -1
  170. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.nft.json +1 -1
  171. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/register/route.js.nft.json +1 -1
  172. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.nft.json +1 -1
  173. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.nft.json +1 -1
  174. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.nft.json +1 -1
  175. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.nft.json +1 -1
  176. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.nft.json +1 -1
  177. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.nft.json +1 -1
  178. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.nft.json +1 -1
  179. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.nft.json +1 -1
  180. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.nft.json +1 -1
  181. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.nft.json +1 -1
  182. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.nft.json +1 -1
  183. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.nft.json +1 -1
  184. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/events/route.js.nft.json +1 -1
  185. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.nft.json +1 -1
  186. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js +2 -2
  187. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.nft.json +1 -1
  188. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/next-font-manifest.json +3 -3
  189. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +1 -1
  190. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
  191. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  192. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/next-font-manifest.json +3 -3
  193. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +12 -12
  194. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
  195. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  196. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -1
  197. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.nft.json +1 -1
  198. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/next-font-manifest.json +3 -3
  199. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -1
  200. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page_client-reference-manifest.js +1 -1
  201. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/next-font-manifest.json +3 -3
  202. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
  203. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  204. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  205. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/next-font-manifest.json +3 -3
  206. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +8 -8
  207. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
  208. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  209. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/next-font-manifest.json +3 -3
  210. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
  211. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  212. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/next-font-manifest.json +3 -3
  213. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
  214. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page_client-reference-manifest.js +1 -1
  215. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
  216. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
  217. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  218. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  219. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  220. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  221. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  222. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  223. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  224. package/runtime/hub/apps/hub/.next/server/app/_not-found/page/next-font-manifest.json +3 -3
  225. package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  226. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-5e8ze._.js +3 -0
  227. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-di9rg._.js +3 -0
  228. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__008zqfx._.js → [root-of-the-server]__0-ovzfw._.js} +2 -2
  229. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-r5e8q._.js +3 -0
  230. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__007hogi._.js +3 -0
  231. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0-kl55b._.js → [root-of-the-server]__00bh9gb._.js} +2 -2
  232. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00dc6yl._.js +3 -0
  233. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00zpt4k._.js +3 -0
  234. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__017tfb_._.js +3 -0
  235. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01dlun3._.js +3 -0
  236. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01mhbng._.js +3 -0
  237. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03jx5m5._.js +3 -0
  238. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03l4evb._.js +3 -0
  239. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0126167._.js → [root-of-the-server]__03uelft._.js} +2 -2
  240. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03wt33b._.js +3 -0
  241. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03z-u4h._.js +3 -0
  242. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__02s5f9s._.js → [root-of-the-server]__048c4u3._.js} +2 -2
  243. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04glef0._.js +3 -0
  244. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04za-91._.js +3 -0
  245. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05cnibm._.js +3 -0
  246. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06e_no_._.js +3 -0
  247. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06g2ncr._.js +3 -0
  248. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06vmwu8._.js +3 -0
  249. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06wzlsi._.js +3 -0
  250. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07f11r9._.js +3 -0
  251. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07mtcs1._.js +3 -0
  252. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__084o93l._.js +3 -0
  253. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__085_re5._.js +3 -0
  254. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08kj50f._.js +3 -0
  255. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08txtdi._.js +3 -0
  256. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__092u79y._.js +3 -0
  257. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09j-kzo._.js +3 -0
  258. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09umuy8._.js +3 -0
  259. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09wu-6r._.js +3 -0
  260. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_60dmv._.js +3 -0
  261. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_f5r-w._.js +3 -0
  262. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ahciyb._.js +3 -0
  263. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ajp0a3._.js +3 -0
  264. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ao_4th._.js +3 -0
  265. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0aqoqhn._.js +3 -0
  266. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0b3_azq._.js +3 -0
  267. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cjjwg7._.js +3 -0
  268. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +1 -1
  269. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1wl4f._.js +3 -0
  270. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d2ce-o._.js +3 -0
  271. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dfklvw._.js +3 -0
  272. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dgkz7l._.js +3 -0
  273. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dlg6e7._.js +3 -0
  274. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dq5edp._.js +3 -0
  275. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0drzmcj._.js +3 -0
  276. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dvyt4d._.js +3 -0
  277. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dyqk31._.js +3 -0
  278. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eliqqa._.js +3 -0
  279. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eluwey._.js +3 -0
  280. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f5v0j5._.js +3 -0
  281. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f7g_na._.js +3 -0
  282. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fn2qow._.js +3 -0
  283. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0frnoss._.js +3 -0
  284. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0g0e1x-._.js +3 -0
  285. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gdwl-b._.js +3 -0
  286. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gfhbl7._.js +3 -0
  287. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gsie0d._.js +3 -0
  288. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hg36y7._.js +3 -0
  289. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hz77cq._.js +3 -0
  290. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i501ph._.js +3 -0
  291. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j5jaq9._.js +3 -0
  292. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j7_6c5._.js +3 -0
  293. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jm5dx1._.js +3 -0
  294. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0k-t2mr._.js +3 -0
  295. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ktkk27._.js +3 -0
  296. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kxp4k8._.js +3 -0
  297. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l-mqzk._.js +3 -0
  298. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l7rw-n._.js +3 -0
  299. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lb45m6._.js +3 -0
  300. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lvczy2._.js +3 -0
  301. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0m9zj9m._.js +3 -0
  302. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mg-juc._.js +3 -0
  303. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mriv1n._.js +3 -0
  304. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0n4gqir._.js +3 -0
  305. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0new-8d._.js +3 -0
  306. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nuc9du._.js +3 -0
  307. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nxnhun._.js +3 -0
  308. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o42jfc._.js +3 -0
  309. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o7zz8d._.js +3 -0
  310. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0omb75h._.js +3 -0
  311. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p4ta6t._.js +3 -0
  312. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p5_ap9._.js +3 -0
  313. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pan9yi._.js +3 -0
  314. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pr6h1j._.js +3 -0
  315. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pz23t_._.js +3 -0
  316. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qcvt0o._.js +3 -0
  317. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qn4mea._.js +3 -0
  318. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qp0txx._.js +3 -0
  319. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qsn9xm._.js +3 -0
  320. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qx8qwu._.js +3 -0
  321. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r6p-ql._.js +3 -0
  322. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r6tfw8._.js +3 -0
  323. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sgdrnp._.js +3 -0
  324. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ssn3y9._.js +1 -1
  325. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0te8u6u._.js +3 -0
  326. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ukg6s1._.js +3 -0
  327. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0up7ls4._.js +3 -0
  328. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0uvnrnf._.js +3 -0
  329. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v2xw5s._.js +3 -0
  330. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v5qu_p._.js +3 -0
  331. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__12p0ia1._.js → [root-of-the-server]__0vku_ep._.js} +2 -2
  332. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vuhl78._.js +3 -0
  333. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w52bth._.js +3 -0
  334. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wq5ukd._.js +3 -0
  335. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wx561s._.js +3 -0
  336. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wxo4bk._.js +3 -0
  337. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xfcui-._.js +3 -0
  338. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xm7z28._.js +3 -0
  339. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xqz1om._.js +3 -0
  340. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xur24w._.js +3 -0
  341. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xw3pee._.js +3 -0
  342. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xwht7v._.js +3 -0
  343. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y20q9b._.js +3 -0
  344. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zfq7yk._.js +3 -0
  345. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi_qda._.js +3 -0
  346. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zpm7wg._.js +3 -0
  347. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zxlzp1._.js +3 -0
  348. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-a4wnf._.js +3 -0
  349. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-fpw4q._.js +3 -0
  350. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-iro6m._.js +3 -0
  351. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-o35-u._.js +3 -0
  352. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1043gy8._.js +3 -0
  353. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10kehs5._.js +3 -0
  354. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10s1755._.js +3 -0
  355. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11d3dgq._.js +3 -0
  356. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__126lrtu._.js +3 -0
  357. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12n9728._.js +3 -0
  358. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13hluml._.js +3 -0
  359. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13hzwlv._.js +3 -0
  360. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14c4h72._.js +3 -0
  361. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14oho-o._.js +3 -0
  362. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14zr9zt._.js +1 -1
  363. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__153axa9._.js +3 -0
  364. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1582-3i._.js +3 -0
  365. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15v83nk._.js +3 -0
  366. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16e-k-w._.js +3 -0
  367. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16m0mie._.js +3 -0
  368. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16ta_9y._.js +3 -0
  369. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17a3r0z._.js +3 -0
  370. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17kg43w._.js +3 -0
  371. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18g18yc._.js +3 -0
  372. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18m4f3-._.js +3 -0
  373. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__190vthx._.js +3 -0
  374. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19vezsz._.js +3 -0
  375. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19vgyci._.js +3 -0
  376. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_ulp2r._.js +3 -0
  377. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1a6hiz5._.js +3 -0
  378. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1apqdye._.js +3 -0
  379. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1avjial._.js +3 -0
  380. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cicer7._.js +3 -0
  381. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1crkcf8._.js +3 -0
  382. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dra_qf._.js +3 -0
  383. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eearvr._.js +3 -0
  384. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eewe3-._.js +3 -0
  385. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fd1yxa._.js +3 -0
  386. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fyknn9._.js +3 -0
  387. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g24h4v._.js +3 -0
  388. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1goi44d._.js +3 -0
  389. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hf8-7y._.js +3 -0
  390. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hn7h11._.js +3 -0
  391. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i9e2ly._.js +3 -0
  392. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1j6cxj7._.js +3 -0
  393. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jwn6xy._.js +3 -0
  394. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kw00ov._.js +3 -0
  395. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1l0xu4g._.js +3 -0
  396. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1laa5r-._.js +3 -0
  397. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lo6_vz._.js +3 -0
  398. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lzumk3._.js +3 -0
  399. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m1qnsg._.js +3 -0
  400. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m26y4h._.js +3 -0
  401. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m5qi0d._.js +3 -0
  402. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m7oktq._.js +3 -0
  403. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mq0v7p._.js +1 -1
  404. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n29-mo._.js +3 -0
  405. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n5aq-l._.js +3 -0
  406. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nhwizo._.js +3 -0
  407. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1o2vpkc._.js +3 -0
  408. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1o9euia._.js +3 -0
  409. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1otvs-z._.js +3 -0
  410. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1p3nshl._.js +3 -0
  411. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pbl8am._.js +3 -0
  412. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9a118._.js +3 -0
  413. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9klny._.js +3 -0
  414. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qf5sar._.js +3 -0
  415. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qjpnlw._.js +3 -0
  416. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qpcmfu._.js +1 -1
  417. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r8kqe3._.js +3 -0
  418. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ra-lry._.js +3 -0
  419. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rousb3._.js +3 -0
  420. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rvwwj8._.js +3 -0
  421. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rwfadw._.js +3 -0
  422. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sj1ox_._.js +3 -0
  423. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sq9444._.js +3 -0
  424. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sqteyf._.js +3 -0
  425. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1th4k80._.js +3 -0
  426. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1umt_5v._.js +3 -0
  427. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ux-zjb._.js +3 -0
  428. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v5fjky._.js +3 -0
  429. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vspjdn._.js +3 -0
  430. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1w02nxp._.js +3 -0
  431. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1winv-x._.js +3 -0
  432. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wj9na5._.js +3 -0
  433. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1x-8rww._.js +3 -0
  434. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ybyads._.js +3 -0
  435. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yzs5_p._.js +3 -0
  436. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z3bc6x._.js +3 -0
  437. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zh-p_4._.js +3 -0
  438. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zj2l_d._.js +3 -0
  439. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zqt33m._.js +3 -0
  440. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zr57k3._.js +3 -0
  441. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zxsjfn._.js +3 -0
  442. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ga3fy._.js +3 -0
  443. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20gp3bg._.js +3 -0
  444. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20k17-b._.js +3 -0
  445. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20o508x._.js +3 -0
  446. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20zx91s._.js +3 -0
  447. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__219zam7._.js +3 -0
  448. package/runtime/hub/apps/hub/.next/server/chunks/_03slv7y._.js +1 -1
  449. package/runtime/hub/apps/hub/.next/server/chunks/_03u-l9s._.js +1 -1
  450. package/runtime/hub/apps/hub/.next/server/chunks/_048yy7t._.js +1 -1
  451. package/runtime/hub/apps/hub/.next/server/chunks/_05_hmgg._.js +1 -1
  452. package/runtime/hub/apps/hub/.next/server/chunks/_08cr70o._.js +1 -1
  453. package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +1 -1
  454. package/runtime/hub/apps/hub/.next/server/chunks/_09bu8dh._.js +1 -1
  455. package/runtime/hub/apps/hub/.next/server/chunks/_0_2z437._.js +1 -1
  456. package/runtime/hub/apps/hub/.next/server/chunks/_0_s1tx9._.js +1 -1
  457. package/runtime/hub/apps/hub/.next/server/chunks/_0_ue2iy._.js +1 -1
  458. package/runtime/hub/apps/hub/.next/server/chunks/_0b6vmhh._.js +1 -1
  459. package/runtime/hub/apps/hub/.next/server/chunks/_0bxg62j._.js +1 -1
  460. package/runtime/hub/apps/hub/.next/server/chunks/_0cc3kcz._.js +1 -1
  461. package/runtime/hub/apps/hub/.next/server/chunks/_0ccgezr._.js +1 -1
  462. package/runtime/hub/apps/hub/.next/server/chunks/_0e50cwx._.js +1 -1
  463. package/runtime/hub/apps/hub/.next/server/chunks/_0ek1dkx._.js +1 -1
  464. package/runtime/hub/apps/hub/.next/server/chunks/_0g94rtj._.js +1 -1
  465. package/runtime/hub/apps/hub/.next/server/chunks/_0hwl0oy._.js +1 -1
  466. package/runtime/hub/apps/hub/.next/server/chunks/_0ihch2c._.js +1 -1
  467. package/runtime/hub/apps/hub/.next/server/chunks/_0jal0nm._.js +1 -1
  468. package/runtime/hub/apps/hub/.next/server/chunks/_0jvwv07._.js +1 -1
  469. package/runtime/hub/apps/hub/.next/server/chunks/_0mpj2yt._.js +1 -1
  470. package/runtime/hub/apps/hub/.next/server/chunks/_0n22m88._.js +1 -1
  471. package/runtime/hub/apps/hub/.next/server/chunks/_0ndtf84._.js +1 -1
  472. package/runtime/hub/apps/hub/.next/server/chunks/_0o1r-if._.js +1 -1
  473. package/runtime/hub/apps/hub/.next/server/chunks/_0opn03l._.js +1 -1
  474. package/runtime/hub/apps/hub/.next/server/chunks/_0p-2n50._.js +1 -1
  475. package/runtime/hub/apps/hub/.next/server/chunks/_0qf4357._.js +1 -1
  476. package/runtime/hub/apps/hub/.next/server/chunks/_0tbb47v._.js +1 -1
  477. package/runtime/hub/apps/hub/.next/server/chunks/_0ubchhn._.js +1 -1
  478. package/runtime/hub/apps/hub/.next/server/chunks/_0ul-64a._.js +1 -1
  479. package/runtime/hub/apps/hub/.next/server/chunks/_0v--tpg._.js +1 -1
  480. package/runtime/hub/apps/hub/.next/server/chunks/_0v3xwi-._.js +1 -1
  481. package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +42 -40
  482. package/runtime/hub/apps/hub/.next/server/chunks/_0y497n2._.js +1 -1
  483. package/runtime/hub/apps/hub/.next/server/chunks/_0zvfiwd._.js +1 -1
  484. package/runtime/hub/apps/hub/.next/server/chunks/_100tsj5._.js +1 -1
  485. package/runtime/hub/apps/hub/.next/server/chunks/_11-rqgb._.js +1 -1
  486. package/runtime/hub/apps/hub/.next/server/chunks/_113fejt._.js +1 -1
  487. package/runtime/hub/apps/hub/.next/server/chunks/_12juepz._.js +1 -1
  488. package/runtime/hub/apps/hub/.next/server/chunks/_12w22u2._.js +1 -1
  489. package/runtime/hub/apps/hub/.next/server/chunks/_134-gub._.js +1 -1
  490. package/runtime/hub/apps/hub/.next/server/chunks/_14kba0u._.js +1 -1
  491. package/runtime/hub/apps/hub/.next/server/chunks/_16ec74_._.js +1 -1
  492. package/runtime/hub/apps/hub/.next/server/chunks/_17ntgn8._.js +1 -1
  493. package/runtime/hub/apps/hub/.next/server/chunks/_1c27mjg._.js +1 -1
  494. package/runtime/hub/apps/hub/.next/server/chunks/_1c4zrlu._.js +1 -1
  495. package/runtime/hub/apps/hub/.next/server/chunks/_1cmknl6._.js +1 -1
  496. package/runtime/hub/apps/hub/.next/server/chunks/_1g8ctu7._.js +1 -1
  497. package/runtime/hub/apps/hub/.next/server/chunks/_1grz1bu._.js +1 -1
  498. package/runtime/hub/apps/hub/.next/server/chunks/_1itx6m_._.js +1 -1
  499. package/runtime/hub/apps/hub/.next/server/chunks/_1jaoh3w._.js +1 -1
  500. package/runtime/hub/apps/hub/.next/server/chunks/_1ktt212._.js +1 -1
  501. package/runtime/hub/apps/hub/.next/server/chunks/_1ldaou_._.js +1 -1
  502. package/runtime/hub/apps/hub/.next/server/chunks/_1n3e-p-._.js +1 -1
  503. package/runtime/hub/apps/hub/.next/server/chunks/_1onbxt8._.js +1 -1
  504. package/runtime/hub/apps/hub/.next/server/chunks/_1pudgbl._.js +1 -1
  505. package/runtime/hub/apps/hub/.next/server/chunks/_1qmsz02._.js +1 -1
  506. package/runtime/hub/apps/hub/.next/server/chunks/_1r3ah1o._.js +1 -1
  507. package/runtime/hub/apps/hub/.next/server/chunks/_1t24c_5._.js +1 -1
  508. package/runtime/hub/apps/hub/.next/server/chunks/_1vv20kp._.js +1 -1
  509. package/runtime/hub/apps/hub/.next/server/chunks/_1whgbe7._.js +1 -1
  510. package/runtime/hub/apps/hub/.next/server/chunks/_1wj2dpr._.js +1 -1
  511. package/runtime/hub/apps/hub/.next/server/chunks/_1wsllw4._.js +1 -1
  512. package/runtime/hub/apps/hub/.next/server/chunks/_1yk56nw._.js +1 -1
  513. package/runtime/hub/apps/hub/.next/server/chunks/_1yumxg7._.js +1 -1
  514. package/runtime/hub/apps/hub/.next/server/chunks/_1zlfubf._.js +1 -1
  515. package/runtime/hub/apps/hub/.next/server/chunks/_204rqiz._.js +1 -1
  516. package/runtime/hub/apps/hub/.next/server/chunks/_2056rpg._.js +1 -1
  517. package/runtime/hub/apps/hub/.next/server/chunks/_2056tby._.js +1 -1
  518. package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +13 -13
  519. package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +1 -1
  520. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0515n2f._.js +1 -1
  521. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0h3qrm-._.js +3 -0
  522. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0o-fklw._.js +3 -0
  523. package/runtime/hub/apps/hub/.next/server/chunks/ssr/{[root-of-the-server]__0m1akem._.js → [root-of-the-server]__1jkmxi2._.js} +2 -2
  524. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +1 -1
  525. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kzd494._.js +1 -1
  526. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +1 -1
  527. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +1 -1
  528. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +33 -31
  529. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1hrzkwr._.js +1 -1
  530. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0j5-o0f._.js +1 -1
  531. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_17myqp5._.js +1 -1
  532. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +1 -1
  533. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +1 -1
  534. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +1 -1
  535. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
  536. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +1 -1
  537. package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_page_tsx_0o2z21l._.js +1 -1
  538. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +1 -1
  539. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  540. package/runtime/hub/apps/hub/.next/server/next-font-manifest.js +1 -1
  541. package/runtime/hub/apps/hub/.next/server/next-font-manifest.json +27 -27
  542. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  543. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -1
  544. package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +19 -19
  545. package/runtime/hub/apps/hub/.next/static/chunks/{2hxatwkh8fha9.js → 02sqxeus8w0s0.js} +1 -1
  546. package/runtime/hub/apps/hub/.next/static/chunks/{0tmbn9jje8ulx.js → 03ceb0qh4s52a.js} +1 -1
  547. package/runtime/hub/apps/hub/.next/static/chunks/{03_fxfc3849ms.css → 0ofk3im5p6gn-.css} +2 -2
  548. package/runtime/hub/apps/hub/.next/static/chunks/{38dg0m6sbz8hx.js → 0qhuf1a_7byq-.js} +1 -1
  549. package/runtime/hub/apps/hub/.next/static/chunks/{05dzzanyo20wx.js → 0u50pq99k9z_4.js} +1 -1
  550. package/runtime/hub/apps/hub/.next/static/chunks/{27t0b0mja1zpt.js → 0x0l4io4rdmuq.js} +1 -1
  551. package/runtime/hub/apps/hub/.next/static/chunks/{1ct_kocalf1mw.js → 22rj-g4qe8jny.js} +1 -1
  552. package/runtime/hub/apps/hub/.next/static/chunks/{22fqc0ktzjo6x.js → 23kzsoacq647n.js} +1 -1
  553. package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.1iu7q7yw-zhgt.woff2 +0 -0
  554. package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.26axk51fv0nvx.woff2 +0 -0
  555. package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.17c61zbdzi3u-.woff2 +0 -0
  556. package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.1at6z4kbofh3w.woff2 +0 -0
  557. package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1h7k3aqd68qji.woff2 +0 -0
  558. package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.0g4pmka8j2u20.woff2 +0 -0
  559. package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.07-q_h5lq3omo.woff2 +0 -0
  560. package/runtime/hub/apps/hub/.next/static/media/77ce6907447ba740-s.1thpl3j71vtxe.woff2 +0 -0
  561. package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.30xqm3yldpj47.woff2 +0 -0
  562. package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.13qpbrx2rg1iz.woff2 +0 -0
  563. package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.42z9vm7u0i9n-.woff2 +0 -0
  564. package/runtime/hub/apps/hub/.next/static/media/bfc9b7e66b1caeca-s.3hdclex1x_th1.woff2 +0 -0
  565. package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.1v7x_qdpnbwoz.woff2 +0 -0
  566. package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.27korwsf9c79u.woff2 +0 -0
  567. package/runtime/hub/apps/hub/.next/static/media/f7cb89c1bcef4d27-s.3ajilh452uwtx.woff2 +0 -0
  568. package/runtime/hub/apps/hub/{auth-3K7Z7LVZ.js → auth-475LXXJA.js} +2 -2
  569. package/runtime/hub/apps/hub/{auth-config-G23WLTGN.js → auth-config-SPDXLHDX.js} +2 -2
  570. package/runtime/hub/apps/hub/{chunk-GGYNXEOD.js → chunk-3WRZVFOY.js} +521 -189
  571. package/runtime/hub/apps/hub/{chunk-RNUUXV2X.js → chunk-67LASBXO.js} +107 -42
  572. package/runtime/hub/apps/hub/{chunk-VQUZQ5MH.js → chunk-6ND54VG2.js} +161 -7
  573. package/runtime/hub/apps/hub/{chunk-7B4VZTUH.js → chunk-7XCRB6GS.js} +96 -82
  574. package/runtime/hub/apps/hub/{chunk-BEK5SYX5.js → chunk-DAMV47HM.js} +6 -0
  575. package/runtime/hub/apps/hub/{chunk-RAIBV7TH.js → chunk-FPLCH64R.js} +1 -1
  576. package/runtime/hub/apps/hub/{chunk-64GCEGJK.js → chunk-KJHUOHQ5.js} +4 -4
  577. package/runtime/hub/apps/hub/{chunk-OWAJTG3G.js → chunk-XGNMYL3X.js} +11 -11
  578. package/runtime/hub/apps/hub/{chunk-FWMBOJTZ.js → chunk-YBYUNY5P.js} +7 -7
  579. package/runtime/hub/apps/hub/{chunk-L5XPW2AU.js → chunk-ZVLJG772.js} +24 -71
  580. package/runtime/hub/apps/hub/{dist-QXOLLT4Y.js → dist-2KUVFXS3.js} +19 -9
  581. package/runtime/hub/apps/hub/{dist-D4JO7PAL.js → dist-2PUSTW2W.js} +1 -1
  582. package/runtime/hub/apps/hub/{dist-I5V4YM32.js → dist-67P6KLUY.js} +2 -2
  583. package/runtime/hub/apps/hub/dist-7PN6FTJV.js +26176 -0
  584. package/runtime/hub/apps/hub/{dist-BX2OAELL.js → dist-O53WU2K6.js} +11 -3
  585. package/runtime/hub/apps/hub/{dist-4GYSUKN3.js → dist-ODKJZJI2.js} +7 -7
  586. package/runtime/hub/apps/hub/{dist-R7ZY7ZTV.js → dist-SUHXQDYN.js} +26 -6
  587. package/runtime/hub/apps/hub/{dist-IHHRC4JW.js → dist-UMA73Z3V.js} +7 -7
  588. package/runtime/hub/apps/hub/{dist-LZWGXCOQ.js → dist-VHXEBJX5.js} +9 -7
  589. package/runtime/hub/apps/hub/{dist-TWRKOELH.js → dist-XOMGXTMI.js} +26 -71
  590. package/runtime/hub/apps/hub/{dist-33UWJJFG.js → dist-ZSRBJAWL.js} +27 -10
  591. package/runtime/hub/apps/hub/{hub-token-EIS7FVL2.js → hub-token-VMKQH4IY.js} +2 -2
  592. package/runtime/hub/apps/hub/{hub-worker-2LVMIS5H.js → hub-worker-5WDNMFCP.js} +9 -9
  593. package/runtime/hub/apps/hub/{manager-pty-XCGH6AUC-VJSNM3A6.js → manager-pty-XCGH6AUC-ZYM2ENVR.js} +4 -4
  594. package/runtime/hub/apps/hub/package.json +2 -1
  595. package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-LZNKUFC7.js → prepared-state-FO74QUCP-L5OKEU42.js} +4 -4
  596. package/runtime/hub/apps/hub/server.js +296 -123
  597. package/runtime/relay/bin.cjs +131 -33
  598. package/runtime/vercel/ctl.cjs +138 -40
  599. package/dist/_cloud-attach-F25HDXWB.js +0 -32
  600. package/dist/chunk-3HJQZQ76.js.map +0 -1
  601. package/dist/chunk-52OXHGKQ.js.map +0 -1
  602. package/dist/chunk-7AMMBUEW.js.map +0 -1
  603. package/dist/chunk-AXAMPAP3.js.map +0 -1
  604. package/dist/chunk-FM7PHYBD.js.map +0 -1
  605. package/dist/chunk-HS6B3CE4.js.map +0 -1
  606. package/dist/chunk-IJFP7N34.js.map +0 -1
  607. package/dist/chunk-KWDFEQO6.js.map +0 -1
  608. package/dist/chunk-OVLM2EZV.js.map +0 -1
  609. package/dist/chunk-R7J7WFM5.js.map +0 -1
  610. package/dist/chunk-U4Z5OOOD.js.map +0 -1
  611. package/dist/chunk-U7J7JT6R.js.map +0 -1
  612. package/dist/chunk-WJ4MZESJ.js.map +0 -1
  613. package/dist/chunk-YZZKWZO2.js.map +0 -1
  614. package/dist/chunk-Z6LK4P54.js.map +0 -1
  615. package/dist/custody-client-F3OAOAC7.js +0 -18
  616. package/dist/dist-XZXZSTTA.js.map +0 -1
  617. package/dist/hub-GHFEW3K2.js +0 -40
  618. package/dist/prepare-O4BUJIOQ.js +0 -48
  619. package/dist/prepared-custody-UTSSUTXF.js +0 -40
  620. package/dist/registry-IPDCZDNW.js +0 -18
  621. package/dist/relay-P5CXEGAZ.js +0 -23
  622. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-0scfb._.js +0 -3
  623. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00a4c3f._.js +0 -3
  624. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00tx9tm._.js +0 -3
  625. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02-rdq0._.js +0 -3
  626. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02kc2og._.js +0 -3
  627. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02sueng._.js +0 -3
  628. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02ywgcg._.js +0 -3
  629. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03_xi2c._.js +0 -3
  630. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03fxkqp._.js +0 -3
  631. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04-i6rm._.js +0 -3
  632. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04b75a4._.js +0 -3
  633. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04d3pe5._.js +0 -3
  634. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05_wgfq._.js +0 -3
  635. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__071c-t4._.js +0 -3
  636. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07fobp5._.js +0 -3
  637. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__081d104._.js +0 -3
  638. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08h5jgt._.js +0 -3
  639. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09grt_m._.js +0 -3
  640. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09jbqbh._.js +0 -3
  641. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09y4pdw._.js +0 -3
  642. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_t5f3m._.js +0 -3
  643. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_xcmfv._.js +0 -3
  644. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a6e0vs._.js +0 -3
  645. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a8ere2._.js +0 -3
  646. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0azx8z8._.js +0 -3
  647. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bok80z._.js +0 -3
  648. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bv_k0d._.js +0 -3
  649. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c1o4qr._.js +0 -3
  650. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c5mzbr._.js +0 -3
  651. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cc5lpl._.js +0 -3
  652. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ce13qa._.js +0 -3
  653. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cyy9az._.js +0 -3
  654. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d34880._.js +0 -3
  655. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dfvo5-._.js +0 -3
  656. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dtq9pr._.js +0 -3
  657. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dw7c0k._.js +0 -3
  658. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e6_t-d._.js +0 -3
  659. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0edd68z._.js +0 -3
  660. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0engd-e._.js +0 -3
  661. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eua3wn._.js +0 -3
  662. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ewh0df._.js +0 -3
  663. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_4fiu._.js +0 -3
  664. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fkjz20._.js +0 -3
  665. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fknr6k._.js +0 -3
  666. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fxx69a._.js +0 -3
  667. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0g7gynv._.js +0 -3
  668. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gl-4ha._.js +0 -3
  669. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gr6v_i._.js +0 -3
  670. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h181r5._.js +0 -3
  671. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h668tm._.js +0 -3
  672. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i65ptk._.js +0 -3
  673. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0iyr5bm._.js +0 -3
  674. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j0vl7q._.js +0 -3
  675. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jvk7x8._.js +0 -3
  676. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jz3x26._.js +0 -3
  677. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0k_7aj_._.js +0 -3
  678. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lc-j_n._.js +0 -3
  679. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mid58_._.js +0 -3
  680. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mq5e3o._.js +0 -3
  681. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0n5hh_2._.js +0 -3
  682. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0neufba._.js +0 -3
  683. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nqggrc._.js +0 -3
  684. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nx6w0m._.js +0 -3
  685. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o4rocd._.js +0 -3
  686. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0olhyt4._.js +0 -3
  687. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pe9g30._.js +0 -3
  688. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pik2ie._.js +0 -3
  689. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qkpqk7._.js +0 -3
  690. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qt_r6a._.js +0 -3
  691. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qudrhk._.js +0 -3
  692. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r0v_c_._.js +0 -3
  693. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r4qvs6._.js +0 -3
  694. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0rf4g7g._.js +0 -3
  695. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s4vdow._.js +0 -3
  696. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s5ck78._.js +0 -3
  697. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0scmgnp._.js +0 -3
  698. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sn7av8._.js +0 -3
  699. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0soiiqi._.js +0 -3
  700. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sz5p6g._.js +0 -3
  701. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tl6p7k._.js +0 -3
  702. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tv5sah._.js +0 -3
  703. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0usxinp._.js +0 -3
  704. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v5krdd._.js +0 -3
  705. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vgxotx._.js +0 -3
  706. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vsn71u._.js +0 -3
  707. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0x5eodh._.js +0 -3
  708. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0x_rx1f._.js +0 -3
  709. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xo5ak-._.js +0 -3
  710. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xt0w30._.js +0 -3
  711. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y-rry-._.js +0 -3
  712. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y3snn7._.js +0 -3
  713. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ygnbei._.js +0 -3
  714. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yio_n7._.js +0 -3
  715. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yxeq50._.js +0 -3
  716. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0z2lkh_._.js +0 -3
  717. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zd42wf._.js +0 -3
  718. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi14f-._.js +0 -3
  719. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zxv1ul._.js +0 -3
  720. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zyutsi._.js +0 -3
  721. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-90xgw._.js +0 -3
  722. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__106reiu._.js +0 -3
  723. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__112hqrh._.js +0 -3
  724. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__113ijth._.js +0 -3
  725. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11qbpq8._.js +0 -3
  726. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11xey3v._.js +0 -3
  727. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__121vdp5._.js +0 -3
  728. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12b40mo._.js +0 -3
  729. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12i61td._.js +0 -3
  730. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12tjfss._.js +0 -3
  731. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__139ha9-._.js +0 -3
  732. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13dk6en._.js +0 -3
  733. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13j6tof._.js +0 -3
  734. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13nfpq5._.js +0 -3
  735. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14opl53._.js +0 -3
  736. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14pxg1e._.js +0 -3
  737. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15gc6-s._.js +0 -3
  738. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15k2wx5._.js +0 -3
  739. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15umca-._.js +0 -3
  740. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__162e1zj._.js +0 -3
  741. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__166_uek._.js +0 -3
  742. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16pmnr6._.js +0 -3
  743. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__174fgjv._.js +0 -3
  744. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17df14g._.js +0 -3
  745. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17jzikc._.js +0 -3
  746. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17y9pmx._.js +0 -3
  747. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18pwzaw._.js +0 -3
  748. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__192ppv6._.js +0 -3
  749. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__198-esg._.js +0 -3
  750. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19al998._.js +0 -3
  751. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19m88da._.js +0 -3
  752. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19nlcuf._.js +0 -3
  753. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_4v0mh._.js +0 -3
  754. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_dmv53._.js +0 -3
  755. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_xgm2e._.js +0 -3
  756. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_zs8b5._.js +0 -3
  757. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1abclgc._.js +0 -3
  758. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1aboxh4._.js +0 -3
  759. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bh1dxz._.js +0 -3
  760. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cb0_wq._.js +0 -3
  761. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cbn_et._.js +0 -3
  762. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cggpv7._.js +0 -3
  763. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cnhbta._.js +0 -3
  764. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cpqqag._.js +0 -3
  765. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cs6d52._.js +0 -3
  766. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d-v8kt._.js +0 -3
  767. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d-yop_._.js +0 -3
  768. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d60scp._.js +0 -3
  769. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dhzd1_._.js +0 -3
  770. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1diw0ei._.js +0 -3
  771. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dogvkr._.js +0 -3
  772. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ectuq4._.js +0 -3
  773. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ehcanu._.js +0 -3
  774. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1em476i._.js +0 -3
  775. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9l4qz._.js +0 -3
  776. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4akof._.js +0 -3
  777. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i9bs12._.js +0 -3
  778. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jbtokr._.js +0 -3
  779. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jelopi._.js +0 -3
  780. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jnfrsy._.js +0 -3
  781. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1k934r7._.js +0 -3
  782. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kt9_sy._.js +0 -3
  783. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kv_jgw._.js +0 -3
  784. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1l_uof1._.js +0 -3
  785. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lareew._.js +0 -3
  786. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lgn5_b._.js +0 -3
  787. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lnherq._.js +0 -3
  788. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lyqerb._.js +0 -3
  789. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1me3irq._.js +0 -3
  790. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mh1-lh._.js +0 -3
  791. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mk_lpu._.js +0 -3
  792. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1muxcy9._.js +0 -3
  793. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mx0_-f._.js +0 -3
  794. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1no5aw3._.js +0 -3
  795. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1noanyg._.js +0 -3
  796. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ntihlm._.js +0 -3
  797. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ob9yn9._.js +0 -3
  798. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1odu62n._.js +0 -3
  799. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1oy_ypa._.js +0 -3
  800. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1p6khix._.js +0 -3
  801. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pg2kzv._.js +0 -3
  802. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pk410t._.js +0 -3
  803. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pta31u._.js +0 -3
  804. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pz2967._.js +0 -3
  805. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9ds80._.js +0 -3
  806. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qt1i63._.js +0 -3
  807. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rr4obb._.js +0 -3
  808. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rzg628._.js +0 -3
  809. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sdw2ls._.js +0 -3
  810. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1szemyb._.js +0 -3
  811. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1t88a94._.js +0 -3
  812. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1tfkm3m._.js +0 -3
  813. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1txvsbk._.js +0 -3
  814. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1uhiv-4._.js +0 -3
  815. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1utvnlp._.js +0 -3
  816. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vc_bp9._.js +0 -3
  817. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1w25h0t._.js +0 -3
  818. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wc9zwl._.js +0 -3
  819. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ws4ucz._.js +0 -3
  820. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wx5ltv._.js +0 -3
  821. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xi8hyy._.js +0 -3
  822. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xl-uhz._.js +0 -3
  823. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xlddup._.js +0 -3
  824. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y3gko6._.js +0 -3
  825. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y9wbb2._.js +0 -3
  826. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ypmy86._.js +0 -3
  827. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ysubik._.js +0 -3
  828. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yzmh_p._.js +0 -3
  829. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z7mgd6._.js +0 -3
  830. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ztoaz1._.js +0 -3
  831. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__2019yzl._.js +0 -3
  832. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20opvks._.js +0 -3
  833. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ygien._.js +0 -3
  834. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0bv8m80._.js +0 -3
  835. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1ay9-4x._.js +0 -3
  836. package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.29yke99gs9qpn.woff2 +0 -0
  837. package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.0o-3_g79811ob.woff2 +0 -0
  838. package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.226pwps5o-gq_.woff2 +0 -0
  839. package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.15orukf5wyxb5.woff2 +0 -0
  840. package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1u30mmyq6lnsd.woff2 +0 -0
  841. package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.2vemzm0itqzfy.woff2 +0 -0
  842. package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.1i-sca43-qwng.woff2 +0 -0
  843. package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.40sczeszzbjw1.woff2 +0 -0
  844. package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.0ngr-xkgqz1kf.woff2 +0 -0
  845. package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.1qc6dx89jd2qv.woff2 +0 -0
  846. package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.3cb5lpr2l6xud.woff2 +0 -0
  847. package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.0oace-s_gkfks.woff2 +0 -0
  848. package/runtime/hub/apps/hub/dist-25JLZKGB.js +0 -1278
  849. /package/dist/{_cloud-attach-F25HDXWB.js.map → _cloud-attach-KEFEQ2YH.js.map} +0 -0
  850. /package/dist/{chunk-L55DASHB.js.map → chunk-2SKTXZGX.js.map} +0 -0
  851. /package/dist/{chunk-BKOKMZNK.js.map → chunk-3QTWB66F.js.map} +0 -0
  852. /package/dist/{chunk-VSWIJHCH.js.map → chunk-5ZBNVZSU.js.map} +0 -0
  853. /package/dist/{chunk-IX7S6NJR.js.map → chunk-72LKKHPI.js.map} +0 -0
  854. /package/dist/{chunk-7TPGIQOP.js.map → chunk-BORN6FJK.js.map} +0 -0
  855. /package/dist/{chunk-77IAHAQY.js.map → chunk-FBQC6TKM.js.map} +0 -0
  856. /package/dist/{chunk-JUTAYI2N.js.map → chunk-GCUJUUNE.js.map} +0 -0
  857. /package/dist/{chunk-S77B5POZ.js.map → chunk-GKBAEX2P.js.map} +0 -0
  858. /package/dist/{chunk-XKUF67M6.js.map → chunk-GT7VDGNV.js.map} +0 -0
  859. /package/dist/{chunk-AGHR7XOJ.js.map → chunk-HOJKUVH6.js.map} +0 -0
  860. /package/dist/{chunk-PENAXZMR.js.map → chunk-INJIW6PP.js.map} +0 -0
  861. /package/dist/{chunk-OYWP4SII.js.map → chunk-IZPNDZXI.js.map} +0 -0
  862. /package/dist/{chunk-U3BCLGTH.js.map → chunk-JHS4ROJH.js.map} +0 -0
  863. /package/dist/{chunk-CWN4DJYI.js.map → chunk-JVZZPJ2C.js.map} +0 -0
  864. /package/dist/{chunk-KOGQNHV3.js.map → chunk-KA67IGEG.js.map} +0 -0
  865. /package/dist/{chunk-OTAYAFYF.js.map → chunk-KRF2JODE.js.map} +0 -0
  866. /package/dist/{chunk-SDWKZLGP.js.map → chunk-LFMJXQDL.js.map} +0 -0
  867. /package/dist/{chunk-2U4HKKM7.js.map → chunk-NSYCXUN5.js.map} +0 -0
  868. /package/dist/{chunk-5JDGKHWH.js.map → chunk-QALBGVPR.js.map} +0 -0
  869. /package/dist/{chunk-JCDC5S32.js.map → chunk-QDBDDJKT.js.map} +0 -0
  870. /package/dist/{chunk-ZPFTFIKP.js.map → chunk-S5WFZHC5.js.map} +0 -0
  871. /package/dist/{chunk-PVZUQTLW.js.map → chunk-VUTEVIYG.js.map} +0 -0
  872. /package/dist/{chunk-OWCTDO67.js.map → chunk-WVBTRK6R.js.map} +0 -0
  873. /package/dist/{chunk-4IQGL4KD.js.map → chunk-ZMKRUD6J.js.map} +0 -0
  874. /package/dist/{chunk-J2AD7MLR.js.map → chunk-ZQWOZ5BL.js.map} +0 -0
  875. /package/dist/{cli-3WZP5JHA.js.map → cli-B4VVKKYV.js.map} +0 -0
  876. /package/dist/{cli-6IPZVUXF.js.map → cli-ENMWXMKO.js.map} +0 -0
  877. /package/dist/{cli-E2ZC5S4U.js.map → cli-F2UBHH7H.js.map} +0 -0
  878. /package/dist/{cli-QIBPY2HQ.js.map → cli-JKSQBGRO.js.map} +0 -0
  879. /package/dist/{cli-QSV6K33P.js.map → cli-MIIWRJDK.js.map} +0 -0
  880. /package/dist/{control-plane-I2QKMHPK.js.map → control-plane-R4ELXZHL.js.map} +0 -0
  881. /package/dist/{cp-hub-upload-GW566DGZ.js.map → cp-hub-upload-IUQVJGOW.js.map} +0 -0
  882. /package/dist/{custody-client-F3OAOAC7.js.map → custody-client-PVDBOT7Y.js.map} +0 -0
  883. /package/dist/{deploy-hetzner-IIAXES7B.js.map → deploy-hetzner-KY6KWN4M.js.map} +0 -0
  884. /package/dist/{dist-3EZQDIOD.js.map → dist-2QGMP2UI.js.map} +0 -0
  885. /package/dist/{dist-44RSFOGQ.js.map → dist-5MCQFGLX.js.map} +0 -0
  886. /package/dist/{dist-4K66F4UR.js.map → dist-EIVYC2MR.js.map} +0 -0
  887. /package/dist/{dist-VKKHIHCZ.js.map → dist-JWXPKGPZ.js.map} +0 -0
  888. /package/dist/{dist-5RMJLMYG.js.map → dist-ONAAPVBD.js.map} +0 -0
  889. /package/dist/{dist-HIQCE4H2.js.map → dist-OXLTCVA2.js.map} +0 -0
  890. /package/dist/{dist-IXPKVU3R.js.map → dist-PBO4UHJK.js.map} +0 -0
  891. /package/dist/{dist-SZTW3RMB.js.map → dist-RCBMUPVR.js.map} +0 -0
  892. /package/dist/{dist-WR2HYACA.js.map → dist-TD74GXLP.js.map} +0 -0
  893. /package/dist/{dist-WTPYXNRH.js.map → dist-VCZ3LZPJ.js.map} +0 -0
  894. /package/dist/{dist-YED5YJQN.js.map → dist-WGV7LRDC.js.map} +0 -0
  895. /package/dist/{host-reach-drainer-A4ZO6UKT.js.map → host-reach-drainer-AZYC6UIB.js.map} +0 -0
  896. /package/dist/{host-session-POJP4WO6.js.map → host-session-EGUDGE4R.js.map} +0 -0
  897. /package/dist/{hub-GHFEW3K2.js.map → hub-76RHPA7X.js.map} +0 -0
  898. /package/dist/{hub-adopt-YR7S5TNB.js.map → hub-adopt-5G7SKI2E.js.map} +0 -0
  899. /package/dist/{hub-api-client-BUQDTSQ3.js.map → hub-api-client-WPZTG5AT.js.map} +0 -0
  900. /package/dist/{hub-docker-target-XA5U2ZU5.js.map → hub-docker-target-CNJHYH4B.js.map} +0 -0
  901. /package/dist/{manager-pty-XCGH6AUC-EZML75UO.js.map → manager-pty-XCGH6AUC-O3UNISN2.js.map} +0 -0
  902. /package/dist/{plugin-update-BIPJZA24.js.map → plugin-update-UZYPWL4N.js.map} +0 -0
  903. /package/dist/{prepare-O4BUJIOQ.js.map → prepare-4GOTJXQL.js.map} +0 -0
  904. /package/dist/{prepared-custody-UTSSUTXF.js.map → prepared-custody-4YJ4ZT7J.js.map} +0 -0
  905. /package/dist/{prepared-state-FO74QUCP-4WLAYPEO.js.map → prepared-state-FO74QUCP-GUIPQORN.js.map} +0 -0
  906. /package/dist/{publish-credentials-N2JD2D3A.js.map → publish-credentials-RLRLNL33.js.map} +0 -0
  907. /package/dist/{registry-IPDCZDNW.js.map → registry-QMHCNR5X.js.map} +0 -0
  908. /package/dist/{relay-P5CXEGAZ.js.map → relay-VBWFCWKK.js.map} +0 -0
  909. /package/dist/{remote-docker-share-GIH6JNKY.js.map → remote-docker-share-TKG7SXHX.js.map} +0 -0
  910. /package/dist/{tool-grant-push-7K765QKW.js.map → tool-grant-push-V7E3Y2W6.js.map} +0 -0
  911. /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_buildManifest.js +0 -0
  912. /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_clientMiddlewareManifest.js +0 -0
  913. /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_ssgManifest.js +0 -0
@@ -6,8 +6,10 @@ import {
6
6
  createDockerSyncTransport,
7
7
  ensureVolume,
8
8
  extractVolumeAuthToBackup,
9
+ stageLoopbackOverlay,
10
+ tmuxSessionEnvArgs,
9
11
  volumeExists
10
- } from "./chunk-HS6B3CE4.js";
12
+ } from "./chunk-PJCIZLIX.js";
11
13
  import {
12
14
  BOX_WORKSPACE,
13
15
  TeleportError,
@@ -17,40 +19,93 @@ import {
17
19
  log2,
18
20
  spinner3,
19
21
  withLoginDefaults
20
- } from "./chunk-AXAMPAP3.js";
22
+ } from "./chunk-7ELRQNNH.js";
21
23
  import {
22
24
  ensureImage
23
- } from "./chunk-L55DASHB.js";
25
+ } from "./chunk-2SKTXZGX.js";
24
26
  import {
25
27
  AgentInstallError,
28
+ emptyResult,
26
29
  ensureAgentInstalled,
27
- resolveAgentSpec
28
- } from "./chunk-U7J7JT6R.js";
30
+ resolveAgentSpec,
31
+ stageAgentStaticForUpload,
32
+ stageSingleFileTarball
33
+ } from "./chunk-G35FJ4KT.js";
29
34
  import {
30
35
  agentConfigVolume,
31
- agentPushExcludes,
32
- requireAgentCredential
33
- } from "./chunk-FM7PHYBD.js";
36
+ formatLoopbackUnreachable,
37
+ providerWarning,
38
+ requireAgentCredential,
39
+ scanLoopbackJsonFiles
40
+ } from "./chunk-NEU5B2VO.js";
34
41
 
35
- // ../../packages/agent-pi/dist/chunk-HHK4TF6T.js
36
- import { spawnSync } from "child_process";
37
- import { stat } from "fs/promises";
42
+ // ../../packages/agent-pi/dist/chunk-PZQ6ISKY.js
43
+ import { homedir as homedir2 } from "os";
44
+ import { join as join2 } from "path";
38
45
  import { homedir } from "os";
39
46
  import { join } from "path";
40
- import { execa } from "execa";
41
47
  import { readFile } from "fs/promises";
48
+ import { spawnSync } from "child_process";
49
+ import { stat } from "fs/promises";
50
+ import { homedir as homedir3 } from "os";
51
+ import { join as join3 } from "path";
52
+ import { execa } from "execa";
53
+ import { lstat, readFile as readFile2, realpath } from "fs/promises";
54
+ import { homedir as homedir4 } from "os";
55
+ import { isAbsolute, join as join4, relative } from "path";
56
+ var PI_ENDPOINT_PATHS = [
57
+ ["providers", "*", "baseUrl"],
58
+ ["providers", "*", "models", "*", "baseUrl"]
59
+ ];
60
+ function piEndpointFiles(hostHome = homedir()) {
61
+ return [
62
+ {
63
+ src: join(hostHome, ".pi", "agent", "models.json"),
64
+ rel: "models.json",
65
+ paths: PI_ENDPOINT_PATHS,
66
+ source: "~/.pi/agent/models.json"
67
+ }
68
+ ];
69
+ }
70
+ async function piAuthFileHasProviders(path) {
71
+ try {
72
+ const parsed = JSON.parse(await readFile(path, "utf8"));
73
+ return typeof parsed === "object" && parsed !== null && Object.keys(parsed).length > 0;
74
+ } catch {
75
+ return false;
76
+ }
77
+ }
78
+ async function stagePiStaticForUpload(opts = {}) {
79
+ const staged = await stageAgentStaticForUpload("pi", opts);
80
+ if (opts.target === "volume") return staged;
81
+ const endpoints = await scanLoopbackJsonFiles(piEndpointFiles(opts.hostHome ?? homedir2()));
82
+ return {
83
+ ...staged,
84
+ warnings: [
85
+ ...staged.warnings,
86
+ ...endpoints.map((e) => providerWarning(formatLoopbackUnreachable("pi", e)))
87
+ ]
88
+ };
89
+ }
90
+ async function stagePiCredentialsForUpload(opts = {}) {
91
+ const hostHome = opts.hostHome ?? homedir2();
92
+ const cloudBackup = join2(hostHome, ".agentbox", "pi-credentials.json");
93
+ if (await piAuthFileHasProviders(cloudBackup)) {
94
+ return stageSingleFileTarball("pi-creds", cloudBackup, "auth.json");
95
+ }
96
+ const hostAuth = join2(hostHome, ".pi", "agent", "auth.json");
97
+ if (!await piAuthFileHasProviders(hostAuth)) return emptyResult();
98
+ return stageSingleFileTarball("pi-creds", hostAuth, "auth.json");
99
+ }
42
100
  var PI_SPEC = resolveAgentSpec("pi");
43
101
  var SHARED_PI_VOLUME = PI_SPEC.dockerVolume;
44
102
  var DEFAULT_PI_SESSION = PI_SPEC.sessionName;
45
103
  var CONTAINER_PI_DIR = PI_SPEC.staticPaths[0].boxDir;
46
- var HOST_PI_DIR = join(homedir(), ...PI_SPEC.staticPaths[0].hostHomeRel);
104
+ function hostPiDir(hostHome = homedir3()) {
105
+ return join3(hostHome, ...PI_SPEC.staticPaths[0].hostHomeRel);
106
+ }
47
107
  var PI_BOX_RUN_ENV = PI_SPEC.boxRunEnv;
48
108
  var PI_FORWARDED_ENV_KEYS = PI_SPEC.forwardedEnvKeys;
49
- function configVolumeExcludeFlags() {
50
- const path = PI_SPEC.staticPaths[0];
51
- const derived = path ? agentPushExcludes(PI_SPEC, path, "volume") : [];
52
- return derived.map((p) => `--exclude=${p}`).join(" ");
53
- }
54
109
  function resolvePiVolume(opts) {
55
110
  return { volume: opts.isolate ? `${SHARED_PI_VOLUME}-${opts.boxId}` : SHARED_PI_VOLUME };
56
111
  }
@@ -67,34 +122,67 @@ function shQuote(arg) {
67
122
  if (/^[A-Za-z0-9_\-./=:@%+,]+$/.test(arg)) return arg;
68
123
  return `'${arg.replace(/'/g, `'\\''`)}'`;
69
124
  }
125
+ function buildPiVolumeSyncScript(withOverlay = false) {
126
+ const chown = `chown -R ${CONTAINER_USER}:${CONTAINER_USER} /dst`;
127
+ return [
128
+ "set -e",
129
+ "s=$(mktemp -d)",
130
+ 'tar -xzf - -C "$s" --no-same-owner',
131
+ 'rsync -a "$s"/ /dst/',
132
+ 'rm -rf "$s"',
133
+ ...withOverlay ? ["cp -R /src-endpoints/. /dst/"] : [],
134
+ chown
135
+ ].join("; ");
136
+ }
70
137
  async function ensurePiVolume(spec, opts) {
71
138
  const existed = await volumeExists(spec.volume);
72
139
  await ensureVolume(spec.volume);
73
140
  const created = !existed;
74
141
  const chown = `chown -R ${CONTAINER_USER}:${CONTAINER_USER} /dst`;
75
- if (opts.syncFromHost && await pathExists(HOST_PI_DIR)) {
76
- await execa("docker", [
77
- "run",
78
- "--rm",
79
- "--user",
80
- "0",
81
- "-v",
82
- `${spec.volume}:/dst`,
83
- "-v",
84
- `${HOST_PI_DIR}:/src:ro`,
85
- opts.image,
86
- "sh",
87
- "-c",
88
- `rsync -a ${configVolumeExcludeFlags()} /src/ /dst/ && ${chown}`
89
- ]);
90
- return { created, synced: true };
142
+ if (opts.syncFromHost && await pathExists(hostPiDir(opts.hostHome))) {
143
+ const staged = await stagePiStaticForUpload({
144
+ target: "volume",
145
+ ...opts.hostHome ? { hostHome: opts.hostHome } : {}
146
+ });
147
+ const overlay = await stageLoopbackOverlay(piEndpointFiles(opts.hostHome));
148
+ try {
149
+ if (staged.tarballPath) {
150
+ await execa(
151
+ "docker",
152
+ [
153
+ "run",
154
+ "--rm",
155
+ "-i",
156
+ "--user",
157
+ "0",
158
+ "-v",
159
+ `${spec.volume}:/dst`,
160
+ ...overlay.dir ? ["-v", `${overlay.dir}:/src-endpoints:ro`] : [],
161
+ opts.image,
162
+ "sh",
163
+ "-c",
164
+ buildPiVolumeSyncScript(Boolean(overlay.dir))
165
+ ],
166
+ { inputFile: staged.tarballPath }
167
+ );
168
+ return {
169
+ created,
170
+ synced: true,
171
+ notes: staged.warnings,
172
+ loopbackEndpoints: overlay.endpoints
173
+ };
174
+ }
175
+ } finally {
176
+ await overlay.cleanup();
177
+ await staged.cleanup();
178
+ }
91
179
  }
92
180
  await execa(
93
181
  "docker",
94
182
  ["run", "--rm", "--user", "0", "-v", `${spec.volume}:/dst`, opts.image, "sh", "-c", chown],
95
183
  { reject: false }
96
184
  );
97
- return { created, synced: false };
185
+ return { created, synced: false, notes: [], loopbackEndpoints: [] };
98
186
  }
99
187
  function buildPiMounts(spec, hostEnv) {
100
188
  const env = { ...PI_BOX_RUN_ENV };
@@ -146,6 +234,11 @@ async function startPiSession(opts) {
146
234
  "-d",
147
235
  "-s",
148
236
  sessionName,
237
+ // On the session, not just the exec: when another agent's session already
238
+ // runs, the tmux server exists and a new session inherits ITS environment,
239
+ // not this client's. A box created for another agent never had these set
240
+ // on the container, and without them the synced config is not read.
241
+ ...tmuxSessionEnvArgs(PI_BOX_RUN_ENV),
149
242
  cmd,
150
243
  ...buildTmuxSessionArgs(sessionName)
151
244
  ],
@@ -249,21 +342,97 @@ async function piSessionInfo(container, sessionName) {
249
342
  }
250
343
  return { running: true, sessionName: name, startedAt };
251
344
  }
252
- async function piAuthFileHasProviders(path) {
345
+ var PI_MCP_FILES = ["mcp.json"];
346
+ var SHARED_MCP_REL = [".config", "mcp", "mcp.json"];
347
+ function isUnder(parent, child) {
348
+ const rel = relative(parent, child);
349
+ return rel === "" || !rel.startsWith("..") && !isAbsolute(rel);
350
+ }
351
+ function tilde(hostHome, p) {
352
+ const rel = relative(hostHome, p);
353
+ return rel && !rel.startsWith("..") && !isAbsolute(rel) ? `~/${rel}` : p;
354
+ }
355
+ async function readJsonObject(file) {
253
356
  try {
254
- const parsed = JSON.parse(await readFile(path, "utf8"));
255
- return typeof parsed === "object" && parsed !== null && Object.keys(parsed).length > 0;
357
+ const parsed = JSON.parse(await readFile2(file, "utf8"));
358
+ return parsed && typeof parsed === "object" && !Array.isArray(parsed) ? parsed : null;
359
+ } catch {
360
+ return null;
361
+ }
362
+ }
363
+ function countServers(cfg) {
364
+ if (!cfg) return null;
365
+ for (const key of ["mcpServers", "servers"]) {
366
+ const v = cfg[key];
367
+ if (v && typeof v === "object" && !Array.isArray(v)) return Object.keys(v).length;
368
+ }
369
+ return null;
370
+ }
371
+ function servers(n) {
372
+ if (n === null) return "MCP servers";
373
+ return `${String(n)} MCP server${n === 1 ? "" : "s"}`;
374
+ }
375
+ async function exists(p) {
376
+ try {
377
+ await lstat(p);
378
+ return true;
256
379
  } catch {
257
380
  return false;
258
381
  }
259
382
  }
383
+ async function scanPiMcpConfig(opts = {}) {
384
+ const hostHome = opts.hostHome ?? homedir4();
385
+ const piDir = join4(hostHome, ".pi", "agent");
386
+ const notices = [];
387
+ const keep = "MCP configs can hold secrets, so AgentBox does not copy them; to use those servers in a box, put the ones you need in ~/.pi/agent/mcp.json, or copy the file explicitly with `carry:` in agentbox.yaml.";
388
+ let piDirReal;
389
+ try {
390
+ piDirReal = await realpath(piDir);
391
+ } catch {
392
+ piDirReal = piDir;
393
+ }
394
+ for (const name of PI_MCP_FILES) {
395
+ const file = join4(piDir, name);
396
+ let st;
397
+ try {
398
+ st = await lstat(file);
399
+ } catch {
400
+ continue;
401
+ }
402
+ if (st.isSymbolicLink()) {
403
+ const target = await realpath(file).catch(() => null);
404
+ if (target === null) continue;
405
+ if (!isUnder(piDirReal, target)) {
406
+ const n = countServers(await readJsonObject(file));
407
+ notices.push(
408
+ `pi: ${tilde(hostHome, file)} links to a file outside ~/.pi/agent (${servers(n)}); the box gets a copy of that file, like the rest of ~/.pi/agent.`
409
+ );
410
+ }
411
+ }
412
+ const imports = (await readJsonObject(file))?.["imports"];
413
+ const sources = Array.isArray(imports) ? imports.length : 0;
414
+ if (sources > 0) {
415
+ notices.push(
416
+ `pi: ${tilde(hostHome, file)} imports MCP servers from ${String(sources)} other tool config${sources === 1 ? "" : "s"}; those files are not copied into the box, so the imported servers will be missing there. ${keep}`
417
+ );
418
+ }
419
+ }
420
+ const shared = join4(hostHome, ...SHARED_MCP_REL);
421
+ if (await exists(shared)) {
422
+ const n = countServers(await readJsonObject(shared));
423
+ notices.push(
424
+ `pi: ${tilde(hostHome, shared)} defines ${servers(n)} that are not copied into the box (only ~/.pi/agent is). ${keep}`
425
+ );
426
+ }
427
+ return { notices };
428
+ }
260
429
 
261
430
  // ../../packages/agent-pi/dist/cli/index.js
262
- import { homedir as homedir2 } from "os";
263
- import { join as join2 } from "path";
264
- import { homedir as homedir3 } from "os";
265
- import { join as join3 } from "path";
266
- import { mkdtemp, readdir, readFile as readFile2, stat as stat2, writeFile } from "fs/promises";
431
+ import { homedir as homedir22 } from "os";
432
+ import { join as join22 } from "path";
433
+ import { homedir as homedir5 } from "os";
434
+ import { join as join5 } from "path";
435
+ import { mkdtemp, readdir, readFile as readFile3, stat as stat2, writeFile } from "fs/promises";
267
436
  import { existsSync } from "fs";
268
437
  import { homedir as homedir32, tmpdir } from "os";
269
438
  import { join as join32 } from "path";
@@ -286,7 +455,7 @@ async function piAuthAvailable(image, env = process.env) {
286
455
  for (const k of PI_FORWARDED_ENV_KEYS) {
287
456
  if ((env[k] ?? "").length > 0) return true;
288
457
  }
289
- if (await piAuthFileHasProviders(join3(homedir3(), ".pi", "agent", "auth.json"))) return true;
458
+ if (await piAuthFileHasProviders(join5(homedir5(), ".pi", "agent", "auth.json"))) return true;
290
459
  return volumeHasPiAuth(SHARED_PI_VOLUME, image);
291
460
  }
292
461
  var PI_SPEC2 = resolveAgentSpec("pi");
@@ -329,7 +498,7 @@ async function cloudPiCredAvailable(env = process.env) {
329
498
  for (const k of PI_FORWARDED_ENV_KEYS) {
330
499
  if ((env[k] ?? "").length > 0) return true;
331
500
  }
332
- for (const p of [PI_HOST_BACKUP, join2(homedir2(), ".pi", "agent", "auth.json")]) {
501
+ for (const p of [PI_HOST_BACKUP, join22(homedir22(), ".pi", "agent", "auth.json")]) {
333
502
  if (await piAuthFileHasProviders(p)) return true;
334
503
  }
335
504
  return false;
@@ -393,6 +562,7 @@ var piRuntime = {
393
562
  "Pi login finished but no auth.json was captured \u2014 sign in inside the box if needed."
394
563
  );
395
564
  },
565
+ hostConfigNotices: async () => (await scanPiMcpConfig()).notices,
396
566
  signIn: (image, extraArgs) => signInToPi(image, extraArgs),
397
567
  loginBinding: (o) => piLoginBinding(o),
398
568
  // Pi's login is its TUI; there is no keystroke-free path.
@@ -538,7 +708,7 @@ async function safeReaddir(dir) {
538
708
  async function peekPiHeader(file) {
539
709
  let firstLine;
540
710
  try {
541
- const buf = await readFile2(file, "utf8");
711
+ const buf = await readFile3(file, "utf8");
542
712
  const nl = buf.indexOf("\n");
543
713
  firstLine = nl === -1 ? buf : buf.slice(0, nl);
544
714
  } catch {
@@ -556,7 +726,7 @@ async function peekPiHeader(file) {
556
726
  }
557
727
  }
558
728
  async function rewritePiSession(src, dst) {
559
- const raw = await readFile2(src, "utf8");
729
+ const raw = await readFile3(src, "utf8");
560
730
  const lines = raw.split("\n");
561
731
  const out = [];
562
732
  let headerDone = false;
@@ -592,6 +762,8 @@ var agentModule = defineAgentModule("pi", {
592
762
  });
593
763
 
594
764
  export {
765
+ stagePiStaticForUpload,
766
+ stagePiCredentialsForUpload,
595
767
  DEFAULT_PI_SESSION,
596
768
  resolvePiVolume,
597
769
  ensurePiVolume,
@@ -599,7 +771,6 @@ export {
599
771
  ensurePiInstalled,
600
772
  startPiSession,
601
773
  piSessionInfo,
602
- piAuthFileHasProviders,
603
774
  PI_LOGIN_SPEC,
604
775
  piLoginBinding,
605
776
  piAuthAvailable,
@@ -608,4 +779,4 @@ export {
608
779
  resolvePiTeleport,
609
780
  agentModule
610
781
  };
611
- //# sourceMappingURL=chunk-R7J7WFM5.js.map
782
+ //# sourceMappingURL=chunk-QUBP3AZD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../packages/agent-pi/src/host-stage.ts","../../../packages/agent-pi/src/endpoints.ts","../../../packages/agent-pi/src/auth-shape.ts","../../../packages/agent-pi/src/docker-sync.ts","../../../packages/agent-pi/src/mcp-notice.ts","../../../packages/agent-pi/src/cli/cli-spec.ts","../../../packages/agent-pi/src/cli/runtime.ts","../../../packages/agent-pi/src/cli/login-binding.ts","../../../packages/agent-pi/src/cli/login.ts","../../../packages/agent-pi/src/cli/host-creds.ts","../../../packages/agent-pi/src/cli/module.ts","../../../packages/agent-pi/src/cli/teleport.ts"],"sourcesContent":["/**\n * Pi's host-side staging.\n *\n * The credential stager is Pi's own: preferring the `~/.agentbox` backup over\n * the tool's real path is a rule the generic stager has no way to express. The\n * static half is `staticPaths` data on the generic stager.\n */\n\nimport { homedir } from 'node:os';\nimport { formatLoopbackUnreachable, providerWarning, scanLoopbackJsonFiles } from '@agentbox/core';\nimport { join } from 'node:path';\nimport {\n emptyResult,\n stageAgentStaticForUpload,\n stageSingleFileTarball,\n type StageResult,\n} from '@agentbox/sandbox-core';\nimport type { AgentPushTarget } from '@agentbox/core';\nimport { piEndpointFiles } from './endpoints.js';\nimport { piAuthFileHasProviders } from './auth-shape.js';\n\nexport interface StagePiOptions {\n hostHome?: string;\n}\n\n/**\n * Filtered tarball of Pi's static config, extracting into\n * `/home/vscode/.pi/agent/`. Symlinks are dereferenced on the host, so a skill\n * linked into another host directory arrives as real files, and so does an\n * `mcp.json` that a dotfile manager (stow, chezmoi) made a symlink.\n *\n * One stager for both transports: the cloud bakes / remote-docker seed use the\n * default `'snapshot'` target, the docker volume sync passes `'volume'` (which\n * keeps `auth.json` — that volume is the box's credential store).\n */\nexport async function stagePiStaticForUpload(\n opts: StagePiOptions & { target?: AgentPushTarget } = {},\n): Promise<StageResult> {\n const staged = await stageAgentStaticForUpload('pi', opts);\n // The docker volume sync rewrites loopback endpoints itself (see\n // `ensurePiVolume`); only a cloud/remote box, with no route back to this\n // machine, gets the unreachable warning (#403).\n if (opts.target === 'volume') return staged;\n const endpoints = await scanLoopbackJsonFiles(piEndpointFiles(opts.hostHome ?? homedir()));\n return {\n ...staged,\n warnings: [\n ...staged.warnings,\n ...endpoints.map((e) => providerWarning(formatLoopbackUnreachable('pi', e))),\n ],\n };\n}\n\n/**\n * Tarball with **only** `auth.json`. Prefers the cloud backup\n * `~/.agentbox/pi-credentials.json` (captured from a previous cloud box); falls\n * back to the host's real `~/.pi/agent/auth.json`. Empty when neither exists.\n */\nexport async function stagePiCredentialsForUpload(opts: StagePiOptions = {}): Promise<StageResult> {\n const hostHome = opts.hostHome ?? homedir();\n // Derived from hostHome so the path tracks the active home and tests stay\n // hermetic; production matches the spec's `credential.hostBackup`.\n // Shape, not existence: staging Pi's first-run `{}` would seed every cloud\n // box with an empty credential that looks present and authenticates nothing.\n const cloudBackup = join(hostHome, '.agentbox', 'pi-credentials.json');\n if (await piAuthFileHasProviders(cloudBackup)) {\n return stageSingleFileTarball('pi-creds', cloudBackup, 'auth.json');\n }\n const hostAuth = join(hostHome, '.pi', 'agent', 'auth.json');\n if (!(await piAuthFileHasProviders(hostAuth))) return emptyResult();\n return stageSingleFileTarball('pi-creds', hostAuth, 'auth.json');\n}\n","/**\n * Where Pi keeps model endpoints: `~/.pi/agent/models.json`, per provider\n * (`providers.<id>.baseUrl`) and per model (`providers.<id>.models[].baseUrl`)\n * (#403). `rel` is the file's place in the docker volume, which mirrors\n * `~/.pi/agent`.\n */\n\nimport { homedir } from 'node:os';\nimport { join } from 'node:path';\n\nexport const PI_ENDPOINT_PATHS = [\n ['providers', '*', 'baseUrl'],\n ['providers', '*', 'models', '*', 'baseUrl'],\n] as const;\n\nexport function piEndpointFiles(hostHome: string = homedir()): {\n src: string;\n rel: string;\n paths: typeof PI_ENDPOINT_PATHS;\n source: string;\n}[] {\n return [\n {\n src: join(hostHome, '.pi', 'agent', 'models.json'),\n rel: 'models.json',\n paths: PI_ENDPOINT_PATHS,\n source: '~/.pi/agent/models.json',\n },\n ];\n}\n","/**\n * \"Is this Pi `auth.json` a real login?\" — one implementation, three callers.\n *\n * Pi writes a literal `{}` on first run, BEFORE any provider is added. That\n * makes existence and size useless as sign-in tests: every host that has ever\n * launched Pi looks authenticated. The consequences are silent in both\n * directions — the sign-in offer never appears, and an empty `{}` is staged\n * into the box as if it were a credential.\n *\n * Codex and OpenCode need no equivalent: neither writes an empty auth file, so\n * their `pathExists` checks are correct for them. This is Pi's own quirk, which\n * is why the helper lives in Pi's package rather than being pushed into the\n * shared credential concern.\n */\n\nimport { readFile } from 'node:fs/promises';\n\n/** True when the file parses as JSON and holds at least one provider entry. */\nexport async function piAuthFileHasProviders(path: string): Promise<boolean> {\n try {\n const parsed: unknown = JSON.parse(await readFile(path, 'utf8'));\n return typeof parsed === 'object' && parsed !== null && Object.keys(parsed).length > 0;\n } catch {\n return false;\n }\n}\n","/**\n * Pi's docker behavior.\n *\n * Simpler than OpenCode's in one structural way: Pi keeps everything under a\n * SINGLE root (`~/.pi/agent`), so one volume mounted at that path is the whole\n * layout — no relocated XDG dirs, no `*_CONFIG_DIR` env to set. Every path,\n * exclude and env value below is read from the registry row rather than\n * restated; that is what keeps this in step with the cloud stager.\n */\n\nimport type { LoopbackEndpoint } from '@agentbox/core';\nimport { spawnSync } from 'node:child_process';\nimport { stat } from 'node:fs/promises';\nimport { homedir } from 'node:os';\nimport { join } from 'node:path';\nimport { execa } from 'execa';\nimport {\n buildTermSafeTmuxExec,\n buildTmuxSessionArgs,\n tmuxSessionEnvArgs,\n CONTAINER_USER,\n createDockerSyncTransport,\n ensureVolume,\n volumeExists,\n stageLoopbackOverlay,\n} from '@agentbox/sandbox-docker';\nimport { piEndpointFiles } from './endpoints.js';\nimport { AgentInstallError, ensureAgentInstalled, resolveAgentSpec } from '@agentbox/sandbox-core';\nimport { stagePiStaticForUpload } from './host-stage.js';\n\nconst PI_SPEC = resolveAgentSpec('pi');\n\n/** The shared pi-config volume, from the registry — never a second literal. */\nexport const SHARED_PI_VOLUME = PI_SPEC.dockerVolume;\nexport const DEFAULT_PI_SESSION = PI_SPEC.sessionName;\n/** Volume mount point inside the box — Pi's own config root. */\nconst CONTAINER_PI_DIR = PI_SPEC.staticPaths[0]!.boxDir;\n/** Host source for the push, from the same registry entry. */\nfunction hostPiDir(hostHome: string = homedir()): string {\n return join(hostHome, ...PI_SPEC.staticPaths[0]!.hostHomeRel);\n}\n/** `PI_SKIP_VERSION_CHECK` and friends, as declared. */\nconst PI_BOX_RUN_ENV = PI_SPEC.boxRunEnv;\n\n/**\n * Provider API keys forwarded from the host's `process.env` into the box.\n *\n * Pi resolves a key as `--api-key` -> `auth.json` -> environment -> a custom\n * provider entry, so these are a real fallback for a host that authenticates by\n * env rather than by logging in.\n */\nexport const PI_FORWARDED_ENV_KEYS = PI_SPEC.forwardedEnvKeys;\n\nexport interface PiConfigSpec {\n /** Resolved Docker volume name mounted at Pi's config root. */\n volume: string;\n}\n\nexport function resolvePiVolume(opts: { isolate: boolean; boxId: string }): PiConfigSpec {\n return { volume: opts.isolate ? `${SHARED_PI_VOLUME}-${opts.boxId}` : SHARED_PI_VOLUME };\n}\n\nasync function pathExists(p: string): Promise<boolean> {\n try {\n await stat(p);\n return true;\n } catch {\n return false;\n }\n}\n\n/** Single-quote a token for /bin/sh. Mirrors the helper in the other agents. */\nfunction shQuote(arg: string): string {\n if (arg.length === 0) return `''`;\n if (/^[A-Za-z0-9_\\-./=:@%+,]+$/.test(arg)) return arg;\n return `'${arg.replace(/'/g, `'\\\\''`)}'`;\n}\n\nexport interface EnsurePiVolumeOptions {\n /**\n * When true and the host has a `~/.pi/agent`, rsync host -> volume on every\n * call. Additive (no `--delete`): host files win on overlap, box-only files\n * (an `auth.json` written by an in-box `/login`) are kept.\n */\n syncFromHost: boolean;\n /** Image used by the throwaway sync helper container (the box image). */\n image: string;\n /** Defaults to `homedir()`; a test points it at a fixture home. */\n hostHome?: string;\n}\n\nexport interface EnsurePiVolumeResult {\n /** True only the very first time the volume is created (on this host). */\n created: boolean;\n /** True when the rsync helper ran (syncFromHost AND a host dir existed). */\n synced: boolean;\n /** Non-fatal staging messages (a skipped broken symlink); the create log prints them. */\n notes: string[];\n /** Host-loopback `models.json` `baseUrl` values rewritten to `host.docker.internal` (#403). */\n loopbackEndpoints: LoopbackEndpoint[];\n}\n\n/**\n * The helper's script: unpack the host-staged tarball arriving on stdin, merge\n * it into the volume, hand everything to the box user.\n *\n * WHY A TARBALL ON STDIN AND NOT A `-v ~/.pi/agent:/src` MOUNT. Pi configs\n * routinely make `skills/*` symlinks into other host directories — absolute\n * macOS paths, or targets outside `~/.pi/agent`. Behind a bind mount the\n * helper sees those links with no host path context, so rsync copied them as\n * links and they arrived dangling in the Linux box. Staging on the HOST with\n * `rsync -L` (the same `stagePiStaticForUpload` the cloud bakes use)\n * dereferences each link where its target actually exists, and stdin needs no\n * Docker Desktop file-sharing entry for wherever the targets live.\n *\n * Additive (no `--delete`): host files win on overlap, box-only files (an\n * `auth.json` written by an in-box `/login`) are kept. The excludes were\n * already applied host-side by the stager.\n *\n * `withOverlay`: lay the rewritten endpoint files mounted at `/src-endpoints`\n * over the result, so a host-loopback `baseUrl` reaches the host (#403).\n */\nexport function buildPiVolumeSyncScript(withOverlay = false): string {\n const chown = `chown -R ${CONTAINER_USER}:${CONTAINER_USER} /dst`;\n return [\n 'set -e',\n 's=$(mktemp -d)',\n 'tar -xzf - -C \"$s\" --no-same-owner',\n 'rsync -a \"$s\"/ /dst/',\n 'rm -rf \"$s\"',\n ...(withOverlay ? ['cp -R /src-endpoints/. /dst/'] : []),\n chown,\n ].join('; ');\n}\n\n/**\n * Ensure the pi-config volume exists, then (when `syncFromHost` and the host has\n * Pi state) rsync host -> volume via a throwaway helper. The host is\n * authoritative — same model as the claude/codex/opencode volumes.\n *\n * When there is nothing to sync the volume root is still chowned so a throwaway\n * login container can write into it: a freshly created docker volume is\n * root-owned and the box runs as `vscode`.\n */\nexport async function ensurePiVolume(\n spec: PiConfigSpec,\n opts: EnsurePiVolumeOptions,\n): Promise<EnsurePiVolumeResult> {\n const existed = await volumeExists(spec.volume);\n await ensureVolume(spec.volume);\n const created = !existed;\n\n // `vscode` by NAME, not uid 1000: the uid differs per provider and the helper\n // resolves the name from the box image's own passwd.\n const chown = `chown -R ${CONTAINER_USER}:${CONTAINER_USER} /dst`;\n\n if (opts.syncFromHost && (await pathExists(hostPiDir(opts.hostHome)))) {\n // `'volume'`, not `'snapshot'`: this volume IS the box's credential store,\n // so `auth.json` must land in it. The vendored host-native `fd`/`rg` under\n // `bin/` are dropped by the spec's own exclude list.\n const staged = await stagePiStaticForUpload({\n target: 'volume',\n ...(opts.hostHome ? { hostHome: opts.hostHome } : {}),\n });\n // A loopback `baseUrl` in the host's models.json is rewritten into an\n // overlay laid over the synced copy, so the box reaches the host (#403).\n const overlay = await stageLoopbackOverlay(piEndpointFiles(opts.hostHome));\n try {\n if (staged.tarballPath) {\n await execa(\n 'docker',\n [\n 'run',\n '--rm',\n '-i',\n '--user',\n '0',\n '-v',\n `${spec.volume}:/dst`,\n ...(overlay.dir ? ['-v', `${overlay.dir}:/src-endpoints:ro`] : []),\n opts.image,\n 'sh',\n '-c',\n buildPiVolumeSyncScript(Boolean(overlay.dir)),\n ],\n { inputFile: staged.tarballPath },\n );\n return {\n created,\n synced: true,\n notes: staged.warnings,\n loopbackEndpoints: overlay.endpoints,\n };\n }\n } finally {\n await overlay.cleanup();\n await staged.cleanup();\n }\n }\n\n await execa(\n 'docker',\n ['run', '--rm', '--user', '0', '-v', `${spec.volume}:/dst`, opts.image, 'sh', '-c', chown],\n { reject: false },\n );\n return { created, synced: false, notes: [], loopbackEndpoints: [] };\n}\n\nexport interface PiMountResult {\n /** Docker -v spec strings to append to runBox(extraVolumes). */\n extraVolumes: string[];\n /** The declared `boxRunEnv` plus any forwarded provider keys set on the host. */\n env: Record<string, string>;\n volumeName: string;\n}\n\nexport function buildPiMounts(spec: PiConfigSpec, hostEnv: NodeJS.ProcessEnv): PiMountResult {\n const env: Record<string, string> = { ...PI_BOX_RUN_ENV };\n for (const k of PI_FORWARDED_ENV_KEYS) {\n const v = hostEnv[k];\n if (typeof v === 'string' && v.length > 0) env[k] = v;\n }\n return {\n extraVolumes: [`${spec.volume}:${CONTAINER_PI_DIR}`],\n env,\n volumeName: spec.volume,\n };\n}\n\nexport class PiSessionError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'PiSessionError';\n }\n}\n\nexport interface EnsurePiInstalledResult {\n /** True when `pi` had to be installed just now — i.e. absent from the image. */\n installed: boolean;\n}\n\n/**\n * Make sure the `pi` binary is on PATH inside the box, installing it from the\n * registry's recipe if not. Fast no-op (one `command -v`) when already present.\n */\nexport async function ensurePiInstalled(\n container: string,\n opts: { onProgress?: (line: string) => void } = {},\n): Promise<EnsurePiInstalledResult> {\n try {\n return await ensureAgentInstalled(createDockerSyncTransport({ container }), 'pi', opts);\n } catch (err) {\n if (err instanceof AgentInstallError) throw new PiSessionError(err.message);\n throw err;\n }\n}\n\nexport interface StartPiSessionOptions {\n container: string;\n piArgs: string[];\n sessionName?: string;\n}\n\n/**\n * Start a detached tmux session running the Pi TUI inside the container.\n *\n * `launchFlags` (`-a`) are prepended HERE, from the registry row.\n *\n * There is no shared docker launch path that applies them: the generic one\n * lives in `sandbox-cloud`'s `detached-agent.ts` and covers the CLOUD\n * providers only, so on docker each agent's own starter must do it (codex's\n * does, for its hook-trust flags). Omitting them made `agentbox pi` on docker\n * launch bare, so a repo carrying a `.pi/` dir blocked on Pi's project-trust\n * prompt -- which nothing on the host can answer.\n */\nexport async function startPiSession(opts: StartPiSessionOptions): Promise<void> {\n const sessionName = opts.sessionName ?? DEFAULT_PI_SESSION;\n const flags = PI_SPEC.launchFlags ?? [];\n const cmd = [PI_SPEC.binary, ...flags, ...opts.piArgs].map(shQuote).join(' ');\n const term = process.env['TERM'] ?? 'xterm-256color';\n const envFlags: string[] = ['-e', `TERM=${term}`];\n for (const [k, v] of Object.entries(PI_BOX_RUN_ENV)) envFlags.push('-e', `${k}=${v}`);\n for (const k of PI_FORWARDED_ENV_KEYS) {\n const v = process.env[k];\n if (typeof v === 'string' && v.length > 0) envFlags.push('-e', `${k}=${v}`);\n }\n const result = await execa(\n 'docker',\n [\n 'exec',\n ...envFlags,\n '--user',\n CONTAINER_USER,\n opts.container,\n 'tmux',\n 'new-session',\n '-d',\n '-s',\n sessionName,\n // On the session, not just the exec: when another agent's session already\n // runs, the tmux server exists and a new session inherits ITS environment,\n // not this client's. A box created for another agent never had these set\n // on the container, and without them the synced config is not read.\n ...tmuxSessionEnvArgs(PI_BOX_RUN_ENV),\n cmd,\n ...buildTmuxSessionArgs(sessionName),\n ],\n { reject: false },\n );\n if (result.exitCode === 0) return;\n const stderr = (result.stderr ?? '').toString();\n if (result.exitCode === 127 || /command not found|tmux: not found/i.test(stderr)) {\n throw new PiSessionError(\n `tmux is missing from the box image. Rebuild with: docker rmi agentbox/box:dev && retry.`,\n );\n }\n if (/duplicate session/i.test(stderr)) {\n throw new PiSessionError(\n `a tmux session \"${sessionName}\" already exists in ${opts.container}; use \\`agentbox pi attach\\` to reattach.`,\n );\n }\n throw new PiSessionError(\n `failed to start pi session in ${opts.container}: ${stderr.trim() || `exit ${String(result.exitCode)}`}`,\n );\n}\n\n/** The `docker` argv that attaches an interactive terminal to Pi's session. */\nexport function buildPiAttachArgv(container: string, sessionName?: string): string[] {\n return buildTermSafeTmuxExec({\n container,\n user: CONTAINER_USER,\n tmuxScript: 'exec tmux attach -t \"$1\"',\n positionals: [sessionName ?? DEFAULT_PI_SESSION],\n });\n}\n\n/**\n * The `docker run` argv for an interactive Pi login in a throwaway container.\n *\n * Pi has NO non-interactive login subcommand — signing in is the in-TUI\n * `/login` slash command — so this launches the TUI itself against the shared\n * volume, and the written `auth.json` persists there for every later box.\n *\n * `DISPLAY` is blanked for the same reason as the other agents' logins: the\n * image bakes `DISPLAY=:1` (a VNC X server) and Pi must not try to open a\n * browser there, which forces the terminal URL/paste-code flow.\n *\n * `--no-session` keeps the login run from leaving a stray transcript in the\n * shared volume, and `-a` matches a normal launch's trust handling.\n */\nexport function buildPiLoginRunArgv(opts: {\n volume: string;\n image: string;\n extraArgs: string[];\n}): string[] {\n const term = process.env['TERM'] ?? 'xterm-256color';\n return [\n 'run',\n '-it',\n '--rm',\n '-e',\n `TERM=${term}`,\n '-e',\n 'DISPLAY=',\n ...Object.entries(PI_BOX_RUN_ENV).flatMap(([k, v]) => ['-e', `${k}=${v}`]),\n '-v',\n `${opts.volume}:${CONTAINER_PI_DIR}`,\n '--user',\n CONTAINER_USER,\n opts.image,\n PI_SPEC.binary,\n '--no-session',\n '-a',\n ...opts.extraArgs,\n ];\n}\n\n/** Run an interactive docker argv with the user's terminal attached. */\nexport function runInteractivePiLogin(dockerArgv: string[]): { exitCode: number } {\n const child = spawnSync('docker', dockerArgv, { stdio: 'inherit' });\n return { exitCode: child.status ?? 1 };\n}\n\n/**\n * True when the pi-config volume already holds a NON-EMPTY `auth.json`.\n *\n * Pi writes `{}` on first run before any provider is added, so a bare existence\n * check would report a signed-out box as authenticated and skip the sign-in\n * offer. `-s` (non-empty) plus a `{}` reject is the cheap shape test that\n * matches the registry's `realShape: 'nonempty-json'`.\n */\nexport async function volumeHasPiAuth(volume: string, image: string): Promise<boolean> {\n const res = await execa(\n 'docker',\n [\n 'run',\n '--rm',\n '-v',\n `${volume}:/dst`,\n image,\n 'sh',\n '-c',\n `test -s /dst/auth.json && [ \"$(tr -d ' \\\\n\\\\t' < /dst/auth.json)\" != '{}' ]`,\n ],\n { reject: false },\n );\n return res.exitCode === 0;\n}\n\nexport interface PiSessionInfo {\n running: boolean;\n sessionName: string;\n /** ISO-8601 from tmux's `#{session_created}`, or null when not running. */\n startedAt: string | null;\n}\n\n/** Best-effort probe; any non-zero exit reads as \"not running\". */\nexport async function piSessionInfo(\n container: string,\n sessionName?: string,\n): Promise<PiSessionInfo> {\n const name = sessionName ?? DEFAULT_PI_SESSION;\n const has = await execa(\n 'docker',\n ['exec', '--user', CONTAINER_USER, container, 'tmux', 'has-session', '-t', name],\n { reject: false },\n );\n if (has.exitCode !== 0) return { running: false, sessionName: name, startedAt: null };\n const ts = await execa(\n 'docker',\n [\n 'exec',\n '--user',\n CONTAINER_USER,\n container,\n 'tmux',\n 'display-message',\n '-p',\n '-t',\n name,\n '#{session_created}',\n ],\n { reject: false },\n );\n let startedAt: string | null = null;\n if (ts.exitCode === 0) {\n const secs = Number.parseInt((ts.stdout ?? '').trim(), 10);\n if (Number.isFinite(secs) && secs > 0) startedAt = new Date(secs * 1000).toISOString();\n }\n return { running: true, sessionName: name, startedAt };\n}\n","/**\n * Where Pi's MCP server definitions live, as far as a box is concerned.\n *\n * Pi has no MCP client of its own; MCP comes from an extension, and the common\n * one reads definitions from more places than `~/.pi/agent`: a shared\n * `~/.config/mcp/mcp.json`, and an `imports` list in `~/.pi/agent/mcp.json`\n * that pulls servers out of other tools' configs (Claude Code, Cursor, …).\n * AgentBox copies only `~/.pi/agent`, so a box built from such a setup looks\n * like it lost its MCP servers.\n *\n * AgentBox does NOT fix that by copying more: MCP configs routinely carry API\n * keys and tokens in `env`/`headers`, and those files belong to other tools.\n * It tells the user instead. `~/.pi/agent/mcp.json` itself IS copied, even as\n * a symlink out of the folder (what stow and chezmoi produce): it is Pi's own\n * config, so the notice only says the box gets the linked file's contents. Every message carries a file path and COUNTS\n * only (servers, import sources) — never a server name, an import-source\n * name, or any part of a definition.\n */\n\nimport { lstat, readFile, realpath } from 'node:fs/promises';\nimport { homedir } from 'node:os';\nimport { isAbsolute, join, relative } from 'node:path';\n\n/** The MCP config files Pi's extensions read from inside `~/.pi/agent`. */\nconst PI_MCP_FILES = ['mcp.json'] as const;\n\n/** The shared, tool-neutral MCP config that Pi's MCP extension also reads. */\nconst SHARED_MCP_REL = ['.config', 'mcp', 'mcp.json'] as const;\n\nexport interface PiMcpScan {\n /** One user-facing line per finding. File paths and counts only. */\n notices: string[];\n}\n\nfunction isUnder(parent: string, child: string): boolean {\n const rel = relative(parent, child);\n return rel === '' || (!rel.startsWith('..') && !isAbsolute(rel));\n}\n\n/** `~`-relative for display, so a notice does not spell out the user's home. */\nfunction tilde(hostHome: string, p: string): string {\n const rel = relative(hostHome, p);\n return rel && !rel.startsWith('..') && !isAbsolute(rel) ? `~/${rel}` : p;\n}\n\n/** Parsed JSON object, or null for a missing / unreadable / non-object file. */\nasync function readJsonObject(file: string): Promise<Record<string, unknown> | null> {\n try {\n const parsed: unknown = JSON.parse(await readFile(file, 'utf8'));\n return parsed && typeof parsed === 'object' && !Array.isArray(parsed)\n ? (parsed as Record<string, unknown>)\n : null;\n } catch {\n return null;\n }\n}\n\n/**\n * How many servers a config defines, or null when it cannot be told. Counts\n * keys only: a server's name can itself be revealing, and its body is where\n * the tokens live, so neither is ever read into a message.\n */\nfunction countServers(cfg: Record<string, unknown> | null): number | null {\n if (!cfg) return null;\n for (const key of ['mcpServers', 'servers']) {\n const v = cfg[key];\n if (v && typeof v === 'object' && !Array.isArray(v)) return Object.keys(v).length;\n }\n return null;\n}\n\n/** `2 MCP servers`, or a neutral phrase when the count is unknown. */\nfunction servers(n: number | null): string {\n if (n === null) return 'MCP servers';\n return `${String(n)} MCP server${n === 1 ? '' : 's'}`;\n}\n\nasync function exists(p: string): Promise<boolean> {\n try {\n await lstat(p);\n return true;\n } catch {\n return false;\n }\n}\n\nexport async function scanPiMcpConfig(opts: { hostHome?: string } = {}): Promise<PiMcpScan> {\n const hostHome = opts.hostHome ?? homedir();\n const piDir = join(hostHome, '.pi', 'agent');\n const notices: string[] = [];\n const keep =\n 'MCP configs can hold secrets, so AgentBox does not copy them; to use those servers in a box, ' +\n 'put the ones you need in ~/.pi/agent/mcp.json, or copy the file explicitly with `carry:` in agentbox.yaml.';\n\n let piDirReal: string;\n try {\n piDirReal = await realpath(piDir);\n } catch {\n piDirReal = piDir;\n }\n\n for (const name of PI_MCP_FILES) {\n const file = join(piDir, name);\n let st;\n try {\n st = await lstat(file);\n } catch {\n continue;\n }\n if (st.isSymbolicLink()) {\n // A dangling link is the stager's to report; it skips it with a warning.\n const target = await realpath(file).catch(() => null);\n if (target === null) continue;\n if (!isUnder(piDirReal, target)) {\n const n = countServers(await readJsonObject(file));\n notices.push(\n `pi: ${tilde(hostHome, file)} links to a file outside ~/.pi/agent (${servers(n)}); ` +\n 'the box gets a copy of that file, like the rest of ~/.pi/agent.',\n );\n }\n }\n const imports = (await readJsonObject(file))?.['imports'];\n const sources = Array.isArray(imports) ? imports.length : 0;\n if (sources > 0) {\n notices.push(\n `pi: ${tilde(hostHome, file)} imports MCP servers from ${String(sources)} other tool config${sources === 1 ? '' : 's'}; ` +\n `those files are not copied into the box, so the imported servers will be missing there. ${keep}`,\n );\n }\n }\n\n const shared = join(hostHome, ...SHARED_MCP_REL);\n if (await exists(shared)) {\n const n = countServers(await readJsonObject(shared));\n notices.push(\n `pi: ${tilde(hostHome, shared)} defines ${servers(n)} that are not copied into the box (only ~/.pi/agent is). ${keep}`,\n );\n }\n\n return { notices };\n}\n","/**\n * `agentbox pi` as a DESCRIPTOR. The commander tree is built by\n * `buildAgentCommand` in the CLI — see `@agentbox/agent-codex/cli` for why the\n * factory stays there.\n */\nimport { resolveAgentSpec } from '@agentbox/sandbox-core';\nimport type { AgentCliSpec } from '@agentbox/cli-kit';\nimport { piRuntime } from './runtime.js';\n\nexport const piCliSpec: Omit<AgentCliSpec, 'attachWrapped'> = {\n id: 'pi',\n spec: resolveAgentSpec('pi'),\n productName: 'Pi',\n shortName: 'Pi',\n runtime: piRuntime,\n // `pi \"<message>\"` takes a leading positional as the opening turn.\n acceptsSeedPrompt: true,\n // `before-create`, like codex/opencode: on the cloud path that is AFTER the\n // hub-routing decision, so a box the control box will build never prompts for\n // a local sign-in it will not use. Pi has no setup wizard that could re-bake\n // a stale base, which is the only reason claude asks earlier.\n signInOfferTiming: 'before-create',\n text: {\n description: 'Create a sandboxed box and launch Pi in a detachable tmux session',\n isolateVolumeLabel: 'Pi',\n syncConfigLabel: 'Pi config',\n argsExample: '--model anthropic/claude-sonnet-4-5',\n resumeIdWord: 'id',\n continueHelp: \"continue the host's most recent Pi session for this directory in the box\",\n resumeHelp: 'teleport a specific host Pi session (uuid, or a unique prefix) into the box',\n startContinueHelp: \"continue the host's most recent Pi session for this directory\",\n startResumeHelp: 'teleport a specific host Pi session (uuid, or a unique prefix)',\n attachDescription:\n 'Attach to a Pi tmux session in a box, starting one if none is running (auto-unpause/start; never re-syncs config — use `pi start` for that)',\n startDescription:\n 'Start a Pi tmux session in an already-existing box (auto-unpause/start). If a session is already running, just attach.',\n loginDescription:\n \"Sign in to Pi for use in sandboxes. Pi has no non-interactive login: this launches Pi's own TUI in a throwaway container against the shared pi-config volume, where you run `/login`, pick a provider, then `/exit`. The captured auth.json is reused by every later box.\",\n loginArgsHelp: 'extra args forwarded to `pi`; place after `--`',\n loginInteractiveHelp: \"attach your terminal to Pi's TUI (the only sign-in Pi has)\",\n resumeWithPromptError: '-i / --initial-prompt cannot be combined with -c / --resume.',\n hubIncompatibleReason:\n '--via-hub is ignored for --resume runs (they teleport host state at create time); building this box locally.',\n resumeIntoRunningError: (boxName) =>\n `cannot resume into ${boxName}: a Pi session is already running. Kill it first or use \\`agentbox pi attach\\`.`,\n },\n};\n","/**\n * Pi's docker bindings and its own sign-in code.\n *\n * Pi's shape differs from the other three in two ways worth knowing:\n *\n * - **No skip-permissions flag**, because there are no permission prompts to\n * skip. Pi is designed to run with full tool permissions inside a container\n * (\"Pi runs with all permissions by default\" — its own containerization\n * doc), which is exactly what a box is. `skipPermissions: null`.\n * - **No non-interactive login.** Signing in is the in-TUI `/login` command, so\n * every sign-in path here is the passthrough: Pi gets the user's terminal in\n * a throwaway container mounted on the shared volume, and the `auth.json` it\n * writes seeds every later box.\n */\nimport type { EffectiveConfig, UserConfig } from '@agentbox/config';\nimport {\n confirm,\n imageProgress,\n log,\n spinner,\n type AgentRuntime,\n type SignInResult,\n} from '@agentbox/cli-kit';\nimport { ensureImage, extractVolumeAuthToBackup, type BoxRecord } from '@agentbox/sandbox-docker';\nimport { agentConfigVolume, requireAgentCredential } from '@agentbox/core';\nimport { resolveAgentSpec } from '@agentbox/sandbox-core';\nimport { homedir } from 'node:os';\nimport { join } from 'node:path';\nimport {\n buildPiAttachArgv,\n buildPiLoginRunArgv,\n ensurePiInstalled,\n ensurePiVolume,\n PI_FORWARDED_ENV_KEYS,\n PiSessionError,\n piSessionInfo,\n runInteractivePiLogin,\n SHARED_PI_VOLUME,\n startPiSession,\n} from '../docker-sync.js';\nimport { piLoginBinding } from './login-binding.js';\nimport { piAuthAvailable } from './host-creds.js';\nimport { piAuthFileHasProviders } from '../auth-shape.js';\nimport { scanPiMcpConfig } from '../mcp-notice.js';\n\nconst PI_SPEC = resolveAgentSpec('pi');\n/** Pi declares a credential; unwrap once so the two call sites below share it. */\nconst PI_HOST_BACKUP = requireAgentCredential(PI_SPEC).hostBackup;\n\n/**\n * Hand the terminal to Pi in a throwaway container against the shared volume.\n *\n * This is the ONLY sign-in Pi has. `signIn`'s `passthrough` option is therefore\n * inert — there is no guided flow to opt out of — but the parameter stays in\n * the signature because the shared `<agent> login` body passes it.\n */\nasync function runPiLoginContainer(image: string, extraArgs: string[]): Promise<number> {\n const { exitCode } = runInteractivePiLogin(\n buildPiLoginRunArgv({ volume: SHARED_PI_VOLUME, image, extraArgs }),\n );\n return exitCode;\n}\n\nasync function signInToPi(image: string, extraArgs: string[]): Promise<SignInResult> {\n if (!process.stdin.isTTY) {\n return {\n ok: false,\n error:\n 'Pi can only be signed in interactively (its `/login` is a TUI slash command). Run `agentbox pi login` from a terminal, or set a provider API key such as ANTHROPIC_API_KEY.',\n };\n }\n log.info('Pi signs in from inside its own TUI: type `/login`, pick a provider, then `/exit`.');\n const exitCode = await runPiLoginContainer(image, extraArgs);\n return exitCode === 0\n ? { ok: true }\n : { ok: false, error: `\\`pi\\` exited with code ${String(exitCode)}` };\n}\n\n/** Shared by both first-run offers: prepare the image + volume, then sign in. */\nasync function runLoginOffer(image: string): Promise<boolean> {\n const s = spinner();\n s.start('preparing sandbox image');\n // The login container RUNS pi, so it needs that agent's layer — the base\n // image is agentless. `ensureImage` returns the variant ref.\n const { ref: loginImage } = await ensureImage(image, {\n agents: ['pi'],\n onProgress: imageProgress(s),\n });\n s.message('preparing pi config');\n await ensurePiVolume({ volume: SHARED_PI_VOLUME }, { syncFromHost: true, image: loginImage });\n s.stop('image ready');\n\n const res = await signInToPi(loginImage, []);\n if (!res.ok) {\n log.warn('Pi login did not complete; continuing — run `agentbox pi login` to retry.');\n return false;\n }\n return true;\n}\n\n/** True when the cloud push has a Pi credential source on the host. */\nasync function cloudPiCredAvailable(env: NodeJS.ProcessEnv = process.env): Promise<boolean> {\n for (const k of PI_FORWARDED_ENV_KEYS) {\n if ((env[k] ?? '').length > 0) return true;\n }\n // Shape, not existence. `access` here would report every host that has ever\n // launched Pi as signed in, because Pi writes `{}` on first run -- the\n // sign-in offer would then never appear and the box would be seeded with an\n // empty credential. `piAuthAvailable` already had this rule; these two paths\n // did not, which is the inconsistency Bugbot caught.\n for (const p of [PI_HOST_BACKUP, join(homedir(), '.pi', 'agent', 'auth.json')]) {\n if (await piAuthFileHasProviders(p)) return true;\n }\n return false;\n}\n\nconst SIGN_IN_PROMPT = 'Sign in to Pi? (opens its TUI; type /login, then /exit)';\nconst SKIPPED = 'Skipped sign-in — run `/login` inside the box, or set a provider API key.';\n\nexport const piRuntime: AgentRuntime = {\n hostCredStatus: async ({ image, env }) =>\n (await piAuthAvailable(image, env)) ? { status: 'ok' } : { status: 'missing' },\n sharedVolume: SHARED_PI_VOLUME,\n SessionError: PiSessionError,\n\n startSession: (o) =>\n startPiSession({ container: o.container, piArgs: o.args, sessionName: o.sessionName }),\n sessionInfo: (container, sessionName) => piSessionInfo(container, sessionName),\n ensureInstalled: (container, o) => ensurePiInstalled(container, o),\n ensureVolume: (target, o) =>\n ensurePiVolume(target, { syncFromHost: o.syncFromHost, image: o.image }),\n buildAttachArgv: (container, sessionName) => buildPiAttachArgv(container, sessionName),\n\n // Through the accessor and the GENERIC create option, not a `piConfigVolume`\n // field and a `piConfig` option of its own. The three named fields exist only\n // for boxes recorded before the keyed map; a new agent has no such history,\n // and `agentConfig` is exactly the seam that lets a fourth agent isolate.\n resolveConfigVolume: (box: BoxRecord) => agentConfigVolume(box, 'pi'),\n createBoxConfig: (isolate) => ({ agentConfig: { pi: { isolate } } }),\n\n sessionNameOf: (cfg: EffectiveConfig) => cfg.pi.sessionName,\n isolateOf: (cfg: EffectiveConfig) => cfg.box.isolatePiConfig,\n cliOverrides: ({ sessionName, isolate }) => {\n const out: Partial<UserConfig> = {};\n // No `dangerouslySkipPermissions`: Pi has no such flag, so the command never\n // declares the option and the config key does not exist.\n if (sessionName !== undefined) out.pi = { sessionName };\n if (isolate === true) out.box = { isolatePiConfig: true };\n return out;\n },\n\n skipPermissions: null,\n\n async offerDockerLogin({ image, yes }) {\n if (!process.stdin.isTTY || yes) return;\n if (await piAuthAvailable(image)) return;\n if (!(await confirm({ message: SIGN_IN_PROMPT, initialValue: true }))) {\n log.info(SKIPPED);\n return;\n }\n if (await runLoginOffer(image)) log.success('Signed in to Pi — saved for future boxes.');\n },\n\n /**\n * Cloud reads the host backup (or the host's real `~/.pi/agent/auth.json`);\n * the docker login writes only to the shared volume, so after a successful\n * login we extract its `auth.json` into the backup for the cloud push to seed.\n */\n async offerCloudLogin({ image, yes }) {\n if (!process.stdin.isTTY || yes) return;\n if (await cloudPiCredAvailable()) return;\n if (!(await confirm({ message: SIGN_IN_PROMPT, initialValue: true }))) {\n log.info(SKIPPED);\n return;\n }\n if (!(await runLoginOffer(image))) return;\n const { copied } = await extractVolumeAuthToBackup({\n volume: SHARED_PI_VOLUME,\n image,\n backupFile: PI_HOST_BACKUP,\n });\n if (copied) log.success('Signed in to Pi — saved for future boxes.');\n else\n log.warn(\n 'Pi login finished but no auth.json was captured — sign in inside the box if needed.',\n );\n },\n\n hostConfigNotices: async () => (await scanPiMcpConfig()).notices,\n\n signIn: (image, extraArgs) => signInToPi(image, extraArgs),\n loginBinding: (o) => piLoginBinding(o),\n // Pi's login is its TUI; there is no keystroke-free path.\n loginNeedsTty: 'always',\n ensureInstalledOnCreate: true,\n\n resume: {\n /**\n * Pi organizes sessions BY WORKING DIRECTORY, and a box's cwd is always\n * `/workspace` — so `-c` inside the box resumes that box's own most recent\n * session with no id to track and no marker file to maintain (codex needs\n * one because its sessions are flat across every project).\n *\n * Still gated on a session existing: `-c` with an empty session tree starts\n * a fresh session anyway, but passing it would make the restore log claim a\n * resume that did not happen.\n */\n async resumeArgs(exec) {\n const ran = await exec(\n 'find \"$HOME/.pi/agent/sessions\" -name \"*.jsonl\" -type f 2>/dev/null | head -1',\n );\n return ran.length > 0 ? ['-c'] : null;\n },\n },\n};\n","/**\n * Binds Pi's login spec to its docker surface. Beside the runtime that is its\n * only caller — see `cli-kit`'s `agent-login-bindings.ts`.\n */\nimport { withLoginDefaults, type AgentLoginBinding } from '@agentbox/cli-kit';\nimport { buildPiLoginRunArgv, SHARED_PI_VOLUME, volumeHasPiAuth } from '../docker-sync.js';\nimport { PI_LOGIN_SPEC } from './login.js';\n\nexport function piLoginBinding(o: {\n image: string;\n volume?: string;\n extraArgs?: string[];\n}): AgentLoginBinding {\n const volume = o.volume ?? SHARED_PI_VOLUME;\n const { image } = o;\n const extraArgs = withLoginDefaults(PI_LOGIN_SPEC, o.extraArgs ?? []);\n return {\n spec: PI_LOGIN_SPEC,\n dockerArgv: buildPiLoginRunArgv({ volume, image, extraArgs }),\n verify: () => volumeHasPiAuth(volume, image),\n };\n}\n","/**\n * Pi's guided-login detector — see `@agentbox/cli-kit`'s `agent-login-specs.ts`\n * for what a detector is and why the flow is driven from the host.\n *\n * Pi has **no non-interactive login**: signing in is the in-TUI `/login` slash\n * command, which opens a provider picker inside a full-screen TUI. There is no\n * prompt sequence a host can drive keystroke-by-keystroke, so `detect` returns\n * null unconditionally and every login falls through to the passthrough that\n * hands Pi the user's terminal.\n *\n * This is a real \"no\", not a stub: reporting a prompt we cannot actually answer\n * would strand the user in a guided flow that never completes.\n */\n\nimport type { AgentLoginSpec } from '@agentbox/cli-kit';\n\nexport const PI_LOGIN_SPEC: AgentLoginSpec = {\n agent: 'pi',\n defaultArgs: [],\n detect: () => null,\n};\n","/**\n * Pi's host-side credential check. Lives beside its runtime rather than in a\n * shared helper for the same reason the other agents' do — the shared one used\n * to dispatch by name and hand an unwired agent someone else's answer.\n */\nimport { piAuthFileHasProviders } from '../auth-shape.js';\nimport { homedir } from 'node:os';\nimport { join } from 'node:path';\nimport { PI_FORWARDED_ENV_KEYS, SHARED_PI_VOLUME, volumeHasPiAuth } from '../docker-sync.js';\n\n/**\n * True when Pi is already authenticated: any forwarded provider key in the\n * environment, a non-empty host `~/.pi/agent/auth.json`, or an `auth.json`\n * already in the shared volume.\n *\n * Shape, not mere existence — see {@link piAuthFileHasProviders}.\n */\nexport async function piAuthAvailable(\n image: string,\n env: NodeJS.ProcessEnv = process.env,\n): Promise<boolean> {\n for (const k of PI_FORWARDED_ENV_KEYS) {\n if ((env[k] ?? '').length > 0) return true;\n }\n if (await piAuthFileHasProviders(join(homedir(), '.pi', 'agent', 'auth.json'))) return true;\n return volumeHasPiAuth(SHARED_PI_VOLUME, image);\n}\n","import { defineAgentModule, type AgentModule } from '@agentbox/cli-kit';\nimport { PI_LOGIN_SPEC } from './login.js';\nimport { piRuntime } from './runtime.js';\nimport { resolvePiTeleport } from './teleport.js';\n\n/**\n * Pi's CLI module.\n *\n * The teleport resolver is present because the spec declares\n * `caps.teleport: 'full'`; `agent-module-table.test.ts` asserts the two agree,\n * so a resolver without the capability (or the reverse) fails.\n */\nexport const agentModule: AgentModule = defineAgentModule('pi', {\n login: PI_LOGIN_SPEC,\n runtime: piRuntime,\n teleport: ({ hostCwd, mode, log }) => resolvePiTeleport({ hostCwd, mode, log }),\n});\n","/**\n * Pi CLI session teleport.\n *\n * Pi stores sessions at\n * `~/.pi/agent/sessions/<slugified-cwd>/<ISO>_<uuid>.jsonl`, and the FIRST line\n * of each file is a `session` record carrying the working directory:\n *\n * {\"type\":\"session\",\"version\":3,\"id\":\"<uuid>\",\"timestamp\":\"…\",\"cwd\":\"<abs>\"}\n *\n * That record is the only place a host path appears in a real session (verified\n * by walking every string of a live transcript: `message`, `model_change` and\n * `thinking_level_change` records carry none), so the rewrite is one field\n * rather than codex's deep walk over config-only payloads.\n *\n * The slug directory is deliberately NOT parsed. It is a Pi implementation\n * detail, and line 1's `cwd` is authoritative — so we glob the slug dirs and\n * read the header, exactly as the codex resolver reads `payload.cwd`.\n *\n * Resume forwards `--session <absolute box path>` rather than the uuid.\n * `--session` accepts a path *or* a partial id (`pi --help`), and passing the\n * path means the file can land in a flat drop directory instead of the box's\n * own slug dir — so nothing here has to reproduce Pi's slugging. Verified\n * live: `pi --session /abs/out-of-tree.jsonl` from an unrelated cwd loads the\n * transcript and appends to it, keeping the session id.\n */\n\nimport { mkdtemp, readdir, readFile, stat, writeFile } from 'node:fs/promises';\nimport { existsSync } from 'node:fs';\nimport { homedir, tmpdir } from 'node:os';\nimport { join } from 'node:path';\nimport {\n BOX_WORKSPACE,\n TeleportError,\n type ResolvedTeleport,\n type ResumeMode,\n type TeleportLogger,\n} from '@agentbox/cli-kit';\n\n/**\n * Flat drop directory inside the box. Pi indexes sessions by cwd for its own\n * pickers, but `--session <path>` bypasses that index entirely, so the file\n * does not need to sit in the `/workspace` slug dir.\n */\nconst BOX_SESSIONS_DIR = '/home/vscode/.pi/agent/sessions';\n\ninterface PiSessionFile {\n hostPath: string;\n fileName: string;\n uuid: string;\n cwd: string | null;\n mtimeMs: number;\n}\n\ninterface PiResolveOptions {\n hostCwd: string;\n mode: ResumeMode;\n hostHome?: string;\n log?: TeleportLogger;\n}\n\nexport async function resolvePiTeleport(opts: PiResolveOptions): Promise<ResolvedTeleport> {\n const hostHome = opts.hostHome ?? homedir();\n const sessionsRoot = join(hostHome, '.pi', 'agent', 'sessions');\n\n if (!existsSync(sessionsRoot)) {\n throw new TeleportError(\n `no Pi session history found on the host (expected at ${sessionsRoot}). Run \\`pi\\` at least once before using -c / --resume.`,\n );\n }\n\n const all = await listPiSessions(sessionsRoot);\n if (all.length === 0) {\n throw new TeleportError(\n `no Pi sessions found in ${sessionsRoot}. Run \\`pi\\` here at least once first.`,\n );\n }\n\n let picked: PiSessionFile;\n if (opts.mode.kind === 'resume') {\n // Aliased so the narrowing survives into the filter callback.\n const mode = opts.mode;\n const matches = all.filter((s) => s.uuid === mode.id || s.uuid.startsWith(mode.id));\n if (matches.length === 0) {\n throw new TeleportError(`Pi session \"${mode.id}\" not found under ${sessionsRoot}.`);\n }\n if (matches.length > 1) {\n throw new TeleportError(\n `Pi session id \"${mode.id}\" matched multiple files; pass the full uuid.`,\n );\n }\n picked = matches[0]!;\n if (picked.cwd !== null && picked.cwd !== opts.hostCwd) {\n opts.log?.(\n `teleport: WARN pi session ${picked.uuid} was recorded at ${picked.cwd}, not ${opts.hostCwd}; rewriting cwd anyway`,\n );\n }\n } else {\n const matching = all.filter((s) => s.cwd === opts.hostCwd);\n if (matching.length === 0) {\n throw new TeleportError(\n `no Pi session found whose cwd matches ${opts.hostCwd}. Run \\`pi\\` here first, or pass --resume <id> explicitly.`,\n );\n }\n matching.sort((a, b) => b.mtimeMs - a.mtimeMs);\n picked = matching[0]!;\n }\n\n const stage = await mkdtemp(join(tmpdir(), 'agentbox-teleport-pi-'));\n const stagedFile = join(stage, picked.fileName);\n await rewritePiSession(picked.hostPath, stagedFile);\n opts.log?.(`teleport: pi session ${picked.uuid} staged for upload`);\n\n return {\n agent: 'pi',\n sessionId: picked.uuid,\n hostFile: stagedFile,\n boxPath: `${BOX_SESSIONS_DIR}/${picked.fileName}`,\n boxParentDir: BOX_SESSIONS_DIR,\n forwardArgs: ['--session', `${BOX_SESSIONS_DIR}/${picked.fileName}`],\n };\n}\n\nasync function listPiSessions(sessionsRoot: string): Promise<PiSessionFile[]> {\n const out: PiSessionFile[] = [];\n // One level of slug dirs, then the `.jsonl` files. No recursive scan and no\n // assumption about how the slug is spelled.\n for (const slug of await safeReaddir(sessionsRoot)) {\n const dir = join(sessionsRoot, slug);\n for (const name of await safeReaddir(dir)) {\n if (!name.endsWith('.jsonl')) continue;\n const hostPath = join(dir, name);\n let mtimeMs = 0;\n try {\n const st = await stat(hostPath);\n if (!st.isFile()) continue;\n mtimeMs = st.mtimeMs;\n } catch {\n continue;\n }\n const header = await peekPiHeader(hostPath);\n // The uuid comes from the header rather than the filename: the filename\n // is `<ISO>_<uuid>.jsonl`, but the record is the authority and a file Pi\n // renames still resolves.\n if (header === null || header.id === null) continue;\n out.push({ hostPath, fileName: name, uuid: header.id, cwd: header.cwd, mtimeMs });\n }\n }\n return out;\n}\n\nasync function safeReaddir(dir: string): Promise<string[]> {\n try {\n return await readdir(dir);\n } catch {\n return [];\n }\n}\n\n/** Read line 1's `session` record. Returns null when it is missing or unparsable. */\nasync function peekPiHeader(\n file: string,\n): Promise<{ id: string | null; cwd: string | null } | null> {\n let firstLine: string;\n try {\n const buf = await readFile(file, 'utf8');\n const nl = buf.indexOf('\\n');\n firstLine = nl === -1 ? buf : buf.slice(0, nl);\n } catch {\n return null;\n }\n try {\n const parsed = JSON.parse(firstLine) as { type?: string; id?: string; cwd?: string };\n if (parsed.type !== 'session') return null;\n return {\n id: typeof parsed.id === 'string' ? parsed.id : null,\n cwd: typeof parsed.cwd === 'string' ? parsed.cwd : null,\n };\n } catch {\n return null;\n }\n}\n\n/**\n * Copy the session with the header's `cwd` repointed at `/workspace`.\n *\n * ONLY the `session` record is touched, and only its own `cwd` field. Every\n * other line is the conversation and is written back byte-for-byte — rewriting\n * inside a transcript would silently edit what the user (or the model) said.\n */\nasync function rewritePiSession(src: string, dst: string): Promise<void> {\n const raw = await readFile(src, 'utf8');\n const lines = raw.split('\\n');\n const out: string[] = [];\n let headerDone = false;\n for (const line of lines) {\n if (headerDone || line.length === 0) {\n out.push(line);\n continue;\n }\n let parsed: unknown;\n try {\n parsed = JSON.parse(line);\n } catch {\n out.push(line);\n continue;\n }\n if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) {\n const obj = parsed as { type?: unknown; cwd?: unknown };\n if (obj.type === 'session') {\n // UNCONDITIONAL, not a prefix rewrite. The box's working directory is\n // `/workspace` whatever directory the session was recorded in, and\n // `--resume <id>` explicitly allows picking a session from ELSEWHERE\n // (we warn and continue). A `hostCwd`-anchored replacement silently\n // does nothing for exactly that case, so the teleported session landed\n // in the box still pointing at a host path that does not exist there --\n // while the log claimed it had been rewritten.\n if (typeof obj.cwd === 'string') obj.cwd = BOX_WORKSPACE;\n out.push(JSON.stringify(obj));\n headerDone = true;\n continue;\n }\n }\n out.push(line);\n }\n await writeFile(dst, out.join('\\n'), 'utf8');\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,SAAS,WAAAA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,OAAO,OAAO,OAAO,WAAW,OAAO,KAAK;MAChD,KAAK,OAAO,OAAO,QAAQ,WAAW,OAAO,MAAM;IACrD;EACF,QAAQ;AACN,WAAO;EACT;AACF;AASA,eAAe,iBAAiB,KAAa,KAA4B;AACvE,QAAM,MAAM,MAAMA,UAAS,KAAK,MAAM;AACtC,QAAM,QAAQ,IAAI,MAAM,IAAI;AAC5B,QAAM,MAAgB,CAAC;AACvB,MAAI,aAAa;AACjB,aAAW,QAAQ,OAAO;AACxB,QAAI,cAAc,KAAK,WAAW,GAAG;AACnC,UAAI,KAAK,IAAI;AACb;IACF;AACA,QAAI;AACJ,QAAI;AACF,eAAS,KAAK,MAAM,IAAI;IAC1B,QAAQ;AACN,UAAI,KAAK,IAAI;AACb;IACF;AACA,QAAI,UAAU,OAAO,WAAW,YAAY,CAAC,MAAM,QAAQ,MAAM,GAAG;AAClE,YAAM,MAAM;AACZ,UAAI,IAAI,SAAS,WAAW;AAQ1B,YAAI,OAAO,IAAI,QAAQ,SAAU,KAAI,MAAM;AAC3C,YAAI,KAAK,KAAK,UAAU,GAAG,CAAC;AAC5B,qBAAa;AACb;MACF;IACF;AACA,QAAI,KAAK,IAAI;EACf;AACA,QAAM,UAAU,KAAK,IAAI,KAAK,IAAI,GAAG,MAAM;AAC7C;ADrNO,IAAM,cAA2B,kBAAkB,MAAM;EAC9D,OAAO;EACP,SAAS;EACT,UAAU,CAAC,EAAE,SAAS,MAAM,KAAAC,MAAI,MAAM,kBAAkB,EAAE,SAAS,MAAM,KAAAA,MAAI,CAAC;AAChF,CAAC;","names":["homedir","join","homedir","join","readFile","homedir","join","homedir","join","homedir","join","readFile","stat","homedir","join","join","homedir","PI_SPEC","resolveAgentSpec","stat","readFile","log"]}