@madarco/agentbox 0.28.1 → 0.29.0
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 +124 -0
- package/dist/_cloud-attach-HKRHYCY7.js +30 -0
- package/dist/{chunk-JNC7MCWJ.js → chunk-3INUZQTR.js} +10 -10
- package/dist/chunk-3INUZQTR.js.map +1 -0
- package/dist/{chunk-4PR3KJ5X.js → chunk-6PIGTR4D.js} +20 -20
- package/dist/{chunk-NHVGKFVY.js → chunk-7LNXTPEE.js} +340 -22
- package/dist/chunk-7LNXTPEE.js.map +1 -0
- package/dist/{chunk-WB6S4W7O.js → chunk-7Q6BG5AN.js} +2413 -1012
- package/dist/chunk-7Q6BG5AN.js.map +1 -0
- package/dist/{chunk-BUMKBUXS.js → chunk-7QU6XENE.js} +3 -3
- package/dist/chunk-BWE2I5QG.js +17 -0
- package/dist/chunk-BWE2I5QG.js.map +1 -0
- package/dist/{chunk-7ABO7OIF.js → chunk-CO2I3CQI.js} +4 -4
- package/dist/{chunk-OUF3YTQO.js → chunk-DBXCFLAR.js} +14 -17
- package/dist/chunk-DBXCFLAR.js.map +1 -0
- package/dist/{chunk-74VIUGY6.js → chunk-DYETLPUT.js} +6 -9
- package/dist/chunk-DYETLPUT.js.map +1 -0
- package/dist/{chunk-HYXCH4GA.js → chunk-EFVTQ7YB.js} +7 -7
- package/dist/{chunk-46NNZMZT.js → chunk-EPFXLXCW.js} +372 -72
- package/dist/chunk-EPFXLXCW.js.map +1 -0
- package/dist/chunk-GWKGSXDC.js +71 -0
- package/dist/chunk-GWKGSXDC.js.map +1 -0
- package/dist/{chunk-CKD3PRON.js → chunk-GWYD7YBK.js} +12 -9
- package/dist/{chunk-CKD3PRON.js.map → chunk-GWYD7YBK.js.map} +1 -1
- package/dist/{chunk-NHTRTST5.js → chunk-HNWZO2XU.js} +38 -15
- package/dist/chunk-HNWZO2XU.js.map +1 -0
- package/dist/{chunk-EVT2SNF2.js → chunk-HO2ACZES.js} +3 -3
- package/dist/{chunk-V5NWSLWD.js → chunk-HP4L45LW.js} +14 -14
- package/dist/{chunk-B4DAH2F2.js → chunk-LHOKRCNF.js} +3 -3
- package/dist/{chunk-G3H2L3O2.js → chunk-MNDKP4VS.js} +23 -3
- package/dist/chunk-MNDKP4VS.js.map +1 -0
- package/dist/{chunk-JDSYMTMS.js → chunk-NAT2H7J4.js} +110 -66
- package/dist/chunk-NAT2H7J4.js.map +1 -0
- package/dist/{chunk-KFLGXE3R.js → chunk-NGERWFSA.js} +133 -22
- package/dist/chunk-NGERWFSA.js.map +1 -0
- package/dist/{chunk-GFOWBXV7.js → chunk-OKLEPEWZ.js} +460 -253
- package/dist/chunk-OKLEPEWZ.js.map +1 -0
- package/dist/{chunk-YI4GHC2E.js → chunk-QU5BI2HC.js} +12 -15
- package/dist/chunk-QU5BI2HC.js.map +1 -0
- package/dist/{chunk-BWM56FKY.js → chunk-RQURMAPA.js} +11 -11
- package/dist/{chunk-FPMRFMVK.js → chunk-RZCLRWNY.js} +9 -9
- package/dist/{chunk-JQLOGVZK.js → chunk-THUST2QK.js} +85 -21
- package/dist/chunk-THUST2QK.js.map +1 -0
- package/dist/{chunk-OXKW4GWD.js → chunk-UPVP6YGJ.js} +4 -70
- package/dist/chunk-UPVP6YGJ.js.map +1 -0
- package/dist/{chunk-7RSE7ESY.js → chunk-VVNXQ4XS.js} +27 -18
- package/dist/chunk-VVNXQ4XS.js.map +1 -0
- package/dist/{chunk-FGQFVUMH.js → chunk-VY54AX4T.js} +3 -3
- package/dist/{chunk-OUWVN2F2.js → chunk-WGNI24H2.js} +16 -13
- package/dist/chunk-WGNI24H2.js.map +1 -0
- package/dist/{chunk-PSA6GADQ.js → chunk-WHFCJBMO.js} +14 -1
- package/dist/chunk-WHFCJBMO.js.map +1 -0
- package/dist/{chunk-KJ5TCYNI.js → chunk-WHJYOO5H.js} +7 -6
- package/dist/chunk-WHJYOO5H.js.map +1 -0
- package/dist/cloud-backends.js +5 -5
- package/dist/{cloud-poller-SUNA6ZQC-7M5LJHHE.js → cloud-poller-QJRZXB4W-LJ2BRB3L.js} +2 -2
- package/dist/{control-plane-5R7PYRQ6.js → control-plane-UKKYXHIQ.js} +19 -18
- package/dist/cp-hub-upload-BM2OLTOS.js +81 -0
- package/dist/cp-hub-upload-BM2OLTOS.js.map +1 -0
- package/dist/{custody-client-PNCC2HBJ.js → custody-client-NPXJ46TB.js} +5 -4
- package/dist/{deploy-hetzner-SSGSXAKA.js → deploy-hetzner-Y3ILCDRF.js} +10 -10
- package/dist/{dist-RN6JOAG4.js → dist-5OGQ3CJQ.js} +81 -45
- package/dist/{dist-5OR4QTQW.js → dist-7B3VCLZI.js} +9 -9
- package/dist/{dist-EPFS5PRI.js → dist-A5ZEIVAW.js} +10 -10
- package/dist/{dist-6PYXFREL.js → dist-DOEGENNW.js} +61 -16
- package/dist/dist-DOEGENNW.js.map +1 -0
- package/dist/{dist-XQLKK7H3.js → dist-EOGD7KD6.js} +54 -28
- package/dist/dist-EOGD7KD6.js.map +1 -0
- package/dist/{dist-XATN4ZIR.js → dist-FBM2WS5S.js} +22 -4
- package/dist/{dist-POILUDVJ.js → dist-MUTFY7FA.js} +9 -9
- package/dist/{dist-ZNQZHTUN.js → dist-SMDXLPZO.js} +35 -6
- package/dist/{dist-M4O5MU5K.js → dist-VTLQKZ2E.js} +8 -8
- package/dist/{dist-SN2TCRZ5.js → dist-ZJIJHCZB.js} +9 -9
- package/dist/{dist-K5M4HKG7.js → dist-ZNYS7CVF.js} +21 -9
- package/dist/host-reach-drainer-ZJU2STQQ.js +9 -0
- package/dist/hub-Q4VOF4WN.js +37 -0
- package/dist/{hub-adopt-I44VGSBL.js → hub-adopt-OA336ZXZ.js} +8 -8
- package/dist/{hub-api-client-WJPBXZAZ.js → hub-api-client-5U6WOTZ3.js} +2 -2
- package/dist/{hub-docker-target-REEEWUG2.js → hub-docker-target-JKFCABK4.js} +16 -16
- package/dist/index.js +1321 -882
- package/dist/index.js.map +1 -1
- package/dist/prepare-GFWWKWGF.js +41 -0
- package/dist/prepared-custody-KU4PDVBT.js +36 -0
- package/dist/{prepared-state-PV3GUBHO-MF56HWMZ.js → prepared-state-LNQ7DYSU-AR5RMXAO.js} +4 -3
- package/dist/{publish-credentials-BPHUO5VL.js → publish-credentials-3SQXX45P.js} +11 -11
- package/dist/registry-AFKV3EO2.js +18 -0
- package/dist/relay-QH6OEY2V.js +20 -0
- package/dist/relay-QH6OEY2V.js.map +1 -0
- package/dist/{remote-docker-share-RX5ARK45.js → remote-docker-share-RMS6IB5X.js} +11 -11
- package/dist/remote-docker-share-RMS6IB5X.js.map +1 -0
- package/dist/tool-grant-push-T6DRBY3W.js +90 -0
- package/dist/tool-grant-push-T6DRBY3W.js.map +1 -0
- package/package.json +1 -2
- package/runtime/_shared/agentbox-tool-shim +21 -0
- package/runtime/_shared/ctl.cjs +6757 -5299
- package/runtime/_shared/gh-shim +103 -228
- package/runtime/digitalocean/agentbox-tool-shim +21 -0
- package/runtime/digitalocean/ctl.cjs +6757 -5299
- package/runtime/digitalocean/gh-shim +103 -228
- package/runtime/digitalocean/scripts/install-box.sh +9 -15
- package/runtime/docker/Dockerfile.box +8 -18
- package/runtime/docker/packages/ctl/dist/bin.cjs +6757 -5299
- package/runtime/docker/packages/sandbox-docker/scripts/agentbox-tool-shim +21 -0
- package/runtime/docker/packages/sandbox-docker/scripts/gh-shim +103 -228
- package/runtime/e2b/agentbox-tool-shim +21 -0
- package/runtime/e2b/ctl.cjs +6757 -5299
- package/runtime/e2b/gh-shim +103 -228
- package/runtime/e2b/scripts/build-template.sh +5 -9
- package/runtime/hetzner/agentbox-tool-shim +21 -0
- package/runtime/hetzner/ctl.cjs +6757 -5299
- package/runtime/hetzner/gh-shim +103 -228
- package/runtime/hetzner/scripts/install-box.sh +9 -15
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
- package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +2 -0
- package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/routes-manifest.json +16 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +5 -5
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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]/branches/route.js +2 -2
- 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 +2 -2
- 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]/git/[op]/route.js +2 -2
- 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 +2 -2
- 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 +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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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]/vnc/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +2 -2
- 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 +2 -2
- 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/custody/[...path]/route.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/blob/[...path]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/open-targets/route.js +2 -2
- 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]/branches/route.js +2 -2
- 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]/route.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/route.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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)/approvals/page.js +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)/boxes/[id]/page.js +1 -1
- 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/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js +1 -1
- 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)/page.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js +1 -1
- 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)/settings/page.js +1 -1
- 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.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +4 -4
- 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-paths-manifest.json +2 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_boxes_[id]_vnc_route_actions_1cy1392.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_vnc_route_actions_10y_e83.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[externals]__1nj4awx._.js → [externals]__02a249v._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00f9v4p._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01nppdu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02f8rwr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__068_052._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06ma5m4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07kp2fu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1yi-2wa._.js → [root-of-the-server]__08u01ud._.js} +3 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__098bkh3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1hxo1tv._.js → [root-of-the-server]__09hbkgm._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09tmbom._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_3m9sf._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0aotdzg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bn6-pu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cpt9f9._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +15 -15
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dom248._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f0bb7o._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gb04bp._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0glplq7._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0xrdbh9._.js → [root-of-the-server]__0gxfyol._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hsb2ak._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0joqm8t._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jp-895._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1leda2s._.js → [root-of-the-server]__0jpqg_t._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__17bhgkz._.js → [root-of-the-server]__0lgnu00._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lsv9-6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pzgufc._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qfv7z6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qlr61y._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0s8srqi._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0urn9j5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vb8mk2._.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__17w5eaa._.js → [root-of-the-server]__0x27ifo._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0y7rvy1._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0zsgjre._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-bqa8a._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11uspjg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0zvr6ul._.js → [root-of-the-server]__15tgdh6._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1ek7nxv._.js → [root-of-the-server]__16bz_kz._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1w7jw4q._.js → [root-of-the-server]__18tehjj._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1ds8g0e._.js → [root-of-the-server]__1_hzv4s._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0cgpsh8._.js → [root-of-the-server]__1b5f5h4._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__10-aihp._.js → [root-of-the-server]__1dv80yf._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1eanlxn._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__16lcb2d._.js → [root-of-the-server]__1fc-nvn._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4iahl._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0f-c-eh._.js → [root-of-the-server]__1j0vnh3._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lgrtx6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1unqgd7._.js → [root-of-the-server]__1lz7931._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1oclxlx._.js → [root-of-the-server]__1n3u6-5._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qky5cd._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r2quye._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rb_nc5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0cv16py._.js → [root-of-the-server]__1spr8ss._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1t_juqb._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0t8kwy3._.js → [root-of-the-server]__1tct9rj._.js} +3 -3
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0gfa1jg._.js → [root-of-the-server]__1tjtt06._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__09cigc7._.js → [root-of-the-server]__1whjno0._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wn4-iv._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1x6zxrf._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0tyixgg._.js → [root-of-the-server]__1xfxc6i._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1m1_gm_._.js → [root-of-the-server]__1xqcvi4._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__207d30i._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_07icdxf._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0adm87k._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0g01mkg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0l_klgd._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0lfm81x._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0tbg83f._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0tms_au._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0zhli27._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_10yfoq5._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_12uhpbp._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_17a9v8y._.js +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/_1c7x9ee._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1n-c443._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_1y80vfg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_214_q-1._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_openapi_ts_1yokmzt._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{packages_relay_dist_0eg7ay1._.js → packages_relay_dist_0p8dnf4._.js} +4 -4
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/{[root-of-the-server]__1plrs94._.js → [root-of-the-server]__0-c5j6l._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_19vy9ni._.js +2 -2
- 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)_settings_page_tsx_0hv6n82._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/{packages_relay_dist_1z9j3g0._.js → packages_relay_dist_0sap-2l._.js} +4 -4
- package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +3 -1
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
- package/runtime/hub/apps/hub/.next/server/middleware.js +1 -1
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{328ny-3zs_h7m.js → 0jefm3re1-2jv.js} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{30h8mz040b5-l.js → 3u4odx1_-dy6b.js} +1 -1
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/[id]/vnc/route.ts +45 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/openapi.ts +45 -1
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/validate.ts +14 -3
- package/runtime/hub/apps/hub/app/(dashboard)/boxes/[id]/vnc/route.ts +58 -0
- package/runtime/hub/apps/hub/app/(dashboard)/boxes/components/access.tsx +26 -9
- package/runtime/hub/apps/hub/app/(dashboard)/settings/components/provider-actions.tsx +34 -26
- package/runtime/hub/apps/hub/{auth-JMVHQKWY.js → auth-V7KPRWPS.js} +2 -2
- package/runtime/hub/apps/hub/{auth-config-5IFRWOK4.js → auth-config-B3Y3BT2I.js} +2 -2
- package/runtime/hub/apps/hub/{chunk-VKOCY6SX.js → chunk-3AD3MYNV.js} +49 -14
- package/runtime/hub/apps/hub/{chunk-KTVETF3F.js → chunk-3ZDBZYOY.js} +11 -8
- package/runtime/hub/apps/hub/{chunk-LPYK2354.js → chunk-5ABFGGPT.js} +339 -21
- package/runtime/hub/apps/hub/{chunk-UMPTTQBE.js → chunk-GBYD2ODL.js} +458 -251
- package/runtime/hub/apps/hub/{chunk-5TM7XXLT.js → chunk-H5SUXDZA.js} +2833 -1277
- package/runtime/hub/apps/hub/{chunk-QU3FFGJY.js → chunk-UQ5XNPOF.js} +11 -14
- package/runtime/hub/apps/hub/{chunk-3LAHFDJF.js → chunk-VWQNSZGI.js} +22 -2
- package/runtime/hub/apps/hub/{chunk-EZUK53CC.js → chunk-WHGY7HOC.js} +85 -21
- package/runtime/hub/apps/hub/{chunk-D33EV4YZ.js → chunk-ZP4RYI4U.js} +1 -1
- package/runtime/hub/apps/hub/{cloud-poller-SUNA6ZQC-VSKVMYHL.js → cloud-poller-QJRZXB4W-G7ECKNKQ.js} +1 -1
- package/runtime/hub/apps/hub/{dist-ELZHBQEM.js → dist-37EKQ6RZ.js} +11 -11
- package/runtime/hub/apps/hub/{dist-D265LCAN.js → dist-CGH7PEMZ.js} +21 -3
- package/runtime/hub/apps/hub/{dist-SYWTB6RD.js → dist-CMVSARW5.js} +15 -18
- package/runtime/hub/apps/hub/{dist-5HTJSOHS.js → dist-EGXZRZH2.js} +19 -7
- package/runtime/hub/apps/hub/{dist-YK5FFPXZ.js → dist-EOGGFZZS.js} +62 -20
- package/runtime/hub/apps/hub/{dist-E2FTSTCY.js → dist-LJBHOO3K.js} +34 -5
- package/runtime/hub/apps/hub/{dist-N3E5YAYY.js → dist-R77W6WJ5.js} +53 -26
- package/runtime/hub/apps/hub/{dist-JVEDVVVG.js → dist-TH2JZYZY.js} +7 -7
- package/runtime/hub/apps/hub/{dist-2YP57GMB.js → dist-XPRGHQH2.js} +13 -13
- package/runtime/hub/apps/hub/{dist-NKCXH5DW.js → dist-Z2Y5F7AF.js} +6 -6
- package/runtime/hub/apps/hub/docker-compose.yml +1 -0
- package/runtime/hub/apps/hub/{hub-token-MDOBY7MZ.js → hub-token-DDJ5Z6RS.js} +2 -2
- package/runtime/hub/apps/hub/{hub-worker-UFFLF37F.js → hub-worker-DXVMUQWF.js} +16 -16
- package/runtime/hub/apps/hub/lib/boxes/backend-types.ts +11 -0
- package/runtime/hub/apps/hub/lib/boxes/types.ts +43 -0
- package/runtime/hub/apps/hub/lib/boxes/vnc-link.ts +51 -0
- package/runtime/hub/apps/hub/lib/hub-backend.ts +127 -54
- package/runtime/hub/apps/hub/lib/hub-worker.ts +4 -4
- package/runtime/hub/apps/hub/lib/provider-importers.ts +66 -1
- package/runtime/hub/apps/hub/{prepared-state-PV3GUBHO-PPRQDYFR.js → prepared-state-LNQ7DYSU-ABC2EQVI.js} +3 -2
- package/runtime/hub/apps/hub/server.js +130 -72
- package/runtime/hub/apps/hub/server.ts +18 -0
- package/runtime/hub/apps/hub/test/vnc-link.test.ts +61 -0
- package/runtime/hub/apps/hub/tsconfig.tsbuildinfo +1 -1
- package/runtime/hub-deploy/docker-compose.yml +1 -0
- package/runtime/relay/bin.cjs +16623 -14688
- package/runtime/vercel/agentbox-tool-shim +21 -0
- package/runtime/vercel/ctl.cjs +6757 -5299
- package/runtime/vercel/gh-shim +103 -228
- package/runtime/vercel/scripts/provision.sh +5 -9
- package/share/host-skills/agentbox-info/SKILL.md +24 -14
- package/dist/_cloud-attach-Y5HIQ373.js +0 -28
- package/dist/chunk-46NNZMZT.js.map +0 -1
- package/dist/chunk-74VIUGY6.js.map +0 -1
- package/dist/chunk-7RSE7ESY.js.map +0 -1
- package/dist/chunk-G3H2L3O2.js.map +0 -1
- package/dist/chunk-GFOWBXV7.js.map +0 -1
- package/dist/chunk-JDSYMTMS.js.map +0 -1
- package/dist/chunk-JNC7MCWJ.js.map +0 -1
- package/dist/chunk-JQLOGVZK.js.map +0 -1
- package/dist/chunk-KFLGXE3R.js.map +0 -1
- package/dist/chunk-KJ5TCYNI.js.map +0 -1
- package/dist/chunk-NHTRTST5.js.map +0 -1
- package/dist/chunk-NHVGKFVY.js.map +0 -1
- package/dist/chunk-OUF3YTQO.js.map +0 -1
- package/dist/chunk-OUWVN2F2.js.map +0 -1
- package/dist/chunk-OXKW4GWD.js.map +0 -1
- package/dist/chunk-PSA6GADQ.js.map +0 -1
- package/dist/chunk-WB6S4W7O.js.map +0 -1
- package/dist/chunk-YI4GHC2E.js.map +0 -1
- package/dist/dist-6PYXFREL.js.map +0 -1
- package/dist/dist-XQLKK7H3.js.map +0 -1
- package/dist/hub-MJ7O4WXW.js +0 -36
- package/dist/prepare-V4U5HVJU.js +0 -40
- package/dist/prepared-custody-QIXW7MJM.js +0 -35
- package/dist/relay-DRDELF6B.js +0 -20
- package/runtime/_shared/linear-shim +0 -181
- package/runtime/_shared/ntn-shim +0 -95
- package/runtime/digitalocean/linear-shim +0 -181
- package/runtime/digitalocean/ntn-shim +0 -95
- package/runtime/docker/packages/sandbox-docker/scripts/linear-shim +0 -181
- package/runtime/docker/packages/sandbox-docker/scripts/ntn-shim +0 -95
- package/runtime/e2b/linear-shim +0 -181
- package/runtime/e2b/ntn-shim +0 -95
- package/runtime/hetzner/linear-shim +0 -181
- package/runtime/hetzner/ntn-shim +0 -95
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__039tc0m._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c_3x8u._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ty7ew1._.js +0 -3
- package/runtime/vercel/linear-shim +0 -181
- package/runtime/vercel/ntn-shim +0 -95
- /package/dist/{_cloud-attach-Y5HIQ373.js.map → _cloud-attach-HKRHYCY7.js.map} +0 -0
- /package/dist/{chunk-4PR3KJ5X.js.map → chunk-6PIGTR4D.js.map} +0 -0
- /package/dist/{chunk-BUMKBUXS.js.map → chunk-7QU6XENE.js.map} +0 -0
- /package/dist/{chunk-7ABO7OIF.js.map → chunk-CO2I3CQI.js.map} +0 -0
- /package/dist/{chunk-HYXCH4GA.js.map → chunk-EFVTQ7YB.js.map} +0 -0
- /package/dist/{chunk-EVT2SNF2.js.map → chunk-HO2ACZES.js.map} +0 -0
- /package/dist/{chunk-V5NWSLWD.js.map → chunk-HP4L45LW.js.map} +0 -0
- /package/dist/{chunk-B4DAH2F2.js.map → chunk-LHOKRCNF.js.map} +0 -0
- /package/dist/{chunk-BWM56FKY.js.map → chunk-RQURMAPA.js.map} +0 -0
- /package/dist/{chunk-FPMRFMVK.js.map → chunk-RZCLRWNY.js.map} +0 -0
- /package/dist/{chunk-FGQFVUMH.js.map → chunk-VY54AX4T.js.map} +0 -0
- /package/dist/{cloud-poller-SUNA6ZQC-7M5LJHHE.js.map → cloud-poller-QJRZXB4W-LJ2BRB3L.js.map} +0 -0
- /package/dist/{control-plane-5R7PYRQ6.js.map → control-plane-UKKYXHIQ.js.map} +0 -0
- /package/dist/{custody-client-PNCC2HBJ.js.map → custody-client-NPXJ46TB.js.map} +0 -0
- /package/dist/{deploy-hetzner-SSGSXAKA.js.map → deploy-hetzner-Y3ILCDRF.js.map} +0 -0
- /package/dist/{dist-5OR4QTQW.js.map → dist-5OGQ3CJQ.js.map} +0 -0
- /package/dist/{dist-EPFS5PRI.js.map → dist-7B3VCLZI.js.map} +0 -0
- /package/dist/{dist-K5M4HKG7.js.map → dist-A5ZEIVAW.js.map} +0 -0
- /package/dist/{dist-M4O5MU5K.js.map → dist-FBM2WS5S.js.map} +0 -0
- /package/dist/{dist-POILUDVJ.js.map → dist-MUTFY7FA.js.map} +0 -0
- /package/dist/{dist-RN6JOAG4.js.map → dist-SMDXLPZO.js.map} +0 -0
- /package/dist/{dist-SN2TCRZ5.js.map → dist-VTLQKZ2E.js.map} +0 -0
- /package/dist/{dist-XATN4ZIR.js.map → dist-ZJIJHCZB.js.map} +0 -0
- /package/dist/{dist-ZNQZHTUN.js.map → dist-ZNYS7CVF.js.map} +0 -0
- /package/dist/{hub-MJ7O4WXW.js.map → host-reach-drainer-ZJU2STQQ.js.map} +0 -0
- /package/dist/{hub-adopt-I44VGSBL.js.map → hub-Q4VOF4WN.js.map} +0 -0
- /package/dist/{hub-api-client-WJPBXZAZ.js.map → hub-adopt-OA336ZXZ.js.map} +0 -0
- /package/dist/{prepare-V4U5HVJU.js.map → hub-api-client-5U6WOTZ3.js.map} +0 -0
- /package/dist/{hub-docker-target-REEEWUG2.js.map → hub-docker-target-JKFCABK4.js.map} +0 -0
- /package/dist/{prepared-custody-QIXW7MJM.js.map → prepare-GFWWKWGF.js.map} +0 -0
- /package/dist/{prepared-state-PV3GUBHO-MF56HWMZ.js.map → prepared-custody-KU4PDVBT.js.map} +0 -0
- /package/dist/{relay-DRDELF6B.js.map → prepared-state-LNQ7DYSU-AR5RMXAO.js.map} +0 -0
- /package/dist/{publish-credentials-BPHUO5VL.js.map → publish-credentials-3SQXX45P.js.map} +0 -0
- /package/dist/{remote-docker-share-RX5ARK45.js.map → registry-AFKV3EO2.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → XIx10ozuCZRzwSsiCF_5t}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → XIx10ozuCZRzwSsiCF_5t}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → XIx10ozuCZRzwSsiCF_5t}/_ssgManifest.js +0 -0
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { createRequire as __cr } from 'node:module'; import { fileURLToPath as __f } from 'node:url'; import { dirname as __d } from 'node:path'; const require = __cr(import.meta.url); const __filename = __f(import.meta.url); const __dirname = __d(__filename);
|
|
2
2
|
import {
|
|
3
3
|
hubProfile
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZP4RYI4U.js";
|
|
5
5
|
import {
|
|
6
|
-
IMPORTERS,
|
|
7
6
|
cloudBackendLoader,
|
|
8
7
|
hydratePreparedFromCustody,
|
|
8
|
+
isRuntimeProviderName,
|
|
9
|
+
loadProviderModuleByName,
|
|
9
10
|
registrationProjectKey
|
|
10
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-3AD3MYNV.js";
|
|
11
12
|
import {
|
|
12
13
|
baseFreshnessFromFingerprints,
|
|
13
14
|
currentCloudBaseFingerprint,
|
|
@@ -16,7 +17,7 @@ import {
|
|
|
16
17
|
listCloudCheckpoints,
|
|
17
18
|
openWebAppOnVncScreen,
|
|
18
19
|
resolveCloudCheckpoint
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WHGY7HOC.js";
|
|
20
21
|
import {
|
|
21
22
|
FsCustodyStore,
|
|
22
23
|
clearRelayNotice,
|
|
@@ -41,34 +42,16 @@ import {
|
|
|
41
42
|
registerBoxWithRelay,
|
|
42
43
|
registrationToBoxRecord,
|
|
43
44
|
removeCheckpoint,
|
|
45
|
+
resolveVncViewerUrl,
|
|
44
46
|
setCloudBackendLoader,
|
|
45
47
|
setRelayNotice,
|
|
46
48
|
startRelayDaemon,
|
|
47
49
|
writeQueueLoginCode
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import {
|
|
50
|
-
CLOUD_PROVIDER_NAMES,
|
|
51
|
-
PROVIDER_NAMES,
|
|
52
|
-
defaultCheckpointConfigKey,
|
|
53
|
-
findProjectRoot,
|
|
54
|
-
hashProjectPath,
|
|
55
|
-
isHubRoutableProvider,
|
|
56
|
-
isProviderKind,
|
|
57
|
-
listProjectsConfigured,
|
|
58
|
-
loadEffectiveConfig,
|
|
59
|
-
parseProviderSpec,
|
|
60
|
-
providerMeta,
|
|
61
|
-
pruneOrphanProjectConfigs,
|
|
62
|
-
registerProject,
|
|
63
|
-
resolveDefaultCheckpoint,
|
|
64
|
-
setConfigValue,
|
|
65
|
-
unregisterProject,
|
|
66
|
-
unsetConfigValue
|
|
67
|
-
} from "./chunk-LPYK2354.js";
|
|
50
|
+
} from "./chunk-H5SUXDZA.js";
|
|
68
51
|
import "./chunk-6AVSKCZJ.js";
|
|
69
52
|
import "./chunk-F2JI4GMX.js";
|
|
70
|
-
import "./chunk-
|
|
71
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-VWQNSZGI.js";
|
|
54
|
+
import "./chunk-3ZDBZYOY.js";
|
|
72
55
|
import {
|
|
73
56
|
AGENT_SYNC_SPECS,
|
|
74
57
|
BOX_IMAGE_REGISTRY,
|
|
@@ -87,6 +70,7 @@ import {
|
|
|
87
70
|
controlPlaneDeployPath,
|
|
88
71
|
diffFileManifests,
|
|
89
72
|
isHubWorkerClone,
|
|
73
|
+
listProviderDescriptors,
|
|
90
74
|
matchClaudeInstallFingerprint,
|
|
91
75
|
mutateState,
|
|
92
76
|
normalizeLastAgent,
|
|
@@ -95,17 +79,36 @@ import {
|
|
|
95
79
|
readState,
|
|
96
80
|
recordBox,
|
|
97
81
|
registryRefForSha,
|
|
82
|
+
resolveProviderDescriptor,
|
|
98
83
|
scratchBranchName,
|
|
99
84
|
secretsEnvPath,
|
|
100
85
|
setBoxDisplayName,
|
|
101
86
|
shortFingerprint,
|
|
102
87
|
syncAgentboxSshConfig
|
|
103
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-GBYD2ODL.js";
|
|
89
|
+
import {
|
|
90
|
+
CLOUD_PROVIDER_NAMES,
|
|
91
|
+
defaultCheckpointConfigKey,
|
|
92
|
+
findProjectRoot,
|
|
93
|
+
hashProjectPath,
|
|
94
|
+
isHubRoutableProvider,
|
|
95
|
+
isProviderKind,
|
|
96
|
+
listProjectsConfigured,
|
|
97
|
+
loadEffectiveConfig,
|
|
98
|
+
parseProviderSpec,
|
|
99
|
+
pruneOrphanProjectConfigs,
|
|
100
|
+
registerProject,
|
|
101
|
+
resolveDefaultCheckpoint,
|
|
102
|
+
setConfigValue,
|
|
103
|
+
unregisterProject,
|
|
104
|
+
unsetConfigValue
|
|
105
|
+
} from "./chunk-5ABFGGPT.js";
|
|
104
106
|
import "./chunk-EFW34I43.js";
|
|
105
107
|
import "./chunk-TZFWAJVB.js";
|
|
106
108
|
|
|
107
109
|
// server.ts
|
|
108
110
|
import { existsSync as existsSync4, readFileSync as readFileSync3 } from "node:fs";
|
|
111
|
+
import { homedir as homedir2 } from "node:os";
|
|
109
112
|
import path3 from "node:path";
|
|
110
113
|
import next from "next";
|
|
111
114
|
|
|
@@ -194,6 +197,19 @@ async function fetchRemoteProviders() {
|
|
|
194
197
|
return providers;
|
|
195
198
|
}
|
|
196
199
|
|
|
200
|
+
// lib/boxes/vnc-link.ts
|
|
201
|
+
function vncUnavailableReason(box, state) {
|
|
202
|
+
if (!box.vncEnabled) return "VNC is not enabled for this box (created with --no-vnc)";
|
|
203
|
+
if (!box.vncPassword) {
|
|
204
|
+
return "this box has no VNC password recorded; recreate it to enable the desktop";
|
|
205
|
+
}
|
|
206
|
+
if (state === "missing") {
|
|
207
|
+
return `the sandbox for ${box.name ?? "this box"} does not exist any more \u2014 was it deleted?`;
|
|
208
|
+
}
|
|
209
|
+
if (state !== "running") return `box is ${state} \u2014 start it before opening the desktop`;
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
|
|
197
213
|
// lib/boxes/seed-slug.ts
|
|
198
214
|
function custodyIdentityFromRegistration(reg) {
|
|
199
215
|
return { originUrl: reg.originUrl ?? null, projectSlug: reg.projectSlug ?? null };
|
|
@@ -253,10 +269,7 @@ var DISPLAY_NAME_MAX = 60;
|
|
|
253
269
|
var prepareEnqueueChain = /* @__PURE__ */ new Map();
|
|
254
270
|
async function providerForBox(box) {
|
|
255
271
|
const name = box.provider ?? "docker";
|
|
256
|
-
|
|
257
|
-
throw new Error(`box ${box.id}: unsupported provider "${name}" (built-in providers only)`);
|
|
258
|
-
}
|
|
259
|
-
const mod = (await IMPORTERS[name]()).providerModule;
|
|
272
|
+
const mod = await loadProviderModuleByName(name);
|
|
260
273
|
if (mod.ensureCredentials) await mod.ensureCredentials();
|
|
261
274
|
return mod.provider;
|
|
262
275
|
}
|
|
@@ -559,22 +572,11 @@ function remoteDockerHostCount() {
|
|
|
559
572
|
}
|
|
560
573
|
}
|
|
561
574
|
function isProviderConfigured(id) {
|
|
562
|
-
if (id === "docker") return true;
|
|
563
575
|
if (id === "remote-docker") return remoteDockerHostCount() > 0;
|
|
576
|
+
if (!resolveProviderDescriptor(id)?.bake.required) return true;
|
|
564
577
|
const raw = readPreparedStateRaw(id);
|
|
565
578
|
return !!(raw && typeof raw === "object" && raw.base);
|
|
566
579
|
}
|
|
567
|
-
var PROVIDER_CRED_KEYS = {
|
|
568
|
-
docker: [],
|
|
569
|
-
e2b: ["E2B_API_KEY"],
|
|
570
|
-
daytona: ["DAYTONA_API_KEY", "DAYTONA_JWT_TOKEN"],
|
|
571
|
-
hetzner: ["HCLOUD_TOKEN"],
|
|
572
|
-
vercel: ["VERCEL_TOKEN", "VERCEL_OIDC_TOKEN", "VERCEL_AUTH_SOURCE"],
|
|
573
|
-
digitalocean: ["DIGITALOCEAN_TOKEN"],
|
|
574
|
-
// remote-docker authenticates as you, over your own ~/.ssh/config — there is
|
|
575
|
-
// no credential to store, so there is none to check.
|
|
576
|
-
"remote-docker": []
|
|
577
|
-
};
|
|
578
580
|
function readSecretsKeys() {
|
|
579
581
|
const out = /* @__PURE__ */ new Set();
|
|
580
582
|
let body = "";
|
|
@@ -591,8 +593,9 @@ function readSecretsKeys() {
|
|
|
591
593
|
return out;
|
|
592
594
|
}
|
|
593
595
|
function hasProviderCredentials(id, keys) {
|
|
594
|
-
|
|
595
|
-
|
|
596
|
+
const envKeys = resolveProviderDescriptor(id)?.credentials.envKeys ?? [];
|
|
597
|
+
if (envKeys.length === 0) return true;
|
|
598
|
+
return envKeys.some((k) => keys.has(k) || !!process.env[k]);
|
|
596
599
|
}
|
|
597
600
|
async function dockerDaemonReachable() {
|
|
598
601
|
try {
|
|
@@ -629,8 +632,9 @@ async function preparePrecheck(id) {
|
|
|
629
632
|
}
|
|
630
633
|
function listProviders(jobs) {
|
|
631
634
|
const keys = readSecretsKeys();
|
|
632
|
-
return
|
|
633
|
-
const
|
|
635
|
+
return listProviderDescriptors().map((d) => {
|
|
636
|
+
const id = d.name;
|
|
637
|
+
const label = id === "docker" ? d.label : d.label.replace(/\s*\(.*\)$/, "");
|
|
634
638
|
const configured = isProviderConfigured(id);
|
|
635
639
|
const hasCredentials = hasProviderCredentials(id, keys);
|
|
636
640
|
const bake = jobs.find(
|
|
@@ -640,7 +644,25 @@ function listProviders(jobs) {
|
|
|
640
644
|
if (!configured) {
|
|
641
645
|
reason = id === "remote-docker" ? "Add a host in Settings to run boxes on your own machine over SSH." : hasCredentials ? "Credentials set \u2014 bake the base image to finish setup." : "Not set up \u2014 add credentials, then bake the base image.";
|
|
642
646
|
}
|
|
643
|
-
return {
|
|
647
|
+
return {
|
|
648
|
+
id,
|
|
649
|
+
label,
|
|
650
|
+
configured,
|
|
651
|
+
hasCredentials,
|
|
652
|
+
jobId: bake?.id,
|
|
653
|
+
reason,
|
|
654
|
+
// The declarative half of the descriptor, straight through to the client.
|
|
655
|
+
// It comes from a sync snapshot (the config table, or plugins.json for a
|
|
656
|
+
// plugin), so serving it costs nothing and needs no opt-in flag — clients
|
|
657
|
+
// use it to render credential forms, pace progress bars, and gate
|
|
658
|
+
// capability-specific UI without hardcoding provider names.
|
|
659
|
+
kind: d.kind,
|
|
660
|
+
credentials: d.credentials,
|
|
661
|
+
bake: d.bake,
|
|
662
|
+
capabilities: d.capabilities,
|
|
663
|
+
...d.sizes ? { sizes: d.sizes } : {},
|
|
664
|
+
...d.regions ? { regions: d.regions } : {}
|
|
665
|
+
};
|
|
644
666
|
});
|
|
645
667
|
}
|
|
646
668
|
async function withRemoteProviders(local) {
|
|
@@ -654,14 +676,14 @@ var freshnessCache = /* @__PURE__ */ new Map();
|
|
|
654
676
|
async function providerBaseFreshness(id, claudeInstall) {
|
|
655
677
|
if (id === "docker") {
|
|
656
678
|
try {
|
|
657
|
-
const { evaluateDockerBaseFreshness } = await import("./dist-
|
|
679
|
+
const { evaluateDockerBaseFreshness } = await import("./dist-EGXZRZH2.js");
|
|
658
680
|
return await evaluateDockerBaseFreshness({ claudeInstall });
|
|
659
681
|
} catch {
|
|
660
682
|
return { state: "unknown" };
|
|
661
683
|
}
|
|
662
684
|
}
|
|
663
685
|
try {
|
|
664
|
-
const mod =
|
|
686
|
+
const mod = await loadProviderModuleByName(id);
|
|
665
687
|
await hydratePreparedFromCustody(
|
|
666
688
|
new FsCustodyStore(),
|
|
667
689
|
id,
|
|
@@ -679,7 +701,7 @@ async function providerBaseFreshness(id, claudeInstall) {
|
|
|
679
701
|
live = cached.live;
|
|
680
702
|
} else {
|
|
681
703
|
try {
|
|
682
|
-
const mod =
|
|
704
|
+
const mod = await loadProviderModuleByName(id);
|
|
683
705
|
live = await mod.currentBaseFingerprintLive?.("native");
|
|
684
706
|
} catch {
|
|
685
707
|
live = void 0;
|
|
@@ -698,11 +720,11 @@ async function listProvidersWithFreshness(base) {
|
|
|
698
720
|
}
|
|
699
721
|
return Promise.all(
|
|
700
722
|
base.map(async (p) => {
|
|
701
|
-
if (!isProviderKind(p.id)) return p;
|
|
702
723
|
if (p.origin === "hub") return p;
|
|
703
724
|
const fresh = await providerBaseFreshness(p.id, claudeInstall);
|
|
704
725
|
return {
|
|
705
726
|
...p,
|
|
727
|
+
hasCredentials: await refineCredStatus(p),
|
|
706
728
|
baseStatus: fresh.state,
|
|
707
729
|
baseStaleReason: fresh.state === "stale" ? fresh.reason : void 0,
|
|
708
730
|
// Only stale rows pay for the diff: it re-hashes the whole build context,
|
|
@@ -712,12 +734,22 @@ async function listProvidersWithFreshness(base) {
|
|
|
712
734
|
})
|
|
713
735
|
);
|
|
714
736
|
}
|
|
737
|
+
async function refineCredStatus(p) {
|
|
738
|
+
if ((p.credentials?.envKeys.length ?? 0) > 0) return p.hasCredentials;
|
|
739
|
+
try {
|
|
740
|
+
const mod = await loadProviderModuleByName(p.id);
|
|
741
|
+
if (!mod.readCredStatus) return p.hasCredentials;
|
|
742
|
+
return (await mod.readCredStatus()).configured;
|
|
743
|
+
} catch {
|
|
744
|
+
return p.hasCredentials;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
715
747
|
async function providerBakeDiff(id) {
|
|
716
748
|
try {
|
|
717
749
|
const raw = readPreparedStateRaw(id);
|
|
718
750
|
const stored = raw?.base?.files;
|
|
719
751
|
if (!stored || Object.keys(stored).length === 0) return { hasManifest: false };
|
|
720
|
-
const mod =
|
|
752
|
+
const mod = await loadProviderModuleByName(id);
|
|
721
753
|
const current = await mod.currentBaseFileHashes?.();
|
|
722
754
|
if (!current) return { hasManifest: true, liveUnavailable: true };
|
|
723
755
|
return { hasManifest: true, ...diffFileManifests(stored, current) };
|
|
@@ -726,7 +758,7 @@ async function providerBakeDiff(id) {
|
|
|
726
758
|
}
|
|
727
759
|
}
|
|
728
760
|
async function loadRemoteDockerHostViews() {
|
|
729
|
-
const rd = await import("./dist-
|
|
761
|
+
const rd = await import("./dist-37EKQ6RZ.js");
|
|
730
762
|
const prepared = rd.readPreparedState();
|
|
731
763
|
const cfg = await loadEffectiveConfig(os2.homedir());
|
|
732
764
|
const dflt = (cfg.effective.box.remoteDockerHost || "").trim();
|
|
@@ -1076,8 +1108,8 @@ async function allCloudBackends() {
|
|
|
1076
1108
|
return [.../* @__PURE__ */ new Set([...CLOUD_PROVIDER_NAMES, ...await listCloudBackendDirs()])];
|
|
1077
1109
|
}
|
|
1078
1110
|
async function cloudProviderForBackend(backend) {
|
|
1079
|
-
if (!
|
|
1080
|
-
return (await
|
|
1111
|
+
if (!isRuntimeProviderName(backend)) return null;
|
|
1112
|
+
return (await loadProviderModuleByName(backend)).provider;
|
|
1081
1113
|
}
|
|
1082
1114
|
function dockerItemView(c, def) {
|
|
1083
1115
|
return {
|
|
@@ -1256,8 +1288,8 @@ async function pruneGeneral(all, dryRun) {
|
|
|
1256
1288
|
return { kind: "general", result, projectConfigs };
|
|
1257
1289
|
}
|
|
1258
1290
|
async function enumerateCloudOrphans(provider) {
|
|
1259
|
-
if (!
|
|
1260
|
-
const mod =
|
|
1291
|
+
if (!isRuntimeProviderName(provider)) return { ok: false, error: `unknown provider ${provider}` };
|
|
1292
|
+
const mod = await loadProviderModuleByName(provider);
|
|
1261
1293
|
if (mod.ensureCredentials) await mod.ensureCredentials();
|
|
1262
1294
|
const backend = mod.backend;
|
|
1263
1295
|
if (!backend?.list) {
|
|
@@ -1564,16 +1596,17 @@ function createHubBackend(handle) {
|
|
|
1564
1596
|
const spec = parseProviderSpec(provider);
|
|
1565
1597
|
if (spec.remoteHost) {
|
|
1566
1598
|
const alias = spec.remoteHost;
|
|
1567
|
-
const rd = await import("./dist-
|
|
1599
|
+
const rd = await import("./dist-37EKQ6RZ.js");
|
|
1568
1600
|
if (!rd.getHostAlias(alias)) {
|
|
1569
1601
|
return {
|
|
1570
1602
|
ok: false,
|
|
1571
1603
|
error: `unknown remote-docker host '${alias}' \u2014 add it in Settings`
|
|
1572
1604
|
};
|
|
1573
1605
|
}
|
|
1574
|
-
} else {
|
|
1575
|
-
if (!
|
|
1606
|
+
} else if (!isProviderKind(provider)) {
|
|
1607
|
+
if (!isRuntimeProviderName(provider))
|
|
1576
1608
|
return { ok: false, error: `unknown provider ${provider}` };
|
|
1609
|
+
} else {
|
|
1577
1610
|
if (!isProviderConfigured(provider)) {
|
|
1578
1611
|
const hub = isHubRoutableProvider(provider) ? await resolveRemoteHub() : null;
|
|
1579
1612
|
if (hub) {
|
|
@@ -1653,9 +1686,9 @@ function createHubBackend(handle) {
|
|
|
1653
1686
|
},
|
|
1654
1687
|
async setProviderCredentials(id, fields) {
|
|
1655
1688
|
try {
|
|
1656
|
-
if (!
|
|
1657
|
-
if (id ===
|
|
1658
|
-
const mod =
|
|
1689
|
+
if (!isRuntimeProviderName(id)) return { ok: false, error: `unknown provider ${id}` };
|
|
1690
|
+
if (resolveProviderDescriptor(id)?.credentials.fields.length === 0) return { ok: true };
|
|
1691
|
+
const mod = await loadProviderModuleByName(id);
|
|
1659
1692
|
if (!mod.setCredentials) {
|
|
1660
1693
|
return { ok: false, error: `provider ${id} does not support credential setup` };
|
|
1661
1694
|
}
|
|
@@ -1666,7 +1699,7 @@ function createHubBackend(handle) {
|
|
|
1666
1699
|
}
|
|
1667
1700
|
},
|
|
1668
1701
|
prepareProvider(id, opts) {
|
|
1669
|
-
if (!
|
|
1702
|
+
if (!isRuntimeProviderName(id))
|
|
1670
1703
|
return Promise.resolve({ ok: false, error: `unknown provider ${id}` });
|
|
1671
1704
|
const prev = prepareEnqueueChain.get(id) ?? Promise.resolve();
|
|
1672
1705
|
const run = prev.then(async () => {
|
|
@@ -1865,6 +1898,19 @@ function createHubBackend(handle) {
|
|
|
1865
1898
|
return { ok: false, error: errMsg(err) };
|
|
1866
1899
|
}
|
|
1867
1900
|
},
|
|
1901
|
+
async vncUrl(id, opts) {
|
|
1902
|
+
try {
|
|
1903
|
+
const rp = await resolveBoxProvider(id, hydrate);
|
|
1904
|
+
if (!rp) return { ok: false, error: `box ${id} not found` };
|
|
1905
|
+
const state = await rp.provider.probeState(rp.box);
|
|
1906
|
+
const why = vncUnavailableReason(rp.box, state);
|
|
1907
|
+
if (why) return { ok: false, error: why };
|
|
1908
|
+
const url = await resolveVncViewerUrl(rp.box, rp.provider, opts ?? {});
|
|
1909
|
+
return { ok: true, url, ...opts?.ttl === void 0 ? {} : { ttl: opts.ttl } };
|
|
1910
|
+
} catch (err) {
|
|
1911
|
+
return { ok: false, error: errMsg(err) };
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1868
1914
|
// ── box service control ──
|
|
1869
1915
|
async getServices(id) {
|
|
1870
1916
|
const rp = await resolveBoxProvider(id, hydrate).catch(() => null);
|
|
@@ -2145,7 +2191,7 @@ function createHubBackend(handle) {
|
|
|
2145
2191
|
},
|
|
2146
2192
|
async addRemoteDockerHost(alias, ssh, opts) {
|
|
2147
2193
|
try {
|
|
2148
|
-
const rd = await import("./dist-
|
|
2194
|
+
const rd = await import("./dist-37EKQ6RZ.js");
|
|
2149
2195
|
const trimmedSsh = ssh.trim();
|
|
2150
2196
|
if (!rd.isValidAlias(alias)) {
|
|
2151
2197
|
return {
|
|
@@ -2194,7 +2240,7 @@ function createHubBackend(handle) {
|
|
|
2194
2240
|
},
|
|
2195
2241
|
async removeRemoteDockerHost(alias) {
|
|
2196
2242
|
try {
|
|
2197
|
-
const rd = await import("./dist-
|
|
2243
|
+
const rd = await import("./dist-37EKQ6RZ.js");
|
|
2198
2244
|
rd.removeHostAlias(alias);
|
|
2199
2245
|
rd.removePreparedHost(alias);
|
|
2200
2246
|
const cfg = await loadEffectiveConfig(os2.homedir());
|
|
@@ -2212,7 +2258,7 @@ function createHubBackend(handle) {
|
|
|
2212
2258
|
},
|
|
2213
2259
|
async bakeRemoteDockerHost(alias) {
|
|
2214
2260
|
try {
|
|
2215
|
-
const rd = await import("./dist-
|
|
2261
|
+
const rd = await import("./dist-37EKQ6RZ.js");
|
|
2216
2262
|
if (!rd.getHostAlias(alias)) return { ok: false, error: `no such host alias ${alias}` };
|
|
2217
2263
|
const spec = `docker:${alias}`;
|
|
2218
2264
|
const existing = (await loadQueue()).find(
|
|
@@ -2398,9 +2444,9 @@ function positiveIntFromEnv(raw) {
|
|
|
2398
2444
|
return Number.isFinite(n) && n > 0 ? n : void 0;
|
|
2399
2445
|
}
|
|
2400
2446
|
async function main() {
|
|
2401
|
-
const { authMode, STORE_DB_PATH } = await import("./auth-config-
|
|
2447
|
+
const { authMode, STORE_DB_PATH } = await import("./auth-config-B3Y3BT2I.js");
|
|
2402
2448
|
if (process.env.AGENTBOX_HUB_PROFILE === "localhost" && process.env.AGENTBOX_HUB_AUTH !== "off") {
|
|
2403
|
-
const { ensureHubToken } = await import("./hub-token-
|
|
2449
|
+
const { ensureHubToken } = await import("./hub-token-DDJ5Z6RS.js");
|
|
2404
2450
|
process.env.AGENTBOX_HUB_TOKEN = await ensureHubToken();
|
|
2405
2451
|
}
|
|
2406
2452
|
const dir = import.meta.dirname;
|
|
@@ -2428,6 +2474,7 @@ async function main() {
|
|
|
2428
2474
|
);
|
|
2429
2475
|
}
|
|
2430
2476
|
setCloudBackendLoader(cloudBackendLoader);
|
|
2477
|
+
const hostReachTimeoutFromConfig = await loadEffectiveConfig(homedir2()).then((c) => c.effective.relay.hostReachTimeoutMs).catch(() => void 0);
|
|
2431
2478
|
const daemon = await startRelayDaemon({
|
|
2432
2479
|
port,
|
|
2433
2480
|
host,
|
|
@@ -2443,6 +2490,17 @@ async function main() {
|
|
|
2443
2490
|
// The streaming blob surface's own cap (`relay.custodyMaxBlobBytes`), which
|
|
2444
2491
|
// governs `carry:` payloads rather than seed tars.
|
|
2445
2492
|
custodyMaxBlobBytes: positiveIntFromEnv(process.env.AGENTBOX_CUSTODY_MAX_BLOB_BYTES),
|
|
2493
|
+
// A password profile IS the control box: it brokers host actions that need
|
|
2494
|
+
// the user's own files (`cp`) out to that machine's relay over
|
|
2495
|
+
// `/admin/hostreach/*` instead of running them here, where the box's
|
|
2496
|
+
// recorded workspace is a temp clone the create worker already deleted.
|
|
2497
|
+
// Same signal as the durable-subscriber floor below.
|
|
2498
|
+
controlPlane: authMode() === "password",
|
|
2499
|
+
// Env first (a deploy can set it without a config file), then this control
|
|
2500
|
+
// box's own `relay.hostReachTimeoutMs`. Read HERE because this is the machine
|
|
2501
|
+
// that does the waiting — the key on a user's laptop governs nothing, which
|
|
2502
|
+
// is what made it inert when it was only ever read from the env.
|
|
2503
|
+
hostReachTimeoutMs: positiveIntFromEnv(process.env.AGENTBOX_HOST_REACH_TIMEOUT_MS) ?? hostReachTimeoutFromConfig,
|
|
2446
2504
|
logger: (line) => process.stdout.write(`agentbox-hub: ${line}
|
|
2447
2505
|
`),
|
|
2448
2506
|
// Next parses req.url itself when parsedUrl is omitted.
|
|
@@ -2522,13 +2580,13 @@ async function main() {
|
|
|
2522
2580
|
};
|
|
2523
2581
|
const mode = authMode();
|
|
2524
2582
|
if (mode === "password") {
|
|
2525
|
-
const { ensureAuthReady } = await import("./auth-
|
|
2583
|
+
const { ensureAuthReady } = await import("./auth-V7KPRWPS.js");
|
|
2526
2584
|
await ensureAuthReady();
|
|
2527
2585
|
process.stdout.write("agentbox-hub: auth ready\n");
|
|
2528
2586
|
}
|
|
2529
2587
|
let worker;
|
|
2530
2588
|
if (process.env.AGENTBOX_HUB_WORKER === "on") {
|
|
2531
|
-
const { startHubWorker } = await import("./hub-worker-
|
|
2589
|
+
const { startHubWorker } = await import("./hub-worker-DXVMUQWF.js");
|
|
2532
2590
|
worker = startHubWorker({
|
|
2533
2591
|
store: daemon.handle.store,
|
|
2534
2592
|
log: (line) => process.stdout.write(`agentbox-hub-worker: ${line}
|
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
* (after `next build`). The standalone/`agentbox hub` bin packaging is Phase 5.
|
|
12
12
|
*/
|
|
13
13
|
import { existsSync, readFileSync } from 'node:fs';
|
|
14
|
+
import { homedir } from 'node:os';
|
|
14
15
|
import path from 'node:path';
|
|
15
16
|
import next from 'next';
|
|
17
|
+
import { loadEffectiveConfig } from '@agentbox/config';
|
|
16
18
|
import {
|
|
17
19
|
makeStore,
|
|
18
20
|
FsCustodyStore,
|
|
@@ -145,6 +147,10 @@ async function main(): Promise<void> {
|
|
|
145
147
|
// name for the life of the process.
|
|
146
148
|
setCloudBackendLoader(cloudBackendLoader);
|
|
147
149
|
|
|
150
|
+
const hostReachTimeoutFromConfig = await loadEffectiveConfig(homedir())
|
|
151
|
+
.then((c) => c.effective.relay.hostReachTimeoutMs)
|
|
152
|
+
.catch(() => undefined);
|
|
153
|
+
|
|
148
154
|
const daemon = await startRelayDaemon({
|
|
149
155
|
port,
|
|
150
156
|
host,
|
|
@@ -160,6 +166,18 @@ async function main(): Promise<void> {
|
|
|
160
166
|
// The streaming blob surface's own cap (`relay.custodyMaxBlobBytes`), which
|
|
161
167
|
// governs `carry:` payloads rather than seed tars.
|
|
162
168
|
custodyMaxBlobBytes: positiveIntFromEnv(process.env.AGENTBOX_CUSTODY_MAX_BLOB_BYTES),
|
|
169
|
+
// A password profile IS the control box: it brokers host actions that need
|
|
170
|
+
// the user's own files (`cp`) out to that machine's relay over
|
|
171
|
+
// `/admin/hostreach/*` instead of running them here, where the box's
|
|
172
|
+
// recorded workspace is a temp clone the create worker already deleted.
|
|
173
|
+
// Same signal as the durable-subscriber floor below.
|
|
174
|
+
controlPlane: authMode() === 'password',
|
|
175
|
+
// Env first (a deploy can set it without a config file), then this control
|
|
176
|
+
// box's own `relay.hostReachTimeoutMs`. Read HERE because this is the machine
|
|
177
|
+
// that does the waiting — the key on a user's laptop governs nothing, which
|
|
178
|
+
// is what made it inert when it was only ever read from the env.
|
|
179
|
+
hostReachTimeoutMs:
|
|
180
|
+
positiveIntFromEnv(process.env.AGENTBOX_HOST_REACH_TIMEOUT_MS) ?? hostReachTimeoutFromConfig,
|
|
163
181
|
logger: (line) => process.stdout.write(`agentbox-hub: ${line}\n`),
|
|
164
182
|
// Next parses req.url itself when parsedUrl is omitted.
|
|
165
183
|
uiHandler: (req, res) => {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { describe, expect, it } from 'vitest';
|
|
2
|
+
import { parseVncTtl, vncUnavailableReason, VNC_TTL_MAX } from '../lib/boxes/vnc-link';
|
|
3
|
+
import { failFromAction } from '../app/(dashboard)/api/v1/lib/envelope';
|
|
4
|
+
|
|
5
|
+
describe('parseVncTtl', () => {
|
|
6
|
+
it('treats an absent ttl as the provider default', () => {
|
|
7
|
+
expect(parseVncTtl(null)).toEqual({ ok: true });
|
|
8
|
+
expect(parseVncTtl('')).toEqual({ ok: true });
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('accepts whole seconds inside the clamp', () => {
|
|
12
|
+
expect(parseVncTtl('3600')).toEqual({ ok: true, ttl: 3600 });
|
|
13
|
+
expect(parseVncTtl('1')).toEqual({ ok: true, ttl: 1 });
|
|
14
|
+
expect(parseVncTtl(String(VNC_TTL_MAX))).toEqual({ ok: true, ttl: VNC_TTL_MAX });
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('rejects out-of-range and non-integer values', () => {
|
|
18
|
+
for (const bad of ['0', '86401', 'abc', '1.5', '-5', ' 60']) {
|
|
19
|
+
const r = parseVncTtl(bad);
|
|
20
|
+
expect(r.ok, `expected ${bad} to be rejected`).toBe(false);
|
|
21
|
+
if (!r.ok) expect(r.message).toMatch(/ttl/);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
describe('vncUnavailableReason', () => {
|
|
27
|
+
const live = { name: 'smoke', vncEnabled: true, vncPassword: 'pw' };
|
|
28
|
+
|
|
29
|
+
it('passes a running, VNC-enabled box', () => {
|
|
30
|
+
expect(vncUnavailableReason(live, 'running')).toBeNull();
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it('refuses a box created with --no-vnc', () => {
|
|
34
|
+
expect(vncUnavailableReason({ ...live, vncEnabled: false }, 'running')).toMatch(/--no-vnc/);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('refuses a box with no recorded password', () => {
|
|
38
|
+
const why = vncUnavailableReason({ ...live, vncPassword: undefined }, 'running');
|
|
39
|
+
expect(why).toMatch(/password/);
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
it('refuses a box that is not running, naming the state', () => {
|
|
43
|
+
expect(vncUnavailableReason(live, 'paused')).toMatch(/paused/);
|
|
44
|
+
expect(vncUnavailableReason(live, 'stopped')).toMatch(/stopped/);
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
it('maps a deleted sandbox to a 404 and every other refusal to a 409', () => {
|
|
48
|
+
// The wording is load-bearing: failFromAction's regex is what picks the status.
|
|
49
|
+
const missing = vncUnavailableReason(live, 'missing');
|
|
50
|
+
expect(missing).not.toBeNull();
|
|
51
|
+
expect(failFromAction(missing as string).status).toBe(404);
|
|
52
|
+
|
|
53
|
+
for (const state of ['paused', 'stopped'] as const) {
|
|
54
|
+
expect(failFromAction(vncUnavailableReason(live, state) as string).status).toBe(409);
|
|
55
|
+
}
|
|
56
|
+
expect(
|
|
57
|
+
failFromAction(vncUnavailableReason({ ...live, vncEnabled: false }, 'running') as string)
|
|
58
|
+
.status,
|
|
59
|
+
).toBe(409);
|
|
60
|
+
});
|
|
61
|
+
});
|