@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
|
@@ -57,7 +57,7 @@ export function parseCreateBox(
|
|
|
57
57
|
): Parsed<CreateBoxInput> {
|
|
58
58
|
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
59
59
|
const { projectId, repoUrl, agent, provider, name, prompt, fromBranch, setupWizard } = body;
|
|
60
|
-
const { agentArgs, startAgent, foreground, opts } = body;
|
|
60
|
+
const { agentArgs, startAgent, foreground, opts, managerId } = body;
|
|
61
61
|
// Exactly one of projectId / repoUrl: projectId → a registered project on the
|
|
62
62
|
// hub's machine (local file queue); repoUrl → the origin the control-plane
|
|
63
63
|
// worker clones (no local checkout).
|
|
@@ -123,9 +123,12 @@ export function parseCreateBox(
|
|
|
123
123
|
if (!fg.ok) return fg;
|
|
124
124
|
const po = parseCreateBoxOpts(opts);
|
|
125
125
|
if (!po.ok) return po;
|
|
126
|
+
const mid = optionalManagerId(managerId, 'managerId');
|
|
127
|
+
if (!mid.ok) return mid;
|
|
126
128
|
return {
|
|
127
129
|
ok: true,
|
|
128
130
|
value: {
|
|
131
|
+
...(mid.value ? { managerId: mid.value } : {}),
|
|
129
132
|
projectId: hasProject ? (projectId as string) : undefined,
|
|
130
133
|
repoUrl: hasRepo ? (repoUrl as string) : undefined,
|
|
131
134
|
agent: agent as CreateBoxInput['agent'],
|
|
@@ -913,3 +916,526 @@ export async function readJson(req: Request): Promise<Parsed<unknown>> {
|
|
|
913
916
|
return { ok: false, message: 'body is not valid JSON' };
|
|
914
917
|
}
|
|
915
918
|
}
|
|
919
|
+
|
|
920
|
+
// ── workspaces / tasks / manager ──
|
|
921
|
+
|
|
922
|
+
export const TASK_STATUSES = ['todo', 'in_progress', 'blocked', 'done'] as const;
|
|
923
|
+
export type TaskStatusValue = (typeof TASK_STATUSES)[number];
|
|
924
|
+
|
|
925
|
+
/** Task ids are minted server-side as `T-<n>`; a client only ever echoes one back. */
|
|
926
|
+
export const TASK_ID_RE = /^T-\d+$/;
|
|
927
|
+
|
|
928
|
+
// Mirrors MANAGER_AGENTS in @agentbox/relay, hardcoded here for the same reason
|
|
929
|
+
// AGENTS/PROVIDERS above are: importing @agentbox/* would pull it into the Next
|
|
930
|
+
// bundle.
|
|
931
|
+
export const MANAGER_AGENT_NAMES = ['claude', 'codex', 'opencode', 'pi'] as const;
|
|
932
|
+
|
|
933
|
+
/** A timeline note or a message to a manager. */
|
|
934
|
+
export const NOTE_MAX = 2000;
|
|
935
|
+
export const NOTE_KINDS = ['note', 'replan', 'plan'] as const;
|
|
936
|
+
export type NoteKindValue = (typeof NOTE_KINDS)[number];
|
|
937
|
+
|
|
938
|
+
function optionalNote(v: unknown, field = 'note'): Parsed<string | undefined> {
|
|
939
|
+
if (v === undefined) return { ok: true, value: undefined };
|
|
940
|
+
if (typeof v !== 'string') return { ok: false, message: `${field} must be a string` };
|
|
941
|
+
if (v.length > NOTE_MAX) {
|
|
942
|
+
return { ok: false, message: `${field} too long (max ${String(NOTE_MAX)} chars)` };
|
|
943
|
+
}
|
|
944
|
+
const trimmed = v.trim();
|
|
945
|
+
return { ok: true, value: trimmed.length > 0 ? trimmed : undefined };
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
function requiredText(v: unknown): Parsed<string> {
|
|
949
|
+
const parsed = optionalNote(v, 'text');
|
|
950
|
+
if (!parsed.ok) return parsed;
|
|
951
|
+
if (!parsed.value) return { ok: false, message: 'text is required (non-empty string)' };
|
|
952
|
+
return { ok: true, value: parsed.value };
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export function parseManagerNote(body: unknown): Parsed<{ text: string; kind?: NoteKindValue }> {
|
|
956
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
957
|
+
const text = requiredText(body['text']);
|
|
958
|
+
if (!text.ok) return text;
|
|
959
|
+
const { kind } = body;
|
|
960
|
+
if (kind !== undefined && !(NOTE_KINDS as readonly unknown[]).includes(kind)) {
|
|
961
|
+
return { ok: false, message: `kind must be one of ${NOTE_KINDS.join(', ')}` };
|
|
962
|
+
}
|
|
963
|
+
return {
|
|
964
|
+
ok: true,
|
|
965
|
+
value: { text: text.value, ...(kind ? { kind: kind as NoteKindValue } : {}) },
|
|
966
|
+
};
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
const PR_REPO_RE = /^[A-Za-z0-9_.-]{1,100}\/[A-Za-z0-9_.-]{1,100}$/;
|
|
970
|
+
|
|
971
|
+
export function parseManagerMessage(
|
|
972
|
+
body: unknown,
|
|
973
|
+
): Parsed<{ text: string; prNumber?: number; repo?: string }> {
|
|
974
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
975
|
+
const text = requiredText(body['text']);
|
|
976
|
+
if (!text.ok) return text;
|
|
977
|
+
const { prNumber, repo } = body;
|
|
978
|
+
if (
|
|
979
|
+
prNumber !== undefined &&
|
|
980
|
+
(typeof prNumber !== 'number' || !Number.isInteger(prNumber) || prNumber <= 0)
|
|
981
|
+
) {
|
|
982
|
+
return { ok: false, message: 'prNumber must be a positive integer' };
|
|
983
|
+
}
|
|
984
|
+
if (repo !== undefined) {
|
|
985
|
+
if (typeof repo !== 'string' || !PR_REPO_RE.test(repo)) {
|
|
986
|
+
return { ok: false, message: 'repo must be owner/name' };
|
|
987
|
+
}
|
|
988
|
+
if (prNumber === undefined) return { ok: false, message: 'repo needs prNumber' };
|
|
989
|
+
}
|
|
990
|
+
return {
|
|
991
|
+
ok: true,
|
|
992
|
+
value: {
|
|
993
|
+
text: text.value,
|
|
994
|
+
...(prNumber !== undefined ? { prNumber: prNumber as number } : {}),
|
|
995
|
+
...(repo !== undefined ? { repo: repo as string } : {}),
|
|
996
|
+
},
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
export const TIMELINE_LIMIT_MAX = 500;
|
|
1001
|
+
|
|
1002
|
+
/** `?before=&since=` are ISO times (normalized, so they compare with stored ones); `?limit=` 1–500. */
|
|
1003
|
+
export function parseTimelineQuery(
|
|
1004
|
+
url: URL,
|
|
1005
|
+
): Parsed<{ before?: string; since?: string; limit?: number; sync?: boolean }> {
|
|
1006
|
+
const out: { before?: string; since?: string; limit?: number; sync?: boolean } = {};
|
|
1007
|
+
if (url.searchParams.get('sync') === '0') out.sync = false;
|
|
1008
|
+
for (const field of ['before', 'since'] as const) {
|
|
1009
|
+
const raw = url.searchParams.get(field);
|
|
1010
|
+
if (raw === null || raw === '') continue;
|
|
1011
|
+
const ms = Date.parse(raw);
|
|
1012
|
+
if (Number.isNaN(ms)) return { ok: false, message: `${field} must be an ISO date-time` };
|
|
1013
|
+
out[field] = new Date(ms).toISOString();
|
|
1014
|
+
}
|
|
1015
|
+
const limit = url.searchParams.get('limit');
|
|
1016
|
+
if (limit !== null && limit !== '') {
|
|
1017
|
+
const n = Number(limit);
|
|
1018
|
+
if (!Number.isInteger(n) || n < 1 || n > TIMELINE_LIMIT_MAX) {
|
|
1019
|
+
return {
|
|
1020
|
+
ok: false,
|
|
1021
|
+
message: `limit must be an integer from 1 to ${String(TIMELINE_LIMIT_MAX)}`,
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
out.limit = n;
|
|
1025
|
+
}
|
|
1026
|
+
return { ok: true, value: out };
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
export function isTaskStatus(v: unknown): v is TaskStatusValue {
|
|
1030
|
+
return typeof v === 'string' && (TASK_STATUSES as readonly string[]).includes(v);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
export interface WorkspaceAddInput {
|
|
1034
|
+
path: string;
|
|
1035
|
+
name?: string;
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
export function parseWorkspaceAdd(body: unknown): Parsed<WorkspaceAddInput> {
|
|
1039
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
1040
|
+
const { path, name } = body;
|
|
1041
|
+
if (typeof path !== 'string' || path.length === 0) {
|
|
1042
|
+
return { ok: false, message: 'path is required (absolute path on the hub host)' };
|
|
1043
|
+
}
|
|
1044
|
+
if (!path.startsWith('/')) return { ok: false, message: 'path must be absolute' };
|
|
1045
|
+
const parsedName = optionalString(name, 'name');
|
|
1046
|
+
if (!parsedName.ok) return parsedName;
|
|
1047
|
+
if (parsedName.value !== undefined && parsedName.value.trim().length === 0) {
|
|
1048
|
+
return { ok: false, message: 'name must not be empty' };
|
|
1049
|
+
}
|
|
1050
|
+
if ((parsedName.value?.length ?? 0) > 60) {
|
|
1051
|
+
return { ok: false, message: 'name too long (max 60 chars)' };
|
|
1052
|
+
}
|
|
1053
|
+
return { ok: true, value: { path, ...(parsedName.value ? { name: parsedName.value } : {}) } };
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
export function parseWorkspaceRename(body: unknown): Parsed<{ name: string }> {
|
|
1057
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
1058
|
+
const { name } = body;
|
|
1059
|
+
if (typeof name !== 'string' || name.trim().length === 0) {
|
|
1060
|
+
return { ok: false, message: 'name is required (non-empty string)' };
|
|
1061
|
+
}
|
|
1062
|
+
if (name.length > 60) return { ok: false, message: 'name too long (max 60 chars)' };
|
|
1063
|
+
return { ok: true, value: { name } };
|
|
1064
|
+
}
|
|
1065
|
+
|
|
1066
|
+
function parseExternalRef(
|
|
1067
|
+
v: unknown,
|
|
1068
|
+
): Parsed<{ kind: string; id: string; url?: string } | undefined> {
|
|
1069
|
+
if (v === undefined) return { ok: true, value: undefined };
|
|
1070
|
+
if (!isObject(v)) return { ok: false, message: 'externalRef must be an object' };
|
|
1071
|
+
const { kind, id, url } = v;
|
|
1072
|
+
if (typeof kind !== 'string' || kind.length === 0) {
|
|
1073
|
+
return { ok: false, message: 'externalRef.kind is required (string)' };
|
|
1074
|
+
}
|
|
1075
|
+
if (typeof id !== 'string' || id.length === 0) {
|
|
1076
|
+
return { ok: false, message: 'externalRef.id is required (string)' };
|
|
1077
|
+
}
|
|
1078
|
+
const parsedUrl = optionalString(url, 'externalRef.url');
|
|
1079
|
+
if (!parsedUrl.ok) return parsedUrl;
|
|
1080
|
+
return { ok: true, value: { kind, id, ...(parsedUrl.value ? { url: parsedUrl.value } : {}) } };
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
function parseTaskIdArray(v: unknown, field: string): Parsed<string[]> {
|
|
1084
|
+
if (!Array.isArray(v) || v.length === 0) {
|
|
1085
|
+
return { ok: false, message: `${field} is required (non-empty array of task ids)` };
|
|
1086
|
+
}
|
|
1087
|
+
for (const el of v) {
|
|
1088
|
+
if (typeof el !== 'string' || !TASK_ID_RE.test(el)) {
|
|
1089
|
+
return { ok: false, message: `${field} entries must be task ids like T-1` };
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
return { ok: true, value: v as string[] };
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
export interface TaskCreateInput {
|
|
1096
|
+
title: string;
|
|
1097
|
+
description?: string;
|
|
1098
|
+
projectId?: string;
|
|
1099
|
+
dependsOn?: string[];
|
|
1100
|
+
createdBy?: 'human' | 'manager' | 'api';
|
|
1101
|
+
externalRef?: { kind: string; id: string; url?: string };
|
|
1102
|
+
boxId?: string;
|
|
1103
|
+
boxJobId?: string;
|
|
1104
|
+
managerId?: string;
|
|
1105
|
+
/** Recorded on the timeline as a note next to the create. */
|
|
1106
|
+
note?: string;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
export function parseTaskCreate(body: unknown): Parsed<TaskCreateInput> {
|
|
1110
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
1111
|
+
const { title, description, projectId, dependsOn, createdBy, externalRef, boxId, boxJobId } =
|
|
1112
|
+
body;
|
|
1113
|
+
const parsedManager = optionalManagerId(body['managerId'], 'managerId');
|
|
1114
|
+
if (!parsedManager.ok) return parsedManager;
|
|
1115
|
+
const parsedNote = optionalNote(body['note']);
|
|
1116
|
+
if (!parsedNote.ok) return parsedNote;
|
|
1117
|
+
if (typeof title !== 'string' || title.trim().length === 0) {
|
|
1118
|
+
return { ok: false, message: 'title is required (non-empty string)' };
|
|
1119
|
+
}
|
|
1120
|
+
if (title.length > 300) return { ok: false, message: 'title too long (max 300 chars)' };
|
|
1121
|
+
const parsedDesc = optionalString(description, 'description');
|
|
1122
|
+
if (!parsedDesc.ok) return parsedDesc;
|
|
1123
|
+
const parsedProject = optionalString(projectId, 'projectId');
|
|
1124
|
+
if (!parsedProject.ok) return parsedProject;
|
|
1125
|
+
const parsedRef = parseExternalRef(externalRef);
|
|
1126
|
+
if (!parsedRef.ok) return parsedRef;
|
|
1127
|
+
const parsedBox = optionalString(boxId, 'boxId');
|
|
1128
|
+
if (!parsedBox.ok) return parsedBox;
|
|
1129
|
+
const parsedJob = optionalString(boxJobId, 'boxJobId');
|
|
1130
|
+
if (!parsedJob.ok) return parsedJob;
|
|
1131
|
+
// A task is worked in ONE place; sending both leaves the reconciler to pick,
|
|
1132
|
+
// and it would pick the box — silently dropping the caller's job assignment.
|
|
1133
|
+
if (parsedBox.value && parsedJob.value) {
|
|
1134
|
+
return { ok: false, message: 'send either boxId or boxJobId, not both' };
|
|
1135
|
+
}
|
|
1136
|
+
if (
|
|
1137
|
+
createdBy !== undefined &&
|
|
1138
|
+
createdBy !== 'human' &&
|
|
1139
|
+
createdBy !== 'manager' &&
|
|
1140
|
+
createdBy !== 'api'
|
|
1141
|
+
) {
|
|
1142
|
+
return { ok: false, message: 'createdBy must be one of human, manager, api' };
|
|
1143
|
+
}
|
|
1144
|
+
let deps: string[] | undefined;
|
|
1145
|
+
if (dependsOn !== undefined) {
|
|
1146
|
+
const parsedDeps = parseTaskIdArray(dependsOn, 'dependsOn');
|
|
1147
|
+
if (!parsedDeps.ok) return parsedDeps;
|
|
1148
|
+
deps = parsedDeps.value;
|
|
1149
|
+
}
|
|
1150
|
+
return {
|
|
1151
|
+
ok: true,
|
|
1152
|
+
value: {
|
|
1153
|
+
title: title.trim(),
|
|
1154
|
+
...(parsedDesc.value ? { description: parsedDesc.value } : {}),
|
|
1155
|
+
...(parsedProject.value ? { projectId: parsedProject.value } : {}),
|
|
1156
|
+
...(deps ? { dependsOn: deps } : {}),
|
|
1157
|
+
...(createdBy ? { createdBy } : {}),
|
|
1158
|
+
...(parsedRef.value ? { externalRef: parsedRef.value } : {}),
|
|
1159
|
+
...(parsedBox.value ? { boxId: parsedBox.value } : {}),
|
|
1160
|
+
...(parsedJob.value ? { boxJobId: parsedJob.value } : {}),
|
|
1161
|
+
...(parsedManager.value ? { managerId: parsedManager.value } : {}),
|
|
1162
|
+
...(parsedNote.value ? { note: parsedNote.value } : {}),
|
|
1163
|
+
},
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
export interface TaskUpdateInput {
|
|
1168
|
+
title?: string;
|
|
1169
|
+
description?: string;
|
|
1170
|
+
status?: TaskStatusValue;
|
|
1171
|
+
projectId?: string | null;
|
|
1172
|
+
dependsOn?: string[];
|
|
1173
|
+
externalRef?: { kind: string; id: string; url?: string };
|
|
1174
|
+
managerId?: string | null;
|
|
1175
|
+
note?: string;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
export function parseTaskUpdate(body: unknown): Parsed<TaskUpdateInput> {
|
|
1179
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
1180
|
+
const { title, description, status, projectId, dependsOn, externalRef, managerId } = body;
|
|
1181
|
+
const out: TaskUpdateInput = {};
|
|
1182
|
+
if (title !== undefined) {
|
|
1183
|
+
if (typeof title !== 'string' || title.trim().length === 0) {
|
|
1184
|
+
return { ok: false, message: 'title must be a non-empty string' };
|
|
1185
|
+
}
|
|
1186
|
+
if (title.length > 300) return { ok: false, message: 'title too long (max 300 chars)' };
|
|
1187
|
+
out.title = title.trim();
|
|
1188
|
+
}
|
|
1189
|
+
const parsedDesc = optionalString(description, 'description');
|
|
1190
|
+
if (!parsedDesc.ok) return parsedDesc;
|
|
1191
|
+
if (parsedDesc.value !== undefined) out.description = parsedDesc.value;
|
|
1192
|
+
if (status !== undefined) {
|
|
1193
|
+
if (!isTaskStatus(status)) {
|
|
1194
|
+
return { ok: false, message: `status must be one of ${TASK_STATUSES.join(', ')}` };
|
|
1195
|
+
}
|
|
1196
|
+
out.status = status;
|
|
1197
|
+
}
|
|
1198
|
+
// `null` clears the project scope; omitted leaves it alone.
|
|
1199
|
+
if (projectId !== undefined) {
|
|
1200
|
+
if (projectId !== null && typeof projectId !== 'string') {
|
|
1201
|
+
return { ok: false, message: 'projectId must be a string or null' };
|
|
1202
|
+
}
|
|
1203
|
+
out.projectId = projectId;
|
|
1204
|
+
}
|
|
1205
|
+
if (dependsOn !== undefined) {
|
|
1206
|
+
if (Array.isArray(dependsOn) && dependsOn.length === 0) out.dependsOn = [];
|
|
1207
|
+
else {
|
|
1208
|
+
const parsedDeps = parseTaskIdArray(dependsOn, 'dependsOn');
|
|
1209
|
+
if (!parsedDeps.ok) return parsedDeps;
|
|
1210
|
+
out.dependsOn = parsedDeps.value;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
const parsedRef = parseExternalRef(externalRef);
|
|
1214
|
+
if (!parsedRef.ok) return parsedRef;
|
|
1215
|
+
if (parsedRef.value) out.externalRef = parsedRef.value;
|
|
1216
|
+
// `null` clears the manager; omitted leaves it alone.
|
|
1217
|
+
if (managerId !== undefined) {
|
|
1218
|
+
if (managerId === null) out.managerId = null;
|
|
1219
|
+
else {
|
|
1220
|
+
const parsedManager = optionalManagerId(managerId, 'managerId');
|
|
1221
|
+
if (!parsedManager.ok) return parsedManager;
|
|
1222
|
+
out.managerId = parsedManager.value ?? null;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
if (Object.keys(out).length === 0) {
|
|
1226
|
+
return { ok: false, message: 'no updatable field in body' };
|
|
1227
|
+
}
|
|
1228
|
+
const parsedNote = optionalNote(body['note']);
|
|
1229
|
+
if (!parsedNote.ok) return parsedNote;
|
|
1230
|
+
if (parsedNote.value) out.note = parsedNote.value;
|
|
1231
|
+
return { ok: true, value: out };
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export interface TaskAssignInput {
|
|
1235
|
+
/** Absent on the single-task route, where the id is in the path. */
|
|
1236
|
+
ids?: string[];
|
|
1237
|
+
boxId?: string;
|
|
1238
|
+
boxJobId?: string;
|
|
1239
|
+
note?: string;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
export function parseTaskAssign(
|
|
1243
|
+
body: unknown,
|
|
1244
|
+
opts: { requireIds?: boolean } = {},
|
|
1245
|
+
): Parsed<TaskAssignInput> {
|
|
1246
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
1247
|
+
const { ids, boxId, boxJobId } = body;
|
|
1248
|
+
let parsedIds: string[] | undefined;
|
|
1249
|
+
if (opts.requireIds || ids !== undefined) {
|
|
1250
|
+
const parsed = parseTaskIdArray(ids, 'ids');
|
|
1251
|
+
if (!parsed.ok) return parsed;
|
|
1252
|
+
parsedIds = parsed.value;
|
|
1253
|
+
}
|
|
1254
|
+
const parsedBox = optionalString(boxId, 'boxId');
|
|
1255
|
+
if (!parsedBox.ok) return parsedBox;
|
|
1256
|
+
const parsedJob = optionalString(boxJobId, 'boxJobId');
|
|
1257
|
+
if (!parsedJob.ok) return parsedJob;
|
|
1258
|
+
if (!parsedBox.value && !parsedJob.value) {
|
|
1259
|
+
return { ok: false, message: 'boxId or boxJobId is required' };
|
|
1260
|
+
}
|
|
1261
|
+
if (parsedBox.value && parsedJob.value) {
|
|
1262
|
+
return { ok: false, message: 'send either boxId or boxJobId, not both' };
|
|
1263
|
+
}
|
|
1264
|
+
const parsedNote = optionalNote(body['note']);
|
|
1265
|
+
if (!parsedNote.ok) return parsedNote;
|
|
1266
|
+
return {
|
|
1267
|
+
ok: true,
|
|
1268
|
+
value: {
|
|
1269
|
+
...(parsedIds ? { ids: parsedIds } : {}),
|
|
1270
|
+
...(parsedBox.value ? { boxId: parsedBox.value } : {}),
|
|
1271
|
+
...(parsedJob.value ? { boxJobId: parsedJob.value } : {}),
|
|
1272
|
+
...(parsedNote.value ? { note: parsedNote.value } : {}),
|
|
1273
|
+
},
|
|
1274
|
+
};
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
export function parseTaskReorder(body: unknown): Parsed<{ ids: string[]; note?: string }> {
|
|
1278
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
1279
|
+
const parsed = parseTaskIdArray(body['ids'], 'ids');
|
|
1280
|
+
if (!parsed.ok) return parsed;
|
|
1281
|
+
const parsedNote = optionalNote(body['note']);
|
|
1282
|
+
if (!parsedNote.ok) return parsedNote;
|
|
1283
|
+
return {
|
|
1284
|
+
ok: true,
|
|
1285
|
+
value: { ids: parsed.value, ...(parsedNote.value ? { note: parsedNote.value } : {}) },
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
export interface ManagerStartInput {
|
|
1290
|
+
agent: string;
|
|
1291
|
+
sessionId?: string;
|
|
1292
|
+
restart?: boolean;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
/**
|
|
1296
|
+
* `allowedAgents` is the accept-list for `agent`, defaulting to the built-ins so
|
|
1297
|
+
* this stays a pure, import-free function; the route passes the live registry ids.
|
|
1298
|
+
*
|
|
1299
|
+
* There is deliberately NO free-form `argv`: the manager runs as a login-shell
|
|
1300
|
+
* command on the HUB'S OWN machine, so accepting one would turn an API token into
|
|
1301
|
+
* a shell on the control box — every other exec this API exposes runs inside a
|
|
1302
|
+
* box. An agent the hub already knows is the only thing it will start.
|
|
1303
|
+
*/
|
|
1304
|
+
/** A session id as both agent stores write it: a UUID. Never a flag. */
|
|
1305
|
+
export const SESSION_ID_RE = /^[A-Za-z0-9][A-Za-z0-9_-]{0,63}$/;
|
|
1306
|
+
|
|
1307
|
+
export function parseManagerStart(
|
|
1308
|
+
body: unknown,
|
|
1309
|
+
allowedAgents: readonly string[] = MANAGER_AGENT_NAMES,
|
|
1310
|
+
): Parsed<ManagerStartInput> {
|
|
1311
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
1312
|
+
const { agent, sessionId, restart } = body;
|
|
1313
|
+
if (typeof agent !== 'string' || !allowedAgents.includes(agent)) {
|
|
1314
|
+
return { ok: false, message: `agent must be one of ${allowedAgents.join(', ')}` };
|
|
1315
|
+
}
|
|
1316
|
+
const parsedSession = optionalString(sessionId, 'sessionId');
|
|
1317
|
+
if (!parsedSession.ok) return parsedSession;
|
|
1318
|
+
// A session id goes into the agent's argv on the HUB'S OWN machine, so it must
|
|
1319
|
+
// not be able to look like a flag: `sessionId: '--dangerously-skip-permissions'`
|
|
1320
|
+
// would otherwise start the manager with its approval gate off, which is the
|
|
1321
|
+
// same escalation the absent `argv` field exists to prevent. Both stores use
|
|
1322
|
+
// UUIDs, so anything outside this shape is already not a session.
|
|
1323
|
+
if (parsedSession.value !== undefined && !SESSION_ID_RE.test(parsedSession.value)) {
|
|
1324
|
+
return { ok: false, message: 'sessionId must be alphanumeric with - or _' };
|
|
1325
|
+
}
|
|
1326
|
+
const parsedRestart = optionalBool(restart, 'restart');
|
|
1327
|
+
if (!parsedRestart.ok) return parsedRestart;
|
|
1328
|
+
return {
|
|
1329
|
+
ok: true,
|
|
1330
|
+
value: {
|
|
1331
|
+
agent,
|
|
1332
|
+
...(parsedSession.value ? { sessionId: parsedSession.value } : {}),
|
|
1333
|
+
...(parsedRestart.value !== undefined ? { restart: parsedRestart.value } : {}),
|
|
1334
|
+
},
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
/** A manager id as the store mints it: 16 lowercase hex. */
|
|
1339
|
+
export const MANAGER_ID_RE = /^[0-9a-f]{16}$/;
|
|
1340
|
+
|
|
1341
|
+
export function isManagerId(v: unknown): v is string {
|
|
1342
|
+
return typeof v === 'string' && MANAGER_ID_RE.test(v);
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
function optionalManagerId(v: unknown, field: string): Parsed<string | undefined> {
|
|
1346
|
+
if (v === undefined) return { ok: true, value: undefined };
|
|
1347
|
+
if (!isManagerId(v)) return { ok: false, message: `${field} must be a manager id (16 hex)` };
|
|
1348
|
+
return { ok: true, value: v };
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
export const MANAGER_STATUSES = ['running', 'stopped'] as const;
|
|
1352
|
+
|
|
1353
|
+
export function isManagerStatus(v: unknown): v is (typeof MANAGER_STATUSES)[number] {
|
|
1354
|
+
return typeof v === 'string' && (MANAGER_STATUSES as readonly string[]).includes(v);
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
export interface ManagerDetectInput {
|
|
1358
|
+
agent: string;
|
|
1359
|
+
sessionId: string;
|
|
1360
|
+
cwd: string;
|
|
1361
|
+
pid?: number;
|
|
1362
|
+
host?: string;
|
|
1363
|
+
managerId?: string;
|
|
1364
|
+
tmuxPane?: string;
|
|
1365
|
+
tmuxSession?: string;
|
|
1366
|
+
boxId?: string;
|
|
1367
|
+
boxJobId?: string;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* The body the CLI sends from inside a host agent session.
|
|
1372
|
+
*
|
|
1373
|
+
* `allowedAgents` is the accept-list for `agent`; the route passes the live
|
|
1374
|
+
* registry minus service agents. Nothing here is executed — a detect only
|
|
1375
|
+
* records a session — but `sessionId` is held to the same id shape as a start,
|
|
1376
|
+
* because a later resume puts it into the agent's argv on this machine.
|
|
1377
|
+
*/
|
|
1378
|
+
export function parseManagerDetect(
|
|
1379
|
+
body: unknown,
|
|
1380
|
+
allowedAgents: readonly string[] = MANAGER_AGENT_NAMES,
|
|
1381
|
+
): Parsed<ManagerDetectInput> {
|
|
1382
|
+
if (!isObject(body)) return { ok: false, message: 'body must be a JSON object' };
|
|
1383
|
+
const { agent, sessionId, cwd, pid, host, managerId, boxId, boxJobId, tmuxPane, tmuxSession } =
|
|
1384
|
+
body;
|
|
1385
|
+
if (tmuxPane !== undefined && (typeof tmuxPane !== 'string' || !/^%\d+$/.test(tmuxPane))) {
|
|
1386
|
+
return { ok: false, message: 'tmuxPane must be a tmux pane id like %3' };
|
|
1387
|
+
}
|
|
1388
|
+
if (
|
|
1389
|
+
tmuxSession !== undefined &&
|
|
1390
|
+
(typeof tmuxSession !== 'string' || !/^agentbox-manager-[0-9a-f]{16}$/.test(tmuxSession))
|
|
1391
|
+
) {
|
|
1392
|
+
return { ok: false, message: 'tmuxSession must be an agentbox-manager-<16 hex> session name' };
|
|
1393
|
+
}
|
|
1394
|
+
if (typeof agent !== 'string' || !allowedAgents.includes(agent)) {
|
|
1395
|
+
return { ok: false, message: `agent must be one of ${allowedAgents.join(', ')}` };
|
|
1396
|
+
}
|
|
1397
|
+
if (typeof sessionId !== 'string' || !SESSION_ID_RE.test(sessionId)) {
|
|
1398
|
+
return { ok: false, message: 'sessionId is required (alphanumeric with - or _)' };
|
|
1399
|
+
}
|
|
1400
|
+
if (typeof cwd !== 'string' || !cwd.startsWith('/') || cwd.length > 4096) {
|
|
1401
|
+
return { ok: false, message: 'cwd must be an absolute path' };
|
|
1402
|
+
}
|
|
1403
|
+
if (pid !== undefined && (typeof pid !== 'number' || !Number.isInteger(pid) || pid <= 0)) {
|
|
1404
|
+
return { ok: false, message: 'pid must be a positive integer' };
|
|
1405
|
+
}
|
|
1406
|
+
const parsedHost = optionalString(host, 'host');
|
|
1407
|
+
if (!parsedHost.ok) return parsedHost;
|
|
1408
|
+
if (parsedHost.value !== undefined && parsedHost.value.length > 255) {
|
|
1409
|
+
return { ok: false, message: 'host too long (max 255 chars)' };
|
|
1410
|
+
}
|
|
1411
|
+
const parsedManager = optionalManagerId(managerId, 'managerId');
|
|
1412
|
+
if (!parsedManager.ok) return parsedManager;
|
|
1413
|
+
const parsedBox = optionalString(boxId, 'boxId');
|
|
1414
|
+
if (!parsedBox.ok) return parsedBox;
|
|
1415
|
+
const parsedJob = optionalString(boxJobId, 'boxJobId');
|
|
1416
|
+
if (!parsedJob.ok) return parsedJob;
|
|
1417
|
+
if (parsedBox.value && parsedJob.value) {
|
|
1418
|
+
return { ok: false, message: 'send either boxId or boxJobId, not both' };
|
|
1419
|
+
}
|
|
1420
|
+
return {
|
|
1421
|
+
ok: true,
|
|
1422
|
+
value: {
|
|
1423
|
+
agent,
|
|
1424
|
+
sessionId,
|
|
1425
|
+
cwd,
|
|
1426
|
+
...(pid !== undefined ? { pid: pid as number } : {}),
|
|
1427
|
+
...(parsedHost.value ? { host: parsedHost.value } : {}),
|
|
1428
|
+
...(parsedManager.value ? { managerId: parsedManager.value } : {}),
|
|
1429
|
+
...(typeof tmuxPane === 'string' ? { tmuxPane } : {}),
|
|
1430
|
+
...(typeof tmuxSession === 'string' ? { tmuxSession } : {}),
|
|
1431
|
+
...(parsedBox.value ? { boxId: parsedBox.value } : {}),
|
|
1432
|
+
...(parsedJob.value ? { boxJobId: parsedJob.value } : {}),
|
|
1433
|
+
},
|
|
1434
|
+
};
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/** `?force=1` (or `true`) on a DELETE that is otherwise refused while something runs. */
|
|
1438
|
+
export function isForce(req: Request): boolean {
|
|
1439
|
+
const v = new URL(req.url).searchParams.get('force');
|
|
1440
|
+
return v === '1' || v === 'true';
|
|
1441
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// POST /api/v1/managers/:id/attach — open a claude manager's Claude background
|
|
2
|
+
// session (`claude attach <id>`) in a tmux session the hub owns, so any client can
|
|
3
|
+
// attach to it. The record stays as detected; the session keeps running in
|
|
4
|
+
// Claude's daemon when that tmux session ends. 409 unless the session is running
|
|
5
|
+
// in the daemon and nothing the hub can see already shows it; 503 without tmux.
|
|
6
|
+
import { backendOrNull } from '../../../lib/backend';
|
|
7
|
+
import { fail, failFromAction, ok } from '../../../lib/envelope';
|
|
8
|
+
import { TMUX_MISSING } from '@/lib/backend/errors';
|
|
9
|
+
|
|
10
|
+
export const runtime = 'nodejs';
|
|
11
|
+
export const dynamic = 'force-dynamic';
|
|
12
|
+
|
|
13
|
+
export async function POST(
|
|
14
|
+
_req: Request,
|
|
15
|
+
ctx: { params: Promise<{ id: string }> },
|
|
16
|
+
): Promise<Response> {
|
|
17
|
+
const { id } = await ctx.params;
|
|
18
|
+
const backend = backendOrNull();
|
|
19
|
+
if (!backend) return fail('backend_unavailable', 'hub backend unavailable (run the hub server)');
|
|
20
|
+
const res = await backend.attachManager(id);
|
|
21
|
+
if (!res.ok) {
|
|
22
|
+
if (res.error === TMUX_MISSING) return fail('backend_unavailable', res.error);
|
|
23
|
+
return failFromAction(res.error);
|
|
24
|
+
}
|
|
25
|
+
return ok(res.manager);
|
|
26
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// POST /api/v1/managers/:id/message — type a message into the manager's session
|
|
2
|
+
// and submit it (`{ text, prNumber? }`); what the tray's Approve sends. A running
|
|
3
|
+
// hub-run manager gets it in its tmux session, a running external one in the
|
|
4
|
+
// tmux pane it reported, and a stopped one is resumed in the hub's tmux with the
|
|
5
|
+
// text as its prompt. A running external manager outside tmux cannot be reached:
|
|
6
|
+
// 409 `manager_unreachable`, and the client offers the text to paste instead.
|
|
7
|
+
import { backendOrNull } from '../../../lib/backend';
|
|
8
|
+
import { timelineMeta } from '../../../lib/actor';
|
|
9
|
+
import { fail, failFromAction, ok } from '../../../lib/envelope';
|
|
10
|
+
import { parseManagerMessage, readJson } from '../../../lib/validate';
|
|
11
|
+
import { TMUX_MISSING } from '@/lib/backend/errors';
|
|
12
|
+
|
|
13
|
+
export const runtime = 'nodejs';
|
|
14
|
+
export const dynamic = 'force-dynamic';
|
|
15
|
+
|
|
16
|
+
export async function POST(
|
|
17
|
+
req: Request,
|
|
18
|
+
ctx: { params: Promise<{ id: string }> },
|
|
19
|
+
): Promise<Response> {
|
|
20
|
+
const { id } = await ctx.params;
|
|
21
|
+
const backend = backendOrNull();
|
|
22
|
+
if (!backend) return fail('backend_unavailable', 'hub backend unavailable (run the hub server)');
|
|
23
|
+
const body = await readJson(req);
|
|
24
|
+
if (!body.ok) return fail('invalid_request', body.message);
|
|
25
|
+
const parsed = parseManagerMessage(body.value);
|
|
26
|
+
if (!parsed.ok) return fail('invalid_request', parsed.message);
|
|
27
|
+
const res = await backend.sendManagerMessage(id, parsed.value, await timelineMeta(req, backend));
|
|
28
|
+
if (!res.ok) {
|
|
29
|
+
if (res.code === 'manager_unreachable') return fail('manager_unreachable', res.error);
|
|
30
|
+
if (res.error === TMUX_MISSING) return fail('backend_unavailable', res.error);
|
|
31
|
+
return failFromAction(res.error);
|
|
32
|
+
}
|
|
33
|
+
return ok({ delivered: res.delivered, manager: res.manager, event: res.event });
|
|
34
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// POST /api/v1/managers/:id/notes — record why the manager did something
|
|
2
|
+
// (`{ text, kind? }`, kind `note` | `replan` | `plan`). Stamped with the
|
|
3
|
+
// manager's current turn and that turn's prompt when its transcript is on this
|
|
4
|
+
// hub's disk.
|
|
5
|
+
import { backendOrNull } from '../../../lib/backend';
|
|
6
|
+
import { fail, failFromAction, ok } from '../../../lib/envelope';
|
|
7
|
+
import { parseManagerNote, readJson } from '../../../lib/validate';
|
|
8
|
+
|
|
9
|
+
export const runtime = 'nodejs';
|
|
10
|
+
export const dynamic = 'force-dynamic';
|
|
11
|
+
|
|
12
|
+
export async function POST(
|
|
13
|
+
req: Request,
|
|
14
|
+
ctx: { params: Promise<{ id: string }> },
|
|
15
|
+
): Promise<Response> {
|
|
16
|
+
const { id } = await ctx.params;
|
|
17
|
+
const backend = backendOrNull();
|
|
18
|
+
if (!backend) return fail('backend_unavailable', 'hub backend unavailable (run the hub server)');
|
|
19
|
+
const body = await readJson(req);
|
|
20
|
+
if (!body.ok) return fail('invalid_request', body.message);
|
|
21
|
+
const parsed = parseManagerNote(body.value);
|
|
22
|
+
if (!parsed.ok) return fail('invalid_request', parsed.message);
|
|
23
|
+
const res = await backend.addManagerNote(id, parsed.value);
|
|
24
|
+
if (!res.ok) return failFromAction(res.error);
|
|
25
|
+
return ok(res.event, 201);
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// POST /api/v1/managers/:id/resume — reopen a stopped manager's session in a
|
|
2
|
+
// tmux session the hub owns, with the agent's own resume spelling. This is what
|
|
3
|
+
// turns "the terminal session that made these boxes" into a manager any client
|
|
4
|
+
// can attach to. 409 while the session still runs anywhere; 503 without tmux.
|
|
5
|
+
import { backendOrNull } from '../../../lib/backend';
|
|
6
|
+
import { timelineMeta } from '../../../lib/actor';
|
|
7
|
+
import { fail, failFromAction, ok } from '../../../lib/envelope';
|
|
8
|
+
import { TMUX_MISSING } from '@/lib/backend/errors';
|
|
9
|
+
|
|
10
|
+
export const runtime = 'nodejs';
|
|
11
|
+
export const dynamic = 'force-dynamic';
|
|
12
|
+
|
|
13
|
+
export async function POST(
|
|
14
|
+
req: Request,
|
|
15
|
+
ctx: { params: Promise<{ id: string }> },
|
|
16
|
+
): Promise<Response> {
|
|
17
|
+
const { id } = await ctx.params;
|
|
18
|
+
const backend = backendOrNull();
|
|
19
|
+
if (!backend) return fail('backend_unavailable', 'hub backend unavailable (run the hub server)');
|
|
20
|
+
const res = await backend.resumeManager(id, await timelineMeta(req, backend));
|
|
21
|
+
if (!res.ok) {
|
|
22
|
+
if (res.error === TMUX_MISSING) return fail('backend_unavailable', res.error);
|
|
23
|
+
return failFromAction(res.error);
|
|
24
|
+
}
|
|
25
|
+
return ok(res.manager);
|
|
26
|
+
}
|