@openclaw/matrix 2026.11.5-beta.4 → 2026.11.10-beta.1

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 (466) hide show
  1. package/dist/.setup/{account-config-CRsKoMqJ.mjs → account-config-CVM2a28p.mjs} +1 -2
  2. package/dist/.setup/{account-selection-UUPhMBmu.mjs → account-selection-Cow3TMFO.mjs} +5 -8
  3. package/dist/.setup/{approval-handler.runtime-Ca12_7Qa.mjs → approval-handler.runtime-D7KO6ds_.mjs} +8 -9
  4. package/dist/.setup/{approval-reactions-BazmsDbe.mjs → approval-reactions-Bz_8XB01.mjs} +2 -3
  5. package/dist/.setup/{backup-health-Dm_YMVFT.mjs → backup-health-BxH69np2.mjs} +1 -2
  6. package/dist/.setup/{channel-FfaEmyIU.mjs → channel-BJGiol_v.mjs} +30 -40
  7. package/dist/.setup/{channel.runtime-CkkHG8zy.mjs → channel.runtime-BrSYy4Qm.mjs} +10 -12
  8. package/dist/.setup/{channel.setup-B00zzOOL.mjs → channel.setup-DJdvsvAL.mjs} +9 -7
  9. package/dist/.setup/{cli-dz9hd2dR.mjs → cli-CjjggD1Y.mjs} +25 -34
  10. package/dist/.setup/{cli-metadata-CwUhA9CY.mjs → cli-metadata-nnz3uf_k.mjs} +3 -5
  11. package/dist/.setup/{client-D1bsidwU.mjs → client-DIeTvz6C.mjs} +21 -26
  12. package/dist/.setup/{client-bootstrap-CTT0VF6v.mjs → client-bootstrap-CvbnV_7R.mjs} +2 -3
  13. package/dist/.setup/{client-support-B_Mp4Qk9.mjs → client-support-CqXAOZp3.mjs} +2 -3
  14. package/dist/.setup/{client-CFPYqaYK.mjs → client-uAX074II.mjs} +4 -5
  15. package/dist/.setup/{config-paths-CnREYb1Y.mjs → config-paths-DBpHxDyc.mjs} +1 -2
  16. package/dist/.setup/{create-client-Ccf5wyS3.mjs → create-client-XL9SKJ2s.mjs} +8 -9
  17. package/dist/.setup/{credentials-kT20jk_u.mjs → credentials-CGgWuhFV.mjs} +5 -6
  18. package/dist/.setup/{credentials-read-CM6wXUjL.mjs → credentials-read-rPqEpuxv.mjs} +5 -6
  19. package/dist/.setup/{credentials-state-B3cuUFwZ.mjs → credentials-state-jxq29yQw.mjs} +1 -2
  20. package/dist/.setup/{crypto-node.runtime-6Aj_ltHQ.mjs → crypto-node.runtime-E_hqXGxm.mjs} +1 -2
  21. package/dist/.setup/{crypto-runtime-DZNytKX5.mjs → crypto-runtime-D96thr_g.mjs} +10 -15
  22. package/dist/.setup/{crypto-state-store-BZLlwkv_.mjs → crypto-state-store-CzAmeC_Z.mjs} +4 -4
  23. package/dist/.setup/{crypto-store-ownership-CiQ1l_O7.mjs → crypto-store-ownership-DPO9WcVz.mjs} +3 -4
  24. package/dist/.setup/{crypto-unsafe-state-doctor-Dh1dtuSz.mjs → crypto-unsafe-state-doctor-CkhtP1mQ.mjs} +7 -8
  25. package/dist/.setup/{deps-D-W_QQjz.mjs → deps-CVPT2Ros.mjs} +1 -2
  26. package/dist/.setup/{device-health-Ck2YpEVN.mjs → device-health-D7n-lPeb.mjs} +2 -3
  27. package/dist/.setup/{direct-management-Dp1giZ34.mjs → direct-management-D59C1WO-.mjs} +7 -11
  28. package/dist/.setup/{directory-live-ufzRheWx.mjs → directory-live-5RgaKKuc.mjs} +5 -6
  29. package/dist/.setup/{doctor-contract-BANpMUbP.mjs → doctor-contract-GiXgCj7k.mjs} +2 -3
  30. package/dist/.setup/{draft-stream-BPjjKSoI.mjs → draft-stream-CjEpElZ-.mjs} +3 -4
  31. package/dist/.setup/{encryption-guidance-Br3Lv9Hm.mjs → encryption-guidance-DfbEaKct.mjs} +3 -4
  32. package/dist/.setup/{env-vars-aEBngJPa.mjs → env-vars-Bh1iOXJ1.mjs} +1 -2
  33. package/dist/.setup/{errors-Bw4EHwKX.mjs → errors-CL3YJV8U.mjs} +1 -2
  34. package/dist/.setup/{event-helpers-CxNgMQqH.mjs → event-helpers-DDUjVVf7.mjs} +1 -2
  35. package/dist/.setup/{exec-approvals-BwEOyI1-.mjs → exec-approvals-DcQS_LNp.mjs} +6 -9
  36. package/dist/.setup/{file-sync-store-BpS12yaK.mjs → file-sync-store-CAhnwOPA.mjs} +6 -36
  37. package/dist/.setup/{http-client-B_ohXrBm.mjs → http-client-CqnKFKUH.mjs} +5 -8
  38. package/dist/.setup/{idb-persistence-BTOsltD9.mjs → idb-persistence-DeGUs--C.mjs} +6 -7
  39. package/dist/.setup/{idb-persistence-lock-Bh3ZLIsE.mjs → idb-persistence-lock-CH2K6d_3.mjs} +1 -2
  40. package/dist/.setup/{joined-room-encryption-C0gHa2DG.mjs → joined-room-encryption-9sJK1kM-.mjs} +2 -3
  41. package/dist/.setup/{logger-CuAzdD8Q.mjs → logger-B9TwnY6C.mjs} +2 -3
  42. package/dist/.setup/{logging-CoaEyRtA.mjs → logging-Bnsn7s4r.mjs} +3 -4
  43. package/dist/.setup/{messages-DpJ9naJa.mjs → messages-CmlRhlPp.mjs} +9 -14
  44. package/dist/.setup/{monitor-vpzawYrB.mjs → monitor-DG8yTCh9.mjs} +98 -137
  45. package/dist/.setup/{onboarding-BK-V2ZLT.mjs → onboarding-CY_oesMI.mjs} +10 -11
  46. package/dist/.setup/{outbound-DydCDuvM.mjs → outbound-BY9kS8Kt.mjs} +5 -6
  47. package/dist/.setup/{profile-update-RLsY-gu6.mjs → profile-update-BRugBHSm.mjs} +13 -10
  48. package/dist/.setup/{reaction-events-lcgVF3M5.mjs → reaction-events-B1DQTt9d.mjs} +8 -9
  49. package/dist/.setup/{resolve-targets-DYW8ULZS.mjs → resolve-targets-CUBvJ37V.mjs} +4 -5
  50. package/dist/.setup/{retired-state-JGUEBE72.mjs → retired-state-BsxdpJNk.mjs} +3 -41
  51. package/dist/.setup/{room-info-Dhc4efkA.mjs → room-info-CJVhaCvB.mjs} +6 -8
  52. package/dist/.setup/{runtime-1kn1P6io.mjs → runtime-Ck8TjD7L.mjs} +1 -2
  53. package/dist/.setup/{runtime-doctor-migrations-hxP-CXX7.mjs → runtime-doctor-migrations-CSvRANPN.mjs} +5 -10
  54. package/dist/.setup/{runtime-setter-api-i2MOXoT3.mjs → runtime-setter-api-CpwhcBQK.mjs} +1 -1
  55. package/dist/.setup/{sdk-DPXiQ3jr.mjs → sdk-CRJQM2N0.mjs} +33 -47
  56. package/dist/.setup/{secret-contract-DxyzKSzf.mjs → secret-contract-AKnr45nw.mjs} +2 -3
  57. package/dist/.setup/{secret-contract-api-Dukgvike.mjs → secret-contract-api-DMSwMIxd.mjs} +1 -1
  58. package/dist/.setup/{send-HHAbKARg.mjs → send-QWCT3NT9.mjs} +58 -44
  59. package/dist/.setup/{send-currentness-DGxiiBn9.mjs → send-currentness-D1x6YP9O.mjs} +2 -4
  60. package/dist/.setup/{setup-bootstrap-DaT2j28V.mjs → setup-bootstrap-DrBapwjQ.mjs} +4 -5
  61. package/dist/.setup/{setup-core-DcqQbLZv.mjs → setup-core-B4sVj_9e.mjs} +13 -20
  62. package/dist/.setup/setup-plugin-api-t9yhI-Tq.mjs +2 -0
  63. package/dist/.setup/sqlite-state-D6Zpz1q1.mjs +36 -0
  64. package/dist/.setup/{startup-verification-UkaoSldm.mjs → startup-verification-DfOuAruK.mjs} +5 -5
  65. package/dist/.setup/{state-layout-walk-BQMgMykU.mjs → state-layout-walk-BqCZTHpp.mjs} +2 -3
  66. package/dist/.setup/{storage-C3N6YZIn.mjs → storage-CCarF_gm.mjs} +9 -10
  67. package/dist/.setup/{storage-paths-B51JM-pC.mjs → storage-paths-e_Vq6cvw.mjs} +1 -2
  68. package/dist/.setup/{subagent-hooks-CfGAysJi.mjs → subagent-hooks-BdbuojSv.mjs} +2 -3
  69. package/dist/.setup/{sync-cache-state-BKVaKRzQ.mjs → sync-cache-state-BMvqW4Ii.mjs} +5 -5
  70. package/dist/.setup/{sync-state-CWbp0QSY.mjs → sync-state-Cu1nagBV.mjs} +1 -2
  71. package/dist/.setup/{target-ids-HhcaKX1n.mjs → target-ids-DltG_ZHJ.mjs} +1 -2
  72. package/dist/.setup/{task-runner-DY3aKiQa.mjs → task-runner-CYyGHdNW.mjs} +1 -2
  73. package/dist/.setup/{thread-binding-api-BvuaKpd0.mjs → thread-binding-api-OtSciHmZ.mjs} +2 -3
  74. package/dist/.setup/{thread-bindings-891JsKXF.mjs → thread-bindings-jNXWItIL.mjs} +54 -23
  75. package/dist/.setup/{thread-bindings-shared-QmZOfX9Q.mjs → thread-bindings-shared-DEAGGuDA.mjs} +6 -3
  76. package/dist/.setup/{tool-actions-8mXdq9OV.mjs → tool-actions-4sdtsvN2.mjs} +25 -25
  77. package/dist/.setup/{url-validation-By_2hsXr.mjs → url-validation-DesoKUns.mjs} +1 -2
  78. package/dist/.setup/{verification-CcZIVL8P.mjs → verification-DQu-OS0V.mjs} +4 -5
  79. package/dist/.source-module-urls/1cd4d4ff8d44e1c8b830932b44d7cf8a7f3350e09e169910e1d7a85e131b7bea.json +1 -1
  80. package/dist/api.js +8 -8
  81. package/dist/auth-presence.js +2 -3
  82. package/dist/channel-plugin-api.js +1 -1
  83. package/dist/cli-metadata.js +1 -1
  84. package/dist/contract-api.js +2 -2
  85. package/dist/doctor-contract-api.js +14 -16
  86. package/dist/helper-api.js +3 -3
  87. package/dist/index.js +3 -4
  88. package/dist/plugin-entry.handlers.runtime.js +3 -4
  89. package/dist/runtime-api.js +7 -8
  90. package/dist/runtime-setter-api.js +1 -1
  91. package/dist/secret-contract-api.js +1 -1
  92. package/dist/session-binding-contract-api.js +2 -2
  93. package/dist/setup-entry.js +4 -5
  94. package/dist/setup-plugin-api.js +1 -1
  95. package/dist/subagent-hooks-api.js +2 -3
  96. package/dist/thread-binding-api.js +1 -1
  97. package/dist/thread-bindings-runtime.js +1 -1
  98. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +45 -1
  99. package/node_modules/@openclaw/fs-safe/README.md +4 -0
  100. package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +2 -2
  101. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +2 -2
  102. package/node_modules/@openclaw/fs-safe/dist/advanced.js +2 -2
  103. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  104. package/node_modules/@openclaw/fs-safe/dist/atomic-io.d.ts +1 -0
  105. package/node_modules/@openclaw/fs-safe/dist/atomic-io.js +6 -0
  106. package/node_modules/@openclaw/fs-safe/dist/atomic.d.ts +1 -0
  107. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.d.ts +5 -0
  108. package/node_modules/@openclaw/fs-safe/dist/directory-mode-node.js +13 -0
  109. package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.d.ts +3 -0
  110. package/node_modules/@openclaw/fs-safe/dist/directory-mode-options.js +6 -0
  111. package/node_modules/@openclaw/fs-safe/dist/errors.d.ts +1 -1
  112. package/node_modules/@openclaw/fs-safe/dist/errors.js +1 -0
  113. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.d.ts +0 -1
  114. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-admission.js +1 -11
  115. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-acquire.js +3 -3
  116. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +2 -3
  117. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.d.ts +3 -3
  118. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +30 -4
  119. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.d.ts +1 -1
  120. package/node_modules/@openclaw/fs-safe/dist/file-store-prune.js +7 -1
  121. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.d.ts +1 -1
  122. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-directory.js +30 -4
  123. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.d.ts +1 -1
  124. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +2 -0
  125. package/node_modules/@openclaw/fs-safe/dist/file-store.d.ts +2 -1
  126. package/node_modules/@openclaw/fs-safe/dist/file-store.js +5 -0
  127. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +2 -0
  128. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +9 -0
  129. package/node_modules/@openclaw/fs-safe/dist/json-store.d.ts +2 -1
  130. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +4 -1
  131. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +1 -1
  132. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.d.ts +1 -1
  133. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +19 -13
  134. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.d.ts +2 -0
  135. package/node_modules/@openclaw/fs-safe/dist/overwrite-file-handle.js +27 -5
  136. package/node_modules/@openclaw/fs-safe/dist/path-prefix.d.ts +1 -0
  137. package/node_modules/@openclaw/fs-safe/dist/path-prefix.js +84 -7
  138. package/node_modules/@openclaw/fs-safe/dist/pinned-write-input.js +0 -11
  139. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.d.ts +9 -0
  140. package/node_modules/@openclaw/fs-safe/dist/prepare-directory-mode.js +61 -0
  141. package/node_modules/@openclaw/fs-safe/dist/private-temp-workspace.js +2 -1
  142. package/node_modules/@openclaw/fs-safe/dist/realpath.d.ts +2 -0
  143. package/node_modules/@openclaw/fs-safe/dist/realpath.js +16 -0
  144. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +2 -1
  145. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +8 -6
  146. package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +2 -1
  147. package/node_modules/@openclaw/fs-safe/dist/replace-file.js +20 -13
  148. package/node_modules/@openclaw/fs-safe/dist/root-context.js +4 -1
  149. package/node_modules/@openclaw/fs-safe/dist/root-create-native.d.ts +1 -1
  150. package/node_modules/@openclaw/fs-safe/dist/root-create-native.js +18 -9
  151. package/node_modules/@openclaw/fs-safe/dist/root-errors.d.ts +2 -0
  152. package/node_modules/@openclaw/fs-safe/dist/root-errors.js +9 -0
  153. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +4 -1
  154. package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.d.ts +1 -1
  155. package/node_modules/@openclaw/fs-safe/dist/root-mkdir-native.js +35 -16
  156. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.d.ts +6 -2
  157. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +32 -20
  158. package/node_modules/@openclaw/fs-safe/dist/root-path.js +32 -26
  159. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +4 -1
  160. package/node_modules/@openclaw/fs-safe/dist/secret-file.d.ts +2 -1
  161. package/node_modules/@openclaw/fs-safe/dist/secret-file.js +2 -0
  162. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.d.ts +2 -1
  163. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +5 -4
  164. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.d.ts +3 -2
  165. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-policy.js +8 -9
  166. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-stale-admission.js +3 -1
  167. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-types.d.ts +2 -1
  168. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +2 -1
  169. package/node_modules/@openclaw/fs-safe/dist/types.d.ts +1 -0
  170. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +12 -3
  171. package/node_modules/@openclaw/fs-safe/dist/windows-security-helper.exe +0 -0
  172. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.d.ts +0 -1
  173. package/node_modules/@openclaw/fs-safe/dist/write-file-handle.js +10 -12
  174. package/node_modules/@openclaw/fs-safe/docs/advanced.md +3 -3
  175. package/node_modules/@openclaw/fs-safe/docs/atomic.md +16 -3
  176. package/node_modules/@openclaw/fs-safe/docs/compiler-qualification.md +1 -1
  177. package/node_modules/@openclaw/fs-safe/docs/contributing.md +27 -18
  178. package/node_modules/@openclaw/fs-safe/docs/errors.md +3 -1
  179. package/node_modules/@openclaw/fs-safe/docs/file-store.md +14 -2
  180. package/node_modules/@openclaw/fs-safe/docs/in-place-write.md +31 -0
  181. package/node_modules/@openclaw/fs-safe/docs/install.md +1 -1
  182. package/node_modules/@openclaw/fs-safe/docs/json-store.md +6 -1
  183. package/node_modules/@openclaw/fs-safe/docs/json.md +5 -1
  184. package/node_modules/@openclaw/fs-safe/docs/path-prefix.md +14 -4
  185. package/node_modules/@openclaw/fs-safe/docs/public-api.md +4 -2
  186. package/node_modules/@openclaw/fs-safe/docs/secret-file.md +5 -1
  187. package/node_modules/@openclaw/fs-safe/docs/sidecar-lock.md +4 -0
  188. package/node_modules/@openclaw/fs-safe/docs/temp.md +9 -1
  189. package/node_modules/@openclaw/fs-safe/docs/types.md +5 -1
  190. package/node_modules/@openclaw/fs-safe/package.json +12 -12
  191. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  192. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  193. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  194. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  195. package/node_modules/@openclaw/fs-safe-freebsd-arm64/fs-safe-native.node +0 -0
  196. package/node_modules/@openclaw/fs-safe-freebsd-arm64/package.json +1 -1
  197. package/node_modules/@openclaw/fs-safe-freebsd-x64/fs-safe-native.node +0 -0
  198. package/node_modules/@openclaw/fs-safe-freebsd-x64/package.json +1 -1
  199. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  200. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  201. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  202. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  203. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  204. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  205. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  206. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  207. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/fs-safe-native.node +0 -0
  208. package/node_modules/@openclaw/fs-safe-win32-arm64-msvc/package.json +1 -1
  209. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  210. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  211. package/node_modules/@tokenizer/inflate/README.md +57 -17
  212. package/node_modules/@tokenizer/inflate/lib/ZipHandler.d.ts +12 -1
  213. package/node_modules/@tokenizer/inflate/lib/ZipHandler.js +127 -57
  214. package/node_modules/@tokenizer/inflate/lib/ZipLimitError.d.ts +18 -4
  215. package/node_modules/@tokenizer/inflate/lib/ZipLimitError.js +1 -1
  216. package/node_modules/@tokenizer/inflate/lib/index.d.ts +1 -1
  217. package/node_modules/@tokenizer/inflate/node_modules/strtok3/LICENSE.txt +21 -0
  218. package/node_modules/@tokenizer/inflate/node_modules/strtok3/README.md +736 -0
  219. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/AbortSignal.d.ts +2 -0
  220. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/AbortSignal.js +7 -0
  221. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/AbstractTokenizer.d.ts +117 -0
  222. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/AbstractTokenizer.js +204 -0
  223. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BlobTokenizer.d.ts +29 -0
  224. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BlobTokenizer.js +57 -0
  225. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BufferSizeError.d.ts +19 -0
  226. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BufferSizeError.js +27 -0
  227. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BufferTokenizer.d.ts +29 -0
  228. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/BufferTokenizer.js +51 -0
  229. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/FileTokenizer.d.ts +47 -0
  230. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/FileTokenizer.js +83 -0
  231. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/NotRegularFileError.d.ts +5 -0
  232. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/NotRegularFileError.js +8 -0
  233. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/ReadStreamTokenizer.d.ts +34 -0
  234. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/ReadStreamTokenizer.js +140 -0
  235. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/TokenizerBoundaryError.d.ts +7 -0
  236. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/TokenizerBoundaryError.js +10 -0
  237. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/TokenizerView.d.ts +9 -0
  238. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/TokenizerView.js +184 -0
  239. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/core.d.ts +44 -0
  240. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/core.js +56 -0
  241. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/index.d.ts +17 -0
  242. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/index.js +46 -0
  243. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/isRandomAccessTokenizer.d.ts +6 -0
  244. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/isRandomAccessTokenizer.js +10 -0
  245. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/AbstractStreamReader.d.ts +54 -0
  246. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/AbstractStreamReader.js +73 -0
  247. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/Deferred.d.ts +6 -0
  248. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/Deferred.js +10 -0
  249. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/Errors.d.ts +10 -0
  250. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/Errors.js +16 -0
  251. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/StreamReader.d.ts +34 -0
  252. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/StreamReader.js +125 -0
  253. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamByobReader.d.ts +14 -0
  254. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamByobReader.js +29 -0
  255. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamDefaultReader.d.ts +19 -0
  256. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamDefaultReader.js +67 -0
  257. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +24 -0
  258. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamReader.js +13 -0
  259. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamReaderFactory.d.ts +5 -0
  260. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/WebStreamReaderFactory.js +19 -0
  261. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/index.d.ts +6 -0
  262. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/stream/index.js +5 -0
  263. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/types.d.ts +163 -0
  264. package/node_modules/@tokenizer/inflate/node_modules/strtok3/lib/types.js +1 -0
  265. package/node_modules/@tokenizer/inflate/node_modules/strtok3/package.json +97 -0
  266. package/node_modules/@tokenizer/inflate/package.json +5 -5
  267. package/node_modules/fake-indexeddb/README.md +7 -7
  268. package/node_modules/fake-indexeddb/build/cjs/lib/Index.js +47 -22
  269. package/node_modules/fake-indexeddb/build/cjs/lib/ObjectStore.js +4 -2
  270. package/node_modules/fake-indexeddb/build/cjs/lib/RecordStore.js +14 -9
  271. package/node_modules/fake-indexeddb/build/esm/lib/Index.js +47 -22
  272. package/node_modules/fake-indexeddb/build/esm/lib/ObjectStore.js +4 -2
  273. package/node_modules/fake-indexeddb/build/esm/lib/RecordStore.js +14 -9
  274. package/node_modules/fake-indexeddb/package.json +1 -1
  275. package/node_modules/file-type/node_modules/strtok3/README.md +154 -9
  276. package/node_modules/file-type/node_modules/strtok3/lib/AbstractTokenizer.d.ts +3 -0
  277. package/node_modules/file-type/node_modules/strtok3/lib/AbstractTokenizer.js +12 -4
  278. package/node_modules/file-type/node_modules/strtok3/lib/BlobTokenizer.js +1 -0
  279. package/node_modules/file-type/node_modules/strtok3/lib/BufferTokenizer.js +2 -1
  280. package/node_modules/file-type/node_modules/strtok3/lib/FileTokenizer.d.ts +1 -1
  281. package/node_modules/file-type/node_modules/strtok3/lib/FileTokenizer.js +3 -3
  282. package/node_modules/file-type/node_modules/strtok3/lib/ReadStreamTokenizer.js +17 -2
  283. package/node_modules/file-type/node_modules/strtok3/lib/TokenizerBoundaryError.d.ts +7 -0
  284. package/node_modules/file-type/node_modules/strtok3/lib/TokenizerBoundaryError.js +10 -0
  285. package/node_modules/file-type/node_modules/strtok3/lib/TokenizerView.d.ts +9 -0
  286. package/node_modules/file-type/node_modules/strtok3/lib/TokenizerView.js +184 -0
  287. package/node_modules/file-type/node_modules/strtok3/lib/core.d.ts +4 -1
  288. package/node_modules/file-type/node_modules/strtok3/lib/core.js +5 -18
  289. package/node_modules/file-type/node_modules/strtok3/lib/index.js +28 -5
  290. package/node_modules/file-type/node_modules/strtok3/lib/isRandomAccessTokenizer.d.ts +6 -0
  291. package/node_modules/file-type/node_modules/strtok3/lib/isRandomAccessTokenizer.js +10 -0
  292. package/node_modules/file-type/node_modules/strtok3/lib/stream/StreamReader.d.ts +4 -0
  293. package/node_modules/file-type/node_modules/strtok3/lib/stream/StreamReader.js +29 -8
  294. package/node_modules/file-type/node_modules/strtok3/lib/stream/WebStreamReader.d.ts +12 -2
  295. package/node_modules/file-type/node_modules/strtok3/lib/types.d.ts +19 -2
  296. package/node_modules/file-type/node_modules/strtok3/package.json +10 -8
  297. package/node_modules/file-type/package.json +3 -3
  298. package/node_modules/file-type/source/detectors/ebml.js +31 -16
  299. package/node_modules/file-type/source/detectors/zip.js +21 -203
  300. package/node_modules/matrix-js-sdk/CHANGELOG.md +28 -0
  301. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts +30 -25
  302. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.d.ts.map +1 -1
  303. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js +91 -100
  304. package/node_modules/matrix-js-sdk/lib/matrixrtc/CallMembership.js.map +1 -1
  305. package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts +6 -4
  306. package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.d.ts.map +1 -1
  307. package/node_modules/matrix-js-sdk/lib/matrixrtc/EncryptionManager.js.map +1 -1
  308. package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts +2 -15
  309. package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.d.ts.map +1 -1
  310. package/node_modules/matrix-js-sdk/lib/matrixrtc/IMembershipManager.js.map +1 -1
  311. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts +36 -7
  312. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.d.ts.map +1 -1
  313. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js +29 -2
  314. package/node_modules/matrix-js-sdk/lib/matrixrtc/LivekitTransport.js.map +1 -1
  315. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts +12 -51
  316. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.d.ts.map +1 -1
  317. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js +10 -66
  318. package/node_modules/matrix-js-sdk/lib/matrixrtc/MatrixRTCSession.js.map +1 -1
  319. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts +5 -10
  320. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.d.ts.map +1 -1
  321. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js +25 -44
  322. package/node_modules/matrix-js-sdk/lib/matrixrtc/MembershipManager.js.map +1 -1
  323. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts +8 -8
  324. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.d.ts.map +1 -1
  325. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js +30 -22
  326. package/node_modules/matrix-js-sdk/lib/matrixrtc/RTCEncryptionManager.js.map +1 -1
  327. package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.js +7 -8
  328. package/node_modules/matrix-js-sdk/lib/matrixrtc/ToDeviceKeyTransport.js.map +1 -1
  329. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts +8 -13
  330. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.d.ts.map +1 -1
  331. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js +2 -11
  332. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/rtc.js.map +1 -1
  333. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.d.ts +6 -2
  334. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.d.ts.map +1 -1
  335. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.js +3 -0
  336. package/node_modules/matrix-js-sdk/lib/matrixrtc/membershipData/session.js.map +1 -1
  337. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts +5 -0
  338. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.d.ts.map +1 -1
  339. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js +5 -0
  340. package/node_modules/matrix-js-sdk/lib/matrixrtc/types.js.map +1 -1
  341. package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.d.ts +9 -2
  342. package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.d.ts.map +1 -1
  343. package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js +8 -5
  344. package/node_modules/matrix-js-sdk/lib/models/event-timeline-set.js.map +1 -1
  345. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts +17 -2
  346. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.d.ts.map +1 -1
  347. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.js +88 -47
  348. package/node_modules/matrix-js-sdk/lib/models/room-sticky-events.js.map +1 -1
  349. package/node_modules/matrix-js-sdk/lib/models/room.d.ts +1 -1
  350. package/node_modules/matrix-js-sdk/lib/models/room.d.ts.map +1 -1
  351. package/node_modules/matrix-js-sdk/lib/models/room.js +8 -2
  352. package/node_modules/matrix-js-sdk/lib/models/room.js.map +1 -1
  353. package/node_modules/matrix-js-sdk/lib/models/thread.d.ts.map +1 -1
  354. package/node_modules/matrix-js-sdk/lib/models/thread.js +23 -2
  355. package/node_modules/matrix-js-sdk/lib/models/thread.js.map +1 -1
  356. package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts +3 -3
  357. package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.d.ts.map +1 -1
  358. package/node_modules/matrix-js-sdk/lib/rendezvous/MSC4108SignInWithQR.js.map +1 -1
  359. package/node_modules/matrix-js-sdk/lib/rendezvous/SignInWithQRFlow.d.ts +95 -0
  360. package/node_modules/matrix-js-sdk/lib/rendezvous/SignInWithQRFlow.d.ts.map +1 -0
  361. package/node_modules/matrix-js-sdk/lib/rendezvous/SignInWithQRFlow.js +3 -0
  362. package/node_modules/matrix-js-sdk/lib/rendezvous/SignInWithQRFlow.js.map +1 -0
  363. package/node_modules/matrix-js-sdk/lib/rendezvous/index.d.ts +1 -0
  364. package/node_modules/matrix-js-sdk/lib/rendezvous/index.d.ts.map +1 -1
  365. package/node_modules/matrix-js-sdk/lib/rendezvous/index.js.map +1 -1
  366. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js +5 -1
  367. package/node_modules/matrix-js-sdk/lib/rust-crypto/index.js.map +1 -1
  368. package/node_modules/matrix-js-sdk/package.json +3 -3
  369. package/node_modules/matrix-js-sdk/src/matrixrtc/CallMembership.ts +85 -95
  370. package/node_modules/matrix-js-sdk/src/matrixrtc/EncryptionManager.ts +6 -4
  371. package/node_modules/matrix-js-sdk/src/matrixrtc/IMembershipManager.ts +2 -15
  372. package/node_modules/matrix-js-sdk/src/matrixrtc/LivekitTransport.ts +58 -9
  373. package/node_modules/matrix-js-sdk/src/matrixrtc/MatrixRTCSession.ts +21 -80
  374. package/node_modules/matrix-js-sdk/src/matrixrtc/MembershipManager.ts +23 -40
  375. package/node_modules/matrix-js-sdk/src/matrixrtc/RTCEncryptionManager.ts +51 -39
  376. package/node_modules/matrix-js-sdk/src/matrixrtc/ToDeviceKeyTransport.ts +7 -7
  377. package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/rtc.ts +9 -23
  378. package/node_modules/matrix-js-sdk/src/matrixrtc/membershipData/session.ts +14 -2
  379. package/node_modules/matrix-js-sdk/src/matrixrtc/types.ts +6 -0
  380. package/node_modules/matrix-js-sdk/src/models/event-timeline-set.ts +19 -4
  381. package/node_modules/matrix-js-sdk/src/models/room-sticky-events.ts +92 -58
  382. package/node_modules/matrix-js-sdk/src/models/room.ts +8 -2
  383. package/node_modules/matrix-js-sdk/src/models/thread.ts +25 -3
  384. package/node_modules/matrix-js-sdk/src/rendezvous/MSC4108SignInWithQR.ts +3 -3
  385. package/node_modules/matrix-js-sdk/src/rendezvous/SignInWithQRFlow.ts +117 -0
  386. package/node_modules/matrix-js-sdk/src/rendezvous/index.ts +1 -0
  387. package/node_modules/matrix-js-sdk/src/rust-crypto/index.ts +5 -1
  388. package/node_modules/music-metadata/README.md +62 -67
  389. package/node_modules/music-metadata/lib/ParserFactory.js +3 -1
  390. package/node_modules/music-metadata/lib/aiff/AiffParser.d.ts +2 -0
  391. package/node_modules/music-metadata/lib/aiff/AiffParser.js +42 -3
  392. package/node_modules/music-metadata/lib/aiff/AiffToken.d.ts +1 -0
  393. package/node_modules/music-metadata/lib/aiff/AiffToken.js +1 -0
  394. package/node_modules/music-metadata/lib/apev2/APEv2Parser.js +11 -1
  395. package/node_modules/music-metadata/lib/asf/AsfObject.d.ts +2 -2
  396. package/node_modules/music-metadata/lib/asf/AsfObject.js +81 -111
  397. package/node_modules/music-metadata/lib/asf/AsfParser.js +5 -3
  398. package/node_modules/music-metadata/lib/asf/AsfTagMapper.js +27 -3
  399. package/node_modules/music-metadata/lib/asf/AsfUtil.d.ts +1 -1
  400. package/node_modules/music-metadata/lib/caf/CafParser.js +13 -2
  401. package/node_modules/music-metadata/lib/caf/CafToken.d.ts +2 -2
  402. package/node_modules/music-metadata/lib/caf/CafToken.js +9 -2
  403. package/node_modules/music-metadata/lib/common/Allocation.d.ts +6 -0
  404. package/node_modules/music-metadata/lib/common/Allocation.js +18 -0
  405. package/node_modules/music-metadata/lib/common/GenericTagMapper.js +1 -1
  406. package/node_modules/music-metadata/lib/common/MetadataCollector.d.ts +2 -0
  407. package/node_modules/music-metadata/lib/common/MetadataCollector.js +21 -4
  408. package/node_modules/music-metadata/lib/common/Util.d.ts +4 -0
  409. package/node_modules/music-metadata/lib/common/Util.js +34 -1
  410. package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.d.ts +4 -1
  411. package/node_modules/music-metadata/lib/dsdiff/DsdiffParser.js +32 -36
  412. package/node_modules/music-metadata/lib/ebml/EbmlIterator.js +6 -2
  413. package/node_modules/music-metadata/lib/flac/FlacParser.js +2 -1
  414. package/node_modules/music-metadata/lib/id3v2/FrameParser.d.ts +7 -3
  415. package/node_modules/music-metadata/lib/id3v2/FrameParser.js +91 -46
  416. package/node_modules/music-metadata/lib/id3v2/ID3v22TagMapper.js +6 -0
  417. package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.d.ts +5 -0
  418. package/node_modules/music-metadata/lib/id3v2/ID3v24TagMapper.js +6 -4
  419. package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.d.ts +2 -1
  420. package/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js +57 -15
  421. package/node_modules/music-metadata/lib/lrc/LyricsParser.d.ts +18 -2
  422. package/node_modules/music-metadata/lib/lrc/LyricsParser.js +14 -3
  423. package/node_modules/music-metadata/lib/mp4/Atom.d.ts +3 -3
  424. package/node_modules/music-metadata/lib/mp4/Atom.js +14 -7
  425. package/node_modules/music-metadata/lib/mp4/AtomToken.d.ts +25 -25
  426. package/node_modules/music-metadata/lib/mp4/AtomToken.js +136 -119
  427. package/node_modules/music-metadata/lib/mp4/MP4Parser.d.ts +16 -2
  428. package/node_modules/music-metadata/lib/mp4/MP4Parser.js +370 -132
  429. package/node_modules/music-metadata/lib/mp4/MP4TagMapper.js +30 -0
  430. package/node_modules/music-metadata/lib/musepack/sv8/StreamVersion8.js +19 -8
  431. package/node_modules/music-metadata/lib/ogg/OggParser.js +6 -2
  432. package/node_modules/music-metadata/lib/ogg/OggToken.d.ts +2 -2
  433. package/node_modules/music-metadata/lib/ogg/OggToken.js +3 -9
  434. package/node_modules/music-metadata/lib/ogg/flac/FlacStream.d.ts +9 -11
  435. package/node_modules/music-metadata/lib/ogg/flac/FlacStream.js +111 -27
  436. package/node_modules/music-metadata/lib/ogg/speex/SpeexStream.js +6 -0
  437. package/node_modules/music-metadata/lib/ogg/theora/TheoraStream.js +6 -0
  438. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.d.ts +2 -2
  439. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisDecoder.js +8 -4
  440. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.d.ts +1 -0
  441. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisStream.js +23 -3
  442. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.d.ts +4 -0
  443. package/node_modules/music-metadata/lib/ogg/vorbis/VorbisTagMapper.js +15 -2
  444. package/node_modules/music-metadata/lib/riff/RiffInfoTagMap.js +1 -0
  445. package/node_modules/music-metadata/lib/type.d.ts +23 -6
  446. package/node_modules/music-metadata/lib/wav/BwfChunk.d.ts +12 -2
  447. package/node_modules/music-metadata/lib/wav/BwfChunk.js +39 -11
  448. package/node_modules/music-metadata/lib/wav/WaveParser.js +13 -2
  449. package/node_modules/music-metadata/package.json +2 -1
  450. package/node_modules/typebox/build/format/date_time.d.mts +2 -1
  451. package/node_modules/typebox/build/format/date_time.mjs +12 -3
  452. package/node_modules/typebox/package.json +1 -1
  453. package/package.json +9 -9
  454. package/dist/.setup/setup-plugin-api-Cg4TelGZ.mjs +0 -2
  455. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/auto.js +0 -54
  456. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/binarySearchTree.js +0 -413
  457. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/fakeIndexedDB.js +0 -1018
  458. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/forceCloseDatabase.js +0 -99
  459. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/getAll.js +0 -707
  460. package/node_modules/fake-indexeddb/build/cjs/test/fakeIndexedDB/memoryLeaks.js +0 -42
  461. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/auto.js +0 -52
  462. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/binarySearchTree.js +0 -409
  463. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/fakeIndexedDB.js +0 -1014
  464. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/forceCloseDatabase.js +0 -95
  465. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/getAll.js +0 -703
  466. package/node_modules/fake-indexeddb/build/esm/test/fakeIndexedDB/memoryLeaks.js +0 -38
@@ -1,5 +1,5 @@
1
1
  import * as Token from 'token-types';
2
- import { readToken } from '../common/Allocation.js';
2
+ import { getMaxChapterCount, getMaxMetadataEntries, readToken } from '../common/Allocation.js';
3
3
  import { getFrameHeaderLength, readFrameHeader } from './FrameHeader.js';
4
4
  import { FrameParser, Id3v2ContentError } from './FrameParser.js';
5
5
  import { ExtendedHeader, ID3v2Header } from './ID3v2Token.js';
@@ -19,8 +19,8 @@ export class ID3v2Parser {
19
19
  }
20
20
  return buffer.subarray(0, writeI);
21
21
  }
22
- static readFrameData(uint8Array, frameHeader, majorVer, includeCovers, warningCollector) {
23
- const frameParser = new FrameParser(majorVer, warningCollector);
22
+ static readFrameData(uint8Array, frameHeader, majorVer, includeCovers, warningCollector, maxEntries) {
23
+ const frameParser = new FrameParser(majorVer, warningCollector, maxEntries);
24
24
  switch (majorVer) {
25
25
  case 2:
26
26
  return frameParser.readData(uint8Array, frameHeader.id, includeCovers);
@@ -70,7 +70,7 @@ export class ID3v2Parser {
70
70
  this.headerType = `ID3v2.${id3Header.version.major}`;
71
71
  await (id3Header.flags.isExtendedHeader ? this.parseExtendedHeader() : this.parseId3Data(id3Header.size));
72
72
  // Post process
73
- const chapters = ID3v2Parser.mapId3v2Chapters(this.metadata.native[this.headerType]);
73
+ const chapters = this.mapId3v2Chapters(this.metadata.native[this.headerType]);
74
74
  this.metadata.setFormat('chapters', chapters);
75
75
  }
76
76
  async parseExtendedHeader() {
@@ -86,7 +86,8 @@ export class ID3v2Parser {
86
86
  }
87
87
  async parseId3Data(dataLen) {
88
88
  const uint8Array = await readToken(this.tokenizer, new Token.Uint8ArrayType(dataLen), this.options, undefined, message => new Id3v2ContentError(message));
89
- for (const tag of this.parseMetadata(uint8Array)) {
89
+ const tags = this.parseMetadata(uint8Array);
90
+ for (const tag of tags) {
90
91
  switch (tag.id) {
91
92
  case 'TXXX':
92
93
  if (tag.value) {
@@ -99,6 +100,42 @@ export class ID3v2Parser {
99
100
  : this.addTag(tag.id, tag.value));
100
101
  }
101
102
  }
103
+ if (this.id3Header.version.major === 3) {
104
+ await this.mapRecordingDate(tags);
105
+ }
106
+ }
107
+ async mapRecordingDate(tags) {
108
+ const text = (id) => tags.findLast(tag => tag.id === id && tag.value.at(-1))?.value?.at(-1);
109
+ // Explicit timestamps take priority over the legacy components, regardless of frame order.
110
+ const discogs = tags.findLast(tag => tag.id === 'TXXX' &&
111
+ tag.value.description.toUpperCase() === 'DISCOGS_RELEASED' &&
112
+ tag.value.text.at(-1));
113
+ const explicit = text('TDRC') ?? text('TDRV') ?? discogs?.value?.text.at(-1);
114
+ if (explicit) {
115
+ await this.metadata.postMap(this.headerType, { id: 'date', value: explicit });
116
+ return;
117
+ }
118
+ const year = text('TYER');
119
+ if (!year || !/^\d{4}$/.test(year)) {
120
+ return;
121
+ }
122
+ let date = year;
123
+ const dayMonth = text('TDAT');
124
+ if (dayMonth && /^\d{4}$/.test(dayMonth)) {
125
+ const day = Number(dayMonth.slice(0, 2));
126
+ const month = Number(dayMonth.slice(2));
127
+ const y = Number(year);
128
+ const leapYear = y % 4 === 0 && (y % 100 !== 0 || y % 400 === 0);
129
+ const daysInMonth = [31, leapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
130
+ if (day >= 1 && day <= daysInMonth[month - 1]) {
131
+ date += `-${dayMonth.slice(2)}-${dayMonth.slice(0, 2)}`;
132
+ const time = text('TIME');
133
+ if (time && /^([01]\d|2[0-3])[0-5]\d$/.test(time)) {
134
+ date += `T${time.slice(0, 2)}:${time.slice(2)}`;
135
+ }
136
+ }
137
+ }
138
+ await this.metadata.postMap(this.headerType, { id: 'date', value: date });
102
139
  }
103
140
  async handleTag(tag, values, descriptor, resolveValue = value => value) {
104
141
  await Promise.all(values.map(value => this.addTag(ID3v2Parser.makeDescriptionTagName(tag.id, descriptor(value)), resolveValue(value))));
@@ -108,6 +145,7 @@ export class ID3v2Parser {
108
145
  }
109
146
  parseMetadata(data) {
110
147
  let offset = 0;
148
+ let frameCount = 0;
111
149
  const tags = [];
112
150
  while (true) {
113
151
  if (offset === data.length) {
@@ -129,9 +167,12 @@ export class ID3v2Parser {
129
167
  const frameHeaderBytes = data.subarray(offset, offset + frameHeaderLength);
130
168
  offset += frameHeaderLength;
131
169
  const frameHeader = readFrameHeader(frameHeaderBytes, this.id3Header.version.major, this.metadata);
170
+ if (++frameCount > getMaxMetadataEntries(this.options)) {
171
+ throw new Id3v2ContentError('Frame count exceeds entry limit');
172
+ }
132
173
  const frameDataBytes = data.subarray(offset, offset + frameHeader.length);
133
174
  offset += frameHeader.length;
134
- const values = ID3v2Parser.readFrameData(frameDataBytes, frameHeader, this.id3Header.version.major, !this.options.skipCovers, this.metadata);
175
+ const values = ID3v2Parser.readFrameData(frameDataBytes, frameHeader, this.id3Header.version.major, !this.options.skipCovers, this.metadata, getMaxMetadataEntries(this.options));
135
176
  if (values) {
136
177
  tags.push({ id: frameHeader.id, value: values });
137
178
  }
@@ -144,7 +185,7 @@ export class ID3v2Parser {
144
185
  * This function expects the `native` tags already to contain parsed `CHAP` and `CTOC` frame values,
145
186
  * as produced by `FrameParser.readData`.
146
187
  */
147
- static mapId3v2Chapters(id3Tags) {
188
+ mapId3v2Chapters(id3Tags) {
148
189
  if (!id3Tags) {
149
190
  return;
150
191
  }
@@ -160,16 +201,21 @@ export class ID3v2Parser {
160
201
  }
161
202
  const orderedIds = topLevelToc?.childElementIds;
162
203
  const chapters = [];
163
- const source = orderedIds ?? [...chapterById.keys()];
204
+ const maxChapterCount = getMaxChapterCount(this.options);
205
+ // Without a CTOC, return the earliest chapters even if CHAP frames arrive out of order.
206
+ const source = orderedIds ??
207
+ [...chapterById.keys()].sort((left, right) => (chapterById.get(left)?.info.startTime ?? 0) - (chapterById.get(right)?.info.startTime ?? 0));
164
208
  for (const id of source) {
165
209
  const chap = chapterById.get(id);
166
210
  if (!chap) {
167
211
  continue;
168
212
  }
169
213
  const frames = chap.frames;
170
- const title = frames.get('TIT2');
171
- if (!title) {
172
- continue; // title is required
214
+ // TIT2 is recommended, not required; keep untitled chapters navigable.
215
+ const title = frames.get('TIT2') ?? '';
216
+ if (chapters.length >= maxChapterCount) {
217
+ this.metadata.addWarning(`Chapter count exceeds the ${maxChapterCount} chapter limit`);
218
+ break;
173
219
  }
174
220
  chapters.push({
175
221
  id,
@@ -180,10 +226,6 @@ export class ID3v2Parser {
180
226
  image: frames.get('APIC')
181
227
  });
182
228
  }
183
- // If no ordered CTOC, sort by time
184
- if (!orderedIds) {
185
- chapters.sort((a, b) => a.start - b.start);
186
- }
187
229
  return chapters.length ? chapters : undefined;
188
230
  }
189
231
  }
@@ -1,9 +1,25 @@
1
1
  import { type ILyricsTag } from '../type.js';
2
- export declare function parseLyrics(input: string): ILyricsTag;
2
+ declare const LyricsContentError_base: {
3
+ new (message: string): {
4
+ message: string;
5
+ stack?: string;
6
+ cause?: unknown;
7
+ name: "UnexpectedFileContentError";
8
+ readonly fileType: string;
9
+ toString(): string;
10
+ };
11
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
12
+ prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
13
+ stackTraceLimit: number;
14
+ };
15
+ export declare class LyricsContentError extends LyricsContentError_base {
16
+ }
17
+ export declare function parseLyrics(input: string, maxLines?: number): ILyricsTag;
3
18
  export declare function toUnsyncedLyrics(lyrics: string): ILyricsTag;
4
19
  /**
5
20
  * Parse LRC (Lyrics) formatted text
6
21
  * Ref: https://en.wikipedia.org/wiki/LRC_(file_format)
7
22
  * @param lrcString
8
23
  */
9
- export declare function parseLrc(lrcString: string): ILyricsTag;
24
+ export declare function parseLrc(lrcString: string, maxLines?: number): ILyricsTag;
25
+ export {};
@@ -1,9 +1,13 @@
1
+ import { defaultMaxMetadataEntries } from '../common/Allocation.js';
2
+ import { makeUnexpectedFileContentError } from '../ParseError.js';
1
3
  import { LyricsContentType, TimestampFormat } from '../type.js';
2
4
  // Shared timestamp regex for LRC format
3
5
  const TIMESTAMP_REGEX = /\[(\d{2}):(\d{2})\.(\d{2,3})]/;
4
- export function parseLyrics(input) {
6
+ export class LyricsContentError extends makeUnexpectedFileContentError('lyrics') {
7
+ }
8
+ export function parseLyrics(input, maxLines = defaultMaxMetadataEntries) {
5
9
  if (TIMESTAMP_REGEX.test(input)) {
6
- return parseLrc(input);
10
+ return parseLrc(input, maxLines);
7
11
  }
8
12
  return toUnsyncedLyrics(input);
9
13
  }
@@ -20,7 +24,14 @@ export function toUnsyncedLyrics(lyrics) {
20
24
  * Ref: https://en.wikipedia.org/wiki/LRC_(file_format)
21
25
  * @param lrcString
22
26
  */
23
- export function parseLrc(lrcString) {
27
+ export function parseLrc(lrcString, maxLines = defaultMaxMetadataEntries) {
28
+ let lineCount = 1;
29
+ for (let offset = lrcString.indexOf('\n'); offset >= 0; offset = lrcString.indexOf('\n', offset + 1)) {
30
+ ++lineCount;
31
+ }
32
+ if (lineCount > maxLines) {
33
+ throw new LyricsContentError(`Line count ${lineCount} exceeds entry limit ${maxLines}`);
34
+ }
24
35
  const lines = lrcString.split('\n');
25
36
  const syncText = [];
26
37
  for (const line of lines) {
@@ -3,13 +3,13 @@ import * as AtomToken from './AtomToken.js';
3
3
  export type AtomDataHandler = (atom: Atom, remaining: number) => Promise<void>;
4
4
  export declare class Atom {
5
5
  private readonly payloadLength;
6
- static readAtom(tokenizer: ITokenizer, dataHandler: AtomDataHandler, parent: Atom | null, remaining: number): Promise<Atom>;
7
- readonly children: Atom[];
6
+ private readonly reserveAtom;
7
+ static readAtom(tokenizer: ITokenizer, dataHandler: AtomDataHandler, parent: Atom | null, remaining: number, reserveAtom?: () => void): Promise<Atom>;
8
8
  readonly atomPath: string;
9
9
  readonly header: AtomToken.IAtomHeader;
10
10
  extended: boolean;
11
11
  readonly parent: Atom | null;
12
- constructor(header: AtomToken.IAtomHeader, extended: boolean, parent: Atom | null, payloadLength: number);
12
+ constructor(header: AtomToken.IAtomHeader, extended: boolean, parent: Atom | null, payloadLength: number, reserveAtom?: () => void);
13
13
  getHeaderLength(): number;
14
14
  getPayloadLength(): number;
15
15
  readAtoms(tokenizer: ITokenizer, dataHandler: AtomDataHandler, size: number): Promise<void>;
@@ -2,9 +2,17 @@ import initDebug from 'debug';
2
2
  import * as AtomToken from './AtomToken.js';
3
3
  import { Header, Mp4ContentError } from './AtomToken.js';
4
4
  const debug = initDebug('music-metadata:parser:MP4:Atom');
5
+ const maxAtomDepth = 64;
5
6
  export class Atom {
6
7
  payloadLength;
7
- static async readAtom(tokenizer, dataHandler, parent, remaining) {
8
+ reserveAtom;
9
+ static async readAtom(tokenizer, dataHandler, parent, remaining, reserveAtom = () => undefined) {
10
+ let depth = 0;
11
+ for (let ancestor = parent; ancestor; ancestor = ancestor.parent) {
12
+ if (++depth >= maxAtomDepth) {
13
+ throw new Mp4ContentError(`MP4 atom nesting exceeds limit ${maxAtomDepth}`);
14
+ }
15
+ }
8
16
  // Validate boundaries before reading either header or dispatching a payload parser.
9
17
  const offset = tokenizer.position;
10
18
  remaining = Math.min(remaining, (tokenizer.fileInfo.size ?? Number.POSITIVE_INFINITY) - offset);
@@ -32,22 +40,22 @@ export class Atom {
32
40
  throw new Mp4ContentError(`Atom size exceeds remaining bytes: ${header.length} > ${remaining}`);
33
41
  }
34
42
  const payloadLength = length - headerLength;
35
- const atomBean = new Atom(header, extended, parent, payloadLength);
43
+ reserveAtom();
44
+ const atomBean = new Atom(header, extended, parent, payloadLength, reserveAtom);
36
45
  debug(`parse atom name=${atomBean.atomPath}, extended=${atomBean.extended}, offset=${offset}, len=${atomBean.header.length}`); // buf.toString('ascii')
37
46
  await atomBean.readData(tokenizer, dataHandler, payloadLength);
38
47
  return atomBean;
39
48
  }
40
- children;
41
49
  atomPath;
42
50
  header;
43
51
  extended;
44
52
  parent;
45
- constructor(header, extended, parent, payloadLength) {
53
+ constructor(header, extended, parent, payloadLength, reserveAtom = () => undefined) {
46
54
  this.payloadLength = payloadLength;
55
+ this.reserveAtom = reserveAtom;
47
56
  this.header = header;
48
57
  this.extended = extended;
49
58
  this.parent = parent;
50
- this.children = [];
51
59
  this.atomPath = (this.parent ? `${this.parent.atomPath}.` : '') + this.header.name;
52
60
  }
53
61
  getHeaderLength() {
@@ -68,8 +76,7 @@ export class Atom {
68
76
  throw new Mp4ContentError('Truncated atom header');
69
77
  }
70
78
  }
71
- const atomBean = await Atom.readAtom(tokenizer, dataHandler, this, size);
72
- this.children.push(atomBean);
79
+ const atomBean = await Atom.readAtom(tokenizer, dataHandler, this, size, this.reserveAtom);
73
80
  size = atomBean.header.length === 0n ? 0 : size - Number(atomBean.header.length);
74
81
  }
75
82
  }
@@ -198,14 +198,8 @@ export interface IDataAtom {
198
198
  */
199
199
  value: Uint8Array;
200
200
  }
201
- /**
202
- * Data Atom Structure
203
- */
204
- export declare class DataAtom implements IGetToken<IDataAtom> {
205
- len: number;
206
- constructor(len: number);
207
- get(buf: Uint8Array, off: number): IDataAtom;
208
- }
201
+ /** Fixed type/locale header, shared by buffered and skipped values. */
202
+ export declare const DataAtomHeader: IGetToken<Omit<IDataAtom, 'value'>>;
209
203
  /**
210
204
  * Data Atom Structure ('data')
211
205
  * Ref: https://developer.apple.com/library/content/documentation/QuickTime/QTFF/Metadata/Metadata.html#//apple_ref/doc/uid/TP40000939-CH1-SW32
@@ -303,8 +297,9 @@ export interface IAtomStsd {
303
297
  * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25691
304
298
  */
305
299
  export declare class StsdAtom implements IGetToken<IAtomStsd> {
300
+ private readonly maxEntries;
306
301
  len: number;
307
- constructor(len: number);
302
+ constructor(len: number, maxEntries?: number);
308
303
  get(buf: Uint8Array, off: number): IAtomStsd;
309
304
  }
310
305
  export interface ISoundSampleDescriptionVersion {
@@ -340,9 +335,10 @@ export interface ITableAtom<T> extends IVersionAndFlags {
340
335
  entries: T[];
341
336
  }
342
337
  declare class SimpleTableAtom<T> implements IGetToken<ITableAtom<T>> {
338
+ private readonly maxEntries;
343
339
  len: number;
344
340
  private token;
345
- constructor(len: number, token: IGetToken<T>);
341
+ constructor(len: number, token: IGetToken<T>, maxEntries?: number);
346
342
  get(buf: Uint8Array, off: number): ITableAtom<T>;
347
343
  }
348
344
  export interface ITimeToSampleToken {
@@ -356,7 +352,7 @@ export declare const TimeToSampleToken: IGetToken<ITimeToSampleToken>;
356
352
  * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25696
357
353
  */
358
354
  export declare class SttsAtom extends SimpleTableAtom<ITimeToSampleToken> {
359
- constructor(len: number);
355
+ constructor(len: number, maxEntries?: number);
360
356
  }
361
357
  /**
362
358
  * Sample-to-Chunk ('stsc') atom table entry interface
@@ -372,21 +368,23 @@ export declare const SampleToChunkToken: IGetToken<ISampleToChunk>;
372
368
  * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25706
373
369
  */
374
370
  export declare class StscAtom extends SimpleTableAtom<ISampleToChunk> {
375
- constructor(len: number);
371
+ constructor(len: number, maxEntries?: number);
376
372
  }
377
373
  /**
378
374
  * Sample-size ('stsz') atom interface
379
375
  */
380
376
  export interface IStszAtom extends ITableAtom<number> {
381
377
  sampleSize: number;
378
+ totalSize?: number;
382
379
  }
383
380
  /**
384
381
  * Sample-size ('stsz') atom
385
382
  * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25710
386
383
  */
387
384
  export declare class StszAtom implements IGetToken<IStszAtom> {
385
+ private readonly maxRetainedEntries;
388
386
  len: number;
389
- constructor(len: number);
387
+ constructor(len: number, maxRetainedEntries?: number);
390
388
  get(buf: Uint8Array, off: number): IStszAtom;
391
389
  }
392
390
  /**
@@ -394,11 +392,11 @@ export declare class StszAtom implements IGetToken<IStszAtom> {
394
392
  * Ref: https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFChap2/qtff2.html#//apple_ref/doc/uid/TP40000939-CH204-25715
395
393
  */
396
394
  export declare class StcoAtom extends SimpleTableAtom<number> {
397
- constructor(len: number);
395
+ constructor(len: number, maxEntries?: number);
398
396
  }
399
397
  /** 64-bit chunk offsets (co64), constrained to exact JavaScript positions. */
400
398
  export declare class Co64Atom extends SimpleTableAtom<number> {
401
- constructor(len: number);
399
+ constructor(len: number, maxEntries?: number);
402
400
  }
403
401
  /**
404
402
  * Token used to decode text-track from 'mdat' atom (raw data stream)
@@ -411,7 +409,9 @@ export declare class ChapterText implements IGetToken<string> {
411
409
  /** Nero chapter list (chpl): UTF-8 titles and start times in 100ns units. */
412
410
  export declare class ChapterListAtom implements IGetToken<IChapter[]> {
413
411
  len: number;
414
- constructor(len: number);
412
+ private readonly maxChapters;
413
+ private readonly onLimit?;
414
+ constructor(len: number, maxChapters?: number, onLimit?: (() => void) | undefined);
415
415
  get(buf: Uint8Array, off: number): IChapter[];
416
416
  }
417
417
  interface ITrackFragmentHeaderBoxFlags {
@@ -455,23 +455,22 @@ interface ITrackRunBoxFlags {
455
455
  export interface ITrackRunBox {
456
456
  version: number;
457
457
  flags: ITrackRunBoxFlags;
458
- samples: ITrackRunBoxSample[];
458
+ /** Totals of explicitly stored sample fields; defaults are resolved after the complete traf. */
459
+ duration: number;
460
+ size: number;
461
+ timingComplete: boolean;
462
+ explicitSampleCount: number;
459
463
  sampleCount: number;
460
464
  dataOffset?: number;
461
465
  firstSampleFlags?: number;
462
466
  }
463
- interface ITrackRunBoxSample {
464
- sampleDuration?: number;
465
- sampleSize?: number;
466
- sampleFlags?: number;
467
- sampleCompositionTimeOffset?: number;
468
- }
469
467
  /**
470
468
  * Sample-size ('trun') TrackRunBox
471
469
  */
472
470
  export declare class TrackRunBox implements IGetToken<ITrackRunBox> {
471
+ private readonly maxSampleCount;
473
472
  len: number;
474
- constructor(len: number);
473
+ constructor(len: number, maxSampleCount?: number);
475
474
  get(buf: Uint8Array, off: number): ITrackRunBox;
476
475
  }
477
476
  export interface IHandlerBox {
@@ -493,8 +492,9 @@ export declare class HandlerBox implements IGetToken<IHandlerBox> {
493
492
  * Chapter Track Reference Box (`chap`)
494
493
  */
495
494
  export declare class ChapterTrackReferenceBox implements IGetToken<number[]> {
495
+ private readonly maxEntries;
496
496
  len: number;
497
- constructor(len: number);
497
+ constructor(len: number, maxEntries?: number);
498
498
  get(buf: Uint8Array, off: number): number[];
499
499
  }
500
500
  export {};