@moberg_hr/work-tree 2.22.3 → 2.22.5

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 (240) hide show
  1. package/dist/{account-XM6AGLTP.js → account-J55P3HXH.js} +16 -16
  2. package/dist/{add-repo-Q2QRLPCY.js → add-repo-ALVEGU25.js} +9 -9
  3. package/dist/{answer-EN2SUUMI.js → answer-CI2SPQQL.js} +7 -7
  4. package/dist/{attach-WYSTXYA7.js → attach-7LBIFBLX.js} +14 -14
  5. package/dist/bin.js +2 -2
  6. package/dist/{block-O5XC4JSQ.js → block-TVIYWRJ5.js} +9 -9
  7. package/dist/{broadcast-MT77AQG5.js → broadcast-GZNMZFOY.js} +5 -5
  8. package/dist/{catchup-WNXY4QRC.js → catchup-ZURJI6BF.js} +10 -10
  9. package/dist/{child-4OQQ4RMP.js → child-K6YYF6MQ.js} +6 -6
  10. package/dist/{chunk-MHKDX7CD.js → chunk-23QLXVH6.js} +9 -9
  11. package/dist/{chunk-OHX7WKZU.js → chunk-4QMWNAEJ.js} +2 -2
  12. package/dist/{chunk-MD4G7DIO.js → chunk-5FIUVBUC.js} +5 -5
  13. package/dist/{chunk-XZF526OU.js → chunk-5P27YL64.js} +7 -7
  14. package/dist/{chunk-RDRQDE6J.js → chunk-6Y3VLCKA.js} +3 -3
  15. package/dist/{chunk-B4VQXZV4.js → chunk-7Q5PBXF6.js} +3 -3
  16. package/dist/{chunk-ZWD3QJLP.js → chunk-7ZOY2QQN.js} +2 -2
  17. package/dist/{chunk-VPFWY2GG.js → chunk-AITL3JYB.js} +2 -2
  18. package/dist/{chunk-SLA7CB3C.js → chunk-AIYZJ7XD.js} +4 -4
  19. package/dist/{chunk-VT6FJG3P.js → chunk-ATQB6PTV.js} +2 -2
  20. package/dist/{chunk-EXNRUU7Z.js → chunk-B2WV5RAL.js} +4 -4
  21. package/dist/{chunk-LVRV5UED.js → chunk-CA56ETYX.js} +4 -4
  22. package/dist/{chunk-MRMFJQZI.js → chunk-CMRTNTMU.js} +5 -5
  23. package/dist/{chunk-66OWGZAF.js → chunk-D2SVBU7R.js} +2 -2
  24. package/dist/{chunk-HF3ZGAW7.js → chunk-DC73NF67.js} +3 -3
  25. package/dist/{chunk-Z52GYYGA.js → chunk-DCENKA6E.js} +2 -2
  26. package/dist/{chunk-ORBZDEPN.js → chunk-DF4GOVDE.js} +2 -2
  27. package/dist/{chunk-R4DGGYME.js → chunk-EA4C6TVY.js} +3 -3
  28. package/dist/{chunk-YQSWVHKK.js → chunk-ED6YLB4S.js} +13 -13
  29. package/dist/chunk-ED6YLB4S.js.map +1 -0
  30. package/dist/{chunk-JBQOBCH4.js → chunk-EEHPZMS3.js} +2 -2
  31. package/dist/{chunk-7TAPYCLF.js → chunk-EVTMZ5IH.js} +57 -57
  32. package/dist/chunk-EXZ4A6VJ.js +9 -0
  33. package/dist/{chunk-JATQW6OX.js → chunk-EYJ42LDG.js} +4 -4
  34. package/dist/{chunk-TZ4BIOMS.js → chunk-F4UIKOU6.js} +4 -4
  35. package/dist/{chunk-HF4VUIGE.js → chunk-FGBLFF4O.js} +2 -2
  36. package/dist/{chunk-QAAYE6IY.js → chunk-FV7BSQPQ.js} +2 -2
  37. package/dist/{chunk-ZU36UJVG.js → chunk-G4T2HGLJ.js} +4 -4
  38. package/dist/{chunk-YYFYCOGY.js → chunk-GNERWNZY.js} +3 -3
  39. package/dist/{chunk-VRMALBZK.js → chunk-GQ5WECPJ.js} +2 -2
  40. package/dist/{chunk-WANJYVUP.js → chunk-IU6LA6EB.js} +3 -3
  41. package/dist/{chunk-QWD76K3E.js → chunk-KQMHGEI2.js} +805 -739
  42. package/dist/chunk-KQMHGEI2.js.map +1 -0
  43. package/dist/{chunk-EH4H2I72.js → chunk-KU3TQAA7.js} +3 -3
  44. package/dist/{chunk-WFKL2SJ3.js → chunk-LV5JRLBM.js} +2 -2
  45. package/dist/{chunk-RE6WWXD6.js → chunk-NOQA7MJ4.js} +2 -2
  46. package/dist/{chunk-I6GXPPEH.js → chunk-NYGKSOQ4.js} +6 -6
  47. package/dist/{chunk-GGBFSQEX.js → chunk-OCUUM755.js} +2 -2
  48. package/dist/{chunk-XYDGDIGZ.js → chunk-PUJSLL6R.js} +5 -5
  49. package/dist/{chunk-T4Y2Z6HB.js → chunk-Q2B3NUSM.js} +3 -3
  50. package/dist/{chunk-VOHPXD2P.js → chunk-QNOJOZYK.js} +2 -2
  51. package/dist/{chunk-WDKHEFR6.js → chunk-QOLHDDM2.js} +4 -4
  52. package/dist/{chunk-KSG6RRGI.js → chunk-RLPC3YKZ.js} +2 -2
  53. package/dist/{chunk-5C6N447O.js → chunk-RNPNBGVX.js} +2 -2
  54. package/dist/{chunk-GRHVKD2K.js → chunk-RTCTD5PJ.js} +3 -3
  55. package/dist/{chunk-5TW5NKYZ.js → chunk-SDYY5MHW.js} +6 -6
  56. package/dist/{chunk-4VM6GMMI.js → chunk-TOMDOA4P.js} +2 -2
  57. package/dist/{chunk-NHDZ3ECC.js → chunk-UAF2YFLZ.js} +6 -6
  58. package/dist/{chunk-DLV7TRON.js → chunk-USENBMUV.js} +2 -2
  59. package/dist/{chunk-J4CEJOSI.js → chunk-WRDULHAN.js} +14 -11
  60. package/dist/chunk-WRDULHAN.js.map +1 -0
  61. package/dist/{chunk-OOFCBN43.js → chunk-YO3BNAAK.js} +4 -4
  62. package/dist/{chunk-P3QIN44Y.js → chunk-Z4FWXDJG.js} +3 -3
  63. package/dist/{chunk-E5N4CJDI.js → chunk-Z4P23XG3.js} +4 -4
  64. package/dist/{chunk-4AAFXLXN.js → chunk-ZO7TF5OL.js} +3 -3
  65. package/dist/{chunk-RFE3HK2L.js → chunk-ZTWZS5RK.js} +3 -3
  66. package/dist/{cleanup-OZFN7I2N.js → cleanup-G4WQACD6.js} +26 -26
  67. package/dist/{cli-RA5CKMTR.js → cli-OPORB5PF.js} +3 -3
  68. package/dist/{color-47LQGPVK.js → color-C223W3Z6.js} +7 -7
  69. package/dist/{config-U7RPODOW.js → config-KQYXQCQA.js} +7 -7
  70. package/dist/{coordinate-UO432TPP.js → coordinate-4E5GIMC6.js} +7 -7
  71. package/dist/{diff-TXGP7XHY.js → diff-HEOLTXO2.js} +8 -8
  72. package/dist/{digest-OEU7P5GQ.js → digest-GYF4YLUH.js} +7 -7
  73. package/dist/{fork-PBSBRV6J.js → fork-B35ONP3Z.js} +23 -23
  74. package/dist/{history-WF7Z54MS.js → history-25DNQKKC.js} +5 -5
  75. package/dist/{hook-7INHBIR6.js → hook-B4JO2X57.js} +8 -8
  76. package/dist/{hydrate-RRASKNTO.js → hydrate-IJEKNZIP.js} +5 -5
  77. package/dist/{init-BPQTPNQ4.js → init-UJVOUDJI.js} +9 -9
  78. package/dist/{install-skills-KSLTHRHH.js → install-skills-FV2L5QHE.js} +5 -5
  79. package/dist/install-skills-bin.js +4 -4
  80. package/dist/{keep-G4WED2HV.js → keep-PKXGFZO2.js} +7 -7
  81. package/dist/{list-XVLFF6AY.js → list-VYQ3QE2H.js} +5 -5
  82. package/dist/{move-UXB5XDIY.js → move-IAZY23ZX.js} +12 -12
  83. package/dist/{note-3JZISZMY.js → note-6HQUKUYY.js} +7 -7
  84. package/dist/{overlaps-5VSNWHEA.js → overlaps-CGP3RJOW.js} +10 -10
  85. package/dist/{pin-QJZZZETK.js → pin-PAWGQ4Q2.js} +7 -7
  86. package/dist/{pr-P5JHMUIS.js → pr-OJOGE3A3.js} +17 -17
  87. package/dist/{prune-7VM47E6R.js → prune-42MS36OR.js} +24 -24
  88. package/dist/{pty-host-VOE63H3Q.js → pty-host-EAWW62U4.js} +12 -12
  89. package/dist/{read-Y75YWFMD.js → read-ATNCW4KH.js} +7 -7
  90. package/dist/{recent-O67MPZAU.js → recent-MTBFQT36.js} +15 -13
  91. package/dist/recent-MTBFQT36.js.map +1 -0
  92. package/dist/{remove-L7UKL4HS.js → remove-GLDJOKUI.js} +25 -25
  93. package/dist/{report-F2ASNP5G.js → report-AK7Z2Y4S.js} +6 -6
  94. package/dist/{restart-QJPCIHLM.js → restart-DEPDGEZB.js} +7 -7
  95. package/dist/{resume-6GHK46FG.js → resume-C2QPKKFN.js} +15 -13
  96. package/dist/resume-C2QPKKFN.js.map +1 -0
  97. package/dist/{review-XUWVO4XU.js → review-RYAGH3PY.js} +6 -6
  98. package/dist/{run-XHU4OPHL.js → run-WNP2SMNW.js} +5 -5
  99. package/dist/{screen-BE5IFYMV.js → screen-P746M4F2.js} +7 -7
  100. package/dist/{search-AHBK3Q6S.js → search-XQ2WMK5X.js} +5 -5
  101. package/dist/{section-VHRFW7OS.js → section-Q7TPOV7U.js} +7 -7
  102. package/dist/{send-QN56VR4Q.js → send-EGG23J2B.js} +8 -8
  103. package/dist/{sessions-36NA666U.js → sessions-2NNCWIND.js} +21 -21
  104. package/dist/{show-5YRGL7E2.js → show-KSMC7AJL.js} +6 -6
  105. package/dist/{snooze-YQAIVXJ3.js → snooze-4LVYUQEX.js} +7 -7
  106. package/dist/{start-RYQVC4AV.js → start-YKLLXW3L.js} +7 -7
  107. package/dist/{status-IJARRSRU.js → status-4HGP4ZEF.js} +8 -8
  108. package/dist/{stop-XUYL3ICW.js → stop-YBQL6NFF.js} +7 -7
  109. package/dist/{sync-ZGU3G5OD.js → sync-DUXN2MFJ.js} +24 -24
  110. package/dist/{time-AQ3HEFPA.js → time-Q42HPZZ3.js} +8 -8
  111. package/dist/{timesheet-DM2YY3ZP.js → timesheet-YJ6O3GUU.js} +10 -10
  112. package/dist/{tree-2YWTOJEK.js → tree-H2UYE6LH.js} +26 -24
  113. package/dist/tree-H2UYE6LH.js.map +1 -0
  114. package/dist/{update-7YGHGCW5.js → update-RGNKMRUL.js} +12 -12
  115. package/dist/{usage-IEH7X5QH.js → usage-YZRZKJ3H.js} +7 -7
  116. package/dist/{usage-ask-52X2RMQC.js → usage-ask-BYPNLA2B.js} +2 -2
  117. package/dist/{version-6A3FWFQR.js → version-4IOMOIDP.js} +3 -3
  118. package/dist/{wait-I4UVNBU2.js → wait-YOHPFWVJ.js} +8 -8
  119. package/dist/wd-bin.js +2 -2
  120. package/dist/web/assets/{PtyView-BPgPdKsH.js → PtyView-CYAhB_pW.js} +2 -2
  121. package/dist/web/assets/{PtyView-BPgPdKsH.js.map → PtyView-CYAhB_pW.js.map} +1 -1
  122. package/dist/web/assets/{index-fsWlaZJc.js → index-iBmmgBZv.js} +4 -4
  123. package/dist/web/assets/{index-fsWlaZJc.js.map → index-iBmmgBZv.js.map} +1 -1
  124. package/dist/web/index.html +1 -1
  125. package/dist/{web-W3YHTTSV.js → web-Q672AIMZ.js} +347 -293
  126. package/dist/web-Q672AIMZ.js.map +1 -0
  127. package/npm-shrinkwrap.json +2 -2
  128. package/package.json +1 -1
  129. package/dist/chunk-J4CEJOSI.js.map +0 -1
  130. package/dist/chunk-QWD76K3E.js.map +0 -1
  131. package/dist/chunk-TJ5XUAJK.js +0 -9
  132. package/dist/chunk-YQSWVHKK.js.map +0 -1
  133. package/dist/recent-O67MPZAU.js.map +0 -1
  134. package/dist/resume-6GHK46FG.js.map +0 -1
  135. package/dist/tree-2YWTOJEK.js.map +0 -1
  136. package/dist/web-W3YHTTSV.js.map +0 -1
  137. /package/dist/{account-XM6AGLTP.js.map → account-J55P3HXH.js.map} +0 -0
  138. /package/dist/{add-repo-Q2QRLPCY.js.map → add-repo-ALVEGU25.js.map} +0 -0
  139. /package/dist/{answer-EN2SUUMI.js.map → answer-CI2SPQQL.js.map} +0 -0
  140. /package/dist/{attach-WYSTXYA7.js.map → attach-7LBIFBLX.js.map} +0 -0
  141. /package/dist/{block-O5XC4JSQ.js.map → block-TVIYWRJ5.js.map} +0 -0
  142. /package/dist/{broadcast-MT77AQG5.js.map → broadcast-GZNMZFOY.js.map} +0 -0
  143. /package/dist/{catchup-WNXY4QRC.js.map → catchup-ZURJI6BF.js.map} +0 -0
  144. /package/dist/{child-4OQQ4RMP.js.map → child-K6YYF6MQ.js.map} +0 -0
  145. /package/dist/{chunk-MHKDX7CD.js.map → chunk-23QLXVH6.js.map} +0 -0
  146. /package/dist/{chunk-OHX7WKZU.js.map → chunk-4QMWNAEJ.js.map} +0 -0
  147. /package/dist/{chunk-MD4G7DIO.js.map → chunk-5FIUVBUC.js.map} +0 -0
  148. /package/dist/{chunk-XZF526OU.js.map → chunk-5P27YL64.js.map} +0 -0
  149. /package/dist/{chunk-RDRQDE6J.js.map → chunk-6Y3VLCKA.js.map} +0 -0
  150. /package/dist/{chunk-B4VQXZV4.js.map → chunk-7Q5PBXF6.js.map} +0 -0
  151. /package/dist/{chunk-ZWD3QJLP.js.map → chunk-7ZOY2QQN.js.map} +0 -0
  152. /package/dist/{chunk-VPFWY2GG.js.map → chunk-AITL3JYB.js.map} +0 -0
  153. /package/dist/{chunk-SLA7CB3C.js.map → chunk-AIYZJ7XD.js.map} +0 -0
  154. /package/dist/{chunk-VT6FJG3P.js.map → chunk-ATQB6PTV.js.map} +0 -0
  155. /package/dist/{chunk-EXNRUU7Z.js.map → chunk-B2WV5RAL.js.map} +0 -0
  156. /package/dist/{chunk-LVRV5UED.js.map → chunk-CA56ETYX.js.map} +0 -0
  157. /package/dist/{chunk-MRMFJQZI.js.map → chunk-CMRTNTMU.js.map} +0 -0
  158. /package/dist/{chunk-66OWGZAF.js.map → chunk-D2SVBU7R.js.map} +0 -0
  159. /package/dist/{chunk-HF3ZGAW7.js.map → chunk-DC73NF67.js.map} +0 -0
  160. /package/dist/{chunk-Z52GYYGA.js.map → chunk-DCENKA6E.js.map} +0 -0
  161. /package/dist/{chunk-ORBZDEPN.js.map → chunk-DF4GOVDE.js.map} +0 -0
  162. /package/dist/{chunk-R4DGGYME.js.map → chunk-EA4C6TVY.js.map} +0 -0
  163. /package/dist/{chunk-JBQOBCH4.js.map → chunk-EEHPZMS3.js.map} +0 -0
  164. /package/dist/{chunk-7TAPYCLF.js.map → chunk-EVTMZ5IH.js.map} +0 -0
  165. /package/dist/{chunk-TJ5XUAJK.js.map → chunk-EXZ4A6VJ.js.map} +0 -0
  166. /package/dist/{chunk-JATQW6OX.js.map → chunk-EYJ42LDG.js.map} +0 -0
  167. /package/dist/{chunk-TZ4BIOMS.js.map → chunk-F4UIKOU6.js.map} +0 -0
  168. /package/dist/{chunk-HF4VUIGE.js.map → chunk-FGBLFF4O.js.map} +0 -0
  169. /package/dist/{chunk-QAAYE6IY.js.map → chunk-FV7BSQPQ.js.map} +0 -0
  170. /package/dist/{chunk-ZU36UJVG.js.map → chunk-G4T2HGLJ.js.map} +0 -0
  171. /package/dist/{chunk-YYFYCOGY.js.map → chunk-GNERWNZY.js.map} +0 -0
  172. /package/dist/{chunk-VRMALBZK.js.map → chunk-GQ5WECPJ.js.map} +0 -0
  173. /package/dist/{chunk-WANJYVUP.js.map → chunk-IU6LA6EB.js.map} +0 -0
  174. /package/dist/{chunk-EH4H2I72.js.map → chunk-KU3TQAA7.js.map} +0 -0
  175. /package/dist/{chunk-WFKL2SJ3.js.map → chunk-LV5JRLBM.js.map} +0 -0
  176. /package/dist/{chunk-RE6WWXD6.js.map → chunk-NOQA7MJ4.js.map} +0 -0
  177. /package/dist/{chunk-I6GXPPEH.js.map → chunk-NYGKSOQ4.js.map} +0 -0
  178. /package/dist/{chunk-GGBFSQEX.js.map → chunk-OCUUM755.js.map} +0 -0
  179. /package/dist/{chunk-XYDGDIGZ.js.map → chunk-PUJSLL6R.js.map} +0 -0
  180. /package/dist/{chunk-T4Y2Z6HB.js.map → chunk-Q2B3NUSM.js.map} +0 -0
  181. /package/dist/{chunk-VOHPXD2P.js.map → chunk-QNOJOZYK.js.map} +0 -0
  182. /package/dist/{chunk-WDKHEFR6.js.map → chunk-QOLHDDM2.js.map} +0 -0
  183. /package/dist/{chunk-KSG6RRGI.js.map → chunk-RLPC3YKZ.js.map} +0 -0
  184. /package/dist/{chunk-5C6N447O.js.map → chunk-RNPNBGVX.js.map} +0 -0
  185. /package/dist/{chunk-GRHVKD2K.js.map → chunk-RTCTD5PJ.js.map} +0 -0
  186. /package/dist/{chunk-5TW5NKYZ.js.map → chunk-SDYY5MHW.js.map} +0 -0
  187. /package/dist/{chunk-4VM6GMMI.js.map → chunk-TOMDOA4P.js.map} +0 -0
  188. /package/dist/{chunk-NHDZ3ECC.js.map → chunk-UAF2YFLZ.js.map} +0 -0
  189. /package/dist/{chunk-DLV7TRON.js.map → chunk-USENBMUV.js.map} +0 -0
  190. /package/dist/{chunk-OOFCBN43.js.map → chunk-YO3BNAAK.js.map} +0 -0
  191. /package/dist/{chunk-P3QIN44Y.js.map → chunk-Z4FWXDJG.js.map} +0 -0
  192. /package/dist/{chunk-E5N4CJDI.js.map → chunk-Z4P23XG3.js.map} +0 -0
  193. /package/dist/{chunk-4AAFXLXN.js.map → chunk-ZO7TF5OL.js.map} +0 -0
  194. /package/dist/{chunk-RFE3HK2L.js.map → chunk-ZTWZS5RK.js.map} +0 -0
  195. /package/dist/{cleanup-OZFN7I2N.js.map → cleanup-G4WQACD6.js.map} +0 -0
  196. /package/dist/{cli-RA5CKMTR.js.map → cli-OPORB5PF.js.map} +0 -0
  197. /package/dist/{color-47LQGPVK.js.map → color-C223W3Z6.js.map} +0 -0
  198. /package/dist/{config-U7RPODOW.js.map → config-KQYXQCQA.js.map} +0 -0
  199. /package/dist/{coordinate-UO432TPP.js.map → coordinate-4E5GIMC6.js.map} +0 -0
  200. /package/dist/{diff-TXGP7XHY.js.map → diff-HEOLTXO2.js.map} +0 -0
  201. /package/dist/{digest-OEU7P5GQ.js.map → digest-GYF4YLUH.js.map} +0 -0
  202. /package/dist/{fork-PBSBRV6J.js.map → fork-B35ONP3Z.js.map} +0 -0
  203. /package/dist/{history-WF7Z54MS.js.map → history-25DNQKKC.js.map} +0 -0
  204. /package/dist/{hook-7INHBIR6.js.map → hook-B4JO2X57.js.map} +0 -0
  205. /package/dist/{hydrate-RRASKNTO.js.map → hydrate-IJEKNZIP.js.map} +0 -0
  206. /package/dist/{init-BPQTPNQ4.js.map → init-UJVOUDJI.js.map} +0 -0
  207. /package/dist/{install-skills-KSLTHRHH.js.map → install-skills-FV2L5QHE.js.map} +0 -0
  208. /package/dist/{keep-G4WED2HV.js.map → keep-PKXGFZO2.js.map} +0 -0
  209. /package/dist/{list-XVLFF6AY.js.map → list-VYQ3QE2H.js.map} +0 -0
  210. /package/dist/{move-UXB5XDIY.js.map → move-IAZY23ZX.js.map} +0 -0
  211. /package/dist/{note-3JZISZMY.js.map → note-6HQUKUYY.js.map} +0 -0
  212. /package/dist/{overlaps-5VSNWHEA.js.map → overlaps-CGP3RJOW.js.map} +0 -0
  213. /package/dist/{pin-QJZZZETK.js.map → pin-PAWGQ4Q2.js.map} +0 -0
  214. /package/dist/{pr-P5JHMUIS.js.map → pr-OJOGE3A3.js.map} +0 -0
  215. /package/dist/{prune-7VM47E6R.js.map → prune-42MS36OR.js.map} +0 -0
  216. /package/dist/{pty-host-VOE63H3Q.js.map → pty-host-EAWW62U4.js.map} +0 -0
  217. /package/dist/{read-Y75YWFMD.js.map → read-ATNCW4KH.js.map} +0 -0
  218. /package/dist/{remove-L7UKL4HS.js.map → remove-GLDJOKUI.js.map} +0 -0
  219. /package/dist/{report-F2ASNP5G.js.map → report-AK7Z2Y4S.js.map} +0 -0
  220. /package/dist/{restart-QJPCIHLM.js.map → restart-DEPDGEZB.js.map} +0 -0
  221. /package/dist/{review-XUWVO4XU.js.map → review-RYAGH3PY.js.map} +0 -0
  222. /package/dist/{run-XHU4OPHL.js.map → run-WNP2SMNW.js.map} +0 -0
  223. /package/dist/{screen-BE5IFYMV.js.map → screen-P746M4F2.js.map} +0 -0
  224. /package/dist/{search-AHBK3Q6S.js.map → search-XQ2WMK5X.js.map} +0 -0
  225. /package/dist/{section-VHRFW7OS.js.map → section-Q7TPOV7U.js.map} +0 -0
  226. /package/dist/{send-QN56VR4Q.js.map → send-EGG23J2B.js.map} +0 -0
  227. /package/dist/{sessions-36NA666U.js.map → sessions-2NNCWIND.js.map} +0 -0
  228. /package/dist/{show-5YRGL7E2.js.map → show-KSMC7AJL.js.map} +0 -0
  229. /package/dist/{snooze-YQAIVXJ3.js.map → snooze-4LVYUQEX.js.map} +0 -0
  230. /package/dist/{start-RYQVC4AV.js.map → start-YKLLXW3L.js.map} +0 -0
  231. /package/dist/{status-IJARRSRU.js.map → status-4HGP4ZEF.js.map} +0 -0
  232. /package/dist/{stop-XUYL3ICW.js.map → stop-YBQL6NFF.js.map} +0 -0
  233. /package/dist/{sync-ZGU3G5OD.js.map → sync-DUXN2MFJ.js.map} +0 -0
  234. /package/dist/{time-AQ3HEFPA.js.map → time-Q42HPZZ3.js.map} +0 -0
  235. /package/dist/{timesheet-DM2YY3ZP.js.map → timesheet-YJ6O3GUU.js.map} +0 -0
  236. /package/dist/{update-7YGHGCW5.js.map → update-RGNKMRUL.js.map} +0 -0
  237. /package/dist/{usage-IEH7X5QH.js.map → usage-YZRZKJ3H.js.map} +0 -0
  238. /package/dist/{usage-ask-52X2RMQC.js.map → usage-ask-BYPNLA2B.js.map} +0 -0
  239. /package/dist/{version-6A3FWFQR.js.map → version-4IOMOIDP.js.map} +0 -0
  240. /package/dist/{wait-I4UVNBU2.js.map → wait-YOHPFWVJ.js.map} +0 -0
@@ -5,52 +5,52 @@ import {
5
5
  } from "./chunk-ABQYKTG4.js";
6
6
  import {
7
7
  defaultCleanupDeps
8
- } from "./chunk-MRMFJQZI.js";
9
- import "./chunk-MHKDX7CD.js";
8
+ } from "./chunk-CMRTNTMU.js";
9
+ import "./chunk-23QLXVH6.js";
10
10
  import {
11
11
  applyCleanup,
12
12
  scanCleanup
13
13
  } from "./chunk-AKMPF72Y.js";
14
- import "./chunk-LVRV5UED.js";
15
- import "./chunk-HF3ZGAW7.js";
14
+ import "./chunk-CA56ETYX.js";
15
+ import "./chunk-DC73NF67.js";
16
16
  import "./chunk-ICEP4WAK.js";
17
- import "./chunk-J4CEJOSI.js";
18
- import "./chunk-VRMALBZK.js";
19
- import "./chunk-GGBFSQEX.js";
20
- import "./chunk-OHX7WKZU.js";
21
- import "./chunk-DLV7TRON.js";
22
- import "./chunk-WANJYVUP.js";
17
+ import "./chunk-WRDULHAN.js";
18
+ import "./chunk-GQ5WECPJ.js";
19
+ import "./chunk-OCUUM755.js";
20
+ import "./chunk-4QMWNAEJ.js";
21
+ import "./chunk-USENBMUV.js";
22
+ import "./chunk-IU6LA6EB.js";
23
23
  import "./chunk-Y7PWSACJ.js";
24
24
  import "./chunk-EORL2V7P.js";
25
- import "./chunk-RDRQDE6J.js";
26
- import "./chunk-XYDGDIGZ.js";
27
- import "./chunk-VOHPXD2P.js";
25
+ import "./chunk-6Y3VLCKA.js";
26
+ import "./chunk-PUJSLL6R.js";
27
+ import "./chunk-QNOJOZYK.js";
28
28
  import "./chunk-SJBEIYLK.js";
29
- import "./chunk-4VM6GMMI.js";
29
+ import "./chunk-TOMDOA4P.js";
30
30
  import "./chunk-7E5XPDKX.js";
31
- import "./chunk-QAAYE6IY.js";
32
- import "./chunk-WFKL2SJ3.js";
31
+ import "./chunk-FV7BSQPQ.js";
32
+ import "./chunk-LV5JRLBM.js";
33
33
  import "./chunk-ZSHWP2VS.js";
34
34
  import "./chunk-UPS7NHKI.js";
35
35
  import "./chunk-HUXS3VAI.js";
36
36
  import "./chunk-LM2T5OR3.js";
37
- import "./chunk-SLA7CB3C.js";
38
- import "./chunk-P3QIN44Y.js";
39
- import "./chunk-RE6WWXD6.js";
37
+ import "./chunk-AIYZJ7XD.js";
38
+ import "./chunk-Z4FWXDJG.js";
39
+ import "./chunk-NOQA7MJ4.js";
40
40
  import "./chunk-FGPXMAYU.js";
41
41
  import "./chunk-MJIYIMPI.js";
42
42
  import "./chunk-GNIYYXQX.js";
43
43
  import "./chunk-T5GJVUSL.js";
44
44
  import "./chunk-XBWS77S2.js";
45
45
  import "./chunk-4CXUVBOD.js";
46
- import "./chunk-VPFWY2GG.js";
46
+ import "./chunk-AITL3JYB.js";
47
47
  import "./chunk-NEJVK5CF.js";
48
48
  import "./chunk-QGUBOOEN.js";
49
49
  import "./chunk-LNHSBM4L.js";
50
- import "./chunk-QWD76K3E.js";
50
+ import "./chunk-KQMHGEI2.js";
51
51
  import "./chunk-KGHWHAVF.js";
52
- import "./chunk-HF4VUIGE.js";
53
- import "./chunk-YQSWVHKK.js";
52
+ import "./chunk-FGBLFF4O.js";
53
+ import "./chunk-ED6YLB4S.js";
54
54
  import "./chunk-IPHADNF5.js";
55
55
  import "./chunk-JYWX2N5W.js";
56
56
  import "./chunk-Z6ACV5ZQ.js";
@@ -124,4 +124,4 @@ var syncCommand = {
124
124
  export {
125
125
  syncCommand
126
126
  };
127
- //# sourceMappingURL=sync-ZGU3G5OD.js.map
127
+ //# sourceMappingURL=sync-DUXN2MFJ.js.map
@@ -7,19 +7,19 @@ import {
7
7
  } from "./chunk-WIXY4EDH.js";
8
8
  import {
9
9
  sessionWorkTime
10
- } from "./chunk-R4DGGYME.js";
10
+ } from "./chunk-EA4C6TVY.js";
11
11
  import {
12
12
  sessionFromArgs,
13
13
  sessionPositionals
14
- } from "./chunk-4AAFXLXN.js";
14
+ } from "./chunk-ZO7TF5OL.js";
15
15
  import "./chunk-6AQRYLOB.js";
16
- import "./chunk-WFKL2SJ3.js";
16
+ import "./chunk-LV5JRLBM.js";
17
17
  import "./chunk-ZSHWP2VS.js";
18
18
  import "./chunk-UPS7NHKI.js";
19
19
  import "./chunk-HUXS3VAI.js";
20
20
  import {
21
21
  loadHistory
22
- } from "./chunk-VPFWY2GG.js";
22
+ } from "./chunk-AITL3JYB.js";
23
23
  import {
24
24
  dayKey,
25
25
  formatWorked,
@@ -28,10 +28,10 @@ import {
28
28
  import {
29
29
  sessionIdFor
30
30
  } from "./chunk-QGUBOOEN.js";
31
- import "./chunk-QWD76K3E.js";
31
+ import "./chunk-KQMHGEI2.js";
32
32
  import "./chunk-KGHWHAVF.js";
33
- import "./chunk-HF4VUIGE.js";
34
- import "./chunk-YQSWVHKK.js";
33
+ import "./chunk-FGBLFF4O.js";
34
+ import "./chunk-ED6YLB4S.js";
35
35
  import "./chunk-Z6ACV5ZQ.js";
36
36
  import "./chunk-JUGF3YE7.js";
37
37
  import "./chunk-HK6AZQ5Z.js";
@@ -124,4 +124,4 @@ var timeCommand = {
124
124
  export {
125
125
  timeCommand
126
126
  };
127
- //# sourceMappingURL=time-AQ3HEFPA.js.map
127
+ //# sourceMappingURL=time-Q42HPZZ3.js.map
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  createMonthGather,
4
4
  defaultTimeDeps
5
- } from "./chunk-MD4G7DIO.js";
6
- import "./chunk-R4DGGYME.js";
7
- import "./chunk-XYDGDIGZ.js";
8
- import "./chunk-VOHPXD2P.js";
5
+ } from "./chunk-5FIUVBUC.js";
6
+ import "./chunk-EA4C6TVY.js";
7
+ import "./chunk-PUJSLL6R.js";
8
+ import "./chunk-QNOJOZYK.js";
9
9
  import {
10
10
  buildDay,
11
11
  dayArg,
@@ -26,19 +26,19 @@ import "./chunk-JVE2JFLV.js";
26
26
  import {
27
27
  callWorkWeb
28
28
  } from "./chunk-SZAD5U3J.js";
29
- import "./chunk-RE6WWXD6.js";
29
+ import "./chunk-NOQA7MJ4.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-VPFWY2GG.js";
35
+ import "./chunk-AITL3JYB.js";
36
36
  import "./chunk-NEJVK5CF.js";
37
37
  import "./chunk-QGUBOOEN.js";
38
- import "./chunk-QWD76K3E.js";
38
+ import "./chunk-KQMHGEI2.js";
39
39
  import "./chunk-KGHWHAVF.js";
40
- import "./chunk-HF4VUIGE.js";
41
- import "./chunk-YQSWVHKK.js";
40
+ import "./chunk-FGBLFF4O.js";
41
+ import "./chunk-ED6YLB4S.js";
42
42
  import "./chunk-JYWX2N5W.js";
43
43
  import "./chunk-Z6ACV5ZQ.js";
44
44
  import "./chunk-JUGF3YE7.js";
@@ -207,4 +207,4 @@ var timesheetCommand = {
207
207
  export {
208
208
  timesheetCommand
209
209
  };
210
- //# sourceMappingURL=timesheet-DM2YY3ZP.js.map
210
+ //# sourceMappingURL=timesheet-YJ6O3GUU.js.map
@@ -4,55 +4,55 @@ import {
4
4
  openInLeftovers,
5
5
  resolvePrToStart,
6
6
  workOnPrPrompt
7
- } from "./chunk-EH4H2I72.js";
7
+ } from "./chunk-KU3TQAA7.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-I6GXPPEH.js";
14
+ } from "./chunk-NYGKSOQ4.js";
15
15
  import "./chunk-FZHFD2AY.js";
16
- import "./chunk-ZWD3QJLP.js";
16
+ import "./chunk-7ZOY2QQN.js";
17
17
  import "./chunk-ICEP4WAK.js";
18
18
  import {
19
19
  attachSession
20
- } from "./chunk-B4VQXZV4.js";
20
+ } from "./chunk-7Q5PBXF6.js";
21
21
  import {
22
22
  SETUP_WARNINGS
23
- } from "./chunk-WDKHEFR6.js";
24
- import "./chunk-J4CEJOSI.js";
25
- import "./chunk-VRMALBZK.js";
26
- import "./chunk-GGBFSQEX.js";
27
- import "./chunk-OHX7WKZU.js";
28
- import "./chunk-DLV7TRON.js";
23
+ } from "./chunk-QOLHDDM2.js";
24
+ import "./chunk-WRDULHAN.js";
25
+ import "./chunk-GQ5WECPJ.js";
26
+ import "./chunk-OCUUM755.js";
27
+ import "./chunk-4QMWNAEJ.js";
28
+ import "./chunk-USENBMUV.js";
29
29
  import {
30
30
  BaseSpecError,
31
31
  isEmptyBaseSpec,
32
32
  openBaseCheckout,
33
33
  parseBaseSpec,
34
34
  setupWorktree
35
- } from "./chunk-WANJYVUP.js";
35
+ } from "./chunk-IU6LA6EB.js";
36
36
  import "./chunk-Y7PWSACJ.js";
37
37
  import "./chunk-EORL2V7P.js";
38
38
  import "./chunk-SJBEIYLK.js";
39
- import "./chunk-4VM6GMMI.js";
39
+ import "./chunk-TOMDOA4P.js";
40
40
  import "./chunk-7E5XPDKX.js";
41
- import "./chunk-QAAYE6IY.js";
42
- import "./chunk-WFKL2SJ3.js";
41
+ import "./chunk-FV7BSQPQ.js";
42
+ import "./chunk-LV5JRLBM.js";
43
43
  import "./chunk-ZSHWP2VS.js";
44
44
  import "./chunk-UPS7NHKI.js";
45
45
  import "./chunk-HUXS3VAI.js";
46
46
  import "./chunk-LM2T5OR3.js";
47
- import "./chunk-SLA7CB3C.js";
48
- import "./chunk-P3QIN44Y.js";
49
- import "./chunk-RE6WWXD6.js";
47
+ import "./chunk-AIYZJ7XD.js";
48
+ import "./chunk-Z4FWXDJG.js";
49
+ import "./chunk-NOQA7MJ4.js";
50
50
  import "./chunk-FGPXMAYU.js";
51
51
  import "./chunk-MJIYIMPI.js";
52
52
  import {
53
53
  launchAi,
54
54
  openVSCode
55
- } from "./chunk-GRHVKD2K.js";
55
+ } from "./chunk-RTCTD5PJ.js";
56
56
  import "./chunk-GNIYYXQX.js";
57
57
  import "./chunk-T5GJVUSL.js";
58
58
  import "./chunk-XBWS77S2.js";
@@ -60,20 +60,21 @@ import "./chunk-4CXUVBOD.js";
60
60
  import {
61
61
  findSession,
62
62
  loadHistory
63
- } from "./chunk-VPFWY2GG.js";
63
+ } from "./chunk-AITL3JYB.js";
64
64
  import "./chunk-NEJVK5CF.js";
65
65
  import "./chunk-QGUBOOEN.js";
66
66
  import "./chunk-LNHSBM4L.js";
67
67
  import {
68
68
  agentFor,
69
69
  ownsBranch,
70
- sessionToolFor
71
- } from "./chunk-QWD76K3E.js";
70
+ sessionToolFor,
71
+ trustAgentFolder
72
+ } from "./chunk-KQMHGEI2.js";
72
73
  import "./chunk-KGHWHAVF.js";
73
- import "./chunk-HF4VUIGE.js";
74
+ import "./chunk-FGBLFF4O.js";
74
75
  import {
75
76
  envArgs
76
- } from "./chunk-YQSWVHKK.js";
77
+ } from "./chunk-ED6YLB4S.js";
77
78
  import {
78
79
  getAllTargetNames,
79
80
  resolveFromCwd,
@@ -215,6 +216,7 @@ var treeCommand = {
215
216
  console.log(chalk.gray(`Continuing the previous ${tool.cmd} conversation (--fresh starts a new one).`));
216
217
  }
217
218
  clearLaunchedUnsafeWhenIdle(sessionKey.target, sessionKey.branch);
219
+ trustAgentFolder(agent, own ?? null, dir);
218
220
  console.log(`Starting ${tool.cmd}...`);
219
221
  launchAi(dir, sessionToolFor(tool), { initialPrompt, resume }, port, ...envArgs(agent.launch.env?.(own ?? null)));
220
222
  };
@@ -334,4 +336,4 @@ var treeCommand = {
334
336
  export {
335
337
  treeCommand
336
338
  };
337
- //# sourceMappingURL=tree-2YWTOJEK.js.map
339
+ //# sourceMappingURL=tree-H2UYE6LH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/tree.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor, sessionToolFor, trustAgentFolder } 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 trustAgentFolder(agent, own ?? null, dir);\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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,WAAW;AAmBX,IAAM,cAA6B;AAAA,EACxC,SAAS,CAAC,0BAA0B,qBAAqB;AAAA,EACzD,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,eAAe,IAAI,EACnB,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,OAAO,QAAQ;AAAA,IACd,UAAU;AAAA,IACV,MAA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AAc,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,33 +1,33 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  updateSession
4
- } from "./chunk-EXNRUU7Z.js";
5
- import "./chunk-RDRQDE6J.js";
4
+ } from "./chunk-B2WV5RAL.js";
5
+ import "./chunk-6Y3VLCKA.js";
6
6
  import {
7
7
  sessionFromArgs,
8
8
  sessionPositionals
9
- } from "./chunk-4AAFXLXN.js";
9
+ } from "./chunk-ZO7TF5OL.js";
10
10
  import "./chunk-6AQRYLOB.js";
11
- import "./chunk-WFKL2SJ3.js";
11
+ import "./chunk-LV5JRLBM.js";
12
12
  import "./chunk-ZSHWP2VS.js";
13
13
  import "./chunk-UPS7NHKI.js";
14
14
  import "./chunk-HUXS3VAI.js";
15
- import "./chunk-SLA7CB3C.js";
16
- import "./chunk-P3QIN44Y.js";
17
- import "./chunk-RE6WWXD6.js";
15
+ import "./chunk-AIYZJ7XD.js";
16
+ import "./chunk-Z4FWXDJG.js";
17
+ import "./chunk-NOQA7MJ4.js";
18
18
  import "./chunk-FGPXMAYU.js";
19
19
  import "./chunk-MJIYIMPI.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-VPFWY2GG.js";
24
+ import "./chunk-AITL3JYB.js";
25
25
  import "./chunk-NEJVK5CF.js";
26
26
  import "./chunk-QGUBOOEN.js";
27
- import "./chunk-QWD76K3E.js";
27
+ import "./chunk-KQMHGEI2.js";
28
28
  import "./chunk-KGHWHAVF.js";
29
- import "./chunk-HF4VUIGE.js";
30
- import "./chunk-YQSWVHKK.js";
29
+ import "./chunk-FGBLFF4O.js";
30
+ import "./chunk-ED6YLB4S.js";
31
31
  import "./chunk-Z6ACV5ZQ.js";
32
32
  import "./chunk-JUGF3YE7.js";
33
33
  import "./chunk-HK6AZQ5Z.js";
@@ -75,4 +75,4 @@ var updateCommand = {
75
75
  export {
76
76
  updateCommand
77
77
  };
78
- //# sourceMappingURL=update-7YGHGCW5.js.map
78
+ //# sourceMappingURL=update-RGNKMRUL.js.map
@@ -4,21 +4,21 @@ import {
4
4
  realUsageDeps,
5
5
  refreshUsage,
6
6
  restoreAgentUsage
7
- } from "./chunk-ZU36UJVG.js";
8
- import "./chunk-R4DGGYME.js";
7
+ } from "./chunk-G4T2HGLJ.js";
8
+ import "./chunk-EA4C6TVY.js";
9
9
  import {
10
10
  formatTokens,
11
11
  resetPhrase
12
12
  } from "./chunk-LK7HJGUC.js";
13
- import "./chunk-VPFWY2GG.js";
13
+ import "./chunk-AITL3JYB.js";
14
14
  import "./chunk-NEJVK5CF.js";
15
15
  import "./chunk-QGUBOOEN.js";
16
16
  import {
17
17
  knownAgents
18
- } from "./chunk-QWD76K3E.js";
18
+ } from "./chunk-KQMHGEI2.js";
19
19
  import "./chunk-KGHWHAVF.js";
20
- import "./chunk-HF4VUIGE.js";
21
- import "./chunk-YQSWVHKK.js";
20
+ import "./chunk-FGBLFF4O.js";
21
+ import "./chunk-ED6YLB4S.js";
22
22
  import "./chunk-Z6ACV5ZQ.js";
23
23
  import "./chunk-JUGF3YE7.js";
24
24
  import "./chunk-HK6AZQ5Z.js";
@@ -91,4 +91,4 @@ export {
91
91
  usageCommand,
92
92
  usageLines
93
93
  };
94
- //# sourceMappingURL=usage-IEH7X5QH.js.map
94
+ //# sourceMappingURL=usage-YZRZKJ3H.js.map
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  applyEnvDelta,
7
7
  internalRunEnv
8
- } from "./chunk-YQSWVHKK.js";
8
+ } from "./chunk-ED6YLB4S.js";
9
9
  import {
10
10
  recordReading
11
11
  } from "./chunk-JUGF3YE7.js";
@@ -173,4 +173,4 @@ export {
173
173
  parseUsageAnswer,
174
174
  resetUsageAsks
175
175
  };
176
- //# sourceMappingURL=usage-ask-52X2RMQC.js.map
176
+ //# sourceMappingURL=usage-ask-BYPNLA2B.js.map
@@ -9,8 +9,8 @@ import {
9
9
  } from "./chunk-4CXUVBOD.js";
10
10
  import {
11
11
  READ_ONLY_MIN_VERSION
12
- } from "./chunk-HF4VUIGE.js";
13
- import "./chunk-YQSWVHKK.js";
12
+ } from "./chunk-FGBLFF4O.js";
13
+ import "./chunk-ED6YLB4S.js";
14
14
  import "./chunk-HI674QZF.js";
15
15
  import "./chunk-3ZPVKUYD.js";
16
16
  import {
@@ -114,4 +114,4 @@ export {
114
114
  parseClaudeVersion,
115
115
  runVersion
116
116
  };
117
- //# sourceMappingURL=version-6A3FWFQR.js.map
117
+ //# sourceMappingURL=version-4IOMOIDP.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  cliWaitDeps
4
- } from "./chunk-KSG6RRGI.js";
4
+ } from "./chunk-RLPC3YKZ.js";
5
5
  import {
6
6
  parseDuration,
7
7
  waitForTurn
@@ -10,21 +10,21 @@ import "./chunk-FZHFD2AY.js";
10
10
  import {
11
11
  sessionFromArgs,
12
12
  sessionPositionals
13
- } from "./chunk-4AAFXLXN.js";
13
+ } from "./chunk-ZO7TF5OL.js";
14
14
  import "./chunk-6AQRYLOB.js";
15
- import "./chunk-WFKL2SJ3.js";
15
+ import "./chunk-LV5JRLBM.js";
16
16
  import "./chunk-ZSHWP2VS.js";
17
17
  import "./chunk-UPS7NHKI.js";
18
18
  import "./chunk-HUXS3VAI.js";
19
- import "./chunk-VPFWY2GG.js";
19
+ import "./chunk-AITL3JYB.js";
20
20
  import "./chunk-NEJVK5CF.js";
21
21
  import {
22
22
  sessionIdFor
23
23
  } from "./chunk-QGUBOOEN.js";
24
- import "./chunk-QWD76K3E.js";
24
+ import "./chunk-KQMHGEI2.js";
25
25
  import "./chunk-KGHWHAVF.js";
26
- import "./chunk-HF4VUIGE.js";
27
- import "./chunk-YQSWVHKK.js";
26
+ import "./chunk-FGBLFF4O.js";
27
+ import "./chunk-ED6YLB4S.js";
28
28
  import "./chunk-Z6ACV5ZQ.js";
29
29
  import "./chunk-JUGF3YE7.js";
30
30
  import "./chunk-HK6AZQ5Z.js";
@@ -68,4 +68,4 @@ var waitCommand = {
68
68
  export {
69
69
  waitCommand
70
70
  };
71
- //# sourceMappingURL=wait-I4UVNBU2.js.map
71
+ //# sourceMappingURL=wait-YOHPFWVJ.js.map
package/dist/wd-bin.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  run
4
- } from "./chunk-7TAPYCLF.js";
4
+ } from "./chunk-EVTMZ5IH.js";
5
5
  import {
6
6
  consoleReporter
7
7
  } from "./chunk-S5HJT7CM.js";
8
- import "./chunk-TJ5XUAJK.js";
8
+ import "./chunk-EXZ4A6VJ.js";
9
9
  import "./chunk-IPHADNF5.js";
10
10
  import "./chunk-JYWX2N5W.js";
11
11
  import "./chunk-3ZPVKUYD.js";
@@ -1,4 +1,4 @@
1
- import{C as e,D as t,E as n,O as r,S as i,T as a,_ as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,m as _,n as v,o as y,p as ee,r as b,s as x,t as te,u as S,v as ne,w as re,x as C,y as ie}from"./index-fsWlaZJc.js";var w=h(r(),1),ae=t(),oe=2e3,se=20,T=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>oe?null:(E(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>oe?{arrived:t.arrived,shown:null}:(E(this.shownSamples,n),{arrived:t.arrived,shown:n})}median(){return this.samples.length?D(this.samples).median:null}reading(){return this.samples.length?{arrived:D(this.samples),shown:this.shownSamples.length?D(this.shownSamples):null}:null}};function E(e,t){e.push(t),e.length>se&&e.shift()}function D(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 ce(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 le=200,ue=100,de=class{keys=[];stalls=[];key(e){e&&this.keys.length<le&&this.keys.push({arrived:Math.round(e.arrived),shown:e.shown===null?null:Math.round(e.shown)})}stall(e,t){this.stalls.length>=ue||this.stalls.push({at:t,ms:Math.round(e.duration),blocking:e.blockingDuration===void 0?null:Math.round(e.blockingDuration),what:fe(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 fe(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 pe(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 me(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 he(e,t){let n=t.WebSocketImpl??WebSocket,r=t.askTicket??me,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 ge=[3,10,30,60];function _e(e){return e>=0&&e<ge.length?ge[e]*1e3:null}function ve(e){return e?.trim()?e.trim():`the connection closed before it started`}var ye=[2e3,1e4,6e4],be=6e5,xe=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<be),this.losses.push(e),ye[this.losses.length-1]??null}},Se=/^(\s*)([●⏺⎿])(\s)/u,Ce=/^(?:[-*+•]\s|\d+[.)]\s|#{1,6}\s|>\s|[│┃|┌└├╭╰─━])/u,we=/^(?:[-*+•]|\d+[.)])\s+/u,Te=e=>e.length-e.trimStart().length,Ee=``,De=``,Oe=``,ke=``,Ae=/[\uE000-\uE003]/gu,je=e=>e.replace(Ae,``);function Me(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 Ne=e=>Me(e,Te(je(e)));function Pe(e,t,n){let r=e.split(/\r?\n/).map(e=>{let t=e.replace(/\s+$/u,``);return Se.test(je(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=je(n),c=Ne(n),l=s.trimStart(),u=i(e)+Te(s),d=i(e)+s.length;if(o&&l&&o.end+1+(l.split(/\s/u)[0]?.length??0)>t-2&&!Ce.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=we.exec(l);o={text:(e===0?``:` `.repeat(Te(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=>je(e).trim()),c=s.length?Math.min(...s.map(e=>Te(je(e)))):0;return a.map((e,t)=>t===0?Ne(e):Me(e,Math.min(c,Te(je(e))))).join(`
1
+ import{C as e,D as t,E as n,O as r,S as i,T as a,_ as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as g,m as _,n as v,o as y,p as ee,r as b,s as x,t as te,u as S,v as ne,w as re,x as C,y as ie}from"./index-iBmmgBZv.js";var w=h(r(),1),ae=t(),oe=2e3,se=20,T=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>oe?null:(E(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>oe?{arrived:t.arrived,shown:null}:(E(this.shownSamples,n),{arrived:t.arrived,shown:n})}median(){return this.samples.length?D(this.samples).median:null}reading(){return this.samples.length?{arrived:D(this.samples),shown:this.shownSamples.length?D(this.shownSamples):null}:null}};function E(e,t){e.push(t),e.length>se&&e.shift()}function D(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 ce(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 le=200,ue=100,de=class{keys=[];stalls=[];key(e){e&&this.keys.length<le&&this.keys.push({arrived:Math.round(e.arrived),shown:e.shown===null?null:Math.round(e.shown)})}stall(e,t){this.stalls.length>=ue||this.stalls.push({at:t,ms:Math.round(e.duration),blocking:e.blockingDuration===void 0?null:Math.round(e.blockingDuration),what:fe(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 fe(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 pe(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 me(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 he(e,t){let n=t.WebSocketImpl??WebSocket,r=t.askTicket??me,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 ge=[3,10,30,60];function _e(e){return e>=0&&e<ge.length?ge[e]*1e3:null}function ve(e){return e?.trim()?e.trim():`the connection closed before it started`}var ye=[2e3,1e4,6e4],be=6e5,xe=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<be),this.losses.push(e),ye[this.losses.length-1]??null}},Se=/^(\s*)([●⏺⎿])(\s)/u,Ce=/^(?:[-*+•]\s|\d+[.)]\s|#{1,6}\s|>\s|[│┃|┌└├╭╰─━])/u,we=/^(?:[-*+•]|\d+[.)])\s+/u,Te=e=>e.length-e.trimStart().length,Ee=``,De=``,Oe=``,ke=``,Ae=/[\uE000-\uE003]/gu,je=e=>e.replace(Ae,``);function Me(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 Ne=e=>Me(e,Te(je(e)));function Pe(e,t,n){let r=e.split(/\r?\n/).map(e=>{let t=e.replace(/\s+$/u,``);return Se.test(je(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=je(n),c=Ne(n),l=s.trimStart(),u=i(e)+Te(s),d=i(e)+s.length;if(o&&l&&o.end+1+(l.split(/\s/u)[0]?.length??0)>t-2&&!Ce.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=we.exec(l);o={text:(e===0?``:` `.repeat(Te(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=>je(e).trim()),c=s.length?Math.min(...s.map(e=>Te(je(e)))):0;return a.map((e,t)=>t===0?Ne(e):Me(e,Math.min(c,Te(je(e))))).join(`
2
2
  `)}function Fe(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+=ke),l&&(n+=De),t&&(n+=Ee),r&&(n+=Oe),l=t,u=r),n+=e.ch}u&&(n+=ke),l&&(n+=De),r<t.end.y&&!a&&(n+=`
3
3
  `)}return n}function Ie(e){let t=e.getSelection(),n=e.getSelectionPosition();if(!n)return t;let r=Fe(e.buffer.active,n),i=e=>e.replace(/\r\n/gu,`
4
4
  `).replace(/[ \t]+$/gmu,``);return i(je(r))===i(t)?r:t}function Le(e){let t=v(e).replaceAll(Ee,`<b>`).replaceAll(De,`</b>`).replaceAll(Oe,`<i>`).replaceAll(ke,`</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 Re=/^\s*[│┃|].*[│┃|]\s*$/u,ze=/^\s*(?:[┌├└╭╰┏┣┗┡╞][─━┬┼┴┳╋┻┐┤┘╮╯┓┫┛┩╡═╪╤╧\s]*|\|?(?:\s*:?-{3,}:?\s*\|)+\s*:?-*:?\s*\|?)$/u,Be=e=>e.trim().replace(/^[│┃|]|[│┃|]$/gu,``).split(/[│┃|]/u).map(e=>e.trim());function Ve(e){let t=[[]],n=0;for(let r of e)ze.test(r)?(n++,t[t.length-1].length&&t.push([])):Re.test(r)&&t[t.length-1].push(Be(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 He(e){let[t,...n]=e,r=(e,t)=>`<tr>${e.map(e=>`<${t}>${v(e)}</${t}>`).join(``)}</tr>`;return`<table><thead>${r(t,`th`)}</thead><tbody>${n.map(e=>r(e,`td`)).join(``)}</tbody></table>`}function Ue(e,t,n=0){let r=Pe(e,t,n).split(`
@@ -93,4 +93,4 @@ void main() {
93
93
  `);ke=!0});let Ve=n.onData(e=>{if(ke){e===`\r`&&b(e=>e+1);return}He(e)});function He(e){ke||(Ce?(ce.send(JSON.stringify({type:`input`,data:e})),Fe.key(Ae.keySent(performance.now()))):Ee.push(e))}let We=n.cols,Ge=n.rows,Ke=(e=!1)=>{d.current&&(r.fit(),(e||n.cols!==We||n.rows!==Ge)&&(We=n.cols,Ge=n.rows,Ce&&ce.send(JSON.stringify({type:`resize`,cols:n.cols,rows:n.rows}))))},O=()=>Ke(),k=typeof ResizeObserver<`u`?new ResizeObserver(()=>Ke()):null;k?k.observe(c.current):window.addEventListener(`resize`,O),h.current=()=>{Ke(!0),n.focus()},g.current=e=>{e!==t&&(t=e,n.options.theme={...e.theme},n.options.fontFamily=e.fontFamily,n.options.fontSize=e.fontSize,n.options.lineHeight=e.lineHeight,Ke())};let qe=()=>Ke(!0);return n.textarea?.addEventListener(`focus`,qe),()=>{y=!0,clearTimeout(le),clearTimeout(ge),clearTimeout(_),n.textarea?.removeEventListener(`paste`,w,!0),n.element?.removeEventListener(`copy`,ae,!0),n.textarea?.removeEventListener(`focus`,qe),a.removeEventListener(`contextmenu`,u),a.title=``,s.dispose(),o.clear(),Te.current=null,De(null),h.current=null,g.current=null,k?.disconnect(),window.removeEventListener(`resize`,O),Ve.dispose(),Le.dispose(),clearInterval(Be),Re(),ze(),clearTimeout(Ne);try{ce.close()}catch{}n.dispose()}},[e,y]),(0,w.useEffect)(()=>{g.current?.(f)},[f]);let Me=()=>{we(!0),b(e=>e+1)};(0,w.useEffect)(()=>{if(!se||!a)return;let e=setInterval(()=>{document.visibilityState===`visible`&&Me()},Jp);return()=>clearInterval(e)},[se,a]);let Ne=async()=>{await n(`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`})&&(D.current=!0,E(null),b(e=>e+1))},Pe=t?`work tree ${t}${r?` ${r}`:``}`:`work tree <target> <branch>`,Fe=ce(le,ge,fe);return(0,$.jsxs)($.Fragment,{children:[se&&(0,$.jsxs)(`div`,{className:`wd-pty-elsewhere`,role:`status`,children:[(0,$.jsxs)(`p`,{className:`wd-pty-elsewhere-title`,children:[se.confirmed?`This session’s Claude is open in another terminal`:`This session’s Claude seems to be running in another terminal`,se.lastActivity!==null&&(0,$.jsxs)($.Fragment,{children:[` (last wrote `,Xp(se.lastActivity),`)`]}),se.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:Pe}),` (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:Ce,children:Ce?`Checking…`:`Check again`}),!se.confirmed&&(0,$.jsx)(`button`,{type:`button`,className:`wd-link-button`,onClick:()=>void Ne(),children:`It's not running — start it here…`})]})]}),(0,$.jsxs)(`div`,{className:`wd-pty-frame`,style:se?{display:`none`}:void 0,children:[(0,$.jsx)(`div`,{ref:c,className:`wd-pty-host`}),Fe&&(0,$.jsx)(`span`,{className:`wd-pty-latency`+(Fe.slow?` wd-pty-latency-slow`:``),title:Fe.title,children:Fe.text}),_!==`ready`&&!se&&!x&&(0,$.jsx)(`div`,{className:`wd-pty-connecting`,role:`status`,children:_===`starting`?`Starting Claude — resuming the conversation…`:`Connecting…`}),_!==`ready`&&!se&&x&&(0,$.jsxs)(`div`,{className:`wd-pty-connecting wd-pty-failed`,role:`alert`,children:[(0,$.jsxs)(`p`,{children:[`Couldn't start Claude: `,x.reason,`.`]}),(0,$.jsxs)(`p`,{children:[x.retryAt===null?`Stopped trying on its own.`:(0,$.jsx)(Qp,{at:x.retryAt}),` `,(0,$.jsx)(`button`,{type:`button`,className:`wd-btn-secondary`,onClick:()=>{oe.current=0,S(null),b(e=>e+1)},children:x.retryAt===null?`Try again`:`Try now`})]})]})]}),Ee&&(0,ae.createPortal)((0,$.jsx)(i,{x:Ee.x,y:Ee.y,items:u(Ee.link.result,ee(navigator.userAgent)).map((t,n)=>({label:t.label,separated:t.id===`copy`&&n>0,run:()=>Kp(e,t.id,Ee.link,ke)})),footer:Ee.link.result.path??void 0,onClose:()=>De(null)}),document.body),Oe&&(0,ae.createPortal)((0,$.jsx)(ne,{toast:Oe,onClose:Ae}),document.body)]})}function Qp({at:e}){let[t,n]=(0,w.useState)(()=>Date.now());return(0,w.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{Jp as ELSEWHERE_RECHECK_MS,Zp as PtyView,Wp as openLink};
96
- //# sourceMappingURL=PtyView-BPgPdKsH.js.map
96
+ //# sourceMappingURL=PtyView-CYAhB_pW.js.map