@moberg_hr/work-tree 2.14.1 → 2.16.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 (349) hide show
  1. package/dist/{account-GOU2FC56.js → account-MYGAXTF6.js} +31 -30
  2. package/dist/account-MYGAXTF6.js.map +1 -0
  3. package/dist/{add-repo-PHD76M4S.js → add-repo-7PLONSB6.js} +30 -29
  4. package/dist/{add-repo-PHD76M4S.js.map → add-repo-7PLONSB6.js.map} +1 -1
  5. package/dist/{answer-HUVZ3XMW.js → answer-H3D6OLHJ.js} +19 -18
  6. package/dist/{answer-HUVZ3XMW.js.map → answer-H3D6OLHJ.js.map} +1 -1
  7. package/dist/{attach-RJ53ABQN.js → attach-Z2HEZVZW.js} +26 -26
  8. package/dist/bin.js +9 -7
  9. package/dist/bin.js.map +1 -1
  10. package/dist/{block-W34JH22B.js → block-BWRLOTSM.js} +24 -23
  11. package/dist/{block-W34JH22B.js.map → block-BWRLOTSM.js.map} +1 -1
  12. package/dist/{broadcast-7YTINXQF.js → broadcast-RY6NAYGN.js} +16 -15
  13. package/dist/{broadcast-7YTINXQF.js.map → broadcast-RY6NAYGN.js.map} +1 -1
  14. package/dist/{catchup-5HC52SDK.js → catchup-K5ICNWDH.js} +22 -21
  15. package/dist/{catchup-5HC52SDK.js.map → catchup-K5ICNWDH.js.map} +1 -1
  16. package/dist/{chunk-WAZCBD7Y.js → chunk-2CVBAJH7.js} +3 -3
  17. package/dist/{chunk-X5XVXJ4B.js → chunk-2H3H23W5.js} +2 -2
  18. package/dist/{chunk-7ZL3GJGY.js → chunk-2L2TNYQA.js} +4 -4
  19. package/dist/{chunk-6MUKE253.js → chunk-3JANKWY2.js} +4 -4
  20. package/dist/{chunk-VLUME72O.js → chunk-3L5VDONX.js} +4 -4
  21. package/dist/chunk-3OMFMSZ4.js +9 -0
  22. package/dist/{chunk-RUIBZ6DI.js → chunk-42WCSVBK.js} +5 -5
  23. package/dist/chunk-42WCSVBK.js.map +1 -0
  24. package/dist/{chunk-JQ42ERH3.js → chunk-44UME4JD.js} +2 -2
  25. package/dist/{chunk-KJY2AJQS.js → chunk-45QJQIWF.js} +12 -12
  26. package/dist/chunk-45QJQIWF.js.map +1 -0
  27. package/dist/{chunk-2K44PZRP.js → chunk-473UMEVN.js} +60 -59
  28. package/dist/chunk-473UMEVN.js.map +1 -0
  29. package/dist/{chunk-AYHDJMMJ.js → chunk-4CXUVBOD.js} +2 -2
  30. package/dist/{chunk-Z3T5FWM6.js → chunk-4HNMJIUZ.js} +2 -2
  31. package/dist/{chunk-MKJH2D4V.js → chunk-4NIOURHZ.js} +2 -2
  32. package/dist/{chunk-T7K276XW.js → chunk-4YO2PDUC.js} +6 -6
  33. package/dist/{chunk-AU27USPZ.js → chunk-5ZCCUM75.js} +2 -2
  34. package/dist/{chunk-UTBIZ6W5.js → chunk-63NT2NZD.js} +7 -7
  35. package/dist/{chunk-RRNIJ7YO.js → chunk-ALBTIOP3.js} +3 -3
  36. package/dist/{chunk-UIG3CTXU.js → chunk-C5F36EGT.js} +8 -8
  37. package/dist/{chunk-MOTKVMGL.js → chunk-C6TKUX7I.js} +30 -5
  38. package/dist/chunk-C6TKUX7I.js.map +1 -0
  39. package/dist/{chunk-DWEW7I53.js → chunk-CJQPKHDO.js} +9 -9
  40. package/dist/{chunk-RVSRZ57P.js → chunk-CNZV3UCM.js} +2 -2
  41. package/dist/{chunk-CBCOVIXZ.js → chunk-DOYJR2HF.js} +5 -3
  42. package/dist/{chunk-CBCOVIXZ.js.map → chunk-DOYJR2HF.js.map} +1 -1
  43. package/dist/{chunk-LSZ6HI3U.js → chunk-EORL2V7P.js} +2 -2
  44. package/dist/{chunk-EHUKDUNJ.js → chunk-EQJZ2GXX.js} +7 -7
  45. package/dist/{chunk-UI45HNNQ.js → chunk-EVZUJLZH.js} +9 -9
  46. package/dist/{chunk-5D5V4P7J.js → chunk-EX6ELNTN.js} +5 -5
  47. package/dist/chunk-F2ECTTSY.js +22 -0
  48. package/dist/chunk-F2ECTTSY.js.map +1 -0
  49. package/dist/{chunk-AGRUEZQX.js → chunk-GNIYYXQX.js} +2 -2
  50. package/dist/{chunk-ERXXU72V.js → chunk-GT3KUREW.js} +7 -7
  51. package/dist/{chunk-Y2DBNXZH.js → chunk-H3WBTKPB.js} +291 -114
  52. package/dist/chunk-H3WBTKPB.js.map +1 -0
  53. package/dist/chunk-HK6AZQ5Z.js +54 -0
  54. package/dist/chunk-HK6AZQ5Z.js.map +1 -0
  55. package/dist/{chunk-ULI3NB4J.js → chunk-HT52LVYU.js} +7 -7
  56. package/dist/{chunk-RCWQD32G.js → chunk-HWMQV4YD.js} +5 -5
  57. package/dist/{chunk-MUCUSF6Y.js → chunk-I5YQ7AC5.js} +3 -3
  58. package/dist/{chunk-6THUVP6T.js → chunk-IAKOKZYW.js} +13 -27
  59. package/dist/chunk-IAKOKZYW.js.map +1 -0
  60. package/dist/{chunk-TUDDISCX.js → chunk-ICEP4WAK.js} +4 -4
  61. package/dist/{chunk-FLY3VR6B.js → chunk-IKGSTBTG.js} +3 -2
  62. package/dist/chunk-IKGSTBTG.js.map +1 -0
  63. package/dist/{chunk-7UXV4X2Y.js → chunk-IPHADNF5.js} +2 -2
  64. package/dist/{chunk-K5EAVRXX.js → chunk-JYWX2N5W.js} +4 -6
  65. package/dist/{chunk-K5EAVRXX.js.map → chunk-JYWX2N5W.js.map} +1 -1
  66. package/dist/chunk-KL7RY6UG.js +36 -0
  67. package/dist/chunk-KL7RY6UG.js.map +1 -0
  68. package/dist/{chunk-YXUVNSDM.js → chunk-LBPYBBXX.js} +2 -2
  69. package/dist/{chunk-6AJFOISA.js → chunk-LMD2J2JN.js} +4 -4
  70. package/dist/{chunk-T26N4I4E.js → chunk-LMSKMRNU.js} +11 -11
  71. package/dist/chunk-LMSKMRNU.js.map +1 -0
  72. package/dist/{chunk-2Y2ARDXI.js → chunk-MD6QMSXQ.js} +2 -2
  73. package/dist/{chunk-TNKBZIR5.js → chunk-MH4D37RT.js} +3 -3
  74. package/dist/{chunk-U2MOKVPZ.js → chunk-MHL66TIL.js} +2 -2
  75. package/dist/{chunk-GDR4RWF4.js → chunk-N5P2OY5O.js} +2 -2
  76. package/dist/{chunk-BPAV2PIE.js → chunk-NIAXRF5E.js} +2 -2
  77. package/dist/{chunk-NCXRMJGS.js → chunk-O2IARWVM.js} +9 -6
  78. package/dist/chunk-O2IARWVM.js.map +1 -0
  79. package/dist/{chunk-BXVBNYQT.js → chunk-OA3TYOAY.js} +4 -4
  80. package/dist/{chunk-DPO6I7OR.js → chunk-P5633SI2.js} +12 -12
  81. package/dist/{chunk-AKDTLWWD.js → chunk-PJPYRXKJ.js} +8 -8
  82. package/dist/{chunk-UH72CZAX.js → chunk-PZ7WTBSI.js} +2 -2
  83. package/dist/{chunk-ZS7ZXAXB.js → chunk-QOSAWNOU.js} +66 -2
  84. package/dist/chunk-QOSAWNOU.js.map +1 -0
  85. package/dist/{chunk-XSI4WZIX.js → chunk-QTUYNY3F.js} +5 -5
  86. package/dist/{chunk-UY5J2KY2.js → chunk-QUL26RYB.js} +32 -22
  87. package/dist/chunk-QUL26RYB.js.map +1 -0
  88. package/dist/{chunk-RCBDG7CW.js → chunk-R5DHVUA2.js} +4 -3
  89. package/dist/{chunk-RCBDG7CW.js.map → chunk-R5DHVUA2.js.map} +1 -1
  90. package/dist/{chunk-BK73QU45.js → chunk-REPFZIPP.js} +27 -8
  91. package/dist/chunk-REPFZIPP.js.map +1 -0
  92. package/dist/{chunk-CWWWZRMN.js → chunk-RJAGFLAP.js} +3 -3
  93. package/dist/{chunk-PJQRSOLE.js → chunk-SMARTMBW.js} +4 -4
  94. package/dist/{chunk-ZLQGKBBE.js → chunk-SRE4CK6Y.js} +2 -2
  95. package/dist/{chunk-LKJLUSYR.js → chunk-SRGOCF73.js} +3 -3
  96. package/dist/{chunk-MQQADIRH.js → chunk-SSXKC635.js} +4 -4
  97. package/dist/{chunk-S43GVNRB.js → chunk-SWAFQ343.js} +8 -8
  98. package/dist/{chunk-TMBO55MM.js → chunk-SZAD5U3J.js} +2 -2
  99. package/dist/{chunk-ZIFWZJ7X.js → chunk-T5GJVUSL.js} +2 -2
  100. package/dist/{chunk-DZ6SLAIZ.js → chunk-TC3H7I6O.js} +2 -2
  101. package/dist/{chunk-5SMTFIYI.js → chunk-TLXZUE4T.js} +7 -7
  102. package/dist/{chunk-5U3CSRV5.js → chunk-UAXKMJYA.js} +9 -9
  103. package/dist/{chunk-FLQOSWVR.js → chunk-UN33JXAD.js} +140 -53
  104. package/dist/chunk-UN33JXAD.js.map +1 -0
  105. package/dist/{chunk-4B2UV6JH.js → chunk-VH6EUWX7.js} +26 -24
  106. package/dist/chunk-VH6EUWX7.js.map +1 -0
  107. package/dist/{chunk-G2V2V5UC.js → chunk-VHENFC2S.js} +2 -2
  108. package/dist/{chunk-7XKIRMS4.js → chunk-VHYFFFZU.js} +2 -2
  109. package/dist/{chunk-7UIRKGY7.js → chunk-WLU7EWPD.js} +21 -16
  110. package/dist/chunk-WLU7EWPD.js.map +1 -0
  111. package/dist/{chunk-PAEWU7UC.js → chunk-WMIQOBHU.js} +8 -8
  112. package/dist/{chunk-GSL6ZBQX.js → chunk-WPHTWUNV.js} +23 -18
  113. package/dist/{chunk-GSL6ZBQX.js.map → chunk-WPHTWUNV.js.map} +1 -1
  114. package/dist/{chunk-MKQ7IA6U.js → chunk-XBWS77S2.js} +3 -3
  115. package/dist/{chunk-AAOAVXBF.js → chunk-XHUKX3HO.js} +8 -8
  116. package/dist/{chunk-A3R3VO6G.js → chunk-XHVRFFOY.js} +6 -6
  117. package/dist/{chunk-JNKFPFH6.js → chunk-XIOGNTUA.js} +3 -3
  118. package/dist/{chunk-S2CQ73G4.js → chunk-YLB2QGAR.js} +5 -5
  119. package/dist/{chunk-RE3NKV4Z.js → chunk-Z3HC36JK.js} +3 -3
  120. package/dist/{chunk-LCUN2I5Q.js → chunk-ZAAWSVTU.js} +11 -9
  121. package/dist/{chunk-LCUN2I5Q.js.map → chunk-ZAAWSVTU.js.map} +1 -1
  122. package/dist/{chunk-V72WJIGN.js → chunk-ZWBXRP2V.js} +10 -10
  123. package/dist/{chunk-SAPDMQTO.js → chunk-ZXDRQ2MV.js} +8 -8
  124. package/dist/{cleanup-KVZ7P6EN.js → cleanup-HXZ4S2IO.js} +48 -47
  125. package/dist/{cleanup-KVZ7P6EN.js.map → cleanup-HXZ4S2IO.js.map} +1 -1
  126. package/dist/cli-GKHHCDRV.js +20 -0
  127. package/dist/color-E73MIJWD.js +65 -0
  128. package/dist/color-E73MIJWD.js.map +1 -0
  129. package/dist/{command-hook-installer-GMQ4IVDE.js → command-hook-installer-TRLJ4QFP.js} +13 -4
  130. package/dist/{command-hook-installer-GMQ4IVDE.js.map → command-hook-installer-TRLJ4QFP.js.map} +1 -1
  131. package/dist/{completion-OEU4UZEA.js → completion-SV446DXJ.js} +3 -4
  132. package/dist/{completion-OEU4UZEA.js.map → completion-SV446DXJ.js.map} +1 -1
  133. package/dist/{config-JEVEBD3O.js → config-24BNXN5C.js} +21 -20
  134. package/dist/{config-JEVEBD3O.js.map → config-24BNXN5C.js.map} +1 -1
  135. package/dist/{diff-3ZGUWMX4.js → diff-NAL5334E.js} +27 -27
  136. package/dist/{digest-XJYJDGVX.js → digest-NU6XNA7D.js} +18 -17
  137. package/dist/{digest-XJYJDGVX.js.map → digest-NU6XNA7D.js.map} +1 -1
  138. package/dist/{fork-AGFYDM5U.js → fork-QVFWYP2Z.js} +44 -44
  139. package/dist/{history-VYAGUN2X.js → history-W5DQNAY3.js} +15 -14
  140. package/dist/{hook-PWMF5WBD.js → hook-OIAJHLTJ.js} +27 -29
  141. package/dist/hook-OIAJHLTJ.js.map +1 -0
  142. package/dist/{hydrate-PMH6OEVU.js → hydrate-VAJO2JGT.js} +17 -16
  143. package/dist/{hydrate-PMH6OEVU.js.map → hydrate-VAJO2JGT.js.map} +1 -1
  144. package/dist/{init-A3J3OC6Y.js → init-2IHQUZ4E.js} +26 -25
  145. package/dist/{init-A3J3OC6Y.js.map → init-2IHQUZ4E.js.map} +1 -1
  146. package/dist/install-skills-RJPZOV37.js +24 -0
  147. package/dist/install-skills-bin.js +13 -12
  148. package/dist/install-skills-bin.js.map +1 -1
  149. package/dist/{keep-VRBCD2OU.js → keep-IJDON5AL.js} +18 -17
  150. package/dist/{keep-VRBCD2OU.js.map → keep-IJDON5AL.js.map} +1 -1
  151. package/dist/{list-WT2YLARZ.js → list-6LPLVUUD.js} +17 -16
  152. package/dist/{list-WT2YLARZ.js.map → list-6LPLVUUD.js.map} +1 -1
  153. package/dist/{move-4P2X2VL2.js → move-GY5G47JO.js} +32 -31
  154. package/dist/{move-4P2X2VL2.js.map → move-GY5G47JO.js.map} +1 -1
  155. package/dist/{note-INPWMP2K.js → note-6Q3AT7W6.js} +19 -18
  156. package/dist/{note-INPWMP2K.js.map → note-6Q3AT7W6.js.map} +1 -1
  157. package/dist/{overlaps-SEMKBXBD.js → overlaps-JQVWZXEB.js} +25 -24
  158. package/dist/{overlaps-SEMKBXBD.js.map → overlaps-JQVWZXEB.js.map} +1 -1
  159. package/dist/{pin-4524YHPO.js → pin-MIWOAQ7R.js} +19 -18
  160. package/dist/{pin-4524YHPO.js.map → pin-MIWOAQ7R.js.map} +1 -1
  161. package/dist/{pr-CRLSAAGA.js → pr-3F3PJCQN.js} +39 -38
  162. package/dist/{pr-CRLSAAGA.js.map → pr-3F3PJCQN.js.map} +1 -1
  163. package/dist/{prune-3XFHACES.js → prune-RKQQWEU6.js} +46 -45
  164. package/dist/{prune-3XFHACES.js.map → prune-RKQQWEU6.js.map} +1 -1
  165. package/dist/{pty-host-4NEN3SID.js → pty-host-QTWYR5QT.js} +43 -39
  166. package/dist/pty-host-QTWYR5QT.js.map +1 -0
  167. package/dist/{read-TNPMUPCX.js → read-RFLYBHLU.js} +18 -17
  168. package/dist/{read-TNPMUPCX.js.map → read-RFLYBHLU.js.map} +1 -1
  169. package/dist/{recent-GUABGTFG.js → recent-R24GG3OG.js} +35 -27
  170. package/dist/recent-R24GG3OG.js.map +1 -0
  171. package/dist/{remove-FDXCPMGJ.js → remove-ULIYLBRK.js} +47 -46
  172. package/dist/{remove-FDXCPMGJ.js.map → remove-ULIYLBRK.js.map} +1 -1
  173. package/dist/{report-J7TUQRJS.js → report-Z36H65YG.js} +4 -3
  174. package/dist/{restart-OETITN5N.js → restart-VKQEQEU3.js} +22 -21
  175. package/dist/{restart-OETITN5N.js.map → restart-VKQEQEU3.js.map} +1 -1
  176. package/dist/{resume-XDUTFTWV.js → resume-LE3SXWGI.js} +35 -27
  177. package/dist/resume-LE3SXWGI.js.map +1 -0
  178. package/dist/{review-EKSF3BUM.js → review-QGBSWK2M.js} +57 -10
  179. package/dist/review-QGBSWK2M.js.map +1 -0
  180. package/dist/{review-now-XUEDTNMP.js → review-now-74ISYEFP.js} +7 -6
  181. package/dist/{review-now-XUEDTNMP.js.map → review-now-74ISYEFP.js.map} +1 -1
  182. package/dist/{run-INEROJF3.js → run-RXCZSZKP.js} +15 -14
  183. package/dist/{run-INEROJF3.js.map → run-RXCZSZKP.js.map} +1 -1
  184. package/dist/{screen-JNM536PR.js → screen-27WNAGP5.js} +19 -18
  185. package/dist/{screen-JNM536PR.js.map → screen-27WNAGP5.js.map} +1 -1
  186. package/dist/{search-FOBT55YQ.js → search-OSNZYFMI.js} +15 -14
  187. package/dist/{search-FOBT55YQ.js.map → search-OSNZYFMI.js.map} +1 -1
  188. package/dist/{section-7ZGM5YOL.js → section-HIYOC5HZ.js} +19 -18
  189. package/dist/{section-7ZGM5YOL.js.map → section-HIYOC5HZ.js.map} +1 -1
  190. package/dist/{send-6X2IKY54.js → send-BFS32VDO.js} +24 -23
  191. package/dist/{send-6X2IKY54.js.map → send-BFS32VDO.js.map} +1 -1
  192. package/dist/{sessions-6DLS2JQG.js → sessions-Q5EVPLLK.js} +42 -41
  193. package/dist/{sessions-6DLS2JQG.js.map → sessions-Q5EVPLLK.js.map} +1 -1
  194. package/dist/{show-YTJ3NVMP.js → show-JYXEQQM2.js} +18 -17
  195. package/dist/{show-YTJ3NVMP.js.map → show-JYXEQQM2.js.map} +1 -1
  196. package/dist/{snooze-7WV4NKX7.js → snooze-YDBFRJYB.js} +18 -17
  197. package/dist/{snooze-7WV4NKX7.js.map → snooze-YDBFRJYB.js.map} +1 -1
  198. package/dist/{start-3EE3H4UE.js → start-KWQLMKAL.js} +19 -18
  199. package/dist/{start-3EE3H4UE.js.map → start-KWQLMKAL.js.map} +1 -1
  200. package/dist/{state-GPEV4FHA.js → state-NXTIYKP5.js} +6 -5
  201. package/dist/{state-GPEV4FHA.js.map → state-NXTIYKP5.js.map} +1 -1
  202. package/dist/{status-DDHIRFAB.js → status-ROO4SRGQ.js} +22 -21
  203. package/dist/{status-DDHIRFAB.js.map → status-ROO4SRGQ.js.map} +1 -1
  204. package/dist/statusline-AMFMWPTV.js +67 -0
  205. package/dist/statusline-AMFMWPTV.js.map +1 -0
  206. package/dist/{statusline-hook-W7KWKWAC.js → statusline-hook-H5MM2PA2.js} +16 -11
  207. package/dist/statusline-hook-H5MM2PA2.js.map +1 -0
  208. package/dist/{stop-DYT5BIRN.js → stop-FMBFJUXI.js} +19 -18
  209. package/dist/{stop-DYT5BIRN.js.map → stop-FMBFJUXI.js.map} +1 -1
  210. package/dist/{sync-NOLPKVWO.js → sync-2DVHV7FT.js} +46 -45
  211. package/dist/{sync-NOLPKVWO.js.map → sync-2DVHV7FT.js.map} +1 -1
  212. package/dist/{time-WANFTVEE.js → time-LMBQVMQG.js} +24 -23
  213. package/dist/time-LMBQVMQG.js.map +1 -0
  214. package/dist/{time-actions-B7YKVDVE.js → time-actions-4GZLAV4C.js} +7 -6
  215. package/dist/{timesheet-GG5UR2NU.js → timesheet-DWWIBU5Y.js} +27 -26
  216. package/dist/{timesheet-GG5UR2NU.js.map → timesheet-DWWIBU5Y.js.map} +1 -1
  217. package/dist/{todo-VBWHS2HU.js → todo-SECMZCGC.js} +7 -6
  218. package/dist/{todo-VBWHS2HU.js.map → todo-SECMZCGC.js.map} +1 -1
  219. package/dist/{tree-HYJHJ7HD.js → tree-NH43RR6O.js} +57 -56
  220. package/dist/tree-NH43RR6O.js.map +1 -0
  221. package/dist/{update-IMNOHV3J.js → update-THIANISA.js} +28 -27
  222. package/dist/{update-IMNOHV3J.js.map → update-THIANISA.js.map} +1 -1
  223. package/dist/{usage-FUWADDO4.js → usage-CZZOI34H.js} +17 -16
  224. package/dist/{usage-FUWADDO4.js.map → usage-CZZOI34H.js.map} +1 -1
  225. package/dist/{version-VXE4NJRN.js → version-2YUMQ4EN.js} +12 -13
  226. package/dist/{version-VXE4NJRN.js.map → version-2YUMQ4EN.js.map} +1 -1
  227. package/dist/{wait-2U7PLYRS.js → wait-QBBM7MR5.js} +19 -18
  228. package/dist/{wait-2U7PLYRS.js.map → wait-QBBM7MR5.js.map} +1 -1
  229. package/dist/wd-bin.js +9 -9
  230. package/dist/web/assets/{PtyView-s01AhxxX.js → PtyView-CJOk_dgn.js} +2 -2
  231. package/dist/web/assets/{PtyView-s01AhxxX.js.map → PtyView-CJOk_dgn.js.map} +1 -1
  232. package/dist/web/assets/index-1hFrx0fV.js +126 -0
  233. package/dist/web/assets/index-1hFrx0fV.js.map +1 -0
  234. package/dist/web/assets/index-DXP8G0eh.css +1 -0
  235. package/dist/web/index.html +2 -2
  236. package/dist/{web-KEQI7DQO.js → web-PHQBICO5.js} +517 -341
  237. package/dist/web-PHQBICO5.js.map +1 -0
  238. package/dist/work-command-JHNC4JZK.js +13 -0
  239. package/dist/work-command-JHNC4JZK.js.map +1 -0
  240. package/npm-shrinkwrap.json +2 -2
  241. package/package.json +1 -1
  242. package/plugins/work-tree/skills/work-sessions/SKILL.md +3 -1
  243. package/dist/account-GOU2FC56.js.map +0 -1
  244. package/dist/chunk-2K44PZRP.js.map +0 -1
  245. package/dist/chunk-4B2UV6JH.js.map +0 -1
  246. package/dist/chunk-6THUVP6T.js.map +0 -1
  247. package/dist/chunk-7UIRKGY7.js.map +0 -1
  248. package/dist/chunk-AH5TM3NB.js +0 -21
  249. package/dist/chunk-AH5TM3NB.js.map +0 -1
  250. package/dist/chunk-BK73QU45.js.map +0 -1
  251. package/dist/chunk-DW245WK4.js +0 -74
  252. package/dist/chunk-DW245WK4.js.map +0 -1
  253. package/dist/chunk-FLQOSWVR.js.map +0 -1
  254. package/dist/chunk-FLY3VR6B.js.map +0 -1
  255. package/dist/chunk-KI26QYWS.js +0 -9
  256. package/dist/chunk-KJY2AJQS.js.map +0 -1
  257. package/dist/chunk-MOTKVMGL.js.map +0 -1
  258. package/dist/chunk-NCXRMJGS.js.map +0 -1
  259. package/dist/chunk-RUIBZ6DI.js.map +0 -1
  260. package/dist/chunk-T26N4I4E.js.map +0 -1
  261. package/dist/chunk-UY5J2KY2.js.map +0 -1
  262. package/dist/chunk-Y2DBNXZH.js.map +0 -1
  263. package/dist/chunk-ZS7ZXAXB.js.map +0 -1
  264. package/dist/cli-SGRXK4G2.js +0 -20
  265. package/dist/hook-PWMF5WBD.js.map +0 -1
  266. package/dist/install-skills-QX4OATOS.js +0 -23
  267. package/dist/pty-host-4NEN3SID.js.map +0 -1
  268. package/dist/recent-GUABGTFG.js.map +0 -1
  269. package/dist/resume-XDUTFTWV.js.map +0 -1
  270. package/dist/review-EKSF3BUM.js.map +0 -1
  271. package/dist/statusline-QN4AERZC.js +0 -107
  272. package/dist/statusline-QN4AERZC.js.map +0 -1
  273. package/dist/statusline-hook-W7KWKWAC.js.map +0 -1
  274. package/dist/time-WANFTVEE.js.map +0 -1
  275. package/dist/tree-HYJHJ7HD.js.map +0 -1
  276. package/dist/web/assets/index-BNHgDFNt.css +0 -1
  277. package/dist/web/assets/index-DWb77ss2.js +0 -126
  278. package/dist/web/assets/index-DWb77ss2.js.map +0 -1
  279. package/dist/web-KEQI7DQO.js.map +0 -1
  280. /package/dist/{attach-RJ53ABQN.js.map → attach-Z2HEZVZW.js.map} +0 -0
  281. /package/dist/{chunk-WAZCBD7Y.js.map → chunk-2CVBAJH7.js.map} +0 -0
  282. /package/dist/{chunk-X5XVXJ4B.js.map → chunk-2H3H23W5.js.map} +0 -0
  283. /package/dist/{chunk-7ZL3GJGY.js.map → chunk-2L2TNYQA.js.map} +0 -0
  284. /package/dist/{chunk-6MUKE253.js.map → chunk-3JANKWY2.js.map} +0 -0
  285. /package/dist/{chunk-VLUME72O.js.map → chunk-3L5VDONX.js.map} +0 -0
  286. /package/dist/{chunk-KI26QYWS.js.map → chunk-3OMFMSZ4.js.map} +0 -0
  287. /package/dist/{chunk-JQ42ERH3.js.map → chunk-44UME4JD.js.map} +0 -0
  288. /package/dist/{chunk-AYHDJMMJ.js.map → chunk-4CXUVBOD.js.map} +0 -0
  289. /package/dist/{chunk-Z3T5FWM6.js.map → chunk-4HNMJIUZ.js.map} +0 -0
  290. /package/dist/{chunk-MKJH2D4V.js.map → chunk-4NIOURHZ.js.map} +0 -0
  291. /package/dist/{chunk-T7K276XW.js.map → chunk-4YO2PDUC.js.map} +0 -0
  292. /package/dist/{chunk-AU27USPZ.js.map → chunk-5ZCCUM75.js.map} +0 -0
  293. /package/dist/{chunk-UTBIZ6W5.js.map → chunk-63NT2NZD.js.map} +0 -0
  294. /package/dist/{chunk-RRNIJ7YO.js.map → chunk-ALBTIOP3.js.map} +0 -0
  295. /package/dist/{chunk-UIG3CTXU.js.map → chunk-C5F36EGT.js.map} +0 -0
  296. /package/dist/{chunk-DWEW7I53.js.map → chunk-CJQPKHDO.js.map} +0 -0
  297. /package/dist/{chunk-RVSRZ57P.js.map → chunk-CNZV3UCM.js.map} +0 -0
  298. /package/dist/{chunk-LSZ6HI3U.js.map → chunk-EORL2V7P.js.map} +0 -0
  299. /package/dist/{chunk-EHUKDUNJ.js.map → chunk-EQJZ2GXX.js.map} +0 -0
  300. /package/dist/{chunk-UI45HNNQ.js.map → chunk-EVZUJLZH.js.map} +0 -0
  301. /package/dist/{chunk-5D5V4P7J.js.map → chunk-EX6ELNTN.js.map} +0 -0
  302. /package/dist/{chunk-AGRUEZQX.js.map → chunk-GNIYYXQX.js.map} +0 -0
  303. /package/dist/{chunk-ERXXU72V.js.map → chunk-GT3KUREW.js.map} +0 -0
  304. /package/dist/{chunk-ULI3NB4J.js.map → chunk-HT52LVYU.js.map} +0 -0
  305. /package/dist/{chunk-RCWQD32G.js.map → chunk-HWMQV4YD.js.map} +0 -0
  306. /package/dist/{chunk-MUCUSF6Y.js.map → chunk-I5YQ7AC5.js.map} +0 -0
  307. /package/dist/{chunk-TUDDISCX.js.map → chunk-ICEP4WAK.js.map} +0 -0
  308. /package/dist/{chunk-7UXV4X2Y.js.map → chunk-IPHADNF5.js.map} +0 -0
  309. /package/dist/{chunk-YXUVNSDM.js.map → chunk-LBPYBBXX.js.map} +0 -0
  310. /package/dist/{chunk-6AJFOISA.js.map → chunk-LMD2J2JN.js.map} +0 -0
  311. /package/dist/{chunk-2Y2ARDXI.js.map → chunk-MD6QMSXQ.js.map} +0 -0
  312. /package/dist/{chunk-TNKBZIR5.js.map → chunk-MH4D37RT.js.map} +0 -0
  313. /package/dist/{chunk-U2MOKVPZ.js.map → chunk-MHL66TIL.js.map} +0 -0
  314. /package/dist/{chunk-GDR4RWF4.js.map → chunk-N5P2OY5O.js.map} +0 -0
  315. /package/dist/{chunk-BPAV2PIE.js.map → chunk-NIAXRF5E.js.map} +0 -0
  316. /package/dist/{chunk-BXVBNYQT.js.map → chunk-OA3TYOAY.js.map} +0 -0
  317. /package/dist/{chunk-DPO6I7OR.js.map → chunk-P5633SI2.js.map} +0 -0
  318. /package/dist/{chunk-AKDTLWWD.js.map → chunk-PJPYRXKJ.js.map} +0 -0
  319. /package/dist/{chunk-UH72CZAX.js.map → chunk-PZ7WTBSI.js.map} +0 -0
  320. /package/dist/{chunk-XSI4WZIX.js.map → chunk-QTUYNY3F.js.map} +0 -0
  321. /package/dist/{chunk-CWWWZRMN.js.map → chunk-RJAGFLAP.js.map} +0 -0
  322. /package/dist/{chunk-PJQRSOLE.js.map → chunk-SMARTMBW.js.map} +0 -0
  323. /package/dist/{chunk-ZLQGKBBE.js.map → chunk-SRE4CK6Y.js.map} +0 -0
  324. /package/dist/{chunk-LKJLUSYR.js.map → chunk-SRGOCF73.js.map} +0 -0
  325. /package/dist/{chunk-MQQADIRH.js.map → chunk-SSXKC635.js.map} +0 -0
  326. /package/dist/{chunk-S43GVNRB.js.map → chunk-SWAFQ343.js.map} +0 -0
  327. /package/dist/{chunk-TMBO55MM.js.map → chunk-SZAD5U3J.js.map} +0 -0
  328. /package/dist/{chunk-ZIFWZJ7X.js.map → chunk-T5GJVUSL.js.map} +0 -0
  329. /package/dist/{chunk-DZ6SLAIZ.js.map → chunk-TC3H7I6O.js.map} +0 -0
  330. /package/dist/{chunk-5SMTFIYI.js.map → chunk-TLXZUE4T.js.map} +0 -0
  331. /package/dist/{chunk-5U3CSRV5.js.map → chunk-UAXKMJYA.js.map} +0 -0
  332. /package/dist/{chunk-G2V2V5UC.js.map → chunk-VHENFC2S.js.map} +0 -0
  333. /package/dist/{chunk-7XKIRMS4.js.map → chunk-VHYFFFZU.js.map} +0 -0
  334. /package/dist/{chunk-PAEWU7UC.js.map → chunk-WMIQOBHU.js.map} +0 -0
  335. /package/dist/{chunk-MKQ7IA6U.js.map → chunk-XBWS77S2.js.map} +0 -0
  336. /package/dist/{chunk-AAOAVXBF.js.map → chunk-XHUKX3HO.js.map} +0 -0
  337. /package/dist/{chunk-A3R3VO6G.js.map → chunk-XHVRFFOY.js.map} +0 -0
  338. /package/dist/{chunk-JNKFPFH6.js.map → chunk-XIOGNTUA.js.map} +0 -0
  339. /package/dist/{chunk-S2CQ73G4.js.map → chunk-YLB2QGAR.js.map} +0 -0
  340. /package/dist/{chunk-RE3NKV4Z.js.map → chunk-Z3HC36JK.js.map} +0 -0
  341. /package/dist/{chunk-V72WJIGN.js.map → chunk-ZWBXRP2V.js.map} +0 -0
  342. /package/dist/{chunk-SAPDMQTO.js.map → chunk-ZXDRQ2MV.js.map} +0 -0
  343. /package/dist/{cli-SGRXK4G2.js.map → cli-GKHHCDRV.js.map} +0 -0
  344. /package/dist/{diff-3ZGUWMX4.js.map → diff-NAL5334E.js.map} +0 -0
  345. /package/dist/{fork-AGFYDM5U.js.map → fork-QVFWYP2Z.js.map} +0 -0
  346. /package/dist/{history-VYAGUN2X.js.map → history-W5DQNAY3.js.map} +0 -0
  347. /package/dist/{install-skills-QX4OATOS.js.map → install-skills-RJPZOV37.js.map} +0 -0
  348. /package/dist/{report-J7TUQRJS.js.map → report-Z36H65YG.js.map} +0 -0
  349. /package/dist/{time-actions-B7YKVDVE.js.map → time-actions-4GZLAV4C.js.map} +0 -0
@@ -1,11 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import {
3
- readReadings
4
- } from "./chunk-CBCOVIXZ.js";
5
- import {
6
- accountOf,
7
- savedPath
8
- } from "./chunk-BK73QU45.js";
9
2
  import {
10
3
  CLAUDE_READ_ONLY_LINES,
11
4
  CLAUDE_READ_ONLY_LOCAL_LINES,
@@ -14,7 +7,13 @@ import {
14
7
  claudeSettingsFile,
15
8
  internalClaudeReadOnlySpawn,
16
9
  internalClaudeSpawn
17
- } from "./chunk-Z3T5FWM6.js";
10
+ } from "./chunk-4HNMJIUZ.js";
11
+ import {
12
+ readReadings
13
+ } from "./chunk-DOYJR2HF.js";
14
+ import {
15
+ workCommand
16
+ } from "./chunk-HK6AZQ5Z.js";
18
17
  import {
19
18
  accountDir,
20
19
  accountDirKey,
@@ -31,26 +30,36 @@ import {
31
30
  sessionAccount,
32
31
  setUpAccounts,
33
32
  validateClaudeAccounts
34
- } from "./chunk-7ZL3GJGY.js";
33
+ } from "./chunk-2L2TNYQA.js";
35
34
  import {
36
35
  DEFAULT_ACCOUNT,
37
36
  getConfigPath,
38
37
  isAgentId,
39
38
  loadConfig
40
- } from "./chunk-FLY3VR6B.js";
39
+ } from "./chunk-IKGSTBTG.js";
40
+ import {
41
+ accountOf,
42
+ savedPath
43
+ } from "./chunk-REPFZIPP.js";
41
44
  import {
42
45
  bootTime,
43
46
  processTable
44
- } from "./chunk-G2V2V5UC.js";
47
+ } from "./chunk-VHENFC2S.js";
45
48
  import {
46
49
  spawn_default
47
- } from "./chunk-DW245WK4.js";
50
+ } from "./chunk-QOSAWNOU.js";
48
51
  import {
49
52
  atomicWriteFile,
50
53
  ensureFile,
51
54
  withFileLock,
52
55
  withFileLockSync
53
56
  } from "./chunk-D2J3AD6L.js";
57
+ import {
58
+ debugLog
59
+ } from "./chunk-IAKOKZYW.js";
60
+ import {
61
+ getConfigDir
62
+ } from "./chunk-F2ECTTSY.js";
54
63
 
55
64
  // src/core/platform/ai-launcher.ts
56
65
  import fs from "fs";
@@ -108,6 +117,35 @@ function buildAiLaunchArgs(tool, opts = {}) {
108
117
  return { cmd: tool.cmd, args };
109
118
  }
110
119
 
120
+ // src/core/platform/best-effort.ts
121
+ function logSwallowed(label, err) {
122
+ const e = err;
123
+ const detail = e?.message ?? String(err);
124
+ debugLog("WARN", `[best-effort] ${label}: ${e?.code ? `${e.code} ` : ""}${detail}`);
125
+ }
126
+ function bestEffort(label, fn, fallback) {
127
+ try {
128
+ return fn();
129
+ } catch (err) {
130
+ logSwallowed(label, err);
131
+ return fallback;
132
+ }
133
+ }
134
+ async function bestEffortAsync(label, fn, fallback) {
135
+ try {
136
+ return await fn();
137
+ } catch (err) {
138
+ logSwallowed(label, err);
139
+ return fallback;
140
+ }
141
+ }
142
+ function swallow(label) {
143
+ return (err) => {
144
+ logSwallowed(label, err);
145
+ return void 0;
146
+ };
147
+ }
148
+
111
149
  // src/core/worktree/own-checkout.ts
112
150
  import path2 from "path";
113
151
 
@@ -219,10 +257,21 @@ var AccountAdminError = class extends Error {
219
257
  };
220
258
 
221
259
  // src/core/agents/index.ts
222
- import path13 from "path";
260
+ import path14 from "path";
261
+
262
+ // src/core/agents/claude/startup-question.ts
263
+ var YES = /^\s*[❯>]?\s*1\.\s+Yes, (?:I trust this folder|proceed)\s*$/;
264
+ var NO = /^\s*[❯>]?\s*2\.\s+No, exit\s*$/;
265
+ var TAIL_LINES = 6;
266
+ var TRUST_QUESTION = "Claude asks whether you trust this folder: answer in its terminal";
267
+ function claudeStartupQuestion(screen) {
268
+ const tail = screen.split(/\r?\n/).map((l) => l.replace(/[│┃|]/g, " ").trimEnd()).filter((l) => l.trim()).slice(-TAIL_LINES);
269
+ const yes = tail.findIndex((l) => YES.test(l));
270
+ return yes >= 0 && tail.slice(yes + 1).some((l) => NO.test(l)) ? TRUST_QUESTION : null;
271
+ }
223
272
 
224
273
  // src/core/agents/claude/adapter.ts
225
- import path12 from "path";
274
+ import path13 from "path";
226
275
 
227
276
  // src/core/agents/claude/files.ts
228
277
  import fs4 from "fs";
@@ -731,9 +780,23 @@ function checkDialog(screen, req) {
731
780
  }
732
781
  var ANSWER_KEYS = { allow: "\r", deny: "\x1B" };
733
782
 
783
+ // src/core/agents/session-hooks.ts
784
+ var SESSION_HOOKS = [
785
+ { edge: "turn-start", event: "turn-start", timeoutSec: 10 },
786
+ { edge: "turn-end", event: "turn-end", timeoutSec: 10 },
787
+ { edge: "notify", event: "status-notify", timeoutSec: 5 }
788
+ ];
789
+ var BRIDGE_OWNER = { "turn-start": "web-turn", "turn-end": "web-turn", notify: "web-status" };
790
+ var RETIRED_HOOK_OWNERS = [
791
+ "web",
792
+ "web-turn",
793
+ "web-status",
794
+ "web-checkpoint"
795
+ ].flatMap((owner) => ["turn-start", "turn-end", "notify"].map((edge) => ({ owner, edge })));
796
+
734
797
  // src/core/agents/claude/hooks.ts
735
798
  var installer = null;
736
- var loadInstaller = async () => installer ??= await import("./command-hook-installer-GMQ4IVDE.js");
799
+ var loadInstaller = async () => installer ??= await import("./command-hook-installer-TRLJ4QFP.js");
737
800
  var CLAUDE_EVENT = {
738
801
  "turn-start": "UserPromptSubmit",
739
802
  "turn-end": "Stop",
@@ -767,17 +830,23 @@ function claudeStatusEvent(edge, payload) {
767
830
  var toClaude = (h) => ({ owner: h.owner, event: CLAUDE_EVENT[h.edge] });
768
831
  var settingsFiles = () => setUpAccounts().map((a) => path6.join(a.dir, "settings.json"));
769
832
  var claudeEvents = {
770
- install: async (hooks, remove = []) => {
833
+ removeInstalled: async (hooks) => {
771
834
  const inst = await loadInstaller();
772
- const add = hooks.map((h) => ({ ...toClaude(h), command: h.command, ...h.timeoutSec ? { timeoutSec: h.timeoutSec } : {} }));
773
- for (const file of settingsFiles()) await inst.syncCommandHooks(add, remove.map(toClaude), file);
835
+ for (const file of settingsFiles()) await inst.removeCommandHooks(hooks.map(toClaude), file);
774
836
  },
775
- // A shutdown handler can't wait for an import: it uses the installer the
776
- // start-up install loaded (work web always installs first). Nothing loaded:
777
- // this process installed nothing, so there is nothing of its to remove.
778
- removeSync: (hooks) => {
779
- if (!installer) return;
780
- for (const file of settingsFiles()) installer.removeCommandHooksSync(hooks.map(toClaude), file);
837
+ bridge: async () => {
838
+ const inst = await loadInstaller();
839
+ const { workCommand: workCommand2 } = await import("./work-command-JHNC4JZK.js");
840
+ const add = SESSION_HOOKS.map((h) => ({
841
+ owner: BRIDGE_OWNER[h.edge],
842
+ event: CLAUDE_EVENT[h.edge],
843
+ // Word for word what session-settings.ts gives: a Claude with both runs it once.
844
+ command: workCommand2(["hook", h.event]),
845
+ timeoutSec: h.timeoutSec
846
+ }));
847
+ const kept2 = new Set(add.map((a) => `${a.owner} ${a.event}`));
848
+ const remove = RETIRED_HOOK_OWNERS.map(toClaude).filter((r) => !kept2.has(`${r.owner} ${r.event}`));
849
+ for (const file of settingsFiles()) await inst.syncCommandHooks(add, remove, file);
781
850
  },
782
851
  read: (edge, payload) => ({ cwd: str2(asPayload(payload).cwd), status: claudeStatusEvent(edge, payload) }),
783
852
  // turn-start: stdout is added to the prompt. turn-end: `decision: block`
@@ -785,10 +854,60 @@ var claudeEvents = {
785
854
  handOver: (edge, text) => edge === "turn-start" ? text + "\n" : JSON.stringify({ decision: "block", reason: text }) + "\n"
786
855
  };
787
856
 
788
- // src/core/agents/claude/live.ts
857
+ // src/core/agents/claude/session-settings.ts
789
858
  import fs6 from "fs";
790
- import os2 from "os";
791
859
  import path7 from "path";
860
+ var SESSION_SETTINGS_NAME = "claude-settings.json";
861
+ var sessionSettingsPath = () => path7.join(getConfigDir(), SESSION_SETTINGS_NAME);
862
+ function claudeSessionSettings(o) {
863
+ const hooks = {};
864
+ for (const h of SESSION_HOOKS) {
865
+ (hooks[CLAUDE_EVENT[h.edge]] ??= []).push({
866
+ hooks: [{ type: "command", command: workCommand(["hook", h.event], o.invocation), timeout: h.timeoutSec }]
867
+ });
868
+ }
869
+ return {
870
+ hooks,
871
+ ...o.statusLine ? { statusLine: { type: "command", command: workCommand(["hook", "statusline"], o.invocation) } } : {}
872
+ };
873
+ }
874
+ function writeSessionSettings(o = {}) {
875
+ const file = sessionSettingsPath();
876
+ const statusLine = o.statusLine ?? loadConfig()?.usage?.statusLine !== false;
877
+ const text = JSON.stringify(claudeSessionSettings({ statusLine, invocation: o.invocation }), null, 2) + "\n";
878
+ let now = null;
879
+ try {
880
+ now = fs6.readFileSync(file, "utf-8");
881
+ } catch {
882
+ }
883
+ if (now !== text) {
884
+ fs6.mkdirSync(path7.dirname(file), { recursive: true });
885
+ atomicWriteFile(file, text);
886
+ }
887
+ return file;
888
+ }
889
+ var isOurs = (p) => !!p && path7.basename(p) === SESSION_SETTINGS_NAME;
890
+ function sessionSettingsFile(o = {}) {
891
+ const file = sessionSettingsPath();
892
+ return o.write === false && fs6.existsSync(file) ? file : writeSessionSettings();
893
+ }
894
+ var startedWithSessionSettings = (commandLine) => commandLine.includes(SESSION_SETTINGS_NAME);
895
+ function withSessionSettings(tool, file = sessionSettingsFile()) {
896
+ const rest = [];
897
+ for (let i = 0; i < tool.baseArgs.length; i++) {
898
+ if (tool.baseArgs[i] === "--settings" && isOurs(tool.baseArgs[i + 1])) {
899
+ i++;
900
+ continue;
901
+ }
902
+ rest.push(tool.baseArgs[i]);
903
+ }
904
+ return { ...tool, baseArgs: ["--settings", file, ...rest] };
905
+ }
906
+
907
+ // src/core/agents/claude/live.ts
908
+ import fs7 from "fs";
909
+ import os2 from "os";
910
+ import path8 from "path";
792
911
  var isObj = (v) => !!v && typeof v === "object" && !Array.isArray(v);
793
912
  function parseLiveClaude(raw) {
794
913
  if (!isObj(raw)) return null;
@@ -818,24 +937,24 @@ function aliveOnly(list, table, bootMs) {
818
937
  var TTL_MS = 5e3;
819
938
  var cache = null;
820
939
  function claudeSessionsDir() {
821
- return path7.join(process.env.CLAUDE_CONFIG_DIR || path7.join(os2.homedir(), ".claude"), "sessions");
940
+ return path8.join(process.env.CLAUDE_CONFIG_DIR || path8.join(os2.homedir(), ".claude"), "sessions");
822
941
  }
823
942
  function claudeSessionsDirs() {
824
943
  const accounts = claudeAccounts();
825
944
  if (accounts.length <= 1) return [claudeSessionsDir()];
826
- return [...new Set(accounts.map((a) => path7.join(a.dir, "sessions")))];
945
+ return [...new Set(accounts.map((a) => path8.join(a.dir, "sessions")))];
827
946
  }
828
947
  function readDir(dir, table) {
829
948
  let names;
830
949
  try {
831
- names = fs6.readdirSync(dir).filter((n) => /^\d+\.json$/.test(n));
950
+ names = fs7.readdirSync(dir).filter((n) => /^\d+\.json$/.test(n));
832
951
  } catch {
833
952
  return [];
834
953
  }
835
954
  const parsed = [];
836
955
  for (const n of names) {
837
956
  try {
838
- const c = parseLiveClaude(JSON.parse(fs6.readFileSync(path7.join(dir, n), "utf8")));
957
+ const c = parseLiveClaude(JSON.parse(fs7.readFileSync(path8.join(dir, n), "utf8")));
839
958
  if (c) parsed.push(c);
840
959
  } catch {
841
960
  }
@@ -863,12 +982,12 @@ var typeThenEnter = async (write, text, wait = (ms) => new Promise((r) => setTim
863
982
  };
864
983
 
865
984
  // src/core/agents/claude/workspace.ts
866
- import fs7 from "fs";
867
- import path8 from "path";
985
+ import fs8 from "fs";
986
+ import path9 from "path";
868
987
  var claudeAllowRule = (r) => `Bash(${r.command}${r.prefix ? ":*" : ""})`;
869
988
  var claudeWorkspace = {
870
989
  write(dir, { allow, hooks }) {
871
- fs7.mkdirSync(path8.join(dir, ".claude"), { recursive: true });
990
+ fs8.mkdirSync(path9.join(dir, ".claude"), { recursive: true });
872
991
  const byEvent = {};
873
992
  for (const h of hooks) {
874
993
  (byEvent[CLAUDE_EVENT[h.edge]] ??= []).push({
@@ -876,8 +995,8 @@ var claudeWorkspace = {
876
995
  });
877
996
  }
878
997
  const settings = { permissions: { allow: allow.map(claudeAllowRule) }, hooks: byEvent };
879
- atomicWriteFile(path8.join(dir, ".claude", "settings.json"), JSON.stringify(settings, null, 2) + "\n");
880
- return [path8.join(".claude", "settings.json")];
998
+ atomicWriteFile(path9.join(dir, ".claude", "settings.json"), JSON.stringify(settings, null, 2) + "\n");
999
+ return [path9.join(".claude", "settings.json")];
881
1000
  }
882
1001
  };
883
1002
 
@@ -947,7 +1066,7 @@ function installClaudeSkillsFor(dir, run = runClaude) {
947
1066
 
948
1067
  // src/core/agents/claude/usage.ts
949
1068
  var installer2;
950
- var loadInstaller2 = async () => installer2 ??= await import("./statusline-QN4AERZC.js");
1069
+ var loadInstaller2 = async () => installer2 ??= await import("./statusline-AMFMWPTV.js");
951
1070
  function restoreMessage(o, saved = "~/.work/statusline.json") {
952
1071
  switch (o) {
953
1072
  case "restored":
@@ -971,11 +1090,10 @@ function namedReadings() {
971
1090
  }
972
1091
  var claudeUsage = {
973
1092
  read: namedReadings,
974
- async setup(o) {
975
- const outcome = await (await loadInstaller2()).applyStatusLineSetting(o);
976
- if (outcome === "wrapped") return "status line wrapped: it records the plan limits";
977
- if (outcome === "restored") return "status line given back (usage.statusLine is false)";
978
- return "status line left alone (lean server)";
1093
+ async setup() {
1094
+ const done = await (await loadInstaller2()).unwrapAllStatusLines();
1095
+ const restored = done.filter((d) => d.outcome === "restored").map((d) => d.account);
1096
+ return restored.length > 0 ? `your own status line given back in ${restored.join(", ")} (work's Claudes carry their own now)` : "status line: nothing of work's in your settings";
979
1097
  },
980
1098
  async restore() {
981
1099
  const done = await (await loadInstaller2()).unwrapAllStatusLines();
@@ -991,20 +1109,21 @@ var claudeUsage = {
991
1109
  };
992
1110
 
993
1111
  // src/core/agents/claude/account-move.ts
994
- import fs10 from "fs";
995
- import path11 from "path";
1112
+ import fs11 from "fs";
1113
+ import path12 from "path";
996
1114
 
997
1115
  // src/core/agents/claude/account-admin.ts
998
- import fs9 from "fs";
1116
+ import fs10 from "fs";
999
1117
  import os4 from "os";
1000
- import path10 from "path";
1118
+ import path11 from "path";
1001
1119
 
1002
1120
  // src/core/agents/claude/setup-copy.ts
1003
- import fs8 from "fs";
1121
+ import fs9 from "fs";
1004
1122
  import os3 from "os";
1005
- import path9 from "path";
1123
+ import path10 from "path";
1124
+ var TRUSTED_FOLDERS = "trusted folders";
1006
1125
  function globalConfigFile(dir, home = os3.homedir()) {
1007
- return accountDirKey(dir) === accountDirKey(path9.join(home, ".claude")) ? path9.join(home, ".claude.json") : path9.join(dir, ".claude.json");
1126
+ return accountDirKey(dir) === accountDirKey(path10.join(home, ".claude")) ? path10.join(home, ".claude.json") : path10.join(dir, ".claude.json");
1008
1127
  }
1009
1128
  var isObject = (v) => !!v && typeof v === "object" && !Array.isArray(v);
1010
1129
  var same = (a, b) => JSON.stringify(a) === JSON.stringify(b);
@@ -1084,7 +1203,7 @@ var FILES = ["CLAUDE.md", "statusline-command.sh"];
1084
1203
  var FOLDERS = ["agents", "commands"];
1085
1204
  var SETTINGS = ["settings.json", "settings.local.json"];
1086
1205
  function alreadyThere(from, to, io) {
1087
- if (io.isDir(from)) return io.isDir(to) && io.list(from).every((name) => alreadyThere(path9.join(from, name), path9.join(to, name), io));
1206
+ if (io.isDir(from)) return io.isDir(to) && io.list(from).every((name) => alreadyThere(path10.join(from, name), path10.join(to, name), io));
1088
1207
  const a = io.read(from);
1089
1208
  const b = io.read(to);
1090
1209
  return !!a && !!b && a.equals(b);
@@ -1094,31 +1213,31 @@ function marketplaceKey(source) {
1094
1213
  return args ? args[3].replace(/\\/g, "/").replace(/\/+$/, "").toLowerCase() : null;
1095
1214
  }
1096
1215
  var realSetupIo = {
1097
- exists: (p) => fs8.existsSync(p),
1216
+ exists: (p) => fs9.existsSync(p),
1098
1217
  isDir: (p) => {
1099
1218
  try {
1100
- return fs8.statSync(p).isDirectory();
1219
+ return fs9.statSync(p).isDirectory();
1101
1220
  } catch {
1102
1221
  return false;
1103
1222
  }
1104
1223
  },
1105
1224
  list: (dir) => {
1106
1225
  try {
1107
- return fs8.readdirSync(dir);
1226
+ return fs9.readdirSync(dir);
1108
1227
  } catch {
1109
1228
  return [];
1110
1229
  }
1111
1230
  },
1112
1231
  read: (file) => {
1113
1232
  try {
1114
- return fs8.readFileSync(file);
1233
+ return fs9.readFileSync(file);
1115
1234
  } catch {
1116
1235
  return null;
1117
1236
  }
1118
1237
  },
1119
1238
  readJson: (file) => {
1120
1239
  try {
1121
- return JSON.parse(fs8.readFileSync(file, "utf-8"));
1240
+ return JSON.parse(fs9.readFileSync(file, "utf-8"));
1122
1241
  } catch {
1123
1242
  return null;
1124
1243
  }
@@ -1128,22 +1247,36 @@ var objectAt = (v, key2) => isObject(v) && isObject(v[key2]) ? v[key2] : {};
1128
1247
  function userMcpServers(dir, io = realSetupIo) {
1129
1248
  return objectAt(io.readJson(globalConfigFile(dir)), "mcpServers");
1130
1249
  }
1250
+ function trustedFolders(dir, io = realSetupIo) {
1251
+ return Object.entries(objectAt(io.readJson(globalConfigFile(dir)), "projects")).filter(([, p]) => isObject(p) && p.hasTrustDialogAccepted === true).map(([folder]) => folder);
1252
+ }
1253
+ function trustToCopy(from, to, io = realSetupIo) {
1254
+ const have = new Set(trustedFolders(to.dir, io));
1255
+ return trustedFolders(from.dir, io).filter((folder) => !have.has(folder) && io.isDir(folder));
1256
+ }
1257
+ function withTrusted(config, folders) {
1258
+ const base = isObject(config) ? config : {};
1259
+ const projects = { ...objectAt(base, "projects") };
1260
+ for (const folder of folders)
1261
+ projects[folder] = { ...isObject(projects[folder]) ? projects[folder] : {}, hasTrustDialogAccepted: true };
1262
+ return { ...base, projects };
1263
+ }
1131
1264
  function planSetupCopy(from, to, io = realSetupIo) {
1132
1265
  const items = [];
1133
- const there = (rel) => io.exists(path9.join(to.dir, rel));
1134
- const differs = (rel) => !alreadyThere(path9.join(from.dir, rel), path9.join(to.dir, rel), io);
1266
+ const there = (rel) => io.exists(path10.join(to.dir, rel));
1267
+ const differs = (rel) => !alreadyThere(path10.join(from.dir, rel), path10.join(to.dir, rel), io);
1135
1268
  for (const f of FILES)
1136
- if (io.exists(path9.join(from.dir, f)) && differs(f)) items.push({ kind: "file", name: f, does: there(f) ? "replaces" : "adds" });
1269
+ if (io.exists(path10.join(from.dir, f)) && differs(f)) items.push({ kind: "file", name: f, does: there(f) ? "replaces" : "adds" });
1137
1270
  for (const d of FOLDERS)
1138
- if (io.isDir(path9.join(from.dir, d)) && io.list(path9.join(from.dir, d)).length && differs(d))
1271
+ if (io.isDir(path10.join(from.dir, d)) && io.list(path10.join(from.dir, d)).length && differs(d))
1139
1272
  items.push({ kind: "folder", name: `${d}/`, does: there(d) ? "merges into" : "adds" });
1140
- for (const skill of io.list(path9.join(from.dir, "skills")).filter((s) => s !== "synced" && io.isDir(path9.join(from.dir, "skills", s))))
1141
- if (differs(path9.join("skills", skill)))
1142
- items.push({ kind: "folder", name: `skills/${skill}/`, does: there(path9.join("skills", skill)) ? "replaces" : "adds" });
1273
+ for (const skill of io.list(path10.join(from.dir, "skills")).filter((s) => s !== "synced" && io.isDir(path10.join(from.dir, "skills", s))))
1274
+ if (differs(path10.join("skills", skill)))
1275
+ items.push({ kind: "folder", name: `skills/${skill}/`, does: there(path10.join("skills", skill)) ? "replaces" : "adds" });
1143
1276
  for (const s of SETTINGS) {
1144
- const source = io.readJson(path9.join(from.dir, s));
1277
+ const source = io.readJson(path10.join(from.dir, s));
1145
1278
  if (!isObject(source)) continue;
1146
- const target = io.readJson(path9.join(to.dir, s));
1279
+ const target = io.readJson(path10.join(to.dir, s));
1147
1280
  const have = isObject(target) ? target : {};
1148
1281
  if (!same(mergeSettings(source, have), have))
1149
1282
  items.push({
@@ -1166,8 +1299,8 @@ function planSetupCopy(from, to, io = realSetupIo) {
1166
1299
  ...remote ? { note: `needs its own sign-in on ${to.name}: /mcp \u2192 ${name} \u2192 Authenticate` } : {}
1167
1300
  });
1168
1301
  }
1169
- const markets = io.readJson(path9.join(from.dir, "plugins", "known_marketplaces.json"));
1170
- const haveMarkets = io.readJson(path9.join(to.dir, "plugins", "known_marketplaces.json"));
1302
+ const markets = io.readJson(path10.join(from.dir, "plugins", "known_marketplaces.json"));
1303
+ const haveMarkets = io.readJson(path10.join(to.dir, "plugins", "known_marketplaces.json"));
1171
1304
  const haveSources = new Set(
1172
1305
  Object.values(isObject(haveMarkets) ? haveMarkets : {}).map((m) => marketplaceKey(isObject(m) ? m.source : null)).filter((k) => k !== null)
1173
1306
  );
@@ -1178,10 +1311,20 @@ function planSetupCopy(from, to, io = realSetupIo) {
1178
1311
  const args = marketplaceAddArgs(isObject(m) ? m.source : null);
1179
1312
  if (args) items.push({ kind: "marketplace", name, does: "adds", note: args[3] });
1180
1313
  }
1181
- const enabled = objectAt(io.readJson(path9.join(from.dir, "settings.json")), "enabledPlugins");
1182
- const installed = objectAt(io.readJson(path9.join(to.dir, "plugins", "installed_plugins.json")), "plugins");
1314
+ const enabled = objectAt(io.readJson(path10.join(from.dir, "settings.json")), "enabledPlugins");
1315
+ const installed = objectAt(io.readJson(path10.join(to.dir, "plugins", "installed_plugins.json")), "plugins");
1183
1316
  for (const [id, on] of Object.entries(enabled))
1184
1317
  if (on === true && !(id in installed)) items.push({ kind: "plugin", name: id, does: "adds", note: "installed from its marketplace" });
1318
+ const trust = trustToCopy(from, to, io);
1319
+ if (trust.length) {
1320
+ const first = [...trust].sort((a, b) => a.length - b.length || a.localeCompare(b)).slice(0, 3);
1321
+ items.push({
1322
+ kind: "trust",
1323
+ name: TRUSTED_FOLDERS,
1324
+ does: "adds",
1325
+ note: `${trust.length} folder${trust.length === 1 ? "" : "s"} ${from.name} trusts, so ${to.name} doesn\u2019t ask again: ${first.join(", ")}${trust.length > first.length ? ` and ${trust.length - first.length} more` : ""}`
1326
+ });
1327
+ }
1185
1328
  return items;
1186
1329
  }
1187
1330
  var runClaude2 = (args, env, input) => {
@@ -1202,36 +1345,50 @@ function setupEnv(dir) {
1202
1345
  return accountDirKey(dir) === accountDirKey(defaultAccountDir()) ? { CLAUDE_CONFIG_DIR: null } : { CLAUDE_CONFIG_DIR: dir };
1203
1346
  }
1204
1347
  function mergeSettingsFile(fromFile, toFile) {
1205
- const source = JSON.parse(fs8.readFileSync(fromFile, "utf-8"));
1348
+ const source = JSON.parse(fs9.readFileSync(fromFile, "utf-8"));
1206
1349
  if (!isObject(source)) throw new Error("its settings are not an object");
1207
- fs8.mkdirSync(path9.dirname(toFile), { recursive: true });
1350
+ fs9.mkdirSync(path10.dirname(toFile), { recursive: true });
1208
1351
  ensureFile(toFile, "{}\n");
1209
1352
  withFileLockSync(toFile, () => {
1210
1353
  let target = {};
1211
1354
  try {
1212
- target = JSON.parse(fs8.readFileSync(toFile, "utf-8"));
1355
+ target = JSON.parse(fs9.readFileSync(toFile, "utf-8"));
1213
1356
  } catch {
1214
1357
  }
1215
1358
  atomicWriteFile(toFile, `${JSON.stringify(mergeSettings(source, isObject(target) ? target : {}), null, 2)}
1216
1359
  `);
1217
1360
  });
1218
1361
  }
1362
+ function trustFolders(file, folders) {
1363
+ fs9.mkdirSync(path10.dirname(file), { recursive: true });
1364
+ ensureFile(file, "{}\n");
1365
+ withFileLockSync(file, () => {
1366
+ let config;
1367
+ try {
1368
+ config = JSON.parse(fs9.readFileSync(file, "utf-8"));
1369
+ } catch {
1370
+ throw new Error("its config file can\u2019t be read");
1371
+ }
1372
+ atomicWriteFile(file, `${JSON.stringify(withTrusted(config, folders), null, 2)}
1373
+ `);
1374
+ });
1375
+ }
1219
1376
  async function applySetupCopy(from, to, run = runClaude2) {
1220
1377
  if (accountDirKey(from.dir) === accountDirKey(to.dir)) throw new Error("an account\u2019s setup can\u2019t be copied to itself");
1221
1378
  const env = setupEnv(to.dir);
1222
1379
  const servers = userMcpServers(from.dir);
1223
- const markets = realSetupIo.readJson(path9.join(from.dir, "plugins", "known_marketplaces.json"));
1380
+ const markets = realSetupIo.readJson(path10.join(from.dir, "plugins", "known_marketplaces.json"));
1224
1381
  const results = [];
1225
1382
  for (const item of planSetupCopy(from, to)) {
1226
1383
  try {
1227
1384
  const rel = item.name.replace(/\/$/, "");
1228
1385
  if (item.kind === "file") {
1229
- fs8.mkdirSync(to.dir, { recursive: true });
1230
- fs8.copyFileSync(path9.join(from.dir, rel), path9.join(to.dir, rel));
1386
+ fs9.mkdirSync(to.dir, { recursive: true });
1387
+ fs9.copyFileSync(path10.join(from.dir, rel), path10.join(to.dir, rel));
1231
1388
  } else if (item.kind === "folder") {
1232
- fs8.cpSync(path9.join(from.dir, rel), path9.join(to.dir, rel), { recursive: true, force: true, verbatimSymlinks: true });
1389
+ fs9.cpSync(path10.join(from.dir, rel), path10.join(to.dir, rel), { recursive: true, force: true, verbatimSymlinks: true });
1233
1390
  } else if (item.kind === "settings") {
1234
- mergeSettingsFile(path9.join(from.dir, rel), path9.join(to.dir, rel));
1391
+ mergeSettingsFile(path10.join(from.dir, rel), path10.join(to.dir, rel));
1235
1392
  } else if (item.kind === "mcp") {
1236
1393
  if (item.does === "replaces") run(["mcp", "remove", item.name, "--scope", "user"], env);
1237
1394
  const r = run(["mcp", "add-json", item.name, "-", "--scope", "user"], env, JSON.stringify(servers[item.name]));
@@ -1243,6 +1400,8 @@ async function applySetupCopy(from, to, run = runClaude2) {
1243
1400
  if (!args) throw new Error("work doesn\u2019t know how to add this kind of marketplace");
1244
1401
  const r = run(args, env);
1245
1402
  if (!r.ok) throw new Error(lastLine2(r.out));
1403
+ } else if (item.kind === "trust") {
1404
+ trustFolders(globalConfigFile(to.dir), trustToCopy(from, to));
1246
1405
  } else {
1247
1406
  const r = run(["plugin", "install", item.name, "--scope", "user", "-y"], env);
1248
1407
  if (!r.ok) throw new Error(lastLine2(r.out));
@@ -1258,9 +1417,9 @@ async function applySetupCopy(from, to, run = runClaude2) {
1258
1417
  // src/core/agents/claude/account-admin.ts
1259
1418
  async function editConfig(fn) {
1260
1419
  const file = getConfigPath();
1261
- if (!fs9.existsSync(file)) throw new AccountAdminError("No configuration yet: run `work init` first.");
1420
+ if (!fs10.existsSync(file)) throw new AccountAdminError("No configuration yet: run `work init` first.");
1262
1421
  return withFileLock(file, () => {
1263
- const raw = JSON.parse(fs9.readFileSync(file, "utf-8"));
1422
+ const raw = JSON.parse(fs10.readFileSync(file, "utf-8"));
1264
1423
  const existing = raw.claudeAccounts;
1265
1424
  const accounts = existing && typeof existing === "object" && !Array.isArray(existing) ? { ...existing } : {};
1266
1425
  const out = fn(raw, accounts);
@@ -1272,14 +1431,14 @@ async function editConfig(fn) {
1272
1431
  }
1273
1432
  var validIn = (raw) => validateClaudeAccounts(raw.claudeAccounts, void 0, accountForbiddenRoots(raw)).accounts ?? {};
1274
1433
  async function addAccount(name, dir) {
1275
- const folder = expandAccountDir(dir?.trim() || path10.join(os4.homedir(), `.claude-${name}`));
1434
+ const folder = expandAccountDir(dir?.trim() || path11.join(os4.homedir(), `.claude-${name}`));
1276
1435
  if (!folder) throw new AccountAdminError(`${dir} is not an absolute folder`);
1277
1436
  return editConfig((raw, accounts) => {
1278
1437
  if (name in accounts) throw new AccountAdminError(`there is already an account \u201C${name}\u201D`);
1279
1438
  const problem = accountProblem(name, folder, Object.values(validIn(raw)), accountForbiddenRoots(raw));
1280
1439
  if (problem) throw new AccountAdminError(problem);
1281
1440
  try {
1282
- fs9.mkdirSync(folder, { recursive: true });
1441
+ fs10.mkdirSync(folder, { recursive: true });
1283
1442
  } catch (e) {
1284
1443
  throw new AccountAdminError(`couldn't make ${folder}: ${e instanceof Error ? e.message : String(e)}`);
1285
1444
  }
@@ -1356,14 +1515,14 @@ var AccountMoveError = class extends Error {
1356
1515
  };
1357
1516
  var isDir = (p) => {
1358
1517
  try {
1359
- return fs10.statSync(p).isDirectory();
1518
+ return fs11.statSync(p).isDirectory();
1360
1519
  } catch {
1361
1520
  return false;
1362
1521
  }
1363
1522
  };
1364
1523
  var exists = (p) => {
1365
1524
  try {
1366
- fs10.lstatSync(p);
1525
+ fs11.lstatSync(p);
1367
1526
  return true;
1368
1527
  } catch {
1369
1528
  return false;
@@ -1371,31 +1530,31 @@ var exists = (p) => {
1371
1530
  };
1372
1531
  var mtime = (p) => {
1373
1532
  try {
1374
- return fs10.statSync(p).mtimeMs;
1533
+ return fs11.statSync(p).mtimeMs;
1375
1534
  } catch {
1376
1535
  return 0;
1377
1536
  }
1378
1537
  };
1379
1538
  function moveEntry(from, to) {
1380
- fs10.mkdirSync(path11.dirname(to), { recursive: true });
1539
+ fs11.mkdirSync(path12.dirname(to), { recursive: true });
1381
1540
  try {
1382
- fs10.renameSync(from, to);
1541
+ fs11.renameSync(from, to);
1383
1542
  return;
1384
1543
  } catch (err) {
1385
1544
  const code = err.code;
1386
1545
  if (code !== "EXDEV" && code !== "EPERM") throw err;
1387
1546
  }
1388
1547
  try {
1389
- fs10.cpSync(from, to, { recursive: true, errorOnExist: true, force: false, preserveTimestamps: true });
1548
+ fs11.cpSync(from, to, { recursive: true, errorOnExist: true, force: false, preserveTimestamps: true });
1390
1549
  } catch (err) {
1391
- fs10.rmSync(to, { recursive: true, force: true });
1550
+ fs11.rmSync(to, { recursive: true, force: true });
1392
1551
  throw err;
1393
1552
  }
1394
1553
  try {
1395
- fs10.rmSync(from, { recursive: true, force: true });
1554
+ fs11.rmSync(from, { recursive: true, force: true });
1396
1555
  } catch (err) {
1397
1556
  try {
1398
- fs10.cpSync(to, from, { recursive: true, force: false, errorOnExist: false, preserveTimestamps: true });
1557
+ fs11.cpSync(to, from, { recursive: true, force: false, errorOnExist: false, preserveTimestamps: true });
1399
1558
  } catch (back) {
1400
1559
  const why = (e) => e instanceof Error ? e.message : String(e);
1401
1560
  throw new Error(`${why(err)}; what its delete took couldn't be put back (${why(back)}), so it is kept at ${to} too`, {
@@ -1403,7 +1562,7 @@ function moveEntry(from, to) {
1403
1562
  });
1404
1563
  }
1405
1564
  try {
1406
- fs10.rmSync(to, { recursive: true, force: true });
1565
+ fs11.rmSync(to, { recursive: true, force: true });
1407
1566
  } catch {
1408
1567
  }
1409
1568
  throw err;
@@ -1422,9 +1581,9 @@ function mergeInto(src, dst, tag, steps, moved) {
1422
1581
  return;
1423
1582
  }
1424
1583
  if (isDir(src) && isDir(dst)) {
1425
- for (const name of fs10.readdirSync(src)) mergeInto(path11.join(src, name), path11.join(dst, name), tag, steps, moved);
1584
+ for (const name of fs11.readdirSync(src)) mergeInto(path12.join(src, name), path12.join(dst, name), tag, steps, moved);
1426
1585
  try {
1427
- fs10.rmdirSync(src);
1586
+ fs11.rmdirSync(src);
1428
1587
  } catch {
1429
1588
  }
1430
1589
  return;
@@ -1458,32 +1617,32 @@ function undo(steps) {
1458
1617
  }
1459
1618
  function latestConversation(dir) {
1460
1619
  let best = null;
1461
- for (const name of fs10.readdirSync(dir)) {
1620
+ for (const name of fs11.readdirSync(dir)) {
1462
1621
  if (!name.endsWith(".jsonl")) continue;
1463
- const at = mtime(path11.join(dir, name));
1622
+ const at = mtime(path12.join(dir, name));
1464
1623
  if (!best || at > best.at) best = { name, at };
1465
1624
  }
1466
1625
  if (!best) return [];
1467
1626
  const id = best.name.slice(0, -".jsonl".length);
1468
- return [best.name, ...isDir(path11.join(dir, id)) ? [id] : []];
1627
+ return [best.name, ...isDir(path12.join(dir, id)) ? [id] : []];
1469
1628
  }
1470
1629
  function moveConversations(session, fromDir, toDir, tag = "old", opts = {}) {
1471
1630
  const steps = [];
1472
1631
  const moved = [];
1473
- if (path11.resolve(fromDir) === path11.resolve(toDir)) return { moved };
1632
+ if (path12.resolve(fromDir) === path12.resolve(toDir)) return { moved };
1474
1633
  const emptied = [];
1475
1634
  let at = "";
1476
1635
  try {
1477
1636
  for (const cwd of sessionRunFolders(session, false)) {
1478
1637
  const name = encodeProjectDir(cwd);
1479
- const src = path11.join(projectsRootOf(fromDir), name);
1638
+ const src = path12.join(projectsRootOf(fromDir), name);
1480
1639
  if (!isDir(src)) continue;
1481
1640
  at = src;
1482
- const dst = path11.join(projectsRootOf(toDir), name);
1641
+ const dst = path12.join(projectsRootOf(toDir), name);
1483
1642
  if (opts.onlyLatest) {
1484
1643
  for (const entry of latestConversation(src)) {
1485
- at = path11.join(src, entry);
1486
- mergeInto(path11.join(src, entry), path11.join(dst, entry), tag, steps, moved);
1644
+ at = path12.join(src, entry);
1645
+ mergeInto(path12.join(src, entry), path12.join(dst, entry), tag, steps, moved);
1487
1646
  }
1488
1647
  continue;
1489
1648
  }
@@ -1502,7 +1661,7 @@ function moveConversations(session, fromDir, toDir, tag = "old", opts = {}) {
1502
1661
  }
1503
1662
  for (const src of emptied) {
1504
1663
  try {
1505
- fs10.rmdirSync(src);
1664
+ fs11.rmdirSync(src);
1506
1665
  } catch {
1507
1666
  }
1508
1667
  }
@@ -1543,7 +1702,11 @@ var claudeAgent = {
1543
1702
  resumeLaunch: (s) => resolveResumeLaunch(s),
1544
1703
  cleanEnv: (env) => withoutParentSession(env),
1545
1704
  // The session's account (null: work's own runs, on the configured default).
1546
- env: (session) => accountEnv(session ? sessionAccount(session) : defaultAccountName())
1705
+ env: (session) => accountEnv(session ? sessionAccount(session) : defaultAccountName()),
1706
+ // `--settings ~/.work/claude-settings.json`: work's hooks and status line for this Claude alone.
1707
+ // (`write: false`: the dev server names the file the installed work wrote, never its own build.)
1708
+ sessionTool: (tool, o) => withSessionSettings(tool, sessionSettingsFile(o)),
1709
+ startedWithSessionHooks: startedWithSessionSettings
1547
1710
  },
1548
1711
  conversation: {
1549
1712
  files: (s) => listTranscripts(s),
@@ -1567,8 +1730,8 @@ var claudeAgent = {
1567
1730
  prLinks: claudePrLinks,
1568
1731
  // In the session's own account's projects folder: that is where its `--continue` looks.
1569
1732
  restoreDir: (s) => {
1570
- const cwd = s.isGroup && s.paths[0] ? path12.dirname(s.paths[0]) : s.paths[0];
1571
- return cwd ? path12.join(projectsRootOf(accountDir(sessionAccount(s)) ?? void 0), encodeProjectDir(cwd)) : null;
1733
+ const cwd = s.isGroup && s.paths[0] ? path13.dirname(s.paths[0]) : s.paths[0];
1734
+ return cwd ? path13.join(projectsRootOf(accountDir(sessionAccount(s)) ?? void 0), encodeProjectDir(cwd)) : null;
1572
1735
  }
1573
1736
  },
1574
1737
  events: claudeEvents,
@@ -1577,6 +1740,8 @@ var claudeAgent = {
1577
1740
  live: { running: (table) => readLiveClaudes(void 0, void 0, table) },
1578
1741
  input: {
1579
1742
  submit: typeThenEnter,
1743
+ // Before its first turn in a folder it wasn't told to trust: its own question, which no hook reports.
1744
+ startupQuestion: claudeStartupQuestion,
1580
1745
  // Its dialog: "Do you want to …?" over a menu with "❯ 1. Yes"; Enter takes Yes, Esc is "No, and tell Claude what to do differently".
1581
1746
  permissionDialog: { check: checkDialog, keys: { allow: ANSWER_KEYS.allow, deny: ANSWER_KEYS.deny } }
1582
1747
  },
@@ -1595,7 +1760,7 @@ var claudeAgent = {
1595
1760
  denyRules: (repos) => claudeReadDenyRules(repos),
1596
1761
  // Its flags were measured on one Claude Code (READ_ONLY_MIN_VERSION): an older one gets no checkout run.
1597
1762
  // Loaded when a review asks: the hook processes load this adapter on every turn edge.
1598
- available: async () => (await import("./version-VXE4NJRN.js")).claudeReadOnlyAvailable()
1763
+ available: async () => (await import("./version-2YUMQ4EN.js")).claudeReadOnlyAvailable()
1599
1764
  }
1600
1765
  },
1601
1766
  instructionsFile: "CLAUDE.md",
@@ -1634,7 +1799,7 @@ function plainAgent(id) {
1634
1799
  launch: {
1635
1800
  tool: (config) => getAiTool(config && getAiTool(config).cmd === id ? config : { aiCommand: id }),
1636
1801
  canResume: () => false,
1637
- resumeLaunch: (s) => ({ launchPath: s.isGroup ? path13.dirname(s.paths[0] ?? "") : s.paths[0] ?? "", hasConversation: false }),
1802
+ resumeLaunch: (s) => ({ launchPath: s.isGroup ? path14.dirname(s.paths[0] ?? "") : s.paths[0] ?? "", hasConversation: false }),
1638
1803
  cleanEnv: (env) => ({ ...env })
1639
1804
  },
1640
1805
  // Text, a pause, Enter — and no dialog to answer by keystroke (its screen is unknown).
@@ -1646,9 +1811,6 @@ function plainAgent(id) {
1646
1811
  function knownAgents() {
1647
1812
  return [...ADAPTERS.values()];
1648
1813
  }
1649
- function agentAccountFolders() {
1650
- return knownAgents().flatMap((a) => a.accounts?.list().map((acc) => acc.dir) ?? []);
1651
- }
1652
1814
  function agentWriteMs(cwd) {
1653
1815
  return Math.max(0, ...knownAgents().map((a) => a.conversation?.lastWriteMs?.(cwd) ?? 0));
1654
1816
  }
@@ -1686,6 +1848,16 @@ function agentWire(a) {
1686
1848
  function agentById(id) {
1687
1849
  return ADAPTERS.get(id) ?? plainAgent(id);
1688
1850
  }
1851
+ function sessionToolFor(tool, o = {}) {
1852
+ const prepare = agentById(tool.cmd).launch.sessionTool;
1853
+ if (!prepare) return tool;
1854
+ try {
1855
+ return prepare(tool, o);
1856
+ } catch (e) {
1857
+ logSwallowed(`prepare ${tool.cmd}'s hooks`, e);
1858
+ return tool;
1859
+ }
1860
+ }
1689
1861
  function agentToRecord(config) {
1690
1862
  const cmd = getAiTool(config ?? {}).cmd;
1691
1863
  return isKnownAgent(cmd) ? cmd : void 0;
@@ -1695,14 +1867,19 @@ function agentFor(config, session) {
1695
1867
  }
1696
1868
 
1697
1869
  export {
1698
- KNOWN_TOOLS,
1699
- buildAiLaunchArgs,
1700
- readJsonlTail,
1701
- readJsonlSince,
1702
1870
  checkedOutBranch,
1703
1871
  workingBranch,
1704
1872
  gitDirs,
1705
1873
  refShaFromFiles,
1874
+ KNOWN_TOOLS,
1875
+ buildAiLaunchArgs,
1876
+ logSwallowed,
1877
+ bestEffort,
1878
+ bestEffortAsync,
1879
+ swallow,
1880
+ readJsonlTail,
1881
+ readJsonlSince,
1882
+ RETIRED_HOOK_OWNERS,
1706
1883
  isOwnCheckout,
1707
1884
  ownCheckoutNote,
1708
1885
  ownsBranch,
@@ -1711,7 +1888,6 @@ export {
1711
1888
  agentSettings,
1712
1889
  agentOf,
1713
1890
  knownAgents,
1714
- agentAccountFolders,
1715
1891
  agentWriteMs,
1716
1892
  activityRoots,
1717
1893
  lineTimeOf,
@@ -1720,7 +1896,8 @@ export {
1720
1896
  internalAgent,
1721
1897
  agentWire,
1722
1898
  agentById,
1899
+ sessionToolFor,
1723
1900
  agentToRecord,
1724
1901
  agentFor
1725
1902
  };
1726
- //# sourceMappingURL=chunk-Y2DBNXZH.js.map
1903
+ //# sourceMappingURL=chunk-H3WBTKPB.js.map