@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,181 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# agentbox `linear` shim — translates a strict subset of `linear`
|
|
3
|
-
# (@schpet/linear-cli, v2) subcommands into `agentbox-ctl integration
|
|
4
|
-
# linear <op>` so the host's authenticated `linear` runs the operation and
|
|
5
|
-
# only the result crosses back into the box. The in-box agent never sees a
|
|
6
|
-
# Linear API token.
|
|
7
|
-
#
|
|
8
|
-
# Installed at /usr/local/bin/linear (real `linear` is not in the box).
|
|
9
|
-
#
|
|
10
|
-
# This shim ships only what documented agent flows need; anything outside
|
|
11
|
-
# the subset below is rejected with a clear error. Add ops deliberately —
|
|
12
|
-
# the relay is gated by `integrations.linear.enabled` and an explicit op
|
|
13
|
-
# allowlist in @agentbox/integrations.
|
|
14
|
-
#
|
|
15
|
-
# Three classes of upstream subcommand are EXPLICITLY rejected even though
|
|
16
|
-
# they exist on the host CLI, because proxying them would defeat the
|
|
17
|
-
# security model:
|
|
18
|
-
# - `auth token` PRINTS the raw API token to stdout — proxying it would
|
|
19
|
-
# hand the box the host's Linear credential. The only auth-family op
|
|
20
|
-
# we proxy is `auth whoami` (identity only), via `linear whoami`.
|
|
21
|
-
# - `auth login/logout/migrate/default` would mutate host auth state.
|
|
22
|
-
# - `issue delete` / `team delete` / `team create` are destructive and
|
|
23
|
-
# off-list (widen deliberately, as gated writes, only if needed).
|
|
24
|
-
|
|
25
|
-
set -euo pipefail
|
|
26
|
-
|
|
27
|
-
# Path is a constant in production; the env override exists purely to let
|
|
28
|
-
# unit tests substitute a stub `agentbox-ctl` on PATH without rewriting the
|
|
29
|
-
# shim. Mirrors gh-shim / git-shim / ntn-shim.
|
|
30
|
-
CTL="${AGENTBOX_CTL_PATH:-/usr/local/bin/agentbox-ctl}"
|
|
31
|
-
|
|
32
|
-
die() {
|
|
33
|
-
printf 'agentbox linear shim: %s\n' "$*" >&2
|
|
34
|
-
exit 2
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
handle_auth() {
|
|
38
|
-
local sub="${1-}"; shift || true
|
|
39
|
-
case "$sub" in
|
|
40
|
-
whoami)
|
|
41
|
-
exec "$CTL" integration linear whoami -- "$@"
|
|
42
|
-
;;
|
|
43
|
-
token)
|
|
44
|
-
die "'auth token' leaks the raw API key — refused. Use 'linear whoami' for identity."
|
|
45
|
-
;;
|
|
46
|
-
login|logout|migrate|default)
|
|
47
|
-
die "'auth $sub' is not proxied (the host owns auth; run it on the host)."
|
|
48
|
-
;;
|
|
49
|
-
'')
|
|
50
|
-
die "missing subcommand for 'auth'. Supported: whoami"
|
|
51
|
-
;;
|
|
52
|
-
*)
|
|
53
|
-
die "unsupported 'auth $sub' (allowed: whoami)"
|
|
54
|
-
;;
|
|
55
|
-
esac
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
handle_issue_comment() {
|
|
59
|
-
local sub="${1-}"; shift || true
|
|
60
|
-
case "$sub" in
|
|
61
|
-
add)
|
|
62
|
-
exec "$CTL" integration linear issue.comment -- "$@"
|
|
63
|
-
;;
|
|
64
|
-
'')
|
|
65
|
-
die "missing subcommand for 'issue comment'. Supported: add"
|
|
66
|
-
;;
|
|
67
|
-
*)
|
|
68
|
-
die "unsupported 'issue comment $sub' (allowed: add)"
|
|
69
|
-
;;
|
|
70
|
-
esac
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
handle_issue() {
|
|
74
|
-
local sub="${1-}"; shift || true
|
|
75
|
-
case "$sub" in
|
|
76
|
-
list)
|
|
77
|
-
exec "$CTL" integration linear issue.list -- "$@"
|
|
78
|
-
;;
|
|
79
|
-
mine)
|
|
80
|
-
exec "$CTL" integration linear issue.mine -- "$@"
|
|
81
|
-
;;
|
|
82
|
-
view)
|
|
83
|
-
exec "$CTL" integration linear issue.view -- "$@"
|
|
84
|
-
;;
|
|
85
|
-
query)
|
|
86
|
-
exec "$CTL" integration linear issue.query -- "$@"
|
|
87
|
-
;;
|
|
88
|
-
create)
|
|
89
|
-
exec "$CTL" integration linear issue.create -- "$@"
|
|
90
|
-
;;
|
|
91
|
-
update)
|
|
92
|
-
exec "$CTL" integration linear issue.update -- "$@"
|
|
93
|
-
;;
|
|
94
|
-
comment)
|
|
95
|
-
handle_issue_comment "$@"
|
|
96
|
-
;;
|
|
97
|
-
delete)
|
|
98
|
-
die "'issue delete' is not proxied (destructive; off-list by default)."
|
|
99
|
-
;;
|
|
100
|
-
'')
|
|
101
|
-
die "missing subcommand for 'issue'. Supported: list, mine, view, query, create, update, comment add"
|
|
102
|
-
;;
|
|
103
|
-
*)
|
|
104
|
-
die "unsupported 'issue $sub' (allowed: list, mine, view, query, create, update, comment add)"
|
|
105
|
-
;;
|
|
106
|
-
esac
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
handle_team() {
|
|
110
|
-
local sub="${1-}"; shift || true
|
|
111
|
-
case "$sub" in
|
|
112
|
-
list)
|
|
113
|
-
exec "$CTL" integration linear team.list -- "$@"
|
|
114
|
-
;;
|
|
115
|
-
create|delete)
|
|
116
|
-
die "'team $sub' is not proxied (destructive; off-list by default)."
|
|
117
|
-
;;
|
|
118
|
-
'')
|
|
119
|
-
die "missing subcommand for 'team'. Supported: list"
|
|
120
|
-
;;
|
|
121
|
-
*)
|
|
122
|
-
die "unsupported 'team $sub' (allowed: list)"
|
|
123
|
-
;;
|
|
124
|
-
esac
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
# Top-level dispatch. `linear`'s real subcommands are
|
|
128
|
-
# `auth issue team project cycle milestone initiative label document api schema`;
|
|
129
|
-
# we expose only the read-safe ones plus a few gated writes (no destructive
|
|
130
|
-
# ops, no auth token).
|
|
131
|
-
if [ $# -eq 0 ]; then
|
|
132
|
-
die "no subcommand. Supported: whoami, auth whoami, issue {list,mine,view,query,create,update,comment add}, team list, api <query>, --version"
|
|
133
|
-
fi
|
|
134
|
-
|
|
135
|
-
case "$1" in
|
|
136
|
-
--version|-v)
|
|
137
|
-
# Tools that sniff "linear --version" succeed with our shim line. The
|
|
138
|
-
# real version lives host-side and is reported by the relay's
|
|
139
|
-
# readiness probe (`assertIntegrationReady`).
|
|
140
|
-
printf 'linear version 0.0.0 (agentbox-shim)\n'
|
|
141
|
-
;;
|
|
142
|
-
--help|-h)
|
|
143
|
-
printf 'agentbox linear shim — strict subset.\n' >&2
|
|
144
|
-
printf 'Supported: whoami, auth whoami, issue {list,mine,view,query,create,update,comment add}, team list, api <query>, --version\n' >&2
|
|
145
|
-
printf 'Anything else is rejected. Run host `linear --help` for full upstream docs.\n' >&2
|
|
146
|
-
;;
|
|
147
|
-
whoami)
|
|
148
|
-
shift
|
|
149
|
-
exec "$CTL" integration linear whoami -- "$@"
|
|
150
|
-
;;
|
|
151
|
-
auth)
|
|
152
|
-
shift
|
|
153
|
-
handle_auth "$@"
|
|
154
|
-
;;
|
|
155
|
-
issue)
|
|
156
|
-
shift
|
|
157
|
-
handle_issue "$@"
|
|
158
|
-
;;
|
|
159
|
-
team)
|
|
160
|
-
shift
|
|
161
|
-
handle_team "$@"
|
|
162
|
-
;;
|
|
163
|
-
api)
|
|
164
|
-
shift
|
|
165
|
-
# `linear api` accepts pre-positional flags (`--variable`,
|
|
166
|
-
# `--variables-json`, `--paginate`, `--silent`) before the GraphQL
|
|
167
|
-
# query, so we don't require the FIRST arg to be a non-flag — only
|
|
168
|
-
# that some arg is present. The relay's refuseGraphqlNonQuery
|
|
169
|
-
# enforces query-only by rejecting any positional whose first
|
|
170
|
-
# keyword is `mutation`/`subscription` (and any `--variable
|
|
171
|
-
# key=@<path>` host-file load), so we don't duplicate that check
|
|
172
|
-
# here. Writes go through the dedicated issue.* ops.
|
|
173
|
-
if [ $# -eq 0 ]; then
|
|
174
|
-
die "'api' requires a positional <query> (e.g. '{ teams { id } }')"
|
|
175
|
-
fi
|
|
176
|
-
exec "$CTL" integration linear api -- "$@"
|
|
177
|
-
;;
|
|
178
|
-
*)
|
|
179
|
-
die "'$1' is not proxied (supported: whoami, issue {list,mine,view,query,create,update,comment add}, team list, api <query>, --version)"
|
|
180
|
-
;;
|
|
181
|
-
esac
|
package/runtime/_shared/ntn-shim
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# agentbox `ntn` shim — translates a strict subset of `ntn` (the official
|
|
3
|
-
# Notion CLI) subcommands into `agentbox-ctl integration notion <op>` so the
|
|
4
|
-
# host's authenticated `ntn` runs the operation and only the result crosses
|
|
5
|
-
# back into the box. The in-box agent never sees a Notion token.
|
|
6
|
-
#
|
|
7
|
-
# Installed at /usr/local/bin/ntn (real `ntn` is not in the box). The same
|
|
8
|
-
# shim is symlinked as /usr/local/bin/notion — the per-service surface name
|
|
9
|
-
# from docs/integrations_backlog.md — both invocations behave identically.
|
|
10
|
-
#
|
|
11
|
-
# This shim ships only what documented agent flows need; anything outside
|
|
12
|
-
# the subset below is rejected with a clear error. Add ops deliberately —
|
|
13
|
-
# the relay is gated by `integrations.notion.enabled` and an explicit op
|
|
14
|
-
# allowlist in @agentbox/integrations.
|
|
15
|
-
|
|
16
|
-
set -euo pipefail
|
|
17
|
-
|
|
18
|
-
# Path is a constant in production; the env override exists purely to let
|
|
19
|
-
# unit tests substitute a stub `agentbox-ctl` on PATH without rewriting the
|
|
20
|
-
# shim. Mirrors gh-shim / git-shim.
|
|
21
|
-
CTL="${AGENTBOX_CTL_PATH:-/usr/local/bin/agentbox-ctl}"
|
|
22
|
-
|
|
23
|
-
die() {
|
|
24
|
-
printf 'agentbox notion shim: %s\n' "$*" >&2
|
|
25
|
-
exit 2
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
handle_pages() {
|
|
29
|
-
local op="${1-}"; shift || true
|
|
30
|
-
case "$op" in
|
|
31
|
-
create)
|
|
32
|
-
exec "$CTL" integration notion page.create -- "$@"
|
|
33
|
-
;;
|
|
34
|
-
update)
|
|
35
|
-
exec "$CTL" integration notion page.update -- "$@"
|
|
36
|
-
;;
|
|
37
|
-
'')
|
|
38
|
-
die "missing subcommand for 'pages'. Supported: create, update"
|
|
39
|
-
;;
|
|
40
|
-
*)
|
|
41
|
-
die "unsupported 'pages $op' (allowed: create, update)"
|
|
42
|
-
;;
|
|
43
|
-
esac
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
# Top-level dispatch. `ntn`'s real subcommands are
|
|
47
|
-
# `api datasources files pages login logout whoami workers`; we expose only
|
|
48
|
-
# the read-safe ones plus `pages {create,update}`.
|
|
49
|
-
if [ $# -eq 0 ]; then
|
|
50
|
-
die "no subcommand. Supported: whoami, api <endpoint>, pages {create,update}, --version"
|
|
51
|
-
fi
|
|
52
|
-
|
|
53
|
-
case "$1" in
|
|
54
|
-
--version|-v)
|
|
55
|
-
# Tools that sniff "ntn version" succeed with our shim line. The real
|
|
56
|
-
# version lives host-side and is reported by the relay's readiness probe
|
|
57
|
-
# (`assertIntegrationReady`).
|
|
58
|
-
printf 'ntn version 0.0.0 (agentbox-shim)\n'
|
|
59
|
-
;;
|
|
60
|
-
--help|-h)
|
|
61
|
-
printf 'agentbox notion shim — strict subset.\n' >&2
|
|
62
|
-
printf 'Supported: whoami, api <path> [inputs] [-d JSON], pages {create, update}, --version\n' >&2
|
|
63
|
-
printf 'api is read-only: GET to any endpoint; POST only to v1/search and\n' >&2
|
|
64
|
-
printf 'v1/{databases,data_sources}/{id}/query. Writes go through `pages`.\n' >&2
|
|
65
|
-
printf 'Anything else is rejected. Run host `ntn --help` for full upstream docs.\n' >&2
|
|
66
|
-
;;
|
|
67
|
-
whoami)
|
|
68
|
-
shift
|
|
69
|
-
exec "$CTL" integration notion whoami -- "$@"
|
|
70
|
-
;;
|
|
71
|
-
api)
|
|
72
|
-
shift
|
|
73
|
-
# Forward verbatim to mirror real `ntn api` (options may precede the path;
|
|
74
|
-
# `ls`/`help`/`--spec`/`--docs` and `-d <JSON>` bodies are all valid). The
|
|
75
|
-
# relay's refuseUnsafeApiCall is the security boundary: GET to any endpoint,
|
|
76
|
-
# POST only to read endpoints (v1/search, v1/databases/{id}/query,
|
|
77
|
-
# v1/data_sources/{id}/query); every other method/endpoint is refused.
|
|
78
|
-
# Writes go through the dedicated `pages create/update` ops.
|
|
79
|
-
exec "$CTL" integration notion api -- "$@"
|
|
80
|
-
;;
|
|
81
|
-
pages)
|
|
82
|
-
shift
|
|
83
|
-
handle_pages "$@"
|
|
84
|
-
;;
|
|
85
|
-
comment|comments)
|
|
86
|
-
# The T1 connector intentionally has no comment op — `ntn` exposes no
|
|
87
|
-
# top-level `comment` subcommand and Notion's REST POST /v1/comments
|
|
88
|
-
# takes a structured JSON body that doesn't trivially map from CLI
|
|
89
|
-
# flags. Tracked as a focused follow-up in docs/notion_backlog.md.
|
|
90
|
-
die "comment ops not supported yet (deferred from T2; see docs/notion_backlog.md)"
|
|
91
|
-
;;
|
|
92
|
-
*)
|
|
93
|
-
die "'$1' is not proxied (supported: whoami, api <endpoint>, pages {create,update}, --version)"
|
|
94
|
-
;;
|
|
95
|
-
esac
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# agentbox `linear` shim — translates a strict subset of `linear`
|
|
3
|
-
# (@schpet/linear-cli, v2) subcommands into `agentbox-ctl integration
|
|
4
|
-
# linear <op>` so the host's authenticated `linear` runs the operation and
|
|
5
|
-
# only the result crosses back into the box. The in-box agent never sees a
|
|
6
|
-
# Linear API token.
|
|
7
|
-
#
|
|
8
|
-
# Installed at /usr/local/bin/linear (real `linear` is not in the box).
|
|
9
|
-
#
|
|
10
|
-
# This shim ships only what documented agent flows need; anything outside
|
|
11
|
-
# the subset below is rejected with a clear error. Add ops deliberately —
|
|
12
|
-
# the relay is gated by `integrations.linear.enabled` and an explicit op
|
|
13
|
-
# allowlist in @agentbox/integrations.
|
|
14
|
-
#
|
|
15
|
-
# Three classes of upstream subcommand are EXPLICITLY rejected even though
|
|
16
|
-
# they exist on the host CLI, because proxying them would defeat the
|
|
17
|
-
# security model:
|
|
18
|
-
# - `auth token` PRINTS the raw API token to stdout — proxying it would
|
|
19
|
-
# hand the box the host's Linear credential. The only auth-family op
|
|
20
|
-
# we proxy is `auth whoami` (identity only), via `linear whoami`.
|
|
21
|
-
# - `auth login/logout/migrate/default` would mutate host auth state.
|
|
22
|
-
# - `issue delete` / `team delete` / `team create` are destructive and
|
|
23
|
-
# off-list (widen deliberately, as gated writes, only if needed).
|
|
24
|
-
|
|
25
|
-
set -euo pipefail
|
|
26
|
-
|
|
27
|
-
# Path is a constant in production; the env override exists purely to let
|
|
28
|
-
# unit tests substitute a stub `agentbox-ctl` on PATH without rewriting the
|
|
29
|
-
# shim. Mirrors gh-shim / git-shim / ntn-shim.
|
|
30
|
-
CTL="${AGENTBOX_CTL_PATH:-/usr/local/bin/agentbox-ctl}"
|
|
31
|
-
|
|
32
|
-
die() {
|
|
33
|
-
printf 'agentbox linear shim: %s\n' "$*" >&2
|
|
34
|
-
exit 2
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
handle_auth() {
|
|
38
|
-
local sub="${1-}"; shift || true
|
|
39
|
-
case "$sub" in
|
|
40
|
-
whoami)
|
|
41
|
-
exec "$CTL" integration linear whoami -- "$@"
|
|
42
|
-
;;
|
|
43
|
-
token)
|
|
44
|
-
die "'auth token' leaks the raw API key — refused. Use 'linear whoami' for identity."
|
|
45
|
-
;;
|
|
46
|
-
login|logout|migrate|default)
|
|
47
|
-
die "'auth $sub' is not proxied (the host owns auth; run it on the host)."
|
|
48
|
-
;;
|
|
49
|
-
'')
|
|
50
|
-
die "missing subcommand for 'auth'. Supported: whoami"
|
|
51
|
-
;;
|
|
52
|
-
*)
|
|
53
|
-
die "unsupported 'auth $sub' (allowed: whoami)"
|
|
54
|
-
;;
|
|
55
|
-
esac
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
handle_issue_comment() {
|
|
59
|
-
local sub="${1-}"; shift || true
|
|
60
|
-
case "$sub" in
|
|
61
|
-
add)
|
|
62
|
-
exec "$CTL" integration linear issue.comment -- "$@"
|
|
63
|
-
;;
|
|
64
|
-
'')
|
|
65
|
-
die "missing subcommand for 'issue comment'. Supported: add"
|
|
66
|
-
;;
|
|
67
|
-
*)
|
|
68
|
-
die "unsupported 'issue comment $sub' (allowed: add)"
|
|
69
|
-
;;
|
|
70
|
-
esac
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
handle_issue() {
|
|
74
|
-
local sub="${1-}"; shift || true
|
|
75
|
-
case "$sub" in
|
|
76
|
-
list)
|
|
77
|
-
exec "$CTL" integration linear issue.list -- "$@"
|
|
78
|
-
;;
|
|
79
|
-
mine)
|
|
80
|
-
exec "$CTL" integration linear issue.mine -- "$@"
|
|
81
|
-
;;
|
|
82
|
-
view)
|
|
83
|
-
exec "$CTL" integration linear issue.view -- "$@"
|
|
84
|
-
;;
|
|
85
|
-
query)
|
|
86
|
-
exec "$CTL" integration linear issue.query -- "$@"
|
|
87
|
-
;;
|
|
88
|
-
create)
|
|
89
|
-
exec "$CTL" integration linear issue.create -- "$@"
|
|
90
|
-
;;
|
|
91
|
-
update)
|
|
92
|
-
exec "$CTL" integration linear issue.update -- "$@"
|
|
93
|
-
;;
|
|
94
|
-
comment)
|
|
95
|
-
handle_issue_comment "$@"
|
|
96
|
-
;;
|
|
97
|
-
delete)
|
|
98
|
-
die "'issue delete' is not proxied (destructive; off-list by default)."
|
|
99
|
-
;;
|
|
100
|
-
'')
|
|
101
|
-
die "missing subcommand for 'issue'. Supported: list, mine, view, query, create, update, comment add"
|
|
102
|
-
;;
|
|
103
|
-
*)
|
|
104
|
-
die "unsupported 'issue $sub' (allowed: list, mine, view, query, create, update, comment add)"
|
|
105
|
-
;;
|
|
106
|
-
esac
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
handle_team() {
|
|
110
|
-
local sub="${1-}"; shift || true
|
|
111
|
-
case "$sub" in
|
|
112
|
-
list)
|
|
113
|
-
exec "$CTL" integration linear team.list -- "$@"
|
|
114
|
-
;;
|
|
115
|
-
create|delete)
|
|
116
|
-
die "'team $sub' is not proxied (destructive; off-list by default)."
|
|
117
|
-
;;
|
|
118
|
-
'')
|
|
119
|
-
die "missing subcommand for 'team'. Supported: list"
|
|
120
|
-
;;
|
|
121
|
-
*)
|
|
122
|
-
die "unsupported 'team $sub' (allowed: list)"
|
|
123
|
-
;;
|
|
124
|
-
esac
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
# Top-level dispatch. `linear`'s real subcommands are
|
|
128
|
-
# `auth issue team project cycle milestone initiative label document api schema`;
|
|
129
|
-
# we expose only the read-safe ones plus a few gated writes (no destructive
|
|
130
|
-
# ops, no auth token).
|
|
131
|
-
if [ $# -eq 0 ]; then
|
|
132
|
-
die "no subcommand. Supported: whoami, auth whoami, issue {list,mine,view,query,create,update,comment add}, team list, api <query>, --version"
|
|
133
|
-
fi
|
|
134
|
-
|
|
135
|
-
case "$1" in
|
|
136
|
-
--version|-v)
|
|
137
|
-
# Tools that sniff "linear --version" succeed with our shim line. The
|
|
138
|
-
# real version lives host-side and is reported by the relay's
|
|
139
|
-
# readiness probe (`assertIntegrationReady`).
|
|
140
|
-
printf 'linear version 0.0.0 (agentbox-shim)\n'
|
|
141
|
-
;;
|
|
142
|
-
--help|-h)
|
|
143
|
-
printf 'agentbox linear shim — strict subset.\n' >&2
|
|
144
|
-
printf 'Supported: whoami, auth whoami, issue {list,mine,view,query,create,update,comment add}, team list, api <query>, --version\n' >&2
|
|
145
|
-
printf 'Anything else is rejected. Run host `linear --help` for full upstream docs.\n' >&2
|
|
146
|
-
;;
|
|
147
|
-
whoami)
|
|
148
|
-
shift
|
|
149
|
-
exec "$CTL" integration linear whoami -- "$@"
|
|
150
|
-
;;
|
|
151
|
-
auth)
|
|
152
|
-
shift
|
|
153
|
-
handle_auth "$@"
|
|
154
|
-
;;
|
|
155
|
-
issue)
|
|
156
|
-
shift
|
|
157
|
-
handle_issue "$@"
|
|
158
|
-
;;
|
|
159
|
-
team)
|
|
160
|
-
shift
|
|
161
|
-
handle_team "$@"
|
|
162
|
-
;;
|
|
163
|
-
api)
|
|
164
|
-
shift
|
|
165
|
-
# `linear api` accepts pre-positional flags (`--variable`,
|
|
166
|
-
# `--variables-json`, `--paginate`, `--silent`) before the GraphQL
|
|
167
|
-
# query, so we don't require the FIRST arg to be a non-flag — only
|
|
168
|
-
# that some arg is present. The relay's refuseGraphqlNonQuery
|
|
169
|
-
# enforces query-only by rejecting any positional whose first
|
|
170
|
-
# keyword is `mutation`/`subscription` (and any `--variable
|
|
171
|
-
# key=@<path>` host-file load), so we don't duplicate that check
|
|
172
|
-
# here. Writes go through the dedicated issue.* ops.
|
|
173
|
-
if [ $# -eq 0 ]; then
|
|
174
|
-
die "'api' requires a positional <query> (e.g. '{ teams { id } }')"
|
|
175
|
-
fi
|
|
176
|
-
exec "$CTL" integration linear api -- "$@"
|
|
177
|
-
;;
|
|
178
|
-
*)
|
|
179
|
-
die "'$1' is not proxied (supported: whoami, issue {list,mine,view,query,create,update,comment add}, team list, api <query>, --version)"
|
|
180
|
-
;;
|
|
181
|
-
esac
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# agentbox `ntn` shim — translates a strict subset of `ntn` (the official
|
|
3
|
-
# Notion CLI) subcommands into `agentbox-ctl integration notion <op>` so the
|
|
4
|
-
# host's authenticated `ntn` runs the operation and only the result crosses
|
|
5
|
-
# back into the box. The in-box agent never sees a Notion token.
|
|
6
|
-
#
|
|
7
|
-
# Installed at /usr/local/bin/ntn (real `ntn` is not in the box). The same
|
|
8
|
-
# shim is symlinked as /usr/local/bin/notion — the per-service surface name
|
|
9
|
-
# from docs/integrations_backlog.md — both invocations behave identically.
|
|
10
|
-
#
|
|
11
|
-
# This shim ships only what documented agent flows need; anything outside
|
|
12
|
-
# the subset below is rejected with a clear error. Add ops deliberately —
|
|
13
|
-
# the relay is gated by `integrations.notion.enabled` and an explicit op
|
|
14
|
-
# allowlist in @agentbox/integrations.
|
|
15
|
-
|
|
16
|
-
set -euo pipefail
|
|
17
|
-
|
|
18
|
-
# Path is a constant in production; the env override exists purely to let
|
|
19
|
-
# unit tests substitute a stub `agentbox-ctl` on PATH without rewriting the
|
|
20
|
-
# shim. Mirrors gh-shim / git-shim.
|
|
21
|
-
CTL="${AGENTBOX_CTL_PATH:-/usr/local/bin/agentbox-ctl}"
|
|
22
|
-
|
|
23
|
-
die() {
|
|
24
|
-
printf 'agentbox notion shim: %s\n' "$*" >&2
|
|
25
|
-
exit 2
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
handle_pages() {
|
|
29
|
-
local op="${1-}"; shift || true
|
|
30
|
-
case "$op" in
|
|
31
|
-
create)
|
|
32
|
-
exec "$CTL" integration notion page.create -- "$@"
|
|
33
|
-
;;
|
|
34
|
-
update)
|
|
35
|
-
exec "$CTL" integration notion page.update -- "$@"
|
|
36
|
-
;;
|
|
37
|
-
'')
|
|
38
|
-
die "missing subcommand for 'pages'. Supported: create, update"
|
|
39
|
-
;;
|
|
40
|
-
*)
|
|
41
|
-
die "unsupported 'pages $op' (allowed: create, update)"
|
|
42
|
-
;;
|
|
43
|
-
esac
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
# Top-level dispatch. `ntn`'s real subcommands are
|
|
47
|
-
# `api datasources files pages login logout whoami workers`; we expose only
|
|
48
|
-
# the read-safe ones plus `pages {create,update}`.
|
|
49
|
-
if [ $# -eq 0 ]; then
|
|
50
|
-
die "no subcommand. Supported: whoami, api <endpoint>, pages {create,update}, --version"
|
|
51
|
-
fi
|
|
52
|
-
|
|
53
|
-
case "$1" in
|
|
54
|
-
--version|-v)
|
|
55
|
-
# Tools that sniff "ntn version" succeed with our shim line. The real
|
|
56
|
-
# version lives host-side and is reported by the relay's readiness probe
|
|
57
|
-
# (`assertIntegrationReady`).
|
|
58
|
-
printf 'ntn version 0.0.0 (agentbox-shim)\n'
|
|
59
|
-
;;
|
|
60
|
-
--help|-h)
|
|
61
|
-
printf 'agentbox notion shim — strict subset.\n' >&2
|
|
62
|
-
printf 'Supported: whoami, api <path> [inputs] [-d JSON], pages {create, update}, --version\n' >&2
|
|
63
|
-
printf 'api is read-only: GET to any endpoint; POST only to v1/search and\n' >&2
|
|
64
|
-
printf 'v1/{databases,data_sources}/{id}/query. Writes go through `pages`.\n' >&2
|
|
65
|
-
printf 'Anything else is rejected. Run host `ntn --help` for full upstream docs.\n' >&2
|
|
66
|
-
;;
|
|
67
|
-
whoami)
|
|
68
|
-
shift
|
|
69
|
-
exec "$CTL" integration notion whoami -- "$@"
|
|
70
|
-
;;
|
|
71
|
-
api)
|
|
72
|
-
shift
|
|
73
|
-
# Forward verbatim to mirror real `ntn api` (options may precede the path;
|
|
74
|
-
# `ls`/`help`/`--spec`/`--docs` and `-d <JSON>` bodies are all valid). The
|
|
75
|
-
# relay's refuseUnsafeApiCall is the security boundary: GET to any endpoint,
|
|
76
|
-
# POST only to read endpoints (v1/search, v1/databases/{id}/query,
|
|
77
|
-
# v1/data_sources/{id}/query); every other method/endpoint is refused.
|
|
78
|
-
# Writes go through the dedicated `pages create/update` ops.
|
|
79
|
-
exec "$CTL" integration notion api -- "$@"
|
|
80
|
-
;;
|
|
81
|
-
pages)
|
|
82
|
-
shift
|
|
83
|
-
handle_pages "$@"
|
|
84
|
-
;;
|
|
85
|
-
comment|comments)
|
|
86
|
-
# The T1 connector intentionally has no comment op — `ntn` exposes no
|
|
87
|
-
# top-level `comment` subcommand and Notion's REST POST /v1/comments
|
|
88
|
-
# takes a structured JSON body that doesn't trivially map from CLI
|
|
89
|
-
# flags. Tracked as a focused follow-up in docs/notion_backlog.md.
|
|
90
|
-
die "comment ops not supported yet (deferred from T2; see docs/notion_backlog.md)"
|
|
91
|
-
;;
|
|
92
|
-
*)
|
|
93
|
-
die "'$1' is not proxied (supported: whoami, api <endpoint>, pages {create,update}, --version)"
|
|
94
|
-
;;
|
|
95
|
-
esac
|