@moberg_hr/work-tree 2.15.0 → 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 (252) hide show
  1. package/dist/{account-X42JQCYT.js → account-MYGAXTF6.js} +17 -17
  2. package/dist/{add-repo-UZHIG6LN.js → add-repo-7PLONSB6.js} +11 -11
  3. package/dist/{answer-NDX2DNXK.js → answer-H3D6OLHJ.js} +8 -8
  4. package/dist/{attach-ETPEGXYM.js → attach-Z2HEZVZW.js} +15 -15
  5. package/dist/bin.js +3 -3
  6. package/dist/{block-5HJQWQNX.js → block-BWRLOTSM.js} +10 -10
  7. package/dist/{broadcast-TMCWRTIY.js → broadcast-RY6NAYGN.js} +6 -6
  8. package/dist/{catchup-BBJ43GWY.js → catchup-K5ICNWDH.js} +11 -11
  9. package/dist/{chunk-XMKYQVJU.js → chunk-2CVBAJH7.js} +2 -2
  10. package/dist/{chunk-O32OINY3.js → chunk-2H3H23W5.js} +2 -2
  11. package/dist/{chunk-TZLCBDJZ.js → chunk-2L2TNYQA.js} +2 -2
  12. package/dist/{chunk-K2OOUNXH.js → chunk-3JANKWY2.js} +2 -2
  13. package/dist/{chunk-JVJ5IJSF.js → chunk-3L5VDONX.js} +2 -2
  14. package/dist/chunk-3OMFMSZ4.js +9 -0
  15. package/dist/{chunk-R6KQDWHC.js → chunk-42WCSVBK.js} +4 -4
  16. package/dist/chunk-42WCSVBK.js.map +1 -0
  17. package/dist/{chunk-DBGHDWM7.js → chunk-45QJQIWF.js} +7 -7
  18. package/dist/chunk-45QJQIWF.js.map +1 -0
  19. package/dist/{chunk-OL7S2KFH.js → chunk-473UMEVN.js} +57 -57
  20. package/dist/{chunk-UCNYEHQY.js → chunk-4HNMJIUZ.js} +2 -2
  21. package/dist/{chunk-R5HG665I.js → chunk-4YO2PDUC.js} +3 -3
  22. package/dist/{chunk-2PAHTJ3B.js → chunk-63NT2NZD.js} +6 -6
  23. package/dist/{chunk-C6OEPSH2.js → chunk-C5F36EGT.js} +4 -4
  24. package/dist/{chunk-GPLCT5TZ.js → chunk-CJQPKHDO.js} +4 -4
  25. package/dist/{chunk-4WTY3SFZ.js → chunk-EQJZ2GXX.js} +3 -3
  26. package/dist/{chunk-MZY557LZ.js → chunk-EVZUJLZH.js} +6 -6
  27. package/dist/{chunk-ITY6R2LC.js → chunk-EX6ELNTN.js} +3 -3
  28. package/dist/{chunk-CVTM4TCZ.js → chunk-GT3KUREW.js} +5 -5
  29. package/dist/{chunk-CYUSOVO5.js → chunk-H3WBTKPB.js} +6 -6
  30. package/dist/{chunk-2IDWQ5NO.js → chunk-HT52LVYU.js} +3 -3
  31. package/dist/{chunk-3YON263F.js → chunk-HWMQV4YD.js} +4 -4
  32. package/dist/{chunk-QHA4VF4B.js → chunk-I5YQ7AC5.js} +3 -3
  33. package/dist/{chunk-BZGIKO6I.js → chunk-IKGSTBTG.js} +2 -1
  34. package/dist/chunk-IKGSTBTG.js.map +1 -0
  35. package/dist/{chunk-KCYYIUUQ.js → chunk-LBPYBBXX.js} +2 -2
  36. package/dist/{chunk-ZNGR2CB6.js → chunk-LMD2J2JN.js} +3 -3
  37. package/dist/{chunk-5LAFHPNB.js → chunk-LMSKMRNU.js} +7 -7
  38. package/dist/chunk-LMSKMRNU.js.map +1 -0
  39. package/dist/{chunk-LMP3WGRW.js → chunk-MH4D37RT.js} +2 -2
  40. package/dist/{chunk-UIIEP6VP.js → chunk-N5P2OY5O.js} +2 -2
  41. package/dist/{chunk-AHGMXBY3.js → chunk-NIAXRF5E.js} +2 -2
  42. package/dist/{chunk-BRUYXYO2.js → chunk-O2IARWVM.js} +2 -2
  43. package/dist/{chunk-S2MOK3CT.js → chunk-OA3TYOAY.js} +3 -3
  44. package/dist/{chunk-EQD3YBGA.js → chunk-P5633SI2.js} +7 -7
  45. package/dist/{chunk-WNWSO4VO.js → chunk-PJPYRXKJ.js} +6 -6
  46. package/dist/{chunk-QP7VLMFJ.js → chunk-QTUYNY3F.js} +2 -2
  47. package/dist/{chunk-6SYQQXPQ.js → chunk-QUL26RYB.js} +10 -10
  48. package/dist/{chunk-FIEBI3UB.js → chunk-RJAGFLAP.js} +2 -2
  49. package/dist/{chunk-X6EMCJ2L.js → chunk-SMARTMBW.js} +4 -4
  50. package/dist/{chunk-U64SNFIZ.js → chunk-SRGOCF73.js} +2 -2
  51. package/dist/{chunk-7QDZGVIT.js → chunk-SSXKC635.js} +3 -3
  52. package/dist/{chunk-MXH7DV4Q.js → chunk-SWAFQ343.js} +3 -3
  53. package/dist/{chunk-Z3OHGPIN.js → chunk-TLXZUE4T.js} +3 -3
  54. package/dist/{chunk-PSFOA7P6.js → chunk-UAXKMJYA.js} +6 -6
  55. package/dist/{chunk-FNWPOM4B.js → chunk-UN33JXAD.js} +134 -14
  56. package/dist/chunk-UN33JXAD.js.map +1 -0
  57. package/dist/{chunk-4ZP6NN2X.js → chunk-VH6EUWX7.js} +13 -13
  58. package/dist/chunk-VH6EUWX7.js.map +1 -0
  59. package/dist/{chunk-UJWYQVXI.js → chunk-VHYFFFZU.js} +2 -2
  60. package/dist/{chunk-QMHFXIMX.js → chunk-WLU7EWPD.js} +13 -10
  61. package/dist/chunk-WLU7EWPD.js.map +1 -0
  62. package/dist/{chunk-46WW3Z6C.js → chunk-WMIQOBHU.js} +4 -4
  63. package/dist/{chunk-GGE55DO3.js → chunk-WPHTWUNV.js} +16 -11
  64. package/dist/{chunk-GGE55DO3.js.map → chunk-WPHTWUNV.js.map} +1 -1
  65. package/dist/{chunk-RXORNKSJ.js → chunk-XHUKX3HO.js} +3 -3
  66. package/dist/{chunk-7S3NPGVM.js → chunk-XHVRFFOY.js} +4 -4
  67. package/dist/{chunk-XPWWOR7Z.js → chunk-XIOGNTUA.js} +2 -2
  68. package/dist/{chunk-TI6AR4QF.js → chunk-YLB2QGAR.js} +4 -4
  69. package/dist/{chunk-EQFDUC6F.js → chunk-Z3HC36JK.js} +2 -2
  70. package/dist/{chunk-BWUN33QN.js → chunk-ZAAWSVTU.js} +6 -6
  71. package/dist/{chunk-REAZAE5C.js → chunk-ZWBXRP2V.js} +6 -6
  72. package/dist/{chunk-MVME4LH7.js → chunk-ZXDRQ2MV.js} +6 -6
  73. package/dist/{cleanup-BD44PDRE.js → cleanup-HXZ4S2IO.js} +28 -28
  74. package/dist/{cli-OMADLGGY.js → cli-GKHHCDRV.js} +4 -4
  75. package/dist/{color-IZ2J3CT2.js → color-E73MIJWD.js} +8 -8
  76. package/dist/{config-65HXBCMW.js → config-24BNXN5C.js} +8 -8
  77. package/dist/{diff-CJNSUX25.js → diff-NAL5334E.js} +9 -9
  78. package/dist/{digest-FH3JBHSO.js → digest-NU6XNA7D.js} +8 -8
  79. package/dist/{fork-O6NS34MV.js → fork-QVFWYP2Z.js} +25 -25
  80. package/dist/{history-URHFR4MO.js → history-W5DQNAY3.js} +6 -6
  81. package/dist/{hook-6PWP3JVL.js → hook-OIAJHLTJ.js} +13 -13
  82. package/dist/{hydrate-V6PVQ6OO.js → hydrate-VAJO2JGT.js} +6 -6
  83. package/dist/{init-SENRHJ4R.js → init-2IHQUZ4E.js} +11 -11
  84. package/dist/{install-skills-DJE7LU66.js → install-skills-RJPZOV37.js} +6 -6
  85. package/dist/install-skills-bin.js +5 -5
  86. package/dist/{keep-M7E7UMRL.js → keep-IJDON5AL.js} +8 -8
  87. package/dist/{list-YPKCU3GB.js → list-6LPLVUUD.js} +6 -6
  88. package/dist/{move-ME7JMNJI.js → move-GY5G47JO.js} +14 -14
  89. package/dist/{note-JFZ3F7UY.js → note-6Q3AT7W6.js} +8 -8
  90. package/dist/{overlaps-ZN3WA35A.js → overlaps-JQVWZXEB.js} +12 -12
  91. package/dist/{pin-3S2MQQPM.js → pin-MIWOAQ7R.js} +8 -8
  92. package/dist/{pr-KNJ2TVC3.js → pr-3F3PJCQN.js} +19 -19
  93. package/dist/{prune-2GAXXNPM.js → prune-RKQQWEU6.js} +26 -26
  94. package/dist/{pty-host-WZZIQIKX.js → pty-host-QTWYR5QT.js} +13 -13
  95. package/dist/{read-UIV42F5D.js → read-RFLYBHLU.js} +8 -8
  96. package/dist/{recent-SJPAIY2T.js → recent-R24GG3OG.js} +13 -13
  97. package/dist/{remove-KQW35I5D.js → remove-ULIYLBRK.js} +27 -27
  98. package/dist/{restart-7VTSNTZ3.js → restart-VKQEQEU3.js} +8 -8
  99. package/dist/{resume-MPBXIF7C.js → resume-LE3SXWGI.js} +13 -13
  100. package/dist/{review-IRVOI4ZK.js → review-QGBSWK2M.js} +7 -7
  101. package/dist/{review-now-QAAL5C6N.js → review-now-74ISYEFP.js} +2 -2
  102. package/dist/{run-2EKY2R5R.js → run-RXCZSZKP.js} +6 -6
  103. package/dist/{screen-GQTKTUTD.js → screen-27WNAGP5.js} +8 -8
  104. package/dist/{search-N7XUYKYV.js → search-OSNZYFMI.js} +6 -6
  105. package/dist/{section-6MDCSJS5.js → section-HIYOC5HZ.js} +8 -8
  106. package/dist/{send-32U465SB.js → send-BFS32VDO.js} +9 -9
  107. package/dist/{sessions-E5OEZF2C.js → sessions-Q5EVPLLK.js} +23 -23
  108. package/dist/{show-AQQDICKX.js → show-JYXEQQM2.js} +7 -7
  109. package/dist/{snooze-LXHYYV5G.js → snooze-YDBFRJYB.js} +8 -8
  110. package/dist/{start-OCGLP6N6.js → start-KWQLMKAL.js} +8 -8
  111. package/dist/{state-FSZ6TIYE.js → state-NXTIYKP5.js} +2 -2
  112. package/dist/{status-35FEMHVO.js → status-ROO4SRGQ.js} +10 -10
  113. package/dist/{statusline-WEZSDGOU.js → statusline-AMFMWPTV.js} +3 -3
  114. package/dist/{stop-6QOVDV2A.js → stop-FMBFJUXI.js} +8 -8
  115. package/dist/{sync-GEG3O54C.js → sync-2DVHV7FT.js} +26 -26
  116. package/dist/{time-UXSYQHN4.js → time-LMBQVMQG.js} +13 -13
  117. package/dist/time-LMBQVMQG.js.map +1 -0
  118. package/dist/{time-actions-3KLS5WGD.js → time-actions-4GZLAV4C.js} +3 -3
  119. package/dist/{timesheet-RNUTAWR4.js → timesheet-DWWIBU5Y.js} +12 -12
  120. package/dist/{todo-MP4WUDMW.js → todo-SECMZCGC.js} +2 -2
  121. package/dist/{tree-U2LS4NHP.js → tree-NH43RR6O.js} +29 -29
  122. package/dist/tree-NH43RR6O.js.map +1 -0
  123. package/dist/{update-PHTB3AB5.js → update-THIANISA.js} +14 -14
  124. package/dist/{usage-2Z7354NZ.js → usage-CZZOI34H.js} +8 -8
  125. package/dist/{version-G2HN4GTL.js → version-2YUMQ4EN.js} +4 -4
  126. package/dist/{wait-MEMUQGDV.js → wait-QBBM7MR5.js} +9 -9
  127. package/dist/wd-bin.js +3 -3
  128. package/dist/web/assets/{PtyView-CyqsvkBt.js → PtyView-CJOk_dgn.js} +2 -2
  129. package/dist/web/assets/{PtyView-CyqsvkBt.js.map → PtyView-CJOk_dgn.js.map} +1 -1
  130. package/dist/web/assets/{index-DjFmAhbY.js → index-1hFrx0fV.js} +13 -13
  131. package/dist/web/assets/index-1hFrx0fV.js.map +1 -0
  132. package/dist/web/index.html +1 -1
  133. package/dist/{web-P7TKPZFB.js → web-PHQBICO5.js} +202 -87
  134. package/dist/web-PHQBICO5.js.map +1 -0
  135. package/npm-shrinkwrap.json +2 -2
  136. package/package.json +1 -1
  137. package/dist/chunk-4ZP6NN2X.js.map +0 -1
  138. package/dist/chunk-5LAFHPNB.js.map +0 -1
  139. package/dist/chunk-BZGIKO6I.js.map +0 -1
  140. package/dist/chunk-DBGHDWM7.js.map +0 -1
  141. package/dist/chunk-FNWPOM4B.js.map +0 -1
  142. package/dist/chunk-OX33X3NH.js +0 -9
  143. package/dist/chunk-QMHFXIMX.js.map +0 -1
  144. package/dist/chunk-R6KQDWHC.js.map +0 -1
  145. package/dist/time-UXSYQHN4.js.map +0 -1
  146. package/dist/tree-U2LS4NHP.js.map +0 -1
  147. package/dist/web/assets/index-DjFmAhbY.js.map +0 -1
  148. package/dist/web-P7TKPZFB.js.map +0 -1
  149. /package/dist/{account-X42JQCYT.js.map → account-MYGAXTF6.js.map} +0 -0
  150. /package/dist/{add-repo-UZHIG6LN.js.map → add-repo-7PLONSB6.js.map} +0 -0
  151. /package/dist/{answer-NDX2DNXK.js.map → answer-H3D6OLHJ.js.map} +0 -0
  152. /package/dist/{attach-ETPEGXYM.js.map → attach-Z2HEZVZW.js.map} +0 -0
  153. /package/dist/{block-5HJQWQNX.js.map → block-BWRLOTSM.js.map} +0 -0
  154. /package/dist/{broadcast-TMCWRTIY.js.map → broadcast-RY6NAYGN.js.map} +0 -0
  155. /package/dist/{catchup-BBJ43GWY.js.map → catchup-K5ICNWDH.js.map} +0 -0
  156. /package/dist/{chunk-XMKYQVJU.js.map → chunk-2CVBAJH7.js.map} +0 -0
  157. /package/dist/{chunk-O32OINY3.js.map → chunk-2H3H23W5.js.map} +0 -0
  158. /package/dist/{chunk-TZLCBDJZ.js.map → chunk-2L2TNYQA.js.map} +0 -0
  159. /package/dist/{chunk-K2OOUNXH.js.map → chunk-3JANKWY2.js.map} +0 -0
  160. /package/dist/{chunk-JVJ5IJSF.js.map → chunk-3L5VDONX.js.map} +0 -0
  161. /package/dist/{chunk-OX33X3NH.js.map → chunk-3OMFMSZ4.js.map} +0 -0
  162. /package/dist/{chunk-OL7S2KFH.js.map → chunk-473UMEVN.js.map} +0 -0
  163. /package/dist/{chunk-UCNYEHQY.js.map → chunk-4HNMJIUZ.js.map} +0 -0
  164. /package/dist/{chunk-R5HG665I.js.map → chunk-4YO2PDUC.js.map} +0 -0
  165. /package/dist/{chunk-2PAHTJ3B.js.map → chunk-63NT2NZD.js.map} +0 -0
  166. /package/dist/{chunk-C6OEPSH2.js.map → chunk-C5F36EGT.js.map} +0 -0
  167. /package/dist/{chunk-GPLCT5TZ.js.map → chunk-CJQPKHDO.js.map} +0 -0
  168. /package/dist/{chunk-4WTY3SFZ.js.map → chunk-EQJZ2GXX.js.map} +0 -0
  169. /package/dist/{chunk-MZY557LZ.js.map → chunk-EVZUJLZH.js.map} +0 -0
  170. /package/dist/{chunk-ITY6R2LC.js.map → chunk-EX6ELNTN.js.map} +0 -0
  171. /package/dist/{chunk-CVTM4TCZ.js.map → chunk-GT3KUREW.js.map} +0 -0
  172. /package/dist/{chunk-CYUSOVO5.js.map → chunk-H3WBTKPB.js.map} +0 -0
  173. /package/dist/{chunk-2IDWQ5NO.js.map → chunk-HT52LVYU.js.map} +0 -0
  174. /package/dist/{chunk-3YON263F.js.map → chunk-HWMQV4YD.js.map} +0 -0
  175. /package/dist/{chunk-QHA4VF4B.js.map → chunk-I5YQ7AC5.js.map} +0 -0
  176. /package/dist/{chunk-KCYYIUUQ.js.map → chunk-LBPYBBXX.js.map} +0 -0
  177. /package/dist/{chunk-ZNGR2CB6.js.map → chunk-LMD2J2JN.js.map} +0 -0
  178. /package/dist/{chunk-LMP3WGRW.js.map → chunk-MH4D37RT.js.map} +0 -0
  179. /package/dist/{chunk-UIIEP6VP.js.map → chunk-N5P2OY5O.js.map} +0 -0
  180. /package/dist/{chunk-AHGMXBY3.js.map → chunk-NIAXRF5E.js.map} +0 -0
  181. /package/dist/{chunk-BRUYXYO2.js.map → chunk-O2IARWVM.js.map} +0 -0
  182. /package/dist/{chunk-S2MOK3CT.js.map → chunk-OA3TYOAY.js.map} +0 -0
  183. /package/dist/{chunk-EQD3YBGA.js.map → chunk-P5633SI2.js.map} +0 -0
  184. /package/dist/{chunk-WNWSO4VO.js.map → chunk-PJPYRXKJ.js.map} +0 -0
  185. /package/dist/{chunk-QP7VLMFJ.js.map → chunk-QTUYNY3F.js.map} +0 -0
  186. /package/dist/{chunk-6SYQQXPQ.js.map → chunk-QUL26RYB.js.map} +0 -0
  187. /package/dist/{chunk-FIEBI3UB.js.map → chunk-RJAGFLAP.js.map} +0 -0
  188. /package/dist/{chunk-X6EMCJ2L.js.map → chunk-SMARTMBW.js.map} +0 -0
  189. /package/dist/{chunk-U64SNFIZ.js.map → chunk-SRGOCF73.js.map} +0 -0
  190. /package/dist/{chunk-7QDZGVIT.js.map → chunk-SSXKC635.js.map} +0 -0
  191. /package/dist/{chunk-MXH7DV4Q.js.map → chunk-SWAFQ343.js.map} +0 -0
  192. /package/dist/{chunk-Z3OHGPIN.js.map → chunk-TLXZUE4T.js.map} +0 -0
  193. /package/dist/{chunk-PSFOA7P6.js.map → chunk-UAXKMJYA.js.map} +0 -0
  194. /package/dist/{chunk-UJWYQVXI.js.map → chunk-VHYFFFZU.js.map} +0 -0
  195. /package/dist/{chunk-46WW3Z6C.js.map → chunk-WMIQOBHU.js.map} +0 -0
  196. /package/dist/{chunk-RXORNKSJ.js.map → chunk-XHUKX3HO.js.map} +0 -0
  197. /package/dist/{chunk-7S3NPGVM.js.map → chunk-XHVRFFOY.js.map} +0 -0
  198. /package/dist/{chunk-XPWWOR7Z.js.map → chunk-XIOGNTUA.js.map} +0 -0
  199. /package/dist/{chunk-TI6AR4QF.js.map → chunk-YLB2QGAR.js.map} +0 -0
  200. /package/dist/{chunk-EQFDUC6F.js.map → chunk-Z3HC36JK.js.map} +0 -0
  201. /package/dist/{chunk-BWUN33QN.js.map → chunk-ZAAWSVTU.js.map} +0 -0
  202. /package/dist/{chunk-REAZAE5C.js.map → chunk-ZWBXRP2V.js.map} +0 -0
  203. /package/dist/{chunk-MVME4LH7.js.map → chunk-ZXDRQ2MV.js.map} +0 -0
  204. /package/dist/{cleanup-BD44PDRE.js.map → cleanup-HXZ4S2IO.js.map} +0 -0
  205. /package/dist/{cli-OMADLGGY.js.map → cli-GKHHCDRV.js.map} +0 -0
  206. /package/dist/{color-IZ2J3CT2.js.map → color-E73MIJWD.js.map} +0 -0
  207. /package/dist/{config-65HXBCMW.js.map → config-24BNXN5C.js.map} +0 -0
  208. /package/dist/{diff-CJNSUX25.js.map → diff-NAL5334E.js.map} +0 -0
  209. /package/dist/{digest-FH3JBHSO.js.map → digest-NU6XNA7D.js.map} +0 -0
  210. /package/dist/{fork-O6NS34MV.js.map → fork-QVFWYP2Z.js.map} +0 -0
  211. /package/dist/{history-URHFR4MO.js.map → history-W5DQNAY3.js.map} +0 -0
  212. /package/dist/{hook-6PWP3JVL.js.map → hook-OIAJHLTJ.js.map} +0 -0
  213. /package/dist/{hydrate-V6PVQ6OO.js.map → hydrate-VAJO2JGT.js.map} +0 -0
  214. /package/dist/{init-SENRHJ4R.js.map → init-2IHQUZ4E.js.map} +0 -0
  215. /package/dist/{install-skills-DJE7LU66.js.map → install-skills-RJPZOV37.js.map} +0 -0
  216. /package/dist/{keep-M7E7UMRL.js.map → keep-IJDON5AL.js.map} +0 -0
  217. /package/dist/{list-YPKCU3GB.js.map → list-6LPLVUUD.js.map} +0 -0
  218. /package/dist/{move-ME7JMNJI.js.map → move-GY5G47JO.js.map} +0 -0
  219. /package/dist/{note-JFZ3F7UY.js.map → note-6Q3AT7W6.js.map} +0 -0
  220. /package/dist/{overlaps-ZN3WA35A.js.map → overlaps-JQVWZXEB.js.map} +0 -0
  221. /package/dist/{pin-3S2MQQPM.js.map → pin-MIWOAQ7R.js.map} +0 -0
  222. /package/dist/{pr-KNJ2TVC3.js.map → pr-3F3PJCQN.js.map} +0 -0
  223. /package/dist/{prune-2GAXXNPM.js.map → prune-RKQQWEU6.js.map} +0 -0
  224. /package/dist/{pty-host-WZZIQIKX.js.map → pty-host-QTWYR5QT.js.map} +0 -0
  225. /package/dist/{read-UIV42F5D.js.map → read-RFLYBHLU.js.map} +0 -0
  226. /package/dist/{recent-SJPAIY2T.js.map → recent-R24GG3OG.js.map} +0 -0
  227. /package/dist/{remove-KQW35I5D.js.map → remove-ULIYLBRK.js.map} +0 -0
  228. /package/dist/{restart-7VTSNTZ3.js.map → restart-VKQEQEU3.js.map} +0 -0
  229. /package/dist/{resume-MPBXIF7C.js.map → resume-LE3SXWGI.js.map} +0 -0
  230. /package/dist/{review-IRVOI4ZK.js.map → review-QGBSWK2M.js.map} +0 -0
  231. /package/dist/{review-now-QAAL5C6N.js.map → review-now-74ISYEFP.js.map} +0 -0
  232. /package/dist/{run-2EKY2R5R.js.map → run-RXCZSZKP.js.map} +0 -0
  233. /package/dist/{screen-GQTKTUTD.js.map → screen-27WNAGP5.js.map} +0 -0
  234. /package/dist/{search-N7XUYKYV.js.map → search-OSNZYFMI.js.map} +0 -0
  235. /package/dist/{section-6MDCSJS5.js.map → section-HIYOC5HZ.js.map} +0 -0
  236. /package/dist/{send-32U465SB.js.map → send-BFS32VDO.js.map} +0 -0
  237. /package/dist/{sessions-E5OEZF2C.js.map → sessions-Q5EVPLLK.js.map} +0 -0
  238. /package/dist/{show-AQQDICKX.js.map → show-JYXEQQM2.js.map} +0 -0
  239. /package/dist/{snooze-LXHYYV5G.js.map → snooze-YDBFRJYB.js.map} +0 -0
  240. /package/dist/{start-OCGLP6N6.js.map → start-KWQLMKAL.js.map} +0 -0
  241. /package/dist/{state-FSZ6TIYE.js.map → state-NXTIYKP5.js.map} +0 -0
  242. /package/dist/{status-35FEMHVO.js.map → status-ROO4SRGQ.js.map} +0 -0
  243. /package/dist/{statusline-WEZSDGOU.js.map → statusline-AMFMWPTV.js.map} +0 -0
  244. /package/dist/{stop-6QOVDV2A.js.map → stop-FMBFJUXI.js.map} +0 -0
  245. /package/dist/{sync-GEG3O54C.js.map → sync-2DVHV7FT.js.map} +0 -0
  246. /package/dist/{time-actions-3KLS5WGD.js.map → time-actions-4GZLAV4C.js.map} +0 -0
  247. /package/dist/{timesheet-RNUTAWR4.js.map → timesheet-DWWIBU5Y.js.map} +0 -0
  248. /package/dist/{todo-MP4WUDMW.js.map → todo-SECMZCGC.js.map} +0 -0
  249. /package/dist/{update-PHTB3AB5.js.map → update-THIANISA.js.map} +0 -0
  250. /package/dist/{usage-2Z7354NZ.js.map → usage-CZZOI34H.js.map} +0 -0
  251. /package/dist/{version-G2HN4GTL.js.map → version-2YUMQ4EN.js.map} +0 -0
  252. /package/dist/{wait-MEMUQGDV.js.map → wait-QBBM7MR5.js.map} +0 -0
@@ -7,19 +7,19 @@ import {
7
7
  } from "./chunk-SRE4CK6Y.js";
8
8
  import {
9
9
  sessionWorkTime
10
- } from "./chunk-QHA4VF4B.js";
10
+ } from "./chunk-I5YQ7AC5.js";
11
11
  import {
12
12
  sessionFromArgs,
13
13
  sessionPositionals
14
- } from "./chunk-X6EMCJ2L.js";
14
+ } from "./chunk-SMARTMBW.js";
15
15
  import "./chunk-6AQRYLOB.js";
16
- import "./chunk-RXORNKSJ.js";
16
+ import "./chunk-XHUKX3HO.js";
17
17
  import "./chunk-ZSHWP2VS.js";
18
18
  import "./chunk-CNZV3UCM.js";
19
19
  import "./chunk-HUXS3VAI.js";
20
20
  import {
21
21
  loadHistory
22
- } from "./chunk-FNWPOM4B.js";
22
+ } from "./chunk-UN33JXAD.js";
23
23
  import {
24
24
  dayKey,
25
25
  formatWorked,
@@ -28,14 +28,14 @@ import {
28
28
  import {
29
29
  sessionIdFor
30
30
  } from "./chunk-ALBTIOP3.js";
31
- import "./chunk-CYUSOVO5.js";
32
- import "./chunk-UCNYEHQY.js";
31
+ import "./chunk-H3WBTKPB.js";
32
+ import "./chunk-4HNMJIUZ.js";
33
33
  import "./chunk-DOYJR2HF.js";
34
34
  import "./chunk-HK6AZQ5Z.js";
35
- import "./chunk-TZLCBDJZ.js";
35
+ import "./chunk-2L2TNYQA.js";
36
36
  import {
37
37
  loadConfig
38
- } from "./chunk-BZGIKO6I.js";
38
+ } from "./chunk-IKGSTBTG.js";
39
39
  import "./chunk-REPFZIPP.js";
40
40
  import "./chunk-VHENFC2S.js";
41
41
  import "./chunk-QOSAWNOU.js";
@@ -59,7 +59,7 @@ var timeCommand = {
59
59
  const t = await sessionWorkTime(s2);
60
60
  const ms = t.byDay.filter((d) => d.day >= since).reduce((n, d) => n + d.ms, 0);
61
61
  if (ms >= 6e4)
62
- rows.push({ name: `${s2.target} \xB7 ${s2.title ? s2.title : s2.branch}`, ms, ...s2.jiraKey ? { jira: s2.jiraKey } : {} });
62
+ rows.push({ name: `${s2.target} \xB7 ${s2.title ? s2.title : s2.branch}`, ms, ...s2.issueKey ? { jira: s2.issueKey } : {} });
63
63
  }
64
64
  rows.sort((a, b) => b.ms - a.ms);
65
65
  if (rows.length === 0) console.log(chalk.gray(`No Claude work in the last ${days} days.`));
@@ -82,8 +82,8 @@ var timeCommand = {
82
82
  process.exitCode = 1;
83
83
  return;
84
84
  }
85
- if (!s.jiraKey) {
86
- console.error(chalk.red("This session has no Jira issue (work tree \u2026 --jira-key KEY)."));
85
+ if (!s.issueKey) {
86
+ console.error(chalk.red("This session has no Jira issue (work tree \u2026 --issue-key KEY)."));
87
87
  process.exitCode = 1;
88
88
  return;
89
89
  }
@@ -93,7 +93,7 @@ var timeCommand = {
93
93
  process.exitCode = 1;
94
94
  return;
95
95
  }
96
- const r = await logWorkDay(id, s.jiraKey, day.day, day.ms, jiraWorklogPoster(settings));
96
+ const r = await logWorkDay(id, s.issueKey, day.day, day.ms, jiraWorklogPoster(settings));
97
97
  if (!r.ok) {
98
98
  console.error(chalk.red(r.error));
99
99
  process.exitCode = 1;
@@ -120,4 +120,4 @@ var timeCommand = {
120
120
  export {
121
121
  timeCommand
122
122
  };
123
- //# sourceMappingURL=time-UXSYQHN4.js.map
123
+ //# sourceMappingURL=time-LMBQVMQG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/time.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { loadConfig } from '../core/platform/config.js';\nimport { loadHistory } from '../core/sessions/history.js';\nimport { jiraWorklogPoster, loggedDays, logWorkDay, worklogSettings } from '../core/jira/jira-worklog.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { sessionWorkTime } from '../core/conversations/work-time-source.js';\nimport { dayKey, formatWorked, worklogTime } from '../core/conversations/work-time-view.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work time` — how long a session's Claude worked (work-time.ts), per day;\n * `--all` this week (or `--days N`) across every session; `--log` writes a\n * day of it to the session's Jira issue as a worklog (jira-worklog.ts).\n */\nexport const timeCommand: CommandModule = {\n command: 'time [target] [branch]',\n describe: \"How long sessions' Claude worked: one session per day, or --all (a weekly report); --log writes it to Jira\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('all', { type: 'boolean', describe: 'Every session, the last --days days (default 7)' })\n .option('days', { type: 'number', default: 7, describe: 'With --all: how many days back' })\n .option('log', { type: 'boolean', describe: \"Write a day's work to the session's Jira issue as a worklog (what isn't logged yet)\" })\n .option('day', { type: 'string', describe: 'With --log: which day (YYYY-MM-DD; default: the latest it worked)' })\n .conflicts('all', 'log'),\n handler: async (argv) => {\n if (argv.all) {\n const days = Math.max(1, Math.min(31, Number(argv.days) || 7));\n const since = dayKey(Date.now() - (days - 1) * 86_400_000);\n const rows: Array<{ name: string; ms: number; jira?: string }> = [];\n for (const s of loadHistory()) {\n const t = await sessionWorkTime(s);\n const ms = t.byDay.filter((d) => d.day >= since).reduce((n, d) => n + d.ms, 0);\n if (ms >= 60_000)\n rows.push({ name: `${s.target} · ${s.title ? s.title : s.branch}`, ms, ...(s.issueKey ? { jira: s.issueKey } : {}) });\n }\n rows.sort((a, b) => b.ms - a.ms);\n if (rows.length === 0) console.log(chalk.gray(`No Claude work in the last ${days} days.`));\n for (const r of rows) console.log(`${formatWorked(r.ms).padStart(7)} ${r.name}${r.jira ? chalk.gray(` ${r.jira}`) : ''}`);\n if (rows.length) console.log(chalk.bold(`${formatWorked(rows.reduce((n, r) => n + r.ms, 0)).padStart(7)} in all (since ${since})`));\n return;\n }\n const s = sessionFromArgs(argv);\n if (!s) return;\n const id = sessionIdFor(s);\n const time = await sessionWorkTime(s);\n if (argv.log) {\n const settings = worklogSettings(loadConfig());\n if (!settings) {\n console.error(\n chalk.red(\n 'Jira worklogs are not set up: add jiraWorklog { site, email } to ~/.work/config.json and put an API token in JIRA_API_TOKEN.',\n ),\n );\n process.exitCode = 1;\n return;\n }\n if (!s.issueKey) {\n console.error(chalk.red('This session has no Jira issue (work tree … --issue-key KEY).'));\n process.exitCode = 1;\n return;\n }\n const day = typeof argv.day === 'string' ? time.byDay.find((d) => d.day === argv.day) : time.byDay[0];\n if (!day) {\n console.error(chalk.red('No work that day to log.'));\n process.exitCode = 1;\n return;\n }\n const r = await logWorkDay(id, s.issueKey, day.day, day.ms, jiraWorklogPoster(settings));\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n console.log(chalk.green(r.text));\n return;\n }\n const logged = loggedDays(id);\n console.log(\n chalk.bold(\n `${s.target} · ${s.branch}: about ${formatWorked(time.workedMs)} of Claude work over ${time.prompts} prompt${time.prompts === 1 ? '' : 's'}`,\n ),\n );\n for (const d of time.byDay) {\n const l = logged[d.day];\n console.log(\n ` ${d.day} ${formatWorked(d.ms).padStart(7)}${l ? chalk.gray(` logged ${worklogTime(l.seconds * 1000)} on ${l.issueKey}`) : ''}`,\n );\n }\n console.log(chalk.gray(' (the time between its steps, at most 15 minutes each: your reading and typing is not counted)'));\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAeX,IAAM,cAA6B;AAAA,EACxC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,mBAAmB,KAAK,EACrB,OAAO,OAAO,EAAE,MAAM,WAAW,UAAU,kDAAkD,CAAC,EAC9F,OAAO,QAAQ,EAAE,MAAM,UAAU,SAAS,GAAG,UAAU,iCAAiC,CAAC,EACzF,OAAO,OAAO,EAAE,MAAM,WAAW,UAAU,sFAAsF,CAAC,EAClI,OAAO,OAAO,EAAE,MAAM,UAAU,UAAU,oEAAoE,CAAC,EAC/G,UAAU,OAAO,KAAK;AAAA,EAC3B,SAAS,OAAO,SAAS;AACvB,QAAI,KAAK,KAAK;AACZ,YAAM,OAAO,KAAK,IAAI,GAAG,KAAK,IAAI,IAAI,OAAO,KAAK,IAAI,KAAK,CAAC,CAAC;AAC7D,YAAM,QAAQ,OAAO,KAAK,IAAI,KAAK,OAAO,KAAK,KAAU;AACzD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ow,
4
4
  describeMonthNow,
5
5
  postStoredDay
6
- } from "./chunk-R6KQDWHC.js";
6
+ } from "./chunk-42WCSVBK.js";
7
7
  import "./chunk-JVE2JFLV.js";
8
8
  import "./chunk-NEJVK5CF.js";
9
9
  import "./chunk-ALBTIOP3.js";
10
- import "./chunk-BZGIKO6I.js";
10
+ import "./chunk-IKGSTBTG.js";
11
11
  import "./chunk-D2J3AD6L.js";
12
12
  import "./chunk-5ZCCUM75.js";
13
13
  import "./chunk-IAKOKZYW.js";
@@ -17,4 +17,4 @@ export {
17
17
  describeMonthNow,
18
18
  postStoredDay
19
19
  };
20
- //# sourceMappingURL=time-actions-3KLS5WGD.js.map
20
+ //# sourceMappingURL=time-actions-4GZLAV4C.js.map
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  createMonthGather,
4
4
  defaultTimeDeps
5
- } from "./chunk-DBGHDWM7.js";
6
- import "./chunk-QHA4VF4B.js";
7
- import "./chunk-CVTM4TCZ.js";
8
- import "./chunk-QP7VLMFJ.js";
5
+ } from "./chunk-45QJQIWF.js";
6
+ import "./chunk-I5YQ7AC5.js";
7
+ import "./chunk-GT3KUREW.js";
8
+ import "./chunk-QTUYNY3F.js";
9
9
  import {
10
10
  buildDay,
11
11
  dayArg,
@@ -21,29 +21,29 @@ import {
21
21
  tempoClient,
22
22
  tempoSetup,
23
23
  updateDay
24
- } from "./chunk-R6KQDWHC.js";
24
+ } from "./chunk-42WCSVBK.js";
25
25
  import "./chunk-JVE2JFLV.js";
26
26
  import {
27
27
  callWorkWeb
28
28
  } from "./chunk-SZAD5U3J.js";
29
- import "./chunk-2IDWQ5NO.js";
29
+ import "./chunk-HT52LVYU.js";
30
30
  import "./chunk-FGPXMAYU.js";
31
31
  import "./chunk-GNIYYXQX.js";
32
32
  import "./chunk-T5GJVUSL.js";
33
33
  import "./chunk-XBWS77S2.js";
34
34
  import "./chunk-4CXUVBOD.js";
35
- import "./chunk-FNWPOM4B.js";
35
+ import "./chunk-UN33JXAD.js";
36
36
  import "./chunk-NEJVK5CF.js";
37
37
  import "./chunk-ALBTIOP3.js";
38
- import "./chunk-CYUSOVO5.js";
39
- import "./chunk-UCNYEHQY.js";
38
+ import "./chunk-H3WBTKPB.js";
39
+ import "./chunk-4HNMJIUZ.js";
40
40
  import "./chunk-JYWX2N5W.js";
41
41
  import "./chunk-DOYJR2HF.js";
42
42
  import "./chunk-HK6AZQ5Z.js";
43
- import "./chunk-TZLCBDJZ.js";
43
+ import "./chunk-2L2TNYQA.js";
44
44
  import {
45
45
  loadConfig
46
- } from "./chunk-BZGIKO6I.js";
46
+ } from "./chunk-IKGSTBTG.js";
47
47
  import "./chunk-REPFZIPP.js";
48
48
  import "./chunk-VHENFC2S.js";
49
49
  import "./chunk-QOSAWNOU.js";
@@ -203,4 +203,4 @@ var timesheetCommand = {
203
203
  export {
204
204
  timesheetCommand
205
205
  };
206
- //# sourceMappingURL=timesheet-RNUTAWR4.js.map
206
+ //# sourceMappingURL=timesheet-DWWIBU5Y.js.map
@@ -8,7 +8,7 @@ import {
8
8
  uncompleteTask
9
9
  } from "./chunk-44UME4JD.js";
10
10
  import "./chunk-ALBTIOP3.js";
11
- import "./chunk-BZGIKO6I.js";
11
+ import "./chunk-IKGSTBTG.js";
12
12
  import "./chunk-D2J3AD6L.js";
13
13
  import "./chunk-5ZCCUM75.js";
14
14
  import "./chunk-IAKOKZYW.js";
@@ -151,4 +151,4 @@ var todoCommand = {
151
151
  export {
152
152
  todoCommand
153
153
  };
154
- //# sourceMappingURL=todo-MP4WUDMW.js.map
154
+ //# sourceMappingURL=todo-SECMZCGC.js.map
@@ -4,55 +4,55 @@ import {
4
4
  openInLeftovers,
5
5
  resolvePrToStart,
6
6
  workOnPrPrompt
7
- } from "./chunk-Z3OHGPIN.js";
7
+ } from "./chunk-TLXZUE4T.js";
8
8
  import {
9
9
  retiredUnsafeOption,
10
10
  warnRetiredUnsafe
11
11
  } from "./chunk-S3CTXKSN.js";
12
12
  import {
13
13
  clearLaunchedUnsafeWhenIdle
14
- } from "./chunk-2PAHTJ3B.js";
14
+ } from "./chunk-63NT2NZD.js";
15
15
  import "./chunk-FZHFD2AY.js";
16
- import "./chunk-FIEBI3UB.js";
16
+ import "./chunk-RJAGFLAP.js";
17
17
  import "./chunk-ICEP4WAK.js";
18
18
  import {
19
19
  attachSession
20
- } from "./chunk-4WTY3SFZ.js";
20
+ } from "./chunk-EQJZ2GXX.js";
21
21
  import {
22
22
  SETUP_WARNINGS
23
- } from "./chunk-5LAFHPNB.js";
24
- import "./chunk-6SYQQXPQ.js";
25
- import "./chunk-JVJ5IJSF.js";
26
- import "./chunk-O32OINY3.js";
27
- import "./chunk-XMKYQVJU.js";
28
- import "./chunk-XPWWOR7Z.js";
23
+ } from "./chunk-LMSKMRNU.js";
24
+ import "./chunk-QUL26RYB.js";
25
+ import "./chunk-3L5VDONX.js";
26
+ import "./chunk-2H3H23W5.js";
27
+ import "./chunk-2CVBAJH7.js";
28
+ import "./chunk-XIOGNTUA.js";
29
29
  import {
30
30
  BaseSpecError,
31
31
  isEmptyBaseSpec,
32
32
  openBaseCheckout,
33
33
  parseBaseSpec,
34
34
  setupWorktree
35
- } from "./chunk-4ZP6NN2X.js";
35
+ } from "./chunk-VH6EUWX7.js";
36
36
  import "./chunk-PZ7WTBSI.js";
37
37
  import "./chunk-EORL2V7P.js";
38
38
  import "./chunk-SJBEIYLK.js";
39
- import "./chunk-BRUYXYO2.js";
39
+ import "./chunk-O2IARWVM.js";
40
40
  import "./chunk-7E5XPDKX.js";
41
- import "./chunk-AHGMXBY3.js";
42
- import "./chunk-RXORNKSJ.js";
41
+ import "./chunk-NIAXRF5E.js";
42
+ import "./chunk-XHUKX3HO.js";
43
43
  import "./chunk-ZSHWP2VS.js";
44
44
  import "./chunk-CNZV3UCM.js";
45
45
  import "./chunk-HUXS3VAI.js";
46
46
  import "./chunk-LM2T5OR3.js";
47
- import "./chunk-MVME4LH7.js";
48
- import "./chunk-GPLCT5TZ.js";
49
- import "./chunk-2IDWQ5NO.js";
47
+ import "./chunk-ZXDRQ2MV.js";
48
+ import "./chunk-CJQPKHDO.js";
49
+ import "./chunk-HT52LVYU.js";
50
50
  import "./chunk-FGPXMAYU.js";
51
- import "./chunk-U64SNFIZ.js";
51
+ import "./chunk-SRGOCF73.js";
52
52
  import {
53
53
  launchAi,
54
54
  openVSCode
55
- } from "./chunk-MXH7DV4Q.js";
55
+ } from "./chunk-SWAFQ343.js";
56
56
  import "./chunk-GNIYYXQX.js";
57
57
  import "./chunk-T5GJVUSL.js";
58
58
  import "./chunk-XBWS77S2.js";
@@ -60,7 +60,7 @@ import "./chunk-4CXUVBOD.js";
60
60
  import {
61
61
  findSession,
62
62
  loadHistory
63
- } from "./chunk-FNWPOM4B.js";
63
+ } from "./chunk-UN33JXAD.js";
64
64
  import "./chunk-NEJVK5CF.js";
65
65
  import "./chunk-ALBTIOP3.js";
66
66
  import "./chunk-LNHSBM4L.js";
@@ -68,10 +68,10 @@ import {
68
68
  agentFor,
69
69
  ownsBranch,
70
70
  sessionToolFor
71
- } from "./chunk-CYUSOVO5.js";
71
+ } from "./chunk-H3WBTKPB.js";
72
72
  import {
73
73
  envArgs
74
- } from "./chunk-UCNYEHQY.js";
74
+ } from "./chunk-4HNMJIUZ.js";
75
75
  import {
76
76
  getAllTargetNames,
77
77
  resolveFromCwd,
@@ -80,10 +80,10 @@ import {
80
80
  import "./chunk-JYWX2N5W.js";
81
81
  import "./chunk-DOYJR2HF.js";
82
82
  import "./chunk-HK6AZQ5Z.js";
83
- import "./chunk-TZLCBDJZ.js";
83
+ import "./chunk-2L2TNYQA.js";
84
84
  import {
85
85
  ensureConfig
86
- } from "./chunk-BZGIKO6I.js";
86
+ } from "./chunk-IKGSTBTG.js";
87
87
  import "./chunk-REPFZIPP.js";
88
88
  import "./chunk-VHENFC2S.js";
89
89
  import "./chunk-QOSAWNOU.js";
@@ -143,7 +143,7 @@ var treeCommand = {
143
143
  }).option("account", {
144
144
  describe: "The Claude account a new session runs on (a name from `work account list`; default: the configured default). An existing session keeps its own.",
145
145
  type: "string"
146
- }).option("jira-key", {
146
+ }).option("issue-key", {
147
147
  describe: "Link a Jira issue key to this worktree session",
148
148
  type: "string",
149
149
  hidden: true
@@ -177,7 +177,7 @@ var treeCommand = {
177
177
  }
178
178
  throw err;
179
179
  }
180
- const jiraKey = argv["jira-key"];
180
+ const issueKey = argv["issue-key"];
181
181
  const account = argv.account;
182
182
  const promptFile = argv["prompt-file"];
183
183
  let initialPrompt = argv.prompt;
@@ -283,7 +283,7 @@ var treeCommand = {
283
283
  console.log(chalk.cyan(`Working on base repo: ${targetName}`));
284
284
  const opened = await openBaseCheckout(targetName, config, {
285
285
  pull,
286
- jiraKey,
286
+ issueKey,
287
287
  name: typeof argv.name === "string" ? argv.name : void 0,
288
288
  account
289
289
  });
@@ -301,7 +301,7 @@ var treeCommand = {
301
301
  }
302
302
  const repos = typeof argv.repos === "string" ? argv.repos.split(",").map((a) => a.trim()).filter(Boolean) : [];
303
303
  const { value: result, warnings } = await keepingWarnings(
304
- () => setupWorktree(targetName, branchName, config, baseSpec, jiraKey, {
304
+ () => setupWorktree(targetName, branchName, config, baseSpec, issueKey, {
305
305
  pull,
306
306
  name: argv.name,
307
307
  ...account ? { account } : {},
@@ -330,4 +330,4 @@ var treeCommand = {
330
330
  export {
331
331
  treeCommand
332
332
  };
333
- //# sourceMappingURL=tree-U2LS4NHP.js.map
333
+ //# sourceMappingURL=tree-NH43RR6O.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/tree.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor, sessionToolFor } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames, resolveFromCwd } from '../core/worktree/resolve.js';\nimport { openBaseCheckout, setupWorktree } from '../core/worktree/worktree.js';\nimport { ownsBranch } from '../core/worktree/own-checkout.js';\nimport { findSession, loadHistory } from '../core/sessions/history.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { keepingWarnings } from '../core/platform/report.js';\nimport { SETUP_WARNINGS } from '../core/worktree/setup-child.js';\nimport { leftoversOf, openInLeftovers } from '../core/archive/restore-leftovers.js';\nimport { attachSession } from './shared/attach-session.js';\nimport { openVSCode, launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { parseBaseSpec, isEmptyBaseSpec, BaseSpecError } from '../core/git/base-spec.js';\nimport { resolvePrToStart } from '../core/pr/pr-start.js';\nimport { workOnPrPrompt } from '../core/pr/pr-ref.js';\n\nexport const treeCommand: CommandModule = {\n command: ['tree [target] [branch]', 't [target] [branch]'],\n describe: 'Create or switch to a worktree and launch the configured AI tool',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login). Omit to work on the base repo.',\n type: 'string',\n })\n .option('here', {\n describe: 'Infer target and branch from the current worktree directory',\n type: 'boolean',\n default: false,\n })\n .option('open', {\n describe: 'Open VS Code in the worktree after creation',\n type: 'boolean',\n default: false,\n })\n .option('unsafe', retiredUnsafeOption)\n .option('pull', {\n describe: 'Pull latest changes when switching into an existing worktree or the base repo. Use --no-pull to skip.',\n type: 'boolean',\n default: true,\n })\n .option('host', {\n describe:\n 'Run the AI session in the PTY host and attach this terminal to it (the default): it survives closing the tab, shows in `work web` — the same screen there and here — and restores after a reboot. Ctrl+] detaches. --no-host (or config `launchViaHost: false`) launches directly in this terminal instead.',\n type: 'boolean',\n })\n .option('fresh', {\n describe: 'Start a new AI conversation instead of continuing the previous one for this directory',\n type: 'boolean',\n default: false,\n })\n .option('base', {\n describe:\n 'Base branch to fork from instead of HEAD. Repeatable. Use a bare branch (--base dev) for all repos, or alias=branch (--base backend=dev --base frontend=feat/x) for per-repo bases in a group.',\n type: 'string',\n })\n .option('prompt', {\n describe: 'Initial prompt to send to the AI tool on startup',\n type: 'string',\n })\n .option('prompt-file', {\n describe: 'File containing the initial prompt (deleted after reading)',\n type: 'string',\n })\n .option('pr', {\n describe:\n \"Work on a pull request, on its branch (what you push lands in it): its link, or its number with <target>. Someone else's too; not one from a fork\",\n type: 'string',\n })\n .option('name', {\n describe: 'Name the session (shown instead of the branch; rename later with F2 in the dashboard)',\n type: 'string',\n })\n .option('account', {\n describe:\n 'The Claude account a new session runs on (a name from `work account list`; default: the configured default). An existing session keeps its own.',\n type: 'string',\n })\n .option('issue-key', {\n describe: 'Link a Jira issue key to this worktree session',\n type: 'string',\n hidden: true,\n })\n .option('repos', {\n describe: \"A new session's repos (comma-separated aliases) instead of its group's: made as a session folder (used by Fork…)\",\n type: 'string',\n hidden: true,\n })\n .option('setup-only', {\n describe: 'Create worktree without launching the AI tool (used by dashboard)',\n type: 'boolean',\n default: false,\n hidden: true,\n }),\n handler: async (argv) => {\n let targetName = argv.target as string | undefined;\n let branchName = argv.branch as string | undefined;\n const here = argv.here as boolean;\n const open = argv.open as boolean;\n warnRetiredUnsafe(argv);\n const pull = argv.pull as boolean;\n const fresh = argv.fresh as boolean;\n const setupOnly = argv['setup-only'] as boolean;\n let baseSpec;\n try {\n baseSpec = parseBaseSpec(argv.base as string | string[] | undefined);\n } catch (err) {\n if (err instanceof BaseSpecError) {\n console.error(err.message);\n process.exitCode = 1;\n return;\n }\n throw err;\n }\n const issueKey = argv['issue-key'] as string | undefined;\n const account = argv.account as string | undefined;\n const promptFile = argv['prompt-file'] as string | undefined;\n let initialPrompt = argv.prompt as string | undefined;\n\n // --prompt-file takes precedence: read and delete the temp file\n if (promptFile) {\n try {\n initialPrompt = fs.readFileSync(promptFile, 'utf-8');\n fs.unlinkSync(promptFile);\n } catch {\n // ignore — fall through to --prompt or no prompt\n }\n }\n\n const config = ensureConfig();\n // Via the host unless told otherwise: one Claude that the terminal and\n // the dashboard both show. A direct launch is invisible to work web.\n const viaHost = (argv.host as boolean | undefined) ?? config.launchViaHost ?? true;\n\n /**\n * Launch the AI tool, continuing the previous conversation for this\n * directory when there is one. `--continue` errors out (\"No conversation\n * found to continue\") in a directory the tool has never run in, so the flag\n * is gated on an existing transcript.\n */\n const launchTool = async (dir: string, port: number | undefined, sessionKey: { target: string; branch: string }): Promise<void> => {\n if (viaHost) {\n const session = findSession(loadHistory(), sessionKey.target, sessionKey.branch);\n if (session) {\n // The host decides --continue itself (the agent's own canResume\n // gate); `fresh` and the prompt ride along on the first spawn.\n process.exitCode = await attachSession(session, {\n fresh,\n initialPrompt,\n forwardEnv: true,\n });\n return;\n }\n console.log(chalk.yellow('Session not found in history — launching directly instead of via the PTY host.'));\n }\n // The session's agent: what to run, and whether it can resume here.\n const own = findSession(loadHistory(), sessionKey.target, sessionKey.branch);\n const agent = agentFor(config, own);\n const tool = agent.launch.tool(config);\n // The session's account: its conversations are in that account's folder, and the agent starts on it.\n const resume = !fresh && agent.launch.canResume(dir, { session: own });\n if (resume) {\n console.log(chalk.gray(`Continuing the previous ${tool.cmd} conversation (--fresh starts a new one).`));\n }\n // Started normally now: a launchedUnsafe from before the retirement no longer describes it — unless that agent\n // still runs in another terminal, which keeps the flag and its guards (legacy-unsafe.ts; remove next release).\n clearLaunchedUnsafeWhenIdle(sessionKey.target, sessionKey.branch);\n console.log(`Starting ${tool.cmd}...`);\n // With work's hooks for this process (--settings), never the user's settings' (agents/session-hooks.ts).\n launchAi(dir, sessionToolFor(tool), { initialPrompt, resume }, port, ...envArgs(agent.launch.env?.(own ?? null)));\n };\n\n // --pr: the PR's repo and branch, and a first prompt saying whose branch it is.\n const prArg = argv.pr as string | undefined;\n if (prArg !== undefined) {\n if (branchName || here || !isEmptyBaseSpec(baseSpec)) {\n console.error(\"--pr takes the PR's own branch: don't combine it with a branch, --here or --base.\");\n process.exitCode = 1;\n return;\n }\n const found = await resolvePrToStart(prArg, config, targetName);\n if (!found.ok) {\n console.error(found.error);\n process.exitCode = 1;\n return;\n }\n targetName = found.pr.alias;\n branchName = found.pr.branch;\n // The PR's context goes to a new session only (with your --prompt as what to do): back in\n // one, your --prompt goes as it is, and nothing re-sends the first message.\n if (!findSession(loadHistory(), targetName, branchName)) initialPrompt = workOnPrPrompt(found.pr, initialPrompt);\n console.log(\n chalk.cyan(`PR #${found.pr.number} by @${found.pr.author || '?'}: ${found.pr.title}, on its branch ${branchName} in ${targetName}`),\n );\n }\n\n // --here: infer target and branch from the current worktree directory\n if (here) {\n if (targetName) {\n console.error('Cannot combine --here with an explicit target.');\n process.exitCode = 1;\n return;\n }\n const inferred = resolveFromCwd(config, process.cwd(), loadHistory());\n if ('error' in inferred) {\n console.error(inferred.error);\n process.exitCode = 1;\n return;\n }\n targetName = inferred.target;\n branchName = inferred.isBaseRepo ? undefined : inferred.branch;\n console.log(chalk.cyan(`Resolved from current directory: ${targetName}${branchName ? ' @ ' + branchName : ' (base repo)'}`));\n } else if (!targetName) {\n console.error('Specify a target, or use --here to infer it from the current directory.');\n process.exitCode = 1;\n return;\n }\n\n // --base requires a branch name\n if (!isEmptyBaseSpec(baseSpec) && !branchName) {\n console.error('--base requires a branch name');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch> --base <base>`));\n process.exitCode = 1;\n return;\n }\n\n // Resolve project target (for validation and base-repo handling)\n const target = resolveProjectTarget(targetName, config);\n if (!target) {\n const allNames = getAllTargetNames(config);\n console.error(`Project or group not found: ${targetName}`);\n console.log(chalk.yellow(`Available: ${allNames.join(', ')}`));\n console.log(chalk.yellow('Add a new project with: work config add <alias> <path>'));\n process.exitCode = 1;\n return;\n }\n\n // The branch the repo's own folder is on can't be checked out a second time: asking for it means that folder.\n if (branchName && isEmptyBaseSpec(baseSpec) && !target.isGroup && ownsBranch(targetName, branchName, config)) {\n console.log(chalk.gray(`${branchName} is the branch ${targetName}'s own folder is on: opening it there.`));\n branchName = undefined;\n }\n\n // No branch specified — work directly on the base repo\n if (!branchName) {\n if (target.isGroup) {\n console.error('Branch is required for group targets.');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch>`));\n process.exitCode = 1;\n return;\n }\n\n console.log(chalk.cyan(`Working on base repo: ${targetName}`));\n const opened = await openBaseCheckout(targetName, config, {\n pull,\n issueKey,\n name: typeof argv.name === 'string' ? argv.name : undefined,\n account,\n });\n if (!opened.ok) {\n console.error(opened.error);\n process.exitCode = 1;\n return;\n }\n const { repoPath, branch: currentBranch } = opened;\n console.log(`Repo path: ${repoPath}`);\n if (opened.dropped.length) console.log(chalk.gray(`Replaced older entries for this checkout: ${opened.dropped.join(', ')}`));\n\n if (open) openVSCode(repoPath);\n if (!setupOnly) await launchTool(repoPath, undefined, { target: targetName, branch: currentBranch });\n return;\n }\n\n // Create/switch worktree via shared core logic\n const repos =\n typeof argv.repos === 'string'\n ? argv.repos\n .split(',')\n .map((a) => a.trim())\n .filter(Boolean)\n : [];\n const { value: result, warnings } = await keepingWarnings(() =>\n setupWorktree(targetName, branchName, config, baseSpec, issueKey, {\n pull,\n name: argv.name as string | undefined,\n ...(account ? { account } : {}),\n ...(repos.length ? { repos } : {}),\n }),\n );\n if (!result) {\n // Run by you (not work web's child, whose route says it): what keeps the old folder in use, by name.\n const left = setupOnly ? [] : leftoversOf(findSession(loadHistory(), targetName, branchName)?.paths ?? []);\n const open = await openInLeftovers(left);\n if (open.length) console.error(chalk.yellow(`Still open in its old folder: ${open.join(', ')}. Stop it and try again.`));\n process.exitCode = 1;\n return;\n }\n\n if (open) {\n for (const p of result.paths) {\n openVSCode(p);\n }\n }\n\n console.log(`Worktree path: ${result.launchDir}`);\n // work web's child: what it warned about, for the dashboard (it reads only this line).\n if (setupOnly) console.log(`${SETUP_WARNINGS}${JSON.stringify(warnings)}`);\n if (!setupOnly) {\n await launchTool(result.launchDir, result.port, { target: targetName, branch: branchName });\n }\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAY,UAAU,GAAG,SAAS,CAAC,CAAC;AACzG,YAAMA,QAAO,MAAM,gBAAgB,IAAI;AACvC,UAAIA,MAAK,OAAQ,SAAQ,MAAM,MAAM,OAAO,iCAAiCA,MAAK,KAAK,IAAI,CAAC,0BAA0B,CAAC;AACvH,cAAQ,WAAW;AACnB;AAAA,IACF;AAEA,QAAI,MAAM;AACR,iBAAW,KAAK,OAAO,OAAO;AAC5B,mBAAW,CAAC;AAAA,MACd;AAAA,IACF;AAEA,YAAQ,IAAI,kBAAkB,OAAO,SAAS,EAAE;AAEhD,QAAI,UAAW,SAAQ,IAAI,GAAG,cAAc,GAAG,KAAK,UAAU,QAAQ,CAAC,EAAE;AACzE,QAAI,CAAC,WAAW;AACd,YAAM,WAAW,OAAO,WAAW,OAAO,MAAM,EAAE,QAAQ,YAAY,QAAQ,WAAW,CAAC;AAAA,IAC5F;AAAA,EACF;AACF;","names":["open"]}
@@ -1,35 +1,35 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  updateSession
4
- } from "./chunk-BWUN33QN.js";
5
- import "./chunk-ZNGR2CB6.js";
4
+ } from "./chunk-ZAAWSVTU.js";
5
+ import "./chunk-LMD2J2JN.js";
6
6
  import {
7
7
  sessionFromArgs,
8
8
  sessionPositionals
9
- } from "./chunk-X6EMCJ2L.js";
9
+ } from "./chunk-SMARTMBW.js";
10
10
  import "./chunk-6AQRYLOB.js";
11
- import "./chunk-RXORNKSJ.js";
11
+ import "./chunk-XHUKX3HO.js";
12
12
  import "./chunk-ZSHWP2VS.js";
13
13
  import "./chunk-CNZV3UCM.js";
14
14
  import "./chunk-HUXS3VAI.js";
15
- import "./chunk-MVME4LH7.js";
16
- import "./chunk-GPLCT5TZ.js";
17
- import "./chunk-2IDWQ5NO.js";
15
+ import "./chunk-ZXDRQ2MV.js";
16
+ import "./chunk-CJQPKHDO.js";
17
+ import "./chunk-HT52LVYU.js";
18
18
  import "./chunk-FGPXMAYU.js";
19
- import "./chunk-U64SNFIZ.js";
19
+ import "./chunk-SRGOCF73.js";
20
20
  import "./chunk-GNIYYXQX.js";
21
21
  import "./chunk-T5GJVUSL.js";
22
22
  import "./chunk-XBWS77S2.js";
23
23
  import "./chunk-4CXUVBOD.js";
24
- import "./chunk-FNWPOM4B.js";
24
+ import "./chunk-UN33JXAD.js";
25
25
  import "./chunk-NEJVK5CF.js";
26
26
  import "./chunk-ALBTIOP3.js";
27
- import "./chunk-CYUSOVO5.js";
28
- import "./chunk-UCNYEHQY.js";
27
+ import "./chunk-H3WBTKPB.js";
28
+ import "./chunk-4HNMJIUZ.js";
29
29
  import "./chunk-DOYJR2HF.js";
30
30
  import "./chunk-HK6AZQ5Z.js";
31
- import "./chunk-TZLCBDJZ.js";
32
- import "./chunk-BZGIKO6I.js";
31
+ import "./chunk-2L2TNYQA.js";
32
+ import "./chunk-IKGSTBTG.js";
33
33
  import "./chunk-REPFZIPP.js";
34
34
  import "./chunk-VHENFC2S.js";
35
35
  import "./chunk-QOSAWNOU.js";
@@ -71,4 +71,4 @@ var updateCommand = {
71
71
  export {
72
72
  updateCommand
73
73
  };
74
- //# sourceMappingURL=update-PHTB3AB5.js.map
74
+ //# sourceMappingURL=update-THIANISA.js.map
@@ -3,23 +3,23 @@ import {
3
3
  buildUsage,
4
4
  realUsageDeps,
5
5
  restoreAgentUsage
6
- } from "./chunk-C6OEPSH2.js";
7
- import "./chunk-QHA4VF4B.js";
6
+ } from "./chunk-C5F36EGT.js";
7
+ import "./chunk-I5YQ7AC5.js";
8
8
  import {
9
9
  formatTokens,
10
10
  resetPhrase
11
11
  } from "./chunk-UVZITL47.js";
12
- import "./chunk-FNWPOM4B.js";
12
+ import "./chunk-UN33JXAD.js";
13
13
  import "./chunk-NEJVK5CF.js";
14
14
  import "./chunk-ALBTIOP3.js";
15
15
  import {
16
16
  knownAgents
17
- } from "./chunk-CYUSOVO5.js";
18
- import "./chunk-UCNYEHQY.js";
17
+ } from "./chunk-H3WBTKPB.js";
18
+ import "./chunk-4HNMJIUZ.js";
19
19
  import "./chunk-DOYJR2HF.js";
20
20
  import "./chunk-HK6AZQ5Z.js";
21
- import "./chunk-TZLCBDJZ.js";
22
- import "./chunk-BZGIKO6I.js";
21
+ import "./chunk-2L2TNYQA.js";
22
+ import "./chunk-IKGSTBTG.js";
23
23
  import "./chunk-REPFZIPP.js";
24
24
  import "./chunk-VHENFC2S.js";
25
25
  import "./chunk-QOSAWNOU.js";
@@ -85,4 +85,4 @@ export {
85
85
  usageCommand,
86
86
  usageLines
87
87
  };
88
- //# sourceMappingURL=usage-2Z7354NZ.js.map
88
+ //# sourceMappingURL=usage-CZZOI34H.js.map
@@ -9,9 +9,9 @@ import {
9
9
  } from "./chunk-4CXUVBOD.js";
10
10
  import {
11
11
  READ_ONLY_MIN_VERSION
12
- } from "./chunk-UCNYEHQY.js";
13
- import "./chunk-TZLCBDJZ.js";
14
- import "./chunk-BZGIKO6I.js";
12
+ } from "./chunk-4HNMJIUZ.js";
13
+ import "./chunk-2L2TNYQA.js";
14
+ import "./chunk-IKGSTBTG.js";
15
15
  import {
16
16
  killTreeAsync
17
17
  } from "./chunk-VHENFC2S.js";
@@ -113,4 +113,4 @@ export {
113
113
  parseClaudeVersion,
114
114
  runVersion
115
115
  };
116
- //# sourceMappingURL=version-G2HN4GTL.js.map
116
+ //# sourceMappingURL=version-2YUMQ4EN.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  cliWaitDeps
4
- } from "./chunk-UIIEP6VP.js";
4
+ } from "./chunk-N5P2OY5O.js";
5
5
  import {
6
6
  parseDuration,
7
7
  waitForTurn
@@ -9,24 +9,24 @@ import {
9
9
  import {
10
10
  sessionFromArgs,
11
11
  sessionPositionals
12
- } from "./chunk-X6EMCJ2L.js";
12
+ } from "./chunk-SMARTMBW.js";
13
13
  import "./chunk-6AQRYLOB.js";
14
14
  import "./chunk-FZHFD2AY.js";
15
- import "./chunk-RXORNKSJ.js";
15
+ import "./chunk-XHUKX3HO.js";
16
16
  import "./chunk-ZSHWP2VS.js";
17
17
  import "./chunk-CNZV3UCM.js";
18
18
  import "./chunk-HUXS3VAI.js";
19
- import "./chunk-FNWPOM4B.js";
19
+ import "./chunk-UN33JXAD.js";
20
20
  import "./chunk-NEJVK5CF.js";
21
21
  import {
22
22
  sessionIdFor
23
23
  } from "./chunk-ALBTIOP3.js";
24
- import "./chunk-CYUSOVO5.js";
25
- import "./chunk-UCNYEHQY.js";
24
+ import "./chunk-H3WBTKPB.js";
25
+ import "./chunk-4HNMJIUZ.js";
26
26
  import "./chunk-DOYJR2HF.js";
27
27
  import "./chunk-HK6AZQ5Z.js";
28
- import "./chunk-TZLCBDJZ.js";
29
- import "./chunk-BZGIKO6I.js";
28
+ import "./chunk-2L2TNYQA.js";
29
+ import "./chunk-IKGSTBTG.js";
30
30
  import "./chunk-REPFZIPP.js";
31
31
  import "./chunk-VHENFC2S.js";
32
32
  import "./chunk-QOSAWNOU.js";
@@ -64,4 +64,4 @@ var waitCommand = {
64
64
  export {
65
65
  waitCommand
66
66
  };
67
- //# sourceMappingURL=wait-MEMUQGDV.js.map
67
+ //# sourceMappingURL=wait-QBBM7MR5.js.map
package/dist/wd-bin.js CHANGED
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-OL7S2KFH.js";
4
+ } from "./chunk-473UMEVN.js";
5
5
  import {
6
6
  consoleReporter
7
7
  } from "./chunk-S5HJT7CM.js";
8
- import "./chunk-OX33X3NH.js";
8
+ import "./chunk-3OMFMSZ4.js";
9
9
  import "./chunk-IPHADNF5.js";
10
10
  import "./chunk-JYWX2N5W.js";
11
- import "./chunk-BZGIKO6I.js";
11
+ import "./chunk-IKGSTBTG.js";
12
12
  import "./chunk-QOSAWNOU.js";
13
13
  import "./chunk-D2J3AD6L.js";
14
14
  import {
@@ -1,4 +1,4 @@
1
- import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./index-DjFmAhbY.js";var l=r(t(),1),u=2e3,d=20,f=class{sentAt=null;samples=[];shownSamples=[];open=null;keySent(e){let t=this.open;return this.open=null,this.sentAt===null&&(this.sentAt=e),t?{arrived:t.arrived,shown:null}:null}output(e){if(this.sentAt===null)return null;let t=e-this.sentAt,n=this.sentAt;return this.sentAt=null,t<0||t>u?null:(p(this.samples,t),this.open={sentAt:n,arrived:t},t)}rendered(e){let t=this.open;if(!t)return null;this.open=null;let n=e-t.sentAt;return n<0||n>u?{arrived:t.arrived,shown:null}:(p(this.shownSamples,n),{arrived:t.arrived,shown:n})}median(){return this.samples.length?m(this.samples).median:null}reading(){return this.samples.length?{arrived:m(this.samples),shown:this.shownSamples.length?m(this.shownSamples):null}:null}};function p(e,t){e.push(t),e.length>d&&e.shift()}function m(e){let t=[...e].sort((e,t)=>e-t),n=t.length>>1;return{median:t.length%2?t[n]:(t[n-1]+t[n])/2,worst:t[Math.min(t.length-1,Math.ceil(t.length*.9)-1)]}}function h(e,t,n=null){let r=t!==`webgl`;if(e===null&&!r)return null;let i=e=>`${Math.round(e)} ms`,a=e?.shown??e?.arrived??null;return{text:[a&&`⌁ ${i(a.median)}${a.worst>a.median*1.5?` (${i(a.worst)})`:``}`,r&&`DOM`].filter(Boolean).join(` · `),title:[e&&`A keystroke, over the last 20 (median, and in brackets the slowest of most of them): its echo arrived in ${i(e.arrived.median)} (${i(e.arrived.worst)}) — browser → PTY host → ConPTY → Claude and back`+(e.shown?`; it was on screen in ${i(e.shown.median)} (${i(e.shown.worst)}) — the frame drawn after it.`:`.`),e&&n===`direct`&&`Connected straight to the PTY host.`,e&&n===`relay`&&"Connected through work web (the PTY host gave no ticket: restart it with `work pty-host --restart`).",r&&`Drawn without the GPU, which is slower while Claude works.`,t===`retrying`&&`The GPU renderer was lost; it is tried again by itself.`,t===`dom`&&`WebGL is unavailable here, or kept getting lost; reloading the page tries it again.`,e&&`Each keystroke and every freeze of this window is written to work’s debug log (terminal-perf).`].filter(Boolean).join(` `),slow:r||(a?.median??0)>100}}var g=200,_=100,v=class{keys=[];stalls=[];key(e){e&&this.keys.length<g&&this.keys.push({arrived:Math.round(e.arrived),shown:e.shown===null?null:Math.round(e.shown)})}stall(e,t){this.stalls.length>=_||this.stalls.push({at:t,ms:Math.round(e.duration),blocking:e.blockingDuration===void 0?null:Math.round(e.blockingDuration),what:y(e)})}take(e){if(!this.keys.length&&!this.stalls.length)return null;let t={...e,keys:this.keys,stalls:this.stalls};return this.keys=[],this.stalls=[],t}};function y(e){return[...e.scripts??[]].sort((e,t)=>(t.duration??0)-(e.duration??0)).slice(0,3).map(e=>{let t=(e.sourceURL??``).split(`/`).pop()?.split(`?`)[0]??``;return[e.invoker,e.sourceFunctionName,t,e.duration===void 0?``:`${Math.round(e.duration)}ms`].filter(Boolean).join(` `).slice(0,160)}).join(`; `)}function ee(e){let t=typeof PerformanceObserver>`u`?null:PerformanceObserver,n=t?.supportedEntryTypes??[],r=n.includes(`long-animation-frame`)?`long-animation-frame`:n.includes(`longtask`)?`longtask`:null;if(!t||!r)return()=>{};let i=new t(t=>{for(let n of t.getEntries())e(n)});return i.observe({type:r,buffered:!1}),()=>i.disconnect()}async function te(e,t){try{let n=await fetch(`/api/terminals/${encodeURIComponent(e)}/ticket`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({force:t})});return n.status===404&&!(n.headers.get(`content-type`)??``).includes(`json`)?null:await n.json()}catch{return null}}function ne(e,t){let n=t.WebSocketImpl??WebSocket,r=t.askTicket??te,i=[],a=[],o=[],s=null,c=!1,l=!1,u=null,d=e=>{let t=new MessageEvent(`message`,{data:e});for(let e of i)e(t)},f=(e=new Event(`close`))=>{if(!l){l=!0;for(let t of a)t(e)}},p=(e,r)=>{if(c)return;u=r?`direct`:`relay`;let a=new n(e);a.binaryType=m.binaryType,s=a;let l=!1;a.addEventListener(`open`,()=>{l=!0;for(let e of o)a.send(e);o.length=0}),a.addEventListener(`message`,e=>{if(s===a)for(let t of i)t(e)}),a.addEventListener(`close`,e=>{if(s===a){if(r&&!l&&!c)return p(t.relayUrl,!1);f(e)}})},m={binaryType:`blob`,addEventListener(e,t){e===`message`?i.push(t):a.push(t)},send(e){s&&s.readyState===n.OPEN?s.send(e):o.push(e)},close(){c=!0,s?s.close():f()},get route(){return u}};return r(e,t.force).then(e=>{if(!c){if(e&&`url`in e)return p(e.url,!0);if(e&&`elsewhere`in e)return d(JSON.stringify(e.elsewhere)),f();if(e&&`error`in e)return d(JSON.stringify({type:`error`,message:e.error})),f();p(t.relayUrl,!1)}}),m}var re=[3,10,30,60];function ie(e){return e>=0&&e<re.length?re[e]*1e3:null}function ae(e){return e?.trim()?e.trim():`the connection closed before it started`}var b=[2e3,1e4,6e4],x=6e5,oe=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<x),this.losses.push(e),b[this.losses.length-1]??null}},S=/^(\s*)([●⏺⎿])(\s)/u,se=/^(?:[-*+•]\s|\d+[.)]\s|#{1,6}\s|>\s|[│┃|┌└├╭╰─━])/u,ce=/^(?:[-*+•]|\d+[.)])\s+/u,le=e=>e.length-e.trimStart().length,C=``,w=``,T=``,ue=``,de=/[\uE000-\uE003]/gu,fe=e=>e.replace(de,``);function pe(e,t){let n=``,r=0;for(;r<e.length&&t>0;r++)if(/[\uE000-\uE003]/u.test(e[r]))n+=e[r];else if(/\s/u.test(e[r]))t--;else break;return n+e.slice(r)}var me=e=>pe(e,le(fe(e)));function he(e,t,n){let r=e.split(/\r?\n/).map(e=>{let t=e.replace(/\s+$/u,``);return S.test(fe(t))?t.replace(/[●⏺⎿]/u,` `):t}),i=e=>e===0?n:0,a=[],o=null;for(let e=0;e<r.length;e++){let n=r[e],s=fe(n),c=me(n),l=s.trimStart(),u=i(e)+le(s),d=i(e)+s.length;if(o&&l&&o.end+1+(l.split(/\s/u)[0]?.length??0)>t-2&&!se.test(l)&&u===o.cont){o.text+=` `+c,o.end=d;continue}if(o&&a.push(o.text),!l){o=null,a.push(``);continue}let f=ce.exec(l);o={text:(e===0?``:` `.repeat(le(s)))+c,cont:u+(f?f[0].length:0),end:d},/[│┃]/u.test(l)&&(a.push(o.text),o=null)}o&&a.push(o.text);let s=a.slice(1).filter(e=>fe(e).trim()),c=s.length?Math.min(...s.map(e=>le(fe(e)))):0;return a.map((e,t)=>t===0?me(e):pe(e,Math.min(c,le(fe(e))))).join(`
1
+ import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./index-1hFrx0fV.js";var l=r(t(),1),u=2e3,d=20,f=class{sentAt=null;samples=[];shownSamples=[];open=null;keySent(e){let t=this.open;return this.open=null,this.sentAt===null&&(this.sentAt=e),t?{arrived:t.arrived,shown:null}:null}output(e){if(this.sentAt===null)return null;let t=e-this.sentAt,n=this.sentAt;return this.sentAt=null,t<0||t>u?null:(p(this.samples,t),this.open={sentAt:n,arrived:t},t)}rendered(e){let t=this.open;if(!t)return null;this.open=null;let n=e-t.sentAt;return n<0||n>u?{arrived:t.arrived,shown:null}:(p(this.shownSamples,n),{arrived:t.arrived,shown:n})}median(){return this.samples.length?m(this.samples).median:null}reading(){return this.samples.length?{arrived:m(this.samples),shown:this.shownSamples.length?m(this.shownSamples):null}:null}};function p(e,t){e.push(t),e.length>d&&e.shift()}function m(e){let t=[...e].sort((e,t)=>e-t),n=t.length>>1;return{median:t.length%2?t[n]:(t[n-1]+t[n])/2,worst:t[Math.min(t.length-1,Math.ceil(t.length*.9)-1)]}}function h(e,t,n=null){let r=t!==`webgl`;if(e===null&&!r)return null;let i=e=>`${Math.round(e)} ms`,a=e?.shown??e?.arrived??null;return{text:[a&&`⌁ ${i(a.median)}${a.worst>a.median*1.5?` (${i(a.worst)})`:``}`,r&&`DOM`].filter(Boolean).join(` · `),title:[e&&`A keystroke, over the last 20 (median, and in brackets the slowest of most of them): its echo arrived in ${i(e.arrived.median)} (${i(e.arrived.worst)}) — browser → PTY host → ConPTY → Claude and back`+(e.shown?`; it was on screen in ${i(e.shown.median)} (${i(e.shown.worst)}) — the frame drawn after it.`:`.`),e&&n===`direct`&&`Connected straight to the PTY host.`,e&&n===`relay`&&"Connected through work web (the PTY host gave no ticket: restart it with `work pty-host --restart`).",r&&`Drawn without the GPU, which is slower while Claude works.`,t===`retrying`&&`The GPU renderer was lost; it is tried again by itself.`,t===`dom`&&`WebGL is unavailable here, or kept getting lost; reloading the page tries it again.`,e&&`Each keystroke and every freeze of this window is written to work’s debug log (terminal-perf).`].filter(Boolean).join(` `),slow:r||(a?.median??0)>100}}var g=200,_=100,v=class{keys=[];stalls=[];key(e){e&&this.keys.length<g&&this.keys.push({arrived:Math.round(e.arrived),shown:e.shown===null?null:Math.round(e.shown)})}stall(e,t){this.stalls.length>=_||this.stalls.push({at:t,ms:Math.round(e.duration),blocking:e.blockingDuration===void 0?null:Math.round(e.blockingDuration),what:y(e)})}take(e){if(!this.keys.length&&!this.stalls.length)return null;let t={...e,keys:this.keys,stalls:this.stalls};return this.keys=[],this.stalls=[],t}};function y(e){return[...e.scripts??[]].sort((e,t)=>(t.duration??0)-(e.duration??0)).slice(0,3).map(e=>{let t=(e.sourceURL??``).split(`/`).pop()?.split(`?`)[0]??``;return[e.invoker,e.sourceFunctionName,t,e.duration===void 0?``:`${Math.round(e.duration)}ms`].filter(Boolean).join(` `).slice(0,160)}).join(`; `)}function ee(e){let t=typeof PerformanceObserver>`u`?null:PerformanceObserver,n=t?.supportedEntryTypes??[],r=n.includes(`long-animation-frame`)?`long-animation-frame`:n.includes(`longtask`)?`longtask`:null;if(!t||!r)return()=>{};let i=new t(t=>{for(let n of t.getEntries())e(n)});return i.observe({type:r,buffered:!1}),()=>i.disconnect()}async function te(e,t){try{let n=await fetch(`/api/terminals/${encodeURIComponent(e)}/ticket`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({force:t})});return n.status===404&&!(n.headers.get(`content-type`)??``).includes(`json`)?null:await n.json()}catch{return null}}function ne(e,t){let n=t.WebSocketImpl??WebSocket,r=t.askTicket??te,i=[],a=[],o=[],s=null,c=!1,l=!1,u=null,d=e=>{let t=new MessageEvent(`message`,{data:e});for(let e of i)e(t)},f=(e=new Event(`close`))=>{if(!l){l=!0;for(let t of a)t(e)}},p=(e,r)=>{if(c)return;u=r?`direct`:`relay`;let a=new n(e);a.binaryType=m.binaryType,s=a;let l=!1;a.addEventListener(`open`,()=>{l=!0;for(let e of o)a.send(e);o.length=0}),a.addEventListener(`message`,e=>{if(s===a)for(let t of i)t(e)}),a.addEventListener(`close`,e=>{if(s===a){if(r&&!l&&!c)return p(t.relayUrl,!1);f(e)}})},m={binaryType:`blob`,addEventListener(e,t){e===`message`?i.push(t):a.push(t)},send(e){s&&s.readyState===n.OPEN?s.send(e):o.push(e)},close(){c=!0,s?s.close():f()},get route(){return u}};return r(e,t.force).then(e=>{if(!c){if(e&&`url`in e)return p(e.url,!0);if(e&&`elsewhere`in e)return d(JSON.stringify(e.elsewhere)),f();if(e&&`error`in e)return d(JSON.stringify({type:`error`,message:e.error})),f();p(t.relayUrl,!1)}}),m}var re=[3,10,30,60];function ie(e){return e>=0&&e<re.length?re[e]*1e3:null}function ae(e){return e?.trim()?e.trim():`the connection closed before it started`}var b=[2e3,1e4,6e4],x=6e5,oe=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<x),this.losses.push(e),b[this.losses.length-1]??null}},S=/^(\s*)([●⏺⎿])(\s)/u,se=/^(?:[-*+•]\s|\d+[.)]\s|#{1,6}\s|>\s|[│┃|┌└├╭╰─━])/u,ce=/^(?:[-*+•]|\d+[.)])\s+/u,le=e=>e.length-e.trimStart().length,C=``,w=``,T=``,ue=``,de=/[\uE000-\uE003]/gu,fe=e=>e.replace(de,``);function pe(e,t){let n=``,r=0;for(;r<e.length&&t>0;r++)if(/[\uE000-\uE003]/u.test(e[r]))n+=e[r];else if(/\s/u.test(e[r]))t--;else break;return n+e.slice(r)}var me=e=>pe(e,le(fe(e)));function he(e,t,n){let r=e.split(/\r?\n/).map(e=>{let t=e.replace(/\s+$/u,``);return S.test(fe(t))?t.replace(/[●⏺⎿]/u,` `):t}),i=e=>e===0?n:0,a=[],o=null;for(let e=0;e<r.length;e++){let n=r[e],s=fe(n),c=me(n),l=s.trimStart(),u=i(e)+le(s),d=i(e)+s.length;if(o&&l&&o.end+1+(l.split(/\s/u)[0]?.length??0)>t-2&&!se.test(l)&&u===o.cont){o.text+=` `+c,o.end=d;continue}if(o&&a.push(o.text),!l){o=null,a.push(``);continue}let f=ce.exec(l);o={text:(e===0?``:` `.repeat(le(s)))+c,cont:u+(f?f[0].length:0),end:d},/[│┃]/u.test(l)&&(a.push(o.text),o=null)}o&&a.push(o.text);let s=a.slice(1).filter(e=>fe(e).trim()),c=s.length?Math.min(...s.map(e=>le(fe(e)))):0;return a.map((e,t)=>t===0?me(e):pe(e,Math.min(c,le(fe(e))))).join(`
2
2
  `)}function ge(e,t){let n=``;for(let r=t.start.y;r<=t.end.y;r++){let i=e.getLine(r);if(!i)break;let a=r<t.end.y&&!!e.getLine(r+1)?.isWrapped,o=[],s=r===t.end.y?Math.min(t.end.x,i.length):i.length;for(let e=r===t.start.y?t.start.x:0;e<s;e++){let t=i.getCell(e);t&&t.getWidth()!==0&&o.push({ch:t.getChars()||` `,b:!!t.isBold(),i:!!t.isItalic()})}let c=o.length;if(!a)for(;c>0&&o[c-1].ch.trim()===``;)c--;let l=!1,u=!1;for(let e of o.slice(0,c)){let t=e.ch.trim()?e.b:l,r=e.ch.trim()?e.i:u;(t!==l||r!==u)&&(u&&(n+=ue),l&&(n+=w),t&&(n+=C),r&&(n+=T),l=t,u=r),n+=e.ch}u&&(n+=ue),l&&(n+=w),r<t.end.y&&!a&&(n+=`
3
3
  `)}return n}function _e(e){let t=e.getSelection(),n=e.getSelectionPosition();if(!n)return t;let r=ge(e.buffer.active,n),i=e=>e.replace(/\r\n/gu,`
4
4
  `).replace(/[ \t]+$/gmu,``);return i(fe(r))===i(t)?r:t}function ve(e){let t=c(e).replaceAll(C,`<b>`).replaceAll(w,`</b>`).replaceAll(T,`<i>`).replaceAll(ue,`</i>`).replace(/<\/b>(\s*)<b>/gu,`$1`).replace(/<\/i>(\s*)<i>/gu,`$1`);for(let e=``;e!==t;)e=t,t=t.replace(/(\s+)(<\/[bi]>)/gu,`$2$1`);return t}var ye=/^\s*[│┃|].*[│┃|]\s*$/u,be=/^\s*(?:[┌├└╭╰┏┣┗┡╞][─━┬┼┴┳╋┻┐┤┘╮╯┓┫┛┩╡═╪╤╧\s]*|\|?(?:\s*:?-{3,}:?\s*\|)+\s*:?-*:?\s*\|?)$/u,xe=e=>e.trim().replace(/^[│┃|]|[│┃|]$/gu,``).split(/[│┃|]/u).map(e=>e.trim());function Se(e){let t=[[]],n=0;for(let r of e)be.test(r)?(n++,t[t.length-1].length&&t.push([])):ye.test(r)&&t[t.length-1].push(xe(r));let r=t.filter(e=>e.length);if(!r.length||!r.some(e=>e.some(e=>e.length>1)))return null;let i=r.length>2||r.length===2&&r[1].length===1,a=e=>e[0].map((t,n)=>e.map(e=>e[n]??``).filter(Boolean).join(` `)),o=i?r.map(a):[a(r[0]),...r.slice(1).flat()];return n||o.length>1?o:null}function Ce(e){let[t,...n]=e,r=(e,t)=>`<tr>${e.map(e=>`<${t}>${c(e)}</${t}>`).join(``)}</tr>`;return`<table><thead>${r(t,`th`)}</thead><tbody>${n.map(e=>r(e,`td`)).join(``)}</tbody></table>`}function we(e,t,n=0){let r=he(e,t,n).split(`
@@ -93,4 +93,4 @@ void main() {
93
93
  `);be=!0});let ke=t.onData(e=>{if(be){e===`\r`&&_(e=>e+1);return}Ae(e)});function Ae(e){be||(ge?(w.send(JSON.stringify({type:`input`,data:e})),Ee.key(xe.keySent(performance.now()))):ve.push(e))}let je=t.cols,Me=t.rows,Ne=(e=!1)=>{u.current&&(n.fit(),(e||t.cols!==je||t.rows!==Me)&&(je=t.cols,Me=t.rows,ge&&w.send(JSON.stringify({type:`resize`,cols:t.cols,rows:t.rows}))))},Pe=()=>Ne(),Fe=typeof ResizeObserver<`u`?new ResizeObserver(()=>Ne()):null;Fe?Fe.observe(c.current):window.addEventListener(`resize`,Pe),d.current=()=>{Ne(!0),t.focus()};let Ie=()=>Ne(!0);return t.textarea?.addEventListener(`focus`,Ie),()=>{l=!0,clearTimeout(fe),clearTimeout(he),clearTimeout(s),t.textarea?.removeEventListener(`paste`,b,!0),t.element?.removeEventListener(`copy`,se,!0),t.textarea?.removeEventListener(`focus`,Ie),d.current=null,Fe?.disconnect(),window.removeEventListener(`resize`,Pe),ke.dispose(),De.dispose(),clearInterval(Oe),E(),D(),clearTimeout(Ce);try{w.close()}catch{}t.dispose()}},[e,g]);let me=()=>{pe(!0),_(e=>e+1)};(0,l.useEffect)(()=>{if(!b||!i)return;let e=setInterval(()=>{document.visibilityState===`visible`&&me()},wp);return()=>clearInterval(e)},[b,i]);let he=async()=>{await s(`Start this session's Claude here?
94
94
 
95
95
  If it is still open in another terminal, both would write to the same conversation.`,{ok:`Start it here`})&&(S.current=!0,x(null),_(e=>e+1))},ge=t?`work tree ${t}${r?` ${r}`:``}`:`work tree <target> <branch>`,ve=h(se,w,le);return(0,$.jsxs)($.Fragment,{children:[b&&(0,$.jsxs)(`div`,{className:`wd-pty-elsewhere`,role:`status`,children:[(0,$.jsxs)(`p`,{className:`wd-pty-elsewhere-title`,children:[b.confirmed?`This session’s Claude is open in another terminal`:`This session’s Claude seems to be running in another terminal`,b.lastActivity!==null&&(0,$.jsxs)($.Fragment,{children:[` (last wrote `,Ep(b.lastActivity),`)`]}),b.state===`needs_input`&&(0,$.jsx)($.Fragment,{children:`, waiting for your answer there`}),`.`]}),(0,$.jsxs)(`p`,{children:[`Close it there (type `,(0,$.jsx)(`code`,{children:`/exit`}),`) and this tab attaches by itself — it checks every few seconds. To have both show the same screen instead, restart it with `,(0,$.jsx)(`code`,{children:ge}),` (Ctrl+] detaches, Claude keeps running).`]}),(0,$.jsxs)(`p`,{className:`wd-pty-elsewhere-actions`,children:[(0,$.jsx)(`button`,{type:`button`,className:`wd-btn-secondary`,onClick:me,disabled:fe,children:fe?`Checking…`:`Check again`}),!b.confirmed&&(0,$.jsx)(`button`,{type:`button`,className:`wd-link-button`,onClick:()=>void he(),children:`It's not running — start it here…`})]})]}),(0,$.jsxs)(`div`,{className:`wd-pty-frame`,style:b?{display:`none`}:void 0,children:[(0,$.jsx)(`div`,{ref:c,className:`wd-pty-host`}),ve&&(0,$.jsx)(`span`,{className:`wd-pty-latency`+(ve.slow?` wd-pty-latency-slow`:``),title:ve.title,children:ve.text}),p!==`ready`&&!b&&!y&&(0,$.jsx)(`div`,{className:`wd-pty-connecting`,role:`status`,children:p===`starting`?`Starting Claude — resuming the conversation…`:`Connecting…`}),p!==`ready`&&!b&&y&&(0,$.jsxs)(`div`,{className:`wd-pty-connecting wd-pty-failed`,role:`alert`,children:[(0,$.jsxs)(`p`,{children:[`Couldn't start Claude: `,y.reason,`.`]}),(0,$.jsxs)(`p`,{children:[y.retryAt===null?`Stopped trying on its own.`:(0,$.jsx)(Op,{at:y.retryAt}),` `,(0,$.jsx)(`button`,{type:`button`,className:`wd-btn-secondary`,onClick:()=>{re.current=0,te(null),_(e=>e+1)},children:y.retryAt===null?`Try again`:`Try now`})]})]})]})]})}function Op({at:e}){let[t,n]=(0,l.useState)(()=>Date.now());return(0,l.useEffect)(()=>{let e=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(e)},[]),(0,$.jsxs)($.Fragment,{children:[`Trying again in `,Math.max(1,Math.ceil((e-t)/1e3)),` s…`]})}export{wp as ELSEWHERE_RECHECK_MS,Dp as PtyView,Cp as openLink};
96
- //# sourceMappingURL=PtyView-CyqsvkBt.js.map
96
+ //# sourceMappingURL=PtyView-CJOk_dgn.js.map