@staff0rd/assist 0.1143.0 → 0.1143.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/acceptanceCriteria-CJ4GRITK.js +44 -0
- package/dist/activity-2SEJVUW5.js +73 -0
- package/dist/add-HXSZYGPR.js +51 -0
- package/dist/add-QQQ472AZ.js +250 -0
- package/dist/add-XWJN42HG.js +140 -0
- package/dist/addActivity-EZZ6TFDF.js +120 -0
- package/dist/addPhase-LOT43TS7.js +152 -0
- package/dist/addRule-J432LIS3.js +102 -0
- package/dist/addUserRule-XO2BNQFH.js +136 -0
- package/dist/adviceFragments-5XVE6JXX.js +41 -0
- package/dist/advise-E6QAZIMK.js +96 -0
- package/dist/analyze-2ECBFV3E.js +63 -0
- package/dist/ask-ESCDDQH5.js +47 -0
- package/dist/askCheck-EYZOXM6D.js +303 -0
- package/dist/askDesign-ZMHB4WKG.js +137 -0
- package/dist/askQuestion-EQV37YPA.js +149 -0
- package/dist/associateGithub-VYQUEKWJ.js +95 -0
- package/dist/associateJira-EUNZOJJC.js +83 -0
- package/dist/backup-3SNDW5JN.js +64 -0
- package/dist/blockCodeComments-PZHXN2WG.js +311 -0
- package/dist/branch-4YGQB3MS.js +98 -0
- package/dist/browserConsole-6ZRED7DG.js +50 -0
- package/dist/browserInspect-2IOKKWOF.js +42 -0
- package/dist/browserRun-JJVVNL6H.js +52 -0
- package/dist/browserSnapshot-Q3DUNUYP.js +32 -0
- package/dist/browserStatus-MEQAEC3K.js +38 -0
- package/dist/built-version +1 -1
- package/dist/chart-4G75ADCW.js +80 -0
- package/dist/check-QRHG4J7G.js +219 -0
- package/dist/checkBuildLocks-UBGUSNX5.js +9 -0
- package/dist/chunk-2DBSXFUE.js +40 -0
- package/dist/chunk-2DCOBBPI.js +50 -0
- package/dist/chunk-2EW62DM5.js +17 -0
- package/dist/chunk-2HT3GIJD.js +130 -0
- package/dist/chunk-2JYMVJGZ.js +21 -0
- package/dist/chunk-2KG6ZPX4.js +52 -0
- package/dist/chunk-2O7TIRCQ.js +39 -0
- package/dist/chunk-3E7RVOMC.js +27 -0
- package/dist/chunk-3FSX26XC.js +25 -0
- package/dist/chunk-3JXMQFUS.js +14 -0
- package/dist/chunk-3KLTYFPV.js +57 -0
- package/dist/chunk-3NK55YVZ.js +48 -0
- package/dist/chunk-3OMKOT6D.js +14 -0
- package/dist/chunk-3PM5JCHE.js +72 -0
- package/dist/chunk-3QKE2ONF.js +39 -0
- package/dist/chunk-3XQHTIHW.js +20 -0
- package/dist/chunk-4BVUY25U.js +21 -0
- package/dist/chunk-4GMAYXOS.js +18 -0
- package/dist/chunk-4HKB2TAG.js +11 -0
- package/dist/chunk-4JIXM5NT.js +21 -0
- package/dist/chunk-4L7TQE67.js +22 -0
- package/dist/chunk-4LFRCSJF.js +46 -0
- package/dist/chunk-4TIDERIW.js +12 -0
- package/dist/chunk-4VDWPVY6.js +258 -0
- package/dist/chunk-4XHBAEMS.js +37 -0
- package/dist/chunk-4Y4ADPEK.js +10 -0
- package/dist/chunk-4YAIQN3S.js +77 -0
- package/dist/chunk-4YHDWC5E.js +33 -0
- package/dist/chunk-547VKFOA.js +15 -0
- package/dist/chunk-54QTHCXV.js +12 -0
- package/dist/chunk-556BOFTS.js +44 -0
- package/dist/chunk-5G5VG5P7.js +14 -0
- package/dist/chunk-5JOVEUBS.js +17 -0
- package/dist/chunk-5KSIOK73.js +25 -0
- package/dist/chunk-5MFQ7T3G.js +40 -0
- package/dist/chunk-5PKWV3WT.js +8 -0
- package/dist/chunk-5VW2GS73.js +42 -0
- package/dist/chunk-5WQDLREX.js +40 -0
- package/dist/chunk-66EUBGD6.js +193 -0
- package/dist/chunk-6DGPQ67E.js +26 -0
- package/dist/chunk-6EYCU3MQ.js +41 -0
- package/dist/chunk-6G2ADBNV.js +19 -0
- package/dist/chunk-6H4DP3ZG.js +14 -0
- package/dist/chunk-6LI6DYBH.js +170 -0
- package/dist/chunk-6MNOEMDU.js +45 -0
- package/dist/chunk-6NDXAN45.js +90 -0
- package/dist/chunk-6NXP34PE.js +20 -0
- package/dist/chunk-6PF5BEEE.js +37 -0
- package/dist/chunk-6SOPR77J.js +12 -0
- package/dist/chunk-6T53CG7D.js +56 -0
- package/dist/chunk-7CEIET2O.js +31 -0
- package/dist/chunk-7DSWCPDZ.js +225 -0
- package/dist/chunk-7HMZTDGB.js +152 -0
- package/dist/chunk-7HNRCA3N.js +12 -0
- package/dist/chunk-7NPZZRMK.js +77 -0
- package/dist/chunk-7O466DJY.js +36 -0
- package/dist/chunk-7TT6C4IC.js +100 -0
- package/dist/chunk-7ZN4KX7V.js +26 -0
- package/dist/chunk-A5ELMTXR.js +143 -0
- package/dist/chunk-ABLDOQ4B.js +42 -0
- package/dist/chunk-ADIYP3KC.js +11 -0
- package/dist/chunk-ADLCDG2V.js +61 -0
- package/dist/chunk-AKF654AT.js +32 -0
- package/dist/chunk-ALAS5LZJ.js +22 -0
- package/dist/chunk-ANCYNQJA.js +16 -0
- package/dist/chunk-APS7GTRT.js +23 -0
- package/dist/chunk-APZ6ZTDA.js +8 -0
- package/dist/chunk-AVLELL42.js +34 -0
- package/dist/chunk-B3JSQA5D.js +25 -0
- package/dist/chunk-B5ZOANOD.js +51 -0
- package/dist/chunk-B6RAZW2L.js +14 -0
- package/dist/chunk-B7B26YPF.js +6 -0
- package/dist/chunk-BAHQJHYD.js +16 -0
- package/dist/chunk-BBXEZVRL.js +38 -0
- package/dist/chunk-BFQSGIN6.js +37 -0
- package/dist/chunk-BJDGVLYX.js +20 -0
- package/dist/chunk-BO5JCCC5.js +17 -0
- package/dist/chunk-BPZBZQEY.js +7450 -0
- package/dist/chunk-BV2V6RTH.js +89 -0
- package/dist/chunk-BVHK2VVT.js +31 -0
- package/dist/chunk-C3MGHR3N.js +25 -0
- package/dist/chunk-CDD4ZTG7.js +31 -0
- package/dist/chunk-CDU6M5IX.js +50 -0
- package/dist/chunk-CGYVYHMM.js +49 -0
- package/dist/chunk-CQQFVAGK.js +46 -0
- package/dist/chunk-CXJJGUTK.js +44 -0
- package/dist/chunk-D7UZLH36.js +8 -0
- package/dist/chunk-DBQTGW7F.js +48 -0
- package/dist/chunk-DIAC4XYA.js +29 -0
- package/dist/chunk-DISNKALJ.js +74 -0
- package/dist/chunk-DLNPUAH7.js +3932 -0
- package/dist/chunk-DS2YJZZY.js +34 -0
- package/dist/chunk-DZGYHAE7.js +31 -0
- package/dist/chunk-E36L7ASL.js +19 -0
- package/dist/chunk-E7AZAWIV.js +478 -0
- package/dist/chunk-EHRQ6OST.js +53 -0
- package/dist/chunk-EI42YEVC.js +208 -0
- package/dist/chunk-ENBVLWTC.js +25 -0
- package/dist/chunk-ENTJ2N5Y.js +34 -0
- package/dist/chunk-ERAGZGT5.js +166 -0
- package/dist/chunk-ERG23IG5.js +12 -0
- package/dist/chunk-EW2ZM2PC.js +6 -0
- package/dist/chunk-EYM57SNL.js +60 -0
- package/dist/chunk-F2LP5MBV.js +26 -0
- package/dist/chunk-FOPR6LRY.js +121 -0
- package/dist/chunk-FPWL4VRC.js +12 -0
- package/dist/chunk-FVZP4ULO.js +14 -0
- package/dist/chunk-FXGN4KLP.js +210 -0
- package/dist/chunk-FYYZG4GY.js +47 -0
- package/dist/chunk-G3ROBZ4I.js +31 -0
- package/dist/chunk-G44QYJ57.js +106 -0
- package/dist/chunk-GF4MNBOX.js +95 -0
- package/dist/chunk-GL5GKF5A.js +68 -0
- package/dist/chunk-GOGGPW2L.js +143 -0
- package/dist/chunk-GQF23TWI.js +14 -0
- package/dist/chunk-GRXFWFGP.js +49 -0
- package/dist/chunk-GVI4JSG7.js +13 -0
- package/dist/chunk-GVVK5XFZ.js +42 -0
- package/dist/chunk-GYAXLTV6.js +37 -0
- package/dist/chunk-H3WYQ2NE.js +15 -0
- package/dist/chunk-H6LFISSF.js +40 -0
- package/dist/chunk-HCANRBFK.js +19 -0
- package/dist/chunk-HHKS3UZB.js +16 -0
- package/dist/chunk-HKGCLAZ7.js +8 -0
- package/dist/chunk-HN7MFXZ7.js +46 -0
- package/dist/chunk-HSWDSL22.js +50 -0
- package/dist/chunk-HWUAJTHE.js +92 -0
- package/dist/chunk-HXBNHLL3.js +33 -0
- package/dist/chunk-I2ZQXBOS.js +108 -0
- package/dist/chunk-I3TEQBTO.js +88 -0
- package/dist/chunk-I5MLH7WJ.js +27 -0
- package/dist/chunk-IB543JQJ.js +70 -0
- package/dist/chunk-IBAO4LIZ.js +23 -0
- package/dist/chunk-IBPSXDUB.js +8 -0
- package/dist/chunk-IEK6CQQH.js +23 -0
- package/dist/chunk-IIFOAUOM.js +34 -0
- package/dist/chunk-IMKMNPRL.js +114 -0
- package/dist/chunk-INBM4BQQ.js +27 -0
- package/dist/chunk-IOKBCYSG.js +29 -0
- package/dist/chunk-IOYGR6YV.js +23 -0
- package/dist/chunk-IV7Z4UVQ.js +150 -0
- package/dist/chunk-IVBWOIGE.js +33 -0
- package/dist/chunk-IYTAHYEL.js +98 -0
- package/dist/chunk-IZBQH3LW.js +17 -0
- package/dist/chunk-J3C454L5.js +741 -0
- package/dist/chunk-J3GISX67.js +23 -0
- package/dist/chunk-JHBA5IZR.js +20 -0
- package/dist/chunk-JHIGA7GN.js +43 -0
- package/dist/chunk-JIWFLALZ.js +269 -0
- package/dist/chunk-JM57BCD6.js +30 -0
- package/dist/chunk-JNCFHWBK.js +30 -0
- package/dist/chunk-JNEYUOQ3.js +83 -0
- package/dist/chunk-JPM7HCLI.js +23 -0
- package/dist/chunk-JPRADR2E.js +10 -0
- package/dist/chunk-JRK7JDU4.js +30 -0
- package/dist/chunk-JVG5AJA2.js +29 -0
- package/dist/chunk-JVTCXR7C.js +72 -0
- package/dist/chunk-JW6QOUMN.js +18 -0
- package/dist/chunk-K45LIKCT.js +37 -0
- package/dist/chunk-K4T24UGW.js +18 -0
- package/dist/chunk-K4TQJQWA.js +44 -0
- package/dist/chunk-K5LOYASR.js +18 -0
- package/dist/chunk-K6NKWRK4.js +30 -0
- package/dist/chunk-KD2PWI4Z.js +48 -0
- package/dist/chunk-KGFZYUE2.js +54 -0
- package/dist/chunk-KHOVDX2Y.js +21 -0
- package/dist/chunk-KLEL6TMJ.js +22 -0
- package/dist/chunk-KNXHXMFT.js +77 -0
- package/dist/chunk-KP5S3FE5.js +13 -0
- package/dist/chunk-KUCVY5R7.js +40 -0
- package/dist/chunk-KY77XKAU.js +26 -0
- package/dist/chunk-L363MNYZ.js +14 -0
- package/dist/chunk-L73KKI5J.js +111 -0
- package/dist/chunk-LBAPKP6M.js +473 -0
- package/dist/chunk-LBPOEGTS.js +271 -0
- package/dist/chunk-LDVATRUW.js +23 -0
- package/dist/chunk-LFRSZIAS.js +13 -0
- package/dist/chunk-LKDW2GWH.js +9 -0
- package/dist/chunk-LMHILP5H.js +36 -0
- package/dist/chunk-LMUTL44M.js +58 -0
- package/dist/chunk-LOP6Y256.js +18 -0
- package/dist/chunk-LSBUNT4X.js +32 -0
- package/dist/chunk-M3O2BTJG.js +12 -0
- package/dist/chunk-M5YTH55B.js +284 -0
- package/dist/chunk-MBPVW7BY.js +63 -0
- package/dist/chunk-MELBVXKL.js +36 -0
- package/dist/chunk-MJ44T7R4.js +28 -0
- package/dist/chunk-MJ4RLQ5N.js +177 -0
- package/dist/chunk-MJLABLH5.js +58 -0
- package/dist/chunk-MODUPHYS.js +20 -0
- package/dist/chunk-MRUIXQXS.js +29 -0
- package/dist/chunk-MSCF3PKY.js +26 -0
- package/dist/chunk-MSKC2RCS.js +17 -0
- package/dist/chunk-MY4TNZNI.js +36 -0
- package/dist/chunk-N65VOEFI.js +23 -0
- package/dist/chunk-N755UYFK.js +58 -0
- package/dist/chunk-NBADZOXB.js +24 -0
- package/dist/chunk-NGTSPXSJ.js +9 -0
- package/dist/chunk-NGYZK6AF.js +18 -0
- package/dist/chunk-NH33OKZQ.js +23 -0
- package/dist/chunk-NOHNPOQK.js +49 -0
- package/dist/chunk-NPQGX4IO.js +16 -0
- package/dist/chunk-NQQVL7BY.js +56 -0
- package/dist/chunk-NWNODYLQ.js +25 -0
- package/dist/chunk-NYEGRDOK.js +191 -0
- package/dist/chunk-NZYSENRR.js +50 -0
- package/dist/chunk-O5JIFWMQ.js +39 -0
- package/dist/chunk-O6HFT23O.js +39 -0
- package/dist/chunk-OBC245PJ.js +39 -0
- package/dist/chunk-ODLSWRTS.js +21 -0
- package/dist/chunk-OGJ6AZK4.js +9 -0
- package/dist/chunk-ONODYZ2H.js +146 -0
- package/dist/chunk-ORSRBZ2X.js +15 -0
- package/dist/chunk-OU6Q5ZS3.js +16 -0
- package/dist/chunk-OZNYQOQK.js +25 -0
- package/dist/chunk-P253KAVC.js +75 -0
- package/dist/chunk-P26XSDFU.js +91 -0
- package/dist/chunk-P3RGVQ5B.js +12 -0
- package/dist/chunk-P7FVAGFQ.js +52 -0
- package/dist/chunk-PCF66ALO.js +39 -0
- package/dist/chunk-PD2BTMEY.js +598 -0
- package/dist/chunk-PGQK356A.js +22 -0
- package/dist/chunk-PIDKNOD6.js +25 -0
- package/dist/chunk-PIWSOEVM.js +63 -0
- package/dist/chunk-PRYIRRAS.js +21 -0
- package/dist/chunk-PURNABFX.js +22 -0
- package/dist/chunk-PXQTFJ2N.js +216 -0
- package/dist/chunk-PYACTCZ2.js +13 -0
- package/dist/chunk-PZAEU7LL.js +23 -0
- package/dist/chunk-Q35724GR.js +51 -0
- package/dist/chunk-Q7RUUXND.js +40 -0
- package/dist/chunk-Q7YVMIA3.js +32 -0
- package/dist/chunk-QAJUCN3A.js +76 -0
- package/dist/chunk-QJRCKXTM.js +38 -0
- package/dist/chunk-QKHOYKUQ.js +362 -0
- package/dist/chunk-QPRFHNX7.js +24 -0
- package/dist/chunk-QR7KY3Y6.js +19 -0
- package/dist/chunk-QU6OQZJ2.js +56 -0
- package/dist/chunk-QVQ2OJXX.js +144 -0
- package/dist/chunk-R2HLLDFE.js +36 -0
- package/dist/chunk-R72E45HQ.js +506 -0
- package/dist/chunk-RFMBA6WA.js +18 -0
- package/dist/chunk-RIMA7EFJ.js +35 -0
- package/dist/chunk-RNFWWESE.js +9 -0
- package/dist/chunk-ROBNJX4W.js +68 -0
- package/dist/chunk-ROCHUNJI.js +36 -0
- package/dist/chunk-RPRL6G4R.js +218 -0
- package/dist/chunk-RQFIPKKQ.js +187 -0
- package/dist/chunk-RSLB4ODM.js +30 -0
- package/dist/chunk-RTYIICCX.js +24 -0
- package/dist/chunk-RVABNGZW.js +46 -0
- package/dist/chunk-RXKI4XAU.js +21 -0
- package/dist/chunk-S4S2DD5Z.js +16 -0
- package/dist/chunk-S6FVZYHH.js +16 -0
- package/dist/chunk-S6XYTJU2.js +37 -0
- package/dist/chunk-SB4BG7PH.js +159 -0
- package/dist/chunk-SC4HAADN.js +224 -0
- package/dist/chunk-SDMBTSYP.js +15 -0
- package/dist/chunk-SDOEWLEE.js +22 -0
- package/dist/chunk-SEXIHLGA.js +16 -0
- package/dist/chunk-SOZZKFBX.js +171 -0
- package/dist/chunk-SSKHLBQB.js +15 -0
- package/dist/chunk-SW7FSLHP.js +26 -0
- package/dist/chunk-T2DY3T55.js +10 -0
- package/dist/chunk-T4TPIDXO.js +111 -0
- package/dist/chunk-T7ZPGAB5.js +192 -0
- package/dist/chunk-TA6KQ26I.js +43 -0
- package/dist/chunk-TCTX3UXU.js +19 -0
- package/dist/chunk-TJGF3Z72.js +12 -0
- package/dist/chunk-TK4AJIJZ.js +47 -0
- package/dist/chunk-TK4URTR6.js +104 -0
- package/dist/chunk-TQCCEWWN.js +89 -0
- package/dist/chunk-TUPSNHFZ.js +49 -0
- package/dist/chunk-TVQY3HPZ.js +43 -0
- package/dist/chunk-TZ5PVDAR.js +48 -0
- package/dist/chunk-U732RAGX.js +240 -0
- package/dist/chunk-UEWARAPX.js +37 -0
- package/dist/chunk-UGGH3MEX.js +26 -0
- package/dist/chunk-UJAMN3ML.js +85 -0
- package/dist/chunk-UJBW7FVI.js +384 -0
- package/dist/chunk-UJMXT5CS.js +855 -0
- package/dist/chunk-UN4ABKA7.js +48 -0
- package/dist/chunk-UP6QV5BJ.js +14 -0
- package/dist/chunk-US6TNW5V.js +28 -0
- package/dist/chunk-USKD27FY.js +11 -0
- package/dist/chunk-USVQT2SR.js +94 -0
- package/dist/chunk-UU77KEL6.js +20 -0
- package/dist/chunk-UXXJTR47.js +31 -0
- package/dist/chunk-UYD7R4HL.js +26 -0
- package/dist/chunk-VABNWHSE.js +31 -0
- package/dist/chunk-VAGZIGNN.js +54 -0
- package/dist/chunk-VDE2QVT4.js +14 -0
- package/dist/chunk-VDXS55BC.js +62 -0
- package/dist/chunk-VEZ3FL5H.js +16 -0
- package/dist/chunk-VF2SKQIN.js +79 -0
- package/dist/chunk-VPMI4LV2.js +25 -0
- package/dist/chunk-VRIT72KI.js +73 -0
- package/dist/chunk-VRQ4WDF7.js +22 -0
- package/dist/chunk-VUR35GB7.js +733 -0
- package/dist/chunk-W5FPQALS.js +36 -0
- package/dist/chunk-W64CKPAW.js +101 -0
- package/dist/chunk-W6UBSIJA.js +50 -0
- package/dist/chunk-W7TRZLEM.js +23 -0
- package/dist/chunk-WDODIKZ4.js +72 -0
- package/dist/chunk-WG3TXZMV.js +70 -0
- package/dist/chunk-WG4UDKA2.js +12 -0
- package/dist/chunk-WGV2ELBS.js +41 -0
- package/dist/chunk-WOGUXGZS.js +32 -0
- package/dist/chunk-WUG2UGQC.js +136 -0
- package/dist/chunk-WX5F66TN.js +438 -0
- package/dist/chunk-WXQ3EA5H.js +12 -0
- package/dist/chunk-WYNRHOR7.js +69 -0
- package/dist/chunk-WYVUP7Z3.js +33 -0
- package/dist/chunk-X44VETJF.js +13 -0
- package/dist/chunk-X6ETCS7E.js +656 -0
- package/dist/chunk-XA3VSUG6.js +72 -0
- package/dist/chunk-XADYGSUA.js +25 -0
- package/dist/chunk-XDIVXGPQ.js +73 -0
- package/dist/chunk-XEJODD6D.js +6 -0
- package/dist/chunk-XSJGIJEE.js +8 -0
- package/dist/chunk-XT3AOF2P.js +16 -0
- package/dist/chunk-XTPBXBZA.js +11 -0
- package/dist/chunk-XV2STPP6.js +45 -0
- package/dist/chunk-XV6BO5MK.js +28 -0
- package/dist/chunk-XXXMWMVQ.js +208 -0
- package/dist/chunk-XY5OS2GH.js +147 -0
- package/dist/chunk-XZFSW5AY.js +217 -0
- package/dist/chunk-Y2KEHWBZ.js +35 -0
- package/dist/chunk-Y3JV5CEL.js +19 -0
- package/dist/chunk-Y3R4C2P7.js +231 -0
- package/dist/chunk-YC3CIJQN.js +22 -0
- package/dist/chunk-YDA62L6J.js +147 -0
- package/dist/chunk-YIBSK5OC.js +13 -0
- package/dist/chunk-YJ72SXVD.js +12 -0
- package/dist/chunk-YKVLG4SZ.js +12 -0
- package/dist/chunk-YNHPTUHS.js +75 -0
- package/dist/chunk-YOFY27RM.js +10 -0
- package/dist/chunk-YPQ6OZFB.js +103 -0
- package/dist/chunk-YQ3CNWB3.js +54 -0
- package/dist/chunk-YS3HSXSJ.js +16 -0
- package/dist/chunk-YSNIMCKC.js +8 -0
- package/dist/chunk-YTIVOMM3.js +22 -0
- package/dist/chunk-YVL3NXEB.js +6 -0
- package/dist/chunk-YXXKT6LL.js +513 -0
- package/dist/chunk-YZ5KJFYU.js +8 -0
- package/dist/chunk-Z2YQQYCQ.js +64 -0
- package/dist/chunk-Z64YKE5O.js +208 -0
- package/dist/chunk-ZABRGL2F.js +45 -0
- package/dist/chunk-ZAMEG3EN.js +470 -0
- package/dist/chunk-ZDSSSQZZ.js +12 -0
- package/dist/chunk-ZFX4EZMW.js +20 -0
- package/dist/chunk-ZKVDVSCE.js +61 -0
- package/dist/chunk-ZLRZR64W.js +36 -0
- package/dist/chunk-ZLSFTNFJ.js +12 -0
- package/dist/chunk-ZMH7UZNP.js +14 -0
- package/dist/chunk-ZO7NYS25.js +18 -0
- package/dist/chunk-ZSHH4XS6.js +11 -0
- package/dist/chunk-ZWTRFLA6.js +31 -0
- package/dist/chunk-ZYE25KR3.js +12 -0
- package/dist/chunk-ZYK7V4PG.js +22 -0
- package/dist/clean-W43XKMR2.js +49 -0
- package/dist/cliHook-HA2YOEQG.js +96 -0
- package/dist/cliHookCheck-W66AII3A.js +74 -0
- package/dist/cloneRepo-LSIV3K3X.js +80 -0
- package/dist/closeSession-I2J2ICU4.js +30 -0
- package/dist/codeCommentConfirm-LGYBP6JX.js +69 -0
- package/dist/codeCommentSet-2YWQJXI2.js +115 -0
- package/dist/codexHook-YACIK7S3.js +200 -0
- package/dist/codexHookTrust-YYBCCR7P.js +59 -0
- package/dist/commands/extension/extension/updates.json +2 -2
- package/dist/commands/sessions/web/bundle.js +408 -408
- package/dist/comment-R5MBHRIJ.js +46 -0
- package/dist/comment-SAOYKB2J.js +17 -0
- package/dist/commentIssue-PDIQVTZM.js +43 -0
- package/dist/comments-ABF3S3O5.js +56 -0
- package/dist/commit-ET4QBICB.js +511 -0
- package/dist/commits-QFWMYJC5.js +146 -0
- package/dist/configGet-42P4ONFD.js +94 -0
- package/dist/configImportRepos-ZIUYOKHH.js +142 -0
- package/dist/configImportUser-NWUPLRQE.js +177 -0
- package/dist/configKeys-HFGEHZBT.js +69 -0
- package/dist/configKeys-OGJBDYG6.js +73 -0
- package/dist/configList-CBYHO432.js +75 -0
- package/dist/configSet-3UHHWKDP.js +136 -0
- package/dist/configUnset-LYGRTYB3.js +121 -0
- package/dist/configure-ETWPCRNG.js +86 -0
- package/dist/coverage-G7J25BUX.js +17 -0
- package/dist/createIssue-AIQ3U4LC.js +357 -0
- package/dist/cyclomatic-7ZFTN5VN.js +18 -0
- package/dist/daemonStatus-YXGIS55D.js +112 -0
- package/dist/del-NHH7NU3Y.js +44 -0
- package/dist/deleteCommentCmd-SAG7WMDV.js +73 -0
- package/dist/denyAdd-YXXNFWMO.js +29 -0
- package/dist/denyList-IZVZEOSD.js +43 -0
- package/dist/denyRemove-4IUYBEMU.js +30 -0
- package/dist/deps-RSUOIZPE.js +117 -0
- package/dist/docsConfirm-2LAEAX3R.js +97 -0
- package/dist/docsUnlock-SCPIWHT5.js +93 -0
- package/dist/doctorNodes-JJ2EIU36.js +131 -0
- package/dist/done-ABRDBISM.js +92 -0
- package/dist/drainDaemon-LCQQ3EP4.js +96 -0
- package/dist/dropRetiredTables-JBLALSG5.js +31 -0
- package/dist/edit-CFPOK62A.js +133 -0
- package/dist/editHook-OWHBNL5T.js +388 -0
- package/dist/editIssue-C2G7D3VJ.js +281 -0
- package/dist/editIssueComment-5SIYQKI6.js +68 -0
- package/dist/exportBacklog-NGFOXXUG.js +24 -0
- package/dist/extension-YYRD5EM6.js +32 -0
- package/dist/extract-SGYOCBTT.js +688 -0
- package/dist/fixConflict-IPWVXZWO.js +66 -0
- package/dist/fixStructure-4UTN5ED6.js +436 -0
- package/dist/fixed-OTDA7M25.js +72 -0
- package/dist/forbiddenStrings-GVXIN7QW.js +88 -0
- package/dist/formatConfiguredCommands-WI25I2JJ.js +19 -0
- package/dist/getBacklogDir-AVGEKM42.js +18 -0
- package/dist/halstead-CMFRMXT6.js +18 -0
- package/dist/hardcodedColors-4NBF5Z53.js +61 -0
- package/dist/harnessFollowUps-PNR55PM4.js +87 -0
- package/dist/ignore-7E4ZV5XH.js +30 -0
- package/dist/importBacklog-FOGUOAIJ.js +228 -0
- package/dist/inSln-G4VRY7VM.js +22 -0
- package/dist/index.js +2832 -10
- package/dist/indexRules-65H3IE33.js +31 -0
- package/dist/init-2WH6WD64.js +9 -0
- package/dist/init-6Y2TC67U.js +23 -0
- package/dist/init-BELQ3LDU.js +25 -0
- package/dist/init-BNY2X74K.js +9 -0
- package/dist/init-PZIM2TEG.js +9 -0
- package/dist/inspect-OI5K5KSG.js +368 -0
- package/dist/jiraAuth-4Z5EVL7A.js +51 -0
- package/dist/launchMode-RBSRGUTI.js +85 -0
- package/dist/link-JDJBEJCL.js +124 -0
- package/dist/link-LYQZULAX.js +59 -0
- package/dist/linkNode-IZ7TMIBN.js +88 -0
- package/dist/lint-5AA42LMF.js +418 -0
- package/dist/list-BM6RD4CP.js +43 -0
- package/dist/list-GCJ6WCKC.js +34 -0
- package/dist/list-HCOU6YAY.js +28 -0
- package/dist/list-UXIZ6WY2.js +100 -0
- package/dist/list-ZR6AEAER.js +33 -0
- package/dist/list-ZVSHR4AA.js +113 -0
- package/dist/listComments-CTM5UMWI.js +203 -0
- package/dist/listModels-2US52LRW.js +74 -0
- package/dist/listNodes-HNKK3LEQ.js +54 -0
- package/dist/listRules-XBWM5DPH.js +41 -0
- package/dist/maintainability-P55FDYZW.js +19 -0
- package/dist/merge-MVMNYPO2.js +196 -0
- package/dist/mermaidExport-DKB3X763.js +108 -0
- package/dist/migrate-XZ562LTJ.js +37 -0
- package/dist/migrations-CSVJKLQC.js +206 -0
- package/dist/move-XAN7VFR4.js +63 -0
- package/dist/movePhase-AK3F6A6P.js +103 -0
- package/dist/moveRepo-P7LPCWIL.js +109 -0
- package/dist/netcap-FIHYF3LK.js +203 -0
- package/dist/netcapExtract-KAFERZ6V.js +462 -0
- package/dist/newCli-2HD56JUI.js +132 -0
- package/dist/newProject-5UN6N4MS.js +70 -0
- package/dist/next-FAAUSQLC.js +145 -0
- package/dist/next-H5RR3AHL.js +83 -0
- package/dist/noVenv-DONW2S6P.js +34 -0
- package/dist/nodeLogs-NNLS5TNI.js +64 -0
- package/dist/notify-NRLRUDFI.js +66 -0
- package/dist/permitCliReads-RSRMZMGS.js +313 -0
- package/dist/phaseDone-FBAQDO3S.js +99 -0
- package/dist/piHook-WAOTTSYE.js +89 -0
- package/dist/plan-GBSJWMXP.js +51 -0
- package/dist/postSlackMessage-SJQGYGJQ.js +21 -0
- package/dist/posted-ZNKIE73Q.js +76 -0
- package/dist/printComments-7ROHUEPO.js +169 -0
- package/dist/printExtensionUrl-IW2WTSNS.js +19 -0
- package/dist/prompts-SL6SHWOA.js +55 -0
- package/dist/propose-UAAUUCLA.js +307 -0
- package/dist/prs-2SRUKVTI.js +138 -0
- package/dist/prsSlackChannel-DY35HNQF.js +28 -0
- package/dist/prsStatus-6G3ZTK36.js +319 -0
- package/dist/pullIfConfigured-V2H6IFDQ.js +18 -0
- package/dist/raise-OBGNVBLZ.js +330 -0
- package/dist/raiseHelpText-6TECFMWR.js +148 -0
- package/dist/ravendbAuth-53OAERB3.js +147 -0
- package/dist/ravendbCollections-2NZYZR5P.js +35 -0
- package/dist/ravendbQuery-EY2XGKEK.js +89 -0
- package/dist/ravendbSetConnection-U7X27AIP.js +16 -0
- package/dist/readBodyArgument-NZG3GJMF.js +7 -0
- package/dist/readTime-23CA6JVM.js +168 -0
- package/dist/recordSlack-TZH2THZH.js +60 -0
- package/dist/redirect-G7WS7LDE.js +32 -0
- package/dist/refine-K4HJN4Y3.js +87 -0
- package/dist/refreshDocs-A5S2NQ5Z.js +65 -0
- package/dist/releasesConfigure-JA7QNAJF.js +211 -0
- package/dist/releasesList-EETLBTD2.js +39 -0
- package/dist/remove-CSUOZRGT.js +96 -0
- package/dist/remove-VIGXH42Y.js +43 -0
- package/dist/removePhase-S4WFO6PT.js +62 -0
- package/dist/rename-PM5VQUCY.js +96 -0
- package/dist/renameSession-IQ6RHQUJ.js +30 -0
- package/dist/renameSymbol-OOIIGF3B.js +78 -0
- package/dist/reply-4VV4LEYF.js +65 -0
- package/dist/reportCliError-6UDOLAIT.js +42 -0
- package/dist/repos-JP75ZTBU.js +130 -0
- package/dist/resolveHarness-A3F7CDF2.js +17 -0
- package/dist/resolveModel-GHXLN2T4.js +27 -0
- package/dist/restartDaemon-YSKQMKEQ.js +9 -0
- package/dist/restartNode-AAKYY7RP.js +59 -0
- package/dist/restructure-FJ3BME7E.js +760 -0
- package/dist/review-4XGSPYYJ.js +3870 -0
- package/dist/reviewPrComments-G7BLTDCB.js +80 -0
- package/dist/rewindPhase-D74DZJYB.js +82 -0
- package/dist/run-5GK74KHD.js +178 -0
- package/dist/run-E3IAT5WL.js +78 -0
- package/dist/runDaemon-7VRQFO4S.js +9284 -0
- package/dist/runExtract-IUEUT2IK.js +568 -0
- package/dist/runRefine-KCQDMHH7.js +99 -0
- package/dist/runScope-LCAGTKGG.js +39 -0
- package/dist/scan-ZYPLRIEG.js +74 -0
- package/dist/scheduleBackup-3UZQU67U.js +200 -0
- package/dist/schemaConfirm-BWQ37LUT.js +171 -0
- package/dist/schemaUnlock-6VDN2OVT.js +135 -0
- package/dist/screenshot-ARSOZ2M6.js +182 -0
- package/dist/search-JRE2KNWY.js +79 -0
- package/dist/seqAuth-6IPD5OPG.js +50 -0
- package/dist/seqQuery-HL6H4PMX.js +233 -0
- package/dist/seqSetConnection-IUCGBTON.js +30 -0
- package/dist/sessionOutput-NXHUXIKC.js +92 -0
- package/dist/setSessionStatus-HPHBUHVB.js +12 -0
- package/dist/setStatusCommand-WBRJ4BTB.js +61 -0
- package/dist/show-37KECDJB.js +327 -0
- package/dist/show-GL235RVD.js +186 -0
- package/dist/showClaudeCodeIcon-E4SAM3GN.js +12 -0
- package/dist/showCodexIcon-YUAKV4NI.js +11 -0
- package/dist/signExtension-7YGZ6OFR.js +182 -0
- package/dist/simulateDivergence-VB4UL4UR.js +27 -0
- package/dist/skip-ZZHUH3MU.js +76 -0
- package/dist/slack-74LWSKRK.js +221 -0
- package/dist/sloc-KPIIBOMR.js +18 -0
- package/dist/sqlAuth-IN4PYCIX.js +59 -0
- package/dist/sqlColumns-SNPMTHHK.js +50 -0
- package/dist/sqlMutate-4QC4IT4E.js +43 -0
- package/dist/sqlQuery-OAXPQJPY.js +53 -0
- package/dist/sqlSetConnection-UAX7TRB4.js +30 -0
- package/dist/sqlTables-ZM2PUJ7N.js +39 -0
- package/dist/star-2GG4JB3K.js +46 -0
- package/dist/start-BUUHD4ZQ.js +44 -0
- package/dist/startIssue-JSVKGZZR.js +135 -0
- package/dist/status-63OT6MGQ.js +38 -0
- package/dist/{chunk-W7ZLVOL6.js → statusLine-TK2QPCQO.js} +9 -4
- package/dist/stop-HG3UZOI6.js +52 -0
- package/dist/stopClaudeCodeIcon-P4AVHUOL.js +12 -0
- package/dist/stopCodexIcon-7O6D2SEH.js +11 -0
- package/dist/stopDaemon-XIYQ6SAW.js +8 -0
- package/dist/sync-HAAAJ4LC.js +826 -0
- package/dist/testflightAdd-MBJAAJGR.js +37 -0
- package/dist/unassignIssue-OXNUC2QQ.js +37 -0
- package/dist/unlink-TLLWWJIG.js +71 -0
- package/dist/unlinkNode-O7IZD5BN.js +41 -0
- package/dist/unstar-EEKVLJQI.js +46 -0
- package/dist/update-6NKPYHDT.js +72 -0
- package/dist/update-E72CS3ZO.js +160 -0
- package/dist/updateNode-FC4VXOHB.js +99 -0
- package/dist/updatePhase-USTBTRW4.js +163 -0
- package/dist/updatePlan-UIN3U6VU.js +315 -0
- package/dist/version-4E3HWTDD.js +47 -0
- package/dist/viewIssue-CYHIPCFO.js +36 -0
- package/dist/watchLoop-MV7DVGC6.js +30 -0
- package/dist/watchReport-A4W7UOAJ.js +23 -0
- package/dist/watchWait-FF65XUH2.js +538 -0
- package/dist/web-6YNOCOEQ.js +169 -0
- package/dist/web-L4OX5ZDA.js +178 -0
- package/dist/withPool-APJFDKR2.js +18 -0
- package/dist/wontdo-KOV5YLR6.js +52 -0
- package/dist/wontfix-UZTOERNG.js +79 -0
- package/dist/write-PH5YX6V5.js +132 -0
- package/dist/writeSignal-NGH5I4AX.js +8 -0
- package/package.json +1 -1
- package/dist/chunk-MYJJAJB7.js +0 -113
- package/dist/runCli-3UAJHEBP.js +0 -65692
- package/dist/runStatusLine-6VBMFNUZ.js +0 -17
- package/dist/statusLine-PWO6JAR2.js +0 -7
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import {
|
|
2
|
+
logDeniedToolCall
|
|
3
|
+
} from "./chunk-CDU6M5IX.js";
|
|
4
|
+
import {
|
|
5
|
+
inWebSession
|
|
6
|
+
} from "./chunk-HKGCLAZ7.js";
|
|
7
|
+
import {
|
|
8
|
+
findBuiltinDenyRaw,
|
|
9
|
+
findDeny,
|
|
10
|
+
findRestrictedPathDeny,
|
|
11
|
+
findRestrictedPathDenyRaw,
|
|
12
|
+
findTruncatedReadDenyRaw,
|
|
13
|
+
isApprovedRead,
|
|
14
|
+
resolvePermission,
|
|
15
|
+
splitCompound
|
|
16
|
+
} from "./chunk-UJMXT5CS.js";
|
|
17
|
+
import {
|
|
18
|
+
DOCS_LOCK_REASON,
|
|
19
|
+
SCHEMA_LOCK_REASON,
|
|
20
|
+
isDocsLocked,
|
|
21
|
+
isDocsPath,
|
|
22
|
+
isSchemaLocked,
|
|
23
|
+
isSchemaPath,
|
|
24
|
+
isSchemaRelativePath,
|
|
25
|
+
mentionsDocsPath
|
|
26
|
+
} from "./chunk-6LI6DYBH.js";
|
|
27
|
+
import {
|
|
28
|
+
isLiveDaemonSession
|
|
29
|
+
} from "./chunk-ZO7NYS25.js";
|
|
30
|
+
import {
|
|
31
|
+
askQuestionEnabled
|
|
32
|
+
} from "./chunk-IBPSXDUB.js";
|
|
33
|
+
import {
|
|
34
|
+
getProjectRoot,
|
|
35
|
+
loadConfig
|
|
36
|
+
} from "./chunk-KGFZYUE2.js";
|
|
37
|
+
|
|
38
|
+
// src/commands/cliHook/decideCommand.ts
|
|
39
|
+
function decideCommand(toolName, rawCommand) {
|
|
40
|
+
const builtinDeny = findBuiltinDenyRaw(rawCommand);
|
|
41
|
+
if (builtinDeny) return builtinDeny;
|
|
42
|
+
const result = splitCompound(rawCommand);
|
|
43
|
+
if (result.ok) return resolvePermission(toolName, result.parts);
|
|
44
|
+
return findRestrictedPathDenyRaw(rawCommand) ?? findTruncatedReadDenyRaw(rawCommand) ?? findDeny(toolName, [rawCommand]);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// src/commands/cliHook/findAskQuestionDeny.ts
|
|
48
|
+
async function findAskQuestionDeny(questionsJson) {
|
|
49
|
+
if (!inWebSession()) return void 0;
|
|
50
|
+
if (!askQuestionEnabled(loadConfig())) return void 0;
|
|
51
|
+
if (!await isLiveDaemonSession(process.env.ASSIST_SESSION_ID))
|
|
52
|
+
return void 0;
|
|
53
|
+
return {
|
|
54
|
+
permissionDecision: "deny",
|
|
55
|
+
permissionDecisionReason: `Do not use AskUserQuestion in assist sessions: the user answers from the web preview pane, which cannot drive the terminal prompt. Write the same input as JSON to a scratch file and run \`assist ask-question --json - < <file>\` as a background task, doing no other work until it returns. It prints the same answer text AskUserQuestion would. The input to write:
|
|
56
|
+
${questionsJson}`
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// src/commands/cliHook/findDocsPathDeny.ts
|
|
61
|
+
function findDocsPathDeny(toolName, rawCommand, root) {
|
|
62
|
+
const result = splitCompound(rawCommand);
|
|
63
|
+
const parts = result.ok ? result.parts : [rawCommand];
|
|
64
|
+
const writes = parts.some(
|
|
65
|
+
(part) => mentionsDocsPath(part, root) && !isApprovedRead(part, toolName)
|
|
66
|
+
);
|
|
67
|
+
if (!writes) return void 0;
|
|
68
|
+
return {
|
|
69
|
+
permissionDecision: "deny",
|
|
70
|
+
permissionDecisionReason: DOCS_LOCK_REASON
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// src/commands/cliHook/isSedPrint.ts
|
|
75
|
+
var QUIET_LONG = /* @__PURE__ */ new Set(["--quiet", "--silent"]);
|
|
76
|
+
function isShortFlagWith(token, letter) {
|
|
77
|
+
return /^-[a-zA-Z]+$/.test(token) && token.includes(letter);
|
|
78
|
+
}
|
|
79
|
+
function hasWriteCommand(args) {
|
|
80
|
+
return args.some((arg) => /[wW]$/.test(arg));
|
|
81
|
+
}
|
|
82
|
+
function isSedPrint(command) {
|
|
83
|
+
const [name, ...args] = command.split(/\s+/);
|
|
84
|
+
if (name !== "sed") return false;
|
|
85
|
+
const quiet = args.some(
|
|
86
|
+
(arg) => QUIET_LONG.has(arg) || isShortFlagWith(arg, "n")
|
|
87
|
+
);
|
|
88
|
+
const inPlace = args.some(
|
|
89
|
+
(arg) => arg.startsWith("--in-place") || isShortFlagWith(arg, "i")
|
|
90
|
+
);
|
|
91
|
+
return quiet && !inPlace && !hasWriteCommand(args);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// src/commands/cliHook/findSchemaPathDeny.ts
|
|
95
|
+
var DB_PATH = /(?:^|[\s'"=(<>|;&:])(?:\.\/)?(src\/shared\/db\/[\w./-]*\.ts)(?![\w.-])/g;
|
|
96
|
+
function mentionedDbPaths(command, root) {
|
|
97
|
+
const normalizedRoot = `${root.replace(/\\/g, "/")}/`;
|
|
98
|
+
const relativized = command.replace(/\\/g, "/").split(normalizedRoot).join("");
|
|
99
|
+
return [...relativized.matchAll(DB_PATH)].map((match) => match[1]);
|
|
100
|
+
}
|
|
101
|
+
function writesSchema(toolName, rawCommand, root) {
|
|
102
|
+
const touchesSchema = (part) => mentionedDbPaths(part, root).some(
|
|
103
|
+
(rel) => isSchemaRelativePath(rel, root, [rawCommand])
|
|
104
|
+
);
|
|
105
|
+
const result = splitCompound(rawCommand);
|
|
106
|
+
if (!result.ok) return touchesSchema(rawCommand);
|
|
107
|
+
return result.parts.some(
|
|
108
|
+
(part) => touchesSchema(part) && !isApprovedRead(part, toolName) && !isSedPrint(part)
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
function findSchemaPathDeny(toolName, rawCommand, root = getProjectRoot()) {
|
|
112
|
+
if (!writesSchema(toolName, rawCommand, root)) return void 0;
|
|
113
|
+
return {
|
|
114
|
+
permissionDecision: "deny",
|
|
115
|
+
permissionDecisionReason: SCHEMA_LOCK_REASON
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// src/commands/editHook/decideDocsGuard.ts
|
|
120
|
+
async function decideDocsGuard({
|
|
121
|
+
path
|
|
122
|
+
}) {
|
|
123
|
+
if (!isDocsPath(path)) return void 0;
|
|
124
|
+
return await isDocsLocked() ? DOCS_LOCK_REASON : void 0;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// src/commands/editHook/decideSchemaGuard.ts
|
|
128
|
+
async function decideSchemaGuard({ path, contents }, identity) {
|
|
129
|
+
if (!isSchemaPath(path, contents)) return void 0;
|
|
130
|
+
return await isSchemaLocked(identity) ? SCHEMA_LOCK_REASON : void 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// src/commands/toolPolicy/decideToolOperations.ts
|
|
134
|
+
var deny = (reason) => ({
|
|
135
|
+
permissionDecision: "deny",
|
|
136
|
+
permissionDecisionReason: reason
|
|
137
|
+
});
|
|
138
|
+
async function decideCommandOperation({ tool, command }, identity) {
|
|
139
|
+
const decision = decideCommand(tool, command);
|
|
140
|
+
if (decision?.permissionDecision === "deny") return decision;
|
|
141
|
+
const docsDeny = findDocsPathDeny(tool, command);
|
|
142
|
+
if (docsDeny && await isDocsLocked()) return docsDeny;
|
|
143
|
+
const schemaDeny = findSchemaPathDeny(tool, command);
|
|
144
|
+
if (schemaDeny && await isSchemaLocked(identity)) return schemaDeny;
|
|
145
|
+
return decision;
|
|
146
|
+
}
|
|
147
|
+
async function decideFileWrite(operation, identity) {
|
|
148
|
+
const restricted = findRestrictedPathDeny([operation.path]);
|
|
149
|
+
if (restricted) return restricted;
|
|
150
|
+
const reason = await decideSchemaGuard(operation, identity) ?? await decideDocsGuard(operation);
|
|
151
|
+
return reason ? deny(reason) : void 0;
|
|
152
|
+
}
|
|
153
|
+
function decideOperation(operation, identity) {
|
|
154
|
+
switch (operation.kind) {
|
|
155
|
+
case "command":
|
|
156
|
+
return decideCommandOperation(operation, identity);
|
|
157
|
+
case "fileRead":
|
|
158
|
+
return findRestrictedPathDeny(operation.paths);
|
|
159
|
+
case "fileWrite":
|
|
160
|
+
return decideFileWrite(operation, identity);
|
|
161
|
+
case "question":
|
|
162
|
+
return findAskQuestionDeny(operation.questionsJson);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
async function decideToolOperations(operations, identity) {
|
|
166
|
+
const decisions = [];
|
|
167
|
+
for (const operation of operations) {
|
|
168
|
+
const decision = await decideOperation(operation, identity);
|
|
169
|
+
if (decision?.permissionDecision === "deny") return decision;
|
|
170
|
+
decisions.push(decision);
|
|
171
|
+
}
|
|
172
|
+
if (decisions.length === 0) return void 0;
|
|
173
|
+
return decisions.every((d) => d?.permissionDecision === "allow") ? decisions[0] : void 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
// src/commands/toolPolicy/logPolicyDeny.ts
|
|
177
|
+
import { basename } from "path";
|
|
178
|
+
function describe(operation) {
|
|
179
|
+
switch (operation.kind) {
|
|
180
|
+
case "command":
|
|
181
|
+
return operation.command;
|
|
182
|
+
case "fileRead":
|
|
183
|
+
return operation.paths.join(" ");
|
|
184
|
+
case "fileWrite":
|
|
185
|
+
return operation.path;
|
|
186
|
+
case "question":
|
|
187
|
+
return operation.questionsJson;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
function logPolicyDeny(operations, decision, identity, cwd = process.cwd()) {
|
|
191
|
+
if (decision?.permissionDecision !== "deny" || operations.length === 0)
|
|
192
|
+
return;
|
|
193
|
+
try {
|
|
194
|
+
logDeniedToolCall({
|
|
195
|
+
tool: operations[0].tool,
|
|
196
|
+
command: operations.map(describe).join("\n"),
|
|
197
|
+
repo: basename(cwd),
|
|
198
|
+
sessionId: identity?.conversationId,
|
|
199
|
+
denyReason: decision.permissionDecisionReason
|
|
200
|
+
});
|
|
201
|
+
} catch {
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export {
|
|
206
|
+
decideToolOperations,
|
|
207
|
+
logPolicyDeny
|
|
208
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// src/shared/configHelp.ts
|
|
2
|
+
var documentedKeys = /* @__PURE__ */ new Set();
|
|
3
|
+
function getDocumentedConfigKeys() {
|
|
4
|
+
return documentedKeys;
|
|
5
|
+
}
|
|
6
|
+
function renderConfigHelp(entries, preamble) {
|
|
7
|
+
const width = Math.max(...entries.map((entry) => entry.setter.length));
|
|
8
|
+
const lines = entries.map(
|
|
9
|
+
(entry) => ` ${entry.setter.padEnd(width)} # ${entry.note}`
|
|
10
|
+
);
|
|
11
|
+
const body = preamble ? ["", preamble, "", "Config:", ...lines] : ["", "Config:", ...lines];
|
|
12
|
+
return body.join("\n");
|
|
13
|
+
}
|
|
14
|
+
function configHelp(command, entries, preamble) {
|
|
15
|
+
for (const entry of entries) documentedKeys.add(entry.key);
|
|
16
|
+
return command.addHelpText(
|
|
17
|
+
"after",
|
|
18
|
+
() => renderConfigHelp(entries, preamble)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {
|
|
23
|
+
getDocumentedConfigKeys,
|
|
24
|
+
configHelp
|
|
25
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// src/commands/prs/parsePrBody.ts
|
|
2
|
+
function parsePrBody(body) {
|
|
3
|
+
const sections = [];
|
|
4
|
+
let current = null;
|
|
5
|
+
const flush = () => {
|
|
6
|
+
if (current) {
|
|
7
|
+
sections.push({
|
|
8
|
+
heading: current.heading,
|
|
9
|
+
content: current.lines.join("\n").trim()
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
for (const line of body.split("\n")) {
|
|
14
|
+
const match = /^##\s+(.+?)\s*$/.exec(line);
|
|
15
|
+
if (match) {
|
|
16
|
+
flush();
|
|
17
|
+
current = { heading: match[1], lines: [] };
|
|
18
|
+
} else if (current) {
|
|
19
|
+
current.lines.push(line);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
flush();
|
|
23
|
+
return sections;
|
|
24
|
+
}
|
|
25
|
+
function serializePrBody(sections) {
|
|
26
|
+
return sections.map((section) => `## ${section.heading}
|
|
27
|
+
|
|
28
|
+
${section.content}`).join("\n\n");
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
parsePrBody,
|
|
33
|
+
serializePrBody
|
|
34
|
+
};
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import {
|
|
2
|
+
activitySchema
|
|
3
|
+
} from "./chunk-4YAIQN3S.js";
|
|
4
|
+
import {
|
|
5
|
+
daemonLog
|
|
6
|
+
} from "./chunk-MRUIXQXS.js";
|
|
7
|
+
import {
|
|
8
|
+
loadJson,
|
|
9
|
+
saveJson
|
|
10
|
+
} from "./chunk-CGYVYHMM.js";
|
|
11
|
+
import {
|
|
12
|
+
harnessKinds
|
|
13
|
+
} from "./chunk-USKD27FY.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/sessions/daemon/describePersistedSession.ts
|
|
16
|
+
function describePersistedSession(entry) {
|
|
17
|
+
const { id, name, cwd } = readDescribed(entry);
|
|
18
|
+
return `id=${id ?? "?"} name=${JSON.stringify(name ?? "?")} cwd=${cwd ?? "?"}`;
|
|
19
|
+
}
|
|
20
|
+
function readDescribed(entry) {
|
|
21
|
+
if (typeof entry !== "object" || entry === null) return {};
|
|
22
|
+
const record = entry;
|
|
23
|
+
return {
|
|
24
|
+
id: stringOrUndefined(record.id),
|
|
25
|
+
name: stringOrUndefined(record.name),
|
|
26
|
+
cwd: stringOrUndefined(record.cwd)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function stringOrUndefined(value) {
|
|
30
|
+
return typeof value === "string" ? value : void 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// src/commands/sessions/daemon/persistedSessionSchema.ts
|
|
34
|
+
import { z } from "zod";
|
|
35
|
+
var persistedSessionSchema = z.object({
|
|
36
|
+
id: z.string().optional(),
|
|
37
|
+
name: z.string(),
|
|
38
|
+
title: z.string().optional(),
|
|
39
|
+
generatedTitle: z.string().optional(),
|
|
40
|
+
subtitle: z.string().optional(),
|
|
41
|
+
commandType: z.enum(["claude", "run", "assist"]),
|
|
42
|
+
harness: z.enum(harnessKinds).optional(),
|
|
43
|
+
status: z.enum(["running", "waiting", "done", "error", "stopped"]).optional(),
|
|
44
|
+
error: z.string().optional(),
|
|
45
|
+
cwd: z.string(),
|
|
46
|
+
startedAt: z.number(),
|
|
47
|
+
runningMs: z.number().optional(),
|
|
48
|
+
claudeSessionId: z.string().optional(),
|
|
49
|
+
harnessSessionId: z.string().optional(),
|
|
50
|
+
initialPrompt: z.string().optional(),
|
|
51
|
+
runName: z.string().optional(),
|
|
52
|
+
runArgs: z.array(z.string()).optional(),
|
|
53
|
+
assistArgs: z.array(z.string()).optional(),
|
|
54
|
+
activity: activitySchema.optional(),
|
|
55
|
+
starred: z.boolean().optional(),
|
|
56
|
+
watcher: z.boolean().optional(),
|
|
57
|
+
divergenceEscalation: z.boolean().optional(),
|
|
58
|
+
design: z.boolean().optional(),
|
|
59
|
+
auto: z.boolean().optional(),
|
|
60
|
+
model: z.string().optional(),
|
|
61
|
+
autoAdvance: z.boolean().optional(),
|
|
62
|
+
autoApprove: z.boolean().optional(),
|
|
63
|
+
reviewStarted: z.boolean().optional(),
|
|
64
|
+
launchedFrom: z.string().optional(),
|
|
65
|
+
pendingPrompts: z.array(z.string()).optional(),
|
|
66
|
+
interrupted: z.object({ reason: z.string(), at: z.number() }).optional(),
|
|
67
|
+
awaitingSeed: z.boolean().optional(),
|
|
68
|
+
undurable: z.object({ reason: z.string(), removesTree: z.boolean().optional() }).optional()
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// src/commands/sessions/daemon/toPersistedSession.ts
|
|
72
|
+
function toPersistedSession(session) {
|
|
73
|
+
return {
|
|
74
|
+
id: session.id,
|
|
75
|
+
name: session.name,
|
|
76
|
+
title: session.title,
|
|
77
|
+
generatedTitle: session.generatedTitle,
|
|
78
|
+
subtitle: session.subtitle,
|
|
79
|
+
commandType: session.commandType,
|
|
80
|
+
harness: session.harness,
|
|
81
|
+
status: session.status,
|
|
82
|
+
error: session.error,
|
|
83
|
+
cwd: session.cwd ?? process.cwd(),
|
|
84
|
+
startedAt: session.startedAt,
|
|
85
|
+
runningMs: accumulatedRunningMs(session),
|
|
86
|
+
claudeSessionId: session.claudeSessionId,
|
|
87
|
+
harnessSessionId: session.harnessSessionId,
|
|
88
|
+
initialPrompt: session.initialPrompt,
|
|
89
|
+
runName: session.runName,
|
|
90
|
+
runArgs: session.runArgs,
|
|
91
|
+
assistArgs: session.assistArgs,
|
|
92
|
+
activity: session.activity,
|
|
93
|
+
starred: session.starred,
|
|
94
|
+
divergenceEscalation: session.divergenceEscalation,
|
|
95
|
+
design: session.design,
|
|
96
|
+
auto: session.auto,
|
|
97
|
+
model: session.model,
|
|
98
|
+
autoAdvance: session.autoAdvance,
|
|
99
|
+
autoApprove: session.autoApprove,
|
|
100
|
+
reviewStarted: session.reviewStarted,
|
|
101
|
+
launchedFrom: session.launchedFrom,
|
|
102
|
+
pendingPrompts: session.pendingPrompts,
|
|
103
|
+
interrupted: session.interrupted,
|
|
104
|
+
undurable: session.undurable,
|
|
105
|
+
awaitingSeed: session.awaitingSeed
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function accumulatedRunningMs(session) {
|
|
109
|
+
return session.runningSince != null ? session.runningMs + Date.now() - session.runningSince : session.runningMs;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// src/commands/sessions/daemon/loadPersistedSessions.ts
|
|
113
|
+
var SESSIONS_FILE = "sessions.json";
|
|
114
|
+
function loadPersistedSessions() {
|
|
115
|
+
const data = loadJson(SESSIONS_FILE);
|
|
116
|
+
if (!Array.isArray(data)) return [];
|
|
117
|
+
const rejected = [];
|
|
118
|
+
const loaded = data.flatMap((entry) => {
|
|
119
|
+
const parsed = persistedSessionSchema.safeParse(entry);
|
|
120
|
+
if (parsed.success && parsed.data.id?.startsWith("w-")) {
|
|
121
|
+
rejected.push(`${parsed.data.id}: legacy windows-proxy session`);
|
|
122
|
+
return [];
|
|
123
|
+
}
|
|
124
|
+
if (parsed.success) return [parsed.data];
|
|
125
|
+
rejected.push(
|
|
126
|
+
`${describePersistedSession(entry)}: ${parsed.error.issues.map((i) => `${i.path.join(".")} ${i.message}`).join("; ")}`
|
|
127
|
+
);
|
|
128
|
+
return [];
|
|
129
|
+
});
|
|
130
|
+
logRejected(rejected);
|
|
131
|
+
return loaded;
|
|
132
|
+
}
|
|
133
|
+
var lastRejectedSignature = "";
|
|
134
|
+
function logRejected(rejected) {
|
|
135
|
+
const signature = rejected.join("|");
|
|
136
|
+
if (signature === lastRejectedSignature) return;
|
|
137
|
+
lastRejectedSignature = signature;
|
|
138
|
+
for (const entry of rejected)
|
|
139
|
+
daemonLog(`unreadable persisted session dropped \u2014 ${entry}`);
|
|
140
|
+
}
|
|
141
|
+
function savePersistedSessions(sessions) {
|
|
142
|
+
saveJson(SESSIONS_FILE, sessions);
|
|
143
|
+
}
|
|
144
|
+
function persistLiveSessions(sessions) {
|
|
145
|
+
const live = [...sessions.values()].filter(
|
|
146
|
+
(s) => (s.pty || s.status === "stopped" || s.status === "error" || s.awaitingSeed && s.pendingStart) && s.status !== "done"
|
|
147
|
+
);
|
|
148
|
+
savePersistedSessions(live.map(toPersistedSession));
|
|
149
|
+
logPersist(live);
|
|
150
|
+
}
|
|
151
|
+
var lastPersistSignature = "";
|
|
152
|
+
function logPersist(live) {
|
|
153
|
+
const signature = live.map((s) => `${s.id}:${s.status}`).join(",");
|
|
154
|
+
if (signature === lastPersistSignature) return;
|
|
155
|
+
lastPersistSignature = signature;
|
|
156
|
+
daemonLog(
|
|
157
|
+
live.length > 0 ? `persisted ${live.length} session(s): ${live.map((s) => s.name).join(", ")}` : "persisted 0 sessions (sessions.json cleared)"
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export {
|
|
162
|
+
describePersistedSession,
|
|
163
|
+
loadPersistedSessions,
|
|
164
|
+
savePersistedSessions,
|
|
165
|
+
persistLiveSessions
|
|
166
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
gitMarkerPath
|
|
3
|
+
} from "./chunk-VEZ3FL5H.js";
|
|
4
|
+
|
|
5
|
+
// src/commands/watch/simulatedDivergencePath.ts
|
|
6
|
+
function simulatedDivergencePath(cwd) {
|
|
7
|
+
return gitMarkerPath("assist-simulate-divergence", cwd);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
simulatedDivergencePath
|
|
12
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// src/commands/jira/adfToText.ts
|
|
2
|
+
function renderInline(node) {
|
|
3
|
+
const text = node.text ?? "";
|
|
4
|
+
if (node.marks?.some((m) => m.type === "code")) return `\`${text}\``;
|
|
5
|
+
return text;
|
|
6
|
+
}
|
|
7
|
+
function renderChildren(node, indent) {
|
|
8
|
+
return renderNodes(node.content ?? [], indent);
|
|
9
|
+
}
|
|
10
|
+
function renderOrderedList(node, indent) {
|
|
11
|
+
let counter = 0;
|
|
12
|
+
return (node.content ?? []).map((item) => {
|
|
13
|
+
counter++;
|
|
14
|
+
return renderListItem(item, indent, `${counter}.`);
|
|
15
|
+
}).join("\n");
|
|
16
|
+
}
|
|
17
|
+
function renderBulletList(node, indent) {
|
|
18
|
+
return (node.content ?? []).map((item) => renderListItem(item, indent, "-")).join("\n");
|
|
19
|
+
}
|
|
20
|
+
function renderHeading(node, indent) {
|
|
21
|
+
const level = node.attrs?.level ?? 1;
|
|
22
|
+
return `${"#".repeat(level)} ${renderChildren(node, indent)}`;
|
|
23
|
+
}
|
|
24
|
+
var renderers = {
|
|
25
|
+
text: (node) => renderInline(node),
|
|
26
|
+
paragraph: renderChildren,
|
|
27
|
+
orderedList: renderOrderedList,
|
|
28
|
+
bulletList: renderBulletList,
|
|
29
|
+
listItem: (node, indent) => renderListItem(node, indent, "-"),
|
|
30
|
+
heading: renderHeading,
|
|
31
|
+
doc: renderChildren
|
|
32
|
+
};
|
|
33
|
+
function renderNode(node, indent) {
|
|
34
|
+
const renderer = renderers[node.type];
|
|
35
|
+
if (renderer) return renderer(node, indent);
|
|
36
|
+
return node.content ? renderChildren(node, indent) : "";
|
|
37
|
+
}
|
|
38
|
+
function renderNodes(nodes, indent) {
|
|
39
|
+
return nodes.map((node) => renderNode(node, indent)).join("");
|
|
40
|
+
}
|
|
41
|
+
function isListNode(node) {
|
|
42
|
+
return node.type === "orderedList" || node.type === "bulletList";
|
|
43
|
+
}
|
|
44
|
+
function renderListChild(child, indent, pad, marker, isFirst) {
|
|
45
|
+
if (isListNode(child)) return renderNodes([child], indent + 1);
|
|
46
|
+
if (child.type !== "paragraph") return renderNode(child, indent);
|
|
47
|
+
const text = renderChildren(child, indent);
|
|
48
|
+
return isFirst ? `${pad}${marker} ${text}` : `${pad} ${text}`;
|
|
49
|
+
}
|
|
50
|
+
function renderListItem(node, indent, marker) {
|
|
51
|
+
const pad = " ".repeat(indent);
|
|
52
|
+
return (node.content ?? []).map((child, i) => renderListChild(child, indent, pad, marker, i === 0)).join("\n");
|
|
53
|
+
}
|
|
54
|
+
function adfToText(doc) {
|
|
55
|
+
return renderNodes([doc], 0);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export {
|
|
59
|
+
adfToText
|
|
60
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
loadItemSummaries
|
|
3
|
+
} from "./chunk-BV2V6RTH.js";
|
|
4
|
+
import {
|
|
5
|
+
getOrigin,
|
|
6
|
+
getReady,
|
|
7
|
+
searchItemIds
|
|
8
|
+
} from "./chunk-X6ETCS7E.js";
|
|
9
|
+
|
|
10
|
+
// src/commands/backlog/loadBacklogSummaries.ts
|
|
11
|
+
async function loadBacklogSummaries(allRepos = false) {
|
|
12
|
+
const { orm } = await getReady();
|
|
13
|
+
return loadItemSummaries(orm, allRepos ? void 0 : getOrigin());
|
|
14
|
+
}
|
|
15
|
+
async function searchBacklogSummaries(query) {
|
|
16
|
+
const { orm } = await getReady();
|
|
17
|
+
const origin = getOrigin();
|
|
18
|
+
const ids = await searchItemIds(orm, query, origin);
|
|
19
|
+
const summaries = await loadItemSummaries(orm, origin);
|
|
20
|
+
return summaries.filter((item) => ids.includes(item.id));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export {
|
|
24
|
+
loadBacklogSummaries,
|
|
25
|
+
searchBacklogSummaries
|
|
26
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
printDiff
|
|
3
|
+
} from "./chunk-Q7YVMIA3.js";
|
|
4
|
+
import {
|
|
5
|
+
promptConfirm
|
|
6
|
+
} from "./chunk-6DGPQ67E.js";
|
|
7
|
+
|
|
8
|
+
// src/commands/deploy/init.ts
|
|
9
|
+
import { execSync } from "child_process";
|
|
10
|
+
import chalk2 from "chalk";
|
|
11
|
+
import enquirer from "enquirer";
|
|
12
|
+
|
|
13
|
+
// src/commands/deploy/init/updateWorkflow.ts
|
|
14
|
+
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
15
|
+
import { dirname, join } from "path";
|
|
16
|
+
import { fileURLToPath } from "url";
|
|
17
|
+
import chalk from "chalk";
|
|
18
|
+
var WORKFLOW_PATH = ".github/workflows/build.yml";
|
|
19
|
+
var __dirname = dirname(fileURLToPath(import.meta.url));
|
|
20
|
+
function getExistingSiteId() {
|
|
21
|
+
if (!existsSync(WORKFLOW_PATH)) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
const content = readFileSync(WORKFLOW_PATH, "utf8");
|
|
25
|
+
const match = content.match(/-s\s+([a-f0-9-]{36})/);
|
|
26
|
+
return match ? match[1] : null;
|
|
27
|
+
}
|
|
28
|
+
function getTemplateContent(siteId) {
|
|
29
|
+
const templatePath = join(__dirname, "commands/deploy/build.yml");
|
|
30
|
+
const template = readFileSync(templatePath, "utf8");
|
|
31
|
+
return template.replace("{{NETLIFY_SITE_ID}}", siteId);
|
|
32
|
+
}
|
|
33
|
+
async function updateWorkflow(siteId) {
|
|
34
|
+
const newContent = getTemplateContent(siteId);
|
|
35
|
+
const workflowDir = ".github/workflows";
|
|
36
|
+
if (!existsSync(workflowDir)) {
|
|
37
|
+
mkdirSync(workflowDir, { recursive: true });
|
|
38
|
+
}
|
|
39
|
+
if (existsSync(WORKFLOW_PATH)) {
|
|
40
|
+
const oldContent = readFileSync(WORKFLOW_PATH, "utf8");
|
|
41
|
+
if (oldContent === newContent) {
|
|
42
|
+
console.log(chalk.green("build.yml is already up to date"));
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
console.log(chalk.yellow("\nbuild.yml will be updated:"));
|
|
46
|
+
console.log();
|
|
47
|
+
printDiff(oldContent, newContent);
|
|
48
|
+
const confirm = await promptConfirm(chalk.red("Update build.yml?"));
|
|
49
|
+
if (!confirm) {
|
|
50
|
+
console.log("Skipped build.yml update");
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
writeFileSync(WORKFLOW_PATH, newContent);
|
|
55
|
+
console.log(chalk.green(`
|
|
56
|
+
Created ${WORKFLOW_PATH}`));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// src/commands/deploy/init.ts
|
|
60
|
+
async function ensureNetlifyCli() {
|
|
61
|
+
try {
|
|
62
|
+
execSync("netlify sites:create --disable-linking", { stdio: "inherit" });
|
|
63
|
+
} catch (error) {
|
|
64
|
+
if (!(error instanceof Error) || !error.message.includes("command not found"))
|
|
65
|
+
throw error;
|
|
66
|
+
console.error(chalk2.red("\nNetlify CLI is not installed.\n"));
|
|
67
|
+
const install = await promptConfirm("Would you like to install it now?");
|
|
68
|
+
if (!install) {
|
|
69
|
+
console.log(
|
|
70
|
+
chalk2.yellow(
|
|
71
|
+
"\nInstall it manually with: npm install -g netlify-cli\n"
|
|
72
|
+
)
|
|
73
|
+
);
|
|
74
|
+
process.exit(1);
|
|
75
|
+
}
|
|
76
|
+
console.log(chalk2.dim("\nInstalling netlify-cli...\n"));
|
|
77
|
+
execSync("npm install -g netlify-cli", { stdio: "inherit" });
|
|
78
|
+
console.log();
|
|
79
|
+
execSync("netlify sites:create --disable-linking", { stdio: "inherit" });
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function printSetupInstructions() {
|
|
83
|
+
console.log(chalk2.bold("\nDeployment initialized successfully!"));
|
|
84
|
+
console.log(
|
|
85
|
+
chalk2.yellow("\nTo complete setup, create a personal access token at:")
|
|
86
|
+
);
|
|
87
|
+
console.log(
|
|
88
|
+
chalk2.cyan(
|
|
89
|
+
"https://app.netlify.com/user/applications#personal-access-tokens"
|
|
90
|
+
)
|
|
91
|
+
);
|
|
92
|
+
console.log(
|
|
93
|
+
chalk2.yellow(
|
|
94
|
+
"\nThen add it as NETLIFY_AUTH_TOKEN in your GitHub repository secrets."
|
|
95
|
+
)
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
async function init() {
|
|
99
|
+
console.log(chalk2.bold("Initializing Netlify deployment...\n"));
|
|
100
|
+
const existingSiteId = getExistingSiteId();
|
|
101
|
+
if (existingSiteId) {
|
|
102
|
+
console.log(chalk2.dim(`Using existing site ID: ${existingSiteId}
|
|
103
|
+
`));
|
|
104
|
+
await updateWorkflow(existingSiteId);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
console.log("Creating Netlify site...\n");
|
|
108
|
+
await ensureNetlifyCli();
|
|
109
|
+
const { siteId } = await enquirer.prompt({
|
|
110
|
+
type: "input",
|
|
111
|
+
name: "siteId",
|
|
112
|
+
message: "Enter the Site ID from above:",
|
|
113
|
+
validate: (value) => /^[a-f0-9-]+$/i.test(value) || "Invalid site ID format"
|
|
114
|
+
});
|
|
115
|
+
await updateWorkflow(siteId);
|
|
116
|
+
printSetupInstructions();
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export {
|
|
120
|
+
init
|
|
121
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// src/shared/resolveSessionItemId.ts
|
|
2
|
+
var ITEM_ID_ENV = "ASSIST_BACKLOG_ITEM_ID";
|
|
3
|
+
function resolveSessionItemId() {
|
|
4
|
+
const raw = process.env[ITEM_ID_ENV];
|
|
5
|
+
if (!raw) return null;
|
|
6
|
+
const id = Number.parseInt(raw, 10);
|
|
7
|
+
return Number.isInteger(id) && id > 0 ? id : null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
resolveSessionItemId
|
|
12
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/commands/backlog/associate-github/normalizeGithubIssue.ts
|
|
2
|
+
var URL_PATTERN = /^https?:\/\/github\.com\/([^/\s]+)\/([^/\s]+)\/issues\/(\d+)\/?$/;
|
|
3
|
+
var SHORTHAND_PATTERN = /^([^/\s]+)\/([^/\s#]+)#(\d+)$/;
|
|
4
|
+
function normalizeGithubIssue(input) {
|
|
5
|
+
const trimmed = input.trim();
|
|
6
|
+
const match = URL_PATTERN.exec(trimmed) ?? SHORTHAND_PATTERN.exec(trimmed);
|
|
7
|
+
if (!match) return null;
|
|
8
|
+
const [, owner, repo, number] = match;
|
|
9
|
+
return `${owner}/${repo}#${number}`;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
normalizeGithubIssue
|
|
14
|
+
};
|