@moberg_hr/work-tree 2.23.1 → 2.23.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-O62WFR7C.js → account-CCXROECI.js} +29 -28
- package/dist/{account-O62WFR7C.js.map → account-CCXROECI.js.map} +1 -1
- package/dist/{add-repo-FTAMMPVM.js → add-repo-KYSKVWWL.js} +20 -21
- package/dist/{add-repo-FTAMMPVM.js.map → add-repo-KYSKVWWL.js.map} +1 -1
- package/dist/{answer-LKNMN2ZM.js → answer-M5SVGKGO.js} +12 -12
- package/dist/{attach-A3KA4YTK.js → attach-YHIUKOTE.js} +21 -22
- package/dist/{attach-A3KA4YTK.js.map → attach-YHIUKOTE.js.map} +1 -1
- package/dist/bin.js +4 -4
- package/dist/{block-3ZUFH2RO.js → block-ONJSUTQ6.js} +17 -18
- package/dist/{block-3ZUFH2RO.js.map → block-ONJSUTQ6.js.map} +1 -1
- package/dist/{broadcast-I23BZI3R.js → broadcast-TVDWHKJE.js} +10 -10
- package/dist/{catchup-G4EOJIZP.js → catchup-UGDVV5RI.js} +15 -15
- package/dist/{child-MVNEFA2I.js → child-GPVONLJF.js} +18 -15
- package/dist/child-GPVONLJF.js.map +1 -0
- package/dist/{chunk-NXS53NHR.js → chunk-2MAMYB72.js} +4 -4
- package/dist/{chunk-ZNRPBP5O.js → chunk-2YDY25YI.js} +138 -7
- package/dist/chunk-2YDY25YI.js.map +1 -0
- package/dist/{chunk-HCYES6U7.js → chunk-32CMRR6M.js} +2 -2
- package/dist/{chunk-24FQ5XXN.js → chunk-35WLDIMQ.js} +3 -3
- package/dist/{chunk-FHC6KHIH.js → chunk-3DPHZKSL.js} +2 -2
- package/dist/{chunk-NWKVTUTN.js → chunk-3PO2LUY7.js} +355 -176
- package/dist/chunk-3PO2LUY7.js.map +1 -0
- package/dist/{chunk-T5GJVUSL.js → chunk-4CUYK2XD.js} +2 -2
- package/dist/{chunk-IVS2MAHD.js → chunk-4JQ3CMLS.js} +3 -3
- package/dist/{chunk-U4XSBYQW.js → chunk-5KYEDVL7.js} +5 -5
- package/dist/{chunk-N7T6NPE2.js → chunk-6A6XOLVB.js} +6 -6
- package/dist/{chunk-ZX4ONO5Y.js → chunk-6EFDXIA6.js} +5 -5
- package/dist/{chunk-NREZVTBP.js → chunk-6ER6IBFJ.js} +2 -2
- package/dist/{chunk-XIN6XUFL.js → chunk-6NOZK4JY.js} +2 -2
- package/dist/{chunk-4FN45EAF.js → chunk-7CH7FS5V.js} +3 -3
- package/dist/{chunk-OPV6BE3W.js → chunk-AB2KARHU.js} +8 -8
- package/dist/{chunk-GHY7GZWN.js → chunk-ADOCX5G3.js} +4 -4
- package/dist/{chunk-2MJQTFTI.js → chunk-B26TVG74.js} +3 -3
- package/dist/{chunk-GN7EAXHU.js → chunk-BFGD6UNG.js} +83 -21
- package/dist/chunk-BFGD6UNG.js.map +1 -0
- package/dist/{chunk-WOY35FXP.js → chunk-BHPTGWMO.js} +14 -12
- package/dist/chunk-BHPTGWMO.js.map +1 -0
- package/dist/{chunk-HNZ736XN.js → chunk-BUFPEKEG.js} +5 -5
- package/dist/{chunk-GNIYYXQX.js → chunk-CNR4IKC7.js} +2 -2
- package/dist/{chunk-5SXTMOO6.js → chunk-CUEAIOPD.js} +6 -6
- package/dist/{chunk-MVBBESXK.js → chunk-D4VRDMPK.js} +4 -4
- package/dist/{chunk-YKTJL4SW.js → chunk-D66CHEKN.js} +7 -7
- package/dist/{chunk-GF7RAQFD.js → chunk-FB7OAPCV.js} +3 -3
- package/dist/{chunk-ZMJR4Z6O.js → chunk-FW35KEAD.js} +2 -2
- package/dist/{chunk-2JLG65GB.js → chunk-G6LOB5IT.js} +3 -3
- package/dist/{chunk-HQDQRC4F.js → chunk-HEGROFQI.js} +2 -2
- package/dist/{chunk-ET5K6S5H.js → chunk-IMVJ3NEI.js} +22 -11
- package/dist/chunk-IMVJ3NEI.js.map +1 -0
- package/dist/chunk-J5QY4YRW.js +151 -0
- package/dist/chunk-J5QY4YRW.js.map +1 -0
- package/dist/{chunk-XBWS77S2.js → chunk-J7IGCYHZ.js} +2 -2
- package/dist/{chunk-5QENUGSC.js → chunk-JYYI2M4H.js} +18 -18
- package/dist/{chunk-MQXMYVZV.js → chunk-K3I2ZG2R.js} +15 -15
- package/dist/chunk-KBYXAQS3.js +482 -0
- package/dist/chunk-KBYXAQS3.js.map +1 -0
- package/dist/{chunk-4HQEYZIM.js → chunk-KEIID3YY.js} +7 -7
- package/dist/{chunk-INXHVNMZ.js → chunk-KPPDUVMP.js} +11 -11
- package/dist/{chunk-W5YYTITQ.js → chunk-KVLPKFGJ.js} +2 -2
- package/dist/{chunk-BI7HIO2I.js → chunk-LSEEMJH7.js} +6 -6
- package/dist/{chunk-44QJVFOF.js → chunk-M6PVGN5W.js} +2 -2
- package/dist/{chunk-HPUD5IGB.js → chunk-MBYQBTH2.js} +4 -4
- package/dist/{chunk-TL7VLRRF.js → chunk-MFSXOQLX.js} +7 -7
- package/dist/{chunk-VH5FRKJM.js → chunk-MG773CN7.js} +7 -7
- package/dist/{chunk-2FNYJEOH.js → chunk-NA4AOKAJ.js} +2 -2
- package/dist/{chunk-GTFMUWK6.js → chunk-NH6QDR7V.js} +7 -7
- package/dist/{chunk-ZG6HB4BO.js → chunk-NKC3QM4W.js} +13 -17
- package/dist/chunk-NKC3QM4W.js.map +1 -0
- package/dist/{chunk-HUWWMTNG.js → chunk-NVVDE63M.js} +22 -13
- package/dist/chunk-NVVDE63M.js.map +1 -0
- package/dist/{chunk-6PZ7RCXK.js → chunk-O3YB7GKT.js} +2 -2
- package/dist/{chunk-NS7WH53I.js → chunk-O45NATRC.js} +2 -2
- package/dist/{chunk-IXZOZZGD.js → chunk-OFIIGVE7.js} +9 -9
- package/dist/{chunk-DHZ5DF6Y.js → chunk-OPZL2MRQ.js} +34 -10
- package/dist/chunk-OPZL2MRQ.js.map +1 -0
- package/dist/{chunk-ETWP7MDS.js → chunk-Q53APMHH.js} +1 -1
- package/dist/chunk-Q53APMHH.js.map +1 -0
- package/dist/{chunk-IRDWXDID.js → chunk-QTDNSMOT.js} +2 -2
- package/dist/{chunk-XTAYJDL2.js → chunk-QZW77GWD.js} +6 -6
- package/dist/chunk-REVI2JIA.js +9 -0
- package/dist/{chunk-U2A2DHWP.js → chunk-RO25CJ2V.js} +5 -5
- package/dist/{chunk-ETAPX4JN.js → chunk-RSJZG4SD.js} +9 -9
- package/dist/chunk-RWGD6EXK.js +21 -0
- package/dist/chunk-RWGD6EXK.js.map +1 -0
- package/dist/{chunk-XWKN2HJD.js → chunk-S2Q6M64P.js} +60 -60
- package/dist/{chunk-773UJC5C.js → chunk-SEFMLXA6.js} +7 -7
- package/dist/{chunk-ZLPK2LQ3.js → chunk-V6U4HDFJ.js} +5 -5
- package/dist/{chunk-EORL2V7P.js → chunk-XPMXRCBW.js} +2 -2
- package/dist/{chunk-IXC6EXVJ.js → chunk-XR6EXIZN.js} +5 -5
- package/dist/{chunk-ROEEXEN7.js → chunk-XWUX474Q.js} +4 -150
- package/dist/chunk-XWUX474Q.js.map +1 -0
- package/dist/{chunk-APHVSSLI.js → chunk-XZAJSEXA.js} +2 -2
- package/dist/{chunk-ED6YLB4S.js → chunk-YQSWVHKK.js} +13 -13
- package/dist/chunk-YQSWVHKK.js.map +1 -0
- package/dist/{cleanup-ANVUCOBK.js → cleanup-54DBWJWN.js} +38 -40
- package/dist/{cleanup-ANVUCOBK.js.map → cleanup-54DBWJWN.js.map} +1 -1
- package/dist/{cli-CAF6VCVO.js → cli-VOZ6BCM5.js} +4 -4
- package/dist/{color-7CQNI6Y4.js → color-BVSEJ6G5.js} +14 -14
- package/dist/{config-EXQY26W4.js → config-6H54DGHU.js} +16 -17
- package/dist/{config-EXQY26W4.js.map → config-6H54DGHU.js.map} +1 -1
- package/dist/{coordinate-LRY7LXS6.js → coordinate-WXN3OGJE.js} +26 -16
- package/dist/coordinate-WXN3OGJE.js.map +1 -0
- package/dist/{diff-JRK3AUD5.js → diff-ZBMQVDNF.js} +15 -16
- package/dist/{diff-JRK3AUD5.js.map → diff-ZBMQVDNF.js.map} +1 -1
- package/dist/{digest-2AFW3WBL.js → digest-XEHPAI5L.js} +12 -12
- package/dist/{fork-DSNMPWUE.js → fork-UBBXUFNS.js} +33 -35
- package/dist/{fork-DSNMPWUE.js.map → fork-UBBXUFNS.js.map} +1 -1
- package/dist/{history-RFIDCGQY.js → history-CK3FEKBC.js} +10 -10
- package/dist/{hook-XBALB337.js → hook-FRKNNKO3.js} +31 -24
- package/dist/hook-FRKNNKO3.js.map +1 -0
- package/dist/{hydrate-DAEY4PB6.js → hydrate-K6TOIE7S.js} +11 -11
- package/dist/{init-4BK3T34W.js → init-JJFHX26N.js} +18 -19
- package/dist/{init-4BK3T34W.js.map → init-JJFHX26N.js.map} +1 -1
- package/dist/{install-skills-TL5D7HZU.js → install-skills-IUD6FMAF.js} +11 -9
- package/dist/install-skills-bin.js +10 -8
- package/dist/install-skills-bin.js.map +1 -1
- package/dist/{keep-57TUKADV.js → keep-APP2WSKT.js} +12 -12
- package/dist/{list-DRQRIT6U.js → list-OHGYVSWI.js} +11 -11
- package/dist/{move-UEHJ375P.js → move-OU33UWX6.js} +24 -25
- package/dist/{move-UEHJ375P.js.map → move-OU33UWX6.js.map} +1 -1
- package/dist/{note-FHPDVBRI.js → note-ELTUIFB6.js} +12 -12
- package/dist/{overlaps-GKAKEUB6.js → overlaps-C7LV7U47.js} +18 -19
- package/dist/{overlaps-GKAKEUB6.js.map → overlaps-C7LV7U47.js.map} +1 -1
- package/dist/{pin-CFTQDPPC.js → pin-W7A4GXHE.js} +13 -13
- package/dist/{pr-ZP4COZEZ.js → pr-G5PW3CQB.js} +26 -27
- package/dist/{pr-ZP4COZEZ.js.map → pr-G5PW3CQB.js.map} +1 -1
- package/dist/{prune-IQB2T45B.js → prune-ZVGGPC2X.js} +35 -37
- package/dist/{prune-IQB2T45B.js.map → prune-ZVGGPC2X.js.map} +1 -1
- package/dist/{pty-host-BPFGJFBC.js → pty-host-QRHAVCCV.js} +71 -32
- package/dist/pty-host-QRHAVCCV.js.map +1 -0
- package/dist/{read-DHJ6VY44.js → read-FHJHBUDI.js} +17 -13
- package/dist/{read-DHJ6VY44.js.map → read-FHJHBUDI.js.map} +1 -1
- package/dist/{recent-OZW2ZNJ4.js → recent-QOCMWXZY.js} +21 -22
- package/dist/{recent-OZW2ZNJ4.js.map → recent-QOCMWXZY.js.map} +1 -1
- package/dist/{remove-MW25RLNV.js → remove-BIF6SAUC.js} +36 -38
- package/dist/{remove-MW25RLNV.js.map → remove-BIF6SAUC.js.map} +1 -1
- package/dist/{report-II75EKM6.js → report-7TRHC2CQ.js} +16 -13
- package/dist/report-7TRHC2CQ.js.map +1 -0
- package/dist/{restart-4BGVRBX6.js → restart-YVWOAA7D.js} +14 -15
- package/dist/{restart-4BGVRBX6.js.map → restart-YVWOAA7D.js.map} +1 -1
- package/dist/{resume-4J53KDCO.js → resume-KDCRPOAZ.js} +21 -22
- package/dist/{resume-4J53KDCO.js.map → resume-KDCRPOAZ.js.map} +1 -1
- package/dist/{review-WKB3K6LI.js → review-YH5TH37K.js} +11 -11
- package/dist/{review-now-AT2SPPRO.js → review-now-4NBXZUJV.js} +2 -2
- package/dist/{run-YS2D7WAQ.js → run-T6YFDM2T.js} +10 -10
- package/dist/{screen-VVRNQXVW.js → screen-LXXS4KCS.js} +12 -12
- package/dist/{search-MKYCKZF4.js → search-HOIGQH66.js} +10 -10
- package/dist/{section-Y6RDD3MN.js → section-NF6SAXSF.js} +14 -14
- package/dist/{send-AZM2XKN2.js → send-ELRCW7PJ.js} +26 -16
- package/dist/send-ELRCW7PJ.js.map +1 -0
- package/dist/{sessions-OER6VNQJ.js → sessions-Y5X6OG3D.js} +31 -33
- package/dist/{sessions-OER6VNQJ.js.map → sessions-Y5X6OG3D.js.map} +1 -1
- package/dist/{show-33VV3XCF.js → show-5NYBZRYX.js} +11 -11
- package/dist/{snooze-OFYZVVYS.js → snooze-J2PV4C6X.js} +12 -12
- package/dist/{start-OEQ5VW7Y.js → start-DO4UJCS4.js} +12 -12
- package/dist/{state-HK67C4UA.js → state-63M6QBOW.js} +2 -2
- package/dist/{status-HPYMNO2T.js → status-FHIC2MKA.js} +15 -16
- package/dist/{status-HPYMNO2T.js.map → status-FHIC2MKA.js.map} +1 -1
- package/dist/{statusline-Z5HLKDIA.js → statusline-UP2KMHYX.js} +5 -5
- package/dist/{statusline-hook-VPPS3PFO.js → statusline-hook-6BNEVENM.js} +4 -4
- package/dist/{stop-QNICDWAU.js → stop-T2E62H4M.js} +12 -12
- package/dist/{sync-RH3M47QK.js → sync-3E4STI7L.js} +35 -37
- package/dist/{sync-RH3M47QK.js.map → sync-3E4STI7L.js.map} +1 -1
- package/dist/{time-PM72GK5W.js → time-JVF77UUA.js} +14 -14
- package/dist/{time-actions-O3MCB7FU.js → time-actions-JM3QKB5T.js} +3 -3
- package/dist/{timesheet-HJXQ4KHL.js → timesheet-B2HNBQQM.js} +23 -23
- package/dist/timesheet-B2HNBQQM.js.map +1 -0
- package/dist/{todo-UVKGOG7D.js → todo-3UNVCCMY.js} +2 -2
- package/dist/{tree-RGT736E3.js → tree-EMUBZEDU.js} +37 -39
- package/dist/{tree-RGT736E3.js.map → tree-EMUBZEDU.js.map} +1 -1
- package/dist/{update-CMYVBWV3.js → update-4XHZ4VQZ.js} +20 -21
- package/dist/{update-CMYVBWV3.js.map → update-4XHZ4VQZ.js.map} +1 -1
- package/dist/{usage-VEKD3JPL.js → usage-JDXG5SDA.js} +12 -12
- package/dist/{usage-ask-V2SIRW4F.js → usage-ask-5ZWNYLVJ.js} +11 -11
- package/dist/version-VT2JXBQT.js +31 -0
- package/dist/version-VT2JXBQT.js.map +1 -0
- package/dist/{wait-RQZU3KDY.js → wait-FEN3WAEQ.js} +13 -13
- package/dist/wd-bin.js +3 -3
- package/dist/web/assets/{PtyView-qP6blm2-.js → PtyView-C1X1ErwB.js} +2 -2
- package/dist/web/assets/{PtyView-qP6blm2-.js.map → PtyView-C1X1ErwB.js.map} +1 -1
- package/dist/web/assets/{index-yBTfBzDm.css → index-CfTmdABt.css} +1 -1
- package/dist/web/assets/index-vE5o2Ywu.js +129 -0
- package/dist/web/assets/index-vE5o2Ywu.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-GOCU26ZD.js → web-LU6GSQMK.js} +185 -100
- package/dist/web-LU6GSQMK.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/plugins/work-tree/skills/work-sessions/SKILL.md +35 -50
- package/dist/child-MVNEFA2I.js.map +0 -1
- package/dist/chunk-4CXUVBOD.js +0 -76
- package/dist/chunk-4CXUVBOD.js.map +0 -1
- package/dist/chunk-BMPTUIP4.js +0 -105
- package/dist/chunk-BMPTUIP4.js.map +0 -1
- package/dist/chunk-DHZ5DF6Y.js.map +0 -1
- package/dist/chunk-ED6YLB4S.js.map +0 -1
- package/dist/chunk-ET5K6S5H.js.map +0 -1
- package/dist/chunk-ETWP7MDS.js.map +0 -1
- package/dist/chunk-GN7EAXHU.js.map +0 -1
- package/dist/chunk-HUWWMTNG.js.map +0 -1
- package/dist/chunk-NRX5V443.js +0 -9
- package/dist/chunk-NWKVTUTN.js.map +0 -1
- package/dist/chunk-ROEEXEN7.js.map +0 -1
- package/dist/chunk-SJBEIYLK.js +0 -16
- package/dist/chunk-SJBEIYLK.js.map +0 -1
- package/dist/chunk-TC3H7I6O.js +0 -196
- package/dist/chunk-TC3H7I6O.js.map +0 -1
- package/dist/chunk-TNJF7T33.js +0 -17
- package/dist/chunk-TNJF7T33.js.map +0 -1
- package/dist/chunk-WOY35FXP.js.map +0 -1
- package/dist/chunk-ZG6HB4BO.js.map +0 -1
- package/dist/chunk-ZNRPBP5O.js.map +0 -1
- package/dist/coordinate-LRY7LXS6.js.map +0 -1
- package/dist/hook-XBALB337.js.map +0 -1
- package/dist/pty-host-BPFGJFBC.js.map +0 -1
- package/dist/report-II75EKM6.js.map +0 -1
- package/dist/send-AZM2XKN2.js.map +0 -1
- package/dist/timesheet-HJXQ4KHL.js.map +0 -1
- package/dist/version-RJ4PCHPB.js +0 -117
- package/dist/version-RJ4PCHPB.js.map +0 -1
- package/dist/web/assets/index-DuFRboh6.js +0 -129
- package/dist/web/assets/index-DuFRboh6.js.map +0 -1
- package/dist/web-GOCU26ZD.js.map +0 -1
- /package/dist/{answer-LKNMN2ZM.js.map → answer-M5SVGKGO.js.map} +0 -0
- /package/dist/{broadcast-I23BZI3R.js.map → broadcast-TVDWHKJE.js.map} +0 -0
- /package/dist/{catchup-G4EOJIZP.js.map → catchup-UGDVV5RI.js.map} +0 -0
- /package/dist/{chunk-NXS53NHR.js.map → chunk-2MAMYB72.js.map} +0 -0
- /package/dist/{chunk-HCYES6U7.js.map → chunk-32CMRR6M.js.map} +0 -0
- /package/dist/{chunk-24FQ5XXN.js.map → chunk-35WLDIMQ.js.map} +0 -0
- /package/dist/{chunk-FHC6KHIH.js.map → chunk-3DPHZKSL.js.map} +0 -0
- /package/dist/{chunk-T5GJVUSL.js.map → chunk-4CUYK2XD.js.map} +0 -0
- /package/dist/{chunk-IVS2MAHD.js.map → chunk-4JQ3CMLS.js.map} +0 -0
- /package/dist/{chunk-U4XSBYQW.js.map → chunk-5KYEDVL7.js.map} +0 -0
- /package/dist/{chunk-N7T6NPE2.js.map → chunk-6A6XOLVB.js.map} +0 -0
- /package/dist/{chunk-ZX4ONO5Y.js.map → chunk-6EFDXIA6.js.map} +0 -0
- /package/dist/{chunk-NREZVTBP.js.map → chunk-6ER6IBFJ.js.map} +0 -0
- /package/dist/{chunk-XIN6XUFL.js.map → chunk-6NOZK4JY.js.map} +0 -0
- /package/dist/{chunk-4FN45EAF.js.map → chunk-7CH7FS5V.js.map} +0 -0
- /package/dist/{chunk-OPV6BE3W.js.map → chunk-AB2KARHU.js.map} +0 -0
- /package/dist/{chunk-GHY7GZWN.js.map → chunk-ADOCX5G3.js.map} +0 -0
- /package/dist/{chunk-2MJQTFTI.js.map → chunk-B26TVG74.js.map} +0 -0
- /package/dist/{chunk-HNZ736XN.js.map → chunk-BUFPEKEG.js.map} +0 -0
- /package/dist/{chunk-GNIYYXQX.js.map → chunk-CNR4IKC7.js.map} +0 -0
- /package/dist/{chunk-5SXTMOO6.js.map → chunk-CUEAIOPD.js.map} +0 -0
- /package/dist/{chunk-MVBBESXK.js.map → chunk-D4VRDMPK.js.map} +0 -0
- /package/dist/{chunk-YKTJL4SW.js.map → chunk-D66CHEKN.js.map} +0 -0
- /package/dist/{chunk-GF7RAQFD.js.map → chunk-FB7OAPCV.js.map} +0 -0
- /package/dist/{chunk-ZMJR4Z6O.js.map → chunk-FW35KEAD.js.map} +0 -0
- /package/dist/{chunk-2JLG65GB.js.map → chunk-G6LOB5IT.js.map} +0 -0
- /package/dist/{chunk-HQDQRC4F.js.map → chunk-HEGROFQI.js.map} +0 -0
- /package/dist/{chunk-XBWS77S2.js.map → chunk-J7IGCYHZ.js.map} +0 -0
- /package/dist/{chunk-5QENUGSC.js.map → chunk-JYYI2M4H.js.map} +0 -0
- /package/dist/{chunk-MQXMYVZV.js.map → chunk-K3I2ZG2R.js.map} +0 -0
- /package/dist/{chunk-4HQEYZIM.js.map → chunk-KEIID3YY.js.map} +0 -0
- /package/dist/{chunk-INXHVNMZ.js.map → chunk-KPPDUVMP.js.map} +0 -0
- /package/dist/{chunk-W5YYTITQ.js.map → chunk-KVLPKFGJ.js.map} +0 -0
- /package/dist/{chunk-BI7HIO2I.js.map → chunk-LSEEMJH7.js.map} +0 -0
- /package/dist/{chunk-44QJVFOF.js.map → chunk-M6PVGN5W.js.map} +0 -0
- /package/dist/{chunk-HPUD5IGB.js.map → chunk-MBYQBTH2.js.map} +0 -0
- /package/dist/{chunk-TL7VLRRF.js.map → chunk-MFSXOQLX.js.map} +0 -0
- /package/dist/{chunk-VH5FRKJM.js.map → chunk-MG773CN7.js.map} +0 -0
- /package/dist/{chunk-2FNYJEOH.js.map → chunk-NA4AOKAJ.js.map} +0 -0
- /package/dist/{chunk-GTFMUWK6.js.map → chunk-NH6QDR7V.js.map} +0 -0
- /package/dist/{chunk-6PZ7RCXK.js.map → chunk-O3YB7GKT.js.map} +0 -0
- /package/dist/{chunk-NS7WH53I.js.map → chunk-O45NATRC.js.map} +0 -0
- /package/dist/{chunk-IXZOZZGD.js.map → chunk-OFIIGVE7.js.map} +0 -0
- /package/dist/{chunk-IRDWXDID.js.map → chunk-QTDNSMOT.js.map} +0 -0
- /package/dist/{chunk-XTAYJDL2.js.map → chunk-QZW77GWD.js.map} +0 -0
- /package/dist/{chunk-NRX5V443.js.map → chunk-REVI2JIA.js.map} +0 -0
- /package/dist/{chunk-U2A2DHWP.js.map → chunk-RO25CJ2V.js.map} +0 -0
- /package/dist/{chunk-ETAPX4JN.js.map → chunk-RSJZG4SD.js.map} +0 -0
- /package/dist/{chunk-XWKN2HJD.js.map → chunk-S2Q6M64P.js.map} +0 -0
- /package/dist/{chunk-773UJC5C.js.map → chunk-SEFMLXA6.js.map} +0 -0
- /package/dist/{chunk-ZLPK2LQ3.js.map → chunk-V6U4HDFJ.js.map} +0 -0
- /package/dist/{chunk-EORL2V7P.js.map → chunk-XPMXRCBW.js.map} +0 -0
- /package/dist/{chunk-IXC6EXVJ.js.map → chunk-XR6EXIZN.js.map} +0 -0
- /package/dist/{chunk-APHVSSLI.js.map → chunk-XZAJSEXA.js.map} +0 -0
- /package/dist/{cli-CAF6VCVO.js.map → cli-VOZ6BCM5.js.map} +0 -0
- /package/dist/{color-7CQNI6Y4.js.map → color-BVSEJ6G5.js.map} +0 -0
- /package/dist/{digest-2AFW3WBL.js.map → digest-XEHPAI5L.js.map} +0 -0
- /package/dist/{history-RFIDCGQY.js.map → history-CK3FEKBC.js.map} +0 -0
- /package/dist/{hydrate-DAEY4PB6.js.map → hydrate-K6TOIE7S.js.map} +0 -0
- /package/dist/{install-skills-TL5D7HZU.js.map → install-skills-IUD6FMAF.js.map} +0 -0
- /package/dist/{keep-57TUKADV.js.map → keep-APP2WSKT.js.map} +0 -0
- /package/dist/{list-DRQRIT6U.js.map → list-OHGYVSWI.js.map} +0 -0
- /package/dist/{note-FHPDVBRI.js.map → note-ELTUIFB6.js.map} +0 -0
- /package/dist/{pin-CFTQDPPC.js.map → pin-W7A4GXHE.js.map} +0 -0
- /package/dist/{review-WKB3K6LI.js.map → review-YH5TH37K.js.map} +0 -0
- /package/dist/{review-now-AT2SPPRO.js.map → review-now-4NBXZUJV.js.map} +0 -0
- /package/dist/{run-YS2D7WAQ.js.map → run-T6YFDM2T.js.map} +0 -0
- /package/dist/{screen-VVRNQXVW.js.map → screen-LXXS4KCS.js.map} +0 -0
- /package/dist/{search-MKYCKZF4.js.map → search-HOIGQH66.js.map} +0 -0
- /package/dist/{section-Y6RDD3MN.js.map → section-NF6SAXSF.js.map} +0 -0
- /package/dist/{show-33VV3XCF.js.map → show-5NYBZRYX.js.map} +0 -0
- /package/dist/{snooze-OFYZVVYS.js.map → snooze-J2PV4C6X.js.map} +0 -0
- /package/dist/{start-OEQ5VW7Y.js.map → start-DO4UJCS4.js.map} +0 -0
- /package/dist/{state-HK67C4UA.js.map → state-63M6QBOW.js.map} +0 -0
- /package/dist/{statusline-Z5HLKDIA.js.map → statusline-UP2KMHYX.js.map} +0 -0
- /package/dist/{statusline-hook-VPPS3PFO.js.map → statusline-hook-6BNEVENM.js.map} +0 -0
- /package/dist/{stop-QNICDWAU.js.map → stop-T2E62H4M.js.map} +0 -0
- /package/dist/{time-PM72GK5W.js.map → time-JVF77UUA.js.map} +0 -0
- /package/dist/{time-actions-O3MCB7FU.js.map → time-actions-JM3QKB5T.js.map} +0 -0
- /package/dist/{todo-UVKGOG7D.js.map → todo-3UNVCCMY.js.map} +0 -0
- /package/dist/{usage-VEKD3JPL.js.map → usage-JDXG5SDA.js.map} +0 -0
- /package/dist/{usage-ask-V2SIRW4F.js.map → usage-ask-5ZWNYLVJ.js.map} +0 -0
- /package/dist/{wait-RQZU3KDY.js.map → wait-FEN3WAEQ.js.map} +0 -0
|
@@ -6,33 +6,33 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
sessionFromArgs,
|
|
8
8
|
sessionPositionals
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ADOCX5G3.js";
|
|
10
10
|
import "./chunk-6AQRYLOB.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-FW35KEAD.js";
|
|
12
12
|
import "./chunk-ZSHWP2VS.js";
|
|
13
13
|
import "./chunk-UPS7NHKI.js";
|
|
14
14
|
import "./chunk-HUXS3VAI.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-NVVDE63M.js";
|
|
16
16
|
import "./chunk-NEJVK5CF.js";
|
|
17
|
-
import "./chunk-QGUBOOEN.js";
|
|
18
17
|
import {
|
|
19
18
|
agentOf
|
|
20
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-3PO2LUY7.js";
|
|
21
20
|
import "./chunk-KGHWHAVF.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-ED6YLB4S.js";
|
|
21
|
+
import "./chunk-QGUBOOEN.js";
|
|
24
22
|
import "./chunk-Z6ACV5ZQ.js";
|
|
25
|
-
import "./chunk-JUGF3YE7.js";
|
|
26
|
-
import "./chunk-HK6AZQ5Z.js";
|
|
27
|
-
import "./chunk-XIN6XUFL.js";
|
|
28
|
-
import "./chunk-ETWP7MDS.js";
|
|
29
23
|
import "./chunk-7ZATXG5F.js";
|
|
24
|
+
import "./chunk-JUGF3YE7.js";
|
|
30
25
|
import "./chunk-BR6OWWAA.js";
|
|
26
|
+
import "./chunk-KBYXAQS3.js";
|
|
27
|
+
import "./chunk-YQSWVHKK.js";
|
|
28
|
+
import "./chunk-6NOZK4JY.js";
|
|
29
|
+
import "./chunk-Q53APMHH.js";
|
|
31
30
|
import "./chunk-M2X6OHHR.js";
|
|
32
31
|
import "./chunk-QOSAWNOU.js";
|
|
33
32
|
import "./chunk-D2J3AD6L.js";
|
|
34
33
|
import "./chunk-5ZCCUM75.js";
|
|
35
34
|
import "./chunk-IAKOKZYW.js";
|
|
35
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
36
36
|
import "./chunk-F2ECTTSY.js";
|
|
37
37
|
|
|
38
38
|
// src/commands/read.ts
|
|
@@ -58,7 +58,11 @@ var readCommand = {
|
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
if (entries.length === 0) {
|
|
61
|
-
console.error(
|
|
61
|
+
console.error(
|
|
62
|
+
chalk.yellow(
|
|
63
|
+
`No conversation found for ${s.target} \xB7 ${s.branch} yet. An agent that just started writes its first messages a little later: wait for its turn (\`work wait\`) before sending it anything again.`
|
|
64
|
+
)
|
|
65
|
+
);
|
|
62
66
|
return;
|
|
63
67
|
}
|
|
64
68
|
console.log(formatConversation(entries, agent.name));
|
|
@@ -67,4 +71,4 @@ var readCommand = {
|
|
|
67
71
|
export {
|
|
68
72
|
readCommand
|
|
69
73
|
};
|
|
70
|
-
//# sourceMappingURL=read-
|
|
74
|
+
//# sourceMappingURL=read-FHJHBUDI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/read.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { agentOf } from '../core/agents/index.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\nimport { formatConversation, READ_AS_DATA } from './shared/conversation-format.js';\n\n/** `work read` — a session's latest messages: yours, its agent's, its tool calls (agents/: the conversation, in work's own terms). */\nexport const readCommand: CommandModule = {\n command: 'read [target] [branch]',\n describe: \"A session's latest messages — yours, its agent's and its tool calls (default: the session for this folder)\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('last', { type: 'number', default: 20, describe: 'How many messages (newest last)' })\n .option('json', { type: 'boolean', default: false, describe: 'The entries as JSON: { at, role: you|agent|tool, text, tool? }' }),\n handler: (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const agent = agentOf(s);\n if (!agent.conversation) {\n console.error(chalk.red(`work can't read ${agent.name}'s conversations yet.`));\n process.exitCode = 1;\n return;\n }\n const last = Math.max(1, Math.min(500, Math.floor(Number(argv.last) || 20)));\n const entries = agent.conversation.read(s, { last });\n // On stderr either way: an agent parsing the JSON reads it too.\n if (entries.length) console.error(chalk.gray(`${s.target} · ${s.branch} — ${READ_AS_DATA}`));\n if (argv.json) {\n process.stdout.write(JSON.stringify(entries, null, 2) + '\\n');\n return;\n }\n if (entries.length === 0) {\n console.error(chalk.yellow(`No conversation found for ${s.target} · ${s.branch}
|
|
1
|
+
{"version":3,"sources":["../src/commands/read.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { agentOf } from '../core/agents/index.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\nimport { formatConversation, READ_AS_DATA } from './shared/conversation-format.js';\n\n/** `work read` — a session's latest messages: yours, its agent's, its tool calls (agents/: the conversation, in work's own terms). */\nexport const readCommand: CommandModule = {\n command: 'read [target] [branch]',\n describe: \"A session's latest messages — yours, its agent's and its tool calls (default: the session for this folder)\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('last', { type: 'number', default: 20, describe: 'How many messages (newest last)' })\n .option('json', { type: 'boolean', default: false, describe: 'The entries as JSON: { at, role: you|agent|tool, text, tool? }' }),\n handler: (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const agent = agentOf(s);\n if (!agent.conversation) {\n console.error(chalk.red(`work can't read ${agent.name}'s conversations yet.`));\n process.exitCode = 1;\n return;\n }\n const last = Math.max(1, Math.min(500, Math.floor(Number(argv.last) || 20)));\n const entries = agent.conversation.read(s, { last });\n // On stderr either way: an agent parsing the JSON reads it too.\n if (entries.length) console.error(chalk.gray(`${s.target} · ${s.branch} — ${READ_AS_DATA}`));\n if (argv.json) {\n process.stdout.write(JSON.stringify(entries, null, 2) + '\\n');\n return;\n }\n if (entries.length === 0) {\n // Reported: a coordinator read this right after `work child spawn` as \"the task was lost\" and sent it again.\n // A Claude that just started writes nothing until its first turn is under way.\n console.error(\n chalk.yellow(\n `No conversation found for ${s.target} · ${s.branch} yet. An agent that just started writes its first messages a little later: wait for its turn (\\`work wait\\`) before sending it anything again.`,\n ),\n );\n return;\n }\n console.log(formatConversation(entries, agent.name));\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAOX,IAAM,cAA6B;AAAA,EACxC,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,mBAAmB,KAAK,EACrB,OAAO,QAAQ,EAAE,MAAM,UAAU,SAAS,IAAI,UAAU,kCAAkC,CAAC,EAC3F,OAAO,QAAQ,EAAE,MAAM,WAAW,SAAS,OAAO,UAAU,iEAAiE,CAAC;AAAA,EACnI,SAAS,CAAC,SAAS;AACjB,UAAM,IAAI,gBAAgB,IAAI;AAC9B,QAAI,CAAC,EAAG;AACR,UAAM,QAAQ,QAAQ,CAAC;AACvB,QAAI,CAAC,MAAM,cAAc;AACvB,cAAQ,MAAM,MAAM,IAAI,mBAAmB,MAAM,IAAI,uBAAuB,CAAC;AAC7E,cAAQ,WAAW;AACnB;AAAA,IACF;AACA,UAAM,OAAO,KAAK,IAAI,GAAG,KAAK,IAAI,KAAK,KAAK,MAAM,OAAO,KAAK,IAAI,KAAK,EAAE,CAAC,CAAC;AAC3E,UAAM,UAAU,MAAM,aAAa,KAAK,GAAG,EAAE,KAAK,CAAC;AAEnD,QAAI,QAAQ,OAAQ,SAAQ,MAAM,MAAM,KAAK,GAAG,EAAE,MAAM,SAAM,EAAE,MAAM,WAAM,YAAY,EAAE,CAAC;AAC3F,QAAI,KAAK,MAAM;AACb,cAAQ,OAAO,MAAM,KAAK,UAAU,SAAS,MAAM,CAAC,IAAI,IAAI;AAC5D;AAAA,IACF;AACA,QAAI,QAAQ,WAAW,GAAG;AAGxB,cAAQ;AAAA,QACN,MAAM;AAAA,UACJ,6BAA6B,EAAE,MAAM,SAAM,EAAE,MAAM;AAAA,QACrD;AAAA,MACF;AACA;AAAA,IACF;AACA,YAAQ,IAAI,mBAAmB,SAAS,MAAM,IAAI,CAAC;AAAA,EACrD;AACF;","names":[]}
|
|
@@ -8,53 +8,52 @@ import {
|
|
|
8
8
|
} from "./chunk-S3CTXKSN.js";
|
|
9
9
|
import {
|
|
10
10
|
clearLaunchedUnsafeWhenIdle
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AB2KARHU.js";
|
|
12
12
|
import "./chunk-FZHFD2AY.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-2MAMYB72.js";
|
|
14
|
+
import "./chunk-M6PVGN5W.js";
|
|
15
|
+
import "./chunk-O3YB7GKT.js";
|
|
16
|
+
import "./chunk-32CMRR6M.js";
|
|
17
|
+
import "./chunk-O45NATRC.js";
|
|
18
|
+
import "./chunk-FW35KEAD.js";
|
|
19
19
|
import "./chunk-ZSHWP2VS.js";
|
|
20
20
|
import "./chunk-UPS7NHKI.js";
|
|
21
21
|
import "./chunk-HUXS3VAI.js";
|
|
22
22
|
import {
|
|
23
23
|
launchAi
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-4CXUVBOD.js";
|
|
24
|
+
} from "./chunk-SEFMLXA6.js";
|
|
26
25
|
import {
|
|
27
26
|
effectiveLastAccessedAt,
|
|
28
27
|
getRecentSessions,
|
|
29
28
|
loadHistory,
|
|
30
29
|
touchSession
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NVVDE63M.js";
|
|
32
31
|
import "./chunk-NEJVK5CF.js";
|
|
33
|
-
import "./chunk-QGUBOOEN.js";
|
|
34
32
|
import {
|
|
35
33
|
agentFor,
|
|
36
34
|
sessionToolFor,
|
|
37
35
|
trustAgentFolder
|
|
38
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3PO2LUY7.js";
|
|
39
37
|
import "./chunk-KGHWHAVF.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
envArgs
|
|
43
|
-
} from "./chunk-ED6YLB4S.js";
|
|
38
|
+
import "./chunk-QGUBOOEN.js";
|
|
44
39
|
import "./chunk-Z6ACV5ZQ.js";
|
|
40
|
+
import "./chunk-7ZATXG5F.js";
|
|
45
41
|
import "./chunk-JUGF3YE7.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-BR6OWWAA.js";
|
|
43
|
+
import "./chunk-KBYXAQS3.js";
|
|
44
|
+
import {
|
|
45
|
+
envArgs
|
|
46
|
+
} from "./chunk-YQSWVHKK.js";
|
|
47
|
+
import "./chunk-6NOZK4JY.js";
|
|
48
48
|
import {
|
|
49
49
|
ensureConfig
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-7ZATXG5F.js";
|
|
52
|
-
import "./chunk-BR6OWWAA.js";
|
|
50
|
+
} from "./chunk-Q53APMHH.js";
|
|
53
51
|
import "./chunk-M2X6OHHR.js";
|
|
54
52
|
import "./chunk-QOSAWNOU.js";
|
|
55
53
|
import "./chunk-D2J3AD6L.js";
|
|
56
54
|
import "./chunk-5ZCCUM75.js";
|
|
57
55
|
import "./chunk-IAKOKZYW.js";
|
|
56
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
58
57
|
import "./chunk-F2ECTTSY.js";
|
|
59
58
|
|
|
60
59
|
// src/commands/recent.ts
|
|
@@ -145,4 +144,4 @@ var recentCommand = {
|
|
|
145
144
|
export {
|
|
146
145
|
recentCommand
|
|
147
146
|
};
|
|
148
|
-
//# sourceMappingURL=recent-
|
|
147
|
+
//# sourceMappingURL=recent-QOCMWXZY.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/recent.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor, sessionToolFor, trustAgentFolder } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { select } from '@inquirer/prompts';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { loadHistory, getRecentSessions, touchSession } from '../core/sessions/history.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { effectiveLastAccessedAt } from '../core/sessions/session-activity.js';\nimport { launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { timeAgo } from '../core/platform/format.js';\n\nexport const recentCommand: CommandModule = {\n command: 'recent [count]',\n describe: 'List recent worktree sessions',\n builder: (yargs) =>\n yargs\n .positional('count', {\n describe: 'Number of recent sessions to show',\n type: 'number',\n default: 10,\n })\n .option('resume', {\n describe: 'Interactively pick a session and launch the configured AI tool',\n type: 'boolean',\n default: false,\n })\n .option('unsafe', retiredUnsafeOption),\n handler: async (argv) => {\n const count = argv.count as number;\n const resume = argv.resume as boolean;\n warnRetiredUnsafe(argv);\n\n const config = ensureConfig();\n\n const sessions = loadHistory();\n const recent = getRecentSessions(sessions, count);\n\n if (recent.length === 0) {\n console.log(chalk.yellow('No recent worktree sessions found.'));\n return;\n }\n\n if (resume) {\n // Filter to sessions that still exist on disk\n const valid = recent.filter((s) => s.paths.some((p) => fs.existsSync(p)));\n\n if (valid.length === 0) {\n console.log(chalk.yellow('No resumable sessions (all paths removed from disk).'));\n return;\n }\n\n const choices = valid.map((s) => {\n const typeTag = s.isGroup ? '[group]' : '[repo]';\n return {\n name: `${typeTag} ${s.target} ${s.branch} (${timeAgo(effectiveLastAccessedAt(s))})`,\n value: s,\n };\n });\n\n const choice = await select({\n message: 'Select a session to resume:',\n choices,\n pageSize: 15,\n });\n\n // Find first existing path\n const firstExisting = choice.paths.find((p) => fs.existsSync(p));\n if (!firstExisting) {\n console.error('Session path no longer exists.');\n process.exitCode = 1;\n return;\n }\n\n // Resume where Claude actually has a transcript (group root or the\n // sub-repo the user worked in); start fresh when none exists so\n // `--continue` doesn't error out. Mirrors `work resume`.\n const { launchPath, hasConversation } = agentFor(config, choice).launch.resumeLaunch(choice);\n\n // Only its last access: the list was read before the picker waited on you, and a repo may have been added since.\n touchSession(choice.target, choice.branch);\n clearLaunchedUnsafeWhenIdle(choice.target, choice.branch); // started normally now, unless the old one still runs (legacy-unsafe.ts; remove next release)\n\n const tool = agentFor(config, choice).launch.tool(config);\n console.log(chalk.cyan(`Resuming in: ${launchPath}`));\n if (!hasConversation) {\n console.log(chalk.yellow(`No prior ${tool.cmd} conversation found for this worktree — starting a fresh session.`));\n }\n trustAgentFolder(agentFor(config, choice), choice, launchPath);\n console.log(`Starting ${tool.cmd}...`);\n launchAi(\n launchPath,\n sessionToolFor(tool),\n { resume: hasConversation },\n choice.port,\n ...envArgs(agentFor(config, choice).launch.env?.(choice)),\n );\n return;\n }\n\n // Just list recent sessions\n console.log('');\n console.log(chalk.cyan('Recent Sessions'));\n console.log(chalk.cyan('==============='));\n console.log('');\n\n for (const session of recent) {\n const typeLabel = session.isGroup ? chalk.magenta('[group]') : chalk.blue('[repo]');\n const exists = session.paths.some((p) => fs.existsSync(p));\n const existsTag = exists ? '' : chalk.red(' [removed]');\n\n console.log(`${typeLabel} ${chalk.green(session.target)} ${chalk.white(session.branch)}${existsTag}`);\n console.log(chalk.gray(` Last used: ${timeAgo(effectiveLastAccessedAt(session))}`));\n }\n\n console.log('');\n console.log(chalk.gray('Use work resume to interactively resume a session.'));\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/recent.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor, sessionToolFor, trustAgentFolder } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { select } from '@inquirer/prompts';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { loadHistory, getRecentSessions, touchSession } from '../core/sessions/history.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { effectiveLastAccessedAt } from '../core/sessions/session-activity.js';\nimport { launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { timeAgo } from '../core/platform/format.js';\n\nexport const recentCommand: CommandModule = {\n command: 'recent [count]',\n describe: 'List recent worktree sessions',\n builder: (yargs) =>\n yargs\n .positional('count', {\n describe: 'Number of recent sessions to show',\n type: 'number',\n default: 10,\n })\n .option('resume', {\n describe: 'Interactively pick a session and launch the configured AI tool',\n type: 'boolean',\n default: false,\n })\n .option('unsafe', retiredUnsafeOption),\n handler: async (argv) => {\n const count = argv.count as number;\n const resume = argv.resume as boolean;\n warnRetiredUnsafe(argv);\n\n const config = ensureConfig();\n\n const sessions = loadHistory();\n const recent = getRecentSessions(sessions, count);\n\n if (recent.length === 0) {\n console.log(chalk.yellow('No recent worktree sessions found.'));\n return;\n }\n\n if (resume) {\n // Filter to sessions that still exist on disk\n const valid = recent.filter((s) => s.paths.some((p) => fs.existsSync(p)));\n\n if (valid.length === 0) {\n console.log(chalk.yellow('No resumable sessions (all paths removed from disk).'));\n return;\n }\n\n const choices = valid.map((s) => {\n const typeTag = s.isGroup ? '[group]' : '[repo]';\n return {\n name: `${typeTag} ${s.target} ${s.branch} (${timeAgo(effectiveLastAccessedAt(s))})`,\n value: s,\n };\n });\n\n const choice = await select({\n message: 'Select a session to resume:',\n choices,\n pageSize: 15,\n });\n\n // Find first existing path\n const firstExisting = choice.paths.find((p) => fs.existsSync(p));\n if (!firstExisting) {\n console.error('Session path no longer exists.');\n process.exitCode = 1;\n return;\n }\n\n // Resume where Claude actually has a transcript (group root or the\n // sub-repo the user worked in); start fresh when none exists so\n // `--continue` doesn't error out. Mirrors `work resume`.\n const { launchPath, hasConversation } = agentFor(config, choice).launch.resumeLaunch(choice);\n\n // Only its last access: the list was read before the picker waited on you, and a repo may have been added since.\n touchSession(choice.target, choice.branch);\n clearLaunchedUnsafeWhenIdle(choice.target, choice.branch); // started normally now, unless the old one still runs (legacy-unsafe.ts; remove next release)\n\n const tool = agentFor(config, choice).launch.tool(config);\n console.log(chalk.cyan(`Resuming in: ${launchPath}`));\n if (!hasConversation) {\n console.log(chalk.yellow(`No prior ${tool.cmd} conversation found for this worktree — starting a fresh session.`));\n }\n trustAgentFolder(agentFor(config, choice), choice, launchPath);\n console.log(`Starting ${tool.cmd}...`);\n launchAi(\n launchPath,\n sessionToolFor(tool),\n { resume: hasConversation },\n choice.port,\n ...envArgs(agentFor(config, choice).launch.env?.(choice)),\n );\n return;\n }\n\n // Just list recent sessions\n console.log('');\n console.log(chalk.cyan('Recent Sessions'));\n console.log(chalk.cyan('==============='));\n console.log('');\n\n for (const session of recent) {\n const typeLabel = session.isGroup ? chalk.magenta('[group]') : chalk.blue('[repo]');\n const exists = session.paths.some((p) => fs.existsSync(p));\n const existsTag = exists ? '' : chalk.red(' [removed]');\n\n console.log(`${typeLabel} ${chalk.green(session.target)} ${chalk.white(session.branch)}${existsTag}`);\n console.log(chalk.gray(` Last used: ${timeAgo(effectiveLastAccessedAt(session))}`));\n }\n\n console.log('');\n console.log(chalk.gray('Use work resume to interactively resume a session.'));\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,WAAW;AAElB,SAAS,cAAc;AAUhB,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,WAAW,SAAS;AAAA,IACnB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EACA,OAAO,UAAU;AAAA,IAChB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA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
import {
|
|
3
3
|
WORKTREE_REMOVED
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NA4AOKAJ.js";
|
|
5
5
|
import {
|
|
6
6
|
archiveWaiting
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-K3I2ZG2R.js";
|
|
8
8
|
import "./chunk-AKMPF72Y.js";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-CUEAIOPD.js";
|
|
10
|
+
import "./chunk-B26TVG74.js";
|
|
11
|
+
import "./chunk-XR6EXIZN.js";
|
|
12
12
|
import {
|
|
13
13
|
stopSessionPty
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JYYI2M4H.js";
|
|
15
15
|
import "./chunk-BCYBF7KJ.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-6ER6IBFJ.js";
|
|
17
|
+
import "./chunk-O3YB7GKT.js";
|
|
18
|
+
import "./chunk-32CMRR6M.js";
|
|
19
|
+
import "./chunk-O45NATRC.js";
|
|
20
20
|
import {
|
|
21
21
|
teardownWorktree,
|
|
22
22
|
wouldRefuseRemoval
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OFIIGVE7.js";
|
|
24
24
|
import "./chunk-Y7PWSACJ.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-HNZ736XN.js";
|
|
31
|
-
import "./chunk-DHZ5DF6Y.js";
|
|
25
|
+
import "./chunk-XPMXRCBW.js";
|
|
26
|
+
import "./chunk-LSEEMJH7.js";
|
|
27
|
+
import "./chunk-V6U4HDFJ.js";
|
|
28
|
+
import "./chunk-QTDNSMOT.js";
|
|
29
|
+
import "./chunk-BUFPEKEG.js";
|
|
32
30
|
import "./chunk-7E5XPDKX.js";
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-HEGROFQI.js";
|
|
32
|
+
import "./chunk-OPZL2MRQ.js";
|
|
33
|
+
import "./chunk-FW35KEAD.js";
|
|
35
34
|
import "./chunk-ZSHWP2VS.js";
|
|
36
35
|
import "./chunk-UPS7NHKI.js";
|
|
37
36
|
import "./chunk-HUXS3VAI.js";
|
|
38
37
|
import "./chunk-LM2T5OR3.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-6A6XOLVB.js";
|
|
39
|
+
import "./chunk-MG773CN7.js";
|
|
40
|
+
import "./chunk-RO25CJ2V.js";
|
|
42
41
|
import "./chunk-FGPXMAYU.js";
|
|
43
42
|
import "./chunk-MJIYIMPI.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-4CXUVBOD.js";
|
|
43
|
+
import "./chunk-CNR4IKC7.js";
|
|
44
|
+
import "./chunk-4CUYK2XD.js";
|
|
45
|
+
import "./chunk-J7IGCYHZ.js";
|
|
48
46
|
import {
|
|
49
47
|
findSession,
|
|
50
48
|
loadHistory,
|
|
51
49
|
removeSession
|
|
52
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-NVVDE63M.js";
|
|
53
51
|
import "./chunk-NEJVK5CF.js";
|
|
52
|
+
import "./chunk-3PO2LUY7.js";
|
|
53
|
+
import "./chunk-KGHWHAVF.js";
|
|
54
54
|
import {
|
|
55
55
|
sessionIdFor
|
|
56
56
|
} from "./chunk-QGUBOOEN.js";
|
|
57
|
-
import "./chunk-NWKVTUTN.js";
|
|
58
|
-
import "./chunk-KGHWHAVF.js";
|
|
59
|
-
import "./chunk-BMPTUIP4.js";
|
|
60
|
-
import "./chunk-ED6YLB4S.js";
|
|
61
57
|
import {
|
|
62
58
|
getAllTargetNames,
|
|
63
59
|
resolveProjectTarget
|
|
64
60
|
} from "./chunk-IPHADNF5.js";
|
|
65
61
|
import "./chunk-JYWX2N5W.js";
|
|
66
62
|
import "./chunk-Z6ACV5ZQ.js";
|
|
63
|
+
import "./chunk-7ZATXG5F.js";
|
|
67
64
|
import "./chunk-JUGF3YE7.js";
|
|
68
|
-
import "./chunk-
|
|
69
|
-
import "./chunk-
|
|
65
|
+
import "./chunk-BR6OWWAA.js";
|
|
66
|
+
import "./chunk-KBYXAQS3.js";
|
|
67
|
+
import "./chunk-YQSWVHKK.js";
|
|
68
|
+
import "./chunk-6NOZK4JY.js";
|
|
70
69
|
import {
|
|
71
70
|
ensureConfig
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import "./chunk-7ZATXG5F.js";
|
|
74
|
-
import "./chunk-BR6OWWAA.js";
|
|
71
|
+
} from "./chunk-Q53APMHH.js";
|
|
75
72
|
import "./chunk-M2X6OHHR.js";
|
|
76
73
|
import "./chunk-QOSAWNOU.js";
|
|
77
74
|
import "./chunk-D2J3AD6L.js";
|
|
78
75
|
import "./chunk-5ZCCUM75.js";
|
|
79
76
|
import "./chunk-IAKOKZYW.js";
|
|
77
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
80
78
|
import "./chunk-F2ECTTSY.js";
|
|
81
79
|
|
|
82
80
|
// src/commands/remove.ts
|
|
@@ -148,4 +146,4 @@ var removeCommand = {
|
|
|
148
146
|
export {
|
|
149
147
|
removeCommand
|
|
150
148
|
};
|
|
151
|
-
//# sourceMappingURL=remove-
|
|
149
|
+
//# sourceMappingURL=remove-BIF6SAUC.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/remove.ts"],"sourcesContent":["import fs from 'node:fs';\nimport chalk from 'chalk';\nimport { archiveWaiting } from '../core/archive/session-archive-deps.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { stopSessionPty } from '../core/pty/pty-pool.js';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames } from '../core/worktree/resolve.js';\nimport { teardownWorktree, wouldRefuseRemoval } from '../core/worktree/worktree.js';\nimport { findSession, loadHistory, removeSession } from '../core/sessions/history.js';\nimport { WORKTREE_REMOVED } from '../core/worktree/remove-child.js';\n\nexport const removeCommand: CommandModule = {\n command: 'remove <target> <branch>',\n describe: 'Remove a worktree',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n demandOption: true,\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login)',\n type: 'string',\n demandOption: true,\n })\n .option('force', {\n describe: 'Force remove even with uncommitted/unpushed changes',\n type: 'boolean',\n default: false,\n })\n // work web's Archive: only the folders, the session kept, its agent already stopped (remove-child.ts).\n .option('worktree-only', { type: 'boolean', default: false, hidden: true }),\n handler: async (argv) => {\n const targetName = argv.target as string;\n const branchName = argv.branch as string;\n const force = argv.force as boolean;\n\n const config = ensureConfig();\n\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\n // work web's Archive, in a child so its git doesn't hold the server up: the folders only. The archive has\n // already checked nothing is lost, saved what's uncommitted and stopped the agent; the session stays.\n if (argv['worktree-only']) {\n const s = findSession(loadHistory(), targetName, branchName);\n const gone = !s || s.paths.every((p) => !fs.existsSync(p));\n const removed = gone || teardownWorktree(targetName, s.isGroup, branchName, config, true, s.paths);\n console.log(`${WORKTREE_REMOVED}${removed === true}`);\n return;\n }\n\n // What removing would cut off — its Claude mid-turn or waiting on you,\n // replies to post, notes not yet delivered — refuses it unless --force,\n // as the dashboard's delete does.\n const existing = findSession(loadHistory(), targetName, branchName);\n if (existing && !force) {\n const waiting = archiveWaiting(sessionIdFor(existing));\n if (waiting.length) {\n console.error(chalk.red(`Not removed: ${waiting.join('; ')}.`));\n console.log(chalk.yellow(`Use 'work remove ${targetName} ${branchName} --force' to remove it anyway.`));\n process.exitCode = 1;\n return;\n }\n }\n\n console.log(chalk.cyan(`Removing worktree: ${targetName}/${branchName}`));\n console.log('');\n\n // A Claude still running in the worktree (PTY host session) holds it\n // open — Windows refuses the delete — so stop it first. Only when the\n // removal will go through: a refused one must leave the agent running.\n const paths = findSession(loadHistory(), targetName, branchName)?.paths ?? [];\n if (paths.every((p) => !wouldRefuseRemoval(p, force))) {\n await stopSessionPty(targetName, branchName);\n }\n // The session's folder, not the branch name: the branch checked out in it\n // may have been switched since.\n const allRemoved = teardownWorktree(targetName, target.isGroup, branchName, config, force, paths.length ? paths : undefined);\n\n if (allRemoved === true) {\n await removeSession(targetName, branchName);\n } else {\n process.exitCode = 1;\n console.log('');\n console.log(chalk.yellow('Some worktrees could not be removed due to uncommitted/unpushed changes.'));\n console.log(chalk.yellow(`Use 'work remove ${targetName} ${branchName} --force' to force remove.`));\n }\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/remove.ts"],"sourcesContent":["import fs from 'node:fs';\nimport chalk from 'chalk';\nimport { archiveWaiting } from '../core/archive/session-archive-deps.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { stopSessionPty } from '../core/pty/pty-pool.js';\nimport type { CommandModule } from 'yargs';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames } from '../core/worktree/resolve.js';\nimport { teardownWorktree, wouldRefuseRemoval } from '../core/worktree/worktree.js';\nimport { findSession, loadHistory, removeSession } from '../core/sessions/history.js';\nimport { WORKTREE_REMOVED } from '../core/worktree/remove-child.js';\n\nexport const removeCommand: CommandModule = {\n command: 'remove <target> <branch>',\n describe: 'Remove a worktree',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n demandOption: true,\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login)',\n type: 'string',\n demandOption: true,\n })\n .option('force', {\n describe: 'Force remove even with uncommitted/unpushed changes',\n type: 'boolean',\n default: false,\n })\n // work web's Archive: only the folders, the session kept, its agent already stopped (remove-child.ts).\n .option('worktree-only', { type: 'boolean', default: false, hidden: true }),\n handler: async (argv) => {\n const targetName = argv.target as string;\n const branchName = argv.branch as string;\n const force = argv.force as boolean;\n\n const config = ensureConfig();\n\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\n // work web's Archive, in a child so its git doesn't hold the server up: the folders only. The archive has\n // already checked nothing is lost, saved what's uncommitted and stopped the agent; the session stays.\n if (argv['worktree-only']) {\n const s = findSession(loadHistory(), targetName, branchName);\n const gone = !s || s.paths.every((p) => !fs.existsSync(p));\n const removed = gone || teardownWorktree(targetName, s.isGroup, branchName, config, true, s.paths);\n console.log(`${WORKTREE_REMOVED}${removed === true}`);\n return;\n }\n\n // What removing would cut off — its Claude mid-turn or waiting on you,\n // replies to post, notes not yet delivered — refuses it unless --force,\n // as the dashboard's delete does.\n const existing = findSession(loadHistory(), targetName, branchName);\n if (existing && !force) {\n const waiting = archiveWaiting(sessionIdFor(existing));\n if (waiting.length) {\n console.error(chalk.red(`Not removed: ${waiting.join('; ')}.`));\n console.log(chalk.yellow(`Use 'work remove ${targetName} ${branchName} --force' to remove it anyway.`));\n process.exitCode = 1;\n return;\n }\n }\n\n console.log(chalk.cyan(`Removing worktree: ${targetName}/${branchName}`));\n console.log('');\n\n // A Claude still running in the worktree (PTY host session) holds it\n // open — Windows refuses the delete — so stop it first. Only when the\n // removal will go through: a refused one must leave the agent running.\n const paths = findSession(loadHistory(), targetName, branchName)?.paths ?? [];\n if (paths.every((p) => !wouldRefuseRemoval(p, force))) {\n await stopSessionPty(targetName, branchName);\n }\n // The session's folder, not the branch name: the branch checked out in it\n // may have been switched since.\n const allRemoved = teardownWorktree(targetName, target.isGroup, branchName, config, force, paths.length ? paths : undefined);\n\n if (allRemoved === true) {\n await removeSession(targetName, branchName);\n } else {\n process.exitCode = 1;\n console.log('');\n console.log(chalk.yellow('Some worktrees could not be removed due to uncommitted/unpushed changes.'));\n console.log(chalk.yellow(`Use 'work remove ${targetName} ${branchName} --force' to force remove.`));\n }\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AACf,OAAO,WAAW;AAWX,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,eAAe,IAAI,EACnB,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,cAAc;AAAA,EAChB,CAAC,EACA,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,IACN,cAAc;AAAA,EAChB,CAAC,EACA,OAAO,SAAS;AAAA,IACf,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EAEA,OAAO,iBAAiB,EAAE,MAAM,WAAW,SAAS,OAAO,QAAQ,KAAK,CAAC;AAAA,EAC9E,SAAS,OAAO,SAAS;AACvB,UAAM,aAAa,KAAK;AACxB,UAAM,aAAa,KAAK;AACxB,UAAM,QAAQ,KAAK;AAEnB,UAAM,SAAS,aAAa;AAE5B,UAAM,SAAS,qBAAqB,YAAY,MAAM;AACtD,QAAI,CAAC,QAAQ;AACX,YAAM,WAAW,kBAAkB,MAAM;AACzC,cAAQ,MAAM,+BAA+B,UAAU,EAAE;AACzD,cAAQ,IAAI,MAAM,OAAO,cAAc,SAAS,KAAK,IAAI,CAAC,EAAE,CAAC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,0EAA0E,CAAC;AACpG,cAAQ,IAAI,MAAM,OAAO,oBAAoB,UAAU,IAAI,UAAU,4BAA4B,CAAC;AAAA,IACpG;AAAA,EACF;AACF;","names":[]}
|
|
@@ -6,40 +6,41 @@ import "./chunk-FZHFD2AY.js";
|
|
|
6
6
|
import {
|
|
7
7
|
parentOf,
|
|
8
8
|
reportMessage
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-OPZL2MRQ.js";
|
|
10
10
|
import {
|
|
11
11
|
callWorkWeb
|
|
12
12
|
} from "./chunk-LB2GAU7E.js";
|
|
13
13
|
import {
|
|
14
14
|
findSessionForCwd
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FW35KEAD.js";
|
|
16
16
|
import "./chunk-ZSHWP2VS.js";
|
|
17
17
|
import "./chunk-UPS7NHKI.js";
|
|
18
18
|
import "./chunk-HUXS3VAI.js";
|
|
19
19
|
import {
|
|
20
20
|
findSessionById,
|
|
21
|
-
loadHistory
|
|
22
|
-
|
|
21
|
+
loadHistory,
|
|
22
|
+
markReported
|
|
23
|
+
} from "./chunk-NVVDE63M.js";
|
|
23
24
|
import "./chunk-NEJVK5CF.js";
|
|
25
|
+
import "./chunk-3PO2LUY7.js";
|
|
26
|
+
import "./chunk-KGHWHAVF.js";
|
|
24
27
|
import {
|
|
25
28
|
sessionIdFor
|
|
26
29
|
} from "./chunk-QGUBOOEN.js";
|
|
27
|
-
import "./chunk-NWKVTUTN.js";
|
|
28
|
-
import "./chunk-KGHWHAVF.js";
|
|
29
|
-
import "./chunk-BMPTUIP4.js";
|
|
30
|
-
import "./chunk-ED6YLB4S.js";
|
|
31
30
|
import "./chunk-Z6ACV5ZQ.js";
|
|
32
|
-
import "./chunk-JUGF3YE7.js";
|
|
33
|
-
import "./chunk-HK6AZQ5Z.js";
|
|
34
|
-
import "./chunk-XIN6XUFL.js";
|
|
35
|
-
import "./chunk-ETWP7MDS.js";
|
|
36
31
|
import "./chunk-7ZATXG5F.js";
|
|
32
|
+
import "./chunk-JUGF3YE7.js";
|
|
37
33
|
import "./chunk-BR6OWWAA.js";
|
|
34
|
+
import "./chunk-KBYXAQS3.js";
|
|
35
|
+
import "./chunk-YQSWVHKK.js";
|
|
36
|
+
import "./chunk-6NOZK4JY.js";
|
|
37
|
+
import "./chunk-Q53APMHH.js";
|
|
38
38
|
import "./chunk-M2X6OHHR.js";
|
|
39
39
|
import "./chunk-QOSAWNOU.js";
|
|
40
40
|
import "./chunk-D2J3AD6L.js";
|
|
41
41
|
import "./chunk-5ZCCUM75.js";
|
|
42
42
|
import "./chunk-IAKOKZYW.js";
|
|
43
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
43
44
|
import "./chunk-F2ECTTSY.js";
|
|
44
45
|
|
|
45
46
|
// src/commands/report.ts
|
|
@@ -65,10 +66,12 @@ var reportCommand = {
|
|
|
65
66
|
const label = me.title?.trim() || `${me.target} \xB7 ${me.branch}`;
|
|
66
67
|
const r = await callWorkWeb("POST", `/api/sessions/${link.parentId}/send`, { text: reportMessage(label, text) });
|
|
67
68
|
if (!r.ok) return fail(r.error);
|
|
69
|
+
await markReported(sessionIdFor(me)).catch(() => {
|
|
70
|
+
});
|
|
68
71
|
console.log(`Reported to ${parent.target} \xB7 ${parent.branch}: ${sendHowText(r.body.how)}`);
|
|
69
72
|
}
|
|
70
73
|
};
|
|
71
74
|
export {
|
|
72
75
|
reportCommand
|
|
73
76
|
};
|
|
74
|
-
//# sourceMappingURL=report-
|
|
77
|
+
//# sourceMappingURL=report-7TRHC2CQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/report.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { findSessionById, loadHistory } from '../core/sessions/history.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { findSessionForCwd } from '../core/comments/pending-delivery.js';\nimport { parentOf, reportMessage } from '../core/sessions/session-children.js';\nimport { sendHowText } from '../core/sessions/session-control.js';\nimport { markReported } from '../core/status/session-status.js';\nimport type { SendWire } from '../core/api-types.js';\n\n/**\n * `work report` — a child session (`work child spawn`) tells the session that started it what it did: a message to\n * that one's agent, typed in when it is idle, marked as the child's words (session-children.ts). Only ever to its own\n * coordinator, so work's session settings allow it without asking.\n */\nexport const reportCommand: CommandModule = {\n command: 'report',\n describe: 'Tell the session that started this one what it did (a child session started with `work child spawn`)',\n builder: (yargs) =>\n yargs\n .option('message', { alias: 'm', type: 'string', describe: 'The report' })\n // No --file: `work report` runs without asking, and a file read for it would skip the repo's deny rules (no Read call).\n .check((a) => typeof a.message === 'string' || 'Give the report with -m \"…\"'),\n handler: async (argv) => {\n const fail = (m: string) => {\n console.error(chalk.red(m));\n process.exitCode = 1;\n };\n const me = findSessionForCwd(process.cwd(), loadHistory());\n if (!me) return fail('This folder is not inside a work session.');\n const link = parentOf(sessionIdFor(me));\n const parent = link ? findSessionById(link.parentId) : null;\n if (!link) return fail('This session was not started by another one (`work child spawn`): there is no one to report to.');\n if (!parent) return fail('The session that started this one is gone.');\n if (typeof argv.message !== 'string') return fail('Give the report with -m \"…\".');\n const text = argv.message;\n if (!text.trim()) return fail('The report is empty.');\n const label = me.title?.trim() || `${me.target} · ${me.branch}`;\n const r = await callWorkWeb<SendWire>('POST', `/api/sessions/${link.parentId}/send`, { text: reportMessage(label, text) });\n if (!r.ok) return fail(r.error);\n // Its turn's end is now the coordinator's to look at, not the user's (the Inbox, a notification).\n await markReported(sessionIdFor(me)).catch(() => {});\n console.log(`Reported to ${parent.target} · ${parent.branch}: ${sendHowText(r.body.how)}`);\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAgBX,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,OAAO,WAAW,EAAE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ADOCX5G3.js";
|
|
6
6
|
import "./chunk-6AQRYLOB.js";
|
|
7
|
-
import {
|
|
8
|
-
LATER_TEXT
|
|
9
|
-
} from "./chunk-TNJF7T33.js";
|
|
10
7
|
import {
|
|
11
8
|
callWorkWeb
|
|
12
9
|
} from "./chunk-LB2GAU7E.js";
|
|
13
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-FW35KEAD.js";
|
|
14
11
|
import "./chunk-ZSHWP2VS.js";
|
|
15
12
|
import "./chunk-UPS7NHKI.js";
|
|
16
13
|
import "./chunk-HUXS3VAI.js";
|
|
17
14
|
import {
|
|
18
15
|
loadHistory
|
|
19
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NVVDE63M.js";
|
|
20
17
|
import "./chunk-NEJVK5CF.js";
|
|
18
|
+
import "./chunk-3PO2LUY7.js";
|
|
19
|
+
import "./chunk-KGHWHAVF.js";
|
|
21
20
|
import {
|
|
22
21
|
sessionIdFor
|
|
23
22
|
} from "./chunk-QGUBOOEN.js";
|
|
24
|
-
import "./chunk-NWKVTUTN.js";
|
|
25
|
-
import "./chunk-KGHWHAVF.js";
|
|
26
|
-
import "./chunk-BMPTUIP4.js";
|
|
27
|
-
import "./chunk-ED6YLB4S.js";
|
|
28
23
|
import "./chunk-Z6ACV5ZQ.js";
|
|
29
|
-
import "./chunk-JUGF3YE7.js";
|
|
30
|
-
import "./chunk-HK6AZQ5Z.js";
|
|
31
|
-
import "./chunk-XIN6XUFL.js";
|
|
32
|
-
import "./chunk-ETWP7MDS.js";
|
|
33
24
|
import "./chunk-7ZATXG5F.js";
|
|
25
|
+
import "./chunk-JUGF3YE7.js";
|
|
34
26
|
import "./chunk-BR6OWWAA.js";
|
|
27
|
+
import {
|
|
28
|
+
LATER_TEXT
|
|
29
|
+
} from "./chunk-KBYXAQS3.js";
|
|
30
|
+
import "./chunk-YQSWVHKK.js";
|
|
31
|
+
import "./chunk-6NOZK4JY.js";
|
|
32
|
+
import "./chunk-Q53APMHH.js";
|
|
35
33
|
import "./chunk-M2X6OHHR.js";
|
|
36
34
|
import "./chunk-QOSAWNOU.js";
|
|
37
35
|
import "./chunk-D2J3AD6L.js";
|
|
38
36
|
import "./chunk-5ZCCUM75.js";
|
|
39
37
|
import "./chunk-IAKOKZYW.js";
|
|
38
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
40
39
|
import "./chunk-F2ECTTSY.js";
|
|
41
40
|
|
|
42
41
|
// src/commands/restart.ts
|
|
@@ -79,4 +78,4 @@ var restartCommand = {
|
|
|
79
78
|
export {
|
|
80
79
|
restartCommand
|
|
81
80
|
};
|
|
82
|
-
//# sourceMappingURL=restart-
|
|
81
|
+
//# sourceMappingURL=restart-YVWOAA7D.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/restart.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { loadHistory } from '../core/sessions/history.js';\nimport type { RestartWire } from '../core/api-types.js';\nimport { LATER_TEXT } from '../core/pty/restart-view.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work restart` — restart a session's agent in the PTY host (its conversation goes on, its terminals stay attached):\n * after its tool updated, so it runs the new version. One working or waiting on you restarts when its turn ends\n * (POST /api/agents/restart, core/pty/agent-restart.ts).\n */\nexport const restartCommand: CommandModule = {\n command: 'restart [target] [branch]',\n describe: \"Restart a session's agent, resuming its conversation (one at work restarts after its turn)\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('outdated', { type: 'boolean', describe: 'Every agent still running a version from before its tool updated' })\n .option('all', { type: 'boolean', describe: 'Every agent in the PTY host' })\n .conflicts('all', 'outdated'),\n handler: async (argv) => {\n let body: { ids: string[] } | { outdated: true } | { all: true };\n const names = new Map(loadHistory().map((s) => [sessionIdFor(s), `${s.target} · ${s.branch}`]));\n const label = (id: string) => names.get(id) ?? (id === 'assistant' ? 'the assistant (Ctrl+K)' : id);\n if ((argv.all || argv.outdated) && typeof argv.target === 'string') {\n console.error(chalk.red(`--${argv.all ? 'all' : 'outdated'} restarts more than the session you named: give one or the other.`));\n process.exitCode = 1;\n return;\n }\n if (argv.all) body = { all: true };\n else if (argv.outdated) body = { outdated: true };\n else {\n const s = sessionFromArgs(argv);\n if (!s) return;\n body = { ids: [sessionIdFor(s)] };\n }\n const r = await callWorkWeb<RestartWire>('POST', '/api/agents/restart', body, 180_000);\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n const { now, later, failed } = r.body;\n for (const id of now) console.log(`${label(id)}: restarted`);\n for (const id of later) console.log(`${label(id)}: ${LATER_TEXT} (it is working or waiting on you)`);\n for (const f of failed) console.error(chalk.red(`${label(f.id)}: couldn't restart: ${f.error}`));\n if (!now.length && !later.length && !failed.length)\n console.log(argv.outdated ? 'Every agent runs its newest version.' : 'Nothing to restart.');\n if (failed.length) process.exitCode = 1;\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/restart.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { callWorkWeb } from '../core/platform/web-discovery.js';\nimport { sessionIdFor } from '../core/sessions/session-id.js';\nimport { loadHistory } from '../core/sessions/history.js';\nimport type { RestartWire } from '../core/api-types.js';\nimport { LATER_TEXT } from '../core/pty/restart-view.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work restart` — restart a session's agent in the PTY host (its conversation goes on, its terminals stay attached):\n * after its tool updated, so it runs the new version. One working or waiting on you restarts when its turn ends\n * (POST /api/agents/restart, core/pty/agent-restart.ts).\n */\nexport const restartCommand: CommandModule = {\n command: 'restart [target] [branch]',\n describe: \"Restart a session's agent, resuming its conversation (one at work restarts after its turn)\",\n builder: (yargs) =>\n sessionPositionals(yargs)\n .option('outdated', { type: 'boolean', describe: 'Every agent still running a version from before its tool updated' })\n .option('all', { type: 'boolean', describe: 'Every agent in the PTY host' })\n .conflicts('all', 'outdated'),\n handler: async (argv) => {\n let body: { ids: string[] } | { outdated: true } | { all: true };\n const names = new Map(loadHistory().map((s) => [sessionIdFor(s), `${s.target} · ${s.branch}`]));\n const label = (id: string) => names.get(id) ?? (id === 'assistant' ? 'the assistant (Ctrl+K)' : id);\n if ((argv.all || argv.outdated) && typeof argv.target === 'string') {\n console.error(chalk.red(`--${argv.all ? 'all' : 'outdated'} restarts more than the session you named: give one or the other.`));\n process.exitCode = 1;\n return;\n }\n if (argv.all) body = { all: true };\n else if (argv.outdated) body = { outdated: true };\n else {\n const s = sessionFromArgs(argv);\n if (!s) return;\n body = { ids: [sessionIdFor(s)] };\n }\n const r = await callWorkWeb<RestartWire>('POST', '/api/agents/restart', body, 180_000);\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n const { now, later, failed } = r.body;\n for (const id of now) console.log(`${label(id)}: restarted`);\n for (const id of later) console.log(`${label(id)}: ${LATER_TEXT} (it is working or waiting on you)`);\n for (const f of failed) console.error(chalk.red(`${label(f.id)}: couldn't restart: ${f.error}`));\n if (!now.length && !later.length && !failed.length)\n console.log(argv.outdated ? 'Every agent runs its newest version.' : 'Nothing to restart.');\n if (failed.length) process.exitCode = 1;\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,WAAW;AAcX,IAAM,iBAAgC;AAAA,EAC3C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UACR,mBAAmB,KAAK,EACrB,OAAO,YAAY,EAAE,MAAM,WAAW,UAAU,mEAAmE,CAAC,EACpH,OAAO,OAAO,EAAE,MAAM,WAAW,UAAU,8BAA8B,CAAC,EAC1E,UAAU,OAAO,UAAU;AAAA,EAChC,SAAS,OAAO,SAAS;AACvB,QAAI;AACJ,UAAM,QAAQ,IAAI,IAAI,YAAY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F;","names":[]}
|
|
@@ -8,53 +8,52 @@ import {
|
|
|
8
8
|
} from "./chunk-S3CTXKSN.js";
|
|
9
9
|
import {
|
|
10
10
|
clearLaunchedUnsafeWhenIdle
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AB2KARHU.js";
|
|
12
12
|
import "./chunk-FZHFD2AY.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-2MAMYB72.js";
|
|
14
|
+
import "./chunk-M6PVGN5W.js";
|
|
15
|
+
import "./chunk-O3YB7GKT.js";
|
|
16
|
+
import "./chunk-32CMRR6M.js";
|
|
17
|
+
import "./chunk-O45NATRC.js";
|
|
18
|
+
import "./chunk-FW35KEAD.js";
|
|
19
19
|
import "./chunk-ZSHWP2VS.js";
|
|
20
20
|
import "./chunk-UPS7NHKI.js";
|
|
21
21
|
import "./chunk-HUXS3VAI.js";
|
|
22
22
|
import {
|
|
23
23
|
launchAi
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-4CXUVBOD.js";
|
|
24
|
+
} from "./chunk-SEFMLXA6.js";
|
|
26
25
|
import {
|
|
27
26
|
effectiveLastAccessedAt,
|
|
28
27
|
getRecentSessions,
|
|
29
28
|
loadHistory,
|
|
30
29
|
touchSession
|
|
31
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-NVVDE63M.js";
|
|
32
31
|
import "./chunk-NEJVK5CF.js";
|
|
33
|
-
import "./chunk-QGUBOOEN.js";
|
|
34
32
|
import {
|
|
35
33
|
agentFor,
|
|
36
34
|
sessionToolFor,
|
|
37
35
|
trustAgentFolder
|
|
38
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3PO2LUY7.js";
|
|
39
37
|
import "./chunk-KGHWHAVF.js";
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import {
|
|
42
|
-
envArgs
|
|
43
|
-
} from "./chunk-ED6YLB4S.js";
|
|
38
|
+
import "./chunk-QGUBOOEN.js";
|
|
44
39
|
import "./chunk-Z6ACV5ZQ.js";
|
|
40
|
+
import "./chunk-7ZATXG5F.js";
|
|
45
41
|
import "./chunk-JUGF3YE7.js";
|
|
46
|
-
import "./chunk-
|
|
47
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-BR6OWWAA.js";
|
|
43
|
+
import "./chunk-KBYXAQS3.js";
|
|
44
|
+
import {
|
|
45
|
+
envArgs
|
|
46
|
+
} from "./chunk-YQSWVHKK.js";
|
|
47
|
+
import "./chunk-6NOZK4JY.js";
|
|
48
48
|
import {
|
|
49
49
|
ensureConfig
|
|
50
|
-
} from "./chunk-
|
|
51
|
-
import "./chunk-7ZATXG5F.js";
|
|
52
|
-
import "./chunk-BR6OWWAA.js";
|
|
50
|
+
} from "./chunk-Q53APMHH.js";
|
|
53
51
|
import "./chunk-M2X6OHHR.js";
|
|
54
52
|
import "./chunk-QOSAWNOU.js";
|
|
55
53
|
import "./chunk-D2J3AD6L.js";
|
|
56
54
|
import "./chunk-5ZCCUM75.js";
|
|
57
55
|
import "./chunk-IAKOKZYW.js";
|
|
56
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
58
57
|
import "./chunk-F2ECTTSY.js";
|
|
59
58
|
|
|
60
59
|
// src/commands/resume.ts
|
|
@@ -115,4 +114,4 @@ var resumeCommand = {
|
|
|
115
114
|
export {
|
|
116
115
|
resumeCommand
|
|
117
116
|
};
|
|
118
|
-
//# sourceMappingURL=resume-
|
|
117
|
+
//# sourceMappingURL=resume-KDCRPOAZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/resume.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor, sessionToolFor, trustAgentFolder } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { select } from '@inquirer/prompts';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { loadHistory, getRecentSessions, touchSession } from '../core/sessions/history.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { effectiveLastAccessedAt } from '../core/sessions/session-activity.js';\nimport { launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { timeAgo } from '../core/platform/format.js';\n\nexport const resumeCommand: CommandModule = {\n command: 'resume',\n describe: 'Resume a recent worktree session',\n builder: (yargs) => yargs.option('unsafe', retiredUnsafeOption),\n handler: async (argv) => {\n warnRetiredUnsafe(argv);\n\n const config = ensureConfig();\n\n const sessions = loadHistory();\n const recent = getRecentSessions(sessions, sessions.length);\n\n // Filter to sessions that still exist on disk\n const valid = recent.filter((s) => s.paths.some((p) => fs.existsSync(p)));\n\n if (valid.length === 0) {\n console.log(chalk.yellow('No resumable sessions found.'));\n return;\n }\n\n const choices = valid.map((s) => {\n const typeTag = s.isGroup ? '[group]' : '[repo]';\n return {\n name: `${typeTag} ${s.target} ${s.branch} (${timeAgo(effectiveLastAccessedAt(s))})`,\n value: s,\n };\n });\n\n const choice = await select({\n message: 'Select a session to resume:',\n choices,\n pageSize: 15,\n });\n\n // Find first existing path\n const firstExisting = choice.paths.find((p) => fs.existsSync(p));\n if (!firstExisting) {\n console.error('Session path no longer exists.');\n process.exitCode = 1;\n return;\n }\n\n // Resume in the directory that actually holds a Claude transcript — the\n // group root, or a sub-repo the user worked in. `--continue` errors out\n // (\"No conversation found to continue\") when launched somewhere with no\n // transcript, so fall back to a fresh session in that case.\n const { launchPath, hasConversation } = agentFor(config, choice).launch.resumeLaunch(choice);\n\n // Only its last access: the list was read before the picker waited on you, and a repo may have been added since.\n touchSession(choice.target, choice.branch);\n clearLaunchedUnsafeWhenIdle(choice.target, choice.branch); // started normally now, unless the old one still runs (legacy-unsafe.ts; remove next release)\n\n const tool = agentFor(config, choice).launch.tool(config);\n console.log(chalk.cyan(`Resuming in: ${launchPath}`));\n if (!hasConversation) {\n console.log(chalk.yellow(`No prior ${tool.cmd} conversation found for this worktree — starting a fresh session.`));\n }\n trustAgentFolder(agentFor(config, choice), choice, launchPath);\n console.log(`Starting ${tool.cmd}...`);\n launchAi(\n launchPath,\n sessionToolFor(tool),\n { resume: hasConversation },\n choice.port,\n ...envArgs(agentFor(config, choice).launch.env?.(choice)),\n );\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/resume.ts"],"sourcesContent":["import fs from 'node:fs';\nimport { agentFor, sessionToolFor, trustAgentFolder } from '../core/agents/index.js';\nimport chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { select } from '@inquirer/prompts';\nimport { ensureConfig } from '../core/platform/config.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { loadHistory, getRecentSessions, touchSession } from '../core/sessions/history.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { effectiveLastAccessedAt } from '../core/sessions/session-activity.js';\nimport { launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { timeAgo } from '../core/platform/format.js';\n\nexport const resumeCommand: CommandModule = {\n command: 'resume',\n describe: 'Resume a recent worktree session',\n builder: (yargs) => yargs.option('unsafe', retiredUnsafeOption),\n handler: async (argv) => {\n warnRetiredUnsafe(argv);\n\n const config = ensureConfig();\n\n const sessions = loadHistory();\n const recent = getRecentSessions(sessions, sessions.length);\n\n // Filter to sessions that still exist on disk\n const valid = recent.filter((s) => s.paths.some((p) => fs.existsSync(p)));\n\n if (valid.length === 0) {\n console.log(chalk.yellow('No resumable sessions found.'));\n return;\n }\n\n const choices = valid.map((s) => {\n const typeTag = s.isGroup ? '[group]' : '[repo]';\n return {\n name: `${typeTag} ${s.target} ${s.branch} (${timeAgo(effectiveLastAccessedAt(s))})`,\n value: s,\n };\n });\n\n const choice = await select({\n message: 'Select a session to resume:',\n choices,\n pageSize: 15,\n });\n\n // Find first existing path\n const firstExisting = choice.paths.find((p) => fs.existsSync(p));\n if (!firstExisting) {\n console.error('Session path no longer exists.');\n process.exitCode = 1;\n return;\n }\n\n // Resume in the directory that actually holds a Claude transcript — the\n // group root, or a sub-repo the user worked in. `--continue` errors out\n // (\"No conversation found to continue\") when launched somewhere with no\n // transcript, so fall back to a fresh session in that case.\n const { launchPath, hasConversation } = agentFor(config, choice).launch.resumeLaunch(choice);\n\n // Only its last access: the list was read before the picker waited on you, and a repo may have been added since.\n touchSession(choice.target, choice.branch);\n clearLaunchedUnsafeWhenIdle(choice.target, choice.branch); // started normally now, unless the old one still runs (legacy-unsafe.ts; remove next release)\n\n const tool = agentFor(config, choice).launch.tool(config);\n console.log(chalk.cyan(`Resuming in: ${launchPath}`));\n if (!hasConversation) {\n console.log(chalk.yellow(`No prior ${tool.cmd} conversation found for this worktree — starting a fresh session.`));\n }\n trustAgentFolder(agentFor(config, choice), choice, launchPath);\n console.log(`Starting ${tool.cmd}...`);\n launchAi(\n launchPath,\n sessionToolFor(tool),\n { resume: hasConversation },\n choice.port,\n ...envArgs(agentFor(config, choice).launch.env?.(choice)),\n );\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,WAAW;AAElB,SAAS,cAAc;AAUhB,IAAM,gBAA+B;AAAA,EAC1C,SAAS;AAAA,EACT,UAAU;AAAA,EACV,SAAS,CAAC,UAAU,MAAM,OAAO,UAAU,mBAAmB;AAAA,EAC9D,SAAS,OAAO,SAAS;AACvB,sBAAkB,IAAI;AAEtB,UAAM,SAAS,aAAa;AAE5B,UAAM,WAAW,YAAY;AAC7B,UAAM,SAAS,kBAAkB,UAAU,SAAS,MAAM;AAG1D,UAAM,QAAQ,OAAO,OAAO,CAAC,MAAM,EAAE,MAAM,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