@moberg_hr/work-tree 2.14.1 → 2.15.0
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-GOU2FC56.js → account-X42JQCYT.js} +31 -30
- package/dist/account-X42JQCYT.js.map +1 -0
- package/dist/{add-repo-PHD76M4S.js → add-repo-UZHIG6LN.js} +30 -29
- package/dist/{add-repo-PHD76M4S.js.map → add-repo-UZHIG6LN.js.map} +1 -1
- package/dist/{answer-HUVZ3XMW.js → answer-NDX2DNXK.js} +19 -18
- package/dist/{answer-HUVZ3XMW.js.map → answer-NDX2DNXK.js.map} +1 -1
- package/dist/{attach-RJ53ABQN.js → attach-ETPEGXYM.js} +26 -26
- package/dist/bin.js +9 -7
- package/dist/bin.js.map +1 -1
- package/dist/{block-W34JH22B.js → block-5HJQWQNX.js} +24 -23
- package/dist/{block-W34JH22B.js.map → block-5HJQWQNX.js.map} +1 -1
- package/dist/{broadcast-7YTINXQF.js → broadcast-TMCWRTIY.js} +16 -15
- package/dist/{broadcast-7YTINXQF.js.map → broadcast-TMCWRTIY.js.map} +1 -1
- package/dist/{catchup-5HC52SDK.js → catchup-BBJ43GWY.js} +22 -21
- package/dist/{catchup-5HC52SDK.js.map → catchup-BBJ43GWY.js.map} +1 -1
- package/dist/{chunk-ULI3NB4J.js → chunk-2IDWQ5NO.js} +7 -7
- package/dist/{chunk-UTBIZ6W5.js → chunk-2PAHTJ3B.js} +7 -7
- package/dist/{chunk-RCWQD32G.js → chunk-3YON263F.js} +5 -5
- package/dist/{chunk-JQ42ERH3.js → chunk-44UME4JD.js} +2 -2
- package/dist/{chunk-PAEWU7UC.js → chunk-46WW3Z6C.js} +8 -8
- package/dist/{chunk-AYHDJMMJ.js → chunk-4CXUVBOD.js} +2 -2
- package/dist/{chunk-MKJH2D4V.js → chunk-4NIOURHZ.js} +2 -2
- package/dist/{chunk-EHUKDUNJ.js → chunk-4WTY3SFZ.js} +7 -7
- package/dist/{chunk-4B2UV6JH.js → chunk-4ZP6NN2X.js} +18 -16
- package/dist/{chunk-4B2UV6JH.js.map → chunk-4ZP6NN2X.js.map} +1 -1
- package/dist/{chunk-T26N4I4E.js → chunk-5LAFHPNB.js} +8 -8
- package/dist/{chunk-AU27USPZ.js → chunk-5ZCCUM75.js} +2 -2
- package/dist/{chunk-UY5J2KY2.js → chunk-6SYQQXPQ.js} +32 -22
- package/dist/chunk-6SYQQXPQ.js.map +1 -0
- package/dist/{chunk-MQQADIRH.js → chunk-7QDZGVIT.js} +4 -4
- package/dist/{chunk-A3R3VO6G.js → chunk-7S3NPGVM.js} +6 -6
- package/dist/{chunk-BPAV2PIE.js → chunk-AHGMXBY3.js} +2 -2
- package/dist/{chunk-RRNIJ7YO.js → chunk-ALBTIOP3.js} +3 -3
- package/dist/{chunk-NCXRMJGS.js → chunk-BRUYXYO2.js} +9 -6
- package/dist/chunk-BRUYXYO2.js.map +1 -0
- package/dist/{chunk-LCUN2I5Q.js → chunk-BWUN33QN.js} +11 -9
- package/dist/{chunk-LCUN2I5Q.js.map → chunk-BWUN33QN.js.map} +1 -1
- package/dist/{chunk-FLY3VR6B.js → chunk-BZGIKO6I.js} +2 -2
- package/dist/{chunk-UIG3CTXU.js → chunk-C6OEPSH2.js} +8 -8
- package/dist/{chunk-MOTKVMGL.js → chunk-C6TKUX7I.js} +30 -5
- package/dist/chunk-C6TKUX7I.js.map +1 -0
- package/dist/{chunk-RVSRZ57P.js → chunk-CNZV3UCM.js} +2 -2
- package/dist/{chunk-ERXXU72V.js → chunk-CVTM4TCZ.js} +7 -7
- package/dist/{chunk-Y2DBNXZH.js → chunk-CYUSOVO5.js} +291 -114
- package/dist/chunk-CYUSOVO5.js.map +1 -0
- package/dist/{chunk-KJY2AJQS.js → chunk-DBGHDWM7.js} +12 -12
- package/dist/{chunk-CBCOVIXZ.js → chunk-DOYJR2HF.js} +5 -3
- package/dist/{chunk-CBCOVIXZ.js.map → chunk-DOYJR2HF.js.map} +1 -1
- package/dist/{chunk-LSZ6HI3U.js → chunk-EORL2V7P.js} +2 -2
- package/dist/{chunk-DPO6I7OR.js → chunk-EQD3YBGA.js} +12 -12
- package/dist/{chunk-RE3NKV4Z.js → chunk-EQFDUC6F.js} +3 -3
- package/dist/chunk-F2ECTTSY.js +22 -0
- package/dist/chunk-F2ECTTSY.js.map +1 -0
- package/dist/{chunk-CWWWZRMN.js → chunk-FIEBI3UB.js} +3 -3
- package/dist/{chunk-FLQOSWVR.js → chunk-FNWPOM4B.js} +9 -42
- package/dist/chunk-FNWPOM4B.js.map +1 -0
- package/dist/{chunk-GSL6ZBQX.js → chunk-GGE55DO3.js} +17 -17
- package/dist/{chunk-AGRUEZQX.js → chunk-GNIYYXQX.js} +2 -2
- package/dist/{chunk-DWEW7I53.js → chunk-GPLCT5TZ.js} +9 -9
- package/dist/chunk-HK6AZQ5Z.js +54 -0
- package/dist/chunk-HK6AZQ5Z.js.map +1 -0
- package/dist/{chunk-6THUVP6T.js → chunk-IAKOKZYW.js} +13 -27
- package/dist/chunk-IAKOKZYW.js.map +1 -0
- package/dist/{chunk-TUDDISCX.js → chunk-ICEP4WAK.js} +4 -4
- package/dist/{chunk-7UXV4X2Y.js → chunk-IPHADNF5.js} +2 -2
- package/dist/{chunk-5D5V4P7J.js → chunk-ITY6R2LC.js} +5 -5
- package/dist/{chunk-VLUME72O.js → chunk-JVJ5IJSF.js} +4 -4
- package/dist/{chunk-K5EAVRXX.js → chunk-JYWX2N5W.js} +4 -6
- package/dist/{chunk-K5EAVRXX.js.map → chunk-JYWX2N5W.js.map} +1 -1
- package/dist/{chunk-6MUKE253.js → chunk-K2OOUNXH.js} +4 -4
- package/dist/{chunk-YXUVNSDM.js → chunk-KCYYIUUQ.js} +2 -2
- package/dist/chunk-KL7RY6UG.js +36 -0
- package/dist/chunk-KL7RY6UG.js.map +1 -0
- package/dist/{chunk-TNKBZIR5.js → chunk-LMP3WGRW.js} +3 -3
- package/dist/{chunk-2Y2ARDXI.js → chunk-MD6QMSXQ.js} +2 -2
- package/dist/{chunk-U2MOKVPZ.js → chunk-MHL66TIL.js} +2 -2
- package/dist/{chunk-SAPDMQTO.js → chunk-MVME4LH7.js} +8 -8
- package/dist/{chunk-S43GVNRB.js → chunk-MXH7DV4Q.js} +8 -8
- package/dist/{chunk-UI45HNNQ.js → chunk-MZY557LZ.js} +9 -9
- package/dist/{chunk-X5XVXJ4B.js → chunk-O32OINY3.js} +2 -2
- package/dist/{chunk-2K44PZRP.js → chunk-OL7S2KFH.js} +60 -59
- package/dist/chunk-OL7S2KFH.js.map +1 -0
- package/dist/chunk-OX33X3NH.js +9 -0
- package/dist/{chunk-5U3CSRV5.js → chunk-PSFOA7P6.js} +9 -9
- package/dist/{chunk-UH72CZAX.js → chunk-PZ7WTBSI.js} +2 -2
- package/dist/{chunk-MUCUSF6Y.js → chunk-QHA4VF4B.js} +3 -3
- package/dist/{chunk-7UIRKGY7.js → chunk-QMHFXIMX.js} +16 -14
- package/dist/chunk-QMHFXIMX.js.map +1 -0
- package/dist/{chunk-ZS7ZXAXB.js → chunk-QOSAWNOU.js} +66 -2
- package/dist/chunk-QOSAWNOU.js.map +1 -0
- package/dist/{chunk-XSI4WZIX.js → chunk-QP7VLMFJ.js} +5 -5
- package/dist/{chunk-RCBDG7CW.js → chunk-R5DHVUA2.js} +4 -3
- package/dist/{chunk-RCBDG7CW.js.map → chunk-R5DHVUA2.js.map} +1 -1
- package/dist/{chunk-T7K276XW.js → chunk-R5HG665I.js} +6 -6
- package/dist/{chunk-RUIBZ6DI.js → chunk-R6KQDWHC.js} +3 -3
- package/dist/{chunk-V72WJIGN.js → chunk-REAZAE5C.js} +10 -10
- package/dist/{chunk-BK73QU45.js → chunk-REPFZIPP.js} +27 -8
- package/dist/chunk-REPFZIPP.js.map +1 -0
- package/dist/{chunk-AAOAVXBF.js → chunk-RXORNKSJ.js} +8 -8
- package/dist/{chunk-BXVBNYQT.js → chunk-S2MOK3CT.js} +4 -4
- package/dist/{chunk-ZLQGKBBE.js → chunk-SRE4CK6Y.js} +2 -2
- package/dist/{chunk-TMBO55MM.js → chunk-SZAD5U3J.js} +2 -2
- package/dist/{chunk-ZIFWZJ7X.js → chunk-T5GJVUSL.js} +2 -2
- package/dist/{chunk-DZ6SLAIZ.js → chunk-TC3H7I6O.js} +2 -2
- package/dist/{chunk-S2CQ73G4.js → chunk-TI6AR4QF.js} +5 -5
- package/dist/{chunk-7ZL3GJGY.js → chunk-TZLCBDJZ.js} +4 -4
- package/dist/{chunk-LKJLUSYR.js → chunk-U64SNFIZ.js} +3 -3
- package/dist/{chunk-Z3T5FWM6.js → chunk-UCNYEHQY.js} +2 -2
- package/dist/{chunk-GDR4RWF4.js → chunk-UIIEP6VP.js} +2 -2
- package/dist/{chunk-7XKIRMS4.js → chunk-UJWYQVXI.js} +2 -2
- package/dist/{chunk-G2V2V5UC.js → chunk-VHENFC2S.js} +2 -2
- package/dist/{chunk-AKDTLWWD.js → chunk-WNWSO4VO.js} +8 -8
- package/dist/{chunk-PJQRSOLE.js → chunk-X6EMCJ2L.js} +4 -4
- package/dist/{chunk-MKQ7IA6U.js → chunk-XBWS77S2.js} +3 -3
- package/dist/{chunk-WAZCBD7Y.js → chunk-XMKYQVJU.js} +3 -3
- package/dist/{chunk-JNKFPFH6.js → chunk-XPWWOR7Z.js} +3 -3
- package/dist/{chunk-5SMTFIYI.js → chunk-Z3OHGPIN.js} +7 -7
- package/dist/{chunk-6AJFOISA.js → chunk-ZNGR2CB6.js} +4 -4
- package/dist/{cleanup-KVZ7P6EN.js → cleanup-BD44PDRE.js} +48 -47
- package/dist/{cleanup-KVZ7P6EN.js.map → cleanup-BD44PDRE.js.map} +1 -1
- package/dist/cli-OMADLGGY.js +20 -0
- package/dist/color-IZ2J3CT2.js +65 -0
- package/dist/color-IZ2J3CT2.js.map +1 -0
- package/dist/{command-hook-installer-GMQ4IVDE.js → command-hook-installer-TRLJ4QFP.js} +13 -4
- package/dist/{command-hook-installer-GMQ4IVDE.js.map → command-hook-installer-TRLJ4QFP.js.map} +1 -1
- package/dist/{completion-OEU4UZEA.js → completion-SV446DXJ.js} +3 -4
- package/dist/{completion-OEU4UZEA.js.map → completion-SV446DXJ.js.map} +1 -1
- package/dist/{config-JEVEBD3O.js → config-65HXBCMW.js} +21 -20
- package/dist/{config-JEVEBD3O.js.map → config-65HXBCMW.js.map} +1 -1
- package/dist/{diff-3ZGUWMX4.js → diff-CJNSUX25.js} +27 -27
- package/dist/{digest-XJYJDGVX.js → digest-FH3JBHSO.js} +18 -17
- package/dist/{digest-XJYJDGVX.js.map → digest-FH3JBHSO.js.map} +1 -1
- package/dist/{fork-AGFYDM5U.js → fork-O6NS34MV.js} +44 -44
- package/dist/{history-VYAGUN2X.js → history-URHFR4MO.js} +15 -14
- package/dist/{hook-PWMF5WBD.js → hook-6PWP3JVL.js} +27 -29
- package/dist/hook-6PWP3JVL.js.map +1 -0
- package/dist/{hydrate-PMH6OEVU.js → hydrate-V6PVQ6OO.js} +17 -16
- package/dist/{hydrate-PMH6OEVU.js.map → hydrate-V6PVQ6OO.js.map} +1 -1
- package/dist/{init-A3J3OC6Y.js → init-SENRHJ4R.js} +26 -25
- package/dist/{init-A3J3OC6Y.js.map → init-SENRHJ4R.js.map} +1 -1
- package/dist/install-skills-DJE7LU66.js +24 -0
- package/dist/install-skills-bin.js +13 -12
- package/dist/install-skills-bin.js.map +1 -1
- package/dist/{keep-VRBCD2OU.js → keep-M7E7UMRL.js} +18 -17
- package/dist/{keep-VRBCD2OU.js.map → keep-M7E7UMRL.js.map} +1 -1
- package/dist/{list-WT2YLARZ.js → list-YPKCU3GB.js} +17 -16
- package/dist/{list-WT2YLARZ.js.map → list-YPKCU3GB.js.map} +1 -1
- package/dist/{move-4P2X2VL2.js → move-ME7JMNJI.js} +32 -31
- package/dist/{move-4P2X2VL2.js.map → move-ME7JMNJI.js.map} +1 -1
- package/dist/{note-INPWMP2K.js → note-JFZ3F7UY.js} +19 -18
- package/dist/{note-INPWMP2K.js.map → note-JFZ3F7UY.js.map} +1 -1
- package/dist/{overlaps-SEMKBXBD.js → overlaps-ZN3WA35A.js} +25 -24
- package/dist/{overlaps-SEMKBXBD.js.map → overlaps-ZN3WA35A.js.map} +1 -1
- package/dist/{pin-4524YHPO.js → pin-3S2MQQPM.js} +19 -18
- package/dist/{pin-4524YHPO.js.map → pin-3S2MQQPM.js.map} +1 -1
- package/dist/{pr-CRLSAAGA.js → pr-KNJ2TVC3.js} +39 -38
- package/dist/{pr-CRLSAAGA.js.map → pr-KNJ2TVC3.js.map} +1 -1
- package/dist/{prune-3XFHACES.js → prune-2GAXXNPM.js} +46 -45
- package/dist/{prune-3XFHACES.js.map → prune-2GAXXNPM.js.map} +1 -1
- package/dist/{pty-host-4NEN3SID.js → pty-host-WZZIQIKX.js} +43 -39
- package/dist/pty-host-WZZIQIKX.js.map +1 -0
- package/dist/{read-TNPMUPCX.js → read-UIV42F5D.js} +18 -17
- package/dist/{read-TNPMUPCX.js.map → read-UIV42F5D.js.map} +1 -1
- package/dist/{recent-GUABGTFG.js → recent-SJPAIY2T.js} +35 -27
- package/dist/recent-SJPAIY2T.js.map +1 -0
- package/dist/{remove-FDXCPMGJ.js → remove-KQW35I5D.js} +47 -46
- package/dist/{remove-FDXCPMGJ.js.map → remove-KQW35I5D.js.map} +1 -1
- package/dist/{report-J7TUQRJS.js → report-Z36H65YG.js} +4 -3
- package/dist/{restart-OETITN5N.js → restart-7VTSNTZ3.js} +22 -21
- package/dist/{restart-OETITN5N.js.map → restart-7VTSNTZ3.js.map} +1 -1
- package/dist/{resume-XDUTFTWV.js → resume-MPBXIF7C.js} +35 -27
- package/dist/resume-MPBXIF7C.js.map +1 -0
- package/dist/{review-EKSF3BUM.js → review-IRVOI4ZK.js} +57 -10
- package/dist/review-IRVOI4ZK.js.map +1 -0
- package/dist/{review-now-XUEDTNMP.js → review-now-QAAL5C6N.js} +7 -6
- package/dist/{review-now-XUEDTNMP.js.map → review-now-QAAL5C6N.js.map} +1 -1
- package/dist/{run-INEROJF3.js → run-2EKY2R5R.js} +15 -14
- package/dist/{run-INEROJF3.js.map → run-2EKY2R5R.js.map} +1 -1
- package/dist/{screen-JNM536PR.js → screen-GQTKTUTD.js} +19 -18
- package/dist/{screen-JNM536PR.js.map → screen-GQTKTUTD.js.map} +1 -1
- package/dist/{search-FOBT55YQ.js → search-N7XUYKYV.js} +15 -14
- package/dist/{search-FOBT55YQ.js.map → search-N7XUYKYV.js.map} +1 -1
- package/dist/{section-7ZGM5YOL.js → section-6MDCSJS5.js} +19 -18
- package/dist/{section-7ZGM5YOL.js.map → section-6MDCSJS5.js.map} +1 -1
- package/dist/{send-6X2IKY54.js → send-32U465SB.js} +24 -23
- package/dist/{send-6X2IKY54.js.map → send-32U465SB.js.map} +1 -1
- package/dist/{sessions-6DLS2JQG.js → sessions-E5OEZF2C.js} +42 -41
- package/dist/{sessions-6DLS2JQG.js.map → sessions-E5OEZF2C.js.map} +1 -1
- package/dist/{show-YTJ3NVMP.js → show-AQQDICKX.js} +18 -17
- package/dist/{show-YTJ3NVMP.js.map → show-AQQDICKX.js.map} +1 -1
- package/dist/{snooze-7WV4NKX7.js → snooze-LXHYYV5G.js} +18 -17
- package/dist/{snooze-7WV4NKX7.js.map → snooze-LXHYYV5G.js.map} +1 -1
- package/dist/{start-3EE3H4UE.js → start-OCGLP6N6.js} +19 -18
- package/dist/{start-3EE3H4UE.js.map → start-OCGLP6N6.js.map} +1 -1
- package/dist/{state-GPEV4FHA.js → state-FSZ6TIYE.js} +6 -5
- package/dist/{state-GPEV4FHA.js.map → state-FSZ6TIYE.js.map} +1 -1
- package/dist/{status-DDHIRFAB.js → status-35FEMHVO.js} +22 -21
- package/dist/{status-DDHIRFAB.js.map → status-35FEMHVO.js.map} +1 -1
- package/dist/statusline-WEZSDGOU.js +67 -0
- package/dist/statusline-WEZSDGOU.js.map +1 -0
- package/dist/{statusline-hook-W7KWKWAC.js → statusline-hook-H5MM2PA2.js} +16 -11
- package/dist/statusline-hook-H5MM2PA2.js.map +1 -0
- package/dist/{stop-DYT5BIRN.js → stop-6QOVDV2A.js} +19 -18
- package/dist/{stop-DYT5BIRN.js.map → stop-6QOVDV2A.js.map} +1 -1
- package/dist/{sync-NOLPKVWO.js → sync-GEG3O54C.js} +46 -45
- package/dist/{sync-NOLPKVWO.js.map → sync-GEG3O54C.js.map} +1 -1
- package/dist/{time-WANFTVEE.js → time-UXSYQHN4.js} +20 -19
- package/dist/{time-WANFTVEE.js.map → time-UXSYQHN4.js.map} +1 -1
- package/dist/{time-actions-B7YKVDVE.js → time-actions-3KLS5WGD.js} +7 -6
- package/dist/{timesheet-GG5UR2NU.js → timesheet-RNUTAWR4.js} +27 -26
- package/dist/{timesheet-GG5UR2NU.js.map → timesheet-RNUTAWR4.js.map} +1 -1
- package/dist/{todo-VBWHS2HU.js → todo-MP4WUDMW.js} +7 -6
- package/dist/{todo-VBWHS2HU.js.map → todo-MP4WUDMW.js.map} +1 -1
- package/dist/{tree-HYJHJ7HD.js → tree-U2LS4NHP.js} +53 -52
- package/dist/tree-U2LS4NHP.js.map +1 -0
- package/dist/{update-IMNOHV3J.js → update-PHTB3AB5.js} +28 -27
- package/dist/{update-IMNOHV3J.js.map → update-PHTB3AB5.js.map} +1 -1
- package/dist/{usage-FUWADDO4.js → usage-2Z7354NZ.js} +17 -16
- package/dist/{usage-FUWADDO4.js.map → usage-2Z7354NZ.js.map} +1 -1
- package/dist/{version-VXE4NJRN.js → version-G2HN4GTL.js} +12 -13
- package/dist/{version-VXE4NJRN.js.map → version-G2HN4GTL.js.map} +1 -1
- package/dist/{wait-2U7PLYRS.js → wait-MEMUQGDV.js} +19 -18
- package/dist/{wait-2U7PLYRS.js.map → wait-MEMUQGDV.js.map} +1 -1
- package/dist/wd-bin.js +9 -9
- package/dist/web/assets/{PtyView-s01AhxxX.js → PtyView-CyqsvkBt.js} +2 -2
- package/dist/web/assets/{PtyView-s01AhxxX.js.map → PtyView-CyqsvkBt.js.map} +1 -1
- package/dist/web/assets/index-DXP8G0eh.css +1 -0
- package/dist/web/assets/index-DjFmAhbY.js +126 -0
- package/dist/web/assets/index-DjFmAhbY.js.map +1 -0
- package/dist/web/index.html +2 -2
- package/dist/{web-KEQI7DQO.js → web-P7TKPZFB.js} +366 -305
- package/dist/web-P7TKPZFB.js.map +1 -0
- package/dist/work-command-JHNC4JZK.js +13 -0
- package/dist/work-command-JHNC4JZK.js.map +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/plugins/work-tree/skills/work-sessions/SKILL.md +3 -1
- package/dist/account-GOU2FC56.js.map +0 -1
- package/dist/chunk-2K44PZRP.js.map +0 -1
- package/dist/chunk-6THUVP6T.js.map +0 -1
- package/dist/chunk-7UIRKGY7.js.map +0 -1
- package/dist/chunk-AH5TM3NB.js +0 -21
- package/dist/chunk-AH5TM3NB.js.map +0 -1
- package/dist/chunk-BK73QU45.js.map +0 -1
- package/dist/chunk-DW245WK4.js +0 -74
- package/dist/chunk-DW245WK4.js.map +0 -1
- package/dist/chunk-FLQOSWVR.js.map +0 -1
- package/dist/chunk-KI26QYWS.js +0 -9
- package/dist/chunk-MOTKVMGL.js.map +0 -1
- package/dist/chunk-NCXRMJGS.js.map +0 -1
- package/dist/chunk-UY5J2KY2.js.map +0 -1
- package/dist/chunk-Y2DBNXZH.js.map +0 -1
- package/dist/chunk-ZS7ZXAXB.js.map +0 -1
- package/dist/cli-SGRXK4G2.js +0 -20
- package/dist/hook-PWMF5WBD.js.map +0 -1
- package/dist/install-skills-QX4OATOS.js +0 -23
- package/dist/pty-host-4NEN3SID.js.map +0 -1
- package/dist/recent-GUABGTFG.js.map +0 -1
- package/dist/resume-XDUTFTWV.js.map +0 -1
- package/dist/review-EKSF3BUM.js.map +0 -1
- package/dist/statusline-QN4AERZC.js +0 -107
- package/dist/statusline-QN4AERZC.js.map +0 -1
- package/dist/statusline-hook-W7KWKWAC.js.map +0 -1
- package/dist/tree-HYJHJ7HD.js.map +0 -1
- package/dist/web/assets/index-BNHgDFNt.css +0 -1
- package/dist/web/assets/index-DWb77ss2.js +0 -126
- package/dist/web/assets/index-DWb77ss2.js.map +0 -1
- package/dist/web-KEQI7DQO.js.map +0 -1
- /package/dist/{attach-RJ53ABQN.js.map → attach-ETPEGXYM.js.map} +0 -0
- /package/dist/{chunk-ULI3NB4J.js.map → chunk-2IDWQ5NO.js.map} +0 -0
- /package/dist/{chunk-UTBIZ6W5.js.map → chunk-2PAHTJ3B.js.map} +0 -0
- /package/dist/{chunk-RCWQD32G.js.map → chunk-3YON263F.js.map} +0 -0
- /package/dist/{chunk-JQ42ERH3.js.map → chunk-44UME4JD.js.map} +0 -0
- /package/dist/{chunk-PAEWU7UC.js.map → chunk-46WW3Z6C.js.map} +0 -0
- /package/dist/{chunk-AYHDJMMJ.js.map → chunk-4CXUVBOD.js.map} +0 -0
- /package/dist/{chunk-MKJH2D4V.js.map → chunk-4NIOURHZ.js.map} +0 -0
- /package/dist/{chunk-EHUKDUNJ.js.map → chunk-4WTY3SFZ.js.map} +0 -0
- /package/dist/{chunk-T26N4I4E.js.map → chunk-5LAFHPNB.js.map} +0 -0
- /package/dist/{chunk-AU27USPZ.js.map → chunk-5ZCCUM75.js.map} +0 -0
- /package/dist/{chunk-MQQADIRH.js.map → chunk-7QDZGVIT.js.map} +0 -0
- /package/dist/{chunk-A3R3VO6G.js.map → chunk-7S3NPGVM.js.map} +0 -0
- /package/dist/{chunk-BPAV2PIE.js.map → chunk-AHGMXBY3.js.map} +0 -0
- /package/dist/{chunk-RRNIJ7YO.js.map → chunk-ALBTIOP3.js.map} +0 -0
- /package/dist/{chunk-FLY3VR6B.js.map → chunk-BZGIKO6I.js.map} +0 -0
- /package/dist/{chunk-UIG3CTXU.js.map → chunk-C6OEPSH2.js.map} +0 -0
- /package/dist/{chunk-RVSRZ57P.js.map → chunk-CNZV3UCM.js.map} +0 -0
- /package/dist/{chunk-ERXXU72V.js.map → chunk-CVTM4TCZ.js.map} +0 -0
- /package/dist/{chunk-KJY2AJQS.js.map → chunk-DBGHDWM7.js.map} +0 -0
- /package/dist/{chunk-LSZ6HI3U.js.map → chunk-EORL2V7P.js.map} +0 -0
- /package/dist/{chunk-DPO6I7OR.js.map → chunk-EQD3YBGA.js.map} +0 -0
- /package/dist/{chunk-RE3NKV4Z.js.map → chunk-EQFDUC6F.js.map} +0 -0
- /package/dist/{chunk-CWWWZRMN.js.map → chunk-FIEBI3UB.js.map} +0 -0
- /package/dist/{chunk-GSL6ZBQX.js.map → chunk-GGE55DO3.js.map} +0 -0
- /package/dist/{chunk-AGRUEZQX.js.map → chunk-GNIYYXQX.js.map} +0 -0
- /package/dist/{chunk-DWEW7I53.js.map → chunk-GPLCT5TZ.js.map} +0 -0
- /package/dist/{chunk-TUDDISCX.js.map → chunk-ICEP4WAK.js.map} +0 -0
- /package/dist/{chunk-7UXV4X2Y.js.map → chunk-IPHADNF5.js.map} +0 -0
- /package/dist/{chunk-5D5V4P7J.js.map → chunk-ITY6R2LC.js.map} +0 -0
- /package/dist/{chunk-VLUME72O.js.map → chunk-JVJ5IJSF.js.map} +0 -0
- /package/dist/{chunk-6MUKE253.js.map → chunk-K2OOUNXH.js.map} +0 -0
- /package/dist/{chunk-YXUVNSDM.js.map → chunk-KCYYIUUQ.js.map} +0 -0
- /package/dist/{chunk-TNKBZIR5.js.map → chunk-LMP3WGRW.js.map} +0 -0
- /package/dist/{chunk-2Y2ARDXI.js.map → chunk-MD6QMSXQ.js.map} +0 -0
- /package/dist/{chunk-U2MOKVPZ.js.map → chunk-MHL66TIL.js.map} +0 -0
- /package/dist/{chunk-SAPDMQTO.js.map → chunk-MVME4LH7.js.map} +0 -0
- /package/dist/{chunk-S43GVNRB.js.map → chunk-MXH7DV4Q.js.map} +0 -0
- /package/dist/{chunk-UI45HNNQ.js.map → chunk-MZY557LZ.js.map} +0 -0
- /package/dist/{chunk-X5XVXJ4B.js.map → chunk-O32OINY3.js.map} +0 -0
- /package/dist/{chunk-KI26QYWS.js.map → chunk-OX33X3NH.js.map} +0 -0
- /package/dist/{chunk-5U3CSRV5.js.map → chunk-PSFOA7P6.js.map} +0 -0
- /package/dist/{chunk-UH72CZAX.js.map → chunk-PZ7WTBSI.js.map} +0 -0
- /package/dist/{chunk-MUCUSF6Y.js.map → chunk-QHA4VF4B.js.map} +0 -0
- /package/dist/{chunk-XSI4WZIX.js.map → chunk-QP7VLMFJ.js.map} +0 -0
- /package/dist/{chunk-T7K276XW.js.map → chunk-R5HG665I.js.map} +0 -0
- /package/dist/{chunk-RUIBZ6DI.js.map → chunk-R6KQDWHC.js.map} +0 -0
- /package/dist/{chunk-V72WJIGN.js.map → chunk-REAZAE5C.js.map} +0 -0
- /package/dist/{chunk-AAOAVXBF.js.map → chunk-RXORNKSJ.js.map} +0 -0
- /package/dist/{chunk-BXVBNYQT.js.map → chunk-S2MOK3CT.js.map} +0 -0
- /package/dist/{chunk-ZLQGKBBE.js.map → chunk-SRE4CK6Y.js.map} +0 -0
- /package/dist/{chunk-TMBO55MM.js.map → chunk-SZAD5U3J.js.map} +0 -0
- /package/dist/{chunk-ZIFWZJ7X.js.map → chunk-T5GJVUSL.js.map} +0 -0
- /package/dist/{chunk-DZ6SLAIZ.js.map → chunk-TC3H7I6O.js.map} +0 -0
- /package/dist/{chunk-S2CQ73G4.js.map → chunk-TI6AR4QF.js.map} +0 -0
- /package/dist/{chunk-7ZL3GJGY.js.map → chunk-TZLCBDJZ.js.map} +0 -0
- /package/dist/{chunk-LKJLUSYR.js.map → chunk-U64SNFIZ.js.map} +0 -0
- /package/dist/{chunk-Z3T5FWM6.js.map → chunk-UCNYEHQY.js.map} +0 -0
- /package/dist/{chunk-GDR4RWF4.js.map → chunk-UIIEP6VP.js.map} +0 -0
- /package/dist/{chunk-7XKIRMS4.js.map → chunk-UJWYQVXI.js.map} +0 -0
- /package/dist/{chunk-G2V2V5UC.js.map → chunk-VHENFC2S.js.map} +0 -0
- /package/dist/{chunk-AKDTLWWD.js.map → chunk-WNWSO4VO.js.map} +0 -0
- /package/dist/{chunk-PJQRSOLE.js.map → chunk-X6EMCJ2L.js.map} +0 -0
- /package/dist/{chunk-MKQ7IA6U.js.map → chunk-XBWS77S2.js.map} +0 -0
- /package/dist/{chunk-WAZCBD7Y.js.map → chunk-XMKYQVJU.js.map} +0 -0
- /package/dist/{chunk-JNKFPFH6.js.map → chunk-XPWWOR7Z.js.map} +0 -0
- /package/dist/{chunk-5SMTFIYI.js.map → chunk-Z3OHGPIN.js.map} +0 -0
- /package/dist/{chunk-6AJFOISA.js.map → chunk-ZNGR2CB6.js.map} +0 -0
- /package/dist/{cli-SGRXK4G2.js.map → cli-OMADLGGY.js.map} +0 -0
- /package/dist/{diff-3ZGUWMX4.js.map → diff-CJNSUX25.js.map} +0 -0
- /package/dist/{fork-AGFYDM5U.js.map → fork-O6NS34MV.js.map} +0 -0
- /package/dist/{history-VYAGUN2X.js.map → history-URHFR4MO.js.map} +0 -0
- /package/dist/{install-skills-QX4OATOS.js.map → install-skills-DJE7LU66.js.map} +0 -0
- /package/dist/{report-J7TUQRJS.js.map → report-Z36H65YG.js.map} +0 -0
- /package/dist/{time-actions-B7YKVDVE.js.map → time-actions-3KLS5WGD.js.map} +0 -0
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
commentInputSchema,
|
|
4
|
+
detectParentBranch,
|
|
5
|
+
launch,
|
|
6
|
+
readContextLines,
|
|
7
|
+
refuseReason,
|
|
8
|
+
resolveRepoDiff,
|
|
9
|
+
resolveRepoDiffAsync,
|
|
10
|
+
resolveSchema,
|
|
11
|
+
resolveWebRoot,
|
|
12
|
+
serveSpa,
|
|
13
|
+
sessionBaseForPath,
|
|
14
|
+
submitReviewSchema
|
|
15
|
+
} from "./chunk-R5HG665I.js";
|
|
2
16
|
import {
|
|
3
17
|
ensureAgentPath,
|
|
4
18
|
restartHost
|
|
5
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-46WW3Z6C.js";
|
|
20
|
+
import {
|
|
21
|
+
dropLocalReview,
|
|
22
|
+
readLocalReview,
|
|
23
|
+
saveLocalReview
|
|
24
|
+
} from "./chunk-KL7RY6UG.js";
|
|
6
25
|
import {
|
|
7
26
|
createMonthGather,
|
|
8
27
|
defaultTimeDeps,
|
|
@@ -16,7 +35,7 @@ import {
|
|
|
16
35
|
graphProblem,
|
|
17
36
|
signOutGraph,
|
|
18
37
|
startDeviceLogin
|
|
19
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-DBGHDWM7.js";
|
|
20
39
|
import {
|
|
21
40
|
addTask,
|
|
22
41
|
completeTask,
|
|
@@ -24,21 +43,7 @@ import {
|
|
|
24
43
|
getTasks,
|
|
25
44
|
removeTask,
|
|
26
45
|
uncompleteTask
|
|
27
|
-
} from "./chunk-
|
|
28
|
-
import {
|
|
29
|
-
commentInputSchema,
|
|
30
|
-
detectParentBranch,
|
|
31
|
-
launch,
|
|
32
|
-
readContextLines,
|
|
33
|
-
refuseReason,
|
|
34
|
-
resolveRepoDiff,
|
|
35
|
-
resolveRepoDiffAsync,
|
|
36
|
-
resolveSchema,
|
|
37
|
-
resolveWebRoot,
|
|
38
|
-
serveSpa,
|
|
39
|
-
sessionBaseForPath,
|
|
40
|
-
submitReviewSchema
|
|
41
|
-
} from "./chunk-T7K276XW.js";
|
|
46
|
+
} from "./chunk-44UME4JD.js";
|
|
42
47
|
import {
|
|
43
48
|
announceChange,
|
|
44
49
|
createArchivedRows,
|
|
@@ -53,25 +58,25 @@ import {
|
|
|
53
58
|
stageSeenKey,
|
|
54
59
|
storeHolding,
|
|
55
60
|
withRestoring
|
|
56
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-QMHFXIMX.js";
|
|
57
62
|
import {
|
|
58
63
|
createDigestSource
|
|
59
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-TI6AR4QF.js";
|
|
60
65
|
import {
|
|
61
66
|
createBuildFoldersJob,
|
|
62
67
|
defaultBranchTidyDeps,
|
|
63
68
|
defaultBuildFoldersDeps,
|
|
64
69
|
deleteMergedBranches,
|
|
65
70
|
findMergedBranches
|
|
66
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-EQD3YBGA.js";
|
|
67
72
|
import {
|
|
68
73
|
defaultCleanupDeps
|
|
69
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-PSFOA7P6.js";
|
|
70
75
|
import {
|
|
71
76
|
DiffStatCache,
|
|
72
77
|
findOverlaps,
|
|
73
78
|
wantsDiffStat
|
|
74
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-EQFDUC6F.js";
|
|
75
80
|
import {
|
|
76
81
|
sendToSession
|
|
77
82
|
} from "./chunk-KWHHB737.js";
|
|
@@ -80,7 +85,7 @@ import {
|
|
|
80
85
|
readNote,
|
|
81
86
|
saveNote,
|
|
82
87
|
sessionsWithNotes
|
|
83
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-MD6QMSXQ.js";
|
|
84
89
|
import {
|
|
85
90
|
addBlocker,
|
|
86
91
|
allBlocks,
|
|
@@ -92,13 +97,13 @@ import {
|
|
|
92
97
|
removeBlocker,
|
|
93
98
|
sweepBlocks,
|
|
94
99
|
unblockedPrompt
|
|
95
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-S2MOK3CT.js";
|
|
96
101
|
import {
|
|
97
102
|
jiraWorklogPoster,
|
|
98
103
|
logWorkDay,
|
|
99
104
|
loggedDays,
|
|
100
105
|
worklogSettings
|
|
101
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-SRE4CK6Y.js";
|
|
102
107
|
import {
|
|
103
108
|
accountOverview,
|
|
104
109
|
accountSkillsNote,
|
|
@@ -110,25 +115,63 @@ import {
|
|
|
110
115
|
removeAgentAccount,
|
|
111
116
|
setDefaultAgentAccount,
|
|
112
117
|
switchRefusal
|
|
113
|
-
} from "./chunk-
|
|
118
|
+
} from "./chunk-MZY557LZ.js";
|
|
114
119
|
import {
|
|
115
120
|
buildUsage,
|
|
116
121
|
realUsageDeps,
|
|
117
122
|
setupAgentUsage
|
|
118
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-C6OEPSH2.js";
|
|
119
124
|
import {
|
|
120
125
|
sessionWorkTime
|
|
121
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-QHA4VF4B.js";
|
|
122
127
|
import "./chunk-UVZITL47.js";
|
|
128
|
+
import {
|
|
129
|
+
removeWorktreeInChild
|
|
130
|
+
} from "./chunk-LMP3WGRW.js";
|
|
131
|
+
import {
|
|
132
|
+
archiveMergedSession,
|
|
133
|
+
archiveWaiting,
|
|
134
|
+
defaultArchiveDeps
|
|
135
|
+
} from "./chunk-GGE55DO3.js";
|
|
136
|
+
import {
|
|
137
|
+
MAX_REPLY_CHARS,
|
|
138
|
+
discardReply,
|
|
139
|
+
draftCounts,
|
|
140
|
+
draftReply,
|
|
141
|
+
isThreadId,
|
|
142
|
+
listReplies,
|
|
143
|
+
markPostedAnswered,
|
|
144
|
+
postReply,
|
|
145
|
+
rememberSent,
|
|
146
|
+
replyFolder,
|
|
147
|
+
replyFolderOnDisk,
|
|
148
|
+
retireResolvedReplies,
|
|
149
|
+
sessionRepoRefs,
|
|
150
|
+
withThreadContext
|
|
151
|
+
} from "./chunk-WNWSO4VO.js";
|
|
152
|
+
import {
|
|
153
|
+
DEFAULT_TRUSTED_BOTS,
|
|
154
|
+
createCiStore,
|
|
155
|
+
createSeenStores,
|
|
156
|
+
newFeedback,
|
|
157
|
+
openThreadCount,
|
|
158
|
+
openThreadsOf,
|
|
159
|
+
reviewMessage,
|
|
160
|
+
subAgentHint
|
|
161
|
+
} from "./chunk-7QDZGVIT.js";
|
|
162
|
+
import {
|
|
163
|
+
cleanupVerdict,
|
|
164
|
+
createCleanupJob
|
|
165
|
+
} from "./chunk-AKMPF72Y.js";
|
|
123
166
|
import {
|
|
124
167
|
defaultForkDeps,
|
|
125
168
|
forkSession,
|
|
126
169
|
startSessionWithPrompt
|
|
127
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-REAZAE5C.js";
|
|
128
171
|
import {
|
|
129
172
|
addRepoRefusal,
|
|
130
173
|
addedRepoNote
|
|
131
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-KCYYIUUQ.js";
|
|
132
175
|
import {
|
|
133
176
|
BehindCache,
|
|
134
177
|
behindMain,
|
|
@@ -144,15 +187,32 @@ import {
|
|
|
144
187
|
stackedOn,
|
|
145
188
|
updateFromBase,
|
|
146
189
|
updateFromMain
|
|
147
|
-
} from "./chunk-
|
|
190
|
+
} from "./chunk-BWUN33QN.js";
|
|
191
|
+
import {
|
|
192
|
+
sessionStatusView,
|
|
193
|
+
shownState
|
|
194
|
+
} from "./chunk-ZNGR2CB6.js";
|
|
148
195
|
import {
|
|
149
196
|
askCatchUp,
|
|
150
197
|
cachedCatchUp,
|
|
151
198
|
catchUp,
|
|
152
199
|
catchUpFacts,
|
|
153
200
|
forgetCatchUp
|
|
154
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-3YON263F.js";
|
|
202
|
+
import {
|
|
203
|
+
internalReadOnly,
|
|
204
|
+
runInternal,
|
|
205
|
+
runInternalReadOnly,
|
|
206
|
+
summarizeCheckpoint,
|
|
207
|
+
throttleTrailing
|
|
208
|
+
} from "./chunk-CVTM4TCZ.js";
|
|
209
|
+
import {
|
|
210
|
+
computeDiff,
|
|
211
|
+
computeRangeDiff,
|
|
212
|
+
parseGitDiff
|
|
213
|
+
} from "./chunk-QP7VLMFJ.js";
|
|
155
214
|
import {
|
|
215
|
+
PLACE_PATCH_EXPECTED,
|
|
156
216
|
applyPlacePatch,
|
|
157
217
|
applySectionOp,
|
|
158
218
|
changeRailSections,
|
|
@@ -160,7 +220,16 @@ import {
|
|
|
160
220
|
cleanSectionOp,
|
|
161
221
|
placeSession,
|
|
162
222
|
readRailLayout
|
|
163
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-C6TKUX7I.js";
|
|
224
|
+
import {
|
|
225
|
+
QUEUE_RECHECK_MS,
|
|
226
|
+
busyForRestart,
|
|
227
|
+
createRestarter,
|
|
228
|
+
installedAtCache,
|
|
229
|
+
outdatedPtys,
|
|
230
|
+
restartNotesSummary
|
|
231
|
+
} from "./chunk-TC3H7I6O.js";
|
|
232
|
+
import "./chunk-TNJF7T33.js";
|
|
164
233
|
import {
|
|
165
234
|
DEFAULT_CATCH_UP_DAYS,
|
|
166
235
|
addDays,
|
|
@@ -185,7 +254,7 @@ import {
|
|
|
185
254
|
tempoSetup,
|
|
186
255
|
timeRange,
|
|
187
256
|
updateDay
|
|
188
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-R6KQDWHC.js";
|
|
189
258
|
import {
|
|
190
259
|
DISCUSSION_OPEN_MIN_MS,
|
|
191
260
|
LEFT_OVER_SUBMIT,
|
|
@@ -229,7 +298,7 @@ import {
|
|
|
229
298
|
withClaim,
|
|
230
299
|
withFixClaim,
|
|
231
300
|
withoutFixClaim
|
|
232
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-R5DHVUA2.js";
|
|
233
302
|
import {
|
|
234
303
|
asData,
|
|
235
304
|
asDataBlock
|
|
@@ -245,12 +314,12 @@ import {
|
|
|
245
314
|
readWebUrl,
|
|
246
315
|
writeDevWebDiscovery,
|
|
247
316
|
writeWebDiscovery
|
|
248
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-SZAD5U3J.js";
|
|
249
318
|
import {
|
|
250
319
|
checkTools,
|
|
251
320
|
saveFolders,
|
|
252
321
|
setupState
|
|
253
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-7S3NPGVM.js";
|
|
254
323
|
import {
|
|
255
324
|
RepoAdminError,
|
|
256
325
|
deleteGroup,
|
|
@@ -262,7 +331,7 @@ import {
|
|
|
262
331
|
setRepoIgnored,
|
|
263
332
|
setReviewMode,
|
|
264
333
|
setScanRoot
|
|
265
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-ITY6R2LC.js";
|
|
266
335
|
import {
|
|
267
336
|
freeLeftovers,
|
|
268
337
|
leftoversOf,
|
|
@@ -271,78 +340,17 @@ import {
|
|
|
271
340
|
parsePrRef,
|
|
272
341
|
resolvePrToStart,
|
|
273
342
|
workOnPrPrompt
|
|
274
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-Z3OHGPIN.js";
|
|
275
344
|
import {
|
|
276
345
|
legacyUnsafeCheck
|
|
277
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-2PAHTJ3B.js";
|
|
278
347
|
import {
|
|
279
348
|
howToLift
|
|
280
349
|
} from "./chunk-FZHFD2AY.js";
|
|
281
350
|
import {
|
|
282
351
|
agentsBySession,
|
|
283
352
|
summarizeAgents
|
|
284
|
-
} from "./chunk-
|
|
285
|
-
import {
|
|
286
|
-
resolveWorkBinPath
|
|
287
|
-
} from "./chunk-AH5TM3NB.js";
|
|
288
|
-
import {
|
|
289
|
-
editorArgs,
|
|
290
|
-
openUrl
|
|
291
|
-
} from "./chunk-S43GVNRB.js";
|
|
292
|
-
import {
|
|
293
|
-
removeWorktreeInChild
|
|
294
|
-
} from "./chunk-TNKBZIR5.js";
|
|
295
|
-
import {
|
|
296
|
-
archiveMergedSession,
|
|
297
|
-
archiveWaiting,
|
|
298
|
-
defaultArchiveDeps
|
|
299
|
-
} from "./chunk-GSL6ZBQX.js";
|
|
300
|
-
import {
|
|
301
|
-
cleanupVerdict,
|
|
302
|
-
createCleanupJob
|
|
303
|
-
} from "./chunk-AKMPF72Y.js";
|
|
304
|
-
import {
|
|
305
|
-
MAX_REPLY_CHARS,
|
|
306
|
-
discardReply,
|
|
307
|
-
draftCounts,
|
|
308
|
-
draftReply,
|
|
309
|
-
isThreadId,
|
|
310
|
-
listReplies,
|
|
311
|
-
markPostedAnswered,
|
|
312
|
-
postReply,
|
|
313
|
-
rememberSent,
|
|
314
|
-
replyFolder,
|
|
315
|
-
replyFolderOnDisk,
|
|
316
|
-
retireResolvedReplies,
|
|
317
|
-
sessionRepoRefs,
|
|
318
|
-
withThreadContext
|
|
319
|
-
} from "./chunk-AKDTLWWD.js";
|
|
320
|
-
import {
|
|
321
|
-
DEFAULT_TRUSTED_BOTS,
|
|
322
|
-
createCiStore,
|
|
323
|
-
createSeenStores,
|
|
324
|
-
newFeedback,
|
|
325
|
-
openThreadCount,
|
|
326
|
-
openThreadsOf,
|
|
327
|
-
reviewMessage,
|
|
328
|
-
subAgentHint
|
|
329
|
-
} from "./chunk-MQQADIRH.js";
|
|
330
|
-
import {
|
|
331
|
-
sessionStatusView,
|
|
332
|
-
shownState
|
|
333
|
-
} from "./chunk-6AJFOISA.js";
|
|
334
|
-
import {
|
|
335
|
-
internalReadOnly,
|
|
336
|
-
runInternal,
|
|
337
|
-
runInternalReadOnly,
|
|
338
|
-
summarizeCheckpoint,
|
|
339
|
-
throttleTrailing
|
|
340
|
-
} from "./chunk-ERXXU72V.js";
|
|
341
|
-
import {
|
|
342
|
-
computeDiff,
|
|
343
|
-
computeRangeDiff,
|
|
344
|
-
parseGitDiff
|
|
345
|
-
} from "./chunk-XSI4WZIX.js";
|
|
353
|
+
} from "./chunk-FIEBI3UB.js";
|
|
346
354
|
import {
|
|
347
355
|
commandWords,
|
|
348
356
|
describeProcess,
|
|
@@ -351,7 +359,7 @@ import {
|
|
|
351
359
|
normDir,
|
|
352
360
|
runningFromNames,
|
|
353
361
|
runsFrom
|
|
354
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-ICEP4WAK.js";
|
|
355
363
|
import {
|
|
356
364
|
childText,
|
|
357
365
|
createInChild,
|
|
@@ -359,7 +367,7 @@ import {
|
|
|
359
367
|
keyedQueue,
|
|
360
368
|
oneAtATime,
|
|
361
369
|
runWorkChild
|
|
362
|
-
} from "./chunk-
|
|
370
|
+
} from "./chunk-5LAFHPNB.js";
|
|
363
371
|
import {
|
|
364
372
|
configurePtyPool,
|
|
365
373
|
detachPtyPool,
|
|
@@ -374,6 +382,7 @@ import {
|
|
|
374
382
|
ptyLastOutputMs,
|
|
375
383
|
ptyPid,
|
|
376
384
|
ptyPids,
|
|
385
|
+
ptyTerminals,
|
|
377
386
|
readPtyScreen,
|
|
378
387
|
restartPty,
|
|
379
388
|
resumePersistedSessions,
|
|
@@ -383,43 +392,47 @@ import {
|
|
|
383
392
|
syncPtyPool,
|
|
384
393
|
terminalTicketUrl,
|
|
385
394
|
writeToPty
|
|
386
|
-
} from "./chunk-
|
|
387
|
-
import "./chunk-
|
|
395
|
+
} from "./chunk-6SYQQXPQ.js";
|
|
396
|
+
import "./chunk-JVJ5IJSF.js";
|
|
388
397
|
import {
|
|
389
398
|
disposeAllWatchers,
|
|
390
399
|
disposeSessionWatcher,
|
|
391
400
|
findSession as findSession2,
|
|
392
401
|
subscribeSession
|
|
393
|
-
} from "./chunk-
|
|
394
|
-
import "./chunk-
|
|
395
|
-
import "./chunk-
|
|
402
|
+
} from "./chunk-O32OINY3.js";
|
|
403
|
+
import "./chunk-XMKYQVJU.js";
|
|
404
|
+
import "./chunk-XPWWOR7Z.js";
|
|
396
405
|
import {
|
|
397
406
|
teardownWorktree,
|
|
398
407
|
toBaseSpec,
|
|
399
408
|
wouldRefuseRemoval
|
|
400
|
-
} from "./chunk-
|
|
401
|
-
import "./chunk-
|
|
409
|
+
} from "./chunk-4ZP6NN2X.js";
|
|
410
|
+
import "./chunk-PZ7WTBSI.js";
|
|
402
411
|
import {
|
|
403
412
|
isWorktreeFolder
|
|
404
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-EORL2V7P.js";
|
|
414
|
+
import {
|
|
415
|
+
accountLoginId,
|
|
416
|
+
accountOfLoginId
|
|
417
|
+
} from "./chunk-SJBEIYLK.js";
|
|
405
418
|
import {
|
|
406
419
|
ASSISTANT_ID,
|
|
407
420
|
assistantDir,
|
|
408
421
|
describeView,
|
|
409
422
|
writeAssistantContext
|
|
410
|
-
} from "./chunk-
|
|
423
|
+
} from "./chunk-BRUYXYO2.js";
|
|
411
424
|
import "./chunk-7E5XPDKX.js";
|
|
412
|
-
import "./chunk-
|
|
425
|
+
import "./chunk-AHGMXBY3.js";
|
|
413
426
|
import {
|
|
414
427
|
NOTE_NUDGE,
|
|
415
428
|
findSessionForCwd,
|
|
416
429
|
readPendingForSession,
|
|
417
430
|
readPendingForWorktree
|
|
418
|
-
} from "./chunk-
|
|
431
|
+
} from "./chunk-RXORNKSJ.js";
|
|
432
|
+
import "./chunk-ZSHWP2VS.js";
|
|
419
433
|
import {
|
|
420
434
|
getCommentFileStore
|
|
421
|
-
} from "./chunk-
|
|
422
|
-
import "./chunk-ZSHWP2VS.js";
|
|
435
|
+
} from "./chunk-CNZV3UCM.js";
|
|
423
436
|
import {
|
|
424
437
|
createCommentStore
|
|
425
438
|
} from "./chunk-HUXS3VAI.js";
|
|
@@ -435,17 +448,17 @@ import {
|
|
|
435
448
|
stageInputOf,
|
|
436
449
|
withRequiredChecks,
|
|
437
450
|
workElsewhere
|
|
438
|
-
} from "./chunk-
|
|
451
|
+
} from "./chunk-MVME4LH7.js";
|
|
439
452
|
import {
|
|
440
453
|
createSessionBranches
|
|
441
|
-
} from "./chunk-
|
|
454
|
+
} from "./chunk-GPLCT5TZ.js";
|
|
442
455
|
import {
|
|
443
456
|
defaultHost,
|
|
444
457
|
hostById,
|
|
445
458
|
hostForRepo,
|
|
446
459
|
hostOfPrUrl,
|
|
447
460
|
originHostname
|
|
448
|
-
} from "./chunk-
|
|
461
|
+
} from "./chunk-2IDWQ5NO.js";
|
|
449
462
|
import {
|
|
450
463
|
MAX_THREAD_BODY
|
|
451
464
|
} from "./chunk-FGPXMAYU.js";
|
|
@@ -458,16 +471,21 @@ import {
|
|
|
458
471
|
readSessionBranches,
|
|
459
472
|
repoNameOf,
|
|
460
473
|
wasPushed
|
|
461
|
-
} from "./chunk-
|
|
474
|
+
} from "./chunk-U64SNFIZ.js";
|
|
475
|
+
import {
|
|
476
|
+
editorArgs,
|
|
477
|
+
openUrl
|
|
478
|
+
} from "./chunk-MXH7DV4Q.js";
|
|
462
479
|
import {
|
|
463
480
|
enrollProblem,
|
|
464
481
|
groupProblem,
|
|
465
482
|
suggestAlias
|
|
466
|
-
} from "./chunk-
|
|
467
|
-
import "./chunk-
|
|
483
|
+
} from "./chunk-GNIYYXQX.js";
|
|
484
|
+
import "./chunk-T5GJVUSL.js";
|
|
468
485
|
import {
|
|
469
486
|
defaultRunner
|
|
470
|
-
} from "./chunk-
|
|
487
|
+
} from "./chunk-XBWS77S2.js";
|
|
488
|
+
import "./chunk-4CXUVBOD.js";
|
|
471
489
|
import {
|
|
472
490
|
DECISION_MARKER,
|
|
473
491
|
DEFAULT_HOST,
|
|
@@ -479,8 +497,6 @@ import {
|
|
|
479
497
|
archiveRoot,
|
|
480
498
|
archiveSession,
|
|
481
499
|
archivedForMerge,
|
|
482
|
-
bestEffort,
|
|
483
|
-
bestEffortAsync,
|
|
484
500
|
buildDigest,
|
|
485
501
|
cleanSnoozeRequest,
|
|
486
502
|
cleanStageRef,
|
|
@@ -506,7 +522,6 @@ import {
|
|
|
506
522
|
listScopes,
|
|
507
523
|
loadHistory,
|
|
508
524
|
loadManifest,
|
|
509
|
-
logSwallowed,
|
|
510
525
|
markAgentStopped,
|
|
511
526
|
markScopeEnded,
|
|
512
527
|
markSeen,
|
|
@@ -551,7 +566,6 @@ import {
|
|
|
551
566
|
stopDev,
|
|
552
567
|
subscribeScope,
|
|
553
568
|
suppressScopeWatch,
|
|
554
|
-
swallow,
|
|
555
569
|
syncConversation,
|
|
556
570
|
syncConversations,
|
|
557
571
|
takeCheckpoint,
|
|
@@ -559,7 +573,7 @@ import {
|
|
|
559
573
|
updateCheckpoint,
|
|
560
574
|
whileRestoring,
|
|
561
575
|
writeArchiveRecord
|
|
562
|
-
} from "./chunk-
|
|
576
|
+
} from "./chunk-FNWPOM4B.js";
|
|
563
577
|
import {
|
|
564
578
|
dayKey
|
|
565
579
|
} from "./chunk-NEJVK5CF.js";
|
|
@@ -570,61 +584,53 @@ import {
|
|
|
570
584
|
sessionIdFor,
|
|
571
585
|
tx,
|
|
572
586
|
withDb
|
|
573
|
-
} from "./chunk-
|
|
587
|
+
} from "./chunk-ALBTIOP3.js";
|
|
574
588
|
import {
|
|
575
589
|
packageRoot
|
|
576
590
|
} from "./chunk-LNHSBM4L.js";
|
|
577
591
|
import {
|
|
578
592
|
AccountAdminError,
|
|
593
|
+
RETIRED_HOOK_OWNERS,
|
|
579
594
|
activityRoots,
|
|
580
|
-
agentAccountFolders,
|
|
581
595
|
agentFor,
|
|
582
596
|
agentOf,
|
|
583
597
|
agentWriteMs,
|
|
598
|
+
bestEffort,
|
|
599
|
+
bestEffortAsync,
|
|
584
600
|
checkedOutBranch,
|
|
585
601
|
gitDirs,
|
|
586
602
|
isOwnCheckout,
|
|
587
603
|
knownAgents,
|
|
588
604
|
lineTimeOf,
|
|
589
605
|
liveAgents,
|
|
606
|
+
logSwallowed,
|
|
590
607
|
ownsBranch,
|
|
591
608
|
projectList,
|
|
592
609
|
readJsonlSince,
|
|
593
610
|
refShaFromFiles,
|
|
611
|
+
swallow,
|
|
594
612
|
workingBranch
|
|
595
|
-
} from "./chunk-
|
|
613
|
+
} from "./chunk-CYUSOVO5.js";
|
|
614
|
+
import "./chunk-UCNYEHQY.js";
|
|
596
615
|
import {
|
|
597
616
|
VERSION
|
|
598
|
-
} from "./chunk-
|
|
617
|
+
} from "./chunk-OX33X3NH.js";
|
|
599
618
|
import {
|
|
600
619
|
resolveProjectTarget
|
|
601
|
-
} from "./chunk-
|
|
620
|
+
} from "./chunk-IPHADNF5.js";
|
|
602
621
|
import {
|
|
603
622
|
git
|
|
604
|
-
} from "./chunk-
|
|
623
|
+
} from "./chunk-JYWX2N5W.js";
|
|
605
624
|
import {
|
|
606
625
|
usageDir
|
|
607
|
-
} from "./chunk-
|
|
608
|
-
import "./chunk-BK73QU45.js";
|
|
626
|
+
} from "./chunk-DOYJR2HF.js";
|
|
609
627
|
import {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
createRestarter,
|
|
613
|
-
installedAtCache,
|
|
614
|
-
outdatedPtys,
|
|
615
|
-
restartNotesSummary
|
|
616
|
-
} from "./chunk-DZ6SLAIZ.js";
|
|
617
|
-
import "./chunk-TNJF7T33.js";
|
|
618
|
-
import {
|
|
619
|
-
accountLoginId,
|
|
620
|
-
accountOfLoginId
|
|
621
|
-
} from "./chunk-SJBEIYLK.js";
|
|
622
|
-
import "./chunk-AYHDJMMJ.js";
|
|
623
|
-
import "./chunk-Z3T5FWM6.js";
|
|
628
|
+
resolveWorkBinPath
|
|
629
|
+
} from "./chunk-HK6AZQ5Z.js";
|
|
624
630
|
import {
|
|
625
631
|
DEFAULT_ACCOUNT_NAME,
|
|
626
632
|
accountNameProblem
|
|
627
|
-
} from "./chunk-
|
|
633
|
+
} from "./chunk-TZLCBDJZ.js";
|
|
628
634
|
import {
|
|
629
635
|
DEFAULT_ACCOUNT,
|
|
630
636
|
DEFAULT_PROMPTS,
|
|
@@ -632,38 +638,81 @@ import {
|
|
|
632
638
|
getConfigPath,
|
|
633
639
|
isWorkday,
|
|
634
640
|
loadConfig
|
|
635
|
-
} from "./chunk-
|
|
641
|
+
} from "./chunk-BZGIKO6I.js";
|
|
642
|
+
import "./chunk-REPFZIPP.js";
|
|
636
643
|
import {
|
|
637
644
|
bootTime,
|
|
638
645
|
detachHere,
|
|
639
646
|
isPidAlive,
|
|
640
647
|
killTreeAsync,
|
|
641
648
|
recentProcessTable
|
|
642
|
-
} from "./chunk-
|
|
643
|
-
import {
|
|
644
|
-
shellEnv,
|
|
645
|
-
spawn_default
|
|
646
|
-
} from "./chunk-DW245WK4.js";
|
|
649
|
+
} from "./chunk-VHENFC2S.js";
|
|
647
650
|
import {
|
|
648
651
|
explainNotOnPath,
|
|
649
652
|
programPath,
|
|
653
|
+
shellEnv,
|
|
654
|
+
spawn_default,
|
|
650
655
|
takeSlowestSync
|
|
651
|
-
} from "./chunk-
|
|
656
|
+
} from "./chunk-QOSAWNOU.js";
|
|
652
657
|
import {
|
|
653
658
|
atomicWriteFile
|
|
654
659
|
} from "./chunk-D2J3AD6L.js";
|
|
655
660
|
import {
|
|
656
661
|
report
|
|
657
|
-
} from "./chunk-
|
|
662
|
+
} from "./chunk-5ZCCUM75.js";
|
|
663
|
+
import {
|
|
664
|
+
debugLog
|
|
665
|
+
} from "./chunk-IAKOKZYW.js";
|
|
658
666
|
import {
|
|
659
|
-
debugLog,
|
|
660
667
|
getConfigDir
|
|
661
|
-
} from "./chunk-
|
|
668
|
+
} from "./chunk-F2ECTTSY.js";
|
|
662
669
|
|
|
663
670
|
// src/commands/web.ts
|
|
664
|
-
import fs21 from "fs";
|
|
665
671
|
import chalk from "chalk";
|
|
666
672
|
|
|
673
|
+
// src/core/status/startup-question.ts
|
|
674
|
+
function createStartupQuestions(deps) {
|
|
675
|
+
const read = /* @__PURE__ */ new Map();
|
|
676
|
+
return {
|
|
677
|
+
/** The question a session's agent is stopped at, if any. */
|
|
678
|
+
for: (id) => read.get(id)?.found ?? null,
|
|
679
|
+
/**
|
|
680
|
+
* Look again. `changed`: some session's answer differs from before (its row needs a refresh); `asked`: the ones
|
|
681
|
+
* newly found waiting (to say so once). A screen that can't be read is tried again next time.
|
|
682
|
+
*/
|
|
683
|
+
async check(terminals) {
|
|
684
|
+
let changed = false;
|
|
685
|
+
const asked = [];
|
|
686
|
+
const here = new Set(terminals.map((t) => t.id));
|
|
687
|
+
for (const [id, was] of read)
|
|
688
|
+
if (!here.has(id)) {
|
|
689
|
+
read.delete(id);
|
|
690
|
+
if (was.found) changed = true;
|
|
691
|
+
}
|
|
692
|
+
for (const t of terminals) {
|
|
693
|
+
const was = read.get(t.id);
|
|
694
|
+
if (t.turnAt >= (Date.parse(t.startedAt) || 0)) {
|
|
695
|
+
if (was?.found) changed = true;
|
|
696
|
+
read.set(t.id, { key: "turn", found: null });
|
|
697
|
+
continue;
|
|
698
|
+
}
|
|
699
|
+
const key = `${t.startedAt}|${t.lastOutputAt ?? ""}`;
|
|
700
|
+
if (was?.key === key) continue;
|
|
701
|
+
const screen = await deps.screen(t.id).catch(() => null);
|
|
702
|
+
if (screen === null) continue;
|
|
703
|
+
const what = deps.question(t.id, screen);
|
|
704
|
+
const found = what ? { what, since: was?.found?.what === what ? was.found.since : (deps.now?.() ?? /* @__PURE__ */ new Date()).toISOString() } : null;
|
|
705
|
+
if ((was?.found?.what ?? null) !== (found?.what ?? null)) {
|
|
706
|
+
changed = true;
|
|
707
|
+
if (found) asked.push(t.id);
|
|
708
|
+
}
|
|
709
|
+
read.set(t.id, { key, found });
|
|
710
|
+
}
|
|
711
|
+
return { changed, asked };
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
}
|
|
715
|
+
|
|
667
716
|
// src/server/web-server.ts
|
|
668
717
|
import fs18 from "fs";
|
|
669
718
|
|
|
@@ -1350,6 +1399,10 @@ function withFocusNotes(main, passes, paths) {
|
|
|
1350
1399
|
}
|
|
1351
1400
|
return added ? JSON.stringify({ ...o, notes }) : main;
|
|
1352
1401
|
}
|
|
1402
|
+
var MAX_ALSO_CHARS = 2e3;
|
|
1403
|
+
function alsoPoints(also) {
|
|
1404
|
+
return (also ?? "").split(/\r?\n/).map((l) => l.trim()).filter(Boolean);
|
|
1405
|
+
}
|
|
1353
1406
|
function pickChanges(diff, repo) {
|
|
1354
1407
|
const changed = diff.repos.filter((r) => r.files.length > 0);
|
|
1355
1408
|
const picked = repo === void 0 ? changed : changed.filter((r) => r.name === repo);
|
|
@@ -1360,7 +1413,7 @@ function pickChanges(diff, repo) {
|
|
|
1360
1413
|
function localSignature(diff, repo) {
|
|
1361
1414
|
return diffSignature(pickChanges(diff, repo).all);
|
|
1362
1415
|
}
|
|
1363
|
-
async function prepareLocalReview(session, repo, deps) {
|
|
1416
|
+
async function prepareLocalReview(session, repo, deps, also) {
|
|
1364
1417
|
const diff = deps.diff(session);
|
|
1365
1418
|
if (repo !== void 0 && !diff.repos.some((r) => r.name === repo)) throw new Error(`${repo} is not one of this session's repos`);
|
|
1366
1419
|
const { repos, picked, together, all } = pickChanges(diff, repo);
|
|
@@ -1374,7 +1427,8 @@ async function prepareLocalReview(session, repo, deps) {
|
|
|
1374
1427
|
const meta = localMeta(session, picked.map((r) => r.name).join(REPOS_JOIN), diff.resolvedBase, diffSignature(all));
|
|
1375
1428
|
const kinds = kindsOf(files, extras, rules);
|
|
1376
1429
|
const agent = deps.agent;
|
|
1377
|
-
const
|
|
1430
|
+
const asked = also?.trim() ? also.trim() : void 0;
|
|
1431
|
+
const attention = attentionItems(alsoPoints(asked), deps.attention?.(session));
|
|
1378
1432
|
const told = attention.length ? { attention } : {};
|
|
1379
1433
|
const prompt = agent ? reviewPrompt(meta, files, kinds, told) : null;
|
|
1380
1434
|
const tree = prompt && agent && deps.inTree ? await deps.inTree(
|
|
@@ -1396,13 +1450,13 @@ async function prepareLocalReview(session, repo, deps) {
|
|
|
1396
1450
|
const plain = reviewPrompt(meta, files, kinds, { ...opts, ...told });
|
|
1397
1451
|
return plain ? agent(plain).catch(() => null) : null;
|
|
1398
1452
|
};
|
|
1399
|
-
const
|
|
1400
|
-
const focused = together && prompt ? picked.map((r) => r.name).filter((name) =>
|
|
1453
|
+
const askedPaths = promptPaths(kinds);
|
|
1454
|
+
const focused = together && prompt ? picked.map((r) => r.name).filter((name) => askedPaths.some((p) => p.startsWith(`${name}/`))) : [];
|
|
1401
1455
|
const [main, ...passes] = prompt && agent ? await Promise.all([ask(), ...focused.map((name) => ask({ focus: focusLines(name), first: (p) => p.startsWith(`${name}/`) }))]) : [void 0];
|
|
1402
1456
|
const answer = main === void 0 ? void 0 : withFocusNotes(
|
|
1403
1457
|
main,
|
|
1404
1458
|
focused.map((name, i) => ({ repo: name, answer: passes[i] ?? null })),
|
|
1405
|
-
|
|
1459
|
+
askedPaths
|
|
1406
1460
|
);
|
|
1407
1461
|
const review = buildReview(meta, files, extras, answer, {
|
|
1408
1462
|
...rules ? { rules } : {},
|
|
@@ -1412,7 +1466,7 @@ async function prepareLocalReview(session, repo, deps) {
|
|
|
1412
1466
|
ignored
|
|
1413
1467
|
});
|
|
1414
1468
|
const how = !prompt ? void 0 : inTree ? fellBack === 0 ? "read in its folder" : fellBack === passesAsked ? "read from the diff alone (the run in its folder gave no answer)" : `read in its folder (${fellBack} of ${passesAsked} passes from the diff alone: the run in its folder gave no answer)` : tree && "why" in tree ? `read from the diff alone (${tree.why})` : "read from the diff alone";
|
|
1415
|
-
return { review, repo: together ? null : picked[0].name, files, repos, ...how ? { how } : {} };
|
|
1469
|
+
return { review, repo: together ? null : picked[0].name, files, repos, ...how ? { how } : {}, ...asked ? { also: asked } : {} };
|
|
1416
1470
|
}
|
|
1417
1471
|
function localReviewLine(k) {
|
|
1418
1472
|
if (k.status === "running") return "Preparing its review\u2026";
|
|
@@ -1477,6 +1531,7 @@ function createLocalReviews(deps) {
|
|
|
1477
1531
|
at: k.at,
|
|
1478
1532
|
...k.prepared ? { review: k.prepared.review, sent: k.sent, dismissed: k.dismissed } : {},
|
|
1479
1533
|
...k.prepared?.how ? { how: k.prepared.how } : {},
|
|
1534
|
+
...k.prepared?.also ? { also: k.prepared.also } : {},
|
|
1480
1535
|
...k.error ? { error: k.error } : {}
|
|
1481
1536
|
};
|
|
1482
1537
|
const mark = (sessionId, change) => {
|
|
@@ -1490,7 +1545,7 @@ function createLocalReviews(deps) {
|
|
|
1490
1545
|
state: (sessionId) => wire(of(sessionId)),
|
|
1491
1546
|
/** The diff the kept review was made of; null when none is ready. */
|
|
1492
1547
|
files: (sessionId) => of(sessionId)?.prepared?.files ?? null,
|
|
1493
|
-
start(sessionId, session, repo) {
|
|
1548
|
+
start(sessionId, session, repo, also) {
|
|
1494
1549
|
const was = of(sessionId);
|
|
1495
1550
|
if (was?.status === "running") return wire(was);
|
|
1496
1551
|
const running = {
|
|
@@ -1505,7 +1560,7 @@ function createLocalReviews(deps) {
|
|
|
1505
1560
|
};
|
|
1506
1561
|
kept.set(sessionId, running);
|
|
1507
1562
|
lines.delete(sessionId);
|
|
1508
|
-
void deps.prepare(session, repo).then(
|
|
1563
|
+
void deps.prepare(session, repo, also).then(
|
|
1509
1564
|
// Another review: none of its notes is sent or dismissed yet.
|
|
1510
1565
|
// Finished: yours to look at (the tab marks it seen when it shows it).
|
|
1511
1566
|
(p) => ({ status: "ready", repo: p.repo, repos: p.repos, prepared: p, at: now(), sent: [], dismissed: [], seen: false }),
|
|
@@ -1620,7 +1675,10 @@ function mountSessionReviewRoutes(app, deps) {
|
|
|
1620
1675
|
if (session.archivedAt) return c.json({ error: "It is archived: restore it first." }, 409);
|
|
1621
1676
|
const body = await c.req.json().catch(() => ({}));
|
|
1622
1677
|
if (body.repo !== void 0 && typeof body.repo !== "string") return c.json({ error: "repo: string" }, 400);
|
|
1623
|
-
|
|
1678
|
+
if (body.also !== void 0 && typeof body.also !== "string") return c.json({ error: "also: string" }, 400);
|
|
1679
|
+
if (body.also && body.also.length > MAX_ALSO_CHARS)
|
|
1680
|
+
return c.json({ error: `also: at most ${MAX_ALSO_CHARS} characters (points for every review belong in Settings)` }, 400);
|
|
1681
|
+
const started = reviews.start(id, session, body.repo, body.also);
|
|
1624
1682
|
rowChanged();
|
|
1625
1683
|
return c.json(started);
|
|
1626
1684
|
});
|
|
@@ -1960,30 +2018,6 @@ function mountSessionShowRoutes(app, deps) {
|
|
|
1960
2018
|
return { drop: (sessionId) => void shown.close(sessionId) };
|
|
1961
2019
|
}
|
|
1962
2020
|
|
|
1963
|
-
// src/core/review/local-review-store.ts
|
|
1964
|
-
var strings2 = (v) => Array.isArray(v) && v.every((x) => typeof x === "string");
|
|
1965
|
-
function isStoredLocalReview(v) {
|
|
1966
|
-
const o = v;
|
|
1967
|
-
if (!o || typeof o !== "object") return false;
|
|
1968
|
-
const p = o.prepared;
|
|
1969
|
-
return (o.repo === null || typeof o.repo === "string") && strings2(o.repos) && typeof o.at === "string" && strings2(o.sent) && strings2(o.dismissed) && !!p && typeof p === "object" && Array.isArray(p.files) && strings2(p.repos) && !!p.review && typeof p.review === "object" && typeof p.review.headSha === "string" && Array.isArray(p.review.drafts) && Array.isArray(p.review.stories) && Array.isArray(p.review.files);
|
|
1970
|
-
}
|
|
1971
|
-
function readLocalReview(sessionId) {
|
|
1972
|
-
const row = withDb(
|
|
1973
|
-
(d) => d.prepare("SELECT data FROM session_reviews WHERE session_id = ?").get(sessionId)
|
|
1974
|
-
);
|
|
1975
|
-
const v = row ? json.parse(row.data) : null;
|
|
1976
|
-
return isStoredLocalReview(v) ? v : null;
|
|
1977
|
-
}
|
|
1978
|
-
function saveLocalReview(sessionId, review) {
|
|
1979
|
-
withDb(
|
|
1980
|
-
(d) => d.prepare("INSERT OR REPLACE INTO session_reviews (session_id, data) VALUES (?, ?)").run(sessionId, JSON.stringify(review))
|
|
1981
|
-
);
|
|
1982
|
-
}
|
|
1983
|
-
function dropLocalReview(sessionId) {
|
|
1984
|
-
withDb((d) => d.prepare("DELETE FROM session_reviews WHERE session_id = ?").run(sessionId));
|
|
1985
|
-
}
|
|
1986
|
-
|
|
1987
2021
|
// src/core/review/local-review-tree.ts
|
|
1988
2022
|
import path4 from "path";
|
|
1989
2023
|
var norm2 = (p) => path4.resolve(p).replace(/\\/g, "/").replace(/\/+$/, "");
|
|
@@ -3337,9 +3371,9 @@ var SETTINGS = [
|
|
|
3337
3371
|
"usage.statusLine",
|
|
3338
3372
|
"Archive & usage",
|
|
3339
3373
|
"Read plan limits from Claude's status line",
|
|
3340
|
-
"The Usage meter's source. Off
|
|
3374
|
+
"The Usage meter's source: work's line on the Claudes work starts. Off: they show your own. Your own settings are never changed.",
|
|
3341
3375
|
true,
|
|
3342
|
-
"
|
|
3376
|
+
"when each Claude next starts"
|
|
3343
3377
|
)
|
|
3344
3378
|
];
|
|
3345
3379
|
var settingAt = (path23) => SETTINGS.find((f) => f.path === path23);
|
|
@@ -6426,7 +6460,7 @@ function mountRailRoutes(app, opts) {
|
|
|
6426
6460
|
const id = c.req.param("id");
|
|
6427
6461
|
if (!findSession2(id)) return c.json({ error: "unknown session" }, 404);
|
|
6428
6462
|
const patch = cleanPlacePatch(await c.req.json().catch(() => null));
|
|
6429
|
-
if (!patch) return c.json({ error:
|
|
6463
|
+
if (!patch) return c.json({ error: PLACE_PATCH_EXPECTED }, 400);
|
|
6430
6464
|
const r = placeSession(id, patch);
|
|
6431
6465
|
if (!r.ok) return c.json({ error: r.error }, 409);
|
|
6432
6466
|
changed();
|
|
@@ -7378,7 +7412,10 @@ function mountReviewRoutes(app, deps) {
|
|
|
7378
7412
|
const repo = c.req.param("repo");
|
|
7379
7413
|
const n = num3(c.req.param("number"));
|
|
7380
7414
|
if (n === null) return c.json({ error: "not a PR number" }, 400);
|
|
7381
|
-
const
|
|
7415
|
+
const body = await c.req.json().catch(() => ({}));
|
|
7416
|
+
if (body.also !== void 0 && typeof body.also !== "string") return c.json({ error: "also: string" }, 400);
|
|
7417
|
+
if (body.also && body.also.length > MAX_ALSO_CHARS) return c.json({ error: `also: at most ${MAX_ALSO_CHARS} characters` }, 400);
|
|
7418
|
+
const r = await deps.runNow(repo, n, body.also?.trim() || void 0);
|
|
7382
7419
|
changed(repo, n);
|
|
7383
7420
|
return r.ok ? c.json(r.review) : c.json({ error: r.error }, 409);
|
|
7384
7421
|
});
|
|
@@ -7761,10 +7798,10 @@ function createReviewQueue(deps) {
|
|
|
7761
7798
|
return { discussion: { ...got.discussion, ...when ? { updatedAt: when } : {}, at: now().toISOString() } };
|
|
7762
7799
|
}
|
|
7763
7800
|
const setStatus = (meta, status, why, opts = {}) => deps.store.upsert(meta.repo, meta.number, (was) => withStatus(was, meta, status, why, now(), opts));
|
|
7764
|
-
async function aiStep(project, at, prepared, rules, discussion) {
|
|
7801
|
+
async function aiStep(project, at, prepared, rules, discussion, also) {
|
|
7765
7802
|
if (!deps.agent) return { answer: void 0 };
|
|
7766
7803
|
const kinds = kindsOf(prepared.files, prepared.extras, rules);
|
|
7767
|
-
const attention = deps.attention?.(project.alias)
|
|
7804
|
+
const attention = attentionItems(alsoPoints(also), deps.attention?.(project.alias));
|
|
7768
7805
|
const said = { ...discussion ? { discussion } : {}, ...attention.length ? { attention } : {} };
|
|
7769
7806
|
const prompt = reviewPrompt(at, prepared.files, kinds, said);
|
|
7770
7807
|
if (!prompt) return { answer: void 0 };
|
|
@@ -7776,14 +7813,14 @@ function createReviewQueue(deps) {
|
|
|
7776
7813
|
reviewPrompt(at, prepared.files, kinds, { checkout: lines, ...said }) ?? prompt
|
|
7777
7814
|
).catch((err) => ({ answer: null, why: err.message }));
|
|
7778
7815
|
if (inTree?.answer)
|
|
7779
|
-
return { answer: inTree.answer, how: `read in a temporary checkout of the PR${inTree.why ? ` (${inTree.why})` : ""}` };
|
|
7816
|
+
return { answer: inTree.answer, attention, how: `read in a temporary checkout of the PR${inTree.why ? ` (${inTree.why})` : ""}` };
|
|
7780
7817
|
if (inTree?.skipped) fellBack = inTree.why ?? "the checkout run was skipped";
|
|
7781
7818
|
else if (inTree) fellBack = `the checkout run gave no answer${inTree.why ? `: ${inTree.why}` : ""}`;
|
|
7782
7819
|
}
|
|
7783
7820
|
const answer = await deps.agent(prompt).catch(() => null);
|
|
7784
|
-
return { answer, how: `read from the diff alone (${fellBack})` };
|
|
7821
|
+
return { answer, attention, how: `read from the diff alone (${fellBack})` };
|
|
7785
7822
|
}
|
|
7786
|
-
async function prepareOne(project, meta, size, auto, note) {
|
|
7823
|
+
async function prepareOne(project, meta, size, auto, note, also) {
|
|
7787
7824
|
const k = key(meta.repo, meta.number);
|
|
7788
7825
|
active.add(k);
|
|
7789
7826
|
try {
|
|
@@ -7819,13 +7856,15 @@ function createReviewQueue(deps) {
|
|
|
7819
7856
|
`${meta.repo} #${meta.number}: couldn't read its discussion (${read.why}); ${discussion ? "the last read stays" : "none shown"}`,
|
|
7820
7857
|
"warn"
|
|
7821
7858
|
);
|
|
7822
|
-
const { answer, how } = await aiStep(project, at, prep, rules, discussion);
|
|
7859
|
+
const { answer, how, attention } = await aiStep(project, at, prep, rules, discussion, also);
|
|
7823
7860
|
const fresh = {
|
|
7824
7861
|
...buildReview(at, prep.files, prep.extras, answer, {
|
|
7825
7862
|
rules,
|
|
7826
7863
|
ignored: split.ignored,
|
|
7827
7864
|
now: now(),
|
|
7828
|
-
notAskedWhy: deps.agent ? void 0 : "no agent for the AI step: stories are by folder"
|
|
7865
|
+
notAskedWhy: deps.agent ? void 0 : "no agent for the AI step: stories are by folder",
|
|
7866
|
+
// What it was asked to pay attention to: said on the review (only when the AI step ran with it).
|
|
7867
|
+
...attention?.length ? { attention } : {}
|
|
7829
7868
|
}),
|
|
7830
7869
|
listedHead: meta.headSha,
|
|
7831
7870
|
mergeBase: prepared.mergeBase,
|
|
@@ -7947,7 +7986,7 @@ function createReviewQueue(deps) {
|
|
|
7947
7986
|
});
|
|
7948
7987
|
return sweeping;
|
|
7949
7988
|
},
|
|
7950
|
-
async runNow(repo, number) {
|
|
7989
|
+
async runNow(repo, number, also) {
|
|
7951
7990
|
const project = deps.projects().find((p) => p.alias === repo);
|
|
7952
7991
|
if (!project) return { ok: false, error: `${repo} isn't one of your repos` };
|
|
7953
7992
|
const host = deps.hostOf(project.path);
|
|
@@ -7957,7 +7996,7 @@ function createReviewQueue(deps) {
|
|
|
7957
7996
|
if (!pr) return { ok: false, error: `#${number} isn't an open pull request of ${repo}` };
|
|
7958
7997
|
const run2 = deps.activity?.start("reviews", `Preparing the review of ${repo} #${number}`);
|
|
7959
7998
|
const note = (text, level = "info") => run2?.note(text, { level });
|
|
7960
|
-
const r = await oneAtATime2(() => prepareOne(project, metaOf(repo, host, pr), pr, false, note));
|
|
7999
|
+
const r = await oneAtATime2(() => prepareOne(project, metaOf(repo, host, pr), pr, false, note, also));
|
|
7961
8000
|
if (r.ok) run2?.done(`prepared${r.how ? `; ${r.how}` : ""}`);
|
|
7962
8001
|
else run2?.fail(r.error);
|
|
7963
8002
|
return r.ok ? { ok: true, review: r.review } : { ok: false, error: r.error };
|
|
@@ -9200,6 +9239,11 @@ function sleepChecks() {
|
|
|
9200
9239
|
|
|
9201
9240
|
// src/server/web-server.ts
|
|
9202
9241
|
var LEFTOVERS_EVERY_MS = 60 * 6e4;
|
|
9242
|
+
var STARTUP_QUESTION_EVERY_MS = 5e3;
|
|
9243
|
+
var startupQuestions = createStartupQuestions({
|
|
9244
|
+
screen: (id) => readPtyScreen(id),
|
|
9245
|
+
question: (id, screen) => agentOf(findSession2(id)).input.startupQuestion?.(screen) ?? null
|
|
9246
|
+
});
|
|
9203
9247
|
var localReviewRow = () => null;
|
|
9204
9248
|
function computeSessionDiff(s, base) {
|
|
9205
9249
|
const resolved = s.paths.map((p) => resolveRepoDiff(p, base, s.baseBranches?.[p] ?? s.baseBranch));
|
|
@@ -9356,6 +9400,7 @@ async function startWebServer(opts = {}) {
|
|
|
9356
9400
|
},
|
|
9357
9401
|
hostedLive: (id) => peekPty(id),
|
|
9358
9402
|
outputStatusFor: (id) => outputStatus(id),
|
|
9403
|
+
startupQuestionFor: (id) => startupQuestions.for(id),
|
|
9359
9404
|
shadowed: (id) => shadow.has(id),
|
|
9360
9405
|
reviewThreadsFor: (id) => reviewThreadsOf(prWatch.state(id)),
|
|
9361
9406
|
prStageFor: (id) => prStageWire(prWatch.state(id), (k) => stageSeen(id).has(k)),
|
|
@@ -9560,6 +9605,26 @@ async function startWebServer(opts = {}) {
|
|
|
9560
9605
|
};
|
|
9561
9606
|
sleepSchedule?.next(Date.now() + SLEEP_EVERY_MS);
|
|
9562
9607
|
const sleepTimer = !jobs ? null : setInterval(() => void sleepIdle(), SLEEP_EVERY_MS);
|
|
9608
|
+
let lookingForQuestions = false;
|
|
9609
|
+
const lookForStartupQuestions = async () => {
|
|
9610
|
+
if (lookingForQuestions) return;
|
|
9611
|
+
lookingForQuestions = true;
|
|
9612
|
+
const { changed, asked } = await startupQuestions.check(ptyTerminals().map((t) => ({ ...t, turnAt: Date.parse(readStatus(t.id)?.updatedAt ?? "") || 0 }))).finally(() => lookingForQuestions = false);
|
|
9613
|
+
if (changed) broadcast("sessions-changed", { ts: Date.now() });
|
|
9614
|
+
for (const id of asked) {
|
|
9615
|
+
const session = findSession2(id);
|
|
9616
|
+
const what = startupQuestions.for(id)?.what;
|
|
9617
|
+
if (session && what)
|
|
9618
|
+
broadcast("notify", {
|
|
9619
|
+
sessionId: id,
|
|
9620
|
+
kind: "needs_input",
|
|
9621
|
+
title: `${session.title || session.branch}: needs you`,
|
|
9622
|
+
body: what
|
|
9623
|
+
});
|
|
9624
|
+
}
|
|
9625
|
+
};
|
|
9626
|
+
const startupTimer = !jobs ? null : setInterval(() => void lookForStartupQuestions().catch(() => void 0), STARTUP_QUESTION_EVERY_MS);
|
|
9627
|
+
startupTimer?.unref?.();
|
|
9563
9628
|
const timeDeps = defaultTimeDeps();
|
|
9564
9629
|
const timeSchedule = !jobs ? null : activity.schedule("time", "Time: today and missing days", TIME_EVERY_MS);
|
|
9565
9630
|
const timeKeeper = !jobs ? null : createTimeKeeper(timeDeps, { activity, changed: () => broadcast("time-changed", {}) });
|
|
@@ -9583,7 +9648,7 @@ async function startWebServer(opts = {}) {
|
|
|
9583
9648
|
});
|
|
9584
9649
|
mountReviewRoutes(app, {
|
|
9585
9650
|
...reviewIo,
|
|
9586
|
-
runNow: (repo, n) => reviewQueue.runNow(repo, n),
|
|
9651
|
+
runNow: (repo, n, also) => reviewQueue.runNow(repo, n, also),
|
|
9587
9652
|
refreshDiscussion: (repo, n) => reviewQueue.refreshDiscussion(repo, n),
|
|
9588
9653
|
broadcast,
|
|
9589
9654
|
// Fix it myself: a session on the PR's branch, made as New worktree makes one, or the live one told by a note.
|
|
@@ -9863,19 +9928,24 @@ async function startWebServer(opts = {}) {
|
|
|
9863
9928
|
mountNoteRoutes(app, { broadcast });
|
|
9864
9929
|
mountSessionShowRoutes(app, { broadcast });
|
|
9865
9930
|
localReviewRow = mountSessionReviewRoutes(app, {
|
|
9866
|
-
prepare: (session, repo) => prepareLocalReview(
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9931
|
+
prepare: (session, repo, also) => prepareLocalReview(
|
|
9932
|
+
session,
|
|
9933
|
+
repo,
|
|
9934
|
+
{
|
|
9935
|
+
diff: (s) => computeSessionDiff(s, "branch"),
|
|
9936
|
+
agent: (prompt) => runInternal(prompt, 24e4, { lane: "localReviews" }),
|
|
9937
|
+
// Read-only in the session's own folder when the agent can: it then answers what the diff leaves open.
|
|
9938
|
+
inTree: (s, names) => localTreeRun(s.paths, names, {
|
|
9939
|
+
readOnly: internalReadOnly,
|
|
9940
|
+
run: (prompt, cwd, deny) => runInternalReadOnly(prompt, cwd, LOCAL_TREE_TIMEOUT_MS, { lane: "localReviews", deny }),
|
|
9941
|
+
exists: (dir) => fs18.existsSync(dir)
|
|
9942
|
+
}),
|
|
9943
|
+
rules: () => rulesWith(loadConfig()?.reviews?.rules),
|
|
9944
|
+
// Its project's and each of its repos' own points, with the ones for every review.
|
|
9945
|
+
attention: (s) => reviewFocus(loadConfig(), [s.target, ...s.repos ?? []])
|
|
9946
|
+
},
|
|
9947
|
+
also
|
|
9948
|
+
),
|
|
9879
9949
|
signature: (s, repo) => localSignature(computeSessionDiff(s, "branch"), repo ?? void 0),
|
|
9880
9950
|
store: { read: readLocalReview, save: saveLocalReview, drop: dropLocalReview },
|
|
9881
9951
|
tell: noteThroughComments(app),
|
|
@@ -9975,6 +10045,7 @@ async function startWebServer(opts = {}) {
|
|
|
9975
10045
|
if (decayTick) clearInterval(decayTick);
|
|
9976
10046
|
stopPrWatch?.();
|
|
9977
10047
|
if (sleepTimer) clearInterval(sleepTimer);
|
|
10048
|
+
if (startupTimer) clearInterval(startupTimer);
|
|
9978
10049
|
if (conversationsTimer) clearInterval(conversationsTimer);
|
|
9979
10050
|
if (conversationsFirst) clearTimeout(conversationsFirst);
|
|
9980
10051
|
if (updatesFirst) clearTimeout(updatesFirst);
|
|
@@ -10006,37 +10077,44 @@ async function startWebServer(opts = {}) {
|
|
|
10006
10077
|
};
|
|
10007
10078
|
}
|
|
10008
10079
|
|
|
10009
|
-
// src/core/agents/
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10080
|
+
// src/core/agents/hook-migration.ts
|
|
10081
|
+
function agentsOnOldHooks(i) {
|
|
10082
|
+
return i.running.filter((a) => {
|
|
10083
|
+
if (!i.inSession(a.cwd)) return false;
|
|
10084
|
+
if (a.startedAt !== null && a.startedAt >= i.since && !i.fromHost?.(a.pid)) return false;
|
|
10085
|
+
const cmd = i.commandOf(a.pid);
|
|
10086
|
+
return !(cmd && i.startedWithSessionHooks(cmd));
|
|
10087
|
+
});
|
|
10088
|
+
}
|
|
10089
|
+
async function settleAgentHooks(io) {
|
|
10090
|
+
const out = [];
|
|
10091
|
+
let lines = null;
|
|
10092
|
+
for (const agent of (io.agents ?? knownAgents)()) {
|
|
10093
|
+
if (!agent.events) continue;
|
|
10094
|
+
const startedWith = agent.launch.startedWithSessionHooks;
|
|
10095
|
+
const running = agent.live?.running() ?? [];
|
|
10096
|
+
let old = [];
|
|
10097
|
+
if (startedWith && running.length > 0) {
|
|
10098
|
+
lines ??= await io.commandLines().catch(() => /* @__PURE__ */ new Map());
|
|
10099
|
+
const known = lines;
|
|
10100
|
+
old = agentsOnOldHooks({
|
|
10101
|
+
running,
|
|
10102
|
+
commandOf: (pid) => known.get(pid),
|
|
10103
|
+
inSession: io.inSession,
|
|
10104
|
+
since: io.since,
|
|
10105
|
+
fromHost: (pid) => io.hostPids?.().has(pid) ?? false,
|
|
10106
|
+
startedWithSessionHooks: startedWith
|
|
10107
|
+
});
|
|
10022
10108
|
}
|
|
10023
|
-
if (
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
await
|
|
10028
|
-
|
|
10029
|
-
} catch (err) {
|
|
10030
|
-
deps.onError?.(err);
|
|
10031
|
-
return false;
|
|
10032
|
-
} finally {
|
|
10033
|
-
running = false;
|
|
10109
|
+
if (old.length > 0) {
|
|
10110
|
+
await agent.events.bridge();
|
|
10111
|
+
out.push({ agent: agent.id, done: "bridged", waitingOn: old.length });
|
|
10112
|
+
} else {
|
|
10113
|
+
await agent.events.removeInstalled(RETIRED_HOOK_OWNERS);
|
|
10114
|
+
out.push({ agent: agent.id, done: "removed" });
|
|
10034
10115
|
}
|
|
10035
|
-
}
|
|
10036
|
-
|
|
10037
|
-
const timer = every > 0 ? setInterval(() => void check(), every) : null;
|
|
10038
|
-
timer?.unref?.();
|
|
10039
|
-
return { check, stop: () => timer && clearInterval(timer) };
|
|
10116
|
+
}
|
|
10117
|
+
return out;
|
|
10040
10118
|
}
|
|
10041
10119
|
|
|
10042
10120
|
// src/core/platform/autostart.ts
|
|
@@ -13426,7 +13504,7 @@ async function startDemoServer(opts) {
|
|
|
13426
13504
|
const id = c.req.param("id");
|
|
13427
13505
|
if (!scenario.list().some((x) => x.id === id)) return notFound(c);
|
|
13428
13506
|
const patch = cleanPlacePatch(await json2(c));
|
|
13429
|
-
if (!patch) return c.json({ error:
|
|
13507
|
+
if (!patch) return c.json({ error: PLACE_PATCH_EXPECTED }, 400);
|
|
13430
13508
|
if (patch.section && !rail.sections.some((s) => s.id === patch.section)) return c.json({ error: "no such section" }, 409);
|
|
13431
13509
|
const places = { ...rail.places };
|
|
13432
13510
|
const next = applyPlacePatch(places[id], patch);
|
|
@@ -14023,45 +14101,37 @@ function stopOnSignals(proc, stop) {
|
|
|
14023
14101
|
}
|
|
14024
14102
|
|
|
14025
14103
|
// src/commands/web.ts
|
|
14026
|
-
var
|
|
14027
|
-
|
|
14028
|
-
|
|
14029
|
-
|
|
14030
|
-
|
|
14031
|
-
|
|
14032
|
-
|
|
14033
|
-
|
|
14034
|
-
|
|
14035
|
-
|
|
14036
|
-
|
|
14037
|
-
|
|
14038
|
-
|
|
14039
|
-
|
|
14040
|
-
|
|
14041
|
-
|
|
14042
|
-
|
|
14043
|
-
|
|
14044
|
-
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14048
|
-
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
apply: o.apply ?? (() => reinstallAgentSetup(lean)),
|
|
14058
|
-
onError: swallow("set up a changed Claude account"),
|
|
14059
|
-
...o.everyMs !== void 0 ? { everyMs: o.everyMs } : {}
|
|
14060
|
-
});
|
|
14061
|
-
}
|
|
14062
|
-
function removeAgentHooksSync(lean) {
|
|
14063
|
-
const ours = (lean ? LEAN_HOOKS : FULL_HOOKS).map(({ owner, edge }) => ({ owner, edge }));
|
|
14064
|
-
for (const agent of hookedAgents()) bestEffort(`remove ${agent.name} hooks`, () => agent.events.removeSync([...ours, ...LEGACY_HOOKS]));
|
|
14104
|
+
var HOOK_MIGRATION_EVERY_MS = 2 * 6e4;
|
|
14105
|
+
async function removeRetiredAgentSetup(io = {}) {
|
|
14106
|
+
const since = io.since ?? Date.now();
|
|
14107
|
+
const migrationIo = {
|
|
14108
|
+
since,
|
|
14109
|
+
commandLines: io.commandLines ?? (async () => new Map((await listProcesses()).map((p) => [p.pid, p.command]))),
|
|
14110
|
+
inSession: io.inSession ?? ((cwd) => findSessionForCwd(cwd) !== null),
|
|
14111
|
+
hostPids: io.hostPids ?? ptyPids,
|
|
14112
|
+
...io.agents ? { agents: io.agents } : {}
|
|
14113
|
+
};
|
|
14114
|
+
const step = async () => {
|
|
14115
|
+
try {
|
|
14116
|
+
const done = await settleAgentHooks(migrationIo);
|
|
14117
|
+
for (const d of done)
|
|
14118
|
+
if (d.done === "bridged")
|
|
14119
|
+
debugLog("INFO", `[hooks] ${d.agent}: kept in its settings for ${d.waitingOn} session(s) started before the update`);
|
|
14120
|
+
return done;
|
|
14121
|
+
} catch (err) {
|
|
14122
|
+
logSwallowed("move the agents' hooks out of their settings", err);
|
|
14123
|
+
return [];
|
|
14124
|
+
}
|
|
14125
|
+
};
|
|
14126
|
+
await setupAgentUsage(knownAgents(), loadConfig(), false).catch(swallow("give back the agents' status lines"));
|
|
14127
|
+
const first = await step();
|
|
14128
|
+
let last = first;
|
|
14129
|
+
const timer = setInterval(() => {
|
|
14130
|
+
if (last.length > 0 && last.every((d) => d.done === "removed")) return clearInterval(timer);
|
|
14131
|
+
void step().then((d) => last = d);
|
|
14132
|
+
}, io.everyMs ?? HOOK_MIGRATION_EVERY_MS);
|
|
14133
|
+
timer.unref?.();
|
|
14134
|
+
return { stop: () => clearInterval(timer), first };
|
|
14065
14135
|
}
|
|
14066
14136
|
function info(message) {
|
|
14067
14137
|
process.stderr.write(message + "\n");
|
|
@@ -14216,16 +14286,13 @@ var webCommand = {
|
|
|
14216
14286
|
(err) => info(chalk.yellow(`Could not restore sessions: ${err.message}`))
|
|
14217
14287
|
);
|
|
14218
14288
|
}
|
|
14219
|
-
|
|
14220
|
-
await setupAgentUsage(knownAgents(), loadConfig(), lean).catch(swallow("set up the usage readings"));
|
|
14221
|
-
const accountSync = startAccountSetupSync(lean);
|
|
14289
|
+
const hookMigration = await removeRetiredAgentSetup();
|
|
14222
14290
|
shutdown = (how) => {
|
|
14223
14291
|
life.end(how);
|
|
14224
|
-
|
|
14292
|
+
hookMigration.stop();
|
|
14225
14293
|
info(chalk.gray(`
|
|
14226
14294
|
Stopping work web (${how}).`));
|
|
14227
14295
|
clearWebDiscovery(process.pid);
|
|
14228
|
-
removeAgentHooksSync(lean);
|
|
14229
14296
|
void handle.stop().finally(() => process.exit(0));
|
|
14230
14297
|
};
|
|
14231
14298
|
stopOnSignals(process, (how) => shutdown(how));
|
|
@@ -14347,14 +14414,8 @@ async function runDemo(open) {
|
|
|
14347
14414
|
});
|
|
14348
14415
|
}
|
|
14349
14416
|
export {
|
|
14350
|
-
|
|
14351
|
-
LEAN_HOOKS,
|
|
14352
|
-
LEGACY_HOOKS,
|
|
14353
|
-
installAgentHooks,
|
|
14354
|
-
reinstallAgentSetup,
|
|
14355
|
-
removeAgentHooksSync,
|
|
14356
|
-
startAccountSetupSync,
|
|
14417
|
+
removeRetiredAgentSetup,
|
|
14357
14418
|
stopExisting,
|
|
14358
14419
|
webCommand
|
|
14359
14420
|
};
|
|
14360
|
-
//# sourceMappingURL=web-
|
|
14421
|
+
//# sourceMappingURL=web-P7TKPZFB.js.map
|