@moberg_hr/work-tree 2.18.1 → 2.20.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 (286) hide show
  1. package/dist/{account-B3HHUCH6.js → account-VGJEBBCS.js} +19 -18
  2. package/dist/{account-B3HHUCH6.js.map → account-VGJEBBCS.js.map} +1 -1
  3. package/dist/{add-repo-2U2FLGJQ.js → add-repo-KA723SUN.js} +16 -15
  4. package/dist/{add-repo-2U2FLGJQ.js.map → add-repo-KA723SUN.js.map} +1 -1
  5. package/dist/{answer-HHCSBUQE.js → answer-2MLNGB7P.js} +12 -11
  6. package/dist/{answer-HHCSBUQE.js.map → answer-2MLNGB7P.js.map} +1 -1
  7. package/dist/{attach-RNWANIFC.js → attach-4DSUBQBI.js} +17 -16
  8. package/dist/{attach-RNWANIFC.js.map → attach-4DSUBQBI.js.map} +1 -1
  9. package/dist/bin.js +4 -4
  10. package/dist/{block-FSGNBJSN.js → block-KCHJ4KMQ.js} +14 -13
  11. package/dist/{block-FSGNBJSN.js.map → block-KCHJ4KMQ.js.map} +1 -1
  12. package/dist/{broadcast-5WAUMYVO.js → broadcast-XZZ6S6MH.js} +10 -9
  13. package/dist/{broadcast-5WAUMYVO.js.map → broadcast-XZZ6S6MH.js.map} +1 -1
  14. package/dist/{catchup-T5SOCXHV.js → catchup-IVNPQHRM.js} +15 -14
  15. package/dist/{catchup-T5SOCXHV.js.map → catchup-IVNPQHRM.js.map} +1 -1
  16. package/dist/child-6ZMI62MQ.js +148 -0
  17. package/dist/child-6ZMI62MQ.js.map +1 -0
  18. package/dist/{chunk-7334DEPX.js → chunk-2YGVF224.js} +2 -2
  19. package/dist/{chunk-S7OCHVVD.js → chunk-4EFPHIME.js} +8 -8
  20. package/dist/chunk-6DOAS4VP.js +9 -0
  21. package/dist/{chunk-AT4EPCOV.js → chunk-6V6LBFWB.js} +2 -2
  22. package/dist/{chunk-A72CRTFG.js → chunk-75PWH7BG.js} +7 -5
  23. package/dist/chunk-75PWH7BG.js.map +1 -0
  24. package/dist/{chunk-2SLALFWA.js → chunk-7ZOWY7GC.js} +16 -5
  25. package/dist/chunk-7ZOWY7GC.js.map +1 -0
  26. package/dist/{chunk-56D4WJ2S.js → chunk-AB3TSGJ4.js} +3 -3
  27. package/dist/{chunk-V76KARDB.js → chunk-AFYYUXWA.js} +2 -2
  28. package/dist/chunk-AGICFQMJ.js +151 -0
  29. package/dist/chunk-AGICFQMJ.js.map +1 -0
  30. package/dist/{chunk-2LUTV7UB.js → chunk-B56NMAPD.js} +2 -2
  31. package/dist/{chunk-44UME4JD.js → chunk-BDZDOPAA.js} +2 -2
  32. package/dist/{chunk-BGPCIL4U.js → chunk-D7TL6I5A.js} +4 -4
  33. package/dist/{chunk-IVH5T4U2.js → chunk-DCEYDF77.js} +2 -2
  34. package/dist/{chunk-DAQJZE3B.js → chunk-EHVT6G2Z.js} +16 -14
  35. package/dist/{chunk-DAQJZE3B.js.map → chunk-EHVT6G2Z.js.map} +1 -1
  36. package/dist/{chunk-6EW27TKI.js → chunk-EVP5MMA7.js} +13 -11
  37. package/dist/{chunk-6EW27TKI.js.map → chunk-EVP5MMA7.js.map} +1 -1
  38. package/dist/{chunk-PYHYZGY4.js → chunk-F2H4FQ62.js} +4 -4
  39. package/dist/{chunk-AWP2MCMN.js → chunk-FCUVFJSY.js} +5 -5
  40. package/dist/{chunk-FJYM2JQN.js → chunk-FDFFJOV6.js} +147 -216
  41. package/dist/chunk-FDFFJOV6.js.map +1 -0
  42. package/dist/{chunk-GUEJVX2X.js → chunk-GROMKF62.js} +2 -2
  43. package/dist/{chunk-55T4LC2P.js → chunk-HNZRVCQF.js} +4 -4
  44. package/dist/{chunk-XQEP3QYX.js → chunk-ILLPPOIY.js} +8 -6
  45. package/dist/{chunk-XQEP3QYX.js.map → chunk-ILLPPOIY.js.map} +1 -1
  46. package/dist/{chunk-WKHP3AXS.js → chunk-IMTPBX3L.js} +4 -4
  47. package/dist/{chunk-KK5RCNDL.js → chunk-J3XKW5CH.js} +8 -8
  48. package/dist/{chunk-VG5WQPQB.js → chunk-JDLRVOX7.js} +4 -4
  49. package/dist/{chunk-AC7FECH5.js → chunk-JQO5ANP4.js} +7 -7
  50. package/dist/{chunk-PZGLIYMD.js → chunk-JTADL4BQ.js} +60 -57
  51. package/dist/chunk-JTADL4BQ.js.map +1 -0
  52. package/dist/{chunk-H4TNGZKT.js → chunk-JTH2PASW.js} +10 -10
  53. package/dist/{chunk-ADVMIHTB.js → chunk-L74WY44N.js} +2 -2
  54. package/dist/{chunk-R5DHVUA2.js → chunk-LHKUHNE3.js} +2 -2
  55. package/dist/{chunk-MWIPHUAE.js → chunk-LXBHVWOY.js} +2 -1
  56. package/dist/chunk-LXBHVWOY.js.map +1 -0
  57. package/dist/{chunk-ITNSUPVJ.js → chunk-M5NJSO3M.js} +7 -7
  58. package/dist/{chunk-MD6QMSXQ.js → chunk-MQGNH74M.js} +2 -2
  59. package/dist/{chunk-F5RPC3LT.js → chunk-MRTSFVRF.js} +3 -3
  60. package/dist/{chunk-BMLV63AW.js → chunk-MYMMOUTW.js} +2 -2
  61. package/dist/{chunk-ATBSACIU.js → chunk-NB7IBSKF.js} +3 -3
  62. package/dist/{chunk-WVDIS22N.js → chunk-NDSZQKYL.js} +3 -3
  63. package/dist/{chunk-BGS5M542.js → chunk-NDXZKB27.js} +3 -3
  64. package/dist/{chunk-WIYDT3PY.js → chunk-NFM4NGTI.js} +2 -2
  65. package/dist/{chunk-PSEVXDTS.js → chunk-NHZZMY3H.js} +3 -3
  66. package/dist/{chunk-4J2F6OWM.js → chunk-OHX7WKZU.js} +2 -2
  67. package/dist/{chunk-AMKLWFT3.js → chunk-OOQBMWTK.js} +2 -2
  68. package/dist/{chunk-3JLMVWRO.js → chunk-PORC2R73.js} +3 -3
  69. package/dist/{chunk-ALBTIOP3.js → chunk-QGUBOOEN.js} +16 -3
  70. package/dist/chunk-QGUBOOEN.js.map +1 -0
  71. package/dist/{chunk-QTENJUM3.js → chunk-QSY3HEP4.js} +7 -7
  72. package/dist/{chunk-G7VLIMOH.js → chunk-R7FZ4FNO.js} +4 -4
  73. package/dist/{chunk-2YRR5Q3C.js → chunk-RQ7W2CVL.js} +3 -3
  74. package/dist/{chunk-XKPF4MD2.js → chunk-SM6RE2AH.js} +3 -3
  75. package/dist/{chunk-IBTA4DSY.js → chunk-TNBZUIIP.js} +7 -7
  76. package/dist/{chunk-QO4QWQUO.js → chunk-UD5CFHUS.js} +2 -2
  77. package/dist/{chunk-WXYUABCL.js → chunk-UEEZ6DGK.js} +7 -7
  78. package/dist/{chunk-J5B2Z7SO.js → chunk-UNV2YM5V.js} +3 -3
  79. package/dist/{chunk-CNZV3UCM.js → chunk-UPS7NHKI.js} +2 -2
  80. package/dist/{chunk-QDNNFL56.js → chunk-UXEFUSJV.js} +4 -4
  81. package/dist/{chunk-HGB7BITW.js → chunk-W4GDPHIF.js} +3 -2
  82. package/dist/chunk-W4GDPHIF.js.map +1 -0
  83. package/dist/{chunk-374HKMSE.js → chunk-WC4IN5MD.js} +2 -2
  84. package/dist/{chunk-SRE4CK6Y.js → chunk-WIXY4EDH.js} +2 -2
  85. package/dist/{chunk-LBJHFVH3.js → chunk-WUW6WRKP.js} +6 -6
  86. package/dist/{chunk-H5JNYD63.js → chunk-XDKH4X4N.js} +2 -2
  87. package/dist/{chunk-CIUTNNF4.js → chunk-XEA3XWKW.js} +5 -5
  88. package/dist/{chunk-VBB3E37Z.js → chunk-XHDC3IU4.js} +7 -7
  89. package/dist/{chunk-PJ7ZKAZF.js → chunk-XVHRBV2I.js} +3 -3
  90. package/dist/{chunk-PZ7WTBSI.js → chunk-Y7PWSACJ.js} +2 -2
  91. package/dist/{chunk-26DBVWJC.js → chunk-YJYYR5RY.js} +4 -4
  92. package/dist/chunk-Z6ACV5ZQ.js +86 -0
  93. package/dist/chunk-Z6ACV5ZQ.js.map +1 -0
  94. package/dist/{chunk-LVNPLXUO.js → chunk-ZAOX63AG.js} +8 -8
  95. package/dist/{chunk-N2IDEZGB.js → chunk-ZSDMH3TI.js} +5 -5
  96. package/dist/{cleanup-LJHC5O6U.js → cleanup-6DHF6MVQ.js} +31 -30
  97. package/dist/{cleanup-LJHC5O6U.js.map → cleanup-6DHF6MVQ.js.map} +1 -1
  98. package/dist/{cli-K6T6AJHP.js → cli-7XVDO432.js} +4 -4
  99. package/dist/{color-7PZNDE4R.js → color-G7OB6JRX.js} +13 -12
  100. package/dist/{color-7PZNDE4R.js.map → color-G7OB6JRX.js.map} +1 -1
  101. package/dist/{config-TM37HUBM.js → config-WLHZ5EOU.js} +11 -10
  102. package/dist/{config-TM37HUBM.js.map → config-WLHZ5EOU.js.map} +1 -1
  103. package/dist/coordinate-YOTO6WGQ.js +122 -0
  104. package/dist/coordinate-YOTO6WGQ.js.map +1 -0
  105. package/dist/{diff-RSSLOKE7.js → diff-TKHHSR2G.js} +12 -11
  106. package/dist/{diff-RSSLOKE7.js.map → diff-TKHHSR2G.js.map} +1 -1
  107. package/dist/{digest-LCHLLJ4M.js → digest-OVUDG6O7.js} +11 -10
  108. package/dist/{digest-LCHLLJ4M.js.map → digest-OVUDG6O7.js.map} +1 -1
  109. package/dist/{fork-XVNZMWCA.js → fork-6AQ62ODJ.js} +28 -27
  110. package/dist/{fork-XVNZMWCA.js.map → fork-6AQ62ODJ.js.map} +1 -1
  111. package/dist/{history-CRUFLMA2.js → history-ZT6YAO62.js} +9 -8
  112. package/dist/{hook-U4WCMGD6.js → hook-MDENN4PE.js} +17 -16
  113. package/dist/{hook-U4WCMGD6.js.map → hook-MDENN4PE.js.map} +1 -1
  114. package/dist/{hydrate-BYXK4W6T.js → hydrate-3KEAOXSE.js} +10 -9
  115. package/dist/{hydrate-BYXK4W6T.js.map → hydrate-3KEAOXSE.js.map} +1 -1
  116. package/dist/{init-JWBB4HBE.js → init-UDRGQJWV.js} +14 -13
  117. package/dist/{init-JWBB4HBE.js.map → init-UDRGQJWV.js.map} +1 -1
  118. package/dist/{install-skills-M2Y6ZGQC.js → install-skills-QTNDVA4T.js} +8 -7
  119. package/dist/install-skills-bin.js +7 -6
  120. package/dist/install-skills-bin.js.map +1 -1
  121. package/dist/{keep-OZJ2XXKF.js → keep-G4Z6EBQM.js} +12 -11
  122. package/dist/{keep-OZJ2XXKF.js.map → keep-G4Z6EBQM.js.map} +1 -1
  123. package/dist/{list-YVZSGKT4.js → list-DFENHOZN.js} +9 -8
  124. package/dist/{list-YVZSGKT4.js.map → list-DFENHOZN.js.map} +1 -1
  125. package/dist/{move-7TAU3LI3.js → move-ZF4Z7X5U.js} +16 -15
  126. package/dist/{move-7TAU3LI3.js.map → move-ZF4Z7X5U.js.map} +1 -1
  127. package/dist/{note-ESLGTIYH.js → note-UIC3ZWUV.js} +13 -12
  128. package/dist/{note-ESLGTIYH.js.map → note-UIC3ZWUV.js.map} +1 -1
  129. package/dist/{overlaps-FYXO3OL2.js → overlaps-SHQUKU7E.js} +15 -14
  130. package/dist/{overlaps-FYXO3OL2.js.map → overlaps-SHQUKU7E.js.map} +1 -1
  131. package/dist/{pin-AAMXBCV3.js → pin-LC33A2NH.js} +13 -12
  132. package/dist/{pin-AAMXBCV3.js.map → pin-LC33A2NH.js.map} +1 -1
  133. package/dist/{pr-42UBVLUT.js → pr-FRW5V6HV.js} +22 -21
  134. package/dist/{pr-42UBVLUT.js.map → pr-FRW5V6HV.js.map} +1 -1
  135. package/dist/{prune-B72T33B6.js → prune-BZ2NL4VG.js} +29 -28
  136. package/dist/{prune-B72T33B6.js.map → prune-BZ2NL4VG.js.map} +1 -1
  137. package/dist/{pty-host-72L4DQL5.js → pty-host-ULFHBYSP.js} +14 -13
  138. package/dist/{pty-host-72L4DQL5.js.map → pty-host-ULFHBYSP.js.map} +1 -1
  139. package/dist/{read-75KS2EXO.js → read-NQMJXBGZ.js} +12 -11
  140. package/dist/{read-75KS2EXO.js.map → read-NQMJXBGZ.js.map} +1 -1
  141. package/dist/{recent-H665DNCJ.js → recent-5POY67P2.js} +16 -15
  142. package/dist/{recent-H665DNCJ.js.map → recent-5POY67P2.js.map} +1 -1
  143. package/dist/{remove-ZZBCNASU.js → remove-4Z2PPUMR.js} +30 -29
  144. package/dist/{remove-ZZBCNASU.js.map → remove-4Z2PPUMR.js.map} +1 -1
  145. package/dist/report-RBBVHVHD.js +74 -0
  146. package/dist/report-RBBVHVHD.js.map +1 -0
  147. package/dist/{restart-WFMCSOPB.js → restart-S3SSGR6A.js} +12 -11
  148. package/dist/{restart-WFMCSOPB.js.map → restart-S3SSGR6A.js.map} +1 -1
  149. package/dist/{resume-GICIEI2I.js → resume-FLLXA3RH.js} +16 -15
  150. package/dist/{resume-GICIEI2I.js.map → resume-FLLXA3RH.js.map} +1 -1
  151. package/dist/{review-TZUVYEAL.js → review-SFRX7ODW.js} +13 -12
  152. package/dist/{review-TZUVYEAL.js.map → review-SFRX7ODW.js.map} +1 -1
  153. package/dist/{review-now-LYGJDHDE.js → review-now-KZDBETZK.js} +4 -4
  154. package/dist/{run-SVJLTKSR.js → run-BMD66HMR.js} +9 -8
  155. package/dist/{run-SVJLTKSR.js.map → run-BMD66HMR.js.map} +1 -1
  156. package/dist/{screen-JC6L6MT5.js → screen-MKRRQSIU.js} +12 -11
  157. package/dist/{screen-JC6L6MT5.js.map → screen-MKRRQSIU.js.map} +1 -1
  158. package/dist/{search-3BZMJM3P.js → search-2NDA23G4.js} +9 -8
  159. package/dist/{search-3BZMJM3P.js.map → search-2NDA23G4.js.map} +1 -1
  160. package/dist/{section-GNYPAEQC.js → section-Z5G4B5IO.js} +13 -12
  161. package/dist/{section-GNYPAEQC.js.map → section-Z5G4B5IO.js.map} +1 -1
  162. package/dist/{send-KVUFOWCP.js → send-EVYK2JXH.js} +13 -12
  163. package/dist/{send-KVUFOWCP.js.map → send-EVYK2JXH.js.map} +1 -1
  164. package/dist/{sessions-W36QTHAD.js → sessions-UD7GC6PL.js} +25 -24
  165. package/dist/{sessions-W36QTHAD.js.map → sessions-UD7GC6PL.js.map} +1 -1
  166. package/dist/{show-FQPMGZO3.js → show-K4MELKXA.js} +11 -10
  167. package/dist/{show-FQPMGZO3.js.map → show-K4MELKXA.js.map} +1 -1
  168. package/dist/{snooze-HGO3W2OF.js → snooze-457UM2MR.js} +12 -11
  169. package/dist/{snooze-HGO3W2OF.js.map → snooze-457UM2MR.js.map} +1 -1
  170. package/dist/{start-UQSJGUMJ.js → start-CMYT5ELG.js} +12 -11
  171. package/dist/{start-UQSJGUMJ.js.map → start-CMYT5ELG.js.map} +1 -1
  172. package/dist/{state-24H5QRPO.js → state-TOTGEK7J.js} +9 -5
  173. package/dist/state-TOTGEK7J.js.map +1 -0
  174. package/dist/{status-MGTUAZTA.js → status-M5RGLGOI.js} +13 -12
  175. package/dist/{status-MGTUAZTA.js.map → status-M5RGLGOI.js.map} +1 -1
  176. package/dist/{statusline-B6U3ANSM.js → statusline-QZKHVDHR.js} +4 -4
  177. package/dist/statusline-hook-Q645N4XF.js +162 -0
  178. package/dist/statusline-hook-Q645N4XF.js.map +1 -0
  179. package/dist/{stop-JBUL4WY3.js → stop-QUXZ4KOU.js} +12 -11
  180. package/dist/{stop-JBUL4WY3.js.map → stop-QUXZ4KOU.js.map} +1 -1
  181. package/dist/{sync-ILYA3AHS.js → sync-LOUYX24W.js} +29 -28
  182. package/dist/{sync-ILYA3AHS.js.map → sync-LOUYX24W.js.map} +1 -1
  183. package/dist/{time-ZOJD7HFL.js → time-DQ55WLCX.js} +14 -13
  184. package/dist/{time-ZOJD7HFL.js.map → time-DQ55WLCX.js.map} +1 -1
  185. package/dist/{time-actions-AIKJ7ENX.js → time-actions-HY3AML3Y.js} +4 -4
  186. package/dist/{timesheet-WT7QUB7M.js → timesheet-F4ATWRKK.js} +15 -14
  187. package/dist/{timesheet-WT7QUB7M.js.map → timesheet-F4ATWRKK.js.map} +1 -1
  188. package/dist/{todo-GB7X6KWW.js → todo-QY5ZPN24.js} +4 -4
  189. package/dist/{tree-M6YEJCXF.js → tree-7BZQE5JA.js} +28 -27
  190. package/dist/{tree-M6YEJCXF.js.map → tree-7BZQE5JA.js.map} +1 -1
  191. package/dist/{update-47FZ6YO5.js → update-A5N2KKOV.js} +18 -17
  192. package/dist/{update-47FZ6YO5.js.map → update-A5N2KKOV.js.map} +1 -1
  193. package/dist/{usage-PTD3C34L.js → usage-ZEZY46OJ.js} +11 -10
  194. package/dist/{usage-PTD3C34L.js.map → usage-ZEZY46OJ.js.map} +1 -1
  195. package/dist/{usage-ask-BULFMCUZ.js → usage-ask-C3QLGFC5.js} +3 -3
  196. package/dist/{version-6UJN2CCE.js → version-3UR4YFMC.js} +4 -4
  197. package/dist/{wait-JHFM3MA7.js → wait-ZOTGREAN.js} +13 -12
  198. package/dist/{wait-JHFM3MA7.js.map → wait-ZOTGREAN.js.map} +1 -1
  199. package/dist/wd-bin.js +3 -3
  200. package/dist/web/assets/{PtyView-DpIVcrTI.js → PtyView-dPCRmDiL.js} +2 -2
  201. package/dist/web/assets/{PtyView-DpIVcrTI.js.map → PtyView-dPCRmDiL.js.map} +1 -1
  202. package/dist/web/assets/{index-DhXqtaRc.js → index-1o9y5y_j.js} +57 -56
  203. package/dist/web/assets/index-1o9y5y_j.js.map +1 -0
  204. package/dist/web/assets/{index-B1gUTG37.css → index-Dt4XbNcI.css} +1 -1
  205. package/dist/web/index.html +2 -2
  206. package/dist/{web-HRGWOUDV.js → web-HKNHNSJM.js} +322 -141
  207. package/dist/web-HKNHNSJM.js.map +1 -0
  208. package/npm-shrinkwrap.json +2 -2
  209. package/package.json +1 -1
  210. package/plugins/work-tree/skills/work-sessions/SKILL.md +18 -0
  211. package/dist/chunk-2SLALFWA.js.map +0 -1
  212. package/dist/chunk-4YG55UQ6.js +0 -9
  213. package/dist/chunk-A72CRTFG.js.map +0 -1
  214. package/dist/chunk-ALBTIOP3.js.map +0 -1
  215. package/dist/chunk-FJYM2JQN.js.map +0 -1
  216. package/dist/chunk-HGB7BITW.js.map +0 -1
  217. package/dist/chunk-MWIPHUAE.js.map +0 -1
  218. package/dist/chunk-PZGLIYMD.js.map +0 -1
  219. package/dist/state-24H5QRPO.js.map +0 -1
  220. package/dist/statusline-hook-SYRLMSDL.js +0 -72
  221. package/dist/statusline-hook-SYRLMSDL.js.map +0 -1
  222. package/dist/web/assets/index-DhXqtaRc.js.map +0 -1
  223. package/dist/web-HRGWOUDV.js.map +0 -1
  224. /package/dist/{chunk-7334DEPX.js.map → chunk-2YGVF224.js.map} +0 -0
  225. /package/dist/{chunk-S7OCHVVD.js.map → chunk-4EFPHIME.js.map} +0 -0
  226. /package/dist/{chunk-4YG55UQ6.js.map → chunk-6DOAS4VP.js.map} +0 -0
  227. /package/dist/{chunk-AT4EPCOV.js.map → chunk-6V6LBFWB.js.map} +0 -0
  228. /package/dist/{chunk-56D4WJ2S.js.map → chunk-AB3TSGJ4.js.map} +0 -0
  229. /package/dist/{chunk-V76KARDB.js.map → chunk-AFYYUXWA.js.map} +0 -0
  230. /package/dist/{chunk-2LUTV7UB.js.map → chunk-B56NMAPD.js.map} +0 -0
  231. /package/dist/{chunk-44UME4JD.js.map → chunk-BDZDOPAA.js.map} +0 -0
  232. /package/dist/{chunk-BGPCIL4U.js.map → chunk-D7TL6I5A.js.map} +0 -0
  233. /package/dist/{chunk-IVH5T4U2.js.map → chunk-DCEYDF77.js.map} +0 -0
  234. /package/dist/{chunk-PYHYZGY4.js.map → chunk-F2H4FQ62.js.map} +0 -0
  235. /package/dist/{chunk-AWP2MCMN.js.map → chunk-FCUVFJSY.js.map} +0 -0
  236. /package/dist/{chunk-GUEJVX2X.js.map → chunk-GROMKF62.js.map} +0 -0
  237. /package/dist/{chunk-55T4LC2P.js.map → chunk-HNZRVCQF.js.map} +0 -0
  238. /package/dist/{chunk-WKHP3AXS.js.map → chunk-IMTPBX3L.js.map} +0 -0
  239. /package/dist/{chunk-KK5RCNDL.js.map → chunk-J3XKW5CH.js.map} +0 -0
  240. /package/dist/{chunk-VG5WQPQB.js.map → chunk-JDLRVOX7.js.map} +0 -0
  241. /package/dist/{chunk-AC7FECH5.js.map → chunk-JQO5ANP4.js.map} +0 -0
  242. /package/dist/{chunk-H4TNGZKT.js.map → chunk-JTH2PASW.js.map} +0 -0
  243. /package/dist/{chunk-ADVMIHTB.js.map → chunk-L74WY44N.js.map} +0 -0
  244. /package/dist/{chunk-R5DHVUA2.js.map → chunk-LHKUHNE3.js.map} +0 -0
  245. /package/dist/{chunk-ITNSUPVJ.js.map → chunk-M5NJSO3M.js.map} +0 -0
  246. /package/dist/{chunk-MD6QMSXQ.js.map → chunk-MQGNH74M.js.map} +0 -0
  247. /package/dist/{chunk-F5RPC3LT.js.map → chunk-MRTSFVRF.js.map} +0 -0
  248. /package/dist/{chunk-BMLV63AW.js.map → chunk-MYMMOUTW.js.map} +0 -0
  249. /package/dist/{chunk-ATBSACIU.js.map → chunk-NB7IBSKF.js.map} +0 -0
  250. /package/dist/{chunk-WVDIS22N.js.map → chunk-NDSZQKYL.js.map} +0 -0
  251. /package/dist/{chunk-BGS5M542.js.map → chunk-NDXZKB27.js.map} +0 -0
  252. /package/dist/{chunk-WIYDT3PY.js.map → chunk-NFM4NGTI.js.map} +0 -0
  253. /package/dist/{chunk-PSEVXDTS.js.map → chunk-NHZZMY3H.js.map} +0 -0
  254. /package/dist/{chunk-4J2F6OWM.js.map → chunk-OHX7WKZU.js.map} +0 -0
  255. /package/dist/{chunk-AMKLWFT3.js.map → chunk-OOQBMWTK.js.map} +0 -0
  256. /package/dist/{chunk-3JLMVWRO.js.map → chunk-PORC2R73.js.map} +0 -0
  257. /package/dist/{chunk-QTENJUM3.js.map → chunk-QSY3HEP4.js.map} +0 -0
  258. /package/dist/{chunk-G7VLIMOH.js.map → chunk-R7FZ4FNO.js.map} +0 -0
  259. /package/dist/{chunk-2YRR5Q3C.js.map → chunk-RQ7W2CVL.js.map} +0 -0
  260. /package/dist/{chunk-XKPF4MD2.js.map → chunk-SM6RE2AH.js.map} +0 -0
  261. /package/dist/{chunk-IBTA4DSY.js.map → chunk-TNBZUIIP.js.map} +0 -0
  262. /package/dist/{chunk-QO4QWQUO.js.map → chunk-UD5CFHUS.js.map} +0 -0
  263. /package/dist/{chunk-WXYUABCL.js.map → chunk-UEEZ6DGK.js.map} +0 -0
  264. /package/dist/{chunk-J5B2Z7SO.js.map → chunk-UNV2YM5V.js.map} +0 -0
  265. /package/dist/{chunk-CNZV3UCM.js.map → chunk-UPS7NHKI.js.map} +0 -0
  266. /package/dist/{chunk-QDNNFL56.js.map → chunk-UXEFUSJV.js.map} +0 -0
  267. /package/dist/{chunk-374HKMSE.js.map → chunk-WC4IN5MD.js.map} +0 -0
  268. /package/dist/{chunk-SRE4CK6Y.js.map → chunk-WIXY4EDH.js.map} +0 -0
  269. /package/dist/{chunk-LBJHFVH3.js.map → chunk-WUW6WRKP.js.map} +0 -0
  270. /package/dist/{chunk-H5JNYD63.js.map → chunk-XDKH4X4N.js.map} +0 -0
  271. /package/dist/{chunk-CIUTNNF4.js.map → chunk-XEA3XWKW.js.map} +0 -0
  272. /package/dist/{chunk-VBB3E37Z.js.map → chunk-XHDC3IU4.js.map} +0 -0
  273. /package/dist/{chunk-PJ7ZKAZF.js.map → chunk-XVHRBV2I.js.map} +0 -0
  274. /package/dist/{chunk-PZ7WTBSI.js.map → chunk-Y7PWSACJ.js.map} +0 -0
  275. /package/dist/{chunk-26DBVWJC.js.map → chunk-YJYYR5RY.js.map} +0 -0
  276. /package/dist/{chunk-LVNPLXUO.js.map → chunk-ZAOX63AG.js.map} +0 -0
  277. /package/dist/{chunk-N2IDEZGB.js.map → chunk-ZSDMH3TI.js.map} +0 -0
  278. /package/dist/{cli-K6T6AJHP.js.map → cli-7XVDO432.js.map} +0 -0
  279. /package/dist/{history-CRUFLMA2.js.map → history-ZT6YAO62.js.map} +0 -0
  280. /package/dist/{install-skills-M2Y6ZGQC.js.map → install-skills-QTNDVA4T.js.map} +0 -0
  281. /package/dist/{review-now-LYGJDHDE.js.map → review-now-KZDBETZK.js.map} +0 -0
  282. /package/dist/{statusline-B6U3ANSM.js.map → statusline-QZKHVDHR.js.map} +0 -0
  283. /package/dist/{time-actions-AIKJ7ENX.js.map → time-actions-HY3AML3Y.js.map} +0 -0
  284. /package/dist/{todo-GB7X6KWW.js.map → todo-QY5ZPN24.js.map} +0 -0
  285. /package/dist/{usage-ask-BULFMCUZ.js.map → usage-ask-C3QLGFC5.js.map} +0 -0
  286. /package/dist/{version-6UJN2CCE.js.map → version-3UR4YFMC.js.map} +0 -0
@@ -9,10 +9,13 @@ import {
9
9
  claudeSettingsFile,
10
10
  internalClaudeReadOnlySpawn,
11
11
  internalClaudeSpawn
12
- } from "./chunk-WIYDT3PY.js";
12
+ } from "./chunk-NFM4NGTI.js";
13
13
  import {
14
14
  applyEnvDelta
15
15
  } from "./chunk-YQSWVHKK.js";
16
+ import {
17
+ checkedOutBranch
18
+ } from "./chunk-Z6ACV5ZQ.js";
16
19
  import {
17
20
  readReadings
18
21
  } from "./chunk-JUGF3YE7.js";
@@ -35,16 +38,17 @@ import {
35
38
  sessionAccount,
36
39
  setUpAccounts,
37
40
  validateClaudeAccounts
38
- } from "./chunk-7334DEPX.js";
41
+ } from "./chunk-2YGVF224.js";
39
42
  import {
40
43
  DEFAULT_ACCOUNT,
41
44
  getConfigPath,
42
45
  isAgentId,
43
46
  loadConfig
44
- } from "./chunk-MWIPHUAE.js";
47
+ } from "./chunk-LXBHVWOY.js";
45
48
  import {
46
- savedPath
47
- } from "./chunk-HGB7BITW.js";
49
+ savedPath,
50
+ userStatusLine
51
+ } from "./chunk-W4GDPHIF.js";
48
52
  import {
49
53
  accountOf
50
54
  } from "./chunk-BR6OWWAA.js";
@@ -154,86 +158,8 @@ function swallow(label) {
154
158
  }
155
159
 
156
160
  // src/core/worktree/own-checkout.ts
157
- import path2 from "path";
158
-
159
- // src/core/git/git-head.ts
160
- import fs2 from "fs";
161
161
  import path from "path";
162
- function checkedOutBranch(checkout) {
163
- try {
164
- const dirs = gitDirs(checkout);
165
- return dirs ? branchFromHead(fs2.readFileSync(path.join(dirs.gitDir, "HEAD"), "utf8")) : null;
166
- } catch {
167
- return null;
168
- }
169
- }
170
- function workingBranch(checkout) {
171
- const name = checkedOutBranch(checkout);
172
- if (name) return name;
173
- const dirs = gitDirs(checkout);
174
- if (!dirs) return null;
175
- for (const folder of ["rebase-merge", "rebase-apply"]) {
176
- try {
177
- const b = branchFromHead(`ref: ${fs2.readFileSync(path.join(dirs.gitDir, folder, "head-name"), "utf8").trim()}`);
178
- if (b) return b;
179
- } catch {
180
- }
181
- }
182
- return null;
183
- }
184
- function gitDirs(checkout) {
185
- try {
186
- const dotGit = path.join(checkout, ".git");
187
- if (!fs2.statSync(dotGit).isFile()) return { gitDir: dotGit, commonDir: dotGit };
188
- const m = /^gitdir:\s*(.+?)\s*$/m.exec(fs2.readFileSync(dotGit, "utf8"));
189
- if (!m) return null;
190
- const gitDir = path.resolve(checkout, m[1]);
191
- let commonDir = gitDir;
192
- try {
193
- commonDir = path.resolve(gitDir, fs2.readFileSync(path.join(gitDir, "commondir"), "utf8").trim());
194
- } catch {
195
- }
196
- return { gitDir, commonDir };
197
- } catch {
198
- return null;
199
- }
200
- }
201
- function refShaFromFiles(checkout, ref) {
202
- const dirs = gitDirs(checkout);
203
- if (!dirs) return null;
204
- const sha = (s) => /^[0-9a-f]{40,64}$/.test(s) ? s : null;
205
- let name = ref;
206
- if (ref === "HEAD") {
207
- let head;
208
- try {
209
- head = fs2.readFileSync(path.join(dirs.gitDir, "HEAD"), "utf8").trim();
210
- } catch {
211
- return null;
212
- }
213
- const m = /^ref:\s*(refs\/heads\/.+)$/.exec(head);
214
- if (!m) return sha(head);
215
- name = m[1];
216
- }
217
- try {
218
- return sha(fs2.readFileSync(path.join(dirs.commonDir, ...name.split("/")), "utf8").trim());
219
- } catch {
220
- }
221
- try {
222
- for (const line of fs2.readFileSync(path.join(dirs.commonDir, "packed-refs"), "utf8").split(/\r?\n/)) {
223
- const [s, r] = line.split(" ");
224
- if (r === name) return sha(s);
225
- }
226
- } catch {
227
- }
228
- return null;
229
- }
230
- function branchFromHead(head) {
231
- const m = /^ref:\s*refs\/heads\/(.+?)\s*$/m.exec(head);
232
- return m ? m[1] : null;
233
- }
234
-
235
- // src/core/worktree/own-checkout.ts
236
- var key = (p) => path2.resolve(p).replace(/\\/g, "/").replace(/\/+$/, "").toLowerCase();
162
+ var key = (p) => path.resolve(p).replace(/\\/g, "/").replace(/\/+$/, "").toLowerCase();
237
163
  function isOwnCheckout(s, repos) {
238
164
  const own = new Set(Object.values(repos).map(key));
239
165
  return s.paths.some((p) => own.has(key(p)));
@@ -264,7 +190,7 @@ var AccountAdminError = class extends Error {
264
190
  };
265
191
 
266
192
  // src/core/agents/index.ts
267
- import path14 from "path";
193
+ import path13 from "path";
268
194
 
269
195
  // src/core/agents/claude/startup-question.ts
270
196
  var YES = /^\s*[❯>]?\s*1\.\s+Yes, (?:I trust this folder|proceed)\s*$/;
@@ -278,25 +204,25 @@ function claudeStartupQuestion(screen) {
278
204
  }
279
205
 
280
206
  // src/core/agents/claude/adapter.ts
281
- import path13 from "path";
207
+ import path12 from "path";
282
208
 
283
209
  // src/core/agents/claude/files.ts
284
- import fs4 from "fs";
285
- import path4 from "path";
210
+ import fs3 from "fs";
211
+ import path3 from "path";
286
212
 
287
213
  // src/core/agents/claude/activity.ts
288
- import fs3 from "fs";
214
+ import fs2 from "fs";
289
215
  import os from "os";
290
- import path3 from "path";
216
+ import path2 from "path";
291
217
  function encodeProjectDir(p) {
292
- return path3.resolve(p).replace(/[^A-Za-z0-9]/g, "-");
218
+ return path2.resolve(p).replace(/[^A-Za-z0-9]/g, "-");
293
219
  }
294
220
  var listings = /* @__PURE__ */ new Map();
295
221
  var NAMES_MAX_AGE_MS = 2e3;
296
222
  function projectTranscripts(projectDir, now = Date.now()) {
297
223
  let dirMtimeMs;
298
224
  try {
299
- dirMtimeMs = fs3.statSync(projectDir).mtimeMs;
225
+ dirMtimeMs = fs2.statSync(projectDir).mtimeMs;
300
226
  } catch {
301
227
  listings.delete(projectDir);
302
228
  return [];
@@ -305,7 +231,7 @@ function projectTranscripts(projectDir, now = Date.now()) {
305
231
  if (!hit || hit.dirMtimeMs !== dirMtimeMs || now - hit.at >= NAMES_MAX_AGE_MS) {
306
232
  let names = [];
307
233
  try {
308
- names = fs3.readdirSync(projectDir).filter((n) => n.endsWith(".jsonl"));
234
+ names = fs2.readdirSync(projectDir).filter((n) => n.endsWith(".jsonl"));
309
235
  } catch {
310
236
  }
311
237
  hit = { at: now, dirMtimeMs, names };
@@ -314,8 +240,8 @@ function projectTranscripts(projectDir, now = Date.now()) {
314
240
  const files = [];
315
241
  for (const name of hit.names) {
316
242
  try {
317
- const file = path3.join(projectDir, name);
318
- const st = fs3.statSync(file);
243
+ const file = path2.join(projectDir, name);
244
+ const st = fs2.statSync(file);
319
245
  files.push({ file, mtimeMs: st.mtimeMs, size: st.size });
320
246
  } catch {
321
247
  }
@@ -328,7 +254,7 @@ function latestJsonlMtimeMs(projectDir) {
328
254
  return latest;
329
255
  }
330
256
  function projectsRootOf(configDir) {
331
- return path3.join(configDir || path3.join(os.homedir(), ".claude"), "projects");
257
+ return path2.join(configDir || path2.join(os.homedir(), ".claude"), "projects");
332
258
  }
333
259
  function claudeProjectsRoots(first) {
334
260
  const accounts = claudeAccounts();
@@ -337,28 +263,28 @@ function claudeProjectsRoots(first) {
337
263
  const out = [];
338
264
  for (const a of ordered) {
339
265
  const root = projectsRootOf(a.dir);
340
- const key2 = path3.resolve(root);
266
+ const key2 = path2.resolve(root);
341
267
  if (seen.has(key2)) continue;
342
268
  seen.add(key2);
343
269
  out.push(root);
344
270
  }
345
271
  return out;
346
272
  }
347
- var activityIn = (launchPath, configDir) => latestJsonlMtimeMs(path3.join(projectsRootOf(configDir), encodeProjectDir(launchPath)));
273
+ var activityIn = (launchPath, configDir) => latestJsonlMtimeMs(path2.join(projectsRootOf(configDir), encodeProjectDir(launchPath)));
348
274
  function getClaudeActivityMs(launchPath, configDir) {
349
275
  if (configDir) return activityIn(launchPath, configDir);
350
276
  let latest = 0;
351
- for (const root of claudeProjectsRoots()) latest = Math.max(latest, latestJsonlMtimeMs(path3.join(root, encodeProjectDir(launchPath))));
277
+ for (const root of claudeProjectsRoots()) latest = Math.max(latest, latestJsonlMtimeMs(path2.join(root, encodeProjectDir(launchPath))));
352
278
  return latest;
353
279
  }
354
280
  function hasClaudeConversation(dir, configDir) {
355
281
  return activityIn(dir, configDir) > 0;
356
282
  }
357
283
  function sessionRunFolders(session, existing = true) {
358
- const paths = existing ? session.paths.filter((p) => fs3.existsSync(p)) : session.paths;
284
+ const paths = existing ? session.paths.filter((p) => fs2.existsSync(p)) : session.paths;
359
285
  const out = /* @__PURE__ */ new Set();
360
286
  if (session.isGroup) {
361
- for (const p of paths) out.add(path3.dirname(p));
287
+ for (const p of paths) out.add(path2.dirname(p));
362
288
  for (const p of paths) out.add(p);
363
289
  } else {
364
290
  for (const p of paths) out.add(p);
@@ -366,9 +292,9 @@ function sessionRunFolders(session, existing = true) {
366
292
  return [...out];
367
293
  }
368
294
  function resolveResumeLaunch(session) {
369
- const existing = session.paths.filter((p) => fs3.existsSync(p));
295
+ const existing = session.paths.filter((p) => fs2.existsSync(p));
370
296
  const first = existing[0] ?? session.paths[0];
371
- const defaultPath = session.isGroup ? path3.dirname(first) : first;
297
+ const defaultPath = session.isGroup ? path2.dirname(first) : first;
372
298
  const candidates = sessionRunFolders(session);
373
299
  const configDir = configDirEnv(sessionAccount(session)).CLAUDE_CONFIG_DIR;
374
300
  let launchPath = defaultPath;
@@ -385,13 +311,13 @@ function resolveResumeLaunch(session) {
385
311
 
386
312
  // src/core/agents/claude/files.ts
387
313
  function listTranscripts(session) {
388
- const dirs = session.isGroup ? [...new Set(session.paths.map((p) => path4.dirname(p)))] : session.paths;
314
+ const dirs = session.isGroup ? [...new Set(session.paths.map((p) => path3.dirname(p)))] : session.paths;
389
315
  const roots = claudeProjectsRoots(sessionAccount(session));
390
316
  const seen = /* @__PURE__ */ new Set();
391
317
  const out = [];
392
318
  for (const d of dirs)
393
319
  for (const root of roots)
394
- for (const f of projectTranscripts(path4.join(root, encodeProjectDir(d)))) {
320
+ for (const f of projectTranscripts(path3.join(root, encodeProjectDir(d)))) {
395
321
  if (seen.has(f.file)) continue;
396
322
  seen.add(f.file);
397
323
  out.push(f);
@@ -402,18 +328,18 @@ function listUsageFiles(session) {
402
328
  const out = [];
403
329
  for (const t of listTranscripts(session)) {
404
330
  out.push(t);
405
- const dir = path4.join(t.file.replace(/\.jsonl$/, ""), "subagents");
331
+ const dir = path3.join(t.file.replace(/\.jsonl$/, ""), "subagents");
406
332
  let names;
407
333
  try {
408
- names = fs4.readdirSync(dir);
334
+ names = fs3.readdirSync(dir);
409
335
  } catch {
410
336
  continue;
411
337
  }
412
338
  for (const name of names) {
413
339
  if (!name.startsWith("agent-") || !name.endsWith(".jsonl")) continue;
414
- const file = path4.join(dir, name);
340
+ const file = path3.join(dir, name);
415
341
  try {
416
- const st = fs4.statSync(file);
342
+ const st = fs3.statSync(file);
417
343
  out.push({ file, mtimeMs: st.mtimeMs, size: st.size });
418
344
  } catch {
419
345
  }
@@ -441,23 +367,23 @@ function whatOf(meta) {
441
367
  function lookForBackgroundWork(session, sinceMs, afterMs, quietFrom = afterMs) {
442
368
  for (const t of listTranscripts(session)) {
443
369
  if (t.mtimeMs < sinceMs - AROUND_TURN_MS) continue;
444
- const dir = path4.join(t.file.replace(/\.jsonl$/, ""), "subagents");
370
+ const dir = path3.join(t.file.replace(/\.jsonl$/, ""), "subagents");
445
371
  let names;
446
372
  try {
447
- names = fs4.readdirSync(dir);
373
+ names = fs3.readdirSync(dir);
448
374
  } catch {
449
375
  continue;
450
376
  }
451
377
  for (const name of names) {
452
378
  if (!name.endsWith(".jsonl")) continue;
453
- const file = path4.join(dir, name);
379
+ const file = path3.join(dir, name);
454
380
  try {
455
- const written = fs4.statSync(file).mtimeMs;
381
+ const written = fs3.statSync(file).mtimeMs;
456
382
  if (written <= quietFrom) continue;
457
383
  const metaFile = file.replace(/\.jsonl$/, ".meta.json");
458
- const startedForTurn = fs4.statSync(metaFile).mtimeMs >= sinceMs - AROUND_TURN_MS;
384
+ const startedForTurn = fs3.statSync(metaFile).mtimeMs >= sinceMs - AROUND_TURN_MS;
459
385
  if (written <= afterMs && !startedForTurn) continue;
460
- const meta = JSON.parse(fs4.readFileSync(metaFile, "utf8"));
386
+ const meta = JSON.parse(fs3.readFileSync(metaFile, "utf8"));
461
387
  if (meta && typeof meta === "object" && meta.requestShape === "background")
462
388
  return { what: whatOf(meta) };
463
389
  } catch {
@@ -468,7 +394,7 @@ function lookForBackgroundWork(session, sinceMs, afterMs, quietFrom = afterMs) {
468
394
  }
469
395
 
470
396
  // src/core/conversations/jsonl.ts
471
- import fs5 from "fs";
397
+ import fs4 from "fs";
472
398
  var TAIL_BYTES = 256 * 1024;
473
399
  function parseLines(text) {
474
400
  const out = [];
@@ -487,15 +413,15 @@ function readJsonlTail(transcriptPath, bytes = TAIL_BYTES) {
487
413
  if (!transcriptPath) return [];
488
414
  let text;
489
415
  try {
490
- const fd = fs5.openSync(transcriptPath, "r");
416
+ const fd = fs4.openSync(transcriptPath, "r");
491
417
  try {
492
- const size = fs5.fstatSync(fd).size;
418
+ const size = fs4.fstatSync(fd).size;
493
419
  const start = Math.max(0, size - bytes);
494
420
  const buf = Buffer.alloc(size - start);
495
- fs5.readSync(fd, buf, 0, buf.length, start);
421
+ fs4.readSync(fd, buf, 0, buf.length, start);
496
422
  text = buf.toString("utf-8");
497
423
  } finally {
498
- fs5.closeSync(fd);
424
+ fs4.closeSync(fd);
499
425
  }
500
426
  } catch {
501
427
  return [];
@@ -509,7 +435,7 @@ async function readJsonlSince(transcriptPath, sinceMs, timeOf, opts = {}) {
509
435
  const max = Math.max(chunk, opts.maxBytes ?? SINCE_MAX_BYTES);
510
436
  let fh;
511
437
  try {
512
- fh = await fs5.promises.open(transcriptPath, "r");
438
+ fh = await fs4.promises.open(transcriptPath, "r");
513
439
  } catch {
514
440
  return { lines: [], partial: false };
515
441
  }
@@ -723,10 +649,10 @@ function claudeContextWindow(model, used) {
723
649
  }
724
650
 
725
651
  // src/core/agents/claude/hooks.ts
726
- import path6 from "path";
652
+ import path5 from "path";
727
653
 
728
654
  // src/core/agents/claude/permission.ts
729
- import path5 from "path";
655
+ import path4 from "path";
730
656
  function pendingToolUse(entries) {
731
657
  const answered = /* @__PURE__ */ new Set();
732
658
  for (const e of entries) {
@@ -757,7 +683,7 @@ var YES_SELECTED_RE = /❯\s*1\.\s*Yes\b/;
757
683
  var squash = (s) => s.replace(/[\s\u2500-\u257f]+/g, "");
758
684
  function screenAnchor(req) {
759
685
  if (req.tool === "Bash" || req.tool === "PowerShell") return squash(req.detail.split(" \u23CE ")[0]).slice(0, 40);
760
- if (/[\\/]/.test(req.detail) && !/^https?:/.test(req.detail)) return path5.basename(req.detail.replace(/\\/g, "/"));
686
+ if (/[\\/]/.test(req.detail) && !/^https?:/.test(req.detail)) return path4.basename(req.detail.replace(/\\/g, "/"));
761
687
  return "";
762
688
  }
763
689
  function checkDialog(screen, req) {
@@ -817,7 +743,7 @@ function claudeStatusEvent(edge, payload) {
817
743
  }
818
744
  }
819
745
  var toClaude = (h) => ({ owner: h.owner, event: CLAUDE_EVENT[h.edge] });
820
- var settingsFiles = () => setUpAccounts().map((a) => path6.join(a.dir, "settings.json"));
746
+ var settingsFiles = () => setUpAccounts().map((a) => path5.join(a.dir, "settings.json"));
821
747
  var claudeEvents = {
822
748
  removeInstalled: async (hooks) => {
823
749
  const inst = await loadInstaller();
@@ -844,10 +770,11 @@ var claudeEvents = {
844
770
  };
845
771
 
846
772
  // src/core/agents/claude/session-settings.ts
847
- import fs6 from "fs";
848
- import path7 from "path";
773
+ import fs5 from "fs";
774
+ import path6 from "path";
849
775
  var SESSION_SETTINGS_NAME = "claude-settings.json";
850
- var sessionSettingsPath = () => path7.join(getConfigDir(), SESSION_SETTINGS_NAME);
776
+ var SESSION_ALLOW = ["Bash(work child:*)", "Bash(work report:*)"];
777
+ var sessionSettingsPath = () => path6.join(getConfigDir(), SESSION_SETTINGS_NAME);
851
778
  function claudeSessionSettings(o) {
852
779
  const hooks = {};
853
780
  for (const h of SESSION_HOOKS) {
@@ -857,28 +784,34 @@ function claudeSessionSettings(o) {
857
784
  }
858
785
  return {
859
786
  hooks,
787
+ // A coordinator's own sessions (session-children.ts): `work child` acts only on the sessions the one running it
788
+ // started, and only once you granted it (`work coordinate --on`, never allowed here: Claude running it asks you);
789
+ // `work report` reaches only the session that started this one. Everything else that drives another session
790
+ // (`work send / stop / answer`) keeps asking.
791
+ permissions: { allow: [...SESSION_ALLOW] },
860
792
  ...o.statusLine ? { statusLine: { type: "command", command: workCommand(["hook", "statusline"], o.invocation) } } : {}
861
793
  };
862
794
  }
863
795
  function writeSessionSettings(o = {}) {
864
796
  const file = sessionSettingsPath();
865
- const statusLine = o.statusLine ?? loadConfig()?.usage?.statusLine !== false;
797
+ const config = loadConfig();
798
+ const statusLine = o.statusLine ?? (config?.usage?.statusLine !== false || config?.claudeStatusLine === "work");
866
799
  const text = JSON.stringify(claudeSessionSettings({ statusLine, invocation: o.invocation }), null, 2) + "\n";
867
800
  let now = null;
868
801
  try {
869
- now = fs6.readFileSync(file, "utf-8");
802
+ now = fs5.readFileSync(file, "utf-8");
870
803
  } catch {
871
804
  }
872
805
  if (now !== text) {
873
- fs6.mkdirSync(path7.dirname(file), { recursive: true });
806
+ fs5.mkdirSync(path6.dirname(file), { recursive: true });
874
807
  atomicWriteFile(file, text);
875
808
  }
876
809
  return file;
877
810
  }
878
- var isOurs = (p) => !!p && path7.basename(p) === SESSION_SETTINGS_NAME;
811
+ var isOurs = (p) => !!p && path6.basename(p) === SESSION_SETTINGS_NAME;
879
812
  function sessionSettingsFile(o = {}) {
880
813
  const file = sessionSettingsPath();
881
- return o.write === false && fs6.existsSync(file) ? file : writeSessionSettings();
814
+ return o.write === false && fs5.existsSync(file) ? file : writeSessionSettings();
882
815
  }
883
816
  var startedWithSessionSettings = (commandLine) => commandLine.includes(SESSION_SETTINGS_NAME);
884
817
  function withSessionSettings(tool, file = sessionSettingsFile()) {
@@ -894,9 +827,9 @@ function withSessionSettings(tool, file = sessionSettingsFile()) {
894
827
  }
895
828
 
896
829
  // src/core/agents/claude/live.ts
897
- import fs7 from "fs";
830
+ import fs6 from "fs";
898
831
  import os2 from "os";
899
- import path8 from "path";
832
+ import path7 from "path";
900
833
  var isObj = (v) => !!v && typeof v === "object" && !Array.isArray(v);
901
834
  function parseLiveClaude(raw) {
902
835
  if (!isObj(raw)) return null;
@@ -926,24 +859,24 @@ function aliveOnly(list, table, bootMs) {
926
859
  var TTL_MS = 5e3;
927
860
  var cache = null;
928
861
  function claudeSessionsDir() {
929
- return path8.join(process.env.CLAUDE_CONFIG_DIR || path8.join(os2.homedir(), ".claude"), "sessions");
862
+ return path7.join(process.env.CLAUDE_CONFIG_DIR || path7.join(os2.homedir(), ".claude"), "sessions");
930
863
  }
931
864
  function claudeSessionsDirs() {
932
865
  const accounts = claudeAccounts();
933
866
  if (accounts.length <= 1) return [claudeSessionsDir()];
934
- return [...new Set(accounts.map((a) => path8.join(a.dir, "sessions")))];
867
+ return [...new Set(accounts.map((a) => path7.join(a.dir, "sessions")))];
935
868
  }
936
869
  function readDir(dir, table) {
937
870
  let names;
938
871
  try {
939
- names = fs7.readdirSync(dir).filter((n) => /^\d+\.json$/.test(n));
872
+ names = fs6.readdirSync(dir).filter((n) => /^\d+\.json$/.test(n));
940
873
  } catch {
941
874
  return [];
942
875
  }
943
876
  const parsed = [];
944
877
  for (const n of names) {
945
878
  try {
946
- const c = parseLiveClaude(JSON.parse(fs7.readFileSync(path8.join(dir, n), "utf8")));
879
+ const c = parseLiveClaude(JSON.parse(fs6.readFileSync(path7.join(dir, n), "utf8")));
947
880
  if (c) parsed.push(c);
948
881
  } catch {
949
882
  }
@@ -971,12 +904,12 @@ var typeThenEnter = async (write, text, wait = (ms) => new Promise((r) => setTim
971
904
  };
972
905
 
973
906
  // src/core/agents/claude/workspace.ts
974
- import fs8 from "fs";
975
- import path9 from "path";
907
+ import fs7 from "fs";
908
+ import path8 from "path";
976
909
  var claudeAllowRule = (r) => `Bash(${r.command}${r.prefix ? ":*" : ""})`;
977
910
  var claudeWorkspace = {
978
911
  write(dir, { allow, hooks }) {
979
- fs8.mkdirSync(path9.join(dir, ".claude"), { recursive: true });
912
+ fs7.mkdirSync(path8.join(dir, ".claude"), { recursive: true });
980
913
  const byEvent = {};
981
914
  for (const h of hooks) {
982
915
  (byEvent[CLAUDE_EVENT[h.edge]] ??= []).push({
@@ -984,8 +917,8 @@ var claudeWorkspace = {
984
917
  });
985
918
  }
986
919
  const settings = { permissions: { allow: allow.map(claudeAllowRule) }, hooks: byEvent };
987
- atomicWriteFile(path9.join(dir, ".claude", "settings.json"), JSON.stringify(settings, null, 2) + "\n");
988
- return [path9.join(".claude", "settings.json")];
920
+ atomicWriteFile(path8.join(dir, ".claude", "settings.json"), JSON.stringify(settings, null, 2) + "\n");
921
+ return [path8.join(".claude", "settings.json")];
989
922
  }
990
923
  };
991
924
 
@@ -1055,9 +988,9 @@ function installClaudeSkillsFor(dir, run = runClaude) {
1055
988
 
1056
989
  // src/core/agents/claude/usage.ts
1057
990
  var installer2;
1058
- var loadInstaller2 = async () => installer2 ??= await import("./statusline-B6U3ANSM.js");
991
+ var loadInstaller2 = async () => installer2 ??= await import("./statusline-QZKHVDHR.js");
1059
992
  var asker;
1060
- var loadAsker = async () => asker ??= await import("./usage-ask-BULFMCUZ.js");
993
+ var loadAsker = async () => asker ??= await import("./usage-ask-C3QLGFC5.js");
1061
994
  function restoreMessage(o, saved = "~/.work/statusline.json") {
1062
995
  switch (o) {
1063
996
  case "restored":
@@ -1085,6 +1018,8 @@ var claudeUsage = {
1085
1018
  async refresh() {
1086
1019
  await (await loadAsker()).askClaudeUsage();
1087
1020
  },
1021
+ // A line in any account's own settings (an older work web's wrap counts as the line it saved).
1022
+ ownStatusLine: () => claudeAccounts().some((a) => userStatusLine({ configDir: a.dir }) !== null),
1088
1023
  async setup() {
1089
1024
  const done = await (await loadInstaller2()).unwrapAllStatusLines();
1090
1025
  const restored = done.filter((d) => d.outcome === "restored").map((d) => d.account);
@@ -1104,21 +1039,21 @@ var claudeUsage = {
1104
1039
  };
1105
1040
 
1106
1041
  // src/core/agents/claude/account-move.ts
1107
- import fs11 from "fs";
1108
- import path12 from "path";
1042
+ import fs10 from "fs";
1043
+ import path11 from "path";
1109
1044
 
1110
1045
  // src/core/agents/claude/account-admin.ts
1111
- import fs10 from "fs";
1046
+ import fs9 from "fs";
1112
1047
  import os4 from "os";
1113
- import path11 from "path";
1048
+ import path10 from "path";
1114
1049
 
1115
1050
  // src/core/agents/claude/setup-copy.ts
1116
- import fs9 from "fs";
1051
+ import fs8 from "fs";
1117
1052
  import os3 from "os";
1118
- import path10 from "path";
1053
+ import path9 from "path";
1119
1054
  var TRUSTED_FOLDERS = "trusted folders";
1120
1055
  function globalConfigFile(dir, home = os3.homedir()) {
1121
- return accountDirKey(dir) === accountDirKey(path10.join(home, ".claude")) ? path10.join(home, ".claude.json") : path10.join(dir, ".claude.json");
1056
+ return accountDirKey(dir) === accountDirKey(path9.join(home, ".claude")) ? path9.join(home, ".claude.json") : path9.join(dir, ".claude.json");
1122
1057
  }
1123
1058
  var isObject = (v) => !!v && typeof v === "object" && !Array.isArray(v);
1124
1059
  var same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
@@ -1198,7 +1133,7 @@ var FILES = ["CLAUDE.md", "statusline-command.sh"];
1198
1133
  var FOLDERS = ["agents", "commands"];
1199
1134
  var SETTINGS = ["settings.json", "settings.local.json"];
1200
1135
  function alreadyThere(from, to, io) {
1201
- if (io.isDir(from)) return io.isDir(to) && io.list(from).every((name) => alreadyThere(path10.join(from, name), path10.join(to, name), io));
1136
+ if (io.isDir(from)) return io.isDir(to) && io.list(from).every((name) => alreadyThere(path9.join(from, name), path9.join(to, name), io));
1202
1137
  const a = io.read(from);
1203
1138
  const b = io.read(to);
1204
1139
  return !!a && !!b && a.equals(b);
@@ -1208,31 +1143,31 @@ function marketplaceKey(source) {
1208
1143
  return args ? args[3].replace(/\\/g, "/").replace(/\/+$/, "").toLowerCase() : null;
1209
1144
  }
1210
1145
  var realSetupIo = {
1211
- exists: (p) => fs9.existsSync(p),
1146
+ exists: (p) => fs8.existsSync(p),
1212
1147
  isDir: (p) => {
1213
1148
  try {
1214
- return fs9.statSync(p).isDirectory();
1149
+ return fs8.statSync(p).isDirectory();
1215
1150
  } catch {
1216
1151
  return false;
1217
1152
  }
1218
1153
  },
1219
1154
  list: (dir) => {
1220
1155
  try {
1221
- return fs9.readdirSync(dir);
1156
+ return fs8.readdirSync(dir);
1222
1157
  } catch {
1223
1158
  return [];
1224
1159
  }
1225
1160
  },
1226
1161
  read: (file) => {
1227
1162
  try {
1228
- return fs9.readFileSync(file);
1163
+ return fs8.readFileSync(file);
1229
1164
  } catch {
1230
1165
  return null;
1231
1166
  }
1232
1167
  },
1233
1168
  readJson: (file) => {
1234
1169
  try {
1235
- return JSON.parse(fs9.readFileSync(file, "utf-8"));
1170
+ return JSON.parse(fs8.readFileSync(file, "utf-8"));
1236
1171
  } catch {
1237
1172
  return null;
1238
1173
  }
@@ -1258,20 +1193,20 @@ function withTrusted(config, folders) {
1258
1193
  }
1259
1194
  function planSetupCopy(from, to, io = realSetupIo) {
1260
1195
  const items = [];
1261
- const there = (rel) => io.exists(path10.join(to.dir, rel));
1262
- const differs = (rel) => !alreadyThere(path10.join(from.dir, rel), path10.join(to.dir, rel), io);
1196
+ const there = (rel) => io.exists(path9.join(to.dir, rel));
1197
+ const differs = (rel) => !alreadyThere(path9.join(from.dir, rel), path9.join(to.dir, rel), io);
1263
1198
  for (const f of FILES)
1264
- if (io.exists(path10.join(from.dir, f)) && differs(f)) items.push({ kind: "file", name: f, does: there(f) ? "replaces" : "adds" });
1199
+ if (io.exists(path9.join(from.dir, f)) && differs(f)) items.push({ kind: "file", name: f, does: there(f) ? "replaces" : "adds" });
1265
1200
  for (const d of FOLDERS)
1266
- if (io.isDir(path10.join(from.dir, d)) && io.list(path10.join(from.dir, d)).length && differs(d))
1201
+ if (io.isDir(path9.join(from.dir, d)) && io.list(path9.join(from.dir, d)).length && differs(d))
1267
1202
  items.push({ kind: "folder", name: `${d}/`, does: there(d) ? "merges into" : "adds" });
1268
- for (const skill of io.list(path10.join(from.dir, "skills")).filter((s) => s !== "synced" && io.isDir(path10.join(from.dir, "skills", s))))
1269
- if (differs(path10.join("skills", skill)))
1270
- items.push({ kind: "folder", name: `skills/${skill}/`, does: there(path10.join("skills", skill)) ? "replaces" : "adds" });
1203
+ for (const skill of io.list(path9.join(from.dir, "skills")).filter((s) => s !== "synced" && io.isDir(path9.join(from.dir, "skills", s))))
1204
+ if (differs(path9.join("skills", skill)))
1205
+ items.push({ kind: "folder", name: `skills/${skill}/`, does: there(path9.join("skills", skill)) ? "replaces" : "adds" });
1271
1206
  for (const s of SETTINGS) {
1272
- const source = io.readJson(path10.join(from.dir, s));
1207
+ const source = io.readJson(path9.join(from.dir, s));
1273
1208
  if (!isObject(source)) continue;
1274
- const target = io.readJson(path10.join(to.dir, s));
1209
+ const target = io.readJson(path9.join(to.dir, s));
1275
1210
  const have = isObject(target) ? target : {};
1276
1211
  if (!same(mergeSettings(source, have), have))
1277
1212
  items.push({
@@ -1294,8 +1229,8 @@ function planSetupCopy(from, to, io = realSetupIo) {
1294
1229
  ...remote ? { note: `needs its own sign-in on ${to.name}: /mcp \u2192 ${name} \u2192 Authenticate` } : {}
1295
1230
  });
1296
1231
  }
1297
- const markets = io.readJson(path10.join(from.dir, "plugins", "known_marketplaces.json"));
1298
- const haveMarkets = io.readJson(path10.join(to.dir, "plugins", "known_marketplaces.json"));
1232
+ const markets = io.readJson(path9.join(from.dir, "plugins", "known_marketplaces.json"));
1233
+ const haveMarkets = io.readJson(path9.join(to.dir, "plugins", "known_marketplaces.json"));
1299
1234
  const haveSources = new Set(
1300
1235
  Object.values(isObject(haveMarkets) ? haveMarkets : {}).map((m) => marketplaceKey(isObject(m) ? m.source : null)).filter((k) => k !== null)
1301
1236
  );
@@ -1306,8 +1241,8 @@ function planSetupCopy(from, to, io = realSetupIo) {
1306
1241
  const args = marketplaceAddArgs(isObject(m) ? m.source : null);
1307
1242
  if (args) items.push({ kind: "marketplace", name, does: "adds", note: args[3] });
1308
1243
  }
1309
- const enabled = objectAt(io.readJson(path10.join(from.dir, "settings.json")), "enabledPlugins");
1310
- const installed = objectAt(io.readJson(path10.join(to.dir, "plugins", "installed_plugins.json")), "plugins");
1244
+ const enabled = objectAt(io.readJson(path9.join(from.dir, "settings.json")), "enabledPlugins");
1245
+ const installed = objectAt(io.readJson(path9.join(to.dir, "plugins", "installed_plugins.json")), "plugins");
1311
1246
  for (const [id, on] of Object.entries(enabled))
1312
1247
  if (on === true && !(id in installed)) items.push({ kind: "plugin", name: id, does: "adds", note: "installed from its marketplace" });
1313
1248
  const trust = trustToCopy(from, to, io);
@@ -1340,14 +1275,14 @@ function setupEnv(dir) {
1340
1275
  return accountDirKey(dir) === accountDirKey(defaultAccountDir()) ? { CLAUDE_CONFIG_DIR: null } : { CLAUDE_CONFIG_DIR: dir };
1341
1276
  }
1342
1277
  function mergeSettingsFile(fromFile, toFile) {
1343
- const source = JSON.parse(fs9.readFileSync(fromFile, "utf-8"));
1278
+ const source = JSON.parse(fs8.readFileSync(fromFile, "utf-8"));
1344
1279
  if (!isObject(source)) throw new Error("its settings are not an object");
1345
- fs9.mkdirSync(path10.dirname(toFile), { recursive: true });
1280
+ fs8.mkdirSync(path9.dirname(toFile), { recursive: true });
1346
1281
  ensureFile(toFile, "{}\n");
1347
1282
  withFileLockSync(toFile, () => {
1348
1283
  let target = {};
1349
1284
  try {
1350
- target = JSON.parse(fs9.readFileSync(toFile, "utf-8"));
1285
+ target = JSON.parse(fs8.readFileSync(toFile, "utf-8"));
1351
1286
  } catch {
1352
1287
  }
1353
1288
  atomicWriteFile(toFile, `${JSON.stringify(mergeSettings(source, isObject(target) ? target : {}), null, 2)}
@@ -1355,12 +1290,12 @@ function mergeSettingsFile(fromFile, toFile) {
1355
1290
  });
1356
1291
  }
1357
1292
  function trustFolders(file, folders) {
1358
- fs9.mkdirSync(path10.dirname(file), { recursive: true });
1293
+ fs8.mkdirSync(path9.dirname(file), { recursive: true });
1359
1294
  ensureFile(file, "{}\n");
1360
1295
  withFileLockSync(file, () => {
1361
1296
  let config;
1362
1297
  try {
1363
- config = JSON.parse(fs9.readFileSync(file, "utf-8"));
1298
+ config = JSON.parse(fs8.readFileSync(file, "utf-8"));
1364
1299
  } catch {
1365
1300
  throw new Error("its config file can\u2019t be read");
1366
1301
  }
@@ -1372,18 +1307,18 @@ async function applySetupCopy(from, to, run = runClaude2) {
1372
1307
  if (accountDirKey(from.dir) === accountDirKey(to.dir)) throw new Error("an account\u2019s setup can\u2019t be copied to itself");
1373
1308
  const env = setupEnv(to.dir);
1374
1309
  const servers = userMcpServers(from.dir);
1375
- const markets = realSetupIo.readJson(path10.join(from.dir, "plugins", "known_marketplaces.json"));
1310
+ const markets = realSetupIo.readJson(path9.join(from.dir, "plugins", "known_marketplaces.json"));
1376
1311
  const results = [];
1377
1312
  for (const item of planSetupCopy(from, to)) {
1378
1313
  try {
1379
1314
  const rel = item.name.replace(/\/$/, "");
1380
1315
  if (item.kind === "file") {
1381
- fs9.mkdirSync(to.dir, { recursive: true });
1382
- fs9.copyFileSync(path10.join(from.dir, rel), path10.join(to.dir, rel));
1316
+ fs8.mkdirSync(to.dir, { recursive: true });
1317
+ fs8.copyFileSync(path9.join(from.dir, rel), path9.join(to.dir, rel));
1383
1318
  } else if (item.kind === "folder") {
1384
- fs9.cpSync(path10.join(from.dir, rel), path10.join(to.dir, rel), { recursive: true, force: true, verbatimSymlinks: true });
1319
+ fs8.cpSync(path9.join(from.dir, rel), path9.join(to.dir, rel), { recursive: true, force: true, verbatimSymlinks: true });
1385
1320
  } else if (item.kind === "settings") {
1386
- mergeSettingsFile(path10.join(from.dir, rel), path10.join(to.dir, rel));
1321
+ mergeSettingsFile(path9.join(from.dir, rel), path9.join(to.dir, rel));
1387
1322
  } else if (item.kind === "mcp") {
1388
1323
  if (item.does === "replaces") run(["mcp", "remove", item.name, "--scope", "user"], env);
1389
1324
  const r = run(["mcp", "add-json", item.name, "-", "--scope", "user"], env, JSON.stringify(servers[item.name]));
@@ -1412,9 +1347,9 @@ async function applySetupCopy(from, to, run = runClaude2) {
1412
1347
  // src/core/agents/claude/account-admin.ts
1413
1348
  async function editConfig(fn) {
1414
1349
  const file = getConfigPath();
1415
- if (!fs10.existsSync(file)) throw new AccountAdminError("No configuration yet: run `work init` first.");
1350
+ if (!fs9.existsSync(file)) throw new AccountAdminError("No configuration yet: run `work init` first.");
1416
1351
  return withFileLock(file, () => {
1417
- const raw = JSON.parse(fs10.readFileSync(file, "utf-8"));
1352
+ const raw = JSON.parse(fs9.readFileSync(file, "utf-8"));
1418
1353
  const existing = raw.claudeAccounts;
1419
1354
  const accounts = existing && typeof existing === "object" && !Array.isArray(existing) ? { ...existing } : {};
1420
1355
  const out = fn(raw, accounts);
@@ -1426,14 +1361,14 @@ async function editConfig(fn) {
1426
1361
  }
1427
1362
  var validIn = (raw) => validateClaudeAccounts(raw.claudeAccounts, void 0, accountForbiddenRoots(raw)).accounts ?? {};
1428
1363
  async function addAccount(name, dir) {
1429
- const folder = expandAccountDir(dir?.trim() || path11.join(os4.homedir(), `.claude-${name}`));
1364
+ const folder = expandAccountDir(dir?.trim() || path10.join(os4.homedir(), `.claude-${name}`));
1430
1365
  if (!folder) throw new AccountAdminError(`${dir} is not an absolute folder`);
1431
1366
  return editConfig((raw, accounts) => {
1432
1367
  if (name in accounts) throw new AccountAdminError(`there is already an account \u201C${name}\u201D`);
1433
1368
  const problem = accountProblem(name, folder, Object.values(validIn(raw)), accountForbiddenRoots(raw));
1434
1369
  if (problem) throw new AccountAdminError(problem);
1435
1370
  try {
1436
- fs10.mkdirSync(folder, { recursive: true });
1371
+ fs9.mkdirSync(folder, { recursive: true });
1437
1372
  } catch (e) {
1438
1373
  throw new AccountAdminError(`couldn't make ${folder}: ${e instanceof Error ? e.message : String(e)}`);
1439
1374
  }
@@ -1510,14 +1445,14 @@ var AccountMoveError = class extends Error {
1510
1445
  };
1511
1446
  var isDir = (p) => {
1512
1447
  try {
1513
- return fs11.statSync(p).isDirectory();
1448
+ return fs10.statSync(p).isDirectory();
1514
1449
  } catch {
1515
1450
  return false;
1516
1451
  }
1517
1452
  };
1518
1453
  var exists = (p) => {
1519
1454
  try {
1520
- fs11.lstatSync(p);
1455
+ fs10.lstatSync(p);
1521
1456
  return true;
1522
1457
  } catch {
1523
1458
  return false;
@@ -1525,31 +1460,31 @@ var exists = (p) => {
1525
1460
  };
1526
1461
  var mtime = (p) => {
1527
1462
  try {
1528
- return fs11.statSync(p).mtimeMs;
1463
+ return fs10.statSync(p).mtimeMs;
1529
1464
  } catch {
1530
1465
  return 0;
1531
1466
  }
1532
1467
  };
1533
1468
  function moveEntry(from, to) {
1534
- fs11.mkdirSync(path12.dirname(to), { recursive: true });
1469
+ fs10.mkdirSync(path11.dirname(to), { recursive: true });
1535
1470
  try {
1536
- fs11.renameSync(from, to);
1471
+ fs10.renameSync(from, to);
1537
1472
  return;
1538
1473
  } catch (err) {
1539
1474
  const code = err.code;
1540
1475
  if (code !== "EXDEV" && code !== "EPERM") throw err;
1541
1476
  }
1542
1477
  try {
1543
- fs11.cpSync(from, to, { recursive: true, errorOnExist: true, force: false, preserveTimestamps: true });
1478
+ fs10.cpSync(from, to, { recursive: true, errorOnExist: true, force: false, preserveTimestamps: true });
1544
1479
  } catch (err) {
1545
- fs11.rmSync(to, { recursive: true, force: true });
1480
+ fs10.rmSync(to, { recursive: true, force: true });
1546
1481
  throw err;
1547
1482
  }
1548
1483
  try {
1549
- fs11.rmSync(from, { recursive: true, force: true });
1484
+ fs10.rmSync(from, { recursive: true, force: true });
1550
1485
  } catch (err) {
1551
1486
  try {
1552
- fs11.cpSync(to, from, { recursive: true, force: false, errorOnExist: false, preserveTimestamps: true });
1487
+ fs10.cpSync(to, from, { recursive: true, force: false, errorOnExist: false, preserveTimestamps: true });
1553
1488
  } catch (back) {
1554
1489
  const why = (e) => e instanceof Error ? e.message : String(e);
1555
1490
  throw new Error(`${why(err)}; what its delete took couldn't be put back (${why(back)}), so it is kept at ${to} too`, {
@@ -1557,7 +1492,7 @@ function moveEntry(from, to) {
1557
1492
  });
1558
1493
  }
1559
1494
  try {
1560
- fs11.rmSync(to, { recursive: true, force: true });
1495
+ fs10.rmSync(to, { recursive: true, force: true });
1561
1496
  } catch {
1562
1497
  }
1563
1498
  throw err;
@@ -1576,9 +1511,9 @@ function mergeInto(src, dst, tag, steps, moved) {
1576
1511
  return;
1577
1512
  }
1578
1513
  if (isDir(src) && isDir(dst)) {
1579
- for (const name of fs11.readdirSync(src)) mergeInto(path12.join(src, name), path12.join(dst, name), tag, steps, moved);
1514
+ for (const name of fs10.readdirSync(src)) mergeInto(path11.join(src, name), path11.join(dst, name), tag, steps, moved);
1580
1515
  try {
1581
- fs11.rmdirSync(src);
1516
+ fs10.rmdirSync(src);
1582
1517
  } catch {
1583
1518
  }
1584
1519
  return;
@@ -1612,32 +1547,32 @@ function undo(steps) {
1612
1547
  }
1613
1548
  function latestConversation(dir) {
1614
1549
  let best = null;
1615
- for (const name of fs11.readdirSync(dir)) {
1550
+ for (const name of fs10.readdirSync(dir)) {
1616
1551
  if (!name.endsWith(".jsonl")) continue;
1617
- const at = mtime(path12.join(dir, name));
1552
+ const at = mtime(path11.join(dir, name));
1618
1553
  if (!best || at > best.at) best = { name, at };
1619
1554
  }
1620
1555
  if (!best) return [];
1621
1556
  const id = best.name.slice(0, -".jsonl".length);
1622
- return [best.name, ...isDir(path12.join(dir, id)) ? [id] : []];
1557
+ return [best.name, ...isDir(path11.join(dir, id)) ? [id] : []];
1623
1558
  }
1624
1559
  function moveConversations(session, fromDir, toDir, tag = "old", opts = {}) {
1625
1560
  const steps = [];
1626
1561
  const moved = [];
1627
- if (path12.resolve(fromDir) === path12.resolve(toDir)) return { moved };
1562
+ if (path11.resolve(fromDir) === path11.resolve(toDir)) return { moved };
1628
1563
  const emptied = [];
1629
1564
  let at = "";
1630
1565
  try {
1631
1566
  for (const cwd of sessionRunFolders(session, false)) {
1632
1567
  const name = encodeProjectDir(cwd);
1633
- const src = path12.join(projectsRootOf(fromDir), name);
1568
+ const src = path11.join(projectsRootOf(fromDir), name);
1634
1569
  if (!isDir(src)) continue;
1635
1570
  at = src;
1636
- const dst = path12.join(projectsRootOf(toDir), name);
1571
+ const dst = path11.join(projectsRootOf(toDir), name);
1637
1572
  if (opts.onlyLatest) {
1638
1573
  for (const entry of latestConversation(src)) {
1639
- at = path12.join(src, entry);
1640
- mergeInto(path12.join(src, entry), path12.join(dst, entry), tag, steps, moved);
1574
+ at = path11.join(src, entry);
1575
+ mergeInto(path11.join(src, entry), path11.join(dst, entry), tag, steps, moved);
1641
1576
  }
1642
1577
  continue;
1643
1578
  }
@@ -1656,7 +1591,7 @@ function moveConversations(session, fromDir, toDir, tag = "old", opts = {}) {
1656
1591
  }
1657
1592
  for (const src of emptied) {
1658
1593
  try {
1659
- fs11.rmdirSync(src);
1594
+ fs10.rmdirSync(src);
1660
1595
  } catch {
1661
1596
  }
1662
1597
  }
@@ -1725,8 +1660,8 @@ var claudeAgent = {
1725
1660
  prLinks: claudePrLinks,
1726
1661
  // In the session's own account's projects folder: that is where its `--continue` looks.
1727
1662
  restoreDir: (s) => {
1728
- const cwd = s.isGroup && s.paths[0] ? path13.dirname(s.paths[0]) : s.paths[0];
1729
- return cwd ? path13.join(projectsRootOf(accountDir(sessionAccount(s)) ?? void 0), encodeProjectDir(cwd)) : null;
1663
+ const cwd = s.isGroup && s.paths[0] ? path12.dirname(s.paths[0]) : s.paths[0];
1664
+ return cwd ? path12.join(projectsRootOf(accountDir(sessionAccount(s)) ?? void 0), encodeProjectDir(cwd)) : null;
1730
1665
  }
1731
1666
  },
1732
1667
  events: claudeEvents,
@@ -1755,7 +1690,7 @@ var claudeAgent = {
1755
1690
  denyRules: (repos) => claudeReadDenyRules(repos),
1756
1691
  // Its flags were measured on one Claude Code (READ_ONLY_MIN_VERSION): an older one gets no checkout run.
1757
1692
  // Loaded when a review asks: the hook processes load this adapter on every turn edge.
1758
- available: async () => (await import("./version-6UJN2CCE.js")).claudeReadOnlyAvailable()
1693
+ available: async () => (await import("./version-3UR4YFMC.js")).claudeReadOnlyAvailable()
1759
1694
  }
1760
1695
  },
1761
1696
  instructionsFile: "CLAUDE.md",
@@ -1794,7 +1729,7 @@ function plainAgent(id) {
1794
1729
  launch: {
1795
1730
  tool: (config) => getAiTool(config && getAiTool(config).cmd === id ? config : { aiCommand: id }),
1796
1731
  canResume: () => false,
1797
- resumeLaunch: (s) => ({ launchPath: s.isGroup ? path14.dirname(s.paths[0] ?? "") : s.paths[0] ?? "", hasConversation: false }),
1732
+ resumeLaunch: (s) => ({ launchPath: s.isGroup ? path13.dirname(s.paths[0] ?? "") : s.paths[0] ?? "", hasConversation: false }),
1798
1733
  cleanEnv: (env) => ({ ...env })
1799
1734
  },
1800
1735
  // Text, a pause, Enter — and no dialog to answer by keystroke (its screen is unknown).
@@ -1862,10 +1797,6 @@ function agentFor(config, session) {
1862
1797
  }
1863
1798
 
1864
1799
  export {
1865
- checkedOutBranch,
1866
- workingBranch,
1867
- gitDirs,
1868
- refShaFromFiles,
1869
1800
  KNOWN_TOOLS,
1870
1801
  buildAiLaunchArgs,
1871
1802
  logSwallowed,
@@ -1895,4 +1826,4 @@ export {
1895
1826
  agentToRecord,
1896
1827
  agentFor
1897
1828
  };
1898
- //# sourceMappingURL=chunk-FJYM2JQN.js.map
1829
+ //# sourceMappingURL=chunk-FDFFJOV6.js.map