@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
|
@@ -0,0 +1,1241 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// ../../packages/config/dist/index.js
|
|
4
|
+
import { parse as parseYaml } from "yaml";
|
|
5
|
+
import { createHash } from "crypto";
|
|
6
|
+
import { realpath, stat } from "fs/promises";
|
|
7
|
+
import { homedir } from "os";
|
|
8
|
+
import { basename, dirname, join, resolve } from "path";
|
|
9
|
+
import { readFile } from "fs/promises";
|
|
10
|
+
import { parse as parseYaml2 } from "yaml";
|
|
11
|
+
import { mkdir, readFile as readFile2, rename, rm, stat as stat2, writeFile } from "fs/promises";
|
|
12
|
+
import { dirname as dirname2, isAbsolute, join as join2 } from "path";
|
|
13
|
+
import { stringify as stringifyYaml } from "yaml";
|
|
14
|
+
import { readdir } from "fs/promises";
|
|
15
|
+
var PROVIDERS = [
|
|
16
|
+
{
|
|
17
|
+
name: "docker",
|
|
18
|
+
kind: "local",
|
|
19
|
+
label: "Docker (local)",
|
|
20
|
+
loginHint: "builds a ~1GB local image; no login needed",
|
|
21
|
+
rebuildMinutes: "1",
|
|
22
|
+
blurb: "local Docker containers",
|
|
23
|
+
sizeDesc: "Per-provider override of `box.size` for docker. Reserved \u2014 docker sizing is controlled via `box.memory` / `box.cpus` / `box.disk`.",
|
|
24
|
+
imageDesc: "Per-provider override of `box.image` for docker (local docker image ref, e.g. `agentbox/box:dev`). Wins over the generic when set."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "daytona",
|
|
28
|
+
kind: "cloud",
|
|
29
|
+
label: "Daytona (cloud sandbox)",
|
|
30
|
+
loginHint: "approve a browser sign-in link",
|
|
31
|
+
rebuildMinutes: "7",
|
|
32
|
+
blurb: "Daytona Cloud sandboxes",
|
|
33
|
+
sizeDesc: "Per-provider override of `box.size` for daytona. `cpu-memory-disk` GB spec (e.g. `4-8-20`). Only honored on the image/Dockerfile create path; Daytona rejects custom resources on snapshot-resume.",
|
|
34
|
+
imageDesc: "Per-provider override of `box.image` for daytona (named snapshot, e.g. `agentbox-base-<fingerprint>`). Written by `agentbox prepare --provider daytona`."
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: "hetzner",
|
|
38
|
+
kind: "cloud",
|
|
39
|
+
label: "Hetzner (cloud VPS)",
|
|
40
|
+
loginHint: "paste an API token from the Hetzner Console",
|
|
41
|
+
rebuildMinutes: "7-10",
|
|
42
|
+
blurb: "Hetzner Cloud VPSes",
|
|
43
|
+
sizeDesc: "Per-provider override of `box.size` for hetzner. Server type string (e.g. `cx23`, `cx33`, `cx43`).",
|
|
44
|
+
imageDesc: "Per-provider override of `box.image` for hetzner (image description, e.g. `agentbox-base-<fingerprint>`). Written by `agentbox prepare --provider hetzner`."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "vercel",
|
|
48
|
+
kind: "cloud",
|
|
49
|
+
label: "Vercel (cloud microVM)",
|
|
50
|
+
loginHint: "installs the Vercel sandbox CLI, then a browser sign-in",
|
|
51
|
+
rebuildMinutes: "5-10",
|
|
52
|
+
blurb: "Vercel Sandboxes",
|
|
53
|
+
sizeDesc: "Per-provider override of `box.size` for vercel. Reserved \u2014 vercel sizing is controlled via `box.vercelVcpus`.",
|
|
54
|
+
imageDesc: "Per-provider override of `box.image` for vercel (snapshot id, e.g. `snap_\u2026`). Written by `agentbox prepare --provider vercel`."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "e2b",
|
|
58
|
+
kind: "cloud",
|
|
59
|
+
label: "E2B (cloud microVM)",
|
|
60
|
+
loginHint: "paste an API key from the E2B dashboard",
|
|
61
|
+
rebuildMinutes: "2",
|
|
62
|
+
blurb: "E2B microVMs",
|
|
63
|
+
sizeDesc: "Per-provider override of `box.size` for e2b. Reserved \u2014 e2b sizing is template-level (set at `agentbox prepare --provider e2b` time via --vcpus / --memory).",
|
|
64
|
+
imageDesc: "Per-provider override of `box.image` for e2b (template id or `name:tag`, e.g. `agentbox-base:latest`). Written by `agentbox prepare --provider e2b`."
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
var PROVIDER_NAMES = PROVIDERS.map((p) => p.name);
|
|
68
|
+
var CLOUD_PROVIDER_NAMES = PROVIDERS.filter(
|
|
69
|
+
(p) => p.kind === "cloud"
|
|
70
|
+
).map((p) => p.name);
|
|
71
|
+
function isProviderKind(name) {
|
|
72
|
+
return PROVIDER_NAMES.includes(name);
|
|
73
|
+
}
|
|
74
|
+
function providerMeta(name) {
|
|
75
|
+
const m = PROVIDERS.find((p) => p.name === name);
|
|
76
|
+
if (!m) throw new Error(`unknown provider: ${String(name)}`);
|
|
77
|
+
return m;
|
|
78
|
+
}
|
|
79
|
+
function providerKeyCap(name) {
|
|
80
|
+
return name.charAt(0).toUpperCase() + name.slice(1);
|
|
81
|
+
}
|
|
82
|
+
function perProviderConfigKey(base, provider) {
|
|
83
|
+
return `box.${base}${providerKeyCap(provider)}`;
|
|
84
|
+
}
|
|
85
|
+
var BUILT_IN_DEFAULTS = {
|
|
86
|
+
box: {
|
|
87
|
+
provider: "docker",
|
|
88
|
+
hostSnapshot: void 0,
|
|
89
|
+
defaultCheckpoint: "",
|
|
90
|
+
defaultCheckpointDocker: "",
|
|
91
|
+
defaultCheckpointDaytona: "",
|
|
92
|
+
defaultCheckpointHetzner: "",
|
|
93
|
+
defaultCheckpointVercel: "",
|
|
94
|
+
defaultCheckpointE2b: "",
|
|
95
|
+
size: "",
|
|
96
|
+
sizeDocker: "",
|
|
97
|
+
sizeDaytona: "",
|
|
98
|
+
sizeHetzner: "",
|
|
99
|
+
sizeVercel: "",
|
|
100
|
+
sizeE2b: "",
|
|
101
|
+
withPlaywright: false,
|
|
102
|
+
claudeInstall: "native",
|
|
103
|
+
withEnv: false,
|
|
104
|
+
resyncOnStart: true,
|
|
105
|
+
vnc: true,
|
|
106
|
+
autoApproveHostActions: false,
|
|
107
|
+
autoApproveSafeHostActions: true,
|
|
108
|
+
isolateClaudeConfig: false,
|
|
109
|
+
isolateCodexConfig: false,
|
|
110
|
+
isolateOpencodeConfig: false,
|
|
111
|
+
image: "agentbox/box:dev",
|
|
112
|
+
imageDocker: "",
|
|
113
|
+
imageDaytona: "",
|
|
114
|
+
imageHetzner: "",
|
|
115
|
+
imageVercel: "",
|
|
116
|
+
imageE2b: "",
|
|
117
|
+
// Mirrors BOX_IMAGE_REGISTRY in @agentbox/sandbox-docker. Empty disables the
|
|
118
|
+
// registry pull (always build the docker base image locally).
|
|
119
|
+
imageRegistry: "ghcr.io/madarco/agentbox/box",
|
|
120
|
+
dockerCacheShared: false,
|
|
121
|
+
memory: 0,
|
|
122
|
+
cpus: 0,
|
|
123
|
+
pidsLimit: 0,
|
|
124
|
+
disk: "",
|
|
125
|
+
bundleDepth: void 0,
|
|
126
|
+
vercelVcpus: 2,
|
|
127
|
+
vercelTimeoutMs: 27e5,
|
|
128
|
+
vercelNetworkPolicy: "",
|
|
129
|
+
e2bTimeoutMs: 27e5,
|
|
130
|
+
cpMaxBytes: 100 * 1024 * 1024
|
|
131
|
+
},
|
|
132
|
+
checkpoint: {
|
|
133
|
+
maxLayers: 3
|
|
134
|
+
},
|
|
135
|
+
claude: {
|
|
136
|
+
sessionName: "claude",
|
|
137
|
+
dangerouslySkipPermissions: true
|
|
138
|
+
},
|
|
139
|
+
codex: {
|
|
140
|
+
sessionName: "codex",
|
|
141
|
+
dangerouslySkipPermissions: true
|
|
142
|
+
},
|
|
143
|
+
opencode: {
|
|
144
|
+
sessionName: "opencode"
|
|
145
|
+
},
|
|
146
|
+
attach: {
|
|
147
|
+
openIn: "split",
|
|
148
|
+
cmuxStatus: true,
|
|
149
|
+
herdrStatus: true
|
|
150
|
+
},
|
|
151
|
+
code: {
|
|
152
|
+
ide: "auto",
|
|
153
|
+
wait: true,
|
|
154
|
+
timeoutMs: 12e4,
|
|
155
|
+
autoTerminals: true
|
|
156
|
+
},
|
|
157
|
+
shell: {
|
|
158
|
+
user: "vscode",
|
|
159
|
+
login: true,
|
|
160
|
+
tmux: true
|
|
161
|
+
},
|
|
162
|
+
ssh: {
|
|
163
|
+
autoConfig: true
|
|
164
|
+
},
|
|
165
|
+
engine: {
|
|
166
|
+
kind: "auto"
|
|
167
|
+
},
|
|
168
|
+
browser: {
|
|
169
|
+
default: "agent-browser"
|
|
170
|
+
},
|
|
171
|
+
relay: {
|
|
172
|
+
port: 8787,
|
|
173
|
+
controlPlaneUrl: void 0
|
|
174
|
+
},
|
|
175
|
+
git: {
|
|
176
|
+
pushMode: "auto"
|
|
177
|
+
},
|
|
178
|
+
vnc: {
|
|
179
|
+
containerPort: 6080
|
|
180
|
+
},
|
|
181
|
+
portless: {
|
|
182
|
+
enabled: void 0,
|
|
183
|
+
stateDir: ""
|
|
184
|
+
},
|
|
185
|
+
autopause: {
|
|
186
|
+
enabled: true,
|
|
187
|
+
maxRunningBoxes: 5,
|
|
188
|
+
idleMinutes: 5
|
|
189
|
+
},
|
|
190
|
+
queue: {
|
|
191
|
+
enabled: true,
|
|
192
|
+
maxConcurrent: 5,
|
|
193
|
+
maxWorking: 0,
|
|
194
|
+
idleGraceSeconds: 15,
|
|
195
|
+
openIn: "none"
|
|
196
|
+
},
|
|
197
|
+
cloud: {
|
|
198
|
+
useCurrentBranch: false
|
|
199
|
+
},
|
|
200
|
+
maintenance: {
|
|
201
|
+
pruneProjectConfigs: true,
|
|
202
|
+
pruneProjectConfigsEvery: 50
|
|
203
|
+
},
|
|
204
|
+
integrations: {
|
|
205
|
+
notion: { enabled: false },
|
|
206
|
+
linear: { enabled: false }
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
function joinOr(items) {
|
|
210
|
+
if (items.length <= 1) return items.join("");
|
|
211
|
+
return `${items.slice(0, -1).join(", ")}, or ${items[items.length - 1]}`;
|
|
212
|
+
}
|
|
213
|
+
function perProviderCheckpointKeys() {
|
|
214
|
+
return PROVIDERS.map((p) => ({
|
|
215
|
+
key: perProviderConfigKey("defaultCheckpoint", p.name),
|
|
216
|
+
type: "string",
|
|
217
|
+
description: `Per-provider override of \`box.defaultCheckpoint\` for ${p.name}. Wins over the global when set; set via \`agentbox checkpoint set-default --provider ${p.name}\`.`,
|
|
218
|
+
advanced: true
|
|
219
|
+
}));
|
|
220
|
+
}
|
|
221
|
+
function perProviderSizeKeys() {
|
|
222
|
+
return PROVIDERS.map((p) => ({
|
|
223
|
+
key: perProviderConfigKey("size", p.name),
|
|
224
|
+
type: "string",
|
|
225
|
+
description: p.sizeDesc,
|
|
226
|
+
advanced: true
|
|
227
|
+
}));
|
|
228
|
+
}
|
|
229
|
+
function perProviderImageKeys() {
|
|
230
|
+
return PROVIDERS.map((p) => ({
|
|
231
|
+
key: perProviderConfigKey("image", p.name),
|
|
232
|
+
type: "string",
|
|
233
|
+
description: p.imageDesc,
|
|
234
|
+
advanced: true
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
var KEY_REGISTRY = [
|
|
238
|
+
{
|
|
239
|
+
key: "box.provider",
|
|
240
|
+
type: "enum",
|
|
241
|
+
enumValues: PROVIDER_NAMES,
|
|
242
|
+
description: `Sandbox backend new boxes are created on: ${joinOr(PROVIDERS.map((p) => p.blurb))}.`
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
key: "box.hostSnapshot",
|
|
246
|
+
type: "bool",
|
|
247
|
+
description: "Use a frozen APFS clone of the host workspace as the overlay lower (default: prompt). Was box.snapshot."
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
key: "box.defaultCheckpoint",
|
|
251
|
+
type: "string",
|
|
252
|
+
description: "Checkpoint ref new boxes in this project start from when --snapshot is not given (set via `agentbox checkpoint set-default`). Used as fallback when no per-provider override is set."
|
|
253
|
+
},
|
|
254
|
+
...perProviderCheckpointKeys(),
|
|
255
|
+
{
|
|
256
|
+
key: "box.size",
|
|
257
|
+
type: "string",
|
|
258
|
+
description: "Default VM size for cloud providers. Provider-interpreted: hetzner = server type (e.g. `cx33`); daytona = `cpu-memory-disk` GB (e.g. `4-8-20`). Used as fallback when no per-provider override is set. Docker/Vercel ignore it."
|
|
259
|
+
},
|
|
260
|
+
...perProviderSizeKeys(),
|
|
261
|
+
{
|
|
262
|
+
key: "checkpoint.maxLayers",
|
|
263
|
+
type: "int",
|
|
264
|
+
description: "Max stacked checkpoint layers before a new checkpoint is materialized merged (flattened) instead of layered.",
|
|
265
|
+
advanced: true
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
key: "box.withPlaywright",
|
|
269
|
+
type: "bool",
|
|
270
|
+
description: "Install @playwright/cli@latest in the box at create time."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
key: "box.claudeInstall",
|
|
274
|
+
type: "enum",
|
|
275
|
+
enumValues: ["native", "npm"],
|
|
276
|
+
description: "How `agentbox prepare` installs Claude Code into the base image/snapshot: `native` (Anthropic's installer, the default) or `npm` (@anthropic-ai/claude-code). A fallback for cloud egress IPs the native installer's CDN 403s. Bake-time only \u2014 change it, then re-run `agentbox prepare --provider <name>`."
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
key: "box.withEnv",
|
|
280
|
+
type: "bool",
|
|
281
|
+
description: "Copy host env/config files (.env*, secrets.toml, agentbox.yaml, ...) into /workspace at box create time (gitignore-bypassing)."
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
key: "box.resyncOnStart",
|
|
285
|
+
type: "bool",
|
|
286
|
+
description: "Merge the host's current branch into the box and overlay the host's uncommitted/untracked changes when starting an agent session (keeps the box's version on conflict and warns the agent)."
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
key: "box.vnc",
|
|
290
|
+
type: "bool",
|
|
291
|
+
description: "Run the per-box Xvnc + noVNC stack."
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
key: "box.autoApproveHostActions",
|
|
295
|
+
type: "bool",
|
|
296
|
+
description: "Auto-approve host-action confirmations (git push, cp host<->box, gh PR writes, checkpoint) for this box without an interactive prompt. Off by default; intended for unattended orchestration of trusted boxes. Each auto-approval is recorded as a relay event (visible in `agentbox agent` / the dashboard)."
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
key: "box.autoApproveSafeHostActions",
|
|
300
|
+
type: "bool",
|
|
301
|
+
description: "Auto-approve the SAFE subset of host actions without a prompt: opening a PR, PR/review comments, re-running CI, pushing to the box's scratch or host-sanctioned branch, checkpoints, integration writes, and file copy/download that stays inside the box project folder (non-secret). Uncontained or secret file transfers, non-sanctioned-branch pushes, and PR merge/checkout still prompt. On by default; set false to prompt for every host action (the pre-relax behavior). Superseded by box.autoApproveHostActions, which approves everything. Each auto-approval is recorded as a relay event."
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
key: "box.isolateClaudeConfig",
|
|
305
|
+
type: "bool",
|
|
306
|
+
description: "Use a per-box ~/.claude volume instead of the shared one."
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
key: "box.isolateCodexConfig",
|
|
310
|
+
type: "bool",
|
|
311
|
+
description: "Use a per-box ~/.codex volume instead of the shared one."
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
key: "box.isolateOpencodeConfig",
|
|
315
|
+
type: "bool",
|
|
316
|
+
description: "Use a per-box OpenCode config/data volume instead of the shared one."
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
key: "box.image",
|
|
320
|
+
type: "string",
|
|
321
|
+
description: "Generic box image ref (fallback). Used as fallback when no per-provider override is set; the default `agentbox/box:dev` is treated as a sentinel by cloud backends (boot from their prepared base snapshot instead).",
|
|
322
|
+
advanced: true
|
|
323
|
+
},
|
|
324
|
+
...perProviderImageKeys(),
|
|
325
|
+
{
|
|
326
|
+
key: "box.imageRegistry",
|
|
327
|
+
type: "string",
|
|
328
|
+
description: "Registry repo to pull the prebuilt docker base image from before building locally. Empty = always build. Docker only (advanced).",
|
|
329
|
+
advanced: true
|
|
330
|
+
},
|
|
331
|
+
{
|
|
332
|
+
key: "box.dockerCacheShared",
|
|
333
|
+
type: "bool",
|
|
334
|
+
description: "Share the in-box docker image cache across boxes via the 'agentbox-docker-cache' volume (preserved on destroy/prune; only one box can run at a time when set)."
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
key: "box.memory",
|
|
338
|
+
type: "int",
|
|
339
|
+
description: "Hard memory ceiling in MiB for new boxes (0 = unlimited). Use --memory on create/claude for byte/k/m/g strings."
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
key: "box.cpus",
|
|
343
|
+
type: "int",
|
|
344
|
+
description: "CPU count cap for new boxes (0 = unlimited). Whole cores via config; use --cpus for fractional (e.g. 1.5)."
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
key: "box.pidsLimit",
|
|
348
|
+
type: "int",
|
|
349
|
+
description: "Max process count (PIDs cgroup) for new boxes (0 = unlimited)."
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
key: "box.disk",
|
|
353
|
+
type: "string",
|
|
354
|
+
description: "Best-effort writable-layer size for new boxes, e.g. '10G'. No-op on overlay2 / the macOS engines.",
|
|
355
|
+
advanced: true
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
key: "box.bundleDepth",
|
|
359
|
+
type: "int",
|
|
360
|
+
description: "Cap git bundle history shipped to cloud sandboxes (daytona, hetzner). 0 = full history. Unset = adaptive default (last 200 commits; re-bundle at 100 if the bundle exceeds 20 MB). Ignored for docker (which bind-mounts .git/)."
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
key: "box.vercelVcpus",
|
|
364
|
+
type: "int",
|
|
365
|
+
description: "vCPUs for new --provider vercel boxes (Vercel couples RAM at 2048 MB/vCPU). Default 2. Vercel only accepts specific counts (e.g. 1, 2, 4, 8) \u2014 an unsupported value fails create with a 400. Vercel-only; ignored by other providers."
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
key: "box.vercelTimeoutMs",
|
|
369
|
+
type: "int",
|
|
370
|
+
description: "Max session length (ms) for new --provider vercel boxes before the VM auto-snapshots; persistent mode auto-resumes on the next call. Default 2700000 (45 min, the Hobby ceiling). Vercel-only."
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
key: "box.e2bTimeoutMs",
|
|
374
|
+
type: "int",
|
|
375
|
+
description: "Session timeout (ms) a new --provider e2b box is created with, before E2B auto-pauses it on inactivity. The host keepalive loop pushes this forward while the agent is working. Default 2700000 (45 min); the Hobby tier caps total session at ~1 h regardless. E2B-only."
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
key: "box.cpMaxBytes",
|
|
379
|
+
type: "int",
|
|
380
|
+
description: "Max bytes a single host\u2192box copy may transfer after excludes, shared by `agentbox cp` (blocked with a size breakdown unless --yes) and each `carry:` entry (rejected at resolve time). Default 104857600 (100 MiB).",
|
|
381
|
+
advanced: true
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
key: "box.vercelNetworkPolicy",
|
|
385
|
+
type: "string",
|
|
386
|
+
description: "Egress lock for new --provider vercel boxes: 'allow-all' (default, unset), 'deny-all', or a comma-separated domain allowlist (e.g. 'github.com,*.npmjs.org') that denies everything else. Vercel-only; ignored by other providers."
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
key: "claude.sessionName",
|
|
390
|
+
type: "string",
|
|
391
|
+
description: "tmux session name for `agentbox claude`."
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
key: "claude.dangerouslySkipPermissions",
|
|
395
|
+
type: "bool",
|
|
396
|
+
description: "Launch claude in new boxes with --dangerously-skip-permissions (auto-accept tool use). Safe because boxes are isolated; on by default. Override per-box with --no-dangerously-skip-permissions."
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
key: "codex.sessionName",
|
|
400
|
+
type: "string",
|
|
401
|
+
description: "tmux session name for `agentbox codex`."
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
key: "codex.dangerouslySkipPermissions",
|
|
405
|
+
type: "bool",
|
|
406
|
+
description: "Launch codex in new boxes with --dangerously-bypass-approvals-and-sandbox (never prompt for approval). Safe because boxes are isolated; on by default. Override per-box with --no-dangerously-skip-permissions."
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
key: "opencode.sessionName",
|
|
410
|
+
type: "string",
|
|
411
|
+
description: "tmux session name for `agentbox opencode`."
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
key: "attach.openIn",
|
|
415
|
+
type: "enum",
|
|
416
|
+
enumValues: ["split", "window", "tab", "same"],
|
|
417
|
+
description: "Where `agentbox claude|codex|opencode` opens the attached session when run from tmux, cmux, Herdr, or iTerm2: `split` (tmux split-window / cmux new-split / Herdr pane.split / iTerm2 vertical split, default \u2014 same workspace), `window` (tmux new-window / cmux new-workspace / Herdr workspace.create / new iTerm2 window), `tab` (tmux new-window / cmux new-surface / Herdr tab.create in the current workspace / new iTerm2 tab), or `same` (attach inline in the current terminal). Outside tmux/cmux/Herdr/iTerm2 every value behaves like `same`."
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
key: "attach.cmuxStatus",
|
|
421
|
+
type: "bool",
|
|
422
|
+
description: "When attached inside cmux, reflect the box agent's live activity on its cmux workspace (colour + description: blue=working, amber=needs input, idle clears; restored on detach) and, when the agent needs input, flag the box's own tab via a cmux notification (tab badge + reorder + desktop notification) so it stands out among sibling tabs. cmux only; no-op in other terminals."
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
key: "attach.herdrStatus",
|
|
426
|
+
type: "bool",
|
|
427
|
+
description: "When attached inside Herdr, report the box agent's live activity to its Herdr pane (pane.report_agent: working / blocked / idle) so it looks like a normal agent pane and Herdr handles needs-input natively, and fire a Herdr notification for AgentBox's own host-relay approval prompts (git push / PR / checkpoint \u2026) which Herdr can't otherwise see. Herdr only; no-op in other terminals."
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
key: "code.ide",
|
|
431
|
+
type: "enum",
|
|
432
|
+
enumValues: ["vscode", "cursor", "auto"],
|
|
433
|
+
description: 'Which IDE `agentbox code` launches; "auto" prefers code, falls back to cursor.'
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
key: "code.wait",
|
|
437
|
+
type: "bool",
|
|
438
|
+
description: "Block on agentbox-ctl wait-ready before opening the IDE."
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
key: "code.timeoutMs",
|
|
442
|
+
type: "int",
|
|
443
|
+
description: "wait-ready timeout in milliseconds."
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
key: "code.autoTerminals",
|
|
447
|
+
type: "bool",
|
|
448
|
+
description: "Generate /workspace/.vscode/tasks.json so the IDE auto-opens log panels."
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
key: "shell.user",
|
|
452
|
+
type: "string",
|
|
453
|
+
description: "Default in-container user for `agentbox shell`."
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
key: "shell.login",
|
|
457
|
+
type: "bool",
|
|
458
|
+
description: "Pass `-l` to bash so the login profile loads."
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
key: "shell.tmux",
|
|
462
|
+
type: "bool",
|
|
463
|
+
description: "Run `agentbox shell` inside a detachable tmux session (Ctrl+a d to detach)."
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
key: "ssh.autoConfig",
|
|
467
|
+
type: "bool",
|
|
468
|
+
description: "Automatically write a `~/.agentbox/ssh/config` entry (Include'd from `~/.ssh/config`) for SSH-capable cloud boxes on create and start/resume, so `ssh <box>` just works. On by default; set false if you manage `~/.ssh/config` yourself. Explicit `agentbox shell --ssh-config`/`code`/`open` still write on demand regardless."
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
key: "engine.kind",
|
|
472
|
+
type: "enum",
|
|
473
|
+
enumValues: ["orbstack", "docker-desktop", "other", "auto"],
|
|
474
|
+
description: "Override the docker-engine auto-detection (used for OrbStack-only optimisations)."
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
key: "browser.default",
|
|
478
|
+
type: "enum",
|
|
479
|
+
enumValues: ["agent-browser", "playwright", "both"],
|
|
480
|
+
description: 'Default browser stack inside the box. "playwright" or "both" implies box.withPlaywright.'
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
key: "relay.port",
|
|
484
|
+
type: "int",
|
|
485
|
+
description: "Host relay TCP port (advanced).",
|
|
486
|
+
advanced: true
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
key: "relay.controlPlaneUrl",
|
|
490
|
+
type: "string",
|
|
491
|
+
description: "Public HTTPS URL of a deployed control plane (hosted Next.js + Postgres app). When set, new cloud boxes point at it for git-token leasing, permission state, and the box registry/events, and push to GitHub directly with a leased token so they keep working with the laptop off. Set via `agentbox control-plane set-url`."
|
|
492
|
+
},
|
|
493
|
+
{
|
|
494
|
+
key: "git.pushMode",
|
|
495
|
+
type: "enum",
|
|
496
|
+
enumValues: ["auto", "relay", "lease"],
|
|
497
|
+
description: "How a box's `git push` reaches GitHub: `relay` (the host relay pushes with your host credentials \u2014 they never enter the box), `lease` (the relay/plane leases a short-lived GitHub-App token and the box pushes directly, so it works with the laptop off), or `auto` (default \u2014 lease when `relay.controlPlaneUrl` is set for the box, else relay). Only affects cloud boxes; docker boxes always use `relay`. Forcing `relay` needs a reachable host relay for the box; forcing `lease` needs a reachable relay/plane with a GitHub App."
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
key: "vnc.containerPort",
|
|
501
|
+
type: "int",
|
|
502
|
+
description: "Container-side noVNC port (advanced).",
|
|
503
|
+
advanced: true
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
key: "portless.enabled",
|
|
507
|
+
type: "bool",
|
|
508
|
+
description: "Map each box web app to a https://<box-name>.localhost URL via the Portless proxy (Docker Desktop only; OrbStack already has .orb.local). Default: prompt."
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
key: "portless.stateDir",
|
|
512
|
+
type: "string",
|
|
513
|
+
description: "Host Portless state directory to share into boxes (advanced; default: Portless\u2019s own location).",
|
|
514
|
+
advanced: true
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
key: "autopause.enabled",
|
|
518
|
+
type: "bool",
|
|
519
|
+
description: "Let the host relay periodically pause idle boxes when more than autopause.maxRunningBoxes are running."
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
key: "autopause.maxRunningBoxes",
|
|
523
|
+
type: "int",
|
|
524
|
+
description: "Target maximum number of simultaneously-running boxes before idle ones get auto-paused."
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
key: "autopause.idleMinutes",
|
|
528
|
+
type: "int",
|
|
529
|
+
description: "Minutes a box must be continuously idle (claude state) before it is eligible for auto-pause."
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
key: "queue.enabled",
|
|
533
|
+
type: "bool",
|
|
534
|
+
description: "Run `agentbox claude|codex|opencode -i <prompt>` jobs through the host-wide background queue (FIFO, capped by queue.maxConcurrent)."
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
key: "queue.maxConcurrent",
|
|
538
|
+
type: "int",
|
|
539
|
+
description: "Max number of simultaneously-running boxes (across providers) before background `-i` jobs queue up instead of starting immediately. Per-invocation override: `--max-running <n>`."
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
key: "queue.maxWorking",
|
|
543
|
+
type: "int",
|
|
544
|
+
description: "Max agents actively working/thinking (quota-consuming) at once before background `-i` jobs queue. 0 = disabled (use the queue.maxConcurrent running-box gate). Counts all boxes, foreground + queued. Per-invocation override: `--max-working <n>`."
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
key: "queue.idleGraceSeconds",
|
|
548
|
+
type: "int",
|
|
549
|
+
description: "Seconds an agent must stay non-working before it frees its working slot (debounce against brief idle flaps between turns). Only used when queue.maxWorking > 0."
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
key: "queue.openIn",
|
|
553
|
+
type: "enum",
|
|
554
|
+
enumValues: ["none", "split", "window", "tab"],
|
|
555
|
+
description: "When a background `-i` job finishes creating its box, where the host relay opens an attached terminal onto it: `none` (default \u2014 open nothing, just queue), `split`, `window`, or `tab`. Honored only when the submitting shell runs inside tmux, cmux, Herdr, or iTerm2 (the targeting is captured at submit time). Under cmux, `split` splits the pane you submitted from (falling back to the parent workspace, then a new workspace), `tab` adds a tab in the parent workspace, and `window` opens a separate workspace; under Herdr, `split` splits the pane you submitted from, `tab` adds a tab in the parent workspace, and `window` opens a separate workspace; iTerm2 opens relative to the frontmost window. Unlike `attach.openIn` there is no `same` mode \u2014 the box is created asynchronously, so it is always a fresh terminal."
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
key: "cloud.useCurrentBranch",
|
|
559
|
+
type: "bool",
|
|
560
|
+
description: "On cloud providers (daytona/hetzner), start new boxes on the host's current branch instead of forking a new agentbox/<box-name> branch. Overridden by an explicit --use-branch / --from-branch."
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
key: "maintenance.pruneProjectConfigs",
|
|
564
|
+
type: "bool",
|
|
565
|
+
description: "Periodically delete ~/.agentbox/projects/<hash>/ dirs whose source workspace folder no longer exists."
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
key: "maintenance.pruneProjectConfigsEvery",
|
|
569
|
+
type: "int",
|
|
570
|
+
description: "Run the orphan project-config sweep every N successful `agentbox create`."
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
key: "integrations.notion.enabled",
|
|
574
|
+
type: "bool",
|
|
575
|
+
description: 'Enable the in-box Notion integration shim (`ntn`/`notion` commands routed via the host relay). When false (default), the relay refuses dispatch with a clear "disabled" error and no host process is touched.'
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
key: "integrations.linear.enabled",
|
|
579
|
+
type: "bool",
|
|
580
|
+
description: 'Enable the in-box Linear integration shim (`linear` commands routed via the host relay; backed by `@schpet/linear-cli`). When false (default), the relay refuses dispatch with a clear "disabled" error and no host process is touched.'
|
|
581
|
+
}
|
|
582
|
+
];
|
|
583
|
+
var REGISTRY_BY_KEY = new Map(KEY_REGISTRY.map((d) => [d.key, d]));
|
|
584
|
+
function lookupKey(key) {
|
|
585
|
+
return REGISTRY_BY_KEY.get(key);
|
|
586
|
+
}
|
|
587
|
+
var UserConfigError = class extends Error {
|
|
588
|
+
constructor(message) {
|
|
589
|
+
super(message);
|
|
590
|
+
this.name = "UserConfigError";
|
|
591
|
+
}
|
|
592
|
+
};
|
|
593
|
+
function isPlainObject(v) {
|
|
594
|
+
return typeof v === "object" && v !== null && !Array.isArray(v);
|
|
595
|
+
}
|
|
596
|
+
var RENAMED_KEYS = /* @__PURE__ */ new Map([["box.snapshot", "box.hostSnapshot"]]);
|
|
597
|
+
var BRANCHES = (() => {
|
|
598
|
+
const out = /* @__PURE__ */ new Map();
|
|
599
|
+
for (const desc of KEY_REGISTRY) {
|
|
600
|
+
const idx = desc.key.indexOf(".");
|
|
601
|
+
if (idx < 0) {
|
|
602
|
+
throw new Error(`KEY_REGISTRY entry ${desc.key} must use dot-path form (branch.leaf)`);
|
|
603
|
+
}
|
|
604
|
+
const branch = desc.key.slice(0, idx);
|
|
605
|
+
const leaf = desc.key.slice(idx + 1);
|
|
606
|
+
let entry = out.get(branch);
|
|
607
|
+
if (!entry) {
|
|
608
|
+
entry = { name: branch, leaves: /* @__PURE__ */ new Map() };
|
|
609
|
+
out.set(branch, entry);
|
|
610
|
+
}
|
|
611
|
+
entry.leaves.set(leaf, desc);
|
|
612
|
+
}
|
|
613
|
+
return out;
|
|
614
|
+
})();
|
|
615
|
+
function coerceTypedValue(raw, desc, where) {
|
|
616
|
+
if (raw === null) {
|
|
617
|
+
throw new UserConfigError(`${where} must not be null (use \`agentbox config unset\` to clear)`);
|
|
618
|
+
}
|
|
619
|
+
switch (desc.type) {
|
|
620
|
+
case "bool":
|
|
621
|
+
if (typeof raw !== "boolean") {
|
|
622
|
+
throw new UserConfigError(`${where} must be a boolean (got ${typeof raw})`);
|
|
623
|
+
}
|
|
624
|
+
return raw;
|
|
625
|
+
case "string":
|
|
626
|
+
if (typeof raw !== "string") {
|
|
627
|
+
throw new UserConfigError(`${where} must be a string (got ${typeof raw})`);
|
|
628
|
+
}
|
|
629
|
+
if (raw.length === 0) {
|
|
630
|
+
throw new UserConfigError(`${where} must not be empty`);
|
|
631
|
+
}
|
|
632
|
+
return raw;
|
|
633
|
+
case "int":
|
|
634
|
+
if (typeof raw !== "number" || !Number.isInteger(raw)) {
|
|
635
|
+
throw new UserConfigError(`${where} must be an integer (got ${String(raw)})`);
|
|
636
|
+
}
|
|
637
|
+
return raw;
|
|
638
|
+
case "enum":
|
|
639
|
+
if (typeof raw !== "string" || !desc.enumValues.includes(raw)) {
|
|
640
|
+
throw new UserConfigError(
|
|
641
|
+
`${where} must be one of: ${desc.enumValues.join(", ")} (got ${String(raw)})`
|
|
642
|
+
);
|
|
643
|
+
}
|
|
644
|
+
return raw;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
function parseUserConfig(text, where) {
|
|
648
|
+
let doc;
|
|
649
|
+
try {
|
|
650
|
+
doc = parseYaml(text);
|
|
651
|
+
} catch (err) {
|
|
652
|
+
throw new UserConfigError(
|
|
653
|
+
`${where}: yaml parse error: ${err instanceof Error ? err.message : String(err)}`
|
|
654
|
+
);
|
|
655
|
+
}
|
|
656
|
+
if (doc === null || doc === void 0) return {};
|
|
657
|
+
if (!isPlainObject(doc)) {
|
|
658
|
+
throw new UserConfigError(`${where}: top-level must be a mapping`);
|
|
659
|
+
}
|
|
660
|
+
return parseUserConfigObject(doc, where);
|
|
661
|
+
}
|
|
662
|
+
function parseUserConfigObject(doc, where) {
|
|
663
|
+
if (doc === null || doc === void 0) return {};
|
|
664
|
+
if (!isPlainObject(doc)) {
|
|
665
|
+
throw new UserConfigError(`${where}: must be a mapping`);
|
|
666
|
+
}
|
|
667
|
+
const out = {};
|
|
668
|
+
for (const [branchName, branchRaw] of Object.entries(doc)) {
|
|
669
|
+
if (branchName === "schema") {
|
|
670
|
+
if (branchRaw !== void 0 && branchRaw !== null) {
|
|
671
|
+
if (typeof branchRaw !== "number" || !Number.isInteger(branchRaw)) {
|
|
672
|
+
throw new UserConfigError(`${where}.schema: must be an integer (got ${String(branchRaw)})`);
|
|
673
|
+
}
|
|
674
|
+
out.schema = branchRaw;
|
|
675
|
+
}
|
|
676
|
+
continue;
|
|
677
|
+
}
|
|
678
|
+
const branchSpec = BRANCHES.get(branchName);
|
|
679
|
+
if (!branchSpec) {
|
|
680
|
+
throw new UserConfigError(
|
|
681
|
+
`${where}: unknown config section "${branchName}" (known: ${[...BRANCHES.keys()].join(", ")})`
|
|
682
|
+
);
|
|
683
|
+
}
|
|
684
|
+
if (branchRaw === null || branchRaw === void 0) continue;
|
|
685
|
+
if (!isPlainObject(branchRaw)) {
|
|
686
|
+
throw new UserConfigError(`${where}.${branchName}: must be a mapping`);
|
|
687
|
+
}
|
|
688
|
+
const branchOut = parseBranchObject(branchSpec, branchName, branchRaw, "", where);
|
|
689
|
+
if (Object.keys(branchOut).length > 0) {
|
|
690
|
+
out[branchName] = branchOut;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
return out;
|
|
694
|
+
}
|
|
695
|
+
function parseBranchObject(branchSpec, branchName, raw, qualifiedPrefix, where) {
|
|
696
|
+
const out = {};
|
|
697
|
+
for (const [name, value] of Object.entries(raw)) {
|
|
698
|
+
if (value === void 0) continue;
|
|
699
|
+
const qualified = qualifiedPrefix ? `${qualifiedPrefix}.${name}` : name;
|
|
700
|
+
const desc = branchSpec.leaves.get(qualified);
|
|
701
|
+
if (desc) {
|
|
702
|
+
out[name] = coerceTypedValue(value, desc, `${where}.${desc.key}`);
|
|
703
|
+
continue;
|
|
704
|
+
}
|
|
705
|
+
if (isPlainObject(value) && branchHasLeafBelow(branchSpec, qualified)) {
|
|
706
|
+
const sub = parseBranchObject(branchSpec, branchName, value, qualified, where);
|
|
707
|
+
if (Object.keys(sub).length > 0) out[name] = sub;
|
|
708
|
+
continue;
|
|
709
|
+
}
|
|
710
|
+
const renamedTo = RENAMED_KEYS.get(`${branchName}.${qualified}`);
|
|
711
|
+
if (renamedTo) {
|
|
712
|
+
throw new UserConfigError(
|
|
713
|
+
`${where}.${branchName}.${qualified} was renamed to ${renamedTo} \u2014 update your config`
|
|
714
|
+
);
|
|
715
|
+
}
|
|
716
|
+
throw new UserConfigError(
|
|
717
|
+
`${where}.${branchName}: unknown key "${qualified}" (known: ${[...branchSpec.leaves.keys()].join(", ")})`
|
|
718
|
+
);
|
|
719
|
+
}
|
|
720
|
+
return out;
|
|
721
|
+
}
|
|
722
|
+
function branchHasLeafBelow(branchSpec, prefix) {
|
|
723
|
+
const needle = `${prefix}.`;
|
|
724
|
+
for (const leaf of branchSpec.leaves.keys()) {
|
|
725
|
+
if (leaf.startsWith(needle)) return true;
|
|
726
|
+
}
|
|
727
|
+
return false;
|
|
728
|
+
}
|
|
729
|
+
function coerceFromString(key, raw) {
|
|
730
|
+
const desc = lookupKeyOrThrow(key);
|
|
731
|
+
switch (desc.type) {
|
|
732
|
+
case "bool": {
|
|
733
|
+
const v = raw.trim().toLowerCase();
|
|
734
|
+
if (v === "true" || v === "yes" || v === "1" || v === "on") return true;
|
|
735
|
+
if (v === "false" || v === "no" || v === "0" || v === "off") return false;
|
|
736
|
+
throw new UserConfigError(`${key}: expected a boolean (true/false), got "${raw}"`);
|
|
737
|
+
}
|
|
738
|
+
case "string":
|
|
739
|
+
if (raw.length === 0) throw new UserConfigError(`${key}: must not be empty`);
|
|
740
|
+
return raw;
|
|
741
|
+
case "int": {
|
|
742
|
+
const n = Number(raw);
|
|
743
|
+
if (!Number.isFinite(n) || !Number.isInteger(n)) {
|
|
744
|
+
throw new UserConfigError(`${key}: expected an integer, got "${raw}"`);
|
|
745
|
+
}
|
|
746
|
+
return n;
|
|
747
|
+
}
|
|
748
|
+
case "enum":
|
|
749
|
+
if (!desc.enumValues.includes(raw)) {
|
|
750
|
+
throw new UserConfigError(
|
|
751
|
+
`${key}: expected one of ${desc.enumValues.join(", ")}, got "${raw}"`
|
|
752
|
+
);
|
|
753
|
+
}
|
|
754
|
+
return raw;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
function lookupKeyOrThrow(key) {
|
|
758
|
+
const renamedTo = RENAMED_KEYS.get(key);
|
|
759
|
+
if (renamedTo) {
|
|
760
|
+
throw new UserConfigError(`${key} was renamed to ${renamedTo} \u2014 use ${renamedTo} instead`);
|
|
761
|
+
}
|
|
762
|
+
const idx = key.indexOf(".");
|
|
763
|
+
if (idx < 0) {
|
|
764
|
+
throw new UserConfigError(`unknown key "${key}" (must be in branch.leaf form)`);
|
|
765
|
+
}
|
|
766
|
+
const branch = BRANCHES.get(key.slice(0, idx));
|
|
767
|
+
if (!branch) {
|
|
768
|
+
throw new UserConfigError(
|
|
769
|
+
`unknown config section "${key.slice(0, idx)}" (known: ${[...BRANCHES.keys()].join(", ")})`
|
|
770
|
+
);
|
|
771
|
+
}
|
|
772
|
+
const desc = branch.leaves.get(key.slice(idx + 1));
|
|
773
|
+
if (!desc) {
|
|
774
|
+
throw new UserConfigError(
|
|
775
|
+
`unknown key "${key}" (known in ${branch.name}: ${[...branch.leaves.keys()].join(", ")})`
|
|
776
|
+
);
|
|
777
|
+
}
|
|
778
|
+
return desc;
|
|
779
|
+
}
|
|
780
|
+
var STATE_DIR = join(homedir(), ".agentbox");
|
|
781
|
+
var GLOBAL_CONFIG_FILE = join(STATE_DIR, "config.yaml");
|
|
782
|
+
var PROJECTS_DIR = join(STATE_DIR, "projects");
|
|
783
|
+
var WORKSPACE_CONFIG_BASENAME = "agentbox.yaml";
|
|
784
|
+
async function findProjectRoot(cwd) {
|
|
785
|
+
const start = await canonicalize(cwd);
|
|
786
|
+
let dir = start;
|
|
787
|
+
for (let i = 0; i < 64; i++) {
|
|
788
|
+
if (await fileExists(join(dir, WORKSPACE_CONFIG_BASENAME))) {
|
|
789
|
+
return { root: dir, hasAgentboxYaml: true };
|
|
790
|
+
}
|
|
791
|
+
const parent = dirname(dir);
|
|
792
|
+
if (parent === dir) break;
|
|
793
|
+
dir = parent;
|
|
794
|
+
}
|
|
795
|
+
return { root: start, hasAgentboxYaml: false };
|
|
796
|
+
}
|
|
797
|
+
async function canonicalize(p) {
|
|
798
|
+
const abs = resolve(p);
|
|
799
|
+
try {
|
|
800
|
+
return await realpath(abs);
|
|
801
|
+
} catch {
|
|
802
|
+
return abs;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
async function fileExists(p) {
|
|
806
|
+
try {
|
|
807
|
+
const st = await stat(p);
|
|
808
|
+
return st.isFile();
|
|
809
|
+
} catch {
|
|
810
|
+
return false;
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
function hashProjectPath(absPath) {
|
|
814
|
+
const normalised = absPath.length > 1 && absPath.endsWith("/") ? absPath.slice(0, -1) : absPath;
|
|
815
|
+
return createHash("sha1").update(normalised).digest("hex").slice(0, 16);
|
|
816
|
+
}
|
|
817
|
+
function sanitizeMnemonic(raw) {
|
|
818
|
+
return raw.toLowerCase().replace(/-/g, "_").replace(/[^a-z0-9_]+/g, "_").replace(/_+/g, "_").replace(/^_+|_+$/g, "").slice(0, 32) || "unnamed";
|
|
819
|
+
}
|
|
820
|
+
function projectDirSegment(absPath) {
|
|
821
|
+
return `${hashProjectPath(absPath)}-${sanitizeMnemonic(basename(absPath))}`;
|
|
822
|
+
}
|
|
823
|
+
function projectConfigDir(absPath) {
|
|
824
|
+
return join(PROJECTS_DIR, projectDirSegment(absPath));
|
|
825
|
+
}
|
|
826
|
+
function projectConfigFile(absPath) {
|
|
827
|
+
return join(projectConfigDir(absPath), "config.yaml");
|
|
828
|
+
}
|
|
829
|
+
function projectMetaFile(absPath) {
|
|
830
|
+
return join(projectConfigDir(absPath), "meta.json");
|
|
831
|
+
}
|
|
832
|
+
function workspaceConfigFile(workspacePath) {
|
|
833
|
+
return join(workspacePath, WORKSPACE_CONFIG_BASENAME);
|
|
834
|
+
}
|
|
835
|
+
async function configPathFor(scope, cwd) {
|
|
836
|
+
if (scope === "global") return GLOBAL_CONFIG_FILE;
|
|
837
|
+
const root = await findProjectRoot(cwd);
|
|
838
|
+
if (scope === "project") return projectConfigFile(root.root);
|
|
839
|
+
return workspaceConfigFile(root.root);
|
|
840
|
+
}
|
|
841
|
+
async function loadOptionalUserConfig(path) {
|
|
842
|
+
let text;
|
|
843
|
+
try {
|
|
844
|
+
text = await readFile(path, "utf8");
|
|
845
|
+
} catch (err) {
|
|
846
|
+
if (err.code === "ENOENT") return {};
|
|
847
|
+
throw err;
|
|
848
|
+
}
|
|
849
|
+
return parseUserConfig(text, path);
|
|
850
|
+
}
|
|
851
|
+
async function loadProjectAgentboxDefaults(workspacePath) {
|
|
852
|
+
const path = workspaceConfigFile(workspacePath);
|
|
853
|
+
let text;
|
|
854
|
+
try {
|
|
855
|
+
text = await readFile(path, "utf8");
|
|
856
|
+
} catch (err) {
|
|
857
|
+
if (err.code === "ENOENT") return {};
|
|
858
|
+
throw err;
|
|
859
|
+
}
|
|
860
|
+
let doc;
|
|
861
|
+
try {
|
|
862
|
+
doc = parseYaml2(text);
|
|
863
|
+
} catch {
|
|
864
|
+
return {};
|
|
865
|
+
}
|
|
866
|
+
if (doc === null || doc === void 0 || typeof doc !== "object" || Array.isArray(doc)) {
|
|
867
|
+
return {};
|
|
868
|
+
}
|
|
869
|
+
const defaults = doc["defaults"];
|
|
870
|
+
if (defaults === void 0 || defaults === null) return {};
|
|
871
|
+
return parseUserConfigObject(defaults, `${path} defaults`);
|
|
872
|
+
}
|
|
873
|
+
async function loadEffectiveConfig(cwd, opts = {}) {
|
|
874
|
+
const projectRoot = await findProjectRoot(cwd);
|
|
875
|
+
const projectPath = projectConfigFile(projectRoot.root);
|
|
876
|
+
const workspacePath = projectRoot.hasAgentboxYaml ? workspaceConfigFile(projectRoot.root) : null;
|
|
877
|
+
const [globalValues, projectValues, workspaceValues] = await Promise.all([
|
|
878
|
+
loadOptionalUserConfig(GLOBAL_CONFIG_FILE),
|
|
879
|
+
loadOptionalUserConfig(projectPath),
|
|
880
|
+
workspacePath ? loadProjectAgentboxDefaults(projectRoot.root) : Promise.resolve({})
|
|
881
|
+
]);
|
|
882
|
+
const cliValues = opts.cliOverrides ?? {};
|
|
883
|
+
const { effective, sources } = mergeLayers({
|
|
884
|
+
cli: cliValues,
|
|
885
|
+
workspace: workspaceValues,
|
|
886
|
+
project: projectValues,
|
|
887
|
+
global: globalValues
|
|
888
|
+
});
|
|
889
|
+
return {
|
|
890
|
+
effective,
|
|
891
|
+
layers: {
|
|
892
|
+
cli: { values: cliValues },
|
|
893
|
+
workspace: { path: workspacePath, values: workspaceValues },
|
|
894
|
+
project: { path: projectPath, values: projectValues },
|
|
895
|
+
global: { path: GLOBAL_CONFIG_FILE, values: globalValues },
|
|
896
|
+
defaults: BUILT_IN_DEFAULTS
|
|
897
|
+
},
|
|
898
|
+
sources,
|
|
899
|
+
projectRoot: projectRoot.root,
|
|
900
|
+
projectHash: hashProjectPath(projectRoot.root),
|
|
901
|
+
hasAgentboxYaml: projectRoot.hasAgentboxYaml
|
|
902
|
+
};
|
|
903
|
+
}
|
|
904
|
+
function mergeLayers(input) {
|
|
905
|
+
const effective = JSON.parse(JSON.stringify(BUILT_IN_DEFAULTS));
|
|
906
|
+
const sources = {};
|
|
907
|
+
const layerOrder = [
|
|
908
|
+
{ source: "cli", values: input.cli },
|
|
909
|
+
{ source: "workspace", values: input.workspace },
|
|
910
|
+
{ source: "project", values: input.project },
|
|
911
|
+
{ source: "global", values: input.global }
|
|
912
|
+
];
|
|
913
|
+
for (const desc of KEY_REGISTRY) {
|
|
914
|
+
const idx = desc.key.indexOf(".");
|
|
915
|
+
const branch = desc.key.slice(0, idx);
|
|
916
|
+
const leaf = desc.key.slice(idx + 1);
|
|
917
|
+
let chosen = null;
|
|
918
|
+
for (const layer of layerOrder) {
|
|
919
|
+
const v = readLeaf(layer.values, branch, leaf);
|
|
920
|
+
if (v !== void 0) {
|
|
921
|
+
chosen = { source: layer.source, value: v };
|
|
922
|
+
break;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
if (chosen) {
|
|
926
|
+
writeLeaf(effective, branch, leaf, chosen.value);
|
|
927
|
+
sources[desc.key] = chosen.source;
|
|
928
|
+
} else {
|
|
929
|
+
sources[desc.key] = "default";
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
return { effective, sources };
|
|
933
|
+
}
|
|
934
|
+
function readLeaf(obj, branch, leaf) {
|
|
935
|
+
let cur = obj[branch];
|
|
936
|
+
for (const seg of leaf.split(".")) {
|
|
937
|
+
if (cur === void 0 || cur === null || typeof cur !== "object") return void 0;
|
|
938
|
+
cur = cur[seg];
|
|
939
|
+
}
|
|
940
|
+
return cur;
|
|
941
|
+
}
|
|
942
|
+
function writeLeaf(obj, branch, leaf, value) {
|
|
943
|
+
let cur = obj[branch];
|
|
944
|
+
if (!cur) return;
|
|
945
|
+
const segs = leaf.split(".");
|
|
946
|
+
for (let i = 0; i < segs.length - 1; i++) {
|
|
947
|
+
const seg = segs[i];
|
|
948
|
+
const next = cur[seg];
|
|
949
|
+
if (next === void 0 || next === null || typeof next !== "object") {
|
|
950
|
+
cur[seg] = {};
|
|
951
|
+
}
|
|
952
|
+
cur = cur[seg];
|
|
953
|
+
}
|
|
954
|
+
cur[segs[segs.length - 1]] = value;
|
|
955
|
+
}
|
|
956
|
+
function perProviderValue(cfg, base, provider) {
|
|
957
|
+
if (!isProviderKind(provider)) return "";
|
|
958
|
+
const field = perProviderConfigKey(base, provider).slice("box.".length);
|
|
959
|
+
const val = cfg.box[field];
|
|
960
|
+
return typeof val === "string" ? val : "";
|
|
961
|
+
}
|
|
962
|
+
function resolveBoxImage(cfg, provider) {
|
|
963
|
+
const perProvider = perProviderValue(cfg, "image", provider);
|
|
964
|
+
if (perProvider.length > 0) return perProvider;
|
|
965
|
+
return cfg.box.image;
|
|
966
|
+
}
|
|
967
|
+
function boxImageConfigKey(provider) {
|
|
968
|
+
if (provider && isProviderKind(provider)) return perProviderConfigKey("image", provider);
|
|
969
|
+
return "box.image";
|
|
970
|
+
}
|
|
971
|
+
function resolveDefaultCheckpoint(cfg, provider) {
|
|
972
|
+
const perProvider = perProviderValue(cfg, "defaultCheckpoint", provider);
|
|
973
|
+
if (perProvider.length > 0) return perProvider;
|
|
974
|
+
return cfg.box.defaultCheckpoint;
|
|
975
|
+
}
|
|
976
|
+
function defaultCheckpointConfigKey(provider) {
|
|
977
|
+
if (provider && isProviderKind(provider)) {
|
|
978
|
+
return perProviderConfigKey("defaultCheckpoint", provider);
|
|
979
|
+
}
|
|
980
|
+
return "box.defaultCheckpoint";
|
|
981
|
+
}
|
|
982
|
+
function resolveBoxSize(cfg, provider) {
|
|
983
|
+
const perProvider = perProviderValue(cfg, "size", provider);
|
|
984
|
+
if (perProvider.length > 0) return perProvider;
|
|
985
|
+
return cfg.box.size;
|
|
986
|
+
}
|
|
987
|
+
async function setConfigValue(scope, key, value, cwd, opts = {}) {
|
|
988
|
+
if (!lookupKey(key)) {
|
|
989
|
+
throw new UserConfigError(`unknown key "${key}"`);
|
|
990
|
+
}
|
|
991
|
+
const coerced = opts.raw && typeof value === "string" ? coerceFromString(key, value) : value;
|
|
992
|
+
const path = await configPathFor(scope, cwd);
|
|
993
|
+
const current = await readExistingDoc(path);
|
|
994
|
+
setLeaf(current, key, coerced);
|
|
995
|
+
stampSchema(current);
|
|
996
|
+
parseUserConfig(stringifyYaml(current), path);
|
|
997
|
+
await atomicWriteYaml(path, current);
|
|
998
|
+
if (scope === "project") {
|
|
999
|
+
const root = (await findProjectRoot(cwd)).root;
|
|
1000
|
+
await touchProjectMeta(root);
|
|
1001
|
+
}
|
|
1002
|
+
return { path, coerced };
|
|
1003
|
+
}
|
|
1004
|
+
async function unsetConfigValue(scope, key, cwd) {
|
|
1005
|
+
if (!lookupKey(key)) {
|
|
1006
|
+
throw new UserConfigError(`unknown key "${key}"`);
|
|
1007
|
+
}
|
|
1008
|
+
const path = await configPathFor(scope, cwd);
|
|
1009
|
+
const current = await readExistingDoc(path);
|
|
1010
|
+
const existed = unsetLeaf(current, key);
|
|
1011
|
+
if (!existed) return { path, existed: false };
|
|
1012
|
+
stampSchema(current);
|
|
1013
|
+
await atomicWriteYaml(path, current);
|
|
1014
|
+
if (scope === "project") {
|
|
1015
|
+
const root = (await findProjectRoot(cwd)).root;
|
|
1016
|
+
await touchProjectMeta(root);
|
|
1017
|
+
}
|
|
1018
|
+
return { path, existed: true };
|
|
1019
|
+
}
|
|
1020
|
+
async function listProjectsConfigured() {
|
|
1021
|
+
let entries;
|
|
1022
|
+
try {
|
|
1023
|
+
entries = await readdir(PROJECTS_DIR);
|
|
1024
|
+
} catch (err) {
|
|
1025
|
+
if (err.code === "ENOENT") return [];
|
|
1026
|
+
throw err;
|
|
1027
|
+
}
|
|
1028
|
+
const out = [];
|
|
1029
|
+
for (const dirName of entries) {
|
|
1030
|
+
const m = /^([0-9a-f]{16})(?:-.+)?$/.exec(dirName);
|
|
1031
|
+
if (!m) continue;
|
|
1032
|
+
const hash = m[1];
|
|
1033
|
+
const meta = await readMeta(dirName);
|
|
1034
|
+
if (!meta) continue;
|
|
1035
|
+
const cfgPath = projectConfigFile(meta.originalPath);
|
|
1036
|
+
const hasConfig = await fileExists2(cfgPath);
|
|
1037
|
+
out.push({
|
|
1038
|
+
hash,
|
|
1039
|
+
dirName,
|
|
1040
|
+
originalPath: meta.originalPath,
|
|
1041
|
+
createdAt: meta.createdAt,
|
|
1042
|
+
lastSeenAt: meta.lastSeenAt,
|
|
1043
|
+
configPath: cfgPath,
|
|
1044
|
+
hasConfigFile: hasConfig
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
out.sort((a, b) => a.originalPath.localeCompare(b.originalPath));
|
|
1048
|
+
return out;
|
|
1049
|
+
}
|
|
1050
|
+
async function pruneOrphanProjectConfigs(opts = {}) {
|
|
1051
|
+
const dryRun = opts.dryRun ?? false;
|
|
1052
|
+
const keep = new Set(opts.protectedPaths ?? []);
|
|
1053
|
+
const removed = [];
|
|
1054
|
+
for (const entry of await listProjectsConfigured()) {
|
|
1055
|
+
if (!isAbsolute(entry.originalPath) || keep.has(entry.originalPath)) continue;
|
|
1056
|
+
let missing = false;
|
|
1057
|
+
try {
|
|
1058
|
+
await stat2(entry.originalPath);
|
|
1059
|
+
} catch (err) {
|
|
1060
|
+
if (err.code === "ENOENT") missing = true;
|
|
1061
|
+
}
|
|
1062
|
+
if (!missing) continue;
|
|
1063
|
+
removed.push({ hash: entry.hash, originalPath: entry.originalPath });
|
|
1064
|
+
if (!dryRun) {
|
|
1065
|
+
try {
|
|
1066
|
+
await rm(join2(PROJECTS_DIR, entry.dirName), { recursive: true, force: true });
|
|
1067
|
+
} catch {
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
return { removed, dryRun };
|
|
1072
|
+
}
|
|
1073
|
+
var PROJECT_GC_COUNTER_FILE = join2(PROJECTS_DIR, ".gc.json");
|
|
1074
|
+
async function bumpProjectGcCounter() {
|
|
1075
|
+
let prior = 0;
|
|
1076
|
+
try {
|
|
1077
|
+
const parsed = JSON.parse(await readFile2(PROJECT_GC_COUNTER_FILE, "utf8"));
|
|
1078
|
+
if (typeof parsed.creates === "number" && Number.isFinite(parsed.creates)) {
|
|
1079
|
+
prior = parsed.creates;
|
|
1080
|
+
}
|
|
1081
|
+
} catch {
|
|
1082
|
+
}
|
|
1083
|
+
const next = prior + 1;
|
|
1084
|
+
await mkdir(PROJECTS_DIR, { recursive: true });
|
|
1085
|
+
const tmp = `${PROJECT_GC_COUNTER_FILE}.tmp-${process.pid.toString()}-${Date.now().toString(36)}`;
|
|
1086
|
+
await writeFile(tmp, JSON.stringify({ creates: next }) + "\n", { encoding: "utf8", mode: 420 });
|
|
1087
|
+
await rename(tmp, PROJECT_GC_COUNTER_FILE);
|
|
1088
|
+
return next;
|
|
1089
|
+
}
|
|
1090
|
+
async function readMeta(dirName) {
|
|
1091
|
+
const metaPath = `${PROJECTS_DIR}/${dirName}/meta.json`;
|
|
1092
|
+
try {
|
|
1093
|
+
const text = await readFile2(metaPath, "utf8");
|
|
1094
|
+
const parsed = JSON.parse(text);
|
|
1095
|
+
if (typeof parsed["originalPath"] !== "string") return null;
|
|
1096
|
+
return {
|
|
1097
|
+
originalPath: parsed["originalPath"],
|
|
1098
|
+
createdAt: typeof parsed["createdAt"] === "string" ? parsed["createdAt"] : null,
|
|
1099
|
+
lastSeenAt: typeof parsed["lastSeenAt"] === "string" ? parsed["lastSeenAt"] : null
|
|
1100
|
+
};
|
|
1101
|
+
} catch {
|
|
1102
|
+
return null;
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
async function fileExists2(p) {
|
|
1106
|
+
try {
|
|
1107
|
+
const st = await stat2(p);
|
|
1108
|
+
return st.isFile();
|
|
1109
|
+
} catch {
|
|
1110
|
+
return false;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
async function readExistingDoc(path) {
|
|
1114
|
+
let text;
|
|
1115
|
+
try {
|
|
1116
|
+
text = await readFile2(path, "utf8");
|
|
1117
|
+
} catch (err) {
|
|
1118
|
+
if (err.code === "ENOENT") return {};
|
|
1119
|
+
throw err;
|
|
1120
|
+
}
|
|
1121
|
+
return parseUserConfig(text, path);
|
|
1122
|
+
}
|
|
1123
|
+
var CURRENT_CONFIG_SCHEMA = 1;
|
|
1124
|
+
function stampSchema(doc) {
|
|
1125
|
+
if (typeof doc.schema !== "number") {
|
|
1126
|
+
doc.schema = CURRENT_CONFIG_SCHEMA;
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
function setLeaf(doc, key, value) {
|
|
1130
|
+
const segs = key.split(".");
|
|
1131
|
+
let cur = doc;
|
|
1132
|
+
for (let i = 0; i < segs.length - 1; i++) {
|
|
1133
|
+
const seg = segs[i];
|
|
1134
|
+
const next = cur[seg];
|
|
1135
|
+
if (!next || typeof next !== "object") {
|
|
1136
|
+
cur[seg] = {};
|
|
1137
|
+
}
|
|
1138
|
+
cur = cur[seg];
|
|
1139
|
+
}
|
|
1140
|
+
cur[segs[segs.length - 1]] = value;
|
|
1141
|
+
}
|
|
1142
|
+
function unsetLeaf(doc, key) {
|
|
1143
|
+
const segs = key.split(".");
|
|
1144
|
+
const path = [doc];
|
|
1145
|
+
for (let i = 0; i < segs.length - 1; i++) {
|
|
1146
|
+
const seg = segs[i];
|
|
1147
|
+
const next = path[path.length - 1][seg];
|
|
1148
|
+
if (!next || typeof next !== "object") return false;
|
|
1149
|
+
path.push(next);
|
|
1150
|
+
}
|
|
1151
|
+
const leafSeg = segs[segs.length - 1];
|
|
1152
|
+
const leafContainer = path[path.length - 1];
|
|
1153
|
+
if (!(leafSeg in leafContainer)) return false;
|
|
1154
|
+
delete leafContainer[leafSeg];
|
|
1155
|
+
for (let i = path.length - 1; i > 0; i--) {
|
|
1156
|
+
if (Object.keys(path[i]).length > 0) break;
|
|
1157
|
+
delete path[i - 1][segs[i - 1]];
|
|
1158
|
+
}
|
|
1159
|
+
return true;
|
|
1160
|
+
}
|
|
1161
|
+
async function atomicWriteYaml(path, doc) {
|
|
1162
|
+
await mkdir(dirname2(path), { recursive: true });
|
|
1163
|
+
const text = Object.keys(doc).length === 0 ? "# managed by agentbox config \u2014 empty\n" : stringifyYaml(doc);
|
|
1164
|
+
const tmp = `${path}.tmp-${process.pid.toString()}-${Date.now().toString(36)}`;
|
|
1165
|
+
await writeFile(tmp, text, { encoding: "utf8", mode: 420 });
|
|
1166
|
+
await rename(tmp, path);
|
|
1167
|
+
}
|
|
1168
|
+
async function registerProject(absPath) {
|
|
1169
|
+
await touchProjectMeta(absPath);
|
|
1170
|
+
}
|
|
1171
|
+
async function unregisterProject(hash) {
|
|
1172
|
+
const entry = (await listProjectsConfigured()).find((e) => e.hash === hash);
|
|
1173
|
+
if (!entry) return false;
|
|
1174
|
+
await rm(join2(PROJECTS_DIR, entry.dirName), { recursive: true, force: true });
|
|
1175
|
+
return true;
|
|
1176
|
+
}
|
|
1177
|
+
async function touchProjectMeta(absPath) {
|
|
1178
|
+
const dir = dirname2(projectMetaFile(absPath));
|
|
1179
|
+
await mkdir(dir, { recursive: true });
|
|
1180
|
+
const metaPath = projectMetaFile(absPath);
|
|
1181
|
+
let prior = {};
|
|
1182
|
+
try {
|
|
1183
|
+
prior = JSON.parse(await readFile2(metaPath, "utf8"));
|
|
1184
|
+
} catch {
|
|
1185
|
+
}
|
|
1186
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1187
|
+
const next = {
|
|
1188
|
+
originalPath: absPath,
|
|
1189
|
+
hash: hashProjectPath(absPath),
|
|
1190
|
+
createdAt: prior.createdAt ?? now,
|
|
1191
|
+
lastSeenAt: now
|
|
1192
|
+
};
|
|
1193
|
+
const tmp = `${metaPath}.tmp-${process.pid.toString()}-${Date.now().toString(36)}`;
|
|
1194
|
+
await writeFile(tmp, JSON.stringify(next, null, 2) + "\n", { encoding: "utf8", mode: 420 });
|
|
1195
|
+
await rename(tmp, metaPath);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
export {
|
|
1199
|
+
PROVIDERS,
|
|
1200
|
+
PROVIDER_NAMES,
|
|
1201
|
+
CLOUD_PROVIDER_NAMES,
|
|
1202
|
+
isProviderKind,
|
|
1203
|
+
providerMeta,
|
|
1204
|
+
providerKeyCap,
|
|
1205
|
+
perProviderConfigKey,
|
|
1206
|
+
BUILT_IN_DEFAULTS,
|
|
1207
|
+
KEY_REGISTRY,
|
|
1208
|
+
lookupKey,
|
|
1209
|
+
UserConfigError,
|
|
1210
|
+
parseUserConfig,
|
|
1211
|
+
parseUserConfigObject,
|
|
1212
|
+
coerceFromString,
|
|
1213
|
+
STATE_DIR,
|
|
1214
|
+
GLOBAL_CONFIG_FILE,
|
|
1215
|
+
PROJECTS_DIR,
|
|
1216
|
+
WORKSPACE_CONFIG_BASENAME,
|
|
1217
|
+
findProjectRoot,
|
|
1218
|
+
hashProjectPath,
|
|
1219
|
+
sanitizeMnemonic,
|
|
1220
|
+
projectDirSegment,
|
|
1221
|
+
projectConfigDir,
|
|
1222
|
+
projectConfigFile,
|
|
1223
|
+
projectMetaFile,
|
|
1224
|
+
workspaceConfigFile,
|
|
1225
|
+
configPathFor,
|
|
1226
|
+
loadProjectAgentboxDefaults,
|
|
1227
|
+
loadEffectiveConfig,
|
|
1228
|
+
resolveBoxImage,
|
|
1229
|
+
boxImageConfigKey,
|
|
1230
|
+
resolveDefaultCheckpoint,
|
|
1231
|
+
defaultCheckpointConfigKey,
|
|
1232
|
+
resolveBoxSize,
|
|
1233
|
+
setConfigValue,
|
|
1234
|
+
unsetConfigValue,
|
|
1235
|
+
listProjectsConfigured,
|
|
1236
|
+
pruneOrphanProjectConfigs,
|
|
1237
|
+
bumpProjectGcCounter,
|
|
1238
|
+
registerProject,
|
|
1239
|
+
unregisterProject
|
|
1240
|
+
};
|
|
1241
|
+
//# sourceMappingURL=chunk-VBSRJG53.js.map
|