@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
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createPool,
|
|
3
|
+
pgExecutor
|
|
4
|
+
} from "./chunk-LMUTL44M.js";
|
|
5
|
+
import {
|
|
6
|
+
toDatabaseConnectionError
|
|
7
|
+
} from "./chunk-6NDXAN45.js";
|
|
8
|
+
|
|
9
|
+
// src/commands/db/withPool.ts
|
|
10
|
+
async function withPool(fn) {
|
|
11
|
+
const pool = createPool();
|
|
12
|
+
try {
|
|
13
|
+
await fn(pgExecutor(pool));
|
|
14
|
+
} catch (error) {
|
|
15
|
+
throw toDatabaseConnectionError(error);
|
|
16
|
+
} finally {
|
|
17
|
+
await pool.end();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
withPool
|
|
23
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// src/shared/runGhOrThrow.ts
|
|
2
|
+
import { execFileSync } from "child_process";
|
|
3
|
+
function runGhOrThrow(args, fallbackMessage, input) {
|
|
4
|
+
try {
|
|
5
|
+
execFileSync("gh", args, {
|
|
6
|
+
stdio: [input === void 0 ? "ignore" : "pipe", "ignore", "pipe"],
|
|
7
|
+
encoding: "utf8",
|
|
8
|
+
...input === void 0 ? {} : { input }
|
|
9
|
+
});
|
|
10
|
+
} catch (error) {
|
|
11
|
+
const stderr = error.stderr;
|
|
12
|
+
throw new Error(
|
|
13
|
+
typeof stderr === "string" && stderr.trim() ? stderr.trim() : fallbackMessage
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
runGhOrThrow
|
|
20
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
feeds,
|
|
3
|
+
listFeeds
|
|
4
|
+
} from "./chunk-PD2BTMEY.js";
|
|
5
|
+
|
|
6
|
+
// src/commands/backlog/replaceFeeds.ts
|
|
7
|
+
async function replaceFeeds(db, urls) {
|
|
8
|
+
const unique = [...new Set(urls)];
|
|
9
|
+
await db.transaction(async (tx) => {
|
|
10
|
+
await tx.delete(feeds);
|
|
11
|
+
if (unique.length > 0)
|
|
12
|
+
await tx.insert(feeds).values(unique.map((url) => ({ url })));
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// src/commands/config/dbBackedConfigKeys.ts
|
|
17
|
+
var newsFeeds = {
|
|
18
|
+
read: async (db) => {
|
|
19
|
+
const urls = await listFeeds(db);
|
|
20
|
+
return urls.length > 0 ? urls : void 0;
|
|
21
|
+
},
|
|
22
|
+
write: (db, value) => replaceFeeds(db, value),
|
|
23
|
+
unset: async (db) => {
|
|
24
|
+
const had = (await listFeeds(db)).length > 0;
|
|
25
|
+
await replaceFeeds(db, []);
|
|
26
|
+
return had;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
var dbBackedConfigKeys = {
|
|
30
|
+
"news.feeds": newsFeeds
|
|
31
|
+
};
|
|
32
|
+
function isDbBackedConfigKey(key) {
|
|
33
|
+
return Object.hasOwn(dbBackedConfigKeys, key);
|
|
34
|
+
}
|
|
35
|
+
function dbBackedRepoError(key) {
|
|
36
|
+
return `"${key}" is stored in user (db) and shared by every repo; drop --repo`;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
dbBackedConfigKeys,
|
|
41
|
+
isDbBackedConfigKey,
|
|
42
|
+
dbBackedRepoError
|
|
43
|
+
};
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import {
|
|
2
|
+
walkSourceFiles
|
|
3
|
+
} from "./chunk-NBADZOXB.js";
|
|
4
|
+
import {
|
|
5
|
+
loadConfig
|
|
6
|
+
} from "./chunk-KGFZYUE2.js";
|
|
7
|
+
|
|
8
|
+
// src/commands/complexity/findSourceFiles.ts
|
|
9
|
+
import fs from "fs";
|
|
10
|
+
import { minimatch } from "minimatch";
|
|
11
|
+
function applyIgnoreGlobs(files, extraIgnore = []) {
|
|
12
|
+
const { complexity } = loadConfig();
|
|
13
|
+
const ignore = [...complexity.ignore, ...extraIgnore];
|
|
14
|
+
return files.filter((f) => !ignore.some((glob) => minimatch(f, glob)));
|
|
15
|
+
}
|
|
16
|
+
function findSourceFiles(pattern, baseDir = ".", extraIgnore = []) {
|
|
17
|
+
const results = [];
|
|
18
|
+
if (pattern.includes("*")) {
|
|
19
|
+
walkSourceFiles(baseDir, results);
|
|
20
|
+
return applyIgnoreGlobs(
|
|
21
|
+
results.filter((f) => minimatch(f, pattern)),
|
|
22
|
+
extraIgnore
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
if (fs.existsSync(pattern) && fs.statSync(pattern).isFile()) {
|
|
26
|
+
return [pattern];
|
|
27
|
+
}
|
|
28
|
+
if (fs.existsSync(pattern) && fs.statSync(pattern).isDirectory()) {
|
|
29
|
+
walkSourceFiles(pattern, results);
|
|
30
|
+
return applyIgnoreGlobs(results, extraIgnore);
|
|
31
|
+
}
|
|
32
|
+
walkSourceFiles(baseDir, results);
|
|
33
|
+
return applyIgnoreGlobs(
|
|
34
|
+
results.filter((f) => minimatch(f, pattern)),
|
|
35
|
+
extraIgnore
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// src/commands/complexity/shared/calculateCyclomaticComplexity.ts
|
|
40
|
+
import ts from "typescript";
|
|
41
|
+
var complexityKinds = /* @__PURE__ */ new Set([
|
|
42
|
+
ts.SyntaxKind.IfStatement,
|
|
43
|
+
ts.SyntaxKind.ForStatement,
|
|
44
|
+
ts.SyntaxKind.ForInStatement,
|
|
45
|
+
ts.SyntaxKind.ForOfStatement,
|
|
46
|
+
ts.SyntaxKind.WhileStatement,
|
|
47
|
+
ts.SyntaxKind.DoStatement,
|
|
48
|
+
ts.SyntaxKind.CaseClause,
|
|
49
|
+
ts.SyntaxKind.CatchClause,
|
|
50
|
+
ts.SyntaxKind.ConditionalExpression
|
|
51
|
+
]);
|
|
52
|
+
var logicalOperators = /* @__PURE__ */ new Set([
|
|
53
|
+
ts.SyntaxKind.AmpersandAmpersandToken,
|
|
54
|
+
ts.SyntaxKind.BarBarToken,
|
|
55
|
+
ts.SyntaxKind.QuestionQuestionToken
|
|
56
|
+
]);
|
|
57
|
+
function calculateCyclomaticComplexity(node) {
|
|
58
|
+
let complexity = 1;
|
|
59
|
+
function visit(n) {
|
|
60
|
+
if (complexityKinds.has(n.kind)) {
|
|
61
|
+
complexity++;
|
|
62
|
+
} else if (ts.isBinaryExpression(n) && logicalOperators.has(n.operatorToken.kind)) {
|
|
63
|
+
complexity++;
|
|
64
|
+
}
|
|
65
|
+
ts.forEachChild(n, visit);
|
|
66
|
+
}
|
|
67
|
+
ts.forEachChild(node, visit);
|
|
68
|
+
return complexity;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// src/commands/complexity/shared/calculateHalstead.ts
|
|
72
|
+
import ts3 from "typescript";
|
|
73
|
+
|
|
74
|
+
// src/commands/complexity/shared/calculateHalstead/operatorChecks.ts
|
|
75
|
+
import ts2 from "typescript";
|
|
76
|
+
var operatorChecks = [
|
|
77
|
+
(n) => ts2.isBinaryExpression(n) ? n.operatorToken.getText() : void 0,
|
|
78
|
+
(n) => ts2.isPrefixUnaryExpression(n) || ts2.isPostfixUnaryExpression(n) ? ts2.tokenToString(n.operator) ?? "" : void 0,
|
|
79
|
+
(n) => ts2.isCallExpression(n) ? "()" : void 0,
|
|
80
|
+
(n) => ts2.isPropertyAccessExpression(n) ? "." : void 0,
|
|
81
|
+
(n) => ts2.isElementAccessExpression(n) ? "[]" : void 0,
|
|
82
|
+
(n) => ts2.isConditionalExpression(n) ? "?:" : void 0,
|
|
83
|
+
(n) => ts2.isReturnStatement(n) ? "return" : void 0,
|
|
84
|
+
(n) => ts2.isIfStatement(n) ? "if" : void 0,
|
|
85
|
+
(n) => ts2.isForStatement(n) || ts2.isForInStatement(n) || ts2.isForOfStatement(n) ? "for" : void 0,
|
|
86
|
+
(n) => ts2.isWhileStatement(n) ? "while" : void 0,
|
|
87
|
+
(n) => ts2.isDoStatement(n) ? "do" : void 0,
|
|
88
|
+
(n) => ts2.isSwitchStatement(n) ? "switch" : void 0,
|
|
89
|
+
(n) => ts2.isCaseClause(n) ? "case" : void 0,
|
|
90
|
+
(n) => ts2.isDefaultClause(n) ? "default" : void 0,
|
|
91
|
+
(n) => ts2.isBreakStatement(n) ? "break" : void 0,
|
|
92
|
+
(n) => ts2.isContinueStatement(n) ? "continue" : void 0,
|
|
93
|
+
(n) => ts2.isThrowStatement(n) ? "throw" : void 0,
|
|
94
|
+
(n) => ts2.isTryStatement(n) ? "try" : void 0,
|
|
95
|
+
(n) => ts2.isCatchClause(n) ? "catch" : void 0,
|
|
96
|
+
(n) => ts2.isNewExpression(n) ? "new" : void 0,
|
|
97
|
+
(n) => ts2.isTypeOfExpression(n) ? "typeof" : void 0,
|
|
98
|
+
(n) => ts2.isAwaitExpression(n) ? "await" : void 0
|
|
99
|
+
];
|
|
100
|
+
|
|
101
|
+
// src/commands/complexity/shared/calculateHalstead.ts
|
|
102
|
+
function classifyNode(n, operators, operands) {
|
|
103
|
+
if (ts3.isIdentifier(n) || ts3.isNumericLiteral(n) || ts3.isStringLiteral(n)) {
|
|
104
|
+
operands.set(n.text, (operands.get(n.text) ?? 0) + 1);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
for (const check of operatorChecks) {
|
|
108
|
+
const op = check(n);
|
|
109
|
+
if (op !== void 0) {
|
|
110
|
+
operators.set(op, (operators.get(op) ?? 0) + 1);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
function computeHalsteadMetrics(operators, operands) {
|
|
116
|
+
const n1 = operators.size;
|
|
117
|
+
const n2 = operands.size;
|
|
118
|
+
const N1 = Array.from(operators.values()).reduce((a, b) => a + b, 0);
|
|
119
|
+
const N2 = Array.from(operands.values()).reduce((a, b) => a + b, 0);
|
|
120
|
+
const vocabulary = n1 + n2;
|
|
121
|
+
const length = N1 + N2;
|
|
122
|
+
const volume = length > 0 && vocabulary > 0 ? length * Math.log2(vocabulary) : 0;
|
|
123
|
+
const difficulty = n2 > 0 ? n1 / 2 * (N2 / n2) : 0;
|
|
124
|
+
const effort = volume * difficulty;
|
|
125
|
+
return {
|
|
126
|
+
length,
|
|
127
|
+
vocabulary,
|
|
128
|
+
volume,
|
|
129
|
+
difficulty,
|
|
130
|
+
effort,
|
|
131
|
+
time: effort / 18,
|
|
132
|
+
bugsDelivered: volume / 3e3
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function calculateHalstead(node) {
|
|
136
|
+
const operators = /* @__PURE__ */ new Map();
|
|
137
|
+
const operands = /* @__PURE__ */ new Map();
|
|
138
|
+
function visit(n) {
|
|
139
|
+
classifyNode(n, operators, operands);
|
|
140
|
+
ts3.forEachChild(n, visit);
|
|
141
|
+
}
|
|
142
|
+
ts3.forEachChild(node, visit);
|
|
143
|
+
return computeHalsteadMetrics(operators, operands);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// src/commands/complexity/shared/countSloc.ts
|
|
147
|
+
function countSloc(content) {
|
|
148
|
+
let inMultiLineComment = false;
|
|
149
|
+
let count = 0;
|
|
150
|
+
for (const line of content.split("\n")) {
|
|
151
|
+
const trimmed = line.trim();
|
|
152
|
+
if (inMultiLineComment) {
|
|
153
|
+
if (trimmed.includes("*/")) {
|
|
154
|
+
inMultiLineComment = false;
|
|
155
|
+
const afterComment = trimmed.substring(trimmed.indexOf("*/") + 2);
|
|
156
|
+
if (afterComment.trim().length > 0) {
|
|
157
|
+
count++;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
continue;
|
|
161
|
+
}
|
|
162
|
+
if (trimmed.startsWith("//")) {
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
if (trimmed.startsWith("/*")) {
|
|
166
|
+
if (trimmed.includes("*/")) {
|
|
167
|
+
const afterComment = trimmed.substring(trimmed.indexOf("*/") + 2);
|
|
168
|
+
if (afterComment.trim().length > 0) {
|
|
169
|
+
count++;
|
|
170
|
+
}
|
|
171
|
+
} else {
|
|
172
|
+
inMultiLineComment = true;
|
|
173
|
+
}
|
|
174
|
+
continue;
|
|
175
|
+
}
|
|
176
|
+
if (trimmed.length > 0) {
|
|
177
|
+
count++;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return count;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// src/commands/complexity/shared.ts
|
|
184
|
+
import fs2 from "fs";
|
|
185
|
+
import path from "path";
|
|
186
|
+
import chalk from "chalk";
|
|
187
|
+
import ts5 from "typescript";
|
|
188
|
+
|
|
189
|
+
// src/commands/complexity/shared/getNodeName.ts
|
|
190
|
+
import ts4 from "typescript";
|
|
191
|
+
var FUNCTION_TYPE_CHECKS = [
|
|
192
|
+
ts4.isFunctionDeclaration,
|
|
193
|
+
ts4.isFunctionExpression,
|
|
194
|
+
ts4.isArrowFunction,
|
|
195
|
+
ts4.isMethodDeclaration,
|
|
196
|
+
ts4.isGetAccessor,
|
|
197
|
+
ts4.isSetAccessor,
|
|
198
|
+
ts4.isConstructorDeclaration
|
|
199
|
+
];
|
|
200
|
+
function getIdentifierText(name) {
|
|
201
|
+
if (ts4.isIdentifier(name) || ts4.isStringLiteral(name)) return name.text;
|
|
202
|
+
return "<computed>";
|
|
203
|
+
}
|
|
204
|
+
function getArrowFunctionName(node) {
|
|
205
|
+
const { parent } = node;
|
|
206
|
+
if (ts4.isVariableDeclaration(parent) && ts4.isIdentifier(parent.name))
|
|
207
|
+
return parent.name.text;
|
|
208
|
+
if (ts4.isPropertyAssignment(parent) && ts4.isIdentifier(parent.name))
|
|
209
|
+
return parent.name.text;
|
|
210
|
+
return "<arrow>";
|
|
211
|
+
}
|
|
212
|
+
function getNodeName(node) {
|
|
213
|
+
if (ts4.isFunctionDeclaration(node) || ts4.isFunctionExpression(node))
|
|
214
|
+
return node.name?.text ?? "<anonymous>";
|
|
215
|
+
if (ts4.isMethodDeclaration(node) || ts4.isMethodSignature(node))
|
|
216
|
+
return getIdentifierText(node.name);
|
|
217
|
+
if (ts4.isArrowFunction(node)) return getArrowFunctionName(node);
|
|
218
|
+
if (ts4.isGetAccessor(node) || ts4.isSetAccessor(node)) {
|
|
219
|
+
const prefix = ts4.isGetAccessor(node) ? "get " : "set ";
|
|
220
|
+
return `${prefix}${getIdentifierText(node.name)}`;
|
|
221
|
+
}
|
|
222
|
+
if (ts4.isConstructorDeclaration(node)) return "constructor";
|
|
223
|
+
return "<unknown>";
|
|
224
|
+
}
|
|
225
|
+
function hasFunctionBody(node) {
|
|
226
|
+
if (!FUNCTION_TYPE_CHECKS.some((check) => check(node))) return false;
|
|
227
|
+
return node.body !== void 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// src/commands/complexity/shared.ts
|
|
231
|
+
function createSourceFromFile(filePath) {
|
|
232
|
+
const content = fs2.readFileSync(filePath, "utf8");
|
|
233
|
+
return ts5.createSourceFile(
|
|
234
|
+
path.basename(filePath),
|
|
235
|
+
content,
|
|
236
|
+
ts5.ScriptTarget.Latest,
|
|
237
|
+
true,
|
|
238
|
+
filePath.endsWith(".tsx") ? ts5.ScriptKind.TSX : ts5.ScriptKind.TS
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
function withSourceFiles(pattern, callback, extraIgnore = []) {
|
|
242
|
+
const files = findSourceFiles(pattern, ".", extraIgnore);
|
|
243
|
+
if (files.length === 0) {
|
|
244
|
+
console.log(chalk.yellow("No files found matching pattern"));
|
|
245
|
+
return void 0;
|
|
246
|
+
}
|
|
247
|
+
return callback(files);
|
|
248
|
+
}
|
|
249
|
+
function forEachFunction(files, callback) {
|
|
250
|
+
for (const file of files) {
|
|
251
|
+
const sourceFile = createSourceFromFile(file);
|
|
252
|
+
const visit = (node) => {
|
|
253
|
+
if (hasFunctionBody(node)) {
|
|
254
|
+
callback(file, getNodeName(node), node);
|
|
255
|
+
}
|
|
256
|
+
ts5.forEachChild(node, visit);
|
|
257
|
+
};
|
|
258
|
+
visit(sourceFile);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export {
|
|
263
|
+
findSourceFiles,
|
|
264
|
+
calculateCyclomaticComplexity,
|
|
265
|
+
calculateHalstead,
|
|
266
|
+
countSloc,
|
|
267
|
+
withSourceFiles,
|
|
268
|
+
forEachFunction
|
|
269
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
tailscaleCli
|
|
3
|
+
} from "./chunk-DS2YJZZY.js";
|
|
4
|
+
|
|
5
|
+
// src/commands/sessions/nodes/parseLinkUrl.ts
|
|
6
|
+
function parseLinkUrl(url) {
|
|
7
|
+
const parsed = new URL(url);
|
|
8
|
+
if (parsed.protocol !== "http:" && parsed.protocol !== "https:")
|
|
9
|
+
throw new Error(`link url must be http(s): ${url}`);
|
|
10
|
+
return parsed.origin;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/commands/sessions/nodes/tailnetSuffix.ts
|
|
14
|
+
function tailnetSuffix(status) {
|
|
15
|
+
if (status.BackendState !== "Running")
|
|
16
|
+
throw new Error(
|
|
17
|
+
`Tailscale is not running on this node (${status.BackendState ?? "unknown state"}) \u2014 run \`${tailscaleCli()} up\``
|
|
18
|
+
);
|
|
19
|
+
const suffix = status.CurrentTailnet?.MagicDNSSuffix ?? status.MagicDNSSuffix ?? "";
|
|
20
|
+
if (status.CurrentTailnet?.MagicDNSEnabled === false || !suffix)
|
|
21
|
+
throw new Error(
|
|
22
|
+
"MagicDNS is off in this tailnet \u2014 turn on MagicDNS and HTTPS certificates on the DNS page of the Tailscale admin console"
|
|
23
|
+
);
|
|
24
|
+
return suffix.replace(/\.$/, "");
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
tailnetSuffix,
|
|
29
|
+
parseLinkUrl
|
|
30
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/commands/sessions/shared/readLogTail.ts
|
|
2
|
+
import { closeSync, fstatSync, openSync, readSync } from "fs";
|
|
3
|
+
var MAX_TAIL_BYTES = 4 * 1024 * 1024;
|
|
4
|
+
function completeLines(text, windowIsPartial) {
|
|
5
|
+
const all = text.split("\n");
|
|
6
|
+
if (all.at(-1) === "") all.pop();
|
|
7
|
+
if (windowIsPartial) all.shift();
|
|
8
|
+
return all;
|
|
9
|
+
}
|
|
10
|
+
function readLogTail(path, lines) {
|
|
11
|
+
let fd;
|
|
12
|
+
try {
|
|
13
|
+
fd = openSync(path, "r");
|
|
14
|
+
} catch {
|
|
15
|
+
return [];
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
const size = fstatSync(fd).size;
|
|
19
|
+
const length = Math.min(size, MAX_TAIL_BYTES);
|
|
20
|
+
const buffer = Buffer.alloc(length);
|
|
21
|
+
readSync(fd, buffer, 0, length, size - length);
|
|
22
|
+
return completeLines(buffer.toString("utf8"), length < size).slice(-lines);
|
|
23
|
+
} finally {
|
|
24
|
+
closeSync(fd);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
readLogTail
|
|
30
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// src/commands/refactor/extract/findTsConfig.ts
|
|
2
|
+
import fs2 from "fs";
|
|
3
|
+
import path2 from "path";
|
|
4
|
+
|
|
5
|
+
// src/commands/refactor/extract/findEnclosingTsConfig.ts
|
|
6
|
+
import fs from "fs";
|
|
7
|
+
import path from "path";
|
|
8
|
+
|
|
9
|
+
// src/commands/refactor/extract/projectIncludesFile.ts
|
|
10
|
+
import { Project } from "ts-morph";
|
|
11
|
+
function projectIncludesFile(configPath, sourcePath) {
|
|
12
|
+
try {
|
|
13
|
+
const project = new Project({ tsConfigFilePath: configPath });
|
|
14
|
+
return !!project.getSourceFile(sourcePath);
|
|
15
|
+
} catch {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// src/commands/refactor/extract/findEnclosingTsConfig.ts
|
|
21
|
+
function findEnclosingTsConfig(sourcePath, rootDir, tried) {
|
|
22
|
+
let dir = path.dirname(sourcePath);
|
|
23
|
+
while (dir.startsWith(rootDir + path.sep) && dir !== rootDir) {
|
|
24
|
+
const nested = path.join(dir, "tsconfig.json");
|
|
25
|
+
if (!tried.has(nested)) {
|
|
26
|
+
tried.add(nested);
|
|
27
|
+
if (fs.existsSync(nested) && projectIncludesFile(nested, sourcePath)) {
|
|
28
|
+
return nested;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const parent = path.dirname(dir);
|
|
32
|
+
if (parent === dir) break;
|
|
33
|
+
dir = parent;
|
|
34
|
+
}
|
|
35
|
+
return void 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// src/commands/refactor/extract/findTsConfig.ts
|
|
39
|
+
function findTsConfig(sourcePath) {
|
|
40
|
+
const rootConfig = path2.resolve("tsconfig.json");
|
|
41
|
+
if (!fs2.existsSync(rootConfig)) return rootConfig;
|
|
42
|
+
const tried = /* @__PURE__ */ new Set();
|
|
43
|
+
const candidates = [rootConfig, ...readReferences(rootConfig)];
|
|
44
|
+
for (const candidate of candidates) {
|
|
45
|
+
if (tried.has(candidate)) continue;
|
|
46
|
+
tried.add(candidate);
|
|
47
|
+
if (projectIncludesFile(candidate, sourcePath)) return candidate;
|
|
48
|
+
}
|
|
49
|
+
const siblings = fs2.readdirSync(path2.dirname(rootConfig)).filter((f) => /^tsconfig.*\.json$/.test(f)).map((f) => path2.resolve(path2.dirname(rootConfig), f));
|
|
50
|
+
for (const sibling of siblings) {
|
|
51
|
+
if (tried.has(sibling)) continue;
|
|
52
|
+
tried.add(sibling);
|
|
53
|
+
if (projectIncludesFile(sibling, sourcePath)) return sibling;
|
|
54
|
+
}
|
|
55
|
+
const nested = findEnclosingTsConfig(
|
|
56
|
+
sourcePath,
|
|
57
|
+
path2.dirname(rootConfig),
|
|
58
|
+
tried
|
|
59
|
+
);
|
|
60
|
+
if (nested) return nested;
|
|
61
|
+
return rootConfig;
|
|
62
|
+
}
|
|
63
|
+
function readReferences(configPath) {
|
|
64
|
+
if (!fs2.existsSync(configPath)) return [];
|
|
65
|
+
const raw = fs2.readFileSync(configPath, "utf8");
|
|
66
|
+
const stripped = raw.replace(/\/\/.*$/gm, "").replace(/\/\*[\s\S]*?\*\//g, "");
|
|
67
|
+
let parsed;
|
|
68
|
+
try {
|
|
69
|
+
parsed = JSON.parse(stripped);
|
|
70
|
+
} catch {
|
|
71
|
+
return [];
|
|
72
|
+
}
|
|
73
|
+
if (!parsed.references?.length) return [];
|
|
74
|
+
const cwd = path2.dirname(configPath);
|
|
75
|
+
return parsed.references.map((ref) => {
|
|
76
|
+
const refPath = path2.resolve(cwd, ref.path);
|
|
77
|
+
return fs2.statSync(refPath, { throwIfNoEntry: false })?.isDirectory() ? path2.join(refPath, "tsconfig.json") : refPath;
|
|
78
|
+
}).filter((p) => fs2.existsSync(p));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
findTsConfig
|
|
83
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/shared/db/retired/findRetiredTables.ts
|
|
2
|
+
var RETIRED_TABLES = ["handovers", "item_subtasks"];
|
|
3
|
+
async function findRetiredTables(exec) {
|
|
4
|
+
const present = await exec.query(
|
|
5
|
+
`SELECT table_name FROM information_schema.tables
|
|
6
|
+
WHERE table_schema = current_schema() AND table_name = ANY($1)
|
|
7
|
+
ORDER BY table_name`,
|
|
8
|
+
[RETIRED_TABLES]
|
|
9
|
+
);
|
|
10
|
+
const found = [];
|
|
11
|
+
for (const row of present) {
|
|
12
|
+
const name = String(row.table_name);
|
|
13
|
+
const [count] = await exec.query(
|
|
14
|
+
`SELECT count(*)::int AS rows FROM "${name}"`
|
|
15
|
+
);
|
|
16
|
+
found.push({ name, rows: Number(count.rows) });
|
|
17
|
+
}
|
|
18
|
+
return found;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
findRetiredTables
|
|
23
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
daemonPaths
|
|
3
|
+
} from "./chunk-IEK6CQQH.js";
|
|
4
|
+
|
|
5
|
+
// src/commands/sessions/daemon/readDaemonPidFile.ts
|
|
6
|
+
import { readFileSync } from "fs";
|
|
7
|
+
function readDaemonPidFile() {
|
|
8
|
+
try {
|
|
9
|
+
const pid = Number.parseInt(
|
|
10
|
+
readFileSync(daemonPaths.pid, "utf8").trim(),
|
|
11
|
+
10
|
|
12
|
+
);
|
|
13
|
+
return Number.isInteger(pid) ? pid : void 0;
|
|
14
|
+
} catch {
|
|
15
|
+
return void 0;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function isPidAlive(pid) {
|
|
19
|
+
try {
|
|
20
|
+
process.kill(pid, 0);
|
|
21
|
+
return true;
|
|
22
|
+
} catch (error) {
|
|
23
|
+
return error.code === "EPERM";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
readDaemonPidFile,
|
|
29
|
+
isPidAlive
|
|
30
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getRestrictedDir
|
|
3
|
+
} from "./chunk-ZMH7UZNP.js";
|
|
4
|
+
|
|
5
|
+
// src/commands/codeComment/sweepRestrictedDir.ts
|
|
6
|
+
import { readdirSync, statSync, unlinkSync } from "fs";
|
|
7
|
+
import { join } from "path";
|
|
8
|
+
var STALE_AFTER_MS = 30 * 60 * 1e3;
|
|
9
|
+
function sweepRestrictedDir(dir = getRestrictedDir()) {
|
|
10
|
+
let entries;
|
|
11
|
+
try {
|
|
12
|
+
entries = readdirSync(dir);
|
|
13
|
+
} catch {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
const cutoff = Date.now() - STALE_AFTER_MS;
|
|
17
|
+
for (const entry of entries) {
|
|
18
|
+
const path = join(dir, entry);
|
|
19
|
+
try {
|
|
20
|
+
if (statSync(path).mtimeMs < cutoff) unlinkSync(path);
|
|
21
|
+
} catch {
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
sweepRestrictedDir
|
|
29
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// src/commands/config/unsetNestedValue.ts
|
|
2
|
+
function isPlainObject(val) {
|
|
3
|
+
return val !== null && typeof val === "object" && !Array.isArray(val);
|
|
4
|
+
}
|
|
5
|
+
function isContainer(val) {
|
|
6
|
+
return Array.isArray(val) || isPlainObject(val);
|
|
7
|
+
}
|
|
8
|
+
function isNumericKey(key) {
|
|
9
|
+
return /^\d+$/.test(key);
|
|
10
|
+
}
|
|
11
|
+
function toIndex(key) {
|
|
12
|
+
return Number.parseInt(key, 10);
|
|
13
|
+
}
|
|
14
|
+
function hasKey(container, key) {
|
|
15
|
+
if (Array.isArray(container)) {
|
|
16
|
+
return isNumericKey(key) && toIndex(key) < container.length;
|
|
17
|
+
}
|
|
18
|
+
return Object.hasOwn(container, key);
|
|
19
|
+
}
|
|
20
|
+
function getItem(container, key) {
|
|
21
|
+
if (Array.isArray(container)) return container[toIndex(key)];
|
|
22
|
+
return container[key];
|
|
23
|
+
}
|
|
24
|
+
function withoutKey(container, key) {
|
|
25
|
+
if (Array.isArray(container)) {
|
|
26
|
+
const next = [...container];
|
|
27
|
+
next.splice(toIndex(key), 1);
|
|
28
|
+
return next;
|
|
29
|
+
}
|
|
30
|
+
const { [key]: _deleted, ...rest } = container;
|
|
31
|
+
return rest;
|
|
32
|
+
}
|
|
33
|
+
function withChild(container, key, child) {
|
|
34
|
+
if (Array.isArray(container)) {
|
|
35
|
+
const next = [...container];
|
|
36
|
+
next[toIndex(key)] = child;
|
|
37
|
+
return next;
|
|
38
|
+
}
|
|
39
|
+
return { ...container, [key]: child };
|
|
40
|
+
}
|
|
41
|
+
function isPrunable(container) {
|
|
42
|
+
return isPlainObject(container) && Object.keys(container).length === 0;
|
|
43
|
+
}
|
|
44
|
+
function replaceOrPrune(container, key, child) {
|
|
45
|
+
return isPrunable(child) ? withoutKey(container, key) : withChild(container, key, child);
|
|
46
|
+
}
|
|
47
|
+
function removeFromChild(container, key, rest) {
|
|
48
|
+
const child = getItem(container, key);
|
|
49
|
+
if (!isContainer(child)) return { container, removed: false };
|
|
50
|
+
const inner = removeAt(child, rest);
|
|
51
|
+
if (!inner.removed) return { container, removed: false };
|
|
52
|
+
return {
|
|
53
|
+
container: replaceOrPrune(container, key, inner.container),
|
|
54
|
+
removed: true
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function removeAt(container, keys) {
|
|
58
|
+
const [key, ...rest] = keys;
|
|
59
|
+
if (!hasKey(container, key)) return { container, removed: false };
|
|
60
|
+
if (rest.length === 0) {
|
|
61
|
+
return { container: withoutKey(container, key), removed: true };
|
|
62
|
+
}
|
|
63
|
+
return removeFromChild(container, key, rest);
|
|
64
|
+
}
|
|
65
|
+
function unsetNestedValue(obj, path) {
|
|
66
|
+
const { container, removed } = removeAt(obj, path.split("."));
|
|
67
|
+
return { config: container, removed };
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
unsetNestedValue
|
|
72
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveIssueRepoTarget
|
|
3
|
+
} from "./chunk-HCANRBFK.js";
|
|
4
|
+
|
|
5
|
+
// src/commands/github/issue/parseIssueTarget.ts
|
|
6
|
+
function parseIssueTarget(numberArg, repoOption, usage) {
|
|
7
|
+
const number = Number.parseInt(numberArg, 10);
|
|
8
|
+
if (!Number.isInteger(number) || number <= 0) {
|
|
9
|
+
console.error(usage);
|
|
10
|
+
process.exit(1);
|
|
11
|
+
}
|
|
12
|
+
const { owner, repo } = resolveIssueRepoTarget(repoOption);
|
|
13
|
+
return { owner, repo, number, slug: `${owner}/${repo}` };
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
parseIssueTarget
|
|
18
|
+
};
|