@moberg_hr/work-tree 2.3.2 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/README.md +6 -1
  2. package/dist/add-repo-5SYBDVG2.js +384 -0
  3. package/dist/add-repo-5SYBDVG2.js.map +1 -0
  4. package/dist/{answer-UWI22VOE.js → answer-OA2WTJCZ.js} +11 -11
  5. package/dist/{attach-HYHEXW5J.js → attach-5GXPA7BV.js} +14 -14
  6. package/dist/bin.js +5 -5
  7. package/dist/{block-A25XE7HC.js → block-VINEC2MW.js} +11 -11
  8. package/dist/{broadcast-AG7P5BKQ.js → broadcast-ENAJDNVU.js} +8 -8
  9. package/dist/{catchup-VTGG7BAR.js → catchup-NC4WHSBF.js} +14 -14
  10. package/dist/{chunk-XDBMLTFY.js → chunk-3HBHM2VX.js} +4 -4
  11. package/dist/chunk-3IOIY4W6.js +39 -0
  12. package/dist/chunk-3IOIY4W6.js.map +1 -0
  13. package/dist/{chunk-7OBX4MJY.js → chunk-3KOYICWB.js} +4 -4
  14. package/dist/{chunk-HWIRY3WO.js → chunk-3NISM3OI.js} +7 -6
  15. package/dist/chunk-3NISM3OI.js.map +1 -0
  16. package/dist/{chunk-ZSXMIPU4.js → chunk-3Q6S6TRY.js} +3 -3
  17. package/dist/{chunk-MEK7BIVS.js → chunk-45X4QO4V.js} +37 -17
  18. package/dist/chunk-45X4QO4V.js.map +1 -0
  19. package/dist/{chunk-3D63HGOG.js → chunk-4ETSGWB2.js} +3 -3
  20. package/dist/{chunk-IVPV6VPW.js → chunk-4VNUU6S6.js} +3 -3
  21. package/dist/{chunk-7W6I4VXA.js → chunk-65YMLGQB.js} +7 -7
  22. package/dist/{chunk-C3E7XETB.js → chunk-6KM2C2UO.js} +7 -7
  23. package/dist/{chunk-R5QLAXNJ.js → chunk-6SJOM62D.js} +2 -2
  24. package/dist/{chunk-ROLNJOSE.js → chunk-A53IRCOO.js} +2 -1
  25. package/dist/chunk-A53IRCOO.js.map +1 -0
  26. package/dist/{chunk-QQNPAZNP.js → chunk-AC6N2EIN.js} +12 -11
  27. package/dist/{chunk-QQNPAZNP.js.map → chunk-AC6N2EIN.js.map} +1 -1
  28. package/dist/{chunk-YIODX4PM.js → chunk-AKGDIBSE.js} +2 -2
  29. package/dist/{chunk-HWP4NEYL.js → chunk-BCPH3SZM.js} +2 -2
  30. package/dist/{chunk-4P533364.js → chunk-BO3BNBBE.js} +7 -7
  31. package/dist/chunk-BUCSF4QS.js +9 -0
  32. package/dist/{chunk-KNYEQLIF.js → chunk-BURVDS7U.js} +2 -2
  33. package/dist/{chunk-MF6LDFDW.js → chunk-C224P3D3.js} +2 -2
  34. package/dist/{chunk-B3HIALTV.js → chunk-CGJGWALF.js} +2 -2
  35. package/dist/{chunk-CALBDLDJ.js → chunk-DHBKD2TG.js} +3 -3
  36. package/dist/{chunk-PIEYQBWL.js → chunk-EASMYJG3.js} +13 -12
  37. package/dist/chunk-EASMYJG3.js.map +1 -0
  38. package/dist/{chunk-EOETYHTD.js → chunk-FRCV6NWT.js} +2 -2
  39. package/dist/{chunk-GOHSGTR5.js → chunk-FXHTSSV2.js} +3 -3
  40. package/dist/{chunk-NER44YB7.js → chunk-FXIEYT6L.js} +8 -8
  41. package/dist/{chunk-WRUQPVTS.js → chunk-GDCTRDUY.js} +4 -4
  42. package/dist/{chunk-DRYY4BPY.js → chunk-I2TUJLI4.js} +5 -5
  43. package/dist/{chunk-IJ6YYFXY.js → chunk-IOSB2HMV.js} +3 -3
  44. package/dist/{chunk-5EGGS6Y6.js → chunk-JCCGLFMU.js} +94 -56
  45. package/dist/chunk-JCCGLFMU.js.map +1 -0
  46. package/dist/{chunk-Y2HNFNCS.js → chunk-JCMGIW7G.js} +5 -3
  47. package/dist/chunk-JCMGIW7G.js.map +1 -0
  48. package/dist/{chunk-YV2MPIFG.js → chunk-JDW4GXEA.js} +4 -4
  49. package/dist/{chunk-LMLVJEY7.js → chunk-L3JK6V5I.js} +2 -2
  50. package/dist/{chunk-T6YP6GPK.js → chunk-L7OQ7O4K.js} +3 -3
  51. package/dist/{chunk-WMOXIFBF.js → chunk-LYKWTHOD.js} +38 -10
  52. package/dist/chunk-LYKWTHOD.js.map +1 -0
  53. package/dist/{chunk-KPGO5VFR.js → chunk-M2TQNGMD.js} +5 -5
  54. package/dist/{chunk-Y33WKESH.js → chunk-MAFJE26N.js} +2 -2
  55. package/dist/{chunk-CIAXJC5H.js → chunk-MM32YZT6.js} +4 -4
  56. package/dist/{chunk-OB63GDEC.js → chunk-OESAI3XS.js} +2 -2
  57. package/dist/{chunk-722K7XWW.js → chunk-PLOO7NQU.js} +4 -4
  58. package/dist/{chunk-DMUZIBPM.js → chunk-R2SR3PER.js} +10 -4
  59. package/dist/chunk-R2SR3PER.js.map +1 -0
  60. package/dist/{chunk-B2Q5BYOD.js → chunk-R7334LAS.js} +5 -5
  61. package/dist/{chunk-NM4SABMQ.js → chunk-RFQRVXFQ.js} +529 -424
  62. package/dist/chunk-RFQRVXFQ.js.map +1 -0
  63. package/dist/{chunk-U3NYRIFH.js → chunk-S4ILKUFN.js} +13 -3
  64. package/dist/{chunk-U3NYRIFH.js.map → chunk-S4ILKUFN.js.map} +1 -1
  65. package/dist/{chunk-H7KH5CDM.js → chunk-SBRHGEFP.js} +3 -3
  66. package/dist/{chunk-CGMFZOS5.js → chunk-VES42DOD.js} +236 -81
  67. package/dist/chunk-VES42DOD.js.map +1 -0
  68. package/dist/chunk-VGQV4LX7.js +33 -0
  69. package/dist/chunk-VGQV4LX7.js.map +1 -0
  70. package/dist/{chunk-OBFHGN7Q.js → chunk-WOAFMVKW.js} +2 -2
  71. package/dist/{chunk-TKL4B2OI.js → chunk-WUJJ2FTK.js} +8 -4
  72. package/dist/chunk-WUJJ2FTK.js.map +1 -0
  73. package/dist/{chunk-CFO2JMKW.js → chunk-XEIREYW6.js} +29 -25
  74. package/dist/chunk-XEIREYW6.js.map +1 -0
  75. package/dist/{chunk-QDKLIYGR.js → chunk-XZ5DA5X4.js} +14 -3
  76. package/dist/{chunk-QDKLIYGR.js.map → chunk-XZ5DA5X4.js.map} +1 -1
  77. package/dist/{chunk-TBOE7DG5.js → chunk-YDYHURVA.js} +2 -2
  78. package/dist/{chunk-75I3DHVU.js → chunk-ZFSV65M5.js} +3 -3
  79. package/dist/{chunk-RFE4EBUP.js → chunk-ZHKE637Q.js} +3 -3
  80. package/dist/{chunk-XFRSOUBJ.js → chunk-ZKOI6PH4.js} +67 -56
  81. package/dist/chunk-ZKOI6PH4.js.map +1 -0
  82. package/dist/{cleanup-Q6AQXSRS.js → cleanup-7VJ4KUMR.js} +28 -27
  83. package/dist/{cleanup-Q6AQXSRS.js.map → cleanup-7VJ4KUMR.js.map} +1 -1
  84. package/dist/cli-HTBQ4DSS.js +18 -0
  85. package/dist/{command-hook-installer-2ZFJJGKY.js → command-hook-installer-PTTVCWH7.js} +4 -4
  86. package/dist/{config-DOPH6NOU.js → config-CREG6OI3.js} +9 -9
  87. package/dist/{diff-DZJLSTRO.js → diff-UYXZID2B.js} +12 -12
  88. package/dist/{digest-QTNPN2E6.js → digest-I5Z6W2EP.js} +10 -10
  89. package/dist/{fork-HDJ54HH2.js → fork-5AOB45N2.js} +26 -25
  90. package/dist/{fork-HDJ54HH2.js.map → fork-5AOB45N2.js.map} +1 -1
  91. package/dist/history-3LFLB4FO.js +55 -0
  92. package/dist/{hook-V7JNOY2E.js → hook-SJOCXGLD.js} +14 -14
  93. package/dist/{hydrate-NGZ26R2Y.js → hydrate-YEJCVZZ7.js} +29 -12
  94. package/dist/hydrate-YEJCVZZ7.js.map +1 -0
  95. package/dist/{init-BQIBLPP5.js → init-6F67TVM7.js} +9 -9
  96. package/dist/{install-skills-LCXJIHK4.js → install-skills-ESCNSPBY.js} +4 -4
  97. package/dist/install-skills-bin.js +3 -3
  98. package/dist/{list-4KATUVO3.js → list-NHZUEVTA.js} +32 -12
  99. package/dist/list-NHZUEVTA.js.map +1 -0
  100. package/dist/{move-LYO5J2ZH.js → move-JICK4XA5.js} +25 -23
  101. package/dist/{move-LYO5J2ZH.js.map → move-JICK4XA5.js.map} +1 -1
  102. package/dist/{note-7XR4YA6R.js → note-KZMWEGZP.js} +11 -11
  103. package/dist/{overlaps-5WKQT3LX.js → overlaps-O353DOQI.js} +9 -9
  104. package/dist/{pin-GJM3KSG7.js → pin-7CON36HF.js} +11 -11
  105. package/dist/{pr-YO7XSYUA.js → pr-4KUGJDZ2.js} +14 -14
  106. package/dist/{prune-BUGPJLLO.js → prune-KQ77276H.js} +27 -26
  107. package/dist/{prune-BUGPJLLO.js.map → prune-KQ77276H.js.map} +1 -1
  108. package/dist/{pty-host-O5H4FKWF.js → pty-host-MSCJGN5G.js} +10 -10
  109. package/dist/{read-XMU63E3F.js → read-J42H6OVE.js} +10 -10
  110. package/dist/{recent-73SHXIFU.js → recent-BZQP3RKA.js} +10 -10
  111. package/dist/recent-BZQP3RKA.js.map +1 -0
  112. package/dist/{remove-ZXDVVOHF.js → remove-GRRKSGS7.js} +28 -27
  113. package/dist/{remove-ZXDVVOHF.js.map → remove-GRRKSGS7.js.map} +1 -1
  114. package/dist/report-BSETCIYQ.js +18 -0
  115. package/dist/{restart-S4D7LD3A.js → restart-REFEZGH2.js} +11 -11
  116. package/dist/{resume-YIIQIJCS.js → resume-RGP2BCKL.js} +10 -10
  117. package/dist/resume-RGP2BCKL.js.map +1 -0
  118. package/dist/{run-WN2O7EX7.js → run-WYDFP6EL.js} +7 -7
  119. package/dist/{screen-LX6XHNYN.js → screen-YWJLDINC.js} +11 -11
  120. package/dist/{search-DCDJVBKW.js → search-M4DU4GUB.js} +7 -7
  121. package/dist/{section-XD46IHMW.js → section-AYN6EHPO.js} +11 -11
  122. package/dist/{send-P4NILVGL.js → send-O3SI53O7.js} +16 -16
  123. package/dist/{sessions-POSS5NRV.js → sessions-4BASM7AC.js} +20 -20
  124. package/dist/{snooze-ONAR2WNP.js → snooze-F3NT7PZO.js} +10 -10
  125. package/dist/{start-6YKHYYX5.js → start-7OQNLGDU.js} +11 -11
  126. package/dist/{state-NV4FQNMT.js → state-NRK5CBXZ.js} +5 -5
  127. package/dist/{status-KYRZRITO.js → status-HLOEWXJ3.js} +8 -8
  128. package/dist/{stop-QU372WAY.js → stop-YRGANOU7.js} +11 -11
  129. package/dist/{sync-JR24WVJ7.js → sync-YDK5R7XQ.js} +27 -26
  130. package/dist/{sync-JR24WVJ7.js.map → sync-YDK5R7XQ.js.map} +1 -1
  131. package/dist/{time-FYXXC5XC.js → time-T5RBWMDN.js} +12 -12
  132. package/dist/time-actions-FLLFYEVY.js +15 -0
  133. package/dist/time-actions-FLLFYEVY.js.map +1 -0
  134. package/dist/{timesheet-57EG6ABE.js → timesheet-UB6OASXF.js} +14 -14
  135. package/dist/{todo-UDYY4QTY.js → todo-OE62TNES.js} +6 -6
  136. package/dist/{tree-RDPJOIDT.js → tree-DRDDTXQ2.js} +42 -24
  137. package/dist/tree-DRDDTXQ2.js.map +1 -0
  138. package/dist/{update-OZXFQMYI.js → update-S57YQGPG.js} +13 -13
  139. package/dist/{wait-3MQST3FP.js → wait-2CRY7XQ5.js} +11 -11
  140. package/dist/wd-bin.js +9 -9
  141. package/dist/web/assets/{PtyView-DBG0B_A4.js → PtyView-DAqdRe88.js} +2 -2
  142. package/dist/web/assets/{PtyView-DBG0B_A4.js.map → PtyView-DAqdRe88.js.map} +1 -1
  143. package/dist/web/assets/index-CDYWfNo_.css +1 -0
  144. package/dist/web/assets/index-DGXvjEJe.js +119 -0
  145. package/dist/web/assets/index-DGXvjEJe.js.map +1 -0
  146. package/dist/web/index.html +2 -2
  147. package/dist/{web-DSJT4HSI.js → web-OG6ZPJON.js} +471 -298
  148. package/dist/web-OG6ZPJON.js.map +1 -0
  149. package/npm-shrinkwrap.json +6 -6
  150. package/package.json +2 -2
  151. package/dist/chunk-5EGGS6Y6.js.map +0 -1
  152. package/dist/chunk-CFO2JMKW.js.map +0 -1
  153. package/dist/chunk-CGMFZOS5.js.map +0 -1
  154. package/dist/chunk-DMUZIBPM.js.map +0 -1
  155. package/dist/chunk-HWIRY3WO.js.map +0 -1
  156. package/dist/chunk-KPGR4JRE.js +0 -9
  157. package/dist/chunk-MEK7BIVS.js.map +0 -1
  158. package/dist/chunk-NM4SABMQ.js.map +0 -1
  159. package/dist/chunk-PIEYQBWL.js.map +0 -1
  160. package/dist/chunk-ROLNJOSE.js.map +0 -1
  161. package/dist/chunk-TKL4B2OI.js.map +0 -1
  162. package/dist/chunk-WMOXIFBF.js.map +0 -1
  163. package/dist/chunk-XFRSOUBJ.js.map +0 -1
  164. package/dist/chunk-Y2HNFNCS.js.map +0 -1
  165. package/dist/cli-X4Z2UYJZ.js +0 -18
  166. package/dist/hydrate-NGZ26R2Y.js.map +0 -1
  167. package/dist/list-4KATUVO3.js.map +0 -1
  168. package/dist/recent-73SHXIFU.js.map +0 -1
  169. package/dist/report-TEIRRYH4.js +0 -16
  170. package/dist/resume-YIIQIJCS.js.map +0 -1
  171. package/dist/time-actions-L3OWQHEX.js +0 -15
  172. package/dist/tree-RDPJOIDT.js.map +0 -1
  173. package/dist/web/assets/index-DoT3bzyK.css +0 -1
  174. package/dist/web/assets/index-rLMVfFdt.js +0 -119
  175. package/dist/web/assets/index-rLMVfFdt.js.map +0 -1
  176. package/dist/web-DSJT4HSI.js.map +0 -1
  177. /package/dist/{answer-UWI22VOE.js.map → answer-OA2WTJCZ.js.map} +0 -0
  178. /package/dist/{attach-HYHEXW5J.js.map → attach-5GXPA7BV.js.map} +0 -0
  179. /package/dist/{block-A25XE7HC.js.map → block-VINEC2MW.js.map} +0 -0
  180. /package/dist/{broadcast-AG7P5BKQ.js.map → broadcast-ENAJDNVU.js.map} +0 -0
  181. /package/dist/{catchup-VTGG7BAR.js.map → catchup-NC4WHSBF.js.map} +0 -0
  182. /package/dist/{chunk-XDBMLTFY.js.map → chunk-3HBHM2VX.js.map} +0 -0
  183. /package/dist/{chunk-7OBX4MJY.js.map → chunk-3KOYICWB.js.map} +0 -0
  184. /package/dist/{chunk-ZSXMIPU4.js.map → chunk-3Q6S6TRY.js.map} +0 -0
  185. /package/dist/{chunk-3D63HGOG.js.map → chunk-4ETSGWB2.js.map} +0 -0
  186. /package/dist/{chunk-IVPV6VPW.js.map → chunk-4VNUU6S6.js.map} +0 -0
  187. /package/dist/{chunk-7W6I4VXA.js.map → chunk-65YMLGQB.js.map} +0 -0
  188. /package/dist/{chunk-C3E7XETB.js.map → chunk-6KM2C2UO.js.map} +0 -0
  189. /package/dist/{chunk-R5QLAXNJ.js.map → chunk-6SJOM62D.js.map} +0 -0
  190. /package/dist/{chunk-YIODX4PM.js.map → chunk-AKGDIBSE.js.map} +0 -0
  191. /package/dist/{chunk-HWP4NEYL.js.map → chunk-BCPH3SZM.js.map} +0 -0
  192. /package/dist/{chunk-4P533364.js.map → chunk-BO3BNBBE.js.map} +0 -0
  193. /package/dist/{chunk-KPGR4JRE.js.map → chunk-BUCSF4QS.js.map} +0 -0
  194. /package/dist/{chunk-KNYEQLIF.js.map → chunk-BURVDS7U.js.map} +0 -0
  195. /package/dist/{chunk-MF6LDFDW.js.map → chunk-C224P3D3.js.map} +0 -0
  196. /package/dist/{chunk-B3HIALTV.js.map → chunk-CGJGWALF.js.map} +0 -0
  197. /package/dist/{chunk-CALBDLDJ.js.map → chunk-DHBKD2TG.js.map} +0 -0
  198. /package/dist/{chunk-EOETYHTD.js.map → chunk-FRCV6NWT.js.map} +0 -0
  199. /package/dist/{chunk-GOHSGTR5.js.map → chunk-FXHTSSV2.js.map} +0 -0
  200. /package/dist/{chunk-NER44YB7.js.map → chunk-FXIEYT6L.js.map} +0 -0
  201. /package/dist/{chunk-WRUQPVTS.js.map → chunk-GDCTRDUY.js.map} +0 -0
  202. /package/dist/{chunk-DRYY4BPY.js.map → chunk-I2TUJLI4.js.map} +0 -0
  203. /package/dist/{chunk-IJ6YYFXY.js.map → chunk-IOSB2HMV.js.map} +0 -0
  204. /package/dist/{chunk-YV2MPIFG.js.map → chunk-JDW4GXEA.js.map} +0 -0
  205. /package/dist/{chunk-LMLVJEY7.js.map → chunk-L3JK6V5I.js.map} +0 -0
  206. /package/dist/{chunk-T6YP6GPK.js.map → chunk-L7OQ7O4K.js.map} +0 -0
  207. /package/dist/{chunk-KPGO5VFR.js.map → chunk-M2TQNGMD.js.map} +0 -0
  208. /package/dist/{chunk-Y33WKESH.js.map → chunk-MAFJE26N.js.map} +0 -0
  209. /package/dist/{chunk-CIAXJC5H.js.map → chunk-MM32YZT6.js.map} +0 -0
  210. /package/dist/{chunk-OB63GDEC.js.map → chunk-OESAI3XS.js.map} +0 -0
  211. /package/dist/{chunk-722K7XWW.js.map → chunk-PLOO7NQU.js.map} +0 -0
  212. /package/dist/{chunk-B2Q5BYOD.js.map → chunk-R7334LAS.js.map} +0 -0
  213. /package/dist/{chunk-H7KH5CDM.js.map → chunk-SBRHGEFP.js.map} +0 -0
  214. /package/dist/{chunk-OBFHGN7Q.js.map → chunk-WOAFMVKW.js.map} +0 -0
  215. /package/dist/{chunk-TBOE7DG5.js.map → chunk-YDYHURVA.js.map} +0 -0
  216. /package/dist/{chunk-75I3DHVU.js.map → chunk-ZFSV65M5.js.map} +0 -0
  217. /package/dist/{chunk-RFE4EBUP.js.map → chunk-ZHKE637Q.js.map} +0 -0
  218. /package/dist/{cli-X4Z2UYJZ.js.map → cli-HTBQ4DSS.js.map} +0 -0
  219. /package/dist/{command-hook-installer-2ZFJJGKY.js.map → command-hook-installer-PTTVCWH7.js.map} +0 -0
  220. /package/dist/{config-DOPH6NOU.js.map → config-CREG6OI3.js.map} +0 -0
  221. /package/dist/{diff-DZJLSTRO.js.map → diff-UYXZID2B.js.map} +0 -0
  222. /package/dist/{digest-QTNPN2E6.js.map → digest-I5Z6W2EP.js.map} +0 -0
  223. /package/dist/{install-skills-LCXJIHK4.js.map → history-3LFLB4FO.js.map} +0 -0
  224. /package/dist/{hook-V7JNOY2E.js.map → hook-SJOCXGLD.js.map} +0 -0
  225. /package/dist/{init-BQIBLPP5.js.map → init-6F67TVM7.js.map} +0 -0
  226. /package/dist/{report-TEIRRYH4.js.map → install-skills-ESCNSPBY.js.map} +0 -0
  227. /package/dist/{note-7XR4YA6R.js.map → note-KZMWEGZP.js.map} +0 -0
  228. /package/dist/{overlaps-5WKQT3LX.js.map → overlaps-O353DOQI.js.map} +0 -0
  229. /package/dist/{pin-GJM3KSG7.js.map → pin-7CON36HF.js.map} +0 -0
  230. /package/dist/{pr-YO7XSYUA.js.map → pr-4KUGJDZ2.js.map} +0 -0
  231. /package/dist/{pty-host-O5H4FKWF.js.map → pty-host-MSCJGN5G.js.map} +0 -0
  232. /package/dist/{read-XMU63E3F.js.map → read-J42H6OVE.js.map} +0 -0
  233. /package/dist/{time-actions-L3OWQHEX.js.map → report-BSETCIYQ.js.map} +0 -0
  234. /package/dist/{restart-S4D7LD3A.js.map → restart-REFEZGH2.js.map} +0 -0
  235. /package/dist/{run-WN2O7EX7.js.map → run-WYDFP6EL.js.map} +0 -0
  236. /package/dist/{screen-LX6XHNYN.js.map → screen-YWJLDINC.js.map} +0 -0
  237. /package/dist/{search-DCDJVBKW.js.map → search-M4DU4GUB.js.map} +0 -0
  238. /package/dist/{section-XD46IHMW.js.map → section-AYN6EHPO.js.map} +0 -0
  239. /package/dist/{send-P4NILVGL.js.map → send-O3SI53O7.js.map} +0 -0
  240. /package/dist/{sessions-POSS5NRV.js.map → sessions-4BASM7AC.js.map} +0 -0
  241. /package/dist/{snooze-ONAR2WNP.js.map → snooze-F3NT7PZO.js.map} +0 -0
  242. /package/dist/{start-6YKHYYX5.js.map → start-7OQNLGDU.js.map} +0 -0
  243. /package/dist/{state-NV4FQNMT.js.map → state-NRK5CBXZ.js.map} +0 -0
  244. /package/dist/{status-KYRZRITO.js.map → status-HLOEWXJ3.js.map} +0 -0
  245. /package/dist/{stop-QU372WAY.js.map → stop-YRGANOU7.js.map} +0 -0
  246. /package/dist/{time-FYXXC5XC.js.map → time-T5RBWMDN.js.map} +0 -0
  247. /package/dist/{timesheet-57EG6ABE.js.map → timesheet-UB6OASXF.js.map} +0 -0
  248. /package/dist/{todo-UDYY4QTY.js.map → todo-OE62TNES.js.map} +0 -0
  249. /package/dist/{update-OZXFQMYI.js.map → update-S57YQGPG.js.map} +0 -0
  250. /package/dist/{wait-3MQST3FP.js.map → wait-2CRY7XQ5.js.map} +0 -0
package/README.md CHANGED
@@ -187,7 +187,9 @@ Want to look around first? `work web --demo` opens the real app on a made-up wor
187
187
  | **Jira** | Your assigned issues, each with **Start**. Optionally, newly assigned issues start themselves: Claude picks the right project, or asks you when it isn't sure. |
188
188
  | **Fork** | A new branch and worktree from where a session is, with a new Claude that gets a summary of the conversation so far. |
189
189
  | **Stacked sessions** | A session made from another session's branch follows it: it takes in the parent's new commits when clean, and moves onto main when the parent merges. |
190
- | **Groups (multi-repo)** | One worktree folder spanning several repos (backend + frontend), one Claude seeing all of them, with a combined `CLAUDE.md` written for the group. |
190
+ | **Groups (multi-repo)** | One worktree folder spanning several repos (backend + frontend), one Claude seeing all of them, with a combined `CLAUDE.md` written for the group. A group is only the starting set: the session keeps its own list of repos. |
191
+ | **Add a repo…** | Halfway through, the work needs the docs repo too: ⋯ → **Add a repo…** (`⇧A`) on a session folder checks it out into the folder on the session's branch (the branch it already has, else a new one from the base you pick). Claude is told and sees it at once; nothing restarts, and the Diff tab keeps its earlier turns. From a terminal: `work add-repo docs`. |
192
+ | **Session folders (experimental)** | With `"sessionFolders": true` in the config, every new session is a folder, a single repo too, so any of them can take another repo later. Its `CLAUDE.md` imports each repo's own. Off by default; existing sessions keep their layout. |
191
193
  | **Local settings copied** | Git-ignored files you need to run the app (`appsettings.Development.json`, `.env.local`) are copied into every new worktree. |
192
194
  | **Dev server and preview** | Each worktree gets its own port; start its dev server from the session and open the preview. |
193
195
  | **Repos & groups page** | Every git repo in your folders, to add with one click, and groups to make from them. |
@@ -244,6 +246,7 @@ Want to look around first? `work web --demo` opens the real app on a made-up wor
244
246
  | `Ctrl+T` | Search the code (desktop app) | `f` | Fork |
245
247
  | `/` | Search sessions | `⇧S` | Ship |
246
248
  | `g i`, `g s`, `g d` | Inbox, Sessions, Today | `F2` | Rename |
249
+ | | | `⇧A` | Add a repo (a session folder) |
247
250
 
248
251
  ---
249
252
 
@@ -260,6 +263,7 @@ work digest --since yesterday # what each session did, as Markd
260
263
  work search "rate limit" # every conversation, live and archived
261
264
  work read / screen / send -m "…" / wait # another session's messages, screen; message it; wait for its turn
262
265
  work fork feat/login-v2 # fork the session for this folder
266
+ work add-repo docs [--base main] # check another repo out into this session's folder
263
267
  work update # bring the branch up to date from main (or its parent)
264
268
  work snooze --for 2h | pin | note | block # the same as the app's menu
265
269
  work pr reply / post # drafts and posting review replies (Claude uses these)
@@ -306,6 +310,7 @@ Most of it is set in the app (Welcome, Repos & groups). Everything lives in `~/.
306
310
  | `sleepIdleAfterMinutes` | When an unused Claude is stopped to free memory (default 120; 0 = never). |
307
311
  | `time` | The Time tab: hours a day, tickets for gaps and days off, Tempo and Outlook settings. |
308
312
  | `aiCommand`, `aiCommandFlags` | The agent new sessions run (default Claude Code). |
313
+ | `sessionFolders` | Experimental, off by default: `true` makes every new session a folder of repos (a single repo too), so **Add a repo…** works on all of them. |
309
314
 
310
315
  ---
311
316
 
@@ -0,0 +1,384 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ addRepoRefusal,
4
+ addedRepoNote
5
+ } from "./chunk-3IOIY4W6.js";
6
+ import {
7
+ createSingleWorktree,
8
+ removeSingleWorktree,
9
+ writeSessionInstructions
10
+ } from "./chunk-VES42DOD.js";
11
+ import "./chunk-VGQV4LX7.js";
12
+ import "./chunk-KUCMJHQW.js";
13
+ import "./chunk-PSUJZUYX.js";
14
+ import "./chunk-5WM24P5N.js";
15
+ import "./chunk-3GIH4WTA.js";
16
+ import {
17
+ sessionFromArgs
18
+ } from "./chunk-GDCTRDUY.js";
19
+ import "./chunk-6AQRYLOB.js";
20
+ import "./chunk-R2SR3PER.js";
21
+ import {
22
+ git,
23
+ localBranchExists,
24
+ remoteBranchExists
25
+ } from "./chunk-AKGDIBSE.js";
26
+ import {
27
+ callWorkWeb
28
+ } from "./chunk-MAFJE26N.js";
29
+ import "./chunk-BO3BNBBE.js";
30
+ import {
31
+ getCommentFileStore,
32
+ moveStoreComments
33
+ } from "./chunk-XZ5DA5X4.js";
34
+ import "./chunk-ZSHWP2VS.js";
35
+ import "./chunk-HUXS3VAI.js";
36
+ import {
37
+ appendSessionRepo,
38
+ commentStoreIdForScope,
39
+ findSessionById,
40
+ manifestPath,
41
+ scopeHashForPaths
42
+ } from "./chunk-RFQRVXFQ.js";
43
+ import {
44
+ agentFor
45
+ } from "./chunk-JCMGIW7G.js";
46
+ import {
47
+ spawn_default
48
+ } from "./chunk-RCYI7SRA.js";
49
+ import "./chunk-NEJVK5CF.js";
50
+ import {
51
+ sessionIdFor
52
+ } from "./chunk-FXHTSSV2.js";
53
+ import {
54
+ collectingReporter,
55
+ report,
56
+ withReporter
57
+ } from "./chunk-S4ILKUFN.js";
58
+ import "./chunk-FRCV6NWT.js";
59
+ import {
60
+ atomicWriteFile,
61
+ ensureFile,
62
+ loadConfig,
63
+ withFileLock
64
+ } from "./chunk-A53IRCOO.js";
65
+
66
+ // src/commands/add-repo.ts
67
+ import chalk from "chalk";
68
+
69
+ // src/core/worktree/add-repo.ts
70
+ import fs2 from "fs";
71
+ import path from "path";
72
+
73
+ // src/core/diff/scope-migrate.ts
74
+ import fs from "fs";
75
+ function gitSync(repo, args, input) {
76
+ const r = spawn_default.sync("git", args, { cwd: repo, encoding: "utf-8", windowsHide: true, ...input !== void 0 ? { input } : {} });
77
+ return { ok: r.status === 0, out: (r.stdout ?? "").toString(), err: (r.stderr ?? "").toString().trim() };
78
+ }
79
+ function scopeRefs(repo, hash) {
80
+ const r = gitSync(repo, ["for-each-ref", "--format=%(refname) %(objectname)", `refs/wd/${hash}/`]);
81
+ if (!r.ok) return null;
82
+ return r.out.split(/\r?\n/).map((l) => l.trim().split(" ")).filter((p) => p.length === 2 && !!p[0] && !!p[1]).map(([name, sha]) => ({ name, sha })).filter((x) => /^\d+$/.test(x.name.slice(`refs/wd/${hash}/`.length)));
83
+ }
84
+ var idOf = (hash, ref) => Number(ref.name.slice(`refs/wd/${hash}/`.length));
85
+ function refTransaction(repo, lines) {
86
+ if (lines.length === 0) return { ok: true, err: "" };
87
+ const r = gitSync(repo, ["update-ref", "--stdin"], ["start", ...lines, "commit", ""].join("\n"));
88
+ return { ok: r.ok, err: r.err };
89
+ }
90
+ function readEntries(hash) {
91
+ const file = manifestPath(hash);
92
+ if (!fs.existsSync(file)) return [];
93
+ try {
94
+ const parsed = JSON.parse(fs.readFileSync(file, "utf8"));
95
+ return parsed.version === 1 && Array.isArray(parsed.entries) ? parsed.entries : null;
96
+ } catch {
97
+ return null;
98
+ }
99
+ }
100
+ var empty = JSON.stringify({ version: 1, entries: [] });
101
+ var realIo = { writeManifest: atomicWriteFile, removeManifest: (file) => fs.unlinkSync(file) };
102
+ async function migrateScope(oldPaths, newPaths, io = realIo) {
103
+ const from = scopeHashForPaths(oldPaths);
104
+ const to = scopeHashForPaths(newPaths);
105
+ const out = { from, to, manifest: false, refs: 0, comments: 0, problems: [] };
106
+ if (from === to) return out;
107
+ const comments = moveStoreComments(commentStoreIdForScope(from), commentStoreIdForScope(to));
108
+ out.comments = comments.moved;
109
+ if (comments.kept) out.problems.push(`${comments.kept} comment(s) of the old page kept there: the new one has the same id`);
110
+ const oldFile = manifestPath(from);
111
+ if (!fs.existsSync(oldFile)) return out;
112
+ const newFile = manifestPath(to);
113
+ ensureFile(newFile, empty);
114
+ await withFileLock(
115
+ newFile,
116
+ () => withFileLock(oldFile, () => {
117
+ moveUnderLocks(oldPaths, newPaths, from, to, out, io);
118
+ })
119
+ );
120
+ return out;
121
+ }
122
+ function moveUnderLocks(oldPaths, newPaths, from, to, out, io) {
123
+ const old = readEntries(from);
124
+ const already = readEntries(to);
125
+ if (old === null || already === null) {
126
+ out.problems.push(`the turn list ${old === null ? manifestPath(from) : manifestPath(to)} can't be read: left as it is`);
127
+ return;
128
+ }
129
+ if (old.length === 0) return;
130
+ if (already.length) out.problems.push(`${already.length} turn(s) taken under the new paths meanwhile give way to the old turns`);
131
+ const repos = oldPaths.filter((p) => fs.existsSync(p));
132
+ const newRepos = newPaths.filter((p) => fs.existsSync(p));
133
+ const listed = /* @__PURE__ */ new Map();
134
+ for (const repo of /* @__PURE__ */ new Set([...repos, ...newRepos])) {
135
+ const o = repos.includes(repo) ? scopeRefs(repo, from) : [];
136
+ const m = newRepos.includes(repo) ? scopeRefs(repo, to) : [];
137
+ if (o === null || m === null) {
138
+ out.problems.push(`git couldn't list the turns' snapshots in ${repo}: nothing moved`);
139
+ return;
140
+ }
141
+ listed.set(repo, { old: o, mine: m });
142
+ }
143
+ const done = [];
144
+ const undoAll = () => {
145
+ for (const d of done) refTransaction(d.repo, d.undo);
146
+ };
147
+ for (const [repo, { old: o, mine }] of listed) {
148
+ const lines = [];
149
+ const undo = [];
150
+ const theirs = new Map(mine.map((r2) => [idOf(to, r2), r2]));
151
+ for (const ref of o) {
152
+ const name = `refs/wd/${to}/${idOf(from, ref)}`;
153
+ const over = theirs.get(idOf(from, ref));
154
+ theirs.delete(idOf(from, ref));
155
+ lines.push(over ? `update ${name} ${ref.sha} ${over.sha}` : `create ${name} ${ref.sha}`);
156
+ undo.push(over ? `update ${name} ${over.sha} ${ref.sha}` : `delete ${name} ${ref.sha}`);
157
+ }
158
+ for (const ref of theirs.values()) {
159
+ lines.push(`delete ${ref.name} ${ref.sha}`);
160
+ undo.push(`create ${ref.name} ${ref.sha}`);
161
+ }
162
+ const r = refTransaction(repo, lines);
163
+ if (!r.ok) {
164
+ undoAll();
165
+ out.problems.push(`couldn't copy the turns' snapshots in ${repo} (${r.err || "git failed"}): nothing moved`);
166
+ return;
167
+ }
168
+ done.push({ repo, undo });
169
+ }
170
+ try {
171
+ io.writeManifest(manifestPath(to), JSON.stringify({ version: 1, scopeHash: to, entries: old }, null, 2));
172
+ } catch (err) {
173
+ undoAll();
174
+ out.problems.push(`couldn't write the turn list (${err.message}): nothing moved`);
175
+ return;
176
+ }
177
+ out.manifest = true;
178
+ for (const [repo, { old: o }] of listed) {
179
+ const r = refTransaction(
180
+ repo,
181
+ o.map((ref) => `delete ${ref.name} ${ref.sha}`)
182
+ );
183
+ if (r.ok) out.refs += o.length;
184
+ else out.problems.push(`the old snapshots' refs stay in ${repo} (${r.err || "git failed"}); the turns are moved`);
185
+ }
186
+ try {
187
+ io.removeManifest(manifestPath(from));
188
+ } catch (err) {
189
+ out.problems.push(`the old turn list stays at ${manifestPath(from)} (${err.message}); the turns are moved`);
190
+ }
191
+ }
192
+
193
+ // src/core/worktree/add-repo.ts
194
+ var AddRepoRefused = class extends Error {
195
+ constructor(message, status) {
196
+ super(message);
197
+ this.status = status;
198
+ }
199
+ };
200
+ function checkoutIntoSession(repoPath, worktree, branch, config, base) {
201
+ const reports = collectingReporter();
202
+ const warnings = [];
203
+ const out = withReporter(reports, () => {
204
+ const fetched = git(["fetch", "--quiet"], repoPath);
205
+ if (fetched.exitCode !== 0) warnings.push(`couldn't fetch ${path.basename(repoPath)}: ${fetched.stderr || "git fetch failed"}`);
206
+ const exists = localBranchExists(branch, repoPath) || remoteBranchExists(branch, repoPath);
207
+ const created = {};
208
+ const useBase = exists ? void 0 : base;
209
+ if (exists && base) warnings.push(`${branch} exists already in this repo: checked out as it is (not from ${base})`);
210
+ const ok = createSingleWorktree(repoPath, worktree, branch, config, useBase, false, fetched.exitCode === 0, created);
211
+ if (!ok) return null;
212
+ const from = exists ? void 0 : useBase ?? created.from;
213
+ return { ok: true, created: !exists, ...from ? { from } : {}, warnings };
214
+ });
215
+ for (const e of reports.entries) {
216
+ if (e.level === "warn" && e.text.trim()) warnings.push(e.text.trim());
217
+ else if (e.level !== "error") report(e.level, e.text);
218
+ }
219
+ if (out) return out;
220
+ for (const w of warnings) report("warn", ` ${w}`);
221
+ const why = reports.errors().map((e) => e.trim()).filter(Boolean).join(" ");
222
+ return { ok: false, error: why || "git could not check it out" };
223
+ }
224
+ function undoCheckout(repoPath, worktree, branch, created) {
225
+ const removed = removeSingleWorktree(repoPath, worktree, branch, true);
226
+ if (removed && created) git(["branch", "-D", branch], repoPath);
227
+ return removed && !fs2.existsSync(worktree);
228
+ }
229
+ function updateInstructions(s, folder, config) {
230
+ const agent = agentFor(config, s);
231
+ if (!agent.instructionsImport) return { file: agent.instructionsFile, imported: null };
232
+ const imported = writeSessionInstructions(
233
+ folder,
234
+ s.paths.map((p) => path.basename(p)),
235
+ agent.instructionsFile,
236
+ agent.instructionsImport
237
+ );
238
+ return { file: agent.instructionsFile, imported };
239
+ }
240
+ var defaultAddRepoDeps = {
241
+ config: loadConfig,
242
+ session: findSessionById,
243
+ checkout: checkoutIntoSession,
244
+ undoCheckout,
245
+ record: appendSessionRepo,
246
+ migrate: migrateScope,
247
+ instructions: updateInstructions
248
+ };
249
+ async function addRepoToSession(sessionId, alias, opts = {}, deps = {}) {
250
+ const d = { ...defaultAddRepoDeps, ...deps };
251
+ const config = d.config();
252
+ if (!config) throw new Error("no config: run `work init` first");
253
+ const base = opts.base?.trim() || void 0;
254
+ const s = d.session(sessionId);
255
+ const refusal = addRepoRefusal(s, alias, config, (p) => fs2.existsSync(p), base);
256
+ if (refusal || !s) throw new AddRepoRefused(refusal?.error ?? "unknown session", refusal?.status ?? 404);
257
+ const repoPath = config.repos[alias];
258
+ const folder = path.dirname(s.paths[0]);
259
+ const repoFolder = path.basename(repoPath);
260
+ const worktree = path.join(folder, repoFolder);
261
+ report("step", `[${alias}] (${repoFolder}) into ${folder}:`);
262
+ const made = d.checkout(repoPath, worktree, s.branch, config, base);
263
+ if (!made.ok) throw new Error(made.error);
264
+ const warnings = [...made.warnings];
265
+ let recorded;
266
+ try {
267
+ recorded = d.record(sessionIdFor(s), alias, worktree, made.from, config, !!agentFor(config, s).instructionsImport);
268
+ if (!recorded) throw new Error("the session is gone");
269
+ } catch (err) {
270
+ const undone = d.undoCheckout(repoPath, worktree, s.branch, made.created);
271
+ throw new Error(
272
+ `couldn't record ${alias} on the session (${err.message})` + (undone ? "; its checkout was removed again" : `; its checkout is still at ${worktree}: remove it by hand before trying again`),
273
+ { cause: err }
274
+ );
275
+ }
276
+ try {
277
+ const moved = await d.migrate(recorded.before, recorded.session.paths);
278
+ for (const p of moved.problems) warnings.push(`the Diff tab's turns: ${p}`);
279
+ } catch (err) {
280
+ warnings.push(`couldn't carry the Diff tab's turns over: ${err.message}`);
281
+ }
282
+ let imported = false;
283
+ try {
284
+ const r = d.instructions(recorded.session, folder, config);
285
+ if (r.imported === null) warnings.push(`its agent can't import files into ${r.file}: the session folder's file is left as it is`);
286
+ else {
287
+ imported = r.imported.includes(repoFolder);
288
+ report("success", ` ${r.file} in the session folder imports ${r.imported.length} repo file(s)`);
289
+ }
290
+ } catch (err) {
291
+ warnings.push(`couldn't update the session folder's instructions file: ${err.message}`);
292
+ }
293
+ return { alias, path: worktree, branch: s.branch, created: made.created, ...made.from ? { from: made.from } : {}, imported, warnings };
294
+ }
295
+
296
+ // src/commands/add-repo.ts
297
+ var SETTLE_MS = 10 * 6e4;
298
+ function printDone(s, r, alias) {
299
+ const how = r.created ? `a new branch ${r.branch}${r.from ? ` from ${r.from}` : ""}` : `its branch ${r.branch}`;
300
+ console.log(chalk.green(`Added ${alias} to ${s.target} \xB7 ${s.branch}: ${r.path} (${how})`));
301
+ for (const w of r.warnings ?? []) console.log(chalk.yellow(` ${w}`));
302
+ }
303
+ function addRepoWireOf(r) {
304
+ return {
305
+ ok: true,
306
+ path: r.path,
307
+ branch: r.branch,
308
+ created: r.created,
309
+ ...r.from ? { from: r.from } : {},
310
+ imported: r.imported,
311
+ warnings: r.warnings
312
+ };
313
+ }
314
+ var addRepoCommand = {
315
+ command: "add-repo <alias> [target] [branch]",
316
+ describe: "Add a repo to a session folder: checked out there on the session's branch, its Claude told (default: the session for this folder)",
317
+ builder: (yargs) => yargs.positional("alias", { type: "string", describe: "The repo to add (an alias from your config)", demandOption: true }).positional("target", { type: "string", describe: "Repo alias or group (default: the session for this folder)" }).positional("branch", { type: "string", describe: "Its branch" }).option("base", {
318
+ type: "string",
319
+ describe: "Branch to make the session's branch from when the repo hasn't got it (default: its checkout's)"
320
+ }).option("session-id", { type: "string", hidden: true, describe: "The session, by id (work web)" }).option("in-process", { type: "boolean", hidden: true, default: false, describe: "Run it here, without telling Claude (work web)" }).option("json", { type: "boolean", hidden: true, default: false, describe: "The outcome as JSON on stdout" }),
321
+ handler: async (argv) => {
322
+ const alias = String(argv.alias);
323
+ const base = typeof argv.base === "string" && argv.base.trim() ? argv.base.trim() : void 0;
324
+ const asJson = argv.json === true;
325
+ const fail = (error, status) => {
326
+ if (asJson) console.log(JSON.stringify({ error, ...status ? { status } : {} }));
327
+ else console.error(chalk.red(error));
328
+ process.exitCode = 1;
329
+ };
330
+ const failWith = (err) => fail(err.message, err instanceof AddRepoRefused ? err.status : 500);
331
+ const byId = typeof argv["session-id"] === "string" ? argv["session-id"] : void 0;
332
+ const s = byId ? findSessionById(byId) : sessionFromArgs(argv);
333
+ if (!s) return byId ? fail("unknown session", 404) : void 0;
334
+ const id = sessionIdFor(s);
335
+ if (argv["in-process"] === true) {
336
+ let r2;
337
+ try {
338
+ r2 = await addRepoToSession(id, alias, { base });
339
+ } catch (err) {
340
+ return failWith(err);
341
+ }
342
+ if (asJson) console.log(JSON.stringify(addRepoWireOf(r2)));
343
+ else printDone(s, addRepoWireOf(r2), alias);
344
+ return;
345
+ }
346
+ const viaWeb = await callWorkWeb(
347
+ "POST",
348
+ `/api/sessions/${encodeURIComponent(id)}/repos`,
349
+ { alias, ...base ? { base } : {} },
350
+ SETTLE_MS
351
+ );
352
+ if (viaWeb.ok) {
353
+ if (asJson) console.log(JSON.stringify(viaWeb.body));
354
+ else printDone(s, viaWeb.body, alias);
355
+ return;
356
+ }
357
+ if (viaWeb.status !== 0) return fail(viaWeb.error, viaWeb.status > 0 ? viaWeb.status : void 0);
358
+ let r;
359
+ try {
360
+ r = await addRepoToSession(id, alias, { base });
361
+ } catch (err) {
362
+ return failWith(err);
363
+ }
364
+ let told = true;
365
+ try {
366
+ const after = findSessionById(id) ?? s;
367
+ const file = agentFor(loadConfig() ?? {}, after).instructionsFile;
368
+ getCommentFileStore(id).post({ side: "general", status: "published", author: "user", body: addedRepoNote(r, file) });
369
+ } catch (err) {
370
+ told = false;
371
+ r.warnings.push(`couldn't leave the note for its Claude: ${err.message}`);
372
+ }
373
+ if (asJson) console.log(JSON.stringify(addRepoWireOf(r)));
374
+ else {
375
+ printDone(s, addRepoWireOf(r), alias);
376
+ if (told) console.log(chalk.gray("Its Claude is told on its next turn (work web isn't running)."));
377
+ }
378
+ }
379
+ };
380
+ export {
381
+ addRepoCommand,
382
+ addRepoWireOf
383
+ };
384
+ //# sourceMappingURL=add-repo-5SYBDVG2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/add-repo.ts","../src/core/worktree/add-repo.ts","../src/core/diff/scope-migrate.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport type { AddRepoWire } from '../core/api-types.js';\nimport { agentFor } from '../core/agents/index.js';\nimport { getCommentFileStore } from '../core/comments/comment-file-store.js';\nimport { loadConfig } from '../core/platform/config.js';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { findSessionById } from '../core/sessions/history.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport type { WorktreeSession } from '../core/sessions/session-types.js';\nimport { addedRepoNote, addRepoToSession, AddRepoRefused, type AddRepoResult } from '../core/worktree/add-repo.js';\nimport { sessionFromArgs } from './shared/session-arg.js';\n\n/**\n * `work add-repo <alias>` — check a repo out into a session folder on the\n * session's branch (add-repo.ts). Through a running work web (which runs it\n * off its event loop and tells the session's Claude); with none, here, the\n * note to Claude left in its comments for its next turn.\n */\n\nconst SETTLE_MS = 10 * 60_000;\n\nfunction printDone(s: WorktreeSession, r: Pick<AddRepoWire, 'path' | 'branch' | 'created' | 'from' | 'warnings'>, alias: string): void {\n const how = r.created ? `a new branch ${r.branch}${r.from ? ` from ${r.from}` : ''}` : `its branch ${r.branch}`;\n console.log(chalk.green(`Added ${alias} to ${s.target} · ${s.branch}: ${r.path} (${how})`));\n for (const w of r.warnings ?? []) console.log(chalk.yellow(` ${w}`));\n}\n\n/** The result as the wire carries it (the route's answer, and `--json`). */\nexport function addRepoWireOf(r: AddRepoResult): AddRepoWire {\n return {\n ok: true,\n path: r.path,\n branch: r.branch,\n created: r.created,\n ...(r.from ? { from: r.from } : {}),\n imported: r.imported,\n warnings: r.warnings,\n };\n}\n\nexport const addRepoCommand: CommandModule = {\n command: 'add-repo <alias> [target] [branch]',\n describe:\n \"Add a repo to a session folder: checked out there on the session's branch, its Claude told (default: the session for this folder)\",\n builder: (yargs) =>\n yargs\n .positional('alias', { type: 'string', describe: 'The repo to add (an alias from your config)', demandOption: true })\n .positional('target', { type: 'string', describe: 'Repo alias or group (default: the session for this folder)' })\n .positional('branch', { type: 'string', describe: 'Its branch' })\n .option('base', {\n type: 'string',\n describe: \"Branch to make the session's branch from when the repo hasn't got it (default: its checkout's)\",\n })\n .option('session-id', { type: 'string', hidden: true, describe: 'The session, by id (work web)' })\n .option('in-process', { type: 'boolean', hidden: true, default: false, describe: 'Run it here, without telling Claude (work web)' })\n .option('json', { type: 'boolean', hidden: true, default: false, describe: 'The outcome as JSON on stdout' }),\n handler: async (argv) => {\n const alias = String(argv.alias);\n const base = typeof argv.base === 'string' && argv.base.trim() ? argv.base.trim() : undefined;\n const asJson = argv.json === true;\n const fail = (error: string, status?: number) => {\n if (asJson) console.log(JSON.stringify({ error, ...(status ? { status } : {}) }));\n else console.error(chalk.red(error));\n process.exitCode = 1;\n };\n const failWith = (err: unknown) => fail((err as Error).message, err instanceof AddRepoRefused ? err.status : 500);\n\n const byId = typeof argv['session-id'] === 'string' ? argv['session-id'] : undefined;\n const s = byId ? findSessionById(byId) : sessionFromArgs(argv);\n if (!s) return byId ? fail('unknown session', 404) : undefined;\n const id = sessionIdFor(s);\n\n // work web's child: the add alone; the route tells Claude and the dashboard.\n if (argv['in-process'] === true) {\n let r: AddRepoResult;\n try {\n r = await addRepoToSession(id, alias, { base });\n } catch (err) {\n return failWith(err);\n }\n if (asJson) console.log(JSON.stringify(addRepoWireOf(r)));\n else printDone(s, addRepoWireOf(r), alias);\n return;\n }\n\n const viaWeb = await callWorkWeb<AddRepoWire>(\n 'POST',\n `/api/sessions/${encodeURIComponent(id)}/repos`,\n { alias, ...(base ? { base } : {}) },\n SETTLE_MS,\n );\n if (viaWeb.ok) {\n if (asJson) console.log(JSON.stringify(viaWeb.body));\n else printDone(s, viaWeb.body, alias);\n return;\n }\n if (viaWeb.status !== 0) return fail(viaWeb.error, viaWeb.status > 0 ? viaWeb.status : undefined);\n\n // No work web: here, and the note waits in its comments for its next turn.\n let r: AddRepoResult;\n try {\n r = await addRepoToSession(id, alias, { base });\n } catch (err) {\n return failWith(err);\n }\n // The repo is in: a note that can't be left is said, never reported as the add failing.\n let told = true;\n try {\n const after = findSessionById(id) ?? s;\n const file = agentFor(loadConfig() ?? {}, after).instructionsFile;\n getCommentFileStore(id).post({ side: 'general', status: 'published', author: 'user', body: addedRepoNote(r, file) });\n } catch (err) {\n told = false;\n r.warnings.push(`couldn't leave the note for its Claude: ${(err as Error).message}`);\n }\n if (asJson) console.log(JSON.stringify(addRepoWireOf(r)));\n else {\n printDone(s, addRepoWireOf(r), alias);\n if (told) console.log(chalk.gray(\"Its Claude is told on its next turn (work web isn't running).\"));\n }\n },\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\nimport { agentFor } from '../agents/index.js';\nimport { migrateScope, type ScopeMigration } from '../diff/scope-migrate.js';\nimport { git, localBranchExists, remoteBranchExists } from '../git/git.js';\nimport { loadConfig, type WorkConfig } from '../platform/config.js';\nimport { collectingReporter, report, withReporter } from '../platform/report.js';\nimport { appendSessionRepo, findSessionById } from '../sessions/history.js';\nimport { sessionIdFor } from '../sessions/session-id.js';\nimport type { WorktreeSession } from '../sessions/session-types.js';\nimport { addRepoRefusal } from './add-repo-rules.js';\nimport { writeSessionInstructions } from './session-instructions.js';\nimport { createSingleWorktree, removeSingleWorktree } from './worktree.js';\n\nexport { addedRepoNote, addRepoRefusal, type AddRepoRefusal } from './add-repo-rules.js';\n\n/**\n * Add a repo to a session folder (a group session, or one made with config\n * `sessionFolders`): the repo is checked out into the folder on the\n * session's branch — its existing branch as it is, else a new one from the\n * base given, else from the repo's own checkout's branch (as `work tree`\n * makes one) —, recorded on the session, the Diff tab's turn history moved\n * to the session's new scope (scope-migrate.ts), and the folder's\n * instructions file given its import. The session's Claude already sees the\n * folder: nothing restarts. Every refusal changes nothing; a checkout that\n * can't be recorded is removed again. What went wrong after the repo was in\n * (the turns, the instructions file) is in `warnings`: the add stands.\n */\n\n/** A refusal (addRepoRefusal), with the HTTP status that says it; any other failure is a plain Error. */\nexport class AddRepoRefused extends Error {\n constructor(\n message: string,\n readonly status: 400 | 404 | 409,\n ) {\n super(message);\n }\n}\n\nexport interface AddRepoResult {\n alias: string;\n /** The new checkout: `<session folder>/<repo folder>`. */\n path: string;\n branch: string;\n /** The branch was made for it (false: its existing branch was checked out). */\n created: boolean;\n /** The branch a new one was made from. */\n from?: string;\n /** The folder's instructions file imports the repo's own now. */\n imported: boolean;\n /** What didn't go as it should after the repo was in (said, and kept). */\n warnings: string[];\n}\n\ntype CheckoutOutcome = { ok: true; created: boolean; from?: string; warnings: string[] } | { ok: false; error: string };\n\nexport interface AddRepoDeps {\n config: () => WorkConfig | null;\n session: (id: string) => WorktreeSession | null;\n /** Check the repo out at `worktree` on `branch`; a new branch from `base` (else the repo's own checkout's branch). */\n checkout: (repoPath: string, worktree: string, branch: string, config: WorkConfig, base: string | undefined) => CheckoutOutcome;\n /** Undo a checkout that couldn't be recorded: its worktree, and its branch when it was made for it. */\n undoCheckout: (repoPath: string, worktree: string, branch: string, created: boolean) => boolean;\n record: typeof appendSessionRepo;\n migrate: (oldPaths: string[], newPaths: string[]) => Promise<ScopeMigration>;\n instructions: (s: WorktreeSession, folder: string, config: WorkConfig) => { file: string; imported: string[] | null };\n}\n\n/** The real checkout: createSingleWorktree, with its reports kept so a failure says why. */\nexport function checkoutIntoSession(\n repoPath: string,\n worktree: string,\n branch: string,\n config: WorkConfig,\n base: string | undefined,\n): CheckoutOutcome {\n const reports = collectingReporter();\n const warnings: string[] = [];\n const out = withReporter(reports, () => {\n // Fetched, so a branch only on origin is found; one that fails is said, and createSingleWorktree tries itself.\n const fetched = git(['fetch', '--quiet'], repoPath);\n if (fetched.exitCode !== 0) warnings.push(`couldn't fetch ${path.basename(repoPath)}: ${fetched.stderr || 'git fetch failed'}`);\n // Its own branch of this name, when it has one, is checked out as it is (a base is for a new branch only).\n const exists = localBranchExists(branch, repoPath) || remoteBranchExists(branch, repoPath);\n const created: { from?: string } = {};\n const useBase = exists ? undefined : base;\n if (exists && base) warnings.push(`${branch} exists already in this repo: checked out as it is (not from ${base})`);\n const ok = createSingleWorktree(repoPath, worktree, branch, config, useBase, false, fetched.exitCode === 0, created);\n if (!ok) return null;\n const from = exists ? undefined : (useBase ?? created.from);\n return { ok: true as const, created: !exists, ...(from ? { from } : {}), warnings };\n });\n // What it said: its warnings into the answer (work web's child answers with one JSON line,\n // so a report alone would reach no one), the rest to whoever called; its errors are the failure's reason.\n for (const e of reports.entries) {\n if (e.level === 'warn' && e.text.trim()) warnings.push(e.text.trim());\n else if (e.level !== 'error') report(e.level, e.text);\n }\n if (out) return out;\n // Failed: what it warned about on the way is said too (the error is the answer).\n for (const w of warnings) report('warn', ` ${w}`);\n const why = reports\n .errors()\n .map((e) => e.trim())\n .filter(Boolean)\n .join(' ');\n return { ok: false, error: why || 'git could not check it out' };\n}\n\n/** Remove a checkout that couldn't be recorded, and the branch made for it (nothing is on it yet). */\nfunction undoCheckout(repoPath: string, worktree: string, branch: string, created: boolean): boolean {\n const removed = removeSingleWorktree(repoPath, worktree, branch, true);\n if (removed && created) git(['branch', '-D', branch], repoPath);\n return removed && !fs.existsSync(worktree);\n}\n\n/**\n * The folder's instructions file gets the new repo's import: work's block\n * lists every repo of the session (as re-entering the session writes it). A\n * group's copied summary (from before) is kept as it is, the block after it.\n * `imported` null: its agent can't import (its file left as it is).\n */\nfunction updateInstructions(s: WorktreeSession, folder: string, config: WorkConfig): { file: string; imported: string[] | null } {\n const agent = agentFor(config, s);\n if (!agent.instructionsImport) return { file: agent.instructionsFile, imported: null };\n const imported = writeSessionInstructions(\n folder,\n s.paths.map((p) => path.basename(p)),\n agent.instructionsFile,\n agent.instructionsImport,\n );\n return { file: agent.instructionsFile, imported };\n}\n\nexport const defaultAddRepoDeps: AddRepoDeps = {\n config: loadConfig,\n session: findSessionById,\n checkout: checkoutIntoSession,\n undoCheckout,\n record: appendSessionRepo,\n migrate: migrateScope,\n instructions: updateInstructions,\n};\n\nexport async function addRepoToSession(\n sessionId: string,\n alias: string,\n opts: { base?: string } = {},\n deps: Partial<AddRepoDeps> = {},\n): Promise<AddRepoResult> {\n const d = { ...defaultAddRepoDeps, ...deps };\n const config = d.config();\n if (!config) throw new Error('no config: run `work init` first');\n const base = opts.base?.trim() || undefined;\n const s = d.session(sessionId);\n const refusal = addRepoRefusal(s, alias, config, (p) => fs.existsSync(p), base);\n if (refusal || !s) throw new AddRepoRefused(refusal?.error ?? 'unknown session', refusal?.status ?? 404);\n\n const repoPath = config.repos[alias];\n const folder = path.dirname(s.paths[0]);\n const repoFolder = path.basename(repoPath);\n const worktree = path.join(folder, repoFolder);\n report('step', `[${alias}] (${repoFolder}) into ${folder}:`);\n const made = d.checkout(repoPath, worktree, s.branch, config, base);\n if (!made.ok) throw new Error(made.error);\n const warnings = [...made.warnings];\n\n // Recorded on the session as it is now (its paths before: the scope its turns move from).\n let recorded: ReturnType<typeof appendSessionRepo>;\n try {\n recorded = d.record(sessionIdFor(s), alias, worktree, made.from, config, !!agentFor(config, s).instructionsImport);\n if (!recorded) throw new Error('the session is gone');\n } catch (err) {\n // Never a checkout no session knows of: a retry would find its folder and refuse.\n const undone = d.undoCheckout(repoPath, worktree, s.branch, made.created);\n throw new Error(\n `couldn't record ${alias} on the session (${(err as Error).message})` +\n (undone ? '; its checkout was removed again' : `; its checkout is still at ${worktree}: remove it by hand before trying again`),\n { cause: err },\n );\n }\n\n // The turn history follows the session to its new scope; a failure here loses none of the checkout.\n try {\n const moved = await d.migrate(recorded.before, recorded.session.paths);\n for (const p of moved.problems) warnings.push(`the Diff tab's turns: ${p}`);\n } catch (err) {\n warnings.push(`couldn't carry the Diff tab's turns over: ${(err as Error).message}`);\n }\n let imported = false;\n try {\n const r = d.instructions(recorded.session, folder, config);\n if (r.imported === null) warnings.push(`its agent can't import files into ${r.file}: the session folder's file is left as it is`);\n else {\n imported = r.imported.includes(repoFolder);\n report('success', ` ${r.file} in the session folder imports ${r.imported.length} repo file(s)`);\n }\n } catch (err) {\n warnings.push(`couldn't update the session folder's instructions file: ${(err as Error).message}`);\n }\n return { alias, path: worktree, branch: s.branch, created: made.created, ...(made.from ? { from: made.from } : {}), imported, warnings };\n}\n","import fs from 'node:fs';\nimport { moveStoreComments } from '../comments/comment-file-store.js';\nimport { atomicWriteFile, ensureFile, withFileLock } from '../platform/fs-safe.js';\nimport spawn from '../platform/spawn.js';\nimport type { CheckpointEntry } from './checkpoint.js';\nimport { manifestPath } from './checkpoint.js';\nimport { commentStoreIdForScope, scopeHashForPaths } from './scope-manager.js';\n\n/**\n * A session's turn history lives under the scope hash of its paths\n * (`scopeHashForPaths`): the checkpoint manifest\n * (`~/.work/diffs/<hash>.checkpoints.json`), the snapshot refs\n * `refs/wd/<hash>/<id>` in each repo, and the scope's comment store\n * (`scope-<hash>`). When the session's paths change (a repo added to it),\n * all three move to the new hash, or the Diff tab would start over with no\n * turns. Old checkpoints simply lack the new repo: a range reads a repo a\n * checkpoint has no snapshot of as its HEAD (`rangeRefs`).\n *\n * Nothing is lost on the way: under both manifests' locks (the ones\n * takeCheckpoint holds), every old ref is first COPIED to the new hash, in\n * one git transaction per repo; only when every repo has its copies is the\n * manifest written under the new hash, and only then are the old refs and\n * the old manifest deleted. Any failure before that undoes the copies and\n * leaves the old scope as it was, said in `problems`. Turns the new scope\n * took meanwhile (a Stop hook that ran while the repo was being added) give\n * way to the old ones: a checkpoint is a whole snapshot, so the session's\n * next turn shows that work as well, against its last old turn.\n *\n * Idempotent, and a no-op when the old scope has nothing.\n */\n\nexport interface ScopeMigration {\n from: string;\n to: string;\n /** The manifest was moved. */\n manifest: boolean;\n /** Refs moved, across the repos. */\n refs: number;\n /** Comments moved to the new store. */\n comments: number;\n /** What went wrong, in words; empty when all of it moved. */\n problems: string[];\n}\n\ninterface Ref {\n name: string;\n sha: string;\n}\n\nfunction gitSync(repo: string, args: string[], input?: string): { ok: boolean; out: string; err: string } {\n const r = spawn.sync('git', args, { cwd: repo, encoding: 'utf-8', windowsHide: true, ...(input !== undefined ? { input } : {}) });\n return { ok: r.status === 0, out: (r.stdout ?? '').toString(), err: (r.stderr ?? '').toString().trim() };\n}\n\n/** `refs/wd/<hash>/<id>` in one repo, or null when git couldn't list them. */\nfunction scopeRefs(repo: string, hash: string): Ref[] | null {\n const r = gitSync(repo, ['for-each-ref', '--format=%(refname) %(objectname)', `refs/wd/${hash}/`]);\n if (!r.ok) return null;\n return r.out\n .split(/\\r?\\n/)\n .map((l) => l.trim().split(' '))\n .filter((p): p is [string, string] => p.length === 2 && !!p[0] && !!p[1])\n .map(([name, sha]) => ({ name, sha }))\n .filter((x) => /^\\d+$/.test(x.name.slice(`refs/wd/${hash}/`.length)));\n}\n\nconst idOf = (hash: string, ref: Ref) => Number(ref.name.slice(`refs/wd/${hash}/`.length));\n\n/** One `git update-ref --stdin` transaction: all of it or none of it. */\nfunction refTransaction(repo: string, lines: string[]): { ok: boolean; err: string } {\n if (lines.length === 0) return { ok: true, err: '' };\n const r = gitSync(repo, ['update-ref', '--stdin'], ['start', ...lines, 'commit', ''].join('\\n'));\n return { ok: r.ok, err: r.err };\n}\n\n/** A manifest's entries: [] when there is no file; null when there is one that can't be read (never treated as empty). */\nfunction readEntries(hash: string): CheckpointEntry[] | null {\n const file = manifestPath(hash);\n if (!fs.existsSync(file)) return [];\n try {\n const parsed = JSON.parse(fs.readFileSync(file, 'utf8')) as { version?: unknown; entries?: unknown };\n return parsed.version === 1 && Array.isArray(parsed.entries) ? (parsed.entries as CheckpointEntry[]) : null;\n } catch {\n return null;\n }\n}\n\nconst empty = JSON.stringify({ version: 1, entries: [] });\n\n/** The file writes of a move (tests make one fail). */\nexport interface MigrateIo {\n writeManifest: (file: string, text: string) => void;\n removeManifest: (file: string) => void;\n}\n\nconst realIo: MigrateIo = { writeManifest: atomicWriteFile, removeManifest: (file) => fs.unlinkSync(file) };\n\nexport async function migrateScope(oldPaths: string[], newPaths: string[], io: MigrateIo = realIo): Promise<ScopeMigration> {\n const from = scopeHashForPaths(oldPaths);\n const to = scopeHashForPaths(newPaths);\n const out: ScopeMigration = { from, to, manifest: false, refs: 0, comments: 0, problems: [] };\n if (from === to) return out;\n\n const comments = moveStoreComments(commentStoreIdForScope(from), commentStoreIdForScope(to));\n out.comments = comments.moved;\n if (comments.kept) out.problems.push(`${comments.kept} comment(s) of the old page kept there: the new one has the same id`);\n\n const oldFile = manifestPath(from);\n if (!fs.existsSync(oldFile)) return out;\n const newFile = manifestPath(to);\n ensureFile(newFile, empty);\n await withFileLock(newFile, () =>\n withFileLock(oldFile, () => {\n moveUnderLocks(oldPaths, newPaths, from, to, out, io);\n }),\n );\n return out;\n}\n\nfunction moveUnderLocks(oldPaths: string[], newPaths: string[], from: string, to: string, out: ScopeMigration, io: MigrateIo): void {\n const old = readEntries(from);\n const already = readEntries(to);\n if (old === null || already === null) {\n out.problems.push(`the turn list ${old === null ? manifestPath(from) : manifestPath(to)} can't be read: left as it is`);\n return;\n }\n if (old.length === 0) return;\n if (already.length) out.problems.push(`${already.length} turn(s) taken under the new paths meanwhile give way to the old turns`);\n\n const repos = oldPaths.filter((p) => fs.existsSync(p));\n const newRepos = newPaths.filter((p) => fs.existsSync(p));\n const listed = new Map<string, { old: Ref[]; mine: Ref[] }>();\n for (const repo of new Set([...repos, ...newRepos])) {\n const o = repos.includes(repo) ? scopeRefs(repo, from) : [];\n const m = newRepos.includes(repo) ? scopeRefs(repo, to) : [];\n if (o === null || m === null) {\n out.problems.push(`git couldn't list the turns' snapshots in ${repo}: nothing moved`);\n return;\n }\n listed.set(repo, { old: o, mine: m });\n }\n\n // 1. In each repo, at once: every old ref copied under the new hash (over one the new scope\n // took meanwhile), and the new scope's other refs gone. Undone in every repo if one fails.\n const done: Array<{ repo: string; undo: string[] }> = [];\n const undoAll = () => {\n for (const d of done) refTransaction(d.repo, d.undo);\n };\n for (const [repo, { old: o, mine }] of listed) {\n const lines: string[] = [];\n const undo: string[] = [];\n const theirs = new Map(mine.map((r) => [idOf(to, r), r]));\n for (const ref of o) {\n const name = `refs/wd/${to}/${idOf(from, ref)}`;\n const over = theirs.get(idOf(from, ref));\n theirs.delete(idOf(from, ref));\n lines.push(over ? `update ${name} ${ref.sha} ${over.sha}` : `create ${name} ${ref.sha}`);\n undo.push(over ? `update ${name} ${over.sha} ${ref.sha}` : `delete ${name} ${ref.sha}`);\n }\n for (const ref of theirs.values()) {\n lines.push(`delete ${ref.name} ${ref.sha}`);\n undo.push(`create ${ref.name} ${ref.sha}`);\n }\n const r = refTransaction(repo, lines);\n if (!r.ok) {\n undoAll();\n out.problems.push(`couldn't copy the turns' snapshots in ${repo} (${r.err || 'git failed'}): nothing moved`);\n return;\n }\n done.push({ repo, undo });\n }\n\n // 2. The manifest, under the new hash.\n try {\n io.writeManifest(manifestPath(to), JSON.stringify({ version: 1, scopeHash: to, entries: old }, null, 2));\n } catch (err) {\n undoAll();\n out.problems.push(`couldn't write the turn list (${(err as Error).message}): nothing moved`);\n return;\n }\n out.manifest = true;\n\n // 3. Only now the old ones go. What can't be deleted is harmless (a ref nothing lists).\n for (const [repo, { old: o }] of listed) {\n const r = refTransaction(\n repo,\n o.map((ref) => `delete ${ref.name} ${ref.sha}`),\n );\n if (r.ok) out.refs += o.length;\n else out.problems.push(`the old snapshots' refs stay in ${repo} (${r.err || 'git failed'}); the turns are moved`);\n }\n try {\n io.removeManifest(manifestPath(from));\n } catch (err) {\n out.problems.push(`the old turn list stays at ${manifestPath(from)} (${(err as Error).message}); the turns are moved`);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;;;ACAlB,OAAOA,SAAQ;AACf,OAAO,UAAU;;;ACDjB,OAAO,QAAQ;AAiDf,SAAS,QAAQ,MAAc,MAAgB,OAA2D;AACxG,QAAM,IAAI,cAAM,KAAK,OAAO,MAAM,EAAE,KAAK,MAAM,UAAU,SAAS,aAAa,MAAM,GAAI,UAAU,SAAY,EAAE,MAAM,IAAI,CAAC,EAAG,CAAC;AAChI,SAAO,EAAE,IAAI,EAAE,WAAW,GAAG,MAAM,EAAE,UAAU,IAAI,SAAS,GAAG,MAAM,EAAE,UAAU,IAAI,SAAS,EAAE,KAAK,EAAE;AACzG;AAGA,SAAS,UAAU,MAAc,MAA4B;AAC3D,QAAM,IAAI,QAAQ,MAAM,CAAC,gBAAgB,qCAAqC,WAAW,IAAI,GAAG,CAAC;AACjG,MAAI,CAAC,EAAE,GAAI,QAAO;AAClB,SAAO,EAAE,IACN,MAAM,OAAO,EACb,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,EAC9B,OAAO,CAAC,MAA6B,EAAE,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EACvE,IAAI,CAAC,CAAC,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,EAAE,EACpC,OAAO,CAAC,MAAM,QAAQ,KAAK,EAAE,KAAK,MAAM,WAAW,IAAI,IAAI,MAAM,CAAC,CAAC;AACxE;AAEA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,QAAI;AACF,UAAI,MAAM,iBAAiB,IAAI,OAAO,EAAE,KAAK,CAAC;AAAA,IAChD,SAAS,KAAK;AACZ,aAAO,SAAS,GAAG;AAAA,IACrB;AAEA,QAAI,OAAO;AACX,QAAI;AACF,YAAM,QAAQ,gBAAgB,EAAE,KAAK;AACrC,YAAM,OAAO,SAAS,WAAW,KAAK,CAAC,GAAG,KAAK,EAAE;AACjD,0BAAoB,EAAE,EAAE,KAAK,EAAE,MAAM,WAAW,QAAQ,aAAa,QAAQ,QAAQ,MAAM,cAAc,GAAG,IAAI,EAAE,CAAC;AAAA,IACrH,SAAS,KAAK;AACZ,aAAO;AACP,QAAE,SAAS,KAAK,2CAA4C,IAAc,OAAO,EAAE;AAAA,IACrF;AACA,QAAI,OAAQ,SAAQ,IAAI,KAAK,UAAU,cAAc,CAAC,CAAC,CAAC;AAAA,SACnD;AACH,gBAAU,GAAG,cAAc,CAAC,GAAG,KAAK;AACpC,UAAI,KAAM,SAAQ,IAAI,MAAM,KAAK,+DAA+D,CAAC;AAAA,IACnG;AAAA,EACF;AACF;","names":["fs","r","fs","r"]}
@@ -5,27 +5,27 @@ import {
5
5
  import {
6
6
  sessionFromArgs,
7
7
  sessionPositionals
8
- } from "./chunk-WRUQPVTS.js";
8
+ } from "./chunk-GDCTRDUY.js";
9
9
  import "./chunk-6AQRYLOB.js";
10
10
  import {
11
11
  callWorkWeb
12
- } from "./chunk-Y33WKESH.js";
13
- import "./chunk-4P533364.js";
12
+ } from "./chunk-MAFJE26N.js";
13
+ import "./chunk-BO3BNBBE.js";
14
+ import "./chunk-XZ5DA5X4.js";
14
15
  import "./chunk-ZSHWP2VS.js";
15
- import "./chunk-QDKLIYGR.js";
16
16
  import "./chunk-HUXS3VAI.js";
17
17
  import {
18
18
  readStatus
19
- } from "./chunk-NM4SABMQ.js";
20
- import "./chunk-Y2HNFNCS.js";
19
+ } from "./chunk-RFQRVXFQ.js";
20
+ import "./chunk-JCMGIW7G.js";
21
21
  import "./chunk-RCYI7SRA.js";
22
22
  import "./chunk-NEJVK5CF.js";
23
23
  import {
24
24
  sessionIdFor
25
- } from "./chunk-GOHSGTR5.js";
26
- import "./chunk-U3NYRIFH.js";
27
- import "./chunk-EOETYHTD.js";
28
- import "./chunk-ROLNJOSE.js";
25
+ } from "./chunk-FXHTSSV2.js";
26
+ import "./chunk-S4ILKUFN.js";
27
+ import "./chunk-FRCV6NWT.js";
28
+ import "./chunk-A53IRCOO.js";
29
29
 
30
30
  // src/commands/answer.ts
31
31
  import chalk from "chalk";
@@ -61,4 +61,4 @@ var answerCommand = {
61
61
  export {
62
62
  answerCommand
63
63
  };
64
- //# sourceMappingURL=answer-UWI22VOE.js.map
64
+ //# sourceMappingURL=answer-OA2WTJCZ.js.map
@@ -1,34 +1,34 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  attachSession
4
- } from "./chunk-CIAXJC5H.js";
4
+ } from "./chunk-MM32YZT6.js";
5
5
  import "./chunk-AH5TM3NB.js";
6
- import "./chunk-NER44YB7.js";
7
- import "./chunk-3D63HGOG.js";
8
- import "./chunk-CALBDLDJ.js";
6
+ import "./chunk-FXIEYT6L.js";
7
+ import "./chunk-4ETSGWB2.js";
8
+ import "./chunk-DHBKD2TG.js";
9
9
  import {
10
10
  baseCheckoutSession
11
11
  } from "./chunk-6AQRYLOB.js";
12
- import "./chunk-RFE4EBUP.js";
12
+ import "./chunk-ZHKE637Q.js";
13
13
  import {
14
14
  findSessionForCwd
15
- } from "./chunk-4P533364.js";
15
+ } from "./chunk-BO3BNBBE.js";
16
+ import "./chunk-XZ5DA5X4.js";
16
17
  import "./chunk-ZSHWP2VS.js";
17
- import "./chunk-QDKLIYGR.js";
18
18
  import "./chunk-HUXS3VAI.js";
19
19
  import {
20
20
  findSession,
21
21
  loadHistory
22
- } from "./chunk-NM4SABMQ.js";
23
- import "./chunk-Y2HNFNCS.js";
22
+ } from "./chunk-RFQRVXFQ.js";
23
+ import "./chunk-JCMGIW7G.js";
24
24
  import "./chunk-RCYI7SRA.js";
25
25
  import "./chunk-NEJVK5CF.js";
26
- import "./chunk-GOHSGTR5.js";
27
- import "./chunk-U3NYRIFH.js";
28
- import "./chunk-EOETYHTD.js";
26
+ import "./chunk-FXHTSSV2.js";
27
+ import "./chunk-S4ILKUFN.js";
28
+ import "./chunk-FRCV6NWT.js";
29
29
  import {
30
30
  loadConfig
31
- } from "./chunk-ROLNJOSE.js";
31
+ } from "./chunk-A53IRCOO.js";
32
32
 
33
33
  // src/commands/attach.ts
34
34
  import chalk from "chalk";
@@ -57,4 +57,4 @@ export {
57
57
  attachCommand,
58
58
  baseCheckoutSession
59
59
  };
60
- //# sourceMappingURL=attach-HYHEXW5J.js.map
60
+ //# sourceMappingURL=attach-5GXPA7BV.js.map
package/dist/bin.js CHANGED
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  debug,
4
4
  installConsoleLogger
5
- } from "./chunk-EOETYHTD.js";
5
+ } from "./chunk-FRCV6NWT.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-ROLNJOSE.js";
8
+ } from "./chunk-A53IRCOO.js";
9
9
 
10
10
  // src/bin.ts
11
11
  import fs from "fs";
@@ -41,13 +41,13 @@ process.on("uncaughtException", handleFatalError);
41
41
  process.on("unhandledRejection", handleFatalError);
42
42
  var args = process.argv.slice(2);
43
43
  if (args[0] === "hook") {
44
- const { runHookEvent } = await import("./hook-V7JNOY2E.js");
44
+ const { runHookEvent } = await import("./hook-SJOCXGLD.js");
45
45
  await runHookEvent(args[1], args.slice(2));
46
46
  } else {
47
47
  const { default: chalk } = await import("chalk");
48
48
  if (!process.env.NO_COLOR && chalk.level === 0) chalk.level = 1;
49
- const { run } = await import("./cli-X4Z2UYJZ.js");
50
- const { withReporter } = await import("./report-TEIRRYH4.js");
49
+ const { run } = await import("./cli-HTBQ4DSS.js");
50
+ const { withReporter } = await import("./report-BSETCIYQ.js");
51
51
  const { consoleReporter, reportStreamFor } = await import("./console-reporter-XU6VFUZE.js");
52
52
  await withReporter(consoleReporter(reportStreamFor(args)), () => run(args));
53
53
  }