@moberg_hr/work-tree 2.14.0 → 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-TNPXQ3BO.js → account-X42JQCYT.js} +31 -30
- package/dist/account-X42JQCYT.js.map +1 -0
- package/dist/{add-repo-YJQ65OV4.js → add-repo-UZHIG6LN.js} +30 -29
- package/dist/{add-repo-YJQ65OV4.js.map → add-repo-UZHIG6LN.js.map} +1 -1
- package/dist/{answer-BGZIWFVB.js → answer-NDX2DNXK.js} +19 -18
- package/dist/{answer-BGZIWFVB.js.map → answer-NDX2DNXK.js.map} +1 -1
- package/dist/{attach-E2OJC7ST.js → attach-ETPEGXYM.js} +26 -26
- package/dist/bin.js +9 -7
- package/dist/bin.js.map +1 -1
- package/dist/{block-44POA6KR.js → block-5HJQWQNX.js} +24 -23
- package/dist/{block-44POA6KR.js.map → block-5HJQWQNX.js.map} +1 -1
- package/dist/{broadcast-E7357IWA.js → broadcast-TMCWRTIY.js} +16 -15
- package/dist/{broadcast-E7357IWA.js.map → broadcast-TMCWRTIY.js.map} +1 -1
- package/dist/{catchup-KAB23EFN.js → catchup-BBJ43GWY.js} +22 -21
- package/dist/{catchup-KAB23EFN.js.map → catchup-BBJ43GWY.js.map} +1 -1
- package/dist/{chunk-PBJVVXG7.js → chunk-2IDWQ5NO.js} +7 -7
- package/dist/{chunk-GWANOCQ4.js → chunk-2PAHTJ3B.js} +7 -7
- package/dist/{chunk-G6K5U3KW.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-BHYTCA55.js → chunk-4WTY3SFZ.js} +7 -7
- package/dist/{chunk-ZH5M36JU.js → chunk-4ZP6NN2X.js} +18 -16
- package/dist/{chunk-ZH5M36JU.js.map → chunk-4ZP6NN2X.js.map} +1 -1
- package/dist/{chunk-LEDE3P4Q.js → chunk-5LAFHPNB.js} +8 -8
- package/dist/{chunk-AU27USPZ.js → chunk-5ZCCUM75.js} +2 -2
- package/dist/{chunk-CF6Y2RZJ.js → chunk-6SYQQXPQ.js} +32 -22
- package/dist/chunk-6SYQQXPQ.js.map +1 -0
- package/dist/{chunk-VQTPBS63.js → chunk-7QDZGVIT.js} +4 -4
- package/dist/{chunk-BB44TXV4.js → chunk-7S3NPGVM.js} +6 -6
- package/dist/{chunk-XWFL5U4X.js → chunk-AHGMXBY3.js} +4 -3
- package/dist/{chunk-XWFL5U4X.js.map → chunk-AHGMXBY3.js.map} +1 -1
- package/dist/{chunk-RRNIJ7YO.js → chunk-ALBTIOP3.js} +3 -3
- package/dist/{chunk-D4ZDTXFV.js → chunk-BRUYXYO2.js} +9 -6
- package/dist/chunk-BRUYXYO2.js.map +1 -0
- package/dist/{chunk-WOD7XSNC.js → chunk-BWUN33QN.js} +11 -9
- package/dist/{chunk-WOD7XSNC.js.map → chunk-BWUN33QN.js.map} +1 -1
- package/dist/{chunk-FLY3VR6B.js → chunk-BZGIKO6I.js} +2 -2
- package/dist/{chunk-M3RDUGQV.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-4D52OAAP.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-M5YM3CQY.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-POHAQY4D.js → chunk-EQD3YBGA.js} +12 -12
- package/dist/{chunk-L5OZXDTB.js → chunk-EQFDUC6F.js} +3 -3
- package/dist/chunk-F2ECTTSY.js +22 -0
- package/dist/chunk-F2ECTTSY.js.map +1 -0
- package/dist/{chunk-DBWVWWUO.js → chunk-FIEBI3UB.js} +3 -3
- package/dist/{chunk-OGGGOFCZ.js → chunk-FNWPOM4B.js} +14 -42
- package/dist/chunk-FNWPOM4B.js.map +1 -0
- package/dist/{chunk-7VAKNNLB.js → chunk-GGE55DO3.js} +17 -17
- package/dist/{chunk-AGRUEZQX.js → chunk-GNIYYXQX.js} +2 -2
- package/dist/{chunk-PR3BA5BP.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-6NTMQ7XI.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-LK2ZVCKH.js → chunk-K2OOUNXH.js} +4 -4
- package/dist/{chunk-V3MRBAZU.js → chunk-KCYYIUUQ.js} +2 -2
- package/dist/chunk-KL7RY6UG.js +36 -0
- package/dist/chunk-KL7RY6UG.js.map +1 -0
- package/dist/{chunk-B4G5QHTU.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-Q5WOXF2D.js → chunk-MVME4LH7.js} +8 -8
- package/dist/{chunk-S43GVNRB.js → chunk-MXH7DV4Q.js} +8 -8
- package/dist/{chunk-IJEAHNJZ.js → chunk-MZY557LZ.js} +9 -9
- package/dist/{chunk-UY77MGXI.js → chunk-O32OINY3.js} +2 -2
- package/dist/{chunk-TJAF3K5D.js → chunk-OL7S2KFH.js} +60 -59
- package/dist/chunk-OL7S2KFH.js.map +1 -0
- package/dist/chunk-OX33X3NH.js +9 -0
- package/dist/{chunk-OMY7MGNN.js → chunk-PSFOA7P6.js} +9 -9
- package/dist/{chunk-UH72CZAX.js → chunk-PZ7WTBSI.js} +2 -2
- package/dist/{chunk-XGOSOA7U.js → chunk-QHA4VF4B.js} +3 -3
- package/dist/{chunk-BD26XB2E.js → chunk-QMHFXIMX.js} +18 -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-XGZB2DOA.js → chunk-QP7VLMFJ.js} +5 -5
- package/dist/{chunk-4YJQZE7D.js → chunk-R5DHVUA2.js} +5 -3
- package/dist/{chunk-4YJQZE7D.js.map → chunk-R5DHVUA2.js.map} +1 -1
- package/dist/{chunk-W7KGS2OH.js → chunk-R5HG665I.js} +6 -6
- package/dist/{chunk-RUIBZ6DI.js → chunk-R6KQDWHC.js} +3 -3
- package/dist/{chunk-CO6BX4RN.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-ZKGCL4HY.js → chunk-RXORNKSJ.js} +8 -8
- package/dist/{chunk-WI5WFJJW.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-LQ4BEHS4.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-B7BNMPY3.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-ESZ52W6E.js → chunk-WNWSO4VO.js} +8 -8
- package/dist/{chunk-TYZSHKFP.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-7JEMR4RU.js → chunk-Z3OHGPIN.js} +7 -7
- package/dist/{chunk-ESZXUBYI.js → chunk-ZNGR2CB6.js} +4 -4
- package/dist/{cleanup-5QEBRJHT.js → cleanup-BD44PDRE.js} +48 -47
- package/dist/{cleanup-5QEBRJHT.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-4QLJCSBD.js → config-65HXBCMW.js} +21 -20
- package/dist/{config-4QLJCSBD.js.map → config-65HXBCMW.js.map} +1 -1
- package/dist/{diff-TXIFHZ4Q.js → diff-CJNSUX25.js} +27 -27
- package/dist/{digest-QJCR5LY7.js → digest-FH3JBHSO.js} +18 -17
- package/dist/{digest-QJCR5LY7.js.map → digest-FH3JBHSO.js.map} +1 -1
- package/dist/{fork-NUAOPRCN.js → fork-O6NS34MV.js} +44 -44
- package/dist/{history-C4RXAT65.js → history-URHFR4MO.js} +15 -14
- package/dist/{hook-S3IBPKGS.js → hook-6PWP3JVL.js} +27 -29
- package/dist/hook-6PWP3JVL.js.map +1 -0
- package/dist/{hydrate-B54DIUGL.js → hydrate-V6PVQ6OO.js} +17 -16
- package/dist/{hydrate-B54DIUGL.js.map → hydrate-V6PVQ6OO.js.map} +1 -1
- package/dist/{init-F2MYX6MQ.js → init-SENRHJ4R.js} +26 -25
- package/dist/{init-F2MYX6MQ.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-NE6TML4Z.js → keep-M7E7UMRL.js} +18 -17
- package/dist/{keep-NE6TML4Z.js.map → keep-M7E7UMRL.js.map} +1 -1
- package/dist/{list-MW6QCFUB.js → list-YPKCU3GB.js} +17 -16
- package/dist/{list-MW6QCFUB.js.map → list-YPKCU3GB.js.map} +1 -1
- package/dist/{move-33T6LDPZ.js → move-ME7JMNJI.js} +32 -31
- package/dist/{move-33T6LDPZ.js.map → move-ME7JMNJI.js.map} +1 -1
- package/dist/{note-BPDRSGX2.js → note-JFZ3F7UY.js} +19 -18
- package/dist/{note-BPDRSGX2.js.map → note-JFZ3F7UY.js.map} +1 -1
- package/dist/{overlaps-6VZ5MP5T.js → overlaps-ZN3WA35A.js} +25 -24
- package/dist/{overlaps-6VZ5MP5T.js.map → overlaps-ZN3WA35A.js.map} +1 -1
- package/dist/{pin-CDRRJE6B.js → pin-3S2MQQPM.js} +19 -18
- package/dist/{pin-CDRRJE6B.js.map → pin-3S2MQQPM.js.map} +1 -1
- package/dist/{pr-HLIRK7AT.js → pr-KNJ2TVC3.js} +39 -38
- package/dist/{pr-HLIRK7AT.js.map → pr-KNJ2TVC3.js.map} +1 -1
- package/dist/{prune-UMGF6EES.js → prune-2GAXXNPM.js} +46 -45
- package/dist/{prune-UMGF6EES.js.map → prune-2GAXXNPM.js.map} +1 -1
- package/dist/{pty-host-JB3RIUDL.js → pty-host-WZZIQIKX.js} +43 -39
- package/dist/pty-host-WZZIQIKX.js.map +1 -0
- package/dist/{read-HDFVXH6H.js → read-UIV42F5D.js} +18 -17
- package/dist/{read-HDFVXH6H.js.map → read-UIV42F5D.js.map} +1 -1
- package/dist/{recent-NKWAXBYW.js → recent-SJPAIY2T.js} +35 -27
- package/dist/recent-SJPAIY2T.js.map +1 -0
- package/dist/{remove-ELVCCF4J.js → remove-KQW35I5D.js} +47 -46
- package/dist/{remove-ELVCCF4J.js.map → remove-KQW35I5D.js.map} +1 -1
- package/dist/{report-J7TUQRJS.js → report-Z36H65YG.js} +4 -3
- package/dist/{restart-PJIRMPK2.js → restart-7VTSNTZ3.js} +22 -21
- package/dist/{restart-PJIRMPK2.js.map → restart-7VTSNTZ3.js.map} +1 -1
- package/dist/{resume-3R6FOHL7.js → resume-MPBXIF7C.js} +35 -27
- package/dist/resume-MPBXIF7C.js.map +1 -0
- package/dist/{review-AOSPR5KG.js → review-IRVOI4ZK.js} +57 -10
- package/dist/review-IRVOI4ZK.js.map +1 -0
- package/dist/{review-now-X34EXZ5U.js → review-now-QAAL5C6N.js} +7 -6
- package/dist/{review-now-X34EXZ5U.js.map → review-now-QAAL5C6N.js.map} +1 -1
- package/dist/{run-MV2LFD4H.js → run-2EKY2R5R.js} +15 -14
- package/dist/{run-MV2LFD4H.js.map → run-2EKY2R5R.js.map} +1 -1
- package/dist/{screen-I4PKJUDE.js → screen-GQTKTUTD.js} +19 -18
- package/dist/{screen-I4PKJUDE.js.map → screen-GQTKTUTD.js.map} +1 -1
- package/dist/{search-S7O4M35Q.js → search-N7XUYKYV.js} +15 -14
- package/dist/{search-S7O4M35Q.js.map → search-N7XUYKYV.js.map} +1 -1
- package/dist/{section-BCBQOMG5.js → section-6MDCSJS5.js} +19 -18
- package/dist/{section-BCBQOMG5.js.map → section-6MDCSJS5.js.map} +1 -1
- package/dist/{send-JMKAMSUB.js → send-32U465SB.js} +24 -23
- package/dist/{send-JMKAMSUB.js.map → send-32U465SB.js.map} +1 -1
- package/dist/{sessions-DNZPSWOU.js → sessions-E5OEZF2C.js} +42 -41
- package/dist/{sessions-DNZPSWOU.js.map → sessions-E5OEZF2C.js.map} +1 -1
- package/dist/{show-UAOY55EY.js → show-AQQDICKX.js} +18 -17
- package/dist/{show-UAOY55EY.js.map → show-AQQDICKX.js.map} +1 -1
- package/dist/{snooze-CLKJDZAJ.js → snooze-LXHYYV5G.js} +18 -17
- package/dist/{snooze-CLKJDZAJ.js.map → snooze-LXHYYV5G.js.map} +1 -1
- package/dist/{start-KJODTJXK.js → start-OCGLP6N6.js} +19 -18
- package/dist/{start-KJODTJXK.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-PPXTDG43.js → status-35FEMHVO.js} +22 -21
- package/dist/{status-PPXTDG43.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-YFCYGC6D.js → stop-6QOVDV2A.js} +19 -18
- package/dist/{stop-YFCYGC6D.js.map → stop-6QOVDV2A.js.map} +1 -1
- package/dist/{sync-QACKQ2X2.js → sync-GEG3O54C.js} +46 -45
- package/dist/{sync-QACKQ2X2.js.map → sync-GEG3O54C.js.map} +1 -1
- package/dist/{time-LPNBJFCY.js → time-UXSYQHN4.js} +20 -19
- package/dist/{time-LPNBJFCY.js.map → time-UXSYQHN4.js.map} +1 -1
- package/dist/{time-actions-B7YKVDVE.js → time-actions-3KLS5WGD.js} +7 -6
- package/dist/{timesheet-SSDDOKBL.js → timesheet-RNUTAWR4.js} +27 -26
- package/dist/{timesheet-SSDDOKBL.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-26MFCA27.js → tree-U2LS4NHP.js} +53 -52
- package/dist/tree-U2LS4NHP.js.map +1 -0
- package/dist/{update-DMPTLZFM.js → update-PHTB3AB5.js} +28 -27
- package/dist/{update-DMPTLZFM.js.map → update-PHTB3AB5.js.map} +1 -1
- package/dist/{usage-4UULCJXY.js → usage-2Z7354NZ.js} +17 -16
- package/dist/{usage-4UULCJXY.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-6UPWZO3M.js → wait-MEMUQGDV.js} +19 -18
- package/dist/{wait-6UPWZO3M.js.map → wait-MEMUQGDV.js.map} +1 -1
- package/dist/wd-bin.js +9 -9
- package/dist/web/assets/{PtyView-D2PAxKJT.js → PtyView-CyqsvkBt.js} +2 -2
- package/dist/web/assets/{PtyView-D2PAxKJT.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-6FWX5663.js → web-P7TKPZFB.js} +466 -313
- 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-TNPXQ3BO.js.map +0 -1
- package/dist/chunk-6THUVP6T.js.map +0 -1
- package/dist/chunk-AH5TM3NB.js +0 -21
- package/dist/chunk-AH5TM3NB.js.map +0 -1
- package/dist/chunk-BD26XB2E.js.map +0 -1
- package/dist/chunk-BK73QU45.js.map +0 -1
- package/dist/chunk-CF6Y2RZJ.js.map +0 -1
- package/dist/chunk-D4ZDTXFV.js.map +0 -1
- package/dist/chunk-DW245WK4.js +0 -74
- package/dist/chunk-DW245WK4.js.map +0 -1
- package/dist/chunk-MOTKVMGL.js.map +0 -1
- package/dist/chunk-OGGGOFCZ.js.map +0 -1
- package/dist/chunk-QXDSIIID.js +0 -9
- package/dist/chunk-TJAF3K5D.js.map +0 -1
- package/dist/chunk-Y2DBNXZH.js.map +0 -1
- package/dist/chunk-ZS7ZXAXB.js.map +0 -1
- package/dist/cli-7RDR5XZ5.js +0 -20
- package/dist/hook-S3IBPKGS.js.map +0 -1
- package/dist/install-skills-QX4OATOS.js +0 -23
- package/dist/pty-host-JB3RIUDL.js.map +0 -1
- package/dist/recent-NKWAXBYW.js.map +0 -1
- package/dist/resume-3R6FOHL7.js.map +0 -1
- package/dist/review-AOSPR5KG.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-26MFCA27.js.map +0 -1
- package/dist/web/assets/index-BNHgDFNt.css +0 -1
- package/dist/web/assets/index-BnoJcoyB.js +0 -126
- package/dist/web/assets/index-BnoJcoyB.js.map +0 -1
- package/dist/web-6FWX5663.js.map +0 -1
- /package/dist/{attach-E2OJC7ST.js.map → attach-ETPEGXYM.js.map} +0 -0
- /package/dist/{chunk-PBJVVXG7.js.map → chunk-2IDWQ5NO.js.map} +0 -0
- /package/dist/{chunk-GWANOCQ4.js.map → chunk-2PAHTJ3B.js.map} +0 -0
- /package/dist/{chunk-G6K5U3KW.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-BHYTCA55.js.map → chunk-4WTY3SFZ.js.map} +0 -0
- /package/dist/{chunk-LEDE3P4Q.js.map → chunk-5LAFHPNB.js.map} +0 -0
- /package/dist/{chunk-AU27USPZ.js.map → chunk-5ZCCUM75.js.map} +0 -0
- /package/dist/{chunk-VQTPBS63.js.map → chunk-7QDZGVIT.js.map} +0 -0
- /package/dist/{chunk-BB44TXV4.js.map → chunk-7S3NPGVM.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-M3RDUGQV.js.map → chunk-C6OEPSH2.js.map} +0 -0
- /package/dist/{chunk-RVSRZ57P.js.map → chunk-CNZV3UCM.js.map} +0 -0
- /package/dist/{chunk-4D52OAAP.js.map → chunk-CVTM4TCZ.js.map} +0 -0
- /package/dist/{chunk-M5YM3CQY.js.map → chunk-DBGHDWM7.js.map} +0 -0
- /package/dist/{chunk-LSZ6HI3U.js.map → chunk-EORL2V7P.js.map} +0 -0
- /package/dist/{chunk-POHAQY4D.js.map → chunk-EQD3YBGA.js.map} +0 -0
- /package/dist/{chunk-L5OZXDTB.js.map → chunk-EQFDUC6F.js.map} +0 -0
- /package/dist/{chunk-DBWVWWUO.js.map → chunk-FIEBI3UB.js.map} +0 -0
- /package/dist/{chunk-7VAKNNLB.js.map → chunk-GGE55DO3.js.map} +0 -0
- /package/dist/{chunk-AGRUEZQX.js.map → chunk-GNIYYXQX.js.map} +0 -0
- /package/dist/{chunk-PR3BA5BP.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-6NTMQ7XI.js.map → chunk-ITY6R2LC.js.map} +0 -0
- /package/dist/{chunk-VLUME72O.js.map → chunk-JVJ5IJSF.js.map} +0 -0
- /package/dist/{chunk-LK2ZVCKH.js.map → chunk-K2OOUNXH.js.map} +0 -0
- /package/dist/{chunk-V3MRBAZU.js.map → chunk-KCYYIUUQ.js.map} +0 -0
- /package/dist/{chunk-B4G5QHTU.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-Q5WOXF2D.js.map → chunk-MVME4LH7.js.map} +0 -0
- /package/dist/{chunk-S43GVNRB.js.map → chunk-MXH7DV4Q.js.map} +0 -0
- /package/dist/{chunk-IJEAHNJZ.js.map → chunk-MZY557LZ.js.map} +0 -0
- /package/dist/{chunk-UY77MGXI.js.map → chunk-O32OINY3.js.map} +0 -0
- /package/dist/{chunk-QXDSIIID.js.map → chunk-OX33X3NH.js.map} +0 -0
- /package/dist/{chunk-OMY7MGNN.js.map → chunk-PSFOA7P6.js.map} +0 -0
- /package/dist/{chunk-UH72CZAX.js.map → chunk-PZ7WTBSI.js.map} +0 -0
- /package/dist/{chunk-XGOSOA7U.js.map → chunk-QHA4VF4B.js.map} +0 -0
- /package/dist/{chunk-XGZB2DOA.js.map → chunk-QP7VLMFJ.js.map} +0 -0
- /package/dist/{chunk-W7KGS2OH.js.map → chunk-R5HG665I.js.map} +0 -0
- /package/dist/{chunk-RUIBZ6DI.js.map → chunk-R6KQDWHC.js.map} +0 -0
- /package/dist/{chunk-CO6BX4RN.js.map → chunk-REAZAE5C.js.map} +0 -0
- /package/dist/{chunk-ZKGCL4HY.js.map → chunk-RXORNKSJ.js.map} +0 -0
- /package/dist/{chunk-WI5WFJJW.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-LQ4BEHS4.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-B7BNMPY3.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-ESZ52W6E.js.map → chunk-WNWSO4VO.js.map} +0 -0
- /package/dist/{chunk-TYZSHKFP.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-7JEMR4RU.js.map → chunk-Z3OHGPIN.js.map} +0 -0
- /package/dist/{chunk-ESZXUBYI.js.map → chunk-ZNGR2CB6.js.map} +0 -0
- /package/dist/{cli-7RDR5XZ5.js.map → cli-OMADLGGY.js.map} +0 -0
- /package/dist/{diff-TXIFHZ4Q.js.map → diff-CJNSUX25.js.map} +0 -0
- /package/dist/{fork-NUAOPRCN.js.map → fork-O6NS34MV.js.map} +0 -0
- /package/dist/{history-C4RXAT65.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-W7KGS2OH.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";
|
|
155
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";
|
|
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,10 +254,11 @@ 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,
|
|
261
|
+
VERDICT_LABEL,
|
|
192
262
|
addDraft,
|
|
193
263
|
afterFailedSubmit,
|
|
194
264
|
afterSubmit,
|
|
@@ -228,7 +298,7 @@ import {
|
|
|
228
298
|
withClaim,
|
|
229
299
|
withFixClaim,
|
|
230
300
|
withoutFixClaim
|
|
231
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-R5DHVUA2.js";
|
|
232
302
|
import {
|
|
233
303
|
asData,
|
|
234
304
|
asDataBlock
|
|
@@ -244,12 +314,12 @@ import {
|
|
|
244
314
|
readWebUrl,
|
|
245
315
|
writeDevWebDiscovery,
|
|
246
316
|
writeWebDiscovery
|
|
247
|
-
} from "./chunk-
|
|
317
|
+
} from "./chunk-SZAD5U3J.js";
|
|
248
318
|
import {
|
|
249
319
|
checkTools,
|
|
250
320
|
saveFolders,
|
|
251
321
|
setupState
|
|
252
|
-
} from "./chunk-
|
|
322
|
+
} from "./chunk-7S3NPGVM.js";
|
|
253
323
|
import {
|
|
254
324
|
RepoAdminError,
|
|
255
325
|
deleteGroup,
|
|
@@ -261,7 +331,7 @@ import {
|
|
|
261
331
|
setRepoIgnored,
|
|
262
332
|
setReviewMode,
|
|
263
333
|
setScanRoot
|
|
264
|
-
} from "./chunk-
|
|
334
|
+
} from "./chunk-ITY6R2LC.js";
|
|
265
335
|
import {
|
|
266
336
|
freeLeftovers,
|
|
267
337
|
leftoversOf,
|
|
@@ -270,78 +340,17 @@ import {
|
|
|
270
340
|
parsePrRef,
|
|
271
341
|
resolvePrToStart,
|
|
272
342
|
workOnPrPrompt
|
|
273
|
-
} from "./chunk-
|
|
343
|
+
} from "./chunk-Z3OHGPIN.js";
|
|
274
344
|
import {
|
|
275
345
|
legacyUnsafeCheck
|
|
276
|
-
} from "./chunk-
|
|
346
|
+
} from "./chunk-2PAHTJ3B.js";
|
|
277
347
|
import {
|
|
278
348
|
howToLift
|
|
279
349
|
} from "./chunk-FZHFD2AY.js";
|
|
280
350
|
import {
|
|
281
351
|
agentsBySession,
|
|
282
352
|
summarizeAgents
|
|
283
|
-
} from "./chunk-
|
|
284
|
-
import {
|
|
285
|
-
resolveWorkBinPath
|
|
286
|
-
} from "./chunk-AH5TM3NB.js";
|
|
287
|
-
import {
|
|
288
|
-
editorArgs,
|
|
289
|
-
openUrl
|
|
290
|
-
} from "./chunk-S43GVNRB.js";
|
|
291
|
-
import {
|
|
292
|
-
removeWorktreeInChild
|
|
293
|
-
} from "./chunk-B4G5QHTU.js";
|
|
294
|
-
import {
|
|
295
|
-
archiveMergedSession,
|
|
296
|
-
archiveWaiting,
|
|
297
|
-
defaultArchiveDeps
|
|
298
|
-
} from "./chunk-7VAKNNLB.js";
|
|
299
|
-
import {
|
|
300
|
-
cleanupVerdict,
|
|
301
|
-
createCleanupJob
|
|
302
|
-
} from "./chunk-AKMPF72Y.js";
|
|
303
|
-
import {
|
|
304
|
-
MAX_REPLY_CHARS,
|
|
305
|
-
discardReply,
|
|
306
|
-
draftCounts,
|
|
307
|
-
draftReply,
|
|
308
|
-
isThreadId,
|
|
309
|
-
listReplies,
|
|
310
|
-
markPostedAnswered,
|
|
311
|
-
postReply,
|
|
312
|
-
rememberSent,
|
|
313
|
-
replyFolder,
|
|
314
|
-
replyFolderOnDisk,
|
|
315
|
-
retireResolvedReplies,
|
|
316
|
-
sessionRepoRefs,
|
|
317
|
-
withThreadContext
|
|
318
|
-
} from "./chunk-ESZ52W6E.js";
|
|
319
|
-
import {
|
|
320
|
-
DEFAULT_TRUSTED_BOTS,
|
|
321
|
-
createCiStore,
|
|
322
|
-
createSeenStores,
|
|
323
|
-
newFeedback,
|
|
324
|
-
openThreadCount,
|
|
325
|
-
openThreadsOf,
|
|
326
|
-
reviewMessage,
|
|
327
|
-
subAgentHint
|
|
328
|
-
} from "./chunk-VQTPBS63.js";
|
|
329
|
-
import {
|
|
330
|
-
sessionStatusView,
|
|
331
|
-
shownState
|
|
332
|
-
} from "./chunk-ESZXUBYI.js";
|
|
333
|
-
import {
|
|
334
|
-
internalReadOnly,
|
|
335
|
-
runInternal,
|
|
336
|
-
runInternalReadOnly,
|
|
337
|
-
summarizeCheckpoint,
|
|
338
|
-
throttleTrailing
|
|
339
|
-
} from "./chunk-4D52OAAP.js";
|
|
340
|
-
import {
|
|
341
|
-
computeDiff,
|
|
342
|
-
computeRangeDiff,
|
|
343
|
-
parseGitDiff
|
|
344
|
-
} from "./chunk-XGZB2DOA.js";
|
|
353
|
+
} from "./chunk-FIEBI3UB.js";
|
|
345
354
|
import {
|
|
346
355
|
commandWords,
|
|
347
356
|
describeProcess,
|
|
@@ -350,7 +359,7 @@ import {
|
|
|
350
359
|
normDir,
|
|
351
360
|
runningFromNames,
|
|
352
361
|
runsFrom
|
|
353
|
-
} from "./chunk-
|
|
362
|
+
} from "./chunk-ICEP4WAK.js";
|
|
354
363
|
import {
|
|
355
364
|
childText,
|
|
356
365
|
createInChild,
|
|
@@ -358,7 +367,7 @@ import {
|
|
|
358
367
|
keyedQueue,
|
|
359
368
|
oneAtATime,
|
|
360
369
|
runWorkChild
|
|
361
|
-
} from "./chunk-
|
|
370
|
+
} from "./chunk-5LAFHPNB.js";
|
|
362
371
|
import {
|
|
363
372
|
configurePtyPool,
|
|
364
373
|
detachPtyPool,
|
|
@@ -373,6 +382,7 @@ import {
|
|
|
373
382
|
ptyLastOutputMs,
|
|
374
383
|
ptyPid,
|
|
375
384
|
ptyPids,
|
|
385
|
+
ptyTerminals,
|
|
376
386
|
readPtyScreen,
|
|
377
387
|
restartPty,
|
|
378
388
|
resumePersistedSessions,
|
|
@@ -382,43 +392,47 @@ import {
|
|
|
382
392
|
syncPtyPool,
|
|
383
393
|
terminalTicketUrl,
|
|
384
394
|
writeToPty
|
|
385
|
-
} from "./chunk-
|
|
386
|
-
import "./chunk-
|
|
395
|
+
} from "./chunk-6SYQQXPQ.js";
|
|
396
|
+
import "./chunk-JVJ5IJSF.js";
|
|
387
397
|
import {
|
|
388
398
|
disposeAllWatchers,
|
|
389
399
|
disposeSessionWatcher,
|
|
390
400
|
findSession as findSession2,
|
|
391
401
|
subscribeSession
|
|
392
|
-
} from "./chunk-
|
|
393
|
-
import "./chunk-
|
|
394
|
-
import "./chunk-
|
|
402
|
+
} from "./chunk-O32OINY3.js";
|
|
403
|
+
import "./chunk-XMKYQVJU.js";
|
|
404
|
+
import "./chunk-XPWWOR7Z.js";
|
|
395
405
|
import {
|
|
396
406
|
teardownWorktree,
|
|
397
407
|
toBaseSpec,
|
|
398
408
|
wouldRefuseRemoval
|
|
399
|
-
} from "./chunk-
|
|
400
|
-
import "./chunk-
|
|
409
|
+
} from "./chunk-4ZP6NN2X.js";
|
|
410
|
+
import "./chunk-PZ7WTBSI.js";
|
|
401
411
|
import {
|
|
402
412
|
isWorktreeFolder
|
|
403
|
-
} from "./chunk-
|
|
413
|
+
} from "./chunk-EORL2V7P.js";
|
|
414
|
+
import {
|
|
415
|
+
accountLoginId,
|
|
416
|
+
accountOfLoginId
|
|
417
|
+
} from "./chunk-SJBEIYLK.js";
|
|
404
418
|
import {
|
|
405
419
|
ASSISTANT_ID,
|
|
406
420
|
assistantDir,
|
|
407
421
|
describeView,
|
|
408
422
|
writeAssistantContext
|
|
409
|
-
} from "./chunk-
|
|
423
|
+
} from "./chunk-BRUYXYO2.js";
|
|
410
424
|
import "./chunk-7E5XPDKX.js";
|
|
411
|
-
import "./chunk-
|
|
425
|
+
import "./chunk-AHGMXBY3.js";
|
|
412
426
|
import {
|
|
413
427
|
NOTE_NUDGE,
|
|
414
428
|
findSessionForCwd,
|
|
415
429
|
readPendingForSession,
|
|
416
430
|
readPendingForWorktree
|
|
417
|
-
} from "./chunk-
|
|
431
|
+
} from "./chunk-RXORNKSJ.js";
|
|
432
|
+
import "./chunk-ZSHWP2VS.js";
|
|
418
433
|
import {
|
|
419
434
|
getCommentFileStore
|
|
420
|
-
} from "./chunk-
|
|
421
|
-
import "./chunk-ZSHWP2VS.js";
|
|
435
|
+
} from "./chunk-CNZV3UCM.js";
|
|
422
436
|
import {
|
|
423
437
|
createCommentStore
|
|
424
438
|
} from "./chunk-HUXS3VAI.js";
|
|
@@ -434,17 +448,17 @@ import {
|
|
|
434
448
|
stageInputOf,
|
|
435
449
|
withRequiredChecks,
|
|
436
450
|
workElsewhere
|
|
437
|
-
} from "./chunk-
|
|
451
|
+
} from "./chunk-MVME4LH7.js";
|
|
438
452
|
import {
|
|
439
453
|
createSessionBranches
|
|
440
|
-
} from "./chunk-
|
|
454
|
+
} from "./chunk-GPLCT5TZ.js";
|
|
441
455
|
import {
|
|
442
456
|
defaultHost,
|
|
443
457
|
hostById,
|
|
444
458
|
hostForRepo,
|
|
445
459
|
hostOfPrUrl,
|
|
446
460
|
originHostname
|
|
447
|
-
} from "./chunk-
|
|
461
|
+
} from "./chunk-2IDWQ5NO.js";
|
|
448
462
|
import {
|
|
449
463
|
MAX_THREAD_BODY
|
|
450
464
|
} from "./chunk-FGPXMAYU.js";
|
|
@@ -457,16 +471,21 @@ import {
|
|
|
457
471
|
readSessionBranches,
|
|
458
472
|
repoNameOf,
|
|
459
473
|
wasPushed
|
|
460
|
-
} from "./chunk-
|
|
474
|
+
} from "./chunk-U64SNFIZ.js";
|
|
475
|
+
import {
|
|
476
|
+
editorArgs,
|
|
477
|
+
openUrl
|
|
478
|
+
} from "./chunk-MXH7DV4Q.js";
|
|
461
479
|
import {
|
|
462
480
|
enrollProblem,
|
|
463
481
|
groupProblem,
|
|
464
482
|
suggestAlias
|
|
465
|
-
} from "./chunk-
|
|
466
|
-
import "./chunk-
|
|
483
|
+
} from "./chunk-GNIYYXQX.js";
|
|
484
|
+
import "./chunk-T5GJVUSL.js";
|
|
467
485
|
import {
|
|
468
486
|
defaultRunner
|
|
469
|
-
} from "./chunk-
|
|
487
|
+
} from "./chunk-XBWS77S2.js";
|
|
488
|
+
import "./chunk-4CXUVBOD.js";
|
|
470
489
|
import {
|
|
471
490
|
DECISION_MARKER,
|
|
472
491
|
DEFAULT_HOST,
|
|
@@ -478,8 +497,6 @@ import {
|
|
|
478
497
|
archiveRoot,
|
|
479
498
|
archiveSession,
|
|
480
499
|
archivedForMerge,
|
|
481
|
-
bestEffort,
|
|
482
|
-
bestEffortAsync,
|
|
483
500
|
buildDigest,
|
|
484
501
|
cleanSnoozeRequest,
|
|
485
502
|
cleanStageRef,
|
|
@@ -505,7 +522,6 @@ import {
|
|
|
505
522
|
listScopes,
|
|
506
523
|
loadHistory,
|
|
507
524
|
loadManifest,
|
|
508
|
-
logSwallowed,
|
|
509
525
|
markAgentStopped,
|
|
510
526
|
markScopeEnded,
|
|
511
527
|
markSeen,
|
|
@@ -550,7 +566,6 @@ import {
|
|
|
550
566
|
stopDev,
|
|
551
567
|
subscribeScope,
|
|
552
568
|
suppressScopeWatch,
|
|
553
|
-
swallow,
|
|
554
569
|
syncConversation,
|
|
555
570
|
syncConversations,
|
|
556
571
|
takeCheckpoint,
|
|
@@ -558,7 +573,7 @@ import {
|
|
|
558
573
|
updateCheckpoint,
|
|
559
574
|
whileRestoring,
|
|
560
575
|
writeArchiveRecord
|
|
561
|
-
} from "./chunk-
|
|
576
|
+
} from "./chunk-FNWPOM4B.js";
|
|
562
577
|
import {
|
|
563
578
|
dayKey
|
|
564
579
|
} from "./chunk-NEJVK5CF.js";
|
|
@@ -569,61 +584,53 @@ import {
|
|
|
569
584
|
sessionIdFor,
|
|
570
585
|
tx,
|
|
571
586
|
withDb
|
|
572
|
-
} from "./chunk-
|
|
587
|
+
} from "./chunk-ALBTIOP3.js";
|
|
573
588
|
import {
|
|
574
589
|
packageRoot
|
|
575
590
|
} from "./chunk-LNHSBM4L.js";
|
|
576
591
|
import {
|
|
577
592
|
AccountAdminError,
|
|
593
|
+
RETIRED_HOOK_OWNERS,
|
|
578
594
|
activityRoots,
|
|
579
|
-
agentAccountFolders,
|
|
580
595
|
agentFor,
|
|
581
596
|
agentOf,
|
|
582
597
|
agentWriteMs,
|
|
598
|
+
bestEffort,
|
|
599
|
+
bestEffortAsync,
|
|
583
600
|
checkedOutBranch,
|
|
584
601
|
gitDirs,
|
|
585
602
|
isOwnCheckout,
|
|
586
603
|
knownAgents,
|
|
587
604
|
lineTimeOf,
|
|
588
605
|
liveAgents,
|
|
606
|
+
logSwallowed,
|
|
589
607
|
ownsBranch,
|
|
590
608
|
projectList,
|
|
591
609
|
readJsonlSince,
|
|
592
610
|
refShaFromFiles,
|
|
611
|
+
swallow,
|
|
593
612
|
workingBranch
|
|
594
|
-
} from "./chunk-
|
|
613
|
+
} from "./chunk-CYUSOVO5.js";
|
|
614
|
+
import "./chunk-UCNYEHQY.js";
|
|
595
615
|
import {
|
|
596
616
|
VERSION
|
|
597
|
-
} from "./chunk-
|
|
617
|
+
} from "./chunk-OX33X3NH.js";
|
|
598
618
|
import {
|
|
599
619
|
resolveProjectTarget
|
|
600
|
-
} from "./chunk-
|
|
620
|
+
} from "./chunk-IPHADNF5.js";
|
|
601
621
|
import {
|
|
602
622
|
git
|
|
603
|
-
} from "./chunk-
|
|
623
|
+
} from "./chunk-JYWX2N5W.js";
|
|
604
624
|
import {
|
|
605
625
|
usageDir
|
|
606
|
-
} from "./chunk-
|
|
607
|
-
import "./chunk-BK73QU45.js";
|
|
608
|
-
import {
|
|
609
|
-
QUEUE_RECHECK_MS,
|
|
610
|
-
busyForRestart,
|
|
611
|
-
createRestarter,
|
|
612
|
-
installedAtCache,
|
|
613
|
-
outdatedPtys,
|
|
614
|
-
restartNotesSummary
|
|
615
|
-
} from "./chunk-DZ6SLAIZ.js";
|
|
616
|
-
import "./chunk-TNJF7T33.js";
|
|
626
|
+
} from "./chunk-DOYJR2HF.js";
|
|
617
627
|
import {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
} from "./chunk-SJBEIYLK.js";
|
|
621
|
-
import "./chunk-AYHDJMMJ.js";
|
|
622
|
-
import "./chunk-Z3T5FWM6.js";
|
|
628
|
+
resolveWorkBinPath
|
|
629
|
+
} from "./chunk-HK6AZQ5Z.js";
|
|
623
630
|
import {
|
|
624
631
|
DEFAULT_ACCOUNT_NAME,
|
|
625
632
|
accountNameProblem
|
|
626
|
-
} from "./chunk-
|
|
633
|
+
} from "./chunk-TZLCBDJZ.js";
|
|
627
634
|
import {
|
|
628
635
|
DEFAULT_ACCOUNT,
|
|
629
636
|
DEFAULT_PROMPTS,
|
|
@@ -631,38 +638,81 @@ import {
|
|
|
631
638
|
getConfigPath,
|
|
632
639
|
isWorkday,
|
|
633
640
|
loadConfig
|
|
634
|
-
} from "./chunk-
|
|
641
|
+
} from "./chunk-BZGIKO6I.js";
|
|
642
|
+
import "./chunk-REPFZIPP.js";
|
|
635
643
|
import {
|
|
636
644
|
bootTime,
|
|
637
645
|
detachHere,
|
|
638
646
|
isPidAlive,
|
|
639
647
|
killTreeAsync,
|
|
640
648
|
recentProcessTable
|
|
641
|
-
} from "./chunk-
|
|
642
|
-
import {
|
|
643
|
-
shellEnv,
|
|
644
|
-
spawn_default
|
|
645
|
-
} from "./chunk-DW245WK4.js";
|
|
649
|
+
} from "./chunk-VHENFC2S.js";
|
|
646
650
|
import {
|
|
647
651
|
explainNotOnPath,
|
|
648
652
|
programPath,
|
|
653
|
+
shellEnv,
|
|
654
|
+
spawn_default,
|
|
649
655
|
takeSlowestSync
|
|
650
|
-
} from "./chunk-
|
|
656
|
+
} from "./chunk-QOSAWNOU.js";
|
|
651
657
|
import {
|
|
652
658
|
atomicWriteFile
|
|
653
659
|
} from "./chunk-D2J3AD6L.js";
|
|
654
660
|
import {
|
|
655
661
|
report
|
|
656
|
-
} from "./chunk-
|
|
662
|
+
} from "./chunk-5ZCCUM75.js";
|
|
663
|
+
import {
|
|
664
|
+
debugLog
|
|
665
|
+
} from "./chunk-IAKOKZYW.js";
|
|
657
666
|
import {
|
|
658
|
-
debugLog,
|
|
659
667
|
getConfigDir
|
|
660
|
-
} from "./chunk-
|
|
668
|
+
} from "./chunk-F2ECTTSY.js";
|
|
661
669
|
|
|
662
670
|
// src/commands/web.ts
|
|
663
|
-
import fs21 from "fs";
|
|
664
671
|
import chalk from "chalk";
|
|
665
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
|
+
|
|
666
716
|
// src/server/web-server.ts
|
|
667
717
|
import fs18 from "fs";
|
|
668
718
|
|
|
@@ -1349,6 +1399,10 @@ function withFocusNotes(main, passes, paths) {
|
|
|
1349
1399
|
}
|
|
1350
1400
|
return added ? JSON.stringify({ ...o, notes }) : main;
|
|
1351
1401
|
}
|
|
1402
|
+
var MAX_ALSO_CHARS = 2e3;
|
|
1403
|
+
function alsoPoints(also) {
|
|
1404
|
+
return (also ?? "").split(/\r?\n/).map((l) => l.trim()).filter(Boolean);
|
|
1405
|
+
}
|
|
1352
1406
|
function pickChanges(diff, repo) {
|
|
1353
1407
|
const changed = diff.repos.filter((r) => r.files.length > 0);
|
|
1354
1408
|
const picked = repo === void 0 ? changed : changed.filter((r) => r.name === repo);
|
|
@@ -1359,7 +1413,7 @@ function pickChanges(diff, repo) {
|
|
|
1359
1413
|
function localSignature(diff, repo) {
|
|
1360
1414
|
return diffSignature(pickChanges(diff, repo).all);
|
|
1361
1415
|
}
|
|
1362
|
-
async function prepareLocalReview(session, repo, deps) {
|
|
1416
|
+
async function prepareLocalReview(session, repo, deps, also) {
|
|
1363
1417
|
const diff = deps.diff(session);
|
|
1364
1418
|
if (repo !== void 0 && !diff.repos.some((r) => r.name === repo)) throw new Error(`${repo} is not one of this session's repos`);
|
|
1365
1419
|
const { repos, picked, together, all } = pickChanges(diff, repo);
|
|
@@ -1373,7 +1427,8 @@ async function prepareLocalReview(session, repo, deps) {
|
|
|
1373
1427
|
const meta = localMeta(session, picked.map((r) => r.name).join(REPOS_JOIN), diff.resolvedBase, diffSignature(all));
|
|
1374
1428
|
const kinds = kindsOf(files, extras, rules);
|
|
1375
1429
|
const agent = deps.agent;
|
|
1376
|
-
const
|
|
1430
|
+
const asked = also?.trim() ? also.trim() : void 0;
|
|
1431
|
+
const attention = attentionItems(alsoPoints(asked), deps.attention?.(session));
|
|
1377
1432
|
const told = attention.length ? { attention } : {};
|
|
1378
1433
|
const prompt = agent ? reviewPrompt(meta, files, kinds, told) : null;
|
|
1379
1434
|
const tree = prompt && agent && deps.inTree ? await deps.inTree(
|
|
@@ -1395,13 +1450,13 @@ async function prepareLocalReview(session, repo, deps) {
|
|
|
1395
1450
|
const plain = reviewPrompt(meta, files, kinds, { ...opts, ...told });
|
|
1396
1451
|
return plain ? agent(plain).catch(() => null) : null;
|
|
1397
1452
|
};
|
|
1398
|
-
const
|
|
1399
|
-
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}/`))) : [];
|
|
1400
1455
|
const [main, ...passes] = prompt && agent ? await Promise.all([ask(), ...focused.map((name) => ask({ focus: focusLines(name), first: (p) => p.startsWith(`${name}/`) }))]) : [void 0];
|
|
1401
1456
|
const answer = main === void 0 ? void 0 : withFocusNotes(
|
|
1402
1457
|
main,
|
|
1403
1458
|
focused.map((name, i) => ({ repo: name, answer: passes[i] ?? null })),
|
|
1404
|
-
|
|
1459
|
+
askedPaths
|
|
1405
1460
|
);
|
|
1406
1461
|
const review = buildReview(meta, files, extras, answer, {
|
|
1407
1462
|
...rules ? { rules } : {},
|
|
@@ -1411,10 +1466,33 @@ async function prepareLocalReview(session, repo, deps) {
|
|
|
1411
1466
|
ignored
|
|
1412
1467
|
});
|
|
1413
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";
|
|
1414
|
-
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 } : {} };
|
|
1470
|
+
}
|
|
1471
|
+
function localReviewLine(k) {
|
|
1472
|
+
if (k.status === "running") return "Preparing its review\u2026";
|
|
1473
|
+
if (k.status === "failed") return `Review couldn\u2019t be prepared: ${k.error ?? "unknown reason"}`;
|
|
1474
|
+
const r = k.review;
|
|
1475
|
+
if (!r) return "Review ready";
|
|
1476
|
+
const notes = r.drafts.filter((d) => d.state === "draft").length;
|
|
1477
|
+
const parts = [
|
|
1478
|
+
r.recommendation ? VERDICT_LABEL[r.recommendation.verdict] : "",
|
|
1479
|
+
`${r.stories.length} ${r.stories.length === 1 ? "story" : "stories"}`,
|
|
1480
|
+
`${notes} note${notes === 1 ? "" : "s"}`
|
|
1481
|
+
].filter(Boolean);
|
|
1482
|
+
return `Review ready: ${parts.join(" \xB7 ")}`;
|
|
1415
1483
|
}
|
|
1416
1484
|
function createLocalReviews(deps) {
|
|
1417
1485
|
const kept = /* @__PURE__ */ new Map();
|
|
1486
|
+
const lines = /* @__PURE__ */ new Map();
|
|
1487
|
+
const rowOf = (k) => ({
|
|
1488
|
+
status: k.status,
|
|
1489
|
+
seen: k.status === "running" ? true : k.seen,
|
|
1490
|
+
line: localReviewLine({
|
|
1491
|
+
status: k.status,
|
|
1492
|
+
...k.prepared && k.status === "ready" ? { review: k.prepared.review } : {},
|
|
1493
|
+
...k.error ? { error: k.error } : {}
|
|
1494
|
+
})
|
|
1495
|
+
});
|
|
1418
1496
|
const now = () => (deps.now?.() ?? /* @__PURE__ */ new Date()).toISOString();
|
|
1419
1497
|
const of = (sessionId) => {
|
|
1420
1498
|
const k = kept.get(sessionId);
|
|
@@ -1428,14 +1506,23 @@ function createLocalReviews(deps) {
|
|
|
1428
1506
|
prepared: s.prepared,
|
|
1429
1507
|
at: s.at,
|
|
1430
1508
|
sent: s.sent,
|
|
1431
|
-
dismissed: s.dismissed
|
|
1509
|
+
dismissed: s.dismissed,
|
|
1510
|
+
seen: s.seen ?? true
|
|
1432
1511
|
};
|
|
1433
1512
|
kept.set(sessionId, back);
|
|
1434
1513
|
return back;
|
|
1435
1514
|
};
|
|
1436
1515
|
const persist = (sessionId, k) => {
|
|
1437
1516
|
if (k.status !== "ready" || !k.prepared) return;
|
|
1438
|
-
deps.store?.save(sessionId, {
|
|
1517
|
+
deps.store?.save(sessionId, {
|
|
1518
|
+
repo: k.repo,
|
|
1519
|
+
repos: k.repos,
|
|
1520
|
+
prepared: k.prepared,
|
|
1521
|
+
at: k.at,
|
|
1522
|
+
sent: k.sent,
|
|
1523
|
+
dismissed: k.dismissed,
|
|
1524
|
+
seen: k.seen
|
|
1525
|
+
});
|
|
1439
1526
|
};
|
|
1440
1527
|
const wire = (k) => !k ? { status: "none", repo: null, repos: [] } : {
|
|
1441
1528
|
status: k.status,
|
|
@@ -1444,6 +1531,7 @@ function createLocalReviews(deps) {
|
|
|
1444
1531
|
at: k.at,
|
|
1445
1532
|
...k.prepared ? { review: k.prepared.review, sent: k.sent, dismissed: k.dismissed } : {},
|
|
1446
1533
|
...k.prepared?.how ? { how: k.prepared.how } : {},
|
|
1534
|
+
...k.prepared?.also ? { also: k.prepared.also } : {},
|
|
1447
1535
|
...k.error ? { error: k.error } : {}
|
|
1448
1536
|
};
|
|
1449
1537
|
const mark = (sessionId, change) => {
|
|
@@ -1457,7 +1545,7 @@ function createLocalReviews(deps) {
|
|
|
1457
1545
|
state: (sessionId) => wire(of(sessionId)),
|
|
1458
1546
|
/** The diff the kept review was made of; null when none is ready. */
|
|
1459
1547
|
files: (sessionId) => of(sessionId)?.prepared?.files ?? null,
|
|
1460
|
-
start(sessionId, session, repo) {
|
|
1548
|
+
start(sessionId, session, repo, also) {
|
|
1461
1549
|
const was = of(sessionId);
|
|
1462
1550
|
if (was?.status === "running") return wire(was);
|
|
1463
1551
|
const running = {
|
|
@@ -1467,12 +1555,15 @@ function createLocalReviews(deps) {
|
|
|
1467
1555
|
at: now(),
|
|
1468
1556
|
sent: was?.prepared ? was.sent : [],
|
|
1469
1557
|
dismissed: was?.prepared ? was.dismissed : [],
|
|
1558
|
+
seen: true,
|
|
1470
1559
|
...was?.prepared ? { prepared: was.prepared } : {}
|
|
1471
1560
|
};
|
|
1472
1561
|
kept.set(sessionId, running);
|
|
1473
|
-
|
|
1562
|
+
lines.delete(sessionId);
|
|
1563
|
+
void deps.prepare(session, repo, also).then(
|
|
1474
1564
|
// Another review: none of its notes is sent or dismissed yet.
|
|
1475
|
-
|
|
1565
|
+
// Finished: yours to look at (the tab marks it seen when it shows it).
|
|
1566
|
+
(p) => ({ status: "ready", repo: p.repo, repos: p.repos, prepared: p, at: now(), sent: [], dismissed: [], seen: false }),
|
|
1476
1567
|
// The one from before stays the kept one (and the stored one): only this try failed.
|
|
1477
1568
|
(err) => ({
|
|
1478
1569
|
status: "failed",
|
|
@@ -1482,6 +1573,7 @@ function createLocalReviews(deps) {
|
|
|
1482
1573
|
at: now(),
|
|
1483
1574
|
sent: running.sent,
|
|
1484
1575
|
dismissed: running.dismissed,
|
|
1576
|
+
seen: false,
|
|
1485
1577
|
...running.prepared ? { prepared: running.prepared } : {}
|
|
1486
1578
|
})
|
|
1487
1579
|
).then((next) => {
|
|
@@ -1506,8 +1598,34 @@ function createLocalReviews(deps) {
|
|
|
1506
1598
|
});
|
|
1507
1599
|
return ok && found;
|
|
1508
1600
|
},
|
|
1601
|
+
/**
|
|
1602
|
+
* Where a session's review stands, for its row: null when it has none. One not in memory is read from the store
|
|
1603
|
+
* once and only its line kept.
|
|
1604
|
+
*/
|
|
1605
|
+
row(sessionId) {
|
|
1606
|
+
const k = kept.get(sessionId);
|
|
1607
|
+
if (k) return rowOf(k);
|
|
1608
|
+
if (!lines.has(sessionId)) {
|
|
1609
|
+
const s = deps.store?.read(sessionId);
|
|
1610
|
+
lines.set(
|
|
1611
|
+
sessionId,
|
|
1612
|
+
s ? { status: "ready", seen: s.seen ?? true, line: localReviewLine({ status: "ready", review: s.prepared.review }) } : null
|
|
1613
|
+
);
|
|
1614
|
+
}
|
|
1615
|
+
return lines.get(sessionId) ?? null;
|
|
1616
|
+
},
|
|
1617
|
+
/** You looked at it. False when there is none, or it was seen already. */
|
|
1618
|
+
markSeen(sessionId) {
|
|
1619
|
+
const k = of(sessionId);
|
|
1620
|
+
if (!k || k.status === "running" || k.seen) return false;
|
|
1621
|
+
k.seen = true;
|
|
1622
|
+
lines.delete(sessionId);
|
|
1623
|
+
persist(sessionId, k);
|
|
1624
|
+
return true;
|
|
1625
|
+
},
|
|
1509
1626
|
drop: (sessionId) => {
|
|
1510
1627
|
kept.delete(sessionId);
|
|
1628
|
+
lines.delete(sessionId);
|
|
1511
1629
|
deps.store?.drop(sessionId);
|
|
1512
1630
|
}
|
|
1513
1631
|
};
|
|
@@ -1527,9 +1645,22 @@ function localReviewNote(review, ids) {
|
|
|
1527
1645
|
|
|
1528
1646
|
// src/server/routes/session-review-routes.ts
|
|
1529
1647
|
function mountSessionReviewRoutes(app, deps) {
|
|
1648
|
+
const rowChanged = () => deps.broadcast("sessions-changed", { ts: Date.now() });
|
|
1530
1649
|
const reviews = createLocalReviews({
|
|
1531
1650
|
prepare: deps.prepare,
|
|
1532
|
-
onChange: (sessionId) =>
|
|
1651
|
+
onChange: (sessionId) => {
|
|
1652
|
+
deps.broadcast("session-review-changed", { sessionId });
|
|
1653
|
+
rowChanged();
|
|
1654
|
+
const row = reviews.row(sessionId);
|
|
1655
|
+
const session = findSession2(sessionId);
|
|
1656
|
+
if (row && session && row.status !== "running" && !row.seen)
|
|
1657
|
+
deps.broadcast("notify", {
|
|
1658
|
+
sessionId,
|
|
1659
|
+
kind: "review",
|
|
1660
|
+
title: `${session.title || session.branch}: ${row.status === "ready" ? "review ready" : "review failed"}`,
|
|
1661
|
+
body: row.line
|
|
1662
|
+
});
|
|
1663
|
+
},
|
|
1533
1664
|
...deps.store ? { store: deps.store } : {}
|
|
1534
1665
|
});
|
|
1535
1666
|
app.get("/api/sessions/:id/review", (c) => {
|
|
@@ -1544,7 +1675,18 @@ function mountSessionReviewRoutes(app, deps) {
|
|
|
1544
1675
|
if (session.archivedAt) return c.json({ error: "It is archived: restore it first." }, 409);
|
|
1545
1676
|
const body = await c.req.json().catch(() => ({}));
|
|
1546
1677
|
if (body.repo !== void 0 && typeof body.repo !== "string") return c.json({ error: "repo: string" }, 400);
|
|
1547
|
-
return c.json(
|
|
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);
|
|
1682
|
+
rowChanged();
|
|
1683
|
+
return c.json(started);
|
|
1684
|
+
});
|
|
1685
|
+
app.post("/api/sessions/:id/review/seen", (c) => {
|
|
1686
|
+
const id = c.req.param("id");
|
|
1687
|
+
if (!findSession2(id)) return c.json({ error: "unknown session" }, 404);
|
|
1688
|
+
if (reviews.markSeen(id)) rowChanged();
|
|
1689
|
+
return c.json({ ok: true });
|
|
1548
1690
|
});
|
|
1549
1691
|
app.get("/api/sessions/:id/review/diff", (c) => {
|
|
1550
1692
|
const id = c.req.param("id");
|
|
@@ -1599,7 +1741,7 @@ function mountSessionReviewRoutes(app, deps) {
|
|
|
1599
1741
|
deps.broadcast("session-review-changed", { sessionId: id });
|
|
1600
1742
|
return c.json(reviews.state(id));
|
|
1601
1743
|
});
|
|
1602
|
-
return { drop: reviews.drop };
|
|
1744
|
+
return { drop: reviews.drop, row: reviews.row };
|
|
1603
1745
|
}
|
|
1604
1746
|
|
|
1605
1747
|
// src/server/routes/session-show-routes.ts
|
|
@@ -1876,30 +2018,6 @@ function mountSessionShowRoutes(app, deps) {
|
|
|
1876
2018
|
return { drop: (sessionId) => void shown.close(sessionId) };
|
|
1877
2019
|
}
|
|
1878
2020
|
|
|
1879
|
-
// src/core/review/local-review-store.ts
|
|
1880
|
-
var strings2 = (v) => Array.isArray(v) && v.every((x) => typeof x === "string");
|
|
1881
|
-
function isStoredLocalReview(v) {
|
|
1882
|
-
const o = v;
|
|
1883
|
-
if (!o || typeof o !== "object") return false;
|
|
1884
|
-
const p = o.prepared;
|
|
1885
|
-
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);
|
|
1886
|
-
}
|
|
1887
|
-
function readLocalReview(sessionId) {
|
|
1888
|
-
const row = withDb(
|
|
1889
|
-
(d) => d.prepare("SELECT data FROM session_reviews WHERE session_id = ?").get(sessionId)
|
|
1890
|
-
);
|
|
1891
|
-
const v = row ? json.parse(row.data) : null;
|
|
1892
|
-
return isStoredLocalReview(v) ? v : null;
|
|
1893
|
-
}
|
|
1894
|
-
function saveLocalReview(sessionId, review) {
|
|
1895
|
-
withDb(
|
|
1896
|
-
(d) => d.prepare("INSERT OR REPLACE INTO session_reviews (session_id, data) VALUES (?, ?)").run(sessionId, JSON.stringify(review))
|
|
1897
|
-
);
|
|
1898
|
-
}
|
|
1899
|
-
function dropLocalReview(sessionId) {
|
|
1900
|
-
withDb((d) => d.prepare("DELETE FROM session_reviews WHERE session_id = ?").run(sessionId));
|
|
1901
|
-
}
|
|
1902
|
-
|
|
1903
2021
|
// src/core/review/local-review-tree.ts
|
|
1904
2022
|
import path4 from "path";
|
|
1905
2023
|
var norm2 = (p) => path4.resolve(p).replace(/\\/g, "/").replace(/\/+$/, "");
|
|
@@ -3253,9 +3371,9 @@ var SETTINGS = [
|
|
|
3253
3371
|
"usage.statusLine",
|
|
3254
3372
|
"Archive & usage",
|
|
3255
3373
|
"Read plan limits from Claude's status line",
|
|
3256
|
-
"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.",
|
|
3257
3375
|
true,
|
|
3258
|
-
"
|
|
3376
|
+
"when each Claude next starts"
|
|
3259
3377
|
)
|
|
3260
3378
|
];
|
|
3261
3379
|
var settingAt = (path23) => SETTINGS.find((f) => f.path === path23);
|
|
@@ -5180,7 +5298,8 @@ var MESSAGES = {
|
|
|
5180
5298
|
idle: "Idle \u2014 finished its turn",
|
|
5181
5299
|
needs_input: "Needs your input",
|
|
5182
5300
|
unblocked: "No longer waiting \u2014 what it waited on is done",
|
|
5183
|
-
pr: "Its pull request needs you"
|
|
5301
|
+
pr: "Its pull request needs you",
|
|
5302
|
+
review: "Its review is ready"
|
|
5184
5303
|
};
|
|
5185
5304
|
function sanitize(s) {
|
|
5186
5305
|
return s.replace(/[\u0000-\u001f\u007f]/g, " ").trim();
|
|
@@ -6341,7 +6460,7 @@ function mountRailRoutes(app, opts) {
|
|
|
6341
6460
|
const id = c.req.param("id");
|
|
6342
6461
|
if (!findSession2(id)) return c.json({ error: "unknown session" }, 404);
|
|
6343
6462
|
const patch = cleanPlacePatch(await c.req.json().catch(() => null));
|
|
6344
|
-
if (!patch) return c.json({ error:
|
|
6463
|
+
if (!patch) return c.json({ error: PLACE_PATCH_EXPECTED }, 400);
|
|
6345
6464
|
const r = placeSession(id, patch);
|
|
6346
6465
|
if (!r.ok) return c.json({ error: r.error }, 409);
|
|
6347
6466
|
changed();
|
|
@@ -7293,7 +7412,10 @@ function mountReviewRoutes(app, deps) {
|
|
|
7293
7412
|
const repo = c.req.param("repo");
|
|
7294
7413
|
const n = num3(c.req.param("number"));
|
|
7295
7414
|
if (n === null) return c.json({ error: "not a PR number" }, 400);
|
|
7296
|
-
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);
|
|
7297
7419
|
changed(repo, n);
|
|
7298
7420
|
return r.ok ? c.json(r.review) : c.json({ error: r.error }, 409);
|
|
7299
7421
|
});
|
|
@@ -7676,10 +7798,10 @@ function createReviewQueue(deps) {
|
|
|
7676
7798
|
return { discussion: { ...got.discussion, ...when ? { updatedAt: when } : {}, at: now().toISOString() } };
|
|
7677
7799
|
}
|
|
7678
7800
|
const setStatus = (meta, status, why, opts = {}) => deps.store.upsert(meta.repo, meta.number, (was) => withStatus(was, meta, status, why, now(), opts));
|
|
7679
|
-
async function aiStep(project, at, prepared, rules, discussion) {
|
|
7801
|
+
async function aiStep(project, at, prepared, rules, discussion, also) {
|
|
7680
7802
|
if (!deps.agent) return { answer: void 0 };
|
|
7681
7803
|
const kinds = kindsOf(prepared.files, prepared.extras, rules);
|
|
7682
|
-
const attention = deps.attention?.(project.alias)
|
|
7804
|
+
const attention = attentionItems(alsoPoints(also), deps.attention?.(project.alias));
|
|
7683
7805
|
const said = { ...discussion ? { discussion } : {}, ...attention.length ? { attention } : {} };
|
|
7684
7806
|
const prompt = reviewPrompt(at, prepared.files, kinds, said);
|
|
7685
7807
|
if (!prompt) return { answer: void 0 };
|
|
@@ -7691,14 +7813,14 @@ function createReviewQueue(deps) {
|
|
|
7691
7813
|
reviewPrompt(at, prepared.files, kinds, { checkout: lines, ...said }) ?? prompt
|
|
7692
7814
|
).catch((err) => ({ answer: null, why: err.message }));
|
|
7693
7815
|
if (inTree?.answer)
|
|
7694
|
-
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})` : ""}` };
|
|
7695
7817
|
if (inTree?.skipped) fellBack = inTree.why ?? "the checkout run was skipped";
|
|
7696
7818
|
else if (inTree) fellBack = `the checkout run gave no answer${inTree.why ? `: ${inTree.why}` : ""}`;
|
|
7697
7819
|
}
|
|
7698
7820
|
const answer = await deps.agent(prompt).catch(() => null);
|
|
7699
|
-
return { answer, how: `read from the diff alone (${fellBack})` };
|
|
7821
|
+
return { answer, attention, how: `read from the diff alone (${fellBack})` };
|
|
7700
7822
|
}
|
|
7701
|
-
async function prepareOne(project, meta, size, auto, note) {
|
|
7823
|
+
async function prepareOne(project, meta, size, auto, note, also) {
|
|
7702
7824
|
const k = key(meta.repo, meta.number);
|
|
7703
7825
|
active.add(k);
|
|
7704
7826
|
try {
|
|
@@ -7734,13 +7856,15 @@ function createReviewQueue(deps) {
|
|
|
7734
7856
|
`${meta.repo} #${meta.number}: couldn't read its discussion (${read.why}); ${discussion ? "the last read stays" : "none shown"}`,
|
|
7735
7857
|
"warn"
|
|
7736
7858
|
);
|
|
7737
|
-
const { answer, how } = await aiStep(project, at, prep, rules, discussion);
|
|
7859
|
+
const { answer, how, attention } = await aiStep(project, at, prep, rules, discussion, also);
|
|
7738
7860
|
const fresh = {
|
|
7739
7861
|
...buildReview(at, prep.files, prep.extras, answer, {
|
|
7740
7862
|
rules,
|
|
7741
7863
|
ignored: split.ignored,
|
|
7742
7864
|
now: now(),
|
|
7743
|
-
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 } : {}
|
|
7744
7868
|
}),
|
|
7745
7869
|
listedHead: meta.headSha,
|
|
7746
7870
|
mergeBase: prepared.mergeBase,
|
|
@@ -7862,7 +7986,7 @@ function createReviewQueue(deps) {
|
|
|
7862
7986
|
});
|
|
7863
7987
|
return sweeping;
|
|
7864
7988
|
},
|
|
7865
|
-
async runNow(repo, number) {
|
|
7989
|
+
async runNow(repo, number, also) {
|
|
7866
7990
|
const project = deps.projects().find((p) => p.alias === repo);
|
|
7867
7991
|
if (!project) return { ok: false, error: `${repo} isn't one of your repos` };
|
|
7868
7992
|
const host = deps.hostOf(project.path);
|
|
@@ -7872,7 +7996,7 @@ function createReviewQueue(deps) {
|
|
|
7872
7996
|
if (!pr) return { ok: false, error: `#${number} isn't an open pull request of ${repo}` };
|
|
7873
7997
|
const run2 = deps.activity?.start("reviews", `Preparing the review of ${repo} #${number}`);
|
|
7874
7998
|
const note = (text, level = "info") => run2?.note(text, { level });
|
|
7875
|
-
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));
|
|
7876
8000
|
if (r.ok) run2?.done(`prepared${r.how ? `; ${r.how}` : ""}`);
|
|
7877
8001
|
else run2?.fail(r.error);
|
|
7878
8002
|
return r.ok ? { ok: true, review: r.review } : { ok: false, error: r.error };
|
|
@@ -9115,6 +9239,12 @@ function sleepChecks() {
|
|
|
9115
9239
|
|
|
9116
9240
|
// src/server/web-server.ts
|
|
9117
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
|
+
});
|
|
9247
|
+
var localReviewRow = () => null;
|
|
9118
9248
|
function computeSessionDiff(s, base) {
|
|
9119
9249
|
const resolved = s.paths.map((p) => resolveRepoDiff(p, base, s.baseBranches?.[p] ?? s.baseBranch));
|
|
9120
9250
|
const repos = s.paths.map((p, i) => ({
|
|
@@ -9254,6 +9384,8 @@ async function startWebServer(opts = {}) {
|
|
|
9254
9384
|
() => sessionWire(s, {
|
|
9255
9385
|
diffStatFor,
|
|
9256
9386
|
claudesFor,
|
|
9387
|
+
// Its own review: being prepared, or finished and waiting for you (the Inbox, its Review tab's mark).
|
|
9388
|
+
localReviewFor: (id) => localReviewRow(id),
|
|
9257
9389
|
liveKnown: !!table && table.size > 0,
|
|
9258
9390
|
snoozeFor: (id) => snoozes.get(id) ?? null,
|
|
9259
9391
|
behindFor: (id, s2, lastActivity) => wantsDiffStat(s2, false, Date.now(), lastActivity) ? behindCache.get(id, s2.paths, stacks.parentOf.get(id)?.branch) : null,
|
|
@@ -9268,6 +9400,7 @@ async function startWebServer(opts = {}) {
|
|
|
9268
9400
|
},
|
|
9269
9401
|
hostedLive: (id) => peekPty(id),
|
|
9270
9402
|
outputStatusFor: (id) => outputStatus(id),
|
|
9403
|
+
startupQuestionFor: (id) => startupQuestions.for(id),
|
|
9271
9404
|
shadowed: (id) => shadow.has(id),
|
|
9272
9405
|
reviewThreadsFor: (id) => reviewThreadsOf(prWatch.state(id)),
|
|
9273
9406
|
prStageFor: (id) => prStageWire(prWatch.state(id), (k) => stageSeen(id).has(k)),
|
|
@@ -9472,6 +9605,26 @@ async function startWebServer(opts = {}) {
|
|
|
9472
9605
|
};
|
|
9473
9606
|
sleepSchedule?.next(Date.now() + SLEEP_EVERY_MS);
|
|
9474
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?.();
|
|
9475
9628
|
const timeDeps = defaultTimeDeps();
|
|
9476
9629
|
const timeSchedule = !jobs ? null : activity.schedule("time", "Time: today and missing days", TIME_EVERY_MS);
|
|
9477
9630
|
const timeKeeper = !jobs ? null : createTimeKeeper(timeDeps, { activity, changed: () => broadcast("time-changed", {}) });
|
|
@@ -9495,7 +9648,7 @@ async function startWebServer(opts = {}) {
|
|
|
9495
9648
|
});
|
|
9496
9649
|
mountReviewRoutes(app, {
|
|
9497
9650
|
...reviewIo,
|
|
9498
|
-
runNow: (repo, n) => reviewQueue.runNow(repo, n),
|
|
9651
|
+
runNow: (repo, n, also) => reviewQueue.runNow(repo, n, also),
|
|
9499
9652
|
refreshDiscussion: (repo, n) => reviewQueue.refreshDiscussion(repo, n),
|
|
9500
9653
|
broadcast,
|
|
9501
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.
|
|
@@ -9774,25 +9927,30 @@ async function startWebServer(opts = {}) {
|
|
|
9774
9927
|
mountRailRoutes(app, { broadcast });
|
|
9775
9928
|
mountNoteRoutes(app, { broadcast });
|
|
9776
9929
|
mountSessionShowRoutes(app, { broadcast });
|
|
9777
|
-
mountSessionReviewRoutes(app, {
|
|
9778
|
-
prepare: (session, repo) => prepareLocalReview(
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9930
|
+
localReviewRow = mountSessionReviewRoutes(app, {
|
|
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
|
+
),
|
|
9791
9949
|
signature: (s, repo) => localSignature(computeSessionDiff(s, "branch"), repo ?? void 0),
|
|
9792
9950
|
store: { read: readLocalReview, save: saveLocalReview, drop: dropLocalReview },
|
|
9793
9951
|
tell: noteThroughComments(app),
|
|
9794
9952
|
broadcast
|
|
9795
|
-
});
|
|
9953
|
+
}).row;
|
|
9796
9954
|
mountSessionProcessRoutes(app, { list: () => listProcessUsage(), agentPid: ptyPid, kill: killTreeAsync });
|
|
9797
9955
|
mountCodeRoutes(app);
|
|
9798
9956
|
mountDiffSeenRoutes(app);
|
|
@@ -9887,6 +10045,7 @@ async function startWebServer(opts = {}) {
|
|
|
9887
10045
|
if (decayTick) clearInterval(decayTick);
|
|
9888
10046
|
stopPrWatch?.();
|
|
9889
10047
|
if (sleepTimer) clearInterval(sleepTimer);
|
|
10048
|
+
if (startupTimer) clearInterval(startupTimer);
|
|
9890
10049
|
if (conversationsTimer) clearInterval(conversationsTimer);
|
|
9891
10050
|
if (conversationsFirst) clearTimeout(conversationsFirst);
|
|
9892
10051
|
if (updatesFirst) clearTimeout(updatesFirst);
|
|
@@ -9918,37 +10077,44 @@ async function startWebServer(opts = {}) {
|
|
|
9918
10077
|
};
|
|
9919
10078
|
}
|
|
9920
10079
|
|
|
9921
|
-
// src/core/agents/
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
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
|
+
});
|
|
9934
10108
|
}
|
|
9935
|
-
if (
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
await
|
|
9940
|
-
|
|
9941
|
-
} catch (err) {
|
|
9942
|
-
deps.onError?.(err);
|
|
9943
|
-
return false;
|
|
9944
|
-
} finally {
|
|
9945
|
-
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" });
|
|
9946
10115
|
}
|
|
9947
|
-
}
|
|
9948
|
-
|
|
9949
|
-
const timer = every > 0 ? setInterval(() => void check(), every) : null;
|
|
9950
|
-
timer?.unref?.();
|
|
9951
|
-
return { check, stop: () => timer && clearInterval(timer) };
|
|
10116
|
+
}
|
|
10117
|
+
return out;
|
|
9952
10118
|
}
|
|
9953
10119
|
|
|
9954
10120
|
// src/core/platform/autostart.ts
|
|
@@ -12919,6 +13085,10 @@ async function startDemoServer(opts) {
|
|
|
12919
13085
|
broadcast({ event: "session-review-changed", data: { sessionId: w.id } });
|
|
12920
13086
|
return c.json(demoLocalReview(w));
|
|
12921
13087
|
});
|
|
13088
|
+
app.post(
|
|
13089
|
+
"/api/sessions/:id/review/seen",
|
|
13090
|
+
(c) => scenario.list().some((x) => x.id === c.req.param("id")) ? c.json({ ok: true }) : notFound(c)
|
|
13091
|
+
);
|
|
12922
13092
|
const demoDismissed = /* @__PURE__ */ new Map();
|
|
12923
13093
|
app.post("/api/sessions/:id/review/dismiss", async (c) => {
|
|
12924
13094
|
const w = scenario.list().find((x) => x.id === c.req.param("id"));
|
|
@@ -13334,7 +13504,7 @@ async function startDemoServer(opts) {
|
|
|
13334
13504
|
const id = c.req.param("id");
|
|
13335
13505
|
if (!scenario.list().some((x) => x.id === id)) return notFound(c);
|
|
13336
13506
|
const patch = cleanPlacePatch(await json2(c));
|
|
13337
|
-
if (!patch) return c.json({ error:
|
|
13507
|
+
if (!patch) return c.json({ error: PLACE_PATCH_EXPECTED }, 400);
|
|
13338
13508
|
if (patch.section && !rail.sections.some((s) => s.id === patch.section)) return c.json({ error: "no such section" }, 409);
|
|
13339
13509
|
const places = { ...rail.places };
|
|
13340
13510
|
const next = applyPlacePatch(places[id], patch);
|
|
@@ -13931,45 +14101,37 @@ function stopOnSignals(proc, stop) {
|
|
|
13931
14101
|
}
|
|
13932
14102
|
|
|
13933
14103
|
// src/commands/web.ts
|
|
13934
|
-
var
|
|
13935
|
-
|
|
13936
|
-
|
|
13937
|
-
|
|
13938
|
-
|
|
13939
|
-
|
|
13940
|
-
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
|
|
13944
|
-
|
|
13945
|
-
|
|
13946
|
-
|
|
13947
|
-
|
|
13948
|
-
|
|
13949
|
-
|
|
13950
|
-
|
|
13951
|
-
|
|
13952
|
-
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13957
|
-
|
|
13958
|
-
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
apply: o.apply ?? (() => reinstallAgentSetup(lean)),
|
|
13966
|
-
onError: swallow("set up a changed Claude account"),
|
|
13967
|
-
...o.everyMs !== void 0 ? { everyMs: o.everyMs } : {}
|
|
13968
|
-
});
|
|
13969
|
-
}
|
|
13970
|
-
function removeAgentHooksSync(lean) {
|
|
13971
|
-
const ours = (lean ? LEAN_HOOKS : FULL_HOOKS).map(({ owner, edge }) => ({ owner, edge }));
|
|
13972
|
-
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 };
|
|
13973
14135
|
}
|
|
13974
14136
|
function info(message) {
|
|
13975
14137
|
process.stderr.write(message + "\n");
|
|
@@ -14124,16 +14286,13 @@ var webCommand = {
|
|
|
14124
14286
|
(err) => info(chalk.yellow(`Could not restore sessions: ${err.message}`))
|
|
14125
14287
|
);
|
|
14126
14288
|
}
|
|
14127
|
-
|
|
14128
|
-
await setupAgentUsage(knownAgents(), loadConfig(), lean).catch(swallow("set up the usage readings"));
|
|
14129
|
-
const accountSync = startAccountSetupSync(lean);
|
|
14289
|
+
const hookMigration = await removeRetiredAgentSetup();
|
|
14130
14290
|
shutdown = (how) => {
|
|
14131
14291
|
life.end(how);
|
|
14132
|
-
|
|
14292
|
+
hookMigration.stop();
|
|
14133
14293
|
info(chalk.gray(`
|
|
14134
14294
|
Stopping work web (${how}).`));
|
|
14135
14295
|
clearWebDiscovery(process.pid);
|
|
14136
|
-
removeAgentHooksSync(lean);
|
|
14137
14296
|
void handle.stop().finally(() => process.exit(0));
|
|
14138
14297
|
};
|
|
14139
14298
|
stopOnSignals(process, (how) => shutdown(how));
|
|
@@ -14255,14 +14414,8 @@ async function runDemo(open) {
|
|
|
14255
14414
|
});
|
|
14256
14415
|
}
|
|
14257
14416
|
export {
|
|
14258
|
-
|
|
14259
|
-
LEAN_HOOKS,
|
|
14260
|
-
LEGACY_HOOKS,
|
|
14261
|
-
installAgentHooks,
|
|
14262
|
-
reinstallAgentSetup,
|
|
14263
|
-
removeAgentHooksSync,
|
|
14264
|
-
startAccountSetupSync,
|
|
14417
|
+
removeRetiredAgentSetup,
|
|
14265
14418
|
stopExisting,
|
|
14266
14419
|
webCommand
|
|
14267
14420
|
};
|
|
14268
|
-
//# sourceMappingURL=web-
|
|
14421
|
+
//# sourceMappingURL=web-P7TKPZFB.js.map
|