@archipelagolab/lobi 1.0.5 → 1.0.6
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/APEv2Parser-FYYGMFPI.js +15 -0
- package/dist/APEv2Parser-FYYGMFPI.js.map +7 -0
- package/dist/AiffParser-JHSDQA7T.js +194 -0
- package/dist/AiffParser-JHSDQA7T.js.map +7 -0
- package/dist/AsfParser-TPCQDEJB.js +620 -0
- package/dist/AsfParser-TPCQDEJB.js.map +7 -0
- package/dist/DsdiffParser-CGD3C3TL.js +192 -0
- package/dist/DsdiffParser-CGD3C3TL.js.map +7 -0
- package/dist/DsfParser-3UTIJVNF.js +114 -0
- package/dist/DsfParser-3UTIJVNF.js.map +7 -0
- package/dist/FlacParser-HLLYPJ76.js +16 -0
- package/dist/FlacParser-HLLYPJ76.js.map +7 -0
- package/dist/MP4Parser-SM7HYL3Z.js +1145 -0
- package/dist/MP4Parser-SM7HYL3Z.js.map +7 -0
- package/dist/MatroskaParser-X7WRZ6D4.js +662 -0
- package/dist/MatroskaParser-X7WRZ6D4.js.map +7 -0
- package/dist/MpegParser-KXQEC6KD.js +652 -0
- package/dist/MpegParser-KXQEC6KD.js.map +7 -0
- package/dist/MusepackParser-NURI46TG.js +331 -0
- package/dist/MusepackParser-NURI46TG.js.map +7 -0
- package/dist/OggParser-5IYVBXPS.js +448 -0
- package/dist/OggParser-5IYVBXPS.js.map +7 -0
- package/dist/WavPackParser-RTEHKSJH.js +209 -0
- package/dist/WavPackParser-RTEHKSJH.js.map +7 -0
- package/dist/WaveParser-3R2NLXGP.js +300 -0
- package/dist/WaveParser-3R2NLXGP.js.map +7 -0
- package/dist/auth-presence.js +2 -2
- package/dist/channel-plugin-api.js +68 -68
- package/dist/chunk-2GFROLI2.js +261 -0
- package/dist/chunk-2GFROLI2.js.map +7 -0
- package/dist/chunk-2IQWKATM.js +127 -0
- package/dist/chunk-2IQWKATM.js.map +7 -0
- package/dist/chunk-2V6Y4CAN.js +25 -0
- package/dist/chunk-2V6Y4CAN.js.map +7 -0
- package/dist/chunk-2WHRUMOM.js +321 -0
- package/dist/chunk-2WHRUMOM.js.map +7 -0
- package/dist/chunk-3GIK7SAA.js +109 -0
- package/dist/chunk-3GIK7SAA.js.map +7 -0
- package/dist/chunk-3OXOEMBS.js +123 -0
- package/dist/chunk-3OXOEMBS.js.map +7 -0
- package/dist/chunk-3R4ATE4Q.js +176 -0
- package/dist/chunk-3R4ATE4Q.js.map +7 -0
- package/dist/chunk-4CFQNJ7F.js +7 -0
- package/dist/chunk-4CFQNJ7F.js.map +7 -0
- package/dist/chunk-4COI4L2Y.js +31 -0
- package/dist/chunk-4COI4L2Y.js.map +7 -0
- package/dist/chunk-4EKKDVG3.js +1662 -0
- package/dist/chunk-4EKKDVG3.js.map +7 -0
- package/dist/chunk-4L2QI6AY.js +71 -0
- package/dist/chunk-4L2QI6AY.js.map +7 -0
- package/dist/chunk-4OXPPDV6.js +676 -0
- package/dist/chunk-4OXPPDV6.js.map +7 -0
- package/dist/chunk-4QTZHELX.js +51 -0
- package/dist/chunk-4QTZHELX.js.map +7 -0
- package/dist/chunk-4U42OJMK.js +217 -0
- package/dist/chunk-4U42OJMK.js.map +7 -0
- package/dist/chunk-4WCKVGQ5.js +193 -0
- package/dist/chunk-4WCKVGQ5.js.map +7 -0
- package/dist/chunk-4XXERLFH.js +95 -0
- package/dist/chunk-4XXERLFH.js.map +7 -0
- package/dist/chunk-4ZY2BOQ4.js +123 -0
- package/dist/chunk-4ZY2BOQ4.js.map +7 -0
- package/dist/chunk-57ROEOHB.js +183 -0
- package/dist/chunk-57ROEOHB.js.map +7 -0
- package/dist/chunk-5BQ6LLNU.js +39 -0
- package/dist/chunk-5BQ6LLNU.js.map +7 -0
- package/dist/chunk-63QTHDJL.js +52 -0
- package/dist/chunk-63QTHDJL.js.map +7 -0
- package/dist/chunk-65UUVZ6B.js +151 -0
- package/dist/chunk-65UUVZ6B.js.map +7 -0
- package/dist/chunk-6COVTMAO.js +3586 -0
- package/dist/chunk-6COVTMAO.js.map +7 -0
- package/dist/chunk-6EYPDJUD.js +34 -0
- package/dist/chunk-6EYPDJUD.js.map +7 -0
- package/dist/chunk-6HDYPVA4.js +15 -0
- package/dist/chunk-6HDYPVA4.js.map +7 -0
- package/dist/chunk-6OP3FK5F.js +266 -0
- package/dist/chunk-6OP3FK5F.js.map +7 -0
- package/dist/chunk-6RBDFNSX.js +88 -0
- package/dist/chunk-6RBDFNSX.js.map +7 -0
- package/dist/chunk-6TWWCETB.js +70 -0
- package/dist/chunk-6TWWCETB.js.map +7 -0
- package/dist/chunk-6WFHPMUF.js +17 -0
- package/dist/chunk-6WFHPMUF.js.map +7 -0
- package/dist/chunk-77BEEAPD.js +86 -0
- package/dist/chunk-77BEEAPD.js.map +7 -0
- package/dist/chunk-77JJ6QJK.js +50 -0
- package/dist/chunk-77JJ6QJK.js.map +7 -0
- package/dist/chunk-7BIUNV33.js +62 -0
- package/dist/chunk-7BIUNV33.js.map +7 -0
- package/dist/chunk-7L37R42D.js +52 -0
- package/dist/chunk-7L37R42D.js.map +7 -0
- package/dist/chunk-7ZP3KYVO.js +104 -0
- package/dist/chunk-7ZP3KYVO.js.map +7 -0
- package/dist/chunk-ARGF232V.js +32 -0
- package/dist/chunk-ARGF232V.js.map +7 -0
- package/dist/chunk-ATCJOK3K.js +24 -0
- package/dist/chunk-ATCJOK3K.js.map +7 -0
- package/dist/chunk-AUUABFHL.js +124 -0
- package/dist/chunk-AUUABFHL.js.map +7 -0
- package/dist/chunk-B3NTODO7.js +57 -0
- package/dist/chunk-B3NTODO7.js.map +7 -0
- package/dist/chunk-BM7J2W36.js +86 -0
- package/dist/chunk-BM7J2W36.js.map +7 -0
- package/dist/chunk-CEB5S2Z5.js +127 -0
- package/dist/chunk-CEB5S2Z5.js.map +7 -0
- package/dist/chunk-CEKNTCJD.js +177 -0
- package/dist/chunk-CEKNTCJD.js.map +7 -0
- package/dist/chunk-CGFDIH77.js +94 -0
- package/dist/chunk-CGFDIH77.js.map +7 -0
- package/dist/chunk-CPLEC5LJ.js +26 -0
- package/dist/chunk-CPLEC5LJ.js.map +7 -0
- package/dist/chunk-D4GYYYMW.js +155 -0
- package/dist/chunk-D4GYYYMW.js.map +7 -0
- package/dist/chunk-D64CZG54.js +78 -0
- package/dist/chunk-D64CZG54.js.map +7 -0
- package/dist/chunk-DSGPDHF2.js +737 -0
- package/dist/chunk-DSGPDHF2.js.map +7 -0
- package/dist/chunk-EBXHW7ZO.js +108 -0
- package/dist/chunk-EBXHW7ZO.js.map +7 -0
- package/dist/chunk-EO35SCFP.js +7 -0
- package/dist/chunk-EO35SCFP.js.map +7 -0
- package/dist/chunk-ER2XTD2S.js +271 -0
- package/dist/chunk-ER2XTD2S.js.map +7 -0
- package/dist/chunk-ERXO3674.js +54 -0
- package/dist/chunk-ERXO3674.js.map +7 -0
- package/dist/chunk-F43CC2X2.js +49 -0
- package/dist/chunk-F43CC2X2.js.map +7 -0
- package/dist/chunk-F64TXVJJ.js +158 -0
- package/dist/chunk-F64TXVJJ.js.map +7 -0
- package/dist/chunk-F6APWSAA.js +51 -0
- package/dist/chunk-F6APWSAA.js.map +7 -0
- package/dist/chunk-F7LNS7G3.js +235 -0
- package/dist/chunk-F7LNS7G3.js.map +7 -0
- package/dist/chunk-FCNWR7ZX.js +16352 -0
- package/dist/chunk-FCNWR7ZX.js.map +7 -0
- package/dist/chunk-FFCG5NRU.js +87 -0
- package/dist/chunk-FFCG5NRU.js.map +7 -0
- package/dist/chunk-FJFC6CRR.js +446 -0
- package/dist/chunk-FJFC6CRR.js.map +7 -0
- package/dist/chunk-FK6RGYBB.js +46 -0
- package/dist/chunk-FK6RGYBB.js.map +7 -0
- package/dist/chunk-FMY6KXK6.js +251 -0
- package/dist/chunk-FMY6KXK6.js.map +7 -0
- package/dist/chunk-FPH56SCM.js +21 -0
- package/dist/chunk-FPH56SCM.js.map +7 -0
- package/dist/chunk-FVSH4Z6T.js +173 -0
- package/dist/chunk-FVSH4Z6T.js.map +7 -0
- package/dist/chunk-FVWBLEAD.js +44 -0
- package/dist/chunk-FVWBLEAD.js.map +7 -0
- package/dist/chunk-FYSARMGS.js +93 -0
- package/dist/chunk-FYSARMGS.js.map +7 -0
- package/dist/chunk-FZJOJ6P4.js +28 -0
- package/dist/chunk-FZJOJ6P4.js.map +7 -0
- package/dist/chunk-G46GHNDU.js +4890 -0
- package/dist/chunk-G46GHNDU.js.map +7 -0
- package/dist/chunk-G4TIS2SC.js +56 -0
- package/dist/chunk-G4TIS2SC.js.map +7 -0
- package/dist/chunk-GGWS7NQP.js +247 -0
- package/dist/chunk-GGWS7NQP.js.map +7 -0
- package/dist/chunk-GRBJYAYF.js +129 -0
- package/dist/chunk-GRBJYAYF.js.map +7 -0
- package/dist/chunk-GXDQGBA2.js +106 -0
- package/dist/chunk-GXDQGBA2.js.map +7 -0
- package/dist/chunk-H2HY73I6.js +122 -0
- package/dist/chunk-H2HY73I6.js.map +7 -0
- package/dist/chunk-H5MLA6PA.js +29 -0
- package/dist/chunk-H5MLA6PA.js.map +7 -0
- package/dist/chunk-H7KAUMBC.js +635 -0
- package/dist/chunk-H7KAUMBC.js.map +7 -0
- package/dist/chunk-HGHU3TVL.js +174 -0
- package/dist/chunk-HGHU3TVL.js.map +7 -0
- package/dist/chunk-HJ5E2JRL.js +88 -0
- package/dist/chunk-HJ5E2JRL.js.map +7 -0
- package/dist/chunk-HJW3CKZL.js +94 -0
- package/dist/chunk-HJW3CKZL.js.map +7 -0
- package/dist/chunk-HKF5EBER.js +418 -0
- package/dist/chunk-HKF5EBER.js.map +7 -0
- package/dist/chunk-HLUR35G5.js +30 -0
- package/dist/chunk-HLUR35G5.js.map +7 -0
- package/dist/chunk-HNIW2NZU.js +120 -0
- package/dist/chunk-HNIW2NZU.js.map +7 -0
- package/dist/chunk-HSXRCP25.js +171 -0
- package/dist/chunk-HSXRCP25.js.map +7 -0
- package/dist/chunk-I26OPZLO.js +28 -0
- package/dist/chunk-I26OPZLO.js.map +7 -0
- package/dist/chunk-I7JJQ4BQ.js +30 -0
- package/dist/chunk-I7JJQ4BQ.js.map +7 -0
- package/dist/chunk-IJ6Y4W7F.js +392 -0
- package/dist/chunk-IJ6Y4W7F.js.map +7 -0
- package/dist/chunk-IJH4NOQ4.js +18 -0
- package/dist/chunk-IJH4NOQ4.js.map +7 -0
- package/dist/chunk-IMHRZQRH.js +76 -0
- package/dist/chunk-IMHRZQRH.js.map +7 -0
- package/dist/chunk-JB6ZQEVR.js +465 -0
- package/dist/chunk-JB6ZQEVR.js.map +7 -0
- package/dist/chunk-JCWNMWNY.js +102 -0
- package/dist/chunk-JCWNMWNY.js.map +7 -0
- package/dist/chunk-JGIZPU2Y.js +39 -0
- package/dist/chunk-JGIZPU2Y.js.map +7 -0
- package/dist/chunk-JIU4FXA7.js +485 -0
- package/dist/chunk-JIU4FXA7.js.map +7 -0
- package/dist/chunk-JU2Y33DB.js +60 -0
- package/dist/chunk-JU2Y33DB.js.map +7 -0
- package/dist/chunk-JVLRI4RU.js +62 -0
- package/dist/chunk-JVLRI4RU.js.map +7 -0
- package/dist/chunk-JZ3AVNZC.js +44117 -0
- package/dist/chunk-JZ3AVNZC.js.map +7 -0
- package/dist/chunk-K3HEWOHN.js +30 -0
- package/dist/chunk-K3HEWOHN.js.map +7 -0
- package/dist/chunk-K5EK4WZV.js +7 -0
- package/dist/chunk-K5EK4WZV.js.map +7 -0
- package/dist/chunk-KAWXMSYC.js +58 -0
- package/dist/chunk-KAWXMSYC.js.map +7 -0
- package/dist/chunk-KEGPHS4C.js +80 -0
- package/dist/chunk-KEGPHS4C.js.map +7 -0
- package/dist/chunk-KXXVR3DC.js +244 -0
- package/dist/chunk-KXXVR3DC.js.map +7 -0
- package/dist/chunk-L5T6XUDP.js +412 -0
- package/dist/chunk-L5T6XUDP.js.map +7 -0
- package/dist/chunk-LIFXTQ4U.js +7287 -0
- package/dist/chunk-LIFXTQ4U.js.map +7 -0
- package/dist/chunk-LMD5UTKM.js +169 -0
- package/dist/chunk-LMD5UTKM.js.map +7 -0
- package/dist/chunk-LTXNC6JX.js +27 -0
- package/dist/chunk-LTXNC6JX.js.map +7 -0
- package/dist/chunk-LUGTGPT6.js +138 -0
- package/dist/chunk-LUGTGPT6.js.map +7 -0
- package/dist/chunk-LZQFDJNW.js +300 -0
- package/dist/chunk-LZQFDJNW.js.map +7 -0
- package/dist/chunk-M4VQPIF4.js +5853 -0
- package/dist/chunk-M4VQPIF4.js.map +7 -0
- package/dist/chunk-M64QE4QC.js +64 -0
- package/dist/chunk-M64QE4QC.js.map +7 -0
- package/dist/chunk-MJ2GW6SU.js +163 -0
- package/dist/chunk-MJ2GW6SU.js.map +7 -0
- package/dist/chunk-MYSK3SIM.js +55 -0
- package/dist/chunk-MYSK3SIM.js.map +7 -0
- package/dist/chunk-N46MIZXB.js +154 -0
- package/dist/chunk-N46MIZXB.js.map +7 -0
- package/dist/chunk-N53537P6.js +31 -0
- package/dist/chunk-N53537P6.js.map +7 -0
- package/dist/chunk-N5CTFOLX.js +40 -0
- package/dist/chunk-N5CTFOLX.js.map +7 -0
- package/dist/chunk-NIFG55CE.js +52 -0
- package/dist/chunk-NIFG55CE.js.map +7 -0
- package/dist/chunk-NJ63ALPX.js +7 -0
- package/dist/chunk-NJ63ALPX.js.map +7 -0
- package/dist/chunk-NZVHE4IT.js +3101 -0
- package/dist/chunk-NZVHE4IT.js.map +7 -0
- package/dist/chunk-O7ORICEC.js +82 -0
- package/dist/chunk-O7ORICEC.js.map +7 -0
- package/dist/chunk-OBMBAM3N.js +73 -0
- package/dist/chunk-OBMBAM3N.js.map +7 -0
- package/dist/chunk-OJJBD5K3.js +45 -0
- package/dist/chunk-OJJBD5K3.js.map +7 -0
- package/dist/chunk-OKDOVX4B.js +699 -0
- package/dist/chunk-OKDOVX4B.js.map +7 -0
- package/dist/chunk-OVMDMCZ5.js +241 -0
- package/dist/chunk-OVMDMCZ5.js.map +7 -0
- package/dist/chunk-OVU43GJK.js +63 -0
- package/dist/chunk-OVU43GJK.js.map +7 -0
- package/dist/chunk-P3TMARA6.js +18 -0
- package/dist/chunk-P3TMARA6.js.map +7 -0
- package/dist/chunk-PLMOTQ42.js +335 -0
- package/dist/chunk-PLMOTQ42.js.map +7 -0
- package/dist/chunk-Q6H5OV2R.js +180 -0
- package/dist/chunk-Q6H5OV2R.js.map +7 -0
- package/dist/chunk-QAR5POXD.js +472 -0
- package/dist/chunk-QAR5POXD.js.map +7 -0
- package/dist/chunk-R5S76YR5.js +12 -0
- package/dist/chunk-R5S76YR5.js.map +7 -0
- package/dist/chunk-R7ZBOXPS.js +163 -0
- package/dist/chunk-R7ZBOXPS.js.map +7 -0
- package/dist/chunk-RAL3KX76.js +239 -0
- package/dist/chunk-RAL3KX76.js.map +7 -0
- package/dist/chunk-RHITG64O.js +50 -0
- package/dist/chunk-RHITG64O.js.map +7 -0
- package/dist/chunk-RK5HZFP6.js +111 -0
- package/dist/chunk-RK5HZFP6.js.map +7 -0
- package/dist/chunk-RQ26XXFS.js +45 -0
- package/dist/chunk-RQ26XXFS.js.map +7 -0
- package/dist/chunk-RSA7PKZH.js +187 -0
- package/dist/chunk-RSA7PKZH.js.map +7 -0
- package/dist/chunk-RTSINQ4T.js +78 -0
- package/dist/chunk-RTSINQ4T.js.map +7 -0
- package/dist/chunk-SH6Y4CGQ.js +175 -0
- package/dist/chunk-SH6Y4CGQ.js.map +7 -0
- package/dist/chunk-SHBAAFFH.js +74 -0
- package/dist/chunk-SHBAAFFH.js.map +7 -0
- package/dist/chunk-SPNSM6SB.js +36 -0
- package/dist/chunk-SPNSM6SB.js.map +7 -0
- package/dist/chunk-SQUHLLK5.js +125 -0
- package/dist/chunk-SQUHLLK5.js.map +7 -0
- package/dist/chunk-SWWK35VQ.js +84 -0
- package/dist/chunk-SWWK35VQ.js.map +7 -0
- package/dist/chunk-TC5ZVFV6.js +292 -0
- package/dist/chunk-TC5ZVFV6.js.map +7 -0
- package/dist/chunk-TFD7ZIYD.js +105 -0
- package/dist/chunk-TFD7ZIYD.js.map +7 -0
- package/dist/chunk-TH6ONRWT.js +516 -0
- package/dist/chunk-TH6ONRWT.js.map +7 -0
- package/dist/chunk-TMQMQ67T.js +81 -0
- package/dist/chunk-TMQMQ67T.js.map +7 -0
- package/dist/chunk-TPYWUZOR.js +178 -0
- package/dist/chunk-TPYWUZOR.js.map +7 -0
- package/dist/chunk-U2O4LE6S.js +22 -0
- package/dist/chunk-U2O4LE6S.js.map +7 -0
- package/dist/chunk-U44IVNP2.js +91 -0
- package/dist/chunk-U44IVNP2.js.map +7 -0
- package/dist/chunk-UDDWLWKZ.js +82 -0
- package/dist/chunk-UDDWLWKZ.js.map +7 -0
- package/dist/chunk-UMMPB6FL.js +506 -0
- package/dist/chunk-UMMPB6FL.js.map +7 -0
- package/dist/chunk-UP42ACP7.js +27 -0
- package/dist/chunk-UP42ACP7.js.map +7 -0
- package/dist/chunk-UPEF7ETP.js +92 -0
- package/dist/chunk-UPEF7ETP.js.map +7 -0
- package/dist/chunk-VBDLTKI2.js +130 -0
- package/dist/chunk-VBDLTKI2.js.map +7 -0
- package/dist/chunk-VCWIKEJ7.js +7 -0
- package/dist/chunk-VCWIKEJ7.js.map +7 -0
- package/dist/chunk-VPQICZQR.js +93 -0
- package/dist/chunk-VPQICZQR.js.map +7 -0
- package/dist/chunk-VRBJNFPL.js +114 -0
- package/dist/chunk-VRBJNFPL.js.map +7 -0
- package/dist/chunk-VUU5KFH3.js +38 -0
- package/dist/chunk-VUU5KFH3.js.map +7 -0
- package/dist/chunk-VVBL5CFF.js +7 -0
- package/dist/chunk-VVBL5CFF.js.map +7 -0
- package/dist/chunk-VYZEQ6KY.js +22 -0
- package/dist/chunk-VYZEQ6KY.js.map +7 -0
- package/dist/chunk-WBPQVWSU.js +198 -0
- package/dist/chunk-WBPQVWSU.js.map +7 -0
- package/dist/chunk-WS6HWBKT.js +30 -0
- package/dist/chunk-WS6HWBKT.js.map +7 -0
- package/dist/chunk-XOZPOHLG.js +233 -0
- package/dist/chunk-XOZPOHLG.js.map +7 -0
- package/dist/chunk-XR7DPSNX.js +195 -0
- package/dist/chunk-XR7DPSNX.js.map +7 -0
- package/dist/chunk-XYH4JC3U.js +7 -0
- package/dist/chunk-XYH4JC3U.js.map +7 -0
- package/dist/chunk-YB5UCHLN.js +314 -0
- package/dist/chunk-YB5UCHLN.js.map +7 -0
- package/dist/chunk-YF5DYD3X.js +97 -0
- package/dist/chunk-YF5DYD3X.js.map +7 -0
- package/dist/chunk-YGVQZCE7.js +30 -0
- package/dist/chunk-YGVQZCE7.js.map +7 -0
- package/dist/chunk-YNHADHHS.js +138 -0
- package/dist/chunk-YNHADHHS.js.map +7 -0
- package/dist/chunk-YOAMBAM2.js +70 -0
- package/dist/chunk-YOAMBAM2.js.map +7 -0
- package/dist/chunk-YWE5AQPZ.js +258 -0
- package/dist/chunk-YWE5AQPZ.js.map +7 -0
- package/dist/chunk-YWHH3MB6.js +1405 -0
- package/dist/chunk-YWHH3MB6.js.map +7 -0
- package/dist/chunk-YZ6F5N7R.js +455 -0
- package/dist/chunk-YZ6F5N7R.js.map +7 -0
- package/dist/chunk-ZFGRQIB6.js +38 -0
- package/dist/chunk-ZFGRQIB6.js.map +7 -0
- package/dist/chunk-ZGAUVPAB.js +14 -0
- package/dist/chunk-ZGAUVPAB.js.map +7 -0
- package/dist/chunk-ZGCATLM5.js +18 -0
- package/dist/chunk-ZGCATLM5.js.map +7 -0
- package/dist/chunk-ZSOPE7DO.js +92 -0
- package/dist/chunk-ZSOPE7DO.js.map +7 -0
- package/dist/chunk-ZY247PXY.js +135 -0
- package/dist/chunk-ZY247PXY.js.map +7 -0
- package/dist/cli-metadata.js +3 -3
- package/dist/contract-api.js +64 -64
- package/dist/dist-DVBXHDB4.js +549 -0
- package/dist/dist-DVBXHDB4.js.map +7 -0
- package/dist/helper-api.js +6 -6
- package/dist/index.js +8 -9
- package/dist/index.js.map +1 -1
- package/dist/magic-string.es-ITIPPYGW.js +1315 -0
- package/dist/magic-string.es-ITIPPYGW.js.map +7 -0
- package/dist/package.json +1 -1
- package/dist/plugin-entry.handlers.runtime-JLRK5XTV.js +20 -0
- package/dist/plugin-entry.handlers.runtime-JLRK5XTV.js.map +7 -0
- package/dist/runtime-api.js +9 -9
- package/dist/rust-crypto-7KS7OJ3F.js +5323 -0
- package/dist/rust-crypto-7KS7OJ3F.js.map +7 -0
- package/dist/secret-contract-api.js +3 -3
- package/dist/setup-entry.js +2 -3
- package/dist/setup-entry.js.map +1 -1
- package/dist/src/account-selection.js +5 -5
- package/dist/src/actions.js +18 -18
- package/dist/src/approval-auth.js +19 -19
- package/dist/src/approval-handler.runtime.js +55 -55
- package/dist/src/approval-ids.js +3 -3
- package/dist/src/approval-native.js +22 -22
- package/dist/src/approval-reactions.js +2 -2
- package/dist/src/auth-precedence.js +2 -2
- package/dist/src/channel-account-paths.js +3 -3
- package/dist/src/channel.js +68 -68
- package/dist/src/channel.runtime.js +51 -51
- package/dist/src/cli-metadata.js +2 -2
- package/dist/src/cli.js +63 -63
- package/dist/src/config-adapter.js +18 -18
- package/dist/src/config-schema.js +2 -2
- package/dist/src/directory-live.js +27 -27
- package/dist/src/doctor-contract.js +3 -3
- package/dist/src/doctor.js +24 -24
- package/dist/src/env-vars.js +2 -2
- package/dist/src/exec-approval-resolver.js +2 -2
- package/dist/src/exec-approvals.js +20 -20
- package/dist/src/group-mentions.js +20 -20
- package/dist/src/legacy-crypto-inspector-availability.js +2 -2
- package/dist/src/legacy-crypto.js +18 -18
- package/dist/src/legacy-state.js +16 -16
- package/dist/src/matrix/account-config.js +2 -2
- package/dist/src/matrix/accounts.js +16 -16
- package/dist/src/matrix/actions/client.js +30 -30
- package/dist/src/matrix/actions/devices.js +32 -32
- package/dist/src/matrix/actions/limits.js +2 -2
- package/dist/src/matrix/actions/messages.js +37 -37
- package/dist/src/matrix/actions/pins.js +36 -36
- package/dist/src/matrix/actions/polls.js +31 -31
- package/dist/src/matrix/actions/profile.js +32 -32
- package/dist/src/matrix/actions/reactions.js +32 -32
- package/dist/src/matrix/actions/room.js +32 -32
- package/dist/src/matrix/actions/summary.js +9 -9
- package/dist/src/matrix/actions/types.js +3 -3
- package/dist/src/matrix/actions/verification.js +37 -37
- package/dist/src/matrix/actions.js +51 -51
- package/dist/src/matrix/active-client.js +2 -2
- package/dist/src/matrix/async-lock.js +2 -2
- package/dist/src/matrix/backup-health.js +2 -2
- package/dist/src/matrix/client/config-runtime-api.js +3 -3
- package/dist/src/matrix/client/config-secret-input.runtime.js +1 -1
- package/dist/src/matrix/client/config.js +13 -13
- package/dist/src/matrix/client/create-client.js +14 -14
- package/dist/src/matrix/client/env-auth.js +14 -14
- package/dist/src/matrix/client/file-sync-store.js +17 -17
- package/dist/src/matrix/client/logging.js +5 -5
- package/dist/src/matrix/client/migration-snapshot.runtime.js +2 -2
- package/dist/src/matrix/client/private-network-host.js +2 -2
- package/dist/src/matrix/client/runtime.js +2 -2
- package/dist/src/matrix/client/shared.js +16 -16
- package/dist/src/matrix/client/storage.js +8 -8
- package/dist/src/matrix/client/types.js +1 -1
- package/dist/src/matrix/client-bootstrap.js +5 -5
- package/dist/src/matrix/client-resolver.test-helpers.js +2 -2
- package/dist/src/matrix/client.js +19 -19
- package/dist/src/matrix/config-paths.js +2 -2
- package/dist/src/matrix/config-update.js +4 -4
- package/dist/src/matrix/credentials-read.js +8 -8
- package/dist/src/matrix/credentials-write.runtime.js +1 -1
- package/dist/src/matrix/credentials.js +10 -10
- package/dist/src/matrix/deps.js +2 -2
- package/dist/src/matrix/device-health.js +2 -2
- package/dist/src/matrix/direct-management.js +6 -6
- package/dist/src/matrix/direct-room.js +2 -2
- package/dist/src/matrix/draft-stream.js +27 -27
- package/dist/src/matrix/encryption-guidance.js +7 -7
- package/dist/src/matrix/errors.js +2 -2
- package/dist/src/matrix/format.js +3 -3
- package/dist/src/matrix/legacy-crypto-inspector.js +3 -4
- package/dist/src/matrix/legacy-crypto-inspector.js.map +1 -1
- package/dist/src/matrix/media-errors.js +2 -2
- package/dist/src/matrix/media-text.js +2 -2
- package/dist/src/matrix/monitor/access-state.js +3 -3
- package/dist/src/matrix/monitor/ack-config.js +4 -4
- package/dist/src/matrix/monitor/allowlist.js +2 -2
- package/dist/src/matrix/monitor/auto-join.js +3 -3
- package/dist/src/matrix/monitor/config.js +31 -31
- package/dist/src/matrix/monitor/context-summary.js +5 -5
- package/dist/src/matrix/monitor/direct.js +7 -7
- package/dist/src/matrix/monitor/events.js +14 -14
- package/dist/src/matrix/monitor/handler.js +70 -70
- package/dist/src/matrix/monitor/handler.test-helpers.js +71 -71
- package/dist/src/matrix/monitor/inbound-dedupe.js +11 -11
- package/dist/src/matrix/monitor/index.js +100 -100
- package/dist/src/matrix/monitor/legacy-crypto-restore.js +8 -8
- package/dist/src/matrix/monitor/location.js +5 -5
- package/dist/src/matrix/monitor/media.js +4 -4
- package/dist/src/matrix/monitor/mentions.js +3 -3
- package/dist/src/matrix/monitor/reaction-events.js +30 -30
- package/dist/src/matrix/monitor/recent-invite.js +4 -4
- package/dist/src/matrix/monitor/replies.js +27 -27
- package/dist/src/matrix/monitor/reply-context.js +6 -6
- package/dist/src/matrix/monitor/room-history.js +2 -2
- package/dist/src/matrix/monitor/room-info.js +3 -3
- package/dist/src/matrix/monitor/rooms.js +3 -3
- package/dist/src/matrix/monitor/route.js +6 -6
- package/dist/src/matrix/monitor/runtime-api.js +2 -2
- package/dist/src/matrix/monitor/startup-verification.js +9 -9
- package/dist/src/matrix/monitor/startup.js +3 -3
- package/dist/src/matrix/monitor/status.js +4 -4
- package/dist/src/matrix/monitor/sync-lifecycle.js +3 -3
- package/dist/src/matrix/monitor/task-runner.js +2 -2
- package/dist/src/matrix/monitor/thread-context.js +6 -6
- package/dist/src/matrix/monitor/threads.js +4 -4
- package/dist/src/matrix/monitor/types.js +3 -3
- package/dist/src/matrix/monitor/verification-events.js +7 -7
- package/dist/src/matrix/monitor/verification-utils.js +2 -2
- package/dist/src/matrix/outbound-media-runtime.js +3 -3
- package/dist/src/matrix/poll-summary.js +4 -4
- package/dist/src/matrix/poll-types.js +3 -3
- package/dist/src/matrix/probe.js +3 -3
- package/dist/src/matrix/probe.runtime.js +19 -19
- package/dist/src/matrix/profile.js +2 -2
- package/dist/src/matrix/reaction-common.js +2 -2
- package/dist/src/matrix/sdk/crypto-bootstrap.js +9 -9
- package/dist/src/matrix/sdk/crypto-facade.js +2 -2
- package/dist/src/matrix/sdk/crypto-node.runtime.js +2 -3
- package/dist/src/matrix/sdk/crypto-node.runtime.js.map +1 -1
- package/dist/src/matrix/sdk/crypto-runtime.js +16 -16
- package/dist/src/matrix/sdk/decrypt-bridge.js +5 -5
- package/dist/src/matrix/sdk/event-helpers.js +2 -2
- package/dist/src/matrix/sdk/http-client.js +7 -7
- package/dist/src/matrix/sdk/idb-persistence-lock.js +2 -2
- package/dist/src/matrix/sdk/idb-persistence.js +5 -5
- package/dist/src/matrix/sdk/idb-persistence.test-helpers.js +1 -1
- package/dist/src/matrix/sdk/logger.js +3 -3
- package/dist/src/matrix/sdk/read-response-with-limit.js +2 -2
- package/dist/src/matrix/sdk/recovery-key-store.js +6 -6
- package/dist/src/matrix/sdk/transport.js +5 -5
- package/dist/src/matrix/sdk/types.js +1 -1
- package/dist/src/matrix/sdk/verification-manager.js +5 -5
- package/dist/src/matrix/sdk/verification-status.js +2 -2
- package/dist/src/matrix/sdk.js +31 -31
- package/dist/src/matrix/send/client.js +4 -4
- package/dist/src/matrix/send/formatting.js +7 -7
- package/dist/src/matrix/send/media.js +12 -12
- package/dist/src/matrix/send/targets.js +7 -7
- package/dist/src/matrix/send/types.js +3 -3
- package/dist/src/matrix/send.js +26 -26
- package/dist/src/matrix/session-store-metadata.js +3 -3
- package/dist/src/matrix/startup-abort.js +2 -2
- package/dist/src/matrix/sync-state.js +2 -2
- package/dist/src/matrix/target-ids.js +2 -2
- package/dist/src/matrix/thread-bindings-shared.js +2 -2
- package/dist/src/matrix/thread-bindings.js +34 -34
- package/dist/src/matrix-migration.runtime.js +22 -22
- package/dist/src/migration-config.js +15 -15
- package/dist/src/migration-snapshot-backup.js +2 -2
- package/dist/src/migration-snapshot.js +21 -21
- package/dist/src/onboarding.js +37 -37
- package/dist/src/onboarding.test-harness.js +2 -2
- package/dist/src/outbound.js +27 -27
- package/dist/src/plugin-entry.runtime.js +3 -3
- package/dist/src/profile-update.js +35 -35
- package/dist/src/record-shared.js +2 -2
- package/dist/src/resolve-targets.js +28 -28
- package/dist/src/resolver.js +2 -2
- package/dist/src/runtime-api.js +2 -2
- package/dist/src/runtime.js +2 -2
- package/dist/src/secret-contract.js +3 -3
- package/dist/src/session-route.js +19 -19
- package/dist/src/setup-bootstrap.js +46 -46
- package/dist/src/setup-config.js +18 -18
- package/dist/src/setup-contract.js +2 -2
- package/dist/src/setup-core.js +19 -19
- package/dist/src/setup-surface.js +38 -38
- package/dist/src/startup-maintenance.js +23 -23
- package/dist/src/storage-paths.js +2 -2
- package/dist/src/test-helpers.js +1 -1
- package/dist/src/test-mocks.js +2 -2
- package/dist/src/test-runtime.js +3 -3
- package/dist/src/tool-actions.js +62 -62
- package/dist/src/tool-actions.runtime.js +62 -62
- package/dist/src/types.js +1 -1
- package/dist/test-api.js +68 -68
- package/dist/thread-bindings-runtime.js +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveMatrixConfigFieldPath
|
|
3
|
+
} from "./chunk-SPNSM6SB.js";
|
|
4
|
+
import {
|
|
5
|
+
resolveMatrixDefaultOrOnlyAccountId
|
|
6
|
+
} from "./chunk-3R4ATE4Q.js";
|
|
7
|
+
import {
|
|
8
|
+
init_shims
|
|
9
|
+
} from "./chunk-G4TIS2SC.js";
|
|
10
|
+
|
|
11
|
+
// src/matrix/encryption-guidance.ts
|
|
12
|
+
init_shims();
|
|
13
|
+
import { normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
|
|
14
|
+
function resolveMatrixEncryptionConfigPath(cfg, accountId) {
|
|
15
|
+
const effectiveAccountId = normalizeOptionalAccountId(accountId) ?? resolveMatrixDefaultOrOnlyAccountId(cfg);
|
|
16
|
+
return resolveMatrixConfigFieldPath(cfg, effectiveAccountId, "encryption");
|
|
17
|
+
}
|
|
18
|
+
function formatMatrixEncryptionUnavailableError(cfg, accountId) {
|
|
19
|
+
return `Matrix encryption is not available (enable ${resolveMatrixEncryptionConfigPath(cfg, accountId)}=true)`;
|
|
20
|
+
}
|
|
21
|
+
function formatMatrixEncryptedEventDisabledWarning(cfg, accountId) {
|
|
22
|
+
return `matrix: encrypted event received without encryption enabled; set ${resolveMatrixEncryptionConfigPath(cfg, accountId)}=true and verify the device to decrypt`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export {
|
|
26
|
+
resolveMatrixEncryptionConfigPath,
|
|
27
|
+
formatMatrixEncryptionUnavailableError,
|
|
28
|
+
formatMatrixEncryptedEventDisabledWarning
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk-K3HEWOHN.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/matrix/encryption-guidance.ts"],
|
|
4
|
+
"sourcesContent": ["import { normalizeOptionalAccountId } from \"openclaw/plugin-sdk/account-id\";\nimport { resolveMatrixDefaultOrOnlyAccountId } from \"../account-selection.js\";\nimport type { CoreConfig } from \"../types.js\";\nimport { resolveMatrixConfigFieldPath } from \"./config-paths.js\";\n\nexport function resolveMatrixEncryptionConfigPath(\n cfg: CoreConfig,\n accountId?: string | null,\n): string {\n const effectiveAccountId =\n normalizeOptionalAccountId(accountId) ?? resolveMatrixDefaultOrOnlyAccountId(cfg);\n return resolveMatrixConfigFieldPath(cfg, effectiveAccountId, \"encryption\");\n}\n\nexport function formatMatrixEncryptionUnavailableError(\n cfg: CoreConfig,\n accountId?: string | null,\n): string {\n return `Matrix encryption is not available (enable ${resolveMatrixEncryptionConfigPath(cfg, accountId)}=true)`;\n}\n\nexport function formatMatrixEncryptedEventDisabledWarning(\n cfg: CoreConfig,\n accountId?: string | null,\n): string {\n return `matrix: encrypted event received without encryption enabled; set ${resolveMatrixEncryptionConfigPath(cfg, accountId)}=true and verify the device to decrypt`;\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAAA;AAAA,SAAS,kCAAkC;AAKpC,SAAS,kCACd,KACA,WACQ;AACR,QAAM,qBACJ,2BAA2B,SAAS,KAAK,oCAAoC,GAAG;AAClF,SAAO,6BAA6B,KAAK,oBAAoB,YAAY;AAC3E;AAEO,SAAS,uCACd,KACA,WACQ;AACR,SAAO,8CAA8C,kCAAkC,KAAK,SAAS,CAAC;AACxG;AAEO,SAAS,0CACd,KACA,WACQ;AACR,SAAO,oEAAoE,kCAAkC,KAAK,SAAS,CAAC;AAC9H;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/matrix-migration.runtime.ts"],
|
|
4
|
+
"sourcesContent": ["export { autoMigrateLegacyMatrixState, detectLegacyMatrixState } from \"./legacy-state.js\";\nexport { autoPrepareLegacyMatrixCrypto, detectLegacyMatrixCrypto } from \"./legacy-crypto.js\";\nexport {\n hasActionableMatrixMigration,\n hasPendingMatrixMigration,\n resolveMatrixMigrationStatus,\n type MatrixMigrationStatus,\n} from \"./migration-snapshot.js\";\nexport { maybeCreateMatrixMigrationSnapshot } from \"./migration-snapshot-backup.js\";\n"],
|
|
5
|
+
"mappings": ";;;;;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalizeMatrixAllowList,
|
|
3
|
+
resolveMatrixAllowListMatch
|
|
4
|
+
} from "./chunk-U44IVNP2.js";
|
|
5
|
+
import {
|
|
6
|
+
init_shims
|
|
7
|
+
} from "./chunk-G4TIS2SC.js";
|
|
8
|
+
|
|
9
|
+
// src/matrix/monitor/access-state.ts
|
|
10
|
+
init_shims();
|
|
11
|
+
function resolveMatrixMonitorAccessState(params) {
|
|
12
|
+
const effectiveAllowFrom = normalizeMatrixAllowList([
|
|
13
|
+
...params.allowFrom,
|
|
14
|
+
...params.storeAllowFrom
|
|
15
|
+
]);
|
|
16
|
+
const effectiveGroupAllowFrom = normalizeMatrixAllowList(params.groupAllowFrom);
|
|
17
|
+
const effectiveRoomUsers = normalizeMatrixAllowList(params.roomUsers);
|
|
18
|
+
const directAllowMatch = resolveMatrixAllowListMatch({
|
|
19
|
+
allowList: effectiveAllowFrom,
|
|
20
|
+
userId: params.senderId
|
|
21
|
+
});
|
|
22
|
+
const roomUserMatch = params.isRoom && effectiveRoomUsers.length > 0 ? resolveMatrixAllowListMatch({
|
|
23
|
+
allowList: effectiveRoomUsers,
|
|
24
|
+
userId: params.senderId
|
|
25
|
+
}) : null;
|
|
26
|
+
const groupAllowMatch = effectiveGroupAllowFrom.length > 0 ? resolveMatrixAllowListMatch({
|
|
27
|
+
allowList: effectiveGroupAllowFrom,
|
|
28
|
+
userId: params.senderId
|
|
29
|
+
}) : null;
|
|
30
|
+
return {
|
|
31
|
+
effectiveAllowFrom,
|
|
32
|
+
effectiveGroupAllowFrom,
|
|
33
|
+
effectiveRoomUsers,
|
|
34
|
+
groupAllowConfigured: effectiveGroupAllowFrom.length > 0,
|
|
35
|
+
directAllowMatch,
|
|
36
|
+
roomUserMatch,
|
|
37
|
+
groupAllowMatch,
|
|
38
|
+
commandAuthorizers: [
|
|
39
|
+
{
|
|
40
|
+
configured: effectiveAllowFrom.length > 0,
|
|
41
|
+
allowed: directAllowMatch.allowed
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
configured: effectiveRoomUsers.length > 0,
|
|
45
|
+
allowed: roomUserMatch?.allowed ?? false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
configured: effectiveGroupAllowFrom.length > 0,
|
|
49
|
+
allowed: groupAllowMatch?.allowed ?? false
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
resolveMatrixMonitorAccessState
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=chunk-KAWXMSYC.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/matrix/monitor/access-state.ts"],
|
|
4
|
+
"sourcesContent": ["import { normalizeMatrixAllowList, resolveMatrixAllowListMatch } from \"./allowlist.js\";\nimport type { MatrixAllowListMatch } from \"./allowlist.js\";\n\ntype MatrixCommandAuthorizer = {\n configured: boolean;\n allowed: boolean;\n};\n\nexport type MatrixMonitorAccessState = {\n effectiveAllowFrom: string[];\n effectiveGroupAllowFrom: string[];\n effectiveRoomUsers: string[];\n groupAllowConfigured: boolean;\n directAllowMatch: MatrixAllowListMatch;\n roomUserMatch: MatrixAllowListMatch | null;\n groupAllowMatch: MatrixAllowListMatch | null;\n commandAuthorizers: [MatrixCommandAuthorizer, MatrixCommandAuthorizer, MatrixCommandAuthorizer];\n};\n\nexport function resolveMatrixMonitorAccessState(params: {\n allowFrom: Array<string | number>;\n storeAllowFrom: Array<string | number>;\n groupAllowFrom: Array<string | number>;\n roomUsers: Array<string | number>;\n senderId: string;\n isRoom: boolean;\n}): MatrixMonitorAccessState {\n const effectiveAllowFrom = normalizeMatrixAllowList([\n ...params.allowFrom,\n ...params.storeAllowFrom,\n ]);\n const effectiveGroupAllowFrom = normalizeMatrixAllowList(params.groupAllowFrom);\n const effectiveRoomUsers = normalizeMatrixAllowList(params.roomUsers);\n\n const directAllowMatch = resolveMatrixAllowListMatch({\n allowList: effectiveAllowFrom,\n userId: params.senderId,\n });\n const roomUserMatch =\n params.isRoom && effectiveRoomUsers.length > 0\n ? resolveMatrixAllowListMatch({\n allowList: effectiveRoomUsers,\n userId: params.senderId,\n })\n : null;\n const groupAllowMatch =\n effectiveGroupAllowFrom.length > 0\n ? resolveMatrixAllowListMatch({\n allowList: effectiveGroupAllowFrom,\n userId: params.senderId,\n })\n : null;\n\n return {\n effectiveAllowFrom,\n effectiveGroupAllowFrom,\n effectiveRoomUsers,\n groupAllowConfigured: effectiveGroupAllowFrom.length > 0,\n directAllowMatch,\n roomUserMatch,\n groupAllowMatch,\n commandAuthorizers: [\n {\n configured: effectiveAllowFrom.length > 0,\n allowed: directAllowMatch.allowed,\n },\n {\n configured: effectiveRoomUsers.length > 0,\n allowed: roomUserMatch?.allowed ?? false,\n },\n {\n configured: effectiveGroupAllowFrom.length > 0,\n allowed: groupAllowMatch?.allowed ?? false,\n },\n ],\n };\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAAA;AAmBO,SAAS,gCAAgC,QAOnB;AAC3B,QAAM,qBAAqB,yBAAyB;AAAA,IAClD,GAAG,OAAO;AAAA,IACV,GAAG,OAAO;AAAA,EACZ,CAAC;AACD,QAAM,0BAA0B,yBAAyB,OAAO,cAAc;AAC9E,QAAM,qBAAqB,yBAAyB,OAAO,SAAS;AAEpE,QAAM,mBAAmB,4BAA4B;AAAA,IACnD,WAAW;AAAA,IACX,QAAQ,OAAO;AAAA,EACjB,CAAC;AACD,QAAM,gBACJ,OAAO,UAAU,mBAAmB,SAAS,IACzC,4BAA4B;AAAA,IAC1B,WAAW;AAAA,IACX,QAAQ,OAAO;AAAA,EACjB,CAAC,IACD;AACN,QAAM,kBACJ,wBAAwB,SAAS,IAC7B,4BAA4B;AAAA,IAC1B,WAAW;AAAA,IACX,QAAQ,OAAO;AAAA,EACjB,CAAC,IACD;AAEN,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA,sBAAsB,wBAAwB,SAAS;AAAA,IACvD;AAAA,IACA;AAAA,IACA;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,YAAY,mBAAmB,SAAS;AAAA,QACxC,SAAS,iBAAiB;AAAA,MAC5B;AAAA,MACA;AAAA,QACE,YAAY,mBAAmB,SAAS;AAAA,QACxC,SAAS,eAAe,WAAW;AAAA,MACrC;AAAA,MACA;AAAA,QACE,YAAY,wBAAwB,SAAS;AAAA,QAC7C,SAAS,iBAAiB,WAAW;AAAA,MACvC;AAAA,IACF;AAAA,EACF;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveValidatedMatrixHomeserverUrl
|
|
3
|
+
} from "./chunk-OKDOVX4B.js";
|
|
4
|
+
import {
|
|
5
|
+
maybeMigrateLegacyStorage,
|
|
6
|
+
resolveMatrixStoragePaths,
|
|
7
|
+
writeStorageMeta
|
|
8
|
+
} from "./chunk-HKF5EBER.js";
|
|
9
|
+
import {
|
|
10
|
+
init_shims
|
|
11
|
+
} from "./chunk-G4TIS2SC.js";
|
|
12
|
+
|
|
13
|
+
// src/matrix/client/create-client.ts
|
|
14
|
+
init_shims();
|
|
15
|
+
import fs from "node:fs";
|
|
16
|
+
import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
|
|
17
|
+
var matrixCreateClientRuntimeDepsPromise;
|
|
18
|
+
async function loadMatrixCreateClientRuntimeDeps() {
|
|
19
|
+
matrixCreateClientRuntimeDepsPromise ??= Promise.all([
|
|
20
|
+
import("./src/matrix/sdk.js"),
|
|
21
|
+
import("./src/matrix/client/logging.js")
|
|
22
|
+
]).then(([sdkModule, loggingModule]) => ({
|
|
23
|
+
MatrixClient: sdkModule.MatrixClient,
|
|
24
|
+
ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
|
|
25
|
+
}));
|
|
26
|
+
return await matrixCreateClientRuntimeDepsPromise;
|
|
27
|
+
}
|
|
28
|
+
async function createMatrixClient(params) {
|
|
29
|
+
const { MatrixClient, ensureMatrixSdkLoggingConfigured } = await loadMatrixCreateClientRuntimeDeps();
|
|
30
|
+
ensureMatrixSdkLoggingConfigured();
|
|
31
|
+
const homeserver = await resolveValidatedMatrixHomeserverUrl(params.homeserver, {
|
|
32
|
+
dangerouslyAllowPrivateNetwork: params.allowPrivateNetwork
|
|
33
|
+
});
|
|
34
|
+
const matrixClientUserId = normalizeOptionalString(params.userId);
|
|
35
|
+
const userId = matrixClientUserId ?? "unknown";
|
|
36
|
+
const persistStorage = params.persistStorage !== false;
|
|
37
|
+
const storagePaths = persistStorage ? resolveMatrixStoragePaths({
|
|
38
|
+
homeserver,
|
|
39
|
+
userId,
|
|
40
|
+
accessToken: params.accessToken,
|
|
41
|
+
accountId: params.accountId,
|
|
42
|
+
deviceId: params.deviceId,
|
|
43
|
+
env: process.env
|
|
44
|
+
}) : null;
|
|
45
|
+
if (storagePaths) {
|
|
46
|
+
await maybeMigrateLegacyStorage({
|
|
47
|
+
storagePaths,
|
|
48
|
+
env: process.env
|
|
49
|
+
});
|
|
50
|
+
fs.mkdirSync(storagePaths.rootDir, { recursive: true });
|
|
51
|
+
writeStorageMeta({
|
|
52
|
+
storagePaths,
|
|
53
|
+
homeserver,
|
|
54
|
+
userId,
|
|
55
|
+
accountId: params.accountId,
|
|
56
|
+
deviceId: params.deviceId
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
const cryptoDatabasePrefix = storagePaths ? `openclaw-matrix-${storagePaths.accountKey}-${storagePaths.tokenHash}` : void 0;
|
|
60
|
+
return new MatrixClient(homeserver, params.accessToken, {
|
|
61
|
+
userId: matrixClientUserId,
|
|
62
|
+
password: params.password,
|
|
63
|
+
deviceId: params.deviceId,
|
|
64
|
+
encryption: params.encryption,
|
|
65
|
+
localTimeoutMs: params.localTimeoutMs,
|
|
66
|
+
initialSyncLimit: params.initialSyncLimit,
|
|
67
|
+
storagePath: storagePaths?.storagePath,
|
|
68
|
+
recoveryKeyPath: storagePaths?.recoveryKeyPath,
|
|
69
|
+
idbSnapshotPath: storagePaths?.idbSnapshotPath,
|
|
70
|
+
cryptoDatabasePrefix,
|
|
71
|
+
autoBootstrapCrypto: params.autoBootstrapCrypto,
|
|
72
|
+
ssrfPolicy: params.ssrfPolicy,
|
|
73
|
+
dispatcherPolicy: params.dispatcherPolicy
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export {
|
|
78
|
+
createMatrixClient
|
|
79
|
+
};
|
|
80
|
+
//# sourceMappingURL=chunk-KEGPHS4C.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/matrix/client/create-client.ts"],
|
|
4
|
+
"sourcesContent": ["import fs from \"node:fs\";\nimport type { PinnedDispatcherPolicy } from \"openclaw/plugin-sdk/infra-runtime\";\nimport { normalizeOptionalString } from \"openclaw/plugin-sdk/text-runtime\";\nimport type { SsrFPolicy } from \"../../runtime-api.js\";\nimport type { MatrixClient } from \"../sdk.js\";\nimport { resolveValidatedMatrixHomeserverUrl } from \"./config.js\";\nimport {\n maybeMigrateLegacyStorage,\n resolveMatrixStoragePaths,\n writeStorageMeta,\n} from \"./storage.js\";\n\ntype MatrixCreateClientRuntimeDeps = {\n MatrixClient: typeof import(\"../sdk.js\").MatrixClient;\n ensureMatrixSdkLoggingConfigured: typeof import(\"./logging.js\").ensureMatrixSdkLoggingConfigured;\n};\n\nlet matrixCreateClientRuntimeDepsPromise: Promise<MatrixCreateClientRuntimeDeps> | undefined;\n\nasync function loadMatrixCreateClientRuntimeDeps(): Promise<MatrixCreateClientRuntimeDeps> {\n matrixCreateClientRuntimeDepsPromise ??= Promise.all([\n import(\"../sdk.js\"),\n import(\"./logging.js\"),\n ]).then(([sdkModule, loggingModule]) => ({\n MatrixClient: sdkModule.MatrixClient,\n ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured,\n }));\n return await matrixCreateClientRuntimeDepsPromise;\n}\n\nexport async function createMatrixClient(params: {\n homeserver: string;\n userId?: string;\n accessToken: string;\n password?: string;\n deviceId?: string;\n persistStorage?: boolean;\n encryption?: boolean;\n localTimeoutMs?: number;\n initialSyncLimit?: number;\n accountId?: string | null;\n autoBootstrapCrypto?: boolean;\n allowPrivateNetwork?: boolean;\n ssrfPolicy?: SsrFPolicy;\n dispatcherPolicy?: PinnedDispatcherPolicy;\n}): Promise<MatrixClient> {\n const { MatrixClient, ensureMatrixSdkLoggingConfigured } =\n await loadMatrixCreateClientRuntimeDeps();\n ensureMatrixSdkLoggingConfigured();\n const homeserver = await resolveValidatedMatrixHomeserverUrl(params.homeserver, {\n dangerouslyAllowPrivateNetwork: params.allowPrivateNetwork,\n });\n const matrixClientUserId = normalizeOptionalString(params.userId);\n const userId = matrixClientUserId ?? \"unknown\";\n const persistStorage = params.persistStorage !== false;\n const storagePaths = persistStorage\n ? resolveMatrixStoragePaths({\n homeserver,\n userId,\n accessToken: params.accessToken,\n accountId: params.accountId,\n deviceId: params.deviceId,\n env: process.env,\n })\n : null;\n\n if (storagePaths) {\n await maybeMigrateLegacyStorage({\n storagePaths,\n env: process.env,\n });\n fs.mkdirSync(storagePaths.rootDir, { recursive: true });\n writeStorageMeta({\n storagePaths,\n homeserver,\n userId,\n accountId: params.accountId,\n deviceId: params.deviceId,\n });\n }\n\n const cryptoDatabasePrefix = storagePaths\n ? `openclaw-matrix-${storagePaths.accountKey}-${storagePaths.tokenHash}`\n : undefined;\n\n return new MatrixClient(homeserver, params.accessToken, {\n userId: matrixClientUserId,\n password: params.password,\n deviceId: params.deviceId,\n encryption: params.encryption,\n localTimeoutMs: params.localTimeoutMs,\n initialSyncLimit: params.initialSyncLimit,\n storagePath: storagePaths?.storagePath,\n recoveryKeyPath: storagePaths?.recoveryKeyPath,\n idbSnapshotPath: storagePaths?.idbSnapshotPath,\n cryptoDatabasePrefix,\n autoBootstrapCrypto: params.autoBootstrapCrypto,\n ssrfPolicy: params.ssrfPolicy,\n dispatcherPolicy: params.dispatcherPolicy,\n });\n}\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;AAAA;AAAA,OAAO,QAA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,gBAAgB,OAAO;AAAA,IACvB,kBAAkB,OAAO;AAAA,IACzB,aAAa,cAAc;AAAA,IAC3B,iBAAiB,cAAc;AAAA,IAC/B,iBAAiB,cAAc;AAAA,IAC/B;AAAA,IACA,qBAAqB,OAAO;AAAA,IAC5B,YAAY,OAAO;AAAA,IACnB,kBAAkB,OAAO;AAAA,EAC3B,CAAC;AACH;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveMatrixMigrationStatus
|
|
3
|
+
} from "./chunk-ZFGRQIB6.js";
|
|
4
|
+
import {
|
|
5
|
+
maybeCreateMatrixMigrationSnapshot
|
|
6
|
+
} from "./chunk-FYSARMGS.js";
|
|
7
|
+
import {
|
|
8
|
+
autoPrepareLegacyMatrixCrypto
|
|
9
|
+
} from "./chunk-IJ6Y4W7F.js";
|
|
10
|
+
import {
|
|
11
|
+
autoMigrateLegacyMatrixState
|
|
12
|
+
} from "./chunk-2IQWKATM.js";
|
|
13
|
+
import {
|
|
14
|
+
legacyConfigRules,
|
|
15
|
+
normalizeCompatibilityConfig
|
|
16
|
+
} from "./chunk-GGWS7NQP.js";
|
|
17
|
+
import {
|
|
18
|
+
isRecord
|
|
19
|
+
} from "./chunk-R5S76YR5.js";
|
|
20
|
+
import {
|
|
21
|
+
init_shims
|
|
22
|
+
} from "./chunk-G4TIS2SC.js";
|
|
23
|
+
|
|
24
|
+
// src/doctor.ts
|
|
25
|
+
init_shims();
|
|
26
|
+
import {
|
|
27
|
+
detectPluginInstallPathIssue,
|
|
28
|
+
formatPluginInstallPathIssue,
|
|
29
|
+
removePluginFromConfig
|
|
30
|
+
} from "openclaw/plugin-sdk/runtime-doctor";
|
|
31
|
+
function hasConfiguredMatrixChannel(cfg) {
|
|
32
|
+
const channels = cfg.channels;
|
|
33
|
+
return isRecord(channels?.matrix);
|
|
34
|
+
}
|
|
35
|
+
function hasConfiguredMatrixPluginSurface(cfg) {
|
|
36
|
+
return Boolean(
|
|
37
|
+
cfg.plugins?.installs?.matrix || cfg.plugins?.entries?.matrix || cfg.plugins?.allow?.includes("matrix") || cfg.plugins?.deny?.includes("matrix")
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function hasConfiguredMatrixEnv(env) {
|
|
41
|
+
return Object.entries(env).some(
|
|
42
|
+
([key, value]) => key.startsWith("MATRIX_") && typeof value === "string" && value.trim()
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
function configMayNeedMatrixDoctorSequence(cfg, env) {
|
|
46
|
+
return hasConfiguredMatrixChannel(cfg) || hasConfiguredMatrixPluginSurface(cfg) || hasConfiguredMatrixEnv(env);
|
|
47
|
+
}
|
|
48
|
+
function formatMatrixLegacyStatePreview(detection) {
|
|
49
|
+
return [
|
|
50
|
+
"- Matrix plugin upgraded in place.",
|
|
51
|
+
`- Legacy sync store: ${detection.legacyStoragePath} -> ${detection.targetStoragePath}`,
|
|
52
|
+
`- Legacy crypto store: ${detection.legacyCryptoPath} -> ${detection.targetCryptoPath}`,
|
|
53
|
+
...detection.selectionNote ? [`- ${detection.selectionNote}`] : [],
|
|
54
|
+
'- Run "openclaw doctor --fix" to migrate this Matrix state now.'
|
|
55
|
+
].join("\n");
|
|
56
|
+
}
|
|
57
|
+
function formatMatrixLegacyCryptoPreview(detection) {
|
|
58
|
+
const notes = [];
|
|
59
|
+
for (const warning of detection.warnings) {
|
|
60
|
+
notes.push(`- ${warning}`);
|
|
61
|
+
}
|
|
62
|
+
for (const plan of detection.plans) {
|
|
63
|
+
notes.push(
|
|
64
|
+
[
|
|
65
|
+
`- Matrix encrypted-state migration is pending for account "${plan.accountId}".`,
|
|
66
|
+
`- Legacy crypto store: ${plan.legacyCryptoPath}`,
|
|
67
|
+
`- New recovery key file: ${plan.recoveryKeyPath}`,
|
|
68
|
+
`- Migration state file: ${plan.statePath}`,
|
|
69
|
+
'- Run "openclaw doctor --fix" to extract any saved backup key now. Backed-up room keys will restore automatically on next gateway start.'
|
|
70
|
+
].join("\n")
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
return notes;
|
|
74
|
+
}
|
|
75
|
+
async function collectMatrixInstallPathWarnings(cfg) {
|
|
76
|
+
const issue = await detectPluginInstallPathIssue({
|
|
77
|
+
pluginId: "matrix",
|
|
78
|
+
install: cfg.plugins?.installs?.matrix
|
|
79
|
+
});
|
|
80
|
+
if (!issue) {
|
|
81
|
+
return [];
|
|
82
|
+
}
|
|
83
|
+
return formatPluginInstallPathIssue({
|
|
84
|
+
issue,
|
|
85
|
+
pluginLabel: "Matrix",
|
|
86
|
+
defaultInstallCommand: "openclaw plugins install @openclaw/matrix"
|
|
87
|
+
}).map((entry) => `- ${entry}`);
|
|
88
|
+
}
|
|
89
|
+
async function cleanStaleMatrixPluginConfig(cfg) {
|
|
90
|
+
const issue = await detectPluginInstallPathIssue({
|
|
91
|
+
pluginId: "matrix",
|
|
92
|
+
install: cfg.plugins?.installs?.matrix
|
|
93
|
+
});
|
|
94
|
+
if (!issue || issue.kind !== "missing-path") {
|
|
95
|
+
return { config: cfg, changes: [] };
|
|
96
|
+
}
|
|
97
|
+
const { config, actions } = removePluginFromConfig(cfg, "matrix");
|
|
98
|
+
const removed = [];
|
|
99
|
+
if (actions.install) {
|
|
100
|
+
removed.push("install record");
|
|
101
|
+
}
|
|
102
|
+
if (actions.loadPath) {
|
|
103
|
+
removed.push("load path");
|
|
104
|
+
}
|
|
105
|
+
if (actions.entry) {
|
|
106
|
+
removed.push("plugin entry");
|
|
107
|
+
}
|
|
108
|
+
if (actions.allowlist) {
|
|
109
|
+
removed.push("allowlist entry");
|
|
110
|
+
}
|
|
111
|
+
if (removed.length === 0) {
|
|
112
|
+
return { config: cfg, changes: [] };
|
|
113
|
+
}
|
|
114
|
+
return {
|
|
115
|
+
config,
|
|
116
|
+
changes: [
|
|
117
|
+
`Removed stale Matrix plugin references (${removed.join(", ")}). The previous install path no longer exists: ${issue.path}`
|
|
118
|
+
]
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
async function applyMatrixDoctorRepair(params) {
|
|
122
|
+
const changes = [];
|
|
123
|
+
const warnings = [];
|
|
124
|
+
const migrationStatus = resolveMatrixMigrationStatus({
|
|
125
|
+
cfg: params.cfg,
|
|
126
|
+
env: params.env
|
|
127
|
+
});
|
|
128
|
+
let matrixSnapshotReady = true;
|
|
129
|
+
if (migrationStatus.actionable) {
|
|
130
|
+
try {
|
|
131
|
+
const snapshot = await maybeCreateMatrixMigrationSnapshot({
|
|
132
|
+
trigger: "doctor-fix",
|
|
133
|
+
env: params.env
|
|
134
|
+
});
|
|
135
|
+
changes.push(
|
|
136
|
+
`Matrix migration snapshot ${snapshot.created ? "created" : "reused"} before applying Matrix upgrades.
|
|
137
|
+
- ${snapshot.archivePath}`
|
|
138
|
+
);
|
|
139
|
+
} catch (error) {
|
|
140
|
+
matrixSnapshotReady = false;
|
|
141
|
+
warnings.push(
|
|
142
|
+
`- Failed creating a Matrix migration snapshot before repair: ${String(error)}`
|
|
143
|
+
);
|
|
144
|
+
warnings.push(
|
|
145
|
+
'- Skipping Matrix migration changes for now. Resolve the snapshot failure, then rerun "openclaw doctor --fix".'
|
|
146
|
+
);
|
|
147
|
+
}
|
|
148
|
+
} else if (migrationStatus.pending) {
|
|
149
|
+
warnings.push(
|
|
150
|
+
"- Matrix migration warnings are present, but no on-disk Matrix mutation is actionable yet. No pre-migration snapshot was needed."
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
if (!matrixSnapshotReady) {
|
|
154
|
+
return { changes, warnings };
|
|
155
|
+
}
|
|
156
|
+
const matrixStateRepair = await autoMigrateLegacyMatrixState({
|
|
157
|
+
cfg: params.cfg,
|
|
158
|
+
env: params.env
|
|
159
|
+
});
|
|
160
|
+
if (matrixStateRepair.changes.length > 0) {
|
|
161
|
+
changes.push(
|
|
162
|
+
[
|
|
163
|
+
"Matrix plugin upgraded in place.",
|
|
164
|
+
...matrixStateRepair.changes.map((entry) => `- ${entry}`),
|
|
165
|
+
"- No user action required."
|
|
166
|
+
].join("\n")
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
if (matrixStateRepair.warnings.length > 0) {
|
|
170
|
+
warnings.push(matrixStateRepair.warnings.map((entry) => `- ${entry}`).join("\n"));
|
|
171
|
+
}
|
|
172
|
+
const matrixCryptoRepair = await autoPrepareLegacyMatrixCrypto({
|
|
173
|
+
cfg: params.cfg,
|
|
174
|
+
env: params.env
|
|
175
|
+
});
|
|
176
|
+
if (matrixCryptoRepair.changes.length > 0) {
|
|
177
|
+
changes.push(
|
|
178
|
+
[
|
|
179
|
+
"Matrix encrypted-state migration prepared.",
|
|
180
|
+
...matrixCryptoRepair.changes.map((entry) => `- ${entry}`)
|
|
181
|
+
].join("\n")
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
if (matrixCryptoRepair.warnings.length > 0) {
|
|
185
|
+
warnings.push(matrixCryptoRepair.warnings.map((entry) => `- ${entry}`).join("\n"));
|
|
186
|
+
}
|
|
187
|
+
return { changes, warnings };
|
|
188
|
+
}
|
|
189
|
+
async function runMatrixDoctorSequence(params) {
|
|
190
|
+
const warningNotes = [];
|
|
191
|
+
const changeNotes = [];
|
|
192
|
+
const installWarnings = await collectMatrixInstallPathWarnings(params.cfg);
|
|
193
|
+
if (installWarnings.length > 0) {
|
|
194
|
+
warningNotes.push(installWarnings.join("\n"));
|
|
195
|
+
}
|
|
196
|
+
if (!configMayNeedMatrixDoctorSequence(params.cfg, params.env)) {
|
|
197
|
+
return { changeNotes, warningNotes };
|
|
198
|
+
}
|
|
199
|
+
if (params.shouldRepair) {
|
|
200
|
+
const repair = await applyMatrixDoctorRepair({
|
|
201
|
+
cfg: params.cfg,
|
|
202
|
+
env: params.env
|
|
203
|
+
});
|
|
204
|
+
changeNotes.push(...repair.changes);
|
|
205
|
+
warningNotes.push(...repair.warnings);
|
|
206
|
+
} else {
|
|
207
|
+
const migrationStatus = resolveMatrixMigrationStatus({
|
|
208
|
+
cfg: params.cfg,
|
|
209
|
+
env: params.env
|
|
210
|
+
});
|
|
211
|
+
if (migrationStatus.legacyState) {
|
|
212
|
+
if ("warning" in migrationStatus.legacyState) {
|
|
213
|
+
warningNotes.push(`- ${migrationStatus.legacyState.warning}`);
|
|
214
|
+
} else {
|
|
215
|
+
warningNotes.push(formatMatrixLegacyStatePreview(migrationStatus.legacyState));
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
if (migrationStatus.legacyCrypto.warnings.length > 0 || migrationStatus.legacyCrypto.plans.length > 0) {
|
|
219
|
+
warningNotes.push(...formatMatrixLegacyCryptoPreview(migrationStatus.legacyCrypto));
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
return { changeNotes, warningNotes };
|
|
223
|
+
}
|
|
224
|
+
var matrixDoctor = {
|
|
225
|
+
dmAllowFromMode: "nestedOnly",
|
|
226
|
+
groupModel: "sender",
|
|
227
|
+
groupAllowFromFallbackToAllowFrom: false,
|
|
228
|
+
warnOnEmptyGroupSenderAllowlist: true,
|
|
229
|
+
legacyConfigRules,
|
|
230
|
+
normalizeCompatibilityConfig,
|
|
231
|
+
runConfigSequence: async ({ cfg, env, shouldRepair }) => await runMatrixDoctorSequence({ cfg, env, shouldRepair }),
|
|
232
|
+
cleanStaleConfig: async ({ cfg }) => await cleanStaleMatrixPluginConfig(cfg)
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export {
|
|
236
|
+
formatMatrixLegacyStatePreview,
|
|
237
|
+
formatMatrixLegacyCryptoPreview,
|
|
238
|
+
collectMatrixInstallPathWarnings,
|
|
239
|
+
cleanStaleMatrixPluginConfig,
|
|
240
|
+
applyMatrixDoctorRepair,
|
|
241
|
+
runMatrixDoctorSequence,
|
|
242
|
+
matrixDoctor
|
|
243
|
+
};
|
|
244
|
+
//# sourceMappingURL=chunk-KXXVR3DC.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../src/doctor.ts"],
|
|
4
|
+
"sourcesContent": ["import { type ChannelDoctorAdapter } from \"openclaw/plugin-sdk/channel-contract\";\nimport type { OpenClawConfig } from \"openclaw/plugin-sdk/config-runtime\";\nimport {\n detectPluginInstallPathIssue,\n formatPluginInstallPathIssue,\n removePluginFromConfig,\n} from \"openclaw/plugin-sdk/runtime-doctor\";\nimport {\n legacyConfigRules as MATRIX_LEGACY_CONFIG_RULES,\n normalizeCompatibilityConfig as normalizeMatrixCompatibilityConfig,\n} from \"./doctor-contract.js\";\nimport {\n autoMigrateLegacyMatrixState,\n autoPrepareLegacyMatrixCrypto,\n detectLegacyMatrixCrypto,\n detectLegacyMatrixState,\n maybeCreateMatrixMigrationSnapshot,\n resolveMatrixMigrationStatus,\n} from \"./matrix-migration.runtime.js\";\nimport { isRecord } from \"./record-shared.js\";\n\nfunction hasConfiguredMatrixChannel(cfg: OpenClawConfig): boolean {\n const channels = cfg.channels as Record<string, unknown> | undefined;\n return isRecord(channels?.matrix);\n}\n\nfunction hasConfiguredMatrixPluginSurface(cfg: OpenClawConfig): boolean {\n return Boolean(\n cfg.plugins?.installs?.matrix ||\n cfg.plugins?.entries?.matrix ||\n cfg.plugins?.allow?.includes(\"matrix\") ||\n cfg.plugins?.deny?.includes(\"matrix\"),\n );\n}\n\nfunction hasConfiguredMatrixEnv(env: NodeJS.ProcessEnv): boolean {\n return Object.entries(env).some(\n ([key, value]) => key.startsWith(\"MATRIX_\") && typeof value === \"string\" && value.trim(),\n );\n}\n\nfunction configMayNeedMatrixDoctorSequence(cfg: OpenClawConfig, env: NodeJS.ProcessEnv): boolean {\n return (\n hasConfiguredMatrixChannel(cfg) ||\n hasConfiguredMatrixPluginSurface(cfg) ||\n hasConfiguredMatrixEnv(env)\n );\n}\n\nexport function formatMatrixLegacyStatePreview(\n detection: Exclude<ReturnType<typeof detectLegacyMatrixState>, null | { warning: string }>,\n): string {\n return [\n \"- Matrix plugin upgraded in place.\",\n `- Legacy sync store: ${detection.legacyStoragePath} -> ${detection.targetStoragePath}`,\n `- Legacy crypto store: ${detection.legacyCryptoPath} -> ${detection.targetCryptoPath}`,\n ...(detection.selectionNote ? [`- ${detection.selectionNote}`] : []),\n '- Run \"openclaw doctor --fix\" to migrate this Matrix state now.',\n ].join(\"\\n\");\n}\n\nexport function formatMatrixLegacyCryptoPreview(\n detection: ReturnType<typeof detectLegacyMatrixCrypto>,\n): string[] {\n const notes: string[] = [];\n for (const warning of detection.warnings) {\n notes.push(`- ${warning}`);\n }\n for (const plan of detection.plans) {\n notes.push(\n [\n `- Matrix encrypted-state migration is pending for account \"${plan.accountId}\".`,\n `- Legacy crypto store: ${plan.legacyCryptoPath}`,\n `- New recovery key file: ${plan.recoveryKeyPath}`,\n `- Migration state file: ${plan.statePath}`,\n '- Run \"openclaw doctor --fix\" to extract any saved backup key now. Backed-up room keys will restore automatically on next gateway start.',\n ].join(\"\\n\"),\n );\n }\n return notes;\n}\n\nexport async function collectMatrixInstallPathWarnings(cfg: OpenClawConfig): Promise<string[]> {\n const issue = await detectPluginInstallPathIssue({\n pluginId: \"matrix\",\n install: cfg.plugins?.installs?.matrix,\n });\n if (!issue) {\n return [];\n }\n return formatPluginInstallPathIssue({\n issue,\n pluginLabel: \"Matrix\",\n defaultInstallCommand: \"openclaw plugins install @openclaw/matrix\",\n }).map((entry) => `- ${entry}`);\n}\n\nexport async function cleanStaleMatrixPluginConfig(cfg: OpenClawConfig) {\n const issue = await detectPluginInstallPathIssue({\n pluginId: \"matrix\",\n install: cfg.plugins?.installs?.matrix,\n });\n if (!issue || issue.kind !== \"missing-path\") {\n return { config: cfg, changes: [] };\n }\n const { config, actions } = removePluginFromConfig(cfg, \"matrix\");\n const removed: string[] = [];\n if (actions.install) {\n removed.push(\"install record\");\n }\n if (actions.loadPath) {\n removed.push(\"load path\");\n }\n if (actions.entry) {\n removed.push(\"plugin entry\");\n }\n if (actions.allowlist) {\n removed.push(\"allowlist entry\");\n }\n if (removed.length === 0) {\n return { config: cfg, changes: [] };\n }\n return {\n config,\n changes: [\n `Removed stale Matrix plugin references (${removed.join(\", \")}). The previous install path no longer exists: ${issue.path}`,\n ],\n };\n}\n\nexport async function applyMatrixDoctorRepair(params: {\n cfg: OpenClawConfig;\n env: NodeJS.ProcessEnv;\n}): Promise<{ changes: string[]; warnings: string[] }> {\n const changes: string[] = [];\n const warnings: string[] = [];\n const migrationStatus = resolveMatrixMigrationStatus({\n cfg: params.cfg,\n env: params.env,\n });\n\n let matrixSnapshotReady = true;\n if (migrationStatus.actionable) {\n try {\n const snapshot = await maybeCreateMatrixMigrationSnapshot({\n trigger: \"doctor-fix\",\n env: params.env,\n });\n changes.push(\n `Matrix migration snapshot ${snapshot.created ? \"created\" : \"reused\"} before applying Matrix upgrades.\\n- ${snapshot.archivePath}`,\n );\n } catch (error) {\n matrixSnapshotReady = false;\n warnings.push(\n `- Failed creating a Matrix migration snapshot before repair: ${String(error)}`,\n );\n warnings.push(\n '- Skipping Matrix migration changes for now. Resolve the snapshot failure, then rerun \"openclaw doctor --fix\".',\n );\n }\n } else if (migrationStatus.pending) {\n warnings.push(\n \"- Matrix migration warnings are present, but no on-disk Matrix mutation is actionable yet. No pre-migration snapshot was needed.\",\n );\n }\n\n if (!matrixSnapshotReady) {\n return { changes, warnings };\n }\n\n const matrixStateRepair = await autoMigrateLegacyMatrixState({\n cfg: params.cfg,\n env: params.env,\n });\n if (matrixStateRepair.changes.length > 0) {\n changes.push(\n [\n \"Matrix plugin upgraded in place.\",\n ...matrixStateRepair.changes.map((entry) => `- ${entry}`),\n \"- No user action required.\",\n ].join(\"\\n\"),\n );\n }\n if (matrixStateRepair.warnings.length > 0) {\n warnings.push(matrixStateRepair.warnings.map((entry) => `- ${entry}`).join(\"\\n\"));\n }\n\n const matrixCryptoRepair = await autoPrepareLegacyMatrixCrypto({\n cfg: params.cfg,\n env: params.env,\n });\n if (matrixCryptoRepair.changes.length > 0) {\n changes.push(\n [\n \"Matrix encrypted-state migration prepared.\",\n ...matrixCryptoRepair.changes.map((entry) => `- ${entry}`),\n ].join(\"\\n\"),\n );\n }\n if (matrixCryptoRepair.warnings.length > 0) {\n warnings.push(matrixCryptoRepair.warnings.map((entry) => `- ${entry}`).join(\"\\n\"));\n }\n\n return { changes, warnings };\n}\n\nexport async function runMatrixDoctorSequence(params: {\n cfg: OpenClawConfig;\n env: NodeJS.ProcessEnv;\n shouldRepair: boolean;\n}): Promise<{ changeNotes: string[]; warningNotes: string[] }> {\n const warningNotes: string[] = [];\n const changeNotes: string[] = [];\n const installWarnings = await collectMatrixInstallPathWarnings(params.cfg);\n if (installWarnings.length > 0) {\n warningNotes.push(installWarnings.join(\"\\n\"));\n }\n if (!configMayNeedMatrixDoctorSequence(params.cfg, params.env)) {\n return { changeNotes, warningNotes };\n }\n\n if (params.shouldRepair) {\n const repair = await applyMatrixDoctorRepair({\n cfg: params.cfg,\n env: params.env,\n });\n changeNotes.push(...repair.changes);\n warningNotes.push(...repair.warnings);\n } else {\n const migrationStatus = resolveMatrixMigrationStatus({\n cfg: params.cfg,\n env: params.env,\n });\n if (migrationStatus.legacyState) {\n if (\"warning\" in migrationStatus.legacyState) {\n warningNotes.push(`- ${migrationStatus.legacyState.warning}`);\n } else {\n warningNotes.push(formatMatrixLegacyStatePreview(migrationStatus.legacyState));\n }\n }\n if (\n migrationStatus.legacyCrypto.warnings.length > 0 ||\n migrationStatus.legacyCrypto.plans.length > 0\n ) {\n warningNotes.push(...formatMatrixLegacyCryptoPreview(migrationStatus.legacyCrypto));\n }\n }\n\n return { changeNotes, warningNotes };\n}\n\nexport const matrixDoctor: ChannelDoctorAdapter = {\n dmAllowFromMode: \"nestedOnly\",\n groupModel: \"sender\",\n groupAllowFromFallbackToAllowFrom: false,\n warnOnEmptyGroupSenderAllowlist: true,\n legacyConfigRules: MATRIX_LEGACY_CONFIG_RULES,\n normalizeCompatibilityConfig: normalizeMatrixCompatibilityConfig,\n runConfigSequence: async ({ cfg, env, shouldRepair }) =>\n await runMatrix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