@madarco/agentbox 0.28.1 → 0.29.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 +146 -0
- package/dist/_cloud-attach-EUO2OL7W.js +30 -0
- package/dist/chunk-2JHPGPLE.js +71 -0
- package/dist/chunk-2JHPGPLE.js.map +1 -0
- package/dist/{chunk-JQLOGVZK.js → chunk-4KYP775X.js} +85 -21
- package/dist/chunk-4KYP775X.js.map +1 -0
- package/dist/{chunk-V5NWSLWD.js → chunk-4NUETVTR.js} +14 -14
- package/dist/{chunk-OXKW4GWD.js → chunk-53OTEDBS.js} +4 -70
- package/dist/chunk-53OTEDBS.js.map +1 -0
- package/dist/{chunk-FGQFVUMH.js → chunk-6YSYQZRH.js} +3 -3
- package/dist/{chunk-KFLGXE3R.js → chunk-73D2HKA3.js} +138 -24
- package/dist/chunk-73D2HKA3.js.map +1 -0
- package/dist/{chunk-HYXCH4GA.js → chunk-7LC5IG5K.js} +7 -7
- package/dist/{chunk-NHVGKFVY.js → chunk-7LNXTPEE.js} +340 -22
- package/dist/chunk-7LNXTPEE.js.map +1 -0
- package/dist/{chunk-74VIUGY6.js → chunk-A2TATHHJ.js} +6 -9
- package/dist/chunk-A2TATHHJ.js.map +1 -0
- package/dist/{chunk-YI4GHC2E.js → chunk-AC3HU25W.js} +12 -15
- package/dist/chunk-AC3HU25W.js.map +1 -0
- package/dist/{chunk-7ABO7OIF.js → chunk-AUHYXXCA.js} +4 -4
- package/dist/{chunk-FPMRFMVK.js → chunk-B4YFG5TB.js} +9 -9
- package/dist/{chunk-OUF3YTQO.js → chunk-BIKWXLX7.js} +14 -17
- package/dist/chunk-BIKWXLX7.js.map +1 -0
- package/dist/{chunk-CKD3PRON.js → chunk-CZPVVFCF.js} +12 -9
- package/dist/{chunk-CKD3PRON.js.map → chunk-CZPVVFCF.js.map} +1 -1
- package/dist/chunk-F4PPZ4SI.js +17 -0
- package/dist/chunk-F4PPZ4SI.js.map +1 -0
- package/dist/{chunk-BWM56FKY.js → chunk-FEFLAITR.js} +11 -11
- package/dist/{chunk-EVT2SNF2.js → chunk-FELVUIIM.js} +3 -3
- package/dist/{chunk-46NNZMZT.js → chunk-I2DEYQLZ.js} +372 -72
- package/dist/chunk-I2DEYQLZ.js.map +1 -0
- package/dist/{chunk-OUWVN2F2.js → chunk-I7BSBUPC.js} +16 -13
- package/dist/chunk-I7BSBUPC.js.map +1 -0
- package/dist/{chunk-G3H2L3O2.js → chunk-MNDKP4VS.js} +23 -3
- package/dist/chunk-MNDKP4VS.js.map +1 -0
- package/dist/{chunk-BUMKBUXS.js → chunk-PAWAGULH.js} +3 -3
- package/dist/{chunk-4PR3KJ5X.js → chunk-PFEBKXFD.js} +20 -20
- package/dist/{chunk-JDSYMTMS.js → chunk-QDU7YDME.js} +130 -66
- package/dist/chunk-QDU7YDME.js.map +1 -0
- package/dist/{chunk-JNC7MCWJ.js → chunk-S32GHLVU.js} +10 -10
- package/dist/chunk-S32GHLVU.js.map +1 -0
- package/dist/{chunk-WB6S4W7O.js → chunk-THKVKVRF.js} +2413 -1012
- package/dist/chunk-THKVKVRF.js.map +1 -0
- package/dist/{chunk-7RSE7ESY.js → chunk-UEEW5TW7.js} +27 -18
- package/dist/chunk-UEEW5TW7.js.map +1 -0
- package/dist/{chunk-B4DAH2F2.js → chunk-UTOC2NHC.js} +3 -3
- package/dist/{chunk-NHTRTST5.js → chunk-WDBDFLH3.js} +38 -15
- package/dist/chunk-WDBDFLH3.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-WJUKN4L4.js} +7 -6
- package/dist/chunk-WJUKN4L4.js.map +1 -0
- package/dist/{chunk-GFOWBXV7.js → chunk-XENTK32L.js} +463 -253
- package/dist/chunk-XENTK32L.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-YQFX2ILX.js} +19 -18
- package/dist/cp-hub-upload-RMJ3XJ65.js +81 -0
- package/dist/cp-hub-upload-RMJ3XJ65.js.map +1 -0
- package/dist/{custody-client-PNCC2HBJ.js → custody-client-L4FEFW4C.js} +5 -4
- package/dist/{deploy-hetzner-SSGSXAKA.js → deploy-hetzner-EECQ4JCM.js} +10 -10
- package/dist/{dist-RN6JOAG4.js → dist-3BKIPZR3.js} +81 -45
- package/dist/{dist-K5M4HKG7.js → dist-C5B6NGBO.js} +21 -9
- package/dist/{dist-6PYXFREL.js → dist-E5EXDZG4.js} +61 -16
- package/dist/dist-E5EXDZG4.js.map +1 -0
- package/dist/{dist-XATN4ZIR.js → dist-FBM2WS5S.js} +22 -4
- package/dist/{dist-XQLKK7H3.js → dist-NFF2KEMB.js} +54 -28
- package/dist/dist-NFF2KEMB.js.map +1 -0
- package/dist/{dist-5OR4QTQW.js → dist-NTUHJOK3.js} +9 -9
- package/dist/{dist-ZNQZHTUN.js → dist-PTYASENV.js} +35 -6
- package/dist/{dist-POILUDVJ.js → dist-Q4UDCSZQ.js} +9 -9
- package/dist/{dist-M4O5MU5K.js → dist-TXFTYNNE.js} +8 -8
- package/dist/{dist-EPFS5PRI.js → dist-XUOHE22G.js} +10 -10
- package/dist/{dist-SN2TCRZ5.js → dist-Z2TPC3EN.js} +9 -9
- package/dist/host-reach-drainer-N4JSFUBY.js +9 -0
- package/dist/hub-3HPYOV5O.js +37 -0
- package/dist/{hub-adopt-I44VGSBL.js → hub-adopt-NCCCMMXL.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-ZKAWXVPH.js} +16 -16
- package/dist/index.js +1321 -882
- package/dist/index.js.map +1 -1
- package/dist/prepare-KIVDQRMN.js +41 -0
- package/dist/prepared-custody-EFSOOAIQ.js +36 -0
- package/dist/{prepared-state-PV3GUBHO-MF56HWMZ.js → prepared-state-LNQ7DYSU-2YFSDOCV.js} +4 -3
- package/dist/{publish-credentials-BPHUO5VL.js → publish-credentials-F2A5OVCO.js} +11 -11
- package/dist/registry-O3X2CDDU.js +18 -0
- package/dist/relay-3T57T4RI.js +20 -0
- package/dist/relay-3T57T4RI.js.map +1 -0
- package/dist/{remote-docker-share-RX5ARK45.js → remote-docker-share-QDCBM5UM.js} +11 -11
- package/dist/remote-docker-share-QDCBM5UM.js.map +1 -0
- package/dist/tool-grant-push-6ISDIJKH.js +90 -0
- package/dist/tool-grant-push-6ISDIJKH.js.map +1 -0
- package/package.json +1 -2
- package/runtime/_shared/agentbox-tool-shim +21 -0
- package/runtime/_shared/ctl.cjs +6760 -5299
- package/runtime/_shared/gh-shim +103 -228
- package/runtime/digitalocean/agentbox-tool-shim +21 -0
- package/runtime/digitalocean/ctl.cjs +6760 -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 +6760 -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 +6760 -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 +6760 -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-QU3FFGJY.js → chunk-2WB3A5IN.js} +11 -14
- package/runtime/hub/apps/hub/{chunk-LPYK2354.js → chunk-5ABFGGPT.js} +339 -21
- package/runtime/hub/apps/hub/{chunk-VKOCY6SX.js → chunk-BI4MPGQT.js} +49 -14
- package/runtime/hub/apps/hub/{chunk-UMPTTQBE.js → chunk-G6FJR7TN.js} +461 -251
- package/runtime/hub/apps/hub/{chunk-KTVETF3F.js → chunk-QGAP34GN.js} +11 -8
- package/runtime/hub/apps/hub/{chunk-5TM7XXLT.js → chunk-QWSP6WJ2.js} +2833 -1277
- package/runtime/hub/apps/hub/{chunk-EZUK53CC.js → chunk-RPPOFMPA.js} +85 -21
- package/runtime/hub/apps/hub/{chunk-3LAHFDJF.js → chunk-VWQNSZGI.js} +22 -2
- 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-JVEDVVVG.js → dist-4F6XEJHK.js} +7 -7
- package/runtime/hub/apps/hub/{dist-2YP57GMB.js → dist-A3JOKKYG.js} +13 -13
- package/runtime/hub/apps/hub/{dist-D265LCAN.js → dist-CGH7PEMZ.js} +21 -3
- package/runtime/hub/apps/hub/{dist-SYWTB6RD.js → dist-F547YSBE.js} +15 -18
- package/runtime/hub/apps/hub/{dist-YK5FFPXZ.js → dist-FEHV4PC7.js} +62 -20
- package/runtime/hub/apps/hub/{dist-NKCXH5DW.js → dist-P7NT6VLK.js} +6 -6
- package/runtime/hub/apps/hub/{dist-E2FTSTCY.js → dist-W2YXTEQN.js} +34 -5
- package/runtime/hub/apps/hub/{dist-ELZHBQEM.js → dist-W5SGEJLA.js} +11 -11
- package/runtime/hub/apps/hub/{dist-N3E5YAYY.js → dist-YB3Y2XDK.js} +53 -26
- package/runtime/hub/apps/hub/{dist-5HTJSOHS.js → dist-ZTJMZLED.js} +19 -7
- 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-I5QBLSRU.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-4I7FNNNS.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 +16626 -14688
- package/runtime/vercel/agentbox-tool-shim +21 -0
- package/runtime/vercel/ctl.cjs +6760 -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-EUO2OL7W.js.map} +0 -0
- /package/dist/{chunk-V5NWSLWD.js.map → chunk-4NUETVTR.js.map} +0 -0
- /package/dist/{chunk-FGQFVUMH.js.map → chunk-6YSYQZRH.js.map} +0 -0
- /package/dist/{chunk-HYXCH4GA.js.map → chunk-7LC5IG5K.js.map} +0 -0
- /package/dist/{chunk-7ABO7OIF.js.map → chunk-AUHYXXCA.js.map} +0 -0
- /package/dist/{chunk-FPMRFMVK.js.map → chunk-B4YFG5TB.js.map} +0 -0
- /package/dist/{chunk-BWM56FKY.js.map → chunk-FEFLAITR.js.map} +0 -0
- /package/dist/{chunk-EVT2SNF2.js.map → chunk-FELVUIIM.js.map} +0 -0
- /package/dist/{chunk-BUMKBUXS.js.map → chunk-PAWAGULH.js.map} +0 -0
- /package/dist/{chunk-4PR3KJ5X.js.map → chunk-PFEBKXFD.js.map} +0 -0
- /package/dist/{chunk-B4DAH2F2.js.map → chunk-UTOC2NHC.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-YQFX2ILX.js.map} +0 -0
- /package/dist/{custody-client-PNCC2HBJ.js.map → custody-client-L4FEFW4C.js.map} +0 -0
- /package/dist/{deploy-hetzner-SSGSXAKA.js.map → deploy-hetzner-EECQ4JCM.js.map} +0 -0
- /package/dist/{dist-5OR4QTQW.js.map → dist-3BKIPZR3.js.map} +0 -0
- /package/dist/{dist-EPFS5PRI.js.map → dist-C5B6NGBO.js.map} +0 -0
- /package/dist/{dist-K5M4HKG7.js.map → dist-FBM2WS5S.js.map} +0 -0
- /package/dist/{dist-M4O5MU5K.js.map → dist-NTUHJOK3.js.map} +0 -0
- /package/dist/{dist-POILUDVJ.js.map → dist-PTYASENV.js.map} +0 -0
- /package/dist/{dist-RN6JOAG4.js.map → dist-Q4UDCSZQ.js.map} +0 -0
- /package/dist/{dist-SN2TCRZ5.js.map → dist-TXFTYNNE.js.map} +0 -0
- /package/dist/{dist-XATN4ZIR.js.map → dist-XUOHE22G.js.map} +0 -0
- /package/dist/{dist-ZNQZHTUN.js.map → dist-Z2TPC3EN.js.map} +0 -0
- /package/dist/{hub-MJ7O4WXW.js.map → host-reach-drainer-N4JSFUBY.js.map} +0 -0
- /package/dist/{hub-adopt-I44VGSBL.js.map → hub-3HPYOV5O.js.map} +0 -0
- /package/dist/{hub-api-client-WJPBXZAZ.js.map → hub-adopt-NCCCMMXL.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-ZKAWXVPH.js.map} +0 -0
- /package/dist/{prepared-custody-QIXW7MJM.js.map → prepare-KIVDQRMN.js.map} +0 -0
- /package/dist/{prepared-state-PV3GUBHO-MF56HWMZ.js.map → prepared-custody-EFSOOAIQ.js.map} +0 -0
- /package/dist/{relay-DRDELF6B.js.map → prepared-state-LNQ7DYSU-2YFSDOCV.js.map} +0 -0
- /package/dist/{publish-credentials-BPHUO5VL.js.map → publish-credentials-F2A5OVCO.js.map} +0 -0
- /package/dist/{remote-docker-share-RX5ARK45.js.map → registry-O3X2CDDU.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → nDHi_1342DzyGDC14ocQo}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → nDHi_1342DzyGDC14ocQo}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{z7_2bKU93xE7GwllL1Duv → nDHi_1342DzyGDC14ocQo}/_ssgManifest.js +0 -0
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
isProviderKind,
|
|
15
15
|
listProjectsConfigured,
|
|
16
16
|
loadEffectiveConfig,
|
|
17
|
-
PROVIDER_NAMES,
|
|
18
|
-
providerMeta,
|
|
19
17
|
pruneOrphanProjectConfigs,
|
|
20
18
|
registerProject,
|
|
21
19
|
resolveDefaultCheckpoint,
|
|
@@ -56,7 +54,7 @@ import {
|
|
|
56
54
|
import { mergeRemoteProviders } from './boxes/provider-origin.js';
|
|
57
55
|
import { hydratePreparedFromCustody } from './prepared-hydrate.js';
|
|
58
56
|
import { fetchRemoteProviders, resolveRemoteHub } from './remote-hub.js';
|
|
59
|
-
import {
|
|
57
|
+
import { isRuntimeProviderName, loadProviderModuleByName } from './provider-importers.js';
|
|
60
58
|
import type { BoxGitDeps } from '@agentbox/sandbox-core';
|
|
61
59
|
import {
|
|
62
60
|
BOX_WORKSPACE,
|
|
@@ -81,6 +79,8 @@ import {
|
|
|
81
79
|
setBoxDisplayName,
|
|
82
80
|
syncAgentboxSshConfig,
|
|
83
81
|
diffFileManifests,
|
|
82
|
+
listProviderDescriptors,
|
|
83
|
+
resolveProviderDescriptor,
|
|
84
84
|
type FileManifest,
|
|
85
85
|
} from '@agentbox/sandbox-core';
|
|
86
86
|
import {
|
|
@@ -107,6 +107,7 @@ import {
|
|
|
107
107
|
readBoxStatus,
|
|
108
108
|
registerBoxWithRelay,
|
|
109
109
|
removeCheckpoint as removeDockerCheckpoint,
|
|
110
|
+
resolveVncViewerUrl,
|
|
110
111
|
setRelayNotice,
|
|
111
112
|
type CheckpointInfo,
|
|
112
113
|
type ListedBox,
|
|
@@ -136,7 +137,9 @@ import type {
|
|
|
136
137
|
PruneView,
|
|
137
138
|
RemoteDockerHostView,
|
|
138
139
|
ServicesResult,
|
|
140
|
+
VncUrlResult,
|
|
139
141
|
} from './boxes/backend-types';
|
|
142
|
+
import { vncUnavailableReason } from './boxes/vnc-link';
|
|
140
143
|
import { hubProfile } from './auth-config';
|
|
141
144
|
import { custodyIdentityFromRegistration } from './boxes/seed-slug';
|
|
142
145
|
import { controlPlaneCreateRequest } from './boxes/control-plane-create';
|
|
@@ -177,10 +180,7 @@ const prepareEnqueueChain = new Map<string, Promise<unknown>>();
|
|
|
177
180
|
|
|
178
181
|
async function providerForBox(box: BoxRecord): Promise<Provider> {
|
|
179
182
|
const name = box.provider ?? 'docker';
|
|
180
|
-
|
|
181
|
-
throw new Error(`box ${box.id}: unsupported provider "${name}" (built-in providers only)`);
|
|
182
|
-
}
|
|
183
|
-
const mod = (await IMPORTERS[name]()).providerModule;
|
|
183
|
+
const mod = await loadProviderModuleByName(name);
|
|
184
184
|
if (mod.ensureCredentials) await mod.ensureCredentials();
|
|
185
185
|
return mod.provider;
|
|
186
186
|
}
|
|
@@ -643,30 +643,18 @@ function remoteDockerHostCount(): number {
|
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
function isProviderConfigured(id:
|
|
647
|
-
if (id === 'docker') return true;
|
|
646
|
+
function isProviderConfigured(id: string): boolean {
|
|
648
647
|
// remote-docker is usable as soon as one host alias is registered (the image
|
|
649
648
|
// builds lazily on first create); it never writes a top-level `base` marker.
|
|
650
649
|
if (id === 'remote-docker') return remoteDockerHostCount() > 0;
|
|
650
|
+
// A provider whose base self-heals on create (docker) — or a plugin that owns
|
|
651
|
+
// its own setup story and declares no bake — is ready as soon as it exists.
|
|
652
|
+
// Demanding a `base` marker of those would report every one of them as broken.
|
|
653
|
+
if (!resolveProviderDescriptor(id)?.bake.required) return true;
|
|
651
654
|
const raw = readPreparedStateRaw(id);
|
|
652
655
|
return !!(raw && typeof raw === 'object' && (raw as { base?: unknown }).base);
|
|
653
656
|
}
|
|
654
657
|
|
|
655
|
-
// secrets.env key(s) whose presence means a provider has credentials. Checked by
|
|
656
|
-
// name only (never the value) so credential status is cheap + SDK-free. docker
|
|
657
|
-
// needs none.
|
|
658
|
-
const PROVIDER_CRED_KEYS: Record<ProviderKind, readonly string[]> = {
|
|
659
|
-
docker: [],
|
|
660
|
-
e2b: ['E2B_API_KEY'],
|
|
661
|
-
daytona: ['DAYTONA_API_KEY', 'DAYTONA_JWT_TOKEN'],
|
|
662
|
-
hetzner: ['HCLOUD_TOKEN'],
|
|
663
|
-
vercel: ['VERCEL_TOKEN', 'VERCEL_OIDC_TOKEN', 'VERCEL_AUTH_SOURCE'],
|
|
664
|
-
digitalocean: ['DIGITALOCEAN_TOKEN'],
|
|
665
|
-
// remote-docker authenticates as you, over your own ~/.ssh/config — there is
|
|
666
|
-
// no credential to store, so there is none to check.
|
|
667
|
-
'remote-docker': [],
|
|
668
|
-
};
|
|
669
|
-
|
|
670
658
|
/** Set of KEY names present in `~/.agentbox/secrets.env` (values ignored). */
|
|
671
659
|
function readSecretsKeys(): Set<string> {
|
|
672
660
|
const out = new Set<string>();
|
|
@@ -684,10 +672,19 @@ function readSecretsKeys(): Set<string> {
|
|
|
684
672
|
return out;
|
|
685
673
|
}
|
|
686
674
|
|
|
687
|
-
/**
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
675
|
+
/**
|
|
676
|
+
* Whether a provider has credentials configured (secrets.env or the shell env).
|
|
677
|
+
*
|
|
678
|
+
* The key NAMES come from the provider's descriptor; the values are never read,
|
|
679
|
+
* so this stays cheap and SDK-free. A provider that declares no keys needs no
|
|
680
|
+
* credentials (docker, remote-docker) and is therefore always satisfied — which
|
|
681
|
+
* is also the right answer for a plugin that hasn't declared any, since a `false`
|
|
682
|
+
* there would disable its bake button for a credential it never wanted.
|
|
683
|
+
*/
|
|
684
|
+
function hasProviderCredentials(id: string, keys: Set<string>): boolean {
|
|
685
|
+
const envKeys = resolveProviderDescriptor(id)?.credentials.envKeys ?? [];
|
|
686
|
+
if (envKeys.length === 0) return true;
|
|
687
|
+
return envKeys.some((k) => keys.has(k) || !!process.env[k]);
|
|
691
688
|
}
|
|
692
689
|
|
|
693
690
|
/** Cheap `docker info` reachability probe (short timeout) for the bake precheck. */
|
|
@@ -717,7 +714,7 @@ async function binOnPath(name: string): Promise<boolean> {
|
|
|
717
714
|
* fast with a clear message instead of a confusing mid-bake error. Returns an
|
|
718
715
|
* error string when unmet, else null.
|
|
719
716
|
*/
|
|
720
|
-
async function preparePrecheck(id:
|
|
717
|
+
async function preparePrecheck(id: string): Promise<string | null> {
|
|
721
718
|
if (id === 'docker') {
|
|
722
719
|
return (await dockerDaemonReachable())
|
|
723
720
|
? null
|
|
@@ -736,13 +733,20 @@ async function preparePrecheck(id: ProviderKind): Promise<string | null> {
|
|
|
736
733
|
return null;
|
|
737
734
|
}
|
|
738
735
|
|
|
736
|
+
/**
|
|
737
|
+
* Every provider a box can be created on — built-ins AND registered plugins.
|
|
738
|
+
*
|
|
739
|
+
* Iterating descriptors rather than `PROVIDER_NAMES` is what makes a community
|
|
740
|
+
* provider visible: the create path has always accepted plugin names, but a
|
|
741
|
+
* provider absent from this list never reaches a picker in the web UI or tray.
|
|
742
|
+
*/
|
|
739
743
|
function listProviders(jobs: QueueJob[]): ProviderOption[] {
|
|
740
744
|
const keys = readSecretsKeys();
|
|
741
|
-
return
|
|
745
|
+
return listProviderDescriptors().map((d) => {
|
|
746
|
+
const id = d.name;
|
|
742
747
|
// Keep "Docker (local)" but drop the "(cloud …)" qualifier from cloud labels
|
|
743
748
|
// — the picker just wants the provider name.
|
|
744
|
-
const label =
|
|
745
|
-
id === 'docker' ? providerMeta(id).label : providerMeta(id).label.replace(/\s*\(.*\)$/, '');
|
|
749
|
+
const label = id === 'docker' ? d.label : d.label.replace(/\s*\(.*\)$/, '');
|
|
746
750
|
const configured = isProviderConfigured(id);
|
|
747
751
|
const hasCredentials = hasProviderCredentials(id, keys);
|
|
748
752
|
// An in-flight bake for this provider (queued or running) — lets the UI show
|
|
@@ -762,7 +766,25 @@ function listProviders(jobs: QueueJob[]): ProviderOption[] {
|
|
|
762
766
|
? 'Credentials set — bake the base image to finish setup.'
|
|
763
767
|
: 'Not set up — add credentials, then bake the base image.';
|
|
764
768
|
}
|
|
765
|
-
return {
|
|
769
|
+
return {
|
|
770
|
+
id,
|
|
771
|
+
label,
|
|
772
|
+
configured,
|
|
773
|
+
hasCredentials,
|
|
774
|
+
jobId: bake?.id,
|
|
775
|
+
reason,
|
|
776
|
+
// The declarative half of the descriptor, straight through to the client.
|
|
777
|
+
// It comes from a sync snapshot (the config table, or plugins.json for a
|
|
778
|
+
// plugin), so serving it costs nothing and needs no opt-in flag — clients
|
|
779
|
+
// use it to render credential forms, pace progress bars, and gate
|
|
780
|
+
// capability-specific UI without hardcoding provider names.
|
|
781
|
+
kind: d.kind,
|
|
782
|
+
credentials: d.credentials,
|
|
783
|
+
bake: d.bake,
|
|
784
|
+
capabilities: d.capabilities,
|
|
785
|
+
...(d.sizes ? { sizes: d.sizes } : {}),
|
|
786
|
+
...(d.regions ? { regions: d.regions } : {}),
|
|
787
|
+
};
|
|
766
788
|
});
|
|
767
789
|
}
|
|
768
790
|
|
|
@@ -788,14 +810,11 @@ async function withRemoteProviders(local: ProviderOption[]): Promise<ProviderOpt
|
|
|
788
810
|
// entry misses and recomputes, so a fresh bake is reflected immediately (no
|
|
789
811
|
// stale window from a TTL that outlives the bake — Bugbot #151).
|
|
790
812
|
const FRESHNESS_TTL_MS = 60_000;
|
|
791
|
-
const freshnessCache = new Map<
|
|
792
|
-
ProviderKind,
|
|
793
|
-
{ at: number; stored: string; live: string | undefined }
|
|
794
|
-
>();
|
|
813
|
+
const freshnessCache = new Map<string, { at: number; stored: string; live: string | undefined }>();
|
|
795
814
|
|
|
796
815
|
/**
|
|
797
816
|
* Live base-image/snapshot freshness for one provider, over the hub's own
|
|
798
|
-
* provider
|
|
817
|
+
* provider loader — the one place this now runs (the CLI reads it back from
|
|
799
818
|
* `GET /api/v1/providers?freshness=1`). Docker gets a real check too (unlike the
|
|
800
819
|
* CLI, which lets `ensureImage` self-heal silently): the tray/web create
|
|
801
820
|
* flows use `unprepared`/`stale` to announce the upcoming bake instead of
|
|
@@ -803,7 +822,7 @@ const freshnessCache = new Map<
|
|
|
803
822
|
* the live fingerprint degrades to 'unknown' (never a false 'stale').
|
|
804
823
|
*/
|
|
805
824
|
async function providerBaseFreshness(
|
|
806
|
-
id:
|
|
825
|
+
id: string,
|
|
807
826
|
claudeInstall?: 'native' | 'npm',
|
|
808
827
|
): Promise<BaseStatus> {
|
|
809
828
|
if (id === 'docker') {
|
|
@@ -823,7 +842,7 @@ async function providerBaseFreshness(
|
|
|
823
842
|
// shared bakes instead of showing every provider as "needs baking". No-op on a
|
|
824
843
|
// local hub (local prepared-state already set) or when custody has no match.
|
|
825
844
|
try {
|
|
826
|
-
const mod =
|
|
845
|
+
const mod = await loadProviderModuleByName(id);
|
|
827
846
|
await hydratePreparedFromCustody(
|
|
828
847
|
new FsCustodyStore(),
|
|
829
848
|
id,
|
|
@@ -849,7 +868,7 @@ async function providerBaseFreshness(
|
|
|
849
868
|
live = cached.live;
|
|
850
869
|
} else {
|
|
851
870
|
try {
|
|
852
|
-
const mod =
|
|
871
|
+
const mod = await loadProviderModuleByName(id);
|
|
853
872
|
live = await mod.currentBaseFingerprintLive?.('native');
|
|
854
873
|
} catch {
|
|
855
874
|
live = undefined;
|
|
@@ -878,7 +897,13 @@ async function listProvidersWithFreshness(base: ProviderOption[]): Promise<Provi
|
|
|
878
897
|
}
|
|
879
898
|
return Promise.all(
|
|
880
899
|
base.map(async (p) => {
|
|
881
|
-
|
|
900
|
+
// Plugins are probed too, not just built-ins: a plugin that implements
|
|
901
|
+
// `currentBaseFingerprintLive` gets the same staleness nagging, and one
|
|
902
|
+
// that doesn't degrades to 'unknown' inside providerBaseFreshness rather
|
|
903
|
+
// than being skipped here. (docker is probed despite needing no bake — the
|
|
904
|
+
// create flows use `unprepared`/`stale` to ANNOUNCE the upcoming build
|
|
905
|
+
// instead of hiding it inside the create job.)
|
|
906
|
+
//
|
|
882
907
|
// A control-box row already carries THAT machine's freshness, computed
|
|
883
908
|
// against ITS build context. Recomputing it here would answer a question
|
|
884
909
|
// about the wrong host — the "adopted-then-nagged" bug, one level up.
|
|
@@ -886,6 +911,7 @@ async function listProvidersWithFreshness(base: ProviderOption[]): Promise<Provi
|
|
|
886
911
|
const fresh = await providerBaseFreshness(p.id, claudeInstall);
|
|
887
912
|
return {
|
|
888
913
|
...p,
|
|
914
|
+
hasCredentials: await refineCredStatus(p),
|
|
889
915
|
baseStatus: fresh.state,
|
|
890
916
|
baseStaleReason: fresh.state === 'stale' ? fresh.reason : undefined,
|
|
891
917
|
// Only stale rows pay for the diff: it re-hashes the whole build context,
|
|
@@ -896,6 +922,30 @@ async function listProvidersWithFreshness(base: ProviderOption[]): Promise<Provi
|
|
|
896
922
|
);
|
|
897
923
|
}
|
|
898
924
|
|
|
925
|
+
/**
|
|
926
|
+
* Ask the provider itself whether it has credentials, for providers whose
|
|
927
|
+
* descriptor names no `secrets.env` keys.
|
|
928
|
+
*
|
|
929
|
+
* The sync `listProviders` path can only check key NAMES, and answers "yes" when
|
|
930
|
+
* a provider declares none — the non-blocking default. But a plugin may hold its
|
|
931
|
+
* credentials somewhere we can't see (a CLI keychain, an OAuth cache) and still
|
|
932
|
+
* know whether it is authenticated; `readCredStatus()` is how it says so. Only
|
|
933
|
+
* this async path can ask, since it means loading the module.
|
|
934
|
+
*
|
|
935
|
+
* Best-effort: any failure keeps the row's existing answer rather than reporting
|
|
936
|
+
* a provider as unconfigured because its probe threw.
|
|
937
|
+
*/
|
|
938
|
+
async function refineCredStatus(p: ProviderOption): Promise<boolean | undefined> {
|
|
939
|
+
if ((p.credentials?.envKeys.length ?? 0) > 0) return p.hasCredentials;
|
|
940
|
+
try {
|
|
941
|
+
const mod = await loadProviderModuleByName(p.id);
|
|
942
|
+
if (!mod.readCredStatus) return p.hasCredentials;
|
|
943
|
+
return (await mod.readCredStatus()).configured;
|
|
944
|
+
} catch {
|
|
945
|
+
return p.hasCredentials;
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
|
|
899
949
|
/**
|
|
900
950
|
* Why a provider's base is stale, file by file.
|
|
901
951
|
*
|
|
@@ -904,12 +954,12 @@ async function listProvidersWithFreshness(base: ProviderOption[]): Promise<Provi
|
|
|
904
954
|
* answer is to say so — inventing a diff from mtimes or from the aggregate hash
|
|
905
955
|
* would be a guess dressed as a fact.
|
|
906
956
|
*/
|
|
907
|
-
async function providerBakeDiff(id:
|
|
957
|
+
async function providerBakeDiff(id: string): Promise<BakeDiff | undefined> {
|
|
908
958
|
try {
|
|
909
959
|
const raw = readPreparedStateRaw(id) as { base?: { files?: FileManifest } } | null;
|
|
910
960
|
const stored = raw?.base?.files;
|
|
911
961
|
if (!stored || Object.keys(stored).length === 0) return { hasManifest: false };
|
|
912
|
-
const mod =
|
|
962
|
+
const mod = await loadProviderModuleByName(id);
|
|
913
963
|
const current = await mod.currentBaseFileHashes?.();
|
|
914
964
|
// A manifest IS recorded here — the live side just couldn't be hashed (a dev
|
|
915
965
|
// tree with no staged runtime). Reporting `hasManifest: false` would tell the
|
|
@@ -1463,8 +1513,8 @@ async function allCloudBackends(): Promise<string[]> {
|
|
|
1463
1513
|
|
|
1464
1514
|
/** A built-in cloud provider by backend name (plugin backends aren't bundled here). */
|
|
1465
1515
|
async function cloudProviderForBackend(backend: string): Promise<Provider | null> {
|
|
1466
|
-
if (!
|
|
1467
|
-
return (await
|
|
1516
|
+
if (!isRuntimeProviderName(backend)) return null;
|
|
1517
|
+
return (await loadProviderModuleByName(backend)).provider;
|
|
1468
1518
|
}
|
|
1469
1519
|
|
|
1470
1520
|
function dockerItemView(c: CheckpointInfo, def: string): CheckpointItemView {
|
|
@@ -1712,8 +1762,8 @@ async function enumerateCloudOrphans(
|
|
|
1712
1762
|
| { ok: true; backend: import('@agentbox/core').CloudBackend; orphans: CloudSandboxSummary[] }
|
|
1713
1763
|
| { ok: false; error: string }
|
|
1714
1764
|
> {
|
|
1715
|
-
if (!
|
|
1716
|
-
const mod =
|
|
1765
|
+
if (!isRuntimeProviderName(provider)) return { ok: false, error: `unknown provider ${provider}` };
|
|
1766
|
+
const mod = await loadProviderModuleByName(provider);
|
|
1717
1767
|
if (mod.ensureCredentials) await mod.ensureCredentials();
|
|
1718
1768
|
const backend = mod.backend;
|
|
1719
1769
|
if (!backend?.list) {
|
|
@@ -2152,9 +2202,14 @@ export function createHubBackend(handle: RelayServerHandle): HubBackend {
|
|
|
2152
2202
|
error: `unknown remote-docker host '${alias}' — add it in Settings`,
|
|
2153
2203
|
};
|
|
2154
2204
|
}
|
|
2155
|
-
} else {
|
|
2156
|
-
|
|
2205
|
+
} else if (!isProviderKind(provider)) {
|
|
2206
|
+
// Provider PLUGIN: registration in ~/.agentbox/plugins.json is the
|
|
2207
|
+
// gate. Plugins own their own setup story (a `prepare` step is
|
|
2208
|
+
// optional for them), so there is no prepared-state `base` marker to
|
|
2209
|
+
// check — `isProviderConfigured` would reject every one of them.
|
|
2210
|
+
if (!isRuntimeProviderName(provider))
|
|
2157
2211
|
return { ok: false, error: `unknown provider ${provider}` };
|
|
2212
|
+
} else {
|
|
2158
2213
|
if (!isProviderConfigured(provider)) {
|
|
2159
2214
|
// With a control box configured, cloud boxes are ITS job — this UI
|
|
2160
2215
|
// is a mirror, not a second create path — so say where to go rather
|
|
@@ -2259,9 +2314,11 @@ export function createHubBackend(handle: RelayServerHandle): HubBackend {
|
|
|
2259
2314
|
},
|
|
2260
2315
|
async setProviderCredentials(id, fields): Promise<ActionResult> {
|
|
2261
2316
|
try {
|
|
2262
|
-
if (!
|
|
2263
|
-
|
|
2264
|
-
|
|
2317
|
+
if (!isRuntimeProviderName(id)) return { ok: false, error: `unknown provider ${id}` };
|
|
2318
|
+
// Nothing to store for a provider that declares no credential fields
|
|
2319
|
+
// (docker; remote-docker connects as you over your own ssh config).
|
|
2320
|
+
if (resolveProviderDescriptor(id)?.credentials.fields.length === 0) return { ok: true };
|
|
2321
|
+
const mod = await loadProviderModuleByName(id);
|
|
2265
2322
|
if (!mod.setCredentials) {
|
|
2266
2323
|
return { ok: false, error: `provider ${id} does not support credential setup` };
|
|
2267
2324
|
}
|
|
@@ -2273,7 +2330,7 @@ export function createHubBackend(handle: RelayServerHandle): HubBackend {
|
|
|
2273
2330
|
}
|
|
2274
2331
|
},
|
|
2275
2332
|
prepareProvider(id, opts): Promise<CreateBoxResult> {
|
|
2276
|
-
if (!
|
|
2333
|
+
if (!isRuntimeProviderName(id))
|
|
2277
2334
|
return Promise.resolve({ ok: false, error: `unknown provider ${id}` });
|
|
2278
2335
|
// Serialize per provider so concurrent POSTs can't both miss the in-flight
|
|
2279
2336
|
// job and enqueue duplicates (the check+enqueue below isn't atomic on its own).
|
|
@@ -2514,6 +2571,22 @@ export function createHubBackend(handle: RelayServerHandle): HubBackend {
|
|
|
2514
2571
|
}
|
|
2515
2572
|
},
|
|
2516
2573
|
|
|
2574
|
+
async vncUrl(id, opts): Promise<VncUrlResult> {
|
|
2575
|
+
try {
|
|
2576
|
+
const rp = await resolveBoxProvider(id, hydrate);
|
|
2577
|
+
if (!rp) return { ok: false, error: `box ${id} not found` };
|
|
2578
|
+
// Probe rather than trust `cloud.lastState`: it lags an out-of-band stop,
|
|
2579
|
+
// and a signed URL minted against a stopped sandbox 502s in the browser.
|
|
2580
|
+
const state = await rp.provider.probeState(rp.box);
|
|
2581
|
+
const why = vncUnavailableReason(rp.box, state);
|
|
2582
|
+
if (why) return { ok: false, error: why };
|
|
2583
|
+
const url = await resolveVncViewerUrl(rp.box, rp.provider, opts ?? {});
|
|
2584
|
+
return { ok: true, url, ...(opts?.ttl === undefined ? {} : { ttl: opts.ttl }) };
|
|
2585
|
+
} catch (err) {
|
|
2586
|
+
return { ok: false, error: errMsg(err) };
|
|
2587
|
+
}
|
|
2588
|
+
},
|
|
2589
|
+
|
|
2517
2590
|
// ── box service control ──
|
|
2518
2591
|
async getServices(id): Promise<ServicesResult> {
|
|
2519
2592
|
const rp = await resolveBoxProvider(id, hydrate).catch(() => null);
|
|
@@ -16,7 +16,7 @@ import { readdir, rm } from 'node:fs/promises';
|
|
|
16
16
|
import { hostname, tmpdir } from 'node:os';
|
|
17
17
|
import { join } from 'node:path';
|
|
18
18
|
import { promisify } from 'node:util';
|
|
19
|
-
import {
|
|
19
|
+
import { loadEffectiveConfig, parseProviderSpec } from '@agentbox/config';
|
|
20
20
|
import {
|
|
21
21
|
cloneRepoWithLfs,
|
|
22
22
|
drainCreateJobs,
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import { resolveAgentLauncher, type AgentKind, type ResolvedCarryEntry } from '@agentbox/core';
|
|
50
50
|
import { hydratePreparedFromCustody } from './prepared-hydrate.js';
|
|
51
51
|
import { HUB_WORKER_CLONE_PREFIX } from './boxes/project-key.js';
|
|
52
|
-
import {
|
|
52
|
+
import { isRuntimeProviderName, loadProviderModuleByName } from './provider-importers.js';
|
|
53
53
|
|
|
54
54
|
const execFileAsync = promisify(execFile);
|
|
55
55
|
|
|
@@ -299,7 +299,7 @@ export function makeHubCreateBox(opts: HubWorkerOptions): CreateBoxFn {
|
|
|
299
299
|
// a provider: the provider is remote-docker and the alias is threaded to it
|
|
300
300
|
// as a provider option (the CLI does the same, via buildProviderOptions).
|
|
301
301
|
const { name: providerName, remoteHost } = parseProviderSpec(provider);
|
|
302
|
-
if (!
|
|
302
|
+
if (!isRuntimeProviderName(providerName)) throw new Error(`unknown provider ${provider}`);
|
|
303
303
|
if (remoteHost) {
|
|
304
304
|
const rd = await import('@agentbox/sandbox-remote-docker');
|
|
305
305
|
if (!rd.getHostAlias(remoteHost)) {
|
|
@@ -308,7 +308,7 @@ export function makeHubCreateBox(opts: HubWorkerOptions): CreateBoxFn {
|
|
|
308
308
|
);
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
const mod =
|
|
311
|
+
const mod = await loadProviderModuleByName(providerName);
|
|
312
312
|
if (mod.ensureCredentials) await mod.ensureCredentials();
|
|
313
313
|
// Seed agent creds from custody just before create, so provider.create's
|
|
314
314
|
// seed step reads a logged-in host backup.
|
|
@@ -10,9 +10,16 @@
|
|
|
10
10
|
* which ships no node_modules. `Record<ProviderKind, …>` keeps the map
|
|
11
11
|
* exhaustive: a new provider in the config `PROVIDERS` table forces an entry.
|
|
12
12
|
*/
|
|
13
|
+
import { pathToFileURL } from 'node:url';
|
|
13
14
|
import { isProviderKind, type ProviderKind } from '@agentbox/config';
|
|
14
15
|
import type { CloudBackendLoader, CloudCpModule } from '@agentbox/relay';
|
|
15
|
-
import
|
|
16
|
+
import {
|
|
17
|
+
ensureProviderDescriptor,
|
|
18
|
+
isSupportedApiVersion,
|
|
19
|
+
pluginForProvider,
|
|
20
|
+
pluginProviderNames,
|
|
21
|
+
type ProviderModule,
|
|
22
|
+
} from '@agentbox/sandbox-core';
|
|
16
23
|
|
|
17
24
|
export const IMPORTERS: Record<ProviderKind, () => Promise<{ providerModule: ProviderModule }>> = {
|
|
18
25
|
docker: () => import('@agentbox/sandbox-docker'),
|
|
@@ -44,3 +51,61 @@ export const cloudBackendLoader: CloudBackendLoader = {
|
|
|
44
51
|
},
|
|
45
52
|
loadCloudCp: async (): Promise<CloudCpModule> => import('@agentbox/sandbox-cloud'),
|
|
46
53
|
};
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* `import()` no bundler can see. Turbopack rewrites every literal `import()` in
|
|
57
|
+
* this app into its own module registry, which resolves the plugin's specifier
|
|
58
|
+
* to a bundle entry that does not exist; building the function at runtime keeps
|
|
59
|
+
* the specifier on Node's own resolver.
|
|
60
|
+
*/
|
|
61
|
+
const runtimeImport = new Function('specifier', 'return import(specifier);') as (
|
|
62
|
+
specifier: string,
|
|
63
|
+
) => Promise<unknown>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Resolve a provider module by name, built-in OR registered plugin.
|
|
67
|
+
*
|
|
68
|
+
* Built-ins go through the literal-specifier `IMPORTERS` map above. A plugin
|
|
69
|
+
* name falls back to the on-disk registry and a TRUE variable `import()` of the
|
|
70
|
+
* externally-installed package — the same extension seam the CLI uses
|
|
71
|
+
* (`apps/cli/src/provider/loaders.ts`). The import goes through `runtimeImport`
|
|
72
|
+
* so the bundler never sees an `import()` it would try to resolve — the path
|
|
73
|
+
* only exists in the user's global node_modules.
|
|
74
|
+
*/
|
|
75
|
+
export async function loadProviderModuleByName(name: string): Promise<ProviderModule> {
|
|
76
|
+
if (isProviderKind(name)) return (await IMPORTERS[name]()).providerModule;
|
|
77
|
+
const plugin = pluginForProvider(name);
|
|
78
|
+
if (!plugin) {
|
|
79
|
+
throw new Error(
|
|
80
|
+
`unknown provider "${name}" — not built in and no registered plugin provides it (run \`agentbox plugin list\`)`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
if (!isSupportedApiVersion(plugin.apiVersion)) {
|
|
84
|
+
throw new Error(
|
|
85
|
+
`plugin "${plugin.packageName}" targets provider SDK v${String(plugin.apiVersion)}, which this AgentBox does not support — update the plugin or AgentBox`,
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
const mod = (await runtimeImport(pathToFileURL(plugin.resolvedEntry).href)) as {
|
|
89
|
+
providerModule?: ProviderModule;
|
|
90
|
+
providerModules?: ProviderModule[];
|
|
91
|
+
};
|
|
92
|
+
const all = mod.providerModules ?? (mod.providerModule ? [mod.providerModule] : []);
|
|
93
|
+
const picked = all.find((pm) => pm.provider?.name === name);
|
|
94
|
+
if (!picked) {
|
|
95
|
+
throw new Error(
|
|
96
|
+
`plugin "${plugin.packageName}" does not export a providerModule for "${name}"`,
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
// Back-fill the descriptor snapshot for a plugin registered before descriptors
|
|
100
|
+
// existed (a v1 plugins.json) — we hold the module here, which is the only
|
|
101
|
+
// moment deriving one is free. Deliberately NOT awaited: it is a cache write
|
|
102
|
+
// whose only cost when lost is another derivation later, so it must never add
|
|
103
|
+
// latency or a new failure mode to loading a provider.
|
|
104
|
+
void ensureProviderDescriptor(name, picked).catch(() => {});
|
|
105
|
+
return picked;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** True if `name` is a built-in provider or a registered plugin provider. */
|
|
109
|
+
export function isRuntimeProviderName(name: string): boolean {
|
|
110
|
+
return isProviderKind(name) || pluginProviderNames().includes(name);
|
|
111
|
+
}
|
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
readPreparedDockerState,
|
|
8
8
|
resolveContextFiles,
|
|
9
9
|
writePreparedDockerState
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-QGAP34GN.js";
|
|
11
|
+
import "./chunk-G6FJR7TN.js";
|
|
12
|
+
import "./chunk-5ABFGGPT.js";
|
|
12
13
|
import "./chunk-EFW34I43.js";
|
|
13
14
|
import "./chunk-TZFWAJVB.js";
|
|
14
15
|
export {
|