@moberg_hr/work-tree 2.22.2 → 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.
- package/dist/{account-37DWHKUY.js → account-XM6AGLTP.js} +16 -12
- package/dist/account-XM6AGLTP.js.map +1 -0
- package/dist/{add-repo-DDJ3KYAR.js → add-repo-Q2QRLPCY.js} +6 -6
- package/dist/{answer-6LVQFTR7.js → answer-EN2SUUMI.js} +4 -4
- package/dist/{attach-MWUYIY3K.js → attach-WYSTXYA7.js} +8 -8
- package/dist/bin.js +2 -2
- package/dist/{block-IJDNEBIA.js → block-O5XC4JSQ.js} +6 -6
- package/dist/{broadcast-YRQWTE3C.js → broadcast-MT77AQG5.js} +2 -2
- package/dist/{catchup-DJ4GAE4C.js → catchup-WNXY4QRC.js} +7 -7
- package/dist/{child-AXSUNVZF.js → child-4OQQ4RMP.js} +3 -3
- package/dist/{chunk-5PPRIUIC.js → chunk-4AAFXLXN.js} +3 -3
- package/dist/{chunk-OF3QDYVU.js → chunk-4VM6GMMI.js} +2 -2
- package/dist/{chunk-MVC4H7UY.js → chunk-5TW5NKYZ.js} +5 -5
- package/dist/{chunk-FIEEJ3UL.js → chunk-66OWGZAF.js} +2 -2
- package/dist/{chunk-NO27TCWS.js → chunk-7TAPYCLF.js} +56 -56
- package/dist/{chunk-IQF5ID6Z.js → chunk-B4VQXZV4.js} +2 -2
- package/dist/{chunk-3ELAI6JY.js → chunk-E5N4CJDI.js} +4 -4
- package/dist/{chunk-ZX6AIIN4.js → chunk-EH4H2I72.js} +3 -3
- package/dist/{chunk-6O4FII75.js → chunk-EXNRUU7Z.js} +3 -3
- package/dist/{chunk-SIXBZSYC.js → chunk-GGBFSQEX.js} +2 -2
- package/dist/{chunk-7PIMCNLP.js → chunk-HF3ZGAW7.js} +3 -3
- package/dist/{chunk-YFEPBQUA.js → chunk-I6GXPPEH.js} +4 -4
- package/dist/{chunk-BIOSMX6Z.js → chunk-J4CEJOSI.js} +4 -4
- package/dist/{chunk-Y5JKFPII.js → chunk-JATQW6OX.js} +3 -3
- package/dist/{chunk-UEZASL3E.js → chunk-KSG6RRGI.js} +2 -2
- package/dist/{chunk-7PAVUZZJ.js → chunk-LVRV5UED.js} +4 -4
- package/dist/{chunk-FPX33QEY.js → chunk-MD4G7DIO.js} +5 -5
- package/dist/{chunk-TIGPNEGX.js → chunk-MHKDX7CD.js} +8 -8
- package/dist/{chunk-RSZ5DCM4.js → chunk-MRMFJQZI.js} +5 -5
- package/dist/{chunk-FWLYUYJN.js → chunk-NHDZ3ECC.js} +43 -11
- package/dist/chunk-NHDZ3ECC.js.map +1 -0
- package/dist/{chunk-7GFPJXOJ.js → chunk-P3QIN44Y.js} +2 -2
- package/dist/{chunk-RHWL5IJC.js → chunk-QAAYE6IY.js} +2 -2
- package/dist/{chunk-WUNXXRAP.js → chunk-R4DGGYME.js} +2 -2
- package/dist/{chunk-37Y65CNK.js → chunk-RDRQDE6J.js} +2 -2
- package/dist/{chunk-ZHPDAUWH.js → chunk-RE6WWXD6.js} +2 -2
- package/dist/{chunk-RLDMZLAQ.js → chunk-RFE3HK2L.js} +3 -3
- package/dist/{chunk-XNHL3E4V.js → chunk-SLA7CB3C.js} +4 -4
- package/dist/{chunk-UWRFPX5Q.js → chunk-T4Y2Z6HB.js} +3 -3
- package/dist/chunk-TJ5XUAJK.js +9 -0
- package/dist/{chunk-6ZJ54FJP.js → chunk-TZ4BIOMS.js} +3 -3
- package/dist/{chunk-NQDRE5QJ.js → chunk-VOHPXD2P.js} +2 -2
- package/dist/{chunk-NBHTNKDM.js → chunk-VPFWY2GG.js} +1 -1
- package/dist/chunk-VPFWY2GG.js.map +1 -0
- package/dist/{chunk-VUGFAGL5.js → chunk-VT6FJG3P.js} +2 -2
- package/dist/{chunk-LJXQXYSC.js → chunk-WANJYVUP.js} +2 -2
- package/dist/{chunk-2RFBSYDL.js → chunk-WDKHEFR6.js} +3 -3
- package/dist/{chunk-FNFU4QZP.js → chunk-WFKL2SJ3.js} +2 -2
- package/dist/{chunk-H3W335HC.js → chunk-XYDGDIGZ.js} +3 -3
- package/dist/{chunk-CR7KJ4PE.js → chunk-XZF526OU.js} +6 -6
- package/dist/{chunk-KKN5YKPX.js → chunk-YYFYCOGY.js} +3 -3
- package/dist/{chunk-OGIJE6B3.js → chunk-Z52GYYGA.js} +2 -2
- package/dist/{chunk-V4MABHCF.js → chunk-ZU36UJVG.js} +3 -3
- package/dist/{chunk-NYN5MJEV.js → chunk-ZWD3QJLP.js} +2 -2
- package/dist/{cleanup-DN4H43RE.js → cleanup-OZFN7I2N.js} +20 -20
- package/dist/{cli-7Z3SDBOO.js → cli-RA5CKMTR.js} +3 -3
- package/dist/{color-ENEYNILL.js → color-47LQGPVK.js} +4 -4
- package/dist/{config-SWQ5QZWI.js → config-U7RPODOW.js} +3 -3
- package/dist/{coordinate-73WGNBTT.js → coordinate-UO432TPP.js} +4 -4
- package/dist/{diff-I6ODIOEF.js → diff-TXGP7XHY.js} +4 -4
- package/dist/{digest-44QUV6XY.js → digest-OEU7P5GQ.js} +4 -4
- package/dist/{fork-JSYC6VP4.js → fork-PBSBRV6J.js} +17 -17
- package/dist/{history-5W4SXTTY.js → history-WF7Z54MS.js} +2 -2
- package/dist/{hook-K62MH6RA.js → hook-7INHBIR6.js} +5 -5
- package/dist/{hydrate-3LOALPJG.js → hydrate-RRASKNTO.js} +2 -2
- package/dist/{init-C6JA37UJ.js → init-BPQTPNQ4.js} +6 -6
- package/dist/{keep-IIVBHYTG.js → keep-G4WED2HV.js} +4 -4
- package/dist/{list-LGONVFPI.js → list-XVLFF6AY.js} +2 -2
- package/dist/{move-K7BY73WF.js → move-UXB5XDIY.js} +7 -7
- package/dist/{note-YRPPN6S5.js → note-3JZISZMY.js} +4 -4
- package/dist/{overlaps-42USMLAZ.js → overlaps-5VSNWHEA.js} +5 -5
- package/dist/{pin-NDWEAY2R.js → pin-QJZZZETK.js} +4 -4
- package/dist/{pr-VMNZGFUF.js → pr-P5JHMUIS.js} +12 -12
- package/dist/{prune-WETEKBQX.js → prune-7VM47E6R.js} +18 -18
- package/dist/{pty-host-NANTBLHW.js → pty-host-VOE63H3Q.js} +5 -5
- package/dist/{read-VL6ZL7GI.js → read-Y75YWFMD.js} +4 -4
- package/dist/{recent-UQP3IR3S.js → recent-O67MPZAU.js} +6 -6
- package/dist/{remove-4QHUYGE2.js → remove-L7UKL4HS.js} +19 -19
- package/dist/{report-YES72I5M.js → report-F2ASNP5G.js} +3 -3
- package/dist/{restart-E4FSMFVK.js → restart-QJPCIHLM.js} +4 -4
- package/dist/{resume-MYXJKGMG.js → resume-6GHK46FG.js} +6 -6
- package/dist/{review-IVMH2HDQ.js → review-XUWVO4XU.js} +3 -3
- package/dist/{run-YW7L4AND.js → run-XHU4OPHL.js} +2 -2
- package/dist/{screen-IZTZAK74.js → screen-BE5IFYMV.js} +4 -4
- package/dist/{search-CVFYS2CC.js → search-AHBK3Q6S.js} +2 -2
- package/dist/{section-7LOOR4LX.js → section-VHRFW7OS.js} +4 -4
- package/dist/{send-RQGTUJ5E.js → send-QN56VR4Q.js} +5 -5
- package/dist/{sessions-RFSGXKGU.js → sessions-36NA666U.js} +13 -13
- package/dist/{show-LVKLIXSK.js → show-5YRGL7E2.js} +3 -3
- package/dist/{snooze-Z2UEHKZL.js → snooze-YQAIVXJ3.js} +4 -4
- package/dist/{start-NTPMFY6T.js → start-RYQVC4AV.js} +4 -4
- package/dist/{status-4RJXTMEX.js → status-IJARRSRU.js} +5 -5
- package/dist/{stop-ATV324OT.js → stop-XUYL3ICW.js} +4 -4
- package/dist/{sync-NWES4BRO.js → sync-ZGU3G5OD.js} +18 -18
- package/dist/{time-YDXPHJAV.js → time-AQ3HEFPA.js} +5 -5
- package/dist/{timesheet-Z5SNLTVF.js → timesheet-DM2YY3ZP.js} +7 -7
- package/dist/{tree-MU5RQGDG.js → tree-2YWTOJEK.js} +16 -16
- package/dist/{update-35KH4XZ7.js → update-7YGHGCW5.js} +9 -9
- package/dist/{usage-AWYA6R6J.js → usage-IEH7X5QH.js} +4 -4
- package/dist/{wait-H4YPUGGF.js → wait-I4UVNBU2.js} +5 -5
- package/dist/wd-bin.js +2 -2
- package/dist/web/assets/{PtyView-D55ZhVC2.js → PtyView-BPgPdKsH.js} +2 -2
- package/dist/web/assets/{PtyView-D55ZhVC2.js.map → PtyView-BPgPdKsH.js.map} +1 -1
- package/dist/web/assets/{index-36vcNwHw.js → index-fsWlaZJc.js} +6 -6
- package/dist/web/assets/index-fsWlaZJc.js.map +1 -0
- package/dist/web/index.html +1 -1
- package/dist/{web-KHE3G6VQ.js → web-W3YHTTSV.js} +66 -44
- package/dist/web-W3YHTTSV.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/account-37DWHKUY.js.map +0 -1
- package/dist/chunk-76NYQDUN.js +0 -9
- package/dist/chunk-FWLYUYJN.js.map +0 -1
- package/dist/chunk-NBHTNKDM.js.map +0 -1
- package/dist/web/assets/index-36vcNwHw.js.map +0 -1
- package/dist/web-KHE3G6VQ.js.map +0 -1
- /package/dist/{add-repo-DDJ3KYAR.js.map → add-repo-Q2QRLPCY.js.map} +0 -0
- /package/dist/{answer-6LVQFTR7.js.map → answer-EN2SUUMI.js.map} +0 -0
- /package/dist/{attach-MWUYIY3K.js.map → attach-WYSTXYA7.js.map} +0 -0
- /package/dist/{block-IJDNEBIA.js.map → block-O5XC4JSQ.js.map} +0 -0
- /package/dist/{broadcast-YRQWTE3C.js.map → broadcast-MT77AQG5.js.map} +0 -0
- /package/dist/{catchup-DJ4GAE4C.js.map → catchup-WNXY4QRC.js.map} +0 -0
- /package/dist/{child-AXSUNVZF.js.map → child-4OQQ4RMP.js.map} +0 -0
- /package/dist/{chunk-5PPRIUIC.js.map → chunk-4AAFXLXN.js.map} +0 -0
- /package/dist/{chunk-OF3QDYVU.js.map → chunk-4VM6GMMI.js.map} +0 -0
- /package/dist/{chunk-MVC4H7UY.js.map → chunk-5TW5NKYZ.js.map} +0 -0
- /package/dist/{chunk-FIEEJ3UL.js.map → chunk-66OWGZAF.js.map} +0 -0
- /package/dist/{chunk-NO27TCWS.js.map → chunk-7TAPYCLF.js.map} +0 -0
- /package/dist/{chunk-IQF5ID6Z.js.map → chunk-B4VQXZV4.js.map} +0 -0
- /package/dist/{chunk-3ELAI6JY.js.map → chunk-E5N4CJDI.js.map} +0 -0
- /package/dist/{chunk-ZX6AIIN4.js.map → chunk-EH4H2I72.js.map} +0 -0
- /package/dist/{chunk-6O4FII75.js.map → chunk-EXNRUU7Z.js.map} +0 -0
- /package/dist/{chunk-SIXBZSYC.js.map → chunk-GGBFSQEX.js.map} +0 -0
- /package/dist/{chunk-7PIMCNLP.js.map → chunk-HF3ZGAW7.js.map} +0 -0
- /package/dist/{chunk-YFEPBQUA.js.map → chunk-I6GXPPEH.js.map} +0 -0
- /package/dist/{chunk-BIOSMX6Z.js.map → chunk-J4CEJOSI.js.map} +0 -0
- /package/dist/{chunk-Y5JKFPII.js.map → chunk-JATQW6OX.js.map} +0 -0
- /package/dist/{chunk-UEZASL3E.js.map → chunk-KSG6RRGI.js.map} +0 -0
- /package/dist/{chunk-7PAVUZZJ.js.map → chunk-LVRV5UED.js.map} +0 -0
- /package/dist/{chunk-FPX33QEY.js.map → chunk-MD4G7DIO.js.map} +0 -0
- /package/dist/{chunk-TIGPNEGX.js.map → chunk-MHKDX7CD.js.map} +0 -0
- /package/dist/{chunk-RSZ5DCM4.js.map → chunk-MRMFJQZI.js.map} +0 -0
- /package/dist/{chunk-7GFPJXOJ.js.map → chunk-P3QIN44Y.js.map} +0 -0
- /package/dist/{chunk-RHWL5IJC.js.map → chunk-QAAYE6IY.js.map} +0 -0
- /package/dist/{chunk-WUNXXRAP.js.map → chunk-R4DGGYME.js.map} +0 -0
- /package/dist/{chunk-37Y65CNK.js.map → chunk-RDRQDE6J.js.map} +0 -0
- /package/dist/{chunk-ZHPDAUWH.js.map → chunk-RE6WWXD6.js.map} +0 -0
- /package/dist/{chunk-RLDMZLAQ.js.map → chunk-RFE3HK2L.js.map} +0 -0
- /package/dist/{chunk-XNHL3E4V.js.map → chunk-SLA7CB3C.js.map} +0 -0
- /package/dist/{chunk-UWRFPX5Q.js.map → chunk-T4Y2Z6HB.js.map} +0 -0
- /package/dist/{chunk-76NYQDUN.js.map → chunk-TJ5XUAJK.js.map} +0 -0
- /package/dist/{chunk-6ZJ54FJP.js.map → chunk-TZ4BIOMS.js.map} +0 -0
- /package/dist/{chunk-NQDRE5QJ.js.map → chunk-VOHPXD2P.js.map} +0 -0
- /package/dist/{chunk-VUGFAGL5.js.map → chunk-VT6FJG3P.js.map} +0 -0
- /package/dist/{chunk-LJXQXYSC.js.map → chunk-WANJYVUP.js.map} +0 -0
- /package/dist/{chunk-2RFBSYDL.js.map → chunk-WDKHEFR6.js.map} +0 -0
- /package/dist/{chunk-FNFU4QZP.js.map → chunk-WFKL2SJ3.js.map} +0 -0
- /package/dist/{chunk-H3W335HC.js.map → chunk-XYDGDIGZ.js.map} +0 -0
- /package/dist/{chunk-CR7KJ4PE.js.map → chunk-XZF526OU.js.map} +0 -0
- /package/dist/{chunk-KKN5YKPX.js.map → chunk-YYFYCOGY.js.map} +0 -0
- /package/dist/{chunk-OGIJE6B3.js.map → chunk-Z52GYYGA.js.map} +0 -0
- /package/dist/{chunk-V4MABHCF.js.map → chunk-ZU36UJVG.js.map} +0 -0
- /package/dist/{chunk-NYN5MJEV.js.map → chunk-ZWD3QJLP.js.map} +0 -0
- /package/dist/{cleanup-DN4H43RE.js.map → cleanup-OZFN7I2N.js.map} +0 -0
- /package/dist/{cli-7Z3SDBOO.js.map → cli-RA5CKMTR.js.map} +0 -0
- /package/dist/{color-ENEYNILL.js.map → color-47LQGPVK.js.map} +0 -0
- /package/dist/{config-SWQ5QZWI.js.map → config-U7RPODOW.js.map} +0 -0
- /package/dist/{coordinate-73WGNBTT.js.map → coordinate-UO432TPP.js.map} +0 -0
- /package/dist/{diff-I6ODIOEF.js.map → diff-TXGP7XHY.js.map} +0 -0
- /package/dist/{digest-44QUV6XY.js.map → digest-OEU7P5GQ.js.map} +0 -0
- /package/dist/{fork-JSYC6VP4.js.map → fork-PBSBRV6J.js.map} +0 -0
- /package/dist/{history-5W4SXTTY.js.map → history-WF7Z54MS.js.map} +0 -0
- /package/dist/{hook-K62MH6RA.js.map → hook-7INHBIR6.js.map} +0 -0
- /package/dist/{hydrate-3LOALPJG.js.map → hydrate-RRASKNTO.js.map} +0 -0
- /package/dist/{init-C6JA37UJ.js.map → init-BPQTPNQ4.js.map} +0 -0
- /package/dist/{keep-IIVBHYTG.js.map → keep-G4WED2HV.js.map} +0 -0
- /package/dist/{list-LGONVFPI.js.map → list-XVLFF6AY.js.map} +0 -0
- /package/dist/{move-K7BY73WF.js.map → move-UXB5XDIY.js.map} +0 -0
- /package/dist/{note-YRPPN6S5.js.map → note-3JZISZMY.js.map} +0 -0
- /package/dist/{overlaps-42USMLAZ.js.map → overlaps-5VSNWHEA.js.map} +0 -0
- /package/dist/{pin-NDWEAY2R.js.map → pin-QJZZZETK.js.map} +0 -0
- /package/dist/{pr-VMNZGFUF.js.map → pr-P5JHMUIS.js.map} +0 -0
- /package/dist/{prune-WETEKBQX.js.map → prune-7VM47E6R.js.map} +0 -0
- /package/dist/{pty-host-NANTBLHW.js.map → pty-host-VOE63H3Q.js.map} +0 -0
- /package/dist/{read-VL6ZL7GI.js.map → read-Y75YWFMD.js.map} +0 -0
- /package/dist/{recent-UQP3IR3S.js.map → recent-O67MPZAU.js.map} +0 -0
- /package/dist/{remove-4QHUYGE2.js.map → remove-L7UKL4HS.js.map} +0 -0
- /package/dist/{report-YES72I5M.js.map → report-F2ASNP5G.js.map} +0 -0
- /package/dist/{restart-E4FSMFVK.js.map → restart-QJPCIHLM.js.map} +0 -0
- /package/dist/{resume-MYXJKGMG.js.map → resume-6GHK46FG.js.map} +0 -0
- /package/dist/{review-IVMH2HDQ.js.map → review-XUWVO4XU.js.map} +0 -0
- /package/dist/{run-YW7L4AND.js.map → run-XHU4OPHL.js.map} +0 -0
- /package/dist/{screen-IZTZAK74.js.map → screen-BE5IFYMV.js.map} +0 -0
- /package/dist/{search-CVFYS2CC.js.map → search-AHBK3Q6S.js.map} +0 -0
- /package/dist/{section-7LOOR4LX.js.map → section-VHRFW7OS.js.map} +0 -0
- /package/dist/{send-RQGTUJ5E.js.map → send-QN56VR4Q.js.map} +0 -0
- /package/dist/{sessions-RFSGXKGU.js.map → sessions-36NA666U.js.map} +0 -0
- /package/dist/{show-LVKLIXSK.js.map → show-5YRGL7E2.js.map} +0 -0
- /package/dist/{snooze-Z2UEHKZL.js.map → snooze-YQAIVXJ3.js.map} +0 -0
- /package/dist/{start-NTPMFY6T.js.map → start-RYQVC4AV.js.map} +0 -0
- /package/dist/{status-4RJXTMEX.js.map → status-IJARRSRU.js.map} +0 -0
- /package/dist/{stop-ATV324OT.js.map → stop-XUYL3ICW.js.map} +0 -0
- /package/dist/{sync-NWES4BRO.js.map → sync-ZGU3G5OD.js.map} +0 -0
- /package/dist/{time-YDXPHJAV.js.map → time-AQ3HEFPA.js.map} +0 -0
- /package/dist/{timesheet-Z5SNLTVF.js.map → timesheet-DM2YY3ZP.js.map} +0 -0
- /package/dist/{tree-MU5RQGDG.js.map → tree-2YWTOJEK.js.map} +0 -0
- /package/dist/{update-35KH4XZ7.js.map → update-7YGHGCW5.js.map} +0 -0
- /package/dist/{usage-AWYA6R6J.js.map → usage-IEH7X5QH.js.map} +0 -0
- /package/dist/{wait-H4YPUGGF.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-
|
|
4
|
+
} from "./chunk-WDKHEFR6.js";
|
|
5
5
|
import {
|
|
6
6
|
ensurePty,
|
|
7
7
|
peekPty
|
|
8
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
177
|
+
//# sourceMappingURL=chunk-E5N4CJDI.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
hostForOrigin,
|
|
13
13
|
hostOfPrUrl
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
431
|
+
//# sourceMappingURL=chunk-EXNRUU7Z.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFsWatcher,
|
|
4
4
|
findSessionById
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
+
} from "./chunk-ZWD3QJLP.js";
|
|
8
8
|
import {
|
|
9
9
|
findSession as findSession2
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
27
|
+
} from "./chunk-4VM6GMMI.js";
|
|
28
28
|
import {
|
|
29
29
|
noClaudeBecause
|
|
30
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
+
} from "./chunk-HF3ZGAW7.js";
|
|
5
5
|
import {
|
|
6
6
|
defaultHost,
|
|
7
7
|
hostForOrigin,
|
|
8
8
|
hostOfThread,
|
|
9
9
|
knownHosts
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
+
} from "./chunk-R4DGGYME.js";
|
|
5
5
|
import {
|
|
6
6
|
runInternal
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
25
|
+
} from "./chunk-RE6WWXD6.js";
|
|
26
26
|
import {
|
|
27
27
|
loadHistory,
|
|
28
28
|
runGitAsync
|
|
29
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
15
|
+
} from "./chunk-J4CEJOSI.js";
|
|
16
16
|
import {
|
|
17
17
|
saveIgnored,
|
|
18
18
|
teardownWorktree,
|
|
19
19
|
worktreeFor
|
|
20
|
-
} from "./chunk-
|
|
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-
|
|
26
|
+
} from "./chunk-RDRQDE6J.js";
|
|
27
27
|
import {
|
|
28
28
|
runInternal
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XYDGDIGZ.js";
|
|
30
30
|
import {
|
|
31
31
|
readPendingForSession
|
|
32
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
+
} from "./chunk-J4CEJOSI.js";
|
|
11
11
|
import {
|
|
12
12
|
teardownWorktree
|
|
13
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
12
|
+
} from "./chunk-J4CEJOSI.js";
|
|
13
13
|
import {
|
|
14
14
|
findSession
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-GGBFSQEX.js";
|
|
16
16
|
import {
|
|
17
17
|
isArchiving,
|
|
18
18
|
loadHistory,
|
|
19
19
|
setSessionAccount
|
|
20
|
-
} from "./chunk-
|
|
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
|
|
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
|
-
|
|
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 {
|
|
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-
|
|
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,MAAM,EAAE,SAAS,EAAE;AACxD,MAAI,CAAC,OAAQ,QAAO,EAAE,QAAQ,KAAK,OAAO,oBAAe,EAAE,qCAAgC;AAC3F,MAAI,OAAO,aAAa;AACtB,WAAO,EAAE,QAAQ,KAAK,OAAO,gCAA2B,EAAE,kCAA6B,EAAE,sCAAsC;AACjI,MAAI,EAAE,cAAc,KAAM,QAAO,EAAE,QAAQ,KAAK,OAAO,sCAAsC,EAAE,aAAa,iBAAiB,IAAI;AACjI,MAAI,EAAE,SAAS,YAAY,GAAI,QAAO,EAAE,QAAQ,KAAK,OAAO,4BAAuB,EAAE,SAAI;AACzF,MAAI,CAAC,EAAE,UAAU,EAAE;AACjB,WAAO;AAAA,MACL,QAAQ;AAAA,MACR,OAAO;AAAA,IACT;AACF,SAAO;AACT;;;ACsBO,IAAM,cAAc;AAEpB,IAAM,YAAY;AAEzB,IAAM,MAAM,CAAC,QAAkB,eAAe,QAAQ,IAAI,UAAU,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BWS77S2.js";
|
|
14
14
|
import {
|
|
15
15
|
stageOfPr
|
|
16
|
-
} from "./chunk-
|
|
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-
|
|
248
|
+
//# sourceMappingURL=chunk-P3QIN44Y.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
owedToYou,
|
|
4
4
|
stageWaiting
|
|
5
|
-
} from "./chunk-
|
|
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-
|
|
80
|
+
//# sourceMappingURL=chunk-QAAYE6IY.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
workSteps,
|
|
5
5
|
workedBetween,
|
|
6
6
|
workedByDay
|
|
7
|
-
} from "./chunk-
|
|
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-
|
|
156
|
+
//# sourceMappingURL=chunk-R4DGGYME.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
lastTurnEntryMs,
|
|
7
7
|
readSessionActivity,
|
|
8
8
|
readStatus
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
48
|
+
//# sourceMappingURL=chunk-RDRQDE6J.js.map
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
parseAzurePrUrl,
|
|
29
29
|
parseAzureThreadId,
|
|
30
30
|
parseGithubPrUrl
|
|
31
|
-
} from "./chunk-
|
|
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-
|
|
1578
|
+
//# sourceMappingURL=chunk-RE6WWXD6.js.map
|