@moberg_hr/work-tree 2.22.5 → 2.23.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 (281) hide show
  1. package/dist/{account-J55P3HXH.js → account-FKQZQP3W.js} +20 -17
  2. package/dist/{account-J55P3HXH.js.map → account-FKQZQP3W.js.map} +1 -1
  3. package/dist/{add-repo-ALVEGU25.js → add-repo-VJ2OPGRB.js} +10 -10
  4. package/dist/{answer-CI2SPQQL.js → answer-HQGVCGOF.js} +8 -8
  5. package/dist/{attach-7LBIFBLX.js → attach-M46SZYRL.js} +18 -15
  6. package/dist/{attach-7LBIFBLX.js.map → attach-M46SZYRL.js.map} +1 -1
  7. package/dist/bin.js +3 -3
  8. package/dist/{block-TVIYWRJ5.js → block-B2WNCH52.js} +10 -10
  9. package/dist/{broadcast-GZNMZFOY.js → broadcast-JD755S3I.js} +6 -6
  10. package/dist/{catchup-ZURJI6BF.js → catchup-PTV2VTWT.js} +11 -11
  11. package/dist/{child-K6YYF6MQ.js → child-XFLJLJ6I.js} +8 -8
  12. package/dist/{chunk-RTCTD5PJ.js → chunk-26BZGPFZ.js} +3 -3
  13. package/dist/{chunk-EVTMZ5IH.js → chunk-336YLJ5L.js} +60 -60
  14. package/dist/{chunk-OCUUM755.js → chunk-4FOC35LW.js} +2 -2
  15. package/dist/{chunk-B2WV5RAL.js → chunk-4GIAERRK.js} +5 -5
  16. package/dist/{chunk-BQS73CWR.js → chunk-4LZLVHZE.js} +2 -2
  17. package/dist/{chunk-DCENKA6E.js → chunk-4VTRRZWZ.js} +2 -2
  18. package/dist/{chunk-GNERWNZY.js → chunk-5IZMEAKN.js} +4 -4
  19. package/dist/{chunk-ATQB6PTV.js → chunk-5THKIWZU.js} +3 -3
  20. package/dist/{chunk-NOQA7MJ4.js → chunk-6HVDHGNE.js} +3 -3
  21. package/dist/{chunk-NYGKSOQ4.js → chunk-6ISLCEBR.js} +6 -6
  22. package/dist/chunk-6KMG4WNW.js +87 -0
  23. package/dist/chunk-6KMG4WNW.js.map +1 -0
  24. package/dist/{chunk-F4UIKOU6.js → chunk-6RFDASKQ.js} +4 -4
  25. package/dist/{chunk-5P27YL64.js → chunk-7I2UHJJF.js} +8 -8
  26. package/dist/{chunk-FV7BSQPQ.js → chunk-AEH72XTU.js} +2 -2
  27. package/dist/{chunk-3ZPVKUYD.js → chunk-ASGJ3MCL.js} +6 -1
  28. package/dist/chunk-ASGJ3MCL.js.map +1 -0
  29. package/dist/{chunk-DF4GOVDE.js → chunk-AUIHERJ7.js} +2 -2
  30. package/dist/{chunk-6Y3VLCKA.js → chunk-AZF7HIDT.js} +3 -3
  31. package/dist/chunk-BCYBF7KJ.js +207 -0
  32. package/dist/chunk-BCYBF7KJ.js.map +1 -0
  33. package/dist/{chunk-KQMHGEI2.js → chunk-BS6GTKF2.js} +51 -13
  34. package/dist/chunk-BS6GTKF2.js.map +1 -0
  35. package/dist/{chunk-AIYZJ7XD.js → chunk-BTGPUOF7.js} +5 -5
  36. package/dist/chunk-CJFAJV2K.js +9 -0
  37. package/dist/{chunk-VQDE3DRG.js → chunk-DHZ5DF6Y.js} +6 -2
  38. package/dist/{chunk-VQDE3DRG.js.map → chunk-DHZ5DF6Y.js.map} +1 -1
  39. package/dist/{chunk-LV5JRLBM.js → chunk-DP6YMZUL.js} +2 -2
  40. package/dist/{chunk-Z4FWXDJG.js → chunk-DSDPJATB.js} +3 -3
  41. package/dist/{chunk-RLPC3YKZ.js → chunk-EE744F4B.js} +2 -2
  42. package/dist/{chunk-QOLHDDM2.js → chunk-EEMPMVCP.js} +4 -4
  43. package/dist/{chunk-SDYY5MHW.js → chunk-EJZMCAM2.js} +7 -7
  44. package/dist/{chunk-EYJ42LDG.js → chunk-EOXYDFBB.js} +4 -4
  45. package/dist/{chunk-DC73NF67.js → chunk-ETO7CUIS.js} +3 -3
  46. package/dist/{chunk-ZO7TF5OL.js → chunk-ETRKZHM5.js} +4 -4
  47. package/dist/{chunk-HI674QZF.js → chunk-EVGYDJI2.js} +2 -2
  48. package/dist/{chunk-PUJSLL6R.js → chunk-FEI73IPX.js} +4 -4
  49. package/dist/{chunk-KU3TQAA7.js → chunk-FRFS6JC4.js} +8 -10
  50. package/dist/{chunk-KU3TQAA7.js.map → chunk-FRFS6JC4.js.map} +1 -1
  51. package/dist/{chunk-4QMWNAEJ.js → chunk-HCYES6U7.js} +2 -2
  52. package/dist/{chunk-WRDULHAN.js → chunk-HTV7366A.js} +117 -16
  53. package/dist/chunk-HTV7366A.js.map +1 -0
  54. package/dist/{chunk-5FIUVBUC.js → chunk-JIMD77FI.js} +7 -7
  55. package/dist/{chunk-TOMDOA4P.js → chunk-K76NOSEX.js} +2 -2
  56. package/dist/{chunk-FGBLFF4O.js → chunk-KUYEYPO4.js} +2 -2
  57. package/dist/{chunk-Z4P23XG3.js → chunk-L5U47Q63.js} +5 -5
  58. package/dist/{chunk-YO3BNAAK.js → chunk-LZJ5VDUD.js} +26 -4
  59. package/dist/chunk-LZJ5VDUD.js.map +1 -0
  60. package/dist/{chunk-USENBMUV.js → chunk-NS7WH53I.js} +1 -1
  61. package/dist/chunk-NS7WH53I.js.map +1 -0
  62. package/dist/{chunk-EA4C6TVY.js → chunk-O7BXNXU2.js} +3 -3
  63. package/dist/{chunk-ZTWZS5RK.js → chunk-OETBYJFV.js} +3 -3
  64. package/dist/chunk-PCJVBGRS.js +64 -0
  65. package/dist/chunk-PCJVBGRS.js.map +1 -0
  66. package/dist/{chunk-RNPNBGVX.js → chunk-QPQV3IU2.js} +3 -5
  67. package/dist/{chunk-RNPNBGVX.js.map → chunk-QPQV3IU2.js.map} +1 -1
  68. package/dist/chunk-R7IENU76.js +79 -0
  69. package/dist/chunk-R7IENU76.js.map +1 -0
  70. package/dist/{chunk-23QLXVH6.js → chunk-R7JIKEIL.js} +12 -14
  71. package/dist/{chunk-23QLXVH6.js.map → chunk-R7JIKEIL.js.map} +1 -1
  72. package/dist/{chunk-CA56ETYX.js → chunk-TVIM5VV5.js} +5 -5
  73. package/dist/{chunk-PTAG6WIE.js → chunk-UGDTSOPX.js} +17 -3
  74. package/dist/chunk-UGDTSOPX.js.map +1 -0
  75. package/dist/{chunk-D2SVBU7R.js → chunk-ULI54QYZ.js} +2 -2
  76. package/dist/{chunk-7Q5PBXF6.js → chunk-V56WW2LA.js} +51 -10
  77. package/dist/chunk-V56WW2LA.js.map +1 -0
  78. package/dist/{chunk-G4T2HGLJ.js → chunk-V6FD76AQ.js} +4 -4
  79. package/dist/{chunk-QNOJOZYK.js → chunk-VVJY6IKW.js} +2 -2
  80. package/dist/{chunk-Q2B3NUSM.js → chunk-WLYWO6JH.js} +4 -4
  81. package/dist/{chunk-IU6LA6EB.js → chunk-WYCGV5Z7.js} +4 -4
  82. package/dist/{chunk-AITL3JYB.js → chunk-XJQ7XJJC.js} +398 -68
  83. package/dist/chunk-XJQ7XJJC.js.map +1 -0
  84. package/dist/{chunk-CMRTNTMU.js → chunk-Z3JSYKOS.js} +6 -6
  85. package/dist/{chunk-UAF2YFLZ.js → chunk-ZBVM57LO.js} +6 -6
  86. package/dist/{chunk-GQ5WECPJ.js → chunk-ZDTFAMD2.js} +2 -2
  87. package/dist/{chunk-EEHPZMS3.js → chunk-ZIZ5ZTEN.js} +2 -2
  88. package/dist/{cleanup-G4WQACD6.js → cleanup-RVQ2PPCC.js} +30 -29
  89. package/dist/{cleanup-G4WQACD6.js.map → cleanup-RVQ2PPCC.js.map} +1 -1
  90. package/dist/{cli-OPORB5PF.js → cli-RQ7LQXRX.js} +4 -4
  91. package/dist/{color-C223W3Z6.js → color-37SJ7NPH.js} +9 -9
  92. package/dist/{config-KQYXQCQA.js → config-QMNCPBT7.js} +8 -8
  93. package/dist/{coordinate-4E5GIMC6.js → coordinate-22N2UBE4.js} +9 -9
  94. package/dist/{diff-HEOLTXO2.js → diff-VSM47DNB.js} +9 -10
  95. package/dist/{diff-HEOLTXO2.js.map → diff-VSM47DNB.js.map} +1 -1
  96. package/dist/{digest-GYF4YLUH.js → digest-H5YMEW54.js} +8 -8
  97. package/dist/{fork-B35ONP3Z.js → fork-Q2AEFG5M.js} +27 -24
  98. package/dist/{fork-B35ONP3Z.js.map → fork-Q2AEFG5M.js.map} +1 -1
  99. package/dist/{history-25DNQKKC.js → history-E34WUNZO.js} +6 -6
  100. package/dist/{hook-B4JO2X57.js → hook-IMBHXXH2.js} +17 -17
  101. package/dist/{hydrate-IJEKNZIP.js → hydrate-IPNTSEDA.js} +6 -6
  102. package/dist/{init-UJVOUDJI.js → init-V7Z3RVHQ.js} +10 -10
  103. package/dist/{install-skills-FV2L5QHE.js → install-skills-PP7WYASM.js} +6 -7
  104. package/dist/install-skills-bin.js +5 -6
  105. package/dist/install-skills-bin.js.map +1 -1
  106. package/dist/{keep-PKXGFZO2.js → keep-JZBFDYC5.js} +8 -8
  107. package/dist/{list-VYQ3QE2H.js → list-D6GWBNUI.js} +6 -6
  108. package/dist/{move-IAZY23ZX.js → move-T6IVLRRI.js} +13 -13
  109. package/dist/{note-6HQUKUYY.js → note-L4YF6DYN.js} +8 -8
  110. package/dist/{overlaps-CGP3RJOW.js → overlaps-33U2T7IV.js} +11 -11
  111. package/dist/{pin-PAWGQ4Q2.js → pin-BVNCXHQI.js} +9 -9
  112. package/dist/{pr-OJOGE3A3.js → pr-DBTWVMRE.js} +19 -18
  113. package/dist/{pr-OJOGE3A3.js.map → pr-DBTWVMRE.js.map} +1 -1
  114. package/dist/{prune-42MS36OR.js → prune-HUYBTMZM.js} +27 -27
  115. package/dist/pty-host-IJFDGRA4.js +2653 -0
  116. package/dist/pty-host-IJFDGRA4.js.map +1 -0
  117. package/dist/{read-ATNCW4KH.js → read-4OUYRSKS.js} +8 -8
  118. package/dist/{recent-MTBFQT36.js → recent-PB233FPD.js} +14 -13
  119. package/dist/{recent-MTBFQT36.js.map → recent-PB233FPD.js.map} +1 -1
  120. package/dist/{remove-GLDJOKUI.js → remove-YCQLIDTS.js} +28 -28
  121. package/dist/{report-AK7Z2Y4S.js → report-XMESBL7C.js} +8 -8
  122. package/dist/{restart-DEPDGEZB.js → restart-NQ5DJ3TN.js} +8 -8
  123. package/dist/{resume-C2QPKKFN.js → resume-KL5JCKVD.js} +14 -13
  124. package/dist/{resume-C2QPKKFN.js.map → resume-KL5JCKVD.js.map} +1 -1
  125. package/dist/{review-RYAGH3PY.js → review-MIKB545E.js} +7 -7
  126. package/dist/{review-now-K4UWD7A5.js → review-now-VF6X6M64.js} +2 -2
  127. package/dist/{run-WNP2SMNW.js → run-Y255ESUN.js} +6 -6
  128. package/dist/{screen-P746M4F2.js → screen-AZFHPOCB.js} +8 -8
  129. package/dist/{search-XQ2WMK5X.js → search-DAFKJTLY.js} +6 -6
  130. package/dist/{section-Q7TPOV7U.js → section-WCC35C44.js} +9 -9
  131. package/dist/{send-EGG23J2B.js → send-MYEMZU7Z.js} +9 -9
  132. package/dist/{sessions-2NNCWIND.js → sessions-P3D46QLP.js} +24 -22
  133. package/dist/{sessions-2NNCWIND.js.map → sessions-P3D46QLP.js.map} +1 -1
  134. package/dist/{show-KSMC7AJL.js → show-JOO5OT2F.js} +7 -7
  135. package/dist/{snooze-4LVYUQEX.js → snooze-7KLABMIG.js} +8 -8
  136. package/dist/{start-YKLLXW3L.js → start-PGVZZJQT.js} +8 -8
  137. package/dist/{state-GM22X3RN.js → state-XHTOESKK.js} +3 -3
  138. package/dist/state-XHTOESKK.js.map +1 -0
  139. package/dist/{status-4HGP4ZEF.js → status-CXIRNRMP.js} +9 -9
  140. package/dist/{statusline-QJ6CJGHB.js → statusline-HPH2ORNT.js} +3 -3
  141. package/dist/{stop-YBQL6NFF.js → stop-IJNUSRIG.js} +8 -8
  142. package/dist/{sync-DUXN2MFJ.js → sync-3HMCC55V.js} +27 -27
  143. package/dist/{time-Q42HPZZ3.js → time-DUDNSHM3.js} +9 -9
  144. package/dist/{time-actions-IXZRVKKQ.js → time-actions-M4QTTH4M.js} +3 -3
  145. package/dist/{timesheet-YJ6O3GUU.js → timesheet-BMKDX5KZ.js} +12 -12
  146. package/dist/{todo-ZBFRL2A5.js → todo-QMXJ5R3E.js} +2 -2
  147. package/dist/{tree-H2UYE6LH.js → tree-TL4GISI5.js} +28 -26
  148. package/dist/{tree-H2UYE6LH.js.map → tree-TL4GISI5.js.map} +1 -1
  149. package/dist/{update-RGNKMRUL.js → update-3TODL7J3.js} +13 -13
  150. package/dist/{usage-YZRZKJ3H.js → usage-YFTN2IS7.js} +8 -8
  151. package/dist/{usage-ask-BYPNLA2B.js → usage-ask-EZR3W3UW.js} +3 -3
  152. package/dist/{version-4IOMOIDP.js → version-LNHKXZBP.js} +4 -4
  153. package/dist/{wait-YOHPFWVJ.js → wait-B37BTCVG.js} +9 -9
  154. package/dist/wd-bin.js +3 -3
  155. package/dist/web/assets/{PtyView-CYAhB_pW.js → PtyView-C8yW4SST.js} +26 -28
  156. package/dist/web/assets/PtyView-C8yW4SST.js.map +1 -0
  157. package/dist/web/assets/index-DDZCgbD-.js +129 -0
  158. package/dist/web/assets/index-DDZCgbD-.js.map +1 -0
  159. package/dist/web/assets/index-yBTfBzDm.css +1 -0
  160. package/dist/web/index.html +2 -2
  161. package/dist/{web-Q672AIMZ.js → web-JAAXINIU.js} +468 -492
  162. package/dist/web-JAAXINIU.js.map +1 -0
  163. package/npm-shrinkwrap.json +3 -4
  164. package/package.json +2 -2
  165. package/dist/chunk-3ZPVKUYD.js.map +0 -1
  166. package/dist/chunk-7Q5PBXF6.js.map +0 -1
  167. package/dist/chunk-7ZOY2QQN.js +0 -43
  168. package/dist/chunk-7ZOY2QQN.js.map +0 -1
  169. package/dist/chunk-AITL3JYB.js.map +0 -1
  170. package/dist/chunk-EXZ4A6VJ.js +0 -9
  171. package/dist/chunk-ICEP4WAK.js +0 -256
  172. package/dist/chunk-ICEP4WAK.js.map +0 -1
  173. package/dist/chunk-KQMHGEI2.js.map +0 -1
  174. package/dist/chunk-LNHSBM4L.js +0 -26
  175. package/dist/chunk-LNHSBM4L.js.map +0 -1
  176. package/dist/chunk-PTAG6WIE.js.map +0 -1
  177. package/dist/chunk-USENBMUV.js.map +0 -1
  178. package/dist/chunk-WRDULHAN.js.map +0 -1
  179. package/dist/chunk-YO3BNAAK.js.map +0 -1
  180. package/dist/pty-host-EAWW62U4.js +0 -1235
  181. package/dist/pty-host-EAWW62U4.js.map +0 -1
  182. package/dist/state-GM22X3RN.js.map +0 -1
  183. package/dist/web/assets/PtyView-CYAhB_pW.js.map +0 -1
  184. package/dist/web/assets/index-Ca7KbCED.css +0 -1
  185. package/dist/web/assets/index-iBmmgBZv.js +0 -129
  186. package/dist/web/assets/index-iBmmgBZv.js.map +0 -1
  187. package/dist/web-Q672AIMZ.js.map +0 -1
  188. /package/dist/{add-repo-ALVEGU25.js.map → add-repo-VJ2OPGRB.js.map} +0 -0
  189. /package/dist/{answer-CI2SPQQL.js.map → answer-HQGVCGOF.js.map} +0 -0
  190. /package/dist/{block-TVIYWRJ5.js.map → block-B2WNCH52.js.map} +0 -0
  191. /package/dist/{broadcast-GZNMZFOY.js.map → broadcast-JD755S3I.js.map} +0 -0
  192. /package/dist/{catchup-ZURJI6BF.js.map → catchup-PTV2VTWT.js.map} +0 -0
  193. /package/dist/{child-K6YYF6MQ.js.map → child-XFLJLJ6I.js.map} +0 -0
  194. /package/dist/{chunk-RTCTD5PJ.js.map → chunk-26BZGPFZ.js.map} +0 -0
  195. /package/dist/{chunk-EVTMZ5IH.js.map → chunk-336YLJ5L.js.map} +0 -0
  196. /package/dist/{chunk-OCUUM755.js.map → chunk-4FOC35LW.js.map} +0 -0
  197. /package/dist/{chunk-B2WV5RAL.js.map → chunk-4GIAERRK.js.map} +0 -0
  198. /package/dist/{chunk-BQS73CWR.js.map → chunk-4LZLVHZE.js.map} +0 -0
  199. /package/dist/{chunk-DCENKA6E.js.map → chunk-4VTRRZWZ.js.map} +0 -0
  200. /package/dist/{chunk-GNERWNZY.js.map → chunk-5IZMEAKN.js.map} +0 -0
  201. /package/dist/{chunk-ATQB6PTV.js.map → chunk-5THKIWZU.js.map} +0 -0
  202. /package/dist/{chunk-NOQA7MJ4.js.map → chunk-6HVDHGNE.js.map} +0 -0
  203. /package/dist/{chunk-NYGKSOQ4.js.map → chunk-6ISLCEBR.js.map} +0 -0
  204. /package/dist/{chunk-F4UIKOU6.js.map → chunk-6RFDASKQ.js.map} +0 -0
  205. /package/dist/{chunk-5P27YL64.js.map → chunk-7I2UHJJF.js.map} +0 -0
  206. /package/dist/{chunk-FV7BSQPQ.js.map → chunk-AEH72XTU.js.map} +0 -0
  207. /package/dist/{chunk-DF4GOVDE.js.map → chunk-AUIHERJ7.js.map} +0 -0
  208. /package/dist/{chunk-6Y3VLCKA.js.map → chunk-AZF7HIDT.js.map} +0 -0
  209. /package/dist/{chunk-AIYZJ7XD.js.map → chunk-BTGPUOF7.js.map} +0 -0
  210. /package/dist/{chunk-EXZ4A6VJ.js.map → chunk-CJFAJV2K.js.map} +0 -0
  211. /package/dist/{chunk-LV5JRLBM.js.map → chunk-DP6YMZUL.js.map} +0 -0
  212. /package/dist/{chunk-Z4FWXDJG.js.map → chunk-DSDPJATB.js.map} +0 -0
  213. /package/dist/{chunk-RLPC3YKZ.js.map → chunk-EE744F4B.js.map} +0 -0
  214. /package/dist/{chunk-QOLHDDM2.js.map → chunk-EEMPMVCP.js.map} +0 -0
  215. /package/dist/{chunk-SDYY5MHW.js.map → chunk-EJZMCAM2.js.map} +0 -0
  216. /package/dist/{chunk-EYJ42LDG.js.map → chunk-EOXYDFBB.js.map} +0 -0
  217. /package/dist/{chunk-DC73NF67.js.map → chunk-ETO7CUIS.js.map} +0 -0
  218. /package/dist/{chunk-ZO7TF5OL.js.map → chunk-ETRKZHM5.js.map} +0 -0
  219. /package/dist/{chunk-HI674QZF.js.map → chunk-EVGYDJI2.js.map} +0 -0
  220. /package/dist/{chunk-PUJSLL6R.js.map → chunk-FEI73IPX.js.map} +0 -0
  221. /package/dist/{chunk-4QMWNAEJ.js.map → chunk-HCYES6U7.js.map} +0 -0
  222. /package/dist/{chunk-5FIUVBUC.js.map → chunk-JIMD77FI.js.map} +0 -0
  223. /package/dist/{chunk-TOMDOA4P.js.map → chunk-K76NOSEX.js.map} +0 -0
  224. /package/dist/{chunk-FGBLFF4O.js.map → chunk-KUYEYPO4.js.map} +0 -0
  225. /package/dist/{chunk-Z4P23XG3.js.map → chunk-L5U47Q63.js.map} +0 -0
  226. /package/dist/{chunk-EA4C6TVY.js.map → chunk-O7BXNXU2.js.map} +0 -0
  227. /package/dist/{chunk-ZTWZS5RK.js.map → chunk-OETBYJFV.js.map} +0 -0
  228. /package/dist/{chunk-CA56ETYX.js.map → chunk-TVIM5VV5.js.map} +0 -0
  229. /package/dist/{chunk-D2SVBU7R.js.map → chunk-ULI54QYZ.js.map} +0 -0
  230. /package/dist/{chunk-G4T2HGLJ.js.map → chunk-V6FD76AQ.js.map} +0 -0
  231. /package/dist/{chunk-QNOJOZYK.js.map → chunk-VVJY6IKW.js.map} +0 -0
  232. /package/dist/{chunk-Q2B3NUSM.js.map → chunk-WLYWO6JH.js.map} +0 -0
  233. /package/dist/{chunk-IU6LA6EB.js.map → chunk-WYCGV5Z7.js.map} +0 -0
  234. /package/dist/{chunk-CMRTNTMU.js.map → chunk-Z3JSYKOS.js.map} +0 -0
  235. /package/dist/{chunk-UAF2YFLZ.js.map → chunk-ZBVM57LO.js.map} +0 -0
  236. /package/dist/{chunk-GQ5WECPJ.js.map → chunk-ZDTFAMD2.js.map} +0 -0
  237. /package/dist/{chunk-EEHPZMS3.js.map → chunk-ZIZ5ZTEN.js.map} +0 -0
  238. /package/dist/{cli-OPORB5PF.js.map → cli-RQ7LQXRX.js.map} +0 -0
  239. /package/dist/{color-C223W3Z6.js.map → color-37SJ7NPH.js.map} +0 -0
  240. /package/dist/{config-KQYXQCQA.js.map → config-QMNCPBT7.js.map} +0 -0
  241. /package/dist/{coordinate-4E5GIMC6.js.map → coordinate-22N2UBE4.js.map} +0 -0
  242. /package/dist/{digest-GYF4YLUH.js.map → digest-H5YMEW54.js.map} +0 -0
  243. /package/dist/{history-25DNQKKC.js.map → history-E34WUNZO.js.map} +0 -0
  244. /package/dist/{hook-B4JO2X57.js.map → hook-IMBHXXH2.js.map} +0 -0
  245. /package/dist/{hydrate-IJEKNZIP.js.map → hydrate-IPNTSEDA.js.map} +0 -0
  246. /package/dist/{init-UJVOUDJI.js.map → init-V7Z3RVHQ.js.map} +0 -0
  247. /package/dist/{install-skills-FV2L5QHE.js.map → install-skills-PP7WYASM.js.map} +0 -0
  248. /package/dist/{keep-PKXGFZO2.js.map → keep-JZBFDYC5.js.map} +0 -0
  249. /package/dist/{list-VYQ3QE2H.js.map → list-D6GWBNUI.js.map} +0 -0
  250. /package/dist/{move-IAZY23ZX.js.map → move-T6IVLRRI.js.map} +0 -0
  251. /package/dist/{note-6HQUKUYY.js.map → note-L4YF6DYN.js.map} +0 -0
  252. /package/dist/{overlaps-CGP3RJOW.js.map → overlaps-33U2T7IV.js.map} +0 -0
  253. /package/dist/{pin-PAWGQ4Q2.js.map → pin-BVNCXHQI.js.map} +0 -0
  254. /package/dist/{prune-42MS36OR.js.map → prune-HUYBTMZM.js.map} +0 -0
  255. /package/dist/{read-ATNCW4KH.js.map → read-4OUYRSKS.js.map} +0 -0
  256. /package/dist/{remove-GLDJOKUI.js.map → remove-YCQLIDTS.js.map} +0 -0
  257. /package/dist/{report-AK7Z2Y4S.js.map → report-XMESBL7C.js.map} +0 -0
  258. /package/dist/{restart-DEPDGEZB.js.map → restart-NQ5DJ3TN.js.map} +0 -0
  259. /package/dist/{review-RYAGH3PY.js.map → review-MIKB545E.js.map} +0 -0
  260. /package/dist/{review-now-K4UWD7A5.js.map → review-now-VF6X6M64.js.map} +0 -0
  261. /package/dist/{run-WNP2SMNW.js.map → run-Y255ESUN.js.map} +0 -0
  262. /package/dist/{screen-P746M4F2.js.map → screen-AZFHPOCB.js.map} +0 -0
  263. /package/dist/{search-XQ2WMK5X.js.map → search-DAFKJTLY.js.map} +0 -0
  264. /package/dist/{section-Q7TPOV7U.js.map → section-WCC35C44.js.map} +0 -0
  265. /package/dist/{send-EGG23J2B.js.map → send-MYEMZU7Z.js.map} +0 -0
  266. /package/dist/{show-KSMC7AJL.js.map → show-JOO5OT2F.js.map} +0 -0
  267. /package/dist/{snooze-4LVYUQEX.js.map → snooze-7KLABMIG.js.map} +0 -0
  268. /package/dist/{start-YKLLXW3L.js.map → start-PGVZZJQT.js.map} +0 -0
  269. /package/dist/{status-4HGP4ZEF.js.map → status-CXIRNRMP.js.map} +0 -0
  270. /package/dist/{statusline-QJ6CJGHB.js.map → statusline-HPH2ORNT.js.map} +0 -0
  271. /package/dist/{stop-YBQL6NFF.js.map → stop-IJNUSRIG.js.map} +0 -0
  272. /package/dist/{sync-DUXN2MFJ.js.map → sync-3HMCC55V.js.map} +0 -0
  273. /package/dist/{time-Q42HPZZ3.js.map → time-DUDNSHM3.js.map} +0 -0
  274. /package/dist/{time-actions-IXZRVKKQ.js.map → time-actions-M4QTTH4M.js.map} +0 -0
  275. /package/dist/{timesheet-YJ6O3GUU.js.map → timesheet-BMKDX5KZ.js.map} +0 -0
  276. /package/dist/{todo-ZBFRL2A5.js.map → todo-QMXJ5R3E.js.map} +0 -0
  277. /package/dist/{update-RGNKMRUL.js.map → update-3TODL7J3.js.map} +0 -0
  278. /package/dist/{usage-YZRZKJ3H.js.map → usage-YFTN2IS7.js.map} +0 -0
  279. /package/dist/{usage-ask-BYPNLA2B.js.map → usage-ask-EZR3W3UW.js.map} +0 -0
  280. /package/dist/{version-4IOMOIDP.js.map → version-LNHKXZBP.js.map} +0 -0
  281. /package/dist/{wait-YOHPFWVJ.js.map → wait-B37BTCVG.js.map} +0 -0
@@ -14,21 +14,24 @@ import {
14
14
  agentOf,
15
15
  agentToRecord,
16
16
  logSwallowed,
17
+ packageRoot,
17
18
  readJsonlTail
18
- } from "./chunk-KQMHGEI2.js";
19
+ } from "./chunk-BS6GTKF2.js";
19
20
  import {
20
21
  workingBranch
21
22
  } from "./chunk-Z6ACV5ZQ.js";
22
23
  import {
23
24
  loadConfig
24
- } from "./chunk-3ZPVKUYD.js";
25
+ } from "./chunk-ASGJ3MCL.js";
25
26
  import {
26
27
  bootTime,
27
28
  isPidAlive,
28
29
  killTree,
30
+ killTreeAsync,
29
31
  processName
30
32
  } from "./chunk-VHENFC2S.js";
31
33
  import {
34
+ programPath,
32
35
  shellEnv,
33
36
  spawn_default
34
37
  } from "./chunk-QOSAWNOU.js";
@@ -149,8 +152,8 @@ async function listIssues(sources, cfg) {
149
152
  }
150
153
 
151
154
  // src/core/sessions/history.ts
152
- import fs10 from "fs";
153
- import path10 from "path";
155
+ import fs11 from "fs";
156
+ import path12 from "path";
154
157
 
155
158
  // src/core/sessions/session-activity.ts
156
159
  var ACTIVE_MS = 3e4;
@@ -244,7 +247,7 @@ async function allocateFreePort(seedKey, config, sessions, probe = isPortFree) {
244
247
  }
245
248
 
246
249
  // src/core/sessions/session-store.ts
247
- import fs9 from "fs";
250
+ import fs10 from "fs";
248
251
 
249
252
  // src/core/api-types.ts
250
253
  var ARCHIVED_BY = ["you", "shipped", "pr-merged", "cleanup"];
@@ -360,14 +363,14 @@ var repoQueues = /* @__PURE__ */ new Map();
360
363
  function inRepoQueue(repoRoot, fn) {
361
364
  const key = path.resolve(repoRoot).toLowerCase();
362
365
  const prev = repoQueues.get(key) ?? Promise.resolve();
363
- const run = prev.then(fn, fn);
364
- const tail = run.catch(() => {
366
+ const run3 = prev.then(fn, fn);
367
+ const tail = run3.catch(() => {
365
368
  });
366
369
  repoQueues.set(key, tail);
367
370
  void tail.then(() => {
368
371
  if (repoQueues.get(key) === tail) repoQueues.delete(key);
369
372
  });
370
- return run;
373
+ return run3;
371
374
  }
372
375
 
373
376
  // src/core/archive/archive-uncommitted.ts
@@ -1972,19 +1975,321 @@ async function searchConversations(query, opts) {
1972
1975
  }
1973
1976
 
1974
1977
  // src/core/worktree/dev-server.ts
1975
- import fs6 from "fs";
1978
+ import fs7 from "fs";
1976
1979
  import net2 from "net";
1980
+ import path8 from "path";
1981
+ import { spawn, spawnSync } from "child_process";
1982
+
1983
+ // src/core/platform/process-usage.ts
1984
+ import { execFile as execFile2 } from "child_process";
1977
1985
  import path6 from "path";
1978
- import { spawn } from "child_process";
1979
1986
 
1980
- // src/core/sessions/session-repos.ts
1987
+ // src/core/platform/running-from.ts
1988
+ import fs6 from "fs";
1981
1989
  import path5 from "path";
1990
+ import { execFile } from "child_process";
1991
+ var INTERPRETERS = /* @__PURE__ */ new Set(["node", "bun", "deno", "python", "python3", "pythonw", "py", "dotnet", "java", "javaw", "ruby", "php"]);
1992
+ var win = process.platform === "win32";
1993
+ function normDir(p, windows = win) {
1994
+ if (windows) return path5.win32.normalize(p.replace(/\//g, "\\")).replace(/\\+$/, "").toLowerCase();
1995
+ return path5.posix.normalize(p).replace(/\/+$/, "");
1996
+ }
1997
+ function under(p, dir, windows) {
1998
+ const a = normDir(p, windows);
1999
+ const sep = windows ? "\\" : "/";
2000
+ return a === dir || a.startsWith(dir + sep);
2001
+ }
2002
+ function commandWords(command) {
2003
+ const out = [];
2004
+ for (const m of command.matchAll(/"([^"]*)"|(\S+)/g)) out.push(m[1] ?? m[2]);
2005
+ return out;
2006
+ }
2007
+ var bare = (file) => file.split(/[\\/]/).pop().toLowerCase().replace(/\.exe$/, "");
2008
+ function runsFrom(p, dirs, windows = win) {
2009
+ const words = commandWords(p.command);
2010
+ const exe = p.exe ?? words[0] ?? "";
2011
+ if (exe && dirs.some((d) => under(exe, d, windows))) return true;
2012
+ if (!INTERPRETERS.has(bare(exe || p.name).replace(/[\d.]+$/, ""))) return false;
2013
+ const args = words.slice(1);
2014
+ const first = args.find((w) => !w.startsWith("-"));
2015
+ const relative = (w) => !(windows ? path5.win32.isAbsolute(w) : w.startsWith("/"));
2016
+ const scripts = [first, args.find((w) => SCRIPT_FILE.test(w))].filter((w) => !!w && (/[\\/]/.test(w) || !!p.cwd && SCRIPT_FILE.test(w))).map((w) => relative(w) && p.cwd ? windows ? path5.win32.resolve(p.cwd, w) : path5.posix.resolve(p.cwd, w) : w);
2017
+ return scripts.some((w) => dirs.some((d) => under(w, d, windows)));
2018
+ }
2019
+ var SCRIPT_FILE = /\.(c|m)?(js|ts)$|\.(py|dll|jar|rb|php)$/i;
2020
+ function isPtyHelper(p) {
2021
+ return /[\\/]node-pty[\\/]/i.test(`${p.exe ?? ""} ${p.command}`) || /^(conpty|openconsole|winpty-agent)(\.exe)?$/i.test(p.name);
2022
+ }
2023
+ function isEditorHelper(p) {
2024
+ const words = commandWords(p.command);
2025
+ if (words.some((w) => /^--(useNodeIpc|node-ipc|clientProcessId(=.*)?|cancellationPipeName)$/i.test(w))) return true;
2026
+ return words.slice(1).some((w) => /[\\/](tsserver|typingsInstaller)\.js$|language-?server|langserver/i.test(w));
2027
+ }
2028
+ function workBinPaths() {
2029
+ const root = packageRoot();
2030
+ return root ? [normDir(path5.join(root, "dist", "bin.js"))] : [];
2031
+ }
2032
+ function isWorkProcess(p, bins = workBinPaths(), windows = win) {
2033
+ if (bins.length === 0) return false;
2034
+ const raw = commandWords(p.command);
2035
+ return raw.some((w, i) => /^(pty-host|web|hook)$/.test(raw[i + 1] ?? "") && bins.includes(normDir(w, windows)));
2036
+ }
2037
+ function mentions(p, dirs, windows = win) {
2038
+ const norm = (s) => windows ? s.replace(/\//g, "\\").toLowerCase() : s;
2039
+ const text = `${norm(p.exe ?? "")} ${norm(p.command)}`;
2040
+ return dirs.some((d) => {
2041
+ for (let at = text.indexOf(d); at >= 0; at = text.indexOf(d, at + 1)) {
2042
+ const next = text[at + d.length];
2043
+ if (next === void 0 || !/[\w.-]/.test(next)) return true;
2044
+ }
2045
+ return false;
2046
+ });
2047
+ }
2048
+ function holdersOf(procs, dirs, self = process.pid, windows = win, spare = /* @__PURE__ */ new Set(), bins = workBinPaths()) {
2049
+ const norm = dirs.map((d) => normDir(d, windows));
2050
+ const byPid = new Map(procs.map((p) => [p.pid, p]));
2051
+ const mine = /* @__PURE__ */ new Set();
2052
+ for (let pid = self; pid && !mine.has(pid); pid = byPid.get(pid)?.ppid) mine.add(pid);
2053
+ const ownWork = (q) => spare.has(q.pid) || isWorkProcess(q, bins, windows);
2054
+ const spared = (p) => {
2055
+ if (ownWork(p)) return true;
2056
+ if (!isPtyHelper(p)) return false;
2057
+ const seen = /* @__PURE__ */ new Set();
2058
+ for (let q = byPid.get(p.ppid); q && !seen.has(q.pid); q = byPid.get(q.ppid)) {
2059
+ if (ownWork(q)) return true;
2060
+ seen.add(q.pid);
2061
+ }
2062
+ return false;
2063
+ };
2064
+ const candidates = procs.filter((p) => !mine.has(p.pid) && !spared(p));
2065
+ const running = candidates.filter((p) => runsFrom(p, norm, windows) && !isEditorHelper(p));
2066
+ const runningPids = new Set(running.map((p) => p.pid));
2067
+ return {
2068
+ stoppable: running.filter((p) => !runningPids.has(p.ppid)),
2069
+ running,
2070
+ others: candidates.filter((p) => !runningPids.has(p.pid) && mentions(p, norm, windows))
2071
+ };
2072
+ }
2073
+ function workPids(dir = getConfigDir()) {
2074
+ const out = /* @__PURE__ */ new Set();
2075
+ for (const file of ["pty-host.json", "web.pid", "web-dev.pid"]) {
2076
+ try {
2077
+ const raw = fs6.readFileSync(path5.join(dir, file), "utf-8").trim();
2078
+ const pid = raw.startsWith("{") ? JSON.parse(raw).pid : Number(raw.split(/\s/)[0]);
2079
+ if (typeof pid === "number" && Number.isInteger(pid) && pid > 0) out.add(pid);
2080
+ } catch {
2081
+ }
2082
+ }
2083
+ return out;
2084
+ }
2085
+ function describeProcess(p, dirs, windows = win) {
2086
+ const words = commandWords(p.command).slice(1);
2087
+ let args = words.join(" ");
2088
+ for (const d of dirs) {
2089
+ const fold = (s) => windows ? [...s].map((c) => {
2090
+ const l = (c === "/" ? "\\" : c).toLowerCase();
2091
+ return l.length === c.length ? l : c;
2092
+ }).join("") : s;
2093
+ for (let at = fold(args).indexOf(d); at >= 0; at = fold(args).indexOf(d)) args = args.slice(0, at) + "\u2026" + args.slice(at + d.length);
2094
+ }
2095
+ if (args.length > 90) args = `${args.slice(0, 89)}\u2026`;
2096
+ const name = bare(p.name || p.exe || "?");
2097
+ return `${name}${args ? ` ${args}` : ""} (PID ${p.pid})`;
2098
+ }
2099
+ function parseCimProcesses(json2) {
2100
+ let data;
2101
+ try {
2102
+ data = JSON.parse(json2);
2103
+ } catch {
2104
+ return [];
2105
+ }
2106
+ const rows2 = Array.isArray(data) ? data : data ? [data] : [];
2107
+ const out = [];
2108
+ for (const r of rows2) {
2109
+ if (!r || typeof r !== "object") continue;
2110
+ const o = r;
2111
+ if (typeof o.ProcessId !== "number") continue;
2112
+ out.push({
2113
+ pid: o.ProcessId,
2114
+ ppid: typeof o.ParentProcessId === "number" ? o.ParentProcessId : 0,
2115
+ name: typeof o.Name === "string" ? o.Name : "",
2116
+ exe: typeof o.ExecutablePath === "string" ? o.ExecutablePath : null,
2117
+ command: typeof o.CommandLine === "string" ? o.CommandLine : ""
2118
+ });
2119
+ }
2120
+ return out;
2121
+ }
2122
+ function parsePsProcesses(stdout) {
2123
+ const out = [];
2124
+ for (const line of stdout.split(/\r?\n/)) {
2125
+ const m = /^\s*(\d+)\s+(\d+)\s+(.*)$/.exec(line);
2126
+ if (!m) continue;
2127
+ const command = m[3].trim();
2128
+ const first = commandWords(command)[0] ?? "";
2129
+ out.push({
2130
+ pid: Number(m[1]),
2131
+ ppid: Number(m[2]),
2132
+ name: path5.posix.basename(first),
2133
+ exe: first.startsWith("/") ? first : null,
2134
+ command
2135
+ });
2136
+ }
2137
+ return out;
2138
+ }
2139
+ async function linuxProcesses() {
2140
+ const out = [];
2141
+ let pids;
2142
+ try {
2143
+ pids = (await fs6.promises.readdir("/proc")).filter((d) => /^\d+$/.test(d));
2144
+ } catch {
2145
+ return out;
2146
+ }
2147
+ for (const d of pids) {
2148
+ try {
2149
+ const stat = await fs6.promises.readFile(`/proc/${d}/stat`, "utf-8");
2150
+ const ppid = Number(stat.slice(stat.lastIndexOf(")") + 2).split(" ")[1]);
2151
+ const command = (await fs6.promises.readFile(`/proc/${d}/cmdline`, "utf-8")).split("\0").filter(Boolean).map((w) => /\s/.test(w) ? `"${w}"` : w).join(" ");
2152
+ let exe = null;
2153
+ let cwd = null;
2154
+ try {
2155
+ exe = await fs6.promises.readlink(`/proc/${d}/exe`);
2156
+ cwd = await fs6.promises.readlink(`/proc/${d}/cwd`);
2157
+ } catch {
2158
+ }
2159
+ out.push({ pid: Number(d), ppid, name: exe ? path5.posix.basename(exe) : "", exe, command, cwd });
2160
+ } catch {
2161
+ }
2162
+ }
2163
+ return out;
2164
+ }
2165
+ var run = (cmd, args) => new Promise(
2166
+ (resolve) => execFile(
2167
+ programPath(cmd),
2168
+ args,
2169
+ { encoding: "utf-8", windowsHide: true, timeout: 2e4, maxBuffer: 64 * 1024 * 1024 },
2170
+ (_err, stdout) => resolve(stdout ?? "")
2171
+ )
2172
+ );
2173
+ async function listProcesses() {
2174
+ if (process.platform === "linux") return linuxProcesses();
2175
+ if (process.platform === "win32") {
2176
+ return parseCimProcesses(
2177
+ await run("powershell", [
2178
+ "-NoProfile",
2179
+ "-NonInteractive",
2180
+ "-Command",
2181
+ // UTF-8 out: the console's code page would turn a path with Š or č into ?.
2182
+ "[Console]::OutputEncoding = [Text.Encoding]::UTF8; Get-CimInstance Win32_Process | Select-Object ProcessId,ParentProcessId,Name,ExecutablePath,CommandLine | ConvertTo-Json -Compress"
2183
+ ])
2184
+ );
2185
+ }
2186
+ return parsePsProcesses(await run("ps", ["-A", "-o", "pid=,ppid=,args="]));
2187
+ }
2188
+ async function findHolders(dirs, list = listProcesses, spare = workPids()) {
2189
+ const existing = dirs.filter((d) => fs6.existsSync(d));
2190
+ if (existing.length === 0) return { stoppable: [], running: [], others: [] };
2191
+ return holdersOf(await list(), existing, process.pid, win, spare);
2192
+ }
2193
+ async function runningFromNames(dirs, list = listProcesses) {
2194
+ const procs = await list();
2195
+ if (procs.length === 0) throw new Error("couldn't read the running processes");
2196
+ const h = await findHolders(dirs, async () => procs);
2197
+ const norm = dirs.map((d) => normDir(d));
2198
+ return h.stoppable.map((p) => describeProcess(p, norm));
2199
+ }
2200
+ var EXIT_WAIT_MS = 3e3;
2201
+ async function stopRunningFrom(dirs, io = {}) {
2202
+ const h = await findHolders(dirs, io.list, io.spare);
2203
+ const kill = io.kill ?? killTreeAsync;
2204
+ const alive = io.alive ?? isPidAlive;
2205
+ const targets = win ? h.stoppable : h.running ?? h.stoppable;
2206
+ const killed = await Promise.all(targets.map((p) => Promise.resolve(kill(p.pid)).catch(() => false)));
2207
+ const stopped = targets.filter((_, i) => killed[i]);
2208
+ for (const until = Date.now() + (io.waitMs ?? EXIT_WAIT_MS); stopped.some((p) => alive(p.pid)) && Date.now() < until; ) {
2209
+ await new Promise((r) => setTimeout(r, 100));
2210
+ }
2211
+ const norm = dirs.map((d) => normDir(d));
2212
+ const named = new Set(h.stoppable.map((p) => p.pid));
2213
+ return stopped.filter((p) => named.has(p.pid)).map((p) => describeProcess(p, norm));
2214
+ }
2215
+
2216
+ // src/core/platform/process-usage.ts
2217
+ var num = (v) => typeof v === "number" && Number.isFinite(v) && v >= 0 ? v : null;
2218
+ function parseCimUsage(json2) {
2219
+ let data;
2220
+ try {
2221
+ data = JSON.parse(json2);
2222
+ } catch {
2223
+ return [];
2224
+ }
2225
+ const rows2 = Array.isArray(data) ? data : data ? [data] : [];
2226
+ const out = [];
2227
+ for (const r of rows2) {
2228
+ if (!r || typeof r !== "object") continue;
2229
+ const o = r;
2230
+ if (typeof o.ProcessId !== "number") continue;
2231
+ const started = num(o.Started);
2232
+ out.push({
2233
+ pid: o.ProcessId,
2234
+ ppid: typeof o.ParentProcessId === "number" ? o.ParentProcessId : 0,
2235
+ name: typeof o.Name === "string" ? o.Name : "",
2236
+ exe: typeof o.ExecutablePath === "string" ? o.ExecutablePath : null,
2237
+ command: typeof o.CommandLine === "string" ? o.CommandLine : "",
2238
+ memBytes: num(o.PrivatePageCount),
2239
+ // 0: a system process with no creation date.
2240
+ startedAt: started ? started : null
2241
+ });
2242
+ }
2243
+ return out;
2244
+ }
2245
+ function elapsedMs(etime) {
2246
+ const m = /^(?:(\d+)-)?(?:(\d+):)?(\d+):(\d+)$/.exec(etime.trim());
2247
+ if (!m) return null;
2248
+ const [days, hours, mins, secs] = [m[1], m[2], m[3], m[4]].map((x) => Number(x ?? 0));
2249
+ return (((days * 24 + hours) * 60 + mins) * 60 + secs) * 1e3;
2250
+ }
2251
+ function parsePsUsage(stdout, now) {
2252
+ const out = [];
2253
+ for (const line of stdout.split(/\r?\n/)) {
2254
+ const m = /^\s*(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(.*)$/.exec(line);
2255
+ if (!m) continue;
2256
+ const command = m[5].trim();
2257
+ const first = commandWords(command)[0] ?? "";
2258
+ const elapsed = elapsedMs(m[4]);
2259
+ out.push({
2260
+ pid: Number(m[1]),
2261
+ ppid: Number(m[2]),
2262
+ name: path6.posix.basename(first),
2263
+ exe: first.startsWith("/") ? first : null,
2264
+ command,
2265
+ memBytes: Number(m[3]) * 1024,
2266
+ startedAt: elapsed === null ? null : now - elapsed
2267
+ });
2268
+ }
2269
+ return out;
2270
+ }
2271
+ var run2 = (cmd, args) => new Promise(
2272
+ (resolve) => execFile2(
2273
+ programPath(cmd),
2274
+ args,
2275
+ { encoding: "utf-8", windowsHide: true, timeout: 2e4, maxBuffer: 64 * 1024 * 1024 },
2276
+ (_err, stdout) => resolve(stdout ?? "")
2277
+ )
2278
+ );
2279
+ var CIM_USAGE = "[Console]::OutputEncoding = [Text.Encoding]::UTF8; Get-CimInstance Win32_Process | Select-Object ProcessId,ParentProcessId,Name,ExecutablePath,CommandLine,PrivatePageCount,@{n='Started';e={ if ($_.CreationDate) { ([DateTimeOffset]$_.CreationDate).ToUnixTimeMilliseconds() } else { 0 } }} | ConvertTo-Json -Compress";
2280
+ async function listProcessUsage(now = Date.now()) {
2281
+ if (process.platform === "win32") return parseCimUsage(await run2("powershell", ["-NoProfile", "-NonInteractive", "-Command", CIM_USAGE]));
2282
+ return parsePsUsage(await run2("ps", ["-A", "-o", "pid=,ppid=,rss=,etime=,args="]), now);
2283
+ }
2284
+
2285
+ // src/core/sessions/session-repos.ts
2286
+ import path7 from "path";
1982
2287
  function recordedRepos(s) {
1983
2288
  if (!Array.isArray(s.repos) || s.repos.length !== s.paths.length || s.repos.length === 0) return null;
1984
2289
  if (!s.repos.every((a) => typeof a === "string" && a)) return null;
1985
2290
  return s.repos.map((alias, i) => ({ alias, path: s.paths[i] }));
1986
2291
  }
1987
- var sameName = (a, b) => path5.basename(a).toLowerCase() === path5.basename(b).toLowerCase();
2292
+ var sameName = (a, b) => path7.basename(a).toLowerCase() === path7.basename(b).toLowerCase();
1988
2293
  function sessionRepos(s, config) {
1989
2294
  const recorded = recordedRepos(s);
1990
2295
  if (recorded) return recorded;
@@ -1996,7 +2301,7 @@ function sessionRepos(s, config) {
1996
2301
  const repo = config?.repos?.[a];
1997
2302
  return repo !== void 0 && sameName(repo, p);
1998
2303
  });
1999
- return alias ? { alias, path: p } : { alias: path5.basename(p), path: p, guessed: true };
2304
+ return alias ? { alias, path: p } : { alias: path7.basename(p), path: p, guessed: true };
2000
2305
  });
2001
2306
  }
2002
2307
  function sessionAliases(s, config) {
@@ -2012,11 +2317,11 @@ function isFolderSession(s) {
2012
2317
 
2013
2318
  // src/core/worktree/dev-server.ts
2014
2319
  function devDir() {
2015
- const dir = path6.join(getConfigDir(), "dev");
2016
- fs6.mkdirSync(dir, { recursive: true });
2320
+ const dir = path8.join(getConfigDir(), "dev");
2321
+ fs7.mkdirSync(dir, { recursive: true });
2017
2322
  return dir;
2018
2323
  }
2019
- var devLogFile = (id) => path6.join(devDir(), `${id}.log`);
2324
+ var devLogFile = (id) => path8.join(devDir(), `${id}.log`);
2020
2325
  var REBOOT_SLACK_MS = 5 * 6e4;
2021
2326
  function isRunRecord(x) {
2022
2327
  const r = x;
@@ -2063,26 +2368,26 @@ function isListening(port, timeoutMs = 400) {
2063
2368
  async function devState(id, session, config) {
2064
2369
  const port = session.port ?? null;
2065
2370
  const cmd = devCommandFor(session, config);
2066
- const run = readRun(id);
2371
+ const run3 = readRun(id);
2067
2372
  return {
2068
2373
  port,
2069
2374
  listening: port !== null ? await isListening(port) : false,
2070
2375
  url: port !== null ? `http://localhost:${port}/` : null,
2071
2376
  command: cmd?.command ?? null,
2072
2377
  repo: cmd?.repo ?? null,
2073
- running: run ? { pid: run.pid, startedAt: run.startedAt } : null
2378
+ running: run3 ? { pid: run3.pid, startedAt: run3.startedAt } : null
2074
2379
  };
2075
2380
  }
2076
2381
  function startDev(id, session, config) {
2077
2382
  if (session.port === void 0) return { ok: false, status: 400, error: "this worktree has no port \u2014 recreate it with work tree" };
2078
2383
  const cmd = devCommandFor(session, config);
2079
2384
  if (!cmd) return { ok: false, status: 400, error: "no dev command \u2014 set devCommands in ~/.work/config.json" };
2080
- if (!fs6.existsSync(cmd.cwd)) return { ok: false, status: 400, error: `worktree is gone: ${cmd.cwd}` };
2385
+ if (!fs7.existsSync(cmd.cwd)) return { ok: false, status: 400, error: `worktree is gone: ${cmd.cwd}` };
2081
2386
  const running = readRun(id);
2082
2387
  if (running) return { ok: false, status: 409, error: `already running (pid ${running.pid})` };
2083
- const log = fs6.openSync(devLogFile(id), "w");
2388
+ const log = fs7.openSync(devLogFile(id), "w");
2084
2389
  try {
2085
- fs6.writeSync(log, `$ ${cmd.command} (PORT=${session.port}, in ${cmd.cwd})
2390
+ fs7.writeSync(log, `$ ${cmd.command} (PORT=${session.port}, in ${cmd.cwd})
2086
2391
  `);
2087
2392
  const child = spawn(cmd.command, {
2088
2393
  cwd: cmd.cwd,
@@ -2110,41 +2415,56 @@ function startDev(id, session, config) {
2110
2415
  withDb((d) => d.prepare("INSERT OR REPLACE INTO dev_runs (session_id, data) VALUES (?, ?)").run(id, JSON.stringify(rec)));
2111
2416
  return { ok: true, pid: child.pid };
2112
2417
  } finally {
2113
- fs6.closeSync(log);
2418
+ fs7.closeSync(log);
2114
2419
  }
2115
2420
  }
2116
- function stopDev(id, name = processName) {
2117
- const run = readRun(id);
2118
- if (!run) return false;
2119
- const now = name(run.pid);
2120
- if (run.image && now !== null && now.toLowerCase() !== run.image.toLowerCase()) {
2421
+ function startedAgoMs(pid) {
2422
+ if (process.platform === "win32") return null;
2423
+ try {
2424
+ const r = spawnSync(programPath("ps"), ["-o", "etime=", "-p", String(pid)], { encoding: "utf-8", timeout: 3e3, windowsHide: true });
2425
+ return elapsedMs(r.stdout ?? "");
2426
+ } catch {
2427
+ return null;
2428
+ }
2429
+ }
2430
+ var SAME_START_MS = 5e3;
2431
+ function sameRun(run3, nameNow, startedAgo, now = Date.now()) {
2432
+ if (!run3.image || nameNow === null || nameNow.toLowerCase() === run3.image.toLowerCase()) return true;
2433
+ if (startedAgo === null) return false;
2434
+ return Math.abs(now - startedAgo - Date.parse(run3.startedAt)) <= SAME_START_MS;
2435
+ }
2436
+ function stopDev(id, name = processName, startedAgo = startedAgoMs) {
2437
+ const run3 = readRun(id);
2438
+ if (!run3) return false;
2439
+ const nameNow = name(run3.pid);
2440
+ if (!sameRun(run3, nameNow, nameNow === null || nameNow.toLowerCase() === (run3.image ?? "").toLowerCase() ? null : startedAgo(run3.pid))) {
2121
2441
  forgetRun(id);
2122
2442
  return false;
2123
2443
  }
2124
2444
  let killed = false;
2125
2445
  if (process.platform !== "win32") {
2126
2446
  try {
2127
- process.kill(-run.pid, "SIGTERM");
2447
+ process.kill(-run3.pid, "SIGTERM");
2128
2448
  killed = true;
2129
2449
  } catch {
2130
2450
  }
2131
2451
  }
2132
- if (!killed) killed = killTree(run.pid);
2452
+ if (!killed) killed = killTree(run3.pid);
2133
2453
  forgetRun(id);
2134
2454
  return killed;
2135
2455
  }
2136
2456
  function devLogTail(id, maxBytes = 64 * 1024) {
2137
2457
  try {
2138
2458
  const file = devLogFile(id);
2139
- const size = fs6.statSync(file).size;
2140
- const fd = fs6.openSync(file, "r");
2459
+ const size = fs7.statSync(file).size;
2460
+ const fd = fs7.openSync(file, "r");
2141
2461
  try {
2142
2462
  const len = Math.min(size, maxBytes);
2143
2463
  const buf = Buffer.alloc(len);
2144
- fs6.readSync(fd, buf, 0, len, size - len);
2464
+ fs7.readSync(fd, buf, 0, len, size - len);
2145
2465
  return buf.toString("utf-8");
2146
2466
  } finally {
2147
- fs6.closeSync(fd);
2467
+ fs7.closeSync(fd);
2148
2468
  }
2149
2469
  } catch {
2150
2470
  return "";
@@ -2152,25 +2472,25 @@ function devLogTail(id, maxBytes = 64 * 1024) {
2152
2472
  }
2153
2473
 
2154
2474
  // src/core/diff/checkpoint.ts
2155
- import fs7 from "fs";
2475
+ import fs8 from "fs";
2156
2476
  import os2 from "os";
2157
- import path7 from "path";
2477
+ import path9 from "path";
2158
2478
  function branchesOf(repos) {
2159
2479
  return Object.fromEntries(repos.map((r) => [r.name, workingBranch(r.root)]));
2160
2480
  }
2161
2481
  function manifestPath(scopeHash) {
2162
- const dir = path7.join(os2.homedir(), ".work", "diffs");
2163
- fs7.mkdirSync(dir, { recursive: true });
2164
- return path7.join(dir, `${scopeHash}.checkpoints.json`);
2482
+ const dir = path9.join(os2.homedir(), ".work", "diffs");
2483
+ fs8.mkdirSync(dir, { recursive: true });
2484
+ return path9.join(dir, `${scopeHash}.checkpoints.json`);
2165
2485
  }
2166
2486
  function emptyManifest(scopeHash) {
2167
2487
  return { version: 1, scopeHash, entries: [] };
2168
2488
  }
2169
2489
  function loadManifest(scopeHash) {
2170
2490
  const file = manifestPath(scopeHash);
2171
- if (!fs7.existsSync(file)) return emptyManifest(scopeHash);
2491
+ if (!fs8.existsSync(file)) return emptyManifest(scopeHash);
2172
2492
  try {
2173
- const raw = fs7.readFileSync(file, "utf-8");
2493
+ const raw = fs8.readFileSync(file, "utf-8");
2174
2494
  const parsed = JSON.parse(raw);
2175
2495
  if (parsed.version !== 1 || !Array.isArray(parsed.entries)) {
2176
2496
  return emptyManifest(scopeHash);
@@ -2386,25 +2706,25 @@ async function headBroughtInOtherWork(scopeHash, repos) {
2386
2706
  const entries = loadManifest(scopeHash).entries;
2387
2707
  if (entries.length === 0) return false;
2388
2708
  const newest = entries.reduce((a, b) => b.id > a.id ? b : a);
2389
- const run = async (root, args) => {
2709
+ const run3 = async (root, args) => {
2390
2710
  const r = await runGitAsync(root, { args });
2391
2711
  return { ok: r.status === 0, out: r.stdout.trim() };
2392
2712
  };
2393
2713
  const count = async (root, args) => {
2394
- const r = await run(root, ["rev-list", "--count", ...args]);
2714
+ const r = await run3(root, ["rev-list", "--count", ...args]);
2395
2715
  return r.ok && /^\d+$/.test(r.out) ? Number(r.out) : null;
2396
2716
  };
2397
2717
  const broughtIn = async (repo) => {
2398
2718
  const snap = newest.repos[repo.name];
2399
2719
  if (!snap) return false;
2400
2720
  if (switchedBranch(newest, repo)) return false;
2401
- const was = await run(repo.root, ["rev-parse", "--verify", "--quiet", `${snap}^`]);
2402
- const now = await run(repo.root, ["rev-parse", "--verify", "--quiet", "HEAD"]);
2721
+ const was = await run3(repo.root, ["rev-parse", "--verify", "--quiet", `${snap}^`]);
2722
+ const now = await run3(repo.root, ["rev-parse", "--verify", "--quiet", "HEAD"]);
2403
2723
  if (!was.ok || !now.ok || !was.out || was.out === now.out) return false;
2404
- if (!(await run(repo.root, ["merge-base", "--is-ancestor", was.out, now.out])).ok) return true;
2724
+ if (!(await run3(repo.root, ["merge-base", "--is-ancestor", was.out, now.out])).ok) return true;
2405
2725
  const range = `${was.out}..${now.out}`;
2406
2726
  if ((await count(repo.root, ["--merges", range]) ?? 0) > 0) return true;
2407
- const main = await run(repo.root, ["rev-parse", "--verify", "--quiet", "origin/HEAD"]);
2727
+ const main = await run3(repo.root, ["rev-parse", "--verify", "--quiet", "origin/HEAD"]);
2408
2728
  if (!main.ok) return false;
2409
2729
  const all = await count(repo.root, [range]);
2410
2730
  const own = await count(repo.root, [range, "^origin/HEAD"]);
@@ -2426,21 +2746,21 @@ function clearCheckpoints(scopeHash, repoRoots) {
2426
2746
  }
2427
2747
  }
2428
2748
  const file = manifestPath(scopeHash);
2429
- if (fs7.existsSync(file)) {
2749
+ if (fs8.existsSync(file)) {
2430
2750
  try {
2431
- fs7.unlinkSync(file);
2751
+ fs8.unlinkSync(file);
2432
2752
  } catch {
2433
2753
  }
2434
2754
  }
2435
2755
  }
2436
2756
 
2437
2757
  // src/core/diff/scope-manager.ts
2438
- import path9 from "path";
2758
+ import path11 from "path";
2439
2759
  import crypto2 from "crypto";
2440
2760
 
2441
2761
  // src/core/platform/fs-watcher.ts
2442
- import fs8 from "fs";
2443
- import path8 from "path";
2762
+ import fs9 from "fs";
2763
+ import path10 from "path";
2444
2764
  import { createRequire } from "module";
2445
2765
  var loadChokidar = () => createRequire(import.meta.url)("chokidar");
2446
2766
  var IGNORED_DIRS = /* @__PURE__ */ new Set([
@@ -2466,7 +2786,7 @@ var IGNORED_DIRS = /* @__PURE__ */ new Set([
2466
2786
  ]);
2467
2787
  function isIgnoredWatchPath(roots, filePath) {
2468
2788
  for (const root of roots) {
2469
- const rel = path8.relative(root, filePath).replace(/\\/g, "/");
2789
+ const rel = path10.relative(root, filePath).replace(/\\/g, "/");
2470
2790
  if (rel === "" || rel.startsWith("../")) continue;
2471
2791
  if (rel.split("/").some((seg) => IGNORED_DIRS.has(seg))) return true;
2472
2792
  }
@@ -2488,8 +2808,8 @@ function createFsWatcher(opts) {
2488
2808
  };
2489
2809
  if (SUPPORTS_RECURSIVE_WATCH) {
2490
2810
  const watchers = opts.roots.map((root) => {
2491
- const w = fs8.watch(root, { recursive: true }, (_event, filename) => {
2492
- if (filename && isIgnoredWatchPath([root], path8.join(root, filename.toString()))) {
2811
+ const w = fs9.watch(root, { recursive: true }, (_event, filename) => {
2812
+ if (filename && isIgnoredWatchPath([root], path10.join(root, filename.toString()))) {
2493
2813
  return;
2494
2814
  }
2495
2815
  fire();
@@ -2540,7 +2860,7 @@ var ScopePathRejectedError = class extends Error {
2540
2860
  }
2541
2861
  };
2542
2862
  function normaliseForCompare(p) {
2543
- return path9.resolve(p).replace(/\\/g, "/").toLowerCase();
2863
+ return path11.resolve(p).replace(/\\/g, "/").toLowerCase();
2544
2864
  }
2545
2865
  function rejectedPaths(normalised) {
2546
2866
  const config = loadConfig();
@@ -2555,7 +2875,7 @@ function rejectedPaths(normalised) {
2555
2875
  });
2556
2876
  }
2557
2877
  function registerScope(paths, label) {
2558
- const normalised = paths.map((p) => path9.resolve(p));
2878
+ const normalised = paths.map((p) => path11.resolve(p));
2559
2879
  const rejected = rejectedPaths(normalised);
2560
2880
  if (rejected.length > 0) throw new ScopePathRejectedError(rejected);
2561
2881
  const hash = hashFor(normalised);
@@ -2569,7 +2889,7 @@ function registerScope(paths, label) {
2569
2889
  const scope = {
2570
2890
  hash,
2571
2891
  paths: normalised,
2572
- label: label ?? path9.basename(normalised[0]),
2892
+ label: label ?? path11.basename(normalised[0]),
2573
2893
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
2574
2894
  ended: false
2575
2895
  };
@@ -2595,17 +2915,17 @@ function reviveScope(hash) {
2595
2915
  return true;
2596
2916
  }
2597
2917
  function scopesToSweep(scopes2, sessionPaths) {
2598
- const owned = new Set(sessionPaths.map((paths) => hashFor(paths.map((p) => path9.resolve(p)))));
2918
+ const owned = new Set(sessionPaths.map((paths) => hashFor(paths.map((p) => path11.resolve(p)))));
2599
2919
  return scopes2.filter((s) => !owned.has(s.hash));
2600
2920
  }
2601
2921
  function sessionOwnsScope(hash, sessionPaths) {
2602
- return sessionPaths.some((paths) => hashFor(paths.map((p) => path9.resolve(p))) === hash);
2922
+ return sessionPaths.some((paths) => hashFor(paths.map((p) => path11.resolve(p))) === hash);
2603
2923
  }
2604
2924
  function findScope(paths) {
2605
2925
  return getScope(scopeHashForPaths(paths));
2606
2926
  }
2607
2927
  function scopeHashForPaths(paths) {
2608
- return hashFor(paths.map((p) => path9.resolve(p)));
2928
+ return hashFor(paths.map((p) => path11.resolve(p)));
2609
2929
  }
2610
2930
  function getScope(hash) {
2611
2931
  return scopes.get(hash)?.scope ?? null;
@@ -2688,7 +3008,7 @@ function clearSessionCheckpoints(s) {
2688
3008
  try {
2689
3009
  const cfg = loadConfig();
2690
3010
  const aliases = sessionAliases(s, cfg);
2691
- const roots = aliases.map((a) => cfg?.repos[a]).filter((r) => !!r && fs9.existsSync(r));
3011
+ const roots = aliases.map((a) => cfg?.repos[a]).filter((r) => !!r && fs10.existsSync(r));
2692
3012
  clearCheckpoints(scopeHashForPaths(s.paths), roots);
2693
3013
  if (s.branch !== void 0) for (const r of roots) dropSessionSaves(r, sessionIdFor({ target: s.target, branch: s.branch }));
2694
3014
  } catch (err) {
@@ -2698,7 +3018,7 @@ function clearSessionCheckpoints(s) {
2698
3018
  function removeSessionFiles(id) {
2699
3019
  for (const p of sessionStatePaths(id)) {
2700
3020
  try {
2701
- fs9.rmSync(p, { force: true, recursive: true });
3021
+ fs10.rmSync(p, { force: true, recursive: true });
2702
3022
  } catch (err) {
2703
3023
  logSwallowed(`purge ${p}`, err);
2704
3024
  }
@@ -2713,7 +3033,7 @@ var recordAgent = (account) => {
2713
3033
  return { ...agent ? { agent } : {}, ...accounts ? { account: account || accounts.defaultName() } : {} };
2714
3034
  };
2715
3035
  function getHistoryPath() {
2716
- return path10.join(getConfigDir(), "history.json");
3036
+ return path12.join(getConfigDir(), "history.json");
2717
3037
  }
2718
3038
  function valid(s) {
2719
3039
  const x = s;
@@ -2751,7 +3071,7 @@ function appendSessionRepo(id, alias, worktree, from, config, imports = false) {
2751
3071
  const s = r ? json.parse(r.data) : null;
2752
3072
  if (!valid(s)) return null;
2753
3073
  const own = sessionRepos(s, config);
2754
- const unknown = own.filter((x) => x.guessed).map((x) => path10.basename(x.path));
3074
+ const unknown = own.filter((x) => x.guessed).map((x) => path12.basename(x.path));
2755
3075
  if (unknown.length) throw new Error(`no repo of its group is in ${unknown.join(", ")}, so its repos can't be recorded`);
2756
3076
  const repos = own.map((x) => x.alias);
2757
3077
  const before = [...s.paths];
@@ -2901,7 +3221,7 @@ async function upsertSessionWithPort(target, isGroup, branch, paths, config, iss
2901
3221
  }
2902
3222
  const done = tx((d) => {
2903
3223
  if (port !== void 0 && getRow(d, target, branch)?.port === void 0) {
2904
- const taken = rows(d).some((s) => sessionIdFor(s) !== id && s.port === port && s.paths.some((p) => fs10.existsSync(p)));
3224
+ const taken = rows(d).some((s) => sessionIdFor(s) !== id && s.port === port && s.paths.some((p) => fs11.existsSync(p)));
2905
3225
  if (taken) return null;
2906
3226
  }
2907
3227
  return { port: write(d, port) };
@@ -2991,7 +3311,7 @@ function pruneStaleEntries(sessions) {
2991
3311
  const kept = [];
2992
3312
  let pruned = 0;
2993
3313
  for (const session of sessions) {
2994
- const anyPathExists = session.paths.some((p) => fs10.existsSync(p));
3314
+ const anyPathExists = session.paths.some((p) => fs11.existsSync(p));
2995
3315
  if (anyPathExists) {
2996
3316
  kept.push(session);
2997
3317
  } else {
@@ -3049,7 +3369,7 @@ async function mergeHydratedSessions(incoming) {
3049
3369
  });
3050
3370
  }
3051
3371
  var samePath = (a, b) => {
3052
- const n = (p) => path10.resolve(p).split(path10.sep).join("/").toLowerCase();
3372
+ const n = (p) => path12.resolve(p).split(path12.sep).join("/").toLowerCase();
3053
3373
  return n(a) === n(b);
3054
3374
  };
3055
3375
  async function forgetOtherBaseCheckoutEntries(target, keepBranch, repoPath) {
@@ -3088,6 +3408,7 @@ export {
3088
3408
  snoozeLabel,
3089
3409
  owedToYou,
3090
3410
  DECISION_MARKER,
3411
+ STALE_WORKING_MS,
3091
3412
  ANSWERED_AFTER_MS,
3092
3413
  effectiveStatus,
3093
3414
  withLiveClaude,
@@ -3155,6 +3476,15 @@ export {
3155
3476
  compressQuietCopies,
3156
3477
  syncConversations,
3157
3478
  searchConversations,
3479
+ normDir,
3480
+ runsFrom,
3481
+ isPtyHelper,
3482
+ describeProcess,
3483
+ listProcesses,
3484
+ findHolders,
3485
+ runningFromNames,
3486
+ stopRunningFrom,
3487
+ listProcessUsage,
3158
3488
  recordedRepos,
3159
3489
  sessionRepos,
3160
3490
  sessionAliases,
@@ -3213,4 +3543,4 @@ export {
3213
3543
  mergeHydratedSessions,
3214
3544
  forgetOtherBaseCheckoutEntries
3215
3545
  };
3216
- //# sourceMappingURL=chunk-AITL3JYB.js.map
3546
+ //# sourceMappingURL=chunk-XJQ7XJJC.js.map