@openclaw/matrix 2026.9.6 → 2026.9.7

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 (1932) hide show
  1. package/assets/icon.png +0 -0
  2. package/dist/.setup/account-selection-B7axQ80R.mjs +196 -0
  3. package/dist/.setup/accounts-WkgrIxMt.mjs +138 -0
  4. package/dist/.setup/approval-handler.runtime-C-pw3NvY.mjs +408 -0
  5. package/dist/.setup/approval-reactions-BrS5ECU0.mjs +196 -0
  6. package/dist/.setup/channel-DXenXmj0.mjs +1198 -0
  7. package/dist/.setup/channel.runtime-BXUawOno.mjs +71 -0
  8. package/dist/.setup/channel.setup-DWfLaXqT.mjs +372 -0
  9. package/dist/.setup/cli-IhZO2OEj.mjs +1300 -0
  10. package/dist/.setup/cli-metadata-nowEgdY0.mjs +22 -0
  11. package/dist/.setup/client-BXATebyo.mjs +27 -0
  12. package/dist/.setup/client-Ccv77kwh.mjs +916 -0
  13. package/dist/.setup/client-bootstrap-BiHX55is.mjs +75 -0
  14. package/dist/.setup/config-update-5m1Un5gJ.mjs +145 -0
  15. package/dist/.setup/create-client-DRZ580E3.mjs +64 -0
  16. package/dist/.setup/credentials-C9qDO5-2.mjs +74 -0
  17. package/dist/.setup/credentials-read-KD4o5biZ.mjs +77 -0
  18. package/dist/.setup/crypto-runtime-DPjIDF8H.mjs +1077 -0
  19. package/dist/.setup/crypto-snapshot-doctor.runtime-44FrCPR7.mjs +91 -0
  20. package/dist/.setup/deps-CLQ4EOq7.mjs +162 -0
  21. package/dist/.setup/device-health-U-yoVjPw.mjs +21 -0
  22. package/dist/.setup/direct-management-Cn2t8n1V.mjs +300 -0
  23. package/dist/.setup/directory-live-_sw-Q7KO.mjs +118 -0
  24. package/dist/.setup/doctor-DMvEBx6o.mjs +49 -0
  25. package/dist/.setup/doctor-contract-De6geW0h.mjs +350 -0
  26. package/dist/.setup/draft-stream-CdVMstpR.mjs +157 -0
  27. package/dist/.setup/encryption-guidance-B6797jNA.mjs +16 -0
  28. package/dist/.setup/exec-approvals-fsiMQ1ce.mjs +186 -0
  29. package/dist/.setup/file-sync-store-B-9bMb_O.mjs +187 -0
  30. package/dist/.setup/http-client-C1XvVD3K.mjs +362 -0
  31. package/dist/.setup/idb-persistence-DBvfre1X.mjs +227 -0
  32. package/dist/.setup/idb-persistence-lock-D_mDu4Cf.mjs +27 -0
  33. package/dist/.setup/inbound-dedupe-BGrMrTTu.mjs +48 -0
  34. package/dist/.setup/joined-room-encryption-TZoOKXgh.mjs +67 -0
  35. package/dist/.setup/logger-CVv56jzH.mjs +74 -0
  36. package/dist/.setup/logging-mhnFQGzB.mjs +96 -0
  37. package/dist/.setup/messages-Buz27pi5.mjs +324 -0
  38. package/dist/.setup/monitor-BBg5qgov.mjs +4352 -0
  39. package/dist/.setup/onboarding-hJaieQj5.mjs +482 -0
  40. package/dist/.setup/outbound-C9vBijaH.mjs +199 -0
  41. package/dist/.setup/profile-B3DD2jYa.mjs +100 -0
  42. package/dist/.setup/profile-update-CmxIAd4c.mjs +66 -0
  43. package/dist/.setup/reaction-events-mnzc_JvP.mjs +168 -0
  44. package/dist/.setup/resolve-targets-BFq3q4c9.mjs +87 -0
  45. package/dist/.setup/room-info-BbTGRJcR.mjs +134 -0
  46. package/dist/.setup/sdk-DmRVM0VA.mjs +1907 -0
  47. package/dist/.setup/send-GOF64QRc.mjs +2117 -0
  48. package/dist/.setup/send-currentness-C2rMVVIQ.mjs +87 -0
  49. package/dist/.setup/setup-bootstrap-AzalcuCW.mjs +62 -0
  50. package/dist/.setup/setup-core-BeifoeL4.mjs +377 -0
  51. package/dist/.setup/setup-plugin-api-Bsbdw41x.mjs +3 -0
  52. package/dist/.setup/startup-verification-Aiy_xVdI.mjs +204 -0
  53. package/dist/.setup/storage-BXS2cB2i.mjs +288 -0
  54. package/dist/.setup/storage-metadata-BDRZ7vpX.mjs +371 -0
  55. package/dist/.setup/storage-paths-B51JM-pC.mjs +53 -0
  56. package/dist/.setup/subagent-hooks-D5kd_kzN.mjs +52 -0
  57. package/dist/.setup/sync-cache-state-C6sEmvJK.mjs +192 -0
  58. package/dist/.setup/thread-bindings-jXu_9cHE.mjs +443 -0
  59. package/dist/.setup/thread-bindings-shared-hxKkYC1W.mjs +89 -0
  60. package/dist/.setup/tool-actions-Ce7Okg6m.mjs +746 -0
  61. package/dist/.setup/url-validation-CF6pG6eE.mjs +36 -0
  62. package/dist/.setup/verification-C45rOZkM.mjs +329 -0
  63. package/dist/api.js +7 -7
  64. package/dist/channel-plugin-api.js +1 -1
  65. package/dist/cli-metadata.js +1 -1
  66. package/dist/contract-api.js +2 -2
  67. package/dist/doctor-contract-api.js +142 -288
  68. package/dist/helper-api.js +2 -2
  69. package/dist/index.js +1 -1
  70. package/dist/plugin-entry.handlers.runtime.js +17 -9
  71. package/dist/runtime-api.js +4 -4
  72. package/dist/session-binding-contract-api.js +1 -1
  73. package/dist/setup-entry.js +1 -1
  74. package/dist/setup-plugin-api.js +1 -1
  75. package/dist/subagent-hooks-api.js +1 -1
  76. package/dist/thread-bindings-runtime.js +1 -1
  77. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +1289 -0
  78. package/node_modules/@openclaw/fs-safe/LICENSE +22 -0
  79. package/node_modules/@openclaw/fs-safe/README.md +672 -0
  80. package/node_modules/@openclaw/fs-safe/SECURITY.md +45 -0
  81. package/node_modules/@openclaw/fs-safe/dist/absolute-path.d.ts +32 -0
  82. package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +323 -0
  83. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +41 -0
  84. package/node_modules/@openclaw/fs-safe/dist/advanced.js +40 -0
  85. package/node_modules/@openclaw/fs-safe/dist/archive-crc32.d.ts +1 -0
  86. package/node_modules/@openclaw/fs-safe/dist/archive-crc32.js +19 -0
  87. package/node_modules/@openclaw/fs-safe/dist/archive-deadline.d.ts +11 -0
  88. package/node_modules/@openclaw/fs-safe/dist/archive-deadline.js +101 -0
  89. package/node_modules/@openclaw/fs-safe/dist/archive-durability.d.ts +23 -0
  90. package/node_modules/@openclaw/fs-safe/dist/archive-durability.js +180 -0
  91. package/node_modules/@openclaw/fs-safe/dist/archive-entry.d.ts +13 -0
  92. package/node_modules/@openclaw/fs-safe/dist/archive-entry.js +85 -0
  93. package/node_modules/@openclaw/fs-safe/dist/archive-errors.d.ts +12 -0
  94. package/node_modules/@openclaw/fs-safe/dist/archive-errors.js +23 -0
  95. package/node_modules/@openclaw/fs-safe/dist/archive-gzip-tail.d.ts +20 -0
  96. package/node_modules/@openclaw/fs-safe/dist/archive-gzip-tail.js +99 -0
  97. package/node_modules/@openclaw/fs-safe/dist/archive-input.d.ts +18 -0
  98. package/node_modules/@openclaw/fs-safe/dist/archive-input.js +98 -0
  99. package/node_modules/@openclaw/fs-safe/dist/archive-kind.d.ts +7 -0
  100. package/node_modules/@openclaw/fs-safe/dist/archive-kind.js +71 -0
  101. package/node_modules/@openclaw/fs-safe/dist/archive-limits.d.ts +56 -0
  102. package/node_modules/@openclaw/fs-safe/dist/archive-limits.js +131 -0
  103. package/node_modules/@openclaw/fs-safe/dist/archive-merge.d.ts +22 -0
  104. package/node_modules/@openclaw/fs-safe/dist/archive-merge.js +282 -0
  105. package/node_modules/@openclaw/fs-safe/dist/archive-parser-errors.d.ts +1 -0
  106. package/node_modules/@openclaw/fs-safe/dist/archive-parser-errors.js +12 -0
  107. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  108. package/node_modules/@openclaw/fs-safe/dist/archive-plan.d.ts +85 -0
  109. package/node_modules/@openclaw/fs-safe/dist/archive-plan.js +119 -0
  110. package/node_modules/@openclaw/fs-safe/dist/archive-read.d.ts +5 -0
  111. package/node_modules/@openclaw/fs-safe/dist/archive-read.js +234 -0
  112. package/node_modules/@openclaw/fs-safe/dist/archive-staging.d.ts +32 -0
  113. package/node_modules/@openclaw/fs-safe/dist/archive-staging.js +308 -0
  114. package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.d.ts +27 -0
  115. package/node_modules/@openclaw/fs-safe/dist/archive-tar-stream.js +127 -0
  116. package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.d.ts +29 -0
  117. package/node_modules/@openclaw/fs-safe/dist/archive-tar-wasm.js +203 -0
  118. package/node_modules/@openclaw/fs-safe/dist/archive-zip-admission.d.ts +7 -0
  119. package/node_modules/@openclaw/fs-safe/dist/archive-zip-admission.js +96 -0
  120. package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.d.ts +1 -0
  121. package/node_modules/@openclaw/fs-safe/dist/archive-zip-count.js +160 -0
  122. package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.d.ts +21 -0
  123. package/node_modules/@openclaw/fs-safe/dist/archive-zip-directory.js +267 -0
  124. package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.d.ts +24 -0
  125. package/node_modules/@openclaw/fs-safe/dist/archive-zip-entry.js +10 -0
  126. package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.d.ts +4 -0
  127. package/node_modules/@openclaw/fs-safe/dist/archive-zip-integrity.js +30 -0
  128. package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.d.ts +12 -0
  129. package/node_modules/@openclaw/fs-safe/dist/archive-zip-loader.js +150 -0
  130. package/node_modules/@openclaw/fs-safe/dist/archive-zip-manifest.d.ts +4 -0
  131. package/node_modules/@openclaw/fs-safe/dist/archive-zip-manifest.js +24 -0
  132. package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.d.ts +17 -0
  133. package/node_modules/@openclaw/fs-safe/dist/archive-zip-names.js +149 -0
  134. package/node_modules/@openclaw/fs-safe/dist/archive-zip-preflight.d.ts +4 -0
  135. package/node_modules/@openclaw/fs-safe/dist/archive-zip-preflight.js +21 -0
  136. package/node_modules/@openclaw/fs-safe/dist/archive.d.ts +20 -0
  137. package/node_modules/@openclaw/fs-safe/dist/archive.js +332 -0
  138. package/node_modules/@openclaw/fs-safe/dist/async-lock.d.ts +1 -0
  139. package/node_modules/@openclaw/fs-safe/dist/async-lock.js +17 -0
  140. package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +6 -0
  141. package/node_modules/@openclaw/fs-safe/dist/atomic.js +4 -0
  142. package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.d.ts +2 -0
  143. package/node_modules/@openclaw/fs-safe/dist/bounded-read-stream.js +15 -0
  144. package/node_modules/@openclaw/fs-safe/dist/bounded-read.d.ts +25 -0
  145. package/node_modules/@openclaw/fs-safe/dist/bounded-read.js +143 -0
  146. package/node_modules/@openclaw/fs-safe/dist/byte-budget.d.ts +3 -0
  147. package/node_modules/@openclaw/fs-safe/dist/byte-budget.js +9 -0
  148. package/node_modules/@openclaw/fs-safe/dist/byte-view.d.ts +2 -0
  149. package/node_modules/@openclaw/fs-safe/dist/byte-view.js +13 -0
  150. package/node_modules/@openclaw/fs-safe/dist/clone-metadata.d.ts +19 -0
  151. package/node_modules/@openclaw/fs-safe/dist/clone-metadata.js +36 -0
  152. package/node_modules/@openclaw/fs-safe/dist/config.d.ts +2 -0
  153. package/node_modules/@openclaw/fs-safe/dist/config.js +2 -0
  154. package/node_modules/@openclaw/fs-safe/dist/containment.d.ts +1 -0
  155. package/node_modules/@openclaw/fs-safe/dist/copy-file-input.d.ts +21 -0
  156. package/node_modules/@openclaw/fs-safe/dist/copy-file-input.js +71 -0
  157. package/node_modules/@openclaw/fs-safe/dist/copy-policy.d.ts +2 -0
  158. package/node_modules/@openclaw/fs-safe/dist/copy-policy.js +8 -0
  159. package/node_modules/@openclaw/fs-safe/dist/copy-publication.d.ts +18 -0
  160. package/node_modules/@openclaw/fs-safe/dist/copy-publication.js +29 -0
  161. package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.d.ts +8 -0
  162. package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.js +245 -0
  163. package/node_modules/@openclaw/fs-safe/dist/copy.d.ts +15 -0
  164. package/node_modules/@openclaw/fs-safe/dist/copy.js +143 -0
  165. package/node_modules/@openclaw/fs-safe/dist/create-owned-file.d.ts +7 -0
  166. package/node_modules/@openclaw/fs-safe/dist/create-owned-file.js +16 -0
  167. package/node_modules/@openclaw/fs-safe/dist/create.d.ts +17 -0
  168. package/node_modules/@openclaw/fs-safe/dist/create.js +388 -0
  169. package/node_modules/@openclaw/fs-safe/dist/creation-boundary.d.ts +60 -0
  170. package/node_modules/@openclaw/fs-safe/dist/creation-boundary.js +371 -0
  171. package/node_modules/@openclaw/fs-safe/dist/deny-mutation-match.d.ts +2 -0
  172. package/node_modules/@openclaw/fs-safe/dist/deny-mutation-match.js +71 -0
  173. package/node_modules/@openclaw/fs-safe/dist/deny-mutations.d.ts +11 -0
  174. package/node_modules/@openclaw/fs-safe/dist/deny-mutations.js +96 -0
  175. package/node_modules/@openclaw/fs-safe/dist/device-path.d.ts +14 -0
  176. package/node_modules/@openclaw/fs-safe/dist/device-path.js +139 -0
  177. package/node_modules/@openclaw/fs-safe/dist/directory-durability.d.ts +43 -0
  178. package/node_modules/@openclaw/fs-safe/dist/directory-durability.js +286 -0
  179. package/node_modules/@openclaw/fs-safe/dist/directory-entry-path.d.ts +2 -0
  180. package/node_modules/@openclaw/fs-safe/dist/directory-entry-path.js +21 -0
  181. package/node_modules/@openclaw/fs-safe/dist/directory-guard.d.ts +54 -0
  182. package/node_modules/@openclaw/fs-safe/dist/directory-guard.js +176 -0
  183. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +39 -0
  184. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +285 -0
  185. package/node_modules/@openclaw/fs-safe/dist/directory-receipt.d.ts +23 -0
  186. package/node_modules/@openclaw/fs-safe/dist/directory-receipt.js +121 -0
  187. package/node_modules/@openclaw/fs-safe/dist/durability.d.ts +4 -0
  188. package/node_modules/@openclaw/fs-safe/dist/durability.js +3 -0
  189. package/node_modules/@openclaw/fs-safe/dist/effective-uid.d.ts +1 -0
  190. package/node_modules/@openclaw/fs-safe/dist/effective-uid.js +22 -0
  191. package/node_modules/@openclaw/fs-safe/dist/error-detail.d.ts +2 -0
  192. package/node_modules/@openclaw/fs-safe/dist/error-detail.js +13 -0
  193. package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +15 -0
  194. package/node_modules/@openclaw/fs-safe/dist/errors.js +27 -0
  195. package/node_modules/@openclaw/fs-safe/dist/file-cleanup.d.ts +19 -0
  196. package/node_modules/@openclaw/fs-safe/dist/file-cleanup.js +81 -0
  197. package/node_modules/@openclaw/fs-safe/dist/file-contents.d.ts +5 -0
  198. package/node_modules/@openclaw/fs-safe/dist/file-contents.js +40 -0
  199. package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.d.ts +15 -0
  200. package/node_modules/@openclaw/fs-safe/dist/file-handle-transfer.js +190 -0
  201. package/node_modules/@openclaw/fs-safe/dist/file-hash.d.ts +16 -0
  202. package/node_modules/@openclaw/fs-safe/dist/file-hash.js +296 -0
  203. package/node_modules/@openclaw/fs-safe/dist/file-identity.d.ts +7 -0
  204. package/node_modules/@openclaw/fs-safe/dist/file-identity.js +56 -0
  205. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.d.ts +22 -0
  206. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-acquisition.js +98 -0
  207. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +17 -0
  208. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +58 -0
  209. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.d.ts +3 -0
  210. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +303 -0
  211. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.d.ts +17 -0
  212. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-arbitration.js +66 -0
  213. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-held.d.ts +25 -0
  214. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-held.js +392 -0
  215. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.d.ts +40 -0
  216. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.js +209 -0
  217. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.d.ts +16 -0
  218. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.js +275 -0
  219. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-options.d.ts +11 -0
  220. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-options.js +58 -0
  221. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-registration.d.ts +1 -0
  222. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-registration.js +90 -0
  223. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.d.ts +34 -0
  224. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.js +288 -0
  225. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.d.ts +19 -0
  226. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +199 -0
  227. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.d.ts +17 -0
  228. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.js +341 -0
  229. package/node_modules/@openclaw/fs-safe/dist/file-lock.d.ts +23 -0
  230. package/node_modules/@openclaw/fs-safe/dist/file-lock.js +66 -0
  231. package/node_modules/@openclaw/fs-safe/dist/file-observation.d.ts +8 -0
  232. package/node_modules/@openclaw/fs-safe/dist/file-observation.js +22 -0
  233. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +34 -0
  234. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +174 -0
  235. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +11 -0
  236. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +110 -0
  237. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +15 -0
  238. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +319 -0
  239. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +9 -0
  240. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +128 -0
  241. package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +62 -0
  242. package/node_modules/@openclaw/fs-safe/dist/file-store.js +360 -0
  243. package/node_modules/@openclaw/fs-safe/dist/file-sync.d.ts +4 -0
  244. package/node_modules/@openclaw/fs-safe/dist/file-sync.js +19 -0
  245. package/node_modules/@openclaw/fs-safe/dist/filename.d.ts +8 -0
  246. package/node_modules/@openclaw/fs-safe/dist/filename.js +138 -0
  247. package/node_modules/@openclaw/fs-safe/dist/fs.d.ts +12 -0
  248. package/node_modules/@openclaw/fs-safe/dist/fs.js +30 -0
  249. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +25 -0
  250. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +281 -0
  251. package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.d.ts +32 -0
  252. package/node_modules/@openclaw/fs-safe/dist/guarded-mutation.js +81 -0
  253. package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.d.ts +1 -0
  254. package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.js +68 -0
  255. package/node_modules/@openclaw/fs-safe/dist/guest-native-python.d.ts +3 -0
  256. package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +127 -0
  257. package/node_modules/@openclaw/fs-safe/dist/guest.d.ts +8 -0
  258. package/node_modules/@openclaw/fs-safe/dist/guest.js +433 -0
  259. package/node_modules/@openclaw/fs-safe/dist/home-dir.d.ts +11 -0
  260. package/node_modules/@openclaw/fs-safe/dist/home-dir.js +149 -0
  261. package/node_modules/@openclaw/fs-safe/dist/index.d.ts +9 -0
  262. package/node_modules/@openclaw/fs-safe/dist/index.js +5 -0
  263. package/node_modules/@openclaw/fs-safe/dist/install-path.d.ts +25 -0
  264. package/node_modules/@openclaw/fs-safe/dist/install-path.js +136 -0
  265. package/node_modules/@openclaw/fs-safe/dist/json-document-store.d.ts +32 -0
  266. package/node_modules/@openclaw/fs-safe/dist/json-document-store.js +105 -0
  267. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.d.ts +14 -0
  268. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.js +154 -0
  269. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.d.ts +19 -0
  270. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-ownership.js +355 -0
  271. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.d.ts +5 -0
  272. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-read.js +65 -0
  273. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.d.ts +44 -0
  274. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue.js +210 -0
  275. package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +8 -0
  276. package/node_modules/@openclaw/fs-safe/dist/json-store.js +15 -0
  277. package/node_modules/@openclaw/fs-safe/dist/json-stringify.d.ts +1 -0
  278. package/node_modules/@openclaw/fs-safe/dist/json-stringify.js +7 -0
  279. package/node_modules/@openclaw/fs-safe/dist/json.d.ts +49 -0
  280. package/node_modules/@openclaw/fs-safe/dist/json.js +323 -0
  281. package/node_modules/@openclaw/fs-safe/dist/local-file-access.d.ts +8 -0
  282. package/node_modules/@openclaw/fs-safe/dist/local-file-access.js +81 -0
  283. package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.d.ts +13 -0
  284. package/node_modules/@openclaw/fs-safe/dist/local-file-descriptor.js +84 -0
  285. package/node_modules/@openclaw/fs-safe/dist/local-roots.d.ts +20 -0
  286. package/node_modules/@openclaw/fs-safe/dist/local-roots.js +160 -0
  287. package/node_modules/@openclaw/fs-safe/dist/lock-config.d.ts +9 -0
  288. package/node_modules/@openclaw/fs-safe/dist/lock-config.js +12 -0
  289. package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.d.ts +30 -0
  290. package/node_modules/@openclaw/fs-safe/dist/move-path-cleanup.js +224 -0
  291. package/node_modules/@openclaw/fs-safe/dist/move-path-stage.d.ts +7 -0
  292. package/node_modules/@openclaw/fs-safe/dist/move-path-stage.js +56 -0
  293. package/node_modules/@openclaw/fs-safe/dist/move-path.d.ts +20 -0
  294. package/node_modules/@openclaw/fs-safe/dist/move-path.js +390 -0
  295. package/node_modules/@openclaw/fs-safe/dist/mutation-authority.d.ts +8 -0
  296. package/node_modules/@openclaw/fs-safe/dist/mutation-authority.js +41 -0
  297. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +199 -0
  298. package/node_modules/@openclaw/fs-safe/dist/native-binding.js +8 -0
  299. package/node_modules/@openclaw/fs-safe/dist/native-config.d.ts +16 -0
  300. package/node_modules/@openclaw/fs-safe/dist/native-config.js +71 -0
  301. package/node_modules/@openclaw/fs-safe/dist/native-directory-observation.d.ts +16 -0
  302. package/node_modules/@openclaw/fs-safe/dist/native-directory-observation.js +37 -0
  303. package/node_modules/@openclaw/fs-safe/dist/native-fallback-warning.d.ts +3 -0
  304. package/node_modules/@openclaw/fs-safe/dist/native-fallback-warning.js +11 -0
  305. package/node_modules/@openclaw/fs-safe/dist/native-operations.d.ts +15 -0
  306. package/node_modules/@openclaw/fs-safe/dist/native-operations.js +111 -0
  307. package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.d.ts +34 -0
  308. package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.js +147 -0
  309. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.d.ts +6 -0
  310. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write-windows.js +252 -0
  311. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.d.ts +4 -0
  312. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +478 -0
  313. package/node_modules/@openclaw/fs-safe/dist/native-policy-directory-observation.d.ts +11 -0
  314. package/node_modules/@openclaw/fs-safe/dist/native-policy-directory-observation.js +61 -0
  315. package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.d.ts +13 -0
  316. package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.js +209 -0
  317. package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.d.ts +3 -0
  318. package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.js +8 -0
  319. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +45 -0
  320. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +442 -0
  321. package/node_modules/@openclaw/fs-safe/dist/native-staged-symlink.d.ts +13 -0
  322. package/node_modules/@openclaw/fs-safe/dist/native-staged-symlink.js +303 -0
  323. package/node_modules/@openclaw/fs-safe/dist/native.d.ts +13 -0
  324. package/node_modules/@openclaw/fs-safe/dist/native.js +209 -0
  325. package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.d.ts +7 -0
  326. package/node_modules/@openclaw/fs-safe/dist/opened-file-failure.js +46 -0
  327. package/node_modules/@openclaw/fs-safe/dist/opened-realpath.d.ts +15 -0
  328. package/node_modules/@openclaw/fs-safe/dist/opened-realpath.js +102 -0
  329. package/node_modules/@openclaw/fs-safe/dist/output.d.ts +16 -0
  330. package/node_modules/@openclaw/fs-safe/dist/output.js +139 -0
  331. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +7 -0
  332. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.js +46 -0
  333. package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch-worker.d.ts +1 -0
  334. package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch-worker.js +54 -0
  335. package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch.d.ts +5 -0
  336. package/node_modules/@openclaw/fs-safe/dist/owner-dacl-batch.js +64 -0
  337. package/node_modules/@openclaw/fs-safe/dist/owner-dacl.d.ts +32 -0
  338. package/node_modules/@openclaw/fs-safe/dist/owner-dacl.js +39 -0
  339. package/node_modules/@openclaw/fs-safe/dist/path-case.d.ts +6 -0
  340. package/node_modules/@openclaw/fs-safe/dist/path-case.js +136 -0
  341. package/node_modules/@openclaw/fs-safe/dist/path-policy.d.ts +24 -0
  342. package/node_modules/@openclaw/fs-safe/dist/path-policy.js +49 -0
  343. package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +6 -0
  344. package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +104 -0
  345. package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.d.ts +13 -0
  346. package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.js +37 -0
  347. package/node_modules/@openclaw/fs-safe/dist/path-segment-route.d.ts +6 -0
  348. package/node_modules/@openclaw/fs-safe/dist/path-segment-route.js +24 -0
  349. package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.d.ts +11 -0
  350. package/node_modules/@openclaw/fs-safe/dist/path-suffix-aliases.js +394 -0
  351. package/node_modules/@openclaw/fs-safe/dist/path.d.ts +20 -0
  352. package/node_modules/@openclaw/fs-safe/dist/path.js +185 -0
  353. package/node_modules/@openclaw/fs-safe/dist/permission-exec.d.ts +32 -0
  354. package/node_modules/@openclaw/fs-safe/dist/permission-exec.js +194 -0
  355. package/node_modules/@openclaw/fs-safe/dist/permissions-public.d.ts +5 -0
  356. package/node_modules/@openclaw/fs-safe/dist/permissions-public.js +4 -0
  357. package/node_modules/@openclaw/fs-safe/dist/permissions-windows.d.ts +48 -0
  358. package/node_modules/@openclaw/fs-safe/dist/permissions-windows.js +319 -0
  359. package/node_modules/@openclaw/fs-safe/dist/permissions.d.ts +52 -0
  360. package/node_modules/@openclaw/fs-safe/dist/permissions.js +131 -0
  361. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.d.ts +23 -0
  362. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.js +421 -0
  363. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.d.ts +38 -0
  364. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-observation.js +205 -0
  365. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.d.ts +18 -0
  366. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-shared-route.js +70 -0
  367. package/node_modules/@openclaw/fs-safe/dist/pinned-open.d.ts +30 -0
  368. package/node_modules/@openclaw/fs-safe/dist/pinned-open.js +98 -0
  369. package/node_modules/@openclaw/fs-safe/dist/pinned-operation.d.ts +1 -0
  370. package/node_modules/@openclaw/fs-safe/dist/pinned-operation.js +22 -0
  371. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.d.ts +3 -0
  372. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +35 -0
  373. package/node_modules/@openclaw/fs-safe/dist/pinned-write-mode.d.ts +4 -0
  374. package/node_modules/@openclaw/fs-safe/dist/pinned-write-mode.js +31 -0
  375. package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.d.ts +5 -0
  376. package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +185 -0
  377. package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.d.ts +68 -0
  378. package/node_modules/@openclaw/fs-safe/dist/pinned-write-types.js +1 -0
  379. package/node_modules/@openclaw/fs-safe/dist/pinned-write.d.ts +12 -0
  380. package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +300 -0
  381. package/node_modules/@openclaw/fs-safe/dist/positional-read.d.ts +8 -0
  382. package/node_modules/@openclaw/fs-safe/dist/positional-read.js +36 -0
  383. package/node_modules/@openclaw/fs-safe/dist/private-directory.d.ts +4 -0
  384. package/node_modules/@openclaw/fs-safe/dist/private-directory.js +30 -0
  385. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff-sync.d.ts +3 -0
  386. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff-sync.js +72 -0
  387. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.d.ts +53 -0
  388. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.js +358 -0
  389. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.d.ts +7 -0
  390. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +341 -0
  391. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.d.ts +13 -0
  392. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +60 -0
  393. package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.d.ts +27 -0
  394. package/node_modules/@openclaw/fs-safe/dist/publish-file-failure.js +22 -0
  395. package/node_modules/@openclaw/fs-safe/dist/publish-file.d.ts +19 -0
  396. package/node_modules/@openclaw/fs-safe/dist/publish-file.js +332 -0
  397. package/node_modules/@openclaw/fs-safe/dist/read-open-flags.d.ts +7 -0
  398. package/node_modules/@openclaw/fs-safe/dist/read-open-flags.js +13 -0
  399. package/node_modules/@openclaw/fs-safe/dist/read-opened-file.d.ts +17 -0
  400. package/node_modules/@openclaw/fs-safe/dist/read-opened-file.js +18 -0
  401. package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +3 -0
  402. package/node_modules/@openclaw/fs-safe/dist/realpath.js +43 -0
  403. package/node_modules/@openclaw/fs-safe/dist/recursive-mkdir-path.d.ts +2 -0
  404. package/node_modules/@openclaw/fs-safe/dist/recursive-mkdir-path.js +8 -0
  405. package/node_modules/@openclaw/fs-safe/dist/regular-file.d.ts +37 -0
  406. package/node_modules/@openclaw/fs-safe/dist/regular-file.js +317 -0
  407. package/node_modules/@openclaw/fs-safe/dist/replace-directory.d.ts +6 -0
  408. package/node_modules/@openclaw/fs-safe/dist/replace-directory.js +275 -0
  409. package/node_modules/@openclaw/fs-safe/dist/replace-file-buffer.d.ts +4 -0
  410. package/node_modules/@openclaw/fs-safe/dist/replace-file-buffer.js +36 -0
  411. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.d.ts +32 -0
  412. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.js +369 -0
  413. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.d.ts +20 -0
  414. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.js +101 -0
  415. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +46 -0
  416. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +168 -0
  417. package/node_modules/@openclaw/fs-safe/dist/replace-file-destination.d.ts +21 -0
  418. package/node_modules/@openclaw/fs-safe/dist/replace-file-destination.js +123 -0
  419. package/node_modules/@openclaw/fs-safe/dist/replace-file-mode.d.ts +2 -0
  420. package/node_modules/@openclaw/fs-safe/dist/replace-file-mode.js +10 -0
  421. package/node_modules/@openclaw/fs-safe/dist/replace-file-mutation.d.ts +26 -0
  422. package/node_modules/@openclaw/fs-safe/dist/replace-file-mutation.js +47 -0
  423. package/node_modules/@openclaw/fs-safe/dist/replace-file-rename-policy.d.ts +5 -0
  424. package/node_modules/@openclaw/fs-safe/dist/replace-file-rename-policy.js +30 -0
  425. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.d.ts +49 -0
  426. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.js +368 -0
  427. package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +55 -0
  428. package/node_modules/@openclaw/fs-safe/dist/replace-file-types.js +1 -0
  429. package/node_modules/@openclaw/fs-safe/dist/replace-file.d.ts +6 -0
  430. package/node_modules/@openclaw/fs-safe/dist/replace-file.js +356 -0
  431. package/node_modules/@openclaw/fs-safe/dist/retained-directory-replacement.d.ts +26 -0
  432. package/node_modules/@openclaw/fs-safe/dist/retained-directory-replacement.js +193 -0
  433. package/node_modules/@openclaw/fs-safe/dist/retained-file-types.d.ts +50 -0
  434. package/node_modules/@openclaw/fs-safe/dist/retained-file-types.js +1 -0
  435. package/node_modules/@openclaw/fs-safe/dist/retained-file.d.ts +3 -0
  436. package/node_modules/@openclaw/fs-safe/dist/retained-file.js +121 -0
  437. package/node_modules/@openclaw/fs-safe/dist/root-boundary.d.ts +29 -0
  438. package/node_modules/@openclaw/fs-safe/dist/root-boundary.js +186 -0
  439. package/node_modules/@openclaw/fs-safe/dist/root-context.d.ts +43 -0
  440. package/node_modules/@openclaw/fs-safe/dist/root-context.js +233 -0
  441. package/node_modules/@openclaw/fs-safe/dist/root-create-input.d.ts +16 -0
  442. package/node_modules/@openclaw/fs-safe/dist/root-create-input.js +93 -0
  443. package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.d.ts +12 -0
  444. package/node_modules/@openclaw/fs-safe/dist/root-directory-creation.js +225 -0
  445. package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.d.ts +9 -0
  446. package/node_modules/@openclaw/fs-safe/dist/root-directory-entry.js +28 -0
  447. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +46 -0
  448. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +433 -0
  449. package/node_modules/@openclaw/fs-safe/dist/root-directory.d.ts +22 -0
  450. package/node_modules/@openclaw/fs-safe/dist/root-directory.js +141 -0
  451. package/node_modules/@openclaw/fs-safe/dist/root-entries.d.ts +10 -0
  452. package/node_modules/@openclaw/fs-safe/dist/root-entries.js +61 -0
  453. package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +16 -0
  454. package/node_modules/@openclaw/fs-safe/dist/root-errors.js +92 -0
  455. package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.d.ts +20 -0
  456. package/node_modules/@openclaw/fs-safe/dist/root-file-final-admission.js +81 -0
  457. package/node_modules/@openclaw/fs-safe/dist/root-file.d.ts +46 -0
  458. package/node_modules/@openclaw/fs-safe/dist/root-file.js +205 -0
  459. package/node_modules/@openclaw/fs-safe/dist/root-handle-context.d.ts +4 -0
  460. package/node_modules/@openclaw/fs-safe/dist/root-handle-context.js +12 -0
  461. package/node_modules/@openclaw/fs-safe/dist/root-impl.d.ts +117 -0
  462. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +1446 -0
  463. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.d.ts +10 -0
  464. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.js +205 -0
  465. package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.d.ts +7 -0
  466. package/node_modules/@openclaw/fs-safe/dist/root-move-preflight.js +16 -0
  467. package/node_modules/@openclaw/fs-safe/dist/root-observed-path.d.ts +7 -0
  468. package/node_modules/@openclaw/fs-safe/dist/root-observed-path.js +90 -0
  469. package/node_modules/@openclaw/fs-safe/dist/root-options.d.ts +84 -0
  470. package/node_modules/@openclaw/fs-safe/dist/root-options.js +18 -0
  471. package/node_modules/@openclaw/fs-safe/dist/root-path-errors.d.ts +12 -0
  472. package/node_modules/@openclaw/fs-safe/dist/root-path-errors.js +22 -0
  473. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +12 -0
  474. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +160 -0
  475. package/node_modules/@openclaw/fs-safe/dist/root-path-observation.d.ts +55 -0
  476. package/node_modules/@openclaw/fs-safe/dist/root-path-observation.js +180 -0
  477. package/node_modules/@openclaw/fs-safe/dist/root-path-stat.d.ts +4 -0
  478. package/node_modules/@openclaw/fs-safe/dist/root-path-stat.js +151 -0
  479. package/node_modules/@openclaw/fs-safe/dist/root-path.d.ts +53 -0
  480. package/node_modules/@openclaw/fs-safe/dist/root-path.js +440 -0
  481. package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.d.ts +8 -0
  482. package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.js +22 -0
  483. package/node_modules/@openclaw/fs-safe/dist/root-paths.d.ts +58 -0
  484. package/node_modules/@openclaw/fs-safe/dist/root-paths.js +296 -0
  485. package/node_modules/@openclaw/fs-safe/dist/root-public-types.d.ts +11 -0
  486. package/node_modules/@openclaw/fs-safe/dist/root-public-types.js +1 -0
  487. package/node_modules/@openclaw/fs-safe/dist/root-read-admission.d.ts +25 -0
  488. package/node_modules/@openclaw/fs-safe/dist/root-read-admission.js +86 -0
  489. package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.d.ts +12 -0
  490. package/node_modules/@openclaw/fs-safe/dist/root-remove-identity.js +87 -0
  491. package/node_modules/@openclaw/fs-safe/dist/root-remove-receipt.d.ts +16 -0
  492. package/node_modules/@openclaw/fs-safe/dist/root-remove-receipt.js +37 -0
  493. package/node_modules/@openclaw/fs-safe/dist/root-remove.d.ts +6 -0
  494. package/node_modules/@openclaw/fs-safe/dist/root-remove.js +464 -0
  495. package/node_modules/@openclaw/fs-safe/dist/root-symlink-policy.d.ts +13 -0
  496. package/node_modules/@openclaw/fs-safe/dist/root-symlink-policy.js +34 -0
  497. package/node_modules/@openclaw/fs-safe/dist/root-walk.d.ts +48 -0
  498. package/node_modules/@openclaw/fs-safe/dist/root-walk.js +234 -0
  499. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.d.ts +65 -0
  500. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +299 -0
  501. package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.d.ts +11 -0
  502. package/node_modules/@openclaw/fs-safe/dist/root-write-compatibility.js +23 -0
  503. package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.d.ts +43 -0
  504. package/node_modules/@openclaw/fs-safe/dist/root-write-complete-parent.js +180 -0
  505. package/node_modules/@openclaw/fs-safe/dist/root-write-lock-binding.d.ts +14 -0
  506. package/node_modules/@openclaw/fs-safe/dist/root-write-lock-binding.js +162 -0
  507. package/node_modules/@openclaw/fs-safe/dist/root-write-mode.d.ts +7 -0
  508. package/node_modules/@openclaw/fs-safe/dist/root-write-mode.js +72 -0
  509. package/node_modules/@openclaw/fs-safe/dist/root-write-publication.d.ts +23 -0
  510. package/node_modules/@openclaw/fs-safe/dist/root-write-publication.js +85 -0
  511. package/node_modules/@openclaw/fs-safe/dist/root-write-verification.d.ts +11 -0
  512. package/node_modules/@openclaw/fs-safe/dist/root-write-verification.js +95 -0
  513. package/node_modules/@openclaw/fs-safe/dist/root.d.ts +2 -0
  514. package/node_modules/@openclaw/fs-safe/dist/root.js +1 -0
  515. package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.d.ts +12 -0
  516. package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.js +80 -0
  517. package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +29 -0
  518. package/node_modules/@openclaw/fs-safe/dist/secret-file.js +333 -0
  519. package/node_modules/@openclaw/fs-safe/dist/secret-read-async.d.ts +3 -0
  520. package/node_modules/@openclaw/fs-safe/dist/secret-read-async.js +58 -0
  521. package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.d.ts +20 -0
  522. package/node_modules/@openclaw/fs-safe/dist/secret-read-policy.js +68 -0
  523. package/node_modules/@openclaw/fs-safe/dist/secret.d.ts +3 -0
  524. package/node_modules/@openclaw/fs-safe/dist/secret.js +3 -0
  525. package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.d.ts +10 -0
  526. package/node_modules/@openclaw/fs-safe/dist/secure-file-windows.js +79 -0
  527. package/node_modules/@openclaw/fs-safe/dist/secure-file.d.ts +31 -0
  528. package/node_modules/@openclaw/fs-safe/dist/secure-file.js +298 -0
  529. package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.d.ts +29 -0
  530. package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.js +176 -0
  531. package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.d.ts +34 -0
  532. package/node_modules/@openclaw/fs-safe/dist/secure-temp-repair.js +110 -0
  533. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.d.ts +17 -0
  534. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +301 -0
  535. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +28 -0
  536. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +132 -0
  537. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.d.ts +4 -0
  538. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +442 -0
  539. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-context.d.ts +18 -0
  540. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-context.js +60 -0
  541. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.d.ts +41 -0
  542. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission-parser.js +113 -0
  543. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.d.ts +31 -0
  544. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-admission.js +1 -0
  545. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.d.ts +20 -0
  546. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-handle.js +48 -0
  547. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +14 -0
  548. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +113 -0
  549. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.d.ts +67 -0
  550. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.js +374 -0
  551. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-registration.d.ts +13 -0
  552. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-registration.js +47 -0
  553. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.d.ts +2 -0
  554. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-root.js +79 -0
  555. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.d.ts +34 -0
  556. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +228 -0
  557. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-target.d.ts +7 -0
  558. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-target.js +55 -0
  559. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-types.d.ts +68 -0
  560. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-types.js +1 -0
  561. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.d.ts +13 -0
  562. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock.js +282 -0
  563. package/node_modules/@openclaw/fs-safe/dist/staged-directory.d.ts +27 -0
  564. package/node_modules/@openclaw/fs-safe/dist/staged-directory.js +148 -0
  565. package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.d.ts +16 -0
  566. package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.js +57 -0
  567. package/node_modules/@openclaw/fs-safe/dist/staged-file-types.d.ts +55 -0
  568. package/node_modules/@openclaw/fs-safe/dist/staged-file-types.js +1 -0
  569. package/node_modules/@openclaw/fs-safe/dist/staged-symlink-types.d.ts +39 -0
  570. package/node_modules/@openclaw/fs-safe/dist/staged-symlink-types.js +1 -0
  571. package/node_modules/@openclaw/fs-safe/dist/stat-observation.d.ts +10 -0
  572. package/node_modules/@openclaw/fs-safe/dist/stat-observation.js +57 -0
  573. package/node_modules/@openclaw/fs-safe/dist/store.d.ts +3 -0
  574. package/node_modules/@openclaw/fs-safe/dist/store.js +3 -0
  575. package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.d.ts +7 -0
  576. package/node_modules/@openclaw/fs-safe/dist/strict-file-identity.js +88 -0
  577. package/node_modules/@openclaw/fs-safe/dist/string-coerce.d.ts +4 -0
  578. package/node_modules/@openclaw/fs-safe/dist/string-coerce.js +16 -0
  579. package/node_modules/@openclaw/fs-safe/dist/suppressed-error.d.ts +5 -0
  580. package/node_modules/@openclaw/fs-safe/dist/suppressed-error.js +15 -0
  581. package/node_modules/@openclaw/fs-safe/dist/symlink-parents.d.ts +11 -0
  582. package/node_modules/@openclaw/fs-safe/dist/symlink-parents.js +109 -0
  583. package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.d.ts +13 -0
  584. package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.js +88 -0
  585. package/node_modules/@openclaw/fs-safe/dist/temp-target.d.ts +31 -0
  586. package/node_modules/@openclaw/fs-safe/dist/temp-target.js +236 -0
  587. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.d.ts +14 -0
  588. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-admission.js +387 -0
  589. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +23 -0
  590. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +150 -0
  591. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.d.ts +42 -0
  592. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-descriptor.js +341 -0
  593. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.d.ts +24 -0
  594. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-owner.js +398 -0
  595. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-ownership.d.ts +8 -0
  596. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-ownership.js +52 -0
  597. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +39 -0
  598. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.js +1 -0
  599. package/node_modules/@openclaw/fs-safe/dist/temp.d.ts +3 -0
  600. package/node_modules/@openclaw/fs-safe/dist/temp.js +2 -0
  601. package/node_modules/@openclaw/fs-safe/dist/test-hooks.d.ts +35 -0
  602. package/node_modules/@openclaw/fs-safe/dist/test-hooks.js +13 -0
  603. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +14 -0
  604. package/node_modules/@openclaw/fs-safe/dist/text-atomic.js +18 -0
  605. package/node_modules/@openclaw/fs-safe/dist/timing.d.ts +8 -0
  606. package/node_modules/@openclaw/fs-safe/dist/timing.js +59 -0
  607. package/node_modules/@openclaw/fs-safe/dist/trash.d.ts +4 -0
  608. package/node_modules/@openclaw/fs-safe/dist/trash.js +245 -0
  609. package/node_modules/@openclaw/fs-safe/dist/types.d.ts +22 -0
  610. package/node_modules/@openclaw/fs-safe/dist/types.js +1 -0
  611. package/node_modules/@openclaw/fs-safe/dist/unicode-path.d.ts +2 -0
  612. package/node_modules/@openclaw/fs-safe/dist/unicode-path.js +16 -0
  613. package/node_modules/@openclaw/fs-safe/dist/walk.d.ts +37 -0
  614. package/node_modules/@openclaw/fs-safe/dist/walk.js +207 -0
  615. package/node_modules/@openclaw/fs-safe/dist/watch-alias.d.ts +6 -0
  616. package/node_modules/@openclaw/fs-safe/dist/watch-alias.js +88 -0
  617. package/node_modules/@openclaw/fs-safe/dist/watch-hints.d.ts +9 -0
  618. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +93 -0
  619. package/node_modules/@openclaw/fs-safe/dist/watch-native.d.ts +36 -0
  620. package/node_modules/@openclaw/fs-safe/dist/watch-native.js +73 -0
  621. package/node_modules/@openclaw/fs-safe/dist/watch-scan.d.ts +28 -0
  622. package/node_modules/@openclaw/fs-safe/dist/watch-scan.js +300 -0
  623. package/node_modules/@openclaw/fs-safe/dist/watch-stream.d.ts +8 -0
  624. package/node_modules/@openclaw/fs-safe/dist/watch-stream.js +32 -0
  625. package/node_modules/@openclaw/fs-safe/dist/watch-types.d.ts +60 -0
  626. package/node_modules/@openclaw/fs-safe/dist/watch-types.js +1 -0
  627. package/node_modules/@openclaw/fs-safe/dist/watch.d.ts +5 -0
  628. package/node_modules/@openclaw/fs-safe/dist/watch.js +530 -0
  629. package/node_modules/@openclaw/fs-safe/dist/windows-command.d.ts +1 -0
  630. package/node_modules/@openclaw/fs-safe/dist/windows-command.js +34 -0
  631. package/node_modules/@openclaw/fs-safe/dist/windows-owner.d.ts +24 -0
  632. package/node_modules/@openclaw/fs-safe/dist/windows-owner.js +100 -0
  633. package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.d.ts +39 -0
  634. package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.js +122 -0
  635. package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.d.ts +5 -0
  636. package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.js +21 -0
  637. package/node_modules/@openclaw/fs-safe/dist/windows-security-bridge.cs +336 -0
  638. package/node_modules/@openclaw/fs-safe/dist/windows-security-bridge.ps1 +90 -0
  639. package/node_modules/@openclaw/fs-safe/dist/windows-security-command.d.ts +33 -0
  640. package/node_modules/@openclaw/fs-safe/dist/windows-security-command.js +414 -0
  641. package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.d.ts +9 -0
  642. package/node_modules/@openclaw/fs-safe/dist/windows-security-facts.js +112 -0
  643. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +13 -0
  644. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +49 -0
  645. package/node_modules/@openclaw/fs-safe/dist/write-open-flags.d.ts +4 -0
  646. package/node_modules/@openclaw/fs-safe/dist/write-open-flags.js +27 -0
  647. package/node_modules/@openclaw/fs-safe/dist/write-queue.d.ts +1 -0
  648. package/node_modules/@openclaw/fs-safe/dist/write-queue.js +15 -0
  649. package/node_modules/@openclaw/fs-safe/docs/advanced.md +271 -0
  650. package/node_modules/@openclaw/fs-safe/docs/archive.md +859 -0
  651. package/node_modules/@openclaw/fs-safe/docs/assets/readme-banner.jpg +0 -0
  652. package/node_modules/@openclaw/fs-safe/docs/atomic.md +611 -0
  653. package/node_modules/@openclaw/fs-safe/docs/config.md +136 -0
  654. package/node_modules/@openclaw/fs-safe/docs/contributing.md +360 -0
  655. package/node_modules/@openclaw/fs-safe/docs/copy.md +199 -0
  656. package/node_modules/@openclaw/fs-safe/docs/creation.md +132 -0
  657. package/node_modules/@openclaw/fs-safe/docs/directory-identity.md +85 -0
  658. package/node_modules/@openclaw/fs-safe/docs/durability.md +445 -0
  659. package/node_modules/@openclaw/fs-safe/docs/entries.md +109 -0
  660. package/node_modules/@openclaw/fs-safe/docs/errors.md +240 -0
  661. package/node_modules/@openclaw/fs-safe/docs/file-contents.md +68 -0
  662. package/node_modules/@openclaw/fs-safe/docs/file-store.md +369 -0
  663. package/node_modules/@openclaw/fs-safe/docs/filename.md +110 -0
  664. package/node_modules/@openclaw/fs-safe/docs/guest.md +152 -0
  665. package/node_modules/@openclaw/fs-safe/docs/in-place-write.md +81 -0
  666. package/node_modules/@openclaw/fs-safe/docs/index.md +87 -0
  667. package/node_modules/@openclaw/fs-safe/docs/install-path.md +216 -0
  668. package/node_modules/@openclaw/fs-safe/docs/install.md +252 -0
  669. package/node_modules/@openclaw/fs-safe/docs/json-store.md +240 -0
  670. package/node_modules/@openclaw/fs-safe/docs/json.md +225 -0
  671. package/node_modules/@openclaw/fs-safe/docs/local-roots.md +150 -0
  672. package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +205 -0
  673. package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.6.md +48 -0
  674. package/node_modules/@openclaw/fs-safe/docs/mutation-policy-proof.md +69 -0
  675. package/node_modules/@openclaw/fs-safe/docs/native-helper.md +193 -0
  676. package/node_modules/@openclaw/fs-safe/docs/native.md +351 -0
  677. package/node_modules/@openclaw/fs-safe/docs/output.md +193 -0
  678. package/node_modules/@openclaw/fs-safe/docs/path-case.md +64 -0
  679. package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +74 -0
  680. package/node_modules/@openclaw/fs-safe/docs/path-scope.md +159 -0
  681. package/node_modules/@openclaw/fs-safe/docs/path-suffix-aliases.md +204 -0
  682. package/node_modules/@openclaw/fs-safe/docs/path.md +219 -0
  683. package/node_modules/@openclaw/fs-safe/docs/permissions.md +352 -0
  684. package/node_modules/@openclaw/fs-safe/docs/positional-read.md +63 -0
  685. package/node_modules/@openclaw/fs-safe/docs/private-file-store.md +68 -0
  686. package/node_modules/@openclaw/fs-safe/docs/public-api.md +188 -0
  687. package/node_modules/@openclaw/fs-safe/docs/quickstart.md +154 -0
  688. package/node_modules/@openclaw/fs-safe/docs/reading.md +196 -0
  689. package/node_modules/@openclaw/fs-safe/docs/regular-file.md +193 -0
  690. package/node_modules/@openclaw/fs-safe/docs/retained-file.md +115 -0
  691. package/node_modules/@openclaw/fs-safe/docs/root.md +571 -0
  692. package/node_modules/@openclaw/fs-safe/docs/secret-file.md +318 -0
  693. package/node_modules/@openclaw/fs-safe/docs/secure-file.md +112 -0
  694. package/node_modules/@openclaw/fs-safe/docs/security-model.md +272 -0
  695. package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +599 -0
  696. package/node_modules/@openclaw/fs-safe/docs/staged-file.md +192 -0
  697. package/node_modules/@openclaw/fs-safe/docs/staged-symlink.md +124 -0
  698. package/node_modules/@openclaw/fs-safe/docs/store.md +129 -0
  699. package/node_modules/@openclaw/fs-safe/docs/temp.md +780 -0
  700. package/node_modules/@openclaw/fs-safe/docs/test-hooks.md +110 -0
  701. package/node_modules/@openclaw/fs-safe/docs/testing.md +399 -0
  702. package/node_modules/@openclaw/fs-safe/docs/timing.md +123 -0
  703. package/node_modules/@openclaw/fs-safe/docs/types.md +217 -0
  704. package/node_modules/@openclaw/fs-safe/docs/walk.md +283 -0
  705. package/node_modules/@openclaw/fs-safe/docs/watch.md +251 -0
  706. package/node_modules/@openclaw/fs-safe/docs/writing.md +662 -0
  707. package/node_modules/@openclaw/fs-safe/package.json +204 -0
  708. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  709. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +29 -0
  710. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  711. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +29 -0
  712. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  713. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +32 -0
  714. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  715. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +32 -0
  716. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  717. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +32 -0
  718. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  719. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +32 -0
  720. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  721. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +29 -0
  722. package/node_modules/content-type/README.md +81 -0
  723. package/node_modules/content-type/dist/index.d.ts +54 -0
  724. package/node_modules/content-type/dist/index.js +291 -0
  725. package/node_modules/content-type/dist/index.js.map +1 -0
  726. package/node_modules/content-type/package.json +61 -0
  727. package/node_modules/core-util-is/LICENSE +19 -0
  728. package/node_modules/core-util-is/README.md +3 -0
  729. package/node_modules/core-util-is/lib/util.js +107 -0
  730. package/node_modules/core-util-is/package.json +38 -0
  731. package/node_modules/file-type/package.json +275 -0
  732. package/node_modules/file-type/readme.md +605 -0
  733. package/node_modules/file-type/source/detectors/zip.js +653 -0
  734. package/node_modules/immediate/LICENSE.txt +20 -0
  735. package/node_modules/immediate/README.md +93 -0
  736. package/node_modules/immediate/dist/immediate.js +75 -0
  737. package/node_modules/immediate/dist/immediate.min.js +1 -0
  738. package/node_modules/immediate/lib/browser.js +69 -0
  739. package/node_modules/immediate/lib/index.js +73 -0
  740. package/node_modules/immediate/package.json +42 -0
  741. package/node_modules/inherits/LICENSE +16 -0
  742. package/node_modules/inherits/README.md +42 -0
  743. package/node_modules/inherits/inherits.js +9 -0
  744. package/node_modules/inherits/inherits_browser.js +27 -0
  745. package/node_modules/inherits/package.json +29 -0
  746. package/node_modules/isarray/.npmignore +1 -0
  747. package/node_modules/isarray/.travis.yml +4 -0
  748. package/node_modules/isarray/Makefile +6 -0
  749. package/node_modules/isarray/README.md +60 -0
  750. package/node_modules/isarray/component.json +19 -0
  751. package/node_modules/isarray/index.js +5 -0
  752. package/node_modules/isarray/package.json +45 -0
  753. package/node_modules/isarray/test.js +20 -0
  754. package/node_modules/jszip/.codeclimate.yml +16 -0
  755. package/node_modules/jszip/.editorconfig +8 -0
  756. package/node_modules/jszip/.eslintrc.js +43 -0
  757. package/node_modules/jszip/.github/FUNDING.yml +1 -0
  758. package/node_modules/jszip/.github/actions/setup/action.yml +23 -0
  759. package/node_modules/jszip/.github/workflows/benchmark.yml +38 -0
  760. package/node_modules/jszip/.github/workflows/main.yml +55 -0
  761. package/node_modules/jszip/CHANGES.md +210 -0
  762. package/node_modules/jszip/LICENSE.markdown +651 -0
  763. package/node_modules/jszip/README.markdown +33 -0
  764. package/node_modules/jszip/dist/jszip.js +11586 -0
  765. package/node_modules/jszip/dist/jszip.min.js +13 -0
  766. package/node_modules/jszip/index.d.ts +344 -0
  767. package/node_modules/jszip/lib/base64.js +106 -0
  768. package/node_modules/jszip/lib/compressedObject.js +74 -0
  769. package/node_modules/jszip/lib/compressions.js +14 -0
  770. package/node_modules/jszip/lib/crc32.js +77 -0
  771. package/node_modules/jszip/lib/defaults.js +11 -0
  772. package/node_modules/jszip/lib/external.js +18 -0
  773. package/node_modules/jszip/lib/flate.js +85 -0
  774. package/node_modules/jszip/lib/generate/ZipFileWorker.js +539 -0
  775. package/node_modules/jszip/lib/generate/index.js +57 -0
  776. package/node_modules/jszip/lib/index.js +55 -0
  777. package/node_modules/jszip/lib/license_header.js +11 -0
  778. package/node_modules/jszip/lib/load.js +88 -0
  779. package/node_modules/jszip/lib/nodejs/NodejsStreamInputAdapter.js +74 -0
  780. package/node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js +42 -0
  781. package/node_modules/jszip/lib/nodejsUtils.js +57 -0
  782. package/node_modules/jszip/lib/object.js +384 -0
  783. package/node_modules/jszip/lib/readable-stream-browser.js +10 -0
  784. package/node_modules/jszip/lib/reader/ArrayReader.js +57 -0
  785. package/node_modules/jszip/lib/reader/DataReader.js +116 -0
  786. package/node_modules/jszip/lib/reader/NodeBufferReader.js +19 -0
  787. package/node_modules/jszip/lib/reader/StringReader.js +38 -0
  788. package/node_modules/jszip/lib/reader/Uint8ArrayReader.js +22 -0
  789. package/node_modules/jszip/lib/reader/readerFor.js +28 -0
  790. package/node_modules/jszip/lib/signature.js +7 -0
  791. package/node_modules/jszip/lib/stream/ConvertWorker.js +26 -0
  792. package/node_modules/jszip/lib/stream/Crc32Probe.js +24 -0
  793. package/node_modules/jszip/lib/stream/DataLengthProbe.js +29 -0
  794. package/node_modules/jszip/lib/stream/DataWorker.js +116 -0
  795. package/node_modules/jszip/lib/stream/GenericWorker.js +263 -0
  796. package/node_modules/jszip/lib/stream/StreamHelper.js +214 -0
  797. package/node_modules/jszip/lib/support.js +38 -0
  798. package/node_modules/jszip/lib/utf8.js +275 -0
  799. package/node_modules/jszip/lib/utils.js +510 -0
  800. package/node_modules/jszip/lib/zipEntries.js +261 -0
  801. package/node_modules/jszip/lib/zipEntry.js +293 -0
  802. package/node_modules/jszip/lib/zipObject.js +133 -0
  803. package/node_modules/jszip/package.json +67 -0
  804. package/node_modules/jszip/sponsors.md +21 -0
  805. package/node_modules/jszip/tsconfig.json +101 -0
  806. package/node_modules/jszip/vendor/FileSaver.js +247 -0
  807. package/node_modules/lie/README.md +62 -0
  808. package/node_modules/lie/dist/lie.js +350 -0
  809. package/node_modules/lie/dist/lie.min.js +1 -0
  810. package/node_modules/lie/dist/lie.polyfill.js +358 -0
  811. package/node_modules/lie/dist/lie.polyfill.min.js +1 -0
  812. package/node_modules/lie/lib/browser.js +273 -0
  813. package/node_modules/lie/lib/index.js +298 -0
  814. package/node_modules/lie/license.md +7 -0
  815. package/node_modules/lie/lie.d.ts +244 -0
  816. package/node_modules/lie/package.json +69 -0
  817. package/node_modules/lie/polyfill.js +4 -0
  818. package/node_modules/matrix-js-sdk/CHANGELOG.md +20 -0
  819. package/node_modules/matrix-js-sdk/lib/@types/json.d.ts.map +1 -1
  820. package/node_modules/matrix-js-sdk/lib/@types/json.js.map +1 -1
  821. package/node_modules/matrix-js-sdk/lib/client.d.ts +74 -5
  822. package/node_modules/matrix-js-sdk/lib/client.d.ts.map +1 -1
  823. package/node_modules/matrix-js-sdk/lib/client.js +83 -7
  824. package/node_modules/matrix-js-sdk/lib/client.js.map +1 -1
  825. package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.d.ts +42 -23
  826. package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.d.ts.map +1 -1
  827. package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.js +7 -0
  828. package/node_modules/matrix-js-sdk/lib/common-crypto/CryptoBackend.js.map +1 -1
  829. package/node_modules/matrix-js-sdk/lib/embedded.d.ts +35 -1
  830. package/node_modules/matrix-js-sdk/lib/embedded.d.ts.map +1 -1
  831. package/node_modules/matrix-js-sdk/lib/embedded.js +49 -1
  832. package/node_modules/matrix-js-sdk/lib/embedded.js.map +1 -1
  833. package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts +0 -1
  834. package/node_modules/matrix-js-sdk/lib/http-api/fetch.d.ts.map +1 -1
  835. package/node_modules/matrix-js-sdk/lib/http-api/fetch.js +3 -22
  836. package/node_modules/matrix-js-sdk/lib/http-api/fetch.js.map +1 -1
  837. package/node_modules/matrix-js-sdk/lib/http-api/logging.d.ts +10 -0
  838. package/node_modules/matrix-js-sdk/lib/http-api/logging.d.ts.map +1 -0
  839. package/node_modules/matrix-js-sdk/lib/http-api/logging.js +46 -0
  840. package/node_modules/matrix-js-sdk/lib/http-api/logging.js.map +1 -0
  841. package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts +5 -0
  842. package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts.map +1 -1
  843. package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.js.map +1 -1
  844. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts +82 -0
  845. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts.map +1 -1
  846. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js +25 -0
  847. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js.map +1 -1
  848. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts +41 -2
  849. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
  850. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +59 -1
  851. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
  852. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +7 -4
  853. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -1
  854. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts +17 -0
  855. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts.map +1 -1
  856. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js +68 -29
  857. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js.map +1 -1
  858. package/node_modules/matrix-js-sdk/lib/models/room-receipts.d.ts +9 -3
  859. package/node_modules/matrix-js-sdk/lib/models/room-receipts.d.ts.map +1 -1
  860. package/node_modules/matrix-js-sdk/lib/models/room-receipts.js +51 -11
  861. package/node_modules/matrix-js-sdk/lib/models/room-receipts.js.map +1 -1
  862. package/node_modules/matrix-js-sdk/lib/oauth/authorize.d.ts +7 -2
  863. package/node_modules/matrix-js-sdk/lib/oauth/authorize.d.ts.map +1 -1
  864. package/node_modules/matrix-js-sdk/lib/oauth/authorize.js +10 -4
  865. package/node_modules/matrix-js-sdk/lib/oauth/authorize.js.map +1 -1
  866. package/node_modules/matrix-js-sdk/lib/oauth/fetch.d.ts +17 -0
  867. package/node_modules/matrix-js-sdk/lib/oauth/fetch.d.ts.map +1 -0
  868. package/node_modules/matrix-js-sdk/lib/oauth/fetch.js +47 -0
  869. package/node_modules/matrix-js-sdk/lib/oauth/fetch.js.map +1 -0
  870. package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts +15 -2
  871. package/node_modules/matrix-js-sdk/lib/oauth/index.d.ts.map +1 -1
  872. package/node_modules/matrix-js-sdk/lib/oauth/index.js +33 -12
  873. package/node_modules/matrix-js-sdk/lib/oauth/index.js.map +1 -1
  874. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts +17 -0
  875. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.d.ts.map +1 -1
  876. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js +4 -2
  877. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js.map +1 -1
  878. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.d.ts +6 -26
  879. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.d.ts.map +1 -1
  880. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js +19 -54
  881. package/node_modules/matrix-js-sdk/lib/rust-crypto/rust-crypto.js.map +1 -1
  882. package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.d.ts.map +1 -1
  883. package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.js +65 -27
  884. package/node_modules/matrix-js-sdk/lib/sliding-sync-sdk.js.map +1 -1
  885. package/node_modules/matrix-js-sdk/lib/sliding-sync.d.ts +17 -0
  886. package/node_modules/matrix-js-sdk/lib/sliding-sync.d.ts.map +1 -1
  887. package/node_modules/matrix-js-sdk/lib/sliding-sync.js +21 -9
  888. package/node_modules/matrix-js-sdk/lib/sliding-sync.js.map +1 -1
  889. package/node_modules/matrix-js-sdk/lib/sync.d.ts +9 -1
  890. package/node_modules/matrix-js-sdk/lib/sync.d.ts.map +1 -1
  891. package/node_modules/matrix-js-sdk/lib/sync.js +54 -29
  892. package/node_modules/matrix-js-sdk/lib/sync.js.map +1 -1
  893. package/node_modules/matrix-js-sdk/package.json +5 -5
  894. package/node_modules/matrix-js-sdk/src/@types/json.ts +11 -2
  895. package/node_modules/matrix-js-sdk/src/client.ts +126 -11
  896. package/node_modules/matrix-js-sdk/src/common-crypto/CryptoBackend.ts +45 -23
  897. package/node_modules/matrix-js-sdk/src/embedded.ts +67 -4
  898. package/node_modules/matrix-js-sdk/src/http-api/fetch.ts +2 -23
  899. package/node_modules/matrix-js-sdk/src/http-api/logging.ts +46 -0
  900. package/node_modules/matrix-js-sdk/src/matrixrtc/EncryptionManager.ts +6 -0
  901. package/node_modules/matrix-js-sdk/src/matrixrtc/LivekitTransport.ts +86 -0
  902. package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +81 -1
  903. package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +7 -7
  904. package/node_modules/matrix-js-sdk/src/matrixrtc/RTCEncryptionManager.ts +80 -31
  905. package/node_modules/matrix-js-sdk/src/models/room-receipts.ts +54 -10
  906. package/node_modules/matrix-js-sdk/src/oauth/authorize.ts +10 -2
  907. package/node_modules/matrix-js-sdk/src/oauth/fetch.ts +54 -0
  908. package/node_modules/matrix-js-sdk/src/oauth/index.ts +29 -10
  909. package/node_modules/matrix-js-sdk/src/rust-crypto/index.ts +23 -0
  910. package/node_modules/matrix-js-sdk/src/rust-crypto/rust-crypto.ts +25 -67
  911. package/node_modules/matrix-js-sdk/src/sliding-sync-sdk.ts +73 -33
  912. package/node_modules/matrix-js-sdk/src/sliding-sync.ts +31 -14
  913. package/node_modules/matrix-js-sdk/src/sync.ts +58 -35
  914. package/node_modules/pako/CHANGELOG.md +164 -0
  915. package/node_modules/pako/LICENSE +21 -0
  916. package/node_modules/pako/README.md +191 -0
  917. package/node_modules/pako/dist/pako.js +6818 -0
  918. package/node_modules/pako/dist/pako.min.js +1 -0
  919. package/node_modules/pako/dist/pako_deflate.js +3997 -0
  920. package/node_modules/pako/dist/pako_deflate.min.js +1 -0
  921. package/node_modules/pako/dist/pako_inflate.js +3300 -0
  922. package/node_modules/pako/dist/pako_inflate.min.js +1 -0
  923. package/node_modules/pako/index.js +14 -0
  924. package/node_modules/pako/lib/deflate.js +400 -0
  925. package/node_modules/pako/lib/inflate.js +423 -0
  926. package/node_modules/pako/lib/utils/common.js +105 -0
  927. package/node_modules/pako/lib/utils/strings.js +187 -0
  928. package/node_modules/pako/lib/zlib/README +59 -0
  929. package/node_modules/pako/lib/zlib/adler32.js +51 -0
  930. package/node_modules/pako/lib/zlib/constants.js +68 -0
  931. package/node_modules/pako/lib/zlib/crc32.js +59 -0
  932. package/node_modules/pako/lib/zlib/deflate.js +1874 -0
  933. package/node_modules/pako/lib/zlib/gzheader.js +58 -0
  934. package/node_modules/pako/lib/zlib/inffast.js +345 -0
  935. package/node_modules/pako/lib/zlib/inflate.js +1556 -0
  936. package/node_modules/pako/lib/zlib/inftrees.js +343 -0
  937. package/node_modules/pako/lib/zlib/messages.js +32 -0
  938. package/node_modules/pako/lib/zlib/trees.js +1222 -0
  939. package/node_modules/pako/lib/zlib/zstream.js +47 -0
  940. package/node_modules/pako/package.json +44 -0
  941. package/node_modules/process-nextick-args/index.js +45 -0
  942. package/node_modules/process-nextick-args/license.md +19 -0
  943. package/node_modules/process-nextick-args/package.json +25 -0
  944. package/node_modules/process-nextick-args/readme.md +18 -0
  945. package/node_modules/readable-stream/.travis.yml +34 -0
  946. package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  947. package/node_modules/readable-stream/GOVERNANCE.md +136 -0
  948. package/node_modules/readable-stream/LICENSE +47 -0
  949. package/node_modules/readable-stream/README.md +58 -0
  950. package/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
  951. package/node_modules/readable-stream/duplex-browser.js +1 -0
  952. package/node_modules/readable-stream/duplex.js +1 -0
  953. package/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
  954. package/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
  955. package/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
  956. package/node_modules/readable-stream/lib/_stream_transform.js +214 -0
  957. package/node_modules/readable-stream/lib/_stream_writable.js +685 -0
  958. package/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
  959. package/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
  960. package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  961. package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  962. package/node_modules/readable-stream/package.json +52 -0
  963. package/node_modules/readable-stream/passthrough.js +1 -0
  964. package/node_modules/readable-stream/readable-browser.js +7 -0
  965. package/node_modules/readable-stream/readable.js +19 -0
  966. package/node_modules/readable-stream/transform.js +1 -0
  967. package/node_modules/readable-stream/writable-browser.js +1 -0
  968. package/node_modules/readable-stream/writable.js +8 -0
  969. package/node_modules/safe-buffer/LICENSE +21 -0
  970. package/node_modules/safe-buffer/README.md +584 -0
  971. package/node_modules/safe-buffer/index.d.ts +187 -0
  972. package/node_modules/safe-buffer/index.js +62 -0
  973. package/node_modules/safe-buffer/package.json +37 -0
  974. package/node_modules/setimmediate/LICENSE.txt +20 -0
  975. package/node_modules/setimmediate/package.json +30 -0
  976. package/node_modules/setimmediate/setImmediate.js +186 -0
  977. package/node_modules/string_decoder/.travis.yml +50 -0
  978. package/node_modules/string_decoder/LICENSE +48 -0
  979. package/node_modules/string_decoder/README.md +47 -0
  980. package/node_modules/string_decoder/lib/string_decoder.js +296 -0
  981. package/node_modules/string_decoder/package.json +31 -0
  982. package/node_modules/strtok3/lib/types.js +1 -0
  983. package/node_modules/typebox/build/compile/code.mjs +1 -2
  984. package/node_modules/typebox/build/compile/validator.mjs +5 -1
  985. package/node_modules/typebox/build/format/iri.mjs +16 -9
  986. package/node_modules/typebox/build/guard/emit.mjs +2 -2
  987. package/node_modules/typebox/build/guard/guard.d.mts +7 -5
  988. package/node_modules/typebox/build/guard/guard.mjs +14 -9
  989. package/node_modules/typebox/build/guard/index.mjs +6 -0
  990. package/node_modules/typebox/build/guard/unicode/unicode.d.mts +6 -0
  991. package/node_modules/typebox/build/guard/unicode/unicode.mjs +35 -0
  992. package/node_modules/typebox/build/guard/unicode/unicode_segment.mjs +165 -0
  993. package/node_modules/typebox/build/schema/build.mjs +2 -3
  994. package/node_modules/typebox/build/schema/engine/_pathing.d.mts +1 -0
  995. package/node_modules/typebox/build/schema/engine/_pathing.mjs +11 -0
  996. package/node_modules/typebox/build/schema/engine/_refine.mjs +13 -5
  997. package/node_modules/typebox/build/schema/engine/additionalProperties.mjs +2 -1
  998. package/node_modules/typebox/build/schema/engine/dependencies.mjs +2 -1
  999. package/node_modules/typebox/build/schema/engine/dependentSchemas.mjs +2 -1
  1000. package/node_modules/typebox/build/schema/engine/dynamicRef.d.mts +1 -1
  1001. package/node_modules/typebox/build/schema/engine/dynamicRef.mjs +2 -2
  1002. package/node_modules/typebox/build/schema/engine/format.mjs +9 -2
  1003. package/node_modules/typebox/build/schema/engine/patternProperties.mjs +3 -2
  1004. package/node_modules/typebox/build/schema/engine/properties.mjs +3 -2
  1005. package/node_modules/typebox/build/schema/engine/propertyNames.mjs +2 -1
  1006. package/node_modules/typebox/build/schema/engine/recursiveRef.d.mts +1 -1
  1007. package/node_modules/typebox/build/schema/engine/recursiveRef.mjs +2 -2
  1008. package/node_modules/typebox/build/schema/engine/ref.d.mts +1 -1
  1009. package/node_modules/typebox/build/schema/engine/ref.mjs +2 -2
  1010. package/node_modules/typebox/build/schema/engine/schema.mjs +24 -24
  1011. package/node_modules/typebox/build/schema/parse.mjs +3 -0
  1012. package/node_modules/typebox/build/schema/pointer/pointer.d.mts +1 -6
  1013. package/node_modules/typebox/build/schema/pointer/pointer.mjs +47 -64
  1014. package/node_modules/typebox/build/system/settings/internal.d.mts +2 -0
  1015. package/node_modules/typebox/build/system/settings/internal.mjs +20 -0
  1016. package/node_modules/typebox/build/system/settings/settings.d.mts +11 -0
  1017. package/node_modules/typebox/build/system/settings/settings.mjs +14 -0
  1018. package/node_modules/typebox/build/type/extends/inference.d.mts +1 -1
  1019. package/node_modules/typebox/build/type/extends/inference.mjs +15 -2
  1020. package/node_modules/typebox/build/type/extends/tuple.d.mts +2 -1
  1021. package/node_modules/typebox/build/type/extends/tuple.mjs +21 -1
  1022. package/node_modules/typebox/build/value/parse/parse.mjs +10 -4
  1023. package/node_modules/typebox/package.json +1 -1
  1024. package/node_modules/typebox/readme.md +3 -1
  1025. package/node_modules/util-deprecate/History.md +16 -0
  1026. package/node_modules/util-deprecate/LICENSE +24 -0
  1027. package/node_modules/util-deprecate/README.md +53 -0
  1028. package/node_modules/util-deprecate/browser.js +67 -0
  1029. package/node_modules/util-deprecate/node.js +6 -0
  1030. package/node_modules/util-deprecate/package.json +27 -0
  1031. package/openclaw.plugin.json +24 -0
  1032. package/package.json +8 -6
  1033. package/dist/.setup/account-selection-BHkfU1eC.mjs +0 -212
  1034. package/dist/.setup/accounts-iThMol10.mjs +0 -130
  1035. package/dist/.setup/approval-handler.runtime-9W7R2ZMq.mjs +0 -415
  1036. package/dist/.setup/approval-ids-j08q8LEG.mjs +0 -7
  1037. package/dist/.setup/approval-reaction-auth-DMVE7VSp.mjs +0 -31
  1038. package/dist/.setup/approval-reactions-B0hfA6qz.mjs +0 -196
  1039. package/dist/.setup/channel-ConuJfxT.mjs +0 -1427
  1040. package/dist/.setup/channel.runtime-CnxR2JUK.mjs +0 -71
  1041. package/dist/.setup/channel.setup-C6KvBV8l.mjs +0 -357
  1042. package/dist/.setup/cli-O196sg8g.mjs +0 -1410
  1043. package/dist/.setup/cli-metadata-DFHQj5XR.mjs +0 -22
  1044. package/dist/.setup/client-C2yVkVdw.mjs +0 -27
  1045. package/dist/.setup/client-ChrXpxos.mjs +0 -922
  1046. package/dist/.setup/client-bootstrap-BSnUAoz1.mjs +0 -78
  1047. package/dist/.setup/config-secret-input.runtime-CwsP3--c.mjs +0 -2
  1048. package/dist/.setup/config-update-B_4qZ5bV.mjs +0 -167
  1049. package/dist/.setup/create-client-CHxcron_.mjs +0 -67
  1050. package/dist/.setup/credentials-BGKfiaJW.mjs +0 -85
  1051. package/dist/.setup/credentials-read-Q5sHkkHv.mjs +0 -74
  1052. package/dist/.setup/credentials-write.runtime-DxbXh-pK.mjs +0 -14
  1053. package/dist/.setup/crypto-runtime-D9qn_Pbj.mjs +0 -1138
  1054. package/dist/.setup/crypto-snapshot-doctor.runtime-CMWa1d9Y.mjs +0 -91
  1055. package/dist/.setup/deps-mtxF2mHI.mjs +0 -169
  1056. package/dist/.setup/device-health-CWOuIirq.mjs +0 -21
  1057. package/dist/.setup/direct-management-B2Bno2xL.mjs +0 -346
  1058. package/dist/.setup/directory-live-CxqkcYbT.mjs +0 -153
  1059. package/dist/.setup/doctor-BLCvdOFo.mjs +0 -64
  1060. package/dist/.setup/doctor-contract-HyWFZQVG.mjs +0 -167
  1061. package/dist/.setup/draft-stream-y0Vq5f38.mjs +0 -175
  1062. package/dist/.setup/encryption-guidance-CMWXiBzJ.mjs +0 -16
  1063. package/dist/.setup/file-sync-store-CsalA4yI.mjs +0 -213
  1064. package/dist/.setup/http-client-Bi6uKmzh.mjs +0 -410
  1065. package/dist/.setup/idb-persistence-c8uxcofH.mjs +0 -237
  1066. package/dist/.setup/idb-persistence-lock-B3fZXyF_.mjs +0 -32
  1067. package/dist/.setup/inbound-dedupe-BSlv35xl.mjs +0 -48
  1068. package/dist/.setup/joined-room-encryption-BCtxQ3hR.mjs +0 -67
  1069. package/dist/.setup/logger-xBjiRIp1.mjs +0 -78
  1070. package/dist/.setup/logging-rgm8ep9H.mjs +0 -99
  1071. package/dist/.setup/messages-COuAcrz-.mjs +0 -324
  1072. package/dist/.setup/monitor-CzE3myC_.mjs +0 -4544
  1073. package/dist/.setup/outbound-B508VPBM.mjs +0 -228
  1074. package/dist/.setup/probe.runtime-C-NMeYk2.mjs +0 -2
  1075. package/dist/.setup/profile-ClrB3IgR.mjs +0 -108
  1076. package/dist/.setup/profile-update-DrblJttE.mjs +0 -70
  1077. package/dist/.setup/reaction-events-BvZmhjLC.mjs +0 -168
  1078. package/dist/.setup/resolve-targets-BLz748lX.mjs +0 -140
  1079. package/dist/.setup/resolver.runtime-CuLQ2uHe.mjs +0 -5
  1080. package/dist/.setup/rolldown-runtime-8H4AJuhK.mjs +0 -14
  1081. package/dist/.setup/room-info-DTyP1k5g.mjs +0 -153
  1082. package/dist/.setup/sdk-rqFjgltR.mjs +0 -1949
  1083. package/dist/.setup/send-aVdC5NJO.mjs +0 -2216
  1084. package/dist/.setup/send-currentness-BrGXL7b8.mjs +0 -90
  1085. package/dist/.setup/setup-bootstrap-A_WGFq1Y.mjs +0 -62
  1086. package/dist/.setup/setup-core-D2hMbIi3.mjs +0 -386
  1087. package/dist/.setup/setup-plugin-api-JiRgm8s6.mjs +0 -3
  1088. package/dist/.setup/setup-surface-BL3ha1l-.mjs +0 -482
  1089. package/dist/.setup/startup-verification-Cp1Gf7pM.mjs +0 -233
  1090. package/dist/.setup/storage-BXaFc0S4.mjs +0 -324
  1091. package/dist/.setup/storage-metadata-fHN6Df2m.mjs +0 -372
  1092. package/dist/.setup/storage-paths-DVCANXTc.mjs +0 -53
  1093. package/dist/.setup/subagent-hooks-jFgft_Mr.mjs +0 -52
  1094. package/dist/.setup/sync-cache-state-BMtGMxU1.mjs +0 -227
  1095. package/dist/.setup/thread-bindings-JlnLDfPM.mjs +0 -444
  1096. package/dist/.setup/thread-bindings-shared-oNPiyMWY.mjs +0 -92
  1097. package/dist/.setup/tool-actions.runtime-REzYTNxm.mjs +0 -862
  1098. package/dist/.setup/url-validation-GRHde6lq.mjs +0 -36
  1099. package/dist/.setup/verification-0o8MOW9T.mjs +0 -346
  1100. package/node_modules/matrix-js-sdk/node_modules/content-type/README.md +0 -71
  1101. package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.d.ts +0 -46
  1102. package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.js +0 -176
  1103. package/node_modules/matrix-js-sdk/node_modules/content-type/dist/index.js.map +0 -1
  1104. package/node_modules/matrix-js-sdk/node_modules/content-type/package.json +0 -52
  1105. package/node_modules/music-metadata/node_modules/debug/LICENSE +0 -20
  1106. package/node_modules/music-metadata/node_modules/debug/README.md +0 -481
  1107. package/node_modules/music-metadata/node_modules/debug/package.json +0 -64
  1108. package/node_modules/music-metadata/node_modules/debug/src/browser.js +0 -272
  1109. package/node_modules/music-metadata/node_modules/debug/src/common.js +0 -292
  1110. package/node_modules/music-metadata/node_modules/debug/src/index.js +0 -10
  1111. package/node_modules/music-metadata/node_modules/debug/src/node.js +0 -263
  1112. package/node_modules/music-metadata/node_modules/file-type/package.json +0 -275
  1113. package/node_modules/music-metadata/node_modules/file-type/readme.md +0 -603
  1114. package/node_modules/music-metadata/node_modules/file-type/source/detectors/zip.js +0 -648
  1115. package/node_modules/music-metadata/node_modules/ms/index.js +0 -162
  1116. package/node_modules/music-metadata/node_modules/ms/license.md +0 -21
  1117. package/node_modules/music-metadata/node_modules/ms/package.json +0 -38
  1118. package/node_modules/music-metadata/node_modules/ms/readme.md +0 -59
  1119. package/node_modules/typebox/build/guard/string.mjs +0 -168
  1120. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/LICENSE +0 -0
  1121. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/README.md +0 -0
  1122. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/OverloadYield.js +0 -0
  1123. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/applyDecoratedDescriptor.js +0 -0
  1124. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/applyDecs2311.js +0 -0
  1125. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/arrayLikeToArray.js +0 -0
  1126. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/arrayWithHoles.js +0 -0
  1127. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/arrayWithoutHoles.js +0 -0
  1128. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/assertClassBrand.js +0 -0
  1129. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/assertThisInitialized.js +0 -0
  1130. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/asyncGeneratorDelegate.js +0 -0
  1131. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/asyncIterator.js +0 -0
  1132. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/asyncToGenerator.js +0 -0
  1133. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/awaitAsyncGenerator.js +0 -0
  1134. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/callSuper.js +0 -0
  1135. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/checkInRHS.js +0 -0
  1136. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/checkPrivateRedeclaration.js +0 -0
  1137. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classCallCheck.js +0 -0
  1138. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classNameTDZError.js +0 -0
  1139. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldGet2.js +0 -0
  1140. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldInitSpec.js +0 -0
  1141. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldLooseBase.js +0 -0
  1142. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldLooseKey.js +0 -0
  1143. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateFieldSet2.js +0 -0
  1144. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateGetter.js +0 -0
  1145. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateMethodInitSpec.js +0 -0
  1146. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classPrivateSetter.js +0 -0
  1147. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/classStaticPrivateMethodGet.js +0 -0
  1148. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/construct.js +0 -0
  1149. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/createClass.js +0 -0
  1150. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/createForOfIteratorHelper.js +0 -0
  1151. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/createForOfIteratorHelperLoose.js +0 -0
  1152. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/createSuper.js +0 -0
  1153. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/defaults.js +0 -0
  1154. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/defineAccessor.js +0 -0
  1155. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/defineProperty.js +0 -0
  1156. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/OverloadYield.js +0 -0
  1157. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -0
  1158. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/applyDecs2311.js +0 -0
  1159. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/arrayLikeToArray.js +0 -0
  1160. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/arrayWithHoles.js +0 -0
  1161. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/arrayWithoutHoles.js +0 -0
  1162. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/assertClassBrand.js +0 -0
  1163. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/assertThisInitialized.js +0 -0
  1164. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -0
  1165. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/asyncIterator.js +0 -0
  1166. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/asyncToGenerator.js +0 -0
  1167. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/awaitAsyncGenerator.js +0 -0
  1168. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/callSuper.js +0 -0
  1169. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/checkInRHS.js +0 -0
  1170. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -0
  1171. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classCallCheck.js +0 -0
  1172. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classNameTDZError.js +0 -0
  1173. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldGet2.js +0 -0
  1174. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -0
  1175. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -0
  1176. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -0
  1177. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateFieldSet2.js +0 -0
  1178. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateGetter.js +0 -0
  1179. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -0
  1180. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classPrivateSetter.js +0 -0
  1181. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -0
  1182. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/construct.js +0 -0
  1183. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/createClass.js +0 -0
  1184. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/createForOfIteratorHelper.js +0 -0
  1185. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -0
  1186. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/createSuper.js +0 -0
  1187. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/defaults.js +0 -0
  1188. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/defineAccessor.js +0 -0
  1189. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/defineProperty.js +0 -0
  1190. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/extends.js +0 -0
  1191. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/get.js +0 -0
  1192. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/getPrototypeOf.js +0 -0
  1193. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/identity.js +0 -0
  1194. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/importDeferProxy.js +0 -0
  1195. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/inherits.js +0 -0
  1196. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/inheritsLoose.js +0 -0
  1197. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/initializerDefineProperty.js +0 -0
  1198. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/initializerWarningHelper.js +0 -0
  1199. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/instanceof.js +0 -0
  1200. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/interopRequireDefault.js +0 -0
  1201. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/interopRequireWildcard.js +0 -0
  1202. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/isNativeFunction.js +0 -0
  1203. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/isNativeReflectConstruct.js +0 -0
  1204. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/iterableToArray.js +0 -0
  1205. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/iterableToArrayLimit.js +0 -0
  1206. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/jsx.js +0 -0
  1207. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/maybeArrayLike.js +0 -0
  1208. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/newArrowCheck.js +0 -0
  1209. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/nonIterableRest.js +0 -0
  1210. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/nonIterableSpread.js +0 -0
  1211. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/nullishReceiverError.js +0 -0
  1212. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/objectDestructuringEmpty.js +0 -0
  1213. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/objectSpread2.js +0 -0
  1214. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/objectWithoutProperties.js +0 -0
  1215. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -0
  1216. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/package.json +0 -0
  1217. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/possibleConstructorReturn.js +0 -0
  1218. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/readOnlyError.js +0 -0
  1219. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regenerator.js +0 -0
  1220. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorAsync.js +0 -0
  1221. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorAsyncGen.js +0 -0
  1222. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -0
  1223. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorDefine.js +0 -0
  1224. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorKeys.js +0 -0
  1225. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/regeneratorValues.js +0 -0
  1226. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/set.js +0 -0
  1227. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/setFunctionName.js +0 -0
  1228. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/setPrototypeOf.js +0 -0
  1229. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -0
  1230. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/slicedToArray.js +0 -0
  1231. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/superPropBase.js +0 -0
  1232. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/superPropGet.js +0 -0
  1233. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/superPropSet.js +0 -0
  1234. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/taggedTemplateLiteral.js +0 -0
  1235. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -0
  1236. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/tdz.js +0 -0
  1237. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/temporalRef.js +0 -0
  1238. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/temporalUndefined.js +0 -0
  1239. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toArray.js +0 -0
  1240. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toConsumableArray.js +0 -0
  1241. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toPrimitive.js +0 -0
  1242. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toPropertyKey.js +0 -0
  1243. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/toSetter.js +0 -0
  1244. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +0 -0
  1245. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/typeof.js +0 -0
  1246. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/unsupportedIterableToArray.js +0 -0
  1247. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/usingCtx.js +0 -0
  1248. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/wrapAsyncGenerator.js +0 -0
  1249. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/wrapNativeSuper.js +0 -0
  1250. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/wrapRegExp.js +0 -0
  1251. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/esm/writeOnlyError.js +0 -0
  1252. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/extends.js +0 -0
  1253. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/get.js +0 -0
  1254. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/getPrototypeOf.js +0 -0
  1255. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/identity.js +0 -0
  1256. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/importDeferProxy.js +0 -0
  1257. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/inherits.js +0 -0
  1258. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/inheritsLoose.js +0 -0
  1259. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/initializerDefineProperty.js +0 -0
  1260. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/initializerWarningHelper.js +0 -0
  1261. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/instanceof.js +0 -0
  1262. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/interopRequireDefault.js +0 -0
  1263. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/interopRequireWildcard.js +0 -0
  1264. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/isNativeFunction.js +0 -0
  1265. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/isNativeReflectConstruct.js +0 -0
  1266. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/iterableToArray.js +0 -0
  1267. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/iterableToArrayLimit.js +0 -0
  1268. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/jsx.js +0 -0
  1269. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/maybeArrayLike.js +0 -0
  1270. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/newArrowCheck.js +0 -0
  1271. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/nonIterableRest.js +0 -0
  1272. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/nonIterableSpread.js +0 -0
  1273. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/nullishReceiverError.js +0 -0
  1274. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/objectDestructuringEmpty.js +0 -0
  1275. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/objectSpread2.js +0 -0
  1276. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/objectWithoutProperties.js +0 -0
  1277. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/objectWithoutPropertiesLoose.js +0 -0
  1278. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/possibleConstructorReturn.js +0 -0
  1279. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/readOnlyError.js +0 -0
  1280. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regenerator.js +0 -0
  1281. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorAsync.js +0 -0
  1282. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorAsyncGen.js +0 -0
  1283. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorAsyncIterator.js +0 -0
  1284. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorDefine.js +0 -0
  1285. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorKeys.js +0 -0
  1286. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/regeneratorValues.js +0 -0
  1287. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/set.js +0 -0
  1288. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/setFunctionName.js +0 -0
  1289. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/setPrototypeOf.js +0 -0
  1290. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/skipFirstGeneratorNext.js +0 -0
  1291. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/slicedToArray.js +0 -0
  1292. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/superPropBase.js +0 -0
  1293. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/superPropGet.js +0 -0
  1294. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/superPropSet.js +0 -0
  1295. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/taggedTemplateLiteral.js +0 -0
  1296. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/taggedTemplateLiteralLoose.js +0 -0
  1297. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/tdz.js +0 -0
  1298. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/temporalRef.js +0 -0
  1299. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/temporalUndefined.js +0 -0
  1300. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toArray.js +0 -0
  1301. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toConsumableArray.js +0 -0
  1302. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toPrimitive.js +0 -0
  1303. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toPropertyKey.js +0 -0
  1304. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/toSetter.js +0 -0
  1305. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/tsRewriteRelativeImportExtensions.js +0 -0
  1306. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/typeof.js +0 -0
  1307. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/unsupportedIterableToArray.js +0 -0
  1308. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/usingCtx.js +0 -0
  1309. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/wrapAsyncGenerator.js +0 -0
  1310. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/wrapNativeSuper.js +0 -0
  1311. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/wrapRegExp.js +0 -0
  1312. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/helpers/writeOnlyError.js +0 -0
  1313. /package/node_modules/{matrix-js-sdk/node_modules/@babel → @babel}/runtime/package.json +0 -0
  1314. /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/LICENSE.txt +0 -0
  1315. /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/README.md +0 -0
  1316. /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/lib/index.d.ts +0 -0
  1317. /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/lib/index.js +0 -0
  1318. /package/node_modules/{music-metadata/node_modules/@borewit → @borewit}/text-codec/package.json +0 -0
  1319. /package/node_modules/{music-metadata/node_modules/strtok3/lib/types.js → @openclaw/fs-safe/dist/containment.js} +0 -0
  1320. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/LICENSE +0 -0
  1321. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/README.md +0 -0
  1322. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/GzipHandler.d.ts +0 -0
  1323. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/GzipHandler.js +0 -0
  1324. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/ZipHandler.d.ts +0 -0
  1325. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/ZipHandler.js +0 -0
  1326. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/ZipToken.d.ts +0 -0
  1327. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/ZipToken.js +0 -0
  1328. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/index.d.ts +0 -0
  1329. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/lib/index.js +0 -0
  1330. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/inflate/package.json +0 -0
  1331. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/token/README.md +0 -0
  1332. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/token/index.d.ts +0 -0
  1333. /package/node_modules/{music-metadata/node_modules/@tokenizer → @tokenizer}/token/package.json +0 -0
  1334. /package/node_modules/{matrix-js-sdk/node_modules/@types → @types}/events/LICENSE +0 -0
  1335. /package/node_modules/{matrix-js-sdk/node_modules/@types → @types}/events/README.md +0 -0
  1336. /package/node_modules/{matrix-js-sdk/node_modules/@types → @types}/events/index.d.ts +0 -0
  1337. /package/node_modules/{matrix-js-sdk/node_modules/@types → @types}/events/package.json +0 -0
  1338. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/LICENSE +0 -0
  1339. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/README.md +0 -0
  1340. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/helpers.d.ts +0 -0
  1341. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/helpers.d.ts.map +0 -0
  1342. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/helpers.js +0 -0
  1343. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/helpers.js.map +0 -0
  1344. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/index.d.ts +0 -0
  1345. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/index.d.ts.map +0 -0
  1346. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/index.js +0 -0
  1347. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/dist/index.js.map +0 -0
  1348. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/agent-base → agent-base}/package.json +0 -0
  1349. /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/.jshint +0 -0
  1350. /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/.npmignore +0 -0
  1351. /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/.travis.yml +0 -0
  1352. /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/LICENSE +0 -0
  1353. /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/README.md +0 -0
  1354. /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/another-json.js +0 -0
  1355. /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/package.json +0 -0
  1356. /package/node_modules/{matrix-js-sdk/node_modules/another-json → another-json}/spec/another-json-spec.js +0 -0
  1357. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/LICENSE +0 -0
  1358. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/README.md +0 -0
  1359. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/_colorize.js +0 -0
  1360. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/argparse.d.ts +0 -0
  1361. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/argparse.js +0 -0
  1362. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/difflib.js +0 -0
  1363. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/sub.js +0 -0
  1364. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/lib/textwrap.js +0 -0
  1365. /package/node_modules/{markdown-it/node_modules/argparse → argparse}/package.json +0 -0
  1366. /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/LICENSE.md +0 -0
  1367. /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/README.md +0 -0
  1368. /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/package.json +0 -0
  1369. /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/src/cjs/index.cjs +0 -0
  1370. /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/src/cjs/index.d.ts +0 -0
  1371. /package/node_modules/{matrix-js-sdk/node_modules/base-x → base-x}/src/esm/index.js +0 -0
  1372. /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/LICENSE +0 -0
  1373. /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/README.md +0 -0
  1374. /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/package.json +0 -0
  1375. /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/src/cjs/index.cjs +0 -0
  1376. /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/src/cjs/index.d.ts +0 -0
  1377. /package/node_modules/{matrix-js-sdk/node_modules/bs58 → bs58}/src/esm/index.js +0 -0
  1378. /package/node_modules/{matrix-js-sdk/node_modules/content-type → content-type}/LICENSE +0 -0
  1379. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/LICENSE +0 -0
  1380. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/README.md +0 -0
  1381. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/package.json +0 -0
  1382. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/src/browser.js +0 -0
  1383. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/src/common.js +0 -0
  1384. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/src/index.js +0 -0
  1385. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/debug → debug}/src/node.js +0 -0
  1386. /package/node_modules/{markdown-it/node_modules/entities → entities}/LICENSE +0 -0
  1387. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode-codepoint.d.ts +0 -0
  1388. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode-codepoint.d.ts.map +0 -0
  1389. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode-codepoint.js +0 -0
  1390. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode-codepoint.js.map +0 -0
  1391. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode.d.ts +0 -0
  1392. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode.d.ts.map +0 -0
  1393. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode.js +0 -0
  1394. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/decode.js.map +0 -0
  1395. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/encode.d.ts +0 -0
  1396. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/encode.d.ts.map +0 -0
  1397. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/encode.js +0 -0
  1398. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/encode.js.map +0 -0
  1399. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/escape.d.ts +0 -0
  1400. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/escape.d.ts.map +0 -0
  1401. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/escape.js +0 -0
  1402. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/escape.js.map +0 -0
  1403. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-html.d.ts +0 -0
  1404. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-html.d.ts.map +0 -0
  1405. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-html.js +0 -0
  1406. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-html.js.map +0 -0
  1407. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-xml.d.ts +0 -0
  1408. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-xml.d.ts.map +0 -0
  1409. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-xml.js +0 -0
  1410. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/decode-data-xml.js.map +0 -0
  1411. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/encode-html.d.ts +0 -0
  1412. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/encode-html.d.ts.map +0 -0
  1413. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/encode-html.js +0 -0
  1414. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/generated/encode-html.js.map +0 -0
  1415. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/index.d.ts +0 -0
  1416. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/index.d.ts.map +0 -0
  1417. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/index.js +0 -0
  1418. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/index.js.map +0 -0
  1419. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/bin-trie-flags.d.ts +0 -0
  1420. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/bin-trie-flags.d.ts.map +0 -0
  1421. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/bin-trie-flags.js +0 -0
  1422. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/bin-trie-flags.js.map +0 -0
  1423. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/decode-shared.d.ts +0 -0
  1424. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/decode-shared.d.ts.map +0 -0
  1425. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/decode-shared.js +0 -0
  1426. /package/node_modules/{markdown-it/node_modules/entities → entities}/dist/internal/decode-shared.js.map +0 -0
  1427. /package/node_modules/{markdown-it/node_modules/entities → entities}/package.json +0 -0
  1428. /package/node_modules/{markdown-it/node_modules/entities → entities}/readme.md +0 -0
  1429. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/decode-codepoint.ts +0 -0
  1430. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/decode.ts +0 -0
  1431. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/encode.ts +0 -0
  1432. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/escape.ts +0 -0
  1433. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/generated/decode-data-html.ts +0 -0
  1434. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/generated/decode-data-xml.ts +0 -0
  1435. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/generated/encode-html.ts +0 -0
  1436. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/index.ts +0 -0
  1437. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/internal/bin-trie-flags.ts +0 -0
  1438. /package/node_modules/{markdown-it/node_modules/entities → entities}/src/internal/decode-shared.ts +0 -0
  1439. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/.airtap.yml +0 -0
  1440. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/.github/FUNDING.yml +0 -0
  1441. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/.travis.yml +0 -0
  1442. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/History.md +0 -0
  1443. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/LICENSE +0 -0
  1444. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/Readme.md +0 -0
  1445. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/events.js +0 -0
  1446. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/package.json +0 -0
  1447. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/security.md +0 -0
  1448. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/add-listeners.js +0 -0
  1449. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/check-listener-leaks.js +0 -0
  1450. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/common.js +0 -0
  1451. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/errors.js +0 -0
  1452. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/events-list.js +0 -0
  1453. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/events-once.js +0 -0
  1454. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/index.js +0 -0
  1455. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/legacy-compat.js +0 -0
  1456. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/listener-count.js +0 -0
  1457. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/listeners-side-effects.js +0 -0
  1458. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/listeners.js +0 -0
  1459. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/max-listeners.js +0 -0
  1460. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/method-names.js +0 -0
  1461. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/modify-in-emit.js +0 -0
  1462. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/num-args.js +0 -0
  1463. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/once.js +0 -0
  1464. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/prepend.js +0 -0
  1465. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/remove-all-listeners.js +0 -0
  1466. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/remove-listeners.js +0 -0
  1467. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/set-max-listeners-side-effects.js +0 -0
  1468. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/special-event-names.js +0 -0
  1469. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/subclass.js +0 -0
  1470. /package/node_modules/{matrix-js-sdk/node_modules/events → events}/tests/symbols.js +0 -0
  1471. /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → file-type}/license +0 -0
  1472. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/detectors/asf.js +0 -0
  1473. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/detectors/ebml.js +0 -0
  1474. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/detectors/png.js +0 -0
  1475. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/index.d.ts +0 -0
  1476. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/index.js +0 -0
  1477. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/index.test-d.ts +0 -0
  1478. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/parser.js +0 -0
  1479. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/supported.js +0 -0
  1480. /package/node_modules/{music-metadata/node_modules/file-type → file-type}/source/tokens.js +0 -0
  1481. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/LICENSE +0 -0
  1482. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/README.md +0 -0
  1483. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts +0 -0
  1484. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.d.ts.map +0 -0
  1485. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.js +0 -0
  1486. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/index.js.map +0 -0
  1487. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts +0 -0
  1488. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.d.ts.map +0 -0
  1489. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js +0 -0
  1490. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/dist/parse-proxy-response.js.map +0 -0
  1491. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/https-proxy-agent → https-proxy-agent}/package.json +0 -0
  1492. /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/LICENSE +0 -0
  1493. /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/README.md +0 -0
  1494. /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/index.d.ts +0 -0
  1495. /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/index.js +0 -0
  1496. /package/node_modules/{music-metadata/node_modules/ieee754 → ieee754}/package.json +0 -0
  1497. /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → is-network-error}/index.d.ts +0 -0
  1498. /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → is-network-error}/index.js +0 -0
  1499. /package/node_modules/{matrix-js-sdk/node_modules/p-retry → is-network-error}/license +0 -0
  1500. /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → is-network-error}/package.json +0 -0
  1501. /package/node_modules/{matrix-js-sdk/node_modules/is-network-error → is-network-error}/readme.md +0 -0
  1502. /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/LICENSE +0 -0
  1503. /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/README.md +0 -0
  1504. /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.cjs.js +0 -0
  1505. /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.cjs.js.map +0 -0
  1506. /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.d.ts +0 -0
  1507. /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.mjs +0 -0
  1508. /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/build/index.mjs.map +0 -0
  1509. /package/node_modules/{markdown-it/node_modules/linkify-it → linkify-it}/package.json +0 -0
  1510. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/.editorconfig +0 -0
  1511. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/CONTRIBUTING.md +0 -0
  1512. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/Gruntfile.js +0 -0
  1513. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/LICENSE-MIT +0 -0
  1514. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/README.md +0 -0
  1515. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/_config.yml +0 -0
  1516. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/bower.json +0 -0
  1517. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/demo/index.html +0 -0
  1518. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/demo/script.js +0 -0
  1519. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/demo/styles.css +0 -0
  1520. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/dist/loglevel.js +0 -0
  1521. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/dist/loglevel.min.js +0 -0
  1522. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/index.d.ts +0 -0
  1523. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/lib/loglevel.js +0 -0
  1524. /package/node_modules/{matrix-js-sdk/node_modules/loglevel → loglevel}/package.json +0 -0
  1525. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/LICENSE +0 -0
  1526. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/README.md +0 -0
  1527. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/ExtensibleEvents.d.ts +0 -0
  1528. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/ExtensibleEvents.js +0 -0
  1529. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/IPartialEvent.d.ts +0 -0
  1530. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/IPartialEvent.js +0 -0
  1531. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/InvalidEventError.d.ts +0 -0
  1532. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/InvalidEventError.js +0 -0
  1533. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/NamespacedMap.d.ts +0 -0
  1534. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/NamespacedMap.js +0 -0
  1535. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/NamespacedValue.d.ts +0 -0
  1536. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/NamespacedValue.js +0 -0
  1537. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/EmoteEvent.d.ts +0 -0
  1538. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/EmoteEvent.js +0 -0
  1539. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/ExtensibleEvent.d.ts +0 -0
  1540. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/ExtensibleEvent.js +0 -0
  1541. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/MessageEvent.d.ts +0 -0
  1542. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/MessageEvent.js +0 -0
  1543. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/NoticeEvent.d.ts +0 -0
  1544. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/NoticeEvent.js +0 -0
  1545. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollEndEvent.d.ts +0 -0
  1546. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollEndEvent.js +0 -0
  1547. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollResponseEvent.d.ts +0 -0
  1548. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollResponseEvent.js +0 -0
  1549. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollStartEvent.d.ts +0 -0
  1550. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/PollStartEvent.js +0 -0
  1551. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/message_types.d.ts +0 -0
  1552. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/message_types.js +0 -0
  1553. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/poll_types.d.ts +0 -0
  1554. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/poll_types.js +0 -0
  1555. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/relationship_types.d.ts +0 -0
  1556. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/events/relationship_types.js +0 -0
  1557. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/index.d.ts +0 -0
  1558. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/index.js +0 -0
  1559. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/legacy/MRoomMessage.d.ts +0 -0
  1560. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/legacy/MRoomMessage.js +0 -0
  1561. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/modern/MMessage.d.ts +0 -0
  1562. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/modern/MMessage.js +0 -0
  1563. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/modern/MPoll.d.ts +0 -0
  1564. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/interpreters/modern/MPoll.js +0 -0
  1565. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/types.d.ts +0 -0
  1566. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/types.js +0 -0
  1567. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/utility/MessageMatchers.d.ts +0 -0
  1568. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/utility/MessageMatchers.js +0 -0
  1569. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/utility/events.d.ts +0 -0
  1570. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/lib/utility/events.js +0 -0
  1571. /package/node_modules/{matrix-js-sdk/node_modules/matrix-events-sdk → matrix-events-sdk}/package.json +0 -0
  1572. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/LICENSE +0 -0
  1573. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/README.md +0 -0
  1574. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/dist/api.js +0 -0
  1575. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/dist/api.min.js +0 -0
  1576. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/ClientWidgetApi.d.ts +0 -0
  1577. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/ClientWidgetApi.js +0 -0
  1578. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/ClientWidgetApi.js.map +0 -0
  1579. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/Symbols.d.ts +0 -0
  1580. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/Symbols.js +0 -0
  1581. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/Symbols.js.map +0 -0
  1582. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/WidgetApi.d.ts +0 -0
  1583. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/WidgetApi.js +0 -0
  1584. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/WidgetApi.js.map +0 -0
  1585. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/driver/WidgetDriver.d.ts +0 -0
  1586. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/driver/WidgetDriver.js +0 -0
  1587. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/driver/WidgetDriver.js.map +0 -0
  1588. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/index.d.ts +0 -0
  1589. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/index.js +0 -0
  1590. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/index.js.map +0 -0
  1591. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ApiVersion.d.ts +0 -0
  1592. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ApiVersion.js +0 -0
  1593. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ApiVersion.js.map +0 -0
  1594. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/Capabilities.d.ts +0 -0
  1595. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/Capabilities.js +0 -0
  1596. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/Capabilities.js.map +0 -0
  1597. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/CapabilitiesAction.d.ts +0 -0
  1598. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/CapabilitiesAction.js +0 -0
  1599. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/CapabilitiesAction.js.map +0 -0
  1600. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ContentLoadedAction.d.ts +0 -0
  1601. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ContentLoadedAction.js +0 -0
  1602. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ContentLoadedAction.js.map +0 -0
  1603. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/DownloadFileAction.d.ts +0 -0
  1604. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/DownloadFileAction.js +0 -0
  1605. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/DownloadFileAction.js.map +0 -0
  1606. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetMediaConfigAction.d.ts +0 -0
  1607. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetMediaConfigAction.js +0 -0
  1608. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetMediaConfigAction.js.map +0 -0
  1609. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetOpenIDAction.d.ts +0 -0
  1610. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetOpenIDAction.js +0 -0
  1611. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/GetOpenIDAction.js.map +0 -0
  1612. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ICustomWidgetData.d.ts +0 -0
  1613. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ICustomWidgetData.js +0 -0
  1614. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ICustomWidgetData.js.map +0 -0
  1615. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IJitsiWidgetData.d.ts +0 -0
  1616. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IJitsiWidgetData.js +0 -0
  1617. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IJitsiWidgetData.js.map +0 -0
  1618. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomAccountData.d.ts +0 -0
  1619. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomAccountData.js +0 -0
  1620. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomAccountData.js.map +0 -0
  1621. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomEvent.d.ts +0 -0
  1622. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomEvent.js +0 -0
  1623. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IRoomEvent.js.map +0 -0
  1624. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.d.ts +0 -0
  1625. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.js +0 -0
  1626. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IStickerpickerWidgetData.js.map +0 -0
  1627. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IToDeviceMessage.d.ts +0 -0
  1628. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IToDeviceMessage.js +0 -0
  1629. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IToDeviceMessage.js.map +0 -0
  1630. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidget.d.ts +0 -0
  1631. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidget.js +0 -0
  1632. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidget.js.map +0 -0
  1633. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.d.ts +0 -0
  1634. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.js +0 -0
  1635. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiErrorResponse.js.map +0 -0
  1636. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiRequest.d.ts +0 -0
  1637. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiRequest.js +0 -0
  1638. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiRequest.js.map +0 -0
  1639. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiResponse.d.ts +0 -0
  1640. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiResponse.js +0 -0
  1641. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/IWidgetApiResponse.js.map +0 -0
  1642. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/LanguageChangeAction.d.ts +0 -0
  1643. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/LanguageChangeAction.js +0 -0
  1644. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/LanguageChangeAction.js.map +0 -0
  1645. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalButtonKind.d.ts +0 -0
  1646. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalButtonKind.js +0 -0
  1647. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalButtonKind.js.map +0 -0
  1648. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalWidgetActions.d.ts +0 -0
  1649. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalWidgetActions.js +0 -0
  1650. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ModalWidgetActions.js.map +0 -0
  1651. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/NavigateAction.d.ts +0 -0
  1652. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/NavigateAction.js +0 -0
  1653. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/NavigateAction.js.map +0 -0
  1654. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.d.ts +0 -0
  1655. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.js +0 -0
  1656. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/OpenIDCredentialsAction.js.map +0 -0
  1657. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadEventAction.d.ts +0 -0
  1658. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadEventAction.js +0 -0
  1659. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadEventAction.js.map +0 -0
  1660. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRelationsAction.d.ts +0 -0
  1661. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRelationsAction.js +0 -0
  1662. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRelationsAction.js.map +0 -0
  1663. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.d.ts +0 -0
  1664. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.js +0 -0
  1665. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ReadRoomAccountDataAction.js.map +0 -0
  1666. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcLivekitActions.d.ts +0 -0
  1667. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcLivekitActions.js +0 -0
  1668. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcLivekitActions.js.map +0 -0
  1669. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcTransportsAction.d.ts +0 -0
  1670. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcTransportsAction.js +0 -0
  1671. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/RtcTransportsAction.js.map +0 -0
  1672. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ScreenshotAction.d.ts +0 -0
  1673. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ScreenshotAction.js +0 -0
  1674. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ScreenshotAction.js.map +0 -0
  1675. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendEventAction.d.ts +0 -0
  1676. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendEventAction.js +0 -0
  1677. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendEventAction.js.map +0 -0
  1678. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendToDeviceAction.d.ts +0 -0
  1679. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendToDeviceAction.js +0 -0
  1680. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SendToDeviceAction.js.map +0 -0
  1681. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.d.ts +0 -0
  1682. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.js +0 -0
  1683. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SetModalButtonEnabledAction.js.map +0 -0
  1684. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickerAction.d.ts +0 -0
  1685. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickerAction.js +0 -0
  1686. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickerAction.js.map +0 -0
  1687. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickyAction.d.ts +0 -0
  1688. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickyAction.js +0 -0
  1689. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/StickyAction.js.map +0 -0
  1690. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SupportedVersionsAction.d.ts +0 -0
  1691. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SupportedVersionsAction.js +0 -0
  1692. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/SupportedVersionsAction.js.map +0 -0
  1693. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ThemeChangeAction.d.ts +0 -0
  1694. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ThemeChangeAction.js +0 -0
  1695. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/ThemeChangeAction.js.map +0 -0
  1696. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/TurnServerActions.d.ts +0 -0
  1697. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/TurnServerActions.js +0 -0
  1698. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/TurnServerActions.js.map +0 -0
  1699. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.d.ts +0 -0
  1700. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.js +0 -0
  1701. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateDelayedEventAction.js.map +0 -0
  1702. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateStateAction.d.ts +0 -0
  1703. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateStateAction.js +0 -0
  1704. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UpdateStateAction.js.map +0 -0
  1705. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UploadFileAction.d.ts +0 -0
  1706. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UploadFileAction.js +0 -0
  1707. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UploadFileAction.js.map +0 -0
  1708. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.d.ts +0 -0
  1709. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.js +0 -0
  1710. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/UserDirectorySearchAction.js.map +0 -0
  1711. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/VisibilityAction.d.ts +0 -0
  1712. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/VisibilityAction.js +0 -0
  1713. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/VisibilityAction.js.map +0 -0
  1714. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiAction.d.ts +0 -0
  1715. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiAction.js +0 -0
  1716. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiAction.js.map +0 -0
  1717. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiDirection.d.ts +0 -0
  1718. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiDirection.js +0 -0
  1719. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetApiDirection.js.map +0 -0
  1720. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetConfigAction.d.ts +0 -0
  1721. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetConfigAction.js +0 -0
  1722. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetConfigAction.js.map +0 -0
  1723. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetKind.d.ts +0 -0
  1724. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetKind.js +0 -0
  1725. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetKind.js.map +0 -0
  1726. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetType.d.ts +0 -0
  1727. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetType.js +0 -0
  1728. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/interfaces/WidgetType.js.map +0 -0
  1729. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/Widget.d.ts +0 -0
  1730. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/Widget.js +0 -0
  1731. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/Widget.js.map +0 -0
  1732. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetEventCapability.d.ts +0 -0
  1733. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetEventCapability.js +0 -0
  1734. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetEventCapability.js.map +0 -0
  1735. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetParser.d.ts +0 -0
  1736. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetParser.js +0 -0
  1737. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/WidgetParser.js.map +0 -0
  1738. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/url.d.ts +0 -0
  1739. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/url.js +0 -0
  1740. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/url.js.map +0 -0
  1741. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/utils.d.ts +0 -0
  1742. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/utils.js +0 -0
  1743. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/models/validation/utils.js.map +0 -0
  1744. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/templating/url-template.d.ts +0 -0
  1745. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/templating/url-template.js +0 -0
  1746. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/templating/url-template.js.map +0 -0
  1747. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/ITransport.d.ts +0 -0
  1748. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/ITransport.js +0 -0
  1749. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/ITransport.js.map +0 -0
  1750. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/PostmessageTransport.d.ts +0 -0
  1751. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/PostmessageTransport.js +0 -0
  1752. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/transport/PostmessageTransport.js.map +0 -0
  1753. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/util/SimpleObservable.d.ts +0 -0
  1754. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/util/SimpleObservable.js +0 -0
  1755. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/lib/util/SimpleObservable.js.map +0 -0
  1756. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/package.json +0 -0
  1757. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/ClientWidgetApi.ts +0 -0
  1758. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/Symbols.ts +0 -0
  1759. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/WidgetApi.ts +0 -0
  1760. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/driver/WidgetDriver.ts +0 -0
  1761. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/index.ts +0 -0
  1762. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ApiVersion.ts +0 -0
  1763. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/Capabilities.ts +0 -0
  1764. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/CapabilitiesAction.ts +0 -0
  1765. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ContentLoadedAction.ts +0 -0
  1766. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/DownloadFileAction.ts +0 -0
  1767. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/GetMediaConfigAction.ts +0 -0
  1768. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/GetOpenIDAction.ts +0 -0
  1769. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ICustomWidgetData.ts +0 -0
  1770. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IJitsiWidgetData.ts +0 -0
  1771. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IRoomAccountData.ts +0 -0
  1772. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IRoomEvent.ts +0 -0
  1773. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IStickerpickerWidgetData.ts +0 -0
  1774. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IToDeviceMessage.ts +0 -0
  1775. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IWidget.ts +0 -0
  1776. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IWidgetApiErrorResponse.ts +0 -0
  1777. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IWidgetApiRequest.ts +0 -0
  1778. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/IWidgetApiResponse.ts +0 -0
  1779. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/LanguageChangeAction.ts +0 -0
  1780. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ModalButtonKind.ts +0 -0
  1781. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ModalWidgetActions.ts +0 -0
  1782. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/NavigateAction.ts +0 -0
  1783. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/OpenIDCredentialsAction.ts +0 -0
  1784. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ReadEventAction.ts +0 -0
  1785. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ReadRelationsAction.ts +0 -0
  1786. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ReadRoomAccountDataAction.ts +0 -0
  1787. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/RtcLivekitActions.ts +0 -0
  1788. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/RtcTransportsAction.ts +0 -0
  1789. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ScreenshotAction.ts +0 -0
  1790. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/SendEventAction.ts +0 -0
  1791. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/SendToDeviceAction.ts +0 -0
  1792. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/SetModalButtonEnabledAction.ts +0 -0
  1793. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/StickerAction.ts +0 -0
  1794. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/StickyAction.ts +0 -0
  1795. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/SupportedVersionsAction.ts +0 -0
  1796. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/ThemeChangeAction.ts +0 -0
  1797. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/TurnServerActions.ts +0 -0
  1798. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/UpdateDelayedEventAction.ts +0 -0
  1799. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/UpdateStateAction.ts +0 -0
  1800. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/UploadFileAction.ts +0 -0
  1801. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/UserDirectorySearchAction.ts +0 -0
  1802. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/VisibilityAction.ts +0 -0
  1803. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetApiAction.ts +0 -0
  1804. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetApiDirection.ts +0 -0
  1805. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetConfigAction.ts +0 -0
  1806. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetKind.ts +0 -0
  1807. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/interfaces/WidgetType.ts +0 -0
  1808. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/Widget.ts +0 -0
  1809. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/WidgetEventCapability.ts +0 -0
  1810. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/WidgetParser.ts +0 -0
  1811. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/validation/url.ts +0 -0
  1812. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/models/validation/utils.ts +0 -0
  1813. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/templating/url-template.ts +0 -0
  1814. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/transport/ITransport.ts +0 -0
  1815. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/transport/PostmessageTransport.ts +0 -0
  1816. /package/node_modules/{matrix-js-sdk/node_modules/matrix-widget-api → matrix-widget-api}/src/util/SimpleObservable.ts +0 -0
  1817. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/LICENSE +0 -0
  1818. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/README.md +0 -0
  1819. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/build/index.cjs.js +0 -0
  1820. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/index.mjs +0 -0
  1821. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/decode.mjs +0 -0
  1822. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/encode.mjs +0 -0
  1823. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/format.mjs +0 -0
  1824. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/index.d.ts +0 -0
  1825. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/lib/parse.mjs +0 -0
  1826. /package/node_modules/{markdown-it/node_modules/mdurl → mdurl}/package.json +0 -0
  1827. /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/LICENSE +0 -0
  1828. /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/README.md +0 -0
  1829. /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/dist/index.d.ts +0 -0
  1830. /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/dist/index.js +0 -0
  1831. /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/dist/index.js.map +0 -0
  1832. /package/node_modules/{music-metadata/node_modules/media-typer → media-typer}/package.json +0 -0
  1833. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms → ms}/index.js +0 -0
  1834. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms → ms}/license.md +0 -0
  1835. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms → ms}/package.json +0 -0
  1836. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/ms → ms}/readme.md +0 -0
  1837. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/LICENSE +0 -0
  1838. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/README.md +0 -0
  1839. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/bin/helpers.js +0 -0
  1840. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/bin/ndh +0 -0
  1841. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/dist/index.js +0 -0
  1842. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/package.json +0 -0
  1843. /package/node_modules/{@matrix-org/matrix-sdk-crypto-nodejs/node_modules/node-downloader-helper → node-downloader-helper}/types/index.d.ts +0 -0
  1844. /package/node_modules/{matrix-js-sdk/node_modules/p-retry → p-retry}/index.d.ts +0 -0
  1845. /package/node_modules/{matrix-js-sdk/node_modules/p-retry → p-retry}/index.js +0 -0
  1846. /package/node_modules/{music-metadata/node_modules/file-type → p-retry}/license +0 -0
  1847. /package/node_modules/{matrix-js-sdk/node_modules/p-retry → p-retry}/package.json +0 -0
  1848. /package/node_modules/{matrix-js-sdk/node_modules/p-retry → p-retry}/readme.md +0 -0
  1849. /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/LICENSE-MIT.txt +0 -0
  1850. /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/README.md +0 -0
  1851. /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/package.json +0 -0
  1852. /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/punycode.es6.js +0 -0
  1853. /package/node_modules/{markdown-it/node_modules/punycode.js → punycode.js}/punycode.js +0 -0
  1854. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.eslintrc.js +0 -0
  1855. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.github/FUNDING.yml +0 -0
  1856. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.github/codecov.yml +0 -0
  1857. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.github/dependabot.yml +0 -0
  1858. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/.github/workflows/ci.yml +0 -0
  1859. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/CHANGELOG.md +0 -0
  1860. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/LICENSE +0 -0
  1861. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/README.md +0 -0
  1862. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/checker.js +0 -0
  1863. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/lib/grammar.js +0 -0
  1864. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/lib/index.js +0 -0
  1865. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/lib/parser.js +0 -0
  1866. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/lib/writer.js +0 -0
  1867. /package/node_modules/{matrix-js-sdk/node_modules/sdp-transform → sdp-transform}/package.json +0 -0
  1868. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/LICENSE.txt +0 -0
  1869. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/README.md +0 -0
  1870. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/AbstractTokenizer.d.ts +0 -0
  1871. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/AbstractTokenizer.js +0 -0
  1872. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/BlobTokenizer.d.ts +0 -0
  1873. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/BlobTokenizer.js +0 -0
  1874. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/BufferTokenizer.d.ts +0 -0
  1875. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/BufferTokenizer.js +0 -0
  1876. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/FileTokenizer.d.ts +0 -0
  1877. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/FileTokenizer.js +0 -0
  1878. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/ReadStreamTokenizer.d.ts +0 -0
  1879. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/ReadStreamTokenizer.js +0 -0
  1880. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/core.d.ts +0 -0
  1881. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/core.js +0 -0
  1882. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/index.d.ts +0 -0
  1883. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/index.js +0 -0
  1884. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/AbstractStreamReader.d.ts +0 -0
  1885. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/AbstractStreamReader.js +0 -0
  1886. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/Deferred.d.ts +0 -0
  1887. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/Deferred.js +0 -0
  1888. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/Errors.d.ts +0 -0
  1889. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/Errors.js +0 -0
  1890. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/StreamReader.d.ts +0 -0
  1891. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/StreamReader.js +0 -0
  1892. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamByobReader.d.ts +0 -0
  1893. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamByobReader.js +0 -0
  1894. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamDefaultReader.d.ts +0 -0
  1895. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamDefaultReader.js +0 -0
  1896. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamReader.d.ts +0 -0
  1897. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamReader.js +0 -0
  1898. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamReaderFactory.d.ts +0 -0
  1899. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/WebStreamReaderFactory.js +0 -0
  1900. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/index.d.ts +0 -0
  1901. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/stream/index.js +0 -0
  1902. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/lib/types.d.ts +0 -0
  1903. /package/node_modules/{music-metadata/node_modules/strtok3 → strtok3}/package.json +0 -0
  1904. /package/node_modules/{music-metadata/node_modules/token-types → token-types}/LICENSE.txt +0 -0
  1905. /package/node_modules/{music-metadata/node_modules/token-types → token-types}/README.md +0 -0
  1906. /package/node_modules/{music-metadata/node_modules/token-types → token-types}/lib/index.d.ts +0 -0
  1907. /package/node_modules/{music-metadata/node_modules/token-types → token-types}/lib/index.js +0 -0
  1908. /package/node_modules/{music-metadata/node_modules/token-types → token-types}/package.json +0 -0
  1909. /package/node_modules/typebox/build/guard/{string.d.mts → unicode/unicode_segment.d.mts} +0 -0
  1910. /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/LICENSE.txt +0 -0
  1911. /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/README.md +0 -0
  1912. /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/build/index.cjs.js +0 -0
  1913. /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/build/index.d.ts +0 -0
  1914. /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/build/index.mjs +0 -0
  1915. /package/node_modules/{markdown-it/node_modules/uc.micro → uc.micro}/package.json +0 -0
  1916. /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/index.d.ts +0 -0
  1917. /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/index.js +0 -0
  1918. /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/license +0 -0
  1919. /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/package.json +0 -0
  1920. /package/node_modules/{music-metadata/node_modules/uint8array-extras → uint8array-extras}/readme.md +0 -0
  1921. /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/CHANGELOG.md +0 -0
  1922. /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/LICENSE +0 -0
  1923. /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/README.md +0 -0
  1924. /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/data.json +0 -0
  1925. /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/index.d.ts +0 -0
  1926. /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/index.js +0 -0
  1927. /package/node_modules/{matrix-js-sdk/node_modules/unhomoglyph → unhomoglyph}/package.json +0 -0
  1928. /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/LICENSE.txt +0 -0
  1929. /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/README.md +0 -0
  1930. /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/lib/guid.d.ts +0 -0
  1931. /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/lib/guid.js +0 -0
  1932. /package/node_modules/{music-metadata/node_modules/win-guid → win-guid}/package.json +0 -0
@@ -1,2216 +0,0 @@
1
- import { t as __exportAll } from "./rolldown-runtime-8H4AJuhK.mjs";
2
- import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
3
- import { a as resolveMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
4
- import { i as normalizeMatrixResolvableTarget, t as isMatrixQualifiedUserId } from "./target-ids-Nwx7cMVE.mjs";
5
- import { n as withMatrixSendCurrentness, o as buildMatrixReactionContent, t as captureMatrixSendCurrentness } from "./send-currentness-BrGXL7b8.mjs";
6
- import { _ as MsgType, d as buildMatrixMessageRelation, f as resolveMatrixReplyToEventId, g as MSC4357_LIVE_KEY, l as isStrictDirectRoom, m as EventType, n as inspectMatrixDirectRooms, p as resolveMatrixThreadRootId, r as persistMatrixDirectRoomMapping, v as RelationType } from "./direct-management-B2Bno2xL.mjs";
7
- import { n as getMatrixEventProjection } from "./event-helpers-CspuhE9k.mjs";
8
- import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
9
- import { createMessageReceiptFromOutboundResults } from "openclaw/plugin-sdk/channel-outbound";
10
- import { asFiniteNumber, asNullableObjectRecord, asNullableRecord, isRecord, normalizeLowercaseStringOrEmpty, normalizeOptionalString, normalizeOptionalStringifiedId } from "openclaw/plugin-sdk/string-coerce-runtime";
11
- import { FormatCapabilityProfile, convertMarkdownTables, findCodeRegions, isInsideCode, markdownToIR, renderMarkdownWithMarkers, tokenizeHtmlTags } from "openclaw/plugin-sdk/text-chunking";
12
- import { createHash } from "node:crypto";
13
- import path from "node:path";
14
- import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";
15
- import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
16
- import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
17
- import { M_POLL_KIND_DISCLOSED } from "matrix-js-sdk/lib/@types/polls.js";
18
- import { normalizePollInput } from "openclaw/plugin-sdk/poll-runtime";
19
- import { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
20
- import { resolveTextChunkLimit } from "openclaw/plugin-sdk/reply-chunking";
21
- import MarkdownIt from "markdown-it";
22
- import { isAutoLinkedFileRef } from "openclaw/plugin-sdk/text-autolink-runtime";
23
- import { isVoiceMessageCompatibleAudio } from "openclaw/plugin-sdk/media-runtime";
24
- import { parseBuffer } from "music-metadata";
25
- //#region extensions/matrix/src/matrix/send/client.ts
26
- const loadMatrixSendClientRuntime = createLazyRuntimeModule(() => import("./client-bootstrap-BSnUAoz1.mjs"));
27
- function resolveMediaMaxBytes(accountId, cfg) {
28
- if (!cfg) throw new Error("Matrix media limits requires a resolved runtime config. Load and resolve config at the command or gateway boundary, then pass cfg through the runtime path.");
29
- const resolvedCfg = requireRuntimeConfig(cfg, "Matrix media limits");
30
- const mediaMaxMb = resolveMatrixAccountConfig({
31
- cfg: resolvedCfg,
32
- accountId
33
- }).mediaMaxMb;
34
- return typeof mediaMaxMb === "number" && mediaMaxMb > 0 ? mediaMaxMb * 1024 * 1024 : void 0;
35
- }
36
- async function withResolvedMatrixSendClient(opts, run) {
37
- return await withResolvedMatrixClient({
38
- ...opts,
39
- readiness: "started"
40
- }, (client, abortSignal) => {
41
- if (!opts.signal && !opts.assertDirectAdapterHandoff) return run(client, abortSignal);
42
- return withMatrixSendCurrentness(client, () => {
43
- opts.assertDirectAdapterHandoff?.();
44
- opts.signal?.throwIfAborted();
45
- abortSignal?.throwIfAborted();
46
- }, () => run(client, abortSignal));
47
- }, "persist");
48
- }
49
- async function withResolvedMatrixControlClient(opts, run) {
50
- return await withResolvedMatrixClient({
51
- ...opts,
52
- readiness: "none"
53
- }, run);
54
- }
55
- async function withResolvedMatrixClient(opts, run, shutdownBehavior) {
56
- if (opts.client) return await run(opts.client);
57
- const { withResolvedRuntimeMatrixClient } = await loadMatrixSendClientRuntime();
58
- return await withResolvedRuntimeMatrixClient(opts, run, shutdownBehavior);
59
- }
60
- //#endregion
61
- //#region extensions/matrix/src/matrix/send/receipt.ts
62
- function createMatrixSendReceipt(params) {
63
- const firstEvent = params.events[0];
64
- const receipt = createMessageReceiptFromOutboundResults({
65
- kind: firstEvent?.kind ?? "text",
66
- ...firstEvent?.replyToId ? { replyToId: firstEvent.replyToId } : {},
67
- ...params.threadId ? { threadId: params.threadId } : {},
68
- results: params.events.map(({ messageId }) => ({
69
- channel: "matrix",
70
- messageId,
71
- roomId: params.roomId
72
- }))
73
- });
74
- receipt.parts = receipt.parts.map((part, index) => {
75
- const event = params.events[index];
76
- const actualPart = {
77
- ...part,
78
- kind: event.kind
79
- };
80
- if (event.replyToId) actualPart.replyToId = event.replyToId;
81
- else delete actualPart.replyToId;
82
- return actualPart;
83
- });
84
- return receipt;
85
- }
86
- //#endregion
87
- //#region extensions/matrix/src/matrix/send/targets.ts
88
- function normalizeTarget(raw) {
89
- const trimmed = raw.trim();
90
- if (!trimmed) throw new Error("Matrix target is required (room:<id> or #alias)");
91
- return trimmed;
92
- }
93
- function normalizeThreadId(raw) {
94
- return normalizeOptionalStringifiedId(raw) ?? null;
95
- }
96
- const MAX_DIRECT_ROOM_CACHE_SIZE = 1024;
97
- const directRoomCacheByClient = /* @__PURE__ */ new WeakMap();
98
- function resolveDirectRoomCache(client) {
99
- const existing = directRoomCacheByClient.get(client);
100
- if (existing) return existing;
101
- const created = /* @__PURE__ */ new Map();
102
- directRoomCacheByClient.set(client, created);
103
- return created;
104
- }
105
- function setDirectRoomCached(client, key, value) {
106
- const directRoomCache = resolveDirectRoomCache(client);
107
- directRoomCache.set(key, value);
108
- if (directRoomCache.size > MAX_DIRECT_ROOM_CACHE_SIZE) {
109
- const oldest = directRoomCache.keys().next().value;
110
- if (oldest !== void 0) directRoomCache.delete(oldest);
111
- }
112
- }
113
- async function resolveDirectRoomId(client, userId, persistDirectMapping) {
114
- const trimmed = userId.trim();
115
- if (!isMatrixQualifiedUserId(trimmed)) throw new Error(`Matrix user IDs must be fully qualified (got "${trimmed}")`);
116
- const selfUserId = (await client.getUserId().catch(() => null))?.trim() || null;
117
- const directRoomCache = resolveDirectRoomCache(client);
118
- const cacheKey = persistDirectMapping ? trimmed : `read:${trimmed}`;
119
- const cached = directRoomCache.get(cacheKey);
120
- if (cached && await isStrictDirectRoom({
121
- client,
122
- roomId: cached,
123
- remoteUserId: trimmed,
124
- selfUserId
125
- })) return cached;
126
- if (cached) directRoomCache.delete(cacheKey);
127
- const inspection = await inspectMatrixDirectRooms({
128
- client,
129
- remoteUserId: trimmed
130
- });
131
- if (inspection.activeRoomId) {
132
- if (persistDirectMapping && inspection.mappedRoomIds[0] !== inspection.activeRoomId) await persistMatrixDirectRoomMapping({
133
- client,
134
- remoteUserId: trimmed,
135
- roomId: inspection.activeRoomId
136
- }).catch(() => {
137
- captureMatrixSendCurrentness(client)?.();
138
- });
139
- setDirectRoomCached(client, cacheKey, inspection.activeRoomId);
140
- return inspection.activeRoomId;
141
- }
142
- throw new Error(`No direct room found for ${trimmed} (m.direct missing)`);
143
- }
144
- async function resolveMatrixRoomId(client, raw, opts = {}) {
145
- const target = normalizeMatrixResolvableTarget(normalizeTarget(raw));
146
- if (normalizeLowercaseStringOrEmpty(target).startsWith("user:")) return await resolveDirectRoomId(client, target.slice(5), opts.persistDirectMapping ?? true);
147
- if (isMatrixQualifiedUserId(target)) return await resolveDirectRoomId(client, target, opts.persistDirectMapping ?? true);
148
- if (target.startsWith("#")) {
149
- const resolved = await client.resolveRoom(target);
150
- if (!resolved) throw new Error(`Matrix alias ${target} could not be resolved`);
151
- return resolved;
152
- }
153
- return target;
154
- }
155
- //#endregion
156
- //#region extensions/matrix/src/matrix/delivery-plan.ts
157
- const DELIVERY_PLAN_VERSION = 1;
158
- const DELIVERY_PLAN_NAMESPACE = "outbound-delivery-plans";
159
- const DELIVERY_PLAN_TTL_MS = 864e5;
160
- var MatrixDeliveryPlanInvariantError = class extends Error {
161
- constructor(message) {
162
- super(message);
163
- this.name = "MatrixDeliveryPlanInvariantError";
164
- }
165
- };
166
- function createDeliveryPlanStore() {
167
- return getMatrixRuntime().state.openBlobStore({
168
- namespace: DELIVERY_PLAN_NAMESPACE,
169
- maxEntries: 1e4,
170
- maxBytesPerEntry: 8388608,
171
- maxBytesPerNamespace: 268435456,
172
- overflowPolicy: "reject-new",
173
- defaultTtlMs: DELIVERY_PLAN_TTL_MS
174
- });
175
- }
176
- function requireIndex(value, label) {
177
- if (!Number.isSafeInteger(value) || value < 0) throw new Error(`Matrix durable delivery ${label} must be a non-negative integer`);
178
- return value;
179
- }
180
- function requirePartCount(value) {
181
- if (!Number.isSafeInteger(value) || (value ?? 0) < 1) throw new Error("Matrix durable delivery part count must be a positive integer");
182
- return value;
183
- }
184
- function queuePrefix(queueId) {
185
- const normalized = queueId.trim();
186
- if (!normalized) throw new Error("Matrix durable delivery requires a queue id");
187
- return `${createHash("sha256").update(normalized).digest("hex")}.`;
188
- }
189
- function planKey(identity) {
190
- return `${queuePrefix(identity.queueId)}${requireIndex(identity.partIndex, "part index")}`;
191
- }
192
- function transactionId(identity, eventIndex) {
193
- return `oc_${createHash("sha256").update(identity.queueId).update("\0").update(String(requireIndex(identity.partIndex, "part index"))).update("\0").update(String(requireIndex(eventIndex, "event index"))).digest("base64url")}`;
194
- }
195
- const RECEIPT_KINDS = /* @__PURE__ */ new Set([
196
- "text",
197
- "media",
198
- "voice",
199
- "poll",
200
- "card",
201
- "preview",
202
- "unknown"
203
- ]);
204
- function isPlan(value) {
205
- if (!value || typeof value !== "object") return false;
206
- const plan = value;
207
- return plan.version === DELIVERY_PLAN_VERSION && typeof plan.queueId === "string" && Boolean(plan.queueId.trim()) && typeof plan.accountId === "string" && typeof plan.roomId === "string" && Boolean(plan.roomId.trim()) && (plan.wireEventType === "m.room.message" || plan.wireEventType === "m.room.encrypted") && typeof plan.endpointPrefix === "string" && Boolean(plan.endpointPrefix.trim()) && typeof plan.transactionScopeId === "string" && Boolean(plan.transactionScopeId.trim()) && Number.isSafeInteger(plan.partIndex) && (plan.partIndex ?? -1) >= 0 && Number.isSafeInteger(plan.partCount) && (plan.partCount ?? 0) > 0 && (plan.partIndex ?? -1) < (plan.partCount ?? 0) && Array.isArray(plan.events) && plan.events.length > 0 && plan.events.every((event) => event && typeof event === "object" && typeof event.transactionId === "string" && Boolean(event.transactionId.trim()) && RECEIPT_KINDS.has(event.receiptKind) && Boolean(event.content) && typeof event.content === "object");
208
- }
209
- function decodePlan(bytes) {
210
- let value;
211
- try {
212
- value = JSON.parse(new TextDecoder().decode(bytes));
213
- } catch {
214
- throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan is invalid JSON");
215
- }
216
- if (!isPlan(value)) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan is invalid");
217
- return value;
218
- }
219
- function assertPlanIdentity(plan, params) {
220
- if (plan.queueId !== params.identity.queueId || plan.partIndex !== params.identity.partIndex || plan.partCount !== params.identity.partCount || plan.accountId !== (params.accountId ?? "") || plan.roomId !== params.roomId || plan.transactionScopeId !== params.transactionScopeId || plan.wireEventType !== params.wireEventType) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan no longer matches the active delivery target");
221
- }
222
- function endpointPrefix(dispatch) {
223
- const encodedTransactionId = encodeURIComponent(dispatch.transactionId);
224
- if (!dispatch.requestPath.endsWith(encodedTransactionId)) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery transaction does not match its request path");
225
- return dispatch.requestPath.slice(0, -encodedTransactionId.length);
226
- }
227
- function createMatrixPlannedEvents(params) {
228
- return params.events.map((event, index) => ({
229
- ...structuredClone(event),
230
- transactionId: transactionId(params.identity, index)
231
- }));
232
- }
233
- function resolveMatrixDurableDeliveryIdentity(params) {
234
- if (params.queueId === void 0) return null;
235
- if (params.partIndex === void 0 || params.partCount === void 0) throw new Error("Matrix durable delivery requires stable part topology");
236
- const partIndex = requireIndex(params.partIndex, "part index");
237
- const partCount = requirePartCount(params.partCount);
238
- if (partIndex >= partCount) throw new Error("Matrix durable delivery part index must be below the part count");
239
- return {
240
- queueId: params.queueId,
241
- partIndex,
242
- partCount
243
- };
244
- }
245
- async function loadMatrixDeliveryPlan(params) {
246
- const entry = await createDeliveryPlanStore().lookup(planKey(params.identity));
247
- if (!entry) return null;
248
- const plan = decodePlan(entry.bytes);
249
- if (planKey(plan) !== planKey(params.identity)) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan key is invalid");
250
- assertPlanIdentity(plan, params);
251
- return structuredClone(plan);
252
- }
253
- async function persistMatrixDeliveryPlan(params) {
254
- if (params.events.length === 0) throw new Error("Matrix durable delivery plan must contain at least one event");
255
- if (params.dispatch.roomId !== params.roomId || params.dispatch.eventType !== params.wireEventType || !params.events.some((event) => event.transactionId === params.dispatch.transactionId)) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery was dispatched to an unexpected endpoint");
256
- const partCount = requirePartCount(params.identity.partCount);
257
- const events = params.events.map((event, index) => {
258
- if (event.transactionId !== transactionId(params.identity, index)) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan has an invalid transaction identifier");
259
- return structuredClone(event);
260
- });
261
- const plan = {
262
- version: DELIVERY_PLAN_VERSION,
263
- queueId: params.identity.queueId,
264
- accountId: params.accountId ?? "",
265
- roomId: params.roomId,
266
- wireEventType: params.wireEventType,
267
- endpointPrefix: endpointPrefix(params.dispatch),
268
- transactionScopeId: params.transactionScopeId,
269
- partIndex: requireIndex(params.identity.partIndex, "part index"),
270
- partCount,
271
- events
272
- };
273
- const store = createDeliveryPlanStore();
274
- await store.deleteExpired();
275
- const bytes = new TextEncoder().encode(JSON.stringify(plan));
276
- if (await store.registerIfAbsent(planKey(params.identity), bytes, {})) return plan;
277
- const existing = await loadMatrixDeliveryPlan(params);
278
- if (!existing || JSON.stringify(existing) !== JSON.stringify(plan)) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan no longer matches the prepared event batch");
279
- return existing;
280
- }
281
- async function loadQueuePlans(queueId) {
282
- const store = createDeliveryPlanStore();
283
- const entries = await store.entries();
284
- const prefix = entries.length > 0 ? queuePrefix(queueId) : "";
285
- const keys = entries.filter((entry) => entry.key.startsWith(prefix)).map((entry) => entry.key);
286
- const plans = [];
287
- for (const key of keys) {
288
- const entry = await store.lookup(key);
289
- if (!entry) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan disappeared during reconciliation");
290
- const plan = decodePlan(entry.bytes);
291
- if (key !== planKey(plan)) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan key is invalid");
292
- plans.push(plan);
293
- }
294
- return plans;
295
- }
296
- function assertCompletePartTopology(plans) {
297
- const partCount = plans[0]?.partCount;
298
- if (!partCount) throw new MatrixDeliveryPlanInvariantError("Matrix ambiguous delivery has no event plan");
299
- if (plans.some((plan) => plan.partCount !== partCount)) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery plan part topology is inconsistent");
300
- const storedParts = new Set(plans.map((plan) => plan.partIndex));
301
- if (storedParts.size !== partCount || Array.from({ length: partCount }, (_, partIndex) => partIndex).some((partIndex) => !storedParts.has(partIndex))) throw new MatrixDeliveryPlanInvariantError("Matrix ambiguous delivery has an incomplete event plan");
302
- }
303
- async function requireTransactionScope(client) {
304
- const scope = (await client.getTransactionScopeId()).trim();
305
- if (!scope) throw new MatrixDeliveryPlanInvariantError("Matrix durable delivery requires a stable transaction scope");
306
- return scope;
307
- }
308
- async function reconcileMatrixUnknownSend(ctx) {
309
- try {
310
- if (ctx.payloads.length !== 1) throw new MatrixDeliveryPlanInvariantError("Matrix reconciliation requires exactly one prepared payload");
311
- const plans = await loadQueuePlans(ctx.queueId);
312
- if (plans.length === 0) throw new MatrixDeliveryPlanInvariantError("Matrix ambiguous delivery has no persisted event plan");
313
- assertCompletePartTopology(plans);
314
- return await withResolvedMatrixSendClient({
315
- cfg: ctx.cfg,
316
- accountId: ctx.accountId
317
- }, async (client) => {
318
- const transactionScopeId = await requireTransactionScope(client);
319
- const roomId = await resolveMatrixRoomId(client, ctx.to);
320
- const wireEventType = await client.getMessageWireEventType(roomId);
321
- const orderedPlans = [...plans].toSorted((left, right) => left.partIndex - right.partIndex);
322
- const results = /* @__PURE__ */ new Map();
323
- for (const plan of orderedPlans) {
324
- assertPlanIdentity(plan, {
325
- identity: plan,
326
- accountId: ctx.accountId,
327
- roomId,
328
- transactionScopeId,
329
- wireEventType
330
- });
331
- for (const event of plan.events) {
332
- const messageId = await client.sendMessage(roomId, event.content, event.transactionId, async (dispatch) => {
333
- await persistMatrixDeliveryPlan({
334
- identity: plan,
335
- accountId: ctx.accountId,
336
- roomId,
337
- transactionScopeId,
338
- wireEventType,
339
- events: plan.events,
340
- dispatch
341
- });
342
- });
343
- if (!results.has(messageId)) {
344
- const replyToId = resolveMatrixReplyToEventId(event.content);
345
- results.set(messageId, {
346
- messageId,
347
- kind: event.receiptKind,
348
- ...replyToId ? { replyToId } : {}
349
- });
350
- }
351
- }
352
- }
353
- const receipt = createMatrixSendReceipt({
354
- roomId,
355
- events: [...results.values()],
356
- threadId: resolveMatrixThreadRootId(orderedPlans[0].events[0].content)
357
- });
358
- return {
359
- status: "sent",
360
- messageId: receipt.platformMessageIds.at(-1),
361
- receipt
362
- };
363
- });
364
- } catch (error) {
365
- const retryable = !(error instanceof MatrixDeliveryPlanInvariantError);
366
- let cleanupError;
367
- if (!retryable) try {
368
- await cleanupMatrixDeliveryPlans({ queueId: ctx.queueId });
369
- } catch (cleanupFailure) {
370
- cleanupError = cleanupFailure;
371
- }
372
- const errorMessage = formatErrorMessage(error instanceof Error || typeof error === "string" ? error : "unknown error");
373
- return {
374
- status: "unresolved",
375
- error: cleanupError === void 0 ? errorMessage : `${errorMessage}; Matrix delivery-plan cleanup failed: ${formatErrorMessage(cleanupError instanceof Error || typeof cleanupError === "string" ? cleanupError : "unknown error")}`,
376
- retryable
377
- };
378
- }
379
- }
380
- async function cleanupMatrixDeliveryPlans(ctx) {
381
- const store = createDeliveryPlanStore();
382
- await store.deleteExpired();
383
- const entries = await store.entries();
384
- const prefix = entries.length > 0 ? queuePrefix(ctx.queueId) : "";
385
- const keys = entries.filter((entry) => entry.key.startsWith(prefix)).map((entry) => entry.key);
386
- for (const key of keys) await store.delete(key);
387
- }
388
- //#endregion
389
- //#region extensions/matrix/src/matrix/poll-types.ts
390
- /**
391
- * Matrix Poll Types (MSC3381)
392
- *
393
- * Defines types for Matrix poll events:
394
- * - m.poll.start - Creates a new poll
395
- * - m.poll.response - Records a vote
396
- * - m.poll.end - Closes a poll
397
- */
398
- const M_POLL_START = "m.poll.start";
399
- const M_POLL_RESPONSE = "m.poll.response";
400
- const M_POLL_END = "m.poll.end";
401
- const ORG_POLL_START = "org.matrix.msc3381.poll.start";
402
- const ORG_POLL_RESPONSE = "org.matrix.msc3381.poll.response";
403
- const ORG_POLL_END = "org.matrix.msc3381.poll.end";
404
- const POLL_EVENT_TYPES = [
405
- M_POLL_START,
406
- M_POLL_RESPONSE,
407
- M_POLL_END,
408
- ORG_POLL_START,
409
- ORG_POLL_RESPONSE,
410
- ORG_POLL_END
411
- ];
412
- const POLL_START_TYPES = [M_POLL_START, ORG_POLL_START];
413
- const POLL_RESPONSE_TYPES = [M_POLL_RESPONSE, ORG_POLL_RESPONSE];
414
- const POLL_END_TYPES = [M_POLL_END, ORG_POLL_END];
415
- function isPollStartType(eventType) {
416
- return POLL_START_TYPES.includes(eventType);
417
- }
418
- function isPollResponseType(eventType) {
419
- return POLL_RESPONSE_TYPES.includes(eventType);
420
- }
421
- function isPollEndType(eventType) {
422
- return POLL_END_TYPES.includes(eventType);
423
- }
424
- function isPollEventType(eventType) {
425
- return POLL_EVENT_TYPES.includes(eventType);
426
- }
427
- function getTextContent(text) {
428
- if (!isRecord(text)) return "";
429
- const value = text["m.text"] ?? text["org.matrix.msc1767.text"] ?? text.body;
430
- return normalizeOptionalString(value) ?? "";
431
- }
432
- function parsePollStart(content) {
433
- const poll = content["m.poll.start"] ?? content[ORG_POLL_START] ?? content["m.poll"];
434
- if (!poll) return null;
435
- const question = getTextContent(poll.question);
436
- if (!question) return null;
437
- const rawAnswers = poll.answers;
438
- const answers = (Array.isArray(rawAnswers) ? rawAnswers : []).map((answer) => ({
439
- id: isRecord(answer) && typeof answer.id === "string" ? answer.id : "",
440
- text: getTextContent(answer)
441
- })).filter((answer) => answer.id.trim().length > 0 && answer.text.length > 0);
442
- if (answers.length === 0) return null;
443
- const maxSelectionsRaw = poll.max_selections;
444
- const maxSelections = typeof maxSelectionsRaw === "number" && Number.isFinite(maxSelectionsRaw) ? Math.floor(maxSelectionsRaw) : 1;
445
- return {
446
- question,
447
- answers,
448
- kind: M_POLL_KIND_DISCLOSED.matches(poll.kind ?? "m.poll.disclosed") ? "m.poll.disclosed" : "m.poll.undisclosed",
449
- maxSelections: Math.min(Math.max(maxSelections, 1), answers.length)
450
- };
451
- }
452
- function parsePollStartContent(content) {
453
- const parsed = parsePollStart(content);
454
- if (!parsed) return null;
455
- return {
456
- eventId: "",
457
- roomId: "",
458
- sender: "",
459
- senderName: "",
460
- question: parsed.question,
461
- answers: parsed.answers.map((answer) => answer.text),
462
- kind: parsed.kind,
463
- maxSelections: parsed.maxSelections
464
- };
465
- }
466
- function formatPollAsText(summary) {
467
- return [
468
- "[Poll]",
469
- summary.question,
470
- "",
471
- ...summary.answers.map((answer, idx) => `${idx + 1}. ${answer}`)
472
- ].join("\n");
473
- }
474
- function resolvePollReferenceEventId(content) {
475
- if (!content || typeof content !== "object") return null;
476
- const relates = content["m.relates_to"];
477
- if (!relates || typeof relates.event_id !== "string") return null;
478
- const eventId = relates.event_id.trim();
479
- return eventId.length > 0 ? eventId : null;
480
- }
481
- function parsePollResponseAnswerIds(content) {
482
- if (!content || typeof content !== "object") return null;
483
- const response = content[M_POLL_RESPONSE] ?? content[ORG_POLL_RESPONSE];
484
- if (!response || !Array.isArray(response.answers)) return null;
485
- return response.answers.filter((answer) => typeof answer === "string");
486
- }
487
- function buildPollResultsSummary(params) {
488
- const parsed = parsePollStart(params.content);
489
- if (!parsed) return null;
490
- let pollClosedAt = Number.POSITIVE_INFINITY;
491
- for (const event of params.relationEvents) {
492
- if (event.unsigned?.redacted_because) continue;
493
- if (!isPollEndType(typeof event.type === "string" ? event.type : "")) continue;
494
- if (event.sender !== params.sender) continue;
495
- const ts = asFiniteNumber(event.origin_server_ts) ?? Number.POSITIVE_INFINITY;
496
- if (ts < pollClosedAt) pollClosedAt = ts;
497
- }
498
- const answerIds = new Set(parsed.answers.map((answer) => answer.id));
499
- const latestVoteBySender = /* @__PURE__ */ new Map();
500
- const orderedRelationEvents = [...params.relationEvents].toSorted((left, right) => {
501
- const leftTs = asFiniteNumber(left.origin_server_ts) ?? Number.POSITIVE_INFINITY;
502
- const rightTs = asFiniteNumber(right.origin_server_ts) ?? Number.POSITIVE_INFINITY;
503
- if (leftTs !== rightTs) return leftTs - rightTs;
504
- return (left.event_id ?? "").localeCompare(right.event_id ?? "");
505
- });
506
- for (const event of orderedRelationEvents) {
507
- if (event.unsigned?.redacted_because) continue;
508
- if (!isPollResponseType(typeof event.type === "string" ? event.type : "")) continue;
509
- const senderId = normalizeOptionalString(event.sender) ?? "";
510
- if (!senderId) continue;
511
- const eventTs = asFiniteNumber(event.origin_server_ts) ?? Number.POSITIVE_INFINITY;
512
- if (eventTs > pollClosedAt) continue;
513
- const rawAnswers = parsePollResponseAnswerIds(event.content) ?? [];
514
- const normalizedAnswers = Array.from(new Set(rawAnswers.map((answerId) => normalizeOptionalString(answerId) ?? "").filter((answerId) => answerIds.has(answerId)).slice(0, parsed.maxSelections)));
515
- latestVoteBySender.set(senderId, {
516
- ts: eventTs,
517
- eventId: typeof event.event_id === "string" ? event.event_id : "",
518
- answerIds: normalizedAnswers
519
- });
520
- }
521
- const voteCounts = new Map(parsed.answers.map((answer) => [answer.id, 0]));
522
- let totalVotes = 0;
523
- for (const latestVote of latestVoteBySender.values()) {
524
- if (latestVote.answerIds.length === 0) continue;
525
- totalVotes += 1;
526
- for (const answerId of latestVote.answerIds) voteCounts.set(answerId, (voteCounts.get(answerId) ?? 0) + 1);
527
- }
528
- return {
529
- eventId: params.pollEventId,
530
- roomId: params.roomId,
531
- sender: params.sender,
532
- senderName: params.senderName,
533
- question: parsed.question,
534
- answers: parsed.answers.map((answer) => answer.text),
535
- kind: parsed.kind,
536
- maxSelections: parsed.maxSelections,
537
- entries: parsed.answers.map((answer) => ({
538
- id: answer.id,
539
- text: answer.text,
540
- votes: voteCounts.get(answer.id) ?? 0
541
- })),
542
- totalVotes,
543
- closed: Number.isFinite(pollClosedAt)
544
- };
545
- }
546
- function formatPollResultsAsText(summary) {
547
- const lines = [
548
- summary.closed ? "[Poll closed]" : "[Poll]",
549
- summary.question,
550
- ""
551
- ];
552
- const revealResults = summary.kind === "m.poll.disclosed" || summary.closed;
553
- for (const [index, entry] of summary.entries.entries()) {
554
- if (!revealResults) {
555
- lines.push(`${index + 1}. ${entry.text}`);
556
- continue;
557
- }
558
- lines.push(`${index + 1}. ${entry.text} (${entry.votes} vote${entry.votes === 1 ? "" : "s"})`);
559
- }
560
- lines.push("");
561
- if (!revealResults) lines.push("Responses are hidden until the poll closes.");
562
- else lines.push(`Total voters: ${summary.totalVotes}`);
563
- return lines.join("\n");
564
- }
565
- function buildTextContent$1(body) {
566
- return {
567
- "m.text": body,
568
- "org.matrix.msc1767.text": body
569
- };
570
- }
571
- function buildPollFallbackText(question, answers) {
572
- if (answers.length === 0) return question;
573
- return `${question}\n${answers.map((answer, idx) => `${idx + 1}. ${answer}`).join("\n")}`;
574
- }
575
- function buildPollStartContent(poll) {
576
- const normalized = normalizePollInput(poll);
577
- const answers = normalized.options.map((option, idx) => ({
578
- id: `answer${idx + 1}`,
579
- ...buildTextContent$1(option)
580
- }));
581
- const isMultiple = normalized.maxSelections > 1;
582
- const fallbackText = buildPollFallbackText(normalized.question, answers.map((answer) => getTextContent(answer)));
583
- return {
584
- [M_POLL_START]: {
585
- question: buildTextContent$1(normalized.question),
586
- kind: isMultiple ? "m.poll.undisclosed" : "m.poll.disclosed",
587
- max_selections: normalized.maxSelections,
588
- answers
589
- },
590
- "m.text": fallbackText,
591
- "org.matrix.msc1767.text": fallbackText
592
- };
593
- }
594
- function buildPollResponseContent(pollEventId, answerIds) {
595
- return {
596
- [M_POLL_RESPONSE]: { answers: answerIds },
597
- [ORG_POLL_RESPONSE]: { answers: answerIds },
598
- "m.relates_to": {
599
- rel_type: "m.reference",
600
- event_id: pollEventId
601
- }
602
- };
603
- }
604
- //#endregion
605
- //#region extensions/matrix/src/matrix/format-profile.ts
606
- function createMatrixPrivateMarkers(markdown, exhaustedMessage) {
607
- const used = new Set(Array.from(markdown, (character) => character.charCodeAt(0)));
608
- for (const match of markdown.matchAll(/&#(?:x([0-9a-f]+)|(\d+));/giu)) {
609
- const radix = match[1] ? 16 : 10;
610
- const value = Number.parseInt(match[1] ?? match[2] ?? "", radix);
611
- if (Number.isFinite(value) && value <= 65535) used.add(value);
612
- }
613
- const markers = [];
614
- for (let code = 57344; code <= 63743 && markers.length < 3; code += 1) if (!used.has(code)) markers.push(String.fromCharCode(code));
615
- if (markers.length < 3) throw new Error(exhaustedMessage);
616
- return {
617
- open: markers[0] ?? "",
618
- close: markers[1] ?? "",
619
- padding: markers[2] ?? ""
620
- };
621
- }
622
- const MATRIX_FORMAT_PROFILE = FormatCapabilityProfile.define({
623
- mechanism: "html",
624
- constructs: {
625
- taskList: "fallback",
626
- image: "fallback"
627
- },
628
- chunk: {
629
- limit: 4e3,
630
- unit: "chars"
631
- }
632
- });
633
- function isMarkdownEscaped(markdown, index) {
634
- let slashCount = 0;
635
- let cursor = index - 1;
636
- while (cursor >= 0 && markdown[cursor] === "\\") {
637
- slashCount += 1;
638
- cursor -= 1;
639
- }
640
- return slashCount % 2 === 1;
641
- }
642
- function projectMatrixMarkdown(markdown) {
643
- return (markdown ?? "").replace(/\r\n?/gu, "\n");
644
- }
645
- function renderMatrixMarkdownTables(markdown, mode) {
646
- return MATRIX_FORMAT_PROFILE.constructs.table === "native" && (mode === "off" || mode === "block") ? markdown : convertMarkdownTables(markdown, mode);
647
- }
648
- //#endregion
649
- //#region extensions/matrix/src/matrix/format-table-ranges.ts
650
- const tableParser = new MarkdownIt({
651
- html: false,
652
- linkify: false,
653
- typographer: false
654
- });
655
- function findMatrixTableSourceRanges(markdown) {
656
- const lineStarts = [0];
657
- for (let index = 0; index < markdown.length; index += 1) if (markdown[index] === "\n") lineStarts.push(index + 1);
658
- lineStarts.push(markdown.length);
659
- return matrixTableSourceRangesFromTokens(tableParser.parse(markdown, {}), lineStarts, markdown.length);
660
- }
661
- function matrixTableSourceRangesFromTokens(tokens, lineStarts, sourceLength) {
662
- return tokens.flatMap((token) => {
663
- if (token.type !== "table_open" || !token.map) return [];
664
- return [{
665
- start: lineStarts[token.map[0]] ?? 0,
666
- end: lineStarts[token.map[1]] ?? sourceLength
667
- }];
668
- });
669
- }
670
- //#endregion
671
- //#region extensions/matrix/src/matrix/format-spoiler-ranges.ts
672
- const spoilerParser = new MarkdownIt({
673
- html: false,
674
- linkify: true,
675
- typographer: false
676
- });
677
- spoilerParser.linkify.set({ fuzzyLink: true });
678
- function findInlineMetadataRanges(markdown, references) {
679
- const ranges = [];
680
- const labelStack = [];
681
- const codeRegions = findCodeRegions(markdown);
682
- const underlineTags = [...tokenizeHtmlTags(markdown)].filter((tag) => tag.name === "u" || tag.name === "ins");
683
- let underlineIndex = 0;
684
- for (let index = 0; index < markdown.length - 1; index += 1) {
685
- let nextUnderlineTag = underlineTags[underlineIndex];
686
- while (nextUnderlineTag && nextUnderlineTag.start < index) {
687
- underlineIndex += 1;
688
- nextUnderlineTag = underlineTags[underlineIndex];
689
- }
690
- const underlineTag = nextUnderlineTag?.start === index ? nextUnderlineTag : void 0;
691
- if (underlineTag) {
692
- index = underlineTag.end - 1;
693
- continue;
694
- }
695
- if (isInsideCode(index, codeRegions)) continue;
696
- if (markdown[index] === "\n" && markdown[index + 1] === "\n") {
697
- labelStack.length = 0;
698
- continue;
699
- }
700
- if (markdown[index] === "[" && !isMarkdownEscaped(markdown, index)) {
701
- labelStack.push(index);
702
- continue;
703
- }
704
- if (markdown[index] === "]" && markdown[index + 1] === "(" && !isMarkdownEscaped(markdown, index) && labelStack.pop() !== void 0) {
705
- const start = index + 2;
706
- let cursor = start;
707
- while (/[\s]/u.test(markdown[cursor] ?? "")) cursor += 1;
708
- const destination = spoilerParser.helpers.parseLinkDestination(markdown, cursor, markdown.length);
709
- if (destination.ok) {
710
- cursor = destination.pos;
711
- while (/[\s]/u.test(markdown[cursor] ?? "")) cursor += 1;
712
- const title = spoilerParser.helpers.parseLinkTitle(markdown, cursor, markdown.length);
713
- if (title.ok) {
714
- cursor = title.pos;
715
- while (/[\s]/u.test(markdown[cursor] ?? "")) cursor += 1;
716
- }
717
- }
718
- if (destination.ok && markdown[cursor] === ")") {
719
- ranges.push({
720
- start,
721
- end: cursor + 1
722
- });
723
- index = cursor;
724
- }
725
- continue;
726
- }
727
- if (markdown[index] === "]" && markdown[index + 1] === "[" && !isMarkdownEscaped(markdown, index) && labelStack.pop() !== void 0) {
728
- let end = index + 2;
729
- while (end < markdown.length && (markdown[end] !== "]" || isMarkdownEscaped(markdown, end))) end += 1;
730
- const reference = spoilerParser.utils.normalizeReference(markdown.slice(index + 2, end));
731
- if (end < markdown.length && references.has(reference)) {
732
- ranges.push({
733
- start: index + 2,
734
- end
735
- });
736
- index = end;
737
- }
738
- continue;
739
- }
740
- if (markdown[index] === "]" && !isMarkdownEscaped(markdown, index)) labelStack.pop();
741
- if (markdown[index] === "<") {
742
- const autolink = /^<[A-Za-z][A-Za-z0-9+.-]{1,31}:[^<>\s]*>/u.exec(markdown.slice(index));
743
- if (autolink && !isMarkdownEscaped(markdown, index)) {
744
- ranges.push({
745
- start: index,
746
- end: index + autolink[0].length
747
- });
748
- index += autolink[0].length - 1;
749
- continue;
750
- }
751
- const emailAutolink = /^<[^<>\s@]+@[^<>\s@]+>/u.exec(markdown.slice(index));
752
- if (emailAutolink && !isMarkdownEscaped(markdown, index)) {
753
- ranges.push({
754
- start: index,
755
- end: index + emailAutolink[0].length
756
- });
757
- index += emailAutolink[0].length - 1;
758
- }
759
- }
760
- }
761
- return ranges;
762
- }
763
- function prepareMatrixMarkdownSource(markdown) {
764
- const env = {};
765
- const tokens = spoilerParser.parse(markdown, env);
766
- const references = new Set(Object.keys(env.references ?? {}));
767
- const lineStarts = [0];
768
- for (let index = 0; index < markdown.length; index += 1) if (markdown[index] === "\n") lineStarts.push(index + 1);
769
- lineStarts.push(markdown.length);
770
- const inlineRanges = tokens.flatMap((token) => {
771
- if (token.type !== "inline" || !token.map) return [];
772
- return [{
773
- start: lineStarts[token.map[0]] ?? 0,
774
- end: lineStarts[token.map[1]] ?? markdown.length
775
- }];
776
- });
777
- const ranges = inlineRanges.flatMap(({ start, end }) => findInlineMetadataRanges(markdown.slice(start, end), references).map((range) => ({
778
- start: start + range.start,
779
- end: start + range.end
780
- })));
781
- for (const match of markdown.matchAll(/^\s*\[[^\]\n]+\]:\s*.+$/gmu)) {
782
- const start = match.index ?? 0;
783
- const labelEnd = match[0].indexOf("]:");
784
- const reference = spoilerParser.utils.normalizeReference(match[0].slice(1, labelEnd));
785
- if (references.has(reference)) {
786
- let end = start + match[0].length;
787
- const continuation = /^\n[ \t]+(?:"[^"\n]*"|'[^'\n]*'|\([^\n)]*\))[ \t]*/u.exec(markdown.slice(end));
788
- end += continuation?.[0].length ?? 0;
789
- ranges.push({
790
- start,
791
- end
792
- });
793
- }
794
- }
795
- const codeRegions = findCodeRegions(markdown);
796
- for (const match of spoilerParser.linkify.match(markdown) ?? []) if (!isInsideCode(match.index, codeRegions)) ranges.push({
797
- start: match.index,
798
- end: match.lastIndex
799
- });
800
- return {
801
- markdown,
802
- inlineRanges,
803
- tableRanges: matrixTableSourceRangesFromTokens(tokens, lineStarts, markdown.length),
804
- metadataRanges: ranges,
805
- codeRegions,
806
- underlineTags: [...tokenizeHtmlTags(markdown)].filter((tag) => tag.name === "u" || tag.name === "ins")
807
- };
808
- }
809
- function findMatrixSpoilerDelimiterOffsets(source) {
810
- const { markdown, inlineRanges, codeRegions, metadataRanges, underlineTags } = source;
811
- const excludedRanges = [
812
- ...codeRegions,
813
- ...metadataRanges,
814
- ...underlineTags
815
- ];
816
- const offsets = [];
817
- for (const { start, end } of inlineRanges) {
818
- const candidates = [];
819
- for (let index = start; index < end - 1; index += 1) {
820
- if (markdown[index] !== "|" || markdown[index + 1] !== "|") continue;
821
- const excluded = excludedRanges.some((range) => index >= range.start && index < range.end);
822
- if (isMarkdownEscaped(markdown, index) || excluded) continue;
823
- candidates.push(index);
824
- index += 1;
825
- }
826
- candidates.length -= candidates.length % 2;
827
- offsets.push(...candidates);
828
- }
829
- return [...new Set(offsets)].toSorted((left, right) => left - right);
830
- }
831
- function hasMatrixSpoilerMetadataCollision(source, offsets) {
832
- const { markdown, codeRegions } = source;
833
- const ordinary = new Set(offsets);
834
- const underlineTags = source.underlineTags.filter((tag) => !isMarkdownEscaped(markdown, tag.start));
835
- const literalRanges = [...source.tableRanges, ...codeRegions.filter((code) => !underlineTags.some((tag) => code.start > tag.start && code.start < tag.end))];
836
- for (let index = 0; index < markdown.length - 1; index += 1) {
837
- if (markdown[index] !== "|" || markdown[index + 1] !== "|") continue;
838
- if (ordinary.has(index) || isMarkdownEscaped(markdown, index)) continue;
839
- if (literalRanges.some((range) => index >= range.start && index < range.end)) continue;
840
- return true;
841
- }
842
- return false;
843
- }
844
- function analyzeMatrixSpoilers(markdown) {
845
- const projected = projectMatrixMarkdown(markdown);
846
- if (!projected.includes("||")) return {
847
- markdown: projected,
848
- delimiterOffsets: [],
849
- metadataCollision: false
850
- };
851
- const source = prepareMatrixMarkdownSource(projected);
852
- const delimiterOffsets = findMatrixSpoilerDelimiterOffsets(source);
853
- return {
854
- markdown: projected,
855
- delimiterOffsets,
856
- metadataCollision: hasMatrixSpoilerMetadataCollision(source, delimiterOffsets)
857
- };
858
- }
859
- //#endregion
860
- //#region extensions/matrix/src/matrix/format.ts
861
- const MATRIX_STYLE_MARKERS = {
862
- underline: {
863
- open: "<u>",
864
- close: "</u>"
865
- },
866
- spoiler: {
867
- open: "<span data-mx-spoiler>",
868
- close: "</span>"
869
- }
870
- };
871
- const md = new MarkdownIt({
872
- html: false,
873
- linkify: true,
874
- breaks: true,
875
- typographer: false
876
- });
877
- md.linkify.set({ fuzzyLink: true });
878
- md.enable("strikethrough");
879
- const { escapeHtml } = md.utils;
880
- const MENTION_PATTERN = /@[A-Za-z0-9._=+\-/:[\]]+/g;
881
- const MATRIX_MENTION_USER_ID_PATTERN = new RegExp(`^@[A-Za-z0-9._=+\\-/]+:(?:${/(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)(?:\.(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?))*(?::\d+)?/.source}|\\[[0-9A-Fa-f:.]+\\](?::\\d+)?)$`);
882
- const TRIMMABLE_MENTION_SUFFIX = /[),.!?:;\]]/;
883
- const parseMatrixUnderline = (state, silent) => {
884
- if (state.src.charCodeAt(state.pos) !== 60) return false;
885
- const tag = tokenizeHtmlTags(state.src.slice(state.pos)).next().value;
886
- if (!tag || tag.start !== 0 || tag.name !== "u" && tag.name !== "ins") return false;
887
- if (!silent) {
888
- const token = state.push(tag.selfClosing ? "text" : tag.closing ? "matrix_underline_close" : "matrix_underline_open", tag.selfClosing ? "" : "u", tag.selfClosing ? 0 : tag.closing ? -1 : 1);
889
- if (tag.selfClosing) token.content = tag.raw;
890
- }
891
- state.pos += tag.end;
892
- return true;
893
- };
894
- md.inline.ruler.before("html_inline", "matrix_underline", parseMatrixUnderline);
895
- md.renderer.rules.matrix_underline_open = () => MATRIX_STYLE_MARKERS.underline.open;
896
- md.renderer.rules.matrix_underline_close = () => MATRIX_STYLE_MARKERS.underline.close;
897
- md.renderer.rules.matrix_spoiler_open = () => MATRIX_STYLE_MARKERS.spoiler.open;
898
- md.renderer.rules.matrix_spoiler_close = () => MATRIX_STYLE_MARKERS.spoiler.close;
899
- md.core.ruler.after("inline", "matrix_spoilers", (state) => {
900
- const markers = state.env.matrixSpoilerMarkers;
901
- if (!markers) return;
902
- for (const token of state.tokens) if (token.children?.length) token.children = normalizeMatrixSpoilerNesting(injectProtectedMatrixSpoilers(token.children, markers));
903
- });
904
- function shouldSuppressAutoLink(tokens, idx) {
905
- const token = tokens[idx];
906
- if (token?.type !== "link_open" || token.info !== "auto") return false;
907
- const href = String(token.attrGet("href") ?? "");
908
- const label = tokens[idx + 1]?.type === "text" ? tokens[idx + 1]?.content ?? "" : "";
909
- return Boolean(href && label && isAutoLinkedFileRef(href, label));
910
- }
911
- md.renderer.rules.image = (tokens, idx, options, env, self) => {
912
- const token = tokens[idx];
913
- return token?.children?.length ? self.renderInline(token.children, options, env) : escapeHtml(token?.content ?? "");
914
- };
915
- md.renderer.rules.html_block = (tokens, idx) => escapeHtml(tokens[idx]?.content ?? "");
916
- md.renderer.rules.html_inline = (tokens, idx) => escapeHtml(tokens[idx]?.content ?? "");
917
- md.renderer.rules.text_special = (tokens, idx) => escapeHtml(tokens[idx]?.content ?? "");
918
- md.renderer.rules.matrix_escaped_mention = () => "@";
919
- md.core.ruler.before("text_join", "matrix_escaped_mentions", (state) => {
920
- preserveEscapedMentionTokens(state.tokens);
921
- });
922
- md.renderer.rules.link_open = (tokens, idx, _options, _env, self) => shouldSuppressAutoLink(tokens, idx) ? "" : self.renderToken(tokens, idx, _options);
923
- md.renderer.rules.link_close = (tokens, idx, _options, _env, self) => {
924
- const openIdx = idx - 2;
925
- if (openIdx >= 0 && shouldSuppressAutoLink(tokens, openIdx)) return "";
926
- return self.renderToken(tokens, idx, _options);
927
- };
928
- function preserveEscapedMentionTokens(tokens) {
929
- for (const token of tokens) {
930
- if (token.type === "text_special" && token.info === "escape" && token.content === "@") token.type = "matrix_escaped_mention";
931
- if (token.children) preserveEscapedMentionTokens(token.children);
932
- }
933
- }
934
- function isMentionStartBoundary(charBefore) {
935
- return !charBefore || !/[A-Za-z0-9_]/.test(charBefore);
936
- }
937
- function trimMentionSuffix(rawInput, endInput) {
938
- let raw = rawInput;
939
- let end = endInput;
940
- while (raw.length > 1 && TRIMMABLE_MENTION_SUFFIX.test(raw.at(-1) ?? "")) {
941
- if (raw.at(-1) === "]" && /\[[0-9A-Fa-f:.]+\](?::\d+)?$/i.test(raw)) break;
942
- raw = raw.slice(0, -1);
943
- end -= 1;
944
- }
945
- if (!raw.startsWith("@") || raw === "@") return null;
946
- return {
947
- raw,
948
- end
949
- };
950
- }
951
- function isMatrixMentionUserId(raw) {
952
- return isMatrixQualifiedUserId(raw) && MATRIX_MENTION_USER_ID_PATTERN.test(raw);
953
- }
954
- function buildMentionCandidate(raw, start) {
955
- const normalized = trimMentionSuffix(raw, start + raw.length);
956
- if (!normalized) return null;
957
- const kind = normalizeLowercaseStringOrEmpty(normalized.raw) === "@room" ? "room" : "user";
958
- const base = {
959
- raw: normalized.raw,
960
- start,
961
- end: normalized.end,
962
- kind
963
- };
964
- if (kind === "room") return base;
965
- const userCandidate = isMatrixMentionUserId(normalized.raw) ? {
966
- ...base,
967
- userId: normalized.raw
968
- } : null;
969
- if (!userCandidate) return null;
970
- return userCandidate;
971
- }
972
- function collectMentionCandidates(text) {
973
- const mentions = [];
974
- for (const match of text.matchAll(MENTION_PATTERN)) {
975
- const raw = match[0];
976
- const start = match.index ?? -1;
977
- if (start < 0 || !raw) continue;
978
- if (!isMentionStartBoundary(text[start - 1])) continue;
979
- const candidate = buildMentionCandidate(raw, start);
980
- if (!candidate) continue;
981
- mentions.push(candidate);
982
- }
983
- return mentions;
984
- }
985
- function createToken(sample, type, tag, nesting) {
986
- const TokenCtor = sample.constructor;
987
- return new TokenCtor(type, tag, nesting);
988
- }
989
- function createTextToken(sample, content) {
990
- const token = createToken(sample, "text", "", 0);
991
- token.content = content;
992
- return token;
993
- }
994
- function injectProtectedMatrixSpoilers(tokens, markers) {
995
- const result = [];
996
- for (const token of tokens) {
997
- if (token.type !== "text") {
998
- if (token.children?.length) token.children = normalizeMatrixSpoilerNesting(injectProtectedMatrixSpoilers(token.children, markers));
999
- result.push(token);
1000
- continue;
1001
- }
1002
- let cursor = 0;
1003
- for (let index = 0; index < token.content.length; index += 1) {
1004
- const marker = token.content[index];
1005
- if (marker !== markers.open && marker !== markers.close || token.content[index + 1] !== markers.padding) continue;
1006
- if (index > cursor) result.push(createTextToken(token, token.content.slice(cursor, index)));
1007
- result.push(createToken(token, marker === markers.open ? "matrix_spoiler_open" : "matrix_spoiler_close", "span", marker === markers.open ? 1 : -1));
1008
- index += 1;
1009
- cursor = index + 1;
1010
- }
1011
- if (cursor < token.content.length) result.push(createTextToken(token, token.content.slice(cursor)));
1012
- }
1013
- return result;
1014
- }
1015
- function copyInlineToken(sample, type, tag, nesting) {
1016
- const token = createToken(sample, type, tag, nesting);
1017
- token.markup = sample.markup;
1018
- token.attrs = sample.attrs ? [...sample.attrs] : null;
1019
- return token;
1020
- }
1021
- function normalizeMatrixSpoilerNesting(tokens) {
1022
- const result = [];
1023
- const stack = [];
1024
- for (const token of tokens) {
1025
- if (token.nesting === 1) {
1026
- stack.push(token);
1027
- result.push(token);
1028
- continue;
1029
- }
1030
- if (token.nesting !== -1) {
1031
- result.push(token);
1032
- continue;
1033
- }
1034
- const openIndex = stack.findLastIndex((open) => open.tag === token.tag);
1035
- if (openIndex < 0) {
1036
- result.push(token);
1037
- continue;
1038
- }
1039
- if (openIndex === stack.length - 1) {
1040
- stack.pop();
1041
- result.push(token);
1042
- continue;
1043
- }
1044
- const crossing = stack.splice(openIndex + 1);
1045
- for (const open of crossing.toReversed()) result.push(copyInlineToken(open, open.type.replace(/_open$/u, "_close"), open.tag, -1));
1046
- stack.pop();
1047
- result.push(token);
1048
- for (const open of crossing) {
1049
- result.push(copyInlineToken(open, open.type, open.tag, 1));
1050
- stack.push(open);
1051
- }
1052
- }
1053
- return result;
1054
- }
1055
- function createMentionLinkTokens(params) {
1056
- const open = createToken(params.sample, "link_open", "a", 1);
1057
- open.attrSet("href", params.href);
1058
- return [
1059
- open,
1060
- createTextToken(params.sample, params.label),
1061
- createToken(params.sample, "link_close", "a", -1)
1062
- ];
1063
- }
1064
- function resolveMentionUserId(match) {
1065
- if (match.kind !== "user") return null;
1066
- return match.userId ?? null;
1067
- }
1068
- async function resolveMatrixSelfUserId(client) {
1069
- const getUserId = client.getUserId;
1070
- if (typeof getUserId !== "function") return null;
1071
- return await Promise.resolve(getUserId.call(client)).catch(() => null);
1072
- }
1073
- function mutateInlineTokensWithMentions(params) {
1074
- const nextChildren = [];
1075
- let roomMentioned = false;
1076
- let insideLinkDepth = 0;
1077
- for (const child of params.children) {
1078
- if (child.type === "link_open") {
1079
- insideLinkDepth += 1;
1080
- nextChildren.push(child);
1081
- continue;
1082
- }
1083
- if (child.type === "link_close") {
1084
- insideLinkDepth = Math.max(0, insideLinkDepth - 1);
1085
- nextChildren.push(child);
1086
- continue;
1087
- }
1088
- if (child.type !== "text" || !child.content) {
1089
- nextChildren.push(child);
1090
- continue;
1091
- }
1092
- if (insideLinkDepth > 0) {
1093
- nextChildren.push(child);
1094
- continue;
1095
- }
1096
- const matches = collectMentionCandidates(child.content);
1097
- if (matches.length === 0) {
1098
- nextChildren.push(child);
1099
- continue;
1100
- }
1101
- let cursor = 0;
1102
- for (const match of matches) {
1103
- if (match.start > cursor) nextChildren.push(createTextToken(child, child.content.slice(cursor, match.start)));
1104
- cursor = match.end;
1105
- if (match.kind === "room") {
1106
- roomMentioned = true;
1107
- nextChildren.push(createTextToken(child, match.raw));
1108
- continue;
1109
- }
1110
- const resolvedUserId = resolveMentionUserId(match);
1111
- if (!resolvedUserId || resolvedUserId === params.selfUserId) {
1112
- nextChildren.push(createTextToken(child, match.raw));
1113
- continue;
1114
- }
1115
- if (!params.seenUserIds.has(resolvedUserId)) {
1116
- params.seenUserIds.add(resolvedUserId);
1117
- params.userIds.push(resolvedUserId);
1118
- }
1119
- nextChildren.push(...createMentionLinkTokens({
1120
- sample: child,
1121
- href: `https://matrix.to/#/${encodeURIComponent(resolvedUserId)}`,
1122
- label: match.raw
1123
- }));
1124
- }
1125
- if (cursor < child.content.length) nextChildren.push(createTextToken(child, child.content.slice(cursor)));
1126
- }
1127
- return {
1128
- children: nextChildren,
1129
- roomMentioned
1130
- };
1131
- }
1132
- function compactLooseListTokens(tokens) {
1133
- const listItemStack = [];
1134
- for (const [index, token] of tokens.entries()) {
1135
- if (token.type === "list_item_open") {
1136
- listItemStack.push({
1137
- level: token.level,
1138
- paragraphIndex: void 0
1139
- });
1140
- continue;
1141
- }
1142
- if (token.type === "list_item_close") {
1143
- const item = listItemStack.pop();
1144
- if (typeof item?.paragraphIndex === "number") {
1145
- const openToken = tokens[item.paragraphIndex];
1146
- const closeToken = tokens[item.paragraphIndex + 2];
1147
- if (openToken && closeToken) {
1148
- openToken.hidden = true;
1149
- closeToken.hidden = true;
1150
- }
1151
- }
1152
- continue;
1153
- }
1154
- const currentItem = listItemStack.at(-1);
1155
- if (!currentItem || token.level !== currentItem.level + 1) continue;
1156
- if (token.type === "paragraph_open") currentItem.paragraphIndex = currentItem.paragraphIndex === void 0 ? index : null;
1157
- }
1158
- }
1159
- function markdownToMatrixHtml(markdown, options = {}) {
1160
- const analysis = analyzeMatrixSpoilers(markdown);
1161
- if (analysis.metadataCollision) return renderMatrixFallbackHtml(analysis);
1162
- const tokens = parseMatrixMarkdown(analysis, options.tableMode);
1163
- compactLooseListTokens(tokens);
1164
- return md.renderer.render(tokens, md.options, {}).trimEnd();
1165
- }
1166
- function protectMatrixSpoilerDelimiters(analysis) {
1167
- const { markdown, delimiterOffsets: offsets } = analysis;
1168
- if (offsets.length === 0) return { markdown };
1169
- const markers = createMatrixPrivateMarkers(markdown, "Matrix spoiler formatting exhausted its private marker pool");
1170
- let protectedMarkdown = "";
1171
- let cursor = 0;
1172
- for (const [index, offset] of offsets.entries()) {
1173
- const marker = index % 2 === 0 ? markers.open : markers.close;
1174
- protectedMarkdown += `${markdown.slice(cursor, offset)}${marker}${markers.padding}`;
1175
- cursor = offset + 2;
1176
- }
1177
- protectedMarkdown += markdown.slice(cursor);
1178
- return {
1179
- markdown: protectedMarkdown,
1180
- markers
1181
- };
1182
- }
1183
- function parseMatrixMarkdown(analysis, tableMode) {
1184
- const protectedSpoilers = protectMatrixSpoilerDelimiters(analysis);
1185
- if (tableMode === "off") md.disable("table");
1186
- try {
1187
- return md.parse(protectedSpoilers.markdown, { matrixSpoilerMarkers: protectedSpoilers.markers });
1188
- } finally {
1189
- if (tableMode === "off") md.enable("table");
1190
- }
1191
- }
1192
- function markdownToMatrixBody(markdown) {
1193
- return renderMatrixBody(analyzeMatrixSpoilers(markdown));
1194
- }
1195
- function renderMatrixBody(analysis) {
1196
- const { markdown: projected, delimiterOffsets: offsets, metadataCollision } = analysis;
1197
- if (offsets.length === 0 && !metadataCollision) return projected;
1198
- let body = projected;
1199
- if (metadataCollision) body = "[Spoiler]";
1200
- else for (let index = offsets.length - 2; index >= 0; index -= 2) {
1201
- const open = offsets[index];
1202
- const close = offsets[index + 1];
1203
- if (open !== void 0 && close !== void 0) body = `${body.slice(0, open)}[Spoiler]${body.slice(close + 2)}`;
1204
- }
1205
- const ir = markdownToIR(body, {
1206
- enableHtmlUnderline: true,
1207
- headingStyle: "rich",
1208
- linkify: true
1209
- });
1210
- return renderMarkdownWithMarkers(ir, {
1211
- styleMarkers: {},
1212
- escapeText: (text) => text
1213
- }, MATRIX_FORMAT_PROFILE);
1214
- }
1215
- function renderMatrixFallbackHtml(analysis) {
1216
- return `<p>${escapeHtml(renderMatrixBody(analysis)).replaceAll("\n", "<br>\n")}</p>`;
1217
- }
1218
- async function resolveMarkdownMentionState(params) {
1219
- const tokens = parseMatrixMarkdown(params.analysis, params.tableMode);
1220
- const selfUserId = await resolveMatrixSelfUserId(params.client);
1221
- const userIds = [];
1222
- const seenUserIds = /* @__PURE__ */ new Set();
1223
- let roomMentioned = false;
1224
- for (const token of tokens) {
1225
- if (!token.children?.length) continue;
1226
- const mutated = mutateInlineTokensWithMentions({
1227
- children: token.children,
1228
- userIds,
1229
- seenUserIds,
1230
- selfUserId
1231
- });
1232
- token.children = mutated.children;
1233
- roomMentioned ||= mutated.roomMentioned;
1234
- }
1235
- const mentions = {};
1236
- if (userIds.length > 0) mentions.user_ids = userIds;
1237
- if (roomMentioned) mentions.room = true;
1238
- return {
1239
- tokens,
1240
- mentions
1241
- };
1242
- }
1243
- async function resolveMatrixMentionsInMarkdown(params) {
1244
- return (await resolveMarkdownMentionState({
1245
- analysis: analyzeMatrixSpoilers(params.markdown),
1246
- client: params.client
1247
- })).mentions;
1248
- }
1249
- async function renderMarkdownToMatrixHtmlWithMentions(params) {
1250
- const analysis = analyzeMatrixSpoilers(params.markdown);
1251
- const state = await resolveMarkdownMentionState({
1252
- ...params,
1253
- analysis
1254
- });
1255
- if (analysis.metadataCollision) {
1256
- const redacted = renderMatrixBody(analysis);
1257
- const redactedState = await resolveMarkdownMentionState({
1258
- ...params,
1259
- analysis: analyzeMatrixSpoilers(redacted)
1260
- });
1261
- return {
1262
- html: renderMatrixFallbackHtml(analysis),
1263
- mentions: redactedState.mentions
1264
- };
1265
- }
1266
- compactLooseListTokens(state.tokens);
1267
- return {
1268
- html: md.renderer.render(state.tokens, md.options, {}).trimEnd() || void 0,
1269
- mentions: state.mentions
1270
- };
1271
- }
1272
- //#endregion
1273
- //#region extensions/matrix/src/matrix/send/chunking.ts
1274
- function normalizeMatrixEventLimit(limit) {
1275
- if (!Number.isFinite(limit) || limit <= 0) return limit;
1276
- return Math.max(1, Math.floor(limit));
1277
- }
1278
- function resolveMatrixChunkOverflow(chunk, limit) {
1279
- const body = markdownToMatrixBody(chunk);
1280
- const renderedLength = Math.max(chunk.length, body.length);
1281
- if (limit === 1 && Array.from(chunk).length === 1 && Array.from(body).length === 1) return 0;
1282
- return Math.max(0, renderedLength - limit);
1283
- }
1284
- function protectMatrixUnderlineTags(markdown) {
1285
- const { codeRegions, metadataRanges, underlineTags } = prepareMatrixMarkdownSource(markdown);
1286
- const tags = underlineTags.filter((tag) => !tag.selfClosing && !isInsideCode(tag.start, codeRegions) && !isMarkdownEscaped(markdown, tag.start) && !metadataRanges.some((range) => tag.start >= range.start && tag.start < range.end));
1287
- if (tags.length === 0) return { markdown };
1288
- const markers = createMatrixPrivateMarkers(markdown, "Matrix underline chunking exhausted its private marker pool");
1289
- let depth = 0;
1290
- const replacements = tags.flatMap((tag) => {
1291
- if (!tag.closing) {
1292
- depth += 1;
1293
- return [{
1294
- tag,
1295
- marker: depth === 1 ? markers.open : ""
1296
- }];
1297
- }
1298
- if (depth === 0) return [];
1299
- depth -= 1;
1300
- return [{
1301
- tag,
1302
- marker: depth === 0 ? markers.close : ""
1303
- }];
1304
- });
1305
- let protectedMarkdown = markdown;
1306
- for (const { tag, marker } of replacements.toReversed()) protectedMarkdown = `${protectedMarkdown.slice(0, tag.start)}${marker}${markers.padding.repeat(tag.raw.length - marker.length)}${protectedMarkdown.slice(tag.end)}`;
1307
- return {
1308
- markdown: protectedMarkdown,
1309
- markers
1310
- };
1311
- }
1312
- function restoreMatrixStyleChunks(chunks, spoiler, underline) {
1313
- if (!spoiler && !underline) return chunks;
1314
- const stack = [];
1315
- const syntax = {
1316
- spoiler: {
1317
- open: "||",
1318
- close: "||"
1319
- },
1320
- underline: {
1321
- open: "<u>",
1322
- close: "</u>"
1323
- }
1324
- };
1325
- return chunks.map((chunk) => {
1326
- let restored = stack.map((style) => syntax[style].open).join("");
1327
- for (const character of chunk) {
1328
- const opening = character === spoiler?.open ? "spoiler" : character === underline?.open ? "underline" : void 0;
1329
- const closing = character === spoiler?.close ? "spoiler" : character === underline?.close ? "underline" : void 0;
1330
- if (opening) {
1331
- stack.push(opening);
1332
- restored += syntax[opening].open;
1333
- } else if (closing) {
1334
- const stackIndex = stack.lastIndexOf(closing);
1335
- if (stackIndex >= 0) {
1336
- const above = stack.slice(stackIndex + 1);
1337
- restored += above.toReversed().map((style) => syntax[style].close).join("");
1338
- restored += syntax[closing].close;
1339
- stack.splice(stackIndex, 1);
1340
- restored += above.map((style) => syntax[style].open).join("");
1341
- }
1342
- } else if (character !== spoiler?.padding && character !== underline?.padding) restored += character;
1343
- }
1344
- return restored + stack.toReversed().map((style) => syntax[style].close).join("");
1345
- });
1346
- }
1347
- function splitMatrixTableSegments(markdown) {
1348
- const segments = [];
1349
- let cursor = 0;
1350
- for (const range of findMatrixTableSourceRanges(markdown)) {
1351
- const plain = markdown.slice(cursor, range.start).replace(/(?:[ \t]*\n)+$/u, "");
1352
- if (plain.trim()) segments.push({
1353
- table: false,
1354
- text: plain
1355
- });
1356
- const rawTable = markdown.slice(range.start, range.end).trimEnd();
1357
- const indent = /^ +/u.exec(rawTable)?.[0] ?? "";
1358
- const table = indent ? rawTable.split("\n").map((line) => line.startsWith(indent) ? line.slice(indent.length) : line).join("\n") : rawTable;
1359
- segments.push({
1360
- table: true,
1361
- text: table
1362
- });
1363
- cursor = range.end;
1364
- }
1365
- const tail = markdown.slice(cursor).replace(/^(?:[ \t]*\n)+/u, "");
1366
- if (tail.trim()) segments.push({
1367
- table: false,
1368
- text: tail
1369
- });
1370
- return segments;
1371
- }
1372
- function prepareMatrixSingleText(text, opts) {
1373
- const normalizedText = text.replace(/\r\n?/gu, "\n");
1374
- const trimmedText = opts.preserveWhitespace ? normalizedText : normalizedText.trim();
1375
- const cfg = requireRuntimeConfig(opts.cfg, "Matrix text preparation");
1376
- const tableMode = opts.tableMode ?? resolveMarkdownTableMode({
1377
- cfg,
1378
- channel: "matrix",
1379
- accountId: opts.accountId,
1380
- supportsBlockTables: MATRIX_FORMAT_PROFILE.constructs.table === "native"
1381
- });
1382
- const convertedText = renderMatrixMarkdownTables(trimmedText, tableMode);
1383
- const singleEventLimit = normalizeMatrixEventLimit(Math.min(resolveTextChunkLimit(cfg, "matrix", opts.accountId), MATRIX_FORMAT_PROFILE.chunk.limit));
1384
- const preparedBody = markdownToMatrixBody(convertedText);
1385
- const eventTextLength = Math.max(convertedText.length, preparedBody.length);
1386
- return {
1387
- trimmedText,
1388
- convertedText,
1389
- preparedBody,
1390
- singleEventLimit,
1391
- eventTextLength,
1392
- fitsInSingleEvent: eventTextLength <= singleEventLimit,
1393
- tableMode
1394
- };
1395
- }
1396
- function chunkMatrixText(text, opts) {
1397
- const preparedText = prepareMatrixSingleText(text, opts);
1398
- if (preparedText.fitsInSingleEvent) return {
1399
- ...preparedText,
1400
- chunks: preparedText.convertedText ? [preparedText.convertedText] : []
1401
- };
1402
- const cfg = requireRuntimeConfig(opts.cfg, "Matrix text chunking");
1403
- const chunkMode = getMatrixRuntime().channel.text.resolveChunkMode(cfg, "matrix", opts.accountId);
1404
- const analysis = analyzeMatrixSpoilers(preparedText.convertedText);
1405
- const collisionRedacted = analysis.metadataCollision ? renderMatrixBody(analysis) : void 0;
1406
- const chunkSegment = (segmentText) => {
1407
- const segmentAnalysis = analyzeMatrixSpoilers(segmentText);
1408
- const protectedUnderline = protectMatrixUnderlineTags(segmentAnalysis.metadataCollision ? renderMatrixBody(segmentAnalysis) : segmentText);
1409
- const protectedSpoilers = protectMatrixSpoilerDelimiters(analyzeMatrixSpoilers(protectedUnderline.markdown));
1410
- const wrapperReserve = (protectedSpoilers.markers ? 4 : 0) + (protectedUnderline.markers ? 7 : 0);
1411
- const privateMarkers = [protectedSpoilers.markers, protectedUnderline.markers].flatMap((markers) => markers ? [
1412
- markers.open,
1413
- markers.close,
1414
- markers.padding
1415
- ] : []);
1416
- let reserve = wrapperReserve;
1417
- while (reserve < preparedText.singleEventLimit) {
1418
- const protectedChunks = getMatrixRuntime().channel.text.chunkMarkdownTextWithMode(protectedSpoilers.markdown, preparedText.singleEventLimit - reserve, chunkMode);
1419
- const restored = restoreMatrixStyleChunks(protectedChunks, protectedSpoilers.markers, protectedUnderline.markers).filter((_, index) => {
1420
- return privateMarkers.reduce((value, marker) => value.replaceAll(marker, ""), protectedChunks[index] ?? "").length > 0;
1421
- });
1422
- const overflow = Math.max(0, ...restored.map((chunk) => resolveMatrixChunkOverflow(chunk, preparedText.singleEventLimit)));
1423
- if (overflow === 0) return restored;
1424
- reserve += overflow;
1425
- }
1426
- throw new Error("Matrix text chunk limit is too small for formatted content");
1427
- };
1428
- const chunks = collisionRedacted !== void 0 ? chunkSegment(collisionRedacted) : preparedText.tableMode === "block" ? splitMatrixTableSegments(preparedText.convertedText).flatMap((segment) => {
1429
- if (!segment.table) return chunkSegment(segment.text);
1430
- return segment.text.length <= preparedText.singleEventLimit ? [segment.text] : chunkSegment(renderMatrixMarkdownTables(segment.text, "bullets"));
1431
- }) : chunkSegment(preparedText.convertedText);
1432
- return {
1433
- ...preparedText,
1434
- chunks
1435
- };
1436
- }
1437
- //#endregion
1438
- //#region extensions/matrix/src/matrix/media-text.ts
1439
- const MATRIX_MEDIA_KINDS = {
1440
- "m.audio": "audio",
1441
- "m.file": "file",
1442
- "m.image": "image",
1443
- "m.sticker": "sticker",
1444
- "m.video": "video"
1445
- };
1446
- function resolveMatrixMediaKind(msgtype) {
1447
- const key = msgtype ?? "";
1448
- return Object.hasOwn(MATRIX_MEDIA_KINDS, key) ? MATRIX_MEDIA_KINDS[key] : void 0;
1449
- }
1450
- function resolveMatrixMediaLabel(kind, fallback = "media") {
1451
- return `${kind ?? fallback} attachment`;
1452
- }
1453
- function formatMatrixAttachmentMarker(params) {
1454
- const label = resolveMatrixMediaLabel(params.kind);
1455
- if (params.tooLarge) return `[matrix ${label} too large]`;
1456
- return params.unavailable ? `[matrix ${label} unavailable]` : `[matrix ${label}]`;
1457
- }
1458
- function isLikelyBareFilename(text) {
1459
- const trimmed = text.trim();
1460
- if (!trimmed || trimmed.includes("\n") || /\s/.test(trimmed)) return false;
1461
- if (path.basename(trimmed) !== trimmed) return false;
1462
- return path.extname(trimmed).length > 1;
1463
- }
1464
- function resolveCaptionOrFilename(params) {
1465
- const body = params.body?.trim() ?? "";
1466
- const filename = params.filename?.trim() ?? "";
1467
- if (filename) {
1468
- if (!body || body === filename) return { filename };
1469
- return {
1470
- caption: body,
1471
- filename
1472
- };
1473
- }
1474
- if (!body) return {};
1475
- if (isLikelyBareFilename(body)) return { filename: body };
1476
- return { caption: body };
1477
- }
1478
- function resolveMatrixReplacementContent(event, replacementEvent = event.unsigned?.["m.relations"]?.["m.replace"]) {
1479
- return resolveMatrixReplacement(event, replacementEvent)?.content;
1480
- }
1481
- function resolveMatrixReplacement(event, replacementEvent = event.unsigned?.["m.relations"]?.["m.replace"]) {
1482
- const replacement = asNullableObjectRecord(replacementEvent);
1483
- if (!replacement || event.state_key !== void 0 || event.unsigned?.redacted_because) return;
1484
- const content = asNullableObjectRecord(replacement.content);
1485
- const relation = asNullableObjectRecord(content?.["m.relates_to"]);
1486
- const unreadable = getMatrixEventProjection(replacement)?.decryptionFailure === true || replacement.type === "m.room.encrypted";
1487
- if (replacement.sender !== event.sender || !unreadable && replacement.type !== event.type || replacement.state_key !== void 0 || asNullableObjectRecord(replacement.unsigned)?.redacted_because || !relation || relation.rel_type !== "m.replace" || relation.event_id !== event.event_id) return;
1488
- if (unreadable) return { kind: "unreadable" };
1489
- const newContent = asNullableRecord(content?.["m.new_content"]);
1490
- return newContent ? {
1491
- kind: "content",
1492
- content: newContent
1493
- } : void 0;
1494
- }
1495
- function resolveMatrixMessageAttachment(params) {
1496
- const kind = resolveMatrixMediaKind(params.msgtype);
1497
- if (!kind) return;
1498
- const resolved = resolveCaptionOrFilename(params);
1499
- return {
1500
- kind,
1501
- caption: resolved.caption,
1502
- filename: resolved.filename
1503
- };
1504
- }
1505
- function formatMatrixAttachmentText(params) {
1506
- if (!params.attachment) return;
1507
- return formatMatrixAttachmentMarker({
1508
- kind: params.attachment.kind,
1509
- tooLarge: params.tooLarge,
1510
- unavailable: params.unavailable
1511
- });
1512
- }
1513
- function formatMatrixMessageText(params) {
1514
- const attachment = resolveMatrixMessageAttachment(params);
1515
- const body = attachment ? attachment.caption ?? "" : params.body?.trim() ?? "";
1516
- const marker = formatMatrixAttachmentText({
1517
- attachment,
1518
- tooLarge: params.tooLarge,
1519
- unavailable: params.unavailable
1520
- });
1521
- if (!marker) return body || void 0;
1522
- if (!body) return marker;
1523
- return `${body}\n\n${marker}`;
1524
- }
1525
- function formatMatrixMediaUnavailableText(params) {
1526
- return formatMatrixMessageText({
1527
- ...params,
1528
- unavailable: true
1529
- }) ?? "";
1530
- }
1531
- function formatMatrixMediaTooLargeText(params) {
1532
- return formatMatrixMessageText({
1533
- ...params,
1534
- tooLarge: true
1535
- }) ?? "";
1536
- }
1537
- //#endregion
1538
- //#region extensions/matrix/src/matrix/send/edit-content.ts
1539
- const MAX_EDIT_RELATION_PAGES = 100;
1540
- const EDIT_RELATION_PAGE_SIZE = 100;
1541
- const EDIT_DECRYPTION_ERROR = "Matrix edit history is not fully decrypted; restore encryption keys before editing.";
1542
- async function resolveMatrixEditContent(params) {
1543
- const { client, roomId, event } = params;
1544
- if (!event || event.unsigned?.redacted_because || event.state_key !== void 0) return event?.content;
1545
- const projection = getMatrixEventProjection(event);
1546
- if (projection?.decryptionFailure || event.type === "m.room.encrypted") throw new Error(EDIT_DECRYPTION_ERROR);
1547
- const originalContent = projection?.originalContent ?? event.content;
1548
- const embedded = resolveMatrixReplacementContent(event) ?? asNullableObjectRecord(originalContent?.["m.new_content"]);
1549
- if (embedded) return embedded;
1550
- let latest;
1551
- let latestReplacement;
1552
- let from;
1553
- const seenCursors = /* @__PURE__ */ new Set();
1554
- for (let pageIndex = 0; pageIndex < MAX_EDIT_RELATION_PAGES; pageIndex++) {
1555
- const page = await client.getRelations(roomId, event.event_id, "m.replace", void 0, {
1556
- from,
1557
- limit: EDIT_RELATION_PAGE_SIZE
1558
- });
1559
- for (const replacement of page.events) {
1560
- const replacementContent = resolveMatrixReplacement(event, replacement);
1561
- if (replacementContent && (!latest || replacement.origin_server_ts > latest.origin_server_ts || replacement.origin_server_ts === latest.origin_server_ts && replacement.event_id > latest.event_id)) {
1562
- latest = replacement;
1563
- latestReplacement = replacementContent;
1564
- }
1565
- }
1566
- from = page.nextBatch ?? void 0;
1567
- if (!from) {
1568
- if (latestReplacement?.kind === "unreadable") throw new Error(EDIT_DECRYPTION_ERROR);
1569
- return latestReplacement?.content ?? originalContent;
1570
- }
1571
- if (seenCursors.has(from)) break;
1572
- seenCursors.add(from);
1573
- }
1574
- throw new Error("Matrix edit history could not be fully read; send a new message instead.");
1575
- }
1576
- //#endregion
1577
- //#region extensions/matrix/src/matrix/send/formatting.ts
1578
- async function renderMatrixFormattedContent(params) {
1579
- const markdown = params.markdown ?? "";
1580
- const body = params.preparedBody ?? markdownToMatrixBody(markdown);
1581
- if (params.includeMentions === false) return {
1582
- body,
1583
- html: markdownToMatrixHtml(markdown, { tableMode: params.tableMode }).trimEnd() || void 0
1584
- };
1585
- const { html, mentions } = await renderMarkdownToMatrixHtmlWithMentions({
1586
- markdown,
1587
- client: params.client,
1588
- tableMode: params.tableMode
1589
- });
1590
- return {
1591
- body,
1592
- html,
1593
- mentions
1594
- };
1595
- }
1596
- function buildTextContent(body, relation, opts = {}) {
1597
- const msgtype = opts.msgtype ?? MsgType.Text;
1598
- return relation ? {
1599
- msgtype,
1600
- body,
1601
- "m.relates_to": relation
1602
- } : {
1603
- msgtype,
1604
- body
1605
- };
1606
- }
1607
- async function enrichMatrixFormattedContent(params) {
1608
- const { body, html, mentions } = await renderMatrixFormattedContent({
1609
- client: params.client,
1610
- markdown: params.markdown,
1611
- preparedBody: params.preparedBody,
1612
- includeMentions: params.includeMentions,
1613
- tableMode: params.tableMode
1614
- });
1615
- params.content.body = body || params.content.body;
1616
- if (mentions) params.content["m.mentions"] = mentions;
1617
- else delete params.content["m.mentions"];
1618
- if (!html) {
1619
- delete params.content.format;
1620
- delete params.content.formatted_body;
1621
- return;
1622
- }
1623
- params.content.format = "org.matrix.custom.html";
1624
- params.content.formatted_body = html;
1625
- }
1626
- async function resolveMatrixMentionsForBody(params) {
1627
- return await resolveMatrixMentionsInMarkdown({
1628
- markdown: params.body ?? "",
1629
- client: params.client
1630
- });
1631
- }
1632
- function normalizeMentionUserIds(value) {
1633
- return Array.isArray(value) ? value.filter((entry) => typeof entry === "string" && entry.trim().length > 0) : [];
1634
- }
1635
- function extractMatrixMentions(content) {
1636
- const rawMentions = content?.["m.mentions"];
1637
- if (!rawMentions || typeof rawMentions !== "object") return {};
1638
- const mentions = rawMentions;
1639
- const normalized = {};
1640
- const userIds = normalizeMentionUserIds(mentions.user_ids);
1641
- if (userIds.length > 0) normalized.user_ids = userIds;
1642
- if (mentions.room === true) normalized.room = true;
1643
- return normalized;
1644
- }
1645
- function diffMatrixMentions(current, previous) {
1646
- const previousUserIds = new Set(previous.user_ids ?? []);
1647
- const newUserIds = (current.user_ids ?? []).filter((userId) => !previousUserIds.has(userId));
1648
- const delta = {};
1649
- if (newUserIds.length > 0) delta.user_ids = newUserIds;
1650
- if (current.room && !previous.room) delta.room = true;
1651
- return delta;
1652
- }
1653
- function resolveMatrixMsgType(contentType, _fileName) {
1654
- switch (getMatrixRuntime().media.mediaKindFromMime(contentType ?? "")) {
1655
- case "image": return MsgType.Image;
1656
- case "audio": return MsgType.Audio;
1657
- case "video": return MsgType.Video;
1658
- default: return MsgType.File;
1659
- }
1660
- }
1661
- function resolveMatrixVoiceDecision(opts) {
1662
- if (!opts.wantsVoice) return { useVoice: false };
1663
- if (isMatrixVoiceCompatibleAudio(opts)) return { useVoice: true };
1664
- return { useVoice: false };
1665
- }
1666
- function isMatrixVoiceCompatibleAudio(opts) {
1667
- return isVoiceMessageCompatibleAudio({
1668
- contentType: opts.contentType,
1669
- fileName: opts.fileName
1670
- });
1671
- }
1672
- //#endregion
1673
- //#region extensions/matrix/src/matrix/send/media.ts
1674
- function buildMatrixMediaInfo(params) {
1675
- const base = {};
1676
- if (Number.isFinite(params.size)) base.size = params.size;
1677
- if (params.mimetype) base.mimetype = params.mimetype;
1678
- const info = params.imageInfo ? {
1679
- ...base,
1680
- ...params.imageInfo
1681
- } : base;
1682
- if (typeof params.durationMs === "number") return {
1683
- ...info,
1684
- duration: params.durationMs
1685
- };
1686
- if (!params.imageInfo && Object.keys(info).length === 0) return;
1687
- return info;
1688
- }
1689
- function buildMediaContent(params) {
1690
- const info = buildMatrixMediaInfo({
1691
- size: params.size,
1692
- mimetype: params.mimetype,
1693
- durationMs: params.durationMs,
1694
- imageInfo: params.imageInfo
1695
- });
1696
- const base = {
1697
- msgtype: params.msgtype,
1698
- body: params.body,
1699
- filename: params.filename,
1700
- info: info ?? void 0
1701
- };
1702
- if (!params.file && params.url) base.url = params.url;
1703
- if (params.file) base.file = params.file;
1704
- if (params.isVoice) {
1705
- base["org.matrix.msc3245.voice"] = {};
1706
- if (typeof params.durationMs === "number") base["org.matrix.msc1767.audio"] = { duration: params.durationMs };
1707
- }
1708
- if (params.relation) base["m.relates_to"] = params.relation;
1709
- return base;
1710
- }
1711
- const THUMBNAIL_MAX_SIDE = 800;
1712
- const THUMBNAIL_QUALITY = 80;
1713
- const AIFC_IMA4_BYTES_PER_CHANNEL_PACKET = 34;
1714
- const AIFC_IMA4_FRAMES_PER_PACKET = 64;
1715
- function resolveAifcIma4DurationSeconds(buffer, sampleRate) {
1716
- if (!sampleRate || !Number.isFinite(sampleRate) || buffer.length < 12 || buffer.toString("ascii", 0, 4) !== "FORM" || buffer.toString("ascii", 8, 12) !== "AIFC") return;
1717
- let channels;
1718
- let declaredFrameCount;
1719
- let soundDataBytes;
1720
- for (let offset = 12; offset + 8 <= buffer.length;) {
1721
- const chunkType = buffer.toString("ascii", offset, offset + 4);
1722
- const chunkSize = buffer.readUInt32BE(offset + 4);
1723
- const chunkStart = offset + 8;
1724
- if (chunkSize > buffer.length - chunkStart) return;
1725
- if (chunkType === "COMM") {
1726
- if (chunkSize < 22 || buffer.toString("ascii", chunkStart + 18, chunkStart + 22) !== "ima4") return;
1727
- channels = buffer.readUInt16BE(chunkStart);
1728
- declaredFrameCount = buffer.readUInt32BE(chunkStart + 2);
1729
- } else if (chunkType === "SSND") {
1730
- if (chunkSize < 8) return;
1731
- const soundDataOffset = buffer.readUInt32BE(chunkStart);
1732
- if (soundDataOffset > chunkSize - 8) return;
1733
- soundDataBytes = chunkSize - 8 - soundDataOffset;
1734
- }
1735
- offset = chunkStart + chunkSize + (chunkSize & 1);
1736
- }
1737
- if (!channels || !declaredFrameCount || !soundDataBytes) return;
1738
- const packetSize = channels * AIFC_IMA4_BYTES_PER_CHANNEL_PACKET;
1739
- if (soundDataBytes % packetSize !== 0) return;
1740
- const packetCount = soundDataBytes / packetSize;
1741
- if (packetCount !== declaredFrameCount) return;
1742
- return packetCount * AIFC_IMA4_FRAMES_PER_PACKET / sampleRate;
1743
- }
1744
- async function prepareImageInfo(params) {
1745
- const meta = await getMatrixRuntime().media.getImageMetadata(params.buffer).catch(() => null);
1746
- if (!meta) return;
1747
- const imageInfo = {
1748
- w: meta.width,
1749
- h: meta.height
1750
- };
1751
- if (Math.max(meta.width, meta.height) > THUMBNAIL_MAX_SIDE) try {
1752
- const thumbBuffer = await getMatrixRuntime().media.resizeToJpeg({
1753
- buffer: params.buffer,
1754
- maxSide: THUMBNAIL_MAX_SIDE,
1755
- quality: THUMBNAIL_QUALITY,
1756
- withoutEnlargement: true
1757
- });
1758
- const thumbMeta = await getMatrixRuntime().media.getImageMetadata(thumbBuffer).catch(() => null);
1759
- const result = await uploadMediaWithEncryption(params.client, params.roomId, thumbBuffer, {
1760
- contentType: "image/jpeg",
1761
- filename: "thumbnail.jpg"
1762
- });
1763
- if (result.file) imageInfo.thumbnail_file = result.file;
1764
- else imageInfo.thumbnail_url = result.url;
1765
- if (thumbMeta) imageInfo.thumbnail_info = {
1766
- w: thumbMeta.width,
1767
- h: thumbMeta.height,
1768
- mimetype: "image/jpeg",
1769
- size: thumbBuffer.byteLength
1770
- };
1771
- } catch {}
1772
- return imageInfo;
1773
- }
1774
- async function resolveMediaDurationMs(params) {
1775
- if (params.kind !== "audio" && params.kind !== "video") return;
1776
- try {
1777
- const fileInfo = params.contentType || params.fileName ? {
1778
- mimeType: params.contentType,
1779
- size: params.buffer.byteLength,
1780
- path: params.fileName
1781
- } : void 0;
1782
- const metadata = await parseBuffer(params.buffer, fileInfo, {
1783
- duration: true,
1784
- skipCovers: true
1785
- });
1786
- const durationSeconds = resolveAifcIma4DurationSeconds(params.buffer, metadata.format.sampleRate) ?? metadata.format.duration;
1787
- if (typeof durationSeconds === "number" && Number.isFinite(durationSeconds)) return Math.max(0, Math.round(durationSeconds * 1e3));
1788
- } catch {}
1789
- }
1790
- async function uploadMediaWithEncryption(client, roomId, buffer, params) {
1791
- if (await client.prepareRoomForMessageSend(roomId) === "m.room.encrypted") {
1792
- if (!client.crypto) throw new Error("Encrypted Matrix room: enable encryption before uploading media");
1793
- const encrypted = await client.crypto.encryptMedia(buffer);
1794
- const mxc = await client.uploadContent(encrypted.buffer, "application/octet-stream");
1795
- return {
1796
- url: mxc,
1797
- file: {
1798
- url: mxc,
1799
- ...encrypted.file
1800
- }
1801
- };
1802
- }
1803
- return { url: await client.uploadContent(buffer, params.contentType, params.filename) };
1804
- }
1805
- //#endregion
1806
- //#region extensions/matrix/src/matrix/send.ts
1807
- var send_exports = /* @__PURE__ */ __exportAll({
1808
- chunkMatrixText: () => chunkMatrixText,
1809
- editMessageMatrix: () => editMessageMatrix,
1810
- prepareMatrixSingleText: () => prepareMatrixSingleText,
1811
- reactMatrixMessage: () => reactMatrixMessage,
1812
- resolveMatrixMentionsForBody: () => resolveMatrixMentionsForBody,
1813
- resolveMatrixRoomId: () => resolveMatrixRoomId,
1814
- sendMessageMatrix: () => sendMessageMatrix,
1815
- sendPollMatrix: () => sendPollMatrix,
1816
- sendReadReceiptMatrix: () => sendReadReceiptMatrix,
1817
- sendSingleTextMessageMatrix: () => sendSingleTextMessageMatrix,
1818
- sendTypingMatrix: () => sendTypingMatrix
1819
- });
1820
- function isMatrixClient(value) {
1821
- return typeof value.sendEvent === "function";
1822
- }
1823
- function normalizeMatrixClientResolveOpts(opts) {
1824
- if (!opts) return {};
1825
- if (isMatrixClient(opts)) return { client: opts };
1826
- return {
1827
- client: opts.client,
1828
- cfg: opts.cfg,
1829
- timeoutMs: opts.timeoutMs,
1830
- accountId: opts.accountId
1831
- };
1832
- }
1833
- function resolvePreviousThreadId(previousEvent) {
1834
- if (!previousEvent || typeof previousEvent !== "object") return;
1835
- const content = previousEvent.content;
1836
- if (!content || typeof content !== "object") return;
1837
- const relation = content["m.relates_to"];
1838
- if (!relation || typeof relation !== "object") return;
1839
- const relationRecord = relation;
1840
- if (relationRecord.rel_type !== RelationType.Thread || typeof relationRecord.event_id !== "string") return;
1841
- return normalizeThreadId(relationRecord.event_id) ?? void 0;
1842
- }
1843
- function withMatrixExtraContentFields(content, extraContent) {
1844
- if (!extraContent) return content;
1845
- return {
1846
- ...content,
1847
- ...extraContent
1848
- };
1849
- }
1850
- async function resolvePreviousEditMentions(params) {
1851
- const content = await resolveMatrixEditContent(params);
1852
- if (content && Object.hasOwn(content, "m.mentions")) return extractMatrixMentions(content);
1853
- const body = typeof content?.body === "string" ? content.body : "";
1854
- if (!body) return {};
1855
- return await resolveMatrixMentionsForBody({
1856
- client: params.client,
1857
- body
1858
- });
1859
- }
1860
- async function sendMessageMatrix(to, message, opts) {
1861
- const messageText = message?.trimEnd() ?? "";
1862
- if (!messageText.trim() && !opts.mediaUrl) throw new Error("Matrix send requires text or media");
1863
- const durableIdentity = resolveMatrixDurableDeliveryIdentity({
1864
- queueId: opts.deliveryQueueId,
1865
- partIndex: opts.deliveryPartIndex,
1866
- partCount: opts.deliveryPartCount
1867
- });
1868
- return await withResolvedMatrixSendClient({
1869
- client: opts.client,
1870
- cfg: opts.cfg,
1871
- timeoutMs: opts.timeoutMs,
1872
- accountId: opts.accountId,
1873
- signal: opts.signal,
1874
- assertDirectAdapterHandoff: opts.assertDirectAdapterHandoff
1875
- }, async (client) => {
1876
- const roomId = await resolveMatrixRoomId(client, to);
1877
- const wireEventType = await client.prepareRoomForMessageSend(roomId);
1878
- const cfg = requireRuntimeConfig(opts.cfg, "Matrix send");
1879
- const threadId = normalizeThreadId(opts.threadId);
1880
- const transactionScopeId = durableIdentity ? await client.getTransactionScopeId() : void 0;
1881
- let plannedEvents = (durableIdentity ? await loadMatrixDeliveryPlan({
1882
- identity: durableIdentity,
1883
- accountId: opts.accountId,
1884
- roomId,
1885
- transactionScopeId,
1886
- wireEventType
1887
- }) : null)?.events;
1888
- if (!plannedEvents) {
1889
- const { chunks, convertedText, preparedBody, fitsInSingleEvent, tableMode } = chunkMatrixText(messageText, {
1890
- cfg,
1891
- accountId: opts.accountId,
1892
- preserveWhitespace: true
1893
- });
1894
- const singleEventBody = fitsInSingleEvent ? preparedBody : void 0;
1895
- const relation = buildMatrixMessageRelation({
1896
- ...opts,
1897
- threadId
1898
- });
1899
- let pendingExtraContent = opts.extraContent;
1900
- const events = [];
1901
- const prepareContent = (content, receiptKind) => {
1902
- events.push({
1903
- content: withMatrixExtraContentFields(content, pendingExtraContent),
1904
- receiptKind
1905
- });
1906
- pendingExtraContent = void 0;
1907
- };
1908
- if (opts.mediaUrl) {
1909
- const maxBytes = resolveMediaMaxBytes(opts.accountId, cfg);
1910
- const media = await loadOutboundMediaFromUrl(opts.mediaUrl, {
1911
- maxBytes,
1912
- mediaAccess: opts.mediaAccess,
1913
- mediaLocalRoots: opts.mediaLocalRoots,
1914
- mediaReadFile: opts.mediaReadFile
1915
- });
1916
- const uploaded = await uploadMediaWithEncryption(client, roomId, media.buffer, {
1917
- contentType: media.contentType,
1918
- filename: media.fileName
1919
- });
1920
- const durationMs = await resolveMediaDurationMs({
1921
- buffer: media.buffer,
1922
- contentType: media.contentType,
1923
- fileName: media.fileName,
1924
- kind: media.kind === "sticker" ? "unknown" : media.kind ?? "unknown"
1925
- });
1926
- const baseMsgType = resolveMatrixMsgType(media.contentType, media.fileName);
1927
- const { useVoice } = resolveMatrixVoiceDecision({
1928
- wantsVoice: opts.audioAsVoice === true,
1929
- contentType: media.contentType,
1930
- fileName: media.fileName
1931
- });
1932
- const msgtype = useVoice ? MsgType.Audio : baseMsgType;
1933
- const receiptKind = useVoice ? "voice" : "media";
1934
- const imageInfo = msgtype === MsgType.Image ? await prepareImageInfo({
1935
- buffer: media.buffer,
1936
- client,
1937
- roomId
1938
- }) : void 0;
1939
- const [firstChunk, ...rest] = chunks;
1940
- const captionMarkdown = useVoice ? "" : firstChunk ?? "";
1941
- const content = buildMediaContent({
1942
- msgtype,
1943
- body: useVoice ? "Voice message" : captionMarkdown || media.fileName || "(file)",
1944
- url: uploaded.url,
1945
- file: uploaded.file,
1946
- filename: media.fileName,
1947
- mimetype: media.contentType,
1948
- size: media.buffer.byteLength,
1949
- durationMs,
1950
- relation,
1951
- isVoice: useVoice,
1952
- imageInfo
1953
- });
1954
- await enrichMatrixFormattedContent({
1955
- client,
1956
- content,
1957
- markdown: captionMarkdown,
1958
- preparedBody: captionMarkdown === convertedText ? singleEventBody : void 0,
1959
- tableMode
1960
- });
1961
- prepareContent(content, receiptKind);
1962
- const textChunks = useVoice ? chunks : rest;
1963
- const followupRelation = useVoice || threadId ? relation : void 0;
1964
- for (const chunk of textChunks) {
1965
- if (!chunk.trim()) continue;
1966
- const followup = buildTextContent(chunk, followupRelation);
1967
- await enrichMatrixFormattedContent({
1968
- client,
1969
- content: followup,
1970
- markdown: chunk,
1971
- preparedBody: chunk === convertedText ? singleEventBody : void 0,
1972
- tableMode
1973
- });
1974
- prepareContent(followup, "text");
1975
- }
1976
- } else for (const chunk of chunks.length ? chunks : [""]) {
1977
- if (!chunk.trim()) continue;
1978
- const content = buildTextContent(chunk, relation);
1979
- await enrichMatrixFormattedContent({
1980
- client,
1981
- content,
1982
- markdown: chunk,
1983
- preparedBody: chunk === convertedText ? singleEventBody : void 0,
1984
- tableMode
1985
- });
1986
- prepareContent(content, "text");
1987
- }
1988
- plannedEvents = durableIdentity ? createMatrixPlannedEvents({
1989
- identity: durableIdentity,
1990
- events
1991
- }) : events.map((event) => ({
1992
- content: event.content,
1993
- receiptKind: event.receiptKind,
1994
- transactionId: ""
1995
- }));
1996
- }
1997
- if (opts.mediaUrl) await client.prepareRoomForMessageSend(roomId, plannedEvents[0]?.content);
1998
- const acceptedEvents = [];
1999
- const acceptedContents = [];
2000
- let lastMessageId = "";
2001
- for (const planned of plannedEvents) {
2002
- const eventId = await client.sendMessage(roomId, planned.content, planned.transactionId || void 0, durableIdentity ? async (dispatch) => {
2003
- await persistMatrixDeliveryPlan({
2004
- identity: durableIdentity,
2005
- accountId: opts.accountId,
2006
- roomId,
2007
- transactionScopeId,
2008
- wireEventType: dispatch.eventType,
2009
- events: plannedEvents,
2010
- dispatch
2011
- });
2012
- await opts.onPlatformSendDispatch?.();
2013
- } : opts.onPlatformSendDispatch);
2014
- lastMessageId = eventId || lastMessageId;
2015
- if (!eventId) continue;
2016
- const eventReplyToId = resolveMatrixReplyToEventId(planned.content);
2017
- const acceptedEvent = {
2018
- messageId: eventId,
2019
- kind: planned.receiptKind,
2020
- ...eventReplyToId ? { replyToId: eventReplyToId } : {}
2021
- };
2022
- acceptedEvents.push(acceptedEvent);
2023
- const visibleContent = planned.content.body ?? "";
2024
- acceptedContents.push(visibleContent);
2025
- await opts.onDeliveryResult?.({
2026
- messageId: eventId,
2027
- roomId,
2028
- primaryMessageId: eventId,
2029
- receipt: createMatrixSendReceipt({
2030
- roomId,
2031
- events: [acceptedEvent],
2032
- threadId
2033
- }),
2034
- content: visibleContent
2035
- });
2036
- }
2037
- return {
2038
- messageId: lastMessageId || "unknown",
2039
- roomId,
2040
- primaryMessageId: acceptedEvents[0]?.messageId ?? (lastMessageId || "unknown"),
2041
- receipt: createMatrixSendReceipt({
2042
- roomId,
2043
- events: acceptedEvents,
2044
- threadId
2045
- }),
2046
- content: acceptedContents.join("\n")
2047
- };
2048
- });
2049
- }
2050
- async function sendPollMatrix(to, poll, opts) {
2051
- if (!poll.question?.trim()) throw new Error("Matrix poll requires a question");
2052
- if (!poll.options?.length) throw new Error("Matrix poll requires options");
2053
- return await withResolvedMatrixSendClient({
2054
- client: opts.client,
2055
- cfg: opts.cfg,
2056
- timeoutMs: opts.timeoutMs,
2057
- accountId: opts.accountId
2058
- }, async (client) => {
2059
- const roomId = await resolveMatrixRoomId(client, to);
2060
- const pollContent = buildPollStartContent(poll);
2061
- const mentions = await resolveMatrixMentionsForBody({
2062
- client,
2063
- body: pollContent["m.text"] ?? pollContent["org.matrix.msc1767.text"] ?? poll.question ?? ""
2064
- });
2065
- const threadId = normalizeThreadId(opts.threadId);
2066
- const pollPayload = threadId ? {
2067
- ...pollContent,
2068
- "m.relates_to": buildMatrixMessageRelation({ threadId })
2069
- } : { ...pollContent };
2070
- pollPayload["m.mentions"] = mentions;
2071
- return {
2072
- eventId: await client.sendEvent(roomId, "m.poll.start", pollPayload) ?? "unknown",
2073
- roomId
2074
- };
2075
- });
2076
- }
2077
- async function sendTypingMatrix(roomId, typing, optsOrTimeoutMs, client) {
2078
- const opts = typeof optsOrTimeoutMs === "number" ? {
2079
- timeoutMs: optsOrTimeoutMs,
2080
- ...client ? { client } : {}
2081
- } : {
2082
- ...normalizeMatrixClientResolveOpts(optsOrTimeoutMs),
2083
- ...client ? { client } : {}
2084
- };
2085
- await withResolvedMatrixControlClient({
2086
- client: opts.client,
2087
- cfg: opts.cfg,
2088
- timeoutMs: opts.timeoutMs,
2089
- accountId: opts.accountId
2090
- }, async (resolved) => {
2091
- const resolvedRoom = await resolveMatrixRoomId(resolved, roomId);
2092
- const resolvedTimeoutMs = typeof opts.timeoutMs === "number" ? opts.timeoutMs : 3e4;
2093
- await resolved.setTyping(resolvedRoom, typing, resolvedTimeoutMs);
2094
- });
2095
- }
2096
- async function sendReadReceiptMatrix(roomId, eventId, client) {
2097
- if (!eventId?.trim()) return;
2098
- await withResolvedMatrixControlClient({ client }, async (resolved) => {
2099
- const resolvedRoom = await resolveMatrixRoomId(resolved, roomId);
2100
- await resolved.sendReadReceipt(resolvedRoom, eventId.trim());
2101
- });
2102
- }
2103
- async function sendSingleTextMessageMatrix(roomId, text, opts) {
2104
- const { trimmedText, convertedText, preparedBody, singleEventLimit, eventTextLength, fitsInSingleEvent, tableMode } = prepareMatrixSingleText(text.trimEnd(), {
2105
- cfg: opts.cfg,
2106
- accountId: opts.accountId,
2107
- preserveWhitespace: true
2108
- });
2109
- if (!trimmedText.trim()) throw new Error("Matrix single-message send requires text");
2110
- if (!fitsInSingleEvent) throw new Error(`Matrix single-message text exceeds limit (${eventTextLength} > ${singleEventLimit})`);
2111
- return await withResolvedMatrixSendClient({
2112
- client: opts.client,
2113
- cfg: opts.cfg,
2114
- accountId: opts.accountId
2115
- }, async (client) => {
2116
- const resolvedRoom = await resolveMatrixRoomId(client, roomId);
2117
- const normalizedThreadId = normalizeThreadId(opts.threadId);
2118
- const relation = buildMatrixMessageRelation({
2119
- ...opts,
2120
- threadId: normalizedThreadId
2121
- });
2122
- const content = withMatrixExtraContentFields(buildTextContent(convertedText, relation, { msgtype: opts.msgtype }), opts.extraContent);
2123
- await enrichMatrixFormattedContent({
2124
- client,
2125
- content,
2126
- markdown: convertedText,
2127
- preparedBody,
2128
- includeMentions: opts.includeMentions,
2129
- tableMode
2130
- });
2131
- if (opts.live) content[MSC4357_LIVE_KEY] = {};
2132
- const eventId = await client.sendMessage(resolvedRoom, content);
2133
- const replyToId = resolveMatrixReplyToEventId(content);
2134
- return {
2135
- messageId: eventId ?? "unknown",
2136
- roomId: resolvedRoom,
2137
- primaryMessageId: eventId ?? "unknown",
2138
- receipt: createMatrixSendReceipt({
2139
- roomId: resolvedRoom,
2140
- events: eventId ? [{
2141
- messageId: eventId,
2142
- kind: "text",
2143
- ...replyToId ? { replyToId } : {}
2144
- }] : [],
2145
- threadId: normalizedThreadId
2146
- }),
2147
- content: content.body
2148
- };
2149
- });
2150
- }
2151
- async function editMessageMatrix(roomId, originalEventId, newText, opts) {
2152
- return await withResolvedMatrixSendClient({
2153
- client: opts.client,
2154
- cfg: opts.cfg,
2155
- accountId: opts.accountId,
2156
- timeoutMs: opts.timeoutMs
2157
- }, async (client) => {
2158
- const resolvedRoom = await resolveMatrixRoomId(client, roomId);
2159
- const { convertedText, preparedBody, tableMode } = prepareMatrixSingleText(newText, {
2160
- cfg: requireRuntimeConfig(opts.cfg, "Matrix message edit"),
2161
- accountId: opts.accountId,
2162
- preserveWhitespace: true
2163
- });
2164
- const newContent = withMatrixExtraContentFields(buildTextContent(convertedText, void 0, { msgtype: opts.msgtype }), opts.extraContent);
2165
- await enrichMatrixFormattedContent({
2166
- client,
2167
- content: newContent,
2168
- markdown: convertedText,
2169
- preparedBody,
2170
- includeMentions: opts.includeMentions,
2171
- tableMode
2172
- });
2173
- const threadId = normalizeThreadId(opts.threadId);
2174
- const previousEvent = opts.includeMentions !== false || threadId ? await client.getEvent(resolvedRoom, originalEventId) : null;
2175
- const replaceMentions = opts.includeMentions === false ? void 0 : diffMatrixMentions(extractMatrixMentions(newContent), await resolvePreviousEditMentions({
2176
- client,
2177
- roomId: resolvedRoom,
2178
- event: previousEvent
2179
- }));
2180
- const replaceRelation = {
2181
- rel_type: RelationType.Replace,
2182
- event_id: originalEventId
2183
- };
2184
- if (threadId) {
2185
- if (resolvePreviousThreadId(previousEvent) !== threadId) throw new Error("Matrix edit cannot add or change the original event thread relation.");
2186
- }
2187
- const content = {
2188
- ...newContent,
2189
- body: `* ${newContent.body}`,
2190
- ...typeof newContent.formatted_body === "string" ? { formatted_body: `* ${newContent.formatted_body}` } : {},
2191
- "m.new_content": newContent,
2192
- "m.relates_to": replaceRelation
2193
- };
2194
- if (replaceMentions !== void 0) content["m.mentions"] = replaceMentions;
2195
- if (opts.live) {
2196
- content[MSC4357_LIVE_KEY] = {};
2197
- content["m.new_content"][MSC4357_LIVE_KEY] = {};
2198
- }
2199
- return await client.sendMessage(resolvedRoom, content) ?? "";
2200
- });
2201
- }
2202
- async function reactMatrixMessage(roomId, messageId, emoji, opts) {
2203
- const clientOpts = normalizeMatrixClientResolveOpts(opts);
2204
- await withResolvedMatrixSendClient({
2205
- client: clientOpts.client,
2206
- cfg: clientOpts.cfg,
2207
- timeoutMs: clientOpts.timeoutMs,
2208
- accountId: clientOpts.accountId ?? void 0
2209
- }, async (resolved) => {
2210
- const resolvedRoom = await resolveMatrixRoomId(resolved, roomId);
2211
- const reaction = buildMatrixReactionContent(messageId, emoji);
2212
- await resolved.sendEvent(resolvedRoom, EventType.Reaction, reaction);
2213
- });
2214
- }
2215
- //#endregion
2216
- export { resolvePollReferenceEventId as C, resolveMatrixRoomId as E, parsePollStartContent as S, reconcileMatrixUnknownSend as T, formatPollAsText as _, sendSingleTextMessageMatrix as a, isPollStartType as b, formatMatrixMediaTooLargeText as c, isLikelyBareFilename as d, resolveMatrixMessageAttachment as f, buildPollResultsSummary as g, buildPollResponseContent as h, sendPollMatrix as i, formatMatrixMediaUnavailableText as l, prepareMatrixSingleText as m, reactMatrixMessage as n, sendTypingMatrix as o, resolveMatrixReplacementContent as p, sendMessageMatrix as r, send_exports as s, editMessageMatrix as t, formatMatrixMessageText as u, formatPollResultsAsText as v, cleanupMatrixDeliveryPlans as w, parsePollStart as x, isPollEventType as y };