@staff0rd/assist 0.1143.1 → 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/sessions/web/bundle.js +1 -1
- 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-OSXLT6CQ.js +0 -65704
- package/dist/runStatusLine-6VBMFNUZ.js +0 -17
- package/dist/statusLine-PWO6JAR2.js +0 -7
|
@@ -0,0 +1,656 @@
|
|
|
1
|
+
import {
|
|
2
|
+
loadItem,
|
|
3
|
+
loadRelations,
|
|
4
|
+
rowToItem
|
|
5
|
+
} from "./chunk-U732RAGX.js";
|
|
6
|
+
import {
|
|
7
|
+
docsRefreshAfter
|
|
8
|
+
} from "./chunk-TCTX3UXU.js";
|
|
9
|
+
import {
|
|
10
|
+
appendDaemonLog
|
|
11
|
+
} from "./chunk-4GMAYXOS.js";
|
|
12
|
+
import {
|
|
13
|
+
formatItemId,
|
|
14
|
+
parseItemId
|
|
15
|
+
} from "./chunk-N65VOEFI.js";
|
|
16
|
+
import {
|
|
17
|
+
comments,
|
|
18
|
+
getDb,
|
|
19
|
+
itemGitRefs,
|
|
20
|
+
items,
|
|
21
|
+
links,
|
|
22
|
+
planPhases,
|
|
23
|
+
planTasks
|
|
24
|
+
} from "./chunk-PD2BTMEY.js";
|
|
25
|
+
import {
|
|
26
|
+
isRunLink
|
|
27
|
+
} from "./chunk-APZ6ZTDA.js";
|
|
28
|
+
import {
|
|
29
|
+
getBacklogDir
|
|
30
|
+
} from "./chunk-7O466DJY.js";
|
|
31
|
+
import {
|
|
32
|
+
loadConfigFrom
|
|
33
|
+
} from "./chunk-LBAPKP6M.js";
|
|
34
|
+
import {
|
|
35
|
+
getCurrentOrigin
|
|
36
|
+
} from "./chunk-GRXFWFGP.js";
|
|
37
|
+
|
|
38
|
+
// src/commands/backlog/types.ts
|
|
39
|
+
import { z } from "zod";
|
|
40
|
+
var backlogStatusSchema = z.enum(["todo", "in-progress", "done", "wontdo"]);
|
|
41
|
+
var backlogTypeSchema = z.enum(["story", "bug"]);
|
|
42
|
+
var planTaskSchema = z.object({
|
|
43
|
+
task: z.string()
|
|
44
|
+
}).strip();
|
|
45
|
+
var planPhaseSchema = z.strictObject({
|
|
46
|
+
name: z.string(),
|
|
47
|
+
tasks: z.array(planTaskSchema),
|
|
48
|
+
manualChecks: z.array(z.string()).optional()
|
|
49
|
+
});
|
|
50
|
+
var phaseUsageSchema = z.strictObject({
|
|
51
|
+
phaseIdx: z.number(),
|
|
52
|
+
tokensUp: z.number(),
|
|
53
|
+
tokensDown: z.number(),
|
|
54
|
+
activeMs: z.number(),
|
|
55
|
+
peakContextPct: z.number()
|
|
56
|
+
});
|
|
57
|
+
var phaseSessionSchema = z.strictObject({
|
|
58
|
+
phaseIdx: z.number(),
|
|
59
|
+
claudeSessionId: z.string(),
|
|
60
|
+
hostname: z.string(),
|
|
61
|
+
osUser: z.string(),
|
|
62
|
+
createdAt: z.string().optional()
|
|
63
|
+
});
|
|
64
|
+
var phaseUsageTotalSchema = z.strictObject({
|
|
65
|
+
tokensUp: z.number(),
|
|
66
|
+
tokensDown: z.number(),
|
|
67
|
+
activeMs: z.number(),
|
|
68
|
+
peakContextPct: z.number()
|
|
69
|
+
});
|
|
70
|
+
var backlogCommentTypeSchema = z.enum(["comment", "summary"]);
|
|
71
|
+
var backlogCommentSchema = z.strictObject({
|
|
72
|
+
id: z.number().optional(),
|
|
73
|
+
text: z.string(),
|
|
74
|
+
phase: z.number().optional(),
|
|
75
|
+
timestamp: z.string(),
|
|
76
|
+
type: backlogCommentTypeSchema
|
|
77
|
+
});
|
|
78
|
+
var gitRefKindSchema = z.enum([
|
|
79
|
+
"branch",
|
|
80
|
+
"commit",
|
|
81
|
+
"commit-parent",
|
|
82
|
+
"pr",
|
|
83
|
+
"slack",
|
|
84
|
+
"session",
|
|
85
|
+
"docs-unlock",
|
|
86
|
+
"schema-unlock",
|
|
87
|
+
"design"
|
|
88
|
+
]);
|
|
89
|
+
var gitRefSchema = z.strictObject({
|
|
90
|
+
kind: gitRefKindSchema,
|
|
91
|
+
ref: z.string(),
|
|
92
|
+
title: z.string().optional(),
|
|
93
|
+
url: z.string().optional(),
|
|
94
|
+
state: z.string().optional(),
|
|
95
|
+
createdAt: z.string().optional()
|
|
96
|
+
});
|
|
97
|
+
var backlogLinkTypeSchema = z.enum([
|
|
98
|
+
"relates-to",
|
|
99
|
+
"depends-on",
|
|
100
|
+
"docs-refresh"
|
|
101
|
+
]);
|
|
102
|
+
var backlogLinkSchema = z.strictObject({
|
|
103
|
+
type: backlogLinkTypeSchema,
|
|
104
|
+
targetId: z.number()
|
|
105
|
+
});
|
|
106
|
+
var backlogItemSchema = z.strictObject({
|
|
107
|
+
id: z.number(),
|
|
108
|
+
type: backlogTypeSchema.default("story"),
|
|
109
|
+
name: z.string(),
|
|
110
|
+
description: z.string().optional(),
|
|
111
|
+
acceptanceCriteria: z.array(z.string()),
|
|
112
|
+
plan: z.array(planPhaseSchema).optional(),
|
|
113
|
+
currentPhase: z.number().optional(),
|
|
114
|
+
starred: z.boolean().default(false),
|
|
115
|
+
status: backlogStatusSchema,
|
|
116
|
+
comments: z.array(backlogCommentSchema).optional(),
|
|
117
|
+
links: z.array(backlogLinkSchema).optional(),
|
|
118
|
+
phaseUsage: z.array(phaseUsageSchema).optional(),
|
|
119
|
+
phaseSessions: z.array(phaseSessionSchema).optional(),
|
|
120
|
+
usageTotal: phaseUsageTotalSchema.optional(),
|
|
121
|
+
gitRefs: z.array(gitRefSchema).optional(),
|
|
122
|
+
origin: z.string().optional(),
|
|
123
|
+
jiraKey: z.string().optional(),
|
|
124
|
+
githubIssue: z.string().optional()
|
|
125
|
+
});
|
|
126
|
+
var backlogFileSchema = z.array(backlogItemSchema);
|
|
127
|
+
|
|
128
|
+
// src/commands/backlog/insertPhaseAt.ts
|
|
129
|
+
import { eq as eq2 } from "drizzle-orm";
|
|
130
|
+
|
|
131
|
+
// src/commands/backlog/shiftPhasesUp.ts
|
|
132
|
+
import { and, desc, eq, gte } from "drizzle-orm";
|
|
133
|
+
async function shiftPhasesUp(db, itemId, fromIdx) {
|
|
134
|
+
const toShift = await db.select({ idx: planPhases.idx }).from(planPhases).where(and(eq(planPhases.itemId, itemId), gte(planPhases.idx, fromIdx))).orderBy(desc(planPhases.idx));
|
|
135
|
+
for (const p of toShift) {
|
|
136
|
+
await db.update(planTasks).set({ phaseIdx: p.idx + 1 }).where(and(eq(planTasks.itemId, itemId), eq(planTasks.phaseIdx, p.idx)));
|
|
137
|
+
await db.update(planPhases).set({ idx: p.idx + 1 }).where(and(eq(planPhases.itemId, itemId), eq(planPhases.idx, p.idx)));
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// src/commands/backlog/insertPhaseAt.ts
|
|
142
|
+
async function insertPhaseAt(orm, itemId, phaseIdx, name, tasks, manualChecks, currentPhase) {
|
|
143
|
+
await orm.transaction(async (tx) => {
|
|
144
|
+
await shiftPhasesUp(tx, itemId, phaseIdx);
|
|
145
|
+
await tx.insert(planPhases).values({ itemId, idx: phaseIdx, name, manualChecks });
|
|
146
|
+
if (tasks.length) {
|
|
147
|
+
await tx.insert(planTasks).values(tasks.map((task, i) => ({ itemId, phaseIdx, idx: i, task })));
|
|
148
|
+
}
|
|
149
|
+
if (currentPhase !== void 0 && currentPhase - 1 >= phaseIdx) {
|
|
150
|
+
await tx.update(items).set({ currentPhase: phaseIdx + 1 }).where(eq2(items.id, itemId));
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
// src/commands/backlog/serializeManualChecks.ts
|
|
156
|
+
function serializeManualChecks(manualCheck) {
|
|
157
|
+
return manualCheck && manualCheck.length > 0 ? JSON.stringify(manualCheck) : null;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// src/commands/backlog/updateStatus.ts
|
|
161
|
+
import chalk from "chalk";
|
|
162
|
+
import { eq as eq5 } from "drizzle-orm";
|
|
163
|
+
|
|
164
|
+
// src/commands/backlog/buildDocsRefreshDescription.ts
|
|
165
|
+
function summaryEntry(summary) {
|
|
166
|
+
return summary.phase === null ? summary.text : `**Phase ${summary.phase}:** ${summary.text}`;
|
|
167
|
+
}
|
|
168
|
+
function storyEntry(story) {
|
|
169
|
+
const lines = [`### ${formatItemId(story.id)} ${story.name}`, ""];
|
|
170
|
+
if (story.summaries.length === 0) lines.push("_No done summary._");
|
|
171
|
+
else lines.push(story.summaries.map(summaryEntry).join("\n\n"));
|
|
172
|
+
if (story.commits.length > 0)
|
|
173
|
+
lines.push(
|
|
174
|
+
"",
|
|
175
|
+
`Commits: ${story.commits.map((c) => `\`${c.slice(0, 8)}\``).join(", ")}`
|
|
176
|
+
);
|
|
177
|
+
return lines.join("\n");
|
|
178
|
+
}
|
|
179
|
+
function buildDocsRefreshDescription(stories) {
|
|
180
|
+
return [
|
|
181
|
+
"Update the docs pages under `docs/src/content/docs/` from what these done stories shipped. Stories leave docs alone during development, so this item owns both the prose (wording, new behaviour on existing pages, removed features) and the `covers` entries that document new commands, skills, config keys and routes.",
|
|
182
|
+
"Each story below lists the summary of every phase it completed. A story's later phases are often internal (tests, refactors, pipelines) while earlier phases shipped user-facing UI or commands, so judge a story on all of its phases and commits, never on its last summary alone. Summaries are lossy: run `assist backlog view <id>` (description, acceptance criteria, summaries and activity) and `git show --stat <sha>` then `git show <sha>` on its commits for the full picture.",
|
|
183
|
+
"## Covered stories",
|
|
184
|
+
...stories.map(storyEntry)
|
|
185
|
+
].join("\n\n");
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// src/commands/backlog/hasDocsCoverageRun.ts
|
|
189
|
+
function hasDocsCoverageRun() {
|
|
190
|
+
try {
|
|
191
|
+
return (loadConfigFrom(getBacklogDir()).run ?? []).some(
|
|
192
|
+
(entry) => !isRunLink(entry) && entry.name === "docs:coverage"
|
|
193
|
+
);
|
|
194
|
+
} catch {
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// src/commands/backlog/itemColumns.ts
|
|
200
|
+
function itemColumns(item, origin) {
|
|
201
|
+
return {
|
|
202
|
+
origin,
|
|
203
|
+
type: item.type,
|
|
204
|
+
name: item.name,
|
|
205
|
+
description: item.description ?? null,
|
|
206
|
+
acceptanceCriteria: JSON.stringify(item.acceptanceCriteria),
|
|
207
|
+
status: item.status,
|
|
208
|
+
currentPhase: item.currentPhase ?? null,
|
|
209
|
+
starred: item.starred,
|
|
210
|
+
jiraKey: item.jiraKey ?? null,
|
|
211
|
+
githubIssue: item.githubIssue ?? null
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// src/commands/backlog/insertItem.ts
|
|
216
|
+
async function insertItem(db, item, origin) {
|
|
217
|
+
const [row] = await db.insert(items).values(itemColumns(item, origin)).returning({ id: items.id });
|
|
218
|
+
if (!row) throw new Error("Failed to insert backlog item");
|
|
219
|
+
return row.id;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// src/commands/backlog/loadDocsRefreshStories.ts
|
|
223
|
+
import { and as and2, asc, eq as eq3, inArray } from "drizzle-orm";
|
|
224
|
+
async function loadDocsRefreshStories(orm, ids) {
|
|
225
|
+
if (ids.length === 0) return [];
|
|
226
|
+
const [rows, summaries, commits] = await Promise.all([
|
|
227
|
+
orm.select({ id: items.id, name: items.name }).from(items).where(inArray(items.id, ids)).orderBy(asc(items.id)),
|
|
228
|
+
orm.select({
|
|
229
|
+
itemId: comments.itemId,
|
|
230
|
+
phase: comments.phase,
|
|
231
|
+
text: comments.text
|
|
232
|
+
}).from(comments).where(and2(inArray(comments.itemId, ids), eq3(comments.type, "summary"))).orderBy(asc(comments.id)),
|
|
233
|
+
orm.select({ itemId: itemGitRefs.itemId, ref: itemGitRefs.ref }).from(itemGitRefs).where(
|
|
234
|
+
and2(inArray(itemGitRefs.itemId, ids), eq3(itemGitRefs.kind, "commit"))
|
|
235
|
+
).orderBy(asc(itemGitRefs.createdAt))
|
|
236
|
+
]);
|
|
237
|
+
return rows.map((r) => ({
|
|
238
|
+
id: r.id,
|
|
239
|
+
name: r.name,
|
|
240
|
+
summaries: summaries.filter((s) => s.itemId === r.id).map(({ phase, text }) => ({ phase, text })),
|
|
241
|
+
commits: commits.filter((c) => c.itemId === r.id).map((c) => c.ref)
|
|
242
|
+
}));
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
// src/commands/backlog/createDocsRefreshItem.ts
|
|
246
|
+
async function createDocsRefreshItem(orm, origin, storyIds, coverageCheck = hasDocsCoverageRun()) {
|
|
247
|
+
const stories = await loadDocsRefreshStories(orm, storyIds);
|
|
248
|
+
const storyList = storyIds.map(formatItemId).join(", ");
|
|
249
|
+
const id = await insertItem(
|
|
250
|
+
orm,
|
|
251
|
+
{
|
|
252
|
+
type: "story",
|
|
253
|
+
name: "Refresh docs",
|
|
254
|
+
description: buildDocsRefreshDescription(stories),
|
|
255
|
+
acceptanceCriteria: [
|
|
256
|
+
"Docs pages reflect the behaviour shipped by every covered story",
|
|
257
|
+
"Pages are left untouched for stories with no user-facing change"
|
|
258
|
+
],
|
|
259
|
+
status: "todo",
|
|
260
|
+
starred: false
|
|
261
|
+
},
|
|
262
|
+
origin
|
|
263
|
+
);
|
|
264
|
+
await insertPhaseAt(
|
|
265
|
+
orm,
|
|
266
|
+
id,
|
|
267
|
+
0,
|
|
268
|
+
"Refresh docs",
|
|
269
|
+
[
|
|
270
|
+
`Walk each covered story (${storyList}) one at a time: run \`assist backlog view <id>\` for that story alone and read its full output (if the output is persisted to a file, read the file, not just the preview), then run \`git show --stat <sha>\` on every one of its commits and \`git show <sha>\` on any that touch UI, commands, config or other user-visible code; note everything it changed for users across all of its phases, not just its last summary`,
|
|
271
|
+
"Skip a story only after inspecting all of its commits and finding no user-facing change (UI screens, notices, counts, commands, flags, config keys, apps); record a one-line reason for each skip, and leave pages untouched for skipped stories",
|
|
272
|
+
"For the rest, update the affected pages under `docs/src/content/docs/` (wording, new behaviour on existing pages, removed features) following the rules in `docs/CLAUDE.md`",
|
|
273
|
+
...coverageCheck ? [
|
|
274
|
+
"Run `assist run docs:coverage`; while it fails, list the gaps with `assist run docs:coverage --report` and add `covers` entries to the pages that document them (or new pages) until it passes"
|
|
275
|
+
] : [],
|
|
276
|
+
"Ask the user to review the docs changes with `assist ask` and wait for their approval before committing. Keep the body a concise summary with no raw diff (the user reviews the changes in the docs viewer): list each changed page (`git status --porcelain -- docs/src/content/docs/`) as a link to it in the docs preview (`http://localhost:4173/<page>/` for `docs/src/content/docs/<page>.md(x)`, and `http://localhost:4173/` for `index.md(x)`) with a few words on what changed, then the stories included, then each skipped story with its one-line reason"
|
|
277
|
+
],
|
|
278
|
+
serializeManualChecks([
|
|
279
|
+
"Review every changed docs page in the docs preview and approve it"
|
|
280
|
+
]),
|
|
281
|
+
void 0
|
|
282
|
+
);
|
|
283
|
+
await orm.insert(links).values(
|
|
284
|
+
storyIds.map((targetId) => ({
|
|
285
|
+
itemId: id,
|
|
286
|
+
type: "docs-refresh",
|
|
287
|
+
targetId
|
|
288
|
+
}))
|
|
289
|
+
);
|
|
290
|
+
return id;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// src/commands/backlog/loadDocsRefreshState.ts
|
|
294
|
+
import { and as and3, eq as eq4 } from "drizzle-orm";
|
|
295
|
+
var OPEN_STATUSES = /* @__PURE__ */ new Set(["todo", "in-progress"]);
|
|
296
|
+
async function loadDocsRefreshState(orm, origin) {
|
|
297
|
+
const refreshLinks = await orm.select({
|
|
298
|
+
itemId: links.itemId,
|
|
299
|
+
targetId: links.targetId,
|
|
300
|
+
status: items.status
|
|
301
|
+
}).from(links).innerJoin(items, eq4(links.itemId, items.id)).where(and3(eq4(links.type, "docs-refresh"), eq4(items.origin, origin)));
|
|
302
|
+
const openId = refreshLinks.find((l) => OPEN_STATUSES.has(l.status))?.itemId;
|
|
303
|
+
const excluded = new Set(refreshLinks.flatMap((l) => [l.itemId, l.targetId]));
|
|
304
|
+
const doneStories = await orm.select({ id: items.id, name: items.name }).from(items).where(
|
|
305
|
+
and3(
|
|
306
|
+
eq4(items.origin, origin),
|
|
307
|
+
eq4(items.type, "story"),
|
|
308
|
+
eq4(items.status, "done")
|
|
309
|
+
)
|
|
310
|
+
).orderBy(items.id);
|
|
311
|
+
return { openId, unswept: doneStories.filter((s) => !excluded.has(s.id)) };
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// src/commands/backlog/queueDocsRefresh.ts
|
|
315
|
+
async function queueDocsRefresh(orm, origin, threshold) {
|
|
316
|
+
const { openId, unswept } = await loadDocsRefreshState(orm, origin);
|
|
317
|
+
if (openId !== void 0 || unswept.length < threshold) return void 0;
|
|
318
|
+
return createDocsRefreshItem(
|
|
319
|
+
orm,
|
|
320
|
+
origin,
|
|
321
|
+
unswept.map((s) => s.id)
|
|
322
|
+
);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
// src/commands/backlog/updateStatus.ts
|
|
326
|
+
async function updateStatus(orm, id, status) {
|
|
327
|
+
const [row] = await orm.update(items).set({ status }).where(eq5(items.id, id)).returning({ name: items.name, origin: items.origin, type: items.type });
|
|
328
|
+
if (row && status === "done" && row.type === "story")
|
|
329
|
+
await maybeQueueDocsRefresh(orm, row.origin);
|
|
330
|
+
return row?.name;
|
|
331
|
+
}
|
|
332
|
+
async function maybeQueueDocsRefresh(orm, origin) {
|
|
333
|
+
const threshold = docsRefreshAfter();
|
|
334
|
+
if (threshold === void 0) return;
|
|
335
|
+
const queued = await queueDocsRefresh(orm, origin, threshold);
|
|
336
|
+
if (queued !== void 0)
|
|
337
|
+
console.log(chalk.cyan(`Queued ${formatItemId(queued)}: Refresh docs`));
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// src/commands/backlog/shared.ts
|
|
341
|
+
import chalk4 from "chalk";
|
|
342
|
+
|
|
343
|
+
// src/commands/backlog/migrateLocalBacklog.ts
|
|
344
|
+
import { existsSync as existsSync2 } from "fs";
|
|
345
|
+
import { join as join2 } from "path";
|
|
346
|
+
import chalk3 from "chalk";
|
|
347
|
+
|
|
348
|
+
// src/commands/backlog/backupLocalBacklogFiles.ts
|
|
349
|
+
import { existsSync, renameSync } from "fs";
|
|
350
|
+
import { join } from "path";
|
|
351
|
+
var LOCAL_FILES = ["backlog.jsonl", "backlog.db"];
|
|
352
|
+
function backupLocalBacklogFiles(dir) {
|
|
353
|
+
const moved = [];
|
|
354
|
+
for (const name of LOCAL_FILES) {
|
|
355
|
+
const path = join(dir, ".assist", name);
|
|
356
|
+
if (existsSync(path)) {
|
|
357
|
+
renameSync(path, `${path}.bak`);
|
|
358
|
+
moved.push(`${name} \u2192 ${name}.bak`);
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
return moved;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
// src/commands/backlog/gitPullBacklog.ts
|
|
365
|
+
import { execSync } from "child_process";
|
|
366
|
+
import chalk2 from "chalk";
|
|
367
|
+
function gitPullBacklog(dir) {
|
|
368
|
+
try {
|
|
369
|
+
execSync("git pull --ff-only", {
|
|
370
|
+
cwd: dir,
|
|
371
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
372
|
+
windowsHide: true
|
|
373
|
+
});
|
|
374
|
+
} catch {
|
|
375
|
+
console.error(
|
|
376
|
+
chalk2.yellow(
|
|
377
|
+
"backlog migrate: git pull skipped (no upstream or pull failed); using the local file."
|
|
378
|
+
)
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
// src/commands/backlog/insertPlan.ts
|
|
384
|
+
async function insertPlan(db, item) {
|
|
385
|
+
if (!item.plan?.length) return;
|
|
386
|
+
await db.insert(planPhases).values(
|
|
387
|
+
item.plan.map((phase, pi) => ({
|
|
388
|
+
itemId: item.id,
|
|
389
|
+
idx: pi,
|
|
390
|
+
name: phase.name,
|
|
391
|
+
manualChecks: phase.manualChecks ? JSON.stringify(phase.manualChecks) : null
|
|
392
|
+
}))
|
|
393
|
+
);
|
|
394
|
+
const tasks = item.plan.flatMap(
|
|
395
|
+
(phase, pi) => phase.tasks.map((task, ti) => ({
|
|
396
|
+
itemId: item.id,
|
|
397
|
+
phaseIdx: pi,
|
|
398
|
+
idx: ti,
|
|
399
|
+
task: task.task
|
|
400
|
+
}))
|
|
401
|
+
);
|
|
402
|
+
if (tasks.length) await db.insert(planTasks).values(tasks);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
// src/commands/backlog/insertItemRelations.ts
|
|
406
|
+
async function insertComments(db, item) {
|
|
407
|
+
if (!item.comments?.length) return;
|
|
408
|
+
await db.insert(comments).values(
|
|
409
|
+
item.comments.map((c, i) => ({
|
|
410
|
+
id: c.id,
|
|
411
|
+
itemId: item.id,
|
|
412
|
+
idx: i,
|
|
413
|
+
text: c.text,
|
|
414
|
+
phase: c.phase ?? null,
|
|
415
|
+
timestamp: c.timestamp,
|
|
416
|
+
type: c.type
|
|
417
|
+
}))
|
|
418
|
+
);
|
|
419
|
+
}
|
|
420
|
+
async function insertLinks(db, item) {
|
|
421
|
+
if (!item.links?.length) return;
|
|
422
|
+
await db.insert(links).values(
|
|
423
|
+
item.links.map((l) => ({
|
|
424
|
+
itemId: item.id,
|
|
425
|
+
type: l.type,
|
|
426
|
+
targetId: l.targetId
|
|
427
|
+
}))
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
async function insertItemRelations(db, item) {
|
|
431
|
+
await insertComments(db, item);
|
|
432
|
+
await insertLinks(db, item);
|
|
433
|
+
await insertPlan(db, item);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// src/commands/backlog/importItemsRemapped.ts
|
|
437
|
+
function remap(item, newId, oldToNew) {
|
|
438
|
+
const remapped = {
|
|
439
|
+
...item,
|
|
440
|
+
id: newId,
|
|
441
|
+
// comment ids are per-repo; drop them so the global comments table assigns
|
|
442
|
+
// fresh ids rather than colliding with rows from other repositories.
|
|
443
|
+
comments: item.comments?.map((c) => ({ ...c, id: void 0 })),
|
|
444
|
+
links: item.links?.flatMap((l) => {
|
|
445
|
+
const targetId = oldToNew.get(l.targetId);
|
|
446
|
+
return targetId === void 0 ? [] : [{ type: l.type, targetId }];
|
|
447
|
+
})
|
|
448
|
+
};
|
|
449
|
+
return remapped;
|
|
450
|
+
}
|
|
451
|
+
async function importItemsRemapped(orm, items2, origin) {
|
|
452
|
+
return orm.transaction(async (tx) => {
|
|
453
|
+
const oldToNew = /* @__PURE__ */ new Map();
|
|
454
|
+
for (const item of items2) {
|
|
455
|
+
oldToNew.set(item.id, await insertItem(tx, item, origin));
|
|
456
|
+
}
|
|
457
|
+
for (const item of items2) {
|
|
458
|
+
const newId = oldToNew.get(item.id);
|
|
459
|
+
if (newId === void 0) continue;
|
|
460
|
+
await insertItemRelations(tx, remap(item, newId, oldToNew));
|
|
461
|
+
}
|
|
462
|
+
return items2.length;
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
// src/commands/backlog/loadAllItems.ts
|
|
467
|
+
import { asc as asc2, eq as eq6 } from "drizzle-orm";
|
|
468
|
+
async function loadAllItems(orm, origin) {
|
|
469
|
+
const rows = await orm.select().from(items).where(origin === void 0 ? void 0 : eq6(items.origin, origin)).orderBy(asc2(items.id));
|
|
470
|
+
if (rows.length === 0) return [];
|
|
471
|
+
const rel = await loadRelations(
|
|
472
|
+
orm,
|
|
473
|
+
rows.map((r) => r.id),
|
|
474
|
+
{ includeComments: false, includeTasks: false }
|
|
475
|
+
);
|
|
476
|
+
return rows.map((row) => rowToItem(row, rel));
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
// src/commands/backlog/parseBacklogJsonl.ts
|
|
480
|
+
import { readFileSync } from "fs";
|
|
481
|
+
function parseBacklogJsonl(path) {
|
|
482
|
+
const content = readFileSync(path, "utf8").trim();
|
|
483
|
+
if (content.length === 0) return [];
|
|
484
|
+
return content.split("\n").map((line) => line.trim()).filter(Boolean).map((line) => backlogItemSchema.parse(JSON.parse(line)));
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
// src/commands/backlog/migrateLocalBacklog.ts
|
|
488
|
+
function jsonlPath(dir) {
|
|
489
|
+
return join2(dir, ".assist", "backlog.jsonl");
|
|
490
|
+
}
|
|
491
|
+
async function verifyImport(orm, origin, items2, imported) {
|
|
492
|
+
const reloaded = await loadAllItems(orm, origin);
|
|
493
|
+
if (reloaded.length !== imported) {
|
|
494
|
+
throw new Error(
|
|
495
|
+
`backlog migrate: expected ${imported} item(s) for ${origin} after import but found ${reloaded.length}.`
|
|
496
|
+
);
|
|
497
|
+
}
|
|
498
|
+
if (items2.length > 0 && !reloaded.some((i) => i.name === items2[0].name)) {
|
|
499
|
+
throw new Error(
|
|
500
|
+
`backlog migrate: spot-check failed; "${items2[0].name}" not found after import.`
|
|
501
|
+
);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
async function migrateLocalBacklog(orm, dir, origin) {
|
|
505
|
+
if (!existsSync2(jsonlPath(dir))) return;
|
|
506
|
+
const existing = (await loadAllItems(orm, origin)).length;
|
|
507
|
+
if (existing > 0) {
|
|
508
|
+
const moved2 = backupLocalBacklogFiles(dir);
|
|
509
|
+
console.error(
|
|
510
|
+
chalk3.yellow(
|
|
511
|
+
`backlog migrate: Postgres already has ${existing} item(s) for ${origin}; skipped import to avoid duplicates and archived the local file (${moved2.join(", ")}).`
|
|
512
|
+
)
|
|
513
|
+
);
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
gitPullBacklog(dir);
|
|
517
|
+
const items2 = parseBacklogJsonl(jsonlPath(dir));
|
|
518
|
+
const imported = await importItemsRemapped(orm, items2, origin);
|
|
519
|
+
await verifyImport(orm, origin, items2, imported);
|
|
520
|
+
const moved = backupLocalBacklogFiles(dir);
|
|
521
|
+
console.error(
|
|
522
|
+
chalk3.green(
|
|
523
|
+
`backlog migrate: imported ${imported} item(s) into Postgres (${moved.join(", ")}).`
|
|
524
|
+
)
|
|
525
|
+
);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// src/shared/db/ensureMigrated.ts
|
|
529
|
+
var attempted = /* @__PURE__ */ new Set();
|
|
530
|
+
async function ensureMigrated(orm, dir, origin) {
|
|
531
|
+
if (attempted.has(origin)) return;
|
|
532
|
+
attempted.add(origin);
|
|
533
|
+
await migrateLocalBacklog(orm, dir, origin);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// src/commands/backlog/deleteItem.ts
|
|
537
|
+
import { eq as eq7 } from "drizzle-orm";
|
|
538
|
+
async function deleteItem(orm, id) {
|
|
539
|
+
const [row] = await orm.delete(items).where(eq7(items.id, id)).returning({ name: items.name });
|
|
540
|
+
return row?.name;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
// src/commands/backlog/saveAllItems.ts
|
|
544
|
+
import { eq as eq9, sql } from "drizzle-orm";
|
|
545
|
+
|
|
546
|
+
// src/commands/backlog/deleteItemRelations.ts
|
|
547
|
+
import { eq as eq8 } from "drizzle-orm";
|
|
548
|
+
|
|
549
|
+
// src/commands/backlog/searchItemIds.ts
|
|
550
|
+
import { and as and4, asc as asc3, eq as eq10, ilike, or, sql as sql2 } from "drizzle-orm";
|
|
551
|
+
async function searchItemIds(orm, query, origin) {
|
|
552
|
+
const pattern = `%${query}%`;
|
|
553
|
+
const numberPattern = `%${query.replace(/^#/, "")}%`;
|
|
554
|
+
const rows = await orm.selectDistinct({ id: items.id }).from(items).leftJoin(comments, eq10(comments.itemId, items.id)).leftJoin(planPhases, eq10(planPhases.itemId, items.id)).where(
|
|
555
|
+
and4(
|
|
556
|
+
origin ? eq10(items.origin, origin) : void 0,
|
|
557
|
+
or(
|
|
558
|
+
ilike(items.name, pattern),
|
|
559
|
+
ilike(items.description, pattern),
|
|
560
|
+
ilike(items.acceptanceCriteria, pattern),
|
|
561
|
+
ilike(items.jiraKey, pattern),
|
|
562
|
+
ilike(comments.text, pattern),
|
|
563
|
+
ilike(planPhases.name, pattern),
|
|
564
|
+
ilike(sql2`${items.id}::text`, numberPattern)
|
|
565
|
+
)
|
|
566
|
+
)
|
|
567
|
+
).orderBy(asc3(items.id));
|
|
568
|
+
return rows.map((r) => r.id);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
// src/commands/backlog/updateCurrentPhase.ts
|
|
572
|
+
import { eq as eq11 } from "drizzle-orm";
|
|
573
|
+
async function updateCurrentPhase(orm, id, phase) {
|
|
574
|
+
const [existing] = await orm.select({ currentPhase: items.currentPhase }).from(items).where(eq11(items.id, id)).limit(1);
|
|
575
|
+
await orm.update(items).set({ currentPhase: phase }).where(eq11(items.id, id));
|
|
576
|
+
const previous = existing?.currentPhase;
|
|
577
|
+
if (previous != null && phase < previous) {
|
|
578
|
+
appendDaemonLog(
|
|
579
|
+
`backlog item ${id}: currentPhase moved backward ${previous} -> ${phase}`
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
// src/commands/backlog/shared.ts
|
|
585
|
+
function getOrigin() {
|
|
586
|
+
return getCurrentOrigin(getBacklogDir());
|
|
587
|
+
}
|
|
588
|
+
async function getReady() {
|
|
589
|
+
const orm = await getDb();
|
|
590
|
+
const dir = getBacklogDir();
|
|
591
|
+
await ensureMigrated(orm, dir, getCurrentOrigin(dir));
|
|
592
|
+
return { orm };
|
|
593
|
+
}
|
|
594
|
+
async function loadBacklog(allRepos = false) {
|
|
595
|
+
const { orm } = await getReady();
|
|
596
|
+
return loadAllItems(orm, allRepos ? void 0 : getOrigin());
|
|
597
|
+
}
|
|
598
|
+
async function searchBacklog(query) {
|
|
599
|
+
const { orm } = await getReady();
|
|
600
|
+
const origin = getOrigin();
|
|
601
|
+
const ids = await searchItemIds(orm, query, origin);
|
|
602
|
+
const allItems = await loadAllItems(orm, origin);
|
|
603
|
+
return allItems.filter((item) => ids.includes(item.id));
|
|
604
|
+
}
|
|
605
|
+
async function findOneItem(id) {
|
|
606
|
+
const numId = parseItemId(id);
|
|
607
|
+
const { orm } = await getReady();
|
|
608
|
+
const item = await loadItem(orm, numId);
|
|
609
|
+
if (!item) {
|
|
610
|
+
console.log(chalk4.red(`Item ${formatItemId(numId)} not found.`));
|
|
611
|
+
return void 0;
|
|
612
|
+
}
|
|
613
|
+
return { orm, item };
|
|
614
|
+
}
|
|
615
|
+
async function setStatus(id, status) {
|
|
616
|
+
const { orm } = await getReady();
|
|
617
|
+
const numId = parseItemId(id);
|
|
618
|
+
const name = await updateStatus(orm, numId, status);
|
|
619
|
+
if (name === void 0)
|
|
620
|
+
console.log(chalk4.red(`Item ${formatItemId(numId)} not found.`));
|
|
621
|
+
return name;
|
|
622
|
+
}
|
|
623
|
+
async function setCurrentPhase(id, phase) {
|
|
624
|
+
const { orm } = await getReady();
|
|
625
|
+
await updateCurrentPhase(orm, parseItemId(id), phase);
|
|
626
|
+
}
|
|
627
|
+
async function removeItem(id) {
|
|
628
|
+
const { orm } = await getReady();
|
|
629
|
+
const numId = parseItemId(id);
|
|
630
|
+
const name = await deleteItem(orm, numId);
|
|
631
|
+
if (name === void 0)
|
|
632
|
+
console.log(chalk4.red(`Item ${formatItemId(numId)} not found.`));
|
|
633
|
+
return name;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
export {
|
|
637
|
+
insertItem,
|
|
638
|
+
gitRefKindSchema,
|
|
639
|
+
deleteItem,
|
|
640
|
+
searchItemIds,
|
|
641
|
+
updateCurrentPhase,
|
|
642
|
+
shiftPhasesUp,
|
|
643
|
+
insertPhaseAt,
|
|
644
|
+
serializeManualChecks,
|
|
645
|
+
createDocsRefreshItem,
|
|
646
|
+
loadDocsRefreshState,
|
|
647
|
+
updateStatus,
|
|
648
|
+
getOrigin,
|
|
649
|
+
getReady,
|
|
650
|
+
loadBacklog,
|
|
651
|
+
searchBacklog,
|
|
652
|
+
findOneItem,
|
|
653
|
+
setStatus,
|
|
654
|
+
setCurrentPhase,
|
|
655
|
+
removeItem
|
|
656
|
+
};
|