@moberg_hr/work-tree 2.0.3 → 2.0.4
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/{answer-ZYRJTGPR.js → answer-GX4XSHO4.js} +6 -6
- package/dist/{attach-PEOW6HHM.js → attach-E5HGK3QS.js} +9 -9
- package/dist/bin.js +2 -2
- package/dist/{block-EA7LCWBG.js → block-LBR2SM5T.js} +6 -6
- package/dist/{broadcast-VE7WYHDK.js → broadcast-ZDPVFRXD.js} +3 -3
- package/dist/{catchup-DF7YZFOJ.js → catchup-DGFAJS5A.js} +8 -8
- package/dist/{chunk-SBL4VVXD.js → chunk-2NZQ6NIY.js} +2 -2
- package/dist/{chunk-2P26VJY3.js → chunk-3NXGK6TU.js} +8 -8
- package/dist/{chunk-E4GZGQWP.js → chunk-563DLDDS.js} +3 -3
- package/dist/{chunk-C763EC47.js → chunk-A2SMSRS3.js} +2 -2
- package/dist/{chunk-LC2UWKAQ.js → chunk-BQP2BWZ7.js} +2 -2
- package/dist/{chunk-NDEELC3K.js → chunk-D42K7F3P.js} +2 -2
- package/dist/{chunk-T2KX2B6I.js → chunk-F7O3DYAL.js} +2 -2
- package/dist/{chunk-IISQUS7L.js → chunk-FFLT7OJS.js} +2 -2
- package/dist/{chunk-EYZG4MR6.js → chunk-FPGVLM2H.js} +3 -3
- package/dist/{chunk-TMUMQRNM.js → chunk-GGTPVCXZ.js} +43 -43
- package/dist/{chunk-KNKXGEPJ.js → chunk-GSEZZNSW.js} +4 -4
- package/dist/{chunk-PMA7QPUV.js → chunk-HRD6F4NW.js} +6 -2
- package/dist/chunk-HRD6F4NW.js.map +1 -0
- package/dist/{chunk-XOHJUVU6.js → chunk-ILQ3ID7S.js} +2 -2
- package/dist/{chunk-YMNFSV5C.js → chunk-J6AS2Q3L.js} +3 -3
- package/dist/{chunk-AUGWUZR2.js → chunk-KIOLKLGC.js} +4 -4
- package/dist/{chunk-WDVIPH6X.js → chunk-M3HMYWDB.js} +2 -2
- package/dist/{chunk-4WEYZ3YG.js → chunk-MFKARSOP.js} +4 -4
- package/dist/{chunk-LQCYTZ2F.js → chunk-NOP2ATBT.js} +6 -6
- package/dist/{chunk-52ST6RVB.js → chunk-OLC5NBEY.js} +5 -5
- package/dist/{chunk-KPVCQBHZ.js → chunk-QHWHQR24.js} +2 -2
- package/dist/{chunk-EY3ZPJT3.js → chunk-RJEKLIR4.js} +2 -2
- package/dist/{chunk-REKP6EIC.js → chunk-RMRRLKLR.js} +2 -2
- package/dist/{chunk-DKKXDLMQ.js → chunk-RXXRPNWF.js} +3 -3
- package/dist/{chunk-PA2744MS.js → chunk-SHPZQNVG.js} +6 -6
- package/dist/chunk-UDJ623JI.js +9 -0
- package/dist/{chunk-5OUTCUYQ.js → chunk-VLVOOPPN.js} +2 -2
- package/dist/{chunk-EF5GZEXK.js → chunk-VWQ7GB2I.js} +2 -2
- package/dist/{chunk-VSX6ICYG.js → chunk-WTX477XA.js} +4 -4
- package/dist/{chunk-BFLJ6PGX.js → chunk-XZ5NJ2ET.js} +3 -3
- package/dist/{chunk-DJBOQU56.js → chunk-Y6F4JSYV.js} +2 -2
- package/dist/{chunk-IAOFCBAO.js → chunk-YBGZWOYZ.js} +5 -5
- package/dist/{chunk-XWJ6BB63.js → chunk-YNTSWQA4.js} +3 -3
- package/dist/{chunk-YNB3M2SM.js → chunk-ZEHFA3EO.js} +3 -3
- package/dist/{chunk-4SK76CPY.js → chunk-ZOXO5M34.js} +3 -3
- package/dist/{cleanup-2FPGGFMO.js → cleanup-WSPCOX34.js} +15 -15
- package/dist/{cli-PI7WSA4S.js → cli-HCXJLNIA.js} +3 -3
- package/dist/{config-HZOLEXYK.js → config-PHYE6XG5.js} +4 -4
- package/dist/{diff-3YNZDI65.js → diff-63W4LBMD.js} +7 -7
- package/dist/{digest-CZG3FZE7.js → digest-KK4VUUZP.js} +6 -6
- package/dist/{fork-QPD5JTUH.js → fork-HEYAX5PM.js} +15 -15
- package/dist/{hook-6GDHRNT6.js → hook-4TAFJYJJ.js} +6 -6
- package/dist/{hydrate-YGDWGBXX.js → hydrate-TCXT3XDH.js} +3 -3
- package/dist/{init-MBNE57LN.js → init-RY5K3YFW.js} +4 -4
- package/dist/{install-skills-5XINJXYY.js → install-skills-XJKQ2UBP.js} +3 -3
- package/dist/install-skills-bin.js +2 -2
- package/dist/{move-HUC4Y4FX.js → move-OM552GP7.js} +7 -7
- package/dist/{note-2YE44FRK.js → note-4OBZ32FO.js} +5 -5
- package/dist/{overlaps-75LVGJWA.js → overlaps-EVDLCYBQ.js} +5 -5
- package/dist/{pin-FWJVLOSH.js → pin-QOZJ6PTK.js} +5 -5
- package/dist/{pr-2XIZWDS2.js → pr-IRCJZCKF.js} +5 -5
- package/dist/{prune-7MSLBWVA.js → prune-V4GA4XWG.js} +14 -14
- package/dist/{pty-host-HQPWKXVI.js → pty-host-ZEAVQOKT.js} +5 -5
- package/dist/{read-PYIADA63.js → read-WQKAE5RC.js} +5 -5
- package/dist/{recent-JKFUXEKV.js → recent-YVSZPJVO.js} +4 -4
- package/dist/{remove-MGXS7QZ6.js → remove-YFFZ52PE.js} +13 -13
- package/dist/{resume-DMGXYTGC.js → resume-O4UYWQTU.js} +4 -4
- package/dist/{run-3KH6GAOL.js → run-K66K7TMM.js} +3 -3
- package/dist/{screen-3UMWSHAY.js → screen-OO566RNR.js} +6 -6
- package/dist/{search-OOJIPNZT.js → search-N4KN2GEG.js} +3 -3
- package/dist/{section-ZHCDMSCB.js → section-AZZO4ZSO.js} +5 -5
- package/dist/{send-DXNOANZQ.js → send-ZNDJON57.js} +7 -7
- package/dist/{sessions-CLE6ZC23.js → sessions-OYQIYTDE.js} +12 -12
- package/dist/{snooze-OHZFIQEG.js → snooze-BNERTMXJ.js} +5 -5
- package/dist/{start-LDLKCTBE.js → start-MVEIYUSE.js} +6 -6
- package/dist/{status-MIERES2A.js → status-F5IHLWVS.js} +3 -3
- package/dist/{stop-BJ2OO6QL.js → stop-EIYNXNNN.js} +6 -6
- package/dist/{sync-HZ6I2EU7.js → sync-ANIWWB4H.js} +14 -14
- package/dist/{time-TWCZGQ2W.js → time-UKNNRLOD.js} +6 -6
- package/dist/{tree-ML343C6O.js → tree-REBGNULD.js} +10 -10
- package/dist/{update-RNIAUEA6.js → update-CQTSLOEX.js} +7 -7
- package/dist/{wait-2M76BDB5.js → wait-JE4GEXFC.js} +6 -6
- package/dist/wd-bin.js +2 -2
- package/dist/web/assets/{PtyView-C1eEBxiL.js → PtyView-DqardtO3.js} +2 -2
- package/dist/web/assets/{PtyView-C1eEBxiL.js.map → PtyView-DqardtO3.js.map} +1 -1
- package/dist/web/assets/{index-CjoTiPVM.js → index-Cp_xBIDU.js} +4 -4
- package/dist/web/assets/{index-CjoTiPVM.js.map → index-Cp_xBIDU.js.map} +1 -1
- package/dist/web/index.html +1 -1
- package/dist/{web-W33235GF.js → web-QPX373JI.js} +29 -29
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-LYNBLVEM.js +0 -9
- package/dist/chunk-PMA7QPUV.js.map +0 -1
- /package/dist/{answer-ZYRJTGPR.js.map → answer-GX4XSHO4.js.map} +0 -0
- /package/dist/{attach-PEOW6HHM.js.map → attach-E5HGK3QS.js.map} +0 -0
- /package/dist/{block-EA7LCWBG.js.map → block-LBR2SM5T.js.map} +0 -0
- /package/dist/{broadcast-VE7WYHDK.js.map → broadcast-ZDPVFRXD.js.map} +0 -0
- /package/dist/{catchup-DF7YZFOJ.js.map → catchup-DGFAJS5A.js.map} +0 -0
- /package/dist/{chunk-SBL4VVXD.js.map → chunk-2NZQ6NIY.js.map} +0 -0
- /package/dist/{chunk-2P26VJY3.js.map → chunk-3NXGK6TU.js.map} +0 -0
- /package/dist/{chunk-E4GZGQWP.js.map → chunk-563DLDDS.js.map} +0 -0
- /package/dist/{chunk-C763EC47.js.map → chunk-A2SMSRS3.js.map} +0 -0
- /package/dist/{chunk-LC2UWKAQ.js.map → chunk-BQP2BWZ7.js.map} +0 -0
- /package/dist/{chunk-NDEELC3K.js.map → chunk-D42K7F3P.js.map} +0 -0
- /package/dist/{chunk-T2KX2B6I.js.map → chunk-F7O3DYAL.js.map} +0 -0
- /package/dist/{chunk-IISQUS7L.js.map → chunk-FFLT7OJS.js.map} +0 -0
- /package/dist/{chunk-EYZG4MR6.js.map → chunk-FPGVLM2H.js.map} +0 -0
- /package/dist/{chunk-TMUMQRNM.js.map → chunk-GGTPVCXZ.js.map} +0 -0
- /package/dist/{chunk-KNKXGEPJ.js.map → chunk-GSEZZNSW.js.map} +0 -0
- /package/dist/{chunk-XOHJUVU6.js.map → chunk-ILQ3ID7S.js.map} +0 -0
- /package/dist/{chunk-YMNFSV5C.js.map → chunk-J6AS2Q3L.js.map} +0 -0
- /package/dist/{chunk-AUGWUZR2.js.map → chunk-KIOLKLGC.js.map} +0 -0
- /package/dist/{chunk-WDVIPH6X.js.map → chunk-M3HMYWDB.js.map} +0 -0
- /package/dist/{chunk-4WEYZ3YG.js.map → chunk-MFKARSOP.js.map} +0 -0
- /package/dist/{chunk-LQCYTZ2F.js.map → chunk-NOP2ATBT.js.map} +0 -0
- /package/dist/{chunk-52ST6RVB.js.map → chunk-OLC5NBEY.js.map} +0 -0
- /package/dist/{chunk-KPVCQBHZ.js.map → chunk-QHWHQR24.js.map} +0 -0
- /package/dist/{chunk-EY3ZPJT3.js.map → chunk-RJEKLIR4.js.map} +0 -0
- /package/dist/{chunk-REKP6EIC.js.map → chunk-RMRRLKLR.js.map} +0 -0
- /package/dist/{chunk-DKKXDLMQ.js.map → chunk-RXXRPNWF.js.map} +0 -0
- /package/dist/{chunk-PA2744MS.js.map → chunk-SHPZQNVG.js.map} +0 -0
- /package/dist/{chunk-LYNBLVEM.js.map → chunk-UDJ623JI.js.map} +0 -0
- /package/dist/{chunk-5OUTCUYQ.js.map → chunk-VLVOOPPN.js.map} +0 -0
- /package/dist/{chunk-EF5GZEXK.js.map → chunk-VWQ7GB2I.js.map} +0 -0
- /package/dist/{chunk-VSX6ICYG.js.map → chunk-WTX477XA.js.map} +0 -0
- /package/dist/{chunk-BFLJ6PGX.js.map → chunk-XZ5NJ2ET.js.map} +0 -0
- /package/dist/{chunk-DJBOQU56.js.map → chunk-Y6F4JSYV.js.map} +0 -0
- /package/dist/{chunk-IAOFCBAO.js.map → chunk-YBGZWOYZ.js.map} +0 -0
- /package/dist/{chunk-XWJ6BB63.js.map → chunk-YNTSWQA4.js.map} +0 -0
- /package/dist/{chunk-YNB3M2SM.js.map → chunk-ZEHFA3EO.js.map} +0 -0
- /package/dist/{chunk-4SK76CPY.js.map → chunk-ZOXO5M34.js.map} +0 -0
- /package/dist/{cleanup-2FPGGFMO.js.map → cleanup-WSPCOX34.js.map} +0 -0
- /package/dist/{cli-PI7WSA4S.js.map → cli-HCXJLNIA.js.map} +0 -0
- /package/dist/{config-HZOLEXYK.js.map → config-PHYE6XG5.js.map} +0 -0
- /package/dist/{diff-3YNZDI65.js.map → diff-63W4LBMD.js.map} +0 -0
- /package/dist/{digest-CZG3FZE7.js.map → digest-KK4VUUZP.js.map} +0 -0
- /package/dist/{fork-QPD5JTUH.js.map → fork-HEYAX5PM.js.map} +0 -0
- /package/dist/{hook-6GDHRNT6.js.map → hook-4TAFJYJJ.js.map} +0 -0
- /package/dist/{hydrate-YGDWGBXX.js.map → hydrate-TCXT3XDH.js.map} +0 -0
- /package/dist/{init-MBNE57LN.js.map → init-RY5K3YFW.js.map} +0 -0
- /package/dist/{install-skills-5XINJXYY.js.map → install-skills-XJKQ2UBP.js.map} +0 -0
- /package/dist/{move-HUC4Y4FX.js.map → move-OM552GP7.js.map} +0 -0
- /package/dist/{note-2YE44FRK.js.map → note-4OBZ32FO.js.map} +0 -0
- /package/dist/{overlaps-75LVGJWA.js.map → overlaps-EVDLCYBQ.js.map} +0 -0
- /package/dist/{pin-FWJVLOSH.js.map → pin-QOZJ6PTK.js.map} +0 -0
- /package/dist/{pr-2XIZWDS2.js.map → pr-IRCJZCKF.js.map} +0 -0
- /package/dist/{prune-7MSLBWVA.js.map → prune-V4GA4XWG.js.map} +0 -0
- /package/dist/{pty-host-HQPWKXVI.js.map → pty-host-ZEAVQOKT.js.map} +0 -0
- /package/dist/{read-PYIADA63.js.map → read-WQKAE5RC.js.map} +0 -0
- /package/dist/{recent-JKFUXEKV.js.map → recent-YVSZPJVO.js.map} +0 -0
- /package/dist/{remove-MGXS7QZ6.js.map → remove-YFFZ52PE.js.map} +0 -0
- /package/dist/{resume-DMGXYTGC.js.map → resume-O4UYWQTU.js.map} +0 -0
- /package/dist/{run-3KH6GAOL.js.map → run-K66K7TMM.js.map} +0 -0
- /package/dist/{screen-3UMWSHAY.js.map → screen-OO566RNR.js.map} +0 -0
- /package/dist/{search-OOJIPNZT.js.map → search-N4KN2GEG.js.map} +0 -0
- /package/dist/{section-ZHCDMSCB.js.map → section-AZZO4ZSO.js.map} +0 -0
- /package/dist/{send-DXNOANZQ.js.map → send-ZNDJON57.js.map} +0 -0
- /package/dist/{sessions-CLE6ZC23.js.map → sessions-OYQIYTDE.js.map} +0 -0
- /package/dist/{snooze-OHZFIQEG.js.map → snooze-BNERTMXJ.js.map} +0 -0
- /package/dist/{start-LDLKCTBE.js.map → start-MVEIYUSE.js.map} +0 -0
- /package/dist/{status-MIERES2A.js.map → status-F5IHLWVS.js.map} +0 -0
- /package/dist/{stop-BJ2OO6QL.js.map → stop-EIYNXNNN.js.map} +0 -0
- /package/dist/{sync-HZ6I2EU7.js.map → sync-ANIWWB4H.js.map} +0 -0
- /package/dist/{time-TWCZGQ2W.js.map → time-UKNNRLOD.js.map} +0 -0
- /package/dist/{tree-ML343C6O.js.map → tree-REBGNULD.js.map} +0 -0
- /package/dist/{update-RNIAUEA6.js.map → update-CQTSLOEX.js.map} +0 -0
- /package/dist/{wait-2M76BDB5.js.map → wait-JE4GEXFC.js.map} +0 -0
- /package/dist/{web-W33235GF.js.map → web-QPX373JI.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
attachSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YNTSWQA4.js";
|
|
5
5
|
import "./chunk-AH5TM3NB.js";
|
|
6
6
|
import {
|
|
7
7
|
BaseSpecError,
|
|
@@ -9,30 +9,30 @@ import {
|
|
|
9
9
|
openBaseCheckout,
|
|
10
10
|
parseBaseSpec,
|
|
11
11
|
setupWorktree
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-FPGVLM2H.js";
|
|
13
|
+
import "./chunk-NOP2ATBT.js";
|
|
14
|
+
import "./chunk-ILQ3ID7S.js";
|
|
15
|
+
import "./chunk-Y6F4JSYV.js";
|
|
16
16
|
import {
|
|
17
17
|
getAllTargetNames,
|
|
18
18
|
resolveFromCwd,
|
|
19
19
|
resolveProjectTarget
|
|
20
20
|
} from "./chunk-H5LKMR45.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-RMRRLKLR.js";
|
|
22
22
|
import "./chunk-7NAXFBFI.js";
|
|
23
23
|
import {
|
|
24
24
|
launchAi,
|
|
25
25
|
openVSCode
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BQP2BWZ7.js";
|
|
27
27
|
import {
|
|
28
28
|
findSession,
|
|
29
29
|
loadHistory,
|
|
30
30
|
recordLaunch
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-2NZQ6NIY.js";
|
|
32
32
|
import "./chunk-WF57CF7A.js";
|
|
33
33
|
import {
|
|
34
34
|
agentFor
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-HRD6F4NW.js";
|
|
36
36
|
import "./chunk-RCYI7SRA.js";
|
|
37
37
|
import "./chunk-DW4JPVXB.js";
|
|
38
38
|
import "./chunk-N4EYQKSM.js";
|
|
@@ -232,4 +232,4 @@ var treeCommand = {
|
|
|
232
232
|
export {
|
|
233
233
|
treeCommand
|
|
234
234
|
};
|
|
235
|
-
//# sourceMappingURL=tree-
|
|
235
|
+
//# sourceMappingURL=tree-REBGNULD.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
updateSession
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-RXXRPNWF.js";
|
|
5
|
+
import "./chunk-XZ5NJ2ET.js";
|
|
6
6
|
import {
|
|
7
7
|
sessionFromArgs,
|
|
8
8
|
sessionPositionals
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZEHFA3EO.js";
|
|
10
10
|
import "./chunk-6AQRYLOB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-A2SMSRS3.js";
|
|
12
12
|
import "./chunk-ZSHWP2VS.js";
|
|
13
13
|
import "./chunk-JJRPLNLN.js";
|
|
14
14
|
import "./chunk-HUXS3VAI.js";
|
|
15
15
|
import "./chunk-46UD4QBL.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2NZQ6NIY.js";
|
|
17
17
|
import "./chunk-WF57CF7A.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-HRD6F4NW.js";
|
|
19
19
|
import "./chunk-RCYI7SRA.js";
|
|
20
20
|
import "./chunk-DW4JPVXB.js";
|
|
21
21
|
import "./chunk-N4EYQKSM.js";
|
|
@@ -54,4 +54,4 @@ var updateCommand = {
|
|
|
54
54
|
export {
|
|
55
55
|
updateCommand
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=update-
|
|
57
|
+
//# sourceMappingURL=update-CQTSLOEX.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
cliWaitDeps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F7O3DYAL.js";
|
|
5
5
|
import {
|
|
6
6
|
parseDuration,
|
|
7
7
|
waitForTurn
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
sessionFromArgs,
|
|
11
11
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ZEHFA3EO.js";
|
|
13
13
|
import "./chunk-6AQRYLOB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-A2SMSRS3.js";
|
|
15
15
|
import "./chunk-ZSHWP2VS.js";
|
|
16
16
|
import "./chunk-JJRPLNLN.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-2NZQ6NIY.js";
|
|
19
19
|
import {
|
|
20
20
|
sessionIdFor
|
|
21
21
|
} from "./chunk-WF57CF7A.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-HRD6F4NW.js";
|
|
23
23
|
import "./chunk-RCYI7SRA.js";
|
|
24
24
|
import "./chunk-DW4JPVXB.js";
|
|
25
25
|
import "./chunk-N4EYQKSM.js";
|
|
@@ -54,4 +54,4 @@ var waitCommand = {
|
|
|
54
54
|
export {
|
|
55
55
|
waitCommand
|
|
56
56
|
};
|
|
57
|
-
//# sourceMappingURL=wait-
|
|
57
|
+
//# sourceMappingURL=wait-JE4GEXFC.js.map
|
package/dist/wd-bin.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
run
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-GGTPVCXZ.js";
|
|
5
5
|
import {
|
|
6
6
|
consoleReporter
|
|
7
7
|
} from "./chunk-S5HJT7CM.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-UDJ623JI.js";
|
|
9
9
|
import "./chunk-H5LKMR45.js";
|
|
10
10
|
import "./chunk-7NAXFBFI.js";
|
|
11
11
|
import "./chunk-RCYI7SRA.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as e,r as t,t as n}from"./index-CjoTiPVM.js";var r=t(e(),1),i=2e3,a=20,o=class{sentAt=null;samples=[];keySent(e){this.sentAt===null&&(this.sentAt=e)}output(e){if(this.sentAt===null)return null;let t=e-this.sentAt;return this.sentAt=null,t<0||t>i?null:(this.samples.push(t),this.samples.length>a&&this.samples.shift(),t)}median(){if(this.samples.length===0)return null;let e=[...this.samples].sort((e,t)=>e-t),t=e.length>>1;return e.length%2?e[t]:(e[t-1]+e[t])/2}},s=[2e3,1e4,6e4],c=6e5,l=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<c),this.losses.push(e),s[this.losses.length-1]??null}},u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},p=(e,t,n,r)=>{for(var i=r>1?void 0:r?d(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&u(t,n,i),i},m=(e,t)=>(n,r)=>t(n,r,e),h=`Terminal input`,g={get:()=>h,set:e=>h=e},_=`Too much output to announce, navigate to rows manually to read`,v={get:()=>_,set:e=>_=e};function y(e){return e.replace(/\r?\n/g,`\r`)}function b(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function ee(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function te(e,t,n,r){e.stopPropagation(),e.clipboardData&&ne(e.clipboardData.getData(`text/plain`),t,n,r)}function ne(e,t,n,r){e=y(e),e=b(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function x(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function re(e,t,n,r,i){x(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function S(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function C(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var ie=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},w=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},ae=``,oe=` `,se=class e{constructor(){this.fg=0,this.bg=0,this.extended=new T}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return!(this.fg&50331648)}isBgDefault(){return!(this.bg&50331648)}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?!(this.extended.underlineColor&50331648):this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},T=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},E=class e extends se{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new T,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?S(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},D=`di$target`,ce=`di$dependencies`,le=new Map;function ue(e){return e[ce]||[]}function O(e){if(le.has(e))return le.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);de(t,e,r)};return t._id=e,le.set(e,t),t}function de(e,t,n){t[D]===t?t[ce].push({id:e,index:n}):(t[ce]=[{id:e,index:n}],t[D]=t)}var k=O(`BufferService`),fe=O(`CoreMouseService`),pe=O(`CoreService`),me=O(`CharsetService`),he=O(`InstantiationService`),ge=O(`LogService`),A=O(`OptionsService`),_e=O(`OscLinkService`),ve=O(`UnicodeService`),ye=O(`DecorationService`),be=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new E,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(c!==-1||n.hasContent(t)){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId){if(c===-1){c=t,s=a.extended.urlId;continue}l=a.extended.urlId!==s}else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):xe(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};be=p([m(0,k),m(1,A),m(2,_e)],be);function xe(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
1
|
+
import{n as e,r as t,t as n}from"./index-Cp_xBIDU.js";var r=t(e(),1),i=2e3,a=20,o=class{sentAt=null;samples=[];keySent(e){this.sentAt===null&&(this.sentAt=e)}output(e){if(this.sentAt===null)return null;let t=e-this.sentAt;return this.sentAt=null,t<0||t>i?null:(this.samples.push(t),this.samples.length>a&&this.samples.shift(),t)}median(){if(this.samples.length===0)return null;let e=[...this.samples].sort((e,t)=>e-t),t=e.length>>1;return e.length%2?e[t]:(e[t-1]+e[t])/2}},s=[2e3,1e4,6e4],c=6e5,l=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<c),this.losses.push(e),s[this.losses.length-1]??null}},u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,f=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0})},p=(e,t,n,r)=>{for(var i=r>1?void 0:r?d(t,n):t,a=e.length-1,o;a>=0;a--)(o=e[a])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&u(t,n,i),i},m=(e,t)=>(n,r)=>t(n,r,e),h=`Terminal input`,g={get:()=>h,set:e=>h=e},_=`Too much output to announce, navigate to rows manually to read`,v={get:()=>_,set:e=>_=e};function y(e){return e.replace(/\r?\n/g,`\r`)}function b(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function ee(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function te(e,t,n,r){e.stopPropagation(),e.clipboardData&&ne(e.clipboardData.getData(`text/plain`),t,n,r)}function ne(e,t,n,r){e=y(e),e=b(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function x(e,t,n){let r=n.getBoundingClientRect(),i=e.clientX-r.left-10,a=e.clientY-r.top-10;t.style.width=`20px`,t.style.height=`20px`,t.style.left=`${i}px`,t.style.top=`${a}px`,t.style.zIndex=`1000`,t.focus()}function re(e,t,n,r,i){x(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function S(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function C(e,t=0,n=e.length){let r=``;for(let i=t;i<n;++i){let t=e[i];t>65535?(t-=65536,r+=String.fromCharCode((t>>10)+55296)+String.fromCharCode(t%1024+56320)):r+=String.fromCharCode(t)}return r}var ie=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i=0;if(this._interim){let n=e.charCodeAt(i++);56320<=n&&n<=57343?t[r++]=(this._interim-55296)*1024+n-56320+65536:(t[r++]=this._interim,t[r++]=n),this._interim=0}for(let a=i;a<n;++a){let i=e.charCodeAt(a);if(55296<=i&&i<=56319){if(++a>=n)return this._interim=i,r;let o=e.charCodeAt(a);56320<=o&&o<=57343?t[r++]=(i-55296)*1024+o-56320+65536:(t[r++]=i,t[r++]=o);continue}i!==65279&&(t[r++]=i)}return r}},w=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){let n=e.length;if(!n)return 0;let r=0,i,a,o,s,c=0,l=0;if(this.interim[0]){let i=!1,a=this.interim[0];a&=(a&224)==192?31:(a&240)==224?15:7;let o=0,s;for(;(s=this.interim[++o]&63)&&o<4;)a<<=6,a|=s;let c=(this.interim[0]&224)==192?2:(this.interim[0]&240)==224?3:4,u=c-o;for(;l<u;){if(l>=n)return 0;if(s=e[l++],(s&192)!=128){l--,i=!0;break}this.interim[o++]=s,a<<=6,a|=s&63}i||(c===2?a<128?l--:t[r++]=a:c===3?a<2048||a>=55296&&a<=57343||a===65279||(t[r++]=a):a<65536||a>1114111||(t[r++]=a)),this.interim.fill(0)}let u=n-4,d=l;for(;d<n;){for(;d<u&&!((i=e[d])&128)&&!((a=e[d+1])&128)&&!((o=e[d+2])&128)&&!((s=e[d+3])&128);)t[r++]=i,t[r++]=a,t[r++]=o,t[r++]=s,d+=4;if(i=e[d++],i<128)t[r++]=i;else if((i&224)==192){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(c=(i&31)<<6|a&63,c<128){d--;continue}t[r++]=c}else if((i&240)==224){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(c=(i&15)<<12|(a&63)<<6|o&63,c<2048||c>=55296&&c<=57343||c===65279)continue;t[r++]=c}else if((i&248)==240){if(d>=n)return this.interim[0]=i,r;if(a=e[d++],(a&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,r;if(o=e[d++],(o&192)!=128){d--;continue}if(d>=n)return this.interim[0]=i,this.interim[1]=a,this.interim[2]=o,r;if(s=e[d++],(s&192)!=128){d--;continue}if(c=(i&7)<<18|(a&63)<<12|(o&63)<<6|s&63,c<65536||c>1114111)continue;t[r++]=c}}return r}},ae=``,oe=` `,se=class e{constructor(){this.fg=0,this.bg=0,this.extended=new T}static toColorRGB(e){return[e>>>16&255,e>>>8&255,e&255]}static fromColorRGB(e){return(e[0]&255)<<16|(e[1]&255)<<8|e[2]&255}clone(){let t=new e;return t.fg=this.fg,t.bg=this.bg,t.extended=this.extended.clone(),t}isInverse(){return this.fg&67108864}isBold(){return this.fg&134217728}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:this.fg&268435456}isBlink(){return this.fg&536870912}isInvisible(){return this.fg&1073741824}isItalic(){return this.bg&67108864}isDim(){return this.bg&134217728}isStrikethrough(){return this.fg&2147483648}isProtected(){return this.bg&536870912}isOverline(){return this.bg&1073741824}getFgColorMode(){return this.fg&50331648}getBgColorMode(){return this.bg&50331648}isFgRGB(){return(this.fg&50331648)==50331648}isBgRGB(){return(this.bg&50331648)==50331648}isFgPalette(){return(this.fg&50331648)==16777216||(this.fg&50331648)==33554432}isBgPalette(){return(this.bg&50331648)==16777216||(this.bg&50331648)==33554432}isFgDefault(){return!(this.fg&50331648)}isBgDefault(){return!(this.bg&50331648)}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(this.fg&50331648){case 16777216:case 33554432:return this.fg&255;case 50331648:return this.fg&16777215;default:return-1}}getBgColor(){switch(this.bg&50331648){case 16777216:case 33554432:return this.bg&255;case 50331648:return this.bg&16777215;default:return-1}}hasExtendedAttrs(){return this.bg&268435456}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(this.bg&268435456&&~this.extended.underlineColor)switch(this.extended.underlineColor&50331648){case 16777216:case 33554432:return this.extended.underlineColor&255;case 50331648:return this.extended.underlineColor&16777215;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return this.bg&268435456&&~this.extended.underlineColor?this.extended.underlineColor&50331648:this.getFgColorMode()}isUnderlineColorRGB(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return this.bg&268435456&&~this.extended.underlineColor?(this.extended.underlineColor&50331648)==16777216||(this.extended.underlineColor&50331648)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return this.bg&268435456&&~this.extended.underlineColor?!(this.extended.underlineColor&50331648):this.isFgDefault()}getUnderlineStyle(){return this.fg&268435456?this.bg&268435456?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}},T=class e{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?this._ext&-469762049|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(this._ext&469762048)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return this._ext&67108863}set underlineColor(e){this._ext&=-67108864,this._ext|=e&67108863}get urlId(){return this._urlId}set urlId(e){this._urlId=e}get underlineVariantOffset(){let e=(this._ext&3758096384)>>29;return e<0?e^4294967288:e}set underlineVariantOffset(e){this._ext&=536870911,this._ext|=e<<29&3758096384}clone(){return new e(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}},E=class e extends se{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new T,this.combinedData=``}static fromCharData(t){let n=new e;return n.setFromCharData(t),n}isCombined(){return this.content&2097152}getWidth(){return this.content>>22}getChars(){return this.content&2097152?this.combinedData:this.content&2097151?S(this.content&2097151):``}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):this.content&2097151}setFromCharData(e){this.fg=e[0],this.bg=0;let t=!1;if(e[1].length>2)t=!0;else if(e[1].length===2){let n=e[1].charCodeAt(0);if(55296<=n&&n<=56319){let r=e[1].charCodeAt(1);56320<=r&&r<=57343?this.content=(n-55296)*1024+r-56320+65536|e[2]<<22:t=!0}else t=!0}else this.content=e[1].charCodeAt(0)|e[2]<<22;t&&(this.combinedData=e[1],this.content=2097152|e[2]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}},D=`di$target`,ce=`di$dependencies`,le=new Map;function ue(e){return e[ce]||[]}function O(e){if(le.has(e))return le.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);de(t,e,r)};return t._id=e,le.set(e,t),t}function de(e,t,n){t[D]===t?t[ce].push({id:e,index:n}):(t[ce]=[{id:e,index:n}],t[D]=t)}var k=O(`BufferService`),fe=O(`CoreMouseService`),pe=O(`CoreService`),me=O(`CharsetService`),he=O(`InstantiationService`),ge=O(`LogService`),A=O(`OptionsService`),_e=O(`OscLinkService`),ve=O(`UnicodeService`),ye=O(`DecorationService`),be=class{constructor(e,t,n){this._bufferService=e,this._optionsService=t,this._oscLinkService=n}provideLinks(e,t){let n=this._bufferService.buffer.lines.get(e-1);if(!n){t(void 0);return}let r=[],i=this._optionsService.rawOptions.linkHandler,a=new E,o=n.getTrimmedLength(),s=-1,c=-1,l=!1;for(let t=0;t<o;t++)if(c!==-1||n.hasContent(t)){if(n.loadCell(t,a),a.hasExtendedAttrs()&&a.extended.urlId){if(c===-1){c=t,s=a.extended.urlId;continue}l=a.extended.urlId!==s}else c!==-1&&(l=!0);if(l||c!==-1&&t===o-1){let n=this._oscLinkService.getLinkData(s)?.uri;if(n){let a={start:{x:c+1,y:e},end:{x:t+ +(!l&&t===o-1),y:e}},s=!1;if(!i?.allowNonHttpProtocols)try{let e=new URL(n);[`http:`,`https:`].includes(e.protocol)||(s=!0)}catch{s=!0}s||r.push({text:n,range:a,activate:(e,t)=>i?i.activate(e,t,a):xe(e,t),hover:(e,t)=>i?.hover?.(e,t,a),leave:(e,t)=>i?.leave?.(e,t,a)})}l=!1,a.hasExtendedAttrs()&&a.extended.urlId?(c=t,s=a.extended.urlId):(c=-1,s=-1)}}t(r)}};be=p([m(0,k),m(1,A),m(2,_e)],be);function xe(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
2
2
|
|
|
3
3
|
WARNING: This link could potentially be dangerous`)){let e=window.open();if(e){try{e.opener=null}catch{}e.location.href=t}else console.warn(`Opening link blocked as opener could not be cleared`)}}var Se=O(`CharSizeService`),Ce=O(`CoreBrowserService`),we=O(`MouseService`),Te=O(`RenderService`),Ee=O(`SelectionService`),De=O(`CharacterJoinerService`),Oe=O(`ThemeService`),ke=O(`LinkProviderService`),Ae=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Ie.isErrorNoTelemetry(e)?new Ie(e.message+`
|
|
4
4
|
|
|
@@ -87,4 +87,4 @@ void main() {
|
|
|
87
87
|
`),w=!0});let se=t.onData(e=>{if(w){e===`\r`&&p(e=>e+1);return}T(e)});function T(e){w||(S?(x.send(JSON.stringify({type:`input`,data:e})),ae.keySent(performance.now())):C.push(e))}let E=t.cols,D=t.rows,ce=(e=!1)=>{s.current&&(n.fit(),(e||t.cols!==E||t.rows!==D)&&(E=t.cols,D=t.rows,S&&x.send(JSON.stringify({type:`resize`,cols:t.cols,rows:t.rows}))))},le=()=>ce(),ue=typeof ResizeObserver<`u`?new ResizeObserver(()=>ce()):null;ue?ue.observe(a.current):window.addEventListener(`resize`,le),c.current=()=>{ce(!0),t.focus()};let O=()=>ce(!0);return t.textarea?.addEventListener(`focus`,O),()=>{f=!0,clearTimeout(re),clearTimeout(u),t.textarea?.removeEventListener(`paste`,ee,!0),t.textarea?.removeEventListener(`focus`,O),c.current=null,ue?.disconnect(),window.removeEventListener(`resize`,le),se.dispose();try{x.close()}catch{}t.dispose()}},[e,f]);let ne=()=>{te(!0),p(e=>e+1)};(0,r.useEffect)(()=>{if(!m||!i)return;let e=setInterval(()=>{document.visibilityState===`visible`&&ne()},Lf);return()=>clearInterval(e)},[m,i]);let x=()=>{window.confirm(`Start this session's Claude here?
|
|
88
88
|
|
|
89
89
|
If it is still open in another terminal, both would write to the same conversation.`)&&(g.current=!0,h(null),p(e=>e+1))},re=t?`work tree ${t}${n?` ${n}`:``}`:`work tree <target> <branch>`,S=Bf(_,y);return(0,Ff.jsxs)(Ff.Fragment,{children:[m&&(0,Ff.jsxs)(`div`,{className:`wd-pty-elsewhere`,role:`status`,children:[(0,Ff.jsxs)(`p`,{className:`wd-pty-elsewhere-title`,children:[m.confirmed?`This session’s Claude is open in another terminal`:`This session’s Claude seems to be running in another terminal`,m.lastActivity!==null&&(0,Ff.jsxs)(Ff.Fragment,{children:[` (last wrote `,Rf(m.lastActivity),`)`]}),m.state===`needs_input`&&(0,Ff.jsx)(Ff.Fragment,{children:`, waiting for your answer there`}),`.`]}),(0,Ff.jsxs)(`p`,{children:[`Close it there (type `,(0,Ff.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,Ff.jsx)(`code`,{children:re}),` (Ctrl+] detaches, Claude keeps running).`]}),(0,Ff.jsxs)(`p`,{className:`wd-pty-elsewhere-actions`,children:[(0,Ff.jsx)(`button`,{type:`button`,className:`wd-btn-secondary`,onClick:ne,disabled:ee,children:ee?`Checking…`:`Check again`}),!m.confirmed&&(0,Ff.jsx)(`button`,{type:`button`,className:`wd-link-button`,onClick:x,children:`It's not running — start it here…`})]})]}),(0,Ff.jsxs)(`div`,{className:`wd-pty-frame`,style:m?{display:`none`}:void 0,children:[(0,Ff.jsx)(`div`,{ref:a,className:`wd-pty-host`}),S&&(0,Ff.jsx)(`span`,{className:`wd-pty-latency`+(S.slow?` wd-pty-latency-slow`:``),title:S.title,children:S.text}),u!==`ready`&&!m&&(0,Ff.jsx)(`div`,{className:`wd-pty-connecting`,role:`status`,children:u===`starting`?`Starting Claude — resuming the conversation…`:`Connecting…`})]})]})}function Bf(e,t){let n=t!==`webgl`;return e===null&&!n?null:{text:[e!==null&&`⌁ ${Math.round(e)} ms`,n&&`DOM`].filter(Boolean).join(` · `),title:[e!==null&&`A keystroke's way to the screen and back (browser → work web → PTY host → Claude): the median of the last 20.`,n&&`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.`].filter(Boolean).join(` `),slow:n||(e??0)>100}}export{Lf as ELSEWHERE_RECHECK_MS,zf as PtyView,If as openLink};
|
|
90
|
-
//# sourceMappingURL=PtyView-
|
|
90
|
+
//# sourceMappingURL=PtyView-DqardtO3.js.map
|