@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.
Files changed (567) hide show
  1. package/dist/APEv2Parser-FYYGMFPI.js +15 -0
  2. package/dist/APEv2Parser-FYYGMFPI.js.map +7 -0
  3. package/dist/AiffParser-JHSDQA7T.js +194 -0
  4. package/dist/AiffParser-JHSDQA7T.js.map +7 -0
  5. package/dist/AsfParser-TPCQDEJB.js +620 -0
  6. package/dist/AsfParser-TPCQDEJB.js.map +7 -0
  7. package/dist/DsdiffParser-CGD3C3TL.js +192 -0
  8. package/dist/DsdiffParser-CGD3C3TL.js.map +7 -0
  9. package/dist/DsfParser-3UTIJVNF.js +114 -0
  10. package/dist/DsfParser-3UTIJVNF.js.map +7 -0
  11. package/dist/FlacParser-HLLYPJ76.js +16 -0
  12. package/dist/FlacParser-HLLYPJ76.js.map +7 -0
  13. package/dist/MP4Parser-SM7HYL3Z.js +1145 -0
  14. package/dist/MP4Parser-SM7HYL3Z.js.map +7 -0
  15. package/dist/MatroskaParser-X7WRZ6D4.js +662 -0
  16. package/dist/MatroskaParser-X7WRZ6D4.js.map +7 -0
  17. package/dist/MpegParser-KXQEC6KD.js +652 -0
  18. package/dist/MpegParser-KXQEC6KD.js.map +7 -0
  19. package/dist/MusepackParser-NURI46TG.js +331 -0
  20. package/dist/MusepackParser-NURI46TG.js.map +7 -0
  21. package/dist/OggParser-5IYVBXPS.js +448 -0
  22. package/dist/OggParser-5IYVBXPS.js.map +7 -0
  23. package/dist/WavPackParser-RTEHKSJH.js +209 -0
  24. package/dist/WavPackParser-RTEHKSJH.js.map +7 -0
  25. package/dist/WaveParser-3R2NLXGP.js +300 -0
  26. package/dist/WaveParser-3R2NLXGP.js.map +7 -0
  27. package/dist/auth-presence.js +2 -2
  28. package/dist/channel-plugin-api.js +68 -68
  29. package/dist/chunk-2GFROLI2.js +261 -0
  30. package/dist/chunk-2GFROLI2.js.map +7 -0
  31. package/dist/chunk-2IQWKATM.js +127 -0
  32. package/dist/chunk-2IQWKATM.js.map +7 -0
  33. package/dist/chunk-2V6Y4CAN.js +25 -0
  34. package/dist/chunk-2V6Y4CAN.js.map +7 -0
  35. package/dist/chunk-2WHRUMOM.js +321 -0
  36. package/dist/chunk-2WHRUMOM.js.map +7 -0
  37. package/dist/chunk-3GIK7SAA.js +109 -0
  38. package/dist/chunk-3GIK7SAA.js.map +7 -0
  39. package/dist/chunk-3OXOEMBS.js +123 -0
  40. package/dist/chunk-3OXOEMBS.js.map +7 -0
  41. package/dist/chunk-3R4ATE4Q.js +176 -0
  42. package/dist/chunk-3R4ATE4Q.js.map +7 -0
  43. package/dist/chunk-4CFQNJ7F.js +7 -0
  44. package/dist/chunk-4CFQNJ7F.js.map +7 -0
  45. package/dist/chunk-4COI4L2Y.js +31 -0
  46. package/dist/chunk-4COI4L2Y.js.map +7 -0
  47. package/dist/chunk-4EKKDVG3.js +1662 -0
  48. package/dist/chunk-4EKKDVG3.js.map +7 -0
  49. package/dist/chunk-4L2QI6AY.js +71 -0
  50. package/dist/chunk-4L2QI6AY.js.map +7 -0
  51. package/dist/chunk-4OXPPDV6.js +676 -0
  52. package/dist/chunk-4OXPPDV6.js.map +7 -0
  53. package/dist/chunk-4QTZHELX.js +51 -0
  54. package/dist/chunk-4QTZHELX.js.map +7 -0
  55. package/dist/chunk-4U42OJMK.js +217 -0
  56. package/dist/chunk-4U42OJMK.js.map +7 -0
  57. package/dist/chunk-4WCKVGQ5.js +193 -0
  58. package/dist/chunk-4WCKVGQ5.js.map +7 -0
  59. package/dist/chunk-4XXERLFH.js +95 -0
  60. package/dist/chunk-4XXERLFH.js.map +7 -0
  61. package/dist/chunk-4ZY2BOQ4.js +123 -0
  62. package/dist/chunk-4ZY2BOQ4.js.map +7 -0
  63. package/dist/chunk-57ROEOHB.js +183 -0
  64. package/dist/chunk-57ROEOHB.js.map +7 -0
  65. package/dist/chunk-5BQ6LLNU.js +39 -0
  66. package/dist/chunk-5BQ6LLNU.js.map +7 -0
  67. package/dist/chunk-63QTHDJL.js +52 -0
  68. package/dist/chunk-63QTHDJL.js.map +7 -0
  69. package/dist/chunk-65UUVZ6B.js +151 -0
  70. package/dist/chunk-65UUVZ6B.js.map +7 -0
  71. package/dist/chunk-6COVTMAO.js +3586 -0
  72. package/dist/chunk-6COVTMAO.js.map +7 -0
  73. package/dist/chunk-6EYPDJUD.js +34 -0
  74. package/dist/chunk-6EYPDJUD.js.map +7 -0
  75. package/dist/chunk-6HDYPVA4.js +15 -0
  76. package/dist/chunk-6HDYPVA4.js.map +7 -0
  77. package/dist/chunk-6OP3FK5F.js +266 -0
  78. package/dist/chunk-6OP3FK5F.js.map +7 -0
  79. package/dist/chunk-6RBDFNSX.js +88 -0
  80. package/dist/chunk-6RBDFNSX.js.map +7 -0
  81. package/dist/chunk-6TWWCETB.js +70 -0
  82. package/dist/chunk-6TWWCETB.js.map +7 -0
  83. package/dist/chunk-6WFHPMUF.js +17 -0
  84. package/dist/chunk-6WFHPMUF.js.map +7 -0
  85. package/dist/chunk-77BEEAPD.js +86 -0
  86. package/dist/chunk-77BEEAPD.js.map +7 -0
  87. package/dist/chunk-77JJ6QJK.js +50 -0
  88. package/dist/chunk-77JJ6QJK.js.map +7 -0
  89. package/dist/chunk-7BIUNV33.js +62 -0
  90. package/dist/chunk-7BIUNV33.js.map +7 -0
  91. package/dist/chunk-7L37R42D.js +52 -0
  92. package/dist/chunk-7L37R42D.js.map +7 -0
  93. package/dist/chunk-7ZP3KYVO.js +104 -0
  94. package/dist/chunk-7ZP3KYVO.js.map +7 -0
  95. package/dist/chunk-ARGF232V.js +32 -0
  96. package/dist/chunk-ARGF232V.js.map +7 -0
  97. package/dist/chunk-ATCJOK3K.js +24 -0
  98. package/dist/chunk-ATCJOK3K.js.map +7 -0
  99. package/dist/chunk-AUUABFHL.js +124 -0
  100. package/dist/chunk-AUUABFHL.js.map +7 -0
  101. package/dist/chunk-B3NTODO7.js +57 -0
  102. package/dist/chunk-B3NTODO7.js.map +7 -0
  103. package/dist/chunk-BM7J2W36.js +86 -0
  104. package/dist/chunk-BM7J2W36.js.map +7 -0
  105. package/dist/chunk-CEB5S2Z5.js +127 -0
  106. package/dist/chunk-CEB5S2Z5.js.map +7 -0
  107. package/dist/chunk-CEKNTCJD.js +177 -0
  108. package/dist/chunk-CEKNTCJD.js.map +7 -0
  109. package/dist/chunk-CGFDIH77.js +94 -0
  110. package/dist/chunk-CGFDIH77.js.map +7 -0
  111. package/dist/chunk-CPLEC5LJ.js +26 -0
  112. package/dist/chunk-CPLEC5LJ.js.map +7 -0
  113. package/dist/chunk-D4GYYYMW.js +155 -0
  114. package/dist/chunk-D4GYYYMW.js.map +7 -0
  115. package/dist/chunk-D64CZG54.js +78 -0
  116. package/dist/chunk-D64CZG54.js.map +7 -0
  117. package/dist/chunk-DSGPDHF2.js +737 -0
  118. package/dist/chunk-DSGPDHF2.js.map +7 -0
  119. package/dist/chunk-EBXHW7ZO.js +108 -0
  120. package/dist/chunk-EBXHW7ZO.js.map +7 -0
  121. package/dist/chunk-EO35SCFP.js +7 -0
  122. package/dist/chunk-EO35SCFP.js.map +7 -0
  123. package/dist/chunk-ER2XTD2S.js +271 -0
  124. package/dist/chunk-ER2XTD2S.js.map +7 -0
  125. package/dist/chunk-ERXO3674.js +54 -0
  126. package/dist/chunk-ERXO3674.js.map +7 -0
  127. package/dist/chunk-F43CC2X2.js +49 -0
  128. package/dist/chunk-F43CC2X2.js.map +7 -0
  129. package/dist/chunk-F64TXVJJ.js +158 -0
  130. package/dist/chunk-F64TXVJJ.js.map +7 -0
  131. package/dist/chunk-F6APWSAA.js +51 -0
  132. package/dist/chunk-F6APWSAA.js.map +7 -0
  133. package/dist/chunk-F7LNS7G3.js +235 -0
  134. package/dist/chunk-F7LNS7G3.js.map +7 -0
  135. package/dist/chunk-FCNWR7ZX.js +16352 -0
  136. package/dist/chunk-FCNWR7ZX.js.map +7 -0
  137. package/dist/chunk-FFCG5NRU.js +87 -0
  138. package/dist/chunk-FFCG5NRU.js.map +7 -0
  139. package/dist/chunk-FJFC6CRR.js +446 -0
  140. package/dist/chunk-FJFC6CRR.js.map +7 -0
  141. package/dist/chunk-FK6RGYBB.js +46 -0
  142. package/dist/chunk-FK6RGYBB.js.map +7 -0
  143. package/dist/chunk-FMY6KXK6.js +251 -0
  144. package/dist/chunk-FMY6KXK6.js.map +7 -0
  145. package/dist/chunk-FPH56SCM.js +21 -0
  146. package/dist/chunk-FPH56SCM.js.map +7 -0
  147. package/dist/chunk-FVSH4Z6T.js +173 -0
  148. package/dist/chunk-FVSH4Z6T.js.map +7 -0
  149. package/dist/chunk-FVWBLEAD.js +44 -0
  150. package/dist/chunk-FVWBLEAD.js.map +7 -0
  151. package/dist/chunk-FYSARMGS.js +93 -0
  152. package/dist/chunk-FYSARMGS.js.map +7 -0
  153. package/dist/chunk-FZJOJ6P4.js +28 -0
  154. package/dist/chunk-FZJOJ6P4.js.map +7 -0
  155. package/dist/chunk-G46GHNDU.js +4890 -0
  156. package/dist/chunk-G46GHNDU.js.map +7 -0
  157. package/dist/chunk-G4TIS2SC.js +56 -0
  158. package/dist/chunk-G4TIS2SC.js.map +7 -0
  159. package/dist/chunk-GGWS7NQP.js +247 -0
  160. package/dist/chunk-GGWS7NQP.js.map +7 -0
  161. package/dist/chunk-GRBJYAYF.js +129 -0
  162. package/dist/chunk-GRBJYAYF.js.map +7 -0
  163. package/dist/chunk-GXDQGBA2.js +106 -0
  164. package/dist/chunk-GXDQGBA2.js.map +7 -0
  165. package/dist/chunk-H2HY73I6.js +122 -0
  166. package/dist/chunk-H2HY73I6.js.map +7 -0
  167. package/dist/chunk-H5MLA6PA.js +29 -0
  168. package/dist/chunk-H5MLA6PA.js.map +7 -0
  169. package/dist/chunk-H7KAUMBC.js +635 -0
  170. package/dist/chunk-H7KAUMBC.js.map +7 -0
  171. package/dist/chunk-HGHU3TVL.js +174 -0
  172. package/dist/chunk-HGHU3TVL.js.map +7 -0
  173. package/dist/chunk-HJ5E2JRL.js +88 -0
  174. package/dist/chunk-HJ5E2JRL.js.map +7 -0
  175. package/dist/chunk-HJW3CKZL.js +94 -0
  176. package/dist/chunk-HJW3CKZL.js.map +7 -0
  177. package/dist/chunk-HKF5EBER.js +418 -0
  178. package/dist/chunk-HKF5EBER.js.map +7 -0
  179. package/dist/chunk-HLUR35G5.js +30 -0
  180. package/dist/chunk-HLUR35G5.js.map +7 -0
  181. package/dist/chunk-HNIW2NZU.js +120 -0
  182. package/dist/chunk-HNIW2NZU.js.map +7 -0
  183. package/dist/chunk-HSXRCP25.js +171 -0
  184. package/dist/chunk-HSXRCP25.js.map +7 -0
  185. package/dist/chunk-I26OPZLO.js +28 -0
  186. package/dist/chunk-I26OPZLO.js.map +7 -0
  187. package/dist/chunk-I7JJQ4BQ.js +30 -0
  188. package/dist/chunk-I7JJQ4BQ.js.map +7 -0
  189. package/dist/chunk-IJ6Y4W7F.js +392 -0
  190. package/dist/chunk-IJ6Y4W7F.js.map +7 -0
  191. package/dist/chunk-IJH4NOQ4.js +18 -0
  192. package/dist/chunk-IJH4NOQ4.js.map +7 -0
  193. package/dist/chunk-IMHRZQRH.js +76 -0
  194. package/dist/chunk-IMHRZQRH.js.map +7 -0
  195. package/dist/chunk-JB6ZQEVR.js +465 -0
  196. package/dist/chunk-JB6ZQEVR.js.map +7 -0
  197. package/dist/chunk-JCWNMWNY.js +102 -0
  198. package/dist/chunk-JCWNMWNY.js.map +7 -0
  199. package/dist/chunk-JGIZPU2Y.js +39 -0
  200. package/dist/chunk-JGIZPU2Y.js.map +7 -0
  201. package/dist/chunk-JIU4FXA7.js +485 -0
  202. package/dist/chunk-JIU4FXA7.js.map +7 -0
  203. package/dist/chunk-JU2Y33DB.js +60 -0
  204. package/dist/chunk-JU2Y33DB.js.map +7 -0
  205. package/dist/chunk-JVLRI4RU.js +62 -0
  206. package/dist/chunk-JVLRI4RU.js.map +7 -0
  207. package/dist/chunk-JZ3AVNZC.js +44117 -0
  208. package/dist/chunk-JZ3AVNZC.js.map +7 -0
  209. package/dist/chunk-K3HEWOHN.js +30 -0
  210. package/dist/chunk-K3HEWOHN.js.map +7 -0
  211. package/dist/chunk-K5EK4WZV.js +7 -0
  212. package/dist/chunk-K5EK4WZV.js.map +7 -0
  213. package/dist/chunk-KAWXMSYC.js +58 -0
  214. package/dist/chunk-KAWXMSYC.js.map +7 -0
  215. package/dist/chunk-KEGPHS4C.js +80 -0
  216. package/dist/chunk-KEGPHS4C.js.map +7 -0
  217. package/dist/chunk-KXXVR3DC.js +244 -0
  218. package/dist/chunk-KXXVR3DC.js.map +7 -0
  219. package/dist/chunk-L5T6XUDP.js +412 -0
  220. package/dist/chunk-L5T6XUDP.js.map +7 -0
  221. package/dist/chunk-LIFXTQ4U.js +7287 -0
  222. package/dist/chunk-LIFXTQ4U.js.map +7 -0
  223. package/dist/chunk-LMD5UTKM.js +169 -0
  224. package/dist/chunk-LMD5UTKM.js.map +7 -0
  225. package/dist/chunk-LTXNC6JX.js +27 -0
  226. package/dist/chunk-LTXNC6JX.js.map +7 -0
  227. package/dist/chunk-LUGTGPT6.js +138 -0
  228. package/dist/chunk-LUGTGPT6.js.map +7 -0
  229. package/dist/chunk-LZQFDJNW.js +300 -0
  230. package/dist/chunk-LZQFDJNW.js.map +7 -0
  231. package/dist/chunk-M4VQPIF4.js +5853 -0
  232. package/dist/chunk-M4VQPIF4.js.map +7 -0
  233. package/dist/chunk-M64QE4QC.js +64 -0
  234. package/dist/chunk-M64QE4QC.js.map +7 -0
  235. package/dist/chunk-MJ2GW6SU.js +163 -0
  236. package/dist/chunk-MJ2GW6SU.js.map +7 -0
  237. package/dist/chunk-MYSK3SIM.js +55 -0
  238. package/dist/chunk-MYSK3SIM.js.map +7 -0
  239. package/dist/chunk-N46MIZXB.js +154 -0
  240. package/dist/chunk-N46MIZXB.js.map +7 -0
  241. package/dist/chunk-N53537P6.js +31 -0
  242. package/dist/chunk-N53537P6.js.map +7 -0
  243. package/dist/chunk-N5CTFOLX.js +40 -0
  244. package/dist/chunk-N5CTFOLX.js.map +7 -0
  245. package/dist/chunk-NIFG55CE.js +52 -0
  246. package/dist/chunk-NIFG55CE.js.map +7 -0
  247. package/dist/chunk-NJ63ALPX.js +7 -0
  248. package/dist/chunk-NJ63ALPX.js.map +7 -0
  249. package/dist/chunk-NZVHE4IT.js +3101 -0
  250. package/dist/chunk-NZVHE4IT.js.map +7 -0
  251. package/dist/chunk-O7ORICEC.js +82 -0
  252. package/dist/chunk-O7ORICEC.js.map +7 -0
  253. package/dist/chunk-OBMBAM3N.js +73 -0
  254. package/dist/chunk-OBMBAM3N.js.map +7 -0
  255. package/dist/chunk-OJJBD5K3.js +45 -0
  256. package/dist/chunk-OJJBD5K3.js.map +7 -0
  257. package/dist/chunk-OKDOVX4B.js +699 -0
  258. package/dist/chunk-OKDOVX4B.js.map +7 -0
  259. package/dist/chunk-OVMDMCZ5.js +241 -0
  260. package/dist/chunk-OVMDMCZ5.js.map +7 -0
  261. package/dist/chunk-OVU43GJK.js +63 -0
  262. package/dist/chunk-OVU43GJK.js.map +7 -0
  263. package/dist/chunk-P3TMARA6.js +18 -0
  264. package/dist/chunk-P3TMARA6.js.map +7 -0
  265. package/dist/chunk-PLMOTQ42.js +335 -0
  266. package/dist/chunk-PLMOTQ42.js.map +7 -0
  267. package/dist/chunk-Q6H5OV2R.js +180 -0
  268. package/dist/chunk-Q6H5OV2R.js.map +7 -0
  269. package/dist/chunk-QAR5POXD.js +472 -0
  270. package/dist/chunk-QAR5POXD.js.map +7 -0
  271. package/dist/chunk-R5S76YR5.js +12 -0
  272. package/dist/chunk-R5S76YR5.js.map +7 -0
  273. package/dist/chunk-R7ZBOXPS.js +163 -0
  274. package/dist/chunk-R7ZBOXPS.js.map +7 -0
  275. package/dist/chunk-RAL3KX76.js +239 -0
  276. package/dist/chunk-RAL3KX76.js.map +7 -0
  277. package/dist/chunk-RHITG64O.js +50 -0
  278. package/dist/chunk-RHITG64O.js.map +7 -0
  279. package/dist/chunk-RK5HZFP6.js +111 -0
  280. package/dist/chunk-RK5HZFP6.js.map +7 -0
  281. package/dist/chunk-RQ26XXFS.js +45 -0
  282. package/dist/chunk-RQ26XXFS.js.map +7 -0
  283. package/dist/chunk-RSA7PKZH.js +187 -0
  284. package/dist/chunk-RSA7PKZH.js.map +7 -0
  285. package/dist/chunk-RTSINQ4T.js +78 -0
  286. package/dist/chunk-RTSINQ4T.js.map +7 -0
  287. package/dist/chunk-SH6Y4CGQ.js +175 -0
  288. package/dist/chunk-SH6Y4CGQ.js.map +7 -0
  289. package/dist/chunk-SHBAAFFH.js +74 -0
  290. package/dist/chunk-SHBAAFFH.js.map +7 -0
  291. package/dist/chunk-SPNSM6SB.js +36 -0
  292. package/dist/chunk-SPNSM6SB.js.map +7 -0
  293. package/dist/chunk-SQUHLLK5.js +125 -0
  294. package/dist/chunk-SQUHLLK5.js.map +7 -0
  295. package/dist/chunk-SWWK35VQ.js +84 -0
  296. package/dist/chunk-SWWK35VQ.js.map +7 -0
  297. package/dist/chunk-TC5ZVFV6.js +292 -0
  298. package/dist/chunk-TC5ZVFV6.js.map +7 -0
  299. package/dist/chunk-TFD7ZIYD.js +105 -0
  300. package/dist/chunk-TFD7ZIYD.js.map +7 -0
  301. package/dist/chunk-TH6ONRWT.js +516 -0
  302. package/dist/chunk-TH6ONRWT.js.map +7 -0
  303. package/dist/chunk-TMQMQ67T.js +81 -0
  304. package/dist/chunk-TMQMQ67T.js.map +7 -0
  305. package/dist/chunk-TPYWUZOR.js +178 -0
  306. package/dist/chunk-TPYWUZOR.js.map +7 -0
  307. package/dist/chunk-U2O4LE6S.js +22 -0
  308. package/dist/chunk-U2O4LE6S.js.map +7 -0
  309. package/dist/chunk-U44IVNP2.js +91 -0
  310. package/dist/chunk-U44IVNP2.js.map +7 -0
  311. package/dist/chunk-UDDWLWKZ.js +82 -0
  312. package/dist/chunk-UDDWLWKZ.js.map +7 -0
  313. package/dist/chunk-UMMPB6FL.js +506 -0
  314. package/dist/chunk-UMMPB6FL.js.map +7 -0
  315. package/dist/chunk-UP42ACP7.js +27 -0
  316. package/dist/chunk-UP42ACP7.js.map +7 -0
  317. package/dist/chunk-UPEF7ETP.js +92 -0
  318. package/dist/chunk-UPEF7ETP.js.map +7 -0
  319. package/dist/chunk-VBDLTKI2.js +130 -0
  320. package/dist/chunk-VBDLTKI2.js.map +7 -0
  321. package/dist/chunk-VCWIKEJ7.js +7 -0
  322. package/dist/chunk-VCWIKEJ7.js.map +7 -0
  323. package/dist/chunk-VPQICZQR.js +93 -0
  324. package/dist/chunk-VPQICZQR.js.map +7 -0
  325. package/dist/chunk-VRBJNFPL.js +114 -0
  326. package/dist/chunk-VRBJNFPL.js.map +7 -0
  327. package/dist/chunk-VUU5KFH3.js +38 -0
  328. package/dist/chunk-VUU5KFH3.js.map +7 -0
  329. package/dist/chunk-VVBL5CFF.js +7 -0
  330. package/dist/chunk-VVBL5CFF.js.map +7 -0
  331. package/dist/chunk-VYZEQ6KY.js +22 -0
  332. package/dist/chunk-VYZEQ6KY.js.map +7 -0
  333. package/dist/chunk-WBPQVWSU.js +198 -0
  334. package/dist/chunk-WBPQVWSU.js.map +7 -0
  335. package/dist/chunk-WS6HWBKT.js +30 -0
  336. package/dist/chunk-WS6HWBKT.js.map +7 -0
  337. package/dist/chunk-XOZPOHLG.js +233 -0
  338. package/dist/chunk-XOZPOHLG.js.map +7 -0
  339. package/dist/chunk-XR7DPSNX.js +195 -0
  340. package/dist/chunk-XR7DPSNX.js.map +7 -0
  341. package/dist/chunk-XYH4JC3U.js +7 -0
  342. package/dist/chunk-XYH4JC3U.js.map +7 -0
  343. package/dist/chunk-YB5UCHLN.js +314 -0
  344. package/dist/chunk-YB5UCHLN.js.map +7 -0
  345. package/dist/chunk-YF5DYD3X.js +97 -0
  346. package/dist/chunk-YF5DYD3X.js.map +7 -0
  347. package/dist/chunk-YGVQZCE7.js +30 -0
  348. package/dist/chunk-YGVQZCE7.js.map +7 -0
  349. package/dist/chunk-YNHADHHS.js +138 -0
  350. package/dist/chunk-YNHADHHS.js.map +7 -0
  351. package/dist/chunk-YOAMBAM2.js +70 -0
  352. package/dist/chunk-YOAMBAM2.js.map +7 -0
  353. package/dist/chunk-YWE5AQPZ.js +258 -0
  354. package/dist/chunk-YWE5AQPZ.js.map +7 -0
  355. package/dist/chunk-YWHH3MB6.js +1405 -0
  356. package/dist/chunk-YWHH3MB6.js.map +7 -0
  357. package/dist/chunk-YZ6F5N7R.js +455 -0
  358. package/dist/chunk-YZ6F5N7R.js.map +7 -0
  359. package/dist/chunk-ZFGRQIB6.js +38 -0
  360. package/dist/chunk-ZFGRQIB6.js.map +7 -0
  361. package/dist/chunk-ZGAUVPAB.js +14 -0
  362. package/dist/chunk-ZGAUVPAB.js.map +7 -0
  363. package/dist/chunk-ZGCATLM5.js +18 -0
  364. package/dist/chunk-ZGCATLM5.js.map +7 -0
  365. package/dist/chunk-ZSOPE7DO.js +92 -0
  366. package/dist/chunk-ZSOPE7DO.js.map +7 -0
  367. package/dist/chunk-ZY247PXY.js +135 -0
  368. package/dist/chunk-ZY247PXY.js.map +7 -0
  369. package/dist/cli-metadata.js +3 -3
  370. package/dist/contract-api.js +64 -64
  371. package/dist/dist-DVBXHDB4.js +549 -0
  372. package/dist/dist-DVBXHDB4.js.map +7 -0
  373. package/dist/helper-api.js +6 -6
  374. package/dist/index.js +8 -9
  375. package/dist/index.js.map +1 -1
  376. package/dist/magic-string.es-ITIPPYGW.js +1315 -0
  377. package/dist/magic-string.es-ITIPPYGW.js.map +7 -0
  378. package/dist/package.json +1 -1
  379. package/dist/plugin-entry.handlers.runtime-JLRK5XTV.js +20 -0
  380. package/dist/plugin-entry.handlers.runtime-JLRK5XTV.js.map +7 -0
  381. package/dist/runtime-api.js +9 -9
  382. package/dist/rust-crypto-7KS7OJ3F.js +5323 -0
  383. package/dist/rust-crypto-7KS7OJ3F.js.map +7 -0
  384. package/dist/secret-contract-api.js +3 -3
  385. package/dist/setup-entry.js +2 -3
  386. package/dist/setup-entry.js.map +1 -1
  387. package/dist/src/account-selection.js +5 -5
  388. package/dist/src/actions.js +18 -18
  389. package/dist/src/approval-auth.js +19 -19
  390. package/dist/src/approval-handler.runtime.js +55 -55
  391. package/dist/src/approval-ids.js +3 -3
  392. package/dist/src/approval-native.js +22 -22
  393. package/dist/src/approval-reactions.js +2 -2
  394. package/dist/src/auth-precedence.js +2 -2
  395. package/dist/src/channel-account-paths.js +3 -3
  396. package/dist/src/channel.js +68 -68
  397. package/dist/src/channel.runtime.js +51 -51
  398. package/dist/src/cli-metadata.js +2 -2
  399. package/dist/src/cli.js +63 -63
  400. package/dist/src/config-adapter.js +18 -18
  401. package/dist/src/config-schema.js +2 -2
  402. package/dist/src/directory-live.js +27 -27
  403. package/dist/src/doctor-contract.js +3 -3
  404. package/dist/src/doctor.js +24 -24
  405. package/dist/src/env-vars.js +2 -2
  406. package/dist/src/exec-approval-resolver.js +2 -2
  407. package/dist/src/exec-approvals.js +20 -20
  408. package/dist/src/group-mentions.js +20 -20
  409. package/dist/src/legacy-crypto-inspector-availability.js +2 -2
  410. package/dist/src/legacy-crypto.js +18 -18
  411. package/dist/src/legacy-state.js +16 -16
  412. package/dist/src/matrix/account-config.js +2 -2
  413. package/dist/src/matrix/accounts.js +16 -16
  414. package/dist/src/matrix/actions/client.js +30 -30
  415. package/dist/src/matrix/actions/devices.js +32 -32
  416. package/dist/src/matrix/actions/limits.js +2 -2
  417. package/dist/src/matrix/actions/messages.js +37 -37
  418. package/dist/src/matrix/actions/pins.js +36 -36
  419. package/dist/src/matrix/actions/polls.js +31 -31
  420. package/dist/src/matrix/actions/profile.js +32 -32
  421. package/dist/src/matrix/actions/reactions.js +32 -32
  422. package/dist/src/matrix/actions/room.js +32 -32
  423. package/dist/src/matrix/actions/summary.js +9 -9
  424. package/dist/src/matrix/actions/types.js +3 -3
  425. package/dist/src/matrix/actions/verification.js +37 -37
  426. package/dist/src/matrix/actions.js +51 -51
  427. package/dist/src/matrix/active-client.js +2 -2
  428. package/dist/src/matrix/async-lock.js +2 -2
  429. package/dist/src/matrix/backup-health.js +2 -2
  430. package/dist/src/matrix/client/config-runtime-api.js +3 -3
  431. package/dist/src/matrix/client/config-secret-input.runtime.js +1 -1
  432. package/dist/src/matrix/client/config.js +13 -13
  433. package/dist/src/matrix/client/create-client.js +14 -14
  434. package/dist/src/matrix/client/env-auth.js +14 -14
  435. package/dist/src/matrix/client/file-sync-store.js +17 -17
  436. package/dist/src/matrix/client/logging.js +5 -5
  437. package/dist/src/matrix/client/migration-snapshot.runtime.js +2 -2
  438. package/dist/src/matrix/client/private-network-host.js +2 -2
  439. package/dist/src/matrix/client/runtime.js +2 -2
  440. package/dist/src/matrix/client/shared.js +16 -16
  441. package/dist/src/matrix/client/storage.js +8 -8
  442. package/dist/src/matrix/client/types.js +1 -1
  443. package/dist/src/matrix/client-bootstrap.js +5 -5
  444. package/dist/src/matrix/client-resolver.test-helpers.js +2 -2
  445. package/dist/src/matrix/client.js +19 -19
  446. package/dist/src/matrix/config-paths.js +2 -2
  447. package/dist/src/matrix/config-update.js +4 -4
  448. package/dist/src/matrix/credentials-read.js +8 -8
  449. package/dist/src/matrix/credentials-write.runtime.js +1 -1
  450. package/dist/src/matrix/credentials.js +10 -10
  451. package/dist/src/matrix/deps.js +2 -2
  452. package/dist/src/matrix/device-health.js +2 -2
  453. package/dist/src/matrix/direct-management.js +6 -6
  454. package/dist/src/matrix/direct-room.js +2 -2
  455. package/dist/src/matrix/draft-stream.js +27 -27
  456. package/dist/src/matrix/encryption-guidance.js +7 -7
  457. package/dist/src/matrix/errors.js +2 -2
  458. package/dist/src/matrix/format.js +3 -3
  459. package/dist/src/matrix/legacy-crypto-inspector.js +3 -4
  460. package/dist/src/matrix/legacy-crypto-inspector.js.map +1 -1
  461. package/dist/src/matrix/media-errors.js +2 -2
  462. package/dist/src/matrix/media-text.js +2 -2
  463. package/dist/src/matrix/monitor/access-state.js +3 -3
  464. package/dist/src/matrix/monitor/ack-config.js +4 -4
  465. package/dist/src/matrix/monitor/allowlist.js +2 -2
  466. package/dist/src/matrix/monitor/auto-join.js +3 -3
  467. package/dist/src/matrix/monitor/config.js +31 -31
  468. package/dist/src/matrix/monitor/context-summary.js +5 -5
  469. package/dist/src/matrix/monitor/direct.js +7 -7
  470. package/dist/src/matrix/monitor/events.js +14 -14
  471. package/dist/src/matrix/monitor/handler.js +70 -70
  472. package/dist/src/matrix/monitor/handler.test-helpers.js +71 -71
  473. package/dist/src/matrix/monitor/inbound-dedupe.js +11 -11
  474. package/dist/src/matrix/monitor/index.js +100 -100
  475. package/dist/src/matrix/monitor/legacy-crypto-restore.js +8 -8
  476. package/dist/src/matrix/monitor/location.js +5 -5
  477. package/dist/src/matrix/monitor/media.js +4 -4
  478. package/dist/src/matrix/monitor/mentions.js +3 -3
  479. package/dist/src/matrix/monitor/reaction-events.js +30 -30
  480. package/dist/src/matrix/monitor/recent-invite.js +4 -4
  481. package/dist/src/matrix/monitor/replies.js +27 -27
  482. package/dist/src/matrix/monitor/reply-context.js +6 -6
  483. package/dist/src/matrix/monitor/room-history.js +2 -2
  484. package/dist/src/matrix/monitor/room-info.js +3 -3
  485. package/dist/src/matrix/monitor/rooms.js +3 -3
  486. package/dist/src/matrix/monitor/route.js +6 -6
  487. package/dist/src/matrix/monitor/runtime-api.js +2 -2
  488. package/dist/src/matrix/monitor/startup-verification.js +9 -9
  489. package/dist/src/matrix/monitor/startup.js +3 -3
  490. package/dist/src/matrix/monitor/status.js +4 -4
  491. package/dist/src/matrix/monitor/sync-lifecycle.js +3 -3
  492. package/dist/src/matrix/monitor/task-runner.js +2 -2
  493. package/dist/src/matrix/monitor/thread-context.js +6 -6
  494. package/dist/src/matrix/monitor/threads.js +4 -4
  495. package/dist/src/matrix/monitor/types.js +3 -3
  496. package/dist/src/matrix/monitor/verification-events.js +7 -7
  497. package/dist/src/matrix/monitor/verification-utils.js +2 -2
  498. package/dist/src/matrix/outbound-media-runtime.js +3 -3
  499. package/dist/src/matrix/poll-summary.js +4 -4
  500. package/dist/src/matrix/poll-types.js +3 -3
  501. package/dist/src/matrix/probe.js +3 -3
  502. package/dist/src/matrix/probe.runtime.js +19 -19
  503. package/dist/src/matrix/profile.js +2 -2
  504. package/dist/src/matrix/reaction-common.js +2 -2
  505. package/dist/src/matrix/sdk/crypto-bootstrap.js +9 -9
  506. package/dist/src/matrix/sdk/crypto-facade.js +2 -2
  507. package/dist/src/matrix/sdk/crypto-node.runtime.js +2 -3
  508. package/dist/src/matrix/sdk/crypto-node.runtime.js.map +1 -1
  509. package/dist/src/matrix/sdk/crypto-runtime.js +16 -16
  510. package/dist/src/matrix/sdk/decrypt-bridge.js +5 -5
  511. package/dist/src/matrix/sdk/event-helpers.js +2 -2
  512. package/dist/src/matrix/sdk/http-client.js +7 -7
  513. package/dist/src/matrix/sdk/idb-persistence-lock.js +2 -2
  514. package/dist/src/matrix/sdk/idb-persistence.js +5 -5
  515. package/dist/src/matrix/sdk/idb-persistence.test-helpers.js +1 -1
  516. package/dist/src/matrix/sdk/logger.js +3 -3
  517. package/dist/src/matrix/sdk/read-response-with-limit.js +2 -2
  518. package/dist/src/matrix/sdk/recovery-key-store.js +6 -6
  519. package/dist/src/matrix/sdk/transport.js +5 -5
  520. package/dist/src/matrix/sdk/types.js +1 -1
  521. package/dist/src/matrix/sdk/verification-manager.js +5 -5
  522. package/dist/src/matrix/sdk/verification-status.js +2 -2
  523. package/dist/src/matrix/sdk.js +31 -31
  524. package/dist/src/matrix/send/client.js +4 -4
  525. package/dist/src/matrix/send/formatting.js +7 -7
  526. package/dist/src/matrix/send/media.js +12 -12
  527. package/dist/src/matrix/send/targets.js +7 -7
  528. package/dist/src/matrix/send/types.js +3 -3
  529. package/dist/src/matrix/send.js +26 -26
  530. package/dist/src/matrix/session-store-metadata.js +3 -3
  531. package/dist/src/matrix/startup-abort.js +2 -2
  532. package/dist/src/matrix/sync-state.js +2 -2
  533. package/dist/src/matrix/target-ids.js +2 -2
  534. package/dist/src/matrix/thread-bindings-shared.js +2 -2
  535. package/dist/src/matrix/thread-bindings.js +34 -34
  536. package/dist/src/matrix-migration.runtime.js +22 -22
  537. package/dist/src/migration-config.js +15 -15
  538. package/dist/src/migration-snapshot-backup.js +2 -2
  539. package/dist/src/migration-snapshot.js +21 -21
  540. package/dist/src/onboarding.js +37 -37
  541. package/dist/src/onboarding.test-harness.js +2 -2
  542. package/dist/src/outbound.js +27 -27
  543. package/dist/src/plugin-entry.runtime.js +3 -3
  544. package/dist/src/profile-update.js +35 -35
  545. package/dist/src/record-shared.js +2 -2
  546. package/dist/src/resolve-targets.js +28 -28
  547. package/dist/src/resolver.js +2 -2
  548. package/dist/src/runtime-api.js +2 -2
  549. package/dist/src/runtime.js +2 -2
  550. package/dist/src/secret-contract.js +3 -3
  551. package/dist/src/session-route.js +19 -19
  552. package/dist/src/setup-bootstrap.js +46 -46
  553. package/dist/src/setup-config.js +18 -18
  554. package/dist/src/setup-contract.js +2 -2
  555. package/dist/src/setup-core.js +19 -19
  556. package/dist/src/setup-surface.js +38 -38
  557. package/dist/src/startup-maintenance.js +23 -23
  558. package/dist/src/storage-paths.js +2 -2
  559. package/dist/src/test-helpers.js +1 -1
  560. package/dist/src/test-mocks.js +2 -2
  561. package/dist/src/test-runtime.js +3 -3
  562. package/dist/src/tool-actions.js +62 -62
  563. package/dist/src/tool-actions.runtime.js +62 -62
  564. package/dist/src/types.js +1 -1
  565. package/dist/test-api.js +68 -68
  566. package/dist/thread-bindings-runtime.js +2 -2
  567. package/package.json +1 -1
@@ -0,0 +1,676 @@
1
+ import {
2
+ resolveMatrixTargets
3
+ } from "./chunk-R7ZBOXPS.js";
4
+ import {
5
+ listMatrixDirectoryGroupsLive
6
+ } from "./chunk-CEKNTCJD.js";
7
+ import {
8
+ moveSingleMatrixAccountConfigToNamedAccount
9
+ } from "./chunk-XR7DPSNX.js";
10
+ import {
11
+ updateMatrixAccountConfig
12
+ } from "./chunk-XOZPOHLG.js";
13
+ import {
14
+ addWildcardAllowFrom,
15
+ formatDocsLink,
16
+ hasConfiguredSecretInput,
17
+ isPrivateOrLoopbackHost,
18
+ mergeAllowFromEntries,
19
+ normalizeAccountId,
20
+ promptAccountId,
21
+ promptChannelAccessConfig,
22
+ splitSetupEntries
23
+ } from "./chunk-HGHU3TVL.js";
24
+ import {
25
+ listMatrixAccountIds,
26
+ resolveDefaultMatrixAccountId,
27
+ resolveMatrixAccount
28
+ } from "./chunk-MJ2GW6SU.js";
29
+ import {
30
+ resolveMatrixEnvAuthReadiness,
31
+ resolveValidatedMatrixHomeserverUrl,
32
+ validateMatrixHomeserverUrl
33
+ } from "./chunk-OKDOVX4B.js";
34
+ import {
35
+ resolveMatrixConfigFieldPath
36
+ } from "./chunk-SPNSM6SB.js";
37
+ import {
38
+ resolveMatrixAccountConfig
39
+ } from "./chunk-3OXOEMBS.js";
40
+ import {
41
+ ensureMatrixSdkInstalled,
42
+ isMatrixSdkAvailable
43
+ } from "./chunk-Q6H5OV2R.js";
44
+ import {
45
+ requiresExplicitMatrixDefaultAccount
46
+ } from "./chunk-3R4ATE4Q.js";
47
+ import {
48
+ init_shims
49
+ } from "./chunk-G4TIS2SC.js";
50
+
51
+ // src/onboarding.ts
52
+ init_shims();
53
+ import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
54
+ import { isPrivateNetworkOptInEnabled } from "openclaw/plugin-sdk/ssrf-runtime";
55
+ import {
56
+ normalizeLowercaseStringOrEmpty,
57
+ normalizeOptionalString,
58
+ normalizeStringifiedOptionalString
59
+ } from "openclaw/plugin-sdk/text-runtime";
60
+ var channel = "matrix";
61
+ var matrixInviteAutoJoinOptions = [
62
+ { value: "allowlist", label: "Allowlist (recommended)" },
63
+ { value: "always", label: "Always (join every invite)" },
64
+ { value: "off", label: "Off (do not auto-join invites)" }
65
+ ];
66
+ function isMatrixInviteAutoJoinPolicy(value) {
67
+ return value === "allowlist" || value === "always" || value === "off";
68
+ }
69
+ function isMatrixInviteAutoJoinTarget(entry) {
70
+ return entry === "*" || entry.startsWith("!") && entry.includes(":") || entry.startsWith("#") && entry.includes(":");
71
+ }
72
+ function normalizeMatrixInviteAutoJoinTargets(entries) {
73
+ return [
74
+ ...new Set(
75
+ entries.map((entry) => normalizeOptionalString(entry)).filter((entry) => Boolean(entry))
76
+ )
77
+ ];
78
+ }
79
+ function resolveMatrixOnboardingAccountId(cfg, accountId) {
80
+ return normalizeAccountId(
81
+ normalizeOptionalString(accountId) || resolveDefaultMatrixAccountId(cfg) || DEFAULT_ACCOUNT_ID
82
+ );
83
+ }
84
+ function setMatrixDmPolicy(cfg, policy, accountId) {
85
+ const resolvedAccountId = resolveMatrixOnboardingAccountId(cfg, accountId);
86
+ const existing = resolveMatrixAccountConfig({
87
+ cfg,
88
+ accountId: resolvedAccountId
89
+ });
90
+ const allowFrom = policy === "open" ? addWildcardAllowFrom(existing.dm?.allowFrom) : void 0;
91
+ return updateMatrixAccountConfig(cfg, resolvedAccountId, {
92
+ dm: {
93
+ ...existing.dm,
94
+ policy,
95
+ ...allowFrom ? { allowFrom } : {}
96
+ }
97
+ });
98
+ }
99
+ async function noteMatrixAuthHelp(prompter) {
100
+ await prompter.note(
101
+ [
102
+ "Matrix requires a homeserver URL.",
103
+ "Use an access token (recommended) or password login to an existing account.",
104
+ "With access token: user ID is fetched automatically.",
105
+ "Env vars supported: LOBI_HOMESERVER, LOBI_USER_ID, LOBI_ACCESS_TOKEN, LOBI_PASSWORD, LOBI_DEVICE_ID, LOBI_DEVICE_NAME.",
106
+ "Per-account env vars: MATRIX_<ACCOUNT_ID>_HOMESERVER, MATRIX_<ACCOUNT_ID>_USER_ID, MATRIX_<ACCOUNT_ID>_ACCESS_TOKEN, MATRIX_<ACCOUNT_ID>_PASSWORD, MATRIX_<ACCOUNT_ID>_DEVICE_ID, MATRIX_<ACCOUNT_ID>_DEVICE_NAME.",
107
+ `Docs: ${formatDocsLink("/channels/matrix", "channels/matrix")}`
108
+ ].join("\n"),
109
+ "Matrix setup"
110
+ );
111
+ }
112
+ function requiresMatrixPrivateNetworkOptIn(homeserver) {
113
+ try {
114
+ const parsed = new URL(homeserver);
115
+ return parsed.protocol === "http:" && !isPrivateOrLoopbackHost(parsed.hostname);
116
+ } catch {
117
+ return false;
118
+ }
119
+ }
120
+ async function promptMatrixAllowFrom(params) {
121
+ const { cfg, prompter } = params;
122
+ const accountId = resolveMatrixOnboardingAccountId(cfg, params.accountId);
123
+ const existingConfig = resolveMatrixAccountConfig({ cfg, accountId });
124
+ const existingAllowFrom = existingConfig.dm?.allowFrom ?? [];
125
+ const account = resolveMatrixAccount({ cfg, accountId });
126
+ const canResolve = account.configured;
127
+ const isFullUserId = (value) => value.startsWith("@") && value.includes(":");
128
+ while (true) {
129
+ const entry = await prompter.text({
130
+ message: "Matrix allowFrom (full @user:server; display name only if unique)",
131
+ placeholder: "@user:server",
132
+ initialValue: existingAllowFrom[0] ? String(existingAllowFrom[0]) : void 0,
133
+ validate: (value) => normalizeOptionalString(value) ? void 0 : "Required"
134
+ });
135
+ const parts = splitSetupEntries(entry);
136
+ const resolvedIds = [];
137
+ const pending = [];
138
+ const unresolved = [];
139
+ const unresolvedNotes = [];
140
+ for (const part of parts) {
141
+ if (isFullUserId(part)) {
142
+ resolvedIds.push(part);
143
+ continue;
144
+ }
145
+ if (!canResolve) {
146
+ unresolved.push(part);
147
+ continue;
148
+ }
149
+ pending.push(part);
150
+ }
151
+ if (pending.length > 0) {
152
+ const results = await resolveMatrixTargets({
153
+ cfg,
154
+ accountId,
155
+ inputs: pending,
156
+ kind: "user"
157
+ }).catch(() => []);
158
+ for (const result of results) {
159
+ if (result?.resolved && result.id) {
160
+ resolvedIds.push(result.id);
161
+ continue;
162
+ }
163
+ if (result?.input) {
164
+ unresolved.push(result.input);
165
+ if (result.note) {
166
+ unresolvedNotes.push(`${result.input}: ${result.note}`);
167
+ }
168
+ }
169
+ }
170
+ }
171
+ if (unresolved.length > 0) {
172
+ const details = unresolvedNotes.length > 0 ? unresolvedNotes : unresolved;
173
+ await prompter.note(
174
+ `Could not resolve:
175
+ ${details.join("\n")}
176
+ Use full @user:server IDs.`,
177
+ "Matrix allowlist"
178
+ );
179
+ continue;
180
+ }
181
+ const unique = mergeAllowFromEntries(existingAllowFrom, resolvedIds);
182
+ return updateMatrixAccountConfig(cfg, accountId, {
183
+ dm: {
184
+ ...existingConfig.dm,
185
+ policy: "allowlist",
186
+ allowFrom: unique
187
+ }
188
+ });
189
+ }
190
+ }
191
+ function setMatrixGroupPolicy(cfg, groupPolicy, accountId) {
192
+ return updateMatrixAccountConfig(cfg, resolveMatrixOnboardingAccountId(cfg, accountId), {
193
+ groupPolicy
194
+ });
195
+ }
196
+ function setMatrixGroupRooms(cfg, roomKeys, accountId) {
197
+ const groups = Object.fromEntries(roomKeys.map((key) => [key, { enabled: true }]));
198
+ return updateMatrixAccountConfig(cfg, resolveMatrixOnboardingAccountId(cfg, accountId), {
199
+ groups,
200
+ rooms: null
201
+ });
202
+ }
203
+ function setMatrixAutoJoin(cfg, autoJoin, autoJoinAllowlist, accountId) {
204
+ return updateMatrixAccountConfig(cfg, resolveMatrixOnboardingAccountId(cfg, accountId), {
205
+ autoJoin,
206
+ autoJoinAllowlist: autoJoin === "allowlist" ? autoJoinAllowlist : null
207
+ });
208
+ }
209
+ async function configureMatrixInviteAutoJoin(params) {
210
+ const accountId = resolveMatrixOnboardingAccountId(params.cfg, params.accountId);
211
+ const existingConfig = resolveMatrixAccountConfig({ cfg: params.cfg, accountId });
212
+ const currentPolicy = existingConfig.autoJoin ?? "off";
213
+ const currentAllowlist = (existingConfig.autoJoinAllowlist ?? []).map((entry) => String(entry));
214
+ const hasExistingConfig = existingConfig.autoJoin !== void 0 || currentAllowlist.length > 0;
215
+ await params.prompter.note(
216
+ [
217
+ "WARNING: Matrix invite auto-join defaults to off.",
218
+ "OpenClaw agents will not join invited rooms or fresh DM-style invites unless you set autoJoin.",
219
+ 'Choose "allowlist" to restrict joins or "always" to join every invite.'
220
+ ].join("\n"),
221
+ "Matrix invite auto-join"
222
+ );
223
+ const wants = await params.prompter.confirm({
224
+ message: hasExistingConfig ? "Update Matrix invite auto-join?" : "Configure Matrix invite auto-join?",
225
+ initialValue: hasExistingConfig ? currentPolicy !== "off" : true
226
+ });
227
+ if (!wants) {
228
+ return params.cfg;
229
+ }
230
+ const selectedPolicy = await params.prompter.select({
231
+ message: "Matrix invite auto-join",
232
+ options: matrixInviteAutoJoinOptions,
233
+ initialValue: currentPolicy
234
+ });
235
+ if (!isMatrixInviteAutoJoinPolicy(selectedPolicy)) {
236
+ throw new Error(`Unsupported Matrix invite auto-join policy: ${String(selectedPolicy)}`);
237
+ }
238
+ const policy = selectedPolicy;
239
+ if (policy === "off") {
240
+ await params.prompter.note(
241
+ [
242
+ "Matrix invite auto-join remains off.",
243
+ "Agents will not join invited rooms or fresh DM-style invites until you change autoJoin."
244
+ ].join("\n"),
245
+ "Matrix invite auto-join"
246
+ );
247
+ return setMatrixAutoJoin(params.cfg, policy, [], accountId);
248
+ }
249
+ if (policy === "always") {
250
+ return setMatrixAutoJoin(params.cfg, policy, [], accountId);
251
+ }
252
+ while (true) {
253
+ const rawAllowlist = await params.prompter.text({
254
+ message: "Matrix invite auto-join allowlist (comma-separated)",
255
+ placeholder: "!roomId:server, #alias:server, *",
256
+ initialValue: currentAllowlist[0] ? currentAllowlist.join(", ") : void 0,
257
+ validate: (value) => {
258
+ const entries = splitSetupEntries(value);
259
+ return entries.length > 0 ? void 0 : "Required";
260
+ }
261
+ });
262
+ const allowlist = normalizeMatrixInviteAutoJoinTargets(splitSetupEntries(rawAllowlist));
263
+ const invalidEntries = allowlist.filter((entry) => !isMatrixInviteAutoJoinTarget(entry));
264
+ if (allowlist.length === 0 || invalidEntries.length > 0) {
265
+ await params.prompter.note(
266
+ [
267
+ "Use only stable Matrix invite targets for auto-join: !roomId:server, #alias:server, or *.",
268
+ invalidEntries.length > 0 ? `Invalid: ${invalidEntries.join(", ")}` : void 0
269
+ ].filter(Boolean).join("\n"),
270
+ "Matrix invite auto-join"
271
+ );
272
+ continue;
273
+ }
274
+ return setMatrixAutoJoin(params.cfg, "allowlist", allowlist, accountId);
275
+ }
276
+ }
277
+ async function configureMatrixAccessPrompts(params) {
278
+ let next = params.cfg;
279
+ if (params.forceAllowFrom) {
280
+ next = await promptMatrixAllowFrom({
281
+ cfg: next,
282
+ prompter: params.prompter,
283
+ accountId: params.accountId
284
+ });
285
+ }
286
+ const existingAccountConfig = resolveMatrixAccountConfig({
287
+ cfg: next,
288
+ accountId: params.accountId
289
+ });
290
+ const existingGroups = existingAccountConfig.groups ?? existingAccountConfig.rooms;
291
+ const accessConfig = await promptChannelAccessConfig({
292
+ prompter: params.prompter,
293
+ label: "Matrix rooms",
294
+ currentPolicy: existingAccountConfig.groupPolicy ?? "allowlist",
295
+ currentEntries: Object.keys(existingGroups ?? {}),
296
+ placeholder: "!roomId:server, #alias:server, Project Room",
297
+ updatePrompt: Boolean(existingGroups)
298
+ });
299
+ if (accessConfig) {
300
+ if (accessConfig.policy !== "allowlist") {
301
+ next = setMatrixGroupPolicy(next, accessConfig.policy, params.accountId);
302
+ } else {
303
+ let roomKeys = accessConfig.entries;
304
+ if (accessConfig.entries.length > 0) {
305
+ try {
306
+ const resolvedIds = [];
307
+ const unresolved = [];
308
+ for (const entry of accessConfig.entries) {
309
+ const trimmed = normalizeOptionalString(entry) ?? "";
310
+ if (!trimmed) {
311
+ continue;
312
+ }
313
+ const cleaned = trimmed.replace(/^(room|channel):/i, "").trim();
314
+ if (cleaned.startsWith("!") && cleaned.includes(":")) {
315
+ resolvedIds.push(cleaned);
316
+ continue;
317
+ }
318
+ const matches = await listMatrixDirectoryGroupsLive({
319
+ cfg: next,
320
+ accountId: params.accountId,
321
+ query: trimmed,
322
+ limit: 10
323
+ });
324
+ const exact = matches.find(
325
+ (match) => normalizeLowercaseStringOrEmpty(match.name) === normalizeLowercaseStringOrEmpty(trimmed)
326
+ );
327
+ const best = exact ?? matches[0];
328
+ if (best?.id) {
329
+ resolvedIds.push(best.id);
330
+ } else {
331
+ unresolved.push(entry);
332
+ }
333
+ }
334
+ roomKeys = [
335
+ ...resolvedIds,
336
+ ...unresolved.map((entry) => normalizeOptionalString(entry)).filter((entry) => Boolean(entry))
337
+ ];
338
+ if (resolvedIds.length > 0 || unresolved.length > 0) {
339
+ await params.prompter.note(
340
+ [
341
+ resolvedIds.length > 0 ? `Resolved: ${resolvedIds.join(", ")}` : void 0,
342
+ unresolved.length > 0 ? `Unresolved (kept as typed): ${unresolved.join(", ")}` : void 0
343
+ ].filter(Boolean).join("\n"),
344
+ "Matrix rooms"
345
+ );
346
+ }
347
+ } catch (err) {
348
+ await params.prompter.note(
349
+ `Room lookup failed; keeping entries as typed. ${String(err)}`,
350
+ "Matrix rooms"
351
+ );
352
+ }
353
+ }
354
+ next = setMatrixGroupPolicy(next, "allowlist", params.accountId);
355
+ next = setMatrixGroupRooms(next, roomKeys, params.accountId);
356
+ }
357
+ }
358
+ return await configureMatrixInviteAutoJoin({
359
+ cfg: next,
360
+ prompter: params.prompter,
361
+ accountId: params.accountId
362
+ });
363
+ }
364
+ var dmPolicy = {
365
+ label: "Matrix",
366
+ channel,
367
+ policyKey: "channels.lobi.dm.policy",
368
+ allowFromKey: "channels.lobi.dm.allowFrom",
369
+ resolveConfigKeys: (cfg, accountId) => {
370
+ const effectiveAccountId = resolveMatrixOnboardingAccountId(cfg, accountId);
371
+ return {
372
+ policyKey: resolveMatrixConfigFieldPath(cfg, effectiveAccountId, "dm.policy"),
373
+ allowFromKey: resolveMatrixConfigFieldPath(
374
+ cfg,
375
+ effectiveAccountId,
376
+ "dm.allowFrom"
377
+ )
378
+ };
379
+ },
380
+ getCurrent: (cfg, accountId) => resolveMatrixAccountConfig({
381
+ cfg,
382
+ accountId: resolveMatrixOnboardingAccountId(cfg, accountId)
383
+ }).dm?.policy ?? "pairing",
384
+ setPolicy: (cfg, policy, accountId) => setMatrixDmPolicy(cfg, policy, accountId),
385
+ promptAllowFrom: promptMatrixAllowFrom
386
+ };
387
+ async function runMatrixConfigure(params) {
388
+ let next = params.cfg;
389
+ await ensureMatrixSdkInstalled({
390
+ runtime: params.runtime,
391
+ confirm: async (message) => await params.prompter.confirm({
392
+ message,
393
+ initialValue: true
394
+ })
395
+ });
396
+ const defaultAccountId = resolveDefaultMatrixAccountId(next);
397
+ let accountId = defaultAccountId || DEFAULT_ACCOUNT_ID;
398
+ if (params.intent === "add-account") {
399
+ const enteredName = normalizeStringifiedOptionalString(
400
+ await params.prompter.text({
401
+ message: "Matrix account name",
402
+ validate: (value) => normalizeOptionalString(value) ? void 0 : "Required"
403
+ })
404
+ ) ?? "";
405
+ accountId = normalizeAccountId(enteredName);
406
+ if (enteredName !== accountId) {
407
+ await params.prompter.note(`Account id will be "${accountId}".`, "Matrix account");
408
+ }
409
+ if (accountId !== DEFAULT_ACCOUNT_ID) {
410
+ next = moveSingleMatrixAccountConfigToNamedAccount(next);
411
+ }
412
+ next = updateMatrixAccountConfig(next, accountId, { name: enteredName, enabled: true });
413
+ } else {
414
+ const override = normalizeOptionalString(params.accountOverrides?.[channel]);
415
+ if (override) {
416
+ accountId = normalizeAccountId(override);
417
+ } else if (params.shouldPromptAccountIds) {
418
+ accountId = await promptAccountId({
419
+ cfg: next,
420
+ prompter: params.prompter,
421
+ label: "Matrix",
422
+ currentId: accountId,
423
+ listAccountIds: (inputCfg) => listMatrixAccountIds(inputCfg),
424
+ defaultAccountId
425
+ });
426
+ }
427
+ }
428
+ const existing = resolveMatrixAccountConfig({ cfg: next, accountId });
429
+ const account = resolveMatrixAccount({ cfg: next, accountId });
430
+ if (!account.configured) {
431
+ await noteMatrixAuthHelp(params.prompter);
432
+ }
433
+ const envReadiness = resolveMatrixEnvAuthReadiness(accountId, process.env);
434
+ const envReady = envReadiness.ready;
435
+ const envHomeserver = envReadiness.homeserver;
436
+ const envUserId = envReadiness.userId;
437
+ if (envReady && !existing.homeserver && !existing.userId && !existing.accessToken && !existing.password) {
438
+ const useEnv = await params.prompter.confirm({
439
+ message: `Matrix env vars detected (${envReadiness.sourceHint}). Use env values?`,
440
+ initialValue: true
441
+ });
442
+ if (useEnv) {
443
+ next = updateMatrixAccountConfig(next, accountId, { enabled: true });
444
+ next = await configureMatrixAccessPrompts({
445
+ cfg: next,
446
+ prompter: params.prompter,
447
+ forceAllowFrom: params.forceAllowFrom,
448
+ accountId
449
+ });
450
+ return { cfg: next, accountId };
451
+ }
452
+ }
453
+ const homeserver = normalizeStringifiedOptionalString(
454
+ await params.prompter.text({
455
+ message: "Matrix homeserver URL",
456
+ initialValue: existing.homeserver ?? envHomeserver,
457
+ validate: (value) => {
458
+ try {
459
+ validateMatrixHomeserverUrl(value, {
460
+ allowPrivateNetwork: true
461
+ });
462
+ return void 0;
463
+ } catch (error) {
464
+ return error instanceof Error ? error.message : "Invalid Matrix homeserver URL";
465
+ }
466
+ }
467
+ })
468
+ ) ?? "";
469
+ const requiresAllowPrivateNetwork = requiresMatrixPrivateNetworkOptIn(homeserver);
470
+ const shouldPromptAllowPrivateNetwork = requiresAllowPrivateNetwork || isPrivateNetworkOptInEnabled(existing);
471
+ const allowPrivateNetwork = shouldPromptAllowPrivateNetwork ? await params.prompter.confirm({
472
+ message: "Allow private/internal Matrix homeserver traffic for this account?",
473
+ initialValue: isPrivateNetworkOptInEnabled(existing) || requiresAllowPrivateNetwork
474
+ }) : false;
475
+ if (requiresAllowPrivateNetwork && !allowPrivateNetwork) {
476
+ throw new Error("Matrix homeserver requires explicit private-network opt-in");
477
+ }
478
+ await resolveValidatedMatrixHomeserverUrl(homeserver, {
479
+ dangerouslyAllowPrivateNetwork: allowPrivateNetwork
480
+ });
481
+ let accessToken = existing.accessToken;
482
+ let password = existing.password;
483
+ let userId = existing.userId ?? "";
484
+ if (hasConfiguredSecretInput(accessToken) || hasConfiguredSecretInput(password)) {
485
+ const keep = await params.prompter.confirm({
486
+ message: "Matrix credentials already configured. Keep them?",
487
+ initialValue: true
488
+ });
489
+ if (!keep) {
490
+ accessToken = void 0;
491
+ password = void 0;
492
+ userId = "";
493
+ }
494
+ }
495
+ if (!hasConfiguredSecretInput(accessToken) && !hasConfiguredSecretInput(password)) {
496
+ const authMode = await params.prompter.select({
497
+ message: "Matrix auth method",
498
+ options: [
499
+ { value: "token", label: "Access token (user ID fetched automatically)" },
500
+ { value: "password", label: "Password (requires user ID)" }
501
+ ]
502
+ });
503
+ if (authMode === "token") {
504
+ accessToken = normalizeStringifiedOptionalString(
505
+ await params.prompter.text({
506
+ message: "Matrix access token",
507
+ validate: (value) => normalizeOptionalString(value) ? void 0 : "Required"
508
+ })
509
+ ) ?? "";
510
+ password = void 0;
511
+ userId = "";
512
+ } else {
513
+ userId = normalizeStringifiedOptionalString(
514
+ await params.prompter.text({
515
+ message: "Matrix user ID",
516
+ initialValue: existing.userId ?? envUserId,
517
+ validate: (value) => {
518
+ const raw = normalizeOptionalString(value) ?? "";
519
+ if (!raw) {
520
+ return "Required";
521
+ }
522
+ if (!raw.startsWith("@")) {
523
+ return "Matrix user IDs should start with @";
524
+ }
525
+ if (!raw.includes(":")) {
526
+ return "Matrix user IDs should include a server (:server)";
527
+ }
528
+ return void 0;
529
+ }
530
+ })
531
+ ) ?? "";
532
+ password = normalizeStringifiedOptionalString(
533
+ await params.prompter.text({
534
+ message: "Matrix password",
535
+ validate: (value) => normalizeOptionalString(value) ? void 0 : "Required"
536
+ })
537
+ ) ?? "";
538
+ accessToken = void 0;
539
+ }
540
+ }
541
+ const deviceName = normalizeStringifiedOptionalString(
542
+ await params.prompter.text({
543
+ message: "Matrix device name (optional)",
544
+ initialValue: existing.deviceName ?? "OpenClaw Gateway"
545
+ })
546
+ ) ?? "";
547
+ const enableEncryption = await params.prompter.confirm({
548
+ message: "Enable end-to-end encryption (E2EE)?",
549
+ initialValue: existing.encryption ?? false
550
+ });
551
+ next = updateMatrixAccountConfig(next, accountId, {
552
+ enabled: true,
553
+ homeserver,
554
+ ...shouldPromptAllowPrivateNetwork ? { allowPrivateNetwork: allowPrivateNetwork ? true : null } : {},
555
+ userId: userId || null,
556
+ accessToken: accessToken ?? null,
557
+ password: password ?? null,
558
+ deviceName: deviceName || null,
559
+ encryption: enableEncryption
560
+ });
561
+ next = await configureMatrixAccessPrompts({
562
+ cfg: next,
563
+ prompter: params.prompter,
564
+ forceAllowFrom: params.forceAllowFrom,
565
+ accountId
566
+ });
567
+ return { cfg: next, accountId };
568
+ }
569
+ var matrixOnboardingAdapter = {
570
+ channel,
571
+ getStatus: async ({ cfg, accountOverrides }) => {
572
+ const resolvedCfg = cfg;
573
+ const sdkReady = isMatrixSdkAvailable();
574
+ if (!accountOverrides[channel] && requiresExplicitMatrixDefaultAccount(resolvedCfg)) {
575
+ return {
576
+ channel,
577
+ configured: false,
578
+ statusLines: ['Matrix: set "channels.lobi.defaultAccount" to select a named account'],
579
+ selectionHint: !sdkReady ? "install Matrix deps" : "set defaultAccount"
580
+ };
581
+ }
582
+ const account = resolveMatrixAccount({
583
+ cfg: resolvedCfg,
584
+ accountId: resolveMatrixOnboardingAccountId(resolvedCfg, accountOverrides[channel])
585
+ });
586
+ const configured = account.configured;
587
+ return {
588
+ channel,
589
+ configured,
590
+ statusLines: [
591
+ `Matrix: ${configured ? "configured" : "needs homeserver + access token or password"}`
592
+ ],
593
+ selectionHint: !sdkReady ? "install Matrix deps" : configured ? "configured" : "needs auth"
594
+ };
595
+ },
596
+ configure: async ({
597
+ cfg,
598
+ runtime,
599
+ prompter,
600
+ forceAllowFrom,
601
+ accountOverrides,
602
+ shouldPromptAccountIds
603
+ }) => await runMatrixConfigure({
604
+ cfg,
605
+ runtime,
606
+ prompter,
607
+ forceAllowFrom,
608
+ accountOverrides,
609
+ shouldPromptAccountIds,
610
+ intent: "update"
611
+ }),
612
+ configureInteractive: async ({
613
+ cfg,
614
+ runtime,
615
+ prompter,
616
+ forceAllowFrom,
617
+ accountOverrides,
618
+ shouldPromptAccountIds,
619
+ configured
620
+ }) => {
621
+ if (!configured) {
622
+ return await runMatrixConfigure({
623
+ cfg,
624
+ runtime,
625
+ prompter,
626
+ forceAllowFrom,
627
+ accountOverrides,
628
+ shouldPromptAccountIds,
629
+ intent: "update"
630
+ });
631
+ }
632
+ const action = await prompter.select({
633
+ message: "Matrix already configured. What do you want to do?",
634
+ options: [
635
+ { value: "update", label: "Modify settings" },
636
+ { value: "add-account", label: "Add account" },
637
+ { value: "skip", label: "Skip (leave as-is)" }
638
+ ],
639
+ initialValue: "update"
640
+ });
641
+ if (action === "skip") {
642
+ return "skip";
643
+ }
644
+ return await runMatrixConfigure({
645
+ cfg,
646
+ runtime,
647
+ prompter,
648
+ forceAllowFrom,
649
+ accountOverrides,
650
+ shouldPromptAccountIds,
651
+ intent: action === "add-account" ? "add-account" : "update"
652
+ });
653
+ },
654
+ afterConfigWritten: async ({ previousCfg, cfg, accountId, runtime }) => {
655
+ const { runMatrixSetupBootstrapAfterConfigWrite } = await import("./src/setup-bootstrap.js");
656
+ await runMatrixSetupBootstrapAfterConfigWrite({
657
+ previousCfg,
658
+ cfg,
659
+ accountId,
660
+ runtime
661
+ });
662
+ },
663
+ dmPolicy,
664
+ disable: (cfg) => ({
665
+ ...cfg,
666
+ channels: {
667
+ ...cfg.channels,
668
+ matrix: { ...cfg.channels?.["matrix"], enabled: false }
669
+ }
670
+ })
671
+ };
672
+
673
+ export {
674
+ matrixOnboardingAdapter
675
+ };
676
+ //# sourceMappingURL=chunk-4OXPPDV6.js.map