@archipelagolab/lobi 1.0.1 → 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 (1538) hide show
  1. package/dist/APEv2Parser-6EMKXRZS.js +15 -0
  2. package/dist/APEv2Parser-6EMKXRZS.js.map +7 -0
  3. package/dist/APEv2Parser-FYYGMFPI.js +15 -0
  4. package/dist/APEv2Parser-FYYGMFPI.js.map +7 -0
  5. package/dist/AiffParser-E6XWRTXM.js +194 -0
  6. package/dist/AiffParser-E6XWRTXM.js.map +7 -0
  7. package/dist/AiffParser-JHSDQA7T.js +194 -0
  8. package/dist/AiffParser-JHSDQA7T.js.map +7 -0
  9. package/dist/AsfParser-TPCQDEJB.js +620 -0
  10. package/dist/AsfParser-TPCQDEJB.js.map +7 -0
  11. package/dist/AsfParser-WSOH2JQY.js +620 -0
  12. package/dist/AsfParser-WSOH2JQY.js.map +7 -0
  13. package/dist/DsdiffParser-CGD3C3TL.js +192 -0
  14. package/dist/DsdiffParser-CGD3C3TL.js.map +7 -0
  15. package/dist/DsdiffParser-EUWJ4YAR.js +192 -0
  16. package/dist/DsdiffParser-EUWJ4YAR.js.map +7 -0
  17. package/dist/DsfParser-3UTIJVNF.js +114 -0
  18. package/dist/DsfParser-3UTIJVNF.js.map +7 -0
  19. package/dist/DsfParser-R6TPBJIY.js +114 -0
  20. package/dist/DsfParser-R6TPBJIY.js.map +7 -0
  21. package/dist/FlacParser-HLLYPJ76.js +16 -0
  22. package/dist/FlacParser-HLLYPJ76.js.map +7 -0
  23. package/dist/FlacParser-VDASGZ3E.js +16 -0
  24. package/dist/FlacParser-VDASGZ3E.js.map +7 -0
  25. package/dist/MP4Parser-64RGJLUM.js +1145 -0
  26. package/dist/MP4Parser-64RGJLUM.js.map +7 -0
  27. package/dist/MP4Parser-SM7HYL3Z.js +1145 -0
  28. package/dist/MP4Parser-SM7HYL3Z.js.map +7 -0
  29. package/dist/MatroskaParser-O6RXAKYA.js +662 -0
  30. package/dist/MatroskaParser-O6RXAKYA.js.map +7 -0
  31. package/dist/MatroskaParser-X7WRZ6D4.js +662 -0
  32. package/dist/MatroskaParser-X7WRZ6D4.js.map +7 -0
  33. package/dist/MpegParser-B6NX6DS3.js +652 -0
  34. package/dist/MpegParser-B6NX6DS3.js.map +7 -0
  35. package/dist/MpegParser-KXQEC6KD.js +652 -0
  36. package/dist/MpegParser-KXQEC6KD.js.map +7 -0
  37. package/dist/MusepackParser-NURI46TG.js +331 -0
  38. package/dist/MusepackParser-NURI46TG.js.map +7 -0
  39. package/dist/MusepackParser-WUBT63DS.js +331 -0
  40. package/dist/MusepackParser-WUBT63DS.js.map +7 -0
  41. package/dist/OggParser-5IYVBXPS.js +448 -0
  42. package/dist/OggParser-5IYVBXPS.js.map +7 -0
  43. package/dist/OggParser-ZY6E5C2P.js +448 -0
  44. package/dist/OggParser-ZY6E5C2P.js.map +7 -0
  45. package/dist/WavPackParser-5KTCSQEU.js +209 -0
  46. package/dist/WavPackParser-5KTCSQEU.js.map +7 -0
  47. package/dist/WavPackParser-RTEHKSJH.js +209 -0
  48. package/dist/WavPackParser-RTEHKSJH.js.map +7 -0
  49. package/dist/WaveParser-3R2NLXGP.js +300 -0
  50. package/dist/WaveParser-3R2NLXGP.js.map +7 -0
  51. package/dist/WaveParser-RZSHVQPZ.js +300 -0
  52. package/dist/WaveParser-RZSHVQPZ.js.map +7 -0
  53. package/dist/auth-presence.js +46 -0
  54. package/dist/auth-presence.js.map +7 -0
  55. package/dist/channel-plugin-api.js +79 -0
  56. package/dist/channel-plugin-api.js.map +7 -0
  57. package/dist/chunk-22WAAZ6I.js +114 -0
  58. package/dist/chunk-22WAAZ6I.js.map +7 -0
  59. package/dist/chunk-2A6HEFSO.js +676 -0
  60. package/dist/chunk-2A6HEFSO.js.map +7 -0
  61. package/dist/chunk-2GFROLI2.js +261 -0
  62. package/dist/chunk-2GFROLI2.js.map +7 -0
  63. package/dist/chunk-2IQWKATM.js +127 -0
  64. package/dist/chunk-2IQWKATM.js.map +7 -0
  65. package/dist/chunk-2KGHUHKU.js +169 -0
  66. package/dist/chunk-2KGHUHKU.js.map +7 -0
  67. package/dist/chunk-2NEQI4K6.js +171 -0
  68. package/dist/chunk-2NEQI4K6.js.map +7 -0
  69. package/dist/chunk-2OSJ3MTW.js +175 -0
  70. package/dist/chunk-2OSJ3MTW.js.map +7 -0
  71. package/dist/chunk-2Q626TDO.js +27 -0
  72. package/dist/chunk-2Q626TDO.js.map +7 -0
  73. package/dist/chunk-2U6OZ7N2.js +155 -0
  74. package/dist/chunk-2U6OZ7N2.js.map +7 -0
  75. package/dist/chunk-2V6Y4CAN.js +25 -0
  76. package/dist/chunk-2V6Y4CAN.js.map +7 -0
  77. package/dist/chunk-2WHRUMOM.js +321 -0
  78. package/dist/chunk-2WHRUMOM.js.map +7 -0
  79. package/dist/chunk-2Z4IOUDZ.js +129 -0
  80. package/dist/chunk-2Z4IOUDZ.js.map +7 -0
  81. package/dist/chunk-2ZEPAW7U.js +154 -0
  82. package/dist/chunk-2ZEPAW7U.js.map +7 -0
  83. package/dist/chunk-2ZI6JK5O.js +63 -0
  84. package/dist/chunk-2ZI6JK5O.js.map +7 -0
  85. package/dist/chunk-34UY6D6X.js +36 -0
  86. package/dist/chunk-34UY6D6X.js.map +7 -0
  87. package/dist/chunk-3GIK7SAA.js +109 -0
  88. package/dist/chunk-3GIK7SAA.js.map +7 -0
  89. package/dist/chunk-3JD6JSJD.js +111 -0
  90. package/dist/chunk-3JD6JSJD.js.map +7 -0
  91. package/dist/chunk-3OXOEMBS.js +123 -0
  92. package/dist/chunk-3OXOEMBS.js.map +7 -0
  93. package/dist/chunk-3R4ATE4Q.js +176 -0
  94. package/dist/chunk-3R4ATE4Q.js.map +7 -0
  95. package/dist/chunk-3TOEIHG5.js +314 -0
  96. package/dist/chunk-3TOEIHG5.js.map +7 -0
  97. package/dist/chunk-3TRKKAVT.js +130 -0
  98. package/dist/chunk-3TRKKAVT.js.map +7 -0
  99. package/dist/chunk-3UFTTK7C.js +418 -0
  100. package/dist/chunk-3UFTTK7C.js.map +7 -0
  101. package/dist/chunk-3XO6AAIC.js +25 -0
  102. package/dist/chunk-3XO6AAIC.js.map +7 -0
  103. package/dist/chunk-427SAQME.js +321 -0
  104. package/dist/chunk-427SAQME.js.map +7 -0
  105. package/dist/chunk-4CFQNJ7F.js +7 -0
  106. package/dist/chunk-4CFQNJ7F.js.map +7 -0
  107. package/dist/chunk-4COI4L2Y.js +31 -0
  108. package/dist/chunk-4COI4L2Y.js.map +7 -0
  109. package/dist/chunk-4EKKDVG3.js +1662 -0
  110. package/dist/chunk-4EKKDVG3.js.map +7 -0
  111. package/dist/chunk-4JVNTZAI.js +80 -0
  112. package/dist/chunk-4JVNTZAI.js.map +7 -0
  113. package/dist/chunk-4L2QI6AY.js +71 -0
  114. package/dist/chunk-4L2QI6AY.js.map +7 -0
  115. package/dist/chunk-4O3BEYYM.js +187 -0
  116. package/dist/chunk-4O3BEYYM.js.map +7 -0
  117. package/dist/chunk-4OXPPDV6.js +676 -0
  118. package/dist/chunk-4OXPPDV6.js.map +7 -0
  119. package/dist/chunk-4QTZHELX.js +51 -0
  120. package/dist/chunk-4QTZHELX.js.map +7 -0
  121. package/dist/chunk-4U42OJMK.js +217 -0
  122. package/dist/chunk-4U42OJMK.js.map +7 -0
  123. package/dist/chunk-4WCKVGQ5.js +193 -0
  124. package/dist/chunk-4WCKVGQ5.js.map +7 -0
  125. package/dist/chunk-4XXERLFH.js +95 -0
  126. package/dist/chunk-4XXERLFH.js.map +7 -0
  127. package/dist/chunk-4Z2N4GW6.js +247 -0
  128. package/dist/chunk-4Z2N4GW6.js.map +7 -0
  129. package/dist/chunk-4ZY2BOQ4.js +123 -0
  130. package/dist/chunk-4ZY2BOQ4.js.map +7 -0
  131. package/dist/chunk-56HN4SH6.js +46 -0
  132. package/dist/chunk-56HN4SH6.js.map +7 -0
  133. package/dist/chunk-57ROEOHB.js +183 -0
  134. package/dist/chunk-57ROEOHB.js.map +7 -0
  135. package/dist/chunk-5APBBTGW.js +7 -0
  136. package/dist/chunk-5APBBTGW.js.map +7 -0
  137. package/dist/chunk-5BQ6LLNU.js +39 -0
  138. package/dist/chunk-5BQ6LLNU.js.map +7 -0
  139. package/dist/chunk-5LNGMBWW.js +93 -0
  140. package/dist/chunk-5LNGMBWW.js.map +7 -0
  141. package/dist/chunk-5XFQSYZ4.js +52 -0
  142. package/dist/chunk-5XFQSYZ4.js.map +7 -0
  143. package/dist/chunk-62N5N4AC.js +241 -0
  144. package/dist/chunk-62N5N4AC.js.map +7 -0
  145. package/dist/chunk-63QTHDJL.js +52 -0
  146. package/dist/chunk-63QTHDJL.js.map +7 -0
  147. package/dist/chunk-65UUVZ6B.js +151 -0
  148. package/dist/chunk-65UUVZ6B.js.map +7 -0
  149. package/dist/chunk-6COVTMAO.js +3586 -0
  150. package/dist/chunk-6COVTMAO.js.map +7 -0
  151. package/dist/chunk-6EYPDJUD.js +34 -0
  152. package/dist/chunk-6EYPDJUD.js.map +7 -0
  153. package/dist/chunk-6HDYPVA4.js +15 -0
  154. package/dist/chunk-6HDYPVA4.js.map +7 -0
  155. package/dist/chunk-6HX3DEXK.js +178 -0
  156. package/dist/chunk-6HX3DEXK.js.map +7 -0
  157. package/dist/chunk-6NO5VEVV.js +18 -0
  158. package/dist/chunk-6NO5VEVV.js.map +7 -0
  159. package/dist/chunk-6OP3FK5F.js +266 -0
  160. package/dist/chunk-6OP3FK5F.js.map +7 -0
  161. package/dist/chunk-6PZGDVLR.js +465 -0
  162. package/dist/chunk-6PZGDVLR.js.map +7 -0
  163. package/dist/chunk-6RBDFNSX.js +88 -0
  164. package/dist/chunk-6RBDFNSX.js.map +7 -0
  165. package/dist/chunk-6SOGH3TW.js +163 -0
  166. package/dist/chunk-6SOGH3TW.js.map +7 -0
  167. package/dist/chunk-6TWWCETB.js +70 -0
  168. package/dist/chunk-6TWWCETB.js.map +7 -0
  169. package/dist/chunk-6WFHPMUF.js +17 -0
  170. package/dist/chunk-6WFHPMUF.js.map +7 -0
  171. package/dist/chunk-72TGY3LX.js +104 -0
  172. package/dist/chunk-72TGY3LX.js.map +7 -0
  173. package/dist/chunk-76IE55K7.js +392 -0
  174. package/dist/chunk-76IE55K7.js.map +7 -0
  175. package/dist/chunk-77BEEAPD.js +86 -0
  176. package/dist/chunk-77BEEAPD.js.map +7 -0
  177. package/dist/chunk-77JJ6QJK.js +50 -0
  178. package/dist/chunk-77JJ6QJK.js.map +7 -0
  179. package/dist/chunk-7BIUNV33.js +62 -0
  180. package/dist/chunk-7BIUNV33.js.map +7 -0
  181. package/dist/chunk-7F3242AO.js +86 -0
  182. package/dist/chunk-7F3242AO.js.map +7 -0
  183. package/dist/chunk-7FLQSTPG.js +57 -0
  184. package/dist/chunk-7FLQSTPG.js.map +7 -0
  185. package/dist/chunk-7L37R42D.js +52 -0
  186. package/dist/chunk-7L37R42D.js.map +7 -0
  187. package/dist/chunk-7MP46JBP.js +177 -0
  188. package/dist/chunk-7MP46JBP.js.map +7 -0
  189. package/dist/chunk-7MVZYR2T.js +87 -0
  190. package/dist/chunk-7MVZYR2T.js.map +7 -0
  191. package/dist/chunk-7N7ISMPG.js +50 -0
  192. package/dist/chunk-7N7ISMPG.js.map +7 -0
  193. package/dist/chunk-7S7LQQPX.js +127 -0
  194. package/dist/chunk-7S7LQQPX.js.map +7 -0
  195. package/dist/chunk-7TTNY5FK.js +21 -0
  196. package/dist/chunk-7TTNY5FK.js.map +7 -0
  197. package/dist/chunk-7W73QCTR.js +244 -0
  198. package/dist/chunk-7W73QCTR.js.map +7 -0
  199. package/dist/chunk-7XXLU33Y.js +76 -0
  200. package/dist/chunk-7XXLU33Y.js.map +7 -0
  201. package/dist/chunk-7ZP3KYVO.js +104 -0
  202. package/dist/chunk-7ZP3KYVO.js.map +7 -0
  203. package/dist/chunk-AAO7BQEV.js +258 -0
  204. package/dist/chunk-AAO7BQEV.js.map +7 -0
  205. package/dist/chunk-AH4MLRYT.js +91 -0
  206. package/dist/chunk-AH4MLRYT.js.map +7 -0
  207. package/dist/chunk-AHKR32FH.js +7 -0
  208. package/dist/chunk-AHKR32FH.js.map +7 -0
  209. package/dist/chunk-ALKRFDAW.js +94 -0
  210. package/dist/chunk-ALKRFDAW.js.map +7 -0
  211. package/dist/chunk-AQQGAE7N.js +12 -0
  212. package/dist/chunk-AQQGAE7N.js.map +7 -0
  213. package/dist/chunk-ARGF232V.js +32 -0
  214. package/dist/chunk-ARGF232V.js.map +7 -0
  215. package/dist/chunk-ATCJOK3K.js +24 -0
  216. package/dist/chunk-ATCJOK3K.js.map +7 -0
  217. package/dist/chunk-AUUABFHL.js +124 -0
  218. package/dist/chunk-AUUABFHL.js.map +7 -0
  219. package/dist/chunk-AWW3YUGJ.js +193 -0
  220. package/dist/chunk-AWW3YUGJ.js.map +7 -0
  221. package/dist/chunk-AX7VEEWJ.js +158 -0
  222. package/dist/chunk-AX7VEEWJ.js.map +7 -0
  223. package/dist/chunk-B3NTODO7.js +57 -0
  224. package/dist/chunk-B3NTODO7.js.map +7 -0
  225. package/dist/chunk-BAX7Q6GR.js +55 -0
  226. package/dist/chunk-BAX7Q6GR.js.map +7 -0
  227. package/dist/chunk-BBM6BR3Z.js +28 -0
  228. package/dist/chunk-BBM6BR3Z.js.map +7 -0
  229. package/dist/chunk-BHXZMHSX.js +109 -0
  230. package/dist/chunk-BHXZMHSX.js.map +7 -0
  231. package/dist/chunk-BIUXDLVY.js +62 -0
  232. package/dist/chunk-BIUXDLVY.js.map +7 -0
  233. package/dist/chunk-BM7J2W36.js +86 -0
  234. package/dist/chunk-BM7J2W36.js.map +7 -0
  235. package/dist/chunk-BMFZL2P4.js +97 -0
  236. package/dist/chunk-BMFZL2P4.js.map +7 -0
  237. package/dist/chunk-BQXEXK4H.js +114 -0
  238. package/dist/chunk-BQXEXK4H.js.map +7 -0
  239. package/dist/chunk-BU2CTWBG.js +30 -0
  240. package/dist/chunk-BU2CTWBG.js.map +7 -0
  241. package/dist/chunk-BVKSCLF7.js +195 -0
  242. package/dist/chunk-BVKSCLF7.js.map +7 -0
  243. package/dist/chunk-BWA3D22L.js +88 -0
  244. package/dist/chunk-BWA3D22L.js.map +7 -0
  245. package/dist/chunk-CE24RSPL.js +506 -0
  246. package/dist/chunk-CE24RSPL.js.map +7 -0
  247. package/dist/chunk-CEB5S2Z5.js +127 -0
  248. package/dist/chunk-CEB5S2Z5.js.map +7 -0
  249. package/dist/chunk-CEKNTCJD.js +177 -0
  250. package/dist/chunk-CEKNTCJD.js.map +7 -0
  251. package/dist/chunk-CETZGSCP.js +71 -0
  252. package/dist/chunk-CETZGSCP.js.map +7 -0
  253. package/dist/chunk-CGBWMONK.js +412 -0
  254. package/dist/chunk-CGBWMONK.js.map +7 -0
  255. package/dist/chunk-CGFDIH77.js +94 -0
  256. package/dist/chunk-CGFDIH77.js.map +7 -0
  257. package/dist/chunk-CPLEC5LJ.js +26 -0
  258. package/dist/chunk-CPLEC5LJ.js.map +7 -0
  259. package/dist/chunk-CPNIXMGX.js +127 -0
  260. package/dist/chunk-CPNIXMGX.js.map +7 -0
  261. package/dist/chunk-CSJO73LD.js +84 -0
  262. package/dist/chunk-CSJO73LD.js.map +7 -0
  263. package/dist/chunk-CTKBDSL6.js +81 -0
  264. package/dist/chunk-CTKBDSL6.js.map +7 -0
  265. package/dist/chunk-CY6WHUCW.js +54 -0
  266. package/dist/chunk-CY6WHUCW.js.map +7 -0
  267. package/dist/chunk-D4GYYYMW.js +155 -0
  268. package/dist/chunk-D4GYYYMW.js.map +7 -0
  269. package/dist/chunk-D64CZG54.js +78 -0
  270. package/dist/chunk-D64CZG54.js.map +7 -0
  271. package/dist/chunk-D7Q6Z74D.js +123 -0
  272. package/dist/chunk-D7Q6Z74D.js.map +7 -0
  273. package/dist/chunk-DSGPDHF2.js +737 -0
  274. package/dist/chunk-DSGPDHF2.js.map +7 -0
  275. package/dist/chunk-DZIM4OWK.js +17 -0
  276. package/dist/chunk-DZIM4OWK.js.map +7 -0
  277. package/dist/chunk-E3GC4V5V.js +30 -0
  278. package/dist/chunk-E3GC4V5V.js.map +7 -0
  279. package/dist/chunk-E5HPDHCW.js +34 -0
  280. package/dist/chunk-E5HPDHCW.js.map +7 -0
  281. package/dist/chunk-E75BJJZ2.js +635 -0
  282. package/dist/chunk-E75BJJZ2.js.map +7 -0
  283. package/dist/chunk-EBXHW7ZO.js +108 -0
  284. package/dist/chunk-EBXHW7ZO.js.map +7 -0
  285. package/dist/chunk-EE4DHUUZ.js +472 -0
  286. package/dist/chunk-EE4DHUUZ.js.map +7 -0
  287. package/dist/chunk-EHELTAAD.js +198 -0
  288. package/dist/chunk-EHELTAAD.js.map +7 -0
  289. package/dist/chunk-EKXPSI7Z.js +135 -0
  290. package/dist/chunk-EKXPSI7Z.js.map +7 -0
  291. package/dist/chunk-EO35SCFP.js +7 -0
  292. package/dist/chunk-EO35SCFP.js.map +7 -0
  293. package/dist/chunk-ER2XTD2S.js +271 -0
  294. package/dist/chunk-ER2XTD2S.js.map +7 -0
  295. package/dist/chunk-ERCH75SH.js +292 -0
  296. package/dist/chunk-ERCH75SH.js.map +7 -0
  297. package/dist/chunk-ERXO3674.js +54 -0
  298. package/dist/chunk-ERXO3674.js.map +7 -0
  299. package/dist/chunk-EVFWZGFL.js +235 -0
  300. package/dist/chunk-EVFWZGFL.js.map +7 -0
  301. package/dist/chunk-EVPBRKMZ.js +45 -0
  302. package/dist/chunk-EVPBRKMZ.js.map +7 -0
  303. package/dist/chunk-F43CC2X2.js +49 -0
  304. package/dist/chunk-F43CC2X2.js.map +7 -0
  305. package/dist/chunk-F64TXVJJ.js +158 -0
  306. package/dist/chunk-F64TXVJJ.js.map +7 -0
  307. package/dist/chunk-F6AFJHWV.js +45 -0
  308. package/dist/chunk-F6AFJHWV.js.map +7 -0
  309. package/dist/chunk-F6APWSAA.js +51 -0
  310. package/dist/chunk-F6APWSAA.js.map +7 -0
  311. package/dist/chunk-F7LNS7G3.js +235 -0
  312. package/dist/chunk-F7LNS7G3.js.map +7 -0
  313. package/dist/chunk-FCNWR7ZX.js +16352 -0
  314. package/dist/chunk-FCNWR7ZX.js.map +7 -0
  315. package/dist/chunk-FFCG5NRU.js +87 -0
  316. package/dist/chunk-FFCG5NRU.js.map +7 -0
  317. package/dist/chunk-FG4NVFKM.js +455 -0
  318. package/dist/chunk-FG4NVFKM.js.map +7 -0
  319. package/dist/chunk-FHNEN6IR.js +14 -0
  320. package/dist/chunk-FHNEN6IR.js.map +7 -0
  321. package/dist/chunk-FJFC6CRR.js +446 -0
  322. package/dist/chunk-FJFC6CRR.js.map +7 -0
  323. package/dist/chunk-FK6RGYBB.js +46 -0
  324. package/dist/chunk-FK6RGYBB.js.map +7 -0
  325. package/dist/chunk-FMY6KXK6.js +251 -0
  326. package/dist/chunk-FMY6KXK6.js.map +7 -0
  327. package/dist/chunk-FPH56SCM.js +21 -0
  328. package/dist/chunk-FPH56SCM.js.map +7 -0
  329. package/dist/chunk-FQ4R7IOX.js +32 -0
  330. package/dist/chunk-FQ4R7IOX.js.map +7 -0
  331. package/dist/chunk-FQPYAPJJ.js +124 -0
  332. package/dist/chunk-FQPYAPJJ.js.map +7 -0
  333. package/dist/chunk-FQTLJO4W.js +335 -0
  334. package/dist/chunk-FQTLJO4W.js.map +7 -0
  335. package/dist/chunk-FVLJSB2W.js +124 -0
  336. package/dist/chunk-FVLJSB2W.js.map +7 -0
  337. package/dist/chunk-FVSH4Z6T.js +173 -0
  338. package/dist/chunk-FVSH4Z6T.js.map +7 -0
  339. package/dist/chunk-FVWBLEAD.js +44 -0
  340. package/dist/chunk-FVWBLEAD.js.map +7 -0
  341. package/dist/chunk-FYRKBNTI.js +18 -0
  342. package/dist/chunk-FYRKBNTI.js.map +7 -0
  343. package/dist/chunk-FYSARMGS.js +93 -0
  344. package/dist/chunk-FYSARMGS.js.map +7 -0
  345. package/dist/chunk-FZJOJ6P4.js +28 -0
  346. package/dist/chunk-FZJOJ6P4.js.map +7 -0
  347. package/dist/chunk-G46GHNDU.js +4890 -0
  348. package/dist/chunk-G46GHNDU.js.map +7 -0
  349. package/dist/chunk-G4TIS2SC.js +56 -0
  350. package/dist/chunk-G4TIS2SC.js.map +7 -0
  351. package/dist/chunk-GD6L3SLC.js +30 -0
  352. package/dist/chunk-GD6L3SLC.js.map +7 -0
  353. package/dist/chunk-GGWS7NQP.js +247 -0
  354. package/dist/chunk-GGWS7NQP.js.map +7 -0
  355. package/dist/chunk-GI2ZANRY.js +24 -0
  356. package/dist/chunk-GI2ZANRY.js.map +7 -0
  357. package/dist/chunk-GK3XVKXT.js +737 -0
  358. package/dist/chunk-GK3XVKXT.js.map +7 -0
  359. package/dist/chunk-GKOWCDQV.js +699 -0
  360. package/dist/chunk-GKOWCDQV.js.map +7 -0
  361. package/dist/chunk-GLLRCKKE.js +26 -0
  362. package/dist/chunk-GLLRCKKE.js.map +7 -0
  363. package/dist/chunk-GNYG6I36.js +175 -0
  364. package/dist/chunk-GNYG6I36.js.map +7 -0
  365. package/dist/chunk-GRBJYAYF.js +129 -0
  366. package/dist/chunk-GRBJYAYF.js.map +7 -0
  367. package/dist/chunk-GVYGUH2V.js +7 -0
  368. package/dist/chunk-GVYGUH2V.js.map +7 -0
  369. package/dist/chunk-GXDQGBA2.js +106 -0
  370. package/dist/chunk-GXDQGBA2.js.map +7 -0
  371. package/dist/chunk-GZAGAWSU.js +28 -0
  372. package/dist/chunk-GZAGAWSU.js.map +7 -0
  373. package/dist/chunk-H23E72SB.js +163 -0
  374. package/dist/chunk-H23E72SB.js.map +7 -0
  375. package/dist/chunk-H2HY73I6.js +122 -0
  376. package/dist/chunk-H2HY73I6.js.map +7 -0
  377. package/dist/chunk-H5MLA6PA.js +29 -0
  378. package/dist/chunk-H5MLA6PA.js.map +7 -0
  379. package/dist/chunk-H6YVV7GE.js +22 -0
  380. package/dist/chunk-H6YVV7GE.js.map +7 -0
  381. package/dist/chunk-H7KAUMBC.js +635 -0
  382. package/dist/chunk-H7KAUMBC.js.map +7 -0
  383. package/dist/chunk-HDPICD3P.js +4890 -0
  384. package/dist/chunk-HDPICD3P.js.map +7 -0
  385. package/dist/chunk-HGHU3TVL.js +174 -0
  386. package/dist/chunk-HGHU3TVL.js.map +7 -0
  387. package/dist/chunk-HJ5E2JRL.js +88 -0
  388. package/dist/chunk-HJ5E2JRL.js.map +7 -0
  389. package/dist/chunk-HJW3CKZL.js +94 -0
  390. package/dist/chunk-HJW3CKZL.js.map +7 -0
  391. package/dist/chunk-HKF5EBER.js +418 -0
  392. package/dist/chunk-HKF5EBER.js.map +7 -0
  393. package/dist/chunk-HLUR35G5.js +30 -0
  394. package/dist/chunk-HLUR35G5.js.map +7 -0
  395. package/dist/chunk-HNIW2NZU.js +120 -0
  396. package/dist/chunk-HNIW2NZU.js.map +7 -0
  397. package/dist/chunk-HP5HMWOM.js +123 -0
  398. package/dist/chunk-HP5HMWOM.js.map +7 -0
  399. package/dist/chunk-HQSHS6IB.js +88 -0
  400. package/dist/chunk-HQSHS6IB.js.map +7 -0
  401. package/dist/chunk-HSXRCP25.js +171 -0
  402. package/dist/chunk-HSXRCP25.js.map +7 -0
  403. package/dist/chunk-HTV3R73W.js +51 -0
  404. package/dist/chunk-HTV3R73W.js.map +7 -0
  405. package/dist/chunk-I26OPZLO.js +28 -0
  406. package/dist/chunk-I26OPZLO.js.map +7 -0
  407. package/dist/chunk-I7JJQ4BQ.js +30 -0
  408. package/dist/chunk-I7JJQ4BQ.js.map +7 -0
  409. package/dist/chunk-IJ6Y4W7F.js +392 -0
  410. package/dist/chunk-IJ6Y4W7F.js.map +7 -0
  411. package/dist/chunk-IJCMYMZB.js +239 -0
  412. package/dist/chunk-IJCMYMZB.js.map +7 -0
  413. package/dist/chunk-IJH4NOQ4.js +18 -0
  414. package/dist/chunk-IJH4NOQ4.js.map +7 -0
  415. package/dist/chunk-IMHRZQRH.js +76 -0
  416. package/dist/chunk-IMHRZQRH.js.map +7 -0
  417. package/dist/chunk-INNENDEE.js +472 -0
  418. package/dist/chunk-INNENDEE.js.map +7 -0
  419. package/dist/chunk-IOTLSMEQ.js +177 -0
  420. package/dist/chunk-IOTLSMEQ.js.map +7 -0
  421. package/dist/chunk-IQYYEHSM.js +300 -0
  422. package/dist/chunk-IQYYEHSM.js.map +7 -0
  423. package/dist/chunk-IRA5NJ4Q.js +21 -0
  424. package/dist/chunk-IRA5NJ4Q.js.map +7 -0
  425. package/dist/chunk-IU7EXXK7.js +1662 -0
  426. package/dist/chunk-IU7EXXK7.js.map +7 -0
  427. package/dist/chunk-IUXAKDAY.js +102 -0
  428. package/dist/chunk-IUXAKDAY.js.map +7 -0
  429. package/dist/chunk-JB6ZQEVR.js +465 -0
  430. package/dist/chunk-JB6ZQEVR.js.map +7 -0
  431. package/dist/chunk-JCWNMWNY.js +102 -0
  432. package/dist/chunk-JCWNMWNY.js.map +7 -0
  433. package/dist/chunk-JGIZPU2Y.js +39 -0
  434. package/dist/chunk-JGIZPU2Y.js.map +7 -0
  435. package/dist/chunk-JIU4FXA7.js +485 -0
  436. package/dist/chunk-JIU4FXA7.js.map +7 -0
  437. package/dist/chunk-JMYIFYY5.js +233 -0
  438. package/dist/chunk-JMYIFYY5.js.map +7 -0
  439. package/dist/chunk-JSZBX2TA.js +5853 -0
  440. package/dist/chunk-JSZBX2TA.js.map +7 -0
  441. package/dist/chunk-JU2Y33DB.js +60 -0
  442. package/dist/chunk-JU2Y33DB.js.map +7 -0
  443. package/dist/chunk-JVLRI4RU.js +62 -0
  444. package/dist/chunk-JVLRI4RU.js.map +7 -0
  445. package/dist/chunk-JZ3AVNZC.js +44117 -0
  446. package/dist/chunk-JZ3AVNZC.js.map +7 -0
  447. package/dist/chunk-K3HEWOHN.js +30 -0
  448. package/dist/chunk-K3HEWOHN.js.map +7 -0
  449. package/dist/chunk-K5EK4WZV.js +7 -0
  450. package/dist/chunk-K5EK4WZV.js.map +7 -0
  451. package/dist/chunk-KAWXMSYC.js +58 -0
  452. package/dist/chunk-KAWXMSYC.js.map +7 -0
  453. package/dist/chunk-KEGPHS4C.js +80 -0
  454. package/dist/chunk-KEGPHS4C.js.map +7 -0
  455. package/dist/chunk-KHFWQ334.js +138 -0
  456. package/dist/chunk-KHFWQ334.js.map +7 -0
  457. package/dist/chunk-KJW6JLM6.js +95 -0
  458. package/dist/chunk-KJW6JLM6.js.map +7 -0
  459. package/dist/chunk-KSEANSJE.js +40 -0
  460. package/dist/chunk-KSEANSJE.js.map +7 -0
  461. package/dist/chunk-KVU54E6W.js +63 -0
  462. package/dist/chunk-KVU54E6W.js.map +7 -0
  463. package/dist/chunk-KXXVR3DC.js +244 -0
  464. package/dist/chunk-KXXVR3DC.js.map +7 -0
  465. package/dist/chunk-L5OUVMHK.js +174 -0
  466. package/dist/chunk-L5OUVMHK.js.map +7 -0
  467. package/dist/chunk-L5T6XUDP.js +412 -0
  468. package/dist/chunk-L5T6XUDP.js.map +7 -0
  469. package/dist/chunk-LIFXTQ4U.js +7287 -0
  470. package/dist/chunk-LIFXTQ4U.js.map +7 -0
  471. package/dist/chunk-LIVQ7GIO.js +86 -0
  472. package/dist/chunk-LIVQ7GIO.js.map +7 -0
  473. package/dist/chunk-LMD5UTKM.js +169 -0
  474. package/dist/chunk-LMD5UTKM.js.map +7 -0
  475. package/dist/chunk-LO4F6E3N.js +163 -0
  476. package/dist/chunk-LO4F6E3N.js.map +7 -0
  477. package/dist/chunk-LSVKDUNM.js +151 -0
  478. package/dist/chunk-LSVKDUNM.js.map +7 -0
  479. package/dist/chunk-LTXNC6JX.js +27 -0
  480. package/dist/chunk-LTXNC6JX.js.map +7 -0
  481. package/dist/chunk-LUGTGPT6.js +138 -0
  482. package/dist/chunk-LUGTGPT6.js.map +7 -0
  483. package/dist/chunk-LVMK2GPM.js +18 -0
  484. package/dist/chunk-LVMK2GPM.js.map +7 -0
  485. package/dist/chunk-LXVPETLK.js +1405 -0
  486. package/dist/chunk-LXVPETLK.js.map +7 -0
  487. package/dist/chunk-LZNW24OB.js +78 -0
  488. package/dist/chunk-LZNW24OB.js.map +7 -0
  489. package/dist/chunk-LZQFDJNW.js +300 -0
  490. package/dist/chunk-LZQFDJNW.js.map +7 -0
  491. package/dist/chunk-M4VQPIF4.js +5853 -0
  492. package/dist/chunk-M4VQPIF4.js.map +7 -0
  493. package/dist/chunk-M64QE4QC.js +64 -0
  494. package/dist/chunk-M64QE4QC.js.map +7 -0
  495. package/dist/chunk-MAF6PSCJ.js +44 -0
  496. package/dist/chunk-MAF6PSCJ.js.map +7 -0
  497. package/dist/chunk-MBIX6Z7U.js +80 -0
  498. package/dist/chunk-MBIX6Z7U.js.map +7 -0
  499. package/dist/chunk-MDLLXMC3.js +183 -0
  500. package/dist/chunk-MDLLXMC3.js.map +7 -0
  501. package/dist/chunk-MEI5HTWV.js +127 -0
  502. package/dist/chunk-MEI5HTWV.js.map +7 -0
  503. package/dist/chunk-MH74AJ3A.js +82 -0
  504. package/dist/chunk-MH74AJ3A.js.map +7 -0
  505. package/dist/chunk-MIFIM4PI.js +163 -0
  506. package/dist/chunk-MIFIM4PI.js.map +7 -0
  507. package/dist/chunk-MISZB5QJ.js +22 -0
  508. package/dist/chunk-MISZB5QJ.js.map +7 -0
  509. package/dist/chunk-MJ27XQYG.js +125 -0
  510. package/dist/chunk-MJ27XQYG.js.map +7 -0
  511. package/dist/chunk-MJ2GW6SU.js +163 -0
  512. package/dist/chunk-MJ2GW6SU.js.map +7 -0
  513. package/dist/chunk-MLQY5SKR.js +52 -0
  514. package/dist/chunk-MLQY5SKR.js.map +7 -0
  515. package/dist/chunk-MTMHGC3G.js +39 -0
  516. package/dist/chunk-MTMHGC3G.js.map +7 -0
  517. package/dist/chunk-MWBAW3YV.js +244 -0
  518. package/dist/chunk-MWBAW3YV.js.map +7 -0
  519. package/dist/chunk-MYSK3SIM.js +55 -0
  520. package/dist/chunk-MYSK3SIM.js.map +7 -0
  521. package/dist/chunk-MZGGB2YT.js +50 -0
  522. package/dist/chunk-MZGGB2YT.js.map +7 -0
  523. package/dist/chunk-N46MIZXB.js +154 -0
  524. package/dist/chunk-N46MIZXB.js.map +7 -0
  525. package/dist/chunk-N53537P6.js +31 -0
  526. package/dist/chunk-N53537P6.js.map +7 -0
  527. package/dist/chunk-N5CTFOLX.js +40 -0
  528. package/dist/chunk-N5CTFOLX.js.map +7 -0
  529. package/dist/chunk-N5SNGZJV.js +217 -0
  530. package/dist/chunk-N5SNGZJV.js.map +7 -0
  531. package/dist/chunk-NGCTBYQ3.js +181 -0
  532. package/dist/chunk-NGCTBYQ3.js.map +7 -0
  533. package/dist/chunk-NIFG55CE.js +52 -0
  534. package/dist/chunk-NIFG55CE.js.map +7 -0
  535. package/dist/chunk-NJ63ALPX.js +7 -0
  536. package/dist/chunk-NJ63ALPX.js.map +7 -0
  537. package/dist/chunk-NMUX7SGU.js +676 -0
  538. package/dist/chunk-NMUX7SGU.js.map +7 -0
  539. package/dist/chunk-NO7GMLNU.js +292 -0
  540. package/dist/chunk-NO7GMLNU.js.map +7 -0
  541. package/dist/chunk-NTOGVX2Y.js +92 -0
  542. package/dist/chunk-NTOGVX2Y.js.map +7 -0
  543. package/dist/chunk-NZVHE4IT.js +3101 -0
  544. package/dist/chunk-NZVHE4IT.js.map +7 -0
  545. package/dist/chunk-O5IVKDX7.js +30 -0
  546. package/dist/chunk-O5IVKDX7.js.map +7 -0
  547. package/dist/chunk-O7ORICEC.js +82 -0
  548. package/dist/chunk-O7ORICEC.js.map +7 -0
  549. package/dist/chunk-OBMBAM3N.js +73 -0
  550. package/dist/chunk-OBMBAM3N.js.map +7 -0
  551. package/dist/chunk-OFWMLQMU.js +7287 -0
  552. package/dist/chunk-OFWMLQMU.js.map +7 -0
  553. package/dist/chunk-OJ3ZUKBI.js +73 -0
  554. package/dist/chunk-OJ3ZUKBI.js.map +7 -0
  555. package/dist/chunk-OJJBD5K3.js +45 -0
  556. package/dist/chunk-OJJBD5K3.js.map +7 -0
  557. package/dist/chunk-OJTHE4B7.js +50 -0
  558. package/dist/chunk-OJTHE4B7.js.map +7 -0
  559. package/dist/chunk-OKDOVX4B.js +699 -0
  560. package/dist/chunk-OKDOVX4B.js.map +7 -0
  561. package/dist/chunk-OOYPYBTA.js +446 -0
  562. package/dist/chunk-OOYPYBTA.js.map +7 -0
  563. package/dist/chunk-OQP4W4AR.js +105 -0
  564. package/dist/chunk-OQP4W4AR.js.map +7 -0
  565. package/dist/chunk-OVMDMCZ5.js +241 -0
  566. package/dist/chunk-OVMDMCZ5.js.map +7 -0
  567. package/dist/chunk-OVTT2EKA.js +516 -0
  568. package/dist/chunk-OVTT2EKA.js.map +7 -0
  569. package/dist/chunk-OVU43GJK.js +63 -0
  570. package/dist/chunk-OVU43GJK.js.map +7 -0
  571. package/dist/chunk-P3TMARA6.js +18 -0
  572. package/dist/chunk-P3TMARA6.js.map +7 -0
  573. package/dist/chunk-P5N63LBS.js +94 -0
  574. package/dist/chunk-P5N63LBS.js.map +7 -0
  575. package/dist/chunk-PARITZ7F.js +28 -0
  576. package/dist/chunk-PARITZ7F.js.map +7 -0
  577. package/dist/chunk-PBQK4KY4.js +195 -0
  578. package/dist/chunk-PBQK4KY4.js.map +7 -0
  579. package/dist/chunk-PLMOTQ42.js +335 -0
  580. package/dist/chunk-PLMOTQ42.js.map +7 -0
  581. package/dist/chunk-PSL2AHIA.js +27 -0
  582. package/dist/chunk-PSL2AHIA.js.map +7 -0
  583. package/dist/chunk-Q5QT7JBM.js +92 -0
  584. package/dist/chunk-Q5QT7JBM.js.map +7 -0
  585. package/dist/chunk-Q6H5OV2R.js +180 -0
  586. package/dist/chunk-Q6H5OV2R.js.map +7 -0
  587. package/dist/chunk-Q7WA5DCR.js +62 -0
  588. package/dist/chunk-Q7WA5DCR.js.map +7 -0
  589. package/dist/chunk-QAR5POXD.js +472 -0
  590. package/dist/chunk-QAR5POXD.js.map +7 -0
  591. package/dist/chunk-QATEENP2.js +7 -0
  592. package/dist/chunk-QATEENP2.js.map +7 -0
  593. package/dist/chunk-QDT24CIA.js +485 -0
  594. package/dist/chunk-QDT24CIA.js.map +7 -0
  595. package/dist/chunk-QI3NB7D5.js +455 -0
  596. package/dist/chunk-QI3NB7D5.js.map +7 -0
  597. package/dist/chunk-QIDAVXSX.js +106 -0
  598. package/dist/chunk-QIDAVXSX.js.map +7 -0
  599. package/dist/chunk-QKIGQVP2.js +104 -0
  600. package/dist/chunk-QKIGQVP2.js.map +7 -0
  601. package/dist/chunk-QNJENPK2.js +81 -0
  602. package/dist/chunk-QNJENPK2.js.map +7 -0
  603. package/dist/chunk-R5S76YR5.js +12 -0
  604. package/dist/chunk-R5S76YR5.js.map +7 -0
  605. package/dist/chunk-R7ZBOXPS.js +163 -0
  606. package/dist/chunk-R7ZBOXPS.js.map +7 -0
  607. package/dist/chunk-RAL3KX76.js +239 -0
  608. package/dist/chunk-RAL3KX76.js.map +7 -0
  609. package/dist/chunk-REVXXWAS.js +31 -0
  610. package/dist/chunk-REVXXWAS.js.map +7 -0
  611. package/dist/chunk-RFH4HRZP.js +94 -0
  612. package/dist/chunk-RFH4HRZP.js.map +7 -0
  613. package/dist/chunk-RHITG64O.js +50 -0
  614. package/dist/chunk-RHITG64O.js.map +7 -0
  615. package/dist/chunk-RK5HZFP6.js +111 -0
  616. package/dist/chunk-RK5HZFP6.js.map +7 -0
  617. package/dist/chunk-RNGAGYCL.js +49 -0
  618. package/dist/chunk-RNGAGYCL.js.map +7 -0
  619. package/dist/chunk-RPCVN3JA.js +261 -0
  620. package/dist/chunk-RPCVN3JA.js.map +7 -0
  621. package/dist/chunk-RQ26XXFS.js +45 -0
  622. package/dist/chunk-RQ26XXFS.js.map +7 -0
  623. package/dist/chunk-RQQE5DDT.js +193 -0
  624. package/dist/chunk-RQQE5DDT.js.map +7 -0
  625. package/dist/chunk-RSA7PKZH.js +187 -0
  626. package/dist/chunk-RSA7PKZH.js.map +7 -0
  627. package/dist/chunk-RTSINQ4T.js +78 -0
  628. package/dist/chunk-RTSINQ4T.js.map +7 -0
  629. package/dist/chunk-RVOD3ESA.js +38 -0
  630. package/dist/chunk-RVOD3ESA.js.map +7 -0
  631. package/dist/chunk-SAOUP24A.js +70 -0
  632. package/dist/chunk-SAOUP24A.js.map +7 -0
  633. package/dist/chunk-SFZL2TCV.js +55 -0
  634. package/dist/chunk-SFZL2TCV.js.map +7 -0
  635. package/dist/chunk-SH6Y4CGQ.js +175 -0
  636. package/dist/chunk-SH6Y4CGQ.js.map +7 -0
  637. package/dist/chunk-SHBAAFFH.js +74 -0
  638. package/dist/chunk-SHBAAFFH.js.map +7 -0
  639. package/dist/chunk-SJPFUXBV.js +45 -0
  640. package/dist/chunk-SJPFUXBV.js.map +7 -0
  641. package/dist/chunk-SLIUQWAR.js +58 -0
  642. package/dist/chunk-SLIUQWAR.js.map +7 -0
  643. package/dist/chunk-SPNSM6SB.js +36 -0
  644. package/dist/chunk-SPNSM6SB.js.map +7 -0
  645. package/dist/chunk-SQUHLLK5.js +125 -0
  646. package/dist/chunk-SQUHLLK5.js.map +7 -0
  647. package/dist/chunk-SSEX66OL.js +39 -0
  648. package/dist/chunk-SSEX66OL.js.map +7 -0
  649. package/dist/chunk-SWWK35VQ.js +84 -0
  650. package/dist/chunk-SWWK35VQ.js.map +7 -0
  651. package/dist/chunk-SX2LOHOX.js +251 -0
  652. package/dist/chunk-SX2LOHOX.js.map +7 -0
  653. package/dist/chunk-T72EMFTX.js +74 -0
  654. package/dist/chunk-T72EMFTX.js.map +7 -0
  655. package/dist/chunk-TA2QJPPG.js +169 -0
  656. package/dist/chunk-TA2QJPPG.js.map +7 -0
  657. package/dist/chunk-TC5ZVFV6.js +292 -0
  658. package/dist/chunk-TC5ZVFV6.js.map +7 -0
  659. package/dist/chunk-TFD7ZIYD.js +105 -0
  660. package/dist/chunk-TFD7ZIYD.js.map +7 -0
  661. package/dist/chunk-TFEETDNY.js +78 -0
  662. package/dist/chunk-TFEETDNY.js.map +7 -0
  663. package/dist/chunk-TH6ONRWT.js +516 -0
  664. package/dist/chunk-TH6ONRWT.js.map +7 -0
  665. package/dist/chunk-THM2QV25.js +108 -0
  666. package/dist/chunk-THM2QV25.js.map +7 -0
  667. package/dist/chunk-TMQMQ67T.js +81 -0
  668. package/dist/chunk-TMQMQ67T.js.map +7 -0
  669. package/dist/chunk-TPYWUZOR.js +178 -0
  670. package/dist/chunk-TPYWUZOR.js.map +7 -0
  671. package/dist/chunk-TRWT2N6Z.js +15 -0
  672. package/dist/chunk-TRWT2N6Z.js.map +7 -0
  673. package/dist/chunk-TTXEM54Y.js +76 -0
  674. package/dist/chunk-TTXEM54Y.js.map +7 -0
  675. package/dist/chunk-U2O4LE6S.js +22 -0
  676. package/dist/chunk-U2O4LE6S.js.map +7 -0
  677. package/dist/chunk-U44IVNP2.js +91 -0
  678. package/dist/chunk-U44IVNP2.js.map +7 -0
  679. package/dist/chunk-U4LVIY5F.js +1405 -0
  680. package/dist/chunk-U4LVIY5F.js.map +7 -0
  681. package/dist/chunk-U767LCSG.js +78 -0
  682. package/dist/chunk-U767LCSG.js.map +7 -0
  683. package/dist/chunk-U7GKLHU6.js +120 -0
  684. package/dist/chunk-U7GKLHU6.js.map +7 -0
  685. package/dist/chunk-UAB5P5QO.js +60 -0
  686. package/dist/chunk-UAB5P5QO.js.map +7 -0
  687. package/dist/chunk-UDDWLWKZ.js +82 -0
  688. package/dist/chunk-UDDWLWKZ.js.map +7 -0
  689. package/dist/chunk-UEHPJQBL.js +38 -0
  690. package/dist/chunk-UEHPJQBL.js.map +7 -0
  691. package/dist/chunk-UIBV6IGR.js +31 -0
  692. package/dist/chunk-UIBV6IGR.js.map +7 -0
  693. package/dist/chunk-UIYFRUET.js +16352 -0
  694. package/dist/chunk-UIYFRUET.js.map +7 -0
  695. package/dist/chunk-UJS3TIVS.js +52 -0
  696. package/dist/chunk-UJS3TIVS.js.map +7 -0
  697. package/dist/chunk-UMMPB6FL.js +506 -0
  698. package/dist/chunk-UMMPB6FL.js.map +7 -0
  699. package/dist/chunk-UP42ACP7.js +27 -0
  700. package/dist/chunk-UP42ACP7.js.map +7 -0
  701. package/dist/chunk-UPEF7ETP.js +92 -0
  702. package/dist/chunk-UPEF7ETP.js.map +7 -0
  703. package/dist/chunk-UU5PSBSI.js +176 -0
  704. package/dist/chunk-UU5PSBSI.js.map +7 -0
  705. package/dist/chunk-UV63XYFU.js +173 -0
  706. package/dist/chunk-UV63XYFU.js.map +7 -0
  707. package/dist/chunk-UWPHOAOC.js +29 -0
  708. package/dist/chunk-UWPHOAOC.js.map +7 -0
  709. package/dist/chunk-UXDDOSJC.js +52 -0
  710. package/dist/chunk-UXDDOSJC.js.map +7 -0
  711. package/dist/chunk-V3VAOMCO.js +465 -0
  712. package/dist/chunk-V3VAOMCO.js.map +7 -0
  713. package/dist/chunk-VA7ENH2S.js +38 -0
  714. package/dist/chunk-VA7ENH2S.js.map +7 -0
  715. package/dist/chunk-VBDLTKI2.js +130 -0
  716. package/dist/chunk-VBDLTKI2.js.map +7 -0
  717. package/dist/chunk-VCWIKEJ7.js +7 -0
  718. package/dist/chunk-VCWIKEJ7.js.map +7 -0
  719. package/dist/chunk-VFPDFLVE.js +516 -0
  720. package/dist/chunk-VFPDFLVE.js.map +7 -0
  721. package/dist/chunk-VHG4FNIJ.js +93 -0
  722. package/dist/chunk-VHG4FNIJ.js.map +7 -0
  723. package/dist/chunk-VKOO6MIZ.js +51 -0
  724. package/dist/chunk-VKOO6MIZ.js.map +7 -0
  725. package/dist/chunk-VKXKRZG7.js +62 -0
  726. package/dist/chunk-VKXKRZG7.js.map +7 -0
  727. package/dist/chunk-VPQICZQR.js +93 -0
  728. package/dist/chunk-VPQICZQR.js.map +7 -0
  729. package/dist/chunk-VRBJNFPL.js +114 -0
  730. package/dist/chunk-VRBJNFPL.js.map +7 -0
  731. package/dist/chunk-VUOLPEUZ.js +7 -0
  732. package/dist/chunk-VUOLPEUZ.js.map +7 -0
  733. package/dist/chunk-VUU5KFH3.js +38 -0
  734. package/dist/chunk-VUU5KFH3.js.map +7 -0
  735. package/dist/chunk-VVBL5CFF.js +7 -0
  736. package/dist/chunk-VVBL5CFF.js.map +7 -0
  737. package/dist/chunk-VYZEQ6KY.js +22 -0
  738. package/dist/chunk-VYZEQ6KY.js.map +7 -0
  739. package/dist/chunk-W6SOBS7M.js +138 -0
  740. package/dist/chunk-W6SOBS7M.js.map +7 -0
  741. package/dist/chunk-WBPQVWSU.js +198 -0
  742. package/dist/chunk-WBPQVWSU.js.map +7 -0
  743. package/dist/chunk-WDOKKRTE.js +7 -0
  744. package/dist/chunk-WDOKKRTE.js.map +7 -0
  745. package/dist/chunk-WGXXKFN5.js +7 -0
  746. package/dist/chunk-WGXXKFN5.js.map +7 -0
  747. package/dist/chunk-WHPUUP3J.js +25 -0
  748. package/dist/chunk-WHPUUP3J.js.map +7 -0
  749. package/dist/chunk-WS6HWBKT.js +30 -0
  750. package/dist/chunk-WS6HWBKT.js.map +7 -0
  751. package/dist/chunk-XF7LD6VV.js +122 -0
  752. package/dist/chunk-XF7LD6VV.js.map +7 -0
  753. package/dist/chunk-XFTXM3RE.js +64 -0
  754. package/dist/chunk-XFTXM3RE.js.map +7 -0
  755. package/dist/chunk-XJABPO2T.js +235 -0
  756. package/dist/chunk-XJABPO2T.js.map +7 -0
  757. package/dist/chunk-XK6VF3H7.js +3586 -0
  758. package/dist/chunk-XK6VF3H7.js.map +7 -0
  759. package/dist/chunk-XOZPOHLG.js +233 -0
  760. package/dist/chunk-XOZPOHLG.js.map +7 -0
  761. package/dist/chunk-XQYIIPOJ.js +266 -0
  762. package/dist/chunk-XQYIIPOJ.js.map +7 -0
  763. package/dist/chunk-XR7DPSNX.js +195 -0
  764. package/dist/chunk-XR7DPSNX.js.map +7 -0
  765. package/dist/chunk-XYH4JC3U.js +7 -0
  766. package/dist/chunk-XYH4JC3U.js.map +7 -0
  767. package/dist/chunk-XZSAN55E.js +58 -0
  768. package/dist/chunk-XZSAN55E.js.map +7 -0
  769. package/dist/chunk-Y3KJR4OG.js +64 -0
  770. package/dist/chunk-Y3KJR4OG.js.map +7 -0
  771. package/dist/chunk-Y4JKH7FF.js +45 -0
  772. package/dist/chunk-Y4JKH7FF.js.map +7 -0
  773. package/dist/chunk-Y6CJN4ID.js +31 -0
  774. package/dist/chunk-Y6CJN4ID.js.map +7 -0
  775. package/dist/chunk-YABGJU5M.js +271 -0
  776. package/dist/chunk-YABGJU5M.js.map +7 -0
  777. package/dist/chunk-YB5UCHLN.js +314 -0
  778. package/dist/chunk-YB5UCHLN.js.map +7 -0
  779. package/dist/chunk-YEJH7ZC2.js +34 -0
  780. package/dist/chunk-YEJH7ZC2.js.map +7 -0
  781. package/dist/chunk-YF5DYD3X.js +97 -0
  782. package/dist/chunk-YF5DYD3X.js.map +7 -0
  783. package/dist/chunk-YFTE4H54.js +44117 -0
  784. package/dist/chunk-YFTE4H54.js.map +7 -0
  785. package/dist/chunk-YGVQZCE7.js +30 -0
  786. package/dist/chunk-YGVQZCE7.js.map +7 -0
  787. package/dist/chunk-YNHADHHS.js +138 -0
  788. package/dist/chunk-YNHADHHS.js.map +7 -0
  789. package/dist/chunk-YNJYMD43.js +392 -0
  790. package/dist/chunk-YNJYMD43.js.map +7 -0
  791. package/dist/chunk-YNYEQGVN.js +251 -0
  792. package/dist/chunk-YNYEQGVN.js.map +7 -0
  793. package/dist/chunk-YOAMBAM2.js +70 -0
  794. package/dist/chunk-YOAMBAM2.js.map +7 -0
  795. package/dist/chunk-YUPBD27Z.js +70 -0
  796. package/dist/chunk-YUPBD27Z.js.map +7 -0
  797. package/dist/chunk-YWE5AQPZ.js +258 -0
  798. package/dist/chunk-YWE5AQPZ.js.map +7 -0
  799. package/dist/chunk-YWHH3MB6.js +1405 -0
  800. package/dist/chunk-YWHH3MB6.js.map +7 -0
  801. package/dist/chunk-YXJ52FD5.js +271 -0
  802. package/dist/chunk-YXJ52FD5.js.map +7 -0
  803. package/dist/chunk-YZ6F5N7R.js +455 -0
  804. package/dist/chunk-YZ6F5N7R.js.map +7 -0
  805. package/dist/chunk-YZGORRQN.js +3101 -0
  806. package/dist/chunk-YZGORRQN.js.map +7 -0
  807. package/dist/chunk-Z6IVJ6ZW.js +30 -0
  808. package/dist/chunk-Z6IVJ6ZW.js.map +7 -0
  809. package/dist/chunk-ZFC44XJJ.js +86 -0
  810. package/dist/chunk-ZFC44XJJ.js.map +7 -0
  811. package/dist/chunk-ZFGRQIB6.js +38 -0
  812. package/dist/chunk-ZFGRQIB6.js.map +7 -0
  813. package/dist/chunk-ZGAUVPAB.js +14 -0
  814. package/dist/chunk-ZGAUVPAB.js.map +7 -0
  815. package/dist/chunk-ZGCATLM5.js +18 -0
  816. package/dist/chunk-ZGCATLM5.js.map +7 -0
  817. package/dist/chunk-ZJDJC5TP.js +82 -0
  818. package/dist/chunk-ZJDJC5TP.js.map +7 -0
  819. package/dist/chunk-ZJGZNPDK.js +171 -0
  820. package/dist/chunk-ZJGZNPDK.js.map +7 -0
  821. package/dist/chunk-ZJHBJWZX.js +699 -0
  822. package/dist/chunk-ZJHBJWZX.js.map +7 -0
  823. package/dist/chunk-ZNOTD65D.js +95 -0
  824. package/dist/chunk-ZNOTD65D.js.map +7 -0
  825. package/dist/chunk-ZQ2QIFXW.js +122 -0
  826. package/dist/chunk-ZQ2QIFXW.js.map +7 -0
  827. package/dist/chunk-ZRMXPQGY.js +241 -0
  828. package/dist/chunk-ZRMXPQGY.js.map +7 -0
  829. package/dist/chunk-ZSOPE7DO.js +92 -0
  830. package/dist/chunk-ZSOPE7DO.js.map +7 -0
  831. package/dist/chunk-ZVEE5IDC.js +3101 -0
  832. package/dist/chunk-ZVEE5IDC.js.map +7 -0
  833. package/dist/chunk-ZY247PXY.js +135 -0
  834. package/dist/chunk-ZY247PXY.js.map +7 -0
  835. package/dist/cli-metadata.js +12 -0
  836. package/dist/cli-metadata.js.map +7 -0
  837. package/dist/contract-api.js +104 -0
  838. package/dist/contract-api.js.map +7 -0
  839. package/dist/dist-DVBXHDB4.js +549 -0
  840. package/dist/dist-DVBXHDB4.js.map +7 -0
  841. package/dist/dist-F3K7S5SS.js +549 -0
  842. package/dist/dist-F3K7S5SS.js.map +7 -0
  843. package/dist/helper-api.js +51 -0
  844. package/dist/helper-api.js.map +7 -0
  845. package/dist/index.js +70 -0
  846. package/dist/index.js.map +7 -0
  847. package/dist/magic-string.es-ITIPPYGW.js +1315 -0
  848. package/dist/magic-string.es-ITIPPYGW.js.map +7 -0
  849. package/dist/magic-string.es-V5NOGTUV.js +1315 -0
  850. package/dist/magic-string.es-V5NOGTUV.js.map +7 -0
  851. package/dist/openclaw.plugin.json +23 -0
  852. package/dist/package.json +59 -0
  853. package/dist/plugin-entry.handlers.runtime-JLRK5XTV.js +20 -0
  854. package/dist/plugin-entry.handlers.runtime-JLRK5XTV.js.map +7 -0
  855. package/dist/plugin-entry.handlers.runtime-POD4CSHM.js +20 -0
  856. package/dist/plugin-entry.handlers.runtime-POD4CSHM.js.map +7 -0
  857. package/dist/plugin-entry.handlers.runtime-YOSG6V6U.js +20 -0
  858. package/dist/plugin-entry.handlers.runtime-YOSG6V6U.js.map +7 -0
  859. package/dist/runtime-api.js +104 -0
  860. package/dist/runtime-api.js.map +7 -0
  861. package/dist/rust-crypto-7KS7OJ3F.js +5323 -0
  862. package/dist/rust-crypto-7KS7OJ3F.js.map +7 -0
  863. package/dist/rust-crypto-H35BXWUU.js +5323 -0
  864. package/dist/rust-crypto-H35BXWUU.js.map +7 -0
  865. package/dist/secret-contract-api.js +18 -0
  866. package/dist/secret-contract-api.js.map +7 -0
  867. package/dist/setup-entry.js +22 -0
  868. package/dist/setup-entry.js.map +7 -0
  869. package/dist/src/account-selection.js +19 -0
  870. package/dist/src/account-selection.js.map +7 -0
  871. package/dist/src/actions.js +24 -0
  872. package/dist/src/actions.js.map +7 -0
  873. package/dist/src/approval-auth.js +27 -0
  874. package/dist/src/approval-auth.js.map +7 -0
  875. package/dist/src/approval-handler.runtime.js +378 -0
  876. package/dist/src/approval-handler.runtime.js.map +7 -0
  877. package/dist/src/approval-ids.js +9 -0
  878. package/dist/src/approval-ids.js.map +7 -0
  879. package/dist/src/approval-native.js +28 -0
  880. package/dist/src/approval-native.js.map +7 -0
  881. package/dist/src/approval-reactions.js +20 -0
  882. package/dist/src/approval-reactions.js.map +7 -0
  883. package/dist/src/auth-precedence.js +8 -0
  884. package/dist/src/auth-precedence.js.map +7 -0
  885. package/dist/src/channel-account-paths.js +11 -0
  886. package/dist/src/channel-account-paths.js.map +7 -0
  887. package/dist/src/channel.js +74 -0
  888. package/dist/src/channel.js.map +7 -0
  889. package/dist/src/channel.runtime.js +82 -0
  890. package/dist/src/channel.runtime.js.map +7 -0
  891. package/dist/src/cli-metadata.js +8 -0
  892. package/dist/src/cli-metadata.js.map +7 -0
  893. package/dist/src/cli.js +936 -0
  894. package/dist/src/cli.js.map +7 -0
  895. package/dist/src/config-adapter.js +26 -0
  896. package/dist/src/config-adapter.js.map +7 -0
  897. package/dist/src/config-schema.js +8 -0
  898. package/dist/src/config-schema.js.map +7 -0
  899. package/dist/src/directory-live.js +35 -0
  900. package/dist/src/directory-live.js.map +7 -0
  901. package/dist/src/doctor-contract.js +11 -0
  902. package/dist/src/doctor-contract.js.map +7 -0
  903. package/dist/src/doctor.js +42 -0
  904. package/dist/src/doctor.js.map +7 -0
  905. package/dist/src/env-vars.js +12 -0
  906. package/dist/src/env-vars.js.map +7 -0
  907. package/dist/src/exec-approval-resolver.js +10 -0
  908. package/dist/src/exec-approval-resolver.js.map +7 -0
  909. package/dist/src/exec-approvals.js +51 -0
  910. package/dist/src/exec-approvals.js.map +7 -0
  911. package/dist/src/group-mentions.js +28 -0
  912. package/dist/src/group-mentions.js.map +7 -0
  913. package/dist/src/legacy-crypto-inspector-availability.js +8 -0
  914. package/dist/src/legacy-crypto-inspector-availability.js.map +7 -0
  915. package/dist/src/legacy-crypto.js +26 -0
  916. package/dist/src/legacy-crypto.js.map +7 -0
  917. package/dist/src/legacy-state.js +24 -0
  918. package/dist/src/legacy-state.js.map +7 -0
  919. package/dist/src/matrix/account-config.js +16 -0
  920. package/dist/src/matrix/account-config.js.map +7 -0
  921. package/dist/src/matrix/accounts.js +31 -0
  922. package/dist/src/matrix/accounts.js.map +7 -0
  923. package/dist/src/matrix/actions/client.js +40 -0
  924. package/dist/src/matrix/actions/client.js.map +7 -0
  925. package/dist/src/matrix/actions/devices.js +42 -0
  926. package/dist/src/matrix/actions/devices.js.map +7 -0
  927. package/dist/src/matrix/actions/limits.js +8 -0
  928. package/dist/src/matrix/actions/limits.js.map +7 -0
  929. package/dist/src/matrix/actions/messages.js +49 -0
  930. package/dist/src/matrix/actions/messages.js.map +7 -0
  931. package/dist/src/matrix/actions/pins.js +46 -0
  932. package/dist/src/matrix/actions/pins.js.map +7 -0
  933. package/dist/src/matrix/actions/polls.js +37 -0
  934. package/dist/src/matrix/actions/polls.js.map +7 -0
  935. package/dist/src/matrix/actions/profile.js +38 -0
  936. package/dist/src/matrix/actions/profile.js.map +7 -0
  937. package/dist/src/matrix/actions/reactions.js +40 -0
  938. package/dist/src/matrix/actions/reactions.js.map +7 -0
  939. package/dist/src/matrix/actions/room.js +40 -0
  940. package/dist/src/matrix/actions/room.js.map +7 -0
  941. package/dist/src/matrix/actions/summary.js +19 -0
  942. package/dist/src/matrix/actions/summary.js.map +7 -0
  943. package/dist/src/matrix/actions/types.js +13 -0
  944. package/dist/src/matrix/actions/types.js.map +7 -0
  945. package/dist/src/matrix/actions/verification.js +77 -0
  946. package/dist/src/matrix/actions/verification.js.map +7 -0
  947. package/dist/src/matrix/actions.js +126 -0
  948. package/dist/src/matrix/actions.js.map +7 -0
  949. package/dist/src/matrix/active-client.js +10 -0
  950. package/dist/src/matrix/active-client.js.map +7 -0
  951. package/dist/src/matrix/async-lock.js +8 -0
  952. package/dist/src/matrix/async-lock.js.map +7 -0
  953. package/dist/src/matrix/backup-health.js +10 -0
  954. package/dist/src/matrix/backup-health.js.map +7 -0
  955. package/dist/src/matrix/client/config-runtime-api.js +24 -0
  956. package/dist/src/matrix/client/config-runtime-api.js.map +7 -0
  957. package/dist/src/matrix/client/config-secret-input.runtime.js +11 -0
  958. package/dist/src/matrix/client/config-secret-input.runtime.js.map +7 -0
  959. package/dist/src/matrix/client/config.js +42 -0
  960. package/dist/src/matrix/client/config.js.map +7 -0
  961. package/dist/src/matrix/client/create-client.js +20 -0
  962. package/dist/src/matrix/client/create-client.js.map +7 -0
  963. package/dist/src/matrix/client/env-auth.js +26 -0
  964. package/dist/src/matrix/client/env-auth.js.map +7 -0
  965. package/dist/src/matrix/client/file-sync-store.js +23 -0
  966. package/dist/src/matrix/client/file-sync-store.js.map +7 -0
  967. package/dist/src/matrix/client/logging.js +17 -0
  968. package/dist/src/matrix/client/logging.js.map +7 -0
  969. package/dist/src/matrix/client/migration-snapshot.runtime.js +13 -0
  970. package/dist/src/matrix/client/migration-snapshot.runtime.js.map +7 -0
  971. package/dist/src/matrix/client/private-network-host.js +8 -0
  972. package/dist/src/matrix/client/private-network-host.js.map +7 -0
  973. package/dist/src/matrix/client/runtime.js +8 -0
  974. package/dist/src/matrix/client/runtime.js.map +7 -0
  975. package/dist/src/matrix/client/shared.js +34 -0
  976. package/dist/src/matrix/client/shared.js.map +7 -0
  977. package/dist/src/matrix/client/storage.js +26 -0
  978. package/dist/src/matrix/client/storage.js.map +7 -0
  979. package/dist/src/matrix/client/types.js +7 -0
  980. package/dist/src/matrix/client/types.js.map +7 -0
  981. package/dist/src/matrix/client-bootstrap.js +15 -0
  982. package/dist/src/matrix/client-bootstrap.js.map +7 -0
  983. package/dist/src/matrix/client-resolver.test-helpers.js +122 -0
  984. package/dist/src/matrix/client-resolver.test-helpers.js.map +7 -0
  985. package/dist/src/matrix/client.js +63 -0
  986. package/dist/src/matrix/client.js.map +7 -0
  987. package/dist/src/matrix/config-paths.js +12 -0
  988. package/dist/src/matrix/config-paths.js.map +7 -0
  989. package/dist/src/matrix/config-update.js +17 -0
  990. package/dist/src/matrix/config-update.js.map +7 -0
  991. package/dist/src/matrix/credentials-read.js +22 -0
  992. package/dist/src/matrix/credentials-read.js.map +7 -0
  993. package/dist/src/matrix/credentials-write.runtime.js +24 -0
  994. package/dist/src/matrix/credentials-write.runtime.js.map +7 -0
  995. package/dist/src/matrix/credentials.js +90 -0
  996. package/dist/src/matrix/credentials.js.map +7 -0
  997. package/dist/src/matrix/deps.js +12 -0
  998. package/dist/src/matrix/deps.js.map +7 -0
  999. package/dist/src/matrix/device-health.js +10 -0
  1000. package/dist/src/matrix/device-health.js.map +7 -0
  1001. package/dist/src/matrix/direct-management.js +18 -0
  1002. package/dist/src/matrix/direct-management.js.map +7 -0
  1003. package/dist/src/matrix/direct-room.js +18 -0
  1004. package/dist/src/matrix/direct-room.js.map +7 -0
  1005. package/dist/src/matrix/draft-stream.js +33 -0
  1006. package/dist/src/matrix/draft-stream.js.map +7 -0
  1007. package/dist/src/matrix/encryption-guidance.js +17 -0
  1008. package/dist/src/matrix/encryption-guidance.js.map +7 -0
  1009. package/dist/src/matrix/errors.js +12 -0
  1010. package/dist/src/matrix/errors.js.map +7 -0
  1011. package/dist/src/matrix/format.js +13 -0
  1012. package/dist/src/matrix/format.js.map +7 -0
  1013. package/dist/src/matrix/legacy-crypto-inspector.js +72 -0
  1014. package/dist/src/matrix/legacy-crypto-inspector.js.map +7 -0
  1015. package/dist/src/matrix/media-errors.js +12 -0
  1016. package/dist/src/matrix/media-errors.js.map +7 -0
  1017. package/dist/src/matrix/media-text.js +22 -0
  1018. package/dist/src/matrix/media-text.js.map +7 -0
  1019. package/dist/src/matrix/monitor/access-state.js +9 -0
  1020. package/dist/src/matrix/monitor/access-state.js.map +7 -0
  1021. package/dist/src/matrix/monitor/ack-config.js +10 -0
  1022. package/dist/src/matrix/monitor/ack-config.js.map +7 -0
  1023. package/dist/src/matrix/monitor/allowlist.js +12 -0
  1024. package/dist/src/matrix/monitor/allowlist.js.map +7 -0
  1025. package/dist/src/matrix/monitor/auto-join.js +9 -0
  1026. package/dist/src/matrix/monitor/auto-join.js.map +7 -0
  1027. package/dist/src/matrix/monitor/config.js +37 -0
  1028. package/dist/src/matrix/monitor/config.js.map +7 -0
  1029. package/dist/src/matrix/monitor/context-summary.js +13 -0
  1030. package/dist/src/matrix/monitor/context-summary.js.map +7 -0
  1031. package/dist/src/matrix/monitor/direct.js +13 -0
  1032. package/dist/src/matrix/monitor/direct.js.map +7 -0
  1033. package/dist/src/matrix/monitor/events.js +20 -0
  1034. package/dist/src/matrix/monitor/events.js.map +7 -0
  1035. package/dist/src/matrix/monitor/handler.js +76 -0
  1036. package/dist/src/matrix/monitor/handler.js.map +7 -0
  1037. package/dist/src/matrix/monitor/handler.test-helpers.js +268 -0
  1038. package/dist/src/matrix/monitor/handler.test-helpers.js.map +7 -0
  1039. package/dist/src/matrix/monitor/inbound-dedupe.js +17 -0
  1040. package/dist/src/matrix/monitor/inbound-dedupe.js.map +7 -0
  1041. package/dist/src/matrix/monitor/index.js +502 -0
  1042. package/dist/src/matrix/monitor/index.js.map +7 -0
  1043. package/dist/src/matrix/monitor/legacy-crypto-restore.js +99 -0
  1044. package/dist/src/matrix/monitor/legacy-crypto-restore.js.map +7 -0
  1045. package/dist/src/matrix/monitor/location.js +11 -0
  1046. package/dist/src/matrix/monitor/location.js.map +7 -0
  1047. package/dist/src/matrix/monitor/media.js +10 -0
  1048. package/dist/src/matrix/monitor/media.js.map +7 -0
  1049. package/dist/src/matrix/monitor/mentions.js +9 -0
  1050. package/dist/src/matrix/monitor/mentions.js.map +7 -0
  1051. package/dist/src/matrix/monitor/reaction-events.js +38 -0
  1052. package/dist/src/matrix/monitor/reaction-events.js.map +7 -0
  1053. package/dist/src/matrix/monitor/recent-invite.js +10 -0
  1054. package/dist/src/matrix/monitor/recent-invite.js.map +7 -0
  1055. package/dist/src/matrix/monitor/replies.js +33 -0
  1056. package/dist/src/matrix/monitor/replies.js.map +7 -0
  1057. package/dist/src/matrix/monitor/reply-context.js +14 -0
  1058. package/dist/src/matrix/monitor/reply-context.js.map +7 -0
  1059. package/dist/src/matrix/monitor/room-history.js +10 -0
  1060. package/dist/src/matrix/monitor/room-history.js.map +7 -0
  1061. package/dist/src/matrix/monitor/room-info.js +9 -0
  1062. package/dist/src/matrix/monitor/room-info.js.map +7 -0
  1063. package/dist/src/matrix/monitor/rooms.js +9 -0
  1064. package/dist/src/matrix/monitor/rooms.js.map +7 -0
  1065. package/dist/src/matrix/monitor/route.js +12 -0
  1066. package/dist/src/matrix/monitor/route.js.map +7 -0
  1067. package/dist/src/matrix/monitor/runtime-api.js +40 -0
  1068. package/dist/src/matrix/monitor/runtime-api.js.map +7 -0
  1069. package/dist/src/matrix/monitor/startup-verification.js +174 -0
  1070. package/dist/src/matrix/monitor/startup-verification.js.map +7 -0
  1071. package/dist/src/matrix/monitor/startup.js +9 -0
  1072. package/dist/src/matrix/monitor/startup.js.map +7 -0
  1073. package/dist/src/matrix/monitor/status.js +10 -0
  1074. package/dist/src/matrix/monitor/status.js.map +7 -0
  1075. package/dist/src/matrix/monitor/sync-lifecycle.js +9 -0
  1076. package/dist/src/matrix/monitor/sync-lifecycle.js.map +7 -0
  1077. package/dist/src/matrix/monitor/task-runner.js +8 -0
  1078. package/dist/src/matrix/monitor/task-runner.js.map +7 -0
  1079. package/dist/src/matrix/monitor/thread-context.js +14 -0
  1080. package/dist/src/matrix/monitor/thread-context.js.map +7 -0
  1081. package/dist/src/matrix/monitor/threads.js +16 -0
  1082. package/dist/src/matrix/monitor/threads.js.map +7 -0
  1083. package/dist/src/matrix/monitor/types.js +11 -0
  1084. package/dist/src/matrix/monitor/types.js.map +7 -0
  1085. package/dist/src/matrix/monitor/verification-events.js +13 -0
  1086. package/dist/src/matrix/monitor/verification-events.js.map +7 -0
  1087. package/dist/src/matrix/monitor/verification-utils.js +16 -0
  1088. package/dist/src/matrix/monitor/verification-utils.js.map +7 -0
  1089. package/dist/src/matrix/outbound-media-runtime.js +9 -0
  1090. package/dist/src/matrix/outbound-media-runtime.js.map +7 -0
  1091. package/dist/src/matrix/poll-summary.js +14 -0
  1092. package/dist/src/matrix/poll-summary.js.map +7 -0
  1093. package/dist/src/matrix/poll-types.js +55 -0
  1094. package/dist/src/matrix/poll-types.js.map +7 -0
  1095. package/dist/src/matrix/probe.js +9 -0
  1096. package/dist/src/matrix/probe.js.map +7 -0
  1097. package/dist/src/matrix/probe.runtime.js +30 -0
  1098. package/dist/src/matrix/probe.runtime.js.map +7 -0
  1099. package/dist/src/matrix/profile.js +16 -0
  1100. package/dist/src/matrix/profile.js.map +7 -0
  1101. package/dist/src/matrix/reaction-common.js +26 -0
  1102. package/dist/src/matrix/reaction-common.js.map +7 -0
  1103. package/dist/src/matrix/sdk/crypto-bootstrap.js +15 -0
  1104. package/dist/src/matrix/sdk/crypto-bootstrap.js.map +7 -0
  1105. package/dist/src/matrix/sdk/crypto-facade.js +8 -0
  1106. package/dist/src/matrix/sdk/crypto-facade.js.map +7 -0
  1107. package/dist/src/matrix/sdk/crypto-node.runtime.js +14 -0
  1108. package/dist/src/matrix/sdk/crypto-node.runtime.js.map +7 -0
  1109. package/dist/src/matrix/sdk/crypto-runtime.js +84 -0
  1110. package/dist/src/matrix/sdk/crypto-runtime.js.map +7 -0
  1111. package/dist/src/matrix/sdk/decrypt-bridge.js +11 -0
  1112. package/dist/src/matrix/sdk/decrypt-bridge.js.map +7 -0
  1113. package/dist/src/matrix/sdk/event-helpers.js +12 -0
  1114. package/dist/src/matrix/sdk/event-helpers.js.map +7 -0
  1115. package/dist/src/matrix/sdk/http-client.js +13 -0
  1116. package/dist/src/matrix/sdk/http-client.js.map +7 -0
  1117. package/dist/src/matrix/sdk/idb-persistence-lock.js +12 -0
  1118. package/dist/src/matrix/sdk/idb-persistence-lock.js.map +7 -0
  1119. package/dist/src/matrix/sdk/idb-persistence.js +13 -0
  1120. package/dist/src/matrix/sdk/idb-persistence.js.map +7 -0
  1121. package/dist/src/matrix/sdk/idb-persistence.test-helpers.js +83 -0
  1122. package/dist/src/matrix/sdk/idb-persistence.test-helpers.js.map +7 -0
  1123. package/dist/src/matrix/sdk/logger.js +15 -0
  1124. package/dist/src/matrix/sdk/logger.js.map +7 -0
  1125. package/dist/src/matrix/sdk/read-response-with-limit.js +8 -0
  1126. package/dist/src/matrix/sdk/read-response-with-limit.js.map +7 -0
  1127. package/dist/src/matrix/sdk/recovery-key-store.js +14 -0
  1128. package/dist/src/matrix/sdk/recovery-key-store.js.map +7 -0
  1129. package/dist/src/matrix/sdk/transport.js +13 -0
  1130. package/dist/src/matrix/sdk/transport.js.map +7 -0
  1131. package/dist/src/matrix/sdk/types.js +7 -0
  1132. package/dist/src/matrix/sdk/types.js.map +7 -0
  1133. package/dist/src/matrix/sdk/verification-manager.js +11 -0
  1134. package/dist/src/matrix/sdk/verification-manager.js.map +7 -0
  1135. package/dist/src/matrix/sdk/verification-status.js +12 -0
  1136. package/dist/src/matrix/sdk/verification-status.js.map +7 -0
  1137. package/dist/src/matrix/sdk.js +1375 -0
  1138. package/dist/src/matrix/sdk.js.map +7 -0
  1139. package/dist/src/matrix/send/client.js +14 -0
  1140. package/dist/src/matrix/send/client.js.map +7 -0
  1141. package/dist/src/matrix/send/formatting.js +29 -0
  1142. package/dist/src/matrix/send/formatting.js.map +7 -0
  1143. package/dist/src/matrix/send/media.js +26 -0
  1144. package/dist/src/matrix/send/media.js.map +7 -0
  1145. package/dist/src/matrix/send/targets.js +15 -0
  1146. package/dist/src/matrix/send/targets.js.map +7 -0
  1147. package/dist/src/matrix/send/types.js +17 -0
  1148. package/dist/src/matrix/send/types.js.map +7 -0
  1149. package/dist/src/matrix/send.js +51 -0
  1150. package/dist/src/matrix/send.js.map +7 -0
  1151. package/dist/src/matrix/session-store-metadata.js +15 -0
  1152. package/dist/src/matrix/session-store-metadata.js.map +7 -0
  1153. package/dist/src/matrix/startup-abort.js +14 -0
  1154. package/dist/src/matrix/startup-abort.js.map +7 -0
  1155. package/dist/src/matrix/sync-state.js +12 -0
  1156. package/dist/src/matrix/sync-state.js.map +7 -0
  1157. package/dist/src/matrix/target-ids.js +20 -0
  1158. package/dist/src/matrix/target-ids.js.map +7 -0
  1159. package/dist/src/matrix/thread-bindings-shared.js +34 -0
  1160. package/dist/src/matrix/thread-bindings-shared.js.map +7 -0
  1161. package/dist/src/matrix/thread-bindings.js +49 -0
  1162. package/dist/src/matrix/thread-bindings.js.map +7 -0
  1163. package/dist/src/matrix-migration.runtime.js +45 -0
  1164. package/dist/src/matrix-migration.runtime.js.map +7 -0
  1165. package/dist/src/migration-config.js +29 -0
  1166. package/dist/src/migration-config.js.map +7 -0
  1167. package/dist/src/migration-snapshot-backup.js +12 -0
  1168. package/dist/src/migration-snapshot-backup.js.map +7 -0
  1169. package/dist/src/migration-snapshot.js +38 -0
  1170. package/dist/src/migration-snapshot.js.map +7 -0
  1171. package/dist/src/onboarding.js +43 -0
  1172. package/dist/src/onboarding.js.map +7 -0
  1173. package/dist/src/onboarding.test-harness.js +124 -0
  1174. package/dist/src/onboarding.test-harness.js.map +7 -0
  1175. package/dist/src/outbound.js +33 -0
  1176. package/dist/src/outbound.js.map +7 -0
  1177. package/dist/src/plugin-entry.runtime.js +15 -0
  1178. package/dist/src/plugin-entry.runtime.js.map +7 -0
  1179. package/dist/src/profile-update.js +41 -0
  1180. package/dist/src/profile-update.js.map +7 -0
  1181. package/dist/src/record-shared.js +8 -0
  1182. package/dist/src/record-shared.js.map +7 -0
  1183. package/dist/src/resolve-targets.js +34 -0
  1184. package/dist/src/resolve-targets.js.map +7 -0
  1185. package/dist/src/resolver.js +8 -0
  1186. package/dist/src/resolver.js.map +7 -0
  1187. package/dist/src/runtime-api.js +120 -0
  1188. package/dist/src/runtime-api.js.map +7 -0
  1189. package/dist/src/runtime.js +10 -0
  1190. package/dist/src/runtime.js.map +7 -0
  1191. package/dist/src/secret-contract.js +13 -0
  1192. package/dist/src/secret-contract.js.map +7 -0
  1193. package/dist/src/session-route.js +25 -0
  1194. package/dist/src/session-route.js.map +7 -0
  1195. package/dist/src/setup-bootstrap.js +124 -0
  1196. package/dist/src/setup-bootstrap.js.map +7 -0
  1197. package/dist/src/setup-config.js +28 -0
  1198. package/dist/src/setup-config.js.map +7 -0
  1199. package/dist/src/setup-contract.js +16 -0
  1200. package/dist/src/setup-contract.js.map +7 -0
  1201. package/dist/src/setup-core.js +25 -0
  1202. package/dist/src/setup-core.js.map +7 -0
  1203. package/dist/src/setup-surface.js +45 -0
  1204. package/dist/src/setup-surface.js.map +7 -0
  1205. package/dist/src/startup-maintenance.js +29 -0
  1206. package/dist/src/startup-maintenance.js.map +7 -0
  1207. package/dist/src/storage-paths.js +24 -0
  1208. package/dist/src/storage-paths.js.map +7 -0
  1209. package/dist/src/test-helpers.js +49 -0
  1210. package/dist/src/test-helpers.js.map +7 -0
  1211. package/dist/src/test-mocks.js +40 -0
  1212. package/dist/src/test-mocks.js.map +7 -0
  1213. package/dist/src/test-runtime.js +65 -0
  1214. package/dist/src/test-runtime.js.map +7 -0
  1215. package/dist/src/tool-actions.js +68 -0
  1216. package/dist/src/tool-actions.js.map +7 -0
  1217. package/dist/src/tool-actions.runtime.js +73 -0
  1218. package/dist/src/tool-actions.runtime.js.map +7 -0
  1219. package/dist/src/types.js +7 -0
  1220. package/dist/src/types.js.map +7 -0
  1221. package/dist/test-api.js +82 -0
  1222. package/dist/test-api.js.map +7 -0
  1223. package/dist/thread-bindings-runtime.js +15 -0
  1224. package/dist/thread-bindings-runtime.js.map +7 -0
  1225. package/package.json +12 -6
  1226. package/CHANGELOG.md +0 -164
  1227. package/ENDOFFILE +0 -0
  1228. package/EOF +0 -0
  1229. package/SPEC-SUPPORT.md +0 -116
  1230. package/YAMLEND +0 -0
  1231. package/api.ts +0 -18
  1232. package/archipelagolab-lobi-1.0.0.tgz +0 -0
  1233. package/archipelagolab-lobi-1.0.1.tgz +0 -0
  1234. package/auth-presence.ts +0 -56
  1235. package/channel-plugin-api.ts +0 -3
  1236. package/cli-metadata.ts +0 -11
  1237. package/contract-api.ts +0 -17
  1238. package/docs/CHECKLIST.md +0 -83
  1239. package/docs/FORK_SDK_GUIDE.md +0 -279
  1240. package/helper-api.ts +0 -3
  1241. package/index.test.ts +0 -61
  1242. package/index.ts +0 -65
  1243. package/plugin-entry.handlers.runtime.ts +0 -1
  1244. package/runtime-api.ts +0 -54
  1245. package/runtime-heavy-api.ts +0 -1
  1246. package/scripts/migrate-to-lobi.sh +0 -72
  1247. package/secret-contract-api.ts +0 -5
  1248. package/setup-entry.ts +0 -13
  1249. package/src/account-selection.test.ts +0 -124
  1250. package/src/account-selection.ts +0 -226
  1251. package/src/actions.account-propagation.test.ts +0 -251
  1252. package/src/actions.test.ts +0 -251
  1253. package/src/actions.ts +0 -336
  1254. package/src/approval-auth.test.ts +0 -23
  1255. package/src/approval-auth.ts +0 -25
  1256. package/src/approval-handler.runtime.test.ts +0 -46
  1257. package/src/approval-handler.runtime.ts +0 -400
  1258. package/src/approval-ids.ts +0 -6
  1259. package/src/approval-native.test.ts +0 -329
  1260. package/src/approval-native.ts +0 -336
  1261. package/src/approval-reactions.test.ts +0 -107
  1262. package/src/approval-reactions.ts +0 -158
  1263. package/src/auth-precedence.ts +0 -61
  1264. package/src/channel-account-paths.ts +0 -92
  1265. package/src/channel.account-paths.test.ts +0 -102
  1266. package/src/channel.directory.test.ts +0 -601
  1267. package/src/channel.resolve.test.ts +0 -38
  1268. package/src/channel.runtime.ts +0 -16
  1269. package/src/channel.setup.test.ts +0 -269
  1270. package/src/channel.ts +0 -570
  1271. package/src/cli-metadata.ts +0 -19
  1272. package/src/cli.test.ts +0 -1015
  1273. package/src/cli.ts +0 -1198
  1274. package/src/config-adapter.ts +0 -41
  1275. package/src/config-schema.test.ts +0 -90
  1276. package/src/config-schema.ts +0 -114
  1277. package/src/directory-live.test.ts +0 -200
  1278. package/src/directory-live.ts +0 -238
  1279. package/src/doctor-contract.ts +0 -287
  1280. package/src/doctor.test.ts +0 -440
  1281. package/src/doctor.ts +0 -262
  1282. package/src/env-vars.ts +0 -92
  1283. package/src/exec-approval-resolver.test.ts +0 -68
  1284. package/src/exec-approval-resolver.ts +0 -23
  1285. package/src/exec-approvals.test.ts +0 -483
  1286. package/src/exec-approvals.ts +0 -290
  1287. package/src/group-mentions.ts +0 -41
  1288. package/src/legacy-crypto-inspector-availability.test.ts +0 -81
  1289. package/src/legacy-crypto-inspector-availability.ts +0 -60
  1290. package/src/legacy-crypto.test.ts +0 -234
  1291. package/src/legacy-crypto.ts +0 -549
  1292. package/src/legacy-state.test.ts +0 -86
  1293. package/src/legacy-state.ts +0 -156
  1294. package/src/matrix/account-config.ts +0 -150
  1295. package/src/matrix/accounts.readiness.test.ts +0 -27
  1296. package/src/matrix/accounts.test.ts +0 -757
  1297. package/src/matrix/accounts.ts +0 -194
  1298. package/src/matrix/actions/client.test.ts +0 -215
  1299. package/src/matrix/actions/client.ts +0 -31
  1300. package/src/matrix/actions/devices.test.ts +0 -114
  1301. package/src/matrix/actions/devices.ts +0 -34
  1302. package/src/matrix/actions/limits.test.ts +0 -15
  1303. package/src/matrix/actions/limits.ts +0 -6
  1304. package/src/matrix/actions/messages.test.ts +0 -289
  1305. package/src/matrix/actions/messages.ts +0 -123
  1306. package/src/matrix/actions/pins.test.ts +0 -74
  1307. package/src/matrix/actions/pins.ts +0 -64
  1308. package/src/matrix/actions/polls.test.ts +0 -71
  1309. package/src/matrix/actions/polls.ts +0 -109
  1310. package/src/matrix/actions/profile.test.ts +0 -109
  1311. package/src/matrix/actions/profile.ts +0 -37
  1312. package/src/matrix/actions/reactions.test.ts +0 -135
  1313. package/src/matrix/actions/reactions.ts +0 -59
  1314. package/src/matrix/actions/room.test.ts +0 -79
  1315. package/src/matrix/actions/room.ts +0 -71
  1316. package/src/matrix/actions/summary.test.ts +0 -87
  1317. package/src/matrix/actions/summary.ts +0 -88
  1318. package/src/matrix/actions/types.ts +0 -82
  1319. package/src/matrix/actions/verification.test.ts +0 -105
  1320. package/src/matrix/actions/verification.ts +0 -237
  1321. package/src/matrix/actions.ts +0 -37
  1322. package/src/matrix/active-client.ts +0 -26
  1323. package/src/matrix/async-lock.ts +0 -18
  1324. package/src/matrix/backup-health.ts +0 -115
  1325. package/src/matrix/client/config-runtime-api.ts +0 -14
  1326. package/src/matrix/client/config-secret-input.runtime.ts +0 -1
  1327. package/src/matrix/client/config.ts +0 -982
  1328. package/src/matrix/client/create-client.test.ts +0 -115
  1329. package/src/matrix/client/create-client.ts +0 -101
  1330. package/src/matrix/client/env-auth.ts +0 -6
  1331. package/src/matrix/client/file-sync-store.test.ts +0 -265
  1332. package/src/matrix/client/file-sync-store.ts +0 -289
  1333. package/src/matrix/client/logging.ts +0 -123
  1334. package/src/matrix/client/migration-snapshot.runtime.ts +0 -1
  1335. package/src/matrix/client/private-network-host.ts +0 -56
  1336. package/src/matrix/client/runtime.ts +0 -4
  1337. package/src/matrix/client/shared.test.ts +0 -344
  1338. package/src/matrix/client/shared.ts +0 -306
  1339. package/src/matrix/client/storage.test.ts +0 -634
  1340. package/src/matrix/client/storage.ts +0 -544
  1341. package/src/matrix/client/types.ts +0 -50
  1342. package/src/matrix/client-bootstrap.test.ts +0 -84
  1343. package/src/matrix/client-bootstrap.ts +0 -164
  1344. package/src/matrix/client-resolver.test-helpers.ts +0 -147
  1345. package/src/matrix/client.test.ts +0 -1521
  1346. package/src/matrix/client.ts +0 -23
  1347. package/src/matrix/config-paths.ts +0 -31
  1348. package/src/matrix/config-update.test.ts +0 -237
  1349. package/src/matrix/config-update.ts +0 -291
  1350. package/src/matrix/credentials-read.ts +0 -206
  1351. package/src/matrix/credentials-write.runtime.ts +0 -26
  1352. package/src/matrix/credentials.test.ts +0 -501
  1353. package/src/matrix/credentials.ts +0 -95
  1354. package/src/matrix/deps.test.ts +0 -74
  1355. package/src/matrix/deps.ts +0 -225
  1356. package/src/matrix/device-health.test.ts +0 -45
  1357. package/src/matrix/device-health.ts +0 -31
  1358. package/src/matrix/direct-management.test.ts +0 -350
  1359. package/src/matrix/direct-management.ts +0 -347
  1360. package/src/matrix/direct-room.test.ts +0 -61
  1361. package/src/matrix/direct-room.ts +0 -128
  1362. package/src/matrix/draft-stream.test.ts +0 -406
  1363. package/src/matrix/draft-stream.ts +0 -216
  1364. package/src/matrix/encryption-guidance.ts +0 -27
  1365. package/src/matrix/errors.ts +0 -21
  1366. package/src/matrix/format.test.ts +0 -340
  1367. package/src/matrix/format.ts +0 -428
  1368. package/src/matrix/legacy-crypto-inspector.ts +0 -95
  1369. package/src/matrix/media-errors.ts +0 -20
  1370. package/src/matrix/media-text.ts +0 -169
  1371. package/src/matrix/monitor/access-state.test.ts +0 -45
  1372. package/src/matrix/monitor/access-state.ts +0 -77
  1373. package/src/matrix/monitor/ack-config.test.ts +0 -57
  1374. package/src/matrix/monitor/ack-config.ts +0 -26
  1375. package/src/matrix/monitor/allowlist.test.ts +0 -45
  1376. package/src/matrix/monitor/allowlist.ts +0 -94
  1377. package/src/matrix/monitor/auto-join.test.ts +0 -203
  1378. package/src/matrix/monitor/auto-join.ts +0 -86
  1379. package/src/matrix/monitor/config.test.ts +0 -197
  1380. package/src/matrix/monitor/config.ts +0 -303
  1381. package/src/matrix/monitor/context-summary.ts +0 -43
  1382. package/src/matrix/monitor/direct.test.ts +0 -529
  1383. package/src/matrix/monitor/direct.ts +0 -270
  1384. package/src/matrix/monitor/events.test.ts +0 -1524
  1385. package/src/matrix/monitor/events.ts +0 -213
  1386. package/src/matrix/monitor/handler.body-for-agent.test.ts +0 -396
  1387. package/src/matrix/monitor/handler.group-history.test.ts +0 -648
  1388. package/src/matrix/monitor/handler.media-failure.test.ts +0 -267
  1389. package/src/matrix/monitor/handler.test-helpers.ts +0 -308
  1390. package/src/matrix/monitor/handler.test.ts +0 -2952
  1391. package/src/matrix/monitor/handler.thread-root-media.test.ts +0 -82
  1392. package/src/matrix/monitor/handler.ts +0 -1679
  1393. package/src/matrix/monitor/inbound-dedupe.test.ts +0 -146
  1394. package/src/matrix/monitor/inbound-dedupe.ts +0 -267
  1395. package/src/matrix/monitor/index.test.ts +0 -920
  1396. package/src/matrix/monitor/index.ts +0 -434
  1397. package/src/matrix/monitor/legacy-crypto-restore.test.ts +0 -206
  1398. package/src/matrix/monitor/legacy-crypto-restore.ts +0 -139
  1399. package/src/matrix/monitor/location.ts +0 -100
  1400. package/src/matrix/monitor/media.test.ts +0 -159
  1401. package/src/matrix/monitor/media.ts +0 -119
  1402. package/src/matrix/monitor/mentions.test.ts +0 -289
  1403. package/src/matrix/monitor/mentions.ts +0 -177
  1404. package/src/matrix/monitor/reaction-events.test.ts +0 -326
  1405. package/src/matrix/monitor/reaction-events.ts +0 -187
  1406. package/src/matrix/monitor/recent-invite.test.ts +0 -92
  1407. package/src/matrix/monitor/recent-invite.ts +0 -30
  1408. package/src/matrix/monitor/replies.test.ts +0 -265
  1409. package/src/matrix/monitor/replies.ts +0 -136
  1410. package/src/matrix/monitor/reply-context.test.ts +0 -276
  1411. package/src/matrix/monitor/reply-context.ts +0 -92
  1412. package/src/matrix/monitor/room-history.test.ts +0 -258
  1413. package/src/matrix/monitor/room-history.ts +0 -301
  1414. package/src/matrix/monitor/room-info.test.ts +0 -201
  1415. package/src/matrix/monitor/room-info.ts +0 -126
  1416. package/src/matrix/monitor/rooms.test.ts +0 -121
  1417. package/src/matrix/monitor/rooms.ts +0 -52
  1418. package/src/matrix/monitor/route.test.ts +0 -255
  1419. package/src/matrix/monitor/route.ts +0 -178
  1420. package/src/matrix/monitor/runtime-api.ts +0 -31
  1421. package/src/matrix/monitor/startup-verification.test.ts +0 -294
  1422. package/src/matrix/monitor/startup-verification.ts +0 -237
  1423. package/src/matrix/monitor/startup.test.ts +0 -257
  1424. package/src/matrix/monitor/startup.ts +0 -218
  1425. package/src/matrix/monitor/status.ts +0 -111
  1426. package/src/matrix/monitor/sync-lifecycle.test.ts +0 -224
  1427. package/src/matrix/monitor/sync-lifecycle.ts +0 -91
  1428. package/src/matrix/monitor/task-runner.ts +0 -38
  1429. package/src/matrix/monitor/thread-context.test.ts +0 -149
  1430. package/src/matrix/monitor/thread-context.ts +0 -108
  1431. package/src/matrix/monitor/threads.test.ts +0 -68
  1432. package/src/matrix/monitor/threads.ts +0 -85
  1433. package/src/matrix/monitor/types.ts +0 -30
  1434. package/src/matrix/monitor/verification-events.ts +0 -627
  1435. package/src/matrix/monitor/verification-utils.test.ts +0 -47
  1436. package/src/matrix/monitor/verification-utils.ts +0 -46
  1437. package/src/matrix/outbound-media-runtime.ts +0 -1
  1438. package/src/matrix/poll-summary.ts +0 -110
  1439. package/src/matrix/poll-types.test.ts +0 -205
  1440. package/src/matrix/poll-types.ts +0 -433
  1441. package/src/matrix/probe.runtime.ts +0 -4
  1442. package/src/matrix/probe.test.ts +0 -154
  1443. package/src/matrix/probe.ts +0 -96
  1444. package/src/matrix/profile.test.ts +0 -154
  1445. package/src/matrix/profile.ts +0 -184
  1446. package/src/matrix/reaction-common.test.ts +0 -96
  1447. package/src/matrix/reaction-common.ts +0 -147
  1448. package/src/matrix/sdk/crypto-bootstrap.test.ts +0 -505
  1449. package/src/matrix/sdk/crypto-bootstrap.ts +0 -341
  1450. package/src/matrix/sdk/crypto-facade.test.ts +0 -197
  1451. package/src/matrix/sdk/crypto-facade.ts +0 -207
  1452. package/src/matrix/sdk/crypto-node.runtime.test.ts +0 -27
  1453. package/src/matrix/sdk/crypto-node.runtime.ts +0 -9
  1454. package/src/matrix/sdk/crypto-runtime.ts +0 -11
  1455. package/src/matrix/sdk/decrypt-bridge.ts +0 -356
  1456. package/src/matrix/sdk/event-helpers.test.ts +0 -60
  1457. package/src/matrix/sdk/event-helpers.ts +0 -71
  1458. package/src/matrix/sdk/http-client.test.ts +0 -134
  1459. package/src/matrix/sdk/http-client.ts +0 -87
  1460. package/src/matrix/sdk/idb-persistence-lock.ts +0 -51
  1461. package/src/matrix/sdk/idb-persistence.lock-order.test.ts +0 -108
  1462. package/src/matrix/sdk/idb-persistence.test-helpers.ts +0 -88
  1463. package/src/matrix/sdk/idb-persistence.test.ts +0 -149
  1464. package/src/matrix/sdk/idb-persistence.ts +0 -283
  1465. package/src/matrix/sdk/logger.test.ts +0 -25
  1466. package/src/matrix/sdk/logger.ts +0 -108
  1467. package/src/matrix/sdk/read-response-with-limit.ts +0 -19
  1468. package/src/matrix/sdk/recovery-key-store.test.ts +0 -385
  1469. package/src/matrix/sdk/recovery-key-store.ts +0 -430
  1470. package/src/matrix/sdk/transport.test.ts +0 -161
  1471. package/src/matrix/sdk/transport.ts +0 -344
  1472. package/src/matrix/sdk/types.ts +0 -236
  1473. package/src/matrix/sdk/verification-manager.test.ts +0 -509
  1474. package/src/matrix/sdk/verification-manager.ts +0 -694
  1475. package/src/matrix/sdk/verification-status.ts +0 -23
  1476. package/src/matrix/sdk.test.ts +0 -2568
  1477. package/src/matrix/sdk.ts +0 -1789
  1478. package/src/matrix/send/client.test.ts +0 -174
  1479. package/src/matrix/send/client.ts +0 -90
  1480. package/src/matrix/send/formatting.ts +0 -189
  1481. package/src/matrix/send/media.ts +0 -244
  1482. package/src/matrix/send/targets.test.ts +0 -254
  1483. package/src/matrix/send/targets.ts +0 -104
  1484. package/src/matrix/send/types.ts +0 -134
  1485. package/src/matrix/send.test.ts +0 -958
  1486. package/src/matrix/send.ts +0 -609
  1487. package/src/matrix/session-store-metadata.ts +0 -108
  1488. package/src/matrix/startup-abort.ts +0 -44
  1489. package/src/matrix/sync-state.ts +0 -27
  1490. package/src/matrix/target-ids.ts +0 -102
  1491. package/src/matrix/thread-bindings-shared.ts +0 -201
  1492. package/src/matrix/thread-bindings.test.ts +0 -673
  1493. package/src/matrix/thread-bindings.ts +0 -577
  1494. package/src/matrix-migration.runtime.ts +0 -9
  1495. package/src/migration-config.test.ts +0 -228
  1496. package/src/migration-config.ts +0 -243
  1497. package/src/migration-snapshot-backup.ts +0 -117
  1498. package/src/migration-snapshot.test.ts +0 -184
  1499. package/src/migration-snapshot.ts +0 -55
  1500. package/src/onboarding.resolve.test.ts +0 -55
  1501. package/src/onboarding.test-harness.ts +0 -158
  1502. package/src/onboarding.test.ts +0 -665
  1503. package/src/onboarding.ts +0 -773
  1504. package/src/outbound.test.ts +0 -173
  1505. package/src/outbound.ts +0 -78
  1506. package/src/plugin-entry.runtime.js +0 -159
  1507. package/src/plugin-entry.runtime.test.ts +0 -108
  1508. package/src/plugin-entry.runtime.ts +0 -68
  1509. package/src/profile-update.ts +0 -68
  1510. package/src/record-shared.ts +0 -3
  1511. package/src/resolve-targets.test.ts +0 -178
  1512. package/src/resolve-targets.ts +0 -175
  1513. package/src/resolver.ts +0 -21
  1514. package/src/runtime-api.ts +0 -144
  1515. package/src/runtime.ts +0 -7
  1516. package/src/secret-contract.ts +0 -174
  1517. package/src/session-route.test.ts +0 -315
  1518. package/src/session-route.ts +0 -113
  1519. package/src/setup-bootstrap.ts +0 -94
  1520. package/src/setup-config.ts +0 -222
  1521. package/src/setup-contract.ts +0 -89
  1522. package/src/setup-core.test.ts +0 -326
  1523. package/src/setup-core.ts +0 -50
  1524. package/src/setup-surface.ts +0 -4
  1525. package/src/startup-maintenance.test.ts +0 -227
  1526. package/src/startup-maintenance.ts +0 -114
  1527. package/src/storage-paths.ts +0 -92
  1528. package/src/test-helpers.ts +0 -42
  1529. package/src/test-mocks.ts +0 -55
  1530. package/src/test-runtime.ts +0 -72
  1531. package/src/test-support/monitor-route-test-support.ts +0 -8
  1532. package/src/tool-actions.runtime.ts +0 -1
  1533. package/src/tool-actions.test.ts +0 -422
  1534. package/src/tool-actions.ts +0 -498
  1535. package/src/types.ts +0 -230
  1536. package/test-api.ts +0 -2
  1537. package/thread-bindings-runtime.ts +0 -4
  1538. package/tsconfig.json +0 -16
@@ -1,1679 +0,0 @@
1
- import { resolveControlCommandGate } from "openclaw/plugin-sdk/command-auth";
2
- import {
3
- loadSessionStore,
4
- resolveChannelContextVisibilityMode,
5
- resolveSessionStoreEntry,
6
- } from "openclaw/plugin-sdk/config-runtime";
7
- import { getSessionBindingService } from "openclaw/plugin-sdk/conversation-runtime";
8
- import { evaluateSupplementalContextVisibility } from "openclaw/plugin-sdk/security-runtime";
9
- import { normalizeOptionalString } from "openclaw/plugin-sdk/text-runtime";
10
- import type {
11
- CoreConfig,
12
- MatrixRoomConfig,
13
- MatrixStreamingMode,
14
- ReplyToMode,
15
- } from "../../types.js";
16
- import { createMatrixDraftStream } from "../draft-stream.js";
17
- import { formatMatrixErrorMessage } from "../errors.js";
18
- import { isMatrixMediaSizeLimitError } from "../media-errors.js";
19
- import {
20
- formatMatrixMediaTooLargeText,
21
- formatMatrixMediaUnavailableText,
22
- formatMatrixMessageText,
23
- resolveMatrixMessageAttachment,
24
- resolveMatrixMessageBody,
25
- } from "../media-text.js";
26
- import { fetchMatrixPollSnapshot, type MatrixPollSnapshot } from "../poll-summary.js";
27
- import {
28
- formatPollAsText,
29
- isPollEventType,
30
- isPollStartType,
31
- parsePollStartContent,
32
- } from "../poll-types.js";
33
- import type { LocationMessageEventContent, MatrixClient } from "../sdk.js";
34
- import {
35
- editMessageMatrix,
36
- reactMatrixMessage,
37
- sendMessageMatrix,
38
- sendReadReceiptMatrix,
39
- sendTypingMatrix,
40
- } from "../send.js";
41
- import { MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY } from "../send/types.js";
42
- import { resolveMatrixStoredSessionMeta } from "../session-store-metadata.js";
43
- import { resolveMatrixMonitorAccessState } from "./access-state.js";
44
- import { resolveMatrixAckReactionConfig } from "./ack-config.js";
45
- import { resolveMatrixAllowListMatch } from "./allowlist.js";
46
- import type { MatrixInboundEventDeduper } from "./inbound-dedupe.js";
47
- import { resolveMatrixLocation, type MatrixLocationPayload } from "./location.js";
48
- import { downloadMatrixMedia } from "./media.js";
49
- import { resolveMentions } from "./mentions.js";
50
- import { handleInboundMatrixReaction } from "./reaction-events.js";
51
- import { deliverMatrixReplies } from "./replies.js";
52
- import { createMatrixReplyContextResolver } from "./reply-context.js";
53
- import { createRoomHistoryTracker } from "./room-history.js";
54
- import type { HistoryEntry } from "./room-history.js";
55
- import { resolveMatrixRoomConfig } from "./rooms.js";
56
- import { resolveMatrixInboundRoute } from "./route.js";
57
- import {
58
- createReplyPrefixOptions,
59
- createTypingCallbacks,
60
- ensureConfiguredAcpBindingReady,
61
- formatAllowlistMatchMeta,
62
- getAgentScopedMediaLocalRoots,
63
- logInboundDrop,
64
- logTypingFailure,
65
- type BlockReplyContext,
66
- type PluginRuntime,
67
- type ReplyPayload,
68
- type RuntimeEnv,
69
- type RuntimeLogger,
70
- } from "./runtime-api.js";
71
- import { createMatrixThreadContextResolver } from "./thread-context.js";
72
- import {
73
- resolveMatrixReplyToEventId,
74
- resolveMatrixThreadRootId,
75
- resolveMatrixThreadRouting,
76
- } from "./threads.js";
77
- import type { MatrixRawEvent, RoomMessageEventContent } from "./types.js";
78
- import { EventType, RelationType } from "./types.js";
79
- import { isMatrixVerificationRoomMessage } from "./verification-utils.js";
80
-
81
- const ALLOW_FROM_STORE_CACHE_TTL_MS = 30_000;
82
- const PAIRING_REPLY_COOLDOWN_MS = 5 * 60_000;
83
- const MAX_TRACKED_PAIRING_REPLY_SENDERS = 512;
84
- const MAX_TRACKED_SHARED_DM_CONTEXT_NOTICES = 512;
85
- type MatrixAllowBotsMode = "off" | "mentions" | "all";
86
-
87
- async function redactMatrixDraftEvent(
88
- client: MatrixClient,
89
- roomId: string,
90
- draftEventId: string,
91
- ): Promise<void> {
92
- await client.redactEvent(roomId, draftEventId).catch(() => {});
93
- }
94
-
95
- function buildMatrixFinalizedPreviewContent(): Record<string, unknown> {
96
- return { [MATRIX_OPENCLAW_FINALIZED_PREVIEW_KEY]: true };
97
- }
98
-
99
- export type MatrixMonitorHandlerParams = {
100
- client: MatrixClient;
101
- core: PluginRuntime;
102
- cfg: CoreConfig;
103
- accountId: string;
104
- runtime: RuntimeEnv;
105
- logger: RuntimeLogger;
106
- logVerboseMessage: (message: string) => void;
107
- allowFrom: string[];
108
- groupAllowFrom?: string[];
109
- roomsConfig?: Record<string, MatrixRoomConfig>;
110
- accountAllowBots?: boolean | "mentions";
111
- configuredBotUserIds?: ReadonlySet<string>;
112
- groupPolicy: "open" | "allowlist" | "disabled";
113
- replyToMode: ReplyToMode;
114
- threadReplies: "off" | "inbound" | "always";
115
- /** DM-specific threadReplies override. Falls back to threadReplies when absent. */
116
- dmThreadReplies?: "off" | "inbound" | "always";
117
- /** DM session grouping behavior. */
118
- dmSessionScope?: "per-user" | "per-room";
119
- streaming: MatrixStreamingMode;
120
- blockStreamingEnabled: boolean;
121
- dmEnabled: boolean;
122
- dmPolicy: "open" | "pairing" | "allowlist" | "disabled";
123
- textLimit: number;
124
- mediaMaxBytes: number;
125
- historyLimit: number;
126
- startupMs: number;
127
- startupGraceMs: number;
128
- dropPreStartupMessages: boolean;
129
- inboundDeduper?: Pick<MatrixInboundEventDeduper, "claimEvent" | "commitEvent" | "releaseEvent">;
130
- directTracker: {
131
- isDirectMessage: (params: {
132
- roomId: string;
133
- senderId: string;
134
- selfUserId: string;
135
- }) => Promise<boolean>;
136
- };
137
- getRoomInfo: (
138
- roomId: string,
139
- opts?: { includeAliases?: boolean },
140
- ) => Promise<{ name?: string; canonicalAlias?: string; altAliases: string[] }>;
141
- getMemberDisplayName: (roomId: string, userId: string) => Promise<string>;
142
- needsRoomAliasesForConfig: boolean;
143
- };
144
-
145
- function resolveMatrixMentionPrecheckText(params: {
146
- eventType: string;
147
- content: RoomMessageEventContent;
148
- locationText?: string | null;
149
- }): string {
150
- if (params.locationText?.trim()) {
151
- return params.locationText.trim();
152
- }
153
- if (typeof params.content.body === "string" && params.content.body.trim()) {
154
- return params.content.body.trim();
155
- }
156
- if (isPollStartType(params.eventType)) {
157
- const parsed = parsePollStartContent(params.content as never);
158
- if (parsed) {
159
- return formatPollAsText(parsed);
160
- }
161
- }
162
- return "";
163
- }
164
-
165
- function resolveMatrixInboundBodyText(params: {
166
- rawBody: string;
167
- filename?: string;
168
- mediaPlaceholder?: string;
169
- msgtype?: string;
170
- hadMediaUrl: boolean;
171
- mediaDownloadFailed: boolean;
172
- mediaSizeLimitExceeded?: boolean;
173
- }): string {
174
- if (params.mediaPlaceholder) {
175
- return params.rawBody || params.mediaPlaceholder;
176
- }
177
- if (!params.mediaDownloadFailed || !params.hadMediaUrl) {
178
- return params.rawBody;
179
- }
180
- if (params.mediaSizeLimitExceeded) {
181
- return formatMatrixMediaTooLargeText({
182
- body: params.rawBody,
183
- filename: params.filename,
184
- msgtype: params.msgtype,
185
- });
186
- }
187
- return formatMatrixMediaUnavailableText({
188
- body: params.rawBody,
189
- filename: params.filename,
190
- msgtype: params.msgtype,
191
- });
192
- }
193
-
194
- function markTrackedRoomIfFirst(set: Set<string>, roomId: string): boolean {
195
- if (set.has(roomId)) {
196
- return false;
197
- }
198
- set.add(roomId);
199
- if (set.size > MAX_TRACKED_SHARED_DM_CONTEXT_NOTICES) {
200
- const oldest = set.keys().next().value;
201
- if (typeof oldest === "string") {
202
- set.delete(oldest);
203
- }
204
- }
205
- return true;
206
- }
207
-
208
- function resolveMatrixSharedDmContextNotice(params: {
209
- storePath: string;
210
- sessionKey: string;
211
- roomId: string;
212
- accountId: string;
213
- dmSessionScope?: "per-user" | "per-room";
214
- sentRooms: Set<string>;
215
- logVerboseMessage: (message: string) => void;
216
- }): string | null {
217
- if ((params.dmSessionScope ?? "per-user") === "per-room") {
218
- return null;
219
- }
220
- if (params.sentRooms.has(params.roomId)) {
221
- return null;
222
- }
223
-
224
- try {
225
- const store = loadSessionStore(params.storePath);
226
- const currentSession = resolveMatrixStoredSessionMeta(
227
- resolveSessionStoreEntry({
228
- store,
229
- sessionKey: params.sessionKey,
230
- }).existing,
231
- );
232
- if (!currentSession) {
233
- return null;
234
- }
235
- if (currentSession.channel && currentSession.channel !== "matrix") {
236
- return null;
237
- }
238
- if (currentSession.accountId && currentSession.accountId !== params.accountId) {
239
- return null;
240
- }
241
- if (!currentSession.directUserId) {
242
- return null;
243
- }
244
- if (!currentSession.roomId || currentSession.roomId === params.roomId) {
245
- return null;
246
- }
247
-
248
- return [
249
- "This Matrix DM is sharing a session with another Matrix DM room.",
250
- "Use /focus here for a one-off isolated thread session when thread bindings are enabled, or set",
251
- "channels.lobi.dm.sessionScope to per-room to isolate each Matrix DM room.",
252
- ].join(" ");
253
- } catch (err) {
254
- params.logVerboseMessage(
255
- `matrix: failed checking shared DM session notice room=${params.roomId} (${String(err)})`,
256
- );
257
- return null;
258
- }
259
- }
260
-
261
- function resolveMatrixPendingHistoryText(params: {
262
- mentionPrecheckText: string;
263
- content: RoomMessageEventContent;
264
- mediaUrl?: string;
265
- }): string {
266
- if (params.mentionPrecheckText) {
267
- return params.mentionPrecheckText;
268
- }
269
- if (!params.mediaUrl) {
270
- return "";
271
- }
272
- const body = typeof params.content.body === "string" ? params.content.body.trim() : undefined;
273
- const filename =
274
- typeof params.content.filename === "string" ? params.content.filename.trim() : undefined;
275
- const msgtype = typeof params.content.msgtype === "string" ? params.content.msgtype : undefined;
276
- return (
277
- formatMatrixMessageText({
278
- body: resolveMatrixMessageBody({ body, filename, msgtype }),
279
- attachment: resolveMatrixMessageAttachment({ body, filename, msgtype }),
280
- }) ?? ""
281
- );
282
- }
283
-
284
- function resolveMatrixAllowBotsMode(value?: boolean | "mentions"): MatrixAllowBotsMode {
285
- if (value === true) {
286
- return "all";
287
- }
288
- if (value === "mentions") {
289
- return "mentions";
290
- }
291
- return "off";
292
- }
293
-
294
- export function createMatrixRoomMessageHandler(params: MatrixMonitorHandlerParams) {
295
- const {
296
- client,
297
- core,
298
- cfg,
299
- accountId,
300
- runtime,
301
- logger,
302
- logVerboseMessage,
303
- allowFrom,
304
- groupAllowFrom = [],
305
- roomsConfig,
306
- accountAllowBots,
307
- configuredBotUserIds = new Set<string>(),
308
- groupPolicy,
309
- replyToMode,
310
- threadReplies,
311
- dmThreadReplies,
312
- dmSessionScope,
313
- streaming,
314
- blockStreamingEnabled,
315
- dmEnabled,
316
- dmPolicy,
317
- textLimit,
318
- mediaMaxBytes,
319
- historyLimit,
320
- startupMs,
321
- startupGraceMs,
322
- dropPreStartupMessages,
323
- inboundDeduper,
324
- directTracker,
325
- getRoomInfo,
326
- getMemberDisplayName,
327
- needsRoomAliasesForConfig,
328
- } = params;
329
- const contextVisibilityMode = resolveChannelContextVisibilityMode({
330
- cfg,
331
- channel: "matrix",
332
- accountId,
333
- });
334
- let cachedStoreAllowFrom: {
335
- value: string[];
336
- expiresAtMs: number;
337
- } | null = null;
338
- const pairingReplySentAtMsBySender = new Map<string, number>();
339
- const resolveThreadContext = createMatrixThreadContextResolver({
340
- client,
341
- getMemberDisplayName,
342
- logVerboseMessage,
343
- });
344
- const resolveReplyContext = createMatrixReplyContextResolver({
345
- client,
346
- getMemberDisplayName,
347
- logVerboseMessage,
348
- });
349
- const roomHistoryTracker = createRoomHistoryTracker();
350
- const roomIngressTails = new Map<string, Promise<void>>();
351
- const sharedDmContextNoticeRooms = new Set<string>();
352
-
353
- const readStoreAllowFrom = async (): Promise<string[]> => {
354
- const now = Date.now();
355
- if (cachedStoreAllowFrom && now < cachedStoreAllowFrom.expiresAtMs) {
356
- return cachedStoreAllowFrom.value;
357
- }
358
- const value = await core.channel.pairing
359
- .readAllowFromStore({
360
- channel: "matrix",
361
- env: process.env,
362
- accountId,
363
- })
364
- .catch(() => []);
365
- cachedStoreAllowFrom = {
366
- value,
367
- expiresAtMs: now + ALLOW_FROM_STORE_CACHE_TTL_MS,
368
- };
369
- return value;
370
- };
371
-
372
- const shouldSendPairingReply = (senderId: string, created: boolean): boolean => {
373
- const now = Date.now();
374
- if (created) {
375
- pairingReplySentAtMsBySender.set(senderId, now);
376
- return true;
377
- }
378
- const lastSentAtMs = pairingReplySentAtMsBySender.get(senderId);
379
- if (typeof lastSentAtMs === "number" && now - lastSentAtMs < PAIRING_REPLY_COOLDOWN_MS) {
380
- return false;
381
- }
382
- pairingReplySentAtMsBySender.set(senderId, now);
383
- if (pairingReplySentAtMsBySender.size > MAX_TRACKED_PAIRING_REPLY_SENDERS) {
384
- const oldestSender = pairingReplySentAtMsBySender.keys().next().value;
385
- if (typeof oldestSender === "string") {
386
- pairingReplySentAtMsBySender.delete(oldestSender);
387
- }
388
- }
389
- return true;
390
- };
391
-
392
- const runRoomIngress = async <T>(roomId: string, task: () => Promise<T>): Promise<T> => {
393
- const previous = roomIngressTails.get(roomId) ?? Promise.resolve();
394
- let releaseCurrent!: () => void;
395
- const current = new Promise<void>((resolve) => {
396
- releaseCurrent = resolve;
397
- });
398
- const chain = previous.catch(() => {}).then(() => current);
399
- roomIngressTails.set(roomId, chain);
400
- await previous.catch(() => {});
401
- try {
402
- return await task();
403
- } finally {
404
- releaseCurrent();
405
- if (roomIngressTails.get(roomId) === chain) {
406
- roomIngressTails.delete(roomId);
407
- }
408
- }
409
- };
410
-
411
- return async (roomId: string, event: MatrixRawEvent) => {
412
- const eventId = typeof event.event_id === "string" ? event.event_id.trim() : "";
413
- let claimedInboundEvent = false;
414
- let draftStreamRef: ReturnType<typeof createMatrixDraftStream> | undefined;
415
- let draftConsumed = false;
416
- try {
417
- const eventType = event.type;
418
- if (eventType === EventType.RoomMessageEncrypted) {
419
- // Encrypted payloads are emitted separately after decryption.
420
- return;
421
- }
422
-
423
- const isPollEvent = isPollEventType(eventType);
424
- const isReactionEvent = eventType === EventType.Reaction;
425
- const locationContent = event.content as LocationMessageEventContent;
426
- const isLocationEvent =
427
- eventType === EventType.Location ||
428
- (eventType === EventType.RoomMessage && locationContent.msgtype === EventType.Location);
429
- if (
430
- eventType !== EventType.RoomMessage &&
431
- !isPollEvent &&
432
- !isLocationEvent &&
433
- !isReactionEvent
434
- ) {
435
- return;
436
- }
437
- logVerboseMessage(
438
- `matrix: inbound event room=${roomId} type=${eventType} id=${event.event_id ?? "unknown"}`,
439
- );
440
- if (event.unsigned?.redacted_because) {
441
- return;
442
- }
443
- const senderId = event.sender;
444
- if (!senderId) {
445
- return;
446
- }
447
- const eventTs = event.origin_server_ts;
448
- const eventAge = event.unsigned?.age;
449
- const commitInboundEventIfClaimed = async () => {
450
- if (!claimedInboundEvent || !inboundDeduper || !eventId) {
451
- return;
452
- }
453
- await inboundDeduper.commitEvent({ roomId, eventId });
454
- claimedInboundEvent = false;
455
- };
456
- const readIngressPrefix = async () => {
457
- const selfUserId = await client.getUserId();
458
- if (senderId === selfUserId) {
459
- return undefined;
460
- }
461
- if (dropPreStartupMessages) {
462
- if (typeof eventTs === "number" && eventTs < startupMs - startupGraceMs) {
463
- return undefined;
464
- }
465
- if (
466
- typeof eventTs !== "number" &&
467
- typeof eventAge === "number" &&
468
- eventAge > startupGraceMs
469
- ) {
470
- return undefined;
471
- }
472
- }
473
-
474
- let content = event.content as RoomMessageEventContent;
475
-
476
- if (
477
- eventType === EventType.RoomMessage &&
478
- isMatrixVerificationRoomMessage({
479
- msgtype: (content as { msgtype?: unknown }).msgtype,
480
- body: content.body,
481
- })
482
- ) {
483
- logVerboseMessage(`matrix: skip verification/system room message room=${roomId}`);
484
- return undefined;
485
- }
486
-
487
- const locationPayload: MatrixLocationPayload | null = resolveMatrixLocation({
488
- eventType,
489
- content: content as LocationMessageEventContent,
490
- });
491
-
492
- const relates = content["m.relates_to"];
493
- if (relates && "rel_type" in relates && relates.rel_type === RelationType.Replace) {
494
- return undefined;
495
- }
496
- if (eventId && inboundDeduper) {
497
- claimedInboundEvent = inboundDeduper.claimEvent({ roomId, eventId });
498
- if (!claimedInboundEvent) {
499
- logVerboseMessage(`matrix: skip duplicate inbound event room=${roomId} id=${eventId}`);
500
- return undefined;
501
- }
502
- }
503
-
504
- const isDirectMessage = await directTracker.isDirectMessage({
505
- roomId,
506
- senderId,
507
- selfUserId,
508
- });
509
- return { content, isDirectMessage, locationPayload, selfUserId };
510
- };
511
- const continueIngress = async (params: {
512
- content: RoomMessageEventContent;
513
- isDirectMessage: boolean;
514
- locationPayload: MatrixLocationPayload | null;
515
- selfUserId: string;
516
- }) => {
517
- let content = params.content;
518
- const isDirectMessage = params.isDirectMessage;
519
- const isRoom = !isDirectMessage;
520
- const { locationPayload, selfUserId } = params;
521
- if (isRoom && groupPolicy === "disabled") {
522
- await commitInboundEventIfClaimed();
523
- return undefined;
524
- }
525
-
526
- const roomInfoForConfig =
527
- isRoom && needsRoomAliasesForConfig
528
- ? await getRoomInfo(roomId, { includeAliases: true })
529
- : undefined;
530
- const roomAliasesForConfig = roomInfoForConfig
531
- ? [roomInfoForConfig.canonicalAlias ?? "", ...roomInfoForConfig.altAliases].filter(
532
- Boolean,
533
- )
534
- : [];
535
- const roomConfigInfo = isRoom
536
- ? resolveMatrixRoomConfig({
537
- rooms: roomsConfig,
538
- roomId,
539
- aliases: roomAliasesForConfig,
540
- })
541
- : undefined;
542
- const roomConfig = roomConfigInfo?.config;
543
- const allowBotsMode = resolveMatrixAllowBotsMode(roomConfig?.allowBots ?? accountAllowBots);
544
- const isConfiguredBotSender = configuredBotUserIds.has(senderId);
545
- const roomMatchMeta = roomConfigInfo
546
- ? `matchKey=${roomConfigInfo.matchKey ?? "none"} matchSource=${
547
- roomConfigInfo.matchSource ?? "none"
548
- }`
549
- : "matchKey=none matchSource=none";
550
-
551
- if (isConfiguredBotSender && allowBotsMode === "off") {
552
- logVerboseMessage(
553
- `matrix: drop configured bot sender=${senderId} (allowBots=false${isDirectMessage ? "" : `, ${roomMatchMeta}`})`,
554
- );
555
- await commitInboundEventIfClaimed();
556
- return undefined;
557
- }
558
-
559
- if (isRoom && roomConfig && !roomConfigInfo?.allowed) {
560
- logVerboseMessage(`matrix: room disabled room=${roomId} (${roomMatchMeta})`);
561
- await commitInboundEventIfClaimed();
562
- return undefined;
563
- }
564
- if (isRoom && groupPolicy === "allowlist") {
565
- if (!roomConfigInfo?.allowlistConfigured) {
566
- logVerboseMessage(`matrix: drop room message (no allowlist, ${roomMatchMeta})`);
567
- await commitInboundEventIfClaimed();
568
- return undefined;
569
- }
570
- if (!roomConfig) {
571
- logVerboseMessage(`matrix: drop room message (not in allowlist, ${roomMatchMeta})`);
572
- await commitInboundEventIfClaimed();
573
- return undefined;
574
- }
575
- }
576
-
577
- let senderNamePromise: Promise<string> | null = null;
578
- const getSenderName = async (): Promise<string> => {
579
- senderNamePromise ??= getMemberDisplayName(roomId, senderId).catch(() => senderId);
580
- return await senderNamePromise;
581
- };
582
- const storeAllowFrom = await readStoreAllowFrom();
583
- const roomUsers = roomConfig?.users ?? [];
584
- const accessState = resolveMatrixMonitorAccessState({
585
- allowFrom,
586
- storeAllowFrom,
587
- groupAllowFrom,
588
- roomUsers,
589
- senderId,
590
- isRoom,
591
- });
592
- const {
593
- effectiveGroupAllowFrom,
594
- effectiveRoomUsers,
595
- groupAllowConfigured,
596
- directAllowMatch,
597
- roomUserMatch,
598
- groupAllowMatch,
599
- commandAuthorizers,
600
- } = accessState;
601
-
602
- if (isDirectMessage) {
603
- if (!dmEnabled || dmPolicy === "disabled") {
604
- await commitInboundEventIfClaimed();
605
- return undefined;
606
- }
607
- if (dmPolicy !== "open") {
608
- const allowMatchMeta = formatAllowlistMatchMeta(directAllowMatch);
609
- if (!directAllowMatch.allowed) {
610
- if (!isReactionEvent && dmPolicy === "pairing") {
611
- const senderName = await getSenderName();
612
- const { code, created } = await core.channel.pairing.upsertPairingRequest({
613
- channel: "matrix",
614
- id: senderId,
615
- accountId,
616
- meta: { name: senderName },
617
- });
618
- if (shouldSendPairingReply(senderId, created)) {
619
- const pairingReply = core.channel.pairing.buildPairingReply({
620
- channel: "matrix",
621
- idLine: `Your Matrix user id: ${senderId}`,
622
- code,
623
- });
624
- logVerboseMessage(
625
- created
626
- ? `matrix pairing request sender=${senderId} name=${senderName ?? "unknown"} (${allowMatchMeta})`
627
- : `matrix pairing reminder sender=${senderId} name=${senderName ?? "unknown"} (${allowMatchMeta})`,
628
- );
629
- try {
630
- await sendMessageMatrix(
631
- `room:${roomId}`,
632
- created
633
- ? pairingReply
634
- : `${pairingReply}\n\nPairing request is still pending approval. Reusing existing code.`,
635
- {
636
- client,
637
- cfg,
638
- accountId,
639
- },
640
- );
641
- await commitInboundEventIfClaimed();
642
- } catch (err) {
643
- logVerboseMessage(
644
- `matrix pairing reply failed for ${senderId}: ${String(err)}`,
645
- );
646
- return undefined;
647
- }
648
- } else {
649
- logVerboseMessage(
650
- `matrix pairing reminder suppressed sender=${senderId} (cooldown)`,
651
- );
652
- await commitInboundEventIfClaimed();
653
- }
654
- }
655
- if (isReactionEvent || dmPolicy !== "pairing") {
656
- logVerboseMessage(
657
- `matrix: blocked ${isReactionEvent ? "reaction" : "dm"} sender ${senderId} (dmPolicy=${dmPolicy}, ${allowMatchMeta})`,
658
- );
659
- await commitInboundEventIfClaimed();
660
- }
661
- return undefined;
662
- }
663
- }
664
- }
665
-
666
- if (isRoom && roomUserMatch && !roomUserMatch.allowed) {
667
- logVerboseMessage(
668
- `matrix: blocked sender ${senderId} (room users allowlist, ${roomMatchMeta}, ${formatAllowlistMatchMeta(
669
- roomUserMatch,
670
- )})`,
671
- );
672
- await commitInboundEventIfClaimed();
673
- return undefined;
674
- }
675
- if (
676
- isRoom &&
677
- groupPolicy === "allowlist" &&
678
- effectiveRoomUsers.length === 0 &&
679
- groupAllowConfigured &&
680
- groupAllowMatch &&
681
- !groupAllowMatch.allowed
682
- ) {
683
- logVerboseMessage(
684
- `matrix: blocked sender ${senderId} (groupAllowFrom, ${roomMatchMeta}, ${formatAllowlistMatchMeta(
685
- groupAllowMatch,
686
- )})`,
687
- );
688
- await commitInboundEventIfClaimed();
689
- return undefined;
690
- }
691
- if (isRoom) {
692
- logVerboseMessage(`matrix: allow room ${roomId} (${roomMatchMeta})`);
693
- }
694
-
695
- if (isReactionEvent) {
696
- const senderName = await getSenderName();
697
- await handleInboundMatrixReaction({
698
- client,
699
- core,
700
- cfg,
701
- accountId,
702
- roomId,
703
- event,
704
- senderId,
705
- senderLabel: senderName,
706
- selfUserId,
707
- isDirectMessage,
708
- logVerboseMessage,
709
- });
710
- await commitInboundEventIfClaimed();
711
- return undefined;
712
- }
713
-
714
- let pollSnapshotPromise: Promise<MatrixPollSnapshot | null> | null = null;
715
- const getPollSnapshot = async (): Promise<MatrixPollSnapshot | null> => {
716
- if (!isPollEvent) {
717
- return null;
718
- }
719
- pollSnapshotPromise ??= fetchMatrixPollSnapshot(client, roomId, event).catch((err) => {
720
- logVerboseMessage(
721
- `matrix: failed resolving poll snapshot room=${roomId} id=${event.event_id ?? "unknown"}: ${String(err)}`,
722
- );
723
- return null;
724
- });
725
- return await pollSnapshotPromise;
726
- };
727
-
728
- const mentionPrecheckText = resolveMatrixMentionPrecheckText({
729
- eventType,
730
- content,
731
- locationText: locationPayload?.text,
732
- });
733
- const contentUrl =
734
- "url" in content && typeof content.url === "string" ? content.url : undefined;
735
- const contentFile =
736
- "file" in content && content.file && typeof content.file === "object"
737
- ? content.file
738
- : undefined;
739
- const mediaUrl = contentUrl ?? contentFile?.url;
740
- const pendingHistoryText = resolveMatrixPendingHistoryText({
741
- mentionPrecheckText,
742
- content,
743
- mediaUrl,
744
- });
745
- const pendingHistoryPollText =
746
- !pendingHistoryText && isPollEvent && historyLimit > 0
747
- ? (await getPollSnapshot())?.text
748
- : "";
749
- if (!mentionPrecheckText && !mediaUrl && !isPollEvent) {
750
- await commitInboundEventIfClaimed();
751
- return undefined;
752
- }
753
-
754
- const _messageId = event.event_id ?? "";
755
- const _threadRootId = resolveMatrixThreadRootId({ event, content });
756
- const thread = resolveMatrixThreadRouting({
757
- isDirectMessage,
758
- threadReplies,
759
- dmThreadReplies,
760
- messageId: _messageId,
761
- threadRootId: _threadRootId,
762
- });
763
- const {
764
- route: _route,
765
- configuredBinding: _configuredBinding,
766
- runtimeBindingId: _runtimeBindingId,
767
- } = resolveMatrixInboundRoute({
768
- cfg,
769
- accountId,
770
- roomId,
771
- senderId,
772
- isDirectMessage,
773
- dmSessionScope,
774
- threadId: thread.threadId,
775
- eventTs: eventTs ?? undefined,
776
- resolveAgentRoute: core.channel.routing.resolveAgentRoute,
777
- });
778
- const hasExplicitSessionBinding = _configuredBinding !== null || _runtimeBindingId !== null;
779
- const agentMentionRegexes = core.channel.mentions.buildMentionRegexes(cfg, _route.agentId);
780
- const selfDisplayName = content.formatted_body
781
- ? await getMemberDisplayName(roomId, selfUserId).catch(() => undefined)
782
- : undefined;
783
- const { wasMentioned, hasExplicitMention } = resolveMentions({
784
- content,
785
- userId: selfUserId,
786
- displayName: selfDisplayName,
787
- text: mentionPrecheckText,
788
- mentionRegexes: agentMentionRegexes,
789
- });
790
- if (
791
- isConfiguredBotSender &&
792
- allowBotsMode === "mentions" &&
793
- !isDirectMessage &&
794
- !wasMentioned
795
- ) {
796
- logVerboseMessage(
797
- `matrix: drop configured bot sender=${senderId} (allowBots=mentions, missing mention, ${roomMatchMeta})`,
798
- );
799
- await commitInboundEventIfClaimed();
800
- return undefined;
801
- }
802
- const allowTextCommands = core.channel.commands.shouldHandleTextCommands({
803
- cfg,
804
- surface: "matrix",
805
- });
806
- const useAccessGroups = cfg.commands?.useAccessGroups !== false;
807
- const hasControlCommandInMessage = core.channel.text.hasControlCommand(
808
- mentionPrecheckText,
809
- cfg,
810
- );
811
- const commandGate = resolveControlCommandGate({
812
- useAccessGroups,
813
- authorizers: commandAuthorizers,
814
- allowTextCommands,
815
- hasControlCommand: hasControlCommandInMessage,
816
- });
817
- const commandAuthorized = commandGate.commandAuthorized;
818
- if (isRoom && commandGate.shouldBlock) {
819
- logInboundDrop({
820
- log: logVerboseMessage,
821
- channel: "matrix",
822
- reason: "control command (unauthorized)",
823
- target: senderId,
824
- });
825
- await commitInboundEventIfClaimed();
826
- return undefined;
827
- }
828
- const shouldRequireMention = isRoom
829
- ? roomConfig?.autoReply === true
830
- ? false
831
- : roomConfig?.autoReply === false
832
- ? true
833
- : typeof roomConfig?.requireMention === "boolean"
834
- ? roomConfig?.requireMention
835
- : true
836
- : false;
837
- const shouldBypassMention =
838
- allowTextCommands &&
839
- isRoom &&
840
- shouldRequireMention &&
841
- !wasMentioned &&
842
- !hasExplicitMention &&
843
- commandAuthorized &&
844
- hasControlCommandInMessage;
845
- const canDetectMention = agentMentionRegexes.length > 0 || hasExplicitMention;
846
- if (isRoom && shouldRequireMention && !wasMentioned && !shouldBypassMention) {
847
- const pendingHistoryBody = pendingHistoryText || pendingHistoryPollText;
848
- if (historyLimit > 0 && pendingHistoryBody) {
849
- const pendingEntry: HistoryEntry = {
850
- sender: senderId,
851
- body: pendingHistoryBody,
852
- timestamp: eventTs ?? undefined,
853
- messageId: _messageId,
854
- };
855
- roomHistoryTracker.recordPending(roomId, pendingEntry);
856
- }
857
- logger.info("skipping room message", { roomId, reason: "no-mention" });
858
- await commitInboundEventIfClaimed();
859
- return undefined;
860
- }
861
-
862
- if (isPollEvent) {
863
- const pollSnapshot = await getPollSnapshot();
864
- if (!pollSnapshot) {
865
- return undefined;
866
- }
867
- content = {
868
- msgtype: "m.text",
869
- body: pollSnapshot.text,
870
- } as unknown as RoomMessageEventContent;
871
- }
872
-
873
- let media: {
874
- path: string;
875
- contentType?: string;
876
- placeholder: string;
877
- } | null = null;
878
- let mediaDownloadFailed = false;
879
- let mediaSizeLimitExceeded = false;
880
- const finalContentUrl =
881
- "url" in content && typeof content.url === "string" ? content.url : undefined;
882
- const finalContentFile =
883
- "file" in content && content.file && typeof content.file === "object"
884
- ? content.file
885
- : undefined;
886
- const finalMediaUrl = finalContentUrl ?? finalContentFile?.url;
887
- const contentBody = typeof content.body === "string" ? content.body.trim() : "";
888
- const contentFilename = typeof content.filename === "string" ? content.filename.trim() : "";
889
- const originalFilename = contentFilename || contentBody || undefined;
890
- const contentInfo =
891
- "info" in content && content.info && typeof content.info === "object"
892
- ? (content.info as { mimetype?: string; size?: number })
893
- : undefined;
894
- const contentType = contentInfo?.mimetype;
895
- const contentSize = typeof contentInfo?.size === "number" ? contentInfo.size : undefined;
896
- if (finalMediaUrl?.startsWith("mxc://")) {
897
- try {
898
- media = await downloadMatrixMedia({
899
- client,
900
- mxcUrl: finalMediaUrl,
901
- contentType,
902
- sizeBytes: contentSize,
903
- maxBytes: mediaMaxBytes,
904
- file: finalContentFile,
905
- originalFilename,
906
- });
907
- } catch (err) {
908
- mediaDownloadFailed = true;
909
- if (isMatrixMediaSizeLimitError(err)) {
910
- mediaSizeLimitExceeded = true;
911
- }
912
- const errorText = formatMatrixErrorMessage(err);
913
- logVerboseMessage(
914
- `matrix: media download failed room=${roomId} id=${event.event_id ?? "unknown"} type=${content.msgtype} error=${errorText}`,
915
- );
916
- logger.warn("matrix media download failed", {
917
- roomId,
918
- eventId: event.event_id,
919
- msgtype: content.msgtype,
920
- encrypted: Boolean(finalContentFile),
921
- error: errorText,
922
- });
923
- }
924
- }
925
-
926
- const rawBody = locationPayload?.text ?? contentBody;
927
- const bodyText = resolveMatrixInboundBodyText({
928
- rawBody,
929
- filename: typeof content.filename === "string" ? content.filename : undefined,
930
- mediaPlaceholder: media?.placeholder,
931
- msgtype: content.msgtype,
932
- hadMediaUrl: Boolean(finalMediaUrl),
933
- mediaDownloadFailed,
934
- mediaSizeLimitExceeded,
935
- });
936
- if (!bodyText) {
937
- await commitInboundEventIfClaimed();
938
- return undefined;
939
- }
940
- const senderName = await getSenderName();
941
- if (_configuredBinding) {
942
- const ensured = await ensureConfiguredAcpBindingReady({
943
- cfg,
944
- configuredBinding: _configuredBinding,
945
- });
946
- if (!ensured.ok) {
947
- logInboundDrop({
948
- log: logVerboseMessage,
949
- channel: "matrix",
950
- reason: "configured ACP binding unavailable",
951
- target: _configuredBinding.spec.conversationId,
952
- });
953
- return undefined;
954
- }
955
- }
956
- if (_runtimeBindingId) {
957
- getSessionBindingService().touch(_runtimeBindingId, eventTs ?? undefined);
958
- }
959
- const preparedTrigger =
960
- isRoom && historyLimit > 0
961
- ? roomHistoryTracker.prepareTrigger(_route.agentId, roomId, historyLimit, {
962
- sender: senderName,
963
- body: bodyText,
964
- timestamp: eventTs ?? undefined,
965
- messageId: _messageId,
966
- })
967
- : undefined;
968
- const inboundHistory = preparedTrigger?.history;
969
- const triggerSnapshot = preparedTrigger;
970
-
971
- return {
972
- route: _route,
973
- hasExplicitSessionBinding,
974
- roomConfig,
975
- isDirectMessage,
976
- isRoom,
977
- shouldRequireMention,
978
- wasMentioned,
979
- shouldBypassMention,
980
- canDetectMention,
981
- commandAuthorized,
982
- inboundHistory,
983
- senderName,
984
- bodyText,
985
- media,
986
- locationPayload,
987
- messageId: _messageId,
988
- triggerSnapshot,
989
- threadRootId: _threadRootId,
990
- thread,
991
- effectiveGroupAllowFrom,
992
- effectiveRoomUsers,
993
- };
994
- };
995
- const ingressResult =
996
- historyLimit > 0
997
- ? await runRoomIngress(roomId, async () => {
998
- const prefix = await readIngressPrefix();
999
- if (!prefix) {
1000
- return undefined;
1001
- }
1002
- if (prefix.isDirectMessage) {
1003
- return { deferredPrefix: prefix } as const;
1004
- }
1005
- return { ingressResult: await continueIngress(prefix) } as const;
1006
- })
1007
- : undefined;
1008
- const resolvedIngressResult =
1009
- historyLimit > 0
1010
- ? ingressResult?.deferredPrefix
1011
- ? await continueIngress(ingressResult.deferredPrefix)
1012
- : ingressResult?.ingressResult
1013
- : await (async () => {
1014
- const prefix = await readIngressPrefix();
1015
- if (!prefix) {
1016
- return undefined;
1017
- }
1018
- return await continueIngress(prefix);
1019
- })();
1020
- if (!resolvedIngressResult) {
1021
- return;
1022
- }
1023
-
1024
- const {
1025
- route: _route,
1026
- hasExplicitSessionBinding,
1027
- roomConfig,
1028
- isDirectMessage,
1029
- isRoom,
1030
- shouldRequireMention,
1031
- wasMentioned,
1032
- shouldBypassMention,
1033
- canDetectMention,
1034
- commandAuthorized,
1035
- inboundHistory,
1036
- senderName,
1037
- bodyText,
1038
- media,
1039
- locationPayload,
1040
- messageId: _messageId,
1041
- triggerSnapshot,
1042
- threadRootId: _threadRootId,
1043
- thread,
1044
- effectiveGroupAllowFrom,
1045
- effectiveRoomUsers,
1046
- } = resolvedIngressResult;
1047
-
1048
- // Keep the per-room ingress gate focused on ordering-sensitive state updates.
1049
- // Prompt/session enrichment below can run concurrently after the history snapshot is fixed.
1050
- const replyToEventId = resolveMatrixReplyToEventId(event.content as RoomMessageEventContent);
1051
- const threadTarget = thread.threadId;
1052
- const isRoomContextSenderAllowed = (contextSenderId?: string): boolean => {
1053
- if (!isRoom || !contextSenderId) {
1054
- return true;
1055
- }
1056
- if (effectiveRoomUsers.length > 0) {
1057
- return resolveMatrixAllowListMatch({
1058
- allowList: effectiveRoomUsers,
1059
- userId: contextSenderId,
1060
- }).allowed;
1061
- }
1062
- if (groupPolicy === "allowlist" && effectiveGroupAllowFrom.length > 0) {
1063
- return resolveMatrixAllowListMatch({
1064
- allowList: effectiveGroupAllowFrom,
1065
- userId: contextSenderId,
1066
- }).allowed;
1067
- }
1068
- return true;
1069
- };
1070
- const shouldIncludeRoomContextSender = (
1071
- kind: "thread" | "quote" | "history",
1072
- contextSenderId?: string,
1073
- ): boolean =>
1074
- evaluateSupplementalContextVisibility({
1075
- mode: contextVisibilityMode,
1076
- kind,
1077
- senderAllowed: isRoomContextSenderAllowed(contextSenderId),
1078
- }).include;
1079
- let threadContext = _threadRootId
1080
- ? await resolveThreadContext({ roomId, threadRootId: _threadRootId })
1081
- : undefined;
1082
- let threadContextBlockedByPolicy = false;
1083
- if (
1084
- threadContext?.senderId &&
1085
- !shouldIncludeRoomContextSender("thread", threadContext.senderId)
1086
- ) {
1087
- logVerboseMessage(`matrix: drop thread root context (mode=${contextVisibilityMode})`);
1088
- threadContextBlockedByPolicy = true;
1089
- threadContext = undefined;
1090
- }
1091
- let replyContext: Awaited<ReturnType<typeof resolveReplyContext>> | undefined;
1092
- if (replyToEventId && replyToEventId === _threadRootId && threadContext?.summary) {
1093
- replyContext = {
1094
- replyToBody: threadContext.summary,
1095
- replyToSender: threadContext.senderLabel,
1096
- replyToSenderId: threadContext.senderId,
1097
- };
1098
- } else if (
1099
- replyToEventId &&
1100
- replyToEventId === _threadRootId &&
1101
- threadContextBlockedByPolicy
1102
- ) {
1103
- replyContext = await resolveReplyContext({ roomId, eventId: replyToEventId });
1104
- } else {
1105
- replyContext = replyToEventId
1106
- ? await resolveReplyContext({ roomId, eventId: replyToEventId })
1107
- : undefined;
1108
- }
1109
- if (
1110
- replyContext?.replyToSenderId &&
1111
- !shouldIncludeRoomContextSender("quote", replyContext.replyToSenderId)
1112
- ) {
1113
- logVerboseMessage(`matrix: drop reply context (mode=${contextVisibilityMode})`);
1114
- replyContext = undefined;
1115
- }
1116
- const roomInfo = isRoom ? await getRoomInfo(roomId) : undefined;
1117
- const roomName = roomInfo?.name;
1118
- const envelopeFrom = isDirectMessage ? senderName : (roomName ?? roomId);
1119
- const textWithId = `${bodyText}\n[matrix event id: ${_messageId} room: ${roomId}]`;
1120
- const storePath = core.channel.session.resolveStorePath(cfg.session?.store, {
1121
- agentId: _route.agentId,
1122
- });
1123
- const envelopeOptions = core.channel.reply.resolveEnvelopeFormatOptions(cfg);
1124
- const previousTimestamp = core.channel.session.readSessionUpdatedAt({
1125
- storePath,
1126
- sessionKey: _route.sessionKey,
1127
- });
1128
- const sharedDmNoticeSessionKey = threadTarget
1129
- ? _route.mainSessionKey || _route.sessionKey
1130
- : _route.sessionKey;
1131
- const sharedDmContextNotice = isDirectMessage
1132
- ? hasExplicitSessionBinding
1133
- ? null
1134
- : resolveMatrixSharedDmContextNotice({
1135
- storePath,
1136
- sessionKey: sharedDmNoticeSessionKey,
1137
- roomId,
1138
- accountId: _route.accountId,
1139
- dmSessionScope,
1140
- sentRooms: sharedDmContextNoticeRooms,
1141
- logVerboseMessage,
1142
- })
1143
- : null;
1144
- const body = core.channel.reply.formatAgentEnvelope({
1145
- channel: "Matrix",
1146
- from: envelopeFrom,
1147
- timestamp: eventTs ?? undefined,
1148
- previousTimestamp,
1149
- envelope: envelopeOptions,
1150
- body: textWithId,
1151
- });
1152
- const groupSystemPrompt = normalizeOptionalString(roomConfig?.systemPrompt);
1153
- const ctxPayload = core.channel.reply.finalizeInboundContext({
1154
- Body: body,
1155
- RawBody: bodyText,
1156
- CommandBody: bodyText,
1157
- InboundHistory: inboundHistory && inboundHistory.length > 0 ? inboundHistory : undefined,
1158
- From: isDirectMessage ? `matrix:${senderId}` : `matrix:channel:${roomId}`,
1159
- To: `room:${roomId}`,
1160
- SessionKey: _route.sessionKey,
1161
- AccountId: _route.accountId,
1162
- ChatType: isDirectMessage ? "direct" : "channel",
1163
- ConversationLabel: envelopeFrom,
1164
- SenderName: senderName,
1165
- SenderId: senderId,
1166
- SenderUsername: senderId.split(":")[0]?.replace(/^@/, ""),
1167
- GroupSubject: isRoom ? (roomName ?? roomId) : undefined,
1168
- GroupId: isRoom ? roomId : undefined,
1169
- GroupSystemPrompt: isRoom ? groupSystemPrompt : undefined,
1170
- Provider: "matrix" as const,
1171
- Surface: "matrix" as const,
1172
- WasMentioned: isRoom ? wasMentioned : undefined,
1173
- MessageSid: _messageId,
1174
- ReplyToId: threadTarget ? undefined : (replyToEventId ?? undefined),
1175
- ReplyToBody: replyContext?.replyToBody,
1176
- ReplyToSender: replyContext?.replyToSender,
1177
- MessageThreadId: threadTarget,
1178
- ThreadStarterBody: threadContext?.threadStarterBody,
1179
- Timestamp: eventTs ?? undefined,
1180
- MediaPath: media?.path,
1181
- MediaType: media?.contentType,
1182
- MediaUrl: media?.path,
1183
- ...locationPayload?.context,
1184
- CommandAuthorized: commandAuthorized,
1185
- CommandSource: "text" as const,
1186
- NativeChannelId: roomId,
1187
- NativeDirectUserId: isDirectMessage ? senderId : undefined,
1188
- OriginatingChannel: "matrix" as const,
1189
- OriginatingTo: `room:${roomId}`,
1190
- });
1191
-
1192
- await core.channel.session.recordInboundSession({
1193
- storePath,
1194
- sessionKey: ctxPayload.SessionKey ?? _route.sessionKey,
1195
- ctx: ctxPayload,
1196
- updateLastRoute: isDirectMessage
1197
- ? {
1198
- sessionKey: _route.mainSessionKey,
1199
- channel: "matrix",
1200
- to: `room:${roomId}`,
1201
- accountId: _route.accountId,
1202
- }
1203
- : undefined,
1204
- onRecordError: (err) => {
1205
- logger.warn("failed updating session meta", {
1206
- error: String(err),
1207
- storePath,
1208
- sessionKey: ctxPayload.SessionKey ?? _route.sessionKey,
1209
- });
1210
- },
1211
- });
1212
-
1213
- if (sharedDmContextNotice && markTrackedRoomIfFirst(sharedDmContextNoticeRooms, roomId)) {
1214
- client
1215
- .sendMessage(roomId, {
1216
- msgtype: "m.notice",
1217
- body: sharedDmContextNotice,
1218
- })
1219
- .catch((err) => {
1220
- logVerboseMessage(
1221
- `matrix: failed sending shared DM session notice room=${roomId}: ${String(err)}`,
1222
- );
1223
- });
1224
- }
1225
-
1226
- const preview = bodyText.slice(0, 200).replace(/\n/g, "\\n");
1227
- logVerboseMessage(`matrix inbound: room=${roomId} from=${senderId} preview="${preview}"`);
1228
-
1229
- const replyTarget = ctxPayload.To;
1230
- if (!replyTarget) {
1231
- runtime.error?.("matrix: missing reply target");
1232
- return;
1233
- }
1234
-
1235
- const { ackReaction, ackReactionScope: ackScope } = resolveMatrixAckReactionConfig({
1236
- cfg,
1237
- agentId: _route.agentId,
1238
- accountId,
1239
- });
1240
- const shouldAckReaction = () =>
1241
- Boolean(
1242
- ackReaction &&
1243
- core.channel.reactions.shouldAckReaction({
1244
- scope: ackScope,
1245
- isDirect: isDirectMessage,
1246
- isGroup: isRoom,
1247
- isMentionableGroup: isRoom,
1248
- requireMention: shouldRequireMention,
1249
- canDetectMention,
1250
- effectiveWasMentioned: wasMentioned || shouldBypassMention,
1251
- shouldBypassMention,
1252
- }),
1253
- );
1254
- if (shouldAckReaction() && _messageId) {
1255
- reactMatrixMessage(roomId, _messageId, ackReaction, client).catch((err) => {
1256
- logVerboseMessage(`matrix react failed for room ${roomId}: ${String(err)}`);
1257
- });
1258
- }
1259
-
1260
- if (_messageId) {
1261
- sendReadReceiptMatrix(roomId, _messageId, client).catch((err) => {
1262
- logVerboseMessage(
1263
- `matrix: read receipt failed room=${roomId} id=${_messageId}: ${String(err)}`,
1264
- );
1265
- });
1266
- }
1267
-
1268
- const tableMode = core.channel.text.resolveMarkdownTableMode({
1269
- cfg,
1270
- channel: "matrix",
1271
- accountId: _route.accountId,
1272
- });
1273
- const mediaLocalRoots = getAgentScopedMediaLocalRoots(cfg, _route.agentId);
1274
- let finalReplyDeliveryFailed = false;
1275
- let nonFinalReplyDeliveryFailed = false;
1276
- const { onModelSelected, ...prefixOptions } = createReplyPrefixOptions({
1277
- cfg,
1278
- agentId: _route.agentId,
1279
- channel: "matrix",
1280
- accountId: _route.accountId,
1281
- });
1282
- const typingCallbacks = createTypingCallbacks({
1283
- start: () => sendTypingMatrix(roomId, true, undefined, client),
1284
- stop: () => sendTypingMatrix(roomId, false, undefined, client),
1285
- onStartError: (err) => {
1286
- logTypingFailure({
1287
- log: logVerboseMessage,
1288
- channel: "matrix",
1289
- action: "start",
1290
- target: roomId,
1291
- error: err,
1292
- });
1293
- },
1294
- onStopError: (err) => {
1295
- logTypingFailure({
1296
- log: logVerboseMessage,
1297
- channel: "matrix",
1298
- action: "stop",
1299
- target: roomId,
1300
- error: err,
1301
- });
1302
- },
1303
- });
1304
- const draftStreamingEnabled = streaming !== "off";
1305
- const quietDraftStreaming = streaming === "quiet";
1306
- const draftReplyToId = replyToMode !== "off" && !threadTarget ? _messageId : undefined;
1307
- const draftStream = draftStreamingEnabled
1308
- ? createMatrixDraftStream({
1309
- roomId,
1310
- client,
1311
- cfg,
1312
- mode: quietDraftStreaming ? "quiet" : "partial",
1313
- threadId: threadTarget,
1314
- replyToId: draftReplyToId,
1315
- preserveReplyId: replyToMode === "all",
1316
- accountId: _route.accountId,
1317
- log: logVerboseMessage,
1318
- })
1319
- : undefined;
1320
- draftStreamRef = draftStream;
1321
- type PendingDraftBoundary = {
1322
- messageGeneration: number;
1323
- endOffset: number;
1324
- };
1325
- // Track the current draft block start plus any queued block-end offsets
1326
- // inside the model's cumulative partial text so multiple block
1327
- // boundaries can drain in order even when Matrix delivery lags behind.
1328
- let currentDraftMessageGeneration = 0;
1329
- let currentDraftBlockOffset = 0;
1330
- let latestDraftFullText = "";
1331
- const pendingDraftBoundaries: PendingDraftBoundary[] = [];
1332
- const latestQueuedDraftBoundaryOffsets = new Map<number, number>();
1333
- let currentDraftReplyToId = draftReplyToId;
1334
- // Set after the first final payload consumes or discards the draft event
1335
- // so subsequent finals go through normal delivery.
1336
-
1337
- const getDisplayableDraftText = () => {
1338
- const nextDraftBoundaryOffset = pendingDraftBoundaries.find(
1339
- (boundary) => boundary.messageGeneration === currentDraftMessageGeneration,
1340
- )?.endOffset;
1341
- if (nextDraftBoundaryOffset === undefined) {
1342
- return latestDraftFullText.slice(currentDraftBlockOffset);
1343
- }
1344
- return latestDraftFullText.slice(currentDraftBlockOffset, nextDraftBoundaryOffset);
1345
- };
1346
-
1347
- const updateDraftFromLatestFullText = () => {
1348
- const blockText = getDisplayableDraftText();
1349
- if (blockText) {
1350
- draftStream?.update(blockText);
1351
- }
1352
- };
1353
-
1354
- const queueDraftBlockBoundary = (payload: ReplyPayload, context?: BlockReplyContext) => {
1355
- const payloadTextLength = payload.text?.length ?? 0;
1356
- const messageGeneration = context?.assistantMessageIndex ?? currentDraftMessageGeneration;
1357
- const lastQueuedDraftBoundaryOffset =
1358
- latestQueuedDraftBoundaryOffsets.get(messageGeneration) ?? 0;
1359
- // Logical block boundaries must follow emitted block text, not whichever
1360
- // later partial preview has already arrived by the time the async
1361
- // boundary callback drains.
1362
- const nextDraftBoundaryOffset = lastQueuedDraftBoundaryOffset + payloadTextLength;
1363
- latestQueuedDraftBoundaryOffsets.set(messageGeneration, nextDraftBoundaryOffset);
1364
- pendingDraftBoundaries.push({
1365
- messageGeneration,
1366
- endOffset: nextDraftBoundaryOffset,
1367
- });
1368
- };
1369
-
1370
- const advanceDraftBlockBoundary = (options?: { fallbackToLatestEnd?: boolean }) => {
1371
- const completedBoundary = pendingDraftBoundaries.shift();
1372
- if (completedBoundary) {
1373
- if (
1374
- !pendingDraftBoundaries.some(
1375
- (entry) => entry.messageGeneration === completedBoundary.messageGeneration,
1376
- )
1377
- ) {
1378
- latestQueuedDraftBoundaryOffsets.delete(completedBoundary.messageGeneration);
1379
- }
1380
- if (completedBoundary.messageGeneration === currentDraftMessageGeneration) {
1381
- currentDraftBlockOffset = completedBoundary.endOffset;
1382
- }
1383
- return;
1384
- }
1385
- if (options?.fallbackToLatestEnd) {
1386
- currentDraftBlockOffset = latestDraftFullText.length;
1387
- }
1388
- };
1389
-
1390
- const resetDraftBlockOffsets = () => {
1391
- currentDraftMessageGeneration += 1;
1392
- currentDraftBlockOffset = 0;
1393
- latestDraftFullText = "";
1394
- };
1395
-
1396
- const { dispatcher, replyOptions, markDispatchIdle, markRunComplete } =
1397
- core.channel.reply.createReplyDispatcherWithTyping({
1398
- ...prefixOptions,
1399
- humanDelay: core.channel.reply.resolveHumanDelayConfig(cfg, _route.agentId),
1400
- deliver: async (payload: ReplyPayload, info: { kind: string }) => {
1401
- if (draftStream && info.kind !== "tool" && !payload.isCompactionNotice) {
1402
- const hasMedia = Boolean(payload.mediaUrl) || (payload.mediaUrls?.length ?? 0) > 0;
1403
-
1404
- await draftStream.stop();
1405
- const draftEventId = draftStream.eventId();
1406
-
1407
- if (draftConsumed) {
1408
- await deliverMatrixReplies({
1409
- cfg,
1410
- replies: [payload],
1411
- roomId,
1412
- client,
1413
- runtime,
1414
- textLimit,
1415
- replyToMode,
1416
- threadId: threadTarget,
1417
- accountId: _route.accountId,
1418
- mediaLocalRoots,
1419
- tableMode,
1420
- });
1421
- return;
1422
- }
1423
-
1424
- const payloadReplyToId = normalizeOptionalString(payload.replyToId);
1425
- const payloadReplyMismatch =
1426
- replyToMode !== "off" &&
1427
- !threadTarget &&
1428
- payloadReplyToId !== currentDraftReplyToId;
1429
- const mustDeliverFinalNormally = draftStream.mustDeliverFinalNormally();
1430
-
1431
- if (
1432
- draftEventId &&
1433
- payload.text &&
1434
- !hasMedia &&
1435
- !payloadReplyMismatch &&
1436
- !mustDeliverFinalNormally
1437
- ) {
1438
- try {
1439
- const requiresFinalEdit =
1440
- quietDraftStreaming || !draftStream.matchesPreparedText(payload.text);
1441
- if (requiresFinalEdit) {
1442
- await editMessageMatrix(roomId, draftEventId, payload.text, {
1443
- client,
1444
- cfg,
1445
- threadId: threadTarget,
1446
- accountId: _route.accountId,
1447
- extraContent: quietDraftStreaming
1448
- ? buildMatrixFinalizedPreviewContent()
1449
- : undefined,
1450
- });
1451
- } else if (!(await draftStream.finalizeLive())) {
1452
- throw new Error("Matrix draft live finalize failed");
1453
- }
1454
- } catch {
1455
- await redactMatrixDraftEvent(client, roomId, draftEventId);
1456
- await deliverMatrixReplies({
1457
- cfg,
1458
- replies: [payload],
1459
- roomId,
1460
- client,
1461
- runtime,
1462
- textLimit,
1463
- replyToMode,
1464
- threadId: threadTarget,
1465
- accountId: _route.accountId,
1466
- mediaLocalRoots,
1467
- tableMode,
1468
- });
1469
- }
1470
- draftConsumed = true;
1471
- } else if (draftEventId && hasMedia && !payloadReplyMismatch) {
1472
- let textEditOk = !mustDeliverFinalNormally;
1473
- const payloadText = payload.text;
1474
- const payloadTextMatchesDraft =
1475
- typeof payloadText === "string" && draftStream.matchesPreparedText(payloadText);
1476
- const reusesDraftTextUnchanged =
1477
- typeof payloadText === "string" &&
1478
- Boolean(payloadText.trim()) &&
1479
- payloadTextMatchesDraft;
1480
- const requiresFinalTextEdit =
1481
- quietDraftStreaming ||
1482
- (typeof payloadText === "string" && !payloadTextMatchesDraft);
1483
- if (textEditOk && payloadText && requiresFinalTextEdit) {
1484
- textEditOk = await editMessageMatrix(roomId, draftEventId, payloadText, {
1485
- client,
1486
- cfg,
1487
- threadId: threadTarget,
1488
- accountId: _route.accountId,
1489
- extraContent: quietDraftStreaming
1490
- ? buildMatrixFinalizedPreviewContent()
1491
- : undefined,
1492
- }).then(
1493
- () => true,
1494
- () => false,
1495
- );
1496
- } else if (textEditOk && reusesDraftTextUnchanged) {
1497
- textEditOk = await draftStream.finalizeLive();
1498
- }
1499
- const reusesDraftAsFinalText = Boolean(payload.text?.trim()) && textEditOk;
1500
- if (!reusesDraftAsFinalText) {
1501
- await redactMatrixDraftEvent(client, roomId, draftEventId);
1502
- }
1503
- await deliverMatrixReplies({
1504
- cfg,
1505
- replies: [
1506
- { ...payload, text: reusesDraftAsFinalText ? undefined : payload.text },
1507
- ],
1508
- roomId,
1509
- client,
1510
- runtime,
1511
- textLimit,
1512
- replyToMode,
1513
- threadId: threadTarget,
1514
- accountId: _route.accountId,
1515
- mediaLocalRoots,
1516
- tableMode,
1517
- });
1518
- draftConsumed = true;
1519
- } else {
1520
- const draftRedacted =
1521
- Boolean(draftEventId) && (payloadReplyMismatch || mustDeliverFinalNormally);
1522
- if (draftRedacted && draftEventId) {
1523
- await redactMatrixDraftEvent(client, roomId, draftEventId);
1524
- }
1525
- const deliveredFallback = await deliverMatrixReplies({
1526
- cfg,
1527
- replies: [payload],
1528
- roomId,
1529
- client,
1530
- runtime,
1531
- textLimit,
1532
- replyToMode,
1533
- threadId: threadTarget,
1534
- accountId: _route.accountId,
1535
- mediaLocalRoots,
1536
- tableMode,
1537
- });
1538
- if (draftRedacted || deliveredFallback) {
1539
- draftConsumed = true;
1540
- }
1541
- }
1542
-
1543
- if (info.kind === "block") {
1544
- draftConsumed = false;
1545
- advanceDraftBlockBoundary({ fallbackToLatestEnd: true });
1546
- draftStream.reset();
1547
- currentDraftReplyToId = replyToMode === "all" ? draftReplyToId : undefined;
1548
- updateDraftFromLatestFullText();
1549
-
1550
- // Re-assert typing so the user still sees the indicator while
1551
- // the next block generates.
1552
- await sendTypingMatrix(roomId, true, undefined, client).catch(() => {});
1553
- }
1554
- } else {
1555
- await deliverMatrixReplies({
1556
- cfg,
1557
- replies: [payload],
1558
- roomId,
1559
- client,
1560
- runtime,
1561
- textLimit,
1562
- replyToMode,
1563
- threadId: threadTarget,
1564
- accountId: _route.accountId,
1565
- mediaLocalRoots,
1566
- tableMode,
1567
- });
1568
- }
1569
- },
1570
- onError: (err: unknown, info: { kind: "tool" | "block" | "final" }) => {
1571
- if (info.kind === "final") {
1572
- finalReplyDeliveryFailed = true;
1573
- } else {
1574
- nonFinalReplyDeliveryFailed = true;
1575
- }
1576
- if (info.kind === "block") {
1577
- advanceDraftBlockBoundary({ fallbackToLatestEnd: true });
1578
- }
1579
- runtime.error?.(`matrix ${info.kind} reply failed: ${String(err)}`);
1580
- },
1581
- onReplyStart: typingCallbacks.onReplyStart,
1582
- onIdle: typingCallbacks.onIdle,
1583
- });
1584
-
1585
- const { queuedFinal, counts } = await core.channel.reply.withReplyDispatcher({
1586
- dispatcher,
1587
- onSettled: () => {
1588
- markDispatchIdle();
1589
- },
1590
- run: async () => {
1591
- try {
1592
- return await core.channel.reply.dispatchReplyFromConfig({
1593
- ctx: ctxPayload,
1594
- cfg,
1595
- dispatcher,
1596
- replyOptions: {
1597
- ...replyOptions,
1598
- skillFilter: roomConfig?.skills,
1599
- // Keep block streaming enabled when explicitly requested, even
1600
- // with draft previews on. The draft remains the live preview
1601
- // for the current assistant block, while block deliveries
1602
- // finalize completed blocks into their own preserved events.
1603
- disableBlockStreaming: !blockStreamingEnabled,
1604
- onPartialReply: draftStream
1605
- ? (payload) => {
1606
- latestDraftFullText = payload.text ?? "";
1607
- updateDraftFromLatestFullText();
1608
- }
1609
- : undefined,
1610
- onBlockReplyQueued: draftStream
1611
- ? (payload, context) => {
1612
- if (payload.isCompactionNotice === true) {
1613
- return;
1614
- }
1615
- queueDraftBlockBoundary(payload, context);
1616
- }
1617
- : undefined,
1618
- // Reset draft boundary bookkeeping on assistant message
1619
- // boundaries so post-tool blocks stream from a fresh
1620
- // cumulative payload (payload.text resets upstream).
1621
- onAssistantMessageStart: draftStream
1622
- ? () => {
1623
- resetDraftBlockOffsets();
1624
- }
1625
- : undefined,
1626
- onModelSelected,
1627
- },
1628
- });
1629
- } finally {
1630
- markRunComplete();
1631
- }
1632
- },
1633
- });
1634
- if (finalReplyDeliveryFailed) {
1635
- logVerboseMessage(
1636
- `matrix: final reply delivery failed room=${roomId} id=${_messageId}; leaving event uncommitted`,
1637
- );
1638
- // Do not advance watermark — the event will be retried and should see the same history.
1639
- return;
1640
- }
1641
- if (!queuedFinal && nonFinalReplyDeliveryFailed) {
1642
- logVerboseMessage(
1643
- `matrix: non-final reply delivery failed room=${roomId} id=${_messageId}; leaving event uncommitted`,
1644
- );
1645
- // Do not advance watermark — the event will be retried.
1646
- return;
1647
- }
1648
- // Advance the per-agent watermark now that the reply succeeded (or no reply was needed).
1649
- // Only advance to the snapshot position — messages added during async processing remain
1650
- // visible for the next trigger.
1651
- if (isRoom && triggerSnapshot) {
1652
- roomHistoryTracker.consumeHistory(_route.agentId, roomId, triggerSnapshot, _messageId);
1653
- }
1654
- if (!queuedFinal) {
1655
- await commitInboundEventIfClaimed();
1656
- return;
1657
- }
1658
- const finalCount = counts.final;
1659
- logVerboseMessage(
1660
- `matrix: delivered ${finalCount} reply${finalCount === 1 ? "" : "ies"} to ${replyTarget}`,
1661
- );
1662
- await commitInboundEventIfClaimed();
1663
- } catch (err) {
1664
- runtime.error?.(`matrix handler failed: ${String(err)}`);
1665
- } finally {
1666
- // Stop the draft stream timer so partial drafts don't leak if the
1667
- // model run throws or times out mid-stream.
1668
- if (draftStreamRef) {
1669
- const draftEventId = await draftStreamRef.stop().catch(() => undefined);
1670
- if (draftEventId && !draftConsumed) {
1671
- await redactMatrixDraftEvent(client, roomId, draftEventId);
1672
- }
1673
- }
1674
- if (claimedInboundEvent && inboundDeduper && eventId) {
1675
- inboundDeduper.releaseEvent({ roomId, eventId });
1676
- }
1677
- }
1678
- };
1679
- }