@moberg_hr/work-tree 2.22.5 → 2.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{account-J55P3HXH.js → account-O62WFR7C.js} +23 -20
- package/dist/{account-J55P3HXH.js.map → account-O62WFR7C.js.map} +1 -1
- package/dist/{add-repo-ALVEGU25.js → add-repo-FTAMMPVM.js} +13 -13
- package/dist/{answer-CI2SPQQL.js → answer-LKNMN2ZM.js} +11 -11
- package/dist/{attach-7LBIFBLX.js → attach-A3KA4YTK.js} +20 -17
- package/dist/{attach-7LBIFBLX.js.map → attach-A3KA4YTK.js.map} +1 -1
- package/dist/bin.js +4 -4
- package/dist/{block-TVIYWRJ5.js → block-3ZUFH2RO.js} +12 -12
- package/dist/{broadcast-GZNMZFOY.js → broadcast-I23BZI3R.js} +8 -8
- package/dist/{catchup-ZURJI6BF.js → catchup-G4EOJIZP.js} +13 -13
- package/dist/{child-K6YYF6MQ.js → child-MVNEFA2I.js} +11 -11
- package/dist/{chunk-ZTWZS5RK.js → chunk-24FQ5XXN.js} +3 -3
- package/dist/{chunk-D2SVBU7R.js → chunk-2FNYJEOH.js} +2 -2
- package/dist/{chunk-EEHPZMS3.js → chunk-2JLG65GB.js} +2 -2
- package/dist/{chunk-DC73NF67.js → chunk-2MJQTFTI.js} +3 -3
- package/dist/chunk-44QJVFOF.js +64 -0
- package/dist/chunk-44QJVFOF.js.map +1 -0
- package/dist/{chunk-7Q5PBXF6.js → chunk-4FN45EAF.js} +51 -10
- package/dist/chunk-4FN45EAF.js.map +1 -0
- package/dist/{chunk-G4T2HGLJ.js → chunk-4HQEYZIM.js} +4 -4
- package/dist/{chunk-WRDULHAN.js → chunk-5QENUGSC.js} +117 -16
- package/dist/chunk-5QENUGSC.js.map +1 -0
- package/dist/{chunk-CA56ETYX.js → chunk-5SXTMOO6.js} +5 -5
- package/dist/chunk-6KMG4WNW.js +87 -0
- package/dist/chunk-6KMG4WNW.js.map +1 -0
- package/dist/{chunk-OCUUM755.js → chunk-6PZ7RCXK.js} +2 -2
- package/dist/{chunk-RTCTD5PJ.js → chunk-773UJC5C.js} +4 -4
- package/dist/{chunk-W4GDPHIF.js → chunk-7ZATXG5F.js} +2 -2
- package/dist/{chunk-PTAG6WIE.js → chunk-APHVSSLI.js} +17 -3
- package/dist/chunk-APHVSSLI.js.map +1 -0
- package/dist/chunk-BCYBF7KJ.js +207 -0
- package/dist/chunk-BCYBF7KJ.js.map +1 -0
- package/dist/{chunk-6Y3VLCKA.js → chunk-BI7HIO2I.js} +3 -3
- package/dist/{chunk-FGBLFF4O.js → chunk-BMPTUIP4.js} +2 -2
- package/dist/{chunk-VQDE3DRG.js → chunk-DHZ5DF6Y.js} +6 -2
- package/dist/{chunk-VQDE3DRG.js.map → chunk-DHZ5DF6Y.js.map} +1 -1
- package/dist/{chunk-BQS73CWR.js → chunk-ET5K6S5H.js} +2 -2
- package/dist/{chunk-B2WV5RAL.js → chunk-ETAPX4JN.js} +5 -5
- package/dist/{chunk-3ZPVKUYD.js → chunk-ETWP7MDS.js} +7 -1
- package/dist/chunk-ETWP7MDS.js.map +1 -0
- package/dist/{chunk-RLPC3YKZ.js → chunk-FHC6KHIH.js} +2 -2
- package/dist/{chunk-DF4GOVDE.js → chunk-GF7RAQFD.js} +2 -2
- package/dist/{chunk-ZO7TF5OL.js → chunk-GHY7GZWN.js} +4 -4
- package/dist/{chunk-5FIUVBUC.js → chunk-GN7EAXHU.js} +7 -7
- package/dist/{chunk-EYJ42LDG.js → chunk-GTFMUWK6.js} +4 -4
- package/dist/{chunk-4QMWNAEJ.js → chunk-HCYES6U7.js} +2 -2
- package/dist/{chunk-TOMDOA4P.js → chunk-HNZ736XN.js} +2 -2
- package/dist/{chunk-ATQB6PTV.js → chunk-HPUD5IGB.js} +3 -3
- package/dist/{chunk-FV7BSQPQ.js → chunk-HQDQRC4F.js} +2 -2
- package/dist/{chunk-AITL3JYB.js → chunk-HUWWMTNG.js} +399 -69
- package/dist/chunk-HUWWMTNG.js.map +1 -0
- package/dist/{chunk-SDYY5MHW.js → chunk-INXHVNMZ.js} +7 -7
- package/dist/{chunk-QNOJOZYK.js → chunk-IRDWXDID.js} +2 -2
- package/dist/{chunk-EA4C6TVY.js → chunk-IVS2MAHD.js} +3 -3
- package/dist/{chunk-QOLHDDM2.js → chunk-IXC6EXVJ.js} +4 -4
- package/dist/{chunk-IU6LA6EB.js → chunk-IXZOZZGD.js} +4 -4
- package/dist/{chunk-SZAD5U3J.js → chunk-LB2GAU7E.js} +2 -2
- package/dist/{chunk-VHENFC2S.js → chunk-M2X6OHHR.js} +14 -1
- package/dist/chunk-M2X6OHHR.js.map +1 -0
- package/dist/{chunk-23QLXVH6.js → chunk-MQXMYVZV.js} +12 -14
- package/dist/{chunk-23QLXVH6.js.map → chunk-MQXMYVZV.js.map} +1 -1
- package/dist/{chunk-GNERWNZY.js → chunk-MVBBESXK.js} +4 -4
- package/dist/{chunk-AIYZJ7XD.js → chunk-N7T6NPE2.js} +5 -5
- package/dist/{chunk-GQ5WECPJ.js → chunk-NREZVTBP.js} +3 -3
- package/dist/chunk-NRX5V443.js +9 -0
- package/dist/{chunk-USENBMUV.js → chunk-NS7WH53I.js} +1 -1
- package/dist/chunk-NS7WH53I.js.map +1 -0
- package/dist/{chunk-KQMHGEI2.js → chunk-NWKVTUTN.js} +53 -15
- package/dist/chunk-NWKVTUTN.js.map +1 -0
- package/dist/chunk-NXS53NHR.js +79 -0
- package/dist/chunk-NXS53NHR.js.map +1 -0
- package/dist/{chunk-NYGKSOQ4.js → chunk-OPV6BE3W.js} +6 -6
- package/dist/{chunk-UAF2YFLZ.js → chunk-ROEEXEN7.js} +6 -6
- package/dist/{chunk-F4UIKOU6.js → chunk-TL7VLRRF.js} +4 -4
- package/dist/{chunk-NOQA7MJ4.js → chunk-U2A2DHWP.js} +3 -3
- package/dist/{chunk-Q2B3NUSM.js → chunk-U4XSBYQW.js} +4 -4
- package/dist/{chunk-Z4FWXDJG.js → chunk-VH5FRKJM.js} +3 -3
- package/dist/{chunk-DCENKA6E.js → chunk-W5YYTITQ.js} +2 -2
- package/dist/{chunk-5P27YL64.js → chunk-WOY35FXP.js} +8 -8
- package/dist/{chunk-HI674QZF.js → chunk-XIN6XUFL.js} +2 -2
- package/dist/{chunk-KU3TQAA7.js → chunk-XTAYJDL2.js} +8 -10
- package/dist/{chunk-KU3TQAA7.js.map → chunk-XTAYJDL2.js.map} +1 -1
- package/dist/{chunk-EVTMZ5IH.js → chunk-XWKN2HJD.js} +60 -60
- package/dist/{chunk-CMRTNTMU.js → chunk-YKTJL4SW.js} +6 -6
- package/dist/{chunk-RNPNBGVX.js → chunk-ZG6HB4BO.js} +3 -5
- package/dist/{chunk-RNPNBGVX.js.map → chunk-ZG6HB4BO.js.map} +1 -1
- package/dist/{chunk-PUJSLL6R.js → chunk-ZLPK2LQ3.js} +5 -5
- package/dist/{chunk-LV5JRLBM.js → chunk-ZMJR4Z6O.js} +17 -7
- package/dist/chunk-ZMJR4Z6O.js.map +1 -0
- package/dist/{chunk-YO3BNAAK.js → chunk-ZNRPBP5O.js} +27 -5
- package/dist/chunk-ZNRPBP5O.js.map +1 -0
- package/dist/{chunk-Z4P23XG3.js → chunk-ZX4ONO5Y.js} +5 -5
- package/dist/{cleanup-G4WQACD6.js → cleanup-ANVUCOBK.js} +32 -31
- package/dist/{cleanup-G4WQACD6.js.map → cleanup-ANVUCOBK.js.map} +1 -1
- package/dist/{cli-OPORB5PF.js → cli-CAF6VCVO.js} +4 -4
- package/dist/{color-C223W3Z6.js → color-7CQNI6Y4.js} +11 -11
- package/dist/{config-KQYXQCQA.js → config-EXQY26W4.js} +10 -10
- package/dist/{coordinate-4E5GIMC6.js → coordinate-LRY7LXS6.js} +11 -11
- package/dist/{diff-HEOLTXO2.js → diff-JRK3AUD5.js} +12 -13
- package/dist/{diff-HEOLTXO2.js.map → diff-JRK3AUD5.js.map} +1 -1
- package/dist/{digest-GYF4YLUH.js → digest-2AFW3WBL.js} +11 -11
- package/dist/{fork-B35ONP3Z.js → fork-DSNMPWUE.js} +29 -26
- package/dist/{fork-B35ONP3Z.js.map → fork-DSNMPWUE.js.map} +1 -1
- package/dist/{history-25DNQKKC.js → history-RFIDCGQY.js} +8 -8
- package/dist/{hook-B4JO2X57.js → hook-XBALB337.js} +20 -20
- package/dist/{hydrate-IJEKNZIP.js → hydrate-DAEY4PB6.js} +8 -8
- package/dist/{init-UJVOUDJI.js → init-4BK3T34W.js} +12 -12
- package/dist/{install-skills-FV2L5QHE.js → install-skills-TL5D7HZU.js} +8 -9
- package/dist/install-skills-bin.js +7 -8
- package/dist/install-skills-bin.js.map +1 -1
- package/dist/{keep-PKXGFZO2.js → keep-57TUKADV.js} +10 -10
- package/dist/{list-VYQ3QE2H.js → list-DRQRIT6U.js} +8 -8
- package/dist/{move-IAZY23ZX.js → move-UEHJ375P.js} +16 -16
- package/dist/{note-6HQUKUYY.js → note-FHPDVBRI.js} +10 -10
- package/dist/{overlaps-CGP3RJOW.js → overlaps-GKAKEUB6.js} +13 -13
- package/dist/{pin-PAWGQ4Q2.js → pin-CFTQDPPC.js} +11 -11
- package/dist/{pr-OJOGE3A3.js → pr-ZP4COZEZ.js} +22 -21
- package/dist/{pr-OJOGE3A3.js.map → pr-ZP4COZEZ.js.map} +1 -1
- package/dist/{prune-42MS36OR.js → prune-IQB2T45B.js} +29 -29
- package/dist/pty-host-BPFGJFBC.js +2658 -0
- package/dist/pty-host-BPFGJFBC.js.map +1 -0
- package/dist/{read-ATNCW4KH.js → read-DHJ6VY44.js} +10 -10
- package/dist/{recent-MTBFQT36.js → recent-OZW2ZNJ4.js} +16 -15
- package/dist/{recent-MTBFQT36.js.map → recent-OZW2ZNJ4.js.map} +1 -1
- package/dist/{remove-GLDJOKUI.js → remove-MW25RLNV.js} +30 -30
- package/dist/{report-AK7Z2Y4S.js → report-II75EKM6.js} +11 -11
- package/dist/{restart-DEPDGEZB.js → restart-4BGVRBX6.js} +11 -11
- package/dist/{resume-C2QPKKFN.js → resume-4J53KDCO.js} +16 -15
- package/dist/{resume-C2QPKKFN.js.map → resume-4J53KDCO.js.map} +1 -1
- package/dist/{review-RYAGH3PY.js → review-WKB3K6LI.js} +10 -10
- package/dist/{review-now-K4UWD7A5.js → review-now-AT2SPPRO.js} +2 -2
- package/dist/{run-WNP2SMNW.js → run-YS2D7WAQ.js} +8 -8
- package/dist/{screen-P746M4F2.js → screen-VVRNQXVW.js} +11 -11
- package/dist/{search-XQ2WMK5X.js → search-MKYCKZF4.js} +8 -8
- package/dist/{section-Q7TPOV7U.js → section-Y6RDD3MN.js} +11 -11
- package/dist/{send-EGG23J2B.js → send-AZM2XKN2.js} +12 -12
- package/dist/{sessions-2NNCWIND.js → sessions-OER6VNQJ.js} +26 -24
- package/dist/{sessions-2NNCWIND.js.map → sessions-OER6VNQJ.js.map} +1 -1
- package/dist/{show-KSMC7AJL.js → show-33VV3XCF.js} +10 -10
- package/dist/{snooze-4LVYUQEX.js → snooze-OFYZVVYS.js} +10 -10
- package/dist/{start-YKLLXW3L.js → start-OEQ5VW7Y.js} +11 -11
- package/dist/{state-GM22X3RN.js → state-HK67C4UA.js} +3 -3
- package/dist/state-HK67C4UA.js.map +1 -0
- package/dist/{status-4HGP4ZEF.js → status-HPYMNO2T.js} +11 -11
- package/dist/{statusline-QJ6CJGHB.js → statusline-Z5HLKDIA.js} +5 -5
- package/dist/{statusline-hook-Q645N4XF.js → statusline-hook-VPPS3PFO.js} +3 -3
- package/dist/{stop-YBQL6NFF.js → stop-QNICDWAU.js} +11 -11
- package/dist/{sync-DUXN2MFJ.js → sync-RH3M47QK.js} +29 -29
- package/dist/{time-Q42HPZZ3.js → time-PM72GK5W.js} +11 -11
- package/dist/{time-actions-IXZRVKKQ.js → time-actions-O3MCB7FU.js} +3 -3
- package/dist/{timesheet-YJ6O3GUU.js → timesheet-HJXQ4KHL.js} +15 -15
- package/dist/{todo-ZBFRL2A5.js → todo-UVKGOG7D.js} +2 -2
- package/dist/{tree-H2UYE6LH.js → tree-RGT736E3.js} +30 -28
- package/dist/{tree-H2UYE6LH.js.map → tree-RGT736E3.js.map} +1 -1
- package/dist/{update-RGNKMRUL.js → update-CMYVBWV3.js} +15 -15
- package/dist/{usage-YZRZKJ3H.js → usage-VEKD3JPL.js} +10 -10
- package/dist/{usage-ask-BYPNLA2B.js → usage-ask-V2SIRW4F.js} +3 -3
- package/dist/{version-4IOMOIDP.js → version-RJ4PCHPB.js} +5 -5
- package/dist/{wait-YOHPFWVJ.js → wait-RQZU3KDY.js} +11 -11
- package/dist/wd-bin.js +3 -3
- package/dist/web/assets/{PtyView-CYAhB_pW.js → PtyView-qP6blm2-.js} +26 -28
- package/dist/web/assets/PtyView-qP6blm2-.js.map +1 -0
- package/dist/web/assets/index-DuFRboh6.js +129 -0
- package/dist/web/assets/index-DuFRboh6.js.map +1 -0
- package/dist/web/assets/index-yBTfBzDm.css +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-Q672AIMZ.js → web-GOCU26ZD.js} +617 -526
- package/dist/web-GOCU26ZD.js.map +1 -0
- package/npm-shrinkwrap.json +3 -4
- package/package.json +2 -2
- package/dist/chunk-3ZPVKUYD.js.map +0 -1
- package/dist/chunk-7Q5PBXF6.js.map +0 -1
- package/dist/chunk-7ZOY2QQN.js +0 -43
- package/dist/chunk-7ZOY2QQN.js.map +0 -1
- package/dist/chunk-AITL3JYB.js.map +0 -1
- package/dist/chunk-EXZ4A6VJ.js +0 -9
- package/dist/chunk-ICEP4WAK.js +0 -256
- package/dist/chunk-ICEP4WAK.js.map +0 -1
- package/dist/chunk-KQMHGEI2.js.map +0 -1
- package/dist/chunk-LNHSBM4L.js +0 -26
- package/dist/chunk-LNHSBM4L.js.map +0 -1
- package/dist/chunk-LV5JRLBM.js.map +0 -1
- package/dist/chunk-PTAG6WIE.js.map +0 -1
- package/dist/chunk-USENBMUV.js.map +0 -1
- package/dist/chunk-VHENFC2S.js.map +0 -1
- package/dist/chunk-WRDULHAN.js.map +0 -1
- package/dist/chunk-YO3BNAAK.js.map +0 -1
- package/dist/pty-host-EAWW62U4.js +0 -1235
- package/dist/pty-host-EAWW62U4.js.map +0 -1
- package/dist/state-GM22X3RN.js.map +0 -1
- package/dist/web/assets/PtyView-CYAhB_pW.js.map +0 -1
- package/dist/web/assets/index-Ca7KbCED.css +0 -1
- package/dist/web/assets/index-iBmmgBZv.js +0 -129
- package/dist/web/assets/index-iBmmgBZv.js.map +0 -1
- package/dist/web-Q672AIMZ.js.map +0 -1
- /package/dist/{add-repo-ALVEGU25.js.map → add-repo-FTAMMPVM.js.map} +0 -0
- /package/dist/{answer-CI2SPQQL.js.map → answer-LKNMN2ZM.js.map} +0 -0
- /package/dist/{block-TVIYWRJ5.js.map → block-3ZUFH2RO.js.map} +0 -0
- /package/dist/{broadcast-GZNMZFOY.js.map → broadcast-I23BZI3R.js.map} +0 -0
- /package/dist/{catchup-ZURJI6BF.js.map → catchup-G4EOJIZP.js.map} +0 -0
- /package/dist/{child-K6YYF6MQ.js.map → child-MVNEFA2I.js.map} +0 -0
- /package/dist/{chunk-ZTWZS5RK.js.map → chunk-24FQ5XXN.js.map} +0 -0
- /package/dist/{chunk-D2SVBU7R.js.map → chunk-2FNYJEOH.js.map} +0 -0
- /package/dist/{chunk-EEHPZMS3.js.map → chunk-2JLG65GB.js.map} +0 -0
- /package/dist/{chunk-DC73NF67.js.map → chunk-2MJQTFTI.js.map} +0 -0
- /package/dist/{chunk-G4T2HGLJ.js.map → chunk-4HQEYZIM.js.map} +0 -0
- /package/dist/{chunk-CA56ETYX.js.map → chunk-5SXTMOO6.js.map} +0 -0
- /package/dist/{chunk-OCUUM755.js.map → chunk-6PZ7RCXK.js.map} +0 -0
- /package/dist/{chunk-RTCTD5PJ.js.map → chunk-773UJC5C.js.map} +0 -0
- /package/dist/{chunk-W4GDPHIF.js.map → chunk-7ZATXG5F.js.map} +0 -0
- /package/dist/{chunk-6Y3VLCKA.js.map → chunk-BI7HIO2I.js.map} +0 -0
- /package/dist/{chunk-FGBLFF4O.js.map → chunk-BMPTUIP4.js.map} +0 -0
- /package/dist/{chunk-BQS73CWR.js.map → chunk-ET5K6S5H.js.map} +0 -0
- /package/dist/{chunk-B2WV5RAL.js.map → chunk-ETAPX4JN.js.map} +0 -0
- /package/dist/{chunk-RLPC3YKZ.js.map → chunk-FHC6KHIH.js.map} +0 -0
- /package/dist/{chunk-DF4GOVDE.js.map → chunk-GF7RAQFD.js.map} +0 -0
- /package/dist/{chunk-ZO7TF5OL.js.map → chunk-GHY7GZWN.js.map} +0 -0
- /package/dist/{chunk-5FIUVBUC.js.map → chunk-GN7EAXHU.js.map} +0 -0
- /package/dist/{chunk-EYJ42LDG.js.map → chunk-GTFMUWK6.js.map} +0 -0
- /package/dist/{chunk-4QMWNAEJ.js.map → chunk-HCYES6U7.js.map} +0 -0
- /package/dist/{chunk-TOMDOA4P.js.map → chunk-HNZ736XN.js.map} +0 -0
- /package/dist/{chunk-ATQB6PTV.js.map → chunk-HPUD5IGB.js.map} +0 -0
- /package/dist/{chunk-FV7BSQPQ.js.map → chunk-HQDQRC4F.js.map} +0 -0
- /package/dist/{chunk-SDYY5MHW.js.map → chunk-INXHVNMZ.js.map} +0 -0
- /package/dist/{chunk-QNOJOZYK.js.map → chunk-IRDWXDID.js.map} +0 -0
- /package/dist/{chunk-EA4C6TVY.js.map → chunk-IVS2MAHD.js.map} +0 -0
- /package/dist/{chunk-QOLHDDM2.js.map → chunk-IXC6EXVJ.js.map} +0 -0
- /package/dist/{chunk-IU6LA6EB.js.map → chunk-IXZOZZGD.js.map} +0 -0
- /package/dist/{chunk-SZAD5U3J.js.map → chunk-LB2GAU7E.js.map} +0 -0
- /package/dist/{chunk-GNERWNZY.js.map → chunk-MVBBESXK.js.map} +0 -0
- /package/dist/{chunk-AIYZJ7XD.js.map → chunk-N7T6NPE2.js.map} +0 -0
- /package/dist/{chunk-GQ5WECPJ.js.map → chunk-NREZVTBP.js.map} +0 -0
- /package/dist/{chunk-EXZ4A6VJ.js.map → chunk-NRX5V443.js.map} +0 -0
- /package/dist/{chunk-NYGKSOQ4.js.map → chunk-OPV6BE3W.js.map} +0 -0
- /package/dist/{chunk-UAF2YFLZ.js.map → chunk-ROEEXEN7.js.map} +0 -0
- /package/dist/{chunk-F4UIKOU6.js.map → chunk-TL7VLRRF.js.map} +0 -0
- /package/dist/{chunk-NOQA7MJ4.js.map → chunk-U2A2DHWP.js.map} +0 -0
- /package/dist/{chunk-Q2B3NUSM.js.map → chunk-U4XSBYQW.js.map} +0 -0
- /package/dist/{chunk-Z4FWXDJG.js.map → chunk-VH5FRKJM.js.map} +0 -0
- /package/dist/{chunk-DCENKA6E.js.map → chunk-W5YYTITQ.js.map} +0 -0
- /package/dist/{chunk-5P27YL64.js.map → chunk-WOY35FXP.js.map} +0 -0
- /package/dist/{chunk-HI674QZF.js.map → chunk-XIN6XUFL.js.map} +0 -0
- /package/dist/{chunk-EVTMZ5IH.js.map → chunk-XWKN2HJD.js.map} +0 -0
- /package/dist/{chunk-CMRTNTMU.js.map → chunk-YKTJL4SW.js.map} +0 -0
- /package/dist/{chunk-PUJSLL6R.js.map → chunk-ZLPK2LQ3.js.map} +0 -0
- /package/dist/{chunk-Z4P23XG3.js.map → chunk-ZX4ONO5Y.js.map} +0 -0
- /package/dist/{cli-OPORB5PF.js.map → cli-CAF6VCVO.js.map} +0 -0
- /package/dist/{color-C223W3Z6.js.map → color-7CQNI6Y4.js.map} +0 -0
- /package/dist/{config-KQYXQCQA.js.map → config-EXQY26W4.js.map} +0 -0
- /package/dist/{coordinate-4E5GIMC6.js.map → coordinate-LRY7LXS6.js.map} +0 -0
- /package/dist/{digest-GYF4YLUH.js.map → digest-2AFW3WBL.js.map} +0 -0
- /package/dist/{history-25DNQKKC.js.map → history-RFIDCGQY.js.map} +0 -0
- /package/dist/{hook-B4JO2X57.js.map → hook-XBALB337.js.map} +0 -0
- /package/dist/{hydrate-IJEKNZIP.js.map → hydrate-DAEY4PB6.js.map} +0 -0
- /package/dist/{init-UJVOUDJI.js.map → init-4BK3T34W.js.map} +0 -0
- /package/dist/{install-skills-FV2L5QHE.js.map → install-skills-TL5D7HZU.js.map} +0 -0
- /package/dist/{keep-PKXGFZO2.js.map → keep-57TUKADV.js.map} +0 -0
- /package/dist/{list-VYQ3QE2H.js.map → list-DRQRIT6U.js.map} +0 -0
- /package/dist/{move-IAZY23ZX.js.map → move-UEHJ375P.js.map} +0 -0
- /package/dist/{note-6HQUKUYY.js.map → note-FHPDVBRI.js.map} +0 -0
- /package/dist/{overlaps-CGP3RJOW.js.map → overlaps-GKAKEUB6.js.map} +0 -0
- /package/dist/{pin-PAWGQ4Q2.js.map → pin-CFTQDPPC.js.map} +0 -0
- /package/dist/{prune-42MS36OR.js.map → prune-IQB2T45B.js.map} +0 -0
- /package/dist/{read-ATNCW4KH.js.map → read-DHJ6VY44.js.map} +0 -0
- /package/dist/{remove-GLDJOKUI.js.map → remove-MW25RLNV.js.map} +0 -0
- /package/dist/{report-AK7Z2Y4S.js.map → report-II75EKM6.js.map} +0 -0
- /package/dist/{restart-DEPDGEZB.js.map → restart-4BGVRBX6.js.map} +0 -0
- /package/dist/{review-RYAGH3PY.js.map → review-WKB3K6LI.js.map} +0 -0
- /package/dist/{review-now-K4UWD7A5.js.map → review-now-AT2SPPRO.js.map} +0 -0
- /package/dist/{run-WNP2SMNW.js.map → run-YS2D7WAQ.js.map} +0 -0
- /package/dist/{screen-P746M4F2.js.map → screen-VVRNQXVW.js.map} +0 -0
- /package/dist/{search-XQ2WMK5X.js.map → search-MKYCKZF4.js.map} +0 -0
- /package/dist/{section-Q7TPOV7U.js.map → section-Y6RDD3MN.js.map} +0 -0
- /package/dist/{send-EGG23J2B.js.map → send-AZM2XKN2.js.map} +0 -0
- /package/dist/{show-KSMC7AJL.js.map → show-33VV3XCF.js.map} +0 -0
- /package/dist/{snooze-4LVYUQEX.js.map → snooze-OFYZVVYS.js.map} +0 -0
- /package/dist/{start-YKLLXW3L.js.map → start-OEQ5VW7Y.js.map} +0 -0
- /package/dist/{status-4HGP4ZEF.js.map → status-HPYMNO2T.js.map} +0 -0
- /package/dist/{statusline-QJ6CJGHB.js.map → statusline-Z5HLKDIA.js.map} +0 -0
- /package/dist/{statusline-hook-Q645N4XF.js.map → statusline-hook-VPPS3PFO.js.map} +0 -0
- /package/dist/{stop-YBQL6NFF.js.map → stop-QNICDWAU.js.map} +0 -0
- /package/dist/{sync-DUXN2MFJ.js.map → sync-RH3M47QK.js.map} +0 -0
- /package/dist/{time-Q42HPZZ3.js.map → time-PM72GK5W.js.map} +0 -0
- /package/dist/{time-actions-IXZRVKKQ.js.map → time-actions-O3MCB7FU.js.map} +0 -0
- /package/dist/{timesheet-YJ6O3GUU.js.map → timesheet-HJXQ4KHL.js.map} +0 -0
- /package/dist/{todo-ZBFRL2A5.js.map → todo-UVKGOG7D.js.map} +0 -0
- /package/dist/{update-RGNKMRUL.js.map → update-CMYVBWV3.js.map} +0 -0
- /package/dist/{usage-YZRZKJ3H.js.map → usage-VEKD3JPL.js.map} +0 -0
- /package/dist/{usage-ask-BYPNLA2B.js.map → usage-ask-V2SIRW4F.js.map} +0 -0
- /package/dist/{version-4IOMOIDP.js.map → version-RJ4PCHPB.js.map} +0 -0
- /package/dist/{wait-YOHPFWVJ.js.map → wait-RQZU3KDY.js.map} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
processesUnder,
|
|
4
|
+
stopLeftovers
|
|
5
|
+
} from "./chunk-44QJVFOF.js";
|
|
6
|
+
import {
|
|
7
|
+
findSessionForCwd
|
|
8
|
+
} from "./chunk-ZMJR4Z6O.js";
|
|
9
|
+
import {
|
|
10
|
+
listProcessUsage
|
|
11
|
+
} from "./chunk-HUWWMTNG.js";
|
|
12
|
+
import {
|
|
13
|
+
sessionIdFor
|
|
14
|
+
} from "./chunk-QGUBOOEN.js";
|
|
15
|
+
|
|
16
|
+
// src/core/sessions/background-work.ts
|
|
17
|
+
var LONG_BACKGROUND_MS = 30 * 6e4;
|
|
18
|
+
function backgroundRunsLong(agent, now = Date.now()) {
|
|
19
|
+
return agent.state === "shell" && typeof agent.stateAt === "number" && now - agent.stateAt >= LONG_BACKGROUND_MS;
|
|
20
|
+
}
|
|
21
|
+
function backgroundProcesses(agentPid, rows, toolShell) {
|
|
22
|
+
const out = [];
|
|
23
|
+
for (const r of rows) {
|
|
24
|
+
if (r.ppid !== agentPid || r.pid === agentPid) continue;
|
|
25
|
+
const what = toolShell(r.command);
|
|
26
|
+
if (what !== null) out.push({ pid: r.pid, what, tree: [r, ...processesUnder(r.pid, rows)] });
|
|
27
|
+
}
|
|
28
|
+
return out;
|
|
29
|
+
}
|
|
30
|
+
var realIo = { tree: () => listProcessUsage(), stop: (found) => stopLeftovers(found) };
|
|
31
|
+
async function stopBackgroundWork(agents, toolShell, io = realIo) {
|
|
32
|
+
if (!agents.length) return { error: "its agent isn\u2019t running" };
|
|
33
|
+
if (agents.some((a) => a.state !== "shell" && a.state !== "idle"))
|
|
34
|
+
return { error: "its agent is in the middle of a turn or waiting on you: stop them from its terminal, or wait for the turn to end" };
|
|
35
|
+
const rows = await io.tree();
|
|
36
|
+
const found = agents.flatMap((a) => backgroundProcesses(a.pid, rows, toolShell));
|
|
37
|
+
if (!found.length) return { stopped: [] };
|
|
38
|
+
const stopped = new Set((await io.stop(found.flatMap((f) => f.tree))).map((p) => p.pid));
|
|
39
|
+
return { stopped: found.filter((f) => stopped.has(f.pid)).map((f) => ({ pid: f.pid, what: f.what })) };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// src/core/sessions/live-agents.ts
|
|
43
|
+
function agentsBySession(list, sessions) {
|
|
44
|
+
const out = /* @__PURE__ */ new Map();
|
|
45
|
+
for (const c of list) {
|
|
46
|
+
const s = findSessionForCwd(c.cwd, sessions);
|
|
47
|
+
if (!s) continue;
|
|
48
|
+
const id = sessionIdFor(s);
|
|
49
|
+
out.set(id, [...out.get(id) ?? [], c]);
|
|
50
|
+
}
|
|
51
|
+
return out;
|
|
52
|
+
}
|
|
53
|
+
function summarizeAgents(list, appPids, now = Date.now()) {
|
|
54
|
+
if (list.length === 0) return null;
|
|
55
|
+
const inApp = list.filter((c) => appPids.has(c.pid)).length;
|
|
56
|
+
const perConversation = /* @__PURE__ */ new Map();
|
|
57
|
+
for (const c of list) perConversation.set(c.conversationId, (perConversation.get(c.conversationId) ?? 0) + 1);
|
|
58
|
+
const pick = ["busy", "waiting", "shell", "idle"].map((st) => list.find((c) => c.state === st)).find(Boolean);
|
|
59
|
+
return {
|
|
60
|
+
inTerminal: list.length - inApp,
|
|
61
|
+
inApp,
|
|
62
|
+
busy: list.some((c) => c.busy),
|
|
63
|
+
duplicate: [...perConversation.values()].some((n) => n > 1),
|
|
64
|
+
...pick?.state ? {
|
|
65
|
+
state: pick.state,
|
|
66
|
+
...pick.stateAt ? { stateAt: pick.stateAt } : {},
|
|
67
|
+
...pick.waitingFor ? { waitingFor: pick.waitingFor } : {},
|
|
68
|
+
// Its background commands have run this long with no turn (background-work.ts): flagged, with a Stop.
|
|
69
|
+
...pick.state === "shell" && backgroundRunsLong(pick, now) ? { backgroundLong: true } : {}
|
|
70
|
+
} : {}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export {
|
|
75
|
+
stopBackgroundWork,
|
|
76
|
+
agentsBySession,
|
|
77
|
+
summarizeAgents
|
|
78
|
+
};
|
|
79
|
+
//# sourceMappingURL=chunk-NXS53NHR.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/core/sessions/background-work.ts","../src/core/sessions/live-agents.ts"],"sourcesContent":["import type { LiveAgent } from '../agents/types.js';\nimport { processesUnder, stopLeftovers, type ProcessRow } from '../platform/process-tree.js';\nimport { listProcessUsage } from '../platform/process-usage.js';\n\n/**\n * A session's agent at its prompt with background commands still running (Claude Code's `shell` state) for this long\n * is flagged, with a way to stop them (reported: \"why is there a shell left running? … kill background work when it\n * was left behind\"). Never stopped by itself: a dev server, a watcher or a wait the agent set up on purpose looks the\n * same from outside — the flag says so, and you decide.\n */\nexport const LONG_BACKGROUND_MS = 30 * 60_000;\n\n/** Whether a live agent's background commands have been running long enough to be flagged. Pure. */\nexport function backgroundRunsLong(\n agent: Pick<LiveAgent, 'state' | 'stateAt'> | { state?: string | null; stateAt?: number | null },\n now: number = Date.now(),\n): boolean {\n return agent.state === 'shell' && typeof agent.stateAt === 'number' && now - agent.stateAt >= LONG_BACKGROUND_MS;\n}\n\n/** One background command running under an agent: its shell, and what it runs (`what`, as the agent wrote it). */\nexport interface BackgroundProcess {\n pid: number;\n what: string;\n /** Its shell and everything under it, the shell first. */\n tree: ProcessRow[];\n}\n\n/**\n * The agent's background commands: its children that are its own tool shells (`toolShell` says which, and what each\n * runs — an MCP server or anything else it started otherwise isn't one), each with what runs under it. Pure.\n */\nexport function backgroundProcesses(\n agentPid: number,\n rows: readonly ProcessRow[],\n toolShell: (command: string) => string | null,\n): BackgroundProcess[] {\n const out: BackgroundProcess[] = [];\n for (const r of rows) {\n if (r.ppid !== agentPid || r.pid === agentPid) continue;\n const what = toolShell(r.command);\n if (what !== null) out.push({ pid: r.pid, what, tree: [r, ...processesUnder(r.pid, rows)] });\n }\n return out;\n}\n\nexport interface BackgroundStopIo {\n tree: () => Promise<ProcessRow[]>;\n stop: (found: readonly ProcessRow[]) => Promise<ProcessRow[]>;\n}\n\nconst realIo: BackgroundStopIo = { tree: () => listProcessUsage(), stop: (found) => stopLeftovers(found) };\n\n/**\n * Stop a session's background commands: only while its agents are at their prompt (`shell` or `idle`) — mid-turn, a\n * command under it may be the one its turn waits on. Returns what was stopped, or why nothing was.\n */\nexport async function stopBackgroundWork(\n agents: readonly Pick<LiveAgent, 'pid' | 'state'>[],\n toolShell: (command: string) => string | null,\n io: BackgroundStopIo = realIo,\n): Promise<{ stopped: { pid: number; what: string }[] } | { error: string }> {\n if (!agents.length) return { error: 'its agent isn’t running' };\n if (agents.some((a) => a.state !== 'shell' && a.state !== 'idle'))\n return { error: 'its agent is in the middle of a turn or waiting on you: stop them from its terminal, or wait for the turn to end' };\n const rows = await io.tree();\n const found = agents.flatMap((a) => backgroundProcesses(a.pid, rows, toolShell));\n if (!found.length) return { stopped: [] };\n const stopped = new Set((await io.stop(found.flatMap((f) => f.tree))).map((p) => p.pid));\n return { stopped: found.filter((f) => stopped.has(f.pid)).map((f) => ({ pid: f.pid, what: f.what })) };\n}\n","import { backgroundRunsLong } from './background-work.js';\nimport type { SessionClaudes } from '../api-types.js';\nimport type { LiveAgent } from '../agents/types.js';\nimport type { WorktreeSession } from './history.js';\nimport { findSessionForCwd } from '../comments/pending-delivery.js';\nimport { sessionIdFor } from './session-id.js';\n\n/**\n * Running agents by work session, and what the dashboard says about them.\n * Which processes run is each agent's to say (agents/: `live`; Claude's is\n * agents/claude-live.ts, re-exported here).\n */\n\n/** A running Claude: the agents' LiveAgent (agents/types.ts). */\n\n/** Group by work session (a Claude outside any session is left out). */\nexport function agentsBySession(list: LiveAgent[], sessions: WorktreeSession[]): Map<string, LiveAgent[]> {\n const out = new Map<string, LiveAgent[]>();\n for (const c of list) {\n const s = findSessionForCwd(c.cwd, sessions);\n if (!s) continue;\n const id = sessionIdFor(s);\n out.set(id, [...(out.get(id) ?? []), c]);\n }\n return out;\n}\n\n/**\n * What the dashboard says about a session's running Claudes. `appPids` are\n * the ones the app runs itself (the PTY host's); the rest were\n * started in a terminal. `duplicate`: two or more on one conversation — they\n * would both write to it.\n */\nexport function summarizeAgents(list: LiveAgent[], appPids: ReadonlySet<number>, now: number = Date.now()): SessionClaudes | null {\n if (list.length === 0) return null;\n const inApp = list.filter((c) => appPids.has(c.pid)).length;\n const perConversation = new Map<string, number>();\n for (const c of list) perConversation.set(c.conversationId, (perConversation.get(c.conversationId) ?? 0) + 1);\n // The most telling one: any mid-turn, else any waiting on you, else one with a background command running, else idle.\n const pick = (['busy', 'waiting', 'shell', 'idle'] as const).map((st) => list.find((c) => c.state === st)).find(Boolean);\n return {\n inTerminal: list.length - inApp,\n inApp,\n busy: list.some((c) => c.busy),\n duplicate: [...perConversation.values()].some((n) => n > 1),\n ...(pick?.state\n ? {\n state: pick.state,\n ...(pick.stateAt ? { stateAt: pick.stateAt } : {}),\n ...(pick.waitingFor ? { waitingFor: pick.waitingFor } : {}),\n // Its background commands have run this long with no turn (background-work.ts): flagged, with a Stop.\n ...(pick.state === 'shell' && backgroundRunsLong(pick, now) ? { backgroundLong: true as const } : {}),\n }\n : {}),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAUO,IAAM,qBAAqB,KAAK;AAGhC,SAAS,mBACd,OACA,MAAc,KAAK,IAAI,GACd;AACT,SAAO,MAAM,UAAU,WAAW,OAAO,MAAM,YAAY,YAAY,MAAM,MAAM,WAAW;AAChG;AAcO,SAAS,oBACd,UACA,MACA,WACqB;AACrB,QAAM,MAA2B,CAAC;AAClC,aAAW,KAAK,MAAM;AACpB,QAAI,EAAE,SAAS,YAAY,EAAE,QAAQ,SAAU;AAC/C,UAAM,OAAO,UAAU,EAAE,OAAO;AAChC,QAAI,SAAS,KAAM,KAAI,KAAK,EAAE,KAAK,EAAE,KAAK,MAAM,MAAM,CAAC,GAAG,GAAG,eAAe,EAAE,KAAK,IAAI,CAAC,EAAE,CAAC;AAAA,EAC7F;AACA,SAAO;AACT;AAOA,IAAM,SAA2B,EAAE,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,UAAU,cAAc,KAAK,EAAE;AAMzG,eAAsB,mBACpB,QACA,WACA,KAAuB,QACoD;AAC3E,MAAI,CAAC,OAAO,OAAQ,QAAO,EAAE,OAAO,+BAA0B;AAC9D,MAAI,OAAO,KAAK,CAAC,MAAM,EAAE,UAAU,WAAW,EAAE,UAAU,MAAM;AAC9D,WAAO,EAAE,OAAO,mHAAmH;AACrI,QAAM,OAAO,MAAM,GAAG,KAAK;AAC3B,QAAM,QAAQ,OAAO,QAAQ,CAAC,MAAM,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K,KAAK,CAAC,MAAM,EAAE,IAAI;AAAA,IAC7B,WAAW,CAAC,GAAG,gBAAgB,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,IAAI,CAAC;AAAA,IAC1D,GAAI,MAAM,QACN;AAAA,MACE,OAAO,KAAK;AAAA,MACZ,GAAI,KAAK,UAAU,EAAE,SAAS,KAAK,QAAQ,IAAI,CAAC;AAAA,MAChD,GAAI,KAAK,aAAa,EAAE,YAAY,KAAK,WAAW,IAAI,CAAC;AAAA;AAAA,MAEzD,GAAI,KAAK,UAAU,WAAW,mBAAmB,MAAM,GAAG,IAAI,EAAE,gBAAgB,KAAc,IAAI,CAAC;AAAA,IACrG,IACA,CAAC;AAAA,EACP;AACF;","names":[]}
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
} from "./chunk-FZHFD2AY.js";
|
|
5
5
|
import {
|
|
6
6
|
agentsBySession
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NXS53NHR.js";
|
|
8
8
|
import {
|
|
9
9
|
findSession as findSession2
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6PZ7RCXK.js";
|
|
11
11
|
import {
|
|
12
12
|
dbPtySessions
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-HCYES6U7.js";
|
|
14
14
|
import {
|
|
15
15
|
clearLaunchedUnsafe,
|
|
16
16
|
findSession,
|
|
17
17
|
loadHistory
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HUWWMTNG.js";
|
|
19
19
|
import {
|
|
20
20
|
sessionIdFor
|
|
21
21
|
} from "./chunk-QGUBOOEN.js";
|
|
22
22
|
import {
|
|
23
23
|
liveAgents
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-NWKVTUTN.js";
|
|
25
25
|
|
|
26
26
|
// src/core/sessions/legacy-unsafe-io.ts
|
|
27
27
|
function agentsOf(id, io) {
|
|
@@ -47,4 +47,4 @@ export {
|
|
|
47
47
|
legacyUnsafeCheck,
|
|
48
48
|
clearLaunchedUnsafeWhenIdle
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=chunk-
|
|
50
|
+
//# sourceMappingURL=chunk-OPV6BE3W.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
agentsBySession
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NXS53NHR.js";
|
|
5
5
|
import {
|
|
6
6
|
accountSwitchRefusal,
|
|
7
7
|
haltPty,
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
ptyPid,
|
|
10
10
|
ptyPids,
|
|
11
11
|
resumePtyOnAccount
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5QENUGSC.js";
|
|
13
13
|
import {
|
|
14
14
|
findSession
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6PZ7RCXK.js";
|
|
16
16
|
import {
|
|
17
17
|
isArchiving,
|
|
18
18
|
loadHistory,
|
|
19
19
|
setSessionAccount
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-HUWWMTNG.js";
|
|
21
21
|
import {
|
|
22
22
|
AccountAdminError,
|
|
23
23
|
agentOf,
|
|
24
24
|
liveAgents
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-NWKVTUTN.js";
|
|
26
26
|
|
|
27
27
|
// src/core/sessions/account-switch-rules.ts
|
|
28
28
|
function switchRefusal(to, f) {
|
|
@@ -333,4 +333,4 @@ export {
|
|
|
333
333
|
createAccountLogins,
|
|
334
334
|
accountSkillsNote
|
|
335
335
|
};
|
|
336
|
-
//# sourceMappingURL=chunk-
|
|
336
|
+
//# sourceMappingURL=chunk-ROEEXEN7.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
runInternal
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZLPK2LQ3.js";
|
|
5
5
|
import {
|
|
6
6
|
messageOf,
|
|
7
7
|
readStatus
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HUWWMTNG.js";
|
|
9
9
|
import {
|
|
10
10
|
sessionIdFor
|
|
11
11
|
} from "./chunk-QGUBOOEN.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
agentOf,
|
|
14
14
|
lineTimeOf,
|
|
15
15
|
readJsonlSince
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NWKVTUTN.js";
|
|
17
17
|
|
|
18
18
|
// src/core/conversations/catch-up-deps.ts
|
|
19
19
|
var askCatchUp = (prompt) => runInternal(prompt, 9e4);
|
|
@@ -100,4 +100,4 @@ export {
|
|
|
100
100
|
cachedCatchUp,
|
|
101
101
|
catchUp
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=chunk-
|
|
103
|
+
//# sourceMappingURL=chunk-TL7VLRRF.js.map
|
|
@@ -28,13 +28,13 @@ import {
|
|
|
28
28
|
parseAzurePrUrl,
|
|
29
29
|
parseAzureThreadId,
|
|
30
30
|
parseGithubPrUrl
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-HUWWMTNG.js";
|
|
32
32
|
import {
|
|
33
33
|
json
|
|
34
34
|
} from "./chunk-QGUBOOEN.js";
|
|
35
35
|
import {
|
|
36
36
|
configView
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XIN6XUFL.js";
|
|
38
38
|
import {
|
|
39
39
|
explainNotOnPath,
|
|
40
40
|
programPath
|
|
@@ -1575,4 +1575,4 @@ export {
|
|
|
1575
1575
|
hostOfThread,
|
|
1576
1576
|
hostOfPrUrl
|
|
1577
1577
|
};
|
|
1578
|
-
//# sourceMappingURL=chunk-
|
|
1578
|
+
//# sourceMappingURL=chunk-U2A2DHWP.js.map
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
hostForRepo,
|
|
7
7
|
knownHosts
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U2A2DHWP.js";
|
|
9
9
|
import {
|
|
10
10
|
defaultRunner
|
|
11
11
|
} from "./chunk-XBWS77S2.js";
|
|
12
12
|
import {
|
|
13
13
|
DEFAULT_HOST,
|
|
14
14
|
loadHistory
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HUWWMTNG.js";
|
|
16
16
|
import {
|
|
17
17
|
getConfigPath,
|
|
18
18
|
loadConfig
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ETWP7MDS.js";
|
|
20
20
|
import {
|
|
21
21
|
atomicWriteFile,
|
|
22
22
|
withFileLock
|
|
@@ -138,4 +138,4 @@ export {
|
|
|
138
138
|
checkTools,
|
|
139
139
|
setupState
|
|
140
140
|
};
|
|
141
|
-
//# sourceMappingURL=chunk-
|
|
141
|
+
//# sourceMappingURL=chunk-U4XSBYQW.js.map
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
} from "./chunk-XBWS77S2.js";
|
|
14
14
|
import {
|
|
15
15
|
stageOfPr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HUWWMTNG.js";
|
|
17
17
|
import {
|
|
18
18
|
sessionIdFor
|
|
19
19
|
} from "./chunk-QGUBOOEN.js";
|
|
20
20
|
import {
|
|
21
21
|
bestEffort,
|
|
22
22
|
logSwallowed
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-NWKVTUTN.js";
|
|
24
24
|
import {
|
|
25
25
|
checkedOutBranch
|
|
26
26
|
} from "./chunk-Z6ACV5ZQ.js";
|
|
@@ -245,4 +245,4 @@ export {
|
|
|
245
245
|
createSessionBranches,
|
|
246
246
|
sessionBranchesNow
|
|
247
247
|
};
|
|
248
|
-
//# sourceMappingURL=chunk-
|
|
248
|
+
//# sourceMappingURL=chunk-VH5FRKJM.js.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
isFolderSession,
|
|
4
4
|
sessionRepos
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HUWWMTNG.js";
|
|
6
6
|
|
|
7
7
|
// src/core/worktree/add-repo-rules.ts
|
|
8
8
|
import path from "path";
|
|
@@ -36,4 +36,4 @@ export {
|
|
|
36
36
|
addRepoRefusal,
|
|
37
37
|
addedRepoNote
|
|
38
38
|
};
|
|
39
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
//# sourceMappingURL=chunk-W5YYTITQ.js.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
peekPty
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5QENUGSC.js";
|
|
5
5
|
import {
|
|
6
6
|
isLeftover
|
|
7
7
|
} from "./chunk-EORL2V7P.js";
|
|
8
8
|
import {
|
|
9
9
|
sessionStatusView
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BI7HIO2I.js";
|
|
11
11
|
import {
|
|
12
12
|
readPendingForWorktree,
|
|
13
13
|
scopeStoreIdsForPaths
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ZMJR4Z6O.js";
|
|
15
15
|
import {
|
|
16
16
|
readStoresComments
|
|
17
17
|
} from "./chunk-UPS7NHKI.js";
|
|
18
18
|
import {
|
|
19
19
|
stageInputOf
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-N7T6NPE2.js";
|
|
21
21
|
import {
|
|
22
22
|
STAGE_WANTS_YOU,
|
|
23
23
|
archiveDirFor,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
snoozeActive,
|
|
38
38
|
stageRepos,
|
|
39
39
|
withLiveClaude
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-HUWWMTNG.js";
|
|
41
41
|
import {
|
|
42
42
|
sessionIdFor
|
|
43
43
|
} from "./chunk-QGUBOOEN.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
agentWire,
|
|
47
47
|
bestEffort,
|
|
48
48
|
readJsonlTail
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-NWKVTUTN.js";
|
|
50
50
|
import {
|
|
51
51
|
checkedOutBranch
|
|
52
52
|
} from "./chunk-Z6ACV5ZQ.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
DEFAULT_ACCOUNT,
|
|
55
55
|
getConfigPath,
|
|
56
56
|
loadConfig
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-ETWP7MDS.js";
|
|
58
58
|
|
|
59
59
|
// src/core/sessions/session-wire.ts
|
|
60
60
|
import fs2 from "fs";
|
|
@@ -426,4 +426,4 @@ export {
|
|
|
426
426
|
lastActiveMs,
|
|
427
427
|
createArchivedRows
|
|
428
428
|
};
|
|
429
|
-
//# sourceMappingURL=chunk-
|
|
429
|
+
//# sourceMappingURL=chunk-WOY35FXP.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
DEFAULT_ACCOUNT
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ETWP7MDS.js";
|
|
5
5
|
import {
|
|
6
6
|
report
|
|
7
7
|
} from "./chunk-5ZCCUM75.js";
|
|
@@ -179,4 +179,4 @@ export {
|
|
|
179
179
|
configDirEnv,
|
|
180
180
|
accountEnv
|
|
181
181
|
};
|
|
182
|
-
//# sourceMappingURL=chunk-
|
|
182
|
+
//# sourceMappingURL=chunk-XIN6XUFL.js.map
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
describeProcess,
|
|
4
|
-
findHolders,
|
|
5
|
-
normDir,
|
|
6
|
-
stopRunningFrom
|
|
7
|
-
} from "./chunk-ICEP4WAK.js";
|
|
8
2
|
import {
|
|
9
3
|
isLeftover
|
|
10
4
|
} from "./chunk-EORL2V7P.js";
|
|
11
5
|
import {
|
|
12
6
|
hostForOrigin,
|
|
13
7
|
hostOfPrUrl
|
|
14
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U2A2DHWP.js";
|
|
15
9
|
import {
|
|
16
10
|
originUrl,
|
|
17
11
|
readGitConfig
|
|
@@ -22,8 +16,12 @@ import {
|
|
|
22
16
|
import {
|
|
23
17
|
DEFAULT_HOST,
|
|
24
18
|
commandsFor,
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
describeProcess,
|
|
20
|
+
findHolders,
|
|
21
|
+
normDir,
|
|
22
|
+
parsePrLink,
|
|
23
|
+
stopRunningFrom
|
|
24
|
+
} from "./chunk-HUWWMTNG.js";
|
|
27
25
|
|
|
28
26
|
// src/core/archive/restore-leftovers.ts
|
|
29
27
|
function leftoversOf(paths) {
|
|
@@ -155,4 +153,4 @@ export {
|
|
|
155
153
|
workOnPrPrompt,
|
|
156
154
|
resolvePrToStart
|
|
157
155
|
};
|
|
158
|
-
//# sourceMappingURL=chunk-
|
|
156
|
+
//# sourceMappingURL=chunk-XTAYJDL2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/core/archive/restore-leftovers.ts","../src/core/pr/pr-ref.ts","../src/core/pr/pr-start.ts"],"sourcesContent":["import { isLeftover } from '../worktree/leftover.js';\nimport { describeProcess, findHolders, normDir, stopRunningFrom, type Holders } from '../platform/running-from.js';\n\n/**\n * Before a Restore makes a worktree again over what git left of it (a folder\n * it removed only in part, leftover.ts): that folder has to be moved out of\n * the way, and can't be while something runs from it — a dev server its\n * Claude left running. One place for both front-ends: the dashboard's\n * Restore (which asks \"Stop it and restore?\") and `work tree` (which says\n * what to stop).\n */\n\nexport interface LeftoverIo {\n /** What runs from or names the folders (running-from.ts). */\n holders?: (dirs: string[]) => Promise<Holders>;\n /** Stop what runs from them, saying what. */\n stop?: (dirs: string[]) => Promise<string[]>;\n}\n\n/** The session's folders git removed only in part. */\nexport function leftoversOf(paths: string[]): string[] {\n return paths.filter((p) => isLeftover(p));\n}\n\nconst names = (procs: Holders['stoppable'], dirs: string[]) =>\n procs.map((p) =>\n describeProcess(\n p,\n dirs.map((d) => normDir(d)),\n ),\n );\n\n/** What runs from the leftovers, and what has them open: one look at the processes (null: no answer). */\nexport async function lookAtLeftovers(leftovers: string[], io: LeftoverIo = {}): Promise<{ running: string[]; open: string[] } | null> {\n if (leftovers.length === 0) return { running: [], open: [] };\n const h = await (io.holders ?? ((d: string[]) => findHolders(d)))(leftovers).catch(() => null);\n if (!h) return null;\n const running = names(h.stoppable, leftovers);\n return { running, open: [...running, ...names(h.others, leftovers)] };\n}\n\n/** What runs from the leftovers now (\"node …\\vite\\bin\\vite.js --mode demo (PID 35464)\"): none to wait for, []. */\nexport async function runningFromLeftovers(leftovers: string[], io: LeftoverIo = {}): Promise<string[]> {\n return (await lookAtLeftovers(leftovers, io))?.running ?? [];\n}\n\n/** Stop what runs from the leftovers (asked for), saying what. */\nexport async function freeLeftovers(leftovers: string[], io: LeftoverIo = {}): Promise<string[]> {\n if (leftovers.length === 0) return [];\n return (io.stop ?? ((d: string[]) => stopRunningFrom(d)))(leftovers).catch(() => []);\n}\n\n/** Everything that has the leftovers open — what runs from them and what only names them (an editor) — for a failure's message. */\nexport async function openInLeftovers(leftovers: string[], io: LeftoverIo = {}): Promise<string[]> {\n return (await lookAtLeftovers(leftovers, io))?.open ?? [];\n}\n","/**\n * Starting a session on someone else's pull request — on their branch, so\n * what you push lands in their PR. Pure (the SPA and the demo use it): how a\n * PR is named, and what its session's Claude is told first. The lookup\n * (the repo's host) is `pr-start.ts`.\n */\n\nimport type { PrToStart } from '../api-types.js';\nimport { commandsFor, DEFAULT_HOST } from '../hosts/commands.js';\nimport { parsePrLink } from '../hosts/links.js';\n\nexport type { PrToStart };\n\n/** A PR as you'd name it: its link (repo known), or its number (in a repo you pick). */\nexport interface PrRef {\n /** The repo's id on its host, from a link (GitHub: `owner/name`, lowercase). */\n repo?: string;\n /** The host a link is on. */\n host?: string;\n number: number;\n}\n\n/** A PR link of a host work knows (any tail), `#123` or `123`; null for anything else. */\nexport function parsePrRef(input: string): PrRef | null {\n const s = input.trim();\n const link = parsePrLink(s);\n if (link) return { repo: link.repoId, ...(link.host === DEFAULT_HOST ? {} : { host: link.host }), number: link.number };\n const n = /^#?(\\d+)$/.exec(s);\n return n && Number(n[1]) > 0 ? { number: Number(n[1]) } : null;\n}\n\n/**\n * The first message to the session's Claude: whose PR this is, that what it\n * pushes lands there, and to get up to speed — then do `instruction`, or\n * with none, say where it stands and wait for what the user wants. Nothing\n * on the host (no comments, reviews or replies): that's the author's\n * conversation. Its commands are the PR's host's (`host`; GitHub's when absent).\n */\nexport function workOnPrPrompt(\n pr: Pick<PrToStart, 'number' | 'title' | 'url'> & { author?: string; host?: string },\n instruction?: string,\n): string {\n const cmd = commandsFor(pr.host);\n const who = pr.author ? `@${pr.author}` : 'its author';\n const todo = instruction?.trim();\n const upToSpeed = `Get up to speed first (${cmd.view(pr.number)}, ${cmd.diff(pr.number)})`;\n return [\n `Work on PR #${pr.number} by ${who}: ${pr.title}`,\n pr.url,\n '',\n `This worktree is on ${who}'s branch: what you commit and push lands in their PR.`,\n ...(todo ? [`${upToSpeed}, then:`, '', todo, ''] : [`${upToSpeed}, tell me where it stands, and wait for what I want done.`]),\n `Don't post on ${cmd.host} (no comments, reviews or replies).`,\n ].join('\\n');\n}\n","import type { WorkConfig } from '../platform/config.js';\nimport { originUrl, readGitConfig } from '../worktree/repo-scan.js';\nimport { parsePrRef, type PrRef, type PrToStart } from './pr-ref.js';\nimport { defaultRunner, type CommandRunner } from './ship.js';\nimport { DEFAULT_HOST, hostForOrigin, hostOfPrUrl } from '../hosts/index.js';\n\nexport type PrStartResult = { ok: true; pr: PrToStart } | { ok: false; error: string };\n\nexport interface PrStartDeps {\n run?: CommandRunner;\n /** A repo's `.git/config` text (tests pass their own). */\n gitConfig?: (repoPath: string) => string | null;\n}\n\n/**\n * Which of your repos a PR is in, and its branch: from its link (the repo\n * matched by its origin) or its number (in `target`, a repo). Refused: a\n * repo you haven't enrolled, a group as the repo of a bare number, a PR\n * that isn't open, and one from a fork — its branch isn't on origin, so the\n * session couldn't push to it (and `work tree` would make a new, empty\n * branch of that name instead).\n */\nexport async function resolvePrToStart(\n input: string,\n config: Pick<WorkConfig, 'repos' | 'groups'>,\n target?: string,\n deps: PrStartDeps = {},\n): Promise<PrStartResult> {\n const run = deps.run ?? defaultRunner;\n const gitConfig = deps.gitConfig ?? readGitConfig;\n // A link any host reads (one registered at run time too), else a number.\n const linked = hostOfPrUrl(input);\n const ref: PrRef | null = linked ? { repo: linked.link.repoId, host: linked.host.id, number: linked.link.number } : parsePrRef(input);\n if (!ref) return { ok: false, error: 'Give a pull request link (as your browser shows it), or its number with a repo.' };\n\n // Each repo on its own host (its origin's), with its id there.\n const repoOf = (alias: string) => {\n const origin = originUrl(gitConfig(config.repos[alias]) ?? '');\n const host = hostForOrigin(origin);\n return { host, id: origin ? host.repoId(origin) : null };\n };\n let alias: string | undefined;\n if (ref.repo) {\n const matches = Object.keys(config.repos).filter((a) => {\n const r = repoOf(a);\n return r.id === ref.repo && (!ref.host || r.host.id === ref.host);\n });\n if (!matches.length) return { ok: false, error: `${ref.repo} isn't one of your repos: add it first (work config add <alias> <path>).` };\n // A target named beside a link must hold it: the repo itself, or a group with it among its repos.\n const within = target ? (config.groups?.[target] ?? [target]) : matches;\n alias = matches.find((a) => within.includes(a));\n if (!alias) return { ok: false, error: `PR #${ref.number} is in ${matches.join(' / ')} (${ref.repo}), not ${target}.` };\n } else {\n if (!target) return { ok: false, error: `PR #${ref.number}: which repo? Give its link, or pick the repo.` };\n if (config.groups?.[target])\n return { ok: false, error: `${target} is a group: a PR is one repo's. Give its link, or one of the group's repos.` };\n if (!config.repos[target]) return { ok: false, error: `${target} isn't one of your repos.` };\n alias = target;\n }\n const { host, id: repoId } = repoOf(alias);\n if (!repoId) {\n return { ok: false, error: `${alias}'s origin isn't a ${host.name} repo work can read: it can only look up PRs on a host it knows.` };\n }\n\n const view = await host.prByNumber(run, config.repos[alias], repoId, ref.number);\n if (!view.ok) return { ok: false, error: view.error };\n const pr = view.pr;\n if (pr.state && pr.state !== 'OPEN') return { ok: false, error: `PR #${ref.number} is ${pr.state.toLowerCase()}.` };\n if (pr.fork) {\n return {\n ok: false,\n error: `PR #${ref.number} comes from a fork (${pr.fork.owner}): its branch isn't on origin, so a session couldn't push to it.`,\n };\n }\n if (!pr.branch) return { ok: false, error: `PR #${ref.number}: ${host.cli.cmd} didn't say its branch.` };\n const stale = await localGoneOtherWay(run, config.repos[alias], pr.branch, pr.headSha);\n if (stale) return { ok: false, error: stale };\n return {\n ok: true,\n pr: {\n alias,\n number: pr.number,\n title: pr.title,\n url: pr.url,\n branch: pr.branch,\n base: pr.base,\n author: pr.author,\n // Absent for GitHub (the wire's default), so a reader from before hosts sees what it always did.\n ...(host.id === DEFAULT_HOST ? {} : { host: host.id }),\n },\n };\n}\n\n/**\n * `work tree` takes a local branch of that name over origin's, moving it\n * forward when it can. One that has gone another way than the PR (the author\n * force-pushed, or an unrelated branch of the same name) would open on the\n * wrong commits, and what's pushed from it wouldn't go. Ahead (your commits\n * on top) or behind (it fast-forwards) is fine; when git can't tell (no\n * fetch), the usual warning on entering is left to say it.\n */\nasync function localGoneOtherWay(run: CommandRunner, repoPath: string, branch: string, headOid?: string): Promise<string | null> {\n if (!headOid) return null;\n const local = await run('git', ['rev-parse', '--verify', '--quiet', `refs/heads/${branch}`], repoPath);\n if (local.code !== 0) return null;\n await run('git', ['fetch', '--quiet', 'origin', branch], repoPath);\n const contains = await run('git', ['merge-base', '--is-ancestor', headOid, `refs/heads/${branch}`], repoPath);\n if (contains.code === 0) return null;\n const behind = await run('git', ['merge-base', '--is-ancestor', `refs/heads/${branch}`, headOid], repoPath);\n if (behind.code !== 1 || contains.code !== 1) return null; // 1 = not an ancestor; anything else: git couldn't say\n return `Your local branch ${branch} and the PR's have gone separate ways (a force-push, or another branch of that name): rename yours (git branch -m ${branch} ${branch}-old) and try again, or go into its session as it is (work tree <repo> ${branch}).`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,SAAS,YAAY,OAA2B;AACrD,SAAO,MAAM,OAAO,CAAC,MAAM,WAAW,CAAC,CAAC;AAC1C;AAEA,IAAM,QAAQ,CAAC,OAA6B,SAC1C,MAAM;AAAA,EAAI,CAAC,MACT;AAAA,IACE;AAAA,IACA,KAAK,IAAI,CAAC,MAAM,QAAQ,CAAC,CAAC;AAAA,EAC5B;AACF;AAGF,eAAsB,gBAAgB,WAAqB,KAAiB,CAAC,GAA0D;AACrI,MAAI,UAAU,WAAW,EAAG,QAAO,EAAE,SAAS,CAAC,GAAG,MAAM,CAAC,EAAE;AAC3D,QAAM,IAAI,OAAO,GAAG,YAAY,CAAC,MAAgB,YAAY,CAAC,IAAI,SAAS,EAAE,MAAM,MAAM,IAAI;AAC7F,MAAI,CAAC,EAAG,QAAO;AACf,QAAM,UAAU,MAAM,EAAE,WAAW,SAAS;AAC5C,SAAO,EAAE,SAAS,MAAM,CAAC,GAAG,SAAS,GAAG,MAAM,EAAE,QAAQ,SAAS,CAAC,EAAE;AACtE;AAQA,eAAsB,cAAc,WAAqB,KAAiB,CAAC,GAAsB;AAC/F,MAAI,UAAU,WAAW,EAAG,QAAO,CAAC;AACpC,UAAQ,GAAG,SAAS,CAAC,MAAgB,gBAAgB,CAAC,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC,CAAC;AACrF;AAGA,eAAsB,gBAAgB,WAAqB,KAAiB,CAAC,GAAsB;AACjG,UAAQ,MAAM,gBAAgB,WAAW,EAAE,IAAI,QAAQ,CAAC;AAC1D;;;AChCO,SAAS,WAAW,OAA6B;AACtD,QAAM,IAAI,MAAM,KAAK;AACrB,QAAM,OAAO,YAAY,CAAC;AAC1B,MAAI,KAA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AQ;AACjE,QAAM,WAAW,MAAM,IAAI,OAAO,CAAC,cAAc,iBAAiB,SAAS,cAAc,MAAM,EAAE,GAAG,QAAQ;AAC5G,MAAI,SAAS,SAAS,EAAG,QAAO;AAChC,QAAM,SAAS,MAAM,IAAI,OAAO,CAAC,cAAc,iBAAiB,cAAc,MAAM,IAAI,OAAO,GAAG,QAAQ;AAC1G,MAAI,OAAO,SAAS,KAAK,SAAS,SAAS,EAAG,QAAO;AACrD,SAAO,qBAAqB,MAAM,qHAAqH,MAAM,IAAI,MAAM,0EAA0E,MAAM;AACzP;","names":["alias","host"]}
|
|
1
|
+
{"version":3,"sources":["../src/core/archive/restore-leftovers.ts","../src/core/pr/pr-ref.ts","../src/core/pr/pr-start.ts"],"sourcesContent":["import { isLeftover } from '../worktree/leftover.js';\nimport { describeProcess, findHolders, normDir, stopRunningFrom, type Holders } from '../platform/running-from.js';\n\n/**\n * Before a Restore makes a worktree again over what git left of it (a folder\n * it removed only in part, leftover.ts): that folder has to be moved out of\n * the way, and can't be while something runs from it — a dev server its\n * Claude left running. One place for both front-ends: the dashboard's\n * Restore (which asks \"Stop it and restore?\") and `work tree` (which says\n * what to stop).\n */\n\nexport interface LeftoverIo {\n /** What runs from or names the folders (running-from.ts). */\n holders?: (dirs: string[]) => Promise<Holders>;\n /** Stop what runs from them, saying what. */\n stop?: (dirs: string[]) => Promise<string[]>;\n}\n\n/** The session's folders git removed only in part. */\nexport function leftoversOf(paths: string[]): string[] {\n return paths.filter((p) => isLeftover(p));\n}\n\nconst names = (procs: Holders['stoppable'], dirs: string[]) =>\n procs.map((p) =>\n describeProcess(\n p,\n dirs.map((d) => normDir(d)),\n ),\n );\n\n/** What runs from the leftovers, and what has them open: one look at the processes (null: no answer). */\nexport async function lookAtLeftovers(leftovers: string[], io: LeftoverIo = {}): Promise<{ running: string[]; open: string[] } | null> {\n if (leftovers.length === 0) return { running: [], open: [] };\n const h = await (io.holders ?? ((d: string[]) => findHolders(d)))(leftovers).catch(() => null);\n if (!h) return null;\n const running = names(h.stoppable, leftovers);\n return { running, open: [...running, ...names(h.others, leftovers)] };\n}\n\n/** What runs from the leftovers now (\"node …\\vite\\bin\\vite.js --mode demo (PID 35464)\"): none to wait for, []. */\nexport async function runningFromLeftovers(leftovers: string[], io: LeftoverIo = {}): Promise<string[]> {\n return (await lookAtLeftovers(leftovers, io))?.running ?? [];\n}\n\n/** Stop what runs from the leftovers (asked for), saying what. */\nexport async function freeLeftovers(leftovers: string[], io: LeftoverIo = {}): Promise<string[]> {\n if (leftovers.length === 0) return [];\n return (io.stop ?? ((d: string[]) => stopRunningFrom(d)))(leftovers).catch(() => []);\n}\n\n/** Everything that has the leftovers open — what runs from them and what only names them (an editor) — for a failure's message. */\nexport async function openInLeftovers(leftovers: string[], io: LeftoverIo = {}): Promise<string[]> {\n return (await lookAtLeftovers(leftovers, io))?.open ?? [];\n}\n","/**\n * Starting a session on someone else's pull request — on their branch, so\n * what you push lands in their PR. Pure (the SPA and the demo use it): how a\n * PR is named, and what its session's Claude is told first. The lookup\n * (the repo's host) is `pr-start.ts`.\n */\n\nimport type { PrToStart } from '../api-types.js';\nimport { commandsFor, DEFAULT_HOST } from '../hosts/commands.js';\nimport { parsePrLink } from '../hosts/links.js';\n\nexport type { PrToStart };\n\n/** A PR as you'd name it: its link (repo known), or its number (in a repo you pick). */\nexport interface PrRef {\n /** The repo's id on its host, from a link (GitHub: `owner/name`, lowercase). */\n repo?: string;\n /** The host a link is on. */\n host?: string;\n number: number;\n}\n\n/** A PR link of a host work knows (any tail), `#123` or `123`; null for anything else. */\nexport function parsePrRef(input: string): PrRef | null {\n const s = input.trim();\n const link = parsePrLink(s);\n if (link) return { repo: link.repoId, ...(link.host === DEFAULT_HOST ? {} : { host: link.host }), number: link.number };\n const n = /^#?(\\d+)$/.exec(s);\n return n && Number(n[1]) > 0 ? { number: Number(n[1]) } : null;\n}\n\n/**\n * The first message to the session's Claude: whose PR this is, that what it\n * pushes lands there, and to get up to speed — then do `instruction`, or\n * with none, say where it stands and wait for what the user wants. Nothing\n * on the host (no comments, reviews or replies): that's the author's\n * conversation. Its commands are the PR's host's (`host`; GitHub's when absent).\n */\nexport function workOnPrPrompt(\n pr: Pick<PrToStart, 'number' | 'title' | 'url'> & { author?: string; host?: string },\n instruction?: string,\n): string {\n const cmd = commandsFor(pr.host);\n const who = pr.author ? `@${pr.author}` : 'its author';\n const todo = instruction?.trim();\n const upToSpeed = `Get up to speed first (${cmd.view(pr.number)}, ${cmd.diff(pr.number)})`;\n return [\n `Work on PR #${pr.number} by ${who}: ${pr.title}`,\n pr.url,\n '',\n `This worktree is on ${who}'s branch: what you commit and push lands in their PR.`,\n ...(todo ? [`${upToSpeed}, then:`, '', todo, ''] : [`${upToSpeed}, tell me where it stands, and wait for what I want done.`]),\n `Don't post on ${cmd.host} (no comments, reviews or replies).`,\n ].join('\\n');\n}\n","import type { WorkConfig } from '../platform/config.js';\nimport { originUrl, readGitConfig } from '../worktree/repo-scan.js';\nimport { parsePrRef, type PrRef, type PrToStart } from './pr-ref.js';\nimport { defaultRunner, type CommandRunner } from './ship.js';\nimport { DEFAULT_HOST, hostForOrigin, hostOfPrUrl } from '../hosts/index.js';\n\nexport type PrStartResult = { ok: true; pr: PrToStart } | { ok: false; error: string };\n\nexport interface PrStartDeps {\n run?: CommandRunner;\n /** A repo's `.git/config` text (tests pass their own). */\n gitConfig?: (repoPath: string) => string | null;\n}\n\n/**\n * Which of your repos a PR is in, and its branch: from its link (the repo\n * matched by its origin) or its number (in `target`, a repo). Refused: a\n * repo you haven't enrolled, a group as the repo of a bare number, a PR\n * that isn't open, and one from a fork — its branch isn't on origin, so the\n * session couldn't push to it (and `work tree` would make a new, empty\n * branch of that name instead).\n */\nexport async function resolvePrToStart(\n input: string,\n config: Pick<WorkConfig, 'repos' | 'groups'>,\n target?: string,\n deps: PrStartDeps = {},\n): Promise<PrStartResult> {\n const run = deps.run ?? defaultRunner;\n const gitConfig = deps.gitConfig ?? readGitConfig;\n // A link any host reads (one registered at run time too), else a number.\n const linked = hostOfPrUrl(input);\n const ref: PrRef | null = linked ? { repo: linked.link.repoId, host: linked.host.id, number: linked.link.number } : parsePrRef(input);\n if (!ref) return { ok: false, error: 'Give a pull request link (as your browser shows it), or its number with a repo.' };\n\n // Each repo on its own host (its origin's), with its id there.\n const repoOf = (alias: string) => {\n const origin = originUrl(gitConfig(config.repos[alias]) ?? '');\n const host = hostForOrigin(origin);\n return { host, id: origin ? host.repoId(origin) : null };\n };\n let alias: string | undefined;\n if (ref.repo) {\n const matches = Object.keys(config.repos).filter((a) => {\n const r = repoOf(a);\n return r.id === ref.repo && (!ref.host || r.host.id === ref.host);\n });\n if (!matches.length) return { ok: false, error: `${ref.repo} isn't one of your repos: add it first (work config add <alias> <path>).` };\n // A target named beside a link must hold it: the repo itself, or a group with it among its repos.\n const within = target ? (config.groups?.[target] ?? [target]) : matches;\n alias = matches.find((a) => within.includes(a));\n if (!alias) return { ok: false, error: `PR #${ref.number} is in ${matches.join(' / ')} (${ref.repo}), not ${target}.` };\n } else {\n if (!target) return { ok: false, error: `PR #${ref.number}: which repo? Give its link, or pick the repo.` };\n if (config.groups?.[target])\n return { ok: false, error: `${target} is a group: a PR is one repo's. Give its link, or one of the group's repos.` };\n if (!config.repos[target]) return { ok: false, error: `${target} isn't one of your repos.` };\n alias = target;\n }\n const { host, id: repoId } = repoOf(alias);\n if (!repoId) {\n return { ok: false, error: `${alias}'s origin isn't a ${host.name} repo work can read: it can only look up PRs on a host it knows.` };\n }\n\n const view = await host.prByNumber(run, config.repos[alias], repoId, ref.number);\n if (!view.ok) return { ok: false, error: view.error };\n const pr = view.pr;\n if (pr.state && pr.state !== 'OPEN') return { ok: false, error: `PR #${ref.number} is ${pr.state.toLowerCase()}.` };\n if (pr.fork) {\n return {\n ok: false,\n error: `PR #${ref.number} comes from a fork (${pr.fork.owner}): its branch isn't on origin, so a session couldn't push to it.`,\n };\n }\n if (!pr.branch) return { ok: false, error: `PR #${ref.number}: ${host.cli.cmd} didn't say its branch.` };\n const stale = await localGoneOtherWay(run, config.repos[alias], pr.branch, pr.headSha);\n if (stale) return { ok: false, error: stale };\n return {\n ok: true,\n pr: {\n alias,\n number: pr.number,\n title: pr.title,\n url: pr.url,\n branch: pr.branch,\n base: pr.base,\n author: pr.author,\n // Absent for GitHub (the wire's default), so a reader from before hosts sees what it always did.\n ...(host.id === DEFAULT_HOST ? {} : { host: host.id }),\n },\n };\n}\n\n/**\n * `work tree` takes a local branch of that name over origin's, moving it\n * forward when it can. One that has gone another way than the PR (the author\n * force-pushed, or an unrelated branch of the same name) would open on the\n * wrong commits, and what's pushed from it wouldn't go. Ahead (your commits\n * on top) or behind (it fast-forwards) is fine; when git can't tell (no\n * fetch), the usual warning on entering is left to say it.\n */\nasync function localGoneOtherWay(run: CommandRunner, repoPath: string, branch: string, headOid?: string): Promise<string | null> {\n if (!headOid) return null;\n const local = await run('git', ['rev-parse', '--verify', '--quiet', `refs/heads/${branch}`], repoPath);\n if (local.code !== 0) return null;\n await run('git', ['fetch', '--quiet', 'origin', branch], repoPath);\n const contains = await run('git', ['merge-base', '--is-ancestor', headOid, `refs/heads/${branch}`], repoPath);\n if (contains.code === 0) return null;\n const behind = await run('git', ['merge-base', '--is-ancestor', `refs/heads/${branch}`, headOid], repoPath);\n if (behind.code !== 1 || contains.code !== 1) return null; // 1 = not an ancestor; anything else: git couldn't say\n return `Your local branch ${branch} and the PR's have gone separate ways (a force-push, or another branch of that name): rename yours (git branch -m ${branch} ${branch}-old) and try again, or go into its session as it is (work tree <repo> ${branch}).`;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAoBO,SAAS,YAAY,OAA2B;AACrD,SAAO,MAAM,OAAO,CAAC,MAAM,WAAW,CAAC,CAAC;AAC1C;AAEA,IAAM,QAAQ,CAAC,OAA6B,SAC1C,MAAM;AAAA,EAAI,CAAC,MACT;AAAA,IACE;AAAA,IACA,KAAK,IAAI,CAAC,MAAM,QAAQ,CAAC,CAAC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