@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
|
@@ -141,7 +141,7 @@ export function buildOpenApi(): Record<string, unknown> {
|
|
|
141
141
|
tags: ['Boxes'],
|
|
142
142
|
summary: 'Run a lifecycle action',
|
|
143
143
|
description:
|
|
144
|
-
'One of start | pause | resume | stop | destroy | screen. start brings a stopped box back up (resumes if paused, no-op if already running); it does not restart the agent session — that happens on the next attach. screen is the open-VNC prep step: it points the in-box browser at the box’s web app so the VNC desktop shows the app instead of a blank X screen — call it right before opening the
|
|
144
|
+
'One of start | pause | resume | stop | destroy | screen. start brings a stopped box back up (resumes if paused, no-op if already running); it does not restart the agent session — that happens on the next attach. screen is the open-VNC prep step: it points the in-box browser at the box’s web app so the VNC desktop shows the app instead of a blank X screen — call it right before opening the viewer. It does not return a URL; get that from GET /boxes/{id}/vnc.',
|
|
145
145
|
parameters: [
|
|
146
146
|
{ name: 'id', in: 'path', required: true, schema: { type: 'string' } },
|
|
147
147
|
{
|
|
@@ -293,6 +293,50 @@ export function buildOpenApi(): Record<string, unknown> {
|
|
|
293
293
|
},
|
|
294
294
|
},
|
|
295
295
|
},
|
|
296
|
+
'/boxes/{id}/vnc': {
|
|
297
|
+
get: {
|
|
298
|
+
tags: ['Boxes'],
|
|
299
|
+
summary: "Mint the box's noVNC viewer URL",
|
|
300
|
+
description:
|
|
301
|
+
'A ready-to-open noVNC URL (autoconnect, password in the query). Cloud boxes get a freshly SIGNED preview URL on port 6080 that expires — which is why the Box payload\'s `vncUrl` is null for daytona/vercel/e2b and this must be called at click time. Docker/hetzner boxes return their stable Portless/OrbStack/loopback URL. Read-only: refused with 409 when the box is not running, has VNC disabled, or has no recorded password. Pair with POST /boxes/{id}/screen to point the in-box browser at the web app first.',
|
|
302
|
+
parameters: [
|
|
303
|
+
{ name: 'id', in: 'path', required: true, schema: { type: 'string' } },
|
|
304
|
+
{
|
|
305
|
+
name: 'ttl',
|
|
306
|
+
in: 'query',
|
|
307
|
+
required: false,
|
|
308
|
+
description: 'Cloud only: signed-URL lifetime in seconds (provider default 3600).',
|
|
309
|
+
schema: { type: 'integer', minimum: 1, maximum: 86400 },
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
name: 'loopback',
|
|
313
|
+
in: 'query',
|
|
314
|
+
required: false,
|
|
315
|
+
description: 'Docker only: prefer the 127.0.0.1 host-port URL over OrbStack/Portless.',
|
|
316
|
+
schema: { type: 'string', enum: ['1'] },
|
|
317
|
+
},
|
|
318
|
+
],
|
|
319
|
+
responses: {
|
|
320
|
+
'200': {
|
|
321
|
+
description: 'Viewer URL',
|
|
322
|
+
content: {
|
|
323
|
+
'application/json': {
|
|
324
|
+
schema: {
|
|
325
|
+
type: 'object',
|
|
326
|
+
properties: { url: { type: 'string' }, ttl: { type: 'integer' } },
|
|
327
|
+
required: ['url'],
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
'400': errorResponse,
|
|
333
|
+
'401': errorResponse,
|
|
334
|
+
'404': errorResponse,
|
|
335
|
+
'409': errorResponse,
|
|
336
|
+
'503': errorResponse,
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
},
|
|
296
340
|
'/boxes/{id}/rename': {
|
|
297
341
|
post: {
|
|
298
342
|
tags: ['Boxes'],
|
|
@@ -66,14 +66,19 @@ export function parseCreateBox(body: unknown): Parsed<CreateBoxInput> {
|
|
|
66
66
|
const isHostSpec =
|
|
67
67
|
typeof provider === 'string' &&
|
|
68
68
|
/^(?:docker|remote-docker):[A-Za-z0-9][A-Za-z0-9._-]*$/.test(provider);
|
|
69
|
+
// A name outside the built-in list may still be a registered provider PLUGIN.
|
|
70
|
+
// The plugin registry lives behind @agentbox/sandbox-core, which must stay out
|
|
71
|
+
// of the Next bundle (see PROVIDERS above), so this boundary only checks the
|
|
72
|
+
// SHAPE of an unknown name — the backend resolves it against the registry and
|
|
73
|
+
// rejects it there with a precise message.
|
|
69
74
|
if (
|
|
70
75
|
provider !== undefined &&
|
|
71
76
|
!isHostSpec &&
|
|
72
|
-
(typeof provider !== 'string' ||
|
|
77
|
+
(typeof provider !== 'string' || !/^[a-z][a-z0-9-]{0,39}$/.test(provider))
|
|
73
78
|
) {
|
|
74
79
|
return {
|
|
75
80
|
ok: false,
|
|
76
|
-
message: `provider must be one of ${PROVIDERS.join(', ')}
|
|
81
|
+
message: `provider must be one of ${PROVIDERS.join(', ')}, a registered plugin provider, or a docker:<host> spec`,
|
|
77
82
|
details: { got: provider },
|
|
78
83
|
};
|
|
79
84
|
}
|
|
@@ -231,8 +236,14 @@ export function isLifecycleAction(v: string): v is LifecycleAction {
|
|
|
231
236
|
}
|
|
232
237
|
|
|
233
238
|
// ── provider install / bake ──
|
|
239
|
+
// A community provider has credentials to set and (often) a base to bake, so
|
|
240
|
+
// rejecting unknown names here would leave a registered plugin creatable but
|
|
241
|
+
// unconfigurable. Same treatment as `parseCreateBox`: check only the SHAPE of an
|
|
242
|
+
// unknown name — the plugin registry lives behind @agentbox/sandbox-core, which
|
|
243
|
+
// stays out of the Next bundle — and let the backend resolve it against the
|
|
244
|
+
// registry and reject it there with a precise message.
|
|
234
245
|
export function isProviderId(v: string): boolean {
|
|
235
|
-
return (PROVIDERS as readonly string[]).includes(v);
|
|
246
|
+
return (PROVIDERS as readonly string[]).includes(v) || /^[a-z][a-z0-9-]{0,39}$/.test(v);
|
|
236
247
|
}
|
|
237
248
|
|
|
238
249
|
// Credential fields are a provider-specific record of string values (e.g.
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// GET /boxes/:id/vnc — a browser-openable redirect to the box's noVNC viewer.
|
|
2
|
+
//
|
|
3
|
+
// Cloud signed URLs expire, so they can't be baked into a link `agentbox ls`
|
|
4
|
+
// printed minutes ago. This mints one at CLICK time and 302s to it, which is
|
|
5
|
+
// what makes the terminal's OSC-8 `(VNC)` hyperlink work for daytona/vercel/e2b.
|
|
6
|
+
//
|
|
7
|
+
// Deliberately a page route rather than /api/v1: proxy.ts accepts `?token=<hub
|
|
8
|
+
// token>` on page routes (swapping it for the session cookie and redirecting to
|
|
9
|
+
// the clean URL), so a click that carries no Authorization header can still
|
|
10
|
+
// authenticate itself. Under /api/v1 the gate answers a JSON 401 a browser
|
|
11
|
+
// cannot follow.
|
|
12
|
+
import { backendOrNull } from '../../../api/v1/lib/backend';
|
|
13
|
+
import { parseVncTtl } from '@/lib/boxes/vnc-link';
|
|
14
|
+
|
|
15
|
+
export const runtime = 'nodejs';
|
|
16
|
+
export const dynamic = 'force-dynamic';
|
|
17
|
+
|
|
18
|
+
function problem(status: number, body: string): Response {
|
|
19
|
+
return new Response(`${body}\n`, {
|
|
20
|
+
status,
|
|
21
|
+
headers: { 'content-type': 'text/plain; charset=utf-8', 'cache-control': 'no-store' },
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export async function GET(
|
|
26
|
+
req: Request,
|
|
27
|
+
ctx: { params: Promise<{ id: string }> },
|
|
28
|
+
): Promise<Response> {
|
|
29
|
+
const { id } = await ctx.params;
|
|
30
|
+
const backend = backendOrNull();
|
|
31
|
+
if (!backend) {
|
|
32
|
+
return problem(503, 'AgentBox hub backend unavailable — this hub cannot mint box URLs.');
|
|
33
|
+
}
|
|
34
|
+
const ttl = parseVncTtl(new URL(req.url).searchParams.get('ttl'));
|
|
35
|
+
if (!ttl.ok) return problem(400, ttl.message);
|
|
36
|
+
|
|
37
|
+
const res = await backend.vncUrl(id, ttl.ttl === undefined ? {} : { ttl: ttl.ttl });
|
|
38
|
+
if (!res.ok) {
|
|
39
|
+
const notFound = /\b(not found|no such|does not exist)\b/i.test(res.error);
|
|
40
|
+
return problem(notFound ? 404 : 409, `Can't open the desktop for ${id}: ${res.error}`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Best-effort prep: point the in-box browser at the box's web app so the
|
|
44
|
+
// desktop isn't a blank X screen. Not awaited — a slow in-box exec must not
|
|
45
|
+
// stall the redirect the user is waiting on.
|
|
46
|
+
void backend.screen(id).catch(() => {});
|
|
47
|
+
|
|
48
|
+
return new Response(null, {
|
|
49
|
+
status: 302,
|
|
50
|
+
headers: {
|
|
51
|
+
location: res.url,
|
|
52
|
+
'cache-control': 'no-store',
|
|
53
|
+
// Without this the noVNC page would receive this URL — which may carry
|
|
54
|
+
// `?token=<hub token>` — as its Referer.
|
|
55
|
+
'referrer-policy': 'no-referrer',
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}
|
|
@@ -101,7 +101,9 @@ function useOpenIn(box: Box) {
|
|
|
101
101
|
body: JSON.stringify({ app }),
|
|
102
102
|
});
|
|
103
103
|
if (!r.ok) {
|
|
104
|
-
const detail = (await r.json().catch(() => null)) as {
|
|
104
|
+
const detail = (await r.json().catch(() => null)) as {
|
|
105
|
+
error?: { message?: string };
|
|
106
|
+
} | null;
|
|
105
107
|
window.alert(`Open in ${app} failed: ${detail?.error?.message ?? `HTTP ${r.status}`}`);
|
|
106
108
|
}
|
|
107
109
|
} catch (err) {
|
|
@@ -145,7 +147,17 @@ export function Access({ box }: { box: Box }) {
|
|
|
145
147
|
? 'Box is stopped — start to access'
|
|
146
148
|
: null;
|
|
147
149
|
const webReason = webUrl ? null : (unreachableReason ?? 'No web service exposed');
|
|
148
|
-
|
|
150
|
+
|
|
151
|
+
// A cloud box carries no static vncUrl — its signed preview URL expires — so
|
|
152
|
+
// link at the hub's own redirect, which mints one server-side on navigation.
|
|
153
|
+
// An <a href> navigates synchronously; a fetch-then-window.open would lose the
|
|
154
|
+
// user-activation token across the await and be popup-blocked.
|
|
155
|
+
const vncHref =
|
|
156
|
+
vncUrl ??
|
|
157
|
+
(box.vncEnabled && box.status === 'running'
|
|
158
|
+
? `/boxes/${encodeURIComponent(box.id)}/vnc`
|
|
159
|
+
: null);
|
|
160
|
+
const vncReason = vncHref
|
|
149
161
|
? null
|
|
150
162
|
: box.vncEnabled === false
|
|
151
163
|
? 'VNC is not enabled for this box'
|
|
@@ -153,7 +165,7 @@ export function Access({ box }: { box: Box }) {
|
|
|
153
165
|
|
|
154
166
|
// Hosted/remote profile with no reachable endpoint: everything would render
|
|
155
167
|
// permanently disabled — hide the card instead.
|
|
156
|
-
if (!supported && !webUrl && !
|
|
168
|
+
if (!supported && !webUrl && !vncHref) return null;
|
|
157
169
|
|
|
158
170
|
return (
|
|
159
171
|
<>
|
|
@@ -161,9 +173,9 @@ export function Access({ box }: { box: Box }) {
|
|
|
161
173
|
<Card className="divide-y divide-border/60 overflow-hidden">
|
|
162
174
|
<div className="flex flex-wrap items-center gap-3 px-4.5 p-3.5">
|
|
163
175
|
<div className="min-w-[150px] flex-1">
|
|
164
|
-
<div className="text-[13.5px] font-medium">{webUrl || !
|
|
176
|
+
<div className="text-[13.5px] font-medium">{webUrl || !vncHref ? 'Web' : 'VNC'}</div>
|
|
165
177
|
<div className="mt-0.5 break-all font-mono text-[11.5px] text-muted-foreground">
|
|
166
|
-
{webUrl ?? (
|
|
178
|
+
{webUrl ?? (vncHref ? 'Remote desktop' : webReason)}
|
|
167
179
|
</div>
|
|
168
180
|
</div>
|
|
169
181
|
<div className="flex flex-none flex-wrap gap-1.5">
|
|
@@ -181,18 +193,21 @@ export function Access({ box }: { box: Box }) {
|
|
|
181
193
|
</DisabledTip>
|
|
182
194
|
)}
|
|
183
195
|
{webUrl ? <CopyButton url={webUrl} /> : null}
|
|
184
|
-
{
|
|
196
|
+
{vncHref ? (
|
|
185
197
|
<Button
|
|
186
198
|
variant="outline"
|
|
187
199
|
size="sm"
|
|
188
|
-
href={
|
|
200
|
+
href={vncHref}
|
|
189
201
|
target="_blank"
|
|
190
202
|
rel="noreferrer"
|
|
191
203
|
onClick={() => {
|
|
192
204
|
// Fire-and-forget prep: point the in-box browser at the web
|
|
193
205
|
// app so the VNC desktop isn't a blank X screen. The link
|
|
194
206
|
// opens synchronously (no popup-blocker risk); Chromium
|
|
195
|
-
// appears in the view a moment later.
|
|
207
|
+
// appears in the view a moment later. Only needed on the
|
|
208
|
+
// static-URL path — the /boxes/:id/vnc redirect fires the same
|
|
209
|
+
// prep itself, and doing both would launch the browser twice.
|
|
210
|
+
if (!vncUrl) return;
|
|
196
211
|
void fetch(`/api/v1/boxes/${encodeURIComponent(box.id)}/screen`, {
|
|
197
212
|
method: 'POST',
|
|
198
213
|
credentials: 'same-origin',
|
|
@@ -216,7 +231,9 @@ export function Access({ box }: { box: Box }) {
|
|
|
216
231
|
<div className="flex flex-wrap items-center gap-3 px-4.5 p-3.5">
|
|
217
232
|
<div className="min-w-[150px] flex-1">
|
|
218
233
|
<div className="text-[13.5px] font-medium">Apps</div>
|
|
219
|
-
<div className="mt-0.5 text-[11.5px] text-muted-foreground">
|
|
234
|
+
<div className="mt-0.5 text-[11.5px] text-muted-foreground">
|
|
235
|
+
Open the box project from the host
|
|
236
|
+
</div>
|
|
220
237
|
</div>
|
|
221
238
|
<div className="flex flex-none flex-wrap justify-end gap-1.5">
|
|
222
239
|
{apps.map(({ app, label, icon, disabledReason }) => {
|
|
@@ -26,32 +26,38 @@ interface CredField {
|
|
|
26
26
|
optional?: boolean;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
optional: true,
|
|
51
|
-
},
|
|
52
|
-
],
|
|
29
|
+
/**
|
|
30
|
+
* Credential fields for a provider row, from the descriptor the API serves.
|
|
31
|
+
*
|
|
32
|
+
* This replaced a hardcoded per-provider table, which is what let a registered
|
|
33
|
+
* community provider render a correct form: the hub sends `credentials.fields`
|
|
34
|
+
* for built-ins and plugins alike. `PLACEHOLDERS` is cosmetic only — an example
|
|
35
|
+
* value AgentBox happens to know for a built-in — and its absence just means a
|
|
36
|
+
* plain input.
|
|
37
|
+
*
|
|
38
|
+
* A field with `optional` is one the form drops when left empty (blank means
|
|
39
|
+
* "leave as-is", never "clear"; clearing is a CLI `config unset`).
|
|
40
|
+
*/
|
|
41
|
+
const PLACEHOLDERS: Record<string, string> = {
|
|
42
|
+
'e2b.apiKey': 'e2b_…',
|
|
43
|
+
'daytona.apiKey': 'dtn_…',
|
|
44
|
+
'hetzner.token': 'project read+write token',
|
|
45
|
+
'vercel.token': 'vercel token',
|
|
46
|
+
'vercel.teamId': 'team_… (optional)',
|
|
47
|
+
'vercel.projectId': 'prj_… (optional)',
|
|
48
|
+
'digitalocean.token': 'personal access token (read+write)',
|
|
49
|
+
'digitalocean.project': 'name or UUID — blank leaves it unchanged',
|
|
53
50
|
};
|
|
54
51
|
|
|
52
|
+
function credFields(p: ProviderOption): CredField[] {
|
|
53
|
+
return (p.credentials?.fields ?? []).map((f) => ({
|
|
54
|
+
key: f.key,
|
|
55
|
+
label: f.label,
|
|
56
|
+
placeholder: PLACEHOLDERS[`${p.id}.${f.key}`] ?? f.hint,
|
|
57
|
+
optional: f.optional,
|
|
58
|
+
}));
|
|
59
|
+
}
|
|
60
|
+
|
|
55
61
|
export function ProvidersSection() {
|
|
56
62
|
const { state } = useStore();
|
|
57
63
|
// Base freshness (`baseStatus`) is off the getData()/SSE hot path — fetch it
|
|
@@ -143,7 +149,7 @@ const MASK = '••••••••••••';
|
|
|
143
149
|
|
|
144
150
|
function ProviderRow({ provider: p }: { provider: ProviderOption }) {
|
|
145
151
|
const router = useRouter();
|
|
146
|
-
const fields =
|
|
152
|
+
const fields = credFields(p);
|
|
147
153
|
// Required fields re-mask when emptied; optional ones (e.g. vercel team/project) don't.
|
|
148
154
|
const maskableKeys = new Set(fields.filter((f) => !f.optional).map((f) => f.key));
|
|
149
155
|
const [values, setValues] = useState<Record<string, string>>({});
|
|
@@ -236,7 +242,9 @@ function ProviderRow({ provider: p }: { provider: ProviderOption }) {
|
|
|
236
242
|
// alternative (proxying every action through this hub) would make two UIs
|
|
237
243
|
// responsible for one machine's state.
|
|
238
244
|
const onHub = p.origin === 'hub';
|
|
239
|
-
|
|
245
|
+
// A bake needs credentials only when the provider actually takes some. Gating
|
|
246
|
+
// on `id === 'docker'` left every credential-free plugin unbakeable.
|
|
247
|
+
const canBake = fields.length === 0 || p.hasCredentials;
|
|
240
248
|
const hasFields = fields.length > 0;
|
|
241
249
|
const expandable = !onHub && (hasFields || isRD);
|
|
242
250
|
|
|
@@ -1,15 +1,19 @@
|
|
|
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
|
-
import {
|
|
3
|
-
hashProjectPath,
|
|
4
|
-
isProviderKind
|
|
5
|
-
} from "./chunk-LPYK2354.js";
|
|
6
2
|
import {
|
|
7
3
|
deriveRepoLabel,
|
|
4
|
+
ensureProviderDescriptor,
|
|
8
5
|
isHubWorkerClone,
|
|
6
|
+
isSupportedApiVersion,
|
|
9
7
|
matchClaudeInstallFingerprint,
|
|
8
|
+
pluginForProvider,
|
|
9
|
+
pluginProviderNames,
|
|
10
10
|
readPreparedStateRaw,
|
|
11
11
|
writePreparedStateRaw
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GBYD2ODL.js";
|
|
13
|
+
import {
|
|
14
|
+
hashProjectPath,
|
|
15
|
+
isProviderKind
|
|
16
|
+
} from "./chunk-5ABFGGPT.js";
|
|
13
17
|
|
|
14
18
|
// lib/prepared-hydrate.ts
|
|
15
19
|
async function hydratePreparedFromCustody(custody, providerName, provider, claudeInstall, log) {
|
|
@@ -37,14 +41,15 @@ async function hydratePreparedFromCustody(custody, providerName, provider, claud
|
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
// lib/provider-importers.ts
|
|
44
|
+
import { pathToFileURL } from "node:url";
|
|
40
45
|
var IMPORTERS = {
|
|
41
|
-
docker: () => import("./dist-
|
|
42
|
-
daytona: () => import("./dist-
|
|
43
|
-
hetzner: () => import("./dist-
|
|
44
|
-
vercel: () => import("./dist-
|
|
45
|
-
e2b: () => import("./dist-
|
|
46
|
-
digitalocean: () => import("./dist-
|
|
47
|
-
"remote-docker": () => import("./dist-
|
|
46
|
+
docker: () => import("./dist-EGXZRZH2.js"),
|
|
47
|
+
daytona: () => import("./dist-R77W6WJ5.js"),
|
|
48
|
+
hetzner: () => import("./dist-TH2JZYZY.js"),
|
|
49
|
+
vercel: () => import("./dist-XPRGHQH2.js"),
|
|
50
|
+
e2b: () => import("./dist-EOGGFZZS.js"),
|
|
51
|
+
digitalocean: () => import("./dist-CMVSARW5.js"),
|
|
52
|
+
"remote-docker": () => import("./dist-37EKQ6RZ.js")
|
|
48
53
|
};
|
|
49
54
|
var CLOUD_BACKEND_LOADER_ID = "agentbox:hub-builtin-cloud-backends";
|
|
50
55
|
var cloudBackendLoader = {
|
|
@@ -56,8 +61,37 @@ var cloudBackendLoader = {
|
|
|
56
61
|
if (!isProviderKind(name)) return null;
|
|
57
62
|
return (await IMPORTERS[name]()).providerModule.backend ?? null;
|
|
58
63
|
},
|
|
59
|
-
loadCloudCp: async () => import("./dist-
|
|
64
|
+
loadCloudCp: async () => import("./dist-Z2Y5F7AF.js")
|
|
60
65
|
};
|
|
66
|
+
var runtimeImport = new Function("specifier", "return import(specifier);");
|
|
67
|
+
async function loadProviderModuleByName(name) {
|
|
68
|
+
if (isProviderKind(name)) return (await IMPORTERS[name]()).providerModule;
|
|
69
|
+
const plugin = pluginForProvider(name);
|
|
70
|
+
if (!plugin) {
|
|
71
|
+
throw new Error(
|
|
72
|
+
`unknown provider "${name}" \u2014 not built in and no registered plugin provides it (run \`agentbox plugin list\`)`
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
if (!isSupportedApiVersion(plugin.apiVersion)) {
|
|
76
|
+
throw new Error(
|
|
77
|
+
`plugin "${plugin.packageName}" targets provider SDK v${String(plugin.apiVersion)}, which this AgentBox does not support \u2014 update the plugin or AgentBox`
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
const mod = await runtimeImport(pathToFileURL(plugin.resolvedEntry).href);
|
|
81
|
+
const all = mod.providerModules ?? (mod.providerModule ? [mod.providerModule] : []);
|
|
82
|
+
const picked = all.find((pm) => pm.provider?.name === name);
|
|
83
|
+
if (!picked) {
|
|
84
|
+
throw new Error(
|
|
85
|
+
`plugin "${plugin.packageName}" does not export a providerModule for "${name}"`
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
void ensureProviderDescriptor(name, picked).catch(() => {
|
|
89
|
+
});
|
|
90
|
+
return picked;
|
|
91
|
+
}
|
|
92
|
+
function isRuntimeProviderName(name) {
|
|
93
|
+
return isProviderKind(name) || pluginProviderNames().includes(name);
|
|
94
|
+
}
|
|
61
95
|
|
|
62
96
|
// lib/boxes/project-key.ts
|
|
63
97
|
import path from "node:path";
|
|
@@ -73,7 +107,8 @@ function registrationProjectKey(reg) {
|
|
|
73
107
|
|
|
74
108
|
export {
|
|
75
109
|
hydratePreparedFromCustody,
|
|
76
|
-
IMPORTERS,
|
|
77
110
|
cloudBackendLoader,
|
|
111
|
+
loadProviderModuleByName,
|
|
112
|
+
isRuntimeProviderName,
|
|
78
113
|
registrationProjectKey
|
|
79
114
|
};
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
registryRefForSha,
|
|
10
10
|
resolveContextFilesFrom,
|
|
11
11
|
writePreparedStateRaw
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GBYD2ODL.js";
|
|
13
13
|
import {
|
|
14
14
|
execa
|
|
15
15
|
} from "./chunk-EFW34I43.js";
|
|
16
16
|
|
|
17
|
-
// ../../packages/sandbox-docker/dist/chunk-
|
|
17
|
+
// ../../packages/sandbox-docker/dist/chunk-EAAMZ4OS.js
|
|
18
18
|
import { dirname as dirname2, resolve as resolve2 } from "path";
|
|
19
19
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
20
20
|
import { existsSync } from "fs";
|
|
@@ -59,10 +59,13 @@ var realRunner = async (file, args, opts) => {
|
|
|
59
59
|
};
|
|
60
60
|
async function loginToGhcrWithGh(opts = {}) {
|
|
61
61
|
const run = opts.run ?? realRunner;
|
|
62
|
-
const tok = await run("gh", ["auth", "token"]);
|
|
62
|
+
const tok = await run("gh", ["auth", "token", "--hostname", "github.com"]);
|
|
63
63
|
const token = tok.stdout.trim();
|
|
64
64
|
if (tok.exitCode !== 0 || token.length === 0) {
|
|
65
|
-
return {
|
|
65
|
+
return {
|
|
66
|
+
ok: false,
|
|
67
|
+
reason: "no github.com `gh` token on this machine (run `gh auth login --hostname github.com`)"
|
|
68
|
+
};
|
|
66
69
|
}
|
|
67
70
|
const scopes = await (opts.fetchScopes ?? fetchTokenScopes)(token);
|
|
68
71
|
if (scopes.length > 0 && !scopes.includes(PACKAGE_READ_SCOPE)) {
|
|
@@ -97,7 +100,7 @@ async function fetchTokenScopes(token) {
|
|
|
97
100
|
var DEFAULT_BOX_IMAGE = "agentbox/box:dev";
|
|
98
101
|
async function resolveClaudeInstallMode() {
|
|
99
102
|
try {
|
|
100
|
-
const { loadEffectiveConfig } = await import("./dist-
|
|
103
|
+
const { loadEffectiveConfig } = await import("./dist-CGH7PEMZ.js");
|
|
101
104
|
const cfg = await loadEffectiveConfig(process.cwd());
|
|
102
105
|
return cfg.effective.box.claudeInstall;
|
|
103
106
|
} catch {
|
|
@@ -212,7 +215,7 @@ async function buildImage(opts = {}) {
|
|
|
212
215
|
return ref;
|
|
213
216
|
}
|
|
214
217
|
async function pullOrBuild(ref, fingerprint, opts = {}) {
|
|
215
|
-
const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-
|
|
218
|
+
const { writePreparedDockerState: writePreparedDockerState2 } = await import("./prepared-state-LNQ7DYSU-ABC2EQVI.js");
|
|
216
219
|
const registry = opts.registry ?? BOX_IMAGE_REGISTRY;
|
|
217
220
|
const allowPull = opts.allowPull !== false;
|
|
218
221
|
if (allowPull && registry && fingerprint) {
|
|
@@ -265,7 +268,7 @@ async function pullOrBuild(ref, fingerprint, opts = {}) {
|
|
|
265
268
|
return { source: "built" };
|
|
266
269
|
}
|
|
267
270
|
async function ensureImage(ref = DEFAULT_BOX_IMAGE, opts = {}) {
|
|
268
|
-
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-
|
|
271
|
+
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2, preparedMatches: preparedMatches2 } = await import("./prepared-state-LNQ7DYSU-ABC2EQVI.js");
|
|
269
272
|
const claudeInstall = opts.claudeInstall ?? await resolveClaudeInstallMode();
|
|
270
273
|
const rawFingerprint = await computeDockerContextFingerprint2({
|
|
271
274
|
contextDir: opts.contextDir
|
|
@@ -319,7 +322,7 @@ function classifyDockerBaseFreshness(input) {
|
|
|
319
322
|
return { state: "fresh" };
|
|
320
323
|
}
|
|
321
324
|
async function evaluateDockerBaseFreshness(opts = {}) {
|
|
322
|
-
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-
|
|
325
|
+
const { computeDockerContextFingerprint: computeDockerContextFingerprint2, readPreparedDockerState: readPreparedDockerState2 } = await import("./prepared-state-LNQ7DYSU-ABC2EQVI.js");
|
|
323
326
|
const ref = opts.ref ?? DEFAULT_BOX_IMAGE;
|
|
324
327
|
const imagePresent = await imageExists(ref);
|
|
325
328
|
if (!imagePresent) return { state: "unprepared" };
|