@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.
- package/CHANGELOG.md +39 -0
- package/dist/_cloud-attach-KEFEQ2YH.js +32 -0
- package/dist/{chunk-L55DASHB.js → chunk-2SKTXZGX.js} +8 -8
- package/dist/{chunk-YZZKWZO2.js → chunk-3PTSPFR6.js} +7 -1
- package/dist/chunk-3PTSPFR6.js.map +1 -0
- package/dist/{chunk-BKOKMZNK.js → chunk-3QTWB66F.js} +6 -6
- package/dist/{chunk-VSWIJHCH.js → chunk-5ZBNVZSU.js} +3 -3
- package/dist/{chunk-IX7S6NJR.js → chunk-72LKKHPI.js} +4 -4
- package/dist/{chunk-AXAMPAP3.js → chunk-7ELRQNNH.js} +3 -3
- package/dist/chunk-7ELRQNNH.js.map +1 -0
- package/dist/{chunk-WJ4MZESJ.js → chunk-7RDDR6BW.js} +27 -8
- package/dist/chunk-7RDDR6BW.js.map +1 -0
- package/dist/{chunk-7TPGIQOP.js → chunk-BORN6FJK.js} +10 -10
- package/dist/{chunk-OVLM2EZV.js → chunk-CUMSI7N3.js} +97 -83
- package/dist/chunk-CUMSI7N3.js.map +1 -0
- package/dist/{chunk-Z6LK4P54.js → chunk-EUE6F7HL.js} +40 -12
- package/dist/chunk-EUE6F7HL.js.map +1 -0
- package/dist/{chunk-7AMMBUEW.js → chunk-F2CNFPIA.js} +67 -33
- package/dist/chunk-F2CNFPIA.js.map +1 -0
- package/dist/{chunk-77IAHAQY.js → chunk-FBQC6TKM.js} +6 -6
- package/dist/{chunk-IJFP7N34.js → chunk-FPYYDMCR.js} +26 -9
- package/dist/chunk-FPYYDMCR.js.map +1 -0
- package/dist/{chunk-U7J7JT6R.js → chunk-G35FJ4KT.js} +108 -43
- package/dist/chunk-G35FJ4KT.js.map +1 -0
- package/dist/{chunk-JUTAYI2N.js → chunk-GCUJUUNE.js} +5 -5
- package/dist/{chunk-S77B5POZ.js → chunk-GKBAEX2P.js} +6 -6
- package/dist/{chunk-XKUF67M6.js → chunk-GT7VDGNV.js} +4 -4
- package/dist/{chunk-52OXHGKQ.js → chunk-HNPYVRX7.js} +35 -16
- package/dist/chunk-HNPYVRX7.js.map +1 -0
- package/dist/{chunk-AGHR7XOJ.js → chunk-HOJKUVH6.js} +3 -3
- package/dist/{chunk-PENAXZMR.js → chunk-INJIW6PP.js} +7 -7
- package/dist/{chunk-OYWP4SII.js → chunk-IZPNDZXI.js} +5 -5
- package/dist/{chunk-U3BCLGTH.js → chunk-JHS4ROJH.js} +11 -11
- package/dist/{chunk-CWN4DJYI.js → chunk-JVZZPJ2C.js} +3 -3
- package/dist/{chunk-KOGQNHV3.js → chunk-KA67IGEG.js} +4 -4
- package/dist/{chunk-OTAYAFYF.js → chunk-KRF2JODE.js} +3 -3
- package/dist/{chunk-SDWKZLGP.js → chunk-LFMJXQDL.js} +5 -5
- package/dist/{chunk-FM7PHYBD.js → chunk-NEU5B2VO.js} +162 -8
- package/dist/chunk-NEU5B2VO.js.map +1 -0
- package/dist/{chunk-2U4HKKM7.js → chunk-NSYCXUN5.js} +6 -6
- package/dist/{chunk-U4Z5OOOD.js → chunk-NZN3BME7.js} +32 -12
- package/dist/chunk-NZN3BME7.js.map +1 -0
- package/dist/{chunk-KWDFEQO6.js → chunk-PI4A3TGV.js} +24 -71
- package/dist/chunk-PI4A3TGV.js.map +1 -0
- package/dist/{chunk-HS6B3CE4.js → chunk-PJCIZLIX.js} +472 -138
- package/dist/chunk-PJCIZLIX.js.map +1 -0
- package/dist/{chunk-GERRSRQZ.js → chunk-PZK5KRFB.js} +12 -10
- package/dist/{chunk-GERRSRQZ.js.map → chunk-PZK5KRFB.js.map} +1 -1
- package/dist/{chunk-5JDGKHWH.js → chunk-QALBGVPR.js} +2 -2
- package/dist/{chunk-JCDC5S32.js → chunk-QDBDDJKT.js} +4 -4
- package/dist/{chunk-R7J7WFM5.js → chunk-QUBP3AZD.js} +220 -49
- package/dist/chunk-QUBP3AZD.js.map +1 -0
- package/dist/{chunk-YVIC7TNH.js → chunk-QZW3WXBW.js} +43 -23
- package/dist/{chunk-YVIC7TNH.js.map → chunk-QZW3WXBW.js.map} +1 -1
- package/dist/{chunk-ZPFTFIKP.js → chunk-S5WFZHC5.js} +5 -5
- package/dist/{chunk-UFOUBCPW.js → chunk-UDSNFS67.js} +34 -36
- package/dist/{chunk-UFOUBCPW.js.map → chunk-UDSNFS67.js.map} +1 -1
- package/dist/{chunk-PVZUQTLW.js → chunk-VUTEVIYG.js} +5 -5
- package/dist/{chunk-3HJQZQ76.js → chunk-WNFUSPZR.js} +25 -72
- package/dist/chunk-WNFUSPZR.js.map +1 -0
- package/dist/{chunk-OWCTDO67.js → chunk-WVBTRK6R.js} +13 -13
- package/dist/{chunk-4IQGL4KD.js → chunk-ZMKRUD6J.js} +6 -6
- package/dist/{chunk-J2AD7MLR.js → chunk-ZQWOZ5BL.js} +3 -3
- package/dist/{cli-6IPZVUXF.js → cli-B4VVKKYV.js} +10 -10
- package/dist/{cli-QIBPY2HQ.js → cli-ENMWXMKO.js} +10 -10
- package/dist/{cli-QSV6K33P.js → cli-F2UBHH7H.js} +11 -11
- package/dist/{cli-E2ZC5S4U.js → cli-JKSQBGRO.js} +11 -11
- package/dist/{cli-3WZP5JHA.js → cli-MIIWRJDK.js} +11 -11
- package/dist/cloud-backends.js +6 -6
- package/dist/{control-plane-I2QKMHPK.js → control-plane-R4ELXZHL.js} +22 -22
- package/dist/{cp-hub-upload-GW566DGZ.js → cp-hub-upload-IUQVJGOW.js} +10 -10
- package/dist/custody-client-PVDBOT7Y.js +18 -0
- package/dist/{deploy-hetzner-IIAXES7B.js → deploy-hetzner-KY6KWN4M.js} +11 -11
- package/dist/{dist-4K66F4UR.js → dist-2QGMP2UI.js} +10 -10
- package/dist/{dist-SZTW3RMB.js → dist-5MCQFGLX.js} +28 -8
- package/dist/{dist-XZXZSTTA.js → dist-7EKSUISW.js} +33 -18
- package/dist/dist-7EKSUISW.js.map +1 -0
- package/dist/{dist-5RMJLMYG.js → dist-EIVYC2MR.js} +3 -3
- package/dist/{dist-VKKHIHCZ.js → dist-JWXPKGPZ.js} +10 -10
- package/dist/{dist-HIQCE4H2.js → dist-ONAAPVBD.js} +21 -11
- package/dist/{dist-WR2HYACA.js → dist-OXLTCVA2.js} +10 -10
- package/dist/{dist-WTPYXNRH.js → dist-PBO4UHJK.js} +2 -2
- package/dist/{dist-YED5YJQN.js → dist-RCBMUPVR.js} +12 -4
- package/dist/{dist-IXPKVU3R.js → dist-TD74GXLP.js} +6 -6
- package/dist/{dist-44RSFOGQ.js → dist-VCZ3LZPJ.js} +22 -12
- package/dist/{dist-3EZQDIOD.js → dist-WGV7LRDC.js} +11 -9
- package/dist/{host-reach-drainer-A4ZO6UKT.js → host-reach-drainer-AZYC6UIB.js} +2 -2
- package/dist/{host-session-POJP4WO6.js → host-session-EGUDGE4R.js} +12 -12
- package/dist/hub-76RHPA7X.js +40 -0
- package/dist/{hub-adopt-YR7S5TNB.js → hub-adopt-5G7SKI2E.js} +9 -9
- package/dist/{hub-api-client-BUQDTSQ3.js → hub-api-client-WPZTG5AT.js} +5 -5
- package/dist/{hub-docker-target-XA5U2ZU5.js → hub-docker-target-CNJHYH4B.js} +16 -16
- package/dist/index.js +299 -224
- package/dist/index.js.map +1 -1
- package/dist/{manager-pty-XCGH6AUC-EZML75UO.js → manager-pty-XCGH6AUC-O3UNISN2.js} +5 -5
- package/dist/{plugin-update-BIPJZA24.js → plugin-update-UZYPWL4N.js} +6 -6
- package/dist/prepare-4GOTJXQL.js +48 -0
- package/dist/prepared-custody-4YJ4ZT7J.js +40 -0
- package/dist/{prepared-state-FO74QUCP-4WLAYPEO.js → prepared-state-FO74QUCP-GUIPQORN.js} +5 -5
- package/dist/pty-host.js +4 -4
- package/dist/{publish-credentials-N2JD2D3A.js → publish-credentials-RLRLNL33.js} +12 -12
- package/dist/registry-QMHCNR5X.js +18 -0
- package/dist/relay-VBWFCWKK.js +23 -0
- package/dist/{remote-docker-share-GIH6JNKY.js → remote-docker-share-TKG7SXHX.js} +13 -13
- package/dist/{tool-grant-push-7K765QKW.js → tool-grant-push-V7E3Y2W6.js} +3 -3
- package/package.json +2 -1
- package/runtime/_shared/ctl.cjs +138 -40
- package/runtime/digitalocean/ctl.cjs +138 -40
- package/runtime/docker/packages/ctl/dist/bin.cjs +138 -40
- package/runtime/e2b/ctl.cjs +138 -40
- package/runtime/hetzner/ctl.cjs +138 -40
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
- package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/prerender-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach-box/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/heartbeat/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/pin/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/register/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/events/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +12 -12
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +12 -12
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +8 -8
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/next-font-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-5e8ze._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-di9rg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__008zqfx._.js → [root-of-the-server]__0-ovzfw._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-r5e8q._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__007hogi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0-kl55b._.js → [root-of-the-server]__00bh9gb._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00dc6yl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00zpt4k._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__017tfb_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01dlun3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01mhbng._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03jx5m5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03l4evb._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0126167._.js → [root-of-the-server]__03uelft._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03wt33b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03z-u4h._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__02s5f9s._.js → [root-of-the-server]__048c4u3._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04glef0._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04za-91._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05cnibm._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06e_no_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06g2ncr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06vmwu8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06wzlsi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07f11r9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07mtcs1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__084o93l._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__085_re5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08kj50f._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08txtdi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__092u79y._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09j-kzo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09umuy8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09wu-6r._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_60dmv._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_f5r-w._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ahciyb._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ajp0a3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ao_4th._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0aqoqhn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0b3_azq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cjjwg7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1wl4f._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d2ce-o._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dfklvw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dgkz7l._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dlg6e7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dq5edp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0drzmcj._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dvyt4d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dyqk31._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eliqqa._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eluwey._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f5v0j5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f7g_na._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fn2qow._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0frnoss._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0g0e1x-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gdwl-b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gfhbl7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gsie0d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hg36y7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hz77cq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i501ph._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j5jaq9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j7_6c5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jm5dx1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0k-t2mr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ktkk27._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kxp4k8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l-mqzk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l7rw-n._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lb45m6._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lvczy2._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0m9zj9m._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mg-juc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mriv1n._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0n4gqir._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0new-8d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nuc9du._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nxnhun._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o42jfc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o7zz8d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0omb75h._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p4ta6t._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0p5_ap9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pan9yi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pr6h1j._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pz23t_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qcvt0o._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qn4mea._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qp0txx._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qsn9xm._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qx8qwu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r6p-ql._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r6tfw8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sgdrnp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ssn3y9._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0te8u6u._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ukg6s1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0up7ls4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0uvnrnf._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v2xw5s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v5qu_p._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__12p0ia1._.js → [root-of-the-server]__0vku_ep._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vuhl78._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w52bth._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wq5ukd._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wx561s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wxo4bk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xfcui-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xm7z28._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xqz1om._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xur24w._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xw3pee._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xwht7v._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y20q9b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zfq7yk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi_qda._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zpm7wg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zxlzp1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-a4wnf._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-fpw4q._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-iro6m._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-o35-u._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1043gy8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10kehs5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10s1755._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11d3dgq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__126lrtu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12n9728._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13hluml._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13hzwlv._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14c4h72._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14oho-o._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14zr9zt._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__153axa9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1582-3i._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15v83nk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16e-k-w._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16m0mie._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16ta_9y._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17a3r0z._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17kg43w._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18g18yc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18m4f3-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__190vthx._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19vezsz._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19vgyci._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_ulp2r._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1a6hiz5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1apqdye._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1avjial._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cicer7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1crkcf8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dra_qf._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eearvr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eewe3-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fd1yxa._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fyknn9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g24h4v._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1goi44d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hf8-7y._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hn7h11._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i9e2ly._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1j6cxj7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jwn6xy._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kw00ov._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1l0xu4g._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1laa5r-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lo6_vz._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lzumk3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m1qnsg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m26y4h._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m5qi0d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m7oktq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mq0v7p._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n29-mo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n5aq-l._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nhwizo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1o2vpkc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1o9euia._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1otvs-z._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1p3nshl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pbl8am._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9a118._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9klny._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qf5sar._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qjpnlw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qpcmfu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r8kqe3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ra-lry._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rousb3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rvwwj8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rwfadw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sj1ox_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sq9444._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sqteyf._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1th4k80._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1umt_5v._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ux-zjb._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v5fjky._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vspjdn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1w02nxp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1winv-x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wj9na5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1x-8rww._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ybyads._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yzs5_p._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z3bc6x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zh-p_4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zj2l_d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zqt33m._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zr57k3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zxsjfn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ga3fy._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20gp3bg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20k17-b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20o508x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20zx91s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__219zam7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_03slv7y._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_03u-l9s._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_048yy7t._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_05_hmgg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_08cr70o._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_09bu8dh._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0_2z437._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0_s1tx9._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0_ue2iy._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0b6vmhh._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0bxg62j._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0cc3kcz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ccgezr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0e50cwx._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ek1dkx._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0g94rtj._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0hwl0oy._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ihch2c._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0jal0nm._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0jvwv07._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0mpj2yt._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0n22m88._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ndtf84._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0o1r-if._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0opn03l._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0p-2n50._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0qf4357._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0tbb47v._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ubchhn._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0ul-64a._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0v--tpg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0v3xwi-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +42 -40
- package/runtime/hub/apps/hub/.next/server/chunks/_0y497n2._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0zvfiwd._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_100tsj5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_11-rqgb._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_113fejt._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_12juepz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_12w22u2._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_134-gub._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_14kba0u._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_16ec74_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_17ntgn8._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1c27mjg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1c4zrlu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1cmknl6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1g8ctu7._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1grz1bu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1itx6m_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1jaoh3w._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1ktt212._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1ldaou_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1n3e-p-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1onbxt8._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1pudgbl._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1qmsz02._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1r3ah1o._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1t24c_5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1vv20kp._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1whgbe7._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1wj2dpr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1wsllw4._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1yk56nw._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1yumxg7._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1zlfubf._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_204rqiz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_2056rpg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_2056tby._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +13 -13
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0515n2f._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0h3qrm-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0o-fklw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/{[root-of-the-server]__0m1akem._.js → [root-of-the-server]__1jkmxi2._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kzd494._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +33 -31
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1hrzkwr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0j5-o0f._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_17myqp5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_page_tsx_0o2z21l._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +1 -1
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
- package/runtime/hub/apps/hub/.next/server/next-font-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/next-font-manifest.json +27 -27
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
- package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +19 -19
- package/runtime/hub/apps/hub/.next/static/chunks/{2hxatwkh8fha9.js → 02sqxeus8w0s0.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{0tmbn9jje8ulx.js → 03ceb0qh4s52a.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{03_fxfc3849ms.css → 0ofk3im5p6gn-.css} +2 -2
- package/runtime/hub/apps/hub/.next/static/chunks/{38dg0m6sbz8hx.js → 0qhuf1a_7byq-.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{05dzzanyo20wx.js → 0u50pq99k9z_4.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{27t0b0mja1zpt.js → 0x0l4io4rdmuq.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{1ct_kocalf1mw.js → 22rj-g4qe8jny.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{22fqc0ktzjo6x.js → 23kzsoacq647n.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.1iu7q7yw-zhgt.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.26axk51fv0nvx.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.17c61zbdzi3u-.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.1at6z4kbofh3w.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1h7k3aqd68qji.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.0g4pmka8j2u20.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.07-q_h5lq3omo.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/77ce6907447ba740-s.1thpl3j71vtxe.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.30xqm3yldpj47.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.13qpbrx2rg1iz.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.42z9vm7u0i9n-.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/bfc9b7e66b1caeca-s.3hdclex1x_th1.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.1v7x_qdpnbwoz.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.27korwsf9c79u.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/f7cb89c1bcef4d27-s.3ajilh452uwtx.woff2 +0 -0
- package/runtime/hub/apps/hub/{auth-3K7Z7LVZ.js → auth-475LXXJA.js} +2 -2
- package/runtime/hub/apps/hub/{auth-config-G23WLTGN.js → auth-config-SPDXLHDX.js} +2 -2
- package/runtime/hub/apps/hub/{chunk-GGYNXEOD.js → chunk-3WRZVFOY.js} +521 -189
- package/runtime/hub/apps/hub/{chunk-RNUUXV2X.js → chunk-67LASBXO.js} +107 -42
- package/runtime/hub/apps/hub/{chunk-VQUZQ5MH.js → chunk-6ND54VG2.js} +161 -7
- package/runtime/hub/apps/hub/{chunk-7B4VZTUH.js → chunk-7XCRB6GS.js} +96 -82
- package/runtime/hub/apps/hub/{chunk-BEK5SYX5.js → chunk-DAMV47HM.js} +6 -0
- package/runtime/hub/apps/hub/{chunk-RAIBV7TH.js → chunk-FPLCH64R.js} +1 -1
- package/runtime/hub/apps/hub/{chunk-64GCEGJK.js → chunk-KJHUOHQ5.js} +4 -4
- package/runtime/hub/apps/hub/{chunk-OWAJTG3G.js → chunk-XGNMYL3X.js} +11 -11
- package/runtime/hub/apps/hub/{chunk-FWMBOJTZ.js → chunk-YBYUNY5P.js} +7 -7
- package/runtime/hub/apps/hub/{chunk-L5XPW2AU.js → chunk-ZVLJG772.js} +24 -71
- package/runtime/hub/apps/hub/{dist-QXOLLT4Y.js → dist-2KUVFXS3.js} +19 -9
- package/runtime/hub/apps/hub/{dist-D4JO7PAL.js → dist-2PUSTW2W.js} +1 -1
- package/runtime/hub/apps/hub/{dist-I5V4YM32.js → dist-67P6KLUY.js} +2 -2
- package/runtime/hub/apps/hub/dist-7PN6FTJV.js +26176 -0
- package/runtime/hub/apps/hub/{dist-BX2OAELL.js → dist-O53WU2K6.js} +11 -3
- package/runtime/hub/apps/hub/{dist-4GYSUKN3.js → dist-ODKJZJI2.js} +7 -7
- package/runtime/hub/apps/hub/{dist-R7ZY7ZTV.js → dist-SUHXQDYN.js} +26 -6
- package/runtime/hub/apps/hub/{dist-IHHRC4JW.js → dist-UMA73Z3V.js} +7 -7
- package/runtime/hub/apps/hub/{dist-LZWGXCOQ.js → dist-VHXEBJX5.js} +9 -7
- package/runtime/hub/apps/hub/{dist-TWRKOELH.js → dist-XOMGXTMI.js} +26 -71
- package/runtime/hub/apps/hub/{dist-33UWJJFG.js → dist-ZSRBJAWL.js} +27 -10
- package/runtime/hub/apps/hub/{hub-token-EIS7FVL2.js → hub-token-VMKQH4IY.js} +2 -2
- package/runtime/hub/apps/hub/{hub-worker-2LVMIS5H.js → hub-worker-5WDNMFCP.js} +9 -9
- package/runtime/hub/apps/hub/{manager-pty-XCGH6AUC-VJSNM3A6.js → manager-pty-XCGH6AUC-ZYM2ENVR.js} +4 -4
- package/runtime/hub/apps/hub/package.json +2 -1
- package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-LZNKUFC7.js → prepared-state-FO74QUCP-L5OKEU42.js} +4 -4
- package/runtime/hub/apps/hub/server.js +296 -123
- package/runtime/relay/bin.cjs +131 -33
- package/runtime/vercel/ctl.cjs +138 -40
- package/dist/_cloud-attach-F25HDXWB.js +0 -32
- package/dist/chunk-3HJQZQ76.js.map +0 -1
- package/dist/chunk-52OXHGKQ.js.map +0 -1
- package/dist/chunk-7AMMBUEW.js.map +0 -1
- package/dist/chunk-AXAMPAP3.js.map +0 -1
- package/dist/chunk-FM7PHYBD.js.map +0 -1
- package/dist/chunk-HS6B3CE4.js.map +0 -1
- package/dist/chunk-IJFP7N34.js.map +0 -1
- package/dist/chunk-KWDFEQO6.js.map +0 -1
- package/dist/chunk-OVLM2EZV.js.map +0 -1
- package/dist/chunk-R7J7WFM5.js.map +0 -1
- package/dist/chunk-U4Z5OOOD.js.map +0 -1
- package/dist/chunk-U7J7JT6R.js.map +0 -1
- package/dist/chunk-WJ4MZESJ.js.map +0 -1
- package/dist/chunk-YZZKWZO2.js.map +0 -1
- package/dist/chunk-Z6LK4P54.js.map +0 -1
- package/dist/custody-client-F3OAOAC7.js +0 -18
- package/dist/dist-XZXZSTTA.js.map +0 -1
- package/dist/hub-GHFEW3K2.js +0 -40
- package/dist/prepare-O4BUJIOQ.js +0 -48
- package/dist/prepared-custody-UTSSUTXF.js +0 -40
- package/dist/registry-IPDCZDNW.js +0 -18
- package/dist/relay-P5CXEGAZ.js +0 -23
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-0scfb._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00a4c3f._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00tx9tm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02-rdq0._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02kc2og._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02sueng._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02ywgcg._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03_xi2c._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__03fxkqp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04-i6rm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04b75a4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04d3pe5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05_wgfq._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__071c-t4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07fobp5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__081d104._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08h5jgt._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09grt_m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09jbqbh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09y4pdw._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_t5f3m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_xcmfv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a6e0vs._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a8ere2._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0azx8z8._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bok80z._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bv_k0d._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c1o4qr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c5mzbr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cc5lpl._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ce13qa._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cyy9az._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d34880._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dfvo5-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dtq9pr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dw7c0k._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e6_t-d._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0edd68z._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0engd-e._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0eua3wn._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ewh0df._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_4fiu._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fkjz20._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fknr6k._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fxx69a._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0g7gynv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gl-4ha._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gr6v_i._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h181r5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0h668tm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i65ptk._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0iyr5bm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j0vl7q._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jvk7x8._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jz3x26._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0k_7aj_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lc-j_n._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mid58_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mq5e3o._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0n5hh_2._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0neufba._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nqggrc._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nx6w0m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o4rocd._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0olhyt4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pe9g30._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pik2ie._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qkpqk7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qt_r6a._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qudrhk._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r0v_c_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0r4qvs6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0rf4g7g._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s4vdow._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s5ck78._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0scmgnp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sn7av8._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0soiiqi._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sz5p6g._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tl6p7k._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tv5sah._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0usxinp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0v5krdd._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vgxotx._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vsn71u._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0x5eodh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0x_rx1f._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xo5ak-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xt0w30._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y-rry-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y3snn7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ygnbei._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yio_n7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yxeq50._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0z2lkh_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zd42wf._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zi14f-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zxv1ul._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zyutsi._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-90xgw._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__106reiu._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__112hqrh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__113ijth._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11qbpq8._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11xey3v._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__121vdp5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12b40mo._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12i61td._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12tjfss._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__139ha9-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13dk6en._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13j6tof._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13nfpq5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14opl53._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__14pxg1e._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15gc6-s._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15k2wx5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__15umca-._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__162e1zj._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__166_uek._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16pmnr6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__174fgjv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17df14g._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17jzikc._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17y9pmx._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18pwzaw._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__192ppv6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__198-esg._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19al998._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19m88da._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19nlcuf._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_4v0mh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_dmv53._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_xgm2e._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_zs8b5._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1abclgc._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1aboxh4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bh1dxz._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cb0_wq._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cbn_et._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cggpv7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cnhbta._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cpqqag._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cs6d52._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d-v8kt._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d-yop_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d60scp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dhzd1_._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1diw0ei._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dogvkr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ectuq4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ehcanu._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1em476i._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9l4qz._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4akof._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i9bs12._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jbtokr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jelopi._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1jnfrsy._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1k934r7._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kt9_sy._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1kv_jgw._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1l_uof1._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lareew._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lgn5_b._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lnherq._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lyqerb._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1me3irq._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mh1-lh._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mk_lpu._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1muxcy9._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mx0_-f._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1no5aw3._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1noanyg._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ntihlm._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ob9yn9._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1odu62n._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1oy_ypa._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1p6khix._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pg2kzv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pk410t._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pta31u._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pz2967._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q9ds80._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qt1i63._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rr4obb._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rzg628._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sdw2ls._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1szemyb._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1t88a94._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1tfkm3m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1txvsbk._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1uhiv-4._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1utvnlp._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vc_bp9._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1w25h0t._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wc9zwl._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ws4ucz._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wx5ltv._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xi8hyy._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xl-uhz._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xlddup._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y3gko6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1y9wbb2._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ypmy86._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ysubik._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1yzmh_p._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1z7mgd6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ztoaz1._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__2019yzl._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20opvks._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ygien._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0bv8m80._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1ay9-4x._.js +0 -3
- package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.29yke99gs9qpn.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.0o-3_g79811ob.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.226pwps5o-gq_.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.15orukf5wyxb5.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1u30mmyq6lnsd.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.2vemzm0itqzfy.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.1i-sca43-qwng.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.40sczeszzbjw1.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.0ngr-xkgqz1kf.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.1qc6dx89jd2qv.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.3cb5lpr2l6xud.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.0oace-s_gkfks.woff2 +0 -0
- package/runtime/hub/apps/hub/dist-25JLZKGB.js +0 -1278
- /package/dist/{_cloud-attach-F25HDXWB.js.map → _cloud-attach-KEFEQ2YH.js.map} +0 -0
- /package/dist/{chunk-L55DASHB.js.map → chunk-2SKTXZGX.js.map} +0 -0
- /package/dist/{chunk-BKOKMZNK.js.map → chunk-3QTWB66F.js.map} +0 -0
- /package/dist/{chunk-VSWIJHCH.js.map → chunk-5ZBNVZSU.js.map} +0 -0
- /package/dist/{chunk-IX7S6NJR.js.map → chunk-72LKKHPI.js.map} +0 -0
- /package/dist/{chunk-7TPGIQOP.js.map → chunk-BORN6FJK.js.map} +0 -0
- /package/dist/{chunk-77IAHAQY.js.map → chunk-FBQC6TKM.js.map} +0 -0
- /package/dist/{chunk-JUTAYI2N.js.map → chunk-GCUJUUNE.js.map} +0 -0
- /package/dist/{chunk-S77B5POZ.js.map → chunk-GKBAEX2P.js.map} +0 -0
- /package/dist/{chunk-XKUF67M6.js.map → chunk-GT7VDGNV.js.map} +0 -0
- /package/dist/{chunk-AGHR7XOJ.js.map → chunk-HOJKUVH6.js.map} +0 -0
- /package/dist/{chunk-PENAXZMR.js.map → chunk-INJIW6PP.js.map} +0 -0
- /package/dist/{chunk-OYWP4SII.js.map → chunk-IZPNDZXI.js.map} +0 -0
- /package/dist/{chunk-U3BCLGTH.js.map → chunk-JHS4ROJH.js.map} +0 -0
- /package/dist/{chunk-CWN4DJYI.js.map → chunk-JVZZPJ2C.js.map} +0 -0
- /package/dist/{chunk-KOGQNHV3.js.map → chunk-KA67IGEG.js.map} +0 -0
- /package/dist/{chunk-OTAYAFYF.js.map → chunk-KRF2JODE.js.map} +0 -0
- /package/dist/{chunk-SDWKZLGP.js.map → chunk-LFMJXQDL.js.map} +0 -0
- /package/dist/{chunk-2U4HKKM7.js.map → chunk-NSYCXUN5.js.map} +0 -0
- /package/dist/{chunk-5JDGKHWH.js.map → chunk-QALBGVPR.js.map} +0 -0
- /package/dist/{chunk-JCDC5S32.js.map → chunk-QDBDDJKT.js.map} +0 -0
- /package/dist/{chunk-ZPFTFIKP.js.map → chunk-S5WFZHC5.js.map} +0 -0
- /package/dist/{chunk-PVZUQTLW.js.map → chunk-VUTEVIYG.js.map} +0 -0
- /package/dist/{chunk-OWCTDO67.js.map → chunk-WVBTRK6R.js.map} +0 -0
- /package/dist/{chunk-4IQGL4KD.js.map → chunk-ZMKRUD6J.js.map} +0 -0
- /package/dist/{chunk-J2AD7MLR.js.map → chunk-ZQWOZ5BL.js.map} +0 -0
- /package/dist/{cli-3WZP5JHA.js.map → cli-B4VVKKYV.js.map} +0 -0
- /package/dist/{cli-6IPZVUXF.js.map → cli-ENMWXMKO.js.map} +0 -0
- /package/dist/{cli-E2ZC5S4U.js.map → cli-F2UBHH7H.js.map} +0 -0
- /package/dist/{cli-QIBPY2HQ.js.map → cli-JKSQBGRO.js.map} +0 -0
- /package/dist/{cli-QSV6K33P.js.map → cli-MIIWRJDK.js.map} +0 -0
- /package/dist/{control-plane-I2QKMHPK.js.map → control-plane-R4ELXZHL.js.map} +0 -0
- /package/dist/{cp-hub-upload-GW566DGZ.js.map → cp-hub-upload-IUQVJGOW.js.map} +0 -0
- /package/dist/{custody-client-F3OAOAC7.js.map → custody-client-PVDBOT7Y.js.map} +0 -0
- /package/dist/{deploy-hetzner-IIAXES7B.js.map → deploy-hetzner-KY6KWN4M.js.map} +0 -0
- /package/dist/{dist-3EZQDIOD.js.map → dist-2QGMP2UI.js.map} +0 -0
- /package/dist/{dist-44RSFOGQ.js.map → dist-5MCQFGLX.js.map} +0 -0
- /package/dist/{dist-4K66F4UR.js.map → dist-EIVYC2MR.js.map} +0 -0
- /package/dist/{dist-VKKHIHCZ.js.map → dist-JWXPKGPZ.js.map} +0 -0
- /package/dist/{dist-5RMJLMYG.js.map → dist-ONAAPVBD.js.map} +0 -0
- /package/dist/{dist-HIQCE4H2.js.map → dist-OXLTCVA2.js.map} +0 -0
- /package/dist/{dist-IXPKVU3R.js.map → dist-PBO4UHJK.js.map} +0 -0
- /package/dist/{dist-SZTW3RMB.js.map → dist-RCBMUPVR.js.map} +0 -0
- /package/dist/{dist-WR2HYACA.js.map → dist-TD74GXLP.js.map} +0 -0
- /package/dist/{dist-WTPYXNRH.js.map → dist-VCZ3LZPJ.js.map} +0 -0
- /package/dist/{dist-YED5YJQN.js.map → dist-WGV7LRDC.js.map} +0 -0
- /package/dist/{host-reach-drainer-A4ZO6UKT.js.map → host-reach-drainer-AZYC6UIB.js.map} +0 -0
- /package/dist/{host-session-POJP4WO6.js.map → host-session-EGUDGE4R.js.map} +0 -0
- /package/dist/{hub-GHFEW3K2.js.map → hub-76RHPA7X.js.map} +0 -0
- /package/dist/{hub-adopt-YR7S5TNB.js.map → hub-adopt-5G7SKI2E.js.map} +0 -0
- /package/dist/{hub-api-client-BUQDTSQ3.js.map → hub-api-client-WPZTG5AT.js.map} +0 -0
- /package/dist/{hub-docker-target-XA5U2ZU5.js.map → hub-docker-target-CNJHYH4B.js.map} +0 -0
- /package/dist/{manager-pty-XCGH6AUC-EZML75UO.js.map → manager-pty-XCGH6AUC-O3UNISN2.js.map} +0 -0
- /package/dist/{plugin-update-BIPJZA24.js.map → plugin-update-UZYPWL4N.js.map} +0 -0
- /package/dist/{prepare-O4BUJIOQ.js.map → prepare-4GOTJXQL.js.map} +0 -0
- /package/dist/{prepared-custody-UTSSUTXF.js.map → prepared-custody-4YJ4ZT7J.js.map} +0 -0
- /package/dist/{prepared-state-FO74QUCP-4WLAYPEO.js.map → prepared-state-FO74QUCP-GUIPQORN.js.map} +0 -0
- /package/dist/{publish-credentials-N2JD2D3A.js.map → publish-credentials-RLRLNL33.js.map} +0 -0
- /package/dist/{registry-IPDCZDNW.js.map → registry-QMHCNR5X.js.map} +0 -0
- /package/dist/{relay-P5CXEGAZ.js.map → relay-VBWFCWKK.js.map} +0 -0
- /package/dist/{remote-docker-share-GIH6JNKY.js.map → remote-docker-share-TKG7SXHX.js.map} +0 -0
- /package/dist/{tool-grant-push-7K765QKW.js.map → tool-grant-push-V7E3Y2W6.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{TMo35nbBXDtyGUs4P3Q_H → 2QUBvK0xJqbyGzVe1RBzl}/_ssgManifest.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../packages/config/src/agents.ts","../../../packages/config/src/agent-plugins.ts","../../../packages/config/src/paths.ts","../../../packages/config/src/parse.ts","../../../packages/config/src/provider-spec.ts","../../../packages/config/src/providers.ts","../../../packages/config/src/types.ts","../../../packages/config/src/load.ts","../../../packages/config/src/agent-settings.ts","../../../packages/config/src/image.ts","../../../packages/config/src/checkpoint.ts","../../../packages/config/src/size.ts","../../../packages/config/src/location.ts","../../../packages/config/src/daytona.ts","../../../packages/config/src/file-lock.ts","../../../packages/config/src/write.ts","../../../packages/config/src/carry-grant.ts","../../../packages/config/src/tools.ts"],"sourcesContent":["/**\n * The agents this build knows about, as far as CONFIG is concerned.\n *\n * WHY A TABLE HERE RATHER THAN AN IMPORT. `@agentbox/config` has no internal\n * dependencies — every package depends on it, never the reverse — so it cannot\n * read the agent registry to learn what exists. This is the same arrangement\n * `providers.ts` uses for `PROVIDERS`: the identity is declared here as data,\n * the behavior lives in the package, and the two are tied together only by the\n * `id` string.\n *\n * Copied rather than imported means it can drift, so it is drift-tested from a\n * package that can see both (`apps/cli`, which reaches the registry and this\n * table) — exactly where `provider-descriptors.test.ts` lives and for the same\n * reason.\n *\n * Keep this MINIMAL. It is not a second registry: it holds only what generating\n * config keys needs. Anything else about an agent belongs on its spec row.\n */\n\n/** What config needs to know to generate one agent's keys. */\nexport interface AgentConfigKind {\n /** Canonical agent id — must match the registry row's `id`. */\n readonly id: string;\n /** Default tmux session name, the generated `<id>.sessionName` default. */\n readonly defaultSessionName: string;\n /**\n * Whether this agent has a \"never prompt me\" launch flag.\n *\n * Not universal: OpenCode has none, which is why generating\n * `<id>.dangerouslySkipPermissions` for every agent would create a key that\n * silently does nothing. The flag itself lives on the agent, not here.\n */\n readonly hasSkipPermissions: boolean;\n /** Description for the generated `<id>.dangerouslySkipPermissions` key. */\n readonly skipPermissionsDesc?: string;\n /**\n * Description for the generated `box.isolate<Id>Config` key. Defaults to\n * naming `~/.<id>`, which is right for every agent whose config is a single\n * dotfolder — OpenCode's is not, hence the override.\n */\n readonly isolateVolumeDesc?: string;\n /**\n * Mirror of the registry row's `caps.surface`. Absent means `'tui'`.\n *\n * Config needs it for one decision: a `'service'` agent gets NO\n * `box.isolate<Id>Config` key. Its config volume is always per-box — two\n * daemons sharing a state dir share one identity — so the flag is derived\n * from the surface at create time and a key that could be set to `false`\n * would be one the product ignores.\n */\n readonly surface?: 'tui' | 'service';\n /**\n * Settings this agent declares for itself, mirroring\n * `AgentSyncSpec.settings`. Each generates a `<id>.<key>` config key.\n *\n * Mirrored rather than imported for the reason this whole table exists, and\n * drift-tested from `apps/cli` against the registry. An agent installed from\n * an npm package contributes its settings at runtime instead — see\n * `agent-plugins.ts` — so this array only ever covers the built-ins.\n */\n readonly settings?: readonly AgentConfigSetting[];\n}\n\n/**\n * One declared agent setting, as far as CONFIG is concerned. The registry's\n * `AgentSettingSpec` carries one more field (`affectsBake`) that only the\n * fingerprint fold cares about; everything here is what generating a key needs.\n */\nexport interface AgentConfigSetting {\n readonly key: string;\n readonly type: 'string' | 'bool' | 'enum' | 'enum-list';\n readonly enumValues?: readonly string[];\n readonly default: string | boolean;\n readonly description: string;\n readonly advanced?: boolean;\n}\n\nexport const AGENT_KINDS = [\n {\n id: 'claude',\n defaultSessionName: 'claude',\n hasSkipPermissions: true,\n skipPermissionsDesc:\n 'Launch claude in new boxes with --dangerously-skip-permissions (auto-accept tool use). On by default: a box is already an isolated sandbox, so the prompt only slows the agent down. Set false to be asked.',\n settings: [\n {\n key: 'install',\n type: 'enum',\n enumValues: ['native', 'npm'],\n default: 'native',\n description:\n \"How Claude Code is installed into a box image: `native` runs Anthropic's installer (the recommended path), `npm` installs @anthropic-ai/claude-code. Use `npm` on hosts whose egress IP the native CDN 403s. Bake-time - changing it re-derives the agent layer.\",\n },\n {\n key: 'tui',\n type: 'enum',\n enumValues: ['default', 'fullscreen', 'auto'],\n default: 'default',\n description:\n \"Terminal renderer Claude Code uses inside a box. Claude's `fullscreen` renderer repaints differentially and leaves stale characters in the blank areas of the screen over a network transport - visible while scrolling, cleared only by resizing the terminal. Boxes pin the classic renderer; set `fullscreen` to opt back in, or `auto` to let Claude decide. Rides the launch, so it takes effect on the agent's next start.\",\n },\n ],\n },\n {\n id: 'codex',\n defaultSessionName: 'codex',\n hasSkipPermissions: true,\n skipPermissionsDesc:\n 'Launch codex in new boxes with --dangerously-bypass-approvals-and-sandbox (auto-accept tool use). On by default for the same reason as claude; set false to be asked.',\n },\n {\n id: 'opencode',\n defaultSessionName: 'opencode',\n hasSkipPermissions: false,\n isolateVolumeDesc: 'Use a per-box OpenCode config/data volume instead of the shared one.',\n settings: [\n {\n key: 'modelAuth',\n type: 'enum-list',\n enumValues: ['none', 'codex'],\n default: 'none',\n description:\n 'Which host model-provider logins a new opencode box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create.',\n },\n ],\n },\n {\n id: 'pi',\n defaultSessionName: 'pi',\n // Pi has no permission prompts AT ALL -- by design it runs with full\n // permissions and its own docs recommend a container -- so there is no\n // bypass flag, and generating the key would create one that does nothing.\n hasSkipPermissions: false,\n isolateVolumeDesc:\n 'Use a per-box Pi config/data volume (~/.pi/agent) instead of the shared one.',\n settings: [\n {\n key: 'modelAuth',\n type: 'enum-list',\n enumValues: ['none', 'codex'],\n default: 'none',\n description:\n 'Which host model-provider logins a new pi box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box and imports it as `openai-codex`. `none` leaves model auth to the box, and is only valid on its own. `--model-auth` overrides per create.',\n },\n ],\n },\n {\n id: 'openclaw',\n // No tmux session exists for a daemon; the key is generated anyway because\n // every agent block carries one, and the registry row declares the same\n // name. It is the unit name that matters for openclaw, and that lives on\n // the spec's `service` block.\n defaultSessionName: 'openclaw',\n // A gateway has no tool-approval prompts to bypass.\n hasSkipPermissions: false,\n surface: 'service',\n settings: [\n {\n key: 'modelAuth',\n type: 'enum-list',\n enumValues: ['none', 'codex'],\n default: 'none',\n description:\n 'Which host model-provider logins a new OpenClaw box is seeded with, comma-separated. `codex` copies your Codex (ChatGPT) OAuth login into the box, where OpenClaw imports it and refreshes it independently from then on. `none` leaves model auth for you to configure in the box, and is only valid on its own. `--model-auth` overrides per create.',\n },\n ],\n },\n // The hidden demo agent (see `@agentbox/agent-example`). Present so the\n // generated keys cover it too — an agent absent from this table would be the\n // one thing still needing a hand edit.\n { id: 'example', defaultSessionName: 'example', hasSkipPermissions: false },\n] as const satisfies readonly AgentConfigKind[];\n\n/** Every agent id config knows about. */\nexport const AGENT_KIND_NAMES: readonly string[] = AGENT_KINDS.map((a) => a.id);\n\n/** True for an agent this build's config knows about. */\nexport function isAgentConfigKind(name: string): boolean {\n return AGENT_KIND_NAMES.includes(name);\n}\n","/**\n * The settings declared by agents installed from an npm package.\n *\n * WHY THIS DUPLICATES A READ THAT ALREADY EXISTS. `@agentbox/agent-registry`\n * reads the same file into full `AgentSyncSpec`s, but it depends on\n * `@agentbox/config`, so config cannot ask it. Config needs one narrow fact —\n * which `<agent>.<setting>` keys exist — so it reads the same file for that and\n * nothing else. `AGENTS_FILE` is shared (see `paths.ts`), so the path itself is\n * not duplicated.\n *\n * Degrades to nothing on ANY problem: a missing file, unreadable JSON, a\n * hand-edited entry. An unaddressable setting is a bad day; a config layer that\n * throws on load bricks every command.\n */\n\nimport { readFileSync } from 'node:fs';\nimport { AGENTS_FILE } from './paths.js';\nimport type { AgentConfigSetting } from './agents.js';\n\n/** One installed agent's contribution to the key registry. */\nexport interface PluginAgentSettings {\n readonly id: string;\n readonly settings: readonly AgentConfigSetting[];\n}\n\nfunction isSetting(v: unknown): v is AgentConfigSetting {\n if (!v || typeof v !== 'object') return false;\n const s = v as Record<string, unknown>;\n if (typeof s['key'] !== 'string' || s['key'].length === 0) return false;\n // A dotted leaf would generate `agent.a.b`, which the parser reads as a\n // nested branch that nothing materialises.\n if (s['key'].includes('.')) return false;\n if (\n s['type'] !== 'string' &&\n s['type'] !== 'bool' &&\n s['type'] !== 'enum' &&\n s['type'] !== 'enum-list'\n ) {\n return false;\n }\n if (s['type'] === 'enum' || s['type'] === 'enum-list') {\n const vals = s['enumValues'];\n if (!Array.isArray(vals) || vals.length === 0 || vals.some((x) => typeof x !== 'string')) {\n return false;\n }\n if (typeof s['default'] !== 'string' || !(vals as string[]).includes(s['default']))\n return false;\n } else if (typeof s['default'] !== (s['type'] === 'bool' ? 'boolean' : 'string')) {\n return false;\n }\n return typeof s['description'] === 'string';\n}\n\n/**\n * Read the installed agents' declared settings.\n *\n * Resolved once at module load by the key registry, exactly like\n * `AGENT_SPECS`: ~40 readers treat the registry as a constant, and an agent\n * appearing halfway through a command would be far worse than one that appears\n * on the next. Every CLI invocation is a fresh process.\n */\nexport function pluginAgentSettings(path: string = AGENTS_FILE): PluginAgentSettings[] {\n let parsed: unknown;\n try {\n parsed = JSON.parse(readFileSync(path, 'utf8'));\n } catch {\n return [];\n }\n if (!parsed || typeof parsed !== 'object') return [];\n const agents = (parsed as Record<string, unknown>)['agents'];\n if (!Array.isArray(agents)) return [];\n\n const out: PluginAgentSettings[] = [];\n const seen = new Set<string>();\n for (const record of agents) {\n if (!record || typeof record !== 'object') continue;\n const specs = (record as Record<string, unknown>)['specs'];\n if (!specs || typeof specs !== 'object') continue;\n for (const [id, spec] of Object.entries(specs as Record<string, unknown>)) {\n if (seen.has(id) || !spec || typeof spec !== 'object') continue;\n const declared = (spec as Record<string, unknown>)['settings'];\n if (!Array.isArray(declared)) continue;\n const settings = declared.filter(isSetting);\n if (settings.length === 0) continue;\n seen.add(id);\n out.push({ id, settings });\n }\n }\n return out;\n}\n","import { createHash } from 'node:crypto';\nimport { realpath, stat } from 'node:fs/promises';\nimport { homedir } from 'node:os';\nimport { basename, dirname, join, resolve } from 'node:path';\nimport type { ConfigScope } from './types.js';\n\nexport const STATE_DIR = join(homedir(), '.agentbox');\nexport const GLOBAL_CONFIG_FILE = join(STATE_DIR, 'config.yaml');\nexport const PROJECTS_DIR = join(STATE_DIR, 'projects');\n/**\n * Where `agentbox agent add` snapshots an installed agent package's descriptor.\n *\n * The path lives HERE, in the zero-internal-dep leaf, rather than in\n * `@agentbox/agent-registry` where the reader lives: config generates a\n * `<agent>.<setting>` key for a plugin agent's declared settings, and it cannot\n * import the registry (the registry imports config). The registry re-exports\n * this constant so there is still exactly one spelling of the path.\n */\nexport const AGENTS_FILE = join(STATE_DIR, 'agents.json');\nexport const WORKSPACE_CONFIG_BASENAME = 'agentbox.yaml';\n\nexport interface ProjectRoot {\n /** Absolute path to the resolved project root (host filesystem). */\n root: string;\n hasAgentboxYaml: boolean;\n}\n\n/**\n * Walk up from `cwd` until we find an `agentbox.yaml`. That dir is the\n * \"project\". If no ancestor has one, we fall back to `cwd` (per spec) so\n * `agentbox config` still does something sane in dirs without a workspace\n * file. The returned path is always absolute and **symlink-canonicalised**\n * via `realpath` — without this, macOS's `/tmp` symlink to `/private/tmp`\n * makes `findProjectRoot('/tmp/x')` (at create time, --workspace) and\n * `findProjectRoot(process.cwd())` (at resolve time, the same dir) return\n * different roots, breaking the per-project box index match.\n */\nexport async function findProjectRoot(cwd: string): Promise<ProjectRoot> {\n const start = await canonicalize(cwd);\n let dir = start;\n // Defensive cap on iterations: filesystem roots end with `dirname(x) === x`.\n for (let i = 0; i < 64; i++) {\n if (await fileExists(join(dir, WORKSPACE_CONFIG_BASENAME))) {\n return { root: dir, hasAgentboxYaml: true };\n }\n const parent = dirname(dir);\n if (parent === dir) break;\n dir = parent;\n }\n return { root: start, hasAgentboxYaml: false };\n}\n\nasync function canonicalize(p: string): Promise<string> {\n const abs = resolve(p);\n // realpath only works for paths that exist. cwd and create-time\n // workspaces always do; fall back to the resolved (non-canonicalised)\n // path for anything else (e.g. config get from a deleted dir).\n try {\n return await realpath(abs);\n } catch {\n return abs;\n }\n}\n\nasync function fileExists(p: string): Promise<boolean> {\n try {\n const st = await stat(p);\n return st.isFile();\n } catch {\n return false;\n }\n}\n\n/**\n * SHA-1 (first 16 hex chars) of the *normalised* absolute path. We strip a\n * single trailing slash so `/foo/` and `/foo` hash identically. Case is\n * preserved — macOS APFS is case-preserving and so is the user's intent.\n */\nexport function hashProjectPath(absPath: string): string {\n const normalised = absPath.length > 1 && absPath.endsWith('/') ? absPath.slice(0, -1) : absPath;\n return createHash('sha1').update(normalised).digest('hex').slice(0, 16);\n}\n\n/**\n * Make `raw` safe to embed as the mnemonic half of an on-disk dir segment or a\n * Docker tag repo. Lowercased so docker tag repos stay valid; `-` collapses to\n * `_` so the single `-` between hash and mnemonic remains the only one (which\n * is what `listProjectsConfigured` parses on). Bounded length, never empty.\n */\nexport function sanitizeMnemonic(raw: string): string {\n return (\n raw\n .toLowerCase()\n .replace(/-/g, '_')\n .replace(/[^a-z0-9_]+/g, '_')\n .replace(/_+/g, '_')\n .replace(/^_+|_+$/g, '')\n .slice(0, 32) || 'unnamed'\n );\n}\n\n/**\n * On-disk dir segment for a project under `~/.agentbox/projects/` and\n * `~/.agentbox/checkpoints/`: `<hash>-<mnemonic>`. The hash stays the\n * canonical key; the trailing mnemonic is decorative — readers parse the hash\n * as the leading 16 hex chars and ignore the suffix.\n */\nexport function projectDirSegment(absPath: string): string {\n return `${hashProjectPath(absPath)}-${sanitizeMnemonic(basename(absPath))}`;\n}\n\nexport function projectConfigDir(absPath: string): string {\n return join(PROJECTS_DIR, projectDirSegment(absPath));\n}\n\nexport function projectConfigFile(absPath: string): string {\n return join(projectConfigDir(absPath), 'config.yaml');\n}\n\nexport function projectMetaFile(absPath: string): string {\n return join(projectConfigDir(absPath), 'meta.json');\n}\n\nexport function workspaceConfigFile(workspacePath: string): string {\n return join(workspacePath, WORKSPACE_CONFIG_BASENAME);\n}\n\n/**\n * Resolve a file path for a given scope. For `global`, no cwd is needed;\n * for `project`, `cwd` selects which project hash. Workspace path uses the\n * resolved project root (the dir holding `agentbox.yaml`, or cwd as fallback).\n */\nexport async function configPathFor(\n scope: ConfigScope | 'workspace',\n cwd: string,\n): Promise<string> {\n if (scope === 'global') return GLOBAL_CONFIG_FILE;\n const root = await findProjectRoot(cwd);\n if (scope === 'project') return projectConfigFile(root.root);\n return workspaceConfigFile(root.root);\n}\n\n/**\n * Host-side host-tool grant files. Kept out of `config.yaml` on purpose:\n * `KEY_REGISTRY` is a closed registry of typed scalar keys, and the grant\n * list is an open map whose entries are written by an approval flow, not\n * typed by hand. Layered the same way as config — a global grant applies\n * everywhere, a project grant only to that project. See docs/host-tools.md.\n */\nexport const GLOBAL_TOOLS_FILE = join(STATE_DIR, 'tools.yaml');\n\nexport function projectToolsFile(absPath: string): string {\n return join(projectConfigDir(absPath), 'tools.yaml');\n}\n\n/**\n * Host-side `carry:` grant file. Same trust split as the tool grants above and\n * kept beside them: an `agentbox.yaml` `carry:` block only *requests* the copy,\n * and the host's approval of a given file list lands here. Project-scoped only —\n * a carry list is a property of one project, so a global grant would name files\n * that mean nothing anywhere else.\n */\nexport function projectCarryFile(absPath: string): string {\n return join(projectConfigDir(absPath), 'carry.yaml');\n}\n","import { parse as parseYaml } from 'yaml';\nimport { parseProviderSpec } from './provider-spec.js';\nimport { KEY_REGISTRY, type KeyDescriptor, type UserConfig, UserConfigError } from './types.js';\n\nfunction isPlainObject(v: unknown): v is Record<string, unknown> {\n return typeof v === 'object' && v !== null && !Array.isArray(v);\n}\n\n/** Keys removed in a rename. Surfaced with a migration hint instead of a bare \"unknown key\". */\nconst RENAMED_KEYS: ReadonlyMap<string, string> = new Map([\n ['box.snapshot', 'box.hostSnapshot'],\n // Moved under the agent's own block when settings became a declared,\n // per-agent mechanism. Kept CLAUDE-named because they are Claude-specific;\n // what generalised is the plumbing, not the name.\n ['box.claudeInstall', 'claude.install'],\n ['box.claudeTui', 'claude.tui'],\n]);\n\nexport interface ParseOptions {\n /**\n * Called once per unknown key/section. Unknown keys are IGNORED, not fatal:\n * this parser is bundled into provider plugins (`@madarco/agentbox-provider-sdk`\n * inlines `@agentbox/config`), so a plugin pinned to an older SDK parses the\n * user's config with a stale KEY_REGISTRY. Throwing there would mean every\n * config key we add breaks every already-published plugin until it republishes.\n * Type errors and renamed keys still throw — only *unknown* keys degrade to a\n * warning.\n */\n onWarning?: (message: string) => void;\n}\n\ninterface BranchSpec {\n name: string;\n /** Map of leaf-key (dot-suffix) → descriptor whose `key` starts with this branch. */\n leaves: Map<string, KeyDescriptor>;\n}\n\nconst BRANCHES: Map<string, BranchSpec> = (() => {\n const out = new Map<string, BranchSpec>();\n for (const desc of KEY_REGISTRY) {\n const idx = desc.key.indexOf('.');\n if (idx < 0) {\n throw new Error(`KEY_REGISTRY entry ${desc.key} must use dot-path form (branch.leaf)`);\n }\n const branch = desc.key.slice(0, idx);\n const leaf = desc.key.slice(idx + 1);\n let entry = out.get(branch);\n if (!entry) {\n entry = { name: branch, leaves: new Map() };\n out.set(branch, entry);\n }\n entry.leaves.set(leaf, desc);\n }\n return out;\n})();\n\n/**\n * Coerce a typed YAML scalar (already typed by the YAML parser) into the\n * descriptor's expected type. Strings from the CLI go through `coerceFromString`\n * instead — that path accepts e.g. \"true\" or \"120000\".\n */\nfunction coerceTypedValue(raw: unknown, desc: KeyDescriptor, where: string): unknown {\n if (raw === null) {\n throw new UserConfigError(`${where} must not be null (use \\`agentbox config unset\\` to clear)`);\n }\n switch (desc.type) {\n case 'bool':\n if (typeof raw !== 'boolean') {\n throw new UserConfigError(`${where} must be a boolean (got ${typeof raw})`);\n }\n return raw;\n case 'string':\n if (typeof raw !== 'string') {\n throw new UserConfigError(`${where} must be a string (got ${typeof raw})`);\n }\n if (raw.length === 0) {\n throw new UserConfigError(`${where} must not be empty`);\n }\n return raw;\n case 'int':\n if (typeof raw !== 'number' || !Number.isInteger(raw)) {\n throw new UserConfigError(`${where} must be an integer (got ${String(raw)})`);\n }\n return raw;\n case 'enum':\n if (typeof raw !== 'string' || !enumValueAllowed(desc, raw)) {\n throw new UserConfigError(\n `${where} must be one of: ${desc.enumValues!.join(', ')}${desc.allowProviderSpec ? ' (or a `docker:<host>` spec)' : ''} (got ${String(raw)})`,\n );\n }\n return raw;\n case 'enum-list': {\n if (typeof raw !== 'string') {\n throw new UserConfigError(`${where} must be a comma-separated string (got ${String(raw)})`);\n }\n const unknown = enumListMembers(raw).filter((m) => !desc.enumValues!.includes(m));\n if (unknown.length > 0) {\n throw new UserConfigError(\n `${where}: unknown ${unknown.length === 1 ? 'value' : 'values'} ${unknown.join(', ')} — pick from: ${desc.enumValues!.join(', ')}`,\n );\n }\n return raw;\n }\n }\n}\n\n/**\n * Enum membership, plus the one deliberate widening: a `box.provider` may hold a\n * host-qualified `docker:<alias>` spec. Parsed rather than pattern-matched so the\n * accepted shapes cannot drift from what the CLI and hub actually resolve.\n */\n/**\n * Split an `enum-list` value into its members. Trims, drops empties, dedupes.\n *\n * Spelled here rather than imported: `@agentbox/config` is a leaf package with\n * one dependency, and depending on `@agentbox/core` for four lines would invert\n * the layering that keeps it loadable from anywhere. Mirrors\n * `enumListMembers` in `@agentbox/core`.\n */\nfunction enumListMembers(raw: string): string[] {\n const seen = new Set<string>();\n for (const part of raw.split(',')) {\n const v = part.trim();\n if (v.length > 0) seen.add(v);\n }\n return [...seen];\n}\n\nfunction enumValueAllowed(desc: KeyDescriptor, raw: string): boolean {\n if (desc.enumValues!.includes(raw)) return true;\n if (!desc.allowProviderSpec) return false;\n try {\n const spec = parseProviderSpec(raw);\n return spec.remoteHost !== undefined && desc.enumValues!.includes(spec.name);\n } catch {\n return false;\n }\n}\n\n/**\n * Split a host-qualified `box.provider` (`docker:hub`) into the two keys that\n * actually store it: `box.provider` (a bare provider NAME) and\n * `box.remoteDockerHost` (the engine). The spec is a usability affordance for\n * argv and for hand-written YAML; keeping it in the stored value would mean\n * every consumer re-splitting a config string, and would force `provider`'s type\n * open to `string`. Desugaring HERE — rather than only in `agentbox config set`\n * — is what lets a hand-edited `provider: docker:hub` keep working.\n *\n * Runs per LAYER, so the two keys land together in the file that named them and\n * merge as an ordinary pair afterwards.\n */\nfunction desugarProviderSpec(\n box: Record<string, unknown>,\n where: string,\n opts: ParseOptions,\n): void {\n const raw = box['provider'];\n if (typeof raw !== 'string') return;\n let spec;\n try {\n spec = parseProviderSpec(raw);\n } catch {\n // Unreachable: coerceTypedValue already rejected an unparseable spec.\n return;\n }\n if (spec.remoteHost === undefined) return;\n\n const existing = box['remoteDockerHost'];\n if (typeof existing === 'string' && existing !== spec.remoteHost) {\n // The spec wins, matching how `--provider docker:<host>` has always beaten\n // the configured default. Loud, because the losing key looks live.\n opts.onWarning?.(\n `${where}.box: provider \"${raw}\" names host \"${spec.remoteHost}\", which overrides ` +\n `remoteDockerHost \"${existing}\" in the same file`,\n );\n }\n box['provider'] = spec.name;\n box['remoteDockerHost'] = spec.remoteHost;\n}\n\n/**\n * Parse a UserConfig document text (YAML). Malformed values (wrong type, bad\n * enum, renamed key) throw UserConfigError; unknown keys are reported to\n * `opts.onWarning` and skipped (see `ParseOptions`).\n *\n * `where` is the human-readable origin for error messages, e.g. the file path.\n * Empty / whitespace-only input parses to `{}`.\n */\nexport function parseUserConfig(\n text: string,\n where: string,\n opts: ParseOptions = {},\n): Partial<UserConfig> {\n let doc: unknown;\n try {\n doc = parseYaml(text);\n } catch (err) {\n throw new UserConfigError(\n `${where}: yaml parse error: ${err instanceof Error ? err.message : String(err)}`,\n );\n }\n if (doc === null || doc === undefined) return {};\n if (!isPlainObject(doc)) {\n throw new UserConfigError(`${where}: top-level must be a mapping`);\n }\n return parseUserConfigObject(doc, where, opts);\n}\n\n/**\n * Same validation as `parseUserConfig` but starting from an already-decoded\n * object. Used when the caller has the YAML parsed (e.g. agentbox.yaml's\n * `defaults:` block).\n */\nexport function parseUserConfigObject(\n doc: unknown,\n where: string,\n opts: ParseOptions = {},\n): Partial<UserConfig> {\n if (doc === null || doc === undefined) return {};\n if (!isPlainObject(doc)) {\n throw new UserConfigError(`${where}: must be a mapping`);\n }\n\n const out: Partial<UserConfig> = {};\n for (const [branchName, branchRaw] of Object.entries(doc)) {\n // Top-level `schema` is a metadata stamp written by the loader on first\n // save (future-proofs migrations). It's not a config section and never\n // appears in `EffectiveConfig`; carry it through so writers preserve it\n // round-trip, but skip the \"must be a mapping\" / leaf checks below.\n if (branchName === 'schema') {\n if (branchRaw !== undefined && branchRaw !== null) {\n if (typeof branchRaw !== 'number' || !Number.isInteger(branchRaw)) {\n throw new UserConfigError(\n `${where}.schema: must be an integer (got ${String(branchRaw)})`,\n );\n }\n out.schema = branchRaw;\n }\n continue;\n }\n const branchSpec = BRANCHES.get(branchName);\n if (!branchSpec) {\n opts.onWarning?.(\n `${where}: unknown config section \"${branchName}\" — ignored (typo, or set by a newer agentbox)`,\n );\n continue;\n }\n if (branchRaw === null || branchRaw === undefined) continue;\n if (!isPlainObject(branchRaw)) {\n throw new UserConfigError(`${where}.${branchName}: must be a mapping`);\n }\n const branchOut = parseBranchObject(branchSpec, branchName, branchRaw, '', where, opts);\n if (branchName === 'box') desugarProviderSpec(branchOut, where, opts);\n if (Object.keys(branchOut).length > 0) {\n // We've validated that each branch matches one of UserConfig's known\n // sub-objects; the indexed write keeps the union type happy.\n (out as Record<string, unknown>)[branchName] = branchOut;\n }\n }\n return out;\n}\n\n/**\n * Validate a YAML branch sub-tree against `branchSpec`'s registered leaf paths.\n * Handles nested keys like `tools.gh.enabled` — the branch is\n * `tools`, the leaf path is `gh.enabled`, so the YAML can be\n * written as a nested mapping. `qualifiedPrefix` is the dotted path walked so\n * far within the branch (empty at top level).\n */\nfunction parseBranchObject(\n branchSpec: BranchSpec,\n branchName: string,\n raw: Record<string, unknown>,\n qualifiedPrefix: string,\n where: string,\n opts: ParseOptions,\n): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n for (const [name, value] of Object.entries(raw)) {\n if (value === undefined) continue;\n const qualified = qualifiedPrefix ? `${qualifiedPrefix}.${name}` : name;\n const desc = branchSpec.leaves.get(qualified);\n if (desc) {\n out[name] = coerceTypedValue(value, desc, `${where}.${desc.key}`);\n continue;\n }\n // Not a leaf — descend if it's a mapping AND a deeper leaf is registered\n // beneath this path. Otherwise the key is unknown / not in the registry.\n if (isPlainObject(value) && branchHasLeafBelow(branchSpec, qualified)) {\n const sub = parseBranchObject(branchSpec, branchName, value, qualified, where, opts);\n if (Object.keys(sub).length > 0) out[name] = sub;\n continue;\n }\n // A rename still throws: the old name was valid in every older registry, so\n // this can't be a forward-compat miss — it's a real migration the user must do.\n const renamedTo = RENAMED_KEYS.get(`${branchName}.${qualified}`);\n if (renamedTo) {\n throw new UserConfigError(\n `${where}.${branchName}.${qualified} was renamed to ${renamedTo} — update your config`,\n );\n }\n opts.onWarning?.(\n `${where}.${branchName}: unknown key \"${qualified}\" — ignored (typo, or set by a newer agentbox)`,\n );\n }\n return out;\n}\n\nfunction branchHasLeafBelow(branchSpec: BranchSpec, prefix: string): boolean {\n const needle = `${prefix}.`;\n for (const leaf of branchSpec.leaves.keys()) {\n if (leaf.startsWith(needle)) return true;\n }\n return false;\n}\n\n/**\n * Coerce a string (e.g. typed at the CLI by `agentbox config set`) into the\n * declared type for `key`. Booleans accept true/false/yes/no/1/0 (case\n * insensitive). Returns the typed value or throws UserConfigError.\n */\nexport function coerceFromString(key: string, raw: string): unknown {\n const desc = lookupKeyOrThrow(key);\n switch (desc.type) {\n case 'bool': {\n const v = raw.trim().toLowerCase();\n if (v === 'true' || v === 'yes' || v === '1' || v === 'on') return true;\n if (v === 'false' || v === 'no' || v === '0' || v === 'off') return false;\n throw new UserConfigError(`${key}: expected a boolean (true/false), got \"${raw}\"`);\n }\n case 'string':\n if (raw.length === 0) throw new UserConfigError(`${key}: must not be empty`);\n return raw;\n case 'int': {\n const n = Number(raw);\n if (!Number.isFinite(n) || !Number.isInteger(n)) {\n throw new UserConfigError(`${key}: expected an integer, got \"${raw}\"`);\n }\n return n;\n }\n case 'enum':\n if (!enumValueAllowed(desc, raw)) {\n throw new UserConfigError(\n `${key}: expected one of ${desc.enumValues!.join(', ')}${desc.allowProviderSpec ? ' (or a \\`docker:<host>\\` spec)' : ''}, got \"${raw}\"`,\n );\n }\n return raw;\n case 'enum-list': {\n const unknown = enumListMembers(raw).filter((m) => !desc.enumValues!.includes(m));\n if (unknown.length > 0) {\n throw new UserConfigError(\n `${key}: unknown ${unknown.length === 1 ? 'value' : 'values'} ${unknown.join(', ')} — pick from: ${desc.enumValues!.join(', ')} (comma-separated)`,\n );\n }\n return raw;\n }\n }\n}\n\n/**\n * The error for a key that isn't in the registry — naming the new spelling when\n * the key was RENAMED rather than removed.\n *\n * Shared with `write.ts` so `agentbox config set box.claudeInstall npm` says the\n * same thing as loading a config file that contains it. A bare \"unknown key\"\n * there was the whole failure mode a rename is supposed to avoid: the user is\n * told the key doesn't exist, not where it went.\n */\nexport function unknownKeyError(key: string): UserConfigError {\n const renamedTo = RENAMED_KEYS.get(key);\n return new UserConfigError(\n renamedTo\n ? `${key} was renamed to ${renamedTo} — use ${renamedTo} instead`\n : `unknown key \"${key}\"`,\n );\n}\n\nfunction lookupKeyOrThrow(key: string): KeyDescriptor {\n const renamedTo = RENAMED_KEYS.get(key);\n if (renamedTo) {\n throw new UserConfigError(`${key} was renamed to ${renamedTo} — use ${renamedTo} instead`);\n }\n const idx = key.indexOf('.');\n if (idx < 0) {\n throw new UserConfigError(`unknown key \"${key}\" (must be in branch.leaf form)`);\n }\n const branch = BRANCHES.get(key.slice(0, idx));\n if (!branch) {\n throw new UserConfigError(\n `unknown config section \"${key.slice(0, idx)}\" (known: ${[...BRANCHES.keys()].join(', ')})`,\n );\n }\n const desc = branch.leaves.get(key.slice(idx + 1));\n if (!desc) {\n throw new UserConfigError(\n `unknown key \"${key}\" (known in ${branch.name}: ${[...branch.leaves.keys()].join(', ')})`,\n );\n }\n return desc;\n}\n","/**\n * `--provider` accepts a *spec*, not just a name: `docker:<host>` means \"the\n * docker engine on <host>\", i.e. the remote-docker provider pointed at that SSH\n * destination.\n *\n * agentbox docker:buildbox claude\n * agentbox create --provider docker:dev@10.0.0.9:2222\n * agentbox prepare --provider docker:buildbox\n *\n * Reading `docker:` as the base is deliberate: to the user this IS docker, just\n * not here. `remote-docker:<host>` is accepted too, for anyone who reaches for\n * the provider's real name.\n *\n * It lives in `@agentbox/config` — beside the PROVIDERS table it is really about\n * — because BOTH the CLI and the hub have to read the same spec: the CLI when it\n * routes a create, the hub when its worker is handed one. A second parser is\n * exactly how the two drift.\n */\n\nexport const REMOTE_DOCKER = 'remote-docker';\n\nexport interface ProviderSpec {\n /** The provider name to resolve (`remote-docker` for a `docker:<host>` spec). */\n name: string;\n /** The SSH destination, when the spec named one. */\n remoteHost?: string;\n}\n\n/**\n * Split `<base>:<host>` on the FIRST colon — everything after it is the SSH\n * destination, which may itself contain a `:port` suffix\n * (`docker:dev@10.0.0.9:2222` → host `dev@10.0.0.9:2222`).\n */\nexport function parseProviderSpec(spec: string): ProviderSpec {\n const raw = spec.trim();\n const colon = raw.indexOf(':');\n if (colon < 0) return { name: raw };\n\n const base = raw.slice(0, colon);\n const host = raw.slice(colon + 1).trim();\n if (base !== 'docker' && base !== REMOTE_DOCKER) {\n // Not a remote spec — hand the whole string back and let the caller's\n // unknown-provider error name it, rather than silently reinterpreting it.\n return { name: raw };\n }\n if (host.length === 0) {\n throw new Error(\n `provider \"${raw}\" names no host — write \\`${base}:<ssh-host>\\` (an ~/.ssh/config alias or [user@]host[:port])`,\n );\n }\n return { name: REMOTE_DOCKER, remoteHost: host };\n}\n\n/** The provider name a spec resolves to, ignoring any host. */\nexport function providerNameOf(spec: string): string {\n return parseProviderSpec(spec).name;\n}\n","/**\n * Single source of truth for the set of sandbox providers.\n *\n * Adding one row to `PROVIDERS` is the *only* place a new provider's identity\n * has to be registered. This table drives, by derivation:\n * - the `ProviderKind` union (below),\n * - the `box.provider` enum + its description (see `types.ts`),\n * - the per-provider `box.image<P>` / `box.size<P>` / `box.defaultCheckpoint<P>`\n * entries in `KEY_REGISTRY` (generated in `types.ts`),\n * - the CLI's known/cloud provider lists, the install-wizard picker\n * labels/hints, the wizard's rebuild-time estimate, and the doctor groups.\n *\n * The interface fields on `UserConfig`/`EffectiveConfig` and the JSON schema\n * still list the per-provider keys explicitly (static types can't be generated\n * from a runtime array); a test (`test/providers.test.ts`) fails if either\n * drifts from this table.\n */\n\n/** One credential a UI prompts for, keyed as `ProviderModule.setCredentials` expects. */\nexport interface ProviderCredentialField {\n /** Field key passed to `setCredentials` (e.g. `apiKey`, `token`, `teamId`). */\n readonly key: string;\n readonly label: string;\n readonly optional?: boolean;\n /**\n * Mask in UIs and never echo back. Defaults to true when omitted — a field is\n * a secret unless it says otherwise. DigitalOcean's `project` is the exception:\n * it lands in the `box.digitaloceanProject` config key, not `secrets.env`.\n */\n readonly secret?: boolean;\n readonly hint?: string;\n}\n\n/**\n * What a provider can do. Every flag is DECLARED, not inferred from method\n * presence: `createCloudProvider` defines `setInbound`/`repairReachability`/\n * `enableDirectGit`/`checkpoint` on every cloud provider (delegating to an\n * optional backend method at call time), so `Provider` method presence says\n * which scaffold was used, not what the provider supports. Docker is the sharp\n * case — it has no `provider.checkpoint` at all, yet `docker commit` checkpoints\n * are the oldest feature in the repo.\n *\n * `CloudBackend` methods, being written by the provider author, ARE honest —\n * `prune`, `inbound` and `timeoutModel` below must agree with `backend.list`,\n * `backend.setInbound` and `backend.timeoutModel`, and a test asserts it.\n */\nexport interface ProviderCapabilities {\n /** Checkpoint capture/restore is supported at all. */\n readonly checkpoints: boolean;\n /** Capturing a checkpoint stops and reboots the box (the capture prompt). */\n readonly checkpointReboots: boolean;\n /** Real SSH into the box: `agentbox code` (IDE) and `agentbox open` (sshfs mount). */\n readonly ssh: boolean;\n /**\n * The per-box SSH identity outlives the CLI call, so an app that connects on\n * its own later works (`open --in claude|codex`). An expiring token gateway\n * (daytona) does not qualify.\n */\n readonly persistentSsh: boolean;\n /**\n * `buildAttach` yields a plain `ssh … user@host` pointing AT the box — the only\n * shape `resolveCloudSshTarget` can parse a target out of. A provider with its\n * own `sshTarget` needs this false.\n */\n readonly directBoxSsh: boolean;\n /** Per-box inbound firewall policy (`--inbound`). Must match `!!backend.setInbound`. */\n readonly inbound: boolean;\n /** `git.pushMode=direct` can be switched on post-create (`--with-credentials`). */\n readonly directGit: boolean;\n /** Host-to-box workspace resync. */\n readonly resync: boolean;\n /** Orphan sandboxes are enumerable + deletable. Must match `!!backend.list`. */\n readonly prune: boolean;\n readonly vnc: boolean;\n /** Nested containers (in-box dockerd) work. */\n readonly dind: boolean;\n /**\n * What `pause` actually does. 'freeze' preserves the running process tree\n * (docker pause, daytona linux-vm, vercel/e2b snapshot-resume); 'stop' powers\n * the box off so only the disk survives (hetzner and digitalocean are both\n * literally `pause ≡ stop`).\n *\n * NOT a gate on offering a pause control — powering a VPS down is useful, it\n * stops billing. A UI should relabel on 'stop', never hide.\n */\n readonly pauseSemantics: 'freeze' | 'stop';\n /** Creates can be handed to a remote control box (`cloud.viaHub`). */\n readonly hubRoutable: boolean;\n /** Session-lifetime model. Must match `backend.timeoutModel`. */\n readonly timeoutModel?: 'absolute' | 'inactivity';\n}\n\n/**\n * Everything a UI or CLI can know about a provider WITHOUT loading its module.\n *\n * Built-ins declare this in the `PROVIDERS` table below. External plugins\n * declare the same shape on `ProviderModule.descriptor`, which `agentbox plugin\n * add` snapshots into `~/.agentbox/plugins.json` — so every consumer resolves a\n * descriptor synchronously and offline, whichever kind of provider it is.\n */\nexport interface ProviderDescriptor {\n /** Canonical name — MUST equal the `@agentbox/sandbox-<name>` package suffix. */\n readonly name: string;\n /** 'local' = docker; 'cloud' = has a CloudBackend + a prepared base snapshot. */\n readonly kind: 'local' | 'cloud';\n /** Human label for the install-wizard picker. */\n readonly label: string;\n /** One-line hint for the install-wizard picker. */\n readonly loginHint: string;\n readonly credentials: {\n /**\n * `secrets.env` key names whose presence means \"credentials configured\".\n * Only the NAME is ever read, never the value. Empty = none needed.\n */\n readonly envKeys: readonly string[];\n /** Fields a credential form prompts for. Empty = none needed. */\n readonly fields: readonly ProviderCredentialField[];\n };\n readonly bake: {\n /**\n * Whether a base image/snapshot must exist before the provider is usable.\n * False for docker (its base self-heals on create) and remote-docker (the\n * image builds lazily on first create). Note this is NOT `!!provider.prepare`\n * — all seven built-ins have a `prepare`.\n */\n readonly required: boolean;\n /** Rough bake time in minutes, shown by the install wizard. */\n readonly approxMinutes: string;\n /** Typical streamed create-log line count, for client progress pacing. */\n readonly createProgressSteps?: number;\n /** Typical streamed bake-log line count. Bakes are far more verbose. */\n readonly bakeProgressSteps?: number;\n };\n readonly capabilities: ProviderCapabilities;\n /**\n * Sizes offered as a picker, most-modest first. Each `key` is a literal\n * `--size` value for THIS backend (there is no cross-provider grammar); the\n * label spells out what it buys (\"4 vCPU / 8 GB\"). Absent = the provider has\n * no size knob at all (docker, whose knobs are `box.memory` / `box.cpus`).\n */\n readonly sizes?: readonly { readonly key: string; readonly label: string }[];\n /**\n * Grammar hint for a free-text size, e.g. `cpu-mem-disk GB, e.g. 4-8-10`.\n * Presence is also what says the list is OPEN: a UI offers a custom-value\n * escape only when there is a hint to place in it. Vercel omits it because\n * `parseVercelVcpus` throws on anything outside `sizes`.\n */\n readonly sizeHint?: string;\n /**\n * When a size takes effect. 'create' (the default when absent) = the next\n * box. 'bake' = fixed when the base is baked and rejected per-create\n * (daytona's snapshot path, e2b templates), so a different size needs\n * `prepare --force --size` first — a UI must say so rather than offer a\n * control that silently does nothing. `ProviderModule.sizeIgnoredReason`\n * answers whether a given size actually needs that re-bake.\n */\n readonly sizeAppliesAt?: 'create' | 'bake';\n /** Known regions/datacenters. Absent = the provider has no region choice. */\n readonly regions?: readonly { readonly key: string; readonly label: string }[];\n /** Fragment describing this backend, joined into the `box.provider` enum description. */\n readonly blurb: string;\n /** Description of the per-provider `box.size<P>` KEY_REGISTRY entry. */\n readonly sizeDesc: string;\n /** Description of the per-provider `box.image<P>` KEY_REGISTRY entry. */\n readonly imageDesc: string;\n}\n\nexport const PROVIDERS = [\n {\n name: 'docker',\n kind: 'local',\n label: 'Docker (local)',\n loginHint: 'builds a ~1GB local image; no login needed',\n credentials: { envKeys: [], fields: [] },\n // The base self-heals: `ensureImage` pulls or builds on create, so a missing\n // base is a slow first create, never a blocked one.\n bake: { required: false, approxMinutes: '1', createProgressSteps: 52, bakeProgressSteps: 420 },\n capabilities: {\n // `docker commit` — the oldest checkpoint implementation in the repo. It\n // does NOT hang off `provider.checkpoint` (see the interface doc).\n checkpoints: true,\n checkpointReboots: false,\n ssh: true,\n persistentSsh: true,\n // Its localhost sshd is reached by published port, not a direct `ssh\n // user@host` attach argv.\n directBoxSsh: false,\n inbound: false,\n directGit: false,\n resync: true,\n prune: false,\n vnc: true,\n dind: true,\n pauseSemantics: 'freeze',\n // Local engine — there is no hub to route a create to.\n hubRoutable: false,\n },\n blurb: 'local Docker containers',\n sizeDesc:\n 'Per-provider override of `box.size` for docker. Reserved — docker sizing is controlled via `box.memory` / `box.cpus` / `box.disk`.',\n imageDesc:\n 'Per-provider override of `box.image` for docker (local docker image ref, e.g. `agentbox/box:dev`). Wins over the generic when set.',\n },\n {\n name: 'daytona',\n kind: 'cloud',\n label: 'Daytona (cloud sandbox)',\n loginHint: 'paste an API key from the Daytona dashboard',\n credentials: {\n envKeys: ['DAYTONA_API_KEY', 'DAYTONA_JWT_TOKEN'],\n fields: [{ key: 'apiKey', label: 'API key' }],\n },\n bake: {\n required: true,\n approxMinutes: '7',\n createProgressSteps: 1900,\n bakeProgressSteps: 1500,\n },\n capabilities: {\n checkpoints: true,\n // `sb._experimental_createSnapshot` stops the sandbox to capture it.\n checkpointReboots: true,\n ssh: true,\n // The SSH gateway is reached with an expiring token, so an app that dials\n // in on its own later (codex) finds a dead credential.\n persistentSsh: false,\n directBoxSsh: true,\n inbound: false,\n directGit: true,\n resync: true,\n prune: true,\n vnc: true,\n dind: true,\n // linux-vm `pause()` freezes CPU + memory. The `container` class has no\n // pause primitive and archives instead (filesystem only) — see backend.ts.\n pauseSemantics: 'freeze',\n hubRoutable: true,\n timeoutModel: 'inactivity',\n },\n // `cpu-memory-disk` GB (parseDaytonaSize). First entry is\n // DAYTONA_DEFAULT_RESOURCES. Disk is capped at 10 GB per sandbox on the\n // free plan, so no preset asks for more.\n sizes: [\n { key: '2-4-8', label: '2 vCPU / 4 GB / 8 GB disk (default)' },\n { key: '4-8-10', label: '4 vCPU / 8 GB / 10 GB disk' },\n { key: '8-16-10', label: '8 vCPU / 16 GB / 10 GB disk' },\n ],\n sizeHint: 'cpu-memory-disk in GB, e.g. 4-8-10',\n sizeAppliesAt: 'bake',\n blurb: 'Daytona Cloud sandboxes',\n sizeDesc:\n 'Per-provider override of `box.size` for daytona. `cpu-memory-disk` GB spec (e.g. `4-8-20`). Only honored on the image/Dockerfile create path; on the snapshot path the size is fixed at bake time (Daytona rejects custom resources on snapshot-resume).',\n imageDesc:\n 'Per-provider override of `box.image` for daytona (named snapshot, e.g. `agentbox-base-<fingerprint>`). Written by `agentbox prepare --provider daytona`.',\n },\n {\n name: 'hetzner',\n kind: 'cloud',\n label: 'Hetzner (cloud VPS)',\n loginHint: 'paste an API token from the Hetzner Console',\n credentials: {\n envKeys: ['HCLOUD_TOKEN'],\n fields: [{ key: 'token', label: 'API token' }],\n },\n bake: {\n required: true,\n approxMinutes: '7-10',\n createProgressSteps: 41,\n bakeProgressSteps: 900,\n },\n capabilities: {\n checkpoints: true,\n // `create_image` defaults to no-pause, matching `docker commit`.\n checkpointReboots: false,\n ssh: true,\n persistentSsh: true,\n directBoxSsh: true,\n inbound: true,\n directGit: true,\n resync: true,\n prune: true,\n vnc: true,\n dind: true,\n // \"Hetzner has no archive primitive. Pause ≡ stop.\" (backend.ts)\n pauseSemantics: 'stop',\n hubRoutable: true,\n },\n // Server-type slugs. The Arm `cax*` line is deliberately absent: the base\n // snapshot is amd64, so booting one would fail at create.\n sizes: [\n { key: 'cx23', label: 'cx23 - 2 vCPU / 4 GB (default)' },\n { key: 'cx33', label: 'cx33 - 4 vCPU / 8 GB' },\n { key: 'cx43', label: 'cx43 - 8 vCPU / 16 GB' },\n ],\n sizeHint: 'any Hetzner server type, e.g. cpx41',\n blurb: 'Hetzner Cloud VPSes',\n sizeDesc:\n 'Per-provider override of `box.size` for hetzner. Server type string (e.g. `cx23`, `cx33`, `cx43`).',\n imageDesc:\n 'Per-provider override of `box.image` for hetzner (image description, e.g. `agentbox-base-<fingerprint>`). Written by `agentbox prepare --provider hetzner`.',\n },\n {\n name: 'vercel',\n kind: 'cloud',\n label: 'Vercel (cloud microVM)',\n loginHint: 'installs the Vercel sandbox CLI, then a browser sign-in',\n credentials: {\n envKeys: ['VERCEL_TOKEN', 'VERCEL_OIDC_TOKEN', 'VERCEL_AUTH_SOURCE'],\n fields: [\n { key: 'token', label: 'Access token' },\n { key: 'teamId', label: 'Team ID', optional: true },\n { key: 'projectId', label: 'Project ID', optional: true },\n ],\n },\n bake: {\n required: true,\n approxMinutes: '5-10',\n createProgressSteps: 33,\n bakeProgressSteps: 400,\n },\n capabilities: {\n checkpoints: true,\n // `sb.snapshot()` stops the box; the live agent process doesn't survive.\n checkpointReboots: true,\n // No SSH at all — attach is a custom tmux bridge over the SDK.\n ssh: false,\n persistentSsh: false,\n directBoxSsh: false,\n inbound: false,\n directGit: true,\n resync: true,\n prune: true,\n vnc: true,\n // Nested containers verified working 2026-06-30 (`launchDockerd: true`).\n dind: true,\n pauseSemantics: 'freeze',\n hubRoutable: true,\n },\n // vCPU count; Vercel couples RAM at 2048 MB/vCPU. A CLOSED set -\n // `parseVercelVcpus` throws on anything else, so no `sizeHint` (and\n // therefore no custom-value escape).\n sizes: [\n { key: '1', label: '1 vCPU / 2 GB' },\n { key: '2', label: '2 vCPU / 4 GB (default)' },\n { key: '4', label: '4 vCPU / 8 GB' },\n { key: '8', label: '8 vCPU / 16 GB' },\n ],\n blurb: 'Vercel Sandboxes',\n sizeDesc:\n 'Per-provider override of `box.size` for vercel. vCPU count — one of `1`, `2`, `4`, `8` (Vercel couples RAM at 2048 MB/vCPU). Default 2.',\n imageDesc:\n 'Written by `agentbox prepare --provider vercel` but NOT read: the vercel backend resolves its snapshot from `~/.agentbox/vercel-prepared.json` (base or per-agent variant) and ignores `box.image`. Setting this has no effect.',\n },\n {\n name: 'e2b',\n kind: 'cloud',\n label: 'E2B (cloud microVM)',\n loginHint: 'paste an API key from the E2B dashboard',\n credentials: {\n envKeys: ['E2B_API_KEY'],\n fields: [{ key: 'apiKey', label: 'API key' }],\n },\n bake: { required: true, approxMinutes: '2', createProgressSteps: 34, bakeProgressSteps: 500 },\n capabilities: {\n checkpoints: true,\n checkpointReboots: false,\n // No SSH — attach is an SDK-streaming PTY bridge.\n ssh: false,\n persistentSsh: false,\n directBoxSsh: false,\n inbound: false,\n directGit: true,\n resync: true,\n prune: true,\n vnc: true,\n // Full root + cap_sys_admin, verified 2026-06-23.\n dind: true,\n pauseSemantics: 'freeze',\n hubRoutable: true,\n timeoutModel: 'inactivity',\n },\n // `cpu-memory` GB. Template-level: E2B rejects per-create resources, so a\n // different size means rebuilding the template.\n sizes: [\n { key: '2-4', label: '2 vCPU / 4 GB (default)' },\n { key: '4-8', label: '4 vCPU / 8 GB' },\n { key: '8-16', label: '8 vCPU / 16 GB' },\n ],\n sizeHint: 'cpu-memory in GB, e.g. 4-8',\n sizeAppliesAt: 'bake',\n blurb: 'E2B microVMs',\n sizeDesc:\n 'Per-provider override of `box.size` for e2b. `cpu-memory` GB spec (e.g. `4-8`). Template-level: baked by `agentbox prepare --provider e2b --size <spec>`; E2B rejects per-create resources.',\n imageDesc:\n 'Written by `agentbox prepare --provider e2b` but NOT read: the e2b backend resolves its template from `~/.agentbox/e2b-prepared.json` (base or per-agent variant) and ignores `box.image`. Setting this has no effect.',\n },\n {\n name: 'digitalocean',\n kind: 'cloud',\n label: 'DigitalOcean (cloud VPS)',\n loginHint: 'paste a Personal Access Token from the DigitalOcean Console',\n credentials: {\n envKeys: ['DIGITALOCEAN_TOKEN'],\n fields: [\n { key: 'token', label: 'API token' },\n // Not a secret: the host writes it to `box.digitaloceanProject`. Blank\n // means \"leave unchanged\", never \"clear\" — clearing is a `config unset`.\n {\n key: 'project',\n label: 'Project',\n optional: true,\n secret: false,\n hint: 'blank leaves it unchanged',\n },\n ],\n },\n bake: {\n required: true,\n approxMinutes: '7-10',\n createProgressSteps: 41,\n bakeProgressSteps: 900,\n },\n capabilities: {\n checkpoints: true,\n checkpointReboots: false,\n // A VPS with a real sshd, same shape as hetzner. The pre-descriptor\n // `IDE_PROVIDERS` / `SSH_MOUNT_PROVIDERS` arrays omitted digitalocean while\n // listing it in `PROVIDERS_WITH_DIRECT_BOX_SSH` — an oversight, not a\n // limitation, so `agentbox code` / `open` start working here.\n ssh: true,\n persistentSsh: true,\n directBoxSsh: true,\n inbound: true,\n directGit: true,\n resync: true,\n prune: true,\n vnc: true,\n dind: true,\n // \"DigitalOcean has no archive primitive. Pause ≡ stop (power off).\"\n pauseSemantics: 'stop',\n hubRoutable: true,\n },\n sizes: [\n { key: 's-2vcpu-4gb', label: '2 vCPU / 4 GB (default)' },\n { key: 's-4vcpu-8gb', label: '4 vCPU / 8 GB' },\n { key: 's-8vcpu-16gb', label: '8 vCPU / 16 GB' },\n ],\n sizeHint: 'any DigitalOcean size slug, e.g. c-4',\n blurb: 'DigitalOcean Droplets',\n sizeDesc:\n 'Per-provider override of `box.size` for digitalocean. Droplet size slug (e.g. `s-2vcpu-4gb`, `s-4vcpu-8gb`).',\n imageDesc:\n 'Per-provider override of `box.image` for digitalocean (numeric snapshot id). Written by `agentbox prepare --provider digitalocean`.',\n },\n {\n name: 'remote-docker',\n kind: 'cloud',\n label: 'Remote Docker (your own machine over SSH)',\n // It connects as you, over your own ~/.ssh/config — there is no credential\n // to store, so there is none to check.\n loginHint: 'point it at an SSH host you can already reach (no login needed)',\n credentials: { envKeys: [], fields: [] },\n // Usable as soon as one host alias is registered: the image builds lazily on\n // first create. Readiness is the alias count, not a base marker.\n bake: { required: false, approxMinutes: '1-3' },\n capabilities: {\n checkpoints: true,\n checkpointReboots: false,\n ssh: true,\n persistentSsh: true,\n // Reached by ProxyJump through the engine, via its own `sshTarget`.\n directBoxSsh: false,\n inbound: false,\n directGit: true,\n resync: true,\n prune: true,\n vnc: true,\n dind: true,\n pauseSemantics: 'freeze',\n // Docker on YOUR OWN machine — a control box can't reach it.\n hubRoutable: false,\n },\n // `cpu-memory` GB, mapped to the container's `--cpus` / `--memory`. The\n // empty key is a real choice: no limits, the remote engine's defaults.\n sizes: [\n { key: '', label: 'Unlimited (engine default)' },\n { key: '2-4', label: '2 CPU / 4 GB' },\n { key: '4-8', label: '4 CPU / 8 GB' },\n { key: '8-16', label: '8 CPU / 16 GB' },\n ],\n sizeHint: 'cpu-memory in GB, e.g. 4-8',\n blurb: 'Docker on a remote machine over SSH',\n sizeDesc:\n \"Per-provider override of `box.size` for remote-docker. `cpu-memory` GB spec (e.g. `4-8`) mapped to the container's `--cpus` / `--memory`. Empty = unlimited (the remote engine's defaults).\",\n imageDesc:\n 'Per-provider override of `box.image` for remote-docker (a docker image ref on the REMOTE engine). Normally left empty: the provider derives a fingerprint-tagged ref (`agentbox/box:<sha12>`) and ensures it on the remote itself.',\n },\n] as const satisfies readonly ProviderDescriptor[];\n\n/** Sandbox backend new boxes are created on. Derived from the `PROVIDERS` table. */\nexport type ProviderKind = (typeof PROVIDERS)[number]['name'];\n\n/** All provider names, in canonical order. */\nexport const PROVIDER_NAMES: readonly ProviderKind[] = PROVIDERS.map((p) => p.name);\n\n/** Cloud provider names only (everything except docker). */\nexport const CLOUD_PROVIDER_NAMES: readonly ProviderKind[] = PROVIDERS.filter(\n (p) => p.kind === 'cloud',\n).map((p) => p.name);\n\n/**\n * Providers whose box creates can run on a remote hub (the deployed control box):\n * the true clouds only. Excludes `docker` (local engine — no hub to route to) and\n * `remote-docker` (docker on YOUR OWN machine over SSH — the control box can't\n * reach it, and the create-via-hub path rejects it). NOT the same as\n * {@link CLOUD_PROVIDER_NAMES}, which counts `remote-docker` as cloud for the\n * git-bundle staging / SSH-sync it shares with the real clouds.\n */\nexport const HUB_ROUTABLE_PROVIDER_NAMES: readonly ProviderKind[] = PROVIDERS.filter(\n (p) => p.capabilities.hubRoutable,\n).map((p) => p.name);\n\n/** True when `name`'s creates can be handed to a remote control box. */\nexport function isHubRoutableProvider(name: string): boolean {\n return (HUB_ROUTABLE_PROVIDER_NAMES as readonly string[]).includes(name);\n}\n\nexport function isProviderKind(name: string): name is ProviderKind {\n return (PROVIDER_NAMES as readonly string[]).includes(name);\n}\n\n/**\n * The BUILT-IN descriptor for `name`. Throws on an unknown name, so it is only\n * safe behind `isProviderKind`. To resolve a descriptor for any runtime provider\n * — built-in OR registered plugin — use `resolveProviderDescriptor` from\n * `@agentbox/sandbox-core`, which falls back to the plugin registry snapshot.\n */\nexport function providerMeta(name: ProviderKind): ProviderDescriptor {\n const m = PROVIDERS.find((p) => p.name === name);\n if (!m) throw new Error(`unknown provider: ${String(name)}`);\n return m;\n}\n\n/**\n * Capitalize a provider name for its config-key suffix: `e2b` -> `E2b`,\n * `docker` -> `Docker`, `digitalocean` -> `Digitalocean`. First char upper,\n * the rest verbatim — matches the hand-written keys this table replaced.\n *\n * A hyphenated name camelizes across the hyphen (`remote-docker` ->\n * `RemoteDocker`), because `box.imageRemote-docker` is not a legal config key.\n */\nexport function providerKeyCap(name: string): string {\n return name\n .split('-')\n .filter((seg) => seg.length > 0)\n .map((seg) => seg.charAt(0).toUpperCase() + seg.slice(1))\n .join('');\n}\n\n/** Per-provider config key, e.g. `('image','hetzner')` -> `'box.imageHetzner'`. */\nexport function perProviderConfigKey(\n base: 'image' | 'size' | 'defaultCheckpoint',\n provider: string,\n): string {\n return `box.${base}${providerKeyCap(provider)}`;\n}\n","/**\n * Layered user config. The same shape is accepted at three layers:\n * - global ~/.agentbox/config.yaml\n * - project ~/.agentbox/projects/<hash>/config.yaml\n * - workspace defaults: block in ./agentbox.yaml\n *\n * Plus a CLI-flag layer at runtime. Precedence (highest wins):\n * cli > workspace > project > global > built-in defaults.\n */\n\nimport { AGENT_KINDS, type AgentConfigKind, type AgentConfigSetting } from './agents.js';\nimport { pluginAgentSettings } from './agent-plugins.js';\nimport { PROVIDERS, PROVIDER_NAMES, perProviderConfigKey, type ProviderKind } from './providers.js';\n\nexport type IdeFlavor = 'vscode' | 'cursor' | 'auto';\nexport type EngineKind = 'orbstack' | 'docker-desktop' | 'other' | 'auto';\nexport type BrowserKind = 'agent-browser' | 'playwright' | 'both';\n/** Sandbox backend new boxes are created on. Defined in `providers.ts` (the single source of truth) and re-exported here for back-compat. */\nexport type { ProviderKind };\n/**\n * One agent's resolved settings — its own config block with the declared\n * defaults applied. See `AgentSettingSpec` in `@agentbox/core`: the keys are\n * whatever the AGENT declared, so this layer never knows what they mean.\n */\nexport type AgentSettings = Readonly<Record<string, string | boolean>>;\n\n/**\n * One agent's config block, as the user may write it.\n *\n * The index signature is what makes an agent's own settings addressable without\n * a hand edit here: `claude.install`, `claude.tui` and whatever an installed\n * agent package declares all land under it. It is not a hole in validation —\n * the parser rejects any leaf absent from `KEY_REGISTRY`, which is generated\n * from the declarations. Named leaves stay spelled out because they exist for\n * EVERY agent and callers read them directly.\n */\nexport interface AgentConfigBlock {\n sessionName?: string;\n dangerouslySkipPermissions?: boolean;\n [setting: string]: string | boolean | undefined;\n}\n\n/** The same block after defaults are applied. */\nexport interface EffectiveAgentBlock {\n sessionName: string;\n dangerouslySkipPermissions?: boolean;\n [setting: string]: string | boolean | undefined;\n}\n/**\n * How a box's `git push` reaches GitHub:\n * - `relay` — the box asks the host relay to push with the HOST's credentials\n * (they never enter the box). Docker boxes always use this; for a cloud box it\n * runs through the host relay's cloud poller (git-bundle pull-back).\n * - `lease` — the relay/plane leases a short-lived GitHub-App token and the box\n * pushes directly with it (keeps working with the laptop off). Needs a\n * reachable relay/plane with a GitHub App configured.\n * - `direct` — the box holds a COPY of your git credentials (token + SSH key)\n * and pushes/pulls/signs entirely on its own, so it keeps working with the\n * laptop off and needs no hub. Selected via `--with-credentials`, which copies\n * the credentials in behind a confirmation prompt. Dangerous: the credentials\n * live inside the box and in any snapshot/checkpoint of it. Cloud boxes only.\n * REFUSED when a control box is configured (`relay.controlPlaneUrl`): leasing\n * already gives the box laptop-off push without the credential copy, so the\n * copy is pure downside there. It stays available only without a control box.\n * - `auto` (default) — lease when a control plane is configured for the box\n * (`relay.controlPlaneUrl`), else relay. Today's behavior.\n * Docker boxes ignore this (always `relay` — they bind-mount the host `.git`).\n */\nexport type GitPushMode = 'auto' | 'relay' | 'lease' | 'direct';\n/**\n * Which git credential a deployed hub (control box) uses on your behalf.\n *\n * - `gh` (default) — the hub holds a GitHub token (taken from your own `gh`\n * login at `hub setup`) and does the git work itself: boxes ask it to push via\n * the relay's bundle path and never receive a credential at all. Nothing has to\n * be installed or approved on the GitHub side, so it works on repos you only\n * collaborate on and in orgs where you can't install an App.\n * - `app` — the hub holds a GitHub App private key and leases a 1-hour,\n * single-repo installation token to each box on every push. Tighter (the token\n * is narrow and short-lived) but it requires the repo OWNER to install the App,\n * which in most work orgs is an admin decision.\n *\n * This is deploy intent: it selects what `hub setup` / `hub deploy` provisions,\n * and which push mode a cloud box is given. It cannot reconfigure a hub that is\n * already running — change it there and redeploy, or set the token on the hub.\n */\nexport type HubGitAuthMode = 'gh' | 'app';\n/**\n * How this machine relates to a hub, and specifically whether the local docker\n * engine is offered here.\n *\n * - `auto` (default) — docker / remote-docker are available when there is no\n * control box, and gated OFF once one is configured (`relay.controlPlaneUrl`):\n * a docker box built on the laptop can't run with the laptop off, which is the\n * whole reason a control box exists, so the pickers, `doctor`, `prepare`,\n * `create` and `ls` stop offering it and route the fleet through the hub.\n * - `thin` — force the gated behavior even without a configured control box (for\n * a machine driven purely as a thin `/api/v1` client, e.g. via `--url`).\n * - `local` — keep docker on regardless of a control box. This is the escape\n * hatch every \"docker is hidden here\" message names.\n */\nexport type HubMode = 'auto' | 'thin' | 'local';\n/** Where `agentbox claude|codex|opencode` opens the attached session when the host\n * shell is running inside tmux, cmux, Herdr, or iTerm2. `same` keeps today's inline behavior. */\nexport type AttachOpenIn = 'split' | 'window' | 'tab' | 'same';\n/** Where a background `-i` (queued) run opens the box once the worker has created\n * it. `none` (default) opens nothing — the historical behavior. The open is\n * driven by the host relay's queue worker when the box becomes ready, not at\n * submit time, so there is no `same` (inline) mode here. */\nexport type QueueOpenIn = 'none' | 'split' | 'window' | 'tab';\n\n/**\n * Which carrier a hub-run manager session runs on. `auto` prefers the AgentBox\n * pty host — the client terminal then owns scrollback, mouse, selection and the\n * modified Enter — and falls back to tmux where the optional node-pty prebuild\n * is missing.\n */\nexport type ManagerCarrierMode = 'auto' | 'pty' | 'tmux';\n/**\n * `leased`: a session a client holds a lease on is stopped once that client\n * stays gone past the grace window (quitting the tray ends its terminals; an\n * update that relaunches inside the window keeps them). `persistent`: only an\n * explicit stop ends a session.\n */\nexport type ManagerLifetime = 'leased' | 'persistent';\n/** Whose size a session takes when several clients are attached. */\nexport type ManagerWindowSize = 'latest' | 'smallest' | 'largest';\n\nexport interface UserConfig {\n /**\n * Config-file shape version. Stamped to `1` on first write so future\n * migrations (e.g. a renamed key, a leaf-shape change) have a stable\n * read-time discriminator. No behavioural effect yet — placeholder for\n * later. Loader strips it before merge so it never leaks into\n * `EffectiveConfig`.\n */\n schema?: number;\n box?: {\n /**\n * Which backend new boxes go to. Always a bare provider NAME here: the\n * host-qualified `docker:<alias>` spec is an *input* form only — the parser\n * desugars it into `provider` + `remoteDockerHost` (see `desugarProviderSpec`\n * in `parse.ts`), so nothing downstream has to re-split a config value.\n */\n provider?: ProviderKind;\n hostSnapshot?: boolean;\n defaultCheckpoint?: string;\n /** Per-provider override of `defaultCheckpoint`. Resolved before falling back to the global. */\n defaultCheckpointDocker?: string;\n defaultCheckpointDaytona?: string;\n defaultCheckpointHetzner?: string;\n defaultCheckpointVercel?: string;\n defaultCheckpointE2b?: string;\n defaultCheckpointDigitalocean?: string;\n defaultCheckpointRemoteDocker?: string;\n /**\n * Generic VM-size fallback for cloud providers. Provider-interpreted:\n * Hetzner = server type string (e.g. `cx33`); Daytona = `cpu-memory-disk`\n * GB spec (e.g. `4-8-20`); Vercel = vCPU count (`1`/`2`/`4`/`8`);\n * E2B = `cpu-memory` GB spec (e.g. `4-8`), applied at `prepare` time.\n * Per-provider `size{Provider}` wins over this. Docker ignores it (it uses\n * `memory`/`cpus`/`disk`).\n */\n size?: string;\n sizeDocker?: string;\n sizeDaytona?: string;\n sizeHetzner?: string;\n sizeVercel?: string;\n sizeE2b?: string;\n sizeDigitalocean?: string;\n sizeRemoteDocker?: string;\n withPlaywright?: boolean;\n withEnv?: boolean;\n resyncOnStart?: boolean;\n vnc?: boolean;\n autoApproveHostActions?: boolean;\n autoApproveSafeHostActions?: boolean;\n persistent?: boolean;\n isolateClaudeConfig?: boolean;\n isolateCodexConfig?: boolean;\n isolateOpencodeConfig?: boolean;\n isolatePiConfig?: boolean;\n isolateExampleConfig?: boolean;\n image?: string;\n /**\n * Per-provider override of `image`. Written by `agentbox prepare\n * --provider <name>` so a daytona prepare can't poison a hetzner create.\n * Resolved before falling back to the generic.\n */\n imageDocker?: string;\n imageDaytona?: string;\n imageHetzner?: string;\n imageVercel?: string;\n imageE2b?: string;\n imageDigitalocean?: string;\n imageRemoteDocker?: string;\n imageRegistry?: string;\n dockerCacheShared?: boolean;\n memory?: number;\n cpus?: number;\n pidsLimit?: number;\n disk?: string;\n bundleDepth?: number;\n daytonaClass?: string;\n daytonaRegion?: string;\n daytonaTimeoutMs?: number;\n daytonaVmBaseImage?: string;\n hetznerLocation?: string;\n digitaloceanRegion?: string;\n digitaloceanProject?: string;\n remoteDockerHost?: string;\n vercelTimeoutMs?: number;\n vercelNetworkPolicy?: string;\n e2bTimeoutMs?: number;\n cpMaxBytes?: number;\n credentialSync?: boolean;\n inbound?: string;\n };\n checkpoint?: {\n maxLayers?: number;\n };\n claude?: AgentConfigBlock;\n codex?: AgentConfigBlock;\n opencode?: AgentConfigBlock;\n pi?: AgentConfigBlock;\n openclaw?: AgentConfigBlock;\n example?: AgentConfigBlock;\n attach?: {\n openIn?: AttachOpenIn;\n cmuxStatus?: boolean;\n herdrStatus?: boolean;\n };\n manager?: {\n carrier?: ManagerCarrierMode;\n lifetime?: ManagerLifetime;\n leaseGraceSeconds?: number;\n scrollbackBytes?: number;\n windowSize?: ManagerWindowSize;\n submitDelayMs?: number;\n detachKey?: string;\n };\n code?: {\n ide?: IdeFlavor;\n wait?: boolean;\n timeoutMs?: number;\n autoTerminals?: boolean;\n };\n shell?: {\n user?: string;\n login?: boolean;\n tmux?: boolean;\n };\n ssh?: {\n autoConfig?: boolean;\n };\n engine?: {\n kind?: EngineKind;\n };\n browser?: {\n default?: BrowserKind;\n };\n relay?: {\n port?: number;\n /**\n * Public HTTPS URL of a deployed control plane (the hosted Next.js +\n * Postgres app). When set, newly created cloud boxes point at it for their\n * centralized concerns — git-token leasing, permission state, the box\n * registry/events — and push to GitHub directly with a leased token, so\n * they keep working with the laptop off. Empty/unset = laptop-local relay\n * (the default). Set via `agentbox hub set-url`.\n */\n controlPlaneUrl?: string;\n /**\n * Per-request body cap (bytes) for custody PUTs. Defaults to 32 MiB.\n * Custody carries a project's untracked-files seed tarball, which the\n * relay's 1 MiB control-plane body cap is far too small for; this is scoped\n * to custody so every other route keeps that cap.\n *\n * Two sides enforce it independently: on a PC this governs how large a seed\n * blob the client will try to upload, while a **control box** enforces its\n * own cap from `AGENTBOX_CUSTODY_MAX_BODY_BYTES`. Raising only this one lets\n * the client offer a blob the control box then refuses — the push drops that\n * blob and continues, so raise both to actually admit a bigger seed.\n */\n custodyMaxBodyBytes?: number;\n /**\n * Cap for the streaming custody blob surface (`/admin/custody-blob/*`),\n * which carries the objects too big for the JSON API — a project's `carry:`\n * material above all. Defaults to 100 MiB to match `box.cpMaxBytes`, so an\n * entry the carry gate accepted can actually be stored.\n *\n * Same two-sided rule as `custodyMaxBodyBytes`: a control box enforces its\n * own via `AGENTBOX_CUSTODY_MAX_BLOB_BYTES`, so raise both.\n */\n custodyMaxBlobBytes?: number;\n /**\n * How long a control box waits for the user's machine to pick up a host\n * action that only that machine can run (`cp` between box and host), before\n * it treats the machine as offline. Also the silence after which a machine\n * that took an action is presumed gone, so the box is never left hanging.\n */\n hostReachTimeoutMs?: number;\n };\n git?: {\n pushMode?: GitPushMode;\n };\n hub?: {\n gitAuth?: HubGitAuthMode;\n mode?: HubMode;\n };\n vnc?: {\n containerPort?: number;\n };\n portless?: {\n enabled?: boolean;\n stateDir?: string;\n };\n autopause?: {\n enabled?: boolean;\n maxRunningBoxes?: number;\n idleMinutes?: number;\n };\n queue?: {\n enabled?: boolean;\n maxConcurrent?: number;\n maxWorking?: number;\n idleGraceSeconds?: number;\n openIn?: QueueOpenIn;\n };\n cloud?: {\n useCurrentBranch?: boolean;\n viaHub?: boolean;\n };\n maintenance?: {\n pruneProjectConfigs?: boolean;\n pruneProjectConfigsEvery?: number;\n };\n update?: {\n /**\n * Daily background check for a newer published CLI (npm registry) and\n * tray app (release sha sidecar), plus the \"newer version available\"\n * nudge it feeds. At most one network probe per 24h; `false` disables\n * both the probe and the nudge.\n */\n check?: boolean;\n /**\n * Release channel. `auto` (default) follows the installed build — a\n * `-nightly.` version means nightly. `nightly` pins membership so it\n * survives a stable version being installed from the nightly channel;\n * `stable` is the opt-out. See docs/nightly-channel-plan.md.\n */\n channel?: 'auto' | 'stable' | 'nightly';\n /**\n * npm registry base URL for resolving provider-plugin updates. Defaults to\n * the public registry; set it for a mirror or a private registry.\n */\n registry?: string;\n };\n tools?: {\n gh?: {\n enabled?: boolean;\n };\n request?: {\n enabled?: boolean;\n };\n };\n}\n\n/**\n * Required-everywhere variant returned as the merged effective config. Each\n * leaf is filled from BUILT_IN_DEFAULTS when no layer set it.\n *\n * `box.hostSnapshot` and `portless.enabled` are intentionally\n * `boolean | undefined` (unprompted): the default is \"ask the user\", expressed\n * as undefined.\n */\nexport interface EffectiveConfig {\n box: {\n /** A bare provider name — a `docker:<alias>` input is already split (see `UserConfig`). */\n provider: ProviderKind;\n hostSnapshot: boolean | undefined;\n defaultCheckpoint: string;\n defaultCheckpointDocker: string;\n defaultCheckpointDaytona: string;\n defaultCheckpointHetzner: string;\n defaultCheckpointVercel: string;\n defaultCheckpointE2b: string;\n defaultCheckpointDigitalocean: string;\n defaultCheckpointRemoteDocker: string;\n size: string;\n sizeDocker: string;\n sizeDaytona: string;\n sizeHetzner: string;\n sizeVercel: string;\n sizeE2b: string;\n sizeDigitalocean: string;\n sizeRemoteDocker: string;\n withPlaywright: boolean;\n withEnv: boolean;\n resyncOnStart: boolean;\n vnc: boolean;\n autoApproveHostActions: boolean;\n autoApproveSafeHostActions: boolean;\n persistent: boolean;\n isolateClaudeConfig: boolean;\n isolateCodexConfig: boolean;\n isolateOpencodeConfig: boolean;\n isolatePiConfig: boolean;\n isolateExampleConfig: boolean;\n image: string;\n imageDocker: string;\n imageDaytona: string;\n imageHetzner: string;\n imageVercel: string;\n imageE2b: string;\n imageDigitalocean: string;\n imageRemoteDocker: string;\n imageRegistry: string;\n dockerCacheShared: boolean;\n memory: number;\n cpus: number;\n pidsLimit: number;\n disk: string;\n bundleDepth: number | undefined;\n daytonaClass: string;\n daytonaRegion: string;\n daytonaTimeoutMs: number;\n daytonaVmBaseImage: string;\n hetznerLocation: string;\n digitaloceanRegion: string;\n digitaloceanProject: string;\n remoteDockerHost: string;\n vercelTimeoutMs: number;\n vercelNetworkPolicy: string;\n e2bTimeoutMs: number;\n cpMaxBytes: number;\n credentialSync: boolean;\n inbound: string;\n };\n checkpoint: {\n maxLayers: number;\n };\n claude: EffectiveAgentBlock;\n codex: EffectiveAgentBlock;\n opencode: EffectiveAgentBlock;\n pi: EffectiveAgentBlock;\n // No `box.isolateOpenclawConfig` leaf: a service agent's config volume is\n // always per-box (see `isolatable`).\n openclaw: EffectiveAgentBlock;\n example: EffectiveAgentBlock;\n attach: {\n openIn: AttachOpenIn;\n cmuxStatus: boolean;\n herdrStatus: boolean;\n };\n manager: {\n carrier: ManagerCarrierMode;\n lifetime: ManagerLifetime;\n leaseGraceSeconds: number;\n scrollbackBytes: number;\n windowSize: ManagerWindowSize;\n submitDelayMs: number;\n detachKey: string;\n };\n code: {\n ide: IdeFlavor;\n wait: boolean;\n timeoutMs: number;\n autoTerminals: boolean;\n };\n shell: {\n user: string;\n login: boolean;\n tmux: boolean;\n };\n ssh: {\n autoConfig: boolean;\n };\n engine: {\n kind: EngineKind;\n };\n browser: {\n default: BrowserKind;\n };\n relay: {\n port: number;\n controlPlaneUrl: string | undefined;\n custodyMaxBodyBytes: number;\n custodyMaxBlobBytes: number;\n hostReachTimeoutMs: number;\n };\n git: {\n pushMode: GitPushMode;\n };\n hub: {\n gitAuth: HubGitAuthMode;\n mode: HubMode;\n };\n vnc: {\n containerPort: number;\n };\n portless: {\n enabled: boolean | undefined;\n stateDir: string;\n };\n autopause: {\n enabled: boolean;\n maxRunningBoxes: number;\n idleMinutes: number;\n };\n queue: {\n enabled: boolean;\n maxConcurrent: number;\n maxWorking: number;\n idleGraceSeconds: number;\n openIn: QueueOpenIn;\n };\n cloud: {\n useCurrentBranch: boolean;\n viaHub: boolean;\n };\n maintenance: {\n pruneProjectConfigs: boolean;\n pruneProjectConfigsEvery: number;\n };\n update: {\n check: boolean;\n channel: 'auto' | 'stable' | 'nightly';\n registry: string;\n };\n tools: {\n gh: {\n enabled: boolean;\n };\n request: {\n enabled: boolean;\n };\n };\n}\n\nexport type ConfigSource = 'cli' | 'workspace' | 'project' | 'global' | 'default';\n\nexport interface ConfigLayer {\n source: ConfigSource;\n /** File path the layer was loaded from. Absent for `cli` and `default`. */\n path?: string;\n values: Partial<UserConfig>;\n}\n\nexport interface LoadedConfig {\n effective: EffectiveConfig;\n layers: {\n cli: { values: Partial<UserConfig> };\n workspace: { path: string | null; values: Partial<UserConfig> };\n project: { path: string; values: Partial<UserConfig> };\n global: { path: string; values: Partial<UserConfig> };\n defaults: EffectiveConfig;\n };\n /** Per-leaf source map: 'box.hostSnapshot' -> 'workspace'. Powers `config get --all`. */\n sources: Record<string, ConfigSource>;\n /** Resolved project root used for the project layer (cwd if no agentbox.yaml found). */\n projectRoot: string;\n projectHash: string;\n /** True if we walked up to an agentbox.yaml; false if we fell back to cwd. */\n hasAgentboxYaml: boolean;\n /**\n * Non-fatal issues found while parsing the layers — today, unknown keys\n * (skipped, not applied). Empty on a clean load. `agentbox doctor` lists\n * these; the CLI also prints them via the warning sink (see `setConfigWarningSink`).\n */\n warnings: string[];\n}\n\nexport const BUILT_IN_DEFAULTS: EffectiveConfig = {\n box: {\n provider: 'docker',\n hostSnapshot: undefined,\n defaultCheckpoint: '',\n defaultCheckpointDocker: '',\n defaultCheckpointDaytona: '',\n defaultCheckpointHetzner: '',\n defaultCheckpointVercel: '',\n defaultCheckpointE2b: '',\n defaultCheckpointDigitalocean: '',\n defaultCheckpointRemoteDocker: '',\n size: '',\n sizeDocker: '',\n sizeDaytona: '',\n sizeHetzner: '',\n sizeVercel: '',\n sizeE2b: '',\n sizeDigitalocean: '',\n sizeRemoteDocker: '',\n withPlaywright: false,\n withEnv: false,\n resyncOnStart: true,\n vnc: true,\n autoApproveHostActions: false,\n autoApproveSafeHostActions: true,\n persistent: false,\n ...(perAgentIsolateDefaults() as Pick<EffectiveConfig['box'], AgentIsolateKey>),\n image: 'agentbox/box:dev',\n imageDocker: '',\n imageDaytona: '',\n imageHetzner: '',\n imageVercel: '',\n imageE2b: '',\n imageDigitalocean: '',\n // Empty = the provider derives the fingerprint-tagged ref itself and ensures\n // it on the remote engine; set only to pin a hand-built image there.\n imageRemoteDocker: '',\n // Mirrors BOX_IMAGE_REGISTRY in @agentbox/sandbox-docker. Empty disables the\n // registry pull (always build the docker base image locally).\n imageRegistry: 'ghcr.io/madarco/agentbox/box',\n dockerCacheShared: false,\n memory: 0,\n cpus: 0,\n pidsLimit: 0,\n disk: '',\n bundleDepth: undefined,\n daytonaClass: 'container',\n // Empty = derive from the class: linux-vm implies us-east-1 (the only\n // region with VM runners), container keeps Daytona's own default.\n daytonaRegion: '',\n daytonaTimeoutMs: 1_500_000,\n // Empty = the fingerprint-tagged image CI publishes to GHCR.\n daytonaVmBaseImage: '',\n hetznerLocation: 'nbg1',\n digitaloceanRegion: 'nyc3',\n // Empty = leave boxes in the account's default project (DigitalOcean's own\n // behavior). There is no sane default id to pick — it differs per account.\n digitaloceanProject: '',\n // Empty = no default remote engine; `--provider remote-docker` then errors\n // unless the SSH destination came from `docker:<host>` / `--remote-host`.\n remoteDockerHost: '',\n vercelTimeoutMs: 2_700_000,\n vercelNetworkPolicy: '',\n e2bTimeoutMs: 2_700_000,\n cpMaxBytes: 100 * 1024 * 1024,\n credentialSync: true,\n inbound: 'locked',\n },\n checkpoint: {\n maxLayers: 3,\n },\n // Generated: `writeLeaf` silently no-ops when a branch object is missing, so a\n // generated KEY_REGISTRY entry without a generated default would validate and\n // then do nothing.\n ...(perAgentDefaults() as Pick<EffectiveConfig, AgentBlockKey>),\n attach: {\n openIn: 'split',\n cmuxStatus: true,\n herdrStatus: true,\n },\n manager: {\n carrier: 'auto',\n lifetime: 'leased',\n leaseGraceSeconds: 60,\n scrollbackBytes: 512 * 1024,\n windowSize: 'latest',\n submitDelayMs: 400,\n detachKey: 'C-]',\n },\n code: {\n ide: 'auto',\n wait: true,\n timeoutMs: 120_000,\n autoTerminals: true,\n },\n shell: {\n user: 'vscode',\n login: true,\n tmux: true,\n },\n ssh: {\n autoConfig: true,\n },\n engine: {\n kind: 'auto',\n },\n browser: {\n default: 'agent-browser',\n },\n relay: {\n port: 8787,\n controlPlaneUrl: undefined,\n custodyMaxBodyBytes: 32 * 1024 * 1024,\n custodyMaxBlobBytes: 100 * 1024 * 1024,\n hostReachTimeoutMs: 60_000,\n },\n git: {\n pushMode: 'auto',\n },\n hub: {\n gitAuth: 'gh',\n mode: 'auto',\n },\n vnc: {\n containerPort: 6080,\n },\n portless: {\n enabled: undefined,\n stateDir: '',\n },\n autopause: {\n enabled: true,\n maxRunningBoxes: 5,\n idleMinutes: 5,\n },\n queue: {\n enabled: true,\n maxConcurrent: 5,\n maxWorking: 0,\n idleGraceSeconds: 15,\n openIn: 'none',\n },\n cloud: {\n useCurrentBranch: false,\n viaHub: true,\n },\n maintenance: {\n pruneProjectConfigs: true,\n pruneProjectConfigsEvery: 50,\n },\n update: {\n check: true,\n channel: 'auto',\n registry: 'https://registry.npmjs.org',\n },\n tools: {\n gh: { enabled: true },\n request: { enabled: true },\n },\n};\n\nexport type KeyType = 'bool' | 'string' | 'int' | 'enum' | 'enum-list';\n\nexport interface KeyDescriptor {\n /** Dot-path, e.g. \"box.snapshot\". */\n key: string;\n type: KeyType;\n enumValues?: readonly string[];\n description: string;\n /** True for keys most users shouldn't touch (image, ports). Hidden from `list` by default. */\n advanced?: boolean;\n /**\n * `enum` only: also accept a host-qualified provider spec (`docker:<alias>`).\n * `box.provider` is an enum of provider NAMES, but `docker:<host>` names an\n * engine and resolves to the same remote-docker provider — and it is what a\n * control box's own engine is spelled as, so it has to be settable as a\n * default. The membership check stays exact for everything else.\n */\n allowProviderSpec?: boolean;\n}\n\n/** Join blurbs into \"a, b, c, or d\" for the enum description. */\nfunction joinOr(items: readonly string[]): string {\n if (items.length <= 1) return items.join('');\n return `${items.slice(0, -1).join(', ')}, or ${items[items.length - 1]}`;\n}\n\n/**\n * Per-provider config-key descriptors generated from the `PROVIDERS` table so a\n * new provider gets its `box.defaultCheckpoint<P>` / `box.size<P>` /\n * `box.image<P>` entries automatically. The `size`/`image` descriptions come\n * from the table (they carry provider-specific detail); the checkpoint one is\n * uniform.\n */\nfunction perProviderCheckpointKeys(): KeyDescriptor[] {\n return PROVIDERS.map((p) => ({\n key: perProviderConfigKey('defaultCheckpoint', p.name),\n type: 'string',\n description: `Per-provider override of \\`box.defaultCheckpoint\\` for ${p.name}. Wins over the global when set; set via \\`agentbox checkpoint set-default --provider ${p.name}\\`.`,\n advanced: true,\n }));\n}\nfunction perProviderSizeKeys(): KeyDescriptor[] {\n return PROVIDERS.map((p) => ({\n key: perProviderConfigKey('size', p.name),\n type: 'string',\n description: p.sizeDesc,\n advanced: true,\n }));\n}\n/**\n * The per-agent keys, generated from the `AGENT_KINDS` table.\n *\n * These were written out by hand, three entries per agent, which is one of the\n * places adding an agent meant editing this file. `dangerouslySkipPermissions`\n * is generated only for agents that HAVE such a flag — OpenCode does not, and a\n * key that silently does nothing is worse than an absent one.\n */\n/** The per-agent default branches, from the same table the keys come from. */\n/**\n * The `EffectiveConfig` keys that are agent blocks, derived from `AGENT_KINDS`\n * rather than re-typed. Spelling the set out again is what\n * `no-inline-agent-union.test.ts` exists to catch: it would be a second place to\n * remember when an agent is added, and the compiler would not connect the two.\n *\n * The blocks themselves are still declared by hand above — a TypeScript\n * interface cannot be generated from a runtime array, the same limitation\n * `providers.ts` documents for the per-provider image keys.\n */\ntype AgentBlockKey = Extract<keyof EffectiveConfig, (typeof AGENT_KINDS)[number]['id']>;\n\n/** The `box.*` leaves that are per-agent volume-isolation flags, likewise derived. */\ntype AgentIsolateKey = Extract<\n keyof EffectiveConfig['box'],\n `isolate${Capitalize<(typeof AGENT_KINDS)[number]['id']>}Config`\n>;\n\nfunction perAgentDefaults(): Record<string, EffectiveAgentBlock> {\n const out: Record<string, EffectiveAgentBlock> = {};\n // Widened: `as const satisfies` narrows each row to its own literal type, so\n // an optional field is absent from the rows that omit it.\n for (const agent of AGENT_KINDS as readonly AgentConfigKind[]) {\n const settings: Record<string, string | boolean> = {};\n for (const setting of agent.settings ?? []) settings[setting.key] = setting.default;\n out[agent.id] = {\n sessionName: agent.defaultSessionName,\n ...(agent.hasSkipPermissions ? { dangerouslySkipPermissions: true } : {}),\n ...settings,\n };\n }\n // An installed agent package's block exists only if it declared settings —\n // `sessionName` and the isolate flag are generated from `AGENT_KINDS`, which a\n // plugin agent is absent from. Its own spec row carries the session name.\n for (const plugin of pluginAgentSettings()) {\n if (out[plugin.id]) continue;\n const settings: Record<string, string | boolean> = {};\n for (const setting of plugin.settings) settings[setting.key] = setting.default;\n out[plugin.id] = { sessionName: plugin.id, ...settings };\n }\n return out;\n}\n\n/** The `<agent>.<key>` descriptors one agent's declared settings generate. */\nfunction agentSettingKeys(id: string, settings: readonly AgentConfigSetting[]): KeyDescriptor[] {\n return settings.map((setting) => ({\n key: `${id}.${setting.key}`,\n type: setting.type,\n ...(setting.enumValues ? { enumValues: setting.enumValues } : {}),\n ...(setting.advanced ? { advanced: true } : {}),\n description: setting.description,\n }));\n}\n\n/** `claude` -> `Claude`, for the `box.isolate<Agent>Config` key spelling. */\nfunction capitalizeAgentId(id: string): string {\n return id.charAt(0).toUpperCase() + id.slice(1);\n}\n\n/**\n * Does this agent get a `box.isolate<Agent>Config` key at all?\n *\n * A SERVICE agent does not. Its config volume is always per-box — two daemons\n * sharing one state dir share one identity, which is the thing the product\n * cannot allow — so `create` derives isolation from `caps.surface` and never\n * reads a key. Generating one anyway would offer a switch that does nothing,\n * the same reason `dangerouslySkipPermissions` is generated only where the\n * agent has such a flag.\n */\nfunction isolatable(agent: AgentConfigKind): boolean {\n return agent.surface !== 'service';\n}\n\n/**\n * `box.isolate<Agent>Config` for every agent. These live under `box.` rather\n * than `<agent>.` because they are a property of the BOX (which volume it\n * mounts), not of the agent's launch.\n */\nfunction perAgentIsolateKeys(): KeyDescriptor[] {\n // Widened: `as const satisfies` narrows each row to its own literal type, so\n // an optional field is absent from the rows that omit it.\n return (AGENT_KINDS as readonly AgentConfigKind[]).filter(isolatable).map((agent) => ({\n key: `box.isolate${capitalizeAgentId(agent.id)}Config`,\n type: 'bool' as const,\n description:\n agent.isolateVolumeDesc ?? `Use a per-box ~/.${agent.id} volume instead of the shared one.`,\n }));\n}\n\nfunction perAgentIsolateDefaults(): Record<string, boolean> {\n const out: Record<string, boolean> = {};\n for (const agent of (AGENT_KINDS as readonly AgentConfigKind[]).filter(isolatable)) {\n out[`isolate${capitalizeAgentId(agent.id)}Config`] = false;\n }\n return out;\n}\n\nfunction perAgentKeys(): KeyDescriptor[] {\n const out: KeyDescriptor[] = [];\n for (const agent of AGENT_KINDS as readonly AgentConfigKind[]) {\n out.push({\n key: `${agent.id}.sessionName`,\n type: 'string',\n description: `tmux session name for \\`agentbox ${agent.id}\\`.`,\n });\n if (agent.hasSkipPermissions) {\n out.push({\n key: `${agent.id}.dangerouslySkipPermissions`,\n type: 'bool',\n description: agent.skipPermissionsDesc ?? '',\n });\n }\n out.push(...agentSettingKeys(agent.id, agent.settings ?? []));\n }\n return out;\n}\n\n/**\n * The settings keys contributed by agents installed from an npm package.\n *\n * Kept OUT of {@link BUILTIN_KEY_REGISTRY} so the JSON schema — which is\n * `additionalProperties: false` and shipped with the package — stays a\n * description of what this build knows, not of one machine's install set.\n */\nfunction installedAgentKeys(): KeyDescriptor[] {\n const builtin = new Set<string>(AGENT_KINDS.map((a) => a.id));\n return pluginAgentSettings()\n .filter((p) => !builtin.has(p.id))\n .flatMap((p) => agentSettingKeys(p.id, p.settings));\n}\n\nfunction perProviderImageKeys(): KeyDescriptor[] {\n return PROVIDERS.map((p) => ({\n key: perProviderConfigKey('image', p.name),\n type: 'string',\n description: p.imageDesc,\n advanced: true,\n }));\n}\n\n/**\n * Single source of truth for which keys are addressable from the CLI. The\n * parser, `set`/`unset`, and `list` all walk this. Adding a key here is the\n * one place a new field has to be registered (plus the type interface above\n * and the JSON schema). Per-provider `box.{image,size,defaultCheckpoint}<P>`\n * keys are generated from the `PROVIDERS` table (see `providers.ts`).\n */\nexport const BUILTIN_KEY_REGISTRY: readonly KeyDescriptor[] = [\n {\n key: 'box.provider',\n type: 'enum',\n enumValues: PROVIDER_NAMES,\n allowProviderSpec: true,\n description:\n `Sandbox backend new boxes are created on: ${joinOr(PROVIDERS.map((p) => p.blurb))}. ` +\n 'Also accepts a host-qualified `docker:<alias>` spec naming a registered remote-docker engine (e.g. `docker:hub` for your control box).',\n },\n {\n key: 'box.hostSnapshot',\n type: 'bool',\n description:\n 'Use a frozen APFS clone of the host workspace as the overlay lower (default: prompt). Was box.snapshot.',\n },\n {\n key: 'box.defaultCheckpoint',\n type: 'string',\n description:\n 'Checkpoint ref new boxes in this project start from when --snapshot is not given (set via `agentbox checkpoint set-default`). Used as fallback when no per-provider override is set.',\n },\n ...perProviderCheckpointKeys(),\n {\n key: 'box.size',\n type: 'string',\n description:\n 'Default VM size for cloud providers. Provider-interpreted: hetzner = server type (e.g. `cx33`); daytona = `cpu-memory-disk` GB (e.g. `4-8-20`); vercel = vCPU count (1, 2, 4, 8); e2b = `cpu-memory` GB (e.g. `4-8`). Used as fallback when no per-provider override is set. Docker ignores it.',\n },\n ...perProviderSizeKeys(),\n {\n key: 'checkpoint.maxLayers',\n type: 'int',\n description:\n 'Max stacked checkpoint layers before a new checkpoint is materialized merged (flattened) instead of layered.',\n advanced: true,\n },\n {\n key: 'box.withPlaywright',\n type: 'bool',\n description: 'Install @playwright/cli@latest in the box at create time.',\n },\n {\n key: 'box.withEnv',\n type: 'bool',\n description:\n 'Copy host env/config files (.env*, secrets.toml, agentbox.yaml, ...) into /workspace at box create time (gitignore-bypassing).',\n },\n {\n key: 'box.resyncOnStart',\n type: 'bool',\n description:\n \"Merge the host's current branch into the box and overlay the host's uncommitted/untracked changes when starting an agent session (keeps the box's version on conflict and warns the agent).\",\n },\n {\n key: 'box.vnc',\n type: 'bool',\n description: 'Run the per-box Xvnc + noVNC stack.',\n },\n {\n key: 'box.autoApproveHostActions',\n type: 'bool',\n description:\n 'Auto-approve host-action confirmations (git push, cp host<->box, gh PR writes, checkpoint) for this box without an interactive prompt. Off by default; intended for unattended orchestration of trusted boxes. Each auto-approval is recorded as a relay event (visible in `agentbox agent` / the dashboard).',\n },\n {\n key: 'box.autoApproveSafeHostActions',\n type: 'bool',\n description:\n \"Auto-approve the SAFE subset of host actions without a prompt: opening a PR, PR/review comments, re-running CI, pushing to the box's scratch or host-sanctioned branch, checkpoints, calls to a granted host tool, file copy/download that stays inside the box project folder (non-secret), and opening a link from the box in your host browser (rate-limited to 2 per 30s and 10 per 10min per box; over that it asks). Uncontained or secret file transfers, non-sanctioned-branch pushes, and PR merge/checkout still prompt. On by default; set false to prompt for every host action (the pre-relax behavior). Superseded by box.autoApproveHostActions, which approves everything. Each auto-approval is recorded as a relay event.\",\n },\n {\n key: 'box.persistent',\n type: 'bool',\n description:\n 'Make new boxes persistent (always-on): never auto-paused, never idle-lapsed on a cloud provider, skipped by `agentbox prune`, confirmed before `destroy` even with -y, and started again by the relay after a host reboot. Off by default. Refused on e2b/vercel, whose platform session cap the host can extend but not remove.',\n },\n ...perAgentIsolateKeys(),\n {\n key: 'box.image',\n type: 'string',\n description:\n 'Generic box image ref (fallback). Used as fallback when no per-provider override is set; the default `agentbox/box:dev` is treated as a sentinel by cloud backends (boot from their prepared base snapshot instead).',\n advanced: true,\n },\n ...perProviderImageKeys(),\n {\n key: 'box.imageRegistry',\n type: 'string',\n description:\n 'Registry repo to pull the prebuilt docker base image from before building locally. Empty = always build. Docker only (advanced).',\n advanced: true,\n },\n {\n key: 'box.dockerCacheShared',\n type: 'bool',\n description:\n \"Share the in-box docker image cache across boxes via the 'agentbox-docker-cache' volume (preserved on destroy/prune; only one box can run at a time when set).\",\n },\n {\n key: 'box.memory',\n type: 'int',\n description:\n 'Hard memory ceiling in MiB for new boxes (0 = unlimited). Use --memory on create/claude for byte/k/m/g strings.',\n },\n {\n key: 'box.cpus',\n type: 'int',\n description:\n 'CPU count cap for new boxes (0 = unlimited). Whole cores via config; use --cpus for fractional (e.g. 1.5).',\n },\n {\n key: 'box.pidsLimit',\n type: 'int',\n description: 'Max process count (PIDs cgroup) for new boxes (0 = unlimited).',\n },\n {\n key: 'box.disk',\n type: 'string',\n description:\n \"Best-effort writable-layer size for new boxes, e.g. '10G'. No-op on overlay2 / the macOS engines.\",\n advanced: true,\n },\n {\n key: 'box.bundleDepth',\n type: 'int',\n description:\n 'Cap git bundle history shipped to cloud sandboxes (daytona, hetzner). 0 = full history. Unset = adaptive default (last 200 commits; re-bundle at 100 if the bundle exceeds 20 MB). Ignored for docker (which bind-mounts .git/).',\n },\n {\n key: 'box.daytonaClass',\n type: 'string',\n description:\n 'Daytona sandbox class for new --provider daytona boxes: `container` (default) or `linux-vm`. `linux-vm` gives real pause/resume (CPU + memory frozen, running processes survive) and a much faster base bake, but runs only in `us-east-1` — a *dedicated* region Daytona enables per organization, so most accounts cannot bake one at all. Set it when your org has a VM region. `container` builds its base from the Dockerfile (no published image needed) and runs in the shared regions (`us`, `eu`). Changing this needs a re-bake: `agentbox prepare --provider daytona --force`. Daytona-only.',\n },\n {\n key: 'box.daytonaRegion',\n type: 'string',\n description:\n 'Daytona region new --provider daytona boxes are created in (e.g. `us`, `eu`, `us-east-1`). Empty (the default) derives it from `box.daytonaClass`: `container` (the default class) uses the account default, `linux-vm` implies `us-east-1`. Only `us-east-1` has linux-vm runners, so pairing `linux-vm` with another region fails at create. Daytona-only.',\n },\n {\n key: 'box.daytonaTimeoutMs',\n type: 'int',\n description:\n 'Idle timeout (ms) a new --provider daytona box is created with, after which Daytona auto-stops it. The host keepalive loop pushes this forward while the agent is working, so only genuinely idle boxes lapse. Default 1500000 (25 min). 0 disables auto-stop entirely. Unlike vercel/e2b (absolute session TTLs) this is an *inactivity* window. Daytona-only.',\n },\n {\n key: 'box.daytonaVmBaseImage',\n type: 'string',\n description:\n 'Registry image the daytona `linux-vm` base snapshot is baked from. Empty (the default) uses the fingerprint-tagged box image CI publishes (`ghcr.io/madarco/agentbox/box:sha-<context-sha>`). Daytona can only build a VM snapshot from a prebuilt image, never a Dockerfile, so a build context with no published image (a locally modified `Dockerfile.box`) has nothing to boot and falls back to the container class -- set this to bake a VM from your own published image instead. Must be amd64 and carry an explicit tag or digest. Daytona-only.',\n },\n {\n key: 'box.hetznerLocation',\n type: 'string',\n description:\n 'Hetzner datacenter location new --provider hetzner boxes are created in (e.g. `nbg1`, `fsn1`, `hel1`, `ash`). Default `nbg1`. Overridable per-create with `--location`. Hetzner-only; ignored by other providers.',\n },\n {\n key: 'box.digitaloceanRegion',\n type: 'string',\n description:\n 'DigitalOcean region new --provider digitalocean boxes are created in (e.g. `nyc3`, `nyc1`, `sfo3`, `ams3`, `fra1`). Default `nyc3`. Overridable per-create with `--location`. DigitalOcean-only; ignored by other providers.',\n },\n {\n key: 'box.digitaloceanProject',\n type: 'string',\n description:\n \"DigitalOcean Project new --provider digitalocean boxes are placed in — a name or the project's UUID. Unset (the default) leaves boxes in the account's default project. Set it per repo via `agentbox.yaml`, or globally at `agentbox digitalocean login`. DigitalOcean-only; ignored by other providers.\",\n },\n {\n key: 'box.remoteDockerHost',\n type: 'string',\n description:\n 'Default SSH destination new --provider remote-docker boxes run their container on — an `~/.ssh/config` alias or `[user@]host[:port]`. Overridable per-create with `agentbox docker:<host> …` or `--remote-host`. SSH auth comes from your own `~/.ssh/config` + agent, unless the host was shared with a control box (`agentbox remote-docker share`), which registers an explicit key. remote-docker-only; ignored by other providers.',\n },\n {\n key: 'box.vercelTimeoutMs',\n type: 'int',\n description:\n 'Max session length (ms) for new --provider vercel boxes before the VM auto-snapshots; persistent mode auto-resumes on the next call. Default 2700000 (45 min, the Hobby ceiling). Vercel-only.',\n },\n {\n key: 'box.e2bTimeoutMs',\n type: 'int',\n description:\n 'Session window (ms) a --provider e2b box is created with and re-armed with on every resume; the host keepalive pushes it forward while the agent is working, and doubles as the idle window after which the host pauses the box. Boxes pause rather than die at the window (and at E2B’s own ~1 h Hobby / 24 h Pro cap), keeping filesystem and memory. Default 2700000 (45 min). E2B-only.',\n },\n {\n key: 'box.cpMaxBytes',\n type: 'int',\n description:\n 'Max bytes a single host→box copy may transfer after excludes, shared by `agentbox cp` (blocked with a size breakdown unless --yes) and each `carry:` entry (rejected at resolve time). Default 104857600 (100 MiB).',\n advanced: true,\n },\n {\n key: 'box.credentialSync',\n type: 'bool',\n description:\n 'Automatically sync refreshed agent credentials (claude/codex/opencode) from boxes to the host backup and out to all other running boxes. Claude OAuth refresh rotates the refresh token, so without this every other copy 401s after any box refreshes. Default true; --no-credential-sync at create disables the in-box watcher for that box.',\n },\n {\n key: 'box.inbound',\n type: 'string',\n description:\n \"Inbound-access policy for VPS boxes (hetzner, digitalocean per-box firewall). `locked` (default) = SSH reachable only from your host's egress IP; `open` = SSH reachable from anywhere (0.0.0.0/0, key-only — to drive a box from a phone with the laptop off); a CIDR list (e.g. `203.0.113.5/32`) = host egress plus those. Override per box with `--inbound` or after create with `agentbox inbound <box>`. Ignored by non-VPS providers.\",\n },\n {\n key: 'box.vercelNetworkPolicy',\n type: 'string',\n description:\n \"Egress lock for new --provider vercel boxes: 'allow-all' (default, unset), 'deny-all', or a comma-separated domain allowlist (e.g. 'github.com,*.npmjs.org') that denies everything else. Vercel-only; ignored by other providers.\",\n },\n ...perAgentKeys(),\n {\n key: 'attach.openIn',\n type: 'enum',\n enumValues: ['split', 'window', 'tab', 'same'] as const,\n description:\n 'Where `agentbox claude|codex|opencode` opens the attached session when run from tmux, cmux, Herdr, or iTerm2: `split` (tmux split-window / cmux new-split / Herdr pane.split / iTerm2 vertical split, default — same workspace), `window` (tmux new-window / cmux new-workspace / Herdr workspace.create / new iTerm2 window), `tab` (tmux new-window / cmux new-surface / Herdr tab.create in the current workspace / new iTerm2 tab), or `same` (attach inline in the current terminal). Outside tmux/cmux/Herdr/iTerm2 every value behaves like `same`.',\n },\n {\n key: 'attach.cmuxStatus',\n type: 'bool',\n description:\n \"When attached inside cmux, reflect the box agent's live activity on its cmux workspace (colour + description: blue=working, amber=needs input, idle clears; restored on detach) and, when the agent needs input, flag the box's own tab via a cmux notification (tab badge + reorder + desktop notification) so it stands out among sibling tabs. cmux only; no-op in other terminals.\",\n },\n {\n key: 'attach.herdrStatus',\n type: 'bool',\n description:\n \"When attached inside Herdr, report the box agent's live activity to its Herdr pane (pane.report_agent: working / blocked / idle) so it looks like a normal agent pane and Herdr handles needs-input natively, and fire a Herdr notification for AgentBox's own host-relay approval prompts (git push / PR / checkpoint …) which Herdr can't otherwise see. Herdr only; no-op in other terminals.\",\n },\n {\n key: 'manager.carrier',\n type: 'enum',\n enumValues: ['auto', 'pty', 'tmux'] as const,\n description:\n 'Which carrier `agentbox manager start` runs a session on. `auto` (default) uses the AgentBox pty host, so the terminal you attach with owns scrollback, mouse, selection and the modified Enter, and falls back to tmux when this install has no node-pty prebuild. `pty` refuses rather than falling back; `tmux` keeps the old carrier, whose keys and clipboard are limited by options that can only be set server-wide.',\n },\n {\n key: 'manager.lifetime',\n type: 'enum',\n enumValues: ['leased', 'persistent'] as const,\n description:\n 'What ends a pty-hosted manager. `leased` (default): a session a client holds a lease on is stopped once that client stays away past `manager.leaseGraceSeconds` — quitting the tray ends the terminals it opened, while an update that relaunches inside the window keeps them. A session nothing ever leased (one you started from a terminal) is never reaped either way. `persistent`: only an explicit stop ends a session. A pinned manager overrides both.',\n },\n {\n key: 'manager.leaseGraceSeconds',\n type: 'int',\n description:\n 'How long a leased manager keeps running after its last lease holder disappears. Long enough that a client restart or update is not a session loss; short enough that quitting really does clean up. Default 60.',\n },\n {\n key: 'manager.scrollbackBytes',\n type: 'int',\n description:\n 'How much recent output a pty host keeps so a client attaching later gets a painted screen instead of a blank one. Trimmed to the last full repaint before it is replayed. Default 524288.',\n },\n {\n key: 'manager.windowSize',\n type: 'enum',\n enumValues: ['latest', 'smallest', 'largest'] as const,\n description:\n 'Whose terminal size a manager session takes when several clients are attached: `latest` (default) the one that attached or resized most recently — typing never resizes anything — or `smallest`/`largest` to clamp to the least or most room available.',\n },\n {\n key: 'manager.submitDelayMs',\n type: 'int',\n description:\n 'The pause between typing a message into a manager and pressing Enter. An agent TUI reads a burst ending in Enter as one paste and keeps the Enter as a newline; the pause makes it a keypress that submits. Default 400.',\n },\n {\n key: 'manager.detachKey',\n type: 'string',\n description:\n 'The chord that leaves `agentbox manager attach` without stopping the session: a `C-<key>` spelling (default `C-]`, then `d`), or `none` to forward every byte and leave closing the terminal as the only way out. Everything except this chord reaches the agent untouched.',\n },\n {\n key: 'code.ide',\n type: 'enum',\n enumValues: ['vscode', 'cursor', 'auto'] as const,\n description: 'Which IDE `agentbox code` launches; \"auto\" prefers code, falls back to cursor.',\n },\n {\n key: 'code.wait',\n type: 'bool',\n description: 'Block on agentbox-ctl wait-ready before opening the IDE.',\n },\n {\n key: 'code.timeoutMs',\n type: 'int',\n description: 'wait-ready timeout in milliseconds.',\n },\n {\n key: 'code.autoTerminals',\n type: 'bool',\n description: 'Generate /workspace/.vscode/tasks.json so the IDE auto-opens log panels.',\n },\n {\n key: 'shell.user',\n type: 'string',\n description: 'Default in-container user for `agentbox shell`.',\n },\n {\n key: 'shell.login',\n type: 'bool',\n description: 'Pass `-l` to bash so the login profile loads.',\n },\n {\n key: 'shell.tmux',\n type: 'bool',\n description: 'Run `agentbox shell` inside a detachable tmux session (Ctrl+a d to detach).',\n },\n {\n key: 'ssh.autoConfig',\n type: 'bool',\n description:\n \"Automatically write a `~/.agentbox/ssh/config` entry (Include'd from `~/.ssh/config`) for SSH-capable cloud boxes on create and start/resume, so `ssh <box>` just works. On by default; set false if you manage `~/.ssh/config` yourself. Explicit `agentbox shell --ssh-config`/`code`/`open` still write on demand regardless.\",\n },\n {\n key: 'engine.kind',\n type: 'enum',\n enumValues: ['orbstack', 'docker-desktop', 'other', 'auto'] as const,\n description:\n 'Override the docker-engine auto-detection (used for OrbStack-only optimisations).',\n },\n {\n key: 'browser.default',\n type: 'enum',\n enumValues: ['agent-browser', 'playwright', 'both'] as const,\n description:\n 'Default browser stack inside the box. \"playwright\" or \"both\" implies box.withPlaywright.',\n },\n {\n key: 'relay.port',\n type: 'int',\n description: 'Host relay TCP port (advanced).',\n advanced: true,\n },\n {\n key: 'relay.controlPlaneUrl',\n type: 'string',\n description:\n 'Public HTTPS URL of a deployed control plane (hosted Next.js + Postgres app). When set, new cloud boxes point at it for git-token leasing, permission state, and the box registry/events, and push to GitHub directly with a leased token so they keep working with the laptop off. Set via `agentbox hub set-url`.',\n },\n {\n key: 'relay.custodyMaxBodyBytes',\n type: 'int',\n description:\n 'Per-request body cap (bytes) for custody JSON PUTs (default 33554432 = 32 MiB). This is the simple base64-in-JSON API, used for small values (credentials, .env files, SSH keys); large payloads go to the streaming blob API governed by relay.custodyMaxBlobBytes. It applies only to custody, so every other relay route keeps the 1 MiB control-plane cap. On a PC it governs how large a blob the client will upload; a control box enforces its own cap via AGENTBOX_CUSTODY_MAX_BODY_BYTES, so raise both.',\n advanced: true,\n },\n {\n key: 'relay.custodyMaxBlobBytes',\n type: 'int',\n description:\n \"Per-request cap (bytes) for the streaming custody blob API (default 104857600 = 100 MiB), which carries payloads too large to buffer as base64 — chiefly a project's `carry:` material. Defaults to the same value as box.cpMaxBytes so an entry the carry gate accepted at resolve time can actually be stored on a control box; if the two disagree the CLI promises a copy the transport then refuses. Enforced mid-stream (an over-cap upload is cut off, not landed). A control box enforces its own cap via AGENTBOX_CUSTODY_MAX_BLOB_BYTES, so raise both.\",\n advanced: true,\n },\n {\n key: 'relay.hostReachTimeoutMs',\n type: 'int',\n description:\n 'How long a control box waits (ms, default 60000) for your machine to pick up a copy between a box and your files, before treating it as offline — and how long a silence must last before a machine that already took the copy is presumed gone. Your machine long-polls the control box while its relay runs, so this is a missed-heartbeat window, not a per-copy timeout: once your machine has the action it can sit on a confirmation prompt for as long as you like. Read on the machine that does the waiting — set it ON THE CONTROL BOX (its own config, or AGENTBOX_HOST_REACH_TIMEOUT_MS in its deploy env); setting it on your laptop governs nothing, since your laptop is not the one parking the copy. Lower it to fall back to the hub cache sooner on a flaky link, raise it if your machine sleeps often.',\n advanced: true,\n },\n {\n key: 'git.pushMode',\n type: 'enum',\n enumValues: ['auto', 'relay', 'lease', 'direct'] as const,\n description:\n \"How a box's `git push` reaches GitHub: `relay` (the host relay pushes with your host credentials — they never enter the box), `lease` (the relay/plane leases a short-lived GitHub-App token and the box pushes directly, so it works with the laptop off), `direct` (the box holds a COPY of your git credentials and pushes/pulls/signs entirely on its own — needs no host or hub, but the credentials live inside the box and its snapshots; set via `--with-credentials`, which copies them in behind a confirmation), or `auto` (default — lease when `relay.controlPlaneUrl` is set for the box, else relay). Only affects cloud boxes; docker boxes always use `relay`. Forcing `relay` needs a reachable host relay for the box; forcing `lease` needs a reachable relay/plane with a GitHub App; `direct` needs credentials to have been copied into the box at create time, and is REFUSED when a control box is configured (`relay.controlPlaneUrl`) — use leasing (the `auto` default) instead.\",\n },\n {\n key: 'hub.mode',\n type: 'enum',\n enumValues: ['auto', 'thin', 'local'] as const,\n description:\n \"Whether the local docker engine is offered on this machine: `auto` (default — docker and remote-docker are available until a control box is configured (`relay.controlPlaneUrl`), then gated off since a laptop-built docker box can't run with the laptop off), `thin` (force the gated behavior even without a configured control box), or `local` (keep docker on regardless of a control box). When gated, `create --provider docker` is refused, docker rows are dropped from the provider pickers / `doctor` / `prepare`, and docker boxes are shown as inactive in `ls`. With a control box configured, boxes are built by the control box and local docker on that machine is NOT supported: `local` still builds, but the box is owned by this machine's hub, so it is missing from `agentbox list` against the control box and every `agentbox git` command against it fails — every create/bake warns. `local` is the real fix only for `thin` with no control box. Exception: with `agentbox hub expose` the control box IS this machine, so docker stays on and nothing warns.\",\n },\n {\n key: 'hub.gitAuth',\n type: 'enum',\n enumValues: ['gh', 'app'] as const,\n description:\n 'Which git credential a deployed hub (control box) uses: `gh` (default — the hub holds a GitHub token taken from your own `gh` login and does the git work itself, so boxes never receive a credential and nothing needs installing or approving on GitHub) or `app` (the hub holds a GitHub App private key and leases a 1-hour, single-repo token to each box, which is tighter but requires the repo owner to install the App). Deploy intent: it selects what `agentbox hub setup` / `hub deploy` provisions and which push mode a cloud box gets — it cannot reconfigure a hub that is already running.',\n },\n {\n key: 'vnc.containerPort',\n type: 'int',\n description: 'Container-side noVNC port (advanced).',\n advanced: true,\n },\n {\n key: 'portless.enabled',\n type: 'bool',\n description:\n 'Map each box web app to a https://<box-name>.localhost URL via the Portless proxy (Docker Desktop only; OrbStack already has .orb.local). Default: prompt.',\n },\n {\n key: 'portless.stateDir',\n type: 'string',\n description:\n 'Host Portless state directory to share into boxes (advanced; default: Portless’s own location).',\n advanced: true,\n },\n {\n key: 'autopause.enabled',\n type: 'bool',\n description:\n 'Let the host relay periodically pause idle boxes when more than autopause.maxRunningBoxes are running.',\n },\n {\n key: 'autopause.maxRunningBoxes',\n type: 'int',\n description:\n 'Target maximum number of simultaneously-running boxes before idle ones get auto-paused.',\n },\n {\n key: 'autopause.idleMinutes',\n type: 'int',\n description:\n 'Minutes a box must be continuously idle (claude state) before it is eligible for auto-pause.',\n },\n {\n key: 'queue.enabled',\n type: 'bool',\n description:\n 'Run `agentbox claude|codex|opencode -i <prompt>` jobs through the host-wide background queue (FIFO, capped by queue.maxConcurrent).',\n },\n {\n key: 'queue.maxConcurrent',\n type: 'int',\n description:\n 'Max number of simultaneously-running boxes (across providers) before background `-i` jobs queue up instead of starting immediately. Per-invocation override: `--max-running <n>`.',\n },\n {\n key: 'queue.maxWorking',\n type: 'int',\n description:\n 'Max agents actively working/thinking (quota-consuming) at once before background `-i` jobs queue. 0 = disabled (use the queue.maxConcurrent running-box gate). Counts all boxes, foreground + queued. Per-invocation override: `--max-working <n>`.',\n },\n {\n key: 'queue.idleGraceSeconds',\n type: 'int',\n description:\n 'Seconds an agent must stay non-working before it frees its working slot (debounce against brief idle flaps between turns). Only used when queue.maxWorking > 0.',\n },\n {\n key: 'queue.openIn',\n type: 'enum',\n enumValues: ['none', 'split', 'window', 'tab'] as const,\n description:\n 'When a background `-i` job finishes creating its box, where the host relay opens an attached terminal onto it: `none` (default — open nothing, just queue), `split`, `window`, or `tab`. Honored only when the submitting shell runs inside tmux, cmux, Herdr, or iTerm2 (the targeting is captured at submit time). Under cmux, `split` splits the pane you submitted from (falling back to the parent workspace, then a new workspace), `tab` adds a tab in the parent workspace, and `window` opens a separate workspace; under Herdr, `split` splits the pane you submitted from, `tab` adds a tab in the parent workspace, and `window` opens a separate workspace; iTerm2 opens relative to the frontmost window. Unlike `attach.openIn` there is no `same` mode — the box is created asynchronously, so it is always a fresh terminal.',\n },\n {\n key: 'cloud.useCurrentBranch',\n type: 'bool',\n description:\n \"On cloud providers (daytona/hetzner), start new boxes on the host's current branch instead of forking a new agentbox/<box-name> branch. Overridden by an explicit --use-branch / --from-branch.\",\n },\n {\n key: 'cloud.viaHub',\n type: 'bool',\n description:\n 'When a control box is configured (relay.controlPlaneUrl), create cloud boxes ON the control box by default instead of on this machine (so they keep running with the laptop off). On by default; set false to always build cloud boxes locally. Overridden per-command by --via-hub / --local. Docker and remote-docker always build locally regardless.',\n },\n {\n key: 'maintenance.pruneProjectConfigs',\n type: 'bool',\n description:\n 'Periodically delete ~/.agentbox/projects/<hash>/ dirs whose source workspace folder no longer exists.',\n },\n {\n key: 'maintenance.pruneProjectConfigsEvery',\n type: 'int',\n description: 'Run the orphan project-config sweep every N successful `agentbox create`.',\n },\n {\n key: 'update.check',\n type: 'bool',\n description:\n 'Daily background check for a newer published agentbox (npm registry) and menu-bar app (release sha sidecar), plus the \"newer version available\" nudge. At most one network probe per 24h; false disables both.',\n },\n {\n key: 'update.channel',\n type: 'enum',\n enumValues: ['auto', 'stable', 'nightly'] as const,\n description:\n 'Which release channel `agentbox self-update` and `install app` follow: `auto` (default) follows the installed build, `nightly` opts into pre-release builds cut from the nightly branch, `stable` opts back out. Nightly always installs the newest build of EITHER channel, so a stable release supersedes the nightlies that preceded it.',\n },\n {\n key: 'update.registry',\n type: 'string',\n description:\n 'npm registry base URL used when resolving provider-plugin updates during `agentbox self-update` / `agentbox plugin update`. Defaults to https://registry.npmjs.org. Point it at a mirror or a private registry when your plugins are not on the public one.',\n },\n {\n key: 'tools.gh.enabled',\n type: 'bool',\n description:\n \"Whether the built-in `gh` host-tool grant is active. True (default) keeps the in-box `gh` shim routing GitHub operations through the host relay with the host's own `gh` auth; false revokes the grant so `gh` stops resolving in new boxes. Every other host tool is opt-in via `agentbox tools add` or an `agentbox.yaml` `tools:` request.\",\n },\n {\n key: 'tools.request.enabled',\n type: 'bool',\n description:\n 'Whether a box may ask the host for access to a new host CLI (`agentbox-ctl tool request <bin>`). True (default) raises a host approval prompt naming the box, the binary and the reason; false refuses the request outright so boxes can only use tools already granted.',\n },\n];\n\n/**\n * Every addressable key: the built-ins above plus the settings declared by\n * agents installed with `agentbox agent add`.\n *\n * Resolved once at module load, exactly like `AGENT_SPECS` and for the same\n * reason: this is read as a constant in dozens of places, and an agent\n * appearing halfway through a command would be worse than one that appears on\n * the next. Every CLI invocation is a fresh process, so \"the next command\" is\n * immediately; the long-lived hosts (relay, hub) pick it up on restart.\n */\nexport const KEY_REGISTRY: readonly KeyDescriptor[] = [\n ...BUILTIN_KEY_REGISTRY,\n ...installedAgentKeys(),\n];\n\nconst REGISTRY_BY_KEY = new Map<string, KeyDescriptor>(KEY_REGISTRY.map((d) => [d.key, d]));\n\nexport function lookupKey(key: string): KeyDescriptor | undefined {\n return REGISTRY_BY_KEY.get(key);\n}\n\nexport class UserConfigError extends Error {\n constructor(message: string) {\n super(message);\n this.name = 'UserConfigError';\n }\n}\n\nexport type ConfigScope = 'global' | 'project';\n","import { readFile } from 'node:fs/promises';\nimport { parse as parseYaml } from 'yaml';\nimport {\n findProjectRoot,\n GLOBAL_CONFIG_FILE,\n hashProjectPath,\n projectConfigFile,\n workspaceConfigFile,\n} from './paths.js';\nimport { parseUserConfig, parseUserConfigObject } from './parse.js';\nimport {\n BUILT_IN_DEFAULTS,\n type ConfigSource,\n type EffectiveConfig,\n KEY_REGISTRY,\n type LoadedConfig,\n type UserConfig,\n} from './types.js';\n\n/**\n * Process-wide sink for non-fatal config warnings (unknown keys). Registered by\n * the CLI so every `loadEffectiveConfig` call surfaces them without threading a\n * logger through ~84 call sites.\n *\n * A provider plugin bundles its own copy of this module (the SDK inlines\n * `@agentbox/config`) and registers NO sink — so a stale plugin silently\n * tolerates keys it hasn't heard of, while the host CLI still tells the user.\n */\nlet warningSink: ((message: string) => void) | null = null;\n\nexport function setConfigWarningSink(fn: ((message: string) => void) | null): void {\n warningSink = fn;\n}\n\nfunction collectWarning(into: string[], message: string): void {\n into.push(message);\n warningSink?.(message);\n}\n\n/**\n * ENOENT-tolerant read of a UserConfig file. Anything else propagates.\n */\nasync function loadOptionalUserConfig(\n path: string,\n warnings: string[],\n): Promise<Partial<UserConfig>> {\n let text: string;\n try {\n text = await readFile(path, 'utf8');\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') return {};\n throw err;\n }\n return parseUserConfig(text, path, { onWarning: (m) => collectWarning(warnings, m) });\n}\n\n/**\n * Read the `defaults:` block from `<workspacePath>/agentbox.yaml`. Returns\n * `{}` if the file is missing or has no `defaults:` key. Throws on YAML\n * parse errors or invalid `defaults:` content (so typos surface as soon as\n * the user runs anything in the workspace).\n *\n * The rest of `agentbox.yaml` is owned by `@agentbox/ctl` — we don't validate\n * it here and we don't depend on that package.\n */\nexport async function loadProjectAgentboxDefaults(\n workspacePath: string,\n warnings: string[] = [],\n): Promise<Partial<UserConfig>> {\n const path = workspaceConfigFile(workspacePath);\n let text: string;\n try {\n text = await readFile(path, 'utf8');\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') return {};\n throw err;\n }\n let doc: unknown;\n try {\n doc = parseYaml(text);\n } catch {\n // The ctl parser will surface its own error on the next box action; we\n // only throw if defaults: is present and broken (validated below).\n return {};\n }\n if (doc === null || doc === undefined || typeof doc !== 'object' || Array.isArray(doc)) {\n return {};\n }\n const defaults = (doc as Record<string, unknown>)['defaults'];\n if (defaults === undefined || defaults === null) return {};\n return parseUserConfigObject(defaults, `${path} defaults`, {\n onWarning: (m) => collectWarning(warnings, m),\n });\n}\n\nexport interface LoadEffectiveConfigOptions {\n /** Highest-precedence layer; values supplied by command-line flags. */\n cliOverrides?: Partial<UserConfig>;\n}\n\n/**\n * Load and merge all four config sources for the cwd. Per-leaf precedence\n * (highest wins): cli > workspace > project > global > built-in defaults.\n *\n * The returned `sources` map has one entry per leaf in the registry — useful\n * for `agentbox config get --all` to show provenance.\n */\nexport async function loadEffectiveConfig(\n cwd: string,\n opts: LoadEffectiveConfigOptions = {},\n): Promise<LoadedConfig> {\n const projectRoot = await findProjectRoot(cwd);\n const projectPath = projectConfigFile(projectRoot.root);\n const workspacePath = projectRoot.hasAgentboxYaml ? workspaceConfigFile(projectRoot.root) : null;\n\n const warnings: string[] = [];\n const [globalValues, projectValues, workspaceValues] = await Promise.all([\n loadOptionalUserConfig(GLOBAL_CONFIG_FILE, warnings),\n loadOptionalUserConfig(projectPath, warnings),\n workspacePath ? loadProjectAgentboxDefaults(projectRoot.root, warnings) : Promise.resolve({}),\n ]);\n\n const cliValues = opts.cliOverrides ?? {};\n\n const { effective, sources } = mergeLayers({\n cli: cliValues,\n workspace: workspaceValues,\n project: projectValues,\n global: globalValues,\n });\n\n return {\n effective,\n layers: {\n cli: { values: cliValues },\n workspace: { path: workspacePath, values: workspaceValues },\n project: { path: projectPath, values: projectValues },\n global: { path: GLOBAL_CONFIG_FILE, values: globalValues },\n defaults: BUILT_IN_DEFAULTS,\n },\n sources,\n projectRoot: projectRoot.root,\n projectHash: hashProjectPath(projectRoot.root),\n hasAgentboxYaml: projectRoot.hasAgentboxYaml,\n warnings,\n };\n}\n\ninterface MergeInput {\n cli: Partial<UserConfig>;\n workspace: Partial<UserConfig>;\n project: Partial<UserConfig>;\n global: Partial<UserConfig>;\n}\n\n/**\n * Walk every key in KEY_REGISTRY, pick the highest-precedence layer that has\n * a leaf value, and record the source. Lower-precedence layers never\n * overwrite a higher-precedence definition; absent leaves don't shadow.\n */\nfunction mergeLayers(input: MergeInput): {\n effective: EffectiveConfig;\n sources: Record<string, ConfigSource>;\n} {\n // Deep-clone the defaults; we'll overwrite leaves in place.\n const effective: EffectiveConfig = JSON.parse(JSON.stringify(BUILT_IN_DEFAULTS)) as EffectiveConfig;\n const sources: Record<string, ConfigSource> = {};\n\n const layerOrder: Array<{ source: ConfigSource; values: Partial<UserConfig> }> = [\n { source: 'cli', values: input.cli },\n { source: 'workspace', values: input.workspace },\n { source: 'project', values: input.project },\n { source: 'global', values: input.global },\n ];\n\n for (const desc of KEY_REGISTRY) {\n const idx = desc.key.indexOf('.');\n const branch = desc.key.slice(0, idx);\n const leaf = desc.key.slice(idx + 1);\n\n let chosen: { source: ConfigSource; value: unknown } | null = null;\n for (const layer of layerOrder) {\n const v = readLeaf(layer.values, branch, leaf);\n if (v !== undefined) {\n chosen = { source: layer.source, value: v };\n break;\n }\n }\n\n if (chosen) {\n writeLeaf(effective, branch, leaf, chosen.value);\n sources[desc.key] = chosen.source;\n } else {\n sources[desc.key] = 'default';\n }\n }\n\n return { effective, sources };\n}\n\nfunction readLeaf(\n obj: Partial<UserConfig>,\n branch: string,\n leaf: string,\n): unknown {\n let cur: unknown = (obj as Record<string, unknown>)[branch];\n for (const seg of leaf.split('.')) {\n if (cur === undefined || cur === null || typeof cur !== 'object') return undefined;\n cur = (cur as Record<string, unknown>)[seg];\n }\n return cur;\n}\n\nfunction writeLeaf(\n obj: EffectiveConfig,\n branch: string,\n leaf: string,\n value: unknown,\n): void {\n let cur: Record<string, unknown> | undefined =\n (obj as unknown as Record<string, Record<string, unknown>>)[branch];\n if (!cur) return; // BUILT_IN_DEFAULTS guarantees the branch exists\n const segs = leaf.split('.');\n for (let i = 0; i < segs.length - 1; i++) {\n const seg = segs[i]!;\n const next = cur[seg];\n if (next === undefined || next === null || typeof next !== 'object') {\n // BUILT_IN_DEFAULTS guarantees nested sub-objects exist for every\n // registered key path, so this is unreachable in practice; defaulting\n // to a fresh sub-object keeps the function total.\n cur[seg] = {};\n }\n cur = cur[seg] as Record<string, unknown>;\n }\n cur[segs[segs.length - 1]!] = value;\n}\n","/**\n * Reading one agent's declared settings out of the effective config.\n *\n * The whole point of the mechanism is that no shared code knows what a setting\n * MEANS, so every consumer goes through here and gets an opaque bag. Which keys\n * exist is the agent's declaration; the defaults are already materialised into\n * `EffectiveConfig` by `BUILT_IN_DEFAULTS` + `perAgentDefaults`, so this is a\n * projection, not a second defaulting layer.\n */\n\nimport { loadEffectiveConfig } from './load.js';\nimport type { AgentSettings, EffectiveConfig } from './types.js';\n\n/**\n * The `<agentId>.*` block, minus the two leaves that exist for every agent and\n * are read directly by name (`sessionName`, `dangerouslySkipPermissions`).\n * An agent with no block — a plugin agent that declared no settings — yields {}.\n */\nexport function agentSettings(cfg: EffectiveConfig, agentId: string): AgentSettings {\n const block = (cfg as unknown as Record<string, unknown>)[agentId];\n if (!block || typeof block !== 'object') return {};\n const out: Record<string, string | boolean> = {};\n for (const [key, value] of Object.entries(block as Record<string, unknown>)) {\n if (key === 'sessionName' || key === 'dangerouslySkipPermissions') continue;\n if (typeof value === 'string' || typeof value === 'boolean') out[key] = value;\n }\n return out;\n}\n\n/** Every agent's settings, keyed by id — the shape carried by prepare/create. */\nexport function allAgentSettings(cfg: EffectiveConfig): Record<string, AgentSettings> {\n const out: Record<string, AgentSettings> = {};\n for (const [key, value] of Object.entries(cfg as unknown as Record<string, unknown>)) {\n if (!value || typeof value !== 'object' || Array.isArray(value)) continue;\n // An agent block is exactly the one carrying `sessionName`; `box`, `git`,\n // `attach` and the rest do not. Cheaper and more robust than importing the\n // agent id list, which would miss a plugin agent anyway.\n if (typeof (value as Record<string, unknown>)['sessionName'] !== 'string') continue;\n const settings = agentSettings(cfg as EffectiveConfig, key);\n if (Object.keys(settings).length > 0) out[key] = settings;\n }\n return out;\n}\n\n/**\n * One agent's settings for a project, resolved from disk.\n *\n * `workspacePath` is the BOX's workspace, never `process.cwd()`: the queue\n * worker runs from the state dir and takes the workspace from the job manifest,\n * and `agentbox config set` writes `--project` by default — so a cwd-based load\n * would read globals and miss the project's own setting.\n *\n * Never throws. A setting is a preference; a config that cannot be read must not\n * be able to stop a session starting or a bake running, so an unreadable config\n * degrades to the declared defaults.\n */\nexport async function agentSettingsFor(\n agentId: string,\n workspacePath?: string,\n): Promise<AgentSettings> {\n try {\n const cfg = await loadEffectiveConfig(workspacePath ?? process.cwd());\n return agentSettings(cfg.effective, agentId);\n } catch {\n return {};\n }\n}\n","/**\n * Resolve the effective box image ref for a given provider.\n *\n * Precedence (highest wins):\n * 1. `box.image<Provider>` — per-provider override\n * (`imageDocker` / `imageDaytona` / `imageHetzner` / `imageVercel`).\n * 2. `box.image` — generic fallback (defaults to `agentbox/box:dev`,\n * which cloud backends recognize as a sentinel meaning \"boot from\n * the provider's prepared base snapshot\").\n *\n * Each `agentbox prepare --provider X` writes its result into its own\n * per-provider key, so cross-provider prepares can no longer poison\n * creates on other providers.\n */\nimport type { EffectiveConfig, ProviderKind } from './types.js';\nimport { isProviderKind, perProviderConfigKey } from './providers.js';\n\n/**\n * Read a per-provider `box.<base><P>` string field off the effective config.\n * Only BUILT-IN providers have such a key; any other name — a stray value, or\n * an external plugin provider — returns '' so the caller falls through to the\n * generic `box.<base>`. For a plugin that generic is the image sentinel\n * (`agentbox/box:dev`), which the plugin's own backend maps to its prepared\n * snapshot — so a plugin never accidentally reads docker's per-provider value.\n */\nfunction perProviderValue(\n cfg: EffectiveConfig,\n base: 'image' | 'size' | 'defaultCheckpoint',\n provider: ProviderKind | string,\n): string {\n if (!isProviderKind(provider)) return '';\n const field = perProviderConfigKey(base, provider).slice('box.'.length);\n const val = (cfg.box as Record<string, unknown>)[field];\n return typeof val === 'string' ? val : '';\n}\n\nexport function resolveBoxImage(cfg: EffectiveConfig, provider: ProviderKind | string): string {\n // Unknown provider names fall back to the generic `box.image` — a stray\n // value in argv or config shouldn't crash before the validation layer.\n const perProvider = perProviderValue(cfg, 'image', provider);\n if (perProvider.length > 0) return perProvider;\n return cfg.box.image;\n}\n\nexport { perProviderValue };\n\n/**\n * Flat KEY_REGISTRY key for `agentbox prepare --provider X` to pin the\n * resulting image into the right per-provider slot; mirrors\n * `defaultCheckpointConfigKey`. Unknown provider → generic `box.image`\n * (legacy callers).\n */\nexport function boxImageConfigKey(provider: ProviderKind | string | undefined): string {\n if (provider && isProviderKind(provider)) return perProviderConfigKey('image', provider);\n return 'box.image';\n}\n","/**\n * Resolve the effective default checkpoint ref for a given provider.\n *\n * Precedence (highest wins):\n * 1. `box.defaultCheckpoint<Provider>` — per-provider override\n * (`defaultCheckpointDocker` / `defaultCheckpointDaytona` /\n * `defaultCheckpointHetzner`).\n * 2. `box.defaultCheckpoint` — global fallback (back-compat shape: every\n * pre-cloud config has this; no flag was needed).\n * 3. '' — no default.\n *\n * Returning the empty string (instead of undefined) matches the\n * `EffectiveConfig.box.defaultCheckpoint` shape so call sites that already\n * test `.length > 0` keep working unchanged.\n */\nimport type { EffectiveConfig, ProviderKind } from './types.js';\nimport { isProviderKind, perProviderConfigKey } from './providers.js';\nimport { perProviderValue } from './image.js';\n\nexport function resolveDefaultCheckpoint(\n cfg: EffectiveConfig,\n provider: ProviderKind | string,\n): string {\n // Unknown provider names fall back to the global default — a stray value in\n // config or argv shouldn't crash before the validation layer.\n const perProvider = perProviderValue(cfg, 'defaultCheckpoint', provider);\n if (perProvider.length > 0) return perProvider;\n return cfg.box.defaultCheckpoint;\n}\n\n/**\n * Config key (one of the flat KEY_REGISTRY entries) used by `agentbox\n * checkpoint set-default [--provider X]` to write the right field. Passing\n * an unknown provider falls back to the global key (legacy callers).\n */\nexport function defaultCheckpointConfigKey(provider: ProviderKind | string | undefined): string {\n if (provider && isProviderKind(provider)) {\n return perProviderConfigKey('defaultCheckpoint', provider);\n }\n return 'box.defaultCheckpoint';\n}\n","/**\n * Resolve the effective default VM size for a given cloud provider.\n *\n * Precedence (highest wins):\n * 1. `box.size<Provider>` — per-provider override\n * (`sizeDocker` / `sizeDaytona` / `sizeHetzner` / `sizeVercel`).\n * 2. `box.size` — generic fallback.\n * 3. '' — no preference; backend uses its built-in default.\n *\n * Interpretation is provider-specific:\n * - hetzner: server type string (e.g. `cx33`).\n * - daytona: `cpu-memory-disk` GB spec (e.g. `4-8-20`), baked at prepare time\n * on the snapshot path.\n * - vercel: vCPU count — `1`, `2`, `4` or `8` (RAM is coupled at 2 GB/vCPU).\n * - e2b: `cpu-memory` GB spec (e.g. `4-8`), baked at prepare time.\n * - docker: reserved (docker uses memory/cpus/disk). The key exists for\n * surface uniformity.\n *\n * Returning '' (rather than undefined) mirrors how `resolveDefaultCheckpoint`\n * shapes its result, so call sites can `.length > 0` test uniformly.\n */\nimport type { EffectiveConfig, ProviderKind } from './types.js';\nimport { perProviderValue } from './image.js';\n\nexport function resolveBoxSize(cfg: EffectiveConfig, provider: ProviderKind | string): string {\n // Unknown provider names fall back to the generic `box.size` — a stray value\n // in argv or config shouldn't crash before the validation layer.\n const perProvider = perProviderValue(cfg, 'size', provider);\n if (perProvider.length > 0) return perProvider;\n return cfg.box.size;\n}\n","/**\n * Resolve the effective bake datacenter / region for a provider whose base\n * snapshot has a placement fixed at prepare time.\n *\n * Precedence (highest wins):\n * 1. an explicit value (a `--location` flag threaded through the prepare job).\n * 2. the provider's config pin — `box.hetznerLocation` / `box.digitaloceanRegion`\n * / `box.daytonaRegion`.\n * 3. undefined — the provider bakes in its own default location.\n *\n * Only hetzner, digitalocean, and daytona place a base at bake time; every other\n * provider ignores location (their base has no per-region placement).\n */\nimport type { EffectiveConfig } from './types.js';\n\nexport function resolvePrepareLocation(\n provider: string,\n explicit: string | undefined,\n cfg: EffectiveConfig | undefined,\n): string | undefined {\n const configured =\n provider === 'hetzner'\n ? cfg?.box.hetznerLocation\n : provider === 'digitalocean'\n ? cfg?.box.digitaloceanRegion\n : provider === 'daytona'\n ? cfg?.box.daytonaRegion\n : undefined;\n return explicit?.trim() || configured || undefined;\n}\n","/**\n * Daytona sandbox-class + region resolution.\n *\n * Daytona has two sandbox classes and they are not interchangeable:\n *\n * - `linux-vm` — a real VM. Gives true pause/resume (CPU + memory frozen, so\n * running processes and tmux sessions survive), a filesystem+memory\n * snapshot capability, and a base bake that takes ~1 min instead of ~7\n * (it boots a prebuilt registry image rather than building a Dockerfile).\n * It cannot be archived, and it runs in exactly ONE region.\n * - `container` — the original shape. Archivable, buildable from a\n * Dockerfile via Daytona's declarative builder, available in the shared\n * regions (`us`, `eu`).\n *\n * The region coupling is the sharp edge: only `us-east-1` has linux-vm runners.\n * Asking for a VM anywhere else fails at create with \"No runners are configured\n * in region '<r>' for sandbox class 'linux-vm'\". So an unset `box.daytonaRegion`\n * derives from the class rather than defaulting to a constant — otherwise the\n * default class and the default region would contradict each other.\n *\n * `container` is the DEFAULT because `us-east-1` is a dedicated region Daytona\n * hands out by invitation: an account without it cannot bake a VM base at all,\n * and the failure lands as a bare `DaytonaNotFoundError` mid-bake. A default\n * that most accounts cannot use is not a default. Container also builds its\n * base from the Dockerfile, so it needs no published box image — the one thing\n * the VM path cannot do without. Users WITH a VM region set\n * `box.daytonaClass=linux-vm` and get true pause/resume and a ~1 min bake.\n */\nimport type { EffectiveConfig } from './types.js';\n\nexport type DaytonaSandboxClass = 'linux-vm' | 'container';\n\n/** The only Daytona region with linux-vm runners (verified 2026-07-12). */\nexport const DAYTONA_VM_REGION = 'us-east-1';\n\nexport function resolveDaytonaClass(cfg: EffectiveConfig): DaytonaSandboxClass {\n // Anything that isn't an explicit `linux-vm` resolves to the default rather\n // than being forwarded to the SDK — Daytona also has `windows`/`android`\n // classes we don't support, and a typo shouldn't reach the API. Falling back\n // to `container` also means a typo degrades to the class every account can\n // run, not the one most cannot.\n return cfg.box.daytonaClass === 'linux-vm' ? 'linux-vm' : 'container';\n}\n\n/**\n * The region to create in. An explicit `box.daytonaRegion` always wins (so a\n * user can follow Daytona to a second VM region the day one appears, without\n * waiting on a release). Empty derives from the class; for `container` — the\n * default — we return '' and let the SDK use the account default.\n */\nexport function resolveDaytonaRegion(cfg: EffectiveConfig): string {\n // `?? ''` rather than trusting the type: callers can hand us a config that\n // predates these keys (a partially-merged or hand-built object), and a\n // resolver that throws on a missing optional key is a poor neighbour.\n const explicit = (cfg.box.daytonaRegion ?? '').trim();\n if (explicit.length > 0) return explicit;\n return resolveDaytonaClass(cfg) === 'linux-vm' ? DAYTONA_VM_REGION : '';\n}\n","import { mkdir, open, rm, stat } from 'node:fs/promises';\nimport { dirname } from 'node:path';\nimport { setTimeout as delay } from 'node:timers/promises';\n\n// Cross-process lock tunables. The lock guards a read-modify-write of a file\n// several agentbox processes share — two concurrent image bakes, for instance,\n// both pin their `box.image<Provider>` into the global config from separate\n// detached workers. Held for one read+write (sub-millisecond), so contention\n// clears fast.\nconst LOCK_STALE_MS = 15_000; // a lock older than this is presumed abandoned\nconst LOCK_ACQUIRE_TIMEOUT_MS = 20_000;\nconst LOCK_RETRY_MS = 25;\n\nexport interface FileLockOptions {\n /**\n * Age at which a lockfile is presumed abandoned (crashed holder) and broken.\n * Defaults to {@link LOCK_STALE_MS}. Lower it for a file on a HOT read path:\n * the wait to break a stale lock is paid by every subsequent caller, so a\n * file written sub-millisecond but touched on every dashboard poll must not\n * be stuck behind a 15s presumption.\n */\n staleMs?: number;\n /** How long to wait for the lock before proceeding anyway. Defaults to {@link LOCK_ACQUIRE_TIMEOUT_MS}. */\n acquireTimeoutMs?: number;\n}\n\n/**\n * Run `fn` while holding an exclusive cross-process lock on `${path}.lock`.\n *\n * Acquisition: create the lockfile with `wx` (O_EXCL) — atomic on local FSes.\n * On contention, retry with a short backoff until {@link LOCK_ACQUIRE_TIMEOUT_MS};\n * a lockfile older than {@link LOCK_STALE_MS} is treated as abandoned (crashed\n * holder) and forcibly broken. If the lock still can't be taken before the\n * timeout we proceed anyway — the write itself is atomic (temp+rename) so the\n * worst case degrades to a possible lost update, never a corrupt file. The lock\n * is always released in `finally`.\n */\nexport async function withFileLock<T>(\n path: string,\n fn: () => Promise<T>,\n opts: FileLockOptions = {},\n): Promise<T> {\n const staleMs = opts.staleMs ?? LOCK_STALE_MS;\n const lockPath = `${path}.lock`;\n await mkdir(dirname(path), { recursive: true });\n const deadline = Date.now() + (opts.acquireTimeoutMs ?? LOCK_ACQUIRE_TIMEOUT_MS);\n let held = false;\n while (!held) {\n try {\n const fh = await open(lockPath, 'wx');\n await fh.writeFile(`${String(process.pid)}\\n`);\n await fh.close();\n held = true;\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code !== 'EEXIST') throw err;\n // Break a stale lock left by a crashed holder.\n try {\n const st = await stat(lockPath);\n if (Date.now() - st.mtimeMs > staleMs) {\n await rm(lockPath, { force: true });\n continue;\n }\n } catch {\n // lock vanished between open and stat — retry immediately\n continue;\n }\n if (Date.now() >= deadline) break; // give up waiting; proceed best-effort\n await delay(LOCK_RETRY_MS);\n }\n }\n try {\n return await fn();\n } finally {\n if (held) await rm(lockPath, { force: true }).catch(() => {});\n }\n}\n","import { mkdir, readFile, rename, rm, stat, writeFile } from 'node:fs/promises';\nimport { dirname, isAbsolute, join } from 'node:path';\nimport { parse as parseYaml, stringify as stringifyYaml } from 'yaml';\nimport {\n configPathFor,\n findProjectRoot,\n hashProjectPath,\n PROJECTS_DIR,\n projectConfigFile,\n projectMetaFile,\n} from './paths.js';\nimport { coerceFromString, parseUserConfig, unknownKeyError } from './parse.js';\nimport { parseProviderSpec } from './provider-spec.js';\nimport { withFileLock } from './file-lock.js';\nimport { type ConfigScope, lookupKey, type UserConfig, UserConfigError } from './types.js';\nimport { readdir } from 'node:fs/promises';\n\ninterface WriteResult {\n path: string;\n /** The value we coerced and stored, after string→typed conversion. */\n coerced: unknown;\n /**\n * Every leaf actually written, in order. Usually just the requested key —\n * `box.provider: docker:hub` is the exception, splitting into two (see\n * {@link providerSpecLeaves}). Callers that report what they did should print\n * these rather than the key they asked for.\n */\n written: readonly { key: string; value: unknown }[];\n}\n\ninterface SetOptions {\n /**\n * When true (the CLI `set` path), accept a string and coerce. When false\n * (programmatic), accept any typed value and write it through after a\n * round-trip parse for validation.\n */\n raw?: boolean;\n}\n\n/**\n * The leaves a `set` actually writes. `box.provider: docker:hub` is sugar for a\n * PAIR — the provider name plus the engine — so it expands to two keys and the\n * stored `box.provider` stays a bare `ProviderKind`. The parser desugars the\n * same way on read (`desugarProviderSpec`), so a hand-edited file and a file we\n * wrote behave identically; this just keeps files we write already-canonical.\n */\nfunction providerSpecLeaves(\n key: string,\n value: unknown,\n): readonly { key: string; value: unknown }[] {\n if (key !== 'box.provider' || typeof value !== 'string') return [{ key, value }];\n const spec = parseProviderSpec(value);\n if (spec.remoteHost === undefined) return [{ key, value }];\n return [\n { key: 'box.provider', value: spec.name },\n { key: 'box.remoteDockerHost', value: spec.remoteHost },\n ];\n}\n\n/**\n * Set one dotted key in a `config.yaml` **body**, preserving everything else,\n * and return the new body. Pure — no filesystem — so a caller holding a config\n * file that isn't on this machine can merge into it.\n *\n * That is the reason this exists separately from {@link setConfigValue}: the\n * hetzner control-plane deploy has to write `claude.install` into the VPS's\n * config, which the hub *also* writes itself (`box.remoteDockerHost`). Uploading\n * a freshly-generated file would silently drop the hub's own keys on every\n * redeploy, so the deploy reads the remote body, merges here, and uploads.\n *\n * Validates the merged document the same way `setConfigValue` does; an unknown\n * key or a body whose top level isn't a mapping throws `UserConfigError`.\n */\nexport function mergeConfigYaml(body: string, key: string, value: unknown): string {\n if (!lookupKey(key)) {\n throw unknownKeyError(key);\n }\n const doc = parseDocBody(body, '<config.yaml>');\n for (const leaf of providerSpecLeaves(key, value)) setLeaf(doc, leaf.key, leaf.value);\n stampSchema(doc);\n const merged = stringifyYaml(doc);\n parseUserConfig(merged, '<config.yaml>');\n return merged;\n}\n\n/**\n * Write a single key into the chosen scope's config file. Creates parent\n * dirs and (for project scope) the meta.json sidecar. Atomic via tmp-rename.\n *\n * The read-modify-write runs under a cross-process file lock: unrelated\n * agentbox processes write the same global `config.yaml` concurrently (two\n * parallel image bakes each pin their own `box.image<Provider>` from a separate\n * detached worker), and without the lock the later writer's read would predate\n * the earlier one's write and silently drop its key.\n */\nexport async function setConfigValue(\n scope: ConfigScope,\n key: string,\n value: unknown,\n cwd: string,\n opts: SetOptions = {},\n): Promise<WriteResult> {\n if (!lookupKey(key)) {\n throw unknownKeyError(key);\n }\n\n const coerced = opts.raw && typeof value === 'string' ? coerceFromString(key, value) : value;\n\n const written = providerSpecLeaves(key, coerced);\n\n const path = await configPathFor(scope, cwd);\n await withFileLock(path, async () => {\n const current = await readExistingDoc(path);\n // Both leaves land under ONE lock: a half-written pair would leave the\n // provider pointing at remote-docker with no engine to reach.\n for (const leaf of written) setLeaf(current, leaf.key, leaf.value);\n stampSchema(current);\n // Re-parse to validate the merged document; any change that produces an\n // invalid file (shouldn't be possible here, but defence-in-depth) throws.\n parseUserConfig(stringifyYaml(current), path);\n await atomicWriteYaml(path, current);\n });\n\n if (scope === 'project') {\n const root = (await findProjectRoot(cwd)).root;\n await touchProjectMeta(root);\n }\n\n return { path, coerced, written };\n}\n\n/**\n * Remove a key from the chosen scope's config file. Empty parent objects are\n * pruned so the file stays tidy. ENOENT is treated as success. Locked like\n * {@link setConfigValue} — same read-modify-write, same lost-update hazard.\n */\nexport async function unsetConfigValue(\n scope: ConfigScope,\n key: string,\n cwd: string,\n): Promise<{ path: string; existed: boolean }> {\n if (!lookupKey(key)) {\n throw unknownKeyError(key);\n }\n const path = await configPathFor(scope, cwd);\n const existed = await withFileLock(path, async () => {\n const current = await readExistingDoc(path);\n if (!unsetLeaf(current, key)) return false;\n stampSchema(current);\n await atomicWriteYaml(path, current);\n return true;\n });\n if (!existed) return { path, existed: false };\n if (scope === 'project') {\n const root = (await findProjectRoot(cwd)).root;\n await touchProjectMeta(root);\n }\n return { path, existed: true };\n}\n\nexport interface ProjectEntry {\n /** SHA-1 (first 16 hex chars) of `originalPath` — the canonical key. */\n hash: string;\n /**\n * On-disk dir name under `PROJECTS_DIR`. Equal to the hash for legacy\n * pre-rename dirs; `<hash>-<mnemonic>` for new dirs. Used directly when we\n * need to `rm` the dir so the call works regardless of which shape happens\n * to be on disk.\n */\n dirName: string;\n originalPath: string;\n createdAt: string | null;\n lastSeenAt: string | null;\n configPath: string;\n hasConfigFile: boolean;\n /**\n * The repo this project's folder pointed at, recorded when it was last seen.\n * Outlives the folder on purpose: a control box builds boxes from throwaway\n * clones, so by the time it needs the origin to clone again, the directory it\n * would have read `git remote` from is gone.\n */\n originUrl?: string;\n /**\n * The provider the last box for this project was created with — a bare kind\n * or a `docker:<alias>` host spec, exactly as the user picked it. Advisory:\n * a pre-selection for a create picker, never a contract. The named provider\n * may not be configured (or may not exist) on the machine reading it, so\n * clamp it against the live provider list before use.\n */\n lastProvider?: string;\n /** The agent that box was created for. Advisory, same caveats as {@link lastProvider}. */\n lastAgent?: string;\n /** ISO timestamp of the last create recorded here. */\n lastUsedAt?: string;\n}\n\n/**\n * Enumerate per-project config dirs. The meta.json's recorded\n * `originalPath` is what we report — the hash on disk is opaque.\n */\nexport async function listProjectsConfigured(): Promise<ProjectEntry[]> {\n let entries: string[];\n try {\n entries = await readdir(PROJECTS_DIR);\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') return [];\n throw err;\n }\n const out: ProjectEntry[] = [];\n for (const dirName of entries) {\n // Dir shape is `<sha1-16>` (legacy) or `<sha1-16>-<mnemonic>` (current);\n // either way the leading 16 hex chars are the canonical key.\n const m = /^([0-9a-f]{16})(?:-.+)?$/.exec(dirName);\n if (!m) continue;\n const hash = m[1]!;\n const meta = await readMeta(dirName);\n if (!meta) continue;\n const cfgPath = projectConfigFile(meta.originalPath);\n const hasConfig = await fileExists(cfgPath);\n out.push({\n hash,\n dirName,\n originalPath: meta.originalPath,\n createdAt: meta.createdAt,\n lastSeenAt: meta.lastSeenAt,\n configPath: cfgPath,\n hasConfigFile: hasConfig,\n ...(meta.originUrl ? { originUrl: meta.originUrl } : {}),\n ...(meta.lastProvider ? { lastProvider: meta.lastProvider } : {}),\n ...(meta.lastAgent ? { lastAgent: meta.lastAgent } : {}),\n ...(meta.lastUsedAt ? { lastUsedAt: meta.lastUsedAt } : {}),\n });\n }\n out.sort((a, b) => a.originalPath.localeCompare(b.originalPath));\n return out;\n}\n\nexport interface PruneOrphanProjectConfigsOptions {\n dryRun?: boolean;\n /** Absolute project roots of live boxes — kept even if the folder is gone. */\n protectedPaths?: string[];\n}\n\nexport interface PruneOrphanProjectConfigsResult {\n removed: { hash: string; originalPath: string }[];\n dryRun: boolean;\n}\n\n/**\n * Delete `~/.agentbox/projects/<hash>/` dirs whose recorded `originalPath`\n * workspace folder no longer exists on disk. Conservative by construction:\n * only an ENOENT on `originalPath` counts as orphaned (a transient/permission\n * error is never treated as \"deleted\"), and any path in `protectedPaths` (the\n * project roots of still-live boxes) is left alone. Best-effort and\n * idempotent — a failed `rm` is swallowed.\n */\nexport async function pruneOrphanProjectConfigs(\n opts: PruneOrphanProjectConfigsOptions = {},\n): Promise<PruneOrphanProjectConfigsResult> {\n const dryRun = opts.dryRun ?? false;\n const keep = new Set(opts.protectedPaths ?? []);\n const removed: { hash: string; originalPath: string }[] = [];\n for (const entry of await listProjectsConfigured()) {\n if (!isAbsolute(entry.originalPath) || keep.has(entry.originalPath)) continue;\n let missing = false;\n try {\n await stat(entry.originalPath);\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') missing = true;\n }\n if (!missing) continue;\n removed.push({ hash: entry.hash, originalPath: entry.originalPath });\n if (!dryRun) {\n try {\n // Remove by the on-disk dir name (originalPath is gone, so recomputing\n // the segment from it would be pointless; entry.dirName preserves\n // whichever shape — legacy `<hash>` or new `<hash>-<mnemonic>` —\n // happens to be on disk).\n await rm(join(PROJECTS_DIR, entry.dirName), { recursive: true, force: true });\n } catch {\n /* best-effort */\n }\n }\n }\n return { removed, dryRun };\n}\n\n/**\n * Sidecar counter for the periodic create-time sweep. Lives inside\n * `PROJECTS_DIR` but `listProjectsConfigured` only reads 16-hex-named dirs, so\n * a dotfile here is invisible to it.\n */\nconst PROJECT_GC_COUNTER_FILE = join(PROJECTS_DIR, '.gc.json');\n\n/** Read `{creates}` (0 if missing/corrupt), increment, atomic-write, return new value. */\nexport async function bumpProjectGcCounter(): Promise<number> {\n let prior = 0;\n try {\n const parsed = JSON.parse(await readFile(PROJECT_GC_COUNTER_FILE, 'utf8')) as {\n creates?: unknown;\n };\n if (typeof parsed.creates === 'number' && Number.isFinite(parsed.creates)) {\n prior = parsed.creates;\n }\n } catch {\n /* missing or corrupt -> start from 0 */\n }\n const next = prior + 1;\n await mkdir(PROJECTS_DIR, { recursive: true });\n const tmp = `${PROJECT_GC_COUNTER_FILE}.tmp-${process.pid.toString()}-${Date.now().toString(36)}`;\n await writeFile(tmp, JSON.stringify({ creates: next }) + '\\n', { encoding: 'utf8', mode: 0o644 });\n await rename(tmp, PROJECT_GC_COUNTER_FILE);\n return next;\n}\n\nasync function readMeta(dirName: string): Promise<{\n originalPath: string;\n createdAt: string | null;\n lastSeenAt: string | null;\n originUrl: string | null;\n lastProvider: string | null;\n lastAgent: string | null;\n lastUsedAt: string | null;\n} | null> {\n const metaPath = `${PROJECTS_DIR}/${dirName}/meta.json`;\n try {\n const text = await readFile(metaPath, 'utf8');\n const parsed = JSON.parse(text) as Record<string, unknown>;\n if (typeof parsed['originalPath'] !== 'string') return null;\n return {\n originalPath: parsed['originalPath'],\n createdAt: typeof parsed['createdAt'] === 'string' ? parsed['createdAt'] : null,\n lastSeenAt: typeof parsed['lastSeenAt'] === 'string' ? parsed['lastSeenAt'] : null,\n originUrl: typeof parsed['originUrl'] === 'string' ? parsed['originUrl'] : null,\n lastProvider: typeof parsed['lastProvider'] === 'string' ? parsed['lastProvider'] : null,\n lastAgent: typeof parsed['lastAgent'] === 'string' ? parsed['lastAgent'] : null,\n lastUsedAt: typeof parsed['lastUsedAt'] === 'string' ? parsed['lastUsedAt'] : null,\n };\n } catch {\n return null;\n }\n}\n\nasync function fileExists(p: string): Promise<boolean> {\n try {\n const st = await stat(p);\n return st.isFile();\n } catch {\n return false;\n }\n}\n\n/**\n * Read the file as a RAW yaml mapping for round-tripping. Deliberately not\n * `parseUserConfig`: that drops keys it doesn't recognize, and this document is\n * written straight back to disk — so parsing here would silently DELETE any key\n * the current registry doesn't know (e.g. one written by a newer agentbox) on\n * the next `config set`. Validation of the merged doc still happens in\n * `setConfigValue`; the key being set is validated by `lookupKey`.\n */\n/**\n * Parse a config-file body into a mutable doc. An empty/blank body is an empty\n * doc (that's how a first write starts), `label` only names the source in errors.\n */\nfunction parseDocBody(text: string, label: string): Partial<UserConfig> {\n let doc: unknown;\n try {\n doc = parseYaml(text);\n } catch (err) {\n throw new UserConfigError(\n `${label}: yaml parse error: ${err instanceof Error ? err.message : String(err)}`,\n );\n }\n if (doc === null || doc === undefined) return {};\n if (typeof doc !== 'object' || Array.isArray(doc)) {\n throw new UserConfigError(`${label}: top-level must be a mapping`);\n }\n return doc as Partial<UserConfig>;\n}\n\nasync function readExistingDoc(path: string): Promise<Partial<UserConfig>> {\n let text: string;\n try {\n text = await readFile(path, 'utf8');\n } catch (err) {\n if ((err as NodeJS.ErrnoException).code === 'ENOENT') return {};\n throw err;\n }\n return parseDocBody(text, path);\n}\n\n/**\n * Stamp `schema: 1` on a doc that hasn't been stamped yet. Idempotent — a\n * doc already carrying any `schema` value is left alone. Future schema\n * bumps live here.\n */\nconst CURRENT_CONFIG_SCHEMA = 1;\nfunction stampSchema(doc: Partial<UserConfig>): void {\n if (typeof doc.schema !== 'number') {\n doc.schema = CURRENT_CONFIG_SCHEMA;\n }\n}\n\nfunction setLeaf(doc: Partial<UserConfig>, key: string, value: unknown): void {\n const segs = key.split('.');\n let cur = doc as unknown as Record<string, unknown>;\n for (let i = 0; i < segs.length - 1; i++) {\n const seg = segs[i]!;\n const next = cur[seg];\n if (!next || typeof next !== 'object') {\n cur[seg] = {};\n }\n cur = cur[seg] as Record<string, unknown>;\n }\n cur[segs[segs.length - 1]!] = value;\n}\n\nfunction unsetLeaf(doc: Partial<UserConfig>, key: string): boolean {\n const segs = key.split('.');\n const path: Record<string, unknown>[] = [doc as unknown as Record<string, unknown>];\n for (let i = 0; i < segs.length - 1; i++) {\n const seg = segs[i]!;\n const next = path[path.length - 1]![seg];\n if (!next || typeof next !== 'object') return false;\n path.push(next as Record<string, unknown>);\n }\n const leafSeg = segs[segs.length - 1]!;\n const leafContainer = path[path.length - 1]!;\n if (!(leafSeg in leafContainer)) return false;\n delete leafContainer[leafSeg];\n // Prune empty parent objects from leaf-most up so the YAML stays tidy.\n for (let i = path.length - 1; i > 0; i--) {\n if (Object.keys(path[i]!).length > 0) break;\n delete path[i - 1]![segs[i - 1]!];\n }\n return true;\n}\n\nasync function atomicWriteYaml(path: string, doc: Partial<UserConfig>): Promise<void> {\n await mkdir(dirname(path), { recursive: true });\n // YAML serialises empty objects as `{}` which is correct but ugly; if the\n // doc is empty we still want a usable placeholder file.\n const text =\n Object.keys(doc).length === 0 ? '# managed by agentbox config — empty\\n' : stringifyYaml(doc);\n const tmp = `${path}.tmp-${process.pid.toString()}-${Date.now().toString(36)}`;\n await writeFile(tmp, text, { encoding: 'utf8', mode: 0o644 });\n await rename(tmp, path);\n}\n\n/**\n * Register a project (a folder on the PC) in the on-disk registry so it is\n * enumerable via {@link listProjectsConfigured} even before it has any config\n * value or any box. Idempotent: creates `~/.agentbox/projects/<hash>/meta.json`\n * on first call and refreshes `lastSeenAt` (preserving `createdAt`) after.\n *\n * `absPath` should be a canonical project root (e.g. `findProjectRoot(cwd).root`).\n * Callers that start from an arbitrary user path should canonicalize first.\n */\nexport async function registerProject(\n absPath: string,\n opts: { originUrl?: string } = {},\n): Promise<void> {\n await touchProjectMeta(absPath, opts.originUrl);\n}\n\n/**\n * Remove a project from the on-disk registry by its {@link hashProjectPath}\n * hash — deletes `~/.agentbox/projects/<hash>-<mnemonic>/`, i.e. its `meta.json`\n * and any project-scoped `config.yaml` the user set for that folder. Does NOT\n * touch the workspace folder/files, its git repo, or checkpoints (a separate\n * `~/.agentbox/checkpoints/` tree). Idempotent: returns `false` when the hash\n * isn't registered (nothing to remove). Mirrors the delete\n * {@link pruneOrphanProjectConfigs} does (rm by the on-disk `dirName`).\n */\nexport async function unregisterProject(hash: string): Promise<boolean> {\n const entry = (await listProjectsConfigured()).find((e) => e.hash === hash);\n if (!entry) return false;\n await rm(join(PROJECTS_DIR, entry.dirName), { recursive: true, force: true });\n return true;\n}\n\nasync function touchProjectMeta(absPath: string, originUrl?: string): Promise<void> {\n const metaPath = projectMetaFile(absPath);\n await mkdir(dirname(metaPath), { recursive: true });\n // Locked: the hub touches this on every dashboard poll while a create records\n // last-used fields into the same file, and an unlocked read-modify-write drops\n // whichever writer read first. Short stale/acquire windows because THIS file\n // is on that poll's hot path — the write is sub-millisecond, so a lock left by\n // a killed process must not hold `GET /api/v1/projects` for the default 15s.\n await withFileLock(\n metaPath,\n async () => {\n const prior = await readMetaFile(metaPath);\n const now = new Date().toISOString();\n // A caller that didn't read an origin (the folder may be gone) must not erase\n // the one recorded when it was there.\n const origin =\n originUrl ?? (typeof prior['originUrl'] === 'string' ? prior['originUrl'] : undefined);\n const createdAt = typeof prior['createdAt'] === 'string' ? prior['createdAt'] : now;\n // Spread `prior` first: every field this function does not own (the\n // last-used create defaults) has to survive a touch, and the hub touches\n // this file on every poll.\n await writeMetaFile(metaPath, {\n ...prior,\n originalPath: absPath,\n hash: hashProjectPath(absPath),\n createdAt,\n lastSeenAt: now,\n ...(origin ? { originUrl: origin } : {}),\n });\n },\n META_LOCK,\n );\n}\n\n/**\n * meta.json is written in sub-millisecond bursts but READ on the hub's dashboard\n * poll (`listProjects` re-registers every box root), so a lock orphaned by a\n * killed process must not stall that poll for the default 15s stale window.\n */\nconst META_LOCK = { staleMs: 2_000, acquireTimeoutMs: 5_000 };\n\n/** Parse a meta.json into a plain bag; a missing or corrupt file reads as empty. */\nasync function readMetaFile(metaPath: string): Promise<Record<string, unknown>> {\n try {\n const parsed = JSON.parse(await readFile(metaPath, 'utf8')) as unknown;\n return parsed && typeof parsed === 'object' ? (parsed as Record<string, unknown>) : {};\n } catch {\n return {};\n }\n}\n\nasync function writeMetaFile(metaPath: string, doc: Record<string, unknown>): Promise<void> {\n const tmp = `${metaPath}.tmp-${process.pid.toString()}-${Date.now().toString(36)}`;\n await writeFile(tmp, JSON.stringify(doc, null, 2) + '\\n', { encoding: 'utf8', mode: 0o644 });\n await rename(tmp, metaPath);\n}\n\n/** What a create picked, for {@link recordProjectLastUsed}. */\nexport interface ProjectLastUsed {\n /** Provider SPEC as chosen — a bare kind, or a `docker:<alias>` host spec. */\n provider?: string;\n /**\n * Canonical agent id. Omit for an agentless create: \"I once made a bare box\"\n * says nothing about which agent to pre-select, so it must not erase what the\n * project's last real agent was.\n */\n agent?: string;\n}\n\n/**\n * Record the provider/agent a create just used for a project, so the hub's and\n * the tray's create pickers can pre-select them next time. Advisory UI memory —\n * it never feeds `loadEffectiveConfig`, so it cannot change what the CLI does.\n *\n * **Update-only**: returns `false` without writing anything when the project is\n * not already registered. That single rule is what keeps a hub worker's\n * throwaway clone (a control box builds every box in one) — or any other\n * arbitrary path a create resolves — from minting a project card.\n */\nexport async function recordProjectLastUsed(\n absPath: string,\n used: ProjectLastUsed,\n): Promise<boolean> {\n const provider = used.provider?.trim();\n const agent = used.agent?.trim();\n if (!provider && !agent) return false;\n const metaPath = projectMetaFile(absPath);\n // Checked BEFORE the lock: `withFileLock` mkdirs the parent, which would\n // create the very project dir this must not create.\n if (!(await fileExists(metaPath))) return false;\n return withFileLock(\n metaPath,\n async () => {\n const prior = await readMetaFile(metaPath);\n if (typeof prior['originalPath'] !== 'string') return false;\n await writeMetaFile(metaPath, {\n ...prior,\n ...(provider ? { lastProvider: provider } : {}),\n ...(agent ? { lastAgent: agent } : {}),\n lastUsedAt: new Date().toISOString(),\n });\n return true;\n },\n META_LOCK,\n );\n}\n\n// Re-export for ergonomics; same path resolution as the loader uses.\nexport { configPathFor };\n","/**\n * The host's standing approval of a project's `carry:` file list.\n *\n * Same trust split as the host-tool grants next door (`tools.ts`): the\n * `carry:` block in a project's `agentbox.yaml` is committed, so it can only\n * *request* that host files be copied into a box. A human approves a specific\n * list once, and that approval lands here — host-side, never in the repo.\n *\n * The grant is keyed on the LIST, not on file contents: `approvedId` is a\n * digest of the resolved src→dest table minus each row's size (see\n * `carryGrantId` in @agentbox/sandbox-core, which owns the shape). So editing a\n * file that is already approved does not re-ask, while adding, removing or\n * re-pointing an entry — or a mode/kind/symlink change — does.\n *\n * `files` is stored alongside the digest deliberately: an approval a user\n * cannot read back is not auditable, and `tools.yaml` records what was granted\n * rather than an opaque hash for the same reason.\n */\n\nimport { mkdir, readFile, rm, writeFile } from 'node:fs/promises';\nimport { dirname } from 'node:path';\nimport { parse as parseYaml, stringify as stringifyYaml } from 'yaml';\nimport { projectCarryFile } from './paths.js';\n\n/** One approved entry, as shown in the table the user said yes to. */\nexport interface CarryGrantFile {\n /** `src` exactly as written in `agentbox.yaml`. */\n src: string;\n dest: string;\n kind: string;\n /** Octal string (`'0600'`), when the entry sets one. */\n mode?: string;\n /** Numeric uid, when the entry overrides the box user. */\n user?: number;\n /** The plain-word notes the gate showed (`optional`, `folder`, …). */\n flags?: string[];\n}\n\nexport interface CarryGrant {\n /** `carry-grant:<12 hex>` — the identity of the approved list. */\n approvedId: string;\n /** ISO timestamp of the approval. */\n approvedAt: string;\n /** What was approved, for reading back. Never load-bearing for the match. */\n files: CarryGrantFile[];\n}\n\n/**\n * Read a project's carry grant. Returns undefined when there is none, and also\n * when the file is unreadable or malformed — a grant that cannot be understood\n * must fail closed (ask again), never approximate an approval.\n */\nexport async function readCarryGrant(projectRoot: string): Promise<CarryGrant | undefined> {\n let text: string;\n try {\n text = await readFile(projectCarryFile(projectRoot), 'utf8');\n } catch {\n return undefined;\n }\n try {\n const doc = parseYaml(text) as unknown;\n if (!doc || typeof doc !== 'object') return undefined;\n const raw = doc as Record<string, unknown>;\n const approvedId = raw['approvedId'];\n const approvedAt = raw['approvedAt'];\n if (typeof approvedId !== 'string' || approvedId.length === 0) return undefined;\n return {\n approvedId,\n approvedAt: typeof approvedAt === 'string' ? approvedAt : '',\n files: Array.isArray(raw['files']) ? (raw['files'] as CarryGrantFile[]) : [],\n };\n } catch {\n return undefined;\n }\n}\n\n/**\n * Record (or replace) a project's carry grant. Creates the per-project dir: a\n * grant has to persist for a project that has no other host-side state yet.\n * One grant per project, so this overwrites rather than merging — the approval\n * is of a whole list, and two half-lists would approve something nobody saw.\n */\nexport async function writeCarryGrant(projectRoot: string, grant: CarryGrant): Promise<void> {\n const file = projectCarryFile(projectRoot);\n await mkdir(dirname(file), { recursive: true });\n const header =\n '# agentbox carry grant — the file list you approved for this project.\\n' +\n '# An agentbox.yaml `carry:` entry is a request until it is approved here.\\n' +\n '# Change the list and the next create asks again; `--carry ask` re-asks now.\\n';\n await writeFile(file, header + stringifyYaml({ ...grant }), 'utf8');\n}\n\n/**\n * Withdraw a project's carry grant. Returns false when there was none.\n *\n * Called when someone is shown the table again and declines: a standing\n * approval that survives an explicit \"no\" would be worse than never having\n * remembered it, since the next plain create would silently copy the files the\n * user just refused.\n */\nexport async function removeCarryGrant(projectRoot: string): Promise<boolean> {\n const file = projectCarryFile(projectRoot);\n try {\n await readFile(file, 'utf8');\n } catch {\n return false;\n }\n await rm(file, { force: true });\n return true;\n}\n","/**\n * Host-tool grants — the authoritative, host-only record of which host CLIs\n * a box may reach through the relay.\n *\n * The trust split matters: a project's `agentbox.yaml` `tools:` block only\n * *requests* access (it is committed, and a cloned repo must not be able to\n * wire itself to the host's credentials). The host approves a request once,\n * and the approval lands here. The relay consults only this file, so an\n * unapproved yaml entry is inert.\n *\n * Layered global < project, mirroring `loadEffectiveConfig`: a global grant\n * applies to every project, a project grant only to its own. Project wins on\n * name collision so a project can narrow (add a `deny`) what a global grant\n * allows.\n */\n\nimport { mkdir, readFile, writeFile } from 'node:fs/promises';\nimport { dirname } from 'node:path';\nimport { parse as parseYaml, stringify as stringifyYaml } from 'yaml';\nimport { findProjectRoot, GLOBAL_TOOLS_FILE, projectToolsFile } from './paths.js';\n\n/** Where a grant came from; surfaced by `agentbox tools list`. */\nexport type ToolGrantSource = 'builtin' | 'cli' | 'yaml' | 'request';\n\nexport interface ToolGrant {\n /** Command name the box types, and the basename of its shim symlink. */\n name: string;\n /** Host binary actually executed. Defaults to `name`. */\n bin: string;\n /**\n * Argv patterns (JS regexes, matched against the space-joined argv) that\n * run without a host prompt even when prompting is otherwise on. Use for\n * the read-only subcommands of a chatty CLI.\n */\n allow?: string[];\n /**\n * Argv patterns refused outright, before any prompt or spawn. Layered on\n * top of the built-in credential deny list, never replacing it.\n */\n deny?: string[];\n /** Per-call wall-clock budget; host tools are non-interactive. */\n timeoutMs?: number;\n source: ToolGrantSource;\n /** ISO timestamp of the approval that created this grant. */\n approvedAt?: string;\n}\n\n/** On-disk shape of a `tools.yaml`. */\ninterface ToolsFile {\n tools?: Record<string, Omit<ToolGrant, 'name'> | null>;\n}\n\n/**\n * The one grant every box gets for free. `gh` predates this system — Claude\n * Code's PR badge and our documented agent flows call it — and it keeps its\n * bespoke relay handler (branch injection, the `gh api` endpoint allowlist),\n * so it is listed here for discoverability but never dispatched through\n * `tool.run`. `tools.gh.enabled: false` revokes it.\n */\nexport const BUILTIN_GH_GRANT: ToolGrant = {\n name: 'gh',\n bin: 'gh',\n source: 'builtin',\n};\n\n/**\n * Every granted tool for `cwd`, keyed by name. Global grants first, project\n * grants layered on top. Never throws: a malformed or unreadable grant file\n * yields no grants, so the relay fails closed.\n *\n * `cwd` is resolved to its project root first, exactly as `loadEffectiveConfig`\n * does. Hashing the raw cwd would key a subdirectory to a different project\n * (so `agentbox doctor` two levels down would report no grants) and would\n * miss on symlinked paths, where the writer canonicalises and the reader\n * would not.\n */\nexport async function loadGrantedTools(\n cwd: string,\n opts: { includeBuiltins?: boolean } = {},\n): Promise<Map<string, ToolGrant>> {\n const merged = new Map<string, ToolGrant>();\n if (opts.includeBuiltins !== false) merged.set(BUILTIN_GH_GRANT.name, BUILTIN_GH_GRANT);\n let root = cwd;\n try {\n root = (await findProjectRoot(cwd)).root;\n } catch {\n // Fall back to the literal cwd; a lookup failure must not throw here.\n }\n for (const file of [GLOBAL_TOOLS_FILE, projectToolsFile(root)]) {\n for (const grant of await readToolsFile(file)) merged.set(grant.name, grant);\n }\n return merged;\n}\n\n/**\n * Where a project-scoped grant for `cwd` is written. Shares the project-root\n * resolution with {@link loadGrantedTools} so a write and the relay's read\n * always land on the same file.\n */\nexport async function resolveProjectToolsFile(cwd: string): Promise<string> {\n try {\n return projectToolsFile((await findProjectRoot(cwd)).root);\n } catch {\n return projectToolsFile(cwd);\n }\n}\n\n/** Read one grant file; `[]` when absent or malformed (fail closed). */\nexport async function readToolsFile(file: string): Promise<ToolGrant[]> {\n let raw: string;\n try {\n raw = await readFile(file, 'utf8');\n } catch {\n return [];\n }\n let doc: unknown;\n try {\n doc = parseYaml(raw);\n } catch {\n return [];\n }\n const tools = (doc as ToolsFile | null)?.tools;\n if (!tools || typeof tools !== 'object') return [];\n const out: ToolGrant[] = [];\n for (const [name, value] of Object.entries(tools)) {\n if (!isValidToolName(name)) continue;\n const entry = (value ?? {}) as Partial<ToolGrant>;\n out.push({\n name,\n bin: typeof entry.bin === 'string' && entry.bin ? entry.bin : name,\n ...(stringArray(entry.allow) ? { allow: stringArray(entry.allow) } : {}),\n ...(stringArray(entry.deny) ? { deny: stringArray(entry.deny) } : {}),\n ...(typeof entry.timeoutMs === 'number' && entry.timeoutMs > 0\n ? { timeoutMs: entry.timeoutMs }\n : {}),\n source: isGrantSource(entry.source) ? entry.source : 'cli',\n ...(typeof entry.approvedAt === 'string' ? { approvedAt: entry.approvedAt } : {}),\n });\n }\n return out;\n}\n\n/**\n * Write (or overwrite) one grant in a grant file, preserving the others.\n * Read-modify-write rather than a merge helper because the file is small and\n * only ever touched by an interactive approval.\n */\nexport async function writeToolGrant(file: string, grant: ToolGrant): Promise<void> {\n const existing = await readToolsFile(file);\n const byName = new Map(existing.map((g) => [g.name, g]));\n byName.set(grant.name, grant);\n await persist(file, [...byName.values()]);\n}\n\n/** Remove a grant. Returns false when it wasn't there. */\nexport async function removeToolGrant(file: string, name: string): Promise<boolean> {\n const existing = await readToolsFile(file);\n const kept = existing.filter((g) => g.name !== name);\n if (kept.length === existing.length) return false;\n await persist(file, kept);\n return true;\n}\n\nasync function persist(file: string, grants: ToolGrant[]): Promise<void> {\n await mkdir(dirname(file), { recursive: true });\n const tools: Record<string, Omit<ToolGrant, 'name'>> = {};\n for (const g of grants.sort((a, b) => a.name.localeCompare(b.name))) {\n const rest: Omit<ToolGrant, 'name'> = { bin: g.bin, source: g.source };\n if (g.allow) rest.allow = g.allow;\n if (g.deny) rest.deny = g.deny;\n if (g.timeoutMs !== undefined) rest.timeoutMs = g.timeoutMs;\n if (g.approvedAt) rest.approvedAt = g.approvedAt;\n tools[g.name] = rest;\n }\n const header =\n '# agentbox host-tool grants — written by `agentbox tools` and by approved\\n' +\n '# in-box `agentbox-ctl tool request` calls. The relay reads only this file;\\n' +\n '# an agentbox.yaml `tools:` entry is a request until it is approved here.\\n';\n await writeFile(file, header + stringifyYaml({ tools }), 'utf8');\n}\n\n/**\n * A tool name becomes a `~/.local/bin/<name>` symlink inside the box, so it\n * has to be a plain command name — no path separators, no leading dash, no\n * shell metacharacters.\n */\nexport function isValidToolName(name: string): boolean {\n return /^[a-zA-Z0-9][a-zA-Z0-9._+-]{0,63}$/.test(name);\n}\n\nfunction stringArray(v: unknown): string[] | undefined {\n if (!Array.isArray(v)) return undefined;\n const out = v.filter((x): x is string => typeof x === 'string' && x.length > 0);\n return out.length > 0 ? out : undefined;\n}\n\nfunction isGrantSource(v: unknown): v is ToolGrantSource {\n return v === 'builtin' || v === 'cli' || v === 'yaml' || v === 'request';\n}\n"],"mappings":";;;ACeA,SAAS,oBAAoB;ACf7B,SAAS,kBAAkB;AAC3B,SAAS,UAAU,YAAY;AAC/B,SAAS,eAAe;AACxB,SAAS,UAAU,SAAS,MAAM,eAAe;ACHjD,SAAS,SAAS,iBAAiB;AIAnC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;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;IACF,UAAU;EACZ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;IACF,UAAU;EACZ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA,GAAG,aAAa;EAChB;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,SAAS,UAAU,OAAO,MAAM;IAC7C,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,QAAQ,OAAO,MAAM;IAClC,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,UAAU,YAAY;IACnC,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,UAAU,YAAY,SAAS;IAC5C,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,UAAU,UAAU,MAAM;IACvC,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,YAAY,kBAAkB,SAAS,MAAM;IAC1D,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,iBAAiB,cAAc,MAAM;IAClD,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;IACb,UAAU;EACZ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;IACF,UAAU;EACZ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;IACF,UAAU;EACZ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;IACF,UAAU;EACZ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,QAAQ,SAAS,SAAS,QAAQ;IAC/C,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,QAAQ,QAAQ,OAAO;IACpC,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,MAAM,KAAK;IACxB,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;IACb,UAAU;EACZ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;IACF,UAAU;EACZ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,QAAQ,SAAS,UAAU,KAAK;IAC7C,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aAAa;EACf;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,YAAY,CAAC,QAAQ,UAAU,SAAS;IACxC,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;EACA;IACE,KAAK;IACL,MAAM;IACN,aACE;EACJ;AACF;AAYO,IAAM,eAAyC;EACpD,GAAG;EACH,GAAG,mBAAmB;AACxB;AAEA,IAAM,kBAAkB,IAAI,IAA2B,aAAa,IAAI,CAAC,MAAM,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AAEnF,SAAS,UAAU,KAAwC;AAChE,SAAO,gBAAgB,IAAI,GAAG;AAChC;AAEO,IAAM,kBAAN,cAA8B,MAAM;EACzC,Y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