@madarco/agentbox 0.31.4 → 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 +39 -0
- package/dist/_cloud-attach-6RKS3MAP.js +31 -0
- package/dist/{chunk-LR5RNEVO.js → chunk-27S7QLDF.js} +3 -3
- package/dist/{chunk-QT4MOS6R.js → chunk-2APGFWEU.js} +23 -23
- package/dist/{chunk-RUKTOHK7.js → chunk-3AYSA62C.js} +2 -2
- package/dist/{chunk-EXF4PLBN.js → chunk-3ISG5THX.js} +3 -3
- package/dist/{chunk-IFPTD73K.js → chunk-3L2DIPRM.js} +2 -2
- package/dist/{chunk-IQ6BQ2LX.js → chunk-4FOXMGJ7.js} +3 -3
- package/dist/{chunk-5UX2HAF4.js → chunk-5OKDSI6M.js} +43 -43
- package/dist/{chunk-KCDLAP5Q.js → chunk-66GAYIJZ.js} +3252 -936
- package/dist/chunk-66GAYIJZ.js.map +1 -0
- package/dist/{chunk-IF4VXKJK.js → chunk-6XMOBI5V.js} +3 -3
- package/dist/{chunk-OXBWZG2N.js → chunk-7QTBRHB7.js} +4 -4
- package/dist/{chunk-YSC4VY43.js → chunk-ANSPBIYG.js} +3 -3
- package/dist/{chunk-75JF44DH.js → chunk-AWI2TSWS.js} +2 -2
- package/dist/{chunk-2MBELUE6.js → chunk-CDRKQ5BH.js} +9 -9
- package/dist/{chunk-L567TKOK.js → chunk-CXAWPWGZ.js} +5 -5
- package/dist/{chunk-VWJBQGXD.js → chunk-EDJ6O6CI.js} +6 -6
- package/dist/{chunk-NKHRFR5G.js → chunk-GSMQL4IJ.js} +16 -16
- package/dist/chunk-GVNKIACA.js +223 -0
- package/dist/chunk-GVNKIACA.js.map +1 -0
- package/dist/{chunk-4Y365UYP.js → chunk-JWQYZ6V4.js} +2 -2
- package/dist/{chunk-AYREFYEF.js → chunk-KOTW7QQW.js} +4 -4
- package/dist/{chunk-BYZPRB7U.js → chunk-L4KBYI3I.js} +5 -5
- package/dist/{chunk-MJZPECVQ.js → chunk-M2DWTQRF.js} +2 -2
- package/dist/{chunk-PXH3DERD.js → chunk-MB2K74BI.js} +164 -2
- package/dist/chunk-MB2K74BI.js.map +1 -0
- package/dist/{chunk-GCS5XAPC.js → chunk-MI3V2MAE.js} +3 -3
- package/dist/{chunk-4LSLXBFN.js → chunk-MO3QJTVS.js} +6 -6
- package/dist/{chunk-AAMPHDB2.js → chunk-MPTE57BZ.js} +5 -5
- package/dist/{chunk-EP4IFSV5.js → chunk-PE5LPD23.js} +67 -24
- package/dist/chunk-PE5LPD23.js.map +1 -0
- package/dist/{chunk-M6VAID7T.js → chunk-QBVRWGXD.js} +2 -2
- package/dist/{chunk-4NO5MO2P.js → chunk-RIXW4HSE.js} +6 -6
- package/dist/{chunk-YL3VEQTS.js → chunk-S7LPQXR5.js} +5 -5
- package/dist/{chunk-CUIJ2PIN.js → chunk-TAZYSVLT.js} +26 -22
- package/dist/{chunk-CUIJ2PIN.js.map → chunk-TAZYSVLT.js.map} +1 -1
- package/dist/{chunk-QDVIMN57.js → chunk-TDPHZWJI.js} +4 -4
- package/dist/{chunk-IQMDGAMB.js → chunk-WLEGSKKE.js} +4 -4
- package/dist/{chunk-MBZ4UOWF.js → chunk-WTOG3CC6.js} +3 -3
- package/dist/{chunk-VQONUZE4.js → chunk-X6CO4WIX.js} +4 -4
- package/dist/{chunk-ENFWBFBI.js → chunk-XLJ4D4FI.js} +4 -4
- package/dist/{chunk-ZUTC2JZM.js → chunk-XNZ6UHTM.js} +27 -5
- package/dist/chunk-XNZ6UHTM.js.map +1 -0
- package/dist/{chunk-QWWDG5B7.js → chunk-XTNAIM7X.js} +6 -6
- package/dist/{chunk-X6SZPGL5.js → chunk-YNAJUTYC.js} +6 -6
- package/dist/{chunk-VOVRWIBC.js → chunk-YSACCMUB.js} +13 -13
- package/dist/{chunk-C67DVYWA.js → chunk-ZKOLV4ZN.js} +37 -2
- package/dist/chunk-ZKOLV4ZN.js.map +1 -0
- package/dist/{cli-KT5X4J74.js → cli-IFXU5XNZ.js} +8 -8
- package/dist/{cli-7JW54ZTA.js → cli-MZSWFSTW.js} +8 -8
- package/dist/{cli-7Z7BD23R.js → cli-O3WXOFNS.js} +7 -7
- package/dist/{cli-HFLU5QTD.js → cli-RQJUQJEP.js} +7 -7
- package/dist/{cli-XRF7WFE5.js → cli-ZGYSHJP7.js} +8 -8
- package/dist/cloud-backends.js +4 -4
- package/dist/{control-plane-DGLF4MBB.js → control-plane-3TII2JGM.js} +19 -19
- package/dist/{cp-hub-upload-7YESYCVS.js → cp-hub-upload-3W7Z4BMT.js} +6 -6
- package/dist/{custody-client-P7SCEDU2.js → custody-client-KYEZET6C.js} +4 -4
- package/dist/{deploy-hetzner-FOCNRRB2.js → deploy-hetzner-EO5PFKBG.js} +8 -8
- package/dist/{dist-MITAKWKQ.js → dist-3AR6L5MF.js} +7 -7
- package/dist/{dist-54VRDCUU.js → dist-4GHNQ2AK.js} +7 -7
- package/dist/{dist-63YBVZW4.js → dist-BFH537FO.js} +8 -8
- package/dist/{dist-TJJ6KBNZ.js → dist-ETGTZQUT.js} +255 -5
- package/dist/{dist-XSAPZOEG.js → dist-H2CSUDEI.js} +7 -7
- package/dist/{dist-CBPQZPQN.js → dist-IABCQB5D.js} +7 -7
- package/dist/{dist-2CAWJQT5.js → dist-JJZ3NZRO.js} +9 -5
- package/dist/{dist-E4VLIH3H.js → dist-RPBA2EL5.js} +7 -7
- package/dist/{dist-FHPNYDCF.js → dist-URWWHI3X.js} +8 -2
- package/dist/{dist-36WLI6E2.js → dist-V224SH3Z.js} +6 -6
- package/dist/{host-reach-drainer-XFLSMTSX.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-IYZ3WXYN.js → hub-adopt-HYXFUPPO.js} +6 -6
- package/dist/{hub-api-client-WOZ2BQ6H.js → hub-api-client-BI3E37CF.js} +3 -3
- package/dist/{hub-docker-target-IQHX6OYX.js → hub-docker-target-6ODSK7ZE.js} +13 -13
- package/dist/index.js +1223 -229
- package/dist/index.js.map +1 -1
- package/dist/{plugin-update-2ACFHFUI.js → plugin-update-LI3QDA4K.js} +4 -4
- package/dist/prepare-MYFNDJPP.js +45 -0
- package/dist/prepared-custody-WSHX6XTQ.js +39 -0
- package/dist/{prepared-state-FO74QUCP-PZLOM6HD.js → prepared-state-FO74QUCP-M4Q2X3KN.js} +3 -3
- package/dist/{publish-credentials-TO5IIW2T.js → publish-credentials-FCEQSIPE.js} +8 -8
- package/dist/{registry-X33JZU6B.js → registry-GG23NEBF.js} +4 -4
- package/dist/relay-YUOIK3HN.js +22 -0
- package/dist/{remote-docker-share-YADHIHXV.js → remote-docker-share-4Z4VVUPG.js} +10 -10
- package/dist/remote-docker-share-4Z4VVUPG.js.map +1 -0
- package/dist/{tool-grant-push-7G2QAN3J.js → tool-grant-push-A2JYLJVF.js} +3 -3
- package/package.json +1 -1
- package/runtime/_shared/ctl.cjs +1026 -309
- package/runtime/digitalocean/ctl.cjs +1026 -309
- package/runtime/docker/packages/ctl/dist/bin.cjs +1026 -309
- package/runtime/e2b/ctl.cjs +1026 -309
- package/runtime/hetzner/ctl.cjs +1026 -309
- 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]__028ifqb._.js → [root-of-the-server]__0-xlf9z._.js} +2 -2
- package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__074mxl5._.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_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_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-7JBH42LK.js → chunk-BR4WVGWJ.js} +2 -2
- package/runtime/hub/apps/hub/{chunk-AIFVVQPX.js → chunk-EVB2OTLU.js} +3311 -1031
- package/runtime/hub/apps/hub/{chunk-SM2XYDPL.js → chunk-FBNAIUXZ.js} +36 -1
- package/runtime/hub/apps/hub/{chunk-F6GOERHP.js → chunk-G2AEPH7C.js} +3 -3
- package/runtime/hub/apps/hub/{chunk-7IIG6MIB.js → chunk-JX5JUFSR.js} +9 -9
- package/runtime/hub/apps/hub/{chunk-AAF4CYVH.js → chunk-MD2UNTZR.js} +5 -5
- package/runtime/hub/apps/hub/{dist-DS5LGBGK.js → dist-3LDUYWPK.js} +7 -1
- package/runtime/hub/apps/hub/{dist-MQADLEEQ.js → dist-CJ6QFUFV.js} +4 -4
- package/runtime/hub/apps/hub/{dist-H7NIUVBD.js → dist-GGLWLMY6.js} +5 -5
- package/runtime/hub/apps/hub/{dist-YG4RVC24.js → dist-HLLYJGIT.js} +5 -5
- package/runtime/hub/apps/hub/{dist-VENYRIRW.js → dist-IIQU4I42.js} +4 -4
- package/runtime/hub/apps/hub/{dist-LV6CHJVA.js → dist-UFMCOK3W.js} +4 -4
- package/runtime/hub/apps/hub/{dist-BKCL4HAA.js → dist-XUNBQ4WM.js} +4 -4
- package/runtime/hub/apps/hub/{dist-YOTRYCRK.js → dist-Y2263LMY.js} +7 -3
- package/runtime/hub/apps/hub/{dist-RJBPZWSZ.js → dist-YV4M6NJO.js} +4 -4
- package/runtime/hub/apps/hub/{hub-worker-DLFLGKCV.js → hub-worker-LJYEEAJL.js} +6 -6
- 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-FZ6PT4LA.js → prepared-state-FO74QUCP-75UBPW5I.js} +2 -2
- package/runtime/hub/apps/hub/server.js +2032 -163
- 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 +1399 -616
- package/runtime/vercel/ctl.cjs +1026 -309
- package/share/host-skills/agentbox-info/SKILL.md +25 -4
- package/dist/_cloud-attach-B3BCOZ7U.js +0 -31
- package/dist/chunk-C67DVYWA.js.map +0 -1
- package/dist/chunk-EP4IFSV5.js.map +0 -1
- package/dist/chunk-KCDLAP5Q.js.map +0 -1
- package/dist/chunk-PXH3DERD.js.map +0 -1
- package/dist/chunk-ZUTC2JZM.js.map +0 -1
- package/dist/hub-OMGLWQEV.js +0 -39
- package/dist/prepare-OOZF37J6.js +0 -45
- package/dist/prepared-custody-E7CSZJ6V.js +0 -39
- package/dist/relay-7D5NOFKS.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-B3BCOZ7U.js.map → _cloud-attach-6RKS3MAP.js.map} +0 -0
- /package/dist/{chunk-LR5RNEVO.js.map → chunk-27S7QLDF.js.map} +0 -0
- /package/dist/{chunk-QT4MOS6R.js.map → chunk-2APGFWEU.js.map} +0 -0
- /package/dist/{chunk-RUKTOHK7.js.map → chunk-3AYSA62C.js.map} +0 -0
- /package/dist/{chunk-EXF4PLBN.js.map → chunk-3ISG5THX.js.map} +0 -0
- /package/dist/{chunk-IFPTD73K.js.map → chunk-3L2DIPRM.js.map} +0 -0
- /package/dist/{chunk-IQ6BQ2LX.js.map → chunk-4FOXMGJ7.js.map} +0 -0
- /package/dist/{chunk-5UX2HAF4.js.map → chunk-5OKDSI6M.js.map} +0 -0
- /package/dist/{chunk-IF4VXKJK.js.map → chunk-6XMOBI5V.js.map} +0 -0
- /package/dist/{chunk-OXBWZG2N.js.map → chunk-7QTBRHB7.js.map} +0 -0
- /package/dist/{chunk-YSC4VY43.js.map → chunk-ANSPBIYG.js.map} +0 -0
- /package/dist/{chunk-75JF44DH.js.map → chunk-AWI2TSWS.js.map} +0 -0
- /package/dist/{chunk-2MBELUE6.js.map → chunk-CDRKQ5BH.js.map} +0 -0
- /package/dist/{chunk-L567TKOK.js.map → chunk-CXAWPWGZ.js.map} +0 -0
- /package/dist/{chunk-VWJBQGXD.js.map → chunk-EDJ6O6CI.js.map} +0 -0
- /package/dist/{chunk-NKHRFR5G.js.map → chunk-GSMQL4IJ.js.map} +0 -0
- /package/dist/{chunk-4Y365UYP.js.map → chunk-JWQYZ6V4.js.map} +0 -0
- /package/dist/{chunk-AYREFYEF.js.map → chunk-KOTW7QQW.js.map} +0 -0
- /package/dist/{chunk-BYZPRB7U.js.map → chunk-L4KBYI3I.js.map} +0 -0
- /package/dist/{chunk-MJZPECVQ.js.map → chunk-M2DWTQRF.js.map} +0 -0
- /package/dist/{chunk-GCS5XAPC.js.map → chunk-MI3V2MAE.js.map} +0 -0
- /package/dist/{chunk-4LSLXBFN.js.map → chunk-MO3QJTVS.js.map} +0 -0
- /package/dist/{chunk-AAMPHDB2.js.map → chunk-MPTE57BZ.js.map} +0 -0
- /package/dist/{chunk-M6VAID7T.js.map → chunk-QBVRWGXD.js.map} +0 -0
- /package/dist/{chunk-4NO5MO2P.js.map → chunk-RIXW4HSE.js.map} +0 -0
- /package/dist/{chunk-YL3VEQTS.js.map → chunk-S7LPQXR5.js.map} +0 -0
- /package/dist/{chunk-QDVIMN57.js.map → chunk-TDPHZWJI.js.map} +0 -0
- /package/dist/{chunk-IQMDGAMB.js.map → chunk-WLEGSKKE.js.map} +0 -0
- /package/dist/{chunk-MBZ4UOWF.js.map → chunk-WTOG3CC6.js.map} +0 -0
- /package/dist/{chunk-VQONUZE4.js.map → chunk-X6CO4WIX.js.map} +0 -0
- /package/dist/{chunk-ENFWBFBI.js.map → chunk-XLJ4D4FI.js.map} +0 -0
- /package/dist/{chunk-QWWDG5B7.js.map → chunk-XTNAIM7X.js.map} +0 -0
- /package/dist/{chunk-X6SZPGL5.js.map → chunk-YNAJUTYC.js.map} +0 -0
- /package/dist/{chunk-VOVRWIBC.js.map → chunk-YSACCMUB.js.map} +0 -0
- /package/dist/{cli-7JW54ZTA.js.map → cli-IFXU5XNZ.js.map} +0 -0
- /package/dist/{cli-7Z7BD23R.js.map → cli-MZSWFSTW.js.map} +0 -0
- /package/dist/{cli-HFLU5QTD.js.map → cli-O3WXOFNS.js.map} +0 -0
- /package/dist/{cli-KT5X4J74.js.map → cli-RQJUQJEP.js.map} +0 -0
- /package/dist/{cli-XRF7WFE5.js.map → cli-ZGYSHJP7.js.map} +0 -0
- /package/dist/{control-plane-DGLF4MBB.js.map → control-plane-3TII2JGM.js.map} +0 -0
- /package/dist/{cp-hub-upload-7YESYCVS.js.map → cp-hub-upload-3W7Z4BMT.js.map} +0 -0
- /package/dist/{custody-client-P7SCEDU2.js.map → custody-client-KYEZET6C.js.map} +0 -0
- /package/dist/{deploy-hetzner-FOCNRRB2.js.map → deploy-hetzner-EO5PFKBG.js.map} +0 -0
- /package/dist/{dist-2CAWJQT5.js.map → dist-3AR6L5MF.js.map} +0 -0
- /package/dist/{dist-54VRDCUU.js.map → dist-4GHNQ2AK.js.map} +0 -0
- /package/dist/{dist-36WLI6E2.js.map → dist-BFH537FO.js.map} +0 -0
- /package/dist/{dist-63YBVZW4.js.map → dist-ETGTZQUT.js.map} +0 -0
- /package/dist/{dist-CBPQZPQN.js.map → dist-H2CSUDEI.js.map} +0 -0
- /package/dist/{dist-FHPNYDCF.js.map → dist-IABCQB5D.js.map} +0 -0
- /package/dist/{dist-MITAKWKQ.js.map → dist-JJZ3NZRO.js.map} +0 -0
- /package/dist/{dist-E4VLIH3H.js.map → dist-RPBA2EL5.js.map} +0 -0
- /package/dist/{dist-TJJ6KBNZ.js.map → dist-URWWHI3X.js.map} +0 -0
- /package/dist/{dist-XSAPZOEG.js.map → dist-V224SH3Z.js.map} +0 -0
- /package/dist/{host-reach-drainer-XFLSMTSX.js.map → host-reach-drainer-NYN3YXHG.js.map} +0 -0
- /package/dist/{hub-OMGLWQEV.js.map → host-session-YP5RKV6T.js.map} +0 -0
- /package/dist/{hub-adopt-IYZ3WXYN.js.map → hub-OWUC4IGW.js.map} +0 -0
- /package/dist/{hub-api-client-WOZ2BQ6H.js.map → hub-adopt-HYXFUPPO.js.map} +0 -0
- /package/dist/{prepare-OOZF37J6.js.map → hub-api-client-BI3E37CF.js.map} +0 -0
- /package/dist/{hub-docker-target-IQHX6OYX.js.map → hub-docker-target-6ODSK7ZE.js.map} +0 -0
- /package/dist/{plugin-update-2ACFHFUI.js.map → plugin-update-LI3QDA4K.js.map} +0 -0
- /package/dist/{prepared-custody-E7CSZJ6V.js.map → prepare-MYFNDJPP.js.map} +0 -0
- /package/dist/{prepared-state-FO74QUCP-PZLOM6HD.js.map → prepared-custody-WSHX6XTQ.js.map} +0 -0
- /package/dist/{registry-X33JZU6B.js.map → prepared-state-FO74QUCP-M4Q2X3KN.js.map} +0 -0
- /package/dist/{publish-credentials-TO5IIW2T.js.map → publish-credentials-FCEQSIPE.js.map} +0 -0
- /package/dist/{relay-7D5NOFKS.js.map → registry-GG23NEBF.js.map} +0 -0
- /package/dist/{remote-docker-share-YADHIHXV.js.map → relay-YUOIK3HN.js.map} +0 -0
- /package/dist/{tool-grant-push-7G2QAN3J.js.map → tool-grant-push-A2JYLJVF.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{o9_g9S5JH-r8bfNfmPa5H → QDhlg7V_fEVGv_NfM2cEJ}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{o9_g9S5JH-r8bfNfmPa5H → QDhlg7V_fEVGv_NfM2cEJ}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{o9_g9S5JH-r8bfNfmPa5H → QDhlg7V_fEVGv_NfM2cEJ}/_ssgManifest.js +0 -0
|
@@ -0,0 +1,1185 @@
|
|
|
1
|
+
import { execFileSync } from 'node:child_process';
|
|
2
|
+
import { mkdir, mkdtemp, readFile, realpath, rm, writeFile } from 'node:fs/promises';
|
|
3
|
+
import { tmpdir } from 'node:os';
|
|
4
|
+
import { join } from 'node:path';
|
|
5
|
+
import { beforeEach, describe, expect, it, vi } from 'vitest';
|
|
6
|
+
import { assertTempHome } from '../../../scripts/test-home.js';
|
|
7
|
+
import { backgroundSettled } from '../lib/backend/background';
|
|
8
|
+
import { createManagerBackend } from '../lib/backend/managers';
|
|
9
|
+
import { createWorkspaceBackend } from '../lib/backend/workspaces';
|
|
10
|
+
import { createGithubPrSync } from '../lib/backend/github-prs';
|
|
11
|
+
import {
|
|
12
|
+
aggregateTimeline,
|
|
13
|
+
branchUrlOf,
|
|
14
|
+
buildTimelineSummary,
|
|
15
|
+
createTimelineBackend,
|
|
16
|
+
liveReadyItems,
|
|
17
|
+
parseShortstat,
|
|
18
|
+
repoUrlOfPrUrl,
|
|
19
|
+
stampInWorkspace,
|
|
20
|
+
withBoxTimeline,
|
|
21
|
+
type RepoWebLookup,
|
|
22
|
+
} from '../lib/backend/timeline';
|
|
23
|
+
import type { BackendDeps, TimelineBoxFact } from '../lib/backend/deps';
|
|
24
|
+
import type { HubBackend } from '../lib/boxes/backend-types';
|
|
25
|
+
import { hashProjectPath } from '@agentbox/config';
|
|
26
|
+
import { scratchBranchName } from '@agentbox/sandbox-core';
|
|
27
|
+
import {
|
|
28
|
+
readTimeline,
|
|
29
|
+
readWorkspace,
|
|
30
|
+
recordTimelineEvent,
|
|
31
|
+
resolveWorkspaceDir,
|
|
32
|
+
timelineFile,
|
|
33
|
+
type TimelineEvent,
|
|
34
|
+
} from '@agentbox/relay';
|
|
35
|
+
|
|
36
|
+
const S1 = '5edc0ee0-ce9a-4e30-962d-bc630388d8bc';
|
|
37
|
+
const S2 = '6fdc0ee0-ce9a-4e30-962d-bc630388d8bc';
|
|
38
|
+
const S3 = '7fdc0ee0-ce9a-4e30-962d-bc630388d8bc';
|
|
39
|
+
const MGR = '0123456789abcdef';
|
|
40
|
+
|
|
41
|
+
let seq = 0;
|
|
42
|
+
function ev(over: Partial<TimelineEvent> & Pick<TimelineEvent, 'type'>): TimelineEvent {
|
|
43
|
+
seq += 1;
|
|
44
|
+
return {
|
|
45
|
+
id: `id${String(seq).padStart(4, '0')}`,
|
|
46
|
+
at: new Date(Date.UTC(2026, 8, 13, 10, 0, seq)).toISOString(),
|
|
47
|
+
actor: 'manager',
|
|
48
|
+
...over,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function created(taskId: string, over: Partial<TimelineEvent> = {}): TimelineEvent {
|
|
53
|
+
return ev({
|
|
54
|
+
type: 'task.created',
|
|
55
|
+
managerId: MGR,
|
|
56
|
+
turn: 12,
|
|
57
|
+
prompt: 'plan the checkout work',
|
|
58
|
+
task: { id: taskId, title: taskId, to: 'todo' },
|
|
59
|
+
taskIds: [taskId],
|
|
60
|
+
...over,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const pr = (number: number, over: Partial<NonNullable<TimelineEvent['pr']>> = {}) => ({
|
|
65
|
+
repo: 'o/r',
|
|
66
|
+
number,
|
|
67
|
+
title: `PR ${String(number)}`,
|
|
68
|
+
url: `https://github.com/o/r/pull/${String(number)}`,
|
|
69
|
+
base: 'main',
|
|
70
|
+
head: `agentbox/b${String(number)}`,
|
|
71
|
+
...over,
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
describe('aggregateTimeline', () => {
|
|
75
|
+
it('collapses 3+ task creates from one manager turn into one plan item', () => {
|
|
76
|
+
const items = aggregateTimeline([created('T-1'), created('T-2'), created('T-3')]);
|
|
77
|
+
expect(items).toHaveLength(1);
|
|
78
|
+
expect(items[0]).toMatchObject({
|
|
79
|
+
type: 'plan',
|
|
80
|
+
count: 3,
|
|
81
|
+
managerId: MGR,
|
|
82
|
+
turn: 12,
|
|
83
|
+
prompt: 'plan the checkout work',
|
|
84
|
+
taskIds: ['T-1', 'T-2', 'T-3'],
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
it('leaves two creates, other turns and creates outside the window alone', () => {
|
|
89
|
+
expect(aggregateTimeline([created('T-1'), created('T-2')]).map((i) => i.type)).toEqual([
|
|
90
|
+
'task.created',
|
|
91
|
+
'task.created',
|
|
92
|
+
]);
|
|
93
|
+
const spread = aggregateTimeline([
|
|
94
|
+
created('T-1'),
|
|
95
|
+
created('T-2', { turn: 13 }),
|
|
96
|
+
created('T-3', { at: '2026-09-13T11:00:00.000Z' }),
|
|
97
|
+
]);
|
|
98
|
+
expect(spread.every((i) => i.type === 'task.created')).toBe(true);
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
it('drops a move to in_progress that is just the assignment, and marks an approved merge', () => {
|
|
102
|
+
const items = aggregateTimeline([
|
|
103
|
+
ev({ type: 'task.assigned', taskIds: ['T-4'] }),
|
|
104
|
+
ev({ type: 'task.status', task: { id: 'T-4', title: 'x', from: 'todo', to: 'in_progress' } }),
|
|
105
|
+
ev({
|
|
106
|
+
type: 'manager.message',
|
|
107
|
+
actor: 'human',
|
|
108
|
+
managerId: MGR,
|
|
109
|
+
pr: pr(409),
|
|
110
|
+
text: 'Approved',
|
|
111
|
+
}),
|
|
112
|
+
ev({ type: 'pr.merged', actor: 'github', pr: pr(409) }),
|
|
113
|
+
ev({ type: 'pr.merged', actor: 'github', pr: pr(405) }),
|
|
114
|
+
]);
|
|
115
|
+
expect(items.map((i) => i.type)).toEqual([
|
|
116
|
+
'pr.merged',
|
|
117
|
+
'pr.merged',
|
|
118
|
+
'manager.message',
|
|
119
|
+
'task.assigned',
|
|
120
|
+
]);
|
|
121
|
+
expect(items.find((i) => i.pr?.number === 409)?.approvedByYou).toBe(true);
|
|
122
|
+
expect(items.find((i) => i.pr?.number === 405)?.approvedByYou).toBeUndefined();
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
it('matches a message by repo and number, and a repo-less one only when the number is unambiguous', () => {
|
|
126
|
+
const other = pr(409, { repo: 'o/other', url: 'https://github.com/o/other/pull/409' });
|
|
127
|
+
const merged = ev({ type: 'pr.merged', actor: 'github', pr: pr(409) });
|
|
128
|
+
const wrongRepo = ev({ type: 'manager.message', actor: 'human', pr: other });
|
|
129
|
+
expect(
|
|
130
|
+
aggregateTimeline([wrongRepo, merged]).find((i) => i.type === 'pr.merged')?.approvedByYou,
|
|
131
|
+
).toBeUndefined();
|
|
132
|
+
|
|
133
|
+
const bare = ev({ type: 'manager.message', actor: 'human', pr: pr(409, { repo: '' }) });
|
|
134
|
+
const single = aggregateTimeline([
|
|
135
|
+
bare,
|
|
136
|
+
ev({ type: 'pr.merged', actor: 'github', pr: pr(409) }),
|
|
137
|
+
]);
|
|
138
|
+
expect(single.find((i) => i.type === 'pr.merged')?.approvedByYou).toBe(true);
|
|
139
|
+
|
|
140
|
+
const ambiguous = aggregateTimeline([
|
|
141
|
+
ev({ type: 'pr.ready', actor: 'github', pr: other }),
|
|
142
|
+
bare,
|
|
143
|
+
ev({ type: 'pr.merged', actor: 'github', pr: pr(409) }),
|
|
144
|
+
]);
|
|
145
|
+
expect(ambiguous.find((i) => i.type === 'pr.merged')?.approvedByYou).toBeUndefined();
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
describe('live rows and summary', () => {
|
|
150
|
+
it('keeps a ready PR live until it merges, and marks it approved once messaged', () => {
|
|
151
|
+
const ready409 = ev({ type: 'pr.ready', actor: 'github', pr: pr(409), boxId: 'b1' });
|
|
152
|
+
const ready405 = ev({ type: 'pr.ready', actor: 'github', pr: pr(405) });
|
|
153
|
+
const merged405 = ev({ type: 'pr.merged', actor: 'github', pr: pr(405) });
|
|
154
|
+
expect(liveReadyItems([ready409, ready405, merged405])).toEqual([
|
|
155
|
+
expect.objectContaining({ type: 'pr.ready', boxId: 'b1', awaiting: true }),
|
|
156
|
+
]);
|
|
157
|
+
const message = ev({ type: 'manager.message', actor: 'human', pr: pr(409) });
|
|
158
|
+
expect(liveReadyItems([ready409, message])[0]?.approved).toBe(true);
|
|
159
|
+
// The last sync saw it go red: not awaiting anyone any more.
|
|
160
|
+
expect(liveReadyItems([ready409], () => 'open')).toEqual([]);
|
|
161
|
+
// No sync since the hub started: only a PR the sync already confirmed is live.
|
|
162
|
+
expect(liveReadyItems([ready409], () => undefined, false)).toEqual([]);
|
|
163
|
+
expect(liveReadyItems([ready409], () => 'ready', false)).toHaveLength(1);
|
|
164
|
+
const summary = buildTimelineSummary(
|
|
165
|
+
[ready409],
|
|
166
|
+
'2000-01-01T00:00:00.000Z',
|
|
167
|
+
liveReadyItems([ready409], () => undefined, false),
|
|
168
|
+
0,
|
|
169
|
+
);
|
|
170
|
+
expect(summary.awaiting).toBe(0);
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
it('sums merges and finished tasks since a time, and counts what awaits you', () => {
|
|
174
|
+
const events = [
|
|
175
|
+
ev({
|
|
176
|
+
type: 'pr.merged',
|
|
177
|
+
pr: pr(1, { additions: 100, deletions: 20 }),
|
|
178
|
+
at: '2026-09-13T09:00:00.000Z',
|
|
179
|
+
}),
|
|
180
|
+
ev({
|
|
181
|
+
type: 'pr.merged',
|
|
182
|
+
pr: pr(2, { additions: 5, deletions: 1 }),
|
|
183
|
+
at: '2026-09-13T12:00:00.000Z',
|
|
184
|
+
}),
|
|
185
|
+
ev({
|
|
186
|
+
type: 'task.status',
|
|
187
|
+
task: { id: 'T-1', title: 'x', to: 'done' },
|
|
188
|
+
at: '2026-09-13T12:00:00.000Z',
|
|
189
|
+
}),
|
|
190
|
+
];
|
|
191
|
+
const live = liveReadyItems([ev({ type: 'pr.ready', pr: pr(3) })]);
|
|
192
|
+
expect(buildTimelineSummary(events, '2026-09-13T10:00:00.000Z', live, 2)).toEqual({
|
|
193
|
+
since: '2026-09-13T10:00:00.000Z',
|
|
194
|
+
merged: 1,
|
|
195
|
+
additions: 5,
|
|
196
|
+
deletions: 1,
|
|
197
|
+
tasksDone: 1,
|
|
198
|
+
awaiting: 3,
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
it('parses git diff --shortstat', () => {
|
|
203
|
+
expect(parseShortstat(' 3 files changed, 84 insertions(+), 31 deletions(-)\n')).toEqual({
|
|
204
|
+
filesChanged: 3,
|
|
205
|
+
additions: 84,
|
|
206
|
+
deletions: 31,
|
|
207
|
+
});
|
|
208
|
+
expect(parseShortstat(' 1 file changed, 1 deletion(-)')).toEqual({
|
|
209
|
+
filesChanged: 1,
|
|
210
|
+
additions: 0,
|
|
211
|
+
deletions: 1,
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
// ── against the store ──
|
|
217
|
+
|
|
218
|
+
interface Harness {
|
|
219
|
+
deps: BackendDeps;
|
|
220
|
+
spawned: string[][];
|
|
221
|
+
tmux: Set<string>;
|
|
222
|
+
alive: Set<number>;
|
|
223
|
+
boxes: TimelineBoxFact[];
|
|
224
|
+
gh: ReturnType<typeof vi.fn>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
function harness(): Harness {
|
|
228
|
+
const spawned: string[][] = [];
|
|
229
|
+
const tmux = new Set<string>();
|
|
230
|
+
const alive = new Set<number>();
|
|
231
|
+
const boxes: TimelineBoxFact[] = [];
|
|
232
|
+
const gh = vi.fn(async (_args: string[]) => ({ exitCode: 1, stdout: '', stderr: 'no gh' }));
|
|
233
|
+
const deps: BackendDeps = {
|
|
234
|
+
notify: vi.fn(),
|
|
235
|
+
liveBoxIds: async () => new Set(boxes.map((b) => b.id)),
|
|
236
|
+
jobs: async () => [],
|
|
237
|
+
hostname: () => 'laptop',
|
|
238
|
+
isPidAlive: (pid) => alive.has(pid),
|
|
239
|
+
processStartTime: async () => undefined,
|
|
240
|
+
managerExec: async (_file, args) => {
|
|
241
|
+
spawned.push(args);
|
|
242
|
+
if (args[0] === 'new-session') tmux.add(args[3]!);
|
|
243
|
+
if (args[0] === 'has-session' && !tmux.has(args[2]!.slice(1))) throw new Error('no session');
|
|
244
|
+
return { exitCode: 0 };
|
|
245
|
+
},
|
|
246
|
+
boxFacts: async () => boxes,
|
|
247
|
+
boxFact: async (id) => boxes.find((b) => b.id === id),
|
|
248
|
+
boxDiffStat: async () => ({ filesChanged: 3, additions: 84, deletions: 31 }),
|
|
249
|
+
pendingApprovalBoxIds: () => [],
|
|
250
|
+
ghExec: gh,
|
|
251
|
+
};
|
|
252
|
+
return { deps, spawned, tmux, alive, boxes, gh };
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
function backends(h: Harness) {
|
|
256
|
+
const workspaces = createWorkspaceBackend(h.deps);
|
|
257
|
+
const managers = createManagerBackend(h.deps, {
|
|
258
|
+
workspaceView: (id) => workspaces.getWorkspace(id),
|
|
259
|
+
sessionTurn: async () => ({ turn: 41, prompt: 'hold B until A merges' }),
|
|
260
|
+
sleep: async () => {},
|
|
261
|
+
});
|
|
262
|
+
return { workspaces, managers };
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
async function folder(): Promise<string> {
|
|
266
|
+
const root = await realpath(await mkdtemp(join(tmpdir(), 'agentbox-hubtl-')));
|
|
267
|
+
await mkdir(join(root, '.git'), { recursive: true });
|
|
268
|
+
return root;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
beforeEach(async () => {
|
|
272
|
+
await rm(join(assertTempHome(), '.agentbox'), { recursive: true, force: true });
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
describe('timeline writes and reads', () => {
|
|
276
|
+
it('logs a manager plan, a note and gave-more-work, and shows the box working live', async () => {
|
|
277
|
+
const h = harness();
|
|
278
|
+
const { workspaces, managers } = backends(h);
|
|
279
|
+
const root = await folder();
|
|
280
|
+
h.alive.add(4242);
|
|
281
|
+
const detected = await managers.detectManager({
|
|
282
|
+
agent: 'claude',
|
|
283
|
+
sessionId: S1,
|
|
284
|
+
cwd: root,
|
|
285
|
+
pid: 4242,
|
|
286
|
+
host: 'laptop',
|
|
287
|
+
});
|
|
288
|
+
if (!detected.ok) throw new Error(detected.error);
|
|
289
|
+
const wsId = detected.workspace.id;
|
|
290
|
+
const stamp = await managers.timelineStamp({ agent: 'claude', sessionId: S1 }, wsId);
|
|
291
|
+
expect(stamp).toEqual({
|
|
292
|
+
actor: 'manager',
|
|
293
|
+
managerId: detected.manager.id,
|
|
294
|
+
turn: 41,
|
|
295
|
+
prompt: 'hold B until A merges',
|
|
296
|
+
});
|
|
297
|
+
expect(
|
|
298
|
+
await managers.timelineStamp({ agent: 'claude', sessionId: S1 }, 'ffffffffffffffff'),
|
|
299
|
+
).toBeUndefined();
|
|
300
|
+
|
|
301
|
+
for (const title of ['A', 'B', 'C']) {
|
|
302
|
+
const r = await workspaces.addTask(wsId, { title }, { stamp });
|
|
303
|
+
if (!r.ok) throw new Error(r.error);
|
|
304
|
+
}
|
|
305
|
+
h.boxes.push({
|
|
306
|
+
id: 'box1',
|
|
307
|
+
name: 'payment-retries',
|
|
308
|
+
branches: ['agentbox/payment-retries'],
|
|
309
|
+
state: 'running',
|
|
310
|
+
agent: 'claude',
|
|
311
|
+
projectRoot: root,
|
|
312
|
+
projectId: 'p1',
|
|
313
|
+
});
|
|
314
|
+
const assigned = await workspaces.assignTasks(
|
|
315
|
+
wsId,
|
|
316
|
+
['T-1'],
|
|
317
|
+
{ boxId: 'box1' },
|
|
318
|
+
{
|
|
319
|
+
stamp,
|
|
320
|
+
note: 'A first: B depends on it',
|
|
321
|
+
},
|
|
322
|
+
);
|
|
323
|
+
if (!assigned.ok) throw new Error(assigned.error);
|
|
324
|
+
await backgroundSettled();
|
|
325
|
+
const note = await managers.addManagerNote(detected.manager.id, {
|
|
326
|
+
text: 'holding B until A merges',
|
|
327
|
+
kind: 'replan',
|
|
328
|
+
});
|
|
329
|
+
if (!note.ok) throw new Error(note.error);
|
|
330
|
+
expect(note.event).toMatchObject({ type: 'manager.note', turn: 41, noteKind: 'replan' });
|
|
331
|
+
|
|
332
|
+
const timeline = createTimelineBackend(h.deps);
|
|
333
|
+
const res = await timeline.getTimeline(wsId, { since: '2000-01-01T00:00:00.000Z' });
|
|
334
|
+
expect(res?.github).toBe('syncing');
|
|
335
|
+
const types = res!.items.map((i) => i.type);
|
|
336
|
+
expect(types).toContain('plan');
|
|
337
|
+
expect(types).toContain('manager.joined');
|
|
338
|
+
expect(res!.items.find((i) => i.type === 'plan')).toMatchObject({
|
|
339
|
+
count: 3,
|
|
340
|
+
turn: 41,
|
|
341
|
+
managerId: detected.manager.id,
|
|
342
|
+
});
|
|
343
|
+
expect(res!.items.find((i) => i.type === 'task.assigned')).toMatchObject({
|
|
344
|
+
boxRunning: true,
|
|
345
|
+
boxName: 'payment-retries',
|
|
346
|
+
taskIds: ['T-1'],
|
|
347
|
+
});
|
|
348
|
+
expect(res!.items.filter((i) => i.type === 'manager.note').map((i) => i.text)).toEqual([
|
|
349
|
+
'holding B until A merges',
|
|
350
|
+
'A first: B depends on it',
|
|
351
|
+
]);
|
|
352
|
+
expect(res!.live).toEqual([
|
|
353
|
+
expect.objectContaining({
|
|
354
|
+
type: 'task.in_progress',
|
|
355
|
+
boxId: 'box1',
|
|
356
|
+
task: { id: 'T-1', title: 'A' },
|
|
357
|
+
filesChanged: 3,
|
|
358
|
+
}),
|
|
359
|
+
]);
|
|
360
|
+
expect(res!.summary).toMatchObject({ merged: 0, tasksDone: 0, awaiting: 0 });
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
it('syncs PRs from GitHub once, however often it runs', async () => {
|
|
364
|
+
const h = harness();
|
|
365
|
+
const { workspaces } = backends(h);
|
|
366
|
+
const root = await folder();
|
|
367
|
+
const added = await workspaces.addWorkspace({ path: root });
|
|
368
|
+
if (!added.ok) throw new Error(added.error);
|
|
369
|
+
h.boxes.push({
|
|
370
|
+
id: 'box1',
|
|
371
|
+
name: 'checkout-copy',
|
|
372
|
+
branches: ['agentbox/checkout-copy'],
|
|
373
|
+
state: 'running',
|
|
374
|
+
projectRoot: root,
|
|
375
|
+
projectId: 'p1',
|
|
376
|
+
});
|
|
377
|
+
const prs = [
|
|
378
|
+
{
|
|
379
|
+
number: 405,
|
|
380
|
+
title: 'Retry failed charges',
|
|
381
|
+
url: 'https://github.com/o/r/pull/405',
|
|
382
|
+
headRefName: 'agentbox/checkout-copy',
|
|
383
|
+
baseRefName: 'main',
|
|
384
|
+
state: 'MERGED',
|
|
385
|
+
createdAt: new Date(Date.now() - 3_600_000).toISOString(),
|
|
386
|
+
mergedAt: new Date(Date.now() - 60_000).toISOString(),
|
|
387
|
+
additions: 196,
|
|
388
|
+
deletions: 52,
|
|
389
|
+
statusCheckRollup: [{ status: 'COMPLETED', conclusion: 'SUCCESS' }],
|
|
390
|
+
mergeStateStatus: 'UNKNOWN',
|
|
391
|
+
autoMergeRequest: { enabledAt: 'x' },
|
|
392
|
+
mergedBy: { login: 'me' },
|
|
393
|
+
author: { login: 'someone' },
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
number: 409,
|
|
397
|
+
title: 'Checkout copy',
|
|
398
|
+
url: 'https://github.com/o/r/pull/409',
|
|
399
|
+
headRefName: 'feature/by-me',
|
|
400
|
+
baseRefName: 'main',
|
|
401
|
+
state: 'OPEN',
|
|
402
|
+
createdAt: new Date(Date.now() - 600_000).toISOString(),
|
|
403
|
+
additions: 84,
|
|
404
|
+
deletions: 31,
|
|
405
|
+
statusCheckRollup: [{ state: 'SUCCESS' }],
|
|
406
|
+
mergeStateStatus: 'CLEAN',
|
|
407
|
+
author: { login: 'me' },
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
number: 410,
|
|
411
|
+
title: 'Someone else, unknown branch',
|
|
412
|
+
url: 'https://github.com/o/r/pull/410',
|
|
413
|
+
headRefName: 'other',
|
|
414
|
+
baseRefName: 'main',
|
|
415
|
+
state: 'OPEN',
|
|
416
|
+
author: { login: 'stranger' },
|
|
417
|
+
},
|
|
418
|
+
];
|
|
419
|
+
h.gh.mockImplementation(async (args: string[]) => {
|
|
420
|
+
if (args[0] === 'api') return { exitCode: 0, stdout: 'me\n', stderr: '' };
|
|
421
|
+
if (args[0] === 'repo') {
|
|
422
|
+
return {
|
|
423
|
+
exitCode: 0,
|
|
424
|
+
stdout: JSON.stringify({ nameWithOwner: 'o/r', url: 'https://github.com/o/r' }),
|
|
425
|
+
stderr: '',
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
return { exitCode: 0, stdout: JSON.stringify(prs), stderr: '' };
|
|
429
|
+
});
|
|
430
|
+
const sync = createGithubPrSync(h.deps);
|
|
431
|
+
const ws = (await readWorkspace(added.workspace.id))!;
|
|
432
|
+
expect(await sync.syncNow(ws)).toBe('ok');
|
|
433
|
+
expect(await sync.syncNow(ws)).toBe('ok');
|
|
434
|
+
const events = await readTimeline(ws.id);
|
|
435
|
+
expect(events.filter((e) => e.type === 'pr.merged')).toHaveLength(1);
|
|
436
|
+
expect(events.find((e) => e.type === 'pr.merged')).toMatchObject({
|
|
437
|
+
actor: 'github',
|
|
438
|
+
boxId: 'box1',
|
|
439
|
+
boxName: 'checkout-copy',
|
|
440
|
+
pr: { number: 405, additions: 196, deletions: 52, autoMerge: true, mergedBy: 'me' },
|
|
441
|
+
});
|
|
442
|
+
expect(events.find((e) => e.type === 'pr.ready')?.pr?.number).toBe(409);
|
|
443
|
+
expect(events.some((e) => e.pr?.number === 410)).toBe(false);
|
|
444
|
+
|
|
445
|
+
const timeline = createTimelineBackend(h.deps, { sync });
|
|
446
|
+
const res = await timeline.getTimeline(ws.id);
|
|
447
|
+
expect(res!.live.find((l) => l.type === 'pr.ready')).toMatchObject({
|
|
448
|
+
pr: expect.objectContaining({ number: 409 }),
|
|
449
|
+
awaiting: true,
|
|
450
|
+
});
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
it('starts no GitHub sync on a sync=0 read, and reports the last status', async () => {
|
|
454
|
+
const h = harness();
|
|
455
|
+
const { workspaces } = backends(h);
|
|
456
|
+
const added = await workspaces.addWorkspace({ path: await folder() });
|
|
457
|
+
if (!added.ok) throw new Error(added.error);
|
|
458
|
+
const sync = createGithubPrSync(h.deps);
|
|
459
|
+
const timeline = createTimelineBackend(h.deps, { sync });
|
|
460
|
+
const res = await timeline.getTimeline(added.workspace.id, { limit: 2, sync: false });
|
|
461
|
+
expect(res!.github).toBe('syncing');
|
|
462
|
+
await backgroundSettled();
|
|
463
|
+
expect(h.gh).not.toHaveBeenCalled();
|
|
464
|
+
|
|
465
|
+
expect(await sync.syncNow((await readWorkspace(added.workspace.id))!)).toBe('unavailable');
|
|
466
|
+
h.gh.mockClear();
|
|
467
|
+
const after = await timeline.getTimeline(added.workspace.id, { sync: false });
|
|
468
|
+
expect(after!.github).toBe('unavailable');
|
|
469
|
+
expect(h.gh).not.toHaveBeenCalled();
|
|
470
|
+
});
|
|
471
|
+
|
|
472
|
+
it('reports GitHub unavailable when gh is not logged in', async () => {
|
|
473
|
+
const h = harness();
|
|
474
|
+
const { workspaces } = backends(h);
|
|
475
|
+
const added = await workspaces.addWorkspace({ path: await folder() });
|
|
476
|
+
if (!added.ok) throw new Error(added.error);
|
|
477
|
+
const sync = createGithubPrSync(h.deps);
|
|
478
|
+
expect(await sync.syncNow((await readWorkspace(added.workspace.id))!)).toBe('unavailable');
|
|
479
|
+
});
|
|
480
|
+
});
|
|
481
|
+
|
|
482
|
+
describe('sendManagerMessage', () => {
|
|
483
|
+
it('types into a running hub-run manager and logs the message with its PR', async () => {
|
|
484
|
+
const h = harness();
|
|
485
|
+
const { workspaces, managers } = backends(h);
|
|
486
|
+
const added = await workspaces.addWorkspace({ path: await folder() });
|
|
487
|
+
if (!added.ok) throw new Error(added.error);
|
|
488
|
+
const started = await managers.startManager(added.workspace.id, { agent: 'claude' });
|
|
489
|
+
if (!started.ok) throw new Error(started.error);
|
|
490
|
+
const res = await managers.sendManagerMessage(started.manager.id, {
|
|
491
|
+
text: 'Approved: merge PR #409',
|
|
492
|
+
prNumber: 409,
|
|
493
|
+
});
|
|
494
|
+
if (!res.ok) throw new Error(res.error);
|
|
495
|
+
expect(res.delivered).toBe('session');
|
|
496
|
+
const session = `=agentbox-manager-${started.manager.id}:`;
|
|
497
|
+
expect(h.spawned).toContainEqual([
|
|
498
|
+
'send-keys',
|
|
499
|
+
'-t',
|
|
500
|
+
session,
|
|
501
|
+
'-l',
|
|
502
|
+
'--',
|
|
503
|
+
'Approved: merge PR #409',
|
|
504
|
+
]);
|
|
505
|
+
expect(h.spawned).toContainEqual(['send-keys', '-t', session, 'Enter']);
|
|
506
|
+
expect(res.event).toMatchObject({
|
|
507
|
+
type: 'manager.message',
|
|
508
|
+
actor: 'human',
|
|
509
|
+
pr: { number: 409 },
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
it('refuses an external manager with no pane as unreachable, and types into one with a pane', async () => {
|
|
514
|
+
const h = harness();
|
|
515
|
+
const { managers } = backends(h);
|
|
516
|
+
const root = await folder();
|
|
517
|
+
h.alive.add(7);
|
|
518
|
+
const bare = await managers.detectManager({
|
|
519
|
+
agent: 'claude',
|
|
520
|
+
sessionId: S1,
|
|
521
|
+
cwd: root,
|
|
522
|
+
pid: 7,
|
|
523
|
+
host: 'laptop',
|
|
524
|
+
});
|
|
525
|
+
if (!bare.ok) throw new Error(bare.error);
|
|
526
|
+
const refused = await managers.sendManagerMessage(bare.manager.id, { text: 'hello' });
|
|
527
|
+
expect(refused).toMatchObject({ ok: false, code: 'manager_unreachable' });
|
|
528
|
+
|
|
529
|
+
const paned = await managers.detectManager({
|
|
530
|
+
agent: 'claude',
|
|
531
|
+
sessionId: S1,
|
|
532
|
+
cwd: root,
|
|
533
|
+
pid: 7,
|
|
534
|
+
host: 'laptop',
|
|
535
|
+
tmuxPane: '%5',
|
|
536
|
+
});
|
|
537
|
+
if (!paned.ok) throw new Error(paned.error);
|
|
538
|
+
const sent = await managers.sendManagerMessage(paned.manager.id, { text: 'hello' });
|
|
539
|
+
expect(sent).toMatchObject({ ok: true, delivered: 'pane' });
|
|
540
|
+
expect(h.spawned).toContainEqual(['send-keys', '-t', '%5', '-l', '--', 'hello']);
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
it('resumes a stopped manager with the message as its prompt', async () => {
|
|
544
|
+
const h = harness();
|
|
545
|
+
const { managers } = backends(h);
|
|
546
|
+
const root = await folder();
|
|
547
|
+
const detected = await managers.detectManager({
|
|
548
|
+
agent: 'claude',
|
|
549
|
+
sessionId: S1,
|
|
550
|
+
cwd: root,
|
|
551
|
+
pid: 8,
|
|
552
|
+
host: 'laptop',
|
|
553
|
+
});
|
|
554
|
+
if (!detected.ok) throw new Error(detected.error);
|
|
555
|
+
const res = await managers.sendManagerMessage(detected.manager.id, { text: 'keep going' });
|
|
556
|
+
expect(res).toMatchObject({ ok: true, delivered: 'resumed' });
|
|
557
|
+
const start = h.spawned.find((a) => a[0] === 'new-session');
|
|
558
|
+
expect(start?.at(-1)).toContain(`'--resume' '${S1}' 'keep going'`);
|
|
559
|
+
});
|
|
560
|
+
});
|
|
561
|
+
|
|
562
|
+
describe('diffs on the live rows', () => {
|
|
563
|
+
it('leaves the diff off a row whose exec is slow, and shares one exec between reads', async () => {
|
|
564
|
+
const h = harness();
|
|
565
|
+
const { workspaces } = backends(h);
|
|
566
|
+
const root = await folder();
|
|
567
|
+
const added = await workspaces.addWorkspace({ path: root });
|
|
568
|
+
if (!added.ok) throw new Error(added.error);
|
|
569
|
+
const wsId = added.workspace.id;
|
|
570
|
+
for (const id of ['box1', 'box2']) {
|
|
571
|
+
h.boxes.push({
|
|
572
|
+
id,
|
|
573
|
+
name: id,
|
|
574
|
+
branches: [`agentbox/${id}`],
|
|
575
|
+
state: 'running',
|
|
576
|
+
projectRoot: root,
|
|
577
|
+
projectId: 'p1',
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
for (const [title, boxId] of [
|
|
581
|
+
['A', 'box1'],
|
|
582
|
+
['B', 'box2'],
|
|
583
|
+
] as const) {
|
|
584
|
+
const t = await workspaces.addTask(wsId, { title });
|
|
585
|
+
if (!t.ok) throw new Error(t.error);
|
|
586
|
+
const a = await workspaces.assignTasks(wsId, [t.task.id], { boxId });
|
|
587
|
+
if (!a.ok) throw new Error(a.error);
|
|
588
|
+
}
|
|
589
|
+
await backgroundSettled();
|
|
590
|
+
let release: (v: {
|
|
591
|
+
filesChanged: number;
|
|
592
|
+
additions: number;
|
|
593
|
+
deletions: number;
|
|
594
|
+
}) => void = () => {};
|
|
595
|
+
const slow = new Promise<{ filesChanged: number; additions: number; deletions: number }>(
|
|
596
|
+
(resolve) => {
|
|
597
|
+
release = resolve;
|
|
598
|
+
},
|
|
599
|
+
);
|
|
600
|
+
const calls: string[] = [];
|
|
601
|
+
h.deps.boxDiffStat = async (box) => {
|
|
602
|
+
calls.push(box.id);
|
|
603
|
+
return box.id === 'box1' ? slow : { filesChanged: 1, additions: 2, deletions: 3 };
|
|
604
|
+
};
|
|
605
|
+
const timeline = createTimelineBackend(h.deps, { diffTimeoutMs: 30 });
|
|
606
|
+
const [first, second] = await Promise.all([
|
|
607
|
+
timeline.getTimeline(wsId),
|
|
608
|
+
timeline.getTimeline(wsId),
|
|
609
|
+
]);
|
|
610
|
+
for (const res of [first, second]) {
|
|
611
|
+
const rows = res!.live.filter((l) => l.type === 'task.in_progress');
|
|
612
|
+
expect(rows.find((l) => l.boxId === 'box1')?.filesChanged).toBeUndefined();
|
|
613
|
+
expect(rows.find((l) => l.boxId === 'box2')?.filesChanged).toBe(1);
|
|
614
|
+
}
|
|
615
|
+
expect(calls.sort()).toEqual(['box1', 'box2']);
|
|
616
|
+
release({ filesChanged: 9, additions: 9, deletions: 9 });
|
|
617
|
+
const later = await timeline.getTimeline(wsId);
|
|
618
|
+
expect(later!.live.find((l) => l.boxId === 'box1')?.filesChanged).toBe(9);
|
|
619
|
+
expect(calls).toHaveLength(2);
|
|
620
|
+
});
|
|
621
|
+
});
|
|
622
|
+
|
|
623
|
+
describe('stamps from routes that do not name a workspace', () => {
|
|
624
|
+
function fakeHub(): HubBackend {
|
|
625
|
+
const okResult = async () => ({ ok: true as const });
|
|
626
|
+
return {
|
|
627
|
+
create: async () => ({ ok: true as const, jobId: 'job1' }),
|
|
628
|
+
start: okResult,
|
|
629
|
+
stop: okResult,
|
|
630
|
+
destroy: okResult,
|
|
631
|
+
gitPush: okResult,
|
|
632
|
+
gitPushHost: okResult,
|
|
633
|
+
gitCheckout: okResult,
|
|
634
|
+
gitNewBranch: okResult,
|
|
635
|
+
} as unknown as HubBackend;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
it("never writes another workspace's manager into a log, and a create keeps its named manager", async () => {
|
|
639
|
+
const h = harness();
|
|
640
|
+
const { managers } = backends(h);
|
|
641
|
+
const root1 = await folder();
|
|
642
|
+
const root2 = await folder();
|
|
643
|
+
const detect = async (sessionId: string, cwd: string) => {
|
|
644
|
+
const d = await managers.detectManager({ agent: 'claude', sessionId, cwd, host: 'laptop' });
|
|
645
|
+
if (!d.ok) throw new Error(d.error);
|
|
646
|
+
return d;
|
|
647
|
+
};
|
|
648
|
+
const a = await detect(S1, root1);
|
|
649
|
+
const c = await detect(S3, root1);
|
|
650
|
+
const b = await detect(S2, root2);
|
|
651
|
+
expect(a.workspace.id).not.toBe(b.workspace.id);
|
|
652
|
+
const ws1 = a.workspace.id;
|
|
653
|
+
|
|
654
|
+
const foreign = await stampInWorkspace(
|
|
655
|
+
{ session: { agent: 'claude', sessionId: S2 } },
|
|
656
|
+
ws1,
|
|
657
|
+
managers.timelineStamp,
|
|
658
|
+
);
|
|
659
|
+
expect(foreign).toEqual({ actor: 'human' });
|
|
660
|
+
expect(
|
|
661
|
+
await stampInWorkspace(
|
|
662
|
+
{ stamp: { actor: 'manager', managerId: b.manager.id } },
|
|
663
|
+
ws1,
|
|
664
|
+
managers.timelineStamp,
|
|
665
|
+
),
|
|
666
|
+
).toEqual({ actor: 'human' });
|
|
667
|
+
|
|
668
|
+
h.boxes.push({
|
|
669
|
+
id: 'box1',
|
|
670
|
+
name: 'box-one',
|
|
671
|
+
branches: ['agentbox/box-one'],
|
|
672
|
+
state: 'running',
|
|
673
|
+
projectRoot: root1,
|
|
674
|
+
projectId: 'p1',
|
|
675
|
+
});
|
|
676
|
+
const hub = withBoxTimeline(fakeHub(), { deps: h.deps, stampFor: managers.timelineStamp });
|
|
677
|
+
await hub.start('box1', { session: { agent: 'claude', sessionId: S2 } });
|
|
678
|
+
await hub.stop('box1', { session: { agent: 'claude', sessionId: S1 } });
|
|
679
|
+
const projectId = (await readWorkspace(ws1))!.projectIds[0]!;
|
|
680
|
+
await hub.create(
|
|
681
|
+
{ projectId, managerId: c.manager.id, agent: 'claude', name: 'made' } as Parameters<
|
|
682
|
+
HubBackend['create']
|
|
683
|
+
>[0],
|
|
684
|
+
{ session: { agent: 'claude', sessionId: S1 } },
|
|
685
|
+
);
|
|
686
|
+
await backgroundSettled();
|
|
687
|
+
|
|
688
|
+
const events = await readTimeline(ws1);
|
|
689
|
+
const started = events.find((e) => e.type === 'box.started');
|
|
690
|
+
expect(started).toMatchObject({ actor: 'human', boxName: 'box-one' });
|
|
691
|
+
expect(started?.managerId).toBeUndefined();
|
|
692
|
+
expect(started?.turn).toBeUndefined();
|
|
693
|
+
expect(events.find((e) => e.type === 'box.stopped')).toMatchObject({
|
|
694
|
+
actor: 'manager',
|
|
695
|
+
managerId: a.manager.id,
|
|
696
|
+
turn: 41,
|
|
697
|
+
});
|
|
698
|
+
expect(events.find((e) => e.type === 'box.created')).toMatchObject({
|
|
699
|
+
actor: 'manager',
|
|
700
|
+
managerId: c.manager.id,
|
|
701
|
+
});
|
|
702
|
+
expect((await readTimeline(b.workspace.id)).some((e) => e.type.startsWith('box.'))).toBe(false);
|
|
703
|
+
});
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
describe('push rows', () => {
|
|
707
|
+
it('records the lines a push moved, and a push-host from the merge base', async () => {
|
|
708
|
+
const h = harness();
|
|
709
|
+
const { managers } = backends(h);
|
|
710
|
+
const root = await realpath(await mkdtemp(join(tmpdir(), 'agentbox-hubpush-')));
|
|
711
|
+
const git = (...args: string[]): string =>
|
|
712
|
+
execFileSync(
|
|
713
|
+
'git',
|
|
714
|
+
[
|
|
715
|
+
'-c',
|
|
716
|
+
'user.name=t',
|
|
717
|
+
'-c',
|
|
718
|
+
'user.email=t@t',
|
|
719
|
+
'-c',
|
|
720
|
+
'commit.gpgsign=false',
|
|
721
|
+
'-C',
|
|
722
|
+
root,
|
|
723
|
+
...args,
|
|
724
|
+
],
|
|
725
|
+
{ encoding: 'utf8' },
|
|
726
|
+
).trim();
|
|
727
|
+
const commit = async (file: string, lines: number): Promise<string> => {
|
|
728
|
+
await writeFile(join(root, file), 'x\n'.repeat(lines));
|
|
729
|
+
git('add', file);
|
|
730
|
+
git('commit', '-q', '-m', file);
|
|
731
|
+
return git('rev-parse', 'HEAD');
|
|
732
|
+
};
|
|
733
|
+
git('init', '-q', '-b', 'main');
|
|
734
|
+
await commit('base.txt', 2);
|
|
735
|
+
git('checkout', '-q', '-b', 'agentbox/box-one');
|
|
736
|
+
git('update-ref', 'refs/remotes/origin/agentbox/box-one', await commit('a.txt', 5));
|
|
737
|
+
const next = await commit('b.txt', 3);
|
|
738
|
+
const d = await managers.detectManager({
|
|
739
|
+
agent: 'claude',
|
|
740
|
+
sessionId: S1,
|
|
741
|
+
cwd: root,
|
|
742
|
+
host: 'laptop',
|
|
743
|
+
});
|
|
744
|
+
if (!d.ok) throw new Error(d.error);
|
|
745
|
+
h.boxes.push({
|
|
746
|
+
id: 'box1',
|
|
747
|
+
name: 'box-one',
|
|
748
|
+
branches: ['agentbox/box-one'],
|
|
749
|
+
state: 'running',
|
|
750
|
+
projectRoot: root,
|
|
751
|
+
projectId: 'p1',
|
|
752
|
+
});
|
|
753
|
+
const okResult = async () => ({ ok: true as const });
|
|
754
|
+
const hub = withBoxTimeline(
|
|
755
|
+
{
|
|
756
|
+
create: okResult,
|
|
757
|
+
start: okResult,
|
|
758
|
+
stop: okResult,
|
|
759
|
+
destroy: okResult,
|
|
760
|
+
gitPush: async () => {
|
|
761
|
+
git('update-ref', 'refs/remotes/origin/agentbox/box-one', next);
|
|
762
|
+
return { ok: true as const };
|
|
763
|
+
},
|
|
764
|
+
gitPushHost: async () => {
|
|
765
|
+
git('branch', 'landed', next);
|
|
766
|
+
return { ok: true as const };
|
|
767
|
+
},
|
|
768
|
+
gitCheckout: okResult,
|
|
769
|
+
gitNewBranch: okResult,
|
|
770
|
+
} as unknown as HubBackend,
|
|
771
|
+
{ deps: h.deps, stampFor: managers.timelineStamp },
|
|
772
|
+
);
|
|
773
|
+
await hub.gitPush('box1', {});
|
|
774
|
+
await hub.gitPushHost('box1', { as: 'landed' });
|
|
775
|
+
await backgroundSettled();
|
|
776
|
+
|
|
777
|
+
const pushes = (await readTimeline(d.workspace.id)).filter((e) => e.type === 'git.push');
|
|
778
|
+
// The push moved origin's ref by b.txt; the landing had no old tip, so it is measured from main.
|
|
779
|
+
expect(pushes.map((e) => [e.additions, e.deletions]).sort()).toEqual([
|
|
780
|
+
[3, 0],
|
|
781
|
+
[8, 0],
|
|
782
|
+
]);
|
|
783
|
+
});
|
|
784
|
+
});
|
|
785
|
+
|
|
786
|
+
describe('a push on a box hydrated during the push', () => {
|
|
787
|
+
it('still records the push row, without a diff', async () => {
|
|
788
|
+
const h = harness();
|
|
789
|
+
const { managers } = backends(h);
|
|
790
|
+
const root = await folder();
|
|
791
|
+
const d = await managers.detectManager({
|
|
792
|
+
agent: 'claude',
|
|
793
|
+
sessionId: S1,
|
|
794
|
+
cwd: root,
|
|
795
|
+
host: 'laptop',
|
|
796
|
+
});
|
|
797
|
+
if (!d.ok) throw new Error(d.error);
|
|
798
|
+
const okResult = async () => ({ ok: true as const });
|
|
799
|
+
const hub = withBoxTimeline(
|
|
800
|
+
{
|
|
801
|
+
create: okResult,
|
|
802
|
+
start: okResult,
|
|
803
|
+
stop: okResult,
|
|
804
|
+
destroy: okResult,
|
|
805
|
+
// The box is only known once the op registered it from the Store.
|
|
806
|
+
gitPush: async () => {
|
|
807
|
+
h.boxes.push({
|
|
808
|
+
id: 'box1',
|
|
809
|
+
name: 'box-one',
|
|
810
|
+
branches: ['agentbox/box-one'],
|
|
811
|
+
state: 'running',
|
|
812
|
+
projectRoot: root,
|
|
813
|
+
projectId: 'p1',
|
|
814
|
+
});
|
|
815
|
+
return { ok: true as const };
|
|
816
|
+
},
|
|
817
|
+
gitPushHost: okResult,
|
|
818
|
+
gitCheckout: okResult,
|
|
819
|
+
gitNewBranch: okResult,
|
|
820
|
+
} as unknown as HubBackend,
|
|
821
|
+
{ deps: h.deps, stampFor: managers.timelineStamp },
|
|
822
|
+
);
|
|
823
|
+
await hub.gitPush('box1', {});
|
|
824
|
+
await backgroundSettled();
|
|
825
|
+
|
|
826
|
+
const pushes = (await readTimeline(d.workspace.id)).filter((e) => e.type === 'git.push');
|
|
827
|
+
expect(pushes).toHaveLength(1);
|
|
828
|
+
expect(pushes[0]).toMatchObject({ boxId: 'box1', boxName: 'box-one' });
|
|
829
|
+
expect(pushes[0]!.additions).toBeUndefined();
|
|
830
|
+
});
|
|
831
|
+
});
|
|
832
|
+
|
|
833
|
+
describe('a message about a PR in a workspace over several repos', () => {
|
|
834
|
+
it('ties the message to the repo it names, and to none when the number alone is ambiguous', async () => {
|
|
835
|
+
const h = harness();
|
|
836
|
+
const { workspaces, managers } = backends(h);
|
|
837
|
+
const added = await workspaces.addWorkspace({ path: await folder() });
|
|
838
|
+
if (!added.ok) throw new Error(added.error);
|
|
839
|
+
const wsId = added.workspace.id;
|
|
840
|
+
const { recordTimelineEvent } = await import('@agentbox/relay');
|
|
841
|
+
await recordTimelineEvent(wsId, { type: 'pr.ready', actor: 'github', pr: pr(12) });
|
|
842
|
+
await recordTimelineEvent(wsId, {
|
|
843
|
+
type: 'pr.ready',
|
|
844
|
+
actor: 'github',
|
|
845
|
+
pr: pr(12, { repo: 'o/web', url: 'https://github.com/o/web/pull/12' }),
|
|
846
|
+
});
|
|
847
|
+
const started = await managers.startManager(wsId, { agent: 'claude' });
|
|
848
|
+
if (!started.ok) throw new Error(started.error);
|
|
849
|
+
const named = await managers.sendManagerMessage(started.manager.id, {
|
|
850
|
+
text: 'merge it',
|
|
851
|
+
prNumber: 12,
|
|
852
|
+
repo: 'o/web',
|
|
853
|
+
});
|
|
854
|
+
if (!named.ok) throw new Error(named.error);
|
|
855
|
+
expect(named.event?.pr).toMatchObject({ repo: 'o/web', number: 12, title: 'PR 12' });
|
|
856
|
+
const bare = await managers.sendManagerMessage(started.manager.id, {
|
|
857
|
+
text: 'merge 12',
|
|
858
|
+
prNumber: 12,
|
|
859
|
+
});
|
|
860
|
+
if (!bare.ok) throw new Error(bare.error);
|
|
861
|
+
expect(bare.event?.pr).toMatchObject({ repo: '', number: 12 });
|
|
862
|
+
const live = liveReadyItems(await readTimeline(wsId));
|
|
863
|
+
expect(live.find((l) => l.pr?.repo === 'o/web')?.approved).toBe(true);
|
|
864
|
+
expect(live.find((l) => l.pr?.repo === 'o/r')?.approved).toBeUndefined();
|
|
865
|
+
});
|
|
866
|
+
});
|
|
867
|
+
|
|
868
|
+
describe('branch links', () => {
|
|
869
|
+
const none: RepoWebLookup = {
|
|
870
|
+
repo: () => undefined,
|
|
871
|
+
project: () => undefined,
|
|
872
|
+
box: () => undefined,
|
|
873
|
+
};
|
|
874
|
+
const lookup: RepoWebLookup = {
|
|
875
|
+
repo: (r) =>
|
|
876
|
+
r === 'acme/storefront-web' ? 'https://github.com/acme/storefront-web' : undefined,
|
|
877
|
+
project: (id) => (id === 'p1' ? 'https://ghe.acme.dev/acme/api' : undefined),
|
|
878
|
+
box: (id) => (id === 'box1' ? 'https://github.com/acme/box-repo' : undefined),
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
it("takes a PR row's repo from its URL, on whatever host it names", () => {
|
|
882
|
+
expect(repoUrlOfPrUrl('https://ghe.acme.dev/acme/api/pull/12')).toBe(
|
|
883
|
+
'https://ghe.acme.dev/acme/api',
|
|
884
|
+
);
|
|
885
|
+
expect(repoUrlOfPrUrl('https://github.com/acme/api/issues/12')).toBeUndefined();
|
|
886
|
+
const row = {
|
|
887
|
+
pr: pr(409, {
|
|
888
|
+
repo: 'acme/storefront-web',
|
|
889
|
+
url: 'https://github.com/acme/storefront-web/pull/409',
|
|
890
|
+
head: 'feat/checkout-copy',
|
|
891
|
+
}),
|
|
892
|
+
projectId: 'p1',
|
|
893
|
+
boxId: 'box1',
|
|
894
|
+
};
|
|
895
|
+
expect(branchUrlOf(row, none)).toBe(
|
|
896
|
+
'https://github.com/acme/storefront-web/tree/feat/checkout-copy',
|
|
897
|
+
);
|
|
898
|
+
});
|
|
899
|
+
|
|
900
|
+
it('falls back to a repo the sync resolved, then the project, then the box', () => {
|
|
901
|
+
const noUrl = pr(1, { repo: 'acme/storefront-web', url: '', head: 'feat/a' });
|
|
902
|
+
expect(branchUrlOf({ pr: noUrl, projectId: 'p1' }, lookup)).toBe(
|
|
903
|
+
'https://github.com/acme/storefront-web/tree/feat/a',
|
|
904
|
+
);
|
|
905
|
+
expect(branchUrlOf({ pr: { ...noUrl, repo: 'other/repo' }, projectId: 'p1' }, lookup)).toBe(
|
|
906
|
+
'https://ghe.acme.dev/acme/api/tree/feat/a',
|
|
907
|
+
);
|
|
908
|
+
expect(branchUrlOf({ branch: 'agentbox/x', projectId: 'p1', boxId: 'box1' }, lookup)).toBe(
|
|
909
|
+
'https://ghe.acme.dev/acme/api/tree/agentbox/x',
|
|
910
|
+
);
|
|
911
|
+
expect(branchUrlOf({ branch: 'agentbox/x', projectId: 'gone', boxId: 'box1' }, lookup)).toBe(
|
|
912
|
+
'https://github.com/acme/box-repo/tree/agentbox/x',
|
|
913
|
+
);
|
|
914
|
+
});
|
|
915
|
+
|
|
916
|
+
it('encodes each branch segment and keeps the slashes', () => {
|
|
917
|
+
expect(branchUrlOf({ branch: 'feat/100% done#2/ü', boxId: 'box1' }, lookup)).toBe(
|
|
918
|
+
'https://github.com/acme/box-repo/tree/feat/100%25%20done%232/%C3%BC',
|
|
919
|
+
);
|
|
920
|
+
});
|
|
921
|
+
|
|
922
|
+
it('is absent with no branch, or no known repo', () => {
|
|
923
|
+
expect(branchUrlOf({ projectId: 'p1', boxId: 'box1' }, lookup)).toBeUndefined();
|
|
924
|
+
expect(
|
|
925
|
+
branchUrlOf({ branch: 'feat/a', projectId: 'gone', boxId: 'gone' }, lookup),
|
|
926
|
+
).toBeUndefined();
|
|
927
|
+
const message = { pr: { repo: '', number: 4, title: '', url: '', base: '', head: '' } };
|
|
928
|
+
expect(branchUrlOf(message, lookup)).toBeUndefined();
|
|
929
|
+
expect(
|
|
930
|
+
branchUrlOf({ branch: 'feat/a', pr: pr(2, { url: '', repo: 'x/y' }) }, none),
|
|
931
|
+
).toBeUndefined();
|
|
932
|
+
});
|
|
933
|
+
|
|
934
|
+
it('adds branchUrl to items and live rows from the cache, and never stores it', async () => {
|
|
935
|
+
const h = harness();
|
|
936
|
+
const { workspaces } = backends(h);
|
|
937
|
+
const root = await folder();
|
|
938
|
+
const added = await workspaces.addWorkspace({ path: root });
|
|
939
|
+
if (!added.ok) throw new Error(added.error);
|
|
940
|
+
const wsId = added.workspace.id;
|
|
941
|
+
h.boxes.push({
|
|
942
|
+
id: 'box1',
|
|
943
|
+
name: 'checkout-copy',
|
|
944
|
+
branches: ['agentbox/checkout-copy'],
|
|
945
|
+
state: 'running',
|
|
946
|
+
projectRoot: root,
|
|
947
|
+
projectId: hashProjectPath(root),
|
|
948
|
+
});
|
|
949
|
+
await recordTimelineEvent(wsId, {
|
|
950
|
+
type: 'box.created',
|
|
951
|
+
actor: 'human',
|
|
952
|
+
boxName: 'fresh',
|
|
953
|
+
branch: 'agentbox/fresh',
|
|
954
|
+
projectId: hashProjectPath(root),
|
|
955
|
+
});
|
|
956
|
+
const task = await workspaces.addTask(wsId, { title: 'Copy' });
|
|
957
|
+
if (!task.ok) throw new Error(task.error);
|
|
958
|
+
const assigned = await workspaces.assignTasks(wsId, [task.task.id], { boxId: 'box1' });
|
|
959
|
+
if (!assigned.ok) throw new Error(assigned.error);
|
|
960
|
+
await backgroundSettled();
|
|
961
|
+
|
|
962
|
+
const cold = createTimelineBackend(h.deps, { sync: createGithubPrSync(h.deps) });
|
|
963
|
+
const before = await cold.getTimeline(wsId);
|
|
964
|
+
expect(before!.items.some((i) => i.branchUrl)).toBe(false);
|
|
965
|
+
expect(before!.live.some((l) => l.branchUrl)).toBe(false);
|
|
966
|
+
|
|
967
|
+
h.gh.mockImplementation(async (args: string[]) => {
|
|
968
|
+
if (args[0] === 'api') return { exitCode: 0, stdout: 'me\n', stderr: '' };
|
|
969
|
+
if (args[0] === 'repo') {
|
|
970
|
+
return {
|
|
971
|
+
exitCode: 0,
|
|
972
|
+
stdout: JSON.stringify({
|
|
973
|
+
nameWithOwner: 'acme/api',
|
|
974
|
+
url: 'https://ghe.acme.dev/acme/api',
|
|
975
|
+
}),
|
|
976
|
+
stderr: '',
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
return {
|
|
980
|
+
exitCode: 0,
|
|
981
|
+
stdout: JSON.stringify([
|
|
982
|
+
{
|
|
983
|
+
number: 7,
|
|
984
|
+
title: 'Copy',
|
|
985
|
+
url: 'https://ghe.acme.dev/acme/api/pull/7',
|
|
986
|
+
headRefName: 'agentbox/checkout-copy',
|
|
987
|
+
baseRefName: 'main',
|
|
988
|
+
state: 'OPEN',
|
|
989
|
+
author: { login: 'someone' },
|
|
990
|
+
},
|
|
991
|
+
]),
|
|
992
|
+
stderr: '',
|
|
993
|
+
};
|
|
994
|
+
});
|
|
995
|
+
const sync = createGithubPrSync(h.deps);
|
|
996
|
+
const ws = (await readWorkspace(wsId))!;
|
|
997
|
+
expect(await sync.syncNow(ws)).toBe('ok');
|
|
998
|
+
expect(sync.webUrlForRepo('acme/api')).toBe('https://ghe.acme.dev/acme/api');
|
|
999
|
+
h.gh.mockClear();
|
|
1000
|
+
|
|
1001
|
+
const res = await createTimelineBackend(h.deps, { sync }).getTimeline(wsId);
|
|
1002
|
+
expect(res!.items.find((i) => i.type === 'pr.opened')?.branchUrl).toBe(
|
|
1003
|
+
'https://ghe.acme.dev/acme/api/tree/agentbox/checkout-copy',
|
|
1004
|
+
);
|
|
1005
|
+
expect(res!.items.find((i) => i.type === 'box.created')?.branchUrl).toBe(
|
|
1006
|
+
'https://ghe.acme.dev/acme/api/tree/agentbox/fresh',
|
|
1007
|
+
);
|
|
1008
|
+
expect(res!.live.find((l) => l.type === 'task.in_progress')?.branchUrl).toBe(
|
|
1009
|
+
'https://ghe.acme.dev/acme/api/tree/agentbox/checkout-copy',
|
|
1010
|
+
);
|
|
1011
|
+
expect(h.gh.mock.calls.some(([args]) => args[0] === 'repo')).toBe(false);
|
|
1012
|
+
const raw = await readFile(timelineFile((await resolveWorkspaceDir(wsId))!), 'utf8');
|
|
1013
|
+
expect(raw).not.toContain('branchUrl');
|
|
1014
|
+
});
|
|
1015
|
+
});
|
|
1016
|
+
|
|
1017
|
+
describe('branch graph', () => {
|
|
1018
|
+
function branchHub(ok = true): HubBackend {
|
|
1019
|
+
const result = async () => (ok ? { ok: true as const } : { ok: false as const, error: 'no' });
|
|
1020
|
+
let jobs = 0;
|
|
1021
|
+
return {
|
|
1022
|
+
// Distinct jobs: one job's create key would dedupe the second create away.
|
|
1023
|
+
create: async () => ({ ok: true as const, jobId: `job${String((jobs += 1))}` }),
|
|
1024
|
+
start: result,
|
|
1025
|
+
stop: result,
|
|
1026
|
+
destroy: result,
|
|
1027
|
+
gitPush: result,
|
|
1028
|
+
gitPushHost: result,
|
|
1029
|
+
gitCheckout: result,
|
|
1030
|
+
gitNewBranch: result,
|
|
1031
|
+
} as unknown as HubBackend;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
it("records a create's base: its fromBranch, else the project's current branch", async () => {
|
|
1035
|
+
const h = harness();
|
|
1036
|
+
const { workspaces, managers } = backends(h);
|
|
1037
|
+
const added = await workspaces.addWorkspace({ path: await folder() });
|
|
1038
|
+
if (!added.ok) throw new Error(added.error);
|
|
1039
|
+
const projectId = added.workspace.projectIds[0]!;
|
|
1040
|
+
const asked: string[] = [];
|
|
1041
|
+
h.deps.projectBranch = async (id) => {
|
|
1042
|
+
asked.push(id);
|
|
1043
|
+
return 'develop';
|
|
1044
|
+
};
|
|
1045
|
+
const hub = withBoxTimeline(branchHub(), { deps: h.deps, stampFor: managers.timelineStamp });
|
|
1046
|
+
type CreateInput = Parameters<HubBackend['create']>[0];
|
|
1047
|
+
await hub.create({ projectId, agent: 'claude', name: 'plain' } as CreateInput);
|
|
1048
|
+
await backgroundSettled();
|
|
1049
|
+
await hub.create({
|
|
1050
|
+
projectId,
|
|
1051
|
+
agent: 'claude',
|
|
1052
|
+
name: 'stacked',
|
|
1053
|
+
fromBranch: 'agentbox/plain',
|
|
1054
|
+
} as CreateInput);
|
|
1055
|
+
await backgroundSettled();
|
|
1056
|
+
|
|
1057
|
+
const creates = (await readTimeline(added.workspace.id)).filter(
|
|
1058
|
+
(e) => e.type === 'box.created',
|
|
1059
|
+
);
|
|
1060
|
+
expect(creates.find((e) => e.boxName === 'plain')?.base).toBe('develop');
|
|
1061
|
+
expect(creates.find((e) => e.boxName === 'stacked')?.base).toBe('agentbox/plain');
|
|
1062
|
+
expect(asked).toEqual([projectId]);
|
|
1063
|
+
});
|
|
1064
|
+
|
|
1065
|
+
it('writes box.branch for a switch the hub sanctioned, and nothing for paths, a detached HEAD or a failure', async () => {
|
|
1066
|
+
const h = harness();
|
|
1067
|
+
const { workspaces, managers } = backends(h);
|
|
1068
|
+
const root = await folder();
|
|
1069
|
+
const added = await workspaces.addWorkspace({ path: root });
|
|
1070
|
+
if (!added.ok) throw new Error(added.error);
|
|
1071
|
+
const box: TimelineBoxFact = {
|
|
1072
|
+
id: 'box1',
|
|
1073
|
+
name: 'box-one',
|
|
1074
|
+
branches: ['agentbox/box-one'],
|
|
1075
|
+
state: 'running',
|
|
1076
|
+
projectRoot: root,
|
|
1077
|
+
projectId: 'p1',
|
|
1078
|
+
};
|
|
1079
|
+
h.boxes.push(box);
|
|
1080
|
+
const seams = { deps: h.deps, stampFor: managers.timelineStamp };
|
|
1081
|
+
// What the real routes persist: the branch HEAD names after the op, none when detached.
|
|
1082
|
+
const sanction = (branch: string) => {
|
|
1083
|
+
box.branches = [branch, 'agentbox/box-one'];
|
|
1084
|
+
};
|
|
1085
|
+
const calls: string[][] = [];
|
|
1086
|
+
const hub = withBoxTimeline(
|
|
1087
|
+
{
|
|
1088
|
+
...branchHub(),
|
|
1089
|
+
gitCheckout: async (_id: string, branch: string, args?: string[]) => {
|
|
1090
|
+
calls.push([branch, ...(args ?? [])]);
|
|
1091
|
+
if (!args?.length && !/^[0-9a-f]{7,40}$/u.test(branch)) sanction(branch);
|
|
1092
|
+
return { ok: true as const };
|
|
1093
|
+
},
|
|
1094
|
+
gitNewBranch: async (_id: string, input: { name: string }) => {
|
|
1095
|
+
sanction(scratchBranchName(input.name));
|
|
1096
|
+
return { ok: true as const };
|
|
1097
|
+
},
|
|
1098
|
+
} as unknown as HubBackend,
|
|
1099
|
+
seams,
|
|
1100
|
+
);
|
|
1101
|
+
await withBoxTimeline(branchHub(false), seams).gitCheckout('box1', 'feat/nope');
|
|
1102
|
+
await hub.gitCheckout('box1', 'main', ['--', 'src/x.ts']);
|
|
1103
|
+
await hub.gitCheckout('box1', 'abc1234');
|
|
1104
|
+
await backgroundSettled();
|
|
1105
|
+
await hub.gitCheckout('box1', 'feat/x');
|
|
1106
|
+
await backgroundSettled();
|
|
1107
|
+
await hub.gitNewBranch('box1', { name: 'retry' });
|
|
1108
|
+
await backgroundSettled();
|
|
1109
|
+
|
|
1110
|
+
expect(calls).toEqual([['main', '--', 'src/x.ts'], ['abc1234'], ['feat/x']]);
|
|
1111
|
+
const rows = (await readTimeline(added.workspace.id)).filter((e) => e.type === 'box.branch');
|
|
1112
|
+
expect(rows).toHaveLength(2);
|
|
1113
|
+
expect(rows.find((e) => e.branch === 'feat/x')).toMatchObject({
|
|
1114
|
+
actor: 'human',
|
|
1115
|
+
boxId: 'box1',
|
|
1116
|
+
boxName: 'box-one',
|
|
1117
|
+
base: 'agentbox/box-one',
|
|
1118
|
+
});
|
|
1119
|
+
expect(rows.find((e) => e.branch === scratchBranchName('retry'))).toMatchObject({
|
|
1120
|
+
boxId: 'box1',
|
|
1121
|
+
base: 'feat/x',
|
|
1122
|
+
});
|
|
1123
|
+
});
|
|
1124
|
+
|
|
1125
|
+
it('returns lanes on every row, the same on a short page, and never stores them', async () => {
|
|
1126
|
+
const h = harness();
|
|
1127
|
+
const { workspaces } = backends(h);
|
|
1128
|
+
const root = await folder();
|
|
1129
|
+
const added = await workspaces.addWorkspace({ path: root });
|
|
1130
|
+
if (!added.ok) throw new Error(added.error);
|
|
1131
|
+
const wsId = added.workspace.id;
|
|
1132
|
+
h.boxes.push({
|
|
1133
|
+
id: 'box1',
|
|
1134
|
+
name: 'box-one',
|
|
1135
|
+
branches: ['agentbox/box-one'],
|
|
1136
|
+
state: 'running',
|
|
1137
|
+
projectRoot: root,
|
|
1138
|
+
projectId: 'p1',
|
|
1139
|
+
});
|
|
1140
|
+
const at = (s: number) => new Date(Date.UTC(2026, 8, 13, 10, 0, s)).toISOString();
|
|
1141
|
+
await recordTimelineEvent(wsId, {
|
|
1142
|
+
type: 'box.created',
|
|
1143
|
+
actor: 'human',
|
|
1144
|
+
at: at(1),
|
|
1145
|
+
key: 'job:j1:created',
|
|
1146
|
+
boxName: 'box-one',
|
|
1147
|
+
branch: 'agentbox/box-one',
|
|
1148
|
+
base: 'main',
|
|
1149
|
+
});
|
|
1150
|
+
await recordTimelineEvent(wsId, {
|
|
1151
|
+
type: 'box.ready',
|
|
1152
|
+
actor: 'hub',
|
|
1153
|
+
at: at(2),
|
|
1154
|
+
key: 'job:j1:ready',
|
|
1155
|
+
boxId: 'box1',
|
|
1156
|
+
branch: 'agentbox/box-one',
|
|
1157
|
+
});
|
|
1158
|
+
await recordTimelineEvent(wsId, {
|
|
1159
|
+
type: 'manager.note',
|
|
1160
|
+
actor: 'human',
|
|
1161
|
+
at: at(3),
|
|
1162
|
+
text: 'pushing next',
|
|
1163
|
+
});
|
|
1164
|
+
await recordTimelineEvent(wsId, {
|
|
1165
|
+
type: 'git.push',
|
|
1166
|
+
actor: 'box',
|
|
1167
|
+
at: at(4),
|
|
1168
|
+
boxId: 'box1',
|
|
1169
|
+
branch: 'agentbox/box-one',
|
|
1170
|
+
});
|
|
1171
|
+
|
|
1172
|
+
const timeline = createTimelineBackend(h.deps, { sync: createGithubPrSync(h.deps) });
|
|
1173
|
+
const res = await timeline.getTimeline(wsId, { sync: false });
|
|
1174
|
+
expect(res!.items.map((i) => [i.type, i.lane])).toEqual([
|
|
1175
|
+
['git.push', { id: 'box:box1', kind: 'box', open: true }],
|
|
1176
|
+
['manager.note', { id: 'trunk', kind: 'trunk' }],
|
|
1177
|
+
['box.ready', { id: 'box:box1', kind: 'box' }],
|
|
1178
|
+
['box.created', { id: 'box:box1', kind: 'box', from: 'trunk', branch: 'agentbox/box-one' }],
|
|
1179
|
+
]);
|
|
1180
|
+
const page = await timeline.getTimeline(wsId, { sync: false, limit: 1 });
|
|
1181
|
+
expect(page!.items[0]!.lane).toEqual({ id: 'box:box1', kind: 'box', open: true });
|
|
1182
|
+
const raw = await readFile(timelineFile((await resolveWorkspaceDir(wsId))!), 'utf8');
|
|
1183
|
+
expect(raw).not.toContain('lane');
|
|
1184
|
+
});
|
|
1185
|
+
});
|