@madarco/agentbox 0.21.0 → 0.22.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 +109 -0
- package/README.md +32 -0
- package/dist/{_cloud-attach-U3QJO7IF.js → _cloud-attach-YH2SU75S.js} +5 -4
- package/dist/chunk-ALEYDWAO.js +2561 -0
- package/dist/chunk-ALEYDWAO.js.map +1 -0
- package/dist/{chunk-QKL7PCXQ.js → chunk-CDEJ2GQK.js} +836 -488
- package/dist/chunk-CDEJ2GQK.js.map +1 -0
- package/dist/{chunk-PX7G4PSI.js → chunk-GGWVTWJM.js} +65 -34
- package/dist/{chunk-PX7G4PSI.js.map → chunk-GGWVTWJM.js.map} +1 -1
- package/dist/chunk-KBVD2UUQ.js +1654 -0
- package/dist/chunk-KBVD2UUQ.js.map +1 -0
- package/dist/{chunk-IXQTUXWV.js → chunk-O2NDZQHN.js} +50 -52
- package/dist/{chunk-IXQTUXWV.js.map → chunk-O2NDZQHN.js.map} +1 -1
- package/dist/{dist-NWKOEWUJ.js → chunk-O67ZESNL.js} +1059 -109
- package/dist/chunk-O67ZESNL.js.map +1 -0
- package/dist/chunk-VBSRJG53.js +1241 -0
- package/dist/chunk-VBSRJG53.js.map +1 -0
- package/dist/{chunk-6JJIKCMY.js → chunk-W2FLHB54.js} +26 -56
- package/dist/chunk-W2FLHB54.js.map +1 -0
- package/dist/{chunk-YZVFGFYQ.js → chunk-YZXXBHWG.js} +1937 -2975
- package/dist/chunk-YZXXBHWG.js.map +1 -0
- package/dist/{dist-SAS4PIHA.js → dist-EJXUKIR7.js} +41 -36
- package/dist/{dist-UVQJ2BZJ.js → dist-LJHS4PTC.js} +112 -62
- package/dist/dist-LJHS4PTC.js.map +1 -0
- package/dist/dist-QBXEP4VY.js +89 -0
- package/dist/dist-QNV4H6NN.js +80 -0
- package/dist/dist-QNV4H6NN.js.map +1 -0
- package/dist/{dist-FMA5Y25B.js → dist-UR2DB2HT.js} +83 -9
- package/dist/dist-UR2DB2HT.js.map +1 -0
- package/dist/dist-YECTRVGD.js +102 -0
- package/dist/dist-YECTRVGD.js.map +1 -0
- package/dist/index.js +3243 -1448
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-MQHD3M5F-YYVVMTNJ.js → prepared-state-5FIGV4BE-BMUK63FD.js} +2 -2
- package/dist/prepared-state-5FIGV4BE-BMUK63FD.js.map +1 -0
- package/package.json +12 -5
- package/runtime/_shared/agentbox-checkpoint-cleanup +55 -0
- package/runtime/_shared/agentbox-codex-hooks.json +68 -0
- package/runtime/_shared/agentbox-dockerd-start +145 -0
- package/runtime/_shared/agentbox-open +28 -0
- package/runtime/_shared/agentbox-portless-trust +82 -0
- package/runtime/_shared/agentbox-setup-skill.md +317 -0
- package/runtime/_shared/agentbox-vnc-start +102 -0
- package/runtime/_shared/claude-managed-settings.json +116 -0
- package/runtime/_shared/ctl.cjs +27469 -0
- package/runtime/_shared/gh-shim +344 -0
- package/runtime/_shared/git-shim +131 -0
- package/runtime/_shared/linear-shim +181 -0
- package/runtime/_shared/ntn-shim +95 -0
- package/runtime/_shared/opencode-agentbox-plugin.js +76 -0
- package/runtime/docker/Dockerfile.box +30 -17
- package/runtime/docker/packages/ctl/dist/bin.cjs +11871 -10351
- package/runtime/e2b/ctl.cjs +11871 -10351
- package/runtime/e2b/scripts/build-template.sh +31 -15
- package/runtime/hetzner/ctl.cjs +11871 -10351
- package/runtime/hetzner/scripts/install-box.sh +37 -19
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -0
- package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +36 -0
- package/runtime/hub/apps/hub/.next/build-manifest.json +21 -0
- package/runtime/hub/apps/hub/.next/package.json +1 -0
- package/runtime/hub/apps/hub/.next/prerender-manifest.json +36 -0
- package/runtime/hub/apps/hub/.next/required-server-files.json +350 -0
- package/runtime/hub/apps/hub/.next/routes-manifest.json +292 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/api/auth/[...all]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js +14 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js +7 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/events/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js +7 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/jobs/[id]/logs/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js +7 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/health/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js +7 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page/server-reference-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page/server-reference-manifest.json +137 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page/server-reference-manifest.json +125 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page/server-reference-manifest.json +89 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js +16 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/next-font-manifest.json +6 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.meta +15 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +14 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +14 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/build-manifest.json +17 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/next-font-manifest.json +13 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/react-loadable-manifest.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js +13 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +36 -0
- package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_0jw_ngm._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_0z6cvsk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_210bxd8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/01te_@better-auth_kysely-adapter_dist_index_mjs_0h-j5xt._.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(auth)_api_auth_[___all]_route_actions_1agi0ag.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_boxes_route_actions_1ggp_5o.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_health_route_actions_017gnzg.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_projects_route_actions_04w8ozk.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/09mp_@better-auth_memory-adapter_dist_index_mjs_0ti_30h._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/09xn_next_0tn6frk._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0d-b_next_dist_server_app-render_after-task-async-storage_external_0-exn7p.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_095p8vu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0m4a_kysely_dist_1skbhvx._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0sj1_@opentelemetry_api_build_esm_index_0xy-j06.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_jobs_[id]_logs_route_actions_01aqmf3.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_approvals_route_actions_1vwxs9a.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_boxes_[id]_route_actions_01510xg.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_jobs_[id]_route_actions_0oc630h.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_openapi_json_route_actions_1lunxjz.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_providers_route_actions_1666ry8.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_projects_[id]_route_actions_1beikpx.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0zhp_better-auth_dist_adapters_kysely-adapter_index_mjs_1rl4qnh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/151__@better-auth_core_dist_0ecdp_3._.js +5 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_approvals_[id]_answer_route_actions_1cq4z5x.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_[action]_route_actions_0cib0ju.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_branches_route_actions_15snjix.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_git_[op]_route_actions_116a41w.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_git_route_actions_1a-q-i2.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_services_restart_route_actions_1yvsbmm.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_boxes_[id]_services_route_actions_1uvv36v.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_jobs_[id]_login-code_route_actions_1825jmw.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_jobs_[id]_logs_route_actions_0msc0_w.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_projects_[id]_branches_route_actions_07i0vrw.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_credentials_route_actions_1cds5re.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_providers_[id]_prepare_route_actions_079fbng.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[externals]__12m3qoa._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[externals]_pg_15jfwkh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04h15ml._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__04jgk9x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__07ednlo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d1lmiq._.js +105 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ig1bot._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ql4fjo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0se1fty._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t7o5ed._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vs8fma._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0vxaujy._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w9ud8u._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yhb0gc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-9g0ae._.js +461 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13jwk_k._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16_uteg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16p2m-g._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19pc87s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_gu2yk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ai-945._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +14 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bu2zio._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ctczev._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d6mtlk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d75vsx._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dn_3i1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1e4z_-v._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f2sueq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1f9zctr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hqla7-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1js2jdv._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mttufy._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1nepkp-._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1pp5oib._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q5bqse._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +14 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qwhzmi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1v9om6g._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xeczo7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20503l7._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[turbopack]_runtime.js +903 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_033w048._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_06f2faq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_0760z6y._.js +27 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_0pyhcqe._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1-42ili._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_11__3wi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_12flzuh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1rpkqst._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1wt72m1._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1x3l5t8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_events_route_actions_17s9lxs.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_(dashboard)_api_v1_docs_route_actions_0d-s_oo.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub__next-internal_server_app_[___path]_route_actions_1hdraye.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +86 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/044u_hub__next-internal_server_app_(dashboard)_projects_[id]_page_actions_15f56np.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0iwlo01._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_0xy-j7z._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_20xzgz2._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_forbidden_1x5yo9-.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_global-error_14poel6.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_client_components_builtin_unauthorized_0vj9qge.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_010858m.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_04zwxnx.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_06exuc7.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2ldrt.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_0f2tzep.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_116nh32.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_11dyjcb.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_esm_build_templates_app-page_1_4knli.js +4 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[externals]_pg_15jfwkh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[externals]_pg_20c820g._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__03-x9xy._.js +19 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__08-1wwu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0c9mbcn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0cpdgd0._.js +33 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0gdfxj4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0j0tjwn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0kc-hwp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__0lu73p6._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__10bfmwi._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__18qvdzb._.js +33 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1bq2f8q._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1c1x9zr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1he4k-q._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1l2urlw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[turbopack]_runtime.js +903 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_04br1ft._.js +6 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_09gdzmo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0kpdmm-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ozyjt1._.js +21 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0ro6vh6._.js +27 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0tgpglr._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1laion6._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0_lzzn3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0b_hsjl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(auth)_signin_page_actions_1vmiwl7.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_approvals_page_actions_1mi0bpn.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_boxes_[id]_page_actions_0k7kgn2.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_page_actions_1t3u0xy.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app_(dashboard)_settings_page_actions_0ti7gxm.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app__global-error_page_actions_1ofuxm1.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub__next-internal_server_app__not-found_page_actions_1fmdkci.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_[id]_page_tsx_1-j_972._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_components_1z1p98f._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_lib_auth_client_ts_1uxjxr_._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/node_modules__pnpm_04qfi10._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/node_modules__pnpm_0kvuy0s._.js +33 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +80 -0
- package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +40 -0
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +21 -0
- package/runtime/hub/apps/hub/.next/server/middleware-manifest.json +6 -0
- package/runtime/hub/apps/hub/.next/server/middleware.js +5 -0
- package/runtime/hub/apps/hub/.next/server/next-font-manifest.js +1 -0
- package/runtime/hub/apps/hub/.next/server/next-font-manifest.json +49 -0
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -0
- package/runtime/hub/apps/hub/.next/server/pages-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/prefetch-hints.json +1 -0
- package/runtime/hub/apps/hub/.next/server/server-reference-manifest.js +1 -0
- package/runtime/hub/apps/hub/.next/server/server-reference-manifest.json +276 -0
- package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_buildManifest.js +11 -0
- package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_clientMiddlewareManifest.js +6 -0
- package/runtime/hub/apps/hub/.next/static/TpPTWVdZDxqrPlONtJcR5/_ssgManifest.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/0cz1d0mv5g_q7.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/0dx4alyqu7cq1.css +3 -0
- package/runtime/hub/apps/hub/.next/static/chunks/0lq354ziiwxxl.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/0ptag81psa0nj.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/11vmjdy3390ik.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/19cwkdx97a5_c.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/1svigjdfotduh.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/1t3645mc1s54c.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/1y49eldffr2-_.js +31 -0
- package/runtime/hub/apps/hub/.next/static/chunks/26ef4lcj-7-li.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/2d5e6t-5j4etp.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/2ozcn3ku69ymf.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/2w65a9zig6ya7.js +4 -0
- package/runtime/hub/apps/hub/.next/static/chunks/2x7nfpuaaba_a.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3-zanu4ioia5i.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3c49t4evjq8hf.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3x8k7so-uoat8.js +2 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3y2c7woqhtx9s.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/turbopack-2x4_cva4cco3h.js +1 -0
- package/runtime/hub/apps/hub/.next/static/media/02263ebadd758ea4-s.29yke99gs9qpn.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/03fc1b4a8d284b5e-s.p.0wiir8udbzjvx.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/1a69062cfe6f77f8-s.0o-3_g79811ob.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/1bcd0e671759a44c-s.2qt3tdwt-y9x_.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/23b7a97ae3b5c134-s.p.226pwps5o-gq_.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2e95a7d252b9825a-s.15orukf5wyxb5.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/2fe89d53234c61d4-s.1u30mmyq6lnsd.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/57215795b8570f5c-s.2rixgazldzomk.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/59b15b4bcd7b1eb5-s.2vemzm0itqzfy.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/5e05ae5b48faa55e-s.1yd4_i3e35931.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/68757d6cddeff913-s.1i-sca43-qwng.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/6ff74e33ebd7bca3-s.352ti9pm7m6qh.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/7fea77d1d19108bf-s.2y65deuc30pmy.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/90c51ce8fb754fe8-s.02z5rrbg5nt92.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/99e609270109b47d-s.p.40sczeszzbjw1.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/9a4838fcda0d1bca-s.0ngr-xkgqz1kf.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/a7afbb44bec2bb18-s.1qc6dx89jd2qv.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e15f58668ad64cb8-s.3cvcemwuzoywn.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e390973e931a41c5-s.0rgnxg2b64rzs.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/e532fa1b9921e1cd-s.3cb5lpr2l6xud.woff2 +0 -0
- package/runtime/hub/apps/hub/.next/static/media/effe91970fc4db64-s.p.0oace-s_gkfks.woff2 +0 -0
- package/runtime/hub/apps/hub/auth-YBXDRLHG.js +75 -0
- package/runtime/hub/apps/hub/auth-config-LJGI76HI.js +21 -0
- package/runtime/hub/apps/hub/chunk-3LAHFDJF.js +287 -0
- package/runtime/hub/apps/hub/chunk-AKLBSCSZ.js +8573 -0
- package/runtime/hub/apps/hub/chunk-EFW34I43.js +7299 -0
- package/runtime/hub/apps/hub/chunk-JDA7BPPN.js +2806 -0
- package/runtime/hub/apps/hub/chunk-LJG4CEGS.js +3341 -0
- package/runtime/hub/apps/hub/chunk-OBKLTPIR.js +41 -0
- package/runtime/hub/apps/hub/chunk-OF242BLD.js +797 -0
- package/runtime/hub/apps/hub/chunk-TZFWAJVB.js +38 -0
- package/runtime/hub/apps/hub/chunk-V5KGFHCF.js +12683 -0
- package/runtime/hub/apps/hub/cloud-poller-SUNA6ZQC-VSKVMYHL.js +10 -0
- package/runtime/hub/apps/hub/dist-BF54UNHK.js +1029 -0
- package/runtime/hub/apps/hub/dist-CM4YAQLI.js +1656 -0
- package/runtime/hub/apps/hub/dist-ELOY2IUE.js +533 -0
- package/runtime/hub/apps/hub/dist-FDBOJ74K.js +1085 -0
- package/runtime/hub/apps/hub/dist-GGM4BUKM.js +2281 -0
- package/runtime/hub/apps/hub/dist-IENF7YOD.js +88 -0
- package/runtime/hub/apps/hub/execa-4DLVNM6E.js +32 -0
- package/runtime/hub/apps/hub/hub-token-EW32VDIU.js +25 -0
- package/runtime/hub/apps/hub/package.json +55 -0
- package/runtime/hub/apps/hub/prepared-state-5FIGV4BE-FIXKBF5A.js +19 -0
- package/runtime/hub/apps/hub/public/logo.svg +5 -0
- package/runtime/hub/apps/hub/server.js +838 -0
- package/runtime/relay/bin.cjs +1738 -482
- package/runtime/vercel/ctl.cjs +11871 -10351
- package/runtime/vercel/scripts/provision.sh +31 -15
- package/dist/chunk-6JJIKCMY.js.map +0 -1
- package/dist/chunk-DBMLOY3T.js +0 -793
- package/dist/chunk-DBMLOY3T.js.map +0 -1
- package/dist/chunk-KTEDFUKM.js +0 -831
- package/dist/chunk-KTEDFUKM.js.map +0 -1
- package/dist/chunk-QKL7PCXQ.js.map +0 -1
- package/dist/chunk-X2DWS4KS.js +0 -820
- package/dist/chunk-X2DWS4KS.js.map +0 -1
- package/dist/chunk-YZVFGFYQ.js.map +0 -1
- package/dist/dist-FMA5Y25B.js.map +0 -1
- package/dist/dist-NWKOEWUJ.js.map +0 -1
- package/dist/dist-U76JL6HI.js +0 -738
- package/dist/dist-U76JL6HI.js.map +0 -1
- package/dist/dist-UVQJ2BZJ.js.map +0 -1
- /package/dist/{_cloud-attach-U3QJO7IF.js.map → _cloud-attach-YH2SU75S.js.map} +0 -0
- /package/dist/{dist-SAS4PIHA.js.map → dist-EJXUKIR7.js.map} +0 -0
- /package/dist/{prepared-state-MQHD3M5F-YYVVMTNJ.js.map → dist-QBXEP4VY.js.map} +0 -0
package/dist/chunk-DBMLOY3T.js
DELETED
|
@@ -1,793 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
computeContextSha256,
|
|
4
|
-
hostOpenCommand,
|
|
5
|
-
preparedStatePathFor,
|
|
6
|
-
readPreparedStateRaw,
|
|
7
|
-
writePreparedStateRaw
|
|
8
|
-
} from "./chunk-X2DWS4KS.js";
|
|
9
|
-
|
|
10
|
-
// ../../packages/sandbox-hetzner/dist/chunk-5VC37LHW.js
|
|
11
|
-
import { existsSync, readFileSync } from "fs";
|
|
12
|
-
import { homedir } from "os";
|
|
13
|
-
import { resolve } from "path";
|
|
14
|
-
import { spawnSync } from "child_process";
|
|
15
|
-
import {
|
|
16
|
-
chmodSync,
|
|
17
|
-
existsSync as existsSync2,
|
|
18
|
-
mkdirSync,
|
|
19
|
-
readFileSync as readFileSync2,
|
|
20
|
-
renameSync,
|
|
21
|
-
writeFileSync
|
|
22
|
-
} from "fs";
|
|
23
|
-
import { homedir as homedir2 } from "os";
|
|
24
|
-
import { dirname, resolve as resolve2 } from "path";
|
|
25
|
-
import {
|
|
26
|
-
cancel,
|
|
27
|
-
confirm,
|
|
28
|
-
isCancel,
|
|
29
|
-
intro,
|
|
30
|
-
log,
|
|
31
|
-
note,
|
|
32
|
-
outro,
|
|
33
|
-
password,
|
|
34
|
-
spinner
|
|
35
|
-
} from "@clack/prompts";
|
|
36
|
-
import { existsSync as existsSync3 } from "fs";
|
|
37
|
-
import { dirname as dirname2, resolve as resolve3 } from "path";
|
|
38
|
-
import { fileURLToPath } from "url";
|
|
39
|
-
var HETZNER_KEYS = ["HCLOUD_TOKEN", "HCLOUD_ENDPOINT"];
|
|
40
|
-
var loaded = false;
|
|
41
|
-
function ensureHetznerEnvLoaded() {
|
|
42
|
-
if (loaded) return;
|
|
43
|
-
loaded = true;
|
|
44
|
-
importHetznerFromFile(resolve(homedir(), ".agentbox", "secrets.env"));
|
|
45
|
-
}
|
|
46
|
-
function importHetznerFromFile(path) {
|
|
47
|
-
if (!existsSync(path)) return;
|
|
48
|
-
let body;
|
|
49
|
-
try {
|
|
50
|
-
body = readFileSync(path, "utf8");
|
|
51
|
-
} catch {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
const parsed = parseEnvFile(body);
|
|
55
|
-
for (const key of HETZNER_KEYS) {
|
|
56
|
-
if (process.env[key] !== void 0) continue;
|
|
57
|
-
const value = parsed[key];
|
|
58
|
-
if (typeof value === "string") {
|
|
59
|
-
process.env[key] = value;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function parseEnvFile(body) {
|
|
64
|
-
const out = {};
|
|
65
|
-
for (const rawLine of body.split(/\r?\n/)) {
|
|
66
|
-
const line = rawLine.trim();
|
|
67
|
-
if (line.length === 0 || line.startsWith("#")) continue;
|
|
68
|
-
const stripped = line.startsWith("export ") ? line.slice("export ".length) : line;
|
|
69
|
-
const eq = stripped.indexOf("=");
|
|
70
|
-
if (eq <= 0) continue;
|
|
71
|
-
const key = stripped.slice(0, eq).trim();
|
|
72
|
-
let value = stripped.slice(eq + 1).trim();
|
|
73
|
-
if (value.length >= 2 && (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'"))) {
|
|
74
|
-
value = value.slice(1, -1);
|
|
75
|
-
}
|
|
76
|
-
out[key] = value;
|
|
77
|
-
}
|
|
78
|
-
return out;
|
|
79
|
-
}
|
|
80
|
-
var DEFAULT_HCLOUD_ENDPOINT = "https://api.hetzner.cloud/v1";
|
|
81
|
-
var HetznerApiError = class extends Error {
|
|
82
|
-
statusCode;
|
|
83
|
-
code;
|
|
84
|
-
details;
|
|
85
|
-
constructor(statusCode, code, message, details) {
|
|
86
|
-
super(`hetzner ${String(statusCode)} ${code}: ${message}`);
|
|
87
|
-
this.name = "HetznerApiError";
|
|
88
|
-
this.statusCode = statusCode;
|
|
89
|
-
this.code = code;
|
|
90
|
-
this.details = details;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
function makeHetznerClient(opts = {}) {
|
|
94
|
-
ensureHetznerEnvLoaded();
|
|
95
|
-
const rawToken = opts.token ?? process.env.HCLOUD_TOKEN;
|
|
96
|
-
if (!rawToken || rawToken.trim().length === 0) {
|
|
97
|
-
throw new Error(
|
|
98
|
-
"Hetzner credentials not configured: HCLOUD_TOKEN is empty.\nRun `agentbox hetzner login` interactively, or set HCLOUD_TOKEN in the environment."
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
const token = rawToken.trim();
|
|
102
|
-
const endpoint = (opts.endpoint ?? process.env.HCLOUD_ENDPOINT ?? DEFAULT_HCLOUD_ENDPOINT).replace(/\/$/, "");
|
|
103
|
-
const fetchImpl = opts.fetchImpl ?? fetch;
|
|
104
|
-
async function req(method, path, body) {
|
|
105
|
-
const url = `${endpoint}${path}`;
|
|
106
|
-
const init = {
|
|
107
|
-
method,
|
|
108
|
-
headers: {
|
|
109
|
-
Authorization: `Bearer ${token}`,
|
|
110
|
-
...body !== void 0 ? { "Content-Type": "application/json" } : {}
|
|
111
|
-
},
|
|
112
|
-
...body !== void 0 ? { body: JSON.stringify(body) } : {}
|
|
113
|
-
};
|
|
114
|
-
const res = await fetchImpl(url, init);
|
|
115
|
-
if (res.status === 204) return null;
|
|
116
|
-
if (res.status === 404) return null;
|
|
117
|
-
if (!res.ok) {
|
|
118
|
-
let parsed = {};
|
|
119
|
-
try {
|
|
120
|
-
parsed = await res.json();
|
|
121
|
-
} catch {
|
|
122
|
-
}
|
|
123
|
-
const code = parsed.error?.code ?? `http_${String(res.status)}`;
|
|
124
|
-
const msg = parsed.error?.message ?? res.statusText ?? "unknown error";
|
|
125
|
-
throw new HetznerApiError(res.status, code, msg, parsed.error?.details);
|
|
126
|
-
}
|
|
127
|
-
const text = await res.text();
|
|
128
|
-
if (text.length === 0) return null;
|
|
129
|
-
return JSON.parse(text);
|
|
130
|
-
}
|
|
131
|
-
async function reqExpect(method, path, body) {
|
|
132
|
-
const out = await req(method, path, body);
|
|
133
|
-
if (out === null) {
|
|
134
|
-
throw new HetznerApiError(0, "empty_response", `expected a body from ${method} ${path}`);
|
|
135
|
-
}
|
|
136
|
-
return out;
|
|
137
|
-
}
|
|
138
|
-
return {
|
|
139
|
-
async getServer(id) {
|
|
140
|
-
const r = await req("GET", `/servers/${String(id)}`);
|
|
141
|
-
return r?.server ?? null;
|
|
142
|
-
},
|
|
143
|
-
async createServer(reqBody) {
|
|
144
|
-
const r = await reqExpect(
|
|
145
|
-
"POST",
|
|
146
|
-
"/servers",
|
|
147
|
-
reqBody
|
|
148
|
-
);
|
|
149
|
-
return { server: r.server, action: r.action };
|
|
150
|
-
},
|
|
151
|
-
async listServers(opts2) {
|
|
152
|
-
const params = new URLSearchParams();
|
|
153
|
-
if (opts2?.label_selector) params.set("label_selector", opts2.label_selector);
|
|
154
|
-
params.set("per_page", "50");
|
|
155
|
-
const all = [];
|
|
156
|
-
let pageNum = 1;
|
|
157
|
-
while (true) {
|
|
158
|
-
params.set("page", String(pageNum));
|
|
159
|
-
const r = await reqExpect("GET", `/servers?${params.toString()}`);
|
|
160
|
-
all.push(...r.servers);
|
|
161
|
-
const next = r.meta?.pagination?.next_page;
|
|
162
|
-
if (typeof next !== "number") break;
|
|
163
|
-
pageNum = next;
|
|
164
|
-
}
|
|
165
|
-
return all;
|
|
166
|
-
},
|
|
167
|
-
async deleteServer(id) {
|
|
168
|
-
const r = await req("DELETE", `/servers/${String(id)}`);
|
|
169
|
-
return r?.action ?? null;
|
|
170
|
-
},
|
|
171
|
-
async powerOn(id) {
|
|
172
|
-
const r = await reqExpect(
|
|
173
|
-
"POST",
|
|
174
|
-
`/servers/${String(id)}/actions/poweron`
|
|
175
|
-
);
|
|
176
|
-
return r.action;
|
|
177
|
-
},
|
|
178
|
-
async powerOff(id) {
|
|
179
|
-
const r = await reqExpect(
|
|
180
|
-
"POST",
|
|
181
|
-
`/servers/${String(id)}/actions/poweroff`
|
|
182
|
-
);
|
|
183
|
-
return r.action;
|
|
184
|
-
},
|
|
185
|
-
async shutdown(id) {
|
|
186
|
-
const r = await reqExpect(
|
|
187
|
-
"POST",
|
|
188
|
-
`/servers/${String(id)}/actions/shutdown`
|
|
189
|
-
);
|
|
190
|
-
return r.action;
|
|
191
|
-
},
|
|
192
|
-
async createImage(id, body) {
|
|
193
|
-
const r = await reqExpect(
|
|
194
|
-
"POST",
|
|
195
|
-
`/servers/${String(id)}/actions/create_image`,
|
|
196
|
-
body
|
|
197
|
-
);
|
|
198
|
-
return { image: r.image, action: r.action };
|
|
199
|
-
},
|
|
200
|
-
async getImage(id) {
|
|
201
|
-
const r = await req("GET", `/images/${String(id)}`);
|
|
202
|
-
return r?.image ?? null;
|
|
203
|
-
},
|
|
204
|
-
async listImages(opts2) {
|
|
205
|
-
const params = new URLSearchParams();
|
|
206
|
-
if (opts2?.type) params.set("type", opts2.type);
|
|
207
|
-
if (opts2?.label_selector) params.set("label_selector", opts2.label_selector);
|
|
208
|
-
if (opts2?.name) params.set("name", opts2.name);
|
|
209
|
-
params.set("per_page", "50");
|
|
210
|
-
const all = [];
|
|
211
|
-
let pageNum = 1;
|
|
212
|
-
while (true) {
|
|
213
|
-
params.set("page", String(pageNum));
|
|
214
|
-
const r = await reqExpect("GET", `/images?${params.toString()}`);
|
|
215
|
-
all.push(...r.images);
|
|
216
|
-
const next = r.meta?.pagination?.next_page;
|
|
217
|
-
if (typeof next !== "number") break;
|
|
218
|
-
pageNum = next;
|
|
219
|
-
}
|
|
220
|
-
return all;
|
|
221
|
-
},
|
|
222
|
-
async deleteImage(id) {
|
|
223
|
-
await req("DELETE", `/images/${String(id)}`);
|
|
224
|
-
},
|
|
225
|
-
async createFirewall(reqBody) {
|
|
226
|
-
const r = await reqExpect("POST", "/firewalls", reqBody);
|
|
227
|
-
return r.firewall;
|
|
228
|
-
},
|
|
229
|
-
async setFirewallRules(id, rules) {
|
|
230
|
-
const r = await reqExpect(
|
|
231
|
-
"POST",
|
|
232
|
-
`/firewalls/${String(id)}/actions/set_rules`,
|
|
233
|
-
{ rules }
|
|
234
|
-
);
|
|
235
|
-
return r.actions;
|
|
236
|
-
},
|
|
237
|
-
async getFirewall(id) {
|
|
238
|
-
const r = await req("GET", `/firewalls/${String(id)}`);
|
|
239
|
-
return r?.firewall ?? null;
|
|
240
|
-
},
|
|
241
|
-
async deleteFirewall(id) {
|
|
242
|
-
await req("DELETE", `/firewalls/${String(id)}`);
|
|
243
|
-
},
|
|
244
|
-
async listLocations() {
|
|
245
|
-
const r = await reqExpect("GET", "/locations");
|
|
246
|
-
return r.locations;
|
|
247
|
-
}
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
function exitOnCancel(v) {
|
|
251
|
-
if (isCancel(v)) {
|
|
252
|
-
cancel("Cancelled.");
|
|
253
|
-
process.exit(130);
|
|
254
|
-
}
|
|
255
|
-
return v;
|
|
256
|
-
}
|
|
257
|
-
var DASHBOARD_KEYS_URL = "https://console.hetzner.cloud/projects";
|
|
258
|
-
var MANAGED_KEYS = ["HCLOUD_TOKEN", "HCLOUD_ENDPOINT"];
|
|
259
|
-
async function ensureHetznerCredentials(opts = {}) {
|
|
260
|
-
ensureHetznerEnvLoaded();
|
|
261
|
-
if (!opts.force && hasUsableCredentials()) return;
|
|
262
|
-
if (!process.stdin.isTTY) return;
|
|
263
|
-
intro("Hetzner Cloud setup");
|
|
264
|
-
note(
|
|
265
|
-
`AgentBox needs a Hetzner Cloud API token (project-scoped) to provision VPSes.
|
|
266
|
-
|
|
267
|
-
1. Open ${DASHBOARD_KEYS_URL}
|
|
268
|
-
2. Pick a project (or create one).
|
|
269
|
-
3. Security \u2192 API Tokens \u2192 Generate API Token (Read + Write).`,
|
|
270
|
-
"API token required"
|
|
271
|
-
);
|
|
272
|
-
const open = exitOnCancel(
|
|
273
|
-
await confirm({
|
|
274
|
-
message: `Open ${DASHBOARD_KEYS_URL} in your browser?`,
|
|
275
|
-
initialValue: true
|
|
276
|
-
})
|
|
277
|
-
);
|
|
278
|
-
if (open) openDashboard();
|
|
279
|
-
for (let attempt = 0; attempt < 2; attempt++) {
|
|
280
|
-
const creds = await promptForCredentials();
|
|
281
|
-
const result = await validateCredentials(creds);
|
|
282
|
-
if (result.ok) {
|
|
283
|
-
persistCredentials(creds);
|
|
284
|
-
log.success(`Hetzner credentials saved to ${secretsPath()}`);
|
|
285
|
-
outro("Setup complete.");
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
if (result.kind === "auth" && attempt === 0) {
|
|
289
|
-
log.error(`That token was rejected by Hetzner: ${result.message}`);
|
|
290
|
-
log.info("Try again, or press Ctrl-C to cancel.");
|
|
291
|
-
continue;
|
|
292
|
-
}
|
|
293
|
-
if (result.kind === "network") {
|
|
294
|
-
log.warn(`Could not reach Hetzner to validate (${result.message}) \u2014 saving anyway.`);
|
|
295
|
-
persistCredentials(creds);
|
|
296
|
-
log.success(`Hetzner credentials saved to ${secretsPath()}`);
|
|
297
|
-
outro("Setup complete (unvalidated).");
|
|
298
|
-
return;
|
|
299
|
-
}
|
|
300
|
-
throw new Error(`Hetzner credentials rejected: ${result.message}`);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
function hasUsableCredentials() {
|
|
304
|
-
return typeof process.env.HCLOUD_TOKEN === "string" && process.env.HCLOUD_TOKEN.length > 0;
|
|
305
|
-
}
|
|
306
|
-
async function promptForCredentials() {
|
|
307
|
-
const token = exitOnCancel(
|
|
308
|
-
await password({
|
|
309
|
-
message: "Paste your Hetzner Cloud API token",
|
|
310
|
-
validate(v) {
|
|
311
|
-
if (!v || v.trim().length === 0) return "Cannot be empty";
|
|
312
|
-
return void 0;
|
|
313
|
-
}
|
|
314
|
-
})
|
|
315
|
-
);
|
|
316
|
-
return { token: token.trim() };
|
|
317
|
-
}
|
|
318
|
-
async function validateCredentials(creds) {
|
|
319
|
-
const s = spinner();
|
|
320
|
-
s.start("Validating credentials with Hetzner");
|
|
321
|
-
try {
|
|
322
|
-
const client = makeHetznerClient({ token: creds.token, endpoint: creds.endpoint });
|
|
323
|
-
await client.listLocations();
|
|
324
|
-
s.stop("Hetzner credentials accepted");
|
|
325
|
-
return { ok: true };
|
|
326
|
-
} catch (err) {
|
|
327
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
328
|
-
s.stop("Hetzner credentials check failed");
|
|
329
|
-
if (/401|403|unauthor|forbidden|invalid|token/i.test(message)) {
|
|
330
|
-
return { ok: false, kind: "auth", message };
|
|
331
|
-
}
|
|
332
|
-
return { ok: false, kind: "network", message };
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
function persistCredentials(creds) {
|
|
336
|
-
process.env.HCLOUD_TOKEN = creds.token;
|
|
337
|
-
if (creds.endpoint) process.env.HCLOUD_ENDPOINT = creds.endpoint;
|
|
338
|
-
const path = secretsPath();
|
|
339
|
-
mkdirSync(dirname(path), { recursive: true });
|
|
340
|
-
let existing = "";
|
|
341
|
-
if (existsSync2(path)) {
|
|
342
|
-
try {
|
|
343
|
-
existing = readFileSync2(path, "utf8");
|
|
344
|
-
} catch {
|
|
345
|
-
existing = "";
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
const kept = existing.split(/\r?\n/).filter((line) => {
|
|
349
|
-
const stripped = line.startsWith("export ") ? line.slice("export ".length) : line;
|
|
350
|
-
const eq = stripped.indexOf("=");
|
|
351
|
-
if (eq <= 0) return true;
|
|
352
|
-
const key = stripped.slice(0, eq).trim();
|
|
353
|
-
return !MANAGED_KEYS.includes(key);
|
|
354
|
-
}).join("\n").replace(/\s+$/u, "");
|
|
355
|
-
const lines = [`HCLOUD_TOKEN=${creds.token}`];
|
|
356
|
-
if (creds.endpoint) lines.push(`HCLOUD_ENDPOINT=${creds.endpoint}`);
|
|
357
|
-
const body = (kept ? `${kept}
|
|
358
|
-
` : "") + lines.join("\n") + "\n";
|
|
359
|
-
const tmp = `${path}.tmp`;
|
|
360
|
-
writeFileSync(tmp, body, { mode: 384 });
|
|
361
|
-
try {
|
|
362
|
-
chmodSync(tmp, 384);
|
|
363
|
-
} catch {
|
|
364
|
-
}
|
|
365
|
-
renameSync(tmp, path);
|
|
366
|
-
try {
|
|
367
|
-
chmodSync(path, 384);
|
|
368
|
-
} catch {
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
function openDashboard() {
|
|
372
|
-
try {
|
|
373
|
-
const r = spawnSync(hostOpenCommand(), [DASHBOARD_KEYS_URL], { stdio: "ignore" });
|
|
374
|
-
if (r.status !== 0) {
|
|
375
|
-
log.warn(`Could not auto-open the browser \u2014 visit ${DASHBOARD_KEYS_URL} manually.`);
|
|
376
|
-
}
|
|
377
|
-
} catch {
|
|
378
|
-
log.warn(`Could not auto-open the browser \u2014 visit ${DASHBOARD_KEYS_URL} manually.`);
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
function secretsPath() {
|
|
382
|
-
return resolve2(homedir2(), ".agentbox", "secrets.env");
|
|
383
|
-
}
|
|
384
|
-
function readHetznerCredStatus() {
|
|
385
|
-
const shellHadToken = !!process.env.HCLOUD_TOKEN;
|
|
386
|
-
ensureHetznerEnvLoaded();
|
|
387
|
-
const token = process.env.HCLOUD_TOKEN;
|
|
388
|
-
const endpoint = process.env.HCLOUD_ENDPOINT;
|
|
389
|
-
if (!token) return { source: "none" };
|
|
390
|
-
return {
|
|
391
|
-
token,
|
|
392
|
-
endpoint,
|
|
393
|
-
source: shellHadToken ? "env" : "secrets.env"
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
function maskKey(value) {
|
|
397
|
-
if (value.length <= 8) return "*".repeat(value.length);
|
|
398
|
-
return `${value.slice(0, 4)}\u2026${"*".repeat(8)}${value.slice(-4)}`;
|
|
399
|
-
}
|
|
400
|
-
var PROBES = [
|
|
401
|
-
"https://api.ipify.org",
|
|
402
|
-
"https://ifconfig.io/ip",
|
|
403
|
-
"https://icanhazip.com"
|
|
404
|
-
];
|
|
405
|
-
var TIMEOUT_MS = 3e3;
|
|
406
|
-
var IPV4_RE = /^(?:\d{1,3}\.){3}\d{1,3}$/;
|
|
407
|
-
var IPV6_RE = /^[0-9a-fA-F:]+$/;
|
|
408
|
-
async function detectEgressIp(opts = {}) {
|
|
409
|
-
const probes = opts.probes ?? PROBES;
|
|
410
|
-
const timeout = opts.timeoutMs ?? TIMEOUT_MS;
|
|
411
|
-
const fetchImpl = opts.fetchImpl ?? fetch;
|
|
412
|
-
const errors = [];
|
|
413
|
-
for (const url of probes) {
|
|
414
|
-
try {
|
|
415
|
-
const ip = await raceTimeout(probe(url, fetchImpl), timeout);
|
|
416
|
-
if (ip) {
|
|
417
|
-
opts.onLog?.(`egress-ip: detected ${ip} via ${url}`);
|
|
418
|
-
return ip;
|
|
419
|
-
}
|
|
420
|
-
errors.push(`${url}: empty/invalid response`);
|
|
421
|
-
} catch (err) {
|
|
422
|
-
errors.push(`${url}: ${err instanceof Error ? err.message : String(err)}`);
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
throw new Error(
|
|
426
|
-
`could not auto-detect the host's egress IP \u2014 all ${String(probes.length)} probes failed:
|
|
427
|
-
` + errors.map((e) => ` - ${e}`).join("\n") + `
|
|
428
|
-
Override with --firewall-source <cidr> (e.g. --firewall-source 0.0.0.0/0 for the explicit-open opt-in).`
|
|
429
|
-
);
|
|
430
|
-
}
|
|
431
|
-
async function probe(url, fetchImpl) {
|
|
432
|
-
const res = await fetchImpl(url, { method: "GET" });
|
|
433
|
-
if (!res.ok) return null;
|
|
434
|
-
const body = (await res.text()).trim();
|
|
435
|
-
if (IPV4_RE.test(body)) {
|
|
436
|
-
const parts = body.split(".").map((p) => Number.parseInt(p, 10));
|
|
437
|
-
if (parts.every((p) => p >= 0 && p <= 255)) return body;
|
|
438
|
-
return null;
|
|
439
|
-
}
|
|
440
|
-
if (IPV6_RE.test(body) && body.includes(":")) return body;
|
|
441
|
-
return null;
|
|
442
|
-
}
|
|
443
|
-
async function raceTimeout(p, ms) {
|
|
444
|
-
let timer;
|
|
445
|
-
try {
|
|
446
|
-
return await Promise.race([
|
|
447
|
-
p,
|
|
448
|
-
new Promise((_resolve, reject) => {
|
|
449
|
-
timer = setTimeout(() => reject(new Error(`probe timed out after ${String(ms)}ms`)), ms);
|
|
450
|
-
})
|
|
451
|
-
]);
|
|
452
|
-
} finally {
|
|
453
|
-
if (timer !== void 0) clearTimeout(timer);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
var DEFAULT_BACKOFF = [1e3, 2e3, 4e3];
|
|
457
|
-
var DEFAULT_ATTEMPT_TIMEOUT_MS = 3e4;
|
|
458
|
-
var AttemptTimeoutError = class extends Error {
|
|
459
|
-
constructor(method, ms) {
|
|
460
|
-
super(`hetzner ${method}: per-attempt timeout after ${String(ms)}ms`);
|
|
461
|
-
this.name = "AttemptTimeoutError";
|
|
462
|
-
}
|
|
463
|
-
};
|
|
464
|
-
function isAttemptTimeout(err) {
|
|
465
|
-
return err instanceof AttemptTimeoutError;
|
|
466
|
-
}
|
|
467
|
-
function isRetriable(err, allowAmbiguous) {
|
|
468
|
-
if (err instanceof HetznerApiError) {
|
|
469
|
-
if (err.statusCode === 429 || err.code === "rate_limit_exceeded") return true;
|
|
470
|
-
if (err.statusCode >= 500 && err.statusCode <= 599) return allowAmbiguous;
|
|
471
|
-
if (err.code === "locked" || err.code === "conflict") return true;
|
|
472
|
-
return false;
|
|
473
|
-
}
|
|
474
|
-
if (err instanceof AttemptTimeoutError) return allowAmbiguous;
|
|
475
|
-
if (err && typeof err === "object") {
|
|
476
|
-
const candidates = [err, err.cause];
|
|
477
|
-
for (const c of candidates) {
|
|
478
|
-
if (!c || typeof c !== "object") continue;
|
|
479
|
-
const code = c.code;
|
|
480
|
-
if (code === "ECONNRESET" || code === "ETIMEDOUT" || code === "ECONNABORTED" || code === "EAI_AGAIN" || code === "ECONNREFUSED" || code === "ENOTFOUND" || code === "UND_ERR_SOCKET" || code === "UND_ERR_CONNECT_TIMEOUT") {
|
|
481
|
-
return allowAmbiguous;
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
return false;
|
|
486
|
-
}
|
|
487
|
-
async function withHetznerRetry(opts, fn) {
|
|
488
|
-
const backoff = opts.backoffMs ?? DEFAULT_BACKOFF;
|
|
489
|
-
const maxAttempts = backoff.length + 1;
|
|
490
|
-
const timeoutMs = opts.attemptTimeoutMs ?? DEFAULT_ATTEMPT_TIMEOUT_MS;
|
|
491
|
-
const log2 = opts.onRetry ?? defaultRetryLog;
|
|
492
|
-
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
493
|
-
try {
|
|
494
|
-
return await raceTimeout2(fn(), timeoutMs, opts.method);
|
|
495
|
-
} catch (err) {
|
|
496
|
-
const last = attempt === maxAttempts;
|
|
497
|
-
if (last || !isRetriable(err, opts.retryOnAmbiguous)) throw err;
|
|
498
|
-
const delay = backoff[attempt - 1] ?? backoff[backoff.length - 1] ?? 4e3;
|
|
499
|
-
log2(
|
|
500
|
-
`hetzner ${opts.method}: attempt ${String(attempt)} failed (${errorSummary(err)}); retrying in ${String(delay)}ms`
|
|
501
|
-
);
|
|
502
|
-
await sleep(delay);
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
throw new Error(`withHetznerRetry: exhausted attempts for ${opts.method}`);
|
|
506
|
-
}
|
|
507
|
-
function defaultRetryLog(line) {
|
|
508
|
-
process.stderr.write(`
|
|
509
|
-
[hetzner-retry] ${line}
|
|
510
|
-
`);
|
|
511
|
-
}
|
|
512
|
-
function sleep(ms) {
|
|
513
|
-
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
514
|
-
}
|
|
515
|
-
async function raceTimeout2(p, ms, method) {
|
|
516
|
-
let timer;
|
|
517
|
-
try {
|
|
518
|
-
return await Promise.race([
|
|
519
|
-
p,
|
|
520
|
-
new Promise((_resolve, reject) => {
|
|
521
|
-
timer = setTimeout(() => reject(new AttemptTimeoutError(method, ms)), ms);
|
|
522
|
-
})
|
|
523
|
-
]);
|
|
524
|
-
} finally {
|
|
525
|
-
if (timer !== void 0) clearTimeout(timer);
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
function errorSummary(err) {
|
|
529
|
-
if (err instanceof HetznerApiError) {
|
|
530
|
-
return `HetznerApiError ${String(err.statusCode)} ${err.code}: ${truncate(err.message)}`;
|
|
531
|
-
}
|
|
532
|
-
if (err instanceof Error) {
|
|
533
|
-
const code = err.code;
|
|
534
|
-
return code !== void 0 ? `${err.name}(${String(code)}): ${truncate(err.message)}` : `${err.name}: ${truncate(err.message)}`;
|
|
535
|
-
}
|
|
536
|
-
return truncate(String(err));
|
|
537
|
-
}
|
|
538
|
-
function truncate(s, max = 160) {
|
|
539
|
-
return s.length > max ? `${s.slice(0, max)}\u2026` : s;
|
|
540
|
-
}
|
|
541
|
-
function sshOnlyInboundRule(sourceCidr) {
|
|
542
|
-
return [
|
|
543
|
-
{
|
|
544
|
-
direction: "in",
|
|
545
|
-
protocol: "tcp",
|
|
546
|
-
port: "22",
|
|
547
|
-
source_ips: [sourceCidr],
|
|
548
|
-
description: "agentbox: SSH from host egress IP only"
|
|
549
|
-
}
|
|
550
|
-
];
|
|
551
|
-
}
|
|
552
|
-
async function createPerBoxFirewall(client, opts) {
|
|
553
|
-
return withHetznerRetry(
|
|
554
|
-
{ method: "createFirewall", retryOnAmbiguous: false, attemptTimeoutMs: 6e4 },
|
|
555
|
-
() => client.createFirewall({
|
|
556
|
-
name: opts.name,
|
|
557
|
-
rules: sshOnlyInboundRule(opts.sourceCidr),
|
|
558
|
-
labels: {
|
|
559
|
-
"agentbox.managed": "true",
|
|
560
|
-
"agentbox.role": "box",
|
|
561
|
-
...opts.labels
|
|
562
|
-
}
|
|
563
|
-
})
|
|
564
|
-
);
|
|
565
|
-
}
|
|
566
|
-
async function syncFirewallSource(client, firewallId, sourceCidr) {
|
|
567
|
-
await withHetznerRetry(
|
|
568
|
-
{ method: "setFirewallRules", retryOnAmbiguous: true, attemptTimeoutMs: 6e4 },
|
|
569
|
-
() => client.setFirewallRules(firewallId, sshOnlyInboundRule(sourceCidr))
|
|
570
|
-
);
|
|
571
|
-
}
|
|
572
|
-
async function deletePerBoxFirewall(client, firewallId, opts = {}) {
|
|
573
|
-
const deadline = Date.now() + (opts.detachWaitMs ?? 6e4);
|
|
574
|
-
let interval = 1e3;
|
|
575
|
-
while (true) {
|
|
576
|
-
try {
|
|
577
|
-
await withHetznerRetry(
|
|
578
|
-
{ method: "deleteFirewall", retryOnAmbiguous: true, attemptTimeoutMs: 3e4 },
|
|
579
|
-
() => client.deleteFirewall(firewallId)
|
|
580
|
-
);
|
|
581
|
-
return;
|
|
582
|
-
} catch (err) {
|
|
583
|
-
if (err instanceof HetznerApiError && (err.statusCode === 404 || err.code === "not_found")) {
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
const stillAttached = err instanceof HetznerApiError && (err.statusCode === 409 || err.code === "conflict" || err.code === "resource_in_use");
|
|
587
|
-
if (stillAttached && Date.now() < deadline) {
|
|
588
|
-
await new Promise((r) => setTimeout(r, interval));
|
|
589
|
-
interval = Math.min(interval * 2, 8e3);
|
|
590
|
-
continue;
|
|
591
|
-
}
|
|
592
|
-
throw err;
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
function firewallNeedsSync(allowedSource, currentEgress) {
|
|
597
|
-
if (allowedSource === "0.0.0.0/0") return false;
|
|
598
|
-
return allowedSource !== currentEgress;
|
|
599
|
-
}
|
|
600
|
-
function normalizeSourceCidr(raw) {
|
|
601
|
-
const trimmed = raw.trim();
|
|
602
|
-
if (trimmed.includes("/")) return trimmed;
|
|
603
|
-
if (trimmed.includes(":")) return `${trimmed}/128`;
|
|
604
|
-
return `${trimmed}/32`;
|
|
605
|
-
}
|
|
606
|
-
var SELF = dirname2(fileURLToPath(import.meta.url));
|
|
607
|
-
function findStagedCliRuntimeRoot() {
|
|
608
|
-
const candidates = [
|
|
609
|
-
resolve3(SELF, "..", "runtime"),
|
|
610
|
-
// <cliRoot>/dist/.. → <cliRoot> then /runtime
|
|
611
|
-
resolve3(SELF, "..", "..", "runtime")
|
|
612
|
-
// chunk-NNNN.js at <cliRoot>/dist/<sub>/.. → <cliRoot>/runtime
|
|
613
|
-
];
|
|
614
|
-
for (const c of candidates) {
|
|
615
|
-
if (existsSync3(resolve3(c, "hetzner", "scripts", "install-box.sh"))) return c;
|
|
616
|
-
}
|
|
617
|
-
return void 0;
|
|
618
|
-
}
|
|
619
|
-
var RUNTIME_ASSETS = [
|
|
620
|
-
{ name: "install-box.sh", remoteBasename: "agentbox-install.sh", remoteMode: 493 },
|
|
621
|
-
{ name: "agentbox-ctl", remoteBasename: "agentbox-ctl", remoteMode: 493 },
|
|
622
|
-
{ name: "agentbox-vnc-start", remoteBasename: "agentbox-vnc-start", remoteMode: 493 },
|
|
623
|
-
{ name: "agentbox-dockerd-start", remoteBasename: "agentbox-dockerd-start", remoteMode: 493 },
|
|
624
|
-
{ name: "agentbox-portless-trust", remoteBasename: "agentbox-portless-trust", remoteMode: 493 },
|
|
625
|
-
{ name: "agentbox-checkpoint-cleanup", remoteBasename: "agentbox-checkpoint-cleanup", remoteMode: 493 },
|
|
626
|
-
{ name: "agentbox-open", remoteBasename: "agentbox-open", remoteMode: 493 },
|
|
627
|
-
{ name: "gh-shim", remoteBasename: "agentbox-gh-shim", remoteMode: 493 },
|
|
628
|
-
{ name: "git-shim", remoteBasename: "agentbox-git-shim", remoteMode: 493 },
|
|
629
|
-
{ name: "ntn-shim", remoteBasename: "agentbox-ntn-shim", remoteMode: 493 },
|
|
630
|
-
{ name: "linear-shim", remoteBasename: "agentbox-linear-shim", remoteMode: 493 },
|
|
631
|
-
{ name: "custom-system-CLAUDE.md", remoteBasename: "agentbox-custom-CLAUDE.md", remoteMode: 420 },
|
|
632
|
-
{ name: "claude-managed-settings.json", remoteBasename: "agentbox-managed-settings.json", remoteMode: 420 },
|
|
633
|
-
{ name: "agentbox-codex-hooks.json", remoteBasename: "agentbox-codex-hooks.json", remoteMode: 420 },
|
|
634
|
-
{ name: "agentbox-setup-skill.md", remoteBasename: "agentbox-setup-skill.md", remoteMode: 420 }
|
|
635
|
-
];
|
|
636
|
-
function candidatesFor(name, opts = {}) {
|
|
637
|
-
const cliRoot = opts.cliRuntimeRoot;
|
|
638
|
-
const monorepo = opts.repoRoot ?? guessRepoRoot();
|
|
639
|
-
const monorepoRelative = {
|
|
640
|
-
"install-box.sh": ["packages/sandbox-hetzner/scripts/install-box.sh"],
|
|
641
|
-
"agentbox-ctl": ["packages/ctl/dist/bin.cjs"],
|
|
642
|
-
"agentbox-vnc-start": ["packages/sandbox-docker/scripts/agentbox-vnc-start"],
|
|
643
|
-
"agentbox-dockerd-start": ["packages/sandbox-docker/scripts/agentbox-dockerd-start"],
|
|
644
|
-
"agentbox-portless-trust": ["packages/sandbox-docker/scripts/agentbox-portless-trust"],
|
|
645
|
-
"agentbox-checkpoint-cleanup": ["packages/sandbox-docker/scripts/agentbox-checkpoint-cleanup"],
|
|
646
|
-
"agentbox-open": ["packages/sandbox-docker/scripts/agentbox-open"],
|
|
647
|
-
"gh-shim": ["packages/sandbox-docker/scripts/gh-shim"],
|
|
648
|
-
"git-shim": ["packages/sandbox-docker/scripts/git-shim"],
|
|
649
|
-
"ntn-shim": ["packages/sandbox-docker/scripts/ntn-shim"],
|
|
650
|
-
"linear-shim": ["packages/sandbox-docker/scripts/linear-shim"],
|
|
651
|
-
"custom-system-CLAUDE.md": ["packages/sandbox-hetzner/scripts/custom-system-CLAUDE.md"],
|
|
652
|
-
"claude-managed-settings.json": ["packages/sandbox-docker/scripts/claude-managed-settings.json"],
|
|
653
|
-
"agentbox-codex-hooks.json": ["packages/sandbox-docker/scripts/agentbox-codex-hooks.json"],
|
|
654
|
-
"agentbox-setup-skill.md": ["apps/cli/share/agentbox-setup/SKILL.md"]
|
|
655
|
-
};
|
|
656
|
-
const cliRelative = {
|
|
657
|
-
"install-box.sh": ["hetzner/scripts/install-box.sh"],
|
|
658
|
-
"agentbox-ctl": ["hetzner/ctl.cjs"],
|
|
659
|
-
"agentbox-vnc-start": ["hetzner/agentbox-vnc-start", "docker/packages/sandbox-docker/scripts/agentbox-vnc-start"],
|
|
660
|
-
"agentbox-dockerd-start": ["hetzner/agentbox-dockerd-start", "docker/packages/sandbox-docker/scripts/agentbox-dockerd-start"],
|
|
661
|
-
"agentbox-portless-trust": ["hetzner/agentbox-portless-trust", "docker/packages/sandbox-docker/scripts/agentbox-portless-trust"],
|
|
662
|
-
"agentbox-checkpoint-cleanup": ["hetzner/agentbox-checkpoint-cleanup", "docker/packages/sandbox-docker/scripts/agentbox-checkpoint-cleanup"],
|
|
663
|
-
"agentbox-open": ["hetzner/agentbox-open", "docker/packages/sandbox-docker/scripts/agentbox-open"],
|
|
664
|
-
"gh-shim": ["hetzner/gh-shim", "docker/packages/sandbox-docker/scripts/gh-shim"],
|
|
665
|
-
"git-shim": ["hetzner/git-shim", "docker/packages/sandbox-docker/scripts/git-shim"],
|
|
666
|
-
"ntn-shim": ["hetzner/ntn-shim", "docker/packages/sandbox-docker/scripts/ntn-shim"],
|
|
667
|
-
"linear-shim": ["hetzner/linear-shim", "docker/packages/sandbox-docker/scripts/linear-shim"],
|
|
668
|
-
"custom-system-CLAUDE.md": ["hetzner/custom-system-CLAUDE.md"],
|
|
669
|
-
"claude-managed-settings.json": ["hetzner/claude-managed-settings.json", "docker/packages/sandbox-docker/scripts/claude-managed-settings.json"],
|
|
670
|
-
"agentbox-codex-hooks.json": ["hetzner/agentbox-codex-hooks.json", "docker/packages/sandbox-docker/scripts/agentbox-codex-hooks.json"],
|
|
671
|
-
"agentbox-setup-skill.md": ["hetzner/agentbox-setup-skill.md", "docker/apps/cli/share/agentbox-setup/SKILL.md"]
|
|
672
|
-
};
|
|
673
|
-
const out = [];
|
|
674
|
-
if (cliRoot) {
|
|
675
|
-
for (const rel of cliRelative[name] ?? []) out.push(resolve3(cliRoot, rel));
|
|
676
|
-
}
|
|
677
|
-
for (const rel of monorepoRelative[name] ?? []) out.push(resolve3(monorepo, rel));
|
|
678
|
-
return out;
|
|
679
|
-
}
|
|
680
|
-
function resolveRuntimeAssets(opts = {}) {
|
|
681
|
-
const out = [];
|
|
682
|
-
const missing = [];
|
|
683
|
-
for (const asset of RUNTIME_ASSETS) {
|
|
684
|
-
const cands = candidatesFor(asset.name, opts);
|
|
685
|
-
const hit = cands.find((p) => existsSync3(p));
|
|
686
|
-
if (!hit) {
|
|
687
|
-
missing.push({ name: asset.name, tried: cands });
|
|
688
|
-
continue;
|
|
689
|
-
}
|
|
690
|
-
out.push({ ...asset, localPath: hit });
|
|
691
|
-
}
|
|
692
|
-
if (missing.length > 0) {
|
|
693
|
-
const lines = missing.flatMap((m) => [` - ${m.name}: tried`, ...m.tried.map((p) => ` ${p}`)]);
|
|
694
|
-
throw new Error(
|
|
695
|
-
`hetzner: could not resolve runtime assets \u2014 these files are needed to install on the prepare VPS:
|
|
696
|
-
` + lines.join("\n") + `
|
|
697
|
-
|
|
698
|
-
If you are running from the monorepo, ensure \`pnpm -w build\` has run so packages/ctl/dist/bin.cjs exists. If you are running from a published CLI bundle, the runtime/hetzner tree should be staged automatically.`
|
|
699
|
-
);
|
|
700
|
-
}
|
|
701
|
-
return out;
|
|
702
|
-
}
|
|
703
|
-
function guessRepoRoot() {
|
|
704
|
-
let cur = SELF;
|
|
705
|
-
for (let i = 0; i < 8; i++) {
|
|
706
|
-
if (existsSync3(resolve3(cur, "pnpm-workspace.yaml"))) return cur;
|
|
707
|
-
const parent = dirname2(cur);
|
|
708
|
-
if (parent === cur) break;
|
|
709
|
-
cur = parent;
|
|
710
|
-
}
|
|
711
|
-
return SELF;
|
|
712
|
-
}
|
|
713
|
-
var SCHEMA = 2;
|
|
714
|
-
function preparedStatePath() {
|
|
715
|
-
return preparedStatePathFor("hetzner");
|
|
716
|
-
}
|
|
717
|
-
function readPreparedState() {
|
|
718
|
-
const raw = readPreparedStateRaw("hetzner");
|
|
719
|
-
if (raw === null || typeof raw !== "object") return { schema: SCHEMA };
|
|
720
|
-
const parsed = raw;
|
|
721
|
-
if (parsed.schema === 1) {
|
|
722
|
-
const v1 = parsed;
|
|
723
|
-
return migrateFromV1(v1);
|
|
724
|
-
}
|
|
725
|
-
if (parsed.schema !== SCHEMA) {
|
|
726
|
-
return { schema: SCHEMA };
|
|
727
|
-
}
|
|
728
|
-
return {
|
|
729
|
-
schema: SCHEMA,
|
|
730
|
-
base: parsed.base
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
function migrateFromV1(v1) {
|
|
734
|
-
const base = v1.base ? {
|
|
735
|
-
imageId: v1.base.imageId,
|
|
736
|
-
description: v1.base.description,
|
|
737
|
-
createdAt: v1.base.createdAt,
|
|
738
|
-
contextSha256: v1.base.installScriptSha256
|
|
739
|
-
} : void 0;
|
|
740
|
-
return {
|
|
741
|
-
schema: SCHEMA,
|
|
742
|
-
base
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
function writePreparedState(state) {
|
|
746
|
-
writePreparedStateRaw("hetzner", state);
|
|
747
|
-
}
|
|
748
|
-
function updatePreparedState(mutate) {
|
|
749
|
-
const s = readPreparedState();
|
|
750
|
-
mutate(s);
|
|
751
|
-
writePreparedState(s);
|
|
752
|
-
}
|
|
753
|
-
async function currentHetznerBaseFingerprintLive() {
|
|
754
|
-
try {
|
|
755
|
-
const assets = resolveRuntimeAssets({ cliRuntimeRoot: findStagedCliRuntimeRoot() });
|
|
756
|
-
return await computeContextSha256(
|
|
757
|
-
assets.map((a) => ({ rel: a.name, abs: a.localPath }))
|
|
758
|
-
);
|
|
759
|
-
} catch {
|
|
760
|
-
return void 0;
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
export {
|
|
765
|
-
ensureHetznerEnvLoaded,
|
|
766
|
-
DEFAULT_HCLOUD_ENDPOINT,
|
|
767
|
-
HetznerApiError,
|
|
768
|
-
makeHetznerClient,
|
|
769
|
-
ensureHetznerCredentials,
|
|
770
|
-
secretsPath,
|
|
771
|
-
readHetznerCredStatus,
|
|
772
|
-
maskKey,
|
|
773
|
-
detectEgressIp,
|
|
774
|
-
isAttemptTimeout,
|
|
775
|
-
isRetriable,
|
|
776
|
-
withHetznerRetry,
|
|
777
|
-
sshOnlyInboundRule,
|
|
778
|
-
createPerBoxFirewall,
|
|
779
|
-
syncFirewallSource,
|
|
780
|
-
deletePerBoxFirewall,
|
|
781
|
-
firewallNeedsSync,
|
|
782
|
-
normalizeSourceCidr,
|
|
783
|
-
findStagedCliRuntimeRoot,
|
|
784
|
-
RUNTIME_ASSETS,
|
|
785
|
-
candidatesFor,
|
|
786
|
-
resolveRuntimeAssets,
|
|
787
|
-
preparedStatePath,
|
|
788
|
-
readPreparedState,
|
|
789
|
-
writePreparedState,
|
|
790
|
-
updatePreparedState,
|
|
791
|
-
currentHetznerBaseFingerprintLive
|
|
792
|
-
};
|
|
793
|
-
//# sourceMappingURL=chunk-DBMLOY3T.js.map
|