@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
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
isProviderKind
|
|
5
|
-
} from "./chunk-NHVGKFVY.js";
|
|
6
|
-
import {
|
|
3
|
+
ensureProviderDescriptor,
|
|
7
4
|
isSupportedApiVersion,
|
|
8
5
|
pluginForProvider,
|
|
9
6
|
pluginProviderNames
|
|
10
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XENTK32L.js";
|
|
8
|
+
import {
|
|
9
|
+
PROVIDER_NAMES,
|
|
10
|
+
isProviderKind
|
|
11
|
+
} from "./chunk-7LNXTPEE.js";
|
|
11
12
|
|
|
12
13
|
// src/provider/loaders.ts
|
|
13
14
|
import { pathToFileURL } from "url";
|
|
14
15
|
var IMPORTERS = {
|
|
15
|
-
docker: () => import("./dist-
|
|
16
|
-
daytona: () => import("./dist-
|
|
17
|
-
hetzner: () => import("./dist-
|
|
18
|
-
vercel: () => import("./dist-
|
|
19
|
-
e2b: () => import("./dist-
|
|
20
|
-
digitalocean: () => import("./dist-
|
|
21
|
-
"remote-docker": () => import("./dist-
|
|
16
|
+
docker: () => import("./dist-C5B6NGBO.js"),
|
|
17
|
+
daytona: () => import("./dist-NFF2KEMB.js"),
|
|
18
|
+
hetzner: () => import("./dist-NTUHJOK3.js"),
|
|
19
|
+
vercel: () => import("./dist-Z2TPC3EN.js"),
|
|
20
|
+
e2b: () => import("./dist-E5EXDZG4.js"),
|
|
21
|
+
digitalocean: () => import("./dist-XUOHE22G.js"),
|
|
22
|
+
"remote-docker": () => import("./dist-Q4UDCSZQ.js")
|
|
22
23
|
};
|
|
23
24
|
function pickProviderModule(mod, name) {
|
|
24
25
|
const m = mod;
|
|
@@ -47,6 +48,8 @@ async function loadProviderModule(name) {
|
|
|
47
48
|
`plugin "${plugin.packageName}" does not export a providerModule for "${name}"`
|
|
48
49
|
);
|
|
49
50
|
}
|
|
51
|
+
void ensureProviderDescriptor(name, providerModule).catch(() => {
|
|
52
|
+
});
|
|
50
53
|
return providerModule;
|
|
51
54
|
}
|
|
52
55
|
function getRuntimeProviderNames() {
|
|
@@ -61,4 +64,4 @@ export {
|
|
|
61
64
|
getRuntimeProviderNames,
|
|
62
65
|
isRuntimeProvider
|
|
63
66
|
};
|
|
64
|
-
//# sourceMappingURL=chunk-
|
|
67
|
+
//# sourceMappingURL=chunk-I7BSBUPC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/provider/loaders.ts"],"sourcesContent":["/**\n * Per-provider lazy module loaders — the ONE place the CLI enumerates the\n * `@agentbox/sandbox-<name>` packages.\n *\n * Each package exposes a uniform `providerModule` (see `ProviderModule` in\n * `@agentbox/sandbox-core`); the create / doctor / install / checkpoint code\n * all resolve a provider through `loadProviderModule` and drive it generically,\n * so those call sites carry no per-provider `switch`.\n *\n * The `import()` specifiers are LITERAL — one arm per provider — on purpose.\n * The CLI's tsup build inlines every `@agentbox/sandbox-*` package\n * (`noExternal: [/^@agentbox\\//]`), which requires esbuild to statically\n * resolve each specifier; a runtime-variable `import('@agentbox/sandbox-' +\n * name)` would not inline and would `MODULE_NOT_FOUND` in the published CLI.\n * `Record<ProviderKind, …>` makes this map exhaustive: adding a provider to the\n * config `PROVIDERS` table forces a matching entry here (a TS error otherwise).\n *\n * Second consumer: `src/relay/cloud-backends.ts` re-exports this map's cloud\n * backends as the loader the spawned relay side-loads, so the literal-specifier\n * rule above is what keeps cloud `git push` working in a published install.\n */\n\nimport { pathToFileURL } from 'node:url';\nimport { PROVIDER_NAMES, isProviderKind, type ProviderKind } from '@agentbox/config';\nimport {\n ensureProviderDescriptor,\n pluginForProvider,\n pluginProviderNames,\n isSupportedApiVersion,\n type ProviderModule,\n} from '@agentbox/sandbox-core';\n\nconst IMPORTERS: Record<ProviderKind, () => Promise<{ providerModule: ProviderModule }>> = {\n docker: () => import('@agentbox/sandbox-docker'),\n daytona: () => import('@agentbox/sandbox-daytona'),\n hetzner: () => import('@agentbox/sandbox-hetzner'),\n vercel: () => import('@agentbox/sandbox-vercel'),\n e2b: () => import('@agentbox/sandbox-e2b'),\n digitalocean: () => import('@agentbox/sandbox-digitalocean'),\n 'remote-docker': () => import('@agentbox/sandbox-remote-docker'),\n};\n\n/**\n * Extract the `providerModule` matching `name` from an already-imported plugin\n * package. A plugin may export a single `providerModule` or a `providerModules`\n * array (multi-provider package).\n */\nfunction pickProviderModule(mod: unknown, name: string): ProviderModule | null {\n const m = mod as { providerModule?: ProviderModule; providerModules?: ProviderModule[] };\n const all = m.providerModules ?? (m.providerModule ? [m.providerModule] : []);\n // Strict match on provider.name — never fall back to all[0], or a package\n // could serve the WRONG provider for a mismatched `--provider` name.\n return all.find((pm) => pm.provider?.name === name) ?? null;\n}\n\n/**\n * Lazily import a provider package and return its uniform `providerModule`.\n *\n * Built-in providers resolve through the literal-specifier `IMPORTERS` map\n * (bundle-inlined). An unknown name falls back to the plugin registry: a TRUE\n * variable `import(resolvedEntry)` of the externally-installed package — NOT\n * inlined at build time, resolved from wherever the user installed it.\n */\nexport async function loadProviderModule(name: string): Promise<ProviderModule> {\n if (isProviderKind(name)) {\n return (await IMPORTERS[name]()).providerModule;\n }\n const plugin = pluginForProvider(name);\n if (!plugin) {\n throw new Error(\n `unknown provider \"${name}\" — not built in and no registered plugin provides it (run \\`agentbox plugin list\\`)`,\n );\n }\n if (!isSupportedApiVersion(plugin.apiVersion)) {\n throw new Error(\n `plugin \"${plugin.packageName}\" targets provider SDK v${String(plugin.apiVersion)}, which this AgentBox does not support — update the plugin or AgentBox`,\n );\n }\n // Variable specifier on purpose: this is the extension seam. esbuild leaves it\n // as a runtime import so an externally-installed package resolves at run time.\n // Convert to a file:// URL — a bare absolute path is not a valid ESM dynamic\n // import specifier on Windows / some Node setups.\n const mod = (await import(pathToFileURL(plugin.resolvedEntry).href)) as unknown;\n const providerModule = pickProviderModule(mod, name);\n if (!providerModule) {\n throw new Error(\n `plugin \"${plugin.packageName}\" does not export a providerModule for \"${name}\"`,\n );\n }\n // Back-fill the descriptor snapshot for a plugin registered before descriptors\n // existed (a v1 plugins.json) — we hold the module here, which is the only\n // moment deriving one is free. Deliberately NOT awaited: it is a cache write\n // whose only cost when lost is another derivation later, so it must never add\n // latency or a new failure mode to loading a provider.\n void ensureProviderDescriptor(name, providerModule).catch(() => {});\n return providerModule;\n}\n\n/** Built-in + registered-plugin provider names (deduped). */\nexport function getRuntimeProviderNames(): string[] {\n return [...new Set<string>([...PROVIDER_NAMES, ...pluginProviderNames()])];\n}\n\n/** True if `name` is a built-in provider or a registered plugin provider. */\nexport function isRuntimeProvider(name: string): boolean {\n return isProviderKind(name) || pluginProviderNames().includes(name);\n}\n"],"mappings":";;;;;;;;;;;;;AAsBA,SAAS,qBAAqB;AAU9B,IAAM,YAAqF;AAAA,EACzF,QAAQ,MAAM,OAAO,oBAA0B;AAAA,EAC/C,SAAS,MAAM,OAAO,oBAA2B;AAAA,EACjD,SAAS,MAAM,OAAO,oBAA2B;AAAA,EACjD,QAAQ,MAAM,OAAO,oBAA0B;AAAA,EAC/C,KAAK,MAAM,OAAO,oBAAuB;AAAA,EACzC,cAAc,MAAM,OAAO,oBAAgC;AAAA,EAC3D,iBAAiB,MAAM,OAAO,oBAAiC;AACjE;AAOA,SAAS,mBAAmB,KAAc,MAAqC;AAC7E,QAAM,IAAI;AACV,QAAM,MAAM,EAAE,oBAAoB,EAAE,iBAAiB,CAAC,EAAE,cAAc,IAAI,CAAC;AAG3E,SAAO,IAAI,KAAK,CAAC,OAAO,GAAG,UAAU,SAAS,IAAI,KAAK;AACzD;AAUA,eAAsB,mBAAmB,MAAuC;AAC9E,MAAI,eAAe,IAAI,GAAG;AACxB,YAAQ,MAAM,UAAU,IAAI,EAAE,GAAG;AAAA,EACnC;AACA,QAAM,SAAS,kBAAkB,IAAI;AACrC,MAAI,CAAC,QAAQ;AACX,UAAM,IAAI;AAAA,MACR,qBAAqB,IAAI;AAAA,IAC3B;AAAA,EACF;AACA,MAAI,CAAC,sBAAsB,OAAO,UAAU,GAAG;AAC7C,UAAM,IAAI;AAAA,MACR,WAAW,OAAO,WAAW,2BAA2B,OAAO,OAAO,UAAU,CAAC;AAAA,IACnF;AAAA,EACF;AAKA,QAAM,MAAO,MAAM,OAAO,cAAc,OAAO,aAAa,EAAE;AAC9D,QAAM,iBAAiB,mBAAmB,KAAK,IAAI;AACnD,MAAI,CAAC,gBAAgB;AACnB,UAAM,IAAI;AAAA,MACR,WAAW,OAAO,WAAW,2CAA2C,IAAI;AAAA,IAC9E;AAAA,EACF;AAMA,OAAK,yBAAyB,MAAM,cAAc,EAAE,MAAM,MAAM;AAAA,EAAC,CAAC;AAClE,SAAO;AACT;AAGO,SAAS,0BAAoC;AAClD,SAAO,CAAC,GAAG,oBAAI,IAAY,CAAC,GAAG,gBAAgB,GAAG,oBAAoB,CAAC,CAAC,CAAC;AAC3E;AAGO,SAAS,kBAAkB,MAAuB;AACvD,SAAO,eAAe,IAAI,KAAK,oBAAoB,EAAE,SAAS,IAAI;AACpE;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
// ../../packages/relay/dist/chunk-
|
|
3
|
+
// ../../packages/relay/dist/chunk-Q5KIPAZI.js
|
|
4
4
|
import { request as httpRequest } from "http";
|
|
5
5
|
import { request as httpsRequest } from "https";
|
|
6
6
|
import { setTimeout as delay } from "timers/promises";
|
|
@@ -49,6 +49,15 @@ var CloudBoxPoller = class {
|
|
|
49
49
|
currentPreviewUrl;
|
|
50
50
|
/** Guards against recovery storms — at most one recovery attempt in flight. */
|
|
51
51
|
recovering = null;
|
|
52
|
+
/**
|
|
53
|
+
* The in-flight `/bridge/poll` request, so {@link stop} can abort it instead
|
|
54
|
+
* of waiting it out. Without this, `stop()` blocks for the remainder of the
|
|
55
|
+
* current long-poll — measured at **26s** against a bridge that never answers
|
|
56
|
+
* — and on an auto-resuming backend (e2b) that late request revives the very
|
|
57
|
+
* box the caller just paused. A healthy bridge answers in milliseconds, so
|
|
58
|
+
* this matters exactly when the box is slow or wedged.
|
|
59
|
+
*/
|
|
60
|
+
inFlight = null;
|
|
52
61
|
start() {
|
|
53
62
|
if (this.loopPromise) return;
|
|
54
63
|
this.loopPromise = this.run().catch((err) => {
|
|
@@ -57,6 +66,8 @@ var CloudBoxPoller = class {
|
|
|
57
66
|
}
|
|
58
67
|
async stop() {
|
|
59
68
|
this.stopped = true;
|
|
69
|
+
this.inFlight?.destroy();
|
|
70
|
+
this.inFlight = null;
|
|
60
71
|
if (this.loopPromise) await this.loopPromise;
|
|
61
72
|
}
|
|
62
73
|
/**
|
|
@@ -150,6 +161,7 @@ var CloudBoxPoller = class {
|
|
|
150
161
|
this.cursor = body.cursor;
|
|
151
162
|
}
|
|
152
163
|
} catch (err) {
|
|
164
|
+
if (this.stopped) return;
|
|
153
165
|
const msg = err instanceof Error ? err.message : String(err);
|
|
154
166
|
if (msg.includes("\u2192 504") || msg.includes("504:")) {
|
|
155
167
|
this.fastModePolls = FAST_MODE_DECAY_POLLS;
|
|
@@ -244,7 +256,15 @@ var CloudBoxPoller = class {
|
|
|
244
256
|
res.on("error", reject);
|
|
245
257
|
}
|
|
246
258
|
);
|
|
247
|
-
|
|
259
|
+
this.inFlight = req;
|
|
260
|
+
const done = () => {
|
|
261
|
+
if (this.inFlight === req) this.inFlight = null;
|
|
262
|
+
};
|
|
263
|
+
req.on("close", done);
|
|
264
|
+
req.on("error", (err) => {
|
|
265
|
+
done();
|
|
266
|
+
reject(err);
|
|
267
|
+
});
|
|
248
268
|
req.on("timeout", () => {
|
|
249
269
|
req.destroy();
|
|
250
270
|
reject(new Error("bridge/poll timeout"));
|
|
@@ -285,4 +305,4 @@ export {
|
|
|
285
305
|
CloudBoxPoller,
|
|
286
306
|
CloudBoxPollers
|
|
287
307
|
};
|
|
288
|
-
//# sourceMappingURL=chunk-
|
|
308
|
+
//# sourceMappingURL=chunk-MNDKP4VS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../packages/relay/src/cloud-poller.ts"],"sourcesContent":["/**\n * `CloudBoxPoller` — host-resident loop that drains a cloud box's in-sandbox\n * relay over its Daytona preview URL. One poller per cloud box, owned by the\n * host relay process (so status / autopause behave the same whether or not a\n * CLI is attached, matching the Docker model).\n *\n * v0 responsibility: pull `/bridge/poll`, forward events + status into the\n * host relay's stores. Executing drained `HostAction`s (real `git push` on\n * the host, with `askPrompt` gating) and posting results back is the next\n * layer, tracked alongside Phase 4's host-RPC execution.\n */\n\nimport { request as httpRequest, type ClientRequest } from 'node:http';\nimport { request as httpsRequest } from 'node:https';\nimport { setTimeout as delay } from 'node:timers/promises';\nimport type {\n BridgeActionResultBody,\n BridgePollResponse,\n HostAction,\n HostActionResult,\n RelayEvent,\n} from './types.js';\n\nexport interface CloudBoxPollerDeps {\n boxId: string;\n /** Preview URL of the in-sandbox relay's `/bridge/*` surface. */\n previewUrl: string;\n /** Bearer for `/bridge/*` auth (Daytona's `x-daytona-preview-token` is added separately when known). */\n bridgeToken: string;\n /** Optional Daytona preview token header for the proxy layer. */\n previewToken?: string;\n /** Fired for each batch of new events drained from the box. */\n onEvents?: (events: RelayEvent[]) => void;\n /** Fired when a new box-status snapshot is observed. */\n onStatus?: (status: unknown) => void;\n /**\n * Fired for each parked host action the box wants the host to execute.\n * The `respond` callback POSTs back to `/bridge/action-result` and\n * unblocks the in-box `/rpc` caller — the handler MUST call it (with a\n * non-zero exitCode and stderr message even when the host can't execute\n * the action) so the box never hangs.\n */\n onAction?: (\n action: HostAction,\n respond: (result: HostActionResult) => Promise<void>,\n ) => Promise<void> | void;\n /**\n * Optional: called when the poller observes a connection-level failure\n * (ECONNREFUSED, ENOTFOUND, etc.) on `previewUrl`. Should re-establish\n * whatever underlying transport powers the URL (e.g. reopen an SSH\n * ControlMaster + re-mint its `-L` forward) and return the (possibly new)\n * URL the poller should use from here on. Return `null`/`undefined` to\n * keep the current URL.\n *\n * Use case: Hetzner's preview URLs are SSH `-L` forwards. If the\n * ControlMaster dies (host sleep/wake, network blip), the local port\n * stops listening — without this callback the poller would back off\n * forever against a dead `127.0.0.1:<localPort>`. Daytona's preview is a\n * permanent CloudFront alias and doesn't need this.\n */\n recoverPreviewUrl?: () => Promise<string | null | undefined>;\n logger?: (line: string) => void;\n}\n\nconst BACKOFF_BASE_MS = 1500;\nconst BACKOFF_MAX_MS = 30_000;\n/**\n * Default request timeout. Daytona's CloudFront edge sits in front of the\n * in-sandbox relay and 504s once its idle window expires (~25-30s in\n * practice). Keep the default a hair below that so the poller's timer\n * fires before CloudFront's does, then short-cycle aggressively when we\n * actually see a 504 — see {@link FAST_REQUEST_TIMEOUT_MS}.\n */\nconst REQUEST_TIMEOUT_MS = 25_000;\n/**\n * Faster timeout used after a recent 504 response. Cuts the request short\n * enough that we round-trip multiple times in the same window where the\n * edge proxy would otherwise wedge — recovers throughput quickly when the\n * box is healthy but the edge is flaky.\n */\nconst FAST_REQUEST_TIMEOUT_MS = 8_000;\n/**\n * Number of consecutive non-504 polls before reverting from the fast\n * timeout back to the default. Decays naturally; no separate timer.\n */\nconst FAST_MODE_DECAY_POLLS = 5;\nconst STOPPED_TICK_MS = 250;\n\n/**\n * True for connection-level failures — the local transport behind\n * `previewUrl` is dead (refused, no route, no DNS, host unreachable),\n * not a remote 5xx or a logical error. These are the cases where calling\n * `recoverPreviewUrl` (e.g. Hetzner's SSH tunnel reopen) has a chance of\n * actually fixing anything.\n */\nfunction isConnectionLevelError(err: unknown): boolean {\n const code = (err as NodeJS.ErrnoException | undefined)?.code;\n if (code && CONNECTION_LEVEL_CODES.has(code)) return true;\n const msg = err instanceof Error ? err.message : String(err);\n // node:http surfaces the underlying error message rather than a code on\n // some failure paths — match the well-known signatures too.\n return /\\b(ECONNREFUSED|ENOTFOUND|EHOSTUNREACH|ECONNRESET|EPIPE)\\b/.test(msg);\n}\nconst CONNECTION_LEVEL_CODES = new Set([\n 'ECONNREFUSED',\n 'ENOTFOUND',\n 'EHOSTUNREACH',\n 'ECONNRESET',\n 'EPIPE',\n]);\n\nexport class CloudBoxPoller {\n private stopped = false;\n private cursor = 0;\n private currentBackoffMs = 0;\n private loopPromise: Promise<void> | null = null;\n /**\n * Counts down from {@link FAST_MODE_DECAY_POLLS} after each 504. While > 0\n * the next poll uses {@link FAST_REQUEST_TIMEOUT_MS}. Successful polls\n * decrement, so a flaky edge converges back to the default timeout\n * within ~5 successful round-trips.\n */\n private fastModePolls = 0;\n /**\n * Mutable copy of `deps.previewUrl`. We don't read `deps.previewUrl`\n * directly after construction because `recoverPreviewUrl` may hand us a\n * new URL (e.g. Hetzner reopens its SSH ControlMaster and the `-L`\n * forward gets a new ephemeral local port).\n */\n private currentPreviewUrl: string;\n /** Guards against recovery storms — at most one recovery attempt in flight. */\n private recovering: Promise<void> | null = null;\n /**\n * The in-flight `/bridge/poll` request, so {@link stop} can abort it instead\n * of waiting it out. Without this, `stop()` blocks for the remainder of the\n * current long-poll — measured at **26s** against a bridge that never answers\n * — and on an auto-resuming backend (e2b) that late request revives the very\n * box the caller just paused. A healthy bridge answers in milliseconds, so\n * this matters exactly when the box is slow or wedged.\n */\n private inFlight: ClientRequest | null = null;\n\n constructor(private readonly deps: CloudBoxPollerDeps) {\n this.currentPreviewUrl = deps.previewUrl;\n }\n\n start(): void {\n if (this.loopPromise) return;\n this.loopPromise = this.run().catch((err) => {\n this.log(`poller crashed: ${err instanceof Error ? err.message : String(err)}`);\n });\n }\n\n async stop(): Promise<void> {\n this.stopped = true;\n // Abort the in-flight poll rather than waiting it out. `run()` treats an\n // abort after `stopped` as a normal shutdown, not a poll error.\n this.inFlight?.destroy();\n this.inFlight = null;\n if (this.loopPromise) await this.loopPromise;\n }\n\n /**\n * Post a `HostActionResult` back to the in-sandbox relay's\n * `/bridge/action-result`. The matching parked `/rpc` Promise resolves\n * and the in-box agent finally sees the answer.\n */\n async respond(actionId: string, result: HostActionResult): Promise<void> {\n const base = this.currentPreviewUrl.replace(/\\/+$/, '');\n const url = new URL(`${base}/bridge/action-result`);\n const isHttps = url.protocol === 'https:';\n const transport = isHttps ? httpsRequest : httpRequest;\n const port = url.port.length > 0 ? Number.parseInt(url.port, 10) : isHttps ? 443 : 80;\n const body: BridgeActionResultBody = {\n id: actionId,\n exitCode: result.exitCode,\n stdout: result.stdout,\n stderr: result.stderr,\n };\n const payload = JSON.stringify(body);\n await new Promise<void>((resolve, reject) => {\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json',\n 'Content-Length': Buffer.byteLength(payload).toString(),\n Authorization: `Bearer ${this.deps.bridgeToken}`,\n };\n if (this.deps.previewToken) {\n headers['x-daytona-preview-token'] = this.deps.previewToken;\n }\n const req = transport(\n {\n host: url.hostname,\n port,\n method: 'POST',\n path: url.pathname,\n headers,\n timeout: REQUEST_TIMEOUT_MS,\n },\n (res) => {\n res.resume();\n if ((res.statusCode ?? 0) >= 200 && (res.statusCode ?? 0) < 300) resolve();\n else reject(new Error(`bridge/action-result → ${String(res.statusCode)}`));\n },\n );\n req.on('error', reject);\n req.on('timeout', () => {\n req.destroy();\n reject(new Error('bridge/action-result timeout'));\n });\n req.write(payload);\n req.end();\n });\n }\n\n private log(line: string): void {\n this.deps.logger?.(`[cloud-poller ${this.deps.boxId}] ${line}`);\n }\n\n private async run(): Promise<void> {\n while (!this.stopped) {\n try {\n const body = await this.pollOnce();\n this.currentBackoffMs = 0;\n if (body.events.length > 0) this.deps.onEvents?.(body.events);\n if (body.status != null) this.deps.onStatus?.(body.status);\n for (const action of body.actions) {\n // Fire-and-forget — the action executor either runs inline (v0) or\n // hands the action to its own queue (Phase 4 executor). Failures\n // there are not the poller's concern (but they MUST still respond\n // so the in-box RPC unblocks, hence the fallback below).\n try {\n const respond = (r: HostActionResult): Promise<void> => this.respond(action.id, r);\n if (this.deps.onAction) {\n await this.deps.onAction(action, respond);\n } else {\n await respond({\n exitCode: 1,\n stdout: '',\n stderr: `host has no executor for action '${action.method}'\\n`,\n });\n }\n } catch (err) {\n this.log(`action handler error: ${err instanceof Error ? err.message : String(err)}`);\n // Best-effort: tell the box we failed so its /rpc unblocks.\n try {\n await this.respond(action.id, {\n exitCode: 1,\n stdout: '',\n stderr: `host action handler crashed: ${err instanceof Error ? err.message : String(err)}\\n`,\n });\n } catch {\n // ignore\n }\n }\n }\n if (typeof body.cursor === 'number' && body.cursor > this.cursor) {\n this.cursor = body.cursor;\n }\n } catch (err) {\n // `stop()` destroys the in-flight request; that surfaces here as a\n // socket error. It's a clean shutdown, not a poll failure — logging it\n // would cry wolf on every pause, and falling through to the backoff /\n // preview-URL recovery below would be actively wrong.\n if (this.stopped) return;\n const msg = err instanceof Error ? err.message : String(err);\n if (msg.includes('→ 504') || msg.includes('504:')) {\n // Edge proxy timeout — the box is likely fine; arm fast-mode so the\n // next polls clip the request short of the next 504 window.\n this.fastModePolls = FAST_MODE_DECAY_POLLS;\n }\n this.log(`poll error: ${msg}`);\n // A connection-level failure (`ECONNREFUSED`/`ENOTFOUND`/`EHOSTUNREACH`)\n // usually means the transport behind `currentPreviewUrl` is dead, not\n // that the box went away. Hetzner's SSH `-L` forward stops listening\n // when the ControlMaster dies (host sleep/wake, network blip); the\n // recovery hook reopens it and hands us a fresh URL.\n if (this.deps.recoverPreviewUrl && isConnectionLevelError(err)) {\n await this.tryRecoverPreviewUrl();\n }\n await this.backoff();\n }\n // Successful poll decays fast-mode toward the default timeout.\n if (this.currentBackoffMs === 0 && this.fastModePolls > 0) {\n this.fastModePolls -= 1;\n }\n // Tight loop only when we got something fresh — otherwise yield briefly\n // so we don't spin under a misbehaving preview proxy.\n if (this.currentBackoffMs === 0) await delay(STOPPED_TICK_MS);\n }\n }\n\n private async backoff(): Promise<void> {\n this.currentBackoffMs =\n this.currentBackoffMs === 0\n ? BACKOFF_BASE_MS\n : Math.min(this.currentBackoffMs * 2, BACKOFF_MAX_MS);\n await delay(this.currentBackoffMs);\n }\n\n private async tryRecoverPreviewUrl(): Promise<void> {\n if (!this.deps.recoverPreviewUrl) return;\n // De-dupe: a poll storm shouldn't spawn N parallel recoveries.\n if (this.recovering) {\n await this.recovering;\n return;\n }\n this.recovering = (async () => {\n try {\n const next = await this.deps.recoverPreviewUrl!();\n if (typeof next === 'string' && next.length > 0 && next !== this.currentPreviewUrl) {\n this.log(`preview URL recovered: ${this.currentPreviewUrl} → ${next}`);\n this.currentPreviewUrl = next;\n // Drop the backoff so the next loop iteration retries immediately\n // against the fresh URL.\n this.currentBackoffMs = 0;\n } else if (typeof next === 'string' && next === this.currentPreviewUrl) {\n this.log('preview URL recovered (unchanged)');\n this.currentBackoffMs = 0;\n }\n } catch (err) {\n this.log(`preview URL recover failed: ${err instanceof Error ? err.message : String(err)}`);\n } finally {\n this.recovering = null;\n }\n })();\n await this.recovering;\n }\n\n private async pollOnce(): Promise<BridgePollResponse> {\n const base = this.currentPreviewUrl.replace(/\\/+$/, '');\n const url = new URL(`${base}/bridge/poll?since=${String(this.cursor)}`);\n const isHttps = url.protocol === 'https:';\n const transport = isHttps ? httpsRequest : httpRequest;\n const port = url.port.length > 0 ? Number.parseInt(url.port, 10) : isHttps ? 443 : 80;\n const timeoutMs = this.fastModePolls > 0 ? FAST_REQUEST_TIMEOUT_MS : REQUEST_TIMEOUT_MS;\n\n return new Promise<BridgePollResponse>((resolve, reject) => {\n const headers: Record<string, string> = {\n Authorization: `Bearer ${this.deps.bridgeToken}`,\n Accept: 'application/json',\n };\n if (this.deps.previewToken) {\n headers['x-daytona-preview-token'] = this.deps.previewToken;\n }\n const req = transport(\n {\n host: url.hostname,\n port,\n method: 'GET',\n path: `${url.pathname}${url.search}`,\n headers,\n timeout: timeoutMs,\n },\n (res) => {\n const status = res.statusCode ?? 0;\n const chunks: Buffer[] = [];\n res.on('data', (c: Buffer) => chunks.push(c));\n res.on('end', () => {\n const text = Buffer.concat(chunks).toString('utf8');\n if (status < 200 || status >= 300) {\n reject(new Error(`bridge/poll → ${String(status)}: ${text.slice(0, 200)}`));\n return;\n }\n try {\n const parsed = JSON.parse(text) as Partial<BridgePollResponse>;\n resolve({\n actions: Array.isArray(parsed.actions) ? (parsed.actions as HostAction[]) : [],\n events: Array.isArray(parsed.events) ? (parsed.events as RelayEvent[]) : [],\n status: parsed.status ?? null,\n cursor: typeof parsed.cursor === 'number' ? parsed.cursor : this.cursor,\n });\n } catch (err) {\n reject(err instanceof Error ? err : new Error(String(err)));\n }\n });\n res.on('error', reject);\n },\n );\n this.inFlight = req;\n const done = (): void => {\n if (this.inFlight === req) this.inFlight = null;\n };\n req.on('close', done);\n req.on('error', (err) => {\n done();\n reject(err);\n });\n req.on('timeout', () => {\n req.destroy();\n reject(new Error('bridge/poll timeout'));\n });\n req.end();\n });\n }\n}\n\n/**\n * Lifecycle helper: keep one poller per cloud box, start on register, stop on\n * forget. The host relay's `BoxRegistry` knows nothing about pollers; this\n * type sits alongside it.\n */\nexport class CloudBoxPollers {\n private readonly map = new Map<string, CloudBoxPoller>();\n\n /** Idempotent: replacing an existing poller for a box stops the old one first. */\n start(boxId: string, deps: CloudBoxPollerDeps): void {\n const existing = this.map.get(boxId);\n if (existing) {\n void existing.stop();\n }\n const poller = new CloudBoxPoller(deps);\n this.map.set(boxId, poller);\n poller.start();\n }\n\n async stop(boxId: string): Promise<void> {\n const p = this.map.get(boxId);\n if (!p) return;\n this.map.delete(boxId);\n await p.stop();\n }\n\n async stopAll(): Promise<void> {\n const ps = [...this.map.values()];\n this.map.clear();\n await Promise.all(ps.map((p) => p.stop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tB,YAAI,QAAQ;AACZ,eAAO,IAAI,MAAM,qBAAqB,CAAC;MACzC,CAAC;AACD,UAAI,IAAI;IACV,CAAC;EACH;AACF;AAOO,IAAM,kBAAN,MAAsB;EACV,MAAM,oBAAI,IAA4B;;EAGvD,MAAM,OAAe,MAAgC;AACnD,UAAM,WAAW,KAAK,IAAI,IAAI,KAAK;AACnC,QAAI,UAAU;AACZ,WAAK,SAAS,KAAK;IACrB;AACA,UAAM,SAAS,IAAI,eAAe,IAAI;AACtC,SAAK,IAAI,IAAI,OAAO,MAAM;AAC1B,WAAO,MAAM;EACf;EAEA,MAAM,KAAK,OAA8B;AACvC,UAAM,IAAI,KAAK,IAAI,IAAI,KAAK;AAC5B,QAAI,CAAC,EAAG;AACR,SAAK,IAAI,OAAO,KAAK;AACrB,UAAM,EAAE,KAAK;EACf;EAEA,MAAM,UAAyB;AAC7B,UAAM,KAAK,CAAC,GAAG,KAAK,IAAI,OAAO,CAAC;AAChC,SAAK,IAAI,MAAM;AACf,UAAM,QAAQ,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;EAC3C;EAEA,OAAe;AACb,WAAO,KAAK,IAAI;EAClB;AACF;","names":[]}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
HubApiError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WHFCJBMO.js";
|
|
5
5
|
import {
|
|
6
6
|
AGENT_SYNC_SPECS,
|
|
7
7
|
isRealAgentCredential,
|
|
8
8
|
readCredentialBackup
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-XENTK32L.js";
|
|
10
10
|
|
|
11
11
|
// src/control-plane/custody-client.ts
|
|
12
12
|
import { createHash } from "crypto";
|
|
@@ -190,4 +190,4 @@ export {
|
|
|
190
190
|
planPush,
|
|
191
191
|
collectAgentCredentialUploads
|
|
192
192
|
};
|
|
193
|
-
//# sourceMappingURL=chunk-
|
|
193
|
+
//# sourceMappingURL=chunk-PAWAGULH.js.map
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
pinAdoptedBase
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B4YFG5TB.js";
|
|
5
5
|
import {
|
|
6
6
|
localExposedLoopbackUrl,
|
|
7
7
|
resolveCustodyTarget,
|
|
8
8
|
resolveHubApiClient,
|
|
9
9
|
resolveHubApiTarget
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-QDU7YDME.js";
|
|
11
11
|
import {
|
|
12
12
|
getProvider,
|
|
13
13
|
isKnownProvider
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2JHPGPLE.js";
|
|
15
15
|
import {
|
|
16
16
|
dockerProviderRefusal
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UTOC2NHC.js";
|
|
18
18
|
import {
|
|
19
19
|
controlBoxKnowsHost
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-4NUETVTR.js";
|
|
21
21
|
import {
|
|
22
22
|
HubApiClient,
|
|
23
23
|
HubApiError
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-WHFCJBMO.js";
|
|
25
25
|
import {
|
|
26
26
|
deadlineFetch,
|
|
27
27
|
hostReachable,
|
|
28
28
|
pullPreparedFromCustody
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4KYP775X.js";
|
|
30
30
|
import {
|
|
31
31
|
SHARED_CLAUDE_VOLUME,
|
|
32
32
|
SHARED_CODEX_VOLUME,
|
|
33
33
|
SHARED_OPENCODE_VOLUME,
|
|
34
34
|
volumeExists
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-I2DEYQLZ.js";
|
|
36
36
|
import {
|
|
37
37
|
getRuntimeProviderNames
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import {
|
|
40
|
-
loadEffectiveConfig,
|
|
41
|
-
parseProviderSpec,
|
|
42
|
-
unsetConfigValue
|
|
43
|
-
} from "./chunk-NHVGKFVY.js";
|
|
38
|
+
} from "./chunk-I7BSBUPC.js";
|
|
44
39
|
import {
|
|
45
40
|
DEFAULT_BOX_IMAGE,
|
|
46
41
|
imageInfo
|
|
47
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-CZPVVFCF.js";
|
|
48
43
|
import {
|
|
49
44
|
UserFacingError
|
|
50
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-XENTK32L.js";
|
|
46
|
+
import {
|
|
47
|
+
loadEffectiveConfig,
|
|
48
|
+
parseProviderSpec,
|
|
49
|
+
unsetConfigValue
|
|
50
|
+
} from "./chunk-7LNXTPEE.js";
|
|
51
51
|
|
|
52
52
|
// src/commands/prepare.ts
|
|
53
53
|
import { intro, log, spinner } from "@clack/prompts";
|
|
@@ -190,7 +190,7 @@ async function renderDocker(status) {
|
|
|
190
190
|
}
|
|
191
191
|
async function daytonaStatus() {
|
|
192
192
|
try {
|
|
193
|
-
const mod = await import("./dist-
|
|
193
|
+
const mod = await import("./dist-NFF2KEMB.js");
|
|
194
194
|
return await mod.getDaytonaStatus();
|
|
195
195
|
} catch (err) {
|
|
196
196
|
return {
|
|
@@ -201,7 +201,7 @@ async function daytonaStatus() {
|
|
|
201
201
|
}
|
|
202
202
|
async function e2bStatus() {
|
|
203
203
|
try {
|
|
204
|
-
const mod = await import("./dist-
|
|
204
|
+
const mod = await import("./dist-E5EXDZG4.js");
|
|
205
205
|
const cred = mod.readE2bCredStatus();
|
|
206
206
|
if (cred.auth === "none") {
|
|
207
207
|
return { configured: false, reason: "not configured \u2014 run `agentbox e2b login`" };
|
|
@@ -324,7 +324,7 @@ async function showStatus(opts) {
|
|
|
324
324
|
process.stdout.write(lines.join("\n") + "\n");
|
|
325
325
|
}
|
|
326
326
|
async function hubIsCoLocated() {
|
|
327
|
-
const { resolveHubTarget } = await import("./hub-
|
|
327
|
+
const { resolveHubTarget } = await import("./hub-3HPYOV5O.js");
|
|
328
328
|
const target = await resolveHubTarget(void 0).catch(() => null);
|
|
329
329
|
if (target?.mode === "local") return true;
|
|
330
330
|
return await localExposedLoopbackUrl().catch(() => null) !== null;
|
|
@@ -505,4 +505,4 @@ export {
|
|
|
505
505
|
runPrepare,
|
|
506
506
|
prepareCommand
|
|
507
507
|
};
|
|
508
|
-
//# sourceMappingURL=chunk-
|
|
508
|
+
//# sourceMappingURL=chunk-PFEBKXFD.js.map
|