@staff0rd/assist 0.1217.4 → 0.1218.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/.build-files +308 -308
- package/dist/{acceptanceCriteria-Z4X2LJ76.js → acceptanceCriteria-XEBGBLX2.js} +3 -3
- package/dist/{add-FF5Q6BQI.js → add-4CUJG4JB.js} +13 -13
- package/dist/{add-JSTBSXZ3.js → add-D4WYNQFY.js} +13 -13
- package/dist/{add-IWYK3W5M.js → add-YRWJJQ2C.js} +6 -6
- package/dist/{addActivity-AM732YRL.js → addActivity-4AZB5FNU.js} +16 -16
- package/dist/{addPhase-VPFUHCL5.js → addPhase-LNPXIYPK.js} +19 -19
- package/dist/{advise-UL2U3HTZ.js → advise-MTBFUXTQ.js} +9 -9
- package/dist/{analyze-Z7PBB7GH.js → analyze-JOLM5YJX.js} +8 -8
- package/dist/{askCheck-PMVXCO27.js → askCheck-SX5W2VA4.js} +20 -20
- package/dist/{askDesign-IS2TMNZF.js → askDesign-SZ7K6CGJ.js} +6 -6
- package/dist/{askQuestion-TBU73HXV.js → askQuestion-3VF7VQOB.js} +3 -3
- package/dist/{associateGithub-7S3P6YHE.js → associateGithub-OI2HV45X.js} +12 -12
- package/dist/{associateJira-ID2CN5LN.js → associateJira-QZ5GVAUO.js} +12 -12
- package/dist/{backup-DTJ5SWLS.js → backup-EJ4YDBU7.js} +7 -7
- package/dist/{blockCodeComments-MPQCGHSM.js → blockCodeComments-KKJVPYPE.js} +3 -3
- package/dist/{branch-WKOEBJAP.js → branch-VE22QM2F.js} +13 -13
- package/dist/built-version +1 -1
- package/dist/{chunk-DOVFHJNY.js → chunk-24WESUC2.js} +4 -4
- package/dist/{chunk-4IMJ7CQC.js → chunk-2CRZID7T.js} +4 -4
- package/dist/{chunk-OB555FEP.js → chunk-2DPZIZ42.js} +2 -2
- package/dist/{chunk-FJMFJN4I.js → chunk-2H4JL7L2.js} +1 -1
- package/dist/{chunk-B2IK7E62.js → chunk-2H66TKDM.js} +2 -2
- package/dist/{chunk-QZRERFKY.js → chunk-2KN7ASRE.js} +1 -1
- package/dist/{chunk-KQOUE3WV.js → chunk-2T5KEQU2.js} +2 -2
- package/dist/{chunk-DM6BIOGS.js → chunk-2VQGIVEV.js} +4 -4
- package/dist/{chunk-X4QB3FR2.js → chunk-3DLJJ7YO.js} +1 -1
- package/dist/{chunk-VN4XGDT3.js → chunk-3FMGNYHM.js} +2 -2
- package/dist/{chunk-EAXNQVVA.js → chunk-3GTHD6ZV.js} +1 -1
- package/dist/{chunk-TU3ITOTX.js → chunk-3IAFZH5W.js} +1 -1
- package/dist/{chunk-GQQVK6FQ.js → chunk-3KPGFQ3F.js} +1 -1
- package/dist/{chunk-OWDIYTU6.js → chunk-3ODUG247.js} +1 -1
- package/dist/{chunk-BBE5K7OG.js → chunk-3RPXIPH5.js} +3 -3
- package/dist/{chunk-HB2TXZX4.js → chunk-3UMMZHZG.js} +1 -1
- package/dist/{chunk-NUFL54RI.js → chunk-3Z5L5WHU.js} +1 -1
- package/dist/{chunk-5RFKHBSM.js → chunk-44UXKNHE.js} +1 -1
- package/dist/{chunk-UFMLNNPI.js → chunk-4OOUSHS4.js} +1 -1
- package/dist/{chunk-4PMY4TGO.js → chunk-4RFTQWCL.js} +1 -1
- package/dist/{chunk-26ILULBB.js → chunk-52YCRYJ2.js} +1 -1
- package/dist/{chunk-2EPZWHHJ.js → chunk-5KNJD6WC.js} +1 -1
- package/dist/{chunk-SBSJWLH4.js → chunk-5NQOMW73.js} +3 -3
- package/dist/{chunk-A73N4XCX.js → chunk-5OFQ6V4L.js} +3 -3
- package/dist/{chunk-6Z4QIMRT.js → chunk-5PVYAAPY.js} +1 -1
- package/dist/{chunk-QGOHPST5.js → chunk-5VJSMKEI.js} +1 -1
- package/dist/{chunk-XYKW4XXO.js → chunk-6C255DOU.js} +3 -3
- package/dist/{chunk-RCK76YDN.js → chunk-6CCSWL4M.js} +3 -3
- package/dist/{chunk-JWMBBFAS.js → chunk-6KSMPTXN.js} +1 -1
- package/dist/{chunk-75LBNY5W.js → chunk-6N2MSR7W.js} +1 -1
- package/dist/{chunk-UIPXBXOZ.js → chunk-6YOKIMLO.js} +4 -4
- package/dist/{chunk-QZUIBXBB.js → chunk-74TXMB2S.js} +4 -4
- package/dist/{chunk-DFGM4JEV.js → chunk-7Q7JIS5A.js} +1 -1
- package/dist/{chunk-YUYMJUUS.js → chunk-7QTQJKJU.js} +4 -4
- package/dist/{chunk-VJQ4IRIH.js → chunk-AEKCC6KD.js} +2 -2
- package/dist/{chunk-Z7TJT7AA.js → chunk-AGPONQYH.js} +3 -3
- package/dist/{chunk-BNPRVYGA.js → chunk-ATKBOUCC.js} +74 -86
- package/dist/{chunk-JICBRHDQ.js → chunk-AZMAEXKI.js} +2 -2
- package/dist/{chunk-4W47FGN7.js → chunk-B2BQRFKG.js} +6 -6
- package/dist/{chunk-FLYNSV6L.js → chunk-BAIGEXPY.js} +20 -0
- package/dist/{chunk-74UX65VL.js → chunk-BN3MOJ5M.js} +5 -5
- package/dist/{chunk-2KKIQUZ2.js → chunk-BTGDQABT.js} +1 -1
- package/dist/{chunk-4VDOIG7I.js → chunk-CBIYDSXP.js} +2 -2
- package/dist/{chunk-Q24DISBB.js → chunk-CH5YE5ZY.js} +1 -1
- package/dist/{chunk-QK3AYGT3.js → chunk-COOAJPX2.js} +5 -0
- package/dist/{chunk-2D34QY2R.js → chunk-CUQ7A4YH.js} +2 -2
- package/dist/{chunk-T73ASAIR.js → chunk-D2AUYB7K.js} +1 -1
- package/dist/{chunk-WAA5VW37.js → chunk-DE2S5LHD.js} +1 -1
- package/dist/{chunk-3M6IUF5H.js → chunk-DNVC64PE.js} +1 -1
- package/dist/{chunk-FMGU4HY6.js → chunk-DQNR3DVY.js} +2 -2
- package/dist/{chunk-3OYU2N5M.js → chunk-E6PBA2GP.js} +1 -1
- package/dist/{chunk-BJOMALJ3.js → chunk-EN57YHHK.js} +1 -1
- package/dist/{chunk-XZH5ZX4E.js → chunk-ESGB5WWP.js} +4 -4
- package/dist/{chunk-2FF24W23.js → chunk-FGZBPUKI.js} +1 -1
- package/dist/{chunk-JNU3QO2L.js → chunk-FLEFGHDA.js} +2 -2
- package/dist/{chunk-FXIJIVYO.js → chunk-FPFQBHN6.js} +2 -2
- package/dist/{chunk-YQRLH4YY.js → chunk-G5IRYDTJ.js} +9 -9
- package/dist/{chunk-ZN3Q7UFD.js → chunk-GEDUARWV.js} +1 -1
- package/dist/{chunk-LEZEMQLA.js → chunk-GJBG3NPA.js} +1 -1
- package/dist/{chunk-VSAPOSGT.js → chunk-HANSK4D3.js} +3 -3
- package/dist/{chunk-EBXL5VMN.js → chunk-HOZ7ATOX.js} +1 -1
- package/dist/{chunk-5AAHWTRQ.js → chunk-HRQ7LBXR.js} +1 -1
- package/dist/{chunk-NE5XRT62.js → chunk-IKLTX6LK.js} +1 -1
- package/dist/{chunk-MKJE7N63.js → chunk-IMRV7TTC.js} +2 -2
- package/dist/{chunk-PTWD34JK.js → chunk-INQATDX5.js} +1 -1
- package/dist/{chunk-AWJND3GR.js → chunk-IY5I25AQ.js} +1 -1
- package/dist/{chunk-ERCHD5UR.js → chunk-IYF5PSNI.js} +2 -2
- package/dist/{chunk-BHB7X7F2.js → chunk-JACNTANB.js} +1 -1
- package/dist/{chunk-HOBSS6DQ.js → chunk-JEWWWHLD.js} +2 -2
- package/dist/{chunk-JUJDS7IF.js → chunk-JNKOMM7O.js} +1 -1
- package/dist/{chunk-KQE6OV74.js → chunk-KDYJRHCI.js} +1 -1
- package/dist/{chunk-DYD5UR25.js → chunk-KHAZCMO7.js} +1 -1
- package/dist/{chunk-NQJZHXHO.js → chunk-KPVSCQHQ.js} +5 -5
- package/dist/{chunk-QO2XCM66.js → chunk-KUP523UM.js} +1 -1
- package/dist/{chunk-3LNSR6EC.js → chunk-LD3XPXI4.js} +2 -2
- package/dist/{chunk-UTZE4ATH.js → chunk-LDHAD3WT.js} +1 -1
- package/dist/{chunk-5QBWGZWK.js → chunk-LLUXIEWN.js} +1 -1
- package/dist/{chunk-CEAE5GZX.js → chunk-MBSMCUTL.js} +2 -2
- package/dist/{chunk-S2GJNVPT.js → chunk-NGG4N5VZ.js} +3 -3
- package/dist/{chunk-NGOIVQ7G.js → chunk-NTGC7G2R.js} +7 -7
- package/dist/{chunk-XBK5BPVU.js → chunk-NWCNDJBK.js} +2 -2
- package/dist/{chunk-4MPKR3NH.js → chunk-OCMUGVGR.js} +2 -2
- package/dist/{chunk-GJWUEPPD.js → chunk-OL4L2AJB.js} +1 -1
- package/dist/{chunk-ORVF4YMU.js → chunk-OLZUN3VT.js} +1 -1
- package/dist/{chunk-Z6SJ3QDL.js → chunk-ORIIRECU.js} +2 -2
- package/dist/{chunk-CS7HC5ZN.js → chunk-PE32O6NT.js} +1 -1
- package/dist/{chunk-JA2OX46V.js → chunk-PIPTIJL2.js} +1 -1
- package/dist/{chunk-FXHWBMMO.js → chunk-PIT3SCFZ.js} +1 -1
- package/dist/{chunk-VAIIMCSB.js → chunk-PO3TZZWH.js} +1 -1
- package/dist/{chunk-VPJ265PL.js → chunk-PUGP4ASE.js} +1 -1
- package/dist/{chunk-OQ6MDS26.js → chunk-QG4RCKUR.js} +1 -1
- package/dist/{chunk-YC6BVWED.js → chunk-QORRJWOV.js} +3 -3
- package/dist/{chunk-ZB2FO6CM.js → chunk-R3BKXOWM.js} +5 -5
- package/dist/{chunk-7ZPDPCA6.js → chunk-R3NP33DG.js} +1 -1
- package/dist/{chunk-QOEANTK2.js → chunk-RIEGRLAV.js} +1 -1
- package/dist/{chunk-IUZKITBG.js → chunk-RKNMJQF6.js} +4 -4
- package/dist/{chunk-XYZPWUS6.js → chunk-RV5U5FUG.js} +1 -1
- package/dist/{chunk-YPJYLZFE.js → chunk-RZGFTEWF.js} +1 -1
- package/dist/{chunk-HMK7EFEL.js → chunk-S4NSHQQ3.js} +1 -1
- package/dist/{chunk-JXSVTYHL.js → chunk-SAJJDV4D.js} +1 -1
- package/dist/{chunk-O2S3GTAV.js → chunk-SGZ57DJO.js} +2 -2
- package/dist/{chunk-WYKZNCOJ.js → chunk-SLTINDT7.js} +7 -7
- package/dist/{chunk-PXP35WEE.js → chunk-SUBQSZT6.js} +1 -1
- package/dist/{chunk-W4AXRI6K.js → chunk-T6WF6NZA.js} +3 -3
- package/dist/{chunk-JMHNLOLN.js → chunk-TBHJ7JDT.js} +1 -1
- package/dist/{chunk-S6G65GYJ.js → chunk-TGCXWMNU.js} +2 -2
- package/dist/{chunk-YHV4UETG.js → chunk-TLJTRWSR.js} +3 -3
- package/dist/{chunk-PQX57SJI.js → chunk-TQE2ESNJ.js} +1 -1
- package/dist/{chunk-7GSALENY.js → chunk-TUFEEHAQ.js} +1 -1
- package/dist/{chunk-S5PTNGA6.js → chunk-U7PTJT5H.js} +1 -1
- package/dist/{chunk-5SZCYNLP.js → chunk-UCG62BKS.js} +4 -4
- package/dist/{chunk-X3WNIE7X.js → chunk-UKOLKKXA.js} +1 -1
- package/dist/{chunk-URDVQKVL.js → chunk-UXTGRDNK.js} +1 -1
- package/dist/{chunk-MYXYQBTM.js → chunk-V23C35QR.js} +2 -2
- package/dist/{chunk-4VCL6RJV.js → chunk-VDZC5Z6J.js} +1 -1
- package/dist/{chunk-SF2RHLX2.js → chunk-VJRGFE6Q.js} +4 -4
- package/dist/{chunk-UX47UP2J.js → chunk-VOZOQ7ZU.js} +15 -15
- package/dist/{chunk-VTXNOOK4.js → chunk-WBAX4BSZ.js} +2 -2
- package/dist/{chunk-ER3BDSIW.js → chunk-WGJ6DQJE.js} +1 -0
- package/dist/{chunk-7FANAVGR.js → chunk-WM5GLHOH.js} +2 -2
- package/dist/{chunk-UL77JFUV.js → chunk-WNGDSEGH.js} +1 -1
- package/dist/{chunk-N3S5RZYX.js → chunk-WPRXBDFP.js} +2 -2
- package/dist/{chunk-AXYRT6ML.js → chunk-WYFBSXSE.js} +1 -1
- package/dist/{chunk-T5CZSBHN.js → chunk-XE57ISQA.js} +2 -2
- package/dist/{chunk-CVMH6FBE.js → chunk-XEHE4IC2.js} +3 -3
- package/dist/{chunk-VFJK5XMC.js → chunk-XK4M657P.js} +3 -3
- package/dist/{chunk-MTJ7K2HN.js → chunk-XRF72RTU.js} +1 -1
- package/dist/{chunk-J2OF6KJ4.js → chunk-XSDG7HTJ.js} +1 -1
- package/dist/{chunk-EY2ZKTMX.js → chunk-YBVGYTVF.js} +3 -3
- package/dist/{chunk-Y7VRIUV2.js → chunk-YFMOM6DS.js} +2 -2
- package/dist/{chunk-TH42OUCW.js → chunk-YS46IJ4M.js} +1 -1
- package/dist/{chunk-2MZYTQLA.js → chunk-YULBR2Q3.js} +5 -5
- package/dist/{chunk-YOIQPXYX.js → chunk-YYLGARCU.js} +2 -2
- package/dist/{chunk-JEARMN2W.js → chunk-ZBTMEDOQ.js} +1 -1
- package/dist/{chunk-5AQT32G3.js → chunk-ZCHL3A35.js} +2 -2
- package/dist/{chunk-VJULCOYT.js → chunk-ZKBD7ZIP.js} +1 -1
- package/dist/{chunk-C42HQYEM.js → chunk-ZM7TLHFV.js} +1 -1
- package/dist/{chunk-RQL36BCO.js → chunk-ZOSBOEVL.js} +3 -3
- package/dist/{chunk-MF7O7S5J.js → chunk-ZT3S2DV2.js} +1 -1
- package/dist/{chunk-WSCL7Z3D.js → chunk-ZVZVCVIM.js} +1 -1
- package/dist/{cliHook-7PQM2WTM.js → cliHook-66JBCEHG.js} +16 -16
- package/dist/{cliHookCheck-ENGKSBCU.js → cliHookCheck-6VEZGNQI.js} +7 -7
- package/dist/{cloneRepo-V6FNSQIG.js → cloneRepo-MXTIKSCO.js} +3 -3
- package/dist/{codexHook-OJLZXVU5.js → codexHook-5LK4N2AU.js} +19 -19
- package/dist/commands/extension/extension/content.js +1 -1
- package/dist/commands/sessions/web/bundle.js +462 -462
- package/dist/{comment-MSV2E635.js → comment-PECXLR5X.js} +12 -12
- package/dist/{comments-FCCBRXJE.js → comments-KMBBATZY.js} +11 -11
- package/dist/{commit-ZQJTHHFX.js → commit-YWSX4PND.js} +16 -16
- package/dist/{configGet-564MKBJM.js → configGet-NYQ7DYQP.js} +15 -15
- package/dist/{configImportRepos-6KAAV3PO.js → configImportRepos-22744MRY.js} +13 -13
- package/dist/{configImportUser-M3SHYURA.js → configImportUser-PGLKV34X.js} +13 -13
- package/dist/{configKeys-G6OXD42P.js → configKeys-HUCVHIHK.js} +6 -6
- package/dist/{configKeys-WPCJK4PQ.js → configKeys-Z5MCLQGD.js} +6 -6
- package/dist/{configList-DF22GHUK.js → configList-P7APC3Q7.js} +9 -9
- package/dist/{configSet-MJILD7YZ.js → configSet-DVOC5YE5.js} +22 -22
- package/dist/{configUnset-QEK3UPIN.js → configUnset-XUK7HZ3K.js} +15 -15
- package/dist/{configure-66HVIQRV.js → configure-MMHGQQ63.js} +3 -3
- package/dist/{cyclomatic-Q445TIJ2.js → cyclomatic-SN7J4FZI.js} +5 -5
- package/dist/{del-ZKJEE4M5.js → del-ESYAFNR7.js} +11 -11
- package/dist/{deleteCommentCmd-IFGWRGJK.js → deleteCommentCmd-LUVF6AJD.js} +12 -12
- package/dist/{denyAdd-2IY3INRJ.js → denyAdd-Z25MTJPC.js} +4 -4
- package/dist/{denyList-ATPLLBZ6.js → denyList-R2PWC4UT.js} +3 -3
- package/dist/{denyRemove-LPQT57FC.js → denyRemove-IM63BRTG.js} +4 -4
- package/dist/{docsConfirm-7BB72JTA.js → docsConfirm-GKP6R67F.js} +13 -13
- package/dist/{docsScreenshots-JDCKHHDG.js → docsScreenshots-42NNTXTN.js} +11 -11
- package/dist/{docsUnlock-5LTKHHCE.js → docsUnlock-KA4SIVV6.js} +11 -11
- package/dist/{doctorNodes-5HZQ6IPJ.js → doctorNodes-MR5C4FAF.js} +10 -10
- package/dist/{done-OERWZMJP.js → done-6SQ4ZFU5.js} +18 -18
- package/dist/{editHook-4CUMAXR3.js → editHook-ZJBYDJ7A.js} +16 -16
- package/dist/{exportBacklog-P3OZGQRO.js → exportBacklog-RHYKW53H.js} +7 -7
- package/dist/{fixConflict-WKSG5ZUX.js → fixConflict-CK6BZSOB.js} +10 -10
- package/dist/{fixed-WJHMLGLY.js → fixed-ZQANYVQO.js} +3 -3
- package/dist/{forbiddenStrings-SR6LTCOP.js → forbiddenStrings-CIBVOC35.js} +3 -3
- package/dist/{formatConfiguredCommands-6CLQBME3.js → formatConfiguredCommands-PIAMOGBE.js} +6 -6
- package/dist/{getBacklogDir-WNFRVQVE.js → getBacklogDir-IL4JMN4U.js} +4 -4
- package/dist/{halstead-CVZX4SOF.js → halstead-7LWFP54Q.js} +5 -5
- package/dist/{hardcodedColors-DUU7DXW5.js → hardcodedColors-CRNPJOC3.js} +3 -3
- package/dist/{harnessFollowUps-XKDIX2WZ.js → harnessFollowUps-GQEAJFWL.js} +11 -11
- package/dist/{importBacklog-HOTLJWSZ.js → importBacklog-AJPO5X4L.js} +6 -6
- package/dist/index.js +196 -196
- package/dist/{init-HV645KRN.js → init-5LWOGRPG.js} +5 -5
- package/dist/{init-IXR4BVGE.js → init-SI6OYS3T.js} +4 -4
- package/dist/{inspect-TTTUUDUX.js → inspect-FPQFTDYV.js} +5 -5
- package/dist/{launchMode-AIHMC7VO.js → launchMode-2AV2GQZV.js} +35 -35
- package/dist/{link-RHAK7YH4.js → link-TJO2QD4G.js} +3 -3
- package/dist/{link-FQDXJJXS.js → link-Z7VOZLYM.js} +11 -11
- package/dist/{linkNode-ZORQUKBU.js → linkNode-CNA4X7YA.js} +8 -8
- package/dist/{list-4HLW4RH5.js → list-56JRH46E.js} +6 -6
- package/dist/{list-56AQEY5E.js → list-6A2P3HKK.js} +6 -6
- package/dist/{list-BHG7737H.js → list-APY4AEDW.js} +3 -3
- package/dist/{list-U7BT5653.js → list-B53EGB5N.js} +19 -19
- package/dist/{list-6NWATUFM.js → list-DP3VGAHB.js} +5 -5
- package/dist/{list-JK44SVFR.js → list-LGP2TP2C.js} +7 -7
- package/dist/{listModels-KSEQCCEL.js → listModels-I26R42AD.js} +4 -4
- package/dist/{listNodes-NVZL76FV.js → listNodes-J2EQNSSY.js} +5 -5
- package/dist/{maintainability-WQN6JJJM.js → maintainability-F3B533PV.js} +5 -5
- package/dist/{mermaidExport-A4CVGAWQ.js → mermaidExport-HOO24TLF.js} +3 -3
- package/dist/{migrate-GCUCBKXC.js → migrate-EQEBYLSV.js} +12 -12
- package/dist/{migrations-IRD7J2BD.js → migrations-3BNKFCHW.js} +3 -3
- package/dist/{move-RN4LE2SW.js → move-5JYH35UE.js} +3 -3
- package/dist/{movePhase-MAP42ZMQ.js → movePhase-EFIGUD2Z.js} +12 -12
- package/dist/{moveRepo-DN75IR33.js → moveRepo-2AEYZ57H.js} +11 -11
- package/dist/{newCli-O3BXVIXV.js → newCli-2ZSE67NN.js} +9 -9
- package/dist/{newProject-PRZIV7KP.js → newProject-VEQTJQBG.js} +4 -4
- package/dist/{next-AEISXUUF.js → next-G5K5TM3V.js} +33 -33
- package/dist/{next-JJNIBYNZ.js → next-MDRRZOPK.js} +5 -5
- package/dist/{nodeLogs-IGZSN3ZS.js → nodeLogs-VFH5NMNQ.js} +5 -5
- package/dist/{notify-4MIQCSWO.js → notify-RAOCJB3D.js} +3 -3
- package/dist/{phaseDone-DSBVKOZC.js → phaseDone-X77US4BL.js} +21 -21
- package/dist/{piHook-BURLNM5A.js → piHook-PHJVAO43.js} +16 -16
- package/dist/{plan-NAR7TL6V.js → plan-OW4PBM3D.js} +11 -11
- package/dist/{postSlackMessage-TMWPJQPP.js → postSlackMessage-3UJXP3L7.js} +4 -4
- package/dist/{posted-YPKUDYQD.js → posted-IWCNHM4Z.js} +5 -5
- package/dist/{propose-KNABVYU4.js → propose-V4APKP64.js} +21 -21
- package/dist/{prsSlackChannel-FBSIXKM6.js → prsSlackChannel-RRF5V4CV.js} +3 -3
- package/dist/{pullIfConfigured-IBF4WD7R.js → pullIfConfigured-4USF6G4C.js} +4 -4
- package/dist/{raise-Y3FDHE7R.js → raise-BJKFEN5V.js} +10 -10
- package/dist/{raiseHelpText-O4J6SIJN.js → raiseHelpText-WDS7OOLL.js} +3 -3
- package/dist/{ravendbAuth-TWBEWHAF.js → ravendbAuth-K4O5X7SW.js} +4 -4
- package/dist/{ravendbCollections-TQ2J2U7B.js → ravendbCollections-WLU5G6FM.js} +4 -4
- package/dist/{ravendbQuery-WMQ2JQPE.js → ravendbQuery-PTLSLJZD.js} +4 -4
- package/dist/{ravendbSetConnection-24WTZYSF.js → ravendbSetConnection-TLNWNJ2W.js} +4 -4
- package/dist/{readTime-ZGZJKVV6.js → readTime-CM5ZYNDH.js} +3 -3
- package/dist/{recordSlack-HNDOADKD.js → recordSlack-Q253D73H.js} +8 -8
- package/dist/{refine-VBWUCMR3.js → refine-U245OW2L.js} +37 -37
- package/dist/{refreshDocs-5WDVIT22.js → refreshDocs-U4YJUKMF.js} +12 -12
- package/dist/{refuseParallelPhasesOff-Y33XLX57.js → refuseParallelPhasesOff-PLVAYHCC.js} +4 -4
- package/dist/{releasesConfigure-BOUN2FX4.js → releasesConfigure-4A4MQSRZ.js} +13 -13
- package/dist/{releasesList-ALRB5MVD.js → releasesList-ZFZW6B3E.js} +3 -3
- package/dist/{remove-NCTMQR7P.js → remove-PXWTVMEF.js} +6 -6
- package/dist/{remove-EASMC2JW.js → remove-SAQGYVFB.js} +13 -13
- package/dist/{removePhase-7SAHZSDJ.js → removePhase-TGS35MT2.js} +13 -13
- package/dist/{reportCliError-AHGP3PZN.js → reportCliError-6XMKVTC2.js} +6 -6
- package/dist/{repos-PPGMWO4B.js → repos-L6QZPFLY.js} +4 -4
- package/dist/{resolveHarness-Q53GCTJE.js → resolveHarness-YRE5RGUF.js} +4 -4
- package/dist/{resolveModel-G7GJGUAY.js → resolveModel-ZM3F2HT5.js} +4 -4
- package/dist/{restartDaemon-SGNXXO6H.js → restartDaemon-CN5I6QIB.js} +5 -5
- package/dist/{restartNode-3MTDY3UY.js → restartNode-Y4IHGBFW.js} +10 -10
- package/dist/{restructure-NBVT3EZS.js → restructure-TA7QDOCD.js} +3 -3
- package/dist/{review-6ZV6272L.js → review-RWWCSIRN.js} +330 -274
- package/dist/{reviewPrComments-5LXAP6G5.js → reviewPrComments-MKPSQ6BR.js} +10 -10
- package/dist/{rewindPhase-HXENH4NQ.js → rewindPhase-SZFVC6W5.js} +23 -23
- package/dist/{rulesAdd-VIY2XT3H.js → rulesAdd-D45FIH5B.js} +17 -17
- package/dist/{run-UJTFXZUG.js → run-FYD73JOG.js} +30 -30
- package/dist/{run-3F43QON5.js → run-JXWKKDT5.js} +36 -36
- package/dist/{runDaemon-KBN2FOBR.js → runDaemon-5SPXM7TW.js} +33 -33
- package/dist/{runExtract-Q6OMVRSJ.js → runExtract-3JTDFR6J.js} +17 -17
- package/dist/{runParallelPhase-QECCEFMQ.js → runParallelPhase-VXN3OZXF.js} +23 -23
- package/dist/{runRefine-TGDYSBIQ.js → runRefine-MDYWKJ3O.js} +38 -38
- package/dist/{runScope-A6IRHEBF.js → runScope-5LRSM72L.js} +7 -7
- package/dist/{scan-F2FXXVOF.js → scan-VAQU6SGK.js} +11 -11
- package/dist/{scheduleBackup-4T3CJO2H.js → scheduleBackup-54EWHDEV.js} +3 -3
- package/dist/{schemaConfirm-YQWR5EOE.js → schemaConfirm-6TEMFXGX.js} +17 -17
- package/dist/{schemaLock-L5LTZVSJ.js → schemaLock-WKR3Y542.js} +15 -15
- package/dist/{schemaUnlock-LKT2GJMZ.js → schemaUnlock-BYFQUMQ2.js} +15 -15
- package/dist/{screenshot-VBQAQHBJ.js → screenshot-T4DRNBK6.js} +3 -3
- package/dist/{search-EDYBLIOS.js → search-RGWI5N3E.js} +18 -18
- package/dist/{seqAuth-MRYKISJL.js → seqAuth-NQVZGRLK.js} +4 -4
- package/dist/{seqQuery-YSVBSZ4R.js → seqQuery-JK7J6C2Q.js} +4 -4
- package/dist/{seqSetConnection-IUQE7N2Y.js → seqSetConnection-D4HGDG7P.js} +4 -4
- package/dist/{setStatusCommand-IGSZKAF3.js → setStatusCommand-ZJSCFPQZ.js} +11 -11
- package/dist/{show-UI6QW7R7.js → show-AF3AHY3O.js} +8 -8
- package/dist/{show-SAD23YAK.js → show-MPJ5KOKQ.js} +18 -18
- package/dist/{signExtension-5Q2OQCZV.js → signExtension-AHXRV5XT.js} +1 -1
- package/dist/{skip-TSCPOI7Q.js → skip-TB5RVVIN.js} +13 -13
- package/dist/{slack-VESXSF3I.js → slack-24IRGK5S.js} +6 -6
- package/dist/{sloc-5JI7UOFV.js → sloc-B5JOWJRP.js} +5 -5
- package/dist/{sqlAuth-EKERA6B4.js → sqlAuth-SBBMA7RX.js} +4 -4
- package/dist/{sqlColumns-TYFSP7GA.js → sqlColumns-ELADQECZ.js} +5 -5
- package/dist/{sqlMutate-LP4XZTQY.js → sqlMutate-LCTRWC53.js} +5 -5
- package/dist/{sqlQuery-FB2GWJV3.js → sqlQuery-VHAJOJSI.js} +5 -5
- package/dist/{sqlSetConnection-OFOEY75D.js → sqlSetConnection-QRR6OSQF.js} +4 -4
- package/dist/{sqlTables-OAJ575CH.js → sqlTables-TRTNU7EH.js} +5 -5
- package/dist/{star-AH6XA4XY.js → star-RHVXAXXF.js} +13 -13
- package/dist/{start-E3DHKNWV.js → start-YQAP6TWJ.js} +11 -11
- package/dist/{status-EVEAG6M7.js → status-G3YJU73I.js} +6 -6
- package/dist/{stop-Q2MOYRUU.js → stop-YJE65M5Q.js} +11 -11
- package/dist/{sync-ZXOYIHNP.js → sync-RFPNARXO.js} +3 -3
- package/dist/{testflightAdd-BXVYMMEA.js → testflightAdd-MAKNT5XQ.js} +3 -3
- package/dist/{unlink-URWN5N5Q.js → unlink-GVAEMNKX.js} +11 -11
- package/dist/{unlinkNode-GKFA7U4W.js → unlinkNode-5BA3CO3K.js} +7 -7
- package/dist/{unstar-3NROQLQD.js → unstar-XNTVLPXX.js} +13 -13
- package/dist/{update-RGQAZWZO.js → update-E76HUW3G.js} +11 -11
- package/dist/{update-TZ7H4C2Z.js → update-V46T4YOF.js} +6 -6
- package/dist/{updateNode-XLNH2SHX.js → updateNode-3EH44S2Z.js} +10 -10
- package/dist/{updatePhase-3YMRLEB4.js → updatePhase-FXTGDEK4.js} +12 -12
- package/dist/{updatePlan-VG5CYX7Z.js → updatePlan-JPQNCN43.js} +19 -19
- package/dist/{version-SD3HTBJ2.js → version-IEG2E2RP.js} +5 -5
- package/dist/{watchWait-3ROYFVMY.js → watchWait-GJXTBZZM.js} +8 -8
- package/dist/{web-IIYRREHL.js → web-2RV7AVAP.js} +73 -73
- package/dist/{web-R5V7RYR3.js → web-PPEZAIVF.js} +73 -73
- package/dist/{withPool-OXM4WN4L.js → withPool-TW3VJ4EX.js} +6 -6
- package/dist/{wontdo-I4M7APVY.js → wontdo-2HNFVYQM.js} +12 -12
- package/dist/{write-6SA2LHMX.js → write-TISGBUEY.js} +5 -5
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
parseRepoScopeFlag,
|
|
6
6
|
writeConfigKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-B2BQRFKG.js";
|
|
8
8
|
import {
|
|
9
9
|
comment
|
|
10
10
|
} from "./chunk-THOZAKU5.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunk-ENTJ2N5Y.js";
|
|
14
14
|
import {
|
|
15
15
|
announcePr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-RZGFTEWF.js";
|
|
17
17
|
import {
|
|
18
18
|
countReadingWords
|
|
19
19
|
} from "./chunk-O6HFT23O.js";
|
|
@@ -29,8 +29,8 @@ import {
|
|
|
29
29
|
} from "./chunk-RFMBA6WA.js";
|
|
30
30
|
import {
|
|
31
31
|
checkoutPr
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-MBSMCUTL.js";
|
|
33
|
+
import "./chunk-2CRZID7T.js";
|
|
34
34
|
import "./chunk-2GTVP7JI.js";
|
|
35
35
|
import "./chunk-V3AWLJ7P.js";
|
|
36
36
|
import "./chunk-UN4ABKA7.js";
|
|
@@ -44,11 +44,14 @@ import {
|
|
|
44
44
|
} from "./chunk-SO3IBV6J.js";
|
|
45
45
|
import {
|
|
46
46
|
coerceCliConfigValue
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-74TXMB2S.js";
|
|
48
48
|
import {
|
|
49
49
|
exitWithConfigErrors
|
|
50
50
|
} from "./chunk-JPRADR2E.js";
|
|
51
51
|
import "./chunk-C3MGHR3N.js";
|
|
52
|
+
import {
|
|
53
|
+
mapAsync
|
|
54
|
+
} from "./chunk-2JYMVJGZ.js";
|
|
52
55
|
import {
|
|
53
56
|
launchBlocker
|
|
54
57
|
} from "./chunk-24YN3552.js";
|
|
@@ -56,7 +59,7 @@ import {
|
|
|
56
59
|
OneShotUnavailableError,
|
|
57
60
|
resolveOneShotHarness,
|
|
58
61
|
runOneShotPrompt
|
|
59
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-ORIIRECU.js";
|
|
60
63
|
import "./chunk-HKGCLAZ7.js";
|
|
61
64
|
import {
|
|
62
65
|
awaitHarness
|
|
@@ -88,6 +91,7 @@ import "./chunk-3VDV7VHX.js";
|
|
|
88
91
|
import {
|
|
89
92
|
configEntryLayers,
|
|
90
93
|
ghFailure,
|
|
94
|
+
ghRawFileAtSha,
|
|
91
95
|
highLevelProgressPath,
|
|
92
96
|
highLevelReviewPath,
|
|
93
97
|
loadHighLevelProgress,
|
|
@@ -95,15 +99,15 @@ import {
|
|
|
95
99
|
readStoredHighLevelProgress,
|
|
96
100
|
saveHighLevelProgress,
|
|
97
101
|
writeJsonFile
|
|
98
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-BAIGEXPY.js";
|
|
99
103
|
import {
|
|
100
104
|
stripAnsi
|
|
101
105
|
} from "./chunk-YJ72SXVD.js";
|
|
102
|
-
import "./chunk-
|
|
106
|
+
import "./chunk-3KPGFQ3F.js";
|
|
103
107
|
import {
|
|
104
108
|
readRawConfigLayers
|
|
105
|
-
} from "./chunk-
|
|
106
|
-
import "./chunk-
|
|
109
|
+
} from "./chunk-CBIYDSXP.js";
|
|
110
|
+
import "./chunk-GEDUARWV.js";
|
|
107
111
|
import "./chunk-YR3NOIK4.js";
|
|
108
112
|
import "./chunk-WYNRHOR7.js";
|
|
109
113
|
import "./chunk-PIDKNOD6.js";
|
|
@@ -111,22 +115,22 @@ import "./chunk-ZFX4EZMW.js";
|
|
|
111
115
|
import {
|
|
112
116
|
runGhOrThrow
|
|
113
117
|
} from "./chunk-JHBA5IZR.js";
|
|
114
|
-
import "./chunk-
|
|
118
|
+
import "./chunk-BN3MOJ5M.js";
|
|
115
119
|
import "./chunk-VPMI4LV2.js";
|
|
116
|
-
import "./chunk-
|
|
117
|
-
import "./chunk-
|
|
118
|
-
import "./chunk-
|
|
120
|
+
import "./chunk-UCG62BKS.js";
|
|
121
|
+
import "./chunk-3GTHD6ZV.js";
|
|
122
|
+
import "./chunk-TQE2ESNJ.js";
|
|
119
123
|
import "./chunk-YOFY27RM.js";
|
|
120
|
-
import "./chunk-
|
|
121
|
-
import "./chunk-
|
|
122
|
-
import "./chunk-
|
|
124
|
+
import "./chunk-5NQOMW73.js";
|
|
125
|
+
import "./chunk-DQNR3DVY.js";
|
|
126
|
+
import "./chunk-VDZC5Z6J.js";
|
|
123
127
|
import "./chunk-OU6Q5ZS3.js";
|
|
124
|
-
import "./chunk-
|
|
128
|
+
import "./chunk-AZMAEXKI.js";
|
|
125
129
|
import "./chunk-B5ZOANOD.js";
|
|
126
130
|
import "./chunk-YNHPTUHS.js";
|
|
127
|
-
import "./chunk-
|
|
131
|
+
import "./chunk-PO3TZZWH.js";
|
|
128
132
|
import "./chunk-UOYZCIWZ.js";
|
|
129
|
-
import "./chunk-
|
|
133
|
+
import "./chunk-4OOUSHS4.js";
|
|
130
134
|
import "./chunk-A2XSU5K6.js";
|
|
131
135
|
import "./chunk-5H7EHZ3J.js";
|
|
132
136
|
import {
|
|
@@ -139,10 +143,10 @@ import "./chunk-2EW62DM5.js";
|
|
|
139
143
|
import {
|
|
140
144
|
getDb,
|
|
141
145
|
jobRuns
|
|
142
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-XEHE4IC2.js";
|
|
143
147
|
import "./chunk-EKKGNYON.js";
|
|
144
|
-
import "./chunk-
|
|
145
|
-
import "./chunk-
|
|
148
|
+
import "./chunk-WPRXBDFP.js";
|
|
149
|
+
import "./chunk-TBHJ7JDT.js";
|
|
146
150
|
import "./chunk-LKDW2GWH.js";
|
|
147
151
|
import {
|
|
148
152
|
formatUnavailable,
|
|
@@ -153,10 +157,10 @@ import {
|
|
|
153
157
|
printReviewerFailure,
|
|
154
158
|
resolveCodexModel,
|
|
155
159
|
reviewerLabel
|
|
156
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-6C255DOU.js";
|
|
157
161
|
import "./chunk-MRUIXQXS.js";
|
|
158
162
|
import "./chunk-YLQAQHRT.js";
|
|
159
|
-
import "./chunk-
|
|
163
|
+
import "./chunk-HRQ7LBXR.js";
|
|
160
164
|
import "./chunk-W7TRZLEM.js";
|
|
161
165
|
import "./chunk-P26XSDFU.js";
|
|
162
166
|
import "./chunk-QC6JEJEO.js";
|
|
@@ -182,18 +186,18 @@ import {
|
|
|
182
186
|
addressCommentsChainFeature
|
|
183
187
|
} from "./chunk-GVVK5XFZ.js";
|
|
184
188
|
import "./chunk-EOOPPGMZ.js";
|
|
185
|
-
import "./chunk-
|
|
189
|
+
import "./chunk-RV5U5FUG.js";
|
|
186
190
|
import {
|
|
187
191
|
loadConfig
|
|
188
|
-
} from "./chunk-
|
|
189
|
-
import "./chunk-
|
|
192
|
+
} from "./chunk-YS46IJ4M.js";
|
|
193
|
+
import "./chunk-XSDG7HTJ.js";
|
|
190
194
|
import "./chunk-GRXFWFGP.js";
|
|
191
195
|
import "./chunk-TVQY3HPZ.js";
|
|
192
196
|
import "./chunk-CGYVYHMM.js";
|
|
193
197
|
import {
|
|
194
198
|
findRepoRoot
|
|
195
199
|
} from "./chunk-WXQ3EA5H.js";
|
|
196
|
-
import "./chunk-
|
|
200
|
+
import "./chunk-WGJ6DQJE.js";
|
|
197
201
|
import "./chunk-HN7MFXZ7.js";
|
|
198
202
|
import {
|
|
199
203
|
defaultCriticalPaths
|
|
@@ -549,153 +553,6 @@ function announceSavedReview(subject, force) {
|
|
|
549
553
|
);
|
|
550
554
|
}
|
|
551
555
|
|
|
552
|
-
// src/commands/review/highLevel/groupFilesByDirectory.ts
|
|
553
|
-
var emptyDirectoryGroup = () => ({
|
|
554
|
-
dirs: /* @__PURE__ */ new Map(),
|
|
555
|
-
files: []
|
|
556
|
-
});
|
|
557
|
-
function place(root, file) {
|
|
558
|
-
const segments = file.path.split("/").filter(Boolean);
|
|
559
|
-
segments.pop();
|
|
560
|
-
let at = root;
|
|
561
|
-
for (const segment of segments) {
|
|
562
|
-
const next = at.dirs.get(segment) ?? emptyDirectoryGroup();
|
|
563
|
-
at.dirs.set(segment, next);
|
|
564
|
-
at = next;
|
|
565
|
-
}
|
|
566
|
-
at.files.push(file);
|
|
567
|
-
}
|
|
568
|
-
function groupFilesByDirectory(files) {
|
|
569
|
-
const root = emptyDirectoryGroup();
|
|
570
|
-
for (const file of files) place(root, file);
|
|
571
|
-
return root;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
// src/commands/review/highLevel/buildHighLevelTree.ts
|
|
575
|
-
function basename(path) {
|
|
576
|
-
return path.slice(path.lastIndexOf("/") + 1);
|
|
577
|
-
}
|
|
578
|
-
function sum(nodes, key) {
|
|
579
|
-
return nodes.reduce((total, node) => total + node[key], 0);
|
|
580
|
-
}
|
|
581
|
-
function byName(a, b) {
|
|
582
|
-
return a.name.localeCompare(b.name);
|
|
583
|
-
}
|
|
584
|
-
function nodesOf(at, prefix) {
|
|
585
|
-
const dirs = [...at.dirs].map(
|
|
586
|
-
([name2, child]) => collapsedDirNode(name2, child, prefix)
|
|
587
|
-
);
|
|
588
|
-
const files = at.files.map((file) => ({
|
|
589
|
-
kind: "file",
|
|
590
|
-
name: basename(file.path),
|
|
591
|
-
...file
|
|
592
|
-
}));
|
|
593
|
-
return [...dirs.sort(byName), ...files.sort(byName)];
|
|
594
|
-
}
|
|
595
|
-
function collapsedDirNode(name2, at, prefix) {
|
|
596
|
-
let label = name2;
|
|
597
|
-
let path = prefix ? `${prefix}/${name2}` : name2;
|
|
598
|
-
let node = at;
|
|
599
|
-
while (node.files.length === 0 && node.dirs.size === 1) {
|
|
600
|
-
const [childName, child] = [...node.dirs][0];
|
|
601
|
-
label = `${label}/${childName}`;
|
|
602
|
-
path = `${path}/${childName}`;
|
|
603
|
-
node = child;
|
|
604
|
-
}
|
|
605
|
-
const children = nodesOf(node, path);
|
|
606
|
-
return {
|
|
607
|
-
kind: "dir",
|
|
608
|
-
name: label,
|
|
609
|
-
path,
|
|
610
|
-
additions: sum(children, "additions"),
|
|
611
|
-
deletions: sum(children, "deletions"),
|
|
612
|
-
children
|
|
613
|
-
};
|
|
614
|
-
}
|
|
615
|
-
function buildHighLevelTree(files) {
|
|
616
|
-
return nodesOf(groupFilesByDirectory(files), "");
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
// src/commands/review/highLevel/buildHighLevelStructure.ts
|
|
620
|
-
function sum2(files, key) {
|
|
621
|
-
return files.reduce((total, file) => total + file[key], 0);
|
|
622
|
-
}
|
|
623
|
-
function countOf(files, status) {
|
|
624
|
-
return files.filter((file) => file.status === status).length;
|
|
625
|
-
}
|
|
626
|
-
function buildHighLevelStructure(files) {
|
|
627
|
-
return {
|
|
628
|
-
tree: buildHighLevelTree(files),
|
|
629
|
-
added: countOf(files, "added"),
|
|
630
|
-
removed: countOf(files, "removed"),
|
|
631
|
-
modified: countOf(files, "modified"),
|
|
632
|
-
additions: sum2(files, "additions"),
|
|
633
|
-
deletions: sum2(files, "deletions")
|
|
634
|
-
};
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
// src/commands/review/highLevel/capHighLevelPatches.ts
|
|
638
|
-
import { minimatch } from "minimatch";
|
|
639
|
-
|
|
640
|
-
// src/commands/review/highLevel/hunksOf.ts
|
|
641
|
-
function hunksOf(patch2) {
|
|
642
|
-
const hunks = [];
|
|
643
|
-
for (const line of patch2.split("\n")) {
|
|
644
|
-
const last = hunks[hunks.length - 1];
|
|
645
|
-
if (line.startsWith("@@") || last === void 0) hunks.push(line);
|
|
646
|
-
else hunks[hunks.length - 1] = `${last}
|
|
647
|
-
${line}`;
|
|
648
|
-
}
|
|
649
|
-
return hunks;
|
|
650
|
-
}
|
|
651
|
-
|
|
652
|
-
// src/commands/review/highLevel/capPatchToBudget.ts
|
|
653
|
-
function capPatchToBudget(patch2, budget) {
|
|
654
|
-
const kept = [];
|
|
655
|
-
let lines = 0;
|
|
656
|
-
for (const hunk of hunksOf(patch2)) {
|
|
657
|
-
const size = hunk.split("\n").length;
|
|
658
|
-
if (lines + size > budget)
|
|
659
|
-
return {
|
|
660
|
-
...kept.length > 0 ? { patch: kept.join("\n") } : {},
|
|
661
|
-
truncated: true
|
|
662
|
-
};
|
|
663
|
-
kept.push(hunk);
|
|
664
|
-
lines += size;
|
|
665
|
-
}
|
|
666
|
-
return { patch: patch2, truncated: false };
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
// src/commands/review/highLevel/capHighLevelPatches.ts
|
|
670
|
-
var MAX_FILE_PATCH_LINES = 1500;
|
|
671
|
-
var MAX_TOTAL_PATCH_LINES = 2e4;
|
|
672
|
-
function criticalFirst(files, criticalPaths) {
|
|
673
|
-
const isCritical = (file) => criticalPaths.some((glob) => minimatch(file.path, glob));
|
|
674
|
-
return [...files].sort(
|
|
675
|
-
(a, b) => Number(isCritical(b)) - Number(isCritical(a))
|
|
676
|
-
);
|
|
677
|
-
}
|
|
678
|
-
function capped(file, budget) {
|
|
679
|
-
if (file.patch === void 0) return file;
|
|
680
|
-
const { patch: patch2, truncated } = capPatchToBudget(file.patch, budget);
|
|
681
|
-
const { patch: _dropped, ...rest } = file;
|
|
682
|
-
return {
|
|
683
|
-
...rest,
|
|
684
|
-
...patch2 === void 0 ? {} : { patch: patch2 },
|
|
685
|
-
...truncated ? { truncated: true } : {}
|
|
686
|
-
};
|
|
687
|
-
}
|
|
688
|
-
function capHighLevelPatches(files, criticalPaths) {
|
|
689
|
-
let remaining = MAX_TOTAL_PATCH_LINES;
|
|
690
|
-
const byPath = /* @__PURE__ */ new Map();
|
|
691
|
-
for (const file of criticalFirst(files, criticalPaths)) {
|
|
692
|
-
const result = capped(file, Math.min(MAX_FILE_PATCH_LINES, remaining));
|
|
693
|
-
remaining -= result.patch?.split("\n").length ?? 0;
|
|
694
|
-
byPath.set(file.path, result);
|
|
695
|
-
}
|
|
696
|
-
return files.map((file) => byPath.get(file.path) ?? file);
|
|
697
|
-
}
|
|
698
|
-
|
|
699
556
|
// src/commands/review/highLevel/findIssueReference.ts
|
|
700
557
|
var ISSUE_URL_PATTERN = /https?:\/\/github\.com\/[\w.-]+\/[\w.-]+\/issues\/\d+/;
|
|
701
558
|
var CROSS_REPO_PATTERN = /\b[\w.-]+\/[\w.-]+#\d+/;
|
|
@@ -783,7 +640,7 @@ function checkNoMergeConflicts(mergeable, baseRef) {
|
|
|
783
640
|
}
|
|
784
641
|
|
|
785
642
|
// src/commands/review/highLevel/checkUiEvidence.ts
|
|
786
|
-
import { minimatch
|
|
643
|
+
import { minimatch } from "minimatch";
|
|
787
644
|
var EVIDENCE_PATTERNS = [
|
|
788
645
|
/!\[[^\]]*\]\([^)]+\)/g,
|
|
789
646
|
/<(?:img|video)\b[^>]*>/gi,
|
|
@@ -806,7 +663,7 @@ function checkUiEvidence(body, changedFiles, uiPaths) {
|
|
|
806
663
|
reason: "review.highLevel.uiPaths is unset, so no UI evidence is required"
|
|
807
664
|
};
|
|
808
665
|
const touched = changedFiles.filter(
|
|
809
|
-
(file) => uiPaths.some((glob) =>
|
|
666
|
+
(file) => uiPaths.some((glob) => minimatch(file, glob))
|
|
810
667
|
);
|
|
811
668
|
if (touched.length === 0)
|
|
812
669
|
return {
|
|
@@ -912,38 +769,6 @@ function evaluateHighLevelChecks(subject) {
|
|
|
912
769
|
});
|
|
913
770
|
}
|
|
914
771
|
|
|
915
|
-
// src/commands/review/highLevel/fetchHighLevelFiles.ts
|
|
916
|
-
import { execFileSync as execFileSync2 } from "child_process";
|
|
917
|
-
import { createHash } from "crypto";
|
|
918
|
-
var JQ = ".[] | {filename,status,additions,deletions,patch} | @json";
|
|
919
|
-
function toStatus(status) {
|
|
920
|
-
if (status === "added") return "added";
|
|
921
|
-
if (status === "removed") return "removed";
|
|
922
|
-
return "modified";
|
|
923
|
-
}
|
|
924
|
-
function diffUrl(repo, prNumber, path) {
|
|
925
|
-
const anchor = createHash("sha256").update(path).digest("hex");
|
|
926
|
-
return `https://github.com/${repo}/pull/${prNumber}/files#diff-${anchor}`;
|
|
927
|
-
}
|
|
928
|
-
function fetchHighLevelFiles(prNumber, repo) {
|
|
929
|
-
const out = execFileSync2(
|
|
930
|
-
"gh",
|
|
931
|
-
["api", `repos/${repo}/pulls/${prNumber}/files`, "--paginate", "--jq", JQ],
|
|
932
|
-
{ encoding: "utf8", maxBuffer: 64 * 1024 * 1024 }
|
|
933
|
-
);
|
|
934
|
-
return out.trim().split("\n").filter(Boolean).map((line) => {
|
|
935
|
-
const file = JSON.parse(line);
|
|
936
|
-
return {
|
|
937
|
-
path: file.filename,
|
|
938
|
-
status: toStatus(file.status),
|
|
939
|
-
additions: file.additions,
|
|
940
|
-
deletions: file.deletions,
|
|
941
|
-
diffUrl: diffUrl(repo, prNumber, file.filename),
|
|
942
|
-
...file.patch ? { patch: file.patch } : {}
|
|
943
|
-
};
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
|
|
947
772
|
// src/commands/review/highLevel/waitForMergeable.ts
|
|
948
773
|
var MAX_ATTEMPTS = 5;
|
|
949
774
|
var DELAY_MS = 2e3;
|
|
@@ -960,9 +785,9 @@ function waitForMergeable(initial, refetch, delayMs = DELAY_MS) {
|
|
|
960
785
|
}
|
|
961
786
|
|
|
962
787
|
// src/commands/review/highLevel/ghPrView.ts
|
|
963
|
-
import { execFileSync as
|
|
788
|
+
import { execFileSync as execFileSync2 } from "child_process";
|
|
964
789
|
function ghPrView(prNumber, repo, fields) {
|
|
965
|
-
const raw =
|
|
790
|
+
const raw = execFileSync2(
|
|
966
791
|
"gh",
|
|
967
792
|
[
|
|
968
793
|
"pr",
|
|
@@ -1001,6 +826,185 @@ function fetchHighLevelPr(prNumber, repo) {
|
|
|
1001
826
|
};
|
|
1002
827
|
}
|
|
1003
828
|
|
|
829
|
+
// src/commands/review/highLevel/groupFilesByDirectory.ts
|
|
830
|
+
var emptyDirectoryGroup = () => ({
|
|
831
|
+
dirs: /* @__PURE__ */ new Map(),
|
|
832
|
+
files: []
|
|
833
|
+
});
|
|
834
|
+
function place(root, file) {
|
|
835
|
+
const segments = file.path.split("/").filter(Boolean);
|
|
836
|
+
segments.pop();
|
|
837
|
+
let at = root;
|
|
838
|
+
for (const segment of segments) {
|
|
839
|
+
const next = at.dirs.get(segment) ?? emptyDirectoryGroup();
|
|
840
|
+
at.dirs.set(segment, next);
|
|
841
|
+
at = next;
|
|
842
|
+
}
|
|
843
|
+
at.files.push(file);
|
|
844
|
+
}
|
|
845
|
+
function groupFilesByDirectory(files) {
|
|
846
|
+
const root = emptyDirectoryGroup();
|
|
847
|
+
for (const file of files) place(root, file);
|
|
848
|
+
return root;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
// src/commands/review/highLevel/buildHighLevelTree.ts
|
|
852
|
+
function basename(path) {
|
|
853
|
+
return path.slice(path.lastIndexOf("/") + 1);
|
|
854
|
+
}
|
|
855
|
+
function sum(nodes, key) {
|
|
856
|
+
return nodes.reduce((total, node) => total + node[key], 0);
|
|
857
|
+
}
|
|
858
|
+
function byName(a, b) {
|
|
859
|
+
return a.name.localeCompare(b.name);
|
|
860
|
+
}
|
|
861
|
+
function nodesOf(at, prefix) {
|
|
862
|
+
const dirs = [...at.dirs].map(
|
|
863
|
+
([name2, child]) => collapsedDirNode(name2, child, prefix)
|
|
864
|
+
);
|
|
865
|
+
const files = at.files.map((file) => ({
|
|
866
|
+
kind: "file",
|
|
867
|
+
name: basename(file.path),
|
|
868
|
+
...file
|
|
869
|
+
}));
|
|
870
|
+
return [...dirs.sort(byName), ...files.sort(byName)];
|
|
871
|
+
}
|
|
872
|
+
function collapsedDirNode(name2, at, prefix) {
|
|
873
|
+
let label = name2;
|
|
874
|
+
let path = prefix ? `${prefix}/${name2}` : name2;
|
|
875
|
+
let node = at;
|
|
876
|
+
while (node.files.length === 0 && node.dirs.size === 1) {
|
|
877
|
+
const [childName, child] = [...node.dirs][0];
|
|
878
|
+
label = `${label}/${childName}`;
|
|
879
|
+
path = `${path}/${childName}`;
|
|
880
|
+
node = child;
|
|
881
|
+
}
|
|
882
|
+
const children = nodesOf(node, path);
|
|
883
|
+
return {
|
|
884
|
+
kind: "dir",
|
|
885
|
+
name: label,
|
|
886
|
+
path,
|
|
887
|
+
additions: sum(children, "additions"),
|
|
888
|
+
deletions: sum(children, "deletions"),
|
|
889
|
+
children
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
function buildHighLevelTree(files) {
|
|
893
|
+
return nodesOf(groupFilesByDirectory(files), "");
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
// src/commands/review/highLevel/buildHighLevelStructure.ts
|
|
897
|
+
function sum2(files, key) {
|
|
898
|
+
return files.reduce((total, file) => total + file[key], 0);
|
|
899
|
+
}
|
|
900
|
+
function countOf(files, status) {
|
|
901
|
+
return files.filter((file) => file.status === status).length;
|
|
902
|
+
}
|
|
903
|
+
function buildHighLevelStructure(files) {
|
|
904
|
+
return {
|
|
905
|
+
tree: buildHighLevelTree(files),
|
|
906
|
+
added: countOf(files, "added"),
|
|
907
|
+
removed: countOf(files, "removed"),
|
|
908
|
+
modified: countOf(files, "modified"),
|
|
909
|
+
additions: sum2(files, "additions"),
|
|
910
|
+
deletions: sum2(files, "deletions")
|
|
911
|
+
};
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
// src/commands/review/highLevel/capHighLevelPatches.ts
|
|
915
|
+
import { minimatch as minimatch2 } from "minimatch";
|
|
916
|
+
|
|
917
|
+
// src/commands/review/highLevel/hunksOf.ts
|
|
918
|
+
function hunksOf(patch2) {
|
|
919
|
+
const hunks = [];
|
|
920
|
+
for (const line of patch2.split("\n")) {
|
|
921
|
+
const last = hunks[hunks.length - 1];
|
|
922
|
+
if (line.startsWith("@@") || last === void 0) hunks.push(line);
|
|
923
|
+
else hunks[hunks.length - 1] = `${last}
|
|
924
|
+
${line}`;
|
|
925
|
+
}
|
|
926
|
+
return hunks;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
// src/commands/review/highLevel/capPatchToBudget.ts
|
|
930
|
+
function capPatchToBudget(patch2, budget) {
|
|
931
|
+
const kept = [];
|
|
932
|
+
let lines = 0;
|
|
933
|
+
for (const hunk of hunksOf(patch2)) {
|
|
934
|
+
const size = hunk.split("\n").length;
|
|
935
|
+
if (lines + size > budget)
|
|
936
|
+
return {
|
|
937
|
+
...kept.length > 0 ? { patch: kept.join("\n") } : {},
|
|
938
|
+
truncated: true
|
|
939
|
+
};
|
|
940
|
+
kept.push(hunk);
|
|
941
|
+
lines += size;
|
|
942
|
+
}
|
|
943
|
+
return { patch: patch2, truncated: false };
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
// src/commands/review/highLevel/capHighLevelPatches.ts
|
|
947
|
+
var MAX_FILE_PATCH_LINES = 1500;
|
|
948
|
+
var MAX_TOTAL_PATCH_LINES = 2e4;
|
|
949
|
+
function criticalFirst(files, criticalPaths) {
|
|
950
|
+
const isCritical = (file) => criticalPaths.some((glob) => minimatch2(file.path, glob));
|
|
951
|
+
return [...files].sort(
|
|
952
|
+
(a, b) => Number(isCritical(b)) - Number(isCritical(a))
|
|
953
|
+
);
|
|
954
|
+
}
|
|
955
|
+
function capped(file, budget) {
|
|
956
|
+
if (file.patch === void 0) return file;
|
|
957
|
+
const { patch: patch2, truncated } = capPatchToBudget(file.patch, budget);
|
|
958
|
+
const { patch: _dropped, ...rest } = file;
|
|
959
|
+
return {
|
|
960
|
+
...rest,
|
|
961
|
+
...patch2 === void 0 ? {} : { patch: patch2 },
|
|
962
|
+
...truncated ? { truncated: true } : {}
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
function capHighLevelPatches(files, criticalPaths) {
|
|
966
|
+
let remaining = MAX_TOTAL_PATCH_LINES;
|
|
967
|
+
const byPath = /* @__PURE__ */ new Map();
|
|
968
|
+
for (const file of criticalFirst(files, criticalPaths)) {
|
|
969
|
+
const result = capped(file, Math.min(MAX_FILE_PATCH_LINES, remaining));
|
|
970
|
+
remaining -= result.patch?.split("\n").length ?? 0;
|
|
971
|
+
byPath.set(file.path, result);
|
|
972
|
+
}
|
|
973
|
+
return files.map((file) => byPath.get(file.path) ?? file);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
// src/commands/review/highLevel/fetchHighLevelFiles.ts
|
|
977
|
+
import { execFileSync as execFileSync3 } from "child_process";
|
|
978
|
+
import { createHash } from "crypto";
|
|
979
|
+
var JQ = ".[] | {filename,status,additions,deletions,patch} | @json";
|
|
980
|
+
function toStatus(status) {
|
|
981
|
+
if (status === "added") return "added";
|
|
982
|
+
if (status === "removed") return "removed";
|
|
983
|
+
return "modified";
|
|
984
|
+
}
|
|
985
|
+
function diffUrl(repo, prNumber, path) {
|
|
986
|
+
const anchor = createHash("sha256").update(path).digest("hex");
|
|
987
|
+
return `https://github.com/${repo}/pull/${prNumber}/files#diff-${anchor}`;
|
|
988
|
+
}
|
|
989
|
+
function fetchHighLevelFiles(prNumber, repo) {
|
|
990
|
+
const out = execFileSync3(
|
|
991
|
+
"gh",
|
|
992
|
+
["api", `repos/${repo}/pulls/${prNumber}/files`, "--paginate", "--jq", JQ],
|
|
993
|
+
{ encoding: "utf8", maxBuffer: 64 * 1024 * 1024 }
|
|
994
|
+
);
|
|
995
|
+
return out.trim().split("\n").filter(Boolean).map((line) => {
|
|
996
|
+
const file = JSON.parse(line);
|
|
997
|
+
return {
|
|
998
|
+
path: file.filename,
|
|
999
|
+
status: toStatus(file.status),
|
|
1000
|
+
additions: file.additions,
|
|
1001
|
+
deletions: file.deletions,
|
|
1002
|
+
diffUrl: diffUrl(repo, prNumber, file.filename),
|
|
1003
|
+
...file.patch ? { patch: file.patch } : {}
|
|
1004
|
+
};
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1004
1008
|
// src/commands/review/highLevel/gatherHighLevelSlices.ts
|
|
1005
1009
|
import { readFileSync } from "fs";
|
|
1006
1010
|
|
|
@@ -1285,9 +1289,6 @@ function capHighLevelTestSources(files) {
|
|
|
1285
1289
|
return files.map((file) => ({ ...file, tests: file.tests.map(capNode) }));
|
|
1286
1290
|
}
|
|
1287
1291
|
|
|
1288
|
-
// src/commands/review/highLevel/collectHighLevelTests.ts
|
|
1289
|
-
import { minimatch as minimatch3 } from "minimatch";
|
|
1290
|
-
|
|
1291
1292
|
// src/commands/review/highLevel/extractTestHierarchy.ts
|
|
1292
1293
|
import { Node as Node3, Project } from "ts-morph";
|
|
1293
1294
|
|
|
@@ -1398,6 +1399,14 @@ function extractTestHierarchy(path, text, changed) {
|
|
|
1398
1399
|
return collect(source, { path, ...changed ? { changed } : {} });
|
|
1399
1400
|
}
|
|
1400
1401
|
|
|
1402
|
+
// src/commands/review/highLevel/highLevelTestCandidates.ts
|
|
1403
|
+
import { minimatch as minimatch3 } from "minimatch";
|
|
1404
|
+
function highLevelTestCandidates(files, testPaths) {
|
|
1405
|
+
return files.filter(
|
|
1406
|
+
(file) => file.status !== "removed" && testPaths.some((glob) => minimatch3(file.path, glob))
|
|
1407
|
+
);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1401
1410
|
// src/commands/review/highLevel/patchAddedLines.ts
|
|
1402
1411
|
var HUNK_HEADER = /^@@ -\d+(?:,\d+)? \+(\d+)/;
|
|
1403
1412
|
function patchAddedLines(patch2) {
|
|
@@ -1421,30 +1430,15 @@ function testFile(file, readSource) {
|
|
|
1421
1430
|
return [{ path, status, additions, deletions, diffUrl: diffUrl2, tests }];
|
|
1422
1431
|
}
|
|
1423
1432
|
function collectHighLevelTests(files, testPaths, readSource) {
|
|
1424
|
-
return files.
|
|
1425
|
-
(file) =>
|
|
1426
|
-
)
|
|
1433
|
+
return highLevelTestCandidates(files, testPaths).flatMap(
|
|
1434
|
+
(file) => testFile(file, readSource)
|
|
1435
|
+
);
|
|
1427
1436
|
}
|
|
1428
1437
|
|
|
1429
1438
|
// src/commands/review/highLevel/fetchFileAtSha.ts
|
|
1430
|
-
|
|
1431
|
-
function fetchFileAtSha(repo, sha, path) {
|
|
1432
|
-
const encodedPath = path.split("/").map(encodeURIComponent).join("/");
|
|
1439
|
+
async function fetchFileAtSha(repo, sha, path) {
|
|
1433
1440
|
try {
|
|
1434
|
-
return
|
|
1435
|
-
"gh",
|
|
1436
|
-
[
|
|
1437
|
-
"api",
|
|
1438
|
-
"-H",
|
|
1439
|
-
"Accept: application/vnd.github.raw",
|
|
1440
|
-
`repos/${repo}/contents/${encodedPath}?ref=${sha}`
|
|
1441
|
-
],
|
|
1442
|
-
{
|
|
1443
|
-
encoding: "utf8",
|
|
1444
|
-
maxBuffer: 64 * 1024 * 1024,
|
|
1445
|
-
stdio: ["ignore", "pipe", "pipe"]
|
|
1446
|
-
}
|
|
1447
|
-
);
|
|
1441
|
+
return await ghRawFileAtSha(repo, sha, path, 64 * 1024 * 1024);
|
|
1448
1442
|
} catch (error) {
|
|
1449
1443
|
throw new Error(
|
|
1450
1444
|
`Could not read ${path} at PR head ${sha.slice(0, 7)}: ${ghFailure(error)}`
|
|
@@ -1453,29 +1447,33 @@ function fetchFileAtSha(repo, sha, path) {
|
|
|
1453
1447
|
}
|
|
1454
1448
|
|
|
1455
1449
|
// src/commands/review/highLevel/gatherHighLevelTests.ts
|
|
1456
|
-
|
|
1450
|
+
var FETCH_CONCURRENCY = 8;
|
|
1451
|
+
async function gatherHighLevelTests(files, testPaths, repo, headSha) {
|
|
1452
|
+
const paths = highLevelTestCandidates(files, testPaths).map(
|
|
1453
|
+
(file) => file.path
|
|
1454
|
+
);
|
|
1455
|
+
const contents = await mapAsync(
|
|
1456
|
+
paths,
|
|
1457
|
+
FETCH_CONCURRENCY,
|
|
1458
|
+
(path) => fetchFileAtSha(repo, headSha, path)
|
|
1459
|
+
);
|
|
1460
|
+
const sources = new Map(paths.map((path, i) => [path, contents[i]]));
|
|
1457
1461
|
return capHighLevelTestSources(
|
|
1458
|
-
collectHighLevelTests(
|
|
1459
|
-
files,
|
|
1460
|
-
testPaths,
|
|
1461
|
-
(path) => fetchFileAtSha(repo, headSha, path)
|
|
1462
|
-
)
|
|
1462
|
+
collectHighLevelTests(files, testPaths, (path) => sources.get(path) ?? "")
|
|
1463
1463
|
);
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
|
-
// src/commands/review/highLevel/
|
|
1467
|
-
function
|
|
1468
|
-
return
|
|
1466
|
+
// src/commands/review/highLevel/highLevelSubjectCachePath.ts
|
|
1467
|
+
function highLevelSubjectCachePath(repo, headRef, headSha) {
|
|
1468
|
+
return highLevelReviewPath(repo, headRef, headSha).replace(
|
|
1469
|
+
/\.json$/,
|
|
1470
|
+
".subject.json"
|
|
1471
|
+
);
|
|
1469
1472
|
}
|
|
1470
1473
|
|
|
1471
|
-
// src/commands/review/highLevel/
|
|
1472
|
-
function
|
|
1473
|
-
|
|
1474
|
-
const progress = loadHighLevelProgress(repo, prNumber, headSha);
|
|
1475
|
-
return {
|
|
1476
|
-
...saved ? { saved } : {},
|
|
1477
|
-
...progress ? { progress } : {}
|
|
1478
|
-
};
|
|
1474
|
+
// src/commands/review/highLevel/saveHighLevelSubjectCache.ts
|
|
1475
|
+
function saveHighLevelSubjectCache({ repo, headRef, headSha }, cache) {
|
|
1476
|
+
writeJsonFile(highLevelSubjectCachePath(repo, headRef, headSha), cache);
|
|
1479
1477
|
}
|
|
1480
1478
|
|
|
1481
1479
|
// src/commands/review/highLevel/selectCriticalDiffs.ts
|
|
@@ -1495,16 +1493,74 @@ function selectCriticalDiffs(files, criticalPaths) {
|
|
|
1495
1493
|
);
|
|
1496
1494
|
}
|
|
1497
1495
|
|
|
1496
|
+
// src/commands/review/highLevel/gatherFreshHighLevelSubject.ts
|
|
1497
|
+
async function gatherFreshHighLevelSubject(head, config, slicing) {
|
|
1498
|
+
const fetched = fetchHighLevelFiles(head.prNumber, head.repo);
|
|
1499
|
+
const files = capHighLevelPatches(fetched, config.criticalPaths);
|
|
1500
|
+
const sliced = slicing ? gatherHighLevelSlices(head, files, slicing) : void 0;
|
|
1501
|
+
const cache = {
|
|
1502
|
+
criticalPaths: config.criticalPaths,
|
|
1503
|
+
testPaths: config.testPaths,
|
|
1504
|
+
changedFiles: files.map((file) => file.path),
|
|
1505
|
+
structure: buildHighLevelStructure(files),
|
|
1506
|
+
criticalDiffs: selectCriticalDiffs(files, config.criticalPaths),
|
|
1507
|
+
tests: await gatherHighLevelTests(
|
|
1508
|
+
fetched,
|
|
1509
|
+
config.testPaths,
|
|
1510
|
+
head.repo,
|
|
1511
|
+
head.headSha
|
|
1512
|
+
)
|
|
1513
|
+
};
|
|
1514
|
+
saveHighLevelSubjectCache(head, cache);
|
|
1515
|
+
return { cache, sliced };
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
// src/commands/review/highLevel/loadHighLevelReview.ts
|
|
1519
|
+
function loadHighLevelReview(repo, headRef, headSha) {
|
|
1520
|
+
return readJsonFile(highLevelReviewPath(repo, headRef, headSha));
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
// src/commands/review/highLevel/loadReopenedReview.ts
|
|
1524
|
+
function loadReopenedReview({ repo, prNumber, headRef, headSha }, force) {
|
|
1525
|
+
const saved = force ? void 0 : loadHighLevelReview(repo, headRef, headSha);
|
|
1526
|
+
const progress = loadHighLevelProgress(repo, prNumber, headSha);
|
|
1527
|
+
return {
|
|
1528
|
+
...saved ? { saved } : {},
|
|
1529
|
+
...progress ? { progress } : {}
|
|
1530
|
+
};
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
// src/commands/review/highLevel/loadHighLevelSubjectCache.ts
|
|
1534
|
+
function samePaths(a, b) {
|
|
1535
|
+
return a !== void 0 && a.length === b.length && a.every((p, i) => p === b[i]);
|
|
1536
|
+
}
|
|
1537
|
+
function loadHighLevelSubjectCache({ repo, headRef, headSha }, config) {
|
|
1538
|
+
const cached = readJsonFile(
|
|
1539
|
+
highLevelSubjectCachePath(repo, headRef, headSha)
|
|
1540
|
+
);
|
|
1541
|
+
if (!cached) return void 0;
|
|
1542
|
+
return samePaths(cached.criticalPaths, config.criticalPaths) && samePaths(cached.testPaths, config.testPaths) ? cached : void 0;
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
// src/commands/review/highLevel/reuseCachedHighLevelSubject.ts
|
|
1546
|
+
function reuseCachedHighLevelSubject(head, config, slicing) {
|
|
1547
|
+
if (!slicing?.reuseOnly || slicing.slicesFile) return void 0;
|
|
1548
|
+
const cache = loadHighLevelSubjectCache(head, config);
|
|
1549
|
+
if (!cache) return void 0;
|
|
1550
|
+
return { cache, sliced: gatherHighLevelSlices(head, [], slicing) };
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1498
1553
|
// src/commands/review/highLevel/gatherHighLevelSubject.ts
|
|
1499
|
-
function gatherHighLevelSubject(prNumber, force, slicing) {
|
|
1554
|
+
async function gatherHighLevelSubject(prNumber, force, slicing) {
|
|
1500
1555
|
const { org, repo } = getRepoInfo();
|
|
1501
|
-
const slug = `${org}/${repo}`;
|
|
1502
1556
|
const pr = fetchHighLevelPr(prNumber, { org, repo });
|
|
1503
1557
|
const config = resolveHighLevelConfig(loadConfig());
|
|
1504
|
-
const
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1558
|
+
const head = {
|
|
1559
|
+
repo: `${org}/${repo}`,
|
|
1560
|
+
headRef: pr.headRef,
|
|
1561
|
+
headSha: pr.headSha
|
|
1562
|
+
};
|
|
1563
|
+
const { cache, sliced } = reuseCachedHighLevelSubject({ ...head, prNumber }, config, slicing) ?? await gatherFreshHighLevelSubject({ ...head, prNumber }, config, slicing);
|
|
1508
1564
|
return {
|
|
1509
1565
|
...head,
|
|
1510
1566
|
prNumber,
|
|
@@ -1512,14 +1568,14 @@ function gatherHighLevelSubject(prNumber, force, slicing) {
|
|
|
1512
1568
|
body: pr.body,
|
|
1513
1569
|
checks: evaluateHighLevelChecks({
|
|
1514
1570
|
...pr,
|
|
1515
|
-
changedFiles:
|
|
1571
|
+
changedFiles: cache.changedFiles,
|
|
1516
1572
|
config,
|
|
1517
1573
|
sliced: sliced !== void 0
|
|
1518
1574
|
}),
|
|
1519
|
-
structure:
|
|
1520
|
-
criticalDiffs:
|
|
1575
|
+
structure: cache.structure,
|
|
1576
|
+
criticalDiffs: cache.criticalDiffs,
|
|
1521
1577
|
criticalPaths: config.criticalPaths,
|
|
1522
|
-
tests:
|
|
1578
|
+
tests: cache.tests,
|
|
1523
1579
|
testPaths: config.testPaths,
|
|
1524
1580
|
collapsedPaths: config.collapsedPaths,
|
|
1525
1581
|
...sliced,
|
|
@@ -2082,9 +2138,9 @@ function resolvePrNumber(number) {
|
|
|
2082
2138
|
}
|
|
2083
2139
|
return parsed;
|
|
2084
2140
|
}
|
|
2085
|
-
function gatherSubject(prNumber, force, slicing) {
|
|
2141
|
+
async function gatherSubject(prNumber, force, slicing) {
|
|
2086
2142
|
try {
|
|
2087
|
-
return gatherHighLevelSubject(prNumber, force, slicing);
|
|
2143
|
+
return await gatherHighLevelSubject(prNumber, force, slicing);
|
|
2088
2144
|
} catch (error) {
|
|
2089
2145
|
console.error(
|
|
2090
2146
|
`Error: ${error instanceof Error ? error.message : String(error)}`
|
|
@@ -2104,7 +2160,7 @@ async function runHighLevelReview(number, options = {}) {
|
|
|
2104
2160
|
...options.slices ? { slicesFile: options.slices } : {},
|
|
2105
2161
|
...options.reuseSlices ? { reuseOnly: true } : {}
|
|
2106
2162
|
} : void 0;
|
|
2107
|
-
const subject = gatherSubject(resolvePrNumber(number), force, slicing);
|
|
2163
|
+
const subject = await gatherSubject(resolvePrNumber(number), force, slicing);
|
|
2108
2164
|
announceSavedReview(subject, force);
|
|
2109
2165
|
if (!session) return printHighLevelChecklist(subject);
|
|
2110
2166
|
await openHighLevelOverlay(
|
|
@@ -3020,9 +3076,9 @@ function buildReviewPaths(repoRoot, key) {
|
|
|
3020
3076
|
}
|
|
3021
3077
|
|
|
3022
3078
|
// src/commands/review/fetchExistingComments.ts
|
|
3023
|
-
import { execFileSync as
|
|
3079
|
+
import { execFileSync as execFileSync4 } from "child_process";
|
|
3024
3080
|
function fetchRawComments(org, repo, prNumber) {
|
|
3025
|
-
const out =
|
|
3081
|
+
const out = execFileSync4(
|
|
3026
3082
|
"gh",
|
|
3027
3083
|
["api", "--paginate", `repos/${org}/${repo}/pulls/${prNumber}/comments`],
|
|
3028
3084
|
{ encoding: "utf8", maxBuffer: 64 * 1024 * 1024 }
|
|
@@ -3087,11 +3143,11 @@ function logPriorComments(count) {
|
|
|
3087
3143
|
import { execSync as execSync2 } from "child_process";
|
|
3088
3144
|
|
|
3089
3145
|
// src/commands/review/fetchPrDiff.ts
|
|
3090
|
-
import { execFileSync as
|
|
3146
|
+
import { execFileSync as execFileSync5 } from "child_process";
|
|
3091
3147
|
function fetchPrDiff(prNumber, baseSha, headSha) {
|
|
3092
3148
|
const { org, repo } = getRepoInfo();
|
|
3093
3149
|
try {
|
|
3094
|
-
return
|
|
3150
|
+
return execFileSync5(
|
|
3095
3151
|
"gh",
|
|
3096
3152
|
["pr", "diff", String(prNumber), "-R", `${org}/${repo}`],
|
|
3097
3153
|
{
|
|
@@ -3110,19 +3166,19 @@ function isDiffTooLarge(error) {
|
|
|
3110
3166
|
}
|
|
3111
3167
|
function fetchDiffViaGit(baseSha, headSha) {
|
|
3112
3168
|
try {
|
|
3113
|
-
|
|
3169
|
+
execFileSync5("git", ["fetch", "origin", baseSha, headSha], {
|
|
3114
3170
|
stdio: "ignore"
|
|
3115
3171
|
});
|
|
3116
3172
|
} catch {
|
|
3117
3173
|
}
|
|
3118
|
-
return
|
|
3174
|
+
return execFileSync5("git", ["diff", `${baseSha}...${headSha}`], {
|
|
3119
3175
|
encoding: "utf8",
|
|
3120
3176
|
maxBuffer: 256 * 1024 * 1024
|
|
3121
3177
|
});
|
|
3122
3178
|
}
|
|
3123
3179
|
|
|
3124
3180
|
// src/commands/review/fetchPrDiffInfo.ts
|
|
3125
|
-
import { execFileSync as
|
|
3181
|
+
import { execFileSync as execFileSync6, execSync } from "child_process";
|
|
3126
3182
|
function getCurrentBranch() {
|
|
3127
3183
|
return execSync("git rev-parse --abbrev-ref HEAD", {
|
|
3128
3184
|
encoding: "utf8"
|
|
@@ -3130,7 +3186,7 @@ function getCurrentBranch() {
|
|
|
3130
3186
|
}
|
|
3131
3187
|
var FIELDS = "number,baseRefName,baseRefOid,headRefName,headRefOid";
|
|
3132
3188
|
function runGh(...args) {
|
|
3133
|
-
return
|
|
3189
|
+
return execFileSync6("gh", args, {
|
|
3134
3190
|
encoding: "utf8",
|
|
3135
3191
|
stdio: ["ignore", "pipe", "pipe"]
|
|
3136
3192
|
});
|
|
@@ -3172,7 +3228,7 @@ function fetchPrDiffInfo() {
|
|
|
3172
3228
|
}
|
|
3173
3229
|
function fetchPrChangedFiles(prNumber) {
|
|
3174
3230
|
const { org, repo } = getRepoInfo();
|
|
3175
|
-
const out =
|
|
3231
|
+
const out = execFileSync6(
|
|
3176
3232
|
"gh",
|
|
3177
3233
|
[
|
|
3178
3234
|
"api",
|