@moberg_hr/work-tree 2.19.0 → 2.20.1

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 (262) hide show
  1. package/dist/{account-LUWE75BA.js → account-VGJEBBCS.js} +14 -14
  2. package/dist/{add-repo-6CPMNL7A.js → add-repo-VNG3JVRR.js} +11 -11
  3. package/dist/{answer-4MK7ABHK.js → answer-2MLNGB7P.js} +7 -7
  4. package/dist/{attach-BISNHO3P.js → attach-4DSUBQBI.js} +12 -12
  5. package/dist/bin.js +2 -2
  6. package/dist/{block-R724RFRJ.js → block-KCHJ4KMQ.js} +9 -9
  7. package/dist/{broadcast-Z3ODUBQL.js → broadcast-XZZ6S6MH.js} +5 -5
  8. package/dist/{catchup-OXUEJN2I.js → catchup-IVNPQHRM.js} +10 -10
  9. package/dist/child-6ZMI62MQ.js +148 -0
  10. package/dist/child-6ZMI62MQ.js.map +1 -0
  11. package/dist/{chunk-NJXYDMNQ.js → chunk-4EFPHIME.js} +7 -7
  12. package/dist/{chunk-ZL6IYEDM.js → chunk-6V6LBFWB.js} +2 -2
  13. package/dist/{chunk-HN6ZSSPR.js → chunk-75PWH7BG.js} +3 -3
  14. package/dist/{chunk-BOVPARRB.js → chunk-7ZOWY7GC.js} +5 -5
  15. package/dist/{chunk-UNYCEMG4.js → chunk-AB3TSGJ4.js} +2 -2
  16. package/dist/{chunk-PVBWN4LV.js → chunk-AFYYUXWA.js} +2 -2
  17. package/dist/chunk-AGICFQMJ.js +151 -0
  18. package/dist/chunk-AGICFQMJ.js.map +1 -0
  19. package/dist/{chunk-YSUASP3E.js → chunk-B56NMAPD.js} +2 -2
  20. package/dist/{chunk-44UME4JD.js → chunk-BDZDOPAA.js} +2 -2
  21. package/dist/{chunk-3ZB3TXPT.js → chunk-D7TL6I5A.js} +4 -4
  22. package/dist/{chunk-S5EJTSD2.js → chunk-DCEYDF77.js} +2 -2
  23. package/dist/{chunk-EHX5MGDJ.js → chunk-DDLMX47W.js} +2 -2
  24. package/dist/{chunk-OB5NKZYF.js → chunk-EVP5MMA7.js} +9 -9
  25. package/dist/{chunk-K5U6EWIN.js → chunk-F2H4FQ62.js} +4 -4
  26. package/dist/{chunk-IGMXR7S4.js → chunk-F36PSNNL.js} +7 -7
  27. package/dist/{chunk-YOBBM2DF.js → chunk-FCUVFJSY.js} +4 -4
  28. package/dist/{chunk-DJDI5OPO.js → chunk-FDFFJOV6.js} +7 -1
  29. package/dist/chunk-FDFFJOV6.js.map +1 -0
  30. package/dist/{chunk-7L4L4Q73.js → chunk-GROMKF62.js} +2 -2
  31. package/dist/{chunk-DKQU6K4S.js → chunk-HNZRVCQF.js} +4 -4
  32. package/dist/{chunk-WUUZF4MY.js → chunk-ILLPPOIY.js} +5 -5
  33. package/dist/{chunk-HJZ65BMV.js → chunk-IMTPBX3L.js} +3 -3
  34. package/dist/{chunk-IHYPHX2Z.js → chunk-JDLRVOX7.js} +3 -3
  35. package/dist/{chunk-C7QOPDZL.js → chunk-JO7AJVGA.js} +8 -8
  36. package/dist/chunk-JO7AJVGA.js.map +1 -0
  37. package/dist/{chunk-WSDAXREI.js → chunk-JQO5ANP4.js} +5 -5
  38. package/dist/{chunk-3MPFCM5W.js → chunk-L74WY44N.js} +2 -2
  39. package/dist/{chunk-R5DHVUA2.js → chunk-LHKUHNE3.js} +2 -2
  40. package/dist/{chunk-MD6QMSXQ.js → chunk-MQGNH74M.js} +2 -2
  41. package/dist/{chunk-ZAGEDMIK.js → chunk-MRTSFVRF.js} +3 -3
  42. package/dist/{chunk-I3JB5UGN.js → chunk-NB7IBSKF.js} +2 -2
  43. package/dist/{chunk-HV5TXLMN.js → chunk-NDSZQKYL.js} +3 -3
  44. package/dist/{chunk-YRSFUGS5.js → chunk-NDXZKB27.js} +3 -3
  45. package/dist/{chunk-PSEVXDTS.js → chunk-NHZZMY3H.js} +3 -3
  46. package/dist/{chunk-4J2F6OWM.js → chunk-OHX7WKZU.js} +2 -2
  47. package/dist/{chunk-HACRL36E.js → chunk-OOQBMWTK.js} +2 -2
  48. package/dist/{chunk-2SHSB7JN.js → chunk-PORC2R73.js} +2 -2
  49. package/dist/{chunk-ALBTIOP3.js → chunk-QGUBOOEN.js} +16 -3
  50. package/dist/chunk-QGUBOOEN.js.map +1 -0
  51. package/dist/{chunk-S4OLDCTC.js → chunk-QWVY5AUJ.js} +4 -4
  52. package/dist/{chunk-6CG7TAPE.js → chunk-RBBZXZ6I.js} +59 -56
  53. package/dist/chunk-RBBZXZ6I.js.map +1 -0
  54. package/dist/{chunk-T5SDU4UP.js → chunk-RQ7W2CVL.js} +3 -3
  55. package/dist/{chunk-BZ2FD3F7.js → chunk-SM6RE2AH.js} +3 -3
  56. package/dist/{chunk-BKW6R2II.js → chunk-T7GXKT6S.js} +12 -12
  57. package/dist/{chunk-ULN7Z5VB.js → chunk-TNBZUIIP.js} +6 -6
  58. package/dist/chunk-TO4GKLLT.js +9 -0
  59. package/dist/{chunk-JMILQI5Y.js → chunk-UD5CFHUS.js} +2 -2
  60. package/dist/{chunk-SMTNDZX5.js → chunk-UEEZ6DGK.js} +7 -7
  61. package/dist/{chunk-CNJZONIK.js → chunk-UNV2YM5V.js} +2 -2
  62. package/dist/{chunk-CNZV3UCM.js → chunk-UPS7NHKI.js} +2 -2
  63. package/dist/{chunk-XCDIMZD3.js → chunk-UXEFUSJV.js} +4 -4
  64. package/dist/{chunk-WPFDHBQZ.js → chunk-WC4IN5MD.js} +2 -2
  65. package/dist/{chunk-SRE4CK6Y.js → chunk-WIXY4EDH.js} +2 -2
  66. package/dist/{chunk-4KETMLQJ.js → chunk-WUW6WRKP.js} +6 -6
  67. package/dist/{chunk-PV7IOR7X.js → chunk-XDKH4X4N.js} +2 -2
  68. package/dist/{chunk-TFENIQUQ.js → chunk-XEA3XWKW.js} +5 -5
  69. package/dist/{chunk-2ALX552Z.js → chunk-XHDC3IU4.js} +6 -6
  70. package/dist/{chunk-V5VG3V6R.js → chunk-XVHRBV2I.js} +3 -3
  71. package/dist/{chunk-PZ7WTBSI.js → chunk-Y7PWSACJ.js} +2 -2
  72. package/dist/{chunk-CDO7AFTJ.js → chunk-YJYYR5RY.js} +3 -3
  73. package/dist/{chunk-DDGTJVLP.js → chunk-YVJUALQX.js} +6 -6
  74. package/dist/{chunk-7LU3LKHV.js → chunk-ZAOX63AG.js} +7 -7
  75. package/dist/{chunk-ZERN5OBM.js → chunk-ZKTYHYBU.js} +6 -6
  76. package/dist/{chunk-YCNIIE7Q.js → chunk-ZSDMH3TI.js} +5 -5
  77. package/dist/{cleanup-EHZ552FT.js → cleanup-M6V7VOL2.js} +26 -26
  78. package/dist/{cli-KIBE6YOF.js → cli-KF7RFZQC.js} +3 -3
  79. package/dist/{color-GPOUDNDD.js → color-G7OB6JRX.js} +8 -8
  80. package/dist/{config-V4SDLGYF.js → config-WLHZ5EOU.js} +6 -6
  81. package/dist/coordinate-YOTO6WGQ.js +122 -0
  82. package/dist/coordinate-YOTO6WGQ.js.map +1 -0
  83. package/dist/{diff-K7UDI3G4.js → diff-TKHHSR2G.js} +7 -7
  84. package/dist/{digest-I7XDH3F6.js → digest-OVUDG6O7.js} +6 -6
  85. package/dist/{fork-6VEB7OAL.js → fork-7RCD2XI2.js} +23 -23
  86. package/dist/{history-XK2XDAKU.js → history-ZT6YAO62.js} +4 -4
  87. package/dist/{hook-R7S37FCU.js → hook-MDENN4PE.js} +12 -12
  88. package/dist/{hydrate-RIG5OW5L.js → hydrate-3KEAOXSE.js} +5 -5
  89. package/dist/{init-HU2YAHSK.js → init-UDRGQJWV.js} +9 -9
  90. package/dist/{install-skills-DIL6HTHB.js → install-skills-QTNDVA4T.js} +3 -3
  91. package/dist/install-skills-bin.js +2 -2
  92. package/dist/{keep-TXA5UIHC.js → keep-G4Z6EBQM.js} +7 -7
  93. package/dist/{list-WKAOUGRK.js → list-DFENHOZN.js} +4 -4
  94. package/dist/{move-2O552OT6.js → move-CV3PGUFM.js} +11 -11
  95. package/dist/{note-C2UZCLIE.js → note-UIC3ZWUV.js} +8 -8
  96. package/dist/{overlaps-VXR54C3B.js → overlaps-SHQUKU7E.js} +10 -10
  97. package/dist/{pin-UGP5FOKU.js → pin-LC33A2NH.js} +8 -8
  98. package/dist/{pr-U3VONCMS.js → pr-FRW5V6HV.js} +17 -17
  99. package/dist/{prune-PJAF4RAB.js → prune-REKRGEJU.js} +24 -24
  100. package/dist/{pty-host-7S5LN5PE.js → pty-host-W5NXKWAV.js} +9 -9
  101. package/dist/{read-KVRJKWHY.js → read-NQMJXBGZ.js} +7 -7
  102. package/dist/{recent-D756QKIV.js → recent-5POY67P2.js} +11 -11
  103. package/dist/{remove-VJSJGTH3.js → remove-7RT6QRRH.js} +25 -25
  104. package/dist/report-RBBVHVHD.js +74 -0
  105. package/dist/report-RBBVHVHD.js.map +1 -0
  106. package/dist/{restart-WQ2JNXBK.js → restart-S3SSGR6A.js} +7 -7
  107. package/dist/{resume-VWNVLBDY.js → resume-FLLXA3RH.js} +11 -11
  108. package/dist/{review-KQV2VC44.js → review-SFRX7ODW.js} +8 -8
  109. package/dist/{review-now-S6HC7QUZ.js → review-now-KZDBETZK.js} +3 -3
  110. package/dist/{run-ZQDZM2F7.js → run-BMD66HMR.js} +4 -4
  111. package/dist/{screen-TFIGUHCM.js → screen-MKRRQSIU.js} +7 -7
  112. package/dist/{search-OF3OQCOL.js → search-2NDA23G4.js} +4 -4
  113. package/dist/{section-RXBFBJH3.js → section-Z5G4B5IO.js} +8 -8
  114. package/dist/{send-SKMM6PMF.js → send-EVYK2JXH.js} +8 -8
  115. package/dist/{sessions-CHINYTLG.js → sessions-UD7GC6PL.js} +20 -20
  116. package/dist/{show-YAMZLP4E.js → show-K4MELKXA.js} +6 -6
  117. package/dist/{snooze-3OHKZEBQ.js → snooze-457UM2MR.js} +7 -7
  118. package/dist/{start-AFBN5IZM.js → start-CMYT5ELG.js} +7 -7
  119. package/dist/{state-NBSMRUXX.js → state-TOTGEK7J.js} +8 -4
  120. package/dist/state-TOTGEK7J.js.map +1 -0
  121. package/dist/{status-S2WZCF4J.js → status-M5RGLGOI.js} +8 -8
  122. package/dist/{stop-KSOAPWKH.js → stop-QUXZ4KOU.js} +7 -7
  123. package/dist/{sync-S2BNPQXB.js → sync-K7BZ55SE.js} +24 -24
  124. package/dist/{time-2QQXML2K.js → time-DQ55WLCX.js} +9 -9
  125. package/dist/{time-actions-VKQQ64BR.js → time-actions-HY3AML3Y.js} +3 -3
  126. package/dist/{timesheet-MZNTOM6T.js → timesheet-F4ATWRKK.js} +10 -10
  127. package/dist/{todo-ADHVKSVA.js → todo-QY5ZPN24.js} +3 -3
  128. package/dist/{tree-S2PPLSQB.js → tree-APEY56SC.js} +23 -23
  129. package/dist/{update-5K5Y5PB3.js → update-A5N2KKOV.js} +13 -13
  130. package/dist/{usage-O2POSOEE.js → usage-ZEZY46OJ.js} +6 -6
  131. package/dist/{wait-TXEVJCYX.js → wait-ZOTGREAN.js} +8 -8
  132. package/dist/wd-bin.js +2 -2
  133. package/dist/web/assets/{PtyView-DsQS5QEM.js → PtyView-8APZdSre.js} +2 -2
  134. package/dist/web/assets/{PtyView-DsQS5QEM.js.map → PtyView-8APZdSre.js.map} +1 -1
  135. package/dist/web/assets/{index-B1gUTG37.css → index-Dt4XbNcI.css} +1 -1
  136. package/dist/web/assets/{index-ppylqAa_.js → index-zOLWspb1.js} +11 -10
  137. package/dist/web/assets/index-zOLWspb1.js.map +1 -0
  138. package/dist/web/index.html +2 -2
  139. package/dist/{web-I7Q4ZMJX.js → web-LACYKYDC.js} +289 -131
  140. package/dist/web-LACYKYDC.js.map +1 -0
  141. package/npm-shrinkwrap.json +2 -2
  142. package/package.json +1 -1
  143. package/plugins/work-tree/skills/work-sessions/SKILL.md +18 -0
  144. package/dist/chunk-6CG7TAPE.js.map +0 -1
  145. package/dist/chunk-ALBTIOP3.js.map +0 -1
  146. package/dist/chunk-C7QOPDZL.js.map +0 -1
  147. package/dist/chunk-DJDI5OPO.js.map +0 -1
  148. package/dist/chunk-VJZGPYJT.js +0 -9
  149. package/dist/state-NBSMRUXX.js.map +0 -1
  150. package/dist/web/assets/index-ppylqAa_.js.map +0 -1
  151. package/dist/web-I7Q4ZMJX.js.map +0 -1
  152. /package/dist/{account-LUWE75BA.js.map → account-VGJEBBCS.js.map} +0 -0
  153. /package/dist/{add-repo-6CPMNL7A.js.map → add-repo-VNG3JVRR.js.map} +0 -0
  154. /package/dist/{answer-4MK7ABHK.js.map → answer-2MLNGB7P.js.map} +0 -0
  155. /package/dist/{attach-BISNHO3P.js.map → attach-4DSUBQBI.js.map} +0 -0
  156. /package/dist/{block-R724RFRJ.js.map → block-KCHJ4KMQ.js.map} +0 -0
  157. /package/dist/{broadcast-Z3ODUBQL.js.map → broadcast-XZZ6S6MH.js.map} +0 -0
  158. /package/dist/{catchup-OXUEJN2I.js.map → catchup-IVNPQHRM.js.map} +0 -0
  159. /package/dist/{chunk-NJXYDMNQ.js.map → chunk-4EFPHIME.js.map} +0 -0
  160. /package/dist/{chunk-ZL6IYEDM.js.map → chunk-6V6LBFWB.js.map} +0 -0
  161. /package/dist/{chunk-HN6ZSSPR.js.map → chunk-75PWH7BG.js.map} +0 -0
  162. /package/dist/{chunk-BOVPARRB.js.map → chunk-7ZOWY7GC.js.map} +0 -0
  163. /package/dist/{chunk-UNYCEMG4.js.map → chunk-AB3TSGJ4.js.map} +0 -0
  164. /package/dist/{chunk-PVBWN4LV.js.map → chunk-AFYYUXWA.js.map} +0 -0
  165. /package/dist/{chunk-YSUASP3E.js.map → chunk-B56NMAPD.js.map} +0 -0
  166. /package/dist/{chunk-44UME4JD.js.map → chunk-BDZDOPAA.js.map} +0 -0
  167. /package/dist/{chunk-3ZB3TXPT.js.map → chunk-D7TL6I5A.js.map} +0 -0
  168. /package/dist/{chunk-S5EJTSD2.js.map → chunk-DCEYDF77.js.map} +0 -0
  169. /package/dist/{chunk-EHX5MGDJ.js.map → chunk-DDLMX47W.js.map} +0 -0
  170. /package/dist/{chunk-OB5NKZYF.js.map → chunk-EVP5MMA7.js.map} +0 -0
  171. /package/dist/{chunk-K5U6EWIN.js.map → chunk-F2H4FQ62.js.map} +0 -0
  172. /package/dist/{chunk-IGMXR7S4.js.map → chunk-F36PSNNL.js.map} +0 -0
  173. /package/dist/{chunk-YOBBM2DF.js.map → chunk-FCUVFJSY.js.map} +0 -0
  174. /package/dist/{chunk-7L4L4Q73.js.map → chunk-GROMKF62.js.map} +0 -0
  175. /package/dist/{chunk-DKQU6K4S.js.map → chunk-HNZRVCQF.js.map} +0 -0
  176. /package/dist/{chunk-WUUZF4MY.js.map → chunk-ILLPPOIY.js.map} +0 -0
  177. /package/dist/{chunk-HJZ65BMV.js.map → chunk-IMTPBX3L.js.map} +0 -0
  178. /package/dist/{chunk-IHYPHX2Z.js.map → chunk-JDLRVOX7.js.map} +0 -0
  179. /package/dist/{chunk-WSDAXREI.js.map → chunk-JQO5ANP4.js.map} +0 -0
  180. /package/dist/{chunk-3MPFCM5W.js.map → chunk-L74WY44N.js.map} +0 -0
  181. /package/dist/{chunk-R5DHVUA2.js.map → chunk-LHKUHNE3.js.map} +0 -0
  182. /package/dist/{chunk-MD6QMSXQ.js.map → chunk-MQGNH74M.js.map} +0 -0
  183. /package/dist/{chunk-ZAGEDMIK.js.map → chunk-MRTSFVRF.js.map} +0 -0
  184. /package/dist/{chunk-I3JB5UGN.js.map → chunk-NB7IBSKF.js.map} +0 -0
  185. /package/dist/{chunk-HV5TXLMN.js.map → chunk-NDSZQKYL.js.map} +0 -0
  186. /package/dist/{chunk-YRSFUGS5.js.map → chunk-NDXZKB27.js.map} +0 -0
  187. /package/dist/{chunk-PSEVXDTS.js.map → chunk-NHZZMY3H.js.map} +0 -0
  188. /package/dist/{chunk-4J2F6OWM.js.map → chunk-OHX7WKZU.js.map} +0 -0
  189. /package/dist/{chunk-HACRL36E.js.map → chunk-OOQBMWTK.js.map} +0 -0
  190. /package/dist/{chunk-2SHSB7JN.js.map → chunk-PORC2R73.js.map} +0 -0
  191. /package/dist/{chunk-S4OLDCTC.js.map → chunk-QWVY5AUJ.js.map} +0 -0
  192. /package/dist/{chunk-T5SDU4UP.js.map → chunk-RQ7W2CVL.js.map} +0 -0
  193. /package/dist/{chunk-BZ2FD3F7.js.map → chunk-SM6RE2AH.js.map} +0 -0
  194. /package/dist/{chunk-BKW6R2II.js.map → chunk-T7GXKT6S.js.map} +0 -0
  195. /package/dist/{chunk-ULN7Z5VB.js.map → chunk-TNBZUIIP.js.map} +0 -0
  196. /package/dist/{chunk-VJZGPYJT.js.map → chunk-TO4GKLLT.js.map} +0 -0
  197. /package/dist/{chunk-JMILQI5Y.js.map → chunk-UD5CFHUS.js.map} +0 -0
  198. /package/dist/{chunk-SMTNDZX5.js.map → chunk-UEEZ6DGK.js.map} +0 -0
  199. /package/dist/{chunk-CNJZONIK.js.map → chunk-UNV2YM5V.js.map} +0 -0
  200. /package/dist/{chunk-CNZV3UCM.js.map → chunk-UPS7NHKI.js.map} +0 -0
  201. /package/dist/{chunk-XCDIMZD3.js.map → chunk-UXEFUSJV.js.map} +0 -0
  202. /package/dist/{chunk-WPFDHBQZ.js.map → chunk-WC4IN5MD.js.map} +0 -0
  203. /package/dist/{chunk-SRE4CK6Y.js.map → chunk-WIXY4EDH.js.map} +0 -0
  204. /package/dist/{chunk-4KETMLQJ.js.map → chunk-WUW6WRKP.js.map} +0 -0
  205. /package/dist/{chunk-PV7IOR7X.js.map → chunk-XDKH4X4N.js.map} +0 -0
  206. /package/dist/{chunk-TFENIQUQ.js.map → chunk-XEA3XWKW.js.map} +0 -0
  207. /package/dist/{chunk-2ALX552Z.js.map → chunk-XHDC3IU4.js.map} +0 -0
  208. /package/dist/{chunk-V5VG3V6R.js.map → chunk-XVHRBV2I.js.map} +0 -0
  209. /package/dist/{chunk-PZ7WTBSI.js.map → chunk-Y7PWSACJ.js.map} +0 -0
  210. /package/dist/{chunk-CDO7AFTJ.js.map → chunk-YJYYR5RY.js.map} +0 -0
  211. /package/dist/{chunk-DDGTJVLP.js.map → chunk-YVJUALQX.js.map} +0 -0
  212. /package/dist/{chunk-7LU3LKHV.js.map → chunk-ZAOX63AG.js.map} +0 -0
  213. /package/dist/{chunk-ZERN5OBM.js.map → chunk-ZKTYHYBU.js.map} +0 -0
  214. /package/dist/{chunk-YCNIIE7Q.js.map → chunk-ZSDMH3TI.js.map} +0 -0
  215. /package/dist/{cleanup-EHZ552FT.js.map → cleanup-M6V7VOL2.js.map} +0 -0
  216. /package/dist/{cli-KIBE6YOF.js.map → cli-KF7RFZQC.js.map} +0 -0
  217. /package/dist/{color-GPOUDNDD.js.map → color-G7OB6JRX.js.map} +0 -0
  218. /package/dist/{config-V4SDLGYF.js.map → config-WLHZ5EOU.js.map} +0 -0
  219. /package/dist/{diff-K7UDI3G4.js.map → diff-TKHHSR2G.js.map} +0 -0
  220. /package/dist/{digest-I7XDH3F6.js.map → digest-OVUDG6O7.js.map} +0 -0
  221. /package/dist/{fork-6VEB7OAL.js.map → fork-7RCD2XI2.js.map} +0 -0
  222. /package/dist/{history-XK2XDAKU.js.map → history-ZT6YAO62.js.map} +0 -0
  223. /package/dist/{hook-R7S37FCU.js.map → hook-MDENN4PE.js.map} +0 -0
  224. /package/dist/{hydrate-RIG5OW5L.js.map → hydrate-3KEAOXSE.js.map} +0 -0
  225. /package/dist/{init-HU2YAHSK.js.map → init-UDRGQJWV.js.map} +0 -0
  226. /package/dist/{install-skills-DIL6HTHB.js.map → install-skills-QTNDVA4T.js.map} +0 -0
  227. /package/dist/{keep-TXA5UIHC.js.map → keep-G4Z6EBQM.js.map} +0 -0
  228. /package/dist/{list-WKAOUGRK.js.map → list-DFENHOZN.js.map} +0 -0
  229. /package/dist/{move-2O552OT6.js.map → move-CV3PGUFM.js.map} +0 -0
  230. /package/dist/{note-C2UZCLIE.js.map → note-UIC3ZWUV.js.map} +0 -0
  231. /package/dist/{overlaps-VXR54C3B.js.map → overlaps-SHQUKU7E.js.map} +0 -0
  232. /package/dist/{pin-UGP5FOKU.js.map → pin-LC33A2NH.js.map} +0 -0
  233. /package/dist/{pr-U3VONCMS.js.map → pr-FRW5V6HV.js.map} +0 -0
  234. /package/dist/{prune-PJAF4RAB.js.map → prune-REKRGEJU.js.map} +0 -0
  235. /package/dist/{pty-host-7S5LN5PE.js.map → pty-host-W5NXKWAV.js.map} +0 -0
  236. /package/dist/{read-KVRJKWHY.js.map → read-NQMJXBGZ.js.map} +0 -0
  237. /package/dist/{recent-D756QKIV.js.map → recent-5POY67P2.js.map} +0 -0
  238. /package/dist/{remove-VJSJGTH3.js.map → remove-7RT6QRRH.js.map} +0 -0
  239. /package/dist/{restart-WQ2JNXBK.js.map → restart-S3SSGR6A.js.map} +0 -0
  240. /package/dist/{resume-VWNVLBDY.js.map → resume-FLLXA3RH.js.map} +0 -0
  241. /package/dist/{review-KQV2VC44.js.map → review-SFRX7ODW.js.map} +0 -0
  242. /package/dist/{review-now-S6HC7QUZ.js.map → review-now-KZDBETZK.js.map} +0 -0
  243. /package/dist/{run-ZQDZM2F7.js.map → run-BMD66HMR.js.map} +0 -0
  244. /package/dist/{screen-TFIGUHCM.js.map → screen-MKRRQSIU.js.map} +0 -0
  245. /package/dist/{search-OF3OQCOL.js.map → search-2NDA23G4.js.map} +0 -0
  246. /package/dist/{section-RXBFBJH3.js.map → section-Z5G4B5IO.js.map} +0 -0
  247. /package/dist/{send-SKMM6PMF.js.map → send-EVYK2JXH.js.map} +0 -0
  248. /package/dist/{sessions-CHINYTLG.js.map → sessions-UD7GC6PL.js.map} +0 -0
  249. /package/dist/{show-YAMZLP4E.js.map → show-K4MELKXA.js.map} +0 -0
  250. /package/dist/{snooze-3OHKZEBQ.js.map → snooze-457UM2MR.js.map} +0 -0
  251. /package/dist/{start-AFBN5IZM.js.map → start-CMYT5ELG.js.map} +0 -0
  252. /package/dist/{status-S2WZCF4J.js.map → status-M5RGLGOI.js.map} +0 -0
  253. /package/dist/{stop-KSOAPWKH.js.map → stop-QUXZ4KOU.js.map} +0 -0
  254. /package/dist/{sync-S2BNPQXB.js.map → sync-K7BZ55SE.js.map} +0 -0
  255. /package/dist/{time-2QQXML2K.js.map → time-DQ55WLCX.js.map} +0 -0
  256. /package/dist/{time-actions-VKQQ64BR.js.map → time-actions-HY3AML3Y.js.map} +0 -0
  257. /package/dist/{timesheet-MZNTOM6T.js.map → timesheet-F4ATWRKK.js.map} +0 -0
  258. /package/dist/{todo-ADHVKSVA.js.map → todo-QY5ZPN24.js.map} +0 -0
  259. /package/dist/{tree-S2PPLSQB.js.map → tree-APEY56SC.js.map} +0 -0
  260. /package/dist/{update-5K5Y5PB3.js.map → update-A5N2KKOV.js.map} +0 -0
  261. /package/dist/{usage-O2POSOEE.js.map → usage-ZEZY46OJ.js.map} +0 -0
  262. /package/dist/{wait-TXEVJCYX.js.map → wait-ZOTGREAN.js.map} +0 -0
@@ -1,4 +1,16 @@
1
1
  #!/usr/bin/env node
2
+ import {
3
+ ensureAgentPath,
4
+ restartHost
5
+ } from "./chunk-AFYYUXWA.js";
6
+ import {
7
+ addTask,
8
+ completeTask,
9
+ editTask,
10
+ getTasks,
11
+ removeTask,
12
+ uncompleteTask
13
+ } from "./chunk-BDZDOPAA.js";
2
14
  import {
3
15
  commentInputSchema,
4
16
  detectParentBranch,
@@ -12,39 +24,7 @@ import {
12
24
  serveSpa,
13
25
  sessionBaseForPath,
14
26
  submitReviewSchema
15
- } from "./chunk-BZ2FD3F7.js";
16
- import {
17
- ensureAgentPath,
18
- restartHost
19
- } from "./chunk-PVBWN4LV.js";
20
- import {
21
- dropLocalReview,
22
- readLocalReview,
23
- reviewNotifyText,
24
- saveLocalReview
25
- } from "./chunk-PSEVXDTS.js";
26
- import {
27
- createMonthGather,
28
- defaultTimeDeps,
29
- fetchIssueDetail,
30
- fetchJiraPane,
31
- fetchMyIssues,
32
- fetchMyIssuesOrThrow,
33
- finishDeviceLogin,
34
- graphAccount,
35
- graphApp,
36
- graphProblem,
37
- signOutGraph,
38
- startDeviceLogin
39
- } from "./chunk-7LU3LKHV.js";
40
- import {
41
- addTask,
42
- completeTask,
43
- editTask,
44
- getTasks,
45
- removeTask,
46
- uncompleteTask
47
- } from "./chunk-44UME4JD.js";
27
+ } from "./chunk-SM6RE2AH.js";
48
28
  import {
49
29
  announceChange,
50
30
  createArchivedRows,
@@ -59,32 +39,60 @@ import {
59
39
  stageSeenKey,
60
40
  storeHolding,
61
41
  withRestoring
62
- } from "./chunk-OB5NKZYF.js";
63
- import {
64
- DiffStatCache,
65
- findOverlaps,
66
- wantsDiffStat
67
- } from "./chunk-ZL6IYEDM.js";
42
+ } from "./chunk-EVP5MMA7.js";
68
43
  import {
69
44
  createDigestSource
70
- } from "./chunk-YCNIIE7Q.js";
45
+ } from "./chunk-ZSDMH3TI.js";
71
46
  import {
72
47
  createBuildFoldersJob,
73
48
  defaultBranchTidyDeps,
74
49
  defaultBuildFoldersDeps,
75
50
  deleteMergedBranches,
76
51
  findMergedBranches
77
- } from "./chunk-IGMXR7S4.js";
52
+ } from "./chunk-F36PSNNL.js";
78
53
  import {
79
54
  defaultCleanupDeps
80
- } from "./chunk-ZERN5OBM.js";
55
+ } from "./chunk-ZKTYHYBU.js";
56
+ import {
57
+ DiffStatCache,
58
+ findOverlaps,
59
+ wantsDiffStat
60
+ } from "./chunk-6V6LBFWB.js";
61
+ import {
62
+ dropLocalReview,
63
+ readLocalReview,
64
+ reviewNotifyText,
65
+ saveLocalReview
66
+ } from "./chunk-NHZZMY3H.js";
67
+ import {
68
+ createMonthGather,
69
+ defaultTimeDeps,
70
+ fetchIssueDetail,
71
+ fetchJiraPane,
72
+ fetchMyIssues,
73
+ fetchMyIssuesOrThrow,
74
+ finishDeviceLogin,
75
+ graphAccount,
76
+ graphApp,
77
+ graphProblem,
78
+ signOutGraph,
79
+ startDeviceLogin
80
+ } from "./chunk-ZAOX63AG.js";
81
+ import {
82
+ childBrief,
83
+ childrenOf,
84
+ coordinatorSince,
85
+ newBranchCheck,
86
+ setParent,
87
+ spawnCheck
88
+ } from "./chunk-AGICFQMJ.js";
81
89
  import {
82
90
  anyOwnStatusLine,
83
91
  buildUsage,
84
92
  realUsageDeps,
85
93
  refreshUsage,
86
94
  setupAgentUsage
87
- } from "./chunk-BOVPARRB.js";
95
+ } from "./chunk-7ZOWY7GC.js";
88
96
  import {
89
97
  sendToSession
90
98
  } from "./chunk-KWHHB737.js";
@@ -93,7 +101,7 @@ import {
93
101
  readNote,
94
102
  saveNote,
95
103
  sessionsWithNotes
96
- } from "./chunk-MD6QMSXQ.js";
104
+ } from "./chunk-MQGNH74M.js";
97
105
  import {
98
106
  addBlocker,
99
107
  allBlocks,
@@ -105,16 +113,16 @@ import {
105
113
  removeBlocker,
106
114
  sweepBlocks,
107
115
  unblockedPrompt
108
- } from "./chunk-DKQU6K4S.js";
116
+ } from "./chunk-HNZRVCQF.js";
109
117
  import {
110
118
  jiraWorklogPoster,
111
119
  logWorkDay,
112
120
  loggedDays,
113
121
  worklogSettings
114
- } from "./chunk-SRE4CK6Y.js";
122
+ } from "./chunk-WIXY4EDH.js";
115
123
  import {
116
124
  sessionWorkTime
117
- } from "./chunk-ZAGEDMIK.js";
125
+ } from "./chunk-MRTSFVRF.js";
118
126
  import {
119
127
  accountOverview,
120
128
  accountSkillsNote,
@@ -126,7 +134,7 @@ import {
126
134
  removeAgentAccount,
127
135
  setDefaultAgentAccount,
128
136
  switchRefusal
129
- } from "./chunk-4KETMLQJ.js";
137
+ } from "./chunk-WUW6WRKP.js";
130
138
  import "./chunk-LK7HJGUC.js";
131
139
  import {
132
140
  freeLeftovers,
@@ -136,25 +144,29 @@ import {
136
144
  parsePrRef,
137
145
  resolvePrToStart,
138
146
  workOnPrPrompt
139
- } from "./chunk-HV5TXLMN.js";
147
+ } from "./chunk-NDSZQKYL.js";
140
148
  import {
141
149
  legacyUnsafeCheck
142
- } from "./chunk-SMTNDZX5.js";
150
+ } from "./chunk-UEEZ6DGK.js";
143
151
  import {
144
152
  howToLift
145
153
  } from "./chunk-FZHFD2AY.js";
146
154
  import {
147
155
  agentsBySession,
148
156
  summarizeAgents
149
- } from "./chunk-YRSFUGS5.js";
157
+ } from "./chunk-NDXZKB27.js";
150
158
  import {
151
159
  removeWorktreeInChild
152
- } from "./chunk-EHX5MGDJ.js";
160
+ } from "./chunk-DDLMX47W.js";
153
161
  import {
154
162
  archiveMergedSession,
155
163
  archiveWaiting,
156
164
  defaultArchiveDeps
157
- } from "./chunk-BKW6R2II.js";
165
+ } from "./chunk-T7GXKT6S.js";
166
+ import {
167
+ cleanupVerdict,
168
+ createCleanupJob
169
+ } from "./chunk-AKMPF72Y.js";
158
170
  import {
159
171
  MAX_REPLY_CHARS,
160
172
  discardReply,
@@ -170,11 +182,7 @@ import {
170
182
  retireResolvedReplies,
171
183
  sessionRepoRefs,
172
184
  withThreadContext
173
- } from "./chunk-WSDAXREI.js";
174
- import {
175
- cleanupVerdict,
176
- createCleanupJob
177
- } from "./chunk-AKMPF72Y.js";
185
+ } from "./chunk-JQO5ANP4.js";
178
186
  import {
179
187
  DEFAULT_TRUSTED_BOTS,
180
188
  createCiStore,
@@ -184,7 +192,7 @@ import {
184
192
  openThreadsOf,
185
193
  reviewMessage,
186
194
  subAgentHint
187
- } from "./chunk-K5U6EWIN.js";
195
+ } from "./chunk-F2H4FQ62.js";
188
196
  import {
189
197
  commandWords,
190
198
  describeProcess,
@@ -198,7 +206,7 @@ import {
198
206
  defaultForkDeps,
199
207
  forkSession,
200
208
  startSessionWithPrompt
201
- } from "./chunk-DDGTJVLP.js";
209
+ } from "./chunk-YVJUALQX.js";
202
210
  import {
203
211
  childText,
204
212
  createInChild,
@@ -206,7 +214,7 @@ import {
206
214
  keyedQueue,
207
215
  oneAtATime,
208
216
  runWorkChild
209
- } from "./chunk-S4OLDCTC.js";
217
+ } from "./chunk-QWVY5AUJ.js";
210
218
  import {
211
219
  configurePtyPool,
212
220
  detachPtyPool,
@@ -231,26 +239,26 @@ import {
231
239
  syncPtyPool,
232
240
  terminalTicketUrl,
233
241
  writeToPty
234
- } from "./chunk-NJXYDMNQ.js";
242
+ } from "./chunk-4EFPHIME.js";
235
243
  import "./chunk-VRMALBZK.js";
236
244
  import {
237
245
  disposeAllWatchers,
238
246
  disposeSessionWatcher,
239
247
  findSession as findSession2,
240
248
  subscribeSession
241
- } from "./chunk-WPFDHBQZ.js";
242
- import "./chunk-4J2F6OWM.js";
249
+ } from "./chunk-WC4IN5MD.js";
250
+ import "./chunk-OHX7WKZU.js";
243
251
  import "./chunk-DLV7TRON.js";
244
252
  import {
245
253
  addRepoRefusal,
246
254
  addedRepoNote
247
- } from "./chunk-S5EJTSD2.js";
255
+ } from "./chunk-DCEYDF77.js";
248
256
  import {
249
257
  teardownWorktree,
250
258
  toBaseSpec,
251
259
  wouldRefuseRemoval
252
- } from "./chunk-C7QOPDZL.js";
253
- import "./chunk-PZ7WTBSI.js";
260
+ } from "./chunk-JO7AJVGA.js";
261
+ import "./chunk-Y7PWSACJ.js";
254
262
  import {
255
263
  isWorktreeFolder
256
264
  } from "./chunk-EORL2V7P.js";
@@ -269,35 +277,35 @@ import {
269
277
  stackedOn,
270
278
  updateFromBase,
271
279
  updateFromMain
272
- } from "./chunk-ULN7Z5VB.js";
280
+ } from "./chunk-TNBZUIIP.js";
273
281
  import {
274
282
  sessionStatusView,
275
283
  shownState
276
- } from "./chunk-XCDIMZD3.js";
284
+ } from "./chunk-UXEFUSJV.js";
277
285
  import {
278
286
  askCatchUp,
279
287
  cachedCatchUp,
280
288
  catchUp,
281
289
  catchUpFacts,
282
290
  forgetCatchUp
283
- } from "./chunk-TFENIQUQ.js";
291
+ } from "./chunk-XEA3XWKW.js";
284
292
  import {
285
293
  internalReadOnly,
286
294
  runInternal,
287
295
  runInternalReadOnly,
288
296
  summarizeCheckpoint,
289
297
  throttleTrailing
290
- } from "./chunk-3ZB3TXPT.js";
298
+ } from "./chunk-D7TL6I5A.js";
291
299
  import {
292
300
  computeDiff,
293
301
  computeRangeDiff,
294
302
  parseGitDiff
295
- } from "./chunk-JMILQI5Y.js";
303
+ } from "./chunk-UD5CFHUS.js";
296
304
  import {
297
305
  changeRailSections,
298
306
  placeSession,
299
307
  readRailLayout
300
- } from "./chunk-I3JB5UGN.js";
308
+ } from "./chunk-NB7IBSKF.js";
301
309
  import {
302
310
  QUEUE_RECHECK_MS,
303
311
  busyForRestart,
@@ -335,7 +343,7 @@ import {
335
343
  tempoSetup,
336
344
  timeRange,
337
345
  updateDay
338
- } from "./chunk-UNYCEMG4.js";
346
+ } from "./chunk-AB3TSGJ4.js";
339
347
  import {
340
348
  DISCUSSION_OPEN_MIN_MS,
341
349
  LEFT_OVER_SUBMIT,
@@ -379,7 +387,7 @@ import {
379
387
  withClaim,
380
388
  withFixClaim,
381
389
  withoutFixClaim
382
- } from "./chunk-R5DHVUA2.js";
390
+ } from "./chunk-LHKUHNE3.js";
383
391
  import {
384
392
  asData,
385
393
  asDataBlock
@@ -389,9 +397,9 @@ import {
389
397
  assistantDir,
390
398
  describeView,
391
399
  writeAssistantContext
392
- } from "./chunk-HACRL36E.js";
400
+ } from "./chunk-OOQBMWTK.js";
393
401
  import "./chunk-7E5XPDKX.js";
394
- import "./chunk-7L4L4Q73.js";
402
+ import "./chunk-GROMKF62.js";
395
403
  import {
396
404
  clearDevWebDiscovery,
397
405
  clearWebDiscovery,
@@ -409,11 +417,11 @@ import {
409
417
  findSessionForCwd,
410
418
  readPendingForSession,
411
419
  readPendingForWorktree
412
- } from "./chunk-YOBBM2DF.js";
420
+ } from "./chunk-FCUVFJSY.js";
413
421
  import "./chunk-ZSHWP2VS.js";
414
422
  import {
415
423
  getCommentFileStore
416
- } from "./chunk-CNZV3UCM.js";
424
+ } from "./chunk-UPS7NHKI.js";
417
425
  import {
418
426
  createCommentStore
419
427
  } from "./chunk-HUXS3VAI.js";
@@ -421,7 +429,7 @@ import {
421
429
  checkTools,
422
430
  saveFolders,
423
431
  setupState
424
- } from "./chunk-CDO7AFTJ.js";
432
+ } from "./chunk-YJYYR5RY.js";
425
433
  import {
426
434
  chooseWorktreesRoot,
427
435
  expandHome
@@ -434,17 +442,17 @@ import {
434
442
  stageInputOf,
435
443
  withRequiredChecks,
436
444
  workElsewhere
437
- } from "./chunk-2ALX552Z.js";
445
+ } from "./chunk-XHDC3IU4.js";
438
446
  import {
439
447
  createSessionBranches
440
- } from "./chunk-WUUZF4MY.js";
448
+ } from "./chunk-ILLPPOIY.js";
441
449
  import {
442
450
  defaultHost,
443
451
  hostById,
444
452
  hostForRepo,
445
453
  hostOfPrUrl,
446
454
  originHostname
447
- } from "./chunk-HJZ65BMV.js";
455
+ } from "./chunk-IMTPBX3L.js";
448
456
  import {
449
457
  MAX_THREAD_BODY
450
458
  } from "./chunk-FGPXMAYU.js";
@@ -457,7 +465,7 @@ import {
457
465
  readSessionBranches,
458
466
  repoNameOf,
459
467
  wasPushed
460
- } from "./chunk-2SHSB7JN.js";
468
+ } from "./chunk-PORC2R73.js";
461
469
  import {
462
470
  RepoAdminError,
463
471
  deleteGroup,
@@ -469,11 +477,11 @@ import {
469
477
  setRepoIgnored,
470
478
  setReviewMode,
471
479
  setScanRoot
472
- } from "./chunk-CNJZONIK.js";
480
+ } from "./chunk-UNV2YM5V.js";
473
481
  import {
474
482
  editorArgs,
475
483
  openUrl
476
- } from "./chunk-PV7IOR7X.js";
484
+ } from "./chunk-XDKH4X4N.js";
477
485
  import {
478
486
  enrollProblem,
479
487
  groupProblem,
@@ -573,7 +581,7 @@ import {
573
581
  updateCheckpoint,
574
582
  whileRestoring,
575
583
  writeArchiveRecord
576
- } from "./chunk-HN6ZSSPR.js";
584
+ } from "./chunk-75PWH7BG.js";
577
585
  import {
578
586
  dayKey
579
587
  } from "./chunk-NEJVK5CF.js";
@@ -584,7 +592,7 @@ import {
584
592
  sessionIdFor,
585
593
  tx,
586
594
  withDb
587
- } from "./chunk-ALBTIOP3.js";
595
+ } from "./chunk-QGUBOOEN.js";
588
596
  import {
589
597
  packageRoot
590
598
  } from "./chunk-LNHSBM4L.js";
@@ -606,13 +614,13 @@ import {
606
614
  projectList,
607
615
  readJsonlSince,
608
616
  swallow
609
- } from "./chunk-DJDI5OPO.js";
617
+ } from "./chunk-FDFFJOV6.js";
610
618
  import "./chunk-KGHWHAVF.js";
611
619
  import "./chunk-NFM4NGTI.js";
612
620
  import "./chunk-YQSWVHKK.js";
613
621
  import {
614
622
  VERSION
615
- } from "./chunk-VJZGPYJT.js";
623
+ } from "./chunk-TO4GKLLT.js";
616
624
  import {
617
625
  resolveProjectTarget
618
626
  } from "./chunk-IPHADNF5.js";
@@ -4314,6 +4322,17 @@ import { streamSSE as streamSSE2 } from "hono/streaming";
4314
4322
 
4315
4323
  // src/server/routes/session-comment-routes.ts
4316
4324
  import { zValidator as zValidator3 } from "@hono/zod-validator";
4325
+
4326
+ // src/core/comments/note-delivery.ts
4327
+ function noteDelivery(o) {
4328
+ if (o.author !== "user" || !o.hosted || o.pending === 0) return null;
4329
+ const said = o.live.filter((s) => s !== null);
4330
+ if (said.length) return said.some((s) => s === "busy" || s === "waiting") ? "next-turn" : "typed";
4331
+ return o.shown === "working" || o.shown === "needs_input" ? "next-turn" : "typed";
4332
+ }
4333
+ var RECHECK_AFTER_MS = [2e4, 9e4, 3e5];
4334
+
4335
+ // src/server/routes/session-comment-routes.ts
4317
4336
  function mountSessionCommentRoutes(app, opts) {
4318
4337
  function requireSession(id) {
4319
4338
  return findSession2(id);
@@ -4347,6 +4366,7 @@ function mountSessionCommentRoutes(app, opts) {
4347
4366
  changed(ctx, home, { id: comment.id });
4348
4367
  const delivery = comment.status === "published" ? ownedPtyDelivery(id, comment.author) : null;
4349
4368
  if (delivery === "typed") void typeAndSubmit(id, NOTE_NUDGE).catch(() => false);
4369
+ if (delivery === "next-turn") recheckLater(id, comment.author);
4350
4370
  return c.json({ comment, comments: listFor(ctx), delivery });
4351
4371
  } catch (err) {
4352
4372
  return c.json({ error: err.message }, 400);
@@ -4395,11 +4415,43 @@ async function deliverViaOwnedPty(sessionId, author) {
4395
4415
  await typeAndSubmit(sessionId, NOTE_NUDGE).catch(() => false);
4396
4416
  }
4397
4417
  function ownedPtyDelivery(sessionId, author) {
4398
- if (author !== "user") return null;
4399
- if (!peekPty(sessionId)) return null;
4418
+ if (author !== "user" || !peekPty(sessionId)) return null;
4400
4419
  const session = findSession2(sessionId);
4401
- if ((session ? readPendingForWorktree(session, sessionId) : readPendingForSession(sessionId)).length === 0) return null;
4402
- return readStatus(sessionId)?.state === "working" ? "next-turn" : "typed";
4420
+ const pending = (session ? readPendingForWorktree(session, sessionId) : readPendingForSession(sessionId)).length;
4421
+ if (pending === 0) return null;
4422
+ const live = bestEffort(
4423
+ "live state for a note",
4424
+ () => {
4425
+ const hostPids = ptyPids();
4426
+ return (agentsBySession(liveAgents(), loadHistory()).get(sessionId) ?? []).filter((a) => hostPids.has(a.pid)).map((a) => a.state);
4427
+ },
4428
+ []
4429
+ ) ?? [];
4430
+ const raw = readStatus(sessionId);
4431
+ const shown = raw ? session ? bestEffort(
4432
+ "shown state for a note",
4433
+ () => sessionStatusView(raw, session, readSessionActivity(session).lastActivity ?? 0).state,
4434
+ raw.state
4435
+ ) ?? raw.state : raw.state : null;
4436
+ return noteDelivery({ author, hosted: true, pending, live, shown });
4437
+ }
4438
+ var rechecking = /* @__PURE__ */ new Set();
4439
+ function recheckLater(sessionId, author, o = {}) {
4440
+ if (rechecking.has(sessionId)) return;
4441
+ rechecking.add(sessionId);
4442
+ const decide = o.decide ?? ownedPtyDelivery;
4443
+ const type = o.type ?? ((id) => typeAndSubmit(id, NOTE_NUDGE));
4444
+ const step = (after) => {
4445
+ const [next, ...rest] = after;
4446
+ if (next === void 0) return void rechecking.delete(sessionId);
4447
+ setTimeout(() => {
4448
+ const d = bestEffort("recheck a waiting note", () => decide(sessionId, author), null);
4449
+ if (d === "next-turn") return step(rest);
4450
+ rechecking.delete(sessionId);
4451
+ if (d === "typed") void type(sessionId).catch(() => false);
4452
+ }, next).unref?.();
4453
+ };
4454
+ step(o.after ?? RECHECK_AFTER_MS);
4403
4455
  }
4404
4456
  async function typeAndSubmit(sessionId, text, write2 = writeToPty, wait) {
4405
4457
  const agent = agentOf(findSession2(sessionId));
@@ -4693,6 +4745,15 @@ function whenStarted(child) {
4693
4745
  // src/server/routes/worktree-routes.ts
4694
4746
  import { zValidator as zValidator5 } from "@hono/zod-validator";
4695
4747
  import { z as z4 } from "zod";
4748
+ var queues = /* @__PURE__ */ new Map();
4749
+ function oneAtATime2(key, fn) {
4750
+ const run2 = (queues.get(key) ?? Promise.resolve()).catch(() => void 0).then(fn);
4751
+ queues.set(key, run2);
4752
+ void run2.finally(() => {
4753
+ if (queues.get(key) === run2) queues.delete(key);
4754
+ }).catch(() => void 0);
4755
+ return run2;
4756
+ }
4696
4757
  function mountWorktreeRoutes(app, opts) {
4697
4758
  const createSchema = z4.object({
4698
4759
  target: z4.string().min(1),
@@ -4705,7 +4766,9 @@ function mountWorktreeRoutes(app, opts) {
4705
4766
  /** Name the session (its title); the branch stays its identity. */
4706
4767
  name: z4.string().max(120).optional(),
4707
4768
  /** The Claude account a new session runs on (a name from `work account list`); empty: the configured default. */
4708
- account: z4.string().max(64).optional()
4769
+ account: z4.string().max(64).optional(),
4770
+ /** Started by this session (`work child spawn`): a new branch, its first prompt the task (session-children.ts). */
4771
+ parentId: z4.string().optional()
4709
4772
  });
4710
4773
  const startSession = opts.startSession ?? startSessionWithPrompt;
4711
4774
  const create = opts.create ?? createInProcess;
@@ -4718,41 +4781,75 @@ function mountWorktreeRoutes(app, opts) {
4718
4781
  app.post("/api/worktrees", zValidator5("json", createSchema), async (c) => {
4719
4782
  const { target, base, issueKey, prompt, name } = c.req.valid("json");
4720
4783
  const account = c.req.valid("json").account?.trim() || void 0;
4721
- const config = loadConfig();
4722
- if (!config) return c.json({ error: "no config" }, 400);
4784
+ const loaded = loadConfig();
4785
+ if (!loaded) return c.json({ error: "no config" }, 400);
4786
+ const config = loaded;
4723
4787
  const wanted = c.req.valid("json").branch?.trim() ?? "";
4724
4788
  if (!wanted && base?.trim())
4725
4789
  return c.json({ error: "a base needs a branch to fork (leave both empty to open the repo as it is)" }, 400);
4726
- try {
4727
- const made = await create(
4728
- { target, branch: wanted || void 0, base: base?.trim() ? toBaseSpec(base.trim()) : void 0, issueKey, name, account },
4729
- config
4730
- );
4731
- if (!made.ok) return c.json({ error: made.error }, 400);
4732
- const branch = made.branch;
4733
- const result = { launchDir: made.launchDir, paths: made.paths };
4734
- opts.broadcast("sessions-changed", { ts: Date.now() });
4735
- const id = sessionIdFor({ target, branch });
4736
- let started;
4737
- let startError;
4738
- if (prompt?.trim()) {
4739
- try {
4740
- started = await startSession(id, prompt.trim());
4741
- } catch (err) {
4742
- startError = err.message;
4743
- }
4790
+ const parentId = c.req.valid("json").parentId;
4791
+ if (parentId) return oneAtATime2(parentId, () => createOne());
4792
+ return createOne();
4793
+ async function createOne() {
4794
+ const parent = parentId ? findSession2(parentId) : void 0;
4795
+ if (parentId) {
4796
+ if (!parent || parent.archivedAt) return c.json({ error: "the coordinating session is unknown or archived" }, 400);
4797
+ if (!wanted || !prompt?.trim()) return c.json({ error: "a child session needs a branch and its task" }, 400);
4798
+ if (findSession2(sessionIdFor({ target, branch: wanted })))
4799
+ return c.json({ error: `a session on ${target} ${wanted} exists already` }, 409);
4800
+ const fresh = newBranchCheck(
4801
+ target,
4802
+ wanted,
4803
+ config,
4804
+ (dir, b) => ["refs/heads/", "refs/remotes/origin/"].some(
4805
+ (ref) => git(["rev-parse", "--verify", "--quiet", `${ref}${b}`], dir).exitCode === 0
4806
+ )
4807
+ );
4808
+ if (!fresh.ok) return c.json({ error: fresh.error }, 409);
4809
+ const may = spawnCheck(parentId, {
4810
+ coordinator: (id) => coordinatorSince(id) !== null,
4811
+ liveChildren: (id) => childrenOf(id).filter((k) => {
4812
+ const s = findSession2(k.id);
4813
+ return !!s && !s.archivedAt;
4814
+ }).length
4815
+ });
4816
+ if (!may.ok) return c.json({ error: may.error }, 403);
4817
+ }
4818
+ try {
4819
+ const made = await create(
4820
+ { target, branch: wanted || void 0, base: base?.trim() ? toBaseSpec(base.trim()) : void 0, issueKey, name, account },
4821
+ config
4822
+ );
4823
+ if (!made.ok) return c.json({ error: made.error }, 400);
4824
+ const branch = made.branch;
4825
+ const result = { launchDir: made.launchDir, paths: made.paths };
4744
4826
  opts.broadcast("sessions-changed", { ts: Date.now() });
4827
+ const id = sessionIdFor({ target, branch });
4828
+ if (parentId && parent) setParent(id, parentId);
4829
+ let started;
4830
+ let startError;
4831
+ if (prompt?.trim()) {
4832
+ try {
4833
+ started = await startSession(
4834
+ id,
4835
+ parent ? childBrief(parent.title?.trim() || `${parent.target} \xB7 ${parent.branch}`, prompt) : prompt.trim()
4836
+ );
4837
+ } catch (err) {
4838
+ startError = err.message;
4839
+ }
4840
+ opts.broadcast("sessions-changed", { ts: Date.now() });
4841
+ }
4842
+ return c.json({
4843
+ sessionId: id,
4844
+ launchDir: result.launchDir,
4845
+ paths: result.paths,
4846
+ ...made.warnings?.length ? { warnings: made.warnings } : {},
4847
+ ...started ? { started } : {},
4848
+ ...startError ? { startError } : {}
4849
+ });
4850
+ } catch (err) {
4851
+ return c.json({ error: err.message }, 500);
4745
4852
  }
4746
- return c.json({
4747
- sessionId: id,
4748
- launchDir: result.launchDir,
4749
- paths: result.paths,
4750
- ...made.warnings?.length ? { warnings: made.warnings } : {},
4751
- ...started ? { started } : {},
4752
- ...startError ? { startError } : {}
4753
- });
4754
- } catch (err) {
4755
- return c.json({ error: err.message }, 500);
4756
4853
  }
4757
4854
  });
4758
4855
  const REFUSED = "Worktree not removed: uncommitted changes, unpushed commits, or git refused. Retry with force, or forget the session only.";
@@ -7963,7 +8060,7 @@ function createReviewQueue(deps) {
7963
8060
  let treesSwept = false;
7964
8061
  const active = /* @__PURE__ */ new Set();
7965
8062
  let chain = Promise.resolve();
7966
- const oneAtATime2 = (f) => {
8063
+ const oneAtATime3 = (f) => {
7967
8064
  const p = chain.then(f, f);
7968
8065
  chain = p.catch(() => void 0);
7969
8066
  return p;
@@ -8085,7 +8182,7 @@ function createReviewQueue(deps) {
8085
8182
  try {
8086
8183
  if (!treesSwept && deps.sweepTrees) {
8087
8184
  treesSwept = true;
8088
- const left = await oneAtATime2(deps.sweepTrees).catch((err) => {
8185
+ const left = await oneAtATime3(deps.sweepTrees).catch((err) => {
8089
8186
  note(`couldn't sweep the temporary checkouts: ${err.message}`, "warn");
8090
8187
  return { swept: [], failed: [] };
8091
8188
  });
@@ -8141,7 +8238,7 @@ function createReviewQueue(deps) {
8141
8238
  note(`${t.project.alias} #${t.pr.number}: today's cap of ${maxPerDay} reached; waits`);
8142
8239
  continue;
8143
8240
  }
8144
- const r = await oneAtATime2(() => prepareOne(t.project, t.meta, t.pr, true, note));
8241
+ const r = await oneAtATime3(() => prepareOne(t.project, t.meta, t.pr, true, note));
8145
8242
  if (r.ok)
8146
8243
  note(
8147
8244
  `${t.project.alias} #${t.pr.number}: prepared \u2014 ${plural2(r.review.stories.length, "story", "stories")}, ${plural2(r.review.tests.gaps.length, "untested change")}${r.review.why ? ` (${r.review.why})` : ""}${r.how ? `; ${r.how}` : ""}`,
@@ -8186,7 +8283,7 @@ function createReviewQueue(deps) {
8186
8283
  if (!pr) return { ok: false, error: `#${number} isn't an open pull request of ${repo}` };
8187
8284
  const run2 = deps.activity?.start("reviews", `Preparing the review of ${repo} #${number}`);
8188
8285
  const note = (text, level = "info") => run2?.note(text, { level });
8189
- const r = await oneAtATime2(() => prepareOne(project, metaOf(repo, host, pr), pr, false, note, also));
8286
+ const r = await oneAtATime3(() => prepareOne(project, metaOf(repo, host, pr), pr, false, note, also));
8190
8287
  if (r.ok) run2?.done(`prepared${r.how ? `; ${r.how}` : ""}`);
8191
8288
  else run2?.fail(r.error);
8192
8289
  return r.ok ? { ok: true, review: r.review } : { ok: false, error: r.error };
@@ -11422,6 +11519,64 @@ var DemoScenario = class {
11422
11519
  ]),
11423
11520
  5
11424
11521
  );
11522
+ const MANY_REPOS = [
11523
+ "billing",
11524
+ "catalog",
11525
+ "checkout",
11526
+ "identity",
11527
+ "inventory",
11528
+ "notifications",
11529
+ "orders",
11530
+ "payments",
11531
+ "search",
11532
+ "shipping",
11533
+ "reviews",
11534
+ "recommendations",
11535
+ "analytics",
11536
+ "admin"
11537
+ ];
11538
+ this.add(
11539
+ "platform",
11540
+ "feat/rate-limits",
11541
+ MANY_REPOS.map((name, i) => {
11542
+ if (i % 3 === 2) return { name };
11543
+ const ident = name.replace(/-/g, "_");
11544
+ const fileCount = [1, 3, 0, 6, 2, 0, 12, 1, 0, 9, 4, 0, 7, 2][i];
11545
+ const bodyLines = [4, 30, 0, 12, 90, 0, 8, 160, 0, 20, 55, 0, 6, 240][i];
11546
+ const limiter = diffNew(`src/${name}/rate-limit.ts`, [
11547
+ `export const ${ident}Limit = { perMinute: ${60 + i * 10}, burst: ${5 + i} };`,
11548
+ "export function allow(count: number): boolean {",
11549
+ ` return count <= ${ident}Limit.perMinute;`,
11550
+ "}"
11551
+ ]);
11552
+ const extra = Array.from({ length: fileCount - 1 }, (_, k) => {
11553
+ const dir = ["handlers", "middleware", "config", "lib/util", "routes/v2"][k % 5];
11554
+ if (k % 3 === 2) {
11555
+ return diffEdit(
11556
+ `src/${name}/${dir}/index.ts`,
11557
+ 10 + k,
11558
+ [` const limit = ${30 + k};`, " return limit;"],
11559
+ [` const limit = ${ident}Limit.perMinute;`, ' if (limit <= 0) throw new Error("rate limit unset");', " return limit;"],
11560
+ ["export function limitFor(user: string): number {"]
11561
+ );
11562
+ }
11563
+ const lines = Array.from(
11564
+ { length: Math.max(3, Math.round(bodyLines * (1 - k / (fileCount + 1)))) },
11565
+ (_2, n) => n % 5 === 0 ? `export function step${k}_${n}(input: number): number {` : n % 5 === 4 ? "}" : ` return input + ${n};`
11566
+ );
11567
+ return diffNew(`src/${name}/${dir}/limit-${k}.ts`, lines);
11568
+ });
11569
+ const change = [limiter, ...extra].join("");
11570
+ return { name, uncommitted: change, sinceBranch: change };
11571
+ }),
11572
+ { state: "working", seen: true, summary: "Add a rate limit to every service", minutesAgo: 3 },
11573
+ claudeScreen("Add a rate limit to every service", [
11574
+ "\u25CF Write(billing/src/billing/rate-limit.ts)",
11575
+ "\u25CF Write(catalog/src/catalog/rate-limit.ts)",
11576
+ "\u273B Going through the other services\u2026 (esc to interrupt)"
11577
+ ]),
11578
+ 8
11579
+ );
11425
11580
  this.add(
11426
11581
  "api",
11427
11582
  "chore/dependency-audit",
@@ -13028,7 +13183,10 @@ function createDemoSettings(repoPathOf) {
13028
13183
  worktreesRoot: "~/worktrees",
13029
13184
  editor: "code",
13030
13185
  "prWatch.trustedBots": ["copilot-pull-request-reviewer", "github-actions"],
13031
- "time.gapTicket": "OPS-1"
13186
+ "time.gapTicket": "OPS-1",
13187
+ // Answered: the dashboard's one-time question (StatusLineAsk) sits in the corner over the pages' own buttons
13188
+ // until it is, and the demo shows work's own line anyway.
13189
+ claudeStatusLine: "work"
13032
13190
  };
13033
13191
  const repos = /* @__PURE__ */ new Map([
13034
13192
  [
@@ -14643,4 +14801,4 @@ export {
14643
14801
  stopExisting,
14644
14802
  webCommand
14645
14803
  };
14646
- //# sourceMappingURL=web-I7Q4ZMJX.js.map
14804
+ //# sourceMappingURL=web-LACYKYDC.js.map