@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,598 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getMigrationStatus
|
|
3
|
+
} from "./chunk-3QKE2ONF.js";
|
|
4
|
+
import {
|
|
5
|
+
createPool,
|
|
6
|
+
pgExecutor
|
|
7
|
+
} from "./chunk-LMUTL44M.js";
|
|
8
|
+
import {
|
|
9
|
+
toDatabaseConnectionError
|
|
10
|
+
} from "./chunk-6NDXAN45.js";
|
|
11
|
+
import {
|
|
12
|
+
loadedDb
|
|
13
|
+
} from "./chunk-EW2ZM2PC.js";
|
|
14
|
+
import {
|
|
15
|
+
loadGlobalConfigRaw,
|
|
16
|
+
loadProjectConfig
|
|
17
|
+
} from "./chunk-KGFZYUE2.js";
|
|
18
|
+
|
|
19
|
+
// src/shared/db/items.ts
|
|
20
|
+
import { boolean, index, integer, pgTable, text } from "drizzle-orm/pg-core";
|
|
21
|
+
var items = pgTable(
|
|
22
|
+
"items",
|
|
23
|
+
{
|
|
24
|
+
id: integer().generatedByDefaultAsIdentity().primaryKey(),
|
|
25
|
+
origin: text().notNull(),
|
|
26
|
+
type: text().notNull().default("story"),
|
|
27
|
+
name: text().notNull(),
|
|
28
|
+
description: text(),
|
|
29
|
+
acceptanceCriteria: text("acceptance_criteria").notNull().default("[]"),
|
|
30
|
+
status: text().notNull().default("todo"),
|
|
31
|
+
currentPhase: integer("current_phase"),
|
|
32
|
+
starred: boolean().notNull().default(false),
|
|
33
|
+
jiraKey: text("jira_key"),
|
|
34
|
+
githubIssue: text("github_issue")
|
|
35
|
+
},
|
|
36
|
+
(t) => [index("items_origin_idx").on(t.origin)]
|
|
37
|
+
);
|
|
38
|
+
|
|
39
|
+
// src/shared/db/links.ts
|
|
40
|
+
import { integer as integer2, pgTable as pgTable2, primaryKey, text as text2 } from "drizzle-orm/pg-core";
|
|
41
|
+
var links = pgTable2(
|
|
42
|
+
"links",
|
|
43
|
+
{
|
|
44
|
+
itemId: integer2("item_id").notNull().references(() => items.id, { onDelete: "cascade" }),
|
|
45
|
+
type: text2().notNull(),
|
|
46
|
+
targetId: integer2("target_id").notNull()
|
|
47
|
+
},
|
|
48
|
+
(t) => [primaryKey({ columns: [t.itemId, t.type, t.targetId] })]
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
// src/shared/db/planPhases.ts
|
|
52
|
+
import { integer as integer3, pgTable as pgTable3, primaryKey as primaryKey2, text as text3 } from "drizzle-orm/pg-core";
|
|
53
|
+
var planPhases = pgTable3(
|
|
54
|
+
"plan_phases",
|
|
55
|
+
{
|
|
56
|
+
itemId: integer3("item_id").notNull().references(() => items.id, { onDelete: "cascade" }),
|
|
57
|
+
idx: integer3().notNull(),
|
|
58
|
+
name: text3().notNull(),
|
|
59
|
+
manualChecks: text3("manual_checks")
|
|
60
|
+
},
|
|
61
|
+
(t) => [primaryKey2({ columns: [t.itemId, t.idx] })]
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
// src/shared/db/planTasks.ts
|
|
65
|
+
import {
|
|
66
|
+
foreignKey,
|
|
67
|
+
integer as integer4,
|
|
68
|
+
pgTable as pgTable4,
|
|
69
|
+
primaryKey as primaryKey3,
|
|
70
|
+
text as text4
|
|
71
|
+
} from "drizzle-orm/pg-core";
|
|
72
|
+
var planTasks = pgTable4(
|
|
73
|
+
"plan_tasks",
|
|
74
|
+
{
|
|
75
|
+
itemId: integer4("item_id").notNull(),
|
|
76
|
+
phaseIdx: integer4("phase_idx").notNull(),
|
|
77
|
+
idx: integer4().notNull(),
|
|
78
|
+
task: text4().notNull()
|
|
79
|
+
},
|
|
80
|
+
(t) => [
|
|
81
|
+
primaryKey3({ columns: [t.itemId, t.phaseIdx, t.idx] }),
|
|
82
|
+
foreignKey({
|
|
83
|
+
columns: [t.itemId, t.phaseIdx],
|
|
84
|
+
foreignColumns: [planPhases.itemId, planPhases.idx]
|
|
85
|
+
}).onDelete("cascade")
|
|
86
|
+
]
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
// src/shared/db/schema.ts
|
|
90
|
+
import { integer as integer14, pgTable as pgTable17, text as text16 } from "drizzle-orm/pg-core";
|
|
91
|
+
|
|
92
|
+
// src/shared/db/backups.ts
|
|
93
|
+
import { bigint, integer as integer5, pgTable as pgTable5, text as text5, timestamp } from "drizzle-orm/pg-core";
|
|
94
|
+
var backups = pgTable5("backups", {
|
|
95
|
+
id: integer5().generatedByDefaultAsIdentity().primaryKey(),
|
|
96
|
+
createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
|
|
97
|
+
filePath: text5("file_path").notNull(),
|
|
98
|
+
sizeBytes: bigint("size_bytes", { mode: "number" }).notNull(),
|
|
99
|
+
durationMs: integer5("duration_ms")
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// src/shared/db/comments.ts
|
|
103
|
+
import { integer as integer6, pgTable as pgTable6, text as text6 } from "drizzle-orm/pg-core";
|
|
104
|
+
var comments = pgTable6("comments", {
|
|
105
|
+
id: integer6().generatedByDefaultAsIdentity().primaryKey(),
|
|
106
|
+
itemId: integer6("item_id").notNull().references(() => items.id, { onDelete: "cascade" }),
|
|
107
|
+
idx: integer6().notNull(),
|
|
108
|
+
text: text6().notNull(),
|
|
109
|
+
phase: integer6(),
|
|
110
|
+
timestamp: text6().notNull(),
|
|
111
|
+
type: text6().notNull().default("comment")
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
// src/shared/db/inboxMessages.ts
|
|
115
|
+
import { pgTable as pgTable7, primaryKey as primaryKey4, text as text7, timestamp as timestamp2 } from "drizzle-orm/pg-core";
|
|
116
|
+
var inboxMessages = pgTable7(
|
|
117
|
+
"inbox_messages",
|
|
118
|
+
{
|
|
119
|
+
source: text7().notNull(),
|
|
120
|
+
messageId: text7("message_id").notNull(),
|
|
121
|
+
sender: text7().notNull(),
|
|
122
|
+
summary: text7().notNull(),
|
|
123
|
+
link: text7().notNull(),
|
|
124
|
+
receivedAt: timestamp2("received_at", { withTimezone: true }),
|
|
125
|
+
flaggedAt: timestamp2("flagged_at", { withTimezone: true }).notNull().defaultNow(),
|
|
126
|
+
dismissedAt: timestamp2("dismissed_at", { withTimezone: true })
|
|
127
|
+
},
|
|
128
|
+
(t) => [primaryKey4({ columns: [t.source, t.messageId] })]
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
// src/shared/db/itemGitRefs.ts
|
|
132
|
+
import {
|
|
133
|
+
integer as integer7,
|
|
134
|
+
pgTable as pgTable8,
|
|
135
|
+
primaryKey as primaryKey5,
|
|
136
|
+
text as text8,
|
|
137
|
+
timestamp as timestamp3
|
|
138
|
+
} from "drizzle-orm/pg-core";
|
|
139
|
+
var itemGitRefs = pgTable8(
|
|
140
|
+
"item_git_refs",
|
|
141
|
+
{
|
|
142
|
+
itemId: integer7("item_id").notNull().references(() => items.id, { onDelete: "cascade" }),
|
|
143
|
+
kind: text8().notNull(),
|
|
144
|
+
ref: text8().notNull(),
|
|
145
|
+
title: text8(),
|
|
146
|
+
url: text8(),
|
|
147
|
+
state: text8(),
|
|
148
|
+
createdAt: timestamp3("created_at", { withTimezone: true }).notNull().defaultNow()
|
|
149
|
+
},
|
|
150
|
+
(t) => [primaryKey5({ columns: [t.itemId, t.kind, t.ref] })]
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
// src/shared/db/jobRuns.ts
|
|
154
|
+
import {
|
|
155
|
+
bigint as bigint2,
|
|
156
|
+
doublePrecision,
|
|
157
|
+
index as index2,
|
|
158
|
+
integer as integer8,
|
|
159
|
+
pgTable as pgTable9,
|
|
160
|
+
text as text9,
|
|
161
|
+
timestamp as timestamp4
|
|
162
|
+
} from "drizzle-orm/pg-core";
|
|
163
|
+
var jobRuns = pgTable9(
|
|
164
|
+
"job_runs",
|
|
165
|
+
{
|
|
166
|
+
id: integer8().generatedByDefaultAsIdentity().primaryKey(),
|
|
167
|
+
kind: text9().$type().notNull(),
|
|
168
|
+
trigger: text9().$type().notNull(),
|
|
169
|
+
model: text9(),
|
|
170
|
+
startedAt: timestamp4("started_at", { withTimezone: true }).notNull().defaultNow(),
|
|
171
|
+
finishedAt: timestamp4("finished_at", { withTimezone: true }),
|
|
172
|
+
durationMs: bigint2("duration_ms", { mode: "number" }),
|
|
173
|
+
inputTokens: bigint2("input_tokens", { mode: "number" }).notNull().default(0),
|
|
174
|
+
outputTokens: bigint2("output_tokens", { mode: "number" }).notNull().default(0),
|
|
175
|
+
cacheReadTokens: bigint2("cache_read_tokens", { mode: "number" }).notNull().default(0),
|
|
176
|
+
cacheWriteTokens: bigint2("cache_write_tokens", { mode: "number" }).notNull().default(0),
|
|
177
|
+
costUsd: doublePrecision("cost_usd"),
|
|
178
|
+
status: text9().$type().notNull().default("running"),
|
|
179
|
+
detail: text9(),
|
|
180
|
+
repo: text9(),
|
|
181
|
+
prNumber: integer8("pr_number"),
|
|
182
|
+
reviewer: text9()
|
|
183
|
+
},
|
|
184
|
+
(t) => [index2("job_runs_started_at_idx").on(t.startedAt)]
|
|
185
|
+
);
|
|
186
|
+
|
|
187
|
+
// src/shared/db/phaseCycleContext.ts
|
|
188
|
+
import {
|
|
189
|
+
bigint as bigint3,
|
|
190
|
+
doublePrecision as doublePrecision2,
|
|
191
|
+
integer as integer9,
|
|
192
|
+
pgTable as pgTable10,
|
|
193
|
+
primaryKey as primaryKey6,
|
|
194
|
+
text as text10
|
|
195
|
+
} from "drizzle-orm/pg-core";
|
|
196
|
+
var phaseCycleContext = pgTable10(
|
|
197
|
+
"phase_cycle_context",
|
|
198
|
+
{
|
|
199
|
+
itemId: integer9("item_id").notNull(),
|
|
200
|
+
phaseIdx: integer9("phase_idx").notNull(),
|
|
201
|
+
window: text10().$type().notNull(),
|
|
202
|
+
resetsAt: bigint3("resets_at", { mode: "number" }).notNull(),
|
|
203
|
+
peakContextPct: doublePrecision2("peak_context_pct").notNull().default(0)
|
|
204
|
+
},
|
|
205
|
+
(t) => [
|
|
206
|
+
primaryKey6({
|
|
207
|
+
columns: [t.itemId, t.phaseIdx, t.window, t.resetsAt]
|
|
208
|
+
})
|
|
209
|
+
]
|
|
210
|
+
);
|
|
211
|
+
|
|
212
|
+
// src/shared/db/phaseSessions.ts
|
|
213
|
+
import {
|
|
214
|
+
integer as integer10,
|
|
215
|
+
pgTable as pgTable11,
|
|
216
|
+
primaryKey as primaryKey7,
|
|
217
|
+
text as text11,
|
|
218
|
+
timestamp as timestamp5
|
|
219
|
+
} from "drizzle-orm/pg-core";
|
|
220
|
+
var phaseSessions = pgTable11(
|
|
221
|
+
"phase_sessions",
|
|
222
|
+
{
|
|
223
|
+
itemId: integer10("item_id").notNull().references(() => items.id, { onDelete: "cascade" }),
|
|
224
|
+
phaseIdx: integer10("phase_idx").notNull(),
|
|
225
|
+
claudeSessionId: text11("claude_session_id").notNull(),
|
|
226
|
+
hostname: text11().notNull(),
|
|
227
|
+
osUser: text11("os_user").notNull(),
|
|
228
|
+
createdAt: timestamp5("created_at", { withTimezone: true }).notNull().defaultNow()
|
|
229
|
+
},
|
|
230
|
+
(t) => [
|
|
231
|
+
primaryKey7({
|
|
232
|
+
columns: [t.itemId, t.phaseIdx, t.claudeSessionId]
|
|
233
|
+
})
|
|
234
|
+
]
|
|
235
|
+
);
|
|
236
|
+
|
|
237
|
+
// src/shared/db/phaseUsage.ts
|
|
238
|
+
import {
|
|
239
|
+
bigint as bigint4,
|
|
240
|
+
doublePrecision as doublePrecision3,
|
|
241
|
+
integer as integer11,
|
|
242
|
+
pgTable as pgTable12,
|
|
243
|
+
primaryKey as primaryKey8,
|
|
244
|
+
text as text12
|
|
245
|
+
} from "drizzle-orm/pg-core";
|
|
246
|
+
var phaseUsage = pgTable12(
|
|
247
|
+
"phase_usage",
|
|
248
|
+
{
|
|
249
|
+
itemId: integer11("item_id").notNull(),
|
|
250
|
+
phaseIdx: integer11("phase_idx").notNull(),
|
|
251
|
+
tokensUp: bigint4("tokens_up", { mode: "number" }).notNull().default(0),
|
|
252
|
+
tokensDown: bigint4("tokens_down", { mode: "number" }).notNull().default(0),
|
|
253
|
+
activeMs: bigint4("active_ms", { mode: "number" }).notNull().default(0),
|
|
254
|
+
peakContextPct: doublePrecision3("peak_context_pct").notNull().default(0),
|
|
255
|
+
lastTotalIn: bigint4("last_total_in", { mode: "number" }),
|
|
256
|
+
lastTotalOut: bigint4("last_total_out", { mode: "number" }),
|
|
257
|
+
claudeSessionId: text12("claude_session_id")
|
|
258
|
+
},
|
|
259
|
+
(t) => [primaryKey8({ columns: [t.itemId, t.phaseIdx] })]
|
|
260
|
+
);
|
|
261
|
+
|
|
262
|
+
// src/shared/db/phaseUsageMessages.ts
|
|
263
|
+
import { integer as integer12, pgTable as pgTable13, primaryKey as primaryKey9, text as text13 } from "drizzle-orm/pg-core";
|
|
264
|
+
var phaseUsageMessages = pgTable13(
|
|
265
|
+
"phase_usage_messages",
|
|
266
|
+
{
|
|
267
|
+
itemId: integer12("item_id").notNull(),
|
|
268
|
+
phaseIdx: integer12("phase_idx").notNull(),
|
|
269
|
+
messageId: text13("message_id").notNull()
|
|
270
|
+
},
|
|
271
|
+
(t) => [primaryKey9({ columns: [t.itemId, t.phaseIdx, t.messageId] })]
|
|
272
|
+
);
|
|
273
|
+
|
|
274
|
+
// src/shared/db/repoConfigs.ts
|
|
275
|
+
import { jsonb, pgTable as pgTable14, text as text14, timestamp as timestamp6 } from "drizzle-orm/pg-core";
|
|
276
|
+
var repoConfigs = pgTable14("repo_configs", {
|
|
277
|
+
repoKey: text14("repo_key").primaryKey(),
|
|
278
|
+
config: jsonb().$type().notNull(),
|
|
279
|
+
updatedAt: timestamp6("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
280
|
+
});
|
|
281
|
+
|
|
282
|
+
// src/shared/db/usagePeaks.ts
|
|
283
|
+
import {
|
|
284
|
+
bigint as bigint5,
|
|
285
|
+
boolean as boolean2,
|
|
286
|
+
doublePrecision as doublePrecision4,
|
|
287
|
+
integer as integer13,
|
|
288
|
+
pgTable as pgTable15,
|
|
289
|
+
primaryKey as primaryKey10,
|
|
290
|
+
text as text15,
|
|
291
|
+
timestamp as timestamp7
|
|
292
|
+
} from "drizzle-orm/pg-core";
|
|
293
|
+
var usagePeaks = pgTable15(
|
|
294
|
+
"usage_peaks",
|
|
295
|
+
{
|
|
296
|
+
window: text15().$type().notNull(),
|
|
297
|
+
resetsAt: bigint5("resets_at", { mode: "number" }).notNull(),
|
|
298
|
+
segment: integer13().notNull().default(0),
|
|
299
|
+
usedPercentage: doublePrecision4("used_percentage").notNull(),
|
|
300
|
+
resetDetected: boolean2("reset_detected").notNull().default(false),
|
|
301
|
+
tokensUp: bigint5("tokens_up", { mode: "number" }).notNull().default(0),
|
|
302
|
+
tokensDown: bigint5("tokens_down", { mode: "number" }).notNull().default(0),
|
|
303
|
+
createdAt: timestamp7("created_at", { withTimezone: true }).notNull().defaultNow()
|
|
304
|
+
},
|
|
305
|
+
(t) => [primaryKey10({ columns: [t.window, t.resetsAt, t.segment] })]
|
|
306
|
+
);
|
|
307
|
+
|
|
308
|
+
// src/shared/db/userConfig.ts
|
|
309
|
+
import { jsonb as jsonb2, pgTable as pgTable16, smallint, timestamp as timestamp8 } from "drizzle-orm/pg-core";
|
|
310
|
+
var userConfig = pgTable16("user_config", {
|
|
311
|
+
id: smallint().primaryKey().default(1),
|
|
312
|
+
config: jsonb2().$type().notNull(),
|
|
313
|
+
updatedAt: timestamp8("updated_at", { withTimezone: true }).notNull().defaultNow()
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
// src/shared/db/schema.ts
|
|
317
|
+
var metadata = pgTable17("metadata", {
|
|
318
|
+
key: text16().primaryKey(),
|
|
319
|
+
value: text16().notNull()
|
|
320
|
+
});
|
|
321
|
+
var feeds = pgTable17("feeds", {
|
|
322
|
+
id: integer14().generatedByDefaultAsIdentity().primaryKey(),
|
|
323
|
+
url: text16().notNull().unique()
|
|
324
|
+
});
|
|
325
|
+
var schema = {
|
|
326
|
+
items,
|
|
327
|
+
comments,
|
|
328
|
+
links,
|
|
329
|
+
planPhases,
|
|
330
|
+
planTasks,
|
|
331
|
+
itemGitRefs,
|
|
332
|
+
metadata,
|
|
333
|
+
feeds,
|
|
334
|
+
usagePeaks,
|
|
335
|
+
backups,
|
|
336
|
+
phaseUsage,
|
|
337
|
+
phaseUsageMessages,
|
|
338
|
+
phaseCycleContext,
|
|
339
|
+
phaseSessions,
|
|
340
|
+
repoConfigs,
|
|
341
|
+
inboxMessages,
|
|
342
|
+
userConfig,
|
|
343
|
+
jobRuns
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
// src/commands/backlog/addFeed.ts
|
|
347
|
+
async function addFeed(db, url) {
|
|
348
|
+
const inserted = await db.insert(feeds).values({ url }).onConflictDoNothing({ target: feeds.url }).returning({ id: feeds.id });
|
|
349
|
+
return inserted.length > 0;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// src/commands/backlog/listFeeds.ts
|
|
353
|
+
import { asc } from "drizzle-orm";
|
|
354
|
+
async function listFeeds(db) {
|
|
355
|
+
const rows = await db.select({ url: feeds.url }).from(feeds).orderBy(asc(feeds.id));
|
|
356
|
+
return rows.map((r) => r.url);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// src/commands/backlog/seedNewsFeeds.ts
|
|
360
|
+
function legacyFeeds(raw) {
|
|
361
|
+
const news = raw.news;
|
|
362
|
+
const feeds2 = news?.feeds;
|
|
363
|
+
return Array.isArray(feeds2) ? feeds2.filter((f) => typeof f === "string") : [];
|
|
364
|
+
}
|
|
365
|
+
async function seedNewsFeeds(db) {
|
|
366
|
+
const existing = await listFeeds(db);
|
|
367
|
+
if (existing.length > 0) return;
|
|
368
|
+
const projectFeeds = legacyFeeds(loadProjectConfig());
|
|
369
|
+
const configFeeds = projectFeeds.length > 0 ? projectFeeds : legacyFeeds(loadGlobalConfigRaw());
|
|
370
|
+
for (const url of configFeeds) {
|
|
371
|
+
await addFeed(db, url);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
// src/shared/db/cleanupFalseResetSegments.ts
|
|
376
|
+
import { and as and2, eq as eq2 } from "drizzle-orm";
|
|
377
|
+
|
|
378
|
+
// src/shared/db/recordWindowPeak.ts
|
|
379
|
+
import { sql } from "drizzle-orm";
|
|
380
|
+
|
|
381
|
+
// src/shared/db/applyReading.ts
|
|
382
|
+
import { and, eq, gt } from "drizzle-orm";
|
|
383
|
+
var RESET_DROP_THRESHOLD = 3;
|
|
384
|
+
var at = ({ window, resetsAt }, segment) => segment === void 0 ? and(eq(usagePeaks.window, window), eq(usagePeaks.resetsAt, resetsAt)) : and(
|
|
385
|
+
eq(usagePeaks.window, window),
|
|
386
|
+
eq(usagePeaks.resetsAt, resetsAt),
|
|
387
|
+
eq(usagePeaks.segment, segment)
|
|
388
|
+
);
|
|
389
|
+
var insertSegment = (c, segment, usedPercentage) => c.tx.insert(usagePeaks).values({
|
|
390
|
+
window: c.window,
|
|
391
|
+
resetsAt: c.resetsAt,
|
|
392
|
+
segment,
|
|
393
|
+
usedPercentage
|
|
394
|
+
});
|
|
395
|
+
var load = (c) => c.tx.select().from(usagePeaks).where(at(c)).orderBy(usagePeaks.segment);
|
|
396
|
+
async function applyReading(c, usedPercentage) {
|
|
397
|
+
const segments = await load(c);
|
|
398
|
+
if (segments.length === 0) await insertSegment(c, 0, usedPercentage);
|
|
399
|
+
else await reconcile(c, segments, usedPercentage);
|
|
400
|
+
}
|
|
401
|
+
async function reconcile(c, segments, usedPercentage) {
|
|
402
|
+
const reached = segments.find((s) => usedPercentage >= s.usedPercentage);
|
|
403
|
+
if (reached) {
|
|
404
|
+
await collapseToReached(c, reached, usedPercentage);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
const active = segments[segments.length - 1];
|
|
408
|
+
if (usedPercentage < active.usedPercentage - RESET_DROP_THRESHOLD) {
|
|
409
|
+
await openReset(c, active, usedPercentage);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
async function collapseToReached(c, reached, usedPercentage) {
|
|
413
|
+
await c.tx.delete(usagePeaks).where(and(at(c), gt(usagePeaks.segment, reached.segment)));
|
|
414
|
+
await c.tx.update(usagePeaks).set({ usedPercentage, resetDetected: false }).where(at(c, reached.segment));
|
|
415
|
+
}
|
|
416
|
+
async function openReset(c, active, usedPercentage) {
|
|
417
|
+
await c.tx.update(usagePeaks).set({ resetDetected: true }).where(at(c, active.segment));
|
|
418
|
+
await insertSegment(c, active.segment + 1, usedPercentage);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
// src/shared/db/recordWindowPeak.ts
|
|
422
|
+
var lock = ({ tx, window, resetsAt }) => tx.execute(
|
|
423
|
+
sql`SELECT pg_advisory_xact_lock(hashtextextended(${`${window}:${resetsAt}`}, 0))`
|
|
424
|
+
);
|
|
425
|
+
async function recordWindowPeak(db, window, resetsAt, usedPercentage, now = Math.floor(Date.now() / 1e3)) {
|
|
426
|
+
if (now >= resetsAt) return;
|
|
427
|
+
await db.transaction(async (tx) => {
|
|
428
|
+
const c = { tx, window, resetsAt };
|
|
429
|
+
await lock(c);
|
|
430
|
+
await applyReading(c, usedPercentage);
|
|
431
|
+
});
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// src/shared/db/cleanupFalseResetSegments.ts
|
|
435
|
+
var MIGRATION_KEY = "usage_peaks_false_reset_cleanup";
|
|
436
|
+
var climbsBack = (top, peak) => top !== void 0 && peak > top - RESET_DROP_THRESHOLD;
|
|
437
|
+
function mergeDown(stack, peak) {
|
|
438
|
+
while (climbsBack(stack.at(-1), peak))
|
|
439
|
+
peak = Math.max(peak, stack.pop() ?? peak);
|
|
440
|
+
return peak;
|
|
441
|
+
}
|
|
442
|
+
function collapseSegments(peaks) {
|
|
443
|
+
const stack = [];
|
|
444
|
+
for (const peak of peaks) stack.push(mergeDown(stack, peak));
|
|
445
|
+
return stack.map((usedPercentage, i) => ({
|
|
446
|
+
segment: i,
|
|
447
|
+
usedPercentage,
|
|
448
|
+
resetDetected: i < stack.length - 1
|
|
449
|
+
}));
|
|
450
|
+
}
|
|
451
|
+
var sig = (s) => `${s.segment}:${s.usedPercentage}:${s.resetDetected}`;
|
|
452
|
+
var isUnchanged = (rows, collapsed) => rows.length === collapsed.length && rows.every((r, i) => sig(r) === sig(collapsed[i]));
|
|
453
|
+
var groupByCycle = (rows) => rows.reduce((cycles, r) => {
|
|
454
|
+
const key = `${r.window} ${r.resetsAt}`;
|
|
455
|
+
return cycles.set(key, [...cycles.get(key) ?? [], r]);
|
|
456
|
+
}, /* @__PURE__ */ new Map());
|
|
457
|
+
var earliest = (rows) => rows.reduce((a, r) => r.createdAt < a ? r.createdAt : a, rows[0].createdAt);
|
|
458
|
+
async function overwrite(tx, { window, resetsAt }, createdAt, collapsed) {
|
|
459
|
+
await tx.delete(usagePeaks).where(
|
|
460
|
+
and2(eq2(usagePeaks.window, window), eq2(usagePeaks.resetsAt, resetsAt))
|
|
461
|
+
);
|
|
462
|
+
await tx.insert(usagePeaks).values(collapsed.map((c) => ({ window, resetsAt, createdAt, ...c })));
|
|
463
|
+
}
|
|
464
|
+
async function rewriteCycle(tx, rows) {
|
|
465
|
+
const collapsed = collapseSegments(rows.map((r) => r.usedPercentage));
|
|
466
|
+
if (isUnchanged(rows, collapsed)) return;
|
|
467
|
+
await overwrite(tx, rows[0], earliest(rows), collapsed);
|
|
468
|
+
}
|
|
469
|
+
var loadAll = (tx) => tx.select().from(usagePeaks).orderBy(usagePeaks.window, usagePeaks.resetsAt, usagePeaks.segment);
|
|
470
|
+
var markRun = (tx) => tx.insert(metadata).values({ key: MIGRATION_KEY, value: "done" }).onConflictDoNothing();
|
|
471
|
+
async function alreadyRun(tx) {
|
|
472
|
+
const done = await tx.select().from(metadata).where(eq2(metadata.key, MIGRATION_KEY));
|
|
473
|
+
return done.length > 0;
|
|
474
|
+
}
|
|
475
|
+
async function cleanupFalseResetSegments(db) {
|
|
476
|
+
await db.transaction(async (tx) => {
|
|
477
|
+
if (await alreadyRun(tx)) return;
|
|
478
|
+
for (const rows of groupByCycle(await loadAll(tx)).values()) {
|
|
479
|
+
await rewriteCycle(tx, rows);
|
|
480
|
+
}
|
|
481
|
+
await markRun(tx);
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
// src/shared/db/Db.ts
|
|
486
|
+
import {
|
|
487
|
+
drizzle as drizzleNodePg
|
|
488
|
+
} from "drizzle-orm/node-postgres";
|
|
489
|
+
function makeOrmFromPool(pool) {
|
|
490
|
+
return drizzleNodePg(pool, { schema });
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
// src/shared/db/migrations/assertMigrationsInSync.ts
|
|
494
|
+
var behindMessage = (applied, expected) => `Assist database is behind this build (applied migration ${applied}, build expects ${expected}).
|
|
495
|
+
Run \`assist db migrate\` to apply the pending migrations.`;
|
|
496
|
+
var aheadMessage = (applied, expected) => `Assist database is ahead of this build (applied migration ${applied}, build knows ${expected}).
|
|
497
|
+
Update assist (\`assist update\`) to a build that includes the newer migrations.`;
|
|
498
|
+
async function assertMigrationsInSync(exec) {
|
|
499
|
+
const status = await getMigrationStatus(exec);
|
|
500
|
+
if (status.state === "behind")
|
|
501
|
+
throw new Error(behindMessage(status.applied, status.expected));
|
|
502
|
+
if (status.state === "ahead")
|
|
503
|
+
throw new Error(aheadMessage(status.applied, status.expected));
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// src/shared/db/initDb.ts
|
|
507
|
+
async function initDb(pool) {
|
|
508
|
+
try {
|
|
509
|
+
await assertMigrationsInSync(pgExecutor(pool));
|
|
510
|
+
} catch (error) {
|
|
511
|
+
throw toDatabaseConnectionError(error);
|
|
512
|
+
}
|
|
513
|
+
const orm = makeOrmFromPool(pool);
|
|
514
|
+
await seedNewsFeeds(orm);
|
|
515
|
+
await runUsagePeakCleanup(orm);
|
|
516
|
+
return orm;
|
|
517
|
+
}
|
|
518
|
+
async function runUsagePeakCleanup(orm) {
|
|
519
|
+
try {
|
|
520
|
+
await cleanupFalseResetSegments(orm);
|
|
521
|
+
} catch (error) {
|
|
522
|
+
console.error(
|
|
523
|
+
`${(/* @__PURE__ */ new Date()).toISOString()} usage-peaks cleanup failed: ${String(error)}`
|
|
524
|
+
);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// src/shared/db/getDb.ts
|
|
529
|
+
var _connecting;
|
|
530
|
+
var _pool;
|
|
531
|
+
var _orm;
|
|
532
|
+
function discardPool() {
|
|
533
|
+
void _pool?.end().catch(() => {
|
|
534
|
+
});
|
|
535
|
+
_connecting = void 0;
|
|
536
|
+
_pool = void 0;
|
|
537
|
+
}
|
|
538
|
+
function getDb() {
|
|
539
|
+
if (_orm) return Promise.resolve(_orm);
|
|
540
|
+
if (_connecting) return _connecting;
|
|
541
|
+
try {
|
|
542
|
+
_pool = createPool();
|
|
543
|
+
loadedDb.close = closeDb;
|
|
544
|
+
} catch (error) {
|
|
545
|
+
return Promise.reject(error);
|
|
546
|
+
}
|
|
547
|
+
_connecting = initDb(_pool);
|
|
548
|
+
void _connecting.then((orm) => _orm = orm).catch(discardPool);
|
|
549
|
+
return _connecting;
|
|
550
|
+
}
|
|
551
|
+
async function withDbClient(fn) {
|
|
552
|
+
await getDb();
|
|
553
|
+
const pool = _pool;
|
|
554
|
+
if (!pool) {
|
|
555
|
+
throw new Error("COPY streaming requires a pooled Postgres connection.");
|
|
556
|
+
}
|
|
557
|
+
const client = await pool.connect();
|
|
558
|
+
try {
|
|
559
|
+
return await fn(client);
|
|
560
|
+
} finally {
|
|
561
|
+
client.release();
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
async function closeDb() {
|
|
565
|
+
const pool = _pool;
|
|
566
|
+
if (!pool) return;
|
|
567
|
+
_pool = void 0;
|
|
568
|
+
_orm = void 0;
|
|
569
|
+
_connecting = void 0;
|
|
570
|
+
await pool.end();
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
export {
|
|
574
|
+
backups,
|
|
575
|
+
items,
|
|
576
|
+
comments,
|
|
577
|
+
inboxMessages,
|
|
578
|
+
itemGitRefs,
|
|
579
|
+
jobRuns,
|
|
580
|
+
links,
|
|
581
|
+
phaseCycleContext,
|
|
582
|
+
phaseSessions,
|
|
583
|
+
phaseUsage,
|
|
584
|
+
phaseUsageMessages,
|
|
585
|
+
planPhases,
|
|
586
|
+
planTasks,
|
|
587
|
+
repoConfigs,
|
|
588
|
+
usagePeaks,
|
|
589
|
+
userConfig,
|
|
590
|
+
metadata,
|
|
591
|
+
feeds,
|
|
592
|
+
addFeed,
|
|
593
|
+
listFeeds,
|
|
594
|
+
recordWindowPeak,
|
|
595
|
+
getDb,
|
|
596
|
+
withDbClient,
|
|
597
|
+
closeDb
|
|
598
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
requestSession
|
|
3
|
+
} from "./chunk-2DCOBBPI.js";
|
|
4
|
+
import {
|
|
5
|
+
loadConfig
|
|
6
|
+
} from "./chunk-KGFZYUE2.js";
|
|
7
|
+
|
|
8
|
+
// src/commands/sessions/shared/requestPromptSession.ts
|
|
9
|
+
function requestPromptSession(prompt, cwd, options) {
|
|
10
|
+
return requestSession({
|
|
11
|
+
type: "create",
|
|
12
|
+
prompt,
|
|
13
|
+
cwd,
|
|
14
|
+
harness: loadConfig().harness.engine,
|
|
15
|
+
inPlace: options?.inPlace === true,
|
|
16
|
+
launchedFrom: options?.launchedFrom ?? process.env.ASSIST_SESSION_ID
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
requestPromptSession
|
|
22
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/shared/azureDevops/decodeUrlPart.ts
|
|
2
|
+
function decodeUrlPart(part) {
|
|
3
|
+
try {
|
|
4
|
+
return decodeURIComponent(part);
|
|
5
|
+
} catch {
|
|
6
|
+
return part;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// src/shared/azureDevops/parseAzureDevopsRemote.ts
|
|
11
|
+
var HTTPS_DEV = /^https?:\/\/(?:[^@/]+@)?dev\.azure\.com\/([^/]+)\/([^/]+)\/_git\/([^/]+)$/i;
|
|
12
|
+
var HTTPS_VISUALSTUDIO = /^https?:\/\/(?:[^@/]+@)?([^./@]+)\.visualstudio\.com\/(?:DefaultCollection\/)?([^/]+)\/_git\/([^/]+)$/i;
|
|
13
|
+
var SSH = /^(?:ssh:\/\/)?[^@/]+@(?:ssh\.dev\.azure\.com|vs-ssh\.visualstudio\.com)(?::\d+)?[:/]v3\/([^/]+)\/([^/]+)\/([^/]+)$/i;
|
|
14
|
+
function parseAzureDevopsRemote(raw) {
|
|
15
|
+
const trimmed = raw.trim().replace(/\/+$/, "").replace(/\.git$/i, "");
|
|
16
|
+
const match = HTTPS_DEV.exec(trimmed) ?? HTTPS_VISUALSTUDIO.exec(trimmed) ?? SSH.exec(trimmed);
|
|
17
|
+
if (!match) return null;
|
|
18
|
+
const [, org, project, repo] = match.map(decodeUrlPart);
|
|
19
|
+
return { org, project, repo };
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
decodeUrlPart,
|
|
24
|
+
parseAzureDevopsRemote
|
|
25
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveCapability
|
|
3
|
+
} from "./chunk-OGJ6AZK4.js";
|
|
4
|
+
import {
|
|
5
|
+
harnessAdapter,
|
|
6
|
+
parseRolloutEntry
|
|
7
|
+
} from "./chunk-DLNPUAH7.js";
|
|
8
|
+
import {
|
|
9
|
+
harnesses
|
|
10
|
+
} from "./chunk-XDIVXGPQ.js";
|
|
11
|
+
|
|
12
|
+
// src/commands/sessions/summarise/readTranscriptHead.ts
|
|
13
|
+
import * as fs from "fs";
|
|
14
|
+
function readTranscriptHead(filePath, maxBytes = 65536) {
|
|
15
|
+
try {
|
|
16
|
+
const fd = fs.openSync(filePath, "r");
|
|
17
|
+
try {
|
|
18
|
+
const buf = Buffer.alloc(maxBytes);
|
|
19
|
+
const bytesRead = fs.readSync(fd, buf, 0, buf.length, 0);
|
|
20
|
+
return buf.toString("utf8", 0, bytesRead);
|
|
21
|
+
} finally {
|
|
22
|
+
fs.closeSync(fd);
|
|
23
|
+
}
|
|
24
|
+
} catch {
|
|
25
|
+
return void 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// src/commands/sessions/shared/locateConversation.ts
|
|
30
|
+
async function locateConversation(conversationId) {
|
|
31
|
+
for (const kind of Object.keys(harnesses)) {
|
|
32
|
+
const adapter = harnessAdapter(kind);
|
|
33
|
+
const reader = adapter.conversation.reader;
|
|
34
|
+
if (!reader) continue;
|
|
35
|
+
if (!resolveCapability(adapter.capabilities, "transcript.read").supported)
|
|
36
|
+
continue;
|
|
37
|
+
const filePath = await adapter.conversation.locate(conversationId);
|
|
38
|
+
if (filePath) return { reader, filePath };
|
|
39
|
+
}
|
|
40
|
+
return void 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// src/commands/sessions/shared/transcriptMessages.ts
|
|
44
|
+
function transcriptMessages(reader, lines) {
|
|
45
|
+
const entries = lines.flatMap((line) => {
|
|
46
|
+
const entry = line.trim() ? parseRolloutEntry(line) : null;
|
|
47
|
+
return entry ? [entry] : [];
|
|
48
|
+
});
|
|
49
|
+
return reader.events(entries).flatMap((event) => {
|
|
50
|
+
if (event.kind === "message")
|
|
51
|
+
return [{ role: event.role, text: event.text }];
|
|
52
|
+
if (event.kind === "tool")
|
|
53
|
+
return [{ role: "tool", tool: event.tool, target: event.target }];
|
|
54
|
+
if (event.kind === "interrupt") return [{ role: "interrupt" }];
|
|
55
|
+
return [];
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
readTranscriptHead,
|
|
61
|
+
locateConversation,
|
|
62
|
+
transcriptMessages
|
|
63
|
+
};
|