@moberg_hr/work-tree 2.3.2 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/add-repo-5SYBDVG2.js +384 -0
- package/dist/add-repo-5SYBDVG2.js.map +1 -0
- package/dist/{answer-UWI22VOE.js → answer-OA2WTJCZ.js} +11 -11
- package/dist/{attach-HYHEXW5J.js → attach-5GXPA7BV.js} +14 -14
- package/dist/bin.js +5 -5
- package/dist/{block-A25XE7HC.js → block-VINEC2MW.js} +11 -11
- package/dist/{broadcast-AG7P5BKQ.js → broadcast-ENAJDNVU.js} +8 -8
- package/dist/{catchup-VTGG7BAR.js → catchup-NC4WHSBF.js} +14 -14
- package/dist/{chunk-XDBMLTFY.js → chunk-3HBHM2VX.js} +4 -4
- package/dist/chunk-3IOIY4W6.js +39 -0
- package/dist/chunk-3IOIY4W6.js.map +1 -0
- package/dist/{chunk-7OBX4MJY.js → chunk-3KOYICWB.js} +4 -4
- package/dist/{chunk-HWIRY3WO.js → chunk-3NISM3OI.js} +7 -6
- package/dist/chunk-3NISM3OI.js.map +1 -0
- package/dist/{chunk-ZSXMIPU4.js → chunk-3Q6S6TRY.js} +3 -3
- package/dist/{chunk-MEK7BIVS.js → chunk-45X4QO4V.js} +37 -17
- package/dist/chunk-45X4QO4V.js.map +1 -0
- package/dist/{chunk-3D63HGOG.js → chunk-4ETSGWB2.js} +3 -3
- package/dist/{chunk-IVPV6VPW.js → chunk-4VNUU6S6.js} +3 -3
- package/dist/{chunk-7W6I4VXA.js → chunk-65YMLGQB.js} +7 -7
- package/dist/{chunk-C3E7XETB.js → chunk-6KM2C2UO.js} +7 -7
- package/dist/{chunk-R5QLAXNJ.js → chunk-6SJOM62D.js} +2 -2
- package/dist/{chunk-ROLNJOSE.js → chunk-A53IRCOO.js} +2 -1
- package/dist/chunk-A53IRCOO.js.map +1 -0
- package/dist/{chunk-QQNPAZNP.js → chunk-AC6N2EIN.js} +12 -11
- package/dist/{chunk-QQNPAZNP.js.map → chunk-AC6N2EIN.js.map} +1 -1
- package/dist/{chunk-YIODX4PM.js → chunk-AKGDIBSE.js} +2 -2
- package/dist/{chunk-HWP4NEYL.js → chunk-BCPH3SZM.js} +2 -2
- package/dist/{chunk-4P533364.js → chunk-BO3BNBBE.js} +7 -7
- package/dist/{chunk-KNYEQLIF.js → chunk-BURVDS7U.js} +2 -2
- package/dist/{chunk-MF6LDFDW.js → chunk-C224P3D3.js} +2 -2
- package/dist/{chunk-B3HIALTV.js → chunk-CGJGWALF.js} +2 -2
- package/dist/{chunk-CALBDLDJ.js → chunk-DHBKD2TG.js} +3 -3
- package/dist/{chunk-PIEYQBWL.js → chunk-EASMYJG3.js} +13 -12
- package/dist/chunk-EASMYJG3.js.map +1 -0
- package/dist/{chunk-EOETYHTD.js → chunk-FRCV6NWT.js} +2 -2
- package/dist/{chunk-GOHSGTR5.js → chunk-FXHTSSV2.js} +3 -3
- package/dist/{chunk-NER44YB7.js → chunk-FXIEYT6L.js} +8 -8
- package/dist/{chunk-WRUQPVTS.js → chunk-GDCTRDUY.js} +4 -4
- package/dist/{chunk-DRYY4BPY.js → chunk-I2TUJLI4.js} +5 -5
- package/dist/{chunk-IJ6YYFXY.js → chunk-IOSB2HMV.js} +3 -3
- package/dist/{chunk-XFRSOUBJ.js → chunk-IZSMQ6X2.js} +67 -56
- package/dist/chunk-IZSMQ6X2.js.map +1 -0
- package/dist/{chunk-5EGGS6Y6.js → chunk-JCCGLFMU.js} +94 -56
- package/dist/chunk-JCCGLFMU.js.map +1 -0
- package/dist/{chunk-Y2HNFNCS.js → chunk-JCMGIW7G.js} +5 -3
- package/dist/chunk-JCMGIW7G.js.map +1 -0
- package/dist/{chunk-YV2MPIFG.js → chunk-JDW4GXEA.js} +4 -4
- package/dist/chunk-JUGSJ37Z.js +9 -0
- package/dist/{chunk-LMLVJEY7.js → chunk-L3JK6V5I.js} +2 -2
- package/dist/{chunk-T6YP6GPK.js → chunk-L7OQ7O4K.js} +3 -3
- package/dist/{chunk-WMOXIFBF.js → chunk-LYKWTHOD.js} +38 -10
- package/dist/chunk-LYKWTHOD.js.map +1 -0
- package/dist/{chunk-KPGO5VFR.js → chunk-M2TQNGMD.js} +5 -5
- package/dist/{chunk-Y33WKESH.js → chunk-MAFJE26N.js} +2 -2
- package/dist/{chunk-CIAXJC5H.js → chunk-MM32YZT6.js} +4 -4
- package/dist/{chunk-OB63GDEC.js → chunk-OESAI3XS.js} +2 -2
- package/dist/{chunk-722K7XWW.js → chunk-PLOO7NQU.js} +4 -4
- package/dist/{chunk-DMUZIBPM.js → chunk-R2SR3PER.js} +10 -4
- package/dist/chunk-R2SR3PER.js.map +1 -0
- package/dist/{chunk-B2Q5BYOD.js → chunk-R7334LAS.js} +5 -5
- package/dist/{chunk-NM4SABMQ.js → chunk-RFQRVXFQ.js} +529 -424
- package/dist/chunk-RFQRVXFQ.js.map +1 -0
- package/dist/{chunk-U3NYRIFH.js → chunk-S4ILKUFN.js} +13 -3
- package/dist/{chunk-U3NYRIFH.js.map → chunk-S4ILKUFN.js.map} +1 -1
- package/dist/{chunk-H7KH5CDM.js → chunk-SBRHGEFP.js} +3 -3
- package/dist/{chunk-CGMFZOS5.js → chunk-VES42DOD.js} +236 -81
- package/dist/chunk-VES42DOD.js.map +1 -0
- package/dist/chunk-VGQV4LX7.js +33 -0
- package/dist/chunk-VGQV4LX7.js.map +1 -0
- package/dist/{chunk-OBFHGN7Q.js → chunk-WOAFMVKW.js} +2 -2
- package/dist/{chunk-TKL4B2OI.js → chunk-WUJJ2FTK.js} +8 -4
- package/dist/chunk-WUJJ2FTK.js.map +1 -0
- package/dist/{chunk-CFO2JMKW.js → chunk-XEIREYW6.js} +29 -25
- package/dist/chunk-XEIREYW6.js.map +1 -0
- package/dist/{chunk-QDKLIYGR.js → chunk-XZ5DA5X4.js} +14 -3
- package/dist/{chunk-QDKLIYGR.js.map → chunk-XZ5DA5X4.js.map} +1 -1
- package/dist/{chunk-TBOE7DG5.js → chunk-YDYHURVA.js} +2 -2
- package/dist/{chunk-75I3DHVU.js → chunk-ZFSV65M5.js} +3 -3
- package/dist/{chunk-RFE4EBUP.js → chunk-ZHKE637Q.js} +3 -3
- package/dist/{cleanup-Q6AQXSRS.js → cleanup-7VJ4KUMR.js} +28 -27
- package/dist/{cleanup-Q6AQXSRS.js.map → cleanup-7VJ4KUMR.js.map} +1 -1
- package/dist/cli-RFG23HUW.js +18 -0
- package/dist/{command-hook-installer-2ZFJJGKY.js → command-hook-installer-PTTVCWH7.js} +4 -4
- package/dist/{config-DOPH6NOU.js → config-CREG6OI3.js} +9 -9
- package/dist/{diff-DZJLSTRO.js → diff-UYXZID2B.js} +12 -12
- package/dist/{digest-QTNPN2E6.js → digest-I5Z6W2EP.js} +10 -10
- package/dist/{fork-HDJ54HH2.js → fork-5AOB45N2.js} +26 -25
- package/dist/{fork-HDJ54HH2.js.map → fork-5AOB45N2.js.map} +1 -1
- package/dist/history-3LFLB4FO.js +55 -0
- package/dist/{hook-V7JNOY2E.js → hook-SJOCXGLD.js} +14 -14
- package/dist/{hydrate-NGZ26R2Y.js → hydrate-YEJCVZZ7.js} +29 -12
- package/dist/hydrate-YEJCVZZ7.js.map +1 -0
- package/dist/{init-BQIBLPP5.js → init-6F67TVM7.js} +9 -9
- package/dist/{install-skills-LCXJIHK4.js → install-skills-ESCNSPBY.js} +4 -4
- package/dist/install-skills-bin.js +3 -3
- package/dist/{list-4KATUVO3.js → list-NHZUEVTA.js} +32 -12
- package/dist/list-NHZUEVTA.js.map +1 -0
- package/dist/{move-LYO5J2ZH.js → move-JICK4XA5.js} +25 -23
- package/dist/{move-LYO5J2ZH.js.map → move-JICK4XA5.js.map} +1 -1
- package/dist/{note-7XR4YA6R.js → note-KZMWEGZP.js} +11 -11
- package/dist/{overlaps-5WKQT3LX.js → overlaps-O353DOQI.js} +9 -9
- package/dist/{pin-GJM3KSG7.js → pin-7CON36HF.js} +11 -11
- package/dist/{pr-YO7XSYUA.js → pr-4KUGJDZ2.js} +14 -14
- package/dist/{prune-BUGPJLLO.js → prune-KQ77276H.js} +27 -26
- package/dist/{prune-BUGPJLLO.js.map → prune-KQ77276H.js.map} +1 -1
- package/dist/{pty-host-O5H4FKWF.js → pty-host-MSCJGN5G.js} +10 -10
- package/dist/{read-XMU63E3F.js → read-J42H6OVE.js} +10 -10
- package/dist/{recent-73SHXIFU.js → recent-BZQP3RKA.js} +10 -10
- package/dist/recent-BZQP3RKA.js.map +1 -0
- package/dist/{remove-ZXDVVOHF.js → remove-GRRKSGS7.js} +28 -27
- package/dist/{remove-ZXDVVOHF.js.map → remove-GRRKSGS7.js.map} +1 -1
- package/dist/report-BSETCIYQ.js +18 -0
- package/dist/{restart-S4D7LD3A.js → restart-REFEZGH2.js} +11 -11
- package/dist/{resume-YIIQIJCS.js → resume-RGP2BCKL.js} +10 -10
- package/dist/resume-RGP2BCKL.js.map +1 -0
- package/dist/{run-WN2O7EX7.js → run-WYDFP6EL.js} +7 -7
- package/dist/{screen-LX6XHNYN.js → screen-YWJLDINC.js} +11 -11
- package/dist/{search-DCDJVBKW.js → search-M4DU4GUB.js} +7 -7
- package/dist/{section-XD46IHMW.js → section-AYN6EHPO.js} +11 -11
- package/dist/{send-P4NILVGL.js → send-O3SI53O7.js} +16 -16
- package/dist/{sessions-POSS5NRV.js → sessions-4BASM7AC.js} +20 -20
- package/dist/{snooze-ONAR2WNP.js → snooze-F3NT7PZO.js} +10 -10
- package/dist/{start-6YKHYYX5.js → start-7OQNLGDU.js} +11 -11
- package/dist/{state-NV4FQNMT.js → state-NRK5CBXZ.js} +5 -5
- package/dist/{status-KYRZRITO.js → status-HLOEWXJ3.js} +8 -8
- package/dist/{stop-QU372WAY.js → stop-YRGANOU7.js} +11 -11
- package/dist/{sync-JR24WVJ7.js → sync-YDK5R7XQ.js} +27 -26
- package/dist/{sync-JR24WVJ7.js.map → sync-YDK5R7XQ.js.map} +1 -1
- package/dist/{time-FYXXC5XC.js → time-T5RBWMDN.js} +12 -12
- package/dist/time-actions-FLLFYEVY.js +15 -0
- package/dist/time-actions-FLLFYEVY.js.map +1 -0
- package/dist/{timesheet-57EG6ABE.js → timesheet-UB6OASXF.js} +14 -14
- package/dist/{todo-UDYY4QTY.js → todo-OE62TNES.js} +6 -6
- package/dist/{tree-RDPJOIDT.js → tree-DRDDTXQ2.js} +42 -24
- package/dist/tree-DRDDTXQ2.js.map +1 -0
- package/dist/{update-OZXFQMYI.js → update-S57YQGPG.js} +13 -13
- package/dist/{wait-3MQST3FP.js → wait-2CRY7XQ5.js} +11 -11
- package/dist/wd-bin.js +9 -9
- package/dist/web/assets/{PtyView-DBG0B_A4.js → PtyView-BZ57sEm1.js} +2 -2
- package/dist/web/assets/{PtyView-DBG0B_A4.js.map → PtyView-BZ57sEm1.js.map} +1 -1
- package/dist/web/assets/index-CDYWfNo_.css +1 -0
- package/dist/web/assets/index-CqTf1VAm.js +119 -0
- package/dist/web/assets/index-CqTf1VAm.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-DSJT4HSI.js → web-A3VW2IYG.js} +471 -298
- package/dist/web-A3VW2IYG.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-5EGGS6Y6.js.map +0 -1
- package/dist/chunk-CFO2JMKW.js.map +0 -1
- package/dist/chunk-CGMFZOS5.js.map +0 -1
- package/dist/chunk-DMUZIBPM.js.map +0 -1
- package/dist/chunk-HWIRY3WO.js.map +0 -1
- package/dist/chunk-KPGR4JRE.js +0 -9
- package/dist/chunk-MEK7BIVS.js.map +0 -1
- package/dist/chunk-NM4SABMQ.js.map +0 -1
- package/dist/chunk-PIEYQBWL.js.map +0 -1
- package/dist/chunk-ROLNJOSE.js.map +0 -1
- package/dist/chunk-TKL4B2OI.js.map +0 -1
- package/dist/chunk-WMOXIFBF.js.map +0 -1
- package/dist/chunk-XFRSOUBJ.js.map +0 -1
- package/dist/chunk-Y2HNFNCS.js.map +0 -1
- package/dist/cli-X4Z2UYJZ.js +0 -18
- package/dist/hydrate-NGZ26R2Y.js.map +0 -1
- package/dist/list-4KATUVO3.js.map +0 -1
- package/dist/recent-73SHXIFU.js.map +0 -1
- package/dist/report-TEIRRYH4.js +0 -16
- package/dist/resume-YIIQIJCS.js.map +0 -1
- package/dist/time-actions-L3OWQHEX.js +0 -15
- package/dist/tree-RDPJOIDT.js.map +0 -1
- package/dist/web/assets/index-DoT3bzyK.css +0 -1
- package/dist/web/assets/index-rLMVfFdt.js +0 -119
- package/dist/web/assets/index-rLMVfFdt.js.map +0 -1
- package/dist/web-DSJT4HSI.js.map +0 -1
- /package/dist/{answer-UWI22VOE.js.map → answer-OA2WTJCZ.js.map} +0 -0
- /package/dist/{attach-HYHEXW5J.js.map → attach-5GXPA7BV.js.map} +0 -0
- /package/dist/{block-A25XE7HC.js.map → block-VINEC2MW.js.map} +0 -0
- /package/dist/{broadcast-AG7P5BKQ.js.map → broadcast-ENAJDNVU.js.map} +0 -0
- /package/dist/{catchup-VTGG7BAR.js.map → catchup-NC4WHSBF.js.map} +0 -0
- /package/dist/{chunk-XDBMLTFY.js.map → chunk-3HBHM2VX.js.map} +0 -0
- /package/dist/{chunk-7OBX4MJY.js.map → chunk-3KOYICWB.js.map} +0 -0
- /package/dist/{chunk-ZSXMIPU4.js.map → chunk-3Q6S6TRY.js.map} +0 -0
- /package/dist/{chunk-3D63HGOG.js.map → chunk-4ETSGWB2.js.map} +0 -0
- /package/dist/{chunk-IVPV6VPW.js.map → chunk-4VNUU6S6.js.map} +0 -0
- /package/dist/{chunk-7W6I4VXA.js.map → chunk-65YMLGQB.js.map} +0 -0
- /package/dist/{chunk-C3E7XETB.js.map → chunk-6KM2C2UO.js.map} +0 -0
- /package/dist/{chunk-R5QLAXNJ.js.map → chunk-6SJOM62D.js.map} +0 -0
- /package/dist/{chunk-YIODX4PM.js.map → chunk-AKGDIBSE.js.map} +0 -0
- /package/dist/{chunk-HWP4NEYL.js.map → chunk-BCPH3SZM.js.map} +0 -0
- /package/dist/{chunk-4P533364.js.map → chunk-BO3BNBBE.js.map} +0 -0
- /package/dist/{chunk-KNYEQLIF.js.map → chunk-BURVDS7U.js.map} +0 -0
- /package/dist/{chunk-MF6LDFDW.js.map → chunk-C224P3D3.js.map} +0 -0
- /package/dist/{chunk-B3HIALTV.js.map → chunk-CGJGWALF.js.map} +0 -0
- /package/dist/{chunk-CALBDLDJ.js.map → chunk-DHBKD2TG.js.map} +0 -0
- /package/dist/{chunk-EOETYHTD.js.map → chunk-FRCV6NWT.js.map} +0 -0
- /package/dist/{chunk-GOHSGTR5.js.map → chunk-FXHTSSV2.js.map} +0 -0
- /package/dist/{chunk-NER44YB7.js.map → chunk-FXIEYT6L.js.map} +0 -0
- /package/dist/{chunk-WRUQPVTS.js.map → chunk-GDCTRDUY.js.map} +0 -0
- /package/dist/{chunk-DRYY4BPY.js.map → chunk-I2TUJLI4.js.map} +0 -0
- /package/dist/{chunk-IJ6YYFXY.js.map → chunk-IOSB2HMV.js.map} +0 -0
- /package/dist/{chunk-YV2MPIFG.js.map → chunk-JDW4GXEA.js.map} +0 -0
- /package/dist/{chunk-KPGR4JRE.js.map → chunk-JUGSJ37Z.js.map} +0 -0
- /package/dist/{chunk-LMLVJEY7.js.map → chunk-L3JK6V5I.js.map} +0 -0
- /package/dist/{chunk-T6YP6GPK.js.map → chunk-L7OQ7O4K.js.map} +0 -0
- /package/dist/{chunk-KPGO5VFR.js.map → chunk-M2TQNGMD.js.map} +0 -0
- /package/dist/{chunk-Y33WKESH.js.map → chunk-MAFJE26N.js.map} +0 -0
- /package/dist/{chunk-CIAXJC5H.js.map → chunk-MM32YZT6.js.map} +0 -0
- /package/dist/{chunk-OB63GDEC.js.map → chunk-OESAI3XS.js.map} +0 -0
- /package/dist/{chunk-722K7XWW.js.map → chunk-PLOO7NQU.js.map} +0 -0
- /package/dist/{chunk-B2Q5BYOD.js.map → chunk-R7334LAS.js.map} +0 -0
- /package/dist/{chunk-H7KH5CDM.js.map → chunk-SBRHGEFP.js.map} +0 -0
- /package/dist/{chunk-OBFHGN7Q.js.map → chunk-WOAFMVKW.js.map} +0 -0
- /package/dist/{chunk-TBOE7DG5.js.map → chunk-YDYHURVA.js.map} +0 -0
- /package/dist/{chunk-75I3DHVU.js.map → chunk-ZFSV65M5.js.map} +0 -0
- /package/dist/{chunk-RFE4EBUP.js.map → chunk-ZHKE637Q.js.map} +0 -0
- /package/dist/{cli-X4Z2UYJZ.js.map → cli-RFG23HUW.js.map} +0 -0
- /package/dist/{command-hook-installer-2ZFJJGKY.js.map → command-hook-installer-PTTVCWH7.js.map} +0 -0
- /package/dist/{config-DOPH6NOU.js.map → config-CREG6OI3.js.map} +0 -0
- /package/dist/{diff-DZJLSTRO.js.map → diff-UYXZID2B.js.map} +0 -0
- /package/dist/{digest-QTNPN2E6.js.map → digest-I5Z6W2EP.js.map} +0 -0
- /package/dist/{install-skills-LCXJIHK4.js.map → history-3LFLB4FO.js.map} +0 -0
- /package/dist/{hook-V7JNOY2E.js.map → hook-SJOCXGLD.js.map} +0 -0
- /package/dist/{init-BQIBLPP5.js.map → init-6F67TVM7.js.map} +0 -0
- /package/dist/{report-TEIRRYH4.js.map → install-skills-ESCNSPBY.js.map} +0 -0
- /package/dist/{note-7XR4YA6R.js.map → note-KZMWEGZP.js.map} +0 -0
- /package/dist/{overlaps-5WKQT3LX.js.map → overlaps-O353DOQI.js.map} +0 -0
- /package/dist/{pin-GJM3KSG7.js.map → pin-7CON36HF.js.map} +0 -0
- /package/dist/{pr-YO7XSYUA.js.map → pr-4KUGJDZ2.js.map} +0 -0
- /package/dist/{pty-host-O5H4FKWF.js.map → pty-host-MSCJGN5G.js.map} +0 -0
- /package/dist/{read-XMU63E3F.js.map → read-J42H6OVE.js.map} +0 -0
- /package/dist/{time-actions-L3OWQHEX.js.map → report-BSETCIYQ.js.map} +0 -0
- /package/dist/{restart-S4D7LD3A.js.map → restart-REFEZGH2.js.map} +0 -0
- /package/dist/{run-WN2O7EX7.js.map → run-WYDFP6EL.js.map} +0 -0
- /package/dist/{screen-LX6XHNYN.js.map → screen-YWJLDINC.js.map} +0 -0
- /package/dist/{search-DCDJVBKW.js.map → search-M4DU4GUB.js.map} +0 -0
- /package/dist/{section-XD46IHMW.js.map → section-AYN6EHPO.js.map} +0 -0
- /package/dist/{send-P4NILVGL.js.map → send-O3SI53O7.js.map} +0 -0
- /package/dist/{sessions-POSS5NRV.js.map → sessions-4BASM7AC.js.map} +0 -0
- /package/dist/{snooze-ONAR2WNP.js.map → snooze-F3NT7PZO.js.map} +0 -0
- /package/dist/{start-6YKHYYX5.js.map → start-7OQNLGDU.js.map} +0 -0
- /package/dist/{state-NV4FQNMT.js.map → state-NRK5CBXZ.js.map} +0 -0
- /package/dist/{status-KYRZRITO.js.map → status-HLOEWXJ3.js.map} +0 -0
- /package/dist/{stop-QU372WAY.js.map → stop-YRGANOU7.js.map} +0 -0
- /package/dist/{time-FYXXC5XC.js.map → time-T5RBWMDN.js.map} +0 -0
- /package/dist/{timesheet-57EG6ABE.js.map → timesheet-UB6OASXF.js.map} +0 -0
- /package/dist/{todo-UDYY4QTY.js.map → todo-OE62TNES.js.map} +0 -0
- /package/dist/{update-OZXFQMYI.js.map → update-S57YQGPG.js.map} +0 -0
- /package/dist/{wait-3MQST3FP.js.map → wait-2CRY7XQ5.js.map} +0 -0
|
@@ -4,23 +4,23 @@ import {
|
|
|
4
4
|
logWorkDay,
|
|
5
5
|
loggedDays,
|
|
6
6
|
worklogSettings
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6SJOM62D.js";
|
|
8
8
|
import {
|
|
9
9
|
sessionWorkTime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IOSB2HMV.js";
|
|
11
11
|
import {
|
|
12
12
|
sessionFromArgs,
|
|
13
13
|
sessionPositionals
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GDCTRDUY.js";
|
|
15
15
|
import "./chunk-6AQRYLOB.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-BO3BNBBE.js";
|
|
17
|
+
import "./chunk-XZ5DA5X4.js";
|
|
17
18
|
import "./chunk-ZSHWP2VS.js";
|
|
18
|
-
import "./chunk-QDKLIYGR.js";
|
|
19
19
|
import "./chunk-HUXS3VAI.js";
|
|
20
20
|
import {
|
|
21
21
|
loadHistory
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-RFQRVXFQ.js";
|
|
23
|
+
import "./chunk-JCMGIW7G.js";
|
|
24
24
|
import "./chunk-RCYI7SRA.js";
|
|
25
25
|
import {
|
|
26
26
|
dayKey,
|
|
@@ -29,12 +29,12 @@ import {
|
|
|
29
29
|
} from "./chunk-NEJVK5CF.js";
|
|
30
30
|
import {
|
|
31
31
|
sessionIdFor
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-FXHTSSV2.js";
|
|
33
|
+
import "./chunk-S4ILKUFN.js";
|
|
34
|
+
import "./chunk-FRCV6NWT.js";
|
|
35
35
|
import {
|
|
36
36
|
loadConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-A53IRCOO.js";
|
|
38
38
|
|
|
39
39
|
// src/commands/time.ts
|
|
40
40
|
import chalk from "chalk";
|
|
@@ -112,4 +112,4 @@ var timeCommand = {
|
|
|
112
112
|
export {
|
|
113
113
|
timeCommand
|
|
114
114
|
};
|
|
115
|
-
//# sourceMappingURL=time-
|
|
115
|
+
//# sourceMappingURL=time-T5RBWMDN.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
describeDayNow,
|
|
4
|
+
postStoredDay
|
|
5
|
+
} from "./chunk-L7OQ7O4K.js";
|
|
6
|
+
import "./chunk-NEJVK5CF.js";
|
|
7
|
+
import "./chunk-FXHTSSV2.js";
|
|
8
|
+
import "./chunk-S4ILKUFN.js";
|
|
9
|
+
import "./chunk-FRCV6NWT.js";
|
|
10
|
+
import "./chunk-A53IRCOO.js";
|
|
11
|
+
export {
|
|
12
|
+
describeDayNow,
|
|
13
|
+
postStoredDay
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=time-actions-FLLFYEVY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
defaultTimeDeps
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-65YMLGQB.js";
|
|
5
|
+
import "./chunk-IOSB2HMV.js";
|
|
6
|
+
import "./chunk-PLOO7NQU.js";
|
|
7
|
+
import "./chunk-3HBHM2VX.js";
|
|
8
|
+
import "./chunk-AKGDIBSE.js";
|
|
8
9
|
import {
|
|
9
10
|
buildDay,
|
|
10
11
|
dayArg,
|
|
@@ -15,21 +16,20 @@ import {
|
|
|
15
16
|
tempoClient,
|
|
16
17
|
tempoSetup,
|
|
17
18
|
updateDay
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-L7OQ7O4K.js";
|
|
19
20
|
import {
|
|
20
21
|
callWorkWeb
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-Y2HNFNCS.js";
|
|
22
|
+
} from "./chunk-MAFJE26N.js";
|
|
23
|
+
import "./chunk-RFQRVXFQ.js";
|
|
24
|
+
import "./chunk-JCMGIW7G.js";
|
|
25
25
|
import "./chunk-RCYI7SRA.js";
|
|
26
26
|
import "./chunk-NEJVK5CF.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-FXHTSSV2.js";
|
|
28
|
+
import "./chunk-S4ILKUFN.js";
|
|
29
|
+
import "./chunk-FRCV6NWT.js";
|
|
30
30
|
import {
|
|
31
31
|
loadConfig
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-A53IRCOO.js";
|
|
33
33
|
|
|
34
34
|
// src/commands/timesheet.ts
|
|
35
35
|
import chalk from "chalk";
|
|
@@ -144,4 +144,4 @@ var timesheetCommand = {
|
|
|
144
144
|
export {
|
|
145
145
|
timesheetCommand
|
|
146
146
|
};
|
|
147
|
-
//# sourceMappingURL=timesheet-
|
|
147
|
+
//# sourceMappingURL=timesheet-UB6OASXF.js.map
|
|
@@ -6,11 +6,11 @@ import {
|
|
|
6
6
|
getTasks,
|
|
7
7
|
removeTask,
|
|
8
8
|
uncompleteTask
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-OESAI3XS.js";
|
|
10
|
+
import "./chunk-FXHTSSV2.js";
|
|
11
|
+
import "./chunk-S4ILKUFN.js";
|
|
12
|
+
import "./chunk-FRCV6NWT.js";
|
|
13
|
+
import "./chunk-A53IRCOO.js";
|
|
14
14
|
|
|
15
15
|
// src/commands/todo.ts
|
|
16
16
|
import chalk from "chalk";
|
|
@@ -149,4 +149,4 @@ var todoCommand = {
|
|
|
149
149
|
export {
|
|
150
150
|
todoCommand
|
|
151
151
|
};
|
|
152
|
-
//# sourceMappingURL=todo-
|
|
152
|
+
//# sourceMappingURL=todo-OE62TNES.js.map
|
|
@@ -4,55 +4,61 @@ import {
|
|
|
4
4
|
openInLeftovers,
|
|
5
5
|
resolvePrToStart,
|
|
6
6
|
workOnPrPrompt
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6KM2C2UO.js";
|
|
8
8
|
import {
|
|
9
9
|
launchAi,
|
|
10
10
|
openVSCode
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-YDYHURVA.js";
|
|
12
|
+
import "./chunk-HMK3INUS.js";
|
|
13
|
+
import "./chunk-ZFSV65M5.js";
|
|
13
14
|
import {
|
|
14
15
|
attachSession
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MM32YZT6.js";
|
|
17
|
+
import {
|
|
18
|
+
SETUP_WARNINGS
|
|
19
|
+
} from "./chunk-JCCGLFMU.js";
|
|
16
20
|
import "./chunk-AH5TM3NB.js";
|
|
21
|
+
import "./chunk-FXIEYT6L.js";
|
|
22
|
+
import "./chunk-4ETSGWB2.js";
|
|
23
|
+
import "./chunk-DHBKD2TG.js";
|
|
17
24
|
import {
|
|
18
25
|
BaseSpecError,
|
|
19
26
|
isEmptyBaseSpec,
|
|
20
27
|
openBaseCheckout,
|
|
21
28
|
parseBaseSpec,
|
|
22
29
|
setupWorktree
|
|
23
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VES42DOD.js";
|
|
31
|
+
import "./chunk-VGQV4LX7.js";
|
|
24
32
|
import "./chunk-KUCMJHQW.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-PSUJZUYX.js";
|
|
34
|
+
import "./chunk-5WM24P5N.js";
|
|
35
|
+
import "./chunk-3GIH4WTA.js";
|
|
28
36
|
import "./chunk-LNHSBM4L.js";
|
|
29
37
|
import {
|
|
30
38
|
getAllTargetNames,
|
|
31
39
|
resolveFromCwd,
|
|
32
40
|
resolveProjectTarget
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-PSUJZUYX.js";
|
|
37
|
-
import "./chunk-5WM24P5N.js";
|
|
38
|
-
import "./chunk-3GIH4WTA.js";
|
|
39
|
-
import "./chunk-YIODX4PM.js";
|
|
41
|
+
} from "./chunk-R2SR3PER.js";
|
|
42
|
+
import "./chunk-AKGDIBSE.js";
|
|
43
|
+
import "./chunk-ZHKE637Q.js";
|
|
40
44
|
import {
|
|
41
45
|
findSession,
|
|
42
46
|
loadHistory,
|
|
43
47
|
recordLaunch
|
|
44
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-RFQRVXFQ.js";
|
|
45
49
|
import {
|
|
46
50
|
agentFor
|
|
47
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JCMGIW7G.js";
|
|
48
52
|
import "./chunk-RCYI7SRA.js";
|
|
49
53
|
import "./chunk-NEJVK5CF.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import
|
|
52
|
-
|
|
54
|
+
import "./chunk-FXHTSSV2.js";
|
|
55
|
+
import {
|
|
56
|
+
keepingWarnings
|
|
57
|
+
} from "./chunk-S4ILKUFN.js";
|
|
58
|
+
import "./chunk-FRCV6NWT.js";
|
|
53
59
|
import {
|
|
54
60
|
ensureConfig
|
|
55
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-A53IRCOO.js";
|
|
56
62
|
|
|
57
63
|
// src/commands/tree.ts
|
|
58
64
|
import fs from "fs";
|
|
@@ -108,6 +114,10 @@ var treeCommand = {
|
|
|
108
114
|
describe: "Link a Jira issue key to this worktree session",
|
|
109
115
|
type: "string",
|
|
110
116
|
hidden: true
|
|
117
|
+
}).option("repos", {
|
|
118
|
+
describe: "A new session's repos (comma-separated aliases) instead of its group's: made as a session folder (used by Fork\u2026)",
|
|
119
|
+
type: "string",
|
|
120
|
+
hidden: true
|
|
111
121
|
}).option("setup-only", {
|
|
112
122
|
describe: "Create worktree without launching the AI tool (used by dashboard)",
|
|
113
123
|
type: "boolean",
|
|
@@ -196,7 +206,7 @@ var treeCommand = {
|
|
|
196
206
|
process.exitCode = 1;
|
|
197
207
|
return;
|
|
198
208
|
}
|
|
199
|
-
const inferred = resolveFromCwd(config, process.cwd());
|
|
209
|
+
const inferred = resolveFromCwd(config, process.cwd(), loadHistory());
|
|
200
210
|
if ("error" in inferred) {
|
|
201
211
|
console.error(inferred.error);
|
|
202
212
|
process.exitCode = 1;
|
|
@@ -250,7 +260,14 @@ var treeCommand = {
|
|
|
250
260
|
if (!setupOnly) await launchTool(repoPath, void 0, { target: targetName, branch: currentBranch });
|
|
251
261
|
return;
|
|
252
262
|
}
|
|
253
|
-
const
|
|
263
|
+
const repos = typeof argv.repos === "string" ? argv.repos.split(",").map((a) => a.trim()).filter(Boolean) : [];
|
|
264
|
+
const { value: result, warnings } = await keepingWarnings(
|
|
265
|
+
() => setupWorktree(targetName, branchName, config, baseSpec, jiraKey, {
|
|
266
|
+
pull,
|
|
267
|
+
name: argv.name,
|
|
268
|
+
...repos.length ? { repos } : {}
|
|
269
|
+
})
|
|
270
|
+
);
|
|
254
271
|
if (!result) {
|
|
255
272
|
const left = setupOnly ? [] : leftoversOf(findSession(loadHistory(), targetName, branchName)?.paths ?? []);
|
|
256
273
|
const open2 = await openInLeftovers(left);
|
|
@@ -264,6 +281,7 @@ var treeCommand = {
|
|
|
264
281
|
}
|
|
265
282
|
}
|
|
266
283
|
console.log(`Worktree path: ${result.launchDir}`);
|
|
284
|
+
if (setupOnly) console.log(`${SETUP_WARNINGS}${JSON.stringify(warnings)}`);
|
|
267
285
|
if (!setupOnly) {
|
|
268
286
|
await launchTool(result.launchDir, result.port, { target: targetName, branch: branchName });
|
|
269
287
|
}
|
|
@@ -272,4 +290,4 @@ var treeCommand = {
|
|
|
272
290
|
export {
|
|
273
291
|
treeCommand
|
|
274
292
|
};
|
|
275
|
-
//# sourceMappingURL=tree-
|
|
293
|
+
//# sourceMappingURL=tree-DRDDTXQ2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/tree.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames, resolveFromCwd } from '../core/worktree/resolve.js';\nimport { openBaseCheckout, setupWorktree } from '../core/worktree/worktree.js';\nimport { findSession, loadHistory, recordLaunch } from '../core/sessions/history.js';\nimport { keepingWarnings } from '../core/platform/report.js';\nimport { SETUP_WARNINGS } from '../core/worktree/setup-child.js';\nimport { leftoversOf, openInLeftovers } from '../core/archive/restore-leftovers.js';\nimport { attachSession } from './shared/attach-session.js';\nimport { openVSCode, launchAi } from '../core/platform/launch.js';\nimport { parseBaseSpec, isEmptyBaseSpec, BaseSpecError } from '../core/git/base-spec.js';\nimport { resolvePrToStart } from '../core/pr/pr-start.js';\nimport { workOnPrPrompt } from '../core/pr/pr-ref.js';\n\nexport const treeCommand: CommandModule = {\n command: ['tree [target] [branch]', 't [target] [branch]'],\n describe: 'Create or switch to a worktree and launch the configured AI tool',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login). Omit to work on the base repo.',\n type: 'string',\n })\n .option('here', {\n describe: 'Infer target and branch from the current worktree directory',\n type: 'boolean',\n default: false,\n })\n .option('open', {\n describe: 'Open VS Code in the worktree after creation',\n type: 'boolean',\n default: false,\n })\n .option('unsafe', {\n describe: 'Launch the AI tool with its skip-permissions flag (default: --dangerously-skip-permissions)',\n type: 'boolean',\n default: false,\n })\n .option('pull', {\n describe: 'Pull latest changes when switching into an existing worktree or the base repo. Use --no-pull to skip.',\n type: 'boolean',\n default: true,\n })\n .option('host', {\n describe:\n 'Run the AI session in the PTY host and attach this terminal to it (the default): it survives closing the tab, shows in `work web` — the same screen there and here — and restores after a reboot. Ctrl+] detaches. --no-host (or config `launchViaHost: false`) launches directly in this terminal instead.',\n type: 'boolean',\n })\n .option('fresh', {\n describe: 'Start a new AI conversation instead of continuing the previous one for this directory',\n type: 'boolean',\n default: false,\n })\n .option('base', {\n describe:\n 'Base branch to fork from instead of HEAD. Repeatable. Use a bare branch (--base dev) for all repos, or alias=branch (--base backend=dev --base frontend=feat/x) for per-repo bases in a group.',\n type: 'string',\n })\n .option('prompt', {\n describe: 'Initial prompt to send to the AI tool on startup',\n type: 'string',\n })\n .option('prompt-file', {\n describe: 'File containing the initial prompt (deleted after reading)',\n type: 'string',\n })\n .option('pr', {\n describe:\n \"Work on a pull request, on its branch (what you push lands in it): its link, or its number with <target>. Someone else's too; not one from a fork\",\n type: 'string',\n })\n .option('name', {\n describe: 'Name the session (shown instead of the branch; rename later with F2 in the dashboard)',\n type: 'string',\n })\n .option('jira-key', {\n describe: 'Link a Jira issue key to this worktree session',\n type: 'string',\n hidden: true,\n })\n .option('repos', {\n describe: \"A new session's repos (comma-separated aliases) instead of its group's: made as a session folder (used by Fork…)\",\n type: 'string',\n hidden: true,\n })\n .option('setup-only', {\n describe: 'Create worktree without launching the AI tool (used by dashboard)',\n type: 'boolean',\n default: false,\n hidden: true,\n }),\n handler: async (argv) => {\n let targetName = argv.target as string | undefined;\n let branchName = argv.branch as string | undefined;\n const here = argv.here as boolean;\n const open = argv.open as boolean;\n const unsafe = argv.unsafe as boolean;\n const pull = argv.pull as boolean;\n const fresh = argv.fresh as boolean;\n const setupOnly = argv['setup-only'] as boolean;\n let baseSpec;\n try {\n baseSpec = parseBaseSpec(argv.base as string | string[] | undefined);\n } catch (err) {\n if (err instanceof BaseSpecError) {\n console.error(err.message);\n process.exitCode = 1;\n return;\n }\n throw err;\n }\n const jiraKey = argv['jira-key'] as string | undefined;\n const promptFile = argv['prompt-file'] as string | undefined;\n let initialPrompt = argv.prompt as string | undefined;\n\n // --prompt-file takes precedence: read and delete the temp file\n if (promptFile) {\n try {\n initialPrompt = fs.readFileSync(promptFile, 'utf-8');\n fs.unlinkSync(promptFile);\n } catch {\n // ignore — fall through to --prompt or no prompt\n }\n }\n\n const config = ensureConfig();\n // Via the host unless told otherwise: one Claude that the terminal and\n // the dashboard both show. A direct launch is invisible to work web.\n const viaHost = (argv.host as boolean | undefined) ?? config.launchViaHost ?? true;\n\n /**\n * Launch the AI tool, continuing the previous conversation for this\n * directory when there is one. `--continue` errors out (\"No conversation\n * found to continue\") in a directory the tool has never run in, so the flag\n * is gated on an existing transcript.\n */\n const launchTool = async (dir: string, port: number | undefined, sessionKey: { target: string; branch: string }): Promise<void> => {\n recordLaunch(sessionKey.target, sessionKey.branch, { unsafe: !!unsafe });\n if (viaHost) {\n const session = findSession(loadHistory(), sessionKey.target, sessionKey.branch);\n if (session) {\n // The host decides --continue itself (the agent's own canResume\n // gate); `fresh` and the prompt ride along on the first spawn.\n process.exitCode = await attachSession(session, {\n unsafe,\n fresh,\n initialPrompt,\n forwardEnv: true,\n });\n return;\n }\n console.log(chalk.yellow('Session not found in history — launching directly instead of via the PTY host.'));\n }\n // The session's agent: what to run, and whether it can resume here.\n const agent = agentFor(config, findSession(loadHistory(), sessionKey.target, sessionKey.branch));\n const tool = agent.launch.tool(config);\n const resume = !fresh && agent.launch.canResume(dir);\n if (resume) {\n console.log(chalk.gray(`Continuing the previous ${tool.cmd} conversation (--fresh starts a new one).`));\n }\n console.log(`Starting ${tool.cmd}...`);\n launchAi(dir, tool, { unsafe, initialPrompt, resume }, port);\n };\n\n // --pr: the PR's repo and branch, and a first prompt saying whose branch it is.\n const prArg = argv.pr as string | undefined;\n if (prArg !== undefined) {\n if (branchName || here || !isEmptyBaseSpec(baseSpec)) {\n console.error(\"--pr takes the PR's own branch: don't combine it with a branch, --here or --base.\");\n process.exitCode = 1;\n return;\n }\n const found = await resolvePrToStart(prArg, config, targetName);\n if (!found.ok) {\n console.error(found.error);\n process.exitCode = 1;\n return;\n }\n targetName = found.pr.alias;\n branchName = found.pr.branch;\n // The PR's context goes to a new session only (with your --prompt as what to do): back in\n // one, your --prompt goes as it is, and nothing re-sends the first message.\n if (!findSession(loadHistory(), targetName, branchName)) initialPrompt = workOnPrPrompt(found.pr, initialPrompt);\n console.log(\n chalk.cyan(`PR #${found.pr.number} by @${found.pr.author || '?'}: ${found.pr.title}, on its branch ${branchName} in ${targetName}`),\n );\n }\n\n // --here: infer target and branch from the current worktree directory\n if (here) {\n if (targetName) {\n console.error('Cannot combine --here with an explicit target.');\n process.exitCode = 1;\n return;\n }\n const inferred = resolveFromCwd(config, process.cwd(), loadHistory());\n if ('error' in inferred) {\n console.error(inferred.error);\n process.exitCode = 1;\n return;\n }\n targetName = inferred.target;\n branchName = inferred.isBaseRepo ? undefined : inferred.branch;\n console.log(chalk.cyan(`Resolved from current directory: ${targetName}${branchName ? ' @ ' + branchName : ' (base repo)'}`));\n } else if (!targetName) {\n console.error('Specify a target, or use --here to infer it from the current directory.');\n process.exitCode = 1;\n return;\n }\n\n // --base requires a branch name\n if (!isEmptyBaseSpec(baseSpec) && !branchName) {\n console.error('--base requires a branch name');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch> --base <base>`));\n process.exitCode = 1;\n return;\n }\n\n // Resolve project target (for validation and base-repo handling)\n const target = resolveProjectTarget(targetName, config);\n if (!target) {\n const allNames = getAllTargetNames(config);\n console.error(`Project or group not found: ${targetName}`);\n console.log(chalk.yellow(`Available: ${allNames.join(', ')}`));\n console.log(chalk.yellow('Add a new project with: work config add <alias> <path>'));\n process.exitCode = 1;\n return;\n }\n\n // No branch specified — work directly on the base repo\n if (!branchName) {\n if (target.isGroup) {\n console.error('Branch is required for group targets.');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch>`));\n process.exitCode = 1;\n return;\n }\n\n console.log(chalk.cyan(`Working on base repo: ${targetName}`));\n const opened = await openBaseCheckout(targetName, config, {\n pull,\n jiraKey,\n name: typeof argv.name === 'string' ? argv.name : undefined,\n });\n if (!opened.ok) {\n console.error(opened.error);\n process.exitCode = 1;\n return;\n }\n const { repoPath, branch: currentBranch } = opened;\n console.log(`Repo path: ${repoPath}`);\n if (opened.dropped.length) console.log(chalk.gray(`Replaced older entries for this checkout: ${opened.dropped.join(', ')}`));\n\n if (open) openVSCode(repoPath);\n if (!setupOnly) await launchTool(repoPath, undefined, { target: targetName, branch: currentBranch });\n return;\n }\n\n // Create/switch worktree via shared core logic\n const repos =\n typeof argv.repos === 'string'\n ? argv.repos\n .split(',')\n .map((a) => a.trim())\n .filter(Boolean)\n : [];\n const { value: result, warnings } = await keepingWarnings(() =>\n setupWorktree(targetName, branchName, config, baseSpec, jiraKey, {\n pull,\n name: argv.name as string | undefined,\n ...(repos.length ? { repos } : {}),\n }),\n );\n if (!result) {\n // Run by you (not work web's child, whose route says it): what keeps the old folder in use, by name.\n const left = setupOnly ? [] : leftoversOf(findSession(loadHistory(), targetName, branchName)?.paths ?? []);\n const open = await openInLeftovers(left);\n if (open.length) console.error(chalk.yellow(`Still open in its old folder: ${open.join(', ')}. Stop it and try again.`));\n process.exitCode = 1;\n return;\n }\n\n if (open) {\n for (const p of result.paths) {\n openVSCode(p);\n }\n }\n\n console.log(`Worktree path: ${result.launchDir}`);\n // work web's child: what it warned about, for the dashboard (it reads only this line).\n if (setupOnly) console.log(`${SETUP_WARNINGS}${JSON.stringify(warnings)}`);\n if (!setupOnly) {\n await launchTool(result.launchDir, result.port, { target: targetName, branch: branchName });\n }\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,WAAW;AAeX,IAAM,cAA6B;AAAA,EACxC,SAAS,CAAC,0BAA0B,qBAAqB;AAAA,EACzD,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,eAAe,IAAI,EACnB,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,OAAO,QAAQ;AAAA,IACd,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EACA,OAAO,QAAQ;AAAA,IAC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
|
import {
|
|
7
8
|
sessionFromArgs,
|
|
8
9
|
sessionPositionals
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GDCTRDUY.js";
|
|
10
11
|
import "./chunk-6AQRYLOB.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-BO3BNBBE.js";
|
|
13
|
+
import "./chunk-XZ5DA5X4.js";
|
|
12
14
|
import "./chunk-ZSHWP2VS.js";
|
|
13
|
-
import "./chunk-QDKLIYGR.js";
|
|
14
15
|
import "./chunk-HUXS3VAI.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-Y2HNFNCS.js";
|
|
16
|
+
import "./chunk-RFQRVXFQ.js";
|
|
17
|
+
import "./chunk-JCMGIW7G.js";
|
|
18
18
|
import "./chunk-RCYI7SRA.js";
|
|
19
19
|
import "./chunk-NEJVK5CF.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-FXHTSSV2.js";
|
|
21
|
+
import "./chunk-S4ILKUFN.js";
|
|
22
|
+
import "./chunk-FRCV6NWT.js";
|
|
23
|
+
import "./chunk-A53IRCOO.js";
|
|
24
24
|
|
|
25
25
|
// src/commands/update.ts
|
|
26
26
|
import chalk from "chalk";
|
|
@@ -55,4 +55,4 @@ var updateCommand = {
|
|
|
55
55
|
export {
|
|
56
56
|
updateCommand
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=update-
|
|
58
|
+
//# sourceMappingURL=update-S57YQGPG.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
cliWaitDeps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WOAFMVKW.js";
|
|
5
5
|
import {
|
|
6
6
|
parseDuration,
|
|
7
7
|
waitForTurn
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
sessionFromArgs,
|
|
11
11
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GDCTRDUY.js";
|
|
13
13
|
import "./chunk-6AQRYLOB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-BO3BNBBE.js";
|
|
15
|
+
import "./chunk-XZ5DA5X4.js";
|
|
15
16
|
import "./chunk-ZSHWP2VS.js";
|
|
16
|
-
import "./chunk-QDKLIYGR.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-RFQRVXFQ.js";
|
|
19
|
+
import "./chunk-JCMGIW7G.js";
|
|
20
20
|
import "./chunk-RCYI7SRA.js";
|
|
21
21
|
import "./chunk-NEJVK5CF.js";
|
|
22
22
|
import {
|
|
23
23
|
sessionIdFor
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-FXHTSSV2.js";
|
|
25
|
+
import "./chunk-S4ILKUFN.js";
|
|
26
|
+
import "./chunk-FRCV6NWT.js";
|
|
27
|
+
import "./chunk-A53IRCOO.js";
|
|
28
28
|
|
|
29
29
|
// src/commands/wait.ts
|
|
30
30
|
import chalk from "chalk";
|
|
@@ -55,4 +55,4 @@ var waitCommand = {
|
|
|
55
55
|
export {
|
|
56
56
|
waitCommand
|
|
57
57
|
};
|
|
58
|
-
//# sourceMappingURL=wait-
|
|
58
|
+
//# sourceMappingURL=wait-2CRY7XQ5.js.map
|
package/dist/wd-bin.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
run
|
|
4
|
-
} from "./chunk-XFRSOUBJ.js";
|
|
5
2
|
import {
|
|
6
3
|
consoleReporter
|
|
7
4
|
} from "./chunk-S5HJT7CM.js";
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
import {
|
|
6
|
+
run
|
|
7
|
+
} from "./chunk-IZSMQ6X2.js";
|
|
8
|
+
import "./chunk-JUGSJ37Z.js";
|
|
9
|
+
import "./chunk-R2SR3PER.js";
|
|
10
|
+
import "./chunk-AKGDIBSE.js";
|
|
11
11
|
import "./chunk-RCYI7SRA.js";
|
|
12
12
|
import {
|
|
13
13
|
withReporter
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-S4ILKUFN.js";
|
|
15
15
|
import {
|
|
16
16
|
debug,
|
|
17
17
|
installConsoleLogger
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-FRCV6NWT.js";
|
|
19
|
+
import "./chunk-A53IRCOO.js";
|
|
20
20
|
|
|
21
21
|
// src/wd-bin.ts
|
|
22
22
|
import chalk from "chalk";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,t as r}from"./index-rLMVfFdt.js";var i=e(n(),1),a=2e3,o=20,s=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>a?null:(this.samples.push(t),this.samples.length>o&&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}},c=[2e3,1e4,6e4],l=6e5,u=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<l),this.losses.push(e),c[this.losses.length-1]??null}},d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,t)=>{for(var n in t)d(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,r)=>{for(var i=r>1?void 0:r?f(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&&d(t,n,i),i},h=(e,t)=>(n,r)=>t(n,r,e),g=`Terminal input`,_={get:()=>g,set:e=>g=e},v=`Too much output to announce, navigate to rows manually to read`,y={get:()=>v,set:e=>v=e};function ee(e){return e.replace(/\r?\n/g,`\r`)}function te(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function ne(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function re(e,t,n,r){e.stopPropagation(),e.clipboardData&&b(e.clipboardData.getData(`text/plain`),t,n,r)}function b(e,t,n,r){e=ee(e),e=te(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function ie(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 ae(e,t,n,r,i){ie(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function x(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function oe(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 S=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}},se=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}},ce=``,le=` `,C=class e{constructor(){this.fg=0,this.bg=0,this.extended=new w}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}},w=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}},T=class e extends C{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new w,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?x(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()]}},ue=`di$target`,de=`di$dependencies`,fe=new Map;function pe(e){return e[de]||[]}function E(e){if(fe.has(e))return fe.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);me(t,e,r)};return t._id=e,fe.set(e,t),t}function me(e,t,n){t[ue]===t?t[de].push({id:e,index:n}):(t[de]=[{id:e,index:n}],t[ue]=t)}var D=E(`BufferService`),he=E(`CoreMouseService`),ge=E(`CoreService`),_e=E(`CharsetService`),ve=E(`InstantiationService`),ye=E(`LogService`),O=E(`OptionsService`),be=E(`OscLinkService`),xe=E(`UnicodeService`),Se=E(`DecorationService`),Ce=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 T,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):we(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)}};Ce=m([h(0,D),h(1,O),h(2,be)],Ce);function we(e,t){if(confirm(`Do you want to navigate to ${t}?
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./index-CqTf1VAm.js";var i=e(n(),1),a=2e3,o=20,s=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>a?null:(this.samples.push(t),this.samples.length>o&&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}},c=[2e3,1e4,6e4],l=6e5,u=class{losses=[];lost(e){return this.losses=this.losses.filter(t=>e-t<l),this.losses.push(e),c[this.losses.length-1]??null}},d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=(e,t)=>{for(var n in t)d(e,n,{get:t[n],enumerable:!0})},m=(e,t,n,r)=>{for(var i=r>1?void 0:r?f(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&&d(t,n,i),i},h=(e,t)=>(n,r)=>t(n,r,e),g=`Terminal input`,_={get:()=>g,set:e=>g=e},v=`Too much output to announce, navigate to rows manually to read`,y={get:()=>v,set:e=>v=e};function ee(e){return e.replace(/\r?\n/g,`\r`)}function te(e,t){return t?`\x1B[200~`+e+`\x1B[201~`:e}function ne(e,t){e.clipboardData&&e.clipboardData.setData(`text/plain`,t.selectionText),e.preventDefault()}function re(e,t,n,r){e.stopPropagation(),e.clipboardData&&b(e.clipboardData.getData(`text/plain`),t,n,r)}function b(e,t,n,r){e=ee(e),e=te(e,n.decPrivateModes.bracketedPasteMode&&r.rawOptions.ignoreBracketedPasteMode!==!0),n.triggerDataEvent(e,!0),t.value=``}function ie(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 ae(e,t,n,r,i){ie(e,t,n),i&&r.rightClickSelect(e),t.value=r.selectionText,t.select()}function x(e){return e>65535?(e-=65536,String.fromCharCode((e>>10)+55296)+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)}function oe(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 S=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}},se=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}},ce=``,le=` `,C=class e{constructor(){this.fg=0,this.bg=0,this.extended=new w}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}},w=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}},T=class e extends C{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new w,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?x(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()]}},ue=`di$target`,de=`di$dependencies`,fe=new Map;function pe(e){return e[de]||[]}function E(e){if(fe.has(e))return fe.get(e);let t=function(e,n,r){if(arguments.length!==3)throw Error(`@IServiceName-decorator can only be used to decorate a parameter`);me(t,e,r)};return t._id=e,fe.set(e,t),t}function me(e,t,n){t[ue]===t?t[de].push({id:e,index:n}):(t[de]=[{id:e,index:n}],t[ue]=t)}var D=E(`BufferService`),he=E(`CoreMouseService`),ge=E(`CoreService`),_e=E(`CharsetService`),ve=E(`InstantiationService`),ye=E(`LogService`),O=E(`OptionsService`),be=E(`OscLinkService`),xe=E(`UnicodeService`),Se=E(`DecorationService`),Ce=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 T,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):we(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)}};Ce=m([h(0,D),h(1,O),h(2,be)],Ce);function we(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 Te=E(`CharSizeService`),Ee=E(`CoreBrowserService`),De=E(`MouseService`),Oe=E(`RenderService`),ke=E(`SelectionService`),Ae=E(`CharacterJoinerService`),je=E(`ThemeService`),Me=E(`LinkProviderService`),Ne=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?ze.isErrorNoTelemetry(e)?new ze(e.message+`
|
|
4
4
|
|
|
@@ -87,4 +87,4 @@ void main() {
|
|
|
87
87
|
`),S=!0});let le=t.onData(e=>{if(S){e===`\r`&&m(e=>e+1);return}C(e)});function C(e){S||(ae?(b.send(JSON.stringify({type:`input`,data:e})),se.keySent(performance.now())):x.push(e))}let w=t.cols,T=t.rows,ue=(e=!1)=>{c.current&&(n.fit(),(e||t.cols!==w||t.rows!==T)&&(w=t.cols,T=t.rows,ae&&b.send(JSON.stringify({type:`resize`,cols:t.cols,rows:t.rows}))))},de=()=>ue(),fe=typeof ResizeObserver<`u`?new ResizeObserver(()=>ue()):null;fe?fe.observe(o.current):window.addEventListener(`resize`,de),l.current=()=>{ue(!0),t.focus()};let pe=()=>ue(!0);return t.textarea?.addEventListener(`focus`,pe),()=>{d=!0,clearTimeout(ie),clearTimeout(a),t.textarea?.removeEventListener(`paste`,ee,!0),t.textarea?.removeEventListener(`focus`,pe),l.current=null,fe?.disconnect(),window.removeEventListener(`resize`,de),le.dispose();try{b.close()}catch{}t.dispose()}},[e,p]);let b=()=>{re(!0),m(e=>e+1)};(0,i.useEffect)(()=>{if(!h||!a)return;let e=setInterval(()=>{document.visibilityState===`visible`&&b()},Rf);return()=>clearInterval(e)},[h,a]);let ie=()=>{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.`)&&(_.current=!0,g(null),m(e=>e+1))},ae=t?`work tree ${t}${n?` ${n}`:``}`:`work tree <target> <branch>`,x=Vf(v,ee);return(0,If.jsxs)(If.Fragment,{children:[h&&(0,If.jsxs)(`div`,{className:`wd-pty-elsewhere`,role:`status`,children:[(0,If.jsxs)(`p`,{className:`wd-pty-elsewhere-title`,children:[h.confirmed?`This session’s Claude is open in another terminal`:`This session’s Claude seems to be running in another terminal`,h.lastActivity!==null&&(0,If.jsxs)(If.Fragment,{children:[` (last wrote `,zf(h.lastActivity),`)`]}),h.state===`needs_input`&&(0,If.jsx)(If.Fragment,{children:`, waiting for your answer there`}),`.`]}),(0,If.jsxs)(`p`,{children:[`Close it there (type `,(0,If.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,If.jsx)(`code`,{children:ae}),` (Ctrl+] detaches, Claude keeps running).`]}),(0,If.jsxs)(`p`,{className:`wd-pty-elsewhere-actions`,children:[(0,If.jsx)(`button`,{type:`button`,className:`wd-btn-secondary`,onClick:b,disabled:ne,children:ne?`Checking…`:`Check again`}),!h.confirmed&&(0,If.jsx)(`button`,{type:`button`,className:`wd-link-button`,onClick:ie,children:`It's not running — start it here…`})]})]}),(0,If.jsxs)(`div`,{className:`wd-pty-frame`,style:h?{display:`none`}:void 0,children:[(0,If.jsx)(`div`,{ref:o,className:`wd-pty-host`}),x&&(0,If.jsx)(`span`,{className:`wd-pty-latency`+(x.slow?` wd-pty-latency-slow`:``),title:x.title,children:x.text}),d!==`ready`&&!h&&(0,If.jsx)(`div`,{className:`wd-pty-connecting`,role:`status`,children:d===`starting`?`Starting Claude — resuming the conversation…`:`Connecting…`})]})]})}function Vf(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{Rf as ELSEWHERE_RECHECK_MS,Bf as PtyView,Lf as openLink};
|
|
90
|
-
//# sourceMappingURL=PtyView-
|
|
90
|
+
//# sourceMappingURL=PtyView-BZ57sEm1.js.map
|