@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
package/runtime/e2b/gh-shim
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# agentbox `gh` shim —
|
|
3
|
-
# `
|
|
4
|
-
#
|
|
5
|
-
# a GitHub token.
|
|
2
|
+
# agentbox `gh` shim — forwards the GitHub CLI to the host, so the host's
|
|
3
|
+
# authenticated `gh` runs the operation and only the result crosses back. The
|
|
4
|
+
# in-box agent never sees a GitHub token.
|
|
6
5
|
#
|
|
7
|
-
#
|
|
8
|
-
#
|
|
9
|
-
#
|
|
6
|
+
# The whole CLI is forwarded. An earlier version proxied a curated allowlist
|
|
7
|
+
# of subcommands and rejected the rest, which meant every new agent workflow
|
|
8
|
+
# (`gh issue`, `gh search`, `gh release`) hit "not proxied" and needed a code
|
|
9
|
+
# change to unblock — see issue #304. Policy now lives host-side in
|
|
10
|
+
# packages/relay/src/gh.ts as a small blocklist plus a short list of
|
|
11
|
+
# destructive ops that always confirm; everything else is allow-once.
|
|
12
|
+
#
|
|
13
|
+
# This shim is NOT the security boundary (see docs/architecture.md) — the
|
|
14
|
+
# relay is. What it does do is fix up argv the host could not get right on its
|
|
15
|
+
# own: `gh pr` subcommands resolve against the *current branch*, and the host's
|
|
16
|
+
# gh runs in the host checkout, not the box's worktree. Without injection a
|
|
17
|
+
# bare `gh pr view` in a box reports on whatever the host has checked out.
|
|
10
18
|
|
|
11
19
|
set -euo pipefail
|
|
12
20
|
|
|
@@ -15,14 +23,8 @@ set -euo pipefail
|
|
|
15
23
|
CTL="${AGENTBOX_CTL_PATH:-/usr/local/bin/agentbox-ctl}"
|
|
16
24
|
REAL_GIT="${AGENTBOX_REAL_GIT_PATH:-/usr/bin/git}"
|
|
17
25
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
exit 2
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
# Resolve the in-box current branch once. Used to inject the right ref into
|
|
24
|
-
# `gh pr` commands so the host's `gh` (which runs in the host main repo, not
|
|
25
|
-
# the box's worktree) doesn't fall back to the host's HEAD.
|
|
26
|
+
# Resolve the in-box current branch once, so `gh pr` commands carry the box's
|
|
27
|
+
# ref rather than falling back to the host's HEAD.
|
|
26
28
|
box_branch() {
|
|
27
29
|
"$REAL_GIT" -C "$PWD" rev-parse --abbrev-ref HEAD 2>/dev/null || true
|
|
28
30
|
}
|
|
@@ -37,33 +39,11 @@ needle_present() {
|
|
|
37
39
|
return 1
|
|
38
40
|
}
|
|
39
41
|
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
local allowed="$1"; shift
|
|
46
|
-
local re="^(${allowed})$"
|
|
47
|
-
local arg
|
|
48
|
-
for arg in "$@"; do
|
|
49
|
-
case "$arg" in
|
|
50
|
-
--) ;;
|
|
51
|
-
-*)
|
|
52
|
-
if ! [[ "$arg" =~ $re ]]; then
|
|
53
|
-
die "unsupported flag '$arg' for '$subcmd'. Allowed: ${allowed//|/, }"
|
|
54
|
-
fi
|
|
55
|
-
;;
|
|
56
|
-
esac
|
|
57
|
-
done
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
# Returns the first true positional arg of "$@" (skipping flags AND their
|
|
61
|
-
# values), or '' if none. $1 is a `|`-separated list of value-taking flags
|
|
62
|
-
# for the current subcommand — e.g. "--json|--title|--body|--base" means the
|
|
63
|
-
# token after any of those flags is a value, not a positional. Without this
|
|
64
|
-
# we'd treat `--json number,url`'s field list as the positional and miss
|
|
65
|
-
# branch injection (real bug: PR-badge lookups returned "no PR for main"
|
|
66
|
-
# because the JSON field list looked positional).
|
|
42
|
+
# Returns the first true positional of "$@" (skipping flags AND their values),
|
|
43
|
+
# or '' if none. $1 is a `|`-separated list of value-taking flags for the
|
|
44
|
+
# current subcommand — without it we would treat `--json number,url`'s field
|
|
45
|
+
# list as the positional and skip branch injection (a real bug: PR-badge
|
|
46
|
+
# lookups returned "no PR for main").
|
|
67
47
|
first_positional() {
|
|
68
48
|
local value_taking="$1"; shift
|
|
69
49
|
local re="^(${value_taking})$"
|
|
@@ -86,171 +66,83 @@ first_positional() {
|
|
|
86
66
|
done
|
|
87
67
|
}
|
|
88
68
|
|
|
69
|
+
# `gh pr <op>` with no explicit ref resolves against the current branch. Inject
|
|
70
|
+
# the box's branch for the ops that behave that way. Everything else in the pr
|
|
71
|
+
# family (create, checkout, ...) is passed through untouched — `create` gets
|
|
72
|
+
# its `--head` injected host-side, where the sanctioned branch is known.
|
|
73
|
+
#
|
|
74
|
+
# Done inline with `set --` rather than through a helper that echoes an array:
|
|
75
|
+
# `mapfile` is bash 4+, and this file has to run under macOS's bash 3.2 in the
|
|
76
|
+
# unit tests as well as bash 5 in the box.
|
|
89
77
|
handle_pr() {
|
|
90
|
-
local op="${1-}"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
fi
|
|
78
|
+
local op="${1-}"
|
|
79
|
+
[ -n "$op" ] || { exec "$CTL" gh exec -- pr; }
|
|
80
|
+
shift
|
|
94
81
|
local branch
|
|
95
82
|
branch="$(box_branch)"
|
|
96
83
|
|
|
84
|
+
# Value-taking flags, per op, transcribed from `gh pr <op> --help`. Getting
|
|
85
|
+
# this wrong breaks injection in both directions: a value-taking flag left
|
|
86
|
+
# off means its value is read as the PR ref (so the branch is NOT injected
|
|
87
|
+
# and the host resolves against its own checkout), while marking a boolean
|
|
88
|
+
# as value-taking swallows the next real flag.
|
|
89
|
+
#
|
|
90
|
+
# `--comment`/`-c` is the sharp edge — a string for `close`/`reopen`, a
|
|
91
|
+
# BOOLEAN for `review` (comment vs approve vs request-changes), and a
|
|
92
|
+
# different boolean again for `view` (--comments). Same for `-t`: `--subject`
|
|
93
|
+
# on `merge`, `--template` on `view`/`list`/`checks`.
|
|
94
|
+
local json_flags='--json|--jq|-q|--template|-t'
|
|
95
|
+
local body_flags='--body|-b|--body-file|-F'
|
|
96
|
+
local value_flags='--repo|-R'
|
|
97
97
|
case "$op" in
|
|
98
|
-
view)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
set -- "$branch" "$@"
|
|
102
|
-
fi
|
|
103
|
-
exec "$CTL" gh pr view -- "$@"
|
|
104
|
-
;;
|
|
98
|
+
view) value_flags="$value_flags|$json_flags" ;;
|
|
99
|
+
# `checks` adds --interval/-i on top of the JSON flags (watch mode).
|
|
100
|
+
checks) value_flags="$value_flags|$json_flags|--interval|-i" ;;
|
|
105
101
|
list)
|
|
106
|
-
|
|
107
|
-
if ! needle_present "--head" "$@" && [ -n "$branch" ]; then
|
|
108
|
-
set -- "$@" "--head" "$branch"
|
|
109
|
-
fi
|
|
110
|
-
exec "$CTL" gh pr list -- "$@"
|
|
111
|
-
;;
|
|
112
|
-
diff)
|
|
113
|
-
strict_flags "gh pr diff" "--color|--name-only|--patch" "$@"
|
|
114
|
-
if [ -z "$(first_positional "--color" "$@")" ] && [ -n "$branch" ]; then
|
|
115
|
-
set -- "$branch" "$@"
|
|
116
|
-
fi
|
|
117
|
-
exec "$CTL" gh pr diff -- "$@"
|
|
118
|
-
;;
|
|
119
|
-
checks)
|
|
120
|
-
strict_flags "gh pr checks" "--json|--required" "$@"
|
|
121
|
-
if [ -z "$(first_positional "--json" "$@")" ] && [ -n "$branch" ]; then
|
|
122
|
-
set -- "$branch" "$@"
|
|
123
|
-
fi
|
|
124
|
-
exec "$CTL" gh pr checks -- "$@"
|
|
125
|
-
;;
|
|
126
|
-
create)
|
|
127
|
-
strict_flags "gh pr create" "--fill|--draft|--title|--body|--base" "$@"
|
|
128
|
-
if ! needle_present "--head" "$@" && [ -n "$branch" ]; then
|
|
129
|
-
set -- "$@" "--head" "$branch"
|
|
130
|
-
fi
|
|
131
|
-
exec "$CTL" gh pr create -- "$@"
|
|
132
|
-
;;
|
|
133
|
-
comment)
|
|
134
|
-
strict_flags "gh pr comment" "--body" "$@"
|
|
135
|
-
if [ -z "$(first_positional "--body" "$@")" ] && [ -n "$branch" ]; then
|
|
136
|
-
set -- "$branch" "$@"
|
|
137
|
-
fi
|
|
138
|
-
exec "$CTL" gh pr comment -- "$@"
|
|
139
|
-
;;
|
|
140
|
-
review)
|
|
141
|
-
strict_flags "gh pr review" "--approve|--request-changes|--comment|--body" "$@"
|
|
142
|
-
if [ -z "$(first_positional "--body" "$@")" ] && [ -n "$branch" ]; then
|
|
143
|
-
set -- "$branch" "$@"
|
|
144
|
-
fi
|
|
145
|
-
exec "$CTL" gh pr review -- "$@"
|
|
102
|
+
value_flags="$value_flags|$json_flags|--app|--assignee|-a|--author|-A|--base|-B|--head|-H|--label|-l|--limit|-L|--search|-S|--state|-s"
|
|
146
103
|
;;
|
|
104
|
+
diff) value_flags="$value_flags|--color|--exclude|-e" ;;
|
|
105
|
+
comment) value_flags="$value_flags|$body_flags" ;;
|
|
106
|
+
review) value_flags="$value_flags|$body_flags" ;;
|
|
147
107
|
merge)
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
set -- "$branch" "$@"
|
|
151
|
-
fi
|
|
152
|
-
exec "$CTL" gh pr merge -- "$@"
|
|
153
|
-
;;
|
|
154
|
-
close)
|
|
155
|
-
strict_flags "gh pr close" "--delete-branch" "$@"
|
|
156
|
-
if [ -z "$(first_positional "" "$@")" ] && [ -n "$branch" ]; then
|
|
157
|
-
set -- "$branch" "$@"
|
|
158
|
-
fi
|
|
159
|
-
exec "$CTL" gh pr close -- "$@"
|
|
160
|
-
;;
|
|
161
|
-
reopen)
|
|
162
|
-
strict_flags "gh pr reopen" "" "$@"
|
|
163
|
-
if [ -z "$(first_positional "" "$@")" ] && [ -n "$branch" ]; then
|
|
164
|
-
set -- "$branch" "$@"
|
|
165
|
-
fi
|
|
166
|
-
exec "$CTL" gh pr reopen -- "$@"
|
|
167
|
-
;;
|
|
168
|
-
checkout)
|
|
169
|
-
# gh pr checkout takes a required ref (number / URL / branch). No
|
|
170
|
-
# auto-inject — the relay also refuses checkout by default
|
|
171
|
-
# (AGENTBOX_GH_PR_CHECKOUT=allow opt-in).
|
|
172
|
-
strict_flags "gh pr checkout" "" "$@"
|
|
173
|
-
if [ -z "$(first_positional "" "$@")" ]; then
|
|
174
|
-
die "'gh pr checkout' requires a positional ref (PR number, URL, or branch)"
|
|
175
|
-
fi
|
|
176
|
-
exec "$CTL" gh pr checkout -- "$@"
|
|
177
|
-
;;
|
|
178
|
-
*)
|
|
179
|
-
die "'gh pr $op' is not proxied (supported: view, list, diff, checks, create, comment, review, merge, checkout, close, reopen)"
|
|
180
|
-
;;
|
|
181
|
-
esac
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
handle_run() {
|
|
185
|
-
local op="${1-}"; shift || true
|
|
186
|
-
if [ -z "$op" ]; then
|
|
187
|
-
die "missing subcommand for 'gh run'. Supported: list, view, rerun"
|
|
188
|
-
fi
|
|
189
|
-
case "$op" in
|
|
190
|
-
list)
|
|
191
|
-
strict_flags "gh run list" "--json|--limit|-L|--workflow|-w|--branch|-b|--status|--user" "$@"
|
|
192
|
-
exec "$CTL" gh run list -- "$@"
|
|
193
|
-
;;
|
|
194
|
-
view)
|
|
195
|
-
strict_flags "gh run view" "--json|--log|--log-failed|--job" "$@"
|
|
196
|
-
# gh run view needs a run-id OR a --job <id>; refuse when neither is
|
|
197
|
-
# present (host-side gh would otherwise try an interactive picker and
|
|
198
|
-
# fail without a TTY).
|
|
199
|
-
if [ -z "$(first_positional "--json|--job" "$@")" ] && ! needle_present "--job" "$@"; then
|
|
200
|
-
die "'gh run view' requires a positional <run-id> (or --job <job-id>)"
|
|
201
|
-
fi
|
|
202
|
-
exec "$CTL" gh run view -- "$@"
|
|
203
|
-
;;
|
|
204
|
-
rerun)
|
|
205
|
-
strict_flags "gh run rerun" "--failed|--job" "$@"
|
|
206
|
-
if [ -z "$(first_positional "--job" "$@")" ] && ! needle_present "--job" "$@"; then
|
|
207
|
-
die "'gh run rerun' requires a positional <run-id> (or --job <job-id>)"
|
|
208
|
-
fi
|
|
209
|
-
exec "$CTL" gh run rerun -- "$@"
|
|
210
|
-
;;
|
|
211
|
-
watch)
|
|
212
|
-
die "'gh run watch' is not proxied (it blocks until CI finishes). Poll status with 'gh run view <run-id>' instead."
|
|
213
|
-
;;
|
|
214
|
-
*)
|
|
215
|
-
die "'gh run $op' is not proxied (supported: list, view, rerun)"
|
|
108
|
+
# -t is --subject here, NOT --template; -A is --author-email.
|
|
109
|
+
value_flags="$value_flags|$body_flags|--subject|-t|--author-email|-A|--match-head-commit"
|
|
216
110
|
;;
|
|
111
|
+
close|reopen) value_flags="$value_flags|--comment|-c" ;;
|
|
217
112
|
esac
|
|
218
|
-
}
|
|
219
113
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
die "'gh api --input' (stdin/file body) isn't supported through the relay; use -f/-F fields"
|
|
114
|
+
if [ -n "$branch" ]; then
|
|
115
|
+
case "$op" in
|
|
116
|
+
view|diff|checks|comment|review|merge|close|reopen)
|
|
117
|
+
# These take the ref as a positional. Skip value-taking flags so a
|
|
118
|
+
# flag's value is not mistaken for the ref.
|
|
119
|
+
if [ -z "$(first_positional "$value_flags" "$@")" ]; then
|
|
120
|
+
set -- "$branch" "$@"
|
|
121
|
+
fi
|
|
122
|
+
;;
|
|
123
|
+
list)
|
|
124
|
+
# `pr list` filters by head branch via a flag, not a positional.
|
|
125
|
+
if ! needle_present "--head" "$@"; then
|
|
126
|
+
set -- "$@" "--head" "$branch"
|
|
127
|
+
fi
|
|
235
128
|
;;
|
|
236
129
|
esac
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
"--method|-X|-f|-F|--field|--raw-field|--jq|-q|--paginate|--cache|--hostname|-H|--header" "$@"
|
|
240
|
-
exec "$CTL" gh api "$endpoint" -- "$@"
|
|
130
|
+
fi
|
|
131
|
+
exec "$CTL" gh exec -- pr "$op" "$@"
|
|
241
132
|
}
|
|
242
133
|
|
|
134
|
+
# `gh repo clone` is the one subcommand that cannot be a plain host exec: the
|
|
135
|
+
# clone has to land INSIDE the box. The host clones with its credentials,
|
|
136
|
+
# bundles, and ships the bundle back, so it keeps its own ctl command and RPC.
|
|
243
137
|
handle_repo() {
|
|
244
|
-
local op="${1-}"
|
|
138
|
+
local op="${1-}"
|
|
245
139
|
if [ "$op" != "clone" ]; then
|
|
246
|
-
|
|
140
|
+
exec "$CTL" gh exec -- repo ${op:+"$op"} "${@:2}"
|
|
247
141
|
fi
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
#
|
|
251
|
-
#
|
|
252
|
-
# separator would force commander to treat them as extra positionals (the
|
|
253
|
-
# ctl `gh repo clone` command doesn't allowExcessArguments).
|
|
142
|
+
shift
|
|
143
|
+
# Split argv into (repo, dir, flags). Positionals go BEFORE options so
|
|
144
|
+
# commander parses --branch/--depth as real options; a `--` separator would
|
|
145
|
+
# force it to treat them as extra positionals.
|
|
254
146
|
local repo='' dir=''
|
|
255
147
|
local -a flags=()
|
|
256
148
|
local pos=0
|
|
@@ -267,20 +159,21 @@ handle_repo() {
|
|
|
267
159
|
flags+=("$arg")
|
|
268
160
|
skip_value=1
|
|
269
161
|
;;
|
|
270
|
-
-*)
|
|
271
|
-
flags+=("$arg")
|
|
272
|
-
;;
|
|
162
|
+
-*) flags+=("$arg") ;;
|
|
273
163
|
*)
|
|
274
164
|
if [ $pos -eq 0 ]; then repo="$arg"
|
|
275
165
|
elif [ $pos -eq 1 ]; then dir="$arg"
|
|
276
|
-
else
|
|
166
|
+
else
|
|
167
|
+
printf 'agentbox gh shim: too many positionals for '"'"'gh repo clone'"'"' (got %s after repo + dir)\n' "$arg" >&2
|
|
168
|
+
exit 2
|
|
277
169
|
fi
|
|
278
170
|
pos=$((pos+1))
|
|
279
171
|
;;
|
|
280
172
|
esac
|
|
281
173
|
done
|
|
282
174
|
if [ -z "$repo" ]; then
|
|
283
|
-
|
|
175
|
+
printf "agentbox gh shim: 'gh repo clone' requires a positional <repo> (owner/name or full URL)\n" >&2
|
|
176
|
+
exit 2
|
|
284
177
|
fi
|
|
285
178
|
if [ -n "$dir" ]; then
|
|
286
179
|
exec "$CTL" gh repo clone "$repo" "$dir" ${flags[@]+"${flags[@]}"}
|
|
@@ -289,56 +182,38 @@ handle_repo() {
|
|
|
289
182
|
fi
|
|
290
183
|
}
|
|
291
184
|
|
|
292
|
-
# Top-level dispatch.
|
|
293
185
|
if [ $# -eq 0 ]; then
|
|
294
|
-
|
|
186
|
+
exec "$CTL" gh exec --
|
|
295
187
|
fi
|
|
296
188
|
|
|
297
189
|
case "$1" in
|
|
298
190
|
--version|-v)
|
|
299
|
-
# Real gh prints
|
|
300
|
-
#
|
|
301
|
-
#
|
|
302
|
-
# Tools that sniff "gh version" succeed with our shim line too.
|
|
191
|
+
# Real gh prints "gh version X.Y.Z (date)". Tools that sniff for that
|
|
192
|
+
# string succeed against the shim line too. Answered locally so version
|
|
193
|
+
# probes don't round-trip to the host.
|
|
303
194
|
printf 'gh version 2.0.0 (agentbox-shim)\n'
|
|
304
195
|
printf 'https://github.com/cli/cli\n'
|
|
305
|
-
|
|
306
|
-
--help|-h)
|
|
307
|
-
printf 'agentbox gh shim — strict subset.\n' >&2
|
|
308
|
-
printf 'Supported: pr {view,list,diff,checks,create,comment,review,merge,checkout,close,reopen}, run {list,view,rerun}, api <endpoint>, repo clone, auth status, --version\n' >&2
|
|
309
|
-
printf 'Anything else is rejected. Run host `gh --help` for full upstream docs.\n' >&2
|
|
196
|
+
exit 0
|
|
310
197
|
;;
|
|
311
198
|
auth)
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
die "'gh auth ${1-}' is not proxied (supported: status)"
|
|
322
|
-
;;
|
|
323
|
-
esac
|
|
199
|
+
# Answered locally: Claude Code polls `auth status` on a refresh loop, and
|
|
200
|
+
# the real auth state is verified host-side on the next actual RPC (the
|
|
201
|
+
# relay's assertGhReady returns exit 4 when the host is logged out). Every
|
|
202
|
+
# other `gh auth` subcommand is refused by the relay's blocklist, since
|
|
203
|
+
# the host owns its own credential.
|
|
204
|
+
if [ "${2-}" = "status" ]; then
|
|
205
|
+
printf 'agentbox gh shim: logged in to github.com (via agentbox host relay)\n' >&2
|
|
206
|
+
exit 0
|
|
207
|
+
fi
|
|
324
208
|
;;
|
|
325
209
|
pr)
|
|
326
210
|
shift
|
|
327
211
|
handle_pr "$@"
|
|
328
212
|
;;
|
|
329
|
-
run)
|
|
330
|
-
shift
|
|
331
|
-
handle_run "$@"
|
|
332
|
-
;;
|
|
333
|
-
api)
|
|
334
|
-
shift
|
|
335
|
-
handle_api "$@"
|
|
336
|
-
;;
|
|
337
213
|
repo)
|
|
338
214
|
shift
|
|
339
215
|
handle_repo "$@"
|
|
340
216
|
;;
|
|
341
|
-
*)
|
|
342
|
-
die "'gh $1' is not proxied (supported: pr {…}, run {…}, api <endpoint>, repo clone, auth status, --version)"
|
|
343
|
-
;;
|
|
344
217
|
esac
|
|
218
|
+
|
|
219
|
+
exec "$CTL" gh exec -- "$@"
|
|
@@ -25,8 +25,7 @@
|
|
|
25
25
|
# /tmp/agentbox-open -- in-box xdg-open shim
|
|
26
26
|
# /tmp/agentbox-gh-shim -- in-box `gh` shim (routes to host gh)
|
|
27
27
|
# /tmp/agentbox-git-shim -- in-box `git` shim (routes via relay)
|
|
28
|
-
# /tmp/agentbox-
|
|
29
|
-
# /tmp/agentbox-linear-shim -- in-box `linear` shim (routes to host linear; rejects `auth token`)
|
|
28
|
+
# /tmp/agentbox-tool-shim -- generic host-tool shim, symlinked per granted tool at box start
|
|
30
29
|
# /tmp/agentbox-custom-CLAUDE.md -- /etc/claude-code/CLAUDE.md content
|
|
31
30
|
# /tmp/agentbox-managed-settings.json -- /etc/claude-code/managed-settings.json
|
|
32
31
|
# /tmp/agentbox-codex-hooks.json -- /usr/local/share/agentbox/codex-hooks.json
|
|
@@ -381,19 +380,16 @@ done_ "apt cleanup"
|
|
|
381
380
|
# login-shell shim above forces /usr/local/bin ahead of /usr/bin so these win.
|
|
382
381
|
# During the bake there is no relay, so they must not shadow the real binaries
|
|
383
382
|
# until provisioning is done. Installed from /tmp just before the trim step.
|
|
384
|
-
step "relay shims (gh + git +
|
|
383
|
+
step "relay shims (gh + git + tool)"
|
|
385
384
|
install -m 0755 /tmp/agentbox-gh-shim /usr/local/bin/gh
|
|
386
385
|
install -m 0755 /tmp/agentbox-git-shim /usr/local/bin/git
|
|
387
|
-
install -m 0755 /tmp/agentbox-
|
|
388
|
-
|
|
389
|
-
install -m 0755 /tmp/agentbox-linear-shim /usr/local/bin/linear
|
|
390
|
-
done_ "relay shims (gh + git + ntn + linear)"
|
|
386
|
+
install -m 0755 /tmp/agentbox-tool-shim /usr/local/bin/agentbox-tool-shim
|
|
387
|
+
done_ "relay shims (gh + git + tool)"
|
|
391
388
|
|
|
392
389
|
step "trim /tmp/agentbox-*"
|
|
393
390
|
rm -f /tmp/agentbox-ctl /tmp/agentbox-dockerd-start /tmp/agentbox-vnc-start \
|
|
394
391
|
/tmp/agentbox-checkpoint-cleanup /tmp/agentbox-open \
|
|
395
|
-
/tmp/agentbox-gh-shim /tmp/agentbox-git-shim /tmp/agentbox-
|
|
396
|
-
/tmp/agentbox-linear-shim \
|
|
392
|
+
/tmp/agentbox-gh-shim /tmp/agentbox-git-shim /tmp/agentbox-tool-shim \
|
|
397
393
|
/tmp/agentbox-custom-CLAUDE.md /tmp/agentbox-managed-settings.json \
|
|
398
394
|
/tmp/agentbox-codex-hooks.json /tmp/agentbox-setup-skill.md
|
|
399
395
|
mv /tmp/agentbox-build-template.sh /var/log/agentbox/build-template.sh 2>/dev/null || true
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# agentbox generic host-tool shim.
|
|
3
|
+
#
|
|
4
|
+
# One file, installed once per image, symlinked as ~/.local/bin/<tool> for
|
|
5
|
+
# every host tool the user has granted this box. It forwards verbatim to
|
|
6
|
+
# `agentbox-ctl tool run <name> -- <args...>`, which posts an RPC the host
|
|
7
|
+
# relay gates and executes with the host's own credentials. The box never
|
|
8
|
+
# holds a token for the tool it is calling.
|
|
9
|
+
#
|
|
10
|
+
# Deliberately does no argv filtering. The shim was never the security
|
|
11
|
+
# boundary (see docs/architecture.md) — the relay is, and it applies the
|
|
12
|
+
# built-in credential deny list, the per-tool allow/deny rules and the host
|
|
13
|
+
# approval prompt. Filtering here would only buy a confusing second opinion.
|
|
14
|
+
#
|
|
15
|
+
# The tool name comes from argv[0], so a symlink is all it takes to add one:
|
|
16
|
+
# no rebake, no new file. `AGENTBOX_CTL_PATH` exists purely so unit tests can
|
|
17
|
+
# substitute a stub `agentbox-ctl` on PATH.
|
|
18
|
+
|
|
19
|
+
set -euo pipefail
|
|
20
|
+
|
|
21
|
+
exec "${AGENTBOX_CTL_PATH:-/usr/local/bin/agentbox-ctl}" tool run "$(basename "$0")" -- "$@"
|