@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
|
@@ -4,79 +4,73 @@ import {
|
|
|
4
4
|
openInLeftovers,
|
|
5
5
|
resolvePrToStart,
|
|
6
6
|
workOnPrPrompt
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QZW77GWD.js";
|
|
8
8
|
import {
|
|
9
9
|
retiredUnsafeOption,
|
|
10
10
|
warnRetiredUnsafe
|
|
11
11
|
} from "./chunk-S3CTXKSN.js";
|
|
12
12
|
import {
|
|
13
13
|
clearLaunchedUnsafeWhenIdle
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AB2KARHU.js";
|
|
15
15
|
import "./chunk-FZHFD2AY.js";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-2MAMYB72.js";
|
|
17
|
+
import "./chunk-M6PVGN5W.js";
|
|
18
18
|
import {
|
|
19
19
|
attachSession
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7CH7FS5V.js";
|
|
21
21
|
import "./chunk-6KMG4WNW.js";
|
|
22
22
|
import {
|
|
23
23
|
SETUP_WARNINGS
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-XR6EXIZN.js";
|
|
25
|
+
import "./chunk-JYYI2M4H.js";
|
|
26
26
|
import "./chunk-BCYBF7KJ.js";
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-6ER6IBFJ.js";
|
|
28
|
+
import "./chunk-O3YB7GKT.js";
|
|
29
|
+
import "./chunk-32CMRR6M.js";
|
|
30
|
+
import "./chunk-O45NATRC.js";
|
|
31
31
|
import {
|
|
32
32
|
BaseSpecError,
|
|
33
33
|
isEmptyBaseSpec,
|
|
34
34
|
openBaseCheckout,
|
|
35
35
|
parseBaseSpec,
|
|
36
36
|
setupWorktree
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-OFIIGVE7.js";
|
|
38
38
|
import "./chunk-Y7PWSACJ.js";
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-HNZ736XN.js";
|
|
42
|
-
import "./chunk-DHZ5DF6Y.js";
|
|
39
|
+
import "./chunk-XPMXRCBW.js";
|
|
40
|
+
import "./chunk-BUFPEKEG.js";
|
|
43
41
|
import "./chunk-7E5XPDKX.js";
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-HEGROFQI.js";
|
|
43
|
+
import "./chunk-OPZL2MRQ.js";
|
|
44
|
+
import "./chunk-FW35KEAD.js";
|
|
46
45
|
import "./chunk-ZSHWP2VS.js";
|
|
47
46
|
import "./chunk-UPS7NHKI.js";
|
|
48
47
|
import "./chunk-HUXS3VAI.js";
|
|
49
48
|
import "./chunk-LM2T5OR3.js";
|
|
50
|
-
import "./chunk-
|
|
51
|
-
import "./chunk-
|
|
52
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-6A6XOLVB.js";
|
|
50
|
+
import "./chunk-MG773CN7.js";
|
|
51
|
+
import "./chunk-RO25CJ2V.js";
|
|
53
52
|
import "./chunk-FGPXMAYU.js";
|
|
54
53
|
import "./chunk-MJIYIMPI.js";
|
|
55
54
|
import {
|
|
56
55
|
launchAi,
|
|
57
56
|
openVSCode
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-
|
|
60
|
-
import "./chunk-
|
|
61
|
-
import "./chunk-
|
|
62
|
-
import "./chunk-4CXUVBOD.js";
|
|
57
|
+
} from "./chunk-SEFMLXA6.js";
|
|
58
|
+
import "./chunk-CNR4IKC7.js";
|
|
59
|
+
import "./chunk-4CUYK2XD.js";
|
|
60
|
+
import "./chunk-J7IGCYHZ.js";
|
|
63
61
|
import {
|
|
64
62
|
findSession,
|
|
65
63
|
loadHistory
|
|
66
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-NVVDE63M.js";
|
|
67
65
|
import "./chunk-NEJVK5CF.js";
|
|
68
|
-
import "./chunk-QGUBOOEN.js";
|
|
69
66
|
import {
|
|
70
67
|
agentFor,
|
|
71
68
|
ownsBranch,
|
|
72
69
|
sessionToolFor,
|
|
73
70
|
trustAgentFolder
|
|
74
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-3PO2LUY7.js";
|
|
75
72
|
import "./chunk-KGHWHAVF.js";
|
|
76
|
-
import "./chunk-
|
|
77
|
-
import {
|
|
78
|
-
envArgs
|
|
79
|
-
} from "./chunk-ED6YLB4S.js";
|
|
73
|
+
import "./chunk-QGUBOOEN.js";
|
|
80
74
|
import {
|
|
81
75
|
getAllTargetNames,
|
|
82
76
|
resolveFromCwd,
|
|
@@ -84,14 +78,17 @@ import {
|
|
|
84
78
|
} from "./chunk-IPHADNF5.js";
|
|
85
79
|
import "./chunk-JYWX2N5W.js";
|
|
86
80
|
import "./chunk-Z6ACV5ZQ.js";
|
|
81
|
+
import "./chunk-7ZATXG5F.js";
|
|
87
82
|
import "./chunk-JUGF3YE7.js";
|
|
88
|
-
import "./chunk-
|
|
89
|
-
import "./chunk-
|
|
83
|
+
import "./chunk-BR6OWWAA.js";
|
|
84
|
+
import "./chunk-KBYXAQS3.js";
|
|
85
|
+
import {
|
|
86
|
+
envArgs
|
|
87
|
+
} from "./chunk-YQSWVHKK.js";
|
|
88
|
+
import "./chunk-6NOZK4JY.js";
|
|
90
89
|
import {
|
|
91
90
|
ensureConfig
|
|
92
|
-
} from "./chunk-
|
|
93
|
-
import "./chunk-7ZATXG5F.js";
|
|
94
|
-
import "./chunk-BR6OWWAA.js";
|
|
91
|
+
} from "./chunk-Q53APMHH.js";
|
|
95
92
|
import "./chunk-M2X6OHHR.js";
|
|
96
93
|
import "./chunk-QOSAWNOU.js";
|
|
97
94
|
import "./chunk-D2J3AD6L.js";
|
|
@@ -99,6 +96,7 @@ import {
|
|
|
99
96
|
keepingWarnings
|
|
100
97
|
} from "./chunk-5ZCCUM75.js";
|
|
101
98
|
import "./chunk-IAKOKZYW.js";
|
|
99
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
102
100
|
import "./chunk-F2ECTTSY.js";
|
|
103
101
|
|
|
104
102
|
// src/commands/tree.ts
|
|
@@ -338,4 +336,4 @@ var treeCommand = {
|
|
|
338
336
|
export {
|
|
339
337
|
treeCommand
|
|
340
338
|
};
|
|
341
|
-
//# sourceMappingURL=tree-
|
|
339
|
+
//# sourceMappingURL=tree-EMUBZEDU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/tree.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 { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames, resolveFromCwd } from '../core/worktree/resolve.js';\nimport { openBaseCheckout, setupWorktree } from '../core/worktree/worktree.js';\nimport { ownsBranch } from '../core/worktree/own-checkout.js';\nimport { findSession, loadHistory } from '../core/sessions/history.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { keepingWarnings } from '../core/platform/report.js';\nimport { SETUP_WARNINGS } from '../core/worktree/setup-child.js';\nimport { leftoversOf, openInLeftovers } from '../core/archive/restore-leftovers.js';\nimport { attachSession } from './shared/attach-session.js';\nimport { openVSCode, launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { parseBaseSpec, isEmptyBaseSpec, BaseSpecError } from '../core/git/base-spec.js';\nimport { resolvePrToStart } from '../core/pr/pr-start.js';\nimport { workOnPrPrompt } from '../core/pr/pr-ref.js';\n\nexport const treeCommand: CommandModule = {\n command: ['tree [target] [branch]', 't [target] [branch]'],\n describe: 'Create or switch to a worktree and launch the configured AI tool',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login). Omit to work on the base repo.',\n type: 'string',\n })\n .option('here', {\n describe: 'Infer target and branch from the current worktree directory',\n type: 'boolean',\n default: false,\n })\n .option('open', {\n describe: 'Open VS Code in the worktree after creation',\n type: 'boolean',\n default: false,\n })\n .option('unsafe', retiredUnsafeOption)\n .option('pull', {\n describe: 'Pull latest changes when switching into an existing worktree or the base repo. Use --no-pull to skip.',\n type: 'boolean',\n default: true,\n })\n .option('host', {\n describe:\n 'Run the AI session in the PTY host and attach this terminal to it (the default): it survives closing the tab, shows in `work web` — the same screen there and here — and restores after a reboot. Ctrl+] detaches. --no-host (or config `launchViaHost: false`) launches directly in this terminal instead.',\n type: 'boolean',\n })\n .option('fresh', {\n describe: 'Start a new AI conversation instead of continuing the previous one for this directory',\n type: 'boolean',\n default: false,\n })\n .option('base', {\n describe:\n 'Base branch to fork from instead of HEAD. Repeatable. Use a bare branch (--base dev) for all repos, or alias=branch (--base backend=dev --base frontend=feat/x) for per-repo bases in a group.',\n type: 'string',\n })\n .option('prompt', {\n describe: 'Initial prompt to send to the AI tool on startup',\n type: 'string',\n })\n .option('prompt-file', {\n describe: 'File containing the initial prompt (deleted after reading)',\n type: 'string',\n })\n .option('pr', {\n describe:\n \"Work on a pull request, on its branch (what you push lands in it): its link, or its number with <target>. Someone else's too; not one from a fork\",\n type: 'string',\n })\n .option('name', {\n describe: 'Name the session (shown instead of the branch; rename later with F2 in the dashboard)',\n type: 'string',\n })\n .option('account', {\n describe:\n 'The Claude account a new session runs on (a name from `work account list`; default: the configured default). An existing session keeps its own.',\n type: 'string',\n })\n .option('issue-key', {\n describe: 'Link a Jira issue key to this worktree session',\n type: 'string',\n hidden: true,\n })\n .option('repos', {\n describe: \"A new session's repos (comma-separated aliases) instead of its group's: made as a session folder (used by Fork…)\",\n type: 'string',\n hidden: true,\n })\n .option('setup-only', {\n describe: 'Create worktree without launching the AI tool (used by dashboard)',\n type: 'boolean',\n default: false,\n hidden: true,\n }),\n handler: async (argv) => {\n let targetName = argv.target as string | undefined;\n let branchName = argv.branch as string | undefined;\n const here = argv.here as boolean;\n const open = argv.open as boolean;\n warnRetiredUnsafe(argv);\n const pull = argv.pull as boolean;\n const fresh = argv.fresh as boolean;\n const setupOnly = argv['setup-only'] as boolean;\n let baseSpec;\n try {\n baseSpec = parseBaseSpec(argv.base as string | string[] | undefined);\n } catch (err) {\n if (err instanceof BaseSpecError) {\n console.error(err.message);\n process.exitCode = 1;\n return;\n }\n throw err;\n }\n const issueKey = argv['issue-key'] as string | undefined;\n const account = argv.account as string | undefined;\n const promptFile = argv['prompt-file'] as string | undefined;\n let initialPrompt = argv.prompt as string | undefined;\n\n // --prompt-file takes precedence: read and delete the temp file\n if (promptFile) {\n try {\n initialPrompt = fs.readFileSync(promptFile, 'utf-8');\n fs.unlinkSync(promptFile);\n } catch {\n // ignore — fall through to --prompt or no prompt\n }\n }\n\n const config = ensureConfig();\n // Via the host unless told otherwise: one Claude that the terminal and\n // the dashboard both show. A direct launch is invisible to work web.\n const viaHost = (argv.host as boolean | undefined) ?? config.launchViaHost ?? true;\n\n /**\n * Launch the AI tool, continuing the previous conversation for this\n * directory when there is one. `--continue` errors out (\"No conversation\n * found to continue\") in a directory the tool has never run in, so the flag\n * is gated on an existing transcript.\n */\n const launchTool = async (dir: string, port: number | undefined, sessionKey: { target: string; branch: string }): Promise<void> => {\n if (viaHost) {\n const session = findSession(loadHistory(), sessionKey.target, sessionKey.branch);\n if (session) {\n // The host decides --continue itself (the agent's own canResume\n // gate); `fresh` and the prompt ride along on the first spawn.\n process.exitCode = await attachSession(session, {\n fresh,\n initialPrompt,\n forwardEnv: true,\n });\n return;\n }\n console.log(chalk.yellow('Session not found in history — launching directly instead of via the PTY host.'));\n }\n // The session's agent: what to run, and whether it can resume here.\n const own = findSession(loadHistory(), sessionKey.target, sessionKey.branch);\n const agent = agentFor(config, own);\n const tool = agent.launch.tool(config);\n // The session's account: its conversations are in that account's folder, and the agent starts on it.\n const resume = !fresh && agent.launch.canResume(dir, { session: own });\n if (resume) {\n console.log(chalk.gray(`Continuing the previous ${tool.cmd} conversation (--fresh starts a new one).`));\n }\n // Started normally now: a launchedUnsafe from before the retirement no longer describes it — unless that agent\n // still runs in another terminal, which keeps the flag and its guards (legacy-unsafe.ts; remove next release).\n clearLaunchedUnsafeWhenIdle(sessionKey.target, sessionKey.branch);\n trustAgentFolder(agent, own ?? null, dir);\n console.log(`Starting ${tool.cmd}...`);\n // With work's hooks for this process (--settings), never the user's settings' (agents/session-hooks.ts).\n launchAi(dir, sessionToolFor(tool), { initialPrompt, resume }, port, ...envArgs(agent.launch.env?.(own ?? null)));\n };\n\n // --pr: the PR's repo and branch, and a first prompt saying whose branch it is.\n const prArg = argv.pr as string | undefined;\n if (prArg !== undefined) {\n if (branchName || here || !isEmptyBaseSpec(baseSpec)) {\n console.error(\"--pr takes the PR's own branch: don't combine it with a branch, --here or --base.\");\n process.exitCode = 1;\n return;\n }\n const found = await resolvePrToStart(prArg, config, targetName);\n if (!found.ok) {\n console.error(found.error);\n process.exitCode = 1;\n return;\n }\n targetName = found.pr.alias;\n branchName = found.pr.branch;\n // The PR's context goes to a new session only (with your --prompt as what to do): back in\n // one, your --prompt goes as it is, and nothing re-sends the first message.\n if (!findSession(loadHistory(), targetName, branchName)) initialPrompt = workOnPrPrompt(found.pr, initialPrompt);\n console.log(\n chalk.cyan(`PR #${found.pr.number} by @${found.pr.author || '?'}: ${found.pr.title}, on its branch ${branchName} in ${targetName}`),\n );\n }\n\n // --here: infer target and branch from the current worktree directory\n if (here) {\n if (targetName) {\n console.error('Cannot combine --here with an explicit target.');\n process.exitCode = 1;\n return;\n }\n const inferred = resolveFromCwd(config, process.cwd(), loadHistory());\n if ('error' in inferred) {\n console.error(inferred.error);\n process.exitCode = 1;\n return;\n }\n targetName = inferred.target;\n branchName = inferred.isBaseRepo ? undefined : inferred.branch;\n console.log(chalk.cyan(`Resolved from current directory: ${targetName}${branchName ? ' @ ' + branchName : ' (base repo)'}`));\n } else if (!targetName) {\n console.error('Specify a target, or use --here to infer it from the current directory.');\n process.exitCode = 1;\n return;\n }\n\n // --base requires a branch name\n if (!isEmptyBaseSpec(baseSpec) && !branchName) {\n console.error('--base requires a branch name');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch> --base <base>`));\n process.exitCode = 1;\n return;\n }\n\n // Resolve project target (for validation and base-repo handling)\n const target = resolveProjectTarget(targetName, config);\n if (!target) {\n const allNames = getAllTargetNames(config);\n console.error(`Project or group not found: ${targetName}`);\n console.log(chalk.yellow(`Available: ${allNames.join(', ')}`));\n console.log(chalk.yellow('Add a new project with: work config add <alias> <path>'));\n process.exitCode = 1;\n return;\n }\n\n // The branch the repo's own folder is on can't be checked out a second time: asking for it means that folder.\n if (branchName && isEmptyBaseSpec(baseSpec) && !target.isGroup && ownsBranch(targetName, branchName, config)) {\n console.log(chalk.gray(`${branchName} is the branch ${targetName}'s own folder is on: opening it there.`));\n branchName = undefined;\n }\n\n // No branch specified — work directly on the base repo\n if (!branchName) {\n if (target.isGroup) {\n console.error('Branch is required for group targets.');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch>`));\n process.exitCode = 1;\n return;\n }\n\n console.log(chalk.cyan(`Working on base repo: ${targetName}`));\n const opened = await openBaseCheckout(targetName, config, {\n pull,\n issueKey,\n name: typeof argv.name === 'string' ? argv.name : undefined,\n account,\n });\n if (!opened.ok) {\n console.error(opened.error);\n process.exitCode = 1;\n return;\n }\n const { repoPath, branch: currentBranch } = opened;\n console.log(`Repo path: ${repoPath}`);\n if (opened.dropped.length) console.log(chalk.gray(`Replaced older entries for this checkout: ${opened.dropped.join(', ')}`));\n\n if (open) openVSCode(repoPath);\n if (!setupOnly) await launchTool(repoPath, undefined, { target: targetName, branch: currentBranch });\n return;\n }\n\n // Create/switch worktree via shared core logic\n const repos =\n typeof argv.repos === 'string'\n ? argv.repos\n .split(',')\n .map((a) => a.trim())\n .filter(Boolean)\n : [];\n const { value: result, warnings } = await keepingWarnings(() =>\n setupWorktree(targetName, branchName, config, baseSpec, issueKey, {\n pull,\n name: argv.name as string | undefined,\n ...(account ? { account } : {}),\n ...(repos.length ? { repos } : {}),\n }),\n );\n if (!result) {\n // Run by you (not work web's child, whose route says it): what keeps the old folder in use, by name.\n const left = setupOnly ? [] : leftoversOf(findSession(loadHistory(), targetName, branchName)?.paths ?? []);\n const open = await openInLeftovers(left);\n if (open.length) console.error(chalk.yellow(`Still open in its old folder: ${open.join(', ')}. Stop it and try again.`));\n process.exitCode = 1;\n return;\n }\n\n if (open) {\n for (const p of result.paths) {\n openVSCode(p);\n }\n }\n\n console.log(`Worktree path: ${result.launchDir}`);\n // work web's child: what it warned about, for the dashboard (it reads only this line).\n if (setupOnly) console.log(`${SETUP_WARNINGS}${JSON.stringify(warnings)}`);\n if (!setupOnly) {\n await launchTool(result.launchDir, result.port, { target: targetName, branch: branchName });\n }\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,WAAW;AAmBX,IAAM,cAA6B;AAAA,EACxC,SAAS,CAAC,0BAA0B,qBAAqB;AAAA,EACzD,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,eAAe,IAAI,EACnB,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,OAAO,QAAQ;AAAA,IACd,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EACA,OAAO,QAAQ;AAAA,IACd,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAA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AAE,QAAQ,YAAY,QAAQ,WAAW,CAAC;AAAA,IAC5F;AAAA,EACF;AACF;","names":["open"]}
|
|
1
|
+
{"version":3,"sources":["../src/commands/tree.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 { ensureConfig } from '../core/platform/config.js';\nimport { resolveProjectTarget, getAllTargetNames, resolveFromCwd } from '../core/worktree/resolve.js';\nimport { openBaseCheckout, setupWorktree } from '../core/worktree/worktree.js';\nimport { ownsBranch } from '../core/worktree/own-checkout.js';\nimport { findSession, loadHistory } from '../core/sessions/history.js';\nimport { clearLaunchedUnsafeWhenIdle } from '../core/sessions/legacy-unsafe-io.js';\nimport { retiredUnsafeOption, warnRetiredUnsafe } from './shared/retired-unsafe.js';\nimport { keepingWarnings } from '../core/platform/report.js';\nimport { SETUP_WARNINGS } from '../core/worktree/setup-child.js';\nimport { leftoversOf, openInLeftovers } from '../core/archive/restore-leftovers.js';\nimport { attachSession } from './shared/attach-session.js';\nimport { openVSCode, launchAi } from '../core/platform/launch.js';\nimport { envArgs } from '../core/platform/env-delta.js';\nimport { parseBaseSpec, isEmptyBaseSpec, BaseSpecError } from '../core/git/base-spec.js';\nimport { resolvePrToStart } from '../core/pr/pr-start.js';\nimport { workOnPrPrompt } from '../core/pr/pr-ref.js';\n\nexport const treeCommand: CommandModule = {\n command: ['tree [target] [branch]', 't [target] [branch]'],\n describe: 'Create or switch to a worktree and launch the configured AI tool',\n builder: (yargs) =>\n yargs\n .showHelpOnFail(true)\n .positional('target', {\n describe: 'Project alias or group name',\n type: 'string',\n })\n .positional('branch', {\n describe: 'Branch name (e.g., feature/login). Omit to work on the base repo.',\n type: 'string',\n })\n .option('here', {\n describe: 'Infer target and branch from the current worktree directory',\n type: 'boolean',\n default: false,\n })\n .option('open', {\n describe: 'Open VS Code in the worktree after creation',\n type: 'boolean',\n default: false,\n })\n .option('unsafe', retiredUnsafeOption)\n .option('pull', {\n describe: 'Pull latest changes when switching into an existing worktree or the base repo. Use --no-pull to skip.',\n type: 'boolean',\n default: true,\n })\n .option('host', {\n describe:\n 'Run the AI session in the PTY host and attach this terminal to it (the default): it survives closing the tab, shows in `work web` — the same screen there and here — and restores after a reboot. Ctrl+] detaches. --no-host (or config `launchViaHost: false`) launches directly in this terminal instead.',\n type: 'boolean',\n })\n .option('fresh', {\n describe: 'Start a new AI conversation instead of continuing the previous one for this directory',\n type: 'boolean',\n default: false,\n })\n .option('base', {\n describe:\n 'Base branch to fork from instead of HEAD. Repeatable. Use a bare branch (--base dev) for all repos, or alias=branch (--base backend=dev --base frontend=feat/x) for per-repo bases in a group.',\n type: 'string',\n })\n .option('prompt', {\n describe: 'Initial prompt to send to the AI tool on startup',\n type: 'string',\n })\n .option('prompt-file', {\n describe: 'File containing the initial prompt (deleted after reading)',\n type: 'string',\n })\n .option('pr', {\n describe:\n \"Work on a pull request, on its branch (what you push lands in it): its link, or its number with <target>. Someone else's too; not one from a fork\",\n type: 'string',\n })\n .option('name', {\n describe: 'Name the session (shown instead of the branch; rename later with F2 in the dashboard)',\n type: 'string',\n })\n .option('account', {\n describe:\n 'The Claude account a new session runs on (a name from `work account list`; default: the configured default). An existing session keeps its own.',\n type: 'string',\n })\n .option('issue-key', {\n describe: 'Link a Jira issue key to this worktree session',\n type: 'string',\n hidden: true,\n })\n .option('repos', {\n describe: \"A new session's repos (comma-separated aliases) instead of its group's: made as a session folder (used by Fork…)\",\n type: 'string',\n hidden: true,\n })\n .option('setup-only', {\n describe: 'Create worktree without launching the AI tool (used by dashboard)',\n type: 'boolean',\n default: false,\n hidden: true,\n }),\n handler: async (argv) => {\n let targetName = argv.target as string | undefined;\n let branchName = argv.branch as string | undefined;\n const here = argv.here as boolean;\n const open = argv.open as boolean;\n warnRetiredUnsafe(argv);\n const pull = argv.pull as boolean;\n const fresh = argv.fresh as boolean;\n const setupOnly = argv['setup-only'] as boolean;\n let baseSpec;\n try {\n baseSpec = parseBaseSpec(argv.base as string | string[] | undefined);\n } catch (err) {\n if (err instanceof BaseSpecError) {\n console.error(err.message);\n process.exitCode = 1;\n return;\n }\n throw err;\n }\n const issueKey = argv['issue-key'] as string | undefined;\n const account = argv.account as string | undefined;\n const promptFile = argv['prompt-file'] as string | undefined;\n let initialPrompt = argv.prompt as string | undefined;\n\n // --prompt-file takes precedence: read and delete the temp file\n if (promptFile) {\n try {\n initialPrompt = fs.readFileSync(promptFile, 'utf-8');\n fs.unlinkSync(promptFile);\n } catch {\n // ignore — fall through to --prompt or no prompt\n }\n }\n\n const config = ensureConfig();\n // Via the host unless told otherwise: one Claude that the terminal and\n // the dashboard both show. A direct launch is invisible to work web.\n const viaHost = (argv.host as boolean | undefined) ?? config.launchViaHost ?? true;\n\n /**\n * Launch the AI tool, continuing the previous conversation for this\n * directory when there is one. `--continue` errors out (\"No conversation\n * found to continue\") in a directory the tool has never run in, so the flag\n * is gated on an existing transcript.\n */\n const launchTool = async (dir: string, port: number | undefined, sessionKey: { target: string; branch: string }): Promise<void> => {\n if (viaHost) {\n const session = findSession(loadHistory(), sessionKey.target, sessionKey.branch);\n if (session) {\n // The host decides --continue itself (the agent's own canResume\n // gate); `fresh` and the prompt ride along on the first spawn.\n process.exitCode = await attachSession(session, {\n fresh,\n initialPrompt,\n forwardEnv: true,\n });\n return;\n }\n console.log(chalk.yellow('Session not found in history — launching directly instead of via the PTY host.'));\n }\n // The session's agent: what to run, and whether it can resume here.\n const own = findSession(loadHistory(), sessionKey.target, sessionKey.branch);\n const agent = agentFor(config, own);\n const tool = agent.launch.tool(config);\n // The session's account: its conversations are in that account's folder, and the agent starts on it.\n const resume = !fresh && agent.launch.canResume(dir, { session: own });\n if (resume) {\n console.log(chalk.gray(`Continuing the previous ${tool.cmd} conversation (--fresh starts a new one).`));\n }\n // Started normally now: a launchedUnsafe from before the retirement no longer describes it — unless that agent\n // still runs in another terminal, which keeps the flag and its guards (legacy-unsafe.ts; remove next release).\n clearLaunchedUnsafeWhenIdle(sessionKey.target, sessionKey.branch);\n trustAgentFolder(agent, own ?? null, dir);\n console.log(`Starting ${tool.cmd}...`);\n // With work's hooks for this process (--settings), never the user's settings' (agents/session-hooks.ts).\n launchAi(dir, sessionToolFor(tool), { initialPrompt, resume }, port, ...envArgs(agent.launch.env?.(own ?? null)));\n };\n\n // --pr: the PR's repo and branch, and a first prompt saying whose branch it is.\n const prArg = argv.pr as string | undefined;\n if (prArg !== undefined) {\n if (branchName || here || !isEmptyBaseSpec(baseSpec)) {\n console.error(\"--pr takes the PR's own branch: don't combine it with a branch, --here or --base.\");\n process.exitCode = 1;\n return;\n }\n const found = await resolvePrToStart(prArg, config, targetName);\n if (!found.ok) {\n console.error(found.error);\n process.exitCode = 1;\n return;\n }\n targetName = found.pr.alias;\n branchName = found.pr.branch;\n // The PR's context goes to a new session only (with your --prompt as what to do): back in\n // one, your --prompt goes as it is, and nothing re-sends the first message.\n if (!findSession(loadHistory(), targetName, branchName)) initialPrompt = workOnPrPrompt(found.pr, initialPrompt);\n console.log(\n chalk.cyan(`PR #${found.pr.number} by @${found.pr.author || '?'}: ${found.pr.title}, on its branch ${branchName} in ${targetName}`),\n );\n }\n\n // --here: infer target and branch from the current worktree directory\n if (here) {\n if (targetName) {\n console.error('Cannot combine --here with an explicit target.');\n process.exitCode = 1;\n return;\n }\n const inferred = resolveFromCwd(config, process.cwd(), loadHistory());\n if ('error' in inferred) {\n console.error(inferred.error);\n process.exitCode = 1;\n return;\n }\n targetName = inferred.target;\n branchName = inferred.isBaseRepo ? undefined : inferred.branch;\n console.log(chalk.cyan(`Resolved from current directory: ${targetName}${branchName ? ' @ ' + branchName : ' (base repo)'}`));\n } else if (!targetName) {\n console.error('Specify a target, or use --here to infer it from the current directory.');\n process.exitCode = 1;\n return;\n }\n\n // --base requires a branch name\n if (!isEmptyBaseSpec(baseSpec) && !branchName) {\n console.error('--base requires a branch name');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch> --base <base>`));\n process.exitCode = 1;\n return;\n }\n\n // Resolve project target (for validation and base-repo handling)\n const target = resolveProjectTarget(targetName, config);\n if (!target) {\n const allNames = getAllTargetNames(config);\n console.error(`Project or group not found: ${targetName}`);\n console.log(chalk.yellow(`Available: ${allNames.join(', ')}`));\n console.log(chalk.yellow('Add a new project with: work config add <alias> <path>'));\n process.exitCode = 1;\n return;\n }\n\n // The branch the repo's own folder is on can't be checked out a second time: asking for it means that folder.\n if (branchName && isEmptyBaseSpec(baseSpec) && !target.isGroup && ownsBranch(targetName, branchName, config)) {\n console.log(chalk.gray(`${branchName} is the branch ${targetName}'s own folder is on: opening it there.`));\n branchName = undefined;\n }\n\n // No branch specified — work directly on the base repo\n if (!branchName) {\n if (target.isGroup) {\n console.error('Branch is required for group targets.');\n console.log(chalk.yellow(`Usage: work tree ${targetName} <branch>`));\n process.exitCode = 1;\n return;\n }\n\n console.log(chalk.cyan(`Working on base repo: ${targetName}`));\n const opened = await openBaseCheckout(targetName, config, {\n pull,\n issueKey,\n name: typeof argv.name === 'string' ? argv.name : undefined,\n account,\n });\n if (!opened.ok) {\n console.error(opened.error);\n process.exitCode = 1;\n return;\n }\n const { repoPath, branch: currentBranch } = opened;\n console.log(`Repo path: ${repoPath}`);\n if (opened.dropped.length) console.log(chalk.gray(`Replaced older entries for this checkout: ${opened.dropped.join(', ')}`));\n\n if (open) openVSCode(repoPath);\n if (!setupOnly) await launchTool(repoPath, undefined, { target: targetName, branch: currentBranch });\n return;\n }\n\n // Create/switch worktree via shared core logic\n const repos =\n typeof argv.repos === 'string'\n ? argv.repos\n .split(',')\n .map((a) => a.trim())\n .filter(Boolean)\n : [];\n const { value: result, warnings } = await keepingWarnings(() =>\n setupWorktree(targetName, branchName, config, baseSpec, issueKey, {\n pull,\n name: argv.name as string | undefined,\n ...(account ? { account } : {}),\n ...(repos.length ? { repos } : {}),\n }),\n );\n if (!result) {\n // Run by you (not work web's child, whose route says it): what keeps the old folder in use, by name.\n const left = setupOnly ? [] : leftoversOf(findSession(loadHistory(), targetName, branchName)?.paths ?? []);\n const open = await openInLeftovers(left);\n if (open.length) console.error(chalk.yellow(`Still open in its old folder: ${open.join(', ')}. Stop it and try again.`));\n process.exitCode = 1;\n return;\n }\n\n if (open) {\n for (const p of result.paths) {\n openVSCode(p);\n }\n }\n\n console.log(`Worktree path: ${result.launchDir}`);\n // work web's child: what it warned about, for the dashboard (it reads only this line).\n if (setupOnly) console.log(`${SETUP_WARNINGS}${JSON.stringify(warnings)}`);\n if (!setupOnly) {\n await launchTool(result.launchDir, result.port, { target: targetName, branch: branchName });\n }\n },\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ;AAEf,OAAO,WAAW;AAmBX,IAAM,cAA6B;AAAA,EACxC,SAAS,CAAC,0BAA0B,qBAAqB;AAAA,EACzD,UAAU;AAAA,EACV,SAAS,CAAC,UACR,MACG,eAAe,IAAI,EACnB,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,WAAW,UAAU;AAAA,IACpB,UAAU;AAAA,IACV,MAAM;AAAA,EACR,CAAC,EACA,OAAO,QAAQ;AAAA,IACd,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EACA,OAAO,QAAQ;AAAA,IACd,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EACA,OAAO,UAAU,mBAAmB,EACpC,OAAO,QAAQ;AAAA,IACd,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AAAA,EACX,CAAC,EACA,OAAO,QAAQ;AAAA,IACd,UACE;AAAA,IACF,MAAM;AAAA,EACR,CAAC,EACA,OAAO,SAAS;AAAA,IACf,UAAU;AAAA,IACV,MAAM;AAAA,IACN,SAAS;AA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k-LSEEMJH7.js";
|
|
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-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-6A6XOLVB.js";
|
|
16
|
+
import "./chunk-MG773CN7.js";
|
|
17
|
+
import "./chunk-RO25CJ2V.js";
|
|
18
18
|
import "./chunk-FGPXMAYU.js";
|
|
19
19
|
import "./chunk-MJIYIMPI.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-HUWWMTNG.js";
|
|
20
|
+
import "./chunk-CNR4IKC7.js";
|
|
21
|
+
import "./chunk-4CUYK2XD.js";
|
|
22
|
+
import "./chunk-J7IGCYHZ.js";
|
|
23
|
+
import "./chunk-NVVDE63M.js";
|
|
25
24
|
import "./chunk-NEJVK5CF.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-NWKVTUTN.js";
|
|
25
|
+
import "./chunk-3PO2LUY7.js";
|
|
28
26
|
import "./chunk-KGHWHAVF.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-ED6YLB4S.js";
|
|
27
|
+
import "./chunk-QGUBOOEN.js";
|
|
31
28
|
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
29
|
import "./chunk-7ZATXG5F.js";
|
|
30
|
+
import "./chunk-JUGF3YE7.js";
|
|
37
31
|
import "./chunk-BR6OWWAA.js";
|
|
32
|
+
import "./chunk-KBYXAQS3.js";
|
|
33
|
+
import "./chunk-YQSWVHKK.js";
|
|
34
|
+
import "./chunk-6NOZK4JY.js";
|
|
35
|
+
import "./chunk-Q53APMHH.js";
|
|
38
36
|
import "./chunk-M2X6OHHR.js";
|
|
39
37
|
import "./chunk-QOSAWNOU.js";
|
|
40
38
|
import "./chunk-D2J3AD6L.js";
|
|
41
39
|
import "./chunk-5ZCCUM75.js";
|
|
42
40
|
import "./chunk-IAKOKZYW.js";
|
|
41
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
43
42
|
import "./chunk-F2ECTTSY.js";
|
|
44
43
|
|
|
45
44
|
// src/commands/update.ts
|
|
@@ -75,4 +74,4 @@ var updateCommand = {
|
|
|
75
74
|
export {
|
|
76
75
|
updateCommand
|
|
77
76
|
};
|
|
78
|
-
//# sourceMappingURL=update-
|
|
77
|
+
//# sourceMappingURL=update-4XHZ4VQZ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/update.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { updateSession } from '../core/stacks/session-update.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work update` — the dashboard's Update from main / Update from <parent> /\n * Move onto main (session-update.ts): whichever the session needs.\n */\nexport const updateCommand: CommandModule = {\n command: 'update [target] [branch]',\n describe: \"Bring a session's branch up to date: from main, from the session it is stacked on, or onto main once that one merged\",\n builder: (yargs) => sessionPositionals(yargs),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const r = await updateSession(s);\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n const what = r.how === 'onto-main' ? `onto main (${r.base} merged)` : r.how === 'parent' ? `from ${r.base}` : 'from main';\n console.log(chalk.cyan(`Updating ${s.target} · ${s.branch} ${what}…`));\n for (const x of r.results) {\n if (!x.ok) console.log(chalk.red(` ${x.repo}: ${x.reason}`));\n else if (x.how === 'nothing') console.log(chalk.gray(` ${x.repo}: already up to date`));\n else\n console.log(\n chalk.green(\n ` ${x.repo}: ${x.how === 'rebase' ? 'rebased on' : 'merged'} ${x.base} (${x.commits} commit${x.commits === 1 ? '' : 's'})`,\n ),\n );\n }\n if (r.results.some((x) => !x.ok)) process.exitCode = 1;\n },\n};\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/commands/update.ts"],"sourcesContent":["import chalk from 'chalk';\nimport type { CommandModule } from 'yargs';\nimport { updateSession } from '../core/stacks/session-update.js';\nimport { sessionFromArgs, sessionPositionals } from './shared/session-arg.js';\n\n/**\n * `work update` — the dashboard's Update from main / Update from <parent> /\n * Move onto main (session-update.ts): whichever the session needs.\n */\nexport const updateCommand: CommandModule = {\n command: 'update [target] [branch]',\n describe: \"Bring a session's branch up to date: from main, from the session it is stacked on, or onto main once that one merged\",\n builder: (yargs) => sessionPositionals(yargs),\n handler: async (argv) => {\n const s = sessionFromArgs(argv);\n if (!s) return;\n const r = await updateSession(s);\n if (!r.ok) {\n console.error(chalk.red(r.error));\n process.exitCode = 1;\n return;\n }\n const what = r.how === 'onto-main' ? `onto main (${r.base} merged)` : r.how === 'parent' ? `from ${r.base}` : 'from main';\n console.log(chalk.cyan(`Updating ${s.target} · ${s.branch} ${what}…`));\n for (const x of r.results) {\n if (!x.ok) console.log(chalk.red(` ${x.repo}: ${x.reason}`));\n else if (x.how === 'nothing') console.log(chalk.gray(` ${x.repo}: already up to date`));\n else\n console.log(\n chalk.green(\n ` ${x.repo}: ${x.how === 'rebase' ? 'rebased on' : 'merged'} ${x.base} (${x.commits} commit${x.commits === 1 ? '' : 's'})`,\n ),\n );\n }\n if (r.results.some((x) => !x.ok)) process.exitCode = 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
refreshUsage,
|
|
6
6
|
restoreAgentUsage
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-KEIID3YY.js";
|
|
8
|
+
import "./chunk-4JQ3CMLS.js";
|
|
9
9
|
import {
|
|
10
10
|
formatTokens,
|
|
11
11
|
resetPhrase
|
|
12
12
|
} from "./chunk-LK7HJGUC.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-NVVDE63M.js";
|
|
14
14
|
import "./chunk-NEJVK5CF.js";
|
|
15
|
-
import "./chunk-QGUBOOEN.js";
|
|
16
15
|
import {
|
|
17
16
|
knownAgents
|
|
18
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3PO2LUY7.js";
|
|
19
18
|
import "./chunk-KGHWHAVF.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-ED6YLB4S.js";
|
|
19
|
+
import "./chunk-QGUBOOEN.js";
|
|
22
20
|
import "./chunk-Z6ACV5ZQ.js";
|
|
23
|
-
import "./chunk-JUGF3YE7.js";
|
|
24
|
-
import "./chunk-HK6AZQ5Z.js";
|
|
25
|
-
import "./chunk-XIN6XUFL.js";
|
|
26
|
-
import "./chunk-ETWP7MDS.js";
|
|
27
21
|
import "./chunk-7ZATXG5F.js";
|
|
22
|
+
import "./chunk-JUGF3YE7.js";
|
|
28
23
|
import "./chunk-BR6OWWAA.js";
|
|
24
|
+
import "./chunk-KBYXAQS3.js";
|
|
25
|
+
import "./chunk-YQSWVHKK.js";
|
|
26
|
+
import "./chunk-6NOZK4JY.js";
|
|
27
|
+
import "./chunk-Q53APMHH.js";
|
|
29
28
|
import "./chunk-M2X6OHHR.js";
|
|
30
29
|
import "./chunk-QOSAWNOU.js";
|
|
31
30
|
import "./chunk-D2J3AD6L.js";
|
|
32
31
|
import "./chunk-5ZCCUM75.js";
|
|
33
32
|
import "./chunk-IAKOKZYW.js";
|
|
33
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
34
34
|
import "./chunk-F2ECTTSY.js";
|
|
35
35
|
|
|
36
36
|
// src/commands/usage.ts
|
|
@@ -91,4 +91,4 @@ export {
|
|
|
91
91
|
usageCommand,
|
|
92
92
|
usageLines
|
|
93
93
|
};
|
|
94
|
-
//# sourceMappingURL=usage-
|
|
94
|
+
//# sourceMappingURL=usage-JDXG5SDA.js.map
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
import {
|
|
3
3
|
withoutParentSession
|
|
4
4
|
} from "./chunk-KGHWHAVF.js";
|
|
5
|
-
import {
|
|
6
|
-
applyEnvDelta,
|
|
7
|
-
internalRunEnv
|
|
8
|
-
} from "./chunk-ED6YLB4S.js";
|
|
9
5
|
import {
|
|
10
6
|
recordReading
|
|
11
7
|
} from "./chunk-JUGF3YE7.js";
|
|
12
|
-
import {
|
|
13
|
-
accountEnv,
|
|
14
|
-
isLoggedIn,
|
|
15
|
-
setUpAccounts
|
|
16
|
-
} from "./chunk-XIN6XUFL.js";
|
|
17
|
-
import "./chunk-ETWP7MDS.js";
|
|
18
8
|
import {
|
|
19
9
|
accountOf,
|
|
20
10
|
clampPercent,
|
|
21
11
|
labelOf
|
|
22
12
|
} from "./chunk-BR6OWWAA.js";
|
|
13
|
+
import {
|
|
14
|
+
applyEnvDelta,
|
|
15
|
+
internalRunEnv
|
|
16
|
+
} from "./chunk-YQSWVHKK.js";
|
|
17
|
+
import {
|
|
18
|
+
accountEnv,
|
|
19
|
+
isLoggedIn,
|
|
20
|
+
setUpAccounts
|
|
21
|
+
} from "./chunk-6NOZK4JY.js";
|
|
22
|
+
import "./chunk-Q53APMHH.js";
|
|
23
23
|
import {
|
|
24
24
|
spawn_default
|
|
25
25
|
} from "./chunk-QOSAWNOU.js";
|
|
@@ -173,4 +173,4 @@ export {
|
|
|
173
173
|
parseUsageAnswer,
|
|
174
174
|
resetUsageAsks
|
|
175
175
|
};
|
|
176
|
-
//# sourceMappingURL=usage-ask-
|
|
176
|
+
//# sourceMappingURL=usage-ask-5ZWNYLVJ.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
VERSION_TIMEOUT_MS,
|
|
4
|
+
VERSION_TTL_MS,
|
|
5
|
+
atLeast,
|
|
6
|
+
binaryStamp,
|
|
7
|
+
claudeReadOnlyAvailable,
|
|
8
|
+
forgetClaudeVersions,
|
|
9
|
+
parseClaudeVersion,
|
|
10
|
+
runVersion
|
|
11
|
+
} from "./chunk-KBYXAQS3.js";
|
|
12
|
+
import "./chunk-YQSWVHKK.js";
|
|
13
|
+
import "./chunk-6NOZK4JY.js";
|
|
14
|
+
import "./chunk-Q53APMHH.js";
|
|
15
|
+
import "./chunk-M2X6OHHR.js";
|
|
16
|
+
import "./chunk-QOSAWNOU.js";
|
|
17
|
+
import "./chunk-D2J3AD6L.js";
|
|
18
|
+
import "./chunk-5ZCCUM75.js";
|
|
19
|
+
import "./chunk-IAKOKZYW.js";
|
|
20
|
+
import "./chunk-F2ECTTSY.js";
|
|
21
|
+
export {
|
|
22
|
+
VERSION_TIMEOUT_MS,
|
|
23
|
+
VERSION_TTL_MS,
|
|
24
|
+
atLeast,
|
|
25
|
+
binaryStamp,
|
|
26
|
+
claudeReadOnlyAvailable,
|
|
27
|
+
forgetClaudeVersions,
|
|
28
|
+
parseClaudeVersion,
|
|
29
|
+
runVersion
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=version-VT2JXBQT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
cliWaitDeps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3DPHZKSL.js";
|
|
5
5
|
import {
|
|
6
6
|
parseDuration,
|
|
7
7
|
waitForTurn
|
|
@@ -10,33 +10,33 @@ import "./chunk-FZHFD2AY.js";
|
|
|
10
10
|
import {
|
|
11
11
|
sessionFromArgs,
|
|
12
12
|
sessionPositionals
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ADOCX5G3.js";
|
|
14
14
|
import "./chunk-6AQRYLOB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-FW35KEAD.js";
|
|
16
16
|
import "./chunk-ZSHWP2VS.js";
|
|
17
17
|
import "./chunk-UPS7NHKI.js";
|
|
18
18
|
import "./chunk-HUXS3VAI.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-NVVDE63M.js";
|
|
20
20
|
import "./chunk-NEJVK5CF.js";
|
|
21
|
+
import "./chunk-3PO2LUY7.js";
|
|
22
|
+
import "./chunk-KGHWHAVF.js";
|
|
21
23
|
import {
|
|
22
24
|
sessionIdFor
|
|
23
25
|
} 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
26
|
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
27
|
import "./chunk-7ZATXG5F.js";
|
|
28
|
+
import "./chunk-JUGF3YE7.js";
|
|
34
29
|
import "./chunk-BR6OWWAA.js";
|
|
30
|
+
import "./chunk-KBYXAQS3.js";
|
|
31
|
+
import "./chunk-YQSWVHKK.js";
|
|
32
|
+
import "./chunk-6NOZK4JY.js";
|
|
33
|
+
import "./chunk-Q53APMHH.js";
|
|
35
34
|
import "./chunk-M2X6OHHR.js";
|
|
36
35
|
import "./chunk-QOSAWNOU.js";
|
|
37
36
|
import "./chunk-D2J3AD6L.js";
|
|
38
37
|
import "./chunk-5ZCCUM75.js";
|
|
39
38
|
import "./chunk-IAKOKZYW.js";
|
|
39
|
+
import "./chunk-HK6AZQ5Z.js";
|
|
40
40
|
import "./chunk-F2ECTTSY.js";
|
|
41
41
|
|
|
42
42
|
// src/commands/wait.ts
|
|
@@ -68,4 +68,4 @@ var waitCommand = {
|
|
|
68
68
|
export {
|
|
69
69
|
waitCommand
|
|
70
70
|
};
|
|
71
|
-
//# sourceMappingURL=wait-
|
|
71
|
+
//# sourceMappingURL=wait-FEN3WAEQ.js.map
|
package/dist/wd-bin.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
run
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-S2Q6M64P.js";
|
|
5
5
|
import {
|
|
6
6
|
consoleReporter
|
|
7
7
|
} from "./chunk-S5HJT7CM.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-REVI2JIA.js";
|
|
9
9
|
import "./chunk-IPHADNF5.js";
|
|
10
10
|
import "./chunk-JYWX2N5W.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-Q53APMHH.js";
|
|
12
12
|
import "./chunk-QOSAWNOU.js";
|
|
13
13
|
import "./chunk-D2J3AD6L.js";
|
|
14
14
|
import {
|