@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,826 @@
|
|
|
1
|
+
import {
|
|
2
|
+
trustAssistCodexHooks
|
|
3
|
+
} from "./chunk-7DSWCPDZ.js";
|
|
4
|
+
import {
|
|
5
|
+
splitFrontmatter
|
|
6
|
+
} from "./chunk-GVI4JSG7.js";
|
|
7
|
+
import {
|
|
8
|
+
syncPiHooks
|
|
9
|
+
} from "./chunk-DIAC4XYA.js";
|
|
10
|
+
import {
|
|
11
|
+
MANAGED_BLOCK_BEGIN,
|
|
12
|
+
assistCodexHookKeys,
|
|
13
|
+
upsertManagedBlock
|
|
14
|
+
} from "./chunk-P26XSDFU.js";
|
|
15
|
+
import {
|
|
16
|
+
autoConfirmHintCommand
|
|
17
|
+
} from "./chunk-YVL3NXEB.js";
|
|
18
|
+
import {
|
|
19
|
+
harnesses,
|
|
20
|
+
isHarnessAvailable
|
|
21
|
+
} from "./chunk-XDIVXGPQ.js";
|
|
22
|
+
import {
|
|
23
|
+
loadConfig
|
|
24
|
+
} from "./chunk-KGFZYUE2.js";
|
|
25
|
+
import "./chunk-LBAPKP6M.js";
|
|
26
|
+
import "./chunk-GRXFWFGP.js";
|
|
27
|
+
import "./chunk-TVQY3HPZ.js";
|
|
28
|
+
import {
|
|
29
|
+
loadJson,
|
|
30
|
+
saveJson
|
|
31
|
+
} from "./chunk-CGYVYHMM.js";
|
|
32
|
+
import "./chunk-WXQ3EA5H.js";
|
|
33
|
+
import "./chunk-YXXKT6LL.js";
|
|
34
|
+
import "./chunk-USKD27FY.js";
|
|
35
|
+
import "./chunk-HN7MFXZ7.js";
|
|
36
|
+
import "./chunk-DZGYHAE7.js";
|
|
37
|
+
import {
|
|
38
|
+
printDiff
|
|
39
|
+
} from "./chunk-Q7YVMIA3.js";
|
|
40
|
+
import {
|
|
41
|
+
promptConfirm
|
|
42
|
+
} from "./chunk-6DGPQ67E.js";
|
|
43
|
+
import "./chunk-SSKHLBQB.js";
|
|
44
|
+
|
|
45
|
+
// src/commands/sync.ts
|
|
46
|
+
import * as os2 from "os";
|
|
47
|
+
import * as path20 from "path";
|
|
48
|
+
import { fileURLToPath } from "url";
|
|
49
|
+
|
|
50
|
+
// src/commands/sync/createSyncFiles.ts
|
|
51
|
+
import * as fs5 from "fs";
|
|
52
|
+
|
|
53
|
+
// src/commands/sync/createConflictQueue.ts
|
|
54
|
+
import * as fs from "fs";
|
|
55
|
+
|
|
56
|
+
// src/commands/sync/resolveSyncConflicts.ts
|
|
57
|
+
import chalk from "chalk";
|
|
58
|
+
async function resolveSyncConflicts(conflicts, yes) {
|
|
59
|
+
if (conflicts.length === 0) return [];
|
|
60
|
+
console.log(
|
|
61
|
+
chalk.yellow(
|
|
62
|
+
`
|
|
63
|
+
\u26A0\uFE0F ${conflicts.length} file(s) exist that assist sync did not write:`
|
|
64
|
+
)
|
|
65
|
+
);
|
|
66
|
+
for (const { action, target } of conflicts) {
|
|
67
|
+
console.log(` ${action} ${target}`);
|
|
68
|
+
}
|
|
69
|
+
const confirmed = !yes && await promptConfirm(
|
|
70
|
+
chalk.red("Replace them with assist's versions?"),
|
|
71
|
+
false
|
|
72
|
+
);
|
|
73
|
+
if (confirmed) return conflicts;
|
|
74
|
+
console.log(
|
|
75
|
+
"Left them in place. Move them aside and re-run assist sync to install assist's versions."
|
|
76
|
+
);
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// src/commands/sync/createConflictQueue.ts
|
|
81
|
+
function createConflictQueue(owns) {
|
|
82
|
+
const conflicts = [];
|
|
83
|
+
return {
|
|
84
|
+
guard(conflict, matches) {
|
|
85
|
+
const { target, run } = conflict;
|
|
86
|
+
if (fs.existsSync(target) && !owns(target) && !matches()) {
|
|
87
|
+
conflicts.push(conflict);
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
run();
|
|
91
|
+
},
|
|
92
|
+
async resolve(yes) {
|
|
93
|
+
const approved = await resolveSyncConflicts(conflicts.splice(0), yes);
|
|
94
|
+
for (const conflict of approved) conflict.run();
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// src/commands/sync/createOwnedSet.ts
|
|
100
|
+
import * as path from "path";
|
|
101
|
+
function createOwnedSet(initial) {
|
|
102
|
+
const owned = new Set(initial.map((file) => path.resolve(file)));
|
|
103
|
+
return {
|
|
104
|
+
files: () => owned.values(),
|
|
105
|
+
owns: (target) => owned.has(path.resolve(target)),
|
|
106
|
+
claim: (target) => {
|
|
107
|
+
owned.add(path.resolve(target));
|
|
108
|
+
},
|
|
109
|
+
forget: (target) => {
|
|
110
|
+
owned.delete(path.resolve(target));
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// src/commands/sync/readTextIfPresent.ts
|
|
116
|
+
import * as fs2 from "fs";
|
|
117
|
+
function readTextIfPresent(target) {
|
|
118
|
+
try {
|
|
119
|
+
return fs2.readFileSync(target, "utf8");
|
|
120
|
+
} catch {
|
|
121
|
+
return void 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// src/commands/sync/replaceDir.ts
|
|
126
|
+
import * as fs3 from "fs";
|
|
127
|
+
function replaceDir(source, target) {
|
|
128
|
+
fs3.rmSync(target, { recursive: true, force: true });
|
|
129
|
+
fs3.cpSync(source, target, { recursive: true });
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// src/commands/sync/replaceFile.ts
|
|
133
|
+
import * as fs4 from "fs";
|
|
134
|
+
import * as path2 from "path";
|
|
135
|
+
function replaceFile(target, content) {
|
|
136
|
+
fs4.mkdirSync(path2.dirname(target), { recursive: true });
|
|
137
|
+
fs4.rmSync(target, { force: true });
|
|
138
|
+
fs4.writeFileSync(target, content);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// src/commands/sync/syncManifest.ts
|
|
142
|
+
var MANIFEST = "sync-manifest.json";
|
|
143
|
+
var syncManifest = {
|
|
144
|
+
load: () => loadJson(MANIFEST).files ?? [],
|
|
145
|
+
save: (files) => saveJson(MANIFEST, { files: [...files].sort() })
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
// src/commands/sync/createSyncFiles.ts
|
|
149
|
+
function createSyncFiles(initial = syncManifest.load()) {
|
|
150
|
+
const { files, owns, claim, forget } = createOwnedSet(initial);
|
|
151
|
+
const { guard, resolve: resolve2 } = createConflictQueue(owns);
|
|
152
|
+
const claimAfter = (target, run) => () => {
|
|
153
|
+
run();
|
|
154
|
+
claim(target);
|
|
155
|
+
};
|
|
156
|
+
return {
|
|
157
|
+
owns,
|
|
158
|
+
forget,
|
|
159
|
+
write: (target, content) => guard(
|
|
160
|
+
{
|
|
161
|
+
target,
|
|
162
|
+
action: "overwrite",
|
|
163
|
+
run: claimAfter(target, () => replaceFile(target, content))
|
|
164
|
+
},
|
|
165
|
+
() => readTextIfPresent(target) === content
|
|
166
|
+
),
|
|
167
|
+
copyDir: (source, target) => guard(
|
|
168
|
+
{
|
|
169
|
+
target,
|
|
170
|
+
action: "overwrite",
|
|
171
|
+
run: claimAfter(target, () => replaceDir(source, target))
|
|
172
|
+
},
|
|
173
|
+
() => false
|
|
174
|
+
),
|
|
175
|
+
remove(target, knownContents) {
|
|
176
|
+
if (!fs5.existsSync(target)) return;
|
|
177
|
+
const run = () => {
|
|
178
|
+
fs5.rmSync(target, { force: true });
|
|
179
|
+
forget(target);
|
|
180
|
+
};
|
|
181
|
+
guard(
|
|
182
|
+
{ target, action: "delete", run },
|
|
183
|
+
() => knownContents.includes(readTextIfPresent(target) ?? "")
|
|
184
|
+
);
|
|
185
|
+
},
|
|
186
|
+
async finish(yes) {
|
|
187
|
+
await resolve2(yes);
|
|
188
|
+
syncManifest.save(files());
|
|
189
|
+
}
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// src/commands/sync/pruneClaude.ts
|
|
194
|
+
import * as path6 from "path";
|
|
195
|
+
|
|
196
|
+
// src/commands/sync/pruneCommands.ts
|
|
197
|
+
import * as path4 from "path";
|
|
198
|
+
|
|
199
|
+
// src/commands/sync/pruneTarget.ts
|
|
200
|
+
import * as fs6 from "fs";
|
|
201
|
+
|
|
202
|
+
// src/commands/sync/pruneEntry.ts
|
|
203
|
+
import * as path3 from "path";
|
|
204
|
+
import { rmSync as rmSync4 } from "fs";
|
|
205
|
+
function pruneEntry(entry, targetDir, keep, shape, options, result) {
|
|
206
|
+
const name = shape.nameOf(entry);
|
|
207
|
+
if (name !== void 0 && keep.has(name)) return;
|
|
208
|
+
const entryPath = path3.join(targetDir, entry.name);
|
|
209
|
+
const ownedPaths = shape.ownedPaths?.(entryPath) ?? [entryPath];
|
|
210
|
+
if (name === void 0 || !ownedPaths.some(options.owner.owns)) {
|
|
211
|
+
result.unmanaged.push(entry.name);
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
result.orphans.push(entry.name);
|
|
215
|
+
const reason = options.owner.owns(entryPath) ? void 0 : shape.blockedBy?.(entryPath);
|
|
216
|
+
if (reason) {
|
|
217
|
+
result.skipped.push({ name: entry.name, reason });
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
if (!options.force) return;
|
|
221
|
+
rmSync4(entryPath, { recursive: true });
|
|
222
|
+
for (const owned of ownedPaths) options.owner.forget(owned);
|
|
223
|
+
result.removed.push(entry.name);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// src/commands/sync/pruneTarget.ts
|
|
227
|
+
function pruneTarget(targetDir, keepNames, shape, options) {
|
|
228
|
+
const result = {
|
|
229
|
+
orphans: [],
|
|
230
|
+
removed: [],
|
|
231
|
+
skipped: [],
|
|
232
|
+
unmanaged: []
|
|
233
|
+
};
|
|
234
|
+
if (!fs6.existsSync(targetDir)) return result;
|
|
235
|
+
const keep = new Set(keepNames);
|
|
236
|
+
for (const entry of fs6.readdirSync(targetDir, { withFileTypes: true })) {
|
|
237
|
+
pruneEntry(entry, targetDir, keep, shape, options, result);
|
|
238
|
+
}
|
|
239
|
+
return result;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// src/commands/sync/pruneCommands.ts
|
|
243
|
+
function pruneCommands(targetDir, commandNames, options) {
|
|
244
|
+
return pruneTarget(
|
|
245
|
+
targetDir,
|
|
246
|
+
commandNames,
|
|
247
|
+
{
|
|
248
|
+
nameOf: (entry) => entry.isFile() && entry.name.endsWith(".md") ? path4.basename(entry.name, ".md") : void 0
|
|
249
|
+
},
|
|
250
|
+
options
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// src/commands/sync/pruneSkills.ts
|
|
255
|
+
import * as fs7 from "fs";
|
|
256
|
+
import * as path5 from "path";
|
|
257
|
+
function pruneSkills(targetDir, skillNames, options) {
|
|
258
|
+
return pruneTarget(
|
|
259
|
+
targetDir,
|
|
260
|
+
skillNames,
|
|
261
|
+
{
|
|
262
|
+
nameOf: (entry) => entry.isDirectory() || entry.name.endsWith(".md") ? entry.name : void 0,
|
|
263
|
+
ownedPaths: (skillDir) => [skillDir, path5.join(skillDir, "SKILL.md")],
|
|
264
|
+
blockedBy: unexpectedContent
|
|
265
|
+
},
|
|
266
|
+
options
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
function unexpectedContent(skillDir) {
|
|
270
|
+
if (!fs7.statSync(skillDir).isDirectory()) return void 0;
|
|
271
|
+
const entries = fs7.readdirSync(skillDir);
|
|
272
|
+
const others = entries.filter((entry) => entry !== "SKILL.md");
|
|
273
|
+
if (others.length > 0) return `contains ${others.sort().join(", ")}`;
|
|
274
|
+
return entries.length === 0 ? "no SKILL.md" : void 0;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
// src/commands/sync/reportPrune.ts
|
|
278
|
+
function reportPrune(label, result, force) {
|
|
279
|
+
if (result.orphans.length === 0) {
|
|
280
|
+
console.log(`No orphaned files in ${label}`);
|
|
281
|
+
} else if (force) {
|
|
282
|
+
for (const name of result.removed) {
|
|
283
|
+
console.log(`Removed ${name} from ${label}`);
|
|
284
|
+
}
|
|
285
|
+
} else {
|
|
286
|
+
console.log(`Orphaned files in ${label} (run with --force to remove):`);
|
|
287
|
+
for (const name of result.orphans) {
|
|
288
|
+
console.log(` ${name}`);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
if (result.skipped.length > 0) {
|
|
292
|
+
console.log(`Left in place in ${label} (not written by sync):`);
|
|
293
|
+
for (const { name, reason } of result.skipped) {
|
|
294
|
+
console.log(` ${name} - ${reason}`);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (result.unmanaged.length === 0) return;
|
|
298
|
+
console.log(`Not managed by sync in ${label} (never removed):`);
|
|
299
|
+
for (const name of result.unmanaged) {
|
|
300
|
+
console.log(` ${name}`);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
// src/commands/sync/pruneClaude.ts
|
|
305
|
+
function pruneClaude(targetBase, skillNames, options, owner) {
|
|
306
|
+
if (!options.prune) return;
|
|
307
|
+
const force = options.force ?? false;
|
|
308
|
+
reportPrune(
|
|
309
|
+
"~/.claude/skills",
|
|
310
|
+
pruneSkills(path6.join(targetBase, "skills"), skillNames, { force, owner }),
|
|
311
|
+
force
|
|
312
|
+
);
|
|
313
|
+
reportPrune(
|
|
314
|
+
"~/.claude/commands",
|
|
315
|
+
pruneCommands(path6.join(targetBase, "commands"), [], { force, owner }),
|
|
316
|
+
force
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
// src/commands/sync/syncClaudeCommands.ts
|
|
321
|
+
import * as fs9 from "fs";
|
|
322
|
+
import * as path9 from "path";
|
|
323
|
+
|
|
324
|
+
// src/commands/sync/commandToSkill.ts
|
|
325
|
+
function commandToSkill(name, content) {
|
|
326
|
+
const { body, description } = splitFrontmatter(content);
|
|
327
|
+
const header = `---
|
|
328
|
+
name: ${name}
|
|
329
|
+
description: ${quoteYaml(description ?? name)}
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
`;
|
|
333
|
+
return header + body.replace(/^\r?\n+/, "");
|
|
334
|
+
}
|
|
335
|
+
function quoteYaml(value) {
|
|
336
|
+
return `"${value.replace(/\\/g, String.raw`\\`).replace(/"/g, String.raw`\"`)}"`;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
// src/commands/sync/markdownNames.ts
|
|
340
|
+
import * as fs8 from "fs";
|
|
341
|
+
import * as path7 from "path";
|
|
342
|
+
function markdownNames(dir) {
|
|
343
|
+
return fs8.readdirSync(dir).filter((file) => file.endsWith(".md")).map((file) => path7.basename(file, ".md"));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
// src/commands/sync/renderHarnessPaths.ts
|
|
347
|
+
import * as os from "os";
|
|
348
|
+
import * as path8 from "path";
|
|
349
|
+
function homePath(harness, dest) {
|
|
350
|
+
const relative2 = path8.relative(
|
|
351
|
+
os.homedir(),
|
|
352
|
+
path8.join(harness.homeDir, dest)
|
|
353
|
+
);
|
|
354
|
+
return `~/${relative2.split(path8.sep).join("/")}`;
|
|
355
|
+
}
|
|
356
|
+
function renderHarnessPaths(content, harness) {
|
|
357
|
+
const { sync: sync2 } = harness;
|
|
358
|
+
return content.replaceAll(
|
|
359
|
+
"{{design.systemPrompt}}",
|
|
360
|
+
homePath(harness, sync2.designPromptDest)
|
|
361
|
+
).replaceAll(
|
|
362
|
+
"{{design.skill}}",
|
|
363
|
+
homePath(harness, sync2.designSkillDest("<name>"))
|
|
364
|
+
).replace(
|
|
365
|
+
/\{\{skill:([a-z0-9-]+)\}\}/g,
|
|
366
|
+
(_match, name) => homePath(harness, sync2.commandDest(name))
|
|
367
|
+
);
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
// src/commands/sync/syncClaudeCommands.ts
|
|
371
|
+
function syncClaudeCommands(agentDir, targetBase, files) {
|
|
372
|
+
const sourceDir = path9.join(agentDir, "commands");
|
|
373
|
+
const names = markdownNames(sourceDir);
|
|
374
|
+
for (const name of names) {
|
|
375
|
+
const content = fs9.readFileSync(path9.join(sourceDir, `${name}.md`), "utf8");
|
|
376
|
+
const rendered = renderHarnessPaths(content, harnesses.claude);
|
|
377
|
+
files.write(
|
|
378
|
+
path9.join(targetBase, "skills", name, "SKILL.md"),
|
|
379
|
+
commandToSkill(name, rendered)
|
|
380
|
+
);
|
|
381
|
+
files.remove(path9.join(targetBase, "commands", `${name}.md`), [
|
|
382
|
+
content,
|
|
383
|
+
rendered
|
|
384
|
+
]);
|
|
385
|
+
}
|
|
386
|
+
console.log(
|
|
387
|
+
`Synced ${names.length} skill(s) to ${path9.join(targetBase, "skills")}`
|
|
388
|
+
);
|
|
389
|
+
return names;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
// src/commands/sync/reportRetiredAgentsFiles.ts
|
|
393
|
+
import * as fs10 from "fs";
|
|
394
|
+
import * as path10 from "path";
|
|
395
|
+
var retired = [
|
|
396
|
+
path10.join(harnesses.claude.homeDir, "CLAUDE.md"),
|
|
397
|
+
path10.join(harnesses.codex.homeDir, "AGENTS.md"),
|
|
398
|
+
path10.join(harnesses.pi.homeDir, "AGENTS.md")
|
|
399
|
+
];
|
|
400
|
+
function reportRetiredAgentsFiles() {
|
|
401
|
+
const leftovers = retired.filter((file) => fs10.existsSync(file));
|
|
402
|
+
if (leftovers.length === 0) return;
|
|
403
|
+
console.log(
|
|
404
|
+
"No longer written by sync \u2014 each harness now composes its own advice at session start:"
|
|
405
|
+
);
|
|
406
|
+
for (const file of leftovers) console.log(` ${file}`);
|
|
407
|
+
console.log(
|
|
408
|
+
" Delete them, or they keep injecting the retired global instructions."
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// src/commands/sync/retiredOwnedPaths.ts
|
|
413
|
+
import * as fs11 from "fs";
|
|
414
|
+
import * as path11 from "path";
|
|
415
|
+
|
|
416
|
+
// src/commands/sync/retiredSyncNames.ts
|
|
417
|
+
var retiredSyncNames = {
|
|
418
|
+
commands: [
|
|
419
|
+
"adopt-rules",
|
|
420
|
+
"associate-jira",
|
|
421
|
+
"generate-cli-read-verbs",
|
|
422
|
+
"handover",
|
|
423
|
+
"high-level-config",
|
|
424
|
+
"journal",
|
|
425
|
+
"next-backlog-item",
|
|
426
|
+
"recall",
|
|
427
|
+
"review",
|
|
428
|
+
"review-comments",
|
|
429
|
+
"standup",
|
|
430
|
+
"strip-code-comments",
|
|
431
|
+
"strip-comments",
|
|
432
|
+
"subtask",
|
|
433
|
+
"transcript-format",
|
|
434
|
+
"transcript-summarise",
|
|
435
|
+
"update-jira",
|
|
436
|
+
"voice-logs",
|
|
437
|
+
"voice-setup",
|
|
438
|
+
"voice-start",
|
|
439
|
+
"voice-status",
|
|
440
|
+
"voice-stop"
|
|
441
|
+
],
|
|
442
|
+
skillDirs: ["review-ci"]
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
// src/commands/sync/retiredOwnedPaths.ts
|
|
446
|
+
function retiredOwnedPaths() {
|
|
447
|
+
const { claude, codex, pi } = harnesses;
|
|
448
|
+
const paths = retiredSyncNames.commands.flatMap((name) => [
|
|
449
|
+
path11.join(claude.homeDir, "commands", `${name}.md`),
|
|
450
|
+
path11.join(claude.homeDir, claude.sync.commandDest(name)),
|
|
451
|
+
path11.join(codex.homeDir, codex.sync.commandDest(name)),
|
|
452
|
+
path11.join(pi.homeDir, pi.sync.commandDest(name))
|
|
453
|
+
]);
|
|
454
|
+
for (const name of retiredSyncNames.skillDirs)
|
|
455
|
+
paths.push(
|
|
456
|
+
path11.join(claude.homeDir, "skills", name),
|
|
457
|
+
path11.join(codex.homeDir, "skills", name)
|
|
458
|
+
);
|
|
459
|
+
return paths.filter((file) => fs11.existsSync(file));
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
// src/commands/sync/syncCodex.ts
|
|
463
|
+
import * as path15 from "path";
|
|
464
|
+
|
|
465
|
+
// src/commands/sync/installDesignResources.ts
|
|
466
|
+
import * as fs12 from "fs";
|
|
467
|
+
import * as path12 from "path";
|
|
468
|
+
|
|
469
|
+
// src/commands/sync/designSkillToNative.ts
|
|
470
|
+
function designSkillToNative(name, content) {
|
|
471
|
+
const heading = content.match(/^#\s+(.+)$/m)?.[1]?.trim();
|
|
472
|
+
const description = heading ? `Design skill: ${heading}. Follow it when the design system prompt's Available skills chapter names ${name}.` : `Design skill ${name}`;
|
|
473
|
+
return commandToSkill(
|
|
474
|
+
name,
|
|
475
|
+
`---
|
|
476
|
+
description: ${description}
|
|
477
|
+
---
|
|
478
|
+
|
|
479
|
+
${content}`
|
|
480
|
+
);
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
// src/commands/sync/installDesignResources.ts
|
|
484
|
+
function installDesignResources(agentDir, harness, files) {
|
|
485
|
+
const { homeDir, sync: sync2 } = harness;
|
|
486
|
+
files.write(
|
|
487
|
+
path12.join(homeDir, sync2.designPromptDest),
|
|
488
|
+
fs12.readFileSync(path12.join(agentDir, "design-system-prompt.md"), "utf8")
|
|
489
|
+
);
|
|
490
|
+
const skillsSource = path12.join(agentDir, "skills");
|
|
491
|
+
const names = markdownNames(skillsSource);
|
|
492
|
+
for (const name of names) {
|
|
493
|
+
const content = fs12.readFileSync(
|
|
494
|
+
path12.join(skillsSource, `${name}.md`),
|
|
495
|
+
"utf8"
|
|
496
|
+
);
|
|
497
|
+
files.write(
|
|
498
|
+
path12.join(homeDir, sync2.designSkillDest(name)),
|
|
499
|
+
sync2.nativeDesignSkills ? designSkillToNative(name, content) : content
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
return names;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
// src/commands/sync/installHarnessCommands.ts
|
|
506
|
+
import * as fs13 from "fs";
|
|
507
|
+
import * as path13 from "path";
|
|
508
|
+
function installHarnessCommands(agentDir, harness, transform, files) {
|
|
509
|
+
const commandsSource = path13.join(agentDir, "commands");
|
|
510
|
+
const sourceFiles = fs13.readdirSync(commandsSource);
|
|
511
|
+
const names = [];
|
|
512
|
+
for (const file of sourceFiles) {
|
|
513
|
+
if (!file.endsWith(".md")) continue;
|
|
514
|
+
const name = file.replace(/\.md$/, "");
|
|
515
|
+
names.push(name);
|
|
516
|
+
const content = fs13.readFileSync(path13.join(commandsSource, file), "utf8");
|
|
517
|
+
files.write(
|
|
518
|
+
path13.join(harness.homeDir, harness.sync.commandDest(name)),
|
|
519
|
+
transform(name, renderHarnessPaths(content, harness))
|
|
520
|
+
);
|
|
521
|
+
}
|
|
522
|
+
return { total: sourceFiles.length, synced: names.length, names };
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
// src/commands/sync/syncCodexHooks.ts
|
|
526
|
+
import * as fs14 from "fs";
|
|
527
|
+
import * as path14 from "path";
|
|
528
|
+
async function syncCodexHooks(sourcePath) {
|
|
529
|
+
const body = fs14.readFileSync(sourcePath, "utf8");
|
|
530
|
+
const configPath = path14.join(harnesses.codex.homeDir, "config.toml");
|
|
531
|
+
const existing = fs14.existsSync(configPath) ? fs14.readFileSync(configPath, "utf8") : "";
|
|
532
|
+
const next = upsertManagedBlock(existing, body);
|
|
533
|
+
fs14.mkdirSync(path14.dirname(configPath), { recursive: true });
|
|
534
|
+
fs14.writeFileSync(configPath, next);
|
|
535
|
+
console.log(
|
|
536
|
+
"Registered assist codex-hook in ~/.codex/config.toml (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PermissionRequest, Stop)"
|
|
537
|
+
);
|
|
538
|
+
const expected = assistCodexHookKeys(
|
|
539
|
+
next.slice(0, next.indexOf(MANAGED_BLOCK_BEGIN)),
|
|
540
|
+
body
|
|
541
|
+
);
|
|
542
|
+
try {
|
|
543
|
+
const trusted = await trustAssistCodexHooks(configPath, expected);
|
|
544
|
+
console.log(
|
|
545
|
+
trusted ? `Trusted ${trusted} assist codex-hook definition(s) in Codex` : "Assist's codex-hook definitions are already trusted in Codex"
|
|
546
|
+
);
|
|
547
|
+
} catch (error) {
|
|
548
|
+
console.error(
|
|
549
|
+
`Could not trust Assist's Codex hooks: ${error instanceof Error ? error.message : String(error)}`
|
|
550
|
+
);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
// src/commands/sync/syncCodex.ts
|
|
555
|
+
async function syncCodex(agentDir, files, options) {
|
|
556
|
+
if (!isHarnessAvailable("codex")) return;
|
|
557
|
+
const { total, names } = installHarnessCommands(
|
|
558
|
+
agentDir,
|
|
559
|
+
harnesses.codex,
|
|
560
|
+
commandToSkill,
|
|
561
|
+
files
|
|
562
|
+
);
|
|
563
|
+
const designSkills = installDesignResources(agentDir, harnesses.codex, files);
|
|
564
|
+
await syncCodexHooks(path15.join(agentDir, "..", "codex", "config.toml"));
|
|
565
|
+
console.log(`Synced ${total} skill(s) to ~/.codex/skills`);
|
|
566
|
+
console.log(
|
|
567
|
+
`Synced the design system prompt and ${designSkills.length} design skill(s) for Codex`
|
|
568
|
+
);
|
|
569
|
+
if (!options?.prune) return;
|
|
570
|
+
const force = options.force ?? false;
|
|
571
|
+
reportPrune(
|
|
572
|
+
"~/.codex/skills",
|
|
573
|
+
pruneSkills(
|
|
574
|
+
path15.join(harnesses.codex.homeDir, "skills"),
|
|
575
|
+
[...names, ...designSkills],
|
|
576
|
+
{ force, owner: files }
|
|
577
|
+
),
|
|
578
|
+
force
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
// src/commands/sync/syncDesign.ts
|
|
583
|
+
import * as fs15 from "fs";
|
|
584
|
+
import * as path16 from "path";
|
|
585
|
+
function syncDesign(agentDir, targetBase, files) {
|
|
586
|
+
files.write(
|
|
587
|
+
path16.join(targetBase, "design-system-prompt.md"),
|
|
588
|
+
fs15.readFileSync(path16.join(agentDir, "design-system-prompt.md"), "utf8")
|
|
589
|
+
);
|
|
590
|
+
console.log(
|
|
591
|
+
"Copied design-system-prompt.md to ~/.claude/design-system-prompt.md"
|
|
592
|
+
);
|
|
593
|
+
const skillsSource = path16.join(agentDir, "skills");
|
|
594
|
+
const skillsTarget = path16.join(targetBase, "skills");
|
|
595
|
+
const entries = fs15.readdirSync(skillsSource, { withFileTypes: true }).filter(
|
|
596
|
+
(entry) => !entry.isDirectory() || fs15.existsSync(path16.join(skillsSource, entry.name, "SKILL.md"))
|
|
597
|
+
);
|
|
598
|
+
for (const entry of entries) {
|
|
599
|
+
const source = path16.join(skillsSource, entry.name);
|
|
600
|
+
const target = path16.join(skillsTarget, entry.name);
|
|
601
|
+
if (entry.isDirectory()) {
|
|
602
|
+
files.copyDir(source, target);
|
|
603
|
+
} else {
|
|
604
|
+
files.write(target, fs15.readFileSync(source, "utf8"));
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
console.log(`Synced ${entries.length} skill(s) to ~/.claude/skills`);
|
|
608
|
+
return entries.map((entry) => entry.name);
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
// src/commands/sync/syncPi.ts
|
|
612
|
+
import * as path17 from "path";
|
|
613
|
+
import { stringify } from "yaml";
|
|
614
|
+
function unquote(value) {
|
|
615
|
+
return value.trim().replace(/^["']|["']$/g, "");
|
|
616
|
+
}
|
|
617
|
+
function commandToPrompt(name, content) {
|
|
618
|
+
const split = splitFrontmatter(content);
|
|
619
|
+
const { frontmatter, body } = split;
|
|
620
|
+
const description = split.description ?? name;
|
|
621
|
+
const argsMatch = frontmatter.match(/^allowed_args:\s*(.*)$/m);
|
|
622
|
+
const argumentHint = argsMatch ? unquote(argsMatch[1]) : void 0;
|
|
623
|
+
const frontmatterYaml = stringify(
|
|
624
|
+
argumentHint ? { description, "argument-hint": argumentHint } : { description },
|
|
625
|
+
{ lineWidth: 0 }
|
|
626
|
+
);
|
|
627
|
+
return `---
|
|
628
|
+
${frontmatterYaml}---
|
|
629
|
+
|
|
630
|
+
${body.replace(/^\r?\n+/, "")}`;
|
|
631
|
+
}
|
|
632
|
+
function syncPi(agentDir, files, options) {
|
|
633
|
+
if (!isHarnessAvailable("pi")) return;
|
|
634
|
+
const { synced, names } = installHarnessCommands(
|
|
635
|
+
agentDir,
|
|
636
|
+
harnesses.pi,
|
|
637
|
+
commandToPrompt,
|
|
638
|
+
files
|
|
639
|
+
);
|
|
640
|
+
const designSkills = installDesignResources(agentDir, harnesses.pi, files);
|
|
641
|
+
syncPiHooks(path17.join(agentDir, "..", "pi"));
|
|
642
|
+
console.log(`Synced ${synced} prompt(s) to ~/.pi/agent/prompts`);
|
|
643
|
+
console.log(
|
|
644
|
+
`Synced the design system prompt and ${designSkills.length} design skill(s) to ~/.pi/agent/assist`
|
|
645
|
+
);
|
|
646
|
+
if (!options?.prune) return;
|
|
647
|
+
const force = options.force ?? false;
|
|
648
|
+
reportPrune(
|
|
649
|
+
"~/.pi/agent/prompts",
|
|
650
|
+
pruneCommands(path17.join(harnesses.pi.homeDir, "prompts"), names, {
|
|
651
|
+
force,
|
|
652
|
+
owner: files
|
|
653
|
+
}),
|
|
654
|
+
force
|
|
655
|
+
);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
// src/commands/sync/syncSettings.ts
|
|
659
|
+
import * as fs17 from "fs";
|
|
660
|
+
import * as path19 from "path";
|
|
661
|
+
import chalk3 from "chalk";
|
|
662
|
+
|
|
663
|
+
// src/commands/sync/isPlainObject.ts
|
|
664
|
+
function isPlainObject(value) {
|
|
665
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
// src/commands/sync/canonical.ts
|
|
669
|
+
function canonical(value) {
|
|
670
|
+
if (Array.isArray(value)) return `[${value.map(canonical).join(",")}]`;
|
|
671
|
+
if (isPlainObject(value))
|
|
672
|
+
return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${canonical(value[key])}`).join(",")}}`;
|
|
673
|
+
return JSON.stringify(value);
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
// src/commands/sync/mergeSettings.ts
|
|
677
|
+
function unionArrays(user, assist) {
|
|
678
|
+
const seen = new Set(user.map(canonical));
|
|
679
|
+
const merged = [...user];
|
|
680
|
+
for (const entry of assist) {
|
|
681
|
+
const key = canonical(entry);
|
|
682
|
+
if (seen.has(key)) continue;
|
|
683
|
+
seen.add(key);
|
|
684
|
+
merged.push(entry);
|
|
685
|
+
}
|
|
686
|
+
return merged;
|
|
687
|
+
}
|
|
688
|
+
function mergeValue(user, assist) {
|
|
689
|
+
if (isPlainObject(user) && isPlainObject(assist))
|
|
690
|
+
return mergeSettings(user, assist);
|
|
691
|
+
if (Array.isArray(user) && Array.isArray(assist))
|
|
692
|
+
return unionArrays(user, assist);
|
|
693
|
+
return assist;
|
|
694
|
+
}
|
|
695
|
+
function mergeSettings(user, assist) {
|
|
696
|
+
const merged = { ...user };
|
|
697
|
+
for (const [key, value] of Object.entries(assist))
|
|
698
|
+
merged[key] = key in merged ? mergeValue(merged[key], value) : value;
|
|
699
|
+
return merged;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
// src/commands/sync/printAutoConfirmHint.ts
|
|
703
|
+
import chalk2 from "chalk";
|
|
704
|
+
function printAutoConfirmHint() {
|
|
705
|
+
console.log(
|
|
706
|
+
chalk2.dim(
|
|
707
|
+
`Tip: run \`${autoConfirmHintCommand}\` to overwrite automatically next time`
|
|
708
|
+
)
|
|
709
|
+
);
|
|
710
|
+
console.log();
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
// src/commands/sync/pruneStaleAssistHooks.ts
|
|
714
|
+
function entryCommands(entry) {
|
|
715
|
+
const hooks = entry?.hooks;
|
|
716
|
+
if (!Array.isArray(hooks)) return [];
|
|
717
|
+
return hooks.map((hook) => hook?.command).filter((command) => typeof command === "string");
|
|
718
|
+
}
|
|
719
|
+
function isStale(entry, assistCommands, assistEntries) {
|
|
720
|
+
const commands = entryCommands(entry);
|
|
721
|
+
return commands.length > 0 && commands.every((command) => assistCommands.has(command)) && !assistEntries.has(canonical(entry));
|
|
722
|
+
}
|
|
723
|
+
function pruneEvent(user, assist) {
|
|
724
|
+
if (!Array.isArray(user) || !Array.isArray(assist)) return user;
|
|
725
|
+
const assistCommands = new Set(assist.flatMap(entryCommands));
|
|
726
|
+
const assistEntries = new Set(assist.map(canonical));
|
|
727
|
+
return user.filter((entry) => !isStale(entry, assistCommands, assistEntries));
|
|
728
|
+
}
|
|
729
|
+
function pruneStaleAssistHooks(user, assist) {
|
|
730
|
+
const userHooks = user.hooks;
|
|
731
|
+
const assistHooks = assist.hooks;
|
|
732
|
+
if (!isPlainObject(userHooks) || !isPlainObject(assistHooks)) return user;
|
|
733
|
+
const hooks = { ...userHooks };
|
|
734
|
+
for (const event of Object.keys(assistHooks))
|
|
735
|
+
if (event in hooks)
|
|
736
|
+
hooks[event] = pruneEvent(hooks[event], assistHooks[event]);
|
|
737
|
+
return { ...user, hooks };
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
// src/commands/sync/readSourceSettings.ts
|
|
741
|
+
import * as fs16 from "fs";
|
|
742
|
+
import * as path18 from "path";
|
|
743
|
+
function readJson(file) {
|
|
744
|
+
return JSON.parse(fs16.readFileSync(file, "utf8"));
|
|
745
|
+
}
|
|
746
|
+
function readSourceSettings(claudeDir, preferences) {
|
|
747
|
+
const required = readJson(path18.join(claudeDir, "settings.json"));
|
|
748
|
+
if (!preferences) return required;
|
|
749
|
+
return mergeSettings(
|
|
750
|
+
required,
|
|
751
|
+
readJson(path18.join(claudeDir, "preferences.json"))
|
|
752
|
+
);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
// src/commands/sync/syncSettings.ts
|
|
756
|
+
async function syncSettings(claudeDir, targetBase, options) {
|
|
757
|
+
const target = path19.join(targetBase, "settings.json");
|
|
758
|
+
const sourceSettings = readSourceSettings(claudeDir, options?.preferences);
|
|
759
|
+
const targetExists = fs17.existsSync(target);
|
|
760
|
+
const targetContent = targetExists ? fs17.readFileSync(target, "utf8") : "";
|
|
761
|
+
const preservedUserSettings = targetExists ? JSON.parse(targetContent) : {};
|
|
762
|
+
const mergedContent = JSON.stringify(
|
|
763
|
+
mergeSettings(
|
|
764
|
+
pruneStaleAssistHooks(preservedUserSettings, sourceSettings),
|
|
765
|
+
sourceSettings
|
|
766
|
+
),
|
|
767
|
+
null,
|
|
768
|
+
" "
|
|
769
|
+
);
|
|
770
|
+
if (targetExists) {
|
|
771
|
+
const normalizedTarget = JSON.stringify(preservedUserSettings, null, " ");
|
|
772
|
+
if (mergedContent !== normalizedTarget) {
|
|
773
|
+
if (!options?.yes) {
|
|
774
|
+
console.log(
|
|
775
|
+
chalk3.yellow(
|
|
776
|
+
"\n\u26A0\uFE0F Warning: settings.json differs from existing file"
|
|
777
|
+
)
|
|
778
|
+
);
|
|
779
|
+
console.log();
|
|
780
|
+
printDiff(targetContent, mergedContent);
|
|
781
|
+
printAutoConfirmHint();
|
|
782
|
+
const confirm = await promptConfirm(
|
|
783
|
+
chalk3.red("Write merged settings.json?"),
|
|
784
|
+
false
|
|
785
|
+
);
|
|
786
|
+
if (!confirm) {
|
|
787
|
+
console.log("Skipped settings.json");
|
|
788
|
+
return;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
fs17.writeFileSync(target, mergedContent);
|
|
794
|
+
console.log("Merged settings.json into ~/.claude/settings.json");
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
// src/commands/sync.ts
|
|
798
|
+
var __filename2 = fileURLToPath(import.meta.url);
|
|
799
|
+
var __dirname2 = path20.dirname(__filename2);
|
|
800
|
+
async function sync(options) {
|
|
801
|
+
const config = loadConfig();
|
|
802
|
+
const settingsYes = options?.yes ?? config.sync.autoConfirm;
|
|
803
|
+
const conflictsYes = options?.yes ?? false;
|
|
804
|
+
const prune = { prune: options?.prune, force: options?.force };
|
|
805
|
+
const agentDir = path20.join(__dirname2, "..", "agent");
|
|
806
|
+
const claudeDir = path20.join(__dirname2, "..", "claude");
|
|
807
|
+
const targetBase = path20.join(os2.homedir(), ".claude");
|
|
808
|
+
const files = createSyncFiles([
|
|
809
|
+
...syncManifest.load(),
|
|
810
|
+
...retiredOwnedPaths()
|
|
811
|
+
]);
|
|
812
|
+
const commandNames = syncClaudeCommands(agentDir, targetBase, files);
|
|
813
|
+
const designSkillNames = syncDesign(agentDir, targetBase, files);
|
|
814
|
+
await syncSettings(claudeDir, targetBase, {
|
|
815
|
+
yes: settingsYes,
|
|
816
|
+
preferences: config.sync.preferences
|
|
817
|
+
});
|
|
818
|
+
await syncCodex(agentDir, files, prune);
|
|
819
|
+
syncPi(agentDir, files, prune);
|
|
820
|
+
reportRetiredAgentsFiles();
|
|
821
|
+
pruneClaude(targetBase, [...commandNames, ...designSkillNames], prune, files);
|
|
822
|
+
await files.finish(conflictsYes);
|
|
823
|
+
}
|
|
824
|
+
export {
|
|
825
|
+
sync
|
|
826
|
+
};
|