@madarco/agentbox 0.31.3 → 0.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (732) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/README.md +2 -0
  3. package/dist/_cloud-attach-6RKS3MAP.js +31 -0
  4. package/dist/{chunk-E2RPG54S.js → chunk-27S7QLDF.js} +3 -3
  5. package/dist/{chunk-EZPCCJPE.js → chunk-2APGFWEU.js} +24 -24
  6. package/dist/{chunk-7PDYVJ2Q.js → chunk-3AYSA62C.js} +3 -3
  7. package/dist/{chunk-SHFU2KSY.js → chunk-3ISG5THX.js} +3 -3
  8. package/dist/{chunk-D67Q5MNA.js → chunk-3L2DIPRM.js} +2 -2
  9. package/dist/{chunk-GYUOXSUX.js → chunk-4FOXMGJ7.js} +4 -4
  10. package/dist/{chunk-VIB2FMJJ.js → chunk-5OKDSI6M.js} +44 -44
  11. package/dist/{chunk-QWUZJCF5.js → chunk-66GAYIJZ.js} +3253 -937
  12. package/dist/chunk-66GAYIJZ.js.map +1 -0
  13. package/dist/{chunk-Q3BHXL47.js → chunk-6XMOBI5V.js} +4 -4
  14. package/dist/{chunk-VNXWOWQ7.js → chunk-7QTBRHB7.js} +4 -4
  15. package/dist/{chunk-UWKJ3HIA.js → chunk-ANSPBIYG.js} +4 -4
  16. package/dist/{chunk-7N3CJNR5.js → chunk-AWFTAHGF.js} +20 -7
  17. package/dist/chunk-AWFTAHGF.js.map +1 -0
  18. package/dist/{chunk-EHLPIWRR.js → chunk-AWI2TSWS.js} +2 -2
  19. package/dist/{chunk-GZHJVCBG.js → chunk-CDRKQ5BH.js} +9 -9
  20. package/dist/{chunk-W7P2HHFI.js → chunk-CXAWPWGZ.js} +6 -6
  21. package/dist/{chunk-V5IMDVV5.js → chunk-EDJ6O6CI.js} +6 -6
  22. package/dist/{chunk-PYPIECDD.js → chunk-GSMQL4IJ.js} +17 -17
  23. package/dist/chunk-GVNKIACA.js +223 -0
  24. package/dist/chunk-GVNKIACA.js.map +1 -0
  25. package/dist/{chunk-DKUSSE5G.js → chunk-JWQYZ6V4.js} +2 -2
  26. package/dist/{chunk-WMILLMJZ.js → chunk-KOTW7QQW.js} +5 -5
  27. package/dist/{chunk-XHCGVCSA.js → chunk-L4KBYI3I.js} +5 -5
  28. package/dist/{chunk-BMZOMC6X.js → chunk-M2DWTQRF.js} +3 -3
  29. package/dist/{chunk-XLFQXROC.js → chunk-MB2K74BI.js} +165 -3
  30. package/dist/chunk-MB2K74BI.js.map +1 -0
  31. package/dist/{chunk-MKZHCLFJ.js → chunk-MI3V2MAE.js} +4 -4
  32. package/dist/{chunk-ZMNLEZJB.js → chunk-MO3QJTVS.js} +7 -7
  33. package/dist/{chunk-MBFN2XNU.js → chunk-MPTE57BZ.js} +6 -6
  34. package/dist/{chunk-ZK6KD7ME.js → chunk-PE5LPD23.js} +68 -25
  35. package/dist/chunk-PE5LPD23.js.map +1 -0
  36. package/dist/{chunk-RNYH5465.js → chunk-QBVRWGXD.js} +3 -3
  37. package/dist/{chunk-VEO6ZYQY.js → chunk-RIXW4HSE.js} +6 -6
  38. package/dist/{chunk-QER5WHBC.js → chunk-S7LPQXR5.js} +6 -6
  39. package/dist/{chunk-JS5DLUUX.js → chunk-TAZYSVLT.js} +26 -22
  40. package/dist/{chunk-JS5DLUUX.js.map → chunk-TAZYSVLT.js.map} +1 -1
  41. package/dist/{chunk-QTMUJETE.js → chunk-TDPHZWJI.js} +4 -4
  42. package/dist/{chunk-M42UQWVO.js → chunk-WLEGSKKE.js} +4 -4
  43. package/dist/{chunk-UENVVGWE.js → chunk-WTOG3CC6.js} +4 -4
  44. package/dist/{chunk-QB7XVOYW.js → chunk-X6CO4WIX.js} +4 -4
  45. package/dist/{chunk-744IB5WM.js → chunk-XLJ4D4FI.js} +4 -4
  46. package/dist/{chunk-FVBEUPVM.js → chunk-XNZ6UHTM.js} +27 -5
  47. package/dist/chunk-XNZ6UHTM.js.map +1 -0
  48. package/dist/{chunk-SZTHLJ5J.js → chunk-XTNAIM7X.js} +6 -6
  49. package/dist/{chunk-S3SJIWSU.js → chunk-YNAJUTYC.js} +7 -7
  50. package/dist/{chunk-6GJDU3FN.js → chunk-YSACCMUB.js} +13 -13
  51. package/dist/{chunk-6RREIUAE.js → chunk-ZKOLV4ZN.js} +39 -4
  52. package/dist/chunk-ZKOLV4ZN.js.map +1 -0
  53. package/dist/{cli-JNOPYAUM.js → cli-IFXU5XNZ.js} +9 -9
  54. package/dist/{cli-I6TXLNRQ.js → cli-MZSWFSTW.js} +9 -9
  55. package/dist/{cli-VU2ALT6L.js → cli-O3WXOFNS.js} +8 -8
  56. package/dist/{cli-YYXO4WX5.js → cli-RQJUQJEP.js} +8 -8
  57. package/dist/{cli-W2WNV64V.js → cli-ZGYSHJP7.js} +9 -9
  58. package/dist/cloud-backends.js +5 -5
  59. package/dist/{control-plane-JUAINN2X.js → control-plane-3TII2JGM.js} +20 -20
  60. package/dist/{cp-hub-upload-VHU5TBHQ.js → cp-hub-upload-3W7Z4BMT.js} +7 -7
  61. package/dist/{custody-client-5OHF3SEX.js → custody-client-KYEZET6C.js} +5 -5
  62. package/dist/{deploy-hetzner-RTQW3B7P.js → deploy-hetzner-EO5PFKBG.js} +9 -9
  63. package/dist/{dist-H4FFY5TX.js → dist-3AR6L5MF.js} +8 -8
  64. package/dist/{dist-5HJBDLJP.js → dist-4GHNQ2AK.js} +8 -8
  65. package/dist/{dist-H72NQCKO.js → dist-BFH537FO.js} +9 -9
  66. package/dist/{dist-MBPDLQUR.js → dist-BUCKUE4V.js} +2 -2
  67. package/dist/{dist-64YIP2AZ.js → dist-ETGTZQUT.js} +256 -6
  68. package/dist/{dist-UGI5L7BN.js → dist-H2CSUDEI.js} +8 -8
  69. package/dist/{dist-7IANPBF4.js → dist-IABCQB5D.js} +8 -8
  70. package/dist/{dist-EDCGUXVI.js → dist-JJZ3NZRO.js} +10 -6
  71. package/dist/{dist-7RMVQOWJ.js → dist-RPBA2EL5.js} +8 -8
  72. package/dist/{dist-NJOKYHDI.js → dist-URWWHI3X.js} +9 -3
  73. package/dist/{dist-XWDFVTFR.js → dist-V224SH3Z.js} +7 -7
  74. package/dist/{host-reach-drainer-GTNLQWWM.js → host-reach-drainer-NYN3YXHG.js} +2 -2
  75. package/dist/host-session-YP5RKV6T.js +29 -0
  76. package/dist/hub-OWUC4IGW.js +39 -0
  77. package/dist/{hub-adopt-TVDMOZSP.js → hub-adopt-HYXFUPPO.js} +7 -7
  78. package/dist/{hub-api-client-RISAC6GB.js → hub-api-client-BI3E37CF.js} +4 -4
  79. package/dist/{hub-docker-target-QEALUMIZ.js → hub-docker-target-6ODSK7ZE.js} +14 -14
  80. package/dist/index.js +1224 -230
  81. package/dist/index.js.map +1 -1
  82. package/dist/{plugin-update-LG45ZFCU.js → plugin-update-LI3QDA4K.js} +5 -5
  83. package/dist/prepare-MYFNDJPP.js +45 -0
  84. package/dist/prepared-custody-WSHX6XTQ.js +39 -0
  85. package/dist/{prepared-state-FO74QUCP-SW3QMBW5.js → prepared-state-FO74QUCP-M4Q2X3KN.js} +4 -4
  86. package/dist/{publish-credentials-T7DDJVC4.js → publish-credentials-FCEQSIPE.js} +9 -9
  87. package/dist/{registry-UCFNYOAU.js → registry-GG23NEBF.js} +5 -5
  88. package/dist/relay-YUOIK3HN.js +22 -0
  89. package/dist/{remote-docker-share-SY7CWW5R.js → remote-docker-share-4Z4VVUPG.js} +11 -11
  90. package/dist/remote-docker-share-4Z4VVUPG.js.map +1 -0
  91. package/dist/{tool-grant-push-OJHLVAPZ.js → tool-grant-push-A2JYLJVF.js} +3 -3
  92. package/package.json +1 -1
  93. package/runtime/_shared/ctl.cjs +1046 -316
  94. package/runtime/digitalocean/ctl.cjs +1046 -316
  95. package/runtime/docker/packages/ctl/dist/bin.cjs +1046 -316
  96. package/runtime/e2b/ctl.cjs +1046 -316
  97. package/runtime/hetzner/ctl.cjs +1046 -316
  98. package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
  99. package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +24 -0
  100. package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
  101. package/runtime/hub/apps/hub/.next/routes-manifest.json +188 -0
  102. package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
  103. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js +2 -2
  104. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/[id]/answer/route.js.nft.json +1 -1
  105. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/approvals/route.js.nft.json +1 -1
  106. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js +4 -4
  107. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/[action]/route.js.nft.json +1 -1
  108. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/agent/route.js.nft.json +1 -1
  109. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js +2 -2
  110. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/backup/route.js.nft.json +1 -1
  111. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/branches/route.js.nft.json +1 -1
  112. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js +2 -2
  113. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/checkpoint/route.js.nft.json +1 -1
  114. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js +2 -2
  115. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/clone/route.js.nft.json +1 -1
  116. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js +4 -4
  117. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.js.nft.json +1 -1
  118. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/git/route.js.nft.json +1 -1
  119. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/logs/route.js.nft.json +1 -1
  120. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js +2 -2
  121. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/open/route.js.nft.json +1 -1
  122. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js +2 -2
  123. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/rename/route.js.nft.json +1 -1
  124. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/route.js.nft.json +1 -1
  125. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js +2 -2
  126. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/restart/route.js.nft.json +1 -1
  127. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/services/route.js.nft.json +1 -1
  128. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js +2 -2
  129. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/upload/route.js.nft.json +1 -1
  130. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/vnc/route.js.nft.json +1 -1
  131. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/[id]/web/route.js.nft.json +1 -1
  132. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js +4 -4
  133. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/boxes/route.js.nft.json +1 -1
  134. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/checkpoints/route.js.nft.json +1 -1
  135. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/custody/[...path]/route.js +3 -3
  136. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -1
  137. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -1
  138. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js +2 -2
  139. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -1
  140. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js +2 -2
  141. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/login-code/route.js.nft.json +1 -1
  142. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/logs/route.js.nft.json +1 -1
  143. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/[id]/route.js.nft.json +1 -1
  144. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/jobs/route.js.nft.json +1 -1
  145. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/app-paths-manifest.json +3 -0
  146. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/build-manifest.json +9 -0
  147. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route/server-reference-manifest.json +4 -0
  148. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js +9 -0
  149. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.map +5 -0
  150. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route.js.nft.json +1 -0
  151. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/attach/route_client-reference-manifest.js +3 -0
  152. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/app-paths-manifest.json +3 -0
  153. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/build-manifest.json +9 -0
  154. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route/server-reference-manifest.json +4 -0
  155. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js +10 -0
  156. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.map +5 -0
  157. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route.js.nft.json +1 -0
  158. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/message/route_client-reference-manifest.js +3 -0
  159. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/app-paths-manifest.json +3 -0
  160. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/build-manifest.json +9 -0
  161. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route/server-reference-manifest.json +4 -0
  162. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js +10 -0
  163. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.map +5 -0
  164. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route.js.nft.json +1 -0
  165. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/notes/route_client-reference-manifest.js +3 -0
  166. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/app-paths-manifest.json +3 -0
  167. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/build-manifest.json +9 -0
  168. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route/server-reference-manifest.json +4 -0
  169. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js +9 -0
  170. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.map +5 -0
  171. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route.js.nft.json +1 -0
  172. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/resume/route_client-reference-manifest.js +3 -0
  173. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/app-paths-manifest.json +3 -0
  174. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/build-manifest.json +9 -0
  175. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route/server-reference-manifest.json +4 -0
  176. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js +10 -0
  177. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.map +5 -0
  178. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route.js.nft.json +1 -0
  179. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/route_client-reference-manifest.js +3 -0
  180. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/app-paths-manifest.json +3 -0
  181. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/build-manifest.json +9 -0
  182. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route/server-reference-manifest.json +4 -0
  183. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js +9 -0
  184. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.map +5 -0
  185. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route.js.nft.json +1 -0
  186. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/[id]/stop/route_client-reference-manifest.js +3 -0
  187. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/app-paths-manifest.json +3 -0
  188. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/build-manifest.json +9 -0
  189. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route/server-reference-manifest.json +4 -0
  190. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js +10 -0
  191. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.map +5 -0
  192. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route.js.nft.json +1 -0
  193. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/detect/route_client-reference-manifest.js +3 -0
  194. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/app-paths-manifest.json +3 -0
  195. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/build-manifest.json +9 -0
  196. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route/server-reference-manifest.json +4 -0
  197. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js +10 -0
  198. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.map +5 -0
  199. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route.js.nft.json +1 -0
  200. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/managers/route_client-reference-manifest.js +3 -0
  201. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/open-targets/route.js.nft.json +1 -1
  202. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/bots/route.js.nft.json +1 -1
  203. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/branches/route.js.nft.json +1 -1
  204. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js +2 -2
  205. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/create-preflight/route.js.nft.json +1 -1
  206. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js +2 -2
  207. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/restore/route.js.nft.json +1 -1
  208. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/route.js.nft.json +1 -1
  209. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/[id]/seed/route.js.nft.json +1 -1
  210. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js +2 -2
  211. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/projects/route.js.nft.json +1 -1
  212. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js +2 -2
  213. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/credentials/route.js.nft.json +1 -1
  214. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js +2 -2
  215. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/prepare/route.js.nft.json +1 -1
  216. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js +2 -2
  217. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/[id]/size-check/route.js.nft.json +1 -1
  218. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/providers/route.js.nft.json +1 -1
  219. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js +2 -2
  220. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/prune/route.js.nft.json +1 -1
  221. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/system/route.js.nft.json +1 -1
  222. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/app-paths-manifest.json +3 -0
  223. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/build-manifest.json +9 -0
  224. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route/server-reference-manifest.json +4 -0
  225. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js +10 -0
  226. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.map +5 -0
  227. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route.js.nft.json +1 -0
  228. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/tasks/route_client-reference-manifest.js +3 -0
  229. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/app-paths-manifest.json +3 -0
  230. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/build-manifest.json +9 -0
  231. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route/server-reference-manifest.json +4 -0
  232. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js +9 -0
  233. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.map +5 -0
  234. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route.js.nft.json +1 -0
  235. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/route_client-reference-manifest.js +3 -0
  236. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/app-paths-manifest.json +3 -0
  237. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/build-manifest.json +9 -0
  238. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route/server-reference-manifest.json +4 -0
  239. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js +9 -0
  240. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.map +5 -0
  241. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.js.nft.json +1 -0
  242. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route_client-reference-manifest.js +3 -0
  243. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/app-paths-manifest.json +3 -0
  244. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/build-manifest.json +9 -0
  245. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route/server-reference-manifest.json +4 -0
  246. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js +10 -0
  247. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.map +5 -0
  248. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.js.nft.json +1 -0
  249. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route_client-reference-manifest.js +3 -0
  250. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/app-paths-manifest.json +3 -0
  251. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/build-manifest.json +9 -0
  252. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route/server-reference-manifest.json +4 -0
  253. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js +10 -0
  254. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.map +5 -0
  255. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route.js.nft.json +1 -0
  256. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rename/route_client-reference-manifest.js +3 -0
  257. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/app-paths-manifest.json +3 -0
  258. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/build-manifest.json +9 -0
  259. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route/server-reference-manifest.json +4 -0
  260. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js +9 -0
  261. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js.map +5 -0
  262. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.js.nft.json +1 -0
  263. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/rescan/route_client-reference-manifest.js +3 -0
  264. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/app-paths-manifest.json +3 -0
  265. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/build-manifest.json +9 -0
  266. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route/server-reference-manifest.json +4 -0
  267. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js +10 -0
  268. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.map +5 -0
  269. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route.js.nft.json +1 -0
  270. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/route_client-reference-manifest.js +3 -0
  271. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/app-paths-manifest.json +3 -0
  272. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/build-manifest.json +9 -0
  273. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route/server-reference-manifest.json +4 -0
  274. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js +10 -0
  275. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.map +5 -0
  276. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.js.nft.json +1 -0
  277. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route_client-reference-manifest.js +3 -0
  278. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/app-paths-manifest.json +3 -0
  279. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/build-manifest.json +9 -0
  280. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route/server-reference-manifest.json +4 -0
  281. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js +9 -0
  282. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.map +5 -0
  283. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.js.nft.json +1 -0
  284. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route_client-reference-manifest.js +3 -0
  285. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/app-paths-manifest.json +3 -0
  286. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/build-manifest.json +9 -0
  287. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route/server-reference-manifest.json +4 -0
  288. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js +10 -0
  289. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.map +5 -0
  290. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.js.nft.json +1 -0
  291. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route_client-reference-manifest.js +3 -0
  292. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/app-paths-manifest.json +3 -0
  293. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/build-manifest.json +9 -0
  294. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route/server-reference-manifest.json +4 -0
  295. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js +9 -0
  296. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.map +5 -0
  297. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.js.nft.json +1 -0
  298. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route_client-reference-manifest.js +3 -0
  299. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/app-paths-manifest.json +3 -0
  300. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/build-manifest.json +9 -0
  301. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route/server-reference-manifest.json +4 -0
  302. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js +10 -0
  303. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.map +5 -0
  304. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.js.nft.json +1 -0
  305. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route_client-reference-manifest.js +3 -0
  306. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/app-paths-manifest.json +3 -0
  307. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/build-manifest.json +9 -0
  308. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route/server-reference-manifest.json +4 -0
  309. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js +10 -0
  310. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.map +5 -0
  311. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.js.nft.json +1 -0
  312. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route_client-reference-manifest.js +3 -0
  313. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/app-paths-manifest.json +3 -0
  314. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/build-manifest.json +9 -0
  315. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route/server-reference-manifest.json +4 -0
  316. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js +10 -0
  317. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.map +5 -0
  318. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.js.nft.json +1 -0
  319. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/tasks/route_client-reference-manifest.js +3 -0
  320. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/app-paths-manifest.json +3 -0
  321. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/build-manifest.json +9 -0
  322. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route/server-reference-manifest.json +4 -0
  323. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js +10 -0
  324. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.map +5 -0
  325. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.js.nft.json +1 -0
  326. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/[id]/timeline/route_client-reference-manifest.js +3 -0
  327. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/app-paths-manifest.json +3 -0
  328. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/build-manifest.json +9 -0
  329. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route/server-reference-manifest.json +4 -0
  330. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js +10 -0
  331. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.map +5 -0
  332. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route.js.nft.json +1 -0
  333. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/workspaces/route_client-reference-manifest.js +3 -0
  334. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page.js.nft.json +1 -1
  335. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
  336. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
  337. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
  338. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/vnc/route.js.nft.json +1 -1
  339. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/web/route.js.nft.json +1 -1
  340. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page.js.nft.json +1 -1
  341. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/custody/page_client-reference-manifest.js +1 -1
  342. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
  343. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
  344. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
  345. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
  346. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
  347. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
  348. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page.js.nft.json +1 -1
  349. package/runtime/hub/apps/hub/.next/server/app/(dashboard)/system/page_client-reference-manifest.js +1 -1
  350. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js +1 -1
  351. package/runtime/hub/apps/hub/.next/server/app/[...path]/route.js.nft.json +1 -1
  352. package/runtime/hub/apps/hub/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
  353. package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
  354. package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
  355. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  356. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  357. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  358. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  359. package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  360. package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  361. package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +24 -0
  362. package/runtime/hub/apps/hub/.next/server/chunks/00je_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_assign_route_actions_1sufsej.js +3 -0
  363. package/runtime/hub/apps/hub/.next/server/chunks/00je_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_done_route_actions_216dixx.js +3 -0
  364. 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
  365. 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
  366. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_managers_sessions_route_actions_16dksub.js +3 -0
  367. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_managers_start_route_actions_1g-vmis.js +3 -0
  368. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_[taskId]_route_actions_03oih6y.js +3 -0
  369. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_assign_route_actions_196zwo9.js +3 -0
  370. package/runtime/hub/apps/hub/.next/server/chunks/05v5_app_(dashboard)_api_v1_workspaces_[id]_tasks_reorder_route_actions_1zkcfk-.js +3 -0
  371. package/runtime/hub/apps/hub/.next/server/chunks/0ssw__next-internal_server_app_(dashboard)_api_v1_workspaces_route_actions_12a7_y8.js +3 -0
  372. package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_managers_[id]_route_actions_07cpyb_.js +3 -0
  373. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_attach_route_actions_0o-khw8.js +3 -0
  374. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_message_route_actions_0rjcqe5.js +3 -0
  375. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_notes_route_actions_1-mf4r_.js +3 -0
  376. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_resume_route_actions_0-cm1mu.js +3 -0
  377. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_[id]_stop_route_actions_16nrl1r.js +3 -0
  378. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_managers_detect_route_actions_1sdbs-_.js +3 -0
  379. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_managers_route_actions_1sxymv0.js +3 -0
  380. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_rename_route_actions_0df5zi2.js +3 -0
  381. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_rescan_route_actions_1yra_w8.js +3 -0
  382. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_route_actions_1f56n_0.js +3 -0
  383. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_tasks_route_actions_1t-6quw.js +3 -0
  384. package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_workspaces_[id]_timeline_route_actions_0pbxblt.js +3 -0
  385. package/runtime/hub/apps/hub/.next/server/chunks/1viy_api_v1_workspaces_[id]_tasks_[taskId]_unassign_route_actions_18a1p_r.js +3 -0
  386. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0-c97gb._.js +1 -1
  387. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0spnud2._.js → [root-of-the-server]__0-kl55b._.js} +1 -1
  388. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__074mxl5._.js → [root-of-the-server]__0-xlf9z._.js} +2 -2
  389. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__028ifqb._.js → [root-of-the-server]__0004tsz._.js} +2 -2
  390. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00bupbc._.js +1 -1
  391. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1cpr4qy._.js → [root-of-the-server]__0126167._.js} +1 -1
  392. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__01fy5q0._.js +1 -1
  393. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__02c077x._.js +3 -0
  394. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1ta1gr1._.js → [root-of-the-server]__02sueng._.js} +1 -1
  395. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__0nndlre._.js → [root-of-the-server]__04-gm8c._.js} +2 -2
  396. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__05uinnp._.js +1 -1
  397. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__06wy8zz._.js +3 -0
  398. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__071c-t4._.js +3 -0
  399. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08jg8w8._.js +1 -1
  400. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09059m-._.js +1 -1
  401. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__092y7_z._.js +1 -1
  402. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09ti2-t._.js +3 -0
  403. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__09y4pdw._.js +3 -0
  404. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0_mog_h._.js +1 -1
  405. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a689u5._.js +3 -0
  406. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a8ere2._.js +3 -0
  407. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bzqrje._.js +3 -0
  408. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0c_r3oe._.js +3 -0
  409. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cdoz9i._.js +1 -1
  410. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cmu4sk._.js +1 -1
  411. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0cxjxz0._.js +1 -1
  412. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d27tlu._.js +3 -0
  413. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0d3fx1z._.js +3 -0
  414. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dm5oqm._.js +1 -1
  415. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0dy5g2k._.js +1 -1
  416. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e1uaxg._.js +1 -1
  417. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0e6_t-d._.js +3 -0
  418. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ets4cd._.js +1 -1
  419. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f2u0ul._.js +1 -1
  420. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f9p_4f._.js +1 -1
  421. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0f_jmq2._.js +1 -1
  422. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fksz_r._.js +1 -1
  423. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0fpygqn._.js +3 -0
  424. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0gym-rp._.js +1 -1
  425. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0hhlb2_._.js +1 -1
  426. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0i9phow._.js +1 -1
  427. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ikyoac._.js +1 -1
  428. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0j72bti._.js +1 -1
  429. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jb371p._.js +1 -1
  430. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jq6cdw._.js +3 -0
  431. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0jt1d2s._.js +3 -0
  432. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kcw8t0._.js +1 -1
  433. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0kdt9-i._.js +1 -1
  434. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0l27vs0._.js +1 -1
  435. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lc-j_n._.js +3 -0
  436. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0lna-vq._.js +3 -0
  437. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0m5woxc._.js +1 -1
  438. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0mi9xib._.js +3 -0
  439. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0muy7eg._.js +3 -0
  440. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0nn0_b5._.js +3 -0
  441. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0no30or._.js +3 -0
  442. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0o3sjtx._.js +1 -1
  443. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0onk5r0._.js +1 -1
  444. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0pik2ie._.js +3 -0
  445. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qde3vr._.js +1 -1
  446. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0qt_r6a._.js +3 -0
  447. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ry8baf._.js +1 -1
  448. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sg4y_2._.js +3 -0
  449. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0sgjn2j._.js +1 -1
  450. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0st6oln._.js +1 -1
  451. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t0p64l._.js +1 -1
  452. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0tbl11-._.js +3 -0
  453. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ve_tqz._.js +1 -1
  454. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0w4smfx._.js +3 -0
  455. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wo4sqj._.js +1 -1
  456. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0wujjkl._.js +3 -0
  457. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xbu3yj._.js +3 -0
  458. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xl1-w6._.js +1 -1
  459. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yct1tu._.js +1 -1
  460. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0yg67t0._.js +1 -1
  461. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0ykw5oe._.js +3 -0
  462. package/runtime/hub/apps/hub/.next/server/chunks/{[root-of-the-server]__1c1rcl-._.js → [root-of-the-server]__0zznyx2._.js} +2 -2
  463. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1--u2xl._.js +3 -0
  464. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-8sj4i._.js +1 -1
  465. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10kmcrt._.js +3 -0
  466. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10l_-cd._.js +3 -0
  467. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__10yfcvu._.js +1 -1
  468. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__112hqrh._.js +3 -0
  469. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11c-21i._.js +3 -0
  470. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11qbpq8._.js +3 -0
  471. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__11s1mrd._.js +1 -1
  472. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__128w1nz._.js +3 -0
  473. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12b2kuv._.js +1 -1
  474. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__12gbq5m._.js +1 -1
  475. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13nfpq5._.js +3 -0
  476. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13vl4-h._.js +1 -1
  477. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__153b7kv._.js +1 -1
  478. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__157kmse._.js +1 -1
  479. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16695dw._.js +1 -1
  480. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__166_uek._.js +3 -0
  481. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__16o0ij7._.js +1 -1
  482. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__175lucf._.js +1 -1
  483. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17p53e3._.js +3 -0
  484. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__17y9pmx._.js +3 -0
  485. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18ec5_t._.js +3 -0
  486. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__18xpvkc._.js +1 -1
  487. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1925hyw._.js +3 -0
  488. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19ew1r2._.js +3 -0
  489. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__19grunx._.js +1 -1
  490. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_4v0mh._.js +3 -0
  491. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_cbcl1._.js +1 -1
  492. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_wb2uh._.js +3 -0
  493. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1_xgm2e._.js +3 -0
  494. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1an6-yb._.js +3 -0
  495. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c0ex8m._.js +1 -1
  496. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c1e08-._.js +3 -0
  497. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1c9f4uu._.js +1 -1
  498. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ci8hc2._.js +1 -1
  499. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1cs6d52._.js +3 -0
  500. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1d60scp._.js +3 -0
  501. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dicjoc._.js +3 -0
  502. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1diipl4._.js +3 -0
  503. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1dp2exz._.js +1 -1
  504. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1epnstn._.js +1 -1
  505. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1fjnz2l._.js +3 -0
  506. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g5wnt2._.js +1 -1
  507. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1g9v7bq._.js +1 -1
  508. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1gon0_4._.js +3 -0
  509. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h_59cs._.js +1 -1
  510. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h_q3sn._.js +3 -0
  511. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hlugb4._.js +1 -1
  512. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hux-70._.js +1 -1
  513. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i-7bnu._.js +3 -0
  514. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1i_el2y._.js +3 -0
  515. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1j6clag._.js +1 -1
  516. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1k6q17t._.js +3 -0
  517. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1khvg39._.js +1 -1
  518. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1lx9lyn._.js +3 -0
  519. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1m36v6k._.js +1 -1
  520. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mgu19x._.js +3 -0
  521. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mhyrr5._.js +3 -0
  522. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mk_lpu._.js +3 -0
  523. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1mt32fu._.js +1 -1
  524. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1n1_2tw._.js +1 -1
  525. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1na4sdw._.js +3 -0
  526. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ntihlm._.js +3 -0
  527. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1odu62n._.js +3 -0
  528. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1q6xrlt._.js +2 -2
  529. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1r4x1-y._.js +3 -0
  530. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rjs_x0._.js +1 -1
  531. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1rxud0j._.js +1 -1
  532. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1s5app0._.js +1 -1
  533. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1sjz59l._.js +3 -0
  534. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1slo4q_._.js +1 -1
  535. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1thrazp._.js +3 -0
  536. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1twtnwr._.js +1 -1
  537. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1txvsbk._.js +3 -0
  538. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1uch-60._.js +1 -1
  539. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1um2jum._.js +3 -0
  540. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1vnnuo1._.js +1 -1
  541. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wegvep._.js +3 -0
  542. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1wi5roz._.js +1 -1
  543. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1xa9oiv._.js +3 -0
  544. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1ypmy86._.js +3 -0
  545. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zml9me._.js +1 -1
  546. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1zrf_a6._.js +1 -1
  547. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__2019yzl._.js +3 -0
  548. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20jyxyo._.js +2 -2
  549. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20ybhif._.js +1 -1
  550. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__20zl5fr._.js +1 -1
  551. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__212dyoi._.js +1 -1
  552. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__218oup-._.js +1 -1
  553. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__21abvx9._.js +3 -0
  554. package/runtime/hub/apps/hub/.next/server/chunks/_0907rw0._.js +2 -1
  555. package/runtime/hub/apps/hub/.next/server/chunks/_0mcxq5g._.js +1 -1
  556. package/runtime/hub/apps/hub/.next/server/chunks/_0vg6gvw._.js +41 -41
  557. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_openapi_ts_1yokmzt._.js +1 -1
  558. package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_validate_ts_16dhbzz._.js +1 -1
  559. package/runtime/hub/apps/hub/.next/server/chunks/packages_agent-registry_dist_index_1ze3mqq.js +28 -19
  560. package/runtime/hub/apps/hub/.next/server/chunks/packages_relay_dist_control-plane_03a-9aj.js +6 -6
  561. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__03-x9xy._.js +1 -1
  562. package/runtime/hub/apps/hub/.next/server/chunks/ssr/[root-of-the-server]__1jqga8h._.js +1 -1
  563. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r2xlss._.js +2 -1
  564. package/runtime/hub/apps/hub/.next/server/chunks/ssr/_14-qzbg._.js +26 -26
  565. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_agent-registry_dist_index_0z476w4.js +26 -17
  566. package/runtime/hub/apps/hub/.next/server/chunks/ssr/packages_relay_dist_control-plane_0ve-wz4.js +1 -1
  567. package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +24 -0
  568. package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
  569. package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
  570. package/runtime/hub/apps/hub/.next/static/chunks/{31e1wjin30i__.css → 03_fxfc3849ms.css} +1 -1
  571. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/[id]/[action]/route.ts +4 -2
  572. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/[id]/git/[op]/route.ts +6 -4
  573. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/boxes/route.ts +2 -1
  574. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/actor.ts +48 -0
  575. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/envelope.ts +5 -2
  576. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/openapi.ts +1687 -52
  577. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/lib/validate.ts +527 -1
  578. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/attach/route.ts +26 -0
  579. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/message/route.ts +34 -0
  580. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/notes/route.ts +26 -0
  581. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/resume/route.ts +26 -0
  582. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/route.ts +34 -0
  583. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/[id]/stop/route.ts +23 -0
  584. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/detect/route.ts +33 -0
  585. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/managers/route.ts +27 -0
  586. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/tasks/route.ts +30 -0
  587. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/route.ts +19 -0
  588. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/sessions/route.ts +22 -0
  589. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/managers/start/route.ts +61 -0
  590. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/rename/route.ts +25 -0
  591. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/rescan/route.ts +20 -0
  592. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/route.ts +34 -0
  593. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/assign/route.ts +33 -0
  594. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/done/route.ts +23 -0
  595. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/route.ts +54 -0
  596. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/[taskId]/unassign/route.ts +25 -0
  597. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/assign/route.ts +34 -0
  598. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/reorder/route.ts +33 -0
  599. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/tasks/route.ts +59 -0
  600. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/[id]/timeline/route.ts +25 -0
  601. package/runtime/hub/apps/hub/app/(dashboard)/api/v1/workspaces/route.ts +31 -0
  602. package/runtime/hub/apps/hub/{chunk-FQY5OEWX.js → chunk-2LE76CT3.js} +19 -6
  603. package/runtime/hub/apps/hub/{chunk-MIETKCV4.js → chunk-BR4WVGWJ.js} +3 -3
  604. package/runtime/hub/apps/hub/{chunk-KTWFE5BB.js → chunk-EVB2OTLU.js} +3312 -1032
  605. package/runtime/hub/apps/hub/{chunk-IDL7RJBP.js → chunk-FBNAIUXZ.js} +38 -3
  606. package/runtime/hub/apps/hub/{chunk-ORTYCJ2U.js → chunk-G2AEPH7C.js} +4 -4
  607. package/runtime/hub/apps/hub/{chunk-VNLPJ45F.js → chunk-JX5JUFSR.js} +9 -9
  608. package/runtime/hub/apps/hub/{chunk-PM2365RW.js → chunk-MD2UNTZR.js} +6 -6
  609. package/runtime/hub/apps/hub/{dist-4DVVLHK2.js → dist-3LDUYWPK.js} +8 -2
  610. package/runtime/hub/apps/hub/{dist-RWN4Z57N.js → dist-CJ6QFUFV.js} +5 -5
  611. package/runtime/hub/apps/hub/{dist-FM26NQ4V.js → dist-D36FTGG6.js} +1 -1
  612. package/runtime/hub/apps/hub/{dist-VF56FSKH.js → dist-GGLWLMY6.js} +6 -6
  613. package/runtime/hub/apps/hub/{dist-WA2LO2DU.js → dist-HLLYJGIT.js} +6 -6
  614. package/runtime/hub/apps/hub/{dist-OAS6A7E4.js → dist-IIQU4I42.js} +5 -5
  615. package/runtime/hub/apps/hub/{dist-3IYYT3II.js → dist-UFMCOK3W.js} +5 -5
  616. package/runtime/hub/apps/hub/{dist-LMXU56B2.js → dist-XUNBQ4WM.js} +5 -5
  617. package/runtime/hub/apps/hub/{dist-LOZYEDXA.js → dist-Y2263LMY.js} +8 -4
  618. package/runtime/hub/apps/hub/{dist-UPKSCLZ2.js → dist-YV4M6NJO.js} +5 -5
  619. package/runtime/hub/apps/hub/{hub-worker-6JAWRLP2.js → hub-worker-LJYEEAJL.js} +7 -7
  620. package/runtime/hub/apps/hub/lib/backend/background.ts +19 -0
  621. package/runtime/hub/apps/hub/lib/backend/box-facts.ts +97 -0
  622. package/runtime/hub/apps/hub/lib/backend/box-prs.ts +213 -0
  623. package/runtime/hub/apps/hub/lib/backend/deps.ts +99 -0
  624. package/runtime/hub/apps/hub/lib/backend/errors.ts +7 -0
  625. package/runtime/hub/apps/hub/lib/backend/github-prs.ts +302 -0
  626. package/runtime/hub/apps/hub/lib/backend/managers.ts +748 -0
  627. package/runtime/hub/apps/hub/lib/backend/timeline-lanes.ts +150 -0
  628. package/runtime/hub/apps/hub/lib/backend/timeline.ts +611 -0
  629. package/runtime/hub/apps/hub/lib/backend/workspaces.ts +439 -0
  630. package/runtime/hub/apps/hub/lib/boxes/backend-types.ts +355 -10
  631. package/runtime/hub/apps/hub/lib/boxes/postgres-source.ts +3 -0
  632. package/runtime/hub/apps/hub/lib/boxes/source.ts +18 -1
  633. package/runtime/hub/apps/hub/lib/boxes/types.ts +66 -0
  634. package/runtime/hub/apps/hub/lib/hub-backend.ts +114 -7
  635. package/runtime/hub/apps/hub/{prepared-state-FO74QUCP-QR6ZNI3Q.js → prepared-state-FO74QUCP-75UBPW5I.js} +3 -3
  636. package/runtime/hub/apps/hub/server.js +2033 -164
  637. package/runtime/hub/apps/hub/test/backend-managers-background.test.ts +336 -0
  638. package/runtime/hub/apps/hub/test/backend-managers.test.ts +493 -0
  639. package/runtime/hub/apps/hub/test/backend-workspaces.test.ts +208 -0
  640. package/runtime/hub/apps/hub/test/box-prs.test.ts +198 -0
  641. package/runtime/hub/apps/hub/test/timeline-lanes.test.ts +261 -0
  642. package/runtime/hub/apps/hub/test/timeline.test.ts +1185 -0
  643. package/runtime/hub/apps/hub/test/validate.test.ts +252 -0
  644. package/runtime/hub/apps/hub/tsconfig.tsbuildinfo +1 -1
  645. package/runtime/relay/bin.cjs +1419 -623
  646. package/runtime/vercel/ctl.cjs +1046 -316
  647. package/share/host-skills/agentbox-info/SKILL.md +25 -4
  648. package/dist/_cloud-attach-QB72ZV7T.js +0 -31
  649. package/dist/chunk-6RREIUAE.js.map +0 -1
  650. package/dist/chunk-7N3CJNR5.js.map +0 -1
  651. package/dist/chunk-FVBEUPVM.js.map +0 -1
  652. package/dist/chunk-QWUZJCF5.js.map +0 -1
  653. package/dist/chunk-XLFQXROC.js.map +0 -1
  654. package/dist/chunk-ZK6KD7ME.js.map +0 -1
  655. package/dist/hub-C5B3CRP6.js +0 -39
  656. package/dist/prepare-6JLTXX65.js +0 -45
  657. package/dist/prepared-custody-YVVTL2ZM.js +0 -39
  658. package/dist/relay-W73AIA35.js +0 -22
  659. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__00o_3sf._.js +0 -3
  660. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__08xwxyo._.js +0 -3
  661. package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1-mtsr6._.js +0 -3
  662. /package/dist/{_cloud-attach-QB72ZV7T.js.map → _cloud-attach-6RKS3MAP.js.map} +0 -0
  663. /package/dist/{chunk-E2RPG54S.js.map → chunk-27S7QLDF.js.map} +0 -0
  664. /package/dist/{chunk-EZPCCJPE.js.map → chunk-2APGFWEU.js.map} +0 -0
  665. /package/dist/{chunk-7PDYVJ2Q.js.map → chunk-3AYSA62C.js.map} +0 -0
  666. /package/dist/{chunk-SHFU2KSY.js.map → chunk-3ISG5THX.js.map} +0 -0
  667. /package/dist/{chunk-D67Q5MNA.js.map → chunk-3L2DIPRM.js.map} +0 -0
  668. /package/dist/{chunk-GYUOXSUX.js.map → chunk-4FOXMGJ7.js.map} +0 -0
  669. /package/dist/{chunk-VIB2FMJJ.js.map → chunk-5OKDSI6M.js.map} +0 -0
  670. /package/dist/{chunk-Q3BHXL47.js.map → chunk-6XMOBI5V.js.map} +0 -0
  671. /package/dist/{chunk-VNXWOWQ7.js.map → chunk-7QTBRHB7.js.map} +0 -0
  672. /package/dist/{chunk-UWKJ3HIA.js.map → chunk-ANSPBIYG.js.map} +0 -0
  673. /package/dist/{chunk-EHLPIWRR.js.map → chunk-AWI2TSWS.js.map} +0 -0
  674. /package/dist/{chunk-GZHJVCBG.js.map → chunk-CDRKQ5BH.js.map} +0 -0
  675. /package/dist/{chunk-W7P2HHFI.js.map → chunk-CXAWPWGZ.js.map} +0 -0
  676. /package/dist/{chunk-V5IMDVV5.js.map → chunk-EDJ6O6CI.js.map} +0 -0
  677. /package/dist/{chunk-PYPIECDD.js.map → chunk-GSMQL4IJ.js.map} +0 -0
  678. /package/dist/{chunk-DKUSSE5G.js.map → chunk-JWQYZ6V4.js.map} +0 -0
  679. /package/dist/{chunk-WMILLMJZ.js.map → chunk-KOTW7QQW.js.map} +0 -0
  680. /package/dist/{chunk-XHCGVCSA.js.map → chunk-L4KBYI3I.js.map} +0 -0
  681. /package/dist/{chunk-BMZOMC6X.js.map → chunk-M2DWTQRF.js.map} +0 -0
  682. /package/dist/{chunk-MKZHCLFJ.js.map → chunk-MI3V2MAE.js.map} +0 -0
  683. /package/dist/{chunk-ZMNLEZJB.js.map → chunk-MO3QJTVS.js.map} +0 -0
  684. /package/dist/{chunk-MBFN2XNU.js.map → chunk-MPTE57BZ.js.map} +0 -0
  685. /package/dist/{chunk-RNYH5465.js.map → chunk-QBVRWGXD.js.map} +0 -0
  686. /package/dist/{chunk-VEO6ZYQY.js.map → chunk-RIXW4HSE.js.map} +0 -0
  687. /package/dist/{chunk-QER5WHBC.js.map → chunk-S7LPQXR5.js.map} +0 -0
  688. /package/dist/{chunk-QTMUJETE.js.map → chunk-TDPHZWJI.js.map} +0 -0
  689. /package/dist/{chunk-M42UQWVO.js.map → chunk-WLEGSKKE.js.map} +0 -0
  690. /package/dist/{chunk-UENVVGWE.js.map → chunk-WTOG3CC6.js.map} +0 -0
  691. /package/dist/{chunk-QB7XVOYW.js.map → chunk-X6CO4WIX.js.map} +0 -0
  692. /package/dist/{chunk-744IB5WM.js.map → chunk-XLJ4D4FI.js.map} +0 -0
  693. /package/dist/{chunk-SZTHLJ5J.js.map → chunk-XTNAIM7X.js.map} +0 -0
  694. /package/dist/{chunk-S3SJIWSU.js.map → chunk-YNAJUTYC.js.map} +0 -0
  695. /package/dist/{chunk-6GJDU3FN.js.map → chunk-YSACCMUB.js.map} +0 -0
  696. /package/dist/{cli-I6TXLNRQ.js.map → cli-IFXU5XNZ.js.map} +0 -0
  697. /package/dist/{cli-JNOPYAUM.js.map → cli-MZSWFSTW.js.map} +0 -0
  698. /package/dist/{cli-VU2ALT6L.js.map → cli-O3WXOFNS.js.map} +0 -0
  699. /package/dist/{cli-W2WNV64V.js.map → cli-RQJUQJEP.js.map} +0 -0
  700. /package/dist/{cli-YYXO4WX5.js.map → cli-ZGYSHJP7.js.map} +0 -0
  701. /package/dist/{control-plane-JUAINN2X.js.map → control-plane-3TII2JGM.js.map} +0 -0
  702. /package/dist/{cp-hub-upload-VHU5TBHQ.js.map → cp-hub-upload-3W7Z4BMT.js.map} +0 -0
  703. /package/dist/{custody-client-5OHF3SEX.js.map → custody-client-KYEZET6C.js.map} +0 -0
  704. /package/dist/{deploy-hetzner-RTQW3B7P.js.map → deploy-hetzner-EO5PFKBG.js.map} +0 -0
  705. /package/dist/{dist-64YIP2AZ.js.map → dist-3AR6L5MF.js.map} +0 -0
  706. /package/dist/{dist-5HJBDLJP.js.map → dist-4GHNQ2AK.js.map} +0 -0
  707. /package/dist/{dist-7IANPBF4.js.map → dist-BFH537FO.js.map} +0 -0
  708. /package/dist/{dist-EDCGUXVI.js.map → dist-BUCKUE4V.js.map} +0 -0
  709. /package/dist/{dist-H4FFY5TX.js.map → dist-ETGTZQUT.js.map} +0 -0
  710. /package/dist/{dist-H72NQCKO.js.map → dist-H2CSUDEI.js.map} +0 -0
  711. /package/dist/{dist-MBPDLQUR.js.map → dist-IABCQB5D.js.map} +0 -0
  712. /package/dist/{dist-NJOKYHDI.js.map → dist-JJZ3NZRO.js.map} +0 -0
  713. /package/dist/{dist-7RMVQOWJ.js.map → dist-RPBA2EL5.js.map} +0 -0
  714. /package/dist/{dist-UGI5L7BN.js.map → dist-URWWHI3X.js.map} +0 -0
  715. /package/dist/{dist-XWDFVTFR.js.map → dist-V224SH3Z.js.map} +0 -0
  716. /package/dist/{host-reach-drainer-GTNLQWWM.js.map → host-reach-drainer-NYN3YXHG.js.map} +0 -0
  717. /package/dist/{hub-C5B3CRP6.js.map → host-session-YP5RKV6T.js.map} +0 -0
  718. /package/dist/{hub-adopt-TVDMOZSP.js.map → hub-OWUC4IGW.js.map} +0 -0
  719. /package/dist/{hub-api-client-RISAC6GB.js.map → hub-adopt-HYXFUPPO.js.map} +0 -0
  720. /package/dist/{prepare-6JLTXX65.js.map → hub-api-client-BI3E37CF.js.map} +0 -0
  721. /package/dist/{hub-docker-target-QEALUMIZ.js.map → hub-docker-target-6ODSK7ZE.js.map} +0 -0
  722. /package/dist/{plugin-update-LG45ZFCU.js.map → plugin-update-LI3QDA4K.js.map} +0 -0
  723. /package/dist/{prepared-custody-YVVTL2ZM.js.map → prepare-MYFNDJPP.js.map} +0 -0
  724. /package/dist/{prepared-state-FO74QUCP-SW3QMBW5.js.map → prepared-custody-WSHX6XTQ.js.map} +0 -0
  725. /package/dist/{registry-UCFNYOAU.js.map → prepared-state-FO74QUCP-M4Q2X3KN.js.map} +0 -0
  726. /package/dist/{publish-credentials-T7DDJVC4.js.map → publish-credentials-FCEQSIPE.js.map} +0 -0
  727. /package/dist/{relay-W73AIA35.js.map → registry-GG23NEBF.js.map} +0 -0
  728. /package/dist/{remote-docker-share-SY7CWW5R.js.map → relay-YUOIK3HN.js.map} +0 -0
  729. /package/dist/{tool-grant-push-OJHLVAPZ.js.map → tool-grant-push-A2JYLJVF.js.map} +0 -0
  730. /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → QDhlg7V_fEVGv_NfM2cEJ}/_buildManifest.js +0 -0
  731. /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → QDhlg7V_fEVGv_NfM2cEJ}/_clientMiddlewareManifest.js +0 -0
  732. /package/runtime/hub/apps/hub/.next/static/{kg0mtyaaNMvU3P8p7nLPa → QDhlg7V_fEVGv_NfM2cEJ}/_ssgManifest.js +0 -0
@@ -0,0 +1,1185 @@
1
+ import { execFileSync } from 'node:child_process';
2
+ import { mkdir, mkdtemp, readFile, realpath, rm, writeFile } from 'node:fs/promises';
3
+ import { tmpdir } from 'node:os';
4
+ import { join } from 'node:path';
5
+ import { beforeEach, describe, expect, it, vi } from 'vitest';
6
+ import { assertTempHome } from '../../../scripts/test-home.js';
7
+ import { backgroundSettled } from '../lib/backend/background';
8
+ import { createManagerBackend } from '../lib/backend/managers';
9
+ import { createWorkspaceBackend } from '../lib/backend/workspaces';
10
+ import { createGithubPrSync } from '../lib/backend/github-prs';
11
+ import {
12
+ aggregateTimeline,
13
+ branchUrlOf,
14
+ buildTimelineSummary,
15
+ createTimelineBackend,
16
+ liveReadyItems,
17
+ parseShortstat,
18
+ repoUrlOfPrUrl,
19
+ stampInWorkspace,
20
+ withBoxTimeline,
21
+ type RepoWebLookup,
22
+ } from '../lib/backend/timeline';
23
+ import type { BackendDeps, TimelineBoxFact } from '../lib/backend/deps';
24
+ import type { HubBackend } from '../lib/boxes/backend-types';
25
+ import { hashProjectPath } from '@agentbox/config';
26
+ import { scratchBranchName } from '@agentbox/sandbox-core';
27
+ import {
28
+ readTimeline,
29
+ readWorkspace,
30
+ recordTimelineEvent,
31
+ resolveWorkspaceDir,
32
+ timelineFile,
33
+ type TimelineEvent,
34
+ } from '@agentbox/relay';
35
+
36
+ const S1 = '5edc0ee0-ce9a-4e30-962d-bc630388d8bc';
37
+ const S2 = '6fdc0ee0-ce9a-4e30-962d-bc630388d8bc';
38
+ const S3 = '7fdc0ee0-ce9a-4e30-962d-bc630388d8bc';
39
+ const MGR = '0123456789abcdef';
40
+
41
+ let seq = 0;
42
+ function ev(over: Partial<TimelineEvent> & Pick<TimelineEvent, 'type'>): TimelineEvent {
43
+ seq += 1;
44
+ return {
45
+ id: `id${String(seq).padStart(4, '0')}`,
46
+ at: new Date(Date.UTC(2026, 8, 13, 10, 0, seq)).toISOString(),
47
+ actor: 'manager',
48
+ ...over,
49
+ };
50
+ }
51
+
52
+ function created(taskId: string, over: Partial<TimelineEvent> = {}): TimelineEvent {
53
+ return ev({
54
+ type: 'task.created',
55
+ managerId: MGR,
56
+ turn: 12,
57
+ prompt: 'plan the checkout work',
58
+ task: { id: taskId, title: taskId, to: 'todo' },
59
+ taskIds: [taskId],
60
+ ...over,
61
+ });
62
+ }
63
+
64
+ const pr = (number: number, over: Partial<NonNullable<TimelineEvent['pr']>> = {}) => ({
65
+ repo: 'o/r',
66
+ number,
67
+ title: `PR ${String(number)}`,
68
+ url: `https://github.com/o/r/pull/${String(number)}`,
69
+ base: 'main',
70
+ head: `agentbox/b${String(number)}`,
71
+ ...over,
72
+ });
73
+
74
+ describe('aggregateTimeline', () => {
75
+ it('collapses 3+ task creates from one manager turn into one plan item', () => {
76
+ const items = aggregateTimeline([created('T-1'), created('T-2'), created('T-3')]);
77
+ expect(items).toHaveLength(1);
78
+ expect(items[0]).toMatchObject({
79
+ type: 'plan',
80
+ count: 3,
81
+ managerId: MGR,
82
+ turn: 12,
83
+ prompt: 'plan the checkout work',
84
+ taskIds: ['T-1', 'T-2', 'T-3'],
85
+ });
86
+ });
87
+
88
+ it('leaves two creates, other turns and creates outside the window alone', () => {
89
+ expect(aggregateTimeline([created('T-1'), created('T-2')]).map((i) => i.type)).toEqual([
90
+ 'task.created',
91
+ 'task.created',
92
+ ]);
93
+ const spread = aggregateTimeline([
94
+ created('T-1'),
95
+ created('T-2', { turn: 13 }),
96
+ created('T-3', { at: '2026-09-13T11:00:00.000Z' }),
97
+ ]);
98
+ expect(spread.every((i) => i.type === 'task.created')).toBe(true);
99
+ });
100
+
101
+ it('drops a move to in_progress that is just the assignment, and marks an approved merge', () => {
102
+ const items = aggregateTimeline([
103
+ ev({ type: 'task.assigned', taskIds: ['T-4'] }),
104
+ ev({ type: 'task.status', task: { id: 'T-4', title: 'x', from: 'todo', to: 'in_progress' } }),
105
+ ev({
106
+ type: 'manager.message',
107
+ actor: 'human',
108
+ managerId: MGR,
109
+ pr: pr(409),
110
+ text: 'Approved',
111
+ }),
112
+ ev({ type: 'pr.merged', actor: 'github', pr: pr(409) }),
113
+ ev({ type: 'pr.merged', actor: 'github', pr: pr(405) }),
114
+ ]);
115
+ expect(items.map((i) => i.type)).toEqual([
116
+ 'pr.merged',
117
+ 'pr.merged',
118
+ 'manager.message',
119
+ 'task.assigned',
120
+ ]);
121
+ expect(items.find((i) => i.pr?.number === 409)?.approvedByYou).toBe(true);
122
+ expect(items.find((i) => i.pr?.number === 405)?.approvedByYou).toBeUndefined();
123
+ });
124
+
125
+ it('matches a message by repo and number, and a repo-less one only when the number is unambiguous', () => {
126
+ const other = pr(409, { repo: 'o/other', url: 'https://github.com/o/other/pull/409' });
127
+ const merged = ev({ type: 'pr.merged', actor: 'github', pr: pr(409) });
128
+ const wrongRepo = ev({ type: 'manager.message', actor: 'human', pr: other });
129
+ expect(
130
+ aggregateTimeline([wrongRepo, merged]).find((i) => i.type === 'pr.merged')?.approvedByYou,
131
+ ).toBeUndefined();
132
+
133
+ const bare = ev({ type: 'manager.message', actor: 'human', pr: pr(409, { repo: '' }) });
134
+ const single = aggregateTimeline([
135
+ bare,
136
+ ev({ type: 'pr.merged', actor: 'github', pr: pr(409) }),
137
+ ]);
138
+ expect(single.find((i) => i.type === 'pr.merged')?.approvedByYou).toBe(true);
139
+
140
+ const ambiguous = aggregateTimeline([
141
+ ev({ type: 'pr.ready', actor: 'github', pr: other }),
142
+ bare,
143
+ ev({ type: 'pr.merged', actor: 'github', pr: pr(409) }),
144
+ ]);
145
+ expect(ambiguous.find((i) => i.type === 'pr.merged')?.approvedByYou).toBeUndefined();
146
+ });
147
+ });
148
+
149
+ describe('live rows and summary', () => {
150
+ it('keeps a ready PR live until it merges, and marks it approved once messaged', () => {
151
+ const ready409 = ev({ type: 'pr.ready', actor: 'github', pr: pr(409), boxId: 'b1' });
152
+ const ready405 = ev({ type: 'pr.ready', actor: 'github', pr: pr(405) });
153
+ const merged405 = ev({ type: 'pr.merged', actor: 'github', pr: pr(405) });
154
+ expect(liveReadyItems([ready409, ready405, merged405])).toEqual([
155
+ expect.objectContaining({ type: 'pr.ready', boxId: 'b1', awaiting: true }),
156
+ ]);
157
+ const message = ev({ type: 'manager.message', actor: 'human', pr: pr(409) });
158
+ expect(liveReadyItems([ready409, message])[0]?.approved).toBe(true);
159
+ // The last sync saw it go red: not awaiting anyone any more.
160
+ expect(liveReadyItems([ready409], () => 'open')).toEqual([]);
161
+ // No sync since the hub started: only a PR the sync already confirmed is live.
162
+ expect(liveReadyItems([ready409], () => undefined, false)).toEqual([]);
163
+ expect(liveReadyItems([ready409], () => 'ready', false)).toHaveLength(1);
164
+ const summary = buildTimelineSummary(
165
+ [ready409],
166
+ '2000-01-01T00:00:00.000Z',
167
+ liveReadyItems([ready409], () => undefined, false),
168
+ 0,
169
+ );
170
+ expect(summary.awaiting).toBe(0);
171
+ });
172
+
173
+ it('sums merges and finished tasks since a time, and counts what awaits you', () => {
174
+ const events = [
175
+ ev({
176
+ type: 'pr.merged',
177
+ pr: pr(1, { additions: 100, deletions: 20 }),
178
+ at: '2026-09-13T09:00:00.000Z',
179
+ }),
180
+ ev({
181
+ type: 'pr.merged',
182
+ pr: pr(2, { additions: 5, deletions: 1 }),
183
+ at: '2026-09-13T12:00:00.000Z',
184
+ }),
185
+ ev({
186
+ type: 'task.status',
187
+ task: { id: 'T-1', title: 'x', to: 'done' },
188
+ at: '2026-09-13T12:00:00.000Z',
189
+ }),
190
+ ];
191
+ const live = liveReadyItems([ev({ type: 'pr.ready', pr: pr(3) })]);
192
+ expect(buildTimelineSummary(events, '2026-09-13T10:00:00.000Z', live, 2)).toEqual({
193
+ since: '2026-09-13T10:00:00.000Z',
194
+ merged: 1,
195
+ additions: 5,
196
+ deletions: 1,
197
+ tasksDone: 1,
198
+ awaiting: 3,
199
+ });
200
+ });
201
+
202
+ it('parses git diff --shortstat', () => {
203
+ expect(parseShortstat(' 3 files changed, 84 insertions(+), 31 deletions(-)\n')).toEqual({
204
+ filesChanged: 3,
205
+ additions: 84,
206
+ deletions: 31,
207
+ });
208
+ expect(parseShortstat(' 1 file changed, 1 deletion(-)')).toEqual({
209
+ filesChanged: 1,
210
+ additions: 0,
211
+ deletions: 1,
212
+ });
213
+ });
214
+ });
215
+
216
+ // ── against the store ──
217
+
218
+ interface Harness {
219
+ deps: BackendDeps;
220
+ spawned: string[][];
221
+ tmux: Set<string>;
222
+ alive: Set<number>;
223
+ boxes: TimelineBoxFact[];
224
+ gh: ReturnType<typeof vi.fn>;
225
+ }
226
+
227
+ function harness(): Harness {
228
+ const spawned: string[][] = [];
229
+ const tmux = new Set<string>();
230
+ const alive = new Set<number>();
231
+ const boxes: TimelineBoxFact[] = [];
232
+ const gh = vi.fn(async (_args: string[]) => ({ exitCode: 1, stdout: '', stderr: 'no gh' }));
233
+ const deps: BackendDeps = {
234
+ notify: vi.fn(),
235
+ liveBoxIds: async () => new Set(boxes.map((b) => b.id)),
236
+ jobs: async () => [],
237
+ hostname: () => 'laptop',
238
+ isPidAlive: (pid) => alive.has(pid),
239
+ processStartTime: async () => undefined,
240
+ managerExec: async (_file, args) => {
241
+ spawned.push(args);
242
+ if (args[0] === 'new-session') tmux.add(args[3]!);
243
+ if (args[0] === 'has-session' && !tmux.has(args[2]!.slice(1))) throw new Error('no session');
244
+ return { exitCode: 0 };
245
+ },
246
+ boxFacts: async () => boxes,
247
+ boxFact: async (id) => boxes.find((b) => b.id === id),
248
+ boxDiffStat: async () => ({ filesChanged: 3, additions: 84, deletions: 31 }),
249
+ pendingApprovalBoxIds: () => [],
250
+ ghExec: gh,
251
+ };
252
+ return { deps, spawned, tmux, alive, boxes, gh };
253
+ }
254
+
255
+ function backends(h: Harness) {
256
+ const workspaces = createWorkspaceBackend(h.deps);
257
+ const managers = createManagerBackend(h.deps, {
258
+ workspaceView: (id) => workspaces.getWorkspace(id),
259
+ sessionTurn: async () => ({ turn: 41, prompt: 'hold B until A merges' }),
260
+ sleep: async () => {},
261
+ });
262
+ return { workspaces, managers };
263
+ }
264
+
265
+ async function folder(): Promise<string> {
266
+ const root = await realpath(await mkdtemp(join(tmpdir(), 'agentbox-hubtl-')));
267
+ await mkdir(join(root, '.git'), { recursive: true });
268
+ return root;
269
+ }
270
+
271
+ beforeEach(async () => {
272
+ await rm(join(assertTempHome(), '.agentbox'), { recursive: true, force: true });
273
+ });
274
+
275
+ describe('timeline writes and reads', () => {
276
+ it('logs a manager plan, a note and gave-more-work, and shows the box working live', async () => {
277
+ const h = harness();
278
+ const { workspaces, managers } = backends(h);
279
+ const root = await folder();
280
+ h.alive.add(4242);
281
+ const detected = await managers.detectManager({
282
+ agent: 'claude',
283
+ sessionId: S1,
284
+ cwd: root,
285
+ pid: 4242,
286
+ host: 'laptop',
287
+ });
288
+ if (!detected.ok) throw new Error(detected.error);
289
+ const wsId = detected.workspace.id;
290
+ const stamp = await managers.timelineStamp({ agent: 'claude', sessionId: S1 }, wsId);
291
+ expect(stamp).toEqual({
292
+ actor: 'manager',
293
+ managerId: detected.manager.id,
294
+ turn: 41,
295
+ prompt: 'hold B until A merges',
296
+ });
297
+ expect(
298
+ await managers.timelineStamp({ agent: 'claude', sessionId: S1 }, 'ffffffffffffffff'),
299
+ ).toBeUndefined();
300
+
301
+ for (const title of ['A', 'B', 'C']) {
302
+ const r = await workspaces.addTask(wsId, { title }, { stamp });
303
+ if (!r.ok) throw new Error(r.error);
304
+ }
305
+ h.boxes.push({
306
+ id: 'box1',
307
+ name: 'payment-retries',
308
+ branches: ['agentbox/payment-retries'],
309
+ state: 'running',
310
+ agent: 'claude',
311
+ projectRoot: root,
312
+ projectId: 'p1',
313
+ });
314
+ const assigned = await workspaces.assignTasks(
315
+ wsId,
316
+ ['T-1'],
317
+ { boxId: 'box1' },
318
+ {
319
+ stamp,
320
+ note: 'A first: B depends on it',
321
+ },
322
+ );
323
+ if (!assigned.ok) throw new Error(assigned.error);
324
+ await backgroundSettled();
325
+ const note = await managers.addManagerNote(detected.manager.id, {
326
+ text: 'holding B until A merges',
327
+ kind: 'replan',
328
+ });
329
+ if (!note.ok) throw new Error(note.error);
330
+ expect(note.event).toMatchObject({ type: 'manager.note', turn: 41, noteKind: 'replan' });
331
+
332
+ const timeline = createTimelineBackend(h.deps);
333
+ const res = await timeline.getTimeline(wsId, { since: '2000-01-01T00:00:00.000Z' });
334
+ expect(res?.github).toBe('syncing');
335
+ const types = res!.items.map((i) => i.type);
336
+ expect(types).toContain('plan');
337
+ expect(types).toContain('manager.joined');
338
+ expect(res!.items.find((i) => i.type === 'plan')).toMatchObject({
339
+ count: 3,
340
+ turn: 41,
341
+ managerId: detected.manager.id,
342
+ });
343
+ expect(res!.items.find((i) => i.type === 'task.assigned')).toMatchObject({
344
+ boxRunning: true,
345
+ boxName: 'payment-retries',
346
+ taskIds: ['T-1'],
347
+ });
348
+ expect(res!.items.filter((i) => i.type === 'manager.note').map((i) => i.text)).toEqual([
349
+ 'holding B until A merges',
350
+ 'A first: B depends on it',
351
+ ]);
352
+ expect(res!.live).toEqual([
353
+ expect.objectContaining({
354
+ type: 'task.in_progress',
355
+ boxId: 'box1',
356
+ task: { id: 'T-1', title: 'A' },
357
+ filesChanged: 3,
358
+ }),
359
+ ]);
360
+ expect(res!.summary).toMatchObject({ merged: 0, tasksDone: 0, awaiting: 0 });
361
+ });
362
+
363
+ it('syncs PRs from GitHub once, however often it runs', async () => {
364
+ const h = harness();
365
+ const { workspaces } = backends(h);
366
+ const root = await folder();
367
+ const added = await workspaces.addWorkspace({ path: root });
368
+ if (!added.ok) throw new Error(added.error);
369
+ h.boxes.push({
370
+ id: 'box1',
371
+ name: 'checkout-copy',
372
+ branches: ['agentbox/checkout-copy'],
373
+ state: 'running',
374
+ projectRoot: root,
375
+ projectId: 'p1',
376
+ });
377
+ const prs = [
378
+ {
379
+ number: 405,
380
+ title: 'Retry failed charges',
381
+ url: 'https://github.com/o/r/pull/405',
382
+ headRefName: 'agentbox/checkout-copy',
383
+ baseRefName: 'main',
384
+ state: 'MERGED',
385
+ createdAt: new Date(Date.now() - 3_600_000).toISOString(),
386
+ mergedAt: new Date(Date.now() - 60_000).toISOString(),
387
+ additions: 196,
388
+ deletions: 52,
389
+ statusCheckRollup: [{ status: 'COMPLETED', conclusion: 'SUCCESS' }],
390
+ mergeStateStatus: 'UNKNOWN',
391
+ autoMergeRequest: { enabledAt: 'x' },
392
+ mergedBy: { login: 'me' },
393
+ author: { login: 'someone' },
394
+ },
395
+ {
396
+ number: 409,
397
+ title: 'Checkout copy',
398
+ url: 'https://github.com/o/r/pull/409',
399
+ headRefName: 'feature/by-me',
400
+ baseRefName: 'main',
401
+ state: 'OPEN',
402
+ createdAt: new Date(Date.now() - 600_000).toISOString(),
403
+ additions: 84,
404
+ deletions: 31,
405
+ statusCheckRollup: [{ state: 'SUCCESS' }],
406
+ mergeStateStatus: 'CLEAN',
407
+ author: { login: 'me' },
408
+ },
409
+ {
410
+ number: 410,
411
+ title: 'Someone else, unknown branch',
412
+ url: 'https://github.com/o/r/pull/410',
413
+ headRefName: 'other',
414
+ baseRefName: 'main',
415
+ state: 'OPEN',
416
+ author: { login: 'stranger' },
417
+ },
418
+ ];
419
+ h.gh.mockImplementation(async (args: string[]) => {
420
+ if (args[0] === 'api') return { exitCode: 0, stdout: 'me\n', stderr: '' };
421
+ if (args[0] === 'repo') {
422
+ return {
423
+ exitCode: 0,
424
+ stdout: JSON.stringify({ nameWithOwner: 'o/r', url: 'https://github.com/o/r' }),
425
+ stderr: '',
426
+ };
427
+ }
428
+ return { exitCode: 0, stdout: JSON.stringify(prs), stderr: '' };
429
+ });
430
+ const sync = createGithubPrSync(h.deps);
431
+ const ws = (await readWorkspace(added.workspace.id))!;
432
+ expect(await sync.syncNow(ws)).toBe('ok');
433
+ expect(await sync.syncNow(ws)).toBe('ok');
434
+ const events = await readTimeline(ws.id);
435
+ expect(events.filter((e) => e.type === 'pr.merged')).toHaveLength(1);
436
+ expect(events.find((e) => e.type === 'pr.merged')).toMatchObject({
437
+ actor: 'github',
438
+ boxId: 'box1',
439
+ boxName: 'checkout-copy',
440
+ pr: { number: 405, additions: 196, deletions: 52, autoMerge: true, mergedBy: 'me' },
441
+ });
442
+ expect(events.find((e) => e.type === 'pr.ready')?.pr?.number).toBe(409);
443
+ expect(events.some((e) => e.pr?.number === 410)).toBe(false);
444
+
445
+ const timeline = createTimelineBackend(h.deps, { sync });
446
+ const res = await timeline.getTimeline(ws.id);
447
+ expect(res!.live.find((l) => l.type === 'pr.ready')).toMatchObject({
448
+ pr: expect.objectContaining({ number: 409 }),
449
+ awaiting: true,
450
+ });
451
+ });
452
+
453
+ it('starts no GitHub sync on a sync=0 read, and reports the last status', async () => {
454
+ const h = harness();
455
+ const { workspaces } = backends(h);
456
+ const added = await workspaces.addWorkspace({ path: await folder() });
457
+ if (!added.ok) throw new Error(added.error);
458
+ const sync = createGithubPrSync(h.deps);
459
+ const timeline = createTimelineBackend(h.deps, { sync });
460
+ const res = await timeline.getTimeline(added.workspace.id, { limit: 2, sync: false });
461
+ expect(res!.github).toBe('syncing');
462
+ await backgroundSettled();
463
+ expect(h.gh).not.toHaveBeenCalled();
464
+
465
+ expect(await sync.syncNow((await readWorkspace(added.workspace.id))!)).toBe('unavailable');
466
+ h.gh.mockClear();
467
+ const after = await timeline.getTimeline(added.workspace.id, { sync: false });
468
+ expect(after!.github).toBe('unavailable');
469
+ expect(h.gh).not.toHaveBeenCalled();
470
+ });
471
+
472
+ it('reports GitHub unavailable when gh is not logged in', async () => {
473
+ const h = harness();
474
+ const { workspaces } = backends(h);
475
+ const added = await workspaces.addWorkspace({ path: await folder() });
476
+ if (!added.ok) throw new Error(added.error);
477
+ const sync = createGithubPrSync(h.deps);
478
+ expect(await sync.syncNow((await readWorkspace(added.workspace.id))!)).toBe('unavailable');
479
+ });
480
+ });
481
+
482
+ describe('sendManagerMessage', () => {
483
+ it('types into a running hub-run manager and logs the message with its PR', async () => {
484
+ const h = harness();
485
+ const { workspaces, managers } = backends(h);
486
+ const added = await workspaces.addWorkspace({ path: await folder() });
487
+ if (!added.ok) throw new Error(added.error);
488
+ const started = await managers.startManager(added.workspace.id, { agent: 'claude' });
489
+ if (!started.ok) throw new Error(started.error);
490
+ const res = await managers.sendManagerMessage(started.manager.id, {
491
+ text: 'Approved: merge PR #409',
492
+ prNumber: 409,
493
+ });
494
+ if (!res.ok) throw new Error(res.error);
495
+ expect(res.delivered).toBe('session');
496
+ const session = `=agentbox-manager-${started.manager.id}:`;
497
+ expect(h.spawned).toContainEqual([
498
+ 'send-keys',
499
+ '-t',
500
+ session,
501
+ '-l',
502
+ '--',
503
+ 'Approved: merge PR #409',
504
+ ]);
505
+ expect(h.spawned).toContainEqual(['send-keys', '-t', session, 'Enter']);
506
+ expect(res.event).toMatchObject({
507
+ type: 'manager.message',
508
+ actor: 'human',
509
+ pr: { number: 409 },
510
+ });
511
+ });
512
+
513
+ it('refuses an external manager with no pane as unreachable, and types into one with a pane', async () => {
514
+ const h = harness();
515
+ const { managers } = backends(h);
516
+ const root = await folder();
517
+ h.alive.add(7);
518
+ const bare = await managers.detectManager({
519
+ agent: 'claude',
520
+ sessionId: S1,
521
+ cwd: root,
522
+ pid: 7,
523
+ host: 'laptop',
524
+ });
525
+ if (!bare.ok) throw new Error(bare.error);
526
+ const refused = await managers.sendManagerMessage(bare.manager.id, { text: 'hello' });
527
+ expect(refused).toMatchObject({ ok: false, code: 'manager_unreachable' });
528
+
529
+ const paned = await managers.detectManager({
530
+ agent: 'claude',
531
+ sessionId: S1,
532
+ cwd: root,
533
+ pid: 7,
534
+ host: 'laptop',
535
+ tmuxPane: '%5',
536
+ });
537
+ if (!paned.ok) throw new Error(paned.error);
538
+ const sent = await managers.sendManagerMessage(paned.manager.id, { text: 'hello' });
539
+ expect(sent).toMatchObject({ ok: true, delivered: 'pane' });
540
+ expect(h.spawned).toContainEqual(['send-keys', '-t', '%5', '-l', '--', 'hello']);
541
+ });
542
+
543
+ it('resumes a stopped manager with the message as its prompt', async () => {
544
+ const h = harness();
545
+ const { managers } = backends(h);
546
+ const root = await folder();
547
+ const detected = await managers.detectManager({
548
+ agent: 'claude',
549
+ sessionId: S1,
550
+ cwd: root,
551
+ pid: 8,
552
+ host: 'laptop',
553
+ });
554
+ if (!detected.ok) throw new Error(detected.error);
555
+ const res = await managers.sendManagerMessage(detected.manager.id, { text: 'keep going' });
556
+ expect(res).toMatchObject({ ok: true, delivered: 'resumed' });
557
+ const start = h.spawned.find((a) => a[0] === 'new-session');
558
+ expect(start?.at(-1)).toContain(`'--resume' '${S1}' 'keep going'`);
559
+ });
560
+ });
561
+
562
+ describe('diffs on the live rows', () => {
563
+ it('leaves the diff off a row whose exec is slow, and shares one exec between reads', async () => {
564
+ const h = harness();
565
+ const { workspaces } = backends(h);
566
+ const root = await folder();
567
+ const added = await workspaces.addWorkspace({ path: root });
568
+ if (!added.ok) throw new Error(added.error);
569
+ const wsId = added.workspace.id;
570
+ for (const id of ['box1', 'box2']) {
571
+ h.boxes.push({
572
+ id,
573
+ name: id,
574
+ branches: [`agentbox/${id}`],
575
+ state: 'running',
576
+ projectRoot: root,
577
+ projectId: 'p1',
578
+ });
579
+ }
580
+ for (const [title, boxId] of [
581
+ ['A', 'box1'],
582
+ ['B', 'box2'],
583
+ ] as const) {
584
+ const t = await workspaces.addTask(wsId, { title });
585
+ if (!t.ok) throw new Error(t.error);
586
+ const a = await workspaces.assignTasks(wsId, [t.task.id], { boxId });
587
+ if (!a.ok) throw new Error(a.error);
588
+ }
589
+ await backgroundSettled();
590
+ let release: (v: {
591
+ filesChanged: number;
592
+ additions: number;
593
+ deletions: number;
594
+ }) => void = () => {};
595
+ const slow = new Promise<{ filesChanged: number; additions: number; deletions: number }>(
596
+ (resolve) => {
597
+ release = resolve;
598
+ },
599
+ );
600
+ const calls: string[] = [];
601
+ h.deps.boxDiffStat = async (box) => {
602
+ calls.push(box.id);
603
+ return box.id === 'box1' ? slow : { filesChanged: 1, additions: 2, deletions: 3 };
604
+ };
605
+ const timeline = createTimelineBackend(h.deps, { diffTimeoutMs: 30 });
606
+ const [first, second] = await Promise.all([
607
+ timeline.getTimeline(wsId),
608
+ timeline.getTimeline(wsId),
609
+ ]);
610
+ for (const res of [first, second]) {
611
+ const rows = res!.live.filter((l) => l.type === 'task.in_progress');
612
+ expect(rows.find((l) => l.boxId === 'box1')?.filesChanged).toBeUndefined();
613
+ expect(rows.find((l) => l.boxId === 'box2')?.filesChanged).toBe(1);
614
+ }
615
+ expect(calls.sort()).toEqual(['box1', 'box2']);
616
+ release({ filesChanged: 9, additions: 9, deletions: 9 });
617
+ const later = await timeline.getTimeline(wsId);
618
+ expect(later!.live.find((l) => l.boxId === 'box1')?.filesChanged).toBe(9);
619
+ expect(calls).toHaveLength(2);
620
+ });
621
+ });
622
+
623
+ describe('stamps from routes that do not name a workspace', () => {
624
+ function fakeHub(): HubBackend {
625
+ const okResult = async () => ({ ok: true as const });
626
+ return {
627
+ create: async () => ({ ok: true as const, jobId: 'job1' }),
628
+ start: okResult,
629
+ stop: okResult,
630
+ destroy: okResult,
631
+ gitPush: okResult,
632
+ gitPushHost: okResult,
633
+ gitCheckout: okResult,
634
+ gitNewBranch: okResult,
635
+ } as unknown as HubBackend;
636
+ }
637
+
638
+ it("never writes another workspace's manager into a log, and a create keeps its named manager", async () => {
639
+ const h = harness();
640
+ const { managers } = backends(h);
641
+ const root1 = await folder();
642
+ const root2 = await folder();
643
+ const detect = async (sessionId: string, cwd: string) => {
644
+ const d = await managers.detectManager({ agent: 'claude', sessionId, cwd, host: 'laptop' });
645
+ if (!d.ok) throw new Error(d.error);
646
+ return d;
647
+ };
648
+ const a = await detect(S1, root1);
649
+ const c = await detect(S3, root1);
650
+ const b = await detect(S2, root2);
651
+ expect(a.workspace.id).not.toBe(b.workspace.id);
652
+ const ws1 = a.workspace.id;
653
+
654
+ const foreign = await stampInWorkspace(
655
+ { session: { agent: 'claude', sessionId: S2 } },
656
+ ws1,
657
+ managers.timelineStamp,
658
+ );
659
+ expect(foreign).toEqual({ actor: 'human' });
660
+ expect(
661
+ await stampInWorkspace(
662
+ { stamp: { actor: 'manager', managerId: b.manager.id } },
663
+ ws1,
664
+ managers.timelineStamp,
665
+ ),
666
+ ).toEqual({ actor: 'human' });
667
+
668
+ h.boxes.push({
669
+ id: 'box1',
670
+ name: 'box-one',
671
+ branches: ['agentbox/box-one'],
672
+ state: 'running',
673
+ projectRoot: root1,
674
+ projectId: 'p1',
675
+ });
676
+ const hub = withBoxTimeline(fakeHub(), { deps: h.deps, stampFor: managers.timelineStamp });
677
+ await hub.start('box1', { session: { agent: 'claude', sessionId: S2 } });
678
+ await hub.stop('box1', { session: { agent: 'claude', sessionId: S1 } });
679
+ const projectId = (await readWorkspace(ws1))!.projectIds[0]!;
680
+ await hub.create(
681
+ { projectId, managerId: c.manager.id, agent: 'claude', name: 'made' } as Parameters<
682
+ HubBackend['create']
683
+ >[0],
684
+ { session: { agent: 'claude', sessionId: S1 } },
685
+ );
686
+ await backgroundSettled();
687
+
688
+ const events = await readTimeline(ws1);
689
+ const started = events.find((e) => e.type === 'box.started');
690
+ expect(started).toMatchObject({ actor: 'human', boxName: 'box-one' });
691
+ expect(started?.managerId).toBeUndefined();
692
+ expect(started?.turn).toBeUndefined();
693
+ expect(events.find((e) => e.type === 'box.stopped')).toMatchObject({
694
+ actor: 'manager',
695
+ managerId: a.manager.id,
696
+ turn: 41,
697
+ });
698
+ expect(events.find((e) => e.type === 'box.created')).toMatchObject({
699
+ actor: 'manager',
700
+ managerId: c.manager.id,
701
+ });
702
+ expect((await readTimeline(b.workspace.id)).some((e) => e.type.startsWith('box.'))).toBe(false);
703
+ });
704
+ });
705
+
706
+ describe('push rows', () => {
707
+ it('records the lines a push moved, and a push-host from the merge base', async () => {
708
+ const h = harness();
709
+ const { managers } = backends(h);
710
+ const root = await realpath(await mkdtemp(join(tmpdir(), 'agentbox-hubpush-')));
711
+ const git = (...args: string[]): string =>
712
+ execFileSync(
713
+ 'git',
714
+ [
715
+ '-c',
716
+ 'user.name=t',
717
+ '-c',
718
+ 'user.email=t@t',
719
+ '-c',
720
+ 'commit.gpgsign=false',
721
+ '-C',
722
+ root,
723
+ ...args,
724
+ ],
725
+ { encoding: 'utf8' },
726
+ ).trim();
727
+ const commit = async (file: string, lines: number): Promise<string> => {
728
+ await writeFile(join(root, file), 'x\n'.repeat(lines));
729
+ git('add', file);
730
+ git('commit', '-q', '-m', file);
731
+ return git('rev-parse', 'HEAD');
732
+ };
733
+ git('init', '-q', '-b', 'main');
734
+ await commit('base.txt', 2);
735
+ git('checkout', '-q', '-b', 'agentbox/box-one');
736
+ git('update-ref', 'refs/remotes/origin/agentbox/box-one', await commit('a.txt', 5));
737
+ const next = await commit('b.txt', 3);
738
+ const d = await managers.detectManager({
739
+ agent: 'claude',
740
+ sessionId: S1,
741
+ cwd: root,
742
+ host: 'laptop',
743
+ });
744
+ if (!d.ok) throw new Error(d.error);
745
+ h.boxes.push({
746
+ id: 'box1',
747
+ name: 'box-one',
748
+ branches: ['agentbox/box-one'],
749
+ state: 'running',
750
+ projectRoot: root,
751
+ projectId: 'p1',
752
+ });
753
+ const okResult = async () => ({ ok: true as const });
754
+ const hub = withBoxTimeline(
755
+ {
756
+ create: okResult,
757
+ start: okResult,
758
+ stop: okResult,
759
+ destroy: okResult,
760
+ gitPush: async () => {
761
+ git('update-ref', 'refs/remotes/origin/agentbox/box-one', next);
762
+ return { ok: true as const };
763
+ },
764
+ gitPushHost: async () => {
765
+ git('branch', 'landed', next);
766
+ return { ok: true as const };
767
+ },
768
+ gitCheckout: okResult,
769
+ gitNewBranch: okResult,
770
+ } as unknown as HubBackend,
771
+ { deps: h.deps, stampFor: managers.timelineStamp },
772
+ );
773
+ await hub.gitPush('box1', {});
774
+ await hub.gitPushHost('box1', { as: 'landed' });
775
+ await backgroundSettled();
776
+
777
+ const pushes = (await readTimeline(d.workspace.id)).filter((e) => e.type === 'git.push');
778
+ // The push moved origin's ref by b.txt; the landing had no old tip, so it is measured from main.
779
+ expect(pushes.map((e) => [e.additions, e.deletions]).sort()).toEqual([
780
+ [3, 0],
781
+ [8, 0],
782
+ ]);
783
+ });
784
+ });
785
+
786
+ describe('a push on a box hydrated during the push', () => {
787
+ it('still records the push row, without a diff', async () => {
788
+ const h = harness();
789
+ const { managers } = backends(h);
790
+ const root = await folder();
791
+ const d = await managers.detectManager({
792
+ agent: 'claude',
793
+ sessionId: S1,
794
+ cwd: root,
795
+ host: 'laptop',
796
+ });
797
+ if (!d.ok) throw new Error(d.error);
798
+ const okResult = async () => ({ ok: true as const });
799
+ const hub = withBoxTimeline(
800
+ {
801
+ create: okResult,
802
+ start: okResult,
803
+ stop: okResult,
804
+ destroy: okResult,
805
+ // The box is only known once the op registered it from the Store.
806
+ gitPush: async () => {
807
+ h.boxes.push({
808
+ id: 'box1',
809
+ name: 'box-one',
810
+ branches: ['agentbox/box-one'],
811
+ state: 'running',
812
+ projectRoot: root,
813
+ projectId: 'p1',
814
+ });
815
+ return { ok: true as const };
816
+ },
817
+ gitPushHost: okResult,
818
+ gitCheckout: okResult,
819
+ gitNewBranch: okResult,
820
+ } as unknown as HubBackend,
821
+ { deps: h.deps, stampFor: managers.timelineStamp },
822
+ );
823
+ await hub.gitPush('box1', {});
824
+ await backgroundSettled();
825
+
826
+ const pushes = (await readTimeline(d.workspace.id)).filter((e) => e.type === 'git.push');
827
+ expect(pushes).toHaveLength(1);
828
+ expect(pushes[0]).toMatchObject({ boxId: 'box1', boxName: 'box-one' });
829
+ expect(pushes[0]!.additions).toBeUndefined();
830
+ });
831
+ });
832
+
833
+ describe('a message about a PR in a workspace over several repos', () => {
834
+ it('ties the message to the repo it names, and to none when the number alone is ambiguous', async () => {
835
+ const h = harness();
836
+ const { workspaces, managers } = backends(h);
837
+ const added = await workspaces.addWorkspace({ path: await folder() });
838
+ if (!added.ok) throw new Error(added.error);
839
+ const wsId = added.workspace.id;
840
+ const { recordTimelineEvent } = await import('@agentbox/relay');
841
+ await recordTimelineEvent(wsId, { type: 'pr.ready', actor: 'github', pr: pr(12) });
842
+ await recordTimelineEvent(wsId, {
843
+ type: 'pr.ready',
844
+ actor: 'github',
845
+ pr: pr(12, { repo: 'o/web', url: 'https://github.com/o/web/pull/12' }),
846
+ });
847
+ const started = await managers.startManager(wsId, { agent: 'claude' });
848
+ if (!started.ok) throw new Error(started.error);
849
+ const named = await managers.sendManagerMessage(started.manager.id, {
850
+ text: 'merge it',
851
+ prNumber: 12,
852
+ repo: 'o/web',
853
+ });
854
+ if (!named.ok) throw new Error(named.error);
855
+ expect(named.event?.pr).toMatchObject({ repo: 'o/web', number: 12, title: 'PR 12' });
856
+ const bare = await managers.sendManagerMessage(started.manager.id, {
857
+ text: 'merge 12',
858
+ prNumber: 12,
859
+ });
860
+ if (!bare.ok) throw new Error(bare.error);
861
+ expect(bare.event?.pr).toMatchObject({ repo: '', number: 12 });
862
+ const live = liveReadyItems(await readTimeline(wsId));
863
+ expect(live.find((l) => l.pr?.repo === 'o/web')?.approved).toBe(true);
864
+ expect(live.find((l) => l.pr?.repo === 'o/r')?.approved).toBeUndefined();
865
+ });
866
+ });
867
+
868
+ describe('branch links', () => {
869
+ const none: RepoWebLookup = {
870
+ repo: () => undefined,
871
+ project: () => undefined,
872
+ box: () => undefined,
873
+ };
874
+ const lookup: RepoWebLookup = {
875
+ repo: (r) =>
876
+ r === 'acme/storefront-web' ? 'https://github.com/acme/storefront-web' : undefined,
877
+ project: (id) => (id === 'p1' ? 'https://ghe.acme.dev/acme/api' : undefined),
878
+ box: (id) => (id === 'box1' ? 'https://github.com/acme/box-repo' : undefined),
879
+ };
880
+
881
+ it("takes a PR row's repo from its URL, on whatever host it names", () => {
882
+ expect(repoUrlOfPrUrl('https://ghe.acme.dev/acme/api/pull/12')).toBe(
883
+ 'https://ghe.acme.dev/acme/api',
884
+ );
885
+ expect(repoUrlOfPrUrl('https://github.com/acme/api/issues/12')).toBeUndefined();
886
+ const row = {
887
+ pr: pr(409, {
888
+ repo: 'acme/storefront-web',
889
+ url: 'https://github.com/acme/storefront-web/pull/409',
890
+ head: 'feat/checkout-copy',
891
+ }),
892
+ projectId: 'p1',
893
+ boxId: 'box1',
894
+ };
895
+ expect(branchUrlOf(row, none)).toBe(
896
+ 'https://github.com/acme/storefront-web/tree/feat/checkout-copy',
897
+ );
898
+ });
899
+
900
+ it('falls back to a repo the sync resolved, then the project, then the box', () => {
901
+ const noUrl = pr(1, { repo: 'acme/storefront-web', url: '', head: 'feat/a' });
902
+ expect(branchUrlOf({ pr: noUrl, projectId: 'p1' }, lookup)).toBe(
903
+ 'https://github.com/acme/storefront-web/tree/feat/a',
904
+ );
905
+ expect(branchUrlOf({ pr: { ...noUrl, repo: 'other/repo' }, projectId: 'p1' }, lookup)).toBe(
906
+ 'https://ghe.acme.dev/acme/api/tree/feat/a',
907
+ );
908
+ expect(branchUrlOf({ branch: 'agentbox/x', projectId: 'p1', boxId: 'box1' }, lookup)).toBe(
909
+ 'https://ghe.acme.dev/acme/api/tree/agentbox/x',
910
+ );
911
+ expect(branchUrlOf({ branch: 'agentbox/x', projectId: 'gone', boxId: 'box1' }, lookup)).toBe(
912
+ 'https://github.com/acme/box-repo/tree/agentbox/x',
913
+ );
914
+ });
915
+
916
+ it('encodes each branch segment and keeps the slashes', () => {
917
+ expect(branchUrlOf({ branch: 'feat/100% done#2/ü', boxId: 'box1' }, lookup)).toBe(
918
+ 'https://github.com/acme/box-repo/tree/feat/100%25%20done%232/%C3%BC',
919
+ );
920
+ });
921
+
922
+ it('is absent with no branch, or no known repo', () => {
923
+ expect(branchUrlOf({ projectId: 'p1', boxId: 'box1' }, lookup)).toBeUndefined();
924
+ expect(
925
+ branchUrlOf({ branch: 'feat/a', projectId: 'gone', boxId: 'gone' }, lookup),
926
+ ).toBeUndefined();
927
+ const message = { pr: { repo: '', number: 4, title: '', url: '', base: '', head: '' } };
928
+ expect(branchUrlOf(message, lookup)).toBeUndefined();
929
+ expect(
930
+ branchUrlOf({ branch: 'feat/a', pr: pr(2, { url: '', repo: 'x/y' }) }, none),
931
+ ).toBeUndefined();
932
+ });
933
+
934
+ it('adds branchUrl to items and live rows from the cache, and never stores it', async () => {
935
+ const h = harness();
936
+ const { workspaces } = backends(h);
937
+ const root = await folder();
938
+ const added = await workspaces.addWorkspace({ path: root });
939
+ if (!added.ok) throw new Error(added.error);
940
+ const wsId = added.workspace.id;
941
+ h.boxes.push({
942
+ id: 'box1',
943
+ name: 'checkout-copy',
944
+ branches: ['agentbox/checkout-copy'],
945
+ state: 'running',
946
+ projectRoot: root,
947
+ projectId: hashProjectPath(root),
948
+ });
949
+ await recordTimelineEvent(wsId, {
950
+ type: 'box.created',
951
+ actor: 'human',
952
+ boxName: 'fresh',
953
+ branch: 'agentbox/fresh',
954
+ projectId: hashProjectPath(root),
955
+ });
956
+ const task = await workspaces.addTask(wsId, { title: 'Copy' });
957
+ if (!task.ok) throw new Error(task.error);
958
+ const assigned = await workspaces.assignTasks(wsId, [task.task.id], { boxId: 'box1' });
959
+ if (!assigned.ok) throw new Error(assigned.error);
960
+ await backgroundSettled();
961
+
962
+ const cold = createTimelineBackend(h.deps, { sync: createGithubPrSync(h.deps) });
963
+ const before = await cold.getTimeline(wsId);
964
+ expect(before!.items.some((i) => i.branchUrl)).toBe(false);
965
+ expect(before!.live.some((l) => l.branchUrl)).toBe(false);
966
+
967
+ h.gh.mockImplementation(async (args: string[]) => {
968
+ if (args[0] === 'api') return { exitCode: 0, stdout: 'me\n', stderr: '' };
969
+ if (args[0] === 'repo') {
970
+ return {
971
+ exitCode: 0,
972
+ stdout: JSON.stringify({
973
+ nameWithOwner: 'acme/api',
974
+ url: 'https://ghe.acme.dev/acme/api',
975
+ }),
976
+ stderr: '',
977
+ };
978
+ }
979
+ return {
980
+ exitCode: 0,
981
+ stdout: JSON.stringify([
982
+ {
983
+ number: 7,
984
+ title: 'Copy',
985
+ url: 'https://ghe.acme.dev/acme/api/pull/7',
986
+ headRefName: 'agentbox/checkout-copy',
987
+ baseRefName: 'main',
988
+ state: 'OPEN',
989
+ author: { login: 'someone' },
990
+ },
991
+ ]),
992
+ stderr: '',
993
+ };
994
+ });
995
+ const sync = createGithubPrSync(h.deps);
996
+ const ws = (await readWorkspace(wsId))!;
997
+ expect(await sync.syncNow(ws)).toBe('ok');
998
+ expect(sync.webUrlForRepo('acme/api')).toBe('https://ghe.acme.dev/acme/api');
999
+ h.gh.mockClear();
1000
+
1001
+ const res = await createTimelineBackend(h.deps, { sync }).getTimeline(wsId);
1002
+ expect(res!.items.find((i) => i.type === 'pr.opened')?.branchUrl).toBe(
1003
+ 'https://ghe.acme.dev/acme/api/tree/agentbox/checkout-copy',
1004
+ );
1005
+ expect(res!.items.find((i) => i.type === 'box.created')?.branchUrl).toBe(
1006
+ 'https://ghe.acme.dev/acme/api/tree/agentbox/fresh',
1007
+ );
1008
+ expect(res!.live.find((l) => l.type === 'task.in_progress')?.branchUrl).toBe(
1009
+ 'https://ghe.acme.dev/acme/api/tree/agentbox/checkout-copy',
1010
+ );
1011
+ expect(h.gh.mock.calls.some(([args]) => args[0] === 'repo')).toBe(false);
1012
+ const raw = await readFile(timelineFile((await resolveWorkspaceDir(wsId))!), 'utf8');
1013
+ expect(raw).not.toContain('branchUrl');
1014
+ });
1015
+ });
1016
+
1017
+ describe('branch graph', () => {
1018
+ function branchHub(ok = true): HubBackend {
1019
+ const result = async () => (ok ? { ok: true as const } : { ok: false as const, error: 'no' });
1020
+ let jobs = 0;
1021
+ return {
1022
+ // Distinct jobs: one job's create key would dedupe the second create away.
1023
+ create: async () => ({ ok: true as const, jobId: `job${String((jobs += 1))}` }),
1024
+ start: result,
1025
+ stop: result,
1026
+ destroy: result,
1027
+ gitPush: result,
1028
+ gitPushHost: result,
1029
+ gitCheckout: result,
1030
+ gitNewBranch: result,
1031
+ } as unknown as HubBackend;
1032
+ }
1033
+
1034
+ it("records a create's base: its fromBranch, else the project's current branch", async () => {
1035
+ const h = harness();
1036
+ const { workspaces, managers } = backends(h);
1037
+ const added = await workspaces.addWorkspace({ path: await folder() });
1038
+ if (!added.ok) throw new Error(added.error);
1039
+ const projectId = added.workspace.projectIds[0]!;
1040
+ const asked: string[] = [];
1041
+ h.deps.projectBranch = async (id) => {
1042
+ asked.push(id);
1043
+ return 'develop';
1044
+ };
1045
+ const hub = withBoxTimeline(branchHub(), { deps: h.deps, stampFor: managers.timelineStamp });
1046
+ type CreateInput = Parameters<HubBackend['create']>[0];
1047
+ await hub.create({ projectId, agent: 'claude', name: 'plain' } as CreateInput);
1048
+ await backgroundSettled();
1049
+ await hub.create({
1050
+ projectId,
1051
+ agent: 'claude',
1052
+ name: 'stacked',
1053
+ fromBranch: 'agentbox/plain',
1054
+ } as CreateInput);
1055
+ await backgroundSettled();
1056
+
1057
+ const creates = (await readTimeline(added.workspace.id)).filter(
1058
+ (e) => e.type === 'box.created',
1059
+ );
1060
+ expect(creates.find((e) => e.boxName === 'plain')?.base).toBe('develop');
1061
+ expect(creates.find((e) => e.boxName === 'stacked')?.base).toBe('agentbox/plain');
1062
+ expect(asked).toEqual([projectId]);
1063
+ });
1064
+
1065
+ it('writes box.branch for a switch the hub sanctioned, and nothing for paths, a detached HEAD or a failure', async () => {
1066
+ const h = harness();
1067
+ const { workspaces, managers } = backends(h);
1068
+ const root = await folder();
1069
+ const added = await workspaces.addWorkspace({ path: root });
1070
+ if (!added.ok) throw new Error(added.error);
1071
+ const box: TimelineBoxFact = {
1072
+ id: 'box1',
1073
+ name: 'box-one',
1074
+ branches: ['agentbox/box-one'],
1075
+ state: 'running',
1076
+ projectRoot: root,
1077
+ projectId: 'p1',
1078
+ };
1079
+ h.boxes.push(box);
1080
+ const seams = { deps: h.deps, stampFor: managers.timelineStamp };
1081
+ // What the real routes persist: the branch HEAD names after the op, none when detached.
1082
+ const sanction = (branch: string) => {
1083
+ box.branches = [branch, 'agentbox/box-one'];
1084
+ };
1085
+ const calls: string[][] = [];
1086
+ const hub = withBoxTimeline(
1087
+ {
1088
+ ...branchHub(),
1089
+ gitCheckout: async (_id: string, branch: string, args?: string[]) => {
1090
+ calls.push([branch, ...(args ?? [])]);
1091
+ if (!args?.length && !/^[0-9a-f]{7,40}$/u.test(branch)) sanction(branch);
1092
+ return { ok: true as const };
1093
+ },
1094
+ gitNewBranch: async (_id: string, input: { name: string }) => {
1095
+ sanction(scratchBranchName(input.name));
1096
+ return { ok: true as const };
1097
+ },
1098
+ } as unknown as HubBackend,
1099
+ seams,
1100
+ );
1101
+ await withBoxTimeline(branchHub(false), seams).gitCheckout('box1', 'feat/nope');
1102
+ await hub.gitCheckout('box1', 'main', ['--', 'src/x.ts']);
1103
+ await hub.gitCheckout('box1', 'abc1234');
1104
+ await backgroundSettled();
1105
+ await hub.gitCheckout('box1', 'feat/x');
1106
+ await backgroundSettled();
1107
+ await hub.gitNewBranch('box1', { name: 'retry' });
1108
+ await backgroundSettled();
1109
+
1110
+ expect(calls).toEqual([['main', '--', 'src/x.ts'], ['abc1234'], ['feat/x']]);
1111
+ const rows = (await readTimeline(added.workspace.id)).filter((e) => e.type === 'box.branch');
1112
+ expect(rows).toHaveLength(2);
1113
+ expect(rows.find((e) => e.branch === 'feat/x')).toMatchObject({
1114
+ actor: 'human',
1115
+ boxId: 'box1',
1116
+ boxName: 'box-one',
1117
+ base: 'agentbox/box-one',
1118
+ });
1119
+ expect(rows.find((e) => e.branch === scratchBranchName('retry'))).toMatchObject({
1120
+ boxId: 'box1',
1121
+ base: 'feat/x',
1122
+ });
1123
+ });
1124
+
1125
+ it('returns lanes on every row, the same on a short page, and never stores them', async () => {
1126
+ const h = harness();
1127
+ const { workspaces } = backends(h);
1128
+ const root = await folder();
1129
+ const added = await workspaces.addWorkspace({ path: root });
1130
+ if (!added.ok) throw new Error(added.error);
1131
+ const wsId = added.workspace.id;
1132
+ h.boxes.push({
1133
+ id: 'box1',
1134
+ name: 'box-one',
1135
+ branches: ['agentbox/box-one'],
1136
+ state: 'running',
1137
+ projectRoot: root,
1138
+ projectId: 'p1',
1139
+ });
1140
+ const at = (s: number) => new Date(Date.UTC(2026, 8, 13, 10, 0, s)).toISOString();
1141
+ await recordTimelineEvent(wsId, {
1142
+ type: 'box.created',
1143
+ actor: 'human',
1144
+ at: at(1),
1145
+ key: 'job:j1:created',
1146
+ boxName: 'box-one',
1147
+ branch: 'agentbox/box-one',
1148
+ base: 'main',
1149
+ });
1150
+ await recordTimelineEvent(wsId, {
1151
+ type: 'box.ready',
1152
+ actor: 'hub',
1153
+ at: at(2),
1154
+ key: 'job:j1:ready',
1155
+ boxId: 'box1',
1156
+ branch: 'agentbox/box-one',
1157
+ });
1158
+ await recordTimelineEvent(wsId, {
1159
+ type: 'manager.note',
1160
+ actor: 'human',
1161
+ at: at(3),
1162
+ text: 'pushing next',
1163
+ });
1164
+ await recordTimelineEvent(wsId, {
1165
+ type: 'git.push',
1166
+ actor: 'box',
1167
+ at: at(4),
1168
+ boxId: 'box1',
1169
+ branch: 'agentbox/box-one',
1170
+ });
1171
+
1172
+ const timeline = createTimelineBackend(h.deps, { sync: createGithubPrSync(h.deps) });
1173
+ const res = await timeline.getTimeline(wsId, { sync: false });
1174
+ expect(res!.items.map((i) => [i.type, i.lane])).toEqual([
1175
+ ['git.push', { id: 'box:box1', kind: 'box', open: true }],
1176
+ ['manager.note', { id: 'trunk', kind: 'trunk' }],
1177
+ ['box.ready', { id: 'box:box1', kind: 'box' }],
1178
+ ['box.created', { id: 'box:box1', kind: 'box', from: 'trunk', branch: 'agentbox/box-one' }],
1179
+ ]);
1180
+ const page = await timeline.getTimeline(wsId, { sync: false, limit: 1 });
1181
+ expect(page!.items[0]!.lane).toEqual({ id: 'box:box1', kind: 'box', open: true });
1182
+ const raw = await readFile(timelineFile((await resolveWorkspaceDir(wsId))!), 'utf8');
1183
+ expect(raw).not.toContain('lane');
1184
+ });
1185
+ });