@moberg_hr/work-tree 2.9.1 → 2.9.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-RTOXCLE6.js → account-NG75VLRU.js} +14 -13
- package/dist/{account-RTOXCLE6.js.map → account-NG75VLRU.js.map} +1 -1
- package/dist/{add-repo-AA3XTOZT.js → add-repo-EDU3QEYI.js} +9 -9
- package/dist/{answer-NT62U5MY.js → answer-MHOJ2J6S.js} +7 -7
- package/dist/{attach-HKVFNOOK.js → attach-37JOJ4C3.js} +12 -11
- package/dist/{attach-HKVFNOOK.js.map → attach-37JOJ4C3.js.map} +1 -1
- package/dist/bin.js +3 -3
- package/dist/{block-YZQGJMLI.js → block-D5CAR53T.js} +8 -8
- package/dist/{broadcast-2NOVIUZI.js → broadcast-LLYHUWXA.js} +5 -5
- package/dist/{catchup-LZ5FMXEO.js → catchup-2SL3JGA7.js} +10 -10
- package/dist/{chunk-ODBA4PVE.js → chunk-26OVU2AE.js} +4 -4
- package/dist/{chunk-PDWEPIL6.js → chunk-2JNW2AQ2.js} +2 -1
- package/dist/chunk-2JNW2AQ2.js.map +1 -0
- package/dist/{chunk-RVT4435Z.js → chunk-37XQIG7F.js} +63 -97
- package/dist/chunk-37XQIG7F.js.map +1 -0
- package/dist/{chunk-GEGRI67Z.js → chunk-3C3BKZ3H.js} +3 -3
- package/dist/{chunk-BDFAIHTM.js → chunk-63VY4YJM.js} +4 -4
- package/dist/{chunk-VNNAKJZA.js → chunk-6E2I2FBJ.js} +10 -10
- package/dist/{chunk-FK2ZZUR5.js → chunk-6FVYSW3E.js} +4 -73
- package/dist/chunk-6FVYSW3E.js.map +1 -0
- package/dist/{chunk-BNGX2JGD.js → chunk-72IBYKIY.js} +2 -2
- package/dist/{chunk-SXPC4FQM.js → chunk-7OUIZ2YQ.js} +53 -53
- package/dist/{chunk-3NXRBRRJ.js → chunk-AAYWHIIT.js} +11 -4
- package/dist/chunk-AAYWHIIT.js.map +1 -0
- package/dist/{chunk-BGKHI4FC.js → chunk-ATED7SAH.js} +3 -3
- package/dist/{chunk-T6BX6B5B.js → chunk-BSP2Z7B7.js} +2 -2
- package/dist/{chunk-PGZMPB2Q.js → chunk-CCTALU3C.js} +2 -2
- package/dist/{chunk-N7EHLEYG.js → chunk-CLBQ7ZC4.js} +2 -2
- package/dist/{chunk-4GVXOUVN.js → chunk-CMO5YUZR.js} +2 -2
- package/dist/{chunk-JAU62YN5.js → chunk-CYWI3ZW7.js} +4 -4
- package/dist/{chunk-QNH6ZRFV.js → chunk-DQCUYCMX.js} +2 -2
- package/dist/{chunk-ZJSEDIFT.js → chunk-GRLKPVTP.js} +11 -8
- package/dist/chunk-GRLKPVTP.js.map +1 -0
- package/dist/{chunk-IGC64EGV.js → chunk-HCVONKJI.js} +6 -6
- package/dist/{chunk-4OK2WJ2B.js → chunk-HEPBANFJ.js} +5 -5
- package/dist/{chunk-AHA65ZCO.js → chunk-INQQGV2G.js} +3 -3
- package/dist/{chunk-AQJSY4CI.js → chunk-IPGH7TXJ.js} +2 -2
- package/dist/{chunk-HJZSMSP4.js → chunk-IWJXFNM4.js} +6 -6
- package/dist/{chunk-JFN67PRA.js → chunk-KSUOVFO3.js} +2 -2
- package/dist/{chunk-7NSQVIIK.js → chunk-MG5TTLYZ.js} +2 -2
- package/dist/chunk-NWIVXGSL.js +9 -0
- package/dist/chunk-OTAZOIXK.js +78 -0
- package/dist/chunk-OTAZOIXK.js.map +1 -0
- package/dist/{chunk-HKK3WUPZ.js → chunk-P6BHOAQG.js} +2 -2
- package/dist/{chunk-RCZZAQFN.js → chunk-PRDRRU2B.js} +4 -4
- package/dist/{chunk-CYXMVMVO.js → chunk-PTWVOT7A.js} +223 -9
- package/dist/chunk-PTWVOT7A.js.map +1 -0
- package/dist/{chunk-6KOJSRML.js → chunk-QEVYCCKD.js} +2 -2
- package/dist/{chunk-7NZC7EAP.js → chunk-QHTXLCG7.js} +7 -7
- package/dist/{chunk-A633PJUP.js → chunk-QL36KN7X.js} +3 -3
- package/dist/{chunk-7POCHRUP.js → chunk-QSOEMCWQ.js} +6 -6
- package/dist/{chunk-J4Y7DKQN.js → chunk-RFINYWID.js} +3 -3
- package/dist/{chunk-4WG66W6U.js → chunk-S3FMTEFR.js} +4 -4
- package/dist/{chunk-MVMLNEHM.js → chunk-T7AFYEQ7.js} +4 -4
- package/dist/{chunk-JT5AR7PO.js → chunk-TPSFJSO7.js} +72 -3
- package/dist/chunk-TPSFJSO7.js.map +1 -0
- package/dist/{chunk-MPY2ZQBL.js → chunk-VUAVPBFR.js} +4 -4
- package/dist/{chunk-T22E35FV.js → chunk-WC534PXU.js} +5 -5
- package/dist/{chunk-T22E35FV.js.map → chunk-WC534PXU.js.map} +1 -1
- package/dist/{chunk-UJWMBDFX.js → chunk-WTQ2QCAG.js} +3 -3
- package/dist/{chunk-7OTYC7T5.js → chunk-WXE7D44E.js} +3 -3
- package/dist/{chunk-IJSW2U6U.js → chunk-WXMWZRBH.js} +2 -2
- package/dist/{chunk-FXWY22ZP.js → chunk-XVNRP7XE.js} +6 -6
- package/dist/{chunk-2Z2O5LEA.js → chunk-ZI2KXTKM.js} +2 -2
- package/dist/{cleanup-6NOT6VTS.js → cleanup-5PSLKZLF.js} +20 -19
- package/dist/{cleanup-6NOT6VTS.js.map → cleanup-5PSLKZLF.js.map} +1 -1
- package/dist/{cli-PAICDKJT.js → cli-AF7636FA.js} +4 -4
- package/dist/{config-U4SGJ7RB.js → config-6MSITKGB.js} +7 -7
- package/dist/{diff-CYXW5YWD.js → diff-Q7MV6YGJ.js} +8 -8
- package/dist/{digest-KRIBJHII.js → digest-KUMVYXKZ.js} +7 -7
- package/dist/{fork-LQYEB4A4.js → fork-OFENISEM.js} +18 -17
- package/dist/{fork-LQYEB4A4.js.map → fork-OFENISEM.js.map} +1 -1
- package/dist/{history-DCALTZMM.js → history-5WKRWARZ.js} +5 -5
- package/dist/{hook-MDFVVCD2.js → hook-ARS32DG2.js} +9 -8
- package/dist/{hook-MDFVVCD2.js.map → hook-ARS32DG2.js.map} +1 -1
- package/dist/{hydrate-KBWZSSBL.js → hydrate-LCT6DVB3.js} +5 -5
- package/dist/{init-R47WGD62.js → init-FJKPEY5N.js} +6 -6
- package/dist/{install-skills-IIMTRQ4K.js → install-skills-UYAFVJBA.js} +5 -5
- package/dist/install-skills-bin.js +4 -4
- package/dist/{list-X5YB4JRL.js → list-GTKP5FAW.js} +5 -5
- package/dist/{move-WSK5UU5T.js → move-GOCLEFGZ.js} +8 -8
- package/dist/{note-VMO2PKYX.js → note-B7TQBXQF.js} +7 -7
- package/dist/{overlaps-ZNZTQHU7.js → overlaps-UKQHIJMU.js} +7 -7
- package/dist/{pin-RGRNNJUL.js → pin-UZZCDK7M.js} +7 -7
- package/dist/{pr-B2V3N3SV.js → pr-NU2ME2XW.js} +8 -7
- package/dist/{pr-B2V3N3SV.js.map → pr-NU2ME2XW.js.map} +1 -1
- package/dist/{prune-M2MYPNI6.js → prune-IZGEYTSB.js} +18 -17
- package/dist/{prune-M2MYPNI6.js.map → prune-IZGEYTSB.js.map} +1 -1
- package/dist/{pty-host-I2I7SVOL.js → pty-host-AWDIKPQN.js} +46 -41
- package/dist/pty-host-AWDIKPQN.js.map +1 -0
- package/dist/{read-E22APCUR.js → read-U6GBGA5E.js} +7 -7
- package/dist/{recent-F3Z3JXFX.js → recent-2DUMLUDG.js} +6 -6
- package/dist/{remove-YGVUESDY.js → remove-OXUP4O33.js} +17 -16
- package/dist/{remove-YGVUESDY.js.map → remove-OXUP4O33.js.map} +1 -1
- package/dist/{restart-BAGGJDD2.js → restart-QEW4DJC3.js} +7 -7
- package/dist/{resume-PIFCI727.js → resume-K45IT4QO.js} +6 -6
- package/dist/{run-MW3QTOXU.js → run-42LORGPS.js} +5 -5
- package/dist/{screen-UILBPWSR.js → screen-2TLIUH3G.js} +7 -7
- package/dist/{search-DLZEPI4I.js → search-7E4B2KX6.js} +5 -5
- package/dist/{section-A5JKTX4J.js → section-OVA5VD7L.js} +7 -7
- package/dist/{send-EPPQKYOK.js → send-BJY5CYLO.js} +8 -8
- package/dist/{sessions-3HLVK6HG.js → sessions-4A24ZORW.js} +15 -14
- package/dist/{sessions-3HLVK6HG.js.map → sessions-4A24ZORW.js.map} +1 -1
- package/dist/{snooze-GA46Z56G.js → snooze-WIVKB3GH.js} +7 -7
- package/dist/{start-L6G3NC2J.js → start-G6GR533S.js} +7 -7
- package/dist/{state-OZF4S7PG.js → state-S3DGLT4J.js} +2 -2
- package/dist/{status-H5S3DZBI.js → status-BTAWY6JQ.js} +5 -5
- package/dist/{statusline-RSQMMCRN.js → statusline-WLXEU5DM.js} +3 -3
- package/dist/{stop-HQLHTY5V.js → stop-FN6EPFJ4.js} +7 -7
- package/dist/{sync-N2CDSJA4.js → sync-T3BSHX6Q.js} +18 -17
- package/dist/{sync-N2CDSJA4.js.map → sync-T3BSHX6Q.js.map} +1 -1
- package/dist/{time-H54NH62B.js → time-5CH5O5MZ.js} +8 -8
- package/dist/{time-actions-DB7OQ2IS.js → time-actions-XEUQ3UF7.js} +3 -3
- package/dist/{timesheet-PAS5SHPD.js → timesheet-FMQKPS5S.js} +10 -10
- package/dist/{todo-ODF7RI27.js → todo-23COLGR2.js} +2 -2
- package/dist/{tree-7EBS7PVA.js → tree-T33VU473.js} +14 -13
- package/dist/{tree-7EBS7PVA.js.map → tree-T33VU473.js.map} +1 -1
- package/dist/{update-M7ECF7UE.js → update-PJRSKQZ2.js} +9 -9
- package/dist/{usage-IFKUY6LC.js → usage-TL66LWO4.js} +7 -7
- package/dist/{wait-K3NSSNFR.js → wait-YIEJO6YM.js} +8 -8
- package/dist/wd-bin.js +3 -3
- package/dist/web/assets/PtyView-DnDd6jLI.js +96 -0
- package/dist/web/assets/PtyView-DnDd6jLI.js.map +1 -0
- package/dist/web/assets/index-DxozAoUO.css +1 -0
- package/dist/web/assets/index-InmdAx6g.js +120 -0
- package/dist/web/assets/index-InmdAx6g.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-U34XTVBA.js → web-IYUNJMQD.js} +241 -263
- package/dist/web-IYUNJMQD.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-3NXRBRRJ.js.map +0 -1
- package/dist/chunk-CYXMVMVO.js.map +0 -1
- package/dist/chunk-FK2ZZUR5.js.map +0 -1
- package/dist/chunk-JT5AR7PO.js.map +0 -1
- package/dist/chunk-MYXLQMF7.js +0 -9
- package/dist/chunk-PDWEPIL6.js.map +0 -1
- package/dist/chunk-RVT4435Z.js.map +0 -1
- package/dist/chunk-ZJSEDIFT.js.map +0 -1
- package/dist/pty-host-I2I7SVOL.js.map +0 -1
- package/dist/web/assets/PtyView-Cg5gjgaQ.js +0 -96
- package/dist/web/assets/PtyView-Cg5gjgaQ.js.map +0 -1
- package/dist/web/assets/index-BOyg0f4L.css +0 -1
- package/dist/web/assets/index-CBK3PI8Y.js +0 -119
- package/dist/web/assets/index-CBK3PI8Y.js.map +0 -1
- package/dist/web-U34XTVBA.js.map +0 -1
- /package/dist/{add-repo-AA3XTOZT.js.map → add-repo-EDU3QEYI.js.map} +0 -0
- /package/dist/{answer-NT62U5MY.js.map → answer-MHOJ2J6S.js.map} +0 -0
- /package/dist/{block-YZQGJMLI.js.map → block-D5CAR53T.js.map} +0 -0
- /package/dist/{broadcast-2NOVIUZI.js.map → broadcast-LLYHUWXA.js.map} +0 -0
- /package/dist/{catchup-LZ5FMXEO.js.map → catchup-2SL3JGA7.js.map} +0 -0
- /package/dist/{chunk-ODBA4PVE.js.map → chunk-26OVU2AE.js.map} +0 -0
- /package/dist/{chunk-GEGRI67Z.js.map → chunk-3C3BKZ3H.js.map} +0 -0
- /package/dist/{chunk-BDFAIHTM.js.map → chunk-63VY4YJM.js.map} +0 -0
- /package/dist/{chunk-VNNAKJZA.js.map → chunk-6E2I2FBJ.js.map} +0 -0
- /package/dist/{chunk-BNGX2JGD.js.map → chunk-72IBYKIY.js.map} +0 -0
- /package/dist/{chunk-SXPC4FQM.js.map → chunk-7OUIZ2YQ.js.map} +0 -0
- /package/dist/{chunk-BGKHI4FC.js.map → chunk-ATED7SAH.js.map} +0 -0
- /package/dist/{chunk-T6BX6B5B.js.map → chunk-BSP2Z7B7.js.map} +0 -0
- /package/dist/{chunk-PGZMPB2Q.js.map → chunk-CCTALU3C.js.map} +0 -0
- /package/dist/{chunk-N7EHLEYG.js.map → chunk-CLBQ7ZC4.js.map} +0 -0
- /package/dist/{chunk-4GVXOUVN.js.map → chunk-CMO5YUZR.js.map} +0 -0
- /package/dist/{chunk-JAU62YN5.js.map → chunk-CYWI3ZW7.js.map} +0 -0
- /package/dist/{chunk-QNH6ZRFV.js.map → chunk-DQCUYCMX.js.map} +0 -0
- /package/dist/{chunk-IGC64EGV.js.map → chunk-HCVONKJI.js.map} +0 -0
- /package/dist/{chunk-4OK2WJ2B.js.map → chunk-HEPBANFJ.js.map} +0 -0
- /package/dist/{chunk-AHA65ZCO.js.map → chunk-INQQGV2G.js.map} +0 -0
- /package/dist/{chunk-AQJSY4CI.js.map → chunk-IPGH7TXJ.js.map} +0 -0
- /package/dist/{chunk-HJZSMSP4.js.map → chunk-IWJXFNM4.js.map} +0 -0
- /package/dist/{chunk-JFN67PRA.js.map → chunk-KSUOVFO3.js.map} +0 -0
- /package/dist/{chunk-7NSQVIIK.js.map → chunk-MG5TTLYZ.js.map} +0 -0
- /package/dist/{chunk-MYXLQMF7.js.map → chunk-NWIVXGSL.js.map} +0 -0
- /package/dist/{chunk-HKK3WUPZ.js.map → chunk-P6BHOAQG.js.map} +0 -0
- /package/dist/{chunk-RCZZAQFN.js.map → chunk-PRDRRU2B.js.map} +0 -0
- /package/dist/{chunk-6KOJSRML.js.map → chunk-QEVYCCKD.js.map} +0 -0
- /package/dist/{chunk-7NZC7EAP.js.map → chunk-QHTXLCG7.js.map} +0 -0
- /package/dist/{chunk-A633PJUP.js.map → chunk-QL36KN7X.js.map} +0 -0
- /package/dist/{chunk-7POCHRUP.js.map → chunk-QSOEMCWQ.js.map} +0 -0
- /package/dist/{chunk-J4Y7DKQN.js.map → chunk-RFINYWID.js.map} +0 -0
- /package/dist/{chunk-4WG66W6U.js.map → chunk-S3FMTEFR.js.map} +0 -0
- /package/dist/{chunk-MVMLNEHM.js.map → chunk-T7AFYEQ7.js.map} +0 -0
- /package/dist/{chunk-MPY2ZQBL.js.map → chunk-VUAVPBFR.js.map} +0 -0
- /package/dist/{chunk-UJWMBDFX.js.map → chunk-WTQ2QCAG.js.map} +0 -0
- /package/dist/{chunk-7OTYC7T5.js.map → chunk-WXE7D44E.js.map} +0 -0
- /package/dist/{chunk-IJSW2U6U.js.map → chunk-WXMWZRBH.js.map} +0 -0
- /package/dist/{chunk-FXWY22ZP.js.map → chunk-XVNRP7XE.js.map} +0 -0
- /package/dist/{chunk-2Z2O5LEA.js.map → chunk-ZI2KXTKM.js.map} +0 -0
- /package/dist/{cli-PAICDKJT.js.map → cli-AF7636FA.js.map} +0 -0
- /package/dist/{config-U4SGJ7RB.js.map → config-6MSITKGB.js.map} +0 -0
- /package/dist/{diff-CYXW5YWD.js.map → diff-Q7MV6YGJ.js.map} +0 -0
- /package/dist/{digest-KRIBJHII.js.map → digest-KUMVYXKZ.js.map} +0 -0
- /package/dist/{history-DCALTZMM.js.map → history-5WKRWARZ.js.map} +0 -0
- /package/dist/{hydrate-KBWZSSBL.js.map → hydrate-LCT6DVB3.js.map} +0 -0
- /package/dist/{init-R47WGD62.js.map → init-FJKPEY5N.js.map} +0 -0
- /package/dist/{install-skills-IIMTRQ4K.js.map → install-skills-UYAFVJBA.js.map} +0 -0
- /package/dist/{list-X5YB4JRL.js.map → list-GTKP5FAW.js.map} +0 -0
- /package/dist/{move-WSK5UU5T.js.map → move-GOCLEFGZ.js.map} +0 -0
- /package/dist/{note-VMO2PKYX.js.map → note-B7TQBXQF.js.map} +0 -0
- /package/dist/{overlaps-ZNZTQHU7.js.map → overlaps-UKQHIJMU.js.map} +0 -0
- /package/dist/{pin-RGRNNJUL.js.map → pin-UZZCDK7M.js.map} +0 -0
- /package/dist/{read-E22APCUR.js.map → read-U6GBGA5E.js.map} +0 -0
- /package/dist/{recent-F3Z3JXFX.js.map → recent-2DUMLUDG.js.map} +0 -0
- /package/dist/{restart-BAGGJDD2.js.map → restart-QEW4DJC3.js.map} +0 -0
- /package/dist/{resume-PIFCI727.js.map → resume-K45IT4QO.js.map} +0 -0
- /package/dist/{run-MW3QTOXU.js.map → run-42LORGPS.js.map} +0 -0
- /package/dist/{screen-UILBPWSR.js.map → screen-2TLIUH3G.js.map} +0 -0
- /package/dist/{search-DLZEPI4I.js.map → search-7E4B2KX6.js.map} +0 -0
- /package/dist/{section-A5JKTX4J.js.map → section-OVA5VD7L.js.map} +0 -0
- /package/dist/{send-EPPQKYOK.js.map → send-BJY5CYLO.js.map} +0 -0
- /package/dist/{snooze-GA46Z56G.js.map → snooze-WIVKB3GH.js.map} +0 -0
- /package/dist/{start-L6G3NC2J.js.map → start-G6GR533S.js.map} +0 -0
- /package/dist/{state-OZF4S7PG.js.map → state-S3DGLT4J.js.map} +0 -0
- /package/dist/{status-H5S3DZBI.js.map → status-BTAWY6JQ.js.map} +0 -0
- /package/dist/{statusline-RSQMMCRN.js.map → statusline-WLXEU5DM.js.map} +0 -0
- /package/dist/{stop-HQLHTY5V.js.map → stop-FN6EPFJ4.js.map} +0 -0
- /package/dist/{time-H54NH62B.js.map → time-5CH5O5MZ.js.map} +0 -0
- /package/dist/{time-actions-DB7OQ2IS.js.map → time-actions-XEUQ3UF7.js.map} +0 -0
- /package/dist/{timesheet-PAS5SHPD.js.map → timesheet-FMQKPS5S.js.map} +0 -0
- /package/dist/{todo-ODF7RI27.js.map → todo-23COLGR2.js.map} +0 -0
- /package/dist/{update-M7ECF7UE.js.map → update-PJRSKQZ2.js.map} +0 -0
- /package/dist/{usage-IFKUY6LC.js.map → usage-TL66LWO4.js.map} +0 -0
- /package/dist/{wait-K3NSSNFR.js.map → wait-YIEJO6YM.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_COPY_FILES,
|
|
9
9
|
suggestFolders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ATED7SAH.js";
|
|
11
11
|
import {
|
|
12
12
|
enrollProblem,
|
|
13
13
|
scanForRepos,
|
|
@@ -21,19 +21,19 @@ import "./chunk-3GIH4WTA.js";
|
|
|
21
21
|
import {
|
|
22
22
|
isGitRepo
|
|
23
23
|
} from "./chunk-3N3UQEC4.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-37XQIG7F.js";
|
|
25
25
|
import "./chunk-NEJVK5CF.js";
|
|
26
26
|
import "./chunk-YYBXQBW2.js";
|
|
27
27
|
import {
|
|
28
28
|
KNOWN_TOOLS
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-VUAVPBFR.js";
|
|
30
30
|
import "./chunk-RCGFHJM7.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-72IBYKIY.js";
|
|
32
32
|
import {
|
|
33
33
|
getConfigPath,
|
|
34
34
|
loadConfig,
|
|
35
35
|
saveConfig
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-2JNW2AQ2.js";
|
|
37
37
|
import "./chunk-4NITDMDH.js";
|
|
38
38
|
import "./chunk-RCYI7SRA.js";
|
|
39
39
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -197,4 +197,4 @@ var initCommand = {
|
|
|
197
197
|
export {
|
|
198
198
|
initCommand
|
|
199
199
|
};
|
|
200
|
-
//# sourceMappingURL=init-
|
|
200
|
+
//# sourceMappingURL=init-FJKPEY5N.js.map
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
installSkillsCommand,
|
|
4
4
|
runInstallSkills
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IPGH7TXJ.js";
|
|
6
6
|
import "./chunk-LNHSBM4L.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-VUAVPBFR.js";
|
|
8
8
|
import "./chunk-RCGFHJM7.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-72IBYKIY.js";
|
|
10
|
+
import "./chunk-2JNW2AQ2.js";
|
|
11
11
|
import "./chunk-4NITDMDH.js";
|
|
12
12
|
import "./chunk-RCYI7SRA.js";
|
|
13
13
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
installSkillsCommand,
|
|
18
18
|
runInstallSkills
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=install-skills-
|
|
20
|
+
//# sourceMappingURL=install-skills-UYAFVJBA.js.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runInstallSkills
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IPGH7TXJ.js";
|
|
5
5
|
import "./chunk-LNHSBM4L.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-VUAVPBFR.js";
|
|
7
7
|
import "./chunk-RCGFHJM7.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-72IBYKIY.js";
|
|
9
|
+
import "./chunk-2JNW2AQ2.js";
|
|
10
10
|
import "./chunk-4NITDMDH.js";
|
|
11
11
|
import "./chunk-RCYI7SRA.js";
|
|
12
12
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -9,15 +9,15 @@ import {
|
|
|
9
9
|
} from "./chunk-3N3UQEC4.js";
|
|
10
10
|
import {
|
|
11
11
|
loadHistory
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-37XQIG7F.js";
|
|
13
13
|
import "./chunk-NEJVK5CF.js";
|
|
14
14
|
import "./chunk-YYBXQBW2.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-VUAVPBFR.js";
|
|
16
16
|
import "./chunk-RCGFHJM7.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-72IBYKIY.js";
|
|
18
18
|
import {
|
|
19
19
|
ensureConfig
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2JNW2AQ2.js";
|
|
21
21
|
import "./chunk-4NITDMDH.js";
|
|
22
22
|
import "./chunk-RCYI7SRA.js";
|
|
23
23
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -147,4 +147,4 @@ export {
|
|
|
147
147
|
flatGroupSessions,
|
|
148
148
|
listCommand
|
|
149
149
|
};
|
|
150
|
-
//# sourceMappingURL=list-
|
|
150
|
+
//# sourceMappingURL=list-GTKP5FAW.js.map
|
|
@@ -5,15 +5,15 @@ import {
|
|
|
5
5
|
} from "./chunk-HMK3INUS.js";
|
|
6
6
|
import {
|
|
7
7
|
createInProcess
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WXE7D44E.js";
|
|
9
9
|
import {
|
|
10
10
|
findHost
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AAYWHIIT.js";
|
|
12
12
|
import {
|
|
13
13
|
readWebUrl,
|
|
14
14
|
webServerResponds
|
|
15
15
|
} from "./chunk-X4AXKO3A.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WC534PXU.js";
|
|
17
17
|
import "./chunk-RGUSVBGN.js";
|
|
18
18
|
import "./chunk-KUCMJHQW.js";
|
|
19
19
|
import "./chunk-PSUJZUYX.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
loadHistory,
|
|
28
28
|
saveHistory,
|
|
29
29
|
sessionAliases
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-37XQIG7F.js";
|
|
31
31
|
import "./chunk-NEJVK5CF.js";
|
|
32
32
|
import {
|
|
33
33
|
replaceDb,
|
|
@@ -37,13 +37,13 @@ import {
|
|
|
37
37
|
} from "./chunk-YYBXQBW2.js";
|
|
38
38
|
import {
|
|
39
39
|
agentOf
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-VUAVPBFR.js";
|
|
41
41
|
import "./chunk-RCGFHJM7.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-72IBYKIY.js";
|
|
43
43
|
import {
|
|
44
44
|
getConfigPath,
|
|
45
45
|
loadConfig
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-2JNW2AQ2.js";
|
|
47
47
|
import "./chunk-4NITDMDH.js";
|
|
48
48
|
import "./chunk-RCYI7SRA.js";
|
|
49
49
|
import {
|
|
@@ -338,4 +338,4 @@ var moveCommand = {
|
|
|
338
338
|
export {
|
|
339
339
|
moveCommand
|
|
340
340
|
};
|
|
341
|
-
//# sourceMappingURL=move-
|
|
341
|
+
//# sourceMappingURL=move-GOCLEFGZ.js.map
|
|
@@ -8,21 +8,21 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
sessionFromArgs,
|
|
10
10
|
sessionPositionals
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CYWI3ZW7.js";
|
|
12
12
|
import "./chunk-6AQRYLOB.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-QEVYCCKD.js";
|
|
14
14
|
import "./chunk-ZSHWP2VS.js";
|
|
15
15
|
import "./chunk-5QGCF3PS.js";
|
|
16
16
|
import "./chunk-HUXS3VAI.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-37XQIG7F.js";
|
|
18
18
|
import "./chunk-NEJVK5CF.js";
|
|
19
19
|
import {
|
|
20
20
|
sessionIdFor
|
|
21
21
|
} from "./chunk-YYBXQBW2.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-VUAVPBFR.js";
|
|
23
23
|
import "./chunk-RCGFHJM7.js";
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-72IBYKIY.js";
|
|
25
|
+
import "./chunk-2JNW2AQ2.js";
|
|
26
26
|
import "./chunk-4NITDMDH.js";
|
|
27
27
|
import "./chunk-RCYI7SRA.js";
|
|
28
28
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -80,4 +80,4 @@ var noteCommand = {
|
|
|
80
80
|
export {
|
|
81
81
|
noteCommand
|
|
82
82
|
};
|
|
83
|
-
//# sourceMappingURL=note-
|
|
83
|
+
//# sourceMappingURL=note-B7TQBXQF.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
scanChanges
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-CMO5YUZR.js";
|
|
5
|
+
import "./chunk-CLBQ7ZC4.js";
|
|
6
6
|
import "./chunk-AKMPF72Y.js";
|
|
7
7
|
import "./chunk-3GIH4WTA.js";
|
|
8
8
|
import {
|
|
9
9
|
loadHistory
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-37XQIG7F.js";
|
|
11
11
|
import "./chunk-NEJVK5CF.js";
|
|
12
12
|
import {
|
|
13
13
|
sessionIdFor
|
|
14
14
|
} from "./chunk-YYBXQBW2.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-VUAVPBFR.js";
|
|
16
16
|
import "./chunk-RCGFHJM7.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-72IBYKIY.js";
|
|
18
|
+
import "./chunk-2JNW2AQ2.js";
|
|
19
19
|
import "./chunk-4NITDMDH.js";
|
|
20
20
|
import "./chunk-RCYI7SRA.js";
|
|
21
21
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -58,4 +58,4 @@ var overlapsCommand = {
|
|
|
58
58
|
export {
|
|
59
59
|
overlapsCommand
|
|
60
60
|
};
|
|
61
|
-
//# sourceMappingURL=overlaps-
|
|
61
|
+
//# sourceMappingURL=overlaps-UKQHIJMU.js.map
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
sessionFromArgs,
|
|
7
7
|
sessionPositionals
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-CYWI3ZW7.js";
|
|
9
9
|
import "./chunk-6AQRYLOB.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QEVYCCKD.js";
|
|
11
11
|
import "./chunk-ZSHWP2VS.js";
|
|
12
12
|
import "./chunk-5QGCF3PS.js";
|
|
13
13
|
import "./chunk-HUXS3VAI.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-37XQIG7F.js";
|
|
15
15
|
import "./chunk-NEJVK5CF.js";
|
|
16
16
|
import {
|
|
17
17
|
sessionIdFor
|
|
18
18
|
} from "./chunk-YYBXQBW2.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-VUAVPBFR.js";
|
|
20
20
|
import "./chunk-RCGFHJM7.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-72IBYKIY.js";
|
|
22
|
+
import "./chunk-2JNW2AQ2.js";
|
|
23
23
|
import "./chunk-4NITDMDH.js";
|
|
24
24
|
import "./chunk-RCYI7SRA.js";
|
|
25
25
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -47,4 +47,4 @@ var pinCommand = {
|
|
|
47
47
|
export {
|
|
48
48
|
pinCommand
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=pin-
|
|
50
|
+
//# sourceMappingURL=pin-UZZCDK7M.js.map
|
|
@@ -4,15 +4,16 @@ import {
|
|
|
4
4
|
listReplies,
|
|
5
5
|
postDrafts,
|
|
6
6
|
sessionRepoRefs
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PTWVOT7A.js";
|
|
8
8
|
import "./chunk-VTLDYH3C.js";
|
|
9
9
|
import "./chunk-HMK3INUS.js";
|
|
10
|
+
import "./chunk-OTAZOIXK.js";
|
|
10
11
|
import {
|
|
11
12
|
readWebUrl
|
|
12
13
|
} from "./chunk-X4AXKO3A.js";
|
|
13
14
|
import {
|
|
14
15
|
findSessionForCwd
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QEVYCCKD.js";
|
|
16
17
|
import "./chunk-ZSHWP2VS.js";
|
|
17
18
|
import "./chunk-5QGCF3PS.js";
|
|
18
19
|
import "./chunk-HUXS3VAI.js";
|
|
@@ -20,15 +21,15 @@ import "./chunk-5WM24P5N.js";
|
|
|
20
21
|
import {
|
|
21
22
|
defaultRunner
|
|
22
23
|
} from "./chunk-3GIH4WTA.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-37XQIG7F.js";
|
|
24
25
|
import "./chunk-NEJVK5CF.js";
|
|
25
26
|
import {
|
|
26
27
|
sessionIdFor
|
|
27
28
|
} from "./chunk-YYBXQBW2.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-VUAVPBFR.js";
|
|
29
30
|
import "./chunk-RCGFHJM7.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-72IBYKIY.js";
|
|
32
|
+
import "./chunk-2JNW2AQ2.js";
|
|
32
33
|
import "./chunk-4NITDMDH.js";
|
|
33
34
|
import "./chunk-RCYI7SRA.js";
|
|
34
35
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -132,4 +133,4 @@ var prCommand = {
|
|
|
132
133
|
export {
|
|
133
134
|
prCommand
|
|
134
135
|
};
|
|
135
|
-
//# sourceMappingURL=pr-
|
|
136
|
+
//# sourceMappingURL=pr-NU2ME2XW.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/pr.ts"],"sourcesContent":["import fs from 'node:fs';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { findSessionForCwd } from '../core/comments/pending-delivery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { draftReply, listReplies, postDrafts, sessionRepoRefs } from '../core/pr/pr-replies.js';\nimport { defaultRunner } from '../core/pr/ship.js';\nimport { readWebUrl } from '../core/platform/web-discovery.js';\n\n/** Tell a running work web a draft changed, so the session header shows it. Best effort. */\nasync function nudgeWeb(sessionId: string): Promise<void> {\n const base = readWebUrl();\n if (!base) return;\n await fetch(`${base}api/replies-changed`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ sessionId }),\n signal: AbortSignal.timeout(3000),\n }).catch(() => {});\n}\n\nfunction sessionHere() {\n const s = findSessionForCwd(process.cwd());\n if (!s) {\n console.error(chalk.red('Not inside a work session (run this from the worktree).'));\n process.exit(1);\n }\n return s;\n}\n\n/**\n * `work pr reply <thread> \"<text>\"` — for the session's Claude: draft the\n * answer to a review thread it was handed (the PR feedback note names each\n * thread). The dashboard shows the draft to you, editable.\n * `work pr post <thread…> [--all] [--no-resolve]` — posts the drafts as they\n * stand and resolves each thread (`--no-resolve`: left open for a person's\n * answer), which Claude runs only after you said yes to them.\n * `work pr replies [--json]` lists the threads and drafts.\n */\nexport const prCommand: CommandModule = {\n command: 'pr <action>',\n describe: 'Review threads handed to this session: draft replies, and post them once the user says yes',\n builder: (y) =>\n y\n .command(\n 'reply <thread> [text..]',\n \"Draft the reply to a review thread (shown in the dashboard; posted only on the user's yes)\",\n (b) =>\n b\n .positional('thread', { type: 'string', demandOption: true, describe: 'The thread id from the feedback note (PRRT_…)' })\n .positional('text', { type: 'string', array: true, describe: 'The reply' })\n .option('body-file', { type: 'string', describe: 'Read the reply from this file instead' }),\n async (argv) => {\n const s = sessionHere();\n const text = argv['body-file']\n ? fs.readFileSync(String(argv['body-file']), 'utf8')\n : ((argv.text as string[] | undefined) ?? []).join(' ');\n const id = sessionIdFor(s);\n // What work knows, else the thread as GitHub has it now: never stuck on a stale check.\n const r = await draftReply(id, String(argv.thread), text, {\n unsafe: s.launchedUnsafe === true,\n repos: () => sessionRepoRefs(s),\n run: defaultRunner,\n });\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exit(1);\n }\n await nudgeWeb(id);\n console.log(\n `Draft saved for ${r.reply.reviewer}'s thread on PR #${r.reply.prNumber}. Show it to the user; post it (work pr post ${r.reply.threadId}) only once they say yes.`,\n );\n },\n )\n .command(\n 'post [threads..]',\n 'Post drafted replies from your GitHub account — for Claude, only once the user has said yes to them',\n (b) =>\n b\n .positional('threads', { type: 'string', array: true, describe: 'Thread ids (PRRT_…) whose drafts to post' })\n .option('all', { type: 'boolean', default: false, describe: 'Every draft of this session' })\n .option('resolve', {\n type: 'boolean',\n default: true,\n describe: 'Resolve each thread once answered (--no-resolve: leave it open, for a question a person should answer)',\n }),\n async (argv) => {\n const s = sessionHere();\n const id = sessionIdFor(s);\n const asked = (argv.threads as string[] | undefined) ?? [];\n const drafts = listReplies(id).filter((r) => r.status === 'draft' && (argv.all || asked.includes(r.threadId)));\n const unknown = argv.all ? [] : asked.filter((t) => !drafts.some((r) => r.threadId === t));\n for (const t of unknown)\n console.error(chalk.red(`${t}: no draft to post for this session (draft it with \\`work pr reply\\` first)`));\n if (drafts.length === 0) {\n if (!unknown.length) console.error(chalk.red('Nothing to post: name the threads, or --all.'));\n process.exit(1);\n }\n const r = await postDrafts(s, drafts, argv.resolve !== false, defaultRunner);\n await nudgeWeb(id);\n for (const p of r.posted)\n console.log(`Posted to @${p.reviewer}'s thread on PR #${p.prNumber}${p.resolved ? ' (resolved)' : ''}: ${p.url}`);\n for (const f of r.failed) console.error(chalk.red(`${f.threadId}: ${f.error}`));\n if (r.failed.length || unknown.length) process.exit(1);\n },\n )\n .command(\n 'replies',\n 'List the review threads handed to this session and their drafts',\n (b) => b.option('json', { type: 'boolean', default: false }),\n (argv) => {\n const list = listReplies(sessionIdFor(sessionHere()));\n if (argv.json) {\n process.stdout.write(JSON.stringify(list, null, 2) + '\\n');\n return;\n }\n if (list.length === 0) console.log(chalk.gray('No review threads handed to this session.'));\n for (const r of list) {\n console.log(`${r.threadId} PR #${r.prNumber} ${r.where ?? ''} @${r.reviewer} ${chalk.gray(r.status)}`);\n if (r.draft) console.log(chalk.gray(` ${r.draft.replace(/\\s+/g, ' ').slice(0, 160)}`));\n }\n },\n )\n .demandCommand(1),\n handler: () => {},\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/pr.ts"],"sourcesContent":["import fs from 'node:fs';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { findSessionForCwd } from '../core/comments/pending-delivery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { draftReply, listReplies, postDrafts, sessionRepoRefs } from '../core/pr/pr-replies.js';\nimport { defaultRunner } from '../core/pr/ship.js';\nimport { readWebUrl } from '../core/platform/web-discovery.js';\n\n/** Tell a running work web a draft changed, so the session header shows it. Best effort. */\nasync function nudgeWeb(sessionId: string): Promise<void> {\n const base = readWebUrl();\n if (!base) return;\n await fetch(`${base}api/replies-changed`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ sessionId }),\n signal: AbortSignal.timeout(3000),\n }).catch(() => {});\n}\n\nfunction sessionHere() {\n const s = findSessionForCwd(process.cwd());\n if (!s) {\n console.error(chalk.red('Not inside a work session (run this from the worktree).'));\n process.exit(1);\n }\n return s;\n}\n\n/**\n * `work pr reply <thread> \"<text>\"` — for the session's Claude: draft the\n * answer to a review thread it was handed (the PR feedback note names each\n * thread). The dashboard shows the draft to you, editable.\n * `work pr post <thread…> [--all] [--no-resolve]` — posts the drafts as they\n * stand and resolves each thread (`--no-resolve`: left open for a person's\n * answer), which Claude runs only after you said yes to them.\n * `work pr replies [--json]` lists the threads and drafts.\n */\nexport const prCommand: CommandModule = {\n command: 'pr <action>',\n describe: 'Review threads handed to this session: draft replies, and post them once the user says yes',\n builder: (y) =>\n y\n .command(\n 'reply <thread> [text..]',\n \"Draft the reply to a review thread (shown in the dashboard; posted only on the user's yes)\",\n (b) =>\n b\n .positional('thread', { type: 'string', demandOption: true, describe: 'The thread id from the feedback note (PRRT_…)' })\n .positional('text', { type: 'string', array: true, describe: 'The reply' })\n .option('body-file', { type: 'string', describe: 'Read the reply from this file instead' }),\n async (argv) => {\n const s = sessionHere();\n const text = argv['body-file']\n ? fs.readFileSync(String(argv['body-file']), 'utf8')\n : ((argv.text as string[] | undefined) ?? []).join(' ');\n const id = sessionIdFor(s);\n // What work knows, else the thread as GitHub has it now: never stuck on a stale check.\n const r = await draftReply(id, String(argv.thread), text, {\n unsafe: s.launchedUnsafe === true,\n repos: () => sessionRepoRefs(s),\n run: defaultRunner,\n });\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exit(1);\n }\n await nudgeWeb(id);\n console.log(\n `Draft saved for ${r.reply.reviewer}'s thread on PR #${r.reply.prNumber}. Show it to the user; post it (work pr post ${r.reply.threadId}) only once they say yes.`,\n );\n },\n )\n .command(\n 'post [threads..]',\n 'Post drafted replies from your GitHub account — for Claude, only once the user has said yes to them',\n (b) =>\n b\n .positional('threads', { type: 'string', array: true, describe: 'Thread ids (PRRT_…) whose drafts to post' })\n .option('all', { type: 'boolean', default: false, describe: 'Every draft of this session' })\n .option('resolve', {\n type: 'boolean',\n default: true,\n describe: 'Resolve each thread once answered (--no-resolve: leave it open, for a question a person should answer)',\n }),\n async (argv) => {\n const s = sessionHere();\n const id = sessionIdFor(s);\n const asked = (argv.threads as string[] | undefined) ?? [];\n const drafts = listReplies(id).filter((r) => r.status === 'draft' && (argv.all || asked.includes(r.threadId)));\n const unknown = argv.all ? [] : asked.filter((t) => !drafts.some((r) => r.threadId === t));\n for (const t of unknown)\n console.error(chalk.red(`${t}: no draft to post for this session (draft it with \\`work pr reply\\` first)`));\n if (drafts.length === 0) {\n if (!unknown.length) console.error(chalk.red('Nothing to post: name the threads, or --all.'));\n process.exit(1);\n }\n const r = await postDrafts(s, drafts, argv.resolve !== false, defaultRunner);\n await nudgeWeb(id);\n for (const p of r.posted)\n console.log(`Posted to @${p.reviewer}'s thread on PR #${p.prNumber}${p.resolved ? ' (resolved)' : ''}: ${p.url}`);\n for (const f of r.failed) console.error(chalk.red(`${f.threadId}: ${f.error}`));\n if (r.failed.length || unknown.length) process.exit(1);\n },\n )\n .command(\n 'replies',\n 'List the review threads handed to this session and their drafts',\n (b) => b.option('json', { type: 'boolean', default: false }),\n (argv) => {\n const list = listReplies(sessionIdFor(sessionHere()));\n if (argv.json) {\n process.stdout.write(JSON.stringify(list, null, 2) + '\\n');\n return;\n }\n if (list.length === 0) console.log(chalk.gray('No review threads handed to this session.'));\n for (const r of list) {\n console.log(`${r.threadId} PR #${r.prNumber} ${r.where ?? ''} @${r.reviewer} ${chalk.gray(r.status)}`);\n if (r.draft) console.log(chalk.gray(` ${r.draft.replace(/\\s+/g, ' ').slice(0, 160)}`));\n }\n },\n )\n .demandCommand(1),\n handler: () => {},\n};\n"],"mappings":"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","names":["r"]}
|
|
@@ -5,28 +5,29 @@ import {
|
|
|
5
5
|
} from "./chunk-ABQYKTG4.js";
|
|
6
6
|
import {
|
|
7
7
|
defaultCleanupDeps
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-XVNRP7XE.js";
|
|
9
|
+
import "./chunk-6E2I2FBJ.js";
|
|
10
|
+
import "./chunk-PTWVOT7A.js";
|
|
11
11
|
import {
|
|
12
12
|
applyCleanup,
|
|
13
13
|
scanCleanup
|
|
14
14
|
} from "./chunk-AKMPF72Y.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-INQQGV2G.js";
|
|
16
16
|
import "./chunk-SG5LUMGE.js";
|
|
17
17
|
import "./chunk-VTLDYH3C.js";
|
|
18
18
|
import "./chunk-HMK3INUS.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-63VY4YJM.js";
|
|
20
|
+
import "./chunk-BSP2Z7B7.js";
|
|
21
|
+
import "./chunk-GRLKPVTP.js";
|
|
22
|
+
import "./chunk-MG5TTLYZ.js";
|
|
23
|
+
import "./chunk-AAYWHIIT.js";
|
|
24
|
+
import "./chunk-6FVYSW3E.js";
|
|
25
|
+
import "./chunk-OTAZOIXK.js";
|
|
26
|
+
import "./chunk-QEVYCCKD.js";
|
|
26
27
|
import "./chunk-ZSHWP2VS.js";
|
|
27
28
|
import "./chunk-5QGCF3PS.js";
|
|
28
29
|
import "./chunk-HUXS3VAI.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-WC534PXU.js";
|
|
30
31
|
import "./chunk-RGUSVBGN.js";
|
|
31
32
|
import "./chunk-KUCMJHQW.js";
|
|
32
33
|
import "./chunk-PSUJZUYX.js";
|
|
@@ -35,15 +36,15 @@ import "./chunk-3GIH4WTA.js";
|
|
|
35
36
|
import "./chunk-LNHSBM4L.js";
|
|
36
37
|
import "./chunk-J36ULZBO.js";
|
|
37
38
|
import "./chunk-3N3UQEC4.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-37XQIG7F.js";
|
|
39
40
|
import "./chunk-NEJVK5CF.js";
|
|
40
41
|
import "./chunk-YYBXQBW2.js";
|
|
41
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-VUAVPBFR.js";
|
|
42
43
|
import "./chunk-RCGFHJM7.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-72IBYKIY.js";
|
|
44
45
|
import {
|
|
45
46
|
ensureConfig
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2JNW2AQ2.js";
|
|
47
48
|
import "./chunk-4NITDMDH.js";
|
|
48
49
|
import "./chunk-RCYI7SRA.js";
|
|
49
50
|
import "./chunk-ZXHMC7UO.js";
|
|
@@ -101,4 +102,4 @@ var pruneCommand = {
|
|
|
101
102
|
export {
|
|
102
103
|
pruneCommand
|
|
103
104
|
};
|
|
104
|
-
//# sourceMappingURL=prune-
|
|
105
|
+
//# sourceMappingURL=prune-IZGEYTSB.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/prune.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { checkbox } from '@inquirer/prompts';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { applyCleanup, scanCleanup } from '../core/cleanup/cleanup.js';\nimport { defaultCleanupDeps } from '../core/cleanup/cleanup-deps.js';\nimport type { CleanupCandidate } from '../core/api-types.js';\nimport { printCleanupResults, removable } from './shared/cleanup-print.js';\n\nexport const pruneCommand: CommandModule = {\n command: 'prune',\n describe: 'Remove worktrees that are merged (or never committed to), picking from a list',\n builder: (yargs) =>\n yargs.option('force', {\n describe: 'Skip the picker and remove every one that is safe to remove',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n const force = argv.force as boolean;\n ensureConfig();\n const deps = defaultCleanupDeps();\n console.log(chalk.gray('Fetching and checking worktrees…\\n'));\n const scan = await scanCleanup(deps);\n for (const f of scan.fetchFailed) console.log(chalk.yellow(` Could not fetch ${f.alias}; its worktrees were not checked: ${f.error}`));\n // Interactive prune is human-confirmed (you see the list and pick), so\n // squash-merged branches are offered too.\n const candidates = removable(scan.candidates, { includeSquash: true });\n if (candidates.length === 0) {\n console.log(chalk.green('Nothing to prune: no worktree is merged, clean and unused for a day.'));\n return;\n }\n const label = (c: CleanupCandidate) => `${c.target}: ${c.branch}${c.isGroup ? ' [group]' : ''} — ${c.reason}`;\n let selected: CleanupCandidate[];\n if (force) {\n selected = candidates;\n console.log(chalk.cyan(`Removing ${selected.length} worktree(s):`));\n for (const c of selected) console.log(` ${label(c)}`);\n } else {\n selected = await checkbox({\n message: 'Select worktrees to remove (the branches are kept)',\n choices: candidates.map((c) => ({ name: label(c), value: c, checked: true })),\n pageSize: Math.min(candidates.length, 25),\n });\n if (selected.length === 0) {\n console.log(chalk.yellow('Nothing selected.'));\n return;\n }\n }\n console.log('');\n const results = await applyCleanup(\n deps,\n selected.map((c) => ({ sessionId: c.sessionId, action: c.verdict === 'gone' ? 'forget' : 'delete' })),\n );\n printCleanupResults(selected, results);\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/prune.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { checkbox } from '@inquirer/prompts';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { applyCleanup, scanCleanup } from '../core/cleanup/cleanup.js';\nimport { defaultCleanupDeps } from '../core/cleanup/cleanup-deps.js';\nimport type { CleanupCandidate } from '../core/api-types.js';\nimport { printCleanupResults, removable } from './shared/cleanup-print.js';\n\nexport const pruneCommand: CommandModule = {\n command: 'prune',\n describe: 'Remove worktrees that are merged (or never committed to), picking from a list',\n builder: (yargs) =>\n yargs.option('force', {\n describe: 'Skip the picker and remove every one that is safe to remove',\n type: 'boolean',\n default: false,\n }),\n handler: async (argv) => {\n const force = argv.force as boolean;\n ensureConfig();\n const deps = defaultCleanupDeps();\n console.log(chalk.gray('Fetching and checking worktrees…\\n'));\n const scan = await scanCleanup(deps);\n for (const f of scan.fetchFailed) console.log(chalk.yellow(` Could not fetch ${f.alias}; its worktrees were not checked: ${f.error}`));\n // Interactive prune is human-confirmed (you see the list and pick), so\n // squash-merged branches are offered too.\n const candidates = removable(scan.candidates, { includeSquash: true });\n if (candidates.length === 0) {\n console.log(chalk.green('Nothing to prune: no worktree is merged, clean and unused for a day.'));\n return;\n }\n const label = (c: CleanupCandidate) => `${c.target}: ${c.branch}${c.isGroup ? ' [group]' : ''} — ${c.reason}`;\n let selected: CleanupCandidate[];\n if (force) {\n selected = candidates;\n console.log(chalk.cyan(`Removing ${selected.length} worktree(s):`));\n for (const c of selected) console.log(` ${label(c)}`);\n } else {\n selected = await checkbox({\n message: 'Select worktrees to remove (the branches are kept)',\n choices: candidates.map((c) => ({ name: label(c), value: c, checked: true })),\n pageSize: Math.min(candidates.length, 25),\n });\n if (selected.length === 0) {\n console.log(chalk.yellow('Nothing selected.'));\n return;\n }\n }\n console.log('');\n const results = await applyCleanup(\n deps,\n selected.map((c) => ({ sessionId: c.sessionId, action: c.verdict === 'gone' ? 'forget' : 'delete' })),\n );\n printCleanupResults(selected, results);\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAClB,SAAS,gBAAgB;AAQlB,IAAM,eAA8B;AAAA,EACzC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MAAM,OAAO,SAAS;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC;AAAA,EACH,SAAS,OAAO,SAAS;AACvB,UAAM,QAAQ,KAAK;AACnB,iBAAa;AACb,UAAM,OAAO,mBAAmB;AAChC,YAAQ,IAAI,MAAM,KAAK,yCAAoC,CAAC;AAC5D,UAAM,OAAO,MAAM,YAAY,IAAI;AACnC,eAAW,KAAK,KAAK,YAAa,SAAQ,IAAI,MAAM,OAAO,qBAAqB,EAAE,KAAK,qCAAqC,EAAE,KAAK,EAAE,CAAC;AAGtI,UAAM,aAAa,UAAU,KAAK,YAAY,EAAE,eAAe,KAAK,CAAC;AACrE,QAAI,WAAW,WAAW,GAAG;AAC3B,cAAQ,IAAI,MAAM,MAAM,sEAAsE,CAAC;AAC/F;AAAA,IACF;AACA,UAAM,QAAQ,CAAC,MAAwB,GAAG,EAAE,MAAM,KAAK,EAAE,MAAM,GAAG,EAAE,UAAU,aAAa,EAAE,WAAM,EAAE,MAAM;AAC3G,QAAI;AACJ,QAAI,OAAO;AACT,iBAAW;AACX,cAAQ,IAAI,MAAM,KAAK,YAAY,SAAS,MAAM,eAAe,CAAC;AAClE,iBAAW,KAAK,SAAU,SAAQ,IAAI,KAAK,MAAM,CAAC,CAAC,EAAE;AAAA,IACvD,OAAO;AACL,iBAAW,MAAM,SAAS;AAAA,QACxB,SAAS;AAAA,QACT,SAAS,WAAW,IAAI,CAAC,OAAO,EAAE,MAAM,MAAM,CAAC,GAAG,OAAO,GAAG,SAAS,KAAK,EAAE;AAAA,QAC5E,UAAU,KAAK,IAAI,WAAW,QAAQ,EAAE;AAAA,MAC1C,CAAC;AACD,UAAI,SAAS,WAAW,GAAG;AACzB,gBAAQ,IAAI,MAAM,OAAO,mBAAmB,CAAC;AAC7C;AAAA,MACF;AAAA,IACF;AACA,YAAQ,IAAI,EAAE;AACd,UAAM,UAAU,MAAM;AAAA,MACpB;AAAA,MACA,SAAS,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,QAAQ,EAAE,YAAY,SAAS,WAAW,SAAS,EAAE;AAAA,IACtG;AACA,wBAAoB,UAAU,OAAO;AAAA,EACvC;AACF;","names":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
|
-
ensureAgentPath
|
|
4
|
-
|
|
3
|
+
ensureAgentPath,
|
|
4
|
+
stopHost
|
|
5
|
+
} from "./chunk-TPSFJSO7.js";
|
|
5
6
|
import "./chunk-ZDMJPEBO.js";
|
|
6
7
|
import {
|
|
7
8
|
resolveWorkBinPath
|
|
@@ -9,7 +10,7 @@ import {
|
|
|
9
10
|
import {
|
|
10
11
|
adoptLegacyRestoreList,
|
|
11
12
|
dbPtySessions
|
|
12
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MG5TTLYZ.js";
|
|
13
14
|
import {
|
|
14
15
|
HOST_FEATURES,
|
|
15
16
|
PROTOCOL_VERSION,
|
|
@@ -21,19 +22,21 @@ import {
|
|
|
21
22
|
hostInfoPath,
|
|
22
23
|
hostStartLockPath,
|
|
23
24
|
isPersistedPty,
|
|
24
|
-
keepEnv
|
|
25
|
-
|
|
26
|
-
readHostInfo
|
|
27
|
-
} from "./chunk-3NXRBRRJ.js";
|
|
25
|
+
keepEnv
|
|
26
|
+
} from "./chunk-AAYWHIIT.js";
|
|
28
27
|
import {
|
|
29
28
|
ASSISTANT_ID
|
|
30
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6FVYSW3E.js";
|
|
30
|
+
import "./chunk-OTAZOIXK.js";
|
|
31
|
+
import {
|
|
32
|
+
VERSION
|
|
33
|
+
} from "./chunk-NWIVXGSL.js";
|
|
31
34
|
import {
|
|
32
35
|
bestEffort,
|
|
33
36
|
loadHistory,
|
|
34
37
|
logSwallowed,
|
|
35
38
|
swallow
|
|
36
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-37XQIG7F.js";
|
|
37
40
|
import "./chunk-NEJVK5CF.js";
|
|
38
41
|
import {
|
|
39
42
|
sessionIdFor
|
|
@@ -44,12 +47,12 @@ import {
|
|
|
44
47
|
buildAiLaunchArgs,
|
|
45
48
|
hasEnvDelta,
|
|
46
49
|
isEnvDelta
|
|
47
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-VUAVPBFR.js";
|
|
48
51
|
import "./chunk-RCGFHJM7.js";
|
|
49
|
-
import "./chunk-
|
|
52
|
+
import "./chunk-72IBYKIY.js";
|
|
50
53
|
import {
|
|
51
54
|
loadConfig
|
|
52
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-2JNW2AQ2.js";
|
|
53
56
|
import {
|
|
54
57
|
killTree
|
|
55
58
|
} from "./chunk-4NITDMDH.js";
|
|
@@ -68,7 +71,6 @@ import {
|
|
|
68
71
|
} from "./chunk-6THUVP6T.js";
|
|
69
72
|
|
|
70
73
|
// src/commands/pty-host.ts
|
|
71
|
-
import fs4 from "fs";
|
|
72
74
|
import chalk from "chalk";
|
|
73
75
|
|
|
74
76
|
// src/core/pty/pty-host.ts
|
|
@@ -158,6 +160,22 @@ function resolvePtyCommand(cmd, args, opts = {}) {
|
|
|
158
160
|
}
|
|
159
161
|
return { file: parsed.file ?? parsed.command, args: parsed.args };
|
|
160
162
|
}
|
|
163
|
+
function readUseBundledConpty() {
|
|
164
|
+
try {
|
|
165
|
+
return loadConfig()?.useBundledConpty === true;
|
|
166
|
+
} catch {
|
|
167
|
+
return false;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
function conptyOptions(platform, useBundled) {
|
|
171
|
+
return platform === "win32" && useBundled ? { useConptyDll: true } : {};
|
|
172
|
+
}
|
|
173
|
+
function slowStart(ms) {
|
|
174
|
+
return {
|
|
175
|
+
note: ms > 1e3 ? `(the start took ${ms} ms)` : "",
|
|
176
|
+
warn: ms > 5e3 ? `[pty] starting a terminal took ${Math.round(ms / 1e3)} s: the PTY host answered nothing meanwhile` : null
|
|
177
|
+
};
|
|
178
|
+
}
|
|
161
179
|
var PtySession = class {
|
|
162
180
|
pty;
|
|
163
181
|
terminal;
|
|
@@ -203,14 +221,18 @@ var PtySession = class {
|
|
|
203
221
|
const { file: spawnCmd, args: spawnArgs } = resolvePtyCommand(rawCmd, rawArgs, { env, cwd });
|
|
204
222
|
debug("PtySession spawn", { spawnCmd, spawnArgs, cwd, cols, rows });
|
|
205
223
|
ensureSpawnHelper();
|
|
224
|
+
const started = Date.now();
|
|
206
225
|
this.pty = pty.spawn(spawnCmd, spawnArgs, {
|
|
207
226
|
name: "xterm-256color",
|
|
208
227
|
cwd,
|
|
209
228
|
cols,
|
|
210
229
|
rows,
|
|
211
|
-
env
|
|
230
|
+
env,
|
|
231
|
+
...conptyOptions(process.platform, readUseBundledConpty())
|
|
212
232
|
});
|
|
213
|
-
|
|
233
|
+
const slow = slowStart(Date.now() - started);
|
|
234
|
+
debug("PtySession spawned pid=", this.pty.pid, slow.note);
|
|
235
|
+
if (slow.warn) report("warn", slow.warn);
|
|
214
236
|
this.pty.onData((data) => {
|
|
215
237
|
this.terminal.write(data);
|
|
216
238
|
this.outputHandler?.(data);
|
|
@@ -827,7 +849,7 @@ async function startPtyHost(opts = {}) {
|
|
|
827
849
|
if (!authorized(req, url)) return send(res, 403, { error: "forbidden" });
|
|
828
850
|
try {
|
|
829
851
|
if (req.method === "GET" && url.pathname === "/health") {
|
|
830
|
-
return send(res, 200, { version: PROTOCOL_VERSION, pid: process.pid, features: HOST_FEATURES });
|
|
852
|
+
return send(res, 200, { version: PROTOCOL_VERSION, pid: process.pid, features: HOST_FEATURES, work: VERSION });
|
|
831
853
|
}
|
|
832
854
|
if (req.method === "GET" && url.pathname === "/ptys") {
|
|
833
855
|
return send(res, 200, registry.list());
|
|
@@ -990,27 +1012,6 @@ async function startPtyHost(opts = {}) {
|
|
|
990
1012
|
function info(message) {
|
|
991
1013
|
process.stderr.write(message + "\n");
|
|
992
1014
|
}
|
|
993
|
-
async function stopHost(kill = killTree, probeTimeoutMs = 5e3) {
|
|
994
|
-
const hostInfo = readHostInfo();
|
|
995
|
-
if (!hostInfo) return "not-running";
|
|
996
|
-
const probe = await probeHostDetailed(hostInfo, probeTimeoutMs);
|
|
997
|
-
if (probe.kind === "timeout") {
|
|
998
|
-
return "unresponsive";
|
|
999
|
-
}
|
|
1000
|
-
if (probe.kind !== "host" || probe.pid !== hostInfo.pid) {
|
|
1001
|
-
try {
|
|
1002
|
-
fs4.unlinkSync(hostInfoPath());
|
|
1003
|
-
} catch {
|
|
1004
|
-
}
|
|
1005
|
-
return "stale-file";
|
|
1006
|
-
}
|
|
1007
|
-
const ok = kill(hostInfo.pid);
|
|
1008
|
-
try {
|
|
1009
|
-
fs4.unlinkSync(hostInfoPath());
|
|
1010
|
-
} catch {
|
|
1011
|
-
}
|
|
1012
|
-
return ok ? "stopped" : "failed";
|
|
1013
|
-
}
|
|
1014
1015
|
async function printStatus() {
|
|
1015
1016
|
let host;
|
|
1016
1017
|
try {
|
|
@@ -1039,21 +1040,25 @@ var ptyHostCommand = {
|
|
|
1039
1040
|
command: "pty-host",
|
|
1040
1041
|
describe: false,
|
|
1041
1042
|
// internal — started on demand by `work web` / `work attach`
|
|
1042
|
-
builder: (yargs) => yargs.option("stop", { type: "boolean", default: false, describe: "Stop the PTY host (sessions restore on next start)." }).option("restart", { type: "boolean", default: false, describe: "Restart the PTY host, e.g. after upgrading work." }).option("status", { type: "boolean", default: false, describe: "List the sessions the PTY host owns." }),
|
|
1043
|
+
builder: (yargs) => yargs.option("stop", { type: "boolean", default: false, describe: "Stop the PTY host (sessions restore on next start)." }).option("restart", { type: "boolean", default: false, describe: "Restart the PTY host, e.g. after upgrading work." }).option("status", { type: "boolean", default: false, describe: "List the sessions the PTY host owns." }).option("force", {
|
|
1044
|
+
type: "boolean",
|
|
1045
|
+
default: false,
|
|
1046
|
+
describe: "With --stop/--restart: also stop a host that doesn't answer (hung), once it proves to be work's PTY host."
|
|
1047
|
+
}),
|
|
1043
1048
|
handler: async (argv) => {
|
|
1044
1049
|
if (argv.status) {
|
|
1045
1050
|
await printStatus();
|
|
1046
1051
|
return;
|
|
1047
1052
|
}
|
|
1048
1053
|
if (argv.stop || argv.restart) {
|
|
1049
|
-
const outcome = await stopHost();
|
|
1054
|
+
const outcome = await stopHost(killTree, 5e3, { force: argv.force });
|
|
1050
1055
|
info(
|
|
1051
1056
|
chalk.gray(
|
|
1052
1057
|
{
|
|
1053
1058
|
stopped: "Stopped the PTY host.",
|
|
1054
1059
|
"not-running": "No PTY host running.",
|
|
1055
1060
|
"stale-file": "No PTY host running (removed a stale discovery file; nothing was killed).",
|
|
1056
|
-
unresponsive: "The PTY host is not responding (busy
|
|
1061
|
+
unresponsive: argv.force ? "The PTY host is not responding, and its process doesn't look like work's PTY host: nothing was stopped." : "The PTY host is not responding (busy, or hung). Nothing was stopped \u2014 try again in a moment, or add --force to stop a hung one.",
|
|
1057
1062
|
failed: "Could not stop the PTY host."
|
|
1058
1063
|
}[outcome]
|
|
1059
1064
|
)
|
|
@@ -1096,4 +1101,4 @@ export {
|
|
|
1096
1101
|
ptyHostCommand,
|
|
1097
1102
|
stopHost
|
|
1098
1103
|
};
|
|
1099
|
-
//# sourceMappingURL=pty-host-
|
|
1104
|
+
//# sourceMappingURL=pty-host-AWDIKPQN.js.map
|