@staff0rd/assist 0.1143.0 → 0.1143.2
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/acceptanceCriteria-CJ4GRITK.js +44 -0
- package/dist/activity-2SEJVUW5.js +73 -0
- package/dist/add-HXSZYGPR.js +51 -0
- package/dist/add-QQQ472AZ.js +250 -0
- package/dist/add-XWJN42HG.js +140 -0
- package/dist/addActivity-EZZ6TFDF.js +120 -0
- package/dist/addPhase-LOT43TS7.js +152 -0
- package/dist/addRule-J432LIS3.js +102 -0
- package/dist/addUserRule-XO2BNQFH.js +136 -0
- package/dist/adviceFragments-5XVE6JXX.js +41 -0
- package/dist/advise-E6QAZIMK.js +96 -0
- package/dist/analyze-2ECBFV3E.js +63 -0
- package/dist/ask-ESCDDQH5.js +47 -0
- package/dist/askCheck-EYZOXM6D.js +303 -0
- package/dist/askDesign-ZMHB4WKG.js +137 -0
- package/dist/askQuestion-EQV37YPA.js +149 -0
- package/dist/associateGithub-VYQUEKWJ.js +95 -0
- package/dist/associateJira-EUNZOJJC.js +83 -0
- package/dist/backup-3SNDW5JN.js +64 -0
- package/dist/blockCodeComments-PZHXN2WG.js +311 -0
- package/dist/branch-4YGQB3MS.js +98 -0
- package/dist/browserConsole-6ZRED7DG.js +50 -0
- package/dist/browserInspect-2IOKKWOF.js +42 -0
- package/dist/browserRun-JJVVNL6H.js +52 -0
- package/dist/browserSnapshot-Q3DUNUYP.js +32 -0
- package/dist/browserStatus-MEQAEC3K.js +38 -0
- package/dist/built-version +1 -1
- package/dist/chart-4G75ADCW.js +80 -0
- package/dist/check-QRHG4J7G.js +219 -0
- package/dist/checkBuildLocks-UBGUSNX5.js +9 -0
- package/dist/chunk-2DBSXFUE.js +40 -0
- package/dist/chunk-2DCOBBPI.js +50 -0
- package/dist/chunk-2EW62DM5.js +17 -0
- package/dist/chunk-2HT3GIJD.js +130 -0
- package/dist/chunk-2JYMVJGZ.js +21 -0
- package/dist/chunk-2KG6ZPX4.js +52 -0
- package/dist/chunk-2O7TIRCQ.js +39 -0
- package/dist/chunk-3E7RVOMC.js +27 -0
- package/dist/chunk-3FSX26XC.js +25 -0
- package/dist/chunk-3JXMQFUS.js +14 -0
- package/dist/chunk-3KLTYFPV.js +57 -0
- package/dist/chunk-3NK55YVZ.js +48 -0
- package/dist/chunk-3OMKOT6D.js +14 -0
- package/dist/chunk-3PM5JCHE.js +72 -0
- package/dist/chunk-3QKE2ONF.js +39 -0
- package/dist/chunk-3XQHTIHW.js +20 -0
- package/dist/chunk-4BVUY25U.js +21 -0
- package/dist/chunk-4GMAYXOS.js +18 -0
- package/dist/chunk-4HKB2TAG.js +11 -0
- package/dist/chunk-4JIXM5NT.js +21 -0
- package/dist/chunk-4L7TQE67.js +22 -0
- package/dist/chunk-4LFRCSJF.js +46 -0
- package/dist/chunk-4TIDERIW.js +12 -0
- package/dist/chunk-4VDWPVY6.js +258 -0
- package/dist/chunk-4XHBAEMS.js +37 -0
- package/dist/chunk-4Y4ADPEK.js +10 -0
- package/dist/chunk-4YAIQN3S.js +77 -0
- package/dist/chunk-4YHDWC5E.js +33 -0
- package/dist/chunk-547VKFOA.js +15 -0
- package/dist/chunk-54QTHCXV.js +12 -0
- package/dist/chunk-556BOFTS.js +44 -0
- package/dist/chunk-5G5VG5P7.js +14 -0
- package/dist/chunk-5JOVEUBS.js +17 -0
- package/dist/chunk-5KSIOK73.js +25 -0
- package/dist/chunk-5MFQ7T3G.js +40 -0
- package/dist/chunk-5PKWV3WT.js +8 -0
- package/dist/chunk-5VW2GS73.js +42 -0
- package/dist/chunk-5WQDLREX.js +40 -0
- package/dist/chunk-66EUBGD6.js +193 -0
- package/dist/chunk-6DGPQ67E.js +26 -0
- package/dist/chunk-6EYCU3MQ.js +41 -0
- package/dist/chunk-6G2ADBNV.js +19 -0
- package/dist/chunk-6H4DP3ZG.js +14 -0
- package/dist/chunk-6LI6DYBH.js +170 -0
- package/dist/chunk-6MNOEMDU.js +45 -0
- package/dist/chunk-6NDXAN45.js +90 -0
- package/dist/chunk-6NXP34PE.js +20 -0
- package/dist/chunk-6PF5BEEE.js +37 -0
- package/dist/chunk-6SOPR77J.js +12 -0
- package/dist/chunk-6T53CG7D.js +56 -0
- package/dist/chunk-7CEIET2O.js +31 -0
- package/dist/chunk-7DSWCPDZ.js +225 -0
- package/dist/chunk-7HMZTDGB.js +152 -0
- package/dist/chunk-7HNRCA3N.js +12 -0
- package/dist/chunk-7NPZZRMK.js +77 -0
- package/dist/chunk-7O466DJY.js +36 -0
- package/dist/chunk-7TT6C4IC.js +100 -0
- package/dist/chunk-7ZN4KX7V.js +26 -0
- package/dist/chunk-A5ELMTXR.js +143 -0
- package/dist/chunk-ABLDOQ4B.js +42 -0
- package/dist/chunk-ADIYP3KC.js +11 -0
- package/dist/chunk-ADLCDG2V.js +61 -0
- package/dist/chunk-AKF654AT.js +32 -0
- package/dist/chunk-ALAS5LZJ.js +22 -0
- package/dist/chunk-ANCYNQJA.js +16 -0
- package/dist/chunk-APS7GTRT.js +23 -0
- package/dist/chunk-APZ6ZTDA.js +8 -0
- package/dist/chunk-AVLELL42.js +34 -0
- package/dist/chunk-B3JSQA5D.js +25 -0
- package/dist/chunk-B5ZOANOD.js +51 -0
- package/dist/chunk-B6RAZW2L.js +14 -0
- package/dist/chunk-B7B26YPF.js +6 -0
- package/dist/chunk-BAHQJHYD.js +16 -0
- package/dist/chunk-BBXEZVRL.js +38 -0
- package/dist/chunk-BFQSGIN6.js +37 -0
- package/dist/chunk-BJDGVLYX.js +20 -0
- package/dist/chunk-BO5JCCC5.js +17 -0
- package/dist/chunk-BPZBZQEY.js +7450 -0
- package/dist/chunk-BV2V6RTH.js +89 -0
- package/dist/chunk-BVHK2VVT.js +31 -0
- package/dist/chunk-C3MGHR3N.js +25 -0
- package/dist/chunk-CDD4ZTG7.js +31 -0
- package/dist/chunk-CDU6M5IX.js +50 -0
- package/dist/chunk-CGYVYHMM.js +49 -0
- package/dist/chunk-CQQFVAGK.js +46 -0
- package/dist/chunk-CXJJGUTK.js +44 -0
- package/dist/chunk-D7UZLH36.js +8 -0
- package/dist/chunk-DBQTGW7F.js +48 -0
- package/dist/chunk-DIAC4XYA.js +29 -0
- package/dist/chunk-DISNKALJ.js +74 -0
- package/dist/chunk-DLNPUAH7.js +3932 -0
- package/dist/chunk-DS2YJZZY.js +34 -0
- package/dist/chunk-DZGYHAE7.js +31 -0
- package/dist/chunk-E36L7ASL.js +19 -0
- package/dist/chunk-E7AZAWIV.js +478 -0
- package/dist/chunk-EHRQ6OST.js +53 -0
- package/dist/chunk-EI42YEVC.js +208 -0
- package/dist/chunk-ENBVLWTC.js +25 -0
- package/dist/chunk-ENTJ2N5Y.js +34 -0
- package/dist/chunk-ERAGZGT5.js +166 -0
- package/dist/chunk-ERG23IG5.js +12 -0
- package/dist/chunk-EW2ZM2PC.js +6 -0
- package/dist/chunk-EYM57SNL.js +60 -0
- package/dist/chunk-F2LP5MBV.js +26 -0
- package/dist/chunk-FOPR6LRY.js +121 -0
- package/dist/chunk-FPWL4VRC.js +12 -0
- package/dist/chunk-FVZP4ULO.js +14 -0
- package/dist/chunk-FXGN4KLP.js +210 -0
- package/dist/chunk-FYYZG4GY.js +47 -0
- package/dist/chunk-G3ROBZ4I.js +31 -0
- package/dist/chunk-G44QYJ57.js +106 -0
- package/dist/chunk-GF4MNBOX.js +95 -0
- package/dist/chunk-GL5GKF5A.js +68 -0
- package/dist/chunk-GOGGPW2L.js +143 -0
- package/dist/chunk-GQF23TWI.js +14 -0
- package/dist/chunk-GRXFWFGP.js +49 -0
- package/dist/chunk-GVI4JSG7.js +13 -0
- package/dist/chunk-GVVK5XFZ.js +42 -0
- package/dist/chunk-GYAXLTV6.js +37 -0
- package/dist/chunk-H3WYQ2NE.js +15 -0
- package/dist/chunk-H6LFISSF.js +40 -0
- package/dist/chunk-HCANRBFK.js +19 -0
- package/dist/chunk-HHKS3UZB.js +16 -0
- package/dist/chunk-HKGCLAZ7.js +8 -0
- package/dist/chunk-HN7MFXZ7.js +46 -0
- package/dist/chunk-HSWDSL22.js +50 -0
- package/dist/chunk-HWUAJTHE.js +92 -0
- package/dist/chunk-HXBNHLL3.js +33 -0
- package/dist/chunk-I2ZQXBOS.js +108 -0
- package/dist/chunk-I3TEQBTO.js +88 -0
- package/dist/chunk-I5MLH7WJ.js +27 -0
- package/dist/chunk-IB543JQJ.js +70 -0
- package/dist/chunk-IBAO4LIZ.js +23 -0
- package/dist/chunk-IBPSXDUB.js +8 -0
- package/dist/chunk-IEK6CQQH.js +23 -0
- package/dist/chunk-IIFOAUOM.js +34 -0
- package/dist/chunk-IMKMNPRL.js +114 -0
- package/dist/chunk-INBM4BQQ.js +27 -0
- package/dist/chunk-IOKBCYSG.js +29 -0
- package/dist/chunk-IOYGR6YV.js +23 -0
- package/dist/chunk-IV7Z4UVQ.js +150 -0
- package/dist/chunk-IVBWOIGE.js +33 -0
- package/dist/chunk-IYTAHYEL.js +98 -0
- package/dist/chunk-IZBQH3LW.js +17 -0
- package/dist/chunk-J3C454L5.js +741 -0
- package/dist/chunk-J3GISX67.js +23 -0
- package/dist/chunk-JHBA5IZR.js +20 -0
- package/dist/chunk-JHIGA7GN.js +43 -0
- package/dist/chunk-JIWFLALZ.js +269 -0
- package/dist/chunk-JM57BCD6.js +30 -0
- package/dist/chunk-JNCFHWBK.js +30 -0
- package/dist/chunk-JNEYUOQ3.js +83 -0
- package/dist/chunk-JPM7HCLI.js +23 -0
- package/dist/chunk-JPRADR2E.js +10 -0
- package/dist/chunk-JRK7JDU4.js +30 -0
- package/dist/chunk-JVG5AJA2.js +29 -0
- package/dist/chunk-JVTCXR7C.js +72 -0
- package/dist/chunk-JW6QOUMN.js +18 -0
- package/dist/chunk-K45LIKCT.js +37 -0
- package/dist/chunk-K4T24UGW.js +18 -0
- package/dist/chunk-K4TQJQWA.js +44 -0
- package/dist/chunk-K5LOYASR.js +18 -0
- package/dist/chunk-K6NKWRK4.js +30 -0
- package/dist/chunk-KD2PWI4Z.js +48 -0
- package/dist/chunk-KGFZYUE2.js +54 -0
- package/dist/chunk-KHOVDX2Y.js +21 -0
- package/dist/chunk-KLEL6TMJ.js +22 -0
- package/dist/chunk-KNXHXMFT.js +77 -0
- package/dist/chunk-KP5S3FE5.js +13 -0
- package/dist/chunk-KUCVY5R7.js +40 -0
- package/dist/chunk-KY77XKAU.js +26 -0
- package/dist/chunk-L363MNYZ.js +14 -0
- package/dist/chunk-L73KKI5J.js +111 -0
- package/dist/chunk-LBAPKP6M.js +473 -0
- package/dist/chunk-LBPOEGTS.js +271 -0
- package/dist/chunk-LDVATRUW.js +23 -0
- package/dist/chunk-LFRSZIAS.js +13 -0
- package/dist/chunk-LKDW2GWH.js +9 -0
- package/dist/chunk-LMHILP5H.js +36 -0
- package/dist/chunk-LMUTL44M.js +58 -0
- package/dist/chunk-LOP6Y256.js +18 -0
- package/dist/chunk-LSBUNT4X.js +32 -0
- package/dist/chunk-M3O2BTJG.js +12 -0
- package/dist/chunk-M5YTH55B.js +284 -0
- package/dist/chunk-MBPVW7BY.js +63 -0
- package/dist/chunk-MELBVXKL.js +36 -0
- package/dist/chunk-MJ44T7R4.js +28 -0
- package/dist/chunk-MJ4RLQ5N.js +177 -0
- package/dist/chunk-MJLABLH5.js +58 -0
- package/dist/chunk-MODUPHYS.js +20 -0
- package/dist/chunk-MRUIXQXS.js +29 -0
- package/dist/chunk-MSCF3PKY.js +26 -0
- package/dist/chunk-MSKC2RCS.js +17 -0
- package/dist/chunk-MY4TNZNI.js +36 -0
- package/dist/chunk-N65VOEFI.js +23 -0
- package/dist/chunk-N755UYFK.js +58 -0
- package/dist/chunk-NBADZOXB.js +24 -0
- package/dist/chunk-NGTSPXSJ.js +9 -0
- package/dist/chunk-NGYZK6AF.js +18 -0
- package/dist/chunk-NH33OKZQ.js +23 -0
- package/dist/chunk-NOHNPOQK.js +49 -0
- package/dist/chunk-NPQGX4IO.js +16 -0
- package/dist/chunk-NQQVL7BY.js +56 -0
- package/dist/chunk-NWNODYLQ.js +25 -0
- package/dist/chunk-NYEGRDOK.js +191 -0
- package/dist/chunk-NZYSENRR.js +50 -0
- package/dist/chunk-O5JIFWMQ.js +39 -0
- package/dist/chunk-O6HFT23O.js +39 -0
- package/dist/chunk-OBC245PJ.js +39 -0
- package/dist/chunk-ODLSWRTS.js +21 -0
- package/dist/chunk-OGJ6AZK4.js +9 -0
- package/dist/chunk-ONODYZ2H.js +146 -0
- package/dist/chunk-ORSRBZ2X.js +15 -0
- package/dist/chunk-OU6Q5ZS3.js +16 -0
- package/dist/chunk-OZNYQOQK.js +25 -0
- package/dist/chunk-P253KAVC.js +75 -0
- package/dist/chunk-P26XSDFU.js +91 -0
- package/dist/chunk-P3RGVQ5B.js +12 -0
- package/dist/chunk-P7FVAGFQ.js +52 -0
- package/dist/chunk-PCF66ALO.js +39 -0
- package/dist/chunk-PD2BTMEY.js +598 -0
- package/dist/chunk-PGQK356A.js +22 -0
- package/dist/chunk-PIDKNOD6.js +25 -0
- package/dist/chunk-PIWSOEVM.js +63 -0
- package/dist/chunk-PRYIRRAS.js +21 -0
- package/dist/chunk-PURNABFX.js +22 -0
- package/dist/chunk-PXQTFJ2N.js +216 -0
- package/dist/chunk-PYACTCZ2.js +13 -0
- package/dist/chunk-PZAEU7LL.js +23 -0
- package/dist/chunk-Q35724GR.js +51 -0
- package/dist/chunk-Q7RUUXND.js +40 -0
- package/dist/chunk-Q7YVMIA3.js +32 -0
- package/dist/chunk-QAJUCN3A.js +76 -0
- package/dist/chunk-QJRCKXTM.js +38 -0
- package/dist/chunk-QKHOYKUQ.js +362 -0
- package/dist/chunk-QPRFHNX7.js +24 -0
- package/dist/chunk-QR7KY3Y6.js +19 -0
- package/dist/chunk-QU6OQZJ2.js +56 -0
- package/dist/chunk-QVQ2OJXX.js +144 -0
- package/dist/chunk-R2HLLDFE.js +36 -0
- package/dist/chunk-R72E45HQ.js +506 -0
- package/dist/chunk-RFMBA6WA.js +18 -0
- package/dist/chunk-RIMA7EFJ.js +35 -0
- package/dist/chunk-RNFWWESE.js +9 -0
- package/dist/chunk-ROBNJX4W.js +68 -0
- package/dist/chunk-ROCHUNJI.js +36 -0
- package/dist/chunk-RPRL6G4R.js +218 -0
- package/dist/chunk-RQFIPKKQ.js +187 -0
- package/dist/chunk-RSLB4ODM.js +30 -0
- package/dist/chunk-RTYIICCX.js +24 -0
- package/dist/chunk-RVABNGZW.js +46 -0
- package/dist/chunk-RXKI4XAU.js +21 -0
- package/dist/chunk-S4S2DD5Z.js +16 -0
- package/dist/chunk-S6FVZYHH.js +16 -0
- package/dist/chunk-S6XYTJU2.js +37 -0
- package/dist/chunk-SB4BG7PH.js +159 -0
- package/dist/chunk-SC4HAADN.js +224 -0
- package/dist/chunk-SDMBTSYP.js +15 -0
- package/dist/chunk-SDOEWLEE.js +22 -0
- package/dist/chunk-SEXIHLGA.js +16 -0
- package/dist/chunk-SOZZKFBX.js +171 -0
- package/dist/chunk-SSKHLBQB.js +15 -0
- package/dist/chunk-SW7FSLHP.js +26 -0
- package/dist/chunk-T2DY3T55.js +10 -0
- package/dist/chunk-T4TPIDXO.js +111 -0
- package/dist/chunk-T7ZPGAB5.js +192 -0
- package/dist/chunk-TA6KQ26I.js +43 -0
- package/dist/chunk-TCTX3UXU.js +19 -0
- package/dist/chunk-TJGF3Z72.js +12 -0
- package/dist/chunk-TK4AJIJZ.js +47 -0
- package/dist/chunk-TK4URTR6.js +104 -0
- package/dist/chunk-TQCCEWWN.js +89 -0
- package/dist/chunk-TUPSNHFZ.js +49 -0
- package/dist/chunk-TVQY3HPZ.js +43 -0
- package/dist/chunk-TZ5PVDAR.js +48 -0
- package/dist/chunk-U732RAGX.js +240 -0
- package/dist/chunk-UEWARAPX.js +37 -0
- package/dist/chunk-UGGH3MEX.js +26 -0
- package/dist/chunk-UJAMN3ML.js +85 -0
- package/dist/chunk-UJBW7FVI.js +384 -0
- package/dist/chunk-UJMXT5CS.js +855 -0
- package/dist/chunk-UN4ABKA7.js +48 -0
- package/dist/chunk-UP6QV5BJ.js +14 -0
- package/dist/chunk-US6TNW5V.js +28 -0
- package/dist/chunk-USKD27FY.js +11 -0
- package/dist/chunk-USVQT2SR.js +94 -0
- package/dist/chunk-UU77KEL6.js +20 -0
- package/dist/chunk-UXXJTR47.js +31 -0
- package/dist/chunk-UYD7R4HL.js +26 -0
- package/dist/chunk-VABNWHSE.js +31 -0
- package/dist/chunk-VAGZIGNN.js +54 -0
- package/dist/chunk-VDE2QVT4.js +14 -0
- package/dist/chunk-VDXS55BC.js +62 -0
- package/dist/chunk-VEZ3FL5H.js +16 -0
- package/dist/chunk-VF2SKQIN.js +79 -0
- package/dist/chunk-VPMI4LV2.js +25 -0
- package/dist/chunk-VRIT72KI.js +73 -0
- package/dist/chunk-VRQ4WDF7.js +22 -0
- package/dist/chunk-VUR35GB7.js +733 -0
- package/dist/chunk-W5FPQALS.js +36 -0
- package/dist/chunk-W64CKPAW.js +101 -0
- package/dist/chunk-W6UBSIJA.js +50 -0
- package/dist/chunk-W7TRZLEM.js +23 -0
- package/dist/chunk-WDODIKZ4.js +72 -0
- package/dist/chunk-WG3TXZMV.js +70 -0
- package/dist/chunk-WG4UDKA2.js +12 -0
- package/dist/chunk-WGV2ELBS.js +41 -0
- package/dist/chunk-WOGUXGZS.js +32 -0
- package/dist/chunk-WUG2UGQC.js +136 -0
- package/dist/chunk-WX5F66TN.js +438 -0
- package/dist/chunk-WXQ3EA5H.js +12 -0
- package/dist/chunk-WYNRHOR7.js +69 -0
- package/dist/chunk-WYVUP7Z3.js +33 -0
- package/dist/chunk-X44VETJF.js +13 -0
- package/dist/chunk-X6ETCS7E.js +656 -0
- package/dist/chunk-XA3VSUG6.js +72 -0
- package/dist/chunk-XADYGSUA.js +25 -0
- package/dist/chunk-XDIVXGPQ.js +73 -0
- package/dist/chunk-XEJODD6D.js +6 -0
- package/dist/chunk-XSJGIJEE.js +8 -0
- package/dist/chunk-XT3AOF2P.js +16 -0
- package/dist/chunk-XTPBXBZA.js +11 -0
- package/dist/chunk-XV2STPP6.js +45 -0
- package/dist/chunk-XV6BO5MK.js +28 -0
- package/dist/chunk-XXXMWMVQ.js +208 -0
- package/dist/chunk-XY5OS2GH.js +147 -0
- package/dist/chunk-XZFSW5AY.js +217 -0
- package/dist/chunk-Y2KEHWBZ.js +35 -0
- package/dist/chunk-Y3JV5CEL.js +19 -0
- package/dist/chunk-Y3R4C2P7.js +231 -0
- package/dist/chunk-YC3CIJQN.js +22 -0
- package/dist/chunk-YDA62L6J.js +147 -0
- package/dist/chunk-YIBSK5OC.js +13 -0
- package/dist/chunk-YJ72SXVD.js +12 -0
- package/dist/chunk-YKVLG4SZ.js +12 -0
- package/dist/chunk-YNHPTUHS.js +75 -0
- package/dist/chunk-YOFY27RM.js +10 -0
- package/dist/chunk-YPQ6OZFB.js +103 -0
- package/dist/chunk-YQ3CNWB3.js +54 -0
- package/dist/chunk-YS3HSXSJ.js +16 -0
- package/dist/chunk-YSNIMCKC.js +8 -0
- package/dist/chunk-YTIVOMM3.js +22 -0
- package/dist/chunk-YVL3NXEB.js +6 -0
- package/dist/chunk-YXXKT6LL.js +513 -0
- package/dist/chunk-YZ5KJFYU.js +8 -0
- package/dist/chunk-Z2YQQYCQ.js +64 -0
- package/dist/chunk-Z64YKE5O.js +208 -0
- package/dist/chunk-ZABRGL2F.js +45 -0
- package/dist/chunk-ZAMEG3EN.js +470 -0
- package/dist/chunk-ZDSSSQZZ.js +12 -0
- package/dist/chunk-ZFX4EZMW.js +20 -0
- package/dist/chunk-ZKVDVSCE.js +61 -0
- package/dist/chunk-ZLRZR64W.js +36 -0
- package/dist/chunk-ZLSFTNFJ.js +12 -0
- package/dist/chunk-ZMH7UZNP.js +14 -0
- package/dist/chunk-ZO7NYS25.js +18 -0
- package/dist/chunk-ZSHH4XS6.js +11 -0
- package/dist/chunk-ZWTRFLA6.js +31 -0
- package/dist/chunk-ZYE25KR3.js +12 -0
- package/dist/chunk-ZYK7V4PG.js +22 -0
- package/dist/clean-W43XKMR2.js +49 -0
- package/dist/cliHook-HA2YOEQG.js +96 -0
- package/dist/cliHookCheck-W66AII3A.js +74 -0
- package/dist/cloneRepo-LSIV3K3X.js +80 -0
- package/dist/closeSession-I2J2ICU4.js +30 -0
- package/dist/codeCommentConfirm-LGYBP6JX.js +69 -0
- package/dist/codeCommentSet-2YWQJXI2.js +115 -0
- package/dist/codexHook-YACIK7S3.js +200 -0
- package/dist/codexHookTrust-YYBCCR7P.js +59 -0
- package/dist/commands/extension/extension/updates.json +2 -2
- package/dist/commands/sessions/web/bundle.js +408 -408
- package/dist/comment-R5MBHRIJ.js +46 -0
- package/dist/comment-SAOYKB2J.js +17 -0
- package/dist/commentIssue-PDIQVTZM.js +43 -0
- package/dist/comments-ABF3S3O5.js +56 -0
- package/dist/commit-ET4QBICB.js +511 -0
- package/dist/commits-QFWMYJC5.js +146 -0
- package/dist/configGet-42P4ONFD.js +94 -0
- package/dist/configImportRepos-ZIUYOKHH.js +142 -0
- package/dist/configImportUser-NWUPLRQE.js +177 -0
- package/dist/configKeys-HFGEHZBT.js +69 -0
- package/dist/configKeys-OGJBDYG6.js +73 -0
- package/dist/configList-CBYHO432.js +75 -0
- package/dist/configSet-3UHHWKDP.js +136 -0
- package/dist/configUnset-LYGRTYB3.js +121 -0
- package/dist/configure-ETWPCRNG.js +86 -0
- package/dist/coverage-G7J25BUX.js +17 -0
- package/dist/createIssue-AIQ3U4LC.js +357 -0
- package/dist/cyclomatic-7ZFTN5VN.js +18 -0
- package/dist/daemonStatus-YXGIS55D.js +112 -0
- package/dist/del-NHH7NU3Y.js +44 -0
- package/dist/deleteCommentCmd-SAG7WMDV.js +73 -0
- package/dist/denyAdd-YXXNFWMO.js +29 -0
- package/dist/denyList-IZVZEOSD.js +43 -0
- package/dist/denyRemove-4IUYBEMU.js +30 -0
- package/dist/deps-RSUOIZPE.js +117 -0
- package/dist/docsConfirm-2LAEAX3R.js +97 -0
- package/dist/docsUnlock-SCPIWHT5.js +93 -0
- package/dist/doctorNodes-JJ2EIU36.js +131 -0
- package/dist/done-ABRDBISM.js +92 -0
- package/dist/drainDaemon-LCQQ3EP4.js +96 -0
- package/dist/dropRetiredTables-JBLALSG5.js +31 -0
- package/dist/edit-CFPOK62A.js +133 -0
- package/dist/editHook-OWHBNL5T.js +388 -0
- package/dist/editIssue-C2G7D3VJ.js +281 -0
- package/dist/editIssueComment-5SIYQKI6.js +68 -0
- package/dist/exportBacklog-NGFOXXUG.js +24 -0
- package/dist/extension-YYRD5EM6.js +32 -0
- package/dist/extract-SGYOCBTT.js +688 -0
- package/dist/fixConflict-IPWVXZWO.js +66 -0
- package/dist/fixStructure-4UTN5ED6.js +436 -0
- package/dist/fixed-OTDA7M25.js +72 -0
- package/dist/forbiddenStrings-GVXIN7QW.js +88 -0
- package/dist/formatConfiguredCommands-WI25I2JJ.js +19 -0
- package/dist/getBacklogDir-AVGEKM42.js +18 -0
- package/dist/halstead-CMFRMXT6.js +18 -0
- package/dist/hardcodedColors-4NBF5Z53.js +61 -0
- package/dist/harnessFollowUps-PNR55PM4.js +87 -0
- package/dist/ignore-7E4ZV5XH.js +30 -0
- package/dist/importBacklog-FOGUOAIJ.js +228 -0
- package/dist/inSln-G4VRY7VM.js +22 -0
- package/dist/index.js +2832 -10
- package/dist/indexRules-65H3IE33.js +31 -0
- package/dist/init-2WH6WD64.js +9 -0
- package/dist/init-6Y2TC67U.js +23 -0
- package/dist/init-BELQ3LDU.js +25 -0
- package/dist/init-BNY2X74K.js +9 -0
- package/dist/init-PZIM2TEG.js +9 -0
- package/dist/inspect-OI5K5KSG.js +368 -0
- package/dist/jiraAuth-4Z5EVL7A.js +51 -0
- package/dist/launchMode-RBSRGUTI.js +85 -0
- package/dist/link-JDJBEJCL.js +124 -0
- package/dist/link-LYQZULAX.js +59 -0
- package/dist/linkNode-IZ7TMIBN.js +88 -0
- package/dist/lint-5AA42LMF.js +418 -0
- package/dist/list-BM6RD4CP.js +43 -0
- package/dist/list-GCJ6WCKC.js +34 -0
- package/dist/list-HCOU6YAY.js +28 -0
- package/dist/list-UXIZ6WY2.js +100 -0
- package/dist/list-ZR6AEAER.js +33 -0
- package/dist/list-ZVSHR4AA.js +113 -0
- package/dist/listComments-CTM5UMWI.js +203 -0
- package/dist/listModels-2US52LRW.js +74 -0
- package/dist/listNodes-HNKK3LEQ.js +54 -0
- package/dist/listRules-XBWM5DPH.js +41 -0
- package/dist/maintainability-P55FDYZW.js +19 -0
- package/dist/merge-MVMNYPO2.js +196 -0
- package/dist/mermaidExport-DKB3X763.js +108 -0
- package/dist/migrate-XZ562LTJ.js +37 -0
- package/dist/migrations-CSVJKLQC.js +206 -0
- package/dist/move-XAN7VFR4.js +63 -0
- package/dist/movePhase-AK3F6A6P.js +103 -0
- package/dist/moveRepo-P7LPCWIL.js +109 -0
- package/dist/netcap-FIHYF3LK.js +203 -0
- package/dist/netcapExtract-KAFERZ6V.js +462 -0
- package/dist/newCli-2HD56JUI.js +132 -0
- package/dist/newProject-5UN6N4MS.js +70 -0
- package/dist/next-FAAUSQLC.js +145 -0
- package/dist/next-H5RR3AHL.js +83 -0
- package/dist/noVenv-DONW2S6P.js +34 -0
- package/dist/nodeLogs-NNLS5TNI.js +64 -0
- package/dist/notify-NRLRUDFI.js +66 -0
- package/dist/permitCliReads-RSRMZMGS.js +313 -0
- package/dist/phaseDone-FBAQDO3S.js +99 -0
- package/dist/piHook-WAOTTSYE.js +89 -0
- package/dist/plan-GBSJWMXP.js +51 -0
- package/dist/postSlackMessage-SJQGYGJQ.js +21 -0
- package/dist/posted-ZNKIE73Q.js +76 -0
- package/dist/printComments-7ROHUEPO.js +169 -0
- package/dist/printExtensionUrl-IW2WTSNS.js +19 -0
- package/dist/prompts-SL6SHWOA.js +55 -0
- package/dist/propose-UAAUUCLA.js +307 -0
- package/dist/prs-2SRUKVTI.js +138 -0
- package/dist/prsSlackChannel-DY35HNQF.js +28 -0
- package/dist/prsStatus-6G3ZTK36.js +319 -0
- package/dist/pullIfConfigured-V2H6IFDQ.js +18 -0
- package/dist/raise-OBGNVBLZ.js +330 -0
- package/dist/raiseHelpText-6TECFMWR.js +148 -0
- package/dist/ravendbAuth-53OAERB3.js +147 -0
- package/dist/ravendbCollections-2NZYZR5P.js +35 -0
- package/dist/ravendbQuery-EY2XGKEK.js +89 -0
- package/dist/ravendbSetConnection-U7X27AIP.js +16 -0
- package/dist/readBodyArgument-NZG3GJMF.js +7 -0
- package/dist/readTime-23CA6JVM.js +168 -0
- package/dist/recordSlack-TZH2THZH.js +60 -0
- package/dist/redirect-G7WS7LDE.js +32 -0
- package/dist/refine-K4HJN4Y3.js +87 -0
- package/dist/refreshDocs-A5S2NQ5Z.js +65 -0
- package/dist/releasesConfigure-JA7QNAJF.js +211 -0
- package/dist/releasesList-EETLBTD2.js +39 -0
- package/dist/remove-CSUOZRGT.js +96 -0
- package/dist/remove-VIGXH42Y.js +43 -0
- package/dist/removePhase-S4WFO6PT.js +62 -0
- package/dist/rename-PM5VQUCY.js +96 -0
- package/dist/renameSession-IQ6RHQUJ.js +30 -0
- package/dist/renameSymbol-OOIIGF3B.js +78 -0
- package/dist/reply-4VV4LEYF.js +65 -0
- package/dist/reportCliError-6UDOLAIT.js +42 -0
- package/dist/repos-JP75ZTBU.js +130 -0
- package/dist/resolveHarness-A3F7CDF2.js +17 -0
- package/dist/resolveModel-GHXLN2T4.js +27 -0
- package/dist/restartDaemon-YSKQMKEQ.js +9 -0
- package/dist/restartNode-AAKYY7RP.js +59 -0
- package/dist/restructure-FJ3BME7E.js +760 -0
- package/dist/review-4XGSPYYJ.js +3870 -0
- package/dist/reviewPrComments-G7BLTDCB.js +80 -0
- package/dist/rewindPhase-D74DZJYB.js +82 -0
- package/dist/run-5GK74KHD.js +178 -0
- package/dist/run-E3IAT5WL.js +78 -0
- package/dist/runDaemon-7VRQFO4S.js +9284 -0
- package/dist/runExtract-IUEUT2IK.js +568 -0
- package/dist/runRefine-KCQDMHH7.js +99 -0
- package/dist/runScope-LCAGTKGG.js +39 -0
- package/dist/scan-ZYPLRIEG.js +74 -0
- package/dist/scheduleBackup-3UZQU67U.js +200 -0
- package/dist/schemaConfirm-BWQ37LUT.js +171 -0
- package/dist/schemaUnlock-6VDN2OVT.js +135 -0
- package/dist/screenshot-ARSOZ2M6.js +182 -0
- package/dist/search-JRE2KNWY.js +79 -0
- package/dist/seqAuth-6IPD5OPG.js +50 -0
- package/dist/seqQuery-HL6H4PMX.js +233 -0
- package/dist/seqSetConnection-IUCGBTON.js +30 -0
- package/dist/sessionOutput-NXHUXIKC.js +92 -0
- package/dist/setSessionStatus-HPHBUHVB.js +12 -0
- package/dist/setStatusCommand-WBRJ4BTB.js +61 -0
- package/dist/show-37KECDJB.js +327 -0
- package/dist/show-GL235RVD.js +186 -0
- package/dist/showClaudeCodeIcon-E4SAM3GN.js +12 -0
- package/dist/showCodexIcon-YUAKV4NI.js +11 -0
- package/dist/signExtension-7YGZ6OFR.js +182 -0
- package/dist/simulateDivergence-VB4UL4UR.js +27 -0
- package/dist/skip-ZZHUH3MU.js +76 -0
- package/dist/slack-74LWSKRK.js +221 -0
- package/dist/sloc-KPIIBOMR.js +18 -0
- package/dist/sqlAuth-IN4PYCIX.js +59 -0
- package/dist/sqlColumns-SNPMTHHK.js +50 -0
- package/dist/sqlMutate-4QC4IT4E.js +43 -0
- package/dist/sqlQuery-OAXPQJPY.js +53 -0
- package/dist/sqlSetConnection-UAX7TRB4.js +30 -0
- package/dist/sqlTables-ZM2PUJ7N.js +39 -0
- package/dist/star-2GG4JB3K.js +46 -0
- package/dist/start-BUUHD4ZQ.js +44 -0
- package/dist/startIssue-JSVKGZZR.js +135 -0
- package/dist/status-63OT6MGQ.js +38 -0
- package/dist/{chunk-W7ZLVOL6.js → statusLine-TK2QPCQO.js} +9 -4
- package/dist/stop-HG3UZOI6.js +52 -0
- package/dist/stopClaudeCodeIcon-P4AVHUOL.js +12 -0
- package/dist/stopCodexIcon-7O6D2SEH.js +11 -0
- package/dist/stopDaemon-XIYQ6SAW.js +8 -0
- package/dist/sync-HAAAJ4LC.js +826 -0
- package/dist/testflightAdd-MBJAAJGR.js +37 -0
- package/dist/unassignIssue-OXNUC2QQ.js +37 -0
- package/dist/unlink-TLLWWJIG.js +71 -0
- package/dist/unlinkNode-O7IZD5BN.js +41 -0
- package/dist/unstar-EEKVLJQI.js +46 -0
- package/dist/update-6NKPYHDT.js +72 -0
- package/dist/update-E72CS3ZO.js +160 -0
- package/dist/updateNode-FC4VXOHB.js +99 -0
- package/dist/updatePhase-USTBTRW4.js +163 -0
- package/dist/updatePlan-UIN3U6VU.js +315 -0
- package/dist/version-4E3HWTDD.js +47 -0
- package/dist/viewIssue-CYHIPCFO.js +36 -0
- package/dist/watchLoop-MV7DVGC6.js +30 -0
- package/dist/watchReport-A4W7UOAJ.js +23 -0
- package/dist/watchWait-FF65XUH2.js +538 -0
- package/dist/web-6YNOCOEQ.js +169 -0
- package/dist/web-L4OX5ZDA.js +178 -0
- package/dist/withPool-APJFDKR2.js +18 -0
- package/dist/wontdo-KOV5YLR6.js +52 -0
- package/dist/wontfix-UZTOERNG.js +79 -0
- package/dist/write-PH5YX6V5.js +132 -0
- package/dist/writeSignal-NGH5I4AX.js +8 -0
- package/package.json +1 -1
- package/dist/chunk-MYJJAJB7.js +0 -113
- package/dist/runCli-3UAJHEBP.js +0 -65692
- package/dist/runStatusLine-6VBMFNUZ.js +0 -17
- package/dist/statusLine-PWO6JAR2.js +0 -7
package/dist/index.js
CHANGED
|
@@ -1,15 +1,2837 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
configHelp
|
|
4
|
+
} from "./chunk-ENBVLWTC.js";
|
|
5
|
+
import {
|
|
6
|
+
prConcisenessGuidance,
|
|
7
|
+
screenshotGuidance
|
|
8
|
+
} from "./chunk-6T53CG7D.js";
|
|
9
|
+
import {
|
|
10
|
+
defaultTypeChain
|
|
11
|
+
} from "./chunk-XEJODD6D.js";
|
|
12
|
+
import {
|
|
13
|
+
minGhAttachVersion
|
|
14
|
+
} from "./chunk-B7B26YPF.js";
|
|
15
|
+
import {
|
|
16
|
+
scopeHelpText
|
|
17
|
+
} from "./chunk-TJGF3Z72.js";
|
|
18
|
+
import {
|
|
19
|
+
package_default
|
|
20
|
+
} from "./chunk-A5ELMTXR.js";
|
|
21
|
+
import {
|
|
22
|
+
adviceConfigHelp,
|
|
23
|
+
askQuestionConfigHelp,
|
|
24
|
+
autoUpdateConfigHelp,
|
|
25
|
+
backlogConfigHelp,
|
|
26
|
+
backupConfigHelp,
|
|
27
|
+
branchConfigHelp,
|
|
28
|
+
cliHookConfigHelp,
|
|
29
|
+
complexityConfigHelp,
|
|
30
|
+
configConfigHelp,
|
|
31
|
+
denyConfigHelp,
|
|
32
|
+
dotnetConfigHelp,
|
|
33
|
+
harnessConfigHelp,
|
|
34
|
+
harnessDefaultsConfigHelp,
|
|
35
|
+
hotkeysConfigHelp,
|
|
36
|
+
inboxConfigHelp,
|
|
37
|
+
jiraConfigHelp,
|
|
38
|
+
mermaidConfigHelp,
|
|
39
|
+
miroConfigHelp,
|
|
40
|
+
newsConfigHelp,
|
|
41
|
+
nextConfigHelp,
|
|
42
|
+
nodesConfigHelp,
|
|
43
|
+
prsConfigHelp,
|
|
44
|
+
prsRaiseConfigHelp,
|
|
45
|
+
ravendbConfigHelp,
|
|
46
|
+
readTimeConfigHelp,
|
|
47
|
+
refactorConfigHelp,
|
|
48
|
+
releasesConfigHelp,
|
|
49
|
+
reviewConfigHelp,
|
|
50
|
+
rootConfigHelp,
|
|
51
|
+
runConfigHelp,
|
|
52
|
+
seqConfigHelp,
|
|
53
|
+
sessionsConfigHelp,
|
|
54
|
+
slackConfigHelp,
|
|
55
|
+
sqlConfigHelp,
|
|
56
|
+
transcriptConfigHelp,
|
|
57
|
+
verifyConfigHelp,
|
|
58
|
+
webConfigHelp
|
|
59
|
+
} from "./chunk-J3C454L5.js";
|
|
60
|
+
import "./chunk-YVL3NXEB.js";
|
|
61
|
+
import {
|
|
62
|
+
testflightConfigHelp
|
|
63
|
+
} from "./chunk-UEWARAPX.js";
|
|
64
|
+
import {
|
|
65
|
+
litellmConfigHelp
|
|
66
|
+
} from "./chunk-BO5JCCC5.js";
|
|
67
|
+
import {
|
|
68
|
+
devlogConfigHelp
|
|
69
|
+
} from "./chunk-K45LIKCT.js";
|
|
70
|
+
import {
|
|
71
|
+
loadedDb
|
|
72
|
+
} from "./chunk-EW2ZM2PC.js";
|
|
73
|
+
import {
|
|
74
|
+
latestMigrationId
|
|
75
|
+
} from "./chunk-QKHOYKUQ.js";
|
|
76
|
+
import {
|
|
77
|
+
bugFeature,
|
|
78
|
+
draftFeature
|
|
79
|
+
} from "./chunk-PXQTFJ2N.js";
|
|
80
|
+
import "./chunk-XA3VSUG6.js";
|
|
81
|
+
import "./chunk-GVVK5XFZ.js";
|
|
82
|
+
import {
|
|
83
|
+
harnesses
|
|
84
|
+
} from "./chunk-XDIVXGPQ.js";
|
|
85
|
+
import {
|
|
86
|
+
parseDuration
|
|
87
|
+
} from "./chunk-DZGYHAE7.js";
|
|
2
88
|
|
|
3
|
-
// src/
|
|
4
|
-
|
|
5
|
-
|
|
89
|
+
// src/createProgram.ts
|
|
90
|
+
import { Command } from "commander";
|
|
91
|
+
|
|
92
|
+
// src/commands/registerRootAction.ts
|
|
93
|
+
function registerRootAction(program) {
|
|
94
|
+
program.option("--no-open", "Do not open a browser on startup").action(
|
|
95
|
+
async (options) => (await import("./web-6YNOCOEQ.js")).web({
|
|
96
|
+
port: "3100",
|
|
97
|
+
open: options.open
|
|
98
|
+
})
|
|
99
|
+
);
|
|
6
100
|
}
|
|
7
101
|
|
|
8
|
-
// src/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
102
|
+
// src/shared/lazyAction.ts
|
|
103
|
+
function lazyAction(load, name) {
|
|
104
|
+
return async (...args) => {
|
|
105
|
+
const action = (await load())[name];
|
|
106
|
+
await action(...args);
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// src/commands/new/registerNew.ts
|
|
111
|
+
function registerNew(program) {
|
|
112
|
+
const newCommand = program.command("new").description("Scaffold a new project");
|
|
113
|
+
newCommand.command("vite").description("Initialize a new Vite React TypeScript project").action(lazyAction(() => import("./newProject-5UN6N4MS.js"), "newProject"));
|
|
114
|
+
newCommand.command("cli").description("Initialize a new tsup CLI project").action(lazyAction(() => import("./newCli-2HD56JUI.js"), "newCli"));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// src/commands/registerActivity.ts
|
|
118
|
+
function registerActivity(program) {
|
|
119
|
+
program.command("activity").description("Chart GitHub commit activity per day").option(
|
|
120
|
+
"--since <date>",
|
|
121
|
+
"Start date (YYYY-MM-DD), defaults to 30 days ago"
|
|
122
|
+
).action(lazyAction(() => import("./activity-2SEJVUW5.js"), "activity"));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// src/commands/registerAdvise.ts
|
|
126
|
+
function registerAdvise(program) {
|
|
127
|
+
const adviseCommand = program.command("advise").description(
|
|
128
|
+
"Print the advice fragments that apply to this repo, composed from config and repo facts"
|
|
129
|
+
).option(
|
|
130
|
+
"--hook",
|
|
131
|
+
"emit the advice as SessionStart hook JSON (additionalContext)"
|
|
132
|
+
).option(
|
|
133
|
+
"--explain",
|
|
134
|
+
"list every shipped fragment with whether it was included and why"
|
|
135
|
+
).action(async (options) => {
|
|
136
|
+
const { advise } = await import("./advise-E6QAZIMK.js");
|
|
137
|
+
await advise({ hook: options.hook, explain: options.explain });
|
|
138
|
+
});
|
|
139
|
+
configHelp(adviseCommand, adviceConfigHelp);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
// src/shared/internalCommand.ts
|
|
143
|
+
function internalCommand(command, calledBy5) {
|
|
144
|
+
command.internalCalledBy = calledBy5;
|
|
145
|
+
return command;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// src/commands/registerAsk.ts
|
|
149
|
+
function registerAsk(program) {
|
|
150
|
+
internalCommand(
|
|
151
|
+
program.command("ask").description(
|
|
152
|
+
"Open markdown in the session's web preview pane for the user to approve or reject, with inline comments, and wait for the decision; prints it outside a web session"
|
|
153
|
+
).requiredOption("--title <title>", "Pane title").requiredOption(
|
|
154
|
+
"--body <markdown|->",
|
|
155
|
+
"Markdown to review, or - for stdin"
|
|
156
|
+
).action(lazyAction(() => import("./ask-ESCDDQH5.js"), "ask")),
|
|
157
|
+
"/ask"
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// src/commands/registerAskCheck.ts
|
|
162
|
+
function registerAskCheck(program) {
|
|
163
|
+
internalCommand(
|
|
164
|
+
configHelp(
|
|
165
|
+
program.command("ask-check").description(
|
|
166
|
+
"Ask the user to perform a manual check in the session's web preview pane and wait for Works / Doesn't work plus an optional note"
|
|
167
|
+
).requiredOption(
|
|
168
|
+
"--json <file|->",
|
|
169
|
+
"Check JSON ({title, steps, before?, changed?}): title \u226460 chars, 1-4 steps \u226490 chars each, \u22644 before chips, changed \u2264160 chars; or - for stdin"
|
|
170
|
+
).option(
|
|
171
|
+
"--check <n>",
|
|
172
|
+
"1-based index of the current backlog phase's manual check this covers; lets the user move it to a later phase"
|
|
173
|
+
).action(lazyAction(() => import("./askCheck-EYZOXM6D.js"), "askCheck")),
|
|
174
|
+
askQuestionConfigHelp
|
|
175
|
+
),
|
|
176
|
+
"Claude when asking the user to test a change"
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// src/commands/registerAskDesign.ts
|
|
181
|
+
function registerAskDesign(program) {
|
|
182
|
+
internalCommand(
|
|
183
|
+
program.command("ask-design").description(
|
|
184
|
+
"Open a claude.ai design artifact in the session's web preview pane for the user to approve or reject, with inline comments, and wait for the decision; prints the link outside a web session, and exits with the reasons when design review is unavailable on the running harness (it needs artifact publishing)"
|
|
185
|
+
).requiredOption(
|
|
186
|
+
"--url <artifact-url>",
|
|
187
|
+
"claude.ai artifact link of the design"
|
|
188
|
+
).requiredOption("--title <title>", "Pane title").option("--body <markdown|->", "Markdown summary, or - for stdin").action(lazyAction(() => import("./askDesign-ZMHB4WKG.js"), "askDesign")),
|
|
189
|
+
"/draft"
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// src/commands/registerAskQuestion.ts
|
|
194
|
+
function registerAskQuestion(program) {
|
|
195
|
+
internalCommand(
|
|
196
|
+
configHelp(
|
|
197
|
+
program.command("ask-question").description(
|
|
198
|
+
"Ask the AskUserQuestion questions in the session's web preview pane and wait for the answers; prints the same result text as the built-in tool"
|
|
199
|
+
).requiredOption(
|
|
200
|
+
"--json <file|->",
|
|
201
|
+
"AskUserQuestion input JSON ({questions: [...]}), or - for stdin"
|
|
202
|
+
).action(lazyAction(() => import("./askQuestion-EQV37YPA.js"), "askQuestion")),
|
|
203
|
+
askQuestionConfigHelp
|
|
204
|
+
),
|
|
205
|
+
"Claude in place of AskUserQuestion"
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// src/commands/registerBackup.ts
|
|
210
|
+
function registerBackup(program) {
|
|
211
|
+
const backupCommand = program.command("backup").description(
|
|
212
|
+
"Write a backlog database dump and record it in the backups table"
|
|
213
|
+
).option(
|
|
214
|
+
"-o, --out <dir>",
|
|
215
|
+
"Directory to write the dump to (overrides the backup.dir config)"
|
|
216
|
+
).action(lazyAction(() => import("./backup-3SNDW5JN.js"), "backup"));
|
|
217
|
+
const scheduleCommand = backupCommand.command("schedule").description("Manage a recurring crontab entry that runs assist backup").option("--every <duration>", "Cadence to run the backup (e.g. 5m, 6h)").action(
|
|
218
|
+
lazyAction(() => import("./scheduleBackup-3UZQU67U.js"), "scheduleBackup")
|
|
219
|
+
);
|
|
220
|
+
scheduleCommand.command("status").description("Show the active backup schedule, or report that none is set").action(
|
|
221
|
+
lazyAction(() => import("./scheduleBackup-3UZQU67U.js"), "scheduleStatus")
|
|
222
|
+
);
|
|
223
|
+
scheduleCommand.command("remove").description(
|
|
224
|
+
"Remove the marked backup schedule block, leaving other crontab lines intact"
|
|
225
|
+
).action(
|
|
226
|
+
lazyAction(() => import("./scheduleBackup-3UZQU67U.js"), "scheduleRemove")
|
|
227
|
+
);
|
|
228
|
+
configHelp(backupCommand, backupConfigHelp);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// src/commands/registerChart.ts
|
|
232
|
+
function registerChart(program) {
|
|
233
|
+
program.command("chart").description(
|
|
234
|
+
"Chart a label/value series read from stdin, one pair per line (comma, tab or whitespace separated)"
|
|
235
|
+
).option("--title <title>", "Chart title").action(lazyAction(() => import("./chart-4G75ADCW.js"), "chart"));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// src/commands/backlog/markAgentCommands.ts
|
|
239
|
+
var AGENTS = "agents working on backlog items";
|
|
240
|
+
var agentCommands = {
|
|
241
|
+
add: AGENTS,
|
|
242
|
+
"add-phase": AGENTS,
|
|
243
|
+
"update-phase": AGENTS,
|
|
244
|
+
"remove-phase": AGENTS,
|
|
245
|
+
"move-phase": AGENTS,
|
|
246
|
+
start: AGENTS,
|
|
247
|
+
stop: AGENTS,
|
|
248
|
+
wontdo: AGENTS,
|
|
249
|
+
"set-status": AGENTS,
|
|
250
|
+
star: AGENTS,
|
|
251
|
+
unstar: AGENTS,
|
|
252
|
+
delete: AGENTS,
|
|
253
|
+
"delete-comment": AGENTS,
|
|
254
|
+
link: AGENTS,
|
|
255
|
+
unlink: AGENTS,
|
|
256
|
+
"associate-jira": "/draft, /bug and /refine",
|
|
257
|
+
"associate-github": "/draft, /bug and /refine",
|
|
258
|
+
run: "the dashboard's Build and assist next",
|
|
259
|
+
refine: AGENTS,
|
|
260
|
+
rewind: "the review phase of a backlog run"
|
|
261
|
+
};
|
|
262
|
+
function markAgentCommands(cmd) {
|
|
263
|
+
for (const [name, calledBy5] of Object.entries(agentCommands)) {
|
|
264
|
+
const command = cmd.commands.find((c) => c.name() === name);
|
|
265
|
+
if (!command) throw new Error(`No backlog command named ${name}`);
|
|
266
|
+
if (!command.internalCalledBy)
|
|
267
|
+
internalCommand(command, calledBy5);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// src/commands/backlog/registerActivityCommands.ts
|
|
272
|
+
function registerActivityCommands(cmd) {
|
|
273
|
+
internalCommand(
|
|
274
|
+
cmd.command("add-activity <id> <kind> <ref>").description(
|
|
275
|
+
"Attach an activity ref (branch|commit|pr|slack|session|design) to a backlog item"
|
|
276
|
+
).option("--title <title>", "Title metadata for the ref").option("--url <url>", "URL metadata (auto-filled for branch/commit)").option("--state <state>", "State metadata for the ref").action(lazyAction(() => import("./addActivity-EZZ6TFDF.js"), "addActivity")),
|
|
277
|
+
"/draft and /bug"
|
|
278
|
+
);
|
|
279
|
+
internalCommand(
|
|
280
|
+
cmd.command("record-slack <url>").description(
|
|
281
|
+
"Attach a Slack thread permalink to the current session's backlog item"
|
|
282
|
+
).option("--title <title>", "PR title to label the ref with").action(lazyAction(() => import("./recordSlack-TZH2THZH.js"), "recordSlack")),
|
|
283
|
+
"/prs-slack"
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// src/commands/backlog/registerAssociateGithubCommand.ts
|
|
288
|
+
function registerAssociateGithubCommand(cmd) {
|
|
289
|
+
cmd.command("associate-github <id> [issue]").description("Associate a GitHub issue with a backlog item").option("--clear", "Remove the GitHub association from the item").action(lazyAction(() => import("./associateGithub-VYQUEKWJ.js"), "associateGithub"));
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
// src/commands/backlog/registerAssociateJiraCommand.ts
|
|
293
|
+
function registerAssociateJiraCommand(cmd) {
|
|
294
|
+
cmd.command("associate-jira <id> [key]").description("Associate a Jira ticket with a backlog item").option("--clear", "Remove the Jira association from the item").action(lazyAction(() => import("./associateJira-EUNZOJJC.js"), "associateJira"));
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// src/commands/backlog/registerCloneCommand.ts
|
|
298
|
+
function registerCloneCommand(cmd) {
|
|
299
|
+
cmd.command("clone <origin>").description(
|
|
300
|
+
"Clone a repo over SSH into the configured base directory, deriving the SSH remote from a stored origin (host/org/repo -> git@host:org/repo.git); local: origins are not clonable"
|
|
301
|
+
).action(
|
|
302
|
+
async (origin) => (await import("./cloneRepo-LSIV3K3X.js")).cloneRepo(origin)
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// src/commands/backlog/registerCommentCommands.ts
|
|
307
|
+
function registerCommentCommands(cmd) {
|
|
308
|
+
internalCommand(
|
|
309
|
+
cmd.command("comment <id> <text>").description("Add a comment to a backlog item").action(lazyAction(() => import("./comment-R5MBHRIJ.js"), "comment")),
|
|
310
|
+
"backlog run phases and /refine"
|
|
311
|
+
);
|
|
312
|
+
cmd.command("comments <id>").description("List comments and summaries for a backlog item").action(lazyAction(() => import("./comments-ABF3S3O5.js"), "comments"));
|
|
313
|
+
cmd.command("delete-comment <id> <comment-id>").description("Delete a comment from a backlog item").action(lazyAction(() => import("./deleteCommentCmd-SAG7WMDV.js"), "deleteCommentCmd"));
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// src/commands/backlog/registerExportCommand.ts
|
|
317
|
+
function registerExportCommand(cmd) {
|
|
318
|
+
cmd.command("export [file]").description(
|
|
319
|
+
"Export every table in the backlog database (discovered by introspection) to a file, or stdout if omitted"
|
|
320
|
+
).action(lazyAction(() => import("./exportBacklog-NGFOXXUG.js"), "exportBacklog"));
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
// src/commands/backlog/registerImportCommand.ts
|
|
324
|
+
function registerImportCommand(cmd) {
|
|
325
|
+
cmd.command("import [file]").description(
|
|
326
|
+
"Restore every table in a dump back into the backlog database, in foreign-key-safe order, from a file or stdin if omitted (destructive)"
|
|
327
|
+
).option("-y, --yes", "Skip the confirmation prompt").action(
|
|
328
|
+
async (file, options) => (await import("./importBacklog-FOGUOAIJ.js")).importBacklog(file, options)
|
|
329
|
+
);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
// src/commands/backlog/propose/proposeHelpText.ts
|
|
333
|
+
var proposeHelpText = `The payload is strict JSON: { name, type, description?, acceptanceCriteria?, phases? }.
|
|
334
|
+
Each phase is { name, tasks, manualChecks? } and needs at least one task.
|
|
335
|
+
|
|
336
|
+
The Review phase is owned by the runner and appended to every plan automatically,
|
|
337
|
+
so it must not be authored: a phase named "Review" is rejected. Do not add a final
|
|
338
|
+
phase for verifying acceptance criteria, confirming manual checks, committing or
|
|
339
|
+
marking the item done \u2014 that is what the appended Review phase does.`;
|
|
340
|
+
|
|
341
|
+
// src/commands/backlog/registerProposeCommand.ts
|
|
342
|
+
function registerProposeCommand(cmd) {
|
|
343
|
+
internalCommand(
|
|
344
|
+
cmd.command("propose").description(
|
|
345
|
+
"Preview a complete backlog item for approval, then create it on approval"
|
|
346
|
+
).requiredOption(
|
|
347
|
+
"--json <file|->",
|
|
348
|
+
"Path to a JSON payload describing the item, or - to read it from stdin"
|
|
349
|
+
).option(
|
|
350
|
+
"--confirmed",
|
|
351
|
+
"Create the item after its draft has been reviewed in chat (agent use outside a web session)"
|
|
352
|
+
).addHelpText("after", `
|
|
353
|
+
${proposeHelpText}`).action(lazyAction(() => import("./propose-UAAUUCLA.js"), "propose")),
|
|
354
|
+
"/draft and /bug"
|
|
355
|
+
);
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// src/commands/backlog/registerItemCommands.ts
|
|
359
|
+
function registerItemCommands(cmd) {
|
|
360
|
+
cmd.command("list").alias("ls").description("List all backlog items").option(
|
|
361
|
+
"--status <type>",
|
|
362
|
+
"Filter by status (todo, in-progress, done, wontdo)"
|
|
363
|
+
).option("-a, --all", "Include done/wontdo items").option("--all-repos", "List items across all repositories").option("-v, --verbose", "Show all item details").action(lazyAction(() => import("./list-UXIZ6WY2.js"), "list"));
|
|
364
|
+
cmd.command("add").description("Add a new backlog item").option("--name <name>", "Item name").option("--type <type>", "Item type (story or bug)").option(
|
|
365
|
+
"--desc <description>",
|
|
366
|
+
String.raw`Item description (Markdown supported; use \n for line breaks)`
|
|
367
|
+
).option("--ac <criterion...>", "Acceptance criteria (repeatable)").action(lazyAction(() => import("./add-XWJN42HG.js"), "add"));
|
|
368
|
+
registerProposeCommand(cmd);
|
|
369
|
+
cmd.command("add-phase <id> <name>").description("Add a phase to an existing backlog item").option("--task <task...>", "Task description (repeatable)").option(
|
|
370
|
+
"--manual-check <check...>",
|
|
371
|
+
"Manual check description (repeatable)"
|
|
372
|
+
).option(
|
|
373
|
+
"--position <position>",
|
|
374
|
+
"1-indexed position to insert at (default: append)"
|
|
375
|
+
).action(lazyAction(() => import("./addPhase-LOT43TS7.js"), "addPhase"));
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
// src/commands/backlog/registerLinkCommands.ts
|
|
379
|
+
function registerLinkCommands(cmd) {
|
|
380
|
+
cmd.command("link <from> <to>").description("Link two backlog items").option(
|
|
381
|
+
"--type <type>",
|
|
382
|
+
"Link type (relates-to or depends-on)",
|
|
383
|
+
"relates-to"
|
|
384
|
+
).action(lazyAction(() => import("./link-JDJBEJCL.js"), "link"));
|
|
385
|
+
cmd.command("unlink <from> <to>").description("Remove a link between two backlog items").action(lazyAction(() => import("./unlink-TLLWWJIG.js"), "unlink"));
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
// src/commands/backlog/registerMoveRepoCommand.ts
|
|
389
|
+
function registerMoveRepoCommand(cmd) {
|
|
390
|
+
cmd.command("move-repo <old-origin> [new-origin]").description(
|
|
391
|
+
"Retag all items from one origin to another after a repo rename (new origin defaults to the current repo's remote)"
|
|
392
|
+
).option("-y, --yes", "Skip the confirmation prompt").action(
|
|
393
|
+
async (oldOrigin, newOrigin, options) => (await import("./moveRepo-P7LPCWIL.js")).moveRepo(oldOrigin, newOrigin, options)
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
// src/commands/backlog/registerNextCommand.ts
|
|
398
|
+
function registerNextCommand(cmd) {
|
|
399
|
+
cmd.command("next").argument("[id]", "Backlog item ID to run first").description("Pick and run the next backlog item, or open /draft if none").option("-w, --write", "Run Claude with auto permission mode (default)").option("--no-write", "Run Claude without auto permission mode").option("--once", "Exit after the first completed item run").action(
|
|
400
|
+
async (id, opts) => (await import("./next-H5RR3AHL.js")).next(
|
|
401
|
+
{ allowEdits: opts.write !== false, once: opts.once },
|
|
402
|
+
id
|
|
403
|
+
)
|
|
404
|
+
);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
// src/commands/backlog/registerPlanCommands.ts
|
|
408
|
+
function registerPlanCommands(cmd) {
|
|
409
|
+
cmd.command("plan <id>").description("Display the plan for a backlog item").action(lazyAction(() => import("./plan-GBSJWMXP.js"), "plan"));
|
|
410
|
+
internalCommand(
|
|
411
|
+
cmd.command("phase-done <id> <phase> <summary>").description("Signal that a plan phase is complete").action(lazyAction(() => import("./phaseDone-FBAQDO3S.js"), "phaseDone")),
|
|
412
|
+
"the agent running each phase of a backlog run"
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
// src/commands/backlog/registerRefineCommand.ts
|
|
417
|
+
function registerRefineCommand(cmd) {
|
|
418
|
+
cmd.command("refine").argument("[id]", "Backlog item ID").description("Alias for refine").option("--once", "Exit when the initial task completes").option(
|
|
419
|
+
"--harness <kind>",
|
|
420
|
+
"Coding harness to launch (claude|codex|pi); defaults to the configured harness.engine. Exits with the reasons, without launching, when Refine is unavailable on it"
|
|
421
|
+
).action(
|
|
422
|
+
async (id, opts) => {
|
|
423
|
+
const { refine: backlogRefine } = await import("./refine-K4HJN4Y3.js");
|
|
424
|
+
const { resolveHarness } = await import("./resolveHarness-A3F7CDF2.js");
|
|
425
|
+
return backlogRefine(id, {
|
|
426
|
+
once: opts.once,
|
|
427
|
+
harness: resolveHarness(opts.harness)
|
|
428
|
+
});
|
|
429
|
+
}
|
|
430
|
+
);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
// src/commands/backlog/registerRefreshDocsCommand.ts
|
|
434
|
+
function registerRefreshDocsCommand(cmd) {
|
|
435
|
+
cmd.command("refresh-docs").description(
|
|
436
|
+
"Create a Refresh docs item now for every done story not yet swept, without waiting for docs.refreshAfter (refused when docs.refreshAfter is unset: Refresh docs is off)"
|
|
437
|
+
).action(lazyAction(() => import("./refreshDocs-A5S2NQ5Z.js"), "refreshDocs"));
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
// src/commands/backlog/registerRewindCommand.ts
|
|
441
|
+
function registerRewindCommand(cmd) {
|
|
442
|
+
cmd.command("rewind <id> <phase>").description("Rewind a backlog item to an earlier phase").requiredOption("--reason <reason>", "Reason for rewinding").action(lazyAction(() => import("./rewindPhase-D74DZJYB.js"), "rewindPhase"));
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
// src/commands/backlog/registerRunCommand.ts
|
|
446
|
+
function registerRunCommand(cmd) {
|
|
447
|
+
const command = cmd.command("run <id>").description("Run a backlog item's plan phase-by-phase").option("-w, --write", "Run the harness with write access (default)").option("--no-write", "Run the harness without write access").option(
|
|
448
|
+
"--harness <harness>",
|
|
449
|
+
"Coding harness to launch (claude|codex|pi); defaults to the configured harness.defaults.run.harness, then harness.engine, then an installed harness when neither is configured"
|
|
450
|
+
).option(
|
|
451
|
+
"--model <model>",
|
|
452
|
+
"Model to launch the harness with; defaults to harness.defaults.run.model while the run type's harness is used"
|
|
453
|
+
).option("--no-model", "Launch with the harness's own default model").option(
|
|
454
|
+
"--resume-session <id>",
|
|
455
|
+
"Resume an interrupted Claude session for the current phase (used by the sessions daemon on restart)"
|
|
456
|
+
).action(
|
|
457
|
+
async (id, opts) => {
|
|
458
|
+
const { pullIfConfigured } = await import("./pullIfConfigured-V2H6IFDQ.js");
|
|
459
|
+
const { resolveHarness } = await import("./resolveHarness-A3F7CDF2.js");
|
|
460
|
+
const { resolveModel } = await import("./resolveModel-GHXLN2T4.js");
|
|
461
|
+
const { run: backlogRun } = await import("./run-E3IAT5WL.js");
|
|
462
|
+
if (!opts.resumeSession) await pullIfConfigured();
|
|
463
|
+
const harness = resolveHarness(opts.harness, "run");
|
|
464
|
+
await backlogRun(id, {
|
|
465
|
+
allowEdits: opts.write !== false,
|
|
466
|
+
harness,
|
|
467
|
+
model: resolveModel(opts.model, "run", harness),
|
|
468
|
+
resumeSessionId: opts.resumeSession
|
|
469
|
+
});
|
|
470
|
+
}
|
|
471
|
+
);
|
|
472
|
+
configHelp(command, [...harnessConfigHelp, ...harnessDefaultsConfigHelp]);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
// src/commands/backlog/registerSearchCommand.ts
|
|
476
|
+
function registerSearchCommand(cmd) {
|
|
477
|
+
cmd.command("search <query>").description("Search backlog items by keyword").action(lazyAction(() => import("./search-JRE2KNWY.js"), "search"));
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
// src/commands/backlog/registerStatusCommands.ts
|
|
481
|
+
function registerStatusCommands(cmd) {
|
|
482
|
+
cmd.command("start <id>").description("Set a backlog item to in-progress").action(lazyAction(() => import("./start-BUUHD4ZQ.js"), "start"));
|
|
483
|
+
cmd.command("stop").description("Revert all in-progress backlog items to todo").action(lazyAction(() => import("./stop-HG3UZOI6.js"), "stop"));
|
|
484
|
+
internalCommand(
|
|
485
|
+
cmd.command("done <id> [summary]").description("Set a backlog item to done").action(lazyAction(() => import("./done-ABRDBISM.js"), "done")),
|
|
486
|
+
"the review phase of a backlog run"
|
|
487
|
+
);
|
|
488
|
+
cmd.command("wontdo <id> [reason]").description("Set a backlog item to won't do").action(lazyAction(() => import("./wontdo-KOV5YLR6.js"), "wontdo"));
|
|
489
|
+
cmd.command("set-status <id> <status>").description(
|
|
490
|
+
"Set a backlog item to a specific status (todo, in-progress, done, wontdo)"
|
|
491
|
+
).action(lazyAction(() => import("./setStatusCommand-WBRJ4BTB.js"), "setStatusCommand"));
|
|
492
|
+
cmd.command("star <id>").description("Star a backlog item to pin it in the web view").action(lazyAction(() => import("./star-2GG4JB3K.js"), "star"));
|
|
493
|
+
cmd.command("unstar <id>").description("Remove the star from a backlog item").action(lazyAction(() => import("./unstar-EEKVLJQI.js"), "unstar"));
|
|
494
|
+
cmd.command("delete <id>").alias("remove").description("Delete a backlog item").action(lazyAction(() => import("./del-NHH7NU3Y.js"), "del"));
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
// src/commands/backlog/registerUpdatePhaseCommand.ts
|
|
498
|
+
function collect(value, previous) {
|
|
499
|
+
return [...previous, value];
|
|
500
|
+
}
|
|
501
|
+
function registerUpdatePhaseCommand(cmd) {
|
|
502
|
+
cmd.command("update-phase <id> <phase>").alias("edit-phase").description("Modify a plan phase on a backlog item").option("--name <name>", "New phase name").option("--task <task...>", "Replace tasks (repeatable)").option("--manual-check <check...>", "Replace manual checks (repeatable)").option("--add-task <text>", "Append one task (repeatable)", collect, []).option("--edit-task <n> <text...>", "Replace task n (1-based) in place").option("--remove-task <n>", "Remove task n (1-based)").option(
|
|
503
|
+
"--add-check <text>",
|
|
504
|
+
"Append one manual check (repeatable)",
|
|
505
|
+
collect,
|
|
506
|
+
[]
|
|
507
|
+
).option(
|
|
508
|
+
"--edit-check <n> <text...>",
|
|
509
|
+
"Replace manual check n (1-based) in place"
|
|
510
|
+
).option("--remove-check <n>", "Remove manual check n (1-based)").action(lazyAction(() => import("./updatePhase-USTBTRW4.js"), "updatePhase"));
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
// src/commands/backlog/registerUpdateFieldCommand.ts
|
|
514
|
+
function collect2(value, previous) {
|
|
515
|
+
return [...previous, value];
|
|
516
|
+
}
|
|
517
|
+
function registerUpdateFieldCommand(cmd) {
|
|
518
|
+
internalCommand(
|
|
519
|
+
cmd.command("update-field <id>").description("Update fields on a backlog item").option("--name <name>", "New item name").option(
|
|
520
|
+
"--desc <description>",
|
|
521
|
+
String.raw`New description (Markdown supported; use \n for line breaks)`
|
|
522
|
+
).option("--type <type>", "New type (story or bug)").option("--ac <criterion...>", "Replace acceptance criteria (repeatable)").option(
|
|
523
|
+
"--add-ac <text>",
|
|
524
|
+
"Append one acceptance criterion (repeatable)",
|
|
525
|
+
collect2,
|
|
526
|
+
[]
|
|
527
|
+
).option(
|
|
528
|
+
"--edit-ac <n> <text...>",
|
|
529
|
+
"Replace acceptance criterion n (1-based) in place"
|
|
530
|
+
).option("--remove-ac <n>", "Remove acceptance criterion n (1-based)").option(
|
|
531
|
+
"--origin [origin]",
|
|
532
|
+
"Retag the item to a different repo (origin URL or key, normalized); with no value, retags to the current repo's origin"
|
|
533
|
+
).action(lazyAction(() => import("./update-E72CS3ZO.js"), "update")),
|
|
534
|
+
"/refine"
|
|
535
|
+
);
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
// src/commands/backlog/registerUpdateCommands.ts
|
|
539
|
+
function registerUpdateCommands(cmd) {
|
|
540
|
+
registerUpdateFieldCommand(cmd);
|
|
541
|
+
registerUpdatePhaseCommand(cmd);
|
|
542
|
+
cmd.command("remove-phase <id> <phase>").description("Remove a plan phase from a backlog item").action(lazyAction(() => import("./removePhase-S4WFO6PT.js"), "removePhase"));
|
|
543
|
+
internalCommand(
|
|
544
|
+
cmd.command("update-plan <id>").description(
|
|
545
|
+
"Replace an item's whole plan from a JSON payload, previewed and applied in one approval"
|
|
546
|
+
).requiredOption(
|
|
547
|
+
"--json <file|->",
|
|
548
|
+
"Path to a JSON payload of { phases: [{ name, tasks, manualChecks }] }, or - to read it from stdin"
|
|
549
|
+
).action(lazyAction(() => import("./updatePlan-UIN3U6VU.js"), "updatePlan")),
|
|
550
|
+
"/refine"
|
|
551
|
+
);
|
|
552
|
+
cmd.command("move-phase <id> <from> <to>").description(
|
|
553
|
+
"Reorder a plan phase from one 1-based position to another, moving its tasks with it"
|
|
554
|
+
).action(lazyAction(() => import("./movePhase-AK3F6A6P.js"), "movePhase"));
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
// src/commands/backlog/registerShowCommands.ts
|
|
558
|
+
function registerShowCommands(cmd) {
|
|
559
|
+
cmd.command("show <id>").alias("view").description("Show full detail for a backlog item").option(
|
|
560
|
+
"--all-commits",
|
|
561
|
+
"Show every commit in Activity instead of the newest 10"
|
|
562
|
+
).action(lazyAction(() => import("./show-37KECDJB.js"), "show"));
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
// src/commands/registerBacklog.ts
|
|
566
|
+
function registerWebCommand(cmd) {
|
|
567
|
+
cmd.command("web").description("Open the backlog tab in the web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(lazyAction(() => import("./web-L4OX5ZDA.js"), "web"));
|
|
568
|
+
}
|
|
569
|
+
var registrars = [
|
|
570
|
+
registerItemCommands,
|
|
571
|
+
registerShowCommands,
|
|
572
|
+
registerStatusCommands,
|
|
573
|
+
registerWebCommand,
|
|
574
|
+
registerCommentCommands,
|
|
575
|
+
registerLinkCommands,
|
|
576
|
+
registerPlanCommands,
|
|
577
|
+
registerRewindCommand,
|
|
578
|
+
registerNextCommand,
|
|
579
|
+
registerRefineCommand,
|
|
580
|
+
registerRefreshDocsCommand,
|
|
581
|
+
registerRunCommand,
|
|
582
|
+
registerSearchCommand,
|
|
583
|
+
registerUpdateCommands,
|
|
584
|
+
registerExportCommand,
|
|
585
|
+
registerImportCommand,
|
|
586
|
+
registerMoveRepoCommand,
|
|
587
|
+
registerCloneCommand,
|
|
588
|
+
registerAssociateJiraCommand,
|
|
589
|
+
registerAssociateGithubCommand,
|
|
590
|
+
registerActivityCommands
|
|
591
|
+
];
|
|
592
|
+
function registerBacklog(program) {
|
|
593
|
+
const cmd = program.command("backlog").description("Manage a backlog of work items").option("--dir <path>", "Override directory for backlog file discovery").option("--no-open", "Do not open a browser on startup").hook("preAction", async (thisCommand) => {
|
|
594
|
+
const { setBacklogDir } = await import("./getBacklogDir-AVGEKM42.js");
|
|
595
|
+
setBacklogDir(thisCommand.opts().dir);
|
|
596
|
+
}).action(
|
|
597
|
+
async (options) => (await import("./web-L4OX5ZDA.js")).web({ port: "3100", open: options.open })
|
|
598
|
+
);
|
|
599
|
+
for (const register of registrars) {
|
|
600
|
+
register(cmd);
|
|
601
|
+
}
|
|
602
|
+
markAgentCommands(cmd);
|
|
603
|
+
configHelp(cmd, backlogConfigHelp);
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
// src/commands/registerBranch.ts
|
|
607
|
+
function registerBranch(program) {
|
|
608
|
+
const branchCommand = program.command("branch <slug>").description(
|
|
609
|
+
"Create and switch to a branch off the fresh remote default branch"
|
|
610
|
+
).option("--jira <key>", "Jira issue key to include in the branch name").option(
|
|
611
|
+
"--from <ref>",
|
|
612
|
+
"base the branch off <ref> verbatim (local branch, tag, or origin/*) instead of the fresh remote default"
|
|
613
|
+
).action(
|
|
614
|
+
async (slug, options) => (await import("./branch-4YGQB3MS.js")).branch(slug, options)
|
|
615
|
+
);
|
|
616
|
+
internalCommand(branchCommand, "/branch");
|
|
617
|
+
configHelp(
|
|
618
|
+
branchCommand,
|
|
619
|
+
branchConfigHelp,
|
|
620
|
+
"Branch name is assembled as [<prefix>/][<JIRA>-]<slug>, e.g. sw/BAD-671-add-login-form."
|
|
621
|
+
);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
// src/commands/registerDeny.ts
|
|
625
|
+
function registerDeny(parent) {
|
|
626
|
+
const denyCommand = parent.command("deny").description("Manage command deny rules").action(lazyAction(() => import("./denyList-IZVZEOSD.js"), "denyList"));
|
|
627
|
+
configHelp(denyCommand, denyConfigHelp);
|
|
628
|
+
denyCommand.command("add").description("Add a deny rule for a command pattern").argument("<pattern>", "Command prefix to deny").argument("<message>", "Correction message shown to the agent").option("--node", "Write to user (node): this node's ~/.assist.yml").action(lazyAction(() => import("./denyAdd-YXXNFWMO.js"), "denyAdd"));
|
|
629
|
+
denyCommand.command("remove").description("Remove a deny rule by pattern").argument("<pattern>", "Command prefix to remove").option("--node", "Remove from user (node): this node's ~/.assist.yml").action(lazyAction(() => import("./denyRemove-4IUYBEMU.js"), "denyRemove"));
|
|
630
|
+
denyCommand.command("list").description("List all deny rules").action(lazyAction(() => import("./denyList-IZVZEOSD.js"), "denyList"));
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
// src/commands/registerCliHook.ts
|
|
634
|
+
function registerCliHook(program) {
|
|
635
|
+
const cmd = program.command("cli-hook").description("PreToolUse hook for auto-approving read-only CLI commands").action(async () => {
|
|
636
|
+
const { cliHook } = await import("./cliHook-HA2YOEQG.js");
|
|
637
|
+
cliHook();
|
|
638
|
+
});
|
|
639
|
+
internalCommand(cmd, "the PreToolUse hook on shell commands and reads");
|
|
640
|
+
configHelp(cmd, cliHookConfigHelp);
|
|
641
|
+
cmd.command("check <command>").description("Check whether a command would be auto-approved").option("--tool <tool>", "Tool name to check against", "Bash").action(async (command, options) => {
|
|
642
|
+
const { cliHookCheck } = await import("./cliHookCheck-W66AII3A.js");
|
|
643
|
+
cliHookCheck(command, options.tool);
|
|
644
|
+
});
|
|
645
|
+
cmd.command("add").description("Discover a CLI's commands and auto-permit read-only ones").argument(
|
|
646
|
+
"<cli...>",
|
|
647
|
+
"CLI binary and optional subcommand (e.g. gh, az, acli jira)"
|
|
648
|
+
).option("--no-cache", "Force fresh discovery, ignoring cached results").action(async (cli, options) => {
|
|
649
|
+
const { permitCliReads } = await import("./permitCliReads-RSRMZMGS.js");
|
|
650
|
+
permitCliReads(cli.join(" "), { noCache: !options.cache });
|
|
651
|
+
});
|
|
652
|
+
registerDeny(cmd);
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
// src/commands/registerCodeComment.ts
|
|
656
|
+
var calledBy = "agents whose edit the comment gate blocked";
|
|
657
|
+
function registerCodeComment(parent) {
|
|
658
|
+
const codeComment = parent.command("code-comment").description(
|
|
659
|
+
"Escape hatch for the rare code comment that genuinely belongs"
|
|
660
|
+
);
|
|
661
|
+
internalCommand(
|
|
662
|
+
codeComment.command("set").description(
|
|
663
|
+
"Validate a single-line comment and issue a pin to confirm its insertion"
|
|
664
|
+
).argument("<file>", "File the comment belongs in").argument("<line>", "1-based line number to insert the comment at").argument(
|
|
665
|
+
"<text>",
|
|
666
|
+
"Single-line comment text (max 50 chars, no block comments)"
|
|
667
|
+
).action(
|
|
668
|
+
lazyAction(
|
|
669
|
+
() => import("./codeCommentSet-2YWQJXI2.js"),
|
|
670
|
+
"codeCommentSet"
|
|
671
|
+
)
|
|
672
|
+
),
|
|
673
|
+
calledBy
|
|
674
|
+
);
|
|
675
|
+
internalCommand(
|
|
676
|
+
codeComment.command("confirm").description(
|
|
677
|
+
"Confirm a pin to insert its comment and clear the pin state"
|
|
678
|
+
).argument("<pin>", "Pin issued by 'code-comment set'").action(
|
|
679
|
+
lazyAction(
|
|
680
|
+
() => import("./codeCommentConfirm-LGYBP6JX.js"),
|
|
681
|
+
"codeCommentConfirm"
|
|
682
|
+
)
|
|
683
|
+
),
|
|
684
|
+
calledBy
|
|
685
|
+
);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
// src/commands/registerCodexHook.ts
|
|
689
|
+
function registerCodexHook(program) {
|
|
690
|
+
internalCommand(
|
|
691
|
+
program.command("codex-hook").description(
|
|
692
|
+
"Codex hook: auto-approves read-only CLI commands (PreToolUse/PermissionRequest) and reports session status (running/waiting) to the sessions daemon"
|
|
693
|
+
).action(lazyAction(() => import("./codexHook-YACIK7S3.js"), "codexHook")),
|
|
694
|
+
"Codex's hooks"
|
|
695
|
+
);
|
|
696
|
+
internalCommand(
|
|
697
|
+
program.command("codex-hook-trust").description(
|
|
698
|
+
"Record Codex trust for exactly Assist's installed codex-hook definitions, so Codex starts without a hook review; any other hook still needs Codex's normal review"
|
|
699
|
+
).action(
|
|
700
|
+
lazyAction(
|
|
701
|
+
() => import("./codexHookTrust-YYBCCR7P.js"),
|
|
702
|
+
"codexHookTrust"
|
|
703
|
+
)
|
|
704
|
+
),
|
|
705
|
+
"Assist's Codex launches"
|
|
706
|
+
);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
// src/commands/registerCommit.ts
|
|
710
|
+
function collectRef(value, previous) {
|
|
711
|
+
return [...previous, value];
|
|
712
|
+
}
|
|
713
|
+
function registerCommit(program) {
|
|
714
|
+
const commitCommand = program.command("commit").description("Create a git commit with validation").argument("<args...>", "status | <message> [files...]").option(
|
|
715
|
+
"--ref <ref>",
|
|
716
|
+
"Add a Ref: trailer carrying free text with a URL (repeatable)",
|
|
717
|
+
collectRef,
|
|
718
|
+
[]
|
|
719
|
+
).action(lazyAction(() => import("./commit-ET4QBICB.js"), "commit"));
|
|
720
|
+
internalCommand(commitCommand, "/commit");
|
|
721
|
+
configHelp(commitCommand, rootConfigHelp.commit);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
// src/commands/registerComplexity.ts
|
|
725
|
+
function registerComplexity(program) {
|
|
726
|
+
const complexityCommand = program.command("complexity").description("Analyze TypeScript code complexity metrics").argument("[pattern]").action(async (pattern) => {
|
|
727
|
+
const { analyze: complexityAnalyze } = await import("./analyze-2ECBFV3E.js");
|
|
728
|
+
if (!pattern) {
|
|
729
|
+
complexityCommand.help();
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
return complexityAnalyze(pattern);
|
|
733
|
+
});
|
|
734
|
+
complexityCommand.command("cyclomatic [pattern]").description("Calculate cyclomatic complexity per function").option("--threshold <number>", "Max complexity threshold", Number.parseInt).action(lazyAction(() => import("./cyclomatic-7ZFTN5VN.js"), "cyclomatic"));
|
|
735
|
+
complexityCommand.command("halstead [pattern]").description("Calculate Halstead metrics per function").option("--threshold <number>", "Max volume threshold", Number.parseInt).action(lazyAction(() => import("./halstead-CMFRMXT6.js"), "halstead"));
|
|
736
|
+
complexityCommand.command("maintainability [pattern]").description("Calculate maintainability index per file").option(
|
|
737
|
+
"--threshold <number>",
|
|
738
|
+
"Min maintainability threshold",
|
|
739
|
+
Number.parseInt
|
|
740
|
+
).option(
|
|
741
|
+
"--ignore <glob>",
|
|
742
|
+
"Glob of files to exclude (repeatable, additive to config)",
|
|
743
|
+
(value, previous) => previous.concat([value]),
|
|
744
|
+
[]
|
|
745
|
+
).action(
|
|
746
|
+
lazyAction(
|
|
747
|
+
() => import("./maintainability-P55FDYZW.js"),
|
|
748
|
+
"maintainability"
|
|
749
|
+
)
|
|
750
|
+
);
|
|
751
|
+
complexityCommand.command("sloc [pattern]").description("Count source lines of code per file").option("--threshold <number>", "Max lines threshold", Number.parseInt).action(lazyAction(() => import("./sloc-KPIIBOMR.js"), "sloc"));
|
|
752
|
+
configHelp(complexityCommand, complexityConfigHelp);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// src/commands/config/registerConfigWrites.ts
|
|
756
|
+
function registerConfigWrites(configCommand) {
|
|
757
|
+
configCommand.command("set <key> [value]").description(
|
|
758
|
+
"Set a config value (e.g. commit.push true); with no scope flag it writes repo (git), this repo's assist.yml"
|
|
759
|
+
).option(
|
|
760
|
+
"-r, --repo [name]",
|
|
761
|
+
"Write to repo (db): a repo's override in the shared db, seen by every node (defaults to the current repo)"
|
|
762
|
+
).option("--node", "Write to user (node): this node's ~/.assist.yml").option(
|
|
763
|
+
"-u, --user",
|
|
764
|
+
"Write to user (db): the shared db, applied to every repo on every node"
|
|
765
|
+
).action(lazyAction(() => import("./configSet-3UHHWKDP.js"), "configSet"));
|
|
766
|
+
configCommand.command("unset [key]").description(
|
|
767
|
+
"Remove a config value (e.g. commit.push); with no scope flag it removes it from repo (git), this repo's assist.yml"
|
|
768
|
+
).option(
|
|
769
|
+
"-r, --repo [name]",
|
|
770
|
+
"Remove from repo (db): a repo's override in the shared db (defaults to the current repo)"
|
|
771
|
+
).option("--node", "Remove from user (node): this node's ~/.assist.yml").option("-u, --user", "Remove from user (db) in the shared db").action(lazyAction(() => import("./configUnset-LYGRTYB3.js"), "configUnset"));
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
// src/commands/registerConfig.ts
|
|
775
|
+
function registerConfig(program) {
|
|
776
|
+
const configCommand = configHelp(
|
|
777
|
+
program.command("config").description("View and modify assist.yml configuration"),
|
|
778
|
+
configConfigHelp,
|
|
779
|
+
"Run 'assist config keys [filter]' to list every config key with its default,\nwhat it does, and the command that sets it."
|
|
780
|
+
);
|
|
781
|
+
registerConfigWrites(configCommand);
|
|
782
|
+
configCommand.command("import-repos").description(
|
|
783
|
+
"Move this machine's ~/.assist.yml repos: overrides into the shared db, showing a per-key diff and asking first"
|
|
784
|
+
).action(
|
|
785
|
+
lazyAction(
|
|
786
|
+
() => import("./configImportRepos-ZIUYOKHH.js"),
|
|
787
|
+
"configImportRepos"
|
|
788
|
+
)
|
|
789
|
+
);
|
|
790
|
+
configCommand.command("import-user [keys...]").description(
|
|
791
|
+
"Move keys (default advice.rules) from this node's ~/.assist.yml into user (db), the shared db applied to every repo on every node, showing a diff and asking first. Array keys append the entries user (db) lacks"
|
|
792
|
+
).action(
|
|
793
|
+
async (keys) => (await import("./configImportUser-NWUPLRQE.js")).configImportUser(keys)
|
|
794
|
+
);
|
|
795
|
+
configCommand.command("get <key>").description("Get a config value (secrets print as <hidden>)").option("--reveal", "Print the raw value of a secret, undecorated").action(lazyAction(() => import("./configGet-42P4ONFD.js"), "configGet"));
|
|
796
|
+
configCommand.command("list").description(
|
|
797
|
+
"List the config values that are set (secrets print as <hidden>); see 'config keys' for every key"
|
|
798
|
+
).action(lazyAction(() => import("./configList-CBYHO432.js"), "configList"));
|
|
799
|
+
configCommand.command("keys [filter]").description(
|
|
800
|
+
"List every config key with its default, note and setter (filter narrows by key substring)"
|
|
801
|
+
).action(lazyAction(() => import("./configKeys-HFGEHZBT.js"), "configKeys"));
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
// src/commands/extension/consoleCapture/types.ts
|
|
805
|
+
var CONSOLE_MAX_AGE_MS = 7 * 24 * 60 * 60 * 1e3;
|
|
806
|
+
var CONSOLE_DEFAULT_LIMIT = 200;
|
|
807
|
+
|
|
808
|
+
// src/commands/github/parseTopCount.ts
|
|
809
|
+
import { InvalidArgumentError } from "commander";
|
|
810
|
+
function parseTopCount(value) {
|
|
811
|
+
if (!/^\d+$/.test(value) || Number.parseInt(value, 10) < 1) {
|
|
812
|
+
throw new InvalidArgumentError("Expected a positive integer.");
|
|
813
|
+
}
|
|
814
|
+
return Number.parseInt(value, 10);
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
// src/commands/browser/parseSinceDuration.ts
|
|
818
|
+
import { InvalidArgumentError as InvalidArgumentError2 } from "commander";
|
|
819
|
+
function parseSinceDuration(value) {
|
|
820
|
+
try {
|
|
821
|
+
return parseDuration(value);
|
|
822
|
+
} catch (error) {
|
|
823
|
+
throw new InvalidArgumentError2(error.message);
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
// src/commands/browser/withTargetOptions.ts
|
|
828
|
+
function withTargetOptions(command) {
|
|
829
|
+
return command.option(
|
|
830
|
+
"--url <substring>",
|
|
831
|
+
"Target the most recently active tab whose URL contains this, instead of the focused window's active tab"
|
|
832
|
+
).option(
|
|
833
|
+
"--server <url>",
|
|
834
|
+
"assist web server the extension connects to",
|
|
835
|
+
"http://localhost:3100"
|
|
836
|
+
);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
// src/commands/browser/registerBrowserConsole.ts
|
|
840
|
+
function registerBrowserConsole(browser) {
|
|
841
|
+
withTargetOptions(
|
|
842
|
+
browser.command("console").description(
|
|
843
|
+
"Print the target tab's recorded console warnings and errors, uncaught errors and unhandled rejections, oldest first. Recording is opt-in on the extension's options page"
|
|
844
|
+
).option("--all", "Print entries from every tab, not just the target tab").option(
|
|
845
|
+
"--since <duration>",
|
|
846
|
+
"Only entries newer than this (e.g. 30s, 10m, 2h)",
|
|
847
|
+
parseSinceDuration
|
|
848
|
+
).option(
|
|
849
|
+
"--grep <text>",
|
|
850
|
+
"Only entries whose message, stack or URL contains this (case-insensitive)"
|
|
851
|
+
).option(
|
|
852
|
+
"--limit <n>",
|
|
853
|
+
"Print at most the newest n matching entries",
|
|
854
|
+
parseTopCount,
|
|
855
|
+
CONSOLE_DEFAULT_LIMIT
|
|
856
|
+
)
|
|
857
|
+
).action(lazyAction(() => import("./browserConsole-6ZRED7DG.js"), "browserConsole"));
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
// src/commands/registerBrowser.ts
|
|
861
|
+
function registerBrowser(program) {
|
|
862
|
+
const browser = program.command("browser").description(
|
|
863
|
+
"Probe the live browser tab through the assist extension, relayed by the assist web server"
|
|
864
|
+
);
|
|
865
|
+
withTargetOptions(
|
|
866
|
+
browser.command("status").description(
|
|
867
|
+
"Print the connected extension's version, the target tab's URL and whether the assist content script runs there"
|
|
868
|
+
)
|
|
869
|
+
).action(
|
|
870
|
+
lazyAction(() => import("./browserStatus-MEQAEC3K.js"), "browserStatus")
|
|
871
|
+
);
|
|
872
|
+
withTargetOptions(
|
|
873
|
+
browser.command("snapshot").description(
|
|
874
|
+
"Write the target tab's DOM to ~/.assist/browser/<host>-<timestamp>.html and print its path"
|
|
875
|
+
)
|
|
876
|
+
).action(
|
|
877
|
+
lazyAction(() => import("./browserSnapshot-Q3DUNUYP.js"), "browserSnapshot")
|
|
878
|
+
);
|
|
879
|
+
withTargetOptions(
|
|
880
|
+
browser.command("inspect [selector]").description(
|
|
881
|
+
"Print the ancestor chain (tag#id.class), text and size of each element matching a CSS selector or --text, capped"
|
|
882
|
+
).option(
|
|
883
|
+
"--text <text>",
|
|
884
|
+
"Match elements whose own text contains this, instead of a selector"
|
|
885
|
+
)
|
|
886
|
+
).action(
|
|
887
|
+
lazyAction(() => import("./browserInspect-2IOKKWOF.js"), "browserInspect")
|
|
888
|
+
);
|
|
889
|
+
withTargetOptions(
|
|
890
|
+
browser.command("run").description(
|
|
891
|
+
"Show a script in an approval panel on the target tab and, once the user clicks Run, print its return value or error. The script is the body of an async function: `return` the value to print"
|
|
892
|
+
).requiredOption("--file <script>", "JavaScript file to run")
|
|
893
|
+
).action(lazyAction(() => import("./browserRun-JJVVNL6H.js"), "browserRun"));
|
|
894
|
+
registerBrowserConsole(browser);
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
// src/commands/registerExtension.ts
|
|
898
|
+
function registerExtension(program) {
|
|
899
|
+
program.command("extension").description(
|
|
900
|
+
"Print the directory to load the assist browser extension from (load unpacked)"
|
|
901
|
+
).option(
|
|
902
|
+
"--sign",
|
|
903
|
+
"Sign the extension on AMO's unlisted channel and print the .xpi to install permanently in Firefox (needs WEB_EXT_API_KEY and WEB_EXT_API_SECRET)"
|
|
904
|
+
).option(
|
|
905
|
+
"--url",
|
|
906
|
+
"Print the download URL of the latest signed Firefox build, read from the update manifest on main"
|
|
907
|
+
).action(async (options) => {
|
|
908
|
+
const { extension } = await import("./extension-YYRD5EM6.js");
|
|
909
|
+
const { printExtensionUrl } = await import("./printExtensionUrl-IW2WTSNS.js");
|
|
910
|
+
const { signExtension } = await import("./signExtension-7YGZ6OFR.js");
|
|
911
|
+
if (options.url) return printExtensionUrl();
|
|
912
|
+
return options.sign ? signExtension() : extension();
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
// src/commands/registerDb.ts
|
|
917
|
+
function registerDb(program) {
|
|
918
|
+
const db = program.command("db").description("Inspect and apply the backlog database migrations");
|
|
919
|
+
db.command("migrate").description(
|
|
920
|
+
`Apply pending migrations in order (build ships up to migration ${latestMigrationId})`
|
|
921
|
+
).action(lazyAction(() => import("./migrate-XZ562LTJ.js"), "migrate"));
|
|
922
|
+
db.command("status").description(
|
|
923
|
+
"Report whether the database is in sync, behind, or ahead of this build"
|
|
924
|
+
).action(lazyAction(() => import("./status-63OT6MGQ.js"), "status"));
|
|
925
|
+
db.command("drop-retired").description(
|
|
926
|
+
"Drop retired tables left by removed features, after confirming each"
|
|
927
|
+
).action(async () => {
|
|
928
|
+
const { withPool } = await import("./withPool-APJFDKR2.js");
|
|
929
|
+
const { dropRetiredTables } = await import("./dropRetiredTables-JBLALSG5.js");
|
|
930
|
+
return withPool(dropRetiredTables);
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
// src/commands/registerDeploy.ts
|
|
935
|
+
function registerDeploy(program) {
|
|
936
|
+
const deployCommand = program.command("deploy").description("Netlify deployment utilities");
|
|
937
|
+
deployCommand.command("init").description("Initialize Netlify project and configure deployment").action(lazyAction(() => import("./init-2WH6WD64.js"), "init"));
|
|
938
|
+
deployCommand.command("redirect").description("Add trailing slash redirect script to index.html").action(lazyAction(() => import("./redirect-G7WS7LDE.js"), "redirect"));
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
// src/commands/devlog/registerDevlogEntryCommands.ts
|
|
942
|
+
function registerDevlogEntryCommands(devlogCommand) {
|
|
943
|
+
devlogCommand.command("next").description(
|
|
944
|
+
"Show commits for the next completed ISO week after the last dev entry"
|
|
945
|
+
).option("-v, --verbose", "Show file names for each commit").action(lazyAction(() => import("./next-FAAUSQLC.js"), "next"));
|
|
946
|
+
devlogCommand.command("skip <week>").description(
|
|
947
|
+
"Add an ISO week (YYYY-Www) to this repo's repo (db) devlog.skipWeeks"
|
|
948
|
+
).action(async (week) => (await import("./skip-ZZHUH3MU.js")).skip(week));
|
|
949
|
+
internalCommand(
|
|
950
|
+
devlogCommand.command("write").description(
|
|
951
|
+
"Write a dev entry from JSON on stdin (week, title, versions, aiGenerated, added/changed/fixed, lede)"
|
|
952
|
+
).action(lazyAction(() => import("./write-PH5YX6V5.js"), "write")),
|
|
953
|
+
"/devlog"
|
|
954
|
+
);
|
|
955
|
+
internalCommand(
|
|
956
|
+
devlogCommand.command("slack [week]").description(
|
|
957
|
+
"List un-posted dev entries oldest first, or preview one week as a Slack parent message plus a threaded Added/Changed/Fixed reply, printing the channel and approved paths"
|
|
958
|
+
).action(
|
|
959
|
+
async (week) => (await import("./slack-74LWSKRK.js")).slack(week)
|
|
960
|
+
),
|
|
961
|
+
"/devlog"
|
|
962
|
+
);
|
|
963
|
+
devlogCommand.command("posted <week> [permalink]").description(
|
|
964
|
+
"Record a dev entry's Slack permalink as slack: in its frontmatter, or slack: skipped with --skip"
|
|
965
|
+
).option("--skip", "Mark the entry as not to be posted").action(
|
|
966
|
+
async (week, permalink, options) => (await import("./posted-ZNKIE73Q.js")).posted(week, permalink, options)
|
|
967
|
+
);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
// src/commands/registerDevlog.ts
|
|
971
|
+
function registerDevlog(program) {
|
|
972
|
+
const devlogCommand = program.command("devlog").description("Development log utilities");
|
|
973
|
+
devlogCommand.command("list").description("Group git commits by ISO week").option(
|
|
974
|
+
"--weeks <number>",
|
|
975
|
+
"Number of weeks to show, including the current one (default: 6)",
|
|
976
|
+
Number.parseInt
|
|
977
|
+
).option(
|
|
978
|
+
"--since <date|week>",
|
|
979
|
+
"Only show commits since this date (YYYY-MM-DD) or week (YYYY-Www)"
|
|
980
|
+
).option("-r, --reverse", "Show earliest weeks first").option("-v, --verbose", "Show file names for each commit").action(lazyAction(() => import("./list-ZVSHR4AA.js"), "list"));
|
|
981
|
+
devlogCommand.command("version").description("Show the repo name, its latest dev entry week and versions").action(lazyAction(() => import("./version-4E3HWTDD.js"), "version"));
|
|
982
|
+
registerDevlogEntryCommands(devlogCommand);
|
|
983
|
+
devlogCommand.command("repos").description("Show repos missing weekly dev entries").option(
|
|
984
|
+
"--days <number>",
|
|
985
|
+
"Only show repos pushed within N days (default: 30)",
|
|
986
|
+
Number.parseInt
|
|
987
|
+
).option("--all", "Show all non-archived repos regardless of push date").action(lazyAction(() => import("./repos-JP75ZTBU.js"), "repos"));
|
|
988
|
+
configHelp(devlogCommand, devlogConfigHelp);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
// src/commands/registerDocs.ts
|
|
992
|
+
var calledBy2 = "agents whose docs edit the docs lock blocked";
|
|
993
|
+
function registerDocs(parent) {
|
|
994
|
+
const docs = parent.command("docs").description(
|
|
995
|
+
"Human-in-the-loop approval to unlock docs pages and screenshots for a backlog item phase"
|
|
996
|
+
);
|
|
997
|
+
internalCommand(
|
|
998
|
+
docs.command("unlock").description(
|
|
999
|
+
"Page a human with a pin to unlock docs changes for this session's backlog item phase"
|
|
1000
|
+
).action(lazyAction(() => import("./docsUnlock-SCPIWHT5.js"), "docsUnlock")),
|
|
1001
|
+
calledBy2
|
|
1002
|
+
);
|
|
1003
|
+
internalCommand(
|
|
1004
|
+
docs.command("confirm").description(
|
|
1005
|
+
"Confirm a pin from 'docs unlock' to approve docs changes for that backlog item phase"
|
|
1006
|
+
).argument("<pin>", "Pin issued by 'docs unlock'").action(lazyAction(() => import("./docsConfirm-2LAEAX3R.js"), "docsConfirm")),
|
|
1007
|
+
calledBy2
|
|
1008
|
+
);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
// src/commands/registerSchema.ts
|
|
1012
|
+
var calledBy3 = "agents whose database schema change the schema lock blocked";
|
|
1013
|
+
function registerSchema(parent) {
|
|
1014
|
+
const schema = parent.command("schema").description(
|
|
1015
|
+
"Human-in-the-loop approval to unlock database schema files for a backlog item phase or Claude session"
|
|
1016
|
+
);
|
|
1017
|
+
internalCommand(
|
|
1018
|
+
schema.command("unlock").description(
|
|
1019
|
+
"Page a human with a pin to unlock schema changes for this session's backlog item phase, or this Claude session when there is no item"
|
|
1020
|
+
).action(
|
|
1021
|
+
lazyAction(() => import("./schemaUnlock-6VDN2OVT.js"), "schemaUnlock")
|
|
1022
|
+
),
|
|
1023
|
+
calledBy3
|
|
1024
|
+
);
|
|
1025
|
+
internalCommand(
|
|
1026
|
+
schema.command("confirm").description(
|
|
1027
|
+
"Confirm a pin from 'schema unlock' to approve schema changes for that item phase or Claude session"
|
|
1028
|
+
).argument("<pin>", "Pin issued by 'schema unlock'").action(
|
|
1029
|
+
lazyAction(() => import("./schemaConfirm-BWQ37LUT.js"), "schemaConfirm")
|
|
1030
|
+
),
|
|
1031
|
+
calledBy3
|
|
1032
|
+
);
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
// src/commands/registerDotnet.ts
|
|
1036
|
+
function registerDotnet(program) {
|
|
1037
|
+
const cmd = program.command("dotnet").description(".NET project utilities");
|
|
1038
|
+
cmd.command("inspect").description(
|
|
1039
|
+
"Run JetBrains inspections on changed .cs files to find dead code"
|
|
1040
|
+
).argument("[sln]", "Path to a .sln file (auto-detected if omitted)").option(
|
|
1041
|
+
"--scope <mode>",
|
|
1042
|
+
`File scope: ${scopeHelpText} (default: working copy diff)`
|
|
1043
|
+
).option("--all", "Show all issues, not just dead code").option("--only <ids...>", "Show only the specified issue type IDs").option("--suppress <ids...>", "Suppress specific issue type IDs").option("--swea", "Enable solution-wide error analysis").option("--roslyn", "Use Roslyn analyzers via msbuild instead of JetBrains").action(lazyAction(() => import("./inspect-OI5K5KSG.js"), "inspect"));
|
|
1044
|
+
cmd.command("check-locks").description("Check if build output files are locked by a debugger").action(
|
|
1045
|
+
lazyAction(
|
|
1046
|
+
() => import("./checkBuildLocks-UBGUSNX5.js"),
|
|
1047
|
+
"checkBuildLocksCommand"
|
|
1048
|
+
)
|
|
1049
|
+
);
|
|
1050
|
+
cmd.command("deps").description("Show .csproj project dependency tree and solution membership").argument("<csproj>", "Path to a .csproj file").option("--json", "Output as JSON").action(lazyAction(() => import("./deps-RSUOIZPE.js"), "deps"));
|
|
1051
|
+
cmd.command("in-sln").description("Check whether a .csproj is referenced by any .sln file").argument("<csproj>", "Path to a .csproj file").action(lazyAction(() => import("./inSln-G4VRY7VM.js"), "inSln"));
|
|
1052
|
+
configHelp(cmd, dotnetConfigHelp);
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
// src/commands/registerEditHook.ts
|
|
1056
|
+
function registerEditHook(program) {
|
|
1057
|
+
internalCommand(
|
|
1058
|
+
program.command("edit-hook").description(
|
|
1059
|
+
"PreToolUse hook that blocks edits to the maintainability override marker and edits that introduce code comments"
|
|
1060
|
+
).action(async () => {
|
|
1061
|
+
const { editHook } = await import("./editHook-OWHBNL5T.js");
|
|
1062
|
+
editHook();
|
|
1063
|
+
}),
|
|
1064
|
+
"the PreToolUse hook on file edits"
|
|
1065
|
+
);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
// src/commands/github/parseSinceDate.ts
|
|
1069
|
+
import { InvalidArgumentError as InvalidArgumentError3 } from "commander";
|
|
1070
|
+
function parseSinceDate(value) {
|
|
1071
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) {
|
|
1072
|
+
throw new InvalidArgumentError3("Expected a date in YYYY-MM-DD format.");
|
|
1073
|
+
}
|
|
1074
|
+
const date = /* @__PURE__ */ new Date(`${value}T00:00:00Z`);
|
|
1075
|
+
if (Number.isNaN(date.getTime()) || date.toISOString().slice(0, 10) !== value) {
|
|
1076
|
+
throw new InvalidArgumentError3(`Not a valid calendar date: ${value}.`);
|
|
1077
|
+
}
|
|
1078
|
+
return value;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
// src/commands/github/issue/fixStructure/registerFixStructure.ts
|
|
1082
|
+
var chain = defaultTypeChain.join(" > ");
|
|
1083
|
+
var levels = defaultTypeChain.map((name) => name.toLowerCase()).join("|");
|
|
1084
|
+
function collect3(value, previous) {
|
|
1085
|
+
return previous.concat([value]);
|
|
1086
|
+
}
|
|
1087
|
+
function registerFixStructure(issueCommand) {
|
|
1088
|
+
issueCommand.command("fix-structure <target>").description("Normalise the issue types across one issue subtree").option(
|
|
1089
|
+
"-R, --repo <owner/repo>",
|
|
1090
|
+
"Repository a bare issue number belongs to"
|
|
1091
|
+
).option(
|
|
1092
|
+
"--level <level>",
|
|
1093
|
+
"The target's own position in the type chain, when it cannot be inferred from its type"
|
|
1094
|
+
).option(
|
|
1095
|
+
"--type-chain <names>",
|
|
1096
|
+
`Comma-separated issue type chain, parent level first (default: ${defaultTypeChain.join(",")})`
|
|
1097
|
+
).option(
|
|
1098
|
+
"--strip-label <label>",
|
|
1099
|
+
"Legacy marker label to remove from every issue in the subtree that carries it (repeatable)",
|
|
1100
|
+
collect3,
|
|
1101
|
+
[]
|
|
1102
|
+
).option("--apply", "Write the planned changes instead of reporting them").addHelpText(
|
|
1103
|
+
"after",
|
|
1104
|
+
`
|
|
1105
|
+
Walks the subtree reachable from <target> via sub-issues and reports the type each issue should carry: every level below the target is typed to the next level down the chain. Nothing outside the subtree is ever read or written.
|
|
1106
|
+
The chain defaults to ${chain} and --type-chain replaces it, so a backlog on other type names is normalised the same way; every level named must already exist as an issue type on the organisation, or the run fails listing the ones that do.
|
|
1107
|
+
The target's own level is inferred from its issue type, so aiming at a story types its children as subtasks. When the target's type is not in the chain the level cannot be inferred, and --level ${levels} (or whichever levels --type-chain names) asserts it instead \u2014 which also plans the target's own type.
|
|
1108
|
+
No label is touched unless --strip-label names it; each one is repeatable, matched case-insensitively, and removed by the label id found on that issue, since label ids differ per repository.
|
|
1109
|
+
The target is owner/repo#number, a github.com issue URL, or a bare number with --repo.
|
|
1110
|
+
Without --apply nothing is written. With --apply each write is announced before it is issued, and the subtree is re-walked afterwards so any residual drift fails the run.
|
|
1111
|
+
Anything nested below the leaf level fails the run before a single write, naming the offender and its parent.`
|
|
1112
|
+
).action(lazyAction(() => import("./fixStructure-4UTN5ED6.js"), "fixStructure"));
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
// src/commands/github/issue/registerCommentIssue.ts
|
|
1116
|
+
function registerCommentIssue(issueCommand) {
|
|
1117
|
+
const commentCommand = issueCommand.command("comment <number>").description("Comment on a GitHub issue (body of - reads it from stdin)").option("--body <body>", "Comment body (- reads it from stdin)").option(
|
|
1118
|
+
"-R, --repo <owner/repo>",
|
|
1119
|
+
"Target repository (defaults to the current repo)"
|
|
1120
|
+
).addHelpText(
|
|
1121
|
+
"after",
|
|
1122
|
+
"\nThe comment is outward-facing: write it for the repo's readers, not the team. It is rejected if it references Claude or an assist backlog item.\nIn an assist web session the body is previewed for approve/reject first (with inline comments); nothing is posted until it is approved."
|
|
1123
|
+
).action(
|
|
1124
|
+
async (number, options) => {
|
|
1125
|
+
const { readBodyArgument } = await import("./readBodyArgument-NZG3GJMF.js");
|
|
1126
|
+
const { commentIssue } = await import("./commentIssue-PDIQVTZM.js");
|
|
1127
|
+
await commentIssue(number, {
|
|
1128
|
+
...options,
|
|
1129
|
+
body: options.body ? await readBodyArgument(options.body) : void 0
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
);
|
|
1133
|
+
internalCommand(commentCommand, "/github update");
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
// src/commands/github/issue/collectLabels.ts
|
|
1137
|
+
function collectLabels(value, previous) {
|
|
1138
|
+
const added = value.split(",").map((label) => label.trim()).filter((label) => label.length > 0);
|
|
1139
|
+
return [...previous, ...added];
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
// src/commands/github/issue/registerCreateIssue.ts
|
|
1143
|
+
function registerCreateIssue(issueCommand) {
|
|
1144
|
+
const createCommand = issueCommand.command("create").description("Create a GitHub issue").option("--title <title>", "Issue title").option("--body <body>", "Issue body").option(
|
|
1145
|
+
"-R, --repo <owner/repo>",
|
|
1146
|
+
"Target repository (defaults to the current repo)"
|
|
1147
|
+
).option(
|
|
1148
|
+
"--type <name>",
|
|
1149
|
+
"Native issue type to set on the new issue (e.g. Epic)"
|
|
1150
|
+
).option(
|
|
1151
|
+
"--parent <issue>",
|
|
1152
|
+
"Parent issue to file the new issue under, as owner/repo#number, a github.com issue URL, or a bare number"
|
|
1153
|
+
).option(
|
|
1154
|
+
"--project <number>",
|
|
1155
|
+
"Number of the repo owner's GitHub Project to add the new issue to"
|
|
1156
|
+
).option(
|
|
1157
|
+
"--status <name>",
|
|
1158
|
+
"Status option to set on the project item (requires --project)"
|
|
1159
|
+
).option(
|
|
1160
|
+
"--label <name>",
|
|
1161
|
+
"Label to apply (repeat the flag, or pass a comma-separated list)",
|
|
1162
|
+
collectLabels,
|
|
1163
|
+
[]
|
|
1164
|
+
).option(
|
|
1165
|
+
"--milestone <name>",
|
|
1166
|
+
"Open milestone of the target repo to put the new issue on, by title"
|
|
1167
|
+
).addHelpText(
|
|
1168
|
+
"after",
|
|
1169
|
+
`
|
|
1170
|
+
There is no What/Why/How template: an issue reports a problem, and the target repo's own issue template is unknowable from here. Write the body as the repo's maintainers would expect.
|
|
1171
|
+
In an assist web session the title and body are previewed for approve/reject first (with inline comments); nothing is created until it is approved.
|
|
1172
|
+
The reviewer may also drop or paste screenshots or video into the pane; on approval gh attaches them (gh ${minGhAttachVersion}+) under a ## Screenshots section of the issue body automatically, and on rejection they stay attached and reappear in the preview you re-propose \u2014 so never author that section yourself.
|
|
1173
|
+
--type, --parent, --project, --status, --label and --milestone are all resolved before the preview, so an unknown name, an unreadable parent, a missing project scope or --status without --project creates nothing.
|
|
1174
|
+
A bare --parent number is read against --repo, or the current repo; a parent in another repository is allowed.
|
|
1175
|
+
The project scope is needed for --project: gh auth refresh -h github.com -s project`
|
|
1176
|
+
).action(lazyAction(() => import("./createIssue-AIQ3U4LC.js"), "createIssue"));
|
|
1177
|
+
internalCommand(createCommand, "/github create");
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
// src/commands/github/issue/registerEditIssue.ts
|
|
1181
|
+
function registerEditIssue(issueCommand) {
|
|
1182
|
+
const editCommand = issueCommand.command("edit <number>").description("Edit an existing GitHub issue's body in the preview pane").option(
|
|
1183
|
+
"-R, --repo <owner/repo>",
|
|
1184
|
+
"Target repository (defaults to the current repo)"
|
|
1185
|
+
).option(
|
|
1186
|
+
"--body <body>",
|
|
1187
|
+
"Proposed replacement body to preview instead of the current one (- reads it from stdin)"
|
|
1188
|
+
).option(
|
|
1189
|
+
"--fresh",
|
|
1190
|
+
"Discard any working file for the issue and re-fetch its body from GitHub"
|
|
1191
|
+
).option(
|
|
1192
|
+
"--fetch",
|
|
1193
|
+
"Write the issue's current body to its working file and print the path, without previewing"
|
|
1194
|
+
).option(
|
|
1195
|
+
"--parent <issue>",
|
|
1196
|
+
"Make the issue a sub-issue of this one, as owner/repo#number, a github.com issue URL, or a bare number"
|
|
1197
|
+
).addHelpText(
|
|
1198
|
+
"after",
|
|
1199
|
+
"\nFetches the issue's current body and opens it in the assist web preview pane, where it can be reworked before it is pushed back.\nWhen you already know the body you want, pass it with --body (--body - reads stdin): the first preview then shows that proposal instead of the current body, replacing any working file.\nTo make a targeted change to the current body (strike items out, tick a box), run with --fetch first: it writes the current body to the working file and prints its path without opening a preview. Edit that file in place, then re-run without --fetch or --body so the first preview shows your revision. Never run without --fetch just to get the body.\nApproving pushes the pane's markdown to the issue; nothing is pushed if the issue moved on GitHub after it was fetched, or outside a web session.\nRejecting writes the pane's markdown to a working file and names it: revise that file in place and re-run to preview the revision, which keeps any collapses already applied. A re-run resumes from the working file while the issue has not moved on GitHub; --fresh discards it and re-fetches.\nOnly the body is touched \u2014 the title, labels, assignees and state are left alone.\n--parent sets the issue's parent instead of editing the body: nothing is previewed and no web session is needed. A bare number is read against --repo, or the current repo; a parent in another repository is allowed."
|
|
1200
|
+
).action(lazyAction(() => import("./editIssue-C2G7D3VJ.js"), "editIssue"));
|
|
1201
|
+
internalCommand(editCommand, "/github");
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
// src/commands/github/issue/registerEditIssueComment.ts
|
|
1205
|
+
function registerEditIssueComment(issueCommand) {
|
|
1206
|
+
const editCommentCommand = issueCommand.command("edit-comment <comment-id>").description(
|
|
1207
|
+
"Replace the body of a posted GitHub issue comment (body of - reads it from stdin)"
|
|
1208
|
+
).option("--body <body>", "Replacement comment body (- reads it from stdin)").option(
|
|
1209
|
+
"-R, --repo <owner/repo>",
|
|
1210
|
+
"Target repository (defaults to the current repo)"
|
|
1211
|
+
).addHelpText(
|
|
1212
|
+
"after",
|
|
1213
|
+
"\nThe comment id is the numeric id from the comment's API url or the #issuecomment-<id> anchor on github.com, not the issue number.\nThe replacement is outward-facing: write it for the repo's readers, not the team. It is rejected if it references Claude or an assist backlog item.\nIn an assist web session the replacement is previewed for approve/reject first (with inline comments); the published comment is left alone until it is approved. The replacement is the whole body \u2014 what is there now is overwritten, so fetch it first if it should be built on."
|
|
1214
|
+
).action(
|
|
1215
|
+
async (commentId, options) => {
|
|
1216
|
+
const { readBodyArgument } = await import("./readBodyArgument-NZG3GJMF.js");
|
|
1217
|
+
const { editIssueComment } = await import("./editIssueComment-5SIYQKI6.js");
|
|
1218
|
+
await editIssueComment(commentId, {
|
|
1219
|
+
...options,
|
|
1220
|
+
body: options.body ? await readBodyArgument(options.body) : void 0
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1223
|
+
);
|
|
1224
|
+
internalCommand(editCommentCommand, "agents revising an issue comment");
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
// src/commands/github/issue/registerStartIssue.ts
|
|
1228
|
+
function registerStartIssue(issueCommand) {
|
|
1229
|
+
const startedCommand = issueCommand.command("started <number>").description(
|
|
1230
|
+
"Assign a GitHub issue to yourself and move its project boards to In Progress"
|
|
1231
|
+
).option(
|
|
1232
|
+
"-R, --repo <owner/repo>",
|
|
1233
|
+
"Target repository (defaults to the current repo)"
|
|
1234
|
+
).addHelpText(
|
|
1235
|
+
"after",
|
|
1236
|
+
"\nThe boards are discovered from the issue itself: every ProjectV2 item the issue sits on whose Status field offers an In Progress option (matched case-insensitively) is moved.\nThe assignment is applied first and is never blocked by the board work \u2014 an issue on no board, a Status field with no In Progress option, and a gh token without the project scope are each reported and exit 0.\nThe project scope is needed to read or move a board: gh auth refresh -h github.com -s project"
|
|
1237
|
+
).action(lazyAction(() => import("./startIssue-JSVKGZZR.js"), "startIssue"));
|
|
1238
|
+
internalCommand(startedCommand, "/github started");
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
// src/commands/github/issue/registerUnassignIssue.ts
|
|
1242
|
+
function registerUnassignIssue(issueCommand) {
|
|
1243
|
+
const unassignCommand = issueCommand.command("unassign <number>").description(
|
|
1244
|
+
"Remove yourself, or the named logins, from a GitHub issue's assignees"
|
|
1245
|
+
).option(
|
|
1246
|
+
"-R, --repo <owner/repo>",
|
|
1247
|
+
"Target repository (defaults to the current repo)"
|
|
1248
|
+
).option(
|
|
1249
|
+
"--assignee <login>",
|
|
1250
|
+
"Login to remove instead of @me (repeatable)",
|
|
1251
|
+
(value, previous) => [...previous, value],
|
|
1252
|
+
[]
|
|
1253
|
+
).action(lazyAction(() => import("./unassignIssue-OXNUC2QQ.js"), "unassignIssue"));
|
|
1254
|
+
internalCommand(unassignCommand, "agents removing an assignee");
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
// src/commands/registerGithubIssue.ts
|
|
1258
|
+
function registerGithubIssue(githubCommand) {
|
|
1259
|
+
const issueCommand = githubCommand.command("issue").description("GitHub issue utilities");
|
|
1260
|
+
registerCreateIssue(issueCommand);
|
|
1261
|
+
registerEditIssue(issueCommand);
|
|
1262
|
+
registerCommentIssue(issueCommand);
|
|
1263
|
+
registerEditIssueComment(issueCommand);
|
|
1264
|
+
registerStartIssue(issueCommand);
|
|
1265
|
+
registerUnassignIssue(issueCommand);
|
|
1266
|
+
registerFixStructure(issueCommand);
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
// src/commands/registerGithub.ts
|
|
1270
|
+
function registerGithub(program) {
|
|
1271
|
+
const githubCommand = program.command("github").description("GitHub organisation utilities");
|
|
1272
|
+
githubCommand.command("commits <org>").description("Report commit activity across an organisation").option(
|
|
1273
|
+
"--since <date>",
|
|
1274
|
+
"start of the window as YYYY-MM-DD (default: 30 days ago)",
|
|
1275
|
+
parseSinceDate
|
|
1276
|
+
).option(
|
|
1277
|
+
"--top <n>",
|
|
1278
|
+
"only report the top <n> repos by commit count",
|
|
1279
|
+
parseTopCount
|
|
1280
|
+
).option("--json", "Output as JSON").action(lazyAction(() => import("./commits-QFWMYJC5.js"), "commits"));
|
|
1281
|
+
registerGithubIssue(githubCommand);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
// src/commands/registerInbox.ts
|
|
1285
|
+
import { Option } from "commander";
|
|
1286
|
+
function registerInbox(program) {
|
|
1287
|
+
const inboxCommand = program.command("inbox").description("Triage Gmail and Slack for human messages needing a reply");
|
|
1288
|
+
inboxCommand.command("scan").description(
|
|
1289
|
+
"Scan unread Gmail inbox threads and Slack DMs and @mentions since the last scan with a read-only headless harness, storing flagged messages"
|
|
1290
|
+
).addOption(
|
|
1291
|
+
new Option(
|
|
1292
|
+
"--harness <kind>",
|
|
1293
|
+
"Harness to scan with; defaults to Claude. Exits with the reasons, before spawning, when the inbox scan is unavailable on it (it needs read-only Gmail and Slack connectors and a tool allow-list)"
|
|
1294
|
+
).choices(Object.keys(harnesses))
|
|
1295
|
+
).action(lazyAction(() => import("./scan-ZYPLRIEG.js"), "scan"));
|
|
1296
|
+
inboxCommand.command("list").description("List flagged inbox messages, newest first").action(lazyAction(() => import("./list-BM6RD4CP.js"), "list"));
|
|
1297
|
+
configHelp(inboxCommand, inboxConfigHelp);
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
// src/commands/registerJira.ts
|
|
1301
|
+
function registerJira(program) {
|
|
1302
|
+
const jiraCommand = program.command("jira").description("Jira utilities");
|
|
1303
|
+
jiraCommand.command("auth").description("Authenticate with Jira via API token").action(lazyAction(() => import("./jiraAuth-4Z5EVL7A.js"), "jiraAuth"));
|
|
1304
|
+
jiraCommand.command("ac <issue-key>").description("Print acceptance criteria for a Jira issue").action(
|
|
1305
|
+
async (issueKey) => (await import("./acceptanceCriteria-CJ4GRITK.js")).acceptanceCriteria(issueKey)
|
|
1306
|
+
);
|
|
1307
|
+
jiraCommand.command("view <issue-key>").description("Print the title and description of a Jira issue").action(
|
|
1308
|
+
async (issueKey) => (await import("./viewIssue-CYHIPCFO.js")).viewIssue(issueKey)
|
|
1309
|
+
);
|
|
1310
|
+
configHelp(jiraCommand, jiraConfigHelp);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
// src/commands/backlog/registerRefineLaunch.ts
|
|
1314
|
+
var HARNESS_FLAG = "Coding harness to launch (claude|codex|pi); defaults to the configured harness.engine. Exits with the reasons, without launching, when Refine is unavailable on it";
|
|
1315
|
+
function registerRefineLaunch(program, resumeFlag) {
|
|
1316
|
+
const command = program.command("refine").argument("[id]", "Backlog item ID").description(
|
|
1317
|
+
"Launch a coding harness in /refine mode to refine a backlog item"
|
|
1318
|
+
).option("--once", "Exit when the initial task completes").option("--resume-session <id>", resumeFlag).option("--harness <kind>", HARNESS_FLAG).action(lazyAction(() => import("./runRefine-KCQDMHH7.js"), "runRefine"));
|
|
1319
|
+
configHelp(command, harnessConfigHelp);
|
|
15
1320
|
}
|
|
1321
|
+
|
|
1322
|
+
// src/commands/registerFixConflict.ts
|
|
1323
|
+
function registerFixConflict(program, resumeFlag) {
|
|
1324
|
+
const command = program.command("fix-conflict").argument("[number]", "PR number to check out first").option("--rebase", "Rebase onto the remote default instead of merging").option("--resume-session <id>", resumeFlag).option(
|
|
1325
|
+
"--harness <kind>",
|
|
1326
|
+
"Coding harness to launch (claude|codex|pi); defaults to the configured harness.engine. Exits with the reasons, before checking the PR out, when Fix conflicts is unavailable on it"
|
|
1327
|
+
).description(
|
|
1328
|
+
"Launch a coding harness in /fix-conflict mode (single session)"
|
|
1329
|
+
).action(
|
|
1330
|
+
async (number, options) => {
|
|
1331
|
+
const { resolveHarness } = await import("./resolveHarness-A3F7CDF2.js");
|
|
1332
|
+
const { fixConflict } = await import("./fixConflict-IPWVXZWO.js");
|
|
1333
|
+
return fixConflict(number, {
|
|
1334
|
+
rebase: options.rebase,
|
|
1335
|
+
resumeSessionId: options.resumeSession,
|
|
1336
|
+
harness: resolveHarness(options.harness)
|
|
1337
|
+
});
|
|
1338
|
+
}
|
|
1339
|
+
);
|
|
1340
|
+
configHelp(command, harnessConfigHelp);
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
// src/commands/registerReviewPrComments.ts
|
|
1344
|
+
function registerReviewPrComments(program, resumeFlag) {
|
|
1345
|
+
const command = program.command("review-pr-comments").argument("[number]", "PR number to check out first").description(
|
|
1346
|
+
"Launch a coding harness in /review-pr-comments mode (single session)"
|
|
1347
|
+
).option(
|
|
1348
|
+
"--announce",
|
|
1349
|
+
"After every comment thread is processed, announce the PR in Slack via /prs-slack <number> --no-confirm (requires a PR number)"
|
|
1350
|
+
).option(
|
|
1351
|
+
"--auto",
|
|
1352
|
+
"Accept the harness's own recommendation for each thread without asking, falling back to asking only for threads it cannot confidently decide"
|
|
1353
|
+
).option("--resume-session <id>", resumeFlag).option(
|
|
1354
|
+
"--harness <kind>",
|
|
1355
|
+
"Coding harness to launch (claude|codex|pi); defaults to the configured harness.engine. Exits with the reasons, before checking the PR out, when Address comments is unavailable on it"
|
|
1356
|
+
).action(
|
|
1357
|
+
async (number, opts) => {
|
|
1358
|
+
const { resolveHarness } = await import("./resolveHarness-A3F7CDF2.js");
|
|
1359
|
+
const { reviewPrComments } = await import("./reviewPrComments-G7BLTDCB.js");
|
|
1360
|
+
return reviewPrComments(number, {
|
|
1361
|
+
announce: opts.announce,
|
|
1362
|
+
auto: opts.auto,
|
|
1363
|
+
resumeSessionId: opts.resumeSession,
|
|
1364
|
+
harness: resolveHarness(opts.harness)
|
|
1365
|
+
});
|
|
1366
|
+
}
|
|
1367
|
+
);
|
|
1368
|
+
configHelp(command, harnessConfigHelp);
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
// src/commands/registerDescriptionLaunch.ts
|
|
1372
|
+
var harnessFlag = (feature) => `Coding harness to launch (claude|codex|pi); defaults to the configured harness.defaults.<command>.harness, then harness.engine. Exits with the reasons, without launching, when ${feature.label} is unavailable on it`;
|
|
1373
|
+
function registerDescriptionLaunch(program, name, slashCommand, description, feature, resumeFlag, alias) {
|
|
1374
|
+
const command = program.command(name).argument(
|
|
1375
|
+
"[description]",
|
|
1376
|
+
`Text to forward to the /${slashCommand} slash command`
|
|
1377
|
+
).description(description).option("--once", "Exit when the initial task completes").option("--resume-session <id>", resumeFlag).option("--harness <kind>", harnessFlag(feature)).option(
|
|
1378
|
+
"--model <model>",
|
|
1379
|
+
`Model to launch the harness with; defaults to harness.defaults.${name}.model while the ${name} type's harness is used`
|
|
1380
|
+
).option("--no-model", "Launch with the harness's own default model").action(async (text, opts) => {
|
|
1381
|
+
const { launchMode } = await import("./launchMode-RBSRGUTI.js");
|
|
1382
|
+
const { resolveHarness } = await import("./resolveHarness-A3F7CDF2.js");
|
|
1383
|
+
const { resolveModel } = await import("./resolveModel-GHXLN2T4.js");
|
|
1384
|
+
const harness = resolveHarness(opts.harness, name);
|
|
1385
|
+
return launchMode(slashCommand, {
|
|
1386
|
+
once: opts.once,
|
|
1387
|
+
description: text,
|
|
1388
|
+
resumeSessionId: opts.resumeSession,
|
|
1389
|
+
harness,
|
|
1390
|
+
model: resolveModel(opts.model, name, harness),
|
|
1391
|
+
feature
|
|
1392
|
+
});
|
|
1393
|
+
});
|
|
1394
|
+
configHelp(command, [...harnessConfigHelp, ...harnessDefaultsConfigHelp]);
|
|
1395
|
+
if (alias) command.alias(alias);
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
// src/commands/registerLaunch.ts
|
|
1399
|
+
var RESUME_SESSION_FLAG = "Resume an interrupted harness session by its conversation id (used by the sessions daemon on restart)";
|
|
1400
|
+
function registerNext(program) {
|
|
1401
|
+
program.command("next").argument("[id]", "Backlog item ID to run first").description("Alias for backlog next").option("--once", "Exit after the first completed item run").action(
|
|
1402
|
+
async (id, opts) => (await import("./next-H5RR3AHL.js")).next(
|
|
1403
|
+
{ allowEdits: true, once: opts.once },
|
|
1404
|
+
id
|
|
1405
|
+
)
|
|
1406
|
+
);
|
|
1407
|
+
}
|
|
1408
|
+
function registerLaunch(program) {
|
|
1409
|
+
registerNext(program);
|
|
1410
|
+
registerDescriptionLaunch(
|
|
1411
|
+
program,
|
|
1412
|
+
"draft",
|
|
1413
|
+
"draft",
|
|
1414
|
+
"Launch a coding harness in /draft mode, chain into next on /next signal",
|
|
1415
|
+
draftFeature,
|
|
1416
|
+
RESUME_SESSION_FLAG,
|
|
1417
|
+
"feat"
|
|
1418
|
+
);
|
|
1419
|
+
registerDescriptionLaunch(
|
|
1420
|
+
program,
|
|
1421
|
+
"bug",
|
|
1422
|
+
"bug",
|
|
1423
|
+
"Launch a coding harness in /bug mode, chain into next on /next signal",
|
|
1424
|
+
bugFeature,
|
|
1425
|
+
RESUME_SESSION_FLAG
|
|
1426
|
+
);
|
|
1427
|
+
registerReviewPrComments(program, RESUME_SESSION_FLAG);
|
|
1428
|
+
registerFixConflict(program, RESUME_SESSION_FLAG);
|
|
1429
|
+
registerRefineLaunch(program, RESUME_SESSION_FLAG);
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
// src/commands/registerList.ts
|
|
1433
|
+
function registerList(program) {
|
|
1434
|
+
program.command("list").alias("ls").description("Alias for backlog list").option(
|
|
1435
|
+
"--status <type>",
|
|
1436
|
+
"Filter by status (todo, in-progress, done, wontdo)"
|
|
1437
|
+
).option("-a, --all", "Include done/wontdo items").option("--all-repos", "List items across all repositories").option("-v, --verbose", "Show all item details").option("--dir <path>", "Override directory for backlog file discovery").action(async (options) => {
|
|
1438
|
+
const { list: backlogList } = await import("./list-UXIZ6WY2.js");
|
|
1439
|
+
const { setBacklogDir } = await import("./getBacklogDir-AVGEKM42.js");
|
|
1440
|
+
setBacklogDir(options.dir);
|
|
1441
|
+
return backlogList(options);
|
|
1442
|
+
});
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
// src/commands/registerLitellm.ts
|
|
1446
|
+
function registerLitellm(program) {
|
|
1447
|
+
const cmd = program.command("litellm").description("LiteLLM proxy utilities");
|
|
1448
|
+
const listModelsCommand = cmd.command("list-models").description("List the models the configured LiteLLM proxy serves").option("--json", "Output the raw /v1/models response body").action(
|
|
1449
|
+
async (options) => (await import("./listModels-2US52LRW.js")).listModels(options)
|
|
1450
|
+
);
|
|
1451
|
+
configHelp(listModelsCommand, litellmConfigHelp);
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
// src/commands/registerMermaid.ts
|
|
1455
|
+
function registerMermaid(program) {
|
|
1456
|
+
const cmd = program.command("mermaid").description("Render mermaid diagrams from markdown files");
|
|
1457
|
+
cmd.command("export [file]").description(
|
|
1458
|
+
"Render fenced mermaid blocks as SVG via Kroki. With no file, scans *.md in cwd."
|
|
1459
|
+
).option("--out <dir>", "Output directory (default: cwd)").option(
|
|
1460
|
+
"--index <n>",
|
|
1461
|
+
"Render only the nth mermaid block (1-based)",
|
|
1462
|
+
(value) => Number.parseInt(value, 10)
|
|
1463
|
+
).action(
|
|
1464
|
+
async (file, options) => (await import("./mermaidExport-DKB3X763.js")).mermaidExport(file, options)
|
|
1465
|
+
);
|
|
1466
|
+
configHelp(cmd, mermaidConfigHelp);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
// src/commands/miro/registerMiro.ts
|
|
1470
|
+
function registerMiro(program) {
|
|
1471
|
+
const miroCommand = program.command("miro").description("Miro board utilities");
|
|
1472
|
+
const extract = miroCommand.command("extract").description("Print the text of every box inside a rectangle on a board").argument(
|
|
1473
|
+
"[name]",
|
|
1474
|
+
"Named extract from config supplying every field; any flag overrides its field"
|
|
1475
|
+
).option("--items <file>", "File of raw board_list_items response pages").option(
|
|
1476
|
+
"--top-left <id>",
|
|
1477
|
+
"Widget id or ?moveToWidget=<id> link of the top-left box (omit both anchors to pick them in the assist web UI)"
|
|
1478
|
+
).option(
|
|
1479
|
+
"--bottom-right <id>",
|
|
1480
|
+
"Widget id or ?moveToWidget=<id> link of the bottom-right box"
|
|
1481
|
+
).option("--ignore <file>", "YAML list of box texts to drop from the output").option("--out <file>", "Write the YAML to this file instead of stdout").option(
|
|
1482
|
+
"--board <id>",
|
|
1483
|
+
"Board id for the --out header (else read from the items)"
|
|
1484
|
+
).option(
|
|
1485
|
+
"--frame <id>",
|
|
1486
|
+
"Frame id for the --out header (else read from the items)"
|
|
1487
|
+
).option(
|
|
1488
|
+
"--save <name>",
|
|
1489
|
+
"Save the selection as this named extract without asking"
|
|
1490
|
+
).option(
|
|
1491
|
+
"--node",
|
|
1492
|
+
"Save the extract to user (node), this node's ~/.assist.yml"
|
|
1493
|
+
).option(
|
|
1494
|
+
"-r, --repo [name]",
|
|
1495
|
+
"Save the extract to repo (db), a repo's shared db override (defaults to the current repo)"
|
|
1496
|
+
).action(
|
|
1497
|
+
async (name, options) => (await import("./runExtract-IUEUT2IK.js")).runExtract(name, options)
|
|
1498
|
+
);
|
|
1499
|
+
configHelp(
|
|
1500
|
+
extract,
|
|
1501
|
+
miroConfigHelp,
|
|
1502
|
+
"Paths in a saved extract are resolved from the repo root."
|
|
1503
|
+
);
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
// src/commands/registerNetcap.ts
|
|
1507
|
+
function registerNetcap(program) {
|
|
1508
|
+
const command = program.command("netcap").description(
|
|
1509
|
+
"Start a local receiver that captures browser network traffic (fetch/XHR) to a JSONL file via the netcap browser extension"
|
|
1510
|
+
).option("-p, --port <port>", "Port to listen on", "8723").option(
|
|
1511
|
+
"-o, --out <dir>",
|
|
1512
|
+
"Directory to write the capture file into (default ~/.assist/netcap)"
|
|
1513
|
+
).option(
|
|
1514
|
+
"-f, --filter <pattern>",
|
|
1515
|
+
"Only forward requests whose URL contains this substring"
|
|
1516
|
+
).action(lazyAction(() => import("./netcap-FIHYF3LK.js"), "netcap"));
|
|
1517
|
+
command.command("extract-linkedin-posts [file]").description(
|
|
1518
|
+
"Extract LinkedIn posts (text, author, mentions, links, permalink) from a netcap capture file to posts.json"
|
|
1519
|
+
).action(
|
|
1520
|
+
lazyAction(() => import("./netcapExtract-KAFERZ6V.js"), "netcapExtract")
|
|
1521
|
+
);
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
// src/commands/registerNews.ts
|
|
1525
|
+
function registerNews(program) {
|
|
1526
|
+
const newsCommand = program.command("news").description("Manage RSS news feeds");
|
|
1527
|
+
newsCommand.command("add").description("Add an RSS feed URL to news.feeds").argument("<url>", "RSS feed URL").action(lazyAction(() => import("./add-HXSZYGPR.js"), "add"));
|
|
1528
|
+
newsCommand.command("list").description("List the RSS feed URLs in news.feeds").action(lazyAction(() => import("./list-GCJ6WCKC.js"), "list"));
|
|
1529
|
+
newsCommand.command("remove").description("Remove an RSS feed URL from news.feeds").argument("<url>", "RSS feed URL").action(lazyAction(() => import("./remove-VIGXH42Y.js"), "remove"));
|
|
1530
|
+
configHelp(newsCommand, newsConfigHelp);
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
// src/commands/registerPiHook.ts
|
|
1534
|
+
function registerPiHook(program) {
|
|
1535
|
+
internalCommand(
|
|
1536
|
+
program.command("pi-hook").description(
|
|
1537
|
+
"pi tool-call permission gate: reads pi's tool-call JSON from stdin and emits an allow/deny/gate decision, auto-approving read-only CLI commands via the shared cli-hook allowlist"
|
|
1538
|
+
).action(async () => {
|
|
1539
|
+
const { piHook } = await import("./piHook-WAOTTSYE.js");
|
|
1540
|
+
piHook();
|
|
1541
|
+
}),
|
|
1542
|
+
"assist's pi permission-gate extension"
|
|
1543
|
+
);
|
|
1544
|
+
}
|
|
1545
|
+
|
|
1546
|
+
// src/commands/registerPrompts.ts
|
|
1547
|
+
function registerPrompts(program) {
|
|
1548
|
+
internalCommand(
|
|
1549
|
+
program.command("prompts").description("Show top denied tool calls by frequency").action(lazyAction(() => import("./prompts-SL6SHWOA.js"), "prompts")),
|
|
1550
|
+
"/prompts"
|
|
1551
|
+
);
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
// src/commands/registerPrsThreadReplies.ts
|
|
1555
|
+
function registerPrsThreadReplies(prsCommand, calledBy5) {
|
|
1556
|
+
internalCommand(
|
|
1557
|
+
prsCommand.command("fixed <comment-id> <sha>").description("Reply with commit link and resolve thread").action(async (commentId, sha) => {
|
|
1558
|
+
const { fixed: prsFixed } = await import("./fixed-OTDA7M25.js");
|
|
1559
|
+
prsFixed(Number.parseInt(commentId, 10), sha);
|
|
1560
|
+
}),
|
|
1561
|
+
calledBy5
|
|
1562
|
+
);
|
|
1563
|
+
internalCommand(
|
|
1564
|
+
prsCommand.command("wontfix <comment-id> <reason>").description(
|
|
1565
|
+
"Reply with reason and resolve thread (reason of - reads it from stdin)"
|
|
1566
|
+
).action(async (commentId, reason) => {
|
|
1567
|
+
const { readBodyArgument } = await import("./readBodyArgument-NZG3GJMF.js");
|
|
1568
|
+
const { wontfix: prsWontfix } = await import("./wontfix-UZTOERNG.js");
|
|
1569
|
+
await prsWontfix(
|
|
1570
|
+
Number.parseInt(commentId, 10),
|
|
1571
|
+
await readBodyArgument(reason)
|
|
1572
|
+
);
|
|
1573
|
+
}),
|
|
1574
|
+
calledBy5
|
|
1575
|
+
);
|
|
1576
|
+
internalCommand(
|
|
1577
|
+
prsCommand.command("reply <comment-id> <body>").description(
|
|
1578
|
+
"Reply to a comment thread without resolving it (body of - reads it from stdin)"
|
|
1579
|
+
).action(async (commentId, body) => {
|
|
1580
|
+
const { readBodyArgument } = await import("./readBodyArgument-NZG3GJMF.js");
|
|
1581
|
+
const { reply: prsReply } = await import("./reply-4VV4LEYF.js");
|
|
1582
|
+
await prsReply(
|
|
1583
|
+
Number.parseInt(commentId, 10),
|
|
1584
|
+
await readBodyArgument(body)
|
|
1585
|
+
);
|
|
1586
|
+
}),
|
|
1587
|
+
calledBy5
|
|
1588
|
+
);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
// src/commands/registerPrsComments.ts
|
|
1592
|
+
var reviewComments = "/review-pr-comments";
|
|
1593
|
+
function registerPrsComments(prsCommand) {
|
|
1594
|
+
internalCommand(
|
|
1595
|
+
prsCommand.command("list-comments").description("List all comments on the current branch's pull request").action(async () => {
|
|
1596
|
+
const { listComments: prsListComments } = await import("./listComments-CTM5UMWI.js");
|
|
1597
|
+
const { printComments: prsPrintComments } = await import("./printComments-7ROHUEPO.js");
|
|
1598
|
+
prsListComments().then(prsPrintComments);
|
|
1599
|
+
}),
|
|
1600
|
+
reviewComments
|
|
1601
|
+
);
|
|
1602
|
+
registerPrsThreadReplies(prsCommand, reviewComments);
|
|
1603
|
+
internalCommand(
|
|
1604
|
+
prsCommand.command("comment <path> <line> <body>").description(
|
|
1605
|
+
"Add a line comment to the pending review (body of - reads it from stdin)"
|
|
1606
|
+
).action(async (path, line, body) => {
|
|
1607
|
+
const { comment: prsComment } = await import("./comment-SAOYKB2J.js");
|
|
1608
|
+
const { readBodyArgument } = await import("./readBodyArgument-NZG3GJMF.js");
|
|
1609
|
+
await prsComment(
|
|
1610
|
+
path,
|
|
1611
|
+
Number.parseInt(line, 10),
|
|
1612
|
+
await readBodyArgument(body)
|
|
1613
|
+
);
|
|
1614
|
+
}),
|
|
1615
|
+
"/comment and /forward-comments"
|
|
1616
|
+
);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
// src/commands/prs/editHelpText.ts
|
|
1620
|
+
function editHelpText() {
|
|
1621
|
+
return `
|
|
1622
|
+
Update individual sections of the current branch's pull request. Only the sections
|
|
1623
|
+
you pass are replaced; every other section of the existing body is preserved.
|
|
1624
|
+
|
|
1625
|
+
Do not reference Claude or any AI assistance in the title or body. Wrap symbols,
|
|
1626
|
+
file paths, function names, class names, variable names, config keys, CLI
|
|
1627
|
+
commands, and flag names in backticks.
|
|
1628
|
+
|
|
1629
|
+
A replacement section is held to the same standard as one written by
|
|
1630
|
+
'assist prs raise', and the budget applies to the resulting body as a whole \u2014 an
|
|
1631
|
+
edit must not push the body over it. Read the sections you are not touching first:
|
|
1632
|
+
if the section you are replacing was the concise one, trimming it further will not
|
|
1633
|
+
rescue a body that is already long-winded.
|
|
1634
|
+
|
|
1635
|
+
## What what is observably different for someone using or calling this.
|
|
1636
|
+
## Why the problem or motivation that made the change worth doing.
|
|
1637
|
+
## How only non-obvious decisions the diff alone won't explain; omit by
|
|
1638
|
+
default.
|
|
1639
|
+
|
|
1640
|
+
${screenshotGuidance} On edit, any supplied screenshots replace the existing
|
|
1641
|
+
## Screenshots section rather than adding a second one, so pass the full set.
|
|
1642
|
+
|
|
1643
|
+
${prConcisenessGuidance}
|
|
1644
|
+
`;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
// src/commands/registerPrsEdit.ts
|
|
1648
|
+
function collect4(value, previous) {
|
|
1649
|
+
return previous.concat([value]);
|
|
1650
|
+
}
|
|
1651
|
+
function registerPrsEdit(prsCommand) {
|
|
1652
|
+
const editCommand = prsCommand.command("edit").description(
|
|
1653
|
+
"Update individual sections of the current branch's pull request"
|
|
1654
|
+
).option("-t, --title <title>", "New title for the pull request").option("--what <what>", "Replace the ## What section").option("--why <why>", "Replace the ## Why section").option("--how <how>", "Replace the ## How section").option(
|
|
1655
|
+
"--resolves <ref>",
|
|
1656
|
+
"Jira issue key or GitHub issue reference resolved by this PR, appended to ## Why (repeatable)",
|
|
1657
|
+
collect4,
|
|
1658
|
+
[]
|
|
1659
|
+
).option(
|
|
1660
|
+
"--screenshot <spec>",
|
|
1661
|
+
"Attach a screenshot as '[Group/]Caption=path', replacing the ## Screenshots section (repeatable)",
|
|
1662
|
+
collect4,
|
|
1663
|
+
[]
|
|
1664
|
+
).addHelpText("after", () => editHelpText()).action(lazyAction(() => import("./edit-CFPOK62A.js"), "edit"));
|
|
1665
|
+
internalCommand(editCommand, "agents revising their pull request");
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
// src/shared/lazyHelpText.ts
|
|
1669
|
+
var preloaders = [];
|
|
1670
|
+
function lazyHelpText(command, load) {
|
|
1671
|
+
let render;
|
|
1672
|
+
preloaders.push(async () => {
|
|
1673
|
+
render = await load();
|
|
1674
|
+
});
|
|
1675
|
+
return command.addHelpText("after", () => render?.() ?? "");
|
|
1676
|
+
}
|
|
1677
|
+
async function preloadHelpText() {
|
|
1678
|
+
await Promise.all(preloaders.map((preload) => preload()));
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
// src/commands/prs/collect.ts
|
|
1682
|
+
function collect5(value, previous) {
|
|
1683
|
+
return previous.concat([value]);
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
// src/commands/prs/addRaiseSectionOptions.ts
|
|
1687
|
+
function addRaiseSectionOptions(command) {
|
|
1688
|
+
return command.option("-t, --title <title>", "Title for the pull request").option("--what <what>", "What the change does (## What section)").option("--why <why>", "Why the change is needed (## Why section)").option("--how <how>", "How the change works (optional ## How section)").option(
|
|
1689
|
+
"--resolves <ref>",
|
|
1690
|
+
"Jira issue key or GitHub issue reference resolved by this PR, appended to ## Why (repeatable)",
|
|
1691
|
+
collect5,
|
|
1692
|
+
[]
|
|
1693
|
+
).option(
|
|
1694
|
+
"--screenshot <spec>",
|
|
1695
|
+
"Attach a screenshot as '[Group/]Caption=path' under ## Screenshots (repeatable)",
|
|
1696
|
+
collect5,
|
|
1697
|
+
[]
|
|
1698
|
+
);
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
// src/commands/registerPrsRaise.ts
|
|
1702
|
+
function registerPrsRaise(prsCommand) {
|
|
1703
|
+
const raiseCommand = addRaiseSectionOptions(
|
|
1704
|
+
prsCommand.command("raise").description(
|
|
1705
|
+
"Raise a pull request, assembling the body from discrete sections"
|
|
1706
|
+
)
|
|
1707
|
+
).option(
|
|
1708
|
+
"--force",
|
|
1709
|
+
"Overwrite the title and body of an existing pull request"
|
|
1710
|
+
).option("-B, --base <branch>", "Branch into which the pull request merges").option("-H, --head <branch>", "Branch that contains the commits").option("-d, --draft", "Mark the pull request as a draft").option(
|
|
1711
|
+
"--no-draft",
|
|
1712
|
+
"Create a ready-for-review pull request, overriding prs.draft"
|
|
1713
|
+
).option("-w, --web", "Open the browser to create the pull request").option("-l, --label <label>", "Add a label (repeatable)", collect5, []).option(
|
|
1714
|
+
"-a, --assignee <login>",
|
|
1715
|
+
"Assign a person by login (repeatable)",
|
|
1716
|
+
collect5,
|
|
1717
|
+
[]
|
|
1718
|
+
).option(
|
|
1719
|
+
"-r, --reviewer <handle>",
|
|
1720
|
+
"Request a review (repeatable)",
|
|
1721
|
+
collect5,
|
|
1722
|
+
[]
|
|
1723
|
+
).option("-m, --milestone <name>", "Add the pull request to a milestone");
|
|
1724
|
+
lazyHelpText(
|
|
1725
|
+
raiseCommand,
|
|
1726
|
+
async () => (await import("./raiseHelpText-6TECFMWR.js")).raiseHelpText
|
|
1727
|
+
).action(lazyAction(() => import("./raise-OBGNVBLZ.js"), "raise"));
|
|
1728
|
+
internalCommand(raiseCommand, "/pr");
|
|
1729
|
+
configHelp(raiseCommand, prsRaiseConfigHelp);
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
// src/commands/registerPrsStatus.ts
|
|
1733
|
+
function registerPrsStatus(prsCommand) {
|
|
1734
|
+
internalCommand(
|
|
1735
|
+
prsCommand.command("status <repo...>").description(
|
|
1736
|
+
"Report every open pull request in each owner/repo, grouped by repo"
|
|
1737
|
+
).option("--json", "Output as JSON").action(lazyAction(() => import("./prsStatus-6G3ZTK36.js"), "prsStatus")),
|
|
1738
|
+
"/prs-status"
|
|
1739
|
+
);
|
|
1740
|
+
internalCommand(
|
|
1741
|
+
prsCommand.command("slack-channel").description(
|
|
1742
|
+
"Print the Slack channel PRs are announced to (prs.slack, else slack.channel)"
|
|
1743
|
+
).action(
|
|
1744
|
+
lazyAction(() => import("./prsSlackChannel-DY35HNQF.js"), "prsSlackChannel")
|
|
1745
|
+
),
|
|
1746
|
+
"/prs-slack"
|
|
1747
|
+
);
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
// src/commands/registerReadTime.ts
|
|
1751
|
+
function registerReadTime(parent) {
|
|
1752
|
+
const readTimeCommand = parent.command("read-time <target>").description(
|
|
1753
|
+
"Estimate how long a document takes to read (target is a pull request number, a GitHub pull request URL, - for stdin, or a file path)"
|
|
1754
|
+
).option(
|
|
1755
|
+
"--budget <duration>",
|
|
1756
|
+
"read-time budget the estimate is judged against, e.g. 45s, 1m30s, 2m (default 1m)"
|
|
1757
|
+
).action(
|
|
1758
|
+
async (target, options) => (await import("./readTime-23CA6JVM.js")).readTime(target, options)
|
|
1759
|
+
);
|
|
1760
|
+
configHelp(readTimeCommand, readTimeConfigHelp);
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
// src/commands/registerPrs.ts
|
|
1764
|
+
function registerPrs(program) {
|
|
1765
|
+
const prsCommand = program.command("prs").description("Pull request utilities").option("--open", "List only open pull requests").option("--closed", "List only closed pull requests").action(lazyAction(() => import("./prs-2SRUKVTI.js"), "prs"));
|
|
1766
|
+
registerPrsRaise(prsCommand);
|
|
1767
|
+
registerPrsStatus(prsCommand);
|
|
1768
|
+
registerPrsEdit(prsCommand);
|
|
1769
|
+
registerPrsComments(prsCommand);
|
|
1770
|
+
registerReadTime(prsCommand);
|
|
1771
|
+
configHelp(prsCommand, prsConfigHelp);
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
// src/commands/ravendb/registerRavendbAuth.ts
|
|
1775
|
+
function registerRavendbAuth(cmd) {
|
|
1776
|
+
const auth = cmd.command("auth").description("Configure a named RavenDB connection");
|
|
1777
|
+
auth.command("add").description("Add a new connection").action(async () => (await import("./ravendbAuth-53OAERB3.js")).ravendbAuth.add());
|
|
1778
|
+
auth.command("list").description("List configured connections").action(async () => (await import("./ravendbAuth-53OAERB3.js")).ravendbAuth.list());
|
|
1779
|
+
auth.command("remove <name>").description("Remove a configured connection").action(
|
|
1780
|
+
async (name) => (await import("./ravendbAuth-53OAERB3.js")).ravendbAuth.remove(name)
|
|
1781
|
+
);
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
// src/commands/registerRavendb.ts
|
|
1785
|
+
function registerRavendb(program) {
|
|
1786
|
+
const cmd = program.command("ravendb").description("RavenDB query utilities");
|
|
1787
|
+
registerRavendbAuth(cmd);
|
|
1788
|
+
cmd.command("set-connection <name>").description("Set the default connection").action(
|
|
1789
|
+
async (name) => (await import("./ravendbSetConnection-U7X27AIP.js")).ravendbSetConnection(
|
|
1790
|
+
name
|
|
1791
|
+
)
|
|
1792
|
+
);
|
|
1793
|
+
cmd.command("query [connection] [collection]").description("Query a RavenDB collection").option("--page-size <n>", "Documents per page", "25").option(
|
|
1794
|
+
"--sort <field>",
|
|
1795
|
+
"Sort field (prefix - for descending)",
|
|
1796
|
+
"-@metadata.Last-Modified"
|
|
1797
|
+
).option("--query <lucene>", "Lucene filter query").option("--limit <n>", "Max total documents to fetch").action(
|
|
1798
|
+
async (connection, collection, options) => (await import("./ravendbQuery-EY2XGKEK.js")).ravendbQuery(
|
|
1799
|
+
connection,
|
|
1800
|
+
collection,
|
|
1801
|
+
options
|
|
1802
|
+
)
|
|
1803
|
+
);
|
|
1804
|
+
cmd.command("collections [connection]").description("List collections in a RavenDB database").action(
|
|
1805
|
+
async (connection) => (await import("./ravendbCollections-2NZYZR5P.js")).ravendbCollections(
|
|
1806
|
+
connection
|
|
1807
|
+
)
|
|
1808
|
+
);
|
|
1809
|
+
configHelp(cmd, ravendbConfigHelp);
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
// src/commands/registerReleases.ts
|
|
1813
|
+
function registerReleases(parent) {
|
|
1814
|
+
const releasesCommand = parent.command("releases").description("Inspect the declared release promotion streams").action(
|
|
1815
|
+
lazyAction(() => import("./releasesList-EETLBTD2.js"), "releasesList")
|
|
1816
|
+
);
|
|
1817
|
+
configHelp(
|
|
1818
|
+
releasesCommand,
|
|
1819
|
+
releasesConfigHelp,
|
|
1820
|
+
"Streams are declared by '/releases-configure', which derives them from the repo's workflows and writes them with 'assist releases configure', and rendered by the /releases page of the sessions dashboard."
|
|
1821
|
+
);
|
|
1822
|
+
releasesCommand.command("list").description("List the declared release streams, their nodes and edges").action(
|
|
1823
|
+
lazyAction(() => import("./releasesList-EETLBTD2.js"), "releasesList")
|
|
1824
|
+
);
|
|
1825
|
+
internalCommand(
|
|
1826
|
+
releasesCommand.command("configure").description(
|
|
1827
|
+
"Validate release streams and write them to releases.streams for the current repo"
|
|
1828
|
+
).requiredOption(
|
|
1829
|
+
"--streams <file>",
|
|
1830
|
+
"JSON or YAML array of streams to declare; '-' reads stdin"
|
|
1831
|
+
).option(
|
|
1832
|
+
"--scope <git|db>",
|
|
1833
|
+
"repo (git), the repo's assist.yml, or repo (db), this repo's shared db override",
|
|
1834
|
+
"git"
|
|
1835
|
+
).action(
|
|
1836
|
+
lazyAction(
|
|
1837
|
+
() => import("./releasesConfigure-JA7QNAJF.js"),
|
|
1838
|
+
"releasesConfigure"
|
|
1839
|
+
)
|
|
1840
|
+
),
|
|
1841
|
+
"/releases-configure"
|
|
1842
|
+
);
|
|
1843
|
+
}
|
|
1844
|
+
|
|
1845
|
+
// src/commands/registerStatusLine.ts
|
|
1846
|
+
function registerStatusLine(program) {
|
|
1847
|
+
internalCommand(
|
|
1848
|
+
program.command("status-line").description("Format Claude Code status line from JSON stdin").action(lazyAction(() => import("./statusLine-TK2QPCQO.js"), "statusLine")),
|
|
1849
|
+
"Claude Code's status line"
|
|
1850
|
+
);
|
|
1851
|
+
}
|
|
1852
|
+
|
|
1853
|
+
// src/commands/registerRootCommands.ts
|
|
1854
|
+
function registerLint(program) {
|
|
1855
|
+
const lintCommand = program.command("lint").description("Run lint checks for conventions not enforced by oxlint").option("-f, --fix", "Auto-fix violations where possible").action(lazyAction(() => import("./lint-5AA42LMF.js"), "lint"));
|
|
1856
|
+
lintCommand.command("init").description("Initialize oxlint with baseline linter config").action(lazyAction(() => import("./init-BNY2X74K.js"), "init"));
|
|
1857
|
+
}
|
|
1858
|
+
function registerVscode(program) {
|
|
1859
|
+
program.command("vscode").description("VS Code configuration utilities").command("init").description("Add VS Code configuration files").action(lazyAction(() => import("./init-PZIM2TEG.js"), "init"));
|
|
1860
|
+
}
|
|
1861
|
+
function registerNotify(program) {
|
|
1862
|
+
const notifyCommand = program.command("notify").description(
|
|
1863
|
+
"Show notification from Claude Code hook (reads JSON from stdin)"
|
|
1864
|
+
).action(lazyAction(() => import("./notify-NRLRUDFI.js"), "notify"));
|
|
1865
|
+
internalCommand(notifyCommand, "the Notification hook");
|
|
1866
|
+
configHelp(notifyCommand, rootConfigHelp.notify);
|
|
1867
|
+
}
|
|
1868
|
+
function registerScreenshot(program) {
|
|
1869
|
+
const screenshotCommand = program.command("screenshot").description("Capture a screenshot of a running application window").argument("<process>", "Name of the running process (e.g. notepad, code)").action(lazyAction(() => import("./screenshot-ARSOZ2M6.js"), "screenshot"));
|
|
1870
|
+
configHelp(screenshotCommand, rootConfigHelp.screenshot);
|
|
1871
|
+
}
|
|
1872
|
+
function registerRootCommands(program) {
|
|
1873
|
+
program.command("init").description("Initialize VS Code and verify configurations").action(lazyAction(() => import("./init-BELQ3LDU.js"), "init"));
|
|
1874
|
+
registerLint(program);
|
|
1875
|
+
registerVscode(program);
|
|
1876
|
+
registerStatusLine(program);
|
|
1877
|
+
registerNotify(program);
|
|
1878
|
+
program.command("update").description("Update assist to the latest version and sync commands").action(lazyAction(() => import("./update-6NKPYHDT.js"), "update"));
|
|
1879
|
+
program.command("coverage").description("Print global statement coverage percentage").action(lazyAction(() => import("./coverage-G7J25BUX.js"), "coverage"));
|
|
1880
|
+
registerScreenshot(program);
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
// src/commands/registerRefactor.ts
|
|
1884
|
+
function registerCheck(parent) {
|
|
1885
|
+
parent.command("check [pattern]").description("Check for files that exceed the maximum line count").option("--modified", "Check only staged and unstaged files").option("--staged", "Check only staged files").option("--unstaged", "Check only unstaged files").option(
|
|
1886
|
+
"--max-lines <number>",
|
|
1887
|
+
"Maximum lines allowed per file (default: 100)",
|
|
1888
|
+
Number.parseInt
|
|
1889
|
+
).action(lazyAction(() => import("./check-QRHG4J7G.js"), "check"));
|
|
1890
|
+
}
|
|
1891
|
+
function registerRename(parent) {
|
|
1892
|
+
const renameCommand = parent.command("rename").description("Rename files or symbols with automatic import updates");
|
|
1893
|
+
renameCommand.command("file <source> <destination>").description("Rename/move a TypeScript file and update all imports").option("--apply", "Execute the rename (default: dry-run)").action(lazyAction(() => import("./rename-PM5VQUCY.js"), "rename"));
|
|
1894
|
+
renameCommand.command("symbol <file> <oldName> <newName>").description(
|
|
1895
|
+
"Rename a variable, function, class, or type across the project"
|
|
1896
|
+
).option("--apply", "Execute the rename (default: dry-run)").action(
|
|
1897
|
+
lazyAction(() => import("./renameSymbol-OOIIGF3B.js"), "renameSymbol")
|
|
1898
|
+
);
|
|
1899
|
+
}
|
|
1900
|
+
function registerRestructure(parent) {
|
|
1901
|
+
const restructureCommand = parent.command("restructure [root]").description(
|
|
1902
|
+
"Place every file under root by its import graph: single-importer files nest under their importer, shared files sit at their importers' lowest common folder"
|
|
1903
|
+
).option(
|
|
1904
|
+
"--apply",
|
|
1905
|
+
"Move files, rewrite their imports and vi.mock paths, and remove emptied folders (default: dry-run)"
|
|
1906
|
+
).option(
|
|
1907
|
+
"--check",
|
|
1908
|
+
"List files that drift from the plan and exit non-zero if any do"
|
|
1909
|
+
).action(lazyAction(() => import("./restructure-FJ3BME7E.js"), "restructure"));
|
|
1910
|
+
configHelp(restructureCommand, refactorConfigHelp);
|
|
1911
|
+
}
|
|
1912
|
+
function registerRefactor(program) {
|
|
1913
|
+
const refactorCommand = program.command("refactor").description("Run refactoring checks for code quality");
|
|
1914
|
+
registerCheck(refactorCommand);
|
|
1915
|
+
refactorCommand.command("extract <file> <functionName> <destination>").description(
|
|
1916
|
+
"Extract a function and its private dependencies to a new file"
|
|
1917
|
+
).option("--apply", "Execute the extraction (default: dry-run)").action(lazyAction(() => import("./extract-SGYOCBTT.js"), "extract"));
|
|
1918
|
+
refactorCommand.command("ignore <file>").description("Add a file to the refactor ignore list").action(lazyAction(() => import("./ignore-7E4ZV5XH.js"), "ignore"));
|
|
1919
|
+
registerRename(refactorCommand);
|
|
1920
|
+
registerRestructure(refactorCommand);
|
|
1921
|
+
}
|
|
1922
|
+
|
|
1923
|
+
// src/commands/review/addReviewModeOptions.ts
|
|
1924
|
+
function addReviewModeOptions(command) {
|
|
1925
|
+
return command.option(
|
|
1926
|
+
"--checkout-only",
|
|
1927
|
+
"Check the PR out and start an idle interactive session (on --harness) in the checkout tree instead of reviewing; requires a PR number and cannot be combined with --refine, --apply, --backlog or --submit"
|
|
1928
|
+
).option(
|
|
1929
|
+
"--high-level",
|
|
1930
|
+
"Check the PR out and open the high-level review checklist in the web UI preview pane, then post it to the PR as an Approve, Comment or Request changes review. Outside an agent session it starts one (on --harness) running the review-high-level skill for <number>. A review saved for the same head SHA is reopened unless --force is passed. Cannot be combined with --refine, --apply, --backlog, --submit or --checkout-only"
|
|
1931
|
+
).option(
|
|
1932
|
+
"--slices <file>",
|
|
1933
|
+
`With --high-level, in an assist session: read the PR's slices from a JSON file of [{title, summary, hunks[]}], where hunks are the path#index labels printed when the command refuses without slices. Unknown refs are dropped with a warning, unclaimed hunks go into an "Everything else" slice, and the slices are saved for this head SHA so a reopen reuses them unless --force is passed`
|
|
1934
|
+
).option(
|
|
1935
|
+
"--configure",
|
|
1936
|
+
"With --high-level: review nothing and instead ask for review.highLevel.criticalPaths, uiPaths and descriptionWordCap one at a time, each prefilled with its current value or, when unset, globs the configured harness.engine proposes from this repo's own tree (for criticalPaths, merged with its defaults), then write the answers in one pass to either this repo's override in the shared assist database or the project assist.yml. A blank answer leaves that key unset"
|
|
1937
|
+
).option(
|
|
1938
|
+
"--scope <scope>",
|
|
1939
|
+
"With --configure: write to 'db' (repo (db), this repo's override in the shared assist database) or 'git' (repo (git), the repo's own assist.yml) instead of asking which"
|
|
1940
|
+
).option(
|
|
1941
|
+
"--answer <key=value>",
|
|
1942
|
+
"With --configure: answer one key without prompting, for an agent that has already put the choice to the user (repeatable); an empty value leaves that key unset. Answer all three and nothing is prompted for and no globs are proposed",
|
|
1943
|
+
collectAnswer,
|
|
1944
|
+
[]
|
|
1945
|
+
);
|
|
1946
|
+
}
|
|
1947
|
+
function collectAnswer(answer, answers) {
|
|
1948
|
+
return [...answers, answer];
|
|
1949
|
+
}
|
|
1950
|
+
|
|
1951
|
+
// src/commands/review/addReviewRunOptions.ts
|
|
1952
|
+
function addReviewRunOptions(command) {
|
|
1953
|
+
return command.option(
|
|
1954
|
+
"--no-prompt",
|
|
1955
|
+
"Skip confirmation prompts; use flag defaults non-interactively"
|
|
1956
|
+
).option(
|
|
1957
|
+
"--submit",
|
|
1958
|
+
"Default the submit prompt to yes (or auto-submit with --no-prompt)"
|
|
1959
|
+
).option(
|
|
1960
|
+
"--force",
|
|
1961
|
+
"Clear cached claude.md / codex.md / synthesis.md and re-run all phases; with --high-level, discard the review saved for this head SHA and start fresh"
|
|
1962
|
+
).option(
|
|
1963
|
+
"--refine",
|
|
1964
|
+
"After synthesis, launch an interactive session (on --harness) to walk through findings instead of posting"
|
|
1965
|
+
).option(
|
|
1966
|
+
"--apply",
|
|
1967
|
+
"After synthesis, launch an interactive session (on --harness) to apply fixes for each finding; applied findings are removed from synthesis, skipped ones remain for a later post"
|
|
1968
|
+
).option(
|
|
1969
|
+
"--backlog",
|
|
1970
|
+
"After synthesis, launch an interactive session (on --harness) running the bug skill to file all findings as a single backlog item with one phase per finding, instead of posting to the PR"
|
|
1971
|
+
).option(
|
|
1972
|
+
"--address-comments",
|
|
1973
|
+
"After posting and submitting the review, start an Address Comments session (assist review-pr-comments <n>) for the PR; no-op when nothing was posted or the review was not submitted, and only inside an assist session"
|
|
1974
|
+
).option(
|
|
1975
|
+
"--announce",
|
|
1976
|
+
"Announce the PR in Slack (/prs-slack <n> --no-confirm) once the chain finishes: from the Address Comments session when one was started, otherwise from a session started directly; only inside an assist session"
|
|
1977
|
+
).option(
|
|
1978
|
+
"--verbose",
|
|
1979
|
+
"Disable spinner UI and use per-line log output (per-tool lines, starting/done lines)"
|
|
1980
|
+
);
|
|
1981
|
+
}
|
|
1982
|
+
|
|
1983
|
+
// src/commands/registerReview.ts
|
|
1984
|
+
function registerReview(program) {
|
|
1985
|
+
const reviewCommand = program.command("review").description(
|
|
1986
|
+
"Run the Claude and Codex reviewers in parallel on the current branch's PR and synthesise their findings, or check out a PR by number first when given; --checkout-only just checks the PR out and leaves an idle session in the checkout tree"
|
|
1987
|
+
).argument(
|
|
1988
|
+
"[number]",
|
|
1989
|
+
"Optional PR number; when provided, runs `gh pr checkout <number>` before reviewing"
|
|
1990
|
+
).option(
|
|
1991
|
+
"--harness <kind>",
|
|
1992
|
+
"Coding harness (claude|codex|pi) for the interactive session that --refine, --apply, --backlog, --checkout-only or --high-level starts, and for the Address Comments session --address-comments chains; defaults to the configured harness.engine. Exits with the reasons, before checking out or reviewing, when that session is unavailable on it. Reviewers and synthesis are not affected (see review.synthesisHarness)"
|
|
1993
|
+
);
|
|
1994
|
+
internalCommand(
|
|
1995
|
+
addReviewModeOptions(addReviewRunOptions(reviewCommand)).action(
|
|
1996
|
+
async (number, options) => {
|
|
1997
|
+
const { resolveHarness } = await import("./resolveHarness-A3F7CDF2.js");
|
|
1998
|
+
const { review } = await import("./review-4XGSPYYJ.js");
|
|
1999
|
+
return review({
|
|
2000
|
+
...options,
|
|
2001
|
+
number,
|
|
2002
|
+
harness: resolveHarness(options.harness)
|
|
2003
|
+
});
|
|
2004
|
+
}
|
|
2005
|
+
),
|
|
2006
|
+
"the Review menu"
|
|
2007
|
+
);
|
|
2008
|
+
configHelp(
|
|
2009
|
+
reviewCommand,
|
|
2010
|
+
reviewConfigHelp,
|
|
2011
|
+
"With review.codexModel unset or codex-default the codex reviewer runs on the user's own codex auth and configured model (set codex-default in a repo to override an inherited value); when it is set but the LiteLLM proxy is not configured, the reviewer falls back to that plain codex run. A reviewer whose harness is unavailable is skipped with its reason, and the review stops before reviewing when the review.synthesisHarness cannot synthesise."
|
|
2012
|
+
);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
2015
|
+
// src/commands/rules/registerRulesAdd.ts
|
|
2016
|
+
function registerRulesAdd(rulesCommand) {
|
|
2017
|
+
internalCommand(
|
|
2018
|
+
rulesCommand.command("add <text>").description(
|
|
2019
|
+
"Add a rule to the `## Rules` section of the scope's CLAUDE.md, allocating the next repo-wide code and creating the section when absent"
|
|
2020
|
+
).option(
|
|
2021
|
+
"--title <title>",
|
|
2022
|
+
"As few words as possible summarising the rule, shown in the rule picker in place of the description"
|
|
2023
|
+
).option(
|
|
2024
|
+
"--scope <path>",
|
|
2025
|
+
"File or directory whose nearest CLAUDE.md receives the rule, or a CLAUDE.md path to write to directly (default: cwd)"
|
|
2026
|
+
).option(
|
|
2027
|
+
"--user",
|
|
2028
|
+
"Append the rule to advice.rules in user (db), the shared db, instead of a CLAUDE.md: for rules about agent conduct that hold in every repo on every node. Needs --title; takes no R-code and cannot be combined with --scope"
|
|
2029
|
+
).option(
|
|
2030
|
+
"--node",
|
|
2031
|
+
"As --user, but append to advice.rules in user (node), this node's ~/.assist.yml"
|
|
2032
|
+
).option(
|
|
2033
|
+
"--repo [name]",
|
|
2034
|
+
"As --user, but append to advice.rules in repo (db), the shared per-repo override every node sees, for the current repo or the named one"
|
|
2035
|
+
).action(async (text, options) => {
|
|
2036
|
+
const { addRule } = await import("./addRule-J432LIS3.js");
|
|
2037
|
+
const { addUserRule } = await import("./addUserRule-XO2BNQFH.js");
|
|
2038
|
+
return options.user || options.node || options.repo !== void 0 ? addUserRule(text, options) : addRule(text, options);
|
|
2039
|
+
}),
|
|
2040
|
+
"/add-rule and /fix-rules"
|
|
2041
|
+
);
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2044
|
+
// src/commands/registerRules.ts
|
|
2045
|
+
function registerRules(program) {
|
|
2046
|
+
const rulesCommand = program.command("rules").description("Read and write the CLAUDE.md rules in scope for a path");
|
|
2047
|
+
rulesCommand.command("list [path]").description(
|
|
2048
|
+
"List the rules from the `## Rules` section of every CLAUDE.md from a path's directory up to the repo root (default: cwd)"
|
|
2049
|
+
).option("--full", "Show each rule's full description as well as its title").action(
|
|
2050
|
+
async (target, options) => (await import("./listRules-XBWM5DPH.js")).listRules(target, options)
|
|
2051
|
+
);
|
|
2052
|
+
registerRulesAdd(rulesCommand);
|
|
2053
|
+
internalCommand(
|
|
2054
|
+
rulesCommand.command("index").description(
|
|
2055
|
+
"Record the directories that carry their own `## Rules` in the repo root's CLAUDE.md, so scoped rules are discoverable from the root. Always repo-wide, resolved from the cwd"
|
|
2056
|
+
).action(lazyAction(() => import("./indexRules-65H3IE33.js"), "indexRules")),
|
|
2057
|
+
"/fix-rules"
|
|
2058
|
+
);
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
// src/commands/registerSeq.ts
|
|
2062
|
+
function registerSeq(program) {
|
|
2063
|
+
const cmd = program.command("seq").description("Seq log query utilities");
|
|
2064
|
+
const auth = cmd.command("auth").description("Configure a Seq connection");
|
|
2065
|
+
auth.command("add").description("Add a new connection").action(async () => (await import("./seqAuth-6IPD5OPG.js")).seqAuth.add());
|
|
2066
|
+
auth.command("list").description("List configured connections").action(async () => (await import("./seqAuth-6IPD5OPG.js")).seqAuth.list());
|
|
2067
|
+
auth.command("remove <name>").description("Remove a configured connection").action(
|
|
2068
|
+
async (name) => (await import("./seqAuth-6IPD5OPG.js")).seqAuth.remove(name)
|
|
2069
|
+
);
|
|
2070
|
+
cmd.command("set-connection <name>").description("Set the default Seq connection").action(
|
|
2071
|
+
async (name) => (await import("./seqSetConnection-IUCGBTON.js")).seqSetConnection(name)
|
|
2072
|
+
);
|
|
2073
|
+
cmd.command("query <filter>").description("Query Seq events with a filter expression").option("-c, --connection <name>", "Connection to use").option("-n, --count <n>", "Number of events to fetch", "50").option(
|
|
2074
|
+
"--from <date>",
|
|
2075
|
+
"Start of query window (UTC date or relative e.g. 5m, 1h, 2d)"
|
|
2076
|
+
).option(
|
|
2077
|
+
"--to <date>",
|
|
2078
|
+
"End of query window (UTC date or relative e.g. 5m, 1h, 2d)"
|
|
2079
|
+
).option("--json", "Output raw JSON").action(
|
|
2080
|
+
async (filter, options) => (await import("./seqQuery-HL6H4PMX.js")).seqQuery(filter, options)
|
|
2081
|
+
);
|
|
2082
|
+
configHelp(cmd, seqConfigHelp);
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
// src/commands/registerShow.ts
|
|
2086
|
+
function registerShow(program) {
|
|
2087
|
+
internalCommand(
|
|
2088
|
+
program.command("show").description(
|
|
2089
|
+
"Open markdown in the session's web preview pane so long links, paths and snippets can be clicked and copied unbroken; prints it outside a web session"
|
|
2090
|
+
).option("--title <title>", "Pane title").requiredOption("--body <markdown|->", "Markdown to show, or - for stdin").action(lazyAction(() => import("./show-GL235RVD.js"), "show")),
|
|
2091
|
+
"/show"
|
|
2092
|
+
);
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
// src/commands/registerSignal.ts
|
|
2096
|
+
function registerSignal(program) {
|
|
2097
|
+
const signalCommand = program.command("signal").description("Write an assist signal file");
|
|
2098
|
+
internalCommand(
|
|
2099
|
+
signalCommand.command("next").argument("[id]", "Backlog item ID to run directly").description("Write a next signal to chain into assist next").action(async (id) => {
|
|
2100
|
+
const { writeSignal } = await import("./writeSignal-NGH5I4AX.js");
|
|
2101
|
+
writeSignal("next", id ? { id } : void 0);
|
|
2102
|
+
console.log("Signal written.");
|
|
2103
|
+
}),
|
|
2104
|
+
"/next"
|
|
2105
|
+
);
|
|
2106
|
+
internalCommand(
|
|
2107
|
+
signalCommand.command("done").argument("[ids...]", "Backlog item IDs created by the session").description(
|
|
2108
|
+
"Write a done signal to end a --once launch session, once every item it set out to create exists"
|
|
2109
|
+
).action(async (ids) => {
|
|
2110
|
+
const { writeSignal } = await import("./writeSignal-NGH5I4AX.js");
|
|
2111
|
+
writeSignal("done", ids.length > 0 ? { ids } : void 0);
|
|
2112
|
+
console.log("Signal written.");
|
|
2113
|
+
}),
|
|
2114
|
+
"/draft, /bug, /refine"
|
|
2115
|
+
);
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
// src/commands/slack/parseSlackThreadRef.ts
|
|
2119
|
+
import { InvalidArgumentError as InvalidArgumentError4 } from "commander";
|
|
2120
|
+
var MESSAGE_TS = /^\d{10}\.\d{6}$/;
|
|
2121
|
+
var PERMALINK_TS = /\/archives\/[^/?#]+\/p(\d{10})(\d{6})\b/;
|
|
2122
|
+
var PERMALINK_THREAD_TS = /[?&]thread_ts=(\d{10}\.\d{6})\b/;
|
|
2123
|
+
function parseSlackThreadRef(value) {
|
|
2124
|
+
const trimmed = value.trim();
|
|
2125
|
+
if (MESSAGE_TS.test(trimmed)) return trimmed;
|
|
2126
|
+
const thread = PERMALINK_THREAD_TS.exec(trimmed);
|
|
2127
|
+
if (thread) return thread[1];
|
|
2128
|
+
const permalink = PERMALINK_TS.exec(trimmed);
|
|
2129
|
+
if (permalink) return `${permalink[1]}.${permalink[2]}`;
|
|
2130
|
+
throw new InvalidArgumentError4(
|
|
2131
|
+
"Expected a message ts (1712345678.123456) or a Slack archives permalink (https://<workspace>.slack.com/archives/<channel>/p1712345678123456)."
|
|
2132
|
+
);
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
// src/commands/registerSlack.ts
|
|
2136
|
+
function registerSlack(program) {
|
|
2137
|
+
const slackCommand = program.command("slack").description("Slack utilities");
|
|
2138
|
+
const postCommand = slackCommand.command("post [channel]").description(
|
|
2139
|
+
"Preview a markdown message, or a thread of them with --parts, bound for a Slack channel (body of - reads it from stdin)"
|
|
2140
|
+
).option("--body <body>", "Message body (- reads it from stdin)").option(
|
|
2141
|
+
"--parts <files...>",
|
|
2142
|
+
"Files holding the messages of one thread, in thread order (not with --body)"
|
|
2143
|
+
).option(
|
|
2144
|
+
"--thread <ts-or-permalink>",
|
|
2145
|
+
"Reply in this thread: a message ts (1712345678.123456) or a Slack archives permalink",
|
|
2146
|
+
parseSlackThreadRef
|
|
2147
|
+
).addHelpText(
|
|
2148
|
+
"after",
|
|
2149
|
+
"\nThe command does not post: Slack is reachable only over MCP, so it previews the message and hands the approved body back for /slack-post to send.\nIn an assist web session the body is previewed for approve/reject first (with inline comments). On approval the body is written to a working file under ~/.assist/slack/ and its path printed on the last line, preceded by the resolved thread_ts when --thread was given. On rejection nothing is handed back: the command exits non-zero with the reason and any inline comments, leaving the previewed markdown in the working file to revise in place.\n--parts takes the files holding one thread's messages in thread order, each getting its own working file (channel-1.md, channel-2.md, \u2026) and its own preview pane titled with its position in the batch (2/3). The panes pop in sequence and no path is printed until every part is approved, at which point each path prints prefixed with its position (1/3) under a line naming the target, followed by how to thread them: without --thread part 1 opens the thread and the rest carry the thread_ts it returns, with --thread every part is a reply under the resolved thread_ts. The first rejection halts the batch and exits non-zero naming that part's position, reason, inline comments and working file, with no path handed back. A missing or empty part file, or --parts with --body, is an error before any pane opens.\nOutside a web session there is no preview and the body passes straight through.\nslack_send_message accepts standard markdown as it is \u2014 bold, italic, code, blockquotes, lists, links, code blocks, tables and headers \u2014 capped at 5000 characters."
|
|
2150
|
+
).action(
|
|
2151
|
+
async (channel, options) => {
|
|
2152
|
+
const { readBodyArgument } = await import("./readBodyArgument-NZG3GJMF.js");
|
|
2153
|
+
const { postSlackMessage } = await import("./postSlackMessage-SJQGYGJQ.js");
|
|
2154
|
+
await postSlackMessage(channel, {
|
|
2155
|
+
...options,
|
|
2156
|
+
body: options.body ? await readBodyArgument(options.body) : void 0
|
|
2157
|
+
});
|
|
2158
|
+
}
|
|
2159
|
+
);
|
|
2160
|
+
internalCommand(postCommand, "/slack-post");
|
|
2161
|
+
configHelp(postCommand, slackConfigHelp);
|
|
2162
|
+
}
|
|
2163
|
+
|
|
2164
|
+
// src/commands/sql/registerSqlAuth.ts
|
|
2165
|
+
function registerSqlAuth(cmd) {
|
|
2166
|
+
const auth = cmd.command("auth").description("Configure a SQL connection");
|
|
2167
|
+
auth.command("add").description("Add a new connection").action(async () => (await import("./sqlAuth-IN4PYCIX.js")).sqlAuth.add());
|
|
2168
|
+
auth.command("list").description("List configured connections").action(async () => (await import("./sqlAuth-IN4PYCIX.js")).sqlAuth.list());
|
|
2169
|
+
auth.command("remove <name>").description("Remove a configured connection").action(
|
|
2170
|
+
async (name) => (await import("./sqlAuth-IN4PYCIX.js")).sqlAuth.remove(name)
|
|
2171
|
+
);
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
// src/commands/registerSql.ts
|
|
2175
|
+
function registerSql(program) {
|
|
2176
|
+
const cmd = program.command("sql").description("MSSQL query utilities");
|
|
2177
|
+
registerSqlAuth(cmd);
|
|
2178
|
+
cmd.command("set-connection <name>").description("Set the default SQL connection").action(
|
|
2179
|
+
async (name) => (await import("./sqlSetConnection-UAX7TRB4.js")).sqlSetConnection(name)
|
|
2180
|
+
);
|
|
2181
|
+
cmd.command("query <sql> [connection]").description("Execute a read-only SQL query (rejects mutating statements)").action(
|
|
2182
|
+
async (query, connection) => (await import("./sqlQuery-OAXPQJPY.js")).sqlQuery(query, connection)
|
|
2183
|
+
);
|
|
2184
|
+
cmd.command("mutate <sql> [connection]").description(
|
|
2185
|
+
"Execute a mutating SQL statement (rejects non-mutating statements)"
|
|
2186
|
+
).action(
|
|
2187
|
+
async (query, connection) => (await import("./sqlMutate-4QC4IT4E.js")).sqlMutate(query, connection)
|
|
2188
|
+
);
|
|
2189
|
+
cmd.command("tables [connection]").description("List tables in the connected database").action(
|
|
2190
|
+
async (connection) => (await import("./sqlTables-ZM2PUJ7N.js")).sqlTables(connection)
|
|
2191
|
+
);
|
|
2192
|
+
cmd.command("columns <table> [connection]").description(
|
|
2193
|
+
"List columns for a table (use schema.table for non-default schema)"
|
|
2194
|
+
).action(
|
|
2195
|
+
async (table, connection) => (await import("./sqlColumns-SNPMTHHK.js")).sqlColumns(table, connection)
|
|
2196
|
+
);
|
|
2197
|
+
configHelp(cmd, sqlConfigHelp);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
// src/commands/registerSync.ts
|
|
2201
|
+
function registerSync(program) {
|
|
2202
|
+
const syncCommand = program.command("sync").description(
|
|
2203
|
+
"Install commands as ~/.agent/skills/<name>/SKILL.md, so they take precedence over a project skill of the same name, and delete any ~/.agent/commands/<name>.md an earlier sync copied; when codex is detected, also install commands as ~/.codex/skills/<name>/SKILL.md and register the assist codex-hook in ~/.codex/config.toml, which auto-approves read-only commands and injects the repo's composed advice on SessionStart; when pi is detected, also install commands as ~/.pi/agent/prompts/<name>.md and install the assist extensions into ~/.pi/agent/extensions, which gate permissions and inject the same advice. No global instructions file is written \u2014 every harness composes its own from assist advise at session start, and any ~/.claude/CLAUDE.md, ~/.codex/AGENTS.md or ~/.pi/agent/AGENTS.md an earlier sync left behind is named so you can remove it. A target that exists and was not written by sync is never overwritten or deleted without confirmation; with --yes it is left in place and reported. With --prune, also report files an earlier sync wrote that assist no longer ships, and with --prune --force remove them"
|
|
2204
|
+
).option("-y, --yes", "Overwrite settings.json without prompting").option(
|
|
2205
|
+
"--prune",
|
|
2206
|
+
"After syncing, list files an earlier sync wrote (recorded in ~/.assist/sync-manifest.json) whose name is no longer in the repo's agent/commands/*.md set; files sync did not write are listed separately and never removed"
|
|
2207
|
+
).option(
|
|
2208
|
+
"--force",
|
|
2209
|
+
"With --prune, remove the listed orphaned files; a claude or codex skill directory is removed only when SKILL.md is its sole content. Errors without --prune"
|
|
2210
|
+
).action(async (options) => {
|
|
2211
|
+
const { sync } = await import("./sync-HAAAJ4LC.js");
|
|
2212
|
+
if (options.force && !options.prune) {
|
|
2213
|
+
console.error("--force requires --prune.");
|
|
2214
|
+
process.exit(1);
|
|
2215
|
+
}
|
|
2216
|
+
return sync(options);
|
|
2217
|
+
});
|
|
2218
|
+
configHelp(syncCommand, rootConfigHelp.sync);
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
// src/commands/registerTestflight.ts
|
|
2222
|
+
function registerTestflight(program) {
|
|
2223
|
+
const cmd = program.command("testflight").description("Manage TestFlight testers via the App Store Connect API");
|
|
2224
|
+
const addCommand = cmd.command("add <email>").description(
|
|
2225
|
+
"Add a tester to the external beta group, or with --internal invite them to the team and add them to the internal group"
|
|
2226
|
+
).option(
|
|
2227
|
+
"--internal",
|
|
2228
|
+
"Invite to the App Store Connect team; re-run after they accept to add them to the internal group"
|
|
2229
|
+
).action(
|
|
2230
|
+
async (email, options) => (await import("./testflightAdd-MBJAAJGR.js")).testflightAdd(
|
|
2231
|
+
email,
|
|
2232
|
+
options
|
|
2233
|
+
)
|
|
2234
|
+
);
|
|
2235
|
+
configHelp(addCommand, testflightConfigHelp);
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2238
|
+
// src/commands/transcript/registerMergeCommand.ts
|
|
2239
|
+
function registerMergeCommand(cmd) {
|
|
2240
|
+
cmd.command("merge <path...>").description(
|
|
2241
|
+
"Collapse several .vtt files into one transcript with NOTE provenance"
|
|
2242
|
+
).option("--out <path>", "write the merged transcript to this path").option(
|
|
2243
|
+
"--select <file|->",
|
|
2244
|
+
"keep/removed JSON naming the passages to keep (- for stdin)"
|
|
2245
|
+
).option(
|
|
2246
|
+
"--no-provenance",
|
|
2247
|
+
"omit every NOTE: the Collapsed-from header, the per-passage source marks and the removed count"
|
|
2248
|
+
).option(
|
|
2249
|
+
"--widen-audience",
|
|
2250
|
+
"delete the casual asides that fit the people in the call but not a reader who was not there: intensifiers, emphasis after a wh-word, standalone interjections and cues that are nothing but one"
|
|
2251
|
+
).action(lazyAction(() => import("./merge-MVMNYPO2.js"), "merge"));
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
// src/commands/transcript/transcriptWorkflowHelp.ts
|
|
2255
|
+
function transcriptWorkflowHelp() {
|
|
2256
|
+
return [
|
|
2257
|
+
"",
|
|
2258
|
+
"Collapsing several conversations into one transcript \u2014 read, select, merge:",
|
|
2259
|
+
"",
|
|
2260
|
+
" 1. Read assist transcript clean ./a.vtt --format md --timestamps",
|
|
2261
|
+
" Each speaker turn is prefixed [hh:mm:ss], so the passages worth keeping",
|
|
2262
|
+
" can be cited as ranges. Repeat per source.",
|
|
2263
|
+
"",
|
|
2264
|
+
" 2. Select Write the ranges to keep, and a reason per dropped passage:",
|
|
2265
|
+
' { "keep": [{ "file": "a.vtt", "from": "00:14:22", "to": "00:19:40" }],',
|
|
2266
|
+
' "removed": ["private", "off-topic"] }',
|
|
2267
|
+
" from/to are matched against the source times printed in step 1.",
|
|
2268
|
+
"",
|
|
2269
|
+
" 3. Merge assist transcript merge ./a.vtt ./b.vtt --select ./selection.json --out ./merged.vtt",
|
|
2270
|
+
" Cue times are rebased onto one continuous timeline; the sources, the",
|
|
2271
|
+
" removal count and each passage's original start survive as NOTE blocks.",
|
|
2272
|
+
" Add --no-provenance when the merged file leaves for somewhere the source",
|
|
2273
|
+
" names and cut points should not follow.",
|
|
2274
|
+
" Add --widen-audience when the transcript is going to readers who were",
|
|
2275
|
+
" not in the call: the casual asides pitched at the people who were \u2014",
|
|
2276
|
+
" intensifiers, emphasis after a wh-word, standalone interjections and",
|
|
2277
|
+
" cues that are nothing but one \u2014 are deleted. Anything carrying meaning",
|
|
2278
|
+
" is left for you to judge."
|
|
2279
|
+
].join("\n");
|
|
2280
|
+
}
|
|
2281
|
+
|
|
2282
|
+
// src/commands/registerTranscript.ts
|
|
2283
|
+
function registerTranscript(program) {
|
|
2284
|
+
const transcriptCommand = program.command("transcript").description("Meeting transcript utilities").addHelpText("after", () => transcriptWorkflowHelp());
|
|
2285
|
+
configHelp(transcriptCommand, transcriptConfigHelp);
|
|
2286
|
+
transcriptCommand.command("configure").description("Configure transcript directories").action(lazyAction(() => import("./configure-ETWPCRNG.js"), "configure"));
|
|
2287
|
+
internalCommand(
|
|
2288
|
+
transcriptCommand.command("list").description("List raw .vtt filenames waiting in the pick-up directory").action(lazyAction(() => import("./list-HCOU6YAY.js"), "list")),
|
|
2289
|
+
"/transcripts"
|
|
2290
|
+
);
|
|
2291
|
+
transcriptCommand.command("clean <path>").description("Clean any .vtt file and write the result to stdout").option("--format <md|vtt>", "output format", "md").option(
|
|
2292
|
+
"--timestamps",
|
|
2293
|
+
"prefix each speaker turn with its start time (--format md only)"
|
|
2294
|
+
).action(lazyAction(() => import("./clean-W43XKMR2.js"), "clean"));
|
|
2295
|
+
registerMergeCommand(transcriptCommand);
|
|
2296
|
+
internalCommand(
|
|
2297
|
+
transcriptCommand.command("move <file>").description(
|
|
2298
|
+
"Convert a raw .vtt to a dated markdown transcript and archive the original"
|
|
2299
|
+
).requiredOption("--date <YYYY-MM-DD>", "meeting date").requiredOption("--client <name>", "client name").action(lazyAction(() => import("./move-XAN7VFR4.js"), "move")),
|
|
2300
|
+
"/transcripts"
|
|
2301
|
+
);
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
// src/commands/registerVerifyChecks.ts
|
|
2305
|
+
var checks = [
|
|
2306
|
+
{
|
|
2307
|
+
name: "hardcoded-colors",
|
|
2308
|
+
description: "Check for hardcoded hex colors in src/",
|
|
2309
|
+
load: async () => (await import("./hardcodedColors-4NBF5Z53.js")).hardcodedColors
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
name: "block-code-comments",
|
|
2313
|
+
description: "Fail on any comment on a changed line, whether added or edited",
|
|
2314
|
+
load: async () => (await import("./blockCodeComments-PZHXN2WG.js")).blockCodeComments
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
name: "no-venv",
|
|
2318
|
+
description: "Check that no venv folders exist in the repo",
|
|
2319
|
+
load: async () => (await import("./noVenv-DONW2S6P.js")).noVenv
|
|
2320
|
+
},
|
|
2321
|
+
{
|
|
2322
|
+
name: "forbidden-strings",
|
|
2323
|
+
description: "Check configured JSON files for values matching forbiddenStrings rules",
|
|
2324
|
+
load: async () => (await import("./forbiddenStrings-GVXIN7QW.js")).forbiddenStrings
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
name: "config-keys",
|
|
2328
|
+
description: "Check every assistConfigSchema key is surfaced in some command's --help via configHelp",
|
|
2329
|
+
load: async () => (await import("./configKeys-OGJBDYG6.js")).configKeys
|
|
2330
|
+
},
|
|
2331
|
+
{
|
|
2332
|
+
name: "advice-fragments",
|
|
2333
|
+
description: "Check adviceFragmentNames matches the fragments shipped in agent/advice, so advice.sections can name every one",
|
|
2334
|
+
load: async () => (await import("./adviceFragments-5XVE6JXX.js")).adviceFragments
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
name: "migrations",
|
|
2338
|
+
description: "Check DB migrations are sequentially numbered, append-only, and gate destructive DDL behind an acknowledgement marker",
|
|
2339
|
+
load: async () => (await import("./migrations-CSVJKLQC.js")).migrations
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
name: "harness-follow-ups",
|
|
2343
|
+
description: "Check every follow-up item named by an unsupported harness capability exists and is still open",
|
|
2344
|
+
load: async () => (await import("./harnessFollowUps-PNR55PM4.js")).harnessFollowUps
|
|
2345
|
+
}
|
|
2346
|
+
];
|
|
2347
|
+
function registerVerifyChecks(verifyCommand) {
|
|
2348
|
+
for (const check of checks) {
|
|
2349
|
+
verifyCommand.command(check.name).description(check.description).action(async () => {
|
|
2350
|
+
const action = await check.load();
|
|
2351
|
+
await action();
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2354
|
+
}
|
|
2355
|
+
|
|
2356
|
+
// src/commands/registerVerify.ts
|
|
2357
|
+
function registerVerify(program) {
|
|
2358
|
+
const verifyCommand = program.command("verify").description("Run all verify:* commands in parallel").argument(
|
|
2359
|
+
"[scope]",
|
|
2360
|
+
'Use "all" to run all checks, ignoring diff-based filters'
|
|
2361
|
+
).option(
|
|
2362
|
+
"--measure",
|
|
2363
|
+
"Print a summary table of each command's status and duration after the run"
|
|
2364
|
+
).option("--verbose", "Show all output (bypass CLAUDECODE suppression)").action(lazyAction(() => import("./runScope-LCAGTKGG.js"), "runScope"));
|
|
2365
|
+
verifyCommand.command("list").description("List configured verify commands").action(lazyAction(() => import("./list-ZR6AEAER.js"), "list"));
|
|
2366
|
+
verifyCommand.command("init").description("Add verify scripts to a project").option(
|
|
2367
|
+
"--package-json",
|
|
2368
|
+
"Write scripts to package.json instead of assist.yml"
|
|
2369
|
+
).action(lazyAction(() => import("./init-6Y2TC67U.js"), "init"));
|
|
2370
|
+
registerVerifyChecks(verifyCommand);
|
|
2371
|
+
configHelp(
|
|
2372
|
+
verifyCommand,
|
|
2373
|
+
verifyConfigHelp,
|
|
2374
|
+
"Following MakerXStudio/verify's convention, a verify:<name> / verify:<name>:fix pair runs once: fix mode runs the :fix variant (or verify:<name> when there is none), check mode runs only verify:<name> and skips a :fix with no base. VERIFY_MODE=check|fix picks the mode; otherwise a truthy CI means check, else fix."
|
|
2375
|
+
);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
// src/commands/watch/registerWatchWait.ts
|
|
2379
|
+
function registerWatchWait(watchCommand) {
|
|
2380
|
+
internalCommand(
|
|
2381
|
+
watchCommand.command("wait").description(
|
|
2382
|
+
"Block until the current branch's upstream gains commits, then exit 0 (2 on timeout, 3 when --pull hits genuine divergence, 4 when --build or the post-build sync fails, 5 when git fetch fails, 1 when waiting is impossible, 130 on interrupt)"
|
|
2383
|
+
).option(
|
|
2384
|
+
"--interval <duration>",
|
|
2385
|
+
"How often to fetch after the fetch at startup (e.g. 30s, 2m)",
|
|
2386
|
+
"30s"
|
|
2387
|
+
).option(
|
|
2388
|
+
"--timeout <duration>",
|
|
2389
|
+
"Give up and exit 2 after this long (e.g. 60m, 2h), or none to wait indefinitely",
|
|
2390
|
+
"none"
|
|
2391
|
+
).option(
|
|
2392
|
+
"--pull",
|
|
2393
|
+
"On movement, fast-forward with git pull --ff-only, recovering a dirty tree or a merely-behind branch; exit 3 with git's reason on genuine divergence"
|
|
2394
|
+
).option(
|
|
2395
|
+
"--build [entry]",
|
|
2396
|
+
"After a successful pull, run this run entry (default auto-build), then run assist sync --yes when the pulled commits touched the files sync installs; exit 4 with the output of whichever fails"
|
|
2397
|
+
).action(
|
|
2398
|
+
async (options) => (await import("./watchWait-FF65XUH2.js")).watchWait(options)
|
|
2399
|
+
),
|
|
2400
|
+
"auto-update"
|
|
2401
|
+
);
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
// src/commands/registerWatch.ts
|
|
2405
|
+
function registerWatch(program) {
|
|
2406
|
+
const watchCommand = program.command("watch").description("Wait on upstream movement for the current branch");
|
|
2407
|
+
registerWatchWait(watchCommand);
|
|
2408
|
+
internalCommand(
|
|
2409
|
+
watchCommand.command("loop").description(
|
|
2410
|
+
"Run assist watch wait --pull --build as a fresh child per lap, relaunching after exit 0, 2 or 4 or a signal kill, and exit with the child's code on 1, 3 or 130"
|
|
2411
|
+
).action(lazyAction(() => import("./watchLoop-MV7DVGC6.js"), "watchLoop")),
|
|
2412
|
+
"debugging auto-update"
|
|
2413
|
+
);
|
|
2414
|
+
internalCommand(
|
|
2415
|
+
watchCommand.command("simulate-divergence").description(
|
|
2416
|
+
"Make the next assist watch wait poll in this repo exit 3 as if the branch had diverged, to test the watcher's divergence escalation"
|
|
2417
|
+
).action(
|
|
2418
|
+
lazyAction(
|
|
2419
|
+
() => import("./simulateDivergence-VB4UL4UR.js"),
|
|
2420
|
+
"simulateDivergence"
|
|
2421
|
+
)
|
|
2422
|
+
),
|
|
2423
|
+
"debugging auto-update"
|
|
2424
|
+
);
|
|
2425
|
+
internalCommand(
|
|
2426
|
+
watchCommand.command("report").description(
|
|
2427
|
+
"Print the built version, the last 10 commits as a markdown table, the restarts the new commits make necessary, and whether ~/.claude needs a sync"
|
|
2428
|
+
).option(
|
|
2429
|
+
"--from <sha>",
|
|
2430
|
+
"Mark commits reachable from HEAD but not <sha> as new, and derive the restart and sync advice from the files they changed"
|
|
2431
|
+
).action(
|
|
2432
|
+
async (options) => (await import("./watchReport-A4W7UOAJ.js")).watchReport(options)
|
|
2433
|
+
),
|
|
2434
|
+
"debugging auto-update"
|
|
2435
|
+
);
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
// src/commands/roam/registerRoam.ts
|
|
2439
|
+
function registerRoam(program) {
|
|
2440
|
+
const roamCommand = program.command("roam").description("Roam Research utilities");
|
|
2441
|
+
roamCommand.command("show-claude-code-icon").description("Forward Claude Code hook activity to Roam local API").action(
|
|
2442
|
+
lazyAction(() => import("./showClaudeCodeIcon-E4SAM3GN.js"), "showClaudeCodeIcon")
|
|
2443
|
+
);
|
|
2444
|
+
roamCommand.command("stop-claude-code-icon").description("Signal Claude Code session stop to Roam local API").action(
|
|
2445
|
+
lazyAction(() => import("./stopClaudeCodeIcon-P4AVHUOL.js"), "stopClaudeCodeIcon")
|
|
2446
|
+
);
|
|
2447
|
+
roamCommand.command("show-codex-icon").description("Forward Codex hook activity to Roam local API").action(lazyAction(() => import("./showCodexIcon-YUAKV4NI.js"), "showCodexIcon"));
|
|
2448
|
+
roamCommand.command("stop-codex-icon").description("Signal Codex session stop to Roam local API").action(lazyAction(() => import("./stopCodexIcon-7O6D2SEH.js"), "stopCodexIcon"));
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
// src/commands/run/runAddHelpText.ts
|
|
2452
|
+
var properties = [
|
|
2453
|
+
["name", "<name>", "what you type after assist run"],
|
|
2454
|
+
["command", "<command>", "executable to spawn"],
|
|
2455
|
+
["args", "[args...]", "static args appended to the command"],
|
|
2456
|
+
["cwd", "--cwd <dir>", "working directory, relative to the config file"],
|
|
2457
|
+
[
|
|
2458
|
+
"env",
|
|
2459
|
+
"--env KEY=VALUE",
|
|
2460
|
+
"environment variable for the command (repeatable)"
|
|
2461
|
+
],
|
|
2462
|
+
["server", "--server [group]", "singleton dev server, optionally grouped"],
|
|
2463
|
+
["port", "--port <port>", "display-only port on the serving card"],
|
|
2464
|
+
[
|
|
2465
|
+
"protocol",
|
|
2466
|
+
"--protocol <http|https>",
|
|
2467
|
+
"protocol of the serving card's port link (default: http)"
|
|
2468
|
+
],
|
|
2469
|
+
[
|
|
2470
|
+
"path",
|
|
2471
|
+
"--path <path>",
|
|
2472
|
+
"path of the serving card's port link, e.g. /swagger (default: /)"
|
|
2473
|
+
],
|
|
2474
|
+
[
|
|
2475
|
+
"pre",
|
|
2476
|
+
"--pre <command>",
|
|
2477
|
+
"shell command run before this one (repeatable, runs in order)"
|
|
2478
|
+
],
|
|
2479
|
+
[
|
|
2480
|
+
"filter",
|
|
2481
|
+
"--filter <glob>",
|
|
2482
|
+
"verify: entries only run when a changed file matches this glob"
|
|
2483
|
+
],
|
|
2484
|
+
["quiet", "--quiet", "suppress the command's output unless it fails"],
|
|
2485
|
+
[
|
|
2486
|
+
"params",
|
|
2487
|
+
"--param <spec>",
|
|
2488
|
+
"positional param filled from assist run args (repeatable, see below)"
|
|
2489
|
+
]
|
|
2490
|
+
];
|
|
2491
|
+
var width = Math.max(...properties.map(([key]) => key.length));
|
|
2492
|
+
var flagWidth = Math.max(...properties.map(([, flag]) => flag.length));
|
|
2493
|
+
var runAddHelpText = [
|
|
2494
|
+
"",
|
|
2495
|
+
"Run entry properties:",
|
|
2496
|
+
...properties.map(
|
|
2497
|
+
([key, flag, note]) => ` ${key.padEnd(width)} ${flag.padEnd(flagWidth)} ${note}`
|
|
2498
|
+
),
|
|
2499
|
+
"",
|
|
2500
|
+
'The command is spawned without a shell, so "FOO=bar cmd", "&&", pipes and redirects do not work; use --env for environment variables and --pre for setup steps (--pre commands do run in a shell).',
|
|
2501
|
+
"",
|
|
2502
|
+
'Options go after <command>. --server and --repo take the next argument as their value unless it starts with "-", so put them last or before another option:',
|
|
2503
|
+
" assist run add dev npm run dev --env PORT=3000 --server --port 3000 --repo",
|
|
2504
|
+
"These flags are taken from anywhere after <command>; to pass one to the command itself, quote the whole command:",
|
|
2505
|
+
' assist run add build "pnpm --filter web build"',
|
|
2506
|
+
"",
|
|
2507
|
+
"--param <spec> appends params in order; each fills the next arg given to assist run:",
|
|
2508
|
+
" <name> optional, omitted when not given",
|
|
2509
|
+
" <name>! required, assist run fails when it is missing",
|
|
2510
|
+
" <name>=<default> used when not given",
|
|
2511
|
+
' assist run add deploy ./deploy.sh --param env! --param tag=latest # assist run deploy prod \u2192 "./deploy.sh prod latest"',
|
|
2512
|
+
"A param's description is set in config."
|
|
2513
|
+
].join("\n");
|
|
2514
|
+
|
|
2515
|
+
// src/commands/run/registerRunAdd.ts
|
|
2516
|
+
function registerRunAdd(runCommand) {
|
|
2517
|
+
runCommand.command("add").description(
|
|
2518
|
+
"Add a new run configuration to assist.yml, or with --repo to the shared db"
|
|
2519
|
+
).argument("<name>", "Name for the run configuration").argument("<command>", "Command to execute").argument("[args...]", "Static args to pass to the command").option(
|
|
2520
|
+
"--cwd <dir>",
|
|
2521
|
+
"Working directory (resolved relative to the config file)"
|
|
2522
|
+
).option(
|
|
2523
|
+
"--server [group]",
|
|
2524
|
+
"Mark as a singleton dev server, optionally in a named group (default group: default)"
|
|
2525
|
+
).option("--port <port>", "Display-only port shown on the serving card").option(
|
|
2526
|
+
"--protocol <http|https>",
|
|
2527
|
+
"Protocol for the serving card's port link (default: http)"
|
|
2528
|
+
).option(
|
|
2529
|
+
"--path <path>",
|
|
2530
|
+
"Path for the serving card's port link, e.g. /swagger (default: /)"
|
|
2531
|
+
).option(
|
|
2532
|
+
"--env <KEY=VALUE>",
|
|
2533
|
+
"Environment variable for the command (repeatable)"
|
|
2534
|
+
).option("--pre <command>", "Shell command run first (repeatable)").option(
|
|
2535
|
+
"--filter <glob>",
|
|
2536
|
+
"Only run a verify: entry when a changed file matches"
|
|
2537
|
+
).option("--quiet", "Suppress output unless the command fails").option(
|
|
2538
|
+
"--param <spec>",
|
|
2539
|
+
"Positional param: <name>, <name>! (required) or <name>=<default> (repeatable)"
|
|
2540
|
+
).option(
|
|
2541
|
+
"--repo [name]",
|
|
2542
|
+
"Write to a repo's override in the shared db, seen by every node, instead of assist.yml (defaults to the current repo; no command file is created)"
|
|
2543
|
+
).addHelpText("after", runAddHelpText).allowUnknownOption().allowExcessArguments().action(lazyAction(() => import("./add-QQQ472AZ.js"), "add"));
|
|
2544
|
+
}
|
|
2545
|
+
|
|
2546
|
+
// src/commands/run/registerRunSubcommands.ts
|
|
2547
|
+
function registerRunSubcommands(runCommand) {
|
|
2548
|
+
runCommand.command("list").description("List configured run commands").option("-v, --verbose", "Show full command details").action(
|
|
2549
|
+
async (opts) => (await import("./run-5GK74KHD.js")).listRunConfigs(!!opts.verbose)
|
|
2550
|
+
);
|
|
2551
|
+
registerRunAdd(runCommand);
|
|
2552
|
+
runCommand.command("link").description("Link run configurations from another project's assist.yml").argument("<path>", "Relative path to the linked project").requiredOption("--prefix <prefix>", "Namespace prefix for linked commands").allowUnknownOption().action(lazyAction(() => import("./link-LYQZULAX.js"), "link"));
|
|
2553
|
+
runCommand.command("remove").description(
|
|
2554
|
+
"Remove a run configuration from assist.yml, or with --repo from the shared db"
|
|
2555
|
+
).argument("<name>", "Name of the run configuration to remove").option(
|
|
2556
|
+
"--repo [name]",
|
|
2557
|
+
"Remove from a repo's override in the shared db instead of assist.yml (defaults to the current repo)"
|
|
2558
|
+
).action(lazyAction(() => import("./remove-CSUOZRGT.js"), "remove"));
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
// src/commands/run/registerRun.ts
|
|
2562
|
+
function registerRun(program) {
|
|
2563
|
+
const runCommand = program.command("run").description("Run a configured command from assist.yml").argument("[name]", "Name of the configured command").argument("[args...]", "Arguments to pass to the command").allowUnknownOption().addHelpText(
|
|
2564
|
+
"after",
|
|
2565
|
+
"\nAn a-prefixed item id (e.g. a555) with no matching command is an alias for\n'assist backlog run <id>' (forwards --write/--no-write/-w)."
|
|
2566
|
+
);
|
|
2567
|
+
lazyHelpText(
|
|
2568
|
+
runCommand,
|
|
2569
|
+
async () => (await import("./formatConfiguredCommands-WI25I2JJ.js")).formatConfiguredCommands
|
|
2570
|
+
).action(lazyAction(() => import("./run-5GK74KHD.js"), "run"));
|
|
2571
|
+
configHelp(runCommand, runConfigHelp);
|
|
2572
|
+
registerRunSubcommands(runCommand);
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
// src/commands/sessions/daemon/registerDaemon.ts
|
|
2576
|
+
function registerDaemon(program) {
|
|
2577
|
+
const cmd = program.command("daemon").description("Long-lived daemon that owns web session PTYs");
|
|
2578
|
+
cmd.command("run").description(
|
|
2579
|
+
"Run the sessions daemon in the foreground (auto-spawned by assist sessions)"
|
|
2580
|
+
).action(lazyAction(() => import("./runDaemon-7VRQFO4S.js"), "runDaemon"));
|
|
2581
|
+
cmd.command("status").description(
|
|
2582
|
+
"Show sessions daemon status, live sessions, and any stray daemon processes"
|
|
2583
|
+
).action(lazyAction(() => import("./daemonStatus-YXGIS55D.js"), "daemonStatus"));
|
|
2584
|
+
cmd.command("stop").description(
|
|
2585
|
+
"Stop the sessions daemon; running claude sessions resume on next start"
|
|
2586
|
+
).action(lazyAction(() => import("./stopDaemon-XIYQ6SAW.js"), "stopDaemon"));
|
|
2587
|
+
cmd.command("restart").description(
|
|
2588
|
+
"Restart the sessions daemon, resuming previously running claude sessions"
|
|
2589
|
+
).action(lazyAction(() => import("./restartDaemon-YSKQMKEQ.js"), "restartDaemon"));
|
|
2590
|
+
cmd.command("drain").description(
|
|
2591
|
+
"Remove all sessions from the local daemon for a clean slate (does not affect the Windows daemon); prompts before closing live sessions, and a session holding unpushed work is stopped, not removed"
|
|
2592
|
+
).option("--yes", "Close live sessions without confirming").action(
|
|
2593
|
+
async (options) => (await import("./drainDaemon-LCQQ3EP4.js")).drainDaemon(options)
|
|
2594
|
+
);
|
|
2595
|
+
configHelp(cmd, autoUpdateConfigHelp);
|
|
2596
|
+
}
|
|
2597
|
+
|
|
2598
|
+
// src/commands/sessions/nodes/registerDiagnoseCommands.ts
|
|
2599
|
+
function registerDiagnoseCommands(nodes, calledBy5) {
|
|
2600
|
+
internalCommand(
|
|
2601
|
+
nodes.command("doctor [name]").description(
|
|
2602
|
+
"Probe each hop of every link (or one) in order and stop at the first failure with a remediation"
|
|
2603
|
+
).option("--json", "Output as JSON").action(
|
|
2604
|
+
async (name, _options, command) => (await import("./doctorNodes-JJ2EIU36.js")).doctorNodes(
|
|
2605
|
+
name,
|
|
2606
|
+
command.optsWithGlobals()
|
|
2607
|
+
)
|
|
2608
|
+
),
|
|
2609
|
+
calledBy5
|
|
2610
|
+
);
|
|
2611
|
+
internalCommand(
|
|
2612
|
+
nodes.command("logs <name>").description("Tail a linked node's daemon.log through its web server").option("-n, --lines <lines>", "Number of lines", "200").option("--json", "Output as JSON").action(
|
|
2613
|
+
async (name, _options, command) => (await import("./nodeLogs-NNLS5TNI.js")).nodeLogs(name, command.optsWithGlobals())
|
|
2614
|
+
),
|
|
2615
|
+
calledBy5
|
|
2616
|
+
);
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
// src/commands/sessions/nodes/registerLinkCommand.ts
|
|
2620
|
+
function registerLinkCommand(nodes) {
|
|
2621
|
+
return nodes.command("link <name> [url]").description(
|
|
2622
|
+
"Link a peer node by its web server URL or by its Tailscale name with --tailscale and --port (name must match the peer's sessions.nodeName)"
|
|
2623
|
+
).option(
|
|
2624
|
+
"--tailscale <host>",
|
|
2625
|
+
"Dial the peer at https://<host>.<tailnet>.ts.net:<port> (the peer runs tailscale serve for its web server port)"
|
|
2626
|
+
).option("--port <port>", "The peer's web server port (with --tailscale)").action(lazyAction(() => import("./linkNode-IZ7TMIBN.js"), "linkNode"));
|
|
2627
|
+
}
|
|
2628
|
+
|
|
2629
|
+
// src/commands/sessions/nodes/registerPeerActionCommands.ts
|
|
2630
|
+
function registerPeerActionCommands(nodes, calledBy5) {
|
|
2631
|
+
internalCommand(
|
|
2632
|
+
nodes.command("restart <name>").description(
|
|
2633
|
+
"Restart a linked node's daemon and/or web server, wait for its link to reconnect and print its version"
|
|
2634
|
+
).option("--target <target>", "daemon, webserver or both", "both").action(lazyAction(() => import("./restartNode-AAKYY7RP.js"), "restartNode")),
|
|
2635
|
+
calledBy5
|
|
2636
|
+
);
|
|
2637
|
+
internalCommand(
|
|
2638
|
+
nodes.command("update <name>").description(
|
|
2639
|
+
"Run assist update on a linked node, restart it, wait for its link to reconnect and print its version"
|
|
2640
|
+
).action(
|
|
2641
|
+
async (name) => (await import("./updateNode-FC4VXOHB.js")).updateNode(name)
|
|
2642
|
+
),
|
|
2643
|
+
calledBy5
|
|
2644
|
+
);
|
|
2645
|
+
}
|
|
2646
|
+
|
|
2647
|
+
// src/commands/sessions/nodes/registerNodes.ts
|
|
2648
|
+
var calledBy4 = "agents managing linked nodes";
|
|
2649
|
+
function registerNodes(sessions) {
|
|
2650
|
+
const cmd = internalCommand(
|
|
2651
|
+
sessions.command("nodes").description("List this node and every linked node with its link state").option("--json", "Output as JSON").action(lazyAction(() => import("./listNodes-HNKK3LEQ.js"), "listNodes")),
|
|
2652
|
+
calledBy4
|
|
2653
|
+
);
|
|
2654
|
+
internalCommand(registerLinkCommand(cmd), calledBy4);
|
|
2655
|
+
internalCommand(
|
|
2656
|
+
cmd.command("unlink <name>").description("Remove a linked node").action(lazyAction(() => import("./unlinkNode-O7IZD5BN.js"), "unlinkNode")),
|
|
2657
|
+
calledBy4
|
|
2658
|
+
);
|
|
2659
|
+
registerDiagnoseCommands(cmd, calledBy4);
|
|
2660
|
+
registerPeerActionCommands(cmd, calledBy4);
|
|
2661
|
+
configHelp(cmd, nodesConfigHelp);
|
|
2662
|
+
}
|
|
2663
|
+
|
|
2664
|
+
// src/commands/sessions/registerOutputCommand.ts
|
|
2665
|
+
function registerOutputCommand(cmd) {
|
|
2666
|
+
internalCommand(
|
|
2667
|
+
cmd.command("output").argument(
|
|
2668
|
+
"[session-id]",
|
|
2669
|
+
"Local session id, or <node>:<id> for a session on a linked node (read over the node link)"
|
|
2670
|
+
).description(
|
|
2671
|
+
"Print a snapshot of a session's output with ANSI codes stripped"
|
|
2672
|
+
).option("-n, --lines <count>", "Number of lines", "200").option(
|
|
2673
|
+
"--server [group]",
|
|
2674
|
+
"Read the live server run for this repo's remote and group (default: default)"
|
|
2675
|
+
).action(lazyAction(() => import("./sessionOutput-NXHUXIKC.js"), "sessionOutput")),
|
|
2676
|
+
"/run-logs"
|
|
2677
|
+
);
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
// src/commands/sessions/registerSetStatusCommand.ts
|
|
2681
|
+
function registerSetStatusCommand(cmd) {
|
|
2682
|
+
internalCommand(
|
|
2683
|
+
cmd.command("set-status <status>").description(
|
|
2684
|
+
"Report the current session's status to the sessions daemon (used by Claude Code and Codex hooks)"
|
|
2685
|
+
).option(
|
|
2686
|
+
"--source <source>",
|
|
2687
|
+
"Originating hook (permission, stop, notification, prompt, pretool, posttool)"
|
|
2688
|
+
).option(
|
|
2689
|
+
"--ack",
|
|
2690
|
+
"Retry delivery until the daemon acknowledges it (without it, a single attempt)"
|
|
2691
|
+
).action(
|
|
2692
|
+
async (status, options) => (await import("./setSessionStatus-HPHBUHVB.js")).setSessionStatus(status, {
|
|
2693
|
+
source: options.source,
|
|
2694
|
+
ack: options.ack
|
|
2695
|
+
})
|
|
2696
|
+
),
|
|
2697
|
+
"Claude and Codex hooks"
|
|
2698
|
+
);
|
|
2699
|
+
}
|
|
2700
|
+
|
|
2701
|
+
// src/commands/sessions/registerSessionsWeb.ts
|
|
2702
|
+
function registerSessionsWeb(cmd) {
|
|
2703
|
+
const webCmd = cmd.command("web").description("Start the sessions web dashboard").option("-p, --port <number>", "Port to listen on", "3100").option("--no-open", "Do not open a browser on startup").action(
|
|
2704
|
+
async (options, command) => (await import("./web-6YNOCOEQ.js")).web({
|
|
2705
|
+
...options,
|
|
2706
|
+
open: command.optsWithGlobals().open
|
|
2707
|
+
})
|
|
2708
|
+
);
|
|
2709
|
+
configHelp(webCmd, [
|
|
2710
|
+
...nextConfigHelp,
|
|
2711
|
+
...webConfigHelp,
|
|
2712
|
+
...hotkeysConfigHelp
|
|
2713
|
+
]);
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
// src/commands/sessions/registerSessions.ts
|
|
2717
|
+
function registerSessions(program) {
|
|
2718
|
+
const cmd = program.command("sessions").description("Web dashboard for coding agent sessions").option("--no-open", "Do not open a browser on startup").action(
|
|
2719
|
+
async (_options, command) => (await import("./web-6YNOCOEQ.js")).web({
|
|
2720
|
+
port: "3100",
|
|
2721
|
+
open: command.optsWithGlobals().open
|
|
2722
|
+
})
|
|
2723
|
+
);
|
|
2724
|
+
registerSessionsWeb(cmd);
|
|
2725
|
+
internalCommand(
|
|
2726
|
+
cmd.command("close").description(
|
|
2727
|
+
"Dismiss the current daemon-managed session, ending it and reaping its worktree"
|
|
2728
|
+
).action(lazyAction(() => import("./closeSession-I2J2ICU4.js"), "closeSession")),
|
|
2729
|
+
"/close"
|
|
2730
|
+
);
|
|
2731
|
+
internalCommand(
|
|
2732
|
+
cmd.command("rename <title>").description(
|
|
2733
|
+
"Retitle the current daemon-managed session, overriding the generated title for the rest of its life"
|
|
2734
|
+
).action(lazyAction(() => import("./renameSession-IQ6RHQUJ.js"), "renameSession")),
|
|
2735
|
+
"/rename"
|
|
2736
|
+
);
|
|
2737
|
+
registerOutputCommand(cmd);
|
|
2738
|
+
registerSetStatusCommand(cmd);
|
|
2739
|
+
registerNodes(cmd);
|
|
2740
|
+
configHelp(cmd, [...sessionsConfigHelp, ...harnessDefaultsConfigHelp]);
|
|
2741
|
+
}
|
|
2742
|
+
|
|
2743
|
+
// src/programRegistrars.ts
|
|
2744
|
+
var programRegistrars = [
|
|
2745
|
+
registerSync,
|
|
2746
|
+
registerRootCommands,
|
|
2747
|
+
registerCommit,
|
|
2748
|
+
registerConfig,
|
|
2749
|
+
registerRun,
|
|
2750
|
+
registerNew,
|
|
2751
|
+
registerActivity,
|
|
2752
|
+
registerAdvise,
|
|
2753
|
+
registerBackup,
|
|
2754
|
+
registerChart,
|
|
2755
|
+
registerDb,
|
|
2756
|
+
registerSchema,
|
|
2757
|
+
registerCliHook,
|
|
2758
|
+
registerCodeComment,
|
|
2759
|
+
registerCodexHook,
|
|
2760
|
+
registerPiHook,
|
|
2761
|
+
registerEditHook,
|
|
2762
|
+
registerGithub,
|
|
2763
|
+
registerInbox,
|
|
2764
|
+
registerJira,
|
|
2765
|
+
registerMermaid,
|
|
2766
|
+
registerMiro,
|
|
2767
|
+
registerPrs,
|
|
2768
|
+
registerReadTime,
|
|
2769
|
+
registerReleases,
|
|
2770
|
+
registerRoam,
|
|
2771
|
+
registerBacklog,
|
|
2772
|
+
registerBranch,
|
|
2773
|
+
registerList,
|
|
2774
|
+
registerVerify,
|
|
2775
|
+
registerRefactor,
|
|
2776
|
+
registerReview,
|
|
2777
|
+
registerRules,
|
|
2778
|
+
registerDevlog,
|
|
2779
|
+
registerDocs,
|
|
2780
|
+
registerDeploy,
|
|
2781
|
+
registerComplexity,
|
|
2782
|
+
registerDotnet,
|
|
2783
|
+
registerNews,
|
|
2784
|
+
registerNetcap,
|
|
2785
|
+
registerExtension,
|
|
2786
|
+
registerBrowser,
|
|
2787
|
+
registerLitellm,
|
|
2788
|
+
registerRavendb,
|
|
2789
|
+
registerSeq,
|
|
2790
|
+
registerShow,
|
|
2791
|
+
registerAsk,
|
|
2792
|
+
registerAskQuestion,
|
|
2793
|
+
registerAskCheck,
|
|
2794
|
+
registerAskDesign,
|
|
2795
|
+
registerSlack,
|
|
2796
|
+
registerSql,
|
|
2797
|
+
registerTestflight,
|
|
2798
|
+
registerTranscript,
|
|
2799
|
+
registerWatch,
|
|
2800
|
+
registerSessions,
|
|
2801
|
+
registerDaemon,
|
|
2802
|
+
registerPrompts,
|
|
2803
|
+
registerDeny,
|
|
2804
|
+
registerLaunch,
|
|
2805
|
+
registerSignal
|
|
2806
|
+
];
|
|
2807
|
+
|
|
2808
|
+
// src/createProgram.ts
|
|
2809
|
+
function createProgram() {
|
|
2810
|
+
const program = new Command();
|
|
2811
|
+
program.name("assist").description("CLI application").version(package_default.version);
|
|
2812
|
+
registerRootAction(program);
|
|
2813
|
+
for (const register of programRegistrars) register(program);
|
|
2814
|
+
return program;
|
|
2815
|
+
}
|
|
2816
|
+
|
|
2817
|
+
// src/shared/isHelpRequested.ts
|
|
2818
|
+
var HELP_ARGS = /* @__PURE__ */ new Set(["-h", "--help", "help"]);
|
|
2819
|
+
function isHelpRequested(args) {
|
|
2820
|
+
return args.some((arg) => HELP_ARGS.has(arg));
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
// src/runCli.ts
|
|
2824
|
+
async function parse() {
|
|
2825
|
+
const program = createProgram();
|
|
2826
|
+
if (isHelpRequested(process.argv.slice(2))) await preloadHelpText();
|
|
2827
|
+
await program.parseAsync();
|
|
2828
|
+
}
|
|
2829
|
+
function runCli() {
|
|
2830
|
+
return parse().catch(async (error) => {
|
|
2831
|
+
const { reportCliError } = await import("./reportCliError-6UDOLAIT.js");
|
|
2832
|
+
reportCliError(error);
|
|
2833
|
+
}).finally(() => loadedDb.close?.());
|
|
2834
|
+
}
|
|
2835
|
+
|
|
2836
|
+
// src/index.ts
|
|
2837
|
+
await runCli();
|