@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,611 @@
|
|
|
1
|
+
// The timeline domain: a workspace's append-only event log (`timeline.jsonl`,
|
|
2
|
+
// written by every mutation point), aggregated for reading, plus the rows that
|
|
3
|
+
// are only ever true NOW — a box working a task, a PR waiting to be merged —
|
|
4
|
+
// which are built at read time and never stored.
|
|
5
|
+
import {
|
|
6
|
+
findManager,
|
|
7
|
+
findWorkspaceContaining,
|
|
8
|
+
parseShortstat,
|
|
9
|
+
pushedRef,
|
|
10
|
+
pushLineStat,
|
|
11
|
+
readRefTip,
|
|
12
|
+
listWorkspaces,
|
|
13
|
+
readReconciledTasks,
|
|
14
|
+
readTasks,
|
|
15
|
+
readTimeline,
|
|
16
|
+
readWorkspace,
|
|
17
|
+
recordTimelineEvent,
|
|
18
|
+
sortTasksByOrder,
|
|
19
|
+
stampFields,
|
|
20
|
+
workspaceForPath,
|
|
21
|
+
type TimelineEvent,
|
|
22
|
+
type TimelineEventInput,
|
|
23
|
+
type TimelinePr,
|
|
24
|
+
type PushStatInput,
|
|
25
|
+
type TimelineStamp,
|
|
26
|
+
type WorkTask,
|
|
27
|
+
} from '@agentbox/relay';
|
|
28
|
+
import { inBackground } from './background';
|
|
29
|
+
import { reconcileContext, type BackendDeps, type DiffStat, type TimelineBoxFact } from './deps';
|
|
30
|
+
import { createGithubPrSync, type GithubPrSync } from './github-prs';
|
|
31
|
+
import { assignLanes } from './timeline-lanes';
|
|
32
|
+
import type {
|
|
33
|
+
HubBackend,
|
|
34
|
+
TimelineBackend,
|
|
35
|
+
TimelineItem,
|
|
36
|
+
TimelineLiveItem,
|
|
37
|
+
TimelineMeta,
|
|
38
|
+
TimelineQuery,
|
|
39
|
+
TimelineResponse,
|
|
40
|
+
TimelineSummary,
|
|
41
|
+
} from '../boxes/backend-types';
|
|
42
|
+
|
|
43
|
+
/** A manager's task creates within this window, from one turn, read as one plan. */
|
|
44
|
+
export const PLAN_WINDOW_MS = 10 * 60 * 1000;
|
|
45
|
+
export const PLAN_MIN_TASKS = 3;
|
|
46
|
+
/** A move to `in_progress` this soon after an assignment is that assignment, not news. */
|
|
47
|
+
const ASSIGN_STATUS_WINDOW_MS = 60 * 1000;
|
|
48
|
+
const DIFF_CACHE_MS = 60 * 1000;
|
|
49
|
+
/** A box's diff that takes longer than this is left off the read that asked for it. */
|
|
50
|
+
const DIFF_TIMEOUT_MS = 3000;
|
|
51
|
+
export const TIMELINE_DEFAULT_LIMIT = 100;
|
|
52
|
+
|
|
53
|
+
function newestFirst(a: { at: string; id: string }, b: { at: string; id: string }): number {
|
|
54
|
+
if (a.at !== b.at) return a.at < b.at ? 1 : -1;
|
|
55
|
+
return a.id < b.id ? 1 : a.id > b.id ? -1 : 0;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function taskIdsOf(ev: TimelineEvent): string[] {
|
|
59
|
+
if (ev.taskIds?.length) return ev.taskIds;
|
|
60
|
+
return ev.task ? [ev.task.id] : [];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Whether two PR refs are one PR. A ref whose repo is unknown (a message that
|
|
65
|
+
* named only a number) matches only when a single repo in the log has that
|
|
66
|
+
* number; in a workspace over several repos, `#12` alone names none of them.
|
|
67
|
+
*/
|
|
68
|
+
function prMatcher(
|
|
69
|
+
events: TimelineEvent[],
|
|
70
|
+
): (a: TimelineEvent['pr'], b: TimelineEvent['pr']) => boolean {
|
|
71
|
+
const repos = new Map<number, Set<string>>();
|
|
72
|
+
for (const ev of events) {
|
|
73
|
+
if (!ev.pr?.repo) continue;
|
|
74
|
+
const set = repos.get(ev.pr.number) ?? new Set<string>();
|
|
75
|
+
set.add(ev.pr.repo);
|
|
76
|
+
repos.set(ev.pr.number, set);
|
|
77
|
+
}
|
|
78
|
+
return (a, b) => {
|
|
79
|
+
if (!a || !b || a.number !== b.number) return false;
|
|
80
|
+
if (a.repo && b.repo) return a.repo === b.repo;
|
|
81
|
+
const known = a.repo || b.repo;
|
|
82
|
+
const set = repos.get(a.number);
|
|
83
|
+
return Boolean(known) && set?.size === 1 && set.has(known);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Events as a reader wants them, newest first:
|
|
89
|
+
* - 3+ `task.created` from one manager turn within 10 minutes become one `plan`;
|
|
90
|
+
* - a `task.status → in_progress` right after that task's assignment is dropped;
|
|
91
|
+
* - a `pr.merged` preceded by a message about that PR is `approvedByYou`.
|
|
92
|
+
*/
|
|
93
|
+
export function aggregateTimeline(events: TimelineEvent[]): TimelineItem[] {
|
|
94
|
+
const asc = [...events].sort(newestFirst).reverse();
|
|
95
|
+
const samePr = prMatcher(events);
|
|
96
|
+
const drop = new Set<string>();
|
|
97
|
+
|
|
98
|
+
const groups: TimelineEvent[][] = [];
|
|
99
|
+
const openGroup = new Map<string, TimelineEvent[]>();
|
|
100
|
+
for (const ev of asc) {
|
|
101
|
+
if (ev.type !== 'task.created' || !ev.managerId || ev.turn === undefined) continue;
|
|
102
|
+
const key = `${ev.managerId}|${String(ev.turn)}`;
|
|
103
|
+
const group = openGroup.get(key);
|
|
104
|
+
if (group && Date.parse(ev.at) - Date.parse(group[0]!.at) <= PLAN_WINDOW_MS) {
|
|
105
|
+
group.push(ev);
|
|
106
|
+
} else {
|
|
107
|
+
const fresh = [ev];
|
|
108
|
+
openGroup.set(key, fresh);
|
|
109
|
+
groups.push(fresh);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
const plans: TimelineItem[] = [];
|
|
113
|
+
for (const group of groups) {
|
|
114
|
+
if (group.length < PLAN_MIN_TASKS) continue;
|
|
115
|
+
for (const ev of group) drop.add(ev.id);
|
|
116
|
+
const first = group[0]!;
|
|
117
|
+
const prompt = group.find((ev) => ev.prompt)?.prompt;
|
|
118
|
+
const projects = new Set(group.map((ev) => ev.projectId));
|
|
119
|
+
plans.push({
|
|
120
|
+
id: first.id,
|
|
121
|
+
at: first.at,
|
|
122
|
+
type: 'plan',
|
|
123
|
+
actor: first.actor,
|
|
124
|
+
managerId: first.managerId!,
|
|
125
|
+
turn: first.turn!,
|
|
126
|
+
...(prompt ? { prompt } : {}),
|
|
127
|
+
...(projects.size === 1 && first.projectId ? { projectId: first.projectId } : {}),
|
|
128
|
+
taskIds: group.flatMap(taskIdsOf),
|
|
129
|
+
count: group.length,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
const assignedAt = new Map<string, number>();
|
|
134
|
+
for (const ev of asc) {
|
|
135
|
+
if (ev.type === 'task.assigned') {
|
|
136
|
+
for (const id of taskIdsOf(ev)) assignedAt.set(id, Date.parse(ev.at));
|
|
137
|
+
} else if (ev.type === 'task.status' && ev.task?.to === 'in_progress') {
|
|
138
|
+
const at = assignedAt.get(ev.task.id);
|
|
139
|
+
if (at !== undefined && Date.parse(ev.at) - at <= ASSIGN_STATUS_WINDOW_MS) drop.add(ev.id);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const messages = asc.filter((ev) => ev.type === 'manager.message' && ev.pr);
|
|
144
|
+
const items: TimelineItem[] = [];
|
|
145
|
+
for (const ev of asc) {
|
|
146
|
+
if (drop.has(ev.id)) continue;
|
|
147
|
+
if (ev.type === 'pr.merged' && messages.some((m) => samePr(m.pr, ev.pr) && m.at <= ev.at)) {
|
|
148
|
+
items.push({ ...ev, approvedByYou: true });
|
|
149
|
+
} else {
|
|
150
|
+
items.push(ev);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return [...items, ...plans].sort(newestFirst);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Ready PRs not merged or closed since, newest first, with whether a message
|
|
158
|
+
* approved them. With `synced` false (no GitHub sync has completed since the hub
|
|
159
|
+
* started), a PR the sync has not confirmed is left out: the log alone cannot
|
|
160
|
+
* tell a PR still ready from one that went red or merged while the hub was down.
|
|
161
|
+
*/
|
|
162
|
+
export function liveReadyItems(
|
|
163
|
+
events: TimelineEvent[],
|
|
164
|
+
prState?: (repo: string, number: number) => string | undefined,
|
|
165
|
+
synced = true,
|
|
166
|
+
): TimelineLiveItem[] {
|
|
167
|
+
const sorted = [...events].sort(newestFirst);
|
|
168
|
+
const samePr = prMatcher(events);
|
|
169
|
+
const finished = new Set<string>();
|
|
170
|
+
for (const ev of sorted) {
|
|
171
|
+
if ((ev.type === 'pr.merged' || ev.type === 'pr.closed') && ev.pr) {
|
|
172
|
+
finished.add(`${ev.pr.repo}#${String(ev.pr.number)}`);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const seen = new Set<string>();
|
|
176
|
+
const out: TimelineLiveItem[] = [];
|
|
177
|
+
for (const ev of sorted) {
|
|
178
|
+
if (ev.type !== 'pr.ready' || !ev.pr) continue;
|
|
179
|
+
const key = `${ev.pr.repo}#${String(ev.pr.number)}`;
|
|
180
|
+
if (finished.has(key) || seen.has(key)) continue;
|
|
181
|
+
seen.add(key);
|
|
182
|
+
// A PR that went red (or conflicted) after the log recorded it ready is no
|
|
183
|
+
// longer awaiting anyone; the log cannot un-append, the last sync can say so.
|
|
184
|
+
const state = prState?.(ev.pr.repo, ev.pr.number);
|
|
185
|
+
if (state ? state !== 'ready' : !synced) continue;
|
|
186
|
+
const approved = sorted.some((m) => m.type === 'manager.message' && samePr(m.pr, ev.pr));
|
|
187
|
+
out.push({
|
|
188
|
+
id: `live:pr:${key}`,
|
|
189
|
+
type: 'pr.ready',
|
|
190
|
+
at: ev.at,
|
|
191
|
+
pr: ev.pr,
|
|
192
|
+
...(ev.boxId ? { boxId: ev.boxId } : {}),
|
|
193
|
+
...(ev.boxName ? { boxName: ev.boxName } : {}),
|
|
194
|
+
...(ev.branch ? { branch: ev.branch } : {}),
|
|
195
|
+
...(ev.managerId ? { managerId: ev.managerId } : {}),
|
|
196
|
+
...(ev.taskIds?.length ? { taskIds: ev.taskIds } : {}),
|
|
197
|
+
awaiting: true,
|
|
198
|
+
...(approved ? { approved: true } : {}),
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
return out;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export function buildTimelineSummary(
|
|
205
|
+
events: TimelineEvent[],
|
|
206
|
+
since: string,
|
|
207
|
+
live: TimelineLiveItem[],
|
|
208
|
+
pendingApprovals: number,
|
|
209
|
+
): TimelineSummary {
|
|
210
|
+
let merged = 0;
|
|
211
|
+
let additions = 0;
|
|
212
|
+
let deletions = 0;
|
|
213
|
+
let tasksDone = 0;
|
|
214
|
+
for (const ev of events) {
|
|
215
|
+
if (ev.at < since) continue;
|
|
216
|
+
if (ev.type === 'pr.merged') {
|
|
217
|
+
merged += 1;
|
|
218
|
+
additions += ev.pr?.additions ?? 0;
|
|
219
|
+
deletions += ev.pr?.deletions ?? 0;
|
|
220
|
+
} else if (ev.type === 'task.status' && ev.task?.to === 'done') {
|
|
221
|
+
tasksDone += 1;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
const awaitingPrs = live.filter((l) => l.type === 'pr.ready' && !l.approved).length;
|
|
225
|
+
return {
|
|
226
|
+
since,
|
|
227
|
+
merged,
|
|
228
|
+
additions,
|
|
229
|
+
deletions,
|
|
230
|
+
tasksDone,
|
|
231
|
+
awaiting: awaitingPrs + pendingApprovals,
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export { parseShortstat };
|
|
236
|
+
|
|
237
|
+
/** Where a row's repo is on the web, from what the GitHub sync already cached. */
|
|
238
|
+
export interface RepoWebLookup {
|
|
239
|
+
/** A repo (`owner/name`) a sync resolved. */
|
|
240
|
+
repo(nameWithOwner: string): string | undefined;
|
|
241
|
+
project(projectId: string): string | undefined;
|
|
242
|
+
box(boxId: string): string | undefined;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
interface BranchRow {
|
|
246
|
+
branch?: string;
|
|
247
|
+
pr?: TimelinePr;
|
|
248
|
+
projectId?: string;
|
|
249
|
+
boxId?: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** `https://<host>/<owner>/<name>` from a PR's `…/pull/<n>` URL. */
|
|
253
|
+
export function repoUrlOfPrUrl(url: string): string | undefined {
|
|
254
|
+
return /^(https?:\/\/[^/?#]+\/[^/?#]+\/[^/?#]+)\/pull\/\d+\/?(?:[?#].*)?$/u.exec(url)?.[1];
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* The branch's page on the repo's host. A PR row's branch is its head, since
|
|
259
|
+
* that is the branch in the repo its URL names. Each segment is encoded on its
|
|
260
|
+
* own, so the `/` of `feat/x` stays a path separator.
|
|
261
|
+
*/
|
|
262
|
+
export function branchUrlOf(row: BranchRow, lookup: RepoWebLookup): string | undefined {
|
|
263
|
+
const branch = row.pr?.head || row.branch;
|
|
264
|
+
if (!branch) return undefined;
|
|
265
|
+
const repoUrl =
|
|
266
|
+
(row.pr?.url ? repoUrlOfPrUrl(row.pr.url) : undefined) ??
|
|
267
|
+
(row.pr?.repo ? lookup.repo(row.pr.repo) : undefined) ??
|
|
268
|
+
(row.projectId ? lookup.project(row.projectId) : undefined) ??
|
|
269
|
+
(row.boxId ? lookup.box(row.boxId) : undefined);
|
|
270
|
+
if (!repoUrl) return undefined;
|
|
271
|
+
try {
|
|
272
|
+
return `${repoUrl}/tree/${branch.split('/').map(encodeURIComponent).join('/')}`;
|
|
273
|
+
} catch {
|
|
274
|
+
// encodeURIComponent throws on a lone surrogate; such a branch gets no link.
|
|
275
|
+
return undefined;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
function withBranchUrl<T extends BranchRow>(row: T, lookup: RepoWebLookup): T {
|
|
280
|
+
const branchUrl = branchUrlOf(row, lookup);
|
|
281
|
+
return branchUrl ? { ...row, branchUrl } : row;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export interface TimelineBackendOptions {
|
|
285
|
+
sync?: GithubPrSync;
|
|
286
|
+
now?: () => number;
|
|
287
|
+
diffTimeoutMs?: number;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
function orNullAfter<T>(p: Promise<T | null>, ms: number): Promise<T | null> {
|
|
291
|
+
return new Promise((resolve) => {
|
|
292
|
+
const t = setTimeout(() => resolve(null), ms);
|
|
293
|
+
t.unref?.();
|
|
294
|
+
void p.then((v) => {
|
|
295
|
+
clearTimeout(t);
|
|
296
|
+
resolve(v);
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
export function createTimelineBackend(
|
|
302
|
+
deps: BackendDeps,
|
|
303
|
+
opts: TimelineBackendOptions = {},
|
|
304
|
+
): TimelineBackend {
|
|
305
|
+
const sync = opts.sync ?? createGithubPrSync(deps);
|
|
306
|
+
const now = opts.now ?? Date.now;
|
|
307
|
+
const diffTimeout = opts.diffTimeoutMs ?? DIFF_TIMEOUT_MS;
|
|
308
|
+
/** The exec promise, not its result: overlapping reads share one exec. */
|
|
309
|
+
const diffCache = new Map<string, { at: number; value: Promise<DiffStat | null> }>();
|
|
310
|
+
|
|
311
|
+
function diffOf(box: TimelineBoxFact): Promise<DiffStat | null> {
|
|
312
|
+
if (!deps.boxDiffStat || box.state !== 'running') return Promise.resolve(null);
|
|
313
|
+
let hit = diffCache.get(box.id);
|
|
314
|
+
if (!hit || now() - hit.at >= DIFF_CACHE_MS) {
|
|
315
|
+
hit = { at: now(), value: deps.boxDiffStat(box).catch(() => null) };
|
|
316
|
+
diffCache.set(box.id, hit);
|
|
317
|
+
}
|
|
318
|
+
// A slow exec keeps running and answers a later read from the cache.
|
|
319
|
+
return orNullAfter(hit.value, diffTimeout);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
async function liveBoxItems(
|
|
323
|
+
boxes: TimelineBoxFact[],
|
|
324
|
+
tasks: WorkTask[],
|
|
325
|
+
events: TimelineEvent[],
|
|
326
|
+
): Promise<TimelineLiveItem[]> {
|
|
327
|
+
const rows = await Promise.all(
|
|
328
|
+
boxes.map(async (box): Promise<TimelineLiveItem | null> => {
|
|
329
|
+
const mine = sortTasksByOrder(tasks.filter((t) => t.boxId === box.id));
|
|
330
|
+
const current = mine.find((t) => t.status === 'in_progress');
|
|
331
|
+
if (!current) return null;
|
|
332
|
+
return liveBoxItem(box, mine, current, events, await diffOf(box));
|
|
333
|
+
}),
|
|
334
|
+
);
|
|
335
|
+
return rows.filter((row): row is TimelineLiveItem => row !== null);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
function liveBoxItem(
|
|
339
|
+
box: TimelineBoxFact,
|
|
340
|
+
mine: WorkTask[],
|
|
341
|
+
current: WorkTask,
|
|
342
|
+
events: TimelineEvent[],
|
|
343
|
+
diff: DiffStat | null,
|
|
344
|
+
): TimelineLiveItem {
|
|
345
|
+
const since = events.find(
|
|
346
|
+
(ev) =>
|
|
347
|
+
(ev.type === 'task.assigned' && taskIdsOf(ev).includes(current.id)) ||
|
|
348
|
+
(ev.type === 'box.created' && ev.boxId === box.id),
|
|
349
|
+
);
|
|
350
|
+
return {
|
|
351
|
+
id: `live:task:${box.id}`,
|
|
352
|
+
type: 'task.in_progress',
|
|
353
|
+
at: since?.at ?? current.updatedAt,
|
|
354
|
+
boxId: box.id,
|
|
355
|
+
boxName: box.name,
|
|
356
|
+
...(box.agent ? { agent: box.agent } : {}),
|
|
357
|
+
...(box.branches[0] ? { branch: box.branches[0] } : {}),
|
|
358
|
+
...(current.managerId ? { managerId: current.managerId } : {}),
|
|
359
|
+
task: { id: current.id, title: current.title },
|
|
360
|
+
taskIds: mine.filter((t) => t.status !== 'done').map((t) => t.id),
|
|
361
|
+
...(diff ? diff : {}),
|
|
362
|
+
};
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
return {
|
|
366
|
+
async getTimeline(wsId: string, q: TimelineQuery = {}): Promise<TimelineResponse | null> {
|
|
367
|
+
const ws = await readWorkspace(wsId);
|
|
368
|
+
if (!ws) return null;
|
|
369
|
+
const github = q.sync === false ? sync.status(wsId) : sync.kick(ws);
|
|
370
|
+
const [events, workspaces, facts, ctx] = await Promise.all([
|
|
371
|
+
readTimeline(wsId),
|
|
372
|
+
listWorkspaces(),
|
|
373
|
+
deps.boxFacts ? deps.boxFacts().catch(() => []) : Promise.resolve([]),
|
|
374
|
+
reconcileContext(deps),
|
|
375
|
+
]);
|
|
376
|
+
const tasks = await readReconciledTasks(wsId, ctx);
|
|
377
|
+
const boxes = facts.filter(
|
|
378
|
+
(b) => findWorkspaceContaining(workspaces, b.projectRoot)?.id === wsId,
|
|
379
|
+
);
|
|
380
|
+
// Copies: an aggregated item can be the parsed event itself, and lanes are never stored.
|
|
381
|
+
const all = aggregateTimeline(events).map((i) => ({ ...i }));
|
|
382
|
+
const live = [
|
|
383
|
+
...(await liveBoxItems(boxes, tasks, events)),
|
|
384
|
+
...liveReadyItems(events, (repo, n) => sync.prState(repo, n), sync.synced(wsId)),
|
|
385
|
+
];
|
|
386
|
+
assignLanes(all, live, boxes);
|
|
387
|
+
let items = all;
|
|
388
|
+
if (q.before) items = items.filter((i) => i.at < q.before!);
|
|
389
|
+
items = items.slice(0, q.limit ?? TIMELINE_DEFAULT_LIMIT);
|
|
390
|
+
// Links come from the sync's cache only: a read never waits on `gh`.
|
|
391
|
+
const factById = new Map(facts.map((b) => [b.id, b]));
|
|
392
|
+
const lookup: RepoWebLookup = {
|
|
393
|
+
repo: (repo) => sync.webUrlForRepo(repo),
|
|
394
|
+
project: (id) => sync.webUrlForProject(id),
|
|
395
|
+
box: (id) => {
|
|
396
|
+
const fact = factById.get(id);
|
|
397
|
+
if (!fact) return undefined;
|
|
398
|
+
return sync.webUrlForRoot(fact.projectRoot) ?? sync.webUrlForProject(fact.projectId);
|
|
399
|
+
},
|
|
400
|
+
};
|
|
401
|
+
items = items.map((i) => withBranchUrl(i, lookup));
|
|
402
|
+
const liveRows = live.map((l) => withBranchUrl(l, lookup));
|
|
403
|
+
const boxIds = new Set(boxes.map((b) => b.id));
|
|
404
|
+
const pending = (deps.pendingApprovalBoxIds?.() ?? []).filter((id) => boxIds.has(id)).length;
|
|
405
|
+
return {
|
|
406
|
+
items,
|
|
407
|
+
live: liveRows,
|
|
408
|
+
...(q.since ? { summary: buildTimelineSummary(events, q.since, liveRows, pending) } : {}),
|
|
409
|
+
github,
|
|
410
|
+
};
|
|
411
|
+
},
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
// ── box events, recorded around the hub's own box routes ──
|
|
416
|
+
|
|
417
|
+
/** The fields every box event carries, from what the hub knows about the box. */
|
|
418
|
+
async function boxEventBase(
|
|
419
|
+
fact: TimelineBoxFact,
|
|
420
|
+
wsId: string,
|
|
421
|
+
): Promise<Omit<TimelineEventInput, 'type' | 'actor'>> {
|
|
422
|
+
// A plain read: reconciling here with only this box live would unassign every other box's tasks.
|
|
423
|
+
const tasks = await readTasks(wsId).catch(() => []);
|
|
424
|
+
const taskIds = tasks.filter((t) => t.boxId === fact.id).map((t) => t.id);
|
|
425
|
+
return {
|
|
426
|
+
boxId: fact.id,
|
|
427
|
+
boxName: fact.name,
|
|
428
|
+
...(fact.agent ? { agent: fact.agent } : {}),
|
|
429
|
+
...(fact.branches[0] ? { branch: fact.branches[0] } : {}),
|
|
430
|
+
projectId: fact.projectId,
|
|
431
|
+
...(taskIds.length ? { taskIds } : {}),
|
|
432
|
+
};
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
export type StampFor = (
|
|
436
|
+
ref: { agent: string; sessionId: string } | { managerId: string },
|
|
437
|
+
wsId: string,
|
|
438
|
+
) => Promise<TimelineStamp | undefined>;
|
|
439
|
+
|
|
440
|
+
const HUMAN: TimelineStamp = { actor: 'human' };
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* The stamp to write into `wsId`'s log. A session the route carried unresolved
|
|
444
|
+
* is resolved against this workspace, and a stamp naming another workspace's
|
|
445
|
+
* manager becomes a human one: that manager's turn means nothing in this log.
|
|
446
|
+
*/
|
|
447
|
+
export async function stampInWorkspace(
|
|
448
|
+
meta: TimelineMeta | undefined,
|
|
449
|
+
wsId: string,
|
|
450
|
+
stampFor: StampFor,
|
|
451
|
+
): Promise<TimelineStamp | undefined> {
|
|
452
|
+
if (meta?.session) return (await stampFor(meta.session, wsId).catch(() => undefined)) ?? HUMAN;
|
|
453
|
+
const stamp = meta?.stamp;
|
|
454
|
+
if (!stamp?.managerId) return stamp;
|
|
455
|
+
const rec = await findManager(stamp.managerId).catch(() => null);
|
|
456
|
+
return rec?.workspaceId === wsId ? stamp : HUMAN;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
/** How a push route addresses the host ref it moves. */
|
|
460
|
+
interface PushTarget {
|
|
461
|
+
remote?: string;
|
|
462
|
+
hostOnly?: boolean;
|
|
463
|
+
/** `push-host --as`: the local branch it lands on. */
|
|
464
|
+
as?: string;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
export interface BoxTimelineSeams {
|
|
468
|
+
deps: BackendDeps;
|
|
469
|
+
/** A manager's stamp (turn + prompt), only when it is a manager of `wsId`. */
|
|
470
|
+
stampFor: StampFor;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Wrap the box routes that change what a workspace's timeline says: create,
|
|
475
|
+
* start/stop/destroy, the two pushes, and checkout/new branch. Wrapped rather
|
|
476
|
+
* than threaded through each method's many return paths. Every record runs in
|
|
477
|
+
* the background after the operation answered, so it neither delays the
|
|
478
|
+
* response nor turns a success into a failure.
|
|
479
|
+
*/
|
|
480
|
+
export function withBoxTimeline(hub: HubBackend, seams: BoxTimelineSeams): HubBackend {
|
|
481
|
+
const { deps } = seams;
|
|
482
|
+
|
|
483
|
+
/** The box's persisted record; nothing when no workspace exists to log it in. */
|
|
484
|
+
async function factOf(id: string): Promise<TimelineBoxFact | undefined> {
|
|
485
|
+
if (!deps.boxFact || id.startsWith('job:')) return undefined;
|
|
486
|
+
if ((await listWorkspaces()).length === 0) return undefined;
|
|
487
|
+
return deps.boxFact(id);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/** Where a push's +/- lines are read, with the ref's tip before the push moves it. */
|
|
491
|
+
async function pushStatBefore(
|
|
492
|
+
fact: TimelineBoxFact | undefined,
|
|
493
|
+
push: PushTarget,
|
|
494
|
+
): Promise<PushStatInput | undefined> {
|
|
495
|
+
const boxBranch = fact?.branches[0];
|
|
496
|
+
if (!fact || !boxBranch) return undefined;
|
|
497
|
+
const branch = push.hostOnly && push.as ? push.as : boxBranch;
|
|
498
|
+
const ref = pushedRef(branch, push);
|
|
499
|
+
const before = await readRefTip(fact.projectRoot, ref);
|
|
500
|
+
return { repo: fact.projectRoot, ref, branch, ...(before ? { before } : {}) };
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
async function recordAround<R extends { ok: boolean }>(
|
|
504
|
+
id: string,
|
|
505
|
+
type: TimelineEvent['type'],
|
|
506
|
+
meta: TimelineMeta | undefined,
|
|
507
|
+
op: () => Promise<R>,
|
|
508
|
+
{ push, branchSwitch = false }: { push?: PushTarget; branchSwitch?: boolean } = {},
|
|
509
|
+
): Promise<R> {
|
|
510
|
+
// A destroyed box has no record left to name it by, a push moves the ref
|
|
511
|
+
// its diff is measured from, and a branch switch replaces the branch it
|
|
512
|
+
// switches away from, so all three are read first. A push still reads the
|
|
513
|
+
// fact again afterwards: the op may have hydrated the box from its Store
|
|
514
|
+
// registration, and then the row is logged without a diff.
|
|
515
|
+
const early = type === 'box.destroyed' || push !== undefined || branchSwitch;
|
|
516
|
+
const before = early ? await factOf(id).catch(() => undefined) : undefined;
|
|
517
|
+
// Kept apart from `before`: a record can be updated in place by the op.
|
|
518
|
+
const previous = before?.branches[0];
|
|
519
|
+
const stat = push ? await pushStatBefore(before, push).catch(() => undefined) : undefined;
|
|
520
|
+
const res = await op();
|
|
521
|
+
if (!res.ok) return res;
|
|
522
|
+
inBackground(async () => {
|
|
523
|
+
// A switch is the branch the hub sanctioned after the op: a checkout that
|
|
524
|
+
// left HEAD detached sanctions nothing, and is not one.
|
|
525
|
+
const after = branchSwitch ? await factOf(id) : undefined;
|
|
526
|
+
if (branchSwitch && (!after?.branches[0] || after.branches[0] === previous)) return;
|
|
527
|
+
const fact = after ?? before ?? (type === 'box.destroyed' ? undefined : await factOf(id));
|
|
528
|
+
if (!fact) return;
|
|
529
|
+
const ws = await workspaceForPath(fact.projectRoot);
|
|
530
|
+
if (!ws) return;
|
|
531
|
+
const [stamp, base, diff] = await Promise.all([
|
|
532
|
+
stampInWorkspace(meta, ws.id, seams.stampFor),
|
|
533
|
+
boxEventBase(fact, ws.id),
|
|
534
|
+
stat ? pushLineStat(stat) : undefined,
|
|
535
|
+
]);
|
|
536
|
+
await recordTimelineEvent(ws.id, {
|
|
537
|
+
type,
|
|
538
|
+
...stampFields(stamp),
|
|
539
|
+
...base,
|
|
540
|
+
...(diff ?? {}),
|
|
541
|
+
...(after && previous ? { base: previous } : {}),
|
|
542
|
+
});
|
|
543
|
+
deps.notify();
|
|
544
|
+
});
|
|
545
|
+
return res;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
const create = hub.create.bind(hub);
|
|
549
|
+
const start = hub.start.bind(hub);
|
|
550
|
+
const stop = hub.stop.bind(hub);
|
|
551
|
+
const destroy = hub.destroy.bind(hub);
|
|
552
|
+
const gitPush = hub.gitPush.bind(hub);
|
|
553
|
+
const gitPushHost = hub.gitPushHost.bind(hub);
|
|
554
|
+
const gitCheckout = hub.gitCheckout.bind(hub);
|
|
555
|
+
const gitNewBranch = hub.gitNewBranch.bind(hub);
|
|
556
|
+
|
|
557
|
+
hub.create = async (input, meta) => {
|
|
558
|
+
const res = await create(input, meta);
|
|
559
|
+
if (!res.ok || !input.projectId) return res;
|
|
560
|
+
const projectId = input.projectId;
|
|
561
|
+
inBackground(async () => {
|
|
562
|
+
const ws = (await listWorkspaces()).find((w) => w.projectIds.includes(projectId));
|
|
563
|
+
if (!ws) return;
|
|
564
|
+
// The manager a create names is the one the box belongs to, whoever sent it.
|
|
565
|
+
const named = input.managerId
|
|
566
|
+
? await seams.stampFor({ managerId: input.managerId }, ws.id).catch(() => undefined)
|
|
567
|
+
: undefined;
|
|
568
|
+
const stamp = named ?? (await stampInWorkspace(meta, ws.id, seams.stampFor));
|
|
569
|
+
const name = input.name?.trim();
|
|
570
|
+
const branch = input.opts?.useBranch ?? (name ? `agentbox/${name}` : undefined);
|
|
571
|
+
const base =
|
|
572
|
+
input.fromBranch?.trim() || (await deps.projectBranch?.(projectId).catch(() => undefined));
|
|
573
|
+
await recordTimelineEvent(ws.id, {
|
|
574
|
+
type: 'box.created',
|
|
575
|
+
...stampFields(stamp),
|
|
576
|
+
key: `job:${res.jobId}:created`,
|
|
577
|
+
...(name ? { boxName: name } : {}),
|
|
578
|
+
...(input.agent !== 'none' ? { agent: input.agent } : {}),
|
|
579
|
+
...(branch ? { branch } : {}),
|
|
580
|
+
...(base ? { base } : {}),
|
|
581
|
+
projectId,
|
|
582
|
+
});
|
|
583
|
+
deps.notify();
|
|
584
|
+
});
|
|
585
|
+
return res;
|
|
586
|
+
};
|
|
587
|
+
hub.start = (id, meta) => recordAround(id, 'box.started', meta, () => start(id, meta));
|
|
588
|
+
hub.stop = (id, meta) => recordAround(id, 'box.stopped', meta, () => stop(id, meta));
|
|
589
|
+
hub.destroy = (id, o, meta) =>
|
|
590
|
+
recordAround(id, 'box.destroyed', meta, () => destroy(id, o, meta));
|
|
591
|
+
hub.gitPush = (id, input, meta) =>
|
|
592
|
+
recordAround(id, 'git.push', meta, () => gitPush(id, input, meta), {
|
|
593
|
+
push: { ...(input?.remote ? { remote: input.remote } : {}) },
|
|
594
|
+
});
|
|
595
|
+
hub.gitPushHost = (id, input, meta) =>
|
|
596
|
+
recordAround(id, 'git.push', meta, () => gitPushHost(id, input, meta), {
|
|
597
|
+
push: { hostOnly: true, ...(input?.as ? { as: input.as } : {}) },
|
|
598
|
+
});
|
|
599
|
+
// A checkout with args restores paths and switches no branch.
|
|
600
|
+
hub.gitCheckout = (id, branch, args, meta) =>
|
|
601
|
+
args?.length
|
|
602
|
+
? gitCheckout(id, branch, args, meta)
|
|
603
|
+
: recordAround(id, 'box.branch', meta, () => gitCheckout(id, branch, args, meta), {
|
|
604
|
+
branchSwitch: true,
|
|
605
|
+
});
|
|
606
|
+
hub.gitNewBranch = (id, input, meta) =>
|
|
607
|
+
recordAround(id, 'box.branch', meta, () => gitNewBranch(id, input, meta), {
|
|
608
|
+
branchSwitch: true,
|
|
609
|
+
});
|
|
610
|
+
return hub;
|
|
611
|
+
}
|