@madarco/agentbox 0.31.3 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/README.md +2 -0
- package/dist/_cloud-attach-6RKS3MAP.js +31 -0
- package/dist/{chunk-E2RPG54S.js → chunk-27S7QLDF.js} +3 -3
- package/dist/{chunk-EZPCCJPE.js → chunk-2APGFWEU.js} +24 -24
- package/dist/{chunk-7PDYVJ2Q.js → chunk-3AYSA62C.js} +3 -3
- package/dist/{chunk-SHFU2KSY.js → chunk-3ISG5THX.js} +3 -3
- package/dist/{chunk-D67Q5MNA.js → chunk-3L2DIPRM.js} +2 -2
- package/dist/{chunk-GYUOXSUX.js → chunk-4FOXMGJ7.js} +4 -4
- package/dist/{chunk-VIB2FMJJ.js → chunk-5OKDSI6M.js} +44 -44
- package/dist/{chunk-QWUZJCF5.js → chunk-66GAYIJZ.js} +3253 -937
- package/dist/chunk-66GAYIJZ.js.map +1 -0
- package/dist/{chunk-Q3BHXL47.js → chunk-6XMOBI5V.js} +4 -4
- package/dist/{chunk-VNXWOWQ7.js → chunk-7QTBRHB7.js} +4 -4
- package/dist/{chunk-UWKJ3HIA.js → chunk-ANSPBIYG.js} +4 -4
- package/dist/{chunk-7N3CJNR5.js → chunk-AWFTAHGF.js} +20 -7
- package/dist/chunk-AWFTAHGF.js.map +1 -0
- package/dist/{chunk-EHLPIWRR.js → chunk-AWI2TSWS.js} +2 -2
- package/dist/{chunk-GZHJVCBG.js → chunk-CDRKQ5BH.js} +9 -9
- package/dist/{chunk-W7P2HHFI.js → chunk-CXAWPWGZ.js} +6 -6
- package/dist/{chunk-V5IMDVV5.js → chunk-EDJ6O6CI.js} +6 -6
- package/dist/{chunk-PYPIECDD.js → chunk-GSMQL4IJ.js} +17 -17
- package/dist/chunk-GVNKIACA.js +223 -0
- package/dist/chunk-GVNKIACA.js.map +1 -0
- package/dist/{chunk-DKUSSE5G.js → chunk-JWQYZ6V4.js} +2 -2
- package/dist/{chunk-WMILLMJZ.js → chunk-KOTW7QQW.js} +5 -5
- package/dist/{chunk-XHCGVCSA.js → chunk-L4KBYI3I.js} +5 -5
- package/dist/{chunk-BMZOMC6X.js → chunk-M2DWTQRF.js} +3 -3
- package/dist/{chunk-XLFQXROC.js → chunk-MB2K74BI.js} +165 -3
- package/dist/chunk-MB2K74BI.js.map +1 -0
- package/dist/{chunk-MKZHCLFJ.js → chunk-MI3V2MAE.js} +4 -4
- package/dist/{chunk-ZMNLEZJB.js → chunk-MO3QJTVS.js} +7 -7
- package/dist/{chunk-MBFN2XNU.js → chunk-MPTE57BZ.js} +6 -6
- package/dist/{chunk-ZK6KD7ME.js → chunk-PE5LPD23.js} +68 -25
- package/dist/chunk-PE5LPD23.js.map +1 -0
- package/dist/{chunk-RNYH5465.js → chunk-QBVRWGXD.js} +3 -3
- package/dist/{chunk-VEO6ZYQY.js → chunk-RIXW4HSE.js} +6 -6
- package/dist/{chunk-QER5WHBC.js → chunk-S7LPQXR5.js} +6 -6
- package/dist/{chunk-JS5DLUUX.js → chunk-TAZYSVLT.js} +26 -22
- package/dist/{chunk-JS5DLUUX.js.map → chunk-TAZYSVLT.js.map} +1 -1
- package/dist/{chunk-QTMUJETE.js → chunk-TDPHZWJI.js} +4 -4
- package/dist/{chunk-M42UQWVO.js → chunk-WLEGSKKE.js} +4 -4
- package/dist/{chunk-UENVVGWE.js → chunk-WTOG3CC6.js} +4 -4
- package/dist/{chunk-QB7XVOYW.js → chunk-X6CO4WIX.js} +4 -4
- package/dist/{chunk-744IB5WM.js → chunk-XLJ4D4FI.js} +4 -4
- package/dist/{chunk-FVBEUPVM.js → chunk-XNZ6UHTM.js} +27 -5
- package/dist/chunk-XNZ6UHTM.js.map +1 -0
- package/dist/{chunk-SZTHLJ5J.js → chunk-XTNAIM7X.js} +6 -6
- package/dist/{chunk-S3SJIWSU.js → chunk-YNAJUTYC.js} +7 -7
- package/dist/{chunk-6GJDU3FN.js → chunk-YSACCMUB.js} +13 -13
- package/dist/{chunk-6RREIUAE.js → chunk-ZKOLV4ZN.js} +39 -4
- package/dist/chunk-ZKOLV4ZN.js.map +1 -0
- package/dist/{cli-JNOPYAUM.js → cli-IFXU5XNZ.js} +9 -9
- package/dist/{cli-I6TXLNRQ.js → cli-MZSWFSTW.js} +9 -9
- package/dist/{cli-VU2ALT6L.js → cli-O3WXOFNS.js} +8 -8
- package/dist/{cli-YYXO4WX5.js → cli-RQJUQJEP.js} +8 -8
- package/dist/{cli-W2WNV64V.js → cli-ZGYSHJP7.js} +9 -9
- package/dist/cloud-backends.js +5 -5
- package/dist/{control-plane-JUAINN2X.js → control-plane-3TII2JGM.js} +20 -20
- package/dist/{cp-hub-upload-VHU5TBHQ.js → cp-hub-upload-3W7Z4BMT.js} +7 -7
- package/dist/{custody-client-5OHF3SEX.js → custody-client-KYEZET6C.js} +5 -5
- package/dist/{deploy-hetzner-RTQW3B7P.js → deploy-hetzner-EO5PFKBG.js} +9 -9
- package/dist/{dist-H4FFY5TX.js → dist-3AR6L5MF.js} +8 -8
- package/dist/{dist-5HJBDLJP.js → dist-4GHNQ2AK.js} +8 -8
- package/dist/{dist-H72NQCKO.js → dist-BFH537FO.js} +9 -9
- package/dist/{dist-MBPDLQUR.js → dist-BUCKUE4V.js} +2 -2
- package/dist/{dist-64YIP2AZ.js → dist-ETGTZQUT.js} +256 -6
- package/dist/{dist-UGI5L7BN.js → dist-H2CSUDEI.js} +8 -8
- package/dist/{dist-7IANPBF4.js → dist-IABCQB5D.js} +8 -8
- package/dist/{dist-EDCGUXVI.js → dist-JJZ3NZRO.js} +10 -6
- package/dist/{dist-7RMVQOWJ.js → dist-RPBA2EL5.js} +8 -8
- package/dist/{dist-NJOKYHDI.js → dist-URWWHI3X.js} +9 -3
- package/dist/{dist-XWDFVTFR.js → dist-V224SH3Z.js} +7 -7
- package/dist/{host-reach-drainer-GTNLQWWM.js → host-reach-drainer-NYN3YXHG.js} +2 -2
- package/dist/host-session-YP5RKV6T.js +29 -0
- package/dist/hub-OWUC4IGW.js +39 -0
- package/dist/{hub-adopt-TVDMOZSP.js → hub-adopt-HYXFUPPO.js} +7 -7
- package/dist/{hub-api-client-RISAC6GB.js → hub-api-client-BI3E37CF.js} +4 -4
- package/dist/{hub-docker-target-QEALUMIZ.js → hub-docker-target-6ODSK7ZE.js} +14 -14
- package/dist/index.js +1224 -230
- package/dist/index.js.map +1 -1
- package/dist/{plugin-update-LG45ZFCU.js → plugin-update-LI3QDA4K.js} +5 -5
- package/dist/prepare-MYFNDJPP.js +45 -0
- package/dist/prepared-custody-WSHX6XTQ.js +39 -0
- package/dist/{prepared-state-FO74QUCP-SW3QMBW5.js → prepared-state-FO74QUCP-M4Q2X3KN.js} +4 -4
- package/dist/{publish-credentials-T7DDJVC4.js → publish-credentials-FCEQSIPE.js} +9 -9
- package/dist/{registry-UCFNYOAU.js → registry-GG23NEBF.js} +5 -5
- package/dist/relay-YUOIK3HN.js +22 -0
- package/dist/{remote-docker-share-SY7CWW5R.js → remote-docker-share-4Z4VVUPG.js} +11 -11
- package/dist/remote-docker-share-4Z4VVUPG.js.map +1 -0
- package/dist/{tool-grant-push-OJHLVAPZ.js → tool-grant-push-A2JYLJVF.js} +3 -3
- package/package.json +1 -1
- package/runtime/_shared/ctl.cjs +1046 -316
- package/runtime/digitalocean/ctl.cjs +1046 -316
- package/runtime/docker/packages/ctl/dist/bin.cjs +1046 -316
- package/runtime/e2b/ctl.cjs +1046 -316
- package/runtime/hetzner/ctl.cjs +1046 -316
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
- package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +24 -0
- package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/routes-manifest.json +188 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +4 -4
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +4 -4
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +4 -4
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js +3 -3
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js +2 -2
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js +10 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +24 -0
- package/runtime/hub/apps/hub/.next/server/chunks/00je_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_assign_route_actions_1sufsej.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/00je_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_done_route_actions_216dixx.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_managers_route_actions_1_vtgih.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_tasks_route_actions_1h8tg_m.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_managers_sessions_route_actions_16dksub.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_managers_start_route_actions_1g-vmis.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_route_actions_03oih6y.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_assign_route_actions_196zwo9.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_reorder_route_actions_1zkcfk-.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_workspaces_route_actions_12a7_y8.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_managers_[id]_route_actions_07cpyb_.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_attach_route_actions_0o-khw8.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_message_route_actions_0rjcqe5.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_notes_route_actions_1-mf4r_.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_resume_route_actions_0-cm1mu.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_stop_route_actions_16nrl1r.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_detect_route_actions_1sdbs-_.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_managers_route_actions_1sxymv0.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_rename_route_actions_0df5zi2.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_rescan_route_actions_1yra_w8.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_route_actions_1f56n_0.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_tasks_route_actions_1t-6quw.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_timeline_route_actions_0pbxblt.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1viy_api_v1_workspaces_[id]_tasks_[taskId]_unassign_route_actions_18a1p_r.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-c97gb._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0spnud2._.js → [root-of-the-server]__0-kl55b._.js} +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__074mxl5._.js → [root-of-the-server]__0-xlf9z._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__028ifqb._.js → [root-of-the-server]__0004tsz._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00bupbc._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1cpr4qy._.js → [root-of-the-server]__0126167._.js} +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01fy5q0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02c077x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1ta1gr1._.js → [root-of-the-server]__02sueng._.js} +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0nndlre._.js → [root-of-the-server]__04-gm8c._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05uinnp._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06wy8zz._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__071c-t4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08jg8w8._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09059m-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__092y7_z._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09ti2-t._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09y4pdw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_mog_h._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a689u5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a8ere2._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bzqrje._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c_r3oe._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cdoz9i._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cmu4sk._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cxjxz0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d27tlu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d3fx1z._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dm5oqm._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dy5g2k._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e1uaxg._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e6_t-d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ets4cd._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f2u0ul._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f9p_4f._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_jmq2._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fksz_r._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fpygqn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gym-rp._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hhlb2_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i9phow._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ikyoac._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j72bti._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jb371p._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jq6cdw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jt1d2s._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kcw8t0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kdt9-i._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l27vs0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lc-j_n._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lna-vq._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0m5woxc._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mi9xib._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0muy7eg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nn0_b5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0no30or._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o3sjtx._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0onk5r0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pik2ie._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qde3vr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qt_r6a._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ry8baf._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sg4y_2._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sgjn2j._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0st6oln._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t0p64l._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tbl11-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ve_tqz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w4smfx._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wo4sqj._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wujjkl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xbu3yj._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xl1-w6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yct1tu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yg67t0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ykw5oe._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1c1rcl-._.js → [root-of-the-server]__0zznyx2._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1--u2xl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-8sj4i._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10kmcrt._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10l_-cd._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10yfcvu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__112hqrh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11c-21i._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11qbpq8._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11s1mrd._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__128w1nz._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12b2kuv._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12gbq5m._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13nfpq5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13vl4-h._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__153b7kv._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__157kmse._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16695dw._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__166_uek._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16o0ij7._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__175lucf._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17p53e3._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17y9pmx._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18ec5_t._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18xpvkc._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1925hyw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19ew1r2._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19grunx._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_4v0mh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_cbcl1._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_wb2uh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_xgm2e._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1an6-yb._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c0ex8m._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c1e08-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c9f4uu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ci8hc2._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cs6d52._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d60scp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dicjoc._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1diipl4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dp2exz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1epnstn._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fjnz2l._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g5wnt2._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g9v7bq._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1gon0_4._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h_59cs._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h_q3sn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hlugb4._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hux-70._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i-7bnu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i_el2y._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1j6clag._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1k6q17t._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1khvg39._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lx9lyn._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m36v6k._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mgu19x._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mhyrr5._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mk_lpu._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mt32fu._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n1_2tw._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1na4sdw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ntihlm._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1odu62n._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q6xrlt._.js +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r4x1-y._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rjs_x0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rxud0j._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1s5app0._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sjz59l._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1slo4q_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1thrazp._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1twtnwr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1txvsbk._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1uch-60._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1um2jum._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vnnuo1._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wegvep._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wi5roz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xa9oiv._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ypmy86._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zml9me._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zrf_a6._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__2019yzl._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20jyxyo._.js +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ybhif._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20zl5fr._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__212dyoi._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__218oup-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__21abvx9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +2 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0mcxq5g._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +41 -41
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_openapi_ts_1yokmzt._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_validate_ts_16dhbzz._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +28 -19
- package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +6 -6
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__03-x9xy._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1jqga8h._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +2 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +26 -26
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +26 -17
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +1 -1
- package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +24 -0
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/{31e1wjin30i__.css → 03_fxfc3849ms.css} +1 -1
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/[id]/[action]/route.ts +4 -2
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.ts +6 -4
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/route.ts +2 -1
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/actor.ts +48 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/envelope.ts +5 -2
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/openapi.ts +1687 -52
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/validate.ts +527 -1
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/attach/route.ts +26 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/message/route.ts +34 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/notes/route.ts +26 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/resume/route.ts +26 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/route.ts +34 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/stop/route.ts +23 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/detect/route.ts +33 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/route.ts +27 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/tasks/route.ts +30 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/route.ts +19 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.ts +22 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.ts +61 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/rename/route.ts +25 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.ts +20 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/route.ts +34 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.ts +33 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.ts +23 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.ts +54 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.ts +25 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.ts +34 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.ts +33 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.ts +59 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.ts +25 -0
- package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/route.ts +31 -0
- package/runtime/hub/apps/hub/{chunk-FQY5OEWX.js → chunk-2LE76CT3.js} +19 -6
- package/runtime/hub/apps/hub/{chunk-MIETKCV4.js → chunk-BR4WVGWJ.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-KTWFE5BB.js → chunk-EVB2OTLU.js} +3312 -1032
- package/runtime/hub/apps/hub/{chunk-IDL7RJBP.js → chunk-FBNAIUXZ.js} +38 -3
- package/runtime/hub/apps/hub/{chunk-ORTYCJ2U.js → chunk-G2AEPH7C.js} +4 -4
- package/runtime/hub/apps/hub/{chunk-VNLPJ45F.js → chunk-JX5JUFSR.js} +9 -9
- package/runtime/hub/apps/hub/{chunk-PM2365RW.js → chunk-MD2UNTZR.js} +6 -6
- package/runtime/hub/apps/hub/{dist-4DVVLHK2.js → dist-3LDUYWPK.js} +8 -2
- package/runtime/hub/apps/hub/{dist-RWN4Z57N.js → dist-CJ6QFUFV.js} +5 -5
- package/runtime/hub/apps/hub/{dist-FM26NQ4V.js → dist-D36FTGG6.js} +1 -1
- package/runtime/hub/apps/hub/{dist-VF56FSKH.js → dist-GGLWLMY6.js} +6 -6
- package/runtime/hub/apps/hub/{dist-WA2LO2DU.js → dist-HLLYJGIT.js} +6 -6
- package/runtime/hub/apps/hub/{dist-OAS6A7E4.js → dist-IIQU4I42.js} +5 -5
- package/runtime/hub/apps/hub/{dist-3IYYT3II.js → dist-UFMCOK3W.js} +5 -5
- package/runtime/hub/apps/hub/{dist-LMXU56B2.js → dist-XUNBQ4WM.js} +5 -5
- package/runtime/hub/apps/hub/{dist-LOZYEDXA.js → dist-Y2263LMY.js} +8 -4
- package/runtime/hub/apps/hub/{dist-UPKSCLZ2.js → dist-YV4M6NJO.js} +5 -5
- package/runtime/hub/apps/hub/{hub-worker-6JAWRLP2.js → hub-worker-LJYEEAJL.js} +7 -7
- package/runtime/hub/apps/hub/lib/backend/background.ts +19 -0
- package/runtime/hub/apps/hub/lib/backend/box-facts.ts +97 -0
- package/runtime/hub/apps/hub/lib/backend/box-prs.ts +213 -0
- package/runtime/hub/apps/hub/lib/backend/deps.ts +99 -0
- package/runtime/hub/apps/hub/lib/backend/errors.ts +7 -0
- package/runtime/hub/apps/hub/lib/backend/github-prs.ts +302 -0
- package/runtime/hub/apps/hub/lib/backend/managers.ts +748 -0
- package/runtime/hub/apps/hub/lib/backend/timeline-lanes.ts +150 -0
- package/runtime/hub/apps/hub/lib/backend/timeline.ts +611 -0
- package/runtime/hub/apps/hub/lib/backend/workspaces.ts +439 -0
- package/runtime/hub/apps/hub/lib/boxes/backend-types.ts +355 -10
- package/runtime/hub/apps/hub/lib/boxes/postgres-source.ts +3 -0
- package/runtime/hub/apps/hub/lib/boxes/source.ts +18 -1
- package/runtime/hub/apps/hub/lib/boxes/types.ts +66 -0
- package/runtime/hub/apps/hub/lib/hub-backend.ts +114 -7
- package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-QR6ZNI3Q.js → prepared-state-FO74QUCP-75UBPW5I.js} +3 -3
- package/runtime/hub/apps/hub/server.js +2033 -164
- package/runtime/hub/apps/hub/test/backend-managers-background.test.ts +336 -0
- package/runtime/hub/apps/hub/test/backend-managers.test.ts +493 -0
- package/runtime/hub/apps/hub/test/backend-workspaces.test.ts +208 -0
- package/runtime/hub/apps/hub/test/box-prs.test.ts +198 -0
- package/runtime/hub/apps/hub/test/timeline-lanes.test.ts +261 -0
- package/runtime/hub/apps/hub/test/timeline.test.ts +1185 -0
- package/runtime/hub/apps/hub/test/validate.test.ts +252 -0
- package/runtime/hub/apps/hub/tsconfig.tsbuildinfo +1 -1
- package/runtime/relay/bin.cjs +1419 -623
- package/runtime/vercel/ctl.cjs +1046 -316
- package/share/host-skills/agentbox-info/SKILL.md +25 -4
- package/dist/_cloud-attach-QB72ZV7T.js +0 -31
- package/dist/chunk-6RREIUAE.js.map +0 -1
- package/dist/chunk-7N3CJNR5.js.map +0 -1
- package/dist/chunk-FVBEUPVM.js.map +0 -1
- package/dist/chunk-QWUZJCF5.js.map +0 -1
- package/dist/chunk-XLFQXROC.js.map +0 -1
- package/dist/chunk-ZK6KD7ME.js.map +0 -1
- package/dist/hub-C5B3CRP6.js +0 -39
- package/dist/prepare-6JLTXX65.js +0 -45
- package/dist/prepared-custody-YVVTL2ZM.js +0 -39
- package/dist/relay-W73AIA35.js +0 -22
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00o_3sf._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08xwxyo._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-mtsr6._.js +0 -3
- /package/dist/{_cloud-attach-QB72ZV7T.js.map → _cloud-attach-6RKS3MAP.js.map} +0 -0
- /package/dist/{chunk-E2RPG54S.js.map → chunk-27S7QLDF.js.map} +0 -0
- /package/dist/{chunk-EZPCCJPE.js.map → chunk-2APGFWEU.js.map} +0 -0
- /package/dist/{chunk-7PDYVJ2Q.js.map → chunk-3AYSA62C.js.map} +0 -0
- /package/dist/{chunk-SHFU2KSY.js.map → chunk-3ISG5THX.js.map} +0 -0
- /package/dist/{chunk-D67Q5MNA.js.map → chunk-3L2DIPRM.js.map} +0 -0
- /package/dist/{chunk-GYUOXSUX.js.map → chunk-4FOXMGJ7.js.map} +0 -0
- /package/dist/{chunk-VIB2FMJJ.js.map → chunk-5OKDSI6M.js.map} +0 -0
- /package/dist/{chunk-Q3BHXL47.js.map → chunk-6XMOBI5V.js.map} +0 -0
- /package/dist/{chunk-VNXWOWQ7.js.map → chunk-7QTBRHB7.js.map} +0 -0
- /package/dist/{chunk-UWKJ3HIA.js.map → chunk-ANSPBIYG.js.map} +0 -0
- /package/dist/{chunk-EHLPIWRR.js.map → chunk-AWI2TSWS.js.map} +0 -0
- /package/dist/{chunk-GZHJVCBG.js.map → chunk-CDRKQ5BH.js.map} +0 -0
- /package/dist/{chunk-W7P2HHFI.js.map → chunk-CXAWPWGZ.js.map} +0 -0
- /package/dist/{chunk-V5IMDVV5.js.map → chunk-EDJ6O6CI.js.map} +0 -0
- /package/dist/{chunk-PYPIECDD.js.map → chunk-GSMQL4IJ.js.map} +0 -0
- /package/dist/{chunk-DKUSSE5G.js.map → chunk-JWQYZ6V4.js.map} +0 -0
- /package/dist/{chunk-WMILLMJZ.js.map → chunk-KOTW7QQW.js.map} +0 -0
- /package/dist/{chunk-XHCGVCSA.js.map → chunk-L4KBYI3I.js.map} +0 -0
- /package/dist/{chunk-BMZOMC6X.js.map → chunk-M2DWTQRF.js.map} +0 -0
- /package/dist/{chunk-MKZHCLFJ.js.map → chunk-MI3V2MAE.js.map} +0 -0
- /package/dist/{chunk-ZMNLEZJB.js.map → chunk-MO3QJTVS.js.map} +0 -0
- /package/dist/{chunk-MBFN2XNU.js.map → chunk-MPTE57BZ.js.map} +0 -0
- /package/dist/{chunk-RNYH5465.js.map → chunk-QBVRWGXD.js.map} +0 -0
- /package/dist/{chunk-VEO6ZYQY.js.map → chunk-RIXW4HSE.js.map} +0 -0
- /package/dist/{chunk-QER5WHBC.js.map → chunk-S7LPQXR5.js.map} +0 -0
- /package/dist/{chunk-QTMUJETE.js.map → chunk-TDPHZWJI.js.map} +0 -0
- /package/dist/{chunk-M42UQWVO.js.map → chunk-WLEGSKKE.js.map} +0 -0
- /package/dist/{chunk-UENVVGWE.js.map → chunk-WTOG3CC6.js.map} +0 -0
- /package/dist/{chunk-QB7XVOYW.js.map → chunk-X6CO4WIX.js.map} +0 -0
- /package/dist/{chunk-744IB5WM.js.map → chunk-XLJ4D4FI.js.map} +0 -0
- /package/dist/{chunk-SZTHLJ5J.js.map → chunk-XTNAIM7X.js.map} +0 -0
- /package/dist/{chunk-S3SJIWSU.js.map → chunk-YNAJUTYC.js.map} +0 -0
- /package/dist/{chunk-6GJDU3FN.js.map → chunk-YSACCMUB.js.map} +0 -0
- /package/dist/{cli-I6TXLNRQ.js.map → cli-IFXU5XNZ.js.map} +0 -0
- /package/dist/{cli-JNOPYAUM.js.map → cli-MZSWFSTW.js.map} +0 -0
- /package/dist/{cli-VU2ALT6L.js.map → cli-O3WXOFNS.js.map} +0 -0
- /package/dist/{cli-W2WNV64V.js.map → cli-RQJUQJEP.js.map} +0 -0
- /package/dist/{cli-YYXO4WX5.js.map → cli-ZGYSHJP7.js.map} +0 -0
- /package/dist/{control-plane-JUAINN2X.js.map → control-plane-3TII2JGM.js.map} +0 -0
- /package/dist/{cp-hub-upload-VHU5TBHQ.js.map → cp-hub-upload-3W7Z4BMT.js.map} +0 -0
- /package/dist/{custody-client-5OHF3SEX.js.map → custody-client-KYEZET6C.js.map} +0 -0
- /package/dist/{deploy-hetzner-RTQW3B7P.js.map → deploy-hetzner-EO5PFKBG.js.map} +0 -0
- /package/dist/{dist-64YIP2AZ.js.map → dist-3AR6L5MF.js.map} +0 -0
- /package/dist/{dist-5HJBDLJP.js.map → dist-4GHNQ2AK.js.map} +0 -0
- /package/dist/{dist-7IANPBF4.js.map → dist-BFH537FO.js.map} +0 -0
- /package/dist/{dist-EDCGUXVI.js.map → dist-BUCKUE4V.js.map} +0 -0
- /package/dist/{dist-H4FFY5TX.js.map → dist-ETGTZQUT.js.map} +0 -0
- /package/dist/{dist-H72NQCKO.js.map → dist-H2CSUDEI.js.map} +0 -0
- /package/dist/{dist-MBPDLQUR.js.map → dist-IABCQB5D.js.map} +0 -0
- /package/dist/{dist-NJOKYHDI.js.map → dist-JJZ3NZRO.js.map} +0 -0
- /package/dist/{dist-7RMVQOWJ.js.map → dist-RPBA2EL5.js.map} +0 -0
- /package/dist/{dist-UGI5L7BN.js.map → dist-URWWHI3X.js.map} +0 -0
- /package/dist/{dist-XWDFVTFR.js.map → dist-V224SH3Z.js.map} +0 -0
- /package/dist/{host-reach-drainer-GTNLQWWM.js.map → host-reach-drainer-NYN3YXHG.js.map} +0 -0
- /package/dist/{hub-C5B3CRP6.js.map → host-session-YP5RKV6T.js.map} +0 -0
- /package/dist/{hub-adopt-TVDMOZSP.js.map → hub-OWUC4IGW.js.map} +0 -0
- /package/dist/{hub-api-client-RISAC6GB.js.map → hub-adopt-HYXFUPPO.js.map} +0 -0
- /package/dist/{prepare-6JLTXX65.js.map → hub-api-client-BI3E37CF.js.map} +0 -0
- /package/dist/{hub-docker-target-QEALUMIZ.js.map → hub-docker-target-6ODSK7ZE.js.map} +0 -0
- /package/dist/{plugin-update-LG45ZFCU.js.map → plugin-update-LI3QDA4K.js.map} +0 -0
- /package/dist/{prepared-custody-YVVTL2ZM.js.map → prepare-MYFNDJPP.js.map} +0 -0
- /package/dist/{prepared-state-FO74QUCP-SW3QMBW5.js.map → prepared-custody-WSHX6XTQ.js.map} +0 -0
- /package/dist/{registry-UCFNYOAU.js.map → prepared-state-FO74QUCP-M4Q2X3KN.js.map} +0 -0
- /package/dist/{publish-credentials-T7DDJVC4.js.map → publish-credentials-FCEQSIPE.js.map} +0 -0
- /package/dist/{relay-W73AIA35.js.map → registry-GG23NEBF.js.map} +0 -0
- /package/dist/{remote-docker-share-SY7CWW5R.js.map → relay-YUOIK3HN.js.map} +0 -0
- /package/dist/{tool-grant-push-OJHLVAPZ.js.map → tool-grant-push-A2JYLJVF.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → QDhlg7V_fEVGv_NfM2cEJ}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → QDhlg7V_fEVGv_NfM2cEJ}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → QDhlg7V_fEVGv_NfM2cEJ}/_ssgManifest.js +0 -0
package/dist/index.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
pluginCommand,
|
|
4
|
+
resolvePackage
|
|
5
|
+
} from "./chunk-TDPHZWJI.js";
|
|
2
6
|
import {
|
|
3
7
|
claudeCliSpec,
|
|
4
8
|
claudeCredStatus,
|
|
@@ -8,15 +12,15 @@ import {
|
|
|
8
12
|
runClaudeLogin,
|
|
9
13
|
takeLoginCode,
|
|
10
14
|
writeLoginState
|
|
11
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-MO3QJTVS.js";
|
|
12
16
|
import {
|
|
13
17
|
codexCliSpec,
|
|
14
18
|
codexRuntime,
|
|
15
19
|
installCodexPlugin
|
|
16
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-EDJ6O6CI.js";
|
|
17
21
|
import {
|
|
18
22
|
opencodeCliSpec
|
|
19
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-RIXW4HSE.js";
|
|
20
24
|
import {
|
|
21
25
|
DEFAULT_PI_SESSION,
|
|
22
26
|
buildPiMounts,
|
|
@@ -27,14 +31,14 @@ import {
|
|
|
27
31
|
piSessionInfo,
|
|
28
32
|
resolvePiVolume,
|
|
29
33
|
startPiSession
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-CXAWPWGZ.js";
|
|
31
35
|
import {
|
|
32
36
|
buildExampleMounts,
|
|
33
37
|
ensureExampleVolume,
|
|
34
38
|
exampleCliSpec,
|
|
35
39
|
exampleSessionInfo,
|
|
36
40
|
resolveExampleVolume
|
|
37
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XLJ4D4FI.js";
|
|
38
42
|
import {
|
|
39
43
|
ADVANCED_HINT_GROUPS,
|
|
40
44
|
ALERT_BAND_ROWS,
|
|
@@ -71,7 +75,7 @@ import {
|
|
|
71
75
|
subscribePrompts,
|
|
72
76
|
uploadImageFileToBox,
|
|
73
77
|
withFirewallRepair
|
|
74
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-GSMQL4IJ.js";
|
|
75
79
|
import {
|
|
76
80
|
codexStagedItems,
|
|
77
81
|
opencodeStagedItems,
|
|
@@ -80,21 +84,29 @@ import {
|
|
|
80
84
|
registerOpencodeAgent,
|
|
81
85
|
renderControlBoxProviders,
|
|
82
86
|
runPrepare
|
|
83
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-2APGFWEU.js";
|
|
84
88
|
import {
|
|
85
89
|
DEFAULT_CODEX_SESSION,
|
|
86
90
|
ensureCodexInstalled,
|
|
87
91
|
startCodexSession
|
|
88
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-6XMOBI5V.js";
|
|
89
93
|
import {
|
|
90
94
|
DEFAULT_OPENCODE_SESSION,
|
|
91
95
|
ensureOpencodeInstalled,
|
|
92
96
|
startOpencodeSession
|
|
93
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-4FOXMGJ7.js";
|
|
98
|
+
import {
|
|
99
|
+
dockerHiddenMessage,
|
|
100
|
+
dockerHiddenReason,
|
|
101
|
+
dockerProviderRefusal,
|
|
102
|
+
dockerProvidersHidden,
|
|
103
|
+
isDockerProvider,
|
|
104
|
+
remoteHubConfigured
|
|
105
|
+
} from "./chunk-27S7QLDF.js";
|
|
94
106
|
import {
|
|
95
107
|
sharePreparedBase,
|
|
96
108
|
tryAdoptPreparedBase
|
|
97
|
-
} from "./chunk-
|
|
109
|
+
} from "./chunk-XTNAIM7X.js";
|
|
98
110
|
import {
|
|
99
111
|
ensurePortlessProxyQuietly,
|
|
100
112
|
hubCommand,
|
|
@@ -103,7 +115,7 @@ import {
|
|
|
103
115
|
resolvePortlessEnabled,
|
|
104
116
|
resolvePortlessNonInteractive,
|
|
105
117
|
setupPortlessHost
|
|
106
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-TAZYSVLT.js";
|
|
107
119
|
import {
|
|
108
120
|
AGENTBOX_COMMIT,
|
|
109
121
|
AGENTBOX_VERSION,
|
|
@@ -148,31 +160,29 @@ import {
|
|
|
148
160
|
trayRunning,
|
|
149
161
|
updateCheckEnabled,
|
|
150
162
|
writeUpdateState
|
|
151
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-5OKDSI6M.js";
|
|
164
|
+
import {
|
|
165
|
+
isNewer
|
|
166
|
+
} from "./chunk-UPQOX272.js";
|
|
152
167
|
import {
|
|
153
168
|
boxOwningHubIsLocal,
|
|
154
169
|
exitCodeForApiError,
|
|
155
170
|
remoteHubHostFileRefusal,
|
|
156
171
|
reportBoxNotOnAnyHub,
|
|
157
172
|
withHubClient,
|
|
173
|
+
withHubClientQuiet,
|
|
158
174
|
withOwningHub
|
|
159
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-XNZ6UHTM.js";
|
|
176
|
+
import "./chunk-X6CO4WIX.js";
|
|
160
177
|
import {
|
|
161
178
|
CustodyClient
|
|
162
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-3ISG5THX.js";
|
|
163
180
|
import {
|
|
164
181
|
adoptHubBox,
|
|
165
182
|
downloadBoxSshKeys,
|
|
166
183
|
normalizeOriginUrl
|
|
167
|
-
} from "./chunk-
|
|
168
|
-
import "./chunk-
|
|
169
|
-
import {
|
|
170
|
-
pluginCommand,
|
|
171
|
-
resolvePackage
|
|
172
|
-
} from "./chunk-QTMUJETE.js";
|
|
173
|
-
import {
|
|
174
|
-
isNewer
|
|
175
|
-
} from "./chunk-UPQOX272.js";
|
|
184
|
+
} from "./chunk-7QTBRHB7.js";
|
|
185
|
+
import "./chunk-3L2DIPRM.js";
|
|
176
186
|
import {
|
|
177
187
|
detectSbx,
|
|
178
188
|
ensureVercelCredentials,
|
|
@@ -181,14 +191,14 @@ import {
|
|
|
181
191
|
readPreparedState as readPreparedState2,
|
|
182
192
|
readVercelCredStatus,
|
|
183
193
|
secretsPath as secretsPath3
|
|
184
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-MI3V2MAE.js";
|
|
185
195
|
import {
|
|
186
196
|
ensureE2bCredentials,
|
|
187
197
|
maskKey as maskKey4,
|
|
188
198
|
readE2bCredStatus,
|
|
189
199
|
readPreparedState as readPreparedState3,
|
|
190
200
|
secretsPath as secretsPath4
|
|
191
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-3AYSA62C.js";
|
|
192
202
|
import {
|
|
193
203
|
detectEgressIp as detectEgressIp2,
|
|
194
204
|
ensureDigitalOceanCredentials,
|
|
@@ -200,7 +210,7 @@ import {
|
|
|
200
210
|
readPreparedState as readPreparedState4,
|
|
201
211
|
secretsPath as secretsPath5,
|
|
202
212
|
syncFirewallSource as syncFirewallSource2
|
|
203
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-MPTE57BZ.js";
|
|
204
214
|
import {
|
|
205
215
|
getProvider,
|
|
206
216
|
isKnownProvider,
|
|
@@ -209,22 +219,36 @@ import {
|
|
|
209
219
|
providerSpecFor,
|
|
210
220
|
resolveCreateProviderSpec,
|
|
211
221
|
resolveProviderChoice
|
|
212
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-JWQYZ6V4.js";
|
|
213
223
|
import {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
} from "./chunk-E2RPG54S.js";
|
|
221
|
-
import "./chunk-QB7XVOYW.js";
|
|
224
|
+
RECENT_SESSION_MS,
|
|
225
|
+
detectAgentFromEnv,
|
|
226
|
+
detectHostSession,
|
|
227
|
+
registerCurrentSession,
|
|
228
|
+
registerHostManager
|
|
229
|
+
} from "./chunk-GVNKIACA.js";
|
|
222
230
|
import {
|
|
223
231
|
hubCanRunEngine,
|
|
224
232
|
shareHostWith,
|
|
225
233
|
unshareHostFrom,
|
|
226
234
|
unsharedHostReason
|
|
227
|
-
} from "./chunk-
|
|
235
|
+
} from "./chunk-YSACCMUB.js";
|
|
236
|
+
import {
|
|
237
|
+
assertValidAlias,
|
|
238
|
+
bakeRegisteredHost,
|
|
239
|
+
getHostAlias,
|
|
240
|
+
interactiveRegisterHost,
|
|
241
|
+
listHostAliases,
|
|
242
|
+
prepareRemoteDocker,
|
|
243
|
+
probeRemoteEngine,
|
|
244
|
+
readPreparedState as readPreparedState5,
|
|
245
|
+
removeHostAlias,
|
|
246
|
+
removePreparedHost,
|
|
247
|
+
setRemoteHostBaker,
|
|
248
|
+
setRemoteHostSharer,
|
|
249
|
+
shareRegisteredHost,
|
|
250
|
+
upsertHostAlias
|
|
251
|
+
} from "./chunk-L4KBYI3I.js";
|
|
228
252
|
import {
|
|
229
253
|
BOX_WORKSPACE,
|
|
230
254
|
RESUME_SEED,
|
|
@@ -244,40 +268,24 @@ import {
|
|
|
244
268
|
select,
|
|
245
269
|
spinner3,
|
|
246
270
|
text
|
|
247
|
-
} from "./chunk-
|
|
248
|
-
import {
|
|
249
|
-
assertValidAlias,
|
|
250
|
-
bakeRegisteredHost,
|
|
251
|
-
getHostAlias,
|
|
252
|
-
interactiveRegisterHost,
|
|
253
|
-
listHostAliases,
|
|
254
|
-
prepareRemoteDocker,
|
|
255
|
-
probeRemoteEngine,
|
|
256
|
-
readPreparedState as readPreparedState5,
|
|
257
|
-
removeHostAlias,
|
|
258
|
-
removePreparedHost,
|
|
259
|
-
setRemoteHostBaker,
|
|
260
|
-
setRemoteHostSharer,
|
|
261
|
-
shareRegisteredHost,
|
|
262
|
-
upsertHostAlias
|
|
263
|
-
} from "./chunk-XHCGVCSA.js";
|
|
271
|
+
} from "./chunk-QBVRWGXD.js";
|
|
264
272
|
import {
|
|
265
273
|
HubApiClient,
|
|
266
274
|
HubApiError,
|
|
267
275
|
hubBoxAgentStatus
|
|
268
|
-
} from "./chunk-
|
|
276
|
+
} from "./chunk-MB2K74BI.js";
|
|
269
277
|
import {
|
|
270
278
|
readControlPlaneEnvMap
|
|
271
279
|
} from "./chunk-QNYGNHM2.js";
|
|
272
280
|
import {
|
|
273
281
|
rehydrateFromState,
|
|
274
282
|
relayCommand
|
|
275
|
-
} from "./chunk-
|
|
283
|
+
} from "./chunk-WLEGSKKE.js";
|
|
276
284
|
import {
|
|
277
285
|
claudeStagedItems,
|
|
278
286
|
handleLifecycleError,
|
|
279
287
|
registerClaudeAgent
|
|
280
|
-
} from "./chunk-
|
|
288
|
+
} from "./chunk-S7LPQXR5.js";
|
|
281
289
|
import {
|
|
282
290
|
SHARED_CLAUDE_VOLUME,
|
|
283
291
|
buildDashboardAttachArgv,
|
|
@@ -287,7 +295,7 @@ import {
|
|
|
287
295
|
rebuildPluginNativeDeps,
|
|
288
296
|
startClaudeSession,
|
|
289
297
|
waitForTmuxPaneContent
|
|
290
|
-
} from "./chunk-
|
|
298
|
+
} from "./chunk-ANSPBIYG.js";
|
|
291
299
|
import {
|
|
292
300
|
daytonaBackend,
|
|
293
301
|
ensureDaytonaCredentials,
|
|
@@ -295,7 +303,7 @@ import {
|
|
|
295
303
|
readDaytonaCredStatus,
|
|
296
304
|
readPreparedDaytonaState,
|
|
297
305
|
secretsPath
|
|
298
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-M2DWTQRF.js";
|
|
299
307
|
import {
|
|
300
308
|
detectEgressIp,
|
|
301
309
|
ensureHetznerCredentials,
|
|
@@ -306,7 +314,7 @@ import {
|
|
|
306
314
|
readPreparedState,
|
|
307
315
|
secretsPath as secretsPath2,
|
|
308
316
|
syncFirewallSource
|
|
309
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-KOTW7QQW.js";
|
|
310
318
|
import {
|
|
311
319
|
CarrySeedError,
|
|
312
320
|
adminCustodySink,
|
|
@@ -325,7 +333,7 @@ import {
|
|
|
325
333
|
registerAgentCloudModule,
|
|
326
334
|
resolveCloudCheckpoint,
|
|
327
335
|
seedAgentVolumesIfFresh
|
|
328
|
-
} from "./chunk-
|
|
336
|
+
} from "./chunk-WTOG3CC6.js";
|
|
329
337
|
import {
|
|
330
338
|
CONTAINER_USER,
|
|
331
339
|
DEFAULT_SHELL_SESSION,
|
|
@@ -343,6 +351,7 @@ import {
|
|
|
343
351
|
createDockerVolumeSyncTransport,
|
|
344
352
|
destroyBox,
|
|
345
353
|
detectEngine,
|
|
354
|
+
detectPortless,
|
|
346
355
|
dockerCredentialRefresh,
|
|
347
356
|
dockerHubPortlessHooks,
|
|
348
357
|
downloadFromBox,
|
|
@@ -369,6 +378,7 @@ import {
|
|
|
369
378
|
parseToolsSection,
|
|
370
379
|
pauseBox,
|
|
371
380
|
portlessGetUrl,
|
|
381
|
+
portlessServiceStatus,
|
|
372
382
|
portlessUnalias,
|
|
373
383
|
projectCheckpointImageBytes,
|
|
374
384
|
pullToHost,
|
|
@@ -395,30 +405,33 @@ import {
|
|
|
395
405
|
volumeClaudeCredentials,
|
|
396
406
|
volumeExists,
|
|
397
407
|
volumeSettingsTarget
|
|
398
|
-
} from "./chunk-
|
|
408
|
+
} from "./chunk-PE5LPD23.js";
|
|
399
409
|
import {
|
|
400
410
|
DEFAULT_BOX_RELAY_PORT,
|
|
411
|
+
RESUMABLE_MANAGER_AGENTS,
|
|
401
412
|
deleteJob,
|
|
402
413
|
enqueueQueueJob,
|
|
414
|
+
findWorkspaceContaining,
|
|
403
415
|
hashRpcParams,
|
|
404
416
|
injectPrCreateHead,
|
|
405
417
|
loadQueue,
|
|
406
418
|
loadQueueConfig,
|
|
407
419
|
parseGitRemote,
|
|
408
420
|
readJob,
|
|
421
|
+
recordCreateJobTimeline,
|
|
409
422
|
takeQueueLoginCode,
|
|
410
423
|
writeJob
|
|
411
|
-
} from "./chunk-
|
|
424
|
+
} from "./chunk-66GAYIJZ.js";
|
|
412
425
|
import "./chunk-MNDKP4VS.js";
|
|
413
426
|
import {
|
|
414
427
|
cloudBackendForProvider,
|
|
415
428
|
currentCloudBaseFingerprintLive
|
|
416
|
-
} from "./chunk-
|
|
429
|
+
} from "./chunk-AWI2TSWS.js";
|
|
417
430
|
import {
|
|
418
431
|
getRuntimeProviderNames,
|
|
419
432
|
isRuntimeProvider,
|
|
420
433
|
loadProviderModule
|
|
421
|
-
} from "./chunk-
|
|
434
|
+
} from "./chunk-CDRKQ5BH.js";
|
|
422
435
|
import {
|
|
423
436
|
BUILD_CONTEXT_DIR,
|
|
424
437
|
DEFAULT_BOX_IMAGE,
|
|
@@ -427,7 +440,7 @@ import {
|
|
|
427
440
|
evaluateDockerBaseFreshness,
|
|
428
441
|
imageExists,
|
|
429
442
|
readPreparedDockerState
|
|
430
|
-
} from "./chunk-
|
|
443
|
+
} from "./chunk-YNAJUTYC.js";
|
|
431
444
|
import {
|
|
432
445
|
AGENT_SYNC_SPECS,
|
|
433
446
|
BOTS_DIR_REL,
|
|
@@ -531,7 +544,7 @@ import {
|
|
|
531
544
|
upsertClaudeSshConfig,
|
|
532
545
|
withServiceSignIn,
|
|
533
546
|
writeBackupManifest
|
|
534
|
-
} from "./chunk-
|
|
547
|
+
} from "./chunk-ZKOLV4ZN.js";
|
|
535
548
|
import {
|
|
536
549
|
AmbiguousBoxError,
|
|
537
550
|
BUILTIN_AGENT_SPECS,
|
|
@@ -558,8 +571,9 @@ import {
|
|
|
558
571
|
requireAgentCredential,
|
|
559
572
|
resolveAgentLauncher,
|
|
560
573
|
resolveCreatePersistent,
|
|
561
|
-
toQueueKind
|
|
562
|
-
|
|
574
|
+
toQueueKind,
|
|
575
|
+
visibleAgentSpecs
|
|
576
|
+
} from "./chunk-AWFTAHGF.js";
|
|
563
577
|
import {
|
|
564
578
|
GLOBAL_TOOLS_FILE,
|
|
565
579
|
KEY_REGISTRY,
|
|
@@ -610,7 +624,7 @@ import "./chunk-6V366IZC.js";
|
|
|
610
624
|
import { existsSync as _existsSync } from "fs";
|
|
611
625
|
import { dirname as _dirname, resolve as _resolve } from "path";
|
|
612
626
|
import { fileURLToPath as _fileURLToPath } from "url";
|
|
613
|
-
import { Command as
|
|
627
|
+
import { Command as Command71 } from "commander";
|
|
614
628
|
|
|
615
629
|
// ../../packages/agent-example/dist/index.js
|
|
616
630
|
var exampleSyncModule = {
|
|
@@ -687,10 +701,10 @@ async function stagePiCredentialsForUpload(opts = {}) {
|
|
|
687
701
|
}
|
|
688
702
|
var PI_FILE_ITEMS = /* @__PURE__ */ new Set(["auth.json", "settings.json"]);
|
|
689
703
|
function piStagedItems(newItems) {
|
|
690
|
-
return newItems.map((
|
|
691
|
-
rel:
|
|
692
|
-
label,
|
|
693
|
-
kind: PI_FILE_ITEMS.has(
|
|
704
|
+
return newItems.map((label2) => ({
|
|
705
|
+
rel: label2,
|
|
706
|
+
label: label2,
|
|
707
|
+
kind: PI_FILE_ITEMS.has(label2) || label2.endsWith(".md") ? "file" : "dir"
|
|
694
708
|
}));
|
|
695
709
|
}
|
|
696
710
|
var piSyncModule = {
|
|
@@ -819,6 +833,11 @@ var HELP_GROUPS = [
|
|
|
819
833
|
title: "Git & sync",
|
|
820
834
|
commands: ["git", "git push", "git pull", "git pr", "download", "cp", "checkpoint", "queue"]
|
|
821
835
|
},
|
|
836
|
+
{
|
|
837
|
+
title: "Workspaces & tasks",
|
|
838
|
+
hint: "group projects in a folder, plan the work, run a manager agent over it",
|
|
839
|
+
commands: ["workspace", "tasks", "manager"]
|
|
840
|
+
},
|
|
822
841
|
{
|
|
823
842
|
title: "Providers",
|
|
824
843
|
commands: [
|
|
@@ -851,6 +870,9 @@ var HELP_GROUPS = [
|
|
|
851
870
|
}
|
|
852
871
|
];
|
|
853
872
|
var SHORT_DESCRIPTIONS = {
|
|
873
|
+
workspace: "Register a folder grouping several projects, with its own task list",
|
|
874
|
+
tasks: "Units of work in a workspace, assigned to boxes (not agentbox.yaml tasks)",
|
|
875
|
+
manager: "Agent sessions that create and watch boxes: detected, or run by the hub",
|
|
854
876
|
create: "Create and start a new agent box (no agent launched)",
|
|
855
877
|
claude: "Create a box and launch Claude Code (detachable tmux session)",
|
|
856
878
|
codex: "Create a box and launch OpenAI Codex (detachable tmux session)",
|
|
@@ -909,7 +931,7 @@ function buildGroupedHelp(program2) {
|
|
|
909
931
|
const orphans = visible.map((c) => c.name()).filter((n) => !grouped.has(n));
|
|
910
932
|
const groups = [...HELP_GROUPS];
|
|
911
933
|
if (orphans.length) groups.push({ title: "Other", commands: orphans });
|
|
912
|
-
const
|
|
934
|
+
const resolve8 = (name) => {
|
|
913
935
|
const parts = name.split(" ");
|
|
914
936
|
let cmd = byName.get(parts[0]);
|
|
915
937
|
for (const part of parts.slice(1)) {
|
|
@@ -921,7 +943,7 @@ function buildGroupedHelp(program2) {
|
|
|
921
943
|
const termWidths = [];
|
|
922
944
|
for (const g of groups) {
|
|
923
945
|
for (const name of g.commands) {
|
|
924
|
-
const row2 =
|
|
946
|
+
const row2 = resolve8(name);
|
|
925
947
|
if (row2) termWidths.push(rowTerm(name, row2.cmd).length + row2.depth * 2);
|
|
926
948
|
}
|
|
927
949
|
}
|
|
@@ -932,7 +954,7 @@ function buildGroupedHelp(program2) {
|
|
|
932
954
|
const title = g.hint ? `${g.title} (${g.hint})` : g.title;
|
|
933
955
|
lines.push("", ` ${title}`);
|
|
934
956
|
for (const name of g.commands) {
|
|
935
|
-
const row2 =
|
|
957
|
+
const row2 = resolve8(name);
|
|
936
958
|
if (!row2) continue;
|
|
937
959
|
const description = SHORT_DESCRIPTIONS[name] ?? row2.cmd.description();
|
|
938
960
|
const indent2 = " " + " ".repeat(row2.depth);
|
|
@@ -1044,12 +1066,12 @@ var ADOPT_TIMEOUT_MS = 4e3;
|
|
|
1044
1066
|
var REACHABLE_PROBE_MS = 1500;
|
|
1045
1067
|
async function tryAutoAdopt(ref, cwd, projectRoot) {
|
|
1046
1068
|
try {
|
|
1047
|
-
const { resolveHubTarget } = await import("./hub-
|
|
1069
|
+
const { resolveHubTarget } = await import("./hub-OWUC4IGW.js");
|
|
1048
1070
|
const target = await resolveHubTarget();
|
|
1049
1071
|
if (target.mode !== "remote") return null;
|
|
1050
1072
|
if (!target.token) return "unreachable";
|
|
1051
1073
|
const [{ adoptHubBox: adoptHubBox2 }, { HubApiClient: HubApiClient2 }, { deadlineFetch: deadlineFetch2, hostReachable: hostReachable2 }] = await Promise.all(
|
|
1052
|
-
[import("./hub-adopt-
|
|
1074
|
+
[import("./hub-adopt-HYXFUPPO.js"), import("./hub-api-client-BI3E37CF.js"), import("./dist-V224SH3Z.js")]
|
|
1053
1075
|
);
|
|
1054
1076
|
const deadline = Date.now() + ADOPT_TIMEOUT_MS;
|
|
1055
1077
|
const remaining = () => deadline - Date.now();
|
|
@@ -1074,8 +1096,8 @@ async function tryAutoAdopt(ref, cwd, projectRoot) {
|
|
|
1074
1096
|
log.info("retry with a longer id prefix, the full name, or the sandbox id");
|
|
1075
1097
|
process.exit(2);
|
|
1076
1098
|
}
|
|
1077
|
-
const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-
|
|
1078
|
-
const { CustodyClient: CustodyClient2 } = await import("./custody-client-
|
|
1099
|
+
const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-3TII2JGM.js");
|
|
1100
|
+
const { CustodyClient: CustodyClient2 } = await import("./custody-client-KYEZET6C.js");
|
|
1079
1101
|
const custodyTarget = await resolveCustodyApiTarget2(void 0, {
|
|
1080
1102
|
quiet: true,
|
|
1081
1103
|
remoteOnly: true
|
|
@@ -1087,7 +1109,7 @@ async function tryAutoAdopt(ref, cwd, projectRoot) {
|
|
|
1087
1109
|
controlPlaneUrl: target.url,
|
|
1088
1110
|
cwd
|
|
1089
1111
|
});
|
|
1090
|
-
const { ensureHostReachDrainer } = await import("./host-reach-drainer-
|
|
1112
|
+
const { ensureHostReachDrainer } = await import("./host-reach-drainer-NYN3YXHG.js");
|
|
1091
1113
|
void ensureHostReachDrainer(res.record);
|
|
1092
1114
|
return res.record;
|
|
1093
1115
|
} catch {
|
|
@@ -1686,14 +1708,14 @@ var agentApproveCommand = new Command2("approve").description(
|
|
|
1686
1708
|
async function approveRelay(id, opts) {
|
|
1687
1709
|
const cancelled = opts.cancel === true;
|
|
1688
1710
|
const answer = opts.deny === true || cancelled ? "n" : "y";
|
|
1689
|
-
const
|
|
1711
|
+
const label2 = answer === "y" ? "approved" : "denied";
|
|
1690
1712
|
let reachedHub = false;
|
|
1691
1713
|
const localClient = await resolveHubApiClient(void 0, { preferLocal: true });
|
|
1692
1714
|
if (localClient) {
|
|
1693
1715
|
reachedHub = true;
|
|
1694
1716
|
try {
|
|
1695
1717
|
const opened = await localClient.answerApprovalOpeningLinks(id, answer, cancelled);
|
|
1696
|
-
log4.success(opened ? `approval ${id}: opened ${opened}` : `approval ${id}: ${
|
|
1718
|
+
log4.success(opened ? `approval ${id}: opened ${opened}` : `approval ${id}: ${label2}`);
|
|
1697
1719
|
return;
|
|
1698
1720
|
} catch (err) {
|
|
1699
1721
|
if (!(err instanceof HubApiError && err.code === "not_found")) throw err;
|
|
@@ -1713,7 +1735,7 @@ Set AGENTBOX_HUB_API_KEY (or run \`agentbox hub setup\`), or answer it with \`ag
|
|
|
1713
1735
|
try {
|
|
1714
1736
|
const opened = await remoteClient.answerApprovalOpeningLinks(id, answer, cancelled);
|
|
1715
1737
|
log4.success(
|
|
1716
|
-
opened ? `approval ${id}: opened ${opened}` : `approval ${id}: ${
|
|
1738
|
+
opened ? `approval ${id}: opened ${opened}` : `approval ${id}: ${label2} (on the control box)`
|
|
1717
1739
|
);
|
|
1718
1740
|
return;
|
|
1719
1741
|
} catch (err) {
|
|
@@ -1953,10 +1975,10 @@ function emitMatch(claude, asJson) {
|
|
|
1953
1975
|
function statusDisplay(claude) {
|
|
1954
1976
|
return derivedAgentState(claude);
|
|
1955
1977
|
}
|
|
1956
|
-
function parsePositiveInt(raw,
|
|
1978
|
+
function parsePositiveInt(raw, label2) {
|
|
1957
1979
|
const n = Number.parseInt(raw, 10);
|
|
1958
1980
|
if (!Number.isFinite(n) || n <= 0 || String(n) !== raw.trim()) {
|
|
1959
|
-
throw new Error(`${
|
|
1981
|
+
throw new Error(`${label2} must be a positive integer (got: ${raw})`);
|
|
1960
1982
|
}
|
|
1961
1983
|
return n;
|
|
1962
1984
|
}
|
|
@@ -2104,15 +2126,15 @@ var logSub = new Command3("log").description("Show the tray app's diagnostics (u
|
|
|
2104
2126
|
};
|
|
2105
2127
|
process.on("SIGINT", term2);
|
|
2106
2128
|
process.on("SIGTERM", term2);
|
|
2107
|
-
await new Promise((
|
|
2129
|
+
await new Promise((resolve8) => {
|
|
2108
2130
|
child.on("error", (err) => {
|
|
2109
2131
|
log5.error(`failed to start \`log stream\`: ${err.message}`);
|
|
2110
2132
|
process.exitCode = 1;
|
|
2111
|
-
|
|
2133
|
+
resolve8();
|
|
2112
2134
|
});
|
|
2113
2135
|
child.on("exit", (code) => {
|
|
2114
2136
|
if (code && code !== 0) process.exitCode = code;
|
|
2115
|
-
|
|
2137
|
+
resolve8();
|
|
2116
2138
|
});
|
|
2117
2139
|
});
|
|
2118
2140
|
return;
|
|
@@ -2293,7 +2315,7 @@ async function warnCheckpointAgentMismatch(provider, projectRoot, ref, agents, w
|
|
|
2293
2315
|
}
|
|
2294
2316
|
async function evaluateBaseFreshness(provider) {
|
|
2295
2317
|
if (provider === "docker") {
|
|
2296
|
-
const { evaluateDockerBaseFreshness: evaluateDockerBaseFreshness2 } = await import("./dist-
|
|
2318
|
+
const { evaluateDockerBaseFreshness: evaluateDockerBaseFreshness2 } = await import("./dist-JJZ3NZRO.js");
|
|
2297
2319
|
return await evaluateDockerBaseFreshness2();
|
|
2298
2320
|
}
|
|
2299
2321
|
const stored = currentCloudBaseFingerprint(provider);
|
|
@@ -2390,6 +2412,67 @@ function cloudSizingProviderOptions(providerName, cfg, flags = {}) {
|
|
|
2390
2412
|
return out;
|
|
2391
2413
|
}
|
|
2392
2414
|
|
|
2415
|
+
// src/lib/tasks-assign.ts
|
|
2416
|
+
var TASK_ID_RE = /^T-\d+$/;
|
|
2417
|
+
var TaskIdError = class extends Error {
|
|
2418
|
+
};
|
|
2419
|
+
function parseTaskIds(raw) {
|
|
2420
|
+
const ids = raw.split(",").map((s) => s.trim()).filter((s) => s.length > 0);
|
|
2421
|
+
if (ids.length === 0) throw new TaskIdError("--tasks needs at least one task id (e.g. T-11)");
|
|
2422
|
+
const bad = ids.filter((id) => !TASK_ID_RE.test(id));
|
|
2423
|
+
if (bad.length > 0) {
|
|
2424
|
+
throw new TaskIdError(`not a task id: ${bad.join(", ")} (expected T-<number>)`);
|
|
2425
|
+
}
|
|
2426
|
+
return [...new Set(ids)];
|
|
2427
|
+
}
|
|
2428
|
+
async function preflightTaskAssignment(client, projectRoot, ids) {
|
|
2429
|
+
const workspaces = await client.listWorkspaces();
|
|
2430
|
+
const ws = (process.env["AGENTBOX_WORKSPACE"] ? workspaces.find((w) => w.id === process.env["AGENTBOX_WORKSPACE"]) : void 0) ?? findWorkspaceContaining(workspaces, projectRoot);
|
|
2431
|
+
if (!ws) {
|
|
2432
|
+
throw new TaskIdError(
|
|
2433
|
+
`--tasks needs a workspace: no registered workspace contains ${projectRoot}. Register one with \`agentbox workspace add\`.`
|
|
2434
|
+
);
|
|
2435
|
+
}
|
|
2436
|
+
const known = new Set((await client.listTasks(ws.id)).map((t) => t.id));
|
|
2437
|
+
const missing = ids.filter((id) => !known.has(id));
|
|
2438
|
+
if (missing.length > 0) {
|
|
2439
|
+
throw new TaskIdError(`unknown task ${missing.join(", ")} in workspace ${ws.name}`);
|
|
2440
|
+
}
|
|
2441
|
+
return ws.id;
|
|
2442
|
+
}
|
|
2443
|
+
async function assignTasksBestEffort(client, wsId, ids, target) {
|
|
2444
|
+
try {
|
|
2445
|
+
await client.assignTasks(wsId, ids, target);
|
|
2446
|
+
log2.info(`tasks assigned: ${ids.join(", ")}`);
|
|
2447
|
+
} catch (err) {
|
|
2448
|
+
log2.warn(
|
|
2449
|
+
`could not assign ${ids.join(", ")}: ${err instanceof Error ? err.message : String(err)}`
|
|
2450
|
+
);
|
|
2451
|
+
}
|
|
2452
|
+
}
|
|
2453
|
+
async function preflightOrExit(client, projectRoot, ids) {
|
|
2454
|
+
try {
|
|
2455
|
+
return await preflightTaskAssignment(client, projectRoot, ids);
|
|
2456
|
+
} catch (err) {
|
|
2457
|
+
if (err instanceof TaskIdError) {
|
|
2458
|
+
log2.error(err.message);
|
|
2459
|
+
process.exit(4);
|
|
2460
|
+
}
|
|
2461
|
+
throw err;
|
|
2462
|
+
}
|
|
2463
|
+
}
|
|
2464
|
+
function parseTaskIdsOrExit(raw) {
|
|
2465
|
+
try {
|
|
2466
|
+
return parseTaskIds(raw);
|
|
2467
|
+
} catch (err) {
|
|
2468
|
+
if (err instanceof TaskIdError) {
|
|
2469
|
+
log2.error(err.message);
|
|
2470
|
+
process.exit(4);
|
|
2471
|
+
}
|
|
2472
|
+
throw err;
|
|
2473
|
+
}
|
|
2474
|
+
}
|
|
2475
|
+
|
|
2393
2476
|
// src/lib/queue/parse-max-option.ts
|
|
2394
2477
|
function parseMaxOption(flag, raw) {
|
|
2395
2478
|
if (raw === void 0) return void 0;
|
|
@@ -2698,8 +2781,8 @@ async function printLaunchRecap(args) {
|
|
|
2698
2781
|
rows.push(["branch", `${base} \u2192 ${toBranch}`]);
|
|
2699
2782
|
}
|
|
2700
2783
|
}
|
|
2701
|
-
const pad3 = Math.max(...rows.map(([
|
|
2702
|
-
const body = rows.map(([
|
|
2784
|
+
const pad3 = Math.max(...rows.map(([label2]) => label2.length)) + 2;
|
|
2785
|
+
const body = rows.map(([label2, value]) => `${label2.padEnd(pad3)}${value}`).join("\n");
|
|
2703
2786
|
const instruction = args.attaching ? `Ctrl+a d to detach. Reattach with: agentbox ${args.mode} attach ${args.reattach}` : `Attach with: agentbox ${args.mode} attach ${args.reattach}`;
|
|
2704
2787
|
note2(whiten(`${body}
|
|
2705
2788
|
|
|
@@ -2727,6 +2810,7 @@ async function cloudAgentCreate(args) {
|
|
|
2727
2810
|
s.stop(`box ready${nSuffix}`);
|
|
2728
2811
|
await recordLastAgent(result.record.id, args.mode).catch(() => {
|
|
2729
2812
|
});
|
|
2813
|
+
if (args.onCreated) await args.onCreated(result.record);
|
|
2730
2814
|
let extraArgs = args.extraArgs;
|
|
2731
2815
|
if (args.beforeStart) {
|
|
2732
2816
|
const hook = await args.beforeStart(result.record);
|
|
@@ -2777,7 +2861,7 @@ import { isCancel, log as log7, text as text2 } from "@clack/prompts";
|
|
|
2777
2861
|
var JOB_POLL_MS = 2e3;
|
|
2778
2862
|
var CREATE_TIMEOUT_MS = 45 * 6e4;
|
|
2779
2863
|
function delay(ms) {
|
|
2780
|
-
return new Promise((
|
|
2864
|
+
return new Promise((resolve8) => setTimeout(resolve8, ms));
|
|
2781
2865
|
}
|
|
2782
2866
|
async function defaultLoginPrompt(url, lastError) {
|
|
2783
2867
|
if (lastError) log7.warn(`login code rejected: ${lastError}`);
|
|
@@ -2882,7 +2966,7 @@ async function resolveCreateTarget(input) {
|
|
|
2882
2966
|
fellBackReason: "no git `origin` remote for the control box to clone"
|
|
2883
2967
|
};
|
|
2884
2968
|
}
|
|
2885
|
-
const { resolveCustodyTarget: resolveCustodyTarget2 } = await import("./control-plane-
|
|
2969
|
+
const { resolveCustodyTarget: resolveCustodyTarget2 } = await import("./control-plane-3TII2JGM.js");
|
|
2886
2970
|
const custody = await resolveCustodyTarget2(urlFlag, { quiet: !forceHub });
|
|
2887
2971
|
if (!custody) {
|
|
2888
2972
|
if (forceHub) {
|
|
@@ -3001,7 +3085,9 @@ async function createCloudBoxViaHubAndAdopt(args) {
|
|
|
3001
3085
|
})
|
|
3002
3086
|
});
|
|
3003
3087
|
const client = new HubApiClient(apiTarget);
|
|
3088
|
+
const manager = await registerCurrentSession(client);
|
|
3004
3089
|
const { jobId } = await client.createBox({
|
|
3090
|
+
...manager ? { managerId: manager.managerId } : {},
|
|
3005
3091
|
repoUrl,
|
|
3006
3092
|
provider: providerSpecFor(providerName, remoteHost),
|
|
3007
3093
|
agent,
|
|
@@ -3077,7 +3163,9 @@ async function enqueueAgentJobViaHub(args) {
|
|
|
3077
3163
|
})
|
|
3078
3164
|
});
|
|
3079
3165
|
const client = new HubApiClient(apiTarget);
|
|
3166
|
+
const manager = await registerCurrentSession(client);
|
|
3080
3167
|
const { jobId } = await client.createBox({
|
|
3168
|
+
...manager ? { managerId: manager.managerId } : {},
|
|
3081
3169
|
repoUrl,
|
|
3082
3170
|
provider: providerSpecFor(providerName, remoteHost),
|
|
3083
3171
|
agent,
|
|
@@ -3788,6 +3876,9 @@ var BOX_REF_HELP = "box ref: project index, id, id prefix, name, or container (d
|
|
|
3788
3876
|
function addCreateOptions(cmd, a) {
|
|
3789
3877
|
const { id, productName, text: text3 } = a;
|
|
3790
3878
|
cmd.option("-w, --workspace <path>", "host workspace to mount", process.cwd()).option("-n, --name <name>", "friendly box name (default: <workspace-basename>-<id>)").option(
|
|
3879
|
+
"--tasks <ids>",
|
|
3880
|
+
"comma-separated workspace task ids to assign to this box (e.g. T-11,T-12)"
|
|
3881
|
+
).option(
|
|
3791
3882
|
"--host-snapshot",
|
|
3792
3883
|
"APFS-clone the host workspace into a per-box scratch dir before seeding /workspace (stabilizes the tar-pipe source)"
|
|
3793
3884
|
).option("--no-host-snapshot", "tar-pipe directly from the live host workspace at create time").option(
|
|
@@ -4284,6 +4375,34 @@ async function runAgentCreate(a, agentArgs, opts) {
|
|
|
4284
4375
|
});
|
|
4285
4376
|
const cfg = cfgLoaded.effective;
|
|
4286
4377
|
const projectRoot = (await findProjectRoot(opts.workspace)).root;
|
|
4378
|
+
const taskIds = opts.tasks ? parseTaskIdsOrExit(opts.tasks) : [];
|
|
4379
|
+
let taskWorkspaceId = null;
|
|
4380
|
+
if (taskIds.length > 0) {
|
|
4381
|
+
taskWorkspaceId = await withHubClient(
|
|
4382
|
+
{ preferLocal: true },
|
|
4383
|
+
(client) => preflightOrExit(client, projectRoot, taskIds)
|
|
4384
|
+
) ?? null;
|
|
4385
|
+
if (!taskWorkspaceId) process.exit(process.exitCode || 1);
|
|
4386
|
+
}
|
|
4387
|
+
const sessionHint = detectHostSession();
|
|
4388
|
+
const recordCreate = async (target) => {
|
|
4389
|
+
if (sessionHint) {
|
|
4390
|
+
const registered = await withHubClientQuiet(
|
|
4391
|
+
{ preferLocal: true },
|
|
4392
|
+
(client) => registerHostManager(client, sessionHint, target)
|
|
4393
|
+
);
|
|
4394
|
+
if (!registered.ok) {
|
|
4395
|
+
log2.warn(
|
|
4396
|
+
`could not register this ${sessionHint.agent} session as a manager: ${registered.error}`
|
|
4397
|
+
);
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
if (!taskWorkspaceId) return;
|
|
4401
|
+
await withHubClient(
|
|
4402
|
+
{ preferLocal: true },
|
|
4403
|
+
(client) => assignTasksBestEffort(client, taskWorkspaceId, taskIds, target)
|
|
4404
|
+
);
|
|
4405
|
+
};
|
|
4287
4406
|
const { providerName, remoteHost } = resolveProviderChoice(cfg, { provider: opts.provider });
|
|
4288
4407
|
const isCloud = providerName !== "docker";
|
|
4289
4408
|
let routingPromise;
|
|
@@ -4405,6 +4524,7 @@ async function runAgentCreate(a, agentArgs, opts) {
|
|
|
4405
4524
|
1
|
|
4406
4525
|
);
|
|
4407
4526
|
}
|
|
4527
|
+
if (res.boxId) await recordCreate({ boxId: res.boxId });
|
|
4408
4528
|
outro(`${a.id} is running on the control plane: box ${res.boxId ?? "(id pending)"}`);
|
|
4409
4529
|
cmdLog.close();
|
|
4410
4530
|
return;
|
|
@@ -4448,6 +4568,7 @@ async function runAgentCreate(a, agentArgs, opts) {
|
|
|
4448
4568
|
maxWorkingOverride,
|
|
4449
4569
|
openTerminal: captureOpenTerminalContext(cfg.queue.openIn)
|
|
4450
4570
|
});
|
|
4571
|
+
await recordCreate({ boxJobId: result.job.id });
|
|
4451
4572
|
outro(
|
|
4452
4573
|
`job ${result.job.id} queued (${String(result.runningCount)}/${String(result.maxConcurrent)} running); log: ${result.job.logPath}`
|
|
4453
4574
|
);
|
|
@@ -4594,6 +4715,7 @@ async function runAgentCreate(a, agentArgs, opts) {
|
|
|
4594
4715
|
{ verbose: opts.verbose === true }
|
|
4595
4716
|
);
|
|
4596
4717
|
if (adopted) {
|
|
4718
|
+
await recordCreate({ boxId: adopted.id });
|
|
4597
4719
|
await cloudAgentAttach({
|
|
4598
4720
|
box: adopted,
|
|
4599
4721
|
binary: a.spec.binary,
|
|
@@ -4645,6 +4767,7 @@ async function runAgentCreate(a, agentArgs, opts) {
|
|
|
4645
4767
|
binary: a.spec.binary,
|
|
4646
4768
|
sessionName,
|
|
4647
4769
|
mode: a.id,
|
|
4770
|
+
onCreated: (box) => recordCreate({ boxId: box.id }),
|
|
4648
4771
|
hasSeedPrompt: seedOwnsFirstTurn,
|
|
4649
4772
|
extraArgs: effectiveArgs,
|
|
4650
4773
|
verbose: opts.verbose === true,
|
|
@@ -4710,6 +4833,7 @@ async function runAgentCreate(a, agentArgs, opts) {
|
|
|
4710
4833
|
}
|
|
4711
4834
|
});
|
|
4712
4835
|
containerName = result.record.container;
|
|
4836
|
+
await recordCreate({ boxId: result.record.id });
|
|
4713
4837
|
if (a.runtime.ensureInstalledOnCreate) {
|
|
4714
4838
|
s.message(`checking ${a.id}`);
|
|
4715
4839
|
cmdLog.write(`checking ${a.id}`);
|
|
@@ -6232,9 +6356,9 @@ var createSub = new Command8("create").description("Capture a box state as a pro
|
|
|
6232
6356
|
}
|
|
6233
6357
|
});
|
|
6234
6358
|
function itemRow(c) {
|
|
6235
|
-
const
|
|
6359
|
+
const label2 = c.provider === "docker" ? `docker (${c.kind})` : `${c.provider} (${c.kind})`;
|
|
6236
6360
|
const flag = c.isDefault ? " *default" : "";
|
|
6237
|
-
return `${c.name} ${
|
|
6361
|
+
return `${c.name} ${label2} from ${c.sourceBoxName} ${c.createdAt}${flag}`;
|
|
6238
6362
|
}
|
|
6239
6363
|
var lsSub = new Command8("ls").description("List this project's checkpoints (both docker and cloud); -g for all projects").option("-g, --global", "include checkpoints from all projects").action(async (opts) => {
|
|
6240
6364
|
try {
|
|
@@ -6295,13 +6419,13 @@ var setDefaultSub = new Command8("set-default").description("Pin a checkpoint as
|
|
|
6295
6419
|
`${providerArg} is a plugin provider, which has no per-provider default key \u2014 this sets the cross-provider ${configKey}, used by every provider without its own default.`
|
|
6296
6420
|
);
|
|
6297
6421
|
}
|
|
6298
|
-
const
|
|
6422
|
+
const label2 = providerArg && perProvider ? `${providerArg} default checkpoint` : "project default checkpoint";
|
|
6299
6423
|
if (opts.clear) {
|
|
6300
6424
|
if (ref !== void 0) throw new Error("pass either a <ref> or --clear, not both");
|
|
6301
6425
|
const rr = await unsetConfigValue("project", configKey, projectRoot);
|
|
6302
6426
|
process.stdout.write(
|
|
6303
|
-
rr.existed ? `cleared ${
|
|
6304
|
-
` : `no ${
|
|
6427
|
+
rr.existed ? `cleared ${label2} (wrote ${rr.path})
|
|
6428
|
+
` : `no ${label2} was set (${rr.path})
|
|
6305
6429
|
`
|
|
6306
6430
|
);
|
|
6307
6431
|
return;
|
|
@@ -6316,7 +6440,7 @@ var setDefaultSub = new Command8("set-default").description("Pin a checkpoint as
|
|
|
6316
6440
|
return;
|
|
6317
6441
|
}
|
|
6318
6442
|
const rr = await setConfigValue("project", configKey, ref, projectRoot);
|
|
6319
|
-
process.stdout.write(`${
|
|
6443
|
+
process.stdout.write(`${label2} = ${ref} (wrote ${rr.path})
|
|
6320
6444
|
`);
|
|
6321
6445
|
});
|
|
6322
6446
|
} catch (err) {
|
|
@@ -6482,10 +6606,10 @@ var propagateCommand = new Command9("propagate").description("Push the host cred
|
|
|
6482
6606
|
});
|
|
6483
6607
|
async function pushCredentialToCustody(agent, content) {
|
|
6484
6608
|
try {
|
|
6485
|
-
const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-
|
|
6609
|
+
const { resolveCustodyApiTarget: resolveCustodyApiTarget2 } = await import("./control-plane-3TII2JGM.js");
|
|
6486
6610
|
const target = await resolveCustodyApiTarget2(void 0, { quiet: true, remoteOnly: true });
|
|
6487
6611
|
if (!target) return;
|
|
6488
|
-
const { CustodyClient: CustodyClient2, planPush } = await import("./custody-client-
|
|
6612
|
+
const { CustodyClient: CustodyClient2, planPush } = await import("./custody-client-KYEZET6C.js");
|
|
6489
6613
|
const client = new CustodyClient2(target);
|
|
6490
6614
|
const path = `agents/${agent}/${requireAgentCredential(resolveAgentSpec(agent)).boxRelPath}`;
|
|
6491
6615
|
const item = { path, data: Buffer.from(content, "utf8") };
|
|
@@ -6848,10 +6972,10 @@ async function launchOne(flavor, folderUri) {
|
|
|
6848
6972
|
return { code: fallback, flavor, via: "open" };
|
|
6849
6973
|
}
|
|
6850
6974
|
function spawnCommand(cmd, args) {
|
|
6851
|
-
return new Promise((
|
|
6975
|
+
return new Promise((resolve8) => {
|
|
6852
6976
|
const child = spawn2(cmd, args, { stdio: "ignore" });
|
|
6853
|
-
child.once("error", () =>
|
|
6854
|
-
child.once("exit", (code) =>
|
|
6977
|
+
child.once("error", () => resolve8(127));
|
|
6978
|
+
child.once("exit", (code) => resolve8(code ?? -1));
|
|
6855
6979
|
});
|
|
6856
6980
|
}
|
|
6857
6981
|
async function fetchServiceNamesDocker(container) {
|
|
@@ -7309,7 +7433,7 @@ var cpCommand = new Command12("cp").description(
|
|
|
7309
7433
|
).action(async (paths, opts) => {
|
|
7310
7434
|
try {
|
|
7311
7435
|
if (paths.length >= 2 && isHubDest(paths[paths.length - 1])) {
|
|
7312
|
-
const { uploadToHubCache } = await import("./cp-hub-upload-
|
|
7436
|
+
const { uploadToHubCache } = await import("./cp-hub-upload-3W7Z4BMT.js");
|
|
7313
7437
|
await uploadToHubCache(paths.slice(0, -1), process.cwd());
|
|
7314
7438
|
return;
|
|
7315
7439
|
}
|
|
@@ -7449,7 +7573,9 @@ async function runCreateViaHubApi(target, opts, providerName, remoteHost, projec
|
|
|
7449
7573
|
...opts.credentialSync === false ? { credentialSync: false } : {}
|
|
7450
7574
|
};
|
|
7451
7575
|
const outcome = await withHubClient({ url: opts.url }, async (client) => {
|
|
7576
|
+
const manager = await registerCurrentSession(client);
|
|
7452
7577
|
const { jobId } = await client.createBox({
|
|
7578
|
+
...manager ? { managerId: manager.managerId } : {},
|
|
7453
7579
|
repoUrl: target.repoUrl,
|
|
7454
7580
|
provider: providerSpecFor(providerName, remoteHost),
|
|
7455
7581
|
agent: "none",
|
|
@@ -7483,6 +7609,9 @@ async function runCreateViaHubApi(target, opts, providerName, remoteHost, projec
|
|
|
7483
7609
|
var createCommand = new Command13("create").description(
|
|
7484
7610
|
"Create and start a new agent box (Docker container with /workspace seeded via in-container git worktree)"
|
|
7485
7611
|
).option("-w, --workspace <path>", "host workspace to mount", process.cwd()).option("-n, --name <name>", "friendly box name (default: <workspace-basename>-<id>)").option(
|
|
7612
|
+
"--tasks <ids>",
|
|
7613
|
+
"comma-separated workspace task ids to assign to this box (e.g. T-11,T-12)"
|
|
7614
|
+
).option(
|
|
7486
7615
|
"--provider <name>",
|
|
7487
7616
|
"sandbox backend: docker (default), daytona, hetzner, digitalocean, vercel, e2b, remote-docker. `docker:<host>` runs the box on that machine's docker engine over SSH."
|
|
7488
7617
|
).option(
|
|
@@ -7809,8 +7938,12 @@ var createCommand = new Command13("create").description(
|
|
|
7809
7938
|
}
|
|
7810
7939
|
const s = makeProgressReporter(opts.verbose === true);
|
|
7811
7940
|
s.start("creating box");
|
|
7941
|
+
const taskIds = opts.tasks ? parseTaskIdsOrExit(opts.tasks) : [];
|
|
7812
7942
|
const outcome = await withHubClient({ preferLocal: true }, async (client) => {
|
|
7943
|
+
const taskWorkspace = taskIds.length > 0 ? await preflightOrExit(client, projectRoot, taskIds) : null;
|
|
7944
|
+
const manager = await registerCurrentSession(client);
|
|
7813
7945
|
const { jobId } = await client.createBox({
|
|
7946
|
+
...manager ? { managerId: manager.managerId } : {},
|
|
7814
7947
|
projectId: hashProjectPath(projectRoot),
|
|
7815
7948
|
provider: opts.provider ?? providerName,
|
|
7816
7949
|
agent: "none",
|
|
@@ -7851,6 +7984,8 @@ var createCommand = new Command13("create").description(
|
|
|
7851
7984
|
}
|
|
7852
7985
|
});
|
|
7853
7986
|
cmdLog.write(`enqueued: job ${jobId}`);
|
|
7987
|
+
if (taskWorkspace)
|
|
7988
|
+
await assignTasksBestEffort(client, taskWorkspace, taskIds, { boxJobId: jobId });
|
|
7854
7989
|
return await streamJobToCompletion(client, jobId, {
|
|
7855
7990
|
onLine: (line) => {
|
|
7856
7991
|
s.message(line);
|
|
@@ -7914,7 +8049,7 @@ var createCommand = new Command13("create").description(
|
|
|
7914
8049
|
for (const w of cmdLog.warnings()) log15.warn(w);
|
|
7915
8050
|
outro4("done");
|
|
7916
8051
|
if (attachClaudeAfter && record) {
|
|
7917
|
-
const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-
|
|
8052
|
+
const { cloudAgentAttach: cloudAgentAttach2 } = await import("./_cloud-attach-6RKS3MAP.js");
|
|
7918
8053
|
await cloudAgentAttach2({
|
|
7919
8054
|
box: record,
|
|
7920
8055
|
binary: "claude",
|
|
@@ -7953,12 +8088,12 @@ async function fetchBoxListing(opts = {}) {
|
|
|
7953
8088
|
const ttl = apiMemo?.listing.stale === true ? HUB_LIST_FAIL_MEMO_MS : HUB_LIST_MEMO_MS;
|
|
7954
8089
|
if (apiMemo && Date.now() - apiMemo.at < ttl) return apiMemo.listing;
|
|
7955
8090
|
}
|
|
7956
|
-
const { resolveHubTarget } = await import("./hub-
|
|
8091
|
+
const { resolveHubTarget } = await import("./hub-OWUC4IGW.js");
|
|
7957
8092
|
const probe = await resolveHubTarget(opts.url).catch(() => null);
|
|
7958
8093
|
if (probe && probe.mode === "remote" && !probe.token) {
|
|
7959
8094
|
return remember({ boxes: [], stale: true, reason: "no-token" }, opts.live);
|
|
7960
8095
|
}
|
|
7961
|
-
const { resolveHubApiTarget: resolveHubApiTarget2 } = await import("./control-plane-
|
|
8096
|
+
const { resolveHubApiTarget: resolveHubApiTarget2 } = await import("./control-plane-3TII2JGM.js");
|
|
7962
8097
|
const target = await resolveHubApiTarget2(opts.url).catch(() => null);
|
|
7963
8098
|
if (target) {
|
|
7964
8099
|
const ceiling = opts.live ? HUB_LIST_LIVE_TIMEOUT_MS : HUB_LIST_TIMEOUT_MS;
|
|
@@ -8747,8 +8882,8 @@ var Compositor = class {
|
|
|
8747
8882
|
this.drawChrome();
|
|
8748
8883
|
this.scheduleRender();
|
|
8749
8884
|
this.pollTimer = setInterval(() => void this.poll(), POLL_MS);
|
|
8750
|
-
await new Promise((
|
|
8751
|
-
this.resolveDone =
|
|
8885
|
+
await new Promise((resolve8) => {
|
|
8886
|
+
this.resolveDone = resolve8;
|
|
8752
8887
|
});
|
|
8753
8888
|
}
|
|
8754
8889
|
async refreshBoxes() {
|
|
@@ -9103,8 +9238,8 @@ var Compositor = class {
|
|
|
9103
9238
|
this.busy = true;
|
|
9104
9239
|
this.menu = null;
|
|
9105
9240
|
this.createMenu = null;
|
|
9106
|
-
const
|
|
9107
|
-
this.placeholder = ["", which === "shell" ? " Opening shell\u2026" : ` Starting ${
|
|
9241
|
+
const label2 = which === "shell" ? "shell" : which === "pi" ? "Pi" : which === "opencode" ? "OpenCode" : which === "codex" ? "Codex" : "Claude";
|
|
9242
|
+
this.placeholder = ["", which === "shell" ? " Opening shell\u2026" : ` Starting ${label2}\u2026`];
|
|
9108
9243
|
this.prevRows = null;
|
|
9109
9244
|
this.drawChrome();
|
|
9110
9245
|
this.scheduleRender();
|
|
@@ -9117,7 +9252,7 @@ var Compositor = class {
|
|
|
9117
9252
|
const msg = err instanceof Error ? err.message : String(err);
|
|
9118
9253
|
this.placeholder = [
|
|
9119
9254
|
"",
|
|
9120
|
-
` Failed to ${which === "shell" ? "open a shell" : `start ${
|
|
9255
|
+
` Failed to ${which === "shell" ? "open a shell" : `start ${label2}`} in ${name}:`,
|
|
9121
9256
|
` ${msg}`,
|
|
9122
9257
|
"",
|
|
9123
9258
|
which === "shell" ? ` Try from a shell: agentbox shell ${name}` : ` Try from a shell: agentbox ${which} start ${name}`
|
|
@@ -11156,9 +11291,9 @@ var remoteDockerCommand = new Command21("remote-docker").description("Remote Doc
|
|
|
11156
11291
|
process.stdout.write(`remote-docker: ${header}
|
|
11157
11292
|
`);
|
|
11158
11293
|
for (const r of rows) {
|
|
11159
|
-
const
|
|
11294
|
+
const label2 = r.label.padEnd(10);
|
|
11160
11295
|
const tail = r.hint ? ` (${r.hint})` : "";
|
|
11161
|
-
process.stdout.write(` ${statusBadge(r.status)} ${
|
|
11296
|
+
process.stdout.write(` ${statusBadge(r.status)} ${label2} ${r.detail}${tail}
|
|
11162
11297
|
`);
|
|
11163
11298
|
}
|
|
11164
11299
|
if (!probe.ok) process.exitCode = 1;
|
|
@@ -11479,16 +11614,16 @@ async function runPropagateStep(opts) {
|
|
|
11479
11614
|
};
|
|
11480
11615
|
const image = sourceBox.image || DEFAULT_BOX_IMAGE;
|
|
11481
11616
|
for (const vol of plan.dockerVolumes) {
|
|
11482
|
-
const
|
|
11617
|
+
const label2 = vol.shared ? `docker boxes (shared volume): ${vol.boxNames.join(", ")}` : `${vol.boxNames.join(", ")} (isolated volume)`;
|
|
11483
11618
|
try {
|
|
11484
11619
|
const result = await propagateStagedSettings(
|
|
11485
|
-
volumeSettingsTarget(vol.volume, image,
|
|
11620
|
+
volumeSettingsTarget(vol.volume, image, label2),
|
|
11486
11621
|
staged
|
|
11487
11622
|
);
|
|
11488
|
-
process.stdout.write(` -> ${
|
|
11623
|
+
process.stdout.write(` -> ${label2}: ${summarize(result)}
|
|
11489
11624
|
`);
|
|
11490
11625
|
} catch (err) {
|
|
11491
|
-
log2.warn(` -> ${
|
|
11626
|
+
log2.warn(` -> ${label2}: failed \u2014 ${err instanceof Error ? err.message : String(err)}`);
|
|
11492
11627
|
}
|
|
11493
11628
|
}
|
|
11494
11629
|
for (const target of plan.cloudBoxes) {
|
|
@@ -12535,10 +12670,10 @@ function parseRowRange(raw) {
|
|
|
12535
12670
|
}
|
|
12536
12671
|
return { from: Number(m[1]), to: Number(m[2]) };
|
|
12537
12672
|
}
|
|
12538
|
-
function parsePositiveInt2(raw,
|
|
12673
|
+
function parsePositiveInt2(raw, label2) {
|
|
12539
12674
|
const n = Number.parseInt(raw, 10);
|
|
12540
12675
|
if (!Number.isFinite(n) || n <= 0 || String(n) !== raw.trim()) {
|
|
12541
|
-
throw new Error(`${
|
|
12676
|
+
throw new Error(`${label2} must be a positive integer (got: ${raw})`);
|
|
12542
12677
|
}
|
|
12543
12678
|
return n;
|
|
12544
12679
|
}
|
|
@@ -12570,20 +12705,12 @@ function resolveForkProvider(positional, flag) {
|
|
|
12570
12705
|
}
|
|
12571
12706
|
return provider || void 0;
|
|
12572
12707
|
}
|
|
12573
|
-
function detectAgentFromEnv(env = process.env) {
|
|
12574
|
-
if (env.CLAUDECODE === "1" || (env.CLAUDE_CODE_SESSION_ID ?? "").trim().length > 0) {
|
|
12575
|
-
return "claude";
|
|
12576
|
-
}
|
|
12577
|
-
if ((env.CODEX_THREAD_ID ?? "").trim().length > 0) return "codex";
|
|
12578
|
-
return void 0;
|
|
12579
|
-
}
|
|
12580
12708
|
function agentCommandFor(agent) {
|
|
12581
12709
|
const entry = agentCommandEntry(agent);
|
|
12582
12710
|
if (!entry) throw new Error(`fork: no command registered for agent '${agent}'`);
|
|
12583
12711
|
return entry.command;
|
|
12584
12712
|
}
|
|
12585
12713
|
var FORK_ATTACH_VALUES = ["window", "tab", "split", "background", "same"];
|
|
12586
|
-
var RECENT_SESSION_MS = 5 * 60 * 1e3;
|
|
12587
12714
|
function resolveSessionArgs(agent, opts) {
|
|
12588
12715
|
if (!resolveAgentSpec(agent).caps.resume) {
|
|
12589
12716
|
if (opts.session) {
|
|
@@ -12838,6 +12965,15 @@ async function checkGit() {
|
|
|
12838
12965
|
hint: "install git \u2014 required for the workspace git-bundle seed"
|
|
12839
12966
|
};
|
|
12840
12967
|
}
|
|
12968
|
+
async function checkGh() {
|
|
12969
|
+
const v = await probeVersion("gh");
|
|
12970
|
+
return v ? { label: "gh", status: "ok", detail: v } : {
|
|
12971
|
+
label: "gh",
|
|
12972
|
+
status: "warn",
|
|
12973
|
+
detail: "not found",
|
|
12974
|
+
hint: "optional: `brew install gh` \u2014 needed for PRs from a box (the built-in gh host tool)"
|
|
12975
|
+
};
|
|
12976
|
+
}
|
|
12841
12977
|
async function checkSsh() {
|
|
12842
12978
|
const v = await probeVersion("ssh", ["-V"]);
|
|
12843
12979
|
return v ? { label: "ssh", status: "ok", detail: v } : {
|
|
@@ -12868,14 +13004,25 @@ function checkMacfuse() {
|
|
|
12868
13004
|
hint: "optional: `brew install macfuse` \u2014 the FUSE backend `agentbox open` mounts through"
|
|
12869
13005
|
};
|
|
12870
13006
|
}
|
|
13007
|
+
async function checkTmux() {
|
|
13008
|
+
const v = await probeVersion("tmux", ["-V"]);
|
|
13009
|
+
return v ? { label: "tmux", status: "ok", detail: v } : {
|
|
13010
|
+
label: "tmux",
|
|
13011
|
+
status: "warn",
|
|
13012
|
+
detail: "not found",
|
|
13013
|
+
hint: "optional: `brew install tmux` \u2014 needed for `agentbox manager` (the workspace agent runs in a tmux session)"
|
|
13014
|
+
};
|
|
13015
|
+
}
|
|
12871
13016
|
async function runSystemChecks() {
|
|
12872
|
-
const [git2, ssh, sshfs, config] = await Promise.all([
|
|
13017
|
+
const [git2, gh, ssh, sshfs, tmux, config] = await Promise.all([
|
|
12873
13018
|
checkGit(),
|
|
13019
|
+
checkGh(),
|
|
12874
13020
|
checkSsh(),
|
|
12875
13021
|
checkSshfs(),
|
|
13022
|
+
checkTmux(),
|
|
12876
13023
|
checkConfig()
|
|
12877
13024
|
]);
|
|
12878
|
-
const results = [checkNode(), checkPlatform(), checkAgentboxHome(), git2, ssh, sshfs];
|
|
13025
|
+
const results = [checkNode(), checkPlatform(), checkAgentboxHome(), git2, gh, ssh, sshfs, tmux];
|
|
12879
13026
|
results.push(...await checkBoxesOnStaleRelayPort());
|
|
12880
13027
|
if (process.platform === "darwin") results.push(checkMacfuse());
|
|
12881
13028
|
results.push(...config);
|
|
@@ -13060,6 +13207,32 @@ function worstStatus(groups) {
|
|
|
13060
13207
|
}
|
|
13061
13208
|
return worst;
|
|
13062
13209
|
}
|
|
13210
|
+
async function buildDoctorReport(groups, probes = {
|
|
13211
|
+
engine: () => detectEngine(),
|
|
13212
|
+
portless: () => detectPortless(),
|
|
13213
|
+
service: () => portlessServiceStatus()
|
|
13214
|
+
}) {
|
|
13215
|
+
const noPortless = { installed: false, proxyRunning: false, version: void 0 };
|
|
13216
|
+
const [engine, state, service] = await Promise.all([
|
|
13217
|
+
probes.engine().catch(() => "other"),
|
|
13218
|
+
probes.portless().catch(() => noPortless),
|
|
13219
|
+
probes.service().catch(() => ({ installed: false, failing: false }))
|
|
13220
|
+
]);
|
|
13221
|
+
return {
|
|
13222
|
+
version: AGENTBOX_VERSION,
|
|
13223
|
+
platform: { os: process.platform, arch: process.arch },
|
|
13224
|
+
status: worstStatus(groups),
|
|
13225
|
+
groups,
|
|
13226
|
+
portless: {
|
|
13227
|
+
relevant: engine !== "orbstack",
|
|
13228
|
+
installed: state.installed,
|
|
13229
|
+
...state.version ? { version: state.version } : {},
|
|
13230
|
+
proxyRunning: state.proxyRunning,
|
|
13231
|
+
serviceInstalled: service.installed,
|
|
13232
|
+
serviceFailing: service.installed && service.failing === true
|
|
13233
|
+
}
|
|
13234
|
+
};
|
|
13235
|
+
}
|
|
13063
13236
|
function summaryToken(group) {
|
|
13064
13237
|
const worst = worstInResults(group.results);
|
|
13065
13238
|
if (group.title === "system") {
|
|
@@ -13799,9 +13972,9 @@ async function runProviderLogin(name) {
|
|
|
13799
13972
|
async function maybeSetDefaultProvider(name, autoYes) {
|
|
13800
13973
|
const cfg = await loadEffectiveConfig(process.cwd());
|
|
13801
13974
|
if (cfg.effective.box.provider === name) return true;
|
|
13802
|
-
const
|
|
13975
|
+
const label2 = providerMeta(name).label;
|
|
13803
13976
|
const wantDefault = autoYes ? true : await confirm({
|
|
13804
|
-
message: `Make ${
|
|
13977
|
+
message: `Make ${label2} the default for new boxes? (plain \`agentbox claude\` will use it)`,
|
|
13805
13978
|
initialValue: true
|
|
13806
13979
|
});
|
|
13807
13980
|
if (!wantDefault) {
|
|
@@ -13810,11 +13983,11 @@ async function maybeSetDefaultProvider(name, autoYes) {
|
|
|
13810
13983
|
}
|
|
13811
13984
|
try {
|
|
13812
13985
|
await setConfigValue("global", "box.provider", name, process.cwd(), { raw: true });
|
|
13813
|
-
log2.info(`${
|
|
13986
|
+
log2.info(`${label2} is now the default for new boxes`);
|
|
13814
13987
|
return true;
|
|
13815
13988
|
} catch (err) {
|
|
13816
13989
|
log2.warn(
|
|
13817
|
-
`could not set ${
|
|
13990
|
+
`could not set ${label2} as the default: ${err instanceof Error ? err.message : String(err)}`
|
|
13818
13991
|
);
|
|
13819
13992
|
return false;
|
|
13820
13993
|
}
|
|
@@ -14062,6 +14235,9 @@ var doctorCommand = new Command40("doctor").description(
|
|
|
14062
14235
|
).option(
|
|
14063
14236
|
"-p, --provider <name>",
|
|
14064
14237
|
"limit checks to one provider (docker | daytona | hetzner | vercel | e2b)"
|
|
14238
|
+
).option(
|
|
14239
|
+
"--json",
|
|
14240
|
+
"print the report as JSON ({ version, platform, status, groups, portless }) \u2014 what the menu-bar app reads"
|
|
14065
14241
|
).action(async (opts) => {
|
|
14066
14242
|
let groups;
|
|
14067
14243
|
if (opts.provider) {
|
|
@@ -14081,6 +14257,12 @@ var doctorCommand = new Command40("doctor").description(
|
|
|
14081
14257
|
} else {
|
|
14082
14258
|
groups = await runAllChecks();
|
|
14083
14259
|
}
|
|
14260
|
+
if (opts.json === true) {
|
|
14261
|
+
const report2 = await buildDoctorReport(groups);
|
|
14262
|
+
process.stdout.write(JSON.stringify(report2, null, 2) + "\n");
|
|
14263
|
+
if (report2.status === "fail") process.exit(1);
|
|
14264
|
+
return;
|
|
14265
|
+
}
|
|
14084
14266
|
process.stdout.write(formatDetailed(groups).join("\n") + "\n");
|
|
14085
14267
|
const controlBox = await renderControlBoxProviders().catch(() => []);
|
|
14086
14268
|
if (controlBox.length > 0) process.stdout.write(controlBox.join("\n") + "\n");
|
|
@@ -14116,7 +14298,7 @@ async function scopeFile(global) {
|
|
|
14116
14298
|
}
|
|
14117
14299
|
async function announceGrantChange(global) {
|
|
14118
14300
|
const { root } = await findProjectRoot(process.cwd());
|
|
14119
|
-
const { pushToolGrantChange, describeToolGrantPush } = await import("./tool-grant-push-
|
|
14301
|
+
const { pushToolGrantChange, describeToolGrantPush } = await import("./tool-grant-push-A2JYLJVF.js");
|
|
14120
14302
|
const summary2 = describeToolGrantPush(await pushToolGrantChange({ global, projectRoot: root }));
|
|
14121
14303
|
if (summary2) log27.info(summary2);
|
|
14122
14304
|
}
|
|
@@ -14421,10 +14603,10 @@ function boxLabel(box) {
|
|
|
14421
14603
|
import { supportsHyperlink } from "supports-hyperlinks";
|
|
14422
14604
|
var ESC2 = "\x1B";
|
|
14423
14605
|
var ST = `${ESC2}\\`;
|
|
14424
|
-
function hyperlink(
|
|
14606
|
+
function hyperlink(label2, url, stream, force = false) {
|
|
14425
14607
|
const out = stream ?? process.stdout;
|
|
14426
|
-
if (!force && !supportsHyperlink(out)) return
|
|
14427
|
-
return `${ESC2}]8;;${url}${ST}${
|
|
14608
|
+
if (!force && !supportsHyperlink(out)) return label2;
|
|
14609
|
+
return `${ESC2}]8;;${url}${ST}${label2}${ESC2}]8;;${ST}`;
|
|
14428
14610
|
}
|
|
14429
14611
|
|
|
14430
14612
|
// src/watch.ts
|
|
@@ -14546,8 +14728,8 @@ function urlCell(b, stream, hub) {
|
|
|
14546
14728
|
parts.push({ text: hyperlink(display, primaryHref ?? primary, stream), width: display.length });
|
|
14547
14729
|
}
|
|
14548
14730
|
if (vnc && vnc !== primary) {
|
|
14549
|
-
const
|
|
14550
|
-
parts.push({ text: hyperlink(
|
|
14731
|
+
const label2 = "(VNC)";
|
|
14732
|
+
parts.push({ text: hyperlink(label2, vnc, stream), width: label2.length });
|
|
14551
14733
|
}
|
|
14552
14734
|
if (parts.length === 0) return plain("");
|
|
14553
14735
|
const sep2 = " ";
|
|
@@ -14658,9 +14840,9 @@ function projectLabel(root) {
|
|
|
14658
14840
|
if (!root) return "other";
|
|
14659
14841
|
return root.split("/").filter(Boolean).pop() ?? root;
|
|
14660
14842
|
}
|
|
14661
|
-
function projectHeader(
|
|
14843
|
+
function projectHeader(label2, color, width) {
|
|
14662
14844
|
const max = Math.max(1, width - 6);
|
|
14663
|
-
const name =
|
|
14845
|
+
const name = label2.length > max ? label2.slice(0, Math.max(1, max - 1)) + "\u2026" : label2;
|
|
14664
14846
|
const h = `\u2500\u2500 ${name} \u2500\u2500`;
|
|
14665
14847
|
return color ? colorize(h, "dim") : h;
|
|
14666
14848
|
}
|
|
@@ -15942,10 +16124,10 @@ async function pollUntil(deadline, probe) {
|
|
|
15942
16124
|
function sleep4(ms) {
|
|
15943
16125
|
return new Promise((r) => setTimeout(r, ms));
|
|
15944
16126
|
}
|
|
15945
|
-
function parsePositiveInt3(raw,
|
|
16127
|
+
function parsePositiveInt3(raw, label2) {
|
|
15946
16128
|
const n = Number.parseInt(raw, 10);
|
|
15947
16129
|
if (!Number.isFinite(n) || n <= 0 || String(n) !== raw.trim()) {
|
|
15948
|
-
throw new Error(`${
|
|
16130
|
+
throw new Error(`${label2} must be a positive integer (got: ${raw})`);
|
|
15949
16131
|
}
|
|
15950
16132
|
return n;
|
|
15951
16133
|
}
|
|
@@ -15967,8 +16149,815 @@ function formatAge(iso) {
|
|
|
15967
16149
|
return `${String(d)}d`;
|
|
15968
16150
|
}
|
|
15969
16151
|
|
|
15970
|
-
// src/commands/
|
|
16152
|
+
// src/commands/workspace.ts
|
|
16153
|
+
import { resolve as resolve7 } from "path";
|
|
15971
16154
|
import { Command as Command51 } from "commander";
|
|
16155
|
+
|
|
16156
|
+
// src/lib/workspace-ref.ts
|
|
16157
|
+
var WorkspaceRefError = class extends Error {
|
|
16158
|
+
};
|
|
16159
|
+
function pickWorkspace(workspaces, opts) {
|
|
16160
|
+
const explicit = opts.ref ?? opts.env;
|
|
16161
|
+
if (explicit) {
|
|
16162
|
+
const byId = workspaces.find((w) => w.id === explicit);
|
|
16163
|
+
if (byId) return byId;
|
|
16164
|
+
const normalized = explicit.length > 1 && explicit.endsWith("/") ? explicit.slice(0, -1) : explicit;
|
|
16165
|
+
const byRoot = workspaces.find((w) => w.root === normalized);
|
|
16166
|
+
if (byRoot) return byRoot;
|
|
16167
|
+
const byName = workspaces.filter((w) => w.name === explicit);
|
|
16168
|
+
if (byName.length === 1) return byName[0];
|
|
16169
|
+
return null;
|
|
16170
|
+
}
|
|
16171
|
+
return findWorkspaceContaining(workspaces, opts.cwd);
|
|
16172
|
+
}
|
|
16173
|
+
async function resolveWorkspace(client, ref) {
|
|
16174
|
+
return (await resolveWorkspaceAndManager(client, ref)).workspace;
|
|
16175
|
+
}
|
|
16176
|
+
async function resolveWorkspaceAndManager(client, ref, opts = {}, deps = {}) {
|
|
16177
|
+
const workspaces = await client.listWorkspaces();
|
|
16178
|
+
const env = (deps.env ?? process.env)["AGENTBOX_WORKSPACE"];
|
|
16179
|
+
const cwd = deps.cwd ?? process.cwd();
|
|
16180
|
+
const explicit = ref ?? env;
|
|
16181
|
+
const picked = pickWorkspace(workspaces, {
|
|
16182
|
+
...ref ? { ref } : {},
|
|
16183
|
+
...env ? { env } : {},
|
|
16184
|
+
cwd
|
|
16185
|
+
});
|
|
16186
|
+
if (!picked && explicit) {
|
|
16187
|
+
throw new WorkspaceRefError(
|
|
16188
|
+
`no workspace matches "${explicit}". List them with \`agentbox workspace list\`.`
|
|
16189
|
+
);
|
|
16190
|
+
}
|
|
16191
|
+
let hint = !picked || opts.register ? (deps.detect ?? detectHostSession)() : void 0;
|
|
16192
|
+
if (hint && picked && explicit && findWorkspaceContaining(workspaces, hint.cwd)?.id !== picked.id) {
|
|
16193
|
+
hint = void 0;
|
|
16194
|
+
}
|
|
16195
|
+
if (hint) {
|
|
16196
|
+
const registered = await registerHostManager(client, hint);
|
|
16197
|
+
if (registered && !picked) {
|
|
16198
|
+
return { workspace: registered.workspace, managerId: registered.managerId };
|
|
16199
|
+
}
|
|
16200
|
+
if (registered && registered.workspace.id === picked?.id) {
|
|
16201
|
+
return { workspace: picked, managerId: registered.managerId };
|
|
16202
|
+
}
|
|
16203
|
+
}
|
|
16204
|
+
if (picked) return { workspace: picked };
|
|
16205
|
+
if (workspaces.length === 0) {
|
|
16206
|
+
throw new WorkspaceRefError(
|
|
16207
|
+
"no workspaces registered on this hub. Register one with `agentbox workspace add <path>`."
|
|
16208
|
+
);
|
|
16209
|
+
}
|
|
16210
|
+
throw new WorkspaceRefError(
|
|
16211
|
+
`no registered workspace contains ${cwd}. Pass --workspace <id|path>, or register this folder with \`agentbox workspace add\`.`
|
|
16212
|
+
);
|
|
16213
|
+
}
|
|
16214
|
+
|
|
16215
|
+
// src/lib/text-table.ts
|
|
16216
|
+
function renderTable2(headers, rows) {
|
|
16217
|
+
const widths = headers.map((h, i) => Math.max(h.length, ...rows.map((r) => (r[i] ?? "").length)));
|
|
16218
|
+
const pad3 = (s, w) => s + " ".repeat(Math.max(0, w - s.length));
|
|
16219
|
+
const line = (cells) => cells.map((c, i) => pad3(c, widths[i])).join(" ").trimEnd() + "\n";
|
|
16220
|
+
process.stdout.write(line(headers));
|
|
16221
|
+
process.stdout.write(widths.map((w) => "-".repeat(w)).join(" ") + "\n");
|
|
16222
|
+
for (const r of rows) process.stdout.write(line(r));
|
|
16223
|
+
}
|
|
16224
|
+
|
|
16225
|
+
// src/commands/workspace.ts
|
|
16226
|
+
async function mustResolve(client, ref) {
|
|
16227
|
+
try {
|
|
16228
|
+
return await resolveWorkspace(client, ref);
|
|
16229
|
+
} catch (err) {
|
|
16230
|
+
if (err instanceof WorkspaceRefError) {
|
|
16231
|
+
log2.error(err.message);
|
|
16232
|
+
process.exit(2);
|
|
16233
|
+
}
|
|
16234
|
+
throw err;
|
|
16235
|
+
}
|
|
16236
|
+
}
|
|
16237
|
+
function printWorkspace(ws) {
|
|
16238
|
+
log2.info(`${ws.name} (${ws.id})`);
|
|
16239
|
+
process.stdout.write(` root ${ws.root}
|
|
16240
|
+
`);
|
|
16241
|
+
process.stdout.write(` projects ${String(ws.projectIds.length)}
|
|
16242
|
+
`);
|
|
16243
|
+
if (ws.taskCounts) {
|
|
16244
|
+
process.stdout.write(
|
|
16245
|
+
` tasks ${String(ws.taskCounts.open)} open, ${String(ws.taskCounts.done)} done
|
|
16246
|
+
`
|
|
16247
|
+
);
|
|
16248
|
+
}
|
|
16249
|
+
if (ws.managers) {
|
|
16250
|
+
process.stdout.write(
|
|
16251
|
+
` managers ${String(ws.managers.running)} running, ${String(ws.managers.total)} total
|
|
16252
|
+
`
|
|
16253
|
+
);
|
|
16254
|
+
}
|
|
16255
|
+
}
|
|
16256
|
+
var addCommand = new Command51("add").description("Register a folder as a workspace and discover the projects in it").argument("[path]", "folder to register (default: the current directory)").option("--name <name>", "display name (default: the folder basename)").option("-j, --json", "print the workspace as JSON").action(async (path, opts) => {
|
|
16257
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16258
|
+
const ws = await client.addWorkspace({
|
|
16259
|
+
path: resolve7(path ?? process.cwd()),
|
|
16260
|
+
...opts.name ? { name: opts.name } : {}
|
|
16261
|
+
});
|
|
16262
|
+
if (opts.json) {
|
|
16263
|
+
process.stdout.write(JSON.stringify(ws, null, 2) + "\n");
|
|
16264
|
+
return;
|
|
16265
|
+
}
|
|
16266
|
+
printWorkspace(ws);
|
|
16267
|
+
if (ws.projectIds.length === 0) {
|
|
16268
|
+
log2.warn("no projects found in this folder (looked for .git or agentbox.yaml, depth 1)");
|
|
16269
|
+
}
|
|
16270
|
+
});
|
|
16271
|
+
});
|
|
16272
|
+
var listCommand3 = new Command51("list").alias("ls").description("List registered workspaces").option("-j, --json", "print the listing as JSON").action(async (opts) => {
|
|
16273
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16274
|
+
const workspaces = await client.listWorkspaces();
|
|
16275
|
+
if (opts.json) {
|
|
16276
|
+
process.stdout.write(JSON.stringify(workspaces, null, 2) + "\n");
|
|
16277
|
+
return;
|
|
16278
|
+
}
|
|
16279
|
+
if (workspaces.length === 0) {
|
|
16280
|
+
log2.info("no workspaces yet. Register one with `agentbox workspace add <path>`.");
|
|
16281
|
+
return;
|
|
16282
|
+
}
|
|
16283
|
+
renderTable2(
|
|
16284
|
+
["id", "name", "projects", "tasks", "managers", "root"],
|
|
16285
|
+
workspaces.map((w) => [
|
|
16286
|
+
w.id,
|
|
16287
|
+
w.name,
|
|
16288
|
+
String(w.projectIds.length),
|
|
16289
|
+
w.taskCounts ? `${String(w.taskCounts.open)}/${String(w.taskCounts.open + w.taskCounts.done)}` : "-",
|
|
16290
|
+
w.managers ? `${String(w.managers.running)}/${String(w.managers.total)}` : "-",
|
|
16291
|
+
w.root
|
|
16292
|
+
])
|
|
16293
|
+
);
|
|
16294
|
+
});
|
|
16295
|
+
});
|
|
16296
|
+
var showCommand = new Command51("show").description("Show one workspace").argument("[workspace]", "workspace id or path (default: the one containing the cwd)").option("-j, --json", "print the workspace as JSON").action(async (ref, opts) => {
|
|
16297
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16298
|
+
const ws = await mustResolve(client, ref);
|
|
16299
|
+
if (opts.json) {
|
|
16300
|
+
process.stdout.write(JSON.stringify(ws, null, 2) + "\n");
|
|
16301
|
+
return;
|
|
16302
|
+
}
|
|
16303
|
+
printWorkspace(ws);
|
|
16304
|
+
});
|
|
16305
|
+
});
|
|
16306
|
+
var rescanCommand = new Command51("rescan").description("Re-discover the projects in a workspace folder").argument("[workspace]", "workspace id or path (default: the one containing the cwd)").action(async (ref) => {
|
|
16307
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16308
|
+
const ws = await mustResolve(client, ref);
|
|
16309
|
+
printWorkspace(await client.rescanWorkspace(ws.id));
|
|
16310
|
+
});
|
|
16311
|
+
});
|
|
16312
|
+
var renameCommand = new Command51("rename").description("Rename a workspace").argument("<name>", "new display name").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").action(async (name, opts) => {
|
|
16313
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16314
|
+
const ws = await mustResolve(client, opts.workspace);
|
|
16315
|
+
printWorkspace(await client.renameWorkspace(ws.id, name));
|
|
16316
|
+
});
|
|
16317
|
+
});
|
|
16318
|
+
var removeCommand = new Command51("remove").alias("rm").description("Unregister a workspace (the folder and its boxes are untouched)").argument("[workspace]", "workspace id or path (default: the one containing the cwd)").option("-y, --yes", "skip the confirmation").option("--force", "remove it even while one of its managers reads as running").action(async (ref, opts) => {
|
|
16319
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16320
|
+
const ws = await mustResolve(client, ref);
|
|
16321
|
+
if (!opts.yes) {
|
|
16322
|
+
const open = ws.taskCounts?.open ?? 0;
|
|
16323
|
+
const answer = await confirm({
|
|
16324
|
+
message: `Unregister ${ws.name}${open > 0 ? ` and drop its ${String(open)} open task(s)` : ""}?`,
|
|
16325
|
+
initialValue: false
|
|
16326
|
+
});
|
|
16327
|
+
if (isCancel3(answer) || !answer) {
|
|
16328
|
+
log2.info("cancelled.");
|
|
16329
|
+
return;
|
|
16330
|
+
}
|
|
16331
|
+
}
|
|
16332
|
+
await client.removeWorkspace(ws.id, { force: Boolean(opts.force) });
|
|
16333
|
+
log2.success(`unregistered ${ws.name}`);
|
|
16334
|
+
});
|
|
16335
|
+
});
|
|
16336
|
+
var workspaceCommand = new Command51("workspace").alias("ws").description("Workspaces: a folder grouping projects, with its own task list and manager").addCommand(addCommand).addCommand(listCommand3).addCommand(showCommand).addCommand(rescanCommand).addCommand(renameCommand).addCommand(removeCommand);
|
|
16337
|
+
|
|
16338
|
+
// src/commands/tasks.ts
|
|
16339
|
+
import { Command as Command52 } from "commander";
|
|
16340
|
+
var STATUSES = ["todo", "in_progress", "blocked", "done"];
|
|
16341
|
+
async function mustResolve2(client, ref) {
|
|
16342
|
+
return (await mustResolveWith(() => resolveWorkspace(client, ref).then((workspace) => ({ workspace })))).workspace;
|
|
16343
|
+
}
|
|
16344
|
+
async function mustResolveWith(fn) {
|
|
16345
|
+
try {
|
|
16346
|
+
return await fn();
|
|
16347
|
+
} catch (err) {
|
|
16348
|
+
if (err instanceof WorkspaceRefError) {
|
|
16349
|
+
log2.error(err.message);
|
|
16350
|
+
process.exit(2);
|
|
16351
|
+
}
|
|
16352
|
+
throw err;
|
|
16353
|
+
}
|
|
16354
|
+
}
|
|
16355
|
+
function mustStatus(value) {
|
|
16356
|
+
if (value === void 0) return void 0;
|
|
16357
|
+
if (!STATUSES.includes(value)) {
|
|
16358
|
+
log2.error(`unknown status "${value}" (expected ${STATUSES.join(", ")})`);
|
|
16359
|
+
process.exit(4);
|
|
16360
|
+
}
|
|
16361
|
+
return value;
|
|
16362
|
+
}
|
|
16363
|
+
function mustIds(raw) {
|
|
16364
|
+
try {
|
|
16365
|
+
return parseTaskIds(raw.join(","));
|
|
16366
|
+
} catch (err) {
|
|
16367
|
+
if (err instanceof TaskIdError) {
|
|
16368
|
+
log2.error(err.message);
|
|
16369
|
+
process.exit(4);
|
|
16370
|
+
}
|
|
16371
|
+
throw err;
|
|
16372
|
+
}
|
|
16373
|
+
}
|
|
16374
|
+
function whereOf(t) {
|
|
16375
|
+
if (t.boxId) return t.boxId;
|
|
16376
|
+
if (t.boxJobId) return `job:${t.boxJobId}`;
|
|
16377
|
+
return "backlog";
|
|
16378
|
+
}
|
|
16379
|
+
function taskRows(tasks) {
|
|
16380
|
+
return tasks.map((t) => [t.id, t.status, t.title, whereOf(t), t.projectId ?? "-"]);
|
|
16381
|
+
}
|
|
16382
|
+
function renderByBox(tasks) {
|
|
16383
|
+
const groups = /* @__PURE__ */ new Map();
|
|
16384
|
+
for (const t of tasks) {
|
|
16385
|
+
const key = whereOf(t);
|
|
16386
|
+
const list = groups.get(key);
|
|
16387
|
+
if (list) list.push(t);
|
|
16388
|
+
else groups.set(key, [t]);
|
|
16389
|
+
}
|
|
16390
|
+
const backlog = groups.get("backlog");
|
|
16391
|
+
groups.delete("backlog");
|
|
16392
|
+
for (const [box, list] of groups) {
|
|
16393
|
+
const done = list.filter((t) => t.status === "done").length;
|
|
16394
|
+
process.stdout.write(`
|
|
16395
|
+
${box} (${String(done)} / ${String(list.length)})
|
|
16396
|
+
`);
|
|
16397
|
+
renderTable2(
|
|
16398
|
+
["id", "status", "title", "project"],
|
|
16399
|
+
list.map((t) => [t.id, t.status, t.title, t.projectId ?? "-"])
|
|
16400
|
+
);
|
|
16401
|
+
}
|
|
16402
|
+
if (backlog?.length) {
|
|
16403
|
+
process.stdout.write("\nBacklog\n");
|
|
16404
|
+
renderTable2(
|
|
16405
|
+
["id", "status", "title", "project"],
|
|
16406
|
+
backlog.map((t) => [t.id, t.status, t.title, t.projectId ?? "-"])
|
|
16407
|
+
);
|
|
16408
|
+
}
|
|
16409
|
+
}
|
|
16410
|
+
var addCommand2 = new Command52("add").description("Add a task to the workspace backlog").argument("<title...>", "what the task is").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-d, --description <text>", "longer description").option("-p, --project <id>", "scope the task to one project").option("--depends-on <ids>", "comma-separated task ids this one waits on").option("--box <id>", "assign it to a box right away").option("--by-manager", "record the manager agent as the author (default: human)").option("--no-manager", "do not attach the task to the current agent session").option("--note <text>", "why: recorded on the workspace timeline next to the task").option("-j, --json", "print the task as JSON").action(
|
|
16411
|
+
async (title, opts) => {
|
|
16412
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16413
|
+
const { workspace: ws, managerId } = await mustResolveWith(
|
|
16414
|
+
() => resolveWorkspaceAndManager(client, opts.workspace, { register: opts.manager !== false })
|
|
16415
|
+
);
|
|
16416
|
+
const task = await client.addTask(ws.id, {
|
|
16417
|
+
...managerId && opts.manager !== false ? { managerId } : {},
|
|
16418
|
+
title: title.join(" "),
|
|
16419
|
+
...opts.description ? { description: opts.description } : {},
|
|
16420
|
+
...opts.project ? { projectId: opts.project } : {},
|
|
16421
|
+
...opts.dependsOn ? { dependsOn: mustIds([opts.dependsOn]) } : {},
|
|
16422
|
+
...opts.box ? { boxId: opts.box } : {},
|
|
16423
|
+
...opts.byManager ? { createdBy: "manager" } : {},
|
|
16424
|
+
...opts.note ? { note: opts.note } : {}
|
|
16425
|
+
});
|
|
16426
|
+
if (opts.json) process.stdout.write(JSON.stringify(task, null, 2) + "\n");
|
|
16427
|
+
else log2.success(`${task.id} ${task.title}`);
|
|
16428
|
+
});
|
|
16429
|
+
}
|
|
16430
|
+
);
|
|
16431
|
+
var listCommand4 = new Command52("list").alias("ls").description("List the workspace tasks in priority order").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-p, --project <id>", "only tasks scoped to this project").option("--box <id>", "only tasks assigned to this box").option("--status <status>", `only this status (${STATUSES.join(" | ")})`).option("--manager <id>", "only tasks belonging to this manager").option("--mine", "only tasks belonging to the agent session running this command").option("-a, --all", "include done tasks (hidden by default)").option("--by-box", "group by box, the way the manager plans them").option("-j, --json", "print the listing as JSON").action(
|
|
16432
|
+
async (opts) => {
|
|
16433
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16434
|
+
const ws = await mustResolve2(client, opts.workspace);
|
|
16435
|
+
const status = mustStatus(opts.status);
|
|
16436
|
+
let managerId = opts.manager;
|
|
16437
|
+
if (opts.mine) {
|
|
16438
|
+
const hint = detectHostSession();
|
|
16439
|
+
if (!hint) {
|
|
16440
|
+
log2.error("--mine needs to run inside a claude or codex session");
|
|
16441
|
+
process.exit(2);
|
|
16442
|
+
}
|
|
16443
|
+
const mine = (await client.listManagers()).find(
|
|
16444
|
+
(m) => m.agent === hint.agent && m.sessionId === hint.sessionId
|
|
16445
|
+
);
|
|
16446
|
+
if (!mine) {
|
|
16447
|
+
log2.info("this session is not registered as a manager yet, so it has no tasks.");
|
|
16448
|
+
return;
|
|
16449
|
+
}
|
|
16450
|
+
managerId = mine.id;
|
|
16451
|
+
}
|
|
16452
|
+
const all = await client.listTasks(ws.id, {
|
|
16453
|
+
...managerId ? { managerId } : {},
|
|
16454
|
+
...opts.project ? { projectId: opts.project } : {},
|
|
16455
|
+
...opts.box ? { boxId: opts.box } : {},
|
|
16456
|
+
...status ? { status } : {}
|
|
16457
|
+
});
|
|
16458
|
+
const tasks = opts.all || status === "done" ? all : all.filter((t) => t.status !== "done");
|
|
16459
|
+
if (opts.json) {
|
|
16460
|
+
process.stdout.write(JSON.stringify(tasks, null, 2) + "\n");
|
|
16461
|
+
return;
|
|
16462
|
+
}
|
|
16463
|
+
if (tasks.length === 0) {
|
|
16464
|
+
log2.info(opts.all ? "no tasks yet." : "no open tasks (-a to include done).");
|
|
16465
|
+
return;
|
|
16466
|
+
}
|
|
16467
|
+
if (opts.byBox) renderByBox(tasks);
|
|
16468
|
+
else renderTable2(["id", "status", "title", "where", "project"], taskRows(tasks));
|
|
16469
|
+
});
|
|
16470
|
+
}
|
|
16471
|
+
);
|
|
16472
|
+
var showCommand2 = new Command52("show").description("Show one task").argument("<id>", "task id (e.g. T-11)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-j, --json", "print the task as JSON").action(async (id, opts) => {
|
|
16473
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16474
|
+
const ws = await mustResolve2(client, opts.workspace);
|
|
16475
|
+
const task = await client.getTask(ws.id, mustIds([id])[0]);
|
|
16476
|
+
if (opts.json) {
|
|
16477
|
+
process.stdout.write(JSON.stringify(task, null, 2) + "\n");
|
|
16478
|
+
return;
|
|
16479
|
+
}
|
|
16480
|
+
log2.info(`${task.id} ${task.title}`);
|
|
16481
|
+
process.stdout.write(` status ${task.status}
|
|
16482
|
+
`);
|
|
16483
|
+
process.stdout.write(` where ${whereOf(task)}
|
|
16484
|
+
`);
|
|
16485
|
+
process.stdout.write(` project ${task.projectId ?? "-"}
|
|
16486
|
+
`);
|
|
16487
|
+
if (task.managerId) process.stdout.write(` manager ${task.managerId}
|
|
16488
|
+
`);
|
|
16489
|
+
if (task.dependsOn?.length) process.stdout.write(` after ${task.dependsOn.join(", ")}
|
|
16490
|
+
`);
|
|
16491
|
+
if (task.description) process.stdout.write(`
|
|
16492
|
+
${task.description}
|
|
16493
|
+
`);
|
|
16494
|
+
});
|
|
16495
|
+
});
|
|
16496
|
+
var updateCommand = new Command52("update").alias("edit").description("Update a task").argument("<id>", "task id (e.g. T-11)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--title <title>", "new title").option("-d, --description <text>", "new description").option("--status <status>", `new status (${STATUSES.join(" | ")})`).option("-p, --project <id>", "scope the task to this project").option("--no-project", "clear the project scope").option("--depends-on <ids>", 'comma-separated task ids this one waits on ("" clears)').option("--note <text>", "why: recorded on the workspace timeline next to the change").option("-j, --json", "print the task as JSON").action(
|
|
16497
|
+
async (id, opts) => {
|
|
16498
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16499
|
+
const ws = await mustResolve2(client, opts.workspace);
|
|
16500
|
+
const status = mustStatus(opts.status);
|
|
16501
|
+
const clearProject = opts.project === false;
|
|
16502
|
+
const body = {
|
|
16503
|
+
...opts.title ? { title: opts.title } : {},
|
|
16504
|
+
...opts.description !== void 0 ? { description: opts.description } : {},
|
|
16505
|
+
...status ? { status } : {},
|
|
16506
|
+
...clearProject ? { projectId: null } : {},
|
|
16507
|
+
...typeof opts.project === "string" ? { projectId: opts.project } : {},
|
|
16508
|
+
...opts.dependsOn !== void 0 ? { dependsOn: opts.dependsOn === "" ? [] : mustIds([opts.dependsOn]) } : {}
|
|
16509
|
+
};
|
|
16510
|
+
if (Object.keys(body).length === 0) {
|
|
16511
|
+
log2.error(
|
|
16512
|
+
"nothing to update \u2014 pass at least one of --title, --description, --status, --project, --depends-on"
|
|
16513
|
+
);
|
|
16514
|
+
process.exit(4);
|
|
16515
|
+
}
|
|
16516
|
+
const task = await client.updateTask(ws.id, mustIds([id])[0], {
|
|
16517
|
+
...body,
|
|
16518
|
+
...opts.note ? { note: opts.note } : {}
|
|
16519
|
+
});
|
|
16520
|
+
if (opts.json) process.stdout.write(JSON.stringify(task, null, 2) + "\n");
|
|
16521
|
+
else log2.success(`${task.id} ${task.status} ${task.title}`);
|
|
16522
|
+
});
|
|
16523
|
+
}
|
|
16524
|
+
);
|
|
16525
|
+
var doneCommand = new Command52("done").description("Mark tasks finished").argument("<ids...>", "task ids (e.g. T-11 T-12)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").action(async (ids, opts) => {
|
|
16526
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16527
|
+
const ws = await mustResolve2(client, opts.workspace);
|
|
16528
|
+
for (const id of mustIds(ids)) {
|
|
16529
|
+
const task = await client.completeTask(ws.id, id);
|
|
16530
|
+
log2.success(`${task.id} done`);
|
|
16531
|
+
}
|
|
16532
|
+
});
|
|
16533
|
+
});
|
|
16534
|
+
var assignCommand = new Command52("assign").description("Assign tasks to a box (or, with --box none, return them to the backlog)").argument("<ids...>", "task ids (e.g. T-11 T-12)").requiredOption("--box <id>", 'box id, or "none" to unassign').option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--note <text>", "why: recorded on the workspace timeline next to the assignment").action(async (ids, opts) => {
|
|
16535
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16536
|
+
const ws = await mustResolve2(client, opts.workspace);
|
|
16537
|
+
const taskIds = mustIds(ids);
|
|
16538
|
+
if (opts.box === "none") {
|
|
16539
|
+
if (opts.note) log2.warn("--note is not recorded when unassigning");
|
|
16540
|
+
for (const id of taskIds) await client.unassignTask(ws.id, id);
|
|
16541
|
+
log2.success(`${taskIds.join(", ")} back in the backlog`);
|
|
16542
|
+
return;
|
|
16543
|
+
}
|
|
16544
|
+
await client.assignTasks(
|
|
16545
|
+
ws.id,
|
|
16546
|
+
taskIds,
|
|
16547
|
+
{ boxId: opts.box },
|
|
16548
|
+
opts.note ? { note: opts.note } : {}
|
|
16549
|
+
);
|
|
16550
|
+
log2.success(`${taskIds.join(", ")} -> ${opts.box}`);
|
|
16551
|
+
});
|
|
16552
|
+
});
|
|
16553
|
+
var reorderCommand = new Command52("reorder").description("Set the whole priority order (list every task id)").argument("<ids...>", "every task id, in the order you want").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--note <text>", "why the order changed: recorded on the workspace timeline").action(async (ids, opts) => {
|
|
16554
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16555
|
+
const ws = await mustResolve2(client, opts.workspace);
|
|
16556
|
+
const tasks = await client.reorderTasks(
|
|
16557
|
+
ws.id,
|
|
16558
|
+
mustIds(ids),
|
|
16559
|
+
opts.note ? { note: opts.note } : {}
|
|
16560
|
+
);
|
|
16561
|
+
renderTable2(["id", "status", "title", "where", "project"], taskRows(tasks));
|
|
16562
|
+
});
|
|
16563
|
+
});
|
|
16564
|
+
var removeCommand2 = new Command52("remove").alias("rm").description("Delete tasks").argument("<ids...>", "task ids (e.g. T-11 T-12)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-y, --yes", "skip the confirmation").action(async (ids, opts) => {
|
|
16565
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16566
|
+
const ws = await mustResolve2(client, opts.workspace);
|
|
16567
|
+
const taskIds = mustIds(ids);
|
|
16568
|
+
if (!opts.yes) {
|
|
16569
|
+
const answer = await confirm({
|
|
16570
|
+
message: `Delete ${taskIds.join(", ")} from ${ws.name}?`,
|
|
16571
|
+
initialValue: false
|
|
16572
|
+
});
|
|
16573
|
+
if (isCancel3(answer) || !answer) {
|
|
16574
|
+
log2.info("cancelled.");
|
|
16575
|
+
return;
|
|
16576
|
+
}
|
|
16577
|
+
}
|
|
16578
|
+
for (const id of taskIds) await client.removeTask(ws.id, id);
|
|
16579
|
+
log2.success(`deleted ${taskIds.join(", ")}`);
|
|
16580
|
+
});
|
|
16581
|
+
});
|
|
16582
|
+
var tasksCommand = new Command52("tasks").alias("task").description("Workspace tasks: the units of work a manager groups into boxes").addCommand(addCommand2).addCommand(listCommand4).addCommand(showCommand2).addCommand(updateCommand).addCommand(doneCommand).addCommand(assignCommand).addCommand(reorderCommand).addCommand(removeCommand2);
|
|
16583
|
+
|
|
16584
|
+
// src/commands/manager.ts
|
|
16585
|
+
import { spawnSync as spawnSync5 } from "child_process";
|
|
16586
|
+
import { Command as Command53 } from "commander";
|
|
16587
|
+
function managerAgents() {
|
|
16588
|
+
return visibleAgentSpecs().filter((spec) => spec.caps?.surface !== "service").map((spec) => spec.id);
|
|
16589
|
+
}
|
|
16590
|
+
var ManagerRefError = class extends Error {
|
|
16591
|
+
};
|
|
16592
|
+
async function mustResolve3(client, ref) {
|
|
16593
|
+
try {
|
|
16594
|
+
return await resolveWorkspace(client, ref);
|
|
16595
|
+
} catch (err) {
|
|
16596
|
+
if (err instanceof WorkspaceRefError) {
|
|
16597
|
+
log2.error(err.message);
|
|
16598
|
+
process.exit(2);
|
|
16599
|
+
}
|
|
16600
|
+
throw err;
|
|
16601
|
+
}
|
|
16602
|
+
}
|
|
16603
|
+
function pickManager(managers, ref) {
|
|
16604
|
+
const exact = managers.find((m) => m.id === ref);
|
|
16605
|
+
if (exact) return exact;
|
|
16606
|
+
const byPrefix = ref.length >= 4 ? managers.filter((m) => m.id.startsWith(ref)) : [];
|
|
16607
|
+
if (byPrefix.length === 1) return byPrefix[0];
|
|
16608
|
+
if (byPrefix.length > 1) {
|
|
16609
|
+
throw new ManagerRefError(
|
|
16610
|
+
`"${ref}" matches ${String(byPrefix.length)} managers; use more of the id`
|
|
16611
|
+
);
|
|
16612
|
+
}
|
|
16613
|
+
throw new ManagerRefError(
|
|
16614
|
+
`no manager matches "${ref}". List them with \`agentbox manager list\`.`
|
|
16615
|
+
);
|
|
16616
|
+
}
|
|
16617
|
+
async function mustManager(client, ref) {
|
|
16618
|
+
try {
|
|
16619
|
+
return pickManager(await client.listManagers(), ref);
|
|
16620
|
+
} catch (err) {
|
|
16621
|
+
if (err instanceof ManagerRefError) {
|
|
16622
|
+
log2.error(err.message);
|
|
16623
|
+
process.exit(2);
|
|
16624
|
+
}
|
|
16625
|
+
throw err;
|
|
16626
|
+
}
|
|
16627
|
+
}
|
|
16628
|
+
async function currentManager(client) {
|
|
16629
|
+
const hint = detectHostSession();
|
|
16630
|
+
if (!hint) return void 0;
|
|
16631
|
+
return (await client.listManagers()).find(
|
|
16632
|
+
(m) => m.agent === hint.agent && m.sessionId === hint.sessionId
|
|
16633
|
+
);
|
|
16634
|
+
}
|
|
16635
|
+
function label(m) {
|
|
16636
|
+
return m.title ?? (m.sessionId ? m.sessionId.slice(0, 8) : "(new session)");
|
|
16637
|
+
}
|
|
16638
|
+
function printManager(m) {
|
|
16639
|
+
log2.info(
|
|
16640
|
+
`manager ${m.id}: ${m.status} (${m.agent}, ${m.kind === "hub" ? "hub-run" : "external"})`
|
|
16641
|
+
);
|
|
16642
|
+
process.stdout.write(` workspace ${m.workspaceName}
|
|
16643
|
+
`);
|
|
16644
|
+
process.stdout.write(` folder ${m.cwd}
|
|
16645
|
+
`);
|
|
16646
|
+
if (m.title) process.stdout.write(` title ${m.title}
|
|
16647
|
+
`);
|
|
16648
|
+
if (m.sessionId) process.stdout.write(` session ${m.sessionId}
|
|
16649
|
+
`);
|
|
16650
|
+
if (m.pid !== void 0)
|
|
16651
|
+
process.stdout.write(` pid ${String(m.pid)}${m.host ? ` on ${m.host}` : ""}
|
|
16652
|
+
`);
|
|
16653
|
+
process.stdout.write(` boxes ${String(m.boxIds.length + m.boxJobIds.length)}
|
|
16654
|
+
`);
|
|
16655
|
+
process.stdout.write(
|
|
16656
|
+
` tasks ${String(m.taskCounts.open)} open, ${String(m.taskCounts.done)} done
|
|
16657
|
+
`
|
|
16658
|
+
);
|
|
16659
|
+
process.stdout.write(` seen ${ago(m.lastSeenAt)}
|
|
16660
|
+
`);
|
|
16661
|
+
if (m.status === "stopped" && m.lastExit !== void 0) {
|
|
16662
|
+
process.stdout.write(` exited ${String(m.lastExit)}
|
|
16663
|
+
`);
|
|
16664
|
+
}
|
|
16665
|
+
if (m.attachCommand) process.stdout.write(` attach ${m.attachCommand}
|
|
16666
|
+
`);
|
|
16667
|
+
}
|
|
16668
|
+
function renderManagers(managers) {
|
|
16669
|
+
renderTable2(
|
|
16670
|
+
["id", "status", "kind", "agent", "workspace", "boxes", "tasks", "session"],
|
|
16671
|
+
managers.map((m) => [
|
|
16672
|
+
m.id,
|
|
16673
|
+
m.status,
|
|
16674
|
+
m.kind,
|
|
16675
|
+
m.agent,
|
|
16676
|
+
m.workspaceName,
|
|
16677
|
+
String(m.boxIds.length + m.boxJobIds.length),
|
|
16678
|
+
`${String(m.taskCounts.open)}/${String(m.taskCounts.open + m.taskCounts.done)}`,
|
|
16679
|
+
label(m)
|
|
16680
|
+
])
|
|
16681
|
+
);
|
|
16682
|
+
}
|
|
16683
|
+
function ago(iso) {
|
|
16684
|
+
const mins = Math.max(0, Math.round((Date.now() - Date.parse(iso)) / 6e4));
|
|
16685
|
+
if (mins < 60) return `${String(mins)}m ago`;
|
|
16686
|
+
const hours = Math.round(mins / 60);
|
|
16687
|
+
return hours < 48 ? `${String(hours)}h ago` : `${String(Math.round(hours / 24))}d ago`;
|
|
16688
|
+
}
|
|
16689
|
+
async function hubIsLocal() {
|
|
16690
|
+
const { resolveHubTarget } = await import("./hub-OWUC4IGW.js");
|
|
16691
|
+
const target = await resolveHubTarget(void 0, { preferLocal: true });
|
|
16692
|
+
return target?.onThisMachine ?? true;
|
|
16693
|
+
}
|
|
16694
|
+
async function attachToSession(m, openIn) {
|
|
16695
|
+
if (!m.tmuxSession || !m.attachCommand) {
|
|
16696
|
+
log2.error(
|
|
16697
|
+
`manager ${m.id} runs in a terminal of its own, not in a session the hub can attach to.`
|
|
16698
|
+
);
|
|
16699
|
+
return false;
|
|
16700
|
+
}
|
|
16701
|
+
if (!await hubIsLocal()) {
|
|
16702
|
+
log2.error(
|
|
16703
|
+
`the manager runs on the hub's machine, not this one. Reach its session there with:
|
|
16704
|
+
${m.attachCommand}`
|
|
16705
|
+
);
|
|
16706
|
+
return false;
|
|
16707
|
+
}
|
|
16708
|
+
const target = `=${m.tmuxSession}`;
|
|
16709
|
+
if (openIn && openIn !== "same") {
|
|
16710
|
+
const host = detectHostTerminal();
|
|
16711
|
+
if (host === "unknown") {
|
|
16712
|
+
log2.error("--attach-in needs a supported terminal (tmux, cmux, herdr, iTerm2).");
|
|
16713
|
+
return false;
|
|
16714
|
+
}
|
|
16715
|
+
const spawned = await spawnInNewTerminal({
|
|
16716
|
+
host,
|
|
16717
|
+
mode: openIn,
|
|
16718
|
+
argv: ["tmux", "attach-session", "-t", target],
|
|
16719
|
+
cwd: m.cwd,
|
|
16720
|
+
title: "manager"
|
|
16721
|
+
});
|
|
16722
|
+
if (!spawned.launched) {
|
|
16723
|
+
log2.error(spawned.error ?? `could not open a new ${host} ${openIn}`);
|
|
16724
|
+
return false;
|
|
16725
|
+
}
|
|
16726
|
+
log2.success(spawned.note || `attached in a new ${host} ${openIn}`);
|
|
16727
|
+
return true;
|
|
16728
|
+
}
|
|
16729
|
+
const inTmux = (process.env["TMUX"] ?? "").length > 0;
|
|
16730
|
+
const args = inTmux ? ["switch-client", "-t", target] : ["attach-session", "-t", target];
|
|
16731
|
+
const r = spawnSync5("tmux", args, { stdio: "inherit" });
|
|
16732
|
+
if (r.status !== 0) {
|
|
16733
|
+
log2.error(`could not attach: tmux ${args.join(" ")} exited ${String(r.status ?? -1)}`);
|
|
16734
|
+
return false;
|
|
16735
|
+
}
|
|
16736
|
+
return true;
|
|
16737
|
+
}
|
|
16738
|
+
function mustAttachIn(value) {
|
|
16739
|
+
if (value && !["split", "window", "tab"].includes(value)) {
|
|
16740
|
+
log2.error(`--attach-in must be one of split, window, tab`);
|
|
16741
|
+
process.exit(4);
|
|
16742
|
+
}
|
|
16743
|
+
return value;
|
|
16744
|
+
}
|
|
16745
|
+
var listCommand5 = new Command53("list").alias("ls").description("List manager sessions: running first, then the most recently seen").option("-w, --workspace <ref>", "only this workspace (id or path)").option("--running", "only running managers").option("-j, --json", "print the listing as JSON").action(async (opts) => {
|
|
16746
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16747
|
+
const ws = opts.workspace ? await mustResolve3(client, opts.workspace) : void 0;
|
|
16748
|
+
const managers = await client.listManagers({
|
|
16749
|
+
...ws ? { workspaceId: ws.id } : {},
|
|
16750
|
+
...opts.running ? { status: "running" } : {}
|
|
16751
|
+
});
|
|
16752
|
+
if (opts.json) {
|
|
16753
|
+
process.stdout.write(JSON.stringify(managers, null, 2) + "\n");
|
|
16754
|
+
return;
|
|
16755
|
+
}
|
|
16756
|
+
if (managers.length === 0) {
|
|
16757
|
+
log2.info(
|
|
16758
|
+
"no managers yet. Run `agentbox create` or `agentbox tasks add` from a claude or codex session, or `agentbox manager start`."
|
|
16759
|
+
);
|
|
16760
|
+
return;
|
|
16761
|
+
}
|
|
16762
|
+
renderManagers(managers);
|
|
16763
|
+
});
|
|
16764
|
+
});
|
|
16765
|
+
var statusCommand2 = new Command53("status").description("Show a manager's state (default: this session's, else the workspace's)").argument("[id]", "manager id (or a unique prefix)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("-j, --json", "print the state as JSON").action(async (id, opts) => {
|
|
16766
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16767
|
+
const one = id ? await mustManager(client, id) : opts.workspace ? void 0 : await currentManager(client);
|
|
16768
|
+
if (one) {
|
|
16769
|
+
if (opts.json) process.stdout.write(JSON.stringify(one, null, 2) + "\n");
|
|
16770
|
+
else printManager(one);
|
|
16771
|
+
return;
|
|
16772
|
+
}
|
|
16773
|
+
const ws = await mustResolve3(client, opts.workspace);
|
|
16774
|
+
const managers = await client.listWorkspaceManagers(ws.id);
|
|
16775
|
+
if (opts.json) {
|
|
16776
|
+
process.stdout.write(JSON.stringify(managers, null, 2) + "\n");
|
|
16777
|
+
return;
|
|
16778
|
+
}
|
|
16779
|
+
if (managers.length === 0) {
|
|
16780
|
+
log2.info(`no managers in ${ws.name} yet.`);
|
|
16781
|
+
return;
|
|
16782
|
+
}
|
|
16783
|
+
renderManagers(managers);
|
|
16784
|
+
});
|
|
16785
|
+
});
|
|
16786
|
+
var startCommand = new Command53("start").description("Start a manager agent in the workspace folder, in a tmux session the hub runs").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--agent <agent>", `which agent to run (${managerAgents().join(" | ")})`, "claude").option(
|
|
16787
|
+
"--session <id>",
|
|
16788
|
+
`resume this agent session (${RESUMABLE_MANAGER_AGENTS.join(" | ")} only)`
|
|
16789
|
+
).option("--new", "start a fresh session without asking which to resume").option("--restart", "with --session: restart the hub-run manager holding it if it is running").option("--attach", "attach to the session once it is up").action(
|
|
16790
|
+
async (opts) => {
|
|
16791
|
+
const agents = managerAgents();
|
|
16792
|
+
if (!agents.includes(opts.agent)) {
|
|
16793
|
+
log2.error(`unknown agent "${opts.agent}" (expected ${agents.join(", ")})`);
|
|
16794
|
+
process.exit(4);
|
|
16795
|
+
}
|
|
16796
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16797
|
+
const ws = await mustResolve3(client, opts.workspace);
|
|
16798
|
+
let sessionId = opts.session;
|
|
16799
|
+
if (!sessionId && !opts.new && process.stdout.isTTY) {
|
|
16800
|
+
const found = await client.listManagerSessions(ws.id, opts.agent).catch(() => null);
|
|
16801
|
+
if (found?.supported && found.sessions.length > 0) {
|
|
16802
|
+
const picked = await select({
|
|
16803
|
+
message: `Resume a ${opts.agent} session in ${ws.name}?`,
|
|
16804
|
+
options: [
|
|
16805
|
+
{ value: "", label: "New session" },
|
|
16806
|
+
...found.sessions.map((s) => ({
|
|
16807
|
+
value: s.id,
|
|
16808
|
+
label: s.title,
|
|
16809
|
+
hint: `${s.id.slice(0, 8)} \xB7 ${ago(s.updatedAt)}`
|
|
16810
|
+
}))
|
|
16811
|
+
]
|
|
16812
|
+
});
|
|
16813
|
+
if (isCancel3(picked)) {
|
|
16814
|
+
log2.info("cancelled.");
|
|
16815
|
+
return;
|
|
16816
|
+
}
|
|
16817
|
+
if (picked) sessionId = picked;
|
|
16818
|
+
}
|
|
16819
|
+
}
|
|
16820
|
+
const manager = await client.startManager(ws.id, {
|
|
16821
|
+
agent: opts.agent,
|
|
16822
|
+
...sessionId ? { sessionId } : {},
|
|
16823
|
+
...opts.restart ? { restart: true } : {}
|
|
16824
|
+
});
|
|
16825
|
+
printManager(manager);
|
|
16826
|
+
if (opts.attach && !await attachToSession(manager)) process.exit(1);
|
|
16827
|
+
});
|
|
16828
|
+
}
|
|
16829
|
+
);
|
|
16830
|
+
var resumeCommand = new Command53("resume").description("Reopen a stopped manager's session in a tmux session the hub runs").argument("<id>", "manager id (or a unique prefix)").option("--attach", "attach to the session once it is up").option("--attach-in <mode>", "with --attach: open in a new split | window | tab").action(async (id, opts) => {
|
|
16831
|
+
const mode = mustAttachIn(opts.attachIn);
|
|
16832
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16833
|
+
const target = await mustManager(client, id);
|
|
16834
|
+
const manager = await client.resumeManager(target.id);
|
|
16835
|
+
printManager(manager);
|
|
16836
|
+
if (opts.attach && !await attachToSession(manager, mode)) process.exit(1);
|
|
16837
|
+
});
|
|
16838
|
+
});
|
|
16839
|
+
var stopCommand = new Command53("stop").description("Stop a hub-run manager (a session in your own terminal is yours to exit)").argument("<id>", "manager id (or a unique prefix)").action(async (id) => {
|
|
16840
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16841
|
+
const target = await mustManager(client, id);
|
|
16842
|
+
printManager(await client.stopManager(target.id));
|
|
16843
|
+
});
|
|
16844
|
+
});
|
|
16845
|
+
var attachCommand2 = new Command53("attach").description("Attach to a hub-run manager's terminal session").argument("[id]", "manager id (default: the one running hub-run manager in the workspace)").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--attach-in <mode>", "open in a new split | window | tab instead of this terminal").action(async (id, opts) => {
|
|
16846
|
+
const mode = mustAttachIn(opts.attachIn);
|
|
16847
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16848
|
+
let manager;
|
|
16849
|
+
if (id) manager = await mustManager(client, id);
|
|
16850
|
+
else {
|
|
16851
|
+
const ws = await mustResolve3(client, opts.workspace);
|
|
16852
|
+
const running = (await client.listWorkspaceManagers(ws.id)).filter(
|
|
16853
|
+
(m) => m.kind === "hub" && m.status === "running"
|
|
16854
|
+
);
|
|
16855
|
+
if (running.length !== 1) {
|
|
16856
|
+
log2.error(
|
|
16857
|
+
running.length === 0 ? `no hub-run manager is running in ${ws.name}. Start one with \`agentbox manager start\`, or resume one with \`agentbox manager resume <id>\`.` : `${String(running.length)} hub-run managers are running in ${ws.name}; pass an id (\`agentbox manager list\`).`
|
|
16858
|
+
);
|
|
16859
|
+
process.exit(2);
|
|
16860
|
+
}
|
|
16861
|
+
manager = running[0];
|
|
16862
|
+
}
|
|
16863
|
+
if (manager.background && !manager.attachCommand) {
|
|
16864
|
+
manager = await client.attachManager(manager.id);
|
|
16865
|
+
}
|
|
16866
|
+
if (manager.kind === "external" && manager.status === "running" && !manager.attachCommand) {
|
|
16867
|
+
log2.info(
|
|
16868
|
+
`manager ${manager.id} is running in your terminal${manager.pid !== void 0 ? ` (pid ${String(manager.pid)})` : ""}; switch to that window.`
|
|
16869
|
+
);
|
|
16870
|
+
process.exit(2);
|
|
16871
|
+
}
|
|
16872
|
+
if (manager.status !== "running") {
|
|
16873
|
+
log2.error(
|
|
16874
|
+
`manager ${manager.id} is not running. Resume it with \`agentbox manager resume ${manager.id} --attach\`.`
|
|
16875
|
+
);
|
|
16876
|
+
process.exit(2);
|
|
16877
|
+
}
|
|
16878
|
+
if (!await attachToSession(manager, mode)) process.exit(1);
|
|
16879
|
+
});
|
|
16880
|
+
});
|
|
16881
|
+
var sessionsCommand = new Command53("sessions").description("List agent sessions in the workspace folder that a manager could resume").option("-w, --workspace <ref>", "workspace id or path (default: the one containing the cwd)").option("--agent <agent>", "which agent to list sessions for", "claude").option("-j, --json", "print the listing as JSON").action(async (opts) => {
|
|
16882
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16883
|
+
const ws = await mustResolve3(client, opts.workspace);
|
|
16884
|
+
const found = await client.listManagerSessions(ws.id, opts.agent);
|
|
16885
|
+
if (opts.json) {
|
|
16886
|
+
process.stdout.write(JSON.stringify(found, null, 2) + "\n");
|
|
16887
|
+
return;
|
|
16888
|
+
}
|
|
16889
|
+
if (!found.supported) {
|
|
16890
|
+
log2.info(`resuming a ${found.agent} session is not supported yet.`);
|
|
16891
|
+
return;
|
|
16892
|
+
}
|
|
16893
|
+
if (found.sessions.length === 0) {
|
|
16894
|
+
log2.info(`no ${found.agent} sessions in ${ws.root}.`);
|
|
16895
|
+
return;
|
|
16896
|
+
}
|
|
16897
|
+
renderTable2(
|
|
16898
|
+
["id", "title", "updated"],
|
|
16899
|
+
found.sessions.map((s) => [s.id, s.title, ago(s.updatedAt)])
|
|
16900
|
+
);
|
|
16901
|
+
});
|
|
16902
|
+
});
|
|
16903
|
+
var noteCommand = new Command53("note").description(
|
|
16904
|
+
"Record why the manager did something on the workspace timeline, at this session's turn"
|
|
16905
|
+
).argument("<text>", "the note").argument("[id]", "manager id or unique prefix (default: the session running this command)").option("--replan", "mark it as a re-plan: reordering, holding or splitting work").option("--plan", "mark it as the plan itself").option("-j, --json", "print the recorded event as JSON").action(
|
|
16906
|
+
async (text3, id, opts) => {
|
|
16907
|
+
if (opts.replan && opts.plan) {
|
|
16908
|
+
log2.error("pass --replan or --plan, not both");
|
|
16909
|
+
process.exit(4);
|
|
16910
|
+
}
|
|
16911
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16912
|
+
let managerId;
|
|
16913
|
+
if (id) managerId = (await mustManager(client, id)).id;
|
|
16914
|
+
else {
|
|
16915
|
+
const hint = detectHostSession();
|
|
16916
|
+
if (!hint) {
|
|
16917
|
+
log2.error("run inside the manager session, or pass a manager id");
|
|
16918
|
+
process.exit(2);
|
|
16919
|
+
}
|
|
16920
|
+
const registered = await registerHostManager(client, hint);
|
|
16921
|
+
if (!registered) process.exit(1);
|
|
16922
|
+
managerId = registered.managerId;
|
|
16923
|
+
}
|
|
16924
|
+
const event = await client.addManagerNote(managerId, {
|
|
16925
|
+
text: text3,
|
|
16926
|
+
...opts.replan ? { kind: "replan" } : opts.plan ? { kind: "plan" } : {}
|
|
16927
|
+
});
|
|
16928
|
+
if (opts.json) {
|
|
16929
|
+
process.stdout.write(JSON.stringify(event, null, 2) + "\n");
|
|
16930
|
+
return;
|
|
16931
|
+
}
|
|
16932
|
+
log2.success(
|
|
16933
|
+
`noted on ${managerId}${event.turn !== void 0 ? ` at turn ${String(event.turn)}` : ""}`
|
|
16934
|
+
);
|
|
16935
|
+
});
|
|
16936
|
+
}
|
|
16937
|
+
);
|
|
16938
|
+
var forgetCommand = new Command53("forget").alias("rm").description("Forget a stopped manager (its boxes and tasks are untouched)").argument("<id>", "manager id (or a unique prefix)").option("-y, --yes", "skip the confirmation").option("--force", "forget it even if it reads as running (its process is left alone)").action(async (id, opts) => {
|
|
16939
|
+
await withHubClient({ preferLocal: true }, async (client) => {
|
|
16940
|
+
const target = await mustManager(client, id);
|
|
16941
|
+
if (!opts.yes) {
|
|
16942
|
+
const answer = await confirm({
|
|
16943
|
+
message: `Forget manager ${target.id} (${target.agent} \xB7 ${label(target)})?`,
|
|
16944
|
+
initialValue: false
|
|
16945
|
+
});
|
|
16946
|
+
if (isCancel3(answer) || !answer) {
|
|
16947
|
+
log2.info("cancelled.");
|
|
16948
|
+
return;
|
|
16949
|
+
}
|
|
16950
|
+
}
|
|
16951
|
+
await client.removeManager(target.id, { force: Boolean(opts.force) });
|
|
16952
|
+
log2.success(`forgot ${target.id}`);
|
|
16953
|
+
});
|
|
16954
|
+
});
|
|
16955
|
+
var managerCommand = new Command53("manager").alias("managers").description(
|
|
16956
|
+
"Agent sessions that create and watch boxes: detected from your terminal, or run by the hub"
|
|
16957
|
+
).addCommand(listCommand5, { isDefault: true }).addCommand(statusCommand2).addCommand(startCommand).addCommand(resumeCommand).addCommand(stopCommand).addCommand(attachCommand2).addCommand(sessionsCommand).addCommand(noteCommand).addCommand(forgetCommand);
|
|
16958
|
+
|
|
16959
|
+
// src/commands/_run-queued-job.ts
|
|
16960
|
+
import { Command as Command54 } from "commander";
|
|
15972
16961
|
import { stat as stat3 } from "fs/promises";
|
|
15973
16962
|
import { join as join25 } from "path";
|
|
15974
16963
|
|
|
@@ -16106,7 +17095,7 @@ async function ensureClaudeLoginFresh(args) {
|
|
|
16106
17095
|
for (const sig of ["SIGTERM", "SIGINT"]) process.removeListener(sig, onSignal);
|
|
16107
17096
|
}
|
|
16108
17097
|
}
|
|
16109
|
-
var runQueuedJobCommand = new
|
|
17098
|
+
var runQueuedJobCommand = new Command54("_run-queued-job").description("internal: run a queued background agent job (do not invoke directly)").argument("<id>", "queue job id (from ~/.agentbox/queue/<id>.json)").action(async (id) => {
|
|
16110
17099
|
const log44 = openCommandLog(`queue-${id}`);
|
|
16111
17100
|
log44.write(`worker pid=${String(process.pid)} starting for job ${id}`);
|
|
16112
17101
|
let job = null;
|
|
@@ -16135,6 +17124,7 @@ var runQueuedJobCommand = new Command51("_run-queued-job").description("internal
|
|
|
16135
17124
|
login: persisted?.login
|
|
16136
17125
|
};
|
|
16137
17126
|
await writeJob(done);
|
|
17127
|
+
await recordCreateJobTimeline(done);
|
|
16138
17128
|
log44.write(`done`);
|
|
16139
17129
|
log44.close();
|
|
16140
17130
|
process.exit(0);
|
|
@@ -16153,6 +17143,7 @@ var runQueuedJobCommand = new Command51("_run-queued-job").description("internal
|
|
|
16153
17143
|
login: persisted?.login
|
|
16154
17144
|
};
|
|
16155
17145
|
await writeJob(failed);
|
|
17146
|
+
await recordCreateJobTimeline(failed);
|
|
16156
17147
|
} catch {
|
|
16157
17148
|
}
|
|
16158
17149
|
}
|
|
@@ -16526,8 +17517,8 @@ function buildOverridesFromJob(job) {
|
|
|
16526
17517
|
}
|
|
16527
17518
|
|
|
16528
17519
|
// src/commands/_run-queued-prepare.ts
|
|
16529
|
-
import { Command as
|
|
16530
|
-
var runQueuedPrepareCommand = new
|
|
17520
|
+
import { Command as Command55 } from "commander";
|
|
17521
|
+
var runQueuedPrepareCommand = new Command55("_run-queued-prepare").description("internal: run a queued provider image-bake job (do not invoke directly)").argument("<id>", "queue job id (from ~/.agentbox/queue/<id>.json)").action(async (id) => {
|
|
16531
17522
|
const log44 = openCommandLog(`queue-${id}`);
|
|
16532
17523
|
log44.write(`prepare worker pid=${String(process.pid)} starting for job ${id}`);
|
|
16533
17524
|
let job = null;
|
|
@@ -16637,8 +17628,8 @@ async function runPrepareJob(job, log44) {
|
|
|
16637
17628
|
}
|
|
16638
17629
|
|
|
16639
17630
|
// src/commands/_claude-login-worker.ts
|
|
16640
|
-
import { Command as
|
|
16641
|
-
var claudeLoginWorkerCommand = new
|
|
17631
|
+
import { Command as Command56 } from "commander";
|
|
17632
|
+
var claudeLoginWorkerCommand = new Command56("_claude-login-worker").description(
|
|
16642
17633
|
"internal: drive `claude auth login` under a pty for headless login (do not invoke directly)"
|
|
16643
17634
|
).argument("<id>", "login session id (~/.agentbox/claude-login/<id>/)").action(async (id) => {
|
|
16644
17635
|
const log44 = openCommandLog(`claude-login-${id}`);
|
|
@@ -16681,7 +17672,7 @@ var claudeLoginWorkerCommand = new Command53("_claude-login-worker").description
|
|
|
16681
17672
|
});
|
|
16682
17673
|
|
|
16683
17674
|
// src/commands/_post-update-refresh.ts
|
|
16684
|
-
import { Command as
|
|
17675
|
+
import { Command as Command57 } from "commander";
|
|
16685
17676
|
|
|
16686
17677
|
// src/lib/post-update-refresh.ts
|
|
16687
17678
|
function cachedTraySha(state) {
|
|
@@ -16744,7 +17735,7 @@ async function runPostUpdateRefresh(opts = {}) {
|
|
|
16744
17735
|
}
|
|
16745
17736
|
if (!opts.skipPlugins) {
|
|
16746
17737
|
try {
|
|
16747
|
-
const { runPluginUpdates } = await import("./plugin-update-
|
|
17738
|
+
const { runPluginUpdates } = await import("./plugin-update-LI3QDA4K.js");
|
|
16748
17739
|
const report2 = await runPluginUpdates({ log: (line) => say(`plugins: ${line}`) });
|
|
16749
17740
|
for (const problem of report2.problems) log2.warn(`plugins: ${problem}`);
|
|
16750
17741
|
} catch (err) {
|
|
@@ -16760,7 +17751,7 @@ async function runPostUpdateRefresh(opts = {}) {
|
|
|
16760
17751
|
warn("box image check", err);
|
|
16761
17752
|
}
|
|
16762
17753
|
try {
|
|
16763
|
-
const { adoptPreparedBases } = await import("./prepared-custody-
|
|
17754
|
+
const { adoptPreparedBases } = await import("./prepared-custody-WSHX6XTQ.js");
|
|
16764
17755
|
const res = await adoptPreparedBases();
|
|
16765
17756
|
if (res.adopted.length > 0) {
|
|
16766
17757
|
say(`adopted the control box's ${res.adopted.join(", ")} base bake(s) \u2014 no re-bake needed`);
|
|
@@ -16814,7 +17805,7 @@ async function runPostUpdateRefresh(opts = {}) {
|
|
|
16814
17805
|
}
|
|
16815
17806
|
|
|
16816
17807
|
// src/commands/_post-update-refresh.ts
|
|
16817
|
-
var postUpdateRefreshCommand = new
|
|
17808
|
+
var postUpdateRefreshCommand = new Command57("_post-update-refresh").description("internal: refresh skills, box image, relay, and tray after a package update").option("--skip-skills", "skip refreshing the host skill files").option("--skip-plugins", "skip updating registered provider plugin packages").action(async (opts) => {
|
|
16818
17809
|
try {
|
|
16819
17810
|
await runPostUpdateRefresh({
|
|
16820
17811
|
skipSkills: opts.skipSkills,
|
|
@@ -16826,8 +17817,8 @@ var postUpdateRefreshCommand = new Command54("_post-update-refresh").description
|
|
|
16826
17817
|
});
|
|
16827
17818
|
|
|
16828
17819
|
// src/commands/herdr.ts
|
|
16829
|
-
import { spawnSync as
|
|
16830
|
-
import { Command as
|
|
17820
|
+
import { spawnSync as spawnSync6 } from "child_process";
|
|
17821
|
+
import { Command as Command58 } from "commander";
|
|
16831
17822
|
function parseHerdrLink(uri) {
|
|
16832
17823
|
if (!uri) return null;
|
|
16833
17824
|
const m = uri.match(/^agentbox:\/\/([^/]+)\/(.+)$/);
|
|
@@ -16853,7 +17844,7 @@ function herdrContextCwd(env = process.env) {
|
|
|
16853
17844
|
}
|
|
16854
17845
|
return process.cwd();
|
|
16855
17846
|
}
|
|
16856
|
-
var newCommand = new
|
|
17847
|
+
var newCommand = new Command58("new").description("Open a new box session in a fresh Herdr tab (used by the plugin shortcut)").option("--agent <agent>", "agent to launch (claude|codex|opencode)", "claude").action(async (opts) => {
|
|
16857
17848
|
const agent = opts.agent ?? "claude";
|
|
16858
17849
|
const cwd = herdrContextCwd();
|
|
16859
17850
|
const r = await spawnInNewTerminal({
|
|
@@ -16866,7 +17857,7 @@ var newCommand = new Command55("new").description("Open a new box session in a f
|
|
|
16866
17857
|
if (r.launched) process.stdout.write(r.note + "\n");
|
|
16867
17858
|
else if (r.error) process.stderr.write(r.error + "\n");
|
|
16868
17859
|
});
|
|
16869
|
-
var linkCommand = new
|
|
17860
|
+
var linkCommand = new Command58("link").description("Handle a Ctrl+click on an agentbox:// link (used by the plugin link handler)").argument("[uri]", "the clicked URI; defaults to $HERDR_PLUGIN_CLICKED_URL").action(async (uriArg) => {
|
|
16870
17861
|
const link = parseHerdrLink(uriArg ?? process.env["HERDR_PLUGIN_CLICKED_URL"]);
|
|
16871
17862
|
if (!link) return;
|
|
16872
17863
|
if (link.verb !== "web") return;
|
|
@@ -16882,7 +17873,7 @@ var linkCommand = new Command55("link").description("Handle a Ctrl+click on an a
|
|
|
16882
17873
|
}
|
|
16883
17874
|
const webUrl = box.endpoints.endpoints.find((e) => e.kind === "web" && e.url)?.url;
|
|
16884
17875
|
if (webUrl) {
|
|
16885
|
-
|
|
17876
|
+
spawnSync6(hostOpenCommand(), [webUrl], { stdio: "ignore" });
|
|
16886
17877
|
return;
|
|
16887
17878
|
}
|
|
16888
17879
|
if (box.state !== "running") {
|
|
@@ -16899,14 +17890,14 @@ var linkCommand = new Command55("link").description("Handle a Ctrl+click on an a
|
|
|
16899
17890
|
sound: "request"
|
|
16900
17891
|
});
|
|
16901
17892
|
});
|
|
16902
|
-
var herdrCommand = new
|
|
17893
|
+
var herdrCommand = new Command58("herdr").description("Internal: Herdr plugin entry points (see `agentbox install herdr`)").addCommand(newCommand).addCommand(linkCommand);
|
|
16903
17894
|
|
|
16904
17895
|
// src/commands/recover.ts
|
|
16905
17896
|
import { homedir as homedir18 } from "os";
|
|
16906
17897
|
import { join as join26 } from "path";
|
|
16907
17898
|
import { access } from "fs/promises";
|
|
16908
17899
|
import { isCancel as isCancel8, log as log34, select as select3 } from "@clack/prompts";
|
|
16909
|
-
import { Command as
|
|
17900
|
+
import { Command as Command59 } from "commander";
|
|
16910
17901
|
var CUSTODY_PROBE_MS = 1500;
|
|
16911
17902
|
var CUSTODY_PULL_MS = 1e4;
|
|
16912
17903
|
function hetznerKeyPath(sandboxId) {
|
|
@@ -17079,7 +18070,7 @@ async function adoptUnknownBox(provider, ref) {
|
|
|
17079
18070
|
);
|
|
17080
18071
|
return record;
|
|
17081
18072
|
}
|
|
17082
|
-
var recoverCommand = new
|
|
18073
|
+
var recoverCommand = new Command59("recover").description(
|
|
17083
18074
|
"Reconnect to an already-running box without power-cycling it: ensure the relay is up, re-open the host transport (Hetzner SSH tunnel) + portless aliases, re-register with the relay, relaunch the agent it was running, and attach. With --all, recover every box in state. With --provider <p> --adopt [ref], first rebuild local state for a box created elsewhere."
|
|
17084
18075
|
).argument(
|
|
17085
18076
|
"[box]",
|
|
@@ -17140,9 +18131,9 @@ var recoverCommand = new Command56("recover").description(
|
|
|
17140
18131
|
});
|
|
17141
18132
|
|
|
17142
18133
|
// src/commands/screen.ts
|
|
17143
|
-
import { spawnSync as
|
|
18134
|
+
import { spawnSync as spawnSync7 } from "child_process";
|
|
17144
18135
|
import { log as log35 } from "@clack/prompts";
|
|
17145
|
-
import { Command as
|
|
18136
|
+
import { Command as Command60 } from "commander";
|
|
17146
18137
|
var SIGNED_URL_TTL_MIN = 1;
|
|
17147
18138
|
var SIGNED_URL_TTL_MAX = 86400;
|
|
17148
18139
|
function parseTtlOrExit(raw) {
|
|
@@ -17211,14 +18202,14 @@ function emitUrl(url, opts) {
|
|
|
17211
18202
|
`);
|
|
17212
18203
|
return;
|
|
17213
18204
|
}
|
|
17214
|
-
const opened =
|
|
18205
|
+
const opened = spawnSync7(hostOpenCommand(), [url], { stdio: "inherit" });
|
|
17215
18206
|
if (opened.status !== 0) {
|
|
17216
18207
|
throw new Error(`open ${url} failed (exit ${String(opened.status ?? "n/a")})`);
|
|
17217
18208
|
}
|
|
17218
18209
|
process.stdout.write(`opened ${url}
|
|
17219
18210
|
`);
|
|
17220
18211
|
}
|
|
17221
|
-
var screenCommand = new
|
|
18212
|
+
var screenCommand = new Command60("screen").description("Open a box's VNC (noVNC) viewer in the browser (auto-unpause/start)").argument(
|
|
17222
18213
|
"[box]",
|
|
17223
18214
|
"box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
|
|
17224
18215
|
).option("--print", "print the URL to stdout instead of launching the browser").option("--loopback", "docker only: use the 127.0.0.1 URL instead of the OrbStack .orb.local URL").option("--ttl <seconds>", "cloud only: signed-URL expiry in seconds (default 3600, max 86400)").action(async (idOrName, opts) => {
|
|
@@ -17258,7 +18249,7 @@ var screenCommand = new Command57("screen").description("Open a box's VNC (noVNC
|
|
|
17258
18249
|
|
|
17259
18250
|
// src/commands/services.ts
|
|
17260
18251
|
import { log as log36 } from "@clack/prompts";
|
|
17261
|
-
import { Command as
|
|
18252
|
+
import { Command as Command61 } from "commander";
|
|
17262
18253
|
function toStatusRows(services) {
|
|
17263
18254
|
return services.map((s) => ({
|
|
17264
18255
|
name: s.name,
|
|
@@ -17276,7 +18267,7 @@ function toStatusRows(services) {
|
|
|
17276
18267
|
probed: s.probed ?? false
|
|
17277
18268
|
}));
|
|
17278
18269
|
}
|
|
17279
|
-
var
|
|
18270
|
+
var listCommand6 = new Command61("list").description("List the box's services with their live state (running / ready / crashed / \u2026)").argument("[box]", "box ref (default: the only box in this project)").option("--json", "print the raw status (services, tasks, ports) as JSON").action(async (idOrName, opts) => {
|
|
17280
18271
|
try {
|
|
17281
18272
|
const box = await resolveBoxOrExit(idOrName);
|
|
17282
18273
|
const r = await withOwningHub(box, async (client) => {
|
|
@@ -17303,7 +18294,7 @@ var listCommand3 = new Command58("list").description("List the box's services wi
|
|
|
17303
18294
|
handleLifecycleError(err);
|
|
17304
18295
|
}
|
|
17305
18296
|
});
|
|
17306
|
-
var restartCommand = new
|
|
18297
|
+
var restartCommand = new Command61("restart").description("Restart one service, or every service when no name is given").argument("[box]", "box ref (default: the only box in this project)").argument("[name]", "service to restart (omit to restart all)").action(async (idOrName, name) => {
|
|
17307
18298
|
try {
|
|
17308
18299
|
const { box, shifted } = await resolveBoxOrShift(idOrName);
|
|
17309
18300
|
const serviceName = shifted ? idOrName : name;
|
|
@@ -17318,12 +18309,12 @@ var restartCommand = new Command58("restart").description("Restart one service,
|
|
|
17318
18309
|
handleLifecycleError(err);
|
|
17319
18310
|
}
|
|
17320
18311
|
});
|
|
17321
|
-
var servicesCommand = new
|
|
18312
|
+
var servicesCommand = new Command61("services").description("List and restart a box's agentbox.yaml services").addCommand(listCommand6, { isDefault: true }).addCommand(restartCommand);
|
|
17322
18313
|
|
|
17323
18314
|
// src/commands/shell.ts
|
|
17324
|
-
import { spawnSync as
|
|
18315
|
+
import { spawnSync as spawnSync8 } from "child_process";
|
|
17325
18316
|
import { log as log38, spinner as spinner5 } from "@clack/prompts";
|
|
17326
|
-
import { Command as
|
|
18317
|
+
import { Command as Command62 } from "commander";
|
|
17327
18318
|
|
|
17328
18319
|
// src/commands/_provider-guard.ts
|
|
17329
18320
|
import { log as log37 } from "@clack/prompts";
|
|
@@ -17351,8 +18342,8 @@ function reattachRef2(r) {
|
|
|
17351
18342
|
return typeof r.projectIndex === "number" ? String(r.projectIndex) : r.name;
|
|
17352
18343
|
}
|
|
17353
18344
|
function detachSuffix(sessionName) {
|
|
17354
|
-
const
|
|
17355
|
-
return
|
|
18345
|
+
const label2 = shellLabel(sessionName);
|
|
18346
|
+
return label2 === DEFAULT_SHELL_SESSION ? "" : ` -n ${label2}`;
|
|
17356
18347
|
}
|
|
17357
18348
|
function oneShotBashArgv(cmd, login) {
|
|
17358
18349
|
const flag = login ? "-lc" : "-c";
|
|
@@ -17408,10 +18399,10 @@ async function resolveCloudShellSessionName(box, provider, user, opts) {
|
|
|
17408
18399
|
return allocateShellSessionName(existing);
|
|
17409
18400
|
}
|
|
17410
18401
|
async function startOrAttachShell(box, cfg) {
|
|
17411
|
-
const
|
|
18402
|
+
const label2 = shellLabel(cfg.sessionName);
|
|
17412
18403
|
const info = await shellSessionInfo(box.container, cfg.sessionName, cfg.user);
|
|
17413
18404
|
if (info.running) {
|
|
17414
|
-
log38.info(`reattaching to shell "${
|
|
18405
|
+
log38.info(`reattaching to shell "${label2}" \u2014 Control+a d to detach`);
|
|
17415
18406
|
} else {
|
|
17416
18407
|
await startShellSession({
|
|
17417
18408
|
container: box.container,
|
|
@@ -17419,7 +18410,7 @@ async function startOrAttachShell(box, cfg) {
|
|
|
17419
18410
|
user: cfg.user,
|
|
17420
18411
|
login: cfg.login
|
|
17421
18412
|
});
|
|
17422
|
-
log38.info(`shell "${
|
|
18413
|
+
log38.info(`shell "${label2}" \u2014 Control+a d to detach, leaves it running`);
|
|
17423
18414
|
}
|
|
17424
18415
|
const code = await runWrappedAttach({
|
|
17425
18416
|
container: box.container,
|
|
@@ -17488,7 +18479,7 @@ async function runSshConfig(box, opts) {
|
|
|
17488
18479
|
];
|
|
17489
18480
|
process.stdout.write(lines.join("\n") + "\n");
|
|
17490
18481
|
}
|
|
17491
|
-
var shellCommand = new
|
|
18482
|
+
var shellCommand = new Command62("shell").description(
|
|
17492
18483
|
"Open an interactive shell in a box, in a detachable tmux session (auto-unpause/start)"
|
|
17493
18484
|
).argument(
|
|
17494
18485
|
"[box]",
|
|
@@ -17580,7 +18571,7 @@ var shellCommand = new Command59("shell").description(
|
|
|
17580
18571
|
...bashInvocation
|
|
17581
18572
|
];
|
|
17582
18573
|
if (!isInteractive || effectiveCmd.length > 0) {
|
|
17583
|
-
const child =
|
|
18574
|
+
const child = spawnSync8("docker", plainArgv, { stdio: "inherit" });
|
|
17584
18575
|
process.exit(child.status ?? 0);
|
|
17585
18576
|
}
|
|
17586
18577
|
if (tmux) {
|
|
@@ -17601,7 +18592,7 @@ var shellCommand = new Command59("shell").description(
|
|
|
17601
18592
|
handleLifecycleError(err);
|
|
17602
18593
|
}
|
|
17603
18594
|
});
|
|
17604
|
-
var shellAttachCommand = new
|
|
18595
|
+
var shellAttachCommand = new Command62("attach").description(
|
|
17605
18596
|
"Attach to a shell tmux session in a box, starting one if none is running (auto-unpause/start)"
|
|
17606
18597
|
).argument(
|
|
17607
18598
|
"[box]",
|
|
@@ -17637,7 +18628,7 @@ function renderShellTable(sessions) {
|
|
|
17637
18628
|
for (const r of rows) process.stdout.write(`${fmt(r)}
|
|
17638
18629
|
`);
|
|
17639
18630
|
}
|
|
17640
|
-
var shellLsCommand = new
|
|
18631
|
+
var shellLsCommand = new Command62("ls").description("List the shell tmux sessions running in a box").argument(
|
|
17641
18632
|
"[box]",
|
|
17642
18633
|
"box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
|
|
17643
18634
|
).action(async (idOrName) => {
|
|
@@ -17660,7 +18651,7 @@ var shellLsCommand = new Command59("ls").description("List the shell tmux sessio
|
|
|
17660
18651
|
handleLifecycleError(err);
|
|
17661
18652
|
}
|
|
17662
18653
|
});
|
|
17663
|
-
var shellKillCommand = new
|
|
18654
|
+
var shellKillCommand = new Command62("kill").description("Kill a shell tmux session in a box (the shell and anything running in it)").argument(
|
|
17664
18655
|
"[box]",
|
|
17665
18656
|
"box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
|
|
17666
18657
|
).option("-n, --name <label>", "shell label to kill (default: the box default shell)").option("--all", "kill every shell session in the box").action(async function(idOrName) {
|
|
@@ -17700,8 +18691,8 @@ shellCommand.addCommand(shellLsCommand);
|
|
|
17700
18691
|
shellCommand.addCommand(shellKillCommand);
|
|
17701
18692
|
|
|
17702
18693
|
// src/commands/start.ts
|
|
17703
|
-
import { Command as
|
|
17704
|
-
var
|
|
18694
|
+
import { Command as Command63 } from "commander";
|
|
18695
|
+
var startCommand2 = new Command63("start").description(
|
|
17705
18696
|
"Start a stopped box. Docker: docker start + relaunch ctl/dockerd/vnc daemons. Cloud: backend.start, then re-resolve preview URLs/tokens, re-launch in-sandbox ctl/dockerd daemons, and re-register with the host relay (so the CloudBoxPoller resumes)."
|
|
17706
18697
|
).argument(
|
|
17707
18698
|
"[box]",
|
|
@@ -17715,8 +18706,8 @@ var startCommand = new Command60("start").description(
|
|
|
17715
18706
|
reportBoxNotOnAnyHub(box);
|
|
17716
18707
|
return;
|
|
17717
18708
|
}
|
|
17718
|
-
const
|
|
17719
|
-
process.stdout.write(`started ${
|
|
18709
|
+
const label2 = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
|
|
18710
|
+
process.stdout.write(`started ${label2}
|
|
17720
18711
|
`);
|
|
17721
18712
|
const provider = await providerForBox(box);
|
|
17722
18713
|
const cfg = await loadEffectiveConfig(box.workspacePath);
|
|
@@ -17738,7 +18729,7 @@ var startCommand = new Command60("start").description(
|
|
|
17738
18729
|
|
|
17739
18730
|
// src/commands/status.ts
|
|
17740
18731
|
import { log as log40 } from "@clack/prompts";
|
|
17741
|
-
import { Command as
|
|
18732
|
+
import { Command as Command64 } from "commander";
|
|
17742
18733
|
|
|
17743
18734
|
// src/endpoints-render.ts
|
|
17744
18735
|
function renderEndpointLines(endpoints, stream) {
|
|
@@ -18067,8 +19058,8 @@ async function runInspect(box, opts) {
|
|
|
18067
19058
|
|
|
18068
19059
|
// src/commands/status.ts
|
|
18069
19060
|
var MAX_DISPLAY_NAME = 60;
|
|
18070
|
-
var
|
|
18071
|
-
new
|
|
19061
|
+
var statusCommand3 = withWatchOptions(
|
|
19062
|
+
new Command64("status").description("Show service + task status from a box's agentbox-ctl daemon").argument(
|
|
18072
19063
|
"[box]",
|
|
18073
19064
|
"box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
|
|
18074
19065
|
).option("-j, --json", "machine-readable JSON output").option("--inspect", "show detailed box info (volumes, limits, paths) plus service/task status").option(
|
|
@@ -18220,14 +19211,14 @@ function renderClaude(i, persisted) {
|
|
|
18220
19211
|
} else if (!s.running) {
|
|
18221
19212
|
session = `no session ("${s.sessionName}")`;
|
|
18222
19213
|
} else {
|
|
18223
|
-
const
|
|
18224
|
-
session = `running ("${s.sessionName}")${
|
|
19214
|
+
const ago2 = fmtAgo2(s.startedAt);
|
|
19215
|
+
session = `running ("${s.sessionName}")${ago2 ? `, started ${ago2}` : ""}`;
|
|
18225
19216
|
}
|
|
18226
19217
|
const lines = [` session ${session}`];
|
|
18227
19218
|
const claude = normalizeAgentStatus(persisted).claude;
|
|
18228
19219
|
if (claude) {
|
|
18229
|
-
const
|
|
18230
|
-
lines.push(` activity ${claude.state}${
|
|
19220
|
+
const ago2 = fmtAgo2(claude.updatedAt);
|
|
19221
|
+
lines.push(` activity ${claude.state}${ago2 ? ` (${ago2})` : ""}`);
|
|
18231
19222
|
}
|
|
18232
19223
|
return lines.join("\n");
|
|
18233
19224
|
}
|
|
@@ -18247,8 +19238,8 @@ function renderPersisted2(s, state) {
|
|
|
18247
19238
|
}
|
|
18248
19239
|
|
|
18249
19240
|
// src/commands/stop.ts
|
|
18250
|
-
import { Command as
|
|
18251
|
-
var
|
|
19241
|
+
import { Command as Command65 } from "commander";
|
|
19242
|
+
var stopCommand2 = new Command65("stop").description(
|
|
18252
19243
|
"Stop a box (Docker: docker stop; preserves upper + node_modules volumes. Cloud: backend.stop \u2014 sandbox stays in your account, disk preserved)."
|
|
18253
19244
|
).argument(
|
|
18254
19245
|
"[box]",
|
|
@@ -18262,8 +19253,8 @@ var stopCommand = new Command62("stop").description(
|
|
|
18262
19253
|
reportBoxNotOnAnyHub(box);
|
|
18263
19254
|
return;
|
|
18264
19255
|
}
|
|
18265
|
-
const
|
|
18266
|
-
process.stdout.write(`stopped ${
|
|
19256
|
+
const label2 = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
|
|
19257
|
+
process.stdout.write(`stopped ${label2}
|
|
18267
19258
|
restart with: agentbox start ${box.name}
|
|
18268
19259
|
`);
|
|
18269
19260
|
} catch (err) {
|
|
@@ -18272,7 +19263,7 @@ restart with: agentbox start ${box.name}
|
|
|
18272
19263
|
});
|
|
18273
19264
|
|
|
18274
19265
|
// src/commands/top.ts
|
|
18275
|
-
import { Command as
|
|
19266
|
+
import { Command as Command66 } from "commander";
|
|
18276
19267
|
|
|
18277
19268
|
// src/lib/cloud-state.ts
|
|
18278
19269
|
var PROBE_TIMEOUT_MS = 4e3;
|
|
@@ -18290,17 +19281,17 @@ async function applyLiveCloudStates(boxes) {
|
|
|
18290
19281
|
);
|
|
18291
19282
|
}
|
|
18292
19283
|
function withTimeout(p2, ms) {
|
|
18293
|
-
return new Promise((
|
|
18294
|
-
const t = setTimeout(() =>
|
|
19284
|
+
return new Promise((resolve8) => {
|
|
19285
|
+
const t = setTimeout(() => resolve8(null), ms);
|
|
18295
19286
|
if (typeof t.unref === "function") t.unref();
|
|
18296
19287
|
p2.then(
|
|
18297
19288
|
(v) => {
|
|
18298
19289
|
clearTimeout(t);
|
|
18299
|
-
|
|
19290
|
+
resolve8(v);
|
|
18300
19291
|
},
|
|
18301
19292
|
() => {
|
|
18302
19293
|
clearTimeout(t);
|
|
18303
|
-
|
|
19294
|
+
resolve8(null);
|
|
18304
19295
|
}
|
|
18305
19296
|
);
|
|
18306
19297
|
});
|
|
@@ -18322,7 +19313,7 @@ function row(name, state, s) {
|
|
|
18322
19313
|
s.live ? net : "\u2014"
|
|
18323
19314
|
];
|
|
18324
19315
|
}
|
|
18325
|
-
function
|
|
19316
|
+
function renderTable3(rows) {
|
|
18326
19317
|
const all = [COLS, ...rows];
|
|
18327
19318
|
const widths = COLS.map((_, c) => Math.max(...all.map((r) => r[c].length)));
|
|
18328
19319
|
return all.map(
|
|
@@ -18379,7 +19370,7 @@ async function renderProjectFooters() {
|
|
|
18379
19370
|
|
|
18380
19371
|
SYSTEM: ${parts.join(" - ")}` : "";
|
|
18381
19372
|
}
|
|
18382
|
-
var topCommand = new
|
|
19373
|
+
var topCommand = new Command66("top").description("Live resource monitor (cpu/mem/pids/disk) for a box, the project, or every box").argument(
|
|
18383
19374
|
"[box]",
|
|
18384
19375
|
"box ref (default: every box on the host; --project narrows to the cwd's project)"
|
|
18385
19376
|
).option("-p, --project", "show only boxes in the cwd's project").option("--once", "print a single snapshot instead of watching").option("-j, --json", "machine-readable JSON (implies --once)").option("--interval <seconds>", "refresh interval", "2").option(
|
|
@@ -18401,7 +19392,7 @@ var topCommand = new Command63("top").description("Live resource monitor (cpu/me
|
|
|
18401
19392
|
const produce = async (watching) => {
|
|
18402
19393
|
const { boxes, stats } = await snapshot(idOrName, opts);
|
|
18403
19394
|
const scope = opts.project ? "no boxes for this project" : "no boxes";
|
|
18404
|
-
const header = boxes.length === 0 ? watching ? `${scope} (waiting...)` : scope :
|
|
19395
|
+
const header = boxes.length === 0 ? watching ? `${scope} (waiting...)` : scope : renderTable3(boxes.map((b, i) => row(b.name, b.state, stats[i])));
|
|
18405
19396
|
return header + await renderProjectFooters();
|
|
18406
19397
|
};
|
|
18407
19398
|
if (opts.once) {
|
|
@@ -18415,8 +19406,8 @@ var topCommand = new Command63("top").description("Live resource monitor (cpu/me
|
|
|
18415
19406
|
});
|
|
18416
19407
|
|
|
18417
19408
|
// src/commands/unpause.ts
|
|
18418
|
-
import { Command as
|
|
18419
|
-
var unpauseCommand = new
|
|
19409
|
+
import { Command as Command67 } from "commander";
|
|
19410
|
+
var unpauseCommand = new Command67("unpause").description(
|
|
18420
19411
|
"Resume a paused box. Docker: `docker unpause` (sub-second). Cloud: backend.resume (re-hydrates from archive \u2014 slower first time)."
|
|
18421
19412
|
).argument(
|
|
18422
19413
|
"[box]",
|
|
@@ -18430,8 +19421,8 @@ var unpauseCommand = new Command64("unpause").description(
|
|
|
18430
19421
|
reportBoxNotOnAnyHub(box);
|
|
18431
19422
|
return;
|
|
18432
19423
|
}
|
|
18433
|
-
const
|
|
18434
|
-
process.stdout.write(`unpaused ${
|
|
19424
|
+
const label2 = boxOwningHubIsLocal(box) ? box.container ?? box.name : box.name;
|
|
19425
|
+
process.stdout.write(`unpaused ${label2}
|
|
18435
19426
|
`);
|
|
18436
19427
|
if (!boxOwningHubIsLocal(box)) {
|
|
18437
19428
|
const provider = await providerForBox(box);
|
|
@@ -18455,7 +19446,7 @@ var unpauseCommand = new Command64("unpause").description(
|
|
|
18455
19446
|
|
|
18456
19447
|
// src/commands/update.ts
|
|
18457
19448
|
import { spawn as spawn4 } from "child_process";
|
|
18458
|
-
import { Command as
|
|
19449
|
+
import { Command as Command68 } from "commander";
|
|
18459
19450
|
|
|
18460
19451
|
// src/lib/hub-update-decision.ts
|
|
18461
19452
|
function decideHubUpdate(input) {
|
|
@@ -18516,12 +19507,12 @@ async function resolveHubUpdate(args) {
|
|
|
18516
19507
|
return decideHubUpdate({ record: null, liveVersion: void 0, ...args });
|
|
18517
19508
|
}
|
|
18518
19509
|
try {
|
|
18519
|
-
const { readDeployRecord } = await import("./deploy-hetzner-
|
|
19510
|
+
const { readDeployRecord } = await import("./deploy-hetzner-EO5PFKBG.js");
|
|
18520
19511
|
const record = await readDeployRecord();
|
|
18521
19512
|
if (!record?.url || record.provider === "local") {
|
|
18522
19513
|
return decideHubUpdate({ record, liveVersion: void 0, ...args });
|
|
18523
19514
|
}
|
|
18524
|
-
const { probeControlPlaneStatus } = await import("./control-plane-
|
|
19515
|
+
const { probeControlPlaneStatus } = await import("./control-plane-3TII2JGM.js");
|
|
18525
19516
|
const live = await probeControlPlaneStatus(record.url).catch(() => null);
|
|
18526
19517
|
return decideHubUpdate({ record, liveVersion: live?.version, ...args });
|
|
18527
19518
|
} catch {
|
|
@@ -18552,7 +19543,7 @@ function describeResolution(channel, newest, decision) {
|
|
|
18552
19543
|
if (decision.install) return `current ${AGENTBOX_VERSION} \u2192 newest ${newest}${on}`;
|
|
18553
19544
|
return `already the newest (${AGENTBOX_VERSION})${on} \u2014 refreshing skills/image/relay/app anyway`;
|
|
18554
19545
|
}
|
|
18555
|
-
var
|
|
19546
|
+
var updateCommand2 = new Command68("self-update").description(
|
|
18556
19547
|
"Update agentbox: self-update via npm/pnpm (unless run via npx), refresh the host skills, re-check the box image (rebuilt on the next create only if its build context changed), reload the relay/hub, and update the menu-bar app"
|
|
18557
19548
|
).option("-y, --yes", "skip the confirmation prompt").option("--dry-run", "show what would happen, don't change anything").option(
|
|
18558
19549
|
"--skip-self",
|
|
@@ -18691,9 +19682,9 @@ var updateCommand = new Command65("self-update").description(
|
|
|
18691
19682
|
});
|
|
18692
19683
|
|
|
18693
19684
|
// src/commands/url.ts
|
|
18694
|
-
import { spawnSync as
|
|
19685
|
+
import { spawnSync as spawnSync9 } from "child_process";
|
|
18695
19686
|
import { log as log41 } from "@clack/prompts";
|
|
18696
|
-
import { Command as
|
|
19687
|
+
import { Command as Command69 } from "commander";
|
|
18697
19688
|
var SIGNED_URL_TTL_MIN2 = 1;
|
|
18698
19689
|
var SIGNED_URL_TTL_MAX2 = 86400;
|
|
18699
19690
|
function parseTtlOrExit2(raw) {
|
|
@@ -18762,7 +19753,7 @@ function emitUrl2(url, signInUrl, opts) {
|
|
|
18762
19753
|
return;
|
|
18763
19754
|
}
|
|
18764
19755
|
const target = signInUrl ?? url;
|
|
18765
|
-
const opened =
|
|
19756
|
+
const opened = spawnSync9(hostOpenCommand(), [target], { stdio: "inherit" });
|
|
18766
19757
|
if (opened.status !== 0) {
|
|
18767
19758
|
throw new Error(`open ${target} failed (exit ${String(opened.status ?? "n/a")})`);
|
|
18768
19759
|
}
|
|
@@ -18779,7 +19770,7 @@ async function signInUrlViaProvider(box, url) {
|
|
|
18779
19770
|
return null;
|
|
18780
19771
|
}
|
|
18781
19772
|
}
|
|
18782
|
-
var urlCommand = new
|
|
19773
|
+
var urlCommand = new Command69("url").description(
|
|
18783
19774
|
"Open a box's web app URL in the browser, even when no service declares `expose:` (auto-unpause/start)"
|
|
18784
19775
|
).argument(
|
|
18785
19776
|
"[box]",
|
|
@@ -18823,8 +19814,8 @@ var urlCommand = new Command66("url").description(
|
|
|
18823
19814
|
|
|
18824
19815
|
// src/commands/wait.ts
|
|
18825
19816
|
import { log as log42 } from "@clack/prompts";
|
|
18826
|
-
import { Command as
|
|
18827
|
-
var waitCommand = new
|
|
19817
|
+
import { Command as Command70 } from "commander";
|
|
19818
|
+
var waitCommand = new Command70("wait").description("Block until the box reports all autostart units ready").argument(
|
|
18828
19819
|
"[box]",
|
|
18829
19820
|
"box ref: project index, id, id prefix, name, or container (default: the only box in this project)"
|
|
18830
19821
|
).option("--timeout <ms>", "overall timeout in milliseconds", "120000").option("--units <names...>", "restrict to the named units").option("-j, --json", "machine-readable JSON output").action(async (idOrName, opts) => {
|
|
@@ -18888,15 +19879,15 @@ process.env.AGENTBOX_CLI_COMMIT = AGENTBOX_COMMIT;
|
|
|
18888
19879
|
}
|
|
18889
19880
|
installConfigWarningSink();
|
|
18890
19881
|
setCredentialPublisher(async (providerId, fields) => {
|
|
18891
|
-
const { publishProviderCredentials } = await import("./publish-credentials-
|
|
19882
|
+
const { publishProviderCredentials } = await import("./publish-credentials-FCEQSIPE.js");
|
|
18892
19883
|
await publishProviderCredentials(providerId, fields);
|
|
18893
19884
|
});
|
|
18894
19885
|
setRemoteHostSharer(async (alias) => {
|
|
18895
|
-
const { shareAfterAdd } = await import("./remote-docker-share-
|
|
19886
|
+
const { shareAfterAdd } = await import("./remote-docker-share-4Z4VVUPG.js");
|
|
18896
19887
|
await shareAfterAdd(alias);
|
|
18897
19888
|
});
|
|
18898
19889
|
setRemoteHostBaker(async (alias) => {
|
|
18899
|
-
const { runPrepare: runPrepare2 } = await import("./prepare-
|
|
19890
|
+
const { runPrepare: runPrepare2 } = await import("./prepare-MYFNDJPP.js");
|
|
18900
19891
|
await runPrepare2(`docker:${alias}`, { yes: true, suppressStatus: true });
|
|
18901
19892
|
});
|
|
18902
19893
|
setHubPortlessHooks(dockerHubPortlessHooks);
|
|
@@ -18908,7 +19899,7 @@ for (const f of installedAgents.failed) {
|
|
|
18908
19899
|
process.stderr.write(`agentbox: agent package "${f.packageName}" not loaded \u2014 ${f.reason}
|
|
18909
19900
|
`);
|
|
18910
19901
|
}
|
|
18911
|
-
var program = new
|
|
19902
|
+
var program = new Command71();
|
|
18912
19903
|
program.name("agentbox").description("Launch coding agents in isolated sandboxes").version(AGENTBOX_VERSION);
|
|
18913
19904
|
program.enablePositionalOptions();
|
|
18914
19905
|
program.addCommand(createCommand);
|
|
@@ -18929,7 +19920,7 @@ program.addCommand(downloadCommand);
|
|
|
18929
19920
|
program.addCommand(uploadCommand);
|
|
18930
19921
|
program.addCommand(cloneCommand);
|
|
18931
19922
|
program.addCommand(cpCommand);
|
|
18932
|
-
program.addCommand(
|
|
19923
|
+
program.addCommand(statusCommand3);
|
|
18933
19924
|
program.addCommand(servicesCommand);
|
|
18934
19925
|
program.addCommand(topCommand);
|
|
18935
19926
|
program.addCommand(dashboardCommand);
|
|
@@ -18941,8 +19932,8 @@ program.addCommand(pauseCommand);
|
|
|
18941
19932
|
program.addCommand(unpauseCommand);
|
|
18942
19933
|
program.addCommand(inboundCommand);
|
|
18943
19934
|
program.addCommand(connectCommand);
|
|
18944
|
-
program.addCommand(
|
|
18945
|
-
program.addCommand(
|
|
19935
|
+
program.addCommand(stopCommand2);
|
|
19936
|
+
program.addCommand(startCommand2);
|
|
18946
19937
|
program.addCommand(recoverCommand);
|
|
18947
19938
|
program.addCommand(destroyCommand);
|
|
18948
19939
|
program.addCommand(prepareCommand);
|
|
@@ -18951,6 +19942,9 @@ program.addCommand(checkpointCommand);
|
|
|
18951
19942
|
program.addCommand(credentialsCommand, { hidden: true });
|
|
18952
19943
|
program.addCommand(configCommand);
|
|
18953
19944
|
program.addCommand(queueCommand);
|
|
19945
|
+
program.addCommand(workspaceCommand);
|
|
19946
|
+
program.addCommand(tasksCommand);
|
|
19947
|
+
program.addCommand(managerCommand);
|
|
18954
19948
|
program.addCommand(relayCommand);
|
|
18955
19949
|
program.addCommand(hubCommand);
|
|
18956
19950
|
program.addCommand(runQueuedJobCommand, { hidden: true });
|
|
@@ -18966,7 +19960,7 @@ program.addCommand(digitaloceanCommand);
|
|
|
18966
19960
|
for (const sub of remoteDockerShareSubcommands) remoteDockerCommand.addCommand(sub);
|
|
18967
19961
|
program.addCommand(remoteDockerCommand);
|
|
18968
19962
|
program.addCommand(dockerCommand);
|
|
18969
|
-
program.addCommand(
|
|
19963
|
+
program.addCommand(updateCommand2);
|
|
18970
19964
|
program.addCommand(installCommand);
|
|
18971
19965
|
program.addCommand(appCommand);
|
|
18972
19966
|
program.addCommand(pluginCommand);
|
|
@@ -18976,7 +19970,7 @@ program.configureHelp({ visibleCommands: () => [] });
|
|
|
18976
19970
|
program.addHelpText("after", () => "\n" + buildCompactHelp(program));
|
|
18977
19971
|
program.helpCommand(false);
|
|
18978
19972
|
program.addCommand(
|
|
18979
|
-
new
|
|
19973
|
+
new Command71("help").description("List every command, grouped; `help <command>` for one command").argument("[command]", "command to show help for").action((name) => {
|
|
18980
19974
|
if (name) {
|
|
18981
19975
|
const sub = program.commands.find((c) => c.name() === name || c.aliases().includes(name));
|
|
18982
19976
|
if (!sub) program.error(`unknown command '${name}'`);
|