@moberg_hr/work-tree 2.23.0 → 2.23.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-FKQZQP3W.js → account-6ZQ3VFA2.js} +23 -21
- package/dist/{account-FKQZQP3W.js.map → account-6ZQ3VFA2.js.map} +1 -1
- package/dist/{add-repo-VJ2OPGRB.js → add-repo-WXDEKZRX.js} +13 -13
- package/dist/{answer-HQGVCGOF.js → answer-L55DWMR5.js} +11 -11
- package/dist/{attach-M46SZYRL.js → attach-KLVI7BHS.js} +16 -16
- package/dist/bin.js +4 -4
- package/dist/{block-B2WNCH52.js → block-BRNRP226.js} +12 -12
- package/dist/{broadcast-JD755S3I.js → broadcast-GQE7H3MF.js} +8 -8
- package/dist/{catchup-PTV2VTWT.js → catchup-ZMG4OWF2.js} +13 -13
- package/dist/{child-XFLJLJ6I.js → child-MPXXJ2QX.js} +11 -11
- package/dist/{chunk-ZIZ5ZTEN.js → chunk-2JLG65GB.js} +2 -2
- package/dist/{chunk-BTGPUOF7.js → chunk-6S3DYLGH.js} +5 -5
- package/dist/{chunk-26BZGPFZ.js → chunk-773UJC5C.js} +4 -4
- package/dist/{chunk-FEI73IPX.js → chunk-7BH2PUYY.js} +5 -5
- package/dist/{chunk-R7IENU76.js → chunk-7HQSILMM.js} +4 -4
- package/dist/{chunk-W4GDPHIF.js → chunk-7ZATXG5F.js} +2 -2
- package/dist/{chunk-V6FD76AQ.js → chunk-A53OR6P5.js} +4 -4
- package/dist/{chunk-UGDTSOPX.js → chunk-APHVSSLI.js} +2 -2
- package/dist/{chunk-HTV7366A.js → chunk-BBI4YQTS.js} +8 -8
- package/dist/{chunk-ETRKZHM5.js → chunk-BGQ6NUU7.js} +4 -4
- package/dist/{chunk-KUYEYPO4.js → chunk-BMPTUIP4.js} +2 -2
- package/dist/{chunk-AZF7HIDT.js → chunk-BZOYUBK4.js} +3 -3
- package/dist/{chunk-4FOC35LW.js → chunk-C5BBVVHW.js} +2 -2
- package/dist/{chunk-EJZMCAM2.js → chunk-CRAGAIOS.js} +7 -7
- package/dist/{chunk-AEH72XTU.js → chunk-DK3UMOX7.js} +2 -2
- package/dist/{chunk-6RFDASKQ.js → chunk-DNC2ZJOF.js} +4 -4
- package/dist/chunk-DYKA3LO3.js +9 -0
- package/dist/{chunk-ASGJ3MCL.js → chunk-ETWP7MDS.js} +2 -1
- package/dist/chunk-ETWP7MDS.js.map +1 -0
- package/dist/{chunk-R7JIKEIL.js → chunk-G4VKMMIC.js} +10 -10
- package/dist/{chunk-AUIHERJ7.js → chunk-GF7RAQFD.js} +2 -2
- package/dist/{chunk-L5U47Q63.js → chunk-HBYXSFLN.js} +5 -5
- package/dist/{chunk-5THKIWZU.js → chunk-HO5KESIB.js} +3 -3
- package/dist/{chunk-V56WW2LA.js → chunk-HUGHF45U.js} +3 -3
- package/dist/{chunk-TVIM5VV5.js → chunk-IUVMVNIO.js} +5 -5
- package/dist/chunk-JVOQSU6R.js +151 -0
- package/dist/chunk-JVOQSU6R.js.map +1 -0
- package/dist/{chunk-6ISLCEBR.js → chunk-K6FD5WDW.js} +5 -5
- package/dist/{chunk-4LZLVHZE.js → chunk-KJAE7WO5.js} +22 -11
- package/dist/chunk-KJAE7WO5.js.map +1 -0
- package/dist/{chunk-WYCGV5Z7.js → chunk-KWJ6S4NZ.js} +4 -4
- package/dist/{chunk-SZAD5U3J.js → chunk-LB2GAU7E.js} +2 -2
- package/dist/{chunk-WLYWO6JH.js → chunk-LCYYJFSZ.js} +4 -4
- package/dist/{chunk-DP6YMZUL.js → chunk-LOFGDH5B.js} +17 -7
- package/dist/chunk-LOFGDH5B.js.map +1 -0
- package/dist/{chunk-Z3JSYKOS.js → chunk-LW6VCL6S.js} +6 -6
- package/dist/{chunk-PCJVBGRS.js → chunk-M2P722BR.js} +3 -3
- package/dist/{chunk-VHENFC2S.js → chunk-M2X6OHHR.js} +14 -1
- package/dist/chunk-M2X6OHHR.js.map +1 -0
- package/dist/{chunk-DSDPJATB.js → chunk-MMEFW2PI.js} +3 -3
- package/dist/{chunk-4GIAERRK.js → chunk-MYASALCU.js} +5 -5
- package/dist/{chunk-DHZ5DF6Y.js → chunk-MYXEX6BB.js} +2 -1
- package/dist/{chunk-7I2UHJJF.js → chunk-NLU6MBYT.js} +10 -8
- package/dist/chunk-NLU6MBYT.js.map +1 -0
- package/dist/{chunk-ZDTFAMD2.js → chunk-NREZVTBP.js} +2 -2
- package/dist/{chunk-BS6GTKF2.js → chunk-NWKVTUTN.js} +9 -9
- package/dist/{chunk-4VTRRZWZ.js → chunk-P53UYZZ4.js} +2 -2
- package/dist/{chunk-6HVDHGNE.js → chunk-PSALWCBD.js} +3 -3
- package/dist/{chunk-O7BXNXU2.js → chunk-QAIG5FSQ.js} +3 -3
- package/dist/{chunk-ETO7CUIS.js → chunk-QMWV4UKB.js} +3 -3
- package/dist/{chunk-5IZMEAKN.js → chunk-QSSCVTFG.js} +4 -4
- package/dist/{chunk-LZJ5VDUD.js → chunk-RGKGJOES.js} +138 -7
- package/dist/chunk-RGKGJOES.js.map +1 -0
- package/dist/{chunk-OETBYJFV.js → chunk-SF3DIIKN.js} +3 -3
- package/dist/{chunk-EOXYDFBB.js → chunk-SUHANL3G.js} +4 -4
- package/dist/{chunk-FRFS6JC4.js → chunk-VNZBFVGY.js} +3 -3
- package/dist/{chunk-EEMPMVCP.js → chunk-VPZ5ILKT.js} +4 -4
- package/dist/{chunk-EE744F4B.js → chunk-VQEMPGJL.js} +2 -2
- package/dist/{chunk-ULI54QYZ.js → chunk-WH6DAD6D.js} +2 -2
- package/dist/{chunk-JIMD77FI.js → chunk-XB4SCJWD.js} +83 -21
- package/dist/chunk-XB4SCJWD.js.map +1 -0
- package/dist/{chunk-EVGYDJI2.js → chunk-XIN6XUFL.js} +2 -2
- package/dist/{chunk-XJQ7XJJC.js → chunk-XL4YNA3L.js} +4 -4
- package/dist/chunk-XL4YNA3L.js.map +1 -0
- package/dist/{chunk-K76NOSEX.js → chunk-XT3FON6A.js} +2 -2
- package/dist/{chunk-ZBVM57LO.js → chunk-XWUX474Q.js} +4 -150
- package/dist/chunk-XWUX474Q.js.map +1 -0
- package/dist/{chunk-QPQV3IU2.js → chunk-ZG6HB4BO.js} +2 -2
- package/dist/{chunk-336YLJ5L.js → chunk-ZHK5XOV5.js} +60 -60
- package/dist/{chunk-VVJY6IKW.js → chunk-ZPDCVDE2.js} +2 -2
- package/dist/{cleanup-RVQ2PPCC.js → cleanup-DRELB6UC.js} +29 -29
- package/dist/{cli-RQ7LQXRX.js → cli-C3U2BC44.js} +4 -4
- package/dist/{color-37SJ7NPH.js → color-T75ANAWG.js} +11 -11
- package/dist/{config-QMNCPBT7.js → config-KI6JOXKW.js} +10 -10
- package/dist/{coordinate-22N2UBE4.js → coordinate-4PPZN4U4.js} +11 -11
- package/dist/{diff-VSM47DNB.js → diff-NDZPRQV7.js} +12 -12
- package/dist/{digest-H5YMEW54.js → digest-H5YFX5WR.js} +11 -11
- package/dist/{fork-Q2AEFG5M.js → fork-HHHATXVI.js} +25 -25
- package/dist/{history-E34WUNZO.js → history-3Z7AS2AC.js} +8 -8
- package/dist/{hook-IMBHXXH2.js → hook-KOK7NKCO.js} +16 -16
- package/dist/{hydrate-IPNTSEDA.js → hydrate-VI3XSZQH.js} +8 -8
- package/dist/{init-V7Z3RVHQ.js → init-7NOKRHNJ.js} +12 -12
- package/dist/{install-skills-PP7WYASM.js → install-skills-TL5D7HZU.js} +8 -8
- package/dist/install-skills-bin.js +7 -7
- package/dist/{keep-JZBFDYC5.js → keep-G62GSDOQ.js} +10 -10
- package/dist/{list-D6GWBNUI.js → list-CEVAZQ4V.js} +8 -8
- package/dist/{move-T6IVLRRI.js → move-ISAW6RDM.js} +15 -15
- package/dist/{note-L4YF6DYN.js → note-YIVFXTGM.js} +10 -10
- package/dist/{overlaps-33U2T7IV.js → overlaps-YBEHBRRK.js} +13 -13
- package/dist/{pin-BVNCXHQI.js → pin-J4IDSHRG.js} +11 -11
- package/dist/{pr-DBTWVMRE.js → pr-Z7CPBBGT.js} +20 -20
- package/dist/{prune-HUYBTMZM.js → prune-UA3UDZSM.js} +26 -26
- package/dist/{pty-host-IJFDGRA4.js → pty-host-JIQUP62K.js} +63 -16
- package/dist/pty-host-JIQUP62K.js.map +1 -0
- package/dist/{read-4OUYRSKS.js → read-DG4PCLFH.js} +10 -10
- package/dist/{recent-PB233FPD.js → recent-PGD6QYAH.js} +14 -14
- package/dist/{remove-YCQLIDTS.js → remove-TPLA64HP.js} +27 -27
- package/dist/{report-XMESBL7C.js → report-K3OTT2ED.js} +11 -11
- package/dist/{restart-NQ5DJ3TN.js → restart-477IX2JX.js} +11 -11
- package/dist/{resume-KL5JCKVD.js → resume-OYBAJCYE.js} +14 -14
- package/dist/{review-MIKB545E.js → review-6PWFSBAO.js} +10 -10
- package/dist/{review-now-VF6X6M64.js → review-now-AT2SPPRO.js} +2 -2
- package/dist/{run-Y255ESUN.js → run-XEHF2N4A.js} +8 -8
- package/dist/{screen-AZFHPOCB.js → screen-SFU6TCDV.js} +11 -11
- package/dist/{search-DAFKJTLY.js → search-VJ3BGWPX.js} +8 -8
- package/dist/{section-WCC35C44.js → section-ZLINSTGS.js} +11 -11
- package/dist/{send-MYEMZU7Z.js → send-NBP2WYBG.js} +12 -12
- package/dist/{sessions-P3D46QLP.js → sessions-UT4I7A43.js} +23 -23
- package/dist/{show-JOO5OT2F.js → show-RK2EWOR6.js} +10 -10
- package/dist/{snooze-7KLABMIG.js → snooze-T2WWIKZN.js} +10 -10
- package/dist/{start-PGVZZJQT.js → start-AWHOIA3Q.js} +11 -11
- package/dist/{state-XHTOESKK.js → state-HK67C4UA.js} +2 -2
- package/dist/{status-CXIRNRMP.js → status-QE2DA6RR.js} +11 -11
- package/dist/{statusline-HPH2ORNT.js → statusline-Z5HLKDIA.js} +5 -5
- package/dist/{statusline-hook-Q645N4XF.js → statusline-hook-VPPS3PFO.js} +3 -3
- package/dist/{stop-IJNUSRIG.js → stop-YOU3P3ZR.js} +11 -11
- package/dist/{sync-3HMCC55V.js → sync-74EFTPBJ.js} +26 -26
- package/dist/{time-DUDNSHM3.js → time-ZGMZZ5OY.js} +11 -11
- package/dist/{time-actions-M4QTTH4M.js → time-actions-VAGRSY5B.js} +3 -3
- package/dist/{timesheet-BMKDX5KZ.js → timesheet-N74LPF5M.js} +18 -17
- package/dist/timesheet-N74LPF5M.js.map +1 -0
- package/dist/{todo-QMXJ5R3E.js → todo-UVKGOG7D.js} +2 -2
- package/dist/{tree-TL4GISI5.js → tree-FXTCWC6D.js} +26 -26
- package/dist/{update-3TODL7J3.js → update-5QSRHIWH.js} +15 -15
- package/dist/{usage-YFTN2IS7.js → usage-CW7CDFU3.js} +10 -10
- package/dist/{usage-ask-EZR3W3UW.js → usage-ask-V2SIRW4F.js} +3 -3
- package/dist/{version-LNHKXZBP.js → version-RJ4PCHPB.js} +5 -5
- package/dist/{wait-B37BTCVG.js → wait-XXC3I6DK.js} +11 -11
- package/dist/wd-bin.js +3 -3
- package/dist/web/assets/{PtyView-C8yW4SST.js → PtyView-BLTE5F3E.js} +26 -26
- package/dist/web/assets/PtyView-BLTE5F3E.js.map +1 -0
- package/dist/web/assets/{index-DDZCgbD-.js → index-BiadbzE6.js} +59 -59
- package/dist/web/assets/index-BiadbzE6.js.map +1 -0
- package/dist/web/assets/{index-yBTfBzDm.css → index-CfTmdABt.css} +1 -1
- package/dist/web/index.html +2 -2
- package/dist/{web-JAAXINIU.js → web-SUSR4IAK.js} +245 -97
- package/dist/web-SUSR4IAK.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/dist/chunk-4LZLVHZE.js.map +0 -1
- package/dist/chunk-7I2UHJJF.js.map +0 -1
- package/dist/chunk-ASGJ3MCL.js.map +0 -1
- package/dist/chunk-CJFAJV2K.js +0 -9
- package/dist/chunk-DP6YMZUL.js.map +0 -1
- package/dist/chunk-JIMD77FI.js.map +0 -1
- package/dist/chunk-LZJ5VDUD.js.map +0 -1
- package/dist/chunk-VHENFC2S.js.map +0 -1
- package/dist/chunk-XJQ7XJJC.js.map +0 -1
- package/dist/chunk-ZBVM57LO.js.map +0 -1
- package/dist/pty-host-IJFDGRA4.js.map +0 -1
- package/dist/timesheet-BMKDX5KZ.js.map +0 -1
- package/dist/web/assets/PtyView-C8yW4SST.js.map +0 -1
- package/dist/web/assets/index-DDZCgbD-.js.map +0 -1
- package/dist/web-JAAXINIU.js.map +0 -1
- /package/dist/{add-repo-VJ2OPGRB.js.map → add-repo-WXDEKZRX.js.map} +0 -0
- /package/dist/{answer-HQGVCGOF.js.map → answer-L55DWMR5.js.map} +0 -0
- /package/dist/{attach-M46SZYRL.js.map → attach-KLVI7BHS.js.map} +0 -0
- /package/dist/{block-B2WNCH52.js.map → block-BRNRP226.js.map} +0 -0
- /package/dist/{broadcast-JD755S3I.js.map → broadcast-GQE7H3MF.js.map} +0 -0
- /package/dist/{catchup-PTV2VTWT.js.map → catchup-ZMG4OWF2.js.map} +0 -0
- /package/dist/{child-XFLJLJ6I.js.map → child-MPXXJ2QX.js.map} +0 -0
- /package/dist/{chunk-ZIZ5ZTEN.js.map → chunk-2JLG65GB.js.map} +0 -0
- /package/dist/{chunk-BTGPUOF7.js.map → chunk-6S3DYLGH.js.map} +0 -0
- /package/dist/{chunk-26BZGPFZ.js.map → chunk-773UJC5C.js.map} +0 -0
- /package/dist/{chunk-FEI73IPX.js.map → chunk-7BH2PUYY.js.map} +0 -0
- /package/dist/{chunk-R7IENU76.js.map → chunk-7HQSILMM.js.map} +0 -0
- /package/dist/{chunk-W4GDPHIF.js.map → chunk-7ZATXG5F.js.map} +0 -0
- /package/dist/{chunk-V6FD76AQ.js.map → chunk-A53OR6P5.js.map} +0 -0
- /package/dist/{chunk-UGDTSOPX.js.map → chunk-APHVSSLI.js.map} +0 -0
- /package/dist/{chunk-HTV7366A.js.map → chunk-BBI4YQTS.js.map} +0 -0
- /package/dist/{chunk-ETRKZHM5.js.map → chunk-BGQ6NUU7.js.map} +0 -0
- /package/dist/{chunk-KUYEYPO4.js.map → chunk-BMPTUIP4.js.map} +0 -0
- /package/dist/{chunk-AZF7HIDT.js.map → chunk-BZOYUBK4.js.map} +0 -0
- /package/dist/{chunk-4FOC35LW.js.map → chunk-C5BBVVHW.js.map} +0 -0
- /package/dist/{chunk-EJZMCAM2.js.map → chunk-CRAGAIOS.js.map} +0 -0
- /package/dist/{chunk-AEH72XTU.js.map → chunk-DK3UMOX7.js.map} +0 -0
- /package/dist/{chunk-6RFDASKQ.js.map → chunk-DNC2ZJOF.js.map} +0 -0
- /package/dist/{chunk-CJFAJV2K.js.map → chunk-DYKA3LO3.js.map} +0 -0
- /package/dist/{chunk-R7JIKEIL.js.map → chunk-G4VKMMIC.js.map} +0 -0
- /package/dist/{chunk-AUIHERJ7.js.map → chunk-GF7RAQFD.js.map} +0 -0
- /package/dist/{chunk-L5U47Q63.js.map → chunk-HBYXSFLN.js.map} +0 -0
- /package/dist/{chunk-5THKIWZU.js.map → chunk-HO5KESIB.js.map} +0 -0
- /package/dist/{chunk-V56WW2LA.js.map → chunk-HUGHF45U.js.map} +0 -0
- /package/dist/{chunk-TVIM5VV5.js.map → chunk-IUVMVNIO.js.map} +0 -0
- /package/dist/{chunk-6ISLCEBR.js.map → chunk-K6FD5WDW.js.map} +0 -0
- /package/dist/{chunk-WYCGV5Z7.js.map → chunk-KWJ6S4NZ.js.map} +0 -0
- /package/dist/{chunk-SZAD5U3J.js.map → chunk-LB2GAU7E.js.map} +0 -0
- /package/dist/{chunk-WLYWO6JH.js.map → chunk-LCYYJFSZ.js.map} +0 -0
- /package/dist/{chunk-Z3JSYKOS.js.map → chunk-LW6VCL6S.js.map} +0 -0
- /package/dist/{chunk-PCJVBGRS.js.map → chunk-M2P722BR.js.map} +0 -0
- /package/dist/{chunk-DSDPJATB.js.map → chunk-MMEFW2PI.js.map} +0 -0
- /package/dist/{chunk-4GIAERRK.js.map → chunk-MYASALCU.js.map} +0 -0
- /package/dist/{chunk-DHZ5DF6Y.js.map → chunk-MYXEX6BB.js.map} +0 -0
- /package/dist/{chunk-ZDTFAMD2.js.map → chunk-NREZVTBP.js.map} +0 -0
- /package/dist/{chunk-BS6GTKF2.js.map → chunk-NWKVTUTN.js.map} +0 -0
- /package/dist/{chunk-4VTRRZWZ.js.map → chunk-P53UYZZ4.js.map} +0 -0
- /package/dist/{chunk-6HVDHGNE.js.map → chunk-PSALWCBD.js.map} +0 -0
- /package/dist/{chunk-O7BXNXU2.js.map → chunk-QAIG5FSQ.js.map} +0 -0
- /package/dist/{chunk-ETO7CUIS.js.map → chunk-QMWV4UKB.js.map} +0 -0
- /package/dist/{chunk-5IZMEAKN.js.map → chunk-QSSCVTFG.js.map} +0 -0
- /package/dist/{chunk-OETBYJFV.js.map → chunk-SF3DIIKN.js.map} +0 -0
- /package/dist/{chunk-EOXYDFBB.js.map → chunk-SUHANL3G.js.map} +0 -0
- /package/dist/{chunk-FRFS6JC4.js.map → chunk-VNZBFVGY.js.map} +0 -0
- /package/dist/{chunk-EEMPMVCP.js.map → chunk-VPZ5ILKT.js.map} +0 -0
- /package/dist/{chunk-EE744F4B.js.map → chunk-VQEMPGJL.js.map} +0 -0
- /package/dist/{chunk-ULI54QYZ.js.map → chunk-WH6DAD6D.js.map} +0 -0
- /package/dist/{chunk-EVGYDJI2.js.map → chunk-XIN6XUFL.js.map} +0 -0
- /package/dist/{chunk-K76NOSEX.js.map → chunk-XT3FON6A.js.map} +0 -0
- /package/dist/{chunk-QPQV3IU2.js.map → chunk-ZG6HB4BO.js.map} +0 -0
- /package/dist/{chunk-336YLJ5L.js.map → chunk-ZHK5XOV5.js.map} +0 -0
- /package/dist/{chunk-VVJY6IKW.js.map → chunk-ZPDCVDE2.js.map} +0 -0
- /package/dist/{cleanup-RVQ2PPCC.js.map → cleanup-DRELB6UC.js.map} +0 -0
- /package/dist/{cli-RQ7LQXRX.js.map → cli-C3U2BC44.js.map} +0 -0
- /package/dist/{color-37SJ7NPH.js.map → color-T75ANAWG.js.map} +0 -0
- /package/dist/{config-QMNCPBT7.js.map → config-KI6JOXKW.js.map} +0 -0
- /package/dist/{coordinate-22N2UBE4.js.map → coordinate-4PPZN4U4.js.map} +0 -0
- /package/dist/{diff-VSM47DNB.js.map → diff-NDZPRQV7.js.map} +0 -0
- /package/dist/{digest-H5YMEW54.js.map → digest-H5YFX5WR.js.map} +0 -0
- /package/dist/{fork-Q2AEFG5M.js.map → fork-HHHATXVI.js.map} +0 -0
- /package/dist/{history-E34WUNZO.js.map → history-3Z7AS2AC.js.map} +0 -0
- /package/dist/{hook-IMBHXXH2.js.map → hook-KOK7NKCO.js.map} +0 -0
- /package/dist/{hydrate-IPNTSEDA.js.map → hydrate-VI3XSZQH.js.map} +0 -0
- /package/dist/{init-V7Z3RVHQ.js.map → init-7NOKRHNJ.js.map} +0 -0
- /package/dist/{install-skills-PP7WYASM.js.map → install-skills-TL5D7HZU.js.map} +0 -0
- /package/dist/{keep-JZBFDYC5.js.map → keep-G62GSDOQ.js.map} +0 -0
- /package/dist/{list-D6GWBNUI.js.map → list-CEVAZQ4V.js.map} +0 -0
- /package/dist/{move-T6IVLRRI.js.map → move-ISAW6RDM.js.map} +0 -0
- /package/dist/{note-L4YF6DYN.js.map → note-YIVFXTGM.js.map} +0 -0
- /package/dist/{overlaps-33U2T7IV.js.map → overlaps-YBEHBRRK.js.map} +0 -0
- /package/dist/{pin-BVNCXHQI.js.map → pin-J4IDSHRG.js.map} +0 -0
- /package/dist/{pr-DBTWVMRE.js.map → pr-Z7CPBBGT.js.map} +0 -0
- /package/dist/{prune-HUYBTMZM.js.map → prune-UA3UDZSM.js.map} +0 -0
- /package/dist/{read-4OUYRSKS.js.map → read-DG4PCLFH.js.map} +0 -0
- /package/dist/{recent-PB233FPD.js.map → recent-PGD6QYAH.js.map} +0 -0
- /package/dist/{remove-YCQLIDTS.js.map → remove-TPLA64HP.js.map} +0 -0
- /package/dist/{report-XMESBL7C.js.map → report-K3OTT2ED.js.map} +0 -0
- /package/dist/{restart-NQ5DJ3TN.js.map → restart-477IX2JX.js.map} +0 -0
- /package/dist/{resume-KL5JCKVD.js.map → resume-OYBAJCYE.js.map} +0 -0
- /package/dist/{review-MIKB545E.js.map → review-6PWFSBAO.js.map} +0 -0
- /package/dist/{review-now-VF6X6M64.js.map → review-now-AT2SPPRO.js.map} +0 -0
- /package/dist/{run-Y255ESUN.js.map → run-XEHF2N4A.js.map} +0 -0
- /package/dist/{screen-AZFHPOCB.js.map → screen-SFU6TCDV.js.map} +0 -0
- /package/dist/{search-DAFKJTLY.js.map → search-VJ3BGWPX.js.map} +0 -0
- /package/dist/{section-WCC35C44.js.map → section-ZLINSTGS.js.map} +0 -0
- /package/dist/{send-MYEMZU7Z.js.map → send-NBP2WYBG.js.map} +0 -0
- /package/dist/{sessions-P3D46QLP.js.map → sessions-UT4I7A43.js.map} +0 -0
- /package/dist/{show-JOO5OT2F.js.map → show-RK2EWOR6.js.map} +0 -0
- /package/dist/{snooze-7KLABMIG.js.map → snooze-T2WWIKZN.js.map} +0 -0
- /package/dist/{start-PGVZZJQT.js.map → start-AWHOIA3Q.js.map} +0 -0
- /package/dist/{state-XHTOESKK.js.map → state-HK67C4UA.js.map} +0 -0
- /package/dist/{status-CXIRNRMP.js.map → status-QE2DA6RR.js.map} +0 -0
- /package/dist/{statusline-HPH2ORNT.js.map → statusline-Z5HLKDIA.js.map} +0 -0
- /package/dist/{statusline-hook-Q645N4XF.js.map → statusline-hook-VPPS3PFO.js.map} +0 -0
- /package/dist/{stop-IJNUSRIG.js.map → stop-YOU3P3ZR.js.map} +0 -0
- /package/dist/{sync-3HMCC55V.js.map → sync-74EFTPBJ.js.map} +0 -0
- /package/dist/{time-DUDNSHM3.js.map → time-ZGMZZ5OY.js.map} +0 -0
- /package/dist/{time-actions-M4QTTH4M.js.map → time-actions-VAGRSY5B.js.map} +0 -0
- /package/dist/{todo-QMXJ5R3E.js.map → todo-UVKGOG7D.js.map} +0 -0
- /package/dist/{tree-TL4GISI5.js.map → tree-FXTCWC6D.js.map} +0 -0
- /package/dist/{update-3TODL7J3.js.map → update-5QSRHIWH.js.map} +0 -0
- /package/dist/{usage-YFTN2IS7.js.map → usage-CW7CDFU3.js.map} +0 -0
- /package/dist/{usage-ask-EZR3W3UW.js.map → usage-ask-V2SIRW4F.js.map} +0 -0
- /package/dist/{version-LNHKXZBP.js.map → version-RJ4PCHPB.js.map} +0 -0
- /package/dist/{wait-B37BTCVG.js.map → wait-XXC3I6DK.js.map} +0 -0
|
@@ -2,43 +2,45 @@
|
|
|
2
2
|
import {
|
|
3
3
|
accountOverview,
|
|
4
4
|
addAgentAccount,
|
|
5
|
-
createAccountSwitcher,
|
|
6
5
|
defaultAccountSwitchDeps,
|
|
7
6
|
removeAgentAccount,
|
|
8
7
|
setDefaultAgentAccount
|
|
9
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JVOQSU6R.js";
|
|
9
|
+
import {
|
|
10
|
+
createAccountSwitcher
|
|
11
|
+
} from "./chunk-XWUX474Q.js";
|
|
10
12
|
import {
|
|
11
13
|
ageText,
|
|
12
14
|
agedWindow,
|
|
13
15
|
usageText
|
|
14
16
|
} from "./chunk-LK7HJGUC.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-7HQSILMM.js";
|
|
18
|
+
import "./chunk-M2P722BR.js";
|
|
17
19
|
import {
|
|
18
20
|
listHostPtys
|
|
19
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-BBI4YQTS.js";
|
|
20
22
|
import "./chunk-BCYBF7KJ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-NREZVTBP.js";
|
|
24
|
+
import "./chunk-C5BBVVHW.js";
|
|
23
25
|
import "./chunk-HCYES6U7.js";
|
|
24
26
|
import "./chunk-NS7WH53I.js";
|
|
25
27
|
import {
|
|
26
28
|
sessionFromArgs
|
|
27
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-BGQ6NUU7.js";
|
|
28
30
|
import "./chunk-6AQRYLOB.js";
|
|
29
31
|
import "./chunk-SJBEIYLK.js";
|
|
30
|
-
import "./chunk-
|
|
31
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-XT3FON6A.js";
|
|
33
|
+
import "./chunk-MYXEX6BB.js";
|
|
32
34
|
import "./chunk-7E5XPDKX.js";
|
|
33
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-DK3UMOX7.js";
|
|
34
36
|
import {
|
|
35
37
|
callWorkWeb
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-LB2GAU7E.js";
|
|
39
|
+
import "./chunk-LOFGDH5B.js";
|
|
38
40
|
import "./chunk-ZSHWP2VS.js";
|
|
39
41
|
import "./chunk-UPS7NHKI.js";
|
|
40
42
|
import "./chunk-HUXS3VAI.js";
|
|
41
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-XL4YNA3L.js";
|
|
42
44
|
import "./chunk-NEJVK5CF.js";
|
|
43
45
|
import {
|
|
44
46
|
sessionIdFor
|
|
@@ -46,20 +48,20 @@ import {
|
|
|
46
48
|
import {
|
|
47
49
|
AccountAdminError,
|
|
48
50
|
agentFor
|
|
49
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-NWKVTUTN.js";
|
|
50
52
|
import "./chunk-KGHWHAVF.js";
|
|
51
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-BMPTUIP4.js";
|
|
52
54
|
import "./chunk-ED6YLB4S.js";
|
|
53
55
|
import "./chunk-Z6ACV5ZQ.js";
|
|
54
56
|
import "./chunk-JUGF3YE7.js";
|
|
55
57
|
import "./chunk-HK6AZQ5Z.js";
|
|
56
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-XIN6XUFL.js";
|
|
57
59
|
import {
|
|
58
60
|
loadConfig
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-ETWP7MDS.js";
|
|
62
|
+
import "./chunk-7ZATXG5F.js";
|
|
61
63
|
import "./chunk-BR6OWWAA.js";
|
|
62
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-M2X6OHHR.js";
|
|
63
65
|
import "./chunk-QOSAWNOU.js";
|
|
64
66
|
import "./chunk-D2J3AD6L.js";
|
|
65
67
|
import "./chunk-5ZCCUM75.js";
|
|
@@ -290,4 +292,4 @@ export {
|
|
|
290
292
|
ageText,
|
|
291
293
|
usageText
|
|
292
294
|
};
|
|
293
|
-
//# sourceMappingURL=account-
|
|
295
|
+
//# sourceMappingURL=account-6ZQ3VFA2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/account.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { AccountAdminError, agentFor, type AgentAccounts } from '../core/agents/index.js';\nimport { loadConfig } from '../core/platform/config.js';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { createAccountSwitcher } from '../core/sessions/account-switch.js';\nimport { defaultAccountSwitchDeps } from '../core/sessions/account-switch-deps.js';\nimport { removeAgentAccount } from '../core/sessions/account-users.js';\nimport { accountOverview, addAgentAccount, setDefaultAgentAccount } from '../core/sessions/account-admin.js';\nimport { listHostPtys } from '../core/pty/pty-pool.js';\nimport { agedWindow, usageText } from '../core/usage/usage.js';\nimport type { AccountSwitchAllWire, AccountSwitchWire } from '../core/api-types.js';\nimport { sessionFromArgs } from './shared/session-arg.js';\n\n/**\n * `work account` — the accounts (logins) of the configured agent (Claude Code: each a config folder,\n * `CLAUDE_CONFIG_DIR`), so a second login can take over when the first one's limit runs out. add / list / default /\n * remove, and switch: move a session to another account (`work account switch [target] [branch] --to <name>`). Every\n * piece of it goes through the agent's adapter (its `accounts` part): nothing here knows Claude.\n */\n\nfunction fail(message: string): void {\n console.error(chalk.red(message));\n process.exitCode = 1;\n}\n\n/** The configured agent's accounts part, or null (said) when it has none. */\nfunction accountsOrFail(): { name: string; accounts: AgentAccounts } | null {\n const agent = agentFor(loadConfig());\n if (agent.accounts) return { name: agent.name, accounts: agent.accounts };\n fail(`${agent.name} has no accounts work knows about`);\n return null;\n}\n\n// The usage line is core's (the dashboard's Accounts page says the same); kept exported here for older callers.\nexport { ageText, usageText } from '../core/usage/usage.js';\n\nfunction list(json: boolean): void {\n const found = accountsOrFail();\n if (!found) return;\n const { accounts } = found;\n const now = Date.now();\n const readings = agentFor(loadConfig()).usage?.read() ?? [];\n const overview = accountOverview(accounts, readings);\n const rows = overview.map((a) => ({\n name: a.name,\n folder: a.dir,\n default: a.isDefault,\n loggedIn: a.loggedIn,\n liveSessions: a.live.length,\n usage: a.usage\n ? {\n at: a.usage.at,\n ageMs: Math.max(0, now - Date.parse(a.usage.at)) || 0,\n windows: a.usage.windows.map((w) => ({\n id: w.id,\n label: w.label,\n usedPercent: agedWindow(w, now).usedPercent,\n resetsAt: w.resetsAt,\n })),\n }\n : null,\n }));\n if (json) {\n console.log(JSON.stringify(rows, null, 2));\n return;\n }\n for (const r of rows) {\n const login = r.loggedIn === null ? 'login unknown' : r.loggedIn ? 'logged in' : 'not logged in';\n console.log(\n `${chalk.bold(r.name)}${r.default ? chalk.cyan(' (default)') : ''} ${chalk.gray(r.folder)} ${login} ` +\n chalk.gray(`${r.liveSessions} live session${r.liveSessions === 1 ? '' : 's'}`) +\n ` ${usageText(overview.find((x) => x.name === r.name)?.usage, now)}`,\n );\n }\n}\n\nasync function add(name: string | undefined, folder: string | undefined, login: boolean): Promise<void> {\n if (!name) return fail('Usage: work account add <name> [folder]');\n const found = accountsOrFail();\n if (!found) return;\n const dir = await addAgentAccount(found.accounts, name, folder);\n const admin = found.accounts.admin!;\n console.log(chalk.green(`Added account ${name}: ${dir}`));\n if (login) {\n console.log(chalk.gray(`Starting ${found.name} on it so you can log in: type /login, then exit when done.`));\n admin.login(name);\n }\n // Work's skills live in each account's folder: this one's too. Its hooks and status line come with each Claude work\n // starts on it (`--settings`, agents/session-hooks.ts): nothing to install.\n const skills = admin.installSkills(name);\n console.log(skills.ok ? chalk.gray(skills.message) : chalk.yellow(skills.message));\n}\n\n/** Work's skills into the account's folder (the dashboard's Accounts page runs this in a child after a first login). */\nfunction skills(name: string | undefined): void {\n if (!name) return fail('Usage: work account skills <name>');\n const found = accountsOrFail();\n if (!found) return;\n if (!found.accounts.admin) return fail('its accounts are not managed by work');\n const r = found.accounts.admin.installSkills(name);\n if (r.ok) console.log(r.message);\n else fail(r.message);\n}\n\nasync function setDefault(name: string | undefined): Promise<void> {\n if (!name) return fail('Usage: work account default <name>');\n const found = accountsOrFail();\n if (!found) return;\n await setDefaultAgentAccount(found.accounts, name);\n console.log(chalk.green(`New sessions use the ${name} account.`));\n}\n\nasync function remove(name: string | undefined, force: boolean): Promise<void> {\n if (!name) return fail('Usage: work account remove <name> [--force]');\n const found = accountsOrFail();\n if (!found) return;\n try {\n await removeAgentAccount(found.accounts, name, { force });\n } catch (e) {\n if (e instanceof AccountAdminError && e.kind === 'archived')\n return fail(`${e.message}: ${e.sessions.join(', ')}. Restore them on another account first, or --force to remove it anyway`);\n throw e;\n }\n console.log(chalk.green(`Removed account ${name} (its folder is left as it is).`));\n}\n\nconst INTERRUPTED_TEXT = 'It was working or waiting on you, so that turn was interrupted: tell it to continue.';\nconst CONTINUED_TEXT = 'It was working or waiting on you, so that turn was interrupted: work tells it to continue once it is up.';\n\nconst OUTCOME_TEXT: Record<AccountSwitchWire['outcome'], string> = {\n switched: 'its Claude restarted on it (its conversation goes on)',\n recorded: 'its Claude is not running: the next start uses it',\n};\n\n/** Copy `from`'s setup to `to` (`work account copy-setup <to> --from <from>`); `dryRun`: only say what it would do. */\nasync function copySetup(to: string | undefined, from: string | undefined, dryRun: boolean): Promise<void> {\n if (!to || !from) return fail('Usage: work account copy-setup <to> --from <from> [--dry-run]');\n const found = accountsOrFail();\n if (!found) return;\n const admin = found.accounts.admin;\n if (!admin?.setupPlan || !admin.copySetup) return fail(`${found.name} has no setup to copy`);\n const plan = admin.setupPlan(from, to);\n if (plan.length === 0) return void console.log(chalk.green(`${to} already has ${from}'s setup: nothing to copy.`));\n if (dryRun) {\n console.log(`Copying ${from}'s setup to ${to} would do ${plan.length} thing${plan.length === 1 ? '' : 's'}:`);\n for (const i of plan) console.log(` ${i.does} ${i.kind} ${i.name}${i.note ? chalk.gray(` — ${i.note}`) : ''}`);\n return;\n }\n console.log(\n chalk.gray(\n `Copying ${plan.length} thing${plan.length === 1 ? '' : 's'} from ${from} to ${to} (plugins are installed from their marketplaces: this can take a minute)…`,\n ),\n );\n const done = await admin.copySetup(from, to);\n for (const i of done)\n console.log(\n i.ok\n ? ` ${chalk.green('✓')} ${i.kind} ${i.name}${i.note ? chalk.gray(` — ${i.note}`) : ''}`\n : ` ${chalk.red('✗')} ${i.kind} ${i.name}: ${i.error}`,\n );\n const failed = done.filter((i) => !i.ok).length;\n console.log(\n (failed ? chalk.yellow : chalk.green)(\n `Copied ${done.length - failed} of ${done.length}${failed ? `; ${failed} failed` : ''}. Restart a session's Claude for it to see them.`,\n ),\n );\n if (failed) process.exitCode = 1;\n}\n\n/** Move every session (or those on `from`) to the account `to`: work web does it, one session after another. */\nasync function switchAll(to: string | undefined, from: string | undefined): Promise<void> {\n if (!to) return fail('Usage: work account switch --all --to <name> [--from <name>]');\n const r = await callWorkWeb<AccountSwitchAllWire>(\n 'POST',\n `/api/accounts/${encodeURIComponent(to)}/sessions`,\n from ? { from } : {},\n 900_000,\n );\n if (!r.ok) return fail(r.status === 0 ? 'work web is not running: start it (or open the app) and run this again' : r.error);\n console.log(chalk.green(r.body.summary));\n for (const s of r.body.sessions)\n console.log(\n s.outcome\n ? chalk.gray(\n ` ${s.label}: ${OUTCOME_TEXT[s.outcome]}${s.continued ? '; its turn was interrupted: told to continue' : s.interrupted ? '; its turn was interrupted: tell it to continue' : ''}`,\n )\n : chalk.yellow(` ${s.label}: ${s.error}`),\n );\n}\n\n/** Move the session for `target` / `branch` (or this folder) to the account `to`. */\nasync function switchSession(target: string | undefined, branch: string | undefined, to: string | undefined): Promise<void> {\n if (!to) return fail('Usage: work account switch [target] [branch] --to <name>');\n const s = sessionFromArgs({ target, branch });\n if (!s) return;\n const id = sessionIdFor(s);\n const label = `${s.target} · ${s.branch}`;\n // Only work web can drive its terminal; waits for the old process to stop and the move to finish.\n const r = await callWorkWeb<AccountSwitchWire>('POST', `/api/sessions/${id}/account`, { to }, 90_000);\n if (r.ok) {\n console.log(chalk.green(`${label}: moved to the ${to} account${r.body.moved ? ` (${r.body.moved} conversation entries moved)` : ''}`));\n console.log(chalk.gray(OUTCOME_TEXT[r.body.outcome]));\n if (r.body.continued) console.log(chalk.gray(CONTINUED_TEXT));\n else if (r.body.interrupted) console.log(chalk.yellow(INTERRUPTED_TEXT));\n return;\n }\n if (r.status !== 0) return fail(`${label}: ${r.error}`);\n // No work web: nothing here can stop or start a Claude in the PTY host, so only a session whose Claude isn't running goes.\n if ((await listHostPtys().catch(() => [])).some((p) => p.id === id && !p.exited)) {\n return fail(`${label}: its Claude runs in the PTY host: start work web (or open the app) and run this again`);\n }\n const local = await createAccountSwitcher(defaultAccountSwitchDeps({ busy: () => false, hostRuns: () => false })).switchAccount(id, to);\n if (!local.ok) return fail(`${label}: ${local.error}`);\n console.log(chalk.green(`${label}: moved to the ${to} account${local.moved ? ` (${local.moved} conversation entries moved)` : ''}`));\n console.log(chalk.gray(`${OUTCOME_TEXT.recorded}. (work web is not running.)`));\n}\n\nexport const accountCommand: CommandModule = {\n command: 'account <action> [name] [folder]',\n describe:\n \"The agent's accounts (Claude Code logins): add, list, default, remove, switch, copy-setup (also on the dashboard's Accounts page)\",\n builder: (yargs) =>\n yargs\n .positional('action', {\n describe: 'What to do',\n choices: ['add', 'list', 'default', 'remove', 'switch', 'skills', 'copy-setup'] as const,\n type: 'string',\n demandOption: true,\n })\n .positional('name', {\n describe: 'The account name (lower-case letters, digits, dashes); switch: the session’s repo or group',\n type: 'string',\n })\n .positional('folder', {\n describe: 'add: its Claude config folder (default ~/.claude-<name>); switch: the session’s branch',\n type: 'string',\n })\n .option('to', { type: 'string', describe: 'switch: the account to move the session to' })\n .option('all', { type: 'boolean', describe: 'switch: every session (not archived ones), not one' })\n .option('from', {\n type: 'string',\n describe: 'switch --all: only the sessions on this account; copy-setup: the account whose setup is copied',\n })\n .option('dry-run', { type: 'boolean', describe: 'copy-setup: only say what it would copy' })\n .option('json', { type: 'boolean', describe: 'list: print JSON' })\n .option('force', {\n type: 'boolean',\n describe: 'remove: even though archived sessions use it (their Restore starts on the default account)',\n })\n .option('login', {\n type: 'boolean',\n default: true,\n describe: 'add: start Claude on the new account to log in (--no-login skips it)',\n }),\n handler: async (argv) => {\n const action = argv.action as string;\n const name = argv.name as string | undefined;\n try {\n switch (action) {\n case 'add':\n return await add(name, argv.folder as string | undefined, argv.login !== false);\n case 'list':\n return list(argv.json === true);\n case 'default':\n return await setDefault(name);\n case 'copy-setup':\n return await copySetup(name, argv.from as string | undefined, argv.dryRun === true);\n case 'switch':\n // For a switch the two positionals are the session's: <target> [branch] (none: the session for this folder).\n if (argv.all) return await switchAll(argv.to as string | undefined, argv.from as string | undefined);\n return await switchSession(name, argv.folder as string | undefined, argv.to as string | undefined);\n case 'remove':\n return await remove(name, argv.force === true);\n case 'skills':\n return skills(name);\n }\n } catch (e) {\n if (!(e instanceof AccountAdminError)) throw e;\n fail(e.sessions.length ? `${e.message}: ${e.sessions.join(', ')}` : e.message);\n }\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAsBlB,SAAS,KAAK,SAAuB;AACnC,UAAQ,MAAM,MAAM,IAAI,OAAO,CAAC;AAChC,UAAQ,WAAW;AACrB;AAGA,SAAS,iBAAmE;AAC1E,QAAM,QAAQ,SAAS,WAAW,CAAC;AACnC,MAAI,MAAM,SAAU,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AAQ,QAAQ;AAAA,QACd,KAAK;AACH,iBAAO,MAAM,IAAI,MAAM,KAAK,QAA8B,KAAK,UAAU,KAAK;AAAA,QAChF,KAAK;AACH,iBAAO,KAAK,KAAK,SAAS,IAAI;AAAA,QAChC,KAAK;AACH,iBAAO,MAAM,WAAW,IAAI;AAAA,QAC9B,KAAK;AACH,iBAAO,MAAM,UAAU,MAAM,KAAK,MAA4B,KAAK,WAAW,IAAI;AAAA,QACpF,KAAK;AAEH,cAAI,KAAK,IAAK,QAAO,MAAM,UAAU,KAAK,IAA0B,KAAK,IAA0B;AACnG,iBAAO,MAAM,cAAc,MAAM,KAAK,QAA8B,KAAK,EAAwB;AAAA,QACnG,KAAK;AACH,iBAAO,MAAM,OAAO,MAAM,KAAK,UAAU,IAAI;AAAA,QAC/C,KAAK;AACH,iBAAO,OAAO,IAAI;AAAA,MACtB;AAAA,IACF,SAAS,GAAG;AACV,UAAI,EAAE,aAAa,mBAAoB,OAAM;AAC7C,WAAK,EAAE,SAAS,SAAS,GAAG,EAAE,OAAO,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC,KAAK,EAAE,OAAO;AAAA,IAC/E;AAAA,EACF;AACF;","names":["skills"]}
|
|
1
|
+
{"version":3,"sources":["../src/commands/account.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { AccountAdminError, agentFor, type AgentAccounts } from '../core/agents/index.js';\nimport { loadConfig } from '../core/platform/config.js';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { createAccountSwitcher } from '../core/sessions/account-switch.js';\nimport { defaultAccountSwitchDeps } from '../core/sessions/account-switch-deps.js';\nimport { removeAgentAccount } from '../core/sessions/account-users.js';\nimport { accountOverview, addAgentAccount, setDefaultAgentAccount } from '../core/sessions/account-admin.js';\nimport { listHostPtys } from '../core/pty/pty-pool.js';\nimport { agedWindow, usageText } from '../core/usage/usage.js';\nimport type { AccountSwitchAllWire, AccountSwitchWire } from '../core/api-types.js';\nimport { sessionFromArgs } from './shared/session-arg.js';\n\n/**\n * `work account` — the accounts (logins) of the configured agent (Claude Code: each a config folder,\n * `CLAUDE_CONFIG_DIR`), so a second login can take over when the first one's limit runs out. add / list / default /\n * remove, and switch: move a session to another account (`work account switch [target] [branch] --to <name>`). Every\n * piece of it goes through the agent's adapter (its `accounts` part): nothing here knows Claude.\n */\n\nfunction fail(message: string): void {\n console.error(chalk.red(message));\n process.exitCode = 1;\n}\n\n/** The configured agent's accounts part, or null (said) when it has none. */\nfunction accountsOrFail(): { name: string; accounts: AgentAccounts } | null {\n const agent = agentFor(loadConfig());\n if (agent.accounts) return { name: agent.name, accounts: agent.accounts };\n fail(`${agent.name} has no accounts work knows about`);\n return null;\n}\n\n// The usage line is core's (the dashboard's Accounts page says the same); kept exported here for older callers.\nexport { ageText, usageText } from '../core/usage/usage.js';\n\nfunction list(json: boolean): void {\n const found = accountsOrFail();\n if (!found) return;\n const { accounts } = found;\n const now = Date.now();\n const readings = agentFor(loadConfig()).usage?.read() ?? [];\n const overview = accountOverview(accounts, readings);\n const rows = overview.map((a) => ({\n name: a.name,\n folder: a.dir,\n default: a.isDefault,\n loggedIn: a.loggedIn,\n liveSessions: a.live.length,\n usage: a.usage\n ? {\n at: a.usage.at,\n ageMs: Math.max(0, now - Date.parse(a.usage.at)) || 0,\n windows: a.usage.windows.map((w) => ({\n id: w.id,\n label: w.label,\n usedPercent: agedWindow(w, now).usedPercent,\n resetsAt: w.resetsAt,\n })),\n }\n : null,\n }));\n if (json) {\n console.log(JSON.stringify(rows, null, 2));\n return;\n }\n for (const r of rows) {\n const login = r.loggedIn === null ? 'login unknown' : r.loggedIn ? 'logged in' : 'not logged in';\n console.log(\n `${chalk.bold(r.name)}${r.default ? chalk.cyan(' (default)') : ''} ${chalk.gray(r.folder)} ${login} ` +\n chalk.gray(`${r.liveSessions} live session${r.liveSessions === 1 ? '' : 's'}`) +\n ` ${usageText(overview.find((x) => x.name === r.name)?.usage, now)}`,\n );\n }\n}\n\nasync function add(name: string | undefined, folder: string | undefined, login: boolean): Promise<void> {\n if (!name) return fail('Usage: work account add <name> [folder]');\n const found = accountsOrFail();\n if (!found) return;\n const dir = await addAgentAccount(found.accounts, name, folder);\n const admin = found.accounts.admin!;\n console.log(chalk.green(`Added account ${name}: ${dir}`));\n if (login) {\n console.log(chalk.gray(`Starting ${found.name} on it so you can log in: type /login, then exit when done.`));\n admin.login(name);\n }\n // Work's skills live in each account's folder: this one's too. Its hooks and status line come with each Claude work\n // starts on it (`--settings`, agents/session-hooks.ts): nothing to install.\n const skills = admin.installSkills(name);\n console.log(skills.ok ? chalk.gray(skills.message) : chalk.yellow(skills.message));\n}\n\n/** Work's skills into the account's folder (the dashboard's Accounts page runs this in a child after a first login). */\nfunction skills(name: string | undefined): void {\n if (!name) return fail('Usage: work account skills <name>');\n const found = accountsOrFail();\n if (!found) return;\n if (!found.accounts.admin) return fail('its accounts are not managed by work');\n const r = found.accounts.admin.installSkills(name);\n if (r.ok) console.log(r.message);\n else fail(r.message);\n}\n\nasync function setDefault(name: string | undefined): Promise<void> {\n if (!name) return fail('Usage: work account default <name>');\n const found = accountsOrFail();\n if (!found) return;\n await setDefaultAgentAccount(found.accounts, name);\n console.log(chalk.green(`New sessions use the ${name} account.`));\n}\n\nasync function remove(name: string | undefined, force: boolean): Promise<void> {\n if (!name) return fail('Usage: work account remove <name> [--force]');\n const found = accountsOrFail();\n if (!found) return;\n try {\n await removeAgentAccount(found.accounts, name, { force });\n } catch (e) {\n if (e instanceof AccountAdminError && e.kind === 'archived')\n return fail(`${e.message}: ${e.sessions.join(', ')}. Restore them on another account first, or --force to remove it anyway`);\n throw e;\n }\n console.log(chalk.green(`Removed account ${name} (its folder is left as it is).`));\n}\n\nconst INTERRUPTED_TEXT = 'It was working or waiting on you, so that turn was interrupted: tell it to continue.';\nconst CONTINUED_TEXT = 'It was working or waiting on you, so that turn was interrupted: work tells it to continue once it is up.';\n\nconst OUTCOME_TEXT: Record<AccountSwitchWire['outcome'], string> = {\n switched: 'its Claude restarted on it (its conversation goes on)',\n recorded: 'its Claude is not running: the next start uses it',\n};\n\n/** Copy `from`'s setup to `to` (`work account copy-setup <to> --from <from>`); `dryRun`: only say what it would do. */\nasync function copySetup(to: string | undefined, from: string | undefined, dryRun: boolean): Promise<void> {\n if (!to || !from) return fail('Usage: work account copy-setup <to> --from <from> [--dry-run]');\n const found = accountsOrFail();\n if (!found) return;\n const admin = found.accounts.admin;\n if (!admin?.setupPlan || !admin.copySetup) return fail(`${found.name} has no setup to copy`);\n const plan = admin.setupPlan(from, to);\n if (plan.length === 0) return void console.log(chalk.green(`${to} already has ${from}'s setup: nothing to copy.`));\n if (dryRun) {\n console.log(`Copying ${from}'s setup to ${to} would do ${plan.length} thing${plan.length === 1 ? '' : 's'}:`);\n for (const i of plan) console.log(` ${i.does} ${i.kind} ${i.name}${i.note ? chalk.gray(` — ${i.note}`) : ''}`);\n return;\n }\n console.log(\n chalk.gray(\n `Copying ${plan.length} thing${plan.length === 1 ? '' : 's'} from ${from} to ${to} (plugins are installed from their marketplaces: this can take a minute)…`,\n ),\n );\n const done = await admin.copySetup(from, to);\n for (const i of done)\n console.log(\n i.ok\n ? ` ${chalk.green('✓')} ${i.kind} ${i.name}${i.note ? chalk.gray(` — ${i.note}`) : ''}`\n : ` ${chalk.red('✗')} ${i.kind} ${i.name}: ${i.error}`,\n );\n const failed = done.filter((i) => !i.ok).length;\n console.log(\n (failed ? chalk.yellow : chalk.green)(\n `Copied ${done.length - failed} of ${done.length}${failed ? `; ${failed} failed` : ''}. Restart a session's Claude for it to see them.`,\n ),\n );\n if (failed) process.exitCode = 1;\n}\n\n/** Move every session (or those on `from`) to the account `to`: work web does it, one session after another. */\nasync function switchAll(to: string | undefined, from: string | undefined): Promise<void> {\n if (!to) return fail('Usage: work account switch --all --to <name> [--from <name>]');\n const r = await callWorkWeb<AccountSwitchAllWire>(\n 'POST',\n `/api/accounts/${encodeURIComponent(to)}/sessions`,\n from ? { from } : {},\n 900_000,\n );\n if (!r.ok) return fail(r.status === 0 ? 'work web is not running: start it (or open the app) and run this again' : r.error);\n console.log(chalk.green(r.body.summary));\n for (const s of r.body.sessions)\n console.log(\n s.outcome\n ? chalk.gray(\n ` ${s.label}: ${OUTCOME_TEXT[s.outcome]}${s.continued ? '; its turn was interrupted: told to continue' : s.interrupted ? '; its turn was interrupted: tell it to continue' : ''}`,\n )\n : chalk.yellow(` ${s.label}: ${s.error}`),\n );\n}\n\n/** Move the session for `target` / `branch` (or this folder) to the account `to`. */\nasync function switchSession(target: string | undefined, branch: string | undefined, to: string | undefined): Promise<void> {\n if (!to) return fail('Usage: work account switch [target] [branch] --to <name>');\n const s = sessionFromArgs({ target, branch });\n if (!s) return;\n const id = sessionIdFor(s);\n const label = `${s.target} · ${s.branch}`;\n // Only work web can drive its terminal; waits for the old process to stop and the move to finish.\n const r = await callWorkWeb<AccountSwitchWire>('POST', `/api/sessions/${id}/account`, { to }, 90_000);\n if (r.ok) {\n console.log(chalk.green(`${label}: moved to the ${to} account${r.body.moved ? ` (${r.body.moved} conversation entries moved)` : ''}`));\n console.log(chalk.gray(OUTCOME_TEXT[r.body.outcome]));\n if (r.body.continued) console.log(chalk.gray(CONTINUED_TEXT));\n else if (r.body.interrupted) console.log(chalk.yellow(INTERRUPTED_TEXT));\n return;\n }\n if (r.status !== 0) return fail(`${label}: ${r.error}`);\n // No work web: nothing here can stop or start a Claude in the PTY host, so only a session whose Claude isn't running goes.\n if ((await listHostPtys().catch(() => [])).some((p) => p.id === id && !p.exited)) {\n return fail(`${label}: its Claude runs in the PTY host: start work web (or open the app) and run this again`);\n }\n const local = await createAccountSwitcher(defaultAccountSwitchDeps({ busy: () => false, hostRuns: () => false })).switchAccount(id, to);\n if (!local.ok) return fail(`${label}: ${local.error}`);\n console.log(chalk.green(`${label}: moved to the ${to} account${local.moved ? ` (${local.moved} conversation entries moved)` : ''}`));\n console.log(chalk.gray(`${OUTCOME_TEXT.recorded}. (work web is not running.)`));\n}\n\nexport const accountCommand: CommandModule = {\n command: 'account <action> [name] [folder]',\n describe:\n \"The agent's accounts (Claude Code logins): add, list, default, remove, switch, copy-setup (also on the dashboard's Accounts page)\",\n builder: (yargs) =>\n yargs\n .positional('action', {\n describe: 'What to do',\n choices: ['add', 'list', 'default', 'remove', 'switch', 'skills', 'copy-setup'] as const,\n type: 'string',\n demandOption: true,\n })\n .positional('name', {\n describe: 'The account name (lower-case letters, digits, dashes); switch: the session’s repo or group',\n type: 'string',\n })\n .positional('folder', {\n describe: 'add: its Claude config folder (default ~/.claude-<name>); switch: the session’s branch',\n type: 'string',\n })\n .option('to', { type: 'string', describe: 'switch: the account to move the session to' })\n .option('all', { type: 'boolean', describe: 'switch: every session (not archived ones), not one' })\n .option('from', {\n type: 'string',\n describe: 'switch --all: only the sessions on this account; copy-setup: the account whose setup is copied',\n })\n .option('dry-run', { type: 'boolean', describe: 'copy-setup: only say what it would copy' })\n .option('json', { type: 'boolean', describe: 'list: print JSON' })\n .option('force', {\n type: 'boolean',\n describe: 'remove: even though archived sessions use it (their Restore starts on the default account)',\n })\n .option('login', {\n type: 'boolean',\n default: true,\n describe: 'add: start Claude on the new account to log in (--no-login skips it)',\n }),\n handler: async (argv) => {\n const action = argv.action as string;\n const name = argv.name as string | undefined;\n try {\n switch (action) {\n case 'add':\n return await add(name, argv.folder as string | undefined, argv.login !== false);\n case 'list':\n return list(argv.json === true);\n case 'default':\n return await setDefault(name);\n case 'copy-setup':\n return await copySetup(name, argv.from as string | undefined, argv.dryRun === true);\n case 'switch':\n // For a switch the two positionals are the session's: <target> [branch] (none: the session for this folder).\n if (argv.all) return await switchAll(argv.to as string | undefined, argv.from as string | undefined);\n return await switchSession(name, argv.folder as string | undefined, argv.to as string | undefined);\n case 'remove':\n return await remove(name, argv.force === true);\n case 'skills':\n return skills(name);\n }\n } catch (e) {\n if (!(e instanceof AccountAdminError)) throw e;\n fail(e.sessions.length ? `${e.message}: ${e.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
|
7
7
|
createSingleWorktree,
|
|
8
8
|
removeSingleWorktree,
|
|
9
9
|
writeSessionInstructions
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-KWJ6S4NZ.js";
|
|
11
11
|
import "./chunk-Y7PWSACJ.js";
|
|
12
12
|
import "./chunk-EORL2V7P.js";
|
|
13
13
|
import {
|
|
14
14
|
sessionFromArgs
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BGQ6NUU7.js";
|
|
16
16
|
import "./chunk-6AQRYLOB.js";
|
|
17
17
|
import {
|
|
18
18
|
callWorkWeb
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-LB2GAU7E.js";
|
|
20
|
+
import "./chunk-LOFGDH5B.js";
|
|
21
21
|
import "./chunk-ZSHWP2VS.js";
|
|
22
22
|
import {
|
|
23
23
|
getCommentFileStore,
|
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
findSessionById,
|
|
36
36
|
manifestPath,
|
|
37
37
|
scopeHashForPaths
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-XL4YNA3L.js";
|
|
39
39
|
import "./chunk-NEJVK5CF.js";
|
|
40
40
|
import {
|
|
41
41
|
sessionIdFor
|
|
42
42
|
} from "./chunk-QGUBOOEN.js";
|
|
43
43
|
import {
|
|
44
44
|
agentFor
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-NWKVTUTN.js";
|
|
46
46
|
import "./chunk-KGHWHAVF.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-BMPTUIP4.js";
|
|
48
48
|
import "./chunk-ED6YLB4S.js";
|
|
49
49
|
import "./chunk-IPHADNF5.js";
|
|
50
50
|
import {
|
|
@@ -55,13 +55,13 @@ import {
|
|
|
55
55
|
import "./chunk-Z6ACV5ZQ.js";
|
|
56
56
|
import "./chunk-JUGF3YE7.js";
|
|
57
57
|
import "./chunk-HK6AZQ5Z.js";
|
|
58
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-XIN6XUFL.js";
|
|
59
59
|
import {
|
|
60
60
|
loadConfig
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import "./chunk-
|
|
61
|
+
} from "./chunk-ETWP7MDS.js";
|
|
62
|
+
import "./chunk-7ZATXG5F.js";
|
|
63
63
|
import "./chunk-BR6OWWAA.js";
|
|
64
|
-
import "./chunk-
|
|
64
|
+
import "./chunk-M2X6OHHR.js";
|
|
65
65
|
import {
|
|
66
66
|
spawn_default
|
|
67
67
|
} from "./chunk-QOSAWNOU.js";
|
|
@@ -396,4 +396,4 @@ export {
|
|
|
396
396
|
addRepoCommand,
|
|
397
397
|
addRepoWireOf
|
|
398
398
|
};
|
|
399
|
-
//# sourceMappingURL=add-repo-
|
|
399
|
+
//# sourceMappingURL=add-repo-WXDEKZRX.js.map
|
|
@@ -6,34 +6,34 @@ import "./chunk-FZHFD2AY.js";
|
|
|
6
6
|
import {
|
|
7
7
|
sessionFromArgs,
|
|
8
8
|
sessionPositionals
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BGQ6NUU7.js";
|
|
10
10
|
import "./chunk-6AQRYLOB.js";
|
|
11
11
|
import {
|
|
12
12
|
callWorkWeb
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-LB2GAU7E.js";
|
|
14
|
+
import "./chunk-LOFGDH5B.js";
|
|
15
15
|
import "./chunk-ZSHWP2VS.js";
|
|
16
16
|
import "./chunk-UPS7NHKI.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
18
|
import {
|
|
19
19
|
readStatus
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-XL4YNA3L.js";
|
|
21
21
|
import "./chunk-NEJVK5CF.js";
|
|
22
22
|
import {
|
|
23
23
|
sessionIdFor
|
|
24
24
|
} from "./chunk-QGUBOOEN.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-NWKVTUTN.js";
|
|
26
26
|
import "./chunk-KGHWHAVF.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-BMPTUIP4.js";
|
|
28
28
|
import "./chunk-ED6YLB4S.js";
|
|
29
29
|
import "./chunk-Z6ACV5ZQ.js";
|
|
30
30
|
import "./chunk-JUGF3YE7.js";
|
|
31
31
|
import "./chunk-HK6AZQ5Z.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-XIN6XUFL.js";
|
|
33
|
+
import "./chunk-ETWP7MDS.js";
|
|
34
|
+
import "./chunk-7ZATXG5F.js";
|
|
35
35
|
import "./chunk-BR6OWWAA.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-M2X6OHHR.js";
|
|
37
37
|
import "./chunk-QOSAWNOU.js";
|
|
38
38
|
import "./chunk-D2J3AD6L.js";
|
|
39
39
|
import "./chunk-5ZCCUM75.js";
|
|
@@ -74,4 +74,4 @@ var answerCommand = {
|
|
|
74
74
|
export {
|
|
75
75
|
answerCommand
|
|
76
76
|
};
|
|
77
|
-
//# sourceMappingURL=answer-
|
|
77
|
+
//# sourceMappingURL=answer-L55DWMR5.js.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
attachSession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HUGHF45U.js";
|
|
5
5
|
import "./chunk-6KMG4WNW.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-BBI4YQTS.js";
|
|
7
7
|
import "./chunk-BCYBF7KJ.js";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-NREZVTBP.js";
|
|
9
|
+
import "./chunk-C5BBVVHW.js";
|
|
10
10
|
import "./chunk-HCYES6U7.js";
|
|
11
11
|
import "./chunk-NS7WH53I.js";
|
|
12
12
|
import {
|
|
13
13
|
baseCheckoutSession
|
|
14
14
|
} from "./chunk-6AQRYLOB.js";
|
|
15
15
|
import "./chunk-SJBEIYLK.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-XT3FON6A.js";
|
|
17
|
+
import "./chunk-MYXEX6BB.js";
|
|
18
18
|
import "./chunk-7E5XPDKX.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-DK3UMOX7.js";
|
|
20
20
|
import {
|
|
21
21
|
findSessionForCwd
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LOFGDH5B.js";
|
|
23
23
|
import "./chunk-ZSHWP2VS.js";
|
|
24
24
|
import "./chunk-UPS7NHKI.js";
|
|
25
25
|
import "./chunk-HUXS3VAI.js";
|
|
26
26
|
import {
|
|
27
27
|
findSession,
|
|
28
28
|
loadHistory
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XL4YNA3L.js";
|
|
30
30
|
import "./chunk-NEJVK5CF.js";
|
|
31
31
|
import "./chunk-QGUBOOEN.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-NWKVTUTN.js";
|
|
33
33
|
import "./chunk-KGHWHAVF.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-BMPTUIP4.js";
|
|
35
35
|
import "./chunk-ED6YLB4S.js";
|
|
36
36
|
import "./chunk-Z6ACV5ZQ.js";
|
|
37
37
|
import "./chunk-JUGF3YE7.js";
|
|
38
38
|
import "./chunk-HK6AZQ5Z.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-XIN6XUFL.js";
|
|
40
40
|
import {
|
|
41
41
|
loadConfig
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-ETWP7MDS.js";
|
|
43
|
+
import "./chunk-7ZATXG5F.js";
|
|
44
44
|
import "./chunk-BR6OWWAA.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-M2X6OHHR.js";
|
|
46
46
|
import "./chunk-QOSAWNOU.js";
|
|
47
47
|
import "./chunk-D2J3AD6L.js";
|
|
48
48
|
import "./chunk-5ZCCUM75.js";
|
|
@@ -76,4 +76,4 @@ export {
|
|
|
76
76
|
attachCommand,
|
|
77
77
|
baseCheckoutSession
|
|
78
78
|
};
|
|
79
|
-
//# sourceMappingURL=attach-
|
|
79
|
+
//# sourceMappingURL=attach-KLVI7BHS.js.map
|
package/dist/bin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./chunk-
|
|
2
|
+
import "./chunk-ETWP7MDS.js";
|
|
3
3
|
import "./chunk-D2J3AD6L.js";
|
|
4
4
|
import {
|
|
5
5
|
debug,
|
|
@@ -43,16 +43,16 @@ process.on("uncaughtException", handleFatalError);
|
|
|
43
43
|
process.on("unhandledRejection", handleFatalError);
|
|
44
44
|
var args = process.argv.slice(2);
|
|
45
45
|
if (args[0] === "hook" && args[1] === "statusline") {
|
|
46
|
-
const { runStatusLineHook } = await import("./statusline-hook-
|
|
46
|
+
const { runStatusLineHook } = await import("./statusline-hook-VPPS3PFO.js");
|
|
47
47
|
await runStatusLineHook();
|
|
48
48
|
process.stdout.write("", () => process.exit(0));
|
|
49
49
|
} else if (args[0] === "hook") {
|
|
50
|
-
const { runHookEvent } = await import("./hook-
|
|
50
|
+
const { runHookEvent } = await import("./hook-KOK7NKCO.js");
|
|
51
51
|
await runHookEvent(args[1], args.slice(2));
|
|
52
52
|
} else {
|
|
53
53
|
const { default: chalk } = await import("chalk");
|
|
54
54
|
if (!process.env.NO_COLOR && chalk.level === 0) chalk.level = 1;
|
|
55
|
-
const { run } = await import("./cli-
|
|
55
|
+
const { run } = await import("./cli-C3U2BC44.js");
|
|
56
56
|
const { withReporter } = await import("./report-Z36H65YG.js");
|
|
57
57
|
const { consoleReporter, reportStreamFor } = await import("./console-reporter-XU6VFUZE.js");
|
|
58
58
|
await withReporter(consoleReporter(reportStreamFor(args)), () => run(args));
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
blockRefFrom,
|
|
6
6
|
readBlock,
|
|
7
7
|
removeBlocker
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-SF3DIIKN.js";
|
|
9
9
|
import {
|
|
10
10
|
sessionFromArgs,
|
|
11
11
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BGQ6NUU7.js";
|
|
13
13
|
import "./chunk-6AQRYLOB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LOFGDH5B.js";
|
|
15
15
|
import "./chunk-ZSHWP2VS.js";
|
|
16
16
|
import "./chunk-UPS7NHKI.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-PSALWCBD.js";
|
|
19
19
|
import "./chunk-FGPXMAYU.js";
|
|
20
20
|
import "./chunk-GNIYYXQX.js";
|
|
21
21
|
import "./chunk-T5GJVUSL.js";
|
|
@@ -24,23 +24,23 @@ import "./chunk-4CXUVBOD.js";
|
|
|
24
24
|
import {
|
|
25
25
|
findSession,
|
|
26
26
|
loadHistory
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XL4YNA3L.js";
|
|
28
28
|
import "./chunk-NEJVK5CF.js";
|
|
29
29
|
import {
|
|
30
30
|
sessionIdFor
|
|
31
31
|
} from "./chunk-QGUBOOEN.js";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-NWKVTUTN.js";
|
|
33
33
|
import "./chunk-KGHWHAVF.js";
|
|
34
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-BMPTUIP4.js";
|
|
35
35
|
import "./chunk-ED6YLB4S.js";
|
|
36
36
|
import "./chunk-Z6ACV5ZQ.js";
|
|
37
37
|
import "./chunk-JUGF3YE7.js";
|
|
38
38
|
import "./chunk-HK6AZQ5Z.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-XIN6XUFL.js";
|
|
40
|
+
import "./chunk-ETWP7MDS.js";
|
|
41
|
+
import "./chunk-7ZATXG5F.js";
|
|
42
42
|
import "./chunk-BR6OWWAA.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-M2X6OHHR.js";
|
|
44
44
|
import "./chunk-QOSAWNOU.js";
|
|
45
45
|
import "./chunk-D2J3AD6L.js";
|
|
46
46
|
import "./chunk-5ZCCUM75.js";
|
|
@@ -100,4 +100,4 @@ var blockCommand = {
|
|
|
100
100
|
export {
|
|
101
101
|
blockCommand
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=block-
|
|
103
|
+
//# sourceMappingURL=block-BRNRP226.js.map
|
|
@@ -8,23 +8,23 @@ import {
|
|
|
8
8
|
import "./chunk-HUXS3VAI.js";
|
|
9
9
|
import {
|
|
10
10
|
loadHistory
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XL4YNA3L.js";
|
|
12
12
|
import "./chunk-NEJVK5CF.js";
|
|
13
13
|
import {
|
|
14
14
|
sessionIdFor
|
|
15
15
|
} from "./chunk-QGUBOOEN.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-NWKVTUTN.js";
|
|
17
17
|
import "./chunk-KGHWHAVF.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-BMPTUIP4.js";
|
|
19
19
|
import "./chunk-ED6YLB4S.js";
|
|
20
20
|
import "./chunk-Z6ACV5ZQ.js";
|
|
21
21
|
import "./chunk-JUGF3YE7.js";
|
|
22
22
|
import "./chunk-HK6AZQ5Z.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XIN6XUFL.js";
|
|
24
|
+
import "./chunk-ETWP7MDS.js";
|
|
25
|
+
import "./chunk-7ZATXG5F.js";
|
|
26
26
|
import "./chunk-BR6OWWAA.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-M2X6OHHR.js";
|
|
28
28
|
import "./chunk-QOSAWNOU.js";
|
|
29
29
|
import "./chunk-D2J3AD6L.js";
|
|
30
30
|
import "./chunk-5ZCCUM75.js";
|
|
@@ -114,4 +114,4 @@ var broadcastCommand = {
|
|
|
114
114
|
export {
|
|
115
115
|
broadcastCommand
|
|
116
116
|
};
|
|
117
|
-
//# sourceMappingURL=broadcast-
|
|
117
|
+
//# sourceMappingURL=broadcast-GQE7H3MF.js.map
|
|
@@ -3,36 +3,36 @@ import {
|
|
|
3
3
|
askCatchUp,
|
|
4
4
|
catchUp,
|
|
5
5
|
catchUpFacts
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-DNC2ZJOF.js";
|
|
7
|
+
import "./chunk-7BH2PUYY.js";
|
|
8
|
+
import "./chunk-ZPDCVDE2.js";
|
|
9
9
|
import {
|
|
10
10
|
sessionFromArgs,
|
|
11
11
|
sessionPositionals
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BGQ6NUU7.js";
|
|
13
13
|
import "./chunk-6AQRYLOB.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-LOFGDH5B.js";
|
|
15
15
|
import "./chunk-ZSHWP2VS.js";
|
|
16
16
|
import "./chunk-UPS7NHKI.js";
|
|
17
17
|
import "./chunk-HUXS3VAI.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-XL4YNA3L.js";
|
|
19
19
|
import "./chunk-NEJVK5CF.js";
|
|
20
20
|
import {
|
|
21
21
|
sessionIdFor
|
|
22
22
|
} from "./chunk-QGUBOOEN.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-NWKVTUTN.js";
|
|
24
24
|
import "./chunk-KGHWHAVF.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-BMPTUIP4.js";
|
|
26
26
|
import "./chunk-ED6YLB4S.js";
|
|
27
27
|
import "./chunk-JYWX2N5W.js";
|
|
28
28
|
import "./chunk-Z6ACV5ZQ.js";
|
|
29
29
|
import "./chunk-JUGF3YE7.js";
|
|
30
30
|
import "./chunk-HK6AZQ5Z.js";
|
|
31
|
-
import "./chunk-
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-XIN6XUFL.js";
|
|
32
|
+
import "./chunk-ETWP7MDS.js";
|
|
33
|
+
import "./chunk-7ZATXG5F.js";
|
|
34
34
|
import "./chunk-BR6OWWAA.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-M2X6OHHR.js";
|
|
36
36
|
import "./chunk-QOSAWNOU.js";
|
|
37
37
|
import "./chunk-D2J3AD6L.js";
|
|
38
38
|
import "./chunk-5ZCCUM75.js";
|
|
@@ -61,4 +61,4 @@ var catchupCommand = {
|
|
|
61
61
|
export {
|
|
62
62
|
catchupCommand
|
|
63
63
|
};
|
|
64
|
-
//# sourceMappingURL=catchup-
|
|
64
|
+
//# sourceMappingURL=catchup-ZMG4OWF2.js.map
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
coordinatorSince,
|
|
11
11
|
driveCheck,
|
|
12
12
|
parentOf
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-MYXEX6BB.js";
|
|
14
14
|
import {
|
|
15
15
|
callWorkWeb
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LB2GAU7E.js";
|
|
17
17
|
import {
|
|
18
18
|
findSessionForCwd
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LOFGDH5B.js";
|
|
20
20
|
import "./chunk-ZSHWP2VS.js";
|
|
21
21
|
import "./chunk-UPS7NHKI.js";
|
|
22
22
|
import "./chunk-HUXS3VAI.js";
|
|
@@ -25,23 +25,23 @@ import {
|
|
|
25
25
|
findSessionById,
|
|
26
26
|
loadHistory,
|
|
27
27
|
readStatus
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XL4YNA3L.js";
|
|
29
29
|
import "./chunk-NEJVK5CF.js";
|
|
30
30
|
import {
|
|
31
31
|
sessionIdFor
|
|
32
32
|
} from "./chunk-QGUBOOEN.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-NWKVTUTN.js";
|
|
34
34
|
import "./chunk-KGHWHAVF.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-BMPTUIP4.js";
|
|
36
36
|
import "./chunk-ED6YLB4S.js";
|
|
37
37
|
import "./chunk-Z6ACV5ZQ.js";
|
|
38
38
|
import "./chunk-JUGF3YE7.js";
|
|
39
39
|
import "./chunk-HK6AZQ5Z.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-XIN6XUFL.js";
|
|
41
|
+
import "./chunk-ETWP7MDS.js";
|
|
42
|
+
import "./chunk-7ZATXG5F.js";
|
|
43
43
|
import "./chunk-BR6OWWAA.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-M2X6OHHR.js";
|
|
45
45
|
import "./chunk-QOSAWNOU.js";
|
|
46
46
|
import "./chunk-D2J3AD6L.js";
|
|
47
47
|
import "./chunk-5ZCCUM75.js";
|
|
@@ -145,4 +145,4 @@ var childCommand = {
|
|
|
145
145
|
export {
|
|
146
146
|
childCommand
|
|
147
147
|
};
|
|
148
|
-
//# sourceMappingURL=child-
|
|
148
|
+
//# sourceMappingURL=child-MPXXJ2QX.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-XBWS77S2.js";
|
|
5
5
|
import {
|
|
6
6
|
logSwallowed
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NWKVTUTN.js";
|
|
8
8
|
|
|
9
9
|
// src/core/diff/diff-stat.ts
|
|
10
10
|
import fs from "fs";
|
|
@@ -207,4 +207,4 @@ export {
|
|
|
207
207
|
wantsDiffStat,
|
|
208
208
|
findOverlaps
|
|
209
209
|
};
|
|
210
|
-
//# sourceMappingURL=chunk-
|
|
210
|
+
//# sourceMappingURL=chunk-2JLG65GB.js.map
|