@moberg_hr/work-tree 2.12.3 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-PE4R56QL.js → account-2C2YDOIV.js} +10 -10
- package/dist/{add-repo-AWETXFQI.js → add-repo-ENM45555.js} +6 -6
- package/dist/{answer-LVALFOZK.js → answer-N5BGRCZE.js} +4 -4
- package/dist/{attach-BSNR3XMY.js → attach-FRLECF6U.js} +8 -8
- package/dist/bin.js +2 -2
- package/dist/{block-MEE2T22H.js → block-SPIM2L7Z.js} +6 -6
- package/dist/{broadcast-JBNGNKQ4.js → broadcast-I6A7Z3UL.js} +2 -2
- package/dist/{catchup-HQ3EOMAE.js → catchup-XJ4EOYUC.js} +7 -7
- package/dist/{chunk-GXJ37PQY.js → chunk-257RJ7GN.js} +3 -3
- package/dist/{chunk-GY5FELHG.js → chunk-3IUD7OOG.js} +3 -3
- package/dist/{chunk-E3XUCHIY.js → chunk-3NSUFJVB.js} +8 -8
- package/dist/{chunk-L6XZYMOS.js → chunk-4SRABK2D.js} +3 -3
- package/dist/{chunk-XDNYUZZN.js → chunk-4UBX7TEX.js} +3 -3
- package/dist/{chunk-LAKPOS5Z.js → chunk-5IEFHZWE.js} +2 -2
- package/dist/{chunk-3VRNXFIZ.js → chunk-5WBYGJS3.js} +2 -2
- package/dist/{chunk-VTRDEXTJ.js → chunk-7CABBTGX.js} +1 -1
- package/dist/chunk-7CABBTGX.js.map +1 -0
- package/dist/{chunk-NS57XEVZ.js → chunk-7KLDOQG6.js} +5 -5
- package/dist/{chunk-3IGVY5S5.js → chunk-AF6XEJTP.js} +2 -2
- package/dist/{chunk-IYIVSXTI.js → chunk-AIQ4I4AT.js} +2 -2
- package/dist/{chunk-JMLRBCYG.js → chunk-BVH6EFV5.js} +4 -4
- package/dist/{chunk-ZJGHHHTW.js → chunk-CJSH42MW.js} +51 -50
- package/dist/chunk-CJSH42MW.js.map +1 -0
- package/dist/{chunk-DVHRE4AY.js → chunk-EOK3XZCM.js} +2 -2
- package/dist/{chunk-FJJDZ7TA.js → chunk-EZPZNHEU.js} +3 -3
- package/dist/{chunk-TEB3INZR.js → chunk-FUU47TYZ.js} +3 -3
- package/dist/{chunk-MWDDSULR.js → chunk-GMZV4RRV.js} +5 -5
- package/dist/{chunk-2MPLY2Z2.js → chunk-JMFEIHMB.js} +2 -2
- package/dist/{chunk-KCXJ3NKO.js → chunk-JPVP46D4.js} +2 -2
- package/dist/{chunk-ITZBHSTZ.js → chunk-KTJ5QJCN.js} +2 -2
- package/dist/{chunk-QOBQ27VG.js → chunk-L562BYTL.js} +6 -6
- package/dist/{chunk-KXGLGXAE.js → chunk-MGKCH7SE.js} +3 -3
- package/dist/{chunk-QIIZPLOL.js → chunk-MJZ6XOXR.js} +2 -2
- package/dist/{chunk-Y5GP7O4Q.js → chunk-MVTA24XH.js} +2 -2
- package/dist/{chunk-MHGY2TTW.js → chunk-N4ADXF5N.js} +2 -2
- package/dist/{chunk-JLRX3QN4.js → chunk-NR4IKXRO.js} +2 -2
- package/dist/chunk-NYOJVO47.js +9 -0
- package/dist/{chunk-YWDUEGXD.js → chunk-OJPGOZNT.js} +2 -2
- package/dist/{chunk-EJ4GGY7P.js → chunk-QG46R3C4.js} +4 -4
- package/dist/{chunk-P4N5VKEZ.js → chunk-R2JBLEOC.js} +2 -2
- package/dist/{chunk-4FU4VGPY.js → chunk-RZUXQ7ZP.js} +2 -2
- package/dist/{chunk-65AEMPEA.js → chunk-S2TSH66J.js} +4 -4
- package/dist/{chunk-MSZN3BC5.js → chunk-TAQB6FQY.js} +6 -6
- package/dist/{chunk-57ONODV4.js → chunk-TNCSXIXB.js} +2 -2
- package/dist/{chunk-5JIP2OR3.js → chunk-UHWJXERU.js} +5 -5
- package/dist/{chunk-UAOVWCJD.js → chunk-UWHBW4G2.js} +2 -2
- package/dist/{chunk-WZKO4WQI.js → chunk-VB6HRYG6.js} +5 -5
- package/dist/{chunk-M225TR5L.js → chunk-VFPJ7CRK.js} +4 -4
- package/dist/{chunk-3FP7S6ZA.js → chunk-VWQ7LZFO.js} +2 -2
- package/dist/{chunk-7NL3E27M.js → chunk-W75NWJRU.js} +3 -3
- package/dist/{chunk-6C4WLRND.js → chunk-WORXBWCC.js} +3 -3
- package/dist/{chunk-PUE2ZM4A.js → chunk-WXUAIB32.js} +3 -3
- package/dist/{chunk-QOCCG4DW.js → chunk-YTYOVM4A.js} +3 -3
- package/dist/{chunk-HQY7TLIK.js → chunk-Z3KFELLM.js} +3 -3
- package/dist/{cleanup-ABHJOT4X.js → cleanup-SROJYVPL.js} +20 -20
- package/dist/{cli-QXBRNVPR.js → cli-L7LAM65Q.js} +3 -3
- package/dist/{config-JBSRQRET.js → config-2LB26LNE.js} +3 -3
- package/dist/{diff-CYBDUDUD.js → diff-IP3UYSQC.js} +4 -4
- package/dist/{digest-B3ZJCZW4.js → digest-GP4JUCKJ.js} +4 -4
- package/dist/{fork-RGXYHVOE.js → fork-AEA54A4Q.js} +17 -17
- package/dist/{history-UA5ALWRQ.js → history-2KDR7AMX.js} +2 -2
- package/dist/{hook-DKGO437N.js → hook-TRWITUW6.js} +5 -5
- package/dist/{hydrate-7Q4MCUPI.js → hydrate-B6XLDX3A.js} +2 -2
- package/dist/{init-RAQTTWR6.js → init-EP5TCKCI.js} +6 -6
- package/dist/{keep-XD3JM6BW.js → keep-VWCXTRLQ.js} +4 -4
- package/dist/{list-65UEHVZH.js → list-OTYXJ7PG.js} +2 -2
- package/dist/{move-GCBXY5II.js → move-2XPFAJ6C.js} +7 -7
- package/dist/{note-4QTSIAKO.js → note-LXVBPO7G.js} +4 -4
- package/dist/{overlaps-5X4DZJ6A.js → overlaps-ATTRQOYO.js} +7 -7
- package/dist/{pin-N643KWEK.js → pin-6FYKLGH7.js} +4 -4
- package/dist/{pr-ZAOZHNIY.js → pr-32HTOP6M.js} +12 -12
- package/dist/{prune-W2FANCA6.js → prune-W5EYYUPS.js} +18 -18
- package/dist/{pty-host-R6P2I7C2.js → pty-host-LOT7Y5IF.js} +5 -5
- package/dist/{read-U7RSNVKQ.js → read-GVGKDMI6.js} +4 -4
- package/dist/{recent-PEGDUXGK.js → recent-YAHDS2L7.js} +6 -6
- package/dist/{remove-4Z3L6UZE.js → remove-BS4INNKF.js} +19 -19
- package/dist/{restart-4JAHJRJP.js → restart-FU4L3Y6D.js} +4 -4
- package/dist/{resume-MOPF6Q47.js → resume-T3UQ7HWI.js} +6 -6
- package/dist/{run-N6EFNZ2H.js → run-W6VRRIPD.js} +2 -2
- package/dist/{screen-S7JYKVCD.js → screen-XPLXJDTN.js} +4 -4
- package/dist/{search-JO7EIO2E.js → search-FI2BA7UV.js} +2 -2
- package/dist/{section-PFOG3MWL.js → section-2WP2FU74.js} +4 -4
- package/dist/{send-P5SLG4OQ.js → send-MKQHJRUK.js} +5 -5
- package/dist/{sessions-6FXLLEFC.js → sessions-PLY3RLOO.js} +15 -15
- package/dist/show-NBAP6W34.js +63 -0
- package/dist/show-NBAP6W34.js.map +1 -0
- package/dist/{snooze-PJTGJDFI.js → snooze-66DER2G2.js} +4 -4
- package/dist/{start-BKBV7FI2.js → start-CH76J5IE.js} +4 -4
- package/dist/{status-6LE2QFF3.js → status-CJSOIL5Y.js} +5 -5
- package/dist/{stop-JNCT233L.js → stop-VH2KGCWH.js} +4 -4
- package/dist/{sync-SRTMLWJT.js → sync-TUDFXYWS.js} +18 -18
- package/dist/{time-L6RBKV3P.js → time-U7QHPL5U.js} +5 -5
- package/dist/{timesheet-DL2VWJ2V.js → timesheet-7KASD74P.js} +7 -7
- package/dist/{tree-RCBXUIIK.js → tree-KZS7ZWLG.js} +16 -16
- package/dist/{update-VFLAO2DP.js → update-AQKZUX4D.js} +9 -9
- package/dist/{usage-ME3G6HA2.js → usage-4AFZVL6M.js} +4 -4
- package/dist/{wait-EJ3NSO3I.js → wait-NG2TIA6W.js} +5 -5
- package/dist/wd-bin.js +4 -4
- package/dist/web/assets/{PtyView-CQ28dTBZ.js → PtyView-D9qrtXgY.js} +2 -2
- package/dist/web/assets/{PtyView-CQ28dTBZ.js.map → PtyView-D9qrtXgY.js.map} +1 -1
- package/dist/web/assets/{index-BGsdgBN7.css → index-BzKRYccu.css} +1 -1
- package/dist/web/assets/{index-BVsqk63T.js → index-D91uDCop.js} +58 -58
- package/dist/web/assets/index-D91uDCop.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-VVKBEQTY.js → web-JTQP5Q4L.js} +516 -373
- package/dist/web-JTQP5Q4L.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/plugins/work-tree/skills/work-sessions/SKILL.md +2 -0
- package/dist/chunk-EYRMS43Y.js +0 -9
- package/dist/chunk-VTRDEXTJ.js.map +0 -1
- package/dist/chunk-ZJGHHHTW.js.map +0 -1
- package/dist/web/assets/index-BVsqk63T.js.map +0 -1
- package/dist/web-VVKBEQTY.js.map +0 -1
- /package/dist/{account-PE4R56QL.js.map → account-2C2YDOIV.js.map} +0 -0
- /package/dist/{add-repo-AWETXFQI.js.map → add-repo-ENM45555.js.map} +0 -0
- /package/dist/{answer-LVALFOZK.js.map → answer-N5BGRCZE.js.map} +0 -0
- /package/dist/{attach-BSNR3XMY.js.map → attach-FRLECF6U.js.map} +0 -0
- /package/dist/{block-MEE2T22H.js.map → block-SPIM2L7Z.js.map} +0 -0
- /package/dist/{broadcast-JBNGNKQ4.js.map → broadcast-I6A7Z3UL.js.map} +0 -0
- /package/dist/{catchup-HQ3EOMAE.js.map → catchup-XJ4EOYUC.js.map} +0 -0
- /package/dist/{chunk-GXJ37PQY.js.map → chunk-257RJ7GN.js.map} +0 -0
- /package/dist/{chunk-GY5FELHG.js.map → chunk-3IUD7OOG.js.map} +0 -0
- /package/dist/{chunk-E3XUCHIY.js.map → chunk-3NSUFJVB.js.map} +0 -0
- /package/dist/{chunk-L6XZYMOS.js.map → chunk-4SRABK2D.js.map} +0 -0
- /package/dist/{chunk-XDNYUZZN.js.map → chunk-4UBX7TEX.js.map} +0 -0
- /package/dist/{chunk-LAKPOS5Z.js.map → chunk-5IEFHZWE.js.map} +0 -0
- /package/dist/{chunk-3VRNXFIZ.js.map → chunk-5WBYGJS3.js.map} +0 -0
- /package/dist/{chunk-NS57XEVZ.js.map → chunk-7KLDOQG6.js.map} +0 -0
- /package/dist/{chunk-3IGVY5S5.js.map → chunk-AF6XEJTP.js.map} +0 -0
- /package/dist/{chunk-IYIVSXTI.js.map → chunk-AIQ4I4AT.js.map} +0 -0
- /package/dist/{chunk-JMLRBCYG.js.map → chunk-BVH6EFV5.js.map} +0 -0
- /package/dist/{chunk-DVHRE4AY.js.map → chunk-EOK3XZCM.js.map} +0 -0
- /package/dist/{chunk-FJJDZ7TA.js.map → chunk-EZPZNHEU.js.map} +0 -0
- /package/dist/{chunk-TEB3INZR.js.map → chunk-FUU47TYZ.js.map} +0 -0
- /package/dist/{chunk-MWDDSULR.js.map → chunk-GMZV4RRV.js.map} +0 -0
- /package/dist/{chunk-2MPLY2Z2.js.map → chunk-JMFEIHMB.js.map} +0 -0
- /package/dist/{chunk-KCXJ3NKO.js.map → chunk-JPVP46D4.js.map} +0 -0
- /package/dist/{chunk-ITZBHSTZ.js.map → chunk-KTJ5QJCN.js.map} +0 -0
- /package/dist/{chunk-QOBQ27VG.js.map → chunk-L562BYTL.js.map} +0 -0
- /package/dist/{chunk-KXGLGXAE.js.map → chunk-MGKCH7SE.js.map} +0 -0
- /package/dist/{chunk-QIIZPLOL.js.map → chunk-MJZ6XOXR.js.map} +0 -0
- /package/dist/{chunk-Y5GP7O4Q.js.map → chunk-MVTA24XH.js.map} +0 -0
- /package/dist/{chunk-MHGY2TTW.js.map → chunk-N4ADXF5N.js.map} +0 -0
- /package/dist/{chunk-JLRX3QN4.js.map → chunk-NR4IKXRO.js.map} +0 -0
- /package/dist/{chunk-EYRMS43Y.js.map → chunk-NYOJVO47.js.map} +0 -0
- /package/dist/{chunk-YWDUEGXD.js.map → chunk-OJPGOZNT.js.map} +0 -0
- /package/dist/{chunk-EJ4GGY7P.js.map → chunk-QG46R3C4.js.map} +0 -0
- /package/dist/{chunk-P4N5VKEZ.js.map → chunk-R2JBLEOC.js.map} +0 -0
- /package/dist/{chunk-4FU4VGPY.js.map → chunk-RZUXQ7ZP.js.map} +0 -0
- /package/dist/{chunk-65AEMPEA.js.map → chunk-S2TSH66J.js.map} +0 -0
- /package/dist/{chunk-MSZN3BC5.js.map → chunk-TAQB6FQY.js.map} +0 -0
- /package/dist/{chunk-57ONODV4.js.map → chunk-TNCSXIXB.js.map} +0 -0
- /package/dist/{chunk-5JIP2OR3.js.map → chunk-UHWJXERU.js.map} +0 -0
- /package/dist/{chunk-UAOVWCJD.js.map → chunk-UWHBW4G2.js.map} +0 -0
- /package/dist/{chunk-WZKO4WQI.js.map → chunk-VB6HRYG6.js.map} +0 -0
- /package/dist/{chunk-M225TR5L.js.map → chunk-VFPJ7CRK.js.map} +0 -0
- /package/dist/{chunk-3FP7S6ZA.js.map → chunk-VWQ7LZFO.js.map} +0 -0
- /package/dist/{chunk-7NL3E27M.js.map → chunk-W75NWJRU.js.map} +0 -0
- /package/dist/{chunk-6C4WLRND.js.map → chunk-WORXBWCC.js.map} +0 -0
- /package/dist/{chunk-PUE2ZM4A.js.map → chunk-WXUAIB32.js.map} +0 -0
- /package/dist/{chunk-QOCCG4DW.js.map → chunk-YTYOVM4A.js.map} +0 -0
- /package/dist/{chunk-HQY7TLIK.js.map → chunk-Z3KFELLM.js.map} +0 -0
- /package/dist/{cleanup-ABHJOT4X.js.map → cleanup-SROJYVPL.js.map} +0 -0
- /package/dist/{cli-QXBRNVPR.js.map → cli-L7LAM65Q.js.map} +0 -0
- /package/dist/{config-JBSRQRET.js.map → config-2LB26LNE.js.map} +0 -0
- /package/dist/{diff-CYBDUDUD.js.map → diff-IP3UYSQC.js.map} +0 -0
- /package/dist/{digest-B3ZJCZW4.js.map → digest-GP4JUCKJ.js.map} +0 -0
- /package/dist/{fork-RGXYHVOE.js.map → fork-AEA54A4Q.js.map} +0 -0
- /package/dist/{history-UA5ALWRQ.js.map → history-2KDR7AMX.js.map} +0 -0
- /package/dist/{hook-DKGO437N.js.map → hook-TRWITUW6.js.map} +0 -0
- /package/dist/{hydrate-7Q4MCUPI.js.map → hydrate-B6XLDX3A.js.map} +0 -0
- /package/dist/{init-RAQTTWR6.js.map → init-EP5TCKCI.js.map} +0 -0
- /package/dist/{keep-XD3JM6BW.js.map → keep-VWCXTRLQ.js.map} +0 -0
- /package/dist/{list-65UEHVZH.js.map → list-OTYXJ7PG.js.map} +0 -0
- /package/dist/{move-GCBXY5II.js.map → move-2XPFAJ6C.js.map} +0 -0
- /package/dist/{note-4QTSIAKO.js.map → note-LXVBPO7G.js.map} +0 -0
- /package/dist/{overlaps-5X4DZJ6A.js.map → overlaps-ATTRQOYO.js.map} +0 -0
- /package/dist/{pin-N643KWEK.js.map → pin-6FYKLGH7.js.map} +0 -0
- /package/dist/{pr-ZAOZHNIY.js.map → pr-32HTOP6M.js.map} +0 -0
- /package/dist/{prune-W2FANCA6.js.map → prune-W5EYYUPS.js.map} +0 -0
- /package/dist/{pty-host-R6P2I7C2.js.map → pty-host-LOT7Y5IF.js.map} +0 -0
- /package/dist/{read-U7RSNVKQ.js.map → read-GVGKDMI6.js.map} +0 -0
- /package/dist/{recent-PEGDUXGK.js.map → recent-YAHDS2L7.js.map} +0 -0
- /package/dist/{remove-4Z3L6UZE.js.map → remove-BS4INNKF.js.map} +0 -0
- /package/dist/{restart-4JAHJRJP.js.map → restart-FU4L3Y6D.js.map} +0 -0
- /package/dist/{resume-MOPF6Q47.js.map → resume-T3UQ7HWI.js.map} +0 -0
- /package/dist/{run-N6EFNZ2H.js.map → run-W6VRRIPD.js.map} +0 -0
- /package/dist/{screen-S7JYKVCD.js.map → screen-XPLXJDTN.js.map} +0 -0
- /package/dist/{search-JO7EIO2E.js.map → search-FI2BA7UV.js.map} +0 -0
- /package/dist/{section-PFOG3MWL.js.map → section-2WP2FU74.js.map} +0 -0
- /package/dist/{send-P5SLG4OQ.js.map → send-MKQHJRUK.js.map} +0 -0
- /package/dist/{sessions-6FXLLEFC.js.map → sessions-PLY3RLOO.js.map} +0 -0
- /package/dist/{snooze-PJTGJDFI.js.map → snooze-66DER2G2.js.map} +0 -0
- /package/dist/{start-BKBV7FI2.js.map → start-CH76J5IE.js.map} +0 -0
- /package/dist/{status-6LE2QFF3.js.map → status-CJSOIL5Y.js.map} +0 -0
- /package/dist/{stop-JNCT233L.js.map → stop-VH2KGCWH.js.map} +0 -0
- /package/dist/{sync-SRTMLWJT.js.map → sync-TUDFXYWS.js.map} +0 -0
- /package/dist/{time-L6RBKV3P.js.map → time-U7QHPL5U.js.map} +0 -0
- /package/dist/{timesheet-DL2VWJ2V.js.map → timesheet-7KASD74P.js.map} +0 -0
- /package/dist/{tree-RCBXUIIK.js.map → tree-KZS7ZWLG.js.map} +0 -0
- /package/dist/{update-VFLAO2DP.js.map → update-AQKZUX4D.js.map} +0 -0
- /package/dist/{usage-ME3G6HA2.js.map → usage-4AFZVL6M.js.map} +0 -0
- /package/dist/{wait-EJ3NSO3I.js.map → wait-NG2TIA6W.js.map} +0 -0
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
import {
|
|
3
3
|
lastActiveMs,
|
|
4
4
|
sessionWire
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-L562BYTL.js";
|
|
6
6
|
import {
|
|
7
7
|
scanChanges
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-5WBYGJS3.js";
|
|
9
|
+
import "./chunk-OJPGOZNT.js";
|
|
10
10
|
import {
|
|
11
11
|
timeAgo
|
|
12
12
|
} from "./chunk-UQ35KLHH.js";
|
|
13
13
|
import "./chunk-AKMPF72Y.js";
|
|
14
14
|
import {
|
|
15
15
|
createCiStore
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-MGKCH7SE.js";
|
|
17
|
+
import "./chunk-EOK3XZCM.js";
|
|
18
18
|
import {
|
|
19
19
|
statusFromOutput
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-QG46R3C4.js";
|
|
21
21
|
import {
|
|
22
22
|
PtyHostClient,
|
|
23
23
|
findHost
|
|
24
24
|
} from "./chunk-G5AAYK56.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-MVTA24XH.js";
|
|
26
26
|
import "./chunk-IIIAV6OD.js";
|
|
27
27
|
import "./chunk-RECQAHC5.js";
|
|
28
28
|
import "./chunk-LSZ6HI3U.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-KTJ5QJCN.js";
|
|
30
30
|
import {
|
|
31
31
|
branchLine
|
|
32
32
|
} from "./chunk-7E5XPDKX.js";
|
|
@@ -37,16 +37,16 @@ import {
|
|
|
37
37
|
ageBucket,
|
|
38
38
|
displayStatus,
|
|
39
39
|
waitingOnOthers
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-RZUXQ7ZP.js";
|
|
41
|
+
import "./chunk-N4ADXF5N.js";
|
|
42
42
|
import "./chunk-RVSRZ57P.js";
|
|
43
43
|
import "./chunk-ZSHWP2VS.js";
|
|
44
44
|
import "./chunk-HUXS3VAI.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-BVH6EFV5.js";
|
|
46
46
|
import {
|
|
47
47
|
sessionBranchesNow
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import "./chunk-
|
|
48
|
+
} from "./chunk-5IEFHZWE.js";
|
|
49
|
+
import "./chunk-MJZ6XOXR.js";
|
|
50
50
|
import "./chunk-FGPXMAYU.js";
|
|
51
51
|
import "./chunk-OIC2PWUH.js";
|
|
52
52
|
import "./chunk-AGRUEZQX.js";
|
|
@@ -55,7 +55,7 @@ import "./chunk-MKQ7IA6U.js";
|
|
|
55
55
|
import {
|
|
56
56
|
loadHistory,
|
|
57
57
|
owedToYou
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-7CABBTGX.js";
|
|
59
59
|
import "./chunk-NEJVK5CF.js";
|
|
60
60
|
import {
|
|
61
61
|
sessionIdFor
|
|
@@ -188,4 +188,4 @@ export {
|
|
|
188
188
|
sessionRows,
|
|
189
189
|
sessionsCommand
|
|
190
190
|
};
|
|
191
|
-
//# sourceMappingURL=sessions-
|
|
191
|
+
//# sourceMappingURL=sessions-PLY3RLOO.js.map
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
callWorkWeb
|
|
4
|
+
} from "./chunk-TMBO55MM.js";
|
|
5
|
+
import {
|
|
6
|
+
findSessionForCwd
|
|
7
|
+
} from "./chunk-N4ADXF5N.js";
|
|
8
|
+
import "./chunk-RVSRZ57P.js";
|
|
9
|
+
import "./chunk-ZSHWP2VS.js";
|
|
10
|
+
import "./chunk-HUXS3VAI.js";
|
|
11
|
+
import {
|
|
12
|
+
loadHistory
|
|
13
|
+
} from "./chunk-7CABBTGX.js";
|
|
14
|
+
import "./chunk-NEJVK5CF.js";
|
|
15
|
+
import {
|
|
16
|
+
sessionIdFor
|
|
17
|
+
} from "./chunk-RRNIJ7YO.js";
|
|
18
|
+
import "./chunk-AQHGYLVN.js";
|
|
19
|
+
import "./chunk-CBCOVIXZ.js";
|
|
20
|
+
import "./chunk-BK73QU45.js";
|
|
21
|
+
import "./chunk-DQWZDA2E.js";
|
|
22
|
+
import "./chunk-PDOG3O4N.js";
|
|
23
|
+
import "./chunk-INI6TEYT.js";
|
|
24
|
+
import "./chunk-G2V2V5UC.js";
|
|
25
|
+
import "./chunk-DW245WK4.js";
|
|
26
|
+
import "./chunk-ZS7ZXAXB.js";
|
|
27
|
+
import "./chunk-D2J3AD6L.js";
|
|
28
|
+
import "./chunk-AU27USPZ.js";
|
|
29
|
+
import "./chunk-6THUVP6T.js";
|
|
30
|
+
|
|
31
|
+
// src/commands/show.ts
|
|
32
|
+
import path from "path";
|
|
33
|
+
import chalk from "chalk";
|
|
34
|
+
var showCommand = {
|
|
35
|
+
command: "show [file]",
|
|
36
|
+
describe: "Show a file of this session beside its terminal in the dashboard (--close: stop showing it)",
|
|
37
|
+
builder: (yargs) => yargs.positional("file", { type: "string", describe: "The file to show (Markdown is rendered, an image is drawn, the rest is text)" }).option("close", { type: "boolean", describe: "Stop showing a file" }),
|
|
38
|
+
handler: async (argv) => {
|
|
39
|
+
const fail = (message) => {
|
|
40
|
+
console.error(chalk.red(message));
|
|
41
|
+
process.exitCode = 1;
|
|
42
|
+
};
|
|
43
|
+
const file = typeof argv.file === "string" && argv.file ? argv.file : void 0;
|
|
44
|
+
if (!file && !argv.close) return fail("Usage: work show <file> (or: work show --close)");
|
|
45
|
+
const s = findSessionForCwd(process.cwd(), loadHistory());
|
|
46
|
+
if (!s) return fail("This folder is not inside a work session.");
|
|
47
|
+
const url = `/api/sessions/${sessionIdFor(s)}/show`;
|
|
48
|
+
const r = await callWorkWeb(
|
|
49
|
+
"POST",
|
|
50
|
+
url,
|
|
51
|
+
argv.close ? { close: true } : { file: path.resolve(process.cwd(), file) },
|
|
52
|
+
15e3
|
|
53
|
+
);
|
|
54
|
+
if (!r.ok) return fail(r.status === 0 ? "work web is not running: open the app, then run this again." : r.error);
|
|
55
|
+
console.log(
|
|
56
|
+
r.body.shown ? chalk.green(`Showing ${r.body.shown.path} beside the terminal of ${s.target} \xB7 ${s.branch}.`) : chalk.gray(`${s.target} \xB7 ${s.branch} shows no file now.`)
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
showCommand
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=show-NBAP6W34.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/show.ts"],"sourcesContent":["import path from 'node:path';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport type { SessionShownWire } from '../core/api-types.js';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { findSessionForCwd } from '../core/comments/pending-delivery.js';\nimport { loadHistory } from '../core/sessions/history.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\n\n/**\n * `work show <file>` — show a file of this session beside its terminal in the dashboard (a spec you are asked to\n * approve, a plan, a screenshot); `work show --close` takes it away. Meant for an agent to run when it wants you to\n * read something: it reads the file's path only, and changes nothing.\n */\nexport const showCommand: CommandModule = {\n command: 'show [file]',\n describe: 'Show a file of this session beside its terminal in the dashboard (--close: stop showing it)',\n builder: (yargs) =>\n yargs\n .positional('file', { type: 'string', describe: 'The file to show (Markdown is rendered, an image is drawn, the rest is text)' })\n .option('close', { type: 'boolean', describe: 'Stop showing a file' }),\n handler: async (argv) => {\n const fail = (message: string) => {\n console.error(chalk.red(message));\n process.exitCode = 1;\n };\n const file = typeof argv.file === 'string' && argv.file ? argv.file : undefined;\n if (!file && !argv.close) return fail('Usage: work show <file> (or: work show --close)');\n const s = findSessionForCwd(process.cwd(), loadHistory());\n if (!s) return fail('This folder is not inside a work session.');\n const url = `/api/sessions/${sessionIdFor(s)}/show`;\n const r = await callWorkWeb<SessionShownWire>(\n 'POST',\n url,\n argv.close ? { close: true } : { file: path.resolve(process.cwd(), file!) },\n 15_000,\n );\n if (!r.ok) return fail(r.status === 0 ? 'work web is not running: open the app, then run this again.' : r.error);\n console.log(\n r.body.shown\n ? chalk.green(`Showing ${r.body.shown.path} beside the terminal of ${s.target} · ${s.branch}.`)\n : chalk.gray(`${s.target} · ${s.branch} shows no file now.`),\n );\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,UAAU;AACjB,OAAO,WAAW;AAaX,IAAM,cAA6B;AAAA,EACxC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,WAAW,QAAQ,EAAE,MAAM,UAAU,UAAU,+EAA+E,CAAC,EAC/H,OAAO,SAAS,EAAE,MAAM,WAAW,UAAU,sBAAsB,CAAC;AAAA,EACzE,SAAS,OAAO,SAAS;AACvB,UAAM,OAAO,CAAC,YAAoB;AAChC,cAAQ,MAAM,MAAM,IAAI,OAAO,CAAC;AAChC,cAAQ,WAAW;AAAA,IACrB;AACA,UAAM,OAAO,OAAO,KAAK,SAAS,YAAY,KAAK,OAAO,KAAK,OAAO;AACtE,QAAI,CAAC,QAAQ,CAAC,KAAK,MAAO,QAAO,KAAK,mDAAmD;AACzF,UAAM,IAAI,kBAAkB,QAAQ,IAAI,GAAG,YAAY,CAAC;AACxD,QAAI,CAAC,EAAG,QAAO,KAAK,2CAA2C;AAC/D,UAAM,MAAM,iBAAiB,aAAa,CAAC,CAAC;AAC5C,UAAM,IAAI,MAAM;AAAA,MACd;AAAA,MACA;AAAA,MACA,KAAK,QAAQ,EAAE,OAAO,KAAK,IAAI,EAAE,MAAM,KAAK,QAAQ,QAAQ,IAAI,GAAG,IAAK,EAAE;AAAA,MAC1E;AAAA,IACF;AACA,QAAI,CAAC,EAAE,GAAI,QAAO,KAAK,EAAE,WAAW,IAAI,gEAAgE,EAAE,KAAK;AAC/G,YAAQ;AAAA,MACN,EAAE,KAAK,QACH,MAAM,MAAM,WAAW,EAAE,KAAK,MAAM,IAAI,2BAA2B,EAAE,MAAM,SAAM,EAAE,MAAM,GAAG,IAC5F,MAAM,KAAK,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM,qBAAqB;AAAA,IAC/D;AAAA,EACF;AACF;","names":[]}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
sessionFromArgs,
|
|
4
4
|
sessionPositionals
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4UBX7TEX.js";
|
|
6
6
|
import "./chunk-6AQRYLOB.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-N4ADXF5N.js";
|
|
8
8
|
import "./chunk-RVSRZ57P.js";
|
|
9
9
|
import "./chunk-ZSHWP2VS.js";
|
|
10
10
|
import "./chunk-HUXS3VAI.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
parseWhen,
|
|
14
14
|
requestSnooze,
|
|
15
15
|
snoozeLabel
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7CABBTGX.js";
|
|
17
17
|
import "./chunk-NEJVK5CF.js";
|
|
18
18
|
import {
|
|
19
19
|
sessionIdFor
|
|
@@ -70,4 +70,4 @@ var snoozeCommand = {
|
|
|
70
70
|
export {
|
|
71
71
|
snoozeCommand
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=snooze-
|
|
73
|
+
//# sourceMappingURL=snooze-66DER2G2.js.map
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
sessionFromArgs,
|
|
4
4
|
sessionPositionals
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4UBX7TEX.js";
|
|
6
6
|
import "./chunk-6AQRYLOB.js";
|
|
7
7
|
import {
|
|
8
8
|
callWorkWeb
|
|
9
9
|
} from "./chunk-TMBO55MM.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-N4ADXF5N.js";
|
|
11
11
|
import "./chunk-RVSRZ57P.js";
|
|
12
12
|
import "./chunk-ZSHWP2VS.js";
|
|
13
13
|
import "./chunk-HUXS3VAI.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7CABBTGX.js";
|
|
15
15
|
import "./chunk-NEJVK5CF.js";
|
|
16
16
|
import {
|
|
17
17
|
sessionIdFor
|
|
@@ -61,4 +61,4 @@ var startCommand = {
|
|
|
61
61
|
export {
|
|
62
62
|
startCommand
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=start-
|
|
64
|
+
//# sourceMappingURL=start-CH76J5IE.js.map
|
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
} from "./chunk-UQ35KLHH.js";
|
|
6
6
|
import {
|
|
7
7
|
createCiStore
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MGKCH7SE.js";
|
|
9
9
|
import {
|
|
10
10
|
branchLine
|
|
11
11
|
} from "./chunk-7E5XPDKX.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-RZUXQ7ZP.js";
|
|
13
13
|
import {
|
|
14
14
|
sessionBranchesNow
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5IEFHZWE.js";
|
|
16
16
|
import "./chunk-FGPXMAYU.js";
|
|
17
17
|
import "./chunk-OIC2PWUH.js";
|
|
18
18
|
import "./chunk-MKQ7IA6U.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
getSessionsForTarget,
|
|
22
22
|
loadHistory,
|
|
23
23
|
prunePersistedStaleEntries
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7CABBTGX.js";
|
|
25
25
|
import "./chunk-NEJVK5CF.js";
|
|
26
26
|
import {
|
|
27
27
|
sessionIdFor
|
|
@@ -146,4 +146,4 @@ function printSessionStatus(session) {
|
|
|
146
146
|
export {
|
|
147
147
|
statusCommand
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=status-
|
|
149
|
+
//# sourceMappingURL=status-CJSOIL5Y.js.map
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
sessionFromArgs,
|
|
4
4
|
sessionPositionals
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-4UBX7TEX.js";
|
|
6
6
|
import "./chunk-6AQRYLOB.js";
|
|
7
7
|
import {
|
|
8
8
|
callWorkWeb
|
|
9
9
|
} from "./chunk-TMBO55MM.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-N4ADXF5N.js";
|
|
11
11
|
import "./chunk-RVSRZ57P.js";
|
|
12
12
|
import "./chunk-ZSHWP2VS.js";
|
|
13
13
|
import "./chunk-HUXS3VAI.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-7CABBTGX.js";
|
|
15
15
|
import "./chunk-NEJVK5CF.js";
|
|
16
16
|
import {
|
|
17
17
|
sessionIdFor
|
|
@@ -50,4 +50,4 @@ var stopCommand = {
|
|
|
50
50
|
export {
|
|
51
51
|
stopCommand
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=stop-
|
|
53
|
+
//# sourceMappingURL=stop-VH2KGCWH.js.map
|
|
@@ -5,43 +5,43 @@ import {
|
|
|
5
5
|
} from "./chunk-ABQYKTG4.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultCleanupDeps
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-UHWJXERU.js";
|
|
9
|
+
import "./chunk-3NSUFJVB.js";
|
|
10
10
|
import {
|
|
11
11
|
applyCleanup,
|
|
12
12
|
scanCleanup
|
|
13
13
|
} from "./chunk-AKMPF72Y.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-S2TSH66J.js";
|
|
15
|
+
import "./chunk-MGKCH7SE.js";
|
|
16
|
+
import "./chunk-EOK3XZCM.js";
|
|
17
|
+
import "./chunk-EZPZNHEU.js";
|
|
18
|
+
import "./chunk-R2JBLEOC.js";
|
|
19
19
|
import "./chunk-TUDDISCX.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-QG46R3C4.js";
|
|
21
21
|
import "./chunk-G5AAYK56.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MVTA24XH.js";
|
|
23
23
|
import "./chunk-IIIAV6OD.js";
|
|
24
24
|
import "./chunk-RECQAHC5.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-JMFEIHMB.js";
|
|
26
26
|
import "./chunk-UH72CZAX.js";
|
|
27
27
|
import "./chunk-LSZ6HI3U.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-KTJ5QJCN.js";
|
|
29
29
|
import "./chunk-7E5XPDKX.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-RZUXQ7ZP.js";
|
|
31
|
+
import "./chunk-N4ADXF5N.js";
|
|
32
32
|
import "./chunk-RVSRZ57P.js";
|
|
33
33
|
import "./chunk-ZSHWP2VS.js";
|
|
34
34
|
import "./chunk-HUXS3VAI.js";
|
|
35
35
|
import "./chunk-LM2T5OR3.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-BVH6EFV5.js";
|
|
37
|
+
import "./chunk-5IEFHZWE.js";
|
|
38
|
+
import "./chunk-MJZ6XOXR.js";
|
|
39
39
|
import "./chunk-FGPXMAYU.js";
|
|
40
40
|
import "./chunk-OIC2PWUH.js";
|
|
41
41
|
import "./chunk-AGRUEZQX.js";
|
|
42
42
|
import "./chunk-ZIFWZJ7X.js";
|
|
43
43
|
import "./chunk-MKQ7IA6U.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-7CABBTGX.js";
|
|
45
45
|
import "./chunk-NEJVK5CF.js";
|
|
46
46
|
import "./chunk-RRNIJ7YO.js";
|
|
47
47
|
import "./chunk-LNHSBM4L.js";
|
|
@@ -119,4 +119,4 @@ var syncCommand = {
|
|
|
119
119
|
export {
|
|
120
120
|
syncCommand
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=sync-
|
|
122
|
+
//# sourceMappingURL=sync-TUDFXYWS.js.map
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
} from "./chunk-ZLQGKBBE.js";
|
|
8
8
|
import {
|
|
9
9
|
sessionWorkTime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-JPVP46D4.js";
|
|
11
11
|
import {
|
|
12
12
|
sessionFromArgs,
|
|
13
13
|
sessionPositionals
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4UBX7TEX.js";
|
|
15
15
|
import "./chunk-6AQRYLOB.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-N4ADXF5N.js";
|
|
17
17
|
import "./chunk-RVSRZ57P.js";
|
|
18
18
|
import "./chunk-ZSHWP2VS.js";
|
|
19
19
|
import "./chunk-HUXS3VAI.js";
|
|
20
20
|
import {
|
|
21
21
|
loadHistory
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-7CABBTGX.js";
|
|
23
23
|
import {
|
|
24
24
|
dayKey,
|
|
25
25
|
formatWorked,
|
|
@@ -119,4 +119,4 @@ var timeCommand = {
|
|
|
119
119
|
export {
|
|
120
120
|
timeCommand
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=time-
|
|
122
|
+
//# sourceMappingURL=time-U7QHPL5U.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createMonthGather,
|
|
4
4
|
defaultTimeDeps
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-GMZV4RRV.js";
|
|
6
|
+
import "./chunk-JPVP46D4.js";
|
|
7
7
|
import {
|
|
8
8
|
buildDay,
|
|
9
9
|
dayArg,
|
|
@@ -24,14 +24,14 @@ import "./chunk-JVE2JFLV.js";
|
|
|
24
24
|
import {
|
|
25
25
|
callWorkWeb
|
|
26
26
|
} from "./chunk-TMBO55MM.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-EZPZNHEU.js";
|
|
28
|
+
import "./chunk-R2JBLEOC.js";
|
|
29
|
+
import "./chunk-MJZ6XOXR.js";
|
|
30
30
|
import "./chunk-FGPXMAYU.js";
|
|
31
31
|
import "./chunk-AGRUEZQX.js";
|
|
32
32
|
import "./chunk-ZIFWZJ7X.js";
|
|
33
33
|
import "./chunk-MKQ7IA6U.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-7CABBTGX.js";
|
|
35
35
|
import "./chunk-NEJVK5CF.js";
|
|
36
36
|
import "./chunk-RRNIJ7YO.js";
|
|
37
37
|
import "./chunk-AQHGYLVN.js";
|
|
@@ -202,4 +202,4 @@ var timesheetCommand = {
|
|
|
202
202
|
export {
|
|
203
203
|
timesheetCommand
|
|
204
204
|
};
|
|
205
|
-
//# sourceMappingURL=timesheet-
|
|
205
|
+
//# sourceMappingURL=timesheet-7KASD74P.js.map
|
|
@@ -4,19 +4,19 @@ import {
|
|
|
4
4
|
openInLeftovers,
|
|
5
5
|
resolvePrToStart,
|
|
6
6
|
workOnPrPrompt
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FUU47TYZ.js";
|
|
8
8
|
import {
|
|
9
9
|
retiredUnsafeOption,
|
|
10
10
|
warnRetiredUnsafe
|
|
11
11
|
} from "./chunk-S3CTXKSN.js";
|
|
12
12
|
import {
|
|
13
13
|
clearLaunchedUnsafeWhenIdle
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-JLRX3QN4.js";
|
|
14
|
+
} from "./chunk-TAQB6FQY.js";
|
|
16
15
|
import "./chunk-FZHFD2AY.js";
|
|
16
|
+
import "./chunk-NR4IKXRO.js";
|
|
17
17
|
import {
|
|
18
18
|
attachSession
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TNCSXIXB.js";
|
|
20
20
|
import "./chunk-AH5TM3NB.js";
|
|
21
21
|
import {
|
|
22
22
|
launchAi,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
import "./chunk-TUDDISCX.js";
|
|
26
26
|
import {
|
|
27
27
|
SETUP_WARNINGS
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-W75NWJRU.js";
|
|
29
|
+
import "./chunk-QG46R3C4.js";
|
|
30
30
|
import "./chunk-G5AAYK56.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-MVTA24XH.js";
|
|
32
32
|
import "./chunk-IIIAV6OD.js";
|
|
33
33
|
import "./chunk-RECQAHC5.js";
|
|
34
34
|
import {
|
|
@@ -37,20 +37,20 @@ import {
|
|
|
37
37
|
openBaseCheckout,
|
|
38
38
|
parseBaseSpec,
|
|
39
39
|
setupWorktree
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-JMFEIHMB.js";
|
|
41
41
|
import "./chunk-UH72CZAX.js";
|
|
42
42
|
import "./chunk-LSZ6HI3U.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-KTJ5QJCN.js";
|
|
44
44
|
import "./chunk-7E5XPDKX.js";
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-RZUXQ7ZP.js";
|
|
46
|
+
import "./chunk-N4ADXF5N.js";
|
|
47
47
|
import "./chunk-RVSRZ57P.js";
|
|
48
48
|
import "./chunk-ZSHWP2VS.js";
|
|
49
49
|
import "./chunk-HUXS3VAI.js";
|
|
50
50
|
import "./chunk-LM2T5OR3.js";
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
53
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-BVH6EFV5.js";
|
|
52
|
+
import "./chunk-5IEFHZWE.js";
|
|
53
|
+
import "./chunk-MJZ6XOXR.js";
|
|
54
54
|
import "./chunk-FGPXMAYU.js";
|
|
55
55
|
import "./chunk-OIC2PWUH.js";
|
|
56
56
|
import "./chunk-AGRUEZQX.js";
|
|
@@ -59,7 +59,7 @@ import "./chunk-MKQ7IA6U.js";
|
|
|
59
59
|
import {
|
|
60
60
|
findSession,
|
|
61
61
|
loadHistory
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-7CABBTGX.js";
|
|
63
63
|
import "./chunk-NEJVK5CF.js";
|
|
64
64
|
import "./chunk-RRNIJ7YO.js";
|
|
65
65
|
import "./chunk-LNHSBM4L.js";
|
|
@@ -329,4 +329,4 @@ var treeCommand = {
|
|
|
329
329
|
export {
|
|
330
330
|
treeCommand
|
|
331
331
|
};
|
|
332
|
-
//# sourceMappingURL=tree-
|
|
332
|
+
//# sourceMappingURL=tree-KZS7ZWLG.js.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
updateSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WORXBWCC.js";
|
|
5
5
|
import {
|
|
6
6
|
sessionFromArgs,
|
|
7
7
|
sessionPositionals
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4UBX7TEX.js";
|
|
9
9
|
import "./chunk-6AQRYLOB.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EOK3XZCM.js";
|
|
11
|
+
import "./chunk-N4ADXF5N.js";
|
|
12
12
|
import "./chunk-RVSRZ57P.js";
|
|
13
13
|
import "./chunk-ZSHWP2VS.js";
|
|
14
14
|
import "./chunk-HUXS3VAI.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-BVH6EFV5.js";
|
|
16
|
+
import "./chunk-5IEFHZWE.js";
|
|
17
|
+
import "./chunk-MJZ6XOXR.js";
|
|
18
18
|
import "./chunk-FGPXMAYU.js";
|
|
19
19
|
import "./chunk-OIC2PWUH.js";
|
|
20
20
|
import "./chunk-AGRUEZQX.js";
|
|
21
21
|
import "./chunk-ZIFWZJ7X.js";
|
|
22
22
|
import "./chunk-MKQ7IA6U.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-7CABBTGX.js";
|
|
24
24
|
import "./chunk-NEJVK5CF.js";
|
|
25
25
|
import "./chunk-RRNIJ7YO.js";
|
|
26
26
|
import "./chunk-AQHGYLVN.js";
|
|
@@ -70,4 +70,4 @@ var updateCommand = {
|
|
|
70
70
|
export {
|
|
71
71
|
updateCommand
|
|
72
72
|
};
|
|
73
|
-
//# sourceMappingURL=update-
|
|
73
|
+
//# sourceMappingURL=update-AQKZUX4D.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
buildUsage,
|
|
4
4
|
realUsageDeps,
|
|
5
5
|
restoreAgentUsage
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-YTYOVM4A.js";
|
|
7
|
+
import "./chunk-JPVP46D4.js";
|
|
8
8
|
import {
|
|
9
9
|
formatTokens,
|
|
10
10
|
resetPhrase
|
|
11
11
|
} from "./chunk-UVZITL47.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7CABBTGX.js";
|
|
13
13
|
import "./chunk-NEJVK5CF.js";
|
|
14
14
|
import "./chunk-RRNIJ7YO.js";
|
|
15
15
|
import {
|
|
@@ -84,4 +84,4 @@ export {
|
|
|
84
84
|
usageCommand,
|
|
85
85
|
usageLines
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=usage-
|
|
87
|
+
//# sourceMappingURL=usage-4AFZVL6M.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
cliWaitDeps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VWQ7LZFO.js";
|
|
5
5
|
import {
|
|
6
6
|
parseDuration,
|
|
7
7
|
waitForTurn
|
|
@@ -9,14 +9,14 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
sessionFromArgs,
|
|
11
11
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4UBX7TEX.js";
|
|
13
13
|
import "./chunk-6AQRYLOB.js";
|
|
14
14
|
import "./chunk-FZHFD2AY.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-N4ADXF5N.js";
|
|
16
16
|
import "./chunk-RVSRZ57P.js";
|
|
17
17
|
import "./chunk-ZSHWP2VS.js";
|
|
18
18
|
import "./chunk-HUXS3VAI.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-7CABBTGX.js";
|
|
20
20
|
import "./chunk-NEJVK5CF.js";
|
|
21
21
|
import {
|
|
22
22
|
sessionIdFor
|
|
@@ -63,4 +63,4 @@ var waitCommand = {
|
|
|
63
63
|
export {
|
|
64
64
|
waitCommand
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=wait-
|
|
66
|
+
//# sourceMappingURL=wait-NG2TIA6W.js.map
|
package/dist/wd-bin.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
run
|
|
4
|
+
} from "./chunk-CJSH42MW.js";
|
|
2
5
|
import {
|
|
3
6
|
consoleReporter
|
|
4
7
|
} from "./chunk-S5HJT7CM.js";
|
|
5
|
-
import
|
|
6
|
-
run
|
|
7
|
-
} from "./chunk-ZJGHHHTW.js";
|
|
8
|
-
import "./chunk-EYRMS43Y.js";
|
|
8
|
+
import "./chunk-NYOJVO47.js";
|
|
9
9
|
import "./chunk-7UXV4X2Y.js";
|
|
10
10
|
import "./chunk-K5EAVRXX.js";
|
|
11
11
|
import "./chunk-INI6TEYT.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./index-
|
|
1
|
+
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./index-D91uDCop.js";var l=r(t(),1),u=2e3,d=20,f=class{sentAt=null;samples=[];shownSamples=[];open=null;keySent(e){let t=this.open;return this.open=null,this.sentAt===null&&(this.sentAt=e),t?{arrived:t.arrived,shown:null}:null}output(e){if(this.sentAt===null)return null;let t=e-this.sentAt,n=this.sentAt;return this.sentAt=null,t<0||t>u?null:(p(this.samples,t),this.open={sentAt:n,arrived:t},t)}rendered(e){let t=this.open;if(!t)return null;this.open=null;let n=e-t.sentAt;return n<0||n>u?{arrived:t.arrived,shown:null}:(p(this.shownSamples,n),{arrived:t.arrived,shown:n})}median(){return this.samples.length?m(this.samples).median:null}reading(){return this.samples.length?{arrived:m(this.samples),shown:this.shownSamples.length?m(this.shownSamples):null}:null}};function p(e,t){e.push(t),e.length>d&&e.shift()}function m(e){let t=[...e].sort((e,t)=>e-t),n=t.length>>1;return{median:t.length%2?t[n]:(t[n-1]+t[n])/2,worst:t[Math.min(t.length-1,Math.ceil(t.length*.9)-1)]}}function h(e,t,n=null){let r=t!==`webgl`;if(e===null&&!r)return null;let i=e=>`${Math.round(e)} ms`,a=e?.shown??e?.arrived??null;return{text:[a&&`⌁ ${i(a.median)}${a.worst>a.median*1.5?` (${i(a.worst)})`:``}`,r&&`DOM`].filter(Boolean).join(` · `),title:[e&&`A keystroke, over the last 20 (median, and in brackets the slowest of most of them): its echo arrived in ${i(e.arrived.median)} (${i(e.arrived.worst)}) — browser → PTY host → ConPTY → Claude and back`+(e.shown?`; it was on screen in ${i(e.shown.median)} (${i(e.shown.worst)}) — the frame drawn after it.`:`.`),e&&n===`direct`&&`Connected straight to the PTY host.`,e&&n===`relay`&&"Connected through work web (the PTY host gave no ticket: restart it with `work pty-host --restart`).",r&&`Drawn without the GPU, which is slower while Claude works.`,t===`retrying`&&`The GPU renderer was lost; it is tried again by itself.`,t===`dom`&&`WebGL is unavailable here, or kept getting lost; reloading the page tries it again.`,e&&`Each keystroke and every freeze of this window is written to work’s debug log (terminal-perf).`].filter(Boolean).join(` `),slow:r||(a?.median??0)>100}}var g=200,_=100,v=class{keys=[];stalls=[];key(e){e&&this.keys.length<g&&this.keys.push({arrived:Math.round(e.arrived),shown:e.shown===null?null:Math.round(e.shown)})}stall(e,t){this.stalls.length>=_||this.stalls.push({at:t,ms:Math.round(e.duration),blocking:e.blockingDuration===void 0?null:Math.round(e.blockingDuration),what:y(e)})}take(e){if(!this.keys.length&&!this.stalls.length)return null;let t={...e,keys:this.keys,stalls:this.stalls};return this.keys=[],this.stalls=[],t}};function y(e){return[...e.scripts??[]].sort((e,t)=>(t.duration??0)-(e.duration??0)).slice(0,3).map(e=>{let t=(e.sourceURL??``).split(`/`).pop()?.split(`?`)[0]??``;return[e.invoker,e.sourceFunctionName,t,e.duration===void 0?``:`${Math.round(e.duration)}ms`].filter(Boolean).join(` `).slice(0,160)}).join(`; `)}function ee(e){let t=typeof PerformanceObserver>`u`?null:PerformanceObserver,n=t?.supportedEntryTypes??[],r=n.includes(`long-animation-frame`)?`long-animation-frame`:n.includes(`longtask`)?`longtask`:null;if(!t||!r)return()=>{};let i=new t(t=>{for(let n of t.getEntries())e(n)});return i.observe({type:r,buffered:!1}),()=>i.disconnect()}async function te(e,t){try{let n=await fetch(`/api/terminals/${encodeURIComponent(e)}/ticket`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({force:t})});return n.status===404&&!(n.headers.get(`content-type`)??``).includes(`json`)?null:await n.json()}catch{return null}}function ne(e,t){let n=t.WebSocketImpl??WebSocket,r=t.askTicket??te,i=[],a=[],o=[],s=null,c=!1,l=!1,u=null,d=e=>{let t=new MessageEvent(`message`,{data:e});for(let e of i)e(t)},f=(e=new Event(`close`))=>{if(!l){l=!0;for(let t of a)t(e)}},p=(e,r)=>{if(c)return;u=r?`direct`:`relay`;let a=new n(e);a.binaryType=m.binaryType,s=a;let l=!1;a.addEventListener(`open`,()=>{l=!0;for(let e of o)a.send(e);o.length=0}),a.addEventListener(`message`,e=>{if(s===a)for(let t of i)t(e)}),a.addEventListener(`close`,e=>{if(s===a){if(r&&!l&&!c)return p(t.relayUrl,!1);f(e)}})},m={binaryType:`blob`,addEventListener(e,t){e===`message`?i.push(t):a.push(t)},send(e){s&&s.readyState===n.OPEN?s.send(e):o.push(e)},close(){c=!0,s?s.close():f()},get route(){return u}};return r(e,t.force).then(e=>{if(!c){if(e&&`url`in e)return p(e.url,!0);if(e&&`elsewhere`in e)return d(JSON.stringify(e.elsewhere)),f();if(e&&`error`in e)return d(JSON.stringify({type:`error`,message:e.error})),f();p(t.relayUrl,!1)}}),m}var re=[3,10,30,60];function ie(e){return e>=0&&e<re.length?re[e]*1e3:null}function ae(e){return e?.trim()?e.trim():`the connection closed before it started`}var b=[2e3,1e4,6e4],x=6e5,oe=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<x),this.losses.push(e),b[this.losses.length-1]??null}},S=/^(\s*)([●⏺⎿])(\s)/u,se=/^(?:[-*+•]\s|\d+[.)]\s|#{1,6}\s|>\s|[│┃|┌└├╭╰─━])/u,ce=/^(?:[-*+•]|\d+[.)])\s+/u,le=e=>e.length-e.trimStart().length,C=``,w=``,T=``,ue=``,de=/[\uE000-\uE003]/gu,fe=e=>e.replace(de,``);function pe(e,t){let n=``,r=0;for(;r<e.length&&t>0;r++)if(/[\uE000-\uE003]/u.test(e[r]))n+=e[r];else if(/\s/u.test(e[r]))t--;else break;return n+e.slice(r)}var me=e=>pe(e,le(fe(e)));function he(e,t,n){let r=e.split(/\r?\n/).map(e=>{let t=e.replace(/\s+$/u,``);return S.test(fe(t))?t.replace(/[●⏺⎿]/u,` `):t}),i=e=>e===0?n:0,a=[],o=null;for(let e=0;e<r.length;e++){let n=r[e],s=fe(n),c=me(n),l=s.trimStart(),u=i(e)+le(s),d=i(e)+s.length;if(o&&l&&o.end+1+(l.split(/\s/u)[0]?.length??0)>t-2&&!se.test(l)&&u===o.cont){o.text+=` `+c,o.end=d;continue}if(o&&a.push(o.text),!l){o=null,a.push(``);continue}let f=ce.exec(l);o={text:(e===0?``:` `.repeat(le(s)))+c,cont:u+(f?f[0].length:0),end:d},/[│┃]/u.test(l)&&(a.push(o.text),o=null)}o&&a.push(o.text);let s=a.slice(1).filter(e=>fe(e).trim()),c=s.length?Math.min(...s.map(e=>le(fe(e)))):0;return a.map((e,t)=>t===0?me(e):pe(e,Math.min(c,le(fe(e))))).join(`
|
|
2
2
|
`)}function ge(e,t){let n=``;for(let r=t.start.y;r<=t.end.y;r++){let i=e.getLine(r);if(!i)break;let a=r<t.end.y&&!!e.getLine(r+1)?.isWrapped,o=[],s=r===t.end.y?Math.min(t.end.x,i.length):i.length;for(let e=r===t.start.y?t.start.x:0;e<s;e++){let t=i.getCell(e);t&&t.getWidth()!==0&&o.push({ch:t.getChars()||` `,b:!!t.isBold(),i:!!t.isItalic()})}let c=o.length;if(!a)for(;c>0&&o[c-1].ch.trim()===``;)c--;let l=!1,u=!1;for(let e of o.slice(0,c)){let t=e.ch.trim()?e.b:l,r=e.ch.trim()?e.i:u;(t!==l||r!==u)&&(u&&(n+=ue),l&&(n+=w),t&&(n+=C),r&&(n+=T),l=t,u=r),n+=e.ch}u&&(n+=ue),l&&(n+=w),r<t.end.y&&!a&&(n+=`
|
|
3
3
|
`)}return n}function _e(e){let t=e.getSelection(),n=e.getSelectionPosition();if(!n)return t;let r=ge(e.buffer.active,n),i=e=>e.replace(/\r\n/gu,`
|
|
4
4
|
`).replace(/[ \t]+$/gmu,``);return i(fe(r))===i(t)?r:t}function ve(e){let t=c(e).replaceAll(C,`<b>`).replaceAll(w,`</b>`).replaceAll(T,`<i>`).replaceAll(ue,`</i>`).replace(/<\/b>(\s*)<b>/gu,`$1`).replace(/<\/i>(\s*)<i>/gu,`$1`);for(let e=``;e!==t;)e=t,t=t.replace(/(\s+)(<\/[bi]>)/gu,`$2$1`);return t}var ye=/^\s*[│┃|].*[│┃|]\s*$/u,be=/^\s*(?:[┌├└╭╰┏┣┗┡╞][─━┬┼┴┳╋┻┐┤┘╮╯┓┫┛┩╡═╪╤╧\s]*|\|?(?:\s*:?-{3,}:?\s*\|)+\s*:?-*:?\s*\|?)$/u,xe=e=>e.trim().replace(/^[│┃|]|[│┃|]$/gu,``).split(/[│┃|]/u).map(e=>e.trim());function Se(e){let t=[[]],n=0;for(let r of e)be.test(r)?(n++,t[t.length-1].length&&t.push([])):ye.test(r)&&t[t.length-1].push(xe(r));let r=t.filter(e=>e.length);if(!r.length||!r.some(e=>e.some(e=>e.length>1)))return null;let i=r.length>2||r.length===2&&r[1].length===1,a=e=>e[0].map((t,n)=>e.map(e=>e[n]??``).filter(Boolean).join(` `)),o=i?r.map(a):[a(r[0]),...r.slice(1).flat()];return n||o.length>1?o:null}function Ce(e){let[t,...n]=e,r=(e,t)=>`<tr>${e.map(e=>`<${t}>${c(e)}</${t}>`).join(``)}</tr>`;return`<table><thead>${r(t,`th`)}</thead><tbody>${n.map(e=>r(e,`td`)).join(``)}</tbody></table>`}function we(e,t,n=0){let r=he(e,t,n).split(`
|
|
@@ -93,4 +93,4 @@ void main() {
|
|
|
93
93
|
`);be=!0});let ke=t.onData(e=>{if(be){e===`\r`&&_(e=>e+1);return}Ae(e)});function Ae(e){be||(ge?(w.send(JSON.stringify({type:`input`,data:e})),Ee.key(xe.keySent(performance.now()))):ve.push(e))}let je=t.cols,Me=t.rows,Ne=(e=!1)=>{u.current&&(n.fit(),(e||t.cols!==je||t.rows!==Me)&&(je=t.cols,Me=t.rows,ge&&w.send(JSON.stringify({type:`resize`,cols:t.cols,rows:t.rows}))))},Pe=()=>Ne(),Fe=typeof ResizeObserver<`u`?new ResizeObserver(()=>Ne()):null;Fe?Fe.observe(c.current):window.addEventListener(`resize`,Pe),d.current=()=>{Ne(!0),t.focus()};let Ie=()=>Ne(!0);return t.textarea?.addEventListener(`focus`,Ie),()=>{l=!0,clearTimeout(fe),clearTimeout(he),clearTimeout(s),t.textarea?.removeEventListener(`paste`,b,!0),t.element?.removeEventListener(`copy`,se,!0),t.textarea?.removeEventListener(`focus`,Ie),d.current=null,Fe?.disconnect(),window.removeEventListener(`resize`,Pe),ke.dispose(),De.dispose(),clearInterval(Oe),E(),D(),clearTimeout(Ce);try{w.close()}catch{}t.dispose()}},[e,g]);let me=()=>{pe(!0),_(e=>e+1)};(0,l.useEffect)(()=>{if(!b||!i)return;let e=setInterval(()=>{document.visibilityState===`visible`&&me()},wp);return()=>clearInterval(e)},[b,i]);let he=async()=>{await s(`Start this session's Claude here?
|
|
94
94
|
|
|
95
95
|
If it is still open in another terminal, both would write to the same conversation.`,{ok:`Start it here`})&&(S.current=!0,x(null),_(e=>e+1))},ge=t?`work tree ${t}${r?` ${r}`:``}`:`work tree <target> <branch>`,ve=h(se,w,le);return(0,$.jsxs)($.Fragment,{children:[b&&(0,$.jsxs)(`div`,{className:`wd-pty-elsewhere`,role:`status`,children:[(0,$.jsxs)(`p`,{className:`wd-pty-elsewhere-title`,children:[b.confirmed?`This session’s Claude is open in another terminal`:`This session’s Claude seems to be running in another terminal`,b.lastActivity!==null&&(0,$.jsxs)($.Fragment,{children:[` (last wrote `,Ep(b.lastActivity),`)`]}),b.state===`needs_input`&&(0,$.jsx)($.Fragment,{children:`, waiting for your answer there`}),`.`]}),(0,$.jsxs)(`p`,{children:[`Close it there (type `,(0,$.jsx)(`code`,{children:`/exit`}),`) and this tab attaches by itself — it checks every few seconds. To have both show the same screen instead, restart it with `,(0,$.jsx)(`code`,{children:ge}),` (Ctrl+] detaches, Claude keeps running).`]}),(0,$.jsxs)(`p`,{className:`wd-pty-elsewhere-actions`,children:[(0,$.jsx)(`button`,{type:`button`,className:`wd-btn-secondary`,onClick:me,disabled:fe,children:fe?`Checking…`:`Check again`}),!b.confirmed&&(0,$.jsx)(`button`,{type:`button`,className:`wd-link-button`,onClick:()=>void he(),children:`It's not running — start it here…`})]})]}),(0,$.jsxs)(`div`,{className:`wd-pty-frame`,style:b?{display:`none`}:void 0,children:[(0,$.jsx)(`div`,{ref:c,className:`wd-pty-host`}),ve&&(0,$.jsx)(`span`,{className:`wd-pty-latency`+(ve.slow?` wd-pty-latency-slow`:``),title:ve.title,children:ve.text}),p!==`ready`&&!b&&!y&&(0,$.jsx)(`div`,{className:`wd-pty-connecting`,role:`status`,children:p===`starting`?`Starting Claude — resuming the conversation…`:`Connecting…`}),p!==`ready`&&!b&&y&&(0,$.jsxs)(`div`,{className:`wd-pty-connecting wd-pty-failed`,role:`alert`,children:[(0,$.jsxs)(`p`,{children:[`Couldn't start Claude: `,y.reason,`.`]}),(0,$.jsxs)(`p`,{children:[y.retryAt===null?`Stopped trying on its own.`:(0,$.jsx)(Op,{at:y.retryAt}),` `,(0,$.jsx)(`button`,{type:`button`,className:`wd-btn-secondary`,onClick:()=>{re.current=0,te(null),_(e=>e+1)},children:y.retryAt===null?`Try again`:`Try now`})]})]})]})]})}function Op({at:e}){let[t,n]=(0,l.useState)(()=>Date.now());return(0,l.useEffect)(()=>{let e=setInterval(()=>n(Date.now()),1e3);return()=>clearInterval(e)},[]),(0,$.jsxs)($.Fragment,{children:[`Trying again in `,Math.max(1,Math.ceil((e-t)/1e3)),` s…`]})}export{wp as ELSEWHERE_RECHECK_MS,Dp as PtyView,Cp as openLink};
|
|
96
|
-
//# sourceMappingURL=PtyView-
|
|
96
|
+
//# sourceMappingURL=PtyView-D9qrtXgY.js.map
|