@moberg_hr/work-tree 2.22.1 → 2.22.3

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 (211) hide show
  1. package/dist/{account-7QAH33LA.js → account-XM6AGLTP.js} +16 -12
  2. package/dist/account-XM6AGLTP.js.map +1 -0
  3. package/dist/{add-repo-BFHI76SN.js → add-repo-Q2QRLPCY.js} +6 -6
  4. package/dist/{answer-HQVJNI26.js → answer-EN2SUUMI.js} +4 -4
  5. package/dist/{attach-OTWK6PD5.js → attach-WYSTXYA7.js} +8 -8
  6. package/dist/bin.js +2 -2
  7. package/dist/{block-EB22EIRA.js → block-O5XC4JSQ.js} +6 -6
  8. package/dist/{broadcast-BUJ5PWPB.js → broadcast-MT77AQG5.js} +2 -2
  9. package/dist/{catchup-YD3OCG66.js → catchup-WNXY4QRC.js} +7 -7
  10. package/dist/{child-ZN7PG7DR.js → child-4OQQ4RMP.js} +3 -3
  11. package/dist/{chunk-XOA3X4MN.js → chunk-4AAFXLXN.js} +3 -3
  12. package/dist/{chunk-QBB5JDFF.js → chunk-4VM6GMMI.js} +2 -2
  13. package/dist/{chunk-6GQG5CTJ.js → chunk-5TW5NKYZ.js} +5 -5
  14. package/dist/{chunk-MSWU4NDC.js → chunk-66OWGZAF.js} +2 -2
  15. package/dist/{chunk-FGWGPTQC.js → chunk-7TAPYCLF.js} +56 -56
  16. package/dist/{chunk-6UJLYHK5.js → chunk-B4VQXZV4.js} +2 -2
  17. package/dist/{chunk-XT3HB45X.js → chunk-E5N4CJDI.js} +4 -4
  18. package/dist/{chunk-5K33LDOS.js → chunk-EH4H2I72.js} +3 -3
  19. package/dist/{chunk-MAXPKVQM.js → chunk-EXNRUU7Z.js} +3 -3
  20. package/dist/{chunk-FYDBT6AI.js → chunk-GGBFSQEX.js} +2 -2
  21. package/dist/{chunk-3LY3FKBF.js → chunk-HF3ZGAW7.js} +3 -3
  22. package/dist/{chunk-EGYNUNKI.js → chunk-I6GXPPEH.js} +4 -4
  23. package/dist/{chunk-5QJQXRRY.js → chunk-J4CEJOSI.js} +4 -4
  24. package/dist/{chunk-QAK5RTKL.js → chunk-JATQW6OX.js} +3 -3
  25. package/dist/{chunk-THHDB7JN.js → chunk-KSG6RRGI.js} +2 -2
  26. package/dist/{chunk-2YGXGVLV.js → chunk-LVRV5UED.js} +4 -4
  27. package/dist/{chunk-2GIPYZCX.js → chunk-MD4G7DIO.js} +5 -5
  28. package/dist/{chunk-TCKNRYWG.js → chunk-MHKDX7CD.js} +8 -8
  29. package/dist/{chunk-6TY74NY6.js → chunk-MRMFJQZI.js} +5 -5
  30. package/dist/{chunk-ZG3W3DJ3.js → chunk-NHDZ3ECC.js} +43 -11
  31. package/dist/chunk-NHDZ3ECC.js.map +1 -0
  32. package/dist/{chunk-AO2IFRQW.js → chunk-P3QIN44Y.js} +2 -2
  33. package/dist/{chunk-SE3M6KDX.js → chunk-QAAYE6IY.js} +2 -2
  34. package/dist/{chunk-KLUN6KKF.js → chunk-R4DGGYME.js} +2 -2
  35. package/dist/{chunk-UPYZYJPK.js → chunk-RDRQDE6J.js} +2 -2
  36. package/dist/{chunk-FO37VXQE.js → chunk-RE6WWXD6.js} +2 -2
  37. package/dist/{chunk-C4W2VTOP.js → chunk-RFE3HK2L.js} +3 -3
  38. package/dist/{chunk-INPJC2TX.js → chunk-SLA7CB3C.js} +4 -4
  39. package/dist/{chunk-DD4GYEFQ.js → chunk-T4Y2Z6HB.js} +3 -3
  40. package/dist/chunk-TJ5XUAJK.js +9 -0
  41. package/dist/{chunk-AI4BMD74.js → chunk-TZ4BIOMS.js} +3 -3
  42. package/dist/{chunk-IPIVNBKT.js → chunk-VOHPXD2P.js} +2 -2
  43. package/dist/{chunk-EDOYMSIA.js → chunk-VPFWY2GG.js} +1 -1
  44. package/dist/chunk-VPFWY2GG.js.map +1 -0
  45. package/dist/{chunk-S7Z3UJW7.js → chunk-VT6FJG3P.js} +2 -2
  46. package/dist/{chunk-H5SEBLE2.js → chunk-WANJYVUP.js} +2 -2
  47. package/dist/{chunk-IQWUHU2D.js → chunk-WDKHEFR6.js} +3 -3
  48. package/dist/{chunk-H7QMUEEA.js → chunk-WFKL2SJ3.js} +2 -2
  49. package/dist/{chunk-WRINMNRX.js → chunk-XYDGDIGZ.js} +3 -3
  50. package/dist/{chunk-V7TACE53.js → chunk-XZF526OU.js} +14 -6
  51. package/dist/chunk-XZF526OU.js.map +1 -0
  52. package/dist/{chunk-XVE23FA2.js → chunk-YYFYCOGY.js} +3 -3
  53. package/dist/{chunk-42MSD6GF.js → chunk-Z52GYYGA.js} +2 -2
  54. package/dist/{chunk-I2JMZBZY.js → chunk-ZU36UJVG.js} +3 -3
  55. package/dist/{chunk-Z5SKKACK.js → chunk-ZWD3QJLP.js} +2 -2
  56. package/dist/{cleanup-2VQTVWIG.js → cleanup-OZFN7I2N.js} +20 -20
  57. package/dist/{cli-FK3WEKNF.js → cli-RA5CKMTR.js} +3 -3
  58. package/dist/{color-2G5SIVSI.js → color-47LQGPVK.js} +4 -4
  59. package/dist/{config-XBTJVJK3.js → config-U7RPODOW.js} +3 -3
  60. package/dist/{coordinate-S3HTZFMP.js → coordinate-UO432TPP.js} +4 -4
  61. package/dist/{diff-63GBECFI.js → diff-TXGP7XHY.js} +4 -4
  62. package/dist/{digest-367JAS7G.js → digest-OEU7P5GQ.js} +4 -4
  63. package/dist/{fork-ALCUOTFA.js → fork-PBSBRV6J.js} +17 -17
  64. package/dist/{history-JESCVDIU.js → history-WF7Z54MS.js} +2 -2
  65. package/dist/{hook-2Y4UOTZ6.js → hook-7INHBIR6.js} +5 -5
  66. package/dist/{hydrate-F2BZ6K7Y.js → hydrate-RRASKNTO.js} +2 -2
  67. package/dist/{init-QPU6VIYG.js → init-BPQTPNQ4.js} +6 -6
  68. package/dist/{keep-DJRHEEFB.js → keep-G4WED2HV.js} +4 -4
  69. package/dist/{list-5AVOAFXA.js → list-XVLFF6AY.js} +2 -2
  70. package/dist/{move-75DQHXBR.js → move-UXB5XDIY.js} +7 -7
  71. package/dist/{note-VFFRLSIF.js → note-3JZISZMY.js} +4 -4
  72. package/dist/{overlaps-JW7C7MWI.js → overlaps-5VSNWHEA.js} +5 -5
  73. package/dist/{pin-CE63RHI3.js → pin-QJZZZETK.js} +4 -4
  74. package/dist/{pr-ONSSW6J4.js → pr-P5JHMUIS.js} +12 -12
  75. package/dist/{prune-HHTATOOQ.js → prune-7VM47E6R.js} +18 -18
  76. package/dist/{pty-host-UWBE2OIL.js → pty-host-VOE63H3Q.js} +5 -5
  77. package/dist/{read-O72SGX7S.js → read-Y75YWFMD.js} +4 -4
  78. package/dist/{recent-TI6O5KHP.js → recent-O67MPZAU.js} +6 -6
  79. package/dist/{remove-L7YB6227.js → remove-L7UKL4HS.js} +19 -19
  80. package/dist/{report-3YX5PLOE.js → report-F2ASNP5G.js} +3 -3
  81. package/dist/{restart-P352BMWT.js → restart-QJPCIHLM.js} +4 -4
  82. package/dist/{resume-PAHRZPAJ.js → resume-6GHK46FG.js} +6 -6
  83. package/dist/{review-WPHNJ47M.js → review-XUWVO4XU.js} +3 -3
  84. package/dist/{run-3CYZS4BM.js → run-XHU4OPHL.js} +2 -2
  85. package/dist/{screen-YX7C4PXH.js → screen-BE5IFYMV.js} +4 -4
  86. package/dist/{search-3LOJM3G4.js → search-AHBK3Q6S.js} +2 -2
  87. package/dist/{section-RMQAANNH.js → section-VHRFW7OS.js} +4 -4
  88. package/dist/{send-4CKKTNQX.js → send-QN56VR4Q.js} +5 -5
  89. package/dist/{sessions-5WRAWFNI.js → sessions-36NA666U.js} +13 -13
  90. package/dist/{show-VGC7QTGL.js → show-5YRGL7E2.js} +3 -3
  91. package/dist/{snooze-5TASHLGL.js → snooze-YQAIVXJ3.js} +4 -4
  92. package/dist/{start-E7KVWGW6.js → start-RYQVC4AV.js} +4 -4
  93. package/dist/{status-ZO54EQVF.js → status-IJARRSRU.js} +5 -5
  94. package/dist/{stop-XXLTBUCF.js → stop-XUYL3ICW.js} +4 -4
  95. package/dist/{sync-2BTD7U2A.js → sync-ZGU3G5OD.js} +18 -18
  96. package/dist/{time-WHUJH7FC.js → time-AQ3HEFPA.js} +5 -5
  97. package/dist/{timesheet-T575FQNM.js → timesheet-DM2YY3ZP.js} +7 -7
  98. package/dist/{tree-PV6GRIRG.js → tree-2YWTOJEK.js} +16 -16
  99. package/dist/{update-W5KD6237.js → update-7YGHGCW5.js} +9 -9
  100. package/dist/{usage-AB2UAMHM.js → usage-IEH7X5QH.js} +4 -4
  101. package/dist/{wait-BVU2IHP3.js → wait-I4UVNBU2.js} +5 -5
  102. package/dist/wd-bin.js +2 -2
  103. package/dist/web/assets/{PtyView-CI7F38MV.js → PtyView-BPgPdKsH.js} +2 -2
  104. package/dist/web/assets/{PtyView-CI7F38MV.js.map → PtyView-BPgPdKsH.js.map} +1 -1
  105. package/dist/web/assets/{index-C-u0RGnu.css → index-Ca7KbCED.css} +1 -1
  106. package/dist/web/assets/{index-45mmMijZ.js → index-fsWlaZJc.js} +47 -47
  107. package/dist/web/assets/index-fsWlaZJc.js.map +1 -0
  108. package/dist/web/index.html +2 -2
  109. package/dist/{web-B4C2O7GU.js → web-W3YHTTSV.js} +66 -44
  110. package/dist/web-W3YHTTSV.js.map +1 -0
  111. package/npm-shrinkwrap.json +2 -2
  112. package/package.json +1 -1
  113. package/dist/account-7QAH33LA.js.map +0 -1
  114. package/dist/chunk-EDOYMSIA.js.map +0 -1
  115. package/dist/chunk-V7TACE53.js.map +0 -1
  116. package/dist/chunk-VQ63WDRZ.js +0 -9
  117. package/dist/chunk-ZG3W3DJ3.js.map +0 -1
  118. package/dist/web/assets/index-45mmMijZ.js.map +0 -1
  119. package/dist/web-B4C2O7GU.js.map +0 -1
  120. /package/dist/{add-repo-BFHI76SN.js.map → add-repo-Q2QRLPCY.js.map} +0 -0
  121. /package/dist/{answer-HQVJNI26.js.map → answer-EN2SUUMI.js.map} +0 -0
  122. /package/dist/{attach-OTWK6PD5.js.map → attach-WYSTXYA7.js.map} +0 -0
  123. /package/dist/{block-EB22EIRA.js.map → block-O5XC4JSQ.js.map} +0 -0
  124. /package/dist/{broadcast-BUJ5PWPB.js.map → broadcast-MT77AQG5.js.map} +0 -0
  125. /package/dist/{catchup-YD3OCG66.js.map → catchup-WNXY4QRC.js.map} +0 -0
  126. /package/dist/{child-ZN7PG7DR.js.map → child-4OQQ4RMP.js.map} +0 -0
  127. /package/dist/{chunk-XOA3X4MN.js.map → chunk-4AAFXLXN.js.map} +0 -0
  128. /package/dist/{chunk-QBB5JDFF.js.map → chunk-4VM6GMMI.js.map} +0 -0
  129. /package/dist/{chunk-6GQG5CTJ.js.map → chunk-5TW5NKYZ.js.map} +0 -0
  130. /package/dist/{chunk-MSWU4NDC.js.map → chunk-66OWGZAF.js.map} +0 -0
  131. /package/dist/{chunk-FGWGPTQC.js.map → chunk-7TAPYCLF.js.map} +0 -0
  132. /package/dist/{chunk-6UJLYHK5.js.map → chunk-B4VQXZV4.js.map} +0 -0
  133. /package/dist/{chunk-XT3HB45X.js.map → chunk-E5N4CJDI.js.map} +0 -0
  134. /package/dist/{chunk-5K33LDOS.js.map → chunk-EH4H2I72.js.map} +0 -0
  135. /package/dist/{chunk-MAXPKVQM.js.map → chunk-EXNRUU7Z.js.map} +0 -0
  136. /package/dist/{chunk-FYDBT6AI.js.map → chunk-GGBFSQEX.js.map} +0 -0
  137. /package/dist/{chunk-3LY3FKBF.js.map → chunk-HF3ZGAW7.js.map} +0 -0
  138. /package/dist/{chunk-EGYNUNKI.js.map → chunk-I6GXPPEH.js.map} +0 -0
  139. /package/dist/{chunk-5QJQXRRY.js.map → chunk-J4CEJOSI.js.map} +0 -0
  140. /package/dist/{chunk-QAK5RTKL.js.map → chunk-JATQW6OX.js.map} +0 -0
  141. /package/dist/{chunk-THHDB7JN.js.map → chunk-KSG6RRGI.js.map} +0 -0
  142. /package/dist/{chunk-2YGXGVLV.js.map → chunk-LVRV5UED.js.map} +0 -0
  143. /package/dist/{chunk-2GIPYZCX.js.map → chunk-MD4G7DIO.js.map} +0 -0
  144. /package/dist/{chunk-TCKNRYWG.js.map → chunk-MHKDX7CD.js.map} +0 -0
  145. /package/dist/{chunk-6TY74NY6.js.map → chunk-MRMFJQZI.js.map} +0 -0
  146. /package/dist/{chunk-AO2IFRQW.js.map → chunk-P3QIN44Y.js.map} +0 -0
  147. /package/dist/{chunk-SE3M6KDX.js.map → chunk-QAAYE6IY.js.map} +0 -0
  148. /package/dist/{chunk-KLUN6KKF.js.map → chunk-R4DGGYME.js.map} +0 -0
  149. /package/dist/{chunk-UPYZYJPK.js.map → chunk-RDRQDE6J.js.map} +0 -0
  150. /package/dist/{chunk-FO37VXQE.js.map → chunk-RE6WWXD6.js.map} +0 -0
  151. /package/dist/{chunk-C4W2VTOP.js.map → chunk-RFE3HK2L.js.map} +0 -0
  152. /package/dist/{chunk-INPJC2TX.js.map → chunk-SLA7CB3C.js.map} +0 -0
  153. /package/dist/{chunk-DD4GYEFQ.js.map → chunk-T4Y2Z6HB.js.map} +0 -0
  154. /package/dist/{chunk-VQ63WDRZ.js.map → chunk-TJ5XUAJK.js.map} +0 -0
  155. /package/dist/{chunk-AI4BMD74.js.map → chunk-TZ4BIOMS.js.map} +0 -0
  156. /package/dist/{chunk-IPIVNBKT.js.map → chunk-VOHPXD2P.js.map} +0 -0
  157. /package/dist/{chunk-S7Z3UJW7.js.map → chunk-VT6FJG3P.js.map} +0 -0
  158. /package/dist/{chunk-H5SEBLE2.js.map → chunk-WANJYVUP.js.map} +0 -0
  159. /package/dist/{chunk-IQWUHU2D.js.map → chunk-WDKHEFR6.js.map} +0 -0
  160. /package/dist/{chunk-H7QMUEEA.js.map → chunk-WFKL2SJ3.js.map} +0 -0
  161. /package/dist/{chunk-WRINMNRX.js.map → chunk-XYDGDIGZ.js.map} +0 -0
  162. /package/dist/{chunk-XVE23FA2.js.map → chunk-YYFYCOGY.js.map} +0 -0
  163. /package/dist/{chunk-42MSD6GF.js.map → chunk-Z52GYYGA.js.map} +0 -0
  164. /package/dist/{chunk-I2JMZBZY.js.map → chunk-ZU36UJVG.js.map} +0 -0
  165. /package/dist/{chunk-Z5SKKACK.js.map → chunk-ZWD3QJLP.js.map} +0 -0
  166. /package/dist/{cleanup-2VQTVWIG.js.map → cleanup-OZFN7I2N.js.map} +0 -0
  167. /package/dist/{cli-FK3WEKNF.js.map → cli-RA5CKMTR.js.map} +0 -0
  168. /package/dist/{color-2G5SIVSI.js.map → color-47LQGPVK.js.map} +0 -0
  169. /package/dist/{config-XBTJVJK3.js.map → config-U7RPODOW.js.map} +0 -0
  170. /package/dist/{coordinate-S3HTZFMP.js.map → coordinate-UO432TPP.js.map} +0 -0
  171. /package/dist/{diff-63GBECFI.js.map → diff-TXGP7XHY.js.map} +0 -0
  172. /package/dist/{digest-367JAS7G.js.map → digest-OEU7P5GQ.js.map} +0 -0
  173. /package/dist/{fork-ALCUOTFA.js.map → fork-PBSBRV6J.js.map} +0 -0
  174. /package/dist/{history-JESCVDIU.js.map → history-WF7Z54MS.js.map} +0 -0
  175. /package/dist/{hook-2Y4UOTZ6.js.map → hook-7INHBIR6.js.map} +0 -0
  176. /package/dist/{hydrate-F2BZ6K7Y.js.map → hydrate-RRASKNTO.js.map} +0 -0
  177. /package/dist/{init-QPU6VIYG.js.map → init-BPQTPNQ4.js.map} +0 -0
  178. /package/dist/{keep-DJRHEEFB.js.map → keep-G4WED2HV.js.map} +0 -0
  179. /package/dist/{list-5AVOAFXA.js.map → list-XVLFF6AY.js.map} +0 -0
  180. /package/dist/{move-75DQHXBR.js.map → move-UXB5XDIY.js.map} +0 -0
  181. /package/dist/{note-VFFRLSIF.js.map → note-3JZISZMY.js.map} +0 -0
  182. /package/dist/{overlaps-JW7C7MWI.js.map → overlaps-5VSNWHEA.js.map} +0 -0
  183. /package/dist/{pin-CE63RHI3.js.map → pin-QJZZZETK.js.map} +0 -0
  184. /package/dist/{pr-ONSSW6J4.js.map → pr-P5JHMUIS.js.map} +0 -0
  185. /package/dist/{prune-HHTATOOQ.js.map → prune-7VM47E6R.js.map} +0 -0
  186. /package/dist/{pty-host-UWBE2OIL.js.map → pty-host-VOE63H3Q.js.map} +0 -0
  187. /package/dist/{read-O72SGX7S.js.map → read-Y75YWFMD.js.map} +0 -0
  188. /package/dist/{recent-TI6O5KHP.js.map → recent-O67MPZAU.js.map} +0 -0
  189. /package/dist/{remove-L7YB6227.js.map → remove-L7UKL4HS.js.map} +0 -0
  190. /package/dist/{report-3YX5PLOE.js.map → report-F2ASNP5G.js.map} +0 -0
  191. /package/dist/{restart-P352BMWT.js.map → restart-QJPCIHLM.js.map} +0 -0
  192. /package/dist/{resume-PAHRZPAJ.js.map → resume-6GHK46FG.js.map} +0 -0
  193. /package/dist/{review-WPHNJ47M.js.map → review-XUWVO4XU.js.map} +0 -0
  194. /package/dist/{run-3CYZS4BM.js.map → run-XHU4OPHL.js.map} +0 -0
  195. /package/dist/{screen-YX7C4PXH.js.map → screen-BE5IFYMV.js.map} +0 -0
  196. /package/dist/{search-3LOJM3G4.js.map → search-AHBK3Q6S.js.map} +0 -0
  197. /package/dist/{section-RMQAANNH.js.map → section-VHRFW7OS.js.map} +0 -0
  198. /package/dist/{send-4CKKTNQX.js.map → send-QN56VR4Q.js.map} +0 -0
  199. /package/dist/{sessions-5WRAWFNI.js.map → sessions-36NA666U.js.map} +0 -0
  200. /package/dist/{show-VGC7QTGL.js.map → show-5YRGL7E2.js.map} +0 -0
  201. /package/dist/{snooze-5TASHLGL.js.map → snooze-YQAIVXJ3.js.map} +0 -0
  202. /package/dist/{start-E7KVWGW6.js.map → start-RYQVC4AV.js.map} +0 -0
  203. /package/dist/{status-ZO54EQVF.js.map → status-IJARRSRU.js.map} +0 -0
  204. /package/dist/{stop-XXLTBUCF.js.map → stop-XUYL3ICW.js.map} +0 -0
  205. /package/dist/{sync-2BTD7U2A.js.map → sync-ZGU3G5OD.js.map} +0 -0
  206. /package/dist/{time-WHUJH7FC.js.map → time-AQ3HEFPA.js.map} +0 -0
  207. /package/dist/{timesheet-T575FQNM.js.map → timesheet-DM2YY3ZP.js.map} +0 -0
  208. /package/dist/{tree-PV6GRIRG.js.map → tree-2YWTOJEK.js.map} +0 -0
  209. /package/dist/{update-W5KD6237.js.map → update-7YGHGCW5.js.map} +0 -0
  210. /package/dist/{usage-AB2UAMHM.js.map → usage-IEH7X5QH.js.map} +0 -0
  211. /package/dist/{wait-BVU2IHP3.js.map → wait-I4UVNBU2.js.map} +0 -0
@@ -1,18 +1,18 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  createInProcess
4
- } from "./chunk-IQWUHU2D.js";
4
+ } from "./chunk-WDKHEFR6.js";
5
5
  import {
6
6
  ensurePty,
7
7
  peekPty
8
- } from "./chunk-5QJQXRRY.js";
8
+ } from "./chunk-J4CEJOSI.js";
9
9
  import {
10
10
  getCommentFileStore
11
11
  } from "./chunk-UPS7NHKI.js";
12
12
  import {
13
13
  recordedRepos,
14
14
  sessionAliases
15
- } from "./chunk-EDOYMSIA.js";
15
+ } from "./chunk-VPFWY2GG.js";
16
16
  import {
17
17
  sessionIdFor
18
18
  } from "./chunk-QGUBOOEN.js";
@@ -174,4 +174,4 @@ export {
174
174
  uncommittedFiles,
175
175
  defaultForkDeps
176
176
  };
177
- //# sourceMappingURL=chunk-XT3HB45X.js.map
177
+ //# sourceMappingURL=chunk-E5N4CJDI.js.map
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  hostForOrigin,
13
13
  hostOfPrUrl
14
- } from "./chunk-FO37VXQE.js";
14
+ } from "./chunk-RE6WWXD6.js";
15
15
  import {
16
16
  originUrl,
17
17
  readGitConfig
@@ -23,7 +23,7 @@ import {
23
23
  DEFAULT_HOST,
24
24
  commandsFor,
25
25
  parsePrLink
26
- } from "./chunk-EDOYMSIA.js";
26
+ } from "./chunk-VPFWY2GG.js";
27
27
 
28
28
  // src/core/archive/restore-leftovers.ts
29
29
  function leftoversOf(paths) {
@@ -155,4 +155,4 @@ export {
155
155
  workOnPrPrompt,
156
156
  resolvePrToStart
157
157
  };
158
- //# sourceMappingURL=chunk-5K33LDOS.js.map
158
+ //# sourceMappingURL=chunk-EH4H2I72.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  shownState
4
- } from "./chunk-UPYZYJPK.js";
4
+ } from "./chunk-RDRQDE6J.js";
5
5
  import {
6
6
  recordCheckedOutBranches
7
7
  } from "./chunk-MJIYIMPI.js";
@@ -14,7 +14,7 @@ import {
14
14
  readArchive,
15
15
  sessionAliases,
16
16
  setSessionBase
17
- } from "./chunk-EDOYMSIA.js";
17
+ } from "./chunk-VPFWY2GG.js";
18
18
  import {
19
19
  sessionIdFor
20
20
  } from "./chunk-QGUBOOEN.js";
@@ -428,4 +428,4 @@ export {
428
428
  moveOntoMain,
429
429
  updateSession
430
430
  };
431
- //# sourceMappingURL=chunk-MAXPKVQM.js.map
431
+ //# sourceMappingURL=chunk-EXNRUU7Z.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  createFsWatcher,
4
4
  findSessionById
5
- } from "./chunk-EDOYMSIA.js";
5
+ } from "./chunk-VPFWY2GG.js";
6
6
 
7
7
  // src/core/sessions/web-state.ts
8
8
  function findSession(sessionId) {
@@ -68,4 +68,4 @@ export {
68
68
  disposeSessionWatcher,
69
69
  disposeAllWatchers
70
70
  };
71
- //# sourceMappingURL=chunk-FYDBT6AI.js.map
71
+ //# sourceMappingURL=chunk-GGBFSQEX.js.map
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  CONTEXT_WARN
4
- } from "./chunk-SE3M6KDX.js";
4
+ } from "./chunk-QAAYE6IY.js";
5
5
  import {
6
6
  MAX_THREAD_BODY,
7
7
  isThreadCode
8
8
  } from "./chunk-FGPXMAYU.js";
9
9
  import {
10
10
  commandsFor
11
- } from "./chunk-EDOYMSIA.js";
11
+ } from "./chunk-VPFWY2GG.js";
12
12
  import {
13
13
  json,
14
14
  withDb
@@ -184,4 +184,4 @@ export {
184
184
  isSessionCi,
185
185
  createCiStore
186
186
  };
187
- //# sourceMappingURL=chunk-3LY3FKBF.js.map
187
+ //# sourceMappingURL=chunk-HF3ZGAW7.js.map
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-FZHFD2AY.js";
5
5
  import {
6
6
  agentsBySession
7
- } from "./chunk-Z5SKKACK.js";
7
+ } from "./chunk-ZWD3QJLP.js";
8
8
  import {
9
9
  findSession as findSession2
10
- } from "./chunk-FYDBT6AI.js";
10
+ } from "./chunk-GGBFSQEX.js";
11
11
  import {
12
12
  dbPtySessions
13
13
  } from "./chunk-OHX7WKZU.js";
@@ -15,7 +15,7 @@ import {
15
15
  clearLaunchedUnsafe,
16
16
  findSession,
17
17
  loadHistory
18
- } from "./chunk-EDOYMSIA.js";
18
+ } from "./chunk-VPFWY2GG.js";
19
19
  import {
20
20
  sessionIdFor
21
21
  } from "./chunk-QGUBOOEN.js";
@@ -47,4 +47,4 @@ export {
47
47
  legacyUnsafeCheck,
48
48
  clearLaunchedUnsafeWhenIdle
49
49
  };
50
- //# sourceMappingURL=chunk-EGYNUNKI.js.map
50
+ //# sourceMappingURL=chunk-I6GXPPEH.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-VRMALBZK.js";
10
10
  import {
11
11
  findSession
12
- } from "./chunk-FYDBT6AI.js";
12
+ } from "./chunk-GGBFSQEX.js";
13
13
  import {
14
14
  dbPtySessions,
15
15
  forgetPersistedSession
@@ -24,10 +24,10 @@ import {
24
24
  import {
25
25
  ASSISTANT_ID,
26
26
  prepareAssistantDir
27
- } from "./chunk-QBB5JDFF.js";
27
+ } from "./chunk-4VM6GMMI.js";
28
28
  import {
29
29
  noClaudeBecause
30
- } from "./chunk-EDOYMSIA.js";
30
+ } from "./chunk-VPFWY2GG.js";
31
31
  import {
32
32
  sessionIdFor
33
33
  } from "./chunk-QGUBOOEN.js";
@@ -426,4 +426,4 @@ export {
426
426
  stopSessionPty,
427
427
  detachPtyPool
428
428
  };
429
- //# sourceMappingURL=chunk-5QJQXRRY.js.map
429
+ //# sourceMappingURL=chunk-J4CEJOSI.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  sessionStatusView
4
- } from "./chunk-UPYZYJPK.js";
4
+ } from "./chunk-RDRQDE6J.js";
5
5
  import {
6
6
  buildDigest,
7
7
  loadHistory,
@@ -11,7 +11,7 @@ import {
11
11
  readStatus,
12
12
  scopeHashForPaths,
13
13
  workSteps
14
- } from "./chunk-EDOYMSIA.js";
14
+ } from "./chunk-VPFWY2GG.js";
15
15
  import {
16
16
  sessionIdFor
17
17
  } from "./chunk-QGUBOOEN.js";
@@ -99,4 +99,4 @@ function createDigestSource(deps = {}) {
99
99
  export {
100
100
  createDigestSource
101
101
  };
102
- //# sourceMappingURL=chunk-QAK5RTKL.js.map
102
+ //# sourceMappingURL=chunk-JATQW6OX.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  readStatus
4
- } from "./chunk-EDOYMSIA.js";
4
+ } from "./chunk-VPFWY2GG.js";
5
5
 
6
6
  // src/commands/shared/turn-wait.ts
7
7
  var cliWaitDeps = {
@@ -16,4 +16,4 @@ var cliWaitDeps = {
16
16
  export {
17
17
  cliWaitDeps
18
18
  };
19
- //# sourceMappingURL=chunk-THHDB7JN.js.map
19
+ //# sourceMappingURL=chunk-KSG6RRGI.js.map
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  isSessionCi
4
- } from "./chunk-3LY3FKBF.js";
4
+ } from "./chunk-HF3ZGAW7.js";
5
5
  import {
6
6
  defaultHost,
7
7
  hostForOrigin,
8
8
  hostOfThread,
9
9
  knownHosts
10
- } from "./chunk-FO37VXQE.js";
10
+ } from "./chunk-RE6WWXD6.js";
11
11
  import {
12
12
  MAX_THREAD_BODY,
13
13
  isThreadCode,
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-GNIYYXQX.js";
20
20
  import {
21
21
  sessionRepos
22
- } from "./chunk-EDOYMSIA.js";
22
+ } from "./chunk-VPFWY2GG.js";
23
23
  import {
24
24
  json,
25
25
  sessionIdFor,
@@ -306,4 +306,4 @@ export {
306
306
  draftReply,
307
307
  retireResolvedReplies
308
308
  };
309
- //# sourceMappingURL=chunk-2YGXGVLV.js.map
309
+ //# sourceMappingURL=chunk-LVRV5UED.js.map
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  sessionWorkTime
4
- } from "./chunk-KLUN6KKF.js";
4
+ } from "./chunk-R4DGGYME.js";
5
5
  import {
6
6
  runInternal
7
- } from "./chunk-WRINMNRX.js";
7
+ } from "./chunk-XYDGDIGZ.js";
8
8
  import {
9
9
  DEFAULT_CATCH_UP_DAYS,
10
10
  MAX_RANGE_DAYS,
@@ -22,11 +22,11 @@ import {
22
22
  } from "./chunk-BQS73CWR.js";
23
23
  import {
24
24
  knownHosts
25
- } from "./chunk-FO37VXQE.js";
25
+ } from "./chunk-RE6WWXD6.js";
26
26
  import {
27
27
  loadHistory,
28
28
  runGitAsync
29
- } from "./chunk-EDOYMSIA.js";
29
+ } from "./chunk-VPFWY2GG.js";
30
30
  import {
31
31
  sessionIdFor
32
32
  } from "./chunk-QGUBOOEN.js";
@@ -744,4 +744,4 @@ export {
744
744
  finishDeviceLogin,
745
745
  defaultTimeDeps
746
746
  };
747
- //# sourceMappingURL=chunk-2GIPYZCX.js.map
747
+ //# sourceMappingURL=chunk-MD4G7DIO.js.map
@@ -5,31 +5,31 @@ import {
5
5
  } from "./chunk-AKMPF72Y.js";
6
6
  import {
7
7
  listReplies
8
- } from "./chunk-2YGXGVLV.js";
8
+ } from "./chunk-LVRV5UED.js";
9
9
  import {
10
10
  runningFromNames,
11
11
  stopRunningFrom
12
12
  } from "./chunk-ICEP4WAK.js";
13
13
  import {
14
14
  disposePty
15
- } from "./chunk-5QJQXRRY.js";
15
+ } from "./chunk-J4CEJOSI.js";
16
16
  import {
17
17
  saveIgnored,
18
18
  teardownWorktree,
19
19
  worktreeFor
20
- } from "./chunk-H5SEBLE2.js";
20
+ } from "./chunk-WANJYVUP.js";
21
21
  import {
22
22
  isLeftover
23
23
  } from "./chunk-EORL2V7P.js";
24
24
  import {
25
25
  shownState
26
- } from "./chunk-UPYZYJPK.js";
26
+ } from "./chunk-RDRQDE6J.js";
27
27
  import {
28
28
  runInternal
29
- } from "./chunk-WRINMNRX.js";
29
+ } from "./chunk-XYDGDIGZ.js";
30
30
  import {
31
31
  readPendingForSession
32
- } from "./chunk-H7QMUEEA.js";
32
+ } from "./chunk-WFKL2SJ3.js";
33
33
  import {
34
34
  buildFoldersOf,
35
35
  clearBuildFolders
@@ -49,7 +49,7 @@ import {
49
49
  setSessionArchived,
50
50
  stopDev,
51
51
  turnInProgress
52
- } from "./chunk-EDOYMSIA.js";
52
+ } from "./chunk-VPFWY2GG.js";
53
53
  import {
54
54
  sessionIdFor
55
55
  } from "./chunk-QGUBOOEN.js";
@@ -290,4 +290,4 @@ export {
290
290
  archiveMergedSession,
291
291
  defaultArchiveDeps
292
292
  };
293
- //# sourceMappingURL=chunk-TCKNRYWG.js.map
293
+ //# sourceMappingURL=chunk-MHKDX7CD.js.map
@@ -1,16 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  defaultArchiveDeps
4
- } from "./chunk-TCKNRYWG.js";
4
+ } from "./chunk-MHKDX7CD.js";
5
5
  import {
6
6
  normPath
7
7
  } from "./chunk-AKMPF72Y.js";
8
8
  import {
9
9
  disposePty
10
- } from "./chunk-5QJQXRRY.js";
10
+ } from "./chunk-J4CEJOSI.js";
11
11
  import {
12
12
  teardownWorktree
13
- } from "./chunk-H5SEBLE2.js";
13
+ } from "./chunk-WANJYVUP.js";
14
14
  import {
15
15
  defaultRunner
16
16
  } from "./chunk-XBWS77S2.js";
@@ -21,7 +21,7 @@ import {
21
21
  readStatus,
22
22
  removeSession,
23
23
  sessionAliases
24
- } from "./chunk-EDOYMSIA.js";
24
+ } from "./chunk-VPFWY2GG.js";
25
25
  import {
26
26
  sessionIdFor
27
27
  } from "./chunk-QGUBOOEN.js";
@@ -160,4 +160,4 @@ function defaultCleanupDeps(opts = {}) {
160
160
  export {
161
161
  defaultCleanupDeps
162
162
  };
163
- //# sourceMappingURL=chunk-6TY74NY6.js.map
163
+ //# sourceMappingURL=chunk-MRMFJQZI.js.map
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  agentsBySession
4
- } from "./chunk-Z5SKKACK.js";
4
+ } from "./chunk-ZWD3QJLP.js";
5
5
  import {
6
6
  accountSwitchRefusal,
7
7
  haltPty,
@@ -9,15 +9,15 @@ import {
9
9
  ptyPid,
10
10
  ptyPids,
11
11
  resumePtyOnAccount
12
- } from "./chunk-5QJQXRRY.js";
12
+ } from "./chunk-J4CEJOSI.js";
13
13
  import {
14
14
  findSession
15
- } from "./chunk-FYDBT6AI.js";
15
+ } from "./chunk-GGBFSQEX.js";
16
16
  import {
17
17
  isArchiving,
18
18
  loadHistory,
19
19
  setSessionAccount
20
- } from "./chunk-EDOYMSIA.js";
20
+ } from "./chunk-VPFWY2GG.js";
21
21
  import {
22
22
  AccountAdminError,
23
23
  agentOf,
@@ -44,6 +44,7 @@ function switchRefusal(to, f) {
44
44
 
45
45
  // src/core/sessions/account-switch.ts
46
46
  var INTERRUPTED = "; it was working or waiting on you, so that turn was interrupted: tell it to continue";
47
+ var CONTINUED = "; it was working or waiting on you, so that turn was interrupted: work tells it to continue once it is ready";
47
48
  var msg = (err) => err instanceof Error ? err.message : String(err);
48
49
  function createAccountSwitcher(deps) {
49
50
  const targets = /* @__PURE__ */ new Map();
@@ -69,7 +70,7 @@ function createAccountSwitcher(deps) {
69
70
  const acc = deps.accounts(s);
70
71
  if (!acc) throw new Error("its agent has no accounts");
71
72
  const from = acc.current;
72
- if (from === to) return { moved: 0, interrupted: false };
73
+ if (from === to) return { moved: 0, interrupted: false, continued: false };
73
74
  const before = await refusalBeforeStop(s, id);
74
75
  if (before) throw new Error(`stays on ${from}: ${before}`);
75
76
  if (deps.cancelRestart?.(id)) deps.note?.(id, "its agent restart that waited for this turn is done by the switch instead", "info");
@@ -98,13 +99,23 @@ function createAccountSwitcher(deps) {
98
99
  }
99
100
  if (!halted) {
100
101
  deps.note?.(id, `moved to the ${to} account (${moved} entries moved; its next start uses it)`, "action");
101
- return { moved, interrupted: false };
102
+ return { moved, interrupted: false, continued: false };
102
103
  }
103
104
  try {
104
105
  const how = await resume();
105
- const cut = interrupted ? INTERRUPTED : "";
106
+ const continued = interrupted && !!deps.carryOn;
107
+ const cut = continued ? CONTINUED : interrupted ? INTERRUPTED : "";
106
108
  deps.note?.(id, `moved to the ${to} account: its Claude restarted on it${how ? ` (${how})` : ""}${cut}`, "action");
107
- return { moved, interrupted };
109
+ if (continued)
110
+ void deps.carryOn(id).then(
111
+ (told) => deps.note?.(
112
+ id,
113
+ told ? "told it to continue" : "couldn't tell it to continue (it didn't get ready in time): send it a message to carry on",
114
+ told ? "action" : "warn"
115
+ ),
116
+ (err) => deps.note?.(id, `couldn't tell it to continue: ${msg(err)}`, "warn")
117
+ );
118
+ return { moved, interrupted, continued };
108
119
  } catch (err) {
109
120
  const why = `moved to the ${to} account, but its Claude couldn't be restarted: ${msg(err)} (opening the session starts it on ${to})`;
110
121
  deps.note?.(id, why, "warn");
@@ -149,8 +160,14 @@ function createAccountSwitcher(deps) {
149
160
  }
150
161
  targets.set(id, to);
151
162
  try {
152
- const { moved, interrupted } = await perform(id, to);
153
- return { ok: true, outcome: "switched", moved, ...interrupted ? { interrupted: true } : {} };
163
+ const { moved, interrupted, continued } = await perform(id, to);
164
+ return {
165
+ ok: true,
166
+ outcome: "switched",
167
+ moved,
168
+ ...interrupted ? { interrupted: true } : {},
169
+ ...continued ? { continued: true } : {}
170
+ };
154
171
  } catch (err) {
155
172
  return { ok: false, status: 502, error: msg(err) };
156
173
  } finally {
@@ -164,6 +181,20 @@ function createAccountSwitcher(deps) {
164
181
  restartsAnyway: (id) => targets.get(id) ?? null
165
182
  };
166
183
  }
184
+ var CONTINUE_TEXT = "continue";
185
+ async function continueWhenReady(id, io, opts = {}) {
186
+ const every = opts.everyMs ?? 1e3;
187
+ const tries = Math.max(1, Math.ceil((opts.timeoutMs ?? 6e4) / every));
188
+ const sleep = io.sleep ?? ((ms) => new Promise((r) => setTimeout(r, ms)));
189
+ for (let i = 0; i < tries; i++) {
190
+ if (io.ready(id)) {
191
+ await io.send(id, CONTINUE_TEXT);
192
+ return true;
193
+ }
194
+ await sleep(every);
195
+ }
196
+ return false;
197
+ }
167
198
  function accountSwitchNote(activity, label2) {
168
199
  return (id, text, level) => {
169
200
  const name = label2(id);
@@ -292,6 +323,7 @@ function accountSkillsNote(activity) {
292
323
  export {
293
324
  switchRefusal,
294
325
  createAccountSwitcher,
326
+ continueWhenReady,
295
327
  accountSwitchNote,
296
328
  defaultAccountSwitchDeps,
297
329
  removeAgentAccount,
@@ -301,4 +333,4 @@ export {
301
333
  createAccountLogins,
302
334
  accountSkillsNote
303
335
  };
304
- //# sourceMappingURL=chunk-ZG3W3DJ3.js.map
336
+ //# sourceMappingURL=chunk-NHDZ3ECC.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/core/sessions/account-switch-rules.ts","../src/core/sessions/account-switch.ts","../src/core/sessions/account-switch-deps.ts","../src/core/sessions/account-users.ts","../src/core/sessions/account-admin.ts"],"sourcesContent":["/**\n * When a switch of account is refused before anything is stopped or moved — the rules the real switch\n * (account-switch.ts) and the demo's (server/demo/demo-accounts.ts) share. Pure: no imports.\n */\n\n/** An account as the rules see it (agents/types.ts `AccountInfo`; the wire's `AccountWire`). */\nexport interface SwitchAccountInfo {\n name: string;\n /** Logged in; null: can't tell (macOS keeps Claude's credentials in the keychain) — allowed. */\n loggedIn: boolean | null;\n}\n\nexport interface SwitchFacts {\n /** Archived, or being archived right now. */\n archived: boolean;\n /** Its agent's accounts and the one it is on; null: its agent has none. */\n accounts: { list: readonly SwitchAccountInfo[]; current: string } | null;\n /** Where a switch being done now goes; null: none. */\n pendingTo: string | null;\n /** Its agent runs in the PTY host (a switch can stop and start it there). */\n inHost: boolean;\n /** Its agent runs in a terminal outside work. */\n runningOutside: boolean;\n}\n\nexport type SwitchRefusal = { status: 400 | 409; error: string };\n\n/** Why the session can't be moved to `to` (status and reason), or null. In the order the user is told them. */\nexport function switchRefusal(to: string, f: SwitchFacts): SwitchRefusal | null {\n if (f.archived) return { status: 409, error: 'it is archived: restore it first' };\n if (!f.accounts) return { status: 409, error: \"its agent doesn't have accounts\" };\n const target = f.accounts.list.find((a) => a.name === to);\n if (!target) return { status: 400, error: `no account “${to}” (see \\`work account list\\`)` };\n if (target.loggedIn === false)\n return { status: 409, error: `nobody is logged in on “${to}”: run \\`work account add ${to}\\` again to log in, or /login on it` };\n if (f.pendingTo !== null) return { status: 409, error: `a switch is already being done (to ${f.pendingTo || 'another account'})` };\n if (f.accounts.current === to) return { status: 409, error: `it already runs on “${to}”` };\n if (!f.inHost && f.runningOutside)\n return {\n status: 409,\n error: 'its Claude runs in a terminal outside work: stop it there first (its conversation would be moved from under it)',\n };\n return null;\n}\n","import type { AccountInfo } from '../agents/types.js';\nimport type { WorktreeSession } from './session-types.js';\nimport type { ActivityLog } from '../platform/activity.js';\nimport { switchRefusal } from './account-switch-rules.js';\n\n/**\n * Moving a session to another account of its agent (Claude: another login, for when the first one's limit runs out).\n * The policy is here; I/O is passed in (account-routes.ts and web-server.ts give the real one, tests a fake).\n *\n * Refused: an unknown or archived session, an agent with no accounts, an unknown account, one nobody is logged in to, the\n * account it is on, a Claude running in a terminal outside work (a switch can't stop it), one switch already being done.\n *\n * Not running in the PTY host: its conversations move and the account is recorded — the next start uses it. Running and\n * idle: its Claude is halted in the host (stopped, its terminals kept), the conversations move, the account is recorded, and it\n * is resumed in place on the new account — in that order, so nothing writes into the old folder while it moves. Working, or waiting\n * on you: the same, at once — its turn is interrupted (asked for: a switch that waited for the turn to end kept a session\n * whose limit ran out on the old account). The turn it interrupted is continued: once the restarted Claude is ready,\n * work tells it to (`carryOn`, asked for: \"send continue after the switch is done\", for the interrupted ones only); an\n * idle session is left alone. Without `carryOn` the answer and Activity say to tell it. An agent restart waiting\n * for that turn is dropped (the switch restarts it), and one asked for meanwhile is folded into it (account-switch-link.ts).\n */\n\nexport interface AccountSwitchDeps {\n session: (id: string) => WorktreeSession | null;\n /** Being archived right now (its Claude was stopped on purpose, and mustn't be started again). */\n beingArchived: (id: string) => boolean;\n /** Its agent's accounts; null: its agent has none. */\n accounts: (session: WorktreeSession) => { list: AccountInfo[]; current: string } | null;\n /** Move its conversations to `to`'s folders (puts back what it moved when it fails, and throws). */\n switchFiles: (session: WorktreeSession, to: string) => Promise<{ moved: string[] }>;\n /** Record the account on the session, in one transaction. */\n record: (session: WorktreeSession, to: string) => Promise<void>;\n /** Its Claude runs in the PTY host. */\n hostRuns: (id: string) => boolean;\n /** Its Claude runs in a terminal outside work. */\n runningOutside: (id: string) => boolean;\n /** A folder whose conversations the switch would move where another agent (of any account, not this session's own in\n * the host) runs now — its files would move from under it; null: none. */\n othersRunningIn?: (session: WorktreeSession, id: string) => string | null;\n /** Why the PTY host can't run it on another account (one from before accounts), or null. Asked before anything stops. */\n hostRefusal?: () => Promise<string | null>;\n /** Working, or waiting on you: a switch doesn't wait for it, but says the turn it interrupted. */\n busy: (id: string, opts?: { turnEnded?: boolean }) => boolean;\n /** Stop its Claude in the host and keep its session (terminals attached) until `resume`: the files move only after it is stopped.\n * `stopped`: an older host stopped it the old way; `gone`: nothing was running. */\n halt: (id: string) => Promise<'halted' | 'stopped' | 'gone'>;\n /** Start it again after `halt`, on the account the session records now (so the old one after a switch that failed): in place\n * when it was `halted` (its terminals carry on), from a fresh spec when `stopped` (an older host). A string: how it went instead. */\n resume: (id: string, how: 'halted' | 'stopped') => Promise<string | void>;\n /** One line of what a switch decided, for the Activity panel. */\n note?: (id: string, text: string, level: 'action' | 'info' | 'warn') => void;\n changed?: () => void;\n /** Drop an agent restart waiting for its turn (agent-restart.ts): the switch restarts it anyway. True when one was waiting. */\n cancelRestart?: (id: string) => boolean;\n /** Tell its restarted Claude to continue, once it is ready for a prompt. Resolves whether it was told. */\n carryOn?: (id: string) => Promise<boolean>;\n}\n\nexport type SwitchOutcome = 'switched' | 'recorded';\n\nexport type SwitchResult =\n | { ok: true; outcome: SwitchOutcome; moved?: number; interrupted?: boolean; continued?: boolean }\n | { ok: false; status: 400 | 404 | 409 | 502; error: string };\n\n/** Said of a switch that stopped its Claude mid-turn: the conversation is there, the turn's remaining work isn't done. */\nexport const INTERRUPTED = '; it was working or waiting on you, so that turn was interrupted: tell it to continue';\n/** Said when work tells it to continue itself (asked for: \"send continue after the switch is done\"). */\nexport const CONTINUED = '; it was working or waiting on you, so that turn was interrupted: work tells it to continue once it is ready';\n\nconst msg = (err: unknown) => (err instanceof Error ? err.message : String(err));\n\nexport function createAccountSwitcher(deps: AccountSwitchDeps) {\n /** Where each switch being done goes. */\n const targets = new Map<string, string>();\n\n const name = (s: WorktreeSession) => `${s.target} ${s.branch}`;\n\n /** Move the files and record the account; a failed record puts the files back. Returns how many entries moved. */\n const moveAndRecord = async (s: WorktreeSession, to: string, from: string): Promise<number> => {\n const { moved } = await deps.switchFiles(s, to);\n try {\n await deps.record(s, to);\n } catch (err) {\n // The files are in the new account's folders and the session still says the old one: back, or its --continue finds\n // nothing. A move back that fails is said with the error (its message names what is stuck where).\n const back = await deps.switchFiles({ ...s, account: to }, from).then(\n () => '',\n (e2: unknown) => `; and its conversations couldn't all be moved back: ${msg(e2)}`,\n );\n throw new Error(`${msg(err)}${back}`, { cause: err });\n }\n return moved.length;\n };\n\n /** A switch of a session running in the host: the stop, the move, the record, the start again. */\n const perform = async (id: string, to: string): Promise<{ moved: number; interrupted: boolean; continued: boolean }> => {\n const s = deps.session(id);\n try {\n if (!s) throw new Error('the session is gone');\n if (s.archivedAt || deps.beingArchived(id)) throw new Error('it was archived meanwhile');\n const acc = deps.accounts(s);\n if (!acc) throw new Error('its agent has no accounts');\n const from = acc.current;\n if (from === to) return { moved: 0, interrupted: false, continued: false };\n const before = await refusalBeforeStop(s, id);\n if (before) throw new Error(`stays on ${from}: ${before}`);\n // A restart of its agent that waited for this turn too would stop it a second time: the switch's restart does its job.\n if (deps.cancelRestart?.(id)) deps.note?.(id, 'its agent restart that waited for this turn is done by the switch instead', 'info');\n // Stopped first: a running (or just exiting) Claude writes to its transcript, and on Windows holds the file.\n let halted: 'halted' | 'stopped' | null = null;\n let interrupted = false;\n if (deps.hostRuns(id)) {\n interrupted = deps.busy(id);\n let h: 'halted' | 'stopped' | 'gone';\n try {\n h = await deps.halt(id);\n } catch (err) {\n throw new Error(`stays on ${from}: couldn't stop its Claude: ${msg(err)}`, { cause: err });\n }\n if (h !== 'gone') halted = h;\n }\n /** Start it again on the account the session records (still the old one until the record is made). */\n const resume = async (): Promise<string | void> => (halted ? deps.resume(id, halted) : undefined);\n let moved: number;\n try {\n moved = await moveAndRecord(s, to, from);\n } catch (err) {\n // Put back (the move rolled itself back, a failed record moved the files back): it goes on running on the account it has.\n const back = await resume().then(\n () => '',\n (e2: unknown) => ` (and couldn't start its Claude again: ${msg(e2)}; opening the session starts it)`,\n );\n throw new Error(`stays on ${from}: ${msg(err)}${back}`, { cause: err });\n }\n if (!halted) {\n deps.note?.(id, `moved to the ${to} account (${moved} entries moved; its next start uses it)`, 'action');\n return { moved, interrupted: false, continued: false };\n }\n try {\n const how = await resume();\n // Interrupted by this switch: told to continue, once its Claude is up — not awaited, so the switch answers at\n // once; the note says how that went. Only that turn: an idle session is left alone (asked for: \"just interrupted ones\").\n const continued = interrupted && !!deps.carryOn;\n const cut = continued ? CONTINUED : interrupted ? INTERRUPTED : '';\n deps.note?.(id, `moved to the ${to} account: its Claude restarted on it${how ? ` (${how})` : ''}${cut}`, 'action');\n if (continued)\n void deps.carryOn!(id).then(\n (told) =>\n deps.note?.(\n id,\n told ? 'told it to continue' : \"couldn't tell it to continue (it didn't get ready in time): send it a message to carry on\",\n told ? 'action' : 'warn',\n ),\n (err: unknown) => deps.note?.(id, `couldn't tell it to continue: ${msg(err)}`, 'warn'),\n );\n return { moved, interrupted, continued };\n } catch (err) {\n // The account is recorded and the files are there: opening the session starts it on the new one.\n const why = `moved to the ${to} account, but its Claude couldn't be restarted: ${msg(err)} (opening the session starts it on ${to})`;\n deps.note?.(id, why, 'warn');\n throw new Error(why, { cause: err });\n }\n } catch (err) {\n if (s && !String(msg(err)).startsWith('moved to')) deps.note?.(id, `couldn't switch: ${msg(err)}`, 'warn');\n throw err;\n }\n };\n\n /** What stops a switch before anything is stopped or moved: an older PTY host, another Claude in one of its folders. */\n const refusalBeforeStop = async (s: WorktreeSession, id: string): Promise<string | null> => {\n const other = deps.othersRunningIn?.(s, id);\n if (other) return `a Claude outside this session runs in ${other}`;\n return deps.hostRuns(id) ? ((await deps.hostRefusal?.()) ?? null) : null;\n };\n\n async function switchAccount(id: string, to: string): Promise<SwitchResult> {\n const s = deps.session(id);\n if (!s) return { ok: false, status: 404, error: 'unknown session' };\n const acc = deps.accounts(s);\n const inHost = deps.hostRuns(id);\n const refused = switchRefusal(to, {\n archived: !!s.archivedAt || deps.beingArchived(id),\n accounts: acc,\n pendingTo: targets.get(id) ?? null,\n inHost,\n runningOutside: !inHost && deps.runningOutside(id),\n });\n if (refused) return { ok: false, ...refused };\n if (!acc) return { ok: false, status: 409, error: \"its agent doesn't have accounts\" }; // (refused above: for the type)\n\n const before = await refusalBeforeStop(s, id);\n if (before) return { ok: false, status: 409, error: `stays on ${acc.current}: ${before}` };\n\n if (!inHost) {\n // Nothing to stop: the files move and the account is recorded; the next start uses it.\n try {\n const moved = await moveAndRecord(s, to, acc.current);\n deps.note?.(id, `${name(s)}: moved to the ${to} account (${moved} entries moved; its next start uses it)`, 'action');\n deps.changed?.();\n return { ok: true, outcome: 'recorded', moved };\n } catch (err) {\n deps.note?.(id, `couldn't switch: ${msg(err)}`, 'warn');\n return { ok: false, status: 502, error: `stays on ${acc.current}: ${msg(err)}` };\n }\n }\n\n // At once, working or not: a switch is asked for when the account must change now (its limit ran out).\n targets.set(id, to);\n try {\n const { moved, interrupted, continued } = await perform(id, to);\n return {\n ok: true,\n outcome: 'switched',\n moved,\n ...(interrupted ? { interrupted: true } : {}),\n ...(continued ? { continued: true } : {}),\n };\n } catch (err) {\n return { ok: false, status: 502, error: msg(err) };\n } finally {\n targets.delete(id);\n deps.changed?.();\n }\n }\n\n return {\n switchAccount,\n /** The account a switch being done now moves it to; null: none. Its agent restarts with it. */\n restartsAnyway: (id: string): string | null => targets.get(id) ?? null,\n };\n}\n\nexport type AccountSwitcher = ReturnType<typeof createAccountSwitcher>;\n\n/** What a switch types to carry on a turn it found cut short. */\nexport const CONTINUE_TEXT = 'continue';\n\n/**\n * Tell a just-restarted Claude to continue, once it says it is at its prompt (`ready`): typed before Claude Code is up,\n * the nudge would be lost and the message wait for your next prompt. Asked every `everyMs` up to `timeoutMs`; false\n * when it never got ready (nothing is sent).\n */\nexport async function continueWhenReady(\n id: string,\n io: { ready: (id: string) => boolean; send: (id: string, text: string) => Promise<unknown>; sleep?: (ms: number) => Promise<void> },\n opts: { everyMs?: number; timeoutMs?: number } = {},\n): Promise<boolean> {\n const every = opts.everyMs ?? 1000;\n const tries = Math.max(1, Math.ceil((opts.timeoutMs ?? 60_000) / every));\n const sleep = io.sleep ?? ((ms: number) => new Promise<void>((r) => setTimeout(r, ms)));\n for (let i = 0; i < tries; i++) {\n if (io.ready(id)) {\n await io.send(id, CONTINUE_TEXT);\n return true;\n }\n await sleep(every);\n }\n return false;\n}\n\n/** The switcher's `note` as Activity runs: one run per note, a failure (`warn`) failing it, so the Activity dot lights. */\nexport function accountSwitchNote(\n activity: Pick<ActivityLog, 'start'>,\n label: (id: string) => string | null,\n): NonNullable<AccountSwitchDeps['note']> {\n return (id, text, level) => {\n const name = label(id);\n const run = activity.start('accounts', 'Switching a Claude account');\n run.note(`${name ?? id}: ${text}`, { level, sessionId: name ? id : undefined });\n if (level === 'warn') run.fail(text);\n else run.done(text);\n };\n}\n","import path from 'node:path';\nimport { agentOf, liveAgents } from '../agents/index.js';\nimport { isArchiving } from '../archive/archiving.js';\nimport { accountSwitchRefusal, peekPty, ptyPid, ptyPids, haltPty, resumePtyOnAccount } from '../pty/pty-pool.js';\nimport type { AccountSwitchDeps } from './account-switch.js';\nimport { loadHistory, setSessionAccount } from './history.js';\nimport { agentsBySession } from './live-agents.js';\nimport { findSession } from './web-state.js';\n\n/** The real inputs of createAccountSwitcher (account-switch.ts); work web gives `busy`, the Activity notes and the broadcast. */\nexport function defaultAccountSwitchDeps(opts: Pick<AccountSwitchDeps, 'busy'> & Partial<AccountSwitchDeps>): AccountSwitchDeps {\n return {\n session: findSession,\n beingArchived: isArchiving,\n accounts: (s) => {\n const accounts = agentOf(s).accounts;\n return accounts ? { list: accounts.list(), current: accounts.current(s) } : null;\n },\n switchFiles: (s, to) => {\n const accounts = agentOf(s).accounts;\n if (!accounts) throw new Error('its agent has no accounts');\n return accounts.switchFiles(s, to);\n },\n record: async (s, to) => {\n if (!(await setSessionAccount(s.target, s.branch, to))) throw new Error('unknown session');\n },\n hostRuns: peekPty,\n // Claude Code's process files say one runs for it that isn't the host's (terminal-ws.ts, session-control-routes.ts).\n runningOutside: (id) => {\n const hostPids = ptyPids();\n return (agentsBySession(liveAgents(), loadHistory()).get(id) ?? []).some((c) => !hostPids.has(c.pid));\n },\n othersRunningIn: (s, id) => {\n const folders = agentOf(s).accounts?.folders(s) ?? [];\n if (!folders.length) return null;\n const own = ptyPid(id);\n const key = (p: string) => {\n const r = path.resolve(p).replace(/[\\\\/]+$/, '');\n return process.platform === 'win32' ? r.toLowerCase() : r;\n };\n const wanted = new Map(folders.map((f) => [key(f), f]));\n const other = liveAgents().find((a) => a.pid !== own && wanted.has(key(a.cwd)));\n return other ? (wanted.get(key(other.cwd)) ?? other.cwd) : null;\n },\n hostRefusal: accountSwitchRefusal,\n halt: haltPty,\n resume: resumePtyOnAccount,\n ...opts,\n };\n}\n","import { agentOf, AccountAdminError, type AccountUsers, type AgentAccounts } from '../agents/index.js';\nimport { loadHistory } from './history.js';\nimport type { WorktreeSession } from './session-types.js';\n\n/**\n * Which sessions are on an account, and forgetting one (`work account remove`): agent-neutral — a session's account is\n * what its own agent's `accounts` part says (agents/types.ts); a session of an agent without accounts is on none.\n */\n\nconst label = (s: WorktreeSession) => `${s.target} · ${s.branch}`;\n\n/** The sessions on `name` of the agent `accounts` belongs to: live ones, and archived ones (a Restore would start one on it). */\nexport function sessionsOnAccount(\n name: string,\n accounts: Pick<AgentAccounts, 'current'>,\n sessions: readonly WorktreeSession[] = loadHistory(),\n): AccountUsers {\n const on = sessions.filter((s) => agentOf(s).accounts === accounts && accounts.current(s) === name);\n return { live: on.filter((s) => !s.archivedAt).map(label), archived: on.filter((s) => s.archivedAt).map(label) };\n}\n\n/**\n * Forget an account of an agent. Refused while a live session runs on it, and while archived ones use it unless `force`\n * (their Restore would then start on the default account): the sessions are read under the config's lock, right before\n * the write, so one made meanwhile on it still stops it.\n */\nexport async function removeAgentAccount(\n accounts: AgentAccounts,\n name: string,\n opts: { force?: boolean; sessions?: () => readonly WorktreeSession[] } = {},\n): Promise<void> {\n if (!accounts.admin) throw new AccountAdminError('its accounts are not managed by work');\n await accounts.admin.remove(name, () => {\n const users = sessionsOnAccount(name, accounts, opts.sessions ? opts.sessions() : loadHistory());\n return opts.force ? { live: users.live, archived: [] } : users;\n });\n}\n","import { AccountAdminError, type AgentAccountAdmin, type AgentAccounts } from '../agents/index.js';\nimport type { ActivityLog } from '../platform/activity.js';\nimport type { UsageAccount } from '../usage/usage.js';\nimport { sessionsOnAccount } from './account-users.js';\nimport { loadHistory } from './history.js';\nimport type { WorktreeSession } from './session-types.js';\n\n/**\n * The accounts of an agent as `work account` and the dashboard's Accounts page both manage them: one overview (who is\n * logged in, its last usage reading, the sessions on it), adding one and choosing the default through the agent's\n * `accounts.admin`, and the login terminals the page opens (start, stop, and work's skills put into a new account's\n * folder once its first login is over). Agent-neutral: everything of the agent's goes through its adapter.\n */\n\n/** One account, with what the page and `work account list` show of it. */\nexport interface AccountOverview {\n name: string;\n dir: string;\n isDefault: boolean;\n /** Null: can't tell (macOS keeps Claude's credentials in the keychain). */\n loggedIn: boolean | null;\n /** The sessions on it as \"target · branch\": the live ones, and the archived ones (whose Restore needs it). */\n live: string[];\n archived: string[];\n /** Its last usage reading (as recorded: a window past its reset is aged by whoever shows it); null: none yet. */\n usage: UsageAccount | null;\n}\n\nexport function accountOverview(\n accounts: AgentAccounts,\n readings: readonly UsageAccount[],\n sessions: readonly WorktreeSession[] = loadHistory(),\n): AccountOverview[] {\n return accounts.list().map((a) => {\n const users = sessionsOnAccount(a.name, accounts, sessions);\n return {\n name: a.name,\n dir: a.dir,\n isDefault: a.isDefault,\n loggedIn: a.loggedIn,\n live: users.live,\n archived: users.archived,\n usage: readings.find((r) => r.account === a.name) ?? null,\n };\n });\n}\n\n/** The agent's account administration, or the refusal every caller says the same way. */\nfunction adminOf(accounts: AgentAccounts | undefined): AgentAccountAdmin {\n if (!accounts?.admin) throw new AccountAdminError('its accounts are not managed by work');\n return accounts.admin;\n}\n\n/** Record a new account (its folder: `folder`, else the agent's default place, made when missing). Returns the folder. */\nexport async function addAgentAccount(accounts: AgentAccounts | undefined, name: string, folder?: string): Promise<string> {\n return adminOf(accounts).add(name, folder?.trim() || undefined);\n}\n\n/** New sessions use this account. */\nexport async function setDefaultAgentAccount(accounts: AgentAccounts | undefined, name: string): Promise<void> {\n return adminOf(accounts).setDefault(name);\n}\n\nexport interface SkillsOutcome {\n ok: boolean;\n message: string;\n}\n\n/** What the login terminals need: the account lookup, the PTY host, and work's skills install for one account. */\nexport interface AccountLoginDeps {\n has(name: string): boolean;\n /** Start (or find running) the account's login terminal in the PTY host; its id. */\n start(name: string): Promise<string>;\n stop(name: string): Promise<void>;\n /** Put work's skills into the account's folder (slow: the agent's own CLI, several times). */\n installSkills(name: string): Promise<SkillsOutcome>;\n /** How an install went (the Activity panel). */\n note?(name: string, outcome: SkillsOutcome): void;\n}\n\nexport interface AccountLogins {\n /** The login terminal's id. Refused (AccountAdminError) for an account there isn't. */\n start(name: string): Promise<string>;\n /**\n * Stop the login terminal. The first time for an account in this process, work's skills go into its folder after —\n * as `work account add` installs them once the login is over (installing while the agent writes its settings would\n * race it). `skills`: that install, under way (null: none started); nobody need wait for it.\n */\n stop(name: string): Promise<{ skills: Promise<SkillsOutcome> | null }>;\n}\n\nexport function createAccountLogins(deps: AccountLoginDeps): AccountLogins {\n const installed = new Set<string>();\n const installing = new Set<string>();\n return {\n async start(name) {\n if (!deps.has(name)) throw new AccountAdminError(`no account “${name}”`);\n return deps.start(name);\n },\n async stop(name) {\n await deps.stop(name);\n if (!deps.has(name) || installed.has(name) || installing.has(name)) return { skills: null };\n installing.add(name);\n const skills = deps\n .installSkills(name)\n .catch((e: unknown): SkillsOutcome => ({ ok: false, message: e instanceof Error ? e.message : String(e) }))\n .then((r) => {\n installing.delete(name);\n // A failed install is tried again at the next close.\n if (r.ok) installed.add(name);\n deps.note?.(name, r);\n return r;\n });\n return { skills };\n },\n };\n}\n\n/** How a skills install for an account went, as an Activity run (kind `accounts`): a failure lights the Activity dot. */\nexport function accountSkillsNote(activity: Pick<ActivityLog, 'start'>): NonNullable<AccountLoginDeps['note']> {\n return (name, r) => {\n const run = activity.start('accounts', `Work's skills for the ${name} account`);\n if (r.ok) run.done(r.message);\n else {\n run.note(`${r.message} — or run \\`work account skills ${name}\\``, { level: 'warn' });\n run.fail(r.message);\n }\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BO,SAAS,cAAc,IAAY,GAAsC;AAC9E,MAAI,EAAE,SAAU,QAAO,EAAE,QAAQ,KAAK,OAAO,mCAAmC;AAChF,MAAI,CAAC,EAAE,SAAU,QAAO,EAAE,QAAQ,KAAK,OAAO,kCAAkC;AAChF,QAAM,SAAS,EAAE,SAAS,KAAK,KAAK,CAAC,MAA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AAE,EAAE,EACzG,KAAK,CAAC,MAAM;AACX,mBAAW,OAAO,IAAI;AAEtB,YAAI,EAAE,GAAI,WAAU,IAAI,IAAI;AAC5B,aAAK,OAAO,MAAM,CAAC;AACnB,eAAO;AAAA,MACT,CAAC;AACH,aAAO,EAAE,OAAO;AAAA,IAClB;AAAA,EACF;AACF;AAGO,SAAS,kBAAkB,UAA6E;AAC7G,SAAO,CAAC,MAAM,MAAM;AAClB,UAAM,MAAM,SAAS,MAAM,YAAY,yBAAyB,IAAI,UAAU;AAC9E,QAAI,EAAE,GAAI,KAAI,KAAK,EAAE,OAAO;AAAA,SACvB;AACH,UAAI,KAAK,GAAG,EAAE,OAAO,wCAAmC,IAAI,MAAM,EAAE,OAAO,OAAO,CAAC;AACnF,UAAI,KAAK,EAAE,OAAO;AAAA,IACpB;AAAA,EACF;AACF;","names":["label"]}
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-XBWS77S2.js";
14
14
  import {
15
15
  stageOfPr
16
- } from "./chunk-EDOYMSIA.js";
16
+ } from "./chunk-VPFWY2GG.js";
17
17
  import {
18
18
  sessionIdFor
19
19
  } from "./chunk-QGUBOOEN.js";
@@ -245,4 +245,4 @@ export {
245
245
  createSessionBranches,
246
246
  sessionBranchesNow
247
247
  };
248
- //# sourceMappingURL=chunk-AO2IFRQW.js.map
248
+ //# sourceMappingURL=chunk-P3QIN44Y.js.map
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  owedToYou,
4
4
  stageWaiting
5
- } from "./chunk-EDOYMSIA.js";
5
+ } from "./chunk-VPFWY2GG.js";
6
6
 
7
7
  // src/core/sessions/session-view.ts
8
8
  var RECENT_MS = 24 * 36e5;
@@ -77,4 +77,4 @@ export {
77
77
  OWED_LONG,
78
78
  waitingOnOthers
79
79
  };
80
- //# sourceMappingURL=chunk-SE3M6KDX.js.map
80
+ //# sourceMappingURL=chunk-QAAYE6IY.js.map
@@ -4,7 +4,7 @@ import {
4
4
  workSteps,
5
5
  workedBetween,
6
6
  workedByDay
7
- } from "./chunk-EDOYMSIA.js";
7
+ } from "./chunk-VPFWY2GG.js";
8
8
  import {
9
9
  dayKey
10
10
  } from "./chunk-NEJVK5CF.js";
@@ -153,4 +153,4 @@ export {
153
153
  sessionTokens,
154
154
  sessionWorkTime
155
155
  };
156
- //# sourceMappingURL=chunk-KLUN6KKF.js.map
156
+ //# sourceMappingURL=chunk-R4DGGYME.js.map
@@ -6,7 +6,7 @@ import {
6
6
  lastTurnEntryMs,
7
7
  readSessionActivity,
8
8
  readStatus
9
- } from "./chunk-EDOYMSIA.js";
9
+ } from "./chunk-VPFWY2GG.js";
10
10
  import {
11
11
  sessionIdFor
12
12
  } from "./chunk-QGUBOOEN.js";
@@ -45,4 +45,4 @@ export {
45
45
  sessionStatusView,
46
46
  shownState
47
47
  };
48
- //# sourceMappingURL=chunk-UPYZYJPK.js.map
48
+ //# sourceMappingURL=chunk-RDRQDE6J.js.map
@@ -28,7 +28,7 @@ import {
28
28
  parseAzurePrUrl,
29
29
  parseAzureThreadId,
30
30
  parseGithubPrUrl
31
- } from "./chunk-EDOYMSIA.js";
31
+ } from "./chunk-VPFWY2GG.js";
32
32
  import {
33
33
  json
34
34
  } from "./chunk-QGUBOOEN.js";
@@ -1575,4 +1575,4 @@ export {
1575
1575
  hostOfThread,
1576
1576
  hostOfPrUrl
1577
1577
  };
1578
- //# sourceMappingURL=chunk-FO37VXQE.js.map
1578
+ //# sourceMappingURL=chunk-RE6WWXD6.js.map