@moberg_hr/work-tree 2.9.2 → 2.10.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 (362) hide show
  1. package/dist/{account-3A7RQSUC.js → account-QSNXX5YV.js} +81 -98
  2. package/dist/account-QSNXX5YV.js.map +1 -0
  3. package/dist/{add-repo-YGDJZ6HG.js → add-repo-YZ32MLZG.js} +32 -28
  4. package/dist/{add-repo-YGDJZ6HG.js.map → add-repo-YZ32MLZG.js.map} +1 -1
  5. package/dist/{answer-GHVFFKNF.js → answer-Y4T5X446.js} +16 -13
  6. package/dist/{answer-GHVFFKNF.js.map → answer-Y4T5X446.js.map} +1 -1
  7. package/dist/{attach-LWOZKLTF.js → attach-XPYWYHDP.js} +25 -19
  8. package/dist/{attach-LWOZKLTF.js.map → attach-XPYWYHDP.js.map} +1 -1
  9. package/dist/bin.js +4 -4
  10. package/dist/{block-WVUT63QY.js → block-JVAGG5QA.js} +22 -13
  11. package/dist/block-JVAGG5QA.js.map +1 -0
  12. package/dist/{broadcast-WM423JGR.js → broadcast-FATIANHX.js} +11 -9
  13. package/dist/{broadcast-WM423JGR.js.map → broadcast-FATIANHX.js.map} +1 -1
  14. package/dist/{catchup-KJZTLHN7.js → catchup-OTI2KZG5.js} +17 -15
  15. package/dist/{catchup-KJZTLHN7.js.map → catchup-OTI2KZG5.js.map} +1 -1
  16. package/dist/{chunk-SBLK524A.js → chunk-27LWL6QE.js} +171 -143
  17. package/dist/chunk-27LWL6QE.js.map +1 -0
  18. package/dist/chunk-2HHIDWHH.js +50 -0
  19. package/dist/chunk-2HHIDWHH.js.map +1 -0
  20. package/dist/{chunk-KVQNJCXH.js → chunk-2K5TDJ7M.js} +5 -5
  21. package/dist/{chunk-PDWEPIL6.js → chunk-2MAZV5KS.js} +18 -2
  22. package/dist/chunk-2MAZV5KS.js.map +1 -0
  23. package/dist/{chunk-XEAFWIN6.js → chunk-2VRZVUM7.js} +13 -6
  24. package/dist/chunk-2VRZVUM7.js.map +1 -0
  25. package/dist/{chunk-UB3DOOPB.js → chunk-34E2LA3M.js} +34 -9
  26. package/dist/chunk-34E2LA3M.js.map +1 -0
  27. package/dist/{chunk-BV2PPIKP.js → chunk-353ZINJ2.js} +3 -3
  28. package/dist/{chunk-5QGCF3PS.js → chunk-3BSFVKMK.js} +2 -2
  29. package/dist/{chunk-XTDTM6JI.js → chunk-3S6L437Q.js} +4 -5
  30. package/dist/chunk-3S6L437Q.js.map +1 -0
  31. package/dist/{chunk-3NXRBRRJ.js → chunk-3XG23PLG.js} +17 -57
  32. package/dist/chunk-3XG23PLG.js.map +1 -0
  33. package/dist/{chunk-YHSB7IVZ.js → chunk-46XSWHCQ.js} +14 -5
  34. package/dist/{chunk-YHSB7IVZ.js.map → chunk-46XSWHCQ.js.map} +1 -1
  35. package/dist/{chunk-J36ULZBO.js → chunk-4K4S53KX.js} +2 -2
  36. package/dist/{chunk-2Z2O5LEA.js → chunk-4O4VQQEA.js} +6 -10
  37. package/dist/chunk-4O4VQQEA.js.map +1 -0
  38. package/dist/chunk-4TTYEMOY.js +180 -0
  39. package/dist/chunk-4TTYEMOY.js.map +1 -0
  40. package/dist/{chunk-TR7CTHJA.js → chunk-5R5JEQW7.js} +59 -81
  41. package/dist/chunk-5R5JEQW7.js.map +1 -0
  42. package/dist/chunk-63ZLPXRL.js +199 -0
  43. package/dist/chunk-63ZLPXRL.js.map +1 -0
  44. package/dist/{chunk-2YXY6S7G.js → chunk-66VPQOVZ.js} +17 -14
  45. package/dist/chunk-66VPQOVZ.js.map +1 -0
  46. package/dist/{chunk-F4EWBHTA.js → chunk-6J6U7JXN.js} +20 -5
  47. package/dist/chunk-6J6U7JXN.js.map +1 -0
  48. package/dist/{chunk-P2HOLCBF.js → chunk-6UTH3A76.js} +18 -2
  49. package/dist/{chunk-P2HOLCBF.js.map → chunk-6UTH3A76.js.map} +1 -1
  50. package/dist/{chunk-LIE5GVDG.js → chunk-6YMLYU5G.js} +15 -17
  51. package/dist/{chunk-LIE5GVDG.js.map → chunk-6YMLYU5G.js.map} +1 -1
  52. package/dist/chunk-7E5XPDKX.js +22 -0
  53. package/dist/chunk-7E5XPDKX.js.map +1 -0
  54. package/dist/chunk-7QNVFVG6.js +196 -0
  55. package/dist/chunk-7QNVFVG6.js.map +1 -0
  56. package/dist/chunk-7S2NQRWL.js +9 -0
  57. package/dist/{chunk-4MVT7QPZ.js.map → chunk-7S2NQRWL.js.map} +1 -1
  58. package/dist/{chunk-P4EQWC5W.js → chunk-ADIN3DTD.js} +2 -2
  59. package/dist/{chunk-JB6LU6JV.js → chunk-AHI2WVWP.js} +16 -24
  60. package/dist/chunk-AHI2WVWP.js.map +1 -0
  61. package/dist/{chunk-KUCMJHQW.js → chunk-AHYCZUPI.js} +2 -2
  62. package/dist/chunk-AQP6SCCJ.js +66 -0
  63. package/dist/chunk-AQP6SCCJ.js.map +1 -0
  64. package/dist/chunk-B5WDN63X.js +84 -0
  65. package/dist/chunk-B5WDN63X.js.map +1 -0
  66. package/dist/{chunk-SWKTDMLL.js → chunk-BNKVENDF.js} +8 -8
  67. package/dist/chunk-DAKJTB6N.js +76 -0
  68. package/dist/chunk-DAKJTB6N.js.map +1 -0
  69. package/dist/{chunk-3N3UQEC4.js → chunk-DCCC7LEP.js} +4 -3
  70. package/dist/chunk-DCCC7LEP.js.map +1 -0
  71. package/dist/chunk-E67DOUVU.js +289 -0
  72. package/dist/chunk-E67DOUVU.js.map +1 -0
  73. package/dist/{chunk-5NKXGQX4.js → chunk-E7WPTSHQ.js} +22 -22
  74. package/dist/chunk-EL3XL2OC.js +150 -0
  75. package/dist/chunk-EL3XL2OC.js.map +1 -0
  76. package/dist/{chunk-5WEBLABB.js → chunk-F3PEUOTP.js} +3 -3
  77. package/dist/{chunk-ICJPVSRY.js → chunk-FKM67CZZ.js} +53 -51
  78. package/dist/chunk-FKM67CZZ.js.map +1 -0
  79. package/dist/{chunk-VUNJVF6C.js → chunk-FMLE2WSN.js} +2 -2
  80. package/dist/{chunk-HP2QVRSQ.js → chunk-FSQJOZS4.js} +17 -10
  81. package/dist/chunk-FSQJOZS4.js.map +1 -0
  82. package/dist/chunk-FZHFD2AY.js +27 -0
  83. package/dist/chunk-FZHFD2AY.js.map +1 -0
  84. package/dist/{chunk-K2MOQVTJ.js → chunk-GZGJQKQT.js} +2 -2
  85. package/dist/{chunk-5WM24P5N.js → chunk-I6MILNM5.js} +2 -2
  86. package/dist/chunk-I6MILNM5.js.map +1 -0
  87. package/dist/{chunk-S3BAD4IR.js → chunk-ICXUTMGH.js} +2 -2
  88. package/dist/{chunk-BWD24JIP.js → chunk-IDQVTWLX.js} +5 -5
  89. package/dist/{chunk-Z2XY3PLX.js → chunk-IFQOOCT7.js} +8 -8
  90. package/dist/{chunk-JT5AR7PO.js → chunk-IKX3B26P.js} +78 -6
  91. package/dist/chunk-IKX3B26P.js.map +1 -0
  92. package/dist/{chunk-OMIMK3LB.js → chunk-IOHK45WE.js} +2 -2
  93. package/dist/{chunk-SG5LUMGE.js → chunk-JNBMANFM.js} +6 -3
  94. package/dist/chunk-JNBMANFM.js.map +1 -0
  95. package/dist/{chunk-XMWVBLMJ.js → chunk-JNCKZ3OF.js} +12 -34
  96. package/dist/chunk-JNCKZ3OF.js.map +1 -0
  97. package/dist/{chunk-6IUFNTBQ.js → chunk-JVBIWU7S.js} +4 -4
  98. package/dist/chunk-JVE2JFLV.js +15 -0
  99. package/dist/chunk-JVE2JFLV.js.map +1 -0
  100. package/dist/{chunk-7NSQVIIK.js → chunk-KDO7D46L.js} +3 -3
  101. package/dist/{chunk-GJ5V357G.js → chunk-KL4YYV37.js} +4 -4
  102. package/dist/chunk-KSVYR4G2.js +47 -0
  103. package/dist/chunk-KSVYR4G2.js.map +1 -0
  104. package/dist/{chunk-RYNBBSLY.js → chunk-KWHHB737.js} +6 -8
  105. package/dist/chunk-KWHHB737.js.map +1 -0
  106. package/dist/chunk-L22AWXWA.js +29 -0
  107. package/dist/chunk-L22AWXWA.js.map +1 -0
  108. package/dist/{chunk-ZGT4ZDGG.js → chunk-LJKF73JB.js} +8 -8
  109. package/dist/chunk-LJKF73JB.js.map +1 -0
  110. package/dist/{chunk-JWWG624P.js → chunk-LKESANVD.js} +6 -6
  111. package/dist/{chunk-RG7NJEN7.js → chunk-LZZCJAJQ.js} +11 -11
  112. package/dist/{chunk-AQJSY4CI.js → chunk-MM7344RC.js} +2 -2
  113. package/dist/{chunk-HMK3INUS.js → chunk-MQCDFSVF.js} +2 -2
  114. package/dist/{chunk-VJ7SVDED.js → chunk-MSJWQC7H.js} +6 -4
  115. package/dist/chunk-MSJWQC7H.js.map +1 -0
  116. package/dist/chunk-NWOCQVSL.js +307 -0
  117. package/dist/chunk-NWOCQVSL.js.map +1 -0
  118. package/dist/{chunk-RGUSVBGN.js → chunk-OCMNBOPX.js} +2 -2
  119. package/dist/{chunk-BNGX2JGD.js → chunk-PCNNW63Z.js} +16 -5
  120. package/dist/chunk-PCNNW63Z.js.map +1 -0
  121. package/dist/chunk-PHGVVFTF.js +1603 -0
  122. package/dist/chunk-PHGVVFTF.js.map +1 -0
  123. package/dist/{chunk-4NITDMDH.js → chunk-PPZP7CA7.js} +9 -186
  124. package/dist/chunk-PPZP7CA7.js.map +1 -0
  125. package/dist/{chunk-X4AXKO3A.js → chunk-RGLIW45S.js} +2 -2
  126. package/dist/{chunk-TQOHPNDW.js → chunk-RHDZPV6C.js} +2 -2
  127. package/dist/{chunk-3GIH4WTA.js → chunk-RJUMLWXP.js} +109 -104
  128. package/dist/chunk-RJUMLWXP.js.map +1 -0
  129. package/dist/chunk-RQFHA5BM.js +1443 -0
  130. package/dist/chunk-RQFHA5BM.js.map +1 -0
  131. package/dist/chunk-S3CTXKSN.js +17 -0
  132. package/dist/chunk-S3CTXKSN.js.map +1 -0
  133. package/dist/chunk-SJBEIYLK.js +16 -0
  134. package/dist/chunk-SJBEIYLK.js.map +1 -0
  135. package/dist/chunk-TIG7NHVO.js +231 -0
  136. package/dist/chunk-TIG7NHVO.js.map +1 -0
  137. package/dist/{chunk-4BZGUMP7.js → chunk-TKWUSJNQ.js} +36 -23
  138. package/dist/chunk-TKWUSJNQ.js.map +1 -0
  139. package/dist/{chunk-VGRZKBUK.js → chunk-UP2JTDBI.js} +3 -3
  140. package/dist/chunk-V4U5RGEG.js +59 -0
  141. package/dist/chunk-V4U5RGEG.js.map +1 -0
  142. package/dist/{chunk-V4IHZJD4.js → chunk-V7GCYL6A.js} +93 -196
  143. package/dist/chunk-V7GCYL6A.js.map +1 -0
  144. package/dist/{chunk-GBMY7IMP.js → chunk-VFH4SU3M.js} +34 -23
  145. package/dist/chunk-VFH4SU3M.js.map +1 -0
  146. package/dist/{chunk-JFN67PRA.js → chunk-VV3NFLLP.js} +16 -9
  147. package/dist/chunk-VV3NFLLP.js.map +1 -0
  148. package/dist/{chunk-AGTVDF4O.js → chunk-WKOJ7NXD.js} +4 -4
  149. package/dist/{chunk-4SZ7YW7N.js → chunk-WVV54JP3.js} +56 -58
  150. package/dist/chunk-WVV54JP3.js.map +1 -0
  151. package/dist/chunk-WY7QZ2P7.js +71 -0
  152. package/dist/chunk-WY7QZ2P7.js.map +1 -0
  153. package/dist/{chunk-YYBXQBW2.js → chunk-Y7T73SAP.js} +13 -3
  154. package/dist/chunk-Y7T73SAP.js.map +1 -0
  155. package/dist/{chunk-PKXHK5CJ.js → chunk-Z6ZMWFNV.js} +25 -7
  156. package/dist/chunk-Z6ZMWFNV.js.map +1 -0
  157. package/dist/{chunk-MPY2ZQBL.js → chunk-Z7I6DQAR.js} +42 -57
  158. package/dist/chunk-Z7I6DQAR.js.map +1 -0
  159. package/dist/{chunk-GNGXYXBC.js → chunk-ZRATYLBB.js} +2 -2
  160. package/dist/{cleanup-7E3YWQUC.js → cleanup-M5TY4FQS.js} +46 -34
  161. package/dist/{cleanup-7E3YWQUC.js.map → cleanup-M5TY4FQS.js.map} +1 -1
  162. package/dist/cli-446A536X.js +19 -0
  163. package/dist/{completion-MXX5TRIV.js → completion-IAH7WRKJ.js} +3 -2
  164. package/dist/{completion-MXX5TRIV.js.map → completion-IAH7WRKJ.js.map} +1 -1
  165. package/dist/{config-TUJNIUIO.js → config-JLORGUXN.js} +16 -13
  166. package/dist/{config-TUJNIUIO.js.map → config-JLORGUXN.js.map} +1 -1
  167. package/dist/{diff-PZKOXAU3.js → diff-4O5HXNZ7.js} +23 -20
  168. package/dist/{diff-PZKOXAU3.js.map → diff-4O5HXNZ7.js.map} +1 -1
  169. package/dist/{digest-XHDDBXA6.js → digest-IAAZXJCC.js} +13 -11
  170. package/dist/{digest-XHDDBXA6.js.map → digest-IAAZXJCC.js.map} +1 -1
  171. package/dist/{fork-HYWZW72R.js → fork-ULJYPEKY.js} +41 -28
  172. package/dist/{fork-HYWZW72R.js.map → fork-ULJYPEKY.js.map} +1 -1
  173. package/dist/{history-MRRY2VTS.js → history-JFZF22M7.js} +12 -10
  174. package/dist/{hook-OWP4H2MT.js → hook-UYOIQVJ7.js} +54 -20
  175. package/dist/hook-UYOIQVJ7.js.map +1 -0
  176. package/dist/{hydrate-ZTGARW3U.js → hydrate-DROI4RJ7.js} +14 -12
  177. package/dist/{hydrate-ZTGARW3U.js.map → hydrate-DROI4RJ7.js.map} +1 -1
  178. package/dist/{init-7VISW3JJ.js → init-FF75CQM7.js} +27 -19
  179. package/dist/{init-7VISW3JJ.js.map → init-FF75CQM7.js.map} +1 -1
  180. package/dist/install-skills-XSAHNBYD.js +22 -0
  181. package/dist/install-skills-bin.js +8 -6
  182. package/dist/install-skills-bin.js.map +1 -1
  183. package/dist/{list-5XWYT37A.js → list-5FEHBP6N.js} +15 -13
  184. package/dist/{list-5XWYT37A.js.map → list-5FEHBP6N.js.map} +1 -1
  185. package/dist/{move-PSAODKRK.js → move-422L6PPI.js} +33 -24
  186. package/dist/{move-PSAODKRK.js.map → move-422L6PPI.js.map} +1 -1
  187. package/dist/{note-7WQ2YC2F.js → note-AAXPD5VA.js} +14 -12
  188. package/dist/{note-7WQ2YC2F.js.map → note-AAXPD5VA.js.map} +1 -1
  189. package/dist/{overlaps-R27DEX36.js → overlaps-WPNUYOFF.js} +21 -11
  190. package/dist/{overlaps-R27DEX36.js.map → overlaps-WPNUYOFF.js.map} +1 -1
  191. package/dist/{pin-LS4WPLOE.js → pin-QXPF23BB.js} +14 -12
  192. package/dist/{pin-LS4WPLOE.js.map → pin-QXPF23BB.js.map} +1 -1
  193. package/dist/{pr-SMEC5O7O.js → pr-QLGXPKPQ.js} +46 -21
  194. package/dist/pr-QLGXPKPQ.js.map +1 -0
  195. package/dist/{prune-VA3V5B2I.js → prune-GRHKRRVT.js} +44 -32
  196. package/dist/{prune-VA3V5B2I.js.map → prune-GRHKRRVT.js.map} +1 -1
  197. package/dist/{pty-host-PN4A3X2Y.js → pty-host-XDDXA4SL.js} +135 -67
  198. package/dist/pty-host-XDDXA4SL.js.map +1 -0
  199. package/dist/{read-75DP75TI.js → read-YWKD2DGP.js} +13 -11
  200. package/dist/{read-75DP75TI.js.map → read-YWKD2DGP.js.map} +1 -1
  201. package/dist/{recent-YDSLMD6Y.js → recent-SI5BDVVH.js} +35 -26
  202. package/dist/recent-SI5BDVVH.js.map +1 -0
  203. package/dist/{remove-XPSU2VTR.js → remove-RXXCHY44.js} +48 -36
  204. package/dist/{remove-XPSU2VTR.js.map → remove-RXXCHY44.js.map} +1 -1
  205. package/dist/{restart-7EPW5VDV.js → restart-CPNDEXU6.js} +17 -15
  206. package/dist/{restart-7EPW5VDV.js.map → restart-CPNDEXU6.js.map} +1 -1
  207. package/dist/{resume-26Y6G4UT.js → resume-BLP4TTJK.js} +35 -20
  208. package/dist/resume-BLP4TTJK.js.map +1 -0
  209. package/dist/review-now-ADWZPELT.js +22 -0
  210. package/dist/review-now-ADWZPELT.js.map +1 -0
  211. package/dist/{run-IIURYUD2.js → run-JFCDJ3EV.js} +21 -15
  212. package/dist/run-JFCDJ3EV.js.map +1 -0
  213. package/dist/{screen-AORRCOZQ.js → screen-LBOPAUXV.js} +14 -12
  214. package/dist/{screen-AORRCOZQ.js.map → screen-LBOPAUXV.js.map} +1 -1
  215. package/dist/{search-Z3XD7ZNQ.js → search-AMEGRH24.js} +10 -8
  216. package/dist/{search-Z3XD7ZNQ.js.map → search-AMEGRH24.js.map} +1 -1
  217. package/dist/{section-6N7J4Y6J.js → section-73Z34PVE.js} +14 -12
  218. package/dist/{section-6N7J4Y6J.js.map → section-73Z34PVE.js.map} +1 -1
  219. package/dist/{send-SHHXHICL.js → send-IZBSEET5.js} +19 -16
  220. package/dist/send-IZBSEET5.js.map +1 -0
  221. package/dist/{sessions-AD5HPY2L.js → sessions-WVQ2U2W4.js} +58 -23
  222. package/dist/sessions-WVQ2U2W4.js.map +1 -0
  223. package/dist/{snooze-JZMIVMNS.js → snooze-7IBHY5MY.js} +13 -11
  224. package/dist/{snooze-JZMIVMNS.js.map → snooze-7IBHY5MY.js.map} +1 -1
  225. package/dist/{start-6VNWRLPK.js → start-AU62TW6M.js} +14 -12
  226. package/dist/{start-6VNWRLPK.js.map → start-AU62TW6M.js.map} +1 -1
  227. package/dist/{state-OZF4S7PG.js → state-IZV7DAPL.js} +8 -5
  228. package/dist/state-IZV7DAPL.js.map +1 -0
  229. package/dist/{status-YRBJR4YB.js → status-Z7OMNYZX.js} +38 -13
  230. package/dist/status-Z7OMNYZX.js.map +1 -0
  231. package/dist/{statusline-RSQMMCRN.js → statusline-VJFY7ZAB.js} +12 -11
  232. package/dist/{statusline-RSQMMCRN.js.map → statusline-VJFY7ZAB.js.map} +1 -1
  233. package/dist/{statusline-hook-OVWHHFBV.js → statusline-hook-JA7MNE5H.js} +4 -3
  234. package/dist/{statusline-hook-OVWHHFBV.js.map → statusline-hook-JA7MNE5H.js.map} +1 -1
  235. package/dist/{stop-A2Q4CO6Z.js → stop-PWNXSFBD.js} +14 -12
  236. package/dist/{stop-A2Q4CO6Z.js.map → stop-PWNXSFBD.js.map} +1 -1
  237. package/dist/{sync-GXXBOQ4W.js → sync-2BTZVDDG.js} +44 -32
  238. package/dist/{sync-GXXBOQ4W.js.map → sync-2BTZVDDG.js.map} +1 -1
  239. package/dist/{time-XKEMSDMN.js → time-CTCIAXIY.js} +15 -13
  240. package/dist/{time-XKEMSDMN.js.map → time-CTCIAXIY.js.map} +1 -1
  241. package/dist/{time-actions-DB7OQ2IS.js → time-actions-UYBOXET6.js} +5 -4
  242. package/dist/{timesheet-ZAZXN6LK.js → timesheet-BUFQ34FC.js} +24 -15
  243. package/dist/{timesheet-ZAZXN6LK.js.map → timesheet-BUFQ34FC.js.map} +1 -1
  244. package/dist/{todo-ODF7RI27.js → todo-2R7VID57.js} +4 -4
  245. package/dist/{tree-HJGFWO6G.js → tree-LQDPAXQA.js} +65 -45
  246. package/dist/tree-LQDPAXQA.js.map +1 -0
  247. package/dist/{update-6427PE7F.js → update-2IYJHY7H.js} +24 -14
  248. package/dist/{update-6427PE7F.js.map → update-2IYJHY7H.js.map} +1 -1
  249. package/dist/{usage-HIXH42ZH.js → usage-IR5GNF4R.js} +13 -11
  250. package/dist/{usage-HIXH42ZH.js.map → usage-IR5GNF4R.js.map} +1 -1
  251. package/dist/version-ONEI52TI.js +115 -0
  252. package/dist/version-ONEI52TI.js.map +1 -0
  253. package/dist/{wait-VHPP2B7P.js → wait-6DH34L53.js} +16 -13
  254. package/dist/{wait-VHPP2B7P.js.map → wait-6DH34L53.js.map} +1 -1
  255. package/dist/wd-bin.js +6 -6
  256. package/dist/web/assets/PtyView-kBcAOwHr.js +96 -0
  257. package/dist/web/assets/PtyView-kBcAOwHr.js.map +1 -0
  258. package/dist/web/assets/index-BgfR3N99.js +124 -0
  259. package/dist/web/assets/index-BgfR3N99.js.map +1 -0
  260. package/dist/web/assets/index-CKpHjII8.css +1 -0
  261. package/dist/web/index.html +2 -2
  262. package/dist/{web-QTXU66K5.js → web-RIHGV7YY.js} +2893 -444
  263. package/dist/web-RIHGV7YY.js.map +1 -0
  264. package/npm-shrinkwrap.json +2 -2
  265. package/package.json +1 -1
  266. package/plugins/work-tree/skills/wd-review/SKILL.md +1 -1
  267. package/plugins/work-tree/skills/work-sessions/SKILL.md +2 -2
  268. package/dist/account-3A7RQSUC.js.map +0 -1
  269. package/dist/block-WVUT63QY.js.map +0 -1
  270. package/dist/chunk-2YXY6S7G.js.map +0 -1
  271. package/dist/chunk-2Z2O5LEA.js.map +0 -1
  272. package/dist/chunk-3GIH4WTA.js.map +0 -1
  273. package/dist/chunk-3N3UQEC4.js.map +0 -1
  274. package/dist/chunk-3NXRBRRJ.js.map +0 -1
  275. package/dist/chunk-4BZGUMP7.js.map +0 -1
  276. package/dist/chunk-4MVT7QPZ.js +0 -9
  277. package/dist/chunk-4NITDMDH.js.map +0 -1
  278. package/dist/chunk-4SZ7YW7N.js.map +0 -1
  279. package/dist/chunk-5WM24P5N.js.map +0 -1
  280. package/dist/chunk-BNGX2JGD.js.map +0 -1
  281. package/dist/chunk-F4EWBHTA.js.map +0 -1
  282. package/dist/chunk-GBMY7IMP.js.map +0 -1
  283. package/dist/chunk-H7GHJ3CR.js +0 -551
  284. package/dist/chunk-H7GHJ3CR.js.map +0 -1
  285. package/dist/chunk-HP2QVRSQ.js.map +0 -1
  286. package/dist/chunk-ICJPVSRY.js.map +0 -1
  287. package/dist/chunk-JB6LU6JV.js.map +0 -1
  288. package/dist/chunk-JFN67PRA.js.map +0 -1
  289. package/dist/chunk-JT5AR7PO.js.map +0 -1
  290. package/dist/chunk-MPY2ZQBL.js.map +0 -1
  291. package/dist/chunk-PDWEPIL6.js.map +0 -1
  292. package/dist/chunk-PKXHK5CJ.js.map +0 -1
  293. package/dist/chunk-RCYI7SRA.js +0 -15
  294. package/dist/chunk-RCYI7SRA.js.map +0 -1
  295. package/dist/chunk-RYNBBSLY.js.map +0 -1
  296. package/dist/chunk-SBLK524A.js.map +0 -1
  297. package/dist/chunk-SG5LUMGE.js.map +0 -1
  298. package/dist/chunk-TR7CTHJA.js.map +0 -1
  299. package/dist/chunk-UB3DOOPB.js.map +0 -1
  300. package/dist/chunk-V4IHZJD4.js.map +0 -1
  301. package/dist/chunk-VJ7SVDED.js.map +0 -1
  302. package/dist/chunk-VTLDYH3C.js +0 -227
  303. package/dist/chunk-VTLDYH3C.js.map +0 -1
  304. package/dist/chunk-XEAFWIN6.js.map +0 -1
  305. package/dist/chunk-XMWVBLMJ.js.map +0 -1
  306. package/dist/chunk-XTDTM6JI.js.map +0 -1
  307. package/dist/chunk-YYBXQBW2.js.map +0 -1
  308. package/dist/chunk-ZDMJPEBO.js +0 -31
  309. package/dist/chunk-ZDMJPEBO.js.map +0 -1
  310. package/dist/chunk-ZGT4ZDGG.js.map +0 -1
  311. package/dist/cli-BHIBPUQG.js +0 -19
  312. package/dist/hook-OWP4H2MT.js.map +0 -1
  313. package/dist/install-skills-IIMTRQ4K.js +0 -20
  314. package/dist/pr-SMEC5O7O.js.map +0 -1
  315. package/dist/pty-host-PN4A3X2Y.js.map +0 -1
  316. package/dist/recent-YDSLMD6Y.js.map +0 -1
  317. package/dist/resume-26Y6G4UT.js.map +0 -1
  318. package/dist/run-IIURYUD2.js.map +0 -1
  319. package/dist/send-SHHXHICL.js.map +0 -1
  320. package/dist/sessions-AD5HPY2L.js.map +0 -1
  321. package/dist/state-OZF4S7PG.js.map +0 -1
  322. package/dist/status-YRBJR4YB.js.map +0 -1
  323. package/dist/tree-HJGFWO6G.js.map +0 -1
  324. package/dist/web/assets/PtyView-B7zFUh_M.js +0 -96
  325. package/dist/web/assets/PtyView-B7zFUh_M.js.map +0 -1
  326. package/dist/web/assets/index-BAxeogV4.css +0 -1
  327. package/dist/web/assets/index-C4cR3Hwy.js +0 -120
  328. package/dist/web/assets/index-C4cR3Hwy.js.map +0 -1
  329. package/dist/web-QTXU66K5.js.map +0 -1
  330. /package/dist/{chunk-KVQNJCXH.js.map → chunk-2K5TDJ7M.js.map} +0 -0
  331. /package/dist/{chunk-BV2PPIKP.js.map → chunk-353ZINJ2.js.map} +0 -0
  332. /package/dist/{chunk-5QGCF3PS.js.map → chunk-3BSFVKMK.js.map} +0 -0
  333. /package/dist/{chunk-J36ULZBO.js.map → chunk-4K4S53KX.js.map} +0 -0
  334. /package/dist/{chunk-P4EQWC5W.js.map → chunk-ADIN3DTD.js.map} +0 -0
  335. /package/dist/{chunk-KUCMJHQW.js.map → chunk-AHYCZUPI.js.map} +0 -0
  336. /package/dist/{chunk-SWKTDMLL.js.map → chunk-BNKVENDF.js.map} +0 -0
  337. /package/dist/{chunk-5NKXGQX4.js.map → chunk-E7WPTSHQ.js.map} +0 -0
  338. /package/dist/{chunk-5WEBLABB.js.map → chunk-F3PEUOTP.js.map} +0 -0
  339. /package/dist/{chunk-VUNJVF6C.js.map → chunk-FMLE2WSN.js.map} +0 -0
  340. /package/dist/{chunk-K2MOQVTJ.js.map → chunk-GZGJQKQT.js.map} +0 -0
  341. /package/dist/{chunk-S3BAD4IR.js.map → chunk-ICXUTMGH.js.map} +0 -0
  342. /package/dist/{chunk-BWD24JIP.js.map → chunk-IDQVTWLX.js.map} +0 -0
  343. /package/dist/{chunk-Z2XY3PLX.js.map → chunk-IFQOOCT7.js.map} +0 -0
  344. /package/dist/{chunk-OMIMK3LB.js.map → chunk-IOHK45WE.js.map} +0 -0
  345. /package/dist/{chunk-6IUFNTBQ.js.map → chunk-JVBIWU7S.js.map} +0 -0
  346. /package/dist/{chunk-7NSQVIIK.js.map → chunk-KDO7D46L.js.map} +0 -0
  347. /package/dist/{chunk-GJ5V357G.js.map → chunk-KL4YYV37.js.map} +0 -0
  348. /package/dist/{chunk-JWWG624P.js.map → chunk-LKESANVD.js.map} +0 -0
  349. /package/dist/{chunk-RG7NJEN7.js.map → chunk-LZZCJAJQ.js.map} +0 -0
  350. /package/dist/{chunk-AQJSY4CI.js.map → chunk-MM7344RC.js.map} +0 -0
  351. /package/dist/{chunk-HMK3INUS.js.map → chunk-MQCDFSVF.js.map} +0 -0
  352. /package/dist/{chunk-RGUSVBGN.js.map → chunk-OCMNBOPX.js.map} +0 -0
  353. /package/dist/{chunk-X4AXKO3A.js.map → chunk-RGLIW45S.js.map} +0 -0
  354. /package/dist/{chunk-TQOHPNDW.js.map → chunk-RHDZPV6C.js.map} +0 -0
  355. /package/dist/{chunk-VGRZKBUK.js.map → chunk-UP2JTDBI.js.map} +0 -0
  356. /package/dist/{chunk-AGTVDF4O.js.map → chunk-WKOJ7NXD.js.map} +0 -0
  357. /package/dist/{chunk-GNGXYXBC.js.map → chunk-ZRATYLBB.js.map} +0 -0
  358. /package/dist/{cli-BHIBPUQG.js.map → cli-446A536X.js.map} +0 -0
  359. /package/dist/{history-MRRY2VTS.js.map → history-JFZF22M7.js.map} +0 -0
  360. /package/dist/{install-skills-IIMTRQ4K.js.map → install-skills-XSAHNBYD.js.map} +0 -0
  361. /package/dist/{time-actions-DB7OQ2IS.js.map → time-actions-UYBOXET6.js.map} +0 -0
  362. /package/dist/{todo-ODF7RI27.js.map → todo-2R7VID57.js.map} +0 -0
@@ -8,25 +8,26 @@ import {
8
8
  sessionIdFor,
9
9
  tx,
10
10
  withDb
11
- } from "./chunk-YYBXQBW2.js";
11
+ } from "./chunk-Y7T73SAP.js";
12
12
  import {
13
13
  agentFor,
14
14
  agentOf,
15
15
  agentToRecord,
16
16
  readJsonlTail
17
- } from "./chunk-MPY2ZQBL.js";
17
+ } from "./chunk-Z7I6DQAR.js";
18
18
  import {
19
19
  loadConfig
20
- } from "./chunk-PDWEPIL6.js";
20
+ } from "./chunk-2MAZV5KS.js";
21
21
  import {
22
22
  bootTime,
23
23
  isPidAlive,
24
24
  killTree,
25
25
  processName
26
- } from "./chunk-4NITDMDH.js";
26
+ } from "./chunk-63ZLPXRL.js";
27
27
  import {
28
+ shellEnv,
28
29
  spawn_default
29
- } from "./chunk-RCYI7SRA.js";
30
+ } from "./chunk-EL3XL2OC.js";
30
31
  import {
31
32
  atomicWriteFile,
32
33
  ensureFile,
@@ -41,8 +42,8 @@ import {
41
42
  } from "./chunk-6THUVP6T.js";
42
43
 
43
44
  // src/core/sessions/history.ts
44
- import fs10 from "fs";
45
- import path10 from "path";
45
+ import fs11 from "fs";
46
+ import path11 from "path";
46
47
 
47
48
  // src/core/sessions/session-activity.ts
48
49
  var ACTIVE_MS = 3e4;
@@ -136,7 +137,7 @@ async function allocateFreePort(seedKey, config, sessions, probe = isPortFree) {
136
137
  }
137
138
 
138
139
  // src/core/sessions/session-store.ts
139
- import fs9 from "fs";
140
+ import fs10 from "fs";
140
141
 
141
142
  // src/core/api-types.ts
142
143
  var ARCHIVED_BY = ["you", "shipped", "pr-merged", "cleanup"];
@@ -436,6 +437,22 @@ function prStageOf(repos) {
436
437
  key: `${kind}:${shown.map((r) => `${r.name}@${r.pr.headSha}`).join(",")}`
437
438
  };
438
439
  }
440
+ function stageRepos(repos) {
441
+ return repos.map((r) => {
442
+ const all = [
443
+ ...r.pr ? [{ ...r.branch ? { branch: r.branch } : {}, pr: r.pr }] : [],
444
+ ...(r.otherPrs ?? []).filter((o) => !r.pr || o.pr.url !== r.pr.url)
445
+ ];
446
+ const open = all.filter((x) => x.pr.state === "OPEN").sort((a, b) => b.pr.number - a.pr.number);
447
+ const chosen = open[0] ?? all.find((x) => x.pr === r.pr) ?? [...all].sort((a, b) => b.pr.number - a.pr.number)[0] ?? null;
448
+ return {
449
+ name: r.name,
450
+ pr: chosen?.pr ?? null,
451
+ ...chosen?.branch ? { branch: chosen.branch } : {},
452
+ earlier: all.filter((x) => x !== chosen).sort((a, b) => b.pr.number - a.pr.number)
453
+ };
454
+ });
455
+ }
439
456
  function cleanStageRef(raw) {
440
457
  const o = raw;
441
458
  if (!o || typeof o !== "object" || typeof o.key !== "string" || !o.key || o.key.length > 2e3) return null;
@@ -1590,7 +1607,8 @@ function startDev(id, session, config) {
1590
1607
  detached: process.platform !== "win32",
1591
1608
  windowsHide: true,
1592
1609
  stdio: ["ignore", log, log],
1593
- env: { ...process.env, PORT: String(session.port) }
1610
+ // Windows: a bare name in the command is PATH's, never the worktree's (a branch's script runs by its path: shell-env.ts).
1611
+ env: shellEnv({ ...process.env, PORT: String(session.port) })
1594
1612
  });
1595
1613
  child.on("error", () => {
1596
1614
  });
@@ -1648,22 +1666,60 @@ function devLogTail(id, maxBytes = 64 * 1024) {
1648
1666
  }
1649
1667
 
1650
1668
  // src/core/diff/checkpoint.ts
1651
- import fs7 from "fs";
1669
+ import fs8 from "fs";
1652
1670
  import os2 from "os";
1671
+ import path8 from "path";
1672
+
1673
+ // src/core/git/git-head.ts
1674
+ import fs7 from "fs";
1653
1675
  import path7 from "path";
1676
+ function checkedOutBranch(checkout) {
1677
+ try {
1678
+ const dirs = gitDirs(checkout);
1679
+ return dirs ? branchFromHead(fs7.readFileSync(path7.join(dirs.gitDir, "HEAD"), "utf8")) : null;
1680
+ } catch {
1681
+ return null;
1682
+ }
1683
+ }
1684
+ function gitDirs(checkout) {
1685
+ try {
1686
+ const dotGit = path7.join(checkout, ".git");
1687
+ if (!fs7.statSync(dotGit).isFile()) return { gitDir: dotGit, commonDir: dotGit };
1688
+ const m = /^gitdir:\s*(.+?)\s*$/m.exec(fs7.readFileSync(dotGit, "utf8"));
1689
+ if (!m) return null;
1690
+ const gitDir = path7.resolve(checkout, m[1]);
1691
+ let commonDir = gitDir;
1692
+ try {
1693
+ commonDir = path7.resolve(gitDir, fs7.readFileSync(path7.join(gitDir, "commondir"), "utf8").trim());
1694
+ } catch {
1695
+ }
1696
+ return { gitDir, commonDir };
1697
+ } catch {
1698
+ return null;
1699
+ }
1700
+ }
1701
+ function branchFromHead(head) {
1702
+ const m = /^ref:\s*refs\/heads\/(.+?)\s*$/m.exec(head);
1703
+ return m ? m[1] : null;
1704
+ }
1705
+
1706
+ // src/core/diff/checkpoint.ts
1707
+ function branchesOf(repos) {
1708
+ return Object.fromEntries(repos.map((r) => [r.name, checkedOutBranch(r.root)]));
1709
+ }
1654
1710
  function manifestPath(scopeHash) {
1655
- const dir = path7.join(os2.homedir(), ".work", "diffs");
1656
- fs7.mkdirSync(dir, { recursive: true });
1657
- return path7.join(dir, `${scopeHash}.checkpoints.json`);
1711
+ const dir = path8.join(os2.homedir(), ".work", "diffs");
1712
+ fs8.mkdirSync(dir, { recursive: true });
1713
+ return path8.join(dir, `${scopeHash}.checkpoints.json`);
1658
1714
  }
1659
1715
  function emptyManifest(scopeHash) {
1660
1716
  return { version: 1, scopeHash, entries: [] };
1661
1717
  }
1662
1718
  function loadManifest(scopeHash) {
1663
1719
  const file = manifestPath(scopeHash);
1664
- if (!fs7.existsSync(file)) return emptyManifest(scopeHash);
1720
+ if (!fs8.existsSync(file)) return emptyManifest(scopeHash);
1665
1721
  try {
1666
- const raw = fs7.readFileSync(file, "utf-8");
1722
+ const raw = fs8.readFileSync(file, "utf-8");
1667
1723
  const parsed = JSON.parse(raw);
1668
1724
  if (parsed.version !== 1 || !Array.isArray(parsed.entries)) {
1669
1725
  return emptyManifest(scopeHash);
@@ -1677,6 +1733,18 @@ function loadManifest(scopeHash) {
1677
1733
  return emptyManifest(scopeHash);
1678
1734
  }
1679
1735
  }
1736
+ async function treeOfAsync(root, rev) {
1737
+ if (!rev) return null;
1738
+ const r = await runGitAsync(root, { args: ["rev-parse", `${rev}^{tree}`] });
1739
+ return r.status === 0 ? r.stdout.trim() || null : null;
1740
+ }
1741
+ async function sameTrees(repos, a, b) {
1742
+ for (const repo of repos) {
1743
+ const cur = await treeOfAsync(repo.root, a(repo));
1744
+ if (cur === null || cur !== await treeOfAsync(repo.root, b(repo))) return false;
1745
+ }
1746
+ return true;
1747
+ }
1680
1748
  async function snapshotRepo(repoRoot, scopeHash, id, includeWorkingTree = true) {
1681
1749
  const tree = await writeTempTreeAsync(repoRoot, { includeWorkingTree });
1682
1750
  if (!tree) return null;
@@ -1711,42 +1779,31 @@ async function takeCheckpoint(scopeHash, repos, opts = {}) {
1711
1779
  for (const repo of repos) {
1712
1780
  captured[repo.name] = await snapshotRepo(repo.root, scopeHash, nextId, !isFirst);
1713
1781
  }
1714
- const rollbackRefs = () => {
1782
+ const rollbackRefs = async () => {
1715
1783
  const refName = `refs/wd/${scopeHash}/${nextId}`;
1716
- for (const repo of repos) {
1717
- spawn_default.sync("git", ["update-ref", "-d", refName], {
1718
- cwd: repo.root,
1719
- encoding: "utf-8",
1720
- windowsHide: true
1721
- });
1722
- }
1784
+ for (const repo of repos) await runGitAsync(repo.root, { args: ["update-ref", "-d", refName] });
1723
1785
  };
1724
1786
  if (repos.some((r) => captured[r.name] === null)) {
1725
- rollbackRefs();
1787
+ await rollbackRefs();
1726
1788
  return null;
1727
1789
  }
1728
1790
  if (!opts.force && !isFirst) {
1729
1791
  const prev = manifest.entries[manifest.entries.length - 1];
1730
- const treeOf = (root, commitSha) => {
1731
- if (!commitSha) return null;
1732
- const r = spawn_default.sync("git", ["rev-parse", `${commitSha}^{tree}`], { cwd: root, encoding: "utf-8", windowsHide: true });
1733
- if (r.status !== 0 || typeof r.stdout !== "string") return null;
1734
- return r.stdout.trim() || null;
1735
- };
1736
- const allTreesMatch = repos.every((repo) => {
1737
- const curTree = treeOf(repo.root, captured[repo.name]);
1738
- const prevTree = treeOf(repo.root, prev.repos[repo.name] ?? null);
1739
- return curTree !== null && curTree === prevTree;
1740
- });
1792
+ const allTreesMatch = await sameTrees(
1793
+ repos,
1794
+ (r) => captured[r.name],
1795
+ (r) => prev.repos[r.name] ?? null
1796
+ );
1741
1797
  if (allTreesMatch) {
1742
- rollbackRefs();
1798
+ await rollbackRefs();
1743
1799
  return null;
1744
1800
  }
1745
1801
  }
1746
1802
  const entry = {
1747
1803
  id: nextId,
1748
1804
  ts: (/* @__PURE__ */ new Date()).toISOString(),
1749
- repos: captured
1805
+ repos: captured,
1806
+ branches: branchesOf(repos)
1750
1807
  };
1751
1808
  const label = opts.label ?? (isFirst ? "Initial" : void 0);
1752
1809
  if (label) entry.label = label;
@@ -1776,22 +1833,10 @@ async function updateCheckpoint(scopeHash, repos, id) {
1776
1833
  const entry = manifest.entries.find((e) => e.id === id);
1777
1834
  if (!entry) return { status: "missing" };
1778
1835
  const refName = `refs/wd/${scopeHash}/${id}`;
1779
- const restoreRefs = () => {
1836
+ const restoreRefs = async () => {
1780
1837
  for (const repo of repos) {
1781
1838
  const old = entry.repos[repo.name] ?? null;
1782
- if (old) {
1783
- spawn_default.sync("git", ["update-ref", refName, old], {
1784
- cwd: repo.root,
1785
- encoding: "utf-8",
1786
- windowsHide: true
1787
- });
1788
- } else {
1789
- spawn_default.sync("git", ["update-ref", "-d", refName], {
1790
- cwd: repo.root,
1791
- encoding: "utf-8",
1792
- windowsHide: true
1793
- });
1794
- }
1839
+ await runGitAsync(repo.root, { args: old ? ["update-ref", refName, old] : ["update-ref", "-d", refName] });
1795
1840
  }
1796
1841
  };
1797
1842
  const captured = {};
@@ -1799,29 +1844,20 @@ async function updateCheckpoint(scopeHash, repos, id) {
1799
1844
  captured[repo.name] = await snapshotRepo(repo.root, scopeHash, id, true);
1800
1845
  }
1801
1846
  if (repos.some((r) => captured[r.name] === null)) {
1802
- restoreRefs();
1847
+ await restoreRefs();
1803
1848
  return { status: "missing" };
1804
1849
  }
1805
- const treeOf = (root, commitSha) => {
1806
- if (!commitSha) return null;
1807
- const r = spawn_default.sync("git", ["rev-parse", `${commitSha}^{tree}`], {
1808
- cwd: root,
1809
- encoding: "utf-8",
1810
- windowsHide: true
1811
- });
1812
- if (r.status !== 0 || typeof r.stdout !== "string") return null;
1813
- return r.stdout.trim() || null;
1814
- };
1815
- const unchanged = repos.every((repo) => {
1816
- const curTree = treeOf(repo.root, captured[repo.name]);
1817
- const prevTree = treeOf(repo.root, entry.repos[repo.name] ?? null);
1818
- return curTree !== null && curTree === prevTree;
1819
- });
1850
+ const unchanged = await sameTrees(
1851
+ repos,
1852
+ (r) => captured[r.name],
1853
+ (r) => entry.repos[r.name] ?? null
1854
+ );
1820
1855
  if (unchanged) {
1821
- restoreRefs();
1856
+ await restoreRefs();
1822
1857
  return { status: "unchanged" };
1823
1858
  }
1824
1859
  entry.repos = captured;
1860
+ entry.branches = branchesOf(repos);
1825
1861
  entry.ts = (/* @__PURE__ */ new Date()).toISOString();
1826
1862
  delete entry.label;
1827
1863
  atomicWriteFile(file, JSON.stringify(manifest, null, 2));
@@ -1837,27 +1873,22 @@ async function resetBaseline(scopeHash, repos) {
1837
1873
  for (const repo of repos) {
1838
1874
  captured[repo.name] = await snapshotRepo(repo.root, scopeHash, 0, false);
1839
1875
  }
1840
- const delRef = (id) => {
1841
- for (const repo of repos) {
1842
- spawn_default.sync("git", ["update-ref", "-d", `refs/wd/${scopeHash}/${id}`], {
1843
- cwd: repo.root,
1844
- encoding: "utf-8",
1845
- windowsHide: true
1846
- });
1847
- }
1876
+ const delRef = async (id) => {
1877
+ for (const repo of repos) await runGitAsync(repo.root, { args: ["update-ref", "-d", `refs/wd/${scopeHash}/${id}`] });
1848
1878
  };
1849
1879
  if (repos.some((r) => captured[r.name] === null)) {
1850
- delRef(0);
1880
+ await delRef(0);
1851
1881
  return null;
1852
1882
  }
1853
1883
  for (const id of prevIds) {
1854
- if (id !== 0) delRef(id);
1884
+ if (id !== 0) await delRef(id);
1855
1885
  }
1856
1886
  const entry = {
1857
1887
  id: 0,
1858
1888
  ts: (/* @__PURE__ */ new Date()).toISOString(),
1859
1889
  label: "Initial",
1860
- repos: captured
1890
+ repos: captured,
1891
+ branches: branchesOf(repos)
1861
1892
  };
1862
1893
  const manifest = {
1863
1894
  version: 1,
@@ -1879,56 +1910,50 @@ async function setCheckpointLabel(scopeHash, id, label) {
1879
1910
  atomicWriteFile(file, JSON.stringify(manifest, null, 2));
1880
1911
  });
1881
1912
  }
1882
- function headAdvancedSinceInitial(scopeHash, repos) {
1913
+ async function headAdvancedSinceInitial(scopeHash, repos) {
1883
1914
  const manifest = loadManifest(scopeHash);
1884
1915
  const initial = manifest.entries.find((e) => e.id === 0);
1885
1916
  if (!initial) return false;
1886
- const treeOf = (root, rev) => {
1887
- const r = spawn_default.sync("git", ["rev-parse", `${rev}^{tree}`], {
1888
- cwd: root,
1889
- encoding: "utf-8",
1890
- windowsHide: true
1891
- });
1892
- if (r.status !== 0 || typeof r.stdout !== "string") return null;
1893
- return r.stdout.trim() || null;
1894
- };
1895
- return repos.some((repo) => {
1896
- const headTree = treeOf(repo.root, "HEAD");
1897
- if (headTree === null) return false;
1917
+ for (const repo of repos) {
1918
+ const headTree = await treeOfAsync(repo.root, "HEAD");
1919
+ if (headTree === null) continue;
1898
1920
  const baselineSha = initial.repos[repo.name];
1899
1921
  if (!baselineSha) return true;
1900
- const baselineTree = treeOf(repo.root, baselineSha);
1901
- if (baselineTree === null) return false;
1902
- return baselineTree !== headTree;
1903
- });
1922
+ const baselineTree = await treeOfAsync(repo.root, baselineSha);
1923
+ if (baselineTree === null) continue;
1924
+ if (baselineTree !== headTree) return true;
1925
+ }
1926
+ return false;
1904
1927
  }
1905
- function headBroughtInOtherWork(scopeHash, repos) {
1928
+ async function headBroughtInOtherWork(scopeHash, repos) {
1906
1929
  const entries = loadManifest(scopeHash).entries;
1907
1930
  if (entries.length === 0) return false;
1908
1931
  const newest = entries.reduce((a, b) => b.id > a.id ? b : a);
1909
- const run = (root, args) => {
1910
- const r = spawn_default.sync("git", args, { cwd: root, encoding: "utf-8", windowsHide: true });
1911
- return { ok: r.status === 0, out: typeof r.stdout === "string" ? r.stdout.trim() : "" };
1932
+ const run = async (root, args) => {
1933
+ const r = await runGitAsync(root, { args });
1934
+ return { ok: r.status === 0, out: r.stdout.trim() };
1912
1935
  };
1913
- const count = (root, args) => {
1914
- const r = run(root, ["rev-list", "--count", ...args]);
1936
+ const count = async (root, args) => {
1937
+ const r = await run(root, ["rev-list", "--count", ...args]);
1915
1938
  return r.ok && /^\d+$/.test(r.out) ? Number(r.out) : null;
1916
1939
  };
1917
- return repos.some((repo) => {
1940
+ const broughtIn = async (repo) => {
1918
1941
  const snap = newest.repos[repo.name];
1919
1942
  if (!snap) return false;
1920
- const was = run(repo.root, ["rev-parse", "--verify", "--quiet", `${snap}^`]);
1921
- const now = run(repo.root, ["rev-parse", "--verify", "--quiet", "HEAD"]);
1943
+ const was = await run(repo.root, ["rev-parse", "--verify", "--quiet", `${snap}^`]);
1944
+ const now = await run(repo.root, ["rev-parse", "--verify", "--quiet", "HEAD"]);
1922
1945
  if (!was.ok || !now.ok || !was.out || was.out === now.out) return false;
1923
- if (!run(repo.root, ["merge-base", "--is-ancestor", was.out, now.out]).ok) return true;
1946
+ if (!(await run(repo.root, ["merge-base", "--is-ancestor", was.out, now.out])).ok) return true;
1924
1947
  const range = `${was.out}..${now.out}`;
1925
- if ((count(repo.root, ["--merges", range]) ?? 0) > 0) return true;
1926
- const main = run(repo.root, ["rev-parse", "--verify", "--quiet", "origin/HEAD"]);
1948
+ if ((await count(repo.root, ["--merges", range]) ?? 0) > 0) return true;
1949
+ const main = await run(repo.root, ["rev-parse", "--verify", "--quiet", "origin/HEAD"]);
1927
1950
  if (!main.ok) return false;
1928
- const all = count(repo.root, [range]);
1929
- const own = count(repo.root, [range, "^origin/HEAD"]);
1951
+ const all = await count(repo.root, [range]);
1952
+ const own = await count(repo.root, [range, "^origin/HEAD"]);
1930
1953
  return all !== null && own !== null && own < all;
1931
- });
1954
+ };
1955
+ for (const repo of repos) if (await broughtIn(repo)) return true;
1956
+ return false;
1932
1957
  }
1933
1958
  function clearCheckpoints(scopeHash, repoRoots) {
1934
1959
  const manifest = loadManifest(scopeHash);
@@ -1943,21 +1968,21 @@ function clearCheckpoints(scopeHash, repoRoots) {
1943
1968
  }
1944
1969
  }
1945
1970
  const file = manifestPath(scopeHash);
1946
- if (fs7.existsSync(file)) {
1971
+ if (fs8.existsSync(file)) {
1947
1972
  try {
1948
- fs7.unlinkSync(file);
1973
+ fs8.unlinkSync(file);
1949
1974
  } catch {
1950
1975
  }
1951
1976
  }
1952
1977
  }
1953
1978
 
1954
1979
  // src/core/diff/scope-manager.ts
1955
- import path9 from "path";
1980
+ import path10 from "path";
1956
1981
  import crypto2 from "crypto";
1957
1982
 
1958
1983
  // src/core/platform/fs-watcher.ts
1959
- import fs8 from "fs";
1960
- import path8 from "path";
1984
+ import fs9 from "fs";
1985
+ import path9 from "path";
1961
1986
  import { createRequire } from "module";
1962
1987
  var loadChokidar = () => createRequire(import.meta.url)("chokidar");
1963
1988
  var IGNORED_DIRS = /* @__PURE__ */ new Set([
@@ -1983,7 +2008,7 @@ var IGNORED_DIRS = /* @__PURE__ */ new Set([
1983
2008
  ]);
1984
2009
  function isIgnoredWatchPath(roots, filePath) {
1985
2010
  for (const root of roots) {
1986
- const rel = path8.relative(root, filePath).replace(/\\/g, "/");
2011
+ const rel = path9.relative(root, filePath).replace(/\\/g, "/");
1987
2012
  if (rel === "" || rel.startsWith("../")) continue;
1988
2013
  if (rel.split("/").some((seg) => IGNORED_DIRS.has(seg))) return true;
1989
2014
  }
@@ -2005,8 +2030,8 @@ function createFsWatcher(opts) {
2005
2030
  };
2006
2031
  if (SUPPORTS_RECURSIVE_WATCH) {
2007
2032
  const watchers = opts.roots.map((root) => {
2008
- const w = fs8.watch(root, { recursive: true }, (_event, filename) => {
2009
- if (filename && isIgnoredWatchPath([root], path8.join(root, filename.toString()))) {
2033
+ const w = fs9.watch(root, { recursive: true }, (_event, filename) => {
2034
+ if (filename && isIgnoredWatchPath([root], path9.join(root, filename.toString()))) {
2010
2035
  return;
2011
2036
  }
2012
2037
  fire();
@@ -2057,7 +2082,7 @@ var ScopePathRejectedError = class extends Error {
2057
2082
  }
2058
2083
  };
2059
2084
  function normaliseForCompare(p) {
2060
- return path9.resolve(p).replace(/\\/g, "/").toLowerCase();
2085
+ return path10.resolve(p).replace(/\\/g, "/").toLowerCase();
2061
2086
  }
2062
2087
  function rejectedPaths(normalised) {
2063
2088
  const config = loadConfig();
@@ -2072,7 +2097,7 @@ function rejectedPaths(normalised) {
2072
2097
  });
2073
2098
  }
2074
2099
  function registerScope(paths, label) {
2075
- const normalised = paths.map((p) => path9.resolve(p));
2100
+ const normalised = paths.map((p) => path10.resolve(p));
2076
2101
  const rejected = rejectedPaths(normalised);
2077
2102
  if (rejected.length > 0) throw new ScopePathRejectedError(rejected);
2078
2103
  const hash = hashFor(normalised);
@@ -2086,7 +2111,7 @@ function registerScope(paths, label) {
2086
2111
  const scope = {
2087
2112
  hash,
2088
2113
  paths: normalised,
2089
- label: label ?? path9.basename(normalised[0]),
2114
+ label: label ?? path10.basename(normalised[0]),
2090
2115
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
2091
2116
  ended: false
2092
2117
  };
@@ -2112,17 +2137,17 @@ function reviveScope(hash) {
2112
2137
  return true;
2113
2138
  }
2114
2139
  function scopesToSweep(scopes2, sessionPaths) {
2115
- const owned = new Set(sessionPaths.map((paths) => hashFor(paths.map((p) => path9.resolve(p)))));
2140
+ const owned = new Set(sessionPaths.map((paths) => hashFor(paths.map((p) => path10.resolve(p)))));
2116
2141
  return scopes2.filter((s) => !owned.has(s.hash));
2117
2142
  }
2118
2143
  function sessionOwnsScope(hash, sessionPaths) {
2119
- return sessionPaths.some((paths) => hashFor(paths.map((p) => path9.resolve(p))) === hash);
2144
+ return sessionPaths.some((paths) => hashFor(paths.map((p) => path10.resolve(p))) === hash);
2120
2145
  }
2121
2146
  function findScope(paths) {
2122
2147
  return getScope(scopeHashForPaths(paths));
2123
2148
  }
2124
2149
  function scopeHashForPaths(paths) {
2125
- return hashFor(paths.map((p) => path9.resolve(p)));
2150
+ return hashFor(paths.map((p) => path10.resolve(p)));
2126
2151
  }
2127
2152
  function getScope(hash) {
2128
2153
  return scopes.get(hash)?.scope ?? null;
@@ -2205,7 +2230,7 @@ function clearSessionCheckpoints(s) {
2205
2230
  try {
2206
2231
  const cfg = loadConfig();
2207
2232
  const aliases = sessionAliases(s, cfg);
2208
- const roots = aliases.map((a) => cfg?.repos[a]).filter((r) => !!r && fs9.existsSync(r));
2233
+ const roots = aliases.map((a) => cfg?.repos[a]).filter((r) => !!r && fs10.existsSync(r));
2209
2234
  clearCheckpoints(scopeHashForPaths(s.paths), roots);
2210
2235
  if (s.branch !== void 0) for (const r of roots) dropSessionSaves(r, sessionIdFor({ target: s.target, branch: s.branch }));
2211
2236
  } catch (err) {
@@ -2215,7 +2240,7 @@ function clearSessionCheckpoints(s) {
2215
2240
  function removeSessionFiles(id) {
2216
2241
  for (const p of sessionStatePaths(id)) {
2217
2242
  try {
2218
- fs9.rmSync(p, { force: true, recursive: true });
2243
+ fs10.rmSync(p, { force: true, recursive: true });
2219
2244
  } catch (err) {
2220
2245
  logSwallowed(`purge ${p}`, err);
2221
2246
  }
@@ -2230,7 +2255,7 @@ var recordAgent = (account) => {
2230
2255
  return { ...agent ? { agent } : {}, ...accounts ? { account: account || accounts.defaultName() } : {} };
2231
2256
  };
2232
2257
  function getHistoryPath() {
2233
- return path10.join(getConfigDir(), "history.json");
2258
+ return path11.join(getConfigDir(), "history.json");
2234
2259
  }
2235
2260
  function valid(s) {
2236
2261
  const x = s;
@@ -2255,7 +2280,7 @@ function appendSessionRepo(id, alias, worktree, from, config, imports = false) {
2255
2280
  const s = r ? json.parse(r.data) : null;
2256
2281
  if (!valid(s)) return null;
2257
2282
  const own = sessionRepos(s, config);
2258
- const unknown = own.filter((x) => x.guessed).map((x) => path10.basename(x.path));
2283
+ const unknown = own.filter((x) => x.guessed).map((x) => path11.basename(x.path));
2259
2284
  if (unknown.length) throw new Error(`no repo of its group is in ${unknown.join(", ")}, so its repos can't be recorded`);
2260
2285
  const repos = own.map((x) => x.alias);
2261
2286
  const before = [...s.paths];
@@ -2325,6 +2350,14 @@ function touchSession(target, branch) {
2325
2350
  putRow(d, s);
2326
2351
  });
2327
2352
  }
2353
+ function clearLaunchedUnsafe(target, branch) {
2354
+ tx((d) => {
2355
+ const s = getRow(d, target, branch);
2356
+ if (!s || s.launchedUnsafe === void 0) return;
2357
+ delete s.launchedUnsafe;
2358
+ putRow(d, s);
2359
+ });
2360
+ }
2328
2361
  async function upsertSession(target, isGroup, branch, paths, jiraKey, baseBranch, port, repos, account) {
2329
2362
  tx((d) => {
2330
2363
  const existing = getRow(d, target, branch);
@@ -2397,7 +2430,7 @@ async function upsertSessionWithPort(target, isGroup, branch, paths, config, jir
2397
2430
  }
2398
2431
  const done = tx((d) => {
2399
2432
  if (port !== void 0 && getRow(d, target, branch)?.port === void 0) {
2400
- const taken = rows(d).some((s) => sessionIdFor(s) !== id && s.port === port && s.paths.some((p) => fs10.existsSync(p)));
2433
+ const taken = rows(d).some((s) => sessionIdFor(s) !== id && s.port === port && s.paths.some((p) => fs11.existsSync(p)));
2401
2434
  if (taken) return null;
2402
2435
  }
2403
2436
  return { port: write(d, port) };
@@ -2406,15 +2439,6 @@ async function upsertSessionWithPort(target, isGroup, branch, paths, config, jir
2406
2439
  }
2407
2440
  return tx((d) => ({ port: write(d, void 0) }));
2408
2441
  }
2409
- function recordLaunch(target, branch, opts) {
2410
- tx((d) => {
2411
- const s = getRow(d, target, branch);
2412
- if (!s) return;
2413
- if (opts.unsafe) s.launchedUnsafe = true;
2414
- else delete s.launchedUnsafe;
2415
- putRow(d, s);
2416
- });
2417
- }
2418
2442
  async function setSessionArchived(target, branch, archived) {
2419
2443
  return tx((d) => {
2420
2444
  const s = getRow(d, target, branch);
@@ -2483,7 +2507,7 @@ function pruneStaleEntries(sessions) {
2483
2507
  const kept = [];
2484
2508
  let pruned = 0;
2485
2509
  for (const session of sessions) {
2486
- const anyPathExists = session.paths.some((p) => fs10.existsSync(p));
2510
+ const anyPathExists = session.paths.some((p) => fs11.existsSync(p));
2487
2511
  if (anyPathExists) {
2488
2512
  kept.push(session);
2489
2513
  } else {
@@ -2541,7 +2565,7 @@ async function mergeHydratedSessions(incoming) {
2541
2565
  });
2542
2566
  }
2543
2567
  var samePath = (a, b) => {
2544
- const n = (p) => path10.resolve(p).split(path10.sep).join("/").toLowerCase();
2568
+ const n = (p) => path11.resolve(p).split(path11.sep).join("/").toLowerCase();
2545
2569
  return n(a) === n(b);
2546
2570
  };
2547
2571
  async function forgetOtherBaseCheckoutEntries(target, keepBranch, repoPath) {
@@ -2557,6 +2581,8 @@ export {
2557
2581
  readSessionActivity,
2558
2582
  activeWithin,
2559
2583
  effectiveLastAccessedAt,
2584
+ checkedOutBranch,
2585
+ gitDirs,
2560
2586
  writeTempTree,
2561
2587
  runGitAsync,
2562
2588
  archiveRefFor,
@@ -2568,7 +2594,9 @@ export {
2568
2594
  bestEffortAsync,
2569
2595
  swallow,
2570
2596
  STAGE_WANTS_YOU,
2597
+ stageOfPr,
2571
2598
  prStageOf,
2599
+ stageRepos,
2572
2600
  cleanStageRef,
2573
2601
  stageWaiting,
2574
2602
  createStageTracker,
@@ -2663,9 +2691,9 @@ export {
2663
2691
  findSession,
2664
2692
  setOwnRepos,
2665
2693
  touchSession,
2694
+ clearLaunchedUnsafe,
2666
2695
  upsertSession,
2667
2696
  upsertSessionWithPort,
2668
- recordLaunch,
2669
2697
  setSessionArchived,
2670
2698
  setSessionTitle,
2671
2699
  setSessionAccount,
@@ -2678,4 +2706,4 @@ export {
2678
2706
  mergeHydratedSessions,
2679
2707
  forgetOtherBaseCheckoutEntries
2680
2708
  };
2681
- //# sourceMappingURL=chunk-SBLK524A.js.map
2709
+ //# sourceMappingURL=chunk-27LWL6QE.js.map