@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,838 @@
|
|
|
1
|
+
import { createRequire as __cr } from 'node:module'; import { fileURLToPath as __f } from 'node:url'; import { dirname as __d } from 'node:path'; const require = __cr(import.meta.url); const __filename = __f(import.meta.url); const __dirname = __d(__filename);
|
|
2
|
+
import {
|
|
3
|
+
baseFreshnessFromFingerprints,
|
|
4
|
+
currentCloudBaseFingerprint
|
|
5
|
+
} from "./chunk-JDA7BPPN.js";
|
|
6
|
+
import {
|
|
7
|
+
enqueuePrepareJob,
|
|
8
|
+
enqueueQueueJob,
|
|
9
|
+
hashRpcParams,
|
|
10
|
+
isValidBoxStatus,
|
|
11
|
+
listBoxes,
|
|
12
|
+
loadQueue,
|
|
13
|
+
mintHostInitiatedToken,
|
|
14
|
+
readJob,
|
|
15
|
+
startRelayDaemon,
|
|
16
|
+
writeQueueLoginCode
|
|
17
|
+
} from "./chunk-V5KGFHCF.js";
|
|
18
|
+
import {
|
|
19
|
+
PROVIDER_NAMES,
|
|
20
|
+
findProjectRoot,
|
|
21
|
+
hashProjectPath,
|
|
22
|
+
isProviderKind,
|
|
23
|
+
listProjectsConfigured,
|
|
24
|
+
loadEffectiveConfig,
|
|
25
|
+
providerMeta,
|
|
26
|
+
registerProject,
|
|
27
|
+
resolveDefaultCheckpoint,
|
|
28
|
+
unregisterProject
|
|
29
|
+
} from "./chunk-AKLBSCSZ.js";
|
|
30
|
+
import "./chunk-3LAHFDJF.js";
|
|
31
|
+
import {
|
|
32
|
+
BOX_WORKSPACE,
|
|
33
|
+
boxGitCheckout,
|
|
34
|
+
boxGitNewBranch,
|
|
35
|
+
boxGitPull,
|
|
36
|
+
boxGitPush,
|
|
37
|
+
boxGitPushHost,
|
|
38
|
+
boxRestartService,
|
|
39
|
+
boxRestartServices,
|
|
40
|
+
boxServicesStatusRaw,
|
|
41
|
+
normalizeLastAgent,
|
|
42
|
+
readPreparedStateRaw,
|
|
43
|
+
readState,
|
|
44
|
+
secretsEnvPath
|
|
45
|
+
} from "./chunk-LJG4CEGS.js";
|
|
46
|
+
import "./chunk-EFW34I43.js";
|
|
47
|
+
import "./chunk-TZFWAJVB.js";
|
|
48
|
+
|
|
49
|
+
// server.ts
|
|
50
|
+
import { existsSync, readFileSync as readFileSync2 } from "node:fs";
|
|
51
|
+
import path2 from "node:path";
|
|
52
|
+
import next from "next";
|
|
53
|
+
|
|
54
|
+
// lib/hub-backend.ts
|
|
55
|
+
import { execFile } from "node:child_process";
|
|
56
|
+
import { readFileSync } from "node:fs";
|
|
57
|
+
import { readdir, stat } from "node:fs/promises";
|
|
58
|
+
import os from "node:os";
|
|
59
|
+
import path from "node:path";
|
|
60
|
+
import { promisify } from "node:util";
|
|
61
|
+
var execFileAsync = promisify(execFile);
|
|
62
|
+
var IMPORTERS = {
|
|
63
|
+
docker: () => import("./dist-ELOY2IUE.js"),
|
|
64
|
+
daytona: () => import("./dist-FDBOJ74K.js"),
|
|
65
|
+
hetzner: () => import("./dist-GGM4BUKM.js"),
|
|
66
|
+
vercel: () => import("./dist-CM4YAQLI.js"),
|
|
67
|
+
e2b: () => import("./dist-BF54UNHK.js")
|
|
68
|
+
};
|
|
69
|
+
var prepareEnqueueChain = /* @__PURE__ */ new Map();
|
|
70
|
+
async function providerForBox(box) {
|
|
71
|
+
const name = box.provider ?? "docker";
|
|
72
|
+
if (!isProviderKind(name)) {
|
|
73
|
+
throw new Error(`box ${box.id}: unsupported provider "${name}" (built-in providers only)`);
|
|
74
|
+
}
|
|
75
|
+
const mod = (await IMPORTERS[name]()).providerModule;
|
|
76
|
+
if (mod.ensureCredentials) await mod.ensureCredentials();
|
|
77
|
+
return mod.provider;
|
|
78
|
+
}
|
|
79
|
+
function projectRootOf(b) {
|
|
80
|
+
return b.projectRoot ?? b.workspacePath ?? b.id;
|
|
81
|
+
}
|
|
82
|
+
function mapStatus(b) {
|
|
83
|
+
const errored = b.claudeActivity === "error" || b.codexActivity === "error";
|
|
84
|
+
switch (b.state) {
|
|
85
|
+
case "running":
|
|
86
|
+
return errored ? "error" : "running";
|
|
87
|
+
case "paused":
|
|
88
|
+
return "paused";
|
|
89
|
+
default:
|
|
90
|
+
return "stopped";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function hostLabel(b) {
|
|
94
|
+
const provider = b.provider ?? "docker";
|
|
95
|
+
if (provider === "docker") return "local \xB7 docker";
|
|
96
|
+
return b.cloud?.backend ? `${provider} \xB7 ${b.cloud.backend}` : provider;
|
|
97
|
+
}
|
|
98
|
+
function mapBox(b) {
|
|
99
|
+
const root = projectRootOf(b);
|
|
100
|
+
const createdAt = Date.parse(b.createdAt) || Date.now();
|
|
101
|
+
const status = mapStatus(b);
|
|
102
|
+
const eps = b.endpoints?.endpoints ?? [];
|
|
103
|
+
return {
|
|
104
|
+
id: b.id,
|
|
105
|
+
projectId: hashProjectPath(root),
|
|
106
|
+
repo: path.basename(root),
|
|
107
|
+
branch: b.gitWorktrees?.[0]?.branch ?? b.cloud?.workspaceBranch ?? "",
|
|
108
|
+
task: b.claudeSessionTitle ?? b.codexSessionTitle ?? b.opencodeSessionTitle ?? b.name,
|
|
109
|
+
// Normalize the frozen wire spelling ('claude-code') to the UI label ('claude').
|
|
110
|
+
agent: normalizeLastAgent(b.lastAgent) ?? "claude",
|
|
111
|
+
status,
|
|
112
|
+
createdAt,
|
|
113
|
+
lastActivity: createdAt,
|
|
114
|
+
host: hostLabel(b),
|
|
115
|
+
commits: null,
|
|
116
|
+
filesTouched: null,
|
|
117
|
+
error: status === "error" ? b.claudeSessionTitle ?? "Agent reported an error" : null,
|
|
118
|
+
webUrl: eps.find((e) => e.kind === "web")?.url ?? null,
|
|
119
|
+
vncUrl: eps.find((e) => e.kind === "vnc")?.url ?? null
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
async function hostBranchOf(repo) {
|
|
123
|
+
try {
|
|
124
|
+
const { stdout } = await execFileAsync("git", ["-C", repo, "rev-parse", "--abbrev-ref", "HEAD"]);
|
|
125
|
+
const branch = stdout.trim();
|
|
126
|
+
return !branch || branch === "HEAD" ? null : branch;
|
|
127
|
+
} catch {
|
|
128
|
+
return null;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
async function computeNeedsSetup(root, provider) {
|
|
132
|
+
try {
|
|
133
|
+
const cfg = await loadEffectiveConfig(root);
|
|
134
|
+
if (cfg.hasAgentboxYaml) return false;
|
|
135
|
+
return resolveDefaultCheckpoint(cfg.effective, provider).length === 0;
|
|
136
|
+
} catch {
|
|
137
|
+
return false;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
async function listProjects(boxes) {
|
|
141
|
+
const boxByRoot = /* @__PURE__ */ new Map();
|
|
142
|
+
for (const b of boxes) {
|
|
143
|
+
const root = projectRootOf(b);
|
|
144
|
+
const createdAt = Date.parse(b.createdAt) || Date.now();
|
|
145
|
+
const existing = boxByRoot.get(root);
|
|
146
|
+
if (!existing) boxByRoot.set(root, { root, provider: b.provider ?? "docker", createdAt });
|
|
147
|
+
else if (createdAt < existing.createdAt) existing.createdAt = createdAt;
|
|
148
|
+
}
|
|
149
|
+
await Promise.all([...boxByRoot.keys()].map((r) => registerProject(r).catch(() => {
|
|
150
|
+
})));
|
|
151
|
+
const byId = /* @__PURE__ */ new Map();
|
|
152
|
+
const pathById = /* @__PURE__ */ new Map();
|
|
153
|
+
for (const e of await listProjectsConfigured()) {
|
|
154
|
+
const box = boxByRoot.get(e.originalPath);
|
|
155
|
+
byId.set(e.hash, {
|
|
156
|
+
id: e.hash,
|
|
157
|
+
name: path.basename(e.originalPath),
|
|
158
|
+
repo: path.basename(e.originalPath),
|
|
159
|
+
defaultBranch: "main",
|
|
160
|
+
provider: box?.provider ?? "docker",
|
|
161
|
+
createdAt: box?.createdAt ?? (e.createdAt ? Date.parse(e.createdAt) || Date.now() : Date.now())
|
|
162
|
+
});
|
|
163
|
+
pathById.set(e.hash, e.originalPath);
|
|
164
|
+
}
|
|
165
|
+
for (const p of boxByRoot.values()) {
|
|
166
|
+
const id = hashProjectPath(p.root);
|
|
167
|
+
if (!byId.has(id)) {
|
|
168
|
+
byId.set(id, {
|
|
169
|
+
id,
|
|
170
|
+
name: path.basename(p.root),
|
|
171
|
+
repo: path.basename(p.root),
|
|
172
|
+
defaultBranch: "main",
|
|
173
|
+
provider: p.provider,
|
|
174
|
+
createdAt: p.createdAt
|
|
175
|
+
});
|
|
176
|
+
pathById.set(id, p.root);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
await Promise.all(
|
|
180
|
+
[...byId.entries()].map(async ([id, proj]) => {
|
|
181
|
+
const repo = pathById.get(id);
|
|
182
|
+
if (!repo) return;
|
|
183
|
+
[proj.currentBranch, proj.needsSetup] = await Promise.all([
|
|
184
|
+
hostBranchOf(repo),
|
|
185
|
+
computeNeedsSetup(repo, proj.provider)
|
|
186
|
+
]);
|
|
187
|
+
})
|
|
188
|
+
);
|
|
189
|
+
return [...byId.values()].sort((a, b) => b.createdAt - a.createdAt);
|
|
190
|
+
}
|
|
191
|
+
async function resolveProjectPath(projectId) {
|
|
192
|
+
const entry = (await listProjectsConfigured()).find((e) => e.hash === projectId);
|
|
193
|
+
if (entry) return entry.originalPath;
|
|
194
|
+
for (const b of await listBoxes()) {
|
|
195
|
+
const root = projectRootOf(b);
|
|
196
|
+
if (hashProjectPath(root) === projectId) {
|
|
197
|
+
await registerProject(root).catch(() => {
|
|
198
|
+
});
|
|
199
|
+
return root;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
return null;
|
|
203
|
+
}
|
|
204
|
+
var AGENT_LABEL = {
|
|
205
|
+
"claude-code": "claude",
|
|
206
|
+
codex: "codex",
|
|
207
|
+
opencode: "opencode"
|
|
208
|
+
};
|
|
209
|
+
function mapJobToBox(job, status) {
|
|
210
|
+
const root = job.createOpts.workspace;
|
|
211
|
+
const createdAt = Date.parse(job.createdAt) || Date.now();
|
|
212
|
+
return {
|
|
213
|
+
id: job.boxId ?? `job:${job.id}`,
|
|
214
|
+
projectId: hashProjectPath(root),
|
|
215
|
+
repo: path.basename(root),
|
|
216
|
+
branch: "",
|
|
217
|
+
task: job.prompt || job.boxName || "new box",
|
|
218
|
+
// A no-agent box ("just create") has no agent — show the shell glyph.
|
|
219
|
+
agent: job.noAgent ? "shell" : AGENT_LABEL[job.agent] ?? "claude",
|
|
220
|
+
status,
|
|
221
|
+
createdAt,
|
|
222
|
+
lastActivity: createdAt,
|
|
223
|
+
host: job.providerName === "docker" ? "local \xB7 docker" : job.providerName,
|
|
224
|
+
commits: null,
|
|
225
|
+
filesTouched: null,
|
|
226
|
+
error: status === "error" ? job.reason ?? "create failed" : null
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
function isProviderConfigured(id) {
|
|
230
|
+
if (id === "docker") return true;
|
|
231
|
+
const raw = readPreparedStateRaw(id);
|
|
232
|
+
return !!(raw && typeof raw === "object" && raw.base);
|
|
233
|
+
}
|
|
234
|
+
var PROVIDER_CRED_KEYS = {
|
|
235
|
+
docker: [],
|
|
236
|
+
e2b: ["E2B_API_KEY"],
|
|
237
|
+
daytona: ["DAYTONA_API_KEY", "DAYTONA_JWT_TOKEN"],
|
|
238
|
+
hetzner: ["HCLOUD_TOKEN"],
|
|
239
|
+
vercel: ["VERCEL_TOKEN", "VERCEL_OIDC_TOKEN", "VERCEL_AUTH_SOURCE"]
|
|
240
|
+
};
|
|
241
|
+
function readSecretsKeys() {
|
|
242
|
+
const out = /* @__PURE__ */ new Set();
|
|
243
|
+
let body = "";
|
|
244
|
+
try {
|
|
245
|
+
body = readFileSync(secretsEnvPath(), "utf8");
|
|
246
|
+
} catch {
|
|
247
|
+
return out;
|
|
248
|
+
}
|
|
249
|
+
for (const line of body.split(/\r?\n/)) {
|
|
250
|
+
const stripped = line.startsWith("export ") ? line.slice("export ".length) : line;
|
|
251
|
+
const eq = stripped.indexOf("=");
|
|
252
|
+
if (eq > 0) out.add(stripped.slice(0, eq).trim());
|
|
253
|
+
}
|
|
254
|
+
return out;
|
|
255
|
+
}
|
|
256
|
+
function hasProviderCredentials(id, keys) {
|
|
257
|
+
if (id === "docker") return true;
|
|
258
|
+
return PROVIDER_CRED_KEYS[id].some((k) => keys.has(k) || !!process.env[k]);
|
|
259
|
+
}
|
|
260
|
+
async function dockerDaemonReachable() {
|
|
261
|
+
try {
|
|
262
|
+
await execFileAsync("docker", ["info"], { timeout: 8e3 });
|
|
263
|
+
return true;
|
|
264
|
+
} catch {
|
|
265
|
+
return false;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
async function binOnPath(name) {
|
|
269
|
+
try {
|
|
270
|
+
await execFileAsync(process.platform === "win32" ? "where" : "which", [name], { timeout: 4e3 });
|
|
271
|
+
return true;
|
|
272
|
+
} catch {
|
|
273
|
+
return false;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
async function preparePrecheck(id) {
|
|
277
|
+
if (id === "docker") {
|
|
278
|
+
return await dockerDaemonReachable() ? null : "Docker daemon is not reachable on this host \u2014 start Docker and try again.";
|
|
279
|
+
}
|
|
280
|
+
if (!hasProviderCredentials(id, readSecretsKeys())) {
|
|
281
|
+
return `No credentials for ${id} \u2014 add them before baking.`;
|
|
282
|
+
}
|
|
283
|
+
if (id === "hetzner") {
|
|
284
|
+
const [ssh, scp] = await Promise.all([binOnPath("ssh"), binOnPath("scp")]);
|
|
285
|
+
if (!ssh || !scp) {
|
|
286
|
+
return "Hetzner baking needs the OpenSSH client (`ssh`/`scp`) on the host \u2014 install it and retry.";
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
function listProviders(jobs) {
|
|
292
|
+
const keys = readSecretsKeys();
|
|
293
|
+
return PROVIDER_NAMES.map((id) => {
|
|
294
|
+
const label = id === "docker" ? providerMeta(id).label : providerMeta(id).label.replace(/\s*\(.*\)$/, "");
|
|
295
|
+
const configured = isProviderConfigured(id);
|
|
296
|
+
const hasCredentials = hasProviderCredentials(id, keys);
|
|
297
|
+
const bake = jobs.find(
|
|
298
|
+
(j) => j.kind === "prepare" && j.providerName === id && (j.status === "queued" || j.status === "running")
|
|
299
|
+
);
|
|
300
|
+
let reason;
|
|
301
|
+
if (!configured) {
|
|
302
|
+
reason = hasCredentials ? "Credentials set \u2014 bake the base image to finish setup." : "Not set up \u2014 add credentials, then bake the base image.";
|
|
303
|
+
}
|
|
304
|
+
return { id, label, configured, hasCredentials, jobId: bake?.id, reason };
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
var FRESHNESS_TTL_MS = 6e4;
|
|
308
|
+
var freshnessCache = /* @__PURE__ */ new Map();
|
|
309
|
+
async function providerBaseFreshness(id, claudeInstall) {
|
|
310
|
+
if (id === "docker") return { state: "fresh" };
|
|
311
|
+
const stored = currentCloudBaseFingerprint(id);
|
|
312
|
+
const cached = freshnessCache.get(id);
|
|
313
|
+
let live;
|
|
314
|
+
if (cached && cached.stored === (stored ?? "") && Date.now() - cached.at < FRESHNESS_TTL_MS) {
|
|
315
|
+
live = cached.live;
|
|
316
|
+
} else {
|
|
317
|
+
try {
|
|
318
|
+
const mod = (await IMPORTERS[id]()).providerModule;
|
|
319
|
+
live = await mod.currentBaseFingerprintLive?.(claudeInstall);
|
|
320
|
+
} catch {
|
|
321
|
+
live = void 0;
|
|
322
|
+
}
|
|
323
|
+
freshnessCache.set(id, { at: Date.now(), stored: stored ?? "", live });
|
|
324
|
+
}
|
|
325
|
+
return baseFreshnessFromFingerprints(stored, live);
|
|
326
|
+
}
|
|
327
|
+
async function listProvidersWithFreshness(base) {
|
|
328
|
+
let claudeInstall = "native";
|
|
329
|
+
try {
|
|
330
|
+
const cfg = await loadEffectiveConfig(os.homedir());
|
|
331
|
+
if (cfg.effective.box.claudeInstall === "npm") claudeInstall = "npm";
|
|
332
|
+
} catch {
|
|
333
|
+
}
|
|
334
|
+
return Promise.all(
|
|
335
|
+
base.map(async (p) => {
|
|
336
|
+
if (!isProviderKind(p.id) || p.id === "docker") return p;
|
|
337
|
+
const fresh = await providerBaseFreshness(p.id, claudeInstall);
|
|
338
|
+
return {
|
|
339
|
+
...p,
|
|
340
|
+
baseStatus: fresh.state,
|
|
341
|
+
baseStaleReason: fresh.state === "stale" ? fresh.reason : void 0
|
|
342
|
+
};
|
|
343
|
+
})
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
function currentUser() {
|
|
347
|
+
let login = "user";
|
|
348
|
+
try {
|
|
349
|
+
login = os.userInfo().username || "user";
|
|
350
|
+
} catch {
|
|
351
|
+
}
|
|
352
|
+
return { login, name: login };
|
|
353
|
+
}
|
|
354
|
+
var LOCAL_GITHUB = {
|
|
355
|
+
available: false,
|
|
356
|
+
installed: false,
|
|
357
|
+
appName: "GitHub App",
|
|
358
|
+
account: "",
|
|
359
|
+
installedAt: 0,
|
|
360
|
+
repos: []
|
|
361
|
+
};
|
|
362
|
+
function mapApproval(p) {
|
|
363
|
+
return {
|
|
364
|
+
id: p.id,
|
|
365
|
+
boxId: p.boxId,
|
|
366
|
+
message: p.ev.message,
|
|
367
|
+
detail: p.ev.detail,
|
|
368
|
+
command: p.ev.context?.command,
|
|
369
|
+
cwd: p.ev.context?.cwd,
|
|
370
|
+
argv: p.ev.context?.argv,
|
|
371
|
+
defaultAnswer: p.ev.defaultAnswer ?? "n",
|
|
372
|
+
createdAt: Date.parse(p.createdAt) || Date.now()
|
|
373
|
+
};
|
|
374
|
+
}
|
|
375
|
+
async function looksLikeProject(dir) {
|
|
376
|
+
const [git, yaml] = await Promise.all([
|
|
377
|
+
stat(path.join(dir, ".git")).then(() => true).catch(() => false),
|
|
378
|
+
stat(path.join(dir, "agentbox.yaml")).then(() => true).catch(() => false)
|
|
379
|
+
]);
|
|
380
|
+
return git || yaml;
|
|
381
|
+
}
|
|
382
|
+
async function browseDirHost(dir) {
|
|
383
|
+
try {
|
|
384
|
+
const target = dir && dir.trim() ? dir.trim() : os.homedir();
|
|
385
|
+
if (!path.isAbsolute(target)) return { ok: false, error: "an absolute path is required" };
|
|
386
|
+
const st = await stat(target).catch(() => null);
|
|
387
|
+
if (!st || !st.isDirectory()) return { ok: false, error: `not a directory: ${target}` };
|
|
388
|
+
const dirents = await readdir(target, { withFileTypes: true });
|
|
389
|
+
const entries = [];
|
|
390
|
+
for (const d of dirents) {
|
|
391
|
+
if (d.name.startsWith(".")) continue;
|
|
392
|
+
if (!d.isDirectory() && !d.isSymbolicLink()) continue;
|
|
393
|
+
const full = path.join(target, d.name);
|
|
394
|
+
if (d.isSymbolicLink()) {
|
|
395
|
+
const ls = await stat(full).catch(() => null);
|
|
396
|
+
if (!ls || !ls.isDirectory()) continue;
|
|
397
|
+
}
|
|
398
|
+
entries.push({ name: d.name, path: full, isProject: await looksLikeProject(full) });
|
|
399
|
+
}
|
|
400
|
+
entries.sort((a, b) => a.name.localeCompare(b.name));
|
|
401
|
+
const parent = path.dirname(target);
|
|
402
|
+
return { ok: true, path: target, parent: parent === target ? null : parent, entries };
|
|
403
|
+
} catch (err) {
|
|
404
|
+
return { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
var SHA_RE = /^[0-9a-f]{7,40}$/i;
|
|
408
|
+
var GIT_NET_TIMEOUT_MS = 15e3;
|
|
409
|
+
async function branchListHost(repo) {
|
|
410
|
+
try {
|
|
411
|
+
await execFileAsync("git", ["-C", repo, "fetch", "--quiet", "--all"], {
|
|
412
|
+
timeout: GIT_NET_TIMEOUT_MS
|
|
413
|
+
}).catch(() => {
|
|
414
|
+
});
|
|
415
|
+
const { stdout } = await execFileAsync("git", [
|
|
416
|
+
"-C",
|
|
417
|
+
repo,
|
|
418
|
+
"for-each-ref",
|
|
419
|
+
"--format=%(refname:short)",
|
|
420
|
+
"refs/heads",
|
|
421
|
+
"refs/remotes"
|
|
422
|
+
]);
|
|
423
|
+
const seen = /* @__PURE__ */ new Set();
|
|
424
|
+
const branches = [];
|
|
425
|
+
for (const raw of stdout.split("\n")) {
|
|
426
|
+
const b = raw.trim();
|
|
427
|
+
if (!b || b.endsWith("/HEAD")) continue;
|
|
428
|
+
if (seen.has(b)) continue;
|
|
429
|
+
seen.add(b);
|
|
430
|
+
branches.push(b);
|
|
431
|
+
}
|
|
432
|
+
return { ok: true, current: await hostBranchOf(repo), branches };
|
|
433
|
+
} catch (err) {
|
|
434
|
+
return { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
async function verifyFromBranch(repo, ref) {
|
|
438
|
+
if (!SHA_RE.test(ref)) {
|
|
439
|
+
await execFileAsync("git", ["-C", repo, "fetch", "--quiet", "origin", ref], {
|
|
440
|
+
timeout: GIT_NET_TIMEOUT_MS
|
|
441
|
+
}).catch(() => {
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
const ok = await execFileAsync("git", ["-C", repo, "rev-parse", "--verify", `${ref}^{commit}`]).then(() => true).catch(() => false);
|
|
445
|
+
return ok ? { ok: true } : { ok: false, error: `unknown base ref "${ref}" (not found in the project repo)` };
|
|
446
|
+
}
|
|
447
|
+
async function runLifecycle(id, op) {
|
|
448
|
+
try {
|
|
449
|
+
const { boxes } = await readState();
|
|
450
|
+
const box = boxes.find((b) => b.id === id);
|
|
451
|
+
if (!box) return { ok: false, error: `box ${id} not found` };
|
|
452
|
+
const provider = await providerForBox(box);
|
|
453
|
+
await op(box, provider);
|
|
454
|
+
return { ok: true };
|
|
455
|
+
} catch (err) {
|
|
456
|
+
return { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
var errMsg = (err) => err instanceof Error ? err.message : String(err);
|
|
460
|
+
async function resolveBoxProvider(id) {
|
|
461
|
+
const { boxes } = await readState();
|
|
462
|
+
const box = boxes.find((b) => b.id === id);
|
|
463
|
+
if (!box) return null;
|
|
464
|
+
return { box, provider: await providerForBox(box) };
|
|
465
|
+
}
|
|
466
|
+
var GIT_TOKEN_TTL_MS = 12e4;
|
|
467
|
+
function hubGitDeps(boxId) {
|
|
468
|
+
return {
|
|
469
|
+
hostInitiatedArgs: async (method, params) => {
|
|
470
|
+
const token = await mintHostInitiatedToken(boxId, method, hashRpcParams(params), GIT_TOKEN_TTL_MS);
|
|
471
|
+
return token ? ["--host-initiated-token", token] : [];
|
|
472
|
+
}
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
async function gitOp(id, fn) {
|
|
476
|
+
try {
|
|
477
|
+
const rp = await resolveBoxProvider(id);
|
|
478
|
+
if (!rp) return { ok: false, error: `box ${id} not found` };
|
|
479
|
+
const r = await fn(rp.box, rp.provider);
|
|
480
|
+
if (r.exitCode !== 0) {
|
|
481
|
+
return { ok: false, error: (r.stderr || r.stdout || `command exited ${String(r.exitCode)}`).trim() };
|
|
482
|
+
}
|
|
483
|
+
return { ok: true, stdout: r.stdout, stderr: r.stderr };
|
|
484
|
+
} catch (err) {
|
|
485
|
+
return { ok: false, error: errMsg(err) };
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
async function liveServices(provider, box) {
|
|
489
|
+
const r = await boxServicesStatusRaw(provider, box).catch(() => null);
|
|
490
|
+
if (!r || r.exitCode !== 0) return null;
|
|
491
|
+
try {
|
|
492
|
+
return JSON.parse(r.stdout);
|
|
493
|
+
} catch {
|
|
494
|
+
return null;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
function mapLiveServices(live) {
|
|
498
|
+
return {
|
|
499
|
+
source: "live",
|
|
500
|
+
services: live.services.map((s) => ({
|
|
501
|
+
name: s.name,
|
|
502
|
+
state: s.state,
|
|
503
|
+
pid: s.pid,
|
|
504
|
+
restarts: s.restarts,
|
|
505
|
+
lastExitCode: s.lastExitCode,
|
|
506
|
+
blockedOn: s.blockedOn,
|
|
507
|
+
command: s.command
|
|
508
|
+
})),
|
|
509
|
+
tasks: live.tasks.map((t) => ({ name: t.name, state: t.state })),
|
|
510
|
+
ports: live.ports.map((p) => ({ port: p.port, service: p.service }))
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
function mapPersistedServices(s) {
|
|
514
|
+
return {
|
|
515
|
+
source: "persisted",
|
|
516
|
+
services: s.services.map((sv) => ({
|
|
517
|
+
name: sv.name,
|
|
518
|
+
state: sv.state,
|
|
519
|
+
pid: null,
|
|
520
|
+
restarts: 0,
|
|
521
|
+
lastExitCode: null,
|
|
522
|
+
blockedOn: [],
|
|
523
|
+
command: ""
|
|
524
|
+
})),
|
|
525
|
+
tasks: s.tasks.map((t) => ({ name: t.name, state: t.state })),
|
|
526
|
+
ports: s.ports.map((p) => ({ port: p.port, service: p.service }))
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
function parseGitStatus(out) {
|
|
530
|
+
let branch;
|
|
531
|
+
let ahead = 0;
|
|
532
|
+
let behind = 0;
|
|
533
|
+
let dirty = false;
|
|
534
|
+
for (const line of out.split("\n")) {
|
|
535
|
+
if (line.startsWith("# branch.head ")) {
|
|
536
|
+
branch = line.slice("# branch.head ".length).trim();
|
|
537
|
+
} else if (line.startsWith("# branch.ab ")) {
|
|
538
|
+
const m = line.match(/\+(\d+)\s+-(\d+)/);
|
|
539
|
+
if (m) {
|
|
540
|
+
ahead = Number(m[1]);
|
|
541
|
+
behind = Number(m[2]);
|
|
542
|
+
}
|
|
543
|
+
} else if (line.length > 0 && !line.startsWith("#")) {
|
|
544
|
+
dirty = true;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return { ok: true, branch: branch === "(detached)" ? void 0 : branch, dirty, ahead, behind };
|
|
548
|
+
}
|
|
549
|
+
function createHubBackend(handle) {
|
|
550
|
+
return {
|
|
551
|
+
// authMode is layered on by source.ts (an env-derived concern), so the host
|
|
552
|
+
// backend produces everything else.
|
|
553
|
+
async getData() {
|
|
554
|
+
const [listed, jobs] = await Promise.all([listBoxes(), loadQueue()]);
|
|
555
|
+
const liveIds = new Set(listed.map((b) => b.id));
|
|
556
|
+
const jobBoxes = [];
|
|
557
|
+
for (const j of jobs) {
|
|
558
|
+
if (j.kind === "prepare") continue;
|
|
559
|
+
if (j.boxId && liveIds.has(j.boxId)) continue;
|
|
560
|
+
if (j.status === "queued" || j.status === "running") jobBoxes.push(mapJobToBox(j, "creating"));
|
|
561
|
+
else if (j.status === "failed") jobBoxes.push(mapJobToBox(j, "error"));
|
|
562
|
+
}
|
|
563
|
+
return {
|
|
564
|
+
user: currentUser(),
|
|
565
|
+
github: LOCAL_GITHUB,
|
|
566
|
+
projects: await listProjects(listed),
|
|
567
|
+
boxes: [...jobBoxes, ...listed.map(mapBox)],
|
|
568
|
+
// Block-mode approvals live in-process on the relay handle, not the Store.
|
|
569
|
+
approvals: handle.prompts.all().map(mapApproval),
|
|
570
|
+
providers: listProviders(jobs)
|
|
571
|
+
};
|
|
572
|
+
},
|
|
573
|
+
async providersWithFreshness() {
|
|
574
|
+
return listProvidersWithFreshness(listProviders(await loadQueue()));
|
|
575
|
+
},
|
|
576
|
+
pause: (id) => runLifecycle(id, (box, provider) => provider.pause(box)),
|
|
577
|
+
resume: (id) => runLifecycle(id, (box, provider) => provider.resume(box)),
|
|
578
|
+
stop: (id) => runLifecycle(id, (box, provider) => provider.stop(box)),
|
|
579
|
+
destroy: (id) => runLifecycle(id, (box, provider) => provider.destroy(box)),
|
|
580
|
+
// Mirror POST /admin/prompts/answer's block branch, in-process: resolving
|
|
581
|
+
// the entry fulfills the Promise the /rpc handler is awaiting (box unblocks),
|
|
582
|
+
// and the broadcast clears any attached-terminal footer.
|
|
583
|
+
answerApproval(id, answer) {
|
|
584
|
+
const boxId = handle.prompts.boxFor(id);
|
|
585
|
+
if (!boxId) return Promise.resolve({ ok: false, error: "no pending approval" });
|
|
586
|
+
if (!handle.prompts.resolve(id, answer)) {
|
|
587
|
+
return Promise.resolve({ ok: false, error: "no pending approval" });
|
|
588
|
+
}
|
|
589
|
+
handle.subscribers.broadcast(boxId, "prompt-resolved", { id });
|
|
590
|
+
return Promise.resolve({ ok: true });
|
|
591
|
+
},
|
|
592
|
+
async create(input) {
|
|
593
|
+
try {
|
|
594
|
+
const workspace = await resolveProjectPath(input.projectId);
|
|
595
|
+
if (!workspace) return { ok: false, error: `unknown project ${input.projectId}` };
|
|
596
|
+
const provider = input.provider ?? "docker";
|
|
597
|
+
if (!isProviderKind(provider)) return { ok: false, error: `unknown provider ${provider}` };
|
|
598
|
+
if (!isProviderConfigured(provider)) {
|
|
599
|
+
return { ok: false, error: `provider ${provider} is not set up on this host` };
|
|
600
|
+
}
|
|
601
|
+
const noAgent = input.agent === "none";
|
|
602
|
+
const agent = input.agent === "claude" || input.agent === "none" ? "claude-code" : input.agent;
|
|
603
|
+
const name = input.name?.trim() || void 0;
|
|
604
|
+
const fromBranch = input.fromBranch?.trim() || void 0;
|
|
605
|
+
if (fromBranch) {
|
|
606
|
+
const v = await verifyFromBranch(workspace, fromBranch);
|
|
607
|
+
if (!v.ok) return { ok: false, error: v.error };
|
|
608
|
+
if (provider !== "docker" && SHA_RE.test(fromBranch)) {
|
|
609
|
+
return {
|
|
610
|
+
ok: false,
|
|
611
|
+
error: `base ref "${fromBranch}" is a commit SHA; ${provider} boxes can only branch from a branch or tag name`
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
const setupWizard = !noAgent && input.setupWizard === true;
|
|
616
|
+
const { job } = await enqueueQueueJob({
|
|
617
|
+
agent,
|
|
618
|
+
boxName: name ?? "",
|
|
619
|
+
providerName: provider,
|
|
620
|
+
prompt: noAgent ? "" : input.prompt ?? "",
|
|
621
|
+
agentArgs: [],
|
|
622
|
+
...noAgent ? { noAgent: true } : {},
|
|
623
|
+
...setupWizard ? { setupWizard: true } : {},
|
|
624
|
+
createOpts: { workspace, name, fromBranch }
|
|
625
|
+
});
|
|
626
|
+
handle.pokeQueue();
|
|
627
|
+
return { ok: true, jobId: job.id };
|
|
628
|
+
} catch (err) {
|
|
629
|
+
return { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
630
|
+
}
|
|
631
|
+
},
|
|
632
|
+
async setProviderCredentials(id, fields) {
|
|
633
|
+
try {
|
|
634
|
+
if (!isProviderKind(id)) return { ok: false, error: `unknown provider ${id}` };
|
|
635
|
+
if (id === "docker") return { ok: true };
|
|
636
|
+
const mod = (await IMPORTERS[id]()).providerModule;
|
|
637
|
+
if (!mod.setCredentials) {
|
|
638
|
+
return { ok: false, error: `provider ${id} does not support credential setup` };
|
|
639
|
+
}
|
|
640
|
+
const res = await mod.setCredentials(fields);
|
|
641
|
+
return res.ok ? { ok: true } : { ok: false, error: res.error ?? "invalid credentials" };
|
|
642
|
+
} catch (err) {
|
|
643
|
+
return { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
prepareProvider(id, opts) {
|
|
647
|
+
if (!isProviderKind(id)) return Promise.resolve({ ok: false, error: `unknown provider ${id}` });
|
|
648
|
+
const prev = prepareEnqueueChain.get(id) ?? Promise.resolve();
|
|
649
|
+
const run = prev.then(async () => {
|
|
650
|
+
try {
|
|
651
|
+
const existing = (await loadQueue()).find(
|
|
652
|
+
(j) => j.kind === "prepare" && j.providerName === id && (j.status === "queued" || j.status === "running")
|
|
653
|
+
);
|
|
654
|
+
if (existing) return { ok: true, jobId: existing.id };
|
|
655
|
+
const precheck = await preparePrecheck(id);
|
|
656
|
+
if (precheck) return { ok: false, error: precheck };
|
|
657
|
+
const { job } = await enqueuePrepareJob({
|
|
658
|
+
providerName: id,
|
|
659
|
+
force: opts?.force,
|
|
660
|
+
claudeInstall: opts?.claudeInstall
|
|
661
|
+
});
|
|
662
|
+
handle.pokeQueue();
|
|
663
|
+
return { ok: true, jobId: job.id };
|
|
664
|
+
} catch (err) {
|
|
665
|
+
return { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
666
|
+
}
|
|
667
|
+
});
|
|
668
|
+
prepareEnqueueChain.set(id, run.catch(() => {
|
|
669
|
+
}));
|
|
670
|
+
return run;
|
|
671
|
+
},
|
|
672
|
+
async listBranches(projectId) {
|
|
673
|
+
const repo = await resolveProjectPath(projectId);
|
|
674
|
+
if (!repo) return { ok: false, error: `unknown project ${projectId}` };
|
|
675
|
+
return branchListHost(repo);
|
|
676
|
+
},
|
|
677
|
+
async addProject(absPath) {
|
|
678
|
+
try {
|
|
679
|
+
if (!absPath || !path.isAbsolute(absPath)) {
|
|
680
|
+
return { ok: false, error: "an absolute path is required" };
|
|
681
|
+
}
|
|
682
|
+
const st = await stat(absPath).catch(() => null);
|
|
683
|
+
if (!st || !st.isDirectory()) return { ok: false, error: `not a directory: ${absPath}` };
|
|
684
|
+
const root = (await findProjectRoot(absPath)).root;
|
|
685
|
+
await registerProject(root);
|
|
686
|
+
return { ok: true };
|
|
687
|
+
} catch (err) {
|
|
688
|
+
return { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
async removeProject(projectId) {
|
|
692
|
+
try {
|
|
693
|
+
const [boxes, jobs] = await Promise.all([listBoxes(), loadQueue()]);
|
|
694
|
+
const hasBox = boxes.some((b) => hashProjectPath(projectRootOf(b)) === projectId);
|
|
695
|
+
const liveIds = new Set(boxes.map((b) => b.id));
|
|
696
|
+
const hasJob = jobs.some(
|
|
697
|
+
(j) => j.kind !== "prepare" && // a bake isn't a project box
|
|
698
|
+
!(j.boxId && liveIds.has(j.boxId)) && (j.status === "queued" || j.status === "running" || j.status === "failed") && hashProjectPath(j.createOpts.workspace) === projectId
|
|
699
|
+
);
|
|
700
|
+
if (hasBox || hasJob) return { ok: false, error: "project has boxes; delete them first" };
|
|
701
|
+
await unregisterProject(projectId);
|
|
702
|
+
return { ok: true };
|
|
703
|
+
} catch (err) {
|
|
704
|
+
return { ok: false, error: err instanceof Error ? err.message : String(err) };
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
browseDir: (dir) => browseDirHost(dir),
|
|
708
|
+
async getJob(id) {
|
|
709
|
+
const job = await readJob(id);
|
|
710
|
+
if (!job) return null;
|
|
711
|
+
const login = job.login ? {
|
|
712
|
+
required: job.login.required,
|
|
713
|
+
phase: job.login.phase,
|
|
714
|
+
url: job.login.url,
|
|
715
|
+
error: job.login.error,
|
|
716
|
+
lastError: job.login.lastError
|
|
717
|
+
} : void 0;
|
|
718
|
+
return { status: job.status, logPath: job.logPath, boxId: job.boxId, login };
|
|
719
|
+
},
|
|
720
|
+
async submitLoginCode(id, code) {
|
|
721
|
+
const job = await readJob(id);
|
|
722
|
+
if (!job) return { ok: false, error: `job not found: ${id}` };
|
|
723
|
+
await writeQueueLoginCode(id, code);
|
|
724
|
+
return { ok: true };
|
|
725
|
+
},
|
|
726
|
+
// ── box git operations (delegate to the shared, provider-agnostic helpers) ──
|
|
727
|
+
gitCheckout: (id, branch) => gitOp(id, (box, provider) => boxGitCheckout(provider, box, branch)),
|
|
728
|
+
gitNewBranch: (id, input) => gitOp(id, (box, provider) => boxGitNewBranch(provider, box, input.name, input.from)),
|
|
729
|
+
gitPush: (id, input = {}) => gitOp(id, (box, provider) => boxGitPush(provider, box, input, hubGitDeps(id))),
|
|
730
|
+
gitPull: (id, input = {}) => gitOp(id, (box, provider) => boxGitPull(provider, box, input, hubGitDeps(id))),
|
|
731
|
+
gitPushHost: (id, input = {}) => gitOp(id, (box, provider) => boxGitPushHost(provider, box, input)),
|
|
732
|
+
async getGit(id) {
|
|
733
|
+
try {
|
|
734
|
+
const rp = await resolveBoxProvider(id);
|
|
735
|
+
if (!rp) return { ok: false, error: `box ${id} not found` };
|
|
736
|
+
const r = await rp.provider.exec(rp.box, ["git", "status", "--porcelain=v2", "--branch"], {
|
|
737
|
+
cwd: BOX_WORKSPACE
|
|
738
|
+
});
|
|
739
|
+
if (r.exitCode !== 0) return { ok: false, error: (r.stderr || `git status exited ${String(r.exitCode)}`).trim() };
|
|
740
|
+
return parseGitStatus(r.stdout);
|
|
741
|
+
} catch (err) {
|
|
742
|
+
return { ok: false, error: errMsg(err) };
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
// ── box service control ──
|
|
746
|
+
async getServices(id) {
|
|
747
|
+
const rp = await resolveBoxProvider(id).catch(() => null);
|
|
748
|
+
if (!rp) return { source: "unavailable", services: [], tasks: [], ports: [], error: `box ${id} not found` };
|
|
749
|
+
const live = await liveServices(rp.provider, rp.box);
|
|
750
|
+
if (live) return mapLiveServices(live);
|
|
751
|
+
const snap = handle.statusStore.get(id);
|
|
752
|
+
if (snap && isValidBoxStatus(snap)) return mapPersistedServices(snap);
|
|
753
|
+
return { source: "unavailable", services: [], tasks: [], ports: [] };
|
|
754
|
+
},
|
|
755
|
+
async restartService(id, name) {
|
|
756
|
+
try {
|
|
757
|
+
const rp = await resolveBoxProvider(id);
|
|
758
|
+
if (!rp) return { ok: false, error: `box ${id} not found` };
|
|
759
|
+
if (name) {
|
|
760
|
+
const r = await boxRestartService(rp.provider, rp.box, name);
|
|
761
|
+
return r.exitCode === 0 ? { ok: true, stdout: r.stdout, stderr: r.stderr } : { ok: false, error: (r.stderr || `restart ${name} exited ${String(r.exitCode)}`).trim() };
|
|
762
|
+
}
|
|
763
|
+
const live = await liveServices(rp.provider, rp.box);
|
|
764
|
+
if (!live) return { ok: false, error: "could not reach the box supervisor (is the box running?)" };
|
|
765
|
+
const names = live.services.map((s) => s.name);
|
|
766
|
+
if (names.length === 0) return { ok: true };
|
|
767
|
+
const results = await boxRestartServices(rp.provider, rp.box, names);
|
|
768
|
+
const failed = results.filter((r) => r.result.exitCode !== 0).map((r) => r.name);
|
|
769
|
+
return failed.length > 0 ? { ok: false, error: `failed to restart: ${failed.join(", ")}` } : { ok: true };
|
|
770
|
+
} catch (err) {
|
|
771
|
+
return { ok: false, error: errMsg(err) };
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// server.ts
|
|
778
|
+
var dev = process.env.NODE_ENV !== "production";
|
|
779
|
+
var port = Number.parseInt(process.env.AGENTBOX_HUB_PORT ?? "8787", 10);
|
|
780
|
+
var host = process.env.AGENTBOX_HUB_HOST ?? "127.0.0.1";
|
|
781
|
+
process.env.AGENTBOX_HUB_PROFILE ??= host === "127.0.0.1" ? "localhost" : "hetzner";
|
|
782
|
+
if (host !== "127.0.0.1") process.env.AGENTBOX_HUB_AUTH ??= "on";
|
|
783
|
+
async function main() {
|
|
784
|
+
const { authMode } = await import("./auth-config-LJGI76HI.js");
|
|
785
|
+
if (process.env.AGENTBOX_HUB_PROFILE === "localhost" && process.env.AGENTBOX_HUB_AUTH !== "off") {
|
|
786
|
+
const { ensureHubToken } = await import("./hub-token-EW32VDIU.js");
|
|
787
|
+
process.env.AGENTBOX_HUB_TOKEN = await ensureHubToken();
|
|
788
|
+
}
|
|
789
|
+
const dir = import.meta.dirname;
|
|
790
|
+
if (!dev) {
|
|
791
|
+
const rsfPath = path2.join(dir, ".next", "required-server-files.json");
|
|
792
|
+
if (existsSync(rsfPath)) {
|
|
793
|
+
const rsf = JSON.parse(readFileSync2(rsfPath, "utf8"));
|
|
794
|
+
process.env.__NEXT_PRIVATE_STANDALONE_CONFIG ??= JSON.stringify(rsf.config);
|
|
795
|
+
process.chdir(dir);
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
const app = next({ dev, dir, hostname: host, port });
|
|
799
|
+
await app.prepare();
|
|
800
|
+
const handle = app.getRequestHandler();
|
|
801
|
+
const daemon = await startRelayDaemon({
|
|
802
|
+
port,
|
|
803
|
+
host,
|
|
804
|
+
logger: (line) => process.stdout.write(`agentbox-hub: ${line}
|
|
805
|
+
`),
|
|
806
|
+
// Next parses req.url itself when parsedUrl is omitted.
|
|
807
|
+
uiHandler: (req, res) => {
|
|
808
|
+
void handle(req, res);
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
globalThis.__AGENTBOX_BOX_SOURCE = daemon.handle.store;
|
|
812
|
+
globalThis.__AGENTBOX_HUB_BACKEND = createHubBackend(daemon.handle);
|
|
813
|
+
globalThis.__AGENTBOX_HUB_NOTIFIER = daemon.handle.hubNotifier;
|
|
814
|
+
const mode = authMode();
|
|
815
|
+
if (mode === "password") {
|
|
816
|
+
const { ensureAuthReady } = await import("./auth-YBXDRLHG.js");
|
|
817
|
+
await ensureAuthReady();
|
|
818
|
+
process.stdout.write("agentbox-hub: auth ready\n");
|
|
819
|
+
}
|
|
820
|
+
process.stdout.write(`agentbox-hub: listening on ${host}:${String(port)} (dev=${String(dev)})
|
|
821
|
+
`);
|
|
822
|
+
if (mode === "token") {
|
|
823
|
+
process.stdout.write(`agentbox-hub: open http://${host}:${String(port)}/?token=${process.env.AGENTBOX_HUB_TOKEN ?? ""}
|
|
824
|
+
`);
|
|
825
|
+
}
|
|
826
|
+
const shutdown = (signal) => {
|
|
827
|
+
process.stdout.write(`agentbox-hub: ${signal} \u2014 shutting down
|
|
828
|
+
`);
|
|
829
|
+
daemon.stop().finally(() => process.exit(0));
|
|
830
|
+
};
|
|
831
|
+
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
|
832
|
+
process.on("SIGINT", () => shutdown("SIGINT"));
|
|
833
|
+
}
|
|
834
|
+
main().catch((err) => {
|
|
835
|
+
process.stderr.write(`agentbox-hub: fatal ${err instanceof Error ? err.stack ?? err.message : String(err)}
|
|
836
|
+
`);
|
|
837
|
+
process.exit(1);
|
|
838
|
+
});
|