@moberg_hr/work-tree 2.3.2 → 2.4.1
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-BUCSF4QS.js +9 -0
- 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-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-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/{chunk-XFRSOUBJ.js → chunk-ZKOI6PH4.js} +67 -56
- package/dist/chunk-ZKOI6PH4.js.map +1 -0
- 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-HTBQ4DSS.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-DAqdRe88.js} +2 -2
- package/dist/web/assets/{PtyView-DBG0B_A4.js.map → PtyView-DAqdRe88.js.map} +1 -1
- package/dist/web/assets/index-CDYWfNo_.css +1 -0
- package/dist/web/assets/index-DGXvjEJe.js +119 -0
- package/dist/web/assets/index-DGXvjEJe.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-DSJT4HSI.js → web-OG6ZPJON.js} +471 -298
- package/dist/web-OG6ZPJON.js.map +1 -0
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- 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-KPGR4JRE.js.map → chunk-BUCSF4QS.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-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-HTBQ4DSS.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
|
@@ -9,40 +9,40 @@ import {
|
|
|
9
9
|
resolveWebRoot,
|
|
10
10
|
startDiffServer,
|
|
11
11
|
submitReviewSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-R7334LAS.js";
|
|
13
13
|
import {
|
|
14
14
|
openUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YDYHURVA.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveWorkBinPath
|
|
18
18
|
} from "./chunk-AH5TM3NB.js";
|
|
19
19
|
import {
|
|
20
20
|
computeDiff
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3HBHM2VX.js";
|
|
22
22
|
import "./chunk-LNHSBM4L.js";
|
|
23
|
+
import "./chunk-AKGDIBSE.js";
|
|
23
24
|
import {
|
|
24
25
|
existingWebDecision,
|
|
25
26
|
readWebUrl,
|
|
26
27
|
webServerResponds,
|
|
27
28
|
webUrlPath
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MAFJE26N.js";
|
|
29
30
|
import {
|
|
30
31
|
stableDiffPath
|
|
31
32
|
} from "./chunk-ZSHWP2VS.js";
|
|
32
33
|
import {
|
|
33
34
|
createCommentStore
|
|
34
35
|
} from "./chunk-HUXS3VAI.js";
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-NM4SABMQ.js";
|
|
36
|
+
import "./chunk-RFQRVXFQ.js";
|
|
37
37
|
import {
|
|
38
38
|
spawnDetachedWork
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-JCMGIW7G.js";
|
|
40
40
|
import "./chunk-RCYI7SRA.js";
|
|
41
41
|
import "./chunk-NEJVK5CF.js";
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-FXHTSSV2.js";
|
|
43
|
+
import "./chunk-S4ILKUFN.js";
|
|
44
|
+
import "./chunk-FRCV6NWT.js";
|
|
45
|
+
import "./chunk-A53IRCOO.js";
|
|
46
46
|
|
|
47
47
|
// src/commands/diff.ts
|
|
48
48
|
import fs2 from "fs";
|
|
@@ -580,4 +580,4 @@ export {
|
|
|
580
580
|
resolveWorkBinPath,
|
|
581
581
|
webServerResponds
|
|
582
582
|
};
|
|
583
|
-
//# sourceMappingURL=diff-
|
|
583
|
+
//# sourceMappingURL=diff-UYXZID2B.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
createDigestSource
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-I2TUJLI4.js";
|
|
5
|
+
import "./chunk-3KOYICWB.js";
|
|
6
6
|
import {
|
|
7
7
|
askWorkWeb
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-MAFJE26N.js";
|
|
9
|
+
import "./chunk-RFQRVXFQ.js";
|
|
10
|
+
import "./chunk-JCMGIW7G.js";
|
|
11
11
|
import "./chunk-RCYI7SRA.js";
|
|
12
12
|
import {
|
|
13
13
|
formatWorked
|
|
14
14
|
} from "./chunk-NEJVK5CF.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-FXHTSSV2.js";
|
|
16
|
+
import "./chunk-S4ILKUFN.js";
|
|
17
|
+
import "./chunk-FRCV6NWT.js";
|
|
18
|
+
import "./chunk-A53IRCOO.js";
|
|
19
19
|
|
|
20
20
|
// src/core/conversations/digest-view.ts
|
|
21
21
|
var WINDOW_LABEL = {
|
|
@@ -98,4 +98,4 @@ export {
|
|
|
98
98
|
digestCommand,
|
|
99
99
|
parseSince
|
|
100
100
|
};
|
|
101
|
-
//# sourceMappingURL=digest-
|
|
101
|
+
//# sourceMappingURL=digest-I5Z6W2EP.js.map
|
|
@@ -4,49 +4,50 @@ import {
|
|
|
4
4
|
forkSession,
|
|
5
5
|
startSessionWithPrompt,
|
|
6
6
|
uncommittedFiles
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-5EGGS6Y6.js";
|
|
7
|
+
} from "./chunk-45X4QO4V.js";
|
|
9
8
|
import {
|
|
10
9
|
attachSession
|
|
11
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MM32YZT6.js";
|
|
11
|
+
import "./chunk-JCCGLFMU.js";
|
|
12
12
|
import "./chunk-AH5TM3NB.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-FXIEYT6L.js";
|
|
14
|
+
import "./chunk-4ETSGWB2.js";
|
|
15
|
+
import "./chunk-DHBKD2TG.js";
|
|
16
|
+
import "./chunk-VES42DOD.js";
|
|
17
|
+
import "./chunk-VGQV4LX7.js";
|
|
14
18
|
import "./chunk-KUCMJHQW.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-PSUJZUYX.js";
|
|
20
|
+
import "./chunk-5WM24P5N.js";
|
|
21
|
+
import "./chunk-3GIH4WTA.js";
|
|
18
22
|
import {
|
|
19
23
|
askCatchUp,
|
|
20
24
|
catchUp,
|
|
21
25
|
catchUpFacts
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-M2TQNGMD.js";
|
|
27
|
+
import "./chunk-PLOO7NQU.js";
|
|
28
|
+
import "./chunk-3HBHM2VX.js";
|
|
29
|
+
import "./chunk-R2SR3PER.js";
|
|
30
|
+
import "./chunk-AKGDIBSE.js";
|
|
31
|
+
import "./chunk-ZHKE637Q.js";
|
|
27
32
|
import {
|
|
28
33
|
findSessionForCwd
|
|
29
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-BO3BNBBE.js";
|
|
35
|
+
import "./chunk-XZ5DA5X4.js";
|
|
30
36
|
import "./chunk-ZSHWP2VS.js";
|
|
31
|
-
import "./chunk-QDKLIYGR.js";
|
|
32
37
|
import "./chunk-HUXS3VAI.js";
|
|
33
|
-
import "./chunk-PSUJZUYX.js";
|
|
34
|
-
import "./chunk-5WM24P5N.js";
|
|
35
|
-
import "./chunk-3GIH4WTA.js";
|
|
36
|
-
import "./chunk-YIODX4PM.js";
|
|
37
38
|
import {
|
|
38
39
|
findSession,
|
|
39
40
|
loadHistory
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-RFQRVXFQ.js";
|
|
42
|
+
import "./chunk-JCMGIW7G.js";
|
|
42
43
|
import "./chunk-RCYI7SRA.js";
|
|
43
44
|
import "./chunk-NEJVK5CF.js";
|
|
44
45
|
import {
|
|
45
46
|
sessionIdFor
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-FXHTSSV2.js";
|
|
48
|
+
import "./chunk-S4ILKUFN.js";
|
|
49
|
+
import "./chunk-FRCV6NWT.js";
|
|
50
|
+
import "./chunk-A53IRCOO.js";
|
|
50
51
|
|
|
51
52
|
// src/commands/fork.ts
|
|
52
53
|
import chalk from "chalk";
|
|
@@ -121,4 +122,4 @@ var forkCommand = {
|
|
|
121
122
|
export {
|
|
122
123
|
forkCommand
|
|
123
124
|
};
|
|
124
|
-
//# sourceMappingURL=fork-
|
|
125
|
+
//# sourceMappingURL=fork-5AOB45N2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/fork.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { askCatchUp, catchUpFacts } from '../core/conversations/catch-up-deps.js';\nimport { catchUp } from '../core/conversations/catch-up.js';\nimport { forkSession } from '../core/sessions/fork.js';\nimport { defaultForkDeps, uncommittedFiles } from '../core/sessions/fork-deps.js';\nimport { findSession, loadHistory } from '../core/sessions/history.js';\nimport { findSessionForCwd } from '../core/comments/pending-delivery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { startSessionWithPrompt } from '../core/sessions/session-start.js';\nimport { attachSession } from './shared/attach-session.js';\n\n/**\n * `work fork <new-branch>` — the dashboard's Fork… (core/fork.ts) from a\n * terminal: a new branch and worktree from where this session is, its Claude\n * started with a summary of this conversation; then this terminal is\n * attached to it, as `work tree` does (`--no-attach`: start it and leave it).\n */\nexport const forkCommand: CommandModule = {\n command: 'fork <branch>',\n describe: 'Fork the current session: a new branch from where it is, its Claude given a summary of this conversation',\n builder: (yargs) =>\n yargs\n .positional('branch', { type: 'string', demandOption: true, describe: 'The new branch' })\n .option('target', { type: 'string', describe: 'The session to fork: its repo or group (default: the session for this folder)' })\n .option('from', { type: 'string', describe: \"With --target: the session's branch\" })\n .option('prompt', { type: 'string', describe: 'What to try in the fork (default: read the summary and wait)' })\n .option('name', { type: 'string', describe: 'A name for the new session' })\n .option('attach', {\n type: 'boolean',\n default: true,\n describe: 'Attach this terminal to the new Claude (--no-attach: start it in the PTY host and return)',\n }),\n handler: async (argv) => {\n const history = loadHistory();\n const target = argv.target as string | undefined;\n const from = argv.from as string | undefined;\n if (!!target !== !!from) {\n console.error(chalk.red('Give both --target and --from, or neither (the session for this folder).'));\n process.exitCode = 1;\n return;\n }\n const parent = target && from ? findSession(history, target, from) : findSessionForCwd(process.cwd(), history);\n if (!parent) {\n console.error(\n chalk.red(target ? `No session for ${target} ${from}.` : 'This folder is not inside a work session: pass --target and --from.'),\n );\n process.exitCode = 1;\n return;\n }\n const branch = argv.branch as string;\n const attach = argv.attach !== false;\n let firstPrompt: string | null = null;\n console.log(chalk.cyan(`Forking ${parent.target} · ${parent.branch} into ${branch}…`));\n const r = await forkSession(\n parent,\n { branch, prompt: argv.prompt as string | undefined, name: argv.name as string | undefined },\n defaultForkDeps({\n summarize: async (s) => {\n console.log(chalk.gray('Writing a summary of the conversation…'));\n return (await catchUp(s, askCatchUp, catchUpFacts(sessionIdFor(s))))?.text ?? null;\n },\n uncommitted: uncommittedFiles,\n // Attaching starts it with the prompt (below); otherwise the host starts it now.\n start: async (id, prompt) => {\n firstPrompt = prompt;\n if (!attach) await startSessionWithPrompt(id, prompt);\n },\n }),\n );\n if (!r.ok) {\n console.error(chalk.red(`Not forked: ${r.error}`));\n process.exitCode = 1;\n return;\n }\n console.log(\n chalk.green(`Forked into ${r.paths.join(', ')}`) +\n chalk.gray(r.summarized ? ' — its Claude gets a summary of this conversation.' : ' — no recent conversation to summarize.'),\n );\n const fork = findSession(loadHistory(), parent.target, branch);\n if (r.startError || !fork) {\n console.error(\n chalk.yellow(`Its Claude didn't start: ${r.startError ?? 'session not found'}. Run \\`work tree ${parent.target} ${branch}\\`.`),\n );\n process.exitCode = 1;\n return;\n }\n if (!attach) {\n console.log(chalk.gray(`Running in the PTY host: \\`work attach ${parent.target} ${branch}\\` to see it.`));\n return;\n }\n process.exitCode = await attachSession(fork, { initialPrompt: firstPrompt ?? undefined, forwardEnv: true });\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/fork.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { askCatchUp, catchUpFacts } from '../core/conversations/catch-up-deps.js';\nimport { catchUp } from '../core/conversations/catch-up.js';\nimport { forkSession } from '../core/sessions/fork.js';\nimport { defaultForkDeps, uncommittedFiles } from '../core/sessions/fork-deps.js';\nimport { findSession, loadHistory } from '../core/sessions/history.js';\nimport { findSessionForCwd } from '../core/comments/pending-delivery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { startSessionWithPrompt } from '../core/sessions/session-start.js';\nimport { attachSession } from './shared/attach-session.js';\n\n/**\n * `work fork <new-branch>` — the dashboard's Fork… (core/fork.ts) from a\n * terminal: a new branch and worktree from where this session is, its Claude\n * started with a summary of this conversation; then this terminal is\n * attached to it, as `work tree` does (`--no-attach`: start it and leave it).\n */\nexport const forkCommand: CommandModule = {\n command: 'fork <branch>',\n describe: 'Fork the current session: a new branch from where it is, its Claude given a summary of this conversation',\n builder: (yargs) =>\n yargs\n .positional('branch', { type: 'string', demandOption: true, describe: 'The new branch' })\n .option('target', { type: 'string', describe: 'The session to fork: its repo or group (default: the session for this folder)' })\n .option('from', { type: 'string', describe: \"With --target: the session's branch\" })\n .option('prompt', { type: 'string', describe: 'What to try in the fork (default: read the summary and wait)' })\n .option('name', { type: 'string', describe: 'A name for the new session' })\n .option('attach', {\n type: 'boolean',\n default: true,\n describe: 'Attach this terminal to the new Claude (--no-attach: start it in the PTY host and return)',\n }),\n handler: async (argv) => {\n const history = loadHistory();\n const target = argv.target as string | undefined;\n const from = argv.from as string | undefined;\n if (!!target !== !!from) {\n console.error(chalk.red('Give both --target and --from, or neither (the session for this folder).'));\n process.exitCode = 1;\n return;\n }\n const parent = target && from ? findSession(history, target, from) : findSessionForCwd(process.cwd(), history);\n if (!parent) {\n console.error(\n chalk.red(target ? `No session for ${target} ${from}.` : 'This folder is not inside a work session: pass --target and --from.'),\n );\n process.exitCode = 1;\n return;\n }\n const branch = argv.branch as string;\n const attach = argv.attach !== false;\n let firstPrompt: string | null = null;\n console.log(chalk.cyan(`Forking ${parent.target} · ${parent.branch} into ${branch}…`));\n const r = await forkSession(\n parent,\n { branch, prompt: argv.prompt as string | undefined, name: argv.name as string | undefined },\n defaultForkDeps({\n summarize: async (s) => {\n console.log(chalk.gray('Writing a summary of the conversation…'));\n return (await catchUp(s, askCatchUp, catchUpFacts(sessionIdFor(s))))?.text ?? null;\n },\n uncommitted: uncommittedFiles,\n // Attaching starts it with the prompt (below); otherwise the host starts it now.\n start: async (id, prompt) => {\n firstPrompt = prompt;\n if (!attach) await startSessionWithPrompt(id, prompt);\n },\n }),\n );\n if (!r.ok) {\n console.error(chalk.red(`Not forked: ${r.error}`));\n process.exitCode = 1;\n return;\n }\n console.log(\n chalk.green(`Forked into ${r.paths.join(', ')}`) +\n chalk.gray(r.summarized ? ' — its Claude gets a summary of this conversation.' : ' — no recent conversation to summarize.'),\n );\n const fork = findSession(loadHistory(), parent.target, branch);\n if (r.startError || !fork) {\n console.error(\n chalk.yellow(`Its Claude didn't start: ${r.startError ?? 'session not found'}. Run \\`work tree ${parent.target} ${branch}\\`.`),\n );\n process.exitCode = 1;\n return;\n }\n if (!attach) {\n console.log(chalk.gray(`Running in the PTY host: \\`work attach ${parent.target} ${branch}\\` to see it.`));\n return;\n }\n process.exitCode = await attachSession(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|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
appendSessionRepo,
|
|
4
|
+
findSession,
|
|
5
|
+
findSessionById,
|
|
6
|
+
forgetOtherBaseCheckoutEntries,
|
|
7
|
+
getHistoryPath,
|
|
8
|
+
getRecentSessions,
|
|
9
|
+
getSessionsForTarget,
|
|
10
|
+
loadHistory,
|
|
11
|
+
mergeHydratedSessions,
|
|
12
|
+
prunePersistedStaleEntries,
|
|
13
|
+
pruneStaleEntries,
|
|
14
|
+
recordLaunch,
|
|
15
|
+
removeSession,
|
|
16
|
+
saveHistory,
|
|
17
|
+
setOwnRepos,
|
|
18
|
+
setSessionArchived,
|
|
19
|
+
setSessionBase,
|
|
20
|
+
setSessionTitle,
|
|
21
|
+
touchSession,
|
|
22
|
+
upsertSession,
|
|
23
|
+
upsertSessionWithPort
|
|
24
|
+
} from "./chunk-RFQRVXFQ.js";
|
|
25
|
+
import "./chunk-JCMGIW7G.js";
|
|
26
|
+
import "./chunk-RCYI7SRA.js";
|
|
27
|
+
import "./chunk-NEJVK5CF.js";
|
|
28
|
+
import "./chunk-FXHTSSV2.js";
|
|
29
|
+
import "./chunk-S4ILKUFN.js";
|
|
30
|
+
import "./chunk-FRCV6NWT.js";
|
|
31
|
+
import "./chunk-A53IRCOO.js";
|
|
32
|
+
export {
|
|
33
|
+
appendSessionRepo,
|
|
34
|
+
findSession,
|
|
35
|
+
findSessionById,
|
|
36
|
+
forgetOtherBaseCheckoutEntries,
|
|
37
|
+
getHistoryPath,
|
|
38
|
+
getRecentSessions,
|
|
39
|
+
getSessionsForTarget,
|
|
40
|
+
loadHistory,
|
|
41
|
+
mergeHydratedSessions,
|
|
42
|
+
prunePersistedStaleEntries,
|
|
43
|
+
pruneStaleEntries,
|
|
44
|
+
recordLaunch,
|
|
45
|
+
removeSession,
|
|
46
|
+
saveHistory,
|
|
47
|
+
setOwnRepos,
|
|
48
|
+
setSessionArchived,
|
|
49
|
+
setSessionBase,
|
|
50
|
+
setSessionTitle,
|
|
51
|
+
touchSession,
|
|
52
|
+
upsertSession,
|
|
53
|
+
upsertSessionWithPort
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=history-3LFLB4FO.js.map
|
|
@@ -3,43 +3,43 @@ import {
|
|
|
3
3
|
isOwnCheckout,
|
|
4
4
|
ownCheckoutNote
|
|
5
5
|
} from "./chunk-TUFQJXXO.js";
|
|
6
|
-
import {
|
|
7
|
-
readWebUrl
|
|
8
|
-
} from "./chunk-Y33WKESH.js";
|
|
9
6
|
import {
|
|
10
7
|
assistantContextDay,
|
|
11
8
|
readAssistantContext
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZHKE637Q.js";
|
|
10
|
+
import {
|
|
11
|
+
readWebUrl
|
|
12
|
+
} from "./chunk-MAFJE26N.js";
|
|
13
13
|
import {
|
|
14
14
|
claimForDelivery,
|
|
15
15
|
findSessionForCwd,
|
|
16
16
|
formatPendingForPrompt,
|
|
17
17
|
readPendingForWorktree,
|
|
18
18
|
resolveAddressed
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BO3BNBBE.js";
|
|
20
|
+
import "./chunk-XZ5DA5X4.js";
|
|
20
21
|
import "./chunk-ZSHWP2VS.js";
|
|
21
|
-
import "./chunk-QDKLIYGR.js";
|
|
22
22
|
import "./chunk-HUXS3VAI.js";
|
|
23
23
|
import {
|
|
24
24
|
bestEffort,
|
|
25
25
|
bestEffortAsync,
|
|
26
26
|
readSessionActivity,
|
|
27
27
|
recordStatusEvent
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-RFQRVXFQ.js";
|
|
29
29
|
import {
|
|
30
30
|
agentById,
|
|
31
31
|
isInternalRun
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JCMGIW7G.js";
|
|
33
33
|
import "./chunk-RCYI7SRA.js";
|
|
34
34
|
import "./chunk-NEJVK5CF.js";
|
|
35
35
|
import {
|
|
36
36
|
sessionIdFor
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-FXHTSSV2.js";
|
|
38
|
+
import "./chunk-S4ILKUFN.js";
|
|
39
|
+
import "./chunk-FRCV6NWT.js";
|
|
40
40
|
import {
|
|
41
41
|
loadConfig
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-A53IRCOO.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/hook.ts
|
|
45
45
|
var STATUS_EVENTS = /* @__PURE__ */ new Set(["status-prompt", "status-stop", "status-notify"]);
|
|
@@ -192,7 +192,7 @@ async function handleHook(event, agentId = "claude") {
|
|
|
192
192
|
const cwd = hookCwd(payload, agent);
|
|
193
193
|
if (event === "assistant-context") {
|
|
194
194
|
const day = assistantContextDay();
|
|
195
|
-
const dayNow = day ? await import("./time-actions-
|
|
195
|
+
const dayNow = day ? await import("./time-actions-FLLFYEVY.js").then((m) => m.describeDayNow(day)).catch(() => null) : null;
|
|
196
196
|
const text = readAssistantContext(Date.now(), dayNow);
|
|
197
197
|
if (text) process.stdout.write(text + "\n");
|
|
198
198
|
return;
|
|
@@ -227,4 +227,4 @@ export {
|
|
|
227
227
|
runTurnHook,
|
|
228
228
|
statusEventFor
|
|
229
229
|
};
|
|
230
|
-
//# sourceMappingURL=hook-
|
|
230
|
+
//# sourceMappingURL=hook-SJOCXGLD.js.map
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
flatFolderOwner
|
|
4
|
+
} from "./chunk-VGQV4LX7.js";
|
|
2
5
|
import {
|
|
3
6
|
parseWorktreeList
|
|
4
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AKGDIBSE.js";
|
|
5
8
|
import {
|
|
6
9
|
mergeHydratedSessions
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-RFQRVXFQ.js";
|
|
11
|
+
import "./chunk-JCMGIW7G.js";
|
|
9
12
|
import "./chunk-RCYI7SRA.js";
|
|
10
13
|
import "./chunk-NEJVK5CF.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-FXHTSSV2.js";
|
|
15
|
+
import "./chunk-S4ILKUFN.js";
|
|
16
|
+
import "./chunk-FRCV6NWT.js";
|
|
14
17
|
import {
|
|
15
18
|
ensureConfig
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-A53IRCOO.js";
|
|
17
20
|
|
|
18
21
|
// src/commands/hydrate.ts
|
|
19
22
|
import chalk from "chalk";
|
|
@@ -39,14 +42,19 @@ async function hydrateHistoryFromDisk(config) {
|
|
|
39
42
|
if (parts.length < 2) continue;
|
|
40
43
|
const [first, second] = parts;
|
|
41
44
|
const isGroup = Object.prototype.hasOwnProperty.call(config.groups, first);
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
const folderOwner = isGroup ? void 0 : folderSessionOwner(parts, repoPath, config, folderNameToAlias);
|
|
46
|
+
const flatOwner = !isGroup && !folderOwner && parts.length === 2 && second.toLowerCase() === path.basename(repoPath).toLowerCase() ? flatFolderOwner(first, entry.branch, config) : void 0;
|
|
47
|
+
if (isGroup || folderOwner || flatOwner) {
|
|
48
|
+
const groupName = flatOwner ?? folderOwner ?? first;
|
|
44
49
|
const key = `${groupName}:${entry.branch}`;
|
|
45
50
|
const existing = discovered.get(key);
|
|
46
51
|
if (existing) {
|
|
47
52
|
if (!existing.paths.includes(entry.path)) {
|
|
48
|
-
existing.
|
|
49
|
-
existing.paths.
|
|
53
|
+
const repos = existing.repos ?? [];
|
|
54
|
+
const pairs = [...existing.paths.map((p, i) => [p, repos[i]]), [entry.path, alias]];
|
|
55
|
+
pairs.sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0);
|
|
56
|
+
existing.paths = pairs.map(([p]) => p);
|
|
57
|
+
existing.repos = pairs.map(([, a]) => a);
|
|
50
58
|
}
|
|
51
59
|
} else {
|
|
52
60
|
const { createdAt, lastAccessedAt } = inferTimestamps(entry.path);
|
|
@@ -55,6 +63,7 @@ async function hydrateHistoryFromDisk(config) {
|
|
|
55
63
|
isGroup: true,
|
|
56
64
|
branch: entry.branch,
|
|
57
65
|
paths: [entry.path],
|
|
66
|
+
repos: [alias],
|
|
58
67
|
createdAt,
|
|
59
68
|
lastAccessedAt
|
|
60
69
|
});
|
|
@@ -71,6 +80,7 @@ async function hydrateHistoryFromDisk(config) {
|
|
|
71
80
|
isGroup: false,
|
|
72
81
|
branch: entry.branch,
|
|
73
82
|
paths: [entry.path],
|
|
83
|
+
repos: [alias],
|
|
74
84
|
createdAt,
|
|
75
85
|
lastAccessedAt
|
|
76
86
|
});
|
|
@@ -81,6 +91,13 @@ async function hydrateHistoryFromDisk(config) {
|
|
|
81
91
|
const { added, updated } = await mergeHydratedSessions(sessions);
|
|
82
92
|
return { discovered: sessions.length, added, updated };
|
|
83
93
|
}
|
|
94
|
+
function folderSessionOwner(parts, repoPath, config, folderNameToAlias) {
|
|
95
|
+
if (parts.length !== 3) return void 0;
|
|
96
|
+
const [first, , repoFolder] = parts;
|
|
97
|
+
if (repoFolder.toLowerCase() !== path.basename(repoPath).toLowerCase()) return void 0;
|
|
98
|
+
if (Object.prototype.hasOwnProperty.call(config.repos, first)) return first;
|
|
99
|
+
return folderNameToAlias.get(first);
|
|
100
|
+
}
|
|
84
101
|
function inferTimestamps(p) {
|
|
85
102
|
try {
|
|
86
103
|
const stat = fs.statSync(p);
|
|
@@ -119,4 +136,4 @@ var hydrateCommand = {
|
|
|
119
136
|
export {
|
|
120
137
|
hydrateCommand
|
|
121
138
|
};
|
|
122
|
-
//# sourceMappingURL=hydrate-
|
|
139
|
+
//# sourceMappingURL=hydrate-YEJCVZZ7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/hydrate.ts","../src/core/sessions/hydrate.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { hydrateHistoryFromDisk } from '../core/sessions/hydrate.js';\n\nexport const hydrateCommand: CommandModule = {\n command: 'hydrate',\n describe: 'Scan worktreesRoot for existing worktrees and add untracked ones to history',\n builder: (yargs) => yargs,\n handler: async () => {\n const config = ensureConfig();\n const { discovered, added, updated } = await hydrateHistoryFromDisk(config);\n\n console.log('');\n console.log(chalk.cyan(`Discovered ${discovered} worktree(s) on disk.`));\n if (added > 0) {\n console.log(chalk.green(`Added ${added} new session(s) to history.`));\n }\n if (updated > 0) {\n console.log(chalk.yellow(`Updated paths for ${updated} session(s).`));\n }\n if (added === 0 && updated === 0) {\n console.log(chalk.gray('History already in sync with disk.'));\n }\n },\n};\n","import fs from 'node:fs';\nimport path from 'node:path';\nimport type { WorkConfig } from '../platform/config.js';\nimport { parseWorktreeList } from '../git/git.js';\nimport { type WorktreeSession, mergeHydratedSessions } from './history.js';\nimport { flatFolderOwner } from '../worktree/session-folder.js';\n\ninterface HydrateResult {\n discovered: number;\n added: number;\n updated: number;\n}\n\n/**\n * Scan configured repos for worktrees under worktreesRoot and seed history\n * with any that aren't already tracked. Used for recovery from a wiped\n * history.json and to adopt worktrees created outside work.\n */\nexport async function hydrateHistoryFromDisk(config: WorkConfig): Promise<HydrateResult> {\n const worktreesRoot = path.resolve(config.worktreesRoot);\n const folderNameToAlias = new Map<string, string>();\n for (const [alias, repoPath] of Object.entries(config.repos)) {\n folderNameToAlias.set(path.basename(repoPath), alias);\n }\n\n // Key: `${target}:${branch}`\n const discovered = new Map<string, WorktreeSession>();\n\n for (const [alias, repoPath] of Object.entries(config.repos)) {\n if (!fs.existsSync(repoPath)) continue;\n\n for (const entry of parseWorktreeList(repoPath)) {\n if (!entry.branch) continue;\n if (path.resolve(entry.path) === path.resolve(repoPath)) continue;\n\n const rel = path.relative(worktreesRoot, entry.path);\n if (!rel || rel.startsWith('..') || path.isAbsolute(rel)) continue;\n\n const parts = rel.split(path.sep).filter(Boolean);\n if (parts.length < 2) continue;\n\n const [first, second] = parts;\n const isGroup = Object.prototype.hasOwnProperty.call(config.groups, first);\n // A session folder of a repo (config `sessionFolders`): `<root>/<alias>/<branch>/<repo-folder>`\n // — exactly that deep, `<alias>` a repo's alias (or its folder's name), the last part this repo's folder.\n const folderOwner = isGroup ? undefined : folderSessionOwner(parts, repoPath, config, folderNameToAlias);\n // A flat session folder (`sessionFolders`): `<root>/<branch>-<id6>/<repo-folder>`, its project\n // found by the id (the one whose session of this branch has this folder's name).\n const flatOwner =\n !isGroup && !folderOwner && parts.length === 2 && second.toLowerCase() === path.basename(repoPath).toLowerCase()\n ? flatFolderOwner(first, entry.branch, config)\n : undefined;\n\n if (isGroup || folderOwner || flatOwner) {\n const groupName = flatOwner ?? folderOwner ?? first;\n const key = `${groupName}:${entry.branch}`;\n const existing = discovered.get(key);\n if (existing) {\n if (!existing.paths.includes(entry.path)) {\n // Sorted by path (as before), each folder keeping its repo beside it.\n const repos = existing.repos ?? [];\n const pairs = [...existing.paths.map((p, i): [string, string] => [p, repos[i]]), [entry.path, alias] as [string, string]];\n pairs.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0));\n existing.paths = pairs.map(([p]) => p);\n existing.repos = pairs.map(([, a]) => a);\n }\n } else {\n const { createdAt, lastAccessedAt } = inferTimestamps(entry.path);\n discovered.set(key, {\n target: groupName,\n isGroup: true,\n branch: entry.branch,\n paths: [entry.path],\n repos: [alias],\n createdAt,\n lastAccessedAt,\n });\n }\n // silence unused warning for `second` — branch-dir segment isn't needed\n void second;\n } else {\n // Single-repo worktree. `first` must be the repo's folder name.\n const aliasFromFolder = folderNameToAlias.get(first);\n if (aliasFromFolder !== alias) continue;\n\n const key = `${alias}:${entry.branch}`;\n if (discovered.has(key)) continue;\n const { createdAt, lastAccessedAt } = inferTimestamps(entry.path);\n discovered.set(key, {\n target: alias,\n isGroup: false,\n branch: entry.branch,\n paths: [entry.path],\n repos: [alias],\n createdAt,\n lastAccessedAt,\n });\n }\n }\n }\n\n const sessions = [...discovered.values()];\n const { added, updated } = await mergeHydratedSessions(sessions);\n return { discovered: sessions.length, added, updated };\n}\n\n/** The repo alias a session folder's worktree belongs to (its target), or undefined when the path isn't one. */\nfunction folderSessionOwner(\n parts: string[],\n repoPath: string,\n config: WorkConfig,\n folderNameToAlias: Map<string, string>,\n): string | undefined {\n if (parts.length !== 3) return undefined;\n const [first, , repoFolder] = parts;\n if (repoFolder.toLowerCase() !== path.basename(repoPath).toLowerCase()) return undefined;\n if (Object.prototype.hasOwnProperty.call(config.repos, first)) return first;\n return folderNameToAlias.get(first);\n}\n\nfunction inferTimestamps(p: string): {\n createdAt: string;\n lastAccessedAt: string;\n} {\n try {\n const stat = fs.statSync(p);\n const created = stat.birthtime.getTime() > 0 ? stat.birthtime : stat.mtime;\n return {\n createdAt: created.toISOString(),\n lastAccessedAt: stat.mtime.toISOString(),\n };\n } catch {\n const now = new Date().toISOString();\n return { createdAt: now, lastAccessedAt: now };\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;;;ACAlB,OAAO,QAAQ;AACf,OAAO,UAAU;AAiBjB,eAAsB,uBAAuB,QAA4C;AACvF,QAAM,gBAAgB,KAAK,QAAQ,OAAO,aAAa;AACvD,QAAM,oBAAoB,oBAAI,IAAoB;AAClD,aAAW,CAAC,OAAO,QAAQ,KAAK,OAAO,QAAQ,OAAO,KAAK,GAAG;AAC5D,sBAAkB,IAAI,KAAK,SAAS,QAAQ,GAAG,KAAK;AAAA,EACtD;AAGA,QAAM,aAAa,oBAAI,IAA6B;AAEpD,aAAW,CAAC,OAAO,QAAQ,KAAK,OAAO,QAAQ,OAAO,KAAK,GAAG;AAC5D,QAAI,CAAC,GAAG,WAAW,QAAQ,EAAG;AAE9B,eAAW,SAAS,kBAAkB,QAAQ,GAAG;AAC/C,UAAI,CAAC,MAAM,OAAQ;AACnB,UAAI,K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B;AACA,MAAI;AACF,UAAM,OAAO,GAAG,SAAS,CAAC;AAC1B,UAAM,UAAU,KAAK,UAAU,QAAQ,IAAI,IAAI,KAAK,YAAY,KAAK;AACrE,WAAO;AAAA,MACL,WAAW,QAAQ,YAAY;AAAA,MAC/B,gBAAgB,KAAK,MAAM,YAAY;AAAA,IACzC;AAAA,EACF,QAAQ;AACN,UAAM,OAAM,oBAAI,KAAK,GAAE,YAAY;AACnC,WAAO,EAAE,WAAW,KAAK,gBAAgB,IAAI;AAAA,EAC/C;AACF;;;ADlIO,IAAM,iBAAgC;AAAA,EAC3C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UAAU;AAAA,EACpB,SAAS,YAAY;AACnB,UAAM,SAAS,aAAa;AAC5B,UAAM,EAAE,YAAY,OAAO,QAAQ,IAAI,MAAM,uBAAuB,MAAM;AAE1E,YAAQ,IAAI,EAAE;AACd,YAAQ,IAAI,MAAM,KAAK,cAAc,UAAU,uBAAuB,CAAC;AACvE,QAAI,QAAQ,GAAG;AACb,cAAQ,IAAI,MAAM,MAAM,SAAS,KAAK,6BAA6B,CAAC;AAAA,IACtE;AACA,QAAI,UAAU,GAAG;AACf,cAAQ,IAAI,MAAM,OAAO,qBAAqB,OAAO,cAAc,CAAC;AAAA,IACtE;AACA,QAAI,UAAU,KAAK,YAAY,GAAG;AAChC,cAAQ,IAAI,MAAM,KAAK,oCAAoC,CAAC;AAAA,IAC9D;AAAA,EACF;AACF;","names":[]}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_COPY_FILES,
|
|
9
9
|
suggestFolders
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3Q6S6TRY.js";
|
|
11
11
|
import {
|
|
12
12
|
enrollProblem,
|
|
13
13
|
scanForRepos,
|
|
@@ -20,21 +20,21 @@ import "./chunk-5WM24P5N.js";
|
|
|
20
20
|
import "./chunk-3GIH4WTA.js";
|
|
21
21
|
import {
|
|
22
22
|
isGitRepo
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-AKGDIBSE.js";
|
|
24
|
+
import "./chunk-RFQRVXFQ.js";
|
|
25
25
|
import {
|
|
26
26
|
KNOWN_TOOLS
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JCMGIW7G.js";
|
|
28
28
|
import "./chunk-RCYI7SRA.js";
|
|
29
29
|
import "./chunk-NEJVK5CF.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-FXHTSSV2.js";
|
|
31
|
+
import "./chunk-S4ILKUFN.js";
|
|
32
|
+
import "./chunk-FRCV6NWT.js";
|
|
33
33
|
import {
|
|
34
34
|
getConfigPath,
|
|
35
35
|
loadConfig,
|
|
36
36
|
saveConfig
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-A53IRCOO.js";
|
|
38
38
|
|
|
39
39
|
// src/commands/init.ts
|
|
40
40
|
import path from "path";
|
|
@@ -193,4 +193,4 @@ var initCommand = {
|
|
|
193
193
|
export {
|
|
194
194
|
initCommand
|
|
195
195
|
};
|
|
196
|
-
//# sourceMappingURL=init-
|
|
196
|
+
//# sourceMappingURL=init-6F67TVM7.js.map
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
installSkillsCommand,
|
|
4
4
|
runInstallSkills
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BURVDS7U.js";
|
|
6
6
|
import "./chunk-LNHSBM4L.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-JCMGIW7G.js";
|
|
8
8
|
import "./chunk-RCYI7SRA.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-A53IRCOO.js";
|
|
10
10
|
export {
|
|
11
11
|
installSkillsCommand,
|
|
12
12
|
runInstallSkills
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=install-skills-
|
|
14
|
+
//# sourceMappingURL=install-skills-ESCNSPBY.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runInstallSkills
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BURVDS7U.js";
|
|
5
5
|
import "./chunk-LNHSBM4L.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-JCMGIW7G.js";
|
|
7
7
|
import "./chunk-RCYI7SRA.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-A53IRCOO.js";
|
|
9
9
|
|
|
10
10
|
// src/install-skills-bin.ts
|
|
11
11
|
await runInstallSkills();
|
|
@@ -2,16 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getAllTargetNames,
|
|
4
4
|
resolveProjectTarget
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-R2SR3PER.js";
|
|
6
6
|
import {
|
|
7
7
|
getCurrentBranch,
|
|
8
8
|
parseWorktreeList
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AKGDIBSE.js";
|
|
10
|
+
import {
|
|
11
|
+
loadHistory
|
|
12
|
+
} from "./chunk-RFQRVXFQ.js";
|
|
13
|
+
import "./chunk-JCMGIW7G.js";
|
|
10
14
|
import "./chunk-RCYI7SRA.js";
|
|
11
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-NEJVK5CF.js";
|
|
16
|
+
import "./chunk-FXHTSSV2.js";
|
|
17
|
+
import "./chunk-S4ILKUFN.js";
|
|
18
|
+
import "./chunk-FRCV6NWT.js";
|
|
12
19
|
import {
|
|
13
20
|
ensureConfig
|
|
14
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-A53IRCOO.js";
|
|
15
22
|
|
|
16
23
|
// src/commands/list.ts
|
|
17
24
|
import fs from "fs";
|
|
@@ -72,19 +79,27 @@ var listCommand = {
|
|
|
72
79
|
console.log("");
|
|
73
80
|
}
|
|
74
81
|
}
|
|
82
|
+
const sessions = showGroups.length ? loadHistory() : [];
|
|
75
83
|
for (const groupName of showGroups) {
|
|
76
84
|
const groupDir = path.join(worktreesRoot, groupName);
|
|
77
|
-
|
|
78
|
-
let branchDirs;
|
|
85
|
+
const flat = flatGroupSessions(groupName, groupDir, sessions).filter((f) => fs.existsSync(f.folder));
|
|
86
|
+
let branchDirs = [];
|
|
79
87
|
try {
|
|
80
|
-
|
|
88
|
+
if (fs.existsSync(groupDir))
|
|
89
|
+
branchDirs = fs.readdirSync(groupDir, { withFileTypes: true }).filter((d) => d.isDirectory()).map((d) => d.name);
|
|
81
90
|
} catch {
|
|
82
|
-
|
|
91
|
+
branchDirs = [];
|
|
83
92
|
}
|
|
84
|
-
if (branchDirs.length === 0) continue;
|
|
93
|
+
if (branchDirs.length === 0 && flat.length === 0) continue;
|
|
85
94
|
foundAny = true;
|
|
86
|
-
const
|
|
87
|
-
|
|
95
|
+
const count = branchDirs.length + flat.length;
|
|
96
|
+
const plural = count !== 1 ? "s" : "";
|
|
97
|
+
console.log(chalk.magenta(`${groupName} [group] (${count} worktree${plural}):`));
|
|
98
|
+
for (const f of flat) {
|
|
99
|
+
console.log(` ${f.branch}`);
|
|
100
|
+
console.log(chalk.gray(` ${f.folder}`));
|
|
101
|
+
if (f.repos.length) console.log(chalk.gray(` Repos: ${f.repos.join(", ")}`));
|
|
102
|
+
}
|
|
88
103
|
const repoAliases = config.groups[groupName] ?? [];
|
|
89
104
|
for (const bdName of branchDirs) {
|
|
90
105
|
const bdPath = path.join(groupDir, bdName);
|
|
@@ -120,7 +135,12 @@ var listCommand = {
|
|
|
120
135
|
}
|
|
121
136
|
}
|
|
122
137
|
};
|
|
138
|
+
function flatGroupSessions(groupName, groupDir, sessions) {
|
|
139
|
+
const under = (p) => path.resolve(p).toLowerCase().startsWith(path.resolve(groupDir).toLowerCase() + path.sep);
|
|
140
|
+
return sessions.filter((s) => s.target === groupName && s.isGroup && !s.archivedAt && s.paths[0] && !under(s.paths[0])).map((s) => ({ branch: s.branch, folder: path.dirname(s.paths[0]), repos: s.repos ?? [] }));
|
|
141
|
+
}
|
|
123
142
|
export {
|
|
143
|
+
flatGroupSessions,
|
|
124
144
|
listCommand
|
|
125
145
|
};
|
|
126
|
-
//# sourceMappingURL=list-
|
|
146
|
+
//# sourceMappingURL=list-NHZUEVTA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/list.ts"],"sourcesContent":["import fs from 'node:fs';\nimport path from 'node:path';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { parseWorktreeList, getCurrentBranch } from '../core/git/git.js';\nimport { resolveProjectTarget, getAllTargetNames } from '../core/worktree/resolve.js';\nimport { loadHistory, type WorktreeSession } from '../core/sessions/history.js';\n\nexport const listCommand: CommandModule = {\n command: 'list [target]',\n describe: 'List worktrees',\n builder: (yargs) =>\n yargs.positional('target', {\n describe: 'Project alias or group name (omit to list all)',\n type: 'string',\n }),\n handler: (argv) => {\n const targetName = argv.target as string | undefined;\n\n const config = ensureConfig();\n const worktreesRoot = config.worktreesRoot;\n\n console.log('');\n console.log(chalk.cyan('Worktrees'));\n console.log(chalk.cyan('========='));\n console.log('');\n\n let showRepos: string[] = [];\n let showGroups: string[] = [];\n\n if (targetName) {\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 process.exitCode = 1;\n return;\n }\n if (target.isGroup) {\n showGroups = [targetName];\n } else {\n showRepos = [targetName];\n }\n } else {\n showRepos = Object.keys(config.repos);\n showGroups = Object.keys(config.groups);\n }\n\n let foundAny = false;\n\n // Show per-repo worktrees\n for (const proj of showRepos) {\n const repoPath = config.repos[proj];\n\n if (!fs.existsSync(repoPath)) {\n console.log(chalk.red(`${proj} -> Repository path not found: ${repoPath}`));\n continue;\n }\n\n const worktreeList = parseWorktreeList(repoPath).filter((wt) => wt.path !== repoPath);\n\n if (worktreeList.length > 0) {\n foundAny = true;\n const plural = worktreeList.length !== 1 ? 's' : '';\n console.log(chalk.green(`${proj} (${worktreeList.length} worktree${plural}):`));\n\n for (const wt of worktreeList) {\n const branchDisplay = wt.branch || `detached at ${wt.head}`;\n console.log(` ${branchDisplay}`);\n console.log(chalk.gray(` ${wt.path}`));\n }\n console.log('');\n }\n }\n\n // Show group worktrees\n const sessions = showGroups.length ? loadHistory() : [];\n for (const groupName of showGroups) {\n const groupDir = path.join(worktreesRoot, groupName);\n // Its sessions in a flat session folder (`sessionFolders`), which isn't under the group's folder.\n const flat = flatGroupSessions(groupName, groupDir, sessions).filter((f) => fs.existsSync(f.folder));\n\n let branchDirs: string[] = [];\n try {\n if (fs.existsSync(groupDir))\n branchDirs = fs\n .readdirSync(groupDir, { withFileTypes: true })\n .filter((d) => d.isDirectory())\n .map((d) => d.name);\n } catch {\n branchDirs = [];\n }\n\n if (branchDirs.length === 0 && flat.length === 0) continue;\n\n foundAny = true;\n const count = branchDirs.length + flat.length;\n const plural = count !== 1 ? 's' : '';\n console.log(chalk.magenta(`${groupName} [group] (${count} worktree${plural}):`));\n for (const f of flat) {\n console.log(` ${f.branch}`);\n console.log(chalk.gray(` ${f.folder}`));\n if (f.repos.length) console.log(chalk.gray(` Repos: ${f.repos.join(', ')}`));\n }\n\n const repoAliases = config.groups[groupName] ?? [];\n\n for (const bdName of branchDirs) {\n const bdPath = path.join(groupDir, bdName);\n\n // Determine the actual branch name from the first sub-worktree\n let actualBranch: string | null = null;\n for (const alias of repoAliases) {\n const repoPath = config.repos[alias];\n if (!repoPath) continue;\n const rdPath = path.join(bdPath, path.basename(repoPath));\n if (fs.existsSync(rdPath)) {\n const branch = getCurrentBranch(rdPath);\n if (branch) {\n actualBranch = branch;\n break;\n }\n }\n }\n\n const displayBranch = actualBranch || bdName;\n console.log(` ${displayBranch}`);\n console.log(chalk.gray(` ${bdPath}`));\n if (repoAliases.length > 0) {\n console.log(chalk.gray(` Repos: ${repoAliases.join(', ')}`));\n }\n }\n console.log('');\n }\n\n if (!foundAny) {\n if (targetName) {\n console.log(chalk.yellow(`No worktrees found for: ${targetName}`));\n } else {\n console.log(chalk.yellow('No worktrees found for any project or group'));\n }\n console.log('');\n }\n },\n};\n\n/**\n * A group's live sessions whose folder isn't under `<root>/<group>/` (a flat\n * session folder, `sessionFolders`): their branch, folder and own repos. Pure.\n */\nexport function flatGroupSessions(\n groupName: string,\n groupDir: string,\n sessions: WorktreeSession[],\n): Array<{ branch: string; folder: string; repos: string[] }> {\n const under = (p: string) =>\n path\n .resolve(p)\n .toLowerCase()\n .startsWith(path.resolve(groupDir).toLowerCase() + path.sep);\n return sessions\n .filter((s) => s.target === groupName && s.isGroup && !s.archivedAt && s.paths[0] && !under(s.paths[0]))\n .map((s) => ({ branch: s.branch, folder: path.dirname(s.paths[0]), repos: s.repos ?? [] }));\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AACf,OAAO,UAAU;AACjB,OAAO,WAAW;AAOX,IAAM,cAA6B;AAAA,EACxC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MAAM,WAAW,UAAU;AAAA,IACzB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC;AAAA,EACH,SAAS,CAAC,SAAS;AACjB,UAAM,aAAa,KAAK;AAExB,UAAM,SAAS,aAAa;AAC5B,UAAM,gBAAgB,OAAO;AAE7B,YAAQ,IAAI,EAAE;AACd,YAAQ,IAAI,MAAM,KAAK,WAAW,CAAC;AACnC,YAAQ,IAAI,MAAM,KAAK,WAAW,CAAC;AACnC,YAAQ,IAAI,EAAE;AAEd,QAAI,YAAsB,CAAC;AAC3B,QAAI,aAAuB,CAAC;AAE5B,QAAI,YAAY;AACd,YAAM,SAAS,qBAAqB,YAAY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