@openclaw/matrix 2026.9.8 → 2026.10.1-beta.2

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 (278) hide show
  1. package/dist/.setup/{account-selection-B7axQ80R.mjs → account-selection-BDeeqwwR.mjs} +1 -1
  2. package/dist/.setup/{accounts-WkgrIxMt.mjs → accounts-C_r0UlEm.mjs} +2 -2
  3. package/dist/.setup/{approval-handler.runtime-C-pw3NvY.mjs → approval-handler.runtime-QkHLH2az.mjs} +14 -19
  4. package/dist/.setup/{approval-reactions-BrS5ECU0.mjs → approval-reactions-DhB6gNPU.mjs} +11 -25
  5. package/dist/.setup/{channel-DXenXmj0.mjs → channel-CeRXEAEP.mjs} +17 -46
  6. package/dist/.setup/{channel.runtime-BXUawOno.mjs → channel.runtime-DBQA2y1F.mjs} +6 -6
  7. package/dist/.setup/{channel.setup-DWfLaXqT.mjs → channel.setup-DC2t7_PK.mjs} +12 -26
  8. package/dist/.setup/{cli-IhZO2OEj.mjs → cli-Be8tdNw8.mjs} +24 -45
  9. package/dist/.setup/{cli-metadata-nowEgdY0.mjs → cli-metadata-CtcjBFhc.mjs} +1 -1
  10. package/dist/.setup/{client-BXATebyo.mjs → client-DY3HExqI.mjs} +3 -3
  11. package/dist/.setup/{client-bootstrap-BiHX55is.mjs → client-bootstrap-CZvJjr29.mjs} +1 -1
  12. package/dist/.setup/{client-Ccv77kwh.mjs → client-kmih04ng.mjs} +21 -40
  13. package/dist/.setup/{client-support-Bn9Bk0-H.mjs → client-support-D7BlioUb.mjs} +14 -23
  14. package/dist/.setup/{config-update-5m1Un5gJ.mjs → config-update-CZndPxNd.mjs} +29 -72
  15. package/dist/.setup/{create-client-DRZ580E3.mjs → create-client-CbJVyFDy.mjs} +5 -5
  16. package/dist/.setup/{credentials-C9qDO5-2.mjs → credentials-C2dvc_kB.mjs} +1 -1
  17. package/dist/.setup/{credentials-read-KD4o5biZ.mjs → credentials-read-CqRiEAQa.mjs} +1 -1
  18. package/dist/.setup/{crypto-runtime-DPjIDF8H.mjs → crypto-runtime-B2AjWo-i.mjs} +223 -79
  19. package/dist/.setup/{deps-CLQ4EOq7.mjs → deps-CFNl7tQo.mjs} +14 -39
  20. package/dist/.setup/{device-health-U-yoVjPw.mjs → device-health-Be60VF1w.mjs} +1 -1
  21. package/dist/.setup/{direct-management-Cn2t8n1V.mjs → direct-management-DJtQhLKH.mjs} +4 -8
  22. package/dist/.setup/{directory-live-_sw-Q7KO.mjs → directory-live-DW5UykLL.mjs} +3 -3
  23. package/dist/.setup/{doctor-contract-De6geW0h.mjs → doctor-contract-CsTNmbMa.mjs} +10 -133
  24. package/dist/.setup/{draft-stream-CdVMstpR.mjs → draft-stream-B87DfA6a.mjs} +4 -8
  25. package/dist/.setup/{encryption-guidance-B6797jNA.mjs → encryption-guidance-BEjKbiMR.mjs} +1 -1
  26. package/dist/.setup/{exec-approvals-fsiMQ1ce.mjs → exec-approvals-BLDAMyHs.mjs} +6 -19
  27. package/dist/.setup/{file-sync-store-B-9bMb_O.mjs → file-sync-store-Clc9iEdn.mjs} +3 -3
  28. package/dist/.setup/{http-client-C1XvVD3K.mjs → http-client-DfJY5Ck0.mjs} +8 -29
  29. package/dist/.setup/{inbound-dedupe-BGrMrTTu.mjs → inbound-dedupe-C-EBGY0B.mjs} +1 -1
  30. package/dist/.setup/{joined-room-encryption-TZoOKXgh.mjs → joined-room-encryption-BAD70N5n.mjs} +1 -1
  31. package/dist/.setup/logger-CXQnpXCt.mjs +44 -0
  32. package/dist/.setup/{logging-mhnFQGzB.mjs → logging-BKV8TYQq.mjs} +7 -32
  33. package/dist/.setup/{messages-Buz27pi5.mjs → messages-uCbwLRKS.mjs} +5 -8
  34. package/dist/.setup/{monitor-BBg5qgov.mjs → monitor-skIntQVG.mjs} +109 -180
  35. package/dist/.setup/{onboarding-hJaieQj5.mjs → onboarding-Cm_tOJxs.mjs} +12 -19
  36. package/dist/.setup/{outbound-C9vBijaH.mjs → outbound-CqQou3ny.mjs} +16 -22
  37. package/dist/.setup/{profile-B3DD2jYa.mjs → profile-DS0xdJAi.mjs} +11 -31
  38. package/dist/.setup/{profile-update-CmxIAd4c.mjs → profile-update-C1n8SRqH.mjs} +3 -3
  39. package/dist/.setup/{reaction-events-mnzc_JvP.mjs → reaction-events-Cqq46xsG.mjs} +5 -5
  40. package/dist/.setup/{resolve-targets-BFq3q4c9.mjs → resolve-targets-DFeU1Ww6.mjs} +2 -2
  41. package/dist/.setup/retired-state-BXUQ2I-C.mjs +91 -0
  42. package/dist/.setup/{room-info-BbTGRJcR.mjs → room-info-BPMbwe8I.mjs} +33 -50
  43. package/dist/.setup/{sdk-DmRVM0VA.mjs → sdk-CgQGkCsS.mjs} +226 -182
  44. package/dist/.setup/{send-GOF64QRc.mjs → send-B1Y2L4wj.mjs} +19 -68
  45. package/dist/.setup/{setup-bootstrap-AzalcuCW.mjs → setup-bootstrap-UNIGyKnk.mjs} +2 -2
  46. package/dist/.setup/{setup-core-BeifoeL4.mjs → setup-core-6DppLENo.mjs} +5 -5
  47. package/dist/.setup/{setup-plugin-api-Bsbdw41x.mjs → setup-plugin-api-BRs9bcp4.mjs} +1 -1
  48. package/dist/.setup/startup-verification-D00eUt74.mjs +122 -0
  49. package/dist/.setup/storage-D7agewjH.mjs +464 -0
  50. package/dist/.setup/{sync-cache-state-C6sEmvJK.mjs → sync-cache-state-C2z64uyk.mjs} +10 -24
  51. package/dist/.setup/{thread-bindings-jXu_9cHE.mjs → thread-bindings-DveHVZqN.mjs} +13 -71
  52. package/dist/.setup/{tool-actions-Ce7Okg6m.mjs → tool-actions-BqlK2ilM.mjs} +51 -73
  53. package/dist/.setup/{verification-C45rOZkM.mjs → verification-kMlFYUn0.mjs} +10 -27
  54. package/dist/api.js +5 -5
  55. package/dist/channel-plugin-api.js +1 -1
  56. package/dist/cli-metadata.js +1 -1
  57. package/dist/contract-api.js +2 -2
  58. package/dist/doctor-contract-api.js +48 -201
  59. package/dist/helper-api.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/plugin-entry.handlers.runtime.js +1 -1
  62. package/dist/runtime-api.js +3 -3
  63. package/dist/session-binding-contract-api.js +1 -1
  64. package/dist/setup-entry.js +1 -1
  65. package/dist/setup-plugin-api.js +1 -1
  66. package/node_modules/@openclaw/fs-safe/CHANGELOG.md +95 -0
  67. package/node_modules/@openclaw/fs-safe/README.md +70 -379
  68. package/node_modules/@openclaw/fs-safe/dist/absolute-path.js +35 -51
  69. package/node_modules/@openclaw/fs-safe/dist/advanced.d.ts +2 -0
  70. package/node_modules/@openclaw/fs-safe/dist/advanced.js +1 -0
  71. package/node_modules/@openclaw/fs-safe/dist/archive-input.js +2 -0
  72. package/node_modules/@openclaw/fs-safe/dist/archive-parser.wasm +0 -0
  73. package/node_modules/@openclaw/fs-safe/dist/archive-staging.d.ts +1 -1
  74. package/node_modules/@openclaw/fs-safe/dist/archive-staging.js +9 -10
  75. package/node_modules/@openclaw/fs-safe/dist/archive.js +2 -5
  76. package/node_modules/@openclaw/fs-safe/dist/atomic-io.d.ts +51 -0
  77. package/node_modules/@openclaw/fs-safe/dist/atomic-io.js +242 -0
  78. package/node_modules/@openclaw/fs-safe/dist/config.d.ts +1 -1
  79. package/node_modules/@openclaw/fs-safe/dist/config.js +1 -1
  80. package/node_modules/@openclaw/fs-safe/dist/copy-file-input.d.ts +1 -1
  81. package/node_modules/@openclaw/fs-safe/dist/copy-file-input.js +2 -2
  82. package/node_modules/@openclaw/fs-safe/dist/copy-tree-portable.js +2 -0
  83. package/node_modules/@openclaw/fs-safe/dist/create.js +12 -5
  84. package/node_modules/@openclaw/fs-safe/dist/directory-guard.d.ts +11 -0
  85. package/node_modules/@openclaw/fs-safe/dist/directory-guard.js +4 -7
  86. package/node_modules/@openclaw/fs-safe/dist/entry-publication-types.d.ts +55 -0
  87. package/node_modules/@openclaw/fs-safe/dist/entry-publication-types.js +1 -0
  88. package/node_modules/@openclaw/fs-safe/dist/entry-publication.d.ts +8 -0
  89. package/node_modules/@openclaw/fs-safe/dist/entry-publication.js +262 -0
  90. package/node_modules/@openclaw/fs-safe/dist/exclusive-create.d.ts +3 -0
  91. package/node_modules/@openclaw/fs-safe/dist/exclusive-create.js +22 -0
  92. package/node_modules/@openclaw/fs-safe/dist/file-cleanup.d.ts +1 -6
  93. package/node_modules/@openclaw/fs-safe/dist/file-cleanup.js +3 -6
  94. package/node_modules/@openclaw/fs-safe/dist/file-identity.js +3 -6
  95. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-io.js +2 -2
  96. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root-mutation.js +9 -0
  97. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-root.js +4 -6
  98. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync-stale-admission.js +1 -1
  99. package/node_modules/@openclaw/fs-safe/dist/file-lock-sync.js +8 -0
  100. package/node_modules/@openclaw/fs-safe/dist/file-store-boundary.js +2 -0
  101. package/node_modules/@openclaw/fs-safe/dist/file-store-sync-write.js +20 -18
  102. package/node_modules/@openclaw/fs-safe/dist/file-store.js +4 -10
  103. package/node_modules/@openclaw/fs-safe/dist/fs.d.ts +2 -10
  104. package/node_modules/@openclaw/fs-safe/dist/fs.js +2 -10
  105. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.d.ts +3 -4
  106. package/node_modules/@openclaw/fs-safe/dist/guarded-mkdir.js +6 -18
  107. package/node_modules/@openclaw/fs-safe/dist/guest-dispatch-python.js +1 -1
  108. package/node_modules/@openclaw/fs-safe/dist/guest-native-python.js +0 -2
  109. package/node_modules/@openclaw/fs-safe/dist/guest.js +3 -9
  110. package/node_modules/@openclaw/fs-safe/dist/index.d.ts +1 -1
  111. package/node_modules/@openclaw/fs-safe/dist/index.js +1 -1
  112. package/node_modules/@openclaw/fs-safe/dist/json-durable-queue-directory.js +1 -5
  113. package/node_modules/@openclaw/fs-safe/dist/json.js +19 -37
  114. package/node_modules/@openclaw/fs-safe/dist/move-path.js +2 -0
  115. package/node_modules/@openclaw/fs-safe/dist/mutation-authority.d.ts +1 -0
  116. package/node_modules/@openclaw/fs-safe/dist/mutation-authority.js +9 -1
  117. package/node_modules/@openclaw/fs-safe/dist/native-binding.d.ts +47 -2
  118. package/node_modules/@openclaw/fs-safe/dist/native-config.d.ts +1 -9
  119. package/node_modules/@openclaw/fs-safe/dist/native-config.js +6 -40
  120. package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.d.ts +2 -0
  121. package/node_modules/@openclaw/fs-safe/dist/native-parent-admission.js +5 -2
  122. package/node_modules/@openclaw/fs-safe/dist/native-pinned-write.js +11 -316
  123. package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.d.ts +7 -7
  124. package/node_modules/@openclaw/fs-safe/dist/native-policy-parent-windows.js +28 -175
  125. package/node_modules/@openclaw/fs-safe/dist/native-policy-parent.d.ts +15 -0
  126. package/node_modules/@openclaw/fs-safe/dist/native-policy-parent.js +418 -0
  127. package/node_modules/@openclaw/fs-safe/dist/native-rename-outcome.js +9 -4
  128. package/node_modules/@openclaw/fs-safe/dist/native-staged-file.js +17 -13
  129. package/node_modules/@openclaw/fs-safe/dist/native-staged-symlink.js +6 -24
  130. package/node_modules/@openclaw/fs-safe/dist/native.js +5 -1
  131. package/node_modules/@openclaw/fs-safe/dist/path-case.js +10 -9
  132. package/node_modules/@openclaw/fs-safe/dist/path-scope-lexical.js +4 -1
  133. package/node_modules/@openclaw/fs-safe/dist/path-segment-route.d.ts +1 -0
  134. package/node_modules/@openclaw/fs-safe/dist/path-segment-route.js +3 -0
  135. package/node_modules/@openclaw/fs-safe/dist/path.js +4 -1
  136. package/node_modules/@openclaw/fs-safe/dist/permissions-windows.d.ts +0 -1
  137. package/node_modules/@openclaw/fs-safe/dist/pinned-mutation-admission.js +1 -3
  138. package/node_modules/@openclaw/fs-safe/dist/pinned-write-staged.js +2 -0
  139. package/node_modules/@openclaw/fs-safe/dist/pinned-write.js +9 -10
  140. package/node_modules/@openclaw/fs-safe/dist/private-producer-handoff.js +3 -6
  141. package/node_modules/@openclaw/fs-safe/dist/publish-copy-stage.js +2 -2
  142. package/node_modules/@openclaw/fs-safe/dist/publish-file.js +4 -3
  143. package/node_modules/@openclaw/fs-safe/dist/replace-file-buffer.d.ts +3 -4
  144. package/node_modules/@openclaw/fs-safe/dist/replace-file-buffer.js +18 -32
  145. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.d.ts +5 -17
  146. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-fallback.js +92 -230
  147. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.d.ts +4 -15
  148. package/node_modules/@openclaw/fs-safe/dist/replace-file-copy-source.js +22 -63
  149. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.d.ts +9 -34
  150. package/node_modules/@openclaw/fs-safe/dist/replace-file-descriptor.js +78 -83
  151. package/node_modules/@openclaw/fs-safe/dist/replace-file-destination.d.ts +18 -20
  152. package/node_modules/@openclaw/fs-safe/dist/replace-file-destination.js +64 -98
  153. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.d.ts +16 -33
  154. package/node_modules/@openclaw/fs-safe/dist/replace-file-temp-owner.js +61 -200
  155. package/node_modules/@openclaw/fs-safe/dist/replace-file-types.d.ts +1 -6
  156. package/node_modules/@openclaw/fs-safe/dist/replace-file.js +76 -216
  157. package/node_modules/@openclaw/fs-safe/dist/root-boundary.js +14 -24
  158. package/node_modules/@openclaw/fs-safe/dist/root-context.d.ts +1 -4
  159. package/node_modules/@openclaw/fs-safe/dist/root-context.js +4 -19
  160. package/node_modules/@openclaw/fs-safe/dist/root-create-native.d.ts +52 -0
  161. package/node_modules/@openclaw/fs-safe/dist/root-create-native.js +350 -0
  162. package/node_modules/@openclaw/fs-safe/dist/root-directory-list-types.d.ts +35 -0
  163. package/node_modules/@openclaw/fs-safe/dist/root-directory-list-types.js +1 -0
  164. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.d.ts +2 -27
  165. package/node_modules/@openclaw/fs-safe/dist/root-directory-list.js +31 -28
  166. package/node_modules/@openclaw/fs-safe/dist/root-directory.js +1 -4
  167. package/node_modules/@openclaw/fs-safe/dist/root-errors.js +34 -0
  168. package/node_modules/@openclaw/fs-safe/dist/root-file.js +9 -21
  169. package/node_modules/@openclaw/fs-safe/dist/root-impl.js +105 -37
  170. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.d.ts +7 -2
  171. package/node_modules/@openclaw/fs-safe/dist/root-move-noreplace.js +67 -38
  172. package/node_modules/@openclaw/fs-safe/dist/root-observed-path.d.ts +1 -1
  173. package/node_modules/@openclaw/fs-safe/dist/root-observed-path.js +0 -2
  174. package/node_modules/@openclaw/fs-safe/dist/root-options.d.ts +2 -3
  175. package/node_modules/@openclaw/fs-safe/dist/root-path-existing.js +3 -1
  176. package/node_modules/@openclaw/fs-safe/dist/root-path-stat.js +68 -85
  177. package/node_modules/@openclaw/fs-safe/dist/root-path.js +6 -1
  178. package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.d.ts +4 -0
  179. package/node_modules/@openclaw/fs-safe/dist/root-paths-lexical.js +1 -1
  180. package/node_modules/@openclaw/fs-safe/dist/root-paths.js +4 -9
  181. package/node_modules/@openclaw/fs-safe/dist/root-remove-native.d.ts +4 -0
  182. package/node_modules/@openclaw/fs-safe/dist/root-remove-native.js +311 -0
  183. package/node_modules/@openclaw/fs-safe/dist/root-remove.d.ts +11 -0
  184. package/node_modules/@openclaw/fs-safe/dist/root-remove.js +3 -1
  185. package/node_modules/@openclaw/fs-safe/dist/root-walk.d.ts +2 -2
  186. package/node_modules/@openclaw/fs-safe/dist/root-walk.js +1 -3
  187. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.d.ts +3 -3
  188. package/node_modules/@openclaw/fs-safe/dist/root-write-admission.js +8 -10
  189. package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.d.ts +0 -1
  190. package/node_modules/@openclaw/fs-safe/dist/safe-path-segment.js +0 -4
  191. package/node_modules/@openclaw/fs-safe/dist/secret-file.js +12 -9
  192. package/node_modules/@openclaw/fs-safe/dist/secure-temp-dir.d.ts +0 -2
  193. package/node_modules/@openclaw/fs-safe/dist/sibling-staged-file.js +2 -0
  194. package/node_modules/@openclaw/fs-safe/dist/sibling-temp.js +7 -4
  195. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-acquire.js +13 -6
  196. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.d.ts +0 -3
  197. package/node_modules/@openclaw/fs-safe/dist/sidecar-lock-reclaim.js +5 -23
  198. package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.d.ts +2 -1
  199. package/node_modules/@openclaw/fs-safe/dist/staged-file-settlement.js +11 -6
  200. package/node_modules/@openclaw/fs-safe/dist/temp-cleanup.js +1 -8
  201. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.d.ts +1 -1
  202. package/node_modules/@openclaw/fs-safe/dist/temp-workspace-child-admission.js +2 -9
  203. package/node_modules/@openclaw/fs-safe/dist/text-atomic.d.ts +1 -6
  204. package/node_modules/@openclaw/fs-safe/dist/trash.js +6 -2
  205. package/node_modules/@openclaw/fs-safe/dist/walk.js +100 -46
  206. package/node_modules/@openclaw/fs-safe/dist/watch-hints.d.ts +7 -0
  207. package/node_modules/@openclaw/fs-safe/dist/watch-hints.js +235 -19
  208. package/node_modules/@openclaw/fs-safe/dist/watch-native.d.ts +21 -2
  209. package/node_modules/@openclaw/fs-safe/dist/watch-native.js +21 -3
  210. package/node_modules/@openclaw/fs-safe/dist/watch-rescan.d.ts +6 -0
  211. package/node_modules/@openclaw/fs-safe/dist/watch-rescan.js +111 -0
  212. package/node_modules/@openclaw/fs-safe/dist/watch-scan.d.ts +13 -0
  213. package/node_modules/@openclaw/fs-safe/dist/watch-scan.js +27 -4
  214. package/node_modules/@openclaw/fs-safe/dist/watch-stream.js +2 -0
  215. package/node_modules/@openclaw/fs-safe/dist/watch.js +131 -40
  216. package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.d.ts +8 -0
  217. package/node_modules/@openclaw/fs-safe/dist/windows-path-alias.js +24 -6
  218. package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.d.ts +13 -0
  219. package/node_modules/@openclaw/fs-safe/dist/windows-path-syntax.js +51 -0
  220. package/node_modules/@openclaw/fs-safe/docs/advanced.md +4 -0
  221. package/node_modules/@openclaw/fs-safe/docs/atomic.md +4 -1
  222. package/node_modules/@openclaw/fs-safe/docs/config.md +6 -14
  223. package/node_modules/@openclaw/fs-safe/docs/contributing.md +4 -14
  224. package/node_modules/@openclaw/fs-safe/docs/durability.md +6 -29
  225. package/node_modules/@openclaw/fs-safe/docs/entry-publication.md +146 -0
  226. package/node_modules/@openclaw/fs-safe/docs/errors.md +16 -0
  227. package/node_modules/@openclaw/fs-safe/docs/file-store.md +28 -5
  228. package/node_modules/@openclaw/fs-safe/docs/index.md +2 -31
  229. package/node_modules/@openclaw/fs-safe/docs/install.md +10 -31
  230. package/node_modules/@openclaw/fs-safe/docs/json.md +1 -1
  231. package/node_modules/@openclaw/fs-safe/docs/local-roots.md +0 -1
  232. package/node_modules/@openclaw/fs-safe/docs/migrating-to-0.5.md +12 -12
  233. package/node_modules/@openclaw/fs-safe/docs/native-helper.md +35 -96
  234. package/node_modules/@openclaw/fs-safe/docs/native.md +22 -20
  235. package/node_modules/@openclaw/fs-safe/docs/path.md +1 -1
  236. package/node_modules/@openclaw/fs-safe/docs/permissions.md +1 -2
  237. package/node_modules/@openclaw/fs-safe/docs/public-api.md +1 -2
  238. package/node_modules/@openclaw/fs-safe/docs/reading.md +1 -2
  239. package/node_modules/@openclaw/fs-safe/docs/root.md +26 -184
  240. package/node_modules/@openclaw/fs-safe/docs/secret-file.md +1 -1
  241. package/node_modules/@openclaw/fs-safe/docs/security-model.md +115 -3
  242. package/node_modules/@openclaw/fs-safe/docs/store.md +2 -2
  243. package/node_modules/@openclaw/fs-safe/docs/temp.md +29 -65
  244. package/node_modules/@openclaw/fs-safe/docs/testing.md +90 -58
  245. package/node_modules/@openclaw/fs-safe/docs/types.md +3 -16
  246. package/node_modules/@openclaw/fs-safe/docs/walk.md +33 -5
  247. package/node_modules/@openclaw/fs-safe/docs/watch.md +96 -14
  248. package/node_modules/@openclaw/fs-safe/docs/writing.md +172 -16
  249. package/node_modules/@openclaw/fs-safe/package.json +10 -10
  250. package/node_modules/@openclaw/fs-safe-darwin-arm64/fs-safe-native.node +0 -0
  251. package/node_modules/@openclaw/fs-safe-darwin-arm64/package.json +1 -1
  252. package/node_modules/@openclaw/fs-safe-darwin-x64/fs-safe-native.node +0 -0
  253. package/node_modules/@openclaw/fs-safe-darwin-x64/package.json +1 -1
  254. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/fs-safe-native.node +0 -0
  255. package/node_modules/@openclaw/fs-safe-linux-arm64-gnu/package.json +1 -1
  256. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/fs-safe-native.node +0 -0
  257. package/node_modules/@openclaw/fs-safe-linux-arm64-musl/package.json +1 -1
  258. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/fs-safe-native.node +0 -0
  259. package/node_modules/@openclaw/fs-safe-linux-x64-gnu/package.json +1 -1
  260. package/node_modules/@openclaw/fs-safe-linux-x64-musl/fs-safe-native.node +0 -0
  261. package/node_modules/@openclaw/fs-safe-linux-x64-musl/package.json +1 -1
  262. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/fs-safe-native.node +0 -0
  263. package/node_modules/@openclaw/fs-safe-win32-x64-msvc/package.json +1 -1
  264. package/openclaw.plugin.json +0 -9
  265. package/package.json +5 -5
  266. package/dist/.setup/crypto-snapshot-doctor.runtime-44FrCPR7.mjs +0 -91
  267. package/dist/.setup/doctor-DMvEBx6o.mjs +0 -49
  268. package/dist/.setup/idb-persistence-DBvfre1X.mjs +0 -227
  269. package/dist/.setup/idb-persistence-lock-D_mDu4Cf.mjs +0 -27
  270. package/dist/.setup/logger-CVv56jzH.mjs +0 -74
  271. package/dist/.setup/startup-verification-Aiy_xVdI.mjs +0 -204
  272. package/dist/.setup/storage-BXS2cB2i.mjs +0 -288
  273. package/dist/.setup/storage-metadata-BDRZ7vpX.mjs +0 -371
  274. package/node_modules/@openclaw/fs-safe/dist/watch-alias.d.ts +0 -6
  275. package/node_modules/@openclaw/fs-safe/dist/watch-alias.js +0 -88
  276. package/node_modules/@openclaw/fs-safe/docs/mutation-policy-proof.md +0 -69
  277. package/node_modules/@openclaw/fs-safe/docs/private-file-store.md +0 -68
  278. package/node_modules/@openclaw/fs-safe/docs/test-hooks.md +0 -110
@@ -1,25 +1,26 @@
1
- import { i as __exportAll } from "./doctor-contract-De6geW0h.mjs";
1
+ import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
2
2
  import { n as getMatrixRuntimeLifecycle } from "./runtime-1kn1P6io.mjs";
3
- import { c as hasReadyMatrixEnvAuth, d as resolveScopedMatrixEnvConfig, f as resolveMatrixAccountStringValues, i as requiresExplicitMatrixDefaultAccount, l as resolveGlobalMatrixEnvConfig, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-B7axQ80R.mjs";
3
+ import { c as hasReadyMatrixEnvAuth, d as resolveScopedMatrixEnvConfig, f as resolveMatrixAccountStringValues, i as requiresExplicitMatrixDefaultAccount, l as resolveGlobalMatrixEnvConfig, s as resolveMatrixDefaultOrOnlyAccountId, u as resolveMatrixEnvAuthReadiness } from "./account-selection-BDeeqwwR.mjs";
4
4
  import { t as getMatrixScopedEnvVarNames } from "./env-vars-dGqak9dN.mjs";
5
5
  import { o as resolveMatrixBaseConfig, r as listNormalizedMatrixAccountIds, t as findMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
6
6
  import { t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.mjs";
7
7
  import { n as validateMatrixHomeserverUrl, t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-CF6pG6eE.mjs";
8
- import { i as repairCurrentTokenStorageMetaDeviceId } from "./storage-BXS2cB2i.mjs";
8
+ import { i as repairCurrentTokenStorageMetaDeviceId } from "./storage-D7agewjH.mjs";
9
9
  import { createLazyRuntimeMethod, createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
10
10
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId, normalizeOptionalAccountId } from "openclaw/plugin-sdk/account-id";
11
11
  import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
12
12
  import { coerceSecretRef, isBuiltInDefaultSecretProviderRef, normalizeResolvedSecretInputString } from "openclaw/plugin-sdk/secret-input";
13
13
  import { formatErrorMessage, toErrorObject, toStringifiedError } from "openclaw/plugin-sdk/error-runtime";
14
14
  import { resolveOptionalIntegerOption } from "openclaw/plugin-sdk/number-runtime";
15
- import { isPrivateNetworkOptInEnabled, ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
15
+ import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
16
16
  import { requireRuntimeConfig } from "openclaw/plugin-sdk/plugin-config-runtime";
17
17
  import { AsyncLocalStorage } from "node:async_hooks";
18
+ import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
18
19
  import { retryAsync } from "openclaw/plugin-sdk/retry-runtime";
19
20
  import { sleepWithAbort } from "openclaw/plugin-sdk/runtime-env";
20
21
  import { createDeferred } from "openclaw/plugin-sdk/extension-shared";
21
22
  //#region extensions/matrix/src/matrix/client/auth-request.ts
22
- const loadMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-DmRVM0VA.mjs").then((n) => n.t), import("./logging-mhnFQGzB.mjs").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
23
+ const loadMatrixAuthClientDeps = createLazyRuntimeModule(() => Promise.all([import("./sdk-CgQGkCsS.mjs").then((n) => n.t), import("./logging-BKV8TYQq.mjs").then((n) => n.n)]).then(([sdkModule, loggingModule]) => ({
23
24
  MatrixClient: sdkModule.MatrixClient,
24
25
  ensureMatrixSdkLoggingConfigured: loggingModule.ensureMatrixSdkLoggingConfigured
25
26
  })));
@@ -88,8 +89,8 @@ async function fetchMatrixWhoamiIdentity(params) {
88
89
  }
89
90
  //#endregion
90
91
  //#region extensions/matrix/src/matrix/client/config.ts
91
- const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-KD4o5biZ.mjs").then((n) => n.i));
92
- const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-C9qDO5-2.mjs"));
92
+ const loadMatrixCredentialsReadDeps = createLazyRuntimeModule(() => import("./credentials-read-CqRiEAQa.mjs").then((n) => n.i));
93
+ const loadMatrixCredentialsWriteRuntime = createLazyRuntimeModule(() => import("./credentials-C2dvc_kB.mjs"));
93
94
  const loadMatrixSecretInputDeps = createLazyRuntimeModule(() => import("openclaw/plugin-sdk/secret-input-runtime"));
94
95
  function credentialsMatchBackfillAuthLineage(params) {
95
96
  if (!params.stored) return true;
@@ -178,7 +179,7 @@ function buildResolvedMatrixAuth(resolved, auth) {
178
179
  }
179
180
  function hasScopedMatrixEnvConfig(accountId, env) {
180
181
  const scoped = resolveScopedMatrixEnvConfig(accountId, env);
181
- return Boolean(scoped.homeserver || scoped.userId || scoped.accessToken || scoped.password || scoped.deviceId || scoped.deviceName);
182
+ return Object.values(scoped).some(Boolean);
182
183
  }
183
184
  function readMatrixConfigStrings(params) {
184
185
  return Object.fromEntries(MATRIX_CONFIG_STRING_FIELDS.map((field) => [field, readMatrixConfigString({
@@ -237,7 +238,7 @@ function resolveMatrixAccountConfigSnapshot(cfg, accountId, env) {
237
238
  globalEnv
238
239
  });
239
240
  const accountInitialSyncLimit = resolveOptionalIntegerOption(account.initialSyncLimit, { min: 0 });
240
- const allowPrivateNetwork = isPrivateNetworkOptInEnabled(account) || isPrivateNetworkOptInEnabled(matrix) ? true : void 0;
241
+ const allowPrivateNetwork = account.network?.dangerouslyAllowPrivateNetwork === true || matrix.network?.dangerouslyAllowPrivateNetwork === true ? true : void 0;
241
242
  return {
242
243
  resolved: {
243
244
  homeserver: resolvedStrings.homeserver,
@@ -526,7 +527,7 @@ async function awaitMatrixStartupWithAbort(promise, abortSignal) {
526
527
  }
527
528
  //#endregion
528
529
  //#region extensions/matrix/src/matrix/client/shared.ts
529
- const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-DRZ580E3.mjs"));
530
+ const loadMatrixCreateClientDeps = createLazyRuntimeModule(() => import("./create-client-CbJVyFDy.mjs"));
530
531
  const MATRIX_RETIREMENT_DRAIN_TIMEOUT_MS = 5e3;
531
532
  const sharedClientStates = /* @__PURE__ */ new Map();
532
533
  const sharedClientPromises = /* @__PURE__ */ new Map();
@@ -543,23 +544,11 @@ function buildSharedClientKey(auth) {
543
544
  }
544
545
  async function createSharedMatrixClient(params) {
545
546
  const { createMatrixClient } = await loadMatrixCreateClientDeps();
546
- const client = await createMatrixClient({
547
- homeserver: params.auth.homeserver,
548
- userId: params.auth.userId,
549
- accessToken: params.auth.accessToken,
550
- password: params.auth.password,
551
- deviceId: params.auth.deviceId,
552
- encryption: params.auth.encryption,
553
- localTimeoutMs: params.timeoutMs,
554
- initialSyncLimit: params.auth.initialSyncLimit,
555
- accountId: params.auth.accountId,
556
- allowPrivateNetwork: params.auth.allowPrivateNetwork,
557
- ssrfPolicy: params.auth.ssrfPolicy,
558
- dispatcherPolicy: params.auth.dispatcherPolicy
559
- });
560
547
  return {
561
- auth: params.auth,
562
- client,
548
+ client: await createMatrixClient({
549
+ ...params.auth,
550
+ localTimeoutMs: params.timeoutMs
551
+ }),
563
552
  key: buildSharedClientKey(params.auth),
564
553
  started: false,
565
554
  startPromise: null,
@@ -704,19 +693,11 @@ function forceReleaseLeases(state, releasePromise) {
704
693
  }
705
694
  async function waitForRetirementDrain(state, task, isPending, timeoutMessage) {
706
695
  if (!isPending()) return;
707
- let deadline;
708
- try {
709
- await Promise.race([task, new Promise((_, reject) => {
710
- deadline = setTimeout(() => {
711
- if (!isPending()) return;
712
- state.phase = "late-drain";
713
- reject(new Error(timeoutMessage));
714
- }, MATRIX_RETIREMENT_DRAIN_TIMEOUT_MS);
715
- deadline.unref?.();
716
- })]);
717
- } finally {
718
- if (deadline) clearTimeout(deadline);
719
- }
696
+ await raceWithTimeout(task, MATRIX_RETIREMENT_DRAIN_TIMEOUT_MS, () => {
697
+ if (!isPending()) return task;
698
+ state.phase = "late-drain";
699
+ throw new Error(timeoutMessage);
700
+ }, { ref: false });
720
701
  }
721
702
  function beginGenerationRetirement(params) {
722
703
  const { state } = params;
@@ -910,7 +891,7 @@ var client_exports = /* @__PURE__ */ __exportAll({
910
891
  stopSharedClientForAccount: () => stopSharedClientForAccount,
911
892
  validateMatrixHomeserverUrl: () => validateMatrixHomeserverUrl
912
893
  });
913
- const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-DRZ580E3.mjs"));
894
+ const loadMatrixClientRuntime = createLazyRuntimeModule(() => import("./create-client-CbJVyFDy.mjs"));
914
895
  const createMatrixClient = createLazyRuntimeMethod(loadMatrixClientRuntime, (runtime) => runtime.createMatrixClient);
915
896
  //#endregion
916
897
  export { isMatrixStartupAbortError as a, getMatrixMonitorTaskSignal as c, resolveMatrixAuthContext as d, createMatrixStartupAbortError as i, backfillMatrixAuthDeviceIdAfterStartup as l, acquireSharedMatrixClient as n, throwIfMatrixStartupAborted as o, awaitMatrixStartupWithAbort as r, createMatrixMonitorTaskRunner as s, client_exports as t, resolveMatrixAuth as u };
@@ -1,4 +1,5 @@
1
1
  import { t as formatMatrixErrorReason } from "./errors-DKVS3_DO.mjs";
2
+ import { raceWithTimeout } from "openclaw/plugin-sdk/time-runtime";
2
3
  //#region extensions/matrix/src/matrix/sync-state.ts
3
4
  function isMatrixReadySyncState(state) {
4
5
  return state === "PREPARED" || state === "SYNCING" || state === "CATCHUP";
@@ -43,29 +44,19 @@ async function resolveMatrixDiagnostic(promise, timeoutMs) {
43
44
  return (await resolveMatrixDiagnosticResult(promise, timeoutMs)).value;
44
45
  }
45
46
  async function resolveMatrixDiagnosticResult(promise, timeoutMs) {
46
- let timeoutId;
47
- try {
48
- const guarded = promise.then((value) => ({
49
- error: null,
50
- timedOut: false,
51
- value
52
- })).catch((error) => ({
53
- error,
54
- timedOut: false,
55
- value: null
56
- }));
57
- const timeout = new Promise((resolve) => {
58
- timeoutId = setTimeout(() => resolve({
59
- error: null,
60
- timedOut: true,
61
- value: null
62
- }), timeoutMs);
63
- timeoutId.unref?.();
64
- });
65
- return await Promise.race([guarded, timeout]);
66
- } finally {
67
- if (timeoutId) clearTimeout(timeoutId);
68
- }
47
+ return await raceWithTimeout(promise.then((value) => ({
48
+ error: null,
49
+ timedOut: false,
50
+ value
51
+ })).catch((error) => ({
52
+ error,
53
+ timedOut: false,
54
+ value: null
55
+ })), timeoutMs, () => ({
56
+ error: null,
57
+ timedOut: true,
58
+ value: null
59
+ }), { ref: false });
69
60
  }
70
61
  function isMatrixAccessTokenInvalidatedError(error) {
71
62
  if (!error || typeof error !== "object") return false;
@@ -1,4 +1,4 @@
1
- import { i as __exportAll } from "./doctor-contract-De6geW0h.mjs";
1
+ import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
2
2
  import { t as findMatrixAccountConfig } from "./account-config-CRsKoMqJ.mjs";
3
3
  import { n as resolveMatrixConfigPath, r as shouldStoreMatrixAccountAtTopLevel, t as resolveMatrixConfigFieldPath } from "./config-paths-CnREYb1Y.mjs";
4
4
  import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
@@ -11,37 +11,19 @@ var config_update_exports = /* @__PURE__ */ __exportAll({
11
11
  shouldStoreMatrixAccountAtTopLevel: () => shouldStoreMatrixAccountAtTopLevel,
12
12
  updateMatrixAccountConfig: () => updateMatrixAccountConfig
13
13
  });
14
- function applyNullableStringField(target, key, value) {
14
+ function applyNullableField(target, key, value, normalize = (entry) => entry) {
15
15
  if (value === void 0) return;
16
- if (value === null) {
17
- delete target[key];
18
- return;
19
- }
20
- const trimmed = value.trim();
21
- if (!trimmed) {
22
- delete target[key];
23
- return;
24
- }
25
- target[key] = trimmed;
16
+ const normalized = value === null ? void 0 : normalize(value);
17
+ if (normalized === void 0) delete target[key];
18
+ else target[key] = normalized;
26
19
  }
27
- function applyNullableSecretInputField(target, key, value, defaults) {
28
- if (value === void 0) return;
29
- if (value === null) {
30
- delete target[key];
31
- return;
32
- }
33
- if (typeof value === "string") {
34
- const normalized = normalizeSecretInputString(value);
35
- if (normalized) target[key] = normalized;
36
- else delete target[key];
37
- return;
38
- }
20
+ function normalizeMatrixSecretInput(value, key, defaults) {
21
+ if (typeof value === "string") return normalizeSecretInputString(value) || void 0;
39
22
  const ref = coerceSecretRef(value, defaults);
40
23
  if (!ref) throw new Error(`Invalid Matrix ${key} SecretInput.`);
41
- target[key] = ref;
24
+ return ref;
42
25
  }
43
26
  function cloneMatrixDmConfig(dm) {
44
- if (!dm) return dm;
45
27
  return {
46
28
  ...dm,
47
29
  ...dm.allowFrom ? { allowFrom: [...dm.allowFrom] } : {}
@@ -51,33 +33,21 @@ function cloneMatrixRoomMap(rooms) {
51
33
  if (!rooms) return rooms;
52
34
  return Object.fromEntries(Object.entries(rooms).map(([roomId, roomCfg]) => [roomId, roomCfg ? { ...roomCfg } : roomCfg]));
53
35
  }
54
- function applyNullableArrayField(target, key, value) {
55
- if (value === void 0) return;
56
- if (value === null) {
57
- delete target[key];
58
- return;
59
- }
60
- target[key] = [...value];
61
- }
62
- function applyNullableScalarField(target, key, value) {
63
- if (value === null) delete target[key];
64
- else if (value !== void 0) target[key] = value;
65
- }
66
36
  function updateMatrixAccountConfig(cfg, accountId, patch) {
67
37
  const matrix = cfg.channels?.matrix ?? {};
68
38
  const normalizedAccountId = normalizeAccountId(accountId);
69
39
  const nextAccount = { ...findMatrixAccountConfig(cfg, normalizedAccountId) ?? (normalizedAccountId === DEFAULT_ACCOUNT_ID ? matrix : {}) };
70
- applyNullableStringField(nextAccount, "name", patch.name);
40
+ const trimString = (value) => value.trim() || void 0;
41
+ applyNullableField(nextAccount, "name", patch.name, trimString);
71
42
  if (typeof patch.enabled === "boolean") nextAccount.enabled = patch.enabled;
72
43
  else if (typeof nextAccount.enabled !== "boolean") nextAccount.enabled = true;
73
- applyNullableStringField(nextAccount, "homeserver", patch.homeserver);
74
- applyNullableStringField(nextAccount, "proxy", patch.proxy);
75
- applyNullableStringField(nextAccount, "userId", patch.userId);
76
- applyNullableSecretInputField(nextAccount, "accessToken", patch.accessToken, cfg.secrets?.defaults);
77
- applyNullableSecretInputField(nextAccount, "password", patch.password, cfg.secrets?.defaults);
78
- applyNullableStringField(nextAccount, "deviceId", patch.deviceId);
79
- applyNullableStringField(nextAccount, "deviceName", patch.deviceName);
80
- applyNullableStringField(nextAccount, "avatarUrl", patch.avatarUrl);
44
+ applyNullableField(nextAccount, "homeserver", patch.homeserver, trimString);
45
+ applyNullableField(nextAccount, "proxy", patch.proxy, trimString);
46
+ applyNullableField(nextAccount, "userId", patch.userId, trimString);
47
+ for (const key of ["accessToken", "password"]) applyNullableField(nextAccount, key, patch[key], (value) => normalizeMatrixSecretInput(value, key, cfg.secrets?.defaults));
48
+ applyNullableField(nextAccount, "deviceId", patch.deviceId, trimString);
49
+ applyNullableField(nextAccount, "deviceName", patch.deviceName, trimString);
50
+ applyNullableField(nextAccount, "avatarUrl", patch.avatarUrl, trimString);
81
51
  if (patch.allowPrivateNetwork !== void 0) {
82
52
  const nextNetwork = nextAccount.network && typeof nextAccount.network === "object" ? { ...nextAccount.network } : {};
83
53
  if (patch.allowPrivateNetwork === null) delete nextNetwork.dangerouslyAllowPrivateNetwork;
@@ -85,31 +55,18 @@ function updateMatrixAccountConfig(cfg, accountId, patch) {
85
55
  if (Object.keys(nextNetwork).length > 0) nextAccount.network = nextNetwork;
86
56
  else delete nextAccount.network;
87
57
  }
88
- if (patch.initialSyncLimit !== void 0) {
89
- if (patch.initialSyncLimit === null) delete nextAccount.initialSyncLimit;
90
- else {
91
- const initialSyncLimit = resolveOptionalIntegerOption(patch.initialSyncLimit, { min: 0 });
92
- if (initialSyncLimit === void 0) delete nextAccount.initialSyncLimit;
93
- else nextAccount.initialSyncLimit = initialSyncLimit;
94
- }
95
- }
96
- applyNullableScalarField(nextAccount, "encryption", patch.encryption);
97
- applyNullableScalarField(nextAccount, "allowBots", patch.allowBots);
98
- applyNullableScalarField(nextAccount, "autoJoin", patch.autoJoin);
99
- applyNullableArrayField(nextAccount, "autoJoinAllowlist", patch.autoJoinAllowlist);
100
- if (patch.dm !== void 0) {
101
- if (patch.dm === null) delete nextAccount.dm;
102
- else nextAccount.dm = cloneMatrixDmConfig({
103
- ...nextAccount.dm,
104
- ...patch.dm
105
- });
106
- }
107
- applyNullableScalarField(nextAccount, "groupPolicy", patch.groupPolicy);
108
- applyNullableArrayField(nextAccount, "groupAllowFrom", patch.groupAllowFrom);
109
- for (const key of ["groups", "rooms"]) if (patch[key] !== void 0) {
110
- if (patch[key] === null) delete nextAccount[key];
111
- else nextAccount[key] = cloneMatrixRoomMap(patch[key]);
112
- }
58
+ applyNullableField(nextAccount, "initialSyncLimit", patch.initialSyncLimit, (value) => resolveOptionalIntegerOption(value, { min: 0 }));
59
+ applyNullableField(nextAccount, "encryption", patch.encryption);
60
+ applyNullableField(nextAccount, "allowBots", patch.allowBots);
61
+ applyNullableField(nextAccount, "autoJoin", patch.autoJoin);
62
+ applyNullableField(nextAccount, "autoJoinAllowlist", patch.autoJoinAllowlist, (value) => [...value]);
63
+ applyNullableField(nextAccount, "dm", patch.dm, (value) => cloneMatrixDmConfig({
64
+ ...nextAccount.dm,
65
+ ...value
66
+ }));
67
+ applyNullableField(nextAccount, "groupPolicy", patch.groupPolicy);
68
+ applyNullableField(nextAccount, "groupAllowFrom", patch.groupAllowFrom, (value) => [...value]);
69
+ for (const key of ["groups", "rooms"]) applyNullableField(nextAccount, key, patch[key], cloneMatrixRoomMap);
113
70
  const nextAccounts = Object.fromEntries(Object.entries(matrix.accounts ?? {}).filter(([rawAccountId]) => rawAccountId === normalizedAccountId || normalizeAccountId(rawAccountId) !== normalizedAccountId));
114
71
  if (shouldStoreMatrixAccountAtTopLevel(cfg, normalizedAccountId)) {
115
72
  const { accounts: _ignoredAccounts, defaultAccount } = matrix;
@@ -1,16 +1,16 @@
1
1
  import { t as getMatrixRuntime } from "./runtime-1kn1P6io.mjs";
2
2
  import { t as resolveValidatedMatrixHomeserverUrl } from "./url-validation-CF6pG6eE.mjs";
3
- import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-BXS2cB2i.mjs";
4
- import "./client-Ccv77kwh.mjs";
3
+ import { n as maybeMigrateLegacyStorage, o as resolveMatrixStoragePaths, s as writeStorageMeta } from "./storage-D7agewjH.mjs";
4
+ import "./client-kmih04ng.mjs";
5
5
  import { createLazyRuntimeModule } from "openclaw/plugin-sdk/lazy-runtime";
6
6
  import { normalizeOptionalString } from "openclaw/plugin-sdk/string-coerce-runtime";
7
7
  import { ssrfPolicyFromDangerouslyAllowPrivateNetwork } from "openclaw/plugin-sdk/ssrf-runtime";
8
8
  import fs from "node:fs";
9
9
  //#region extensions/matrix/src/matrix/client/create-client.ts
10
10
  const loadMatrixCreateClientRuntimeDeps = createLazyRuntimeModule(() => Promise.all([
11
- import("./sdk-DmRVM0VA.mjs").then((n) => n.t),
12
- import("./logging-mhnFQGzB.mjs").then((n) => n.n),
13
- import("./file-sync-store-B-9bMb_O.mjs")
11
+ import("./sdk-CgQGkCsS.mjs").then((n) => n.t),
12
+ import("./logging-BKV8TYQq.mjs").then((n) => n.n),
13
+ import("./file-sync-store-Clc9iEdn.mjs")
14
14
  ]).then(([sdkModule, loggingModule, syncStoreModule]) => ({
15
15
  MatrixClient: sdkModule.MatrixClient,
16
16
  SqliteBackedMatrixSyncStore: syncStoreModule.SqliteBackedMatrixSyncStore,
@@ -1,6 +1,6 @@
1
1
  import { i as normalizeMatrixStoredCredentials, n as isMatrixCredentialRevocation, r as matrixCredentialsStoreKey } from "./credentials-state-B3cuUFwZ.mjs";
2
2
  import { i as resolveMatrixCredentialsDir, o as resolveMatrixCredentialsPath } from "./storage-paths-B51JM-pC.mjs";
3
- import { a as loadMatrixCredentials, c as openMatrixCredentialsStore, n as clearMatrixCredentials, r as credentialsMatchConfig, s as openMatrixCredentialsAsyncStore } from "./credentials-read-KD4o5biZ.mjs";
3
+ import { a as loadMatrixCredentials, c as openMatrixCredentialsStore, n as clearMatrixCredentials, r as credentialsMatchConfig, s as openMatrixCredentialsAsyncStore } from "./credentials-read-CqRiEAQa.mjs";
4
4
  import { normalizeAccountId } from "openclaw/plugin-sdk/account-id";
5
5
  //#region extensions/matrix/src/matrix/credentials.ts
6
6
  async function saveMatrixCredentials(credentials, env = process.env, accountId) {
@@ -1,4 +1,4 @@
1
- import { i as __exportAll } from "./doctor-contract-De6geW0h.mjs";
1
+ import { i as __exportAll } from "./doctor-contract-CsTNmbMa.mjs";
2
2
  import { r as getOptionalMatrixRuntime } from "./runtime-1kn1P6io.mjs";
3
3
  import { i as normalizeMatrixStoredCredentials, r as matrixCredentialsStoreKey, t as MATRIX_CREDENTIALS_NAMESPACE } from "./credentials-state-B3cuUFwZ.mjs";
4
4
  import { i as resolveMatrixCredentialsDir, o as resolveMatrixCredentialsPath } from "./storage-paths-B51JM-pC.mjs";